1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60.
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 Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20  setopt NO_GLOB_SUBST
21else
22  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23fi
24BIN_SH=xpg4; export BIN_SH # for Tru64
25DUALCASE=1; export DUALCASE # for MKS sh
26
27
28# PATH needs CR
29# Avoid depending upon Character Ranges.
30as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33as_cr_digits='0123456789'
34as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36# The user is always right.
37if test "${PATH_SEPARATOR+set}" != set; then
38  echo "#! /bin/sh" >conf$$.sh
39  echo  "exit 0"   >>conf$$.sh
40  chmod +x conf$$.sh
41  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42    PATH_SEPARATOR=';'
43  else
44    PATH_SEPARATOR=:
45  fi
46  rm -f conf$$.sh
47fi
48
49# Support unset when possible.
50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51  as_unset=unset
52else
53  as_unset=false
54fi
55
56
57# IFS
58# We need space, tab and new line, in precisely that order.  Quoting is
59# there to prevent editors from complaining about space-tab.
60# (If _AS_PATH_WALK were called with IFS unset, it would disable word
61# splitting by setting IFS to empty value.)
62as_nl='
63'
64IFS=" ""	$as_nl"
65
66# Find who we are.  Look in the path if we contain no directory separator.
67case $0 in
68  *[\\/]* ) as_myself=$0 ;;
69  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70for as_dir in $PATH
71do
72  IFS=$as_save_IFS
73  test -z "$as_dir" && as_dir=.
74  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75done
76IFS=$as_save_IFS
77
78     ;;
79esac
80# We did not find ourselves, most probably we were run as `sh COMMAND'
81# in which case we are not to be found in the path.
82if test "x$as_myself" = x; then
83  as_myself=$0
84fi
85if test ! -f "$as_myself"; then
86  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87  { (exit 1); exit 1; }
88fi
89
90# Work around bugs in pre-3.0 UWIN ksh.
91for as_var in ENV MAIL MAILPATH
92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93done
94PS1='$ '
95PS2='> '
96PS4='+ '
97
98# NLS nuisances.
99for as_var in \
100  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102  LC_TELEPHONE LC_TIME
103do
104  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105    eval $as_var=C; export $as_var
106  else
107    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108  fi
109done
110
111# Required to use basename.
112if expr a : '\(a\)' >/dev/null 2>&1 &&
113   test "X`expr 00001 : '.*\(...\)'`" = X001; then
114  as_expr=expr
115else
116  as_expr=false
117fi
118
119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120  as_basename=basename
121else
122  as_basename=false
123fi
124
125
126# Name of the executable.
127as_me=`$as_basename -- "$0" ||
128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129	 X"$0" : 'X\(//\)$' \| \
130	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131echo X/"$0" |
132    sed '/^.*\/\([^/][^/]*\)\/*$/{
133	    s//\1/
134	    q
135	  }
136	  /^X\/\(\/\/\)$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\).*/{
141	    s//\1/
142	    q
143	  }
144	  s/.*/./; q'`
145
146# CDPATH.
147$as_unset CDPATH
148
149
150if test "x$CONFIG_SHELL" = x; then
151  if (eval ":") 2>/dev/null; then
152  as_have_required=yes
153else
154  as_have_required=no
155fi
156
157  if test $as_have_required = yes && 	 (eval ":
158(as_func_return () {
159  (exit \$1)
160}
161as_func_success () {
162  as_func_return 0
163}
164as_func_failure () {
165  as_func_return 1
166}
167as_func_ret_success () {
168  return 0
169}
170as_func_ret_failure () {
171  return 1
172}
173
174exitcode=0
175if as_func_success; then
176  :
177else
178  exitcode=1
179  echo as_func_success failed.
180fi
181
182if as_func_failure; then
183  exitcode=1
184  echo as_func_failure succeeded.
185fi
186
187if as_func_ret_success; then
188  :
189else
190  exitcode=1
191  echo as_func_ret_success failed.
192fi
193
194if as_func_ret_failure; then
195  exitcode=1
196  echo as_func_ret_failure succeeded.
197fi
198
199if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200  :
201else
202  exitcode=1
203  echo positional parameters were not saved.
204fi
205
206test \$exitcode = 0) || { (exit 1); exit 1; }
207
208(
209  as_lineno_1=\$LINENO
210  as_lineno_2=\$LINENO
211  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213") 2> /dev/null; then
214  :
215else
216  as_candidate_shells=
217    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  case $as_dir in
223	 /*)
224	   for as_base in sh bash ksh sh5; do
225	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226	   done;;
227       esac
228done
229IFS=$as_save_IFS
230
231
232      for as_shell in $as_candidate_shells $SHELL; do
233	 # Try only shells that exist, to save several forks.
234	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235		{ ("$as_shell") 2> /dev/null <<\_ASEOF
236# Be Bourne compatible
237if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238  emulate sh
239  NULLCMD=:
240  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241  # is contrary to our usage.  Disable this feature.
242  alias -g '${1+"$@"}'='"$@"'
243  setopt NO_GLOB_SUBST
244else
245  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246fi
247BIN_SH=xpg4; export BIN_SH # for Tru64
248DUALCASE=1; export DUALCASE # for MKS sh
249
250:
251_ASEOF
252}; then
253  CONFIG_SHELL=$as_shell
254	       as_have_required=yes
255	       if { "$as_shell" 2> /dev/null <<\_ASEOF
256# Be Bourne compatible
257if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258  emulate sh
259  NULLCMD=:
260  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261  # is contrary to our usage.  Disable this feature.
262  alias -g '${1+"$@"}'='"$@"'
263  setopt NO_GLOB_SUBST
264else
265  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266fi
267BIN_SH=xpg4; export BIN_SH # for Tru64
268DUALCASE=1; export DUALCASE # for MKS sh
269
270:
271(as_func_return () {
272  (exit $1)
273}
274as_func_success () {
275  as_func_return 0
276}
277as_func_failure () {
278  as_func_return 1
279}
280as_func_ret_success () {
281  return 0
282}
283as_func_ret_failure () {
284  return 1
285}
286
287exitcode=0
288if as_func_success; then
289  :
290else
291  exitcode=1
292  echo as_func_success failed.
293fi
294
295if as_func_failure; then
296  exitcode=1
297  echo as_func_failure succeeded.
298fi
299
300if as_func_ret_success; then
301  :
302else
303  exitcode=1
304  echo as_func_ret_success failed.
305fi
306
307if as_func_ret_failure; then
308  exitcode=1
309  echo as_func_ret_failure succeeded.
310fi
311
312if ( set x; as_func_ret_success y && test x = "$1" ); then
313  :
314else
315  exitcode=1
316  echo positional parameters were not saved.
317fi
318
319test $exitcode = 0) || { (exit 1); exit 1; }
320
321(
322  as_lineno_1=$LINENO
323  as_lineno_2=$LINENO
324  test "x$as_lineno_1" != "x$as_lineno_2" &&
325  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327_ASEOF
328}; then
329  break
330fi
331
332fi
333
334      done
335
336      if test "x$CONFIG_SHELL" != x; then
337  for as_var in BASH_ENV ENV
338        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339        done
340        export CONFIG_SHELL
341        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342fi
343
344
345    if test $as_have_required = no; then
346  echo This script requires a shell more modern than all the
347      echo shells that I found on your system.  Please install a
348      echo modern shell, or manually run the script under such a
349      echo shell if you do have one.
350      { (exit 1); exit 1; }
351fi
352
353
354fi
355
356fi
357
358
359
360(eval "as_func_return () {
361  (exit \$1)
362}
363as_func_success () {
364  as_func_return 0
365}
366as_func_failure () {
367  as_func_return 1
368}
369as_func_ret_success () {
370  return 0
371}
372as_func_ret_failure () {
373  return 1
374}
375
376exitcode=0
377if as_func_success; then
378  :
379else
380  exitcode=1
381  echo as_func_success failed.
382fi
383
384if as_func_failure; then
385  exitcode=1
386  echo as_func_failure succeeded.
387fi
388
389if as_func_ret_success; then
390  :
391else
392  exitcode=1
393  echo as_func_ret_success failed.
394fi
395
396if as_func_ret_failure; then
397  exitcode=1
398  echo as_func_ret_failure succeeded.
399fi
400
401if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402  :
403else
404  exitcode=1
405  echo positional parameters were not saved.
406fi
407
408test \$exitcode = 0") || {
409  echo No shell found that supports shell functions.
410  echo Please tell autoconf@gnu.org about your system,
411  echo including any error possibly output before this
412  echo message
413}
414
415
416
417  as_lineno_1=$LINENO
418  as_lineno_2=$LINENO
419  test "x$as_lineno_1" != "x$as_lineno_2" &&
420  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423  # uniformly replaced by the line number.  The first 'sed' inserts a
424  # line-number line after each line using $LINENO; the second 'sed'
425  # does the real work.  The second script uses 'N' to pair each
426  # line-number line with the line containing $LINENO, and appends
427  # trailing '-' during substitution so that $LINENO is not a special
428  # case at line end.
429  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430  # scripts with optimization help from Paolo Bonzini.  Blame Lee
431  # E. McMahon (1931-1989) for sed's syntax.  :-)
432  sed -n '
433    p
434    /[$]LINENO/=
435  ' <$as_myself |
436    sed '
437      s/[$]LINENO.*/&-/
438      t lineno
439      b
440      :lineno
441      N
442      :loop
443      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444      t loop
445      s/-\n.*//
446    ' >$as_me.lineno &&
447  chmod +x "$as_me.lineno" ||
448    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449   { (exit 1); exit 1; }; }
450
451  # Don't try to exec as it changes $[0], causing all sort of problems
452  # (the dirname of $[0] is not the place where we might find the
453  # original and so on.  Autoconf is especially sensitive to this).
454  . "./$as_me.lineno"
455  # Exit status is that of the last command.
456  exit
457}
458
459
460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461  as_dirname=dirname
462else
463  as_dirname=false
464fi
465
466ECHO_C= ECHO_N= ECHO_T=
467case `echo -n x` in
468-n*)
469  case `echo 'x\c'` in
470  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
471  *)   ECHO_C='\c';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477if expr a : '\(a\)' >/dev/null 2>&1 &&
478   test "X`expr 00001 : '.*\(...\)'`" = X001; then
479  as_expr=expr
480else
481  as_expr=false
482fi
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir
490fi
491echo >conf$$.file
492if ln -s conf$$.file conf$$ 2>/dev/null; then
493  as_ln_s='ln -s'
494  # ... but there are two gotchas:
495  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497  # In both cases, we have to default to `cp -p'.
498  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499    as_ln_s='cp -p'
500elif ln conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s=ln
502else
503  as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509  as_mkdir_p=:
510else
511  test -d ./-p && rmdir ./-p
512  as_mkdir_p=false
513fi
514
515# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516# systems may use methods other than mode bits to determine executability.
517cat >conf$$.file <<_ASEOF
518#! /bin/sh
519exit 0
520_ASEOF
521chmod +x conf$$.file
522if test -x conf$$.file >/dev/null 2>&1; then
523  as_executable_p="test -x"
524else
525  as_executable_p=:
526fi
527rm -f conf$$.file
528
529# Sed expression to map a string onto a valid CPP name.
530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532# Sed expression to map a string onto a valid variable name.
533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537
538# Check that we are running under the correct shell.
539SHELL=${CONFIG_SHELL-/bin/sh}
540
541case X$ECHO in
542X*--fallback-echo)
543  # Remove one level of quotation (which was required for Make).
544  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
545  ;;
546esac
547
548echo=${ECHO-echo}
549if test "X$1" = X--no-reexec; then
550  # Discard the --no-reexec flag, and continue.
551  shift
552elif test "X$1" = X--fallback-echo; then
553  # Avoid inline document here, it may be left over
554  :
555elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556  # Yippee, $echo works!
557  :
558else
559  # Restart under the correct shell.
560  exec $SHELL "$0" --no-reexec ${1+"$@"}
561fi
562
563if test "X$1" = X--fallback-echo; then
564  # used as fallback echo
565  shift
566  cat <<EOF
567$*
568EOF
569  exit 0
570fi
571
572# The HP-UX ksh and POSIX shell print the target directory to stdout
573# if CDPATH is set.
574(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575
576if test -z "$ECHO"; then
577if test "X${echo_test_string+set}" != Xset; then
578# find a string as large as possible, as long as the shell can cope with it
579  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582       echo_test_string=`eval $cmd` &&
583       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
584    then
585      break
586    fi
587  done
588fi
589
590if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592   test "X$echo_testing_string" = "X$echo_test_string"; then
593  :
594else
595  # The Solaris, AIX, and Digital Unix default echo programs unquote
596  # backslashes.  This makes it impossible to quote backslashes using
597  #   echo "$something" | sed 's/\\/\\\\/g'
598  #
599  # So, first we look for a working echo in the user's PATH.
600
601  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602  for dir in $PATH /usr/ucb; do
603    IFS="$lt_save_ifs"
604    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607       test "X$echo_testing_string" = "X$echo_test_string"; then
608      echo="$dir/echo"
609      break
610    fi
611  done
612  IFS="$lt_save_ifs"
613
614  if test "X$echo" = Xecho; then
615    # We didn't find a better echo, so look for alternatives.
616    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618       test "X$echo_testing_string" = "X$echo_test_string"; then
619      # This shell has a builtin print -r that does the trick.
620      echo='print -r'
621    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622	 test "X$CONFIG_SHELL" != X/bin/ksh; then
623      # If we have ksh, try running configure again with it.
624      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625      export ORIGINAL_CONFIG_SHELL
626      CONFIG_SHELL=/bin/ksh
627      export CONFIG_SHELL
628      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
629    else
630      # Try using printf.
631      echo='printf %s\n'
632      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634	 test "X$echo_testing_string" = "X$echo_test_string"; then
635	# Cool, printf works
636	:
637      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638	   test "X$echo_testing_string" = 'X\t' &&
639	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640	   test "X$echo_testing_string" = "X$echo_test_string"; then
641	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642	export CONFIG_SHELL
643	SHELL="$CONFIG_SHELL"
644	export SHELL
645	echo="$CONFIG_SHELL $0 --fallback-echo"
646      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647	   test "X$echo_testing_string" = 'X\t' &&
648	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649	   test "X$echo_testing_string" = "X$echo_test_string"; then
650	echo="$CONFIG_SHELL $0 --fallback-echo"
651      else
652	# maybe with a smaller string...
653	prev=:
654
655	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
657	  then
658	    break
659	  fi
660	  prev="$cmd"
661	done
662
663	if test "$prev" != 'sed 50q "$0"'; then
664	  echo_test_string=`eval $prev`
665	  export echo_test_string
666	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667	else
668	  # Oops.  We lost completely, so just stick with echo.
669	  echo=echo
670	fi
671      fi
672    fi
673  fi
674fi
675fi
676
677# Copy echo and quote the copy suitably for passing to libtool from
678# the Makefile, instead of quoting the original, which is used later.
679ECHO=$echo
680if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
682fi
683
684
685
686
687tagnames=${tagnames+${tagnames},}CXX
688
689tagnames=${tagnames+${tagnames},}F77
690
691exec 7<&0 </dev/null 6>&1
692
693# Name of the host.
694# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695# so uname gets run too.
696ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
697
698#
699# Initializations.
700#
701ac_default_prefix=/usr/local
702ac_clean_files=
703ac_config_libobj_dir=.
704LIBOBJS=
705cross_compiling=no
706subdirs=
707MFLAGS=
708MAKEFLAGS=
709SHELL=${CONFIG_SHELL-/bin/sh}
710
711# Identity of this package.
712PACKAGE_NAME=
713PACKAGE_TARNAME=
714PACKAGE_VERSION=
715PACKAGE_STRING=
716PACKAGE_BUGREPORT=
717
718ac_unique_file="libdv/parse.c"
719# Factoring default headers for most tests.
720ac_includes_default="\
721#include <stdio.h>
722#if HAVE_SYS_TYPES_H
723# include <sys/types.h>
724#endif
725#if HAVE_SYS_STAT_H
726# include <sys/stat.h>
727#endif
728#if STDC_HEADERS
729# include <stdlib.h>
730# include <stddef.h>
731#else
732# if HAVE_STDLIB_H
733#  include <stdlib.h>
734# endif
735#endif
736#if HAVE_STRING_H
737# if !STDC_HEADERS && HAVE_MEMORY_H
738#  include <memory.h>
739# endif
740# include <string.h>
741#endif
742#if HAVE_STRINGS_H
743# include <strings.h>
744#endif
745#if HAVE_INTTYPES_H
746# include <inttypes.h>
747#endif
748#if HAVE_STDINT_H
749# include <stdint.h>
750#endif
751#if HAVE_UNISTD_H
752# include <unistd.h>
753#endif"
754
755ac_subst_vars='SHELL
756PATH_SEPARATOR
757PACKAGE_NAME
758PACKAGE_TARNAME
759PACKAGE_VERSION
760PACKAGE_STRING
761PACKAGE_BUGREPORT
762exec_prefix
763prefix
764program_transform_name
765bindir
766sbindir
767libexecdir
768datarootdir
769datadir
770sysconfdir
771sharedstatedir
772localstatedir
773includedir
774oldincludedir
775docdir
776infodir
777htmldir
778dvidir
779pdfdir
780psdir
781libdir
782localedir
783mandir
784DEFS
785ECHO_C
786ECHO_N
787ECHO_T
788LIBS
789build_alias
790host_alias
791target_alias
792build
793build_cpu
794build_vendor
795build_os
796host
797host_cpu
798host_vendor
799host_os
800target
801target_cpu
802target_vendor
803target_os
804INSTALL_PROGRAM
805INSTALL_SCRIPT
806INSTALL_DATA
807CYGPATH_W
808PACKAGE
809VERSION
810ACLOCAL
811AUTOCONF
812AUTOMAKE
813AUTOHEADER
814MAKEINFO
815install_sh
816STRIP
817INSTALL_STRIP_PROGRAM
818mkdir_p
819AWK
820SET_MAKE
821am__leading_dot
822AMTAR
823am__tar
824am__untar
825MAINTAINER_MODE_TRUE
826MAINTAINER_MODE_FALSE
827MAINT
828CFLAGS
829CC
830LDFLAGS
831CPPFLAGS
832ac_ct_CC
833EXEEXT
834OBJEXT
835DEPDIR
836am__include
837am__quote
838AMDEP_TRUE
839AMDEP_FALSE
840AMDEPBACKSLASH
841CCDEPMODE
842am__fastdepCC_TRUE
843am__fastdepCC_FALSE
844CCAS
845CCASFLAGS
846GREP
847EGREP
848LN_S
849ECHO
850AR
851RANLIB
852CPP
853CXX
854CXXFLAGS
855ac_ct_CXX
856CXXDEPMODE
857am__fastdepCXX_TRUE
858am__fastdepCXX_FALSE
859CXXCPP
860F77
861FFLAGS
862ac_ct_F77
863LIBTOOL
864HOST_X86_TRUE
865HOST_X86_FALSE
866HOST_X86_64_TRUE
867HOST_X86_64_FALSE
868PKG_CONFIG
869GTK_CFLAGS
870GTK_LIBS
871HAVE_GTK_TRUE
872HAVE_GTK_FALSE
873SDL_CONFIG
874SDL_CFLAGS
875SDL_LIBS
876XV_LIB
877PTHREAD_LIBS
878POPT_LIB
879REQUIRES_NOPKGCONFIG
880XMKMF
881ac_aux_dir
882RPM_RELEASE
883LIBOBJS
884LTLIBOBJS'
885ac_subst_files=''
886      ac_precious_vars='build_alias
887host_alias
888target_alias
889CC
890CFLAGS
891LDFLAGS
892CPPFLAGS
893CCAS
894CCASFLAGS
895CPP
896CXX
897CXXFLAGS
898CCC
899CXXCPP
900F77
901FFLAGS
902PKG_CONFIG
903GTK_CFLAGS
904GTK_LIBS
905XMKMF'
906
907
908# Initialize some variables set by options.
909ac_init_help=
910ac_init_version=false
911# The variables have the same names as the options, with
912# dashes changed to underlines.
913cache_file=/dev/null
914exec_prefix=NONE
915no_create=
916no_recursion=
917prefix=NONE
918program_prefix=NONE
919program_suffix=NONE
920program_transform_name=s,x,x,
921silent=
922site=
923srcdir=
924verbose=
925x_includes=NONE
926x_libraries=NONE
927
928# Installation directory options.
929# These are left unexpanded so users can "make install exec_prefix=/foo"
930# and all the variables that are supposed to be based on exec_prefix
931# by default will actually change.
932# Use braces instead of parens because sh, perl, etc. also accept them.
933# (The list follows the same order as the GNU Coding Standards.)
934bindir='${exec_prefix}/bin'
935sbindir='${exec_prefix}/sbin'
936libexecdir='${exec_prefix}/libexec'
937datarootdir='${prefix}/share'
938datadir='${datarootdir}'
939sysconfdir='${prefix}/etc'
940sharedstatedir='${prefix}/com'
941localstatedir='${prefix}/var'
942includedir='${prefix}/include'
943oldincludedir='/usr/include'
944docdir='${datarootdir}/doc/${PACKAGE}'
945infodir='${datarootdir}/info'
946htmldir='${docdir}'
947dvidir='${docdir}'
948pdfdir='${docdir}'
949psdir='${docdir}'
950libdir='${exec_prefix}/lib'
951localedir='${datarootdir}/locale'
952mandir='${datarootdir}/man'
953
954ac_prev=
955ac_dashdash=
956for ac_option
957do
958  # If the previous option needs an argument, assign it.
959  if test -n "$ac_prev"; then
960    eval $ac_prev=\$ac_option
961    ac_prev=
962    continue
963  fi
964
965  case $ac_option in
966  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967  *)	ac_optarg=yes ;;
968  esac
969
970  # Accept the important Cygnus configure options, so we can diagnose typos.
971
972  case $ac_dashdash$ac_option in
973  --)
974    ac_dashdash=yes ;;
975
976  -bindir | --bindir | --bindi | --bind | --bin | --bi)
977    ac_prev=bindir ;;
978  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979    bindir=$ac_optarg ;;
980
981  -build | --build | --buil | --bui | --bu)
982    ac_prev=build_alias ;;
983  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984    build_alias=$ac_optarg ;;
985
986  -cache-file | --cache-file | --cache-fil | --cache-fi \
987  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988    ac_prev=cache_file ;;
989  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991    cache_file=$ac_optarg ;;
992
993  --config-cache | -C)
994    cache_file=config.cache ;;
995
996  -datadir | --datadir | --datadi | --datad)
997    ac_prev=datadir ;;
998  -datadir=* | --datadir=* | --datadi=* | --datad=*)
999    datadir=$ac_optarg ;;
1000
1001  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002  | --dataroo | --dataro | --datar)
1003    ac_prev=datarootdir ;;
1004  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006    datarootdir=$ac_optarg ;;
1007
1008  -disable-* | --disable-*)
1009    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010    # Reject names that are not valid shell variable names.
1011    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1012      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1013   { (exit 1); exit 1; }; }
1014    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1015    eval enable_$ac_feature=no ;;
1016
1017  -docdir | --docdir | --docdi | --doc | --do)
1018    ac_prev=docdir ;;
1019  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1020    docdir=$ac_optarg ;;
1021
1022  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023    ac_prev=dvidir ;;
1024  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1025    dvidir=$ac_optarg ;;
1026
1027  -enable-* | --enable-*)
1028    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1029    # Reject names that are not valid shell variable names.
1030    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1031      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1032   { (exit 1); exit 1; }; }
1033    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1034    eval enable_$ac_feature=\$ac_optarg ;;
1035
1036  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038  | --exec | --exe | --ex)
1039    ac_prev=exec_prefix ;;
1040  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042  | --exec=* | --exe=* | --ex=*)
1043    exec_prefix=$ac_optarg ;;
1044
1045  -gas | --gas | --ga | --g)
1046    # Obsolete; use --with-gas.
1047    with_gas=yes ;;
1048
1049  -help | --help | --hel | --he | -h)
1050    ac_init_help=long ;;
1051  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052    ac_init_help=recursive ;;
1053  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054    ac_init_help=short ;;
1055
1056  -host | --host | --hos | --ho)
1057    ac_prev=host_alias ;;
1058  -host=* | --host=* | --hos=* | --ho=*)
1059    host_alias=$ac_optarg ;;
1060
1061  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062    ac_prev=htmldir ;;
1063  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064  | --ht=*)
1065    htmldir=$ac_optarg ;;
1066
1067  -includedir | --includedir | --includedi | --included | --include \
1068  | --includ | --inclu | --incl | --inc)
1069    ac_prev=includedir ;;
1070  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071  | --includ=* | --inclu=* | --incl=* | --inc=*)
1072    includedir=$ac_optarg ;;
1073
1074  -infodir | --infodir | --infodi | --infod | --info | --inf)
1075    ac_prev=infodir ;;
1076  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077    infodir=$ac_optarg ;;
1078
1079  -libdir | --libdir | --libdi | --libd)
1080    ac_prev=libdir ;;
1081  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082    libdir=$ac_optarg ;;
1083
1084  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085  | --libexe | --libex | --libe)
1086    ac_prev=libexecdir ;;
1087  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088  | --libexe=* | --libex=* | --libe=*)
1089    libexecdir=$ac_optarg ;;
1090
1091  -localedir | --localedir | --localedi | --localed | --locale)
1092    ac_prev=localedir ;;
1093  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094    localedir=$ac_optarg ;;
1095
1096  -localstatedir | --localstatedir | --localstatedi | --localstated \
1097  | --localstate | --localstat | --localsta | --localst | --locals)
1098    ac_prev=localstatedir ;;
1099  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101    localstatedir=$ac_optarg ;;
1102
1103  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104    ac_prev=mandir ;;
1105  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106    mandir=$ac_optarg ;;
1107
1108  -nfp | --nfp | --nf)
1109    # Obsolete; use --without-fp.
1110    with_fp=no ;;
1111
1112  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113  | --no-cr | --no-c | -n)
1114    no_create=yes ;;
1115
1116  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118    no_recursion=yes ;;
1119
1120  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122  | --oldin | --oldi | --old | --ol | --o)
1123    ac_prev=oldincludedir ;;
1124  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127    oldincludedir=$ac_optarg ;;
1128
1129  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130    ac_prev=prefix ;;
1131  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132    prefix=$ac_optarg ;;
1133
1134  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135  | --program-pre | --program-pr | --program-p)
1136    ac_prev=program_prefix ;;
1137  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139    program_prefix=$ac_optarg ;;
1140
1141  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142  | --program-suf | --program-su | --program-s)
1143    ac_prev=program_suffix ;;
1144  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146    program_suffix=$ac_optarg ;;
1147
1148  -program-transform-name | --program-transform-name \
1149  | --program-transform-nam | --program-transform-na \
1150  | --program-transform-n | --program-transform- \
1151  | --program-transform | --program-transfor \
1152  | --program-transfo | --program-transf \
1153  | --program-trans | --program-tran \
1154  | --progr-tra | --program-tr | --program-t)
1155    ac_prev=program_transform_name ;;
1156  -program-transform-name=* | --program-transform-name=* \
1157  | --program-transform-nam=* | --program-transform-na=* \
1158  | --program-transform-n=* | --program-transform-=* \
1159  | --program-transform=* | --program-transfor=* \
1160  | --program-transfo=* | --program-transf=* \
1161  | --program-trans=* | --program-tran=* \
1162  | --progr-tra=* | --program-tr=* | --program-t=*)
1163    program_transform_name=$ac_optarg ;;
1164
1165  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166    ac_prev=pdfdir ;;
1167  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168    pdfdir=$ac_optarg ;;
1169
1170  -psdir | --psdir | --psdi | --psd | --ps)
1171    ac_prev=psdir ;;
1172  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173    psdir=$ac_optarg ;;
1174
1175  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176  | -silent | --silent | --silen | --sile | --sil)
1177    silent=yes ;;
1178
1179  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180    ac_prev=sbindir ;;
1181  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182  | --sbi=* | --sb=*)
1183    sbindir=$ac_optarg ;;
1184
1185  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187  | --sharedst | --shareds | --shared | --share | --shar \
1188  | --sha | --sh)
1189    ac_prev=sharedstatedir ;;
1190  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193  | --sha=* | --sh=*)
1194    sharedstatedir=$ac_optarg ;;
1195
1196  -site | --site | --sit)
1197    ac_prev=site ;;
1198  -site=* | --site=* | --sit=*)
1199    site=$ac_optarg ;;
1200
1201  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202    ac_prev=srcdir ;;
1203  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204    srcdir=$ac_optarg ;;
1205
1206  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207  | --syscon | --sysco | --sysc | --sys | --sy)
1208    ac_prev=sysconfdir ;;
1209  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211    sysconfdir=$ac_optarg ;;
1212
1213  -target | --target | --targe | --targ | --tar | --ta | --t)
1214    ac_prev=target_alias ;;
1215  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216    target_alias=$ac_optarg ;;
1217
1218  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219    verbose=yes ;;
1220
1221  -version | --version | --versio | --versi | --vers | -V)
1222    ac_init_version=: ;;
1223
1224  -with-* | --with-*)
1225    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226    # Reject names that are not valid shell variable names.
1227    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1228      { echo "$as_me: error: invalid package name: $ac_package" >&2
1229   { (exit 1); exit 1; }; }
1230    ac_package=`echo $ac_package| sed 's/-/_/g'`
1231    eval with_$ac_package=\$ac_optarg ;;
1232
1233  -without-* | --without-*)
1234    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235    # Reject names that are not valid shell variable names.
1236    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1237      { echo "$as_me: error: invalid package name: $ac_package" >&2
1238   { (exit 1); exit 1; }; }
1239    ac_package=`echo $ac_package | sed 's/-/_/g'`
1240    eval with_$ac_package=no ;;
1241
1242  --x)
1243    # Obsolete; use --with-x.
1244    with_x=yes ;;
1245
1246  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247  | --x-incl | --x-inc | --x-in | --x-i)
1248    ac_prev=x_includes ;;
1249  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251    x_includes=$ac_optarg ;;
1252
1253  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255    ac_prev=x_libraries ;;
1256  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258    x_libraries=$ac_optarg ;;
1259
1260  -*) { echo "$as_me: error: unrecognized option: $ac_option
1261Try \`$0 --help' for more information." >&2
1262   { (exit 1); exit 1; }; }
1263    ;;
1264
1265  *=*)
1266    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267    # Reject names that are not valid shell variable names.
1268    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1269      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1270   { (exit 1); exit 1; }; }
1271    eval $ac_envvar=\$ac_optarg
1272    export $ac_envvar ;;
1273
1274  *)
1275    # FIXME: should be removed in autoconf 3.0.
1276    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1280    ;;
1281
1282  esac
1283done
1284
1285if test -n "$ac_prev"; then
1286  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287  { echo "$as_me: error: missing argument to $ac_option" >&2
1288   { (exit 1); exit 1; }; }
1289fi
1290
1291# Be sure to have absolute directory names.
1292for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293		datadir sysconfdir sharedstatedir localstatedir includedir \
1294		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295		libdir localedir mandir
1296do
1297  eval ac_val=\$$ac_var
1298  case $ac_val in
1299    [\\/$]* | ?:[\\/]* )  continue;;
1300    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301  esac
1302  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1303   { (exit 1); exit 1; }; }
1304done
1305
1306# There might be people who depend on the old broken behavior: `$host'
1307# used to hold the argument of --host etc.
1308# FIXME: To remove some day.
1309build=$build_alias
1310host=$host_alias
1311target=$target_alias
1312
1313# FIXME: To remove some day.
1314if test "x$host_alias" != x; then
1315  if test "x$build_alias" = x; then
1316    cross_compiling=maybe
1317    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1318    If a cross compiler is detected then cross compile mode will be used." >&2
1319  elif test "x$build_alias" != "x$host_alias"; then
1320    cross_compiling=yes
1321  fi
1322fi
1323
1324ac_tool_prefix=
1325test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327test "$silent" = yes && exec 6>/dev/null
1328
1329
1330ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331ac_ls_di=`ls -di .` &&
1332ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333  { echo "$as_me: error: Working directory cannot be determined" >&2
1334   { (exit 1); exit 1; }; }
1335test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336  { echo "$as_me: error: pwd does not report name of working directory" >&2
1337   { (exit 1); exit 1; }; }
1338
1339
1340# Find the source files, if location was not specified.
1341if test -z "$srcdir"; then
1342  ac_srcdir_defaulted=yes
1343  # Try the directory containing this script, then the parent directory.
1344  ac_confdir=`$as_dirname -- "$0" ||
1345$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346	 X"$0" : 'X\(//\)[^/]' \| \
1347	 X"$0" : 'X\(//\)$' \| \
1348	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1349echo X"$0" |
1350    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351	    s//\1/
1352	    q
1353	  }
1354	  /^X\(\/\/\)[^/].*/{
1355	    s//\1/
1356	    q
1357	  }
1358	  /^X\(\/\/\)$/{
1359	    s//\1/
1360	    q
1361	  }
1362	  /^X\(\/\).*/{
1363	    s//\1/
1364	    q
1365	  }
1366	  s/.*/./; q'`
1367  srcdir=$ac_confdir
1368  if test ! -r "$srcdir/$ac_unique_file"; then
1369    srcdir=..
1370  fi
1371else
1372  ac_srcdir_defaulted=no
1373fi
1374if test ! -r "$srcdir/$ac_unique_file"; then
1375  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1377   { (exit 1); exit 1; }; }
1378fi
1379ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380ac_abs_confdir=`(
1381	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1382   { (exit 1); exit 1; }; }
1383	pwd)`
1384# When building in place, set srcdir=.
1385if test "$ac_abs_confdir" = "$ac_pwd"; then
1386  srcdir=.
1387fi
1388# Remove unnecessary trailing slashes from srcdir.
1389# Double slashes in file names in object file debugging info
1390# mess up M-x gdb in Emacs.
1391case $srcdir in
1392*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393esac
1394for ac_var in $ac_precious_vars; do
1395  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396  eval ac_env_${ac_var}_value=\$${ac_var}
1397  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399done
1400
1401#
1402# Report the --help message.
1403#
1404if test "$ac_init_help" = "long"; then
1405  # Omit some internal or obsolete options to make the list less imposing.
1406  # This message is too long to be a string in the A/UX 3.1 sh.
1407  cat <<_ACEOF
1408\`configure' configures this package to adapt to many kinds of systems.
1409
1410Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413VAR=VALUE.  See below for descriptions of some of the useful variables.
1414
1415Defaults for the options are specified in brackets.
1416
1417Configuration:
1418  -h, --help              display this help and exit
1419      --help=short        display options specific to this package
1420      --help=recursive    display the short help of all the included packages
1421  -V, --version           display version information and exit
1422  -q, --quiet, --silent   do not print \`checking...' messages
1423      --cache-file=FILE   cache test results in FILE [disabled]
1424  -C, --config-cache      alias for \`--cache-file=config.cache'
1425  -n, --no-create         do not create output files
1426      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1427
1428Installation directories:
1429  --prefix=PREFIX         install architecture-independent files in PREFIX
1430			  [$ac_default_prefix]
1431  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1432			  [PREFIX]
1433
1434By default, \`make install' will install all the files in
1435\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1436an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437for instance \`--prefix=\$HOME'.
1438
1439For better control, use the options below.
1440
1441Fine tuning of the installation directories:
1442  --bindir=DIR           user executables [EPREFIX/bin]
1443  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1444  --libexecdir=DIR       program executables [EPREFIX/libexec]
1445  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1446  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1447  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1448  --libdir=DIR           object code libraries [EPREFIX/lib]
1449  --includedir=DIR       C header files [PREFIX/include]
1450  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1451  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1452  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1453  --infodir=DIR          info documentation [DATAROOTDIR/info]
1454  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1455  --mandir=DIR           man documentation [DATAROOTDIR/man]
1456  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1457  --htmldir=DIR          html documentation [DOCDIR]
1458  --dvidir=DIR           dvi documentation [DOCDIR]
1459  --pdfdir=DIR           pdf documentation [DOCDIR]
1460  --psdir=DIR            ps documentation [DOCDIR]
1461_ACEOF
1462
1463  cat <<\_ACEOF
1464
1465Program names:
1466  --program-prefix=PREFIX            prepend PREFIX to installed program names
1467  --program-suffix=SUFFIX            append SUFFIX to installed program names
1468  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1469
1470X features:
1471  --x-includes=DIR    X include files are in DIR
1472  --x-libraries=DIR   X library files are in DIR
1473
1474System types:
1475  --build=BUILD     configure for building on BUILD [guessed]
1476  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1477  --target=TARGET   configure for building compilers for TARGET [HOST]
1478_ACEOF
1479fi
1480
1481if test -n "$ac_init_help"; then
1482
1483  cat <<\_ACEOF
1484
1485Optional Features:
1486  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1487  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1488  --enable-maintainer-mode  enable make rules and dependencies not useful
1489			  (and sometimes confusing) to the casual installer
1490  --disable-dependency-tracking  speeds up one-time build
1491  --enable-dependency-tracking   do not reject slow dependency extractors
1492  --enable-shared[=PKGS]  build shared libraries [default=yes]
1493  --enable-static[=PKGS]  build static libraries [default=yes]
1494  --enable-fast-install[=PKGS]
1495                          optimize for fast installation [default=yes]
1496  --disable-libtool-lock  avoid locking (might break parallel builds)
1497  --disable-asm           disable use of architecture specific assembly code
1498  --enable-sdl            enable use of SDL for display
1499  --disable-gtk           disable use of gtk for display
1500  --disable-xv            disable use of XVideo extension for display
1501  --enable-gprof          enable compiler options for gprof profiling
1502  --disable-sdltest       Do not try to compile and run a test SDL program
1503
1504Optional Packages:
1505  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1506  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1507  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1508  --with-pic              try to use only PIC/non-PIC objects [default=use
1509                          both]
1510  --with-tags[=TAGS]      include additional configurations [automatic]
1511  --with-pal-yuv=(YV12|YUY2)  Select YUV format for IEC PAL (YUY2 by default)
1512  --with-debug=level    Enable debugging.
1513  --without-debug	  Disable debugging (default).
1514  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1515  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1516  --with-x                use the X Window System
1517
1518Some influential environment variables:
1519  CC          C compiler command
1520  CFLAGS      C compiler flags
1521  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1522              nonstandard directory <lib dir>
1523  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1524              you have headers in a nonstandard directory <include dir>
1525  CCAS        assembler compiler command (defaults to CC)
1526  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1527  CPP         C preprocessor
1528  CXX         C++ compiler command
1529  CXXFLAGS    C++ compiler flags
1530  CXXCPP      C++ preprocessor
1531  F77         Fortran 77 compiler command
1532  FFLAGS      Fortran 77 compiler flags
1533  PKG_CONFIG  path to pkg-config utility
1534  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1535  GTK_LIBS    linker flags for GTK, overriding pkg-config
1536  XMKMF       Path to xmkmf, Makefile generator for X Window System
1537
1538Use these variables to override the choices made by `configure' or to help
1539it to find libraries and programs with nonstandard names/locations.
1540
1541_ACEOF
1542ac_status=$?
1543fi
1544
1545if test "$ac_init_help" = "recursive"; then
1546  # If there are subdirs, report their specific --help.
1547  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548    test -d "$ac_dir" || continue
1549    ac_builddir=.
1550
1551case "$ac_dir" in
1552.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553*)
1554  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1555  # A ".." for each directory in $ac_dir_suffix.
1556  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1557  case $ac_top_builddir_sub in
1558  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560  esac ;;
1561esac
1562ac_abs_top_builddir=$ac_pwd
1563ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564# for backward compatibility:
1565ac_top_builddir=$ac_top_build_prefix
1566
1567case $srcdir in
1568  .)  # We are building in place.
1569    ac_srcdir=.
1570    ac_top_srcdir=$ac_top_builddir_sub
1571    ac_abs_top_srcdir=$ac_pwd ;;
1572  [\\/]* | ?:[\\/]* )  # Absolute name.
1573    ac_srcdir=$srcdir$ac_dir_suffix;
1574    ac_top_srcdir=$srcdir
1575    ac_abs_top_srcdir=$srcdir ;;
1576  *) # Relative name.
1577    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578    ac_top_srcdir=$ac_top_build_prefix$srcdir
1579    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580esac
1581ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583    cd "$ac_dir" || { ac_status=$?; continue; }
1584    # Check for guested configure.
1585    if test -f "$ac_srcdir/configure.gnu"; then
1586      echo &&
1587      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588    elif test -f "$ac_srcdir/configure"; then
1589      echo &&
1590      $SHELL "$ac_srcdir/configure" --help=recursive
1591    else
1592      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593    fi || ac_status=$?
1594    cd "$ac_pwd" || { ac_status=$?; break; }
1595  done
1596fi
1597
1598test -n "$ac_init_help" && exit $ac_status
1599if $ac_init_version; then
1600  cat <<\_ACEOF
1601configure
1602generated by GNU Autoconf 2.60
1603
1604Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16052002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1606This configure script is free software; the Free Software Foundation
1607gives unlimited permission to copy, distribute and modify it.
1608_ACEOF
1609  exit
1610fi
1611cat >config.log <<_ACEOF
1612This file contains any messages produced by compilers while
1613running configure, to aid debugging if configure makes a mistake.
1614
1615It was created by $as_me, which was
1616generated by GNU Autoconf 2.60.  Invocation command line was
1617
1618  $ $0 $@
1619
1620_ACEOF
1621exec 5>>config.log
1622{
1623cat <<_ASUNAME
1624## --------- ##
1625## Platform. ##
1626## --------- ##
1627
1628hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1629uname -m = `(uname -m) 2>/dev/null || echo unknown`
1630uname -r = `(uname -r) 2>/dev/null || echo unknown`
1631uname -s = `(uname -s) 2>/dev/null || echo unknown`
1632uname -v = `(uname -v) 2>/dev/null || echo unknown`
1633
1634/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1635/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1636
1637/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1638/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1639/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1640/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1641/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1642/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1643/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1644
1645_ASUNAME
1646
1647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648for as_dir in $PATH
1649do
1650  IFS=$as_save_IFS
1651  test -z "$as_dir" && as_dir=.
1652  echo "PATH: $as_dir"
1653done
1654IFS=$as_save_IFS
1655
1656} >&5
1657
1658cat >&5 <<_ACEOF
1659
1660
1661## ----------- ##
1662## Core tests. ##
1663## ----------- ##
1664
1665_ACEOF
1666
1667
1668# Keep a trace of the command line.
1669# Strip out --no-create and --no-recursion so they do not pile up.
1670# Strip out --silent because we don't want to record it for future runs.
1671# Also quote any args containing shell meta-characters.
1672# Make two passes to allow for proper duplicate-argument suppression.
1673ac_configure_args=
1674ac_configure_args0=
1675ac_configure_args1=
1676ac_must_keep_next=false
1677for ac_pass in 1 2
1678do
1679  for ac_arg
1680  do
1681    case $ac_arg in
1682    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1683    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1684    | -silent | --silent | --silen | --sile | --sil)
1685      continue ;;
1686    *\'*)
1687      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1688    esac
1689    case $ac_pass in
1690    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1691    2)
1692      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1693      if test $ac_must_keep_next = true; then
1694	ac_must_keep_next=false # Got value, back to normal.
1695      else
1696	case $ac_arg in
1697	  *=* | --config-cache | -C | -disable-* | --disable-* \
1698	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1699	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1700	  | -with-* | --with-* | -without-* | --without-* | --x)
1701	    case "$ac_configure_args0 " in
1702	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1703	    esac
1704	    ;;
1705	  -* ) ac_must_keep_next=true ;;
1706	esac
1707      fi
1708      ac_configure_args="$ac_configure_args '$ac_arg'"
1709      ;;
1710    esac
1711  done
1712done
1713$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1714$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1715
1716# When interrupted or exit'd, cleanup temporary files, and complete
1717# config.log.  We remove comments because anyway the quotes in there
1718# would cause problems or look ugly.
1719# WARNING: Use '\'' to represent an apostrophe within the trap.
1720# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1721trap 'exit_status=$?
1722  # Save into config.log some information that might help in debugging.
1723  {
1724    echo
1725
1726    cat <<\_ASBOX
1727## ---------------- ##
1728## Cache variables. ##
1729## ---------------- ##
1730_ASBOX
1731    echo
1732    # The following way of writing the cache mishandles newlines in values,
1733(
1734  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1735    eval ac_val=\$$ac_var
1736    case $ac_val in #(
1737    *${as_nl}*)
1738      case $ac_var in #(
1739      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1740echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1741      esac
1742      case $ac_var in #(
1743      _ | IFS | as_nl) ;; #(
1744      *) $as_unset $ac_var ;;
1745      esac ;;
1746    esac
1747  done
1748  (set) 2>&1 |
1749    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1750    *${as_nl}ac_space=\ *)
1751      sed -n \
1752	"s/'\''/'\''\\\\'\'''\''/g;
1753	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1754      ;; #(
1755    *)
1756      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1757      ;;
1758    esac |
1759    sort
1760)
1761    echo
1762
1763    cat <<\_ASBOX
1764## ----------------- ##
1765## Output variables. ##
1766## ----------------- ##
1767_ASBOX
1768    echo
1769    for ac_var in $ac_subst_vars
1770    do
1771      eval ac_val=\$$ac_var
1772      case $ac_val in
1773      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774      esac
1775      echo "$ac_var='\''$ac_val'\''"
1776    done | sort
1777    echo
1778
1779    if test -n "$ac_subst_files"; then
1780      cat <<\_ASBOX
1781## ------------------- ##
1782## File substitutions. ##
1783## ------------------- ##
1784_ASBOX
1785      echo
1786      for ac_var in $ac_subst_files
1787      do
1788	eval ac_val=\$$ac_var
1789	case $ac_val in
1790	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1791	esac
1792	echo "$ac_var='\''$ac_val'\''"
1793      done | sort
1794      echo
1795    fi
1796
1797    if test -s confdefs.h; then
1798      cat <<\_ASBOX
1799## ----------- ##
1800## confdefs.h. ##
1801## ----------- ##
1802_ASBOX
1803      echo
1804      cat confdefs.h
1805      echo
1806    fi
1807    test "$ac_signal" != 0 &&
1808      echo "$as_me: caught signal $ac_signal"
1809    echo "$as_me: exit $exit_status"
1810  } >&5
1811  rm -f core *.core core.conftest.* &&
1812    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1813    exit $exit_status
1814' 0
1815for ac_signal in 1 2 13 15; do
1816  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1817done
1818ac_signal=0
1819
1820# confdefs.h avoids OS command line length limits that DEFS can exceed.
1821rm -f -r conftest* confdefs.h
1822
1823# Predefined preprocessor variables.
1824
1825cat >>confdefs.h <<_ACEOF
1826#define PACKAGE_NAME "$PACKAGE_NAME"
1827_ACEOF
1828
1829
1830cat >>confdefs.h <<_ACEOF
1831#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1832_ACEOF
1833
1834
1835cat >>confdefs.h <<_ACEOF
1836#define PACKAGE_VERSION "$PACKAGE_VERSION"
1837_ACEOF
1838
1839
1840cat >>confdefs.h <<_ACEOF
1841#define PACKAGE_STRING "$PACKAGE_STRING"
1842_ACEOF
1843
1844
1845cat >>confdefs.h <<_ACEOF
1846#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1847_ACEOF
1848
1849
1850# Let the site file select an alternate cache file if it wants to.
1851# Prefer explicitly selected file to automatically selected ones.
1852if test -n "$CONFIG_SITE"; then
1853  set x "$CONFIG_SITE"
1854elif test "x$prefix" != xNONE; then
1855  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1856else
1857  set x "$ac_default_prefix/share/config.site" \
1858	"$ac_default_prefix/etc/config.site"
1859fi
1860shift
1861for ac_site_file
1862do
1863  if test -r "$ac_site_file"; then
1864    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1865echo "$as_me: loading site script $ac_site_file" >&6;}
1866    sed 's/^/| /' "$ac_site_file" >&5
1867    . "$ac_site_file"
1868  fi
1869done
1870
1871if test -r "$cache_file"; then
1872  # Some versions of bash will fail to source /dev/null (special
1873  # files actually), so we avoid doing that.
1874  if test -f "$cache_file"; then
1875    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1876echo "$as_me: loading cache $cache_file" >&6;}
1877    case $cache_file in
1878      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1879      *)                      . "./$cache_file";;
1880    esac
1881  fi
1882else
1883  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1884echo "$as_me: creating cache $cache_file" >&6;}
1885  >$cache_file
1886fi
1887
1888# Check that the precious variables saved in the cache have kept the same
1889# value.
1890ac_cache_corrupted=false
1891for ac_var in $ac_precious_vars; do
1892  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1893  eval ac_new_set=\$ac_env_${ac_var}_set
1894  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1895  eval ac_new_val=\$ac_env_${ac_var}_value
1896  case $ac_old_set,$ac_new_set in
1897    set,)
1898      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1899echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1900      ac_cache_corrupted=: ;;
1901    ,set)
1902      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1903echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1904      ac_cache_corrupted=: ;;
1905    ,);;
1906    *)
1907      if test "x$ac_old_val" != "x$ac_new_val"; then
1908	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1909echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1910	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1911echo "$as_me:   former value:  $ac_old_val" >&2;}
1912	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1913echo "$as_me:   current value: $ac_new_val" >&2;}
1914	ac_cache_corrupted=:
1915      fi;;
1916  esac
1917  # Pass precious variables to config.status.
1918  if test "$ac_new_set" = set; then
1919    case $ac_new_val in
1920    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1921    *) ac_arg=$ac_var=$ac_new_val ;;
1922    esac
1923    case " $ac_configure_args " in
1924      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1925      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1926    esac
1927  fi
1928done
1929if $ac_cache_corrupted; then
1930  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1931echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1932  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1933echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1934   { (exit 1); exit 1; }; }
1935fi
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953ac_ext=c
1954ac_cpp='$CPP $CPPFLAGS'
1955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1957ac_compiler_gnu=$ac_cv_c_compiler_gnu
1958
1959
1960ac_config_headers="$ac_config_headers config.h"
1961
1962
1963RPM_RELEASE=1
1964ac_aux_dir=
1965for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1966  if test -f "$ac_dir/install-sh"; then
1967    ac_aux_dir=$ac_dir
1968    ac_install_sh="$ac_aux_dir/install-sh -c"
1969    break
1970  elif test -f "$ac_dir/install.sh"; then
1971    ac_aux_dir=$ac_dir
1972    ac_install_sh="$ac_aux_dir/install.sh -c"
1973    break
1974  elif test -f "$ac_dir/shtool"; then
1975    ac_aux_dir=$ac_dir
1976    ac_install_sh="$ac_aux_dir/shtool install -c"
1977    break
1978  fi
1979done
1980if test -z "$ac_aux_dir"; then
1981  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1982echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1983   { (exit 1); exit 1; }; }
1984fi
1985
1986# These three variables are undocumented and unsupported,
1987# and are intended to be withdrawn in a future Autoconf release.
1988# They can cause serious problems if a builder's source tree is in a directory
1989# whose full name contains unusual characters.
1990ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1991ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1992ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1993
1994
1995# Make sure we can run config.sub.
1996$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1997  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1998echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1999   { (exit 1); exit 1; }; }
2000
2001{ echo "$as_me:$LINENO: checking build system type" >&5
2002echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2003if test "${ac_cv_build+set}" = set; then
2004  echo $ECHO_N "(cached) $ECHO_C" >&6
2005else
2006  ac_build_alias=$build_alias
2007test "x$ac_build_alias" = x &&
2008  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2009test "x$ac_build_alias" = x &&
2010  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2011echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2012   { (exit 1); exit 1; }; }
2013ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2014  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2015echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2016   { (exit 1); exit 1; }; }
2017
2018fi
2019{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2020echo "${ECHO_T}$ac_cv_build" >&6; }
2021case $ac_cv_build in
2022*-*-*) ;;
2023*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2024echo "$as_me: error: invalid value of canonical build" >&2;}
2025   { (exit 1); exit 1; }; };;
2026esac
2027build=$ac_cv_build
2028ac_save_IFS=$IFS; IFS='-'
2029set x $ac_cv_build
2030shift
2031build_cpu=$1
2032build_vendor=$2
2033shift; shift
2034# Remember, the first character of IFS is used to create $*,
2035# except with old shells:
2036build_os=$*
2037IFS=$ac_save_IFS
2038case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2039
2040
2041{ echo "$as_me:$LINENO: checking host system type" >&5
2042echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2043if test "${ac_cv_host+set}" = set; then
2044  echo $ECHO_N "(cached) $ECHO_C" >&6
2045else
2046  if test "x$host_alias" = x; then
2047  ac_cv_host=$ac_cv_build
2048else
2049  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2050    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2051echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2052   { (exit 1); exit 1; }; }
2053fi
2054
2055fi
2056{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2057echo "${ECHO_T}$ac_cv_host" >&6; }
2058case $ac_cv_host in
2059*-*-*) ;;
2060*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2061echo "$as_me: error: invalid value of canonical host" >&2;}
2062   { (exit 1); exit 1; }; };;
2063esac
2064host=$ac_cv_host
2065ac_save_IFS=$IFS; IFS='-'
2066set x $ac_cv_host
2067shift
2068host_cpu=$1
2069host_vendor=$2
2070shift; shift
2071# Remember, the first character of IFS is used to create $*,
2072# except with old shells:
2073host_os=$*
2074IFS=$ac_save_IFS
2075case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2076
2077
2078{ echo "$as_me:$LINENO: checking target system type" >&5
2079echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2080if test "${ac_cv_target+set}" = set; then
2081  echo $ECHO_N "(cached) $ECHO_C" >&6
2082else
2083  if test "x$target_alias" = x; then
2084  ac_cv_target=$ac_cv_host
2085else
2086  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2087    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2088echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2089   { (exit 1); exit 1; }; }
2090fi
2091
2092fi
2093{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2094echo "${ECHO_T}$ac_cv_target" >&6; }
2095case $ac_cv_target in
2096*-*-*) ;;
2097*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2098echo "$as_me: error: invalid value of canonical target" >&2;}
2099   { (exit 1); exit 1; }; };;
2100esac
2101target=$ac_cv_target
2102ac_save_IFS=$IFS; IFS='-'
2103set x $ac_cv_target
2104shift
2105target_cpu=$1
2106target_vendor=$2
2107shift; shift
2108# Remember, the first character of IFS is used to create $*,
2109# except with old shells:
2110target_os=$*
2111IFS=$ac_save_IFS
2112case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2113
2114
2115# The aliases save the names the user supplied, while $host etc.
2116# will get canonicalized.
2117test -n "$target_alias" &&
2118  test "$program_prefix$program_suffix$program_transform_name" = \
2119    NONENONEs,x,x, &&
2120  program_prefix=${target_alias}-
2121am__api_version="1.9"
2122# Find a good install program.  We prefer a C program (faster),
2123# so one script is as good as another.  But avoid the broken or
2124# incompatible versions:
2125# SysV /etc/install, /usr/sbin/install
2126# SunOS /usr/etc/install
2127# IRIX /sbin/install
2128# AIX /bin/install
2129# AmigaOS /C/install, which installs bootblocks on floppy discs
2130# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2131# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2132# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2133# OS/2's system install, which has a completely different semantic
2134# ./install, which can be erroneously created by make from ./install.sh.
2135{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2136echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2137if test -z "$INSTALL"; then
2138if test "${ac_cv_path_install+set}" = set; then
2139  echo $ECHO_N "(cached) $ECHO_C" >&6
2140else
2141  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142for as_dir in $PATH
2143do
2144  IFS=$as_save_IFS
2145  test -z "$as_dir" && as_dir=.
2146  # Account for people who put trailing slashes in PATH elements.
2147case $as_dir/ in
2148  ./ | .// | /cC/* | \
2149  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2150  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2151  /usr/ucb/* ) ;;
2152  *)
2153    # OSF1 and SCO ODT 3.0 have their own names for install.
2154    # Don't use installbsd from OSF since it installs stuff as root
2155    # by default.
2156    for ac_prog in ginstall scoinst install; do
2157      for ac_exec_ext in '' $ac_executable_extensions; do
2158	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2159	  if test $ac_prog = install &&
2160	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161	    # AIX install.  It has an incompatible calling convention.
2162	    :
2163	  elif test $ac_prog = install &&
2164	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165	    # program-specific install script used by HP pwplus--don't use.
2166	    :
2167	  else
2168	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2169	    break 3
2170	  fi
2171	fi
2172      done
2173    done
2174    ;;
2175esac
2176done
2177IFS=$as_save_IFS
2178
2179
2180fi
2181  if test "${ac_cv_path_install+set}" = set; then
2182    INSTALL=$ac_cv_path_install
2183  else
2184    # As a last resort, use the slow shell script.  Don't cache a
2185    # value for INSTALL within a source directory, because that will
2186    # break other packages using the cache if that directory is
2187    # removed, or if the value is a relative name.
2188    INSTALL=$ac_install_sh
2189  fi
2190fi
2191{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2192echo "${ECHO_T}$INSTALL" >&6; }
2193
2194# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2195# It thinks the first close brace ends the variable substitution.
2196test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2197
2198test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2199
2200test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2201
2202{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2203echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2204# Just in case
2205sleep 1
2206echo timestamp > conftest.file
2207# Do `set' in a subshell so we don't clobber the current shell's
2208# arguments.  Must try -L first in case configure is actually a
2209# symlink; some systems play weird games with the mod time of symlinks
2210# (eg FreeBSD returns the mod time of the symlink's containing
2211# directory).
2212if (
2213   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2214   if test "$*" = "X"; then
2215      # -L didn't work.
2216      set X `ls -t $srcdir/configure conftest.file`
2217   fi
2218   rm -f conftest.file
2219   if test "$*" != "X $srcdir/configure conftest.file" \
2220      && test "$*" != "X conftest.file $srcdir/configure"; then
2221
2222      # If neither matched, then we have a broken ls.  This can happen
2223      # if, for instance, CONFIG_SHELL is bash and it inherits a
2224      # broken ls alias from the environment.  This has actually
2225      # happened.  Such a system could not be considered "sane".
2226      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2227alias in your environment" >&5
2228echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2229alias in your environment" >&2;}
2230   { (exit 1); exit 1; }; }
2231   fi
2232
2233   test "$2" = conftest.file
2234   )
2235then
2236   # Ok.
2237   :
2238else
2239   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2240Check your system clock" >&5
2241echo "$as_me: error: newly created file is older than distributed files!
2242Check your system clock" >&2;}
2243   { (exit 1); exit 1; }; }
2244fi
2245{ echo "$as_me:$LINENO: result: yes" >&5
2246echo "${ECHO_T}yes" >&6; }
2247test "$program_prefix" != NONE &&
2248  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2249# Use a double $ so make ignores it.
2250test "$program_suffix" != NONE &&
2251  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2252# Double any \ or $.  echo might interpret backslashes.
2253# By default was `s,x,x', remove it if useless.
2254cat <<\_ACEOF >conftest.sed
2255s/[\\$]/&&/g;s/;s,x,x,$//
2256_ACEOF
2257program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2258rm -f conftest.sed
2259
2260# expand $ac_aux_dir to an absolute path
2261am_aux_dir=`cd $ac_aux_dir && pwd`
2262
2263test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2264# Use eval to expand $SHELL
2265if eval "$MISSING --run true"; then
2266  am_missing_run="$MISSING --run "
2267else
2268  am_missing_run=
2269  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2270echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2271fi
2272
2273if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2274  # We used to keeping the `.' as first argument, in order to
2275  # allow $(mkdir_p) to be used without argument.  As in
2276  #   $(mkdir_p) $(somedir)
2277  # where $(somedir) is conditionally defined.  However this is wrong
2278  # for two reasons:
2279  #  1. if the package is installed by a user who cannot write `.'
2280  #     make install will fail,
2281  #  2. the above comment should most certainly read
2282  #     $(mkdir_p) $(DESTDIR)$(somedir)
2283  #     so it does not work when $(somedir) is undefined and
2284  #     $(DESTDIR) is not.
2285  #  To support the latter case, we have to write
2286  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2287  #  so the `.' trick is pointless.
2288  mkdir_p='mkdir -p --'
2289else
2290  # On NextStep and OpenStep, the `mkdir' command does not
2291  # recognize any option.  It will interpret all options as
2292  # directories to create, and then abort because `.' already
2293  # exists.
2294  for d in ./-p ./--version;
2295  do
2296    test -d $d && rmdir $d
2297  done
2298  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2299  if test -f "$ac_aux_dir/mkinstalldirs"; then
2300    mkdir_p='$(mkinstalldirs)'
2301  else
2302    mkdir_p='$(install_sh) -d'
2303  fi
2304fi
2305
2306for ac_prog in gawk mawk nawk awk
2307do
2308  # Extract the first word of "$ac_prog", so it can be a program name with args.
2309set dummy $ac_prog; ac_word=$2
2310{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2312if test "${ac_cv_prog_AWK+set}" = set; then
2313  echo $ECHO_N "(cached) $ECHO_C" >&6
2314else
2315  if test -n "$AWK"; then
2316  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2317else
2318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319for as_dir in $PATH
2320do
2321  IFS=$as_save_IFS
2322  test -z "$as_dir" && as_dir=.
2323  for ac_exec_ext in '' $ac_executable_extensions; do
2324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2325    ac_cv_prog_AWK="$ac_prog"
2326    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327    break 2
2328  fi
2329done
2330done
2331IFS=$as_save_IFS
2332
2333fi
2334fi
2335AWK=$ac_cv_prog_AWK
2336if test -n "$AWK"; then
2337  { echo "$as_me:$LINENO: result: $AWK" >&5
2338echo "${ECHO_T}$AWK" >&6; }
2339else
2340  { echo "$as_me:$LINENO: result: no" >&5
2341echo "${ECHO_T}no" >&6; }
2342fi
2343
2344
2345  test -n "$AWK" && break
2346done
2347
2348{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2349echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2350set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2351if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2352  echo $ECHO_N "(cached) $ECHO_C" >&6
2353else
2354  cat >conftest.make <<\_ACEOF
2355SHELL = /bin/sh
2356all:
2357	@echo '@@@%%%=$(MAKE)=@@@%%%'
2358_ACEOF
2359# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2360case `${MAKE-make} -f conftest.make 2>/dev/null` in
2361  *@@@%%%=?*=@@@%%%*)
2362    eval ac_cv_prog_make_${ac_make}_set=yes;;
2363  *)
2364    eval ac_cv_prog_make_${ac_make}_set=no;;
2365esac
2366rm -f conftest.make
2367fi
2368if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2369  { echo "$as_me:$LINENO: result: yes" >&5
2370echo "${ECHO_T}yes" >&6; }
2371  SET_MAKE=
2372else
2373  { echo "$as_me:$LINENO: result: no" >&5
2374echo "${ECHO_T}no" >&6; }
2375  SET_MAKE="MAKE=${MAKE-make}"
2376fi
2377
2378rm -rf .tst 2>/dev/null
2379mkdir .tst 2>/dev/null
2380if test -d .tst; then
2381  am__leading_dot=.
2382else
2383  am__leading_dot=_
2384fi
2385rmdir .tst 2>/dev/null
2386
2387# test to see if srcdir already configured
2388if test "`cd $srcdir && pwd`" != "`pwd`" &&
2389   test -f $srcdir/config.status; then
2390  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2391echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2392   { (exit 1); exit 1; }; }
2393fi
2394
2395# test whether we have cygpath
2396if test -z "$CYGPATH_W"; then
2397  if (cygpath --version) >/dev/null 2>/dev/null; then
2398    CYGPATH_W='cygpath -w'
2399  else
2400    CYGPATH_W=echo
2401  fi
2402fi
2403
2404
2405# Define the identity of the package.
2406 PACKAGE=libdv
2407 VERSION=1.0.0
2408
2409
2410cat >>confdefs.h <<_ACEOF
2411#define PACKAGE "$PACKAGE"
2412_ACEOF
2413
2414
2415cat >>confdefs.h <<_ACEOF
2416#define VERSION "$VERSION"
2417_ACEOF
2418
2419# Some tools Automake needs.
2420
2421ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2422
2423
2424AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2425
2426
2427AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2428
2429
2430AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2431
2432
2433MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2434
2435install_sh=${install_sh-"$am_aux_dir/install-sh"}
2436
2437# Installed binaries are usually stripped using `strip' when the user
2438# run `make install-strip'.  However `strip' might not be the right
2439# tool to use in cross-compilation environments, therefore Automake
2440# will honor the `STRIP' environment variable to overrule this program.
2441if test "$cross_compiling" != no; then
2442  if test -n "$ac_tool_prefix"; then
2443  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2444set dummy ${ac_tool_prefix}strip; ac_word=$2
2445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447if test "${ac_cv_prog_STRIP+set}" = set; then
2448  echo $ECHO_N "(cached) $ECHO_C" >&6
2449else
2450  if test -n "$STRIP"; then
2451  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2452else
2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456  IFS=$as_save_IFS
2457  test -z "$as_dir" && as_dir=.
2458  for ac_exec_ext in '' $ac_executable_extensions; do
2459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2460    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2461    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462    break 2
2463  fi
2464done
2465done
2466IFS=$as_save_IFS
2467
2468fi
2469fi
2470STRIP=$ac_cv_prog_STRIP
2471if test -n "$STRIP"; then
2472  { echo "$as_me:$LINENO: result: $STRIP" >&5
2473echo "${ECHO_T}$STRIP" >&6; }
2474else
2475  { echo "$as_me:$LINENO: result: no" >&5
2476echo "${ECHO_T}no" >&6; }
2477fi
2478
2479
2480fi
2481if test -z "$ac_cv_prog_STRIP"; then
2482  ac_ct_STRIP=$STRIP
2483  # Extract the first word of "strip", so it can be a program name with args.
2484set dummy strip; ac_word=$2
2485{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2488  echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490  if test -n "$ac_ct_STRIP"; then
2491  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2492else
2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494for as_dir in $PATH
2495do
2496  IFS=$as_save_IFS
2497  test -z "$as_dir" && as_dir=.
2498  for ac_exec_ext in '' $ac_executable_extensions; do
2499  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2500    ac_cv_prog_ac_ct_STRIP="strip"
2501    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502    break 2
2503  fi
2504done
2505done
2506IFS=$as_save_IFS
2507
2508fi
2509fi
2510ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2511if test -n "$ac_ct_STRIP"; then
2512  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2513echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2514else
2515  { echo "$as_me:$LINENO: result: no" >&5
2516echo "${ECHO_T}no" >&6; }
2517fi
2518
2519  if test "x$ac_ct_STRIP" = x; then
2520    STRIP=":"
2521  else
2522    case $cross_compiling:$ac_tool_warned in
2523yes:)
2524{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2525whose name does not start with the host triplet.  If you think this
2526configuration is useful to you, please write to autoconf@gnu.org." >&5
2527echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2528whose name does not start with the host triplet.  If you think this
2529configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2530ac_tool_warned=yes ;;
2531esac
2532    STRIP=$ac_ct_STRIP
2533  fi
2534else
2535  STRIP="$ac_cv_prog_STRIP"
2536fi
2537
2538fi
2539INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2540
2541# We need awk for the "check" target.  The system "awk" is bad on
2542# some platforms.
2543# Always define AMTAR for backward compatibility.
2544
2545AMTAR=${AMTAR-"${am_missing_run}tar"}
2546
2547am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2548
2549
2550
2551
2552
2553
2554{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2555echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2556    # Check whether --enable-maintainer-mode was given.
2557if test "${enable_maintainer_mode+set}" = set; then
2558  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2559else
2560  USE_MAINTAINER_MODE=no
2561fi
2562
2563  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2564echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2565
2566
2567if test $USE_MAINTAINER_MODE = yes; then
2568  MAINTAINER_MODE_TRUE=
2569  MAINTAINER_MODE_FALSE='#'
2570else
2571  MAINTAINER_MODE_TRUE='#'
2572  MAINTAINER_MODE_FALSE=
2573fi
2574
2575  MAINT=$MAINTAINER_MODE_TRUE
2576
2577
2578pic_mode=no
2579
2580
2581
2582
2583ac_ext=c
2584ac_cpp='$CPP $CPPFLAGS'
2585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588if test -n "$ac_tool_prefix"; then
2589  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2590set dummy ${ac_tool_prefix}gcc; ac_word=$2
2591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593if test "${ac_cv_prog_CC+set}" = set; then
2594  echo $ECHO_N "(cached) $ECHO_C" >&6
2595else
2596  if test -n "$CC"; then
2597  ac_cv_prog_CC="$CC" # Let the user override the test.
2598else
2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600for as_dir in $PATH
2601do
2602  IFS=$as_save_IFS
2603  test -z "$as_dir" && as_dir=.
2604  for ac_exec_ext in '' $ac_executable_extensions; do
2605  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2606    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2607    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608    break 2
2609  fi
2610done
2611done
2612IFS=$as_save_IFS
2613
2614fi
2615fi
2616CC=$ac_cv_prog_CC
2617if test -n "$CC"; then
2618  { echo "$as_me:$LINENO: result: $CC" >&5
2619echo "${ECHO_T}$CC" >&6; }
2620else
2621  { echo "$as_me:$LINENO: result: no" >&5
2622echo "${ECHO_T}no" >&6; }
2623fi
2624
2625
2626fi
2627if test -z "$ac_cv_prog_CC"; then
2628  ac_ct_CC=$CC
2629  # Extract the first word of "gcc", so it can be a program name with args.
2630set dummy gcc; ac_word=$2
2631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2633if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2634  echo $ECHO_N "(cached) $ECHO_C" >&6
2635else
2636  if test -n "$ac_ct_CC"; then
2637  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2638else
2639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642  IFS=$as_save_IFS
2643  test -z "$as_dir" && as_dir=.
2644  for ac_exec_ext in '' $ac_executable_extensions; do
2645  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2646    ac_cv_prog_ac_ct_CC="gcc"
2647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648    break 2
2649  fi
2650done
2651done
2652IFS=$as_save_IFS
2653
2654fi
2655fi
2656ac_ct_CC=$ac_cv_prog_ac_ct_CC
2657if test -n "$ac_ct_CC"; then
2658  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2659echo "${ECHO_T}$ac_ct_CC" >&6; }
2660else
2661  { echo "$as_me:$LINENO: result: no" >&5
2662echo "${ECHO_T}no" >&6; }
2663fi
2664
2665  if test "x$ac_ct_CC" = x; then
2666    CC=""
2667  else
2668    case $cross_compiling:$ac_tool_warned in
2669yes:)
2670{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2671whose name does not start with the host triplet.  If you think this
2672configuration is useful to you, please write to autoconf@gnu.org." >&5
2673echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2674whose name does not start with the host triplet.  If you think this
2675configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2676ac_tool_warned=yes ;;
2677esac
2678    CC=$ac_ct_CC
2679  fi
2680else
2681  CC="$ac_cv_prog_CC"
2682fi
2683
2684if test -z "$CC"; then
2685          if test -n "$ac_tool_prefix"; then
2686    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2687set dummy ${ac_tool_prefix}cc; ac_word=$2
2688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2690if test "${ac_cv_prog_CC+set}" = set; then
2691  echo $ECHO_N "(cached) $ECHO_C" >&6
2692else
2693  if test -n "$CC"; then
2694  ac_cv_prog_CC="$CC" # Let the user override the test.
2695else
2696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697for as_dir in $PATH
2698do
2699  IFS=$as_save_IFS
2700  test -z "$as_dir" && as_dir=.
2701  for ac_exec_ext in '' $ac_executable_extensions; do
2702  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2703    ac_cv_prog_CC="${ac_tool_prefix}cc"
2704    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705    break 2
2706  fi
2707done
2708done
2709IFS=$as_save_IFS
2710
2711fi
2712fi
2713CC=$ac_cv_prog_CC
2714if test -n "$CC"; then
2715  { echo "$as_me:$LINENO: result: $CC" >&5
2716echo "${ECHO_T}$CC" >&6; }
2717else
2718  { echo "$as_me:$LINENO: result: no" >&5
2719echo "${ECHO_T}no" >&6; }
2720fi
2721
2722
2723  fi
2724fi
2725if test -z "$CC"; then
2726  # Extract the first word of "cc", so it can be a program name with args.
2727set dummy cc; ac_word=$2
2728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2730if test "${ac_cv_prog_CC+set}" = set; then
2731  echo $ECHO_N "(cached) $ECHO_C" >&6
2732else
2733  if test -n "$CC"; then
2734  ac_cv_prog_CC="$CC" # Let the user override the test.
2735else
2736  ac_prog_rejected=no
2737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738for as_dir in $PATH
2739do
2740  IFS=$as_save_IFS
2741  test -z "$as_dir" && as_dir=.
2742  for ac_exec_ext in '' $ac_executable_extensions; do
2743  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2744    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2745       ac_prog_rejected=yes
2746       continue
2747     fi
2748    ac_cv_prog_CC="cc"
2749    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750    break 2
2751  fi
2752done
2753done
2754IFS=$as_save_IFS
2755
2756if test $ac_prog_rejected = yes; then
2757  # We found a bogon in the path, so make sure we never use it.
2758  set dummy $ac_cv_prog_CC
2759  shift
2760  if test $# != 0; then
2761    # We chose a different compiler from the bogus one.
2762    # However, it has the same basename, so the bogon will be chosen
2763    # first if we set CC to just the basename; use the full file name.
2764    shift
2765    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2766  fi
2767fi
2768fi
2769fi
2770CC=$ac_cv_prog_CC
2771if test -n "$CC"; then
2772  { echo "$as_me:$LINENO: result: $CC" >&5
2773echo "${ECHO_T}$CC" >&6; }
2774else
2775  { echo "$as_me:$LINENO: result: no" >&5
2776echo "${ECHO_T}no" >&6; }
2777fi
2778
2779
2780fi
2781if test -z "$CC"; then
2782  if test -n "$ac_tool_prefix"; then
2783  for ac_prog in cl.exe
2784  do
2785    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2789if test "${ac_cv_prog_CC+set}" = set; then
2790  echo $ECHO_N "(cached) $ECHO_C" >&6
2791else
2792  if test -n "$CC"; then
2793  ac_cv_prog_CC="$CC" # Let the user override the test.
2794else
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798  IFS=$as_save_IFS
2799  test -z "$as_dir" && as_dir=.
2800  for ac_exec_ext in '' $ac_executable_extensions; do
2801  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2802    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2803    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804    break 2
2805  fi
2806done
2807done
2808IFS=$as_save_IFS
2809
2810fi
2811fi
2812CC=$ac_cv_prog_CC
2813if test -n "$CC"; then
2814  { echo "$as_me:$LINENO: result: $CC" >&5
2815echo "${ECHO_T}$CC" >&6; }
2816else
2817  { echo "$as_me:$LINENO: result: no" >&5
2818echo "${ECHO_T}no" >&6; }
2819fi
2820
2821
2822    test -n "$CC" && break
2823  done
2824fi
2825if test -z "$CC"; then
2826  ac_ct_CC=$CC
2827  for ac_prog in cl.exe
2828do
2829  # Extract the first word of "$ac_prog", so it can be a program name with args.
2830set dummy $ac_prog; ac_word=$2
2831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2834  echo $ECHO_N "(cached) $ECHO_C" >&6
2835else
2836  if test -n "$ac_ct_CC"; then
2837  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2838else
2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840for as_dir in $PATH
2841do
2842  IFS=$as_save_IFS
2843  test -z "$as_dir" && as_dir=.
2844  for ac_exec_ext in '' $ac_executable_extensions; do
2845  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2846    ac_cv_prog_ac_ct_CC="$ac_prog"
2847    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848    break 2
2849  fi
2850done
2851done
2852IFS=$as_save_IFS
2853
2854fi
2855fi
2856ac_ct_CC=$ac_cv_prog_ac_ct_CC
2857if test -n "$ac_ct_CC"; then
2858  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2859echo "${ECHO_T}$ac_ct_CC" >&6; }
2860else
2861  { echo "$as_me:$LINENO: result: no" >&5
2862echo "${ECHO_T}no" >&6; }
2863fi
2864
2865
2866  test -n "$ac_ct_CC" && break
2867done
2868
2869  if test "x$ac_ct_CC" = x; then
2870    CC=""
2871  else
2872    case $cross_compiling:$ac_tool_warned in
2873yes:)
2874{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2875whose name does not start with the host triplet.  If you think this
2876configuration is useful to you, please write to autoconf@gnu.org." >&5
2877echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2878whose name does not start with the host triplet.  If you think this
2879configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2880ac_tool_warned=yes ;;
2881esac
2882    CC=$ac_ct_CC
2883  fi
2884fi
2885
2886fi
2887
2888
2889test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2890See \`config.log' for more details." >&5
2891echo "$as_me: error: no acceptable C compiler found in \$PATH
2892See \`config.log' for more details." >&2;}
2893   { (exit 1); exit 1; }; }
2894
2895# Provide some information about the compiler.
2896echo "$as_me:$LINENO: checking for C compiler version" >&5
2897ac_compiler=`set X $ac_compile; echo $2`
2898{ (ac_try="$ac_compiler --version >&5"
2899case "(($ac_try" in
2900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901  *) ac_try_echo=$ac_try;;
2902esac
2903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904  (eval "$ac_compiler --version >&5") 2>&5
2905  ac_status=$?
2906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907  (exit $ac_status); }
2908{ (ac_try="$ac_compiler -v >&5"
2909case "(($ac_try" in
2910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911  *) ac_try_echo=$ac_try;;
2912esac
2913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914  (eval "$ac_compiler -v >&5") 2>&5
2915  ac_status=$?
2916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917  (exit $ac_status); }
2918{ (ac_try="$ac_compiler -V >&5"
2919case "(($ac_try" in
2920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921  *) ac_try_echo=$ac_try;;
2922esac
2923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924  (eval "$ac_compiler -V >&5") 2>&5
2925  ac_status=$?
2926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927  (exit $ac_status); }
2928
2929cat >conftest.$ac_ext <<_ACEOF
2930/* confdefs.h.  */
2931_ACEOF
2932cat confdefs.h >>conftest.$ac_ext
2933cat >>conftest.$ac_ext <<_ACEOF
2934/* end confdefs.h.  */
2935
2936int
2937main ()
2938{
2939
2940  ;
2941  return 0;
2942}
2943_ACEOF
2944ac_clean_files_save=$ac_clean_files
2945ac_clean_files="$ac_clean_files a.out a.exe b.out"
2946# Try to create an executable without -o first, disregard a.out.
2947# It will help us diagnose broken compilers, and finding out an intuition
2948# of exeext.
2949{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2950echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2951ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2952#
2953# List of possible output files, starting from the most likely.
2954# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2955# only as a last resort.  b.out is created by i960 compilers.
2956ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2957#
2958# The IRIX 6 linker writes into existing files which may not be
2959# executable, retaining their permissions.  Remove them first so a
2960# subsequent execution test works.
2961ac_rmfiles=
2962for ac_file in $ac_files
2963do
2964  case $ac_file in
2965    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2966    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2967  esac
2968done
2969rm -f $ac_rmfiles
2970
2971if { (ac_try="$ac_link_default"
2972case "(($ac_try" in
2973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974  *) ac_try_echo=$ac_try;;
2975esac
2976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977  (eval "$ac_link_default") 2>&5
2978  ac_status=$?
2979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980  (exit $ac_status); }; then
2981  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2982# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2983# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2984# so that the user can short-circuit this test for compilers unknown to
2985# Autoconf.
2986for ac_file in $ac_files
2987do
2988  test -f "$ac_file" || continue
2989  case $ac_file in
2990    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2991	;;
2992    [ab].out )
2993	# We found the default executable, but exeext='' is most
2994	# certainly right.
2995	break;;
2996    *.* )
2997        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2998	then :; else
2999	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3000	fi
3001	# We set ac_cv_exeext here because the later test for it is not
3002	# safe: cross compilers may not add the suffix if given an `-o'
3003	# argument, so we may need to know it at that point already.
3004	# Even if this section looks crufty: it has the advantage of
3005	# actually working.
3006	break;;
3007    * )
3008	break;;
3009  esac
3010done
3011test "$ac_cv_exeext" = no && ac_cv_exeext=
3012
3013else
3014  echo "$as_me: failed program was:" >&5
3015sed 's/^/| /' conftest.$ac_ext >&5
3016
3017{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3018See \`config.log' for more details." >&5
3019echo "$as_me: error: C compiler cannot create executables
3020See \`config.log' for more details." >&2;}
3021   { (exit 77); exit 77; }; }
3022fi
3023
3024ac_exeext=$ac_cv_exeext
3025{ echo "$as_me:$LINENO: result: $ac_file" >&5
3026echo "${ECHO_T}$ac_file" >&6; }
3027
3028# Check that the compiler produces executables we can run.  If not, either
3029# the compiler is broken, or we cross compile.
3030{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3031echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3032# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3033# If not cross compiling, check that we can run a simple program.
3034if test "$cross_compiling" != yes; then
3035  if { ac_try='./$ac_file'
3036  { (case "(($ac_try" in
3037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038  *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041  (eval "$ac_try") 2>&5
3042  ac_status=$?
3043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044  (exit $ac_status); }; }; then
3045    cross_compiling=no
3046  else
3047    if test "$cross_compiling" = maybe; then
3048	cross_compiling=yes
3049    else
3050	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3051If you meant to cross compile, use \`--host'.
3052See \`config.log' for more details." >&5
3053echo "$as_me: error: cannot run C compiled programs.
3054If you meant to cross compile, use \`--host'.
3055See \`config.log' for more details." >&2;}
3056   { (exit 1); exit 1; }; }
3057    fi
3058  fi
3059fi
3060{ echo "$as_me:$LINENO: result: yes" >&5
3061echo "${ECHO_T}yes" >&6; }
3062
3063rm -f a.out a.exe conftest$ac_cv_exeext b.out
3064ac_clean_files=$ac_clean_files_save
3065# Check that the compiler produces executables we can run.  If not, either
3066# the compiler is broken, or we cross compile.
3067{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3068echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3069{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3070echo "${ECHO_T}$cross_compiling" >&6; }
3071
3072{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3073echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3074if { (ac_try="$ac_link"
3075case "(($ac_try" in
3076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077  *) ac_try_echo=$ac_try;;
3078esac
3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080  (eval "$ac_link") 2>&5
3081  ac_status=$?
3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083  (exit $ac_status); }; then
3084  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3085# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3086# work properly (i.e., refer to `conftest.exe'), while it won't with
3087# `rm'.
3088for ac_file in conftest.exe conftest conftest.*; do
3089  test -f "$ac_file" || continue
3090  case $ac_file in
3091    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3092    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3093	  break;;
3094    * ) break;;
3095  esac
3096done
3097else
3098  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3099See \`config.log' for more details." >&5
3100echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3101See \`config.log' for more details." >&2;}
3102   { (exit 1); exit 1; }; }
3103fi
3104
3105rm -f conftest$ac_cv_exeext
3106{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3107echo "${ECHO_T}$ac_cv_exeext" >&6; }
3108
3109rm -f conftest.$ac_ext
3110EXEEXT=$ac_cv_exeext
3111ac_exeext=$EXEEXT
3112{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3113echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3114if test "${ac_cv_objext+set}" = set; then
3115  echo $ECHO_N "(cached) $ECHO_C" >&6
3116else
3117  cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h.  */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h.  */
3123
3124int
3125main ()
3126{
3127
3128  ;
3129  return 0;
3130}
3131_ACEOF
3132rm -f conftest.o conftest.obj
3133if { (ac_try="$ac_compile"
3134case "(($ac_try" in
3135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136  *) ac_try_echo=$ac_try;;
3137esac
3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139  (eval "$ac_compile") 2>&5
3140  ac_status=$?
3141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142  (exit $ac_status); }; then
3143  for ac_file in conftest.o conftest.obj conftest.*; do
3144  test -f "$ac_file" || continue;
3145  case $ac_file in
3146    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3147    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3148       break;;
3149  esac
3150done
3151else
3152  echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3156See \`config.log' for more details." >&5
3157echo "$as_me: error: cannot compute suffix of object files: cannot compile
3158See \`config.log' for more details." >&2;}
3159   { (exit 1); exit 1; }; }
3160fi
3161
3162rm -f conftest.$ac_cv_objext conftest.$ac_ext
3163fi
3164{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3165echo "${ECHO_T}$ac_cv_objext" >&6; }
3166OBJEXT=$ac_cv_objext
3167ac_objext=$OBJEXT
3168{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3169echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3170if test "${ac_cv_c_compiler_gnu+set}" = set; then
3171  echo $ECHO_N "(cached) $ECHO_C" >&6
3172else
3173  cat >conftest.$ac_ext <<_ACEOF
3174/* confdefs.h.  */
3175_ACEOF
3176cat confdefs.h >>conftest.$ac_ext
3177cat >>conftest.$ac_ext <<_ACEOF
3178/* end confdefs.h.  */
3179
3180int
3181main ()
3182{
3183#ifndef __GNUC__
3184       choke me
3185#endif
3186
3187  ;
3188  return 0;
3189}
3190_ACEOF
3191rm -f conftest.$ac_objext
3192if { (ac_try="$ac_compile"
3193case "(($ac_try" in
3194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195  *) ac_try_echo=$ac_try;;
3196esac
3197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198  (eval "$ac_compile") 2>conftest.er1
3199  ac_status=$?
3200  grep -v '^ *+' conftest.er1 >conftest.err
3201  rm -f conftest.er1
3202  cat conftest.err >&5
3203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204  (exit $ac_status); } &&
3205	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3206  { (case "(($ac_try" in
3207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208  *) ac_try_echo=$ac_try;;
3209esac
3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211  (eval "$ac_try") 2>&5
3212  ac_status=$?
3213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214  (exit $ac_status); }; } &&
3215	 { ac_try='test -s conftest.$ac_objext'
3216  { (case "(($ac_try" in
3217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218  *) ac_try_echo=$ac_try;;
3219esac
3220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221  (eval "$ac_try") 2>&5
3222  ac_status=$?
3223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224  (exit $ac_status); }; }; then
3225  ac_compiler_gnu=yes
3226else
3227  echo "$as_me: failed program was:" >&5
3228sed 's/^/| /' conftest.$ac_ext >&5
3229
3230	ac_compiler_gnu=no
3231fi
3232
3233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234ac_cv_c_compiler_gnu=$ac_compiler_gnu
3235
3236fi
3237{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3238echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3239GCC=`test $ac_compiler_gnu = yes && echo yes`
3240ac_test_CFLAGS=${CFLAGS+set}
3241ac_save_CFLAGS=$CFLAGS
3242{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3243echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3244if test "${ac_cv_prog_cc_g+set}" = set; then
3245  echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247  ac_save_c_werror_flag=$ac_c_werror_flag
3248   ac_c_werror_flag=yes
3249   ac_cv_prog_cc_g=no
3250   CFLAGS="-g"
3251   cat >conftest.$ac_ext <<_ACEOF
3252/* confdefs.h.  */
3253_ACEOF
3254cat confdefs.h >>conftest.$ac_ext
3255cat >>conftest.$ac_ext <<_ACEOF
3256/* end confdefs.h.  */
3257
3258int
3259main ()
3260{
3261
3262  ;
3263  return 0;
3264}
3265_ACEOF
3266rm -f conftest.$ac_objext
3267if { (ac_try="$ac_compile"
3268case "(($ac_try" in
3269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270  *) ac_try_echo=$ac_try;;
3271esac
3272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3273  (eval "$ac_compile") 2>conftest.er1
3274  ac_status=$?
3275  grep -v '^ *+' conftest.er1 >conftest.err
3276  rm -f conftest.er1
3277  cat conftest.err >&5
3278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279  (exit $ac_status); } &&
3280	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3281  { (case "(($ac_try" in
3282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283  *) ac_try_echo=$ac_try;;
3284esac
3285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3286  (eval "$ac_try") 2>&5
3287  ac_status=$?
3288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289  (exit $ac_status); }; } &&
3290	 { ac_try='test -s conftest.$ac_objext'
3291  { (case "(($ac_try" in
3292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293  *) ac_try_echo=$ac_try;;
3294esac
3295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296  (eval "$ac_try") 2>&5
3297  ac_status=$?
3298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299  (exit $ac_status); }; }; then
3300  ac_cv_prog_cc_g=yes
3301else
3302  echo "$as_me: failed program was:" >&5
3303sed 's/^/| /' conftest.$ac_ext >&5
3304
3305	CFLAGS=""
3306      cat >conftest.$ac_ext <<_ACEOF
3307/* confdefs.h.  */
3308_ACEOF
3309cat confdefs.h >>conftest.$ac_ext
3310cat >>conftest.$ac_ext <<_ACEOF
3311/* end confdefs.h.  */
3312
3313int
3314main ()
3315{
3316
3317  ;
3318  return 0;
3319}
3320_ACEOF
3321rm -f conftest.$ac_objext
3322if { (ac_try="$ac_compile"
3323case "(($ac_try" in
3324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325  *) ac_try_echo=$ac_try;;
3326esac
3327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328  (eval "$ac_compile") 2>conftest.er1
3329  ac_status=$?
3330  grep -v '^ *+' conftest.er1 >conftest.err
3331  rm -f conftest.er1
3332  cat conftest.err >&5
3333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334  (exit $ac_status); } &&
3335	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3336  { (case "(($ac_try" in
3337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338  *) ac_try_echo=$ac_try;;
3339esac
3340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341  (eval "$ac_try") 2>&5
3342  ac_status=$?
3343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344  (exit $ac_status); }; } &&
3345	 { ac_try='test -s conftest.$ac_objext'
3346  { (case "(($ac_try" in
3347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348  *) ac_try_echo=$ac_try;;
3349esac
3350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351  (eval "$ac_try") 2>&5
3352  ac_status=$?
3353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354  (exit $ac_status); }; }; then
3355  :
3356else
3357  echo "$as_me: failed program was:" >&5
3358sed 's/^/| /' conftest.$ac_ext >&5
3359
3360	ac_c_werror_flag=$ac_save_c_werror_flag
3361	 CFLAGS="-g"
3362	 cat >conftest.$ac_ext <<_ACEOF
3363/* confdefs.h.  */
3364_ACEOF
3365cat confdefs.h >>conftest.$ac_ext
3366cat >>conftest.$ac_ext <<_ACEOF
3367/* end confdefs.h.  */
3368
3369int
3370main ()
3371{
3372
3373  ;
3374  return 0;
3375}
3376_ACEOF
3377rm -f conftest.$ac_objext
3378if { (ac_try="$ac_compile"
3379case "(($ac_try" in
3380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381  *) ac_try_echo=$ac_try;;
3382esac
3383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384  (eval "$ac_compile") 2>conftest.er1
3385  ac_status=$?
3386  grep -v '^ *+' conftest.er1 >conftest.err
3387  rm -f conftest.er1
3388  cat conftest.err >&5
3389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390  (exit $ac_status); } &&
3391	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3392  { (case "(($ac_try" in
3393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394  *) ac_try_echo=$ac_try;;
3395esac
3396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397  (eval "$ac_try") 2>&5
3398  ac_status=$?
3399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400  (exit $ac_status); }; } &&
3401	 { ac_try='test -s conftest.$ac_objext'
3402  { (case "(($ac_try" in
3403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404  *) ac_try_echo=$ac_try;;
3405esac
3406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407  (eval "$ac_try") 2>&5
3408  ac_status=$?
3409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410  (exit $ac_status); }; }; then
3411  ac_cv_prog_cc_g=yes
3412else
3413  echo "$as_me: failed program was:" >&5
3414sed 's/^/| /' conftest.$ac_ext >&5
3415
3416
3417fi
3418
3419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420fi
3421
3422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423fi
3424
3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426   ac_c_werror_flag=$ac_save_c_werror_flag
3427fi
3428{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3429echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3430if test "$ac_test_CFLAGS" = set; then
3431  CFLAGS=$ac_save_CFLAGS
3432elif test $ac_cv_prog_cc_g = yes; then
3433  if test "$GCC" = yes; then
3434    CFLAGS="-g -O2"
3435  else
3436    CFLAGS="-g"
3437  fi
3438else
3439  if test "$GCC" = yes; then
3440    CFLAGS="-O2"
3441  else
3442    CFLAGS=
3443  fi
3444fi
3445{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3446echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3447if test "${ac_cv_prog_cc_c89+set}" = set; then
3448  echo $ECHO_N "(cached) $ECHO_C" >&6
3449else
3450  ac_cv_prog_cc_c89=no
3451ac_save_CC=$CC
3452cat >conftest.$ac_ext <<_ACEOF
3453/* confdefs.h.  */
3454_ACEOF
3455cat confdefs.h >>conftest.$ac_ext
3456cat >>conftest.$ac_ext <<_ACEOF
3457/* end confdefs.h.  */
3458#include <stdarg.h>
3459#include <stdio.h>
3460#include <sys/types.h>
3461#include <sys/stat.h>
3462/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3463struct buf { int x; };
3464FILE * (*rcsopen) (struct buf *, struct stat *, int);
3465static char *e (p, i)
3466     char **p;
3467     int i;
3468{
3469  return p[i];
3470}
3471static char *f (char * (*g) (char **, int), char **p, ...)
3472{
3473  char *s;
3474  va_list v;
3475  va_start (v,p);
3476  s = g (p, va_arg (v,int));
3477  va_end (v);
3478  return s;
3479}
3480
3481/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3482   function prototypes and stuff, but not '\xHH' hex character constants.
3483   These don't provoke an error unfortunately, instead are silently treated
3484   as 'x'.  The following induces an error, until -std is added to get
3485   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3486   array size at least.  It's necessary to write '\x00'==0 to get something
3487   that's true only with -std.  */
3488int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3489
3490/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3491   inside strings and character constants.  */
3492#define FOO(x) 'x'
3493int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3494
3495int test (int i, double x);
3496struct s1 {int (*f) (int a);};
3497struct s2 {int (*f) (double a);};
3498int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3499int argc;
3500char **argv;
3501int
3502main ()
3503{
3504return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3505  ;
3506  return 0;
3507}
3508_ACEOF
3509for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3510	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3511do
3512  CC="$ac_save_CC $ac_arg"
3513  rm -f conftest.$ac_objext
3514if { (ac_try="$ac_compile"
3515case "(($ac_try" in
3516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517  *) ac_try_echo=$ac_try;;
3518esac
3519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520  (eval "$ac_compile") 2>conftest.er1
3521  ac_status=$?
3522  grep -v '^ *+' conftest.er1 >conftest.err
3523  rm -f conftest.er1
3524  cat conftest.err >&5
3525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526  (exit $ac_status); } &&
3527	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3528  { (case "(($ac_try" in
3529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530  *) ac_try_echo=$ac_try;;
3531esac
3532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533  (eval "$ac_try") 2>&5
3534  ac_status=$?
3535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536  (exit $ac_status); }; } &&
3537	 { ac_try='test -s conftest.$ac_objext'
3538  { (case "(($ac_try" in
3539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540  *) ac_try_echo=$ac_try;;
3541esac
3542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543  (eval "$ac_try") 2>&5
3544  ac_status=$?
3545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546  (exit $ac_status); }; }; then
3547  ac_cv_prog_cc_c89=$ac_arg
3548else
3549  echo "$as_me: failed program was:" >&5
3550sed 's/^/| /' conftest.$ac_ext >&5
3551
3552
3553fi
3554
3555rm -f core conftest.err conftest.$ac_objext
3556  test "x$ac_cv_prog_cc_c89" != "xno" && break
3557done
3558rm -f conftest.$ac_ext
3559CC=$ac_save_CC
3560
3561fi
3562# AC_CACHE_VAL
3563case "x$ac_cv_prog_cc_c89" in
3564  x)
3565    { echo "$as_me:$LINENO: result: none needed" >&5
3566echo "${ECHO_T}none needed" >&6; } ;;
3567  xno)
3568    { echo "$as_me:$LINENO: result: unsupported" >&5
3569echo "${ECHO_T}unsupported" >&6; } ;;
3570  *)
3571    CC="$CC $ac_cv_prog_cc_c89"
3572    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3573echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3574esac
3575
3576
3577ac_ext=c
3578ac_cpp='$CPP $CPPFLAGS'
3579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582DEPDIR="${am__leading_dot}deps"
3583
3584ac_config_commands="$ac_config_commands depfiles"
3585
3586
3587am_make=${MAKE-make}
3588cat > confinc << 'END'
3589am__doit:
3590	@echo done
3591.PHONY: am__doit
3592END
3593# If we don't find an include directive, just comment out the code.
3594{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3595echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3596am__include="#"
3597am__quote=
3598_am_result=none
3599# First try GNU make style include.
3600echo "include confinc" > confmf
3601# We grep out `Entering directory' and `Leaving directory'
3602# messages which can occur if `w' ends up in MAKEFLAGS.
3603# In particular we don't look at `^make:' because GNU make might
3604# be invoked under some other name (usually "gmake"), in which
3605# case it prints its new name instead of `make'.
3606if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3607   am__include=include
3608   am__quote=
3609   _am_result=GNU
3610fi
3611# Now try BSD make style include.
3612if test "$am__include" = "#"; then
3613   echo '.include "confinc"' > confmf
3614   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3615      am__include=.include
3616      am__quote="\""
3617      _am_result=BSD
3618   fi
3619fi
3620
3621
3622{ echo "$as_me:$LINENO: result: $_am_result" >&5
3623echo "${ECHO_T}$_am_result" >&6; }
3624rm -f confinc confmf
3625
3626# Check whether --enable-dependency-tracking was given.
3627if test "${enable_dependency_tracking+set}" = set; then
3628  enableval=$enable_dependency_tracking;
3629fi
3630
3631if test "x$enable_dependency_tracking" != xno; then
3632  am_depcomp="$ac_aux_dir/depcomp"
3633  AMDEPBACKSLASH='\'
3634fi
3635
3636
3637if test "x$enable_dependency_tracking" != xno; then
3638  AMDEP_TRUE=
3639  AMDEP_FALSE='#'
3640else
3641  AMDEP_TRUE='#'
3642  AMDEP_FALSE=
3643fi
3644
3645
3646
3647
3648depcc="$CC"   am_compiler_list=
3649
3650{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3651echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3652if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3653  echo $ECHO_N "(cached) $ECHO_C" >&6
3654else
3655  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3656  # We make a subdir and do the tests there.  Otherwise we can end up
3657  # making bogus files that we don't know about and never remove.  For
3658  # instance it was reported that on HP-UX the gcc test will end up
3659  # making a dummy file named `D' -- because `-MD' means `put the output
3660  # in D'.
3661  mkdir conftest.dir
3662  # Copy depcomp to subdir because otherwise we won't find it if we're
3663  # using a relative directory.
3664  cp "$am_depcomp" conftest.dir
3665  cd conftest.dir
3666  # We will build objects and dependencies in a subdirectory because
3667  # it helps to detect inapplicable dependency modes.  For instance
3668  # both Tru64's cc and ICC support -MD to output dependencies as a
3669  # side effect of compilation, but ICC will put the dependencies in
3670  # the current directory while Tru64 will put them in the object
3671  # directory.
3672  mkdir sub
3673
3674  am_cv_CC_dependencies_compiler_type=none
3675  if test "$am_compiler_list" = ""; then
3676     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3677  fi
3678  for depmode in $am_compiler_list; do
3679    # Setup a source with many dependencies, because some compilers
3680    # like to wrap large dependency lists on column 80 (with \), and
3681    # we should not choose a depcomp mode which is confused by this.
3682    #
3683    # We need to recreate these files for each test, as the compiler may
3684    # overwrite some of them when testing with obscure command lines.
3685    # This happens at least with the AIX C compiler.
3686    : > sub/conftest.c
3687    for i in 1 2 3 4 5 6; do
3688      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3689      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3690      # Solaris 8's {/usr,}/bin/sh.
3691      touch sub/conftst$i.h
3692    done
3693    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3694
3695    case $depmode in
3696    nosideeffect)
3697      # after this tag, mechanisms are not by side-effect, so they'll
3698      # only be used when explicitly requested
3699      if test "x$enable_dependency_tracking" = xyes; then
3700	continue
3701      else
3702	break
3703      fi
3704      ;;
3705    none) break ;;
3706    esac
3707    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3708    # mode.  It turns out that the SunPro C++ compiler does not properly
3709    # handle `-M -o', and we need to detect this.
3710    if depmode=$depmode \
3711       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3712       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3713       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3714         >/dev/null 2>conftest.err &&
3715       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3716       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3717       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3718      # icc doesn't choke on unknown options, it will just issue warnings
3719      # or remarks (even with -Werror).  So we grep stderr for any message
3720      # that says an option was ignored or not supported.
3721      # When given -MP, icc 7.0 and 7.1 complain thusly:
3722      #   icc: Command line warning: ignoring option '-M'; no argument required
3723      # The diagnosis changed in icc 8.0:
3724      #   icc: Command line remark: option '-MP' not supported
3725      if (grep 'ignoring option' conftest.err ||
3726          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3727        am_cv_CC_dependencies_compiler_type=$depmode
3728        break
3729      fi
3730    fi
3731  done
3732
3733  cd ..
3734  rm -rf conftest.dir
3735else
3736  am_cv_CC_dependencies_compiler_type=none
3737fi
3738
3739fi
3740{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3741echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3742CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3743
3744
3745
3746if
3747  test "x$enable_dependency_tracking" != xno \
3748  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3749  am__fastdepCC_TRUE=
3750  am__fastdepCC_FALSE='#'
3751else
3752  am__fastdepCC_TRUE='#'
3753  am__fastdepCC_FALSE=
3754fi
3755
3756
3757# By default we simply use the C compiler to build assembly code.
3758
3759test "${CCAS+set}" = set || CCAS=$CC
3760test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3761
3762
3763
3764AS="${CC}"	# stupid automake bug
3765
3766
3767if test "$GCC" = "yes"; then
3768   CFLAGS="$CFLAGS -Wall"
3769fi
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795cat >>confdefs.h <<\_ACEOF
3796#define _GNU_SOURCE 1
3797_ACEOF
3798
3799
3800# Find a good install program.  We prefer a C program (faster),
3801# so one script is as good as another.  But avoid the broken or
3802# incompatible versions:
3803# SysV /etc/install, /usr/sbin/install
3804# SunOS /usr/etc/install
3805# IRIX /sbin/install
3806# AIX /bin/install
3807# AmigaOS /C/install, which installs bootblocks on floppy discs
3808# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3809# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3810# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3811# OS/2's system install, which has a completely different semantic
3812# ./install, which can be erroneously created by make from ./install.sh.
3813{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3814echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3815if test -z "$INSTALL"; then
3816if test "${ac_cv_path_install+set}" = set; then
3817  echo $ECHO_N "(cached) $ECHO_C" >&6
3818else
3819  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820for as_dir in $PATH
3821do
3822  IFS=$as_save_IFS
3823  test -z "$as_dir" && as_dir=.
3824  # Account for people who put trailing slashes in PATH elements.
3825case $as_dir/ in
3826  ./ | .// | /cC/* | \
3827  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3828  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3829  /usr/ucb/* ) ;;
3830  *)
3831    # OSF1 and SCO ODT 3.0 have their own names for install.
3832    # Don't use installbsd from OSF since it installs stuff as root
3833    # by default.
3834    for ac_prog in ginstall scoinst install; do
3835      for ac_exec_ext in '' $ac_executable_extensions; do
3836	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
3837	  if test $ac_prog = install &&
3838	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3839	    # AIX install.  It has an incompatible calling convention.
3840	    :
3841	  elif test $ac_prog = install &&
3842	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3843	    # program-specific install script used by HP pwplus--don't use.
3844	    :
3845	  else
3846	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3847	    break 3
3848	  fi
3849	fi
3850      done
3851    done
3852    ;;
3853esac
3854done
3855IFS=$as_save_IFS
3856
3857
3858fi
3859  if test "${ac_cv_path_install+set}" = set; then
3860    INSTALL=$ac_cv_path_install
3861  else
3862    # As a last resort, use the slow shell script.  Don't cache a
3863    # value for INSTALL within a source directory, because that will
3864    # break other packages using the cache if that directory is
3865    # removed, or if the value is a relative name.
3866    INSTALL=$ac_install_sh
3867  fi
3868fi
3869{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3870echo "${ECHO_T}$INSTALL" >&6; }
3871
3872# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3873# It thinks the first close brace ends the variable substitution.
3874test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3875
3876test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3877
3878test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3879
3880# Check whether --enable-shared was given.
3881if test "${enable_shared+set}" = set; then
3882  enableval=$enable_shared; p=${PACKAGE-default}
3883    case $enableval in
3884    yes) enable_shared=yes ;;
3885    no) enable_shared=no ;;
3886    *)
3887      enable_shared=no
3888      # Look at the argument we got.  We use all the common list separators.
3889      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3890      for pkg in $enableval; do
3891	IFS="$lt_save_ifs"
3892	if test "X$pkg" = "X$p"; then
3893	  enable_shared=yes
3894	fi
3895      done
3896      IFS="$lt_save_ifs"
3897      ;;
3898    esac
3899else
3900  enable_shared=yes
3901fi
3902
3903
3904# Check whether --enable-static was given.
3905if test "${enable_static+set}" = set; then
3906  enableval=$enable_static; p=${PACKAGE-default}
3907    case $enableval in
3908    yes) enable_static=yes ;;
3909    no) enable_static=no ;;
3910    *)
3911     enable_static=no
3912      # Look at the argument we got.  We use all the common list separators.
3913      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3914      for pkg in $enableval; do
3915	IFS="$lt_save_ifs"
3916	if test "X$pkg" = "X$p"; then
3917	  enable_static=yes
3918	fi
3919      done
3920      IFS="$lt_save_ifs"
3921      ;;
3922    esac
3923else
3924  enable_static=yes
3925fi
3926
3927
3928# Check whether --enable-fast-install was given.
3929if test "${enable_fast_install+set}" = set; then
3930  enableval=$enable_fast_install; p=${PACKAGE-default}
3931    case $enableval in
3932    yes) enable_fast_install=yes ;;
3933    no) enable_fast_install=no ;;
3934    *)
3935      enable_fast_install=no
3936      # Look at the argument we got.  We use all the common list separators.
3937      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3938      for pkg in $enableval; do
3939	IFS="$lt_save_ifs"
3940	if test "X$pkg" = "X$p"; then
3941	  enable_fast_install=yes
3942	fi
3943      done
3944      IFS="$lt_save_ifs"
3945      ;;
3946    esac
3947else
3948  enable_fast_install=yes
3949fi
3950
3951
3952{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3953echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3954if test "${lt_cv_path_SED+set}" = set; then
3955  echo $ECHO_N "(cached) $ECHO_C" >&6
3956else
3957  # Loop through the user's path and test for sed and gsed.
3958# Then use that list of sed's as ones to test for truncation.
3959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH
3961do
3962  IFS=$as_save_IFS
3963  test -z "$as_dir" && as_dir=.
3964  for lt_ac_prog in sed gsed; do
3965    for ac_exec_ext in '' $ac_executable_extensions; do
3966      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3967        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3968      fi
3969    done
3970  done
3971done
3972lt_ac_max=0
3973lt_ac_count=0
3974# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3975# along with /bin/sed that truncates output.
3976for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3977  test ! -f $lt_ac_sed && continue
3978  cat /dev/null > conftest.in
3979  lt_ac_count=0
3980  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3981  # Check for GNU sed and select it if it is found.
3982  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3983    lt_cv_path_SED=$lt_ac_sed
3984    break
3985  fi
3986  while true; do
3987    cat conftest.in conftest.in >conftest.tmp
3988    mv conftest.tmp conftest.in
3989    cp conftest.in conftest.nl
3990    echo >>conftest.nl
3991    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3992    cmp -s conftest.out conftest.nl || break
3993    # 10000 chars as input seems more than enough
3994    test $lt_ac_count -gt 10 && break
3995    lt_ac_count=`expr $lt_ac_count + 1`
3996    if test $lt_ac_count -gt $lt_ac_max; then
3997      lt_ac_max=$lt_ac_count
3998      lt_cv_path_SED=$lt_ac_sed
3999    fi
4000  done
4001done
4002
4003fi
4004
4005SED=$lt_cv_path_SED
4006{ echo "$as_me:$LINENO: result: $SED" >&5
4007echo "${ECHO_T}$SED" >&6; }
4008
4009{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4010echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4011if test "${ac_cv_path_GREP+set}" = set; then
4012  echo $ECHO_N "(cached) $ECHO_C" >&6
4013else
4014  # Extract the first word of "grep ggrep" to use in msg output
4015if test -z "$GREP"; then
4016set dummy grep ggrep; ac_prog_name=$2
4017if test "${ac_cv_path_GREP+set}" = set; then
4018  echo $ECHO_N "(cached) $ECHO_C" >&6
4019else
4020  ac_path_GREP_found=false
4021# Loop through the user's path and test for each of PROGNAME-LIST
4022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4024do
4025  IFS=$as_save_IFS
4026  test -z "$as_dir" && as_dir=.
4027  for ac_prog in grep ggrep; do
4028  for ac_exec_ext in '' $ac_executable_extensions; do
4029    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4030    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4031    # Check for GNU ac_path_GREP and select it if it is found.
4032  # Check for GNU $ac_path_GREP
4033case `"$ac_path_GREP" --version 2>&1` in
4034*GNU*)
4035  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4036*)
4037  ac_count=0
4038  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4039  while :
4040  do
4041    cat "conftest.in" "conftest.in" >"conftest.tmp"
4042    mv "conftest.tmp" "conftest.in"
4043    cp "conftest.in" "conftest.nl"
4044    echo 'GREP' >> "conftest.nl"
4045    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4047    ac_count=`expr $ac_count + 1`
4048    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4049      # Best one so far, save it but keep looking for a better one
4050      ac_cv_path_GREP="$ac_path_GREP"
4051      ac_path_GREP_max=$ac_count
4052    fi
4053    # 10*(2^10) chars as input seems more than enough
4054    test $ac_count -gt 10 && break
4055  done
4056  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4057esac
4058
4059
4060    $ac_path_GREP_found && break 3
4061  done
4062done
4063
4064done
4065IFS=$as_save_IFS
4066
4067
4068fi
4069
4070GREP="$ac_cv_path_GREP"
4071if test -z "$GREP"; then
4072  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4073echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4074   { (exit 1); exit 1; }; }
4075fi
4076
4077else
4078  ac_cv_path_GREP=$GREP
4079fi
4080
4081
4082fi
4083{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4084echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4085 GREP="$ac_cv_path_GREP"
4086
4087
4088{ echo "$as_me:$LINENO: checking for egrep" >&5
4089echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4090if test "${ac_cv_path_EGREP+set}" = set; then
4091  echo $ECHO_N "(cached) $ECHO_C" >&6
4092else
4093  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4094   then ac_cv_path_EGREP="$GREP -E"
4095   else
4096     # Extract the first word of "egrep" to use in msg output
4097if test -z "$EGREP"; then
4098set dummy egrep; ac_prog_name=$2
4099if test "${ac_cv_path_EGREP+set}" = set; then
4100  echo $ECHO_N "(cached) $ECHO_C" >&6
4101else
4102  ac_path_EGREP_found=false
4103# Loop through the user's path and test for each of PROGNAME-LIST
4104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4106do
4107  IFS=$as_save_IFS
4108  test -z "$as_dir" && as_dir=.
4109  for ac_prog in egrep; do
4110  for ac_exec_ext in '' $ac_executable_extensions; do
4111    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4112    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4113    # Check for GNU ac_path_EGREP and select it if it is found.
4114  # Check for GNU $ac_path_EGREP
4115case `"$ac_path_EGREP" --version 2>&1` in
4116*GNU*)
4117  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4118*)
4119  ac_count=0
4120  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4121  while :
4122  do
4123    cat "conftest.in" "conftest.in" >"conftest.tmp"
4124    mv "conftest.tmp" "conftest.in"
4125    cp "conftest.in" "conftest.nl"
4126    echo 'EGREP' >> "conftest.nl"
4127    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4128    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4129    ac_count=`expr $ac_count + 1`
4130    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4131      # Best one so far, save it but keep looking for a better one
4132      ac_cv_path_EGREP="$ac_path_EGREP"
4133      ac_path_EGREP_max=$ac_count
4134    fi
4135    # 10*(2^10) chars as input seems more than enough
4136    test $ac_count -gt 10 && break
4137  done
4138  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4139esac
4140
4141
4142    $ac_path_EGREP_found && break 3
4143  done
4144done
4145
4146done
4147IFS=$as_save_IFS
4148
4149
4150fi
4151
4152EGREP="$ac_cv_path_EGREP"
4153if test -z "$EGREP"; then
4154  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4155echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4156   { (exit 1); exit 1; }; }
4157fi
4158
4159else
4160  ac_cv_path_EGREP=$EGREP
4161fi
4162
4163
4164   fi
4165fi
4166{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4167echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4168 EGREP="$ac_cv_path_EGREP"
4169
4170
4171
4172# Check whether --with-gnu-ld was given.
4173if test "${with_gnu_ld+set}" = set; then
4174  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4175else
4176  with_gnu_ld=no
4177fi
4178
4179ac_prog=ld
4180if test "$GCC" = yes; then
4181  # Check if gcc -print-prog-name=ld gives a path.
4182  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4183echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4184  case $host in
4185  *-*-mingw*)
4186    # gcc leaves a trailing carriage return which upsets mingw
4187    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4188  *)
4189    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4190  esac
4191  case $ac_prog in
4192    # Accept absolute paths.
4193    [\\/]* | ?:[\\/]*)
4194      re_direlt='/[^/][^/]*/\.\./'
4195      # Canonicalize the pathname of ld
4196      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4197      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4198	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4199      done
4200      test -z "$LD" && LD="$ac_prog"
4201      ;;
4202  "")
4203    # If it fails, then pretend we aren't using GCC.
4204    ac_prog=ld
4205    ;;
4206  *)
4207    # If it is relative, then search for the first ld in PATH.
4208    with_gnu_ld=unknown
4209    ;;
4210  esac
4211elif test "$with_gnu_ld" = yes; then
4212  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4213echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4214else
4215  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4216echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4217fi
4218if test "${lt_cv_path_LD+set}" = set; then
4219  echo $ECHO_N "(cached) $ECHO_C" >&6
4220else
4221  if test -z "$LD"; then
4222  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4223  for ac_dir in $PATH; do
4224    IFS="$lt_save_ifs"
4225    test -z "$ac_dir" && ac_dir=.
4226    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4227      lt_cv_path_LD="$ac_dir/$ac_prog"
4228      # Check to see if the program is GNU ld.  I'd rather use --version,
4229      # but apparently some variants of GNU ld only accept -v.
4230      # Break only if it was the GNU/non-GNU ld that we prefer.
4231      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4232      *GNU* | *'with BFD'*)
4233	test "$with_gnu_ld" != no && break
4234	;;
4235      *)
4236	test "$with_gnu_ld" != yes && break
4237	;;
4238      esac
4239    fi
4240  done
4241  IFS="$lt_save_ifs"
4242else
4243  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4244fi
4245fi
4246
4247LD="$lt_cv_path_LD"
4248if test -n "$LD"; then
4249  { echo "$as_me:$LINENO: result: $LD" >&5
4250echo "${ECHO_T}$LD" >&6; }
4251else
4252  { echo "$as_me:$LINENO: result: no" >&5
4253echo "${ECHO_T}no" >&6; }
4254fi
4255test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4256echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4257   { (exit 1); exit 1; }; }
4258{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4259echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4260if test "${lt_cv_prog_gnu_ld+set}" = set; then
4261  echo $ECHO_N "(cached) $ECHO_C" >&6
4262else
4263  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4264case `$LD -v 2>&1 </dev/null` in
4265*GNU* | *'with BFD'*)
4266  lt_cv_prog_gnu_ld=yes
4267  ;;
4268*)
4269  lt_cv_prog_gnu_ld=no
4270  ;;
4271esac
4272fi
4273{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4274echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4275with_gnu_ld=$lt_cv_prog_gnu_ld
4276
4277
4278{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4279echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4280if test "${lt_cv_ld_reload_flag+set}" = set; then
4281  echo $ECHO_N "(cached) $ECHO_C" >&6
4282else
4283  lt_cv_ld_reload_flag='-r'
4284fi
4285{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4286echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4287reload_flag=$lt_cv_ld_reload_flag
4288case $reload_flag in
4289"" | " "*) ;;
4290*) reload_flag=" $reload_flag" ;;
4291esac
4292reload_cmds='$LD$reload_flag -o $output$reload_objs'
4293case $host_os in
4294  darwin*)
4295    if test "$GCC" = yes; then
4296      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4297    else
4298      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4299    fi
4300    ;;
4301esac
4302
4303{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4304echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4305if test "${lt_cv_path_NM+set}" = set; then
4306  echo $ECHO_N "(cached) $ECHO_C" >&6
4307else
4308  if test -n "$NM"; then
4309  # Let the user override the test.
4310  lt_cv_path_NM="$NM"
4311else
4312  lt_nm_to_check="${ac_tool_prefix}nm"
4313  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4314    lt_nm_to_check="$lt_nm_to_check nm"
4315  fi
4316  for lt_tmp_nm in $lt_nm_to_check; do
4317    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4318    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4319      IFS="$lt_save_ifs"
4320      test -z "$ac_dir" && ac_dir=.
4321      tmp_nm="$ac_dir/$lt_tmp_nm"
4322      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4323	# Check to see if the nm accepts a BSD-compat flag.
4324	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4325	#   nm: unknown option "B" ignored
4326	# Tru64's nm complains that /dev/null is an invalid object file
4327	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4328	*/dev/null* | *'Invalid file or object type'*)
4329	  lt_cv_path_NM="$tmp_nm -B"
4330	  break
4331	  ;;
4332	*)
4333	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4334	  */dev/null*)
4335	    lt_cv_path_NM="$tmp_nm -p"
4336	    break
4337	    ;;
4338	  *)
4339	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4340	    continue # so that we can try to find one that supports BSD flags
4341	    ;;
4342	  esac
4343	  ;;
4344	esac
4345      fi
4346    done
4347    IFS="$lt_save_ifs"
4348  done
4349  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4350fi
4351fi
4352{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4353echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4354NM="$lt_cv_path_NM"
4355
4356{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4357echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4358LN_S=$as_ln_s
4359if test "$LN_S" = "ln -s"; then
4360  { echo "$as_me:$LINENO: result: yes" >&5
4361echo "${ECHO_T}yes" >&6; }
4362else
4363  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4364echo "${ECHO_T}no, using $LN_S" >&6; }
4365fi
4366
4367{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4368echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4369if test "${lt_cv_deplibs_check_method+set}" = set; then
4370  echo $ECHO_N "(cached) $ECHO_C" >&6
4371else
4372  lt_cv_file_magic_cmd='$MAGIC_CMD'
4373lt_cv_file_magic_test_file=
4374lt_cv_deplibs_check_method='unknown'
4375# Need to set the preceding variable on all platforms that support
4376# interlibrary dependencies.
4377# 'none' -- dependencies not supported.
4378# `unknown' -- same as none, but documents that we really don't know.
4379# 'pass_all' -- all dependencies passed with no checks.
4380# 'test_compile' -- check by making test program.
4381# 'file_magic [[regex]]' -- check by looking for files in library path
4382# which responds to the $file_magic_cmd with a given extended regex.
4383# If you have `file' or equivalent on your system and you're not sure
4384# whether `pass_all' will *always* work, you probably want this one.
4385
4386case $host_os in
4387aix4* | aix5*)
4388  lt_cv_deplibs_check_method=pass_all
4389  ;;
4390
4391beos*)
4392  lt_cv_deplibs_check_method=pass_all
4393  ;;
4394
4395bsdi[45]*)
4396  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4397  lt_cv_file_magic_cmd='/usr/bin/file -L'
4398  lt_cv_file_magic_test_file=/shlib/libc.so
4399  ;;
4400
4401cygwin*)
4402  # func_win32_libid is a shell function defined in ltmain.sh
4403  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4404  lt_cv_file_magic_cmd='func_win32_libid'
4405  ;;
4406
4407mingw* | pw32*)
4408  # Base MSYS/MinGW do not provide the 'file' command needed by
4409  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4410  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4411  lt_cv_file_magic_cmd='$OBJDUMP -f'
4412  ;;
4413
4414darwin* | rhapsody*)
4415  lt_cv_deplibs_check_method=pass_all
4416  ;;
4417
4418freebsd* | kfreebsd*-gnu | dragonfly*)
4419  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4420    case $host_cpu in
4421    i*86 )
4422      # Not sure whether the presence of OpenBSD here was a mistake.
4423      # Let's accept both of them until this is cleared up.
4424      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4425      lt_cv_file_magic_cmd=/usr/bin/file
4426      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4427      ;;
4428    esac
4429  else
4430    lt_cv_deplibs_check_method=pass_all
4431  fi
4432  ;;
4433
4434gnu*)
4435  lt_cv_deplibs_check_method=pass_all
4436  ;;
4437
4438hpux10.20* | hpux11*)
4439  lt_cv_file_magic_cmd=/usr/bin/file
4440  case $host_cpu in
4441  ia64*)
4442    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4443    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4444    ;;
4445  hppa*64*)
4446    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]'
4447    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4448    ;;
4449  *)
4450    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4451    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4452    ;;
4453  esac
4454  ;;
4455
4456interix3*)
4457  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4458  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4459  ;;
4460
4461irix5* | irix6* | nonstopux*)
4462  case $LD in
4463  *-32|*"-32 ") libmagic=32-bit;;
4464  *-n32|*"-n32 ") libmagic=N32;;
4465  *-64|*"-64 ") libmagic=64-bit;;
4466  *) libmagic=never-match;;
4467  esac
4468  lt_cv_deplibs_check_method=pass_all
4469  ;;
4470
4471# This must be Linux ELF.
4472linux*)
4473  lt_cv_deplibs_check_method=pass_all
4474  ;;
4475
4476netbsd*)
4477  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4478    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4479  else
4480    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4481  fi
4482  ;;
4483
4484newos6*)
4485  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4486  lt_cv_file_magic_cmd=/usr/bin/file
4487  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4488  ;;
4489
4490nto-qnx*)
4491  lt_cv_deplibs_check_method=unknown
4492  ;;
4493
4494openbsd*)
4495  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4496    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4497  else
4498    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4499  fi
4500  ;;
4501
4502osf3* | osf4* | osf5*)
4503  lt_cv_deplibs_check_method=pass_all
4504  ;;
4505
4506solaris*)
4507  lt_cv_deplibs_check_method=pass_all
4508  ;;
4509
4510sysv4 | sysv4.3*)
4511  case $host_vendor in
4512  motorola)
4513    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]'
4514    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4515    ;;
4516  ncr)
4517    lt_cv_deplibs_check_method=pass_all
4518    ;;
4519  sequent)
4520    lt_cv_file_magic_cmd='/bin/file'
4521    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4522    ;;
4523  sni)
4524    lt_cv_file_magic_cmd='/bin/file'
4525    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4526    lt_cv_file_magic_test_file=/lib/libc.so
4527    ;;
4528  siemens)
4529    lt_cv_deplibs_check_method=pass_all
4530    ;;
4531  pc)
4532    lt_cv_deplibs_check_method=pass_all
4533    ;;
4534  esac
4535  ;;
4536
4537sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4538  lt_cv_deplibs_check_method=pass_all
4539  ;;
4540esac
4541
4542fi
4543{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4544echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4545file_magic_cmd=$lt_cv_file_magic_cmd
4546deplibs_check_method=$lt_cv_deplibs_check_method
4547test -z "$deplibs_check_method" && deplibs_check_method=unknown
4548
4549
4550
4551
4552# If no C compiler was specified, use CC.
4553LTCC=${LTCC-"$CC"}
4554
4555# If no C compiler flags were specified, use CFLAGS.
4556LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4557
4558# Allow CC to be a program name with arguments.
4559compiler=$CC
4560
4561
4562# Check whether --enable-libtool-lock was given.
4563if test "${enable_libtool_lock+set}" = set; then
4564  enableval=$enable_libtool_lock;
4565fi
4566
4567test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4568
4569# Some flags need to be propagated to the compiler or linker for good
4570# libtool support.
4571case $host in
4572ia64-*-hpux*)
4573  # Find out which ABI we are using.
4574  echo 'int i;' > conftest.$ac_ext
4575  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4576  (eval $ac_compile) 2>&5
4577  ac_status=$?
4578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579  (exit $ac_status); }; then
4580    case `/usr/bin/file conftest.$ac_objext` in
4581    *ELF-32*)
4582      HPUX_IA64_MODE="32"
4583      ;;
4584    *ELF-64*)
4585      HPUX_IA64_MODE="64"
4586      ;;
4587    esac
4588  fi
4589  rm -rf conftest*
4590  ;;
4591*-*-irix6*)
4592  # Find out which ABI we are using.
4593  echo '#line 4593 "configure"' > conftest.$ac_ext
4594  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595  (eval $ac_compile) 2>&5
4596  ac_status=$?
4597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598  (exit $ac_status); }; then
4599   if test "$lt_cv_prog_gnu_ld" = yes; then
4600    case `/usr/bin/file conftest.$ac_objext` in
4601    *32-bit*)
4602      LD="${LD-ld} -melf32bsmip"
4603      ;;
4604    *N32*)
4605      LD="${LD-ld} -melf32bmipn32"
4606      ;;
4607    *64-bit*)
4608      LD="${LD-ld} -melf64bmip"
4609      ;;
4610    esac
4611   else
4612    case `/usr/bin/file conftest.$ac_objext` in
4613    *32-bit*)
4614      LD="${LD-ld} -32"
4615      ;;
4616    *N32*)
4617      LD="${LD-ld} -n32"
4618      ;;
4619    *64-bit*)
4620      LD="${LD-ld} -64"
4621      ;;
4622    esac
4623   fi
4624  fi
4625  rm -rf conftest*
4626  ;;
4627
4628x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4629  # Find out which ABI we are using.
4630  echo 'int i;' > conftest.$ac_ext
4631  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4632  (eval $ac_compile) 2>&5
4633  ac_status=$?
4634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635  (exit $ac_status); }; then
4636    case `/usr/bin/file conftest.o` in
4637    *32-bit*)
4638      case $host in
4639        x86_64-*linux*)
4640          LD="${LD-ld} -m elf_i386"
4641          ;;
4642        ppc64-*linux*|powerpc64-*linux*)
4643          LD="${LD-ld} -m elf32ppclinux"
4644          ;;
4645        s390x-*linux*)
4646          LD="${LD-ld} -m elf_s390"
4647          ;;
4648        sparc64-*linux*)
4649          LD="${LD-ld} -m elf32_sparc"
4650          ;;
4651      esac
4652      ;;
4653    *64-bit*)
4654      case $host in
4655        x86_64-*linux*)
4656          LD="${LD-ld} -m elf_x86_64"
4657          ;;
4658        ppc*-*linux*|powerpc*-*linux*)
4659          LD="${LD-ld} -m elf64ppc"
4660          ;;
4661        s390*-*linux*)
4662          LD="${LD-ld} -m elf64_s390"
4663          ;;
4664        sparc*-*linux*)
4665          LD="${LD-ld} -m elf64_sparc"
4666          ;;
4667      esac
4668      ;;
4669    esac
4670  fi
4671  rm -rf conftest*
4672  ;;
4673
4674*-*-sco3.2v5*)
4675  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4676  SAVE_CFLAGS="$CFLAGS"
4677  CFLAGS="$CFLAGS -belf"
4678  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4679echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4680if test "${lt_cv_cc_needs_belf+set}" = set; then
4681  echo $ECHO_N "(cached) $ECHO_C" >&6
4682else
4683  ac_ext=c
4684ac_cpp='$CPP $CPPFLAGS'
4685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4687ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688
4689     cat >conftest.$ac_ext <<_ACEOF
4690/* confdefs.h.  */
4691_ACEOF
4692cat confdefs.h >>conftest.$ac_ext
4693cat >>conftest.$ac_ext <<_ACEOF
4694/* end confdefs.h.  */
4695
4696int
4697main ()
4698{
4699
4700  ;
4701  return 0;
4702}
4703_ACEOF
4704rm -f conftest.$ac_objext conftest$ac_exeext
4705if { (ac_try="$ac_link"
4706case "(($ac_try" in
4707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708  *) ac_try_echo=$ac_try;;
4709esac
4710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4711  (eval "$ac_link") 2>conftest.er1
4712  ac_status=$?
4713  grep -v '^ *+' conftest.er1 >conftest.err
4714  rm -f conftest.er1
4715  cat conftest.err >&5
4716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717  (exit $ac_status); } &&
4718	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4719  { (case "(($ac_try" in
4720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721  *) ac_try_echo=$ac_try;;
4722esac
4723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724  (eval "$ac_try") 2>&5
4725  ac_status=$?
4726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727  (exit $ac_status); }; } &&
4728	 { ac_try='test -s conftest$ac_exeext'
4729  { (case "(($ac_try" in
4730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731  *) ac_try_echo=$ac_try;;
4732esac
4733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734  (eval "$ac_try") 2>&5
4735  ac_status=$?
4736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737  (exit $ac_status); }; }; then
4738  lt_cv_cc_needs_belf=yes
4739else
4740  echo "$as_me: failed program was:" >&5
4741sed 's/^/| /' conftest.$ac_ext >&5
4742
4743	lt_cv_cc_needs_belf=no
4744fi
4745
4746rm -f core conftest.err conftest.$ac_objext \
4747      conftest$ac_exeext conftest.$ac_ext
4748     ac_ext=c
4749ac_cpp='$CPP $CPPFLAGS'
4750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4752ac_compiler_gnu=$ac_cv_c_compiler_gnu
4753
4754fi
4755{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4756echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4757  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4758    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4759    CFLAGS="$SAVE_CFLAGS"
4760  fi
4761  ;;
4762sparc*-*solaris*)
4763  # Find out which ABI we are using.
4764  echo 'int i;' > conftest.$ac_ext
4765  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766  (eval $ac_compile) 2>&5
4767  ac_status=$?
4768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769  (exit $ac_status); }; then
4770    case `/usr/bin/file conftest.o` in
4771    *64-bit*)
4772      case $lt_cv_prog_gnu_ld in
4773      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4774      *)    LD="${LD-ld} -64" ;;
4775      esac
4776      ;;
4777    esac
4778  fi
4779  rm -rf conftest*
4780  ;;
4781
4782
4783esac
4784
4785need_locks="$enable_libtool_lock"
4786
4787
4788ac_ext=c
4789ac_cpp='$CPP $CPPFLAGS'
4790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4794echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4795# On Suns, sometimes $CPP names a directory.
4796if test -n "$CPP" && test -d "$CPP"; then
4797  CPP=
4798fi
4799if test -z "$CPP"; then
4800  if test "${ac_cv_prog_CPP+set}" = set; then
4801  echo $ECHO_N "(cached) $ECHO_C" >&6
4802else
4803      # Double quotes because CPP needs to be expanded
4804    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4805    do
4806      ac_preproc_ok=false
4807for ac_c_preproc_warn_flag in '' yes
4808do
4809  # Use a header file that comes with gcc, so configuring glibc
4810  # with a fresh cross-compiler works.
4811  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4812  # <limits.h> exists even on freestanding compilers.
4813  # On the NeXT, cc -E runs the code through the compiler's parser,
4814  # not just through cpp. "Syntax error" is here to catch this case.
4815  cat >conftest.$ac_ext <<_ACEOF
4816/* confdefs.h.  */
4817_ACEOF
4818cat confdefs.h >>conftest.$ac_ext
4819cat >>conftest.$ac_ext <<_ACEOF
4820/* end confdefs.h.  */
4821#ifdef __STDC__
4822# include <limits.h>
4823#else
4824# include <assert.h>
4825#endif
4826		     Syntax error
4827_ACEOF
4828if { (ac_try="$ac_cpp conftest.$ac_ext"
4829case "(($ac_try" in
4830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831  *) ac_try_echo=$ac_try;;
4832esac
4833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4834  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4835  ac_status=$?
4836  grep -v '^ *+' conftest.er1 >conftest.err
4837  rm -f conftest.er1
4838  cat conftest.err >&5
4839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840  (exit $ac_status); } >/dev/null; then
4841  if test -s conftest.err; then
4842    ac_cpp_err=$ac_c_preproc_warn_flag
4843    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4844  else
4845    ac_cpp_err=
4846  fi
4847else
4848  ac_cpp_err=yes
4849fi
4850if test -z "$ac_cpp_err"; then
4851  :
4852else
4853  echo "$as_me: failed program was:" >&5
4854sed 's/^/| /' conftest.$ac_ext >&5
4855
4856  # Broken: fails on valid input.
4857continue
4858fi
4859
4860rm -f conftest.err conftest.$ac_ext
4861
4862  # OK, works on sane cases.  Now check whether nonexistent headers
4863  # can be detected and how.
4864  cat >conftest.$ac_ext <<_ACEOF
4865/* confdefs.h.  */
4866_ACEOF
4867cat confdefs.h >>conftest.$ac_ext
4868cat >>conftest.$ac_ext <<_ACEOF
4869/* end confdefs.h.  */
4870#include <ac_nonexistent.h>
4871_ACEOF
4872if { (ac_try="$ac_cpp conftest.$ac_ext"
4873case "(($ac_try" in
4874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875  *) ac_try_echo=$ac_try;;
4876esac
4877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4879  ac_status=$?
4880  grep -v '^ *+' conftest.er1 >conftest.err
4881  rm -f conftest.er1
4882  cat conftest.err >&5
4883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884  (exit $ac_status); } >/dev/null; then
4885  if test -s conftest.err; then
4886    ac_cpp_err=$ac_c_preproc_warn_flag
4887    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4888  else
4889    ac_cpp_err=
4890  fi
4891else
4892  ac_cpp_err=yes
4893fi
4894if test -z "$ac_cpp_err"; then
4895  # Broken: success on invalid input.
4896continue
4897else
4898  echo "$as_me: failed program was:" >&5
4899sed 's/^/| /' conftest.$ac_ext >&5
4900
4901  # Passes both tests.
4902ac_preproc_ok=:
4903break
4904fi
4905
4906rm -f conftest.err conftest.$ac_ext
4907
4908done
4909# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4910rm -f conftest.err conftest.$ac_ext
4911if $ac_preproc_ok; then
4912  break
4913fi
4914
4915    done
4916    ac_cv_prog_CPP=$CPP
4917
4918fi
4919  CPP=$ac_cv_prog_CPP
4920else
4921  ac_cv_prog_CPP=$CPP
4922fi
4923{ echo "$as_me:$LINENO: result: $CPP" >&5
4924echo "${ECHO_T}$CPP" >&6; }
4925ac_preproc_ok=false
4926for ac_c_preproc_warn_flag in '' yes
4927do
4928  # Use a header file that comes with gcc, so configuring glibc
4929  # with a fresh cross-compiler works.
4930  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4931  # <limits.h> exists even on freestanding compilers.
4932  # On the NeXT, cc -E runs the code through the compiler's parser,
4933  # not just through cpp. "Syntax error" is here to catch this case.
4934  cat >conftest.$ac_ext <<_ACEOF
4935/* confdefs.h.  */
4936_ACEOF
4937cat confdefs.h >>conftest.$ac_ext
4938cat >>conftest.$ac_ext <<_ACEOF
4939/* end confdefs.h.  */
4940#ifdef __STDC__
4941# include <limits.h>
4942#else
4943# include <assert.h>
4944#endif
4945		     Syntax error
4946_ACEOF
4947if { (ac_try="$ac_cpp conftest.$ac_ext"
4948case "(($ac_try" in
4949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950  *) ac_try_echo=$ac_try;;
4951esac
4952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4953  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4954  ac_status=$?
4955  grep -v '^ *+' conftest.er1 >conftest.err
4956  rm -f conftest.er1
4957  cat conftest.err >&5
4958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959  (exit $ac_status); } >/dev/null; then
4960  if test -s conftest.err; then
4961    ac_cpp_err=$ac_c_preproc_warn_flag
4962    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4963  else
4964    ac_cpp_err=
4965  fi
4966else
4967  ac_cpp_err=yes
4968fi
4969if test -z "$ac_cpp_err"; then
4970  :
4971else
4972  echo "$as_me: failed program was:" >&5
4973sed 's/^/| /' conftest.$ac_ext >&5
4974
4975  # Broken: fails on valid input.
4976continue
4977fi
4978
4979rm -f conftest.err conftest.$ac_ext
4980
4981  # OK, works on sane cases.  Now check whether nonexistent headers
4982  # can be detected and how.
4983  cat >conftest.$ac_ext <<_ACEOF
4984/* confdefs.h.  */
4985_ACEOF
4986cat confdefs.h >>conftest.$ac_ext
4987cat >>conftest.$ac_ext <<_ACEOF
4988/* end confdefs.h.  */
4989#include <ac_nonexistent.h>
4990_ACEOF
4991if { (ac_try="$ac_cpp conftest.$ac_ext"
4992case "(($ac_try" in
4993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994  *) ac_try_echo=$ac_try;;
4995esac
4996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4998  ac_status=$?
4999  grep -v '^ *+' conftest.er1 >conftest.err
5000  rm -f conftest.er1
5001  cat conftest.err >&5
5002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003  (exit $ac_status); } >/dev/null; then
5004  if test -s conftest.err; then
5005    ac_cpp_err=$ac_c_preproc_warn_flag
5006    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5007  else
5008    ac_cpp_err=
5009  fi
5010else
5011  ac_cpp_err=yes
5012fi
5013if test -z "$ac_cpp_err"; then
5014  # Broken: success on invalid input.
5015continue
5016else
5017  echo "$as_me: failed program was:" >&5
5018sed 's/^/| /' conftest.$ac_ext >&5
5019
5020  # Passes both tests.
5021ac_preproc_ok=:
5022break
5023fi
5024
5025rm -f conftest.err conftest.$ac_ext
5026
5027done
5028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5029rm -f conftest.err conftest.$ac_ext
5030if $ac_preproc_ok; then
5031  :
5032else
5033  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5034See \`config.log' for more details." >&5
5035echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5036See \`config.log' for more details." >&2;}
5037   { (exit 1); exit 1; }; }
5038fi
5039
5040ac_ext=c
5041ac_cpp='$CPP $CPPFLAGS'
5042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045
5046
5047{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5048echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5049if test "${ac_cv_header_stdc+set}" = set; then
5050  echo $ECHO_N "(cached) $ECHO_C" >&6
5051else
5052  cat >conftest.$ac_ext <<_ACEOF
5053/* confdefs.h.  */
5054_ACEOF
5055cat confdefs.h >>conftest.$ac_ext
5056cat >>conftest.$ac_ext <<_ACEOF
5057/* end confdefs.h.  */
5058#include <stdlib.h>
5059#include <stdarg.h>
5060#include <string.h>
5061#include <float.h>
5062
5063int
5064main ()
5065{
5066
5067  ;
5068  return 0;
5069}
5070_ACEOF
5071rm -f conftest.$ac_objext
5072if { (ac_try="$ac_compile"
5073case "(($ac_try" in
5074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075  *) ac_try_echo=$ac_try;;
5076esac
5077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5078  (eval "$ac_compile") 2>conftest.er1
5079  ac_status=$?
5080  grep -v '^ *+' conftest.er1 >conftest.err
5081  rm -f conftest.er1
5082  cat conftest.err >&5
5083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084  (exit $ac_status); } &&
5085	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5086  { (case "(($ac_try" in
5087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088  *) ac_try_echo=$ac_try;;
5089esac
5090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091  (eval "$ac_try") 2>&5
5092  ac_status=$?
5093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094  (exit $ac_status); }; } &&
5095	 { ac_try='test -s conftest.$ac_objext'
5096  { (case "(($ac_try" in
5097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098  *) ac_try_echo=$ac_try;;
5099esac
5100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101  (eval "$ac_try") 2>&5
5102  ac_status=$?
5103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104  (exit $ac_status); }; }; then
5105  ac_cv_header_stdc=yes
5106else
5107  echo "$as_me: failed program was:" >&5
5108sed 's/^/| /' conftest.$ac_ext >&5
5109
5110	ac_cv_header_stdc=no
5111fi
5112
5113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114
5115if test $ac_cv_header_stdc = yes; then
5116  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5117  cat >conftest.$ac_ext <<_ACEOF
5118/* confdefs.h.  */
5119_ACEOF
5120cat confdefs.h >>conftest.$ac_ext
5121cat >>conftest.$ac_ext <<_ACEOF
5122/* end confdefs.h.  */
5123#include <string.h>
5124
5125_ACEOF
5126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5127  $EGREP "memchr" >/dev/null 2>&1; then
5128  :
5129else
5130  ac_cv_header_stdc=no
5131fi
5132rm -f conftest*
5133
5134fi
5135
5136if test $ac_cv_header_stdc = yes; then
5137  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5138  cat >conftest.$ac_ext <<_ACEOF
5139/* confdefs.h.  */
5140_ACEOF
5141cat confdefs.h >>conftest.$ac_ext
5142cat >>conftest.$ac_ext <<_ACEOF
5143/* end confdefs.h.  */
5144#include <stdlib.h>
5145
5146_ACEOF
5147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5148  $EGREP "free" >/dev/null 2>&1; then
5149  :
5150else
5151  ac_cv_header_stdc=no
5152fi
5153rm -f conftest*
5154
5155fi
5156
5157if test $ac_cv_header_stdc = yes; then
5158  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5159  if test "$cross_compiling" = yes; then
5160  :
5161else
5162  cat >conftest.$ac_ext <<_ACEOF
5163/* confdefs.h.  */
5164_ACEOF
5165cat confdefs.h >>conftest.$ac_ext
5166cat >>conftest.$ac_ext <<_ACEOF
5167/* end confdefs.h.  */
5168#include <ctype.h>
5169#include <stdlib.h>
5170#if ((' ' & 0x0FF) == 0x020)
5171# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5172# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5173#else
5174# define ISLOWER(c) \
5175		   (('a' <= (c) && (c) <= 'i') \
5176		     || ('j' <= (c) && (c) <= 'r') \
5177		     || ('s' <= (c) && (c) <= 'z'))
5178# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5179#endif
5180
5181#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5182int
5183main ()
5184{
5185  int i;
5186  for (i = 0; i < 256; i++)
5187    if (XOR (islower (i), ISLOWER (i))
5188	|| toupper (i) != TOUPPER (i))
5189      return 2;
5190  return 0;
5191}
5192_ACEOF
5193rm -f conftest$ac_exeext
5194if { (ac_try="$ac_link"
5195case "(($ac_try" in
5196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197  *) ac_try_echo=$ac_try;;
5198esac
5199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200  (eval "$ac_link") 2>&5
5201  ac_status=$?
5202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5204  { (case "(($ac_try" in
5205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206  *) ac_try_echo=$ac_try;;
5207esac
5208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209  (eval "$ac_try") 2>&5
5210  ac_status=$?
5211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212  (exit $ac_status); }; }; then
5213  :
5214else
5215  echo "$as_me: program exited with status $ac_status" >&5
5216echo "$as_me: failed program was:" >&5
5217sed 's/^/| /' conftest.$ac_ext >&5
5218
5219( exit $ac_status )
5220ac_cv_header_stdc=no
5221fi
5222rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5223fi
5224
5225
5226fi
5227fi
5228{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5229echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5230if test $ac_cv_header_stdc = yes; then
5231
5232cat >>confdefs.h <<\_ACEOF
5233#define STDC_HEADERS 1
5234_ACEOF
5235
5236fi
5237
5238# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5249		  inttypes.h stdint.h unistd.h
5250do
5251as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5252{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5255  echo $ECHO_N "(cached) $ECHO_C" >&6
5256else
5257  cat >conftest.$ac_ext <<_ACEOF
5258/* confdefs.h.  */
5259_ACEOF
5260cat confdefs.h >>conftest.$ac_ext
5261cat >>conftest.$ac_ext <<_ACEOF
5262/* end confdefs.h.  */
5263$ac_includes_default
5264
5265#include <$ac_header>
5266_ACEOF
5267rm -f conftest.$ac_objext
5268if { (ac_try="$ac_compile"
5269case "(($ac_try" in
5270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271  *) ac_try_echo=$ac_try;;
5272esac
5273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274  (eval "$ac_compile") 2>conftest.er1
5275  ac_status=$?
5276  grep -v '^ *+' conftest.er1 >conftest.err
5277  rm -f conftest.er1
5278  cat conftest.err >&5
5279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280  (exit $ac_status); } &&
5281	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5282  { (case "(($ac_try" in
5283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284  *) ac_try_echo=$ac_try;;
5285esac
5286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287  (eval "$ac_try") 2>&5
5288  ac_status=$?
5289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290  (exit $ac_status); }; } &&
5291	 { ac_try='test -s conftest.$ac_objext'
5292  { (case "(($ac_try" in
5293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294  *) ac_try_echo=$ac_try;;
5295esac
5296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297  (eval "$ac_try") 2>&5
5298  ac_status=$?
5299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300  (exit $ac_status); }; }; then
5301  eval "$as_ac_Header=yes"
5302else
5303  echo "$as_me: failed program was:" >&5
5304sed 's/^/| /' conftest.$ac_ext >&5
5305
5306	eval "$as_ac_Header=no"
5307fi
5308
5309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310fi
5311ac_res=`eval echo '${'$as_ac_Header'}'`
5312	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5313echo "${ECHO_T}$ac_res" >&6; }
5314if test `eval echo '${'$as_ac_Header'}'` = yes; then
5315  cat >>confdefs.h <<_ACEOF
5316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5317_ACEOF
5318
5319fi
5320
5321done
5322
5323
5324
5325for ac_header in dlfcn.h
5326do
5327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5329  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5332  echo $ECHO_N "(cached) $ECHO_C" >&6
5333fi
5334ac_res=`eval echo '${'$as_ac_Header'}'`
5335	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5336echo "${ECHO_T}$ac_res" >&6; }
5337else
5338  # Is the header compilable?
5339{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5340echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5341cat >conftest.$ac_ext <<_ACEOF
5342/* confdefs.h.  */
5343_ACEOF
5344cat confdefs.h >>conftest.$ac_ext
5345cat >>conftest.$ac_ext <<_ACEOF
5346/* end confdefs.h.  */
5347$ac_includes_default
5348#include <$ac_header>
5349_ACEOF
5350rm -f conftest.$ac_objext
5351if { (ac_try="$ac_compile"
5352case "(($ac_try" in
5353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5354  *) ac_try_echo=$ac_try;;
5355esac
5356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5357  (eval "$ac_compile") 2>conftest.er1
5358  ac_status=$?
5359  grep -v '^ *+' conftest.er1 >conftest.err
5360  rm -f conftest.er1
5361  cat conftest.err >&5
5362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363  (exit $ac_status); } &&
5364	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5365  { (case "(($ac_try" in
5366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367  *) ac_try_echo=$ac_try;;
5368esac
5369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370  (eval "$ac_try") 2>&5
5371  ac_status=$?
5372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373  (exit $ac_status); }; } &&
5374	 { ac_try='test -s conftest.$ac_objext'
5375  { (case "(($ac_try" in
5376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377  *) ac_try_echo=$ac_try;;
5378esac
5379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380  (eval "$ac_try") 2>&5
5381  ac_status=$?
5382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383  (exit $ac_status); }; }; then
5384  ac_header_compiler=yes
5385else
5386  echo "$as_me: failed program was:" >&5
5387sed 's/^/| /' conftest.$ac_ext >&5
5388
5389	ac_header_compiler=no
5390fi
5391
5392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5393{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5394echo "${ECHO_T}$ac_header_compiler" >&6; }
5395
5396# Is the header present?
5397{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5398echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5399cat >conftest.$ac_ext <<_ACEOF
5400/* confdefs.h.  */
5401_ACEOF
5402cat confdefs.h >>conftest.$ac_ext
5403cat >>conftest.$ac_ext <<_ACEOF
5404/* end confdefs.h.  */
5405#include <$ac_header>
5406_ACEOF
5407if { (ac_try="$ac_cpp conftest.$ac_ext"
5408case "(($ac_try" in
5409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410  *) ac_try_echo=$ac_try;;
5411esac
5412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5413  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5414  ac_status=$?
5415  grep -v '^ *+' conftest.er1 >conftest.err
5416  rm -f conftest.er1
5417  cat conftest.err >&5
5418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419  (exit $ac_status); } >/dev/null; then
5420  if test -s conftest.err; then
5421    ac_cpp_err=$ac_c_preproc_warn_flag
5422    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5423  else
5424    ac_cpp_err=
5425  fi
5426else
5427  ac_cpp_err=yes
5428fi
5429if test -z "$ac_cpp_err"; then
5430  ac_header_preproc=yes
5431else
5432  echo "$as_me: failed program was:" >&5
5433sed 's/^/| /' conftest.$ac_ext >&5
5434
5435  ac_header_preproc=no
5436fi
5437
5438rm -f conftest.err conftest.$ac_ext
5439{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5440echo "${ECHO_T}$ac_header_preproc" >&6; }
5441
5442# So?  What about this header?
5443case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5444  yes:no: )
5445    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5446echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5447    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5448echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5449    ac_header_preproc=yes
5450    ;;
5451  no:yes:* )
5452    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5453echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5454    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5455echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5456    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5457echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5458    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5459echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5460    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5461echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5462    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5463echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5464
5465    ;;
5466esac
5467{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5469if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5470  echo $ECHO_N "(cached) $ECHO_C" >&6
5471else
5472  eval "$as_ac_Header=\$ac_header_preproc"
5473fi
5474ac_res=`eval echo '${'$as_ac_Header'}'`
5475	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5476echo "${ECHO_T}$ac_res" >&6; }
5477
5478fi
5479if test `eval echo '${'$as_ac_Header'}'` = yes; then
5480  cat >>confdefs.h <<_ACEOF
5481#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5482_ACEOF
5483
5484fi
5485
5486done
5487
5488ac_ext=cpp
5489ac_cpp='$CXXCPP $CPPFLAGS'
5490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5493if test -z "$CXX"; then
5494  if test -n "$CCC"; then
5495    CXX=$CCC
5496  else
5497    if test -n "$ac_tool_prefix"; then
5498  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5499  do
5500    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5501set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5502{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5504if test "${ac_cv_prog_CXX+set}" = set; then
5505  echo $ECHO_N "(cached) $ECHO_C" >&6
5506else
5507  if test -n "$CXX"; then
5508  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5509else
5510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511for as_dir in $PATH
5512do
5513  IFS=$as_save_IFS
5514  test -z "$as_dir" && as_dir=.
5515  for ac_exec_ext in '' $ac_executable_extensions; do
5516  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5517    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5518    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5519    break 2
5520  fi
5521done
5522done
5523IFS=$as_save_IFS
5524
5525fi
5526fi
5527CXX=$ac_cv_prog_CXX
5528if test -n "$CXX"; then
5529  { echo "$as_me:$LINENO: result: $CXX" >&5
5530echo "${ECHO_T}$CXX" >&6; }
5531else
5532  { echo "$as_me:$LINENO: result: no" >&5
5533echo "${ECHO_T}no" >&6; }
5534fi
5535
5536
5537    test -n "$CXX" && break
5538  done
5539fi
5540if test -z "$CXX"; then
5541  ac_ct_CXX=$CXX
5542  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5543do
5544  # Extract the first word of "$ac_prog", so it can be a program name with args.
5545set dummy $ac_prog; ac_word=$2
5546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5548if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5549  echo $ECHO_N "(cached) $ECHO_C" >&6
5550else
5551  if test -n "$ac_ct_CXX"; then
5552  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5553else
5554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH
5556do
5557  IFS=$as_save_IFS
5558  test -z "$as_dir" && as_dir=.
5559  for ac_exec_ext in '' $ac_executable_extensions; do
5560  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5561    ac_cv_prog_ac_ct_CXX="$ac_prog"
5562    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5563    break 2
5564  fi
5565done
5566done
5567IFS=$as_save_IFS
5568
5569fi
5570fi
5571ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5572if test -n "$ac_ct_CXX"; then
5573  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5574echo "${ECHO_T}$ac_ct_CXX" >&6; }
5575else
5576  { echo "$as_me:$LINENO: result: no" >&5
5577echo "${ECHO_T}no" >&6; }
5578fi
5579
5580
5581  test -n "$ac_ct_CXX" && break
5582done
5583
5584  if test "x$ac_ct_CXX" = x; then
5585    CXX="g++"
5586  else
5587    case $cross_compiling:$ac_tool_warned in
5588yes:)
5589{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5590whose name does not start with the host triplet.  If you think this
5591configuration is useful to you, please write to autoconf@gnu.org." >&5
5592echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5593whose name does not start with the host triplet.  If you think this
5594configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5595ac_tool_warned=yes ;;
5596esac
5597    CXX=$ac_ct_CXX
5598  fi
5599fi
5600
5601  fi
5602fi
5603# Provide some information about the compiler.
5604echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5605ac_compiler=`set X $ac_compile; echo $2`
5606{ (ac_try="$ac_compiler --version >&5"
5607case "(($ac_try" in
5608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609  *) ac_try_echo=$ac_try;;
5610esac
5611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612  (eval "$ac_compiler --version >&5") 2>&5
5613  ac_status=$?
5614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615  (exit $ac_status); }
5616{ (ac_try="$ac_compiler -v >&5"
5617case "(($ac_try" in
5618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619  *) ac_try_echo=$ac_try;;
5620esac
5621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622  (eval "$ac_compiler -v >&5") 2>&5
5623  ac_status=$?
5624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625  (exit $ac_status); }
5626{ (ac_try="$ac_compiler -V >&5"
5627case "(($ac_try" in
5628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629  *) ac_try_echo=$ac_try;;
5630esac
5631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632  (eval "$ac_compiler -V >&5") 2>&5
5633  ac_status=$?
5634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635  (exit $ac_status); }
5636
5637{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5638echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5639if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5640  echo $ECHO_N "(cached) $ECHO_C" >&6
5641else
5642  cat >conftest.$ac_ext <<_ACEOF
5643/* confdefs.h.  */
5644_ACEOF
5645cat confdefs.h >>conftest.$ac_ext
5646cat >>conftest.$ac_ext <<_ACEOF
5647/* end confdefs.h.  */
5648
5649int
5650main ()
5651{
5652#ifndef __GNUC__
5653       choke me
5654#endif
5655
5656  ;
5657  return 0;
5658}
5659_ACEOF
5660rm -f conftest.$ac_objext
5661if { (ac_try="$ac_compile"
5662case "(($ac_try" in
5663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664  *) ac_try_echo=$ac_try;;
5665esac
5666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667  (eval "$ac_compile") 2>conftest.er1
5668  ac_status=$?
5669  grep -v '^ *+' conftest.er1 >conftest.err
5670  rm -f conftest.er1
5671  cat conftest.err >&5
5672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673  (exit $ac_status); } &&
5674	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5675  { (case "(($ac_try" in
5676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677  *) ac_try_echo=$ac_try;;
5678esac
5679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680  (eval "$ac_try") 2>&5
5681  ac_status=$?
5682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683  (exit $ac_status); }; } &&
5684	 { ac_try='test -s conftest.$ac_objext'
5685  { (case "(($ac_try" in
5686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687  *) ac_try_echo=$ac_try;;
5688esac
5689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690  (eval "$ac_try") 2>&5
5691  ac_status=$?
5692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693  (exit $ac_status); }; }; then
5694  ac_compiler_gnu=yes
5695else
5696  echo "$as_me: failed program was:" >&5
5697sed 's/^/| /' conftest.$ac_ext >&5
5698
5699	ac_compiler_gnu=no
5700fi
5701
5702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5704
5705fi
5706{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5707echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5708GXX=`test $ac_compiler_gnu = yes && echo yes`
5709ac_test_CXXFLAGS=${CXXFLAGS+set}
5710ac_save_CXXFLAGS=$CXXFLAGS
5711{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5712echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5713if test "${ac_cv_prog_cxx_g+set}" = set; then
5714  echo $ECHO_N "(cached) $ECHO_C" >&6
5715else
5716  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5717   ac_cxx_werror_flag=yes
5718   ac_cv_prog_cxx_g=no
5719   CXXFLAGS="-g"
5720   cat >conftest.$ac_ext <<_ACEOF
5721/* confdefs.h.  */
5722_ACEOF
5723cat confdefs.h >>conftest.$ac_ext
5724cat >>conftest.$ac_ext <<_ACEOF
5725/* end confdefs.h.  */
5726
5727int
5728main ()
5729{
5730
5731  ;
5732  return 0;
5733}
5734_ACEOF
5735rm -f conftest.$ac_objext
5736if { (ac_try="$ac_compile"
5737case "(($ac_try" in
5738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739  *) ac_try_echo=$ac_try;;
5740esac
5741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742  (eval "$ac_compile") 2>conftest.er1
5743  ac_status=$?
5744  grep -v '^ *+' conftest.er1 >conftest.err
5745  rm -f conftest.er1
5746  cat conftest.err >&5
5747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748  (exit $ac_status); } &&
5749	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5750  { (case "(($ac_try" in
5751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752  *) ac_try_echo=$ac_try;;
5753esac
5754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755  (eval "$ac_try") 2>&5
5756  ac_status=$?
5757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758  (exit $ac_status); }; } &&
5759	 { ac_try='test -s conftest.$ac_objext'
5760  { (case "(($ac_try" in
5761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762  *) ac_try_echo=$ac_try;;
5763esac
5764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765  (eval "$ac_try") 2>&5
5766  ac_status=$?
5767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768  (exit $ac_status); }; }; then
5769  ac_cv_prog_cxx_g=yes
5770else
5771  echo "$as_me: failed program was:" >&5
5772sed 's/^/| /' conftest.$ac_ext >&5
5773
5774	CXXFLAGS=""
5775      cat >conftest.$ac_ext <<_ACEOF
5776/* confdefs.h.  */
5777_ACEOF
5778cat confdefs.h >>conftest.$ac_ext
5779cat >>conftest.$ac_ext <<_ACEOF
5780/* end confdefs.h.  */
5781
5782int
5783main ()
5784{
5785
5786  ;
5787  return 0;
5788}
5789_ACEOF
5790rm -f conftest.$ac_objext
5791if { (ac_try="$ac_compile"
5792case "(($ac_try" in
5793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794  *) ac_try_echo=$ac_try;;
5795esac
5796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797  (eval "$ac_compile") 2>conftest.er1
5798  ac_status=$?
5799  grep -v '^ *+' conftest.er1 >conftest.err
5800  rm -f conftest.er1
5801  cat conftest.err >&5
5802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803  (exit $ac_status); } &&
5804	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5805  { (case "(($ac_try" in
5806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807  *) ac_try_echo=$ac_try;;
5808esac
5809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810  (eval "$ac_try") 2>&5
5811  ac_status=$?
5812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813  (exit $ac_status); }; } &&
5814	 { ac_try='test -s conftest.$ac_objext'
5815  { (case "(($ac_try" in
5816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817  *) ac_try_echo=$ac_try;;
5818esac
5819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820  (eval "$ac_try") 2>&5
5821  ac_status=$?
5822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823  (exit $ac_status); }; }; then
5824  :
5825else
5826  echo "$as_me: failed program was:" >&5
5827sed 's/^/| /' conftest.$ac_ext >&5
5828
5829	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5830	 CXXFLAGS="-g"
5831	 cat >conftest.$ac_ext <<_ACEOF
5832/* confdefs.h.  */
5833_ACEOF
5834cat confdefs.h >>conftest.$ac_ext
5835cat >>conftest.$ac_ext <<_ACEOF
5836/* end confdefs.h.  */
5837
5838int
5839main ()
5840{
5841
5842  ;
5843  return 0;
5844}
5845_ACEOF
5846rm -f conftest.$ac_objext
5847if { (ac_try="$ac_compile"
5848case "(($ac_try" in
5849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850  *) ac_try_echo=$ac_try;;
5851esac
5852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853  (eval "$ac_compile") 2>conftest.er1
5854  ac_status=$?
5855  grep -v '^ *+' conftest.er1 >conftest.err
5856  rm -f conftest.er1
5857  cat conftest.err >&5
5858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859  (exit $ac_status); } &&
5860	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5861  { (case "(($ac_try" in
5862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863  *) ac_try_echo=$ac_try;;
5864esac
5865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866  (eval "$ac_try") 2>&5
5867  ac_status=$?
5868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869  (exit $ac_status); }; } &&
5870	 { ac_try='test -s conftest.$ac_objext'
5871  { (case "(($ac_try" in
5872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873  *) ac_try_echo=$ac_try;;
5874esac
5875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876  (eval "$ac_try") 2>&5
5877  ac_status=$?
5878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879  (exit $ac_status); }; }; then
5880  ac_cv_prog_cxx_g=yes
5881else
5882  echo "$as_me: failed program was:" >&5
5883sed 's/^/| /' conftest.$ac_ext >&5
5884
5885
5886fi
5887
5888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889fi
5890
5891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892fi
5893
5894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5896fi
5897{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5898echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5899if test "$ac_test_CXXFLAGS" = set; then
5900  CXXFLAGS=$ac_save_CXXFLAGS
5901elif test $ac_cv_prog_cxx_g = yes; then
5902  if test "$GXX" = yes; then
5903    CXXFLAGS="-g -O2"
5904  else
5905    CXXFLAGS="-g"
5906  fi
5907else
5908  if test "$GXX" = yes; then
5909    CXXFLAGS="-O2"
5910  else
5911    CXXFLAGS=
5912  fi
5913fi
5914ac_ext=cpp
5915ac_cpp='$CXXCPP $CPPFLAGS'
5916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5919
5920depcc="$CXX"  am_compiler_list=
5921
5922{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5923echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5924if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5925  echo $ECHO_N "(cached) $ECHO_C" >&6
5926else
5927  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5928  # We make a subdir and do the tests there.  Otherwise we can end up
5929  # making bogus files that we don't know about and never remove.  For
5930  # instance it was reported that on HP-UX the gcc test will end up
5931  # making a dummy file named `D' -- because `-MD' means `put the output
5932  # in D'.
5933  mkdir conftest.dir
5934  # Copy depcomp to subdir because otherwise we won't find it if we're
5935  # using a relative directory.
5936  cp "$am_depcomp" conftest.dir
5937  cd conftest.dir
5938  # We will build objects and dependencies in a subdirectory because
5939  # it helps to detect inapplicable dependency modes.  For instance
5940  # both Tru64's cc and ICC support -MD to output dependencies as a
5941  # side effect of compilation, but ICC will put the dependencies in
5942  # the current directory while Tru64 will put them in the object
5943  # directory.
5944  mkdir sub
5945
5946  am_cv_CXX_dependencies_compiler_type=none
5947  if test "$am_compiler_list" = ""; then
5948     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5949  fi
5950  for depmode in $am_compiler_list; do
5951    # Setup a source with many dependencies, because some compilers
5952    # like to wrap large dependency lists on column 80 (with \), and
5953    # we should not choose a depcomp mode which is confused by this.
5954    #
5955    # We need to recreate these files for each test, as the compiler may
5956    # overwrite some of them when testing with obscure command lines.
5957    # This happens at least with the AIX C compiler.
5958    : > sub/conftest.c
5959    for i in 1 2 3 4 5 6; do
5960      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5961      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5962      # Solaris 8's {/usr,}/bin/sh.
5963      touch sub/conftst$i.h
5964    done
5965    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5966
5967    case $depmode in
5968    nosideeffect)
5969      # after this tag, mechanisms are not by side-effect, so they'll
5970      # only be used when explicitly requested
5971      if test "x$enable_dependency_tracking" = xyes; then
5972	continue
5973      else
5974	break
5975      fi
5976      ;;
5977    none) break ;;
5978    esac
5979    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5980    # mode.  It turns out that the SunPro C++ compiler does not properly
5981    # handle `-M -o', and we need to detect this.
5982    if depmode=$depmode \
5983       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5984       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5985       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5986         >/dev/null 2>conftest.err &&
5987       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5988       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5989       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5990      # icc doesn't choke on unknown options, it will just issue warnings
5991      # or remarks (even with -Werror).  So we grep stderr for any message
5992      # that says an option was ignored or not supported.
5993      # When given -MP, icc 7.0 and 7.1 complain thusly:
5994      #   icc: Command line warning: ignoring option '-M'; no argument required
5995      # The diagnosis changed in icc 8.0:
5996      #   icc: Command line remark: option '-MP' not supported
5997      if (grep 'ignoring option' conftest.err ||
5998          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5999        am_cv_CXX_dependencies_compiler_type=$depmode
6000        break
6001      fi
6002    fi
6003  done
6004
6005  cd ..
6006  rm -rf conftest.dir
6007else
6008  am_cv_CXX_dependencies_compiler_type=none
6009fi
6010
6011fi
6012{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6013echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6014CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6015
6016
6017
6018if
6019  test "x$enable_dependency_tracking" != xno \
6020  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6021  am__fastdepCXX_TRUE=
6022  am__fastdepCXX_FALSE='#'
6023else
6024  am__fastdepCXX_TRUE='#'
6025  am__fastdepCXX_FALSE=
6026fi
6027
6028
6029
6030
6031if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6032    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6033    (test "X$CXX" != "Xg++"))) ; then
6034  ac_ext=cpp
6035ac_cpp='$CXXCPP $CPPFLAGS'
6036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6039{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6040echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6041if test -z "$CXXCPP"; then
6042  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6043  echo $ECHO_N "(cached) $ECHO_C" >&6
6044else
6045      # Double quotes because CXXCPP needs to be expanded
6046    for CXXCPP in "$CXX -E" "/lib/cpp"
6047    do
6048      ac_preproc_ok=false
6049for ac_cxx_preproc_warn_flag in '' yes
6050do
6051  # Use a header file that comes with gcc, so configuring glibc
6052  # with a fresh cross-compiler works.
6053  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6054  # <limits.h> exists even on freestanding compilers.
6055  # On the NeXT, cc -E runs the code through the compiler's parser,
6056  # not just through cpp. "Syntax error" is here to catch this case.
6057  cat >conftest.$ac_ext <<_ACEOF
6058/* confdefs.h.  */
6059_ACEOF
6060cat confdefs.h >>conftest.$ac_ext
6061cat >>conftest.$ac_ext <<_ACEOF
6062/* end confdefs.h.  */
6063#ifdef __STDC__
6064# include <limits.h>
6065#else
6066# include <assert.h>
6067#endif
6068		     Syntax error
6069_ACEOF
6070if { (ac_try="$ac_cpp conftest.$ac_ext"
6071case "(($ac_try" in
6072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073  *) ac_try_echo=$ac_try;;
6074esac
6075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6077  ac_status=$?
6078  grep -v '^ *+' conftest.er1 >conftest.err
6079  rm -f conftest.er1
6080  cat conftest.err >&5
6081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082  (exit $ac_status); } >/dev/null; then
6083  if test -s conftest.err; then
6084    ac_cpp_err=$ac_cxx_preproc_warn_flag
6085    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6086  else
6087    ac_cpp_err=
6088  fi
6089else
6090  ac_cpp_err=yes
6091fi
6092if test -z "$ac_cpp_err"; then
6093  :
6094else
6095  echo "$as_me: failed program was:" >&5
6096sed 's/^/| /' conftest.$ac_ext >&5
6097
6098  # Broken: fails on valid input.
6099continue
6100fi
6101
6102rm -f conftest.err conftest.$ac_ext
6103
6104  # OK, works on sane cases.  Now check whether nonexistent headers
6105  # can be detected and how.
6106  cat >conftest.$ac_ext <<_ACEOF
6107/* confdefs.h.  */
6108_ACEOF
6109cat confdefs.h >>conftest.$ac_ext
6110cat >>conftest.$ac_ext <<_ACEOF
6111/* end confdefs.h.  */
6112#include <ac_nonexistent.h>
6113_ACEOF
6114if { (ac_try="$ac_cpp conftest.$ac_ext"
6115case "(($ac_try" in
6116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117  *) ac_try_echo=$ac_try;;
6118esac
6119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6121  ac_status=$?
6122  grep -v '^ *+' conftest.er1 >conftest.err
6123  rm -f conftest.er1
6124  cat conftest.err >&5
6125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126  (exit $ac_status); } >/dev/null; then
6127  if test -s conftest.err; then
6128    ac_cpp_err=$ac_cxx_preproc_warn_flag
6129    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6130  else
6131    ac_cpp_err=
6132  fi
6133else
6134  ac_cpp_err=yes
6135fi
6136if test -z "$ac_cpp_err"; then
6137  # Broken: success on invalid input.
6138continue
6139else
6140  echo "$as_me: failed program was:" >&5
6141sed 's/^/| /' conftest.$ac_ext >&5
6142
6143  # Passes both tests.
6144ac_preproc_ok=:
6145break
6146fi
6147
6148rm -f conftest.err conftest.$ac_ext
6149
6150done
6151# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6152rm -f conftest.err conftest.$ac_ext
6153if $ac_preproc_ok; then
6154  break
6155fi
6156
6157    done
6158    ac_cv_prog_CXXCPP=$CXXCPP
6159
6160fi
6161  CXXCPP=$ac_cv_prog_CXXCPP
6162else
6163  ac_cv_prog_CXXCPP=$CXXCPP
6164fi
6165{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6166echo "${ECHO_T}$CXXCPP" >&6; }
6167ac_preproc_ok=false
6168for ac_cxx_preproc_warn_flag in '' yes
6169do
6170  # Use a header file that comes with gcc, so configuring glibc
6171  # with a fresh cross-compiler works.
6172  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6173  # <limits.h> exists even on freestanding compilers.
6174  # On the NeXT, cc -E runs the code through the compiler's parser,
6175  # not just through cpp. "Syntax error" is here to catch this case.
6176  cat >conftest.$ac_ext <<_ACEOF
6177/* confdefs.h.  */
6178_ACEOF
6179cat confdefs.h >>conftest.$ac_ext
6180cat >>conftest.$ac_ext <<_ACEOF
6181/* end confdefs.h.  */
6182#ifdef __STDC__
6183# include <limits.h>
6184#else
6185# include <assert.h>
6186#endif
6187		     Syntax error
6188_ACEOF
6189if { (ac_try="$ac_cpp conftest.$ac_ext"
6190case "(($ac_try" in
6191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192  *) ac_try_echo=$ac_try;;
6193esac
6194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6196  ac_status=$?
6197  grep -v '^ *+' conftest.er1 >conftest.err
6198  rm -f conftest.er1
6199  cat conftest.err >&5
6200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201  (exit $ac_status); } >/dev/null; then
6202  if test -s conftest.err; then
6203    ac_cpp_err=$ac_cxx_preproc_warn_flag
6204    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6205  else
6206    ac_cpp_err=
6207  fi
6208else
6209  ac_cpp_err=yes
6210fi
6211if test -z "$ac_cpp_err"; then
6212  :
6213else
6214  echo "$as_me: failed program was:" >&5
6215sed 's/^/| /' conftest.$ac_ext >&5
6216
6217  # Broken: fails on valid input.
6218continue
6219fi
6220
6221rm -f conftest.err conftest.$ac_ext
6222
6223  # OK, works on sane cases.  Now check whether nonexistent headers
6224  # can be detected and how.
6225  cat >conftest.$ac_ext <<_ACEOF
6226/* confdefs.h.  */
6227_ACEOF
6228cat confdefs.h >>conftest.$ac_ext
6229cat >>conftest.$ac_ext <<_ACEOF
6230/* end confdefs.h.  */
6231#include <ac_nonexistent.h>
6232_ACEOF
6233if { (ac_try="$ac_cpp conftest.$ac_ext"
6234case "(($ac_try" in
6235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236  *) ac_try_echo=$ac_try;;
6237esac
6238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6240  ac_status=$?
6241  grep -v '^ *+' conftest.er1 >conftest.err
6242  rm -f conftest.er1
6243  cat conftest.err >&5
6244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245  (exit $ac_status); } >/dev/null; then
6246  if test -s conftest.err; then
6247    ac_cpp_err=$ac_cxx_preproc_warn_flag
6248    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6249  else
6250    ac_cpp_err=
6251  fi
6252else
6253  ac_cpp_err=yes
6254fi
6255if test -z "$ac_cpp_err"; then
6256  # Broken: success on invalid input.
6257continue
6258else
6259  echo "$as_me: failed program was:" >&5
6260sed 's/^/| /' conftest.$ac_ext >&5
6261
6262  # Passes both tests.
6263ac_preproc_ok=:
6264break
6265fi
6266
6267rm -f conftest.err conftest.$ac_ext
6268
6269done
6270# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6271rm -f conftest.err conftest.$ac_ext
6272if $ac_preproc_ok; then
6273  :
6274else
6275  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6276See \`config.log' for more details." >&5
6277echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6278See \`config.log' for more details." >&2;}
6279   { (exit 1); exit 1; }; }
6280fi
6281
6282ac_ext=cpp
6283ac_cpp='$CXXCPP $CPPFLAGS'
6284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6287
6288fi
6289
6290
6291ac_ext=f
6292ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6293ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6294ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6295if test -n "$ac_tool_prefix"; then
6296  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6297  do
6298    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6299set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6300{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6302if test "${ac_cv_prog_F77+set}" = set; then
6303  echo $ECHO_N "(cached) $ECHO_C" >&6
6304else
6305  if test -n "$F77"; then
6306  ac_cv_prog_F77="$F77" # Let the user override the test.
6307else
6308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309for as_dir in $PATH
6310do
6311  IFS=$as_save_IFS
6312  test -z "$as_dir" && as_dir=.
6313  for ac_exec_ext in '' $ac_executable_extensions; do
6314  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6315    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6316    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317    break 2
6318  fi
6319done
6320done
6321IFS=$as_save_IFS
6322
6323fi
6324fi
6325F77=$ac_cv_prog_F77
6326if test -n "$F77"; then
6327  { echo "$as_me:$LINENO: result: $F77" >&5
6328echo "${ECHO_T}$F77" >&6; }
6329else
6330  { echo "$as_me:$LINENO: result: no" >&5
6331echo "${ECHO_T}no" >&6; }
6332fi
6333
6334
6335    test -n "$F77" && break
6336  done
6337fi
6338if test -z "$F77"; then
6339  ac_ct_F77=$F77
6340  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6341do
6342  # Extract the first word of "$ac_prog", so it can be a program name with args.
6343set dummy $ac_prog; ac_word=$2
6344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6346if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6347  echo $ECHO_N "(cached) $ECHO_C" >&6
6348else
6349  if test -n "$ac_ct_F77"; then
6350  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6351else
6352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353for as_dir in $PATH
6354do
6355  IFS=$as_save_IFS
6356  test -z "$as_dir" && as_dir=.
6357  for ac_exec_ext in '' $ac_executable_extensions; do
6358  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6359    ac_cv_prog_ac_ct_F77="$ac_prog"
6360    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6361    break 2
6362  fi
6363done
6364done
6365IFS=$as_save_IFS
6366
6367fi
6368fi
6369ac_ct_F77=$ac_cv_prog_ac_ct_F77
6370if test -n "$ac_ct_F77"; then
6371  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6372echo "${ECHO_T}$ac_ct_F77" >&6; }
6373else
6374  { echo "$as_me:$LINENO: result: no" >&5
6375echo "${ECHO_T}no" >&6; }
6376fi
6377
6378
6379  test -n "$ac_ct_F77" && break
6380done
6381
6382  if test "x$ac_ct_F77" = x; then
6383    F77=""
6384  else
6385    case $cross_compiling:$ac_tool_warned in
6386yes:)
6387{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6388whose name does not start with the host triplet.  If you think this
6389configuration is useful to you, please write to autoconf@gnu.org." >&5
6390echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6391whose name does not start with the host triplet.  If you think this
6392configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6393ac_tool_warned=yes ;;
6394esac
6395    F77=$ac_ct_F77
6396  fi
6397fi
6398
6399
6400# Provide some information about the compiler.
6401echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6402ac_compiler=`set X $ac_compile; echo $2`
6403{ (ac_try="$ac_compiler --version >&5"
6404case "(($ac_try" in
6405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406  *) ac_try_echo=$ac_try;;
6407esac
6408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409  (eval "$ac_compiler --version >&5") 2>&5
6410  ac_status=$?
6411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412  (exit $ac_status); }
6413{ (ac_try="$ac_compiler -v >&5"
6414case "(($ac_try" in
6415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416  *) ac_try_echo=$ac_try;;
6417esac
6418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419  (eval "$ac_compiler -v >&5") 2>&5
6420  ac_status=$?
6421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422  (exit $ac_status); }
6423{ (ac_try="$ac_compiler -V >&5"
6424case "(($ac_try" in
6425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426  *) ac_try_echo=$ac_try;;
6427esac
6428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429  (eval "$ac_compiler -V >&5") 2>&5
6430  ac_status=$?
6431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432  (exit $ac_status); }
6433rm -f a.out
6434
6435# If we don't use `.F' as extension, the preprocessor is not run on the
6436# input file.  (Note that this only needs to work for GNU compilers.)
6437ac_save_ext=$ac_ext
6438ac_ext=F
6439{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6440echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6441if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6442  echo $ECHO_N "(cached) $ECHO_C" >&6
6443else
6444  cat >conftest.$ac_ext <<_ACEOF
6445      program main
6446#ifndef __GNUC__
6447       choke me
6448#endif
6449
6450      end
6451_ACEOF
6452rm -f conftest.$ac_objext
6453if { (ac_try="$ac_compile"
6454case "(($ac_try" in
6455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456  *) ac_try_echo=$ac_try;;
6457esac
6458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459  (eval "$ac_compile") 2>conftest.er1
6460  ac_status=$?
6461  grep -v '^ *+' conftest.er1 >conftest.err
6462  rm -f conftest.er1
6463  cat conftest.err >&5
6464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465  (exit $ac_status); } &&
6466	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6467  { (case "(($ac_try" in
6468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469  *) ac_try_echo=$ac_try;;
6470esac
6471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472  (eval "$ac_try") 2>&5
6473  ac_status=$?
6474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475  (exit $ac_status); }; } &&
6476	 { ac_try='test -s conftest.$ac_objext'
6477  { (case "(($ac_try" in
6478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479  *) ac_try_echo=$ac_try;;
6480esac
6481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482  (eval "$ac_try") 2>&5
6483  ac_status=$?
6484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485  (exit $ac_status); }; }; then
6486  ac_compiler_gnu=yes
6487else
6488  echo "$as_me: failed program was:" >&5
6489sed 's/^/| /' conftest.$ac_ext >&5
6490
6491	ac_compiler_gnu=no
6492fi
6493
6494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6496
6497fi
6498{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6499echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6500ac_ext=$ac_save_ext
6501ac_test_FFLAGS=${FFLAGS+set}
6502ac_save_FFLAGS=$FFLAGS
6503FFLAGS=
6504{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6505echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6506if test "${ac_cv_prog_f77_g+set}" = set; then
6507  echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509  FFLAGS=-g
6510cat >conftest.$ac_ext <<_ACEOF
6511      program main
6512
6513      end
6514_ACEOF
6515rm -f conftest.$ac_objext
6516if { (ac_try="$ac_compile"
6517case "(($ac_try" in
6518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6519  *) ac_try_echo=$ac_try;;
6520esac
6521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6522  (eval "$ac_compile") 2>conftest.er1
6523  ac_status=$?
6524  grep -v '^ *+' conftest.er1 >conftest.err
6525  rm -f conftest.er1
6526  cat conftest.err >&5
6527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528  (exit $ac_status); } &&
6529	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6530  { (case "(($ac_try" in
6531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532  *) ac_try_echo=$ac_try;;
6533esac
6534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6535  (eval "$ac_try") 2>&5
6536  ac_status=$?
6537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538  (exit $ac_status); }; } &&
6539	 { ac_try='test -s conftest.$ac_objext'
6540  { (case "(($ac_try" in
6541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542  *) ac_try_echo=$ac_try;;
6543esac
6544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6545  (eval "$ac_try") 2>&5
6546  ac_status=$?
6547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548  (exit $ac_status); }; }; then
6549  ac_cv_prog_f77_g=yes
6550else
6551  echo "$as_me: failed program was:" >&5
6552sed 's/^/| /' conftest.$ac_ext >&5
6553
6554	ac_cv_prog_f77_g=no
6555fi
6556
6557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558
6559fi
6560{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6561echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6562if test "$ac_test_FFLAGS" = set; then
6563  FFLAGS=$ac_save_FFLAGS
6564elif test $ac_cv_prog_f77_g = yes; then
6565  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6566    FFLAGS="-g -O2"
6567  else
6568    FFLAGS="-g"
6569  fi
6570else
6571  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6572    FFLAGS="-O2"
6573  else
6574    FFLAGS=
6575  fi
6576fi
6577
6578G77=`test $ac_compiler_gnu = yes && echo yes`
6579ac_ext=c
6580ac_cpp='$CPP $CPPFLAGS'
6581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6583ac_compiler_gnu=$ac_cv_c_compiler_gnu
6584
6585
6586
6587# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6588
6589# find the maximum length of command line arguments
6590{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6591echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6592if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6593  echo $ECHO_N "(cached) $ECHO_C" >&6
6594else
6595    i=0
6596  teststring="ABCD"
6597
6598  case $build_os in
6599  msdosdjgpp*)
6600    # On DJGPP, this test can blow up pretty badly due to problems in libc
6601    # (any single argument exceeding 2000 bytes causes a buffer overrun
6602    # during glob expansion).  Even if it were fixed, the result of this
6603    # check would be larger than it should be.
6604    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6605    ;;
6606
6607  gnu*)
6608    # Under GNU Hurd, this test is not required because there is
6609    # no limit to the length of command line arguments.
6610    # Libtool will interpret -1 as no limit whatsoever
6611    lt_cv_sys_max_cmd_len=-1;
6612    ;;
6613
6614  cygwin* | mingw*)
6615    # On Win9x/ME, this test blows up -- it succeeds, but takes
6616    # about 5 minutes as the teststring grows exponentially.
6617    # Worse, since 9x/ME are not pre-emptively multitasking,
6618    # you end up with a "frozen" computer, even though with patience
6619    # the test eventually succeeds (with a max line length of 256k).
6620    # Instead, let's just punt: use the minimum linelength reported by
6621    # all of the supported platforms: 8192 (on NT/2K/XP).
6622    lt_cv_sys_max_cmd_len=8192;
6623    ;;
6624
6625  amigaos*)
6626    # On AmigaOS with pdksh, this test takes hours, literally.
6627    # So we just punt and use a minimum line length of 8192.
6628    lt_cv_sys_max_cmd_len=8192;
6629    ;;
6630
6631  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6632    # This has been around since 386BSD, at least.  Likely further.
6633    if test -x /sbin/sysctl; then
6634      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6635    elif test -x /usr/sbin/sysctl; then
6636      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6637    else
6638      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6639    fi
6640    # And add a safety zone
6641    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6642    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6643    ;;
6644
6645  interix*)
6646    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6647    lt_cv_sys_max_cmd_len=196608
6648    ;;
6649
6650  osf*)
6651    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6652    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6653    # nice to cause kernel panics so lets avoid the loop below.
6654    # First set a reasonable default.
6655    lt_cv_sys_max_cmd_len=16384
6656    #
6657    if test -x /sbin/sysconfig; then
6658      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6659        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6660      esac
6661    fi
6662    ;;
6663  sco3.2v5*)
6664    lt_cv_sys_max_cmd_len=102400
6665    ;;
6666  sysv5* | sco5v6* | sysv4.2uw2*)
6667    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6668    if test -n "$kargmax"; then
6669      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6670    else
6671      lt_cv_sys_max_cmd_len=32768
6672    fi
6673    ;;
6674  *)
6675    # If test is not a shell built-in, we'll probably end up computing a
6676    # maximum length that is only half of the actual maximum length, but
6677    # we can't tell.
6678    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6679    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6680	       = "XX$teststring") >/dev/null 2>&1 &&
6681	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6682	    lt_cv_sys_max_cmd_len=$new_result &&
6683	    test $i != 17 # 1/2 MB should be enough
6684    do
6685      i=`expr $i + 1`
6686      teststring=$teststring$teststring
6687    done
6688    teststring=
6689    # Add a significant safety factor because C++ compilers can tack on massive
6690    # amounts of additional arguments before passing them to the linker.
6691    # It appears as though 1/2 is a usable value.
6692    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6693    ;;
6694  esac
6695
6696fi
6697
6698if test -n $lt_cv_sys_max_cmd_len ; then
6699  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6700echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6701else
6702  { echo "$as_me:$LINENO: result: none" >&5
6703echo "${ECHO_T}none" >&6; }
6704fi
6705
6706
6707
6708
6709# Check for command to grab the raw symbol name followed by C symbol from nm.
6710{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6711echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6712if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6713  echo $ECHO_N "(cached) $ECHO_C" >&6
6714else
6715
6716# These are sane defaults that work on at least a few old systems.
6717# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6718
6719# Character class describing NM global symbol codes.
6720symcode='[BCDEGRST]'
6721
6722# Regexp to match symbols that can be accessed directly from C.
6723sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6724
6725# Transform an extracted symbol line into a proper C declaration
6726lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6727
6728# Transform an extracted symbol line into symbol name and symbol address
6729lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6730
6731# Define system-specific variables.
6732case $host_os in
6733aix*)
6734  symcode='[BCDT]'
6735  ;;
6736cygwin* | mingw* | pw32*)
6737  symcode='[ABCDGISTW]'
6738  ;;
6739hpux*) # Its linker distinguishes data from code symbols
6740  if test "$host_cpu" = ia64; then
6741    symcode='[ABCDEGRST]'
6742  fi
6743  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6744  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6745  ;;
6746linux*)
6747  if test "$host_cpu" = ia64; then
6748    symcode='[ABCDGIRSTW]'
6749    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6750    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6751  fi
6752  ;;
6753irix* | nonstopux*)
6754  symcode='[BCDEGRST]'
6755  ;;
6756osf*)
6757  symcode='[BCDEGQRST]'
6758  ;;
6759solaris*)
6760  symcode='[BDRT]'
6761  ;;
6762sco3.2v5*)
6763  symcode='[DT]'
6764  ;;
6765sysv4.2uw2*)
6766  symcode='[DT]'
6767  ;;
6768sysv5* | sco5v6* | unixware* | OpenUNIX*)
6769  symcode='[ABDT]'
6770  ;;
6771sysv4)
6772  symcode='[DFNSTU]'
6773  ;;
6774esac
6775
6776# Handle CRLF in mingw tool chain
6777opt_cr=
6778case $build_os in
6779mingw*)
6780  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6781  ;;
6782esac
6783
6784# If we're using GNU nm, then use its standard symbol codes.
6785case `$NM -V 2>&1` in
6786*GNU* | *'with BFD'*)
6787  symcode='[ABCDGIRSTW]' ;;
6788esac
6789
6790# Try without a prefix undercore, then with it.
6791for ac_symprfx in "" "_"; do
6792
6793  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6794  symxfrm="\\1 $ac_symprfx\\2 \\2"
6795
6796  # Write the raw and C identifiers.
6797  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6798
6799  # Check to see that the pipe works correctly.
6800  pipe_works=no
6801
6802  rm -f conftest*
6803  cat > conftest.$ac_ext <<EOF
6804#ifdef __cplusplus
6805extern "C" {
6806#endif
6807char nm_test_var;
6808void nm_test_func(){}
6809#ifdef __cplusplus
6810}
6811#endif
6812int main(){nm_test_var='a';nm_test_func();return(0);}
6813EOF
6814
6815  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6816  (eval $ac_compile) 2>&5
6817  ac_status=$?
6818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819  (exit $ac_status); }; then
6820    # Now try to grab the symbols.
6821    nlist=conftest.nm
6822    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6823  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6824  ac_status=$?
6825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826  (exit $ac_status); } && test -s "$nlist"; then
6827      # Try sorting and uniquifying the output.
6828      if sort "$nlist" | uniq > "$nlist"T; then
6829	mv -f "$nlist"T "$nlist"
6830      else
6831	rm -f "$nlist"T
6832      fi
6833
6834      # Make sure that we snagged all the symbols we need.
6835      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6836	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6837	  cat <<EOF > conftest.$ac_ext
6838#ifdef __cplusplus
6839extern "C" {
6840#endif
6841
6842EOF
6843	  # Now generate the symbol file.
6844	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6845
6846	  cat <<EOF >> conftest.$ac_ext
6847#if defined (__STDC__) && __STDC__
6848# define lt_ptr_t void *
6849#else
6850# define lt_ptr_t char *
6851# define const
6852#endif
6853
6854/* The mapping between symbol names and symbols. */
6855const struct {
6856  const char *name;
6857  lt_ptr_t address;
6858}
6859lt_preloaded_symbols[] =
6860{
6861EOF
6862	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6863	  cat <<\EOF >> conftest.$ac_ext
6864  {0, (lt_ptr_t) 0}
6865};
6866
6867#ifdef __cplusplus
6868}
6869#endif
6870EOF
6871	  # Now try linking the two files.
6872	  mv conftest.$ac_objext conftstm.$ac_objext
6873	  lt_save_LIBS="$LIBS"
6874	  lt_save_CFLAGS="$CFLAGS"
6875	  LIBS="conftstm.$ac_objext"
6876	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6877	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6878  (eval $ac_link) 2>&5
6879  ac_status=$?
6880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6882	    pipe_works=yes
6883	  fi
6884	  LIBS="$lt_save_LIBS"
6885	  CFLAGS="$lt_save_CFLAGS"
6886	else
6887	  echo "cannot find nm_test_func in $nlist" >&5
6888	fi
6889      else
6890	echo "cannot find nm_test_var in $nlist" >&5
6891      fi
6892    else
6893      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6894    fi
6895  else
6896    echo "$progname: failed program was:" >&5
6897    cat conftest.$ac_ext >&5
6898  fi
6899  rm -f conftest* conftst*
6900
6901  # Do not use the global_symbol_pipe unless it works.
6902  if test "$pipe_works" = yes; then
6903    break
6904  else
6905    lt_cv_sys_global_symbol_pipe=
6906  fi
6907done
6908
6909fi
6910
6911if test -z "$lt_cv_sys_global_symbol_pipe"; then
6912  lt_cv_sys_global_symbol_to_cdecl=
6913fi
6914if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6915  { echo "$as_me:$LINENO: result: failed" >&5
6916echo "${ECHO_T}failed" >&6; }
6917else
6918  { echo "$as_me:$LINENO: result: ok" >&5
6919echo "${ECHO_T}ok" >&6; }
6920fi
6921
6922{ echo "$as_me:$LINENO: checking for objdir" >&5
6923echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6924if test "${lt_cv_objdir+set}" = set; then
6925  echo $ECHO_N "(cached) $ECHO_C" >&6
6926else
6927  rm -f .libs 2>/dev/null
6928mkdir .libs 2>/dev/null
6929if test -d .libs; then
6930  lt_cv_objdir=.libs
6931else
6932  # MS-DOS does not allow filenames that begin with a dot.
6933  lt_cv_objdir=_libs
6934fi
6935rmdir .libs 2>/dev/null
6936fi
6937{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6938echo "${ECHO_T}$lt_cv_objdir" >&6; }
6939objdir=$lt_cv_objdir
6940
6941
6942
6943
6944
6945case $host_os in
6946aix3*)
6947  # AIX sometimes has problems with the GCC collect2 program.  For some
6948  # reason, if we set the COLLECT_NAMES environment variable, the problems
6949  # vanish in a puff of smoke.
6950  if test "X${COLLECT_NAMES+set}" != Xset; then
6951    COLLECT_NAMES=
6952    export COLLECT_NAMES
6953  fi
6954  ;;
6955esac
6956
6957# Sed substitution that helps us do robust quoting.  It backslashifies
6958# metacharacters that are still active within double-quoted strings.
6959Xsed='sed -e 1s/^X//'
6960sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6961
6962# Same as above, but do not quote variable references.
6963double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6964
6965# Sed substitution to delay expansion of an escaped shell variable in a
6966# double_quote_subst'ed string.
6967delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6968
6969# Sed substitution to avoid accidental globbing in evaled expressions
6970no_glob_subst='s/\*/\\\*/g'
6971
6972# Constants:
6973rm="rm -f"
6974
6975# Global variables:
6976default_ofile=libtool
6977can_build_shared=yes
6978
6979# All known linkers require a `.a' archive for static linking (except MSVC,
6980# which needs '.lib').
6981libext=a
6982ltmain="$ac_aux_dir/ltmain.sh"
6983ofile="$default_ofile"
6984with_gnu_ld="$lt_cv_prog_gnu_ld"
6985
6986if test -n "$ac_tool_prefix"; then
6987  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6988set dummy ${ac_tool_prefix}ar; ac_word=$2
6989{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991if test "${ac_cv_prog_AR+set}" = set; then
6992  echo $ECHO_N "(cached) $ECHO_C" >&6
6993else
6994  if test -n "$AR"; then
6995  ac_cv_prog_AR="$AR" # Let the user override the test.
6996else
6997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998for as_dir in $PATH
6999do
7000  IFS=$as_save_IFS
7001  test -z "$as_dir" && as_dir=.
7002  for ac_exec_ext in '' $ac_executable_extensions; do
7003  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7004    ac_cv_prog_AR="${ac_tool_prefix}ar"
7005    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7006    break 2
7007  fi
7008done
7009done
7010IFS=$as_save_IFS
7011
7012fi
7013fi
7014AR=$ac_cv_prog_AR
7015if test -n "$AR"; then
7016  { echo "$as_me:$LINENO: result: $AR" >&5
7017echo "${ECHO_T}$AR" >&6; }
7018else
7019  { echo "$as_me:$LINENO: result: no" >&5
7020echo "${ECHO_T}no" >&6; }
7021fi
7022
7023
7024fi
7025if test -z "$ac_cv_prog_AR"; then
7026  ac_ct_AR=$AR
7027  # Extract the first word of "ar", so it can be a program name with args.
7028set dummy ar; ac_word=$2
7029{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7031if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7032  echo $ECHO_N "(cached) $ECHO_C" >&6
7033else
7034  if test -n "$ac_ct_AR"; then
7035  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7036else
7037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038for as_dir in $PATH
7039do
7040  IFS=$as_save_IFS
7041  test -z "$as_dir" && as_dir=.
7042  for ac_exec_ext in '' $ac_executable_extensions; do
7043  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7044    ac_cv_prog_ac_ct_AR="ar"
7045    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046    break 2
7047  fi
7048done
7049done
7050IFS=$as_save_IFS
7051
7052fi
7053fi
7054ac_ct_AR=$ac_cv_prog_ac_ct_AR
7055if test -n "$ac_ct_AR"; then
7056  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7057echo "${ECHO_T}$ac_ct_AR" >&6; }
7058else
7059  { echo "$as_me:$LINENO: result: no" >&5
7060echo "${ECHO_T}no" >&6; }
7061fi
7062
7063  if test "x$ac_ct_AR" = x; then
7064    AR="false"
7065  else
7066    case $cross_compiling:$ac_tool_warned in
7067yes:)
7068{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7069whose name does not start with the host triplet.  If you think this
7070configuration is useful to you, please write to autoconf@gnu.org." >&5
7071echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7072whose name does not start with the host triplet.  If you think this
7073configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7074ac_tool_warned=yes ;;
7075esac
7076    AR=$ac_ct_AR
7077  fi
7078else
7079  AR="$ac_cv_prog_AR"
7080fi
7081
7082if test -n "$ac_tool_prefix"; then
7083  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7084set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7085{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087if test "${ac_cv_prog_RANLIB+set}" = set; then
7088  echo $ECHO_N "(cached) $ECHO_C" >&6
7089else
7090  if test -n "$RANLIB"; then
7091  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7092else
7093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094for as_dir in $PATH
7095do
7096  IFS=$as_save_IFS
7097  test -z "$as_dir" && as_dir=.
7098  for ac_exec_ext in '' $ac_executable_extensions; do
7099  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7100    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7101    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102    break 2
7103  fi
7104done
7105done
7106IFS=$as_save_IFS
7107
7108fi
7109fi
7110RANLIB=$ac_cv_prog_RANLIB
7111if test -n "$RANLIB"; then
7112  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7113echo "${ECHO_T}$RANLIB" >&6; }
7114else
7115  { echo "$as_me:$LINENO: result: no" >&5
7116echo "${ECHO_T}no" >&6; }
7117fi
7118
7119
7120fi
7121if test -z "$ac_cv_prog_RANLIB"; then
7122  ac_ct_RANLIB=$RANLIB
7123  # Extract the first word of "ranlib", so it can be a program name with args.
7124set dummy ranlib; ac_word=$2
7125{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7128  echo $ECHO_N "(cached) $ECHO_C" >&6
7129else
7130  if test -n "$ac_ct_RANLIB"; then
7131  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7132else
7133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134for as_dir in $PATH
7135do
7136  IFS=$as_save_IFS
7137  test -z "$as_dir" && as_dir=.
7138  for ac_exec_ext in '' $ac_executable_extensions; do
7139  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140    ac_cv_prog_ac_ct_RANLIB="ranlib"
7141    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142    break 2
7143  fi
7144done
7145done
7146IFS=$as_save_IFS
7147
7148fi
7149fi
7150ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7151if test -n "$ac_ct_RANLIB"; then
7152  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7153echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7154else
7155  { echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6; }
7157fi
7158
7159  if test "x$ac_ct_RANLIB" = x; then
7160    RANLIB=":"
7161  else
7162    case $cross_compiling:$ac_tool_warned in
7163yes:)
7164{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7165whose name does not start with the host triplet.  If you think this
7166configuration is useful to you, please write to autoconf@gnu.org." >&5
7167echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7168whose name does not start with the host triplet.  If you think this
7169configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7170ac_tool_warned=yes ;;
7171esac
7172    RANLIB=$ac_ct_RANLIB
7173  fi
7174else
7175  RANLIB="$ac_cv_prog_RANLIB"
7176fi
7177
7178if test -n "$ac_tool_prefix"; then
7179  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7180set dummy ${ac_tool_prefix}strip; ac_word=$2
7181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183if test "${ac_cv_prog_STRIP+set}" = set; then
7184  echo $ECHO_N "(cached) $ECHO_C" >&6
7185else
7186  if test -n "$STRIP"; then
7187  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7188else
7189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192  IFS=$as_save_IFS
7193  test -z "$as_dir" && as_dir=.
7194  for ac_exec_ext in '' $ac_executable_extensions; do
7195  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7196    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7197    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198    break 2
7199  fi
7200done
7201done
7202IFS=$as_save_IFS
7203
7204fi
7205fi
7206STRIP=$ac_cv_prog_STRIP
7207if test -n "$STRIP"; then
7208  { echo "$as_me:$LINENO: result: $STRIP" >&5
7209echo "${ECHO_T}$STRIP" >&6; }
7210else
7211  { echo "$as_me:$LINENO: result: no" >&5
7212echo "${ECHO_T}no" >&6; }
7213fi
7214
7215
7216fi
7217if test -z "$ac_cv_prog_STRIP"; then
7218  ac_ct_STRIP=$STRIP
7219  # Extract the first word of "strip", so it can be a program name with args.
7220set dummy strip; ac_word=$2
7221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7224  echo $ECHO_N "(cached) $ECHO_C" >&6
7225else
7226  if test -n "$ac_ct_STRIP"; then
7227  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7228else
7229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230for as_dir in $PATH
7231do
7232  IFS=$as_save_IFS
7233  test -z "$as_dir" && as_dir=.
7234  for ac_exec_ext in '' $ac_executable_extensions; do
7235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7236    ac_cv_prog_ac_ct_STRIP="strip"
7237    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7238    break 2
7239  fi
7240done
7241done
7242IFS=$as_save_IFS
7243
7244fi
7245fi
7246ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7247if test -n "$ac_ct_STRIP"; then
7248  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7249echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7250else
7251  { echo "$as_me:$LINENO: result: no" >&5
7252echo "${ECHO_T}no" >&6; }
7253fi
7254
7255  if test "x$ac_ct_STRIP" = x; then
7256    STRIP=":"
7257  else
7258    case $cross_compiling:$ac_tool_warned in
7259yes:)
7260{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7261whose name does not start with the host triplet.  If you think this
7262configuration is useful to you, please write to autoconf@gnu.org." >&5
7263echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7264whose name does not start with the host triplet.  If you think this
7265configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7266ac_tool_warned=yes ;;
7267esac
7268    STRIP=$ac_ct_STRIP
7269  fi
7270else
7271  STRIP="$ac_cv_prog_STRIP"
7272fi
7273
7274
7275old_CC="$CC"
7276old_CFLAGS="$CFLAGS"
7277
7278# Set sane defaults for various variables
7279test -z "$AR" && AR=ar
7280test -z "$AR_FLAGS" && AR_FLAGS=cru
7281test -z "$AS" && AS=as
7282test -z "$CC" && CC=cc
7283test -z "$LTCC" && LTCC=$CC
7284test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7285test -z "$DLLTOOL" && DLLTOOL=dlltool
7286test -z "$LD" && LD=ld
7287test -z "$LN_S" && LN_S="ln -s"
7288test -z "$MAGIC_CMD" && MAGIC_CMD=file
7289test -z "$NM" && NM=nm
7290test -z "$SED" && SED=sed
7291test -z "$OBJDUMP" && OBJDUMP=objdump
7292test -z "$RANLIB" && RANLIB=:
7293test -z "$STRIP" && STRIP=:
7294test -z "$ac_objext" && ac_objext=o
7295
7296# Determine commands to create old-style static archives.
7297old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7298old_postinstall_cmds='chmod 644 $oldlib'
7299old_postuninstall_cmds=
7300
7301if test -n "$RANLIB"; then
7302  case $host_os in
7303  openbsd*)
7304    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7305    ;;
7306  *)
7307    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7308    ;;
7309  esac
7310  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7311fi
7312
7313for cc_temp in $compiler""; do
7314  case $cc_temp in
7315    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7316    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7317    \-*) ;;
7318    *) break;;
7319  esac
7320done
7321cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7322
7323
7324# Only perform the check for file, if the check method requires it
7325case $deplibs_check_method in
7326file_magic*)
7327  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7328    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7329echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7330if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7331  echo $ECHO_N "(cached) $ECHO_C" >&6
7332else
7333  case $MAGIC_CMD in
7334[\\/*] |  ?:[\\/]*)
7335  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7336  ;;
7337*)
7338  lt_save_MAGIC_CMD="$MAGIC_CMD"
7339  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7340  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7341  for ac_dir in $ac_dummy; do
7342    IFS="$lt_save_ifs"
7343    test -z "$ac_dir" && ac_dir=.
7344    if test -f $ac_dir/${ac_tool_prefix}file; then
7345      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7346      if test -n "$file_magic_test_file"; then
7347	case $deplibs_check_method in
7348	"file_magic "*)
7349	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7350	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7351	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7352	    $EGREP "$file_magic_regex" > /dev/null; then
7353	    :
7354	  else
7355	    cat <<EOF 1>&2
7356
7357*** Warning: the command libtool uses to detect shared libraries,
7358*** $file_magic_cmd, produces output that libtool cannot recognize.
7359*** The result is that libtool may fail to recognize shared libraries
7360*** as such.  This will affect the creation of libtool libraries that
7361*** depend on shared libraries, but programs linked with such libtool
7362*** libraries will work regardless of this problem.  Nevertheless, you
7363*** may want to report the problem to your system manager and/or to
7364*** bug-libtool@gnu.org
7365
7366EOF
7367	  fi ;;
7368	esac
7369      fi
7370      break
7371    fi
7372  done
7373  IFS="$lt_save_ifs"
7374  MAGIC_CMD="$lt_save_MAGIC_CMD"
7375  ;;
7376esac
7377fi
7378
7379MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7380if test -n "$MAGIC_CMD"; then
7381  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7382echo "${ECHO_T}$MAGIC_CMD" >&6; }
7383else
7384  { echo "$as_me:$LINENO: result: no" >&5
7385echo "${ECHO_T}no" >&6; }
7386fi
7387
7388if test -z "$lt_cv_path_MAGIC_CMD"; then
7389  if test -n "$ac_tool_prefix"; then
7390    { echo "$as_me:$LINENO: checking for file" >&5
7391echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7392if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7393  echo $ECHO_N "(cached) $ECHO_C" >&6
7394else
7395  case $MAGIC_CMD in
7396[\\/*] |  ?:[\\/]*)
7397  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7398  ;;
7399*)
7400  lt_save_MAGIC_CMD="$MAGIC_CMD"
7401  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7402  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7403  for ac_dir in $ac_dummy; do
7404    IFS="$lt_save_ifs"
7405    test -z "$ac_dir" && ac_dir=.
7406    if test -f $ac_dir/file; then
7407      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7408      if test -n "$file_magic_test_file"; then
7409	case $deplibs_check_method in
7410	"file_magic "*)
7411	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7412	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7413	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7414	    $EGREP "$file_magic_regex" > /dev/null; then
7415	    :
7416	  else
7417	    cat <<EOF 1>&2
7418
7419*** Warning: the command libtool uses to detect shared libraries,
7420*** $file_magic_cmd, produces output that libtool cannot recognize.
7421*** The result is that libtool may fail to recognize shared libraries
7422*** as such.  This will affect the creation of libtool libraries that
7423*** depend on shared libraries, but programs linked with such libtool
7424*** libraries will work regardless of this problem.  Nevertheless, you
7425*** may want to report the problem to your system manager and/or to
7426*** bug-libtool@gnu.org
7427
7428EOF
7429	  fi ;;
7430	esac
7431      fi
7432      break
7433    fi
7434  done
7435  IFS="$lt_save_ifs"
7436  MAGIC_CMD="$lt_save_MAGIC_CMD"
7437  ;;
7438esac
7439fi
7440
7441MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7442if test -n "$MAGIC_CMD"; then
7443  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7444echo "${ECHO_T}$MAGIC_CMD" >&6; }
7445else
7446  { echo "$as_me:$LINENO: result: no" >&5
7447echo "${ECHO_T}no" >&6; }
7448fi
7449
7450  else
7451    MAGIC_CMD=:
7452  fi
7453fi
7454
7455  fi
7456  ;;
7457esac
7458
7459enable_dlopen=no
7460enable_win32_dll=no
7461
7462# Check whether --enable-libtool-lock was given.
7463if test "${enable_libtool_lock+set}" = set; then
7464  enableval=$enable_libtool_lock;
7465fi
7466
7467test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7468
7469
7470# Check whether --with-pic was given.
7471if test "${with_pic+set}" = set; then
7472  withval=$with_pic; pic_mode="$withval"
7473else
7474  pic_mode=default
7475fi
7476
7477test -z "$pic_mode" && pic_mode=default
7478
7479# Use C for the default configuration in the libtool script
7480tagname=
7481lt_save_CC="$CC"
7482ac_ext=c
7483ac_cpp='$CPP $CPPFLAGS'
7484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7486ac_compiler_gnu=$ac_cv_c_compiler_gnu
7487
7488
7489# Source file extension for C test sources.
7490ac_ext=c
7491
7492# Object file extension for compiled C test sources.
7493objext=o
7494objext=$objext
7495
7496# Code to be used in simple compile tests
7497lt_simple_compile_test_code="int some_variable = 0;\n"
7498
7499# Code to be used in simple link tests
7500lt_simple_link_test_code='int main(){return(0);}\n'
7501
7502
7503# If no C compiler was specified, use CC.
7504LTCC=${LTCC-"$CC"}
7505
7506# If no C compiler flags were specified, use CFLAGS.
7507LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7508
7509# Allow CC to be a program name with arguments.
7510compiler=$CC
7511
7512
7513# save warnings/boilerplate of simple test code
7514ac_outfile=conftest.$ac_objext
7515printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7516eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7517_lt_compiler_boilerplate=`cat conftest.err`
7518$rm conftest*
7519
7520ac_outfile=conftest.$ac_objext
7521printf "$lt_simple_link_test_code" >conftest.$ac_ext
7522eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7523_lt_linker_boilerplate=`cat conftest.err`
7524$rm conftest*
7525
7526
7527
7528lt_prog_compiler_no_builtin_flag=
7529
7530if test "$GCC" = yes; then
7531  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7532
7533
7534{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7535echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7536if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7537  echo $ECHO_N "(cached) $ECHO_C" >&6
7538else
7539  lt_cv_prog_compiler_rtti_exceptions=no
7540  ac_outfile=conftest.$ac_objext
7541   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7542   lt_compiler_flag="-fno-rtti -fno-exceptions"
7543   # Insert the option either (1) after the last *FLAGS variable, or
7544   # (2) before a word containing "conftest.", or (3) at the end.
7545   # Note that $ac_compile itself does not contain backslashes and begins
7546   # with a dollar sign (not a hyphen), so the echo should work correctly.
7547   # The option is referenced via a variable to avoid confusing sed.
7548   lt_compile=`echo "$ac_compile" | $SED \
7549   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7550   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7551   -e 's:$: $lt_compiler_flag:'`
7552   (eval echo "\"\$as_me:7552: $lt_compile\"" >&5)
7553   (eval "$lt_compile" 2>conftest.err)
7554   ac_status=$?
7555   cat conftest.err >&5
7556   echo "$as_me:7556: \$? = $ac_status" >&5
7557   if (exit $ac_status) && test -s "$ac_outfile"; then
7558     # The compiler can only warn and ignore the option if not recognized
7559     # So say no if there are warnings other than the usual output.
7560     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7561     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7562     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7563       lt_cv_prog_compiler_rtti_exceptions=yes
7564     fi
7565   fi
7566   $rm conftest*
7567
7568fi
7569{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7570echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7571
7572if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7573    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7574else
7575    :
7576fi
7577
7578fi
7579
7580lt_prog_compiler_wl=
7581lt_prog_compiler_pic=
7582lt_prog_compiler_static=
7583
7584{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7585echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7586
7587  if test "$GCC" = yes; then
7588    lt_prog_compiler_wl='-Wl,'
7589    lt_prog_compiler_static='-static'
7590
7591    case $host_os in
7592      aix*)
7593      # All AIX code is PIC.
7594      if test "$host_cpu" = ia64; then
7595	# AIX 5 now supports IA64 processor
7596	lt_prog_compiler_static='-Bstatic'
7597      fi
7598      ;;
7599
7600    amigaos*)
7601      # FIXME: we need at least 68020 code to build shared libraries, but
7602      # adding the `-m68020' flag to GCC prevents building anything better,
7603      # like `-m68040'.
7604      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7605      ;;
7606
7607    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7608      # PIC is the default for these OSes.
7609      ;;
7610
7611    mingw* | pw32* | os2*)
7612      # This hack is so that the source file can tell whether it is being
7613      # built for inclusion in a dll (and should export symbols for example).
7614      lt_prog_compiler_pic='-DDLL_EXPORT'
7615      ;;
7616
7617    darwin* | rhapsody*)
7618      # PIC is the default on this platform
7619      # Common symbols not allowed in MH_DYLIB files
7620      lt_prog_compiler_pic='-fno-common'
7621      ;;
7622
7623    interix3*)
7624      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7625      # Instead, we relocate shared libraries at runtime.
7626      ;;
7627
7628    msdosdjgpp*)
7629      # Just because we use GCC doesn't mean we suddenly get shared libraries
7630      # on systems that don't support them.
7631      lt_prog_compiler_can_build_shared=no
7632      enable_shared=no
7633      ;;
7634
7635    sysv4*MP*)
7636      if test -d /usr/nec; then
7637	lt_prog_compiler_pic=-Kconform_pic
7638      fi
7639      ;;
7640
7641    hpux*)
7642      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7643      # not for PA HP-UX.
7644      case $host_cpu in
7645      hppa*64*|ia64*)
7646	# +Z the default
7647	;;
7648      *)
7649	lt_prog_compiler_pic='-fPIC'
7650	;;
7651      esac
7652      ;;
7653
7654    *)
7655      lt_prog_compiler_pic='-fPIC'
7656      ;;
7657    esac
7658  else
7659    # PORTME Check for flag to pass linker flags through the system compiler.
7660    case $host_os in
7661    aix*)
7662      lt_prog_compiler_wl='-Wl,'
7663      if test "$host_cpu" = ia64; then
7664	# AIX 5 now supports IA64 processor
7665	lt_prog_compiler_static='-Bstatic'
7666      else
7667	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7668      fi
7669      ;;
7670      darwin*)
7671        # PIC is the default on this platform
7672        # Common symbols not allowed in MH_DYLIB files
7673       case $cc_basename in
7674         xlc*)
7675         lt_prog_compiler_pic='-qnocommon'
7676         lt_prog_compiler_wl='-Wl,'
7677         ;;
7678       esac
7679       ;;
7680
7681    mingw* | pw32* | os2*)
7682      # This hack is so that the source file can tell whether it is being
7683      # built for inclusion in a dll (and should export symbols for example).
7684      lt_prog_compiler_pic='-DDLL_EXPORT'
7685      ;;
7686
7687    hpux9* | hpux10* | hpux11*)
7688      lt_prog_compiler_wl='-Wl,'
7689      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7690      # not for PA HP-UX.
7691      case $host_cpu in
7692      hppa*64*|ia64*)
7693	# +Z the default
7694	;;
7695      *)
7696	lt_prog_compiler_pic='+Z'
7697	;;
7698      esac
7699      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7700      lt_prog_compiler_static='${wl}-a ${wl}archive'
7701      ;;
7702
7703    irix5* | irix6* | nonstopux*)
7704      lt_prog_compiler_wl='-Wl,'
7705      # PIC (with -KPIC) is the default.
7706      lt_prog_compiler_static='-non_shared'
7707      ;;
7708
7709    newsos6)
7710      lt_prog_compiler_pic='-KPIC'
7711      lt_prog_compiler_static='-Bstatic'
7712      ;;
7713
7714    linux*)
7715      case $cc_basename in
7716      icc* | ecc*)
7717	lt_prog_compiler_wl='-Wl,'
7718	lt_prog_compiler_pic='-KPIC'
7719	lt_prog_compiler_static='-static'
7720        ;;
7721      pgcc* | pgf77* | pgf90* | pgf95*)
7722        # Portland Group compilers (*not* the Pentium gcc compiler,
7723	# which looks to be a dead project)
7724	lt_prog_compiler_wl='-Wl,'
7725	lt_prog_compiler_pic='-fpic'
7726	lt_prog_compiler_static='-Bstatic'
7727        ;;
7728      ccc*)
7729        lt_prog_compiler_wl='-Wl,'
7730        # All Alpha code is PIC.
7731        lt_prog_compiler_static='-non_shared'
7732        ;;
7733      esac
7734      ;;
7735
7736    osf3* | osf4* | osf5*)
7737      lt_prog_compiler_wl='-Wl,'
7738      # All OSF/1 code is PIC.
7739      lt_prog_compiler_static='-non_shared'
7740      ;;
7741
7742    solaris*)
7743      lt_prog_compiler_pic='-KPIC'
7744      lt_prog_compiler_static='-Bstatic'
7745      case $cc_basename in
7746      f77* | f90* | f95*)
7747	lt_prog_compiler_wl='-Qoption ld ';;
7748      *)
7749	lt_prog_compiler_wl='-Wl,';;
7750      esac
7751      ;;
7752
7753    sunos4*)
7754      lt_prog_compiler_wl='-Qoption ld '
7755      lt_prog_compiler_pic='-PIC'
7756      lt_prog_compiler_static='-Bstatic'
7757      ;;
7758
7759    sysv4 | sysv4.2uw2* | sysv4.3*)
7760      lt_prog_compiler_wl='-Wl,'
7761      lt_prog_compiler_pic='-KPIC'
7762      lt_prog_compiler_static='-Bstatic'
7763      ;;
7764
7765    sysv4*MP*)
7766      if test -d /usr/nec ;then
7767	lt_prog_compiler_pic='-Kconform_pic'
7768	lt_prog_compiler_static='-Bstatic'
7769      fi
7770      ;;
7771
7772    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7773      lt_prog_compiler_wl='-Wl,'
7774      lt_prog_compiler_pic='-KPIC'
7775      lt_prog_compiler_static='-Bstatic'
7776      ;;
7777
7778    unicos*)
7779      lt_prog_compiler_wl='-Wl,'
7780      lt_prog_compiler_can_build_shared=no
7781      ;;
7782
7783    uts4*)
7784      lt_prog_compiler_pic='-pic'
7785      lt_prog_compiler_static='-Bstatic'
7786      ;;
7787
7788    *)
7789      lt_prog_compiler_can_build_shared=no
7790      ;;
7791    esac
7792  fi
7793
7794{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7795echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7796
7797#
7798# Check to make sure the PIC flag actually works.
7799#
7800if test -n "$lt_prog_compiler_pic"; then
7801
7802{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7803echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7804if test "${lt_prog_compiler_pic_works+set}" = set; then
7805  echo $ECHO_N "(cached) $ECHO_C" >&6
7806else
7807  lt_prog_compiler_pic_works=no
7808  ac_outfile=conftest.$ac_objext
7809   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7810   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7811   # Insert the option either (1) after the last *FLAGS variable, or
7812   # (2) before a word containing "conftest.", or (3) at the end.
7813   # Note that $ac_compile itself does not contain backslashes and begins
7814   # with a dollar sign (not a hyphen), so the echo should work correctly.
7815   # The option is referenced via a variable to avoid confusing sed.
7816   lt_compile=`echo "$ac_compile" | $SED \
7817   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7818   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7819   -e 's:$: $lt_compiler_flag:'`
7820   (eval echo "\"\$as_me:7820: $lt_compile\"" >&5)
7821   (eval "$lt_compile" 2>conftest.err)
7822   ac_status=$?
7823   cat conftest.err >&5
7824   echo "$as_me:7824: \$? = $ac_status" >&5
7825   if (exit $ac_status) && test -s "$ac_outfile"; then
7826     # The compiler can only warn and ignore the option if not recognized
7827     # So say no if there are warnings other than the usual output.
7828     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7829     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7830     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7831       lt_prog_compiler_pic_works=yes
7832     fi
7833   fi
7834   $rm conftest*
7835
7836fi
7837{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7838echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7839
7840if test x"$lt_prog_compiler_pic_works" = xyes; then
7841    case $lt_prog_compiler_pic in
7842     "" | " "*) ;;
7843     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7844     esac
7845else
7846    lt_prog_compiler_pic=
7847     lt_prog_compiler_can_build_shared=no
7848fi
7849
7850fi
7851case $host_os in
7852  # For platforms which do not support PIC, -DPIC is meaningless:
7853  *djgpp*)
7854    lt_prog_compiler_pic=
7855    ;;
7856  *)
7857    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7858    ;;
7859esac
7860
7861#
7862# Check to make sure the static flag actually works.
7863#
7864wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7865{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7866echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7867if test "${lt_prog_compiler_static_works+set}" = set; then
7868  echo $ECHO_N "(cached) $ECHO_C" >&6
7869else
7870  lt_prog_compiler_static_works=no
7871   save_LDFLAGS="$LDFLAGS"
7872   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7873   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7874   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7875     # The linker can only warn and ignore the option if not recognized
7876     # So say no if there are warnings
7877     if test -s conftest.err; then
7878       # Append any errors to the config.log.
7879       cat conftest.err 1>&5
7880       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7881       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7882       if diff conftest.exp conftest.er2 >/dev/null; then
7883         lt_prog_compiler_static_works=yes
7884       fi
7885     else
7886       lt_prog_compiler_static_works=yes
7887     fi
7888   fi
7889   $rm conftest*
7890   LDFLAGS="$save_LDFLAGS"
7891
7892fi
7893{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7894echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7895
7896if test x"$lt_prog_compiler_static_works" = xyes; then
7897    :
7898else
7899    lt_prog_compiler_static=
7900fi
7901
7902
7903{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7904echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7905if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7906  echo $ECHO_N "(cached) $ECHO_C" >&6
7907else
7908  lt_cv_prog_compiler_c_o=no
7909   $rm -r conftest 2>/dev/null
7910   mkdir conftest
7911   cd conftest
7912   mkdir out
7913   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7914
7915   lt_compiler_flag="-o out/conftest2.$ac_objext"
7916   # Insert the option either (1) after the last *FLAGS variable, or
7917   # (2) before a word containing "conftest.", or (3) at the end.
7918   # Note that $ac_compile itself does not contain backslashes and begins
7919   # with a dollar sign (not a hyphen), so the echo should work correctly.
7920   lt_compile=`echo "$ac_compile" | $SED \
7921   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7922   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7923   -e 's:$: $lt_compiler_flag:'`
7924   (eval echo "\"\$as_me:7924: $lt_compile\"" >&5)
7925   (eval "$lt_compile" 2>out/conftest.err)
7926   ac_status=$?
7927   cat out/conftest.err >&5
7928   echo "$as_me:7928: \$? = $ac_status" >&5
7929   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7930   then
7931     # The compiler can only warn and ignore the option if not recognized
7932     # So say no if there are warnings
7933     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7934     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7935     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7936       lt_cv_prog_compiler_c_o=yes
7937     fi
7938   fi
7939   chmod u+w . 2>&5
7940   $rm conftest*
7941   # SGI C++ compiler will create directory out/ii_files/ for
7942   # template instantiation
7943   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7944   $rm out/* && rmdir out
7945   cd ..
7946   rmdir conftest
7947   $rm conftest*
7948
7949fi
7950{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7951echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7952
7953
7954hard_links="nottested"
7955if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7956  # do not overwrite the value of need_locks provided by the user
7957  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7958echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7959  hard_links=yes
7960  $rm conftest*
7961  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7962  touch conftest.a
7963  ln conftest.a conftest.b 2>&5 || hard_links=no
7964  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7965  { echo "$as_me:$LINENO: result: $hard_links" >&5
7966echo "${ECHO_T}$hard_links" >&6; }
7967  if test "$hard_links" = no; then
7968    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7969echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7970    need_locks=warn
7971  fi
7972else
7973  need_locks=no
7974fi
7975
7976{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7977echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7978
7979  runpath_var=
7980  allow_undefined_flag=
7981  enable_shared_with_static_runtimes=no
7982  archive_cmds=
7983  archive_expsym_cmds=
7984  old_archive_From_new_cmds=
7985  old_archive_from_expsyms_cmds=
7986  export_dynamic_flag_spec=
7987  whole_archive_flag_spec=
7988  thread_safe_flag_spec=
7989  hardcode_libdir_flag_spec=
7990  hardcode_libdir_flag_spec_ld=
7991  hardcode_libdir_separator=
7992  hardcode_direct=no
7993  hardcode_minus_L=no
7994  hardcode_shlibpath_var=unsupported
7995  link_all_deplibs=unknown
7996  hardcode_automatic=no
7997  module_cmds=
7998  module_expsym_cmds=
7999  always_export_symbols=no
8000  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8001  # include_expsyms should be a list of space-separated symbols to be *always*
8002  # included in the symbol list
8003  include_expsyms=
8004  # exclude_expsyms can be an extended regexp of symbols to exclude
8005  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8006  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8007  # as well as any symbol that contains `d'.
8008  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8009  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8010  # platforms (ab)use it in PIC code, but their linkers get confused if
8011  # the symbol is explicitly referenced.  Since portable code cannot
8012  # rely on this symbol name, it's probably fine to never include it in
8013  # preloaded symbol tables.
8014  extract_expsyms_cmds=
8015  # Just being paranoid about ensuring that cc_basename is set.
8016  for cc_temp in $compiler""; do
8017  case $cc_temp in
8018    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8019    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8020    \-*) ;;
8021    *) break;;
8022  esac
8023done
8024cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8025
8026  case $host_os in
8027  cygwin* | mingw* | pw32*)
8028    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8029    # When not using gcc, we currently assume that we are using
8030    # Microsoft Visual C++.
8031    if test "$GCC" != yes; then
8032      with_gnu_ld=no
8033    fi
8034    ;;
8035  interix*)
8036    # we just hope/assume this is gcc and not c89 (= MSVC++)
8037    with_gnu_ld=yes
8038    ;;
8039  openbsd*)
8040    with_gnu_ld=no
8041    ;;
8042  esac
8043
8044  ld_shlibs=yes
8045  if test "$with_gnu_ld" = yes; then
8046    # If archive_cmds runs LD, not CC, wlarc should be empty
8047    wlarc='${wl}'
8048
8049    # Set some defaults for GNU ld with shared library support. These
8050    # are reset later if shared libraries are not supported. Putting them
8051    # here allows them to be overridden if necessary.
8052    runpath_var=LD_RUN_PATH
8053    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8054    export_dynamic_flag_spec='${wl}--export-dynamic'
8055    # ancient GNU ld didn't support --whole-archive et. al.
8056    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8057	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8058      else
8059  	whole_archive_flag_spec=
8060    fi
8061    supports_anon_versioning=no
8062    case `$LD -v 2>/dev/null` in
8063      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8064      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8065      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8066      *\ 2.11.*) ;; # other 2.11 versions
8067      *) supports_anon_versioning=yes ;;
8068    esac
8069
8070    # See if GNU ld supports shared libraries.
8071    case $host_os in
8072    aix3* | aix4* | aix5*)
8073      # On AIX/PPC, the GNU linker is very broken
8074      if test "$host_cpu" != ia64; then
8075	ld_shlibs=no
8076	cat <<EOF 1>&2
8077
8078*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8079*** to be unable to reliably create shared libraries on AIX.
8080*** Therefore, libtool is disabling shared libraries support.  If you
8081*** really care for shared libraries, you may want to modify your PATH
8082*** so that a non-GNU linker is found, and then restart.
8083
8084EOF
8085      fi
8086      ;;
8087
8088    amigaos*)
8089      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)'
8090      hardcode_libdir_flag_spec='-L$libdir'
8091      hardcode_minus_L=yes
8092
8093      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8094      # that the semantics of dynamic libraries on AmigaOS, at least up
8095      # to version 4, is to share data among multiple programs linked
8096      # with the same dynamic library.  Since this doesn't match the
8097      # behavior of shared libraries on other platforms, we can't use
8098      # them.
8099      ld_shlibs=no
8100      ;;
8101
8102    beos*)
8103      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8104	allow_undefined_flag=unsupported
8105	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8106	# support --undefined.  This deserves some investigation.  FIXME
8107	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8108      else
8109	ld_shlibs=no
8110      fi
8111      ;;
8112
8113    cygwin* | mingw* | pw32*)
8114      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8115      # as there is no search path for DLLs.
8116      hardcode_libdir_flag_spec='-L$libdir'
8117      allow_undefined_flag=unsupported
8118      always_export_symbols=no
8119      enable_shared_with_static_runtimes=yes
8120      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8121
8122      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8123        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8124	# If the export-symbols file already is a .def file (1st line
8125	# is EXPORTS), use it as is; otherwise, prepend...
8126	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8127	  cp $export_symbols $output_objdir/$soname.def;
8128	else
8129	  echo EXPORTS > $output_objdir/$soname.def;
8130	  cat $export_symbols >> $output_objdir/$soname.def;
8131	fi~
8132	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8133      else
8134	ld_shlibs=no
8135      fi
8136      ;;
8137
8138    interix3*)
8139      hardcode_direct=no
8140      hardcode_shlibpath_var=no
8141      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8142      export_dynamic_flag_spec='${wl}-E'
8143      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8144      # Instead, shared libraries are loaded at an image base (0x10000000 by
8145      # default) and relocated if they conflict, which is a slow very memory
8146      # consuming and fragmenting process.  To avoid this, we pick a random,
8147      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8148      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8149      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8150      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'
8151      ;;
8152
8153    linux*)
8154      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8155	tmp_addflag=
8156	case $cc_basename,$host_cpu in
8157	pgcc*)				# Portland Group C compiler
8158	  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'
8159	  tmp_addflag=' $pic_flag'
8160	  ;;
8161	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8162	  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'
8163	  tmp_addflag=' $pic_flag -Mnomain' ;;
8164	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8165	  tmp_addflag=' -i_dynamic' ;;
8166	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8167	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8168	ifc* | ifort*)			# Intel Fortran compiler
8169	  tmp_addflag=' -nofor_main' ;;
8170	esac
8171	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8172
8173	if test $supports_anon_versioning = yes; then
8174	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8175  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8176  $echo "local: *; };" >> $output_objdir/$libname.ver~
8177	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8178	fi
8179      else
8180	ld_shlibs=no
8181      fi
8182      ;;
8183
8184    netbsd*)
8185      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8186	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8187	wlarc=
8188      else
8189	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8190	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8191      fi
8192      ;;
8193
8194    solaris*)
8195      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8196	ld_shlibs=no
8197	cat <<EOF 1>&2
8198
8199*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8200*** create shared libraries on Solaris systems.  Therefore, libtool
8201*** is disabling shared libraries support.  We urge you to upgrade GNU
8202*** binutils to release 2.9.1 or newer.  Another option is to modify
8203*** your PATH or compiler configuration so that the native linker is
8204*** used, and then restart.
8205
8206EOF
8207      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8208	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8209	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8210      else
8211	ld_shlibs=no
8212      fi
8213      ;;
8214
8215    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8216      case `$LD -v 2>&1` in
8217        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8218	ld_shlibs=no
8219	cat <<_LT_EOF 1>&2
8220
8221*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8222*** reliably create shared libraries on SCO systems.  Therefore, libtool
8223*** is disabling shared libraries support.  We urge you to upgrade GNU
8224*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8225*** your PATH or compiler configuration so that the native linker is
8226*** used, and then restart.
8227
8228_LT_EOF
8229	;;
8230	*)
8231	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8232	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8233	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8234	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8235	  else
8236	    ld_shlibs=no
8237	  fi
8238	;;
8239      esac
8240      ;;
8241
8242    sunos4*)
8243      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8244      wlarc=
8245      hardcode_direct=yes
8246      hardcode_shlibpath_var=no
8247      ;;
8248
8249    *)
8250      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8251	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8252	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8253      else
8254	ld_shlibs=no
8255      fi
8256      ;;
8257    esac
8258
8259    if test "$ld_shlibs" = no; then
8260      runpath_var=
8261      hardcode_libdir_flag_spec=
8262      export_dynamic_flag_spec=
8263      whole_archive_flag_spec=
8264    fi
8265  else
8266    # PORTME fill in a description of your system's linker (not GNU ld)
8267    case $host_os in
8268    aix3*)
8269      allow_undefined_flag=unsupported
8270      always_export_symbols=yes
8271      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'
8272      # Note: this linker hardcodes the directories in LIBPATH if there
8273      # are no directories specified by -L.
8274      hardcode_minus_L=yes
8275      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8276	# Neither direct hardcoding nor static linking is supported with a
8277	# broken collect2.
8278	hardcode_direct=unsupported
8279      fi
8280      ;;
8281
8282    aix4* | aix5*)
8283      if test "$host_cpu" = ia64; then
8284	# On IA64, the linker does run time linking by default, so we don't
8285	# have to do anything special.
8286	aix_use_runtimelinking=no
8287	exp_sym_flag='-Bexport'
8288	no_entry_flag=""
8289      else
8290	# If we're using GNU nm, then we don't want the "-C" option.
8291	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8292	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8293	  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'
8294	else
8295	  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'
8296	fi
8297	aix_use_runtimelinking=no
8298
8299	# Test if we are trying to use run time linking or normal
8300	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8301	# need to do runtime linking.
8302	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8303	  for ld_flag in $LDFLAGS; do
8304  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8305  	    aix_use_runtimelinking=yes
8306  	    break
8307  	  fi
8308	  done
8309	  ;;
8310	esac
8311
8312	exp_sym_flag='-bexport'
8313	no_entry_flag='-bnoentry'
8314      fi
8315
8316      # When large executables or shared objects are built, AIX ld can
8317      # have problems creating the table of contents.  If linking a library
8318      # or program results in "error TOC overflow" add -mminimal-toc to
8319      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8320      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8321
8322      archive_cmds=''
8323      hardcode_direct=yes
8324      hardcode_libdir_separator=':'
8325      link_all_deplibs=yes
8326
8327      if test "$GCC" = yes; then
8328	case $host_os in aix4.[012]|aix4.[012].*)
8329	# We only want to do this on AIX 4.2 and lower, the check
8330	# below for broken collect2 doesn't work under 4.3+
8331	  collect2name=`${CC} -print-prog-name=collect2`
8332	  if test -f "$collect2name" && \
8333  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8334	  then
8335  	  # We have reworked collect2
8336  	  hardcode_direct=yes
8337	  else
8338  	  # We have old collect2
8339  	  hardcode_direct=unsupported
8340  	  # It fails to find uninstalled libraries when the uninstalled
8341  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8342  	  # to unsupported forces relinking
8343  	  hardcode_minus_L=yes
8344  	  hardcode_libdir_flag_spec='-L$libdir'
8345  	  hardcode_libdir_separator=
8346	  fi
8347	  ;;
8348	esac
8349	shared_flag='-shared'
8350	if test "$aix_use_runtimelinking" = yes; then
8351	  shared_flag="$shared_flag "'${wl}-G'
8352	fi
8353      else
8354	# not using gcc
8355	if test "$host_cpu" = ia64; then
8356  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8357  	# chokes on -Wl,-G. The following line is correct:
8358	  shared_flag='-G'
8359	else
8360	  if test "$aix_use_runtimelinking" = yes; then
8361	    shared_flag='${wl}-G'
8362	  else
8363	    shared_flag='${wl}-bM:SRE'
8364	  fi
8365	fi
8366      fi
8367
8368      # It seems that -bexpall does not export symbols beginning with
8369      # underscore (_), so it is better to generate a list of symbols to export.
8370      always_export_symbols=yes
8371      if test "$aix_use_runtimelinking" = yes; then
8372	# Warning - without using the other runtime loading flags (-brtl),
8373	# -berok will link without error, but may produce a broken library.
8374	allow_undefined_flag='-berok'
8375       # Determine the default libpath from the value encoded in an empty executable.
8376       cat >conftest.$ac_ext <<_ACEOF
8377/* confdefs.h.  */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h.  */
8382
8383int
8384main ()
8385{
8386
8387  ;
8388  return 0;
8389}
8390_ACEOF
8391rm -f conftest.$ac_objext conftest$ac_exeext
8392if { (ac_try="$ac_link"
8393case "(($ac_try" in
8394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395  *) ac_try_echo=$ac_try;;
8396esac
8397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398  (eval "$ac_link") 2>conftest.er1
8399  ac_status=$?
8400  grep -v '^ *+' conftest.er1 >conftest.err
8401  rm -f conftest.er1
8402  cat conftest.err >&5
8403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404  (exit $ac_status); } &&
8405	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8406  { (case "(($ac_try" in
8407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408  *) ac_try_echo=$ac_try;;
8409esac
8410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411  (eval "$ac_try") 2>&5
8412  ac_status=$?
8413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414  (exit $ac_status); }; } &&
8415	 { ac_try='test -s conftest$ac_exeext'
8416  { (case "(($ac_try" in
8417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418  *) ac_try_echo=$ac_try;;
8419esac
8420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421  (eval "$ac_try") 2>&5
8422  ac_status=$?
8423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424  (exit $ac_status); }; }; then
8425
8426aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8427}'`
8428# Check for a 64-bit object if we didn't find anything.
8429if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8430}'`; fi
8431else
8432  echo "$as_me: failed program was:" >&5
8433sed 's/^/| /' conftest.$ac_ext >&5
8434
8435
8436fi
8437
8438rm -f core conftest.err conftest.$ac_objext \
8439      conftest$ac_exeext conftest.$ac_ext
8440if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8441
8442       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8443	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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8444       else
8445	if test "$host_cpu" = ia64; then
8446	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8447	  allow_undefined_flag="-z nodefs"
8448	  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"
8449	else
8450	 # Determine the default libpath from the value encoded in an empty executable.
8451	 cat >conftest.$ac_ext <<_ACEOF
8452/* confdefs.h.  */
8453_ACEOF
8454cat confdefs.h >>conftest.$ac_ext
8455cat >>conftest.$ac_ext <<_ACEOF
8456/* end confdefs.h.  */
8457
8458int
8459main ()
8460{
8461
8462  ;
8463  return 0;
8464}
8465_ACEOF
8466rm -f conftest.$ac_objext conftest$ac_exeext
8467if { (ac_try="$ac_link"
8468case "(($ac_try" in
8469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470  *) ac_try_echo=$ac_try;;
8471esac
8472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473  (eval "$ac_link") 2>conftest.er1
8474  ac_status=$?
8475  grep -v '^ *+' conftest.er1 >conftest.err
8476  rm -f conftest.er1
8477  cat conftest.err >&5
8478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479  (exit $ac_status); } &&
8480	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8481  { (case "(($ac_try" in
8482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483  *) ac_try_echo=$ac_try;;
8484esac
8485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486  (eval "$ac_try") 2>&5
8487  ac_status=$?
8488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489  (exit $ac_status); }; } &&
8490	 { ac_try='test -s conftest$ac_exeext'
8491  { (case "(($ac_try" in
8492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493  *) ac_try_echo=$ac_try;;
8494esac
8495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496  (eval "$ac_try") 2>&5
8497  ac_status=$?
8498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499  (exit $ac_status); }; }; then
8500
8501aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8502}'`
8503# Check for a 64-bit object if we didn't find anything.
8504if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8505}'`; fi
8506else
8507  echo "$as_me: failed program was:" >&5
8508sed 's/^/| /' conftest.$ac_ext >&5
8509
8510
8511fi
8512
8513rm -f core conftest.err conftest.$ac_objext \
8514      conftest$ac_exeext conftest.$ac_ext
8515if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8516
8517	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8518	  # Warning - without using the other run time loading flags,
8519	  # -berok will link without error, but may produce a broken library.
8520	  no_undefined_flag=' ${wl}-bernotok'
8521	  allow_undefined_flag=' ${wl}-berok'
8522	  # Exported symbols can be pulled into shared objects from archives
8523	  whole_archive_flag_spec='$convenience'
8524	  archive_cmds_need_lc=yes
8525	  # This is similar to how AIX traditionally builds its shared libraries.
8526	  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'
8527	fi
8528      fi
8529      ;;
8530
8531    amigaos*)
8532      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)'
8533      hardcode_libdir_flag_spec='-L$libdir'
8534      hardcode_minus_L=yes
8535      # see comment about different semantics on the GNU ld section
8536      ld_shlibs=no
8537      ;;
8538
8539    bsdi[45]*)
8540      export_dynamic_flag_spec=-rdynamic
8541      ;;
8542
8543    cygwin* | mingw* | pw32*)
8544      # When not using gcc, we currently assume that we are using
8545      # Microsoft Visual C++.
8546      # hardcode_libdir_flag_spec is actually meaningless, as there is
8547      # no search path for DLLs.
8548      hardcode_libdir_flag_spec=' '
8549      allow_undefined_flag=unsupported
8550      # Tell ltmain to make .lib files, not .a files.
8551      libext=lib
8552      # Tell ltmain to make .dll files, not .so files.
8553      shrext_cmds=".dll"
8554      # FIXME: Setting linknames here is a bad hack.
8555      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8556      # The linker will automatically build a .lib file if we build a DLL.
8557      old_archive_From_new_cmds='true'
8558      # FIXME: Should let the user specify the lib program.
8559      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8560      fix_srcfile_path='`cygpath -w "$srcfile"`'
8561      enable_shared_with_static_runtimes=yes
8562      ;;
8563
8564    darwin* | rhapsody*)
8565      case $host_os in
8566        rhapsody* | darwin1.[012])
8567         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8568         ;;
8569       *) # Darwin 1.3 on
8570         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8571           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8572         else
8573           case ${MACOSX_DEPLOYMENT_TARGET} in
8574             10.[012])
8575               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8576               ;;
8577             10.*)
8578               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8579               ;;
8580           esac
8581         fi
8582         ;;
8583      esac
8584      archive_cmds_need_lc=no
8585      hardcode_direct=no
8586      hardcode_automatic=yes
8587      hardcode_shlibpath_var=unsupported
8588      whole_archive_flag_spec=''
8589      link_all_deplibs=yes
8590    if test "$GCC" = yes ; then
8591    	output_verbose_link_cmd='echo'
8592        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8593      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8594      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8595      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8596      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8597    else
8598      case $cc_basename in
8599        xlc*)
8600         output_verbose_link_cmd='echo'
8601         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8602         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8603          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8604         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8605          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8606          ;;
8607       *)
8608         ld_shlibs=no
8609          ;;
8610      esac
8611    fi
8612      ;;
8613
8614    dgux*)
8615      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8616      hardcode_libdir_flag_spec='-L$libdir'
8617      hardcode_shlibpath_var=no
8618      ;;
8619
8620    freebsd1*)
8621      ld_shlibs=no
8622      ;;
8623
8624    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8625    # support.  Future versions do this automatically, but an explicit c++rt0.o
8626    # does not break anything, and helps significantly (at the cost of a little
8627    # extra space).
8628    freebsd2.2*)
8629      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8630      hardcode_libdir_flag_spec='-R$libdir'
8631      hardcode_direct=yes
8632      hardcode_shlibpath_var=no
8633      ;;
8634
8635    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8636    freebsd2*)
8637      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8638      hardcode_direct=yes
8639      hardcode_minus_L=yes
8640      hardcode_shlibpath_var=no
8641      ;;
8642
8643    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8644    freebsd* | kfreebsd*-gnu | dragonfly*)
8645      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8646      hardcode_libdir_flag_spec='-R$libdir'
8647      hardcode_direct=yes
8648      hardcode_shlibpath_var=no
8649      ;;
8650
8651    hpux9*)
8652      if test "$GCC" = yes; then
8653	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'
8654      else
8655	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'
8656      fi
8657      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8658      hardcode_libdir_separator=:
8659      hardcode_direct=yes
8660
8661      # hardcode_minus_L: Not really in the search PATH,
8662      # but as the default location of the library.
8663      hardcode_minus_L=yes
8664      export_dynamic_flag_spec='${wl}-E'
8665      ;;
8666
8667    hpux10*)
8668      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8669	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8670      else
8671	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8672      fi
8673      if test "$with_gnu_ld" = no; then
8674	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8675	hardcode_libdir_separator=:
8676
8677	hardcode_direct=yes
8678	export_dynamic_flag_spec='${wl}-E'
8679
8680	# hardcode_minus_L: Not really in the search PATH,
8681	# but as the default location of the library.
8682	hardcode_minus_L=yes
8683      fi
8684      ;;
8685
8686    hpux11*)
8687      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8688	case $host_cpu in
8689	hppa*64*)
8690	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8691	  ;;
8692	ia64*)
8693	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8694	  ;;
8695	*)
8696	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8697	  ;;
8698	esac
8699      else
8700	case $host_cpu in
8701	hppa*64*)
8702	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8703	  ;;
8704	ia64*)
8705	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8706	  ;;
8707	*)
8708	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8709	  ;;
8710	esac
8711      fi
8712      if test "$with_gnu_ld" = no; then
8713	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8714	hardcode_libdir_separator=:
8715
8716	case $host_cpu in
8717	hppa*64*|ia64*)
8718	  hardcode_libdir_flag_spec_ld='+b $libdir'
8719	  hardcode_direct=no
8720	  hardcode_shlibpath_var=no
8721	  ;;
8722	*)
8723	  hardcode_direct=yes
8724	  export_dynamic_flag_spec='${wl}-E'
8725
8726	  # hardcode_minus_L: Not really in the search PATH,
8727	  # but as the default location of the library.
8728	  hardcode_minus_L=yes
8729	  ;;
8730	esac
8731      fi
8732      ;;
8733
8734    irix5* | irix6* | nonstopux*)
8735      if test "$GCC" = yes; then
8736	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8737      else
8738	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8739	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8740      fi
8741      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8742      hardcode_libdir_separator=:
8743      link_all_deplibs=yes
8744      ;;
8745
8746    netbsd*)
8747      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8748	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8749      else
8750	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8751      fi
8752      hardcode_libdir_flag_spec='-R$libdir'
8753      hardcode_direct=yes
8754      hardcode_shlibpath_var=no
8755      ;;
8756
8757    newsos6)
8758      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8759      hardcode_direct=yes
8760      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8761      hardcode_libdir_separator=:
8762      hardcode_shlibpath_var=no
8763      ;;
8764
8765    openbsd*)
8766      hardcode_direct=yes
8767      hardcode_shlibpath_var=no
8768      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8769	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8770	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8771	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8772	export_dynamic_flag_spec='${wl}-E'
8773      else
8774       case $host_os in
8775	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8776	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8777	   hardcode_libdir_flag_spec='-R$libdir'
8778	   ;;
8779	 *)
8780	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8781	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8782	   ;;
8783       esac
8784      fi
8785      ;;
8786
8787    os2*)
8788      hardcode_libdir_flag_spec='-L$libdir'
8789      hardcode_minus_L=yes
8790      allow_undefined_flag=unsupported
8791      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'
8792      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8793      ;;
8794
8795    osf3*)
8796      if test "$GCC" = yes; then
8797	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8798	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8799      else
8800	allow_undefined_flag=' -expect_unresolved \*'
8801	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8802      fi
8803      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8804      hardcode_libdir_separator=:
8805      ;;
8806
8807    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8808      if test "$GCC" = yes; then
8809	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8810	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8811	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8812      else
8813	allow_undefined_flag=' -expect_unresolved \*'
8814	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8815	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8816	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8817
8818	# Both c and cxx compiler support -rpath directly
8819	hardcode_libdir_flag_spec='-rpath $libdir'
8820      fi
8821      hardcode_libdir_separator=:
8822      ;;
8823
8824    solaris*)
8825      no_undefined_flag=' -z text'
8826      if test "$GCC" = yes; then
8827	wlarc='${wl}'
8828	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8829	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8830	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8831      else
8832	wlarc=''
8833	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8834	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8835  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8836      fi
8837      hardcode_libdir_flag_spec='-R$libdir'
8838      hardcode_shlibpath_var=no
8839      case $host_os in
8840      solaris2.[0-5] | solaris2.[0-5].*) ;;
8841      *)
8842 	# The compiler driver will combine linker options so we
8843 	# cannot just pass the convience library names through
8844 	# without $wl, iff we do not link with $LD.
8845 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8846 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8847 	case $wlarc in
8848 	'')
8849 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8850 	*)
8851 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8852 	esac ;;
8853      esac
8854      link_all_deplibs=yes
8855      ;;
8856
8857    sunos4*)
8858      if test "x$host_vendor" = xsequent; then
8859	# Use $CC to link under sequent, because it throws in some extra .o
8860	# files that make .init and .fini sections work.
8861	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8862      else
8863	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8864      fi
8865      hardcode_libdir_flag_spec='-L$libdir'
8866      hardcode_direct=yes
8867      hardcode_minus_L=yes
8868      hardcode_shlibpath_var=no
8869      ;;
8870
8871    sysv4)
8872      case $host_vendor in
8873	sni)
8874	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8875	  hardcode_direct=yes # is this really true???
8876	;;
8877	siemens)
8878	  ## LD is ld it makes a PLAMLIB
8879	  ## CC just makes a GrossModule.
8880	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8881	  reload_cmds='$CC -r -o $output$reload_objs'
8882	  hardcode_direct=no
8883        ;;
8884	motorola)
8885	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8886	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8887	;;
8888      esac
8889      runpath_var='LD_RUN_PATH'
8890      hardcode_shlibpath_var=no
8891      ;;
8892
8893    sysv4.3*)
8894      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8895      hardcode_shlibpath_var=no
8896      export_dynamic_flag_spec='-Bexport'
8897      ;;
8898
8899    sysv4*MP*)
8900      if test -d /usr/nec; then
8901	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8902	hardcode_shlibpath_var=no
8903	runpath_var=LD_RUN_PATH
8904	hardcode_runpath_var=yes
8905	ld_shlibs=yes
8906      fi
8907      ;;
8908
8909    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8910      no_undefined_flag='${wl}-z,text'
8911      archive_cmds_need_lc=no
8912      hardcode_shlibpath_var=no
8913      runpath_var='LD_RUN_PATH'
8914
8915      if test "$GCC" = yes; then
8916	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8917	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8918      else
8919	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8920	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8921      fi
8922      ;;
8923
8924    sysv5* | sco3.2v5* | sco5v6*)
8925      # Note: We can NOT use -z defs as we might desire, because we do not
8926      # link with -lc, and that would cause any symbols used from libc to
8927      # always be unresolved, which means just about no library would
8928      # ever link correctly.  If we're not using GNU ld we use -z text
8929      # though, which does catch some bad symbols but isn't as heavy-handed
8930      # as -z defs.
8931      no_undefined_flag='${wl}-z,text'
8932      allow_undefined_flag='${wl}-z,nodefs'
8933      archive_cmds_need_lc=no
8934      hardcode_shlibpath_var=no
8935      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8936      hardcode_libdir_separator=':'
8937      link_all_deplibs=yes
8938      export_dynamic_flag_spec='${wl}-Bexport'
8939      runpath_var='LD_RUN_PATH'
8940
8941      if test "$GCC" = yes; then
8942	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8943	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8944      else
8945	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8946	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8947      fi
8948      ;;
8949
8950    uts4*)
8951      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8952      hardcode_libdir_flag_spec='-L$libdir'
8953      hardcode_shlibpath_var=no
8954      ;;
8955
8956    *)
8957      ld_shlibs=no
8958      ;;
8959    esac
8960  fi
8961
8962{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8963echo "${ECHO_T}$ld_shlibs" >&6; }
8964test "$ld_shlibs" = no && can_build_shared=no
8965
8966#
8967# Do we need to explicitly link libc?
8968#
8969case "x$archive_cmds_need_lc" in
8970x|xyes)
8971  # Assume -lc should be added
8972  archive_cmds_need_lc=yes
8973
8974  if test "$enable_shared" = yes && test "$GCC" = yes; then
8975    case $archive_cmds in
8976    *'~'*)
8977      # FIXME: we may have to deal with multi-command sequences.
8978      ;;
8979    '$CC '*)
8980      # Test whether the compiler implicitly links with -lc since on some
8981      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8982      # to ld, don't add -lc before -lgcc.
8983      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8984echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8985      $rm conftest*
8986      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8987
8988      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8989  (eval $ac_compile) 2>&5
8990  ac_status=$?
8991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992  (exit $ac_status); } 2>conftest.err; then
8993        soname=conftest
8994        lib=conftest
8995        libobjs=conftest.$ac_objext
8996        deplibs=
8997        wl=$lt_prog_compiler_wl
8998	pic_flag=$lt_prog_compiler_pic
8999        compiler_flags=-v
9000        linker_flags=-v
9001        verstring=
9002        output_objdir=.
9003        libname=conftest
9004        lt_save_allow_undefined_flag=$allow_undefined_flag
9005        allow_undefined_flag=
9006        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9007  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9008  ac_status=$?
9009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010  (exit $ac_status); }
9011        then
9012	  archive_cmds_need_lc=no
9013        else
9014	  archive_cmds_need_lc=yes
9015        fi
9016        allow_undefined_flag=$lt_save_allow_undefined_flag
9017      else
9018        cat conftest.err 1>&5
9019      fi
9020      $rm conftest*
9021      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9022echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9023      ;;
9024    esac
9025  fi
9026  ;;
9027esac
9028
9029{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9030echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9031library_names_spec=
9032libname_spec='lib$name'
9033soname_spec=
9034shrext_cmds=".so"
9035postinstall_cmds=
9036postuninstall_cmds=
9037finish_cmds=
9038finish_eval=
9039shlibpath_var=
9040shlibpath_overrides_runpath=unknown
9041version_type=none
9042dynamic_linker="$host_os ld.so"
9043sys_lib_dlsearch_path_spec="/lib /usr/lib"
9044if test "$GCC" = yes; then
9045  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9046  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9047    # if the path contains ";" then we assume it to be the separator
9048    # otherwise default to the standard path separator (i.e. ":") - it is
9049    # assumed that no part of a normal pathname contains ";" but that should
9050    # okay in the real world where ";" in dirpaths is itself problematic.
9051    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9052  else
9053    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9054  fi
9055else
9056  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9057fi
9058need_lib_prefix=unknown
9059hardcode_into_libs=no
9060
9061# when you set need_version to no, make sure it does not cause -set_version
9062# flags to be left without arguments
9063need_version=unknown
9064
9065case $host_os in
9066aix3*)
9067  version_type=linux
9068  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9069  shlibpath_var=LIBPATH
9070
9071  # AIX 3 has no versioning support, so we append a major version to the name.
9072  soname_spec='${libname}${release}${shared_ext}$major'
9073  ;;
9074
9075aix4* | aix5*)
9076  version_type=linux
9077  need_lib_prefix=no
9078  need_version=no
9079  hardcode_into_libs=yes
9080  if test "$host_cpu" = ia64; then
9081    # AIX 5 supports IA64
9082    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9083    shlibpath_var=LD_LIBRARY_PATH
9084  else
9085    # With GCC up to 2.95.x, collect2 would create an import file
9086    # for dependence libraries.  The import file would start with
9087    # the line `#! .'.  This would cause the generated library to
9088    # depend on `.', always an invalid library.  This was fixed in
9089    # development snapshots of GCC prior to 3.0.
9090    case $host_os in
9091      aix4 | aix4.[01] | aix4.[01].*)
9092      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9093	   echo ' yes '
9094	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9095	:
9096      else
9097	can_build_shared=no
9098      fi
9099      ;;
9100    esac
9101    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9102    # soname into executable. Probably we can add versioning support to
9103    # collect2, so additional links can be useful in future.
9104    if test "$aix_use_runtimelinking" = yes; then
9105      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9106      # instead of lib<name>.a to let people know that these are not
9107      # typical AIX shared libraries.
9108      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109    else
9110      # We preserve .a as extension for shared libraries through AIX4.2
9111      # and later when we are not doing run time linking.
9112      library_names_spec='${libname}${release}.a $libname.a'
9113      soname_spec='${libname}${release}${shared_ext}$major'
9114    fi
9115    shlibpath_var=LIBPATH
9116  fi
9117  ;;
9118
9119amigaos*)
9120  library_names_spec='$libname.ixlibrary $libname.a'
9121  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9122  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'
9123  ;;
9124
9125beos*)
9126  library_names_spec='${libname}${shared_ext}'
9127  dynamic_linker="$host_os ld.so"
9128  shlibpath_var=LIBRARY_PATH
9129  ;;
9130
9131bsdi[45]*)
9132  version_type=linux
9133  need_version=no
9134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135  soname_spec='${libname}${release}${shared_ext}$major'
9136  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9137  shlibpath_var=LD_LIBRARY_PATH
9138  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9139  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9140  # the default ld.so.conf also contains /usr/contrib/lib and
9141  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9142  # libtool to hard-code these into programs
9143  ;;
9144
9145cygwin* | mingw* | pw32*)
9146  version_type=windows
9147  shrext_cmds=".dll"
9148  need_version=no
9149  need_lib_prefix=no
9150
9151  case $GCC,$host_os in
9152  yes,cygwin* | yes,mingw* | yes,pw32*)
9153    library_names_spec='$libname.dll.a'
9154    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9155    postinstall_cmds='base_file=`basename \${file}`~
9156      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9157      dldir=$destdir/`dirname \$dlpath`~
9158      test -d \$dldir || mkdir -p \$dldir~
9159      $install_prog $dir/$dlname \$dldir/$dlname~
9160      chmod a+x \$dldir/$dlname'
9161    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9162      dlpath=$dir/\$dldll~
9163       $rm \$dlpath'
9164    shlibpath_overrides_runpath=yes
9165
9166    case $host_os in
9167    cygwin*)
9168      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9169      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9170      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9171      ;;
9172    mingw*)
9173      # MinGW DLLs use traditional 'lib' prefix
9174      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9175      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9176      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9177        # It is most probably a Windows format PATH printed by
9178        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9179        # path with ; separators, and with drive letters. We can handle the
9180        # drive letters (cygwin fileutils understands them), so leave them,
9181        # especially as we might pass files found there to a mingw objdump,
9182        # which wouldn't understand a cygwinified path. Ahh.
9183        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9184      else
9185        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9186      fi
9187      ;;
9188    pw32*)
9189      # pw32 DLLs use 'pw' prefix rather than 'lib'
9190      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9191      ;;
9192    esac
9193    ;;
9194
9195  *)
9196    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9197    ;;
9198  esac
9199  dynamic_linker='Win32 ld.exe'
9200  # FIXME: first we should search . and the directory the executable is in
9201  shlibpath_var=PATH
9202  ;;
9203
9204darwin* | rhapsody*)
9205  dynamic_linker="$host_os dyld"
9206  version_type=darwin
9207  need_lib_prefix=no
9208  need_version=no
9209  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9210  soname_spec='${libname}${release}${major}$shared_ext'
9211  shlibpath_overrides_runpath=yes
9212  shlibpath_var=DYLD_LIBRARY_PATH
9213  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9214  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9215  if test "$GCC" = yes; then
9216    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9217  else
9218    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9219  fi
9220  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9221  ;;
9222
9223dgux*)
9224  version_type=linux
9225  need_lib_prefix=no
9226  need_version=no
9227  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9228  soname_spec='${libname}${release}${shared_ext}$major'
9229  shlibpath_var=LD_LIBRARY_PATH
9230  ;;
9231
9232freebsd1*)
9233  dynamic_linker=no
9234  ;;
9235
9236kfreebsd*-gnu)
9237  version_type=linux
9238  need_lib_prefix=no
9239  need_version=no
9240  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9241  soname_spec='${libname}${release}${shared_ext}$major'
9242  shlibpath_var=LD_LIBRARY_PATH
9243  shlibpath_overrides_runpath=no
9244  hardcode_into_libs=yes
9245  dynamic_linker='GNU ld.so'
9246  ;;
9247
9248freebsd* | dragonfly*)
9249  # DragonFly does not have aout.  When/if they implement a new
9250  # versioning mechanism, adjust this.
9251  if test -x /usr/bin/objformat; then
9252    objformat=`/usr/bin/objformat`
9253  else
9254    case $host_os in
9255    freebsd[123]*) objformat=aout ;;
9256    *) objformat=elf ;;
9257    esac
9258  fi
9259  version_type=freebsd-$objformat
9260  case $version_type in
9261    freebsd-elf*)
9262      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9263      need_version=no
9264      need_lib_prefix=no
9265      ;;
9266    freebsd-*)
9267      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9268      need_version=yes
9269      ;;
9270  esac
9271  shlibpath_var=LD_LIBRARY_PATH
9272  case $host_os in
9273  freebsd2*)
9274    shlibpath_overrides_runpath=yes
9275    ;;
9276  freebsd3.[01]* | freebsdelf3.[01]*)
9277    shlibpath_overrides_runpath=yes
9278    hardcode_into_libs=yes
9279    ;;
9280  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9281  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9282    shlibpath_overrides_runpath=no
9283    hardcode_into_libs=yes
9284    ;;
9285  freebsd*) # from 4.6 on
9286    shlibpath_overrides_runpath=yes
9287    hardcode_into_libs=yes
9288    ;;
9289  esac
9290  ;;
9291
9292gnu*)
9293  version_type=linux
9294  need_lib_prefix=no
9295  need_version=no
9296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9297  soname_spec='${libname}${release}${shared_ext}$major'
9298  shlibpath_var=LD_LIBRARY_PATH
9299  hardcode_into_libs=yes
9300  ;;
9301
9302hpux9* | hpux10* | hpux11*)
9303  # Give a soname corresponding to the major version so that dld.sl refuses to
9304  # link against other versions.
9305  version_type=sunos
9306  need_lib_prefix=no
9307  need_version=no
9308  case $host_cpu in
9309  ia64*)
9310    shrext_cmds='.so'
9311    hardcode_into_libs=yes
9312    dynamic_linker="$host_os dld.so"
9313    shlibpath_var=LD_LIBRARY_PATH
9314    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9315    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316    soname_spec='${libname}${release}${shared_ext}$major'
9317    if test "X$HPUX_IA64_MODE" = X32; then
9318      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9319    else
9320      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9321    fi
9322    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9323    ;;
9324   hppa*64*)
9325     shrext_cmds='.sl'
9326     hardcode_into_libs=yes
9327     dynamic_linker="$host_os dld.sl"
9328     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9329     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9330     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9331     soname_spec='${libname}${release}${shared_ext}$major'
9332     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9333     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9334     ;;
9335   *)
9336    shrext_cmds='.sl'
9337    dynamic_linker="$host_os dld.sl"
9338    shlibpath_var=SHLIB_PATH
9339    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9340    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9341    soname_spec='${libname}${release}${shared_ext}$major'
9342    ;;
9343  esac
9344  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9345  postinstall_cmds='chmod 555 $lib'
9346  ;;
9347
9348interix3*)
9349  version_type=linux
9350  need_lib_prefix=no
9351  need_version=no
9352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9353  soname_spec='${libname}${release}${shared_ext}$major'
9354  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9355  shlibpath_var=LD_LIBRARY_PATH
9356  shlibpath_overrides_runpath=no
9357  hardcode_into_libs=yes
9358  ;;
9359
9360irix5* | irix6* | nonstopux*)
9361  case $host_os in
9362    nonstopux*) version_type=nonstopux ;;
9363    *)
9364	if test "$lt_cv_prog_gnu_ld" = yes; then
9365		version_type=linux
9366	else
9367		version_type=irix
9368	fi ;;
9369  esac
9370  need_lib_prefix=no
9371  need_version=no
9372  soname_spec='${libname}${release}${shared_ext}$major'
9373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9374  case $host_os in
9375  irix5* | nonstopux*)
9376    libsuff= shlibsuff=
9377    ;;
9378  *)
9379    case $LD in # libtool.m4 will add one of these switches to LD
9380    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9381      libsuff= shlibsuff= libmagic=32-bit;;
9382    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9383      libsuff=32 shlibsuff=N32 libmagic=N32;;
9384    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9385      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9386    *) libsuff= shlibsuff= libmagic=never-match;;
9387    esac
9388    ;;
9389  esac
9390  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9391  shlibpath_overrides_runpath=no
9392  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9393  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9394  hardcode_into_libs=yes
9395  ;;
9396
9397# No shared lib support for Linux oldld, aout, or coff.
9398linux*oldld* | linux*aout* | linux*coff*)
9399  dynamic_linker=no
9400  ;;
9401
9402# This must be Linux ELF.
9403linux*)
9404  version_type=linux
9405  need_lib_prefix=no
9406  need_version=no
9407  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408  soname_spec='${libname}${release}${shared_ext}$major'
9409  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9410  shlibpath_var=LD_LIBRARY_PATH
9411  shlibpath_overrides_runpath=no
9412  # This implies no fast_install, which is unacceptable.
9413  # Some rework will be needed to allow for fast_install
9414  # before this can be enabled.
9415  hardcode_into_libs=yes
9416
9417  # Append ld.so.conf contents to the search path
9418  if test -f /etc/ld.so.conf; then
9419    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9420    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9421  fi
9422
9423  # We used to test for /lib/ld.so.1 and disable shared libraries on
9424  # powerpc, because MkLinux only supported shared libraries with the
9425  # GNU dynamic linker.  Since this was broken with cross compilers,
9426  # most powerpc-linux boxes support dynamic linking these days and
9427  # people can always --disable-shared, the test was removed, and we
9428  # assume the GNU/Linux dynamic linker is in use.
9429  dynamic_linker='GNU/Linux ld.so'
9430  ;;
9431
9432knetbsd*-gnu)
9433  version_type=linux
9434  need_lib_prefix=no
9435  need_version=no
9436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9437  soname_spec='${libname}${release}${shared_ext}$major'
9438  shlibpath_var=LD_LIBRARY_PATH
9439  shlibpath_overrides_runpath=no
9440  hardcode_into_libs=yes
9441  dynamic_linker='GNU ld.so'
9442  ;;
9443
9444netbsd*)
9445  version_type=sunos
9446  need_lib_prefix=no
9447  need_version=no
9448  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9449    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9450    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9451    dynamic_linker='NetBSD (a.out) ld.so'
9452  else
9453    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9454    soname_spec='${libname}${release}${shared_ext}$major'
9455    dynamic_linker='NetBSD ld.elf_so'
9456  fi
9457  shlibpath_var=LD_LIBRARY_PATH
9458  shlibpath_overrides_runpath=yes
9459  hardcode_into_libs=yes
9460  ;;
9461
9462newsos6)
9463  version_type=linux
9464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465  shlibpath_var=LD_LIBRARY_PATH
9466  shlibpath_overrides_runpath=yes
9467  ;;
9468
9469nto-qnx*)
9470  version_type=linux
9471  need_lib_prefix=no
9472  need_version=no
9473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474  soname_spec='${libname}${release}${shared_ext}$major'
9475  shlibpath_var=LD_LIBRARY_PATH
9476  shlibpath_overrides_runpath=yes
9477  ;;
9478
9479openbsd*)
9480  version_type=sunos
9481  sys_lib_dlsearch_path_spec="/usr/lib"
9482  need_lib_prefix=no
9483  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9484  case $host_os in
9485    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9486    *)                         need_version=no  ;;
9487  esac
9488  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9489  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9490  shlibpath_var=LD_LIBRARY_PATH
9491  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9492    case $host_os in
9493      openbsd2.[89] | openbsd2.[89].*)
9494	shlibpath_overrides_runpath=no
9495	;;
9496      *)
9497	shlibpath_overrides_runpath=yes
9498	;;
9499      esac
9500  else
9501    shlibpath_overrides_runpath=yes
9502  fi
9503  ;;
9504
9505os2*)
9506  libname_spec='$name'
9507  shrext_cmds=".dll"
9508  need_lib_prefix=no
9509  library_names_spec='$libname${shared_ext} $libname.a'
9510  dynamic_linker='OS/2 ld.exe'
9511  shlibpath_var=LIBPATH
9512  ;;
9513
9514osf3* | osf4* | osf5*)
9515  version_type=osf
9516  need_lib_prefix=no
9517  need_version=no
9518  soname_spec='${libname}${release}${shared_ext}$major'
9519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520  shlibpath_var=LD_LIBRARY_PATH
9521  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9522  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9523  ;;
9524
9525solaris*)
9526  version_type=linux
9527  need_lib_prefix=no
9528  need_version=no
9529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9530  soname_spec='${libname}${release}${shared_ext}$major'
9531  shlibpath_var=LD_LIBRARY_PATH
9532  shlibpath_overrides_runpath=yes
9533  hardcode_into_libs=yes
9534  # ldd complains unless libraries are executable
9535  postinstall_cmds='chmod +x $lib'
9536  ;;
9537
9538sunos4*)
9539  version_type=sunos
9540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9541  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9542  shlibpath_var=LD_LIBRARY_PATH
9543  shlibpath_overrides_runpath=yes
9544  if test "$with_gnu_ld" = yes; then
9545    need_lib_prefix=no
9546  fi
9547  need_version=yes
9548  ;;
9549
9550sysv4 | sysv4.3*)
9551  version_type=linux
9552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553  soname_spec='${libname}${release}${shared_ext}$major'
9554  shlibpath_var=LD_LIBRARY_PATH
9555  case $host_vendor in
9556    sni)
9557      shlibpath_overrides_runpath=no
9558      need_lib_prefix=no
9559      export_dynamic_flag_spec='${wl}-Blargedynsym'
9560      runpath_var=LD_RUN_PATH
9561      ;;
9562    siemens)
9563      need_lib_prefix=no
9564      ;;
9565    motorola)
9566      need_lib_prefix=no
9567      need_version=no
9568      shlibpath_overrides_runpath=no
9569      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9570      ;;
9571  esac
9572  ;;
9573
9574sysv4*MP*)
9575  if test -d /usr/nec ;then
9576    version_type=linux
9577    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9578    soname_spec='$libname${shared_ext}.$major'
9579    shlibpath_var=LD_LIBRARY_PATH
9580  fi
9581  ;;
9582
9583sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9584  version_type=freebsd-elf
9585  need_lib_prefix=no
9586  need_version=no
9587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9588  soname_spec='${libname}${release}${shared_ext}$major'
9589  shlibpath_var=LD_LIBRARY_PATH
9590  hardcode_into_libs=yes
9591  if test "$with_gnu_ld" = yes; then
9592    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9593    shlibpath_overrides_runpath=no
9594  else
9595    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9596    shlibpath_overrides_runpath=yes
9597    case $host_os in
9598      sco3.2v5*)
9599        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9600	;;
9601    esac
9602  fi
9603  sys_lib_dlsearch_path_spec='/usr/lib'
9604  ;;
9605
9606uts4*)
9607  version_type=linux
9608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609  soname_spec='${libname}${release}${shared_ext}$major'
9610  shlibpath_var=LD_LIBRARY_PATH
9611  ;;
9612
9613*)
9614  dynamic_linker=no
9615  ;;
9616esac
9617{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9618echo "${ECHO_T}$dynamic_linker" >&6; }
9619test "$dynamic_linker" = no && can_build_shared=no
9620
9621variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9622if test "$GCC" = yes; then
9623  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9624fi
9625
9626{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9627echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9628hardcode_action=
9629if test -n "$hardcode_libdir_flag_spec" || \
9630   test -n "$runpath_var" || \
9631   test "X$hardcode_automatic" = "Xyes" ; then
9632
9633  # We can hardcode non-existant directories.
9634  if test "$hardcode_direct" != no &&
9635     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9636     # have to relink, otherwise we might link with an installed library
9637     # when we should be linking with a yet-to-be-installed one
9638     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9639     test "$hardcode_minus_L" != no; then
9640    # Linking always hardcodes the temporary library directory.
9641    hardcode_action=relink
9642  else
9643    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9644    hardcode_action=immediate
9645  fi
9646else
9647  # We cannot hardcode anything, or else we can only hardcode existing
9648  # directories.
9649  hardcode_action=unsupported
9650fi
9651{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9652echo "${ECHO_T}$hardcode_action" >&6; }
9653
9654if test "$hardcode_action" = relink; then
9655  # Fast installation is not supported
9656  enable_fast_install=no
9657elif test "$shlibpath_overrides_runpath" = yes ||
9658     test "$enable_shared" = no; then
9659  # Fast installation is not necessary
9660  enable_fast_install=needless
9661fi
9662
9663striplib=
9664old_striplib=
9665{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9666echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9667if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9668  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9669  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9670  { echo "$as_me:$LINENO: result: yes" >&5
9671echo "${ECHO_T}yes" >&6; }
9672else
9673# FIXME - insert some real tests, host_os isn't really good enough
9674  case $host_os in
9675   darwin*)
9676       if test -n "$STRIP" ; then
9677         striplib="$STRIP -x"
9678         { echo "$as_me:$LINENO: result: yes" >&5
9679echo "${ECHO_T}yes" >&6; }
9680       else
9681  { echo "$as_me:$LINENO: result: no" >&5
9682echo "${ECHO_T}no" >&6; }
9683fi
9684       ;;
9685   *)
9686  { echo "$as_me:$LINENO: result: no" >&5
9687echo "${ECHO_T}no" >&6; }
9688    ;;
9689  esac
9690fi
9691
9692if test "x$enable_dlopen" != xyes; then
9693  enable_dlopen=unknown
9694  enable_dlopen_self=unknown
9695  enable_dlopen_self_static=unknown
9696else
9697  lt_cv_dlopen=no
9698  lt_cv_dlopen_libs=
9699
9700  case $host_os in
9701  beos*)
9702    lt_cv_dlopen="load_add_on"
9703    lt_cv_dlopen_libs=
9704    lt_cv_dlopen_self=yes
9705    ;;
9706
9707  mingw* | pw32*)
9708    lt_cv_dlopen="LoadLibrary"
9709    lt_cv_dlopen_libs=
9710   ;;
9711
9712  cygwin*)
9713    lt_cv_dlopen="dlopen"
9714    lt_cv_dlopen_libs=
9715   ;;
9716
9717  darwin*)
9718  # if libdl is installed we need to link against it
9719    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9720echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9721if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9722  echo $ECHO_N "(cached) $ECHO_C" >&6
9723else
9724  ac_check_lib_save_LIBS=$LIBS
9725LIBS="-ldl  $LIBS"
9726cat >conftest.$ac_ext <<_ACEOF
9727/* confdefs.h.  */
9728_ACEOF
9729cat confdefs.h >>conftest.$ac_ext
9730cat >>conftest.$ac_ext <<_ACEOF
9731/* end confdefs.h.  */
9732
9733/* Override any GCC internal prototype to avoid an error.
9734   Use char because int might match the return type of a GCC
9735   builtin and then its argument prototype would still apply.  */
9736#ifdef __cplusplus
9737extern "C"
9738#endif
9739char dlopen ();
9740int
9741main ()
9742{
9743return dlopen ();
9744  ;
9745  return 0;
9746}
9747_ACEOF
9748rm -f conftest.$ac_objext conftest$ac_exeext
9749if { (ac_try="$ac_link"
9750case "(($ac_try" in
9751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752  *) ac_try_echo=$ac_try;;
9753esac
9754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755  (eval "$ac_link") 2>conftest.er1
9756  ac_status=$?
9757  grep -v '^ *+' conftest.er1 >conftest.err
9758  rm -f conftest.er1
9759  cat conftest.err >&5
9760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761  (exit $ac_status); } &&
9762	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9763  { (case "(($ac_try" in
9764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765  *) ac_try_echo=$ac_try;;
9766esac
9767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768  (eval "$ac_try") 2>&5
9769  ac_status=$?
9770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771  (exit $ac_status); }; } &&
9772	 { ac_try='test -s conftest$ac_exeext'
9773  { (case "(($ac_try" in
9774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775  *) ac_try_echo=$ac_try;;
9776esac
9777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778  (eval "$ac_try") 2>&5
9779  ac_status=$?
9780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781  (exit $ac_status); }; }; then
9782  ac_cv_lib_dl_dlopen=yes
9783else
9784  echo "$as_me: failed program was:" >&5
9785sed 's/^/| /' conftest.$ac_ext >&5
9786
9787	ac_cv_lib_dl_dlopen=no
9788fi
9789
9790rm -f core conftest.err conftest.$ac_objext \
9791      conftest$ac_exeext conftest.$ac_ext
9792LIBS=$ac_check_lib_save_LIBS
9793fi
9794{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9795echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9796if test $ac_cv_lib_dl_dlopen = yes; then
9797  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9798else
9799
9800    lt_cv_dlopen="dyld"
9801    lt_cv_dlopen_libs=
9802    lt_cv_dlopen_self=yes
9803
9804fi
9805
9806   ;;
9807
9808  *)
9809    { echo "$as_me:$LINENO: checking for shl_load" >&5
9810echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9811if test "${ac_cv_func_shl_load+set}" = set; then
9812  echo $ECHO_N "(cached) $ECHO_C" >&6
9813else
9814  cat >conftest.$ac_ext <<_ACEOF
9815/* confdefs.h.  */
9816_ACEOF
9817cat confdefs.h >>conftest.$ac_ext
9818cat >>conftest.$ac_ext <<_ACEOF
9819/* end confdefs.h.  */
9820/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9821   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9822#define shl_load innocuous_shl_load
9823
9824/* System header to define __stub macros and hopefully few prototypes,
9825    which can conflict with char shl_load (); below.
9826    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9827    <limits.h> exists even on freestanding compilers.  */
9828
9829#ifdef __STDC__
9830# include <limits.h>
9831#else
9832# include <assert.h>
9833#endif
9834
9835#undef shl_load
9836
9837/* Override any GCC internal prototype to avoid an error.
9838   Use char because int might match the return type of a GCC
9839   builtin and then its argument prototype would still apply.  */
9840#ifdef __cplusplus
9841extern "C"
9842#endif
9843char shl_load ();
9844/* The GNU C library defines this for functions which it implements
9845    to always fail with ENOSYS.  Some functions are actually named
9846    something starting with __ and the normal name is an alias.  */
9847#if defined __stub_shl_load || defined __stub___shl_load
9848choke me
9849#endif
9850
9851int
9852main ()
9853{
9854return shl_load ();
9855  ;
9856  return 0;
9857}
9858_ACEOF
9859rm -f conftest.$ac_objext conftest$ac_exeext
9860if { (ac_try="$ac_link"
9861case "(($ac_try" in
9862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863  *) ac_try_echo=$ac_try;;
9864esac
9865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866  (eval "$ac_link") 2>conftest.er1
9867  ac_status=$?
9868  grep -v '^ *+' conftest.er1 >conftest.err
9869  rm -f conftest.er1
9870  cat conftest.err >&5
9871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872  (exit $ac_status); } &&
9873	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9874  { (case "(($ac_try" in
9875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876  *) ac_try_echo=$ac_try;;
9877esac
9878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879  (eval "$ac_try") 2>&5
9880  ac_status=$?
9881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882  (exit $ac_status); }; } &&
9883	 { ac_try='test -s conftest$ac_exeext'
9884  { (case "(($ac_try" in
9885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886  *) ac_try_echo=$ac_try;;
9887esac
9888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889  (eval "$ac_try") 2>&5
9890  ac_status=$?
9891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892  (exit $ac_status); }; }; then
9893  ac_cv_func_shl_load=yes
9894else
9895  echo "$as_me: failed program was:" >&5
9896sed 's/^/| /' conftest.$ac_ext >&5
9897
9898	ac_cv_func_shl_load=no
9899fi
9900
9901rm -f core conftest.err conftest.$ac_objext \
9902      conftest$ac_exeext conftest.$ac_ext
9903fi
9904{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9905echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9906if test $ac_cv_func_shl_load = yes; then
9907  lt_cv_dlopen="shl_load"
9908else
9909  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9910echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9911if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9912  echo $ECHO_N "(cached) $ECHO_C" >&6
9913else
9914  ac_check_lib_save_LIBS=$LIBS
9915LIBS="-ldld  $LIBS"
9916cat >conftest.$ac_ext <<_ACEOF
9917/* confdefs.h.  */
9918_ACEOF
9919cat confdefs.h >>conftest.$ac_ext
9920cat >>conftest.$ac_ext <<_ACEOF
9921/* end confdefs.h.  */
9922
9923/* Override any GCC internal prototype to avoid an error.
9924   Use char because int might match the return type of a GCC
9925   builtin and then its argument prototype would still apply.  */
9926#ifdef __cplusplus
9927extern "C"
9928#endif
9929char shl_load ();
9930int
9931main ()
9932{
9933return shl_load ();
9934  ;
9935  return 0;
9936}
9937_ACEOF
9938rm -f conftest.$ac_objext conftest$ac_exeext
9939if { (ac_try="$ac_link"
9940case "(($ac_try" in
9941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942  *) ac_try_echo=$ac_try;;
9943esac
9944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945  (eval "$ac_link") 2>conftest.er1
9946  ac_status=$?
9947  grep -v '^ *+' conftest.er1 >conftest.err
9948  rm -f conftest.er1
9949  cat conftest.err >&5
9950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951  (exit $ac_status); } &&
9952	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9953  { (case "(($ac_try" in
9954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955  *) ac_try_echo=$ac_try;;
9956esac
9957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958  (eval "$ac_try") 2>&5
9959  ac_status=$?
9960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961  (exit $ac_status); }; } &&
9962	 { ac_try='test -s conftest$ac_exeext'
9963  { (case "(($ac_try" in
9964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965  *) ac_try_echo=$ac_try;;
9966esac
9967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968  (eval "$ac_try") 2>&5
9969  ac_status=$?
9970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971  (exit $ac_status); }; }; then
9972  ac_cv_lib_dld_shl_load=yes
9973else
9974  echo "$as_me: failed program was:" >&5
9975sed 's/^/| /' conftest.$ac_ext >&5
9976
9977	ac_cv_lib_dld_shl_load=no
9978fi
9979
9980rm -f core conftest.err conftest.$ac_objext \
9981      conftest$ac_exeext conftest.$ac_ext
9982LIBS=$ac_check_lib_save_LIBS
9983fi
9984{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9985echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9986if test $ac_cv_lib_dld_shl_load = yes; then
9987  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9988else
9989  { echo "$as_me:$LINENO: checking for dlopen" >&5
9990echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9991if test "${ac_cv_func_dlopen+set}" = set; then
9992  echo $ECHO_N "(cached) $ECHO_C" >&6
9993else
9994  cat >conftest.$ac_ext <<_ACEOF
9995/* confdefs.h.  */
9996_ACEOF
9997cat confdefs.h >>conftest.$ac_ext
9998cat >>conftest.$ac_ext <<_ACEOF
9999/* end confdefs.h.  */
10000/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10001   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10002#define dlopen innocuous_dlopen
10003
10004/* System header to define __stub macros and hopefully few prototypes,
10005    which can conflict with char dlopen (); below.
10006    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10007    <limits.h> exists even on freestanding compilers.  */
10008
10009#ifdef __STDC__
10010# include <limits.h>
10011#else
10012# include <assert.h>
10013#endif
10014
10015#undef dlopen
10016
10017/* Override any GCC internal prototype to avoid an error.
10018   Use char because int might match the return type of a GCC
10019   builtin and then its argument prototype would still apply.  */
10020#ifdef __cplusplus
10021extern "C"
10022#endif
10023char dlopen ();
10024/* The GNU C library defines this for functions which it implements
10025    to always fail with ENOSYS.  Some functions are actually named
10026    something starting with __ and the normal name is an alias.  */
10027#if defined __stub_dlopen || defined __stub___dlopen
10028choke me
10029#endif
10030
10031int
10032main ()
10033{
10034return dlopen ();
10035  ;
10036  return 0;
10037}
10038_ACEOF
10039rm -f conftest.$ac_objext conftest$ac_exeext
10040if { (ac_try="$ac_link"
10041case "(($ac_try" in
10042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043  *) ac_try_echo=$ac_try;;
10044esac
10045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046  (eval "$ac_link") 2>conftest.er1
10047  ac_status=$?
10048  grep -v '^ *+' conftest.er1 >conftest.err
10049  rm -f conftest.er1
10050  cat conftest.err >&5
10051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052  (exit $ac_status); } &&
10053	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10054  { (case "(($ac_try" in
10055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056  *) ac_try_echo=$ac_try;;
10057esac
10058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059  (eval "$ac_try") 2>&5
10060  ac_status=$?
10061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062  (exit $ac_status); }; } &&
10063	 { ac_try='test -s conftest$ac_exeext'
10064  { (case "(($ac_try" in
10065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066  *) ac_try_echo=$ac_try;;
10067esac
10068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069  (eval "$ac_try") 2>&5
10070  ac_status=$?
10071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072  (exit $ac_status); }; }; then
10073  ac_cv_func_dlopen=yes
10074else
10075  echo "$as_me: failed program was:" >&5
10076sed 's/^/| /' conftest.$ac_ext >&5
10077
10078	ac_cv_func_dlopen=no
10079fi
10080
10081rm -f core conftest.err conftest.$ac_objext \
10082      conftest$ac_exeext conftest.$ac_ext
10083fi
10084{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10085echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10086if test $ac_cv_func_dlopen = yes; then
10087  lt_cv_dlopen="dlopen"
10088else
10089  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10090echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10091if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10092  echo $ECHO_N "(cached) $ECHO_C" >&6
10093else
10094  ac_check_lib_save_LIBS=$LIBS
10095LIBS="-ldl  $LIBS"
10096cat >conftest.$ac_ext <<_ACEOF
10097/* confdefs.h.  */
10098_ACEOF
10099cat confdefs.h >>conftest.$ac_ext
10100cat >>conftest.$ac_ext <<_ACEOF
10101/* end confdefs.h.  */
10102
10103/* Override any GCC internal prototype to avoid an error.
10104   Use char because int might match the return type of a GCC
10105   builtin and then its argument prototype would still apply.  */
10106#ifdef __cplusplus
10107extern "C"
10108#endif
10109char dlopen ();
10110int
10111main ()
10112{
10113return dlopen ();
10114  ;
10115  return 0;
10116}
10117_ACEOF
10118rm -f conftest.$ac_objext conftest$ac_exeext
10119if { (ac_try="$ac_link"
10120case "(($ac_try" in
10121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122  *) ac_try_echo=$ac_try;;
10123esac
10124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125  (eval "$ac_link") 2>conftest.er1
10126  ac_status=$?
10127  grep -v '^ *+' conftest.er1 >conftest.err
10128  rm -f conftest.er1
10129  cat conftest.err >&5
10130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131  (exit $ac_status); } &&
10132	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10133  { (case "(($ac_try" in
10134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135  *) ac_try_echo=$ac_try;;
10136esac
10137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138  (eval "$ac_try") 2>&5
10139  ac_status=$?
10140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141  (exit $ac_status); }; } &&
10142	 { ac_try='test -s conftest$ac_exeext'
10143  { (case "(($ac_try" in
10144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145  *) ac_try_echo=$ac_try;;
10146esac
10147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148  (eval "$ac_try") 2>&5
10149  ac_status=$?
10150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151  (exit $ac_status); }; }; then
10152  ac_cv_lib_dl_dlopen=yes
10153else
10154  echo "$as_me: failed program was:" >&5
10155sed 's/^/| /' conftest.$ac_ext >&5
10156
10157	ac_cv_lib_dl_dlopen=no
10158fi
10159
10160rm -f core conftest.err conftest.$ac_objext \
10161      conftest$ac_exeext conftest.$ac_ext
10162LIBS=$ac_check_lib_save_LIBS
10163fi
10164{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10165echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10166if test $ac_cv_lib_dl_dlopen = yes; then
10167  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10168else
10169  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10170echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10171if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10172  echo $ECHO_N "(cached) $ECHO_C" >&6
10173else
10174  ac_check_lib_save_LIBS=$LIBS
10175LIBS="-lsvld  $LIBS"
10176cat >conftest.$ac_ext <<_ACEOF
10177/* confdefs.h.  */
10178_ACEOF
10179cat confdefs.h >>conftest.$ac_ext
10180cat >>conftest.$ac_ext <<_ACEOF
10181/* end confdefs.h.  */
10182
10183/* Override any GCC internal prototype to avoid an error.
10184   Use char because int might match the return type of a GCC
10185   builtin and then its argument prototype would still apply.  */
10186#ifdef __cplusplus
10187extern "C"
10188#endif
10189char dlopen ();
10190int
10191main ()
10192{
10193return dlopen ();
10194  ;
10195  return 0;
10196}
10197_ACEOF
10198rm -f conftest.$ac_objext conftest$ac_exeext
10199if { (ac_try="$ac_link"
10200case "(($ac_try" in
10201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202  *) ac_try_echo=$ac_try;;
10203esac
10204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205  (eval "$ac_link") 2>conftest.er1
10206  ac_status=$?
10207  grep -v '^ *+' conftest.er1 >conftest.err
10208  rm -f conftest.er1
10209  cat conftest.err >&5
10210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211  (exit $ac_status); } &&
10212	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10213  { (case "(($ac_try" in
10214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215  *) ac_try_echo=$ac_try;;
10216esac
10217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218  (eval "$ac_try") 2>&5
10219  ac_status=$?
10220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221  (exit $ac_status); }; } &&
10222	 { ac_try='test -s conftest$ac_exeext'
10223  { (case "(($ac_try" in
10224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225  *) ac_try_echo=$ac_try;;
10226esac
10227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228  (eval "$ac_try") 2>&5
10229  ac_status=$?
10230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231  (exit $ac_status); }; }; then
10232  ac_cv_lib_svld_dlopen=yes
10233else
10234  echo "$as_me: failed program was:" >&5
10235sed 's/^/| /' conftest.$ac_ext >&5
10236
10237	ac_cv_lib_svld_dlopen=no
10238fi
10239
10240rm -f core conftest.err conftest.$ac_objext \
10241      conftest$ac_exeext conftest.$ac_ext
10242LIBS=$ac_check_lib_save_LIBS
10243fi
10244{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10245echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10246if test $ac_cv_lib_svld_dlopen = yes; then
10247  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10248else
10249  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10250echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10251if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10252  echo $ECHO_N "(cached) $ECHO_C" >&6
10253else
10254  ac_check_lib_save_LIBS=$LIBS
10255LIBS="-ldld  $LIBS"
10256cat >conftest.$ac_ext <<_ACEOF
10257/* confdefs.h.  */
10258_ACEOF
10259cat confdefs.h >>conftest.$ac_ext
10260cat >>conftest.$ac_ext <<_ACEOF
10261/* end confdefs.h.  */
10262
10263/* Override any GCC internal prototype to avoid an error.
10264   Use char because int might match the return type of a GCC
10265   builtin and then its argument prototype would still apply.  */
10266#ifdef __cplusplus
10267extern "C"
10268#endif
10269char dld_link ();
10270int
10271main ()
10272{
10273return dld_link ();
10274  ;
10275  return 0;
10276}
10277_ACEOF
10278rm -f conftest.$ac_objext conftest$ac_exeext
10279if { (ac_try="$ac_link"
10280case "(($ac_try" in
10281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282  *) ac_try_echo=$ac_try;;
10283esac
10284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10285  (eval "$ac_link") 2>conftest.er1
10286  ac_status=$?
10287  grep -v '^ *+' conftest.er1 >conftest.err
10288  rm -f conftest.er1
10289  cat conftest.err >&5
10290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291  (exit $ac_status); } &&
10292	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10293  { (case "(($ac_try" in
10294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295  *) ac_try_echo=$ac_try;;
10296esac
10297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298  (eval "$ac_try") 2>&5
10299  ac_status=$?
10300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301  (exit $ac_status); }; } &&
10302	 { ac_try='test -s conftest$ac_exeext'
10303  { (case "(($ac_try" in
10304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305  *) ac_try_echo=$ac_try;;
10306esac
10307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308  (eval "$ac_try") 2>&5
10309  ac_status=$?
10310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311  (exit $ac_status); }; }; then
10312  ac_cv_lib_dld_dld_link=yes
10313else
10314  echo "$as_me: failed program was:" >&5
10315sed 's/^/| /' conftest.$ac_ext >&5
10316
10317	ac_cv_lib_dld_dld_link=no
10318fi
10319
10320rm -f core conftest.err conftest.$ac_objext \
10321      conftest$ac_exeext conftest.$ac_ext
10322LIBS=$ac_check_lib_save_LIBS
10323fi
10324{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10325echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10326if test $ac_cv_lib_dld_dld_link = yes; then
10327  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10328fi
10329
10330
10331fi
10332
10333
10334fi
10335
10336
10337fi
10338
10339
10340fi
10341
10342
10343fi
10344
10345    ;;
10346  esac
10347
10348  if test "x$lt_cv_dlopen" != xno; then
10349    enable_dlopen=yes
10350  else
10351    enable_dlopen=no
10352  fi
10353
10354  case $lt_cv_dlopen in
10355  dlopen)
10356    save_CPPFLAGS="$CPPFLAGS"
10357    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10358
10359    save_LDFLAGS="$LDFLAGS"
10360    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10361
10362    save_LIBS="$LIBS"
10363    LIBS="$lt_cv_dlopen_libs $LIBS"
10364
10365    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10366echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10367if test "${lt_cv_dlopen_self+set}" = set; then
10368  echo $ECHO_N "(cached) $ECHO_C" >&6
10369else
10370  	  if test "$cross_compiling" = yes; then :
10371  lt_cv_dlopen_self=cross
10372else
10373  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10374  lt_status=$lt_dlunknown
10375  cat > conftest.$ac_ext <<EOF
10376#line 10376 "configure"
10377#include "confdefs.h"
10378
10379#if HAVE_DLFCN_H
10380#include <dlfcn.h>
10381#endif
10382
10383#include <stdio.h>
10384
10385#ifdef RTLD_GLOBAL
10386#  define LT_DLGLOBAL		RTLD_GLOBAL
10387#else
10388#  ifdef DL_GLOBAL
10389#    define LT_DLGLOBAL		DL_GLOBAL
10390#  else
10391#    define LT_DLGLOBAL		0
10392#  endif
10393#endif
10394
10395/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10396   find out it does not work in some platform. */
10397#ifndef LT_DLLAZY_OR_NOW
10398#  ifdef RTLD_LAZY
10399#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10400#  else
10401#    ifdef DL_LAZY
10402#      define LT_DLLAZY_OR_NOW		DL_LAZY
10403#    else
10404#      ifdef RTLD_NOW
10405#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10406#      else
10407#        ifdef DL_NOW
10408#          define LT_DLLAZY_OR_NOW	DL_NOW
10409#        else
10410#          define LT_DLLAZY_OR_NOW	0
10411#        endif
10412#      endif
10413#    endif
10414#  endif
10415#endif
10416
10417#ifdef __cplusplus
10418extern "C" void exit (int);
10419#endif
10420
10421void fnord() { int i=42;}
10422int main ()
10423{
10424  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10425  int status = $lt_dlunknown;
10426
10427  if (self)
10428    {
10429      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10430      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10431      /* dlclose (self); */
10432    }
10433  else
10434    puts (dlerror ());
10435
10436    exit (status);
10437}
10438EOF
10439  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10440  (eval $ac_link) 2>&5
10441  ac_status=$?
10442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10444    (./conftest; exit; ) >&5 2>/dev/null
10445    lt_status=$?
10446    case x$lt_status in
10447      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10448      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10449      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10450    esac
10451  else :
10452    # compilation failed
10453    lt_cv_dlopen_self=no
10454  fi
10455fi
10456rm -fr conftest*
10457
10458
10459fi
10460{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10461echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10462
10463    if test "x$lt_cv_dlopen_self" = xyes; then
10464      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10465      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10466echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10467if test "${lt_cv_dlopen_self_static+set}" = set; then
10468  echo $ECHO_N "(cached) $ECHO_C" >&6
10469else
10470  	  if test "$cross_compiling" = yes; then :
10471  lt_cv_dlopen_self_static=cross
10472else
10473  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10474  lt_status=$lt_dlunknown
10475  cat > conftest.$ac_ext <<EOF
10476#line 10476 "configure"
10477#include "confdefs.h"
10478
10479#if HAVE_DLFCN_H
10480#include <dlfcn.h>
10481#endif
10482
10483#include <stdio.h>
10484
10485#ifdef RTLD_GLOBAL
10486#  define LT_DLGLOBAL		RTLD_GLOBAL
10487#else
10488#  ifdef DL_GLOBAL
10489#    define LT_DLGLOBAL		DL_GLOBAL
10490#  else
10491#    define LT_DLGLOBAL		0
10492#  endif
10493#endif
10494
10495/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10496   find out it does not work in some platform. */
10497#ifndef LT_DLLAZY_OR_NOW
10498#  ifdef RTLD_LAZY
10499#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10500#  else
10501#    ifdef DL_LAZY
10502#      define LT_DLLAZY_OR_NOW		DL_LAZY
10503#    else
10504#      ifdef RTLD_NOW
10505#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10506#      else
10507#        ifdef DL_NOW
10508#          define LT_DLLAZY_OR_NOW	DL_NOW
10509#        else
10510#          define LT_DLLAZY_OR_NOW	0
10511#        endif
10512#      endif
10513#    endif
10514#  endif
10515#endif
10516
10517#ifdef __cplusplus
10518extern "C" void exit (int);
10519#endif
10520
10521void fnord() { int i=42;}
10522int main ()
10523{
10524  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10525  int status = $lt_dlunknown;
10526
10527  if (self)
10528    {
10529      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10530      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10531      /* dlclose (self); */
10532    }
10533  else
10534    puts (dlerror ());
10535
10536    exit (status);
10537}
10538EOF
10539  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10540  (eval $ac_link) 2>&5
10541  ac_status=$?
10542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10544    (./conftest; exit; ) >&5 2>/dev/null
10545    lt_status=$?
10546    case x$lt_status in
10547      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10548      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10549      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10550    esac
10551  else :
10552    # compilation failed
10553    lt_cv_dlopen_self_static=no
10554  fi
10555fi
10556rm -fr conftest*
10557
10558
10559fi
10560{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10561echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10562    fi
10563
10564    CPPFLAGS="$save_CPPFLAGS"
10565    LDFLAGS="$save_LDFLAGS"
10566    LIBS="$save_LIBS"
10567    ;;
10568  esac
10569
10570  case $lt_cv_dlopen_self in
10571  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10572  *) enable_dlopen_self=unknown ;;
10573  esac
10574
10575  case $lt_cv_dlopen_self_static in
10576  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10577  *) enable_dlopen_self_static=unknown ;;
10578  esac
10579fi
10580
10581
10582# Report which library types will actually be built
10583{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10584echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10585{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10586echo "${ECHO_T}$can_build_shared" >&6; }
10587
10588{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10589echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10590test "$can_build_shared" = "no" && enable_shared=no
10591
10592# On AIX, shared libraries and static libraries use the same namespace, and
10593# are all built from PIC.
10594case $host_os in
10595aix3*)
10596  test "$enable_shared" = yes && enable_static=no
10597  if test -n "$RANLIB"; then
10598    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10599    postinstall_cmds='$RANLIB $lib'
10600  fi
10601  ;;
10602
10603aix4* | aix5*)
10604  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10605    test "$enable_shared" = yes && enable_static=no
10606  fi
10607    ;;
10608esac
10609{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10610echo "${ECHO_T}$enable_shared" >&6; }
10611
10612{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10613echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10614# Make sure either enable_shared or enable_static is yes.
10615test "$enable_shared" = yes || enable_static=yes
10616{ echo "$as_me:$LINENO: result: $enable_static" >&5
10617echo "${ECHO_T}$enable_static" >&6; }
10618
10619# The else clause should only fire when bootstrapping the
10620# libtool distribution, otherwise you forgot to ship ltmain.sh
10621# with your package, and you will get complaints that there are
10622# no rules to generate ltmain.sh.
10623if test -f "$ltmain"; then
10624  # See if we are running on zsh, and set the options which allow our commands through
10625  # without removal of \ escapes.
10626  if test -n "${ZSH_VERSION+set}" ; then
10627    setopt NO_GLOB_SUBST
10628  fi
10629  # Now quote all the things that may contain metacharacters while being
10630  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10631  # variables and quote the copies for generation of the libtool script.
10632  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10633    SED SHELL STRIP \
10634    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10635    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10636    deplibs_check_method reload_flag reload_cmds need_locks \
10637    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10638    lt_cv_sys_global_symbol_to_c_name_address \
10639    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10640    old_postinstall_cmds old_postuninstall_cmds \
10641    compiler \
10642    CC \
10643    LD \
10644    lt_prog_compiler_wl \
10645    lt_prog_compiler_pic \
10646    lt_prog_compiler_static \
10647    lt_prog_compiler_no_builtin_flag \
10648    export_dynamic_flag_spec \
10649    thread_safe_flag_spec \
10650    whole_archive_flag_spec \
10651    enable_shared_with_static_runtimes \
10652    old_archive_cmds \
10653    old_archive_from_new_cmds \
10654    predep_objects \
10655    postdep_objects \
10656    predeps \
10657    postdeps \
10658    compiler_lib_search_path \
10659    archive_cmds \
10660    archive_expsym_cmds \
10661    postinstall_cmds \
10662    postuninstall_cmds \
10663    old_archive_from_expsyms_cmds \
10664    allow_undefined_flag \
10665    no_undefined_flag \
10666    export_symbols_cmds \
10667    hardcode_libdir_flag_spec \
10668    hardcode_libdir_flag_spec_ld \
10669    hardcode_libdir_separator \
10670    hardcode_automatic \
10671    module_cmds \
10672    module_expsym_cmds \
10673    lt_cv_prog_compiler_c_o \
10674    exclude_expsyms \
10675    include_expsyms; do
10676
10677    case $var in
10678    old_archive_cmds | \
10679    old_archive_from_new_cmds | \
10680    archive_cmds | \
10681    archive_expsym_cmds | \
10682    module_cmds | \
10683    module_expsym_cmds | \
10684    old_archive_from_expsyms_cmds | \
10685    export_symbols_cmds | \
10686    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10687    postinstall_cmds | postuninstall_cmds | \
10688    old_postinstall_cmds | old_postuninstall_cmds | \
10689    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10690      # Double-quote double-evaled strings.
10691      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10692      ;;
10693    *)
10694      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10695      ;;
10696    esac
10697  done
10698
10699  case $lt_echo in
10700  *'\$0 --fallback-echo"')
10701    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10702    ;;
10703  esac
10704
10705cfgfile="${ofile}T"
10706  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10707  $rm -f "$cfgfile"
10708  { echo "$as_me:$LINENO: creating $ofile" >&5
10709echo "$as_me: creating $ofile" >&6;}
10710
10711  cat <<__EOF__ >> "$cfgfile"
10712#! $SHELL
10713
10714# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10715# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10716# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10717#
10718# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10719# Free Software Foundation, Inc.
10720#
10721# This file is part of GNU Libtool:
10722# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10723#
10724# This program is free software; you can redistribute it and/or modify
10725# it under the terms of the GNU General Public License as published by
10726# the Free Software Foundation; either version 2 of the License, or
10727# (at your option) any later version.
10728#
10729# This program is distributed in the hope that it will be useful, but
10730# WITHOUT ANY WARRANTY; without even the implied warranty of
10731# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10732# General Public License for more details.
10733#
10734# You should have received a copy of the GNU General Public License
10735# along with this program; if not, write to the Free Software
10736# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10737#
10738# As a special exception to the GNU General Public License, if you
10739# distribute this file as part of a program that contains a
10740# configuration script generated by Autoconf, you may include it under
10741# the same distribution terms that you use for the rest of that program.
10742
10743# A sed program that does not truncate output.
10744SED=$lt_SED
10745
10746# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10747Xsed="$SED -e 1s/^X//"
10748
10749# The HP-UX ksh and POSIX shell print the target directory to stdout
10750# if CDPATH is set.
10751(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10752
10753# The names of the tagged configurations supported by this script.
10754available_tags=
10755
10756# ### BEGIN LIBTOOL CONFIG
10757
10758# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10759
10760# Shell to use when invoking shell scripts.
10761SHELL=$lt_SHELL
10762
10763# Whether or not to build shared libraries.
10764build_libtool_libs=$enable_shared
10765
10766# Whether or not to build static libraries.
10767build_old_libs=$enable_static
10768
10769# Whether or not to add -lc for building shared libraries.
10770build_libtool_need_lc=$archive_cmds_need_lc
10771
10772# Whether or not to disallow shared libs when runtime libs are static
10773allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10774
10775# Whether or not to optimize for fast installation.
10776fast_install=$enable_fast_install
10777
10778# The host system.
10779host_alias=$host_alias
10780host=$host
10781host_os=$host_os
10782
10783# The build system.
10784build_alias=$build_alias
10785build=$build
10786build_os=$build_os
10787
10788# An echo program that does not interpret backslashes.
10789echo=$lt_echo
10790
10791# The archiver.
10792AR=$lt_AR
10793AR_FLAGS=$lt_AR_FLAGS
10794
10795# A C compiler.
10796LTCC=$lt_LTCC
10797
10798# LTCC compiler flags.
10799LTCFLAGS=$lt_LTCFLAGS
10800
10801# A language-specific compiler.
10802CC=$lt_compiler
10803
10804# Is the compiler the GNU C compiler?
10805with_gcc=$GCC
10806
10807# An ERE matcher.
10808EGREP=$lt_EGREP
10809
10810# The linker used to build libraries.
10811LD=$lt_LD
10812
10813# Whether we need hard or soft links.
10814LN_S=$lt_LN_S
10815
10816# A BSD-compatible nm program.
10817NM=$lt_NM
10818
10819# A symbol stripping program
10820STRIP=$lt_STRIP
10821
10822# Used to examine libraries when file_magic_cmd begins "file"
10823MAGIC_CMD=$MAGIC_CMD
10824
10825# Used on cygwin: DLL creation program.
10826DLLTOOL="$DLLTOOL"
10827
10828# Used on cygwin: object dumper.
10829OBJDUMP="$OBJDUMP"
10830
10831# Used on cygwin: assembler.
10832AS="$AS"
10833
10834# The name of the directory that contains temporary libtool files.
10835objdir=$objdir
10836
10837# How to create reloadable object files.
10838reload_flag=$lt_reload_flag
10839reload_cmds=$lt_reload_cmds
10840
10841# How to pass a linker flag through the compiler.
10842wl=$lt_lt_prog_compiler_wl
10843
10844# Object file suffix (normally "o").
10845objext="$ac_objext"
10846
10847# Old archive suffix (normally "a").
10848libext="$libext"
10849
10850# Shared library suffix (normally ".so").
10851shrext_cmds='$shrext_cmds'
10852
10853# Executable file suffix (normally "").
10854exeext="$exeext"
10855
10856# Additional compiler flags for building library objects.
10857pic_flag=$lt_lt_prog_compiler_pic
10858pic_mode=$pic_mode
10859
10860# What is the maximum length of a command?
10861max_cmd_len=$lt_cv_sys_max_cmd_len
10862
10863# Does compiler simultaneously support -c and -o options?
10864compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10865
10866# Must we lock files when doing compilation?
10867need_locks=$lt_need_locks
10868
10869# Do we need the lib prefix for modules?
10870need_lib_prefix=$need_lib_prefix
10871
10872# Do we need a version for libraries?
10873need_version=$need_version
10874
10875# Whether dlopen is supported.
10876dlopen_support=$enable_dlopen
10877
10878# Whether dlopen of programs is supported.
10879dlopen_self=$enable_dlopen_self
10880
10881# Whether dlopen of statically linked programs is supported.
10882dlopen_self_static=$enable_dlopen_self_static
10883
10884# Compiler flag to prevent dynamic linking.
10885link_static_flag=$lt_lt_prog_compiler_static
10886
10887# Compiler flag to turn off builtin functions.
10888no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10889
10890# Compiler flag to allow reflexive dlopens.
10891export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10892
10893# Compiler flag to generate shared objects directly from archives.
10894whole_archive_flag_spec=$lt_whole_archive_flag_spec
10895
10896# Compiler flag to generate thread-safe objects.
10897thread_safe_flag_spec=$lt_thread_safe_flag_spec
10898
10899# Library versioning type.
10900version_type=$version_type
10901
10902# Format of library name prefix.
10903libname_spec=$lt_libname_spec
10904
10905# List of archive names.  First name is the real one, the rest are links.
10906# The last name is the one that the linker finds with -lNAME.
10907library_names_spec=$lt_library_names_spec
10908
10909# The coded name of the library, if different from the real name.
10910soname_spec=$lt_soname_spec
10911
10912# Commands used to build and install an old-style archive.
10913RANLIB=$lt_RANLIB
10914old_archive_cmds=$lt_old_archive_cmds
10915old_postinstall_cmds=$lt_old_postinstall_cmds
10916old_postuninstall_cmds=$lt_old_postuninstall_cmds
10917
10918# Create an old-style archive from a shared archive.
10919old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10920
10921# Create a temporary old-style archive to link instead of a shared archive.
10922old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10923
10924# Commands used to build and install a shared archive.
10925archive_cmds=$lt_archive_cmds
10926archive_expsym_cmds=$lt_archive_expsym_cmds
10927postinstall_cmds=$lt_postinstall_cmds
10928postuninstall_cmds=$lt_postuninstall_cmds
10929
10930# Commands used to build a loadable module (assumed same as above if empty)
10931module_cmds=$lt_module_cmds
10932module_expsym_cmds=$lt_module_expsym_cmds
10933
10934# Commands to strip libraries.
10935old_striplib=$lt_old_striplib
10936striplib=$lt_striplib
10937
10938# Dependencies to place before the objects being linked to create a
10939# shared library.
10940predep_objects=$lt_predep_objects
10941
10942# Dependencies to place after the objects being linked to create a
10943# shared library.
10944postdep_objects=$lt_postdep_objects
10945
10946# Dependencies to place before the objects being linked to create a
10947# shared library.
10948predeps=$lt_predeps
10949
10950# Dependencies to place after the objects being linked to create a
10951# shared library.
10952postdeps=$lt_postdeps
10953
10954# The library search path used internally by the compiler when linking
10955# a shared library.
10956compiler_lib_search_path=$lt_compiler_lib_search_path
10957
10958# Method to check whether dependent libraries are shared objects.
10959deplibs_check_method=$lt_deplibs_check_method
10960
10961# Command to use when deplibs_check_method == file_magic.
10962file_magic_cmd=$lt_file_magic_cmd
10963
10964# Flag that allows shared libraries with undefined symbols to be built.
10965allow_undefined_flag=$lt_allow_undefined_flag
10966
10967# Flag that forces no undefined symbols.
10968no_undefined_flag=$lt_no_undefined_flag
10969
10970# Commands used to finish a libtool library installation in a directory.
10971finish_cmds=$lt_finish_cmds
10972
10973# Same as above, but a single script fragment to be evaled but not shown.
10974finish_eval=$lt_finish_eval
10975
10976# Take the output of nm and produce a listing of raw symbols and C names.
10977global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10978
10979# Transform the output of nm in a proper C declaration
10980global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10981
10982# Transform the output of nm in a C name address pair
10983global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10984
10985# This is the shared library runtime path variable.
10986runpath_var=$runpath_var
10987
10988# This is the shared library path variable.
10989shlibpath_var=$shlibpath_var
10990
10991# Is shlibpath searched before the hard-coded library search path?
10992shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10993
10994# How to hardcode a shared library path into an executable.
10995hardcode_action=$hardcode_action
10996
10997# Whether we should hardcode library paths into libraries.
10998hardcode_into_libs=$hardcode_into_libs
10999
11000# Flag to hardcode \$libdir into a binary during linking.
11001# This must work even if \$libdir does not exist.
11002hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11003
11004# If ld is used when linking, flag to hardcode \$libdir into
11005# a binary during linking. This must work even if \$libdir does
11006# not exist.
11007hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11008
11009# Whether we need a single -rpath flag with a separated argument.
11010hardcode_libdir_separator=$lt_hardcode_libdir_separator
11011
11012# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11013# resulting binary.
11014hardcode_direct=$hardcode_direct
11015
11016# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11017# resulting binary.
11018hardcode_minus_L=$hardcode_minus_L
11019
11020# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11021# the resulting binary.
11022hardcode_shlibpath_var=$hardcode_shlibpath_var
11023
11024# Set to yes if building a shared library automatically hardcodes DIR into the library
11025# and all subsequent libraries and executables linked against it.
11026hardcode_automatic=$hardcode_automatic
11027
11028# Variables whose values should be saved in libtool wrapper scripts and
11029# restored at relink time.
11030variables_saved_for_relink="$variables_saved_for_relink"
11031
11032# Whether libtool must link a program against all its dependency libraries.
11033link_all_deplibs=$link_all_deplibs
11034
11035# Compile-time system search path for libraries
11036sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11037
11038# Run-time system search path for libraries
11039sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11040
11041# Fix the shell variable \$srcfile for the compiler.
11042fix_srcfile_path="$fix_srcfile_path"
11043
11044# Set to yes if exported symbols are required.
11045always_export_symbols=$always_export_symbols
11046
11047# The commands to list exported symbols.
11048export_symbols_cmds=$lt_export_symbols_cmds
11049
11050# The commands to extract the exported symbol list from a shared archive.
11051extract_expsyms_cmds=$lt_extract_expsyms_cmds
11052
11053# Symbols that should not be listed in the preloaded symbols.
11054exclude_expsyms=$lt_exclude_expsyms
11055
11056# Symbols that must always be exported.
11057include_expsyms=$lt_include_expsyms
11058
11059# ### END LIBTOOL CONFIG
11060
11061__EOF__
11062
11063
11064  case $host_os in
11065  aix3*)
11066    cat <<\EOF >> "$cfgfile"
11067
11068# AIX sometimes has problems with the GCC collect2 program.  For some
11069# reason, if we set the COLLECT_NAMES environment variable, the problems
11070# vanish in a puff of smoke.
11071if test "X${COLLECT_NAMES+set}" != Xset; then
11072  COLLECT_NAMES=
11073  export COLLECT_NAMES
11074fi
11075EOF
11076    ;;
11077  esac
11078
11079  # We use sed instead of cat because bash on DJGPP gets confused if
11080  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11081  # text mode, it properly converts lines to CR/LF.  This bash problem
11082  # is reportedly fixed, but why not run on old versions too?
11083  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11084
11085  mv -f "$cfgfile" "$ofile" || \
11086    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11087  chmod +x "$ofile"
11088
11089else
11090  # If there is no Makefile yet, we rely on a make rule to execute
11091  # `config.status --recheck' to rerun these tests and create the
11092  # libtool script then.
11093  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11094  if test -f "$ltmain_in"; then
11095    test -f Makefile && make "$ltmain"
11096  fi
11097fi
11098
11099
11100ac_ext=c
11101ac_cpp='$CPP $CPPFLAGS'
11102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11104ac_compiler_gnu=$ac_cv_c_compiler_gnu
11105
11106CC="$lt_save_CC"
11107
11108
11109# Check whether --with-tags was given.
11110if test "${with_tags+set}" = set; then
11111  withval=$with_tags; tagnames="$withval"
11112fi
11113
11114
11115if test -f "$ltmain" && test -n "$tagnames"; then
11116  if test ! -f "${ofile}"; then
11117    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11118echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11119  fi
11120
11121  if test -z "$LTCC"; then
11122    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11123    if test -z "$LTCC"; then
11124      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11125echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11126    else
11127      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11128echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11129    fi
11130  fi
11131  if test -z "$LTCFLAGS"; then
11132    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11133  fi
11134
11135  # Extract list of available tagged configurations in $ofile.
11136  # Note that this assumes the entire list is on one line.
11137  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11138
11139  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11140  for tagname in $tagnames; do
11141    IFS="$lt_save_ifs"
11142    # Check whether tagname contains only valid characters
11143    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11144    "") ;;
11145    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11146echo "$as_me: error: invalid tag name: $tagname" >&2;}
11147   { (exit 1); exit 1; }; }
11148	;;
11149    esac
11150
11151    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11152    then
11153      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11154echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11155   { (exit 1); exit 1; }; }
11156    fi
11157
11158    # Update the list of available tags.
11159    if test -n "$tagname"; then
11160      echo appending configuration tag \"$tagname\" to $ofile
11161
11162      case $tagname in
11163      CXX)
11164	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11165	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11166	    (test "X$CXX" != "Xg++"))) ; then
11167	  ac_ext=cpp
11168ac_cpp='$CXXCPP $CPPFLAGS'
11169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11172
11173
11174
11175
11176archive_cmds_need_lc_CXX=no
11177allow_undefined_flag_CXX=
11178always_export_symbols_CXX=no
11179archive_expsym_cmds_CXX=
11180export_dynamic_flag_spec_CXX=
11181hardcode_direct_CXX=no
11182hardcode_libdir_flag_spec_CXX=
11183hardcode_libdir_flag_spec_ld_CXX=
11184hardcode_libdir_separator_CXX=
11185hardcode_minus_L_CXX=no
11186hardcode_shlibpath_var_CXX=unsupported
11187hardcode_automatic_CXX=no
11188module_cmds_CXX=
11189module_expsym_cmds_CXX=
11190link_all_deplibs_CXX=unknown
11191old_archive_cmds_CXX=$old_archive_cmds
11192no_undefined_flag_CXX=
11193whole_archive_flag_spec_CXX=
11194enable_shared_with_static_runtimes_CXX=no
11195
11196# Dependencies to place before and after the object being linked:
11197predep_objects_CXX=
11198postdep_objects_CXX=
11199predeps_CXX=
11200postdeps_CXX=
11201compiler_lib_search_path_CXX=
11202
11203# Source file extension for C++ test sources.
11204ac_ext=cpp
11205
11206# Object file extension for compiled C++ test sources.
11207objext=o
11208objext_CXX=$objext
11209
11210# Code to be used in simple compile tests
11211lt_simple_compile_test_code="int some_variable = 0;\n"
11212
11213# Code to be used in simple link tests
11214lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11215
11216# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11217
11218# If no C compiler was specified, use CC.
11219LTCC=${LTCC-"$CC"}
11220
11221# If no C compiler flags were specified, use CFLAGS.
11222LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11223
11224# Allow CC to be a program name with arguments.
11225compiler=$CC
11226
11227
11228# save warnings/boilerplate of simple test code
11229ac_outfile=conftest.$ac_objext
11230printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11231eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11232_lt_compiler_boilerplate=`cat conftest.err`
11233$rm conftest*
11234
11235ac_outfile=conftest.$ac_objext
11236printf "$lt_simple_link_test_code" >conftest.$ac_ext
11237eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11238_lt_linker_boilerplate=`cat conftest.err`
11239$rm conftest*
11240
11241
11242# Allow CC to be a program name with arguments.
11243lt_save_CC=$CC
11244lt_save_LD=$LD
11245lt_save_GCC=$GCC
11246GCC=$GXX
11247lt_save_with_gnu_ld=$with_gnu_ld
11248lt_save_path_LD=$lt_cv_path_LD
11249if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11250  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11251else
11252  $as_unset lt_cv_prog_gnu_ld
11253fi
11254if test -n "${lt_cv_path_LDCXX+set}"; then
11255  lt_cv_path_LD=$lt_cv_path_LDCXX
11256else
11257  $as_unset lt_cv_path_LD
11258fi
11259test -z "${LDCXX+set}" || LD=$LDCXX
11260CC=${CXX-"c++"}
11261compiler=$CC
11262compiler_CXX=$CC
11263for cc_temp in $compiler""; do
11264  case $cc_temp in
11265    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11266    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11267    \-*) ;;
11268    *) break;;
11269  esac
11270done
11271cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11272
11273
11274# We don't want -fno-exception wen compiling C++ code, so set the
11275# no_builtin_flag separately
11276if test "$GXX" = yes; then
11277  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11278else
11279  lt_prog_compiler_no_builtin_flag_CXX=
11280fi
11281
11282if test "$GXX" = yes; then
11283  # Set up default GNU C++ configuration
11284
11285
11286# Check whether --with-gnu-ld was given.
11287if test "${with_gnu_ld+set}" = set; then
11288  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11289else
11290  with_gnu_ld=no
11291fi
11292
11293ac_prog=ld
11294if test "$GCC" = yes; then
11295  # Check if gcc -print-prog-name=ld gives a path.
11296  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11297echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11298  case $host in
11299  *-*-mingw*)
11300    # gcc leaves a trailing carriage return which upsets mingw
11301    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11302  *)
11303    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11304  esac
11305  case $ac_prog in
11306    # Accept absolute paths.
11307    [\\/]* | ?:[\\/]*)
11308      re_direlt='/[^/][^/]*/\.\./'
11309      # Canonicalize the pathname of ld
11310      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11311      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11312	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11313      done
11314      test -z "$LD" && LD="$ac_prog"
11315      ;;
11316  "")
11317    # If it fails, then pretend we aren't using GCC.
11318    ac_prog=ld
11319    ;;
11320  *)
11321    # If it is relative, then search for the first ld in PATH.
11322    with_gnu_ld=unknown
11323    ;;
11324  esac
11325elif test "$with_gnu_ld" = yes; then
11326  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11327echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11328else
11329  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11330echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11331fi
11332if test "${lt_cv_path_LD+set}" = set; then
11333  echo $ECHO_N "(cached) $ECHO_C" >&6
11334else
11335  if test -z "$LD"; then
11336  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11337  for ac_dir in $PATH; do
11338    IFS="$lt_save_ifs"
11339    test -z "$ac_dir" && ac_dir=.
11340    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11341      lt_cv_path_LD="$ac_dir/$ac_prog"
11342      # Check to see if the program is GNU ld.  I'd rather use --version,
11343      # but apparently some variants of GNU ld only accept -v.
11344      # Break only if it was the GNU/non-GNU ld that we prefer.
11345      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11346      *GNU* | *'with BFD'*)
11347	test "$with_gnu_ld" != no && break
11348	;;
11349      *)
11350	test "$with_gnu_ld" != yes && break
11351	;;
11352      esac
11353    fi
11354  done
11355  IFS="$lt_save_ifs"
11356else
11357  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11358fi
11359fi
11360
11361LD="$lt_cv_path_LD"
11362if test -n "$LD"; then
11363  { echo "$as_me:$LINENO: result: $LD" >&5
11364echo "${ECHO_T}$LD" >&6; }
11365else
11366  { echo "$as_me:$LINENO: result: no" >&5
11367echo "${ECHO_T}no" >&6; }
11368fi
11369test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11370echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11371   { (exit 1); exit 1; }; }
11372{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11373echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11374if test "${lt_cv_prog_gnu_ld+set}" = set; then
11375  echo $ECHO_N "(cached) $ECHO_C" >&6
11376else
11377  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11378case `$LD -v 2>&1 </dev/null` in
11379*GNU* | *'with BFD'*)
11380  lt_cv_prog_gnu_ld=yes
11381  ;;
11382*)
11383  lt_cv_prog_gnu_ld=no
11384  ;;
11385esac
11386fi
11387{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11388echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11389with_gnu_ld=$lt_cv_prog_gnu_ld
11390
11391
11392
11393  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11394  # archiving commands below assume that GNU ld is being used.
11395  if test "$with_gnu_ld" = yes; then
11396    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11397    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11398
11399    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11400    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11401
11402    # If archive_cmds runs LD, not CC, wlarc should be empty
11403    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11404    #     investigate it a little bit more. (MM)
11405    wlarc='${wl}'
11406
11407    # ancient GNU ld didn't support --whole-archive et. al.
11408    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11409	grep 'no-whole-archive' > /dev/null; then
11410      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11411    else
11412      whole_archive_flag_spec_CXX=
11413    fi
11414  else
11415    with_gnu_ld=no
11416    wlarc=
11417
11418    # A generic and very simple default shared library creation
11419    # command for GNU C++ for the case where it uses the native
11420    # linker, instead of GNU ld.  If possible, this setting should
11421    # overridden to take advantage of the native linker features on
11422    # the platform it is being used on.
11423    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11424  fi
11425
11426  # Commands to make compiler produce verbose output that lists
11427  # what "hidden" libraries, object files and flags are used when
11428  # linking a shared library.
11429  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11430
11431else
11432  GXX=no
11433  with_gnu_ld=no
11434  wlarc=
11435fi
11436
11437# PORTME: fill in a description of your system's C++ link characteristics
11438{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11439echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11440ld_shlibs_CXX=yes
11441case $host_os in
11442  aix3*)
11443    # FIXME: insert proper C++ library support
11444    ld_shlibs_CXX=no
11445    ;;
11446  aix4* | aix5*)
11447    if test "$host_cpu" = ia64; then
11448      # On IA64, the linker does run time linking by default, so we don't
11449      # have to do anything special.
11450      aix_use_runtimelinking=no
11451      exp_sym_flag='-Bexport'
11452      no_entry_flag=""
11453    else
11454      aix_use_runtimelinking=no
11455
11456      # Test if we are trying to use run time linking or normal
11457      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11458      # need to do runtime linking.
11459      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11460	for ld_flag in $LDFLAGS; do
11461	  case $ld_flag in
11462	  *-brtl*)
11463	    aix_use_runtimelinking=yes
11464	    break
11465	    ;;
11466	  esac
11467	done
11468	;;
11469      esac
11470
11471      exp_sym_flag='-bexport'
11472      no_entry_flag='-bnoentry'
11473    fi
11474
11475    # When large executables or shared objects are built, AIX ld can
11476    # have problems creating the table of contents.  If linking a library
11477    # or program results in "error TOC overflow" add -mminimal-toc to
11478    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11479    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11480
11481    archive_cmds_CXX=''
11482    hardcode_direct_CXX=yes
11483    hardcode_libdir_separator_CXX=':'
11484    link_all_deplibs_CXX=yes
11485
11486    if test "$GXX" = yes; then
11487      case $host_os in aix4.[012]|aix4.[012].*)
11488      # We only want to do this on AIX 4.2 and lower, the check
11489      # below for broken collect2 doesn't work under 4.3+
11490	collect2name=`${CC} -print-prog-name=collect2`
11491	if test -f "$collect2name" && \
11492	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11493	then
11494	  # We have reworked collect2
11495	  hardcode_direct_CXX=yes
11496	else
11497	  # We have old collect2
11498	  hardcode_direct_CXX=unsupported
11499	  # It fails to find uninstalled libraries when the uninstalled
11500	  # path is not listed in the libpath.  Setting hardcode_minus_L
11501	  # to unsupported forces relinking
11502	  hardcode_minus_L_CXX=yes
11503	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11504	  hardcode_libdir_separator_CXX=
11505	fi
11506	;;
11507      esac
11508      shared_flag='-shared'
11509      if test "$aix_use_runtimelinking" = yes; then
11510	shared_flag="$shared_flag "'${wl}-G'
11511      fi
11512    else
11513      # not using gcc
11514      if test "$host_cpu" = ia64; then
11515	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11516	# chokes on -Wl,-G. The following line is correct:
11517	shared_flag='-G'
11518      else
11519	if test "$aix_use_runtimelinking" = yes; then
11520	  shared_flag='${wl}-G'
11521	else
11522	  shared_flag='${wl}-bM:SRE'
11523	fi
11524      fi
11525    fi
11526
11527    # It seems that -bexpall does not export symbols beginning with
11528    # underscore (_), so it is better to generate a list of symbols to export.
11529    always_export_symbols_CXX=yes
11530    if test "$aix_use_runtimelinking" = yes; then
11531      # Warning - without using the other runtime loading flags (-brtl),
11532      # -berok will link without error, but may produce a broken library.
11533      allow_undefined_flag_CXX='-berok'
11534      # Determine the default libpath from the value encoded in an empty executable.
11535      cat >conftest.$ac_ext <<_ACEOF
11536/* confdefs.h.  */
11537_ACEOF
11538cat confdefs.h >>conftest.$ac_ext
11539cat >>conftest.$ac_ext <<_ACEOF
11540/* end confdefs.h.  */
11541
11542int
11543main ()
11544{
11545
11546  ;
11547  return 0;
11548}
11549_ACEOF
11550rm -f conftest.$ac_objext conftest$ac_exeext
11551if { (ac_try="$ac_link"
11552case "(($ac_try" in
11553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554  *) ac_try_echo=$ac_try;;
11555esac
11556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557  (eval "$ac_link") 2>conftest.er1
11558  ac_status=$?
11559  grep -v '^ *+' conftest.er1 >conftest.err
11560  rm -f conftest.er1
11561  cat conftest.err >&5
11562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563  (exit $ac_status); } &&
11564	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11565  { (case "(($ac_try" in
11566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567  *) ac_try_echo=$ac_try;;
11568esac
11569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11570  (eval "$ac_try") 2>&5
11571  ac_status=$?
11572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573  (exit $ac_status); }; } &&
11574	 { ac_try='test -s conftest$ac_exeext'
11575  { (case "(($ac_try" in
11576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577  *) ac_try_echo=$ac_try;;
11578esac
11579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580  (eval "$ac_try") 2>&5
11581  ac_status=$?
11582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583  (exit $ac_status); }; }; then
11584
11585aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11586}'`
11587# Check for a 64-bit object if we didn't find anything.
11588if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11589}'`; fi
11590else
11591  echo "$as_me: failed program was:" >&5
11592sed 's/^/| /' conftest.$ac_ext >&5
11593
11594
11595fi
11596
11597rm -f core conftest.err conftest.$ac_objext \
11598      conftest$ac_exeext conftest.$ac_ext
11599if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11600
11601      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11602
11603      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11604     else
11605      if test "$host_cpu" = ia64; then
11606	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11607	allow_undefined_flag_CXX="-z nodefs"
11608	archive_expsym_cmds_CXX="\$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"
11609      else
11610	# Determine the default libpath from the value encoded in an empty executable.
11611	cat >conftest.$ac_ext <<_ACEOF
11612/* confdefs.h.  */
11613_ACEOF
11614cat confdefs.h >>conftest.$ac_ext
11615cat >>conftest.$ac_ext <<_ACEOF
11616/* end confdefs.h.  */
11617
11618int
11619main ()
11620{
11621
11622  ;
11623  return 0;
11624}
11625_ACEOF
11626rm -f conftest.$ac_objext conftest$ac_exeext
11627if { (ac_try="$ac_link"
11628case "(($ac_try" in
11629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630  *) ac_try_echo=$ac_try;;
11631esac
11632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633  (eval "$ac_link") 2>conftest.er1
11634  ac_status=$?
11635  grep -v '^ *+' conftest.er1 >conftest.err
11636  rm -f conftest.er1
11637  cat conftest.err >&5
11638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639  (exit $ac_status); } &&
11640	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11641  { (case "(($ac_try" in
11642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643  *) ac_try_echo=$ac_try;;
11644esac
11645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11646  (eval "$ac_try") 2>&5
11647  ac_status=$?
11648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649  (exit $ac_status); }; } &&
11650	 { ac_try='test -s conftest$ac_exeext'
11651  { (case "(($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_try") 2>&5
11657  ac_status=$?
11658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659  (exit $ac_status); }; }; then
11660
11661aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11662}'`
11663# Check for a 64-bit object if we didn't find anything.
11664if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11665}'`; fi
11666else
11667  echo "$as_me: failed program was:" >&5
11668sed 's/^/| /' conftest.$ac_ext >&5
11669
11670
11671fi
11672
11673rm -f core conftest.err conftest.$ac_objext \
11674      conftest$ac_exeext conftest.$ac_ext
11675if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11676
11677	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11678	# Warning - without using the other run time loading flags,
11679	# -berok will link without error, but may produce a broken library.
11680	no_undefined_flag_CXX=' ${wl}-bernotok'
11681	allow_undefined_flag_CXX=' ${wl}-berok'
11682	# Exported symbols can be pulled into shared objects from archives
11683	whole_archive_flag_spec_CXX='$convenience'
11684	archive_cmds_need_lc_CXX=yes
11685	# This is similar to how AIX traditionally builds its shared libraries.
11686	archive_expsym_cmds_CXX="\$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'
11687      fi
11688    fi
11689    ;;
11690
11691  beos*)
11692    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11693      allow_undefined_flag_CXX=unsupported
11694      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11695      # support --undefined.  This deserves some investigation.  FIXME
11696      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11697    else
11698      ld_shlibs_CXX=no
11699    fi
11700    ;;
11701
11702  chorus*)
11703    case $cc_basename in
11704      *)
11705	# FIXME: insert proper C++ library support
11706	ld_shlibs_CXX=no
11707	;;
11708    esac
11709    ;;
11710
11711  cygwin* | mingw* | pw32*)
11712    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11713    # as there is no search path for DLLs.
11714    hardcode_libdir_flag_spec_CXX='-L$libdir'
11715    allow_undefined_flag_CXX=unsupported
11716    always_export_symbols_CXX=no
11717    enable_shared_with_static_runtimes_CXX=yes
11718
11719    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11720      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11721      # If the export-symbols file already is a .def file (1st line
11722      # is EXPORTS), use it as is; otherwise, prepend...
11723      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11724	cp $export_symbols $output_objdir/$soname.def;
11725      else
11726	echo EXPORTS > $output_objdir/$soname.def;
11727	cat $export_symbols >> $output_objdir/$soname.def;
11728      fi~
11729      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11730    else
11731      ld_shlibs_CXX=no
11732    fi
11733  ;;
11734      darwin* | rhapsody*)
11735        case $host_os in
11736        rhapsody* | darwin1.[012])
11737         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11738         ;;
11739       *) # Darwin 1.3 on
11740         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11741           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11742         else
11743           case ${MACOSX_DEPLOYMENT_TARGET} in
11744             10.[012])
11745               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11746               ;;
11747             10.*)
11748               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11749               ;;
11750           esac
11751         fi
11752         ;;
11753        esac
11754      archive_cmds_need_lc_CXX=no
11755      hardcode_direct_CXX=no
11756      hardcode_automatic_CXX=yes
11757      hardcode_shlibpath_var_CXX=unsupported
11758      whole_archive_flag_spec_CXX=''
11759      link_all_deplibs_CXX=yes
11760
11761    if test "$GXX" = yes ; then
11762      lt_int_apple_cc_single_mod=no
11763      output_verbose_link_cmd='echo'
11764      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11765       lt_int_apple_cc_single_mod=yes
11766      fi
11767      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11768       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11769      else
11770          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11771        fi
11772        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11773        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11774          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11775            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11776          else
11777            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11778          fi
11779            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11780      else
11781      case $cc_basename in
11782        xlc*)
11783         output_verbose_link_cmd='echo'
11784          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11785          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11786          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11787          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11788          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11789          ;;
11790       *)
11791         ld_shlibs_CXX=no
11792          ;;
11793      esac
11794      fi
11795        ;;
11796
11797  dgux*)
11798    case $cc_basename in
11799      ec++*)
11800	# FIXME: insert proper C++ library support
11801	ld_shlibs_CXX=no
11802	;;
11803      ghcx*)
11804	# Green Hills C++ Compiler
11805	# FIXME: insert proper C++ library support
11806	ld_shlibs_CXX=no
11807	;;
11808      *)
11809	# FIXME: insert proper C++ library support
11810	ld_shlibs_CXX=no
11811	;;
11812    esac
11813    ;;
11814  freebsd[12]*)
11815    # C++ shared libraries reported to be fairly broken before switch to ELF
11816    ld_shlibs_CXX=no
11817    ;;
11818  freebsd-elf*)
11819    archive_cmds_need_lc_CXX=no
11820    ;;
11821  freebsd* | kfreebsd*-gnu | dragonfly*)
11822    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11823    # conventions
11824    ld_shlibs_CXX=yes
11825    ;;
11826  gnu*)
11827    ;;
11828  hpux9*)
11829    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11830    hardcode_libdir_separator_CXX=:
11831    export_dynamic_flag_spec_CXX='${wl}-E'
11832    hardcode_direct_CXX=yes
11833    hardcode_minus_L_CXX=yes # Not in the search PATH,
11834				# but as the default
11835				# location of the library.
11836
11837    case $cc_basename in
11838    CC*)
11839      # FIXME: insert proper C++ library support
11840      ld_shlibs_CXX=no
11841      ;;
11842    aCC*)
11843      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11844      # Commands to make compiler produce verbose output that lists
11845      # what "hidden" libraries, object files and flags are used when
11846      # linking a shared library.
11847      #
11848      # There doesn't appear to be a way to prevent this compiler from
11849      # explicitly linking system object files so we need to strip them
11850      # from the output so that they don't get included in the library
11851      # dependencies.
11852      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11853      ;;
11854    *)
11855      if test "$GXX" = yes; then
11856        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11857      else
11858        # FIXME: insert proper C++ library support
11859        ld_shlibs_CXX=no
11860      fi
11861      ;;
11862    esac
11863    ;;
11864  hpux10*|hpux11*)
11865    if test $with_gnu_ld = no; then
11866      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11867      hardcode_libdir_separator_CXX=:
11868
11869      case $host_cpu in
11870      hppa*64*|ia64*)
11871	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11872        ;;
11873      *)
11874	export_dynamic_flag_spec_CXX='${wl}-E'
11875        ;;
11876      esac
11877    fi
11878    case $host_cpu in
11879    hppa*64*|ia64*)
11880      hardcode_direct_CXX=no
11881      hardcode_shlibpath_var_CXX=no
11882      ;;
11883    *)
11884      hardcode_direct_CXX=yes
11885      hardcode_minus_L_CXX=yes # Not in the search PATH,
11886					      # but as the default
11887					      # location of the library.
11888      ;;
11889    esac
11890
11891    case $cc_basename in
11892      CC*)
11893	# FIXME: insert proper C++ library support
11894	ld_shlibs_CXX=no
11895	;;
11896      aCC*)
11897	case $host_cpu in
11898	hppa*64*)
11899	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11900	  ;;
11901	ia64*)
11902	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11903	  ;;
11904	*)
11905	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11906	  ;;
11907	esac
11908	# Commands to make compiler produce verbose output that lists
11909	# what "hidden" libraries, object files and flags are used when
11910	# linking a shared library.
11911	#
11912	# There doesn't appear to be a way to prevent this compiler from
11913	# explicitly linking system object files so we need to strip them
11914	# from the output so that they don't get included in the library
11915	# dependencies.
11916	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11917	;;
11918      *)
11919	if test "$GXX" = yes; then
11920	  if test $with_gnu_ld = no; then
11921	    case $host_cpu in
11922	    hppa*64*)
11923	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11924	      ;;
11925	    ia64*)
11926	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11927	      ;;
11928	    *)
11929	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11930	      ;;
11931	    esac
11932	  fi
11933	else
11934	  # FIXME: insert proper C++ library support
11935	  ld_shlibs_CXX=no
11936	fi
11937	;;
11938    esac
11939    ;;
11940  interix3*)
11941    hardcode_direct_CXX=no
11942    hardcode_shlibpath_var_CXX=no
11943    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11944    export_dynamic_flag_spec_CXX='${wl}-E'
11945    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11946    # Instead, shared libraries are loaded at an image base (0x10000000 by
11947    # default) and relocated if they conflict, which is a slow very memory
11948    # consuming and fragmenting process.  To avoid this, we pick a random,
11949    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11950    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11951    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11952    archive_expsym_cmds_CXX='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'
11953    ;;
11954  irix5* | irix6*)
11955    case $cc_basename in
11956      CC*)
11957	# SGI C++
11958	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11959
11960	# Archives containing C++ object files must be created using
11961	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11962	# necessary to make sure instantiated templates are included
11963	# in the archive.
11964	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11965	;;
11966      *)
11967	if test "$GXX" = yes; then
11968	  if test "$with_gnu_ld" = no; then
11969	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11970	  else
11971	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11972	  fi
11973	fi
11974	link_all_deplibs_CXX=yes
11975	;;
11976    esac
11977    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11978    hardcode_libdir_separator_CXX=:
11979    ;;
11980  linux*)
11981    case $cc_basename in
11982      KCC*)
11983	# Kuck and Associates, Inc. (KAI) C++ Compiler
11984
11985	# KCC will only create a shared library if the output file
11986	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11987	# to its proper name (with version) after linking.
11988	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11989	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11990	# Commands to make compiler produce verbose output that lists
11991	# what "hidden" libraries, object files and flags are used when
11992	# linking a shared library.
11993	#
11994	# There doesn't appear to be a way to prevent this compiler from
11995	# explicitly linking system object files so we need to strip them
11996	# from the output so that they don't get included in the library
11997	# dependencies.
11998	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11999
12000	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12001	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12002
12003	# Archives containing C++ object files must be created using
12004	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12005	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12006	;;
12007      icpc*)
12008	# Intel C++
12009	with_gnu_ld=yes
12010	# version 8.0 and above of icpc choke on multiply defined symbols
12011	# if we add $predep_objects and $postdep_objects, however 7.1 and
12012	# earlier do not add the objects themselves.
12013	case `$CC -V 2>&1` in
12014	*"Version 7."*)
12015  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12016  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12017	  ;;
12018	*)  # Version 8.0 or newer
12019	  tmp_idyn=
12020	  case $host_cpu in
12021	    ia64*) tmp_idyn=' -i_dynamic';;
12022	  esac
12023  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12024	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12025	  ;;
12026	esac
12027	archive_cmds_need_lc_CXX=no
12028	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12029	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12030	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12031	;;
12032      pgCC*)
12033        # Portland Group C++ compiler
12034	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12035  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12036
12037	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12038	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12039	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12040        ;;
12041      cxx*)
12042	# Compaq C++
12043	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12044	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12045
12046	runpath_var=LD_RUN_PATH
12047	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12048	hardcode_libdir_separator_CXX=:
12049
12050	# Commands to make compiler produce verbose output that lists
12051	# what "hidden" libraries, object files and flags are used when
12052	# linking a shared library.
12053	#
12054	# There doesn't appear to be a way to prevent this compiler from
12055	# explicitly linking system object files so we need to strip them
12056	# from the output so that they don't get included in the library
12057	# dependencies.
12058	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12059	;;
12060    esac
12061    ;;
12062  lynxos*)
12063    # FIXME: insert proper C++ library support
12064    ld_shlibs_CXX=no
12065    ;;
12066  m88k*)
12067    # FIXME: insert proper C++ library support
12068    ld_shlibs_CXX=no
12069    ;;
12070  mvs*)
12071    case $cc_basename in
12072      cxx*)
12073	# FIXME: insert proper C++ library support
12074	ld_shlibs_CXX=no
12075	;;
12076      *)
12077	# FIXME: insert proper C++ library support
12078	ld_shlibs_CXX=no
12079	;;
12080    esac
12081    ;;
12082  netbsd*)
12083    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12084      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12085      wlarc=
12086      hardcode_libdir_flag_spec_CXX='-R$libdir'
12087      hardcode_direct_CXX=yes
12088      hardcode_shlibpath_var_CXX=no
12089    fi
12090    # Workaround some broken pre-1.5 toolchains
12091    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12092    ;;
12093  openbsd2*)
12094    # C++ shared libraries are fairly broken
12095    ld_shlibs_CXX=no
12096    ;;
12097  openbsd*)
12098    hardcode_direct_CXX=yes
12099    hardcode_shlibpath_var_CXX=no
12100    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12101    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12102    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12103      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12104      export_dynamic_flag_spec_CXX='${wl}-E'
12105      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12106    fi
12107    output_verbose_link_cmd='echo'
12108    ;;
12109  osf3*)
12110    case $cc_basename in
12111      KCC*)
12112	# Kuck and Associates, Inc. (KAI) C++ Compiler
12113
12114	# KCC will only create a shared library if the output file
12115	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12116	# to its proper name (with version) after linking.
12117	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12118
12119	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12120	hardcode_libdir_separator_CXX=:
12121
12122	# Archives containing C++ object files must be created using
12123	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12124	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12125
12126	;;
12127      RCC*)
12128	# Rational C++ 2.4.1
12129	# FIXME: insert proper C++ library support
12130	ld_shlibs_CXX=no
12131	;;
12132      cxx*)
12133	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12134	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12135
12136	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12137	hardcode_libdir_separator_CXX=:
12138
12139	# Commands to make compiler produce verbose output that lists
12140	# what "hidden" libraries, object files and flags are used when
12141	# linking a shared library.
12142	#
12143	# There doesn't appear to be a way to prevent this compiler from
12144	# explicitly linking system object files so we need to strip them
12145	# from the output so that they don't get included in the library
12146	# dependencies.
12147	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12148	;;
12149      *)
12150	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12151	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12152	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12153
12154	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12155	  hardcode_libdir_separator_CXX=:
12156
12157	  # Commands to make compiler produce verbose output that lists
12158	  # what "hidden" libraries, object files and flags are used when
12159	  # linking a shared library.
12160	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12161
12162	else
12163	  # FIXME: insert proper C++ library support
12164	  ld_shlibs_CXX=no
12165	fi
12166	;;
12167    esac
12168    ;;
12169  osf4* | osf5*)
12170    case $cc_basename in
12171      KCC*)
12172	# Kuck and Associates, Inc. (KAI) C++ Compiler
12173
12174	# KCC will only create a shared library if the output file
12175	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12176	# to its proper name (with version) after linking.
12177	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12178
12179	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12180	hardcode_libdir_separator_CXX=:
12181
12182	# Archives containing C++ object files must be created using
12183	# the KAI C++ compiler.
12184	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12185	;;
12186      RCC*)
12187	# Rational C++ 2.4.1
12188	# FIXME: insert proper C++ library support
12189	ld_shlibs_CXX=no
12190	;;
12191      cxx*)
12192	allow_undefined_flag_CXX=' -expect_unresolved \*'
12193	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12194	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12195	  echo "-hidden">> $lib.exp~
12196	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12197	  $rm $lib.exp'
12198
12199	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12200	hardcode_libdir_separator_CXX=:
12201
12202	# Commands to make compiler produce verbose output that lists
12203	# what "hidden" libraries, object files and flags are used when
12204	# linking a shared library.
12205	#
12206	# There doesn't appear to be a way to prevent this compiler from
12207	# explicitly linking system object files so we need to strip them
12208	# from the output so that they don't get included in the library
12209	# dependencies.
12210	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12211	;;
12212      *)
12213	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12214	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12215	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12216
12217	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12218	  hardcode_libdir_separator_CXX=:
12219
12220	  # Commands to make compiler produce verbose output that lists
12221	  # what "hidden" libraries, object files and flags are used when
12222	  # linking a shared library.
12223	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12224
12225	else
12226	  # FIXME: insert proper C++ library support
12227	  ld_shlibs_CXX=no
12228	fi
12229	;;
12230    esac
12231    ;;
12232  psos*)
12233    # FIXME: insert proper C++ library support
12234    ld_shlibs_CXX=no
12235    ;;
12236  sunos4*)
12237    case $cc_basename in
12238      CC*)
12239	# Sun C++ 4.x
12240	# FIXME: insert proper C++ library support
12241	ld_shlibs_CXX=no
12242	;;
12243      lcc*)
12244	# Lucid
12245	# FIXME: insert proper C++ library support
12246	ld_shlibs_CXX=no
12247	;;
12248      *)
12249	# FIXME: insert proper C++ library support
12250	ld_shlibs_CXX=no
12251	;;
12252    esac
12253    ;;
12254  solaris*)
12255    case $cc_basename in
12256      CC*)
12257	# Sun C++ 4.2, 5.x and Centerline C++
12258        archive_cmds_need_lc_CXX=yes
12259	no_undefined_flag_CXX=' -zdefs'
12260	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12261	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12262	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12263
12264	hardcode_libdir_flag_spec_CXX='-R$libdir'
12265	hardcode_shlibpath_var_CXX=no
12266	case $host_os in
12267	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12268	  *)
12269	    # The C++ compiler is used as linker so we must use $wl
12270	    # flag to pass the commands to the underlying system
12271	    # linker. We must also pass each convience library through
12272	    # to the system linker between allextract/defaultextract.
12273	    # The C++ compiler will combine linker options so we
12274	    # cannot just pass the convience library names through
12275	    # without $wl.
12276	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12277	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12278	    ;;
12279	esac
12280	link_all_deplibs_CXX=yes
12281
12282	output_verbose_link_cmd='echo'
12283
12284	# Archives containing C++ object files must be created using
12285	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12286	# necessary to make sure instantiated templates are included
12287	# in the archive.
12288	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12289	;;
12290      gcx*)
12291	# Green Hills C++ Compiler
12292	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12293
12294	# The C++ compiler must be used to create the archive.
12295	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12296	;;
12297      *)
12298	# GNU C++ compiler with Solaris linker
12299	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12300	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12301	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12302	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12303	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12304		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12305
12306	    # Commands to make compiler produce verbose output that lists
12307	    # what "hidden" libraries, object files and flags are used when
12308	    # linking a shared library.
12309	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12310	  else
12311	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12312	    # platform.
12313	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12314	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12315		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12316
12317	    # Commands to make compiler produce verbose output that lists
12318	    # what "hidden" libraries, object files and flags are used when
12319	    # linking a shared library.
12320	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12321	  fi
12322
12323	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12324	fi
12325	;;
12326    esac
12327    ;;
12328  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12329    no_undefined_flag_CXX='${wl}-z,text'
12330    archive_cmds_need_lc_CXX=no
12331    hardcode_shlibpath_var_CXX=no
12332    runpath_var='LD_RUN_PATH'
12333
12334    case $cc_basename in
12335      CC*)
12336	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12337	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12338	;;
12339      *)
12340	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12341	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12342	;;
12343    esac
12344    ;;
12345  sysv5* | sco3.2v5* | sco5v6*)
12346    # Note: We can NOT use -z defs as we might desire, because we do not
12347    # link with -lc, and that would cause any symbols used from libc to
12348    # always be unresolved, which means just about no library would
12349    # ever link correctly.  If we're not using GNU ld we use -z text
12350    # though, which does catch some bad symbols but isn't as heavy-handed
12351    # as -z defs.
12352    # For security reasons, it is highly recommended that you always
12353    # use absolute paths for naming shared libraries, and exclude the
12354    # DT_RUNPATH tag from executables and libraries.  But doing so
12355    # requires that you compile everything twice, which is a pain.
12356    # So that behaviour is only enabled if SCOABSPATH is set to a
12357    # non-empty value in the environment.  Most likely only useful for
12358    # creating official distributions of packages.
12359    # This is a hack until libtool officially supports absolute path
12360    # names for shared libraries.
12361    no_undefined_flag_CXX='${wl}-z,text'
12362    allow_undefined_flag_CXX='${wl}-z,nodefs'
12363    archive_cmds_need_lc_CXX=no
12364    hardcode_shlibpath_var_CXX=no
12365    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12366    hardcode_libdir_separator_CXX=':'
12367    link_all_deplibs_CXX=yes
12368    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12369    runpath_var='LD_RUN_PATH'
12370
12371    case $cc_basename in
12372      CC*)
12373	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12374	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12375	;;
12376      *)
12377	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12378	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12379	;;
12380    esac
12381    ;;
12382  tandem*)
12383    case $cc_basename in
12384      NCC*)
12385	# NonStop-UX NCC 3.20
12386	# FIXME: insert proper C++ library support
12387	ld_shlibs_CXX=no
12388	;;
12389      *)
12390	# FIXME: insert proper C++ library support
12391	ld_shlibs_CXX=no
12392	;;
12393    esac
12394    ;;
12395  vxworks*)
12396    # FIXME: insert proper C++ library support
12397    ld_shlibs_CXX=no
12398    ;;
12399  *)
12400    # FIXME: insert proper C++ library support
12401    ld_shlibs_CXX=no
12402    ;;
12403esac
12404{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12405echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12406test "$ld_shlibs_CXX" = no && can_build_shared=no
12407
12408GCC_CXX="$GXX"
12409LD_CXX="$LD"
12410
12411
12412cat > conftest.$ac_ext <<EOF
12413class Foo
12414{
12415public:
12416  Foo (void) { a = 0; }
12417private:
12418  int a;
12419};
12420EOF
12421
12422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12423  (eval $ac_compile) 2>&5
12424  ac_status=$?
12425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426  (exit $ac_status); }; then
12427  # Parse the compiler output and extract the necessary
12428  # objects, libraries and library flags.
12429
12430  # Sentinel used to keep track of whether or not we are before
12431  # the conftest object file.
12432  pre_test_object_deps_done=no
12433
12434  # The `*' in the case matches for architectures that use `case' in
12435  # $output_verbose_cmd can trigger glob expansion during the loop
12436  # eval without this substitution.
12437  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12438
12439  for p in `eval $output_verbose_link_cmd`; do
12440    case $p in
12441
12442    -L* | -R* | -l*)
12443       # Some compilers place space between "-{L,R}" and the path.
12444       # Remove the space.
12445       if test $p = "-L" \
12446	  || test $p = "-R"; then
12447	 prev=$p
12448	 continue
12449       else
12450	 prev=
12451       fi
12452
12453       if test "$pre_test_object_deps_done" = no; then
12454	 case $p in
12455	 -L* | -R*)
12456	   # Internal compiler library paths should come after those
12457	   # provided the user.  The postdeps already come after the
12458	   # user supplied libs so there is no need to process them.
12459	   if test -z "$compiler_lib_search_path_CXX"; then
12460	     compiler_lib_search_path_CXX="${prev}${p}"
12461	   else
12462	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12463	   fi
12464	   ;;
12465	 # The "-l" case would never come before the object being
12466	 # linked, so don't bother handling this case.
12467	 esac
12468       else
12469	 if test -z "$postdeps_CXX"; then
12470	   postdeps_CXX="${prev}${p}"
12471	 else
12472	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12473	 fi
12474       fi
12475       ;;
12476
12477    *.$objext)
12478       # This assumes that the test object file only shows up
12479       # once in the compiler output.
12480       if test "$p" = "conftest.$objext"; then
12481	 pre_test_object_deps_done=yes
12482	 continue
12483       fi
12484
12485       if test "$pre_test_object_deps_done" = no; then
12486	 if test -z "$predep_objects_CXX"; then
12487	   predep_objects_CXX="$p"
12488	 else
12489	   predep_objects_CXX="$predep_objects_CXX $p"
12490	 fi
12491       else
12492	 if test -z "$postdep_objects_CXX"; then
12493	   postdep_objects_CXX="$p"
12494	 else
12495	   postdep_objects_CXX="$postdep_objects_CXX $p"
12496	 fi
12497       fi
12498       ;;
12499
12500    *) ;; # Ignore the rest.
12501
12502    esac
12503  done
12504
12505  # Clean up.
12506  rm -f a.out a.exe
12507else
12508  echo "libtool.m4: error: problem compiling CXX test program"
12509fi
12510
12511$rm -f confest.$objext
12512
12513# PORTME: override above test on systems where it is broken
12514case $host_os in
12515interix3*)
12516  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12517  # hack all around it, let's just trust "g++" to DTRT.
12518  predep_objects_CXX=
12519  postdep_objects_CXX=
12520  postdeps_CXX=
12521  ;;
12522
12523solaris*)
12524  case $cc_basename in
12525  CC*)
12526    # Adding this requires a known-good setup of shared libraries for
12527    # Sun compiler versions before 5.6, else PIC objects from an old
12528    # archive will be linked into the output, leading to subtle bugs.
12529    postdeps_CXX='-lCstd -lCrun'
12530    ;;
12531  esac
12532  ;;
12533esac
12534
12535
12536case " $postdeps_CXX " in
12537*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12538esac
12539
12540lt_prog_compiler_wl_CXX=
12541lt_prog_compiler_pic_CXX=
12542lt_prog_compiler_static_CXX=
12543
12544{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12545echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12546
12547  # C++ specific cases for pic, static, wl, etc.
12548  if test "$GXX" = yes; then
12549    lt_prog_compiler_wl_CXX='-Wl,'
12550    lt_prog_compiler_static_CXX='-static'
12551
12552    case $host_os in
12553    aix*)
12554      # All AIX code is PIC.
12555      if test "$host_cpu" = ia64; then
12556	# AIX 5 now supports IA64 processor
12557	lt_prog_compiler_static_CXX='-Bstatic'
12558      fi
12559      ;;
12560    amigaos*)
12561      # FIXME: we need at least 68020 code to build shared libraries, but
12562      # adding the `-m68020' flag to GCC prevents building anything better,
12563      # like `-m68040'.
12564      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12565      ;;
12566    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12567      # PIC is the default for these OSes.
12568      ;;
12569    mingw* | os2* | pw32*)
12570      # This hack is so that the source file can tell whether it is being
12571      # built for inclusion in a dll (and should export symbols for example).
12572      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12573      ;;
12574    darwin* | rhapsody*)
12575      # PIC is the default on this platform
12576      # Common symbols not allowed in MH_DYLIB files
12577      lt_prog_compiler_pic_CXX='-fno-common'
12578      ;;
12579    *djgpp*)
12580      # DJGPP does not support shared libraries at all
12581      lt_prog_compiler_pic_CXX=
12582      ;;
12583    interix3*)
12584      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12585      # Instead, we relocate shared libraries at runtime.
12586      ;;
12587    sysv4*MP*)
12588      if test -d /usr/nec; then
12589	lt_prog_compiler_pic_CXX=-Kconform_pic
12590      fi
12591      ;;
12592    hpux*)
12593      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12594      # not for PA HP-UX.
12595      case $host_cpu in
12596      hppa*64*|ia64*)
12597	;;
12598      *)
12599	lt_prog_compiler_pic_CXX='-fPIC'
12600	;;
12601      esac
12602      ;;
12603    *)
12604      lt_prog_compiler_pic_CXX='-fPIC'
12605      ;;
12606    esac
12607  else
12608    case $host_os in
12609      aix4* | aix5*)
12610	# All AIX code is PIC.
12611	if test "$host_cpu" = ia64; then
12612	  # AIX 5 now supports IA64 processor
12613	  lt_prog_compiler_static_CXX='-Bstatic'
12614	else
12615	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12616	fi
12617	;;
12618      chorus*)
12619	case $cc_basename in
12620	cxch68*)
12621	  # Green Hills C++ Compiler
12622	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12623	  ;;
12624	esac
12625	;;
12626       darwin*)
12627         # PIC is the default on this platform
12628         # Common symbols not allowed in MH_DYLIB files
12629         case $cc_basename in
12630           xlc*)
12631           lt_prog_compiler_pic_CXX='-qnocommon'
12632           lt_prog_compiler_wl_CXX='-Wl,'
12633           ;;
12634         esac
12635       ;;
12636      dgux*)
12637	case $cc_basename in
12638	  ec++*)
12639	    lt_prog_compiler_pic_CXX='-KPIC'
12640	    ;;
12641	  ghcx*)
12642	    # Green Hills C++ Compiler
12643	    lt_prog_compiler_pic_CXX='-pic'
12644	    ;;
12645	  *)
12646	    ;;
12647	esac
12648	;;
12649      freebsd* | kfreebsd*-gnu | dragonfly*)
12650	# FreeBSD uses GNU C++
12651	;;
12652      hpux9* | hpux10* | hpux11*)
12653	case $cc_basename in
12654	  CC*)
12655	    lt_prog_compiler_wl_CXX='-Wl,'
12656	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12657	    if test "$host_cpu" != ia64; then
12658	      lt_prog_compiler_pic_CXX='+Z'
12659	    fi
12660	    ;;
12661	  aCC*)
12662	    lt_prog_compiler_wl_CXX='-Wl,'
12663	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12664	    case $host_cpu in
12665	    hppa*64*|ia64*)
12666	      # +Z the default
12667	      ;;
12668	    *)
12669	      lt_prog_compiler_pic_CXX='+Z'
12670	      ;;
12671	    esac
12672	    ;;
12673	  *)
12674	    ;;
12675	esac
12676	;;
12677      interix*)
12678	# This is c89, which is MS Visual C++ (no shared libs)
12679	# Anyone wants to do a port?
12680	;;
12681      irix5* | irix6* | nonstopux*)
12682	case $cc_basename in
12683	  CC*)
12684	    lt_prog_compiler_wl_CXX='-Wl,'
12685	    lt_prog_compiler_static_CXX='-non_shared'
12686	    # CC pic flag -KPIC is the default.
12687	    ;;
12688	  *)
12689	    ;;
12690	esac
12691	;;
12692      linux*)
12693	case $cc_basename in
12694	  KCC*)
12695	    # KAI C++ Compiler
12696	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12697	    lt_prog_compiler_pic_CXX='-fPIC'
12698	    ;;
12699	  icpc* | ecpc*)
12700	    # Intel C++
12701	    lt_prog_compiler_wl_CXX='-Wl,'
12702	    lt_prog_compiler_pic_CXX='-KPIC'
12703	    lt_prog_compiler_static_CXX='-static'
12704	    ;;
12705	  pgCC*)
12706	    # Portland Group C++ compiler.
12707	    lt_prog_compiler_wl_CXX='-Wl,'
12708	    lt_prog_compiler_pic_CXX='-fpic'
12709	    lt_prog_compiler_static_CXX='-Bstatic'
12710	    ;;
12711	  cxx*)
12712	    # Compaq C++
12713	    # Make sure the PIC flag is empty.  It appears that all Alpha
12714	    # Linux and Compaq Tru64 Unix objects are PIC.
12715	    lt_prog_compiler_pic_CXX=
12716	    lt_prog_compiler_static_CXX='-non_shared'
12717	    ;;
12718	  *)
12719	    ;;
12720	esac
12721	;;
12722      lynxos*)
12723	;;
12724      m88k*)
12725	;;
12726      mvs*)
12727	case $cc_basename in
12728	  cxx*)
12729	    lt_prog_compiler_pic_CXX='-W c,exportall'
12730	    ;;
12731	  *)
12732	    ;;
12733	esac
12734	;;
12735      netbsd*)
12736	;;
12737      osf3* | osf4* | osf5*)
12738	case $cc_basename in
12739	  KCC*)
12740	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12741	    ;;
12742	  RCC*)
12743	    # Rational C++ 2.4.1
12744	    lt_prog_compiler_pic_CXX='-pic'
12745	    ;;
12746	  cxx*)
12747	    # Digital/Compaq C++
12748	    lt_prog_compiler_wl_CXX='-Wl,'
12749	    # Make sure the PIC flag is empty.  It appears that all Alpha
12750	    # Linux and Compaq Tru64 Unix objects are PIC.
12751	    lt_prog_compiler_pic_CXX=
12752	    lt_prog_compiler_static_CXX='-non_shared'
12753	    ;;
12754	  *)
12755	    ;;
12756	esac
12757	;;
12758      psos*)
12759	;;
12760      solaris*)
12761	case $cc_basename in
12762	  CC*)
12763	    # Sun C++ 4.2, 5.x and Centerline C++
12764	    lt_prog_compiler_pic_CXX='-KPIC'
12765	    lt_prog_compiler_static_CXX='-Bstatic'
12766	    lt_prog_compiler_wl_CXX='-Qoption ld '
12767	    ;;
12768	  gcx*)
12769	    # Green Hills C++ Compiler
12770	    lt_prog_compiler_pic_CXX='-PIC'
12771	    ;;
12772	  *)
12773	    ;;
12774	esac
12775	;;
12776      sunos4*)
12777	case $cc_basename in
12778	  CC*)
12779	    # Sun C++ 4.x
12780	    lt_prog_compiler_pic_CXX='-pic'
12781	    lt_prog_compiler_static_CXX='-Bstatic'
12782	    ;;
12783	  lcc*)
12784	    # Lucid
12785	    lt_prog_compiler_pic_CXX='-pic'
12786	    ;;
12787	  *)
12788	    ;;
12789	esac
12790	;;
12791      tandem*)
12792	case $cc_basename in
12793	  NCC*)
12794	    # NonStop-UX NCC 3.20
12795	    lt_prog_compiler_pic_CXX='-KPIC'
12796	    ;;
12797	  *)
12798	    ;;
12799	esac
12800	;;
12801      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12802	case $cc_basename in
12803	  CC*)
12804	    lt_prog_compiler_wl_CXX='-Wl,'
12805	    lt_prog_compiler_pic_CXX='-KPIC'
12806	    lt_prog_compiler_static_CXX='-Bstatic'
12807	    ;;
12808	esac
12809	;;
12810      vxworks*)
12811	;;
12812      *)
12813	lt_prog_compiler_can_build_shared_CXX=no
12814	;;
12815    esac
12816  fi
12817
12818{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12819echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12820
12821#
12822# Check to make sure the PIC flag actually works.
12823#
12824if test -n "$lt_prog_compiler_pic_CXX"; then
12825
12826{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12827echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12828if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12829  echo $ECHO_N "(cached) $ECHO_C" >&6
12830else
12831  lt_prog_compiler_pic_works_CXX=no
12832  ac_outfile=conftest.$ac_objext
12833   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12834   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12835   # Insert the option either (1) after the last *FLAGS variable, or
12836   # (2) before a word containing "conftest.", or (3) at the end.
12837   # Note that $ac_compile itself does not contain backslashes and begins
12838   # with a dollar sign (not a hyphen), so the echo should work correctly.
12839   # The option is referenced via a variable to avoid confusing sed.
12840   lt_compile=`echo "$ac_compile" | $SED \
12841   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12842   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12843   -e 's:$: $lt_compiler_flag:'`
12844   (eval echo "\"\$as_me:12844: $lt_compile\"" >&5)
12845   (eval "$lt_compile" 2>conftest.err)
12846   ac_status=$?
12847   cat conftest.err >&5
12848   echo "$as_me:12848: \$? = $ac_status" >&5
12849   if (exit $ac_status) && test -s "$ac_outfile"; then
12850     # The compiler can only warn and ignore the option if not recognized
12851     # So say no if there are warnings other than the usual output.
12852     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12853     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12854     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12855       lt_prog_compiler_pic_works_CXX=yes
12856     fi
12857   fi
12858   $rm conftest*
12859
12860fi
12861{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12862echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12863
12864if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12865    case $lt_prog_compiler_pic_CXX in
12866     "" | " "*) ;;
12867     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12868     esac
12869else
12870    lt_prog_compiler_pic_CXX=
12871     lt_prog_compiler_can_build_shared_CXX=no
12872fi
12873
12874fi
12875case $host_os in
12876  # For platforms which do not support PIC, -DPIC is meaningless:
12877  *djgpp*)
12878    lt_prog_compiler_pic_CXX=
12879    ;;
12880  *)
12881    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12882    ;;
12883esac
12884
12885#
12886# Check to make sure the static flag actually works.
12887#
12888wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12889{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12890echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12891if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12892  echo $ECHO_N "(cached) $ECHO_C" >&6
12893else
12894  lt_prog_compiler_static_works_CXX=no
12895   save_LDFLAGS="$LDFLAGS"
12896   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12897   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12898   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12899     # The linker can only warn and ignore the option if not recognized
12900     # So say no if there are warnings
12901     if test -s conftest.err; then
12902       # Append any errors to the config.log.
12903       cat conftest.err 1>&5
12904       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12905       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12906       if diff conftest.exp conftest.er2 >/dev/null; then
12907         lt_prog_compiler_static_works_CXX=yes
12908       fi
12909     else
12910       lt_prog_compiler_static_works_CXX=yes
12911     fi
12912   fi
12913   $rm conftest*
12914   LDFLAGS="$save_LDFLAGS"
12915
12916fi
12917{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12918echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12919
12920if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12921    :
12922else
12923    lt_prog_compiler_static_CXX=
12924fi
12925
12926
12927{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12928echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12929if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12930  echo $ECHO_N "(cached) $ECHO_C" >&6
12931else
12932  lt_cv_prog_compiler_c_o_CXX=no
12933   $rm -r conftest 2>/dev/null
12934   mkdir conftest
12935   cd conftest
12936   mkdir out
12937   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12938
12939   lt_compiler_flag="-o out/conftest2.$ac_objext"
12940   # Insert the option either (1) after the last *FLAGS variable, or
12941   # (2) before a word containing "conftest.", or (3) at the end.
12942   # Note that $ac_compile itself does not contain backslashes and begins
12943   # with a dollar sign (not a hyphen), so the echo should work correctly.
12944   lt_compile=`echo "$ac_compile" | $SED \
12945   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12946   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12947   -e 's:$: $lt_compiler_flag:'`
12948   (eval echo "\"\$as_me:12948: $lt_compile\"" >&5)
12949   (eval "$lt_compile" 2>out/conftest.err)
12950   ac_status=$?
12951   cat out/conftest.err >&5
12952   echo "$as_me:12952: \$? = $ac_status" >&5
12953   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12954   then
12955     # The compiler can only warn and ignore the option if not recognized
12956     # So say no if there are warnings
12957     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12958     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12959     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12960       lt_cv_prog_compiler_c_o_CXX=yes
12961     fi
12962   fi
12963   chmod u+w . 2>&5
12964   $rm conftest*
12965   # SGI C++ compiler will create directory out/ii_files/ for
12966   # template instantiation
12967   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12968   $rm out/* && rmdir out
12969   cd ..
12970   rmdir conftest
12971   $rm conftest*
12972
12973fi
12974{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12975echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12976
12977
12978hard_links="nottested"
12979if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12980  # do not overwrite the value of need_locks provided by the user
12981  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12982echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12983  hard_links=yes
12984  $rm conftest*
12985  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12986  touch conftest.a
12987  ln conftest.a conftest.b 2>&5 || hard_links=no
12988  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12989  { echo "$as_me:$LINENO: result: $hard_links" >&5
12990echo "${ECHO_T}$hard_links" >&6; }
12991  if test "$hard_links" = no; then
12992    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12993echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12994    need_locks=warn
12995  fi
12996else
12997  need_locks=no
12998fi
12999
13000{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13001echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13002
13003  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13004  case $host_os in
13005  aix4* | aix5*)
13006    # If we're using GNU nm, then we don't want the "-C" option.
13007    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13008    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13009      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13010    else
13011      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13012    fi
13013    ;;
13014  pw32*)
13015    export_symbols_cmds_CXX="$ltdll_cmds"
13016  ;;
13017  cygwin* | mingw*)
13018    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13019  ;;
13020  *)
13021    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13022  ;;
13023  esac
13024
13025{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13026echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13027test "$ld_shlibs_CXX" = no && can_build_shared=no
13028
13029#
13030# Do we need to explicitly link libc?
13031#
13032case "x$archive_cmds_need_lc_CXX" in
13033x|xyes)
13034  # Assume -lc should be added
13035  archive_cmds_need_lc_CXX=yes
13036
13037  if test "$enable_shared" = yes && test "$GCC" = yes; then
13038    case $archive_cmds_CXX in
13039    *'~'*)
13040      # FIXME: we may have to deal with multi-command sequences.
13041      ;;
13042    '$CC '*)
13043      # Test whether the compiler implicitly links with -lc since on some
13044      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13045      # to ld, don't add -lc before -lgcc.
13046      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13047echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13048      $rm conftest*
13049      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13050
13051      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13052  (eval $ac_compile) 2>&5
13053  ac_status=$?
13054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055  (exit $ac_status); } 2>conftest.err; then
13056        soname=conftest
13057        lib=conftest
13058        libobjs=conftest.$ac_objext
13059        deplibs=
13060        wl=$lt_prog_compiler_wl_CXX
13061	pic_flag=$lt_prog_compiler_pic_CXX
13062        compiler_flags=-v
13063        linker_flags=-v
13064        verstring=
13065        output_objdir=.
13066        libname=conftest
13067        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13068        allow_undefined_flag_CXX=
13069        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13070  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13071  ac_status=$?
13072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073  (exit $ac_status); }
13074        then
13075	  archive_cmds_need_lc_CXX=no
13076        else
13077	  archive_cmds_need_lc_CXX=yes
13078        fi
13079        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13080      else
13081        cat conftest.err 1>&5
13082      fi
13083      $rm conftest*
13084      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13085echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13086      ;;
13087    esac
13088  fi
13089  ;;
13090esac
13091
13092{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13093echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13094library_names_spec=
13095libname_spec='lib$name'
13096soname_spec=
13097shrext_cmds=".so"
13098postinstall_cmds=
13099postuninstall_cmds=
13100finish_cmds=
13101finish_eval=
13102shlibpath_var=
13103shlibpath_overrides_runpath=unknown
13104version_type=none
13105dynamic_linker="$host_os ld.so"
13106sys_lib_dlsearch_path_spec="/lib /usr/lib"
13107if test "$GCC" = yes; then
13108  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13109  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13110    # if the path contains ";" then we assume it to be the separator
13111    # otherwise default to the standard path separator (i.e. ":") - it is
13112    # assumed that no part of a normal pathname contains ";" but that should
13113    # okay in the real world where ";" in dirpaths is itself problematic.
13114    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13115  else
13116    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13117  fi
13118else
13119  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13120fi
13121need_lib_prefix=unknown
13122hardcode_into_libs=no
13123
13124# when you set need_version to no, make sure it does not cause -set_version
13125# flags to be left without arguments
13126need_version=unknown
13127
13128case $host_os in
13129aix3*)
13130  version_type=linux
13131  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13132  shlibpath_var=LIBPATH
13133
13134  # AIX 3 has no versioning support, so we append a major version to the name.
13135  soname_spec='${libname}${release}${shared_ext}$major'
13136  ;;
13137
13138aix4* | aix5*)
13139  version_type=linux
13140  need_lib_prefix=no
13141  need_version=no
13142  hardcode_into_libs=yes
13143  if test "$host_cpu" = ia64; then
13144    # AIX 5 supports IA64
13145    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13146    shlibpath_var=LD_LIBRARY_PATH
13147  else
13148    # With GCC up to 2.95.x, collect2 would create an import file
13149    # for dependence libraries.  The import file would start with
13150    # the line `#! .'.  This would cause the generated library to
13151    # depend on `.', always an invalid library.  This was fixed in
13152    # development snapshots of GCC prior to 3.0.
13153    case $host_os in
13154      aix4 | aix4.[01] | aix4.[01].*)
13155      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13156	   echo ' yes '
13157	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13158	:
13159      else
13160	can_build_shared=no
13161      fi
13162      ;;
13163    esac
13164    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13165    # soname into executable. Probably we can add versioning support to
13166    # collect2, so additional links can be useful in future.
13167    if test "$aix_use_runtimelinking" = yes; then
13168      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13169      # instead of lib<name>.a to let people know that these are not
13170      # typical AIX shared libraries.
13171      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13172    else
13173      # We preserve .a as extension for shared libraries through AIX4.2
13174      # and later when we are not doing run time linking.
13175      library_names_spec='${libname}${release}.a $libname.a'
13176      soname_spec='${libname}${release}${shared_ext}$major'
13177    fi
13178    shlibpath_var=LIBPATH
13179  fi
13180  ;;
13181
13182amigaos*)
13183  library_names_spec='$libname.ixlibrary $libname.a'
13184  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13185  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'
13186  ;;
13187
13188beos*)
13189  library_names_spec='${libname}${shared_ext}'
13190  dynamic_linker="$host_os ld.so"
13191  shlibpath_var=LIBRARY_PATH
13192  ;;
13193
13194bsdi[45]*)
13195  version_type=linux
13196  need_version=no
13197  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13198  soname_spec='${libname}${release}${shared_ext}$major'
13199  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13200  shlibpath_var=LD_LIBRARY_PATH
13201  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13202  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13203  # the default ld.so.conf also contains /usr/contrib/lib and
13204  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13205  # libtool to hard-code these into programs
13206  ;;
13207
13208cygwin* | mingw* | pw32*)
13209  version_type=windows
13210  shrext_cmds=".dll"
13211  need_version=no
13212  need_lib_prefix=no
13213
13214  case $GCC,$host_os in
13215  yes,cygwin* | yes,mingw* | yes,pw32*)
13216    library_names_spec='$libname.dll.a'
13217    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13218    postinstall_cmds='base_file=`basename \${file}`~
13219      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13220      dldir=$destdir/`dirname \$dlpath`~
13221      test -d \$dldir || mkdir -p \$dldir~
13222      $install_prog $dir/$dlname \$dldir/$dlname~
13223      chmod a+x \$dldir/$dlname'
13224    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13225      dlpath=$dir/\$dldll~
13226       $rm \$dlpath'
13227    shlibpath_overrides_runpath=yes
13228
13229    case $host_os in
13230    cygwin*)
13231      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13232      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13233      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13234      ;;
13235    mingw*)
13236      # MinGW DLLs use traditional 'lib' prefix
13237      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13238      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13239      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13240        # It is most probably a Windows format PATH printed by
13241        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13242        # path with ; separators, and with drive letters. We can handle the
13243        # drive letters (cygwin fileutils understands them), so leave them,
13244        # especially as we might pass files found there to a mingw objdump,
13245        # which wouldn't understand a cygwinified path. Ahh.
13246        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13247      else
13248        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13249      fi
13250      ;;
13251    pw32*)
13252      # pw32 DLLs use 'pw' prefix rather than 'lib'
13253      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13254      ;;
13255    esac
13256    ;;
13257
13258  *)
13259    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13260    ;;
13261  esac
13262  dynamic_linker='Win32 ld.exe'
13263  # FIXME: first we should search . and the directory the executable is in
13264  shlibpath_var=PATH
13265  ;;
13266
13267darwin* | rhapsody*)
13268  dynamic_linker="$host_os dyld"
13269  version_type=darwin
13270  need_lib_prefix=no
13271  need_version=no
13272  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13273  soname_spec='${libname}${release}${major}$shared_ext'
13274  shlibpath_overrides_runpath=yes
13275  shlibpath_var=DYLD_LIBRARY_PATH
13276  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13277  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13278  if test "$GCC" = yes; then
13279    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13280  else
13281    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13282  fi
13283  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13284  ;;
13285
13286dgux*)
13287  version_type=linux
13288  need_lib_prefix=no
13289  need_version=no
13290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13291  soname_spec='${libname}${release}${shared_ext}$major'
13292  shlibpath_var=LD_LIBRARY_PATH
13293  ;;
13294
13295freebsd1*)
13296  dynamic_linker=no
13297  ;;
13298
13299kfreebsd*-gnu)
13300  version_type=linux
13301  need_lib_prefix=no
13302  need_version=no
13303  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13304  soname_spec='${libname}${release}${shared_ext}$major'
13305  shlibpath_var=LD_LIBRARY_PATH
13306  shlibpath_overrides_runpath=no
13307  hardcode_into_libs=yes
13308  dynamic_linker='GNU ld.so'
13309  ;;
13310
13311freebsd* | dragonfly*)
13312  # DragonFly does not have aout.  When/if they implement a new
13313  # versioning mechanism, adjust this.
13314  if test -x /usr/bin/objformat; then
13315    objformat=`/usr/bin/objformat`
13316  else
13317    case $host_os in
13318    freebsd[123]*) objformat=aout ;;
13319    *) objformat=elf ;;
13320    esac
13321  fi
13322  version_type=freebsd-$objformat
13323  case $version_type in
13324    freebsd-elf*)
13325      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13326      need_version=no
13327      need_lib_prefix=no
13328      ;;
13329    freebsd-*)
13330      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13331      need_version=yes
13332      ;;
13333  esac
13334  shlibpath_var=LD_LIBRARY_PATH
13335  case $host_os in
13336  freebsd2*)
13337    shlibpath_overrides_runpath=yes
13338    ;;
13339  freebsd3.[01]* | freebsdelf3.[01]*)
13340    shlibpath_overrides_runpath=yes
13341    hardcode_into_libs=yes
13342    ;;
13343  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13344  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13345    shlibpath_overrides_runpath=no
13346    hardcode_into_libs=yes
13347    ;;
13348  freebsd*) # from 4.6 on
13349    shlibpath_overrides_runpath=yes
13350    hardcode_into_libs=yes
13351    ;;
13352  esac
13353  ;;
13354
13355gnu*)
13356  version_type=linux
13357  need_lib_prefix=no
13358  need_version=no
13359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13360  soname_spec='${libname}${release}${shared_ext}$major'
13361  shlibpath_var=LD_LIBRARY_PATH
13362  hardcode_into_libs=yes
13363  ;;
13364
13365hpux9* | hpux10* | hpux11*)
13366  # Give a soname corresponding to the major version so that dld.sl refuses to
13367  # link against other versions.
13368  version_type=sunos
13369  need_lib_prefix=no
13370  need_version=no
13371  case $host_cpu in
13372  ia64*)
13373    shrext_cmds='.so'
13374    hardcode_into_libs=yes
13375    dynamic_linker="$host_os dld.so"
13376    shlibpath_var=LD_LIBRARY_PATH
13377    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13378    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13379    soname_spec='${libname}${release}${shared_ext}$major'
13380    if test "X$HPUX_IA64_MODE" = X32; then
13381      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13382    else
13383      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13384    fi
13385    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13386    ;;
13387   hppa*64*)
13388     shrext_cmds='.sl'
13389     hardcode_into_libs=yes
13390     dynamic_linker="$host_os dld.sl"
13391     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13392     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13394     soname_spec='${libname}${release}${shared_ext}$major'
13395     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13396     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13397     ;;
13398   *)
13399    shrext_cmds='.sl'
13400    dynamic_linker="$host_os dld.sl"
13401    shlibpath_var=SHLIB_PATH
13402    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13403    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13404    soname_spec='${libname}${release}${shared_ext}$major'
13405    ;;
13406  esac
13407  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13408  postinstall_cmds='chmod 555 $lib'
13409  ;;
13410
13411interix3*)
13412  version_type=linux
13413  need_lib_prefix=no
13414  need_version=no
13415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13416  soname_spec='${libname}${release}${shared_ext}$major'
13417  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13418  shlibpath_var=LD_LIBRARY_PATH
13419  shlibpath_overrides_runpath=no
13420  hardcode_into_libs=yes
13421  ;;
13422
13423irix5* | irix6* | nonstopux*)
13424  case $host_os in
13425    nonstopux*) version_type=nonstopux ;;
13426    *)
13427	if test "$lt_cv_prog_gnu_ld" = yes; then
13428		version_type=linux
13429	else
13430		version_type=irix
13431	fi ;;
13432  esac
13433  need_lib_prefix=no
13434  need_version=no
13435  soname_spec='${libname}${release}${shared_ext}$major'
13436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13437  case $host_os in
13438  irix5* | nonstopux*)
13439    libsuff= shlibsuff=
13440    ;;
13441  *)
13442    case $LD in # libtool.m4 will add one of these switches to LD
13443    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13444      libsuff= shlibsuff= libmagic=32-bit;;
13445    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13446      libsuff=32 shlibsuff=N32 libmagic=N32;;
13447    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13448      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13449    *) libsuff= shlibsuff= libmagic=never-match;;
13450    esac
13451    ;;
13452  esac
13453  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13454  shlibpath_overrides_runpath=no
13455  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13456  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13457  hardcode_into_libs=yes
13458  ;;
13459
13460# No shared lib support for Linux oldld, aout, or coff.
13461linux*oldld* | linux*aout* | linux*coff*)
13462  dynamic_linker=no
13463  ;;
13464
13465# This must be Linux ELF.
13466linux*)
13467  version_type=linux
13468  need_lib_prefix=no
13469  need_version=no
13470  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13471  soname_spec='${libname}${release}${shared_ext}$major'
13472  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13473  shlibpath_var=LD_LIBRARY_PATH
13474  shlibpath_overrides_runpath=no
13475  # This implies no fast_install, which is unacceptable.
13476  # Some rework will be needed to allow for fast_install
13477  # before this can be enabled.
13478  hardcode_into_libs=yes
13479
13480  # Append ld.so.conf contents to the search path
13481  if test -f /etc/ld.so.conf; then
13482    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13483    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13484  fi
13485
13486  # We used to test for /lib/ld.so.1 and disable shared libraries on
13487  # powerpc, because MkLinux only supported shared libraries with the
13488  # GNU dynamic linker.  Since this was broken with cross compilers,
13489  # most powerpc-linux boxes support dynamic linking these days and
13490  # people can always --disable-shared, the test was removed, and we
13491  # assume the GNU/Linux dynamic linker is in use.
13492  dynamic_linker='GNU/Linux ld.so'
13493  ;;
13494
13495knetbsd*-gnu)
13496  version_type=linux
13497  need_lib_prefix=no
13498  need_version=no
13499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13500  soname_spec='${libname}${release}${shared_ext}$major'
13501  shlibpath_var=LD_LIBRARY_PATH
13502  shlibpath_overrides_runpath=no
13503  hardcode_into_libs=yes
13504  dynamic_linker='GNU ld.so'
13505  ;;
13506
13507netbsd*)
13508  version_type=sunos
13509  need_lib_prefix=no
13510  need_version=no
13511  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13512    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13513    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13514    dynamic_linker='NetBSD (a.out) ld.so'
13515  else
13516    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13517    soname_spec='${libname}${release}${shared_ext}$major'
13518    dynamic_linker='NetBSD ld.elf_so'
13519  fi
13520  shlibpath_var=LD_LIBRARY_PATH
13521  shlibpath_overrides_runpath=yes
13522  hardcode_into_libs=yes
13523  ;;
13524
13525newsos6)
13526  version_type=linux
13527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13528  shlibpath_var=LD_LIBRARY_PATH
13529  shlibpath_overrides_runpath=yes
13530  ;;
13531
13532nto-qnx*)
13533  version_type=linux
13534  need_lib_prefix=no
13535  need_version=no
13536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13537  soname_spec='${libname}${release}${shared_ext}$major'
13538  shlibpath_var=LD_LIBRARY_PATH
13539  shlibpath_overrides_runpath=yes
13540  ;;
13541
13542openbsd*)
13543  version_type=sunos
13544  sys_lib_dlsearch_path_spec="/usr/lib"
13545  need_lib_prefix=no
13546  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13547  case $host_os in
13548    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13549    *)                         need_version=no  ;;
13550  esac
13551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13552  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13553  shlibpath_var=LD_LIBRARY_PATH
13554  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13555    case $host_os in
13556      openbsd2.[89] | openbsd2.[89].*)
13557	shlibpath_overrides_runpath=no
13558	;;
13559      *)
13560	shlibpath_overrides_runpath=yes
13561	;;
13562      esac
13563  else
13564    shlibpath_overrides_runpath=yes
13565  fi
13566  ;;
13567
13568os2*)
13569  libname_spec='$name'
13570  shrext_cmds=".dll"
13571  need_lib_prefix=no
13572  library_names_spec='$libname${shared_ext} $libname.a'
13573  dynamic_linker='OS/2 ld.exe'
13574  shlibpath_var=LIBPATH
13575  ;;
13576
13577osf3* | osf4* | osf5*)
13578  version_type=osf
13579  need_lib_prefix=no
13580  need_version=no
13581  soname_spec='${libname}${release}${shared_ext}$major'
13582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13583  shlibpath_var=LD_LIBRARY_PATH
13584  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13585  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13586  ;;
13587
13588solaris*)
13589  version_type=linux
13590  need_lib_prefix=no
13591  need_version=no
13592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13593  soname_spec='${libname}${release}${shared_ext}$major'
13594  shlibpath_var=LD_LIBRARY_PATH
13595  shlibpath_overrides_runpath=yes
13596  hardcode_into_libs=yes
13597  # ldd complains unless libraries are executable
13598  postinstall_cmds='chmod +x $lib'
13599  ;;
13600
13601sunos4*)
13602  version_type=sunos
13603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13604  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13605  shlibpath_var=LD_LIBRARY_PATH
13606  shlibpath_overrides_runpath=yes
13607  if test "$with_gnu_ld" = yes; then
13608    need_lib_prefix=no
13609  fi
13610  need_version=yes
13611  ;;
13612
13613sysv4 | sysv4.3*)
13614  version_type=linux
13615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13616  soname_spec='${libname}${release}${shared_ext}$major'
13617  shlibpath_var=LD_LIBRARY_PATH
13618  case $host_vendor in
13619    sni)
13620      shlibpath_overrides_runpath=no
13621      need_lib_prefix=no
13622      export_dynamic_flag_spec='${wl}-Blargedynsym'
13623      runpath_var=LD_RUN_PATH
13624      ;;
13625    siemens)
13626      need_lib_prefix=no
13627      ;;
13628    motorola)
13629      need_lib_prefix=no
13630      need_version=no
13631      shlibpath_overrides_runpath=no
13632      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13633      ;;
13634  esac
13635  ;;
13636
13637sysv4*MP*)
13638  if test -d /usr/nec ;then
13639    version_type=linux
13640    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13641    soname_spec='$libname${shared_ext}.$major'
13642    shlibpath_var=LD_LIBRARY_PATH
13643  fi
13644  ;;
13645
13646sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13647  version_type=freebsd-elf
13648  need_lib_prefix=no
13649  need_version=no
13650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13651  soname_spec='${libname}${release}${shared_ext}$major'
13652  shlibpath_var=LD_LIBRARY_PATH
13653  hardcode_into_libs=yes
13654  if test "$with_gnu_ld" = yes; then
13655    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13656    shlibpath_overrides_runpath=no
13657  else
13658    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13659    shlibpath_overrides_runpath=yes
13660    case $host_os in
13661      sco3.2v5*)
13662        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13663	;;
13664    esac
13665  fi
13666  sys_lib_dlsearch_path_spec='/usr/lib'
13667  ;;
13668
13669uts4*)
13670  version_type=linux
13671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13672  soname_spec='${libname}${release}${shared_ext}$major'
13673  shlibpath_var=LD_LIBRARY_PATH
13674  ;;
13675
13676*)
13677  dynamic_linker=no
13678  ;;
13679esac
13680{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13681echo "${ECHO_T}$dynamic_linker" >&6; }
13682test "$dynamic_linker" = no && can_build_shared=no
13683
13684variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13685if test "$GCC" = yes; then
13686  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13687fi
13688
13689{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13690echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13691hardcode_action_CXX=
13692if test -n "$hardcode_libdir_flag_spec_CXX" || \
13693   test -n "$runpath_var_CXX" || \
13694   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13695
13696  # We can hardcode non-existant directories.
13697  if test "$hardcode_direct_CXX" != no &&
13698     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13699     # have to relink, otherwise we might link with an installed library
13700     # when we should be linking with a yet-to-be-installed one
13701     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13702     test "$hardcode_minus_L_CXX" != no; then
13703    # Linking always hardcodes the temporary library directory.
13704    hardcode_action_CXX=relink
13705  else
13706    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13707    hardcode_action_CXX=immediate
13708  fi
13709else
13710  # We cannot hardcode anything, or else we can only hardcode existing
13711  # directories.
13712  hardcode_action_CXX=unsupported
13713fi
13714{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13715echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13716
13717if test "$hardcode_action_CXX" = relink; then
13718  # Fast installation is not supported
13719  enable_fast_install=no
13720elif test "$shlibpath_overrides_runpath" = yes ||
13721     test "$enable_shared" = no; then
13722  # Fast installation is not necessary
13723  enable_fast_install=needless
13724fi
13725
13726
13727# The else clause should only fire when bootstrapping the
13728# libtool distribution, otherwise you forgot to ship ltmain.sh
13729# with your package, and you will get complaints that there are
13730# no rules to generate ltmain.sh.
13731if test -f "$ltmain"; then
13732  # See if we are running on zsh, and set the options which allow our commands through
13733  # without removal of \ escapes.
13734  if test -n "${ZSH_VERSION+set}" ; then
13735    setopt NO_GLOB_SUBST
13736  fi
13737  # Now quote all the things that may contain metacharacters while being
13738  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13739  # variables and quote the copies for generation of the libtool script.
13740  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13741    SED SHELL STRIP \
13742    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13743    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13744    deplibs_check_method reload_flag reload_cmds need_locks \
13745    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13746    lt_cv_sys_global_symbol_to_c_name_address \
13747    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13748    old_postinstall_cmds old_postuninstall_cmds \
13749    compiler_CXX \
13750    CC_CXX \
13751    LD_CXX \
13752    lt_prog_compiler_wl_CXX \
13753    lt_prog_compiler_pic_CXX \
13754    lt_prog_compiler_static_CXX \
13755    lt_prog_compiler_no_builtin_flag_CXX \
13756    export_dynamic_flag_spec_CXX \
13757    thread_safe_flag_spec_CXX \
13758    whole_archive_flag_spec_CXX \
13759    enable_shared_with_static_runtimes_CXX \
13760    old_archive_cmds_CXX \
13761    old_archive_from_new_cmds_CXX \
13762    predep_objects_CXX \
13763    postdep_objects_CXX \
13764    predeps_CXX \
13765    postdeps_CXX \
13766    compiler_lib_search_path_CXX \
13767    archive_cmds_CXX \
13768    archive_expsym_cmds_CXX \
13769    postinstall_cmds_CXX \
13770    postuninstall_cmds_CXX \
13771    old_archive_from_expsyms_cmds_CXX \
13772    allow_undefined_flag_CXX \
13773    no_undefined_flag_CXX \
13774    export_symbols_cmds_CXX \
13775    hardcode_libdir_flag_spec_CXX \
13776    hardcode_libdir_flag_spec_ld_CXX \
13777    hardcode_libdir_separator_CXX \
13778    hardcode_automatic_CXX \
13779    module_cmds_CXX \
13780    module_expsym_cmds_CXX \
13781    lt_cv_prog_compiler_c_o_CXX \
13782    exclude_expsyms_CXX \
13783    include_expsyms_CXX; do
13784
13785    case $var in
13786    old_archive_cmds_CXX | \
13787    old_archive_from_new_cmds_CXX | \
13788    archive_cmds_CXX | \
13789    archive_expsym_cmds_CXX | \
13790    module_cmds_CXX | \
13791    module_expsym_cmds_CXX | \
13792    old_archive_from_expsyms_cmds_CXX | \
13793    export_symbols_cmds_CXX | \
13794    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13795    postinstall_cmds | postuninstall_cmds | \
13796    old_postinstall_cmds | old_postuninstall_cmds | \
13797    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13798      # Double-quote double-evaled strings.
13799      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13800      ;;
13801    *)
13802      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13803      ;;
13804    esac
13805  done
13806
13807  case $lt_echo in
13808  *'\$0 --fallback-echo"')
13809    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13810    ;;
13811  esac
13812
13813cfgfile="$ofile"
13814
13815  cat <<__EOF__ >> "$cfgfile"
13816# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13817
13818# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13819
13820# Shell to use when invoking shell scripts.
13821SHELL=$lt_SHELL
13822
13823# Whether or not to build shared libraries.
13824build_libtool_libs=$enable_shared
13825
13826# Whether or not to build static libraries.
13827build_old_libs=$enable_static
13828
13829# Whether or not to add -lc for building shared libraries.
13830build_libtool_need_lc=$archive_cmds_need_lc_CXX
13831
13832# Whether or not to disallow shared libs when runtime libs are static
13833allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13834
13835# Whether or not to optimize for fast installation.
13836fast_install=$enable_fast_install
13837
13838# The host system.
13839host_alias=$host_alias
13840host=$host
13841host_os=$host_os
13842
13843# The build system.
13844build_alias=$build_alias
13845build=$build
13846build_os=$build_os
13847
13848# An echo program that does not interpret backslashes.
13849echo=$lt_echo
13850
13851# The archiver.
13852AR=$lt_AR
13853AR_FLAGS=$lt_AR_FLAGS
13854
13855# A C compiler.
13856LTCC=$lt_LTCC
13857
13858# LTCC compiler flags.
13859LTCFLAGS=$lt_LTCFLAGS
13860
13861# A language-specific compiler.
13862CC=$lt_compiler_CXX
13863
13864# Is the compiler the GNU C compiler?
13865with_gcc=$GCC_CXX
13866
13867# An ERE matcher.
13868EGREP=$lt_EGREP
13869
13870# The linker used to build libraries.
13871LD=$lt_LD_CXX
13872
13873# Whether we need hard or soft links.
13874LN_S=$lt_LN_S
13875
13876# A BSD-compatible nm program.
13877NM=$lt_NM
13878
13879# A symbol stripping program
13880STRIP=$lt_STRIP
13881
13882# Used to examine libraries when file_magic_cmd begins "file"
13883MAGIC_CMD=$MAGIC_CMD
13884
13885# Used on cygwin: DLL creation program.
13886DLLTOOL="$DLLTOOL"
13887
13888# Used on cygwin: object dumper.
13889OBJDUMP="$OBJDUMP"
13890
13891# Used on cygwin: assembler.
13892AS="$AS"
13893
13894# The name of the directory that contains temporary libtool files.
13895objdir=$objdir
13896
13897# How to create reloadable object files.
13898reload_flag=$lt_reload_flag
13899reload_cmds=$lt_reload_cmds
13900
13901# How to pass a linker flag through the compiler.
13902wl=$lt_lt_prog_compiler_wl_CXX
13903
13904# Object file suffix (normally "o").
13905objext="$ac_objext"
13906
13907# Old archive suffix (normally "a").
13908libext="$libext"
13909
13910# Shared library suffix (normally ".so").
13911shrext_cmds='$shrext_cmds'
13912
13913# Executable file suffix (normally "").
13914exeext="$exeext"
13915
13916# Additional compiler flags for building library objects.
13917pic_flag=$lt_lt_prog_compiler_pic_CXX
13918pic_mode=$pic_mode
13919
13920# What is the maximum length of a command?
13921max_cmd_len=$lt_cv_sys_max_cmd_len
13922
13923# Does compiler simultaneously support -c and -o options?
13924compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13925
13926# Must we lock files when doing compilation?
13927need_locks=$lt_need_locks
13928
13929# Do we need the lib prefix for modules?
13930need_lib_prefix=$need_lib_prefix
13931
13932# Do we need a version for libraries?
13933need_version=$need_version
13934
13935# Whether dlopen is supported.
13936dlopen_support=$enable_dlopen
13937
13938# Whether dlopen of programs is supported.
13939dlopen_self=$enable_dlopen_self
13940
13941# Whether dlopen of statically linked programs is supported.
13942dlopen_self_static=$enable_dlopen_self_static
13943
13944# Compiler flag to prevent dynamic linking.
13945link_static_flag=$lt_lt_prog_compiler_static_CXX
13946
13947# Compiler flag to turn off builtin functions.
13948no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13949
13950# Compiler flag to allow reflexive dlopens.
13951export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13952
13953# Compiler flag to generate shared objects directly from archives.
13954whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13955
13956# Compiler flag to generate thread-safe objects.
13957thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13958
13959# Library versioning type.
13960version_type=$version_type
13961
13962# Format of library name prefix.
13963libname_spec=$lt_libname_spec
13964
13965# List of archive names.  First name is the real one, the rest are links.
13966# The last name is the one that the linker finds with -lNAME.
13967library_names_spec=$lt_library_names_spec
13968
13969# The coded name of the library, if different from the real name.
13970soname_spec=$lt_soname_spec
13971
13972# Commands used to build and install an old-style archive.
13973RANLIB=$lt_RANLIB
13974old_archive_cmds=$lt_old_archive_cmds_CXX
13975old_postinstall_cmds=$lt_old_postinstall_cmds
13976old_postuninstall_cmds=$lt_old_postuninstall_cmds
13977
13978# Create an old-style archive from a shared archive.
13979old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13980
13981# Create a temporary old-style archive to link instead of a shared archive.
13982old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13983
13984# Commands used to build and install a shared archive.
13985archive_cmds=$lt_archive_cmds_CXX
13986archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13987postinstall_cmds=$lt_postinstall_cmds
13988postuninstall_cmds=$lt_postuninstall_cmds
13989
13990# Commands used to build a loadable module (assumed same as above if empty)
13991module_cmds=$lt_module_cmds_CXX
13992module_expsym_cmds=$lt_module_expsym_cmds_CXX
13993
13994# Commands to strip libraries.
13995old_striplib=$lt_old_striplib
13996striplib=$lt_striplib
13997
13998# Dependencies to place before the objects being linked to create a
13999# shared library.
14000predep_objects=$lt_predep_objects_CXX
14001
14002# Dependencies to place after the objects being linked to create a
14003# shared library.
14004postdep_objects=$lt_postdep_objects_CXX
14005
14006# Dependencies to place before the objects being linked to create a
14007# shared library.
14008predeps=$lt_predeps_CXX
14009
14010# Dependencies to place after the objects being linked to create a
14011# shared library.
14012postdeps=$lt_postdeps_CXX
14013
14014# The library search path used internally by the compiler when linking
14015# a shared library.
14016compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14017
14018# Method to check whether dependent libraries are shared objects.
14019deplibs_check_method=$lt_deplibs_check_method
14020
14021# Command to use when deplibs_check_method == file_magic.
14022file_magic_cmd=$lt_file_magic_cmd
14023
14024# Flag that allows shared libraries with undefined symbols to be built.
14025allow_undefined_flag=$lt_allow_undefined_flag_CXX
14026
14027# Flag that forces no undefined symbols.
14028no_undefined_flag=$lt_no_undefined_flag_CXX
14029
14030# Commands used to finish a libtool library installation in a directory.
14031finish_cmds=$lt_finish_cmds
14032
14033# Same as above, but a single script fragment to be evaled but not shown.
14034finish_eval=$lt_finish_eval
14035
14036# Take the output of nm and produce a listing of raw symbols and C names.
14037global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14038
14039# Transform the output of nm in a proper C declaration
14040global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14041
14042# Transform the output of nm in a C name address pair
14043global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14044
14045# This is the shared library runtime path variable.
14046runpath_var=$runpath_var
14047
14048# This is the shared library path variable.
14049shlibpath_var=$shlibpath_var
14050
14051# Is shlibpath searched before the hard-coded library search path?
14052shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14053
14054# How to hardcode a shared library path into an executable.
14055hardcode_action=$hardcode_action_CXX
14056
14057# Whether we should hardcode library paths into libraries.
14058hardcode_into_libs=$hardcode_into_libs
14059
14060# Flag to hardcode \$libdir into a binary during linking.
14061# This must work even if \$libdir does not exist.
14062hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14063
14064# If ld is used when linking, flag to hardcode \$libdir into
14065# a binary during linking. This must work even if \$libdir does
14066# not exist.
14067hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14068
14069# Whether we need a single -rpath flag with a separated argument.
14070hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14071
14072# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14073# resulting binary.
14074hardcode_direct=$hardcode_direct_CXX
14075
14076# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14077# resulting binary.
14078hardcode_minus_L=$hardcode_minus_L_CXX
14079
14080# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14081# the resulting binary.
14082hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14083
14084# Set to yes if building a shared library automatically hardcodes DIR into the library
14085# and all subsequent libraries and executables linked against it.
14086hardcode_automatic=$hardcode_automatic_CXX
14087
14088# Variables whose values should be saved in libtool wrapper scripts and
14089# restored at relink time.
14090variables_saved_for_relink="$variables_saved_for_relink"
14091
14092# Whether libtool must link a program against all its dependency libraries.
14093link_all_deplibs=$link_all_deplibs_CXX
14094
14095# Compile-time system search path for libraries
14096sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14097
14098# Run-time system search path for libraries
14099sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14100
14101# Fix the shell variable \$srcfile for the compiler.
14102fix_srcfile_path="$fix_srcfile_path_CXX"
14103
14104# Set to yes if exported symbols are required.
14105always_export_symbols=$always_export_symbols_CXX
14106
14107# The commands to list exported symbols.
14108export_symbols_cmds=$lt_export_symbols_cmds_CXX
14109
14110# The commands to extract the exported symbol list from a shared archive.
14111extract_expsyms_cmds=$lt_extract_expsyms_cmds
14112
14113# Symbols that should not be listed in the preloaded symbols.
14114exclude_expsyms=$lt_exclude_expsyms_CXX
14115
14116# Symbols that must always be exported.
14117include_expsyms=$lt_include_expsyms_CXX
14118
14119# ### END LIBTOOL TAG CONFIG: $tagname
14120
14121__EOF__
14122
14123
14124else
14125  # If there is no Makefile yet, we rely on a make rule to execute
14126  # `config.status --recheck' to rerun these tests and create the
14127  # libtool script then.
14128  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14129  if test -f "$ltmain_in"; then
14130    test -f Makefile && make "$ltmain"
14131  fi
14132fi
14133
14134
14135ac_ext=c
14136ac_cpp='$CPP $CPPFLAGS'
14137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14139ac_compiler_gnu=$ac_cv_c_compiler_gnu
14140
14141CC=$lt_save_CC
14142LDCXX=$LD
14143LD=$lt_save_LD
14144GCC=$lt_save_GCC
14145with_gnu_ldcxx=$with_gnu_ld
14146with_gnu_ld=$lt_save_with_gnu_ld
14147lt_cv_path_LDCXX=$lt_cv_path_LD
14148lt_cv_path_LD=$lt_save_path_LD
14149lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14150lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14151
14152	else
14153	  tagname=""
14154	fi
14155	;;
14156
14157      F77)
14158	if test -n "$F77" && test "X$F77" != "Xno"; then
14159
14160ac_ext=f
14161ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14162ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14163ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14164
14165
14166archive_cmds_need_lc_F77=no
14167allow_undefined_flag_F77=
14168always_export_symbols_F77=no
14169archive_expsym_cmds_F77=
14170export_dynamic_flag_spec_F77=
14171hardcode_direct_F77=no
14172hardcode_libdir_flag_spec_F77=
14173hardcode_libdir_flag_spec_ld_F77=
14174hardcode_libdir_separator_F77=
14175hardcode_minus_L_F77=no
14176hardcode_automatic_F77=no
14177module_cmds_F77=
14178module_expsym_cmds_F77=
14179link_all_deplibs_F77=unknown
14180old_archive_cmds_F77=$old_archive_cmds
14181no_undefined_flag_F77=
14182whole_archive_flag_spec_F77=
14183enable_shared_with_static_runtimes_F77=no
14184
14185# Source file extension for f77 test sources.
14186ac_ext=f
14187
14188# Object file extension for compiled f77 test sources.
14189objext=o
14190objext_F77=$objext
14191
14192# Code to be used in simple compile tests
14193lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14194
14195# Code to be used in simple link tests
14196lt_simple_link_test_code="      program t\n      end\n"
14197
14198# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14199
14200# If no C compiler was specified, use CC.
14201LTCC=${LTCC-"$CC"}
14202
14203# If no C compiler flags were specified, use CFLAGS.
14204LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14205
14206# Allow CC to be a program name with arguments.
14207compiler=$CC
14208
14209
14210# save warnings/boilerplate of simple test code
14211ac_outfile=conftest.$ac_objext
14212printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14213eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14214_lt_compiler_boilerplate=`cat conftest.err`
14215$rm conftest*
14216
14217ac_outfile=conftest.$ac_objext
14218printf "$lt_simple_link_test_code" >conftest.$ac_ext
14219eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14220_lt_linker_boilerplate=`cat conftest.err`
14221$rm conftest*
14222
14223
14224# Allow CC to be a program name with arguments.
14225lt_save_CC="$CC"
14226CC=${F77-"f77"}
14227compiler=$CC
14228compiler_F77=$CC
14229for cc_temp in $compiler""; do
14230  case $cc_temp in
14231    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14232    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14233    \-*) ;;
14234    *) break;;
14235  esac
14236done
14237cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14238
14239
14240{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14241echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14242{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14243echo "${ECHO_T}$can_build_shared" >&6; }
14244
14245{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14246echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14247test "$can_build_shared" = "no" && enable_shared=no
14248
14249# On AIX, shared libraries and static libraries use the same namespace, and
14250# are all built from PIC.
14251case $host_os in
14252aix3*)
14253  test "$enable_shared" = yes && enable_static=no
14254  if test -n "$RANLIB"; then
14255    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14256    postinstall_cmds='$RANLIB $lib'
14257  fi
14258  ;;
14259aix4* | aix5*)
14260  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14261    test "$enable_shared" = yes && enable_static=no
14262  fi
14263  ;;
14264esac
14265{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14266echo "${ECHO_T}$enable_shared" >&6; }
14267
14268{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14269echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14270# Make sure either enable_shared or enable_static is yes.
14271test "$enable_shared" = yes || enable_static=yes
14272{ echo "$as_me:$LINENO: result: $enable_static" >&5
14273echo "${ECHO_T}$enable_static" >&6; }
14274
14275GCC_F77="$G77"
14276LD_F77="$LD"
14277
14278lt_prog_compiler_wl_F77=
14279lt_prog_compiler_pic_F77=
14280lt_prog_compiler_static_F77=
14281
14282{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14283echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14284
14285  if test "$GCC" = yes; then
14286    lt_prog_compiler_wl_F77='-Wl,'
14287    lt_prog_compiler_static_F77='-static'
14288
14289    case $host_os in
14290      aix*)
14291      # All AIX code is PIC.
14292      if test "$host_cpu" = ia64; then
14293	# AIX 5 now supports IA64 processor
14294	lt_prog_compiler_static_F77='-Bstatic'
14295      fi
14296      ;;
14297
14298    amigaos*)
14299      # FIXME: we need at least 68020 code to build shared libraries, but
14300      # adding the `-m68020' flag to GCC prevents building anything better,
14301      # like `-m68040'.
14302      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14303      ;;
14304
14305    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14306      # PIC is the default for these OSes.
14307      ;;
14308
14309    mingw* | pw32* | os2*)
14310      # This hack is so that the source file can tell whether it is being
14311      # built for inclusion in a dll (and should export symbols for example).
14312      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14313      ;;
14314
14315    darwin* | rhapsody*)
14316      # PIC is the default on this platform
14317      # Common symbols not allowed in MH_DYLIB files
14318      lt_prog_compiler_pic_F77='-fno-common'
14319      ;;
14320
14321    interix3*)
14322      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14323      # Instead, we relocate shared libraries at runtime.
14324      ;;
14325
14326    msdosdjgpp*)
14327      # Just because we use GCC doesn't mean we suddenly get shared libraries
14328      # on systems that don't support them.
14329      lt_prog_compiler_can_build_shared_F77=no
14330      enable_shared=no
14331      ;;
14332
14333    sysv4*MP*)
14334      if test -d /usr/nec; then
14335	lt_prog_compiler_pic_F77=-Kconform_pic
14336      fi
14337      ;;
14338
14339    hpux*)
14340      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14341      # not for PA HP-UX.
14342      case $host_cpu in
14343      hppa*64*|ia64*)
14344	# +Z the default
14345	;;
14346      *)
14347	lt_prog_compiler_pic_F77='-fPIC'
14348	;;
14349      esac
14350      ;;
14351
14352    *)
14353      lt_prog_compiler_pic_F77='-fPIC'
14354      ;;
14355    esac
14356  else
14357    # PORTME Check for flag to pass linker flags through the system compiler.
14358    case $host_os in
14359    aix*)
14360      lt_prog_compiler_wl_F77='-Wl,'
14361      if test "$host_cpu" = ia64; then
14362	# AIX 5 now supports IA64 processor
14363	lt_prog_compiler_static_F77='-Bstatic'
14364      else
14365	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14366      fi
14367      ;;
14368      darwin*)
14369        # PIC is the default on this platform
14370        # Common symbols not allowed in MH_DYLIB files
14371       case $cc_basename in
14372         xlc*)
14373         lt_prog_compiler_pic_F77='-qnocommon'
14374         lt_prog_compiler_wl_F77='-Wl,'
14375         ;;
14376       esac
14377       ;;
14378
14379    mingw* | pw32* | os2*)
14380      # This hack is so that the source file can tell whether it is being
14381      # built for inclusion in a dll (and should export symbols for example).
14382      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14383      ;;
14384
14385    hpux9* | hpux10* | hpux11*)
14386      lt_prog_compiler_wl_F77='-Wl,'
14387      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14388      # not for PA HP-UX.
14389      case $host_cpu in
14390      hppa*64*|ia64*)
14391	# +Z the default
14392	;;
14393      *)
14394	lt_prog_compiler_pic_F77='+Z'
14395	;;
14396      esac
14397      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14398      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14399      ;;
14400
14401    irix5* | irix6* | nonstopux*)
14402      lt_prog_compiler_wl_F77='-Wl,'
14403      # PIC (with -KPIC) is the default.
14404      lt_prog_compiler_static_F77='-non_shared'
14405      ;;
14406
14407    newsos6)
14408      lt_prog_compiler_pic_F77='-KPIC'
14409      lt_prog_compiler_static_F77='-Bstatic'
14410      ;;
14411
14412    linux*)
14413      case $cc_basename in
14414      icc* | ecc*)
14415	lt_prog_compiler_wl_F77='-Wl,'
14416	lt_prog_compiler_pic_F77='-KPIC'
14417	lt_prog_compiler_static_F77='-static'
14418        ;;
14419      pgcc* | pgf77* | pgf90* | pgf95*)
14420        # Portland Group compilers (*not* the Pentium gcc compiler,
14421	# which looks to be a dead project)
14422	lt_prog_compiler_wl_F77='-Wl,'
14423	lt_prog_compiler_pic_F77='-fpic'
14424	lt_prog_compiler_static_F77='-Bstatic'
14425        ;;
14426      ccc*)
14427        lt_prog_compiler_wl_F77='-Wl,'
14428        # All Alpha code is PIC.
14429        lt_prog_compiler_static_F77='-non_shared'
14430        ;;
14431      esac
14432      ;;
14433
14434    osf3* | osf4* | osf5*)
14435      lt_prog_compiler_wl_F77='-Wl,'
14436      # All OSF/1 code is PIC.
14437      lt_prog_compiler_static_F77='-non_shared'
14438      ;;
14439
14440    solaris*)
14441      lt_prog_compiler_pic_F77='-KPIC'
14442      lt_prog_compiler_static_F77='-Bstatic'
14443      case $cc_basename in
14444      f77* | f90* | f95*)
14445	lt_prog_compiler_wl_F77='-Qoption ld ';;
14446      *)
14447	lt_prog_compiler_wl_F77='-Wl,';;
14448      esac
14449      ;;
14450
14451    sunos4*)
14452      lt_prog_compiler_wl_F77='-Qoption ld '
14453      lt_prog_compiler_pic_F77='-PIC'
14454      lt_prog_compiler_static_F77='-Bstatic'
14455      ;;
14456
14457    sysv4 | sysv4.2uw2* | sysv4.3*)
14458      lt_prog_compiler_wl_F77='-Wl,'
14459      lt_prog_compiler_pic_F77='-KPIC'
14460      lt_prog_compiler_static_F77='-Bstatic'
14461      ;;
14462
14463    sysv4*MP*)
14464      if test -d /usr/nec ;then
14465	lt_prog_compiler_pic_F77='-Kconform_pic'
14466	lt_prog_compiler_static_F77='-Bstatic'
14467      fi
14468      ;;
14469
14470    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14471      lt_prog_compiler_wl_F77='-Wl,'
14472      lt_prog_compiler_pic_F77='-KPIC'
14473      lt_prog_compiler_static_F77='-Bstatic'
14474      ;;
14475
14476    unicos*)
14477      lt_prog_compiler_wl_F77='-Wl,'
14478      lt_prog_compiler_can_build_shared_F77=no
14479      ;;
14480
14481    uts4*)
14482      lt_prog_compiler_pic_F77='-pic'
14483      lt_prog_compiler_static_F77='-Bstatic'
14484      ;;
14485
14486    *)
14487      lt_prog_compiler_can_build_shared_F77=no
14488      ;;
14489    esac
14490  fi
14491
14492{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14493echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14494
14495#
14496# Check to make sure the PIC flag actually works.
14497#
14498if test -n "$lt_prog_compiler_pic_F77"; then
14499
14500{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14501echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14502if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14503  echo $ECHO_N "(cached) $ECHO_C" >&6
14504else
14505  lt_prog_compiler_pic_works_F77=no
14506  ac_outfile=conftest.$ac_objext
14507   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14508   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14509   # Insert the option either (1) after the last *FLAGS variable, or
14510   # (2) before a word containing "conftest.", or (3) at the end.
14511   # Note that $ac_compile itself does not contain backslashes and begins
14512   # with a dollar sign (not a hyphen), so the echo should work correctly.
14513   # The option is referenced via a variable to avoid confusing sed.
14514   lt_compile=`echo "$ac_compile" | $SED \
14515   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14516   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14517   -e 's:$: $lt_compiler_flag:'`
14518   (eval echo "\"\$as_me:14518: $lt_compile\"" >&5)
14519   (eval "$lt_compile" 2>conftest.err)
14520   ac_status=$?
14521   cat conftest.err >&5
14522   echo "$as_me:14522: \$? = $ac_status" >&5
14523   if (exit $ac_status) && test -s "$ac_outfile"; then
14524     # The compiler can only warn and ignore the option if not recognized
14525     # So say no if there are warnings other than the usual output.
14526     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14527     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14528     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14529       lt_prog_compiler_pic_works_F77=yes
14530     fi
14531   fi
14532   $rm conftest*
14533
14534fi
14535{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14536echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14537
14538if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14539    case $lt_prog_compiler_pic_F77 in
14540     "" | " "*) ;;
14541     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14542     esac
14543else
14544    lt_prog_compiler_pic_F77=
14545     lt_prog_compiler_can_build_shared_F77=no
14546fi
14547
14548fi
14549case $host_os in
14550  # For platforms which do not support PIC, -DPIC is meaningless:
14551  *djgpp*)
14552    lt_prog_compiler_pic_F77=
14553    ;;
14554  *)
14555    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14556    ;;
14557esac
14558
14559#
14560# Check to make sure the static flag actually works.
14561#
14562wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14563{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14564echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14565if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14566  echo $ECHO_N "(cached) $ECHO_C" >&6
14567else
14568  lt_prog_compiler_static_works_F77=no
14569   save_LDFLAGS="$LDFLAGS"
14570   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14571   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14572   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14573     # The linker can only warn and ignore the option if not recognized
14574     # So say no if there are warnings
14575     if test -s conftest.err; then
14576       # Append any errors to the config.log.
14577       cat conftest.err 1>&5
14578       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14579       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14580       if diff conftest.exp conftest.er2 >/dev/null; then
14581         lt_prog_compiler_static_works_F77=yes
14582       fi
14583     else
14584       lt_prog_compiler_static_works_F77=yes
14585     fi
14586   fi
14587   $rm conftest*
14588   LDFLAGS="$save_LDFLAGS"
14589
14590fi
14591{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14592echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14593
14594if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14595    :
14596else
14597    lt_prog_compiler_static_F77=
14598fi
14599
14600
14601{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14602echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14603if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14604  echo $ECHO_N "(cached) $ECHO_C" >&6
14605else
14606  lt_cv_prog_compiler_c_o_F77=no
14607   $rm -r conftest 2>/dev/null
14608   mkdir conftest
14609   cd conftest
14610   mkdir out
14611   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14612
14613   lt_compiler_flag="-o out/conftest2.$ac_objext"
14614   # Insert the option either (1) after the last *FLAGS variable, or
14615   # (2) before a word containing "conftest.", or (3) at the end.
14616   # Note that $ac_compile itself does not contain backslashes and begins
14617   # with a dollar sign (not a hyphen), so the echo should work correctly.
14618   lt_compile=`echo "$ac_compile" | $SED \
14619   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14620   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14621   -e 's:$: $lt_compiler_flag:'`
14622   (eval echo "\"\$as_me:14622: $lt_compile\"" >&5)
14623   (eval "$lt_compile" 2>out/conftest.err)
14624   ac_status=$?
14625   cat out/conftest.err >&5
14626   echo "$as_me:14626: \$? = $ac_status" >&5
14627   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14628   then
14629     # The compiler can only warn and ignore the option if not recognized
14630     # So say no if there are warnings
14631     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14632     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14633     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14634       lt_cv_prog_compiler_c_o_F77=yes
14635     fi
14636   fi
14637   chmod u+w . 2>&5
14638   $rm conftest*
14639   # SGI C++ compiler will create directory out/ii_files/ for
14640   # template instantiation
14641   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14642   $rm out/* && rmdir out
14643   cd ..
14644   rmdir conftest
14645   $rm conftest*
14646
14647fi
14648{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14649echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14650
14651
14652hard_links="nottested"
14653if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14654  # do not overwrite the value of need_locks provided by the user
14655  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14656echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14657  hard_links=yes
14658  $rm conftest*
14659  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14660  touch conftest.a
14661  ln conftest.a conftest.b 2>&5 || hard_links=no
14662  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14663  { echo "$as_me:$LINENO: result: $hard_links" >&5
14664echo "${ECHO_T}$hard_links" >&6; }
14665  if test "$hard_links" = no; then
14666    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14667echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14668    need_locks=warn
14669  fi
14670else
14671  need_locks=no
14672fi
14673
14674{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14675echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14676
14677  runpath_var=
14678  allow_undefined_flag_F77=
14679  enable_shared_with_static_runtimes_F77=no
14680  archive_cmds_F77=
14681  archive_expsym_cmds_F77=
14682  old_archive_From_new_cmds_F77=
14683  old_archive_from_expsyms_cmds_F77=
14684  export_dynamic_flag_spec_F77=
14685  whole_archive_flag_spec_F77=
14686  thread_safe_flag_spec_F77=
14687  hardcode_libdir_flag_spec_F77=
14688  hardcode_libdir_flag_spec_ld_F77=
14689  hardcode_libdir_separator_F77=
14690  hardcode_direct_F77=no
14691  hardcode_minus_L_F77=no
14692  hardcode_shlibpath_var_F77=unsupported
14693  link_all_deplibs_F77=unknown
14694  hardcode_automatic_F77=no
14695  module_cmds_F77=
14696  module_expsym_cmds_F77=
14697  always_export_symbols_F77=no
14698  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14699  # include_expsyms should be a list of space-separated symbols to be *always*
14700  # included in the symbol list
14701  include_expsyms_F77=
14702  # exclude_expsyms can be an extended regexp of symbols to exclude
14703  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14704  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14705  # as well as any symbol that contains `d'.
14706  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14707  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14708  # platforms (ab)use it in PIC code, but their linkers get confused if
14709  # the symbol is explicitly referenced.  Since portable code cannot
14710  # rely on this symbol name, it's probably fine to never include it in
14711  # preloaded symbol tables.
14712  extract_expsyms_cmds=
14713  # Just being paranoid about ensuring that cc_basename is set.
14714  for cc_temp in $compiler""; do
14715  case $cc_temp in
14716    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14717    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14718    \-*) ;;
14719    *) break;;
14720  esac
14721done
14722cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14723
14724  case $host_os in
14725  cygwin* | mingw* | pw32*)
14726    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14727    # When not using gcc, we currently assume that we are using
14728    # Microsoft Visual C++.
14729    if test "$GCC" != yes; then
14730      with_gnu_ld=no
14731    fi
14732    ;;
14733  interix*)
14734    # we just hope/assume this is gcc and not c89 (= MSVC++)
14735    with_gnu_ld=yes
14736    ;;
14737  openbsd*)
14738    with_gnu_ld=no
14739    ;;
14740  esac
14741
14742  ld_shlibs_F77=yes
14743  if test "$with_gnu_ld" = yes; then
14744    # If archive_cmds runs LD, not CC, wlarc should be empty
14745    wlarc='${wl}'
14746
14747    # Set some defaults for GNU ld with shared library support. These
14748    # are reset later if shared libraries are not supported. Putting them
14749    # here allows them to be overridden if necessary.
14750    runpath_var=LD_RUN_PATH
14751    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14752    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14753    # ancient GNU ld didn't support --whole-archive et. al.
14754    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14755	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14756      else
14757  	whole_archive_flag_spec_F77=
14758    fi
14759    supports_anon_versioning=no
14760    case `$LD -v 2>/dev/null` in
14761      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14762      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14763      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14764      *\ 2.11.*) ;; # other 2.11 versions
14765      *) supports_anon_versioning=yes ;;
14766    esac
14767
14768    # See if GNU ld supports shared libraries.
14769    case $host_os in
14770    aix3* | aix4* | aix5*)
14771      # On AIX/PPC, the GNU linker is very broken
14772      if test "$host_cpu" != ia64; then
14773	ld_shlibs_F77=no
14774	cat <<EOF 1>&2
14775
14776*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14777*** to be unable to reliably create shared libraries on AIX.
14778*** Therefore, libtool is disabling shared libraries support.  If you
14779*** really care for shared libraries, you may want to modify your PATH
14780*** so that a non-GNU linker is found, and then restart.
14781
14782EOF
14783      fi
14784      ;;
14785
14786    amigaos*)
14787      archive_cmds_F77='$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)'
14788      hardcode_libdir_flag_spec_F77='-L$libdir'
14789      hardcode_minus_L_F77=yes
14790
14791      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14792      # that the semantics of dynamic libraries on AmigaOS, at least up
14793      # to version 4, is to share data among multiple programs linked
14794      # with the same dynamic library.  Since this doesn't match the
14795      # behavior of shared libraries on other platforms, we can't use
14796      # them.
14797      ld_shlibs_F77=no
14798      ;;
14799
14800    beos*)
14801      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14802	allow_undefined_flag_F77=unsupported
14803	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14804	# support --undefined.  This deserves some investigation.  FIXME
14805	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14806      else
14807	ld_shlibs_F77=no
14808      fi
14809      ;;
14810
14811    cygwin* | mingw* | pw32*)
14812      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14813      # as there is no search path for DLLs.
14814      hardcode_libdir_flag_spec_F77='-L$libdir'
14815      allow_undefined_flag_F77=unsupported
14816      always_export_symbols_F77=no
14817      enable_shared_with_static_runtimes_F77=yes
14818      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14819
14820      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14821        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14822	# If the export-symbols file already is a .def file (1st line
14823	# is EXPORTS), use it as is; otherwise, prepend...
14824	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14825	  cp $export_symbols $output_objdir/$soname.def;
14826	else
14827	  echo EXPORTS > $output_objdir/$soname.def;
14828	  cat $export_symbols >> $output_objdir/$soname.def;
14829	fi~
14830	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14831      else
14832	ld_shlibs_F77=no
14833      fi
14834      ;;
14835
14836    interix3*)
14837      hardcode_direct_F77=no
14838      hardcode_shlibpath_var_F77=no
14839      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14840      export_dynamic_flag_spec_F77='${wl}-E'
14841      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14842      # Instead, shared libraries are loaded at an image base (0x10000000 by
14843      # default) and relocated if they conflict, which is a slow very memory
14844      # consuming and fragmenting process.  To avoid this, we pick a random,
14845      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14846      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14847      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14848      archive_expsym_cmds_F77='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'
14849      ;;
14850
14851    linux*)
14852      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14853	tmp_addflag=
14854	case $cc_basename,$host_cpu in
14855	pgcc*)				# Portland Group C compiler
14856	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14857	  tmp_addflag=' $pic_flag'
14858	  ;;
14859	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14860	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14861	  tmp_addflag=' $pic_flag -Mnomain' ;;
14862	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14863	  tmp_addflag=' -i_dynamic' ;;
14864	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14865	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14866	ifc* | ifort*)			# Intel Fortran compiler
14867	  tmp_addflag=' -nofor_main' ;;
14868	esac
14869	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14870
14871	if test $supports_anon_versioning = yes; then
14872	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14873  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14874  $echo "local: *; };" >> $output_objdir/$libname.ver~
14875	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14876	fi
14877      else
14878	ld_shlibs_F77=no
14879      fi
14880      ;;
14881
14882    netbsd*)
14883      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14884	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14885	wlarc=
14886      else
14887	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14888	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14889      fi
14890      ;;
14891
14892    solaris*)
14893      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14894	ld_shlibs_F77=no
14895	cat <<EOF 1>&2
14896
14897*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14898*** create shared libraries on Solaris systems.  Therefore, libtool
14899*** is disabling shared libraries support.  We urge you to upgrade GNU
14900*** binutils to release 2.9.1 or newer.  Another option is to modify
14901*** your PATH or compiler configuration so that the native linker is
14902*** used, and then restart.
14903
14904EOF
14905      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14906	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14907	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14908      else
14909	ld_shlibs_F77=no
14910      fi
14911      ;;
14912
14913    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14914      case `$LD -v 2>&1` in
14915        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14916	ld_shlibs_F77=no
14917	cat <<_LT_EOF 1>&2
14918
14919*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14920*** reliably create shared libraries on SCO systems.  Therefore, libtool
14921*** is disabling shared libraries support.  We urge you to upgrade GNU
14922*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14923*** your PATH or compiler configuration so that the native linker is
14924*** used, and then restart.
14925
14926_LT_EOF
14927	;;
14928	*)
14929	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14930	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14931	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14932	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14933	  else
14934	    ld_shlibs_F77=no
14935	  fi
14936	;;
14937      esac
14938      ;;
14939
14940    sunos4*)
14941      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14942      wlarc=
14943      hardcode_direct_F77=yes
14944      hardcode_shlibpath_var_F77=no
14945      ;;
14946
14947    *)
14948      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14949	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14950	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14951      else
14952	ld_shlibs_F77=no
14953      fi
14954      ;;
14955    esac
14956
14957    if test "$ld_shlibs_F77" = no; then
14958      runpath_var=
14959      hardcode_libdir_flag_spec_F77=
14960      export_dynamic_flag_spec_F77=
14961      whole_archive_flag_spec_F77=
14962    fi
14963  else
14964    # PORTME fill in a description of your system's linker (not GNU ld)
14965    case $host_os in
14966    aix3*)
14967      allow_undefined_flag_F77=unsupported
14968      always_export_symbols_F77=yes
14969      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14970      # Note: this linker hardcodes the directories in LIBPATH if there
14971      # are no directories specified by -L.
14972      hardcode_minus_L_F77=yes
14973      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14974	# Neither direct hardcoding nor static linking is supported with a
14975	# broken collect2.
14976	hardcode_direct_F77=unsupported
14977      fi
14978      ;;
14979
14980    aix4* | aix5*)
14981      if test "$host_cpu" = ia64; then
14982	# On IA64, the linker does run time linking by default, so we don't
14983	# have to do anything special.
14984	aix_use_runtimelinking=no
14985	exp_sym_flag='-Bexport'
14986	no_entry_flag=""
14987      else
14988	# If we're using GNU nm, then we don't want the "-C" option.
14989	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14990	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14991	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14992	else
14993	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14994	fi
14995	aix_use_runtimelinking=no
14996
14997	# Test if we are trying to use run time linking or normal
14998	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14999	# need to do runtime linking.
15000	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15001	  for ld_flag in $LDFLAGS; do
15002  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15003  	    aix_use_runtimelinking=yes
15004  	    break
15005  	  fi
15006	  done
15007	  ;;
15008	esac
15009
15010	exp_sym_flag='-bexport'
15011	no_entry_flag='-bnoentry'
15012      fi
15013
15014      # When large executables or shared objects are built, AIX ld can
15015      # have problems creating the table of contents.  If linking a library
15016      # or program results in "error TOC overflow" add -mminimal-toc to
15017      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15018      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15019
15020      archive_cmds_F77=''
15021      hardcode_direct_F77=yes
15022      hardcode_libdir_separator_F77=':'
15023      link_all_deplibs_F77=yes
15024
15025      if test "$GCC" = yes; then
15026	case $host_os in aix4.[012]|aix4.[012].*)
15027	# We only want to do this on AIX 4.2 and lower, the check
15028	# below for broken collect2 doesn't work under 4.3+
15029	  collect2name=`${CC} -print-prog-name=collect2`
15030	  if test -f "$collect2name" && \
15031  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15032	  then
15033  	  # We have reworked collect2
15034  	  hardcode_direct_F77=yes
15035	  else
15036  	  # We have old collect2
15037  	  hardcode_direct_F77=unsupported
15038  	  # It fails to find uninstalled libraries when the uninstalled
15039  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15040  	  # to unsupported forces relinking
15041  	  hardcode_minus_L_F77=yes
15042  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15043  	  hardcode_libdir_separator_F77=
15044	  fi
15045	  ;;
15046	esac
15047	shared_flag='-shared'
15048	if test "$aix_use_runtimelinking" = yes; then
15049	  shared_flag="$shared_flag "'${wl}-G'
15050	fi
15051      else
15052	# not using gcc
15053	if test "$host_cpu" = ia64; then
15054  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15055  	# chokes on -Wl,-G. The following line is correct:
15056	  shared_flag='-G'
15057	else
15058	  if test "$aix_use_runtimelinking" = yes; then
15059	    shared_flag='${wl}-G'
15060	  else
15061	    shared_flag='${wl}-bM:SRE'
15062	  fi
15063	fi
15064      fi
15065
15066      # It seems that -bexpall does not export symbols beginning with
15067      # underscore (_), so it is better to generate a list of symbols to export.
15068      always_export_symbols_F77=yes
15069      if test "$aix_use_runtimelinking" = yes; then
15070	# Warning - without using the other runtime loading flags (-brtl),
15071	# -berok will link without error, but may produce a broken library.
15072	allow_undefined_flag_F77='-berok'
15073       # Determine the default libpath from the value encoded in an empty executable.
15074       cat >conftest.$ac_ext <<_ACEOF
15075      program main
15076
15077      end
15078_ACEOF
15079rm -f conftest.$ac_objext conftest$ac_exeext
15080if { (ac_try="$ac_link"
15081case "(($ac_try" in
15082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083  *) ac_try_echo=$ac_try;;
15084esac
15085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086  (eval "$ac_link") 2>conftest.er1
15087  ac_status=$?
15088  grep -v '^ *+' conftest.er1 >conftest.err
15089  rm -f conftest.er1
15090  cat conftest.err >&5
15091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092  (exit $ac_status); } &&
15093	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15094  { (case "(($ac_try" in
15095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096  *) ac_try_echo=$ac_try;;
15097esac
15098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099  (eval "$ac_try") 2>&5
15100  ac_status=$?
15101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102  (exit $ac_status); }; } &&
15103	 { ac_try='test -s conftest$ac_exeext'
15104  { (case "(($ac_try" in
15105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15106  *) ac_try_echo=$ac_try;;
15107esac
15108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15109  (eval "$ac_try") 2>&5
15110  ac_status=$?
15111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112  (exit $ac_status); }; }; then
15113
15114aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15115}'`
15116# Check for a 64-bit object if we didn't find anything.
15117if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15118}'`; fi
15119else
15120  echo "$as_me: failed program was:" >&5
15121sed 's/^/| /' conftest.$ac_ext >&5
15122
15123
15124fi
15125
15126rm -f core conftest.err conftest.$ac_objext \
15127      conftest$ac_exeext conftest.$ac_ext
15128if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15129
15130       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15131	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15132       else
15133	if test "$host_cpu" = ia64; then
15134	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15135	  allow_undefined_flag_F77="-z nodefs"
15136	  archive_expsym_cmds_F77="\$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"
15137	else
15138	 # Determine the default libpath from the value encoded in an empty executable.
15139	 cat >conftest.$ac_ext <<_ACEOF
15140      program main
15141
15142      end
15143_ACEOF
15144rm -f conftest.$ac_objext conftest$ac_exeext
15145if { (ac_try="$ac_link"
15146case "(($ac_try" in
15147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148  *) ac_try_echo=$ac_try;;
15149esac
15150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151  (eval "$ac_link") 2>conftest.er1
15152  ac_status=$?
15153  grep -v '^ *+' conftest.er1 >conftest.err
15154  rm -f conftest.er1
15155  cat conftest.err >&5
15156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157  (exit $ac_status); } &&
15158	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15159  { (case "(($ac_try" in
15160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161  *) ac_try_echo=$ac_try;;
15162esac
15163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15164  (eval "$ac_try") 2>&5
15165  ac_status=$?
15166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167  (exit $ac_status); }; } &&
15168	 { ac_try='test -s conftest$ac_exeext'
15169  { (case "(($ac_try" in
15170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171  *) ac_try_echo=$ac_try;;
15172esac
15173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174  (eval "$ac_try") 2>&5
15175  ac_status=$?
15176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177  (exit $ac_status); }; }; then
15178
15179aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15180}'`
15181# Check for a 64-bit object if we didn't find anything.
15182if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15183}'`; fi
15184else
15185  echo "$as_me: failed program was:" >&5
15186sed 's/^/| /' conftest.$ac_ext >&5
15187
15188
15189fi
15190
15191rm -f core conftest.err conftest.$ac_objext \
15192      conftest$ac_exeext conftest.$ac_ext
15193if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15194
15195	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15196	  # Warning - without using the other run time loading flags,
15197	  # -berok will link without error, but may produce a broken library.
15198	  no_undefined_flag_F77=' ${wl}-bernotok'
15199	  allow_undefined_flag_F77=' ${wl}-berok'
15200	  # Exported symbols can be pulled into shared objects from archives
15201	  whole_archive_flag_spec_F77='$convenience'
15202	  archive_cmds_need_lc_F77=yes
15203	  # This is similar to how AIX traditionally builds its shared libraries.
15204	  archive_expsym_cmds_F77="\$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'
15205	fi
15206      fi
15207      ;;
15208
15209    amigaos*)
15210      archive_cmds_F77='$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)'
15211      hardcode_libdir_flag_spec_F77='-L$libdir'
15212      hardcode_minus_L_F77=yes
15213      # see comment about different semantics on the GNU ld section
15214      ld_shlibs_F77=no
15215      ;;
15216
15217    bsdi[45]*)
15218      export_dynamic_flag_spec_F77=-rdynamic
15219      ;;
15220
15221    cygwin* | mingw* | pw32*)
15222      # When not using gcc, we currently assume that we are using
15223      # Microsoft Visual C++.
15224      # hardcode_libdir_flag_spec is actually meaningless, as there is
15225      # no search path for DLLs.
15226      hardcode_libdir_flag_spec_F77=' '
15227      allow_undefined_flag_F77=unsupported
15228      # Tell ltmain to make .lib files, not .a files.
15229      libext=lib
15230      # Tell ltmain to make .dll files, not .so files.
15231      shrext_cmds=".dll"
15232      # FIXME: Setting linknames here is a bad hack.
15233      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15234      # The linker will automatically build a .lib file if we build a DLL.
15235      old_archive_From_new_cmds_F77='true'
15236      # FIXME: Should let the user specify the lib program.
15237      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15238      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15239      enable_shared_with_static_runtimes_F77=yes
15240      ;;
15241
15242    darwin* | rhapsody*)
15243      case $host_os in
15244        rhapsody* | darwin1.[012])
15245         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15246         ;;
15247       *) # Darwin 1.3 on
15248         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15249           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15250         else
15251           case ${MACOSX_DEPLOYMENT_TARGET} in
15252             10.[012])
15253               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15254               ;;
15255             10.*)
15256               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15257               ;;
15258           esac
15259         fi
15260         ;;
15261      esac
15262      archive_cmds_need_lc_F77=no
15263      hardcode_direct_F77=no
15264      hardcode_automatic_F77=yes
15265      hardcode_shlibpath_var_F77=unsupported
15266      whole_archive_flag_spec_F77=''
15267      link_all_deplibs_F77=yes
15268    if test "$GCC" = yes ; then
15269    	output_verbose_link_cmd='echo'
15270        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15271      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15272      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15273      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15274      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15275    else
15276      case $cc_basename in
15277        xlc*)
15278         output_verbose_link_cmd='echo'
15279         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15280         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15281          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15282         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15283          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15284          ;;
15285       *)
15286         ld_shlibs_F77=no
15287          ;;
15288      esac
15289    fi
15290      ;;
15291
15292    dgux*)
15293      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15294      hardcode_libdir_flag_spec_F77='-L$libdir'
15295      hardcode_shlibpath_var_F77=no
15296      ;;
15297
15298    freebsd1*)
15299      ld_shlibs_F77=no
15300      ;;
15301
15302    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15303    # support.  Future versions do this automatically, but an explicit c++rt0.o
15304    # does not break anything, and helps significantly (at the cost of a little
15305    # extra space).
15306    freebsd2.2*)
15307      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15308      hardcode_libdir_flag_spec_F77='-R$libdir'
15309      hardcode_direct_F77=yes
15310      hardcode_shlibpath_var_F77=no
15311      ;;
15312
15313    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15314    freebsd2*)
15315      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15316      hardcode_direct_F77=yes
15317      hardcode_minus_L_F77=yes
15318      hardcode_shlibpath_var_F77=no
15319      ;;
15320
15321    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15322    freebsd* | kfreebsd*-gnu | dragonfly*)
15323      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15324      hardcode_libdir_flag_spec_F77='-R$libdir'
15325      hardcode_direct_F77=yes
15326      hardcode_shlibpath_var_F77=no
15327      ;;
15328
15329    hpux9*)
15330      if test "$GCC" = yes; then
15331	archive_cmds_F77='$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'
15332      else
15333	archive_cmds_F77='$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'
15334      fi
15335      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15336      hardcode_libdir_separator_F77=:
15337      hardcode_direct_F77=yes
15338
15339      # hardcode_minus_L: Not really in the search PATH,
15340      # but as the default location of the library.
15341      hardcode_minus_L_F77=yes
15342      export_dynamic_flag_spec_F77='${wl}-E'
15343      ;;
15344
15345    hpux10*)
15346      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15347	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15348      else
15349	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15350      fi
15351      if test "$with_gnu_ld" = no; then
15352	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15353	hardcode_libdir_separator_F77=:
15354
15355	hardcode_direct_F77=yes
15356	export_dynamic_flag_spec_F77='${wl}-E'
15357
15358	# hardcode_minus_L: Not really in the search PATH,
15359	# but as the default location of the library.
15360	hardcode_minus_L_F77=yes
15361      fi
15362      ;;
15363
15364    hpux11*)
15365      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15366	case $host_cpu in
15367	hppa*64*)
15368	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15369	  ;;
15370	ia64*)
15371	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15372	  ;;
15373	*)
15374	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15375	  ;;
15376	esac
15377      else
15378	case $host_cpu in
15379	hppa*64*)
15380	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15381	  ;;
15382	ia64*)
15383	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15384	  ;;
15385	*)
15386	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15387	  ;;
15388	esac
15389      fi
15390      if test "$with_gnu_ld" = no; then
15391	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15392	hardcode_libdir_separator_F77=:
15393
15394	case $host_cpu in
15395	hppa*64*|ia64*)
15396	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15397	  hardcode_direct_F77=no
15398	  hardcode_shlibpath_var_F77=no
15399	  ;;
15400	*)
15401	  hardcode_direct_F77=yes
15402	  export_dynamic_flag_spec_F77='${wl}-E'
15403
15404	  # hardcode_minus_L: Not really in the search PATH,
15405	  # but as the default location of the library.
15406	  hardcode_minus_L_F77=yes
15407	  ;;
15408	esac
15409      fi
15410      ;;
15411
15412    irix5* | irix6* | nonstopux*)
15413      if test "$GCC" = yes; then
15414	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15415      else
15416	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15417	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15418      fi
15419      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15420      hardcode_libdir_separator_F77=:
15421      link_all_deplibs_F77=yes
15422      ;;
15423
15424    netbsd*)
15425      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15426	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15427      else
15428	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15429      fi
15430      hardcode_libdir_flag_spec_F77='-R$libdir'
15431      hardcode_direct_F77=yes
15432      hardcode_shlibpath_var_F77=no
15433      ;;
15434
15435    newsos6)
15436      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15437      hardcode_direct_F77=yes
15438      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15439      hardcode_libdir_separator_F77=:
15440      hardcode_shlibpath_var_F77=no
15441      ;;
15442
15443    openbsd*)
15444      hardcode_direct_F77=yes
15445      hardcode_shlibpath_var_F77=no
15446      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15447	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15448	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15449	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15450	export_dynamic_flag_spec_F77='${wl}-E'
15451      else
15452       case $host_os in
15453	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15454	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15455	   hardcode_libdir_flag_spec_F77='-R$libdir'
15456	   ;;
15457	 *)
15458	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15459	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15460	   ;;
15461       esac
15462      fi
15463      ;;
15464
15465    os2*)
15466      hardcode_libdir_flag_spec_F77='-L$libdir'
15467      hardcode_minus_L_F77=yes
15468      allow_undefined_flag_F77=unsupported
15469      archive_cmds_F77='$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'
15470      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15471      ;;
15472
15473    osf3*)
15474      if test "$GCC" = yes; then
15475	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15476	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15477      else
15478	allow_undefined_flag_F77=' -expect_unresolved \*'
15479	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15480      fi
15481      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15482      hardcode_libdir_separator_F77=:
15483      ;;
15484
15485    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15486      if test "$GCC" = yes; then
15487	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15488	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15489	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15490      else
15491	allow_undefined_flag_F77=' -expect_unresolved \*'
15492	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15493	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15494	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15495
15496	# Both c and cxx compiler support -rpath directly
15497	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15498      fi
15499      hardcode_libdir_separator_F77=:
15500      ;;
15501
15502    solaris*)
15503      no_undefined_flag_F77=' -z text'
15504      if test "$GCC" = yes; then
15505	wlarc='${wl}'
15506	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15507	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15508	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15509      else
15510	wlarc=''
15511	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15512	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15513  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15514      fi
15515      hardcode_libdir_flag_spec_F77='-R$libdir'
15516      hardcode_shlibpath_var_F77=no
15517      case $host_os in
15518      solaris2.[0-5] | solaris2.[0-5].*) ;;
15519      *)
15520 	# The compiler driver will combine linker options so we
15521 	# cannot just pass the convience library names through
15522 	# without $wl, iff we do not link with $LD.
15523 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15524 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15525 	case $wlarc in
15526 	'')
15527 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15528 	*)
15529 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15530 	esac ;;
15531      esac
15532      link_all_deplibs_F77=yes
15533      ;;
15534
15535    sunos4*)
15536      if test "x$host_vendor" = xsequent; then
15537	# Use $CC to link under sequent, because it throws in some extra .o
15538	# files that make .init and .fini sections work.
15539	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15540      else
15541	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15542      fi
15543      hardcode_libdir_flag_spec_F77='-L$libdir'
15544      hardcode_direct_F77=yes
15545      hardcode_minus_L_F77=yes
15546      hardcode_shlibpath_var_F77=no
15547      ;;
15548
15549    sysv4)
15550      case $host_vendor in
15551	sni)
15552	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15553	  hardcode_direct_F77=yes # is this really true???
15554	;;
15555	siemens)
15556	  ## LD is ld it makes a PLAMLIB
15557	  ## CC just makes a GrossModule.
15558	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15559	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15560	  hardcode_direct_F77=no
15561        ;;
15562	motorola)
15563	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15564	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15565	;;
15566      esac
15567      runpath_var='LD_RUN_PATH'
15568      hardcode_shlibpath_var_F77=no
15569      ;;
15570
15571    sysv4.3*)
15572      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15573      hardcode_shlibpath_var_F77=no
15574      export_dynamic_flag_spec_F77='-Bexport'
15575      ;;
15576
15577    sysv4*MP*)
15578      if test -d /usr/nec; then
15579	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15580	hardcode_shlibpath_var_F77=no
15581	runpath_var=LD_RUN_PATH
15582	hardcode_runpath_var=yes
15583	ld_shlibs_F77=yes
15584      fi
15585      ;;
15586
15587    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15588      no_undefined_flag_F77='${wl}-z,text'
15589      archive_cmds_need_lc_F77=no
15590      hardcode_shlibpath_var_F77=no
15591      runpath_var='LD_RUN_PATH'
15592
15593      if test "$GCC" = yes; then
15594	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15595	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15596      else
15597	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15598	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15599      fi
15600      ;;
15601
15602    sysv5* | sco3.2v5* | sco5v6*)
15603      # Note: We can NOT use -z defs as we might desire, because we do not
15604      # link with -lc, and that would cause any symbols used from libc to
15605      # always be unresolved, which means just about no library would
15606      # ever link correctly.  If we're not using GNU ld we use -z text
15607      # though, which does catch some bad symbols but isn't as heavy-handed
15608      # as -z defs.
15609      no_undefined_flag_F77='${wl}-z,text'
15610      allow_undefined_flag_F77='${wl}-z,nodefs'
15611      archive_cmds_need_lc_F77=no
15612      hardcode_shlibpath_var_F77=no
15613      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15614      hardcode_libdir_separator_F77=':'
15615      link_all_deplibs_F77=yes
15616      export_dynamic_flag_spec_F77='${wl}-Bexport'
15617      runpath_var='LD_RUN_PATH'
15618
15619      if test "$GCC" = yes; then
15620	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15621	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15622      else
15623	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15624	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15625      fi
15626      ;;
15627
15628    uts4*)
15629      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15630      hardcode_libdir_flag_spec_F77='-L$libdir'
15631      hardcode_shlibpath_var_F77=no
15632      ;;
15633
15634    *)
15635      ld_shlibs_F77=no
15636      ;;
15637    esac
15638  fi
15639
15640{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15641echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15642test "$ld_shlibs_F77" = no && can_build_shared=no
15643
15644#
15645# Do we need to explicitly link libc?
15646#
15647case "x$archive_cmds_need_lc_F77" in
15648x|xyes)
15649  # Assume -lc should be added
15650  archive_cmds_need_lc_F77=yes
15651
15652  if test "$enable_shared" = yes && test "$GCC" = yes; then
15653    case $archive_cmds_F77 in
15654    *'~'*)
15655      # FIXME: we may have to deal with multi-command sequences.
15656      ;;
15657    '$CC '*)
15658      # Test whether the compiler implicitly links with -lc since on some
15659      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15660      # to ld, don't add -lc before -lgcc.
15661      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15662echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15663      $rm conftest*
15664      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15665
15666      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15667  (eval $ac_compile) 2>&5
15668  ac_status=$?
15669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670  (exit $ac_status); } 2>conftest.err; then
15671        soname=conftest
15672        lib=conftest
15673        libobjs=conftest.$ac_objext
15674        deplibs=
15675        wl=$lt_prog_compiler_wl_F77
15676	pic_flag=$lt_prog_compiler_pic_F77
15677        compiler_flags=-v
15678        linker_flags=-v
15679        verstring=
15680        output_objdir=.
15681        libname=conftest
15682        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15683        allow_undefined_flag_F77=
15684        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15685  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15686  ac_status=$?
15687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688  (exit $ac_status); }
15689        then
15690	  archive_cmds_need_lc_F77=no
15691        else
15692	  archive_cmds_need_lc_F77=yes
15693        fi
15694        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15695      else
15696        cat conftest.err 1>&5
15697      fi
15698      $rm conftest*
15699      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15700echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15701      ;;
15702    esac
15703  fi
15704  ;;
15705esac
15706
15707{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15708echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15709library_names_spec=
15710libname_spec='lib$name'
15711soname_spec=
15712shrext_cmds=".so"
15713postinstall_cmds=
15714postuninstall_cmds=
15715finish_cmds=
15716finish_eval=
15717shlibpath_var=
15718shlibpath_overrides_runpath=unknown
15719version_type=none
15720dynamic_linker="$host_os ld.so"
15721sys_lib_dlsearch_path_spec="/lib /usr/lib"
15722if test "$GCC" = yes; then
15723  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15724  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15725    # if the path contains ";" then we assume it to be the separator
15726    # otherwise default to the standard path separator (i.e. ":") - it is
15727    # assumed that no part of a normal pathname contains ";" but that should
15728    # okay in the real world where ";" in dirpaths is itself problematic.
15729    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15730  else
15731    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15732  fi
15733else
15734  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15735fi
15736need_lib_prefix=unknown
15737hardcode_into_libs=no
15738
15739# when you set need_version to no, make sure it does not cause -set_version
15740# flags to be left without arguments
15741need_version=unknown
15742
15743case $host_os in
15744aix3*)
15745  version_type=linux
15746  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15747  shlibpath_var=LIBPATH
15748
15749  # AIX 3 has no versioning support, so we append a major version to the name.
15750  soname_spec='${libname}${release}${shared_ext}$major'
15751  ;;
15752
15753aix4* | aix5*)
15754  version_type=linux
15755  need_lib_prefix=no
15756  need_version=no
15757  hardcode_into_libs=yes
15758  if test "$host_cpu" = ia64; then
15759    # AIX 5 supports IA64
15760    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15761    shlibpath_var=LD_LIBRARY_PATH
15762  else
15763    # With GCC up to 2.95.x, collect2 would create an import file
15764    # for dependence libraries.  The import file would start with
15765    # the line `#! .'.  This would cause the generated library to
15766    # depend on `.', always an invalid library.  This was fixed in
15767    # development snapshots of GCC prior to 3.0.
15768    case $host_os in
15769      aix4 | aix4.[01] | aix4.[01].*)
15770      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15771	   echo ' yes '
15772	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15773	:
15774      else
15775	can_build_shared=no
15776      fi
15777      ;;
15778    esac
15779    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15780    # soname into executable. Probably we can add versioning support to
15781    # collect2, so additional links can be useful in future.
15782    if test "$aix_use_runtimelinking" = yes; then
15783      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15784      # instead of lib<name>.a to let people know that these are not
15785      # typical AIX shared libraries.
15786      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15787    else
15788      # We preserve .a as extension for shared libraries through AIX4.2
15789      # and later when we are not doing run time linking.
15790      library_names_spec='${libname}${release}.a $libname.a'
15791      soname_spec='${libname}${release}${shared_ext}$major'
15792    fi
15793    shlibpath_var=LIBPATH
15794  fi
15795  ;;
15796
15797amigaos*)
15798  library_names_spec='$libname.ixlibrary $libname.a'
15799  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15800  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'
15801  ;;
15802
15803beos*)
15804  library_names_spec='${libname}${shared_ext}'
15805  dynamic_linker="$host_os ld.so"
15806  shlibpath_var=LIBRARY_PATH
15807  ;;
15808
15809bsdi[45]*)
15810  version_type=linux
15811  need_version=no
15812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15813  soname_spec='${libname}${release}${shared_ext}$major'
15814  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15815  shlibpath_var=LD_LIBRARY_PATH
15816  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15817  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15818  # the default ld.so.conf also contains /usr/contrib/lib and
15819  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15820  # libtool to hard-code these into programs
15821  ;;
15822
15823cygwin* | mingw* | pw32*)
15824  version_type=windows
15825  shrext_cmds=".dll"
15826  need_version=no
15827  need_lib_prefix=no
15828
15829  case $GCC,$host_os in
15830  yes,cygwin* | yes,mingw* | yes,pw32*)
15831    library_names_spec='$libname.dll.a'
15832    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15833    postinstall_cmds='base_file=`basename \${file}`~
15834      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15835      dldir=$destdir/`dirname \$dlpath`~
15836      test -d \$dldir || mkdir -p \$dldir~
15837      $install_prog $dir/$dlname \$dldir/$dlname~
15838      chmod a+x \$dldir/$dlname'
15839    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15840      dlpath=$dir/\$dldll~
15841       $rm \$dlpath'
15842    shlibpath_overrides_runpath=yes
15843
15844    case $host_os in
15845    cygwin*)
15846      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15847      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15848      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15849      ;;
15850    mingw*)
15851      # MinGW DLLs use traditional 'lib' prefix
15852      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15853      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15854      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15855        # It is most probably a Windows format PATH printed by
15856        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15857        # path with ; separators, and with drive letters. We can handle the
15858        # drive letters (cygwin fileutils understands them), so leave them,
15859        # especially as we might pass files found there to a mingw objdump,
15860        # which wouldn't understand a cygwinified path. Ahh.
15861        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15862      else
15863        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15864      fi
15865      ;;
15866    pw32*)
15867      # pw32 DLLs use 'pw' prefix rather than 'lib'
15868      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15869      ;;
15870    esac
15871    ;;
15872
15873  *)
15874    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15875    ;;
15876  esac
15877  dynamic_linker='Win32 ld.exe'
15878  # FIXME: first we should search . and the directory the executable is in
15879  shlibpath_var=PATH
15880  ;;
15881
15882darwin* | rhapsody*)
15883  dynamic_linker="$host_os dyld"
15884  version_type=darwin
15885  need_lib_prefix=no
15886  need_version=no
15887  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15888  soname_spec='${libname}${release}${major}$shared_ext'
15889  shlibpath_overrides_runpath=yes
15890  shlibpath_var=DYLD_LIBRARY_PATH
15891  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15892  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15893  if test "$GCC" = yes; then
15894    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15895  else
15896    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15897  fi
15898  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15899  ;;
15900
15901dgux*)
15902  version_type=linux
15903  need_lib_prefix=no
15904  need_version=no
15905  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15906  soname_spec='${libname}${release}${shared_ext}$major'
15907  shlibpath_var=LD_LIBRARY_PATH
15908  ;;
15909
15910freebsd1*)
15911  dynamic_linker=no
15912  ;;
15913
15914kfreebsd*-gnu)
15915  version_type=linux
15916  need_lib_prefix=no
15917  need_version=no
15918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15919  soname_spec='${libname}${release}${shared_ext}$major'
15920  shlibpath_var=LD_LIBRARY_PATH
15921  shlibpath_overrides_runpath=no
15922  hardcode_into_libs=yes
15923  dynamic_linker='GNU ld.so'
15924  ;;
15925
15926freebsd* | dragonfly*)
15927  # DragonFly does not have aout.  When/if they implement a new
15928  # versioning mechanism, adjust this.
15929  if test -x /usr/bin/objformat; then
15930    objformat=`/usr/bin/objformat`
15931  else
15932    case $host_os in
15933    freebsd[123]*) objformat=aout ;;
15934    *) objformat=elf ;;
15935    esac
15936  fi
15937  version_type=freebsd-$objformat
15938  case $version_type in
15939    freebsd-elf*)
15940      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15941      need_version=no
15942      need_lib_prefix=no
15943      ;;
15944    freebsd-*)
15945      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15946      need_version=yes
15947      ;;
15948  esac
15949  shlibpath_var=LD_LIBRARY_PATH
15950  case $host_os in
15951  freebsd2*)
15952    shlibpath_overrides_runpath=yes
15953    ;;
15954  freebsd3.[01]* | freebsdelf3.[01]*)
15955    shlibpath_overrides_runpath=yes
15956    hardcode_into_libs=yes
15957    ;;
15958  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15959  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15960    shlibpath_overrides_runpath=no
15961    hardcode_into_libs=yes
15962    ;;
15963  freebsd*) # from 4.6 on
15964    shlibpath_overrides_runpath=yes
15965    hardcode_into_libs=yes
15966    ;;
15967  esac
15968  ;;
15969
15970gnu*)
15971  version_type=linux
15972  need_lib_prefix=no
15973  need_version=no
15974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15975  soname_spec='${libname}${release}${shared_ext}$major'
15976  shlibpath_var=LD_LIBRARY_PATH
15977  hardcode_into_libs=yes
15978  ;;
15979
15980hpux9* | hpux10* | hpux11*)
15981  # Give a soname corresponding to the major version so that dld.sl refuses to
15982  # link against other versions.
15983  version_type=sunos
15984  need_lib_prefix=no
15985  need_version=no
15986  case $host_cpu in
15987  ia64*)
15988    shrext_cmds='.so'
15989    hardcode_into_libs=yes
15990    dynamic_linker="$host_os dld.so"
15991    shlibpath_var=LD_LIBRARY_PATH
15992    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15993    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994    soname_spec='${libname}${release}${shared_ext}$major'
15995    if test "X$HPUX_IA64_MODE" = X32; then
15996      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15997    else
15998      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15999    fi
16000    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16001    ;;
16002   hppa*64*)
16003     shrext_cmds='.sl'
16004     hardcode_into_libs=yes
16005     dynamic_linker="$host_os dld.sl"
16006     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16007     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16008     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16009     soname_spec='${libname}${release}${shared_ext}$major'
16010     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16011     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16012     ;;
16013   *)
16014    shrext_cmds='.sl'
16015    dynamic_linker="$host_os dld.sl"
16016    shlibpath_var=SHLIB_PATH
16017    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16018    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019    soname_spec='${libname}${release}${shared_ext}$major'
16020    ;;
16021  esac
16022  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16023  postinstall_cmds='chmod 555 $lib'
16024  ;;
16025
16026interix3*)
16027  version_type=linux
16028  need_lib_prefix=no
16029  need_version=no
16030  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16031  soname_spec='${libname}${release}${shared_ext}$major'
16032  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16033  shlibpath_var=LD_LIBRARY_PATH
16034  shlibpath_overrides_runpath=no
16035  hardcode_into_libs=yes
16036  ;;
16037
16038irix5* | irix6* | nonstopux*)
16039  case $host_os in
16040    nonstopux*) version_type=nonstopux ;;
16041    *)
16042	if test "$lt_cv_prog_gnu_ld" = yes; then
16043		version_type=linux
16044	else
16045		version_type=irix
16046	fi ;;
16047  esac
16048  need_lib_prefix=no
16049  need_version=no
16050  soname_spec='${libname}${release}${shared_ext}$major'
16051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16052  case $host_os in
16053  irix5* | nonstopux*)
16054    libsuff= shlibsuff=
16055    ;;
16056  *)
16057    case $LD in # libtool.m4 will add one of these switches to LD
16058    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16059      libsuff= shlibsuff= libmagic=32-bit;;
16060    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16061      libsuff=32 shlibsuff=N32 libmagic=N32;;
16062    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16063      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16064    *) libsuff= shlibsuff= libmagic=never-match;;
16065    esac
16066    ;;
16067  esac
16068  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16069  shlibpath_overrides_runpath=no
16070  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16071  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16072  hardcode_into_libs=yes
16073  ;;
16074
16075# No shared lib support for Linux oldld, aout, or coff.
16076linux*oldld* | linux*aout* | linux*coff*)
16077  dynamic_linker=no
16078  ;;
16079
16080# This must be Linux ELF.
16081linux*)
16082  version_type=linux
16083  need_lib_prefix=no
16084  need_version=no
16085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086  soname_spec='${libname}${release}${shared_ext}$major'
16087  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16088  shlibpath_var=LD_LIBRARY_PATH
16089  shlibpath_overrides_runpath=no
16090  # This implies no fast_install, which is unacceptable.
16091  # Some rework will be needed to allow for fast_install
16092  # before this can be enabled.
16093  hardcode_into_libs=yes
16094
16095  # Append ld.so.conf contents to the search path
16096  if test -f /etc/ld.so.conf; then
16097    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16098    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16099  fi
16100
16101  # We used to test for /lib/ld.so.1 and disable shared libraries on
16102  # powerpc, because MkLinux only supported shared libraries with the
16103  # GNU dynamic linker.  Since this was broken with cross compilers,
16104  # most powerpc-linux boxes support dynamic linking these days and
16105  # people can always --disable-shared, the test was removed, and we
16106  # assume the GNU/Linux dynamic linker is in use.
16107  dynamic_linker='GNU/Linux ld.so'
16108  ;;
16109
16110knetbsd*-gnu)
16111  version_type=linux
16112  need_lib_prefix=no
16113  need_version=no
16114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16115  soname_spec='${libname}${release}${shared_ext}$major'
16116  shlibpath_var=LD_LIBRARY_PATH
16117  shlibpath_overrides_runpath=no
16118  hardcode_into_libs=yes
16119  dynamic_linker='GNU ld.so'
16120  ;;
16121
16122netbsd*)
16123  version_type=sunos
16124  need_lib_prefix=no
16125  need_version=no
16126  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16127    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16128    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16129    dynamic_linker='NetBSD (a.out) ld.so'
16130  else
16131    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16132    soname_spec='${libname}${release}${shared_ext}$major'
16133    dynamic_linker='NetBSD ld.elf_so'
16134  fi
16135  shlibpath_var=LD_LIBRARY_PATH
16136  shlibpath_overrides_runpath=yes
16137  hardcode_into_libs=yes
16138  ;;
16139
16140newsos6)
16141  version_type=linux
16142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16143  shlibpath_var=LD_LIBRARY_PATH
16144  shlibpath_overrides_runpath=yes
16145  ;;
16146
16147nto-qnx*)
16148  version_type=linux
16149  need_lib_prefix=no
16150  need_version=no
16151  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152  soname_spec='${libname}${release}${shared_ext}$major'
16153  shlibpath_var=LD_LIBRARY_PATH
16154  shlibpath_overrides_runpath=yes
16155  ;;
16156
16157openbsd*)
16158  version_type=sunos
16159  sys_lib_dlsearch_path_spec="/usr/lib"
16160  need_lib_prefix=no
16161  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16162  case $host_os in
16163    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16164    *)                         need_version=no  ;;
16165  esac
16166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16167  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16168  shlibpath_var=LD_LIBRARY_PATH
16169  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16170    case $host_os in
16171      openbsd2.[89] | openbsd2.[89].*)
16172	shlibpath_overrides_runpath=no
16173	;;
16174      *)
16175	shlibpath_overrides_runpath=yes
16176	;;
16177      esac
16178  else
16179    shlibpath_overrides_runpath=yes
16180  fi
16181  ;;
16182
16183os2*)
16184  libname_spec='$name'
16185  shrext_cmds=".dll"
16186  need_lib_prefix=no
16187  library_names_spec='$libname${shared_ext} $libname.a'
16188  dynamic_linker='OS/2 ld.exe'
16189  shlibpath_var=LIBPATH
16190  ;;
16191
16192osf3* | osf4* | osf5*)
16193  version_type=osf
16194  need_lib_prefix=no
16195  need_version=no
16196  soname_spec='${libname}${release}${shared_ext}$major'
16197  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16198  shlibpath_var=LD_LIBRARY_PATH
16199  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16200  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16201  ;;
16202
16203solaris*)
16204  version_type=linux
16205  need_lib_prefix=no
16206  need_version=no
16207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16208  soname_spec='${libname}${release}${shared_ext}$major'
16209  shlibpath_var=LD_LIBRARY_PATH
16210  shlibpath_overrides_runpath=yes
16211  hardcode_into_libs=yes
16212  # ldd complains unless libraries are executable
16213  postinstall_cmds='chmod +x $lib'
16214  ;;
16215
16216sunos4*)
16217  version_type=sunos
16218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16219  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16220  shlibpath_var=LD_LIBRARY_PATH
16221  shlibpath_overrides_runpath=yes
16222  if test "$with_gnu_ld" = yes; then
16223    need_lib_prefix=no
16224  fi
16225  need_version=yes
16226  ;;
16227
16228sysv4 | sysv4.3*)
16229  version_type=linux
16230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231  soname_spec='${libname}${release}${shared_ext}$major'
16232  shlibpath_var=LD_LIBRARY_PATH
16233  case $host_vendor in
16234    sni)
16235      shlibpath_overrides_runpath=no
16236      need_lib_prefix=no
16237      export_dynamic_flag_spec='${wl}-Blargedynsym'
16238      runpath_var=LD_RUN_PATH
16239      ;;
16240    siemens)
16241      need_lib_prefix=no
16242      ;;
16243    motorola)
16244      need_lib_prefix=no
16245      need_version=no
16246      shlibpath_overrides_runpath=no
16247      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16248      ;;
16249  esac
16250  ;;
16251
16252sysv4*MP*)
16253  if test -d /usr/nec ;then
16254    version_type=linux
16255    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16256    soname_spec='$libname${shared_ext}.$major'
16257    shlibpath_var=LD_LIBRARY_PATH
16258  fi
16259  ;;
16260
16261sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16262  version_type=freebsd-elf
16263  need_lib_prefix=no
16264  need_version=no
16265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16266  soname_spec='${libname}${release}${shared_ext}$major'
16267  shlibpath_var=LD_LIBRARY_PATH
16268  hardcode_into_libs=yes
16269  if test "$with_gnu_ld" = yes; then
16270    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16271    shlibpath_overrides_runpath=no
16272  else
16273    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16274    shlibpath_overrides_runpath=yes
16275    case $host_os in
16276      sco3.2v5*)
16277        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16278	;;
16279    esac
16280  fi
16281  sys_lib_dlsearch_path_spec='/usr/lib'
16282  ;;
16283
16284uts4*)
16285  version_type=linux
16286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287  soname_spec='${libname}${release}${shared_ext}$major'
16288  shlibpath_var=LD_LIBRARY_PATH
16289  ;;
16290
16291*)
16292  dynamic_linker=no
16293  ;;
16294esac
16295{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16296echo "${ECHO_T}$dynamic_linker" >&6; }
16297test "$dynamic_linker" = no && can_build_shared=no
16298
16299variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16300if test "$GCC" = yes; then
16301  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16302fi
16303
16304{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16305echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16306hardcode_action_F77=
16307if test -n "$hardcode_libdir_flag_spec_F77" || \
16308   test -n "$runpath_var_F77" || \
16309   test "X$hardcode_automatic_F77" = "Xyes" ; then
16310
16311  # We can hardcode non-existant directories.
16312  if test "$hardcode_direct_F77" != no &&
16313     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16314     # have to relink, otherwise we might link with an installed library
16315     # when we should be linking with a yet-to-be-installed one
16316     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16317     test "$hardcode_minus_L_F77" != no; then
16318    # Linking always hardcodes the temporary library directory.
16319    hardcode_action_F77=relink
16320  else
16321    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16322    hardcode_action_F77=immediate
16323  fi
16324else
16325  # We cannot hardcode anything, or else we can only hardcode existing
16326  # directories.
16327  hardcode_action_F77=unsupported
16328fi
16329{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16330echo "${ECHO_T}$hardcode_action_F77" >&6; }
16331
16332if test "$hardcode_action_F77" = relink; then
16333  # Fast installation is not supported
16334  enable_fast_install=no
16335elif test "$shlibpath_overrides_runpath" = yes ||
16336     test "$enable_shared" = no; then
16337  # Fast installation is not necessary
16338  enable_fast_install=needless
16339fi
16340
16341
16342# The else clause should only fire when bootstrapping the
16343# libtool distribution, otherwise you forgot to ship ltmain.sh
16344# with your package, and you will get complaints that there are
16345# no rules to generate ltmain.sh.
16346if test -f "$ltmain"; then
16347  # See if we are running on zsh, and set the options which allow our commands through
16348  # without removal of \ escapes.
16349  if test -n "${ZSH_VERSION+set}" ; then
16350    setopt NO_GLOB_SUBST
16351  fi
16352  # Now quote all the things that may contain metacharacters while being
16353  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16354  # variables and quote the copies for generation of the libtool script.
16355  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16356    SED SHELL STRIP \
16357    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16358    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16359    deplibs_check_method reload_flag reload_cmds need_locks \
16360    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16361    lt_cv_sys_global_symbol_to_c_name_address \
16362    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16363    old_postinstall_cmds old_postuninstall_cmds \
16364    compiler_F77 \
16365    CC_F77 \
16366    LD_F77 \
16367    lt_prog_compiler_wl_F77 \
16368    lt_prog_compiler_pic_F77 \
16369    lt_prog_compiler_static_F77 \
16370    lt_prog_compiler_no_builtin_flag_F77 \
16371    export_dynamic_flag_spec_F77 \
16372    thread_safe_flag_spec_F77 \
16373    whole_archive_flag_spec_F77 \
16374    enable_shared_with_static_runtimes_F77 \
16375    old_archive_cmds_F77 \
16376    old_archive_from_new_cmds_F77 \
16377    predep_objects_F77 \
16378    postdep_objects_F77 \
16379    predeps_F77 \
16380    postdeps_F77 \
16381    compiler_lib_search_path_F77 \
16382    archive_cmds_F77 \
16383    archive_expsym_cmds_F77 \
16384    postinstall_cmds_F77 \
16385    postuninstall_cmds_F77 \
16386    old_archive_from_expsyms_cmds_F77 \
16387    allow_undefined_flag_F77 \
16388    no_undefined_flag_F77 \
16389    export_symbols_cmds_F77 \
16390    hardcode_libdir_flag_spec_F77 \
16391    hardcode_libdir_flag_spec_ld_F77 \
16392    hardcode_libdir_separator_F77 \
16393    hardcode_automatic_F77 \
16394    module_cmds_F77 \
16395    module_expsym_cmds_F77 \
16396    lt_cv_prog_compiler_c_o_F77 \
16397    exclude_expsyms_F77 \
16398    include_expsyms_F77; do
16399
16400    case $var in
16401    old_archive_cmds_F77 | \
16402    old_archive_from_new_cmds_F77 | \
16403    archive_cmds_F77 | \
16404    archive_expsym_cmds_F77 | \
16405    module_cmds_F77 | \
16406    module_expsym_cmds_F77 | \
16407    old_archive_from_expsyms_cmds_F77 | \
16408    export_symbols_cmds_F77 | \
16409    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16410    postinstall_cmds | postuninstall_cmds | \
16411    old_postinstall_cmds | old_postuninstall_cmds | \
16412    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16413      # Double-quote double-evaled strings.
16414      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16415      ;;
16416    *)
16417      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16418      ;;
16419    esac
16420  done
16421
16422  case $lt_echo in
16423  *'\$0 --fallback-echo"')
16424    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16425    ;;
16426  esac
16427
16428cfgfile="$ofile"
16429
16430  cat <<__EOF__ >> "$cfgfile"
16431# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16432
16433# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16434
16435# Shell to use when invoking shell scripts.
16436SHELL=$lt_SHELL
16437
16438# Whether or not to build shared libraries.
16439build_libtool_libs=$enable_shared
16440
16441# Whether or not to build static libraries.
16442build_old_libs=$enable_static
16443
16444# Whether or not to add -lc for building shared libraries.
16445build_libtool_need_lc=$archive_cmds_need_lc_F77
16446
16447# Whether or not to disallow shared libs when runtime libs are static
16448allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16449
16450# Whether or not to optimize for fast installation.
16451fast_install=$enable_fast_install
16452
16453# The host system.
16454host_alias=$host_alias
16455host=$host
16456host_os=$host_os
16457
16458# The build system.
16459build_alias=$build_alias
16460build=$build
16461build_os=$build_os
16462
16463# An echo program that does not interpret backslashes.
16464echo=$lt_echo
16465
16466# The archiver.
16467AR=$lt_AR
16468AR_FLAGS=$lt_AR_FLAGS
16469
16470# A C compiler.
16471LTCC=$lt_LTCC
16472
16473# LTCC compiler flags.
16474LTCFLAGS=$lt_LTCFLAGS
16475
16476# A language-specific compiler.
16477CC=$lt_compiler_F77
16478
16479# Is the compiler the GNU C compiler?
16480with_gcc=$GCC_F77
16481
16482# An ERE matcher.
16483EGREP=$lt_EGREP
16484
16485# The linker used to build libraries.
16486LD=$lt_LD_F77
16487
16488# Whether we need hard or soft links.
16489LN_S=$lt_LN_S
16490
16491# A BSD-compatible nm program.
16492NM=$lt_NM
16493
16494# A symbol stripping program
16495STRIP=$lt_STRIP
16496
16497# Used to examine libraries when file_magic_cmd begins "file"
16498MAGIC_CMD=$MAGIC_CMD
16499
16500# Used on cygwin: DLL creation program.
16501DLLTOOL="$DLLTOOL"
16502
16503# Used on cygwin: object dumper.
16504OBJDUMP="$OBJDUMP"
16505
16506# Used on cygwin: assembler.
16507AS="$AS"
16508
16509# The name of the directory that contains temporary libtool files.
16510objdir=$objdir
16511
16512# How to create reloadable object files.
16513reload_flag=$lt_reload_flag
16514reload_cmds=$lt_reload_cmds
16515
16516# How to pass a linker flag through the compiler.
16517wl=$lt_lt_prog_compiler_wl_F77
16518
16519# Object file suffix (normally "o").
16520objext="$ac_objext"
16521
16522# Old archive suffix (normally "a").
16523libext="$libext"
16524
16525# Shared library suffix (normally ".so").
16526shrext_cmds='$shrext_cmds'
16527
16528# Executable file suffix (normally "").
16529exeext="$exeext"
16530
16531# Additional compiler flags for building library objects.
16532pic_flag=$lt_lt_prog_compiler_pic_F77
16533pic_mode=$pic_mode
16534
16535# What is the maximum length of a command?
16536max_cmd_len=$lt_cv_sys_max_cmd_len
16537
16538# Does compiler simultaneously support -c and -o options?
16539compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16540
16541# Must we lock files when doing compilation?
16542need_locks=$lt_need_locks
16543
16544# Do we need the lib prefix for modules?
16545need_lib_prefix=$need_lib_prefix
16546
16547# Do we need a version for libraries?
16548need_version=$need_version
16549
16550# Whether dlopen is supported.
16551dlopen_support=$enable_dlopen
16552
16553# Whether dlopen of programs is supported.
16554dlopen_self=$enable_dlopen_self
16555
16556# Whether dlopen of statically linked programs is supported.
16557dlopen_self_static=$enable_dlopen_self_static
16558
16559# Compiler flag to prevent dynamic linking.
16560link_static_flag=$lt_lt_prog_compiler_static_F77
16561
16562# Compiler flag to turn off builtin functions.
16563no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16564
16565# Compiler flag to allow reflexive dlopens.
16566export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16567
16568# Compiler flag to generate shared objects directly from archives.
16569whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16570
16571# Compiler flag to generate thread-safe objects.
16572thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16573
16574# Library versioning type.
16575version_type=$version_type
16576
16577# Format of library name prefix.
16578libname_spec=$lt_libname_spec
16579
16580# List of archive names.  First name is the real one, the rest are links.
16581# The last name is the one that the linker finds with -lNAME.
16582library_names_spec=$lt_library_names_spec
16583
16584# The coded name of the library, if different from the real name.
16585soname_spec=$lt_soname_spec
16586
16587# Commands used to build and install an old-style archive.
16588RANLIB=$lt_RANLIB
16589old_archive_cmds=$lt_old_archive_cmds_F77
16590old_postinstall_cmds=$lt_old_postinstall_cmds
16591old_postuninstall_cmds=$lt_old_postuninstall_cmds
16592
16593# Create an old-style archive from a shared archive.
16594old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16595
16596# Create a temporary old-style archive to link instead of a shared archive.
16597old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16598
16599# Commands used to build and install a shared archive.
16600archive_cmds=$lt_archive_cmds_F77
16601archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16602postinstall_cmds=$lt_postinstall_cmds
16603postuninstall_cmds=$lt_postuninstall_cmds
16604
16605# Commands used to build a loadable module (assumed same as above if empty)
16606module_cmds=$lt_module_cmds_F77
16607module_expsym_cmds=$lt_module_expsym_cmds_F77
16608
16609# Commands to strip libraries.
16610old_striplib=$lt_old_striplib
16611striplib=$lt_striplib
16612
16613# Dependencies to place before the objects being linked to create a
16614# shared library.
16615predep_objects=$lt_predep_objects_F77
16616
16617# Dependencies to place after the objects being linked to create a
16618# shared library.
16619postdep_objects=$lt_postdep_objects_F77
16620
16621# Dependencies to place before the objects being linked to create a
16622# shared library.
16623predeps=$lt_predeps_F77
16624
16625# Dependencies to place after the objects being linked to create a
16626# shared library.
16627postdeps=$lt_postdeps_F77
16628
16629# The library search path used internally by the compiler when linking
16630# a shared library.
16631compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16632
16633# Method to check whether dependent libraries are shared objects.
16634deplibs_check_method=$lt_deplibs_check_method
16635
16636# Command to use when deplibs_check_method == file_magic.
16637file_magic_cmd=$lt_file_magic_cmd
16638
16639# Flag that allows shared libraries with undefined symbols to be built.
16640allow_undefined_flag=$lt_allow_undefined_flag_F77
16641
16642# Flag that forces no undefined symbols.
16643no_undefined_flag=$lt_no_undefined_flag_F77
16644
16645# Commands used to finish a libtool library installation in a directory.
16646finish_cmds=$lt_finish_cmds
16647
16648# Same as above, but a single script fragment to be evaled but not shown.
16649finish_eval=$lt_finish_eval
16650
16651# Take the output of nm and produce a listing of raw symbols and C names.
16652global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16653
16654# Transform the output of nm in a proper C declaration
16655global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16656
16657# Transform the output of nm in a C name address pair
16658global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16659
16660# This is the shared library runtime path variable.
16661runpath_var=$runpath_var
16662
16663# This is the shared library path variable.
16664shlibpath_var=$shlibpath_var
16665
16666# Is shlibpath searched before the hard-coded library search path?
16667shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16668
16669# How to hardcode a shared library path into an executable.
16670hardcode_action=$hardcode_action_F77
16671
16672# Whether we should hardcode library paths into libraries.
16673hardcode_into_libs=$hardcode_into_libs
16674
16675# Flag to hardcode \$libdir into a binary during linking.
16676# This must work even if \$libdir does not exist.
16677hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16678
16679# If ld is used when linking, flag to hardcode \$libdir into
16680# a binary during linking. This must work even if \$libdir does
16681# not exist.
16682hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16683
16684# Whether we need a single -rpath flag with a separated argument.
16685hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16686
16687# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16688# resulting binary.
16689hardcode_direct=$hardcode_direct_F77
16690
16691# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16692# resulting binary.
16693hardcode_minus_L=$hardcode_minus_L_F77
16694
16695# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16696# the resulting binary.
16697hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16698
16699# Set to yes if building a shared library automatically hardcodes DIR into the library
16700# and all subsequent libraries and executables linked against it.
16701hardcode_automatic=$hardcode_automatic_F77
16702
16703# Variables whose values should be saved in libtool wrapper scripts and
16704# restored at relink time.
16705variables_saved_for_relink="$variables_saved_for_relink"
16706
16707# Whether libtool must link a program against all its dependency libraries.
16708link_all_deplibs=$link_all_deplibs_F77
16709
16710# Compile-time system search path for libraries
16711sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16712
16713# Run-time system search path for libraries
16714sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16715
16716# Fix the shell variable \$srcfile for the compiler.
16717fix_srcfile_path="$fix_srcfile_path_F77"
16718
16719# Set to yes if exported symbols are required.
16720always_export_symbols=$always_export_symbols_F77
16721
16722# The commands to list exported symbols.
16723export_symbols_cmds=$lt_export_symbols_cmds_F77
16724
16725# The commands to extract the exported symbol list from a shared archive.
16726extract_expsyms_cmds=$lt_extract_expsyms_cmds
16727
16728# Symbols that should not be listed in the preloaded symbols.
16729exclude_expsyms=$lt_exclude_expsyms_F77
16730
16731# Symbols that must always be exported.
16732include_expsyms=$lt_include_expsyms_F77
16733
16734# ### END LIBTOOL TAG CONFIG: $tagname
16735
16736__EOF__
16737
16738
16739else
16740  # If there is no Makefile yet, we rely on a make rule to execute
16741  # `config.status --recheck' to rerun these tests and create the
16742  # libtool script then.
16743  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16744  if test -f "$ltmain_in"; then
16745    test -f Makefile && make "$ltmain"
16746  fi
16747fi
16748
16749
16750ac_ext=c
16751ac_cpp='$CPP $CPPFLAGS'
16752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16754ac_compiler_gnu=$ac_cv_c_compiler_gnu
16755
16756CC="$lt_save_CC"
16757
16758	else
16759	  tagname=""
16760	fi
16761	;;
16762
16763      GCJ)
16764	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16765
16766
16767# Source file extension for Java test sources.
16768ac_ext=java
16769
16770# Object file extension for compiled Java test sources.
16771objext=o
16772objext_GCJ=$objext
16773
16774# Code to be used in simple compile tests
16775lt_simple_compile_test_code="class foo {}\n"
16776
16777# Code to be used in simple link tests
16778lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16779
16780# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16781
16782# If no C compiler was specified, use CC.
16783LTCC=${LTCC-"$CC"}
16784
16785# If no C compiler flags were specified, use CFLAGS.
16786LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16787
16788# Allow CC to be a program name with arguments.
16789compiler=$CC
16790
16791
16792# save warnings/boilerplate of simple test code
16793ac_outfile=conftest.$ac_objext
16794printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16795eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16796_lt_compiler_boilerplate=`cat conftest.err`
16797$rm conftest*
16798
16799ac_outfile=conftest.$ac_objext
16800printf "$lt_simple_link_test_code" >conftest.$ac_ext
16801eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16802_lt_linker_boilerplate=`cat conftest.err`
16803$rm conftest*
16804
16805
16806# Allow CC to be a program name with arguments.
16807lt_save_CC="$CC"
16808CC=${GCJ-"gcj"}
16809compiler=$CC
16810compiler_GCJ=$CC
16811for cc_temp in $compiler""; do
16812  case $cc_temp in
16813    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16814    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16815    \-*) ;;
16816    *) break;;
16817  esac
16818done
16819cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16820
16821
16822# GCJ did not exist at the time GCC didn't implicitly link libc in.
16823archive_cmds_need_lc_GCJ=no
16824
16825old_archive_cmds_GCJ=$old_archive_cmds
16826
16827
16828lt_prog_compiler_no_builtin_flag_GCJ=
16829
16830if test "$GCC" = yes; then
16831  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16832
16833
16834{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16835echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16836if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16837  echo $ECHO_N "(cached) $ECHO_C" >&6
16838else
16839  lt_cv_prog_compiler_rtti_exceptions=no
16840  ac_outfile=conftest.$ac_objext
16841   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16842   lt_compiler_flag="-fno-rtti -fno-exceptions"
16843   # Insert the option either (1) after the last *FLAGS variable, or
16844   # (2) before a word containing "conftest.", or (3) at the end.
16845   # Note that $ac_compile itself does not contain backslashes and begins
16846   # with a dollar sign (not a hyphen), so the echo should work correctly.
16847   # The option is referenced via a variable to avoid confusing sed.
16848   lt_compile=`echo "$ac_compile" | $SED \
16849   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16850   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16851   -e 's:$: $lt_compiler_flag:'`
16852   (eval echo "\"\$as_me:16852: $lt_compile\"" >&5)
16853   (eval "$lt_compile" 2>conftest.err)
16854   ac_status=$?
16855   cat conftest.err >&5
16856   echo "$as_me:16856: \$? = $ac_status" >&5
16857   if (exit $ac_status) && test -s "$ac_outfile"; then
16858     # The compiler can only warn and ignore the option if not recognized
16859     # So say no if there are warnings other than the usual output.
16860     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16861     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16862     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16863       lt_cv_prog_compiler_rtti_exceptions=yes
16864     fi
16865   fi
16866   $rm conftest*
16867
16868fi
16869{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16870echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16871
16872if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16873    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16874else
16875    :
16876fi
16877
16878fi
16879
16880lt_prog_compiler_wl_GCJ=
16881lt_prog_compiler_pic_GCJ=
16882lt_prog_compiler_static_GCJ=
16883
16884{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16885echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16886
16887  if test "$GCC" = yes; then
16888    lt_prog_compiler_wl_GCJ='-Wl,'
16889    lt_prog_compiler_static_GCJ='-static'
16890
16891    case $host_os in
16892      aix*)
16893      # All AIX code is PIC.
16894      if test "$host_cpu" = ia64; then
16895	# AIX 5 now supports IA64 processor
16896	lt_prog_compiler_static_GCJ='-Bstatic'
16897      fi
16898      ;;
16899
16900    amigaos*)
16901      # FIXME: we need at least 68020 code to build shared libraries, but
16902      # adding the `-m68020' flag to GCC prevents building anything better,
16903      # like `-m68040'.
16904      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16905      ;;
16906
16907    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16908      # PIC is the default for these OSes.
16909      ;;
16910
16911    mingw* | pw32* | os2*)
16912      # This hack is so that the source file can tell whether it is being
16913      # built for inclusion in a dll (and should export symbols for example).
16914      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16915      ;;
16916
16917    darwin* | rhapsody*)
16918      # PIC is the default on this platform
16919      # Common symbols not allowed in MH_DYLIB files
16920      lt_prog_compiler_pic_GCJ='-fno-common'
16921      ;;
16922
16923    interix3*)
16924      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16925      # Instead, we relocate shared libraries at runtime.
16926      ;;
16927
16928    msdosdjgpp*)
16929      # Just because we use GCC doesn't mean we suddenly get shared libraries
16930      # on systems that don't support them.
16931      lt_prog_compiler_can_build_shared_GCJ=no
16932      enable_shared=no
16933      ;;
16934
16935    sysv4*MP*)
16936      if test -d /usr/nec; then
16937	lt_prog_compiler_pic_GCJ=-Kconform_pic
16938      fi
16939      ;;
16940
16941    hpux*)
16942      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16943      # not for PA HP-UX.
16944      case $host_cpu in
16945      hppa*64*|ia64*)
16946	# +Z the default
16947	;;
16948      *)
16949	lt_prog_compiler_pic_GCJ='-fPIC'
16950	;;
16951      esac
16952      ;;
16953
16954    *)
16955      lt_prog_compiler_pic_GCJ='-fPIC'
16956      ;;
16957    esac
16958  else
16959    # PORTME Check for flag to pass linker flags through the system compiler.
16960    case $host_os in
16961    aix*)
16962      lt_prog_compiler_wl_GCJ='-Wl,'
16963      if test "$host_cpu" = ia64; then
16964	# AIX 5 now supports IA64 processor
16965	lt_prog_compiler_static_GCJ='-Bstatic'
16966      else
16967	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16968      fi
16969      ;;
16970      darwin*)
16971        # PIC is the default on this platform
16972        # Common symbols not allowed in MH_DYLIB files
16973       case $cc_basename in
16974         xlc*)
16975         lt_prog_compiler_pic_GCJ='-qnocommon'
16976         lt_prog_compiler_wl_GCJ='-Wl,'
16977         ;;
16978       esac
16979       ;;
16980
16981    mingw* | pw32* | os2*)
16982      # This hack is so that the source file can tell whether it is being
16983      # built for inclusion in a dll (and should export symbols for example).
16984      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16985      ;;
16986
16987    hpux9* | hpux10* | hpux11*)
16988      lt_prog_compiler_wl_GCJ='-Wl,'
16989      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16990      # not for PA HP-UX.
16991      case $host_cpu in
16992      hppa*64*|ia64*)
16993	# +Z the default
16994	;;
16995      *)
16996	lt_prog_compiler_pic_GCJ='+Z'
16997	;;
16998      esac
16999      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17000      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17001      ;;
17002
17003    irix5* | irix6* | nonstopux*)
17004      lt_prog_compiler_wl_GCJ='-Wl,'
17005      # PIC (with -KPIC) is the default.
17006      lt_prog_compiler_static_GCJ='-non_shared'
17007      ;;
17008
17009    newsos6)
17010      lt_prog_compiler_pic_GCJ='-KPIC'
17011      lt_prog_compiler_static_GCJ='-Bstatic'
17012      ;;
17013
17014    linux*)
17015      case $cc_basename in
17016      icc* | ecc*)
17017	lt_prog_compiler_wl_GCJ='-Wl,'
17018	lt_prog_compiler_pic_GCJ='-KPIC'
17019	lt_prog_compiler_static_GCJ='-static'
17020        ;;
17021      pgcc* | pgf77* | pgf90* | pgf95*)
17022        # Portland Group compilers (*not* the Pentium gcc compiler,
17023	# which looks to be a dead project)
17024	lt_prog_compiler_wl_GCJ='-Wl,'
17025	lt_prog_compiler_pic_GCJ='-fpic'
17026	lt_prog_compiler_static_GCJ='-Bstatic'
17027        ;;
17028      ccc*)
17029        lt_prog_compiler_wl_GCJ='-Wl,'
17030        # All Alpha code is PIC.
17031        lt_prog_compiler_static_GCJ='-non_shared'
17032        ;;
17033      esac
17034      ;;
17035
17036    osf3* | osf4* | osf5*)
17037      lt_prog_compiler_wl_GCJ='-Wl,'
17038      # All OSF/1 code is PIC.
17039      lt_prog_compiler_static_GCJ='-non_shared'
17040      ;;
17041
17042    solaris*)
17043      lt_prog_compiler_pic_GCJ='-KPIC'
17044      lt_prog_compiler_static_GCJ='-Bstatic'
17045      case $cc_basename in
17046      f77* | f90* | f95*)
17047	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17048      *)
17049	lt_prog_compiler_wl_GCJ='-Wl,';;
17050      esac
17051      ;;
17052
17053    sunos4*)
17054      lt_prog_compiler_wl_GCJ='-Qoption ld '
17055      lt_prog_compiler_pic_GCJ='-PIC'
17056      lt_prog_compiler_static_GCJ='-Bstatic'
17057      ;;
17058
17059    sysv4 | sysv4.2uw2* | sysv4.3*)
17060      lt_prog_compiler_wl_GCJ='-Wl,'
17061      lt_prog_compiler_pic_GCJ='-KPIC'
17062      lt_prog_compiler_static_GCJ='-Bstatic'
17063      ;;
17064
17065    sysv4*MP*)
17066      if test -d /usr/nec ;then
17067	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17068	lt_prog_compiler_static_GCJ='-Bstatic'
17069      fi
17070      ;;
17071
17072    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17073      lt_prog_compiler_wl_GCJ='-Wl,'
17074      lt_prog_compiler_pic_GCJ='-KPIC'
17075      lt_prog_compiler_static_GCJ='-Bstatic'
17076      ;;
17077
17078    unicos*)
17079      lt_prog_compiler_wl_GCJ='-Wl,'
17080      lt_prog_compiler_can_build_shared_GCJ=no
17081      ;;
17082
17083    uts4*)
17084      lt_prog_compiler_pic_GCJ='-pic'
17085      lt_prog_compiler_static_GCJ='-Bstatic'
17086      ;;
17087
17088    *)
17089      lt_prog_compiler_can_build_shared_GCJ=no
17090      ;;
17091    esac
17092  fi
17093
17094{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17095echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17096
17097#
17098# Check to make sure the PIC flag actually works.
17099#
17100if test -n "$lt_prog_compiler_pic_GCJ"; then
17101
17102{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17103echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17104if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17105  echo $ECHO_N "(cached) $ECHO_C" >&6
17106else
17107  lt_prog_compiler_pic_works_GCJ=no
17108  ac_outfile=conftest.$ac_objext
17109   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17110   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17111   # Insert the option either (1) after the last *FLAGS variable, or
17112   # (2) before a word containing "conftest.", or (3) at the end.
17113   # Note that $ac_compile itself does not contain backslashes and begins
17114   # with a dollar sign (not a hyphen), so the echo should work correctly.
17115   # The option is referenced via a variable to avoid confusing sed.
17116   lt_compile=`echo "$ac_compile" | $SED \
17117   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17118   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17119   -e 's:$: $lt_compiler_flag:'`
17120   (eval echo "\"\$as_me:17120: $lt_compile\"" >&5)
17121   (eval "$lt_compile" 2>conftest.err)
17122   ac_status=$?
17123   cat conftest.err >&5
17124   echo "$as_me:17124: \$? = $ac_status" >&5
17125   if (exit $ac_status) && test -s "$ac_outfile"; then
17126     # The compiler can only warn and ignore the option if not recognized
17127     # So say no if there are warnings other than the usual output.
17128     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17129     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17130     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17131       lt_prog_compiler_pic_works_GCJ=yes
17132     fi
17133   fi
17134   $rm conftest*
17135
17136fi
17137{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17138echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17139
17140if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17141    case $lt_prog_compiler_pic_GCJ in
17142     "" | " "*) ;;
17143     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17144     esac
17145else
17146    lt_prog_compiler_pic_GCJ=
17147     lt_prog_compiler_can_build_shared_GCJ=no
17148fi
17149
17150fi
17151case $host_os in
17152  # For platforms which do not support PIC, -DPIC is meaningless:
17153  *djgpp*)
17154    lt_prog_compiler_pic_GCJ=
17155    ;;
17156  *)
17157    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17158    ;;
17159esac
17160
17161#
17162# Check to make sure the static flag actually works.
17163#
17164wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17165{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17166echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17167if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17168  echo $ECHO_N "(cached) $ECHO_C" >&6
17169else
17170  lt_prog_compiler_static_works_GCJ=no
17171   save_LDFLAGS="$LDFLAGS"
17172   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17173   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17174   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17175     # The linker can only warn and ignore the option if not recognized
17176     # So say no if there are warnings
17177     if test -s conftest.err; then
17178       # Append any errors to the config.log.
17179       cat conftest.err 1>&5
17180       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17181       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17182       if diff conftest.exp conftest.er2 >/dev/null; then
17183         lt_prog_compiler_static_works_GCJ=yes
17184       fi
17185     else
17186       lt_prog_compiler_static_works_GCJ=yes
17187     fi
17188   fi
17189   $rm conftest*
17190   LDFLAGS="$save_LDFLAGS"
17191
17192fi
17193{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17194echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17195
17196if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17197    :
17198else
17199    lt_prog_compiler_static_GCJ=
17200fi
17201
17202
17203{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17204echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17205if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17206  echo $ECHO_N "(cached) $ECHO_C" >&6
17207else
17208  lt_cv_prog_compiler_c_o_GCJ=no
17209   $rm -r conftest 2>/dev/null
17210   mkdir conftest
17211   cd conftest
17212   mkdir out
17213   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17214
17215   lt_compiler_flag="-o out/conftest2.$ac_objext"
17216   # Insert the option either (1) after the last *FLAGS variable, or
17217   # (2) before a word containing "conftest.", or (3) at the end.
17218   # Note that $ac_compile itself does not contain backslashes and begins
17219   # with a dollar sign (not a hyphen), so the echo should work correctly.
17220   lt_compile=`echo "$ac_compile" | $SED \
17221   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17222   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17223   -e 's:$: $lt_compiler_flag:'`
17224   (eval echo "\"\$as_me:17224: $lt_compile\"" >&5)
17225   (eval "$lt_compile" 2>out/conftest.err)
17226   ac_status=$?
17227   cat out/conftest.err >&5
17228   echo "$as_me:17228: \$? = $ac_status" >&5
17229   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17230   then
17231     # The compiler can only warn and ignore the option if not recognized
17232     # So say no if there are warnings
17233     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17234     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17235     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17236       lt_cv_prog_compiler_c_o_GCJ=yes
17237     fi
17238   fi
17239   chmod u+w . 2>&5
17240   $rm conftest*
17241   # SGI C++ compiler will create directory out/ii_files/ for
17242   # template instantiation
17243   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17244   $rm out/* && rmdir out
17245   cd ..
17246   rmdir conftest
17247   $rm conftest*
17248
17249fi
17250{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17251echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17252
17253
17254hard_links="nottested"
17255if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17256  # do not overwrite the value of need_locks provided by the user
17257  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17258echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17259  hard_links=yes
17260  $rm conftest*
17261  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17262  touch conftest.a
17263  ln conftest.a conftest.b 2>&5 || hard_links=no
17264  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17265  { echo "$as_me:$LINENO: result: $hard_links" >&5
17266echo "${ECHO_T}$hard_links" >&6; }
17267  if test "$hard_links" = no; then
17268    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17269echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17270    need_locks=warn
17271  fi
17272else
17273  need_locks=no
17274fi
17275
17276{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17277echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17278
17279  runpath_var=
17280  allow_undefined_flag_GCJ=
17281  enable_shared_with_static_runtimes_GCJ=no
17282  archive_cmds_GCJ=
17283  archive_expsym_cmds_GCJ=
17284  old_archive_From_new_cmds_GCJ=
17285  old_archive_from_expsyms_cmds_GCJ=
17286  export_dynamic_flag_spec_GCJ=
17287  whole_archive_flag_spec_GCJ=
17288  thread_safe_flag_spec_GCJ=
17289  hardcode_libdir_flag_spec_GCJ=
17290  hardcode_libdir_flag_spec_ld_GCJ=
17291  hardcode_libdir_separator_GCJ=
17292  hardcode_direct_GCJ=no
17293  hardcode_minus_L_GCJ=no
17294  hardcode_shlibpath_var_GCJ=unsupported
17295  link_all_deplibs_GCJ=unknown
17296  hardcode_automatic_GCJ=no
17297  module_cmds_GCJ=
17298  module_expsym_cmds_GCJ=
17299  always_export_symbols_GCJ=no
17300  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17301  # include_expsyms should be a list of space-separated symbols to be *always*
17302  # included in the symbol list
17303  include_expsyms_GCJ=
17304  # exclude_expsyms can be an extended regexp of symbols to exclude
17305  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17306  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17307  # as well as any symbol that contains `d'.
17308  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17309  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17310  # platforms (ab)use it in PIC code, but their linkers get confused if
17311  # the symbol is explicitly referenced.  Since portable code cannot
17312  # rely on this symbol name, it's probably fine to never include it in
17313  # preloaded symbol tables.
17314  extract_expsyms_cmds=
17315  # Just being paranoid about ensuring that cc_basename is set.
17316  for cc_temp in $compiler""; do
17317  case $cc_temp in
17318    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17319    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17320    \-*) ;;
17321    *) break;;
17322  esac
17323done
17324cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17325
17326  case $host_os in
17327  cygwin* | mingw* | pw32*)
17328    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17329    # When not using gcc, we currently assume that we are using
17330    # Microsoft Visual C++.
17331    if test "$GCC" != yes; then
17332      with_gnu_ld=no
17333    fi
17334    ;;
17335  interix*)
17336    # we just hope/assume this is gcc and not c89 (= MSVC++)
17337    with_gnu_ld=yes
17338    ;;
17339  openbsd*)
17340    with_gnu_ld=no
17341    ;;
17342  esac
17343
17344  ld_shlibs_GCJ=yes
17345  if test "$with_gnu_ld" = yes; then
17346    # If archive_cmds runs LD, not CC, wlarc should be empty
17347    wlarc='${wl}'
17348
17349    # Set some defaults for GNU ld with shared library support. These
17350    # are reset later if shared libraries are not supported. Putting them
17351    # here allows them to be overridden if necessary.
17352    runpath_var=LD_RUN_PATH
17353    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17354    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17355    # ancient GNU ld didn't support --whole-archive et. al.
17356    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17357	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17358      else
17359  	whole_archive_flag_spec_GCJ=
17360    fi
17361    supports_anon_versioning=no
17362    case `$LD -v 2>/dev/null` in
17363      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17364      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17365      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17366      *\ 2.11.*) ;; # other 2.11 versions
17367      *) supports_anon_versioning=yes ;;
17368    esac
17369
17370    # See if GNU ld supports shared libraries.
17371    case $host_os in
17372    aix3* | aix4* | aix5*)
17373      # On AIX/PPC, the GNU linker is very broken
17374      if test "$host_cpu" != ia64; then
17375	ld_shlibs_GCJ=no
17376	cat <<EOF 1>&2
17377
17378*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17379*** to be unable to reliably create shared libraries on AIX.
17380*** Therefore, libtool is disabling shared libraries support.  If you
17381*** really care for shared libraries, you may want to modify your PATH
17382*** so that a non-GNU linker is found, and then restart.
17383
17384EOF
17385      fi
17386      ;;
17387
17388    amigaos*)
17389      archive_cmds_GCJ='$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)'
17390      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17391      hardcode_minus_L_GCJ=yes
17392
17393      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17394      # that the semantics of dynamic libraries on AmigaOS, at least up
17395      # to version 4, is to share data among multiple programs linked
17396      # with the same dynamic library.  Since this doesn't match the
17397      # behavior of shared libraries on other platforms, we can't use
17398      # them.
17399      ld_shlibs_GCJ=no
17400      ;;
17401
17402    beos*)
17403      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17404	allow_undefined_flag_GCJ=unsupported
17405	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17406	# support --undefined.  This deserves some investigation.  FIXME
17407	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17408      else
17409	ld_shlibs_GCJ=no
17410      fi
17411      ;;
17412
17413    cygwin* | mingw* | pw32*)
17414      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17415      # as there is no search path for DLLs.
17416      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17417      allow_undefined_flag_GCJ=unsupported
17418      always_export_symbols_GCJ=no
17419      enable_shared_with_static_runtimes_GCJ=yes
17420      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17421
17422      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17423        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17424	# If the export-symbols file already is a .def file (1st line
17425	# is EXPORTS), use it as is; otherwise, prepend...
17426	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17427	  cp $export_symbols $output_objdir/$soname.def;
17428	else
17429	  echo EXPORTS > $output_objdir/$soname.def;
17430	  cat $export_symbols >> $output_objdir/$soname.def;
17431	fi~
17432	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17433      else
17434	ld_shlibs_GCJ=no
17435      fi
17436      ;;
17437
17438    interix3*)
17439      hardcode_direct_GCJ=no
17440      hardcode_shlibpath_var_GCJ=no
17441      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17442      export_dynamic_flag_spec_GCJ='${wl}-E'
17443      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17444      # Instead, shared libraries are loaded at an image base (0x10000000 by
17445      # default) and relocated if they conflict, which is a slow very memory
17446      # consuming and fragmenting process.  To avoid this, we pick a random,
17447      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17448      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17449      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17450      archive_expsym_cmds_GCJ='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'
17451      ;;
17452
17453    linux*)
17454      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17455	tmp_addflag=
17456	case $cc_basename,$host_cpu in
17457	pgcc*)				# Portland Group C compiler
17458	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17459	  tmp_addflag=' $pic_flag'
17460	  ;;
17461	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17462	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17463	  tmp_addflag=' $pic_flag -Mnomain' ;;
17464	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17465	  tmp_addflag=' -i_dynamic' ;;
17466	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17467	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17468	ifc* | ifort*)			# Intel Fortran compiler
17469	  tmp_addflag=' -nofor_main' ;;
17470	esac
17471	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17472
17473	if test $supports_anon_versioning = yes; then
17474	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17475  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17476  $echo "local: *; };" >> $output_objdir/$libname.ver~
17477	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17478	fi
17479      else
17480	ld_shlibs_GCJ=no
17481      fi
17482      ;;
17483
17484    netbsd*)
17485      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17486	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17487	wlarc=
17488      else
17489	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17490	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17491      fi
17492      ;;
17493
17494    solaris*)
17495      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17496	ld_shlibs_GCJ=no
17497	cat <<EOF 1>&2
17498
17499*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17500*** create shared libraries on Solaris systems.  Therefore, libtool
17501*** is disabling shared libraries support.  We urge you to upgrade GNU
17502*** binutils to release 2.9.1 or newer.  Another option is to modify
17503*** your PATH or compiler configuration so that the native linker is
17504*** used, and then restart.
17505
17506EOF
17507      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17508	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17509	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17510      else
17511	ld_shlibs_GCJ=no
17512      fi
17513      ;;
17514
17515    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17516      case `$LD -v 2>&1` in
17517        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17518	ld_shlibs_GCJ=no
17519	cat <<_LT_EOF 1>&2
17520
17521*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17522*** reliably create shared libraries on SCO systems.  Therefore, libtool
17523*** is disabling shared libraries support.  We urge you to upgrade GNU
17524*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17525*** your PATH or compiler configuration so that the native linker is
17526*** used, and then restart.
17527
17528_LT_EOF
17529	;;
17530	*)
17531	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17532	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17533	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17534	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17535	  else
17536	    ld_shlibs_GCJ=no
17537	  fi
17538	;;
17539      esac
17540      ;;
17541
17542    sunos4*)
17543      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17544      wlarc=
17545      hardcode_direct_GCJ=yes
17546      hardcode_shlibpath_var_GCJ=no
17547      ;;
17548
17549    *)
17550      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17551	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17552	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17553      else
17554	ld_shlibs_GCJ=no
17555      fi
17556      ;;
17557    esac
17558
17559    if test "$ld_shlibs_GCJ" = no; then
17560      runpath_var=
17561      hardcode_libdir_flag_spec_GCJ=
17562      export_dynamic_flag_spec_GCJ=
17563      whole_archive_flag_spec_GCJ=
17564    fi
17565  else
17566    # PORTME fill in a description of your system's linker (not GNU ld)
17567    case $host_os in
17568    aix3*)
17569      allow_undefined_flag_GCJ=unsupported
17570      always_export_symbols_GCJ=yes
17571      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17572      # Note: this linker hardcodes the directories in LIBPATH if there
17573      # are no directories specified by -L.
17574      hardcode_minus_L_GCJ=yes
17575      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17576	# Neither direct hardcoding nor static linking is supported with a
17577	# broken collect2.
17578	hardcode_direct_GCJ=unsupported
17579      fi
17580      ;;
17581
17582    aix4* | aix5*)
17583      if test "$host_cpu" = ia64; then
17584	# On IA64, the linker does run time linking by default, so we don't
17585	# have to do anything special.
17586	aix_use_runtimelinking=no
17587	exp_sym_flag='-Bexport'
17588	no_entry_flag=""
17589      else
17590	# If we're using GNU nm, then we don't want the "-C" option.
17591	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17592	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17593	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17594	else
17595	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17596	fi
17597	aix_use_runtimelinking=no
17598
17599	# Test if we are trying to use run time linking or normal
17600	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17601	# need to do runtime linking.
17602	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17603	  for ld_flag in $LDFLAGS; do
17604  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17605  	    aix_use_runtimelinking=yes
17606  	    break
17607  	  fi
17608	  done
17609	  ;;
17610	esac
17611
17612	exp_sym_flag='-bexport'
17613	no_entry_flag='-bnoentry'
17614      fi
17615
17616      # When large executables or shared objects are built, AIX ld can
17617      # have problems creating the table of contents.  If linking a library
17618      # or program results in "error TOC overflow" add -mminimal-toc to
17619      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17620      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17621
17622      archive_cmds_GCJ=''
17623      hardcode_direct_GCJ=yes
17624      hardcode_libdir_separator_GCJ=':'
17625      link_all_deplibs_GCJ=yes
17626
17627      if test "$GCC" = yes; then
17628	case $host_os in aix4.[012]|aix4.[012].*)
17629	# We only want to do this on AIX 4.2 and lower, the check
17630	# below for broken collect2 doesn't work under 4.3+
17631	  collect2name=`${CC} -print-prog-name=collect2`
17632	  if test -f "$collect2name" && \
17633  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17634	  then
17635  	  # We have reworked collect2
17636  	  hardcode_direct_GCJ=yes
17637	  else
17638  	  # We have old collect2
17639  	  hardcode_direct_GCJ=unsupported
17640  	  # It fails to find uninstalled libraries when the uninstalled
17641  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17642  	  # to unsupported forces relinking
17643  	  hardcode_minus_L_GCJ=yes
17644  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17645  	  hardcode_libdir_separator_GCJ=
17646	  fi
17647	  ;;
17648	esac
17649	shared_flag='-shared'
17650	if test "$aix_use_runtimelinking" = yes; then
17651	  shared_flag="$shared_flag "'${wl}-G'
17652	fi
17653      else
17654	# not using gcc
17655	if test "$host_cpu" = ia64; then
17656  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17657  	# chokes on -Wl,-G. The following line is correct:
17658	  shared_flag='-G'
17659	else
17660	  if test "$aix_use_runtimelinking" = yes; then
17661	    shared_flag='${wl}-G'
17662	  else
17663	    shared_flag='${wl}-bM:SRE'
17664	  fi
17665	fi
17666      fi
17667
17668      # It seems that -bexpall does not export symbols beginning with
17669      # underscore (_), so it is better to generate a list of symbols to export.
17670      always_export_symbols_GCJ=yes
17671      if test "$aix_use_runtimelinking" = yes; then
17672	# Warning - without using the other runtime loading flags (-brtl),
17673	# -berok will link without error, but may produce a broken library.
17674	allow_undefined_flag_GCJ='-berok'
17675       # Determine the default libpath from the value encoded in an empty executable.
17676       cat >conftest.$ac_ext <<_ACEOF
17677/* confdefs.h.  */
17678_ACEOF
17679cat confdefs.h >>conftest.$ac_ext
17680cat >>conftest.$ac_ext <<_ACEOF
17681/* end confdefs.h.  */
17682
17683int
17684main ()
17685{
17686
17687  ;
17688  return 0;
17689}
17690_ACEOF
17691rm -f conftest.$ac_objext conftest$ac_exeext
17692if { (ac_try="$ac_link"
17693case "(($ac_try" in
17694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17695  *) ac_try_echo=$ac_try;;
17696esac
17697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17698  (eval "$ac_link") 2>conftest.er1
17699  ac_status=$?
17700  grep -v '^ *+' conftest.er1 >conftest.err
17701  rm -f conftest.er1
17702  cat conftest.err >&5
17703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704  (exit $ac_status); } &&
17705	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17706  { (case "(($ac_try" in
17707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708  *) ac_try_echo=$ac_try;;
17709esac
17710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711  (eval "$ac_try") 2>&5
17712  ac_status=$?
17713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714  (exit $ac_status); }; } &&
17715	 { ac_try='test -s conftest$ac_exeext'
17716  { (case "(($ac_try" in
17717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718  *) ac_try_echo=$ac_try;;
17719esac
17720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721  (eval "$ac_try") 2>&5
17722  ac_status=$?
17723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724  (exit $ac_status); }; }; then
17725
17726aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17727}'`
17728# Check for a 64-bit object if we didn't find anything.
17729if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17730}'`; fi
17731else
17732  echo "$as_me: failed program was:" >&5
17733sed 's/^/| /' conftest.$ac_ext >&5
17734
17735
17736fi
17737
17738rm -f core conftest.err conftest.$ac_objext \
17739      conftest$ac_exeext conftest.$ac_ext
17740if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17741
17742       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17743	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17744       else
17745	if test "$host_cpu" = ia64; then
17746	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17747	  allow_undefined_flag_GCJ="-z nodefs"
17748	  archive_expsym_cmds_GCJ="\$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"
17749	else
17750	 # Determine the default libpath from the value encoded in an empty executable.
17751	 cat >conftest.$ac_ext <<_ACEOF
17752/* confdefs.h.  */
17753_ACEOF
17754cat confdefs.h >>conftest.$ac_ext
17755cat >>conftest.$ac_ext <<_ACEOF
17756/* end confdefs.h.  */
17757
17758int
17759main ()
17760{
17761
17762  ;
17763  return 0;
17764}
17765_ACEOF
17766rm -f conftest.$ac_objext conftest$ac_exeext
17767if { (ac_try="$ac_link"
17768case "(($ac_try" in
17769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770  *) ac_try_echo=$ac_try;;
17771esac
17772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773  (eval "$ac_link") 2>conftest.er1
17774  ac_status=$?
17775  grep -v '^ *+' conftest.er1 >conftest.err
17776  rm -f conftest.er1
17777  cat conftest.err >&5
17778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779  (exit $ac_status); } &&
17780	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17781  { (case "(($ac_try" in
17782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783  *) ac_try_echo=$ac_try;;
17784esac
17785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786  (eval "$ac_try") 2>&5
17787  ac_status=$?
17788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789  (exit $ac_status); }; } &&
17790	 { ac_try='test -s conftest$ac_exeext'
17791  { (case "(($ac_try" in
17792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17793  *) ac_try_echo=$ac_try;;
17794esac
17795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17796  (eval "$ac_try") 2>&5
17797  ac_status=$?
17798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799  (exit $ac_status); }; }; then
17800
17801aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17802}'`
17803# Check for a 64-bit object if we didn't find anything.
17804if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17805}'`; fi
17806else
17807  echo "$as_me: failed program was:" >&5
17808sed 's/^/| /' conftest.$ac_ext >&5
17809
17810
17811fi
17812
17813rm -f core conftest.err conftest.$ac_objext \
17814      conftest$ac_exeext conftest.$ac_ext
17815if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17816
17817	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17818	  # Warning - without using the other run time loading flags,
17819	  # -berok will link without error, but may produce a broken library.
17820	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17821	  allow_undefined_flag_GCJ=' ${wl}-berok'
17822	  # Exported symbols can be pulled into shared objects from archives
17823	  whole_archive_flag_spec_GCJ='$convenience'
17824	  archive_cmds_need_lc_GCJ=yes
17825	  # This is similar to how AIX traditionally builds its shared libraries.
17826	  archive_expsym_cmds_GCJ="\$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'
17827	fi
17828      fi
17829      ;;
17830
17831    amigaos*)
17832      archive_cmds_GCJ='$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)'
17833      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17834      hardcode_minus_L_GCJ=yes
17835      # see comment about different semantics on the GNU ld section
17836      ld_shlibs_GCJ=no
17837      ;;
17838
17839    bsdi[45]*)
17840      export_dynamic_flag_spec_GCJ=-rdynamic
17841      ;;
17842
17843    cygwin* | mingw* | pw32*)
17844      # When not using gcc, we currently assume that we are using
17845      # Microsoft Visual C++.
17846      # hardcode_libdir_flag_spec is actually meaningless, as there is
17847      # no search path for DLLs.
17848      hardcode_libdir_flag_spec_GCJ=' '
17849      allow_undefined_flag_GCJ=unsupported
17850      # Tell ltmain to make .lib files, not .a files.
17851      libext=lib
17852      # Tell ltmain to make .dll files, not .so files.
17853      shrext_cmds=".dll"
17854      # FIXME: Setting linknames here is a bad hack.
17855      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17856      # The linker will automatically build a .lib file if we build a DLL.
17857      old_archive_From_new_cmds_GCJ='true'
17858      # FIXME: Should let the user specify the lib program.
17859      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17860      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17861      enable_shared_with_static_runtimes_GCJ=yes
17862      ;;
17863
17864    darwin* | rhapsody*)
17865      case $host_os in
17866        rhapsody* | darwin1.[012])
17867         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17868         ;;
17869       *) # Darwin 1.3 on
17870         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17871           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17872         else
17873           case ${MACOSX_DEPLOYMENT_TARGET} in
17874             10.[012])
17875               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17876               ;;
17877             10.*)
17878               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17879               ;;
17880           esac
17881         fi
17882         ;;
17883      esac
17884      archive_cmds_need_lc_GCJ=no
17885      hardcode_direct_GCJ=no
17886      hardcode_automatic_GCJ=yes
17887      hardcode_shlibpath_var_GCJ=unsupported
17888      whole_archive_flag_spec_GCJ=''
17889      link_all_deplibs_GCJ=yes
17890    if test "$GCC" = yes ; then
17891    	output_verbose_link_cmd='echo'
17892        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17893      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17894      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17895      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17896      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17897    else
17898      case $cc_basename in
17899        xlc*)
17900         output_verbose_link_cmd='echo'
17901         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17902         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17903          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17904         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17905          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17906          ;;
17907       *)
17908         ld_shlibs_GCJ=no
17909          ;;
17910      esac
17911    fi
17912      ;;
17913
17914    dgux*)
17915      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17916      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17917      hardcode_shlibpath_var_GCJ=no
17918      ;;
17919
17920    freebsd1*)
17921      ld_shlibs_GCJ=no
17922      ;;
17923
17924    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17925    # support.  Future versions do this automatically, but an explicit c++rt0.o
17926    # does not break anything, and helps significantly (at the cost of a little
17927    # extra space).
17928    freebsd2.2*)
17929      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17930      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17931      hardcode_direct_GCJ=yes
17932      hardcode_shlibpath_var_GCJ=no
17933      ;;
17934
17935    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17936    freebsd2*)
17937      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17938      hardcode_direct_GCJ=yes
17939      hardcode_minus_L_GCJ=yes
17940      hardcode_shlibpath_var_GCJ=no
17941      ;;
17942
17943    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17944    freebsd* | kfreebsd*-gnu | dragonfly*)
17945      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17946      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17947      hardcode_direct_GCJ=yes
17948      hardcode_shlibpath_var_GCJ=no
17949      ;;
17950
17951    hpux9*)
17952      if test "$GCC" = yes; then
17953	archive_cmds_GCJ='$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'
17954      else
17955	archive_cmds_GCJ='$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'
17956      fi
17957      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17958      hardcode_libdir_separator_GCJ=:
17959      hardcode_direct_GCJ=yes
17960
17961      # hardcode_minus_L: Not really in the search PATH,
17962      # but as the default location of the library.
17963      hardcode_minus_L_GCJ=yes
17964      export_dynamic_flag_spec_GCJ='${wl}-E'
17965      ;;
17966
17967    hpux10*)
17968      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17969	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17970      else
17971	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17972      fi
17973      if test "$with_gnu_ld" = no; then
17974	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17975	hardcode_libdir_separator_GCJ=:
17976
17977	hardcode_direct_GCJ=yes
17978	export_dynamic_flag_spec_GCJ='${wl}-E'
17979
17980	# hardcode_minus_L: Not really in the search PATH,
17981	# but as the default location of the library.
17982	hardcode_minus_L_GCJ=yes
17983      fi
17984      ;;
17985
17986    hpux11*)
17987      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17988	case $host_cpu in
17989	hppa*64*)
17990	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17991	  ;;
17992	ia64*)
17993	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17994	  ;;
17995	*)
17996	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17997	  ;;
17998	esac
17999      else
18000	case $host_cpu in
18001	hppa*64*)
18002	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18003	  ;;
18004	ia64*)
18005	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18006	  ;;
18007	*)
18008	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18009	  ;;
18010	esac
18011      fi
18012      if test "$with_gnu_ld" = no; then
18013	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18014	hardcode_libdir_separator_GCJ=:
18015
18016	case $host_cpu in
18017	hppa*64*|ia64*)
18018	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18019	  hardcode_direct_GCJ=no
18020	  hardcode_shlibpath_var_GCJ=no
18021	  ;;
18022	*)
18023	  hardcode_direct_GCJ=yes
18024	  export_dynamic_flag_spec_GCJ='${wl}-E'
18025
18026	  # hardcode_minus_L: Not really in the search PATH,
18027	  # but as the default location of the library.
18028	  hardcode_minus_L_GCJ=yes
18029	  ;;
18030	esac
18031      fi
18032      ;;
18033
18034    irix5* | irix6* | nonstopux*)
18035      if test "$GCC" = yes; then
18036	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18037      else
18038	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18039	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18040      fi
18041      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18042      hardcode_libdir_separator_GCJ=:
18043      link_all_deplibs_GCJ=yes
18044      ;;
18045
18046    netbsd*)
18047      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18048	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18049      else
18050	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18051      fi
18052      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18053      hardcode_direct_GCJ=yes
18054      hardcode_shlibpath_var_GCJ=no
18055      ;;
18056
18057    newsos6)
18058      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18059      hardcode_direct_GCJ=yes
18060      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18061      hardcode_libdir_separator_GCJ=:
18062      hardcode_shlibpath_var_GCJ=no
18063      ;;
18064
18065    openbsd*)
18066      hardcode_direct_GCJ=yes
18067      hardcode_shlibpath_var_GCJ=no
18068      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18069	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18070	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18071	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18072	export_dynamic_flag_spec_GCJ='${wl}-E'
18073      else
18074       case $host_os in
18075	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18076	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18077	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18078	   ;;
18079	 *)
18080	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18081	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18082	   ;;
18083       esac
18084      fi
18085      ;;
18086
18087    os2*)
18088      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18089      hardcode_minus_L_GCJ=yes
18090      allow_undefined_flag_GCJ=unsupported
18091      archive_cmds_GCJ='$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'
18092      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18093      ;;
18094
18095    osf3*)
18096      if test "$GCC" = yes; then
18097	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18098	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18099      else
18100	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18101	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18102      fi
18103      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18104      hardcode_libdir_separator_GCJ=:
18105      ;;
18106
18107    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18108      if test "$GCC" = yes; then
18109	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18110	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18111	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18112      else
18113	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18114	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18115	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18116	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18117
18118	# Both c and cxx compiler support -rpath directly
18119	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18120      fi
18121      hardcode_libdir_separator_GCJ=:
18122      ;;
18123
18124    solaris*)
18125      no_undefined_flag_GCJ=' -z text'
18126      if test "$GCC" = yes; then
18127	wlarc='${wl}'
18128	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18129	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18130	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18131      else
18132	wlarc=''
18133	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18134	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18135  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18136      fi
18137      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18138      hardcode_shlibpath_var_GCJ=no
18139      case $host_os in
18140      solaris2.[0-5] | solaris2.[0-5].*) ;;
18141      *)
18142 	# The compiler driver will combine linker options so we
18143 	# cannot just pass the convience library names through
18144 	# without $wl, iff we do not link with $LD.
18145 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18146 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18147 	case $wlarc in
18148 	'')
18149 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18150 	*)
18151 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18152 	esac ;;
18153      esac
18154      link_all_deplibs_GCJ=yes
18155      ;;
18156
18157    sunos4*)
18158      if test "x$host_vendor" = xsequent; then
18159	# Use $CC to link under sequent, because it throws in some extra .o
18160	# files that make .init and .fini sections work.
18161	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18162      else
18163	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18164      fi
18165      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18166      hardcode_direct_GCJ=yes
18167      hardcode_minus_L_GCJ=yes
18168      hardcode_shlibpath_var_GCJ=no
18169      ;;
18170
18171    sysv4)
18172      case $host_vendor in
18173	sni)
18174	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18175	  hardcode_direct_GCJ=yes # is this really true???
18176	;;
18177	siemens)
18178	  ## LD is ld it makes a PLAMLIB
18179	  ## CC just makes a GrossModule.
18180	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18181	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18182	  hardcode_direct_GCJ=no
18183        ;;
18184	motorola)
18185	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18186	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18187	;;
18188      esac
18189      runpath_var='LD_RUN_PATH'
18190      hardcode_shlibpath_var_GCJ=no
18191      ;;
18192
18193    sysv4.3*)
18194      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18195      hardcode_shlibpath_var_GCJ=no
18196      export_dynamic_flag_spec_GCJ='-Bexport'
18197      ;;
18198
18199    sysv4*MP*)
18200      if test -d /usr/nec; then
18201	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18202	hardcode_shlibpath_var_GCJ=no
18203	runpath_var=LD_RUN_PATH
18204	hardcode_runpath_var=yes
18205	ld_shlibs_GCJ=yes
18206      fi
18207      ;;
18208
18209    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18210      no_undefined_flag_GCJ='${wl}-z,text'
18211      archive_cmds_need_lc_GCJ=no
18212      hardcode_shlibpath_var_GCJ=no
18213      runpath_var='LD_RUN_PATH'
18214
18215      if test "$GCC" = yes; then
18216	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18217	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18218      else
18219	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18220	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18221      fi
18222      ;;
18223
18224    sysv5* | sco3.2v5* | sco5v6*)
18225      # Note: We can NOT use -z defs as we might desire, because we do not
18226      # link with -lc, and that would cause any symbols used from libc to
18227      # always be unresolved, which means just about no library would
18228      # ever link correctly.  If we're not using GNU ld we use -z text
18229      # though, which does catch some bad symbols but isn't as heavy-handed
18230      # as -z defs.
18231      no_undefined_flag_GCJ='${wl}-z,text'
18232      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18233      archive_cmds_need_lc_GCJ=no
18234      hardcode_shlibpath_var_GCJ=no
18235      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18236      hardcode_libdir_separator_GCJ=':'
18237      link_all_deplibs_GCJ=yes
18238      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18239      runpath_var='LD_RUN_PATH'
18240
18241      if test "$GCC" = yes; then
18242	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18243	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18244      else
18245	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18246	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18247      fi
18248      ;;
18249
18250    uts4*)
18251      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18252      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18253      hardcode_shlibpath_var_GCJ=no
18254      ;;
18255
18256    *)
18257      ld_shlibs_GCJ=no
18258      ;;
18259    esac
18260  fi
18261
18262{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18263echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18264test "$ld_shlibs_GCJ" = no && can_build_shared=no
18265
18266#
18267# Do we need to explicitly link libc?
18268#
18269case "x$archive_cmds_need_lc_GCJ" in
18270x|xyes)
18271  # Assume -lc should be added
18272  archive_cmds_need_lc_GCJ=yes
18273
18274  if test "$enable_shared" = yes && test "$GCC" = yes; then
18275    case $archive_cmds_GCJ in
18276    *'~'*)
18277      # FIXME: we may have to deal with multi-command sequences.
18278      ;;
18279    '$CC '*)
18280      # Test whether the compiler implicitly links with -lc since on some
18281      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18282      # to ld, don't add -lc before -lgcc.
18283      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18284echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18285      $rm conftest*
18286      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18287
18288      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18289  (eval $ac_compile) 2>&5
18290  ac_status=$?
18291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292  (exit $ac_status); } 2>conftest.err; then
18293        soname=conftest
18294        lib=conftest
18295        libobjs=conftest.$ac_objext
18296        deplibs=
18297        wl=$lt_prog_compiler_wl_GCJ
18298	pic_flag=$lt_prog_compiler_pic_GCJ
18299        compiler_flags=-v
18300        linker_flags=-v
18301        verstring=
18302        output_objdir=.
18303        libname=conftest
18304        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18305        allow_undefined_flag_GCJ=
18306        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18307  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18308  ac_status=$?
18309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310  (exit $ac_status); }
18311        then
18312	  archive_cmds_need_lc_GCJ=no
18313        else
18314	  archive_cmds_need_lc_GCJ=yes
18315        fi
18316        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18317      else
18318        cat conftest.err 1>&5
18319      fi
18320      $rm conftest*
18321      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18322echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18323      ;;
18324    esac
18325  fi
18326  ;;
18327esac
18328
18329{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18330echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18331library_names_spec=
18332libname_spec='lib$name'
18333soname_spec=
18334shrext_cmds=".so"
18335postinstall_cmds=
18336postuninstall_cmds=
18337finish_cmds=
18338finish_eval=
18339shlibpath_var=
18340shlibpath_overrides_runpath=unknown
18341version_type=none
18342dynamic_linker="$host_os ld.so"
18343sys_lib_dlsearch_path_spec="/lib /usr/lib"
18344if test "$GCC" = yes; then
18345  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18346  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18347    # if the path contains ";" then we assume it to be the separator
18348    # otherwise default to the standard path separator (i.e. ":") - it is
18349    # assumed that no part of a normal pathname contains ";" but that should
18350    # okay in the real world where ";" in dirpaths is itself problematic.
18351    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18352  else
18353    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18354  fi
18355else
18356  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18357fi
18358need_lib_prefix=unknown
18359hardcode_into_libs=no
18360
18361# when you set need_version to no, make sure it does not cause -set_version
18362# flags to be left without arguments
18363need_version=unknown
18364
18365case $host_os in
18366aix3*)
18367  version_type=linux
18368  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18369  shlibpath_var=LIBPATH
18370
18371  # AIX 3 has no versioning support, so we append a major version to the name.
18372  soname_spec='${libname}${release}${shared_ext}$major'
18373  ;;
18374
18375aix4* | aix5*)
18376  version_type=linux
18377  need_lib_prefix=no
18378  need_version=no
18379  hardcode_into_libs=yes
18380  if test "$host_cpu" = ia64; then
18381    # AIX 5 supports IA64
18382    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18383    shlibpath_var=LD_LIBRARY_PATH
18384  else
18385    # With GCC up to 2.95.x, collect2 would create an import file
18386    # for dependence libraries.  The import file would start with
18387    # the line `#! .'.  This would cause the generated library to
18388    # depend on `.', always an invalid library.  This was fixed in
18389    # development snapshots of GCC prior to 3.0.
18390    case $host_os in
18391      aix4 | aix4.[01] | aix4.[01].*)
18392      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18393	   echo ' yes '
18394	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18395	:
18396      else
18397	can_build_shared=no
18398      fi
18399      ;;
18400    esac
18401    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18402    # soname into executable. Probably we can add versioning support to
18403    # collect2, so additional links can be useful in future.
18404    if test "$aix_use_runtimelinking" = yes; then
18405      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18406      # instead of lib<name>.a to let people know that these are not
18407      # typical AIX shared libraries.
18408      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18409    else
18410      # We preserve .a as extension for shared libraries through AIX4.2
18411      # and later when we are not doing run time linking.
18412      library_names_spec='${libname}${release}.a $libname.a'
18413      soname_spec='${libname}${release}${shared_ext}$major'
18414    fi
18415    shlibpath_var=LIBPATH
18416  fi
18417  ;;
18418
18419amigaos*)
18420  library_names_spec='$libname.ixlibrary $libname.a'
18421  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18422  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'
18423  ;;
18424
18425beos*)
18426  library_names_spec='${libname}${shared_ext}'
18427  dynamic_linker="$host_os ld.so"
18428  shlibpath_var=LIBRARY_PATH
18429  ;;
18430
18431bsdi[45]*)
18432  version_type=linux
18433  need_version=no
18434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18435  soname_spec='${libname}${release}${shared_ext}$major'
18436  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18437  shlibpath_var=LD_LIBRARY_PATH
18438  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18439  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18440  # the default ld.so.conf also contains /usr/contrib/lib and
18441  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18442  # libtool to hard-code these into programs
18443  ;;
18444
18445cygwin* | mingw* | pw32*)
18446  version_type=windows
18447  shrext_cmds=".dll"
18448  need_version=no
18449  need_lib_prefix=no
18450
18451  case $GCC,$host_os in
18452  yes,cygwin* | yes,mingw* | yes,pw32*)
18453    library_names_spec='$libname.dll.a'
18454    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18455    postinstall_cmds='base_file=`basename \${file}`~
18456      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18457      dldir=$destdir/`dirname \$dlpath`~
18458      test -d \$dldir || mkdir -p \$dldir~
18459      $install_prog $dir/$dlname \$dldir/$dlname~
18460      chmod a+x \$dldir/$dlname'
18461    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18462      dlpath=$dir/\$dldll~
18463       $rm \$dlpath'
18464    shlibpath_overrides_runpath=yes
18465
18466    case $host_os in
18467    cygwin*)
18468      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18469      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18470      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18471      ;;
18472    mingw*)
18473      # MinGW DLLs use traditional 'lib' prefix
18474      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18475      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18476      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18477        # It is most probably a Windows format PATH printed by
18478        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18479        # path with ; separators, and with drive letters. We can handle the
18480        # drive letters (cygwin fileutils understands them), so leave them,
18481        # especially as we might pass files found there to a mingw objdump,
18482        # which wouldn't understand a cygwinified path. Ahh.
18483        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18484      else
18485        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18486      fi
18487      ;;
18488    pw32*)
18489      # pw32 DLLs use 'pw' prefix rather than 'lib'
18490      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18491      ;;
18492    esac
18493    ;;
18494
18495  *)
18496    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18497    ;;
18498  esac
18499  dynamic_linker='Win32 ld.exe'
18500  # FIXME: first we should search . and the directory the executable is in
18501  shlibpath_var=PATH
18502  ;;
18503
18504darwin* | rhapsody*)
18505  dynamic_linker="$host_os dyld"
18506  version_type=darwin
18507  need_lib_prefix=no
18508  need_version=no
18509  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18510  soname_spec='${libname}${release}${major}$shared_ext'
18511  shlibpath_overrides_runpath=yes
18512  shlibpath_var=DYLD_LIBRARY_PATH
18513  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18514  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18515  if test "$GCC" = yes; then
18516    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18517  else
18518    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18519  fi
18520  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18521  ;;
18522
18523dgux*)
18524  version_type=linux
18525  need_lib_prefix=no
18526  need_version=no
18527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18528  soname_spec='${libname}${release}${shared_ext}$major'
18529  shlibpath_var=LD_LIBRARY_PATH
18530  ;;
18531
18532freebsd1*)
18533  dynamic_linker=no
18534  ;;
18535
18536kfreebsd*-gnu)
18537  version_type=linux
18538  need_lib_prefix=no
18539  need_version=no
18540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18541  soname_spec='${libname}${release}${shared_ext}$major'
18542  shlibpath_var=LD_LIBRARY_PATH
18543  shlibpath_overrides_runpath=no
18544  hardcode_into_libs=yes
18545  dynamic_linker='GNU ld.so'
18546  ;;
18547
18548freebsd* | dragonfly*)
18549  # DragonFly does not have aout.  When/if they implement a new
18550  # versioning mechanism, adjust this.
18551  if test -x /usr/bin/objformat; then
18552    objformat=`/usr/bin/objformat`
18553  else
18554    case $host_os in
18555    freebsd[123]*) objformat=aout ;;
18556    *) objformat=elf ;;
18557    esac
18558  fi
18559  version_type=freebsd-$objformat
18560  case $version_type in
18561    freebsd-elf*)
18562      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18563      need_version=no
18564      need_lib_prefix=no
18565      ;;
18566    freebsd-*)
18567      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18568      need_version=yes
18569      ;;
18570  esac
18571  shlibpath_var=LD_LIBRARY_PATH
18572  case $host_os in
18573  freebsd2*)
18574    shlibpath_overrides_runpath=yes
18575    ;;
18576  freebsd3.[01]* | freebsdelf3.[01]*)
18577    shlibpath_overrides_runpath=yes
18578    hardcode_into_libs=yes
18579    ;;
18580  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18581  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18582    shlibpath_overrides_runpath=no
18583    hardcode_into_libs=yes
18584    ;;
18585  freebsd*) # from 4.6 on
18586    shlibpath_overrides_runpath=yes
18587    hardcode_into_libs=yes
18588    ;;
18589  esac
18590  ;;
18591
18592gnu*)
18593  version_type=linux
18594  need_lib_prefix=no
18595  need_version=no
18596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18597  soname_spec='${libname}${release}${shared_ext}$major'
18598  shlibpath_var=LD_LIBRARY_PATH
18599  hardcode_into_libs=yes
18600  ;;
18601
18602hpux9* | hpux10* | hpux11*)
18603  # Give a soname corresponding to the major version so that dld.sl refuses to
18604  # link against other versions.
18605  version_type=sunos
18606  need_lib_prefix=no
18607  need_version=no
18608  case $host_cpu in
18609  ia64*)
18610    shrext_cmds='.so'
18611    hardcode_into_libs=yes
18612    dynamic_linker="$host_os dld.so"
18613    shlibpath_var=LD_LIBRARY_PATH
18614    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18615    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18616    soname_spec='${libname}${release}${shared_ext}$major'
18617    if test "X$HPUX_IA64_MODE" = X32; then
18618      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18619    else
18620      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18621    fi
18622    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18623    ;;
18624   hppa*64*)
18625     shrext_cmds='.sl'
18626     hardcode_into_libs=yes
18627     dynamic_linker="$host_os dld.sl"
18628     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18629     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18630     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18631     soname_spec='${libname}${release}${shared_ext}$major'
18632     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18633     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18634     ;;
18635   *)
18636    shrext_cmds='.sl'
18637    dynamic_linker="$host_os dld.sl"
18638    shlibpath_var=SHLIB_PATH
18639    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18640    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18641    soname_spec='${libname}${release}${shared_ext}$major'
18642    ;;
18643  esac
18644  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18645  postinstall_cmds='chmod 555 $lib'
18646  ;;
18647
18648interix3*)
18649  version_type=linux
18650  need_lib_prefix=no
18651  need_version=no
18652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18653  soname_spec='${libname}${release}${shared_ext}$major'
18654  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18655  shlibpath_var=LD_LIBRARY_PATH
18656  shlibpath_overrides_runpath=no
18657  hardcode_into_libs=yes
18658  ;;
18659
18660irix5* | irix6* | nonstopux*)
18661  case $host_os in
18662    nonstopux*) version_type=nonstopux ;;
18663    *)
18664	if test "$lt_cv_prog_gnu_ld" = yes; then
18665		version_type=linux
18666	else
18667		version_type=irix
18668	fi ;;
18669  esac
18670  need_lib_prefix=no
18671  need_version=no
18672  soname_spec='${libname}${release}${shared_ext}$major'
18673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18674  case $host_os in
18675  irix5* | nonstopux*)
18676    libsuff= shlibsuff=
18677    ;;
18678  *)
18679    case $LD in # libtool.m4 will add one of these switches to LD
18680    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18681      libsuff= shlibsuff= libmagic=32-bit;;
18682    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18683      libsuff=32 shlibsuff=N32 libmagic=N32;;
18684    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18685      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18686    *) libsuff= shlibsuff= libmagic=never-match;;
18687    esac
18688    ;;
18689  esac
18690  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18691  shlibpath_overrides_runpath=no
18692  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18693  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18694  hardcode_into_libs=yes
18695  ;;
18696
18697# No shared lib support for Linux oldld, aout, or coff.
18698linux*oldld* | linux*aout* | linux*coff*)
18699  dynamic_linker=no
18700  ;;
18701
18702# This must be Linux ELF.
18703linux*)
18704  version_type=linux
18705  need_lib_prefix=no
18706  need_version=no
18707  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18708  soname_spec='${libname}${release}${shared_ext}$major'
18709  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18710  shlibpath_var=LD_LIBRARY_PATH
18711  shlibpath_overrides_runpath=no
18712  # This implies no fast_install, which is unacceptable.
18713  # Some rework will be needed to allow for fast_install
18714  # before this can be enabled.
18715  hardcode_into_libs=yes
18716
18717  # Append ld.so.conf contents to the search path
18718  if test -f /etc/ld.so.conf; then
18719    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18720    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18721  fi
18722
18723  # We used to test for /lib/ld.so.1 and disable shared libraries on
18724  # powerpc, because MkLinux only supported shared libraries with the
18725  # GNU dynamic linker.  Since this was broken with cross compilers,
18726  # most powerpc-linux boxes support dynamic linking these days and
18727  # people can always --disable-shared, the test was removed, and we
18728  # assume the GNU/Linux dynamic linker is in use.
18729  dynamic_linker='GNU/Linux ld.so'
18730  ;;
18731
18732knetbsd*-gnu)
18733  version_type=linux
18734  need_lib_prefix=no
18735  need_version=no
18736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18737  soname_spec='${libname}${release}${shared_ext}$major'
18738  shlibpath_var=LD_LIBRARY_PATH
18739  shlibpath_overrides_runpath=no
18740  hardcode_into_libs=yes
18741  dynamic_linker='GNU ld.so'
18742  ;;
18743
18744netbsd*)
18745  version_type=sunos
18746  need_lib_prefix=no
18747  need_version=no
18748  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18749    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18750    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18751    dynamic_linker='NetBSD (a.out) ld.so'
18752  else
18753    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18754    soname_spec='${libname}${release}${shared_ext}$major'
18755    dynamic_linker='NetBSD ld.elf_so'
18756  fi
18757  shlibpath_var=LD_LIBRARY_PATH
18758  shlibpath_overrides_runpath=yes
18759  hardcode_into_libs=yes
18760  ;;
18761
18762newsos6)
18763  version_type=linux
18764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18765  shlibpath_var=LD_LIBRARY_PATH
18766  shlibpath_overrides_runpath=yes
18767  ;;
18768
18769nto-qnx*)
18770  version_type=linux
18771  need_lib_prefix=no
18772  need_version=no
18773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18774  soname_spec='${libname}${release}${shared_ext}$major'
18775  shlibpath_var=LD_LIBRARY_PATH
18776  shlibpath_overrides_runpath=yes
18777  ;;
18778
18779openbsd*)
18780  version_type=sunos
18781  sys_lib_dlsearch_path_spec="/usr/lib"
18782  need_lib_prefix=no
18783  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18784  case $host_os in
18785    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18786    *)                         need_version=no  ;;
18787  esac
18788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18789  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18790  shlibpath_var=LD_LIBRARY_PATH
18791  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18792    case $host_os in
18793      openbsd2.[89] | openbsd2.[89].*)
18794	shlibpath_overrides_runpath=no
18795	;;
18796      *)
18797	shlibpath_overrides_runpath=yes
18798	;;
18799      esac
18800  else
18801    shlibpath_overrides_runpath=yes
18802  fi
18803  ;;
18804
18805os2*)
18806  libname_spec='$name'
18807  shrext_cmds=".dll"
18808  need_lib_prefix=no
18809  library_names_spec='$libname${shared_ext} $libname.a'
18810  dynamic_linker='OS/2 ld.exe'
18811  shlibpath_var=LIBPATH
18812  ;;
18813
18814osf3* | osf4* | osf5*)
18815  version_type=osf
18816  need_lib_prefix=no
18817  need_version=no
18818  soname_spec='${libname}${release}${shared_ext}$major'
18819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18820  shlibpath_var=LD_LIBRARY_PATH
18821  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18822  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18823  ;;
18824
18825solaris*)
18826  version_type=linux
18827  need_lib_prefix=no
18828  need_version=no
18829  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18830  soname_spec='${libname}${release}${shared_ext}$major'
18831  shlibpath_var=LD_LIBRARY_PATH
18832  shlibpath_overrides_runpath=yes
18833  hardcode_into_libs=yes
18834  # ldd complains unless libraries are executable
18835  postinstall_cmds='chmod +x $lib'
18836  ;;
18837
18838sunos4*)
18839  version_type=sunos
18840  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18841  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18842  shlibpath_var=LD_LIBRARY_PATH
18843  shlibpath_overrides_runpath=yes
18844  if test "$with_gnu_ld" = yes; then
18845    need_lib_prefix=no
18846  fi
18847  need_version=yes
18848  ;;
18849
18850sysv4 | sysv4.3*)
18851  version_type=linux
18852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18853  soname_spec='${libname}${release}${shared_ext}$major'
18854  shlibpath_var=LD_LIBRARY_PATH
18855  case $host_vendor in
18856    sni)
18857      shlibpath_overrides_runpath=no
18858      need_lib_prefix=no
18859      export_dynamic_flag_spec='${wl}-Blargedynsym'
18860      runpath_var=LD_RUN_PATH
18861      ;;
18862    siemens)
18863      need_lib_prefix=no
18864      ;;
18865    motorola)
18866      need_lib_prefix=no
18867      need_version=no
18868      shlibpath_overrides_runpath=no
18869      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18870      ;;
18871  esac
18872  ;;
18873
18874sysv4*MP*)
18875  if test -d /usr/nec ;then
18876    version_type=linux
18877    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18878    soname_spec='$libname${shared_ext}.$major'
18879    shlibpath_var=LD_LIBRARY_PATH
18880  fi
18881  ;;
18882
18883sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18884  version_type=freebsd-elf
18885  need_lib_prefix=no
18886  need_version=no
18887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18888  soname_spec='${libname}${release}${shared_ext}$major'
18889  shlibpath_var=LD_LIBRARY_PATH
18890  hardcode_into_libs=yes
18891  if test "$with_gnu_ld" = yes; then
18892    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18893    shlibpath_overrides_runpath=no
18894  else
18895    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18896    shlibpath_overrides_runpath=yes
18897    case $host_os in
18898      sco3.2v5*)
18899        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18900	;;
18901    esac
18902  fi
18903  sys_lib_dlsearch_path_spec='/usr/lib'
18904  ;;
18905
18906uts4*)
18907  version_type=linux
18908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18909  soname_spec='${libname}${release}${shared_ext}$major'
18910  shlibpath_var=LD_LIBRARY_PATH
18911  ;;
18912
18913*)
18914  dynamic_linker=no
18915  ;;
18916esac
18917{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18918echo "${ECHO_T}$dynamic_linker" >&6; }
18919test "$dynamic_linker" = no && can_build_shared=no
18920
18921variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18922if test "$GCC" = yes; then
18923  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18924fi
18925
18926{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18927echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18928hardcode_action_GCJ=
18929if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18930   test -n "$runpath_var_GCJ" || \
18931   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18932
18933  # We can hardcode non-existant directories.
18934  if test "$hardcode_direct_GCJ" != no &&
18935     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18936     # have to relink, otherwise we might link with an installed library
18937     # when we should be linking with a yet-to-be-installed one
18938     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18939     test "$hardcode_minus_L_GCJ" != no; then
18940    # Linking always hardcodes the temporary library directory.
18941    hardcode_action_GCJ=relink
18942  else
18943    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18944    hardcode_action_GCJ=immediate
18945  fi
18946else
18947  # We cannot hardcode anything, or else we can only hardcode existing
18948  # directories.
18949  hardcode_action_GCJ=unsupported
18950fi
18951{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18952echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18953
18954if test "$hardcode_action_GCJ" = relink; then
18955  # Fast installation is not supported
18956  enable_fast_install=no
18957elif test "$shlibpath_overrides_runpath" = yes ||
18958     test "$enable_shared" = no; then
18959  # Fast installation is not necessary
18960  enable_fast_install=needless
18961fi
18962
18963
18964# The else clause should only fire when bootstrapping the
18965# libtool distribution, otherwise you forgot to ship ltmain.sh
18966# with your package, and you will get complaints that there are
18967# no rules to generate ltmain.sh.
18968if test -f "$ltmain"; then
18969  # See if we are running on zsh, and set the options which allow our commands through
18970  # without removal of \ escapes.
18971  if test -n "${ZSH_VERSION+set}" ; then
18972    setopt NO_GLOB_SUBST
18973  fi
18974  # Now quote all the things that may contain metacharacters while being
18975  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18976  # variables and quote the copies for generation of the libtool script.
18977  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18978    SED SHELL STRIP \
18979    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18980    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18981    deplibs_check_method reload_flag reload_cmds need_locks \
18982    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18983    lt_cv_sys_global_symbol_to_c_name_address \
18984    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18985    old_postinstall_cmds old_postuninstall_cmds \
18986    compiler_GCJ \
18987    CC_GCJ \
18988    LD_GCJ \
18989    lt_prog_compiler_wl_GCJ \
18990    lt_prog_compiler_pic_GCJ \
18991    lt_prog_compiler_static_GCJ \
18992    lt_prog_compiler_no_builtin_flag_GCJ \
18993    export_dynamic_flag_spec_GCJ \
18994    thread_safe_flag_spec_GCJ \
18995    whole_archive_flag_spec_GCJ \
18996    enable_shared_with_static_runtimes_GCJ \
18997    old_archive_cmds_GCJ \
18998    old_archive_from_new_cmds_GCJ \
18999    predep_objects_GCJ \
19000    postdep_objects_GCJ \
19001    predeps_GCJ \
19002    postdeps_GCJ \
19003    compiler_lib_search_path_GCJ \
19004    archive_cmds_GCJ \
19005    archive_expsym_cmds_GCJ \
19006    postinstall_cmds_GCJ \
19007    postuninstall_cmds_GCJ \
19008    old_archive_from_expsyms_cmds_GCJ \
19009    allow_undefined_flag_GCJ \
19010    no_undefined_flag_GCJ \
19011    export_symbols_cmds_GCJ \
19012    hardcode_libdir_flag_spec_GCJ \
19013    hardcode_libdir_flag_spec_ld_GCJ \
19014    hardcode_libdir_separator_GCJ \
19015    hardcode_automatic_GCJ \
19016    module_cmds_GCJ \
19017    module_expsym_cmds_GCJ \
19018    lt_cv_prog_compiler_c_o_GCJ \
19019    exclude_expsyms_GCJ \
19020    include_expsyms_GCJ; do
19021
19022    case $var in
19023    old_archive_cmds_GCJ | \
19024    old_archive_from_new_cmds_GCJ | \
19025    archive_cmds_GCJ | \
19026    archive_expsym_cmds_GCJ | \
19027    module_cmds_GCJ | \
19028    module_expsym_cmds_GCJ | \
19029    old_archive_from_expsyms_cmds_GCJ | \
19030    export_symbols_cmds_GCJ | \
19031    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19032    postinstall_cmds | postuninstall_cmds | \
19033    old_postinstall_cmds | old_postuninstall_cmds | \
19034    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19035      # Double-quote double-evaled strings.
19036      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19037      ;;
19038    *)
19039      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19040      ;;
19041    esac
19042  done
19043
19044  case $lt_echo in
19045  *'\$0 --fallback-echo"')
19046    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19047    ;;
19048  esac
19049
19050cfgfile="$ofile"
19051
19052  cat <<__EOF__ >> "$cfgfile"
19053# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19054
19055# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19056
19057# Shell to use when invoking shell scripts.
19058SHELL=$lt_SHELL
19059
19060# Whether or not to build shared libraries.
19061build_libtool_libs=$enable_shared
19062
19063# Whether or not to build static libraries.
19064build_old_libs=$enable_static
19065
19066# Whether or not to add -lc for building shared libraries.
19067build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19068
19069# Whether or not to disallow shared libs when runtime libs are static
19070allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19071
19072# Whether or not to optimize for fast installation.
19073fast_install=$enable_fast_install
19074
19075# The host system.
19076host_alias=$host_alias
19077host=$host
19078host_os=$host_os
19079
19080# The build system.
19081build_alias=$build_alias
19082build=$build
19083build_os=$build_os
19084
19085# An echo program that does not interpret backslashes.
19086echo=$lt_echo
19087
19088# The archiver.
19089AR=$lt_AR
19090AR_FLAGS=$lt_AR_FLAGS
19091
19092# A C compiler.
19093LTCC=$lt_LTCC
19094
19095# LTCC compiler flags.
19096LTCFLAGS=$lt_LTCFLAGS
19097
19098# A language-specific compiler.
19099CC=$lt_compiler_GCJ
19100
19101# Is the compiler the GNU C compiler?
19102with_gcc=$GCC_GCJ
19103
19104# An ERE matcher.
19105EGREP=$lt_EGREP
19106
19107# The linker used to build libraries.
19108LD=$lt_LD_GCJ
19109
19110# Whether we need hard or soft links.
19111LN_S=$lt_LN_S
19112
19113# A BSD-compatible nm program.
19114NM=$lt_NM
19115
19116# A symbol stripping program
19117STRIP=$lt_STRIP
19118
19119# Used to examine libraries when file_magic_cmd begins "file"
19120MAGIC_CMD=$MAGIC_CMD
19121
19122# Used on cygwin: DLL creation program.
19123DLLTOOL="$DLLTOOL"
19124
19125# Used on cygwin: object dumper.
19126OBJDUMP="$OBJDUMP"
19127
19128# Used on cygwin: assembler.
19129AS="$AS"
19130
19131# The name of the directory that contains temporary libtool files.
19132objdir=$objdir
19133
19134# How to create reloadable object files.
19135reload_flag=$lt_reload_flag
19136reload_cmds=$lt_reload_cmds
19137
19138# How to pass a linker flag through the compiler.
19139wl=$lt_lt_prog_compiler_wl_GCJ
19140
19141# Object file suffix (normally "o").
19142objext="$ac_objext"
19143
19144# Old archive suffix (normally "a").
19145libext="$libext"
19146
19147# Shared library suffix (normally ".so").
19148shrext_cmds='$shrext_cmds'
19149
19150# Executable file suffix (normally "").
19151exeext="$exeext"
19152
19153# Additional compiler flags for building library objects.
19154pic_flag=$lt_lt_prog_compiler_pic_GCJ
19155pic_mode=$pic_mode
19156
19157# What is the maximum length of a command?
19158max_cmd_len=$lt_cv_sys_max_cmd_len
19159
19160# Does compiler simultaneously support -c and -o options?
19161compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19162
19163# Must we lock files when doing compilation?
19164need_locks=$lt_need_locks
19165
19166# Do we need the lib prefix for modules?
19167need_lib_prefix=$need_lib_prefix
19168
19169# Do we need a version for libraries?
19170need_version=$need_version
19171
19172# Whether dlopen is supported.
19173dlopen_support=$enable_dlopen
19174
19175# Whether dlopen of programs is supported.
19176dlopen_self=$enable_dlopen_self
19177
19178# Whether dlopen of statically linked programs is supported.
19179dlopen_self_static=$enable_dlopen_self_static
19180
19181# Compiler flag to prevent dynamic linking.
19182link_static_flag=$lt_lt_prog_compiler_static_GCJ
19183
19184# Compiler flag to turn off builtin functions.
19185no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19186
19187# Compiler flag to allow reflexive dlopens.
19188export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19189
19190# Compiler flag to generate shared objects directly from archives.
19191whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19192
19193# Compiler flag to generate thread-safe objects.
19194thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19195
19196# Library versioning type.
19197version_type=$version_type
19198
19199# Format of library name prefix.
19200libname_spec=$lt_libname_spec
19201
19202# List of archive names.  First name is the real one, the rest are links.
19203# The last name is the one that the linker finds with -lNAME.
19204library_names_spec=$lt_library_names_spec
19205
19206# The coded name of the library, if different from the real name.
19207soname_spec=$lt_soname_spec
19208
19209# Commands used to build and install an old-style archive.
19210RANLIB=$lt_RANLIB
19211old_archive_cmds=$lt_old_archive_cmds_GCJ
19212old_postinstall_cmds=$lt_old_postinstall_cmds
19213old_postuninstall_cmds=$lt_old_postuninstall_cmds
19214
19215# Create an old-style archive from a shared archive.
19216old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19217
19218# Create a temporary old-style archive to link instead of a shared archive.
19219old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19220
19221# Commands used to build and install a shared archive.
19222archive_cmds=$lt_archive_cmds_GCJ
19223archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19224postinstall_cmds=$lt_postinstall_cmds
19225postuninstall_cmds=$lt_postuninstall_cmds
19226
19227# Commands used to build a loadable module (assumed same as above if empty)
19228module_cmds=$lt_module_cmds_GCJ
19229module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19230
19231# Commands to strip libraries.
19232old_striplib=$lt_old_striplib
19233striplib=$lt_striplib
19234
19235# Dependencies to place before the objects being linked to create a
19236# shared library.
19237predep_objects=$lt_predep_objects_GCJ
19238
19239# Dependencies to place after the objects being linked to create a
19240# shared library.
19241postdep_objects=$lt_postdep_objects_GCJ
19242
19243# Dependencies to place before the objects being linked to create a
19244# shared library.
19245predeps=$lt_predeps_GCJ
19246
19247# Dependencies to place after the objects being linked to create a
19248# shared library.
19249postdeps=$lt_postdeps_GCJ
19250
19251# The library search path used internally by the compiler when linking
19252# a shared library.
19253compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19254
19255# Method to check whether dependent libraries are shared objects.
19256deplibs_check_method=$lt_deplibs_check_method
19257
19258# Command to use when deplibs_check_method == file_magic.
19259file_magic_cmd=$lt_file_magic_cmd
19260
19261# Flag that allows shared libraries with undefined symbols to be built.
19262allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19263
19264# Flag that forces no undefined symbols.
19265no_undefined_flag=$lt_no_undefined_flag_GCJ
19266
19267# Commands used to finish a libtool library installation in a directory.
19268finish_cmds=$lt_finish_cmds
19269
19270# Same as above, but a single script fragment to be evaled but not shown.
19271finish_eval=$lt_finish_eval
19272
19273# Take the output of nm and produce a listing of raw symbols and C names.
19274global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19275
19276# Transform the output of nm in a proper C declaration
19277global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19278
19279# Transform the output of nm in a C name address pair
19280global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19281
19282# This is the shared library runtime path variable.
19283runpath_var=$runpath_var
19284
19285# This is the shared library path variable.
19286shlibpath_var=$shlibpath_var
19287
19288# Is shlibpath searched before the hard-coded library search path?
19289shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19290
19291# How to hardcode a shared library path into an executable.
19292hardcode_action=$hardcode_action_GCJ
19293
19294# Whether we should hardcode library paths into libraries.
19295hardcode_into_libs=$hardcode_into_libs
19296
19297# Flag to hardcode \$libdir into a binary during linking.
19298# This must work even if \$libdir does not exist.
19299hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19300
19301# If ld is used when linking, flag to hardcode \$libdir into
19302# a binary during linking. This must work even if \$libdir does
19303# not exist.
19304hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19305
19306# Whether we need a single -rpath flag with a separated argument.
19307hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19308
19309# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19310# resulting binary.
19311hardcode_direct=$hardcode_direct_GCJ
19312
19313# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19314# resulting binary.
19315hardcode_minus_L=$hardcode_minus_L_GCJ
19316
19317# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19318# the resulting binary.
19319hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19320
19321# Set to yes if building a shared library automatically hardcodes DIR into the library
19322# and all subsequent libraries and executables linked against it.
19323hardcode_automatic=$hardcode_automatic_GCJ
19324
19325# Variables whose values should be saved in libtool wrapper scripts and
19326# restored at relink time.
19327variables_saved_for_relink="$variables_saved_for_relink"
19328
19329# Whether libtool must link a program against all its dependency libraries.
19330link_all_deplibs=$link_all_deplibs_GCJ
19331
19332# Compile-time system search path for libraries
19333sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19334
19335# Run-time system search path for libraries
19336sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19337
19338# Fix the shell variable \$srcfile for the compiler.
19339fix_srcfile_path="$fix_srcfile_path_GCJ"
19340
19341# Set to yes if exported symbols are required.
19342always_export_symbols=$always_export_symbols_GCJ
19343
19344# The commands to list exported symbols.
19345export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19346
19347# The commands to extract the exported symbol list from a shared archive.
19348extract_expsyms_cmds=$lt_extract_expsyms_cmds
19349
19350# Symbols that should not be listed in the preloaded symbols.
19351exclude_expsyms=$lt_exclude_expsyms_GCJ
19352
19353# Symbols that must always be exported.
19354include_expsyms=$lt_include_expsyms_GCJ
19355
19356# ### END LIBTOOL TAG CONFIG: $tagname
19357
19358__EOF__
19359
19360
19361else
19362  # If there is no Makefile yet, we rely on a make rule to execute
19363  # `config.status --recheck' to rerun these tests and create the
19364  # libtool script then.
19365  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19366  if test -f "$ltmain_in"; then
19367    test -f Makefile && make "$ltmain"
19368  fi
19369fi
19370
19371
19372ac_ext=c
19373ac_cpp='$CPP $CPPFLAGS'
19374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19376ac_compiler_gnu=$ac_cv_c_compiler_gnu
19377
19378CC="$lt_save_CC"
19379
19380	else
19381	  tagname=""
19382	fi
19383	;;
19384
19385      RC)
19386
19387
19388# Source file extension for RC test sources.
19389ac_ext=rc
19390
19391# Object file extension for compiled RC test sources.
19392objext=o
19393objext_RC=$objext
19394
19395# Code to be used in simple compile tests
19396lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19397
19398# Code to be used in simple link tests
19399lt_simple_link_test_code="$lt_simple_compile_test_code"
19400
19401# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19402
19403# If no C compiler was specified, use CC.
19404LTCC=${LTCC-"$CC"}
19405
19406# If no C compiler flags were specified, use CFLAGS.
19407LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19408
19409# Allow CC to be a program name with arguments.
19410compiler=$CC
19411
19412
19413# save warnings/boilerplate of simple test code
19414ac_outfile=conftest.$ac_objext
19415printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19416eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19417_lt_compiler_boilerplate=`cat conftest.err`
19418$rm conftest*
19419
19420ac_outfile=conftest.$ac_objext
19421printf "$lt_simple_link_test_code" >conftest.$ac_ext
19422eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19423_lt_linker_boilerplate=`cat conftest.err`
19424$rm conftest*
19425
19426
19427# Allow CC to be a program name with arguments.
19428lt_save_CC="$CC"
19429CC=${RC-"windres"}
19430compiler=$CC
19431compiler_RC=$CC
19432for cc_temp in $compiler""; do
19433  case $cc_temp in
19434    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19435    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19436    \-*) ;;
19437    *) break;;
19438  esac
19439done
19440cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19441
19442lt_cv_prog_compiler_c_o_RC=yes
19443
19444# The else clause should only fire when bootstrapping the
19445# libtool distribution, otherwise you forgot to ship ltmain.sh
19446# with your package, and you will get complaints that there are
19447# no rules to generate ltmain.sh.
19448if test -f "$ltmain"; then
19449  # See if we are running on zsh, and set the options which allow our commands through
19450  # without removal of \ escapes.
19451  if test -n "${ZSH_VERSION+set}" ; then
19452    setopt NO_GLOB_SUBST
19453  fi
19454  # Now quote all the things that may contain metacharacters while being
19455  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19456  # variables and quote the copies for generation of the libtool script.
19457  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19458    SED SHELL STRIP \
19459    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19460    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19461    deplibs_check_method reload_flag reload_cmds need_locks \
19462    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19463    lt_cv_sys_global_symbol_to_c_name_address \
19464    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19465    old_postinstall_cmds old_postuninstall_cmds \
19466    compiler_RC \
19467    CC_RC \
19468    LD_RC \
19469    lt_prog_compiler_wl_RC \
19470    lt_prog_compiler_pic_RC \
19471    lt_prog_compiler_static_RC \
19472    lt_prog_compiler_no_builtin_flag_RC \
19473    export_dynamic_flag_spec_RC \
19474    thread_safe_flag_spec_RC \
19475    whole_archive_flag_spec_RC \
19476    enable_shared_with_static_runtimes_RC \
19477    old_archive_cmds_RC \
19478    old_archive_from_new_cmds_RC \
19479    predep_objects_RC \
19480    postdep_objects_RC \
19481    predeps_RC \
19482    postdeps_RC \
19483    compiler_lib_search_path_RC \
19484    archive_cmds_RC \
19485    archive_expsym_cmds_RC \
19486    postinstall_cmds_RC \
19487    postuninstall_cmds_RC \
19488    old_archive_from_expsyms_cmds_RC \
19489    allow_undefined_flag_RC \
19490    no_undefined_flag_RC \
19491    export_symbols_cmds_RC \
19492    hardcode_libdir_flag_spec_RC \
19493    hardcode_libdir_flag_spec_ld_RC \
19494    hardcode_libdir_separator_RC \
19495    hardcode_automatic_RC \
19496    module_cmds_RC \
19497    module_expsym_cmds_RC \
19498    lt_cv_prog_compiler_c_o_RC \
19499    exclude_expsyms_RC \
19500    include_expsyms_RC; do
19501
19502    case $var in
19503    old_archive_cmds_RC | \
19504    old_archive_from_new_cmds_RC | \
19505    archive_cmds_RC | \
19506    archive_expsym_cmds_RC | \
19507    module_cmds_RC | \
19508    module_expsym_cmds_RC | \
19509    old_archive_from_expsyms_cmds_RC | \
19510    export_symbols_cmds_RC | \
19511    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19512    postinstall_cmds | postuninstall_cmds | \
19513    old_postinstall_cmds | old_postuninstall_cmds | \
19514    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19515      # Double-quote double-evaled strings.
19516      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19517      ;;
19518    *)
19519      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19520      ;;
19521    esac
19522  done
19523
19524  case $lt_echo in
19525  *'\$0 --fallback-echo"')
19526    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19527    ;;
19528  esac
19529
19530cfgfile="$ofile"
19531
19532  cat <<__EOF__ >> "$cfgfile"
19533# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19534
19535# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19536
19537# Shell to use when invoking shell scripts.
19538SHELL=$lt_SHELL
19539
19540# Whether or not to build shared libraries.
19541build_libtool_libs=$enable_shared
19542
19543# Whether or not to build static libraries.
19544build_old_libs=$enable_static
19545
19546# Whether or not to add -lc for building shared libraries.
19547build_libtool_need_lc=$archive_cmds_need_lc_RC
19548
19549# Whether or not to disallow shared libs when runtime libs are static
19550allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19551
19552# Whether or not to optimize for fast installation.
19553fast_install=$enable_fast_install
19554
19555# The host system.
19556host_alias=$host_alias
19557host=$host
19558host_os=$host_os
19559
19560# The build system.
19561build_alias=$build_alias
19562build=$build
19563build_os=$build_os
19564
19565# An echo program that does not interpret backslashes.
19566echo=$lt_echo
19567
19568# The archiver.
19569AR=$lt_AR
19570AR_FLAGS=$lt_AR_FLAGS
19571
19572# A C compiler.
19573LTCC=$lt_LTCC
19574
19575# LTCC compiler flags.
19576LTCFLAGS=$lt_LTCFLAGS
19577
19578# A language-specific compiler.
19579CC=$lt_compiler_RC
19580
19581# Is the compiler the GNU C compiler?
19582with_gcc=$GCC_RC
19583
19584# An ERE matcher.
19585EGREP=$lt_EGREP
19586
19587# The linker used to build libraries.
19588LD=$lt_LD_RC
19589
19590# Whether we need hard or soft links.
19591LN_S=$lt_LN_S
19592
19593# A BSD-compatible nm program.
19594NM=$lt_NM
19595
19596# A symbol stripping program
19597STRIP=$lt_STRIP
19598
19599# Used to examine libraries when file_magic_cmd begins "file"
19600MAGIC_CMD=$MAGIC_CMD
19601
19602# Used on cygwin: DLL creation program.
19603DLLTOOL="$DLLTOOL"
19604
19605# Used on cygwin: object dumper.
19606OBJDUMP="$OBJDUMP"
19607
19608# Used on cygwin: assembler.
19609AS="$AS"
19610
19611# The name of the directory that contains temporary libtool files.
19612objdir=$objdir
19613
19614# How to create reloadable object files.
19615reload_flag=$lt_reload_flag
19616reload_cmds=$lt_reload_cmds
19617
19618# How to pass a linker flag through the compiler.
19619wl=$lt_lt_prog_compiler_wl_RC
19620
19621# Object file suffix (normally "o").
19622objext="$ac_objext"
19623
19624# Old archive suffix (normally "a").
19625libext="$libext"
19626
19627# Shared library suffix (normally ".so").
19628shrext_cmds='$shrext_cmds'
19629
19630# Executable file suffix (normally "").
19631exeext="$exeext"
19632
19633# Additional compiler flags for building library objects.
19634pic_flag=$lt_lt_prog_compiler_pic_RC
19635pic_mode=$pic_mode
19636
19637# What is the maximum length of a command?
19638max_cmd_len=$lt_cv_sys_max_cmd_len
19639
19640# Does compiler simultaneously support -c and -o options?
19641compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19642
19643# Must we lock files when doing compilation?
19644need_locks=$lt_need_locks
19645
19646# Do we need the lib prefix for modules?
19647need_lib_prefix=$need_lib_prefix
19648
19649# Do we need a version for libraries?
19650need_version=$need_version
19651
19652# Whether dlopen is supported.
19653dlopen_support=$enable_dlopen
19654
19655# Whether dlopen of programs is supported.
19656dlopen_self=$enable_dlopen_self
19657
19658# Whether dlopen of statically linked programs is supported.
19659dlopen_self_static=$enable_dlopen_self_static
19660
19661# Compiler flag to prevent dynamic linking.
19662link_static_flag=$lt_lt_prog_compiler_static_RC
19663
19664# Compiler flag to turn off builtin functions.
19665no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19666
19667# Compiler flag to allow reflexive dlopens.
19668export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19669
19670# Compiler flag to generate shared objects directly from archives.
19671whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19672
19673# Compiler flag to generate thread-safe objects.
19674thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19675
19676# Library versioning type.
19677version_type=$version_type
19678
19679# Format of library name prefix.
19680libname_spec=$lt_libname_spec
19681
19682# List of archive names.  First name is the real one, the rest are links.
19683# The last name is the one that the linker finds with -lNAME.
19684library_names_spec=$lt_library_names_spec
19685
19686# The coded name of the library, if different from the real name.
19687soname_spec=$lt_soname_spec
19688
19689# Commands used to build and install an old-style archive.
19690RANLIB=$lt_RANLIB
19691old_archive_cmds=$lt_old_archive_cmds_RC
19692old_postinstall_cmds=$lt_old_postinstall_cmds
19693old_postuninstall_cmds=$lt_old_postuninstall_cmds
19694
19695# Create an old-style archive from a shared archive.
19696old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19697
19698# Create a temporary old-style archive to link instead of a shared archive.
19699old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19700
19701# Commands used to build and install a shared archive.
19702archive_cmds=$lt_archive_cmds_RC
19703archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19704postinstall_cmds=$lt_postinstall_cmds
19705postuninstall_cmds=$lt_postuninstall_cmds
19706
19707# Commands used to build a loadable module (assumed same as above if empty)
19708module_cmds=$lt_module_cmds_RC
19709module_expsym_cmds=$lt_module_expsym_cmds_RC
19710
19711# Commands to strip libraries.
19712old_striplib=$lt_old_striplib
19713striplib=$lt_striplib
19714
19715# Dependencies to place before the objects being linked to create a
19716# shared library.
19717predep_objects=$lt_predep_objects_RC
19718
19719# Dependencies to place after the objects being linked to create a
19720# shared library.
19721postdep_objects=$lt_postdep_objects_RC
19722
19723# Dependencies to place before the objects being linked to create a
19724# shared library.
19725predeps=$lt_predeps_RC
19726
19727# Dependencies to place after the objects being linked to create a
19728# shared library.
19729postdeps=$lt_postdeps_RC
19730
19731# The library search path used internally by the compiler when linking
19732# a shared library.
19733compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19734
19735# Method to check whether dependent libraries are shared objects.
19736deplibs_check_method=$lt_deplibs_check_method
19737
19738# Command to use when deplibs_check_method == file_magic.
19739file_magic_cmd=$lt_file_magic_cmd
19740
19741# Flag that allows shared libraries with undefined symbols to be built.
19742allow_undefined_flag=$lt_allow_undefined_flag_RC
19743
19744# Flag that forces no undefined symbols.
19745no_undefined_flag=$lt_no_undefined_flag_RC
19746
19747# Commands used to finish a libtool library installation in a directory.
19748finish_cmds=$lt_finish_cmds
19749
19750# Same as above, but a single script fragment to be evaled but not shown.
19751finish_eval=$lt_finish_eval
19752
19753# Take the output of nm and produce a listing of raw symbols and C names.
19754global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19755
19756# Transform the output of nm in a proper C declaration
19757global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19758
19759# Transform the output of nm in a C name address pair
19760global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19761
19762# This is the shared library runtime path variable.
19763runpath_var=$runpath_var
19764
19765# This is the shared library path variable.
19766shlibpath_var=$shlibpath_var
19767
19768# Is shlibpath searched before the hard-coded library search path?
19769shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19770
19771# How to hardcode a shared library path into an executable.
19772hardcode_action=$hardcode_action_RC
19773
19774# Whether we should hardcode library paths into libraries.
19775hardcode_into_libs=$hardcode_into_libs
19776
19777# Flag to hardcode \$libdir into a binary during linking.
19778# This must work even if \$libdir does not exist.
19779hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19780
19781# If ld is used when linking, flag to hardcode \$libdir into
19782# a binary during linking. This must work even if \$libdir does
19783# not exist.
19784hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19785
19786# Whether we need a single -rpath flag with a separated argument.
19787hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19788
19789# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19790# resulting binary.
19791hardcode_direct=$hardcode_direct_RC
19792
19793# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19794# resulting binary.
19795hardcode_minus_L=$hardcode_minus_L_RC
19796
19797# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19798# the resulting binary.
19799hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19800
19801# Set to yes if building a shared library automatically hardcodes DIR into the library
19802# and all subsequent libraries and executables linked against it.
19803hardcode_automatic=$hardcode_automatic_RC
19804
19805# Variables whose values should be saved in libtool wrapper scripts and
19806# restored at relink time.
19807variables_saved_for_relink="$variables_saved_for_relink"
19808
19809# Whether libtool must link a program against all its dependency libraries.
19810link_all_deplibs=$link_all_deplibs_RC
19811
19812# Compile-time system search path for libraries
19813sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19814
19815# Run-time system search path for libraries
19816sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19817
19818# Fix the shell variable \$srcfile for the compiler.
19819fix_srcfile_path="$fix_srcfile_path_RC"
19820
19821# Set to yes if exported symbols are required.
19822always_export_symbols=$always_export_symbols_RC
19823
19824# The commands to list exported symbols.
19825export_symbols_cmds=$lt_export_symbols_cmds_RC
19826
19827# The commands to extract the exported symbol list from a shared archive.
19828extract_expsyms_cmds=$lt_extract_expsyms_cmds
19829
19830# Symbols that should not be listed in the preloaded symbols.
19831exclude_expsyms=$lt_exclude_expsyms_RC
19832
19833# Symbols that must always be exported.
19834include_expsyms=$lt_include_expsyms_RC
19835
19836# ### END LIBTOOL TAG CONFIG: $tagname
19837
19838__EOF__
19839
19840
19841else
19842  # If there is no Makefile yet, we rely on a make rule to execute
19843  # `config.status --recheck' to rerun these tests and create the
19844  # libtool script then.
19845  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19846  if test -f "$ltmain_in"; then
19847    test -f Makefile && make "$ltmain"
19848  fi
19849fi
19850
19851
19852ac_ext=c
19853ac_cpp='$CPP $CPPFLAGS'
19854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19856ac_compiler_gnu=$ac_cv_c_compiler_gnu
19857
19858CC="$lt_save_CC"
19859
19860	;;
19861
19862      *)
19863	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19864echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19865   { (exit 1); exit 1; }; }
19866	;;
19867      esac
19868
19869      # Append the new tag name to the list of available tags.
19870      if test -n "$tagname" ; then
19871      available_tags="$available_tags $tagname"
19872    fi
19873    fi
19874  done
19875  IFS="$lt_save_ifs"
19876
19877  # Now substitute the updated list of available tags.
19878  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19879    mv "${ofile}T" "$ofile"
19880    chmod +x "$ofile"
19881  else
19882    rm -f "${ofile}T"
19883    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19884echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19885   { (exit 1); exit 1; }; }
19886  fi
19887fi
19888
19889
19890
19891# This can be used to rebuild libtool when needed
19892LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19893
19894# Always use our own libtool.
19895LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19896
19897# Prevent multiple expansion
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919use_asm=:
19920arch_x86=false
19921arch_x86_64=false
19922
19923# Check whether --enable-asm was given.
19924if test "${enable_asm+set}" = set; then
19925  enableval=$enable_asm; 	if test "$enableval" = "no"; then
19926		use_asm=false
19927	fi
19928
19929fi
19930
19931
19932use_sdl=false
19933# Check whether --enable-sdl was given.
19934if test "${enable_sdl+set}" = set; then
19935  enableval=$enable_sdl;      if test "$enableval" = "yes"; then
19936               use_sdl=:
19937       fi
19938
19939fi
19940
19941
19942use_gtk=:
19943# Check whether --enable-gtk was given.
19944if test "${enable_gtk+set}" = set; then
19945  enableval=$enable_gtk;      if test "$enableval" = "no"; then
19946               use_gtk=false
19947       fi
19948
19949fi
19950
19951
19952use_xv=:
19953# Check whether --enable-xv was given.
19954if test "${enable_xv+set}" = set; then
19955  enableval=$enable_xv;      if test "$enableval" = "no"; then
19956               use_xv=false
19957       fi
19958
19959fi
19960
19961
19962# Check whether --enable-gprof was given.
19963if test "${enable_gprof+set}" = set; then
19964  enableval=$enable_gprof; 	if test "$enableval" = "yes"; then
19965	  CFLAGS="$CFLAGS -g -pg"
19966	fi
19967
19968fi
19969
19970
19971if $use_asm; then
19972	case "$host_cpu" in
19973		i?86)
19974			arch_x86=true
19975			cat >>confdefs.h <<\_ACEOF
19976#define ARCH_X86 1
19977_ACEOF
19978
19979			;;
19980		x86_64)
19981			arch_x86_64=true
19982			cat >>confdefs.h <<\_ACEOF
19983#define ARCH_X86_64 1
19984_ACEOF
19985
19986			;;
19987		*)
19988			;;
19989	esac
19990fi
19991
19992
19993# Check whether --with-pal-yuv was given.
19994if test "${with_pal_yuv+set}" = set; then
19995  withval=$with_pal_yuv;
19996	case "$with_pal_yuv" in
19997	     YV12)
19998		{ echo "$as_me:$LINENO: result: YV12" >&5
19999echo "${ECHO_T}YV12" >&6; }
20000		cat >>confdefs.h <<\_ACEOF
20001#define YUV_420_USE_YV12 1
20002_ACEOF
20003
20004		;;
20005	     *)
20006            	{ echo "$as_me:$LINENO: result: YUY2" >&5
20007echo "${ECHO_T}YUY2" >&6; }
20008		;;
20009	esac
20010
20011
20012fi
20013
20014
20015{ echo "$as_me:$LINENO: checking whether to enable debugging" >&5
20016echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; }
20017
20018# Check whether --with-debug was given.
20019if test "${with_debug+set}" = set; then
20020  withval=$with_debug;
20021	case "$with_debug" in
20022	     no)
20023		{ echo "$as_me:$LINENO: result: no" >&5
20024echo "${ECHO_T}no" >&6; }
20025		;;
20026	     yes)
20027	        { echo "$as_me:$LINENO: result: yes" >&5
20028echo "${ECHO_T}yes" >&6; }
20029		cat >>confdefs.h <<\_ACEOF
20030#define DEBUG 1
20031_ACEOF
20032
20033		CFLAGS="$CFLAGS -g"
20034		;;
20035	     *)
20036	        { echo "$as_me:$LINENO: result: DEBUG=$with_debug" >&5
20037echo "${ECHO_T}DEBUG=$with_debug" >&6; }
20038		cat >>confdefs.h <<_ACEOF
20039#define DEBUG $with_debug
20040_ACEOF
20041
20042		CFLAGS="$CFLAGS -g"
20043	        ;;
20044	esac
20045
20046else
20047   { echo "$as_me:$LINENO: result: default=yes" >&5
20048echo "${ECHO_T}default=yes" >&6; }
20049  cat >>confdefs.h <<\_ACEOF
20050#define DEBUG 1
20051_ACEOF
20052
20053  CFLAGS="$CFLAGS -g"
20054
20055
20056fi
20057
20058
20059
20060
20061
20062if test x$arch_x86 = xtrue; then
20063  HOST_X86_TRUE=
20064  HOST_X86_FALSE='#'
20065else
20066  HOST_X86_TRUE='#'
20067  HOST_X86_FALSE=
20068fi
20069
20070
20071
20072if test x$arch_x86_64 = xtrue; then
20073  HOST_X86_64_TRUE=
20074  HOST_X86_64_FALSE='#'
20075else
20076  HOST_X86_64_TRUE='#'
20077  HOST_X86_64_FALSE=
20078fi
20079
20080
20081
20082
20083have_gtk="false"
20084if $use_gtk; then
20085	REQUIRES='glib >= 1.2.4 gtk+ >= 1.2.4'
20086
20087
20088if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20089	if test -n "$ac_tool_prefix"; then
20090  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20091set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20094if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20095  echo $ECHO_N "(cached) $ECHO_C" >&6
20096else
20097  case $PKG_CONFIG in
20098  [\\/]* | ?:[\\/]*)
20099  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20100  ;;
20101  *)
20102  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20103for as_dir in $PATH
20104do
20105  IFS=$as_save_IFS
20106  test -z "$as_dir" && as_dir=.
20107  for ac_exec_ext in '' $ac_executable_extensions; do
20108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20109    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20110    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20111    break 2
20112  fi
20113done
20114done
20115IFS=$as_save_IFS
20116
20117  ;;
20118esac
20119fi
20120PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20121if test -n "$PKG_CONFIG"; then
20122  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20123echo "${ECHO_T}$PKG_CONFIG" >&6; }
20124else
20125  { echo "$as_me:$LINENO: result: no" >&5
20126echo "${ECHO_T}no" >&6; }
20127fi
20128
20129
20130fi
20131if test -z "$ac_cv_path_PKG_CONFIG"; then
20132  ac_pt_PKG_CONFIG=$PKG_CONFIG
20133  # Extract the first word of "pkg-config", so it can be a program name with args.
20134set dummy pkg-config; ac_word=$2
20135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20137if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20138  echo $ECHO_N "(cached) $ECHO_C" >&6
20139else
20140  case $ac_pt_PKG_CONFIG in
20141  [\\/]* | ?:[\\/]*)
20142  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20143  ;;
20144  *)
20145  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20146for as_dir in $PATH
20147do
20148  IFS=$as_save_IFS
20149  test -z "$as_dir" && as_dir=.
20150  for ac_exec_ext in '' $ac_executable_extensions; do
20151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20152    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20153    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20154    break 2
20155  fi
20156done
20157done
20158IFS=$as_save_IFS
20159
20160  ;;
20161esac
20162fi
20163ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20164if test -n "$ac_pt_PKG_CONFIG"; then
20165  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20166echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20167else
20168  { echo "$as_me:$LINENO: result: no" >&5
20169echo "${ECHO_T}no" >&6; }
20170fi
20171
20172  if test "x$ac_pt_PKG_CONFIG" = x; then
20173    PKG_CONFIG=""
20174  else
20175    case $cross_compiling:$ac_tool_warned in
20176yes:)
20177{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20178whose name does not start with the host triplet.  If you think this
20179configuration is useful to you, please write to autoconf@gnu.org." >&5
20180echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20181whose name does not start with the host triplet.  If you think this
20182configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20183ac_tool_warned=yes ;;
20184esac
20185    PKG_CONFIG=$ac_pt_PKG_CONFIG
20186  fi
20187else
20188  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20189fi
20190
20191fi
20192if test -n "$PKG_CONFIG"; then
20193	_pkg_min_version=0.9.0
20194	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20195echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20196	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20197		{ echo "$as_me:$LINENO: result: yes" >&5
20198echo "${ECHO_T}yes" >&6; }
20199	else
20200		{ echo "$as_me:$LINENO: result: no" >&5
20201echo "${ECHO_T}no" >&6; }
20202		PKG_CONFIG=""
20203	fi
20204
20205fi
20206
20207pkg_failed=no
20208{ echo "$as_me:$LINENO: checking for GTK" >&5
20209echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
20210
20211if test -n "$PKG_CONFIG"; then
20212    if test -n "$GTK_CFLAGS"; then
20213        pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
20214    else
20215        if test -n "$PKG_CONFIG" && \
20216    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$REQUIRES\"") >&5
20217  ($PKG_CONFIG --exists --print-errors "$REQUIRES") 2>&5
20218  ac_status=$?
20219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220  (exit $ac_status); }; then
20221  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRES" 2>/dev/null`
20222else
20223  pkg_failed=yes
20224fi
20225    fi
20226else
20227	pkg_failed=untried
20228fi
20229if test -n "$PKG_CONFIG"; then
20230    if test -n "$GTK_LIBS"; then
20231        pkg_cv_GTK_LIBS="$GTK_LIBS"
20232    else
20233        if test -n "$PKG_CONFIG" && \
20234    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$REQUIRES\"") >&5
20235  ($PKG_CONFIG --exists --print-errors "$REQUIRES") 2>&5
20236  ac_status=$?
20237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238  (exit $ac_status); }; then
20239  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "$REQUIRES" 2>/dev/null`
20240else
20241  pkg_failed=yes
20242fi
20243    fi
20244else
20245	pkg_failed=untried
20246fi
20247
20248
20249
20250if test $pkg_failed = yes; then
20251
20252if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20253        _pkg_short_errors_supported=yes
20254else
20255        _pkg_short_errors_supported=no
20256fi
20257        if test $_pkg_short_errors_supported = yes; then
20258	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$REQUIRES"`
20259        else
20260	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$REQUIRES"`
20261        fi
20262	# Put the nasty error message in config.log where it belongs
20263	echo "$GTK_PKG_ERRORS" >&5
20264
20265	have_gtk="false"
20266elif test $pkg_failed = untried; then
20267	have_gtk="false"
20268else
20269	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
20270	GTK_LIBS=$pkg_cv_GTK_LIBS
20271        { echo "$as_me:$LINENO: result: yes" >&5
20272echo "${ECHO_T}yes" >&6; }
20273	have_gtk="true"
20274fi
20275	cat >>confdefs.h <<\_ACEOF
20276#define HAVE_GTK 1
20277_ACEOF
20278
20279fi
20280
20281
20282
20283if test x$have_gtk = xtrue; then
20284  HAVE_GTK_TRUE=
20285  HAVE_GTK_FALSE='#'
20286else
20287  HAVE_GTK_TRUE='#'
20288  HAVE_GTK_FALSE=
20289fi
20290
20291
20292
20293
20294
20295if $use_sdl; then
20296
20297# Check whether --with-sdl-prefix was given.
20298if test "${with_sdl_prefix+set}" = set; then
20299  withval=$with_sdl_prefix; sdl_prefix="$withval"
20300else
20301  sdl_prefix=""
20302fi
20303
20304
20305# Check whether --with-sdl-exec-prefix was given.
20306if test "${with_sdl_exec_prefix+set}" = set; then
20307  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
20308else
20309  sdl_exec_prefix=""
20310fi
20311
20312# Check whether --enable-sdltest was given.
20313if test "${enable_sdltest+set}" = set; then
20314  enableval=$enable_sdltest;
20315else
20316  enable_sdltest=yes
20317fi
20318
20319
20320  if test x$sdl_exec_prefix != x ; then
20321    sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
20322    if test x${SDL_CONFIG+set} != xset ; then
20323      SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
20324    fi
20325  fi
20326  if test x$sdl_prefix != x ; then
20327    sdl_args="$sdl_args --prefix=$sdl_prefix"
20328    if test x${SDL_CONFIG+set} != xset ; then
20329      SDL_CONFIG=$sdl_prefix/bin/sdl-config
20330    fi
20331  fi
20332
20333  if test "x$prefix" != xNONE; then
20334    PATH="$prefix/bin:$prefix/usr/bin:$PATH"
20335  fi
20336  # Extract the first word of "sdl-config", so it can be a program name with args.
20337set dummy sdl-config; ac_word=$2
20338{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20340if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
20341  echo $ECHO_N "(cached) $ECHO_C" >&6
20342else
20343  case $SDL_CONFIG in
20344  [\\/]* | ?:[\\/]*)
20345  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
20346  ;;
20347  *)
20348  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20349for as_dir in $PATH
20350do
20351  IFS=$as_save_IFS
20352  test -z "$as_dir" && as_dir=.
20353  for ac_exec_ext in '' $ac_executable_extensions; do
20354  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20355    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20356    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20357    break 2
20358  fi
20359done
20360done
20361IFS=$as_save_IFS
20362
20363  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
20364  ;;
20365esac
20366fi
20367SDL_CONFIG=$ac_cv_path_SDL_CONFIG
20368if test -n "$SDL_CONFIG"; then
20369  { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
20370echo "${ECHO_T}$SDL_CONFIG" >&6; }
20371else
20372  { echo "$as_me:$LINENO: result: no" >&5
20373echo "${ECHO_T}no" >&6; }
20374fi
20375
20376
20377  min_sdl_version=1.1.6
20378  { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
20379echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
20380  no_sdl=""
20381  if test "$SDL_CONFIG" = "no" ; then
20382    no_sdl=yes
20383  else
20384    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
20385    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
20386
20387    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
20388           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20389    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
20390           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20391    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
20392           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20393    if test "x$enable_sdltest" = "xyes" ; then
20394      ac_save_CFLAGS="$CFLAGS"
20395      ac_save_CXXFLAGS="$CXXFLAGS"
20396      ac_save_LIBS="$LIBS"
20397      CFLAGS="$CFLAGS $SDL_CFLAGS"
20398      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
20399      LIBS="$LIBS $SDL_LIBS"
20400      rm -f conf.sdltest
20401      if test "$cross_compiling" = yes; then
20402  echo $ac_n "cross compiling; assumed OK... $ac_c"
20403else
20404  cat >conftest.$ac_ext <<_ACEOF
20405/* confdefs.h.  */
20406_ACEOF
20407cat confdefs.h >>conftest.$ac_ext
20408cat >>conftest.$ac_ext <<_ACEOF
20409/* end confdefs.h.  */
20410
20411#include <stdio.h>
20412#include <stdlib.h>
20413#include <string.h>
20414#include "SDL.h"
20415
20416char*
20417my_strdup (char *str)
20418{
20419  char *new_str;
20420
20421  if (str)
20422    {
20423      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
20424      strcpy (new_str, str);
20425    }
20426  else
20427    new_str = NULL;
20428
20429  return new_str;
20430}
20431
20432int main (int argc, char *argv[])
20433{
20434  int major, minor, micro;
20435  char *tmp_version;
20436
20437  /* This hangs on some systems (?)
20438  system ("touch conf.sdltest");
20439  */
20440  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
20441
20442  /* HP/UX 9 (%@#!) writes to sscanf strings */
20443  tmp_version = my_strdup("$min_sdl_version");
20444  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20445     printf("%s, bad version string\n", "$min_sdl_version");
20446     exit(1);
20447   }
20448
20449   if (($sdl_major_version > major) ||
20450      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
20451      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
20452    {
20453      return 0;
20454    }
20455  else
20456    {
20457      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
20458      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
20459      printf("*** best to upgrade to the required version.\n");
20460      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
20461      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
20462      printf("*** config.cache before re-running configure\n");
20463      return 1;
20464    }
20465}
20466
20467
20468_ACEOF
20469rm -f conftest$ac_exeext
20470if { (ac_try="$ac_link"
20471case "(($ac_try" in
20472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473  *) ac_try_echo=$ac_try;;
20474esac
20475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476  (eval "$ac_link") 2>&5
20477  ac_status=$?
20478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20480  { (case "(($ac_try" in
20481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482  *) ac_try_echo=$ac_try;;
20483esac
20484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485  (eval "$ac_try") 2>&5
20486  ac_status=$?
20487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488  (exit $ac_status); }; }; then
20489  :
20490else
20491  echo "$as_me: program exited with status $ac_status" >&5
20492echo "$as_me: failed program was:" >&5
20493sed 's/^/| /' conftest.$ac_ext >&5
20494
20495( exit $ac_status )
20496no_sdl=yes
20497fi
20498rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20499fi
20500
20501
20502       CFLAGS="$ac_save_CFLAGS"
20503       CXXFLAGS="$ac_save_CXXFLAGS"
20504       LIBS="$ac_save_LIBS"
20505     fi
20506  fi
20507  if test "x$no_sdl" = x ; then
20508     { echo "$as_me:$LINENO: result: yes" >&5
20509echo "${ECHO_T}yes" >&6; }
20510
20511		cat >>confdefs.h <<\_ACEOF
20512#define HAVE_SDL 1
20513_ACEOF
20514
20515
20516  else
20517     { echo "$as_me:$LINENO: result: no" >&5
20518echo "${ECHO_T}no" >&6; }
20519     if test "$SDL_CONFIG" = "no" ; then
20520       echo "*** The sdl-config script installed by SDL could not be found"
20521       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
20522       echo "*** your path, or set the SDL_CONFIG environment variable to the"
20523       echo "*** full path to sdl-config."
20524     else
20525       if test -f conf.sdltest ; then
20526        :
20527       else
20528          echo "*** Could not run SDL test program, checking why..."
20529          CFLAGS="$CFLAGS $SDL_CFLAGS"
20530          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
20531          LIBS="$LIBS $SDL_LIBS"
20532          cat >conftest.$ac_ext <<_ACEOF
20533/* confdefs.h.  */
20534_ACEOF
20535cat confdefs.h >>conftest.$ac_ext
20536cat >>conftest.$ac_ext <<_ACEOF
20537/* end confdefs.h.  */
20538
20539#include <stdio.h>
20540#include "SDL.h"
20541
20542int main(int argc, char *argv[])
20543{ return 0; }
20544#undef  main
20545#define main K_and_R_C_main
20546
20547int
20548main ()
20549{
20550 return 0;
20551  ;
20552  return 0;
20553}
20554_ACEOF
20555rm -f conftest.$ac_objext conftest$ac_exeext
20556if { (ac_try="$ac_link"
20557case "(($ac_try" in
20558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559  *) ac_try_echo=$ac_try;;
20560esac
20561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562  (eval "$ac_link") 2>conftest.er1
20563  ac_status=$?
20564  grep -v '^ *+' conftest.er1 >conftest.err
20565  rm -f conftest.er1
20566  cat conftest.err >&5
20567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568  (exit $ac_status); } &&
20569	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20570  { (case "(($ac_try" in
20571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572  *) ac_try_echo=$ac_try;;
20573esac
20574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575  (eval "$ac_try") 2>&5
20576  ac_status=$?
20577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578  (exit $ac_status); }; } &&
20579	 { ac_try='test -s conftest$ac_exeext'
20580  { (case "(($ac_try" in
20581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582  *) ac_try_echo=$ac_try;;
20583esac
20584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585  (eval "$ac_try") 2>&5
20586  ac_status=$?
20587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588  (exit $ac_status); }; }; then
20589   echo "*** The test program compiled, but did not run. This usually means"
20590          echo "*** that the run-time linker is not finding SDL or finding the wrong"
20591          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
20592          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20593          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20594          echo "*** is required on your system"
20595	  echo "***"
20596          echo "*** If you have an old version installed, it is best to remove it, although"
20597          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20598else
20599  echo "$as_me: failed program was:" >&5
20600sed 's/^/| /' conftest.$ac_ext >&5
20601
20602	 echo "*** The test program failed to compile or link. See the file config.log for the"
20603          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
20604          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
20605          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
20606fi
20607
20608rm -f core conftest.err conftest.$ac_objext \
20609      conftest$ac_exeext conftest.$ac_ext
20610          CFLAGS="$ac_save_CFLAGS"
20611          CXXFLAGS="$ac_save_CXXFLAGS"
20612          LIBS="$ac_save_LIBS"
20613       fi
20614     fi
20615     SDL_CFLAGS=""
20616     SDL_LIBS=""
20617     :
20618  fi
20619
20620
20621  rm -f conf.sdltest
20622
20623fi
20624
20625if  $use_gtk && $use_xv ; then
20626	{ echo "$as_me:$LINENO: checking for XvQueryAdaptors in -lXv" >&5
20627echo $ECHO_N "checking for XvQueryAdaptors in -lXv... $ECHO_C" >&6; }
20628if test "${ac_cv_lib_Xv_XvQueryAdaptors+set}" = set; then
20629  echo $ECHO_N "(cached) $ECHO_C" >&6
20630else
20631  ac_check_lib_save_LIBS=$LIBS
20632LIBS="-lXv $GTK_LIBS
20633	 $LIBS"
20634cat >conftest.$ac_ext <<_ACEOF
20635/* confdefs.h.  */
20636_ACEOF
20637cat confdefs.h >>conftest.$ac_ext
20638cat >>conftest.$ac_ext <<_ACEOF
20639/* end confdefs.h.  */
20640
20641/* Override any GCC internal prototype to avoid an error.
20642   Use char because int might match the return type of a GCC
20643   builtin and then its argument prototype would still apply.  */
20644#ifdef __cplusplus
20645extern "C"
20646#endif
20647char XvQueryAdaptors ();
20648int
20649main ()
20650{
20651return XvQueryAdaptors ();
20652  ;
20653  return 0;
20654}
20655_ACEOF
20656rm -f conftest.$ac_objext conftest$ac_exeext
20657if { (ac_try="$ac_link"
20658case "(($ac_try" in
20659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660  *) ac_try_echo=$ac_try;;
20661esac
20662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663  (eval "$ac_link") 2>conftest.er1
20664  ac_status=$?
20665  grep -v '^ *+' conftest.er1 >conftest.err
20666  rm -f conftest.er1
20667  cat conftest.err >&5
20668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669  (exit $ac_status); } &&
20670	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20671  { (case "(($ac_try" in
20672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673  *) ac_try_echo=$ac_try;;
20674esac
20675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676  (eval "$ac_try") 2>&5
20677  ac_status=$?
20678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679  (exit $ac_status); }; } &&
20680	 { ac_try='test -s conftest$ac_exeext'
20681  { (case "(($ac_try" in
20682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683  *) ac_try_echo=$ac_try;;
20684esac
20685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686  (eval "$ac_try") 2>&5
20687  ac_status=$?
20688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689  (exit $ac_status); }; }; then
20690  ac_cv_lib_Xv_XvQueryAdaptors=yes
20691else
20692  echo "$as_me: failed program was:" >&5
20693sed 's/^/| /' conftest.$ac_ext >&5
20694
20695	ac_cv_lib_Xv_XvQueryAdaptors=no
20696fi
20697
20698rm -f core conftest.err conftest.$ac_objext \
20699      conftest$ac_exeext conftest.$ac_ext
20700LIBS=$ac_check_lib_save_LIBS
20701fi
20702{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvQueryAdaptors" >&5
20703echo "${ECHO_T}$ac_cv_lib_Xv_XvQueryAdaptors" >&6; }
20704if test $ac_cv_lib_Xv_XvQueryAdaptors = yes; then
20705  cat >>confdefs.h <<\_ACEOF
20706#define HAVE_LIBXV 1
20707_ACEOF
20708
20709
20710			XV_LIB='-lXv'
20711
20712else
20713  { { echo "$as_me:$LINENO: error: Could not find Xv Lib" >&5
20714echo "$as_me: error: Could not find Xv Lib" >&2;}
20715   { (exit 1); exit 1; }; }
20716fi
20717
20718fi
20719
20720
20721
20722{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20723echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20724if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20725  echo $ECHO_N "(cached) $ECHO_C" >&6
20726else
20727  ac_check_lib_save_LIBS=$LIBS
20728LIBS="-lpthread  $LIBS"
20729cat >conftest.$ac_ext <<_ACEOF
20730/* confdefs.h.  */
20731_ACEOF
20732cat confdefs.h >>conftest.$ac_ext
20733cat >>conftest.$ac_ext <<_ACEOF
20734/* end confdefs.h.  */
20735
20736/* Override any GCC internal prototype to avoid an error.
20737   Use char because int might match the return type of a GCC
20738   builtin and then its argument prototype would still apply.  */
20739#ifdef __cplusplus
20740extern "C"
20741#endif
20742char pthread_create ();
20743int
20744main ()
20745{
20746return pthread_create ();
20747  ;
20748  return 0;
20749}
20750_ACEOF
20751rm -f conftest.$ac_objext conftest$ac_exeext
20752if { (ac_try="$ac_link"
20753case "(($ac_try" in
20754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755  *) ac_try_echo=$ac_try;;
20756esac
20757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758  (eval "$ac_link") 2>conftest.er1
20759  ac_status=$?
20760  grep -v '^ *+' conftest.er1 >conftest.err
20761  rm -f conftest.er1
20762  cat conftest.err >&5
20763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764  (exit $ac_status); } &&
20765	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20766  { (case "(($ac_try" in
20767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20768  *) ac_try_echo=$ac_try;;
20769esac
20770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20771  (eval "$ac_try") 2>&5
20772  ac_status=$?
20773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774  (exit $ac_status); }; } &&
20775	 { ac_try='test -s conftest$ac_exeext'
20776  { (case "(($ac_try" in
20777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778  *) ac_try_echo=$ac_try;;
20779esac
20780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781  (eval "$ac_try") 2>&5
20782  ac_status=$?
20783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784  (exit $ac_status); }; }; then
20785  ac_cv_lib_pthread_pthread_create=yes
20786else
20787  echo "$as_me: failed program was:" >&5
20788sed 's/^/| /' conftest.$ac_ext >&5
20789
20790	ac_cv_lib_pthread_pthread_create=no
20791fi
20792
20793rm -f core conftest.err conftest.$ac_objext \
20794      conftest$ac_exeext conftest.$ac_ext
20795LIBS=$ac_check_lib_save_LIBS
20796fi
20797{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20798echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20799if test $ac_cv_lib_pthread_pthread_create = yes; then
20800   PTHREAD_LIBS="-lpthread"
20801fi
20802
20803
20804OS_ARCH=`uname -s | sed -e 's|/|_|g'`
20805# FreeBSD and OpenBSD have neither -lpthread nor integrated pthreads in libc.
20806# Instead -pthread is used to the compiler/linker to get pthreads working right.
20807if test x$OS_ARCH = xFreeBSD -o x$OS_ARCH = xOpenBSD; then
20808   CFLAGS="$CFLAGS -pthread"
20809   CXXFLAGS="$CXXFLAGS -pthread"
20810fi
20811
20812
20813
20814{ echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
20815echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
20816if test "${ac_cv_lib_m_sqrt+set}" = set; then
20817  echo $ECHO_N "(cached) $ECHO_C" >&6
20818else
20819  ac_check_lib_save_LIBS=$LIBS
20820LIBS="-lm  $LIBS"
20821cat >conftest.$ac_ext <<_ACEOF
20822/* confdefs.h.  */
20823_ACEOF
20824cat confdefs.h >>conftest.$ac_ext
20825cat >>conftest.$ac_ext <<_ACEOF
20826/* end confdefs.h.  */
20827
20828/* Override any GCC internal prototype to avoid an error.
20829   Use char because int might match the return type of a GCC
20830   builtin and then its argument prototype would still apply.  */
20831#ifdef __cplusplus
20832extern "C"
20833#endif
20834char sqrt ();
20835int
20836main ()
20837{
20838return sqrt ();
20839  ;
20840  return 0;
20841}
20842_ACEOF
20843rm -f conftest.$ac_objext conftest$ac_exeext
20844if { (ac_try="$ac_link"
20845case "(($ac_try" in
20846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847  *) ac_try_echo=$ac_try;;
20848esac
20849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850  (eval "$ac_link") 2>conftest.er1
20851  ac_status=$?
20852  grep -v '^ *+' conftest.er1 >conftest.err
20853  rm -f conftest.er1
20854  cat conftest.err >&5
20855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856  (exit $ac_status); } &&
20857	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20858  { (case "(($ac_try" in
20859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860  *) ac_try_echo=$ac_try;;
20861esac
20862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863  (eval "$ac_try") 2>&5
20864  ac_status=$?
20865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866  (exit $ac_status); }; } &&
20867	 { ac_try='test -s conftest$ac_exeext'
20868  { (case "(($ac_try" in
20869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870  *) ac_try_echo=$ac_try;;
20871esac
20872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20873  (eval "$ac_try") 2>&5
20874  ac_status=$?
20875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876  (exit $ac_status); }; }; then
20877  ac_cv_lib_m_sqrt=yes
20878else
20879  echo "$as_me: failed program was:" >&5
20880sed 's/^/| /' conftest.$ac_ext >&5
20881
20882	ac_cv_lib_m_sqrt=no
20883fi
20884
20885rm -f core conftest.err conftest.$ac_objext \
20886      conftest$ac_exeext conftest.$ac_ext
20887LIBS=$ac_check_lib_save_LIBS
20888fi
20889{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
20890echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
20891if test $ac_cv_lib_m_sqrt = yes; then
20892  cat >>confdefs.h <<_ACEOF
20893#define HAVE_LIBM 1
20894_ACEOF
20895
20896  LIBS="-lm $LIBS"
20897
20898fi
20899
20900
20901REQUIRES_NOPKGCONFIG=""
20902if test "$GCC" = "yes"; then
20903      { echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
20904echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6; }
20905if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
20906  echo $ECHO_N "(cached) $ECHO_C" >&6
20907else
20908  ac_check_lib_save_LIBS=$LIBS
20909LIBS="-lpopt  $LIBS"
20910cat >conftest.$ac_ext <<_ACEOF
20911/* confdefs.h.  */
20912_ACEOF
20913cat confdefs.h >>conftest.$ac_ext
20914cat >>conftest.$ac_ext <<_ACEOF
20915/* end confdefs.h.  */
20916
20917/* Override any GCC internal prototype to avoid an error.
20918   Use char because int might match the return type of a GCC
20919   builtin and then its argument prototype would still apply.  */
20920#ifdef __cplusplus
20921extern "C"
20922#endif
20923char poptGetContext ();
20924int
20925main ()
20926{
20927return poptGetContext ();
20928  ;
20929  return 0;
20930}
20931_ACEOF
20932rm -f conftest.$ac_objext conftest$ac_exeext
20933if { (ac_try="$ac_link"
20934case "(($ac_try" in
20935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936  *) ac_try_echo=$ac_try;;
20937esac
20938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939  (eval "$ac_link") 2>conftest.er1
20940  ac_status=$?
20941  grep -v '^ *+' conftest.er1 >conftest.err
20942  rm -f conftest.er1
20943  cat conftest.err >&5
20944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945  (exit $ac_status); } &&
20946	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20947  { (case "(($ac_try" in
20948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20949  *) ac_try_echo=$ac_try;;
20950esac
20951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20952  (eval "$ac_try") 2>&5
20953  ac_status=$?
20954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955  (exit $ac_status); }; } &&
20956	 { ac_try='test -s conftest$ac_exeext'
20957  { (case "(($ac_try" in
20958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959  *) ac_try_echo=$ac_try;;
20960esac
20961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962  (eval "$ac_try") 2>&5
20963  ac_status=$?
20964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965  (exit $ac_status); }; }; then
20966  ac_cv_lib_popt_poptGetContext=yes
20967else
20968  echo "$as_me: failed program was:" >&5
20969sed 's/^/| /' conftest.$ac_ext >&5
20970
20971	ac_cv_lib_popt_poptGetContext=no
20972fi
20973
20974rm -f core conftest.err conftest.$ac_objext \
20975      conftest$ac_exeext conftest.$ac_ext
20976LIBS=$ac_check_lib_save_LIBS
20977fi
20978{ echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
20979echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6; }
20980if test $ac_cv_lib_popt_poptGetContext = yes; then
20981
20982        POPT_LIB="-lpopt"
20983
20984cat >>confdefs.h <<\_ACEOF
20985#define HAVE_LIBPOPT 1
20986_ACEOF
20987
20988
20989else
20990
20991        { echo "$as_me:$LINENO: WARNING: playdv needs the popt package for command line parsing.
20992 		    The source archive for popt is available at:
20993			ftp://ftp.redhat.com/pub/redhat/code/popt" >&5
20994echo "$as_me: WARNING: playdv needs the popt package for command line parsing.
20995 		    The source archive for popt is available at:
20996			ftp://ftp.redhat.com/pub/redhat/code/popt" >&2;}
20997
20998fi
20999
21000fi
21001
21002
21003
21004{ echo "$as_me:$LINENO: checking for X" >&5
21005echo $ECHO_N "checking for X... $ECHO_C" >&6; }
21006
21007
21008# Check whether --with-x was given.
21009if test "${with_x+set}" = set; then
21010  withval=$with_x;
21011fi
21012
21013# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21014if test "x$with_x" = xno; then
21015  # The user explicitly disabled X.
21016  have_x=disabled
21017else
21018  case $x_includes,$x_libraries in #(
21019    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
21020echo "$as_me: error: Cannot use X directory names containing '" >&2;}
21021   { (exit 1); exit 1; }; };; #(
21022    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
21023  echo $ECHO_N "(cached) $ECHO_C" >&6
21024else
21025  # One or both of the vars are not set, and there is no cached value.
21026ac_x_includes=no ac_x_libraries=no
21027rm -f -r conftest.dir
21028if mkdir conftest.dir; then
21029  cd conftest.dir
21030  cat >Imakefile <<'_ACEOF'
21031incroot:
21032	@echo incroot='${INCROOT}'
21033usrlibdir:
21034	@echo usrlibdir='${USRLIBDIR}'
21035libdir:
21036	@echo libdir='${LIBDIR}'
21037_ACEOF
21038  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
21039    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21040    for ac_var in incroot usrlibdir libdir; do
21041      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
21042    done
21043    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21044    for ac_extension in a so sl; do
21045      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
21046	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
21047	ac_im_usrlibdir=$ac_im_libdir; break
21048      fi
21049    done
21050    # Screen out bogus values from the imake configuration.  They are
21051    # bogus both because they are the default anyway, and because
21052    # using them would break gcc on systems where it needs fixed includes.
21053    case $ac_im_incroot in
21054	/usr/include) ac_x_includes= ;;
21055	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21056    esac
21057    case $ac_im_usrlibdir in
21058	/usr/lib | /lib) ;;
21059	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21060    esac
21061  fi
21062  cd ..
21063  rm -f -r conftest.dir
21064fi
21065
21066# Standard set of common directories for X headers.
21067# Check X11 before X11Rn because it is often a symlink to the current release.
21068ac_x_header_dirs='
21069/usr/X11/include
21070/usr/X11R6/include
21071/usr/X11R5/include
21072/usr/X11R4/include
21073
21074/usr/include/X11
21075/usr/include/X11R6
21076/usr/include/X11R5
21077/usr/include/X11R4
21078
21079/usr/local/X11/include
21080/usr/local/X11R6/include
21081/usr/local/X11R5/include
21082/usr/local/X11R4/include
21083
21084/usr/local/include/X11
21085/usr/local/include/X11R6
21086/usr/local/include/X11R5
21087/usr/local/include/X11R4
21088
21089/usr/X386/include
21090/usr/x386/include
21091/usr/XFree86/include/X11
21092
21093/usr/include
21094/usr/local/include
21095/usr/unsupported/include
21096/usr/athena/include
21097/usr/local/x11r5/include
21098/usr/lpp/Xamples/include
21099
21100/usr/openwin/include
21101/usr/openwin/share/include'
21102
21103if test "$ac_x_includes" = no; then
21104  # Guess where to find include files, by looking for Xlib.h.
21105  # First, try using that file with no special directory specified.
21106  cat >conftest.$ac_ext <<_ACEOF
21107/* confdefs.h.  */
21108_ACEOF
21109cat confdefs.h >>conftest.$ac_ext
21110cat >>conftest.$ac_ext <<_ACEOF
21111/* end confdefs.h.  */
21112#include <X11/Xlib.h>
21113_ACEOF
21114if { (ac_try="$ac_cpp conftest.$ac_ext"
21115case "(($ac_try" in
21116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117  *) ac_try_echo=$ac_try;;
21118esac
21119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21121  ac_status=$?
21122  grep -v '^ *+' conftest.er1 >conftest.err
21123  rm -f conftest.er1
21124  cat conftest.err >&5
21125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126  (exit $ac_status); } >/dev/null; then
21127  if test -s conftest.err; then
21128    ac_cpp_err=$ac_c_preproc_warn_flag
21129    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21130  else
21131    ac_cpp_err=
21132  fi
21133else
21134  ac_cpp_err=yes
21135fi
21136if test -z "$ac_cpp_err"; then
21137  # We can compile using X headers with no special include directory.
21138ac_x_includes=
21139else
21140  echo "$as_me: failed program was:" >&5
21141sed 's/^/| /' conftest.$ac_ext >&5
21142
21143  for ac_dir in $ac_x_header_dirs; do
21144  if test -r "$ac_dir/X11/Xlib.h"; then
21145    ac_x_includes=$ac_dir
21146    break
21147  fi
21148done
21149fi
21150
21151rm -f conftest.err conftest.$ac_ext
21152fi # $ac_x_includes = no
21153
21154if test "$ac_x_libraries" = no; then
21155  # Check for the libraries.
21156  # See if we find them without any special options.
21157  # Don't add to $LIBS permanently.
21158  ac_save_LIBS=$LIBS
21159  LIBS="-lXt $LIBS"
21160  cat >conftest.$ac_ext <<_ACEOF
21161/* confdefs.h.  */
21162_ACEOF
21163cat confdefs.h >>conftest.$ac_ext
21164cat >>conftest.$ac_ext <<_ACEOF
21165/* end confdefs.h.  */
21166#include <X11/Xlib.h>
21167int
21168main ()
21169{
21170XrmInitialize ()
21171  ;
21172  return 0;
21173}
21174_ACEOF
21175rm -f conftest.$ac_objext conftest$ac_exeext
21176if { (ac_try="$ac_link"
21177case "(($ac_try" in
21178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21179  *) ac_try_echo=$ac_try;;
21180esac
21181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21182  (eval "$ac_link") 2>conftest.er1
21183  ac_status=$?
21184  grep -v '^ *+' conftest.er1 >conftest.err
21185  rm -f conftest.er1
21186  cat conftest.err >&5
21187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188  (exit $ac_status); } &&
21189	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21190  { (case "(($ac_try" in
21191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192  *) ac_try_echo=$ac_try;;
21193esac
21194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195  (eval "$ac_try") 2>&5
21196  ac_status=$?
21197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198  (exit $ac_status); }; } &&
21199	 { ac_try='test -s conftest$ac_exeext'
21200  { (case "(($ac_try" in
21201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202  *) ac_try_echo=$ac_try;;
21203esac
21204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21205  (eval "$ac_try") 2>&5
21206  ac_status=$?
21207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208  (exit $ac_status); }; }; then
21209  LIBS=$ac_save_LIBS
21210# We can link X programs with no special library path.
21211ac_x_libraries=
21212else
21213  echo "$as_me: failed program was:" >&5
21214sed 's/^/| /' conftest.$ac_ext >&5
21215
21216	LIBS=$ac_save_LIBS
21217for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21218do
21219  # Don't even attempt the hair of trying to link an X program!
21220  for ac_extension in a so sl; do
21221    if test -r "$ac_dir/libXt.$ac_extension"; then
21222      ac_x_libraries=$ac_dir
21223      break 2
21224    fi
21225  done
21226done
21227fi
21228
21229rm -f core conftest.err conftest.$ac_objext \
21230      conftest$ac_exeext conftest.$ac_ext
21231fi # $ac_x_libraries = no
21232
21233case $ac_x_includes,$ac_x_libraries in #(
21234  no,* | *,no | *\'*)
21235    # Didn't find X, or a directory has "'" in its name.
21236    ac_cv_have_x="have_x=no";; #(
21237  *)
21238    # Record where we found X for the cache.
21239    ac_cv_have_x="have_x=yes\
21240	ac_x_includes='$ac_x_includes'\
21241	ac_x_libraries='$ac_x_libraries'"
21242esac
21243fi
21244;; #(
21245    *) have_x=yes;;
21246  esac
21247  eval "$ac_cv_have_x"
21248fi # $with_x != no
21249
21250if test "$have_x" != yes; then
21251  { echo "$as_me:$LINENO: result: $have_x" >&5
21252echo "${ECHO_T}$have_x" >&6; }
21253  no_x=yes
21254else
21255  # If each of the values was on the command line, it overrides each guess.
21256  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21257  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21258  # Update the cache value to reflect the command line values.
21259  ac_cv_have_x="have_x=yes\
21260	ac_x_includes='$x_includes'\
21261	ac_x_libraries='$x_libraries'"
21262  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21263echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
21264fi
21265
21266{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21267echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21268if test "${ac_cv_header_stdc+set}" = set; then
21269  echo $ECHO_N "(cached) $ECHO_C" >&6
21270else
21271  cat >conftest.$ac_ext <<_ACEOF
21272/* confdefs.h.  */
21273_ACEOF
21274cat confdefs.h >>conftest.$ac_ext
21275cat >>conftest.$ac_ext <<_ACEOF
21276/* end confdefs.h.  */
21277#include <stdlib.h>
21278#include <stdarg.h>
21279#include <string.h>
21280#include <float.h>
21281
21282int
21283main ()
21284{
21285
21286  ;
21287  return 0;
21288}
21289_ACEOF
21290rm -f conftest.$ac_objext
21291if { (ac_try="$ac_compile"
21292case "(($ac_try" in
21293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21294  *) ac_try_echo=$ac_try;;
21295esac
21296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21297  (eval "$ac_compile") 2>conftest.er1
21298  ac_status=$?
21299  grep -v '^ *+' conftest.er1 >conftest.err
21300  rm -f conftest.er1
21301  cat conftest.err >&5
21302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303  (exit $ac_status); } &&
21304	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21305  { (case "(($ac_try" in
21306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21307  *) ac_try_echo=$ac_try;;
21308esac
21309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21310  (eval "$ac_try") 2>&5
21311  ac_status=$?
21312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313  (exit $ac_status); }; } &&
21314	 { ac_try='test -s conftest.$ac_objext'
21315  { (case "(($ac_try" in
21316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317  *) ac_try_echo=$ac_try;;
21318esac
21319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320  (eval "$ac_try") 2>&5
21321  ac_status=$?
21322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323  (exit $ac_status); }; }; then
21324  ac_cv_header_stdc=yes
21325else
21326  echo "$as_me: failed program was:" >&5
21327sed 's/^/| /' conftest.$ac_ext >&5
21328
21329	ac_cv_header_stdc=no
21330fi
21331
21332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21333
21334if test $ac_cv_header_stdc = yes; then
21335  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21336  cat >conftest.$ac_ext <<_ACEOF
21337/* confdefs.h.  */
21338_ACEOF
21339cat confdefs.h >>conftest.$ac_ext
21340cat >>conftest.$ac_ext <<_ACEOF
21341/* end confdefs.h.  */
21342#include <string.h>
21343
21344_ACEOF
21345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21346  $EGREP "memchr" >/dev/null 2>&1; then
21347  :
21348else
21349  ac_cv_header_stdc=no
21350fi
21351rm -f conftest*
21352
21353fi
21354
21355if test $ac_cv_header_stdc = yes; then
21356  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21357  cat >conftest.$ac_ext <<_ACEOF
21358/* confdefs.h.  */
21359_ACEOF
21360cat confdefs.h >>conftest.$ac_ext
21361cat >>conftest.$ac_ext <<_ACEOF
21362/* end confdefs.h.  */
21363#include <stdlib.h>
21364
21365_ACEOF
21366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21367  $EGREP "free" >/dev/null 2>&1; then
21368  :
21369else
21370  ac_cv_header_stdc=no
21371fi
21372rm -f conftest*
21373
21374fi
21375
21376if test $ac_cv_header_stdc = yes; then
21377  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21378  if test "$cross_compiling" = yes; then
21379  :
21380else
21381  cat >conftest.$ac_ext <<_ACEOF
21382/* confdefs.h.  */
21383_ACEOF
21384cat confdefs.h >>conftest.$ac_ext
21385cat >>conftest.$ac_ext <<_ACEOF
21386/* end confdefs.h.  */
21387#include <ctype.h>
21388#include <stdlib.h>
21389#if ((' ' & 0x0FF) == 0x020)
21390# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21391# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21392#else
21393# define ISLOWER(c) \
21394		   (('a' <= (c) && (c) <= 'i') \
21395		     || ('j' <= (c) && (c) <= 'r') \
21396		     || ('s' <= (c) && (c) <= 'z'))
21397# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21398#endif
21399
21400#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21401int
21402main ()
21403{
21404  int i;
21405  for (i = 0; i < 256; i++)
21406    if (XOR (islower (i), ISLOWER (i))
21407	|| toupper (i) != TOUPPER (i))
21408      return 2;
21409  return 0;
21410}
21411_ACEOF
21412rm -f conftest$ac_exeext
21413if { (ac_try="$ac_link"
21414case "(($ac_try" in
21415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21416  *) ac_try_echo=$ac_try;;
21417esac
21418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21419  (eval "$ac_link") 2>&5
21420  ac_status=$?
21421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21423  { (case "(($ac_try" in
21424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425  *) ac_try_echo=$ac_try;;
21426esac
21427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428  (eval "$ac_try") 2>&5
21429  ac_status=$?
21430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431  (exit $ac_status); }; }; then
21432  :
21433else
21434  echo "$as_me: program exited with status $ac_status" >&5
21435echo "$as_me: failed program was:" >&5
21436sed 's/^/| /' conftest.$ac_ext >&5
21437
21438( exit $ac_status )
21439ac_cv_header_stdc=no
21440fi
21441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21442fi
21443
21444
21445fi
21446fi
21447{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21448echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21449if test $ac_cv_header_stdc = yes; then
21450
21451cat >>confdefs.h <<\_ACEOF
21452#define STDC_HEADERS 1
21453_ACEOF
21454
21455fi
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465for ac_header in fcntl.h sys/time.h unistd.h linux/videodev.h sys/soundcard.h \
21466endian.h machine/endian.h inttypes.h
21467do
21468as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21469if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21470  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21473  echo $ECHO_N "(cached) $ECHO_C" >&6
21474fi
21475ac_res=`eval echo '${'$as_ac_Header'}'`
21476	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21477echo "${ECHO_T}$ac_res" >&6; }
21478else
21479  # Is the header compilable?
21480{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21481echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21482cat >conftest.$ac_ext <<_ACEOF
21483/* confdefs.h.  */
21484_ACEOF
21485cat confdefs.h >>conftest.$ac_ext
21486cat >>conftest.$ac_ext <<_ACEOF
21487/* end confdefs.h.  */
21488$ac_includes_default
21489#include <$ac_header>
21490_ACEOF
21491rm -f conftest.$ac_objext
21492if { (ac_try="$ac_compile"
21493case "(($ac_try" in
21494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21495  *) ac_try_echo=$ac_try;;
21496esac
21497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21498  (eval "$ac_compile") 2>conftest.er1
21499  ac_status=$?
21500  grep -v '^ *+' conftest.er1 >conftest.err
21501  rm -f conftest.er1
21502  cat conftest.err >&5
21503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504  (exit $ac_status); } &&
21505	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21506  { (case "(($ac_try" in
21507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508  *) ac_try_echo=$ac_try;;
21509esac
21510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511  (eval "$ac_try") 2>&5
21512  ac_status=$?
21513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514  (exit $ac_status); }; } &&
21515	 { ac_try='test -s conftest.$ac_objext'
21516  { (case "(($ac_try" in
21517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518  *) ac_try_echo=$ac_try;;
21519esac
21520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521  (eval "$ac_try") 2>&5
21522  ac_status=$?
21523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524  (exit $ac_status); }; }; then
21525  ac_header_compiler=yes
21526else
21527  echo "$as_me: failed program was:" >&5
21528sed 's/^/| /' conftest.$ac_ext >&5
21529
21530	ac_header_compiler=no
21531fi
21532
21533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21534{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21535echo "${ECHO_T}$ac_header_compiler" >&6; }
21536
21537# Is the header present?
21538{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21539echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21540cat >conftest.$ac_ext <<_ACEOF
21541/* confdefs.h.  */
21542_ACEOF
21543cat confdefs.h >>conftest.$ac_ext
21544cat >>conftest.$ac_ext <<_ACEOF
21545/* end confdefs.h.  */
21546#include <$ac_header>
21547_ACEOF
21548if { (ac_try="$ac_cpp conftest.$ac_ext"
21549case "(($ac_try" in
21550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551  *) ac_try_echo=$ac_try;;
21552esac
21553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21555  ac_status=$?
21556  grep -v '^ *+' conftest.er1 >conftest.err
21557  rm -f conftest.er1
21558  cat conftest.err >&5
21559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560  (exit $ac_status); } >/dev/null; then
21561  if test -s conftest.err; then
21562    ac_cpp_err=$ac_c_preproc_warn_flag
21563    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21564  else
21565    ac_cpp_err=
21566  fi
21567else
21568  ac_cpp_err=yes
21569fi
21570if test -z "$ac_cpp_err"; then
21571  ac_header_preproc=yes
21572else
21573  echo "$as_me: failed program was:" >&5
21574sed 's/^/| /' conftest.$ac_ext >&5
21575
21576  ac_header_preproc=no
21577fi
21578
21579rm -f conftest.err conftest.$ac_ext
21580{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21581echo "${ECHO_T}$ac_header_preproc" >&6; }
21582
21583# So?  What about this header?
21584case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21585  yes:no: )
21586    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21587echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21588    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21589echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21590    ac_header_preproc=yes
21591    ;;
21592  no:yes:* )
21593    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21594echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21595    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21596echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21597    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21598echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21599    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21600echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21601    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21602echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21603    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21604echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21605
21606    ;;
21607esac
21608{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21610if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21611  echo $ECHO_N "(cached) $ECHO_C" >&6
21612else
21613  eval "$as_ac_Header=\$ac_header_preproc"
21614fi
21615ac_res=`eval echo '${'$as_ac_Header'}'`
21616	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21617echo "${ECHO_T}$ac_res" >&6; }
21618
21619fi
21620if test `eval echo '${'$as_ac_Header'}'` = yes; then
21621  cat >>confdefs.h <<_ACEOF
21622#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21623_ACEOF
21624
21625fi
21626
21627done
21628
21629
21630{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21631echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21632if test "${ac_cv_c_const+set}" = set; then
21633  echo $ECHO_N "(cached) $ECHO_C" >&6
21634else
21635  cat >conftest.$ac_ext <<_ACEOF
21636/* confdefs.h.  */
21637_ACEOF
21638cat confdefs.h >>conftest.$ac_ext
21639cat >>conftest.$ac_ext <<_ACEOF
21640/* end confdefs.h.  */
21641
21642int
21643main ()
21644{
21645/* FIXME: Include the comments suggested by Paul. */
21646#ifndef __cplusplus
21647  /* Ultrix mips cc rejects this.  */
21648  typedef int charset[2];
21649  const charset x;
21650  /* SunOS 4.1.1 cc rejects this.  */
21651  char const *const *ccp;
21652  char **p;
21653  /* NEC SVR4.0.2 mips cc rejects this.  */
21654  struct point {int x, y;};
21655  static struct point const zero = {0,0};
21656  /* AIX XL C 1.02.0.0 rejects this.
21657     It does not let you subtract one const X* pointer from another in
21658     an arm of an if-expression whose if-part is not a constant
21659     expression */
21660  const char *g = "string";
21661  ccp = &g + (g ? g-g : 0);
21662  /* HPUX 7.0 cc rejects these. */
21663  ++ccp;
21664  p = (char**) ccp;
21665  ccp = (char const *const *) p;
21666  { /* SCO 3.2v4 cc rejects this.  */
21667    char *t;
21668    char const *s = 0 ? (char *) 0 : (char const *) 0;
21669
21670    *t++ = 0;
21671    if (s) return 0;
21672  }
21673  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21674    int x[] = {25, 17};
21675    const int *foo = &x[0];
21676    ++foo;
21677  }
21678  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21679    typedef const int *iptr;
21680    iptr p = 0;
21681    ++p;
21682  }
21683  { /* AIX XL C 1.02.0.0 rejects this saying
21684       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21685    struct s { int j; const int *ap[3]; };
21686    struct s *b; b->j = 5;
21687  }
21688  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21689    const int foo = 10;
21690    if (!foo) return 0;
21691  }
21692  return !x[0] && !zero.x;
21693#endif
21694
21695  ;
21696  return 0;
21697}
21698_ACEOF
21699rm -f conftest.$ac_objext
21700if { (ac_try="$ac_compile"
21701case "(($ac_try" in
21702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703  *) ac_try_echo=$ac_try;;
21704esac
21705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706  (eval "$ac_compile") 2>conftest.er1
21707  ac_status=$?
21708  grep -v '^ *+' conftest.er1 >conftest.err
21709  rm -f conftest.er1
21710  cat conftest.err >&5
21711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712  (exit $ac_status); } &&
21713	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21714  { (case "(($ac_try" in
21715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21716  *) ac_try_echo=$ac_try;;
21717esac
21718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21719  (eval "$ac_try") 2>&5
21720  ac_status=$?
21721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722  (exit $ac_status); }; } &&
21723	 { ac_try='test -s conftest.$ac_objext'
21724  { (case "(($ac_try" in
21725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726  *) ac_try_echo=$ac_try;;
21727esac
21728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729  (eval "$ac_try") 2>&5
21730  ac_status=$?
21731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732  (exit $ac_status); }; }; then
21733  ac_cv_c_const=yes
21734else
21735  echo "$as_me: failed program was:" >&5
21736sed 's/^/| /' conftest.$ac_ext >&5
21737
21738	ac_cv_c_const=no
21739fi
21740
21741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21742fi
21743{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21744echo "${ECHO_T}$ac_cv_c_const" >&6; }
21745if test $ac_cv_c_const = no; then
21746
21747cat >>confdefs.h <<\_ACEOF
21748#define const
21749_ACEOF
21750
21751fi
21752
21753{ echo "$as_me:$LINENO: checking for inline" >&5
21754echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21755if test "${ac_cv_c_inline+set}" = set; then
21756  echo $ECHO_N "(cached) $ECHO_C" >&6
21757else
21758  ac_cv_c_inline=no
21759for ac_kw in inline __inline__ __inline; do
21760  cat >conftest.$ac_ext <<_ACEOF
21761/* confdefs.h.  */
21762_ACEOF
21763cat confdefs.h >>conftest.$ac_ext
21764cat >>conftest.$ac_ext <<_ACEOF
21765/* end confdefs.h.  */
21766#ifndef __cplusplus
21767typedef int foo_t;
21768static $ac_kw foo_t static_foo () {return 0; }
21769$ac_kw foo_t foo () {return 0; }
21770#endif
21771
21772_ACEOF
21773rm -f conftest.$ac_objext
21774if { (ac_try="$ac_compile"
21775case "(($ac_try" in
21776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21777  *) ac_try_echo=$ac_try;;
21778esac
21779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21780  (eval "$ac_compile") 2>conftest.er1
21781  ac_status=$?
21782  grep -v '^ *+' conftest.er1 >conftest.err
21783  rm -f conftest.er1
21784  cat conftest.err >&5
21785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786  (exit $ac_status); } &&
21787	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21788  { (case "(($ac_try" in
21789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790  *) ac_try_echo=$ac_try;;
21791esac
21792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793  (eval "$ac_try") 2>&5
21794  ac_status=$?
21795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796  (exit $ac_status); }; } &&
21797	 { ac_try='test -s conftest.$ac_objext'
21798  { (case "(($ac_try" in
21799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800  *) ac_try_echo=$ac_try;;
21801esac
21802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803  (eval "$ac_try") 2>&5
21804  ac_status=$?
21805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806  (exit $ac_status); }; }; then
21807  ac_cv_c_inline=$ac_kw
21808else
21809  echo "$as_me: failed program was:" >&5
21810sed 's/^/| /' conftest.$ac_ext >&5
21811
21812
21813fi
21814
21815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21816  test "$ac_cv_c_inline" != no && break
21817done
21818
21819fi
21820{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21821echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21822
21823
21824case $ac_cv_c_inline in
21825  inline | yes) ;;
21826  *)
21827    case $ac_cv_c_inline in
21828      no) ac_val=;;
21829      *) ac_val=$ac_cv_c_inline;;
21830    esac
21831    cat >>confdefs.h <<_ACEOF
21832#ifndef __cplusplus
21833#define inline $ac_val
21834#endif
21835_ACEOF
21836    ;;
21837esac
21838
21839{ echo "$as_me:$LINENO: checking for off_t" >&5
21840echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21841if test "${ac_cv_type_off_t+set}" = set; then
21842  echo $ECHO_N "(cached) $ECHO_C" >&6
21843else
21844  cat >conftest.$ac_ext <<_ACEOF
21845/* confdefs.h.  */
21846_ACEOF
21847cat confdefs.h >>conftest.$ac_ext
21848cat >>conftest.$ac_ext <<_ACEOF
21849/* end confdefs.h.  */
21850$ac_includes_default
21851typedef off_t ac__type_new_;
21852int
21853main ()
21854{
21855if ((ac__type_new_ *) 0)
21856  return 0;
21857if (sizeof (ac__type_new_))
21858  return 0;
21859  ;
21860  return 0;
21861}
21862_ACEOF
21863rm -f conftest.$ac_objext
21864if { (ac_try="$ac_compile"
21865case "(($ac_try" in
21866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867  *) ac_try_echo=$ac_try;;
21868esac
21869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870  (eval "$ac_compile") 2>conftest.er1
21871  ac_status=$?
21872  grep -v '^ *+' conftest.er1 >conftest.err
21873  rm -f conftest.er1
21874  cat conftest.err >&5
21875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876  (exit $ac_status); } &&
21877	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21878  { (case "(($ac_try" in
21879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21880  *) ac_try_echo=$ac_try;;
21881esac
21882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21883  (eval "$ac_try") 2>&5
21884  ac_status=$?
21885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886  (exit $ac_status); }; } &&
21887	 { ac_try='test -s conftest.$ac_objext'
21888  { (case "(($ac_try" in
21889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890  *) ac_try_echo=$ac_try;;
21891esac
21892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893  (eval "$ac_try") 2>&5
21894  ac_status=$?
21895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896  (exit $ac_status); }; }; then
21897  ac_cv_type_off_t=yes
21898else
21899  echo "$as_me: failed program was:" >&5
21900sed 's/^/| /' conftest.$ac_ext >&5
21901
21902	ac_cv_type_off_t=no
21903fi
21904
21905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21906fi
21907{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21908echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21909if test $ac_cv_type_off_t = yes; then
21910  :
21911else
21912
21913cat >>confdefs.h <<_ACEOF
21914#define off_t long int
21915_ACEOF
21916
21917fi
21918
21919{ echo "$as_me:$LINENO: checking for size_t" >&5
21920echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21921if test "${ac_cv_type_size_t+set}" = set; then
21922  echo $ECHO_N "(cached) $ECHO_C" >&6
21923else
21924  cat >conftest.$ac_ext <<_ACEOF
21925/* confdefs.h.  */
21926_ACEOF
21927cat confdefs.h >>conftest.$ac_ext
21928cat >>conftest.$ac_ext <<_ACEOF
21929/* end confdefs.h.  */
21930$ac_includes_default
21931typedef size_t ac__type_new_;
21932int
21933main ()
21934{
21935if ((ac__type_new_ *) 0)
21936  return 0;
21937if (sizeof (ac__type_new_))
21938  return 0;
21939  ;
21940  return 0;
21941}
21942_ACEOF
21943rm -f conftest.$ac_objext
21944if { (ac_try="$ac_compile"
21945case "(($ac_try" in
21946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21947  *) ac_try_echo=$ac_try;;
21948esac
21949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21950  (eval "$ac_compile") 2>conftest.er1
21951  ac_status=$?
21952  grep -v '^ *+' conftest.er1 >conftest.err
21953  rm -f conftest.er1
21954  cat conftest.err >&5
21955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956  (exit $ac_status); } &&
21957	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21958  { (case "(($ac_try" in
21959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21960  *) ac_try_echo=$ac_try;;
21961esac
21962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21963  (eval "$ac_try") 2>&5
21964  ac_status=$?
21965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966  (exit $ac_status); }; } &&
21967	 { ac_try='test -s conftest.$ac_objext'
21968  { (case "(($ac_try" in
21969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970  *) ac_try_echo=$ac_try;;
21971esac
21972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973  (eval "$ac_try") 2>&5
21974  ac_status=$?
21975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976  (exit $ac_status); }; }; then
21977  ac_cv_type_size_t=yes
21978else
21979  echo "$as_me: failed program was:" >&5
21980sed 's/^/| /' conftest.$ac_ext >&5
21981
21982	ac_cv_type_size_t=no
21983fi
21984
21985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21986fi
21987{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21988echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21989if test $ac_cv_type_size_t = yes; then
21990  :
21991else
21992
21993cat >>confdefs.h <<_ACEOF
21994#define size_t unsigned int
21995_ACEOF
21996
21997fi
21998
21999{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22000echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22001if test "${ac_cv_header_time+set}" = set; then
22002  echo $ECHO_N "(cached) $ECHO_C" >&6
22003else
22004  cat >conftest.$ac_ext <<_ACEOF
22005/* confdefs.h.  */
22006_ACEOF
22007cat confdefs.h >>conftest.$ac_ext
22008cat >>conftest.$ac_ext <<_ACEOF
22009/* end confdefs.h.  */
22010#include <sys/types.h>
22011#include <sys/time.h>
22012#include <time.h>
22013
22014int
22015main ()
22016{
22017if ((struct tm *) 0)
22018return 0;
22019  ;
22020  return 0;
22021}
22022_ACEOF
22023rm -f conftest.$ac_objext
22024if { (ac_try="$ac_compile"
22025case "(($ac_try" in
22026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027  *) ac_try_echo=$ac_try;;
22028esac
22029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22030  (eval "$ac_compile") 2>conftest.er1
22031  ac_status=$?
22032  grep -v '^ *+' conftest.er1 >conftest.err
22033  rm -f conftest.er1
22034  cat conftest.err >&5
22035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036  (exit $ac_status); } &&
22037	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22038  { (case "(($ac_try" in
22039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22040  *) ac_try_echo=$ac_try;;
22041esac
22042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22043  (eval "$ac_try") 2>&5
22044  ac_status=$?
22045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046  (exit $ac_status); }; } &&
22047	 { ac_try='test -s conftest.$ac_objext'
22048  { (case "(($ac_try" in
22049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050  *) ac_try_echo=$ac_try;;
22051esac
22052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053  (eval "$ac_try") 2>&5
22054  ac_status=$?
22055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056  (exit $ac_status); }; }; then
22057  ac_cv_header_time=yes
22058else
22059  echo "$as_me: failed program was:" >&5
22060sed 's/^/| /' conftest.$ac_ext >&5
22061
22062	ac_cv_header_time=no
22063fi
22064
22065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22066fi
22067{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22068echo "${ECHO_T}$ac_cv_header_time" >&6; }
22069if test $ac_cv_header_time = yes; then
22070
22071cat >>confdefs.h <<\_ACEOF
22072#define TIME_WITH_SYS_TIME 1
22073_ACEOF
22074
22075fi
22076
22077
22078
22079
22080for ac_header in stdlib.h unistd.h
22081do
22082as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22083if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22084  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22087  echo $ECHO_N "(cached) $ECHO_C" >&6
22088fi
22089ac_res=`eval echo '${'$as_ac_Header'}'`
22090	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22091echo "${ECHO_T}$ac_res" >&6; }
22092else
22093  # Is the header compilable?
22094{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22095echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22096cat >conftest.$ac_ext <<_ACEOF
22097/* confdefs.h.  */
22098_ACEOF
22099cat confdefs.h >>conftest.$ac_ext
22100cat >>conftest.$ac_ext <<_ACEOF
22101/* end confdefs.h.  */
22102$ac_includes_default
22103#include <$ac_header>
22104_ACEOF
22105rm -f conftest.$ac_objext
22106if { (ac_try="$ac_compile"
22107case "(($ac_try" in
22108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109  *) ac_try_echo=$ac_try;;
22110esac
22111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112  (eval "$ac_compile") 2>conftest.er1
22113  ac_status=$?
22114  grep -v '^ *+' conftest.er1 >conftest.err
22115  rm -f conftest.er1
22116  cat conftest.err >&5
22117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118  (exit $ac_status); } &&
22119	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22120  { (case "(($ac_try" in
22121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122  *) ac_try_echo=$ac_try;;
22123esac
22124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22125  (eval "$ac_try") 2>&5
22126  ac_status=$?
22127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128  (exit $ac_status); }; } &&
22129	 { ac_try='test -s conftest.$ac_objext'
22130  { (case "(($ac_try" in
22131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132  *) ac_try_echo=$ac_try;;
22133esac
22134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22135  (eval "$ac_try") 2>&5
22136  ac_status=$?
22137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138  (exit $ac_status); }; }; then
22139  ac_header_compiler=yes
22140else
22141  echo "$as_me: failed program was:" >&5
22142sed 's/^/| /' conftest.$ac_ext >&5
22143
22144	ac_header_compiler=no
22145fi
22146
22147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22148{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22149echo "${ECHO_T}$ac_header_compiler" >&6; }
22150
22151# Is the header present?
22152{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22153echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22154cat >conftest.$ac_ext <<_ACEOF
22155/* confdefs.h.  */
22156_ACEOF
22157cat confdefs.h >>conftest.$ac_ext
22158cat >>conftest.$ac_ext <<_ACEOF
22159/* end confdefs.h.  */
22160#include <$ac_header>
22161_ACEOF
22162if { (ac_try="$ac_cpp conftest.$ac_ext"
22163case "(($ac_try" in
22164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165  *) ac_try_echo=$ac_try;;
22166esac
22167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22168  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22169  ac_status=$?
22170  grep -v '^ *+' conftest.er1 >conftest.err
22171  rm -f conftest.er1
22172  cat conftest.err >&5
22173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174  (exit $ac_status); } >/dev/null; then
22175  if test -s conftest.err; then
22176    ac_cpp_err=$ac_c_preproc_warn_flag
22177    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22178  else
22179    ac_cpp_err=
22180  fi
22181else
22182  ac_cpp_err=yes
22183fi
22184if test -z "$ac_cpp_err"; then
22185  ac_header_preproc=yes
22186else
22187  echo "$as_me: failed program was:" >&5
22188sed 's/^/| /' conftest.$ac_ext >&5
22189
22190  ac_header_preproc=no
22191fi
22192
22193rm -f conftest.err conftest.$ac_ext
22194{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22195echo "${ECHO_T}$ac_header_preproc" >&6; }
22196
22197# So?  What about this header?
22198case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22199  yes:no: )
22200    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22201echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22202    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22203echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22204    ac_header_preproc=yes
22205    ;;
22206  no:yes:* )
22207    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22208echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22209    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22210echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22211    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22212echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22213    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22214echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22215    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22216echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22217    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22218echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22219
22220    ;;
22221esac
22222{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22225  echo $ECHO_N "(cached) $ECHO_C" >&6
22226else
22227  eval "$as_ac_Header=\$ac_header_preproc"
22228fi
22229ac_res=`eval echo '${'$as_ac_Header'}'`
22230	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22231echo "${ECHO_T}$ac_res" >&6; }
22232
22233fi
22234if test `eval echo '${'$as_ac_Header'}'` = yes; then
22235  cat >>confdefs.h <<_ACEOF
22236#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22237_ACEOF
22238
22239fi
22240
22241done
22242
22243
22244for ac_func in getpagesize
22245do
22246as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22247{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22248echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22249if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22250  echo $ECHO_N "(cached) $ECHO_C" >&6
22251else
22252  cat >conftest.$ac_ext <<_ACEOF
22253/* confdefs.h.  */
22254_ACEOF
22255cat confdefs.h >>conftest.$ac_ext
22256cat >>conftest.$ac_ext <<_ACEOF
22257/* end confdefs.h.  */
22258/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22259   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22260#define $ac_func innocuous_$ac_func
22261
22262/* System header to define __stub macros and hopefully few prototypes,
22263    which can conflict with char $ac_func (); below.
22264    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22265    <limits.h> exists even on freestanding compilers.  */
22266
22267#ifdef __STDC__
22268# include <limits.h>
22269#else
22270# include <assert.h>
22271#endif
22272
22273#undef $ac_func
22274
22275/* Override any GCC internal prototype to avoid an error.
22276   Use char because int might match the return type of a GCC
22277   builtin and then its argument prototype would still apply.  */
22278#ifdef __cplusplus
22279extern "C"
22280#endif
22281char $ac_func ();
22282/* The GNU C library defines this for functions which it implements
22283    to always fail with ENOSYS.  Some functions are actually named
22284    something starting with __ and the normal name is an alias.  */
22285#if defined __stub_$ac_func || defined __stub___$ac_func
22286choke me
22287#endif
22288
22289int
22290main ()
22291{
22292return $ac_func ();
22293  ;
22294  return 0;
22295}
22296_ACEOF
22297rm -f conftest.$ac_objext conftest$ac_exeext
22298if { (ac_try="$ac_link"
22299case "(($ac_try" in
22300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301  *) ac_try_echo=$ac_try;;
22302esac
22303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304  (eval "$ac_link") 2>conftest.er1
22305  ac_status=$?
22306  grep -v '^ *+' conftest.er1 >conftest.err
22307  rm -f conftest.er1
22308  cat conftest.err >&5
22309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310  (exit $ac_status); } &&
22311	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22312  { (case "(($ac_try" in
22313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22314  *) ac_try_echo=$ac_try;;
22315esac
22316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22317  (eval "$ac_try") 2>&5
22318  ac_status=$?
22319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320  (exit $ac_status); }; } &&
22321	 { ac_try='test -s conftest$ac_exeext'
22322  { (case "(($ac_try" in
22323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324  *) ac_try_echo=$ac_try;;
22325esac
22326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22327  (eval "$ac_try") 2>&5
22328  ac_status=$?
22329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330  (exit $ac_status); }; }; then
22331  eval "$as_ac_var=yes"
22332else
22333  echo "$as_me: failed program was:" >&5
22334sed 's/^/| /' conftest.$ac_ext >&5
22335
22336	eval "$as_ac_var=no"
22337fi
22338
22339rm -f core conftest.err conftest.$ac_objext \
22340      conftest$ac_exeext conftest.$ac_ext
22341fi
22342ac_res=`eval echo '${'$as_ac_var'}'`
22343	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22344echo "${ECHO_T}$ac_res" >&6; }
22345if test `eval echo '${'$as_ac_var'}'` = yes; then
22346  cat >>confdefs.h <<_ACEOF
22347#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22348_ACEOF
22349
22350fi
22351done
22352
22353{ echo "$as_me:$LINENO: checking for working mmap" >&5
22354echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
22355if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22356  echo $ECHO_N "(cached) $ECHO_C" >&6
22357else
22358  if test "$cross_compiling" = yes; then
22359  ac_cv_func_mmap_fixed_mapped=no
22360else
22361  cat >conftest.$ac_ext <<_ACEOF
22362/* confdefs.h.  */
22363_ACEOF
22364cat confdefs.h >>conftest.$ac_ext
22365cat >>conftest.$ac_ext <<_ACEOF
22366/* end confdefs.h.  */
22367$ac_includes_default
22368/* malloc might have been renamed as rpl_malloc. */
22369#undef malloc
22370
22371/* Thanks to Mike Haertel and Jim Avera for this test.
22372   Here is a matrix of mmap possibilities:
22373	mmap private not fixed
22374	mmap private fixed at somewhere currently unmapped
22375	mmap private fixed at somewhere already mapped
22376	mmap shared not fixed
22377	mmap shared fixed at somewhere currently unmapped
22378	mmap shared fixed at somewhere already mapped
22379   For private mappings, we should verify that changes cannot be read()
22380   back from the file, nor mmap's back from the file at a different
22381   address.  (There have been systems where private was not correctly
22382   implemented like the infamous i386 svr4.0, and systems where the
22383   VM page cache was not coherent with the file system buffer cache
22384   like early versions of FreeBSD and possibly contemporary NetBSD.)
22385   For shared mappings, we should conversely verify that changes get
22386   propagated back to all the places they're supposed to be.
22387
22388   Grep wants private fixed already mapped.
22389   The main things grep needs to know about mmap are:
22390   * does it exist and is it safe to write into the mmap'd area
22391   * how to use it (BSD variants)  */
22392
22393#include <fcntl.h>
22394#include <sys/mman.h>
22395
22396#if !STDC_HEADERS && !HAVE_STDLIB_H
22397char *malloc ();
22398#endif
22399
22400/* This mess was copied from the GNU getpagesize.h.  */
22401#if !HAVE_GETPAGESIZE
22402/* Assume that all systems that can run configure have sys/param.h.  */
22403# if !HAVE_SYS_PARAM_H
22404#  define HAVE_SYS_PARAM_H 1
22405# endif
22406
22407# ifdef _SC_PAGESIZE
22408#  define getpagesize() sysconf(_SC_PAGESIZE)
22409# else /* no _SC_PAGESIZE */
22410#  if HAVE_SYS_PARAM_H
22411#   include <sys/param.h>
22412#   ifdef EXEC_PAGESIZE
22413#    define getpagesize() EXEC_PAGESIZE
22414#   else /* no EXEC_PAGESIZE */
22415#    ifdef NBPG
22416#     define getpagesize() NBPG * CLSIZE
22417#     ifndef CLSIZE
22418#      define CLSIZE 1
22419#     endif /* no CLSIZE */
22420#    else /* no NBPG */
22421#     ifdef NBPC
22422#      define getpagesize() NBPC
22423#     else /* no NBPC */
22424#      ifdef PAGESIZE
22425#       define getpagesize() PAGESIZE
22426#      endif /* PAGESIZE */
22427#     endif /* no NBPC */
22428#    endif /* no NBPG */
22429#   endif /* no EXEC_PAGESIZE */
22430#  else /* no HAVE_SYS_PARAM_H */
22431#   define getpagesize() 8192	/* punt totally */
22432#  endif /* no HAVE_SYS_PARAM_H */
22433# endif /* no _SC_PAGESIZE */
22434
22435#endif /* no HAVE_GETPAGESIZE */
22436
22437int
22438main ()
22439{
22440  char *data, *data2, *data3;
22441  int i, pagesize;
22442  int fd;
22443
22444  pagesize = getpagesize ();
22445
22446  /* First, make a file with some known garbage in it. */
22447  data = (char *) malloc (pagesize);
22448  if (!data)
22449    return 1;
22450  for (i = 0; i < pagesize; ++i)
22451    *(data + i) = rand ();
22452  umask (0);
22453  fd = creat ("conftest.mmap", 0600);
22454  if (fd < 0)
22455    return 1;
22456  if (write (fd, data, pagesize) != pagesize)
22457    return 1;
22458  close (fd);
22459
22460  /* Next, try to mmap the file at a fixed address which already has
22461     something else allocated at it.  If we can, also make sure that
22462     we see the same garbage.  */
22463  fd = open ("conftest.mmap", O_RDWR);
22464  if (fd < 0)
22465    return 1;
22466  data2 = (char *) malloc (2 * pagesize);
22467  if (!data2)
22468    return 1;
22469  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
22470  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22471		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
22472    return 1;
22473  for (i = 0; i < pagesize; ++i)
22474    if (*(data + i) != *(data2 + i))
22475      return 1;
22476
22477  /* Finally, make sure that changes to the mapped area do not
22478     percolate back to the file as seen by read().  (This is a bug on
22479     some variants of i386 svr4.0.)  */
22480  for (i = 0; i < pagesize; ++i)
22481    *(data2 + i) = *(data2 + i) + 1;
22482  data3 = (char *) malloc (pagesize);
22483  if (!data3)
22484    return 1;
22485  if (read (fd, data3, pagesize) != pagesize)
22486    return 1;
22487  for (i = 0; i < pagesize; ++i)
22488    if (*(data + i) != *(data3 + i))
22489      return 1;
22490  close (fd);
22491  return 0;
22492}
22493_ACEOF
22494rm -f conftest$ac_exeext
22495if { (ac_try="$ac_link"
22496case "(($ac_try" in
22497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22498  *) ac_try_echo=$ac_try;;
22499esac
22500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22501  (eval "$ac_link") 2>&5
22502  ac_status=$?
22503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22505  { (case "(($ac_try" in
22506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22507  *) ac_try_echo=$ac_try;;
22508esac
22509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22510  (eval "$ac_try") 2>&5
22511  ac_status=$?
22512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513  (exit $ac_status); }; }; then
22514  ac_cv_func_mmap_fixed_mapped=yes
22515else
22516  echo "$as_me: program exited with status $ac_status" >&5
22517echo "$as_me: failed program was:" >&5
22518sed 's/^/| /' conftest.$ac_ext >&5
22519
22520( exit $ac_status )
22521ac_cv_func_mmap_fixed_mapped=no
22522fi
22523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22524fi
22525
22526
22527fi
22528{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22529echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
22530if test $ac_cv_func_mmap_fixed_mapped = yes; then
22531
22532cat >>confdefs.h <<\_ACEOF
22533#define HAVE_MMAP 1
22534_ACEOF
22535
22536fi
22537rm -f conftest.mmap
22538
22539
22540for ac_func in gettimeofday
22541do
22542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22543{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22545if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22546  echo $ECHO_N "(cached) $ECHO_C" >&6
22547else
22548  cat >conftest.$ac_ext <<_ACEOF
22549/* confdefs.h.  */
22550_ACEOF
22551cat confdefs.h >>conftest.$ac_ext
22552cat >>conftest.$ac_ext <<_ACEOF
22553/* end confdefs.h.  */
22554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22555   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22556#define $ac_func innocuous_$ac_func
22557
22558/* System header to define __stub macros and hopefully few prototypes,
22559    which can conflict with char $ac_func (); below.
22560    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22561    <limits.h> exists even on freestanding compilers.  */
22562
22563#ifdef __STDC__
22564# include <limits.h>
22565#else
22566# include <assert.h>
22567#endif
22568
22569#undef $ac_func
22570
22571/* Override any GCC internal prototype to avoid an error.
22572   Use char because int might match the return type of a GCC
22573   builtin and then its argument prototype would still apply.  */
22574#ifdef __cplusplus
22575extern "C"
22576#endif
22577char $ac_func ();
22578/* The GNU C library defines this for functions which it implements
22579    to always fail with ENOSYS.  Some functions are actually named
22580    something starting with __ and the normal name is an alias.  */
22581#if defined __stub_$ac_func || defined __stub___$ac_func
22582choke me
22583#endif
22584
22585int
22586main ()
22587{
22588return $ac_func ();
22589  ;
22590  return 0;
22591}
22592_ACEOF
22593rm -f conftest.$ac_objext conftest$ac_exeext
22594if { (ac_try="$ac_link"
22595case "(($ac_try" in
22596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597  *) ac_try_echo=$ac_try;;
22598esac
22599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22600  (eval "$ac_link") 2>conftest.er1
22601  ac_status=$?
22602  grep -v '^ *+' conftest.er1 >conftest.err
22603  rm -f conftest.er1
22604  cat conftest.err >&5
22605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606  (exit $ac_status); } &&
22607	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22608  { (case "(($ac_try" in
22609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22610  *) ac_try_echo=$ac_try;;
22611esac
22612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22613  (eval "$ac_try") 2>&5
22614  ac_status=$?
22615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616  (exit $ac_status); }; } &&
22617	 { ac_try='test -s conftest$ac_exeext'
22618  { (case "(($ac_try" in
22619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22620  *) ac_try_echo=$ac_try;;
22621esac
22622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22623  (eval "$ac_try") 2>&5
22624  ac_status=$?
22625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626  (exit $ac_status); }; }; then
22627  eval "$as_ac_var=yes"
22628else
22629  echo "$as_me: failed program was:" >&5
22630sed 's/^/| /' conftest.$ac_ext >&5
22631
22632	eval "$as_ac_var=no"
22633fi
22634
22635rm -f core conftest.err conftest.$ac_objext \
22636      conftest$ac_exeext conftest.$ac_ext
22637fi
22638ac_res=`eval echo '${'$as_ac_var'}'`
22639	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22640echo "${ECHO_T}$ac_res" >&6; }
22641if test `eval echo '${'$as_ac_var'}'` = yes; then
22642  cat >>confdefs.h <<_ACEOF
22643#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22644_ACEOF
22645
22646fi
22647done
22648
22649
22650
22651
22652
22653ac_config_files="$ac_config_files Makefile libdv.spec libdv.pc libdv/Makefile playdv/Makefile encodedv/Makefile"
22654
22655cat >confcache <<\_ACEOF
22656# This file is a shell script that caches the results of configure
22657# tests run on this system so they can be shared between configure
22658# scripts and configure runs, see configure's option --config-cache.
22659# It is not useful on other systems.  If it contains results you don't
22660# want to keep, you may remove or edit it.
22661#
22662# config.status only pays attention to the cache file if you give it
22663# the --recheck option to rerun configure.
22664#
22665# `ac_cv_env_foo' variables (set or unset) will be overridden when
22666# loading this file, other *unset* `ac_cv_foo' will be assigned the
22667# following values.
22668
22669_ACEOF
22670
22671# The following way of writing the cache mishandles newlines in values,
22672# but we know of no workaround that is simple, portable, and efficient.
22673# So, we kill variables containing newlines.
22674# Ultrix sh set writes to stderr and can't be redirected directly,
22675# and sets the high bit in the cache file unless we assign to the vars.
22676(
22677  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22678    eval ac_val=\$$ac_var
22679    case $ac_val in #(
22680    *${as_nl}*)
22681      case $ac_var in #(
22682      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22683echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22684      esac
22685      case $ac_var in #(
22686      _ | IFS | as_nl) ;; #(
22687      *) $as_unset $ac_var ;;
22688      esac ;;
22689    esac
22690  done
22691
22692  (set) 2>&1 |
22693    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22694    *${as_nl}ac_space=\ *)
22695      # `set' does not quote correctly, so add quotes (double-quote
22696      # substitution turns \\\\ into \\, and sed turns \\ into \).
22697      sed -n \
22698	"s/'/'\\\\''/g;
22699	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22700      ;; #(
22701    *)
22702      # `set' quotes correctly as required by POSIX, so do not add quotes.
22703      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22704      ;;
22705    esac |
22706    sort
22707) |
22708  sed '
22709     /^ac_cv_env_/b end
22710     t clear
22711     :clear
22712     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22713     t end
22714     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22715     :end' >>confcache
22716if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22717  if test -w "$cache_file"; then
22718    test "x$cache_file" != "x/dev/null" &&
22719      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22720echo "$as_me: updating cache $cache_file" >&6;}
22721    cat confcache >$cache_file
22722  else
22723    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22724echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22725  fi
22726fi
22727rm -f confcache
22728
22729test "x$prefix" = xNONE && prefix=$ac_default_prefix
22730# Let make expand exec_prefix.
22731test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22732
22733DEFS=-DHAVE_CONFIG_H
22734
22735ac_libobjs=
22736ac_ltlibobjs=
22737for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22738  # 1. Remove the extension, and $U if already installed.
22739  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22740  ac_i=`echo "$ac_i" | sed "$ac_script"`
22741  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22742  #    will be set to the directory where LIBOBJS objects are built.
22743  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22744  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22745done
22746LIBOBJS=$ac_libobjs
22747
22748LTLIBOBJS=$ac_ltlibobjs
22749
22750
22751if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22752  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22753Usually this means the macro was only invoked conditionally." >&5
22754echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22755Usually this means the macro was only invoked conditionally." >&2;}
22756   { (exit 1); exit 1; }; }
22757fi
22758if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22759  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22760Usually this means the macro was only invoked conditionally." >&5
22761echo "$as_me: error: conditional \"AMDEP\" was never defined.
22762Usually this means the macro was only invoked conditionally." >&2;}
22763   { (exit 1); exit 1; }; }
22764fi
22765if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22766  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22767Usually this means the macro was only invoked conditionally." >&5
22768echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22769Usually this means the macro was only invoked conditionally." >&2;}
22770   { (exit 1); exit 1; }; }
22771fi
22772if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22773  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22774Usually this means the macro was only invoked conditionally." >&5
22775echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22776Usually this means the macro was only invoked conditionally." >&2;}
22777   { (exit 1); exit 1; }; }
22778fi
22779if test -z "${HOST_X86_TRUE}" && test -z "${HOST_X86_FALSE}"; then
22780  { { echo "$as_me:$LINENO: error: conditional \"HOST_X86\" was never defined.
22781Usually this means the macro was only invoked conditionally." >&5
22782echo "$as_me: error: conditional \"HOST_X86\" was never defined.
22783Usually this means the macro was only invoked conditionally." >&2;}
22784   { (exit 1); exit 1; }; }
22785fi
22786if test -z "${HOST_X86_64_TRUE}" && test -z "${HOST_X86_64_FALSE}"; then
22787  { { echo "$as_me:$LINENO: error: conditional \"HOST_X86_64\" was never defined.
22788Usually this means the macro was only invoked conditionally." >&5
22789echo "$as_me: error: conditional \"HOST_X86_64\" was never defined.
22790Usually this means the macro was only invoked conditionally." >&2;}
22791   { (exit 1); exit 1; }; }
22792fi
22793if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
22794  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
22795Usually this means the macro was only invoked conditionally." >&5
22796echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
22797Usually this means the macro was only invoked conditionally." >&2;}
22798   { (exit 1); exit 1; }; }
22799fi
22800
22801: ${CONFIG_STATUS=./config.status}
22802ac_clean_files_save=$ac_clean_files
22803ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22804{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22805echo "$as_me: creating $CONFIG_STATUS" >&6;}
22806cat >$CONFIG_STATUS <<_ACEOF
22807#! $SHELL
22808# Generated by $as_me.
22809# Run this file to recreate the current configuration.
22810# Compiler output produced by configure, useful for debugging
22811# configure, is in config.log if it exists.
22812
22813debug=false
22814ac_cs_recheck=false
22815ac_cs_silent=false
22816SHELL=\${CONFIG_SHELL-$SHELL}
22817_ACEOF
22818
22819cat >>$CONFIG_STATUS <<\_ACEOF
22820## --------------------- ##
22821## M4sh Initialization.  ##
22822## --------------------- ##
22823
22824# Be Bourne compatible
22825if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22826  emulate sh
22827  NULLCMD=:
22828  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22829  # is contrary to our usage.  Disable this feature.
22830  alias -g '${1+"$@"}'='"$@"'
22831  setopt NO_GLOB_SUBST
22832else
22833  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22834fi
22835BIN_SH=xpg4; export BIN_SH # for Tru64
22836DUALCASE=1; export DUALCASE # for MKS sh
22837
22838
22839# PATH needs CR
22840# Avoid depending upon Character Ranges.
22841as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22842as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22843as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22844as_cr_digits='0123456789'
22845as_cr_alnum=$as_cr_Letters$as_cr_digits
22846
22847# The user is always right.
22848if test "${PATH_SEPARATOR+set}" != set; then
22849  echo "#! /bin/sh" >conf$$.sh
22850  echo  "exit 0"   >>conf$$.sh
22851  chmod +x conf$$.sh
22852  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22853    PATH_SEPARATOR=';'
22854  else
22855    PATH_SEPARATOR=:
22856  fi
22857  rm -f conf$$.sh
22858fi
22859
22860# Support unset when possible.
22861if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22862  as_unset=unset
22863else
22864  as_unset=false
22865fi
22866
22867
22868# IFS
22869# We need space, tab and new line, in precisely that order.  Quoting is
22870# there to prevent editors from complaining about space-tab.
22871# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22872# splitting by setting IFS to empty value.)
22873as_nl='
22874'
22875IFS=" ""	$as_nl"
22876
22877# Find who we are.  Look in the path if we contain no directory separator.
22878case $0 in
22879  *[\\/]* ) as_myself=$0 ;;
22880  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22881for as_dir in $PATH
22882do
22883  IFS=$as_save_IFS
22884  test -z "$as_dir" && as_dir=.
22885  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22886done
22887IFS=$as_save_IFS
22888
22889     ;;
22890esac
22891# We did not find ourselves, most probably we were run as `sh COMMAND'
22892# in which case we are not to be found in the path.
22893if test "x$as_myself" = x; then
22894  as_myself=$0
22895fi
22896if test ! -f "$as_myself"; then
22897  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22898  { (exit 1); exit 1; }
22899fi
22900
22901# Work around bugs in pre-3.0 UWIN ksh.
22902for as_var in ENV MAIL MAILPATH
22903do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22904done
22905PS1='$ '
22906PS2='> '
22907PS4='+ '
22908
22909# NLS nuisances.
22910for as_var in \
22911  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22912  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22913  LC_TELEPHONE LC_TIME
22914do
22915  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22916    eval $as_var=C; export $as_var
22917  else
22918    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22919  fi
22920done
22921
22922# Required to use basename.
22923if expr a : '\(a\)' >/dev/null 2>&1 &&
22924   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22925  as_expr=expr
22926else
22927  as_expr=false
22928fi
22929
22930if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22931  as_basename=basename
22932else
22933  as_basename=false
22934fi
22935
22936
22937# Name of the executable.
22938as_me=`$as_basename -- "$0" ||
22939$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22940	 X"$0" : 'X\(//\)$' \| \
22941	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22942echo X/"$0" |
22943    sed '/^.*\/\([^/][^/]*\)\/*$/{
22944	    s//\1/
22945	    q
22946	  }
22947	  /^X\/\(\/\/\)$/{
22948	    s//\1/
22949	    q
22950	  }
22951	  /^X\/\(\/\).*/{
22952	    s//\1/
22953	    q
22954	  }
22955	  s/.*/./; q'`
22956
22957# CDPATH.
22958$as_unset CDPATH
22959
22960
22961
22962  as_lineno_1=$LINENO
22963  as_lineno_2=$LINENO
22964  test "x$as_lineno_1" != "x$as_lineno_2" &&
22965  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22966
22967  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22968  # uniformly replaced by the line number.  The first 'sed' inserts a
22969  # line-number line after each line using $LINENO; the second 'sed'
22970  # does the real work.  The second script uses 'N' to pair each
22971  # line-number line with the line containing $LINENO, and appends
22972  # trailing '-' during substitution so that $LINENO is not a special
22973  # case at line end.
22974  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22975  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22976  # E. McMahon (1931-1989) for sed's syntax.  :-)
22977  sed -n '
22978    p
22979    /[$]LINENO/=
22980  ' <$as_myself |
22981    sed '
22982      s/[$]LINENO.*/&-/
22983      t lineno
22984      b
22985      :lineno
22986      N
22987      :loop
22988      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22989      t loop
22990      s/-\n.*//
22991    ' >$as_me.lineno &&
22992  chmod +x "$as_me.lineno" ||
22993    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22994   { (exit 1); exit 1; }; }
22995
22996  # Don't try to exec as it changes $[0], causing all sort of problems
22997  # (the dirname of $[0] is not the place where we might find the
22998  # original and so on.  Autoconf is especially sensitive to this).
22999  . "./$as_me.lineno"
23000  # Exit status is that of the last command.
23001  exit
23002}
23003
23004
23005if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23006  as_dirname=dirname
23007else
23008  as_dirname=false
23009fi
23010
23011ECHO_C= ECHO_N= ECHO_T=
23012case `echo -n x` in
23013-n*)
23014  case `echo 'x\c'` in
23015  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23016  *)   ECHO_C='\c';;
23017  esac;;
23018*)
23019  ECHO_N='-n';;
23020esac
23021
23022if expr a : '\(a\)' >/dev/null 2>&1 &&
23023   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23024  as_expr=expr
23025else
23026  as_expr=false
23027fi
23028
23029rm -f conf$$ conf$$.exe conf$$.file
23030if test -d conf$$.dir; then
23031  rm -f conf$$.dir/conf$$.file
23032else
23033  rm -f conf$$.dir
23034  mkdir conf$$.dir
23035fi
23036echo >conf$$.file
23037if ln -s conf$$.file conf$$ 2>/dev/null; then
23038  as_ln_s='ln -s'
23039  # ... but there are two gotchas:
23040  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23041  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23042  # In both cases, we have to default to `cp -p'.
23043  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23044    as_ln_s='cp -p'
23045elif ln conf$$.file conf$$ 2>/dev/null; then
23046  as_ln_s=ln
23047else
23048  as_ln_s='cp -p'
23049fi
23050rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23051rmdir conf$$.dir 2>/dev/null
23052
23053if mkdir -p . 2>/dev/null; then
23054  as_mkdir_p=:
23055else
23056  test -d ./-p && rmdir ./-p
23057  as_mkdir_p=false
23058fi
23059
23060# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
23061# systems may use methods other than mode bits to determine executability.
23062cat >conf$$.file <<_ASEOF
23063#! /bin/sh
23064exit 0
23065_ASEOF
23066chmod +x conf$$.file
23067if test -x conf$$.file >/dev/null 2>&1; then
23068  as_executable_p="test -x"
23069else
23070  as_executable_p=:
23071fi
23072rm -f conf$$.file
23073
23074# Sed expression to map a string onto a valid CPP name.
23075as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23076
23077# Sed expression to map a string onto a valid variable name.
23078as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23079
23080
23081exec 6>&1
23082
23083# Save the log message, to keep $[0] and so on meaningful, and to
23084# report actual input values of CONFIG_FILES etc. instead of their
23085# values after options handling.
23086ac_log="
23087This file was extended by $as_me, which was
23088generated by GNU Autoconf 2.60.  Invocation command line was
23089
23090  CONFIG_FILES    = $CONFIG_FILES
23091  CONFIG_HEADERS  = $CONFIG_HEADERS
23092  CONFIG_LINKS    = $CONFIG_LINKS
23093  CONFIG_COMMANDS = $CONFIG_COMMANDS
23094  $ $0 $@
23095
23096on `(hostname || uname -n) 2>/dev/null | sed 1q`
23097"
23098
23099_ACEOF
23100
23101cat >>$CONFIG_STATUS <<_ACEOF
23102# Files that config.status was made for.
23103config_files="$ac_config_files"
23104config_headers="$ac_config_headers"
23105config_commands="$ac_config_commands"
23106
23107_ACEOF
23108
23109cat >>$CONFIG_STATUS <<\_ACEOF
23110ac_cs_usage="\
23111\`$as_me' instantiates files from templates according to the
23112current configuration.
23113
23114Usage: $0 [OPTIONS] [FILE]...
23115
23116  -h, --help       print this help, then exit
23117  -V, --version    print version number, then exit
23118  -q, --quiet      do not print progress messages
23119  -d, --debug      don't remove temporary files
23120      --recheck    update $as_me by reconfiguring in the same conditions
23121  --file=FILE[:TEMPLATE]
23122		   instantiate the configuration file FILE
23123  --header=FILE[:TEMPLATE]
23124		   instantiate the configuration header FILE
23125
23126Configuration files:
23127$config_files
23128
23129Configuration headers:
23130$config_headers
23131
23132Configuration commands:
23133$config_commands
23134
23135Report bugs to <bug-autoconf@gnu.org>."
23136
23137_ACEOF
23138cat >>$CONFIG_STATUS <<_ACEOF
23139ac_cs_version="\\
23140config.status
23141configured by $0, generated by GNU Autoconf 2.60,
23142  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23143
23144Copyright (C) 2006 Free Software Foundation, Inc.
23145This config.status script is free software; the Free Software Foundation
23146gives unlimited permission to copy, distribute and modify it."
23147
23148ac_pwd='$ac_pwd'
23149srcdir='$srcdir'
23150INSTALL='$INSTALL'
23151_ACEOF
23152
23153cat >>$CONFIG_STATUS <<\_ACEOF
23154# If no file are specified by the user, then we need to provide default
23155# value.  By we need to know if files were specified by the user.
23156ac_need_defaults=:
23157while test $# != 0
23158do
23159  case $1 in
23160  --*=*)
23161    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23162    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23163    ac_shift=:
23164    ;;
23165  *)
23166    ac_option=$1
23167    ac_optarg=$2
23168    ac_shift=shift
23169    ;;
23170  esac
23171
23172  case $ac_option in
23173  # Handling of the options.
23174  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23175    ac_cs_recheck=: ;;
23176  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23177    echo "$ac_cs_version"; exit ;;
23178  --debug | --debu | --deb | --de | --d | -d )
23179    debug=: ;;
23180  --file | --fil | --fi | --f )
23181    $ac_shift
23182    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23183    ac_need_defaults=false;;
23184  --header | --heade | --head | --hea )
23185    $ac_shift
23186    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23187    ac_need_defaults=false;;
23188  --he | --h)
23189    # Conflict between --help and --header
23190    { echo "$as_me: error: ambiguous option: $1
23191Try \`$0 --help' for more information." >&2
23192   { (exit 1); exit 1; }; };;
23193  --help | --hel | -h )
23194    echo "$ac_cs_usage"; exit ;;
23195  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23196  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23197    ac_cs_silent=: ;;
23198
23199  # This is an error.
23200  -*) { echo "$as_me: error: unrecognized option: $1
23201Try \`$0 --help' for more information." >&2
23202   { (exit 1); exit 1; }; } ;;
23203
23204  *) ac_config_targets="$ac_config_targets $1"
23205     ac_need_defaults=false ;;
23206
23207  esac
23208  shift
23209done
23210
23211ac_configure_extra_args=
23212
23213if $ac_cs_silent; then
23214  exec 6>/dev/null
23215  ac_configure_extra_args="$ac_configure_extra_args --silent"
23216fi
23217
23218_ACEOF
23219cat >>$CONFIG_STATUS <<_ACEOF
23220if \$ac_cs_recheck; then
23221  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23222  CONFIG_SHELL=$SHELL
23223  export CONFIG_SHELL
23224  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23225fi
23226
23227_ACEOF
23228cat >>$CONFIG_STATUS <<\_ACEOF
23229exec 5>>config.log
23230{
23231  echo
23232  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23233## Running $as_me. ##
23234_ASBOX
23235  echo "$ac_log"
23236} >&5
23237
23238_ACEOF
23239cat >>$CONFIG_STATUS <<_ACEOF
23240#
23241# INIT-COMMANDS
23242#
23243AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23244
23245_ACEOF
23246
23247cat >>$CONFIG_STATUS <<\_ACEOF
23248
23249# Handling of arguments.
23250for ac_config_target in $ac_config_targets
23251do
23252  case $ac_config_target in
23253    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23254    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23255    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23256    "libdv.spec") CONFIG_FILES="$CONFIG_FILES libdv.spec" ;;
23257    "libdv.pc") CONFIG_FILES="$CONFIG_FILES libdv.pc" ;;
23258    "libdv/Makefile") CONFIG_FILES="$CONFIG_FILES libdv/Makefile" ;;
23259    "playdv/Makefile") CONFIG_FILES="$CONFIG_FILES playdv/Makefile" ;;
23260    "encodedv/Makefile") CONFIG_FILES="$CONFIG_FILES encodedv/Makefile" ;;
23261
23262  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23263echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23264   { (exit 1); exit 1; }; };;
23265  esac
23266done
23267
23268
23269# If the user did not use the arguments to specify the items to instantiate,
23270# then the envvar interface is used.  Set only those that are not.
23271# We use the long form for the default assignment because of an extremely
23272# bizarre bug on SunOS 4.1.3.
23273if $ac_need_defaults; then
23274  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23275  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23276  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23277fi
23278
23279# Have a temporary directory for convenience.  Make it in the build tree
23280# simply because there is no reason against having it here, and in addition,
23281# creating and moving files from /tmp can sometimes cause problems.
23282# Hook for its removal unless debugging.
23283# Note that there is a small window in which the directory will not be cleaned:
23284# after its creation but before its name has been assigned to `$tmp'.
23285$debug ||
23286{
23287  tmp=
23288  trap 'exit_status=$?
23289  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23290' 0
23291  trap '{ (exit 1); exit 1; }' 1 2 13 15
23292}
23293# Create a (secure) tmp directory for tmp files.
23294
23295{
23296  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23297  test -n "$tmp" && test -d "$tmp"
23298}  ||
23299{
23300  tmp=./conf$$-$RANDOM
23301  (umask 077 && mkdir "$tmp")
23302} ||
23303{
23304   echo "$me: cannot create a temporary directory in ." >&2
23305   { (exit 1); exit 1; }
23306}
23307
23308#
23309# Set up the sed scripts for CONFIG_FILES section.
23310#
23311
23312# No need to generate the scripts if there are no CONFIG_FILES.
23313# This happens for instance when ./config.status config.h
23314if test -n "$CONFIG_FILES"; then
23315
23316_ACEOF
23317
23318
23319
23320ac_delim='%!_!# '
23321for ac_last_try in false false false false false :; do
23322  cat >conf$$subs.sed <<_ACEOF
23323SHELL!$SHELL$ac_delim
23324PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23325PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23326PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23327PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23328PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23329PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23330exec_prefix!$exec_prefix$ac_delim
23331prefix!$prefix$ac_delim
23332program_transform_name!$program_transform_name$ac_delim
23333bindir!$bindir$ac_delim
23334sbindir!$sbindir$ac_delim
23335libexecdir!$libexecdir$ac_delim
23336datarootdir!$datarootdir$ac_delim
23337datadir!$datadir$ac_delim
23338sysconfdir!$sysconfdir$ac_delim
23339sharedstatedir!$sharedstatedir$ac_delim
23340localstatedir!$localstatedir$ac_delim
23341includedir!$includedir$ac_delim
23342oldincludedir!$oldincludedir$ac_delim
23343docdir!$docdir$ac_delim
23344infodir!$infodir$ac_delim
23345htmldir!$htmldir$ac_delim
23346dvidir!$dvidir$ac_delim
23347pdfdir!$pdfdir$ac_delim
23348psdir!$psdir$ac_delim
23349libdir!$libdir$ac_delim
23350localedir!$localedir$ac_delim
23351mandir!$mandir$ac_delim
23352DEFS!$DEFS$ac_delim
23353ECHO_C!$ECHO_C$ac_delim
23354ECHO_N!$ECHO_N$ac_delim
23355ECHO_T!$ECHO_T$ac_delim
23356LIBS!$LIBS$ac_delim
23357build_alias!$build_alias$ac_delim
23358host_alias!$host_alias$ac_delim
23359target_alias!$target_alias$ac_delim
23360build!$build$ac_delim
23361build_cpu!$build_cpu$ac_delim
23362build_vendor!$build_vendor$ac_delim
23363build_os!$build_os$ac_delim
23364host!$host$ac_delim
23365host_cpu!$host_cpu$ac_delim
23366host_vendor!$host_vendor$ac_delim
23367host_os!$host_os$ac_delim
23368target!$target$ac_delim
23369target_cpu!$target_cpu$ac_delim
23370target_vendor!$target_vendor$ac_delim
23371target_os!$target_os$ac_delim
23372INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23373INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23374INSTALL_DATA!$INSTALL_DATA$ac_delim
23375CYGPATH_W!$CYGPATH_W$ac_delim
23376PACKAGE!$PACKAGE$ac_delim
23377VERSION!$VERSION$ac_delim
23378ACLOCAL!$ACLOCAL$ac_delim
23379AUTOCONF!$AUTOCONF$ac_delim
23380AUTOMAKE!$AUTOMAKE$ac_delim
23381AUTOHEADER!$AUTOHEADER$ac_delim
23382MAKEINFO!$MAKEINFO$ac_delim
23383install_sh!$install_sh$ac_delim
23384STRIP!$STRIP$ac_delim
23385INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23386mkdir_p!$mkdir_p$ac_delim
23387AWK!$AWK$ac_delim
23388SET_MAKE!$SET_MAKE$ac_delim
23389am__leading_dot!$am__leading_dot$ac_delim
23390AMTAR!$AMTAR$ac_delim
23391am__tar!$am__tar$ac_delim
23392am__untar!$am__untar$ac_delim
23393MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23394MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23395MAINT!$MAINT$ac_delim
23396CFLAGS!$CFLAGS$ac_delim
23397CC!$CC$ac_delim
23398LDFLAGS!$LDFLAGS$ac_delim
23399CPPFLAGS!$CPPFLAGS$ac_delim
23400ac_ct_CC!$ac_ct_CC$ac_delim
23401EXEEXT!$EXEEXT$ac_delim
23402OBJEXT!$OBJEXT$ac_delim
23403DEPDIR!$DEPDIR$ac_delim
23404am__include!$am__include$ac_delim
23405am__quote!$am__quote$ac_delim
23406AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23407AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23408AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23409CCDEPMODE!$CCDEPMODE$ac_delim
23410am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23411am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23412CCAS!$CCAS$ac_delim
23413CCASFLAGS!$CCASFLAGS$ac_delim
23414GREP!$GREP$ac_delim
23415EGREP!$EGREP$ac_delim
23416LN_S!$LN_S$ac_delim
23417ECHO!$ECHO$ac_delim
23418AR!$AR$ac_delim
23419RANLIB!$RANLIB$ac_delim
23420_ACEOF
23421
23422  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23423    break
23424  elif $ac_last_try; then
23425    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23426echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23427   { (exit 1); exit 1; }; }
23428  else
23429    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23430  fi
23431done
23432
23433ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23434if test -n "$ac_eof"; then
23435  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23436  ac_eof=`expr $ac_eof + 1`
23437fi
23438
23439cat >>$CONFIG_STATUS <<_ACEOF
23440cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23441/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23442_ACEOF
23443sed '
23444s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23445s/^/s,@/; s/!/@,|#_!!_#|/
23446:n
23447t n
23448s/'"$ac_delim"'$/,g/; t
23449s/$/\\/; p
23450N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23451' >>$CONFIG_STATUS <conf$$subs.sed
23452rm -f conf$$subs.sed
23453cat >>$CONFIG_STATUS <<_ACEOF
23454CEOF$ac_eof
23455_ACEOF
23456
23457
23458ac_delim='%!_!# '
23459for ac_last_try in false false false false false :; do
23460  cat >conf$$subs.sed <<_ACEOF
23461CPP!$CPP$ac_delim
23462CXX!$CXX$ac_delim
23463CXXFLAGS!$CXXFLAGS$ac_delim
23464ac_ct_CXX!$ac_ct_CXX$ac_delim
23465CXXDEPMODE!$CXXDEPMODE$ac_delim
23466am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23467am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23468CXXCPP!$CXXCPP$ac_delim
23469F77!$F77$ac_delim
23470FFLAGS!$FFLAGS$ac_delim
23471ac_ct_F77!$ac_ct_F77$ac_delim
23472LIBTOOL!$LIBTOOL$ac_delim
23473HOST_X86_TRUE!$HOST_X86_TRUE$ac_delim
23474HOST_X86_FALSE!$HOST_X86_FALSE$ac_delim
23475HOST_X86_64_TRUE!$HOST_X86_64_TRUE$ac_delim
23476HOST_X86_64_FALSE!$HOST_X86_64_FALSE$ac_delim
23477PKG_CONFIG!$PKG_CONFIG$ac_delim
23478GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23479GTK_LIBS!$GTK_LIBS$ac_delim
23480HAVE_GTK_TRUE!$HAVE_GTK_TRUE$ac_delim
23481HAVE_GTK_FALSE!$HAVE_GTK_FALSE$ac_delim
23482SDL_CONFIG!$SDL_CONFIG$ac_delim
23483SDL_CFLAGS!$SDL_CFLAGS$ac_delim
23484SDL_LIBS!$SDL_LIBS$ac_delim
23485XV_LIB!$XV_LIB$ac_delim
23486PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
23487POPT_LIB!$POPT_LIB$ac_delim
23488REQUIRES_NOPKGCONFIG!$REQUIRES_NOPKGCONFIG$ac_delim
23489XMKMF!$XMKMF$ac_delim
23490ac_aux_dir!$ac_aux_dir$ac_delim
23491RPM_RELEASE!$RPM_RELEASE$ac_delim
23492LIBOBJS!$LIBOBJS$ac_delim
23493LTLIBOBJS!$LTLIBOBJS$ac_delim
23494_ACEOF
23495
23496  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
23497    break
23498  elif $ac_last_try; then
23499    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23500echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23501   { (exit 1); exit 1; }; }
23502  else
23503    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23504  fi
23505done
23506
23507ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23508if test -n "$ac_eof"; then
23509  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23510  ac_eof=`expr $ac_eof + 1`
23511fi
23512
23513cat >>$CONFIG_STATUS <<_ACEOF
23514cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23515/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23516_ACEOF
23517sed '
23518s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23519s/^/s,@/; s/!/@,|#_!!_#|/
23520:n
23521t n
23522s/'"$ac_delim"'$/,g/; t
23523s/$/\\/; p
23524N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23525' >>$CONFIG_STATUS <conf$$subs.sed
23526rm -f conf$$subs.sed
23527cat >>$CONFIG_STATUS <<_ACEOF
23528:end
23529s/|#_!!_#|//g
23530CEOF$ac_eof
23531_ACEOF
23532
23533
23534# VPATH may cause trouble with some makes, so we remove $(srcdir),
23535# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23536# trailing colons and then remove the whole line if VPATH becomes empty
23537# (actually we leave an empty line to preserve line numbers).
23538if test "x$srcdir" = x.; then
23539  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23540s/:*\$(srcdir):*/:/
23541s/:*\${srcdir}:*/:/
23542s/:*@srcdir@:*/:/
23543s/^\([^=]*=[	 ]*\):*/\1/
23544s/:*$//
23545s/^[^=]*=[	 ]*$//
23546}'
23547fi
23548
23549cat >>$CONFIG_STATUS <<\_ACEOF
23550fi # test -n "$CONFIG_FILES"
23551
23552
23553for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23554do
23555  case $ac_tag in
23556  :[FHLC]) ac_mode=$ac_tag; continue;;
23557  esac
23558  case $ac_mode$ac_tag in
23559  :[FHL]*:*);;
23560  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23561echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23562   { (exit 1); exit 1; }; };;
23563  :[FH]-) ac_tag=-:-;;
23564  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23565  esac
23566  ac_save_IFS=$IFS
23567  IFS=:
23568  set x $ac_tag
23569  IFS=$ac_save_IFS
23570  shift
23571  ac_file=$1
23572  shift
23573
23574  case $ac_mode in
23575  :L) ac_source=$1;;
23576  :[FH])
23577    ac_file_inputs=
23578    for ac_f
23579    do
23580      case $ac_f in
23581      -) ac_f="$tmp/stdin";;
23582      *) # Look for the file first in the build tree, then in the source tree
23583	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23584	 # because $ac_f cannot contain `:'.
23585	 test -f "$ac_f" ||
23586	   case $ac_f in
23587	   [\\/$]*) false;;
23588	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23589	   esac ||
23590	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23591echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23592   { (exit 1); exit 1; }; };;
23593      esac
23594      ac_file_inputs="$ac_file_inputs $ac_f"
23595    done
23596
23597    # Let's still pretend it is `configure' which instantiates (i.e., don't
23598    # use $as_me), people would be surprised to read:
23599    #    /* config.h.  Generated by config.status.  */
23600    configure_input="Generated from "`IFS=:
23601	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23602    if test x"$ac_file" != x-; then
23603      configure_input="$ac_file.  $configure_input"
23604      { echo "$as_me:$LINENO: creating $ac_file" >&5
23605echo "$as_me: creating $ac_file" >&6;}
23606    fi
23607
23608    case $ac_tag in
23609    *:-:* | *:-) cat >"$tmp/stdin";;
23610    esac
23611    ;;
23612  esac
23613
23614  ac_dir=`$as_dirname -- "$ac_file" ||
23615$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23616	 X"$ac_file" : 'X\(//\)[^/]' \| \
23617	 X"$ac_file" : 'X\(//\)$' \| \
23618	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23619echo X"$ac_file" |
23620    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23621	    s//\1/
23622	    q
23623	  }
23624	  /^X\(\/\/\)[^/].*/{
23625	    s//\1/
23626	    q
23627	  }
23628	  /^X\(\/\/\)$/{
23629	    s//\1/
23630	    q
23631	  }
23632	  /^X\(\/\).*/{
23633	    s//\1/
23634	    q
23635	  }
23636	  s/.*/./; q'`
23637  { as_dir="$ac_dir"
23638  case $as_dir in #(
23639  -*) as_dir=./$as_dir;;
23640  esac
23641  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23642    as_dirs=
23643    while :; do
23644      case $as_dir in #(
23645      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23646      *) as_qdir=$as_dir;;
23647      esac
23648      as_dirs="'$as_qdir' $as_dirs"
23649      as_dir=`$as_dirname -- "$as_dir" ||
23650$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23651	 X"$as_dir" : 'X\(//\)[^/]' \| \
23652	 X"$as_dir" : 'X\(//\)$' \| \
23653	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23654echo X"$as_dir" |
23655    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23656	    s//\1/
23657	    q
23658	  }
23659	  /^X\(\/\/\)[^/].*/{
23660	    s//\1/
23661	    q
23662	  }
23663	  /^X\(\/\/\)$/{
23664	    s//\1/
23665	    q
23666	  }
23667	  /^X\(\/\).*/{
23668	    s//\1/
23669	    q
23670	  }
23671	  s/.*/./; q'`
23672      test -d "$as_dir" && break
23673    done
23674    test -z "$as_dirs" || eval "mkdir $as_dirs"
23675  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23676echo "$as_me: error: cannot create directory $as_dir" >&2;}
23677   { (exit 1); exit 1; }; }; }
23678  ac_builddir=.
23679
23680case "$ac_dir" in
23681.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23682*)
23683  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23684  # A ".." for each directory in $ac_dir_suffix.
23685  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23686  case $ac_top_builddir_sub in
23687  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23688  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23689  esac ;;
23690esac
23691ac_abs_top_builddir=$ac_pwd
23692ac_abs_builddir=$ac_pwd$ac_dir_suffix
23693# for backward compatibility:
23694ac_top_builddir=$ac_top_build_prefix
23695
23696case $srcdir in
23697  .)  # We are building in place.
23698    ac_srcdir=.
23699    ac_top_srcdir=$ac_top_builddir_sub
23700    ac_abs_top_srcdir=$ac_pwd ;;
23701  [\\/]* | ?:[\\/]* )  # Absolute name.
23702    ac_srcdir=$srcdir$ac_dir_suffix;
23703    ac_top_srcdir=$srcdir
23704    ac_abs_top_srcdir=$srcdir ;;
23705  *) # Relative name.
23706    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23707    ac_top_srcdir=$ac_top_build_prefix$srcdir
23708    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23709esac
23710ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23711
23712
23713  case $ac_mode in
23714  :F)
23715  #
23716  # CONFIG_FILE
23717  #
23718
23719  case $INSTALL in
23720  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23721  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23722  esac
23723_ACEOF
23724
23725cat >>$CONFIG_STATUS <<\_ACEOF
23726# If the template does not know about datarootdir, expand it.
23727# FIXME: This hack should be removed a few years after 2.60.
23728ac_datarootdir_hack=; ac_datarootdir_seen=
23729
23730case `sed -n '/datarootdir/ {
23731  p
23732  q
23733}
23734/@datadir@/p
23735/@docdir@/p
23736/@infodir@/p
23737/@localedir@/p
23738/@mandir@/p
23739' $ac_file_inputs` in
23740*datarootdir*) ac_datarootdir_seen=yes;;
23741*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23742  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23743echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23744_ACEOF
23745cat >>$CONFIG_STATUS <<_ACEOF
23746  ac_datarootdir_hack='
23747  s&@datadir@&$datadir&g
23748  s&@docdir@&$docdir&g
23749  s&@infodir@&$infodir&g
23750  s&@localedir@&$localedir&g
23751  s&@mandir@&$mandir&g
23752    s&\\\${datarootdir}&$datarootdir&g' ;;
23753esac
23754_ACEOF
23755
23756# Neutralize VPATH when `$srcdir' = `.'.
23757# Shell code in configure.ac might set extrasub.
23758# FIXME: do we really want to maintain this feature?
23759cat >>$CONFIG_STATUS <<_ACEOF
23760  sed "$ac_vpsub
23761$extrasub
23762_ACEOF
23763cat >>$CONFIG_STATUS <<\_ACEOF
23764:t
23765/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23766s&@configure_input@&$configure_input&;t t
23767s&@top_builddir@&$ac_top_builddir_sub&;t t
23768s&@srcdir@&$ac_srcdir&;t t
23769s&@abs_srcdir@&$ac_abs_srcdir&;t t
23770s&@top_srcdir@&$ac_top_srcdir&;t t
23771s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23772s&@builddir@&$ac_builddir&;t t
23773s&@abs_builddir@&$ac_abs_builddir&;t t
23774s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23775s&@INSTALL@&$ac_INSTALL&;t t
23776$ac_datarootdir_hack
23777" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23778
23779test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23780  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23781  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23782  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23783which seems to be undefined.  Please make sure it is defined." >&5
23784echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23785which seems to be undefined.  Please make sure it is defined." >&2;}
23786
23787  rm -f "$tmp/stdin"
23788  case $ac_file in
23789  -) cat "$tmp/out"; rm -f "$tmp/out";;
23790  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23791  esac
23792 ;;
23793  :H)
23794  #
23795  # CONFIG_HEADER
23796  #
23797_ACEOF
23798
23799# Transform confdefs.h into a sed script `conftest.defines', that
23800# substitutes the proper values into config.h.in to produce config.h.
23801rm -f conftest.defines conftest.tail
23802# First, append a space to every undef/define line, to ease matching.
23803echo 's/$/ /' >conftest.defines
23804# Then, protect against being on the right side of a sed subst, or in
23805# an unquoted here document, in config.status.  If some macros were
23806# called several times there might be several #defines for the same
23807# symbol, which is useless.  But do not sort them, since the last
23808# AC_DEFINE must be honored.
23809ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23810# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23811# NAME is the cpp macro being defined, VALUE is the value it is being given.
23812# PARAMS is the parameter list in the macro definition--in most cases, it's
23813# just an empty string.
23814ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
23815ac_dB='\\)[	 (].*,\\1define\\2'
23816ac_dC=' '
23817ac_dD=' ,'
23818
23819uniq confdefs.h |
23820  sed -n '
23821	t rset
23822	:rset
23823	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
23824	t ok
23825	d
23826	:ok
23827	s/[\\&,]/\\&/g
23828	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23829	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23830  ' >>conftest.defines
23831
23832# Remove the space that was appended to ease matching.
23833# Then replace #undef with comments.  This is necessary, for
23834# example, in the case of _POSIX_SOURCE, which is predefined and required
23835# on some systems where configure will not decide to define it.
23836# (The regexp can be short, since the line contains either #define or #undef.)
23837echo 's/ $//
23838s,^[	 #]*u.*,/* & */,' >>conftest.defines
23839
23840# Break up conftest.defines:
23841ac_max_sed_lines=50
23842
23843# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23844# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23845# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23846# et cetera.
23847ac_in='$ac_file_inputs'
23848ac_out='"$tmp/out1"'
23849ac_nxt='"$tmp/out2"'
23850
23851while :
23852do
23853  # Write a here document:
23854    cat >>$CONFIG_STATUS <<_ACEOF
23855    # First, check the format of the line:
23856    cat >"\$tmp/defines.sed" <<\\CEOF
23857/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
23858/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
23859b
23860:def
23861_ACEOF
23862  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23863  echo 'CEOF
23864    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23865  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23866  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23867  grep . conftest.tail >/dev/null || break
23868  rm -f conftest.defines
23869  mv conftest.tail conftest.defines
23870done
23871rm -f conftest.defines conftest.tail
23872
23873echo "ac_result=$ac_in" >>$CONFIG_STATUS
23874cat >>$CONFIG_STATUS <<\_ACEOF
23875  if test x"$ac_file" != x-; then
23876    echo "/* $configure_input  */" >"$tmp/config.h"
23877    cat "$ac_result" >>"$tmp/config.h"
23878    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23879      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23880echo "$as_me: $ac_file is unchanged" >&6;}
23881    else
23882      rm -f $ac_file
23883      mv "$tmp/config.h" $ac_file
23884    fi
23885  else
23886    echo "/* $configure_input  */"
23887    cat "$ac_result"
23888  fi
23889  rm -f "$tmp/out12"
23890# Compute $ac_file's index in $config_headers.
23891_am_stamp_count=1
23892for _am_header in $config_headers :; do
23893  case $_am_header in
23894    $ac_file | $ac_file:* )
23895      break ;;
23896    * )
23897      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23898  esac
23899done
23900echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23901$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23902	 X$ac_file : 'X\(//\)[^/]' \| \
23903	 X$ac_file : 'X\(//\)$' \| \
23904	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23905echo X$ac_file |
23906    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23907	    s//\1/
23908	    q
23909	  }
23910	  /^X\(\/\/\)[^/].*/{
23911	    s//\1/
23912	    q
23913	  }
23914	  /^X\(\/\/\)$/{
23915	    s//\1/
23916	    q
23917	  }
23918	  /^X\(\/\).*/{
23919	    s//\1/
23920	    q
23921	  }
23922	  s/.*/./; q'`/stamp-h$_am_stamp_count
23923 ;;
23924
23925  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23926echo "$as_me: executing $ac_file commands" >&6;}
23927 ;;
23928  esac
23929
23930
23931  case $ac_file$ac_mode in
23932    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23933  # Strip MF so we end up with the name of the file.
23934  mf=`echo "$mf" | sed -e 's/:.*$//'`
23935  # Check whether this is an Automake generated Makefile or not.
23936  # We used to match only the files named `Makefile.in', but
23937  # some people rename them; so instead we look at the file content.
23938  # Grep'ing the first line is not enough: some people post-process
23939  # each Makefile.in and add a new line on top of each file to say so.
23940  # So let's grep whole file.
23941  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23942    dirpart=`$as_dirname -- "$mf" ||
23943$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23944	 X"$mf" : 'X\(//\)[^/]' \| \
23945	 X"$mf" : 'X\(//\)$' \| \
23946	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23947echo X"$mf" |
23948    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23949	    s//\1/
23950	    q
23951	  }
23952	  /^X\(\/\/\)[^/].*/{
23953	    s//\1/
23954	    q
23955	  }
23956	  /^X\(\/\/\)$/{
23957	    s//\1/
23958	    q
23959	  }
23960	  /^X\(\/\).*/{
23961	    s//\1/
23962	    q
23963	  }
23964	  s/.*/./; q'`
23965  else
23966    continue
23967  fi
23968  # Extract the definition of DEPDIR, am__include, and am__quote
23969  # from the Makefile without running `make'.
23970  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23971  test -z "$DEPDIR" && continue
23972  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23973  test -z "am__include" && continue
23974  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23975  # When using ansi2knr, U may be empty or an underscore; expand it
23976  U=`sed -n 's/^U = //p' < "$mf"`
23977  # Find all dependency output files, they are included files with
23978  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23979  # simplest approach to changing $(DEPDIR) to its actual value in the
23980  # expansion.
23981  for file in `sed -n "
23982    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23983       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23984    # Make sure the directory exists.
23985    test -f "$dirpart/$file" && continue
23986    fdir=`$as_dirname -- "$file" ||
23987$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23988	 X"$file" : 'X\(//\)[^/]' \| \
23989	 X"$file" : 'X\(//\)$' \| \
23990	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23991echo X"$file" |
23992    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23993	    s//\1/
23994	    q
23995	  }
23996	  /^X\(\/\/\)[^/].*/{
23997	    s//\1/
23998	    q
23999	  }
24000	  /^X\(\/\/\)$/{
24001	    s//\1/
24002	    q
24003	  }
24004	  /^X\(\/\).*/{
24005	    s//\1/
24006	    q
24007	  }
24008	  s/.*/./; q'`
24009    { as_dir=$dirpart/$fdir
24010  case $as_dir in #(
24011  -*) as_dir=./$as_dir;;
24012  esac
24013  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24014    as_dirs=
24015    while :; do
24016      case $as_dir in #(
24017      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24018      *) as_qdir=$as_dir;;
24019      esac
24020      as_dirs="'$as_qdir' $as_dirs"
24021      as_dir=`$as_dirname -- "$as_dir" ||
24022$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24023	 X"$as_dir" : 'X\(//\)[^/]' \| \
24024	 X"$as_dir" : 'X\(//\)$' \| \
24025	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24026echo X"$as_dir" |
24027    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24028	    s//\1/
24029	    q
24030	  }
24031	  /^X\(\/\/\)[^/].*/{
24032	    s//\1/
24033	    q
24034	  }
24035	  /^X\(\/\/\)$/{
24036	    s//\1/
24037	    q
24038	  }
24039	  /^X\(\/\).*/{
24040	    s//\1/
24041	    q
24042	  }
24043	  s/.*/./; q'`
24044      test -d "$as_dir" && break
24045    done
24046    test -z "$as_dirs" || eval "mkdir $as_dirs"
24047  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24048echo "$as_me: error: cannot create directory $as_dir" >&2;}
24049   { (exit 1); exit 1; }; }; }
24050    # echo "creating $dirpart/$file"
24051    echo '# dummy' > "$dirpart/$file"
24052  done
24053done
24054 ;;
24055
24056  esac
24057done # for ac_tag
24058
24059
24060{ (exit 0); exit 0; }
24061_ACEOF
24062chmod +x $CONFIG_STATUS
24063ac_clean_files=$ac_clean_files_save
24064
24065
24066# configure is writing to config.log, and then calls config.status.
24067# config.status does its own redirection, appending to config.log.
24068# Unfortunately, on DOS this fails, as config.log is still kept open
24069# by configure, so config.status won't be able to write to it; its
24070# output is simply discarded.  So we exec the FD to /dev/null,
24071# effectively closing config.log, so it can be properly (re)opened and
24072# appended to by config.status.  When coming back to configure, we
24073# need to make the FD available again.
24074if test "$no_create" != yes; then
24075  ac_cs_success=:
24076  ac_config_status_args=
24077  test "$silent" = yes &&
24078    ac_config_status_args="$ac_config_status_args --quiet"
24079  exec 5>/dev/null
24080  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24081  exec 5>>config.log
24082  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24083  # would make configure fail if this is the last instruction.
24084  $ac_cs_success || { (exit 1); exit 1; }
24085fi
24086
24087