1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for gpaint-2 0.3.3.
4#
5# Report bugs to <http://savannah.gnu.org/bugs/?group=gpaint>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291       echo_test_string=`eval $cmd` &&
292       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293    then
294      break
295    fi
296  done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301   test "X$echo_testing_string" = "X$echo_test_string"; then
302  :
303else
304  # The Solaris, AIX, and Digital Unix default echo programs unquote
305  # backslashes.  This makes it impossible to quote backslashes using
306  #   echo "$something" | sed 's/\\/\\\\/g'
307  #
308  # So, first we look for a working echo in the user's PATH.
309
310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311  for dir in $PATH /usr/ucb; do
312    IFS="$lt_save_ifs"
313    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316       test "X$echo_testing_string" = "X$echo_test_string"; then
317      echo="$dir/echo"
318      break
319    fi
320  done
321  IFS="$lt_save_ifs"
322
323  if test "X$echo" = Xecho; then
324    # We didn't find a better echo, so look for alternatives.
325    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327       test "X$echo_testing_string" = "X$echo_test_string"; then
328      # This shell has a builtin print -r that does the trick.
329      echo='print -r'
330    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331	 test "X$CONFIG_SHELL" != X/bin/ksh; then
332      # If we have ksh, try running configure again with it.
333      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334      export ORIGINAL_CONFIG_SHELL
335      CONFIG_SHELL=/bin/ksh
336      export CONFIG_SHELL
337      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338    else
339      # Try using printf.
340      echo='printf %s\n'
341      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343	 test "X$echo_testing_string" = "X$echo_test_string"; then
344	# Cool, printf works
345	:
346      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347	   test "X$echo_testing_string" = 'X\t' &&
348	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349	   test "X$echo_testing_string" = "X$echo_test_string"; then
350	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351	export CONFIG_SHELL
352	SHELL="$CONFIG_SHELL"
353	export SHELL
354	echo="$CONFIG_SHELL $0 --fallback-echo"
355      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356	   test "X$echo_testing_string" = 'X\t' &&
357	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358	   test "X$echo_testing_string" = "X$echo_test_string"; then
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      else
361	# maybe with a smaller string...
362	prev=:
363
364	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366	  then
367	    break
368	  fi
369	  prev="$cmd"
370	done
371
372	if test "$prev" != 'sed 50q "$0"'; then
373	  echo_test_string=`eval $prev`
374	  export echo_test_string
375	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376	else
377	  # Oops.  We lost completely, so just stick with echo.
378	  echo=echo
379	fi
380      fi
381    fi
382  fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete.  It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='gpaint-2'
425PACKAGE_TARNAME='gpaint-2'
426PACKAGE_VERSION='0.3.3'
427PACKAGE_STRING='gpaint-2 0.3.3'
428PACKAGE_BUGREPORT='http://savannah.gnu.org/bugs/?group=gpaint'
429
430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444#  include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449#  include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460#  include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG GUI_CFLAGS GUI_LIBS PRINT_CFLAGS PRINT_LIBS GTKPRINT_CFLAGS GTKPRINT_LIBS GETTEXT_PACKAGE USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS LIBOBJS LTLIBOBJS'
468ac_subst_files=''
469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511  # If the previous option needs an argument, assign it.
512  if test -n "$ac_prev"; then
513    eval "$ac_prev=\$ac_option"
514    ac_prev=
515    continue
516  fi
517
518  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520  # Accept the important Cygnus configure options, so we can diagnose typos.
521
522  case $ac_option in
523
524  -bindir | --bindir | --bindi | --bind | --bin | --bi)
525    ac_prev=bindir ;;
526  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527    bindir=$ac_optarg ;;
528
529  -build | --build | --buil | --bui | --bu)
530    ac_prev=build_alias ;;
531  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532    build_alias=$ac_optarg ;;
533
534  -cache-file | --cache-file | --cache-fil | --cache-fi \
535  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536    ac_prev=cache_file ;;
537  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539    cache_file=$ac_optarg ;;
540
541  --config-cache | -C)
542    cache_file=config.cache ;;
543
544  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545    ac_prev=datadir ;;
546  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547  | --da=*)
548    datadir=$ac_optarg ;;
549
550  -disable-* | --disable-*)
551    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552    # Reject names that are not valid shell variable names.
553    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555   { (exit 1); exit 1; }; }
556    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557    eval "enable_$ac_feature=no" ;;
558
559  -enable-* | --enable-*)
560    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561    # Reject names that are not valid shell variable names.
562    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564   { (exit 1); exit 1; }; }
565    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566    case $ac_option in
567      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568      *) ac_optarg=yes ;;
569    esac
570    eval "enable_$ac_feature='$ac_optarg'" ;;
571
572  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574  | --exec | --exe | --ex)
575    ac_prev=exec_prefix ;;
576  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578  | --exec=* | --exe=* | --ex=*)
579    exec_prefix=$ac_optarg ;;
580
581  -gas | --gas | --ga | --g)
582    # Obsolete; use --with-gas.
583    with_gas=yes ;;
584
585  -help | --help | --hel | --he | -h)
586    ac_init_help=long ;;
587  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588    ac_init_help=recursive ;;
589  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590    ac_init_help=short ;;
591
592  -host | --host | --hos | --ho)
593    ac_prev=host_alias ;;
594  -host=* | --host=* | --hos=* | --ho=*)
595    host_alias=$ac_optarg ;;
596
597  -includedir | --includedir | --includedi | --included | --include \
598  | --includ | --inclu | --incl | --inc)
599    ac_prev=includedir ;;
600  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601  | --includ=* | --inclu=* | --incl=* | --inc=*)
602    includedir=$ac_optarg ;;
603
604  -infodir | --infodir | --infodi | --infod | --info | --inf)
605    ac_prev=infodir ;;
606  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607    infodir=$ac_optarg ;;
608
609  -libdir | --libdir | --libdi | --libd)
610    ac_prev=libdir ;;
611  -libdir=* | --libdir=* | --libdi=* | --libd=*)
612    libdir=$ac_optarg ;;
613
614  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615  | --libexe | --libex | --libe)
616    ac_prev=libexecdir ;;
617  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618  | --libexe=* | --libex=* | --libe=*)
619    libexecdir=$ac_optarg ;;
620
621  -localstatedir | --localstatedir | --localstatedi | --localstated \
622  | --localstate | --localstat | --localsta | --localst \
623  | --locals | --local | --loca | --loc | --lo)
624    ac_prev=localstatedir ;;
625  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628    localstatedir=$ac_optarg ;;
629
630  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631    ac_prev=mandir ;;
632  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633    mandir=$ac_optarg ;;
634
635  -nfp | --nfp | --nf)
636    # Obsolete; use --without-fp.
637    with_fp=no ;;
638
639  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640  | --no-cr | --no-c | -n)
641    no_create=yes ;;
642
643  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645    no_recursion=yes ;;
646
647  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649  | --oldin | --oldi | --old | --ol | --o)
650    ac_prev=oldincludedir ;;
651  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654    oldincludedir=$ac_optarg ;;
655
656  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657    ac_prev=prefix ;;
658  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659    prefix=$ac_optarg ;;
660
661  -program-prefix | --program-prefix | --program-prefi | --program-pref \
662  | --program-pre | --program-pr | --program-p)
663    ac_prev=program_prefix ;;
664  -program-prefix=* | --program-prefix=* | --program-prefi=* \
665  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666    program_prefix=$ac_optarg ;;
667
668  -program-suffix | --program-suffix | --program-suffi | --program-suff \
669  | --program-suf | --program-su | --program-s)
670    ac_prev=program_suffix ;;
671  -program-suffix=* | --program-suffix=* | --program-suffi=* \
672  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673    program_suffix=$ac_optarg ;;
674
675  -program-transform-name | --program-transform-name \
676  | --program-transform-nam | --program-transform-na \
677  | --program-transform-n | --program-transform- \
678  | --program-transform | --program-transfor \
679  | --program-transfo | --program-transf \
680  | --program-trans | --program-tran \
681  | --progr-tra | --program-tr | --program-t)
682    ac_prev=program_transform_name ;;
683  -program-transform-name=* | --program-transform-name=* \
684  | --program-transform-nam=* | --program-transform-na=* \
685  | --program-transform-n=* | --program-transform-=* \
686  | --program-transform=* | --program-transfor=* \
687  | --program-transfo=* | --program-transf=* \
688  | --program-trans=* | --program-tran=* \
689  | --progr-tra=* | --program-tr=* | --program-t=*)
690    program_transform_name=$ac_optarg ;;
691
692  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693  | -silent | --silent | --silen | --sile | --sil)
694    silent=yes ;;
695
696  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697    ac_prev=sbindir ;;
698  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699  | --sbi=* | --sb=*)
700    sbindir=$ac_optarg ;;
701
702  -sharedstatedir | --sharedstatedir | --sharedstatedi \
703  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704  | --sharedst | --shareds | --shared | --share | --shar \
705  | --sha | --sh)
706    ac_prev=sharedstatedir ;;
707  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710  | --sha=* | --sh=*)
711    sharedstatedir=$ac_optarg ;;
712
713  -site | --site | --sit)
714    ac_prev=site ;;
715  -site=* | --site=* | --sit=*)
716    site=$ac_optarg ;;
717
718  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719    ac_prev=srcdir ;;
720  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721    srcdir=$ac_optarg ;;
722
723  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724  | --syscon | --sysco | --sysc | --sys | --sy)
725    ac_prev=sysconfdir ;;
726  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728    sysconfdir=$ac_optarg ;;
729
730  -target | --target | --targe | --targ | --tar | --ta | --t)
731    ac_prev=target_alias ;;
732  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733    target_alias=$ac_optarg ;;
734
735  -v | -verbose | --verbose | --verbos | --verbo | --verb)
736    verbose=yes ;;
737
738  -version | --version | --versio | --versi | --vers | -V)
739    ac_init_version=: ;;
740
741  -with-* | --with-*)
742    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743    # Reject names that are not valid shell variable names.
744    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745      { echo "$as_me: error: invalid package name: $ac_package" >&2
746   { (exit 1); exit 1; }; }
747    ac_package=`echo $ac_package| sed 's/-/_/g'`
748    case $ac_option in
749      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750      *) ac_optarg=yes ;;
751    esac
752    eval "with_$ac_package='$ac_optarg'" ;;
753
754  -without-* | --without-*)
755    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756    # Reject names that are not valid shell variable names.
757    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758      { echo "$as_me: error: invalid package name: $ac_package" >&2
759   { (exit 1); exit 1; }; }
760    ac_package=`echo $ac_package | sed 's/-/_/g'`
761    eval "with_$ac_package=no" ;;
762
763  --x)
764    # Obsolete; use --with-x.
765    with_x=yes ;;
766
767  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768  | --x-incl | --x-inc | --x-in | --x-i)
769    ac_prev=x_includes ;;
770  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772    x_includes=$ac_optarg ;;
773
774  -x-libraries | --x-libraries | --x-librarie | --x-librari \
775  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776    ac_prev=x_libraries ;;
777  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779    x_libraries=$ac_optarg ;;
780
781  -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783   { (exit 1); exit 1; }; }
784    ;;
785
786  *=*)
787    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788    # Reject names that are not valid shell variable names.
789    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791   { (exit 1); exit 1; }; }
792    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793    eval "$ac_envvar='$ac_optarg'"
794    export $ac_envvar ;;
795
796  *)
797    # FIXME: should be removed in autoconf 3.0.
798    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802    ;;
803
804  esac
805done
806
807if test -n "$ac_prev"; then
808  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809  { echo "$as_me: error: missing argument to $ac_option" >&2
810   { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816  eval ac_val=$`echo $ac_var`
817  case $ac_val in
818    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820   { (exit 1); exit 1; }; };;
821  esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826	      localstatedir libdir includedir oldincludedir infodir mandir
827do
828  eval ac_val=$`echo $ac_var`
829  case $ac_val in
830    [\\/$]* | ?:[\\/]* ) ;;
831    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832   { (exit 1); exit 1; }; };;
833  esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845  if test "x$build_alias" = x; then
846    cross_compiling=maybe
847    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848    If a cross compiler is detected then cross compile mode will be used." >&2
849  elif test "x$build_alias" != "x$host_alias"; then
850    cross_compiling=yes
851  fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862  ac_srcdir_defaulted=yes
863  # Try the directory containing this script, then its parent.
864  ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866	 X"$0" : 'X\(//\)[^/]' \| \
867	 X"$0" : 'X\(//\)$' \| \
868	 X"$0" : 'X\(/\)' \| \
869	 .     : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873  	  /^X\(\/\/\)$/{ s//\1/; q; }
874  	  /^X\(\/\).*/{ s//\1/; q; }
875  	  s/.*/./; q'`
876  srcdir=$ac_confdir
877  if test ! -r $srcdir/$ac_unique_file; then
878    srcdir=..
879  fi
880else
881  ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884  if test "$ac_srcdir_defaulted" = yes; then
885    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886   { (exit 1); exit 1; }; }
887  else
888    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889   { (exit 1); exit 1; }; }
890  fi
891fi
892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894   { (exit 1); exit 1; }; }
895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CC_set=${CC+set}
909ac_env_CC_value=$CC
910ac_cv_env_CC_set=${CC+set}
911ac_cv_env_CC_value=$CC
912ac_env_CFLAGS_set=${CFLAGS+set}
913ac_env_CFLAGS_value=$CFLAGS
914ac_cv_env_CFLAGS_set=${CFLAGS+set}
915ac_cv_env_CFLAGS_value=$CFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CPP_set=${CPP+set}
925ac_env_CPP_value=$CPP
926ac_cv_env_CPP_set=${CPP+set}
927ac_cv_env_CPP_value=$CPP
928ac_env_CXX_set=${CXX+set}
929ac_env_CXX_value=$CXX
930ac_cv_env_CXX_set=${CXX+set}
931ac_cv_env_CXX_value=$CXX
932ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933ac_env_CXXFLAGS_value=$CXXFLAGS
934ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
948ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
949ac_env_PKG_CONFIG_value=$PKG_CONFIG
950ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
951ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
952ac_env_GUI_CFLAGS_set=${GUI_CFLAGS+set}
953ac_env_GUI_CFLAGS_value=$GUI_CFLAGS
954ac_cv_env_GUI_CFLAGS_set=${GUI_CFLAGS+set}
955ac_cv_env_GUI_CFLAGS_value=$GUI_CFLAGS
956ac_env_GUI_LIBS_set=${GUI_LIBS+set}
957ac_env_GUI_LIBS_value=$GUI_LIBS
958ac_cv_env_GUI_LIBS_set=${GUI_LIBS+set}
959ac_cv_env_GUI_LIBS_value=$GUI_LIBS
960ac_env_PRINT_CFLAGS_set=${PRINT_CFLAGS+set}
961ac_env_PRINT_CFLAGS_value=$PRINT_CFLAGS
962ac_cv_env_PRINT_CFLAGS_set=${PRINT_CFLAGS+set}
963ac_cv_env_PRINT_CFLAGS_value=$PRINT_CFLAGS
964ac_env_PRINT_LIBS_set=${PRINT_LIBS+set}
965ac_env_PRINT_LIBS_value=$PRINT_LIBS
966ac_cv_env_PRINT_LIBS_set=${PRINT_LIBS+set}
967ac_cv_env_PRINT_LIBS_value=$PRINT_LIBS
968ac_env_GTKPRINT_CFLAGS_set=${GTKPRINT_CFLAGS+set}
969ac_env_GTKPRINT_CFLAGS_value=$GTKPRINT_CFLAGS
970ac_cv_env_GTKPRINT_CFLAGS_set=${GTKPRINT_CFLAGS+set}
971ac_cv_env_GTKPRINT_CFLAGS_value=$GTKPRINT_CFLAGS
972ac_env_GTKPRINT_LIBS_set=${GTKPRINT_LIBS+set}
973ac_env_GTKPRINT_LIBS_value=$GTKPRINT_LIBS
974ac_cv_env_GTKPRINT_LIBS_set=${GTKPRINT_LIBS+set}
975ac_cv_env_GTKPRINT_LIBS_value=$GTKPRINT_LIBS
976
977#
978# Report the --help message.
979#
980if test "$ac_init_help" = "long"; then
981  # Omit some internal or obsolete options to make the list less imposing.
982  # This message is too long to be a string in the A/UX 3.1 sh.
983  cat <<_ACEOF
984\`configure' configures gpaint-2 0.3.3 to adapt to many kinds of systems.
985
986Usage: $0 [OPTION]... [VAR=VALUE]...
987
988To assign environment variables (e.g., CC, CFLAGS...), specify them as
989VAR=VALUE.  See below for descriptions of some of the useful variables.
990
991Defaults for the options are specified in brackets.
992
993Configuration:
994  -h, --help              display this help and exit
995      --help=short        display options specific to this package
996      --help=recursive    display the short help of all the included packages
997  -V, --version           display version information and exit
998  -q, --quiet, --silent   do not print \`checking...' messages
999      --cache-file=FILE   cache test results in FILE [disabled]
1000  -C, --config-cache      alias for \`--cache-file=config.cache'
1001  -n, --no-create         do not create output files
1002      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1003
1004_ACEOF
1005
1006  cat <<_ACEOF
1007Installation directories:
1008  --prefix=PREFIX         install architecture-independent files in PREFIX
1009			  [$ac_default_prefix]
1010  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1011			  [PREFIX]
1012
1013By default, \`make install' will install all the files in
1014\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1015an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1016for instance \`--prefix=\$HOME'.
1017
1018For better control, use the options below.
1019
1020Fine tuning of the installation directories:
1021  --bindir=DIR           user executables [EPREFIX/bin]
1022  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1023  --libexecdir=DIR       program executables [EPREFIX/libexec]
1024  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1025  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1026  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1027  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1028  --libdir=DIR           object code libraries [EPREFIX/lib]
1029  --includedir=DIR       C header files [PREFIX/include]
1030  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1031  --infodir=DIR          info documentation [PREFIX/info]
1032  --mandir=DIR           man documentation [PREFIX/man]
1033_ACEOF
1034
1035  cat <<\_ACEOF
1036
1037Program names:
1038  --program-prefix=PREFIX            prepend PREFIX to installed program names
1039  --program-suffix=SUFFIX            append SUFFIX to installed program names
1040  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1041
1042System types:
1043  --build=BUILD     configure for building on BUILD [guessed]
1044  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1045_ACEOF
1046fi
1047
1048if test -n "$ac_init_help"; then
1049  case $ac_init_help in
1050     short | recursive ) echo "Configuration of gpaint-2 0.3.3:";;
1051   esac
1052  cat <<\_ACEOF
1053
1054Optional Features:
1055  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1056  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1057  --enable-maintainer-mode enable make rules and dependencies not useful
1058                          (and sometimes confusing) to the casual installer
1059  --enable-shared[=PKGS]
1060                          build shared libraries [default=yes]
1061  --enable-static[=PKGS]
1062                          build static libraries [default=yes]
1063  --enable-fast-install[=PKGS]
1064                          optimize for fast installation [default=yes]
1065  --disable-libtool-lock  avoid locking (might break parallel builds)
1066
1067Optional Packages:
1068  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1069  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1070  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1071  --with-pic              try to use only PIC/non-PIC objects [default=use
1072                          both]
1073  --with-tags[=TAGS]
1074                          include additional configurations [automatic]
1075
1076Some influential environment variables:
1077  CC          C compiler command
1078  CFLAGS      C compiler flags
1079  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1080              nonstandard directory <lib dir>
1081  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1082              headers in a nonstandard directory <include dir>
1083  CPP         C preprocessor
1084  CXX         C++ compiler command
1085  CXXFLAGS    C++ compiler flags
1086  CXXCPP      C++ preprocessor
1087  F77         Fortran 77 compiler command
1088  FFLAGS      Fortran 77 compiler flags
1089  PKG_CONFIG  path to pkg-config utility
1090  GUI_CFLAGS  C compiler flags for GUI, overriding pkg-config
1091  GUI_LIBS    linker flags for GUI, overriding pkg-config
1092  PRINT_CFLAGS
1093              C compiler flags for PRINT, overriding pkg-config
1094  PRINT_LIBS  linker flags for PRINT, overriding pkg-config
1095  GTKPRINT_CFLAGS
1096              C compiler flags for GTKPRINT, overriding pkg-config
1097  GTKPRINT_LIBS
1098              linker flags for GTKPRINT, overriding pkg-config
1099
1100Use these variables to override the choices made by `configure' or to help
1101it to find libraries and programs with nonstandard names/locations.
1102
1103Report bugs to <http://savannah.gnu.org/bugs/?group=gpaint>.
1104_ACEOF
1105fi
1106
1107if test "$ac_init_help" = "recursive"; then
1108  # If there are subdirs, report their specific --help.
1109  ac_popdir=`pwd`
1110  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1111    test -d $ac_dir || continue
1112    ac_builddir=.
1113
1114if test "$ac_dir" != .; then
1115  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1116  # A "../" for each directory in $ac_dir_suffix.
1117  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1118else
1119  ac_dir_suffix= ac_top_builddir=
1120fi
1121
1122case $srcdir in
1123  .)  # No --srcdir option.  We are building in place.
1124    ac_srcdir=.
1125    if test -z "$ac_top_builddir"; then
1126       ac_top_srcdir=.
1127    else
1128       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1129    fi ;;
1130  [\\/]* | ?:[\\/]* )  # Absolute path.
1131    ac_srcdir=$srcdir$ac_dir_suffix;
1132    ac_top_srcdir=$srcdir ;;
1133  *) # Relative path.
1134    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1135    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1136esac
1137
1138# Do not use `cd foo && pwd` to compute absolute paths, because
1139# the directories may not exist.
1140case `pwd` in
1141.) ac_abs_builddir="$ac_dir";;
1142*)
1143  case "$ac_dir" in
1144  .) ac_abs_builddir=`pwd`;;
1145  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1146  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1147  esac;;
1148esac
1149case $ac_abs_builddir in
1150.) ac_abs_top_builddir=${ac_top_builddir}.;;
1151*)
1152  case ${ac_top_builddir}. in
1153  .) ac_abs_top_builddir=$ac_abs_builddir;;
1154  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1155  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1156  esac;;
1157esac
1158case $ac_abs_builddir in
1159.) ac_abs_srcdir=$ac_srcdir;;
1160*)
1161  case $ac_srcdir in
1162  .) ac_abs_srcdir=$ac_abs_builddir;;
1163  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1164  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1165  esac;;
1166esac
1167case $ac_abs_builddir in
1168.) ac_abs_top_srcdir=$ac_top_srcdir;;
1169*)
1170  case $ac_top_srcdir in
1171  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1172  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1173  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1174  esac;;
1175esac
1176
1177    cd $ac_dir
1178    # Check for guested configure; otherwise get Cygnus style configure.
1179    if test -f $ac_srcdir/configure.gnu; then
1180      echo
1181      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1182    elif test -f $ac_srcdir/configure; then
1183      echo
1184      $SHELL $ac_srcdir/configure  --help=recursive
1185    elif test -f $ac_srcdir/configure.ac ||
1186	   test -f $ac_srcdir/configure.in; then
1187      echo
1188      $ac_configure --help
1189    else
1190      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1191    fi
1192    cd $ac_popdir
1193  done
1194fi
1195
1196test -n "$ac_init_help" && exit 0
1197if $ac_init_version; then
1198  cat <<\_ACEOF
1199gpaint-2 configure 0.3.3
1200generated by GNU Autoconf 2.59
1201
1202Copyright (C) 2003 Free Software Foundation, Inc.
1203This configure script is free software; the Free Software Foundation
1204gives unlimited permission to copy, distribute and modify it.
1205_ACEOF
1206  exit 0
1207fi
1208exec 5>config.log
1209cat >&5 <<_ACEOF
1210This file contains any messages produced by compilers while
1211running configure, to aid debugging if configure makes a mistake.
1212
1213It was created by gpaint-2 $as_me 0.3.3, which was
1214generated by GNU Autoconf 2.59.  Invocation command line was
1215
1216  $ $0 $@
1217
1218_ACEOF
1219{
1220cat <<_ASUNAME
1221## --------- ##
1222## Platform. ##
1223## --------- ##
1224
1225hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1226uname -m = `(uname -m) 2>/dev/null || echo unknown`
1227uname -r = `(uname -r) 2>/dev/null || echo unknown`
1228uname -s = `(uname -s) 2>/dev/null || echo unknown`
1229uname -v = `(uname -v) 2>/dev/null || echo unknown`
1230
1231/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1232/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1233
1234/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1235/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1236/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1237hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1238/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1239/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1240/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1241
1242_ASUNAME
1243
1244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1245for as_dir in $PATH
1246do
1247  IFS=$as_save_IFS
1248  test -z "$as_dir" && as_dir=.
1249  echo "PATH: $as_dir"
1250done
1251
1252} >&5
1253
1254cat >&5 <<_ACEOF
1255
1256
1257## ----------- ##
1258## Core tests. ##
1259## ----------- ##
1260
1261_ACEOF
1262
1263
1264# Keep a trace of the command line.
1265# Strip out --no-create and --no-recursion so they do not pile up.
1266# Strip out --silent because we don't want to record it for future runs.
1267# Also quote any args containing shell meta-characters.
1268# Make two passes to allow for proper duplicate-argument suppression.
1269ac_configure_args=
1270ac_configure_args0=
1271ac_configure_args1=
1272ac_sep=
1273ac_must_keep_next=false
1274for ac_pass in 1 2
1275do
1276  for ac_arg
1277  do
1278    case $ac_arg in
1279    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1280    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1281    | -silent | --silent | --silen | --sile | --sil)
1282      continue ;;
1283    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1285    esac
1286    case $ac_pass in
1287    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1288    2)
1289      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1290      if test $ac_must_keep_next = true; then
1291	ac_must_keep_next=false # Got value, back to normal.
1292      else
1293	case $ac_arg in
1294	  *=* | --config-cache | -C | -disable-* | --disable-* \
1295	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1296	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1297	  | -with-* | --with-* | -without-* | --without-* | --x)
1298	    case "$ac_configure_args0 " in
1299	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1300	    esac
1301	    ;;
1302	  -* ) ac_must_keep_next=true ;;
1303	esac
1304      fi
1305      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1306      # Get rid of the leading space.
1307      ac_sep=" "
1308      ;;
1309    esac
1310  done
1311done
1312$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1313$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1314
1315# When interrupted or exit'd, cleanup temporary files, and complete
1316# config.log.  We remove comments because anyway the quotes in there
1317# would cause problems or look ugly.
1318# WARNING: Be sure not to use single quotes in there, as some shells,
1319# such as our DU 5.0 friend, will then `close' the trap.
1320trap 'exit_status=$?
1321  # Save into config.log some information that might help in debugging.
1322  {
1323    echo
1324
1325    cat <<\_ASBOX
1326## ---------------- ##
1327## Cache variables. ##
1328## ---------------- ##
1329_ASBOX
1330    echo
1331    # The following way of writing the cache mishandles newlines in values,
1332{
1333  (set) 2>&1 |
1334    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1335    *ac_space=\ *)
1336      sed -n \
1337	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1338	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1339      ;;
1340    *)
1341      sed -n \
1342	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1343      ;;
1344    esac;
1345}
1346    echo
1347
1348    cat <<\_ASBOX
1349## ----------------- ##
1350## Output variables. ##
1351## ----------------- ##
1352_ASBOX
1353    echo
1354    for ac_var in $ac_subst_vars
1355    do
1356      eval ac_val=$`echo $ac_var`
1357      echo "$ac_var='"'"'$ac_val'"'"'"
1358    done | sort
1359    echo
1360
1361    if test -n "$ac_subst_files"; then
1362      cat <<\_ASBOX
1363## ------------- ##
1364## Output files. ##
1365## ------------- ##
1366_ASBOX
1367      echo
1368      for ac_var in $ac_subst_files
1369      do
1370	eval ac_val=$`echo $ac_var`
1371	echo "$ac_var='"'"'$ac_val'"'"'"
1372      done | sort
1373      echo
1374    fi
1375
1376    if test -s confdefs.h; then
1377      cat <<\_ASBOX
1378## ----------- ##
1379## confdefs.h. ##
1380## ----------- ##
1381_ASBOX
1382      echo
1383      sed "/^$/d" confdefs.h | sort
1384      echo
1385    fi
1386    test "$ac_signal" != 0 &&
1387      echo "$as_me: caught signal $ac_signal"
1388    echo "$as_me: exit $exit_status"
1389  } >&5
1390  rm -f core *.core &&
1391  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1392    exit $exit_status
1393     ' 0
1394for ac_signal in 1 2 13 15; do
1395  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1396done
1397ac_signal=0
1398
1399# confdefs.h avoids OS command line length limits that DEFS can exceed.
1400rm -rf conftest* confdefs.h
1401# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1402echo >confdefs.h
1403
1404# Predefined preprocessor variables.
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_NAME "$PACKAGE_NAME"
1408_ACEOF
1409
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1413_ACEOF
1414
1415
1416cat >>confdefs.h <<_ACEOF
1417#define PACKAGE_VERSION "$PACKAGE_VERSION"
1418_ACEOF
1419
1420
1421cat >>confdefs.h <<_ACEOF
1422#define PACKAGE_STRING "$PACKAGE_STRING"
1423_ACEOF
1424
1425
1426cat >>confdefs.h <<_ACEOF
1427#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1428_ACEOF
1429
1430
1431# Let the site file select an alternate cache file if it wants to.
1432# Prefer explicitly selected file to automatically selected ones.
1433if test -z "$CONFIG_SITE"; then
1434  if test "x$prefix" != xNONE; then
1435    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1436  else
1437    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1438  fi
1439fi
1440for ac_site_file in $CONFIG_SITE; do
1441  if test -r "$ac_site_file"; then
1442    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1443echo "$as_me: loading site script $ac_site_file" >&6;}
1444    sed 's/^/| /' "$ac_site_file" >&5
1445    . "$ac_site_file"
1446  fi
1447done
1448
1449if test -r "$cache_file"; then
1450  # Some versions of bash will fail to source /dev/null (special
1451  # files actually), so we avoid doing that.
1452  if test -f "$cache_file"; then
1453    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1454echo "$as_me: loading cache $cache_file" >&6;}
1455    case $cache_file in
1456      [\\/]* | ?:[\\/]* ) . $cache_file;;
1457      *)                      . ./$cache_file;;
1458    esac
1459  fi
1460else
1461  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1462echo "$as_me: creating cache $cache_file" >&6;}
1463  >$cache_file
1464fi
1465
1466# Check that the precious variables saved in the cache have kept the same
1467# value.
1468ac_cache_corrupted=false
1469for ac_var in `(set) 2>&1 |
1470	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1471  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1472  eval ac_new_set=\$ac_env_${ac_var}_set
1473  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1474  eval ac_new_val="\$ac_env_${ac_var}_value"
1475  case $ac_old_set,$ac_new_set in
1476    set,)
1477      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1478echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1479      ac_cache_corrupted=: ;;
1480    ,set)
1481      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1482echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1483      ac_cache_corrupted=: ;;
1484    ,);;
1485    *)
1486      if test "x$ac_old_val" != "x$ac_new_val"; then
1487	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1488echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1489	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1490echo "$as_me:   former value:  $ac_old_val" >&2;}
1491	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1492echo "$as_me:   current value: $ac_new_val" >&2;}
1493	ac_cache_corrupted=:
1494      fi;;
1495  esac
1496  # Pass precious variables to config.status.
1497  if test "$ac_new_set" = set; then
1498    case $ac_new_val in
1499    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1500      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1501    *) ac_arg=$ac_var=$ac_new_val ;;
1502    esac
1503    case " $ac_configure_args " in
1504      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1505      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1506    esac
1507  fi
1508done
1509if $ac_cache_corrupted; then
1510  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1511echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1512  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1513echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1514   { (exit 1); exit 1; }; }
1515fi
1516
1517ac_ext=c
1518ac_cpp='$CPP $CPPFLAGS'
1519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1521ac_compiler_gnu=$ac_cv_c_compiler_gnu
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549am__api_version="1.4"
1550ac_aux_dir=
1551for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1552  if test -f $ac_dir/install-sh; then
1553    ac_aux_dir=$ac_dir
1554    ac_install_sh="$ac_aux_dir/install-sh -c"
1555    break
1556  elif test -f $ac_dir/install.sh; then
1557    ac_aux_dir=$ac_dir
1558    ac_install_sh="$ac_aux_dir/install.sh -c"
1559    break
1560  elif test -f $ac_dir/shtool; then
1561    ac_aux_dir=$ac_dir
1562    ac_install_sh="$ac_aux_dir/shtool install -c"
1563    break
1564  fi
1565done
1566if test -z "$ac_aux_dir"; then
1567  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1568echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1569   { (exit 1); exit 1; }; }
1570fi
1571ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1572ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1573ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1574
1575# Find a good install program.  We prefer a C program (faster),
1576# so one script is as good as another.  But avoid the broken or
1577# incompatible versions:
1578# SysV /etc/install, /usr/sbin/install
1579# SunOS /usr/etc/install
1580# IRIX /sbin/install
1581# AIX /bin/install
1582# AmigaOS /C/install, which installs bootblocks on floppy discs
1583# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1584# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1585# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1586# OS/2's system install, which has a completely different semantic
1587# ./install, which can be erroneously created by make from ./install.sh.
1588echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1589echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1590if test -z "$INSTALL"; then
1591if test "${ac_cv_path_install+set}" = set; then
1592  echo $ECHO_N "(cached) $ECHO_C" >&6
1593else
1594  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595for as_dir in $PATH
1596do
1597  IFS=$as_save_IFS
1598  test -z "$as_dir" && as_dir=.
1599  # Account for people who put trailing slashes in PATH elements.
1600case $as_dir/ in
1601  ./ | .// | /cC/* | \
1602  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1603  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1604  /usr/ucb/* ) ;;
1605  *)
1606    # OSF1 and SCO ODT 3.0 have their own names for install.
1607    # Don't use installbsd from OSF since it installs stuff as root
1608    # by default.
1609    for ac_prog in ginstall scoinst install; do
1610      for ac_exec_ext in '' $ac_executable_extensions; do
1611	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1612	  if test $ac_prog = install &&
1613	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1614	    # AIX install.  It has an incompatible calling convention.
1615	    :
1616	  elif test $ac_prog = install &&
1617	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1618	    # program-specific install script used by HP pwplus--don't use.
1619	    :
1620	  else
1621	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1622	    break 3
1623	  fi
1624	fi
1625      done
1626    done
1627    ;;
1628esac
1629done
1630
1631
1632fi
1633  if test "${ac_cv_path_install+set}" = set; then
1634    INSTALL=$ac_cv_path_install
1635  else
1636    # As a last resort, use the slow shell script.  We don't cache a
1637    # path for INSTALL within a source directory, because that will
1638    # break other packages using the cache if that directory is
1639    # removed, or if the path is relative.
1640    INSTALL=$ac_install_sh
1641  fi
1642fi
1643echo "$as_me:$LINENO: result: $INSTALL" >&5
1644echo "${ECHO_T}$INSTALL" >&6
1645
1646# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1647# It thinks the first close brace ends the variable substitution.
1648test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1649
1650test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1651
1652test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1653
1654echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1655echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1656# Just in case
1657sleep 1
1658echo timestamp > conftestfile
1659# Do `set' in a subshell so we don't clobber the current shell's
1660# arguments.  Must try -L first in case configure is actually a
1661# symlink; some systems play weird games with the mod time of symlinks
1662# (eg FreeBSD returns the mod time of the symlink's containing
1663# directory).
1664if (
1665   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1666   if test "$*" = "X"; then
1667      # -L didn't work.
1668      set X `ls -t $srcdir/configure conftestfile`
1669   fi
1670   if test "$*" != "X $srcdir/configure conftestfile" \
1671      && test "$*" != "X conftestfile $srcdir/configure"; then
1672
1673      # If neither matched, then we have a broken ls.  This can happen
1674      # if, for instance, CONFIG_SHELL is bash and it inherits a
1675      # broken ls alias from the environment.  This has actually
1676      # happened.  Such a system could not be considered "sane".
1677      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1678alias in your environment" >&5
1679echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1680alias in your environment" >&2;}
1681   { (exit 1); exit 1; }; }
1682   fi
1683
1684   test "$2" = conftestfile
1685   )
1686then
1687   # Ok.
1688   :
1689else
1690   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1691Check your system clock" >&5
1692echo "$as_me: error: newly created file is older than distributed files!
1693Check your system clock" >&2;}
1694   { (exit 1); exit 1; }; }
1695fi
1696rm -f conftest*
1697echo "$as_me:$LINENO: result: yes" >&5
1698echo "${ECHO_T}yes" >&6
1699test "$program_prefix" != NONE &&
1700  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1701# Use a double $ so make ignores it.
1702test "$program_suffix" != NONE &&
1703  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1704# Double any \ or $.  echo might interpret backslashes.
1705# By default was `s,x,x', remove it if useless.
1706cat <<\_ACEOF >conftest.sed
1707s/[\\$]/&&/g;s/;s,x,x,$//
1708_ACEOF
1709program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1710rm conftest.sed
1711
1712echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1713echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1714set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1715if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1716  echo $ECHO_N "(cached) $ECHO_C" >&6
1717else
1718  cat >conftest.make <<\_ACEOF
1719all:
1720	@echo 'ac_maketemp="$(MAKE)"'
1721_ACEOF
1722# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1723eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1724if test -n "$ac_maketemp"; then
1725  eval ac_cv_prog_make_${ac_make}_set=yes
1726else
1727  eval ac_cv_prog_make_${ac_make}_set=no
1728fi
1729rm -f conftest.make
1730fi
1731if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1732  echo "$as_me:$LINENO: result: yes" >&5
1733echo "${ECHO_T}yes" >&6
1734  SET_MAKE=
1735else
1736  echo "$as_me:$LINENO: result: no" >&5
1737echo "${ECHO_T}no" >&6
1738  SET_MAKE="MAKE=${MAKE-make}"
1739fi
1740
1741
1742PACKAGE=gpaint-2
1743
1744VERSION=0.3.3
1745
1746if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1747  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1748echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1749   { (exit 1); exit 1; }; }
1750fi
1751
1752cat >>confdefs.h <<_ACEOF
1753#define PACKAGE "$PACKAGE"
1754_ACEOF
1755
1756
1757cat >>confdefs.h <<_ACEOF
1758#define VERSION "$VERSION"
1759_ACEOF
1760
1761
1762
1763missing_dir=`cd $ac_aux_dir && pwd`
1764echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1765echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1766# Run test in a subshell; some versions of sh will print an error if
1767# an executable is not found, even if stderr is redirected.
1768# Redirect stdin to placate older versions of autoconf.  Sigh.
1769if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1770   ACLOCAL=aclocal-${am__api_version}
1771   echo "$as_me:$LINENO: result: found" >&5
1772echo "${ECHO_T}found" >&6
1773else
1774   ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1775   echo "$as_me:$LINENO: result: missing" >&5
1776echo "${ECHO_T}missing" >&6
1777fi
1778
1779echo "$as_me:$LINENO: checking for working autoconf" >&5
1780echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1781# Run test in a subshell; some versions of sh will print an error if
1782# an executable is not found, even if stderr is redirected.
1783# Redirect stdin to placate older versions of autoconf.  Sigh.
1784if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1785   AUTOCONF=autoconf
1786   echo "$as_me:$LINENO: result: found" >&5
1787echo "${ECHO_T}found" >&6
1788else
1789   AUTOCONF="$missing_dir/missing autoconf"
1790   echo "$as_me:$LINENO: result: missing" >&5
1791echo "${ECHO_T}missing" >&6
1792fi
1793
1794echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1795echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1796# Run test in a subshell; some versions of sh will print an error if
1797# an executable is not found, even if stderr is redirected.
1798# Redirect stdin to placate older versions of autoconf.  Sigh.
1799if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1800   AUTOMAKE=automake-${am__api_version}
1801   echo "$as_me:$LINENO: result: found" >&5
1802echo "${ECHO_T}found" >&6
1803else
1804   AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1805   echo "$as_me:$LINENO: result: missing" >&5
1806echo "${ECHO_T}missing" >&6
1807fi
1808
1809echo "$as_me:$LINENO: checking for working autoheader" >&5
1810echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1811# Run test in a subshell; some versions of sh will print an error if
1812# an executable is not found, even if stderr is redirected.
1813# Redirect stdin to placate older versions of autoconf.  Sigh.
1814if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1815   AUTOHEADER=autoheader
1816   echo "$as_me:$LINENO: result: found" >&5
1817echo "${ECHO_T}found" >&6
1818else
1819   AUTOHEADER="$missing_dir/missing autoheader"
1820   echo "$as_me:$LINENO: result: missing" >&5
1821echo "${ECHO_T}missing" >&6
1822fi
1823
1824echo "$as_me:$LINENO: checking for working makeinfo" >&5
1825echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1826# Run test in a subshell; some versions of sh will print an error if
1827# an executable is not found, even if stderr is redirected.
1828# Redirect stdin to placate older versions of autoconf.  Sigh.
1829if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1830   MAKEINFO=makeinfo
1831   echo "$as_me:$LINENO: result: found" >&5
1832echo "${ECHO_T}found" >&6
1833else
1834   MAKEINFO="$missing_dir/missing makeinfo"
1835   echo "$as_me:$LINENO: result: missing" >&5
1836echo "${ECHO_T}missing" >&6
1837fi
1838
1839
1840echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1841echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1842    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1843if test "${enable_maintainer_mode+set}" = set; then
1844  enableval="$enable_maintainer_mode"
1845  USE_MAINTAINER_MODE=$enableval
1846else
1847  USE_MAINTAINER_MODE=no
1848fi;
1849  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1850echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1851
1852
1853if test $USE_MAINTAINER_MODE = yes; then
1854  MAINTAINER_MODE_TRUE=
1855  MAINTAINER_MODE_FALSE='#'
1856else
1857  MAINTAINER_MODE_TRUE='#'
1858  MAINTAINER_MODE_FALSE=
1859fi
1860  MAINT=$MAINTAINER_MODE_TRUE
1861
1862
1863
1864ac_ext=c
1865ac_cpp='$CPP $CPPFLAGS'
1866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1868ac_compiler_gnu=$ac_cv_c_compiler_gnu
1869if test -n "$ac_tool_prefix"; then
1870  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1871set dummy ${ac_tool_prefix}gcc; ac_word=$2
1872echo "$as_me:$LINENO: checking for $ac_word" >&5
1873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874if test "${ac_cv_prog_CC+set}" = set; then
1875  echo $ECHO_N "(cached) $ECHO_C" >&6
1876else
1877  if test -n "$CC"; then
1878  ac_cv_prog_CC="$CC" # Let the user override the test.
1879else
1880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881for as_dir in $PATH
1882do
1883  IFS=$as_save_IFS
1884  test -z "$as_dir" && as_dir=.
1885  for ac_exec_ext in '' $ac_executable_extensions; do
1886  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1887    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1888    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889    break 2
1890  fi
1891done
1892done
1893
1894fi
1895fi
1896CC=$ac_cv_prog_CC
1897if test -n "$CC"; then
1898  echo "$as_me:$LINENO: result: $CC" >&5
1899echo "${ECHO_T}$CC" >&6
1900else
1901  echo "$as_me:$LINENO: result: no" >&5
1902echo "${ECHO_T}no" >&6
1903fi
1904
1905fi
1906if test -z "$ac_cv_prog_CC"; then
1907  ac_ct_CC=$CC
1908  # Extract the first word of "gcc", so it can be a program name with args.
1909set dummy gcc; ac_word=$2
1910echo "$as_me:$LINENO: checking for $ac_word" >&5
1911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1913  echo $ECHO_N "(cached) $ECHO_C" >&6
1914else
1915  if test -n "$ac_ct_CC"; then
1916  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1917else
1918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919for as_dir in $PATH
1920do
1921  IFS=$as_save_IFS
1922  test -z "$as_dir" && as_dir=.
1923  for ac_exec_ext in '' $ac_executable_extensions; do
1924  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925    ac_cv_prog_ac_ct_CC="gcc"
1926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927    break 2
1928  fi
1929done
1930done
1931
1932fi
1933fi
1934ac_ct_CC=$ac_cv_prog_ac_ct_CC
1935if test -n "$ac_ct_CC"; then
1936  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1937echo "${ECHO_T}$ac_ct_CC" >&6
1938else
1939  echo "$as_me:$LINENO: result: no" >&5
1940echo "${ECHO_T}no" >&6
1941fi
1942
1943  CC=$ac_ct_CC
1944else
1945  CC="$ac_cv_prog_CC"
1946fi
1947
1948if test -z "$CC"; then
1949  if test -n "$ac_tool_prefix"; then
1950  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1951set dummy ${ac_tool_prefix}cc; ac_word=$2
1952echo "$as_me:$LINENO: checking for $ac_word" >&5
1953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954if test "${ac_cv_prog_CC+set}" = set; then
1955  echo $ECHO_N "(cached) $ECHO_C" >&6
1956else
1957  if test -n "$CC"; then
1958  ac_cv_prog_CC="$CC" # Let the user override the test.
1959else
1960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961for as_dir in $PATH
1962do
1963  IFS=$as_save_IFS
1964  test -z "$as_dir" && as_dir=.
1965  for ac_exec_ext in '' $ac_executable_extensions; do
1966  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967    ac_cv_prog_CC="${ac_tool_prefix}cc"
1968    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969    break 2
1970  fi
1971done
1972done
1973
1974fi
1975fi
1976CC=$ac_cv_prog_CC
1977if test -n "$CC"; then
1978  echo "$as_me:$LINENO: result: $CC" >&5
1979echo "${ECHO_T}$CC" >&6
1980else
1981  echo "$as_me:$LINENO: result: no" >&5
1982echo "${ECHO_T}no" >&6
1983fi
1984
1985fi
1986if test -z "$ac_cv_prog_CC"; then
1987  ac_ct_CC=$CC
1988  # Extract the first word of "cc", so it can be a program name with args.
1989set dummy cc; ac_word=$2
1990echo "$as_me:$LINENO: checking for $ac_word" >&5
1991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1993  echo $ECHO_N "(cached) $ECHO_C" >&6
1994else
1995  if test -n "$ac_ct_CC"; then
1996  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1997else
1998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999for as_dir in $PATH
2000do
2001  IFS=$as_save_IFS
2002  test -z "$as_dir" && as_dir=.
2003  for ac_exec_ext in '' $ac_executable_extensions; do
2004  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005    ac_cv_prog_ac_ct_CC="cc"
2006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007    break 2
2008  fi
2009done
2010done
2011
2012fi
2013fi
2014ac_ct_CC=$ac_cv_prog_ac_ct_CC
2015if test -n "$ac_ct_CC"; then
2016  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2017echo "${ECHO_T}$ac_ct_CC" >&6
2018else
2019  echo "$as_me:$LINENO: result: no" >&5
2020echo "${ECHO_T}no" >&6
2021fi
2022
2023  CC=$ac_ct_CC
2024else
2025  CC="$ac_cv_prog_CC"
2026fi
2027
2028fi
2029if test -z "$CC"; then
2030  # Extract the first word of "cc", so it can be a program name with args.
2031set dummy cc; ac_word=$2
2032echo "$as_me:$LINENO: checking for $ac_word" >&5
2033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034if test "${ac_cv_prog_CC+set}" = set; then
2035  echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037  if test -n "$CC"; then
2038  ac_cv_prog_CC="$CC" # Let the user override the test.
2039else
2040  ac_prog_rejected=no
2041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042for as_dir in $PATH
2043do
2044  IFS=$as_save_IFS
2045  test -z "$as_dir" && as_dir=.
2046  for ac_exec_ext in '' $ac_executable_extensions; do
2047  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2049       ac_prog_rejected=yes
2050       continue
2051     fi
2052    ac_cv_prog_CC="cc"
2053    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054    break 2
2055  fi
2056done
2057done
2058
2059if test $ac_prog_rejected = yes; then
2060  # We found a bogon in the path, so make sure we never use it.
2061  set dummy $ac_cv_prog_CC
2062  shift
2063  if test $# != 0; then
2064    # We chose a different compiler from the bogus one.
2065    # However, it has the same basename, so the bogon will be chosen
2066    # first if we set CC to just the basename; use the full file name.
2067    shift
2068    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2069  fi
2070fi
2071fi
2072fi
2073CC=$ac_cv_prog_CC
2074if test -n "$CC"; then
2075  echo "$as_me:$LINENO: result: $CC" >&5
2076echo "${ECHO_T}$CC" >&6
2077else
2078  echo "$as_me:$LINENO: result: no" >&5
2079echo "${ECHO_T}no" >&6
2080fi
2081
2082fi
2083if test -z "$CC"; then
2084  if test -n "$ac_tool_prefix"; then
2085  for ac_prog in cl
2086  do
2087    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2088set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2089echo "$as_me:$LINENO: checking for $ac_word" >&5
2090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091if test "${ac_cv_prog_CC+set}" = set; then
2092  echo $ECHO_N "(cached) $ECHO_C" >&6
2093else
2094  if test -n "$CC"; then
2095  ac_cv_prog_CC="$CC" # Let the user override the test.
2096else
2097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098for as_dir in $PATH
2099do
2100  IFS=$as_save_IFS
2101  test -z "$as_dir" && as_dir=.
2102  for ac_exec_ext in '' $ac_executable_extensions; do
2103  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2104    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106    break 2
2107  fi
2108done
2109done
2110
2111fi
2112fi
2113CC=$ac_cv_prog_CC
2114if test -n "$CC"; then
2115  echo "$as_me:$LINENO: result: $CC" >&5
2116echo "${ECHO_T}$CC" >&6
2117else
2118  echo "$as_me:$LINENO: result: no" >&5
2119echo "${ECHO_T}no" >&6
2120fi
2121
2122    test -n "$CC" && break
2123  done
2124fi
2125if test -z "$CC"; then
2126  ac_ct_CC=$CC
2127  for ac_prog in cl
2128do
2129  # Extract the first word of "$ac_prog", so it can be a program name with args.
2130set dummy $ac_prog; ac_word=$2
2131echo "$as_me:$LINENO: checking for $ac_word" >&5
2132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2134  echo $ECHO_N "(cached) $ECHO_C" >&6
2135else
2136  if test -n "$ac_ct_CC"; then
2137  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2138else
2139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140for as_dir in $PATH
2141do
2142  IFS=$as_save_IFS
2143  test -z "$as_dir" && as_dir=.
2144  for ac_exec_ext in '' $ac_executable_extensions; do
2145  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146    ac_cv_prog_ac_ct_CC="$ac_prog"
2147    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148    break 2
2149  fi
2150done
2151done
2152
2153fi
2154fi
2155ac_ct_CC=$ac_cv_prog_ac_ct_CC
2156if test -n "$ac_ct_CC"; then
2157  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2158echo "${ECHO_T}$ac_ct_CC" >&6
2159else
2160  echo "$as_me:$LINENO: result: no" >&5
2161echo "${ECHO_T}no" >&6
2162fi
2163
2164  test -n "$ac_ct_CC" && break
2165done
2166
2167  CC=$ac_ct_CC
2168fi
2169
2170fi
2171
2172
2173test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2174See \`config.log' for more details." >&5
2175echo "$as_me: error: no acceptable C compiler found in \$PATH
2176See \`config.log' for more details." >&2;}
2177   { (exit 1); exit 1; }; }
2178
2179# Provide some information about the compiler.
2180echo "$as_me:$LINENO:" \
2181     "checking for C compiler version" >&5
2182ac_compiler=`set X $ac_compile; echo $2`
2183{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2184  (eval $ac_compiler --version </dev/null >&5) 2>&5
2185  ac_status=$?
2186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187  (exit $ac_status); }
2188{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2189  (eval $ac_compiler -v </dev/null >&5) 2>&5
2190  ac_status=$?
2191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192  (exit $ac_status); }
2193{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2194  (eval $ac_compiler -V </dev/null >&5) 2>&5
2195  ac_status=$?
2196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197  (exit $ac_status); }
2198
2199cat >conftest.$ac_ext <<_ACEOF
2200/* confdefs.h.  */
2201_ACEOF
2202cat confdefs.h >>conftest.$ac_ext
2203cat >>conftest.$ac_ext <<_ACEOF
2204/* end confdefs.h.  */
2205
2206int
2207main ()
2208{
2209
2210  ;
2211  return 0;
2212}
2213_ACEOF
2214ac_clean_files_save=$ac_clean_files
2215ac_clean_files="$ac_clean_files a.out a.exe b.out"
2216# Try to create an executable without -o first, disregard a.out.
2217# It will help us diagnose broken compilers, and finding out an intuition
2218# of exeext.
2219echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2220echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2221ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2222if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2223  (eval $ac_link_default) 2>&5
2224  ac_status=$?
2225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226  (exit $ac_status); }; then
2227  # Find the output, starting from the most likely.  This scheme is
2228# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2229# resort.
2230
2231# Be careful to initialize this variable, since it used to be cached.
2232# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2233ac_cv_exeext=
2234# b.out is created by i960 compilers.
2235for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2236do
2237  test -f "$ac_file" || continue
2238  case $ac_file in
2239    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2240	;;
2241    conftest.$ac_ext )
2242	# This is the source file.
2243	;;
2244    [ab].out )
2245	# We found the default executable, but exeext='' is most
2246	# certainly right.
2247	break;;
2248    *.* )
2249	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2250	# FIXME: I believe we export ac_cv_exeext for Libtool,
2251	# but it would be cool to find out if it's true.  Does anybody
2252	# maintain Libtool? --akim.
2253	export ac_cv_exeext
2254	break;;
2255    * )
2256	break;;
2257  esac
2258done
2259else
2260  echo "$as_me: failed program was:" >&5
2261sed 's/^/| /' conftest.$ac_ext >&5
2262
2263{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2264See \`config.log' for more details." >&5
2265echo "$as_me: error: C compiler cannot create executables
2266See \`config.log' for more details." >&2;}
2267   { (exit 77); exit 77; }; }
2268fi
2269
2270ac_exeext=$ac_cv_exeext
2271echo "$as_me:$LINENO: result: $ac_file" >&5
2272echo "${ECHO_T}$ac_file" >&6
2273
2274# Check the compiler produces executables we can run.  If not, either
2275# the compiler is broken, or we cross compile.
2276echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2277echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2278# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2279# If not cross compiling, check that we can run a simple program.
2280if test "$cross_compiling" != yes; then
2281  if { ac_try='./$ac_file'
2282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283  (eval $ac_try) 2>&5
2284  ac_status=$?
2285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286  (exit $ac_status); }; }; then
2287    cross_compiling=no
2288  else
2289    if test "$cross_compiling" = maybe; then
2290	cross_compiling=yes
2291    else
2292	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2293If you meant to cross compile, use \`--host'.
2294See \`config.log' for more details." >&5
2295echo "$as_me: error: cannot run C compiled programs.
2296If you meant to cross compile, use \`--host'.
2297See \`config.log' for more details." >&2;}
2298   { (exit 1); exit 1; }; }
2299    fi
2300  fi
2301fi
2302echo "$as_me:$LINENO: result: yes" >&5
2303echo "${ECHO_T}yes" >&6
2304
2305rm -f a.out a.exe conftest$ac_cv_exeext b.out
2306ac_clean_files=$ac_clean_files_save
2307# Check the compiler produces executables we can run.  If not, either
2308# the compiler is broken, or we cross compile.
2309echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2310echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2311echo "$as_me:$LINENO: result: $cross_compiling" >&5
2312echo "${ECHO_T}$cross_compiling" >&6
2313
2314echo "$as_me:$LINENO: checking for suffix of executables" >&5
2315echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2317  (eval $ac_link) 2>&5
2318  ac_status=$?
2319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320  (exit $ac_status); }; then
2321  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2322# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2323# work properly (i.e., refer to `conftest.exe'), while it won't with
2324# `rm'.
2325for ac_file in conftest.exe conftest conftest.*; do
2326  test -f "$ac_file" || continue
2327  case $ac_file in
2328    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2329    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2330	  export ac_cv_exeext
2331	  break;;
2332    * ) break;;
2333  esac
2334done
2335else
2336  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2337See \`config.log' for more details." >&5
2338echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2339See \`config.log' for more details." >&2;}
2340   { (exit 1); exit 1; }; }
2341fi
2342
2343rm -f conftest$ac_cv_exeext
2344echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2345echo "${ECHO_T}$ac_cv_exeext" >&6
2346
2347rm -f conftest.$ac_ext
2348EXEEXT=$ac_cv_exeext
2349ac_exeext=$EXEEXT
2350echo "$as_me:$LINENO: checking for suffix of object files" >&5
2351echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2352if test "${ac_cv_objext+set}" = set; then
2353  echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355  cat >conftest.$ac_ext <<_ACEOF
2356/* confdefs.h.  */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
2360/* end confdefs.h.  */
2361
2362int
2363main ()
2364{
2365
2366  ;
2367  return 0;
2368}
2369_ACEOF
2370rm -f conftest.o conftest.obj
2371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372  (eval $ac_compile) 2>&5
2373  ac_status=$?
2374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375  (exit $ac_status); }; then
2376  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2377  case $ac_file in
2378    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2379    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2380       break;;
2381  esac
2382done
2383else
2384  echo "$as_me: failed program was:" >&5
2385sed 's/^/| /' conftest.$ac_ext >&5
2386
2387{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2388See \`config.log' for more details." >&5
2389echo "$as_me: error: cannot compute suffix of object files: cannot compile
2390See \`config.log' for more details." >&2;}
2391   { (exit 1); exit 1; }; }
2392fi
2393
2394rm -f conftest.$ac_cv_objext conftest.$ac_ext
2395fi
2396echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2397echo "${ECHO_T}$ac_cv_objext" >&6
2398OBJEXT=$ac_cv_objext
2399ac_objext=$OBJEXT
2400echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2401echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2402if test "${ac_cv_c_compiler_gnu+set}" = set; then
2403  echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405  cat >conftest.$ac_ext <<_ACEOF
2406/* confdefs.h.  */
2407_ACEOF
2408cat confdefs.h >>conftest.$ac_ext
2409cat >>conftest.$ac_ext <<_ACEOF
2410/* end confdefs.h.  */
2411
2412int
2413main ()
2414{
2415#ifndef __GNUC__
2416       choke me
2417#endif
2418
2419  ;
2420  return 0;
2421}
2422_ACEOF
2423rm -f conftest.$ac_objext
2424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2425  (eval $ac_compile) 2>conftest.er1
2426  ac_status=$?
2427  grep -v '^ *+' conftest.er1 >conftest.err
2428  rm -f conftest.er1
2429  cat conftest.err >&5
2430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431  (exit $ac_status); } &&
2432	 { ac_try='test -z "$ac_c_werror_flag"
2433			 || test ! -s conftest.err'
2434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435  (eval $ac_try) 2>&5
2436  ac_status=$?
2437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438  (exit $ac_status); }; } &&
2439	 { ac_try='test -s conftest.$ac_objext'
2440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441  (eval $ac_try) 2>&5
2442  ac_status=$?
2443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444  (exit $ac_status); }; }; then
2445  ac_compiler_gnu=yes
2446else
2447  echo "$as_me: failed program was:" >&5
2448sed 's/^/| /' conftest.$ac_ext >&5
2449
2450ac_compiler_gnu=no
2451fi
2452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2453ac_cv_c_compiler_gnu=$ac_compiler_gnu
2454
2455fi
2456echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2457echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2458GCC=`test $ac_compiler_gnu = yes && echo yes`
2459ac_test_CFLAGS=${CFLAGS+set}
2460ac_save_CFLAGS=$CFLAGS
2461CFLAGS="-g"
2462echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2463echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2464if test "${ac_cv_prog_cc_g+set}" = set; then
2465  echo $ECHO_N "(cached) $ECHO_C" >&6
2466else
2467  cat >conftest.$ac_ext <<_ACEOF
2468/* confdefs.h.  */
2469_ACEOF
2470cat confdefs.h >>conftest.$ac_ext
2471cat >>conftest.$ac_ext <<_ACEOF
2472/* end confdefs.h.  */
2473
2474int
2475main ()
2476{
2477
2478  ;
2479  return 0;
2480}
2481_ACEOF
2482rm -f conftest.$ac_objext
2483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2484  (eval $ac_compile) 2>conftest.er1
2485  ac_status=$?
2486  grep -v '^ *+' conftest.er1 >conftest.err
2487  rm -f conftest.er1
2488  cat conftest.err >&5
2489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490  (exit $ac_status); } &&
2491	 { ac_try='test -z "$ac_c_werror_flag"
2492			 || test ! -s conftest.err'
2493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494  (eval $ac_try) 2>&5
2495  ac_status=$?
2496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497  (exit $ac_status); }; } &&
2498	 { ac_try='test -s conftest.$ac_objext'
2499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500  (eval $ac_try) 2>&5
2501  ac_status=$?
2502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503  (exit $ac_status); }; }; then
2504  ac_cv_prog_cc_g=yes
2505else
2506  echo "$as_me: failed program was:" >&5
2507sed 's/^/| /' conftest.$ac_ext >&5
2508
2509ac_cv_prog_cc_g=no
2510fi
2511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2512fi
2513echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2514echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2515if test "$ac_test_CFLAGS" = set; then
2516  CFLAGS=$ac_save_CFLAGS
2517elif test $ac_cv_prog_cc_g = yes; then
2518  if test "$GCC" = yes; then
2519    CFLAGS="-g -O2"
2520  else
2521    CFLAGS="-g"
2522  fi
2523else
2524  if test "$GCC" = yes; then
2525    CFLAGS="-O2"
2526  else
2527    CFLAGS=
2528  fi
2529fi
2530echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2531echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2532if test "${ac_cv_prog_cc_stdc+set}" = set; then
2533  echo $ECHO_N "(cached) $ECHO_C" >&6
2534else
2535  ac_cv_prog_cc_stdc=no
2536ac_save_CC=$CC
2537cat >conftest.$ac_ext <<_ACEOF
2538/* confdefs.h.  */
2539_ACEOF
2540cat confdefs.h >>conftest.$ac_ext
2541cat >>conftest.$ac_ext <<_ACEOF
2542/* end confdefs.h.  */
2543#include <stdarg.h>
2544#include <stdio.h>
2545#include <sys/types.h>
2546#include <sys/stat.h>
2547/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2548struct buf { int x; };
2549FILE * (*rcsopen) (struct buf *, struct stat *, int);
2550static char *e (p, i)
2551     char **p;
2552     int i;
2553{
2554  return p[i];
2555}
2556static char *f (char * (*g) (char **, int), char **p, ...)
2557{
2558  char *s;
2559  va_list v;
2560  va_start (v,p);
2561  s = g (p, va_arg (v,int));
2562  va_end (v);
2563  return s;
2564}
2565
2566/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2567   function prototypes and stuff, but not '\xHH' hex character constants.
2568   These don't provoke an error unfortunately, instead are silently treated
2569   as 'x'.  The following induces an error, until -std1 is added to get
2570   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2571   array size at least.  It's necessary to write '\x00'==0 to get something
2572   that's true only with -std1.  */
2573int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2574
2575int test (int i, double x);
2576struct s1 {int (*f) (int a);};
2577struct s2 {int (*f) (double a);};
2578int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2579int argc;
2580char **argv;
2581int
2582main ()
2583{
2584return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2585  ;
2586  return 0;
2587}
2588_ACEOF
2589# Don't try gcc -ansi; that turns off useful extensions and
2590# breaks some systems' header files.
2591# AIX			-qlanglvl=ansi
2592# Ultrix and OSF/1	-std1
2593# HP-UX 10.20 and later	-Ae
2594# HP-UX older versions	-Aa -D_HPUX_SOURCE
2595# SVR4			-Xc -D__EXTENSIONS__
2596for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2597do
2598  CC="$ac_save_CC $ac_arg"
2599  rm -f conftest.$ac_objext
2600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601  (eval $ac_compile) 2>conftest.er1
2602  ac_status=$?
2603  grep -v '^ *+' conftest.er1 >conftest.err
2604  rm -f conftest.er1
2605  cat conftest.err >&5
2606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607  (exit $ac_status); } &&
2608	 { ac_try='test -z "$ac_c_werror_flag"
2609			 || test ! -s conftest.err'
2610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611  (eval $ac_try) 2>&5
2612  ac_status=$?
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); }; } &&
2615	 { ac_try='test -s conftest.$ac_objext'
2616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617  (eval $ac_try) 2>&5
2618  ac_status=$?
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); }; }; then
2621  ac_cv_prog_cc_stdc=$ac_arg
2622break
2623else
2624  echo "$as_me: failed program was:" >&5
2625sed 's/^/| /' conftest.$ac_ext >&5
2626
2627fi
2628rm -f conftest.err conftest.$ac_objext
2629done
2630rm -f conftest.$ac_ext conftest.$ac_objext
2631CC=$ac_save_CC
2632
2633fi
2634
2635case "x$ac_cv_prog_cc_stdc" in
2636  x|xno)
2637    echo "$as_me:$LINENO: result: none needed" >&5
2638echo "${ECHO_T}none needed" >&6 ;;
2639  *)
2640    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2641echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2642    CC="$CC $ac_cv_prog_cc_stdc" ;;
2643esac
2644
2645# Some people use a C++ compiler to compile C.  Since we use `exit',
2646# in C++ we need to declare it.  In case someone uses the same compiler
2647# for both compiling C and C++ we need to have the C++ compiler decide
2648# the declaration of exit, since it's the most demanding environment.
2649cat >conftest.$ac_ext <<_ACEOF
2650#ifndef __cplusplus
2651  choke me
2652#endif
2653_ACEOF
2654rm -f conftest.$ac_objext
2655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656  (eval $ac_compile) 2>conftest.er1
2657  ac_status=$?
2658  grep -v '^ *+' conftest.er1 >conftest.err
2659  rm -f conftest.er1
2660  cat conftest.err >&5
2661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662  (exit $ac_status); } &&
2663	 { ac_try='test -z "$ac_c_werror_flag"
2664			 || test ! -s conftest.err'
2665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666  (eval $ac_try) 2>&5
2667  ac_status=$?
2668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669  (exit $ac_status); }; } &&
2670	 { ac_try='test -s conftest.$ac_objext'
2671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672  (eval $ac_try) 2>&5
2673  ac_status=$?
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); }; }; then
2676  for ac_declaration in \
2677   '' \
2678   'extern "C" void std::exit (int) throw (); using std::exit;' \
2679   'extern "C" void std::exit (int); using std::exit;' \
2680   'extern "C" void exit (int) throw ();' \
2681   'extern "C" void exit (int);' \
2682   'void exit (int);'
2683do
2684  cat >conftest.$ac_ext <<_ACEOF
2685/* confdefs.h.  */
2686_ACEOF
2687cat confdefs.h >>conftest.$ac_ext
2688cat >>conftest.$ac_ext <<_ACEOF
2689/* end confdefs.h.  */
2690$ac_declaration
2691#include <stdlib.h>
2692int
2693main ()
2694{
2695exit (42);
2696  ;
2697  return 0;
2698}
2699_ACEOF
2700rm -f conftest.$ac_objext
2701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702  (eval $ac_compile) 2>conftest.er1
2703  ac_status=$?
2704  grep -v '^ *+' conftest.er1 >conftest.err
2705  rm -f conftest.er1
2706  cat conftest.err >&5
2707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708  (exit $ac_status); } &&
2709	 { ac_try='test -z "$ac_c_werror_flag"
2710			 || test ! -s conftest.err'
2711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712  (eval $ac_try) 2>&5
2713  ac_status=$?
2714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715  (exit $ac_status); }; } &&
2716	 { ac_try='test -s conftest.$ac_objext'
2717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718  (eval $ac_try) 2>&5
2719  ac_status=$?
2720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721  (exit $ac_status); }; }; then
2722  :
2723else
2724  echo "$as_me: failed program was:" >&5
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
2727continue
2728fi
2729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730  cat >conftest.$ac_ext <<_ACEOF
2731/* confdefs.h.  */
2732_ACEOF
2733cat confdefs.h >>conftest.$ac_ext
2734cat >>conftest.$ac_ext <<_ACEOF
2735/* end confdefs.h.  */
2736$ac_declaration
2737int
2738main ()
2739{
2740exit (42);
2741  ;
2742  return 0;
2743}
2744_ACEOF
2745rm -f conftest.$ac_objext
2746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747  (eval $ac_compile) 2>conftest.er1
2748  ac_status=$?
2749  grep -v '^ *+' conftest.er1 >conftest.err
2750  rm -f conftest.er1
2751  cat conftest.err >&5
2752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); } &&
2754	 { ac_try='test -z "$ac_c_werror_flag"
2755			 || test ! -s conftest.err'
2756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757  (eval $ac_try) 2>&5
2758  ac_status=$?
2759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760  (exit $ac_status); }; } &&
2761	 { ac_try='test -s conftest.$ac_objext'
2762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763  (eval $ac_try) 2>&5
2764  ac_status=$?
2765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766  (exit $ac_status); }; }; then
2767  break
2768else
2769  echo "$as_me: failed program was:" >&5
2770sed 's/^/| /' conftest.$ac_ext >&5
2771
2772fi
2773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774done
2775rm -f conftest*
2776if test -n "$ac_declaration"; then
2777  echo '#ifdef __cplusplus' >>confdefs.h
2778  echo $ac_declaration      >>confdefs.h
2779  echo '#endif'             >>confdefs.h
2780fi
2781
2782else
2783  echo "$as_me: failed program was:" >&5
2784sed 's/^/| /' conftest.$ac_ext >&5
2785
2786fi
2787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2788ac_ext=c
2789ac_cpp='$CPP $CPPFLAGS'
2790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792ac_compiler_gnu=$ac_cv_c_compiler_gnu
2793
2794
2795echo "$as_me:$LINENO: checking for library containing strerror" >&5
2796echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2797if test "${ac_cv_search_strerror+set}" = set; then
2798  echo $ECHO_N "(cached) $ECHO_C" >&6
2799else
2800  ac_func_search_save_LIBS=$LIBS
2801ac_cv_search_strerror=no
2802cat >conftest.$ac_ext <<_ACEOF
2803/* confdefs.h.  */
2804_ACEOF
2805cat confdefs.h >>conftest.$ac_ext
2806cat >>conftest.$ac_ext <<_ACEOF
2807/* end confdefs.h.  */
2808
2809/* Override any gcc2 internal prototype to avoid an error.  */
2810#ifdef __cplusplus
2811extern "C"
2812#endif
2813/* We use char because int might match the return type of a gcc2
2814   builtin and then its argument prototype would still apply.  */
2815char strerror ();
2816int
2817main ()
2818{
2819strerror ();
2820  ;
2821  return 0;
2822}
2823_ACEOF
2824rm -f conftest.$ac_objext conftest$ac_exeext
2825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2826  (eval $ac_link) 2>conftest.er1
2827  ac_status=$?
2828  grep -v '^ *+' conftest.er1 >conftest.err
2829  rm -f conftest.er1
2830  cat conftest.err >&5
2831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832  (exit $ac_status); } &&
2833	 { ac_try='test -z "$ac_c_werror_flag"
2834			 || test ! -s conftest.err'
2835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836  (eval $ac_try) 2>&5
2837  ac_status=$?
2838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839  (exit $ac_status); }; } &&
2840	 { ac_try='test -s conftest$ac_exeext'
2841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842  (eval $ac_try) 2>&5
2843  ac_status=$?
2844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845  (exit $ac_status); }; }; then
2846  ac_cv_search_strerror="none required"
2847else
2848  echo "$as_me: failed program was:" >&5
2849sed 's/^/| /' conftest.$ac_ext >&5
2850
2851fi
2852rm -f conftest.err conftest.$ac_objext \
2853      conftest$ac_exeext conftest.$ac_ext
2854if test "$ac_cv_search_strerror" = no; then
2855  for ac_lib in cposix; do
2856    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2857    cat >conftest.$ac_ext <<_ACEOF
2858/* confdefs.h.  */
2859_ACEOF
2860cat confdefs.h >>conftest.$ac_ext
2861cat >>conftest.$ac_ext <<_ACEOF
2862/* end confdefs.h.  */
2863
2864/* Override any gcc2 internal prototype to avoid an error.  */
2865#ifdef __cplusplus
2866extern "C"
2867#endif
2868/* We use char because int might match the return type of a gcc2
2869   builtin and then its argument prototype would still apply.  */
2870char strerror ();
2871int
2872main ()
2873{
2874strerror ();
2875  ;
2876  return 0;
2877}
2878_ACEOF
2879rm -f conftest.$ac_objext conftest$ac_exeext
2880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2881  (eval $ac_link) 2>conftest.er1
2882  ac_status=$?
2883  grep -v '^ *+' conftest.er1 >conftest.err
2884  rm -f conftest.er1
2885  cat conftest.err >&5
2886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887  (exit $ac_status); } &&
2888	 { ac_try='test -z "$ac_c_werror_flag"
2889			 || test ! -s conftest.err'
2890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891  (eval $ac_try) 2>&5
2892  ac_status=$?
2893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894  (exit $ac_status); }; } &&
2895	 { ac_try='test -s conftest$ac_exeext'
2896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897  (eval $ac_try) 2>&5
2898  ac_status=$?
2899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900  (exit $ac_status); }; }; then
2901  ac_cv_search_strerror="-l$ac_lib"
2902break
2903else
2904  echo "$as_me: failed program was:" >&5
2905sed 's/^/| /' conftest.$ac_ext >&5
2906
2907fi
2908rm -f conftest.err conftest.$ac_objext \
2909      conftest$ac_exeext conftest.$ac_ext
2910  done
2911fi
2912LIBS=$ac_func_search_save_LIBS
2913fi
2914echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2915echo "${ECHO_T}$ac_cv_search_strerror" >&6
2916if test "$ac_cv_search_strerror" != no; then
2917  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2918
2919fi
2920
2921ac_ext=c
2922ac_cpp='$CPP $CPPFLAGS'
2923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926if test -n "$ac_tool_prefix"; then
2927  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2928set dummy ${ac_tool_prefix}gcc; ac_word=$2
2929echo "$as_me:$LINENO: checking for $ac_word" >&5
2930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2931if test "${ac_cv_prog_CC+set}" = set; then
2932  echo $ECHO_N "(cached) $ECHO_C" >&6
2933else
2934  if test -n "$CC"; then
2935  ac_cv_prog_CC="$CC" # Let the user override the test.
2936else
2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938for as_dir in $PATH
2939do
2940  IFS=$as_save_IFS
2941  test -z "$as_dir" && as_dir=.
2942  for ac_exec_ext in '' $ac_executable_extensions; do
2943  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2945    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946    break 2
2947  fi
2948done
2949done
2950
2951fi
2952fi
2953CC=$ac_cv_prog_CC
2954if test -n "$CC"; then
2955  echo "$as_me:$LINENO: result: $CC" >&5
2956echo "${ECHO_T}$CC" >&6
2957else
2958  echo "$as_me:$LINENO: result: no" >&5
2959echo "${ECHO_T}no" >&6
2960fi
2961
2962fi
2963if test -z "$ac_cv_prog_CC"; then
2964  ac_ct_CC=$CC
2965  # Extract the first word of "gcc", so it can be a program name with args.
2966set dummy gcc; ac_word=$2
2967echo "$as_me:$LINENO: checking for $ac_word" >&5
2968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2969if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2970  echo $ECHO_N "(cached) $ECHO_C" >&6
2971else
2972  if test -n "$ac_ct_CC"; then
2973  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2974else
2975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH
2977do
2978  IFS=$as_save_IFS
2979  test -z "$as_dir" && as_dir=.
2980  for ac_exec_ext in '' $ac_executable_extensions; do
2981  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982    ac_cv_prog_ac_ct_CC="gcc"
2983    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2984    break 2
2985  fi
2986done
2987done
2988
2989fi
2990fi
2991ac_ct_CC=$ac_cv_prog_ac_ct_CC
2992if test -n "$ac_ct_CC"; then
2993  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2994echo "${ECHO_T}$ac_ct_CC" >&6
2995else
2996  echo "$as_me:$LINENO: result: no" >&5
2997echo "${ECHO_T}no" >&6
2998fi
2999
3000  CC=$ac_ct_CC
3001else
3002  CC="$ac_cv_prog_CC"
3003fi
3004
3005if test -z "$CC"; then
3006  if test -n "$ac_tool_prefix"; then
3007  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3008set dummy ${ac_tool_prefix}cc; ac_word=$2
3009echo "$as_me:$LINENO: checking for $ac_word" >&5
3010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3011if test "${ac_cv_prog_CC+set}" = set; then
3012  echo $ECHO_N "(cached) $ECHO_C" >&6
3013else
3014  if test -n "$CC"; then
3015  ac_cv_prog_CC="$CC" # Let the user override the test.
3016else
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020  IFS=$as_save_IFS
3021  test -z "$as_dir" && as_dir=.
3022  for ac_exec_ext in '' $ac_executable_extensions; do
3023  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024    ac_cv_prog_CC="${ac_tool_prefix}cc"
3025    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026    break 2
3027  fi
3028done
3029done
3030
3031fi
3032fi
3033CC=$ac_cv_prog_CC
3034if test -n "$CC"; then
3035  echo "$as_me:$LINENO: result: $CC" >&5
3036echo "${ECHO_T}$CC" >&6
3037else
3038  echo "$as_me:$LINENO: result: no" >&5
3039echo "${ECHO_T}no" >&6
3040fi
3041
3042fi
3043if test -z "$ac_cv_prog_CC"; then
3044  ac_ct_CC=$CC
3045  # Extract the first word of "cc", so it can be a program name with args.
3046set dummy cc; ac_word=$2
3047echo "$as_me:$LINENO: checking for $ac_word" >&5
3048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3049if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3050  echo $ECHO_N "(cached) $ECHO_C" >&6
3051else
3052  if test -n "$ac_ct_CC"; then
3053  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3054else
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058  IFS=$as_save_IFS
3059  test -z "$as_dir" && as_dir=.
3060  for ac_exec_ext in '' $ac_executable_extensions; do
3061  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062    ac_cv_prog_ac_ct_CC="cc"
3063    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3064    break 2
3065  fi
3066done
3067done
3068
3069fi
3070fi
3071ac_ct_CC=$ac_cv_prog_ac_ct_CC
3072if test -n "$ac_ct_CC"; then
3073  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3074echo "${ECHO_T}$ac_ct_CC" >&6
3075else
3076  echo "$as_me:$LINENO: result: no" >&5
3077echo "${ECHO_T}no" >&6
3078fi
3079
3080  CC=$ac_ct_CC
3081else
3082  CC="$ac_cv_prog_CC"
3083fi
3084
3085fi
3086if test -z "$CC"; then
3087  # Extract the first word of "cc", so it can be a program name with args.
3088set dummy cc; ac_word=$2
3089echo "$as_me:$LINENO: checking for $ac_word" >&5
3090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3091if test "${ac_cv_prog_CC+set}" = set; then
3092  echo $ECHO_N "(cached) $ECHO_C" >&6
3093else
3094  if test -n "$CC"; then
3095  ac_cv_prog_CC="$CC" # Let the user override the test.
3096else
3097  ac_prog_rejected=no
3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099for as_dir in $PATH
3100do
3101  IFS=$as_save_IFS
3102  test -z "$as_dir" && as_dir=.
3103  for ac_exec_ext in '' $ac_executable_extensions; do
3104  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3106       ac_prog_rejected=yes
3107       continue
3108     fi
3109    ac_cv_prog_CC="cc"
3110    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3111    break 2
3112  fi
3113done
3114done
3115
3116if test $ac_prog_rejected = yes; then
3117  # We found a bogon in the path, so make sure we never use it.
3118  set dummy $ac_cv_prog_CC
3119  shift
3120  if test $# != 0; then
3121    # We chose a different compiler from the bogus one.
3122    # However, it has the same basename, so the bogon will be chosen
3123    # first if we set CC to just the basename; use the full file name.
3124    shift
3125    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3126  fi
3127fi
3128fi
3129fi
3130CC=$ac_cv_prog_CC
3131if test -n "$CC"; then
3132  echo "$as_me:$LINENO: result: $CC" >&5
3133echo "${ECHO_T}$CC" >&6
3134else
3135  echo "$as_me:$LINENO: result: no" >&5
3136echo "${ECHO_T}no" >&6
3137fi
3138
3139fi
3140if test -z "$CC"; then
3141  if test -n "$ac_tool_prefix"; then
3142  for ac_prog in cl
3143  do
3144    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3145set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3146echo "$as_me:$LINENO: checking for $ac_word" >&5
3147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148if test "${ac_cv_prog_CC+set}" = set; then
3149  echo $ECHO_N "(cached) $ECHO_C" >&6
3150else
3151  if test -n "$CC"; then
3152  ac_cv_prog_CC="$CC" # Let the user override the test.
3153else
3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155for as_dir in $PATH
3156do
3157  IFS=$as_save_IFS
3158  test -z "$as_dir" && as_dir=.
3159  for ac_exec_ext in '' $ac_executable_extensions; do
3160  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163    break 2
3164  fi
3165done
3166done
3167
3168fi
3169fi
3170CC=$ac_cv_prog_CC
3171if test -n "$CC"; then
3172  echo "$as_me:$LINENO: result: $CC" >&5
3173echo "${ECHO_T}$CC" >&6
3174else
3175  echo "$as_me:$LINENO: result: no" >&5
3176echo "${ECHO_T}no" >&6
3177fi
3178
3179    test -n "$CC" && break
3180  done
3181fi
3182if test -z "$CC"; then
3183  ac_ct_CC=$CC
3184  for ac_prog in cl
3185do
3186  # Extract the first word of "$ac_prog", so it can be a program name with args.
3187set dummy $ac_prog; ac_word=$2
3188echo "$as_me:$LINENO: checking for $ac_word" >&5
3189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3191  echo $ECHO_N "(cached) $ECHO_C" >&6
3192else
3193  if test -n "$ac_ct_CC"; then
3194  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3195else
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199  IFS=$as_save_IFS
3200  test -z "$as_dir" && as_dir=.
3201  for ac_exec_ext in '' $ac_executable_extensions; do
3202  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203    ac_cv_prog_ac_ct_CC="$ac_prog"
3204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205    break 2
3206  fi
3207done
3208done
3209
3210fi
3211fi
3212ac_ct_CC=$ac_cv_prog_ac_ct_CC
3213if test -n "$ac_ct_CC"; then
3214  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3215echo "${ECHO_T}$ac_ct_CC" >&6
3216else
3217  echo "$as_me:$LINENO: result: no" >&5
3218echo "${ECHO_T}no" >&6
3219fi
3220
3221  test -n "$ac_ct_CC" && break
3222done
3223
3224  CC=$ac_ct_CC
3225fi
3226
3227fi
3228
3229
3230test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3231See \`config.log' for more details." >&5
3232echo "$as_me: error: no acceptable C compiler found in \$PATH
3233See \`config.log' for more details." >&2;}
3234   { (exit 1); exit 1; }; }
3235
3236# Provide some information about the compiler.
3237echo "$as_me:$LINENO:" \
3238     "checking for C compiler version" >&5
3239ac_compiler=`set X $ac_compile; echo $2`
3240{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3241  (eval $ac_compiler --version </dev/null >&5) 2>&5
3242  ac_status=$?
3243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244  (exit $ac_status); }
3245{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3246  (eval $ac_compiler -v </dev/null >&5) 2>&5
3247  ac_status=$?
3248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249  (exit $ac_status); }
3250{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3251  (eval $ac_compiler -V </dev/null >&5) 2>&5
3252  ac_status=$?
3253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254  (exit $ac_status); }
3255
3256echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3257echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3258if test "${ac_cv_c_compiler_gnu+set}" = set; then
3259  echo $ECHO_N "(cached) $ECHO_C" >&6
3260else
3261  cat >conftest.$ac_ext <<_ACEOF
3262/* confdefs.h.  */
3263_ACEOF
3264cat confdefs.h >>conftest.$ac_ext
3265cat >>conftest.$ac_ext <<_ACEOF
3266/* end confdefs.h.  */
3267
3268int
3269main ()
3270{
3271#ifndef __GNUC__
3272       choke me
3273#endif
3274
3275  ;
3276  return 0;
3277}
3278_ACEOF
3279rm -f conftest.$ac_objext
3280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3281  (eval $ac_compile) 2>conftest.er1
3282  ac_status=$?
3283  grep -v '^ *+' conftest.er1 >conftest.err
3284  rm -f conftest.er1
3285  cat conftest.err >&5
3286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287  (exit $ac_status); } &&
3288	 { ac_try='test -z "$ac_c_werror_flag"
3289			 || test ! -s conftest.err'
3290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291  (eval $ac_try) 2>&5
3292  ac_status=$?
3293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294  (exit $ac_status); }; } &&
3295	 { ac_try='test -s conftest.$ac_objext'
3296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297  (eval $ac_try) 2>&5
3298  ac_status=$?
3299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300  (exit $ac_status); }; }; then
3301  ac_compiler_gnu=yes
3302else
3303  echo "$as_me: failed program was:" >&5
3304sed 's/^/| /' conftest.$ac_ext >&5
3305
3306ac_compiler_gnu=no
3307fi
3308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3309ac_cv_c_compiler_gnu=$ac_compiler_gnu
3310
3311fi
3312echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3313echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3314GCC=`test $ac_compiler_gnu = yes && echo yes`
3315ac_test_CFLAGS=${CFLAGS+set}
3316ac_save_CFLAGS=$CFLAGS
3317CFLAGS="-g"
3318echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3319echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3320if test "${ac_cv_prog_cc_g+set}" = set; then
3321  echo $ECHO_N "(cached) $ECHO_C" >&6
3322else
3323  cat >conftest.$ac_ext <<_ACEOF
3324/* confdefs.h.  */
3325_ACEOF
3326cat confdefs.h >>conftest.$ac_ext
3327cat >>conftest.$ac_ext <<_ACEOF
3328/* end confdefs.h.  */
3329
3330int
3331main ()
3332{
3333
3334  ;
3335  return 0;
3336}
3337_ACEOF
3338rm -f conftest.$ac_objext
3339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3340  (eval $ac_compile) 2>conftest.er1
3341  ac_status=$?
3342  grep -v '^ *+' conftest.er1 >conftest.err
3343  rm -f conftest.er1
3344  cat conftest.err >&5
3345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346  (exit $ac_status); } &&
3347	 { ac_try='test -z "$ac_c_werror_flag"
3348			 || test ! -s conftest.err'
3349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350  (eval $ac_try) 2>&5
3351  ac_status=$?
3352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353  (exit $ac_status); }; } &&
3354	 { ac_try='test -s conftest.$ac_objext'
3355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356  (eval $ac_try) 2>&5
3357  ac_status=$?
3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359  (exit $ac_status); }; }; then
3360  ac_cv_prog_cc_g=yes
3361else
3362  echo "$as_me: failed program was:" >&5
3363sed 's/^/| /' conftest.$ac_ext >&5
3364
3365ac_cv_prog_cc_g=no
3366fi
3367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3368fi
3369echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3370echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3371if test "$ac_test_CFLAGS" = set; then
3372  CFLAGS=$ac_save_CFLAGS
3373elif test $ac_cv_prog_cc_g = yes; then
3374  if test "$GCC" = yes; then
3375    CFLAGS="-g -O2"
3376  else
3377    CFLAGS="-g"
3378  fi
3379else
3380  if test "$GCC" = yes; then
3381    CFLAGS="-O2"
3382  else
3383    CFLAGS=
3384  fi
3385fi
3386echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3387echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3388if test "${ac_cv_prog_cc_stdc+set}" = set; then
3389  echo $ECHO_N "(cached) $ECHO_C" >&6
3390else
3391  ac_cv_prog_cc_stdc=no
3392ac_save_CC=$CC
3393cat >conftest.$ac_ext <<_ACEOF
3394/* confdefs.h.  */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
3398/* end confdefs.h.  */
3399#include <stdarg.h>
3400#include <stdio.h>
3401#include <sys/types.h>
3402#include <sys/stat.h>
3403/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3404struct buf { int x; };
3405FILE * (*rcsopen) (struct buf *, struct stat *, int);
3406static char *e (p, i)
3407     char **p;
3408     int i;
3409{
3410  return p[i];
3411}
3412static char *f (char * (*g) (char **, int), char **p, ...)
3413{
3414  char *s;
3415  va_list v;
3416  va_start (v,p);
3417  s = g (p, va_arg (v,int));
3418  va_end (v);
3419  return s;
3420}
3421
3422/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3423   function prototypes and stuff, but not '\xHH' hex character constants.
3424   These don't provoke an error unfortunately, instead are silently treated
3425   as 'x'.  The following induces an error, until -std1 is added to get
3426   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3427   array size at least.  It's necessary to write '\x00'==0 to get something
3428   that's true only with -std1.  */
3429int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3430
3431int test (int i, double x);
3432struct s1 {int (*f) (int a);};
3433struct s2 {int (*f) (double a);};
3434int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3435int argc;
3436char **argv;
3437int
3438main ()
3439{
3440return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3441  ;
3442  return 0;
3443}
3444_ACEOF
3445# Don't try gcc -ansi; that turns off useful extensions and
3446# breaks some systems' header files.
3447# AIX			-qlanglvl=ansi
3448# Ultrix and OSF/1	-std1
3449# HP-UX 10.20 and later	-Ae
3450# HP-UX older versions	-Aa -D_HPUX_SOURCE
3451# SVR4			-Xc -D__EXTENSIONS__
3452for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3453do
3454  CC="$ac_save_CC $ac_arg"
3455  rm -f conftest.$ac_objext
3456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3457  (eval $ac_compile) 2>conftest.er1
3458  ac_status=$?
3459  grep -v '^ *+' conftest.er1 >conftest.err
3460  rm -f conftest.er1
3461  cat conftest.err >&5
3462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463  (exit $ac_status); } &&
3464	 { ac_try='test -z "$ac_c_werror_flag"
3465			 || test ! -s conftest.err'
3466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467  (eval $ac_try) 2>&5
3468  ac_status=$?
3469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470  (exit $ac_status); }; } &&
3471	 { ac_try='test -s conftest.$ac_objext'
3472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473  (eval $ac_try) 2>&5
3474  ac_status=$?
3475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476  (exit $ac_status); }; }; then
3477  ac_cv_prog_cc_stdc=$ac_arg
3478break
3479else
3480  echo "$as_me: failed program was:" >&5
3481sed 's/^/| /' conftest.$ac_ext >&5
3482
3483fi
3484rm -f conftest.err conftest.$ac_objext
3485done
3486rm -f conftest.$ac_ext conftest.$ac_objext
3487CC=$ac_save_CC
3488
3489fi
3490
3491case "x$ac_cv_prog_cc_stdc" in
3492  x|xno)
3493    echo "$as_me:$LINENO: result: none needed" >&5
3494echo "${ECHO_T}none needed" >&6 ;;
3495  *)
3496    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3497echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3498    CC="$CC $ac_cv_prog_cc_stdc" ;;
3499esac
3500
3501# Some people use a C++ compiler to compile C.  Since we use `exit',
3502# in C++ we need to declare it.  In case someone uses the same compiler
3503# for both compiling C and C++ we need to have the C++ compiler decide
3504# the declaration of exit, since it's the most demanding environment.
3505cat >conftest.$ac_ext <<_ACEOF
3506#ifndef __cplusplus
3507  choke me
3508#endif
3509_ACEOF
3510rm -f conftest.$ac_objext
3511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3512  (eval $ac_compile) 2>conftest.er1
3513  ac_status=$?
3514  grep -v '^ *+' conftest.er1 >conftest.err
3515  rm -f conftest.er1
3516  cat conftest.err >&5
3517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518  (exit $ac_status); } &&
3519	 { ac_try='test -z "$ac_c_werror_flag"
3520			 || test ! -s conftest.err'
3521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522  (eval $ac_try) 2>&5
3523  ac_status=$?
3524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525  (exit $ac_status); }; } &&
3526	 { ac_try='test -s conftest.$ac_objext'
3527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528  (eval $ac_try) 2>&5
3529  ac_status=$?
3530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531  (exit $ac_status); }; }; then
3532  for ac_declaration in \
3533   '' \
3534   'extern "C" void std::exit (int) throw (); using std::exit;' \
3535   'extern "C" void std::exit (int); using std::exit;' \
3536   'extern "C" void exit (int) throw ();' \
3537   'extern "C" void exit (int);' \
3538   'void exit (int);'
3539do
3540  cat >conftest.$ac_ext <<_ACEOF
3541/* confdefs.h.  */
3542_ACEOF
3543cat confdefs.h >>conftest.$ac_ext
3544cat >>conftest.$ac_ext <<_ACEOF
3545/* end confdefs.h.  */
3546$ac_declaration
3547#include <stdlib.h>
3548int
3549main ()
3550{
3551exit (42);
3552  ;
3553  return 0;
3554}
3555_ACEOF
3556rm -f conftest.$ac_objext
3557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558  (eval $ac_compile) 2>conftest.er1
3559  ac_status=$?
3560  grep -v '^ *+' conftest.er1 >conftest.err
3561  rm -f conftest.er1
3562  cat conftest.err >&5
3563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564  (exit $ac_status); } &&
3565	 { ac_try='test -z "$ac_c_werror_flag"
3566			 || test ! -s conftest.err'
3567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568  (eval $ac_try) 2>&5
3569  ac_status=$?
3570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571  (exit $ac_status); }; } &&
3572	 { ac_try='test -s conftest.$ac_objext'
3573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574  (eval $ac_try) 2>&5
3575  ac_status=$?
3576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577  (exit $ac_status); }; }; then
3578  :
3579else
3580  echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583continue
3584fi
3585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3586  cat >conftest.$ac_ext <<_ACEOF
3587/* confdefs.h.  */
3588_ACEOF
3589cat confdefs.h >>conftest.$ac_ext
3590cat >>conftest.$ac_ext <<_ACEOF
3591/* end confdefs.h.  */
3592$ac_declaration
3593int
3594main ()
3595{
3596exit (42);
3597  ;
3598  return 0;
3599}
3600_ACEOF
3601rm -f conftest.$ac_objext
3602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603  (eval $ac_compile) 2>conftest.er1
3604  ac_status=$?
3605  grep -v '^ *+' conftest.er1 >conftest.err
3606  rm -f conftest.er1
3607  cat conftest.err >&5
3608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609  (exit $ac_status); } &&
3610	 { ac_try='test -z "$ac_c_werror_flag"
3611			 || test ! -s conftest.err'
3612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613  (eval $ac_try) 2>&5
3614  ac_status=$?
3615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616  (exit $ac_status); }; } &&
3617	 { ac_try='test -s conftest.$ac_objext'
3618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619  (eval $ac_try) 2>&5
3620  ac_status=$?
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); }; }; then
3623  break
3624else
3625  echo "$as_me: failed program was:" >&5
3626sed 's/^/| /' conftest.$ac_ext >&5
3627
3628fi
3629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3630done
3631rm -f conftest*
3632if test -n "$ac_declaration"; then
3633  echo '#ifdef __cplusplus' >>confdefs.h
3634  echo $ac_declaration      >>confdefs.h
3635  echo '#endif'             >>confdefs.h
3636fi
3637
3638else
3639  echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642fi
3643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3644ac_ext=c
3645ac_cpp='$CPP $CPPFLAGS'
3646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649
3650# Check whether --enable-shared or --disable-shared was given.
3651if test "${enable_shared+set}" = set; then
3652  enableval="$enable_shared"
3653  p=${PACKAGE-default}
3654    case $enableval in
3655    yes) enable_shared=yes ;;
3656    no) enable_shared=no ;;
3657    *)
3658      enable_shared=no
3659      # Look at the argument we got.  We use all the common list separators.
3660      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3661      for pkg in $enableval; do
3662	IFS="$lt_save_ifs"
3663	if test "X$pkg" = "X$p"; then
3664	  enable_shared=yes
3665	fi
3666      done
3667      IFS="$lt_save_ifs"
3668      ;;
3669    esac
3670else
3671  enable_shared=yes
3672fi;
3673
3674# Check whether --enable-static or --disable-static was given.
3675if test "${enable_static+set}" = set; then
3676  enableval="$enable_static"
3677  p=${PACKAGE-default}
3678    case $enableval in
3679    yes) enable_static=yes ;;
3680    no) enable_static=no ;;
3681    *)
3682     enable_static=no
3683      # Look at the argument we got.  We use all the common list separators.
3684      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3685      for pkg in $enableval; do
3686	IFS="$lt_save_ifs"
3687	if test "X$pkg" = "X$p"; then
3688	  enable_static=yes
3689	fi
3690      done
3691      IFS="$lt_save_ifs"
3692      ;;
3693    esac
3694else
3695  enable_static=yes
3696fi;
3697
3698# Check whether --enable-fast-install or --disable-fast-install was given.
3699if test "${enable_fast_install+set}" = set; then
3700  enableval="$enable_fast_install"
3701  p=${PACKAGE-default}
3702    case $enableval in
3703    yes) enable_fast_install=yes ;;
3704    no) enable_fast_install=no ;;
3705    *)
3706      enable_fast_install=no
3707      # Look at the argument we got.  We use all the common list separators.
3708      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3709      for pkg in $enableval; do
3710	IFS="$lt_save_ifs"
3711	if test "X$pkg" = "X$p"; then
3712	  enable_fast_install=yes
3713	fi
3714      done
3715      IFS="$lt_save_ifs"
3716      ;;
3717    esac
3718else
3719  enable_fast_install=yes
3720fi;
3721
3722# Make sure we can run config.sub.
3723$ac_config_sub sun4 >/dev/null 2>&1 ||
3724  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3725echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3726   { (exit 1); exit 1; }; }
3727
3728echo "$as_me:$LINENO: checking build system type" >&5
3729echo $ECHO_N "checking build system type... $ECHO_C" >&6
3730if test "${ac_cv_build+set}" = set; then
3731  echo $ECHO_N "(cached) $ECHO_C" >&6
3732else
3733  ac_cv_build_alias=$build_alias
3734test -z "$ac_cv_build_alias" &&
3735  ac_cv_build_alias=`$ac_config_guess`
3736test -z "$ac_cv_build_alias" &&
3737  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3738echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3739   { (exit 1); exit 1; }; }
3740ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3741  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3742echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3743   { (exit 1); exit 1; }; }
3744
3745fi
3746echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3747echo "${ECHO_T}$ac_cv_build" >&6
3748build=$ac_cv_build
3749build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3750build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3751build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3752
3753
3754echo "$as_me:$LINENO: checking host system type" >&5
3755echo $ECHO_N "checking host system type... $ECHO_C" >&6
3756if test "${ac_cv_host+set}" = set; then
3757  echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759  ac_cv_host_alias=$host_alias
3760test -z "$ac_cv_host_alias" &&
3761  ac_cv_host_alias=$ac_cv_build_alias
3762ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3763  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3764echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3765   { (exit 1); exit 1; }; }
3766
3767fi
3768echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3769echo "${ECHO_T}$ac_cv_host" >&6
3770host=$ac_cv_host
3771host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3772host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3773host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3774
3775
3776echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3777echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3778if test "${lt_cv_path_SED+set}" = set; then
3779  echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781  # Loop through the user's path and test for sed and gsed.
3782# Then use that list of sed's as ones to test for truncation.
3783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784for as_dir in $PATH
3785do
3786  IFS=$as_save_IFS
3787  test -z "$as_dir" && as_dir=.
3788  for lt_ac_prog in sed gsed; do
3789    for ac_exec_ext in '' $ac_executable_extensions; do
3790      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3791        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3792      fi
3793    done
3794  done
3795done
3796lt_ac_max=0
3797lt_ac_count=0
3798# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3799# along with /bin/sed that truncates output.
3800for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3801  test ! -f $lt_ac_sed && continue
3802  cat /dev/null > conftest.in
3803  lt_ac_count=0
3804  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3805  # Check for GNU sed and select it if it is found.
3806  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3807    lt_cv_path_SED=$lt_ac_sed
3808    break
3809  fi
3810  while true; do
3811    cat conftest.in conftest.in >conftest.tmp
3812    mv conftest.tmp conftest.in
3813    cp conftest.in conftest.nl
3814    echo >>conftest.nl
3815    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3816    cmp -s conftest.out conftest.nl || break
3817    # 10000 chars as input seems more than enough
3818    test $lt_ac_count -gt 10 && break
3819    lt_ac_count=`expr $lt_ac_count + 1`
3820    if test $lt_ac_count -gt $lt_ac_max; then
3821      lt_ac_max=$lt_ac_count
3822      lt_cv_path_SED=$lt_ac_sed
3823    fi
3824  done
3825done
3826
3827fi
3828
3829SED=$lt_cv_path_SED
3830echo "$as_me:$LINENO: result: $SED" >&5
3831echo "${ECHO_T}$SED" >&6
3832
3833echo "$as_me:$LINENO: checking for egrep" >&5
3834echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3835if test "${ac_cv_prog_egrep+set}" = set; then
3836  echo $ECHO_N "(cached) $ECHO_C" >&6
3837else
3838  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3839    then ac_cv_prog_egrep='grep -E'
3840    else ac_cv_prog_egrep='egrep'
3841    fi
3842fi
3843echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3844echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3845 EGREP=$ac_cv_prog_egrep
3846
3847
3848
3849# Check whether --with-gnu-ld or --without-gnu-ld was given.
3850if test "${with_gnu_ld+set}" = set; then
3851  withval="$with_gnu_ld"
3852  test "$withval" = no || with_gnu_ld=yes
3853else
3854  with_gnu_ld=no
3855fi;
3856ac_prog=ld
3857if test "$GCC" = yes; then
3858  # Check if gcc -print-prog-name=ld gives a path.
3859  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3860echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3861  case $host in
3862  *-*-mingw*)
3863    # gcc leaves a trailing carriage return which upsets mingw
3864    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3865  *)
3866    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3867  esac
3868  case $ac_prog in
3869    # Accept absolute paths.
3870    [\\/]* | ?:[\\/]*)
3871      re_direlt='/[^/][^/]*/\.\./'
3872      # Canonicalize the pathname of ld
3873      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3874      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3875	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3876      done
3877      test -z "$LD" && LD="$ac_prog"
3878      ;;
3879  "")
3880    # If it fails, then pretend we aren't using GCC.
3881    ac_prog=ld
3882    ;;
3883  *)
3884    # If it is relative, then search for the first ld in PATH.
3885    with_gnu_ld=unknown
3886    ;;
3887  esac
3888elif test "$with_gnu_ld" = yes; then
3889  echo "$as_me:$LINENO: checking for GNU ld" >&5
3890echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3891else
3892  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3893echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3894fi
3895if test "${lt_cv_path_LD+set}" = set; then
3896  echo $ECHO_N "(cached) $ECHO_C" >&6
3897else
3898  if test -z "$LD"; then
3899  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3900  for ac_dir in $PATH; do
3901    IFS="$lt_save_ifs"
3902    test -z "$ac_dir" && ac_dir=.
3903    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3904      lt_cv_path_LD="$ac_dir/$ac_prog"
3905      # Check to see if the program is GNU ld.  I'd rather use --version,
3906      # but apparently some variants of GNU ld only accept -v.
3907      # Break only if it was the GNU/non-GNU ld that we prefer.
3908      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3909      *GNU* | *'with BFD'*)
3910	test "$with_gnu_ld" != no && break
3911	;;
3912      *)
3913	test "$with_gnu_ld" != yes && break
3914	;;
3915      esac
3916    fi
3917  done
3918  IFS="$lt_save_ifs"
3919else
3920  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3921fi
3922fi
3923
3924LD="$lt_cv_path_LD"
3925if test -n "$LD"; then
3926  echo "$as_me:$LINENO: result: $LD" >&5
3927echo "${ECHO_T}$LD" >&6
3928else
3929  echo "$as_me:$LINENO: result: no" >&5
3930echo "${ECHO_T}no" >&6
3931fi
3932test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3933echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3934   { (exit 1); exit 1; }; }
3935echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3936echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3937if test "${lt_cv_prog_gnu_ld+set}" = set; then
3938  echo $ECHO_N "(cached) $ECHO_C" >&6
3939else
3940  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3941case `$LD -v 2>&1 </dev/null` in
3942*GNU* | *'with BFD'*)
3943  lt_cv_prog_gnu_ld=yes
3944  ;;
3945*)
3946  lt_cv_prog_gnu_ld=no
3947  ;;
3948esac
3949fi
3950echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3951echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3952with_gnu_ld=$lt_cv_prog_gnu_ld
3953
3954
3955echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3956echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3957if test "${lt_cv_ld_reload_flag+set}" = set; then
3958  echo $ECHO_N "(cached) $ECHO_C" >&6
3959else
3960  lt_cv_ld_reload_flag='-r'
3961fi
3962echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3963echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3964reload_flag=$lt_cv_ld_reload_flag
3965case $reload_flag in
3966"" | " "*) ;;
3967*) reload_flag=" $reload_flag" ;;
3968esac
3969reload_cmds='$LD$reload_flag -o $output$reload_objs'
3970case $host_os in
3971  darwin*)
3972    if test "$GCC" = yes; then
3973      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3974    else
3975      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3976    fi
3977    ;;
3978esac
3979
3980echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3981echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3982if test "${lt_cv_path_NM+set}" = set; then
3983  echo $ECHO_N "(cached) $ECHO_C" >&6
3984else
3985  if test -n "$NM"; then
3986  # Let the user override the test.
3987  lt_cv_path_NM="$NM"
3988else
3989  lt_nm_to_check="${ac_tool_prefix}nm"
3990  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3991    lt_nm_to_check="$lt_nm_to_check nm"
3992  fi
3993  for lt_tmp_nm in $lt_nm_to_check; do
3994    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3995    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3996      IFS="$lt_save_ifs"
3997      test -z "$ac_dir" && ac_dir=.
3998      tmp_nm="$ac_dir/$lt_tmp_nm"
3999      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4000	# Check to see if the nm accepts a BSD-compat flag.
4001	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4002	#   nm: unknown option "B" ignored
4003	# Tru64's nm complains that /dev/null is an invalid object file
4004	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4005	*/dev/null* | *'Invalid file or object type'*)
4006	  lt_cv_path_NM="$tmp_nm -B"
4007	  break
4008	  ;;
4009	*)
4010	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4011	  */dev/null*)
4012	    lt_cv_path_NM="$tmp_nm -p"
4013	    break
4014	    ;;
4015	  *)
4016	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4017	    continue # so that we can try to find one that supports BSD flags
4018	    ;;
4019	  esac
4020	  ;;
4021	esac
4022      fi
4023    done
4024    IFS="$lt_save_ifs"
4025  done
4026  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4027fi
4028fi
4029echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4030echo "${ECHO_T}$lt_cv_path_NM" >&6
4031NM="$lt_cv_path_NM"
4032
4033echo "$as_me:$LINENO: checking whether ln -s works" >&5
4034echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4035LN_S=$as_ln_s
4036if test "$LN_S" = "ln -s"; then
4037  echo "$as_me:$LINENO: result: yes" >&5
4038echo "${ECHO_T}yes" >&6
4039else
4040  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4041echo "${ECHO_T}no, using $LN_S" >&6
4042fi
4043
4044echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4045echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4046if test "${lt_cv_deplibs_check_method+set}" = set; then
4047  echo $ECHO_N "(cached) $ECHO_C" >&6
4048else
4049  lt_cv_file_magic_cmd='$MAGIC_CMD'
4050lt_cv_file_magic_test_file=
4051lt_cv_deplibs_check_method='unknown'
4052# Need to set the preceding variable on all platforms that support
4053# interlibrary dependencies.
4054# 'none' -- dependencies not supported.
4055# `unknown' -- same as none, but documents that we really don't know.
4056# 'pass_all' -- all dependencies passed with no checks.
4057# 'test_compile' -- check by making test program.
4058# 'file_magic [[regex]]' -- check by looking for files in library path
4059# which responds to the $file_magic_cmd with a given extended regex.
4060# If you have `file' or equivalent on your system and you're not sure
4061# whether `pass_all' will *always* work, you probably want this one.
4062
4063case $host_os in
4064aix4* | aix5*)
4065  lt_cv_deplibs_check_method=pass_all
4066  ;;
4067
4068beos*)
4069  lt_cv_deplibs_check_method=pass_all
4070  ;;
4071
4072bsdi[45]*)
4073  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4074  lt_cv_file_magic_cmd='/usr/bin/file -L'
4075  lt_cv_file_magic_test_file=/shlib/libc.so
4076  ;;
4077
4078cygwin*)
4079  # func_win32_libid is a shell function defined in ltmain.sh
4080  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4081  lt_cv_file_magic_cmd='func_win32_libid'
4082  ;;
4083
4084mingw* | pw32*)
4085  # Base MSYS/MinGW do not provide the 'file' command needed by
4086  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4087  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4088  lt_cv_file_magic_cmd='$OBJDUMP -f'
4089  ;;
4090
4091darwin* | rhapsody*)
4092  lt_cv_deplibs_check_method=pass_all
4093  ;;
4094
4095freebsd* | kfreebsd*-gnu | dragonfly*)
4096  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4097    case $host_cpu in
4098    i*86 )
4099      # Not sure whether the presence of OpenBSD here was a mistake.
4100      # Let's accept both of them until this is cleared up.
4101      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4102      lt_cv_file_magic_cmd=/usr/bin/file
4103      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4104      ;;
4105    esac
4106  else
4107    lt_cv_deplibs_check_method=pass_all
4108  fi
4109  ;;
4110
4111gnu*)
4112  lt_cv_deplibs_check_method=pass_all
4113  ;;
4114
4115hpux10.20* | hpux11*)
4116  lt_cv_file_magic_cmd=/usr/bin/file
4117  case $host_cpu in
4118  ia64*)
4119    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4120    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4121    ;;
4122  hppa*64*)
4123    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]'
4124    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4125    ;;
4126  *)
4127    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4128    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4129    ;;
4130  esac
4131  ;;
4132
4133interix3*)
4134  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4135  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4136  ;;
4137
4138irix5* | irix6* | nonstopux*)
4139  case $LD in
4140  *-32|*"-32 ") libmagic=32-bit;;
4141  *-n32|*"-n32 ") libmagic=N32;;
4142  *-64|*"-64 ") libmagic=64-bit;;
4143  *) libmagic=never-match;;
4144  esac
4145  lt_cv_deplibs_check_method=pass_all
4146  ;;
4147
4148# This must be Linux ELF.
4149linux*)
4150  lt_cv_deplibs_check_method=pass_all
4151  ;;
4152
4153netbsd*)
4154  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4155    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4156  else
4157    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4158  fi
4159  ;;
4160
4161newos6*)
4162  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4163  lt_cv_file_magic_cmd=/usr/bin/file
4164  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4165  ;;
4166
4167nto-qnx*)
4168  lt_cv_deplibs_check_method=unknown
4169  ;;
4170
4171openbsd*)
4172  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4173    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4174  else
4175    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4176  fi
4177  ;;
4178
4179osf3* | osf4* | osf5*)
4180  lt_cv_deplibs_check_method=pass_all
4181  ;;
4182
4183solaris*)
4184  lt_cv_deplibs_check_method=pass_all
4185  ;;
4186
4187sysv4 | sysv4.3*)
4188  case $host_vendor in
4189  motorola)
4190    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]'
4191    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4192    ;;
4193  ncr)
4194    lt_cv_deplibs_check_method=pass_all
4195    ;;
4196  sequent)
4197    lt_cv_file_magic_cmd='/bin/file'
4198    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4199    ;;
4200  sni)
4201    lt_cv_file_magic_cmd='/bin/file'
4202    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4203    lt_cv_file_magic_test_file=/lib/libc.so
4204    ;;
4205  siemens)
4206    lt_cv_deplibs_check_method=pass_all
4207    ;;
4208  pc)
4209    lt_cv_deplibs_check_method=pass_all
4210    ;;
4211  esac
4212  ;;
4213
4214sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4215  lt_cv_deplibs_check_method=pass_all
4216  ;;
4217esac
4218
4219fi
4220echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4221echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4222file_magic_cmd=$lt_cv_file_magic_cmd
4223deplibs_check_method=$lt_cv_deplibs_check_method
4224test -z "$deplibs_check_method" && deplibs_check_method=unknown
4225
4226
4227
4228
4229# If no C compiler was specified, use CC.
4230LTCC=${LTCC-"$CC"}
4231
4232# If no C compiler flags were specified, use CFLAGS.
4233LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4234
4235# Allow CC to be a program name with arguments.
4236compiler=$CC
4237
4238# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4239if test "${enable_libtool_lock+set}" = set; then
4240  enableval="$enable_libtool_lock"
4241
4242fi;
4243test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4244
4245# Some flags need to be propagated to the compiler or linker for good
4246# libtool support.
4247case $host in
4248ia64-*-hpux*)
4249  # Find out which ABI we are using.
4250  echo 'int i;' > conftest.$ac_ext
4251  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4252  (eval $ac_compile) 2>&5
4253  ac_status=$?
4254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255  (exit $ac_status); }; then
4256    case `/usr/bin/file conftest.$ac_objext` in
4257    *ELF-32*)
4258      HPUX_IA64_MODE="32"
4259      ;;
4260    *ELF-64*)
4261      HPUX_IA64_MODE="64"
4262      ;;
4263    esac
4264  fi
4265  rm -rf conftest*
4266  ;;
4267*-*-irix6*)
4268  # Find out which ABI we are using.
4269  echo '#line 4269 "configure"' > conftest.$ac_ext
4270  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271  (eval $ac_compile) 2>&5
4272  ac_status=$?
4273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274  (exit $ac_status); }; then
4275   if test "$lt_cv_prog_gnu_ld" = yes; then
4276    case `/usr/bin/file conftest.$ac_objext` in
4277    *32-bit*)
4278      LD="${LD-ld} -melf32bsmip"
4279      ;;
4280    *N32*)
4281      LD="${LD-ld} -melf32bmipn32"
4282      ;;
4283    *64-bit*)
4284      LD="${LD-ld} -melf64bmip"
4285      ;;
4286    esac
4287   else
4288    case `/usr/bin/file conftest.$ac_objext` in
4289    *32-bit*)
4290      LD="${LD-ld} -32"
4291      ;;
4292    *N32*)
4293      LD="${LD-ld} -n32"
4294      ;;
4295    *64-bit*)
4296      LD="${LD-ld} -64"
4297      ;;
4298    esac
4299   fi
4300  fi
4301  rm -rf conftest*
4302  ;;
4303
4304x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4305  # Find out which ABI we are using.
4306  echo 'int i;' > conftest.$ac_ext
4307  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4308  (eval $ac_compile) 2>&5
4309  ac_status=$?
4310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311  (exit $ac_status); }; then
4312    case `/usr/bin/file conftest.o` in
4313    *32-bit*)
4314      case $host in
4315        x86_64-*linux*)
4316          LD="${LD-ld} -m elf_i386"
4317          ;;
4318        ppc64-*linux*|powerpc64-*linux*)
4319          LD="${LD-ld} -m elf32ppclinux"
4320          ;;
4321        s390x-*linux*)
4322          LD="${LD-ld} -m elf_s390"
4323          ;;
4324        sparc64-*linux*)
4325          LD="${LD-ld} -m elf32_sparc"
4326          ;;
4327      esac
4328      ;;
4329    *64-bit*)
4330      case $host in
4331        x86_64-*linux*)
4332          LD="${LD-ld} -m elf_x86_64"
4333          ;;
4334        ppc*-*linux*|powerpc*-*linux*)
4335          LD="${LD-ld} -m elf64ppc"
4336          ;;
4337        s390*-*linux*)
4338          LD="${LD-ld} -m elf64_s390"
4339          ;;
4340        sparc*-*linux*)
4341          LD="${LD-ld} -m elf64_sparc"
4342          ;;
4343      esac
4344      ;;
4345    esac
4346  fi
4347  rm -rf conftest*
4348  ;;
4349
4350*-*-sco3.2v5*)
4351  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4352  SAVE_CFLAGS="$CFLAGS"
4353  CFLAGS="$CFLAGS -belf"
4354  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4355echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4356if test "${lt_cv_cc_needs_belf+set}" = set; then
4357  echo $ECHO_N "(cached) $ECHO_C" >&6
4358else
4359  ac_ext=c
4360ac_cpp='$CPP $CPPFLAGS'
4361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363ac_compiler_gnu=$ac_cv_c_compiler_gnu
4364
4365     cat >conftest.$ac_ext <<_ACEOF
4366/* confdefs.h.  */
4367_ACEOF
4368cat confdefs.h >>conftest.$ac_ext
4369cat >>conftest.$ac_ext <<_ACEOF
4370/* end confdefs.h.  */
4371
4372int
4373main ()
4374{
4375
4376  ;
4377  return 0;
4378}
4379_ACEOF
4380rm -f conftest.$ac_objext conftest$ac_exeext
4381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4382  (eval $ac_link) 2>conftest.er1
4383  ac_status=$?
4384  grep -v '^ *+' conftest.er1 >conftest.err
4385  rm -f conftest.er1
4386  cat conftest.err >&5
4387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388  (exit $ac_status); } &&
4389	 { ac_try='test -z "$ac_c_werror_flag"
4390			 || test ! -s conftest.err'
4391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392  (eval $ac_try) 2>&5
4393  ac_status=$?
4394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395  (exit $ac_status); }; } &&
4396	 { ac_try='test -s conftest$ac_exeext'
4397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398  (eval $ac_try) 2>&5
4399  ac_status=$?
4400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401  (exit $ac_status); }; }; then
4402  lt_cv_cc_needs_belf=yes
4403else
4404  echo "$as_me: failed program was:" >&5
4405sed 's/^/| /' conftest.$ac_ext >&5
4406
4407lt_cv_cc_needs_belf=no
4408fi
4409rm -f conftest.err conftest.$ac_objext \
4410      conftest$ac_exeext conftest.$ac_ext
4411     ac_ext=c
4412ac_cpp='$CPP $CPPFLAGS'
4413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416
4417fi
4418echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4419echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4420  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4421    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4422    CFLAGS="$SAVE_CFLAGS"
4423  fi
4424  ;;
4425sparc*-*solaris*)
4426  # Find out which ABI we are using.
4427  echo 'int i;' > conftest.$ac_ext
4428  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429  (eval $ac_compile) 2>&5
4430  ac_status=$?
4431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432  (exit $ac_status); }; then
4433    case `/usr/bin/file conftest.o` in
4434    *64-bit*)
4435      case $lt_cv_prog_gnu_ld in
4436      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4437      *)    LD="${LD-ld} -64" ;;
4438      esac
4439      ;;
4440    esac
4441  fi
4442  rm -rf conftest*
4443  ;;
4444
4445
4446esac
4447
4448need_locks="$enable_libtool_lock"
4449
4450
4451ac_ext=c
4452ac_cpp='$CPP $CPPFLAGS'
4453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4457echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4458# On Suns, sometimes $CPP names a directory.
4459if test -n "$CPP" && test -d "$CPP"; then
4460  CPP=
4461fi
4462if test -z "$CPP"; then
4463  if test "${ac_cv_prog_CPP+set}" = set; then
4464  echo $ECHO_N "(cached) $ECHO_C" >&6
4465else
4466      # Double quotes because CPP needs to be expanded
4467    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4468    do
4469      ac_preproc_ok=false
4470for ac_c_preproc_warn_flag in '' yes
4471do
4472  # Use a header file that comes with gcc, so configuring glibc
4473  # with a fresh cross-compiler works.
4474  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4475  # <limits.h> exists even on freestanding compilers.
4476  # On the NeXT, cc -E runs the code through the compiler's parser,
4477  # not just through cpp. "Syntax error" is here to catch this case.
4478  cat >conftest.$ac_ext <<_ACEOF
4479/* confdefs.h.  */
4480_ACEOF
4481cat confdefs.h >>conftest.$ac_ext
4482cat >>conftest.$ac_ext <<_ACEOF
4483/* end confdefs.h.  */
4484#ifdef __STDC__
4485# include <limits.h>
4486#else
4487# include <assert.h>
4488#endif
4489		     Syntax error
4490_ACEOF
4491if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4492  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4493  ac_status=$?
4494  grep -v '^ *+' conftest.er1 >conftest.err
4495  rm -f conftest.er1
4496  cat conftest.err >&5
4497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498  (exit $ac_status); } >/dev/null; then
4499  if test -s conftest.err; then
4500    ac_cpp_err=$ac_c_preproc_warn_flag
4501    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4502  else
4503    ac_cpp_err=
4504  fi
4505else
4506  ac_cpp_err=yes
4507fi
4508if test -z "$ac_cpp_err"; then
4509  :
4510else
4511  echo "$as_me: failed program was:" >&5
4512sed 's/^/| /' conftest.$ac_ext >&5
4513
4514  # Broken: fails on valid input.
4515continue
4516fi
4517rm -f conftest.err conftest.$ac_ext
4518
4519  # OK, works on sane cases.  Now check whether non-existent headers
4520  # can be detected and how.
4521  cat >conftest.$ac_ext <<_ACEOF
4522/* confdefs.h.  */
4523_ACEOF
4524cat confdefs.h >>conftest.$ac_ext
4525cat >>conftest.$ac_ext <<_ACEOF
4526/* end confdefs.h.  */
4527#include <ac_nonexistent.h>
4528_ACEOF
4529if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4530  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4531  ac_status=$?
4532  grep -v '^ *+' conftest.er1 >conftest.err
4533  rm -f conftest.er1
4534  cat conftest.err >&5
4535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536  (exit $ac_status); } >/dev/null; then
4537  if test -s conftest.err; then
4538    ac_cpp_err=$ac_c_preproc_warn_flag
4539    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4540  else
4541    ac_cpp_err=
4542  fi
4543else
4544  ac_cpp_err=yes
4545fi
4546if test -z "$ac_cpp_err"; then
4547  # Broken: success on invalid input.
4548continue
4549else
4550  echo "$as_me: failed program was:" >&5
4551sed 's/^/| /' conftest.$ac_ext >&5
4552
4553  # Passes both tests.
4554ac_preproc_ok=:
4555break
4556fi
4557rm -f conftest.err conftest.$ac_ext
4558
4559done
4560# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4561rm -f conftest.err conftest.$ac_ext
4562if $ac_preproc_ok; then
4563  break
4564fi
4565
4566    done
4567    ac_cv_prog_CPP=$CPP
4568
4569fi
4570  CPP=$ac_cv_prog_CPP
4571else
4572  ac_cv_prog_CPP=$CPP
4573fi
4574echo "$as_me:$LINENO: result: $CPP" >&5
4575echo "${ECHO_T}$CPP" >&6
4576ac_preproc_ok=false
4577for ac_c_preproc_warn_flag in '' yes
4578do
4579  # Use a header file that comes with gcc, so configuring glibc
4580  # with a fresh cross-compiler works.
4581  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4582  # <limits.h> exists even on freestanding compilers.
4583  # On the NeXT, cc -E runs the code through the compiler's parser,
4584  # not just through cpp. "Syntax error" is here to catch this case.
4585  cat >conftest.$ac_ext <<_ACEOF
4586/* confdefs.h.  */
4587_ACEOF
4588cat confdefs.h >>conftest.$ac_ext
4589cat >>conftest.$ac_ext <<_ACEOF
4590/* end confdefs.h.  */
4591#ifdef __STDC__
4592# include <limits.h>
4593#else
4594# include <assert.h>
4595#endif
4596		     Syntax error
4597_ACEOF
4598if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4599  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4600  ac_status=$?
4601  grep -v '^ *+' conftest.er1 >conftest.err
4602  rm -f conftest.er1
4603  cat conftest.err >&5
4604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605  (exit $ac_status); } >/dev/null; then
4606  if test -s conftest.err; then
4607    ac_cpp_err=$ac_c_preproc_warn_flag
4608    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4609  else
4610    ac_cpp_err=
4611  fi
4612else
4613  ac_cpp_err=yes
4614fi
4615if test -z "$ac_cpp_err"; then
4616  :
4617else
4618  echo "$as_me: failed program was:" >&5
4619sed 's/^/| /' conftest.$ac_ext >&5
4620
4621  # Broken: fails on valid input.
4622continue
4623fi
4624rm -f conftest.err conftest.$ac_ext
4625
4626  # OK, works on sane cases.  Now check whether non-existent headers
4627  # can be detected and how.
4628  cat >conftest.$ac_ext <<_ACEOF
4629/* confdefs.h.  */
4630_ACEOF
4631cat confdefs.h >>conftest.$ac_ext
4632cat >>conftest.$ac_ext <<_ACEOF
4633/* end confdefs.h.  */
4634#include <ac_nonexistent.h>
4635_ACEOF
4636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4637  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4638  ac_status=$?
4639  grep -v '^ *+' conftest.er1 >conftest.err
4640  rm -f conftest.er1
4641  cat conftest.err >&5
4642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643  (exit $ac_status); } >/dev/null; then
4644  if test -s conftest.err; then
4645    ac_cpp_err=$ac_c_preproc_warn_flag
4646    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4647  else
4648    ac_cpp_err=
4649  fi
4650else
4651  ac_cpp_err=yes
4652fi
4653if test -z "$ac_cpp_err"; then
4654  # Broken: success on invalid input.
4655continue
4656else
4657  echo "$as_me: failed program was:" >&5
4658sed 's/^/| /' conftest.$ac_ext >&5
4659
4660  # Passes both tests.
4661ac_preproc_ok=:
4662break
4663fi
4664rm -f conftest.err conftest.$ac_ext
4665
4666done
4667# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4668rm -f conftest.err conftest.$ac_ext
4669if $ac_preproc_ok; then
4670  :
4671else
4672  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4673See \`config.log' for more details." >&5
4674echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4675See \`config.log' for more details." >&2;}
4676   { (exit 1); exit 1; }; }
4677fi
4678
4679ac_ext=c
4680ac_cpp='$CPP $CPPFLAGS'
4681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683ac_compiler_gnu=$ac_cv_c_compiler_gnu
4684
4685
4686echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4687echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4688if test "${ac_cv_header_stdc+set}" = set; then
4689  echo $ECHO_N "(cached) $ECHO_C" >&6
4690else
4691  cat >conftest.$ac_ext <<_ACEOF
4692/* confdefs.h.  */
4693_ACEOF
4694cat confdefs.h >>conftest.$ac_ext
4695cat >>conftest.$ac_ext <<_ACEOF
4696/* end confdefs.h.  */
4697#include <stdlib.h>
4698#include <stdarg.h>
4699#include <string.h>
4700#include <float.h>
4701
4702int
4703main ()
4704{
4705
4706  ;
4707  return 0;
4708}
4709_ACEOF
4710rm -f conftest.$ac_objext
4711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712  (eval $ac_compile) 2>conftest.er1
4713  ac_status=$?
4714  grep -v '^ *+' conftest.er1 >conftest.err
4715  rm -f conftest.er1
4716  cat conftest.err >&5
4717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718  (exit $ac_status); } &&
4719	 { ac_try='test -z "$ac_c_werror_flag"
4720			 || test ! -s conftest.err'
4721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722  (eval $ac_try) 2>&5
4723  ac_status=$?
4724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725  (exit $ac_status); }; } &&
4726	 { ac_try='test -s conftest.$ac_objext'
4727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728  (eval $ac_try) 2>&5
4729  ac_status=$?
4730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731  (exit $ac_status); }; }; then
4732  ac_cv_header_stdc=yes
4733else
4734  echo "$as_me: failed program was:" >&5
4735sed 's/^/| /' conftest.$ac_ext >&5
4736
4737ac_cv_header_stdc=no
4738fi
4739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4740
4741if test $ac_cv_header_stdc = yes; then
4742  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4743  cat >conftest.$ac_ext <<_ACEOF
4744/* confdefs.h.  */
4745_ACEOF
4746cat confdefs.h >>conftest.$ac_ext
4747cat >>conftest.$ac_ext <<_ACEOF
4748/* end confdefs.h.  */
4749#include <string.h>
4750
4751_ACEOF
4752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4753  $EGREP "memchr" >/dev/null 2>&1; then
4754  :
4755else
4756  ac_cv_header_stdc=no
4757fi
4758rm -f conftest*
4759
4760fi
4761
4762if test $ac_cv_header_stdc = yes; then
4763  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4764  cat >conftest.$ac_ext <<_ACEOF
4765/* confdefs.h.  */
4766_ACEOF
4767cat confdefs.h >>conftest.$ac_ext
4768cat >>conftest.$ac_ext <<_ACEOF
4769/* end confdefs.h.  */
4770#include <stdlib.h>
4771
4772_ACEOF
4773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4774  $EGREP "free" >/dev/null 2>&1; then
4775  :
4776else
4777  ac_cv_header_stdc=no
4778fi
4779rm -f conftest*
4780
4781fi
4782
4783if test $ac_cv_header_stdc = yes; then
4784  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4785  if test "$cross_compiling" = yes; then
4786  :
4787else
4788  cat >conftest.$ac_ext <<_ACEOF
4789/* confdefs.h.  */
4790_ACEOF
4791cat confdefs.h >>conftest.$ac_ext
4792cat >>conftest.$ac_ext <<_ACEOF
4793/* end confdefs.h.  */
4794#include <ctype.h>
4795#if ((' ' & 0x0FF) == 0x020)
4796# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4797# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4798#else
4799# define ISLOWER(c) \
4800		   (('a' <= (c) && (c) <= 'i') \
4801		     || ('j' <= (c) && (c) <= 'r') \
4802		     || ('s' <= (c) && (c) <= 'z'))
4803# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4804#endif
4805
4806#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4807int
4808main ()
4809{
4810  int i;
4811  for (i = 0; i < 256; i++)
4812    if (XOR (islower (i), ISLOWER (i))
4813	|| toupper (i) != TOUPPER (i))
4814      exit(2);
4815  exit (0);
4816}
4817_ACEOF
4818rm -f conftest$ac_exeext
4819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4820  (eval $ac_link) 2>&5
4821  ac_status=$?
4822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825  (eval $ac_try) 2>&5
4826  ac_status=$?
4827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828  (exit $ac_status); }; }; then
4829  :
4830else
4831  echo "$as_me: program exited with status $ac_status" >&5
4832echo "$as_me: failed program was:" >&5
4833sed 's/^/| /' conftest.$ac_ext >&5
4834
4835( exit $ac_status )
4836ac_cv_header_stdc=no
4837fi
4838rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4839fi
4840fi
4841fi
4842echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4843echo "${ECHO_T}$ac_cv_header_stdc" >&6
4844if test $ac_cv_header_stdc = yes; then
4845
4846cat >>confdefs.h <<\_ACEOF
4847#define STDC_HEADERS 1
4848_ACEOF
4849
4850fi
4851
4852# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4863		  inttypes.h stdint.h unistd.h
4864do
4865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4866echo "$as_me:$LINENO: checking for $ac_header" >&5
4867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4868if eval "test \"\${$as_ac_Header+set}\" = set"; then
4869  echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871  cat >conftest.$ac_ext <<_ACEOF
4872/* confdefs.h.  */
4873_ACEOF
4874cat confdefs.h >>conftest.$ac_ext
4875cat >>conftest.$ac_ext <<_ACEOF
4876/* end confdefs.h.  */
4877$ac_includes_default
4878
4879#include <$ac_header>
4880_ACEOF
4881rm -f conftest.$ac_objext
4882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883  (eval $ac_compile) 2>conftest.er1
4884  ac_status=$?
4885  grep -v '^ *+' conftest.er1 >conftest.err
4886  rm -f conftest.er1
4887  cat conftest.err >&5
4888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889  (exit $ac_status); } &&
4890	 { ac_try='test -z "$ac_c_werror_flag"
4891			 || test ! -s conftest.err'
4892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893  (eval $ac_try) 2>&5
4894  ac_status=$?
4895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896  (exit $ac_status); }; } &&
4897	 { ac_try='test -s conftest.$ac_objext'
4898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899  (eval $ac_try) 2>&5
4900  ac_status=$?
4901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902  (exit $ac_status); }; }; then
4903  eval "$as_ac_Header=yes"
4904else
4905  echo "$as_me: failed program was:" >&5
4906sed 's/^/| /' conftest.$ac_ext >&5
4907
4908eval "$as_ac_Header=no"
4909fi
4910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4911fi
4912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4913echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4914if test `eval echo '${'$as_ac_Header'}'` = yes; then
4915  cat >>confdefs.h <<_ACEOF
4916#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4917_ACEOF
4918
4919fi
4920
4921done
4922
4923
4924
4925for ac_header in dlfcn.h
4926do
4927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4928if eval "test \"\${$as_ac_Header+set}\" = set"; then
4929  echo "$as_me:$LINENO: checking for $ac_header" >&5
4930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4931if eval "test \"\${$as_ac_Header+set}\" = set"; then
4932  echo $ECHO_N "(cached) $ECHO_C" >&6
4933fi
4934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4936else
4937  # Is the header compilable?
4938echo "$as_me:$LINENO: checking $ac_header usability" >&5
4939echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4940cat >conftest.$ac_ext <<_ACEOF
4941/* confdefs.h.  */
4942_ACEOF
4943cat confdefs.h >>conftest.$ac_ext
4944cat >>conftest.$ac_ext <<_ACEOF
4945/* end confdefs.h.  */
4946$ac_includes_default
4947#include <$ac_header>
4948_ACEOF
4949rm -f conftest.$ac_objext
4950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951  (eval $ac_compile) 2>conftest.er1
4952  ac_status=$?
4953  grep -v '^ *+' conftest.er1 >conftest.err
4954  rm -f conftest.er1
4955  cat conftest.err >&5
4956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957  (exit $ac_status); } &&
4958	 { ac_try='test -z "$ac_c_werror_flag"
4959			 || test ! -s conftest.err'
4960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961  (eval $ac_try) 2>&5
4962  ac_status=$?
4963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964  (exit $ac_status); }; } &&
4965	 { ac_try='test -s conftest.$ac_objext'
4966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967  (eval $ac_try) 2>&5
4968  ac_status=$?
4969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970  (exit $ac_status); }; }; then
4971  ac_header_compiler=yes
4972else
4973  echo "$as_me: failed program was:" >&5
4974sed 's/^/| /' conftest.$ac_ext >&5
4975
4976ac_header_compiler=no
4977fi
4978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4979echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4980echo "${ECHO_T}$ac_header_compiler" >&6
4981
4982# Is the header present?
4983echo "$as_me:$LINENO: checking $ac_header presence" >&5
4984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4985cat >conftest.$ac_ext <<_ACEOF
4986/* confdefs.h.  */
4987_ACEOF
4988cat confdefs.h >>conftest.$ac_ext
4989cat >>conftest.$ac_ext <<_ACEOF
4990/* end confdefs.h.  */
4991#include <$ac_header>
4992_ACEOF
4993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4994  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4995  ac_status=$?
4996  grep -v '^ *+' conftest.er1 >conftest.err
4997  rm -f conftest.er1
4998  cat conftest.err >&5
4999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000  (exit $ac_status); } >/dev/null; then
5001  if test -s conftest.err; then
5002    ac_cpp_err=$ac_c_preproc_warn_flag
5003    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5004  else
5005    ac_cpp_err=
5006  fi
5007else
5008  ac_cpp_err=yes
5009fi
5010if test -z "$ac_cpp_err"; then
5011  ac_header_preproc=yes
5012else
5013  echo "$as_me: failed program was:" >&5
5014sed 's/^/| /' conftest.$ac_ext >&5
5015
5016  ac_header_preproc=no
5017fi
5018rm -f conftest.err conftest.$ac_ext
5019echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5020echo "${ECHO_T}$ac_header_preproc" >&6
5021
5022# So?  What about this header?
5023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5024  yes:no: )
5025    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5026echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5027    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5028echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5029    ac_header_preproc=yes
5030    ;;
5031  no:yes:* )
5032    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5033echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5034    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5035echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5036    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5037echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5038    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5039echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5040    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5041echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5042    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5043echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5044    (
5045      cat <<\_ASBOX
5046## --------------------------------------------------------- ##
5047## Report this to http://savannah.gnu.org/bugs/?group=gpaint ##
5048## --------------------------------------------------------- ##
5049_ASBOX
5050    ) |
5051      sed "s/^/$as_me: WARNING:     /" >&2
5052    ;;
5053esac
5054echo "$as_me:$LINENO: checking for $ac_header" >&5
5055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5056if eval "test \"\${$as_ac_Header+set}\" = set"; then
5057  echo $ECHO_N "(cached) $ECHO_C" >&6
5058else
5059  eval "$as_ac_Header=\$ac_header_preproc"
5060fi
5061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5063
5064fi
5065if test `eval echo '${'$as_ac_Header'}'` = yes; then
5066  cat >>confdefs.h <<_ACEOF
5067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5068_ACEOF
5069
5070fi
5071
5072done
5073
5074ac_ext=cc
5075ac_cpp='$CXXCPP $CPPFLAGS'
5076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5079if test -n "$ac_tool_prefix"; then
5080  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5081  do
5082    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5083set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5084echo "$as_me:$LINENO: checking for $ac_word" >&5
5085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5086if test "${ac_cv_prog_CXX+set}" = set; then
5087  echo $ECHO_N "(cached) $ECHO_C" >&6
5088else
5089  if test -n "$CXX"; then
5090  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5091else
5092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093for as_dir in $PATH
5094do
5095  IFS=$as_save_IFS
5096  test -z "$as_dir" && as_dir=.
5097  for ac_exec_ext in '' $ac_executable_extensions; do
5098  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5100    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101    break 2
5102  fi
5103done
5104done
5105
5106fi
5107fi
5108CXX=$ac_cv_prog_CXX
5109if test -n "$CXX"; then
5110  echo "$as_me:$LINENO: result: $CXX" >&5
5111echo "${ECHO_T}$CXX" >&6
5112else
5113  echo "$as_me:$LINENO: result: no" >&5
5114echo "${ECHO_T}no" >&6
5115fi
5116
5117    test -n "$CXX" && break
5118  done
5119fi
5120if test -z "$CXX"; then
5121  ac_ct_CXX=$CXX
5122  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5123do
5124  # Extract the first word of "$ac_prog", so it can be a program name with args.
5125set dummy $ac_prog; ac_word=$2
5126echo "$as_me:$LINENO: checking for $ac_word" >&5
5127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5128if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5129  echo $ECHO_N "(cached) $ECHO_C" >&6
5130else
5131  if test -n "$ac_ct_CXX"; then
5132  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5133else
5134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135for as_dir in $PATH
5136do
5137  IFS=$as_save_IFS
5138  test -z "$as_dir" && as_dir=.
5139  for ac_exec_ext in '' $ac_executable_extensions; do
5140  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141    ac_cv_prog_ac_ct_CXX="$ac_prog"
5142    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143    break 2
5144  fi
5145done
5146done
5147
5148fi
5149fi
5150ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5151if test -n "$ac_ct_CXX"; then
5152  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5153echo "${ECHO_T}$ac_ct_CXX" >&6
5154else
5155  echo "$as_me:$LINENO: result: no" >&5
5156echo "${ECHO_T}no" >&6
5157fi
5158
5159  test -n "$ac_ct_CXX" && break
5160done
5161test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5162
5163  CXX=$ac_ct_CXX
5164fi
5165
5166
5167# Provide some information about the compiler.
5168echo "$as_me:$LINENO:" \
5169     "checking for C++ compiler version" >&5
5170ac_compiler=`set X $ac_compile; echo $2`
5171{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5172  (eval $ac_compiler --version </dev/null >&5) 2>&5
5173  ac_status=$?
5174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175  (exit $ac_status); }
5176{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5177  (eval $ac_compiler -v </dev/null >&5) 2>&5
5178  ac_status=$?
5179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180  (exit $ac_status); }
5181{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5182  (eval $ac_compiler -V </dev/null >&5) 2>&5
5183  ac_status=$?
5184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185  (exit $ac_status); }
5186
5187echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5188echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5189if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5190  echo $ECHO_N "(cached) $ECHO_C" >&6
5191else
5192  cat >conftest.$ac_ext <<_ACEOF
5193/* confdefs.h.  */
5194_ACEOF
5195cat confdefs.h >>conftest.$ac_ext
5196cat >>conftest.$ac_ext <<_ACEOF
5197/* end confdefs.h.  */
5198
5199int
5200main ()
5201{
5202#ifndef __GNUC__
5203       choke me
5204#endif
5205
5206  ;
5207  return 0;
5208}
5209_ACEOF
5210rm -f conftest.$ac_objext
5211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5212  (eval $ac_compile) 2>conftest.er1
5213  ac_status=$?
5214  grep -v '^ *+' conftest.er1 >conftest.err
5215  rm -f conftest.er1
5216  cat conftest.err >&5
5217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218  (exit $ac_status); } &&
5219	 { ac_try='test -z "$ac_cxx_werror_flag"
5220			 || test ! -s conftest.err'
5221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222  (eval $ac_try) 2>&5
5223  ac_status=$?
5224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225  (exit $ac_status); }; } &&
5226	 { ac_try='test -s conftest.$ac_objext'
5227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228  (eval $ac_try) 2>&5
5229  ac_status=$?
5230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231  (exit $ac_status); }; }; then
5232  ac_compiler_gnu=yes
5233else
5234  echo "$as_me: failed program was:" >&5
5235sed 's/^/| /' conftest.$ac_ext >&5
5236
5237ac_compiler_gnu=no
5238fi
5239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5240ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5241
5242fi
5243echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5244echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5245GXX=`test $ac_compiler_gnu = yes && echo yes`
5246ac_test_CXXFLAGS=${CXXFLAGS+set}
5247ac_save_CXXFLAGS=$CXXFLAGS
5248CXXFLAGS="-g"
5249echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5250echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5251if test "${ac_cv_prog_cxx_g+set}" = set; then
5252  echo $ECHO_N "(cached) $ECHO_C" >&6
5253else
5254  cat >conftest.$ac_ext <<_ACEOF
5255/* confdefs.h.  */
5256_ACEOF
5257cat confdefs.h >>conftest.$ac_ext
5258cat >>conftest.$ac_ext <<_ACEOF
5259/* end confdefs.h.  */
5260
5261int
5262main ()
5263{
5264
5265  ;
5266  return 0;
5267}
5268_ACEOF
5269rm -f conftest.$ac_objext
5270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5271  (eval $ac_compile) 2>conftest.er1
5272  ac_status=$?
5273  grep -v '^ *+' conftest.er1 >conftest.err
5274  rm -f conftest.er1
5275  cat conftest.err >&5
5276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277  (exit $ac_status); } &&
5278	 { ac_try='test -z "$ac_cxx_werror_flag"
5279			 || test ! -s conftest.err'
5280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281  (eval $ac_try) 2>&5
5282  ac_status=$?
5283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284  (exit $ac_status); }; } &&
5285	 { ac_try='test -s conftest.$ac_objext'
5286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287  (eval $ac_try) 2>&5
5288  ac_status=$?
5289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290  (exit $ac_status); }; }; then
5291  ac_cv_prog_cxx_g=yes
5292else
5293  echo "$as_me: failed program was:" >&5
5294sed 's/^/| /' conftest.$ac_ext >&5
5295
5296ac_cv_prog_cxx_g=no
5297fi
5298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5299fi
5300echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5301echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5302if test "$ac_test_CXXFLAGS" = set; then
5303  CXXFLAGS=$ac_save_CXXFLAGS
5304elif test $ac_cv_prog_cxx_g = yes; then
5305  if test "$GXX" = yes; then
5306    CXXFLAGS="-g -O2"
5307  else
5308    CXXFLAGS="-g"
5309  fi
5310else
5311  if test "$GXX" = yes; then
5312    CXXFLAGS="-O2"
5313  else
5314    CXXFLAGS=
5315  fi
5316fi
5317for ac_declaration in \
5318   '' \
5319   'extern "C" void std::exit (int) throw (); using std::exit;' \
5320   'extern "C" void std::exit (int); using std::exit;' \
5321   'extern "C" void exit (int) throw ();' \
5322   'extern "C" void exit (int);' \
5323   'void exit (int);'
5324do
5325  cat >conftest.$ac_ext <<_ACEOF
5326/* confdefs.h.  */
5327_ACEOF
5328cat confdefs.h >>conftest.$ac_ext
5329cat >>conftest.$ac_ext <<_ACEOF
5330/* end confdefs.h.  */
5331$ac_declaration
5332#include <stdlib.h>
5333int
5334main ()
5335{
5336exit (42);
5337  ;
5338  return 0;
5339}
5340_ACEOF
5341rm -f conftest.$ac_objext
5342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5343  (eval $ac_compile) 2>conftest.er1
5344  ac_status=$?
5345  grep -v '^ *+' conftest.er1 >conftest.err
5346  rm -f conftest.er1
5347  cat conftest.err >&5
5348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349  (exit $ac_status); } &&
5350	 { ac_try='test -z "$ac_cxx_werror_flag"
5351			 || test ! -s conftest.err'
5352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353  (eval $ac_try) 2>&5
5354  ac_status=$?
5355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356  (exit $ac_status); }; } &&
5357	 { ac_try='test -s conftest.$ac_objext'
5358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359  (eval $ac_try) 2>&5
5360  ac_status=$?
5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362  (exit $ac_status); }; }; then
5363  :
5364else
5365  echo "$as_me: failed program was:" >&5
5366sed 's/^/| /' conftest.$ac_ext >&5
5367
5368continue
5369fi
5370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5371  cat >conftest.$ac_ext <<_ACEOF
5372/* confdefs.h.  */
5373_ACEOF
5374cat confdefs.h >>conftest.$ac_ext
5375cat >>conftest.$ac_ext <<_ACEOF
5376/* end confdefs.h.  */
5377$ac_declaration
5378int
5379main ()
5380{
5381exit (42);
5382  ;
5383  return 0;
5384}
5385_ACEOF
5386rm -f conftest.$ac_objext
5387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5388  (eval $ac_compile) 2>conftest.er1
5389  ac_status=$?
5390  grep -v '^ *+' conftest.er1 >conftest.err
5391  rm -f conftest.er1
5392  cat conftest.err >&5
5393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394  (exit $ac_status); } &&
5395	 { ac_try='test -z "$ac_cxx_werror_flag"
5396			 || test ! -s conftest.err'
5397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398  (eval $ac_try) 2>&5
5399  ac_status=$?
5400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401  (exit $ac_status); }; } &&
5402	 { ac_try='test -s conftest.$ac_objext'
5403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404  (eval $ac_try) 2>&5
5405  ac_status=$?
5406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407  (exit $ac_status); }; }; then
5408  break
5409else
5410  echo "$as_me: failed program was:" >&5
5411sed 's/^/| /' conftest.$ac_ext >&5
5412
5413fi
5414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5415done
5416rm -f conftest*
5417if test -n "$ac_declaration"; then
5418  echo '#ifdef __cplusplus' >>confdefs.h
5419  echo $ac_declaration      >>confdefs.h
5420  echo '#endif'             >>confdefs.h
5421fi
5422
5423ac_ext=cc
5424ac_cpp='$CXXCPP $CPPFLAGS'
5425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5428
5429
5430
5431if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5432    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5433    (test "X$CXX" != "Xg++"))) ; then
5434  ac_ext=cc
5435ac_cpp='$CXXCPP $CPPFLAGS'
5436ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5439echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5440echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5441if test -z "$CXXCPP"; then
5442  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5443  echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445      # Double quotes because CXXCPP needs to be expanded
5446    for CXXCPP in "$CXX -E" "/lib/cpp"
5447    do
5448      ac_preproc_ok=false
5449for ac_cxx_preproc_warn_flag in '' yes
5450do
5451  # Use a header file that comes with gcc, so configuring glibc
5452  # with a fresh cross-compiler works.
5453  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5454  # <limits.h> exists even on freestanding compilers.
5455  # On the NeXT, cc -E runs the code through the compiler's parser,
5456  # not just through cpp. "Syntax error" is here to catch this case.
5457  cat >conftest.$ac_ext <<_ACEOF
5458/* confdefs.h.  */
5459_ACEOF
5460cat confdefs.h >>conftest.$ac_ext
5461cat >>conftest.$ac_ext <<_ACEOF
5462/* end confdefs.h.  */
5463#ifdef __STDC__
5464# include <limits.h>
5465#else
5466# include <assert.h>
5467#endif
5468		     Syntax error
5469_ACEOF
5470if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5471  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5472  ac_status=$?
5473  grep -v '^ *+' conftest.er1 >conftest.err
5474  rm -f conftest.er1
5475  cat conftest.err >&5
5476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477  (exit $ac_status); } >/dev/null; then
5478  if test -s conftest.err; then
5479    ac_cpp_err=$ac_cxx_preproc_warn_flag
5480    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5481  else
5482    ac_cpp_err=
5483  fi
5484else
5485  ac_cpp_err=yes
5486fi
5487if test -z "$ac_cpp_err"; then
5488  :
5489else
5490  echo "$as_me: failed program was:" >&5
5491sed 's/^/| /' conftest.$ac_ext >&5
5492
5493  # Broken: fails on valid input.
5494continue
5495fi
5496rm -f conftest.err conftest.$ac_ext
5497
5498  # OK, works on sane cases.  Now check whether non-existent headers
5499  # can be detected and how.
5500  cat >conftest.$ac_ext <<_ACEOF
5501/* confdefs.h.  */
5502_ACEOF
5503cat confdefs.h >>conftest.$ac_ext
5504cat >>conftest.$ac_ext <<_ACEOF
5505/* end confdefs.h.  */
5506#include <ac_nonexistent.h>
5507_ACEOF
5508if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5509  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5510  ac_status=$?
5511  grep -v '^ *+' conftest.er1 >conftest.err
5512  rm -f conftest.er1
5513  cat conftest.err >&5
5514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515  (exit $ac_status); } >/dev/null; then
5516  if test -s conftest.err; then
5517    ac_cpp_err=$ac_cxx_preproc_warn_flag
5518    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5519  else
5520    ac_cpp_err=
5521  fi
5522else
5523  ac_cpp_err=yes
5524fi
5525if test -z "$ac_cpp_err"; then
5526  # Broken: success on invalid input.
5527continue
5528else
5529  echo "$as_me: failed program was:" >&5
5530sed 's/^/| /' conftest.$ac_ext >&5
5531
5532  # Passes both tests.
5533ac_preproc_ok=:
5534break
5535fi
5536rm -f conftest.err conftest.$ac_ext
5537
5538done
5539# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5540rm -f conftest.err conftest.$ac_ext
5541if $ac_preproc_ok; then
5542  break
5543fi
5544
5545    done
5546    ac_cv_prog_CXXCPP=$CXXCPP
5547
5548fi
5549  CXXCPP=$ac_cv_prog_CXXCPP
5550else
5551  ac_cv_prog_CXXCPP=$CXXCPP
5552fi
5553echo "$as_me:$LINENO: result: $CXXCPP" >&5
5554echo "${ECHO_T}$CXXCPP" >&6
5555ac_preproc_ok=false
5556for ac_cxx_preproc_warn_flag in '' yes
5557do
5558  # Use a header file that comes with gcc, so configuring glibc
5559  # with a fresh cross-compiler works.
5560  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5561  # <limits.h> exists even on freestanding compilers.
5562  # On the NeXT, cc -E runs the code through the compiler's parser,
5563  # not just through cpp. "Syntax error" is here to catch this case.
5564  cat >conftest.$ac_ext <<_ACEOF
5565/* confdefs.h.  */
5566_ACEOF
5567cat confdefs.h >>conftest.$ac_ext
5568cat >>conftest.$ac_ext <<_ACEOF
5569/* end confdefs.h.  */
5570#ifdef __STDC__
5571# include <limits.h>
5572#else
5573# include <assert.h>
5574#endif
5575		     Syntax error
5576_ACEOF
5577if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5578  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5579  ac_status=$?
5580  grep -v '^ *+' conftest.er1 >conftest.err
5581  rm -f conftest.er1
5582  cat conftest.err >&5
5583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584  (exit $ac_status); } >/dev/null; then
5585  if test -s conftest.err; then
5586    ac_cpp_err=$ac_cxx_preproc_warn_flag
5587    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5588  else
5589    ac_cpp_err=
5590  fi
5591else
5592  ac_cpp_err=yes
5593fi
5594if test -z "$ac_cpp_err"; then
5595  :
5596else
5597  echo "$as_me: failed program was:" >&5
5598sed 's/^/| /' conftest.$ac_ext >&5
5599
5600  # Broken: fails on valid input.
5601continue
5602fi
5603rm -f conftest.err conftest.$ac_ext
5604
5605  # OK, works on sane cases.  Now check whether non-existent headers
5606  # can be detected and how.
5607  cat >conftest.$ac_ext <<_ACEOF
5608/* confdefs.h.  */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h.  */
5613#include <ac_nonexistent.h>
5614_ACEOF
5615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5616  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5617  ac_status=$?
5618  grep -v '^ *+' conftest.er1 >conftest.err
5619  rm -f conftest.er1
5620  cat conftest.err >&5
5621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622  (exit $ac_status); } >/dev/null; then
5623  if test -s conftest.err; then
5624    ac_cpp_err=$ac_cxx_preproc_warn_flag
5625    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5626  else
5627    ac_cpp_err=
5628  fi
5629else
5630  ac_cpp_err=yes
5631fi
5632if test -z "$ac_cpp_err"; then
5633  # Broken: success on invalid input.
5634continue
5635else
5636  echo "$as_me: failed program was:" >&5
5637sed 's/^/| /' conftest.$ac_ext >&5
5638
5639  # Passes both tests.
5640ac_preproc_ok=:
5641break
5642fi
5643rm -f conftest.err conftest.$ac_ext
5644
5645done
5646# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5647rm -f conftest.err conftest.$ac_ext
5648if $ac_preproc_ok; then
5649  :
5650else
5651  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5652See \`config.log' for more details." >&5
5653echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5654See \`config.log' for more details." >&2;}
5655   { (exit 1); exit 1; }; }
5656fi
5657
5658ac_ext=cc
5659ac_cpp='$CXXCPP $CPPFLAGS'
5660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5663
5664fi
5665
5666
5667ac_ext=f
5668ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5669ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5670ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5671if test -n "$ac_tool_prefix"; then
5672  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5673  do
5674    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5675set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5676echo "$as_me:$LINENO: checking for $ac_word" >&5
5677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5678if test "${ac_cv_prog_F77+set}" = set; then
5679  echo $ECHO_N "(cached) $ECHO_C" >&6
5680else
5681  if test -n "$F77"; then
5682  ac_cv_prog_F77="$F77" # Let the user override the test.
5683else
5684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685for as_dir in $PATH
5686do
5687  IFS=$as_save_IFS
5688  test -z "$as_dir" && as_dir=.
5689  for ac_exec_ext in '' $ac_executable_extensions; do
5690  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5692    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5693    break 2
5694  fi
5695done
5696done
5697
5698fi
5699fi
5700F77=$ac_cv_prog_F77
5701if test -n "$F77"; then
5702  echo "$as_me:$LINENO: result: $F77" >&5
5703echo "${ECHO_T}$F77" >&6
5704else
5705  echo "$as_me:$LINENO: result: no" >&5
5706echo "${ECHO_T}no" >&6
5707fi
5708
5709    test -n "$F77" && break
5710  done
5711fi
5712if test -z "$F77"; then
5713  ac_ct_F77=$F77
5714  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5715do
5716  # Extract the first word of "$ac_prog", so it can be a program name with args.
5717set dummy $ac_prog; ac_word=$2
5718echo "$as_me:$LINENO: checking for $ac_word" >&5
5719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5720if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5721  echo $ECHO_N "(cached) $ECHO_C" >&6
5722else
5723  if test -n "$ac_ct_F77"; then
5724  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5725else
5726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727for as_dir in $PATH
5728do
5729  IFS=$as_save_IFS
5730  test -z "$as_dir" && as_dir=.
5731  for ac_exec_ext in '' $ac_executable_extensions; do
5732  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733    ac_cv_prog_ac_ct_F77="$ac_prog"
5734    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5735    break 2
5736  fi
5737done
5738done
5739
5740fi
5741fi
5742ac_ct_F77=$ac_cv_prog_ac_ct_F77
5743if test -n "$ac_ct_F77"; then
5744  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5745echo "${ECHO_T}$ac_ct_F77" >&6
5746else
5747  echo "$as_me:$LINENO: result: no" >&5
5748echo "${ECHO_T}no" >&6
5749fi
5750
5751  test -n "$ac_ct_F77" && break
5752done
5753
5754  F77=$ac_ct_F77
5755fi
5756
5757
5758# Provide some information about the compiler.
5759echo "$as_me:5759:" \
5760     "checking for Fortran 77 compiler version" >&5
5761ac_compiler=`set X $ac_compile; echo $2`
5762{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5763  (eval $ac_compiler --version </dev/null >&5) 2>&5
5764  ac_status=$?
5765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766  (exit $ac_status); }
5767{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5768  (eval $ac_compiler -v </dev/null >&5) 2>&5
5769  ac_status=$?
5770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771  (exit $ac_status); }
5772{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5773  (eval $ac_compiler -V </dev/null >&5) 2>&5
5774  ac_status=$?
5775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776  (exit $ac_status); }
5777rm -f a.out
5778
5779# If we don't use `.F' as extension, the preprocessor is not run on the
5780# input file.  (Note that this only needs to work for GNU compilers.)
5781ac_save_ext=$ac_ext
5782ac_ext=F
5783echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5784echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5785if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5786  echo $ECHO_N "(cached) $ECHO_C" >&6
5787else
5788  cat >conftest.$ac_ext <<_ACEOF
5789      program main
5790#ifndef __GNUC__
5791       choke me
5792#endif
5793
5794      end
5795_ACEOF
5796rm -f conftest.$ac_objext
5797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5798  (eval $ac_compile) 2>conftest.er1
5799  ac_status=$?
5800  grep -v '^ *+' conftest.er1 >conftest.err
5801  rm -f conftest.er1
5802  cat conftest.err >&5
5803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804  (exit $ac_status); } &&
5805	 { ac_try='test -z "$ac_f77_werror_flag"
5806			 || test ! -s conftest.err'
5807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808  (eval $ac_try) 2>&5
5809  ac_status=$?
5810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811  (exit $ac_status); }; } &&
5812	 { ac_try='test -s conftest.$ac_objext'
5813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814  (eval $ac_try) 2>&5
5815  ac_status=$?
5816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817  (exit $ac_status); }; }; then
5818  ac_compiler_gnu=yes
5819else
5820  echo "$as_me: failed program was:" >&5
5821sed 's/^/| /' conftest.$ac_ext >&5
5822
5823ac_compiler_gnu=no
5824fi
5825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5826ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5827
5828fi
5829echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5830echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5831ac_ext=$ac_save_ext
5832ac_test_FFLAGS=${FFLAGS+set}
5833ac_save_FFLAGS=$FFLAGS
5834FFLAGS=
5835echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5836echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5837if test "${ac_cv_prog_f77_g+set}" = set; then
5838  echo $ECHO_N "(cached) $ECHO_C" >&6
5839else
5840  FFLAGS=-g
5841cat >conftest.$ac_ext <<_ACEOF
5842      program main
5843
5844      end
5845_ACEOF
5846rm -f conftest.$ac_objext
5847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5848  (eval $ac_compile) 2>conftest.er1
5849  ac_status=$?
5850  grep -v '^ *+' conftest.er1 >conftest.err
5851  rm -f conftest.er1
5852  cat conftest.err >&5
5853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854  (exit $ac_status); } &&
5855	 { ac_try='test -z "$ac_f77_werror_flag"
5856			 || test ! -s conftest.err'
5857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858  (eval $ac_try) 2>&5
5859  ac_status=$?
5860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861  (exit $ac_status); }; } &&
5862	 { ac_try='test -s conftest.$ac_objext'
5863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864  (eval $ac_try) 2>&5
5865  ac_status=$?
5866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867  (exit $ac_status); }; }; then
5868  ac_cv_prog_f77_g=yes
5869else
5870  echo "$as_me: failed program was:" >&5
5871sed 's/^/| /' conftest.$ac_ext >&5
5872
5873ac_cv_prog_f77_g=no
5874fi
5875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5876
5877fi
5878echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5879echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5880if test "$ac_test_FFLAGS" = set; then
5881  FFLAGS=$ac_save_FFLAGS
5882elif test $ac_cv_prog_f77_g = yes; then
5883  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5884    FFLAGS="-g -O2"
5885  else
5886    FFLAGS="-g"
5887  fi
5888else
5889  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5890    FFLAGS="-O2"
5891  else
5892    FFLAGS=
5893  fi
5894fi
5895
5896G77=`test $ac_compiler_gnu = yes && echo yes`
5897ac_ext=c
5898ac_cpp='$CPP $CPPFLAGS'
5899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5901ac_compiler_gnu=$ac_cv_c_compiler_gnu
5902
5903
5904
5905# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5906
5907# find the maximum length of command line arguments
5908echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5909echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5910if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5911  echo $ECHO_N "(cached) $ECHO_C" >&6
5912else
5913    i=0
5914  teststring="ABCD"
5915
5916  case $build_os in
5917  msdosdjgpp*)
5918    # On DJGPP, this test can blow up pretty badly due to problems in libc
5919    # (any single argument exceeding 2000 bytes causes a buffer overrun
5920    # during glob expansion).  Even if it were fixed, the result of this
5921    # check would be larger than it should be.
5922    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5923    ;;
5924
5925  gnu*)
5926    # Under GNU Hurd, this test is not required because there is
5927    # no limit to the length of command line arguments.
5928    # Libtool will interpret -1 as no limit whatsoever
5929    lt_cv_sys_max_cmd_len=-1;
5930    ;;
5931
5932  cygwin* | mingw*)
5933    # On Win9x/ME, this test blows up -- it succeeds, but takes
5934    # about 5 minutes as the teststring grows exponentially.
5935    # Worse, since 9x/ME are not pre-emptively multitasking,
5936    # you end up with a "frozen" computer, even though with patience
5937    # the test eventually succeeds (with a max line length of 256k).
5938    # Instead, let's just punt: use the minimum linelength reported by
5939    # all of the supported platforms: 8192 (on NT/2K/XP).
5940    lt_cv_sys_max_cmd_len=8192;
5941    ;;
5942
5943  amigaos*)
5944    # On AmigaOS with pdksh, this test takes hours, literally.
5945    # So we just punt and use a minimum line length of 8192.
5946    lt_cv_sys_max_cmd_len=8192;
5947    ;;
5948
5949  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5950    # This has been around since 386BSD, at least.  Likely further.
5951    if test -x /sbin/sysctl; then
5952      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5953    elif test -x /usr/sbin/sysctl; then
5954      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5955    else
5956      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5957    fi
5958    # And add a safety zone
5959    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5960    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5961    ;;
5962
5963  interix*)
5964    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5965    lt_cv_sys_max_cmd_len=196608
5966    ;;
5967
5968  osf*)
5969    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5970    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5971    # nice to cause kernel panics so lets avoid the loop below.
5972    # First set a reasonable default.
5973    lt_cv_sys_max_cmd_len=16384
5974    #
5975    if test -x /sbin/sysconfig; then
5976      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5977        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5978      esac
5979    fi
5980    ;;
5981  sco3.2v5*)
5982    lt_cv_sys_max_cmd_len=102400
5983    ;;
5984  sysv5* | sco5v6* | sysv4.2uw2*)
5985    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5986    if test -n "$kargmax"; then
5987      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5988    else
5989      lt_cv_sys_max_cmd_len=32768
5990    fi
5991    ;;
5992  *)
5993    # If test is not a shell built-in, we'll probably end up computing a
5994    # maximum length that is only half of the actual maximum length, but
5995    # we can't tell.
5996    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5997    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5998	       = "XX$teststring") >/dev/null 2>&1 &&
5999	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6000	    lt_cv_sys_max_cmd_len=$new_result &&
6001	    test $i != 17 # 1/2 MB should be enough
6002    do
6003      i=`expr $i + 1`
6004      teststring=$teststring$teststring
6005    done
6006    teststring=
6007    # Add a significant safety factor because C++ compilers can tack on massive
6008    # amounts of additional arguments before passing them to the linker.
6009    # It appears as though 1/2 is a usable value.
6010    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6011    ;;
6012  esac
6013
6014fi
6015
6016if test -n $lt_cv_sys_max_cmd_len ; then
6017  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6018echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6019else
6020  echo "$as_me:$LINENO: result: none" >&5
6021echo "${ECHO_T}none" >&6
6022fi
6023
6024
6025
6026
6027# Check for command to grab the raw symbol name followed by C symbol from nm.
6028echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6029echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6030if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6031  echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
6033
6034# These are sane defaults that work on at least a few old systems.
6035# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6036
6037# Character class describing NM global symbol codes.
6038symcode='[BCDEGRST]'
6039
6040# Regexp to match symbols that can be accessed directly from C.
6041sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6042
6043# Transform an extracted symbol line into a proper C declaration
6044lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6045
6046# Transform an extracted symbol line into symbol name and symbol address
6047lt_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'"
6048
6049# Define system-specific variables.
6050case $host_os in
6051aix*)
6052  symcode='[BCDT]'
6053  ;;
6054cygwin* | mingw* | pw32*)
6055  symcode='[ABCDGISTW]'
6056  ;;
6057hpux*) # Its linker distinguishes data from code symbols
6058  if test "$host_cpu" = ia64; then
6059    symcode='[ABCDEGRST]'
6060  fi
6061  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6062  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'"
6063  ;;
6064linux*)
6065  if test "$host_cpu" = ia64; then
6066    symcode='[ABCDGIRSTW]'
6067    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6068    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'"
6069  fi
6070  ;;
6071irix* | nonstopux*)
6072  symcode='[BCDEGRST]'
6073  ;;
6074osf*)
6075  symcode='[BCDEGQRST]'
6076  ;;
6077solaris*)
6078  symcode='[BDRT]'
6079  ;;
6080sco3.2v5*)
6081  symcode='[DT]'
6082  ;;
6083sysv4.2uw2*)
6084  symcode='[DT]'
6085  ;;
6086sysv5* | sco5v6* | unixware* | OpenUNIX*)
6087  symcode='[ABDT]'
6088  ;;
6089sysv4)
6090  symcode='[DFNSTU]'
6091  ;;
6092esac
6093
6094# Handle CRLF in mingw tool chain
6095opt_cr=
6096case $build_os in
6097mingw*)
6098  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6099  ;;
6100esac
6101
6102# If we're using GNU nm, then use its standard symbol codes.
6103case `$NM -V 2>&1` in
6104*GNU* | *'with BFD'*)
6105  symcode='[ABCDGIRSTW]' ;;
6106esac
6107
6108# Try without a prefix undercore, then with it.
6109for ac_symprfx in "" "_"; do
6110
6111  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6112  symxfrm="\\1 $ac_symprfx\\2 \\2"
6113
6114  # Write the raw and C identifiers.
6115  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6116
6117  # Check to see that the pipe works correctly.
6118  pipe_works=no
6119
6120  rm -f conftest*
6121  cat > conftest.$ac_ext <<EOF
6122#ifdef __cplusplus
6123extern "C" {
6124#endif
6125char nm_test_var;
6126void nm_test_func(){}
6127#ifdef __cplusplus
6128}
6129#endif
6130int main(){nm_test_var='a';nm_test_func();return(0);}
6131EOF
6132
6133  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6134  (eval $ac_compile) 2>&5
6135  ac_status=$?
6136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137  (exit $ac_status); }; then
6138    # Now try to grab the symbols.
6139    nlist=conftest.nm
6140    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6141  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6142  ac_status=$?
6143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144  (exit $ac_status); } && test -s "$nlist"; then
6145      # Try sorting and uniquifying the output.
6146      if sort "$nlist" | uniq > "$nlist"T; then
6147	mv -f "$nlist"T "$nlist"
6148      else
6149	rm -f "$nlist"T
6150      fi
6151
6152      # Make sure that we snagged all the symbols we need.
6153      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6154	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6155	  cat <<EOF > conftest.$ac_ext
6156#ifdef __cplusplus
6157extern "C" {
6158#endif
6159
6160EOF
6161	  # Now generate the symbol file.
6162	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6163
6164	  cat <<EOF >> conftest.$ac_ext
6165#if defined (__STDC__) && __STDC__
6166# define lt_ptr_t void *
6167#else
6168# define lt_ptr_t char *
6169# define const
6170#endif
6171
6172/* The mapping between symbol names and symbols. */
6173const struct {
6174  const char *name;
6175  lt_ptr_t address;
6176}
6177lt_preloaded_symbols[] =
6178{
6179EOF
6180	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6181	  cat <<\EOF >> conftest.$ac_ext
6182  {0, (lt_ptr_t) 0}
6183};
6184
6185#ifdef __cplusplus
6186}
6187#endif
6188EOF
6189	  # Now try linking the two files.
6190	  mv conftest.$ac_objext conftstm.$ac_objext
6191	  lt_save_LIBS="$LIBS"
6192	  lt_save_CFLAGS="$CFLAGS"
6193	  LIBS="conftstm.$ac_objext"
6194	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6195	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6196  (eval $ac_link) 2>&5
6197  ac_status=$?
6198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6200	    pipe_works=yes
6201	  fi
6202	  LIBS="$lt_save_LIBS"
6203	  CFLAGS="$lt_save_CFLAGS"
6204	else
6205	  echo "cannot find nm_test_func in $nlist" >&5
6206	fi
6207      else
6208	echo "cannot find nm_test_var in $nlist" >&5
6209      fi
6210    else
6211      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6212    fi
6213  else
6214    echo "$progname: failed program was:" >&5
6215    cat conftest.$ac_ext >&5
6216  fi
6217  rm -f conftest* conftst*
6218
6219  # Do not use the global_symbol_pipe unless it works.
6220  if test "$pipe_works" = yes; then
6221    break
6222  else
6223    lt_cv_sys_global_symbol_pipe=
6224  fi
6225done
6226
6227fi
6228
6229if test -z "$lt_cv_sys_global_symbol_pipe"; then
6230  lt_cv_sys_global_symbol_to_cdecl=
6231fi
6232if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6233  echo "$as_me:$LINENO: result: failed" >&5
6234echo "${ECHO_T}failed" >&6
6235else
6236  echo "$as_me:$LINENO: result: ok" >&5
6237echo "${ECHO_T}ok" >&6
6238fi
6239
6240echo "$as_me:$LINENO: checking for objdir" >&5
6241echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6242if test "${lt_cv_objdir+set}" = set; then
6243  echo $ECHO_N "(cached) $ECHO_C" >&6
6244else
6245  rm -f .libs 2>/dev/null
6246mkdir .libs 2>/dev/null
6247if test -d .libs; then
6248  lt_cv_objdir=.libs
6249else
6250  # MS-DOS does not allow filenames that begin with a dot.
6251  lt_cv_objdir=_libs
6252fi
6253rmdir .libs 2>/dev/null
6254fi
6255echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6256echo "${ECHO_T}$lt_cv_objdir" >&6
6257objdir=$lt_cv_objdir
6258
6259
6260
6261
6262
6263case $host_os in
6264aix3*)
6265  # AIX sometimes has problems with the GCC collect2 program.  For some
6266  # reason, if we set the COLLECT_NAMES environment variable, the problems
6267  # vanish in a puff of smoke.
6268  if test "X${COLLECT_NAMES+set}" != Xset; then
6269    COLLECT_NAMES=
6270    export COLLECT_NAMES
6271  fi
6272  ;;
6273esac
6274
6275# Sed substitution that helps us do robust quoting.  It backslashifies
6276# metacharacters that are still active within double-quoted strings.
6277Xsed='sed -e 1s/^X//'
6278sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6279
6280# Same as above, but do not quote variable references.
6281double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6282
6283# Sed substitution to delay expansion of an escaped shell variable in a
6284# double_quote_subst'ed string.
6285delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6286
6287# Sed substitution to avoid accidental globbing in evaled expressions
6288no_glob_subst='s/\*/\\\*/g'
6289
6290# Constants:
6291rm="rm -f"
6292
6293# Global variables:
6294default_ofile=libtool
6295can_build_shared=yes
6296
6297# All known linkers require a `.a' archive for static linking (except MSVC,
6298# which needs '.lib').
6299libext=a
6300ltmain="$ac_aux_dir/ltmain.sh"
6301ofile="$default_ofile"
6302with_gnu_ld="$lt_cv_prog_gnu_ld"
6303
6304if test -n "$ac_tool_prefix"; then
6305  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6306set dummy ${ac_tool_prefix}ar; ac_word=$2
6307echo "$as_me:$LINENO: checking for $ac_word" >&5
6308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6309if test "${ac_cv_prog_AR+set}" = set; then
6310  echo $ECHO_N "(cached) $ECHO_C" >&6
6311else
6312  if test -n "$AR"; then
6313  ac_cv_prog_AR="$AR" # Let the user override the test.
6314else
6315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316for as_dir in $PATH
6317do
6318  IFS=$as_save_IFS
6319  test -z "$as_dir" && as_dir=.
6320  for ac_exec_ext in '' $ac_executable_extensions; do
6321  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322    ac_cv_prog_AR="${ac_tool_prefix}ar"
6323    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6324    break 2
6325  fi
6326done
6327done
6328
6329fi
6330fi
6331AR=$ac_cv_prog_AR
6332if test -n "$AR"; then
6333  echo "$as_me:$LINENO: result: $AR" >&5
6334echo "${ECHO_T}$AR" >&6
6335else
6336  echo "$as_me:$LINENO: result: no" >&5
6337echo "${ECHO_T}no" >&6
6338fi
6339
6340fi
6341if test -z "$ac_cv_prog_AR"; then
6342  ac_ct_AR=$AR
6343  # Extract the first word of "ar", so it can be a program name with args.
6344set dummy ar; ac_word=$2
6345echo "$as_me:$LINENO: checking for $ac_word" >&5
6346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6347if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6348  echo $ECHO_N "(cached) $ECHO_C" >&6
6349else
6350  if test -n "$ac_ct_AR"; then
6351  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6352else
6353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354for as_dir in $PATH
6355do
6356  IFS=$as_save_IFS
6357  test -z "$as_dir" && as_dir=.
6358  for ac_exec_ext in '' $ac_executable_extensions; do
6359  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360    ac_cv_prog_ac_ct_AR="ar"
6361    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6362    break 2
6363  fi
6364done
6365done
6366
6367  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6368fi
6369fi
6370ac_ct_AR=$ac_cv_prog_ac_ct_AR
6371if test -n "$ac_ct_AR"; then
6372  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6373echo "${ECHO_T}$ac_ct_AR" >&6
6374else
6375  echo "$as_me:$LINENO: result: no" >&5
6376echo "${ECHO_T}no" >&6
6377fi
6378
6379  AR=$ac_ct_AR
6380else
6381  AR="$ac_cv_prog_AR"
6382fi
6383
6384if test -n "$ac_tool_prefix"; then
6385  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6386set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6387echo "$as_me:$LINENO: checking for $ac_word" >&5
6388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6389if test "${ac_cv_prog_RANLIB+set}" = set; then
6390  echo $ECHO_N "(cached) $ECHO_C" >&6
6391else
6392  if test -n "$RANLIB"; then
6393  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6394else
6395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396for as_dir in $PATH
6397do
6398  IFS=$as_save_IFS
6399  test -z "$as_dir" && as_dir=.
6400  for ac_exec_ext in '' $ac_executable_extensions; do
6401  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6402    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6403    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6404    break 2
6405  fi
6406done
6407done
6408
6409fi
6410fi
6411RANLIB=$ac_cv_prog_RANLIB
6412if test -n "$RANLIB"; then
6413  echo "$as_me:$LINENO: result: $RANLIB" >&5
6414echo "${ECHO_T}$RANLIB" >&6
6415else
6416  echo "$as_me:$LINENO: result: no" >&5
6417echo "${ECHO_T}no" >&6
6418fi
6419
6420fi
6421if test -z "$ac_cv_prog_RANLIB"; then
6422  ac_ct_RANLIB=$RANLIB
6423  # Extract the first word of "ranlib", so it can be a program name with args.
6424set dummy ranlib; ac_word=$2
6425echo "$as_me:$LINENO: checking for $ac_word" >&5
6426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6427if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6428  echo $ECHO_N "(cached) $ECHO_C" >&6
6429else
6430  if test -n "$ac_ct_RANLIB"; then
6431  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6432else
6433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH
6435do
6436  IFS=$as_save_IFS
6437  test -z "$as_dir" && as_dir=.
6438  for ac_exec_ext in '' $ac_executable_extensions; do
6439  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6440    ac_cv_prog_ac_ct_RANLIB="ranlib"
6441    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6442    break 2
6443  fi
6444done
6445done
6446
6447  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6448fi
6449fi
6450ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6451if test -n "$ac_ct_RANLIB"; then
6452  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6453echo "${ECHO_T}$ac_ct_RANLIB" >&6
6454else
6455  echo "$as_me:$LINENO: result: no" >&5
6456echo "${ECHO_T}no" >&6
6457fi
6458
6459  RANLIB=$ac_ct_RANLIB
6460else
6461  RANLIB="$ac_cv_prog_RANLIB"
6462fi
6463
6464if test -n "$ac_tool_prefix"; then
6465  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6466set dummy ${ac_tool_prefix}strip; ac_word=$2
6467echo "$as_me:$LINENO: checking for $ac_word" >&5
6468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6469if test "${ac_cv_prog_STRIP+set}" = set; then
6470  echo $ECHO_N "(cached) $ECHO_C" >&6
6471else
6472  if test -n "$STRIP"; then
6473  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6474else
6475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476for as_dir in $PATH
6477do
6478  IFS=$as_save_IFS
6479  test -z "$as_dir" && as_dir=.
6480  for ac_exec_ext in '' $ac_executable_extensions; do
6481  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6482    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6483    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484    break 2
6485  fi
6486done
6487done
6488
6489fi
6490fi
6491STRIP=$ac_cv_prog_STRIP
6492if test -n "$STRIP"; then
6493  echo "$as_me:$LINENO: result: $STRIP" >&5
6494echo "${ECHO_T}$STRIP" >&6
6495else
6496  echo "$as_me:$LINENO: result: no" >&5
6497echo "${ECHO_T}no" >&6
6498fi
6499
6500fi
6501if test -z "$ac_cv_prog_STRIP"; then
6502  ac_ct_STRIP=$STRIP
6503  # Extract the first word of "strip", so it can be a program name with args.
6504set dummy strip; ac_word=$2
6505echo "$as_me:$LINENO: checking for $ac_word" >&5
6506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6507if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6508  echo $ECHO_N "(cached) $ECHO_C" >&6
6509else
6510  if test -n "$ac_ct_STRIP"; then
6511  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6512else
6513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514for as_dir in $PATH
6515do
6516  IFS=$as_save_IFS
6517  test -z "$as_dir" && as_dir=.
6518  for ac_exec_ext in '' $ac_executable_extensions; do
6519  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6520    ac_cv_prog_ac_ct_STRIP="strip"
6521    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6522    break 2
6523  fi
6524done
6525done
6526
6527  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6528fi
6529fi
6530ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6531if test -n "$ac_ct_STRIP"; then
6532  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6533echo "${ECHO_T}$ac_ct_STRIP" >&6
6534else
6535  echo "$as_me:$LINENO: result: no" >&5
6536echo "${ECHO_T}no" >&6
6537fi
6538
6539  STRIP=$ac_ct_STRIP
6540else
6541  STRIP="$ac_cv_prog_STRIP"
6542fi
6543
6544
6545old_CC="$CC"
6546old_CFLAGS="$CFLAGS"
6547
6548# Set sane defaults for various variables
6549test -z "$AR" && AR=ar
6550test -z "$AR_FLAGS" && AR_FLAGS=cru
6551test -z "$AS" && AS=as
6552test -z "$CC" && CC=cc
6553test -z "$LTCC" && LTCC=$CC
6554test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6555test -z "$DLLTOOL" && DLLTOOL=dlltool
6556test -z "$LD" && LD=ld
6557test -z "$LN_S" && LN_S="ln -s"
6558test -z "$MAGIC_CMD" && MAGIC_CMD=file
6559test -z "$NM" && NM=nm
6560test -z "$SED" && SED=sed
6561test -z "$OBJDUMP" && OBJDUMP=objdump
6562test -z "$RANLIB" && RANLIB=:
6563test -z "$STRIP" && STRIP=:
6564test -z "$ac_objext" && ac_objext=o
6565
6566# Determine commands to create old-style static archives.
6567old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6568old_postinstall_cmds='chmod 644 $oldlib'
6569old_postuninstall_cmds=
6570
6571if test -n "$RANLIB"; then
6572  case $host_os in
6573  openbsd*)
6574    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6575    ;;
6576  *)
6577    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6578    ;;
6579  esac
6580  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6581fi
6582
6583for cc_temp in $compiler""; do
6584  case $cc_temp in
6585    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6586    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6587    \-*) ;;
6588    *) break;;
6589  esac
6590done
6591cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6592
6593
6594# Only perform the check for file, if the check method requires it
6595case $deplibs_check_method in
6596file_magic*)
6597  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6598    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6599echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6600if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6601  echo $ECHO_N "(cached) $ECHO_C" >&6
6602else
6603  case $MAGIC_CMD in
6604[\\/*] |  ?:[\\/]*)
6605  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6606  ;;
6607*)
6608  lt_save_MAGIC_CMD="$MAGIC_CMD"
6609  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6610  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6611  for ac_dir in $ac_dummy; do
6612    IFS="$lt_save_ifs"
6613    test -z "$ac_dir" && ac_dir=.
6614    if test -f $ac_dir/${ac_tool_prefix}file; then
6615      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6616      if test -n "$file_magic_test_file"; then
6617	case $deplibs_check_method in
6618	"file_magic "*)
6619	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6620	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6621	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6622	    $EGREP "$file_magic_regex" > /dev/null; then
6623	    :
6624	  else
6625	    cat <<EOF 1>&2
6626
6627*** Warning: the command libtool uses to detect shared libraries,
6628*** $file_magic_cmd, produces output that libtool cannot recognize.
6629*** The result is that libtool may fail to recognize shared libraries
6630*** as such.  This will affect the creation of libtool libraries that
6631*** depend on shared libraries, but programs linked with such libtool
6632*** libraries will work regardless of this problem.  Nevertheless, you
6633*** may want to report the problem to your system manager and/or to
6634*** bug-libtool@gnu.org
6635
6636EOF
6637	  fi ;;
6638	esac
6639      fi
6640      break
6641    fi
6642  done
6643  IFS="$lt_save_ifs"
6644  MAGIC_CMD="$lt_save_MAGIC_CMD"
6645  ;;
6646esac
6647fi
6648
6649MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6650if test -n "$MAGIC_CMD"; then
6651  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6652echo "${ECHO_T}$MAGIC_CMD" >&6
6653else
6654  echo "$as_me:$LINENO: result: no" >&5
6655echo "${ECHO_T}no" >&6
6656fi
6657
6658if test -z "$lt_cv_path_MAGIC_CMD"; then
6659  if test -n "$ac_tool_prefix"; then
6660    echo "$as_me:$LINENO: checking for file" >&5
6661echo $ECHO_N "checking for file... $ECHO_C" >&6
6662if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6663  echo $ECHO_N "(cached) $ECHO_C" >&6
6664else
6665  case $MAGIC_CMD in
6666[\\/*] |  ?:[\\/]*)
6667  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6668  ;;
6669*)
6670  lt_save_MAGIC_CMD="$MAGIC_CMD"
6671  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6672  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6673  for ac_dir in $ac_dummy; do
6674    IFS="$lt_save_ifs"
6675    test -z "$ac_dir" && ac_dir=.
6676    if test -f $ac_dir/file; then
6677      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6678      if test -n "$file_magic_test_file"; then
6679	case $deplibs_check_method in
6680	"file_magic "*)
6681	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6682	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6683	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6684	    $EGREP "$file_magic_regex" > /dev/null; then
6685	    :
6686	  else
6687	    cat <<EOF 1>&2
6688
6689*** Warning: the command libtool uses to detect shared libraries,
6690*** $file_magic_cmd, produces output that libtool cannot recognize.
6691*** The result is that libtool may fail to recognize shared libraries
6692*** as such.  This will affect the creation of libtool libraries that
6693*** depend on shared libraries, but programs linked with such libtool
6694*** libraries will work regardless of this problem.  Nevertheless, you
6695*** may want to report the problem to your system manager and/or to
6696*** bug-libtool@gnu.org
6697
6698EOF
6699	  fi ;;
6700	esac
6701      fi
6702      break
6703    fi
6704  done
6705  IFS="$lt_save_ifs"
6706  MAGIC_CMD="$lt_save_MAGIC_CMD"
6707  ;;
6708esac
6709fi
6710
6711MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6712if test -n "$MAGIC_CMD"; then
6713  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6714echo "${ECHO_T}$MAGIC_CMD" >&6
6715else
6716  echo "$as_me:$LINENO: result: no" >&5
6717echo "${ECHO_T}no" >&6
6718fi
6719
6720  else
6721    MAGIC_CMD=:
6722  fi
6723fi
6724
6725  fi
6726  ;;
6727esac
6728
6729enable_dlopen=no
6730enable_win32_dll=no
6731
6732# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6733if test "${enable_libtool_lock+set}" = set; then
6734  enableval="$enable_libtool_lock"
6735
6736fi;
6737test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6738
6739
6740# Check whether --with-pic or --without-pic was given.
6741if test "${with_pic+set}" = set; then
6742  withval="$with_pic"
6743  pic_mode="$withval"
6744else
6745  pic_mode=default
6746fi;
6747test -z "$pic_mode" && pic_mode=default
6748
6749# Use C for the default configuration in the libtool script
6750tagname=
6751lt_save_CC="$CC"
6752ac_ext=c
6753ac_cpp='$CPP $CPPFLAGS'
6754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6756ac_compiler_gnu=$ac_cv_c_compiler_gnu
6757
6758
6759# Source file extension for C test sources.
6760ac_ext=c
6761
6762# Object file extension for compiled C test sources.
6763objext=o
6764objext=$objext
6765
6766# Code to be used in simple compile tests
6767lt_simple_compile_test_code="int some_variable = 0;\n"
6768
6769# Code to be used in simple link tests
6770lt_simple_link_test_code='int main(){return(0);}\n'
6771
6772
6773# If no C compiler was specified, use CC.
6774LTCC=${LTCC-"$CC"}
6775
6776# If no C compiler flags were specified, use CFLAGS.
6777LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6778
6779# Allow CC to be a program name with arguments.
6780compiler=$CC
6781
6782
6783# save warnings/boilerplate of simple test code
6784ac_outfile=conftest.$ac_objext
6785printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6786eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6787_lt_compiler_boilerplate=`cat conftest.err`
6788$rm conftest*
6789
6790ac_outfile=conftest.$ac_objext
6791printf "$lt_simple_link_test_code" >conftest.$ac_ext
6792eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6793_lt_linker_boilerplate=`cat conftest.err`
6794$rm conftest*
6795
6796
6797
6798lt_prog_compiler_no_builtin_flag=
6799
6800if test "$GCC" = yes; then
6801  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6802
6803
6804echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6805echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6806if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6807  echo $ECHO_N "(cached) $ECHO_C" >&6
6808else
6809  lt_cv_prog_compiler_rtti_exceptions=no
6810  ac_outfile=conftest.$ac_objext
6811   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6812   lt_compiler_flag="-fno-rtti -fno-exceptions"
6813   # Insert the option either (1) after the last *FLAGS variable, or
6814   # (2) before a word containing "conftest.", or (3) at the end.
6815   # Note that $ac_compile itself does not contain backslashes and begins
6816   # with a dollar sign (not a hyphen), so the echo should work correctly.
6817   # The option is referenced via a variable to avoid confusing sed.
6818   lt_compile=`echo "$ac_compile" | $SED \
6819   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6820   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6821   -e 's:$: $lt_compiler_flag:'`
6822   (eval echo "\"\$as_me:6822: $lt_compile\"" >&5)
6823   (eval "$lt_compile" 2>conftest.err)
6824   ac_status=$?
6825   cat conftest.err >&5
6826   echo "$as_me:6826: \$? = $ac_status" >&5
6827   if (exit $ac_status) && test -s "$ac_outfile"; then
6828     # The compiler can only warn and ignore the option if not recognized
6829     # So say no if there are warnings other than the usual output.
6830     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6831     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6832     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6833       lt_cv_prog_compiler_rtti_exceptions=yes
6834     fi
6835   fi
6836   $rm conftest*
6837
6838fi
6839echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6840echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6841
6842if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6843    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6844else
6845    :
6846fi
6847
6848fi
6849
6850lt_prog_compiler_wl=
6851lt_prog_compiler_pic=
6852lt_prog_compiler_static=
6853
6854echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6855echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6856
6857  if test "$GCC" = yes; then
6858    lt_prog_compiler_wl='-Wl,'
6859    lt_prog_compiler_static='-static'
6860
6861    case $host_os in
6862      aix*)
6863      # All AIX code is PIC.
6864      if test "$host_cpu" = ia64; then
6865	# AIX 5 now supports IA64 processor
6866	lt_prog_compiler_static='-Bstatic'
6867      fi
6868      ;;
6869
6870    amigaos*)
6871      # FIXME: we need at least 68020 code to build shared libraries, but
6872      # adding the `-m68020' flag to GCC prevents building anything better,
6873      # like `-m68040'.
6874      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6875      ;;
6876
6877    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6878      # PIC is the default for these OSes.
6879      ;;
6880
6881    mingw* | pw32* | os2*)
6882      # This hack is so that the source file can tell whether it is being
6883      # built for inclusion in a dll (and should export symbols for example).
6884      lt_prog_compiler_pic='-DDLL_EXPORT'
6885      ;;
6886
6887    darwin* | rhapsody*)
6888      # PIC is the default on this platform
6889      # Common symbols not allowed in MH_DYLIB files
6890      lt_prog_compiler_pic='-fno-common'
6891      ;;
6892
6893    interix3*)
6894      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6895      # Instead, we relocate shared libraries at runtime.
6896      ;;
6897
6898    msdosdjgpp*)
6899      # Just because we use GCC doesn't mean we suddenly get shared libraries
6900      # on systems that don't support them.
6901      lt_prog_compiler_can_build_shared=no
6902      enable_shared=no
6903      ;;
6904
6905    sysv4*MP*)
6906      if test -d /usr/nec; then
6907	lt_prog_compiler_pic=-Kconform_pic
6908      fi
6909      ;;
6910
6911    hpux*)
6912      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6913      # not for PA HP-UX.
6914      case $host_cpu in
6915      hppa*64*|ia64*)
6916	# +Z the default
6917	;;
6918      *)
6919	lt_prog_compiler_pic='-fPIC'
6920	;;
6921      esac
6922      ;;
6923
6924    *)
6925      lt_prog_compiler_pic='-fPIC'
6926      ;;
6927    esac
6928  else
6929    # PORTME Check for flag to pass linker flags through the system compiler.
6930    case $host_os in
6931    aix*)
6932      lt_prog_compiler_wl='-Wl,'
6933      if test "$host_cpu" = ia64; then
6934	# AIX 5 now supports IA64 processor
6935	lt_prog_compiler_static='-Bstatic'
6936      else
6937	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6938      fi
6939      ;;
6940      darwin*)
6941        # PIC is the default on this platform
6942        # Common symbols not allowed in MH_DYLIB files
6943       case $cc_basename in
6944         xlc*)
6945         lt_prog_compiler_pic='-qnocommon'
6946         lt_prog_compiler_wl='-Wl,'
6947         ;;
6948       esac
6949       ;;
6950
6951    mingw* | pw32* | os2*)
6952      # This hack is so that the source file can tell whether it is being
6953      # built for inclusion in a dll (and should export symbols for example).
6954      lt_prog_compiler_pic='-DDLL_EXPORT'
6955      ;;
6956
6957    hpux9* | hpux10* | hpux11*)
6958      lt_prog_compiler_wl='-Wl,'
6959      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6960      # not for PA HP-UX.
6961      case $host_cpu in
6962      hppa*64*|ia64*)
6963	# +Z the default
6964	;;
6965      *)
6966	lt_prog_compiler_pic='+Z'
6967	;;
6968      esac
6969      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6970      lt_prog_compiler_static='${wl}-a ${wl}archive'
6971      ;;
6972
6973    irix5* | irix6* | nonstopux*)
6974      lt_prog_compiler_wl='-Wl,'
6975      # PIC (with -KPIC) is the default.
6976      lt_prog_compiler_static='-non_shared'
6977      ;;
6978
6979    newsos6)
6980      lt_prog_compiler_pic='-KPIC'
6981      lt_prog_compiler_static='-Bstatic'
6982      ;;
6983
6984    linux*)
6985      case $cc_basename in
6986      icc* | ecc*)
6987	lt_prog_compiler_wl='-Wl,'
6988	lt_prog_compiler_pic='-KPIC'
6989	lt_prog_compiler_static='-static'
6990        ;;
6991      pgcc* | pgf77* | pgf90* | pgf95*)
6992        # Portland Group compilers (*not* the Pentium gcc compiler,
6993	# which looks to be a dead project)
6994	lt_prog_compiler_wl='-Wl,'
6995	lt_prog_compiler_pic='-fpic'
6996	lt_prog_compiler_static='-Bstatic'
6997        ;;
6998      ccc*)
6999        lt_prog_compiler_wl='-Wl,'
7000        # All Alpha code is PIC.
7001        lt_prog_compiler_static='-non_shared'
7002        ;;
7003      esac
7004      ;;
7005
7006    osf3* | osf4* | osf5*)
7007      lt_prog_compiler_wl='-Wl,'
7008      # All OSF/1 code is PIC.
7009      lt_prog_compiler_static='-non_shared'
7010      ;;
7011
7012    solaris*)
7013      lt_prog_compiler_pic='-KPIC'
7014      lt_prog_compiler_static='-Bstatic'
7015      case $cc_basename in
7016      f77* | f90* | f95*)
7017	lt_prog_compiler_wl='-Qoption ld ';;
7018      *)
7019	lt_prog_compiler_wl='-Wl,';;
7020      esac
7021      ;;
7022
7023    sunos4*)
7024      lt_prog_compiler_wl='-Qoption ld '
7025      lt_prog_compiler_pic='-PIC'
7026      lt_prog_compiler_static='-Bstatic'
7027      ;;
7028
7029    sysv4 | sysv4.2uw2* | sysv4.3*)
7030      lt_prog_compiler_wl='-Wl,'
7031      lt_prog_compiler_pic='-KPIC'
7032      lt_prog_compiler_static='-Bstatic'
7033      ;;
7034
7035    sysv4*MP*)
7036      if test -d /usr/nec ;then
7037	lt_prog_compiler_pic='-Kconform_pic'
7038	lt_prog_compiler_static='-Bstatic'
7039      fi
7040      ;;
7041
7042    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7043      lt_prog_compiler_wl='-Wl,'
7044      lt_prog_compiler_pic='-KPIC'
7045      lt_prog_compiler_static='-Bstatic'
7046      ;;
7047
7048    unicos*)
7049      lt_prog_compiler_wl='-Wl,'
7050      lt_prog_compiler_can_build_shared=no
7051      ;;
7052
7053    uts4*)
7054      lt_prog_compiler_pic='-pic'
7055      lt_prog_compiler_static='-Bstatic'
7056      ;;
7057
7058    *)
7059      lt_prog_compiler_can_build_shared=no
7060      ;;
7061    esac
7062  fi
7063
7064echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7065echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7066
7067#
7068# Check to make sure the PIC flag actually works.
7069#
7070if test -n "$lt_prog_compiler_pic"; then
7071
7072echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7073echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7074if test "${lt_prog_compiler_pic_works+set}" = set; then
7075  echo $ECHO_N "(cached) $ECHO_C" >&6
7076else
7077  lt_prog_compiler_pic_works=no
7078  ac_outfile=conftest.$ac_objext
7079   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7080   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7081   # Insert the option either (1) after the last *FLAGS variable, or
7082   # (2) before a word containing "conftest.", or (3) at the end.
7083   # Note that $ac_compile itself does not contain backslashes and begins
7084   # with a dollar sign (not a hyphen), so the echo should work correctly.
7085   # The option is referenced via a variable to avoid confusing sed.
7086   lt_compile=`echo "$ac_compile" | $SED \
7087   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7088   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7089   -e 's:$: $lt_compiler_flag:'`
7090   (eval echo "\"\$as_me:7090: $lt_compile\"" >&5)
7091   (eval "$lt_compile" 2>conftest.err)
7092   ac_status=$?
7093   cat conftest.err >&5
7094   echo "$as_me:7094: \$? = $ac_status" >&5
7095   if (exit $ac_status) && test -s "$ac_outfile"; then
7096     # The compiler can only warn and ignore the option if not recognized
7097     # So say no if there are warnings other than the usual output.
7098     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7099     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7100     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7101       lt_prog_compiler_pic_works=yes
7102     fi
7103   fi
7104   $rm conftest*
7105
7106fi
7107echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7108echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7109
7110if test x"$lt_prog_compiler_pic_works" = xyes; then
7111    case $lt_prog_compiler_pic in
7112     "" | " "*) ;;
7113     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7114     esac
7115else
7116    lt_prog_compiler_pic=
7117     lt_prog_compiler_can_build_shared=no
7118fi
7119
7120fi
7121case $host_os in
7122  # For platforms which do not support PIC, -DPIC is meaningless:
7123  *djgpp*)
7124    lt_prog_compiler_pic=
7125    ;;
7126  *)
7127    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7128    ;;
7129esac
7130
7131#
7132# Check to make sure the static flag actually works.
7133#
7134wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7135echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7136echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7137if test "${lt_prog_compiler_static_works+set}" = set; then
7138  echo $ECHO_N "(cached) $ECHO_C" >&6
7139else
7140  lt_prog_compiler_static_works=no
7141   save_LDFLAGS="$LDFLAGS"
7142   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7143   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7144   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7145     # The linker can only warn and ignore the option if not recognized
7146     # So say no if there are warnings
7147     if test -s conftest.err; then
7148       # Append any errors to the config.log.
7149       cat conftest.err 1>&5
7150       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7151       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7152       if diff conftest.exp conftest.er2 >/dev/null; then
7153         lt_prog_compiler_static_works=yes
7154       fi
7155     else
7156       lt_prog_compiler_static_works=yes
7157     fi
7158   fi
7159   $rm conftest*
7160   LDFLAGS="$save_LDFLAGS"
7161
7162fi
7163echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7164echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7165
7166if test x"$lt_prog_compiler_static_works" = xyes; then
7167    :
7168else
7169    lt_prog_compiler_static=
7170fi
7171
7172
7173echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7174echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7175if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7176  echo $ECHO_N "(cached) $ECHO_C" >&6
7177else
7178  lt_cv_prog_compiler_c_o=no
7179   $rm -r conftest 2>/dev/null
7180   mkdir conftest
7181   cd conftest
7182   mkdir out
7183   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7184
7185   lt_compiler_flag="-o out/conftest2.$ac_objext"
7186   # Insert the option either (1) after the last *FLAGS variable, or
7187   # (2) before a word containing "conftest.", or (3) at the end.
7188   # Note that $ac_compile itself does not contain backslashes and begins
7189   # with a dollar sign (not a hyphen), so the echo should work correctly.
7190   lt_compile=`echo "$ac_compile" | $SED \
7191   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7192   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7193   -e 's:$: $lt_compiler_flag:'`
7194   (eval echo "\"\$as_me:7194: $lt_compile\"" >&5)
7195   (eval "$lt_compile" 2>out/conftest.err)
7196   ac_status=$?
7197   cat out/conftest.err >&5
7198   echo "$as_me:7198: \$? = $ac_status" >&5
7199   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7200   then
7201     # The compiler can only warn and ignore the option if not recognized
7202     # So say no if there are warnings
7203     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7204     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7205     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7206       lt_cv_prog_compiler_c_o=yes
7207     fi
7208   fi
7209   chmod u+w . 2>&5
7210   $rm conftest*
7211   # SGI C++ compiler will create directory out/ii_files/ for
7212   # template instantiation
7213   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7214   $rm out/* && rmdir out
7215   cd ..
7216   rmdir conftest
7217   $rm conftest*
7218
7219fi
7220echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7221echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7222
7223
7224hard_links="nottested"
7225if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7226  # do not overwrite the value of need_locks provided by the user
7227  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7228echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7229  hard_links=yes
7230  $rm conftest*
7231  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7232  touch conftest.a
7233  ln conftest.a conftest.b 2>&5 || hard_links=no
7234  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7235  echo "$as_me:$LINENO: result: $hard_links" >&5
7236echo "${ECHO_T}$hard_links" >&6
7237  if test "$hard_links" = no; then
7238    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7239echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7240    need_locks=warn
7241  fi
7242else
7243  need_locks=no
7244fi
7245
7246echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7247echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7248
7249  runpath_var=
7250  allow_undefined_flag=
7251  enable_shared_with_static_runtimes=no
7252  archive_cmds=
7253  archive_expsym_cmds=
7254  old_archive_From_new_cmds=
7255  old_archive_from_expsyms_cmds=
7256  export_dynamic_flag_spec=
7257  whole_archive_flag_spec=
7258  thread_safe_flag_spec=
7259  hardcode_libdir_flag_spec=
7260  hardcode_libdir_flag_spec_ld=
7261  hardcode_libdir_separator=
7262  hardcode_direct=no
7263  hardcode_minus_L=no
7264  hardcode_shlibpath_var=unsupported
7265  link_all_deplibs=unknown
7266  hardcode_automatic=no
7267  module_cmds=
7268  module_expsym_cmds=
7269  always_export_symbols=no
7270  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7271  # include_expsyms should be a list of space-separated symbols to be *always*
7272  # included in the symbol list
7273  include_expsyms=
7274  # exclude_expsyms can be an extended regexp of symbols to exclude
7275  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7276  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7277  # as well as any symbol that contains `d'.
7278  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7279  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7280  # platforms (ab)use it in PIC code, but their linkers get confused if
7281  # the symbol is explicitly referenced.  Since portable code cannot
7282  # rely on this symbol name, it's probably fine to never include it in
7283  # preloaded symbol tables.
7284  extract_expsyms_cmds=
7285  # Just being paranoid about ensuring that cc_basename is set.
7286  for cc_temp in $compiler""; do
7287  case $cc_temp in
7288    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7289    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7290    \-*) ;;
7291    *) break;;
7292  esac
7293done
7294cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7295
7296  case $host_os in
7297  cygwin* | mingw* | pw32*)
7298    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7299    # When not using gcc, we currently assume that we are using
7300    # Microsoft Visual C++.
7301    if test "$GCC" != yes; then
7302      with_gnu_ld=no
7303    fi
7304    ;;
7305  interix*)
7306    # we just hope/assume this is gcc and not c89 (= MSVC++)
7307    with_gnu_ld=yes
7308    ;;
7309  openbsd*)
7310    with_gnu_ld=no
7311    ;;
7312  esac
7313
7314  ld_shlibs=yes
7315  if test "$with_gnu_ld" = yes; then
7316    # If archive_cmds runs LD, not CC, wlarc should be empty
7317    wlarc='${wl}'
7318
7319    # Set some defaults for GNU ld with shared library support. These
7320    # are reset later if shared libraries are not supported. Putting them
7321    # here allows them to be overridden if necessary.
7322    runpath_var=LD_RUN_PATH
7323    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7324    export_dynamic_flag_spec='${wl}--export-dynamic'
7325    # ancient GNU ld didn't support --whole-archive et. al.
7326    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7327	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7328      else
7329  	whole_archive_flag_spec=
7330    fi
7331    supports_anon_versioning=no
7332    case `$LD -v 2>/dev/null` in
7333      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7334      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7335      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7336      *\ 2.11.*) ;; # other 2.11 versions
7337      *) supports_anon_versioning=yes ;;
7338    esac
7339
7340    # See if GNU ld supports shared libraries.
7341    case $host_os in
7342    aix3* | aix4* | aix5*)
7343      # On AIX/PPC, the GNU linker is very broken
7344      if test "$host_cpu" != ia64; then
7345	ld_shlibs=no
7346	cat <<EOF 1>&2
7347
7348*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7349*** to be unable to reliably create shared libraries on AIX.
7350*** Therefore, libtool is disabling shared libraries support.  If you
7351*** really care for shared libraries, you may want to modify your PATH
7352*** so that a non-GNU linker is found, and then restart.
7353
7354EOF
7355      fi
7356      ;;
7357
7358    amigaos*)
7359      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)'
7360      hardcode_libdir_flag_spec='-L$libdir'
7361      hardcode_minus_L=yes
7362
7363      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7364      # that the semantics of dynamic libraries on AmigaOS, at least up
7365      # to version 4, is to share data among multiple programs linked
7366      # with the same dynamic library.  Since this doesn't match the
7367      # behavior of shared libraries on other platforms, we can't use
7368      # them.
7369      ld_shlibs=no
7370      ;;
7371
7372    beos*)
7373      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7374	allow_undefined_flag=unsupported
7375	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7376	# support --undefined.  This deserves some investigation.  FIXME
7377	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7378      else
7379	ld_shlibs=no
7380      fi
7381      ;;
7382
7383    cygwin* | mingw* | pw32*)
7384      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7385      # as there is no search path for DLLs.
7386      hardcode_libdir_flag_spec='-L$libdir'
7387      allow_undefined_flag=unsupported
7388      always_export_symbols=no
7389      enable_shared_with_static_runtimes=yes
7390      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7391
7392      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7393        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7394	# If the export-symbols file already is a .def file (1st line
7395	# is EXPORTS), use it as is; otherwise, prepend...
7396	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7397	  cp $export_symbols $output_objdir/$soname.def;
7398	else
7399	  echo EXPORTS > $output_objdir/$soname.def;
7400	  cat $export_symbols >> $output_objdir/$soname.def;
7401	fi~
7402	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7403      else
7404	ld_shlibs=no
7405      fi
7406      ;;
7407
7408    interix3*)
7409      hardcode_direct=no
7410      hardcode_shlibpath_var=no
7411      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7412      export_dynamic_flag_spec='${wl}-E'
7413      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7414      # Instead, shared libraries are loaded at an image base (0x10000000 by
7415      # default) and relocated if they conflict, which is a slow very memory
7416      # consuming and fragmenting process.  To avoid this, we pick a random,
7417      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7418      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7419      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7420      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'
7421      ;;
7422
7423    linux*)
7424      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7425	tmp_addflag=
7426	case $cc_basename,$host_cpu in
7427	pgcc*)				# Portland Group C compiler
7428	  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'
7429	  tmp_addflag=' $pic_flag'
7430	  ;;
7431	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7432	  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'
7433	  tmp_addflag=' $pic_flag -Mnomain' ;;
7434	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7435	  tmp_addflag=' -i_dynamic' ;;
7436	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7437	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7438	ifc* | ifort*)			# Intel Fortran compiler
7439	  tmp_addflag=' -nofor_main' ;;
7440	esac
7441	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7442
7443	if test $supports_anon_versioning = yes; then
7444	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7445  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7446  $echo "local: *; };" >> $output_objdir/$libname.ver~
7447	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7448	fi
7449      else
7450	ld_shlibs=no
7451      fi
7452      ;;
7453
7454    netbsd*)
7455      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7456	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7457	wlarc=
7458      else
7459	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7460	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7461      fi
7462      ;;
7463
7464    solaris*)
7465      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7466	ld_shlibs=no
7467	cat <<EOF 1>&2
7468
7469*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7470*** create shared libraries on Solaris systems.  Therefore, libtool
7471*** is disabling shared libraries support.  We urge you to upgrade GNU
7472*** binutils to release 2.9.1 or newer.  Another option is to modify
7473*** your PATH or compiler configuration so that the native linker is
7474*** used, and then restart.
7475
7476EOF
7477      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7478	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7479	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7480      else
7481	ld_shlibs=no
7482      fi
7483      ;;
7484
7485    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7486      case `$LD -v 2>&1` in
7487        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7488	ld_shlibs=no
7489	cat <<_LT_EOF 1>&2
7490
7491*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7492*** reliably create shared libraries on SCO systems.  Therefore, libtool
7493*** is disabling shared libraries support.  We urge you to upgrade GNU
7494*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7495*** your PATH or compiler configuration so that the native linker is
7496*** used, and then restart.
7497
7498_LT_EOF
7499	;;
7500	*)
7501	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7502	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7503	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7504	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7505	  else
7506	    ld_shlibs=no
7507	  fi
7508	;;
7509      esac
7510      ;;
7511
7512    sunos4*)
7513      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7514      wlarc=
7515      hardcode_direct=yes
7516      hardcode_shlibpath_var=no
7517      ;;
7518
7519    *)
7520      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7521	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7522	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7523      else
7524	ld_shlibs=no
7525      fi
7526      ;;
7527    esac
7528
7529    if test "$ld_shlibs" = no; then
7530      runpath_var=
7531      hardcode_libdir_flag_spec=
7532      export_dynamic_flag_spec=
7533      whole_archive_flag_spec=
7534    fi
7535  else
7536    # PORTME fill in a description of your system's linker (not GNU ld)
7537    case $host_os in
7538    aix3*)
7539      allow_undefined_flag=unsupported
7540      always_export_symbols=yes
7541      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'
7542      # Note: this linker hardcodes the directories in LIBPATH if there
7543      # are no directories specified by -L.
7544      hardcode_minus_L=yes
7545      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7546	# Neither direct hardcoding nor static linking is supported with a
7547	# broken collect2.
7548	hardcode_direct=unsupported
7549      fi
7550      ;;
7551
7552    aix4* | aix5*)
7553      if test "$host_cpu" = ia64; then
7554	# On IA64, the linker does run time linking by default, so we don't
7555	# have to do anything special.
7556	aix_use_runtimelinking=no
7557	exp_sym_flag='-Bexport'
7558	no_entry_flag=""
7559      else
7560	# If we're using GNU nm, then we don't want the "-C" option.
7561	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7562	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7563	  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'
7564	else
7565	  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'
7566	fi
7567	aix_use_runtimelinking=no
7568
7569	# Test if we are trying to use run time linking or normal
7570	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7571	# need to do runtime linking.
7572	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7573	  for ld_flag in $LDFLAGS; do
7574  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7575  	    aix_use_runtimelinking=yes
7576  	    break
7577  	  fi
7578	  done
7579	  ;;
7580	esac
7581
7582	exp_sym_flag='-bexport'
7583	no_entry_flag='-bnoentry'
7584      fi
7585
7586      # When large executables or shared objects are built, AIX ld can
7587      # have problems creating the table of contents.  If linking a library
7588      # or program results in "error TOC overflow" add -mminimal-toc to
7589      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7590      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7591
7592      archive_cmds=''
7593      hardcode_direct=yes
7594      hardcode_libdir_separator=':'
7595      link_all_deplibs=yes
7596
7597      if test "$GCC" = yes; then
7598	case $host_os in aix4.[012]|aix4.[012].*)
7599	# We only want to do this on AIX 4.2 and lower, the check
7600	# below for broken collect2 doesn't work under 4.3+
7601	  collect2name=`${CC} -print-prog-name=collect2`
7602	  if test -f "$collect2name" && \
7603  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7604	  then
7605  	  # We have reworked collect2
7606  	  hardcode_direct=yes
7607	  else
7608  	  # We have old collect2
7609  	  hardcode_direct=unsupported
7610  	  # It fails to find uninstalled libraries when the uninstalled
7611  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7612  	  # to unsupported forces relinking
7613  	  hardcode_minus_L=yes
7614  	  hardcode_libdir_flag_spec='-L$libdir'
7615  	  hardcode_libdir_separator=
7616	  fi
7617	  ;;
7618	esac
7619	shared_flag='-shared'
7620	if test "$aix_use_runtimelinking" = yes; then
7621	  shared_flag="$shared_flag "'${wl}-G'
7622	fi
7623      else
7624	# not using gcc
7625	if test "$host_cpu" = ia64; then
7626  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7627  	# chokes on -Wl,-G. The following line is correct:
7628	  shared_flag='-G'
7629	else
7630	  if test "$aix_use_runtimelinking" = yes; then
7631	    shared_flag='${wl}-G'
7632	  else
7633	    shared_flag='${wl}-bM:SRE'
7634	  fi
7635	fi
7636      fi
7637
7638      # It seems that -bexpall does not export symbols beginning with
7639      # underscore (_), so it is better to generate a list of symbols to export.
7640      always_export_symbols=yes
7641      if test "$aix_use_runtimelinking" = yes; then
7642	# Warning - without using the other runtime loading flags (-brtl),
7643	# -berok will link without error, but may produce a broken library.
7644	allow_undefined_flag='-berok'
7645       # Determine the default libpath from the value encoded in an empty executable.
7646       cat >conftest.$ac_ext <<_ACEOF
7647/* confdefs.h.  */
7648_ACEOF
7649cat confdefs.h >>conftest.$ac_ext
7650cat >>conftest.$ac_ext <<_ACEOF
7651/* end confdefs.h.  */
7652
7653int
7654main ()
7655{
7656
7657  ;
7658  return 0;
7659}
7660_ACEOF
7661rm -f conftest.$ac_objext conftest$ac_exeext
7662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663  (eval $ac_link) 2>conftest.er1
7664  ac_status=$?
7665  grep -v '^ *+' conftest.er1 >conftest.err
7666  rm -f conftest.er1
7667  cat conftest.err >&5
7668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669  (exit $ac_status); } &&
7670	 { ac_try='test -z "$ac_c_werror_flag"
7671			 || test ! -s conftest.err'
7672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673  (eval $ac_try) 2>&5
7674  ac_status=$?
7675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676  (exit $ac_status); }; } &&
7677	 { ac_try='test -s conftest$ac_exeext'
7678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679  (eval $ac_try) 2>&5
7680  ac_status=$?
7681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682  (exit $ac_status); }; }; then
7683
7684aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7685}'`
7686# Check for a 64-bit object if we didn't find anything.
7687if 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; }
7688}'`; fi
7689else
7690  echo "$as_me: failed program was:" >&5
7691sed 's/^/| /' conftest.$ac_ext >&5
7692
7693fi
7694rm -f conftest.err conftest.$ac_objext \
7695      conftest$ac_exeext conftest.$ac_ext
7696if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7697
7698       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7699	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"
7700       else
7701	if test "$host_cpu" = ia64; then
7702	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7703	  allow_undefined_flag="-z nodefs"
7704	  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"
7705	else
7706	 # Determine the default libpath from the value encoded in an empty executable.
7707	 cat >conftest.$ac_ext <<_ACEOF
7708/* confdefs.h.  */
7709_ACEOF
7710cat confdefs.h >>conftest.$ac_ext
7711cat >>conftest.$ac_ext <<_ACEOF
7712/* end confdefs.h.  */
7713
7714int
7715main ()
7716{
7717
7718  ;
7719  return 0;
7720}
7721_ACEOF
7722rm -f conftest.$ac_objext conftest$ac_exeext
7723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7724  (eval $ac_link) 2>conftest.er1
7725  ac_status=$?
7726  grep -v '^ *+' conftest.er1 >conftest.err
7727  rm -f conftest.er1
7728  cat conftest.err >&5
7729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730  (exit $ac_status); } &&
7731	 { ac_try='test -z "$ac_c_werror_flag"
7732			 || test ! -s conftest.err'
7733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734  (eval $ac_try) 2>&5
7735  ac_status=$?
7736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737  (exit $ac_status); }; } &&
7738	 { ac_try='test -s conftest$ac_exeext'
7739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740  (eval $ac_try) 2>&5
7741  ac_status=$?
7742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743  (exit $ac_status); }; }; then
7744
7745aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7746}'`
7747# Check for a 64-bit object if we didn't find anything.
7748if 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; }
7749}'`; fi
7750else
7751  echo "$as_me: failed program was:" >&5
7752sed 's/^/| /' conftest.$ac_ext >&5
7753
7754fi
7755rm -f conftest.err conftest.$ac_objext \
7756      conftest$ac_exeext conftest.$ac_ext
7757if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7758
7759	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7760	  # Warning - without using the other run time loading flags,
7761	  # -berok will link without error, but may produce a broken library.
7762	  no_undefined_flag=' ${wl}-bernotok'
7763	  allow_undefined_flag=' ${wl}-berok'
7764	  # Exported symbols can be pulled into shared objects from archives
7765	  whole_archive_flag_spec='$convenience'
7766	  archive_cmds_need_lc=yes
7767	  # This is similar to how AIX traditionally builds its shared libraries.
7768	  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'
7769	fi
7770      fi
7771      ;;
7772
7773    amigaos*)
7774      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)'
7775      hardcode_libdir_flag_spec='-L$libdir'
7776      hardcode_minus_L=yes
7777      # see comment about different semantics on the GNU ld section
7778      ld_shlibs=no
7779      ;;
7780
7781    bsdi[45]*)
7782      export_dynamic_flag_spec=-rdynamic
7783      ;;
7784
7785    cygwin* | mingw* | pw32*)
7786      # When not using gcc, we currently assume that we are using
7787      # Microsoft Visual C++.
7788      # hardcode_libdir_flag_spec is actually meaningless, as there is
7789      # no search path for DLLs.
7790      hardcode_libdir_flag_spec=' '
7791      allow_undefined_flag=unsupported
7792      # Tell ltmain to make .lib files, not .a files.
7793      libext=lib
7794      # Tell ltmain to make .dll files, not .so files.
7795      shrext_cmds=".dll"
7796      # FIXME: Setting linknames here is a bad hack.
7797      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7798      # The linker will automatically build a .lib file if we build a DLL.
7799      old_archive_From_new_cmds='true'
7800      # FIXME: Should let the user specify the lib program.
7801      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7802      fix_srcfile_path='`cygpath -w "$srcfile"`'
7803      enable_shared_with_static_runtimes=yes
7804      ;;
7805
7806    darwin* | rhapsody*)
7807      case $host_os in
7808        rhapsody* | darwin1.[012])
7809         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7810         ;;
7811       *) # Darwin 1.3 on
7812         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7813           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7814         else
7815           case ${MACOSX_DEPLOYMENT_TARGET} in
7816             10.[012])
7817               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7818               ;;
7819             10.*)
7820               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7821               ;;
7822           esac
7823         fi
7824         ;;
7825      esac
7826      archive_cmds_need_lc=no
7827      hardcode_direct=no
7828      hardcode_automatic=yes
7829      hardcode_shlibpath_var=unsupported
7830      whole_archive_flag_spec=''
7831      link_all_deplibs=yes
7832    if test "$GCC" = yes ; then
7833    	output_verbose_link_cmd='echo'
7834        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7835      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7836      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7837      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}'
7838      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}'
7839    else
7840      case $cc_basename in
7841        xlc*)
7842         output_verbose_link_cmd='echo'
7843         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7844         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7845          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7846         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}'
7847          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}'
7848          ;;
7849       *)
7850         ld_shlibs=no
7851          ;;
7852      esac
7853    fi
7854      ;;
7855
7856    dgux*)
7857      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7858      hardcode_libdir_flag_spec='-L$libdir'
7859      hardcode_shlibpath_var=no
7860      ;;
7861
7862    freebsd1*)
7863      ld_shlibs=no
7864      ;;
7865
7866    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7867    # support.  Future versions do this automatically, but an explicit c++rt0.o
7868    # does not break anything, and helps significantly (at the cost of a little
7869    # extra space).
7870    freebsd2.2*)
7871      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7872      hardcode_libdir_flag_spec='-R$libdir'
7873      hardcode_direct=yes
7874      hardcode_shlibpath_var=no
7875      ;;
7876
7877    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7878    freebsd2*)
7879      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7880      hardcode_direct=yes
7881      hardcode_minus_L=yes
7882      hardcode_shlibpath_var=no
7883      ;;
7884
7885    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7886    freebsd* | kfreebsd*-gnu | dragonfly*)
7887      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7888      hardcode_libdir_flag_spec='-R$libdir'
7889      hardcode_direct=yes
7890      hardcode_shlibpath_var=no
7891      ;;
7892
7893    hpux9*)
7894      if test "$GCC" = yes; then
7895	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'
7896      else
7897	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'
7898      fi
7899      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7900      hardcode_libdir_separator=:
7901      hardcode_direct=yes
7902
7903      # hardcode_minus_L: Not really in the search PATH,
7904      # but as the default location of the library.
7905      hardcode_minus_L=yes
7906      export_dynamic_flag_spec='${wl}-E'
7907      ;;
7908
7909    hpux10*)
7910      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7911	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7912      else
7913	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7914      fi
7915      if test "$with_gnu_ld" = no; then
7916	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7917	hardcode_libdir_separator=:
7918
7919	hardcode_direct=yes
7920	export_dynamic_flag_spec='${wl}-E'
7921
7922	# hardcode_minus_L: Not really in the search PATH,
7923	# but as the default location of the library.
7924	hardcode_minus_L=yes
7925      fi
7926      ;;
7927
7928    hpux11*)
7929      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7930	case $host_cpu in
7931	hppa*64*)
7932	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7933	  ;;
7934	ia64*)
7935	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7936	  ;;
7937	*)
7938	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7939	  ;;
7940	esac
7941      else
7942	case $host_cpu in
7943	hppa*64*)
7944	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7945	  ;;
7946	ia64*)
7947	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7948	  ;;
7949	*)
7950	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7951	  ;;
7952	esac
7953      fi
7954      if test "$with_gnu_ld" = no; then
7955	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7956	hardcode_libdir_separator=:
7957
7958	case $host_cpu in
7959	hppa*64*|ia64*)
7960	  hardcode_libdir_flag_spec_ld='+b $libdir'
7961	  hardcode_direct=no
7962	  hardcode_shlibpath_var=no
7963	  ;;
7964	*)
7965	  hardcode_direct=yes
7966	  export_dynamic_flag_spec='${wl}-E'
7967
7968	  # hardcode_minus_L: Not really in the search PATH,
7969	  # but as the default location of the library.
7970	  hardcode_minus_L=yes
7971	  ;;
7972	esac
7973      fi
7974      ;;
7975
7976    irix5* | irix6* | nonstopux*)
7977      if test "$GCC" = yes; then
7978	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'
7979      else
7980	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'
7981	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7982      fi
7983      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7984      hardcode_libdir_separator=:
7985      link_all_deplibs=yes
7986      ;;
7987
7988    netbsd*)
7989      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7990	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7991      else
7992	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7993      fi
7994      hardcode_libdir_flag_spec='-R$libdir'
7995      hardcode_direct=yes
7996      hardcode_shlibpath_var=no
7997      ;;
7998
7999    newsos6)
8000      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8001      hardcode_direct=yes
8002      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8003      hardcode_libdir_separator=:
8004      hardcode_shlibpath_var=no
8005      ;;
8006
8007    openbsd*)
8008      hardcode_direct=yes
8009      hardcode_shlibpath_var=no
8010      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8011	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8012	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8013	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8014	export_dynamic_flag_spec='${wl}-E'
8015      else
8016       case $host_os in
8017	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8018	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8019	   hardcode_libdir_flag_spec='-R$libdir'
8020	   ;;
8021	 *)
8022	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8023	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8024	   ;;
8025       esac
8026      fi
8027      ;;
8028
8029    os2*)
8030      hardcode_libdir_flag_spec='-L$libdir'
8031      hardcode_minus_L=yes
8032      allow_undefined_flag=unsupported
8033      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'
8034      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8035      ;;
8036
8037    osf3*)
8038      if test "$GCC" = yes; then
8039	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8040	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'
8041      else
8042	allow_undefined_flag=' -expect_unresolved \*'
8043	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'
8044      fi
8045      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8046      hardcode_libdir_separator=:
8047      ;;
8048
8049    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8050      if test "$GCC" = yes; then
8051	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8052	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'
8053	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8054      else
8055	allow_undefined_flag=' -expect_unresolved \*'
8056	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'
8057	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8058	$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'
8059
8060	# Both c and cxx compiler support -rpath directly
8061	hardcode_libdir_flag_spec='-rpath $libdir'
8062      fi
8063      hardcode_libdir_separator=:
8064      ;;
8065
8066    solaris*)
8067      no_undefined_flag=' -z text'
8068      if test "$GCC" = yes; then
8069	wlarc='${wl}'
8070	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8071	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8072	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8073      else
8074	wlarc=''
8075	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8076	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8077  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8078      fi
8079      hardcode_libdir_flag_spec='-R$libdir'
8080      hardcode_shlibpath_var=no
8081      case $host_os in
8082      solaris2.[0-5] | solaris2.[0-5].*) ;;
8083      *)
8084 	# The compiler driver will combine linker options so we
8085 	# cannot just pass the convience library names through
8086 	# without $wl, iff we do not link with $LD.
8087 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8088 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8089 	case $wlarc in
8090 	'')
8091 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8092 	*)
8093 	  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' ;;
8094 	esac ;;
8095      esac
8096      link_all_deplibs=yes
8097      ;;
8098
8099    sunos4*)
8100      if test "x$host_vendor" = xsequent; then
8101	# Use $CC to link under sequent, because it throws in some extra .o
8102	# files that make .init and .fini sections work.
8103	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8104      else
8105	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8106      fi
8107      hardcode_libdir_flag_spec='-L$libdir'
8108      hardcode_direct=yes
8109      hardcode_minus_L=yes
8110      hardcode_shlibpath_var=no
8111      ;;
8112
8113    sysv4)
8114      case $host_vendor in
8115	sni)
8116	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8117	  hardcode_direct=yes # is this really true???
8118	;;
8119	siemens)
8120	  ## LD is ld it makes a PLAMLIB
8121	  ## CC just makes a GrossModule.
8122	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8123	  reload_cmds='$CC -r -o $output$reload_objs'
8124	  hardcode_direct=no
8125        ;;
8126	motorola)
8127	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8128	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8129	;;
8130      esac
8131      runpath_var='LD_RUN_PATH'
8132      hardcode_shlibpath_var=no
8133      ;;
8134
8135    sysv4.3*)
8136      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8137      hardcode_shlibpath_var=no
8138      export_dynamic_flag_spec='-Bexport'
8139      ;;
8140
8141    sysv4*MP*)
8142      if test -d /usr/nec; then
8143	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8144	hardcode_shlibpath_var=no
8145	runpath_var=LD_RUN_PATH
8146	hardcode_runpath_var=yes
8147	ld_shlibs=yes
8148      fi
8149      ;;
8150
8151    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8152      no_undefined_flag='${wl}-z,text'
8153      archive_cmds_need_lc=no
8154      hardcode_shlibpath_var=no
8155      runpath_var='LD_RUN_PATH'
8156
8157      if test "$GCC" = yes; then
8158	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8159	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8160      else
8161	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8162	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8163      fi
8164      ;;
8165
8166    sysv5* | sco3.2v5* | sco5v6*)
8167      # Note: We can NOT use -z defs as we might desire, because we do not
8168      # link with -lc, and that would cause any symbols used from libc to
8169      # always be unresolved, which means just about no library would
8170      # ever link correctly.  If we're not using GNU ld we use -z text
8171      # though, which does catch some bad symbols but isn't as heavy-handed
8172      # as -z defs.
8173      no_undefined_flag='${wl}-z,text'
8174      allow_undefined_flag='${wl}-z,nodefs'
8175      archive_cmds_need_lc=no
8176      hardcode_shlibpath_var=no
8177      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8178      hardcode_libdir_separator=':'
8179      link_all_deplibs=yes
8180      export_dynamic_flag_spec='${wl}-Bexport'
8181      runpath_var='LD_RUN_PATH'
8182
8183      if test "$GCC" = yes; then
8184	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8185	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8186      else
8187	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8188	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8189      fi
8190      ;;
8191
8192    uts4*)
8193      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8194      hardcode_libdir_flag_spec='-L$libdir'
8195      hardcode_shlibpath_var=no
8196      ;;
8197
8198    *)
8199      ld_shlibs=no
8200      ;;
8201    esac
8202  fi
8203
8204echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8205echo "${ECHO_T}$ld_shlibs" >&6
8206test "$ld_shlibs" = no && can_build_shared=no
8207
8208#
8209# Do we need to explicitly link libc?
8210#
8211case "x$archive_cmds_need_lc" in
8212x|xyes)
8213  # Assume -lc should be added
8214  archive_cmds_need_lc=yes
8215
8216  if test "$enable_shared" = yes && test "$GCC" = yes; then
8217    case $archive_cmds in
8218    *'~'*)
8219      # FIXME: we may have to deal with multi-command sequences.
8220      ;;
8221    '$CC '*)
8222      # Test whether the compiler implicitly links with -lc since on some
8223      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8224      # to ld, don't add -lc before -lgcc.
8225      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8226echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8227      $rm conftest*
8228      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8229
8230      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8231  (eval $ac_compile) 2>&5
8232  ac_status=$?
8233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234  (exit $ac_status); } 2>conftest.err; then
8235        soname=conftest
8236        lib=conftest
8237        libobjs=conftest.$ac_objext
8238        deplibs=
8239        wl=$lt_prog_compiler_wl
8240	pic_flag=$lt_prog_compiler_pic
8241        compiler_flags=-v
8242        linker_flags=-v
8243        verstring=
8244        output_objdir=.
8245        libname=conftest
8246        lt_save_allow_undefined_flag=$allow_undefined_flag
8247        allow_undefined_flag=
8248        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8249  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8250  ac_status=$?
8251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252  (exit $ac_status); }
8253        then
8254	  archive_cmds_need_lc=no
8255        else
8256	  archive_cmds_need_lc=yes
8257        fi
8258        allow_undefined_flag=$lt_save_allow_undefined_flag
8259      else
8260        cat conftest.err 1>&5
8261      fi
8262      $rm conftest*
8263      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8264echo "${ECHO_T}$archive_cmds_need_lc" >&6
8265      ;;
8266    esac
8267  fi
8268  ;;
8269esac
8270
8271echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8272echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8273library_names_spec=
8274libname_spec='lib$name'
8275soname_spec=
8276shrext_cmds=".so"
8277postinstall_cmds=
8278postuninstall_cmds=
8279finish_cmds=
8280finish_eval=
8281shlibpath_var=
8282shlibpath_overrides_runpath=unknown
8283version_type=none
8284dynamic_linker="$host_os ld.so"
8285sys_lib_dlsearch_path_spec="/lib /usr/lib"
8286if test "$GCC" = yes; then
8287  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8288  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8289    # if the path contains ";" then we assume it to be the separator
8290    # otherwise default to the standard path separator (i.e. ":") - it is
8291    # assumed that no part of a normal pathname contains ";" but that should
8292    # okay in the real world where ";" in dirpaths is itself problematic.
8293    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8294  else
8295    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8296  fi
8297else
8298  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8299fi
8300need_lib_prefix=unknown
8301hardcode_into_libs=no
8302
8303# when you set need_version to no, make sure it does not cause -set_version
8304# flags to be left without arguments
8305need_version=unknown
8306
8307case $host_os in
8308aix3*)
8309  version_type=linux
8310  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8311  shlibpath_var=LIBPATH
8312
8313  # AIX 3 has no versioning support, so we append a major version to the name.
8314  soname_spec='${libname}${release}${shared_ext}$major'
8315  ;;
8316
8317aix4* | aix5*)
8318  version_type=linux
8319  need_lib_prefix=no
8320  need_version=no
8321  hardcode_into_libs=yes
8322  if test "$host_cpu" = ia64; then
8323    # AIX 5 supports IA64
8324    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8325    shlibpath_var=LD_LIBRARY_PATH
8326  else
8327    # With GCC up to 2.95.x, collect2 would create an import file
8328    # for dependence libraries.  The import file would start with
8329    # the line `#! .'.  This would cause the generated library to
8330    # depend on `.', always an invalid library.  This was fixed in
8331    # development snapshots of GCC prior to 3.0.
8332    case $host_os in
8333      aix4 | aix4.[01] | aix4.[01].*)
8334      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8335	   echo ' yes '
8336	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8337	:
8338      else
8339	can_build_shared=no
8340      fi
8341      ;;
8342    esac
8343    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8344    # soname into executable. Probably we can add versioning support to
8345    # collect2, so additional links can be useful in future.
8346    if test "$aix_use_runtimelinking" = yes; then
8347      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8348      # instead of lib<name>.a to let people know that these are not
8349      # typical AIX shared libraries.
8350      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8351    else
8352      # We preserve .a as extension for shared libraries through AIX4.2
8353      # and later when we are not doing run time linking.
8354      library_names_spec='${libname}${release}.a $libname.a'
8355      soname_spec='${libname}${release}${shared_ext}$major'
8356    fi
8357    shlibpath_var=LIBPATH
8358  fi
8359  ;;
8360
8361amigaos*)
8362  library_names_spec='$libname.ixlibrary $libname.a'
8363  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8364  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'
8365  ;;
8366
8367beos*)
8368  library_names_spec='${libname}${shared_ext}'
8369  dynamic_linker="$host_os ld.so"
8370  shlibpath_var=LIBRARY_PATH
8371  ;;
8372
8373bsdi[45]*)
8374  version_type=linux
8375  need_version=no
8376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8377  soname_spec='${libname}${release}${shared_ext}$major'
8378  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8379  shlibpath_var=LD_LIBRARY_PATH
8380  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8381  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8382  # the default ld.so.conf also contains /usr/contrib/lib and
8383  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8384  # libtool to hard-code these into programs
8385  ;;
8386
8387cygwin* | mingw* | pw32*)
8388  version_type=windows
8389  shrext_cmds=".dll"
8390  need_version=no
8391  need_lib_prefix=no
8392
8393  case $GCC,$host_os in
8394  yes,cygwin* | yes,mingw* | yes,pw32*)
8395    library_names_spec='$libname.dll.a'
8396    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8397    postinstall_cmds='base_file=`basename \${file}`~
8398      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8399      dldir=$destdir/`dirname \$dlpath`~
8400      test -d \$dldir || mkdir -p \$dldir~
8401      $install_prog $dir/$dlname \$dldir/$dlname~
8402      chmod a+x \$dldir/$dlname'
8403    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8404      dlpath=$dir/\$dldll~
8405       $rm \$dlpath'
8406    shlibpath_overrides_runpath=yes
8407
8408    case $host_os in
8409    cygwin*)
8410      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8411      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8412      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8413      ;;
8414    mingw*)
8415      # MinGW DLLs use traditional 'lib' prefix
8416      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8417      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8418      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8419        # It is most probably a Windows format PATH printed by
8420        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8421        # path with ; separators, and with drive letters. We can handle the
8422        # drive letters (cygwin fileutils understands them), so leave them,
8423        # especially as we might pass files found there to a mingw objdump,
8424        # which wouldn't understand a cygwinified path. Ahh.
8425        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8426      else
8427        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8428      fi
8429      ;;
8430    pw32*)
8431      # pw32 DLLs use 'pw' prefix rather than 'lib'
8432      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8433      ;;
8434    esac
8435    ;;
8436
8437  *)
8438    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8439    ;;
8440  esac
8441  dynamic_linker='Win32 ld.exe'
8442  # FIXME: first we should search . and the directory the executable is in
8443  shlibpath_var=PATH
8444  ;;
8445
8446darwin* | rhapsody*)
8447  dynamic_linker="$host_os dyld"
8448  version_type=darwin
8449  need_lib_prefix=no
8450  need_version=no
8451  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8452  soname_spec='${libname}${release}${major}$shared_ext'
8453  shlibpath_overrides_runpath=yes
8454  shlibpath_var=DYLD_LIBRARY_PATH
8455  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8456  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8457  if test "$GCC" = yes; then
8458    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"`
8459  else
8460    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8461  fi
8462  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8463  ;;
8464
8465dgux*)
8466  version_type=linux
8467  need_lib_prefix=no
8468  need_version=no
8469  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8470  soname_spec='${libname}${release}${shared_ext}$major'
8471  shlibpath_var=LD_LIBRARY_PATH
8472  ;;
8473
8474freebsd1*)
8475  dynamic_linker=no
8476  ;;
8477
8478kfreebsd*-gnu)
8479  version_type=linux
8480  need_lib_prefix=no
8481  need_version=no
8482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8483  soname_spec='${libname}${release}${shared_ext}$major'
8484  shlibpath_var=LD_LIBRARY_PATH
8485  shlibpath_overrides_runpath=no
8486  hardcode_into_libs=yes
8487  dynamic_linker='GNU ld.so'
8488  ;;
8489
8490freebsd* | dragonfly*)
8491  # DragonFly does not have aout.  When/if they implement a new
8492  # versioning mechanism, adjust this.
8493  if test -x /usr/bin/objformat; then
8494    objformat=`/usr/bin/objformat`
8495  else
8496    case $host_os in
8497    freebsd[123]*) objformat=aout ;;
8498    *) objformat=elf ;;
8499    esac
8500  fi
8501  version_type=freebsd-$objformat
8502  case $version_type in
8503    freebsd-elf*)
8504      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8505      need_version=no
8506      need_lib_prefix=no
8507      ;;
8508    freebsd-*)
8509      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8510      need_version=yes
8511      ;;
8512  esac
8513  shlibpath_var=LD_LIBRARY_PATH
8514  case $host_os in
8515  freebsd2*)
8516    shlibpath_overrides_runpath=yes
8517    ;;
8518  freebsd3.[01]* | freebsdelf3.[01]*)
8519    shlibpath_overrides_runpath=yes
8520    hardcode_into_libs=yes
8521    ;;
8522  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8523  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8524    shlibpath_overrides_runpath=no
8525    hardcode_into_libs=yes
8526    ;;
8527  freebsd*) # from 4.6 on
8528    shlibpath_overrides_runpath=yes
8529    hardcode_into_libs=yes
8530    ;;
8531  esac
8532  ;;
8533
8534gnu*)
8535  version_type=linux
8536  need_lib_prefix=no
8537  need_version=no
8538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8539  soname_spec='${libname}${release}${shared_ext}$major'
8540  shlibpath_var=LD_LIBRARY_PATH
8541  hardcode_into_libs=yes
8542  ;;
8543
8544hpux9* | hpux10* | hpux11*)
8545  # Give a soname corresponding to the major version so that dld.sl refuses to
8546  # link against other versions.
8547  version_type=sunos
8548  need_lib_prefix=no
8549  need_version=no
8550  case $host_cpu in
8551  ia64*)
8552    shrext_cmds='.so'
8553    hardcode_into_libs=yes
8554    dynamic_linker="$host_os dld.so"
8555    shlibpath_var=LD_LIBRARY_PATH
8556    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8557    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8558    soname_spec='${libname}${release}${shared_ext}$major'
8559    if test "X$HPUX_IA64_MODE" = X32; then
8560      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8561    else
8562      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8563    fi
8564    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8565    ;;
8566   hppa*64*)
8567     shrext_cmds='.sl'
8568     hardcode_into_libs=yes
8569     dynamic_linker="$host_os dld.sl"
8570     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8571     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8573     soname_spec='${libname}${release}${shared_ext}$major'
8574     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8575     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8576     ;;
8577   *)
8578    shrext_cmds='.sl'
8579    dynamic_linker="$host_os dld.sl"
8580    shlibpath_var=SHLIB_PATH
8581    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8582    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8583    soname_spec='${libname}${release}${shared_ext}$major'
8584    ;;
8585  esac
8586  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8587  postinstall_cmds='chmod 555 $lib'
8588  ;;
8589
8590interix3*)
8591  version_type=linux
8592  need_lib_prefix=no
8593  need_version=no
8594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8595  soname_spec='${libname}${release}${shared_ext}$major'
8596  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8597  shlibpath_var=LD_LIBRARY_PATH
8598  shlibpath_overrides_runpath=no
8599  hardcode_into_libs=yes
8600  ;;
8601
8602irix5* | irix6* | nonstopux*)
8603  case $host_os in
8604    nonstopux*) version_type=nonstopux ;;
8605    *)
8606	if test "$lt_cv_prog_gnu_ld" = yes; then
8607		version_type=linux
8608	else
8609		version_type=irix
8610	fi ;;
8611  esac
8612  need_lib_prefix=no
8613  need_version=no
8614  soname_spec='${libname}${release}${shared_ext}$major'
8615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8616  case $host_os in
8617  irix5* | nonstopux*)
8618    libsuff= shlibsuff=
8619    ;;
8620  *)
8621    case $LD in # libtool.m4 will add one of these switches to LD
8622    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8623      libsuff= shlibsuff= libmagic=32-bit;;
8624    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8625      libsuff=32 shlibsuff=N32 libmagic=N32;;
8626    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8627      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8628    *) libsuff= shlibsuff= libmagic=never-match;;
8629    esac
8630    ;;
8631  esac
8632  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8633  shlibpath_overrides_runpath=no
8634  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8635  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8636  hardcode_into_libs=yes
8637  ;;
8638
8639# No shared lib support for Linux oldld, aout, or coff.
8640linux*oldld* | linux*aout* | linux*coff*)
8641  dynamic_linker=no
8642  ;;
8643
8644# This must be Linux ELF.
8645linux*)
8646  version_type=linux
8647  need_lib_prefix=no
8648  need_version=no
8649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8650  soname_spec='${libname}${release}${shared_ext}$major'
8651  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8652  shlibpath_var=LD_LIBRARY_PATH
8653  shlibpath_overrides_runpath=no
8654  # This implies no fast_install, which is unacceptable.
8655  # Some rework will be needed to allow for fast_install
8656  # before this can be enabled.
8657  hardcode_into_libs=yes
8658
8659  # find out which ABI we are using
8660  libsuff=
8661  case "$host_cpu" in
8662  x86_64*|s390x*|powerpc64*)
8663    echo '#line 8663 "configure"' > conftest.$ac_ext
8664    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8665  (eval $ac_compile) 2>&5
8666  ac_status=$?
8667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668  (exit $ac_status); }; then
8669      case `/usr/bin/file conftest.$ac_objext` in
8670      *64-bit*)
8671        libsuff=64
8672        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8673        ;;
8674      esac
8675    fi
8676    rm -rf conftest*
8677    ;;
8678  esac
8679
8680  # Append ld.so.conf contents to the search path
8681  if test -f /etc/ld.so.conf; then
8682    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' ' '`
8683    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8684  fi
8685
8686  # We used to test for /lib/ld.so.1 and disable shared libraries on
8687  # powerpc, because MkLinux only supported shared libraries with the
8688  # GNU dynamic linker.  Since this was broken with cross compilers,
8689  # most powerpc-linux boxes support dynamic linking these days and
8690  # people can always --disable-shared, the test was removed, and we
8691  # assume the GNU/Linux dynamic linker is in use.
8692  dynamic_linker='GNU/Linux ld.so'
8693  ;;
8694
8695knetbsd*-gnu)
8696  version_type=linux
8697  need_lib_prefix=no
8698  need_version=no
8699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8700  soname_spec='${libname}${release}${shared_ext}$major'
8701  shlibpath_var=LD_LIBRARY_PATH
8702  shlibpath_overrides_runpath=no
8703  hardcode_into_libs=yes
8704  dynamic_linker='GNU ld.so'
8705  ;;
8706
8707netbsd*)
8708  version_type=sunos
8709  need_lib_prefix=no
8710  need_version=no
8711  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8712    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8713    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8714    dynamic_linker='NetBSD (a.out) ld.so'
8715  else
8716    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8717    soname_spec='${libname}${release}${shared_ext}$major'
8718    dynamic_linker='NetBSD ld.elf_so'
8719  fi
8720  shlibpath_var=LD_LIBRARY_PATH
8721  shlibpath_overrides_runpath=yes
8722  hardcode_into_libs=yes
8723  ;;
8724
8725newsos6)
8726  version_type=linux
8727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8728  shlibpath_var=LD_LIBRARY_PATH
8729  shlibpath_overrides_runpath=yes
8730  ;;
8731
8732nto-qnx*)
8733  version_type=linux
8734  need_lib_prefix=no
8735  need_version=no
8736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8737  soname_spec='${libname}${release}${shared_ext}$major'
8738  shlibpath_var=LD_LIBRARY_PATH
8739  shlibpath_overrides_runpath=yes
8740  ;;
8741
8742openbsd*)
8743  version_type=sunos
8744  sys_lib_dlsearch_path_spec="/usr/lib"
8745  need_lib_prefix=no
8746  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8747  case $host_os in
8748    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8749    *)                         need_version=no  ;;
8750  esac
8751  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8752  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8753  shlibpath_var=LD_LIBRARY_PATH
8754  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8755    case $host_os in
8756      openbsd2.[89] | openbsd2.[89].*)
8757	shlibpath_overrides_runpath=no
8758	;;
8759      *)
8760	shlibpath_overrides_runpath=yes
8761	;;
8762      esac
8763  else
8764    shlibpath_overrides_runpath=yes
8765  fi
8766  ;;
8767
8768os2*)
8769  libname_spec='$name'
8770  shrext_cmds=".dll"
8771  need_lib_prefix=no
8772  library_names_spec='$libname${shared_ext} $libname.a'
8773  dynamic_linker='OS/2 ld.exe'
8774  shlibpath_var=LIBPATH
8775  ;;
8776
8777osf3* | osf4* | osf5*)
8778  version_type=osf
8779  need_lib_prefix=no
8780  need_version=no
8781  soname_spec='${libname}${release}${shared_ext}$major'
8782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8783  shlibpath_var=LD_LIBRARY_PATH
8784  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8785  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8786  ;;
8787
8788solaris*)
8789  version_type=linux
8790  need_lib_prefix=no
8791  need_version=no
8792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8793  soname_spec='${libname}${release}${shared_ext}$major'
8794  shlibpath_var=LD_LIBRARY_PATH
8795  shlibpath_overrides_runpath=yes
8796  hardcode_into_libs=yes
8797  # ldd complains unless libraries are executable
8798  postinstall_cmds='chmod +x $lib'
8799  ;;
8800
8801sunos4*)
8802  version_type=sunos
8803  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8804  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8805  shlibpath_var=LD_LIBRARY_PATH
8806  shlibpath_overrides_runpath=yes
8807  if test "$with_gnu_ld" = yes; then
8808    need_lib_prefix=no
8809  fi
8810  need_version=yes
8811  ;;
8812
8813sysv4 | sysv4.3*)
8814  version_type=linux
8815  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8816  soname_spec='${libname}${release}${shared_ext}$major'
8817  shlibpath_var=LD_LIBRARY_PATH
8818  case $host_vendor in
8819    sni)
8820      shlibpath_overrides_runpath=no
8821      need_lib_prefix=no
8822      export_dynamic_flag_spec='${wl}-Blargedynsym'
8823      runpath_var=LD_RUN_PATH
8824      ;;
8825    siemens)
8826      need_lib_prefix=no
8827      ;;
8828    motorola)
8829      need_lib_prefix=no
8830      need_version=no
8831      shlibpath_overrides_runpath=no
8832      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8833      ;;
8834  esac
8835  ;;
8836
8837sysv4*MP*)
8838  if test -d /usr/nec ;then
8839    version_type=linux
8840    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8841    soname_spec='$libname${shared_ext}.$major'
8842    shlibpath_var=LD_LIBRARY_PATH
8843  fi
8844  ;;
8845
8846sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8847  version_type=freebsd-elf
8848  need_lib_prefix=no
8849  need_version=no
8850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8851  soname_spec='${libname}${release}${shared_ext}$major'
8852  shlibpath_var=LD_LIBRARY_PATH
8853  hardcode_into_libs=yes
8854  if test "$with_gnu_ld" = yes; then
8855    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8856    shlibpath_overrides_runpath=no
8857  else
8858    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8859    shlibpath_overrides_runpath=yes
8860    case $host_os in
8861      sco3.2v5*)
8862        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8863	;;
8864    esac
8865  fi
8866  sys_lib_dlsearch_path_spec='/usr/lib'
8867  ;;
8868
8869uts4*)
8870  version_type=linux
8871  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872  soname_spec='${libname}${release}${shared_ext}$major'
8873  shlibpath_var=LD_LIBRARY_PATH
8874  ;;
8875
8876*)
8877  dynamic_linker=no
8878  ;;
8879esac
8880echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8881echo "${ECHO_T}$dynamic_linker" >&6
8882test "$dynamic_linker" = no && can_build_shared=no
8883
8884variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8885if test "$GCC" = yes; then
8886  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8887fi
8888
8889echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8890echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8891hardcode_action=
8892if test -n "$hardcode_libdir_flag_spec" || \
8893   test -n "$runpath_var" || \
8894   test "X$hardcode_automatic" = "Xyes" ; then
8895
8896  # We can hardcode non-existant directories.
8897  if test "$hardcode_direct" != no &&
8898     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8899     # have to relink, otherwise we might link with an installed library
8900     # when we should be linking with a yet-to-be-installed one
8901     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8902     test "$hardcode_minus_L" != no; then
8903    # Linking always hardcodes the temporary library directory.
8904    hardcode_action=relink
8905  else
8906    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8907    hardcode_action=immediate
8908  fi
8909else
8910  # We cannot hardcode anything, or else we can only hardcode existing
8911  # directories.
8912  hardcode_action=unsupported
8913fi
8914echo "$as_me:$LINENO: result: $hardcode_action" >&5
8915echo "${ECHO_T}$hardcode_action" >&6
8916
8917if test "$hardcode_action" = relink; then
8918  # Fast installation is not supported
8919  enable_fast_install=no
8920elif test "$shlibpath_overrides_runpath" = yes ||
8921     test "$enable_shared" = no; then
8922  # Fast installation is not necessary
8923  enable_fast_install=needless
8924fi
8925
8926striplib=
8927old_striplib=
8928echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8929echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8930if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8931  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8932  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8933  echo "$as_me:$LINENO: result: yes" >&5
8934echo "${ECHO_T}yes" >&6
8935else
8936# FIXME - insert some real tests, host_os isn't really good enough
8937  case $host_os in
8938   darwin*)
8939       if test -n "$STRIP" ; then
8940         striplib="$STRIP -x"
8941         echo "$as_me:$LINENO: result: yes" >&5
8942echo "${ECHO_T}yes" >&6
8943       else
8944  echo "$as_me:$LINENO: result: no" >&5
8945echo "${ECHO_T}no" >&6
8946fi
8947       ;;
8948   *)
8949  echo "$as_me:$LINENO: result: no" >&5
8950echo "${ECHO_T}no" >&6
8951    ;;
8952  esac
8953fi
8954
8955if test "x$enable_dlopen" != xyes; then
8956  enable_dlopen=unknown
8957  enable_dlopen_self=unknown
8958  enable_dlopen_self_static=unknown
8959else
8960  lt_cv_dlopen=no
8961  lt_cv_dlopen_libs=
8962
8963  case $host_os in
8964  beos*)
8965    lt_cv_dlopen="load_add_on"
8966    lt_cv_dlopen_libs=
8967    lt_cv_dlopen_self=yes
8968    ;;
8969
8970  mingw* | pw32*)
8971    lt_cv_dlopen="LoadLibrary"
8972    lt_cv_dlopen_libs=
8973   ;;
8974
8975  cygwin*)
8976    lt_cv_dlopen="dlopen"
8977    lt_cv_dlopen_libs=
8978   ;;
8979
8980  darwin*)
8981  # if libdl is installed we need to link against it
8982    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8983echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8984if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8985  echo $ECHO_N "(cached) $ECHO_C" >&6
8986else
8987  ac_check_lib_save_LIBS=$LIBS
8988LIBS="-ldl  $LIBS"
8989cat >conftest.$ac_ext <<_ACEOF
8990/* confdefs.h.  */
8991_ACEOF
8992cat confdefs.h >>conftest.$ac_ext
8993cat >>conftest.$ac_ext <<_ACEOF
8994/* end confdefs.h.  */
8995
8996/* Override any gcc2 internal prototype to avoid an error.  */
8997#ifdef __cplusplus
8998extern "C"
8999#endif
9000/* We use char because int might match the return type of a gcc2
9001   builtin and then its argument prototype would still apply.  */
9002char dlopen ();
9003int
9004main ()
9005{
9006dlopen ();
9007  ;
9008  return 0;
9009}
9010_ACEOF
9011rm -f conftest.$ac_objext conftest$ac_exeext
9012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9013  (eval $ac_link) 2>conftest.er1
9014  ac_status=$?
9015  grep -v '^ *+' conftest.er1 >conftest.err
9016  rm -f conftest.er1
9017  cat conftest.err >&5
9018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019  (exit $ac_status); } &&
9020	 { ac_try='test -z "$ac_c_werror_flag"
9021			 || test ! -s conftest.err'
9022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023  (eval $ac_try) 2>&5
9024  ac_status=$?
9025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026  (exit $ac_status); }; } &&
9027	 { ac_try='test -s conftest$ac_exeext'
9028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029  (eval $ac_try) 2>&5
9030  ac_status=$?
9031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032  (exit $ac_status); }; }; then
9033  ac_cv_lib_dl_dlopen=yes
9034else
9035  echo "$as_me: failed program was:" >&5
9036sed 's/^/| /' conftest.$ac_ext >&5
9037
9038ac_cv_lib_dl_dlopen=no
9039fi
9040rm -f conftest.err conftest.$ac_objext \
9041      conftest$ac_exeext conftest.$ac_ext
9042LIBS=$ac_check_lib_save_LIBS
9043fi
9044echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9045echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9046if test $ac_cv_lib_dl_dlopen = yes; then
9047  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9048else
9049
9050    lt_cv_dlopen="dyld"
9051    lt_cv_dlopen_libs=
9052    lt_cv_dlopen_self=yes
9053
9054fi
9055
9056   ;;
9057
9058  *)
9059    echo "$as_me:$LINENO: checking for shl_load" >&5
9060echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9061if test "${ac_cv_func_shl_load+set}" = set; then
9062  echo $ECHO_N "(cached) $ECHO_C" >&6
9063else
9064  cat >conftest.$ac_ext <<_ACEOF
9065/* confdefs.h.  */
9066_ACEOF
9067cat confdefs.h >>conftest.$ac_ext
9068cat >>conftest.$ac_ext <<_ACEOF
9069/* end confdefs.h.  */
9070/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9071   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9072#define shl_load innocuous_shl_load
9073
9074/* System header to define __stub macros and hopefully few prototypes,
9075    which can conflict with char shl_load (); below.
9076    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9077    <limits.h> exists even on freestanding compilers.  */
9078
9079#ifdef __STDC__
9080# include <limits.h>
9081#else
9082# include <assert.h>
9083#endif
9084
9085#undef shl_load
9086
9087/* Override any gcc2 internal prototype to avoid an error.  */
9088#ifdef __cplusplus
9089extern "C"
9090{
9091#endif
9092/* We use char because int might match the return type of a gcc2
9093   builtin and then its argument prototype would still apply.  */
9094char shl_load ();
9095/* The GNU C library defines this for functions which it implements
9096    to always fail with ENOSYS.  Some functions are actually named
9097    something starting with __ and the normal name is an alias.  */
9098#if defined (__stub_shl_load) || defined (__stub___shl_load)
9099choke me
9100#else
9101char (*f) () = shl_load;
9102#endif
9103#ifdef __cplusplus
9104}
9105#endif
9106
9107int
9108main ()
9109{
9110return f != shl_load;
9111  ;
9112  return 0;
9113}
9114_ACEOF
9115rm -f conftest.$ac_objext conftest$ac_exeext
9116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117  (eval $ac_link) 2>conftest.er1
9118  ac_status=$?
9119  grep -v '^ *+' conftest.er1 >conftest.err
9120  rm -f conftest.er1
9121  cat conftest.err >&5
9122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123  (exit $ac_status); } &&
9124	 { ac_try='test -z "$ac_c_werror_flag"
9125			 || test ! -s conftest.err'
9126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127  (eval $ac_try) 2>&5
9128  ac_status=$?
9129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130  (exit $ac_status); }; } &&
9131	 { ac_try='test -s conftest$ac_exeext'
9132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133  (eval $ac_try) 2>&5
9134  ac_status=$?
9135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136  (exit $ac_status); }; }; then
9137  ac_cv_func_shl_load=yes
9138else
9139  echo "$as_me: failed program was:" >&5
9140sed 's/^/| /' conftest.$ac_ext >&5
9141
9142ac_cv_func_shl_load=no
9143fi
9144rm -f conftest.err conftest.$ac_objext \
9145      conftest$ac_exeext conftest.$ac_ext
9146fi
9147echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9148echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9149if test $ac_cv_func_shl_load = yes; then
9150  lt_cv_dlopen="shl_load"
9151else
9152  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9153echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9154if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9155  echo $ECHO_N "(cached) $ECHO_C" >&6
9156else
9157  ac_check_lib_save_LIBS=$LIBS
9158LIBS="-ldld  $LIBS"
9159cat >conftest.$ac_ext <<_ACEOF
9160/* confdefs.h.  */
9161_ACEOF
9162cat confdefs.h >>conftest.$ac_ext
9163cat >>conftest.$ac_ext <<_ACEOF
9164/* end confdefs.h.  */
9165
9166/* Override any gcc2 internal prototype to avoid an error.  */
9167#ifdef __cplusplus
9168extern "C"
9169#endif
9170/* We use char because int might match the return type of a gcc2
9171   builtin and then its argument prototype would still apply.  */
9172char shl_load ();
9173int
9174main ()
9175{
9176shl_load ();
9177  ;
9178  return 0;
9179}
9180_ACEOF
9181rm -f conftest.$ac_objext conftest$ac_exeext
9182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9183  (eval $ac_link) 2>conftest.er1
9184  ac_status=$?
9185  grep -v '^ *+' conftest.er1 >conftest.err
9186  rm -f conftest.er1
9187  cat conftest.err >&5
9188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189  (exit $ac_status); } &&
9190	 { ac_try='test -z "$ac_c_werror_flag"
9191			 || test ! -s conftest.err'
9192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193  (eval $ac_try) 2>&5
9194  ac_status=$?
9195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196  (exit $ac_status); }; } &&
9197	 { ac_try='test -s conftest$ac_exeext'
9198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199  (eval $ac_try) 2>&5
9200  ac_status=$?
9201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202  (exit $ac_status); }; }; then
9203  ac_cv_lib_dld_shl_load=yes
9204else
9205  echo "$as_me: failed program was:" >&5
9206sed 's/^/| /' conftest.$ac_ext >&5
9207
9208ac_cv_lib_dld_shl_load=no
9209fi
9210rm -f conftest.err conftest.$ac_objext \
9211      conftest$ac_exeext conftest.$ac_ext
9212LIBS=$ac_check_lib_save_LIBS
9213fi
9214echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9215echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9216if test $ac_cv_lib_dld_shl_load = yes; then
9217  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9218else
9219  echo "$as_me:$LINENO: checking for dlopen" >&5
9220echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9221if test "${ac_cv_func_dlopen+set}" = set; then
9222  echo $ECHO_N "(cached) $ECHO_C" >&6
9223else
9224  cat >conftest.$ac_ext <<_ACEOF
9225/* confdefs.h.  */
9226_ACEOF
9227cat confdefs.h >>conftest.$ac_ext
9228cat >>conftest.$ac_ext <<_ACEOF
9229/* end confdefs.h.  */
9230/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9231   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9232#define dlopen innocuous_dlopen
9233
9234/* System header to define __stub macros and hopefully few prototypes,
9235    which can conflict with char dlopen (); below.
9236    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9237    <limits.h> exists even on freestanding compilers.  */
9238
9239#ifdef __STDC__
9240# include <limits.h>
9241#else
9242# include <assert.h>
9243#endif
9244
9245#undef dlopen
9246
9247/* Override any gcc2 internal prototype to avoid an error.  */
9248#ifdef __cplusplus
9249extern "C"
9250{
9251#endif
9252/* We use char because int might match the return type of a gcc2
9253   builtin and then its argument prototype would still apply.  */
9254char dlopen ();
9255/* The GNU C library defines this for functions which it implements
9256    to always fail with ENOSYS.  Some functions are actually named
9257    something starting with __ and the normal name is an alias.  */
9258#if defined (__stub_dlopen) || defined (__stub___dlopen)
9259choke me
9260#else
9261char (*f) () = dlopen;
9262#endif
9263#ifdef __cplusplus
9264}
9265#endif
9266
9267int
9268main ()
9269{
9270return f != dlopen;
9271  ;
9272  return 0;
9273}
9274_ACEOF
9275rm -f conftest.$ac_objext conftest$ac_exeext
9276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9277  (eval $ac_link) 2>conftest.er1
9278  ac_status=$?
9279  grep -v '^ *+' conftest.er1 >conftest.err
9280  rm -f conftest.er1
9281  cat conftest.err >&5
9282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283  (exit $ac_status); } &&
9284	 { ac_try='test -z "$ac_c_werror_flag"
9285			 || test ! -s conftest.err'
9286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287  (eval $ac_try) 2>&5
9288  ac_status=$?
9289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290  (exit $ac_status); }; } &&
9291	 { ac_try='test -s conftest$ac_exeext'
9292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293  (eval $ac_try) 2>&5
9294  ac_status=$?
9295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296  (exit $ac_status); }; }; then
9297  ac_cv_func_dlopen=yes
9298else
9299  echo "$as_me: failed program was:" >&5
9300sed 's/^/| /' conftest.$ac_ext >&5
9301
9302ac_cv_func_dlopen=no
9303fi
9304rm -f conftest.err conftest.$ac_objext \
9305      conftest$ac_exeext conftest.$ac_ext
9306fi
9307echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9308echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9309if test $ac_cv_func_dlopen = yes; then
9310  lt_cv_dlopen="dlopen"
9311else
9312  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9313echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9314if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9315  echo $ECHO_N "(cached) $ECHO_C" >&6
9316else
9317  ac_check_lib_save_LIBS=$LIBS
9318LIBS="-ldl  $LIBS"
9319cat >conftest.$ac_ext <<_ACEOF
9320/* confdefs.h.  */
9321_ACEOF
9322cat confdefs.h >>conftest.$ac_ext
9323cat >>conftest.$ac_ext <<_ACEOF
9324/* end confdefs.h.  */
9325
9326/* Override any gcc2 internal prototype to avoid an error.  */
9327#ifdef __cplusplus
9328extern "C"
9329#endif
9330/* We use char because int might match the return type of a gcc2
9331   builtin and then its argument prototype would still apply.  */
9332char dlopen ();
9333int
9334main ()
9335{
9336dlopen ();
9337  ;
9338  return 0;
9339}
9340_ACEOF
9341rm -f conftest.$ac_objext conftest$ac_exeext
9342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9343  (eval $ac_link) 2>conftest.er1
9344  ac_status=$?
9345  grep -v '^ *+' conftest.er1 >conftest.err
9346  rm -f conftest.er1
9347  cat conftest.err >&5
9348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349  (exit $ac_status); } &&
9350	 { ac_try='test -z "$ac_c_werror_flag"
9351			 || test ! -s conftest.err'
9352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353  (eval $ac_try) 2>&5
9354  ac_status=$?
9355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356  (exit $ac_status); }; } &&
9357	 { ac_try='test -s conftest$ac_exeext'
9358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359  (eval $ac_try) 2>&5
9360  ac_status=$?
9361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362  (exit $ac_status); }; }; then
9363  ac_cv_lib_dl_dlopen=yes
9364else
9365  echo "$as_me: failed program was:" >&5
9366sed 's/^/| /' conftest.$ac_ext >&5
9367
9368ac_cv_lib_dl_dlopen=no
9369fi
9370rm -f conftest.err conftest.$ac_objext \
9371      conftest$ac_exeext conftest.$ac_ext
9372LIBS=$ac_check_lib_save_LIBS
9373fi
9374echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9375echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9376if test $ac_cv_lib_dl_dlopen = yes; then
9377  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9378else
9379  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9380echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9381if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9382  echo $ECHO_N "(cached) $ECHO_C" >&6
9383else
9384  ac_check_lib_save_LIBS=$LIBS
9385LIBS="-lsvld  $LIBS"
9386cat >conftest.$ac_ext <<_ACEOF
9387/* confdefs.h.  */
9388_ACEOF
9389cat confdefs.h >>conftest.$ac_ext
9390cat >>conftest.$ac_ext <<_ACEOF
9391/* end confdefs.h.  */
9392
9393/* Override any gcc2 internal prototype to avoid an error.  */
9394#ifdef __cplusplus
9395extern "C"
9396#endif
9397/* We use char because int might match the return type of a gcc2
9398   builtin and then its argument prototype would still apply.  */
9399char dlopen ();
9400int
9401main ()
9402{
9403dlopen ();
9404  ;
9405  return 0;
9406}
9407_ACEOF
9408rm -f conftest.$ac_objext conftest$ac_exeext
9409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9410  (eval $ac_link) 2>conftest.er1
9411  ac_status=$?
9412  grep -v '^ *+' conftest.er1 >conftest.err
9413  rm -f conftest.er1
9414  cat conftest.err >&5
9415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416  (exit $ac_status); } &&
9417	 { ac_try='test -z "$ac_c_werror_flag"
9418			 || test ! -s conftest.err'
9419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420  (eval $ac_try) 2>&5
9421  ac_status=$?
9422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423  (exit $ac_status); }; } &&
9424	 { ac_try='test -s conftest$ac_exeext'
9425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426  (eval $ac_try) 2>&5
9427  ac_status=$?
9428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429  (exit $ac_status); }; }; then
9430  ac_cv_lib_svld_dlopen=yes
9431else
9432  echo "$as_me: failed program was:" >&5
9433sed 's/^/| /' conftest.$ac_ext >&5
9434
9435ac_cv_lib_svld_dlopen=no
9436fi
9437rm -f conftest.err conftest.$ac_objext \
9438      conftest$ac_exeext conftest.$ac_ext
9439LIBS=$ac_check_lib_save_LIBS
9440fi
9441echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9442echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9443if test $ac_cv_lib_svld_dlopen = yes; then
9444  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9445else
9446  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9447echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9448if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9449  echo $ECHO_N "(cached) $ECHO_C" >&6
9450else
9451  ac_check_lib_save_LIBS=$LIBS
9452LIBS="-ldld  $LIBS"
9453cat >conftest.$ac_ext <<_ACEOF
9454/* confdefs.h.  */
9455_ACEOF
9456cat confdefs.h >>conftest.$ac_ext
9457cat >>conftest.$ac_ext <<_ACEOF
9458/* end confdefs.h.  */
9459
9460/* Override any gcc2 internal prototype to avoid an error.  */
9461#ifdef __cplusplus
9462extern "C"
9463#endif
9464/* We use char because int might match the return type of a gcc2
9465   builtin and then its argument prototype would still apply.  */
9466char dld_link ();
9467int
9468main ()
9469{
9470dld_link ();
9471  ;
9472  return 0;
9473}
9474_ACEOF
9475rm -f conftest.$ac_objext conftest$ac_exeext
9476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9477  (eval $ac_link) 2>conftest.er1
9478  ac_status=$?
9479  grep -v '^ *+' conftest.er1 >conftest.err
9480  rm -f conftest.er1
9481  cat conftest.err >&5
9482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483  (exit $ac_status); } &&
9484	 { ac_try='test -z "$ac_c_werror_flag"
9485			 || test ! -s conftest.err'
9486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487  (eval $ac_try) 2>&5
9488  ac_status=$?
9489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490  (exit $ac_status); }; } &&
9491	 { ac_try='test -s conftest$ac_exeext'
9492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493  (eval $ac_try) 2>&5
9494  ac_status=$?
9495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496  (exit $ac_status); }; }; then
9497  ac_cv_lib_dld_dld_link=yes
9498else
9499  echo "$as_me: failed program was:" >&5
9500sed 's/^/| /' conftest.$ac_ext >&5
9501
9502ac_cv_lib_dld_dld_link=no
9503fi
9504rm -f conftest.err conftest.$ac_objext \
9505      conftest$ac_exeext conftest.$ac_ext
9506LIBS=$ac_check_lib_save_LIBS
9507fi
9508echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9509echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9510if test $ac_cv_lib_dld_dld_link = yes; then
9511  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9512fi
9513
9514
9515fi
9516
9517
9518fi
9519
9520
9521fi
9522
9523
9524fi
9525
9526
9527fi
9528
9529    ;;
9530  esac
9531
9532  if test "x$lt_cv_dlopen" != xno; then
9533    enable_dlopen=yes
9534  else
9535    enable_dlopen=no
9536  fi
9537
9538  case $lt_cv_dlopen in
9539  dlopen)
9540    save_CPPFLAGS="$CPPFLAGS"
9541    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9542
9543    save_LDFLAGS="$LDFLAGS"
9544    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9545
9546    save_LIBS="$LIBS"
9547    LIBS="$lt_cv_dlopen_libs $LIBS"
9548
9549    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9550echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9551if test "${lt_cv_dlopen_self+set}" = set; then
9552  echo $ECHO_N "(cached) $ECHO_C" >&6
9553else
9554  	  if test "$cross_compiling" = yes; then :
9555  lt_cv_dlopen_self=cross
9556else
9557  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9558  lt_status=$lt_dlunknown
9559  cat > conftest.$ac_ext <<EOF
9560#line 9560 "configure"
9561#include "confdefs.h"
9562
9563#if HAVE_DLFCN_H
9564#include <dlfcn.h>
9565#endif
9566
9567#include <stdio.h>
9568
9569#ifdef RTLD_GLOBAL
9570#  define LT_DLGLOBAL		RTLD_GLOBAL
9571#else
9572#  ifdef DL_GLOBAL
9573#    define LT_DLGLOBAL		DL_GLOBAL
9574#  else
9575#    define LT_DLGLOBAL		0
9576#  endif
9577#endif
9578
9579/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9580   find out it does not work in some platform. */
9581#ifndef LT_DLLAZY_OR_NOW
9582#  ifdef RTLD_LAZY
9583#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9584#  else
9585#    ifdef DL_LAZY
9586#      define LT_DLLAZY_OR_NOW		DL_LAZY
9587#    else
9588#      ifdef RTLD_NOW
9589#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9590#      else
9591#        ifdef DL_NOW
9592#          define LT_DLLAZY_OR_NOW	DL_NOW
9593#        else
9594#          define LT_DLLAZY_OR_NOW	0
9595#        endif
9596#      endif
9597#    endif
9598#  endif
9599#endif
9600
9601#ifdef __cplusplus
9602extern "C" void exit (int);
9603#endif
9604
9605void fnord() { int i=42;}
9606int main ()
9607{
9608  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9609  int status = $lt_dlunknown;
9610
9611  if (self)
9612    {
9613      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9614      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9615      /* dlclose (self); */
9616    }
9617  else
9618    puts (dlerror ());
9619
9620    exit (status);
9621}
9622EOF
9623  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9624  (eval $ac_link) 2>&5
9625  ac_status=$?
9626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9628    (./conftest; exit; ) >&5 2>/dev/null
9629    lt_status=$?
9630    case x$lt_status in
9631      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9632      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9633      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9634    esac
9635  else :
9636    # compilation failed
9637    lt_cv_dlopen_self=no
9638  fi
9639fi
9640rm -fr conftest*
9641
9642
9643fi
9644echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9645echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9646
9647    if test "x$lt_cv_dlopen_self" = xyes; then
9648      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9649      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9650echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9651if test "${lt_cv_dlopen_self_static+set}" = set; then
9652  echo $ECHO_N "(cached) $ECHO_C" >&6
9653else
9654  	  if test "$cross_compiling" = yes; then :
9655  lt_cv_dlopen_self_static=cross
9656else
9657  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9658  lt_status=$lt_dlunknown
9659  cat > conftest.$ac_ext <<EOF
9660#line 9660 "configure"
9661#include "confdefs.h"
9662
9663#if HAVE_DLFCN_H
9664#include <dlfcn.h>
9665#endif
9666
9667#include <stdio.h>
9668
9669#ifdef RTLD_GLOBAL
9670#  define LT_DLGLOBAL		RTLD_GLOBAL
9671#else
9672#  ifdef DL_GLOBAL
9673#    define LT_DLGLOBAL		DL_GLOBAL
9674#  else
9675#    define LT_DLGLOBAL		0
9676#  endif
9677#endif
9678
9679/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9680   find out it does not work in some platform. */
9681#ifndef LT_DLLAZY_OR_NOW
9682#  ifdef RTLD_LAZY
9683#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9684#  else
9685#    ifdef DL_LAZY
9686#      define LT_DLLAZY_OR_NOW		DL_LAZY
9687#    else
9688#      ifdef RTLD_NOW
9689#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9690#      else
9691#        ifdef DL_NOW
9692#          define LT_DLLAZY_OR_NOW	DL_NOW
9693#        else
9694#          define LT_DLLAZY_OR_NOW	0
9695#        endif
9696#      endif
9697#    endif
9698#  endif
9699#endif
9700
9701#ifdef __cplusplus
9702extern "C" void exit (int);
9703#endif
9704
9705void fnord() { int i=42;}
9706int main ()
9707{
9708  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9709  int status = $lt_dlunknown;
9710
9711  if (self)
9712    {
9713      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9714      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9715      /* dlclose (self); */
9716    }
9717  else
9718    puts (dlerror ());
9719
9720    exit (status);
9721}
9722EOF
9723  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9724  (eval $ac_link) 2>&5
9725  ac_status=$?
9726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9728    (./conftest; exit; ) >&5 2>/dev/null
9729    lt_status=$?
9730    case x$lt_status in
9731      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9732      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9733      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9734    esac
9735  else :
9736    # compilation failed
9737    lt_cv_dlopen_self_static=no
9738  fi
9739fi
9740rm -fr conftest*
9741
9742
9743fi
9744echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9745echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9746    fi
9747
9748    CPPFLAGS="$save_CPPFLAGS"
9749    LDFLAGS="$save_LDFLAGS"
9750    LIBS="$save_LIBS"
9751    ;;
9752  esac
9753
9754  case $lt_cv_dlopen_self in
9755  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9756  *) enable_dlopen_self=unknown ;;
9757  esac
9758
9759  case $lt_cv_dlopen_self_static in
9760  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9761  *) enable_dlopen_self_static=unknown ;;
9762  esac
9763fi
9764
9765
9766# Report which library types will actually be built
9767echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9768echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9769echo "$as_me:$LINENO: result: $can_build_shared" >&5
9770echo "${ECHO_T}$can_build_shared" >&6
9771
9772echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9773echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9774test "$can_build_shared" = "no" && enable_shared=no
9775
9776# On AIX, shared libraries and static libraries use the same namespace, and
9777# are all built from PIC.
9778case $host_os in
9779aix3*)
9780  test "$enable_shared" = yes && enable_static=no
9781  if test -n "$RANLIB"; then
9782    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9783    postinstall_cmds='$RANLIB $lib'
9784  fi
9785  ;;
9786
9787aix4* | aix5*)
9788  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9789    test "$enable_shared" = yes && enable_static=no
9790  fi
9791    ;;
9792esac
9793echo "$as_me:$LINENO: result: $enable_shared" >&5
9794echo "${ECHO_T}$enable_shared" >&6
9795
9796echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9797echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9798# Make sure either enable_shared or enable_static is yes.
9799test "$enable_shared" = yes || enable_static=yes
9800echo "$as_me:$LINENO: result: $enable_static" >&5
9801echo "${ECHO_T}$enable_static" >&6
9802
9803# The else clause should only fire when bootstrapping the
9804# libtool distribution, otherwise you forgot to ship ltmain.sh
9805# with your package, and you will get complaints that there are
9806# no rules to generate ltmain.sh.
9807if test -f "$ltmain"; then
9808  # See if we are running on zsh, and set the options which allow our commands through
9809  # without removal of \ escapes.
9810  if test -n "${ZSH_VERSION+set}" ; then
9811    setopt NO_GLOB_SUBST
9812  fi
9813  # Now quote all the things that may contain metacharacters while being
9814  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9815  # variables and quote the copies for generation of the libtool script.
9816  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9817    SED SHELL STRIP \
9818    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9819    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9820    deplibs_check_method reload_flag reload_cmds need_locks \
9821    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9822    lt_cv_sys_global_symbol_to_c_name_address \
9823    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9824    old_postinstall_cmds old_postuninstall_cmds \
9825    compiler \
9826    CC \
9827    LD \
9828    lt_prog_compiler_wl \
9829    lt_prog_compiler_pic \
9830    lt_prog_compiler_static \
9831    lt_prog_compiler_no_builtin_flag \
9832    export_dynamic_flag_spec \
9833    thread_safe_flag_spec \
9834    whole_archive_flag_spec \
9835    enable_shared_with_static_runtimes \
9836    old_archive_cmds \
9837    old_archive_from_new_cmds \
9838    predep_objects \
9839    postdep_objects \
9840    predeps \
9841    postdeps \
9842    compiler_lib_search_path \
9843    archive_cmds \
9844    archive_expsym_cmds \
9845    postinstall_cmds \
9846    postuninstall_cmds \
9847    old_archive_from_expsyms_cmds \
9848    allow_undefined_flag \
9849    no_undefined_flag \
9850    export_symbols_cmds \
9851    hardcode_libdir_flag_spec \
9852    hardcode_libdir_flag_spec_ld \
9853    hardcode_libdir_separator \
9854    hardcode_automatic \
9855    module_cmds \
9856    module_expsym_cmds \
9857    lt_cv_prog_compiler_c_o \
9858    exclude_expsyms \
9859    include_expsyms; do
9860
9861    case $var in
9862    old_archive_cmds | \
9863    old_archive_from_new_cmds | \
9864    archive_cmds | \
9865    archive_expsym_cmds | \
9866    module_cmds | \
9867    module_expsym_cmds | \
9868    old_archive_from_expsyms_cmds | \
9869    export_symbols_cmds | \
9870    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9871    postinstall_cmds | postuninstall_cmds | \
9872    old_postinstall_cmds | old_postuninstall_cmds | \
9873    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9874      # Double-quote double-evaled strings.
9875      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9876      ;;
9877    *)
9878      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9879      ;;
9880    esac
9881  done
9882
9883  case $lt_echo in
9884  *'\$0 --fallback-echo"')
9885    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9886    ;;
9887  esac
9888
9889cfgfile="${ofile}T"
9890  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9891  $rm -f "$cfgfile"
9892  { echo "$as_me:$LINENO: creating $ofile" >&5
9893echo "$as_me: creating $ofile" >&6;}
9894
9895  cat <<__EOF__ >> "$cfgfile"
9896#! $SHELL
9897
9898# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9899# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9900# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9901#
9902# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9903# Free Software Foundation, Inc.
9904#
9905# This file is part of GNU Libtool:
9906# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9907#
9908# This program is free software; you can redistribute it and/or modify
9909# it under the terms of the GNU General Public License as published by
9910# the Free Software Foundation; either version 2 of the License, or
9911# (at your option) any later version.
9912#
9913# This program is distributed in the hope that it will be useful, but
9914# WITHOUT ANY WARRANTY; without even the implied warranty of
9915# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9916# General Public License for more details.
9917#
9918# You should have received a copy of the GNU General Public License
9919# along with this program; if not, write to the Free Software
9920# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9921#
9922# As a special exception to the GNU General Public License, if you
9923# distribute this file as part of a program that contains a
9924# configuration script generated by Autoconf, you may include it under
9925# the same distribution terms that you use for the rest of that program.
9926
9927# A sed program that does not truncate output.
9928SED=$lt_SED
9929
9930# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9931Xsed="$SED -e 1s/^X//"
9932
9933# The HP-UX ksh and POSIX shell print the target directory to stdout
9934# if CDPATH is set.
9935(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9936
9937# The names of the tagged configurations supported by this script.
9938available_tags=
9939
9940# ### BEGIN LIBTOOL CONFIG
9941
9942# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9943
9944# Shell to use when invoking shell scripts.
9945SHELL=$lt_SHELL
9946
9947# Whether or not to build shared libraries.
9948build_libtool_libs=$enable_shared
9949
9950# Whether or not to build static libraries.
9951build_old_libs=$enable_static
9952
9953# Whether or not to add -lc for building shared libraries.
9954build_libtool_need_lc=$archive_cmds_need_lc
9955
9956# Whether or not to disallow shared libs when runtime libs are static
9957allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9958
9959# Whether or not to optimize for fast installation.
9960fast_install=$enable_fast_install
9961
9962# The host system.
9963host_alias=$host_alias
9964host=$host
9965host_os=$host_os
9966
9967# The build system.
9968build_alias=$build_alias
9969build=$build
9970build_os=$build_os
9971
9972# An echo program that does not interpret backslashes.
9973echo=$lt_echo
9974
9975# The archiver.
9976AR=$lt_AR
9977AR_FLAGS=$lt_AR_FLAGS
9978
9979# A C compiler.
9980LTCC=$lt_LTCC
9981
9982# LTCC compiler flags.
9983LTCFLAGS=$lt_LTCFLAGS
9984
9985# A language-specific compiler.
9986CC=$lt_compiler
9987
9988# Is the compiler the GNU C compiler?
9989with_gcc=$GCC
9990
9991# An ERE matcher.
9992EGREP=$lt_EGREP
9993
9994# The linker used to build libraries.
9995LD=$lt_LD
9996
9997# Whether we need hard or soft links.
9998LN_S=$lt_LN_S
9999
10000# A BSD-compatible nm program.
10001NM=$lt_NM
10002
10003# A symbol stripping program
10004STRIP=$lt_STRIP
10005
10006# Used to examine libraries when file_magic_cmd begins "file"
10007MAGIC_CMD=$MAGIC_CMD
10008
10009# Used on cygwin: DLL creation program.
10010DLLTOOL="$DLLTOOL"
10011
10012# Used on cygwin: object dumper.
10013OBJDUMP="$OBJDUMP"
10014
10015# Used on cygwin: assembler.
10016AS="$AS"
10017
10018# The name of the directory that contains temporary libtool files.
10019objdir=$objdir
10020
10021# How to create reloadable object files.
10022reload_flag=$lt_reload_flag
10023reload_cmds=$lt_reload_cmds
10024
10025# How to pass a linker flag through the compiler.
10026wl=$lt_lt_prog_compiler_wl
10027
10028# Object file suffix (normally "o").
10029objext="$ac_objext"
10030
10031# Old archive suffix (normally "a").
10032libext="$libext"
10033
10034# Shared library suffix (normally ".so").
10035shrext_cmds='$shrext_cmds'
10036
10037# Executable file suffix (normally "").
10038exeext="$exeext"
10039
10040# Additional compiler flags for building library objects.
10041pic_flag=$lt_lt_prog_compiler_pic
10042pic_mode=$pic_mode
10043
10044# What is the maximum length of a command?
10045max_cmd_len=$lt_cv_sys_max_cmd_len
10046
10047# Does compiler simultaneously support -c and -o options?
10048compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10049
10050# Must we lock files when doing compilation?
10051need_locks=$lt_need_locks
10052
10053# Do we need the lib prefix for modules?
10054need_lib_prefix=$need_lib_prefix
10055
10056# Do we need a version for libraries?
10057need_version=$need_version
10058
10059# Whether dlopen is supported.
10060dlopen_support=$enable_dlopen
10061
10062# Whether dlopen of programs is supported.
10063dlopen_self=$enable_dlopen_self
10064
10065# Whether dlopen of statically linked programs is supported.
10066dlopen_self_static=$enable_dlopen_self_static
10067
10068# Compiler flag to prevent dynamic linking.
10069link_static_flag=$lt_lt_prog_compiler_static
10070
10071# Compiler flag to turn off builtin functions.
10072no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10073
10074# Compiler flag to allow reflexive dlopens.
10075export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10076
10077# Compiler flag to generate shared objects directly from archives.
10078whole_archive_flag_spec=$lt_whole_archive_flag_spec
10079
10080# Compiler flag to generate thread-safe objects.
10081thread_safe_flag_spec=$lt_thread_safe_flag_spec
10082
10083# Library versioning type.
10084version_type=$version_type
10085
10086# Format of library name prefix.
10087libname_spec=$lt_libname_spec
10088
10089# List of archive names.  First name is the real one, the rest are links.
10090# The last name is the one that the linker finds with -lNAME.
10091library_names_spec=$lt_library_names_spec
10092
10093# The coded name of the library, if different from the real name.
10094soname_spec=$lt_soname_spec
10095
10096# Commands used to build and install an old-style archive.
10097RANLIB=$lt_RANLIB
10098old_archive_cmds=$lt_old_archive_cmds
10099old_postinstall_cmds=$lt_old_postinstall_cmds
10100old_postuninstall_cmds=$lt_old_postuninstall_cmds
10101
10102# Create an old-style archive from a shared archive.
10103old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10104
10105# Create a temporary old-style archive to link instead of a shared archive.
10106old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10107
10108# Commands used to build and install a shared archive.
10109archive_cmds=$lt_archive_cmds
10110archive_expsym_cmds=$lt_archive_expsym_cmds
10111postinstall_cmds=$lt_postinstall_cmds
10112postuninstall_cmds=$lt_postuninstall_cmds
10113
10114# Commands used to build a loadable module (assumed same as above if empty)
10115module_cmds=$lt_module_cmds
10116module_expsym_cmds=$lt_module_expsym_cmds
10117
10118# Commands to strip libraries.
10119old_striplib=$lt_old_striplib
10120striplib=$lt_striplib
10121
10122# Dependencies to place before the objects being linked to create a
10123# shared library.
10124predep_objects=$lt_predep_objects
10125
10126# Dependencies to place after the objects being linked to create a
10127# shared library.
10128postdep_objects=$lt_postdep_objects
10129
10130# Dependencies to place before the objects being linked to create a
10131# shared library.
10132predeps=$lt_predeps
10133
10134# Dependencies to place after the objects being linked to create a
10135# shared library.
10136postdeps=$lt_postdeps
10137
10138# The library search path used internally by the compiler when linking
10139# a shared library.
10140compiler_lib_search_path=$lt_compiler_lib_search_path
10141
10142# Method to check whether dependent libraries are shared objects.
10143deplibs_check_method=$lt_deplibs_check_method
10144
10145# Command to use when deplibs_check_method == file_magic.
10146file_magic_cmd=$lt_file_magic_cmd
10147
10148# Flag that allows shared libraries with undefined symbols to be built.
10149allow_undefined_flag=$lt_allow_undefined_flag
10150
10151# Flag that forces no undefined symbols.
10152no_undefined_flag=$lt_no_undefined_flag
10153
10154# Commands used to finish a libtool library installation in a directory.
10155finish_cmds=$lt_finish_cmds
10156
10157# Same as above, but a single script fragment to be evaled but not shown.
10158finish_eval=$lt_finish_eval
10159
10160# Take the output of nm and produce a listing of raw symbols and C names.
10161global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10162
10163# Transform the output of nm in a proper C declaration
10164global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10165
10166# Transform the output of nm in a C name address pair
10167global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10168
10169# This is the shared library runtime path variable.
10170runpath_var=$runpath_var
10171
10172# This is the shared library path variable.
10173shlibpath_var=$shlibpath_var
10174
10175# Is shlibpath searched before the hard-coded library search path?
10176shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10177
10178# How to hardcode a shared library path into an executable.
10179hardcode_action=$hardcode_action
10180
10181# Whether we should hardcode library paths into libraries.
10182hardcode_into_libs=$hardcode_into_libs
10183
10184# Flag to hardcode \$libdir into a binary during linking.
10185# This must work even if \$libdir does not exist.
10186hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10187
10188# If ld is used when linking, flag to hardcode \$libdir into
10189# a binary during linking. This must work even if \$libdir does
10190# not exist.
10191hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10192
10193# Whether we need a single -rpath flag with a separated argument.
10194hardcode_libdir_separator=$lt_hardcode_libdir_separator
10195
10196# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10197# resulting binary.
10198hardcode_direct=$hardcode_direct
10199
10200# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10201# resulting binary.
10202hardcode_minus_L=$hardcode_minus_L
10203
10204# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10205# the resulting binary.
10206hardcode_shlibpath_var=$hardcode_shlibpath_var
10207
10208# Set to yes if building a shared library automatically hardcodes DIR into the library
10209# and all subsequent libraries and executables linked against it.
10210hardcode_automatic=$hardcode_automatic
10211
10212# Variables whose values should be saved in libtool wrapper scripts and
10213# restored at relink time.
10214variables_saved_for_relink="$variables_saved_for_relink"
10215
10216# Whether libtool must link a program against all its dependency libraries.
10217link_all_deplibs=$link_all_deplibs
10218
10219# Compile-time system search path for libraries
10220sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10221
10222# Run-time system search path for libraries
10223sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10224
10225# Fix the shell variable \$srcfile for the compiler.
10226fix_srcfile_path="$fix_srcfile_path"
10227
10228# Set to yes if exported symbols are required.
10229always_export_symbols=$always_export_symbols
10230
10231# The commands to list exported symbols.
10232export_symbols_cmds=$lt_export_symbols_cmds
10233
10234# The commands to extract the exported symbol list from a shared archive.
10235extract_expsyms_cmds=$lt_extract_expsyms_cmds
10236
10237# Symbols that should not be listed in the preloaded symbols.
10238exclude_expsyms=$lt_exclude_expsyms
10239
10240# Symbols that must always be exported.
10241include_expsyms=$lt_include_expsyms
10242
10243# ### END LIBTOOL CONFIG
10244
10245__EOF__
10246
10247
10248  case $host_os in
10249  aix3*)
10250    cat <<\EOF >> "$cfgfile"
10251
10252# AIX sometimes has problems with the GCC collect2 program.  For some
10253# reason, if we set the COLLECT_NAMES environment variable, the problems
10254# vanish in a puff of smoke.
10255if test "X${COLLECT_NAMES+set}" != Xset; then
10256  COLLECT_NAMES=
10257  export COLLECT_NAMES
10258fi
10259EOF
10260    ;;
10261  esac
10262
10263  # We use sed instead of cat because bash on DJGPP gets confused if
10264  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10265  # text mode, it properly converts lines to CR/LF.  This bash problem
10266  # is reportedly fixed, but why not run on old versions too?
10267  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10268
10269  mv -f "$cfgfile" "$ofile" || \
10270    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10271  chmod +x "$ofile"
10272
10273else
10274  # If there is no Makefile yet, we rely on a make rule to execute
10275  # `config.status --recheck' to rerun these tests and create the
10276  # libtool script then.
10277  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10278  if test -f "$ltmain_in"; then
10279    test -f Makefile && make "$ltmain"
10280  fi
10281fi
10282
10283
10284ac_ext=c
10285ac_cpp='$CPP $CPPFLAGS'
10286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10288ac_compiler_gnu=$ac_cv_c_compiler_gnu
10289
10290CC="$lt_save_CC"
10291
10292
10293# Check whether --with-tags or --without-tags was given.
10294if test "${with_tags+set}" = set; then
10295  withval="$with_tags"
10296  tagnames="$withval"
10297fi;
10298
10299if test -f "$ltmain" && test -n "$tagnames"; then
10300  if test ! -f "${ofile}"; then
10301    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10302echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10303  fi
10304
10305  if test -z "$LTCC"; then
10306    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10307    if test -z "$LTCC"; then
10308      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10309echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10310    else
10311      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10312echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10313    fi
10314  fi
10315  if test -z "$LTCFLAGS"; then
10316    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10317  fi
10318
10319  # Extract list of available tagged configurations in $ofile.
10320  # Note that this assumes the entire list is on one line.
10321  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10322
10323  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10324  for tagname in $tagnames; do
10325    IFS="$lt_save_ifs"
10326    # Check whether tagname contains only valid characters
10327    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10328    "") ;;
10329    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10330echo "$as_me: error: invalid tag name: $tagname" >&2;}
10331   { (exit 1); exit 1; }; }
10332	;;
10333    esac
10334
10335    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10336    then
10337      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10338echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10339   { (exit 1); exit 1; }; }
10340    fi
10341
10342    # Update the list of available tags.
10343    if test -n "$tagname"; then
10344      echo appending configuration tag \"$tagname\" to $ofile
10345
10346      case $tagname in
10347      CXX)
10348	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10349	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10350	    (test "X$CXX" != "Xg++"))) ; then
10351	  ac_ext=cc
10352ac_cpp='$CXXCPP $CPPFLAGS'
10353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10356
10357
10358
10359
10360archive_cmds_need_lc_CXX=no
10361allow_undefined_flag_CXX=
10362always_export_symbols_CXX=no
10363archive_expsym_cmds_CXX=
10364export_dynamic_flag_spec_CXX=
10365hardcode_direct_CXX=no
10366hardcode_libdir_flag_spec_CXX=
10367hardcode_libdir_flag_spec_ld_CXX=
10368hardcode_libdir_separator_CXX=
10369hardcode_minus_L_CXX=no
10370hardcode_shlibpath_var_CXX=unsupported
10371hardcode_automatic_CXX=no
10372module_cmds_CXX=
10373module_expsym_cmds_CXX=
10374link_all_deplibs_CXX=unknown
10375old_archive_cmds_CXX=$old_archive_cmds
10376no_undefined_flag_CXX=
10377whole_archive_flag_spec_CXX=
10378enable_shared_with_static_runtimes_CXX=no
10379
10380# Dependencies to place before and after the object being linked:
10381predep_objects_CXX=
10382postdep_objects_CXX=
10383predeps_CXX=
10384postdeps_CXX=
10385compiler_lib_search_path_CXX=
10386
10387# Source file extension for C++ test sources.
10388ac_ext=cpp
10389
10390# Object file extension for compiled C++ test sources.
10391objext=o
10392objext_CXX=$objext
10393
10394# Code to be used in simple compile tests
10395lt_simple_compile_test_code="int some_variable = 0;\n"
10396
10397# Code to be used in simple link tests
10398lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10399
10400# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10401
10402# If no C compiler was specified, use CC.
10403LTCC=${LTCC-"$CC"}
10404
10405# If no C compiler flags were specified, use CFLAGS.
10406LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10407
10408# Allow CC to be a program name with arguments.
10409compiler=$CC
10410
10411
10412# save warnings/boilerplate of simple test code
10413ac_outfile=conftest.$ac_objext
10414printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10415eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10416_lt_compiler_boilerplate=`cat conftest.err`
10417$rm conftest*
10418
10419ac_outfile=conftest.$ac_objext
10420printf "$lt_simple_link_test_code" >conftest.$ac_ext
10421eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10422_lt_linker_boilerplate=`cat conftest.err`
10423$rm conftest*
10424
10425
10426# Allow CC to be a program name with arguments.
10427lt_save_CC=$CC
10428lt_save_LD=$LD
10429lt_save_GCC=$GCC
10430GCC=$GXX
10431lt_save_with_gnu_ld=$with_gnu_ld
10432lt_save_path_LD=$lt_cv_path_LD
10433if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10434  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10435else
10436  $as_unset lt_cv_prog_gnu_ld
10437fi
10438if test -n "${lt_cv_path_LDCXX+set}"; then
10439  lt_cv_path_LD=$lt_cv_path_LDCXX
10440else
10441  $as_unset lt_cv_path_LD
10442fi
10443test -z "${LDCXX+set}" || LD=$LDCXX
10444CC=${CXX-"c++"}
10445compiler=$CC
10446compiler_CXX=$CC
10447for cc_temp in $compiler""; do
10448  case $cc_temp in
10449    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10450    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10451    \-*) ;;
10452    *) break;;
10453  esac
10454done
10455cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10456
10457
10458# We don't want -fno-exception wen compiling C++ code, so set the
10459# no_builtin_flag separately
10460if test "$GXX" = yes; then
10461  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10462else
10463  lt_prog_compiler_no_builtin_flag_CXX=
10464fi
10465
10466if test "$GXX" = yes; then
10467  # Set up default GNU C++ configuration
10468
10469
10470# Check whether --with-gnu-ld or --without-gnu-ld was given.
10471if test "${with_gnu_ld+set}" = set; then
10472  withval="$with_gnu_ld"
10473  test "$withval" = no || with_gnu_ld=yes
10474else
10475  with_gnu_ld=no
10476fi;
10477ac_prog=ld
10478if test "$GCC" = yes; then
10479  # Check if gcc -print-prog-name=ld gives a path.
10480  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10481echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10482  case $host in
10483  *-*-mingw*)
10484    # gcc leaves a trailing carriage return which upsets mingw
10485    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10486  *)
10487    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10488  esac
10489  case $ac_prog in
10490    # Accept absolute paths.
10491    [\\/]* | ?:[\\/]*)
10492      re_direlt='/[^/][^/]*/\.\./'
10493      # Canonicalize the pathname of ld
10494      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10495      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10496	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10497      done
10498      test -z "$LD" && LD="$ac_prog"
10499      ;;
10500  "")
10501    # If it fails, then pretend we aren't using GCC.
10502    ac_prog=ld
10503    ;;
10504  *)
10505    # If it is relative, then search for the first ld in PATH.
10506    with_gnu_ld=unknown
10507    ;;
10508  esac
10509elif test "$with_gnu_ld" = yes; then
10510  echo "$as_me:$LINENO: checking for GNU ld" >&5
10511echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10512else
10513  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10514echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10515fi
10516if test "${lt_cv_path_LD+set}" = set; then
10517  echo $ECHO_N "(cached) $ECHO_C" >&6
10518else
10519  if test -z "$LD"; then
10520  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10521  for ac_dir in $PATH; do
10522    IFS="$lt_save_ifs"
10523    test -z "$ac_dir" && ac_dir=.
10524    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10525      lt_cv_path_LD="$ac_dir/$ac_prog"
10526      # Check to see if the program is GNU ld.  I'd rather use --version,
10527      # but apparently some variants of GNU ld only accept -v.
10528      # Break only if it was the GNU/non-GNU ld that we prefer.
10529      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10530      *GNU* | *'with BFD'*)
10531	test "$with_gnu_ld" != no && break
10532	;;
10533      *)
10534	test "$with_gnu_ld" != yes && break
10535	;;
10536      esac
10537    fi
10538  done
10539  IFS="$lt_save_ifs"
10540else
10541  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10542fi
10543fi
10544
10545LD="$lt_cv_path_LD"
10546if test -n "$LD"; then
10547  echo "$as_me:$LINENO: result: $LD" >&5
10548echo "${ECHO_T}$LD" >&6
10549else
10550  echo "$as_me:$LINENO: result: no" >&5
10551echo "${ECHO_T}no" >&6
10552fi
10553test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10554echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10555   { (exit 1); exit 1; }; }
10556echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10557echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10558if test "${lt_cv_prog_gnu_ld+set}" = set; then
10559  echo $ECHO_N "(cached) $ECHO_C" >&6
10560else
10561  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10562case `$LD -v 2>&1 </dev/null` in
10563*GNU* | *'with BFD'*)
10564  lt_cv_prog_gnu_ld=yes
10565  ;;
10566*)
10567  lt_cv_prog_gnu_ld=no
10568  ;;
10569esac
10570fi
10571echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10572echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10573with_gnu_ld=$lt_cv_prog_gnu_ld
10574
10575
10576
10577  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10578  # archiving commands below assume that GNU ld is being used.
10579  if test "$with_gnu_ld" = yes; then
10580    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10581    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'
10582
10583    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10584    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10585
10586    # If archive_cmds runs LD, not CC, wlarc should be empty
10587    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10588    #     investigate it a little bit more. (MM)
10589    wlarc='${wl}'
10590
10591    # ancient GNU ld didn't support --whole-archive et. al.
10592    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10593	grep 'no-whole-archive' > /dev/null; then
10594      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10595    else
10596      whole_archive_flag_spec_CXX=
10597    fi
10598  else
10599    with_gnu_ld=no
10600    wlarc=
10601
10602    # A generic and very simple default shared library creation
10603    # command for GNU C++ for the case where it uses the native
10604    # linker, instead of GNU ld.  If possible, this setting should
10605    # overridden to take advantage of the native linker features on
10606    # the platform it is being used on.
10607    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10608  fi
10609
10610  # Commands to make compiler produce verbose output that lists
10611  # what "hidden" libraries, object files and flags are used when
10612  # linking a shared library.
10613  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10614
10615else
10616  GXX=no
10617  with_gnu_ld=no
10618  wlarc=
10619fi
10620
10621# PORTME: fill in a description of your system's C++ link characteristics
10622echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10623echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10624ld_shlibs_CXX=yes
10625case $host_os in
10626  aix3*)
10627    # FIXME: insert proper C++ library support
10628    ld_shlibs_CXX=no
10629    ;;
10630  aix4* | aix5*)
10631    if test "$host_cpu" = ia64; then
10632      # On IA64, the linker does run time linking by default, so we don't
10633      # have to do anything special.
10634      aix_use_runtimelinking=no
10635      exp_sym_flag='-Bexport'
10636      no_entry_flag=""
10637    else
10638      aix_use_runtimelinking=no
10639
10640      # Test if we are trying to use run time linking or normal
10641      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10642      # need to do runtime linking.
10643      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10644	for ld_flag in $LDFLAGS; do
10645	  case $ld_flag in
10646	  *-brtl*)
10647	    aix_use_runtimelinking=yes
10648	    break
10649	    ;;
10650	  esac
10651	done
10652	;;
10653      esac
10654
10655      exp_sym_flag='-bexport'
10656      no_entry_flag='-bnoentry'
10657    fi
10658
10659    # When large executables or shared objects are built, AIX ld can
10660    # have problems creating the table of contents.  If linking a library
10661    # or program results in "error TOC overflow" add -mminimal-toc to
10662    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10663    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10664
10665    archive_cmds_CXX=''
10666    hardcode_direct_CXX=yes
10667    hardcode_libdir_separator_CXX=':'
10668    link_all_deplibs_CXX=yes
10669
10670    if test "$GXX" = yes; then
10671      case $host_os in aix4.[012]|aix4.[012].*)
10672      # We only want to do this on AIX 4.2 and lower, the check
10673      # below for broken collect2 doesn't work under 4.3+
10674	collect2name=`${CC} -print-prog-name=collect2`
10675	if test -f "$collect2name" && \
10676	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10677	then
10678	  # We have reworked collect2
10679	  hardcode_direct_CXX=yes
10680	else
10681	  # We have old collect2
10682	  hardcode_direct_CXX=unsupported
10683	  # It fails to find uninstalled libraries when the uninstalled
10684	  # path is not listed in the libpath.  Setting hardcode_minus_L
10685	  # to unsupported forces relinking
10686	  hardcode_minus_L_CXX=yes
10687	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10688	  hardcode_libdir_separator_CXX=
10689	fi
10690	;;
10691      esac
10692      shared_flag='-shared'
10693      if test "$aix_use_runtimelinking" = yes; then
10694	shared_flag="$shared_flag "'${wl}-G'
10695      fi
10696    else
10697      # not using gcc
10698      if test "$host_cpu" = ia64; then
10699	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10700	# chokes on -Wl,-G. The following line is correct:
10701	shared_flag='-G'
10702      else
10703	if test "$aix_use_runtimelinking" = yes; then
10704	  shared_flag='${wl}-G'
10705	else
10706	  shared_flag='${wl}-bM:SRE'
10707	fi
10708      fi
10709    fi
10710
10711    # It seems that -bexpall does not export symbols beginning with
10712    # underscore (_), so it is better to generate a list of symbols to export.
10713    always_export_symbols_CXX=yes
10714    if test "$aix_use_runtimelinking" = yes; then
10715      # Warning - without using the other runtime loading flags (-brtl),
10716      # -berok will link without error, but may produce a broken library.
10717      allow_undefined_flag_CXX='-berok'
10718      # Determine the default libpath from the value encoded in an empty executable.
10719      cat >conftest.$ac_ext <<_ACEOF
10720/* confdefs.h.  */
10721_ACEOF
10722cat confdefs.h >>conftest.$ac_ext
10723cat >>conftest.$ac_ext <<_ACEOF
10724/* end confdefs.h.  */
10725
10726int
10727main ()
10728{
10729
10730  ;
10731  return 0;
10732}
10733_ACEOF
10734rm -f conftest.$ac_objext conftest$ac_exeext
10735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10736  (eval $ac_link) 2>conftest.er1
10737  ac_status=$?
10738  grep -v '^ *+' conftest.er1 >conftest.err
10739  rm -f conftest.er1
10740  cat conftest.err >&5
10741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742  (exit $ac_status); } &&
10743	 { ac_try='test -z "$ac_cxx_werror_flag"
10744			 || test ! -s conftest.err'
10745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746  (eval $ac_try) 2>&5
10747  ac_status=$?
10748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749  (exit $ac_status); }; } &&
10750	 { ac_try='test -s conftest$ac_exeext'
10751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752  (eval $ac_try) 2>&5
10753  ac_status=$?
10754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755  (exit $ac_status); }; }; then
10756
10757aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10758}'`
10759# Check for a 64-bit object if we didn't find anything.
10760if 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; }
10761}'`; fi
10762else
10763  echo "$as_me: failed program was:" >&5
10764sed 's/^/| /' conftest.$ac_ext >&5
10765
10766fi
10767rm -f conftest.err conftest.$ac_objext \
10768      conftest$ac_exeext conftest.$ac_ext
10769if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10770
10771      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10772
10773      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"
10774     else
10775      if test "$host_cpu" = ia64; then
10776	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10777	allow_undefined_flag_CXX="-z nodefs"
10778	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"
10779      else
10780	# Determine the default libpath from the value encoded in an empty executable.
10781	cat >conftest.$ac_ext <<_ACEOF
10782/* confdefs.h.  */
10783_ACEOF
10784cat confdefs.h >>conftest.$ac_ext
10785cat >>conftest.$ac_ext <<_ACEOF
10786/* end confdefs.h.  */
10787
10788int
10789main ()
10790{
10791
10792  ;
10793  return 0;
10794}
10795_ACEOF
10796rm -f conftest.$ac_objext conftest$ac_exeext
10797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10798  (eval $ac_link) 2>conftest.er1
10799  ac_status=$?
10800  grep -v '^ *+' conftest.er1 >conftest.err
10801  rm -f conftest.er1
10802  cat conftest.err >&5
10803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804  (exit $ac_status); } &&
10805	 { ac_try='test -z "$ac_cxx_werror_flag"
10806			 || test ! -s conftest.err'
10807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808  (eval $ac_try) 2>&5
10809  ac_status=$?
10810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811  (exit $ac_status); }; } &&
10812	 { ac_try='test -s conftest$ac_exeext'
10813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814  (eval $ac_try) 2>&5
10815  ac_status=$?
10816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817  (exit $ac_status); }; }; then
10818
10819aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10820}'`
10821# Check for a 64-bit object if we didn't find anything.
10822if 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; }
10823}'`; fi
10824else
10825  echo "$as_me: failed program was:" >&5
10826sed 's/^/| /' conftest.$ac_ext >&5
10827
10828fi
10829rm -f conftest.err conftest.$ac_objext \
10830      conftest$ac_exeext conftest.$ac_ext
10831if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10832
10833	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10834	# Warning - without using the other run time loading flags,
10835	# -berok will link without error, but may produce a broken library.
10836	no_undefined_flag_CXX=' ${wl}-bernotok'
10837	allow_undefined_flag_CXX=' ${wl}-berok'
10838	# Exported symbols can be pulled into shared objects from archives
10839	whole_archive_flag_spec_CXX='$convenience'
10840	archive_cmds_need_lc_CXX=yes
10841	# This is similar to how AIX traditionally builds its shared libraries.
10842	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'
10843      fi
10844    fi
10845    ;;
10846
10847  beos*)
10848    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10849      allow_undefined_flag_CXX=unsupported
10850      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10851      # support --undefined.  This deserves some investigation.  FIXME
10852      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10853    else
10854      ld_shlibs_CXX=no
10855    fi
10856    ;;
10857
10858  chorus*)
10859    case $cc_basename in
10860      *)
10861	# FIXME: insert proper C++ library support
10862	ld_shlibs_CXX=no
10863	;;
10864    esac
10865    ;;
10866
10867  cygwin* | mingw* | pw32*)
10868    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10869    # as there is no search path for DLLs.
10870    hardcode_libdir_flag_spec_CXX='-L$libdir'
10871    allow_undefined_flag_CXX=unsupported
10872    always_export_symbols_CXX=no
10873    enable_shared_with_static_runtimes_CXX=yes
10874
10875    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10876      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'
10877      # If the export-symbols file already is a .def file (1st line
10878      # is EXPORTS), use it as is; otherwise, prepend...
10879      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10880	cp $export_symbols $output_objdir/$soname.def;
10881      else
10882	echo EXPORTS > $output_objdir/$soname.def;
10883	cat $export_symbols >> $output_objdir/$soname.def;
10884      fi~
10885      $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'
10886    else
10887      ld_shlibs_CXX=no
10888    fi
10889  ;;
10890      darwin* | rhapsody*)
10891        case $host_os in
10892        rhapsody* | darwin1.[012])
10893         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10894         ;;
10895       *) # Darwin 1.3 on
10896         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10897           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10898         else
10899           case ${MACOSX_DEPLOYMENT_TARGET} in
10900             10.[012])
10901               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10902               ;;
10903             10.*)
10904               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10905               ;;
10906           esac
10907         fi
10908         ;;
10909        esac
10910      archive_cmds_need_lc_CXX=no
10911      hardcode_direct_CXX=no
10912      hardcode_automatic_CXX=yes
10913      hardcode_shlibpath_var_CXX=unsupported
10914      whole_archive_flag_spec_CXX=''
10915      link_all_deplibs_CXX=yes
10916
10917    if test "$GXX" = yes ; then
10918      lt_int_apple_cc_single_mod=no
10919      output_verbose_link_cmd='echo'
10920      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10921       lt_int_apple_cc_single_mod=yes
10922      fi
10923      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10924       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10925      else
10926          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'
10927        fi
10928        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10929        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10930          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10931            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}'
10932          else
10933            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}'
10934          fi
10935            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}'
10936      else
10937      case $cc_basename in
10938        xlc*)
10939         output_verbose_link_cmd='echo'
10940          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'
10941          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10942          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10943          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}'
10944          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}'
10945          ;;
10946       *)
10947         ld_shlibs_CXX=no
10948          ;;
10949      esac
10950      fi
10951        ;;
10952
10953  dgux*)
10954    case $cc_basename in
10955      ec++*)
10956	# FIXME: insert proper C++ library support
10957	ld_shlibs_CXX=no
10958	;;
10959      ghcx*)
10960	# Green Hills C++ Compiler
10961	# FIXME: insert proper C++ library support
10962	ld_shlibs_CXX=no
10963	;;
10964      *)
10965	# FIXME: insert proper C++ library support
10966	ld_shlibs_CXX=no
10967	;;
10968    esac
10969    ;;
10970  freebsd[12]*)
10971    # C++ shared libraries reported to be fairly broken before switch to ELF
10972    ld_shlibs_CXX=no
10973    ;;
10974  freebsd-elf*)
10975    archive_cmds_need_lc_CXX=no
10976    ;;
10977  freebsd* | kfreebsd*-gnu | dragonfly*)
10978    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10979    # conventions
10980    ld_shlibs_CXX=yes
10981    ;;
10982  gnu*)
10983    ;;
10984  hpux9*)
10985    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10986    hardcode_libdir_separator_CXX=:
10987    export_dynamic_flag_spec_CXX='${wl}-E'
10988    hardcode_direct_CXX=yes
10989    hardcode_minus_L_CXX=yes # Not in the search PATH,
10990				# but as the default
10991				# location of the library.
10992
10993    case $cc_basename in
10994    CC*)
10995      # FIXME: insert proper C++ library support
10996      ld_shlibs_CXX=no
10997      ;;
10998    aCC*)
10999      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'
11000      # Commands to make compiler produce verbose output that lists
11001      # what "hidden" libraries, object files and flags are used when
11002      # linking a shared library.
11003      #
11004      # There doesn't appear to be a way to prevent this compiler from
11005      # explicitly linking system object files so we need to strip them
11006      # from the output so that they don't get included in the library
11007      # dependencies.
11008      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'
11009      ;;
11010    *)
11011      if test "$GXX" = yes; then
11012        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'
11013      else
11014        # FIXME: insert proper C++ library support
11015        ld_shlibs_CXX=no
11016      fi
11017      ;;
11018    esac
11019    ;;
11020  hpux10*|hpux11*)
11021    if test $with_gnu_ld = no; then
11022      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11023      hardcode_libdir_separator_CXX=:
11024
11025      case $host_cpu in
11026      hppa*64*|ia64*)
11027	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11028        ;;
11029      *)
11030	export_dynamic_flag_spec_CXX='${wl}-E'
11031        ;;
11032      esac
11033    fi
11034    case $host_cpu in
11035    hppa*64*|ia64*)
11036      hardcode_direct_CXX=no
11037      hardcode_shlibpath_var_CXX=no
11038      ;;
11039    *)
11040      hardcode_direct_CXX=yes
11041      hardcode_minus_L_CXX=yes # Not in the search PATH,
11042					      # but as the default
11043					      # location of the library.
11044      ;;
11045    esac
11046
11047    case $cc_basename in
11048      CC*)
11049	# FIXME: insert proper C++ library support
11050	ld_shlibs_CXX=no
11051	;;
11052      aCC*)
11053	case $host_cpu in
11054	hppa*64*)
11055	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11056	  ;;
11057	ia64*)
11058	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11059	  ;;
11060	*)
11061	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11062	  ;;
11063	esac
11064	# Commands to make compiler produce verbose output that lists
11065	# what "hidden" libraries, object files and flags are used when
11066	# linking a shared library.
11067	#
11068	# There doesn't appear to be a way to prevent this compiler from
11069	# explicitly linking system object files so we need to strip them
11070	# from the output so that they don't get included in the library
11071	# dependencies.
11072	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'
11073	;;
11074      *)
11075	if test "$GXX" = yes; then
11076	  if test $with_gnu_ld = no; then
11077	    case $host_cpu in
11078	    hppa*64*)
11079	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11080	      ;;
11081	    ia64*)
11082	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11083	      ;;
11084	    *)
11085	      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'
11086	      ;;
11087	    esac
11088	  fi
11089	else
11090	  # FIXME: insert proper C++ library support
11091	  ld_shlibs_CXX=no
11092	fi
11093	;;
11094    esac
11095    ;;
11096  interix3*)
11097    hardcode_direct_CXX=no
11098    hardcode_shlibpath_var_CXX=no
11099    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11100    export_dynamic_flag_spec_CXX='${wl}-E'
11101    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11102    # Instead, shared libraries are loaded at an image base (0x10000000 by
11103    # default) and relocated if they conflict, which is a slow very memory
11104    # consuming and fragmenting process.  To avoid this, we pick a random,
11105    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11106    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11107    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'
11108    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'
11109    ;;
11110  irix5* | irix6*)
11111    case $cc_basename in
11112      CC*)
11113	# SGI C++
11114	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'
11115
11116	# Archives containing C++ object files must be created using
11117	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11118	# necessary to make sure instantiated templates are included
11119	# in the archive.
11120	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11121	;;
11122      *)
11123	if test "$GXX" = yes; then
11124	  if test "$with_gnu_ld" = no; then
11125	    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'
11126	  else
11127	    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'
11128	  fi
11129	fi
11130	link_all_deplibs_CXX=yes
11131	;;
11132    esac
11133    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11134    hardcode_libdir_separator_CXX=:
11135    ;;
11136  linux*)
11137    case $cc_basename in
11138      KCC*)
11139	# Kuck and Associates, Inc. (KAI) C++ Compiler
11140
11141	# KCC will only create a shared library if the output file
11142	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11143	# to its proper name (with version) after linking.
11144	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'
11145	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'
11146	# Commands to make compiler produce verbose output that lists
11147	# what "hidden" libraries, object files and flags are used when
11148	# linking a shared library.
11149	#
11150	# There doesn't appear to be a way to prevent this compiler from
11151	# explicitly linking system object files so we need to strip them
11152	# from the output so that they don't get included in the library
11153	# dependencies.
11154	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'
11155
11156	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11157	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11158
11159	# Archives containing C++ object files must be created using
11160	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11161	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11162	;;
11163      icpc*)
11164	# Intel C++
11165	with_gnu_ld=yes
11166	# version 8.0 and above of icpc choke on multiply defined symbols
11167	# if we add $predep_objects and $postdep_objects, however 7.1 and
11168	# earlier do not add the objects themselves.
11169	case `$CC -V 2>&1` in
11170	*"Version 7."*)
11171  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11172  	  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'
11173	  ;;
11174	*)  # Version 8.0 or newer
11175	  tmp_idyn=
11176	  case $host_cpu in
11177	    ia64*) tmp_idyn=' -i_dynamic';;
11178	  esac
11179  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11180	  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'
11181	  ;;
11182	esac
11183	archive_cmds_need_lc_CXX=no
11184	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11185	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11186	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11187	;;
11188      pgCC*)
11189        # Portland Group C++ compiler
11190	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11191  	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'
11192
11193	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11194	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11195	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'
11196        ;;
11197      cxx*)
11198	# Compaq C++
11199	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11200	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'
11201
11202	runpath_var=LD_RUN_PATH
11203	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11204	hardcode_libdir_separator_CXX=:
11205
11206	# Commands to make compiler produce verbose output that lists
11207	# what "hidden" libraries, object files and flags are used when
11208	# linking a shared library.
11209	#
11210	# There doesn't appear to be a way to prevent this compiler from
11211	# explicitly linking system object files so we need to strip them
11212	# from the output so that they don't get included in the library
11213	# dependencies.
11214	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'
11215	;;
11216    esac
11217    ;;
11218  lynxos*)
11219    # FIXME: insert proper C++ library support
11220    ld_shlibs_CXX=no
11221    ;;
11222  m88k*)
11223    # FIXME: insert proper C++ library support
11224    ld_shlibs_CXX=no
11225    ;;
11226  mvs*)
11227    case $cc_basename in
11228      cxx*)
11229	# FIXME: insert proper C++ library support
11230	ld_shlibs_CXX=no
11231	;;
11232      *)
11233	# FIXME: insert proper C++ library support
11234	ld_shlibs_CXX=no
11235	;;
11236    esac
11237    ;;
11238  netbsd*)
11239    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11240      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11241      wlarc=
11242      hardcode_libdir_flag_spec_CXX='-R$libdir'
11243      hardcode_direct_CXX=yes
11244      hardcode_shlibpath_var_CXX=no
11245    fi
11246    # Workaround some broken pre-1.5 toolchains
11247    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11248    ;;
11249  openbsd2*)
11250    # C++ shared libraries are fairly broken
11251    ld_shlibs_CXX=no
11252    ;;
11253  openbsd*)
11254    hardcode_direct_CXX=yes
11255    hardcode_shlibpath_var_CXX=no
11256    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11257    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11258    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11259      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11260      export_dynamic_flag_spec_CXX='${wl}-E'
11261      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11262    fi
11263    output_verbose_link_cmd='echo'
11264    ;;
11265  osf3*)
11266    case $cc_basename in
11267      KCC*)
11268	# Kuck and Associates, Inc. (KAI) C++ Compiler
11269
11270	# KCC will only create a shared library if the output file
11271	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11272	# to its proper name (with version) after linking.
11273	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'
11274
11275	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11276	hardcode_libdir_separator_CXX=:
11277
11278	# Archives containing C++ object files must be created using
11279	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11280	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11281
11282	;;
11283      RCC*)
11284	# Rational C++ 2.4.1
11285	# FIXME: insert proper C++ library support
11286	ld_shlibs_CXX=no
11287	;;
11288      cxx*)
11289	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11290	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'
11291
11292	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11293	hardcode_libdir_separator_CXX=:
11294
11295	# Commands to make compiler produce verbose output that lists
11296	# what "hidden" libraries, object files and flags are used when
11297	# linking a shared library.
11298	#
11299	# There doesn't appear to be a way to prevent this compiler from
11300	# explicitly linking system object files so we need to strip them
11301	# from the output so that they don't get included in the library
11302	# dependencies.
11303	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'
11304	;;
11305      *)
11306	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11307	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11308	  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'
11309
11310	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11311	  hardcode_libdir_separator_CXX=:
11312
11313	  # Commands to make compiler produce verbose output that lists
11314	  # what "hidden" libraries, object files and flags are used when
11315	  # linking a shared library.
11316	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11317
11318	else
11319	  # FIXME: insert proper C++ library support
11320	  ld_shlibs_CXX=no
11321	fi
11322	;;
11323    esac
11324    ;;
11325  osf4* | osf5*)
11326    case $cc_basename in
11327      KCC*)
11328	# Kuck and Associates, Inc. (KAI) C++ Compiler
11329
11330	# KCC will only create a shared library if the output file
11331	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11332	# to its proper name (with version) after linking.
11333	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'
11334
11335	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11336	hardcode_libdir_separator_CXX=:
11337
11338	# Archives containing C++ object files must be created using
11339	# the KAI C++ compiler.
11340	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11341	;;
11342      RCC*)
11343	# Rational C++ 2.4.1
11344	# FIXME: insert proper C++ library support
11345	ld_shlibs_CXX=no
11346	;;
11347      cxx*)
11348	allow_undefined_flag_CXX=' -expect_unresolved \*'
11349	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'
11350	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11351	  echo "-hidden">> $lib.exp~
11352	  $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~
11353	  $rm $lib.exp'
11354
11355	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11356	hardcode_libdir_separator_CXX=:
11357
11358	# Commands to make compiler produce verbose output that lists
11359	# what "hidden" libraries, object files and flags are used when
11360	# linking a shared library.
11361	#
11362	# There doesn't appear to be a way to prevent this compiler from
11363	# explicitly linking system object files so we need to strip them
11364	# from the output so that they don't get included in the library
11365	# dependencies.
11366	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'
11367	;;
11368      *)
11369	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11370	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11371	 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'
11372
11373	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11374	  hardcode_libdir_separator_CXX=:
11375
11376	  # Commands to make compiler produce verbose output that lists
11377	  # what "hidden" libraries, object files and flags are used when
11378	  # linking a shared library.
11379	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11380
11381	else
11382	  # FIXME: insert proper C++ library support
11383	  ld_shlibs_CXX=no
11384	fi
11385	;;
11386    esac
11387    ;;
11388  psos*)
11389    # FIXME: insert proper C++ library support
11390    ld_shlibs_CXX=no
11391    ;;
11392  sunos4*)
11393    case $cc_basename in
11394      CC*)
11395	# Sun C++ 4.x
11396	# FIXME: insert proper C++ library support
11397	ld_shlibs_CXX=no
11398	;;
11399      lcc*)
11400	# Lucid
11401	# FIXME: insert proper C++ library support
11402	ld_shlibs_CXX=no
11403	;;
11404      *)
11405	# FIXME: insert proper C++ library support
11406	ld_shlibs_CXX=no
11407	;;
11408    esac
11409    ;;
11410  solaris*)
11411    case $cc_basename in
11412      CC*)
11413	# Sun C++ 4.2, 5.x and Centerline C++
11414        archive_cmds_need_lc_CXX=yes
11415	no_undefined_flag_CXX=' -zdefs'
11416	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11417	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11418	$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'
11419
11420	hardcode_libdir_flag_spec_CXX='-R$libdir'
11421	hardcode_shlibpath_var_CXX=no
11422	case $host_os in
11423	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11424	  *)
11425	    # The C++ compiler is used as linker so we must use $wl
11426	    # flag to pass the commands to the underlying system
11427	    # linker. We must also pass each convience library through
11428	    # to the system linker between allextract/defaultextract.
11429	    # The C++ compiler will combine linker options so we
11430	    # cannot just pass the convience library names through
11431	    # without $wl.
11432	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11433	    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'
11434	    ;;
11435	esac
11436	link_all_deplibs_CXX=yes
11437
11438	output_verbose_link_cmd='echo'
11439
11440	# Archives containing C++ object files must be created using
11441	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11442	# necessary to make sure instantiated templates are included
11443	# in the archive.
11444	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11445	;;
11446      gcx*)
11447	# Green Hills C++ Compiler
11448	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11449
11450	# The C++ compiler must be used to create the archive.
11451	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11452	;;
11453      *)
11454	# GNU C++ compiler with Solaris linker
11455	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11456	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11457	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11458	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11459	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11460		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11461
11462	    # Commands to make compiler produce verbose output that lists
11463	    # what "hidden" libraries, object files and flags are used when
11464	    # linking a shared library.
11465	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11466	  else
11467	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11468	    # platform.
11469	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11470	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11471		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11472
11473	    # Commands to make compiler produce verbose output that lists
11474	    # what "hidden" libraries, object files and flags are used when
11475	    # linking a shared library.
11476	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11477	  fi
11478
11479	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11480	fi
11481	;;
11482    esac
11483    ;;
11484  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11485    no_undefined_flag_CXX='${wl}-z,text'
11486    archive_cmds_need_lc_CXX=no
11487    hardcode_shlibpath_var_CXX=no
11488    runpath_var='LD_RUN_PATH'
11489
11490    case $cc_basename in
11491      CC*)
11492	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11493	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11494	;;
11495      *)
11496	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11497	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11498	;;
11499    esac
11500    ;;
11501  sysv5* | sco3.2v5* | sco5v6*)
11502    # Note: We can NOT use -z defs as we might desire, because we do not
11503    # link with -lc, and that would cause any symbols used from libc to
11504    # always be unresolved, which means just about no library would
11505    # ever link correctly.  If we're not using GNU ld we use -z text
11506    # though, which does catch some bad symbols but isn't as heavy-handed
11507    # as -z defs.
11508    # For security reasons, it is highly recommended that you always
11509    # use absolute paths for naming shared libraries, and exclude the
11510    # DT_RUNPATH tag from executables and libraries.  But doing so
11511    # requires that you compile everything twice, which is a pain.
11512    # So that behaviour is only enabled if SCOABSPATH is set to a
11513    # non-empty value in the environment.  Most likely only useful for
11514    # creating official distributions of packages.
11515    # This is a hack until libtool officially supports absolute path
11516    # names for shared libraries.
11517    no_undefined_flag_CXX='${wl}-z,text'
11518    allow_undefined_flag_CXX='${wl}-z,nodefs'
11519    archive_cmds_need_lc_CXX=no
11520    hardcode_shlibpath_var_CXX=no
11521    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11522    hardcode_libdir_separator_CXX=':'
11523    link_all_deplibs_CXX=yes
11524    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11525    runpath_var='LD_RUN_PATH'
11526
11527    case $cc_basename in
11528      CC*)
11529	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11530	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11531	;;
11532      *)
11533	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11534	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11535	;;
11536    esac
11537    ;;
11538  tandem*)
11539    case $cc_basename in
11540      NCC*)
11541	# NonStop-UX NCC 3.20
11542	# FIXME: insert proper C++ library support
11543	ld_shlibs_CXX=no
11544	;;
11545      *)
11546	# FIXME: insert proper C++ library support
11547	ld_shlibs_CXX=no
11548	;;
11549    esac
11550    ;;
11551  vxworks*)
11552    # FIXME: insert proper C++ library support
11553    ld_shlibs_CXX=no
11554    ;;
11555  *)
11556    # FIXME: insert proper C++ library support
11557    ld_shlibs_CXX=no
11558    ;;
11559esac
11560echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11561echo "${ECHO_T}$ld_shlibs_CXX" >&6
11562test "$ld_shlibs_CXX" = no && can_build_shared=no
11563
11564GCC_CXX="$GXX"
11565LD_CXX="$LD"
11566
11567
11568cat > conftest.$ac_ext <<EOF
11569class Foo
11570{
11571public:
11572  Foo (void) { a = 0; }
11573private:
11574  int a;
11575};
11576EOF
11577
11578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11579  (eval $ac_compile) 2>&5
11580  ac_status=$?
11581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582  (exit $ac_status); }; then
11583  # Parse the compiler output and extract the necessary
11584  # objects, libraries and library flags.
11585
11586  # Sentinel used to keep track of whether or not we are before
11587  # the conftest object file.
11588  pre_test_object_deps_done=no
11589
11590  # The `*' in the case matches for architectures that use `case' in
11591  # $output_verbose_cmd can trigger glob expansion during the loop
11592  # eval without this substitution.
11593  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11594
11595  for p in `eval $output_verbose_link_cmd`; do
11596    case $p in
11597
11598    -L* | -R* | -l*)
11599       # Some compilers place space between "-{L,R}" and the path.
11600       # Remove the space.
11601       if test $p = "-L" \
11602	  || test $p = "-R"; then
11603	 prev=$p
11604	 continue
11605       else
11606	 prev=
11607       fi
11608
11609       if test "$pre_test_object_deps_done" = no; then
11610	 case $p in
11611	 -L* | -R*)
11612	   # Internal compiler library paths should come after those
11613	   # provided the user.  The postdeps already come after the
11614	   # user supplied libs so there is no need to process them.
11615	   if test -z "$compiler_lib_search_path_CXX"; then
11616	     compiler_lib_search_path_CXX="${prev}${p}"
11617	   else
11618	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11619	   fi
11620	   ;;
11621	 # The "-l" case would never come before the object being
11622	 # linked, so don't bother handling this case.
11623	 esac
11624       else
11625	 if test -z "$postdeps_CXX"; then
11626	   postdeps_CXX="${prev}${p}"
11627	 else
11628	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11629	 fi
11630       fi
11631       ;;
11632
11633    *.$objext)
11634       # This assumes that the test object file only shows up
11635       # once in the compiler output.
11636       if test "$p" = "conftest.$objext"; then
11637	 pre_test_object_deps_done=yes
11638	 continue
11639       fi
11640
11641       if test "$pre_test_object_deps_done" = no; then
11642	 if test -z "$predep_objects_CXX"; then
11643	   predep_objects_CXX="$p"
11644	 else
11645	   predep_objects_CXX="$predep_objects_CXX $p"
11646	 fi
11647       else
11648	 if test -z "$postdep_objects_CXX"; then
11649	   postdep_objects_CXX="$p"
11650	 else
11651	   postdep_objects_CXX="$postdep_objects_CXX $p"
11652	 fi
11653       fi
11654       ;;
11655
11656    *) ;; # Ignore the rest.
11657
11658    esac
11659  done
11660
11661  # Clean up.
11662  rm -f a.out a.exe
11663else
11664  echo "libtool.m4: error: problem compiling CXX test program"
11665fi
11666
11667$rm -f confest.$objext
11668
11669# PORTME: override above test on systems where it is broken
11670case $host_os in
11671interix3*)
11672  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11673  # hack all around it, let's just trust "g++" to DTRT.
11674  predep_objects_CXX=
11675  postdep_objects_CXX=
11676  postdeps_CXX=
11677  ;;
11678
11679solaris*)
11680  case $cc_basename in
11681  CC*)
11682    # Adding this requires a known-good setup of shared libraries for
11683    # Sun compiler versions before 5.6, else PIC objects from an old
11684    # archive will be linked into the output, leading to subtle bugs.
11685    postdeps_CXX='-lCstd -lCrun'
11686    ;;
11687  esac
11688  ;;
11689esac
11690
11691
11692case " $postdeps_CXX " in
11693*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11694esac
11695
11696lt_prog_compiler_wl_CXX=
11697lt_prog_compiler_pic_CXX=
11698lt_prog_compiler_static_CXX=
11699
11700echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11701echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11702
11703  # C++ specific cases for pic, static, wl, etc.
11704  if test "$GXX" = yes; then
11705    lt_prog_compiler_wl_CXX='-Wl,'
11706    lt_prog_compiler_static_CXX='-static'
11707
11708    case $host_os in
11709    aix*)
11710      # All AIX code is PIC.
11711      if test "$host_cpu" = ia64; then
11712	# AIX 5 now supports IA64 processor
11713	lt_prog_compiler_static_CXX='-Bstatic'
11714      fi
11715      ;;
11716    amigaos*)
11717      # FIXME: we need at least 68020 code to build shared libraries, but
11718      # adding the `-m68020' flag to GCC prevents building anything better,
11719      # like `-m68040'.
11720      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11721      ;;
11722    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11723      # PIC is the default for these OSes.
11724      ;;
11725    mingw* | os2* | pw32*)
11726      # This hack is so that the source file can tell whether it is being
11727      # built for inclusion in a dll (and should export symbols for example).
11728      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11729      ;;
11730    darwin* | rhapsody*)
11731      # PIC is the default on this platform
11732      # Common symbols not allowed in MH_DYLIB files
11733      lt_prog_compiler_pic_CXX='-fno-common'
11734      ;;
11735    *djgpp*)
11736      # DJGPP does not support shared libraries at all
11737      lt_prog_compiler_pic_CXX=
11738      ;;
11739    interix3*)
11740      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11741      # Instead, we relocate shared libraries at runtime.
11742      ;;
11743    sysv4*MP*)
11744      if test -d /usr/nec; then
11745	lt_prog_compiler_pic_CXX=-Kconform_pic
11746      fi
11747      ;;
11748    hpux*)
11749      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11750      # not for PA HP-UX.
11751      case $host_cpu in
11752      hppa*64*|ia64*)
11753	;;
11754      *)
11755	lt_prog_compiler_pic_CXX='-fPIC'
11756	;;
11757      esac
11758      ;;
11759    *)
11760      lt_prog_compiler_pic_CXX='-fPIC'
11761      ;;
11762    esac
11763  else
11764    case $host_os in
11765      aix4* | aix5*)
11766	# All AIX code is PIC.
11767	if test "$host_cpu" = ia64; then
11768	  # AIX 5 now supports IA64 processor
11769	  lt_prog_compiler_static_CXX='-Bstatic'
11770	else
11771	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11772	fi
11773	;;
11774      chorus*)
11775	case $cc_basename in
11776	cxch68*)
11777	  # Green Hills C++ Compiler
11778	  # _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"
11779	  ;;
11780	esac
11781	;;
11782       darwin*)
11783         # PIC is the default on this platform
11784         # Common symbols not allowed in MH_DYLIB files
11785         case $cc_basename in
11786           xlc*)
11787           lt_prog_compiler_pic_CXX='-qnocommon'
11788           lt_prog_compiler_wl_CXX='-Wl,'
11789           ;;
11790         esac
11791       ;;
11792      dgux*)
11793	case $cc_basename in
11794	  ec++*)
11795	    lt_prog_compiler_pic_CXX='-KPIC'
11796	    ;;
11797	  ghcx*)
11798	    # Green Hills C++ Compiler
11799	    lt_prog_compiler_pic_CXX='-pic'
11800	    ;;
11801	  *)
11802	    ;;
11803	esac
11804	;;
11805      freebsd* | kfreebsd*-gnu | dragonfly*)
11806	# FreeBSD uses GNU C++
11807	;;
11808      hpux9* | hpux10* | hpux11*)
11809	case $cc_basename in
11810	  CC*)
11811	    lt_prog_compiler_wl_CXX='-Wl,'
11812	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11813	    if test "$host_cpu" != ia64; then
11814	      lt_prog_compiler_pic_CXX='+Z'
11815	    fi
11816	    ;;
11817	  aCC*)
11818	    lt_prog_compiler_wl_CXX='-Wl,'
11819	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11820	    case $host_cpu in
11821	    hppa*64*|ia64*)
11822	      # +Z the default
11823	      ;;
11824	    *)
11825	      lt_prog_compiler_pic_CXX='+Z'
11826	      ;;
11827	    esac
11828	    ;;
11829	  *)
11830	    ;;
11831	esac
11832	;;
11833      interix*)
11834	# This is c89, which is MS Visual C++ (no shared libs)
11835	# Anyone wants to do a port?
11836	;;
11837      irix5* | irix6* | nonstopux*)
11838	case $cc_basename in
11839	  CC*)
11840	    lt_prog_compiler_wl_CXX='-Wl,'
11841	    lt_prog_compiler_static_CXX='-non_shared'
11842	    # CC pic flag -KPIC is the default.
11843	    ;;
11844	  *)
11845	    ;;
11846	esac
11847	;;
11848      linux*)
11849	case $cc_basename in
11850	  KCC*)
11851	    # KAI C++ Compiler
11852	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11853	    lt_prog_compiler_pic_CXX='-fPIC'
11854	    ;;
11855	  icpc* | ecpc*)
11856	    # Intel C++
11857	    lt_prog_compiler_wl_CXX='-Wl,'
11858	    lt_prog_compiler_pic_CXX='-KPIC'
11859	    lt_prog_compiler_static_CXX='-static'
11860	    ;;
11861	  pgCC*)
11862	    # Portland Group C++ compiler.
11863	    lt_prog_compiler_wl_CXX='-Wl,'
11864	    lt_prog_compiler_pic_CXX='-fpic'
11865	    lt_prog_compiler_static_CXX='-Bstatic'
11866	    ;;
11867	  cxx*)
11868	    # Compaq C++
11869	    # Make sure the PIC flag is empty.  It appears that all Alpha
11870	    # Linux and Compaq Tru64 Unix objects are PIC.
11871	    lt_prog_compiler_pic_CXX=
11872	    lt_prog_compiler_static_CXX='-non_shared'
11873	    ;;
11874	  *)
11875	    ;;
11876	esac
11877	;;
11878      lynxos*)
11879	;;
11880      m88k*)
11881	;;
11882      mvs*)
11883	case $cc_basename in
11884	  cxx*)
11885	    lt_prog_compiler_pic_CXX='-W c,exportall'
11886	    ;;
11887	  *)
11888	    ;;
11889	esac
11890	;;
11891      netbsd*)
11892	;;
11893      osf3* | osf4* | osf5*)
11894	case $cc_basename in
11895	  KCC*)
11896	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11897	    ;;
11898	  RCC*)
11899	    # Rational C++ 2.4.1
11900	    lt_prog_compiler_pic_CXX='-pic'
11901	    ;;
11902	  cxx*)
11903	    # Digital/Compaq C++
11904	    lt_prog_compiler_wl_CXX='-Wl,'
11905	    # Make sure the PIC flag is empty.  It appears that all Alpha
11906	    # Linux and Compaq Tru64 Unix objects are PIC.
11907	    lt_prog_compiler_pic_CXX=
11908	    lt_prog_compiler_static_CXX='-non_shared'
11909	    ;;
11910	  *)
11911	    ;;
11912	esac
11913	;;
11914      psos*)
11915	;;
11916      solaris*)
11917	case $cc_basename in
11918	  CC*)
11919	    # Sun C++ 4.2, 5.x and Centerline C++
11920	    lt_prog_compiler_pic_CXX='-KPIC'
11921	    lt_prog_compiler_static_CXX='-Bstatic'
11922	    lt_prog_compiler_wl_CXX='-Qoption ld '
11923	    ;;
11924	  gcx*)
11925	    # Green Hills C++ Compiler
11926	    lt_prog_compiler_pic_CXX='-PIC'
11927	    ;;
11928	  *)
11929	    ;;
11930	esac
11931	;;
11932      sunos4*)
11933	case $cc_basename in
11934	  CC*)
11935	    # Sun C++ 4.x
11936	    lt_prog_compiler_pic_CXX='-pic'
11937	    lt_prog_compiler_static_CXX='-Bstatic'
11938	    ;;
11939	  lcc*)
11940	    # Lucid
11941	    lt_prog_compiler_pic_CXX='-pic'
11942	    ;;
11943	  *)
11944	    ;;
11945	esac
11946	;;
11947      tandem*)
11948	case $cc_basename in
11949	  NCC*)
11950	    # NonStop-UX NCC 3.20
11951	    lt_prog_compiler_pic_CXX='-KPIC'
11952	    ;;
11953	  *)
11954	    ;;
11955	esac
11956	;;
11957      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11958	case $cc_basename in
11959	  CC*)
11960	    lt_prog_compiler_wl_CXX='-Wl,'
11961	    lt_prog_compiler_pic_CXX='-KPIC'
11962	    lt_prog_compiler_static_CXX='-Bstatic'
11963	    ;;
11964	esac
11965	;;
11966      vxworks*)
11967	;;
11968      *)
11969	lt_prog_compiler_can_build_shared_CXX=no
11970	;;
11971    esac
11972  fi
11973
11974echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11975echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11976
11977#
11978# Check to make sure the PIC flag actually works.
11979#
11980if test -n "$lt_prog_compiler_pic_CXX"; then
11981
11982echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11983echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11984if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11985  echo $ECHO_N "(cached) $ECHO_C" >&6
11986else
11987  lt_prog_compiler_pic_works_CXX=no
11988  ac_outfile=conftest.$ac_objext
11989   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11990   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11991   # Insert the option either (1) after the last *FLAGS variable, or
11992   # (2) before a word containing "conftest.", or (3) at the end.
11993   # Note that $ac_compile itself does not contain backslashes and begins
11994   # with a dollar sign (not a hyphen), so the echo should work correctly.
11995   # The option is referenced via a variable to avoid confusing sed.
11996   lt_compile=`echo "$ac_compile" | $SED \
11997   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11998   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11999   -e 's:$: $lt_compiler_flag:'`
12000   (eval echo "\"\$as_me:12000: $lt_compile\"" >&5)
12001   (eval "$lt_compile" 2>conftest.err)
12002   ac_status=$?
12003   cat conftest.err >&5
12004   echo "$as_me:12004: \$? = $ac_status" >&5
12005   if (exit $ac_status) && test -s "$ac_outfile"; then
12006     # The compiler can only warn and ignore the option if not recognized
12007     # So say no if there are warnings other than the usual output.
12008     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12009     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12010     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12011       lt_prog_compiler_pic_works_CXX=yes
12012     fi
12013   fi
12014   $rm conftest*
12015
12016fi
12017echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12018echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12019
12020if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12021    case $lt_prog_compiler_pic_CXX in
12022     "" | " "*) ;;
12023     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12024     esac
12025else
12026    lt_prog_compiler_pic_CXX=
12027     lt_prog_compiler_can_build_shared_CXX=no
12028fi
12029
12030fi
12031case $host_os in
12032  # For platforms which do not support PIC, -DPIC is meaningless:
12033  *djgpp*)
12034    lt_prog_compiler_pic_CXX=
12035    ;;
12036  *)
12037    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12038    ;;
12039esac
12040
12041#
12042# Check to make sure the static flag actually works.
12043#
12044wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12045echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12046echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12047if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12048  echo $ECHO_N "(cached) $ECHO_C" >&6
12049else
12050  lt_prog_compiler_static_works_CXX=no
12051   save_LDFLAGS="$LDFLAGS"
12052   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12053   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12054   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12055     # The linker can only warn and ignore the option if not recognized
12056     # So say no if there are warnings
12057     if test -s conftest.err; then
12058       # Append any errors to the config.log.
12059       cat conftest.err 1>&5
12060       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12061       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12062       if diff conftest.exp conftest.er2 >/dev/null; then
12063         lt_prog_compiler_static_works_CXX=yes
12064       fi
12065     else
12066       lt_prog_compiler_static_works_CXX=yes
12067     fi
12068   fi
12069   $rm conftest*
12070   LDFLAGS="$save_LDFLAGS"
12071
12072fi
12073echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12074echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12075
12076if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12077    :
12078else
12079    lt_prog_compiler_static_CXX=
12080fi
12081
12082
12083echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12084echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12085if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12086  echo $ECHO_N "(cached) $ECHO_C" >&6
12087else
12088  lt_cv_prog_compiler_c_o_CXX=no
12089   $rm -r conftest 2>/dev/null
12090   mkdir conftest
12091   cd conftest
12092   mkdir out
12093   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12094
12095   lt_compiler_flag="-o out/conftest2.$ac_objext"
12096   # Insert the option either (1) after the last *FLAGS variable, or
12097   # (2) before a word containing "conftest.", or (3) at the end.
12098   # Note that $ac_compile itself does not contain backslashes and begins
12099   # with a dollar sign (not a hyphen), so the echo should work correctly.
12100   lt_compile=`echo "$ac_compile" | $SED \
12101   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12102   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12103   -e 's:$: $lt_compiler_flag:'`
12104   (eval echo "\"\$as_me:12104: $lt_compile\"" >&5)
12105   (eval "$lt_compile" 2>out/conftest.err)
12106   ac_status=$?
12107   cat out/conftest.err >&5
12108   echo "$as_me:12108: \$? = $ac_status" >&5
12109   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12110   then
12111     # The compiler can only warn and ignore the option if not recognized
12112     # So say no if there are warnings
12113     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12114     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12115     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12116       lt_cv_prog_compiler_c_o_CXX=yes
12117     fi
12118   fi
12119   chmod u+w . 2>&5
12120   $rm conftest*
12121   # SGI C++ compiler will create directory out/ii_files/ for
12122   # template instantiation
12123   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12124   $rm out/* && rmdir out
12125   cd ..
12126   rmdir conftest
12127   $rm conftest*
12128
12129fi
12130echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12131echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12132
12133
12134hard_links="nottested"
12135if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12136  # do not overwrite the value of need_locks provided by the user
12137  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12138echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12139  hard_links=yes
12140  $rm conftest*
12141  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12142  touch conftest.a
12143  ln conftest.a conftest.b 2>&5 || hard_links=no
12144  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12145  echo "$as_me:$LINENO: result: $hard_links" >&5
12146echo "${ECHO_T}$hard_links" >&6
12147  if test "$hard_links" = no; then
12148    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12149echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12150    need_locks=warn
12151  fi
12152else
12153  need_locks=no
12154fi
12155
12156echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12157echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12158
12159  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12160  case $host_os in
12161  aix4* | aix5*)
12162    # If we're using GNU nm, then we don't want the "-C" option.
12163    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12164    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12165      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'
12166    else
12167      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'
12168    fi
12169    ;;
12170  pw32*)
12171    export_symbols_cmds_CXX="$ltdll_cmds"
12172  ;;
12173  cygwin* | mingw*)
12174    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'
12175  ;;
12176  *)
12177    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12178  ;;
12179  esac
12180
12181echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12182echo "${ECHO_T}$ld_shlibs_CXX" >&6
12183test "$ld_shlibs_CXX" = no && can_build_shared=no
12184
12185#
12186# Do we need to explicitly link libc?
12187#
12188case "x$archive_cmds_need_lc_CXX" in
12189x|xyes)
12190  # Assume -lc should be added
12191  archive_cmds_need_lc_CXX=yes
12192
12193  if test "$enable_shared" = yes && test "$GCC" = yes; then
12194    case $archive_cmds_CXX in
12195    *'~'*)
12196      # FIXME: we may have to deal with multi-command sequences.
12197      ;;
12198    '$CC '*)
12199      # Test whether the compiler implicitly links with -lc since on some
12200      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12201      # to ld, don't add -lc before -lgcc.
12202      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12203echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12204      $rm conftest*
12205      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12206
12207      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12208  (eval $ac_compile) 2>&5
12209  ac_status=$?
12210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211  (exit $ac_status); } 2>conftest.err; then
12212        soname=conftest
12213        lib=conftest
12214        libobjs=conftest.$ac_objext
12215        deplibs=
12216        wl=$lt_prog_compiler_wl_CXX
12217	pic_flag=$lt_prog_compiler_pic_CXX
12218        compiler_flags=-v
12219        linker_flags=-v
12220        verstring=
12221        output_objdir=.
12222        libname=conftest
12223        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12224        allow_undefined_flag_CXX=
12225        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12226  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12227  ac_status=$?
12228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229  (exit $ac_status); }
12230        then
12231	  archive_cmds_need_lc_CXX=no
12232        else
12233	  archive_cmds_need_lc_CXX=yes
12234        fi
12235        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12236      else
12237        cat conftest.err 1>&5
12238      fi
12239      $rm conftest*
12240      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12241echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12242      ;;
12243    esac
12244  fi
12245  ;;
12246esac
12247
12248echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12249echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12250library_names_spec=
12251libname_spec='lib$name'
12252soname_spec=
12253shrext_cmds=".so"
12254postinstall_cmds=
12255postuninstall_cmds=
12256finish_cmds=
12257finish_eval=
12258shlibpath_var=
12259shlibpath_overrides_runpath=unknown
12260version_type=none
12261dynamic_linker="$host_os ld.so"
12262sys_lib_dlsearch_path_spec="/lib /usr/lib"
12263if test "$GCC" = yes; then
12264  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12265  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12266    # if the path contains ";" then we assume it to be the separator
12267    # otherwise default to the standard path separator (i.e. ":") - it is
12268    # assumed that no part of a normal pathname contains ";" but that should
12269    # okay in the real world where ";" in dirpaths is itself problematic.
12270    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12271  else
12272    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12273  fi
12274else
12275  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12276fi
12277need_lib_prefix=unknown
12278hardcode_into_libs=no
12279
12280# when you set need_version to no, make sure it does not cause -set_version
12281# flags to be left without arguments
12282need_version=unknown
12283
12284case $host_os in
12285aix3*)
12286  version_type=linux
12287  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12288  shlibpath_var=LIBPATH
12289
12290  # AIX 3 has no versioning support, so we append a major version to the name.
12291  soname_spec='${libname}${release}${shared_ext}$major'
12292  ;;
12293
12294aix4* | aix5*)
12295  version_type=linux
12296  need_lib_prefix=no
12297  need_version=no
12298  hardcode_into_libs=yes
12299  if test "$host_cpu" = ia64; then
12300    # AIX 5 supports IA64
12301    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12302    shlibpath_var=LD_LIBRARY_PATH
12303  else
12304    # With GCC up to 2.95.x, collect2 would create an import file
12305    # for dependence libraries.  The import file would start with
12306    # the line `#! .'.  This would cause the generated library to
12307    # depend on `.', always an invalid library.  This was fixed in
12308    # development snapshots of GCC prior to 3.0.
12309    case $host_os in
12310      aix4 | aix4.[01] | aix4.[01].*)
12311      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12312	   echo ' yes '
12313	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12314	:
12315      else
12316	can_build_shared=no
12317      fi
12318      ;;
12319    esac
12320    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12321    # soname into executable. Probably we can add versioning support to
12322    # collect2, so additional links can be useful in future.
12323    if test "$aix_use_runtimelinking" = yes; then
12324      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12325      # instead of lib<name>.a to let people know that these are not
12326      # typical AIX shared libraries.
12327      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12328    else
12329      # We preserve .a as extension for shared libraries through AIX4.2
12330      # and later when we are not doing run time linking.
12331      library_names_spec='${libname}${release}.a $libname.a'
12332      soname_spec='${libname}${release}${shared_ext}$major'
12333    fi
12334    shlibpath_var=LIBPATH
12335  fi
12336  ;;
12337
12338amigaos*)
12339  library_names_spec='$libname.ixlibrary $libname.a'
12340  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12341  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'
12342  ;;
12343
12344beos*)
12345  library_names_spec='${libname}${shared_ext}'
12346  dynamic_linker="$host_os ld.so"
12347  shlibpath_var=LIBRARY_PATH
12348  ;;
12349
12350bsdi[45]*)
12351  version_type=linux
12352  need_version=no
12353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12354  soname_spec='${libname}${release}${shared_ext}$major'
12355  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12356  shlibpath_var=LD_LIBRARY_PATH
12357  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12358  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12359  # the default ld.so.conf also contains /usr/contrib/lib and
12360  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12361  # libtool to hard-code these into programs
12362  ;;
12363
12364cygwin* | mingw* | pw32*)
12365  version_type=windows
12366  shrext_cmds=".dll"
12367  need_version=no
12368  need_lib_prefix=no
12369
12370  case $GCC,$host_os in
12371  yes,cygwin* | yes,mingw* | yes,pw32*)
12372    library_names_spec='$libname.dll.a'
12373    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12374    postinstall_cmds='base_file=`basename \${file}`~
12375      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12376      dldir=$destdir/`dirname \$dlpath`~
12377      test -d \$dldir || mkdir -p \$dldir~
12378      $install_prog $dir/$dlname \$dldir/$dlname~
12379      chmod a+x \$dldir/$dlname'
12380    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12381      dlpath=$dir/\$dldll~
12382       $rm \$dlpath'
12383    shlibpath_overrides_runpath=yes
12384
12385    case $host_os in
12386    cygwin*)
12387      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12388      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12389      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12390      ;;
12391    mingw*)
12392      # MinGW DLLs use traditional 'lib' prefix
12393      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12394      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12395      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12396        # It is most probably a Windows format PATH printed by
12397        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12398        # path with ; separators, and with drive letters. We can handle the
12399        # drive letters (cygwin fileutils understands them), so leave them,
12400        # especially as we might pass files found there to a mingw objdump,
12401        # which wouldn't understand a cygwinified path. Ahh.
12402        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12403      else
12404        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12405      fi
12406      ;;
12407    pw32*)
12408      # pw32 DLLs use 'pw' prefix rather than 'lib'
12409      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12410      ;;
12411    esac
12412    ;;
12413
12414  *)
12415    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12416    ;;
12417  esac
12418  dynamic_linker='Win32 ld.exe'
12419  # FIXME: first we should search . and the directory the executable is in
12420  shlibpath_var=PATH
12421  ;;
12422
12423darwin* | rhapsody*)
12424  dynamic_linker="$host_os dyld"
12425  version_type=darwin
12426  need_lib_prefix=no
12427  need_version=no
12428  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12429  soname_spec='${libname}${release}${major}$shared_ext'
12430  shlibpath_overrides_runpath=yes
12431  shlibpath_var=DYLD_LIBRARY_PATH
12432  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12433  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12434  if test "$GCC" = yes; then
12435    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"`
12436  else
12437    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12438  fi
12439  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12440  ;;
12441
12442dgux*)
12443  version_type=linux
12444  need_lib_prefix=no
12445  need_version=no
12446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12447  soname_spec='${libname}${release}${shared_ext}$major'
12448  shlibpath_var=LD_LIBRARY_PATH
12449  ;;
12450
12451freebsd1*)
12452  dynamic_linker=no
12453  ;;
12454
12455kfreebsd*-gnu)
12456  version_type=linux
12457  need_lib_prefix=no
12458  need_version=no
12459  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12460  soname_spec='${libname}${release}${shared_ext}$major'
12461  shlibpath_var=LD_LIBRARY_PATH
12462  shlibpath_overrides_runpath=no
12463  hardcode_into_libs=yes
12464  dynamic_linker='GNU ld.so'
12465  ;;
12466
12467freebsd* | dragonfly*)
12468  # DragonFly does not have aout.  When/if they implement a new
12469  # versioning mechanism, adjust this.
12470  if test -x /usr/bin/objformat; then
12471    objformat=`/usr/bin/objformat`
12472  else
12473    case $host_os in
12474    freebsd[123]*) objformat=aout ;;
12475    *) objformat=elf ;;
12476    esac
12477  fi
12478  version_type=freebsd-$objformat
12479  case $version_type in
12480    freebsd-elf*)
12481      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12482      need_version=no
12483      need_lib_prefix=no
12484      ;;
12485    freebsd-*)
12486      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12487      need_version=yes
12488      ;;
12489  esac
12490  shlibpath_var=LD_LIBRARY_PATH
12491  case $host_os in
12492  freebsd2*)
12493    shlibpath_overrides_runpath=yes
12494    ;;
12495  freebsd3.[01]* | freebsdelf3.[01]*)
12496    shlibpath_overrides_runpath=yes
12497    hardcode_into_libs=yes
12498    ;;
12499  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12500  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12501    shlibpath_overrides_runpath=no
12502    hardcode_into_libs=yes
12503    ;;
12504  freebsd*) # from 4.6 on
12505    shlibpath_overrides_runpath=yes
12506    hardcode_into_libs=yes
12507    ;;
12508  esac
12509  ;;
12510
12511gnu*)
12512  version_type=linux
12513  need_lib_prefix=no
12514  need_version=no
12515  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12516  soname_spec='${libname}${release}${shared_ext}$major'
12517  shlibpath_var=LD_LIBRARY_PATH
12518  hardcode_into_libs=yes
12519  ;;
12520
12521hpux9* | hpux10* | hpux11*)
12522  # Give a soname corresponding to the major version so that dld.sl refuses to
12523  # link against other versions.
12524  version_type=sunos
12525  need_lib_prefix=no
12526  need_version=no
12527  case $host_cpu in
12528  ia64*)
12529    shrext_cmds='.so'
12530    hardcode_into_libs=yes
12531    dynamic_linker="$host_os dld.so"
12532    shlibpath_var=LD_LIBRARY_PATH
12533    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12534    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12535    soname_spec='${libname}${release}${shared_ext}$major'
12536    if test "X$HPUX_IA64_MODE" = X32; then
12537      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12538    else
12539      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12540    fi
12541    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12542    ;;
12543   hppa*64*)
12544     shrext_cmds='.sl'
12545     hardcode_into_libs=yes
12546     dynamic_linker="$host_os dld.sl"
12547     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12548     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12549     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12550     soname_spec='${libname}${release}${shared_ext}$major'
12551     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12552     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12553     ;;
12554   *)
12555    shrext_cmds='.sl'
12556    dynamic_linker="$host_os dld.sl"
12557    shlibpath_var=SHLIB_PATH
12558    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12559    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12560    soname_spec='${libname}${release}${shared_ext}$major'
12561    ;;
12562  esac
12563  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12564  postinstall_cmds='chmod 555 $lib'
12565  ;;
12566
12567interix3*)
12568  version_type=linux
12569  need_lib_prefix=no
12570  need_version=no
12571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12572  soname_spec='${libname}${release}${shared_ext}$major'
12573  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12574  shlibpath_var=LD_LIBRARY_PATH
12575  shlibpath_overrides_runpath=no
12576  hardcode_into_libs=yes
12577  ;;
12578
12579irix5* | irix6* | nonstopux*)
12580  case $host_os in
12581    nonstopux*) version_type=nonstopux ;;
12582    *)
12583	if test "$lt_cv_prog_gnu_ld" = yes; then
12584		version_type=linux
12585	else
12586		version_type=irix
12587	fi ;;
12588  esac
12589  need_lib_prefix=no
12590  need_version=no
12591  soname_spec='${libname}${release}${shared_ext}$major'
12592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12593  case $host_os in
12594  irix5* | nonstopux*)
12595    libsuff= shlibsuff=
12596    ;;
12597  *)
12598    case $LD in # libtool.m4 will add one of these switches to LD
12599    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12600      libsuff= shlibsuff= libmagic=32-bit;;
12601    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12602      libsuff=32 shlibsuff=N32 libmagic=N32;;
12603    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12604      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12605    *) libsuff= shlibsuff= libmagic=never-match;;
12606    esac
12607    ;;
12608  esac
12609  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12610  shlibpath_overrides_runpath=no
12611  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12612  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12613  hardcode_into_libs=yes
12614  ;;
12615
12616# No shared lib support for Linux oldld, aout, or coff.
12617linux*oldld* | linux*aout* | linux*coff*)
12618  dynamic_linker=no
12619  ;;
12620
12621# This must be Linux ELF.
12622linux*)
12623  version_type=linux
12624  need_lib_prefix=no
12625  need_version=no
12626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12627  soname_spec='${libname}${release}${shared_ext}$major'
12628  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12629  shlibpath_var=LD_LIBRARY_PATH
12630  shlibpath_overrides_runpath=no
12631  # This implies no fast_install, which is unacceptable.
12632  # Some rework will be needed to allow for fast_install
12633  # before this can be enabled.
12634  hardcode_into_libs=yes
12635
12636  # find out which ABI we are using
12637  libsuff=
12638  case "$host_cpu" in
12639  x86_64*|s390x*|powerpc64*)
12640    echo '#line 12640 "configure"' > conftest.$ac_ext
12641    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12642  (eval $ac_compile) 2>&5
12643  ac_status=$?
12644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645  (exit $ac_status); }; then
12646      case `/usr/bin/file conftest.$ac_objext` in
12647      *64-bit*)
12648        libsuff=64
12649        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12650        ;;
12651      esac
12652    fi
12653    rm -rf conftest*
12654    ;;
12655  esac
12656
12657  # Append ld.so.conf contents to the search path
12658  if test -f /etc/ld.so.conf; then
12659    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' ' '`
12660    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12661  fi
12662
12663  # We used to test for /lib/ld.so.1 and disable shared libraries on
12664  # powerpc, because MkLinux only supported shared libraries with the
12665  # GNU dynamic linker.  Since this was broken with cross compilers,
12666  # most powerpc-linux boxes support dynamic linking these days and
12667  # people can always --disable-shared, the test was removed, and we
12668  # assume the GNU/Linux dynamic linker is in use.
12669  dynamic_linker='GNU/Linux ld.so'
12670  ;;
12671
12672knetbsd*-gnu)
12673  version_type=linux
12674  need_lib_prefix=no
12675  need_version=no
12676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12677  soname_spec='${libname}${release}${shared_ext}$major'
12678  shlibpath_var=LD_LIBRARY_PATH
12679  shlibpath_overrides_runpath=no
12680  hardcode_into_libs=yes
12681  dynamic_linker='GNU ld.so'
12682  ;;
12683
12684netbsd*)
12685  version_type=sunos
12686  need_lib_prefix=no
12687  need_version=no
12688  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12689    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12690    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12691    dynamic_linker='NetBSD (a.out) ld.so'
12692  else
12693    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12694    soname_spec='${libname}${release}${shared_ext}$major'
12695    dynamic_linker='NetBSD ld.elf_so'
12696  fi
12697  shlibpath_var=LD_LIBRARY_PATH
12698  shlibpath_overrides_runpath=yes
12699  hardcode_into_libs=yes
12700  ;;
12701
12702newsos6)
12703  version_type=linux
12704  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12705  shlibpath_var=LD_LIBRARY_PATH
12706  shlibpath_overrides_runpath=yes
12707  ;;
12708
12709nto-qnx*)
12710  version_type=linux
12711  need_lib_prefix=no
12712  need_version=no
12713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12714  soname_spec='${libname}${release}${shared_ext}$major'
12715  shlibpath_var=LD_LIBRARY_PATH
12716  shlibpath_overrides_runpath=yes
12717  ;;
12718
12719openbsd*)
12720  version_type=sunos
12721  sys_lib_dlsearch_path_spec="/usr/lib"
12722  need_lib_prefix=no
12723  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12724  case $host_os in
12725    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12726    *)                         need_version=no  ;;
12727  esac
12728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12729  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12730  shlibpath_var=LD_LIBRARY_PATH
12731  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12732    case $host_os in
12733      openbsd2.[89] | openbsd2.[89].*)
12734	shlibpath_overrides_runpath=no
12735	;;
12736      *)
12737	shlibpath_overrides_runpath=yes
12738	;;
12739      esac
12740  else
12741    shlibpath_overrides_runpath=yes
12742  fi
12743  ;;
12744
12745os2*)
12746  libname_spec='$name'
12747  shrext_cmds=".dll"
12748  need_lib_prefix=no
12749  library_names_spec='$libname${shared_ext} $libname.a'
12750  dynamic_linker='OS/2 ld.exe'
12751  shlibpath_var=LIBPATH
12752  ;;
12753
12754osf3* | osf4* | osf5*)
12755  version_type=osf
12756  need_lib_prefix=no
12757  need_version=no
12758  soname_spec='${libname}${release}${shared_ext}$major'
12759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12760  shlibpath_var=LD_LIBRARY_PATH
12761  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12762  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12763  ;;
12764
12765solaris*)
12766  version_type=linux
12767  need_lib_prefix=no
12768  need_version=no
12769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12770  soname_spec='${libname}${release}${shared_ext}$major'
12771  shlibpath_var=LD_LIBRARY_PATH
12772  shlibpath_overrides_runpath=yes
12773  hardcode_into_libs=yes
12774  # ldd complains unless libraries are executable
12775  postinstall_cmds='chmod +x $lib'
12776  ;;
12777
12778sunos4*)
12779  version_type=sunos
12780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12781  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12782  shlibpath_var=LD_LIBRARY_PATH
12783  shlibpath_overrides_runpath=yes
12784  if test "$with_gnu_ld" = yes; then
12785    need_lib_prefix=no
12786  fi
12787  need_version=yes
12788  ;;
12789
12790sysv4 | sysv4.3*)
12791  version_type=linux
12792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12793  soname_spec='${libname}${release}${shared_ext}$major'
12794  shlibpath_var=LD_LIBRARY_PATH
12795  case $host_vendor in
12796    sni)
12797      shlibpath_overrides_runpath=no
12798      need_lib_prefix=no
12799      export_dynamic_flag_spec='${wl}-Blargedynsym'
12800      runpath_var=LD_RUN_PATH
12801      ;;
12802    siemens)
12803      need_lib_prefix=no
12804      ;;
12805    motorola)
12806      need_lib_prefix=no
12807      need_version=no
12808      shlibpath_overrides_runpath=no
12809      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12810      ;;
12811  esac
12812  ;;
12813
12814sysv4*MP*)
12815  if test -d /usr/nec ;then
12816    version_type=linux
12817    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12818    soname_spec='$libname${shared_ext}.$major'
12819    shlibpath_var=LD_LIBRARY_PATH
12820  fi
12821  ;;
12822
12823sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12824  version_type=freebsd-elf
12825  need_lib_prefix=no
12826  need_version=no
12827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12828  soname_spec='${libname}${release}${shared_ext}$major'
12829  shlibpath_var=LD_LIBRARY_PATH
12830  hardcode_into_libs=yes
12831  if test "$with_gnu_ld" = yes; then
12832    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12833    shlibpath_overrides_runpath=no
12834  else
12835    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12836    shlibpath_overrides_runpath=yes
12837    case $host_os in
12838      sco3.2v5*)
12839        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12840	;;
12841    esac
12842  fi
12843  sys_lib_dlsearch_path_spec='/usr/lib'
12844  ;;
12845
12846uts4*)
12847  version_type=linux
12848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12849  soname_spec='${libname}${release}${shared_ext}$major'
12850  shlibpath_var=LD_LIBRARY_PATH
12851  ;;
12852
12853*)
12854  dynamic_linker=no
12855  ;;
12856esac
12857echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12858echo "${ECHO_T}$dynamic_linker" >&6
12859test "$dynamic_linker" = no && can_build_shared=no
12860
12861variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12862if test "$GCC" = yes; then
12863  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12864fi
12865
12866echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12867echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12868hardcode_action_CXX=
12869if test -n "$hardcode_libdir_flag_spec_CXX" || \
12870   test -n "$runpath_var_CXX" || \
12871   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12872
12873  # We can hardcode non-existant directories.
12874  if test "$hardcode_direct_CXX" != no &&
12875     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12876     # have to relink, otherwise we might link with an installed library
12877     # when we should be linking with a yet-to-be-installed one
12878     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12879     test "$hardcode_minus_L_CXX" != no; then
12880    # Linking always hardcodes the temporary library directory.
12881    hardcode_action_CXX=relink
12882  else
12883    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12884    hardcode_action_CXX=immediate
12885  fi
12886else
12887  # We cannot hardcode anything, or else we can only hardcode existing
12888  # directories.
12889  hardcode_action_CXX=unsupported
12890fi
12891echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12892echo "${ECHO_T}$hardcode_action_CXX" >&6
12893
12894if test "$hardcode_action_CXX" = relink; then
12895  # Fast installation is not supported
12896  enable_fast_install=no
12897elif test "$shlibpath_overrides_runpath" = yes ||
12898     test "$enable_shared" = no; then
12899  # Fast installation is not necessary
12900  enable_fast_install=needless
12901fi
12902
12903
12904# The else clause should only fire when bootstrapping the
12905# libtool distribution, otherwise you forgot to ship ltmain.sh
12906# with your package, and you will get complaints that there are
12907# no rules to generate ltmain.sh.
12908if test -f "$ltmain"; then
12909  # See if we are running on zsh, and set the options which allow our commands through
12910  # without removal of \ escapes.
12911  if test -n "${ZSH_VERSION+set}" ; then
12912    setopt NO_GLOB_SUBST
12913  fi
12914  # Now quote all the things that may contain metacharacters while being
12915  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12916  # variables and quote the copies for generation of the libtool script.
12917  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12918    SED SHELL STRIP \
12919    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12920    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12921    deplibs_check_method reload_flag reload_cmds need_locks \
12922    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12923    lt_cv_sys_global_symbol_to_c_name_address \
12924    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12925    old_postinstall_cmds old_postuninstall_cmds \
12926    compiler_CXX \
12927    CC_CXX \
12928    LD_CXX \
12929    lt_prog_compiler_wl_CXX \
12930    lt_prog_compiler_pic_CXX \
12931    lt_prog_compiler_static_CXX \
12932    lt_prog_compiler_no_builtin_flag_CXX \
12933    export_dynamic_flag_spec_CXX \
12934    thread_safe_flag_spec_CXX \
12935    whole_archive_flag_spec_CXX \
12936    enable_shared_with_static_runtimes_CXX \
12937    old_archive_cmds_CXX \
12938    old_archive_from_new_cmds_CXX \
12939    predep_objects_CXX \
12940    postdep_objects_CXX \
12941    predeps_CXX \
12942    postdeps_CXX \
12943    compiler_lib_search_path_CXX \
12944    archive_cmds_CXX \
12945    archive_expsym_cmds_CXX \
12946    postinstall_cmds_CXX \
12947    postuninstall_cmds_CXX \
12948    old_archive_from_expsyms_cmds_CXX \
12949    allow_undefined_flag_CXX \
12950    no_undefined_flag_CXX \
12951    export_symbols_cmds_CXX \
12952    hardcode_libdir_flag_spec_CXX \
12953    hardcode_libdir_flag_spec_ld_CXX \
12954    hardcode_libdir_separator_CXX \
12955    hardcode_automatic_CXX \
12956    module_cmds_CXX \
12957    module_expsym_cmds_CXX \
12958    lt_cv_prog_compiler_c_o_CXX \
12959    exclude_expsyms_CXX \
12960    include_expsyms_CXX; do
12961
12962    case $var in
12963    old_archive_cmds_CXX | \
12964    old_archive_from_new_cmds_CXX | \
12965    archive_cmds_CXX | \
12966    archive_expsym_cmds_CXX | \
12967    module_cmds_CXX | \
12968    module_expsym_cmds_CXX | \
12969    old_archive_from_expsyms_cmds_CXX | \
12970    export_symbols_cmds_CXX | \
12971    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12972    postinstall_cmds | postuninstall_cmds | \
12973    old_postinstall_cmds | old_postuninstall_cmds | \
12974    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12975      # Double-quote double-evaled strings.
12976      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12977      ;;
12978    *)
12979      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12980      ;;
12981    esac
12982  done
12983
12984  case $lt_echo in
12985  *'\$0 --fallback-echo"')
12986    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12987    ;;
12988  esac
12989
12990cfgfile="$ofile"
12991
12992  cat <<__EOF__ >> "$cfgfile"
12993# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12994
12995# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12996
12997# Shell to use when invoking shell scripts.
12998SHELL=$lt_SHELL
12999
13000# Whether or not to build shared libraries.
13001build_libtool_libs=$enable_shared
13002
13003# Whether or not to build static libraries.
13004build_old_libs=$enable_static
13005
13006# Whether or not to add -lc for building shared libraries.
13007build_libtool_need_lc=$archive_cmds_need_lc_CXX
13008
13009# Whether or not to disallow shared libs when runtime libs are static
13010allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13011
13012# Whether or not to optimize for fast installation.
13013fast_install=$enable_fast_install
13014
13015# The host system.
13016host_alias=$host_alias
13017host=$host
13018host_os=$host_os
13019
13020# The build system.
13021build_alias=$build_alias
13022build=$build
13023build_os=$build_os
13024
13025# An echo program that does not interpret backslashes.
13026echo=$lt_echo
13027
13028# The archiver.
13029AR=$lt_AR
13030AR_FLAGS=$lt_AR_FLAGS
13031
13032# A C compiler.
13033LTCC=$lt_LTCC
13034
13035# LTCC compiler flags.
13036LTCFLAGS=$lt_LTCFLAGS
13037
13038# A language-specific compiler.
13039CC=$lt_compiler_CXX
13040
13041# Is the compiler the GNU C compiler?
13042with_gcc=$GCC_CXX
13043
13044# An ERE matcher.
13045EGREP=$lt_EGREP
13046
13047# The linker used to build libraries.
13048LD=$lt_LD_CXX
13049
13050# Whether we need hard or soft links.
13051LN_S=$lt_LN_S
13052
13053# A BSD-compatible nm program.
13054NM=$lt_NM
13055
13056# A symbol stripping program
13057STRIP=$lt_STRIP
13058
13059# Used to examine libraries when file_magic_cmd begins "file"
13060MAGIC_CMD=$MAGIC_CMD
13061
13062# Used on cygwin: DLL creation program.
13063DLLTOOL="$DLLTOOL"
13064
13065# Used on cygwin: object dumper.
13066OBJDUMP="$OBJDUMP"
13067
13068# Used on cygwin: assembler.
13069AS="$AS"
13070
13071# The name of the directory that contains temporary libtool files.
13072objdir=$objdir
13073
13074# How to create reloadable object files.
13075reload_flag=$lt_reload_flag
13076reload_cmds=$lt_reload_cmds
13077
13078# How to pass a linker flag through the compiler.
13079wl=$lt_lt_prog_compiler_wl_CXX
13080
13081# Object file suffix (normally "o").
13082objext="$ac_objext"
13083
13084# Old archive suffix (normally "a").
13085libext="$libext"
13086
13087# Shared library suffix (normally ".so").
13088shrext_cmds='$shrext_cmds'
13089
13090# Executable file suffix (normally "").
13091exeext="$exeext"
13092
13093# Additional compiler flags for building library objects.
13094pic_flag=$lt_lt_prog_compiler_pic_CXX
13095pic_mode=$pic_mode
13096
13097# What is the maximum length of a command?
13098max_cmd_len=$lt_cv_sys_max_cmd_len
13099
13100# Does compiler simultaneously support -c and -o options?
13101compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13102
13103# Must we lock files when doing compilation?
13104need_locks=$lt_need_locks
13105
13106# Do we need the lib prefix for modules?
13107need_lib_prefix=$need_lib_prefix
13108
13109# Do we need a version for libraries?
13110need_version=$need_version
13111
13112# Whether dlopen is supported.
13113dlopen_support=$enable_dlopen
13114
13115# Whether dlopen of programs is supported.
13116dlopen_self=$enable_dlopen_self
13117
13118# Whether dlopen of statically linked programs is supported.
13119dlopen_self_static=$enable_dlopen_self_static
13120
13121# Compiler flag to prevent dynamic linking.
13122link_static_flag=$lt_lt_prog_compiler_static_CXX
13123
13124# Compiler flag to turn off builtin functions.
13125no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13126
13127# Compiler flag to allow reflexive dlopens.
13128export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13129
13130# Compiler flag to generate shared objects directly from archives.
13131whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13132
13133# Compiler flag to generate thread-safe objects.
13134thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13135
13136# Library versioning type.
13137version_type=$version_type
13138
13139# Format of library name prefix.
13140libname_spec=$lt_libname_spec
13141
13142# List of archive names.  First name is the real one, the rest are links.
13143# The last name is the one that the linker finds with -lNAME.
13144library_names_spec=$lt_library_names_spec
13145
13146# The coded name of the library, if different from the real name.
13147soname_spec=$lt_soname_spec
13148
13149# Commands used to build and install an old-style archive.
13150RANLIB=$lt_RANLIB
13151old_archive_cmds=$lt_old_archive_cmds_CXX
13152old_postinstall_cmds=$lt_old_postinstall_cmds
13153old_postuninstall_cmds=$lt_old_postuninstall_cmds
13154
13155# Create an old-style archive from a shared archive.
13156old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13157
13158# Create a temporary old-style archive to link instead of a shared archive.
13159old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13160
13161# Commands used to build and install a shared archive.
13162archive_cmds=$lt_archive_cmds_CXX
13163archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13164postinstall_cmds=$lt_postinstall_cmds
13165postuninstall_cmds=$lt_postuninstall_cmds
13166
13167# Commands used to build a loadable module (assumed same as above if empty)
13168module_cmds=$lt_module_cmds_CXX
13169module_expsym_cmds=$lt_module_expsym_cmds_CXX
13170
13171# Commands to strip libraries.
13172old_striplib=$lt_old_striplib
13173striplib=$lt_striplib
13174
13175# Dependencies to place before the objects being linked to create a
13176# shared library.
13177predep_objects=$lt_predep_objects_CXX
13178
13179# Dependencies to place after the objects being linked to create a
13180# shared library.
13181postdep_objects=$lt_postdep_objects_CXX
13182
13183# Dependencies to place before the objects being linked to create a
13184# shared library.
13185predeps=$lt_predeps_CXX
13186
13187# Dependencies to place after the objects being linked to create a
13188# shared library.
13189postdeps=$lt_postdeps_CXX
13190
13191# The library search path used internally by the compiler when linking
13192# a shared library.
13193compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13194
13195# Method to check whether dependent libraries are shared objects.
13196deplibs_check_method=$lt_deplibs_check_method
13197
13198# Command to use when deplibs_check_method == file_magic.
13199file_magic_cmd=$lt_file_magic_cmd
13200
13201# Flag that allows shared libraries with undefined symbols to be built.
13202allow_undefined_flag=$lt_allow_undefined_flag_CXX
13203
13204# Flag that forces no undefined symbols.
13205no_undefined_flag=$lt_no_undefined_flag_CXX
13206
13207# Commands used to finish a libtool library installation in a directory.
13208finish_cmds=$lt_finish_cmds
13209
13210# Same as above, but a single script fragment to be evaled but not shown.
13211finish_eval=$lt_finish_eval
13212
13213# Take the output of nm and produce a listing of raw symbols and C names.
13214global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13215
13216# Transform the output of nm in a proper C declaration
13217global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13218
13219# Transform the output of nm in a C name address pair
13220global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13221
13222# This is the shared library runtime path variable.
13223runpath_var=$runpath_var
13224
13225# This is the shared library path variable.
13226shlibpath_var=$shlibpath_var
13227
13228# Is shlibpath searched before the hard-coded library search path?
13229shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13230
13231# How to hardcode a shared library path into an executable.
13232hardcode_action=$hardcode_action_CXX
13233
13234# Whether we should hardcode library paths into libraries.
13235hardcode_into_libs=$hardcode_into_libs
13236
13237# Flag to hardcode \$libdir into a binary during linking.
13238# This must work even if \$libdir does not exist.
13239hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13240
13241# If ld is used when linking, flag to hardcode \$libdir into
13242# a binary during linking. This must work even if \$libdir does
13243# not exist.
13244hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13245
13246# Whether we need a single -rpath flag with a separated argument.
13247hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13248
13249# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13250# resulting binary.
13251hardcode_direct=$hardcode_direct_CXX
13252
13253# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13254# resulting binary.
13255hardcode_minus_L=$hardcode_minus_L_CXX
13256
13257# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13258# the resulting binary.
13259hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13260
13261# Set to yes if building a shared library automatically hardcodes DIR into the library
13262# and all subsequent libraries and executables linked against it.
13263hardcode_automatic=$hardcode_automatic_CXX
13264
13265# Variables whose values should be saved in libtool wrapper scripts and
13266# restored at relink time.
13267variables_saved_for_relink="$variables_saved_for_relink"
13268
13269# Whether libtool must link a program against all its dependency libraries.
13270link_all_deplibs=$link_all_deplibs_CXX
13271
13272# Compile-time system search path for libraries
13273sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13274
13275# Run-time system search path for libraries
13276sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13277
13278# Fix the shell variable \$srcfile for the compiler.
13279fix_srcfile_path="$fix_srcfile_path_CXX"
13280
13281# Set to yes if exported symbols are required.
13282always_export_symbols=$always_export_symbols_CXX
13283
13284# The commands to list exported symbols.
13285export_symbols_cmds=$lt_export_symbols_cmds_CXX
13286
13287# The commands to extract the exported symbol list from a shared archive.
13288extract_expsyms_cmds=$lt_extract_expsyms_cmds
13289
13290# Symbols that should not be listed in the preloaded symbols.
13291exclude_expsyms=$lt_exclude_expsyms_CXX
13292
13293# Symbols that must always be exported.
13294include_expsyms=$lt_include_expsyms_CXX
13295
13296# ### END LIBTOOL TAG CONFIG: $tagname
13297
13298__EOF__
13299
13300
13301else
13302  # If there is no Makefile yet, we rely on a make rule to execute
13303  # `config.status --recheck' to rerun these tests and create the
13304  # libtool script then.
13305  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13306  if test -f "$ltmain_in"; then
13307    test -f Makefile && make "$ltmain"
13308  fi
13309fi
13310
13311
13312ac_ext=c
13313ac_cpp='$CPP $CPPFLAGS'
13314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13316ac_compiler_gnu=$ac_cv_c_compiler_gnu
13317
13318CC=$lt_save_CC
13319LDCXX=$LD
13320LD=$lt_save_LD
13321GCC=$lt_save_GCC
13322with_gnu_ldcxx=$with_gnu_ld
13323with_gnu_ld=$lt_save_with_gnu_ld
13324lt_cv_path_LDCXX=$lt_cv_path_LD
13325lt_cv_path_LD=$lt_save_path_LD
13326lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13327lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13328
13329	else
13330	  tagname=""
13331	fi
13332	;;
13333
13334      F77)
13335	if test -n "$F77" && test "X$F77" != "Xno"; then
13336
13337ac_ext=f
13338ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13339ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13340ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13341
13342
13343archive_cmds_need_lc_F77=no
13344allow_undefined_flag_F77=
13345always_export_symbols_F77=no
13346archive_expsym_cmds_F77=
13347export_dynamic_flag_spec_F77=
13348hardcode_direct_F77=no
13349hardcode_libdir_flag_spec_F77=
13350hardcode_libdir_flag_spec_ld_F77=
13351hardcode_libdir_separator_F77=
13352hardcode_minus_L_F77=no
13353hardcode_automatic_F77=no
13354module_cmds_F77=
13355module_expsym_cmds_F77=
13356link_all_deplibs_F77=unknown
13357old_archive_cmds_F77=$old_archive_cmds
13358no_undefined_flag_F77=
13359whole_archive_flag_spec_F77=
13360enable_shared_with_static_runtimes_F77=no
13361
13362# Source file extension for f77 test sources.
13363ac_ext=f
13364
13365# Object file extension for compiled f77 test sources.
13366objext=o
13367objext_F77=$objext
13368
13369# Code to be used in simple compile tests
13370lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13371
13372# Code to be used in simple link tests
13373lt_simple_link_test_code="      program t\n      end\n"
13374
13375# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13376
13377# If no C compiler was specified, use CC.
13378LTCC=${LTCC-"$CC"}
13379
13380# If no C compiler flags were specified, use CFLAGS.
13381LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13382
13383# Allow CC to be a program name with arguments.
13384compiler=$CC
13385
13386
13387# save warnings/boilerplate of simple test code
13388ac_outfile=conftest.$ac_objext
13389printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13390eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13391_lt_compiler_boilerplate=`cat conftest.err`
13392$rm conftest*
13393
13394ac_outfile=conftest.$ac_objext
13395printf "$lt_simple_link_test_code" >conftest.$ac_ext
13396eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13397_lt_linker_boilerplate=`cat conftest.err`
13398$rm conftest*
13399
13400
13401# Allow CC to be a program name with arguments.
13402lt_save_CC="$CC"
13403CC=${F77-"f77"}
13404compiler=$CC
13405compiler_F77=$CC
13406for cc_temp in $compiler""; do
13407  case $cc_temp in
13408    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13409    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13410    \-*) ;;
13411    *) break;;
13412  esac
13413done
13414cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13415
13416
13417echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13418echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13419echo "$as_me:$LINENO: result: $can_build_shared" >&5
13420echo "${ECHO_T}$can_build_shared" >&6
13421
13422echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13423echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13424test "$can_build_shared" = "no" && enable_shared=no
13425
13426# On AIX, shared libraries and static libraries use the same namespace, and
13427# are all built from PIC.
13428case $host_os in
13429aix3*)
13430  test "$enable_shared" = yes && enable_static=no
13431  if test -n "$RANLIB"; then
13432    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13433    postinstall_cmds='$RANLIB $lib'
13434  fi
13435  ;;
13436aix4* | aix5*)
13437  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13438    test "$enable_shared" = yes && enable_static=no
13439  fi
13440  ;;
13441esac
13442echo "$as_me:$LINENO: result: $enable_shared" >&5
13443echo "${ECHO_T}$enable_shared" >&6
13444
13445echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13446echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13447# Make sure either enable_shared or enable_static is yes.
13448test "$enable_shared" = yes || enable_static=yes
13449echo "$as_me:$LINENO: result: $enable_static" >&5
13450echo "${ECHO_T}$enable_static" >&6
13451
13452GCC_F77="$G77"
13453LD_F77="$LD"
13454
13455lt_prog_compiler_wl_F77=
13456lt_prog_compiler_pic_F77=
13457lt_prog_compiler_static_F77=
13458
13459echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13460echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13461
13462  if test "$GCC" = yes; then
13463    lt_prog_compiler_wl_F77='-Wl,'
13464    lt_prog_compiler_static_F77='-static'
13465
13466    case $host_os in
13467      aix*)
13468      # All AIX code is PIC.
13469      if test "$host_cpu" = ia64; then
13470	# AIX 5 now supports IA64 processor
13471	lt_prog_compiler_static_F77='-Bstatic'
13472      fi
13473      ;;
13474
13475    amigaos*)
13476      # FIXME: we need at least 68020 code to build shared libraries, but
13477      # adding the `-m68020' flag to GCC prevents building anything better,
13478      # like `-m68040'.
13479      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13480      ;;
13481
13482    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13483      # PIC is the default for these OSes.
13484      ;;
13485
13486    mingw* | pw32* | os2*)
13487      # This hack is so that the source file can tell whether it is being
13488      # built for inclusion in a dll (and should export symbols for example).
13489      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13490      ;;
13491
13492    darwin* | rhapsody*)
13493      # PIC is the default on this platform
13494      # Common symbols not allowed in MH_DYLIB files
13495      lt_prog_compiler_pic_F77='-fno-common'
13496      ;;
13497
13498    interix3*)
13499      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13500      # Instead, we relocate shared libraries at runtime.
13501      ;;
13502
13503    msdosdjgpp*)
13504      # Just because we use GCC doesn't mean we suddenly get shared libraries
13505      # on systems that don't support them.
13506      lt_prog_compiler_can_build_shared_F77=no
13507      enable_shared=no
13508      ;;
13509
13510    sysv4*MP*)
13511      if test -d /usr/nec; then
13512	lt_prog_compiler_pic_F77=-Kconform_pic
13513      fi
13514      ;;
13515
13516    hpux*)
13517      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13518      # not for PA HP-UX.
13519      case $host_cpu in
13520      hppa*64*|ia64*)
13521	# +Z the default
13522	;;
13523      *)
13524	lt_prog_compiler_pic_F77='-fPIC'
13525	;;
13526      esac
13527      ;;
13528
13529    *)
13530      lt_prog_compiler_pic_F77='-fPIC'
13531      ;;
13532    esac
13533  else
13534    # PORTME Check for flag to pass linker flags through the system compiler.
13535    case $host_os in
13536    aix*)
13537      lt_prog_compiler_wl_F77='-Wl,'
13538      if test "$host_cpu" = ia64; then
13539	# AIX 5 now supports IA64 processor
13540	lt_prog_compiler_static_F77='-Bstatic'
13541      else
13542	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13543      fi
13544      ;;
13545      darwin*)
13546        # PIC is the default on this platform
13547        # Common symbols not allowed in MH_DYLIB files
13548       case $cc_basename in
13549         xlc*)
13550         lt_prog_compiler_pic_F77='-qnocommon'
13551         lt_prog_compiler_wl_F77='-Wl,'
13552         ;;
13553       esac
13554       ;;
13555
13556    mingw* | pw32* | os2*)
13557      # This hack is so that the source file can tell whether it is being
13558      # built for inclusion in a dll (and should export symbols for example).
13559      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13560      ;;
13561
13562    hpux9* | hpux10* | hpux11*)
13563      lt_prog_compiler_wl_F77='-Wl,'
13564      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13565      # not for PA HP-UX.
13566      case $host_cpu in
13567      hppa*64*|ia64*)
13568	# +Z the default
13569	;;
13570      *)
13571	lt_prog_compiler_pic_F77='+Z'
13572	;;
13573      esac
13574      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13575      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13576      ;;
13577
13578    irix5* | irix6* | nonstopux*)
13579      lt_prog_compiler_wl_F77='-Wl,'
13580      # PIC (with -KPIC) is the default.
13581      lt_prog_compiler_static_F77='-non_shared'
13582      ;;
13583
13584    newsos6)
13585      lt_prog_compiler_pic_F77='-KPIC'
13586      lt_prog_compiler_static_F77='-Bstatic'
13587      ;;
13588
13589    linux*)
13590      case $cc_basename in
13591      icc* | ecc*)
13592	lt_prog_compiler_wl_F77='-Wl,'
13593	lt_prog_compiler_pic_F77='-KPIC'
13594	lt_prog_compiler_static_F77='-static'
13595        ;;
13596      pgcc* | pgf77* | pgf90* | pgf95*)
13597        # Portland Group compilers (*not* the Pentium gcc compiler,
13598	# which looks to be a dead project)
13599	lt_prog_compiler_wl_F77='-Wl,'
13600	lt_prog_compiler_pic_F77='-fpic'
13601	lt_prog_compiler_static_F77='-Bstatic'
13602        ;;
13603      ccc*)
13604        lt_prog_compiler_wl_F77='-Wl,'
13605        # All Alpha code is PIC.
13606        lt_prog_compiler_static_F77='-non_shared'
13607        ;;
13608      esac
13609      ;;
13610
13611    osf3* | osf4* | osf5*)
13612      lt_prog_compiler_wl_F77='-Wl,'
13613      # All OSF/1 code is PIC.
13614      lt_prog_compiler_static_F77='-non_shared'
13615      ;;
13616
13617    solaris*)
13618      lt_prog_compiler_pic_F77='-KPIC'
13619      lt_prog_compiler_static_F77='-Bstatic'
13620      case $cc_basename in
13621      f77* | f90* | f95*)
13622	lt_prog_compiler_wl_F77='-Qoption ld ';;
13623      *)
13624	lt_prog_compiler_wl_F77='-Wl,';;
13625      esac
13626      ;;
13627
13628    sunos4*)
13629      lt_prog_compiler_wl_F77='-Qoption ld '
13630      lt_prog_compiler_pic_F77='-PIC'
13631      lt_prog_compiler_static_F77='-Bstatic'
13632      ;;
13633
13634    sysv4 | sysv4.2uw2* | sysv4.3*)
13635      lt_prog_compiler_wl_F77='-Wl,'
13636      lt_prog_compiler_pic_F77='-KPIC'
13637      lt_prog_compiler_static_F77='-Bstatic'
13638      ;;
13639
13640    sysv4*MP*)
13641      if test -d /usr/nec ;then
13642	lt_prog_compiler_pic_F77='-Kconform_pic'
13643	lt_prog_compiler_static_F77='-Bstatic'
13644      fi
13645      ;;
13646
13647    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13648      lt_prog_compiler_wl_F77='-Wl,'
13649      lt_prog_compiler_pic_F77='-KPIC'
13650      lt_prog_compiler_static_F77='-Bstatic'
13651      ;;
13652
13653    unicos*)
13654      lt_prog_compiler_wl_F77='-Wl,'
13655      lt_prog_compiler_can_build_shared_F77=no
13656      ;;
13657
13658    uts4*)
13659      lt_prog_compiler_pic_F77='-pic'
13660      lt_prog_compiler_static_F77='-Bstatic'
13661      ;;
13662
13663    *)
13664      lt_prog_compiler_can_build_shared_F77=no
13665      ;;
13666    esac
13667  fi
13668
13669echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13670echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13671
13672#
13673# Check to make sure the PIC flag actually works.
13674#
13675if test -n "$lt_prog_compiler_pic_F77"; then
13676
13677echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13678echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13679if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13680  echo $ECHO_N "(cached) $ECHO_C" >&6
13681else
13682  lt_prog_compiler_pic_works_F77=no
13683  ac_outfile=conftest.$ac_objext
13684   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13685   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13686   # Insert the option either (1) after the last *FLAGS variable, or
13687   # (2) before a word containing "conftest.", or (3) at the end.
13688   # Note that $ac_compile itself does not contain backslashes and begins
13689   # with a dollar sign (not a hyphen), so the echo should work correctly.
13690   # The option is referenced via a variable to avoid confusing sed.
13691   lt_compile=`echo "$ac_compile" | $SED \
13692   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13693   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13694   -e 's:$: $lt_compiler_flag:'`
13695   (eval echo "\"\$as_me:13695: $lt_compile\"" >&5)
13696   (eval "$lt_compile" 2>conftest.err)
13697   ac_status=$?
13698   cat conftest.err >&5
13699   echo "$as_me:13699: \$? = $ac_status" >&5
13700   if (exit $ac_status) && test -s "$ac_outfile"; then
13701     # The compiler can only warn and ignore the option if not recognized
13702     # So say no if there are warnings other than the usual output.
13703     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13704     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13705     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13706       lt_prog_compiler_pic_works_F77=yes
13707     fi
13708   fi
13709   $rm conftest*
13710
13711fi
13712echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13713echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13714
13715if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13716    case $lt_prog_compiler_pic_F77 in
13717     "" | " "*) ;;
13718     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13719     esac
13720else
13721    lt_prog_compiler_pic_F77=
13722     lt_prog_compiler_can_build_shared_F77=no
13723fi
13724
13725fi
13726case $host_os in
13727  # For platforms which do not support PIC, -DPIC is meaningless:
13728  *djgpp*)
13729    lt_prog_compiler_pic_F77=
13730    ;;
13731  *)
13732    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13733    ;;
13734esac
13735
13736#
13737# Check to make sure the static flag actually works.
13738#
13739wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13740echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13741echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13742if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13743  echo $ECHO_N "(cached) $ECHO_C" >&6
13744else
13745  lt_prog_compiler_static_works_F77=no
13746   save_LDFLAGS="$LDFLAGS"
13747   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13748   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13749   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13750     # The linker can only warn and ignore the option if not recognized
13751     # So say no if there are warnings
13752     if test -s conftest.err; then
13753       # Append any errors to the config.log.
13754       cat conftest.err 1>&5
13755       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13756       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13757       if diff conftest.exp conftest.er2 >/dev/null; then
13758         lt_prog_compiler_static_works_F77=yes
13759       fi
13760     else
13761       lt_prog_compiler_static_works_F77=yes
13762     fi
13763   fi
13764   $rm conftest*
13765   LDFLAGS="$save_LDFLAGS"
13766
13767fi
13768echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13769echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13770
13771if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13772    :
13773else
13774    lt_prog_compiler_static_F77=
13775fi
13776
13777
13778echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13779echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13780if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13781  echo $ECHO_N "(cached) $ECHO_C" >&6
13782else
13783  lt_cv_prog_compiler_c_o_F77=no
13784   $rm -r conftest 2>/dev/null
13785   mkdir conftest
13786   cd conftest
13787   mkdir out
13788   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13789
13790   lt_compiler_flag="-o out/conftest2.$ac_objext"
13791   # Insert the option either (1) after the last *FLAGS variable, or
13792   # (2) before a word containing "conftest.", or (3) at the end.
13793   # Note that $ac_compile itself does not contain backslashes and begins
13794   # with a dollar sign (not a hyphen), so the echo should work correctly.
13795   lt_compile=`echo "$ac_compile" | $SED \
13796   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13797   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13798   -e 's:$: $lt_compiler_flag:'`
13799   (eval echo "\"\$as_me:13799: $lt_compile\"" >&5)
13800   (eval "$lt_compile" 2>out/conftest.err)
13801   ac_status=$?
13802   cat out/conftest.err >&5
13803   echo "$as_me:13803: \$? = $ac_status" >&5
13804   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13805   then
13806     # The compiler can only warn and ignore the option if not recognized
13807     # So say no if there are warnings
13808     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13809     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13810     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13811       lt_cv_prog_compiler_c_o_F77=yes
13812     fi
13813   fi
13814   chmod u+w . 2>&5
13815   $rm conftest*
13816   # SGI C++ compiler will create directory out/ii_files/ for
13817   # template instantiation
13818   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13819   $rm out/* && rmdir out
13820   cd ..
13821   rmdir conftest
13822   $rm conftest*
13823
13824fi
13825echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13826echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13827
13828
13829hard_links="nottested"
13830if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13831  # do not overwrite the value of need_locks provided by the user
13832  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13833echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13834  hard_links=yes
13835  $rm conftest*
13836  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13837  touch conftest.a
13838  ln conftest.a conftest.b 2>&5 || hard_links=no
13839  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13840  echo "$as_me:$LINENO: result: $hard_links" >&5
13841echo "${ECHO_T}$hard_links" >&6
13842  if test "$hard_links" = no; then
13843    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13844echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13845    need_locks=warn
13846  fi
13847else
13848  need_locks=no
13849fi
13850
13851echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13852echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13853
13854  runpath_var=
13855  allow_undefined_flag_F77=
13856  enable_shared_with_static_runtimes_F77=no
13857  archive_cmds_F77=
13858  archive_expsym_cmds_F77=
13859  old_archive_From_new_cmds_F77=
13860  old_archive_from_expsyms_cmds_F77=
13861  export_dynamic_flag_spec_F77=
13862  whole_archive_flag_spec_F77=
13863  thread_safe_flag_spec_F77=
13864  hardcode_libdir_flag_spec_F77=
13865  hardcode_libdir_flag_spec_ld_F77=
13866  hardcode_libdir_separator_F77=
13867  hardcode_direct_F77=no
13868  hardcode_minus_L_F77=no
13869  hardcode_shlibpath_var_F77=unsupported
13870  link_all_deplibs_F77=unknown
13871  hardcode_automatic_F77=no
13872  module_cmds_F77=
13873  module_expsym_cmds_F77=
13874  always_export_symbols_F77=no
13875  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13876  # include_expsyms should be a list of space-separated symbols to be *always*
13877  # included in the symbol list
13878  include_expsyms_F77=
13879  # exclude_expsyms can be an extended regexp of symbols to exclude
13880  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13881  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13882  # as well as any symbol that contains `d'.
13883  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13884  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13885  # platforms (ab)use it in PIC code, but their linkers get confused if
13886  # the symbol is explicitly referenced.  Since portable code cannot
13887  # rely on this symbol name, it's probably fine to never include it in
13888  # preloaded symbol tables.
13889  extract_expsyms_cmds=
13890  # Just being paranoid about ensuring that cc_basename is set.
13891  for cc_temp in $compiler""; do
13892  case $cc_temp in
13893    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13894    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13895    \-*) ;;
13896    *) break;;
13897  esac
13898done
13899cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13900
13901  case $host_os in
13902  cygwin* | mingw* | pw32*)
13903    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13904    # When not using gcc, we currently assume that we are using
13905    # Microsoft Visual C++.
13906    if test "$GCC" != yes; then
13907      with_gnu_ld=no
13908    fi
13909    ;;
13910  interix*)
13911    # we just hope/assume this is gcc and not c89 (= MSVC++)
13912    with_gnu_ld=yes
13913    ;;
13914  openbsd*)
13915    with_gnu_ld=no
13916    ;;
13917  esac
13918
13919  ld_shlibs_F77=yes
13920  if test "$with_gnu_ld" = yes; then
13921    # If archive_cmds runs LD, not CC, wlarc should be empty
13922    wlarc='${wl}'
13923
13924    # Set some defaults for GNU ld with shared library support. These
13925    # are reset later if shared libraries are not supported. Putting them
13926    # here allows them to be overridden if necessary.
13927    runpath_var=LD_RUN_PATH
13928    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13929    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13930    # ancient GNU ld didn't support --whole-archive et. al.
13931    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13932	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13933      else
13934  	whole_archive_flag_spec_F77=
13935    fi
13936    supports_anon_versioning=no
13937    case `$LD -v 2>/dev/null` in
13938      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13939      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13940      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13941      *\ 2.11.*) ;; # other 2.11 versions
13942      *) supports_anon_versioning=yes ;;
13943    esac
13944
13945    # See if GNU ld supports shared libraries.
13946    case $host_os in
13947    aix3* | aix4* | aix5*)
13948      # On AIX/PPC, the GNU linker is very broken
13949      if test "$host_cpu" != ia64; then
13950	ld_shlibs_F77=no
13951	cat <<EOF 1>&2
13952
13953*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13954*** to be unable to reliably create shared libraries on AIX.
13955*** Therefore, libtool is disabling shared libraries support.  If you
13956*** really care for shared libraries, you may want to modify your PATH
13957*** so that a non-GNU linker is found, and then restart.
13958
13959EOF
13960      fi
13961      ;;
13962
13963    amigaos*)
13964      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)'
13965      hardcode_libdir_flag_spec_F77='-L$libdir'
13966      hardcode_minus_L_F77=yes
13967
13968      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13969      # that the semantics of dynamic libraries on AmigaOS, at least up
13970      # to version 4, is to share data among multiple programs linked
13971      # with the same dynamic library.  Since this doesn't match the
13972      # behavior of shared libraries on other platforms, we can't use
13973      # them.
13974      ld_shlibs_F77=no
13975      ;;
13976
13977    beos*)
13978      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13979	allow_undefined_flag_F77=unsupported
13980	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13981	# support --undefined.  This deserves some investigation.  FIXME
13982	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13983      else
13984	ld_shlibs_F77=no
13985      fi
13986      ;;
13987
13988    cygwin* | mingw* | pw32*)
13989      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13990      # as there is no search path for DLLs.
13991      hardcode_libdir_flag_spec_F77='-L$libdir'
13992      allow_undefined_flag_F77=unsupported
13993      always_export_symbols_F77=no
13994      enable_shared_with_static_runtimes_F77=yes
13995      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13996
13997      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13998        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13999	# If the export-symbols file already is a .def file (1st line
14000	# is EXPORTS), use it as is; otherwise, prepend...
14001	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14002	  cp $export_symbols $output_objdir/$soname.def;
14003	else
14004	  echo EXPORTS > $output_objdir/$soname.def;
14005	  cat $export_symbols >> $output_objdir/$soname.def;
14006	fi~
14007	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14008      else
14009	ld_shlibs_F77=no
14010      fi
14011      ;;
14012
14013    interix3*)
14014      hardcode_direct_F77=no
14015      hardcode_shlibpath_var_F77=no
14016      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14017      export_dynamic_flag_spec_F77='${wl}-E'
14018      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14019      # Instead, shared libraries are loaded at an image base (0x10000000 by
14020      # default) and relocated if they conflict, which is a slow very memory
14021      # consuming and fragmenting process.  To avoid this, we pick a random,
14022      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14023      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14024      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'
14025      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'
14026      ;;
14027
14028    linux*)
14029      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14030	tmp_addflag=
14031	case $cc_basename,$host_cpu in
14032	pgcc*)				# Portland Group C compiler
14033	  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'
14034	  tmp_addflag=' $pic_flag'
14035	  ;;
14036	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14037	  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'
14038	  tmp_addflag=' $pic_flag -Mnomain' ;;
14039	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14040	  tmp_addflag=' -i_dynamic' ;;
14041	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14042	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14043	ifc* | ifort*)			# Intel Fortran compiler
14044	  tmp_addflag=' -nofor_main' ;;
14045	esac
14046	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14047
14048	if test $supports_anon_versioning = yes; then
14049	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14050  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14051  $echo "local: *; };" >> $output_objdir/$libname.ver~
14052	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14053	fi
14054      else
14055	ld_shlibs_F77=no
14056      fi
14057      ;;
14058
14059    netbsd*)
14060      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14061	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14062	wlarc=
14063      else
14064	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14065	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14066      fi
14067      ;;
14068
14069    solaris*)
14070      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14071	ld_shlibs_F77=no
14072	cat <<EOF 1>&2
14073
14074*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14075*** create shared libraries on Solaris systems.  Therefore, libtool
14076*** is disabling shared libraries support.  We urge you to upgrade GNU
14077*** binutils to release 2.9.1 or newer.  Another option is to modify
14078*** your PATH or compiler configuration so that the native linker is
14079*** used, and then restart.
14080
14081EOF
14082      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14083	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14084	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14085      else
14086	ld_shlibs_F77=no
14087      fi
14088      ;;
14089
14090    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14091      case `$LD -v 2>&1` in
14092        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14093	ld_shlibs_F77=no
14094	cat <<_LT_EOF 1>&2
14095
14096*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14097*** reliably create shared libraries on SCO systems.  Therefore, libtool
14098*** is disabling shared libraries support.  We urge you to upgrade GNU
14099*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14100*** your PATH or compiler configuration so that the native linker is
14101*** used, and then restart.
14102
14103_LT_EOF
14104	;;
14105	*)
14106	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14107	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14108	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14109	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14110	  else
14111	    ld_shlibs_F77=no
14112	  fi
14113	;;
14114      esac
14115      ;;
14116
14117    sunos4*)
14118      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14119      wlarc=
14120      hardcode_direct_F77=yes
14121      hardcode_shlibpath_var_F77=no
14122      ;;
14123
14124    *)
14125      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14126	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14127	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14128      else
14129	ld_shlibs_F77=no
14130      fi
14131      ;;
14132    esac
14133
14134    if test "$ld_shlibs_F77" = no; then
14135      runpath_var=
14136      hardcode_libdir_flag_spec_F77=
14137      export_dynamic_flag_spec_F77=
14138      whole_archive_flag_spec_F77=
14139    fi
14140  else
14141    # PORTME fill in a description of your system's linker (not GNU ld)
14142    case $host_os in
14143    aix3*)
14144      allow_undefined_flag_F77=unsupported
14145      always_export_symbols_F77=yes
14146      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'
14147      # Note: this linker hardcodes the directories in LIBPATH if there
14148      # are no directories specified by -L.
14149      hardcode_minus_L_F77=yes
14150      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14151	# Neither direct hardcoding nor static linking is supported with a
14152	# broken collect2.
14153	hardcode_direct_F77=unsupported
14154      fi
14155      ;;
14156
14157    aix4* | aix5*)
14158      if test "$host_cpu" = ia64; then
14159	# On IA64, the linker does run time linking by default, so we don't
14160	# have to do anything special.
14161	aix_use_runtimelinking=no
14162	exp_sym_flag='-Bexport'
14163	no_entry_flag=""
14164      else
14165	# If we're using GNU nm, then we don't want the "-C" option.
14166	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14167	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14168	  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'
14169	else
14170	  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'
14171	fi
14172	aix_use_runtimelinking=no
14173
14174	# Test if we are trying to use run time linking or normal
14175	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14176	# need to do runtime linking.
14177	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14178	  for ld_flag in $LDFLAGS; do
14179  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14180  	    aix_use_runtimelinking=yes
14181  	    break
14182  	  fi
14183	  done
14184	  ;;
14185	esac
14186
14187	exp_sym_flag='-bexport'
14188	no_entry_flag='-bnoentry'
14189      fi
14190
14191      # When large executables or shared objects are built, AIX ld can
14192      # have problems creating the table of contents.  If linking a library
14193      # or program results in "error TOC overflow" add -mminimal-toc to
14194      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14195      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14196
14197      archive_cmds_F77=''
14198      hardcode_direct_F77=yes
14199      hardcode_libdir_separator_F77=':'
14200      link_all_deplibs_F77=yes
14201
14202      if test "$GCC" = yes; then
14203	case $host_os in aix4.[012]|aix4.[012].*)
14204	# We only want to do this on AIX 4.2 and lower, the check
14205	# below for broken collect2 doesn't work under 4.3+
14206	  collect2name=`${CC} -print-prog-name=collect2`
14207	  if test -f "$collect2name" && \
14208  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14209	  then
14210  	  # We have reworked collect2
14211  	  hardcode_direct_F77=yes
14212	  else
14213  	  # We have old collect2
14214  	  hardcode_direct_F77=unsupported
14215  	  # It fails to find uninstalled libraries when the uninstalled
14216  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14217  	  # to unsupported forces relinking
14218  	  hardcode_minus_L_F77=yes
14219  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14220  	  hardcode_libdir_separator_F77=
14221	  fi
14222	  ;;
14223	esac
14224	shared_flag='-shared'
14225	if test "$aix_use_runtimelinking" = yes; then
14226	  shared_flag="$shared_flag "'${wl}-G'
14227	fi
14228      else
14229	# not using gcc
14230	if test "$host_cpu" = ia64; then
14231  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14232  	# chokes on -Wl,-G. The following line is correct:
14233	  shared_flag='-G'
14234	else
14235	  if test "$aix_use_runtimelinking" = yes; then
14236	    shared_flag='${wl}-G'
14237	  else
14238	    shared_flag='${wl}-bM:SRE'
14239	  fi
14240	fi
14241      fi
14242
14243      # It seems that -bexpall does not export symbols beginning with
14244      # underscore (_), so it is better to generate a list of symbols to export.
14245      always_export_symbols_F77=yes
14246      if test "$aix_use_runtimelinking" = yes; then
14247	# Warning - without using the other runtime loading flags (-brtl),
14248	# -berok will link without error, but may produce a broken library.
14249	allow_undefined_flag_F77='-berok'
14250       # Determine the default libpath from the value encoded in an empty executable.
14251       cat >conftest.$ac_ext <<_ACEOF
14252      program main
14253
14254      end
14255_ACEOF
14256rm -f conftest.$ac_objext conftest$ac_exeext
14257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14258  (eval $ac_link) 2>conftest.er1
14259  ac_status=$?
14260  grep -v '^ *+' conftest.er1 >conftest.err
14261  rm -f conftest.er1
14262  cat conftest.err >&5
14263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264  (exit $ac_status); } &&
14265	 { ac_try='test -z "$ac_f77_werror_flag"
14266			 || test ! -s conftest.err'
14267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268  (eval $ac_try) 2>&5
14269  ac_status=$?
14270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271  (exit $ac_status); }; } &&
14272	 { ac_try='test -s conftest$ac_exeext'
14273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274  (eval $ac_try) 2>&5
14275  ac_status=$?
14276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277  (exit $ac_status); }; }; then
14278
14279aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14280}'`
14281# Check for a 64-bit object if we didn't find anything.
14282if 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; }
14283}'`; fi
14284else
14285  echo "$as_me: failed program was:" >&5
14286sed 's/^/| /' conftest.$ac_ext >&5
14287
14288fi
14289rm -f conftest.err conftest.$ac_objext \
14290      conftest$ac_exeext conftest.$ac_ext
14291if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14292
14293       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14294	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"
14295       else
14296	if test "$host_cpu" = ia64; then
14297	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14298	  allow_undefined_flag_F77="-z nodefs"
14299	  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"
14300	else
14301	 # Determine the default libpath from the value encoded in an empty executable.
14302	 cat >conftest.$ac_ext <<_ACEOF
14303      program main
14304
14305      end
14306_ACEOF
14307rm -f conftest.$ac_objext conftest$ac_exeext
14308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14309  (eval $ac_link) 2>conftest.er1
14310  ac_status=$?
14311  grep -v '^ *+' conftest.er1 >conftest.err
14312  rm -f conftest.er1
14313  cat conftest.err >&5
14314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315  (exit $ac_status); } &&
14316	 { ac_try='test -z "$ac_f77_werror_flag"
14317			 || test ! -s conftest.err'
14318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319  (eval $ac_try) 2>&5
14320  ac_status=$?
14321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322  (exit $ac_status); }; } &&
14323	 { ac_try='test -s conftest$ac_exeext'
14324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325  (eval $ac_try) 2>&5
14326  ac_status=$?
14327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328  (exit $ac_status); }; }; then
14329
14330aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14331}'`
14332# Check for a 64-bit object if we didn't find anything.
14333if 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; }
14334}'`; fi
14335else
14336  echo "$as_me: failed program was:" >&5
14337sed 's/^/| /' conftest.$ac_ext >&5
14338
14339fi
14340rm -f conftest.err conftest.$ac_objext \
14341      conftest$ac_exeext conftest.$ac_ext
14342if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14343
14344	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14345	  # Warning - without using the other run time loading flags,
14346	  # -berok will link without error, but may produce a broken library.
14347	  no_undefined_flag_F77=' ${wl}-bernotok'
14348	  allow_undefined_flag_F77=' ${wl}-berok'
14349	  # Exported symbols can be pulled into shared objects from archives
14350	  whole_archive_flag_spec_F77='$convenience'
14351	  archive_cmds_need_lc_F77=yes
14352	  # This is similar to how AIX traditionally builds its shared libraries.
14353	  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'
14354	fi
14355      fi
14356      ;;
14357
14358    amigaos*)
14359      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)'
14360      hardcode_libdir_flag_spec_F77='-L$libdir'
14361      hardcode_minus_L_F77=yes
14362      # see comment about different semantics on the GNU ld section
14363      ld_shlibs_F77=no
14364      ;;
14365
14366    bsdi[45]*)
14367      export_dynamic_flag_spec_F77=-rdynamic
14368      ;;
14369
14370    cygwin* | mingw* | pw32*)
14371      # When not using gcc, we currently assume that we are using
14372      # Microsoft Visual C++.
14373      # hardcode_libdir_flag_spec is actually meaningless, as there is
14374      # no search path for DLLs.
14375      hardcode_libdir_flag_spec_F77=' '
14376      allow_undefined_flag_F77=unsupported
14377      # Tell ltmain to make .lib files, not .a files.
14378      libext=lib
14379      # Tell ltmain to make .dll files, not .so files.
14380      shrext_cmds=".dll"
14381      # FIXME: Setting linknames here is a bad hack.
14382      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14383      # The linker will automatically build a .lib file if we build a DLL.
14384      old_archive_From_new_cmds_F77='true'
14385      # FIXME: Should let the user specify the lib program.
14386      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14387      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14388      enable_shared_with_static_runtimes_F77=yes
14389      ;;
14390
14391    darwin* | rhapsody*)
14392      case $host_os in
14393        rhapsody* | darwin1.[012])
14394         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14395         ;;
14396       *) # Darwin 1.3 on
14397         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14398           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14399         else
14400           case ${MACOSX_DEPLOYMENT_TARGET} in
14401             10.[012])
14402               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14403               ;;
14404             10.*)
14405               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14406               ;;
14407           esac
14408         fi
14409         ;;
14410      esac
14411      archive_cmds_need_lc_F77=no
14412      hardcode_direct_F77=no
14413      hardcode_automatic_F77=yes
14414      hardcode_shlibpath_var_F77=unsupported
14415      whole_archive_flag_spec_F77=''
14416      link_all_deplibs_F77=yes
14417    if test "$GCC" = yes ; then
14418    	output_verbose_link_cmd='echo'
14419        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14420      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14421      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14422      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}'
14423      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}'
14424    else
14425      case $cc_basename in
14426        xlc*)
14427         output_verbose_link_cmd='echo'
14428         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14429         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14430          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14431         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}'
14432          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}'
14433          ;;
14434       *)
14435         ld_shlibs_F77=no
14436          ;;
14437      esac
14438    fi
14439      ;;
14440
14441    dgux*)
14442      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14443      hardcode_libdir_flag_spec_F77='-L$libdir'
14444      hardcode_shlibpath_var_F77=no
14445      ;;
14446
14447    freebsd1*)
14448      ld_shlibs_F77=no
14449      ;;
14450
14451    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14452    # support.  Future versions do this automatically, but an explicit c++rt0.o
14453    # does not break anything, and helps significantly (at the cost of a little
14454    # extra space).
14455    freebsd2.2*)
14456      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14457      hardcode_libdir_flag_spec_F77='-R$libdir'
14458      hardcode_direct_F77=yes
14459      hardcode_shlibpath_var_F77=no
14460      ;;
14461
14462    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14463    freebsd2*)
14464      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14465      hardcode_direct_F77=yes
14466      hardcode_minus_L_F77=yes
14467      hardcode_shlibpath_var_F77=no
14468      ;;
14469
14470    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14471    freebsd* | kfreebsd*-gnu | dragonfly*)
14472      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14473      hardcode_libdir_flag_spec_F77='-R$libdir'
14474      hardcode_direct_F77=yes
14475      hardcode_shlibpath_var_F77=no
14476      ;;
14477
14478    hpux9*)
14479      if test "$GCC" = yes; then
14480	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'
14481      else
14482	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'
14483      fi
14484      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14485      hardcode_libdir_separator_F77=:
14486      hardcode_direct_F77=yes
14487
14488      # hardcode_minus_L: Not really in the search PATH,
14489      # but as the default location of the library.
14490      hardcode_minus_L_F77=yes
14491      export_dynamic_flag_spec_F77='${wl}-E'
14492      ;;
14493
14494    hpux10*)
14495      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14496	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14497      else
14498	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14499      fi
14500      if test "$with_gnu_ld" = no; then
14501	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14502	hardcode_libdir_separator_F77=:
14503
14504	hardcode_direct_F77=yes
14505	export_dynamic_flag_spec_F77='${wl}-E'
14506
14507	# hardcode_minus_L: Not really in the search PATH,
14508	# but as the default location of the library.
14509	hardcode_minus_L_F77=yes
14510      fi
14511      ;;
14512
14513    hpux11*)
14514      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14515	case $host_cpu in
14516	hppa*64*)
14517	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14518	  ;;
14519	ia64*)
14520	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14521	  ;;
14522	*)
14523	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14524	  ;;
14525	esac
14526      else
14527	case $host_cpu in
14528	hppa*64*)
14529	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14530	  ;;
14531	ia64*)
14532	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14533	  ;;
14534	*)
14535	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14536	  ;;
14537	esac
14538      fi
14539      if test "$with_gnu_ld" = no; then
14540	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14541	hardcode_libdir_separator_F77=:
14542
14543	case $host_cpu in
14544	hppa*64*|ia64*)
14545	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14546	  hardcode_direct_F77=no
14547	  hardcode_shlibpath_var_F77=no
14548	  ;;
14549	*)
14550	  hardcode_direct_F77=yes
14551	  export_dynamic_flag_spec_F77='${wl}-E'
14552
14553	  # hardcode_minus_L: Not really in the search PATH,
14554	  # but as the default location of the library.
14555	  hardcode_minus_L_F77=yes
14556	  ;;
14557	esac
14558      fi
14559      ;;
14560
14561    irix5* | irix6* | nonstopux*)
14562      if test "$GCC" = yes; then
14563	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'
14564      else
14565	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'
14566	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14567      fi
14568      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14569      hardcode_libdir_separator_F77=:
14570      link_all_deplibs_F77=yes
14571      ;;
14572
14573    netbsd*)
14574      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14575	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14576      else
14577	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14578      fi
14579      hardcode_libdir_flag_spec_F77='-R$libdir'
14580      hardcode_direct_F77=yes
14581      hardcode_shlibpath_var_F77=no
14582      ;;
14583
14584    newsos6)
14585      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14586      hardcode_direct_F77=yes
14587      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14588      hardcode_libdir_separator_F77=:
14589      hardcode_shlibpath_var_F77=no
14590      ;;
14591
14592    openbsd*)
14593      hardcode_direct_F77=yes
14594      hardcode_shlibpath_var_F77=no
14595      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14596	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14597	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14598	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14599	export_dynamic_flag_spec_F77='${wl}-E'
14600      else
14601       case $host_os in
14602	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14603	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14604	   hardcode_libdir_flag_spec_F77='-R$libdir'
14605	   ;;
14606	 *)
14607	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14608	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14609	   ;;
14610       esac
14611      fi
14612      ;;
14613
14614    os2*)
14615      hardcode_libdir_flag_spec_F77='-L$libdir'
14616      hardcode_minus_L_F77=yes
14617      allow_undefined_flag_F77=unsupported
14618      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'
14619      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14620      ;;
14621
14622    osf3*)
14623      if test "$GCC" = yes; then
14624	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14625	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'
14626      else
14627	allow_undefined_flag_F77=' -expect_unresolved \*'
14628	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'
14629      fi
14630      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14631      hardcode_libdir_separator_F77=:
14632      ;;
14633
14634    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14635      if test "$GCC" = yes; then
14636	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14637	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'
14638	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14639      else
14640	allow_undefined_flag_F77=' -expect_unresolved \*'
14641	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'
14642	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~
14643	$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'
14644
14645	# Both c and cxx compiler support -rpath directly
14646	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14647      fi
14648      hardcode_libdir_separator_F77=:
14649      ;;
14650
14651    solaris*)
14652      no_undefined_flag_F77=' -z text'
14653      if test "$GCC" = yes; then
14654	wlarc='${wl}'
14655	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14656	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14657	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14658      else
14659	wlarc=''
14660	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14661	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14662  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14663      fi
14664      hardcode_libdir_flag_spec_F77='-R$libdir'
14665      hardcode_shlibpath_var_F77=no
14666      case $host_os in
14667      solaris2.[0-5] | solaris2.[0-5].*) ;;
14668      *)
14669 	# The compiler driver will combine linker options so we
14670 	# cannot just pass the convience library names through
14671 	# without $wl, iff we do not link with $LD.
14672 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14673 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14674 	case $wlarc in
14675 	'')
14676 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14677 	*)
14678 	  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' ;;
14679 	esac ;;
14680      esac
14681      link_all_deplibs_F77=yes
14682      ;;
14683
14684    sunos4*)
14685      if test "x$host_vendor" = xsequent; then
14686	# Use $CC to link under sequent, because it throws in some extra .o
14687	# files that make .init and .fini sections work.
14688	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14689      else
14690	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14691      fi
14692      hardcode_libdir_flag_spec_F77='-L$libdir'
14693      hardcode_direct_F77=yes
14694      hardcode_minus_L_F77=yes
14695      hardcode_shlibpath_var_F77=no
14696      ;;
14697
14698    sysv4)
14699      case $host_vendor in
14700	sni)
14701	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14702	  hardcode_direct_F77=yes # is this really true???
14703	;;
14704	siemens)
14705	  ## LD is ld it makes a PLAMLIB
14706	  ## CC just makes a GrossModule.
14707	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14708	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14709	  hardcode_direct_F77=no
14710        ;;
14711	motorola)
14712	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14713	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14714	;;
14715      esac
14716      runpath_var='LD_RUN_PATH'
14717      hardcode_shlibpath_var_F77=no
14718      ;;
14719
14720    sysv4.3*)
14721      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14722      hardcode_shlibpath_var_F77=no
14723      export_dynamic_flag_spec_F77='-Bexport'
14724      ;;
14725
14726    sysv4*MP*)
14727      if test -d /usr/nec; then
14728	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14729	hardcode_shlibpath_var_F77=no
14730	runpath_var=LD_RUN_PATH
14731	hardcode_runpath_var=yes
14732	ld_shlibs_F77=yes
14733      fi
14734      ;;
14735
14736    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14737      no_undefined_flag_F77='${wl}-z,text'
14738      archive_cmds_need_lc_F77=no
14739      hardcode_shlibpath_var_F77=no
14740      runpath_var='LD_RUN_PATH'
14741
14742      if test "$GCC" = yes; then
14743	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14744	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14745      else
14746	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14747	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14748      fi
14749      ;;
14750
14751    sysv5* | sco3.2v5* | sco5v6*)
14752      # Note: We can NOT use -z defs as we might desire, because we do not
14753      # link with -lc, and that would cause any symbols used from libc to
14754      # always be unresolved, which means just about no library would
14755      # ever link correctly.  If we're not using GNU ld we use -z text
14756      # though, which does catch some bad symbols but isn't as heavy-handed
14757      # as -z defs.
14758      no_undefined_flag_F77='${wl}-z,text'
14759      allow_undefined_flag_F77='${wl}-z,nodefs'
14760      archive_cmds_need_lc_F77=no
14761      hardcode_shlibpath_var_F77=no
14762      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14763      hardcode_libdir_separator_F77=':'
14764      link_all_deplibs_F77=yes
14765      export_dynamic_flag_spec_F77='${wl}-Bexport'
14766      runpath_var='LD_RUN_PATH'
14767
14768      if test "$GCC" = yes; then
14769	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14770	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14771      else
14772	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14773	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14774      fi
14775      ;;
14776
14777    uts4*)
14778      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14779      hardcode_libdir_flag_spec_F77='-L$libdir'
14780      hardcode_shlibpath_var_F77=no
14781      ;;
14782
14783    *)
14784      ld_shlibs_F77=no
14785      ;;
14786    esac
14787  fi
14788
14789echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14790echo "${ECHO_T}$ld_shlibs_F77" >&6
14791test "$ld_shlibs_F77" = no && can_build_shared=no
14792
14793#
14794# Do we need to explicitly link libc?
14795#
14796case "x$archive_cmds_need_lc_F77" in
14797x|xyes)
14798  # Assume -lc should be added
14799  archive_cmds_need_lc_F77=yes
14800
14801  if test "$enable_shared" = yes && test "$GCC" = yes; then
14802    case $archive_cmds_F77 in
14803    *'~'*)
14804      # FIXME: we may have to deal with multi-command sequences.
14805      ;;
14806    '$CC '*)
14807      # Test whether the compiler implicitly links with -lc since on some
14808      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14809      # to ld, don't add -lc before -lgcc.
14810      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14811echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14812      $rm conftest*
14813      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14814
14815      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14816  (eval $ac_compile) 2>&5
14817  ac_status=$?
14818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819  (exit $ac_status); } 2>conftest.err; then
14820        soname=conftest
14821        lib=conftest
14822        libobjs=conftest.$ac_objext
14823        deplibs=
14824        wl=$lt_prog_compiler_wl_F77
14825	pic_flag=$lt_prog_compiler_pic_F77
14826        compiler_flags=-v
14827        linker_flags=-v
14828        verstring=
14829        output_objdir=.
14830        libname=conftest
14831        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14832        allow_undefined_flag_F77=
14833        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14834  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14835  ac_status=$?
14836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837  (exit $ac_status); }
14838        then
14839	  archive_cmds_need_lc_F77=no
14840        else
14841	  archive_cmds_need_lc_F77=yes
14842        fi
14843        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14844      else
14845        cat conftest.err 1>&5
14846      fi
14847      $rm conftest*
14848      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14849echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14850      ;;
14851    esac
14852  fi
14853  ;;
14854esac
14855
14856echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14857echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14858library_names_spec=
14859libname_spec='lib$name'
14860soname_spec=
14861shrext_cmds=".so"
14862postinstall_cmds=
14863postuninstall_cmds=
14864finish_cmds=
14865finish_eval=
14866shlibpath_var=
14867shlibpath_overrides_runpath=unknown
14868version_type=none
14869dynamic_linker="$host_os ld.so"
14870sys_lib_dlsearch_path_spec="/lib /usr/lib"
14871if test "$GCC" = yes; then
14872  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14873  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14874    # if the path contains ";" then we assume it to be the separator
14875    # otherwise default to the standard path separator (i.e. ":") - it is
14876    # assumed that no part of a normal pathname contains ";" but that should
14877    # okay in the real world where ";" in dirpaths is itself problematic.
14878    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14879  else
14880    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14881  fi
14882else
14883  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14884fi
14885need_lib_prefix=unknown
14886hardcode_into_libs=no
14887
14888# when you set need_version to no, make sure it does not cause -set_version
14889# flags to be left without arguments
14890need_version=unknown
14891
14892case $host_os in
14893aix3*)
14894  version_type=linux
14895  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14896  shlibpath_var=LIBPATH
14897
14898  # AIX 3 has no versioning support, so we append a major version to the name.
14899  soname_spec='${libname}${release}${shared_ext}$major'
14900  ;;
14901
14902aix4* | aix5*)
14903  version_type=linux
14904  need_lib_prefix=no
14905  need_version=no
14906  hardcode_into_libs=yes
14907  if test "$host_cpu" = ia64; then
14908    # AIX 5 supports IA64
14909    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14910    shlibpath_var=LD_LIBRARY_PATH
14911  else
14912    # With GCC up to 2.95.x, collect2 would create an import file
14913    # for dependence libraries.  The import file would start with
14914    # the line `#! .'.  This would cause the generated library to
14915    # depend on `.', always an invalid library.  This was fixed in
14916    # development snapshots of GCC prior to 3.0.
14917    case $host_os in
14918      aix4 | aix4.[01] | aix4.[01].*)
14919      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14920	   echo ' yes '
14921	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14922	:
14923      else
14924	can_build_shared=no
14925      fi
14926      ;;
14927    esac
14928    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14929    # soname into executable. Probably we can add versioning support to
14930    # collect2, so additional links can be useful in future.
14931    if test "$aix_use_runtimelinking" = yes; then
14932      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14933      # instead of lib<name>.a to let people know that these are not
14934      # typical AIX shared libraries.
14935      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14936    else
14937      # We preserve .a as extension for shared libraries through AIX4.2
14938      # and later when we are not doing run time linking.
14939      library_names_spec='${libname}${release}.a $libname.a'
14940      soname_spec='${libname}${release}${shared_ext}$major'
14941    fi
14942    shlibpath_var=LIBPATH
14943  fi
14944  ;;
14945
14946amigaos*)
14947  library_names_spec='$libname.ixlibrary $libname.a'
14948  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14949  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'
14950  ;;
14951
14952beos*)
14953  library_names_spec='${libname}${shared_ext}'
14954  dynamic_linker="$host_os ld.so"
14955  shlibpath_var=LIBRARY_PATH
14956  ;;
14957
14958bsdi[45]*)
14959  version_type=linux
14960  need_version=no
14961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14962  soname_spec='${libname}${release}${shared_ext}$major'
14963  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14964  shlibpath_var=LD_LIBRARY_PATH
14965  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14966  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14967  # the default ld.so.conf also contains /usr/contrib/lib and
14968  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14969  # libtool to hard-code these into programs
14970  ;;
14971
14972cygwin* | mingw* | pw32*)
14973  version_type=windows
14974  shrext_cmds=".dll"
14975  need_version=no
14976  need_lib_prefix=no
14977
14978  case $GCC,$host_os in
14979  yes,cygwin* | yes,mingw* | yes,pw32*)
14980    library_names_spec='$libname.dll.a'
14981    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14982    postinstall_cmds='base_file=`basename \${file}`~
14983      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14984      dldir=$destdir/`dirname \$dlpath`~
14985      test -d \$dldir || mkdir -p \$dldir~
14986      $install_prog $dir/$dlname \$dldir/$dlname~
14987      chmod a+x \$dldir/$dlname'
14988    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14989      dlpath=$dir/\$dldll~
14990       $rm \$dlpath'
14991    shlibpath_overrides_runpath=yes
14992
14993    case $host_os in
14994    cygwin*)
14995      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14996      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14997      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14998      ;;
14999    mingw*)
15000      # MinGW DLLs use traditional 'lib' prefix
15001      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15002      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15003      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15004        # It is most probably a Windows format PATH printed by
15005        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15006        # path with ; separators, and with drive letters. We can handle the
15007        # drive letters (cygwin fileutils understands them), so leave them,
15008        # especially as we might pass files found there to a mingw objdump,
15009        # which wouldn't understand a cygwinified path. Ahh.
15010        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15011      else
15012        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15013      fi
15014      ;;
15015    pw32*)
15016      # pw32 DLLs use 'pw' prefix rather than 'lib'
15017      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15018      ;;
15019    esac
15020    ;;
15021
15022  *)
15023    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15024    ;;
15025  esac
15026  dynamic_linker='Win32 ld.exe'
15027  # FIXME: first we should search . and the directory the executable is in
15028  shlibpath_var=PATH
15029  ;;
15030
15031darwin* | rhapsody*)
15032  dynamic_linker="$host_os dyld"
15033  version_type=darwin
15034  need_lib_prefix=no
15035  need_version=no
15036  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15037  soname_spec='${libname}${release}${major}$shared_ext'
15038  shlibpath_overrides_runpath=yes
15039  shlibpath_var=DYLD_LIBRARY_PATH
15040  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15041  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15042  if test "$GCC" = yes; then
15043    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"`
15044  else
15045    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15046  fi
15047  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15048  ;;
15049
15050dgux*)
15051  version_type=linux
15052  need_lib_prefix=no
15053  need_version=no
15054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15055  soname_spec='${libname}${release}${shared_ext}$major'
15056  shlibpath_var=LD_LIBRARY_PATH
15057  ;;
15058
15059freebsd1*)
15060  dynamic_linker=no
15061  ;;
15062
15063kfreebsd*-gnu)
15064  version_type=linux
15065  need_lib_prefix=no
15066  need_version=no
15067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15068  soname_spec='${libname}${release}${shared_ext}$major'
15069  shlibpath_var=LD_LIBRARY_PATH
15070  shlibpath_overrides_runpath=no
15071  hardcode_into_libs=yes
15072  dynamic_linker='GNU ld.so'
15073  ;;
15074
15075freebsd* | dragonfly*)
15076  # DragonFly does not have aout.  When/if they implement a new
15077  # versioning mechanism, adjust this.
15078  if test -x /usr/bin/objformat; then
15079    objformat=`/usr/bin/objformat`
15080  else
15081    case $host_os in
15082    freebsd[123]*) objformat=aout ;;
15083    *) objformat=elf ;;
15084    esac
15085  fi
15086  version_type=freebsd-$objformat
15087  case $version_type in
15088    freebsd-elf*)
15089      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15090      need_version=no
15091      need_lib_prefix=no
15092      ;;
15093    freebsd-*)
15094      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15095      need_version=yes
15096      ;;
15097  esac
15098  shlibpath_var=LD_LIBRARY_PATH
15099  case $host_os in
15100  freebsd2*)
15101    shlibpath_overrides_runpath=yes
15102    ;;
15103  freebsd3.[01]* | freebsdelf3.[01]*)
15104    shlibpath_overrides_runpath=yes
15105    hardcode_into_libs=yes
15106    ;;
15107  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15108  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15109    shlibpath_overrides_runpath=no
15110    hardcode_into_libs=yes
15111    ;;
15112  freebsd*) # from 4.6 on
15113    shlibpath_overrides_runpath=yes
15114    hardcode_into_libs=yes
15115    ;;
15116  esac
15117  ;;
15118
15119gnu*)
15120  version_type=linux
15121  need_lib_prefix=no
15122  need_version=no
15123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15124  soname_spec='${libname}${release}${shared_ext}$major'
15125  shlibpath_var=LD_LIBRARY_PATH
15126  hardcode_into_libs=yes
15127  ;;
15128
15129hpux9* | hpux10* | hpux11*)
15130  # Give a soname corresponding to the major version so that dld.sl refuses to
15131  # link against other versions.
15132  version_type=sunos
15133  need_lib_prefix=no
15134  need_version=no
15135  case $host_cpu in
15136  ia64*)
15137    shrext_cmds='.so'
15138    hardcode_into_libs=yes
15139    dynamic_linker="$host_os dld.so"
15140    shlibpath_var=LD_LIBRARY_PATH
15141    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15142    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15143    soname_spec='${libname}${release}${shared_ext}$major'
15144    if test "X$HPUX_IA64_MODE" = X32; then
15145      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15146    else
15147      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15148    fi
15149    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15150    ;;
15151   hppa*64*)
15152     shrext_cmds='.sl'
15153     hardcode_into_libs=yes
15154     dynamic_linker="$host_os dld.sl"
15155     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15156     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15158     soname_spec='${libname}${release}${shared_ext}$major'
15159     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15160     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15161     ;;
15162   *)
15163    shrext_cmds='.sl'
15164    dynamic_linker="$host_os dld.sl"
15165    shlibpath_var=SHLIB_PATH
15166    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15167    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15168    soname_spec='${libname}${release}${shared_ext}$major'
15169    ;;
15170  esac
15171  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15172  postinstall_cmds='chmod 555 $lib'
15173  ;;
15174
15175interix3*)
15176  version_type=linux
15177  need_lib_prefix=no
15178  need_version=no
15179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15180  soname_spec='${libname}${release}${shared_ext}$major'
15181  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15182  shlibpath_var=LD_LIBRARY_PATH
15183  shlibpath_overrides_runpath=no
15184  hardcode_into_libs=yes
15185  ;;
15186
15187irix5* | irix6* | nonstopux*)
15188  case $host_os in
15189    nonstopux*) version_type=nonstopux ;;
15190    *)
15191	if test "$lt_cv_prog_gnu_ld" = yes; then
15192		version_type=linux
15193	else
15194		version_type=irix
15195	fi ;;
15196  esac
15197  need_lib_prefix=no
15198  need_version=no
15199  soname_spec='${libname}${release}${shared_ext}$major'
15200  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15201  case $host_os in
15202  irix5* | nonstopux*)
15203    libsuff= shlibsuff=
15204    ;;
15205  *)
15206    case $LD in # libtool.m4 will add one of these switches to LD
15207    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15208      libsuff= shlibsuff= libmagic=32-bit;;
15209    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15210      libsuff=32 shlibsuff=N32 libmagic=N32;;
15211    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15212      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15213    *) libsuff= shlibsuff= libmagic=never-match;;
15214    esac
15215    ;;
15216  esac
15217  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15218  shlibpath_overrides_runpath=no
15219  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15220  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15221  hardcode_into_libs=yes
15222  ;;
15223
15224# No shared lib support for Linux oldld, aout, or coff.
15225linux*oldld* | linux*aout* | linux*coff*)
15226  dynamic_linker=no
15227  ;;
15228
15229# This must be Linux ELF.
15230linux*)
15231  version_type=linux
15232  need_lib_prefix=no
15233  need_version=no
15234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15235  soname_spec='${libname}${release}${shared_ext}$major'
15236  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15237  shlibpath_var=LD_LIBRARY_PATH
15238  shlibpath_overrides_runpath=no
15239  # This implies no fast_install, which is unacceptable.
15240  # Some rework will be needed to allow for fast_install
15241  # before this can be enabled.
15242  hardcode_into_libs=yes
15243
15244  # find out which ABI we are using
15245  libsuff=
15246  case "$host_cpu" in
15247  x86_64*|s390x*|powerpc64*)
15248    echo '#line 15248 "configure"' > conftest.$ac_ext
15249    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15250  (eval $ac_compile) 2>&5
15251  ac_status=$?
15252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253  (exit $ac_status); }; then
15254      case `/usr/bin/file conftest.$ac_objext` in
15255      *64-bit*)
15256        libsuff=64
15257        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15258        ;;
15259      esac
15260    fi
15261    rm -rf conftest*
15262    ;;
15263  esac
15264
15265  # Append ld.so.conf contents to the search path
15266  if test -f /etc/ld.so.conf; then
15267    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' ' '`
15268    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15269  fi
15270
15271  # We used to test for /lib/ld.so.1 and disable shared libraries on
15272  # powerpc, because MkLinux only supported shared libraries with the
15273  # GNU dynamic linker.  Since this was broken with cross compilers,
15274  # most powerpc-linux boxes support dynamic linking these days and
15275  # people can always --disable-shared, the test was removed, and we
15276  # assume the GNU/Linux dynamic linker is in use.
15277  dynamic_linker='GNU/Linux ld.so'
15278  ;;
15279
15280knetbsd*-gnu)
15281  version_type=linux
15282  need_lib_prefix=no
15283  need_version=no
15284  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15285  soname_spec='${libname}${release}${shared_ext}$major'
15286  shlibpath_var=LD_LIBRARY_PATH
15287  shlibpath_overrides_runpath=no
15288  hardcode_into_libs=yes
15289  dynamic_linker='GNU ld.so'
15290  ;;
15291
15292netbsd*)
15293  version_type=sunos
15294  need_lib_prefix=no
15295  need_version=no
15296  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15297    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15298    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15299    dynamic_linker='NetBSD (a.out) ld.so'
15300  else
15301    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15302    soname_spec='${libname}${release}${shared_ext}$major'
15303    dynamic_linker='NetBSD ld.elf_so'
15304  fi
15305  shlibpath_var=LD_LIBRARY_PATH
15306  shlibpath_overrides_runpath=yes
15307  hardcode_into_libs=yes
15308  ;;
15309
15310newsos6)
15311  version_type=linux
15312  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15313  shlibpath_var=LD_LIBRARY_PATH
15314  shlibpath_overrides_runpath=yes
15315  ;;
15316
15317nto-qnx*)
15318  version_type=linux
15319  need_lib_prefix=no
15320  need_version=no
15321  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15322  soname_spec='${libname}${release}${shared_ext}$major'
15323  shlibpath_var=LD_LIBRARY_PATH
15324  shlibpath_overrides_runpath=yes
15325  ;;
15326
15327openbsd*)
15328  version_type=sunos
15329  sys_lib_dlsearch_path_spec="/usr/lib"
15330  need_lib_prefix=no
15331  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15332  case $host_os in
15333    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15334    *)                         need_version=no  ;;
15335  esac
15336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15337  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15338  shlibpath_var=LD_LIBRARY_PATH
15339  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15340    case $host_os in
15341      openbsd2.[89] | openbsd2.[89].*)
15342	shlibpath_overrides_runpath=no
15343	;;
15344      *)
15345	shlibpath_overrides_runpath=yes
15346	;;
15347      esac
15348  else
15349    shlibpath_overrides_runpath=yes
15350  fi
15351  ;;
15352
15353os2*)
15354  libname_spec='$name'
15355  shrext_cmds=".dll"
15356  need_lib_prefix=no
15357  library_names_spec='$libname${shared_ext} $libname.a'
15358  dynamic_linker='OS/2 ld.exe'
15359  shlibpath_var=LIBPATH
15360  ;;
15361
15362osf3* | osf4* | osf5*)
15363  version_type=osf
15364  need_lib_prefix=no
15365  need_version=no
15366  soname_spec='${libname}${release}${shared_ext}$major'
15367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15368  shlibpath_var=LD_LIBRARY_PATH
15369  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15370  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15371  ;;
15372
15373solaris*)
15374  version_type=linux
15375  need_lib_prefix=no
15376  need_version=no
15377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378  soname_spec='${libname}${release}${shared_ext}$major'
15379  shlibpath_var=LD_LIBRARY_PATH
15380  shlibpath_overrides_runpath=yes
15381  hardcode_into_libs=yes
15382  # ldd complains unless libraries are executable
15383  postinstall_cmds='chmod +x $lib'
15384  ;;
15385
15386sunos4*)
15387  version_type=sunos
15388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15389  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15390  shlibpath_var=LD_LIBRARY_PATH
15391  shlibpath_overrides_runpath=yes
15392  if test "$with_gnu_ld" = yes; then
15393    need_lib_prefix=no
15394  fi
15395  need_version=yes
15396  ;;
15397
15398sysv4 | sysv4.3*)
15399  version_type=linux
15400  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401  soname_spec='${libname}${release}${shared_ext}$major'
15402  shlibpath_var=LD_LIBRARY_PATH
15403  case $host_vendor in
15404    sni)
15405      shlibpath_overrides_runpath=no
15406      need_lib_prefix=no
15407      export_dynamic_flag_spec='${wl}-Blargedynsym'
15408      runpath_var=LD_RUN_PATH
15409      ;;
15410    siemens)
15411      need_lib_prefix=no
15412      ;;
15413    motorola)
15414      need_lib_prefix=no
15415      need_version=no
15416      shlibpath_overrides_runpath=no
15417      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15418      ;;
15419  esac
15420  ;;
15421
15422sysv4*MP*)
15423  if test -d /usr/nec ;then
15424    version_type=linux
15425    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15426    soname_spec='$libname${shared_ext}.$major'
15427    shlibpath_var=LD_LIBRARY_PATH
15428  fi
15429  ;;
15430
15431sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15432  version_type=freebsd-elf
15433  need_lib_prefix=no
15434  need_version=no
15435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15436  soname_spec='${libname}${release}${shared_ext}$major'
15437  shlibpath_var=LD_LIBRARY_PATH
15438  hardcode_into_libs=yes
15439  if test "$with_gnu_ld" = yes; then
15440    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15441    shlibpath_overrides_runpath=no
15442  else
15443    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15444    shlibpath_overrides_runpath=yes
15445    case $host_os in
15446      sco3.2v5*)
15447        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15448	;;
15449    esac
15450  fi
15451  sys_lib_dlsearch_path_spec='/usr/lib'
15452  ;;
15453
15454uts4*)
15455  version_type=linux
15456  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15457  soname_spec='${libname}${release}${shared_ext}$major'
15458  shlibpath_var=LD_LIBRARY_PATH
15459  ;;
15460
15461*)
15462  dynamic_linker=no
15463  ;;
15464esac
15465echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15466echo "${ECHO_T}$dynamic_linker" >&6
15467test "$dynamic_linker" = no && can_build_shared=no
15468
15469variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15470if test "$GCC" = yes; then
15471  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15472fi
15473
15474echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15475echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15476hardcode_action_F77=
15477if test -n "$hardcode_libdir_flag_spec_F77" || \
15478   test -n "$runpath_var_F77" || \
15479   test "X$hardcode_automatic_F77" = "Xyes" ; then
15480
15481  # We can hardcode non-existant directories.
15482  if test "$hardcode_direct_F77" != no &&
15483     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15484     # have to relink, otherwise we might link with an installed library
15485     # when we should be linking with a yet-to-be-installed one
15486     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15487     test "$hardcode_minus_L_F77" != no; then
15488    # Linking always hardcodes the temporary library directory.
15489    hardcode_action_F77=relink
15490  else
15491    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15492    hardcode_action_F77=immediate
15493  fi
15494else
15495  # We cannot hardcode anything, or else we can only hardcode existing
15496  # directories.
15497  hardcode_action_F77=unsupported
15498fi
15499echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15500echo "${ECHO_T}$hardcode_action_F77" >&6
15501
15502if test "$hardcode_action_F77" = relink; then
15503  # Fast installation is not supported
15504  enable_fast_install=no
15505elif test "$shlibpath_overrides_runpath" = yes ||
15506     test "$enable_shared" = no; then
15507  # Fast installation is not necessary
15508  enable_fast_install=needless
15509fi
15510
15511
15512# The else clause should only fire when bootstrapping the
15513# libtool distribution, otherwise you forgot to ship ltmain.sh
15514# with your package, and you will get complaints that there are
15515# no rules to generate ltmain.sh.
15516if test -f "$ltmain"; then
15517  # See if we are running on zsh, and set the options which allow our commands through
15518  # without removal of \ escapes.
15519  if test -n "${ZSH_VERSION+set}" ; then
15520    setopt NO_GLOB_SUBST
15521  fi
15522  # Now quote all the things that may contain metacharacters while being
15523  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15524  # variables and quote the copies for generation of the libtool script.
15525  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15526    SED SHELL STRIP \
15527    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15528    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15529    deplibs_check_method reload_flag reload_cmds need_locks \
15530    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15531    lt_cv_sys_global_symbol_to_c_name_address \
15532    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15533    old_postinstall_cmds old_postuninstall_cmds \
15534    compiler_F77 \
15535    CC_F77 \
15536    LD_F77 \
15537    lt_prog_compiler_wl_F77 \
15538    lt_prog_compiler_pic_F77 \
15539    lt_prog_compiler_static_F77 \
15540    lt_prog_compiler_no_builtin_flag_F77 \
15541    export_dynamic_flag_spec_F77 \
15542    thread_safe_flag_spec_F77 \
15543    whole_archive_flag_spec_F77 \
15544    enable_shared_with_static_runtimes_F77 \
15545    old_archive_cmds_F77 \
15546    old_archive_from_new_cmds_F77 \
15547    predep_objects_F77 \
15548    postdep_objects_F77 \
15549    predeps_F77 \
15550    postdeps_F77 \
15551    compiler_lib_search_path_F77 \
15552    archive_cmds_F77 \
15553    archive_expsym_cmds_F77 \
15554    postinstall_cmds_F77 \
15555    postuninstall_cmds_F77 \
15556    old_archive_from_expsyms_cmds_F77 \
15557    allow_undefined_flag_F77 \
15558    no_undefined_flag_F77 \
15559    export_symbols_cmds_F77 \
15560    hardcode_libdir_flag_spec_F77 \
15561    hardcode_libdir_flag_spec_ld_F77 \
15562    hardcode_libdir_separator_F77 \
15563    hardcode_automatic_F77 \
15564    module_cmds_F77 \
15565    module_expsym_cmds_F77 \
15566    lt_cv_prog_compiler_c_o_F77 \
15567    exclude_expsyms_F77 \
15568    include_expsyms_F77; do
15569
15570    case $var in
15571    old_archive_cmds_F77 | \
15572    old_archive_from_new_cmds_F77 | \
15573    archive_cmds_F77 | \
15574    archive_expsym_cmds_F77 | \
15575    module_cmds_F77 | \
15576    module_expsym_cmds_F77 | \
15577    old_archive_from_expsyms_cmds_F77 | \
15578    export_symbols_cmds_F77 | \
15579    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15580    postinstall_cmds | postuninstall_cmds | \
15581    old_postinstall_cmds | old_postuninstall_cmds | \
15582    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15583      # Double-quote double-evaled strings.
15584      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15585      ;;
15586    *)
15587      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15588      ;;
15589    esac
15590  done
15591
15592  case $lt_echo in
15593  *'\$0 --fallback-echo"')
15594    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15595    ;;
15596  esac
15597
15598cfgfile="$ofile"
15599
15600  cat <<__EOF__ >> "$cfgfile"
15601# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15602
15603# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15604
15605# Shell to use when invoking shell scripts.
15606SHELL=$lt_SHELL
15607
15608# Whether or not to build shared libraries.
15609build_libtool_libs=$enable_shared
15610
15611# Whether or not to build static libraries.
15612build_old_libs=$enable_static
15613
15614# Whether or not to add -lc for building shared libraries.
15615build_libtool_need_lc=$archive_cmds_need_lc_F77
15616
15617# Whether or not to disallow shared libs when runtime libs are static
15618allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15619
15620# Whether or not to optimize for fast installation.
15621fast_install=$enable_fast_install
15622
15623# The host system.
15624host_alias=$host_alias
15625host=$host
15626host_os=$host_os
15627
15628# The build system.
15629build_alias=$build_alias
15630build=$build
15631build_os=$build_os
15632
15633# An echo program that does not interpret backslashes.
15634echo=$lt_echo
15635
15636# The archiver.
15637AR=$lt_AR
15638AR_FLAGS=$lt_AR_FLAGS
15639
15640# A C compiler.
15641LTCC=$lt_LTCC
15642
15643# LTCC compiler flags.
15644LTCFLAGS=$lt_LTCFLAGS
15645
15646# A language-specific compiler.
15647CC=$lt_compiler_F77
15648
15649# Is the compiler the GNU C compiler?
15650with_gcc=$GCC_F77
15651
15652# An ERE matcher.
15653EGREP=$lt_EGREP
15654
15655# The linker used to build libraries.
15656LD=$lt_LD_F77
15657
15658# Whether we need hard or soft links.
15659LN_S=$lt_LN_S
15660
15661# A BSD-compatible nm program.
15662NM=$lt_NM
15663
15664# A symbol stripping program
15665STRIP=$lt_STRIP
15666
15667# Used to examine libraries when file_magic_cmd begins "file"
15668MAGIC_CMD=$MAGIC_CMD
15669
15670# Used on cygwin: DLL creation program.
15671DLLTOOL="$DLLTOOL"
15672
15673# Used on cygwin: object dumper.
15674OBJDUMP="$OBJDUMP"
15675
15676# Used on cygwin: assembler.
15677AS="$AS"
15678
15679# The name of the directory that contains temporary libtool files.
15680objdir=$objdir
15681
15682# How to create reloadable object files.
15683reload_flag=$lt_reload_flag
15684reload_cmds=$lt_reload_cmds
15685
15686# How to pass a linker flag through the compiler.
15687wl=$lt_lt_prog_compiler_wl_F77
15688
15689# Object file suffix (normally "o").
15690objext="$ac_objext"
15691
15692# Old archive suffix (normally "a").
15693libext="$libext"
15694
15695# Shared library suffix (normally ".so").
15696shrext_cmds='$shrext_cmds'
15697
15698# Executable file suffix (normally "").
15699exeext="$exeext"
15700
15701# Additional compiler flags for building library objects.
15702pic_flag=$lt_lt_prog_compiler_pic_F77
15703pic_mode=$pic_mode
15704
15705# What is the maximum length of a command?
15706max_cmd_len=$lt_cv_sys_max_cmd_len
15707
15708# Does compiler simultaneously support -c and -o options?
15709compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15710
15711# Must we lock files when doing compilation?
15712need_locks=$lt_need_locks
15713
15714# Do we need the lib prefix for modules?
15715need_lib_prefix=$need_lib_prefix
15716
15717# Do we need a version for libraries?
15718need_version=$need_version
15719
15720# Whether dlopen is supported.
15721dlopen_support=$enable_dlopen
15722
15723# Whether dlopen of programs is supported.
15724dlopen_self=$enable_dlopen_self
15725
15726# Whether dlopen of statically linked programs is supported.
15727dlopen_self_static=$enable_dlopen_self_static
15728
15729# Compiler flag to prevent dynamic linking.
15730link_static_flag=$lt_lt_prog_compiler_static_F77
15731
15732# Compiler flag to turn off builtin functions.
15733no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15734
15735# Compiler flag to allow reflexive dlopens.
15736export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15737
15738# Compiler flag to generate shared objects directly from archives.
15739whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15740
15741# Compiler flag to generate thread-safe objects.
15742thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15743
15744# Library versioning type.
15745version_type=$version_type
15746
15747# Format of library name prefix.
15748libname_spec=$lt_libname_spec
15749
15750# List of archive names.  First name is the real one, the rest are links.
15751# The last name is the one that the linker finds with -lNAME.
15752library_names_spec=$lt_library_names_spec
15753
15754# The coded name of the library, if different from the real name.
15755soname_spec=$lt_soname_spec
15756
15757# Commands used to build and install an old-style archive.
15758RANLIB=$lt_RANLIB
15759old_archive_cmds=$lt_old_archive_cmds_F77
15760old_postinstall_cmds=$lt_old_postinstall_cmds
15761old_postuninstall_cmds=$lt_old_postuninstall_cmds
15762
15763# Create an old-style archive from a shared archive.
15764old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15765
15766# Create a temporary old-style archive to link instead of a shared archive.
15767old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15768
15769# Commands used to build and install a shared archive.
15770archive_cmds=$lt_archive_cmds_F77
15771archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15772postinstall_cmds=$lt_postinstall_cmds
15773postuninstall_cmds=$lt_postuninstall_cmds
15774
15775# Commands used to build a loadable module (assumed same as above if empty)
15776module_cmds=$lt_module_cmds_F77
15777module_expsym_cmds=$lt_module_expsym_cmds_F77
15778
15779# Commands to strip libraries.
15780old_striplib=$lt_old_striplib
15781striplib=$lt_striplib
15782
15783# Dependencies to place before the objects being linked to create a
15784# shared library.
15785predep_objects=$lt_predep_objects_F77
15786
15787# Dependencies to place after the objects being linked to create a
15788# shared library.
15789postdep_objects=$lt_postdep_objects_F77
15790
15791# Dependencies to place before the objects being linked to create a
15792# shared library.
15793predeps=$lt_predeps_F77
15794
15795# Dependencies to place after the objects being linked to create a
15796# shared library.
15797postdeps=$lt_postdeps_F77
15798
15799# The library search path used internally by the compiler when linking
15800# a shared library.
15801compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15802
15803# Method to check whether dependent libraries are shared objects.
15804deplibs_check_method=$lt_deplibs_check_method
15805
15806# Command to use when deplibs_check_method == file_magic.
15807file_magic_cmd=$lt_file_magic_cmd
15808
15809# Flag that allows shared libraries with undefined symbols to be built.
15810allow_undefined_flag=$lt_allow_undefined_flag_F77
15811
15812# Flag that forces no undefined symbols.
15813no_undefined_flag=$lt_no_undefined_flag_F77
15814
15815# Commands used to finish a libtool library installation in a directory.
15816finish_cmds=$lt_finish_cmds
15817
15818# Same as above, but a single script fragment to be evaled but not shown.
15819finish_eval=$lt_finish_eval
15820
15821# Take the output of nm and produce a listing of raw symbols and C names.
15822global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15823
15824# Transform the output of nm in a proper C declaration
15825global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15826
15827# Transform the output of nm in a C name address pair
15828global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15829
15830# This is the shared library runtime path variable.
15831runpath_var=$runpath_var
15832
15833# This is the shared library path variable.
15834shlibpath_var=$shlibpath_var
15835
15836# Is shlibpath searched before the hard-coded library search path?
15837shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15838
15839# How to hardcode a shared library path into an executable.
15840hardcode_action=$hardcode_action_F77
15841
15842# Whether we should hardcode library paths into libraries.
15843hardcode_into_libs=$hardcode_into_libs
15844
15845# Flag to hardcode \$libdir into a binary during linking.
15846# This must work even if \$libdir does not exist.
15847hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15848
15849# If ld is used when linking, flag to hardcode \$libdir into
15850# a binary during linking. This must work even if \$libdir does
15851# not exist.
15852hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15853
15854# Whether we need a single -rpath flag with a separated argument.
15855hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15856
15857# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15858# resulting binary.
15859hardcode_direct=$hardcode_direct_F77
15860
15861# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15862# resulting binary.
15863hardcode_minus_L=$hardcode_minus_L_F77
15864
15865# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15866# the resulting binary.
15867hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15868
15869# Set to yes if building a shared library automatically hardcodes DIR into the library
15870# and all subsequent libraries and executables linked against it.
15871hardcode_automatic=$hardcode_automatic_F77
15872
15873# Variables whose values should be saved in libtool wrapper scripts and
15874# restored at relink time.
15875variables_saved_for_relink="$variables_saved_for_relink"
15876
15877# Whether libtool must link a program against all its dependency libraries.
15878link_all_deplibs=$link_all_deplibs_F77
15879
15880# Compile-time system search path for libraries
15881sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15882
15883# Run-time system search path for libraries
15884sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15885
15886# Fix the shell variable \$srcfile for the compiler.
15887fix_srcfile_path="$fix_srcfile_path_F77"
15888
15889# Set to yes if exported symbols are required.
15890always_export_symbols=$always_export_symbols_F77
15891
15892# The commands to list exported symbols.
15893export_symbols_cmds=$lt_export_symbols_cmds_F77
15894
15895# The commands to extract the exported symbol list from a shared archive.
15896extract_expsyms_cmds=$lt_extract_expsyms_cmds
15897
15898# Symbols that should not be listed in the preloaded symbols.
15899exclude_expsyms=$lt_exclude_expsyms_F77
15900
15901# Symbols that must always be exported.
15902include_expsyms=$lt_include_expsyms_F77
15903
15904# ### END LIBTOOL TAG CONFIG: $tagname
15905
15906__EOF__
15907
15908
15909else
15910  # If there is no Makefile yet, we rely on a make rule to execute
15911  # `config.status --recheck' to rerun these tests and create the
15912  # libtool script then.
15913  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15914  if test -f "$ltmain_in"; then
15915    test -f Makefile && make "$ltmain"
15916  fi
15917fi
15918
15919
15920ac_ext=c
15921ac_cpp='$CPP $CPPFLAGS'
15922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15924ac_compiler_gnu=$ac_cv_c_compiler_gnu
15925
15926CC="$lt_save_CC"
15927
15928	else
15929	  tagname=""
15930	fi
15931	;;
15932
15933      GCJ)
15934	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15935
15936
15937
15938# Source file extension for Java test sources.
15939ac_ext=java
15940
15941# Object file extension for compiled Java test sources.
15942objext=o
15943objext_GCJ=$objext
15944
15945# Code to be used in simple compile tests
15946lt_simple_compile_test_code="class foo {}\n"
15947
15948# Code to be used in simple link tests
15949lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15950
15951# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15952
15953# If no C compiler was specified, use CC.
15954LTCC=${LTCC-"$CC"}
15955
15956# If no C compiler flags were specified, use CFLAGS.
15957LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15958
15959# Allow CC to be a program name with arguments.
15960compiler=$CC
15961
15962
15963# save warnings/boilerplate of simple test code
15964ac_outfile=conftest.$ac_objext
15965printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15966eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15967_lt_compiler_boilerplate=`cat conftest.err`
15968$rm conftest*
15969
15970ac_outfile=conftest.$ac_objext
15971printf "$lt_simple_link_test_code" >conftest.$ac_ext
15972eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15973_lt_linker_boilerplate=`cat conftest.err`
15974$rm conftest*
15975
15976
15977# Allow CC to be a program name with arguments.
15978lt_save_CC="$CC"
15979CC=${GCJ-"gcj"}
15980compiler=$CC
15981compiler_GCJ=$CC
15982for cc_temp in $compiler""; do
15983  case $cc_temp in
15984    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15985    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15986    \-*) ;;
15987    *) break;;
15988  esac
15989done
15990cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15991
15992
15993# GCJ did not exist at the time GCC didn't implicitly link libc in.
15994archive_cmds_need_lc_GCJ=no
15995
15996old_archive_cmds_GCJ=$old_archive_cmds
15997
15998
15999lt_prog_compiler_no_builtin_flag_GCJ=
16000
16001if test "$GCC" = yes; then
16002  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16003
16004
16005echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16006echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16007if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16008  echo $ECHO_N "(cached) $ECHO_C" >&6
16009else
16010  lt_cv_prog_compiler_rtti_exceptions=no
16011  ac_outfile=conftest.$ac_objext
16012   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16013   lt_compiler_flag="-fno-rtti -fno-exceptions"
16014   # Insert the option either (1) after the last *FLAGS variable, or
16015   # (2) before a word containing "conftest.", or (3) at the end.
16016   # Note that $ac_compile itself does not contain backslashes and begins
16017   # with a dollar sign (not a hyphen), so the echo should work correctly.
16018   # The option is referenced via a variable to avoid confusing sed.
16019   lt_compile=`echo "$ac_compile" | $SED \
16020   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16021   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16022   -e 's:$: $lt_compiler_flag:'`
16023   (eval echo "\"\$as_me:16023: $lt_compile\"" >&5)
16024   (eval "$lt_compile" 2>conftest.err)
16025   ac_status=$?
16026   cat conftest.err >&5
16027   echo "$as_me:16027: \$? = $ac_status" >&5
16028   if (exit $ac_status) && test -s "$ac_outfile"; then
16029     # The compiler can only warn and ignore the option if not recognized
16030     # So say no if there are warnings other than the usual output.
16031     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16032     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16033     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16034       lt_cv_prog_compiler_rtti_exceptions=yes
16035     fi
16036   fi
16037   $rm conftest*
16038
16039fi
16040echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16041echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16042
16043if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16044    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16045else
16046    :
16047fi
16048
16049fi
16050
16051lt_prog_compiler_wl_GCJ=
16052lt_prog_compiler_pic_GCJ=
16053lt_prog_compiler_static_GCJ=
16054
16055echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16056echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16057
16058  if test "$GCC" = yes; then
16059    lt_prog_compiler_wl_GCJ='-Wl,'
16060    lt_prog_compiler_static_GCJ='-static'
16061
16062    case $host_os in
16063      aix*)
16064      # All AIX code is PIC.
16065      if test "$host_cpu" = ia64; then
16066	# AIX 5 now supports IA64 processor
16067	lt_prog_compiler_static_GCJ='-Bstatic'
16068      fi
16069      ;;
16070
16071    amigaos*)
16072      # FIXME: we need at least 68020 code to build shared libraries, but
16073      # adding the `-m68020' flag to GCC prevents building anything better,
16074      # like `-m68040'.
16075      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16076      ;;
16077
16078    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16079      # PIC is the default for these OSes.
16080      ;;
16081
16082    mingw* | pw32* | os2*)
16083      # This hack is so that the source file can tell whether it is being
16084      # built for inclusion in a dll (and should export symbols for example).
16085      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16086      ;;
16087
16088    darwin* | rhapsody*)
16089      # PIC is the default on this platform
16090      # Common symbols not allowed in MH_DYLIB files
16091      lt_prog_compiler_pic_GCJ='-fno-common'
16092      ;;
16093
16094    interix3*)
16095      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16096      # Instead, we relocate shared libraries at runtime.
16097      ;;
16098
16099    msdosdjgpp*)
16100      # Just because we use GCC doesn't mean we suddenly get shared libraries
16101      # on systems that don't support them.
16102      lt_prog_compiler_can_build_shared_GCJ=no
16103      enable_shared=no
16104      ;;
16105
16106    sysv4*MP*)
16107      if test -d /usr/nec; then
16108	lt_prog_compiler_pic_GCJ=-Kconform_pic
16109      fi
16110      ;;
16111
16112    hpux*)
16113      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16114      # not for PA HP-UX.
16115      case $host_cpu in
16116      hppa*64*|ia64*)
16117	# +Z the default
16118	;;
16119      *)
16120	lt_prog_compiler_pic_GCJ='-fPIC'
16121	;;
16122      esac
16123      ;;
16124
16125    *)
16126      lt_prog_compiler_pic_GCJ='-fPIC'
16127      ;;
16128    esac
16129  else
16130    # PORTME Check for flag to pass linker flags through the system compiler.
16131    case $host_os in
16132    aix*)
16133      lt_prog_compiler_wl_GCJ='-Wl,'
16134      if test "$host_cpu" = ia64; then
16135	# AIX 5 now supports IA64 processor
16136	lt_prog_compiler_static_GCJ='-Bstatic'
16137      else
16138	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16139      fi
16140      ;;
16141      darwin*)
16142        # PIC is the default on this platform
16143        # Common symbols not allowed in MH_DYLIB files
16144       case $cc_basename in
16145         xlc*)
16146         lt_prog_compiler_pic_GCJ='-qnocommon'
16147         lt_prog_compiler_wl_GCJ='-Wl,'
16148         ;;
16149       esac
16150       ;;
16151
16152    mingw* | pw32* | os2*)
16153      # This hack is so that the source file can tell whether it is being
16154      # built for inclusion in a dll (and should export symbols for example).
16155      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16156      ;;
16157
16158    hpux9* | hpux10* | hpux11*)
16159      lt_prog_compiler_wl_GCJ='-Wl,'
16160      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16161      # not for PA HP-UX.
16162      case $host_cpu in
16163      hppa*64*|ia64*)
16164	# +Z the default
16165	;;
16166      *)
16167	lt_prog_compiler_pic_GCJ='+Z'
16168	;;
16169      esac
16170      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16171      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16172      ;;
16173
16174    irix5* | irix6* | nonstopux*)
16175      lt_prog_compiler_wl_GCJ='-Wl,'
16176      # PIC (with -KPIC) is the default.
16177      lt_prog_compiler_static_GCJ='-non_shared'
16178      ;;
16179
16180    newsos6)
16181      lt_prog_compiler_pic_GCJ='-KPIC'
16182      lt_prog_compiler_static_GCJ='-Bstatic'
16183      ;;
16184
16185    linux*)
16186      case $cc_basename in
16187      icc* | ecc*)
16188	lt_prog_compiler_wl_GCJ='-Wl,'
16189	lt_prog_compiler_pic_GCJ='-KPIC'
16190	lt_prog_compiler_static_GCJ='-static'
16191        ;;
16192      pgcc* | pgf77* | pgf90* | pgf95*)
16193        # Portland Group compilers (*not* the Pentium gcc compiler,
16194	# which looks to be a dead project)
16195	lt_prog_compiler_wl_GCJ='-Wl,'
16196	lt_prog_compiler_pic_GCJ='-fpic'
16197	lt_prog_compiler_static_GCJ='-Bstatic'
16198        ;;
16199      ccc*)
16200        lt_prog_compiler_wl_GCJ='-Wl,'
16201        # All Alpha code is PIC.
16202        lt_prog_compiler_static_GCJ='-non_shared'
16203        ;;
16204      esac
16205      ;;
16206
16207    osf3* | osf4* | osf5*)
16208      lt_prog_compiler_wl_GCJ='-Wl,'
16209      # All OSF/1 code is PIC.
16210      lt_prog_compiler_static_GCJ='-non_shared'
16211      ;;
16212
16213    solaris*)
16214      lt_prog_compiler_pic_GCJ='-KPIC'
16215      lt_prog_compiler_static_GCJ='-Bstatic'
16216      case $cc_basename in
16217      f77* | f90* | f95*)
16218	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16219      *)
16220	lt_prog_compiler_wl_GCJ='-Wl,';;
16221      esac
16222      ;;
16223
16224    sunos4*)
16225      lt_prog_compiler_wl_GCJ='-Qoption ld '
16226      lt_prog_compiler_pic_GCJ='-PIC'
16227      lt_prog_compiler_static_GCJ='-Bstatic'
16228      ;;
16229
16230    sysv4 | sysv4.2uw2* | sysv4.3*)
16231      lt_prog_compiler_wl_GCJ='-Wl,'
16232      lt_prog_compiler_pic_GCJ='-KPIC'
16233      lt_prog_compiler_static_GCJ='-Bstatic'
16234      ;;
16235
16236    sysv4*MP*)
16237      if test -d /usr/nec ;then
16238	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16239	lt_prog_compiler_static_GCJ='-Bstatic'
16240      fi
16241      ;;
16242
16243    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16244      lt_prog_compiler_wl_GCJ='-Wl,'
16245      lt_prog_compiler_pic_GCJ='-KPIC'
16246      lt_prog_compiler_static_GCJ='-Bstatic'
16247      ;;
16248
16249    unicos*)
16250      lt_prog_compiler_wl_GCJ='-Wl,'
16251      lt_prog_compiler_can_build_shared_GCJ=no
16252      ;;
16253
16254    uts4*)
16255      lt_prog_compiler_pic_GCJ='-pic'
16256      lt_prog_compiler_static_GCJ='-Bstatic'
16257      ;;
16258
16259    *)
16260      lt_prog_compiler_can_build_shared_GCJ=no
16261      ;;
16262    esac
16263  fi
16264
16265echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16266echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16267
16268#
16269# Check to make sure the PIC flag actually works.
16270#
16271if test -n "$lt_prog_compiler_pic_GCJ"; then
16272
16273echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16274echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16275if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16276  echo $ECHO_N "(cached) $ECHO_C" >&6
16277else
16278  lt_prog_compiler_pic_works_GCJ=no
16279  ac_outfile=conftest.$ac_objext
16280   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16281   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16282   # Insert the option either (1) after the last *FLAGS variable, or
16283   # (2) before a word containing "conftest.", or (3) at the end.
16284   # Note that $ac_compile itself does not contain backslashes and begins
16285   # with a dollar sign (not a hyphen), so the echo should work correctly.
16286   # The option is referenced via a variable to avoid confusing sed.
16287   lt_compile=`echo "$ac_compile" | $SED \
16288   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16289   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16290   -e 's:$: $lt_compiler_flag:'`
16291   (eval echo "\"\$as_me:16291: $lt_compile\"" >&5)
16292   (eval "$lt_compile" 2>conftest.err)
16293   ac_status=$?
16294   cat conftest.err >&5
16295   echo "$as_me:16295: \$? = $ac_status" >&5
16296   if (exit $ac_status) && test -s "$ac_outfile"; then
16297     # The compiler can only warn and ignore the option if not recognized
16298     # So say no if there are warnings other than the usual output.
16299     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16300     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16301     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16302       lt_prog_compiler_pic_works_GCJ=yes
16303     fi
16304   fi
16305   $rm conftest*
16306
16307fi
16308echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16309echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16310
16311if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16312    case $lt_prog_compiler_pic_GCJ in
16313     "" | " "*) ;;
16314     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16315     esac
16316else
16317    lt_prog_compiler_pic_GCJ=
16318     lt_prog_compiler_can_build_shared_GCJ=no
16319fi
16320
16321fi
16322case $host_os in
16323  # For platforms which do not support PIC, -DPIC is meaningless:
16324  *djgpp*)
16325    lt_prog_compiler_pic_GCJ=
16326    ;;
16327  *)
16328    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16329    ;;
16330esac
16331
16332#
16333# Check to make sure the static flag actually works.
16334#
16335wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16336echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16337echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16338if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16339  echo $ECHO_N "(cached) $ECHO_C" >&6
16340else
16341  lt_prog_compiler_static_works_GCJ=no
16342   save_LDFLAGS="$LDFLAGS"
16343   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16344   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16345   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16346     # The linker can only warn and ignore the option if not recognized
16347     # So say no if there are warnings
16348     if test -s conftest.err; then
16349       # Append any errors to the config.log.
16350       cat conftest.err 1>&5
16351       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16352       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16353       if diff conftest.exp conftest.er2 >/dev/null; then
16354         lt_prog_compiler_static_works_GCJ=yes
16355       fi
16356     else
16357       lt_prog_compiler_static_works_GCJ=yes
16358     fi
16359   fi
16360   $rm conftest*
16361   LDFLAGS="$save_LDFLAGS"
16362
16363fi
16364echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16365echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16366
16367if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16368    :
16369else
16370    lt_prog_compiler_static_GCJ=
16371fi
16372
16373
16374echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16375echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16376if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16377  echo $ECHO_N "(cached) $ECHO_C" >&6
16378else
16379  lt_cv_prog_compiler_c_o_GCJ=no
16380   $rm -r conftest 2>/dev/null
16381   mkdir conftest
16382   cd conftest
16383   mkdir out
16384   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16385
16386   lt_compiler_flag="-o out/conftest2.$ac_objext"
16387   # Insert the option either (1) after the last *FLAGS variable, or
16388   # (2) before a word containing "conftest.", or (3) at the end.
16389   # Note that $ac_compile itself does not contain backslashes and begins
16390   # with a dollar sign (not a hyphen), so the echo should work correctly.
16391   lt_compile=`echo "$ac_compile" | $SED \
16392   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16393   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16394   -e 's:$: $lt_compiler_flag:'`
16395   (eval echo "\"\$as_me:16395: $lt_compile\"" >&5)
16396   (eval "$lt_compile" 2>out/conftest.err)
16397   ac_status=$?
16398   cat out/conftest.err >&5
16399   echo "$as_me:16399: \$? = $ac_status" >&5
16400   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16401   then
16402     # The compiler can only warn and ignore the option if not recognized
16403     # So say no if there are warnings
16404     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16405     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16406     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16407       lt_cv_prog_compiler_c_o_GCJ=yes
16408     fi
16409   fi
16410   chmod u+w . 2>&5
16411   $rm conftest*
16412   # SGI C++ compiler will create directory out/ii_files/ for
16413   # template instantiation
16414   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16415   $rm out/* && rmdir out
16416   cd ..
16417   rmdir conftest
16418   $rm conftest*
16419
16420fi
16421echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16422echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16423
16424
16425hard_links="nottested"
16426if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16427  # do not overwrite the value of need_locks provided by the user
16428  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16429echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16430  hard_links=yes
16431  $rm conftest*
16432  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16433  touch conftest.a
16434  ln conftest.a conftest.b 2>&5 || hard_links=no
16435  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16436  echo "$as_me:$LINENO: result: $hard_links" >&5
16437echo "${ECHO_T}$hard_links" >&6
16438  if test "$hard_links" = no; then
16439    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16440echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16441    need_locks=warn
16442  fi
16443else
16444  need_locks=no
16445fi
16446
16447echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16448echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16449
16450  runpath_var=
16451  allow_undefined_flag_GCJ=
16452  enable_shared_with_static_runtimes_GCJ=no
16453  archive_cmds_GCJ=
16454  archive_expsym_cmds_GCJ=
16455  old_archive_From_new_cmds_GCJ=
16456  old_archive_from_expsyms_cmds_GCJ=
16457  export_dynamic_flag_spec_GCJ=
16458  whole_archive_flag_spec_GCJ=
16459  thread_safe_flag_spec_GCJ=
16460  hardcode_libdir_flag_spec_GCJ=
16461  hardcode_libdir_flag_spec_ld_GCJ=
16462  hardcode_libdir_separator_GCJ=
16463  hardcode_direct_GCJ=no
16464  hardcode_minus_L_GCJ=no
16465  hardcode_shlibpath_var_GCJ=unsupported
16466  link_all_deplibs_GCJ=unknown
16467  hardcode_automatic_GCJ=no
16468  module_cmds_GCJ=
16469  module_expsym_cmds_GCJ=
16470  always_export_symbols_GCJ=no
16471  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16472  # include_expsyms should be a list of space-separated symbols to be *always*
16473  # included in the symbol list
16474  include_expsyms_GCJ=
16475  # exclude_expsyms can be an extended regexp of symbols to exclude
16476  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16477  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16478  # as well as any symbol that contains `d'.
16479  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16480  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16481  # platforms (ab)use it in PIC code, but their linkers get confused if
16482  # the symbol is explicitly referenced.  Since portable code cannot
16483  # rely on this symbol name, it's probably fine to never include it in
16484  # preloaded symbol tables.
16485  extract_expsyms_cmds=
16486  # Just being paranoid about ensuring that cc_basename is set.
16487  for cc_temp in $compiler""; do
16488  case $cc_temp in
16489    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16490    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16491    \-*) ;;
16492    *) break;;
16493  esac
16494done
16495cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16496
16497  case $host_os in
16498  cygwin* | mingw* | pw32*)
16499    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16500    # When not using gcc, we currently assume that we are using
16501    # Microsoft Visual C++.
16502    if test "$GCC" != yes; then
16503      with_gnu_ld=no
16504    fi
16505    ;;
16506  interix*)
16507    # we just hope/assume this is gcc and not c89 (= MSVC++)
16508    with_gnu_ld=yes
16509    ;;
16510  openbsd*)
16511    with_gnu_ld=no
16512    ;;
16513  esac
16514
16515  ld_shlibs_GCJ=yes
16516  if test "$with_gnu_ld" = yes; then
16517    # If archive_cmds runs LD, not CC, wlarc should be empty
16518    wlarc='${wl}'
16519
16520    # Set some defaults for GNU ld with shared library support. These
16521    # are reset later if shared libraries are not supported. Putting them
16522    # here allows them to be overridden if necessary.
16523    runpath_var=LD_RUN_PATH
16524    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16525    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16526    # ancient GNU ld didn't support --whole-archive et. al.
16527    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16528	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16529      else
16530  	whole_archive_flag_spec_GCJ=
16531    fi
16532    supports_anon_versioning=no
16533    case `$LD -v 2>/dev/null` in
16534      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16535      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16536      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16537      *\ 2.11.*) ;; # other 2.11 versions
16538      *) supports_anon_versioning=yes ;;
16539    esac
16540
16541    # See if GNU ld supports shared libraries.
16542    case $host_os in
16543    aix3* | aix4* | aix5*)
16544      # On AIX/PPC, the GNU linker is very broken
16545      if test "$host_cpu" != ia64; then
16546	ld_shlibs_GCJ=no
16547	cat <<EOF 1>&2
16548
16549*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16550*** to be unable to reliably create shared libraries on AIX.
16551*** Therefore, libtool is disabling shared libraries support.  If you
16552*** really care for shared libraries, you may want to modify your PATH
16553*** so that a non-GNU linker is found, and then restart.
16554
16555EOF
16556      fi
16557      ;;
16558
16559    amigaos*)
16560      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)'
16561      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16562      hardcode_minus_L_GCJ=yes
16563
16564      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16565      # that the semantics of dynamic libraries on AmigaOS, at least up
16566      # to version 4, is to share data among multiple programs linked
16567      # with the same dynamic library.  Since this doesn't match the
16568      # behavior of shared libraries on other platforms, we can't use
16569      # them.
16570      ld_shlibs_GCJ=no
16571      ;;
16572
16573    beos*)
16574      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16575	allow_undefined_flag_GCJ=unsupported
16576	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16577	# support --undefined.  This deserves some investigation.  FIXME
16578	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16579      else
16580	ld_shlibs_GCJ=no
16581      fi
16582      ;;
16583
16584    cygwin* | mingw* | pw32*)
16585      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16586      # as there is no search path for DLLs.
16587      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16588      allow_undefined_flag_GCJ=unsupported
16589      always_export_symbols_GCJ=no
16590      enable_shared_with_static_runtimes_GCJ=yes
16591      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16592
16593      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16594        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16595	# If the export-symbols file already is a .def file (1st line
16596	# is EXPORTS), use it as is; otherwise, prepend...
16597	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16598	  cp $export_symbols $output_objdir/$soname.def;
16599	else
16600	  echo EXPORTS > $output_objdir/$soname.def;
16601	  cat $export_symbols >> $output_objdir/$soname.def;
16602	fi~
16603	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16604      else
16605	ld_shlibs_GCJ=no
16606      fi
16607      ;;
16608
16609    interix3*)
16610      hardcode_direct_GCJ=no
16611      hardcode_shlibpath_var_GCJ=no
16612      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16613      export_dynamic_flag_spec_GCJ='${wl}-E'
16614      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16615      # Instead, shared libraries are loaded at an image base (0x10000000 by
16616      # default) and relocated if they conflict, which is a slow very memory
16617      # consuming and fragmenting process.  To avoid this, we pick a random,
16618      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16619      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16620      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'
16621      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'
16622      ;;
16623
16624    linux*)
16625      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16626	tmp_addflag=
16627	case $cc_basename,$host_cpu in
16628	pgcc*)				# Portland Group C compiler
16629	  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'
16630	  tmp_addflag=' $pic_flag'
16631	  ;;
16632	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16633	  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'
16634	  tmp_addflag=' $pic_flag -Mnomain' ;;
16635	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16636	  tmp_addflag=' -i_dynamic' ;;
16637	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16638	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16639	ifc* | ifort*)			# Intel Fortran compiler
16640	  tmp_addflag=' -nofor_main' ;;
16641	esac
16642	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16643
16644	if test $supports_anon_versioning = yes; then
16645	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16646  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16647  $echo "local: *; };" >> $output_objdir/$libname.ver~
16648	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16649	fi
16650      else
16651	ld_shlibs_GCJ=no
16652      fi
16653      ;;
16654
16655    netbsd*)
16656      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16657	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16658	wlarc=
16659      else
16660	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16661	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16662      fi
16663      ;;
16664
16665    solaris*)
16666      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16667	ld_shlibs_GCJ=no
16668	cat <<EOF 1>&2
16669
16670*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16671*** create shared libraries on Solaris systems.  Therefore, libtool
16672*** is disabling shared libraries support.  We urge you to upgrade GNU
16673*** binutils to release 2.9.1 or newer.  Another option is to modify
16674*** your PATH or compiler configuration so that the native linker is
16675*** used, and then restart.
16676
16677EOF
16678      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16679	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16680	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16681      else
16682	ld_shlibs_GCJ=no
16683      fi
16684      ;;
16685
16686    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16687      case `$LD -v 2>&1` in
16688        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16689	ld_shlibs_GCJ=no
16690	cat <<_LT_EOF 1>&2
16691
16692*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16693*** reliably create shared libraries on SCO systems.  Therefore, libtool
16694*** is disabling shared libraries support.  We urge you to upgrade GNU
16695*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16696*** your PATH or compiler configuration so that the native linker is
16697*** used, and then restart.
16698
16699_LT_EOF
16700	;;
16701	*)
16702	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16703	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16704	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16705	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16706	  else
16707	    ld_shlibs_GCJ=no
16708	  fi
16709	;;
16710      esac
16711      ;;
16712
16713    sunos4*)
16714      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16715      wlarc=
16716      hardcode_direct_GCJ=yes
16717      hardcode_shlibpath_var_GCJ=no
16718      ;;
16719
16720    *)
16721      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16722	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16723	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16724      else
16725	ld_shlibs_GCJ=no
16726      fi
16727      ;;
16728    esac
16729
16730    if test "$ld_shlibs_GCJ" = no; then
16731      runpath_var=
16732      hardcode_libdir_flag_spec_GCJ=
16733      export_dynamic_flag_spec_GCJ=
16734      whole_archive_flag_spec_GCJ=
16735    fi
16736  else
16737    # PORTME fill in a description of your system's linker (not GNU ld)
16738    case $host_os in
16739    aix3*)
16740      allow_undefined_flag_GCJ=unsupported
16741      always_export_symbols_GCJ=yes
16742      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'
16743      # Note: this linker hardcodes the directories in LIBPATH if there
16744      # are no directories specified by -L.
16745      hardcode_minus_L_GCJ=yes
16746      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16747	# Neither direct hardcoding nor static linking is supported with a
16748	# broken collect2.
16749	hardcode_direct_GCJ=unsupported
16750      fi
16751      ;;
16752
16753    aix4* | aix5*)
16754      if test "$host_cpu" = ia64; then
16755	# On IA64, the linker does run time linking by default, so we don't
16756	# have to do anything special.
16757	aix_use_runtimelinking=no
16758	exp_sym_flag='-Bexport'
16759	no_entry_flag=""
16760      else
16761	# If we're using GNU nm, then we don't want the "-C" option.
16762	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16763	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16764	  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'
16765	else
16766	  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'
16767	fi
16768	aix_use_runtimelinking=no
16769
16770	# Test if we are trying to use run time linking or normal
16771	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16772	# need to do runtime linking.
16773	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16774	  for ld_flag in $LDFLAGS; do
16775  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16776  	    aix_use_runtimelinking=yes
16777  	    break
16778  	  fi
16779	  done
16780	  ;;
16781	esac
16782
16783	exp_sym_flag='-bexport'
16784	no_entry_flag='-bnoentry'
16785      fi
16786
16787      # When large executables or shared objects are built, AIX ld can
16788      # have problems creating the table of contents.  If linking a library
16789      # or program results in "error TOC overflow" add -mminimal-toc to
16790      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16791      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16792
16793      archive_cmds_GCJ=''
16794      hardcode_direct_GCJ=yes
16795      hardcode_libdir_separator_GCJ=':'
16796      link_all_deplibs_GCJ=yes
16797
16798      if test "$GCC" = yes; then
16799	case $host_os in aix4.[012]|aix4.[012].*)
16800	# We only want to do this on AIX 4.2 and lower, the check
16801	# below for broken collect2 doesn't work under 4.3+
16802	  collect2name=`${CC} -print-prog-name=collect2`
16803	  if test -f "$collect2name" && \
16804  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16805	  then
16806  	  # We have reworked collect2
16807  	  hardcode_direct_GCJ=yes
16808	  else
16809  	  # We have old collect2
16810  	  hardcode_direct_GCJ=unsupported
16811  	  # It fails to find uninstalled libraries when the uninstalled
16812  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16813  	  # to unsupported forces relinking
16814  	  hardcode_minus_L_GCJ=yes
16815  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16816  	  hardcode_libdir_separator_GCJ=
16817	  fi
16818	  ;;
16819	esac
16820	shared_flag='-shared'
16821	if test "$aix_use_runtimelinking" = yes; then
16822	  shared_flag="$shared_flag "'${wl}-G'
16823	fi
16824      else
16825	# not using gcc
16826	if test "$host_cpu" = ia64; then
16827  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16828  	# chokes on -Wl,-G. The following line is correct:
16829	  shared_flag='-G'
16830	else
16831	  if test "$aix_use_runtimelinking" = yes; then
16832	    shared_flag='${wl}-G'
16833	  else
16834	    shared_flag='${wl}-bM:SRE'
16835	  fi
16836	fi
16837      fi
16838
16839      # It seems that -bexpall does not export symbols beginning with
16840      # underscore (_), so it is better to generate a list of symbols to export.
16841      always_export_symbols_GCJ=yes
16842      if test "$aix_use_runtimelinking" = yes; then
16843	# Warning - without using the other runtime loading flags (-brtl),
16844	# -berok will link without error, but may produce a broken library.
16845	allow_undefined_flag_GCJ='-berok'
16846       # Determine the default libpath from the value encoded in an empty executable.
16847       cat >conftest.$ac_ext <<_ACEOF
16848/* confdefs.h.  */
16849_ACEOF
16850cat confdefs.h >>conftest.$ac_ext
16851cat >>conftest.$ac_ext <<_ACEOF
16852/* end confdefs.h.  */
16853
16854int
16855main ()
16856{
16857
16858  ;
16859  return 0;
16860}
16861_ACEOF
16862rm -f conftest.$ac_objext conftest$ac_exeext
16863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16864  (eval $ac_link) 2>conftest.er1
16865  ac_status=$?
16866  grep -v '^ *+' conftest.er1 >conftest.err
16867  rm -f conftest.er1
16868  cat conftest.err >&5
16869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870  (exit $ac_status); } &&
16871	 { ac_try='test -z "$ac_c_werror_flag"
16872			 || test ! -s conftest.err'
16873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874  (eval $ac_try) 2>&5
16875  ac_status=$?
16876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877  (exit $ac_status); }; } &&
16878	 { ac_try='test -s conftest$ac_exeext'
16879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880  (eval $ac_try) 2>&5
16881  ac_status=$?
16882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883  (exit $ac_status); }; }; then
16884
16885aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16886}'`
16887# Check for a 64-bit object if we didn't find anything.
16888if 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; }
16889}'`; fi
16890else
16891  echo "$as_me: failed program was:" >&5
16892sed 's/^/| /' conftest.$ac_ext >&5
16893
16894fi
16895rm -f conftest.err conftest.$ac_objext \
16896      conftest$ac_exeext conftest.$ac_ext
16897if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16898
16899       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16900	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"
16901       else
16902	if test "$host_cpu" = ia64; then
16903	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16904	  allow_undefined_flag_GCJ="-z nodefs"
16905	  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"
16906	else
16907	 # Determine the default libpath from the value encoded in an empty executable.
16908	 cat >conftest.$ac_ext <<_ACEOF
16909/* confdefs.h.  */
16910_ACEOF
16911cat confdefs.h >>conftest.$ac_ext
16912cat >>conftest.$ac_ext <<_ACEOF
16913/* end confdefs.h.  */
16914
16915int
16916main ()
16917{
16918
16919  ;
16920  return 0;
16921}
16922_ACEOF
16923rm -f conftest.$ac_objext conftest$ac_exeext
16924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16925  (eval $ac_link) 2>conftest.er1
16926  ac_status=$?
16927  grep -v '^ *+' conftest.er1 >conftest.err
16928  rm -f conftest.er1
16929  cat conftest.err >&5
16930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931  (exit $ac_status); } &&
16932	 { ac_try='test -z "$ac_c_werror_flag"
16933			 || test ! -s conftest.err'
16934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935  (eval $ac_try) 2>&5
16936  ac_status=$?
16937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938  (exit $ac_status); }; } &&
16939	 { ac_try='test -s conftest$ac_exeext'
16940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16941  (eval $ac_try) 2>&5
16942  ac_status=$?
16943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944  (exit $ac_status); }; }; then
16945
16946aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16947}'`
16948# Check for a 64-bit object if we didn't find anything.
16949if 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; }
16950}'`; fi
16951else
16952  echo "$as_me: failed program was:" >&5
16953sed 's/^/| /' conftest.$ac_ext >&5
16954
16955fi
16956rm -f conftest.err conftest.$ac_objext \
16957      conftest$ac_exeext conftest.$ac_ext
16958if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16959
16960	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16961	  # Warning - without using the other run time loading flags,
16962	  # -berok will link without error, but may produce a broken library.
16963	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16964	  allow_undefined_flag_GCJ=' ${wl}-berok'
16965	  # Exported symbols can be pulled into shared objects from archives
16966	  whole_archive_flag_spec_GCJ='$convenience'
16967	  archive_cmds_need_lc_GCJ=yes
16968	  # This is similar to how AIX traditionally builds its shared libraries.
16969	  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'
16970	fi
16971      fi
16972      ;;
16973
16974    amigaos*)
16975      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)'
16976      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16977      hardcode_minus_L_GCJ=yes
16978      # see comment about different semantics on the GNU ld section
16979      ld_shlibs_GCJ=no
16980      ;;
16981
16982    bsdi[45]*)
16983      export_dynamic_flag_spec_GCJ=-rdynamic
16984      ;;
16985
16986    cygwin* | mingw* | pw32*)
16987      # When not using gcc, we currently assume that we are using
16988      # Microsoft Visual C++.
16989      # hardcode_libdir_flag_spec is actually meaningless, as there is
16990      # no search path for DLLs.
16991      hardcode_libdir_flag_spec_GCJ=' '
16992      allow_undefined_flag_GCJ=unsupported
16993      # Tell ltmain to make .lib files, not .a files.
16994      libext=lib
16995      # Tell ltmain to make .dll files, not .so files.
16996      shrext_cmds=".dll"
16997      # FIXME: Setting linknames here is a bad hack.
16998      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16999      # The linker will automatically build a .lib file if we build a DLL.
17000      old_archive_From_new_cmds_GCJ='true'
17001      # FIXME: Should let the user specify the lib program.
17002      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17003      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17004      enable_shared_with_static_runtimes_GCJ=yes
17005      ;;
17006
17007    darwin* | rhapsody*)
17008      case $host_os in
17009        rhapsody* | darwin1.[012])
17010         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17011         ;;
17012       *) # Darwin 1.3 on
17013         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17014           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17015         else
17016           case ${MACOSX_DEPLOYMENT_TARGET} in
17017             10.[012])
17018               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17019               ;;
17020             10.*)
17021               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17022               ;;
17023           esac
17024         fi
17025         ;;
17026      esac
17027      archive_cmds_need_lc_GCJ=no
17028      hardcode_direct_GCJ=no
17029      hardcode_automatic_GCJ=yes
17030      hardcode_shlibpath_var_GCJ=unsupported
17031      whole_archive_flag_spec_GCJ=''
17032      link_all_deplibs_GCJ=yes
17033    if test "$GCC" = yes ; then
17034    	output_verbose_link_cmd='echo'
17035        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17036      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17037      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17038      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}'
17039      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}'
17040    else
17041      case $cc_basename in
17042        xlc*)
17043         output_verbose_link_cmd='echo'
17044         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17045         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17046          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17047         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}'
17048          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}'
17049          ;;
17050       *)
17051         ld_shlibs_GCJ=no
17052          ;;
17053      esac
17054    fi
17055      ;;
17056
17057    dgux*)
17058      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17059      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17060      hardcode_shlibpath_var_GCJ=no
17061      ;;
17062
17063    freebsd1*)
17064      ld_shlibs_GCJ=no
17065      ;;
17066
17067    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17068    # support.  Future versions do this automatically, but an explicit c++rt0.o
17069    # does not break anything, and helps significantly (at the cost of a little
17070    # extra space).
17071    freebsd2.2*)
17072      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17073      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17074      hardcode_direct_GCJ=yes
17075      hardcode_shlibpath_var_GCJ=no
17076      ;;
17077
17078    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17079    freebsd2*)
17080      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17081      hardcode_direct_GCJ=yes
17082      hardcode_minus_L_GCJ=yes
17083      hardcode_shlibpath_var_GCJ=no
17084      ;;
17085
17086    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17087    freebsd* | kfreebsd*-gnu | dragonfly*)
17088      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17089      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17090      hardcode_direct_GCJ=yes
17091      hardcode_shlibpath_var_GCJ=no
17092      ;;
17093
17094    hpux9*)
17095      if test "$GCC" = yes; then
17096	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'
17097      else
17098	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'
17099      fi
17100      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17101      hardcode_libdir_separator_GCJ=:
17102      hardcode_direct_GCJ=yes
17103
17104      # hardcode_minus_L: Not really in the search PATH,
17105      # but as the default location of the library.
17106      hardcode_minus_L_GCJ=yes
17107      export_dynamic_flag_spec_GCJ='${wl}-E'
17108      ;;
17109
17110    hpux10*)
17111      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17112	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17113      else
17114	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17115      fi
17116      if test "$with_gnu_ld" = no; then
17117	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17118	hardcode_libdir_separator_GCJ=:
17119
17120	hardcode_direct_GCJ=yes
17121	export_dynamic_flag_spec_GCJ='${wl}-E'
17122
17123	# hardcode_minus_L: Not really in the search PATH,
17124	# but as the default location of the library.
17125	hardcode_minus_L_GCJ=yes
17126      fi
17127      ;;
17128
17129    hpux11*)
17130      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17131	case $host_cpu in
17132	hppa*64*)
17133	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17134	  ;;
17135	ia64*)
17136	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17137	  ;;
17138	*)
17139	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17140	  ;;
17141	esac
17142      else
17143	case $host_cpu in
17144	hppa*64*)
17145	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17146	  ;;
17147	ia64*)
17148	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17149	  ;;
17150	*)
17151	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17152	  ;;
17153	esac
17154      fi
17155      if test "$with_gnu_ld" = no; then
17156	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17157	hardcode_libdir_separator_GCJ=:
17158
17159	case $host_cpu in
17160	hppa*64*|ia64*)
17161	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17162	  hardcode_direct_GCJ=no
17163	  hardcode_shlibpath_var_GCJ=no
17164	  ;;
17165	*)
17166	  hardcode_direct_GCJ=yes
17167	  export_dynamic_flag_spec_GCJ='${wl}-E'
17168
17169	  # hardcode_minus_L: Not really in the search PATH,
17170	  # but as the default location of the library.
17171	  hardcode_minus_L_GCJ=yes
17172	  ;;
17173	esac
17174      fi
17175      ;;
17176
17177    irix5* | irix6* | nonstopux*)
17178      if test "$GCC" = yes; then
17179	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'
17180      else
17181	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'
17182	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17183      fi
17184      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17185      hardcode_libdir_separator_GCJ=:
17186      link_all_deplibs_GCJ=yes
17187      ;;
17188
17189    netbsd*)
17190      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17191	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17192      else
17193	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17194      fi
17195      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17196      hardcode_direct_GCJ=yes
17197      hardcode_shlibpath_var_GCJ=no
17198      ;;
17199
17200    newsos6)
17201      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17202      hardcode_direct_GCJ=yes
17203      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17204      hardcode_libdir_separator_GCJ=:
17205      hardcode_shlibpath_var_GCJ=no
17206      ;;
17207
17208    openbsd*)
17209      hardcode_direct_GCJ=yes
17210      hardcode_shlibpath_var_GCJ=no
17211      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17212	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17213	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17214	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17215	export_dynamic_flag_spec_GCJ='${wl}-E'
17216      else
17217       case $host_os in
17218	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17219	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17220	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17221	   ;;
17222	 *)
17223	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17224	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17225	   ;;
17226       esac
17227      fi
17228      ;;
17229
17230    os2*)
17231      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17232      hardcode_minus_L_GCJ=yes
17233      allow_undefined_flag_GCJ=unsupported
17234      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'
17235      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17236      ;;
17237
17238    osf3*)
17239      if test "$GCC" = yes; then
17240	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17241	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'
17242      else
17243	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17244	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'
17245      fi
17246      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17247      hardcode_libdir_separator_GCJ=:
17248      ;;
17249
17250    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17251      if test "$GCC" = yes; then
17252	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17253	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'
17254	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17255      else
17256	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17257	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'
17258	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~
17259	$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'
17260
17261	# Both c and cxx compiler support -rpath directly
17262	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17263      fi
17264      hardcode_libdir_separator_GCJ=:
17265      ;;
17266
17267    solaris*)
17268      no_undefined_flag_GCJ=' -z text'
17269      if test "$GCC" = yes; then
17270	wlarc='${wl}'
17271	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17272	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17273	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17274      else
17275	wlarc=''
17276	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17277	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17278  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17279      fi
17280      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17281      hardcode_shlibpath_var_GCJ=no
17282      case $host_os in
17283      solaris2.[0-5] | solaris2.[0-5].*) ;;
17284      *)
17285 	# The compiler driver will combine linker options so we
17286 	# cannot just pass the convience library names through
17287 	# without $wl, iff we do not link with $LD.
17288 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17289 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17290 	case $wlarc in
17291 	'')
17292 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17293 	*)
17294 	  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' ;;
17295 	esac ;;
17296      esac
17297      link_all_deplibs_GCJ=yes
17298      ;;
17299
17300    sunos4*)
17301      if test "x$host_vendor" = xsequent; then
17302	# Use $CC to link under sequent, because it throws in some extra .o
17303	# files that make .init and .fini sections work.
17304	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17305      else
17306	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17307      fi
17308      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17309      hardcode_direct_GCJ=yes
17310      hardcode_minus_L_GCJ=yes
17311      hardcode_shlibpath_var_GCJ=no
17312      ;;
17313
17314    sysv4)
17315      case $host_vendor in
17316	sni)
17317	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17318	  hardcode_direct_GCJ=yes # is this really true???
17319	;;
17320	siemens)
17321	  ## LD is ld it makes a PLAMLIB
17322	  ## CC just makes a GrossModule.
17323	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17324	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17325	  hardcode_direct_GCJ=no
17326        ;;
17327	motorola)
17328	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17329	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17330	;;
17331      esac
17332      runpath_var='LD_RUN_PATH'
17333      hardcode_shlibpath_var_GCJ=no
17334      ;;
17335
17336    sysv4.3*)
17337      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17338      hardcode_shlibpath_var_GCJ=no
17339      export_dynamic_flag_spec_GCJ='-Bexport'
17340      ;;
17341
17342    sysv4*MP*)
17343      if test -d /usr/nec; then
17344	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17345	hardcode_shlibpath_var_GCJ=no
17346	runpath_var=LD_RUN_PATH
17347	hardcode_runpath_var=yes
17348	ld_shlibs_GCJ=yes
17349      fi
17350      ;;
17351
17352    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17353      no_undefined_flag_GCJ='${wl}-z,text'
17354      archive_cmds_need_lc_GCJ=no
17355      hardcode_shlibpath_var_GCJ=no
17356      runpath_var='LD_RUN_PATH'
17357
17358      if test "$GCC" = yes; then
17359	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17360	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17361      else
17362	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17363	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17364      fi
17365      ;;
17366
17367    sysv5* | sco3.2v5* | sco5v6*)
17368      # Note: We can NOT use -z defs as we might desire, because we do not
17369      # link with -lc, and that would cause any symbols used from libc to
17370      # always be unresolved, which means just about no library would
17371      # ever link correctly.  If we're not using GNU ld we use -z text
17372      # though, which does catch some bad symbols but isn't as heavy-handed
17373      # as -z defs.
17374      no_undefined_flag_GCJ='${wl}-z,text'
17375      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17376      archive_cmds_need_lc_GCJ=no
17377      hardcode_shlibpath_var_GCJ=no
17378      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17379      hardcode_libdir_separator_GCJ=':'
17380      link_all_deplibs_GCJ=yes
17381      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17382      runpath_var='LD_RUN_PATH'
17383
17384      if test "$GCC" = yes; then
17385	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17386	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17387      else
17388	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17389	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17390      fi
17391      ;;
17392
17393    uts4*)
17394      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17395      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17396      hardcode_shlibpath_var_GCJ=no
17397      ;;
17398
17399    *)
17400      ld_shlibs_GCJ=no
17401      ;;
17402    esac
17403  fi
17404
17405echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17406echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17407test "$ld_shlibs_GCJ" = no && can_build_shared=no
17408
17409#
17410# Do we need to explicitly link libc?
17411#
17412case "x$archive_cmds_need_lc_GCJ" in
17413x|xyes)
17414  # Assume -lc should be added
17415  archive_cmds_need_lc_GCJ=yes
17416
17417  if test "$enable_shared" = yes && test "$GCC" = yes; then
17418    case $archive_cmds_GCJ in
17419    *'~'*)
17420      # FIXME: we may have to deal with multi-command sequences.
17421      ;;
17422    '$CC '*)
17423      # Test whether the compiler implicitly links with -lc since on some
17424      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17425      # to ld, don't add -lc before -lgcc.
17426      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17427echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17428      $rm conftest*
17429      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17430
17431      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17432  (eval $ac_compile) 2>&5
17433  ac_status=$?
17434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435  (exit $ac_status); } 2>conftest.err; then
17436        soname=conftest
17437        lib=conftest
17438        libobjs=conftest.$ac_objext
17439        deplibs=
17440        wl=$lt_prog_compiler_wl_GCJ
17441	pic_flag=$lt_prog_compiler_pic_GCJ
17442        compiler_flags=-v
17443        linker_flags=-v
17444        verstring=
17445        output_objdir=.
17446        libname=conftest
17447        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17448        allow_undefined_flag_GCJ=
17449        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17450  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17451  ac_status=$?
17452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453  (exit $ac_status); }
17454        then
17455	  archive_cmds_need_lc_GCJ=no
17456        else
17457	  archive_cmds_need_lc_GCJ=yes
17458        fi
17459        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17460      else
17461        cat conftest.err 1>&5
17462      fi
17463      $rm conftest*
17464      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17465echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17466      ;;
17467    esac
17468  fi
17469  ;;
17470esac
17471
17472echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17473echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17474library_names_spec=
17475libname_spec='lib$name'
17476soname_spec=
17477shrext_cmds=".so"
17478postinstall_cmds=
17479postuninstall_cmds=
17480finish_cmds=
17481finish_eval=
17482shlibpath_var=
17483shlibpath_overrides_runpath=unknown
17484version_type=none
17485dynamic_linker="$host_os ld.so"
17486sys_lib_dlsearch_path_spec="/lib /usr/lib"
17487if test "$GCC" = yes; then
17488  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17489  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17490    # if the path contains ";" then we assume it to be the separator
17491    # otherwise default to the standard path separator (i.e. ":") - it is
17492    # assumed that no part of a normal pathname contains ";" but that should
17493    # okay in the real world where ";" in dirpaths is itself problematic.
17494    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17495  else
17496    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17497  fi
17498else
17499  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17500fi
17501need_lib_prefix=unknown
17502hardcode_into_libs=no
17503
17504# when you set need_version to no, make sure it does not cause -set_version
17505# flags to be left without arguments
17506need_version=unknown
17507
17508case $host_os in
17509aix3*)
17510  version_type=linux
17511  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17512  shlibpath_var=LIBPATH
17513
17514  # AIX 3 has no versioning support, so we append a major version to the name.
17515  soname_spec='${libname}${release}${shared_ext}$major'
17516  ;;
17517
17518aix4* | aix5*)
17519  version_type=linux
17520  need_lib_prefix=no
17521  need_version=no
17522  hardcode_into_libs=yes
17523  if test "$host_cpu" = ia64; then
17524    # AIX 5 supports IA64
17525    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17526    shlibpath_var=LD_LIBRARY_PATH
17527  else
17528    # With GCC up to 2.95.x, collect2 would create an import file
17529    # for dependence libraries.  The import file would start with
17530    # the line `#! .'.  This would cause the generated library to
17531    # depend on `.', always an invalid library.  This was fixed in
17532    # development snapshots of GCC prior to 3.0.
17533    case $host_os in
17534      aix4 | aix4.[01] | aix4.[01].*)
17535      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17536	   echo ' yes '
17537	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17538	:
17539      else
17540	can_build_shared=no
17541      fi
17542      ;;
17543    esac
17544    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17545    # soname into executable. Probably we can add versioning support to
17546    # collect2, so additional links can be useful in future.
17547    if test "$aix_use_runtimelinking" = yes; then
17548      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17549      # instead of lib<name>.a to let people know that these are not
17550      # typical AIX shared libraries.
17551      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17552    else
17553      # We preserve .a as extension for shared libraries through AIX4.2
17554      # and later when we are not doing run time linking.
17555      library_names_spec='${libname}${release}.a $libname.a'
17556      soname_spec='${libname}${release}${shared_ext}$major'
17557    fi
17558    shlibpath_var=LIBPATH
17559  fi
17560  ;;
17561
17562amigaos*)
17563  library_names_spec='$libname.ixlibrary $libname.a'
17564  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17565  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'
17566  ;;
17567
17568beos*)
17569  library_names_spec='${libname}${shared_ext}'
17570  dynamic_linker="$host_os ld.so"
17571  shlibpath_var=LIBRARY_PATH
17572  ;;
17573
17574bsdi[45]*)
17575  version_type=linux
17576  need_version=no
17577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17578  soname_spec='${libname}${release}${shared_ext}$major'
17579  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17580  shlibpath_var=LD_LIBRARY_PATH
17581  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17582  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17583  # the default ld.so.conf also contains /usr/contrib/lib and
17584  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17585  # libtool to hard-code these into programs
17586  ;;
17587
17588cygwin* | mingw* | pw32*)
17589  version_type=windows
17590  shrext_cmds=".dll"
17591  need_version=no
17592  need_lib_prefix=no
17593
17594  case $GCC,$host_os in
17595  yes,cygwin* | yes,mingw* | yes,pw32*)
17596    library_names_spec='$libname.dll.a'
17597    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17598    postinstall_cmds='base_file=`basename \${file}`~
17599      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17600      dldir=$destdir/`dirname \$dlpath`~
17601      test -d \$dldir || mkdir -p \$dldir~
17602      $install_prog $dir/$dlname \$dldir/$dlname~
17603      chmod a+x \$dldir/$dlname'
17604    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17605      dlpath=$dir/\$dldll~
17606       $rm \$dlpath'
17607    shlibpath_overrides_runpath=yes
17608
17609    case $host_os in
17610    cygwin*)
17611      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17612      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17613      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17614      ;;
17615    mingw*)
17616      # MinGW DLLs use traditional 'lib' prefix
17617      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17618      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17619      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17620        # It is most probably a Windows format PATH printed by
17621        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17622        # path with ; separators, and with drive letters. We can handle the
17623        # drive letters (cygwin fileutils understands them), so leave them,
17624        # especially as we might pass files found there to a mingw objdump,
17625        # which wouldn't understand a cygwinified path. Ahh.
17626        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17627      else
17628        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17629      fi
17630      ;;
17631    pw32*)
17632      # pw32 DLLs use 'pw' prefix rather than 'lib'
17633      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17634      ;;
17635    esac
17636    ;;
17637
17638  *)
17639    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17640    ;;
17641  esac
17642  dynamic_linker='Win32 ld.exe'
17643  # FIXME: first we should search . and the directory the executable is in
17644  shlibpath_var=PATH
17645  ;;
17646
17647darwin* | rhapsody*)
17648  dynamic_linker="$host_os dyld"
17649  version_type=darwin
17650  need_lib_prefix=no
17651  need_version=no
17652  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17653  soname_spec='${libname}${release}${major}$shared_ext'
17654  shlibpath_overrides_runpath=yes
17655  shlibpath_var=DYLD_LIBRARY_PATH
17656  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17657  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17658  if test "$GCC" = yes; then
17659    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"`
17660  else
17661    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17662  fi
17663  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17664  ;;
17665
17666dgux*)
17667  version_type=linux
17668  need_lib_prefix=no
17669  need_version=no
17670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17671  soname_spec='${libname}${release}${shared_ext}$major'
17672  shlibpath_var=LD_LIBRARY_PATH
17673  ;;
17674
17675freebsd1*)
17676  dynamic_linker=no
17677  ;;
17678
17679kfreebsd*-gnu)
17680  version_type=linux
17681  need_lib_prefix=no
17682  need_version=no
17683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17684  soname_spec='${libname}${release}${shared_ext}$major'
17685  shlibpath_var=LD_LIBRARY_PATH
17686  shlibpath_overrides_runpath=no
17687  hardcode_into_libs=yes
17688  dynamic_linker='GNU ld.so'
17689  ;;
17690
17691freebsd* | dragonfly*)
17692  # DragonFly does not have aout.  When/if they implement a new
17693  # versioning mechanism, adjust this.
17694  if test -x /usr/bin/objformat; then
17695    objformat=`/usr/bin/objformat`
17696  else
17697    case $host_os in
17698    freebsd[123]*) objformat=aout ;;
17699    *) objformat=elf ;;
17700    esac
17701  fi
17702  version_type=freebsd-$objformat
17703  case $version_type in
17704    freebsd-elf*)
17705      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17706      need_version=no
17707      need_lib_prefix=no
17708      ;;
17709    freebsd-*)
17710      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17711      need_version=yes
17712      ;;
17713  esac
17714  shlibpath_var=LD_LIBRARY_PATH
17715  case $host_os in
17716  freebsd2*)
17717    shlibpath_overrides_runpath=yes
17718    ;;
17719  freebsd3.[01]* | freebsdelf3.[01]*)
17720    shlibpath_overrides_runpath=yes
17721    hardcode_into_libs=yes
17722    ;;
17723  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17724  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17725    shlibpath_overrides_runpath=no
17726    hardcode_into_libs=yes
17727    ;;
17728  freebsd*) # from 4.6 on
17729    shlibpath_overrides_runpath=yes
17730    hardcode_into_libs=yes
17731    ;;
17732  esac
17733  ;;
17734
17735gnu*)
17736  version_type=linux
17737  need_lib_prefix=no
17738  need_version=no
17739  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17740  soname_spec='${libname}${release}${shared_ext}$major'
17741  shlibpath_var=LD_LIBRARY_PATH
17742  hardcode_into_libs=yes
17743  ;;
17744
17745hpux9* | hpux10* | hpux11*)
17746  # Give a soname corresponding to the major version so that dld.sl refuses to
17747  # link against other versions.
17748  version_type=sunos
17749  need_lib_prefix=no
17750  need_version=no
17751  case $host_cpu in
17752  ia64*)
17753    shrext_cmds='.so'
17754    hardcode_into_libs=yes
17755    dynamic_linker="$host_os dld.so"
17756    shlibpath_var=LD_LIBRARY_PATH
17757    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17758    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17759    soname_spec='${libname}${release}${shared_ext}$major'
17760    if test "X$HPUX_IA64_MODE" = X32; then
17761      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17762    else
17763      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17764    fi
17765    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17766    ;;
17767   hppa*64*)
17768     shrext_cmds='.sl'
17769     hardcode_into_libs=yes
17770     dynamic_linker="$host_os dld.sl"
17771     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17772     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17773     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17774     soname_spec='${libname}${release}${shared_ext}$major'
17775     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17776     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17777     ;;
17778   *)
17779    shrext_cmds='.sl'
17780    dynamic_linker="$host_os dld.sl"
17781    shlibpath_var=SHLIB_PATH
17782    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17783    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17784    soname_spec='${libname}${release}${shared_ext}$major'
17785    ;;
17786  esac
17787  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17788  postinstall_cmds='chmod 555 $lib'
17789  ;;
17790
17791interix3*)
17792  version_type=linux
17793  need_lib_prefix=no
17794  need_version=no
17795  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17796  soname_spec='${libname}${release}${shared_ext}$major'
17797  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17798  shlibpath_var=LD_LIBRARY_PATH
17799  shlibpath_overrides_runpath=no
17800  hardcode_into_libs=yes
17801  ;;
17802
17803irix5* | irix6* | nonstopux*)
17804  case $host_os in
17805    nonstopux*) version_type=nonstopux ;;
17806    *)
17807	if test "$lt_cv_prog_gnu_ld" = yes; then
17808		version_type=linux
17809	else
17810		version_type=irix
17811	fi ;;
17812  esac
17813  need_lib_prefix=no
17814  need_version=no
17815  soname_spec='${libname}${release}${shared_ext}$major'
17816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17817  case $host_os in
17818  irix5* | nonstopux*)
17819    libsuff= shlibsuff=
17820    ;;
17821  *)
17822    case $LD in # libtool.m4 will add one of these switches to LD
17823    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17824      libsuff= shlibsuff= libmagic=32-bit;;
17825    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17826      libsuff=32 shlibsuff=N32 libmagic=N32;;
17827    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17828      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17829    *) libsuff= shlibsuff= libmagic=never-match;;
17830    esac
17831    ;;
17832  esac
17833  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17834  shlibpath_overrides_runpath=no
17835  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17836  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17837  hardcode_into_libs=yes
17838  ;;
17839
17840# No shared lib support for Linux oldld, aout, or coff.
17841linux*oldld* | linux*aout* | linux*coff*)
17842  dynamic_linker=no
17843  ;;
17844
17845# This must be Linux ELF.
17846linux*)
17847  version_type=linux
17848  need_lib_prefix=no
17849  need_version=no
17850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17851  soname_spec='${libname}${release}${shared_ext}$major'
17852  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17853  shlibpath_var=LD_LIBRARY_PATH
17854  shlibpath_overrides_runpath=no
17855  # This implies no fast_install, which is unacceptable.
17856  # Some rework will be needed to allow for fast_install
17857  # before this can be enabled.
17858  hardcode_into_libs=yes
17859
17860  # find out which ABI we are using
17861  libsuff=
17862  case "$host_cpu" in
17863  x86_64*|s390x*|powerpc64*)
17864    echo '#line 17864 "configure"' > conftest.$ac_ext
17865    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17866  (eval $ac_compile) 2>&5
17867  ac_status=$?
17868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869  (exit $ac_status); }; then
17870      case `/usr/bin/file conftest.$ac_objext` in
17871      *64-bit*)
17872        libsuff=64
17873        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17874        ;;
17875      esac
17876    fi
17877    rm -rf conftest*
17878    ;;
17879  esac
17880
17881  # Append ld.so.conf contents to the search path
17882  if test -f /etc/ld.so.conf; then
17883    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' ' '`
17884    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17885  fi
17886
17887  # We used to test for /lib/ld.so.1 and disable shared libraries on
17888  # powerpc, because MkLinux only supported shared libraries with the
17889  # GNU dynamic linker.  Since this was broken with cross compilers,
17890  # most powerpc-linux boxes support dynamic linking these days and
17891  # people can always --disable-shared, the test was removed, and we
17892  # assume the GNU/Linux dynamic linker is in use.
17893  dynamic_linker='GNU/Linux ld.so'
17894  ;;
17895
17896knetbsd*-gnu)
17897  version_type=linux
17898  need_lib_prefix=no
17899  need_version=no
17900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17901  soname_spec='${libname}${release}${shared_ext}$major'
17902  shlibpath_var=LD_LIBRARY_PATH
17903  shlibpath_overrides_runpath=no
17904  hardcode_into_libs=yes
17905  dynamic_linker='GNU ld.so'
17906  ;;
17907
17908netbsd*)
17909  version_type=sunos
17910  need_lib_prefix=no
17911  need_version=no
17912  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17913    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17914    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17915    dynamic_linker='NetBSD (a.out) ld.so'
17916  else
17917    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17918    soname_spec='${libname}${release}${shared_ext}$major'
17919    dynamic_linker='NetBSD ld.elf_so'
17920  fi
17921  shlibpath_var=LD_LIBRARY_PATH
17922  shlibpath_overrides_runpath=yes
17923  hardcode_into_libs=yes
17924  ;;
17925
17926newsos6)
17927  version_type=linux
17928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17929  shlibpath_var=LD_LIBRARY_PATH
17930  shlibpath_overrides_runpath=yes
17931  ;;
17932
17933nto-qnx*)
17934  version_type=linux
17935  need_lib_prefix=no
17936  need_version=no
17937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17938  soname_spec='${libname}${release}${shared_ext}$major'
17939  shlibpath_var=LD_LIBRARY_PATH
17940  shlibpath_overrides_runpath=yes
17941  ;;
17942
17943openbsd*)
17944  version_type=sunos
17945  sys_lib_dlsearch_path_spec="/usr/lib"
17946  need_lib_prefix=no
17947  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17948  case $host_os in
17949    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17950    *)                         need_version=no  ;;
17951  esac
17952  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17953  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17954  shlibpath_var=LD_LIBRARY_PATH
17955  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17956    case $host_os in
17957      openbsd2.[89] | openbsd2.[89].*)
17958	shlibpath_overrides_runpath=no
17959	;;
17960      *)
17961	shlibpath_overrides_runpath=yes
17962	;;
17963      esac
17964  else
17965    shlibpath_overrides_runpath=yes
17966  fi
17967  ;;
17968
17969os2*)
17970  libname_spec='$name'
17971  shrext_cmds=".dll"
17972  need_lib_prefix=no
17973  library_names_spec='$libname${shared_ext} $libname.a'
17974  dynamic_linker='OS/2 ld.exe'
17975  shlibpath_var=LIBPATH
17976  ;;
17977
17978osf3* | osf4* | osf5*)
17979  version_type=osf
17980  need_lib_prefix=no
17981  need_version=no
17982  soname_spec='${libname}${release}${shared_ext}$major'
17983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17984  shlibpath_var=LD_LIBRARY_PATH
17985  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17986  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17987  ;;
17988
17989solaris*)
17990  version_type=linux
17991  need_lib_prefix=no
17992  need_version=no
17993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17994  soname_spec='${libname}${release}${shared_ext}$major'
17995  shlibpath_var=LD_LIBRARY_PATH
17996  shlibpath_overrides_runpath=yes
17997  hardcode_into_libs=yes
17998  # ldd complains unless libraries are executable
17999  postinstall_cmds='chmod +x $lib'
18000  ;;
18001
18002sunos4*)
18003  version_type=sunos
18004  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18005  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18006  shlibpath_var=LD_LIBRARY_PATH
18007  shlibpath_overrides_runpath=yes
18008  if test "$with_gnu_ld" = yes; then
18009    need_lib_prefix=no
18010  fi
18011  need_version=yes
18012  ;;
18013
18014sysv4 | sysv4.3*)
18015  version_type=linux
18016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18017  soname_spec='${libname}${release}${shared_ext}$major'
18018  shlibpath_var=LD_LIBRARY_PATH
18019  case $host_vendor in
18020    sni)
18021      shlibpath_overrides_runpath=no
18022      need_lib_prefix=no
18023      export_dynamic_flag_spec='${wl}-Blargedynsym'
18024      runpath_var=LD_RUN_PATH
18025      ;;
18026    siemens)
18027      need_lib_prefix=no
18028      ;;
18029    motorola)
18030      need_lib_prefix=no
18031      need_version=no
18032      shlibpath_overrides_runpath=no
18033      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18034      ;;
18035  esac
18036  ;;
18037
18038sysv4*MP*)
18039  if test -d /usr/nec ;then
18040    version_type=linux
18041    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18042    soname_spec='$libname${shared_ext}.$major'
18043    shlibpath_var=LD_LIBRARY_PATH
18044  fi
18045  ;;
18046
18047sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18048  version_type=freebsd-elf
18049  need_lib_prefix=no
18050  need_version=no
18051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18052  soname_spec='${libname}${release}${shared_ext}$major'
18053  shlibpath_var=LD_LIBRARY_PATH
18054  hardcode_into_libs=yes
18055  if test "$with_gnu_ld" = yes; then
18056    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18057    shlibpath_overrides_runpath=no
18058  else
18059    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18060    shlibpath_overrides_runpath=yes
18061    case $host_os in
18062      sco3.2v5*)
18063        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18064	;;
18065    esac
18066  fi
18067  sys_lib_dlsearch_path_spec='/usr/lib'
18068  ;;
18069
18070uts4*)
18071  version_type=linux
18072  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18073  soname_spec='${libname}${release}${shared_ext}$major'
18074  shlibpath_var=LD_LIBRARY_PATH
18075  ;;
18076
18077*)
18078  dynamic_linker=no
18079  ;;
18080esac
18081echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18082echo "${ECHO_T}$dynamic_linker" >&6
18083test "$dynamic_linker" = no && can_build_shared=no
18084
18085variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18086if test "$GCC" = yes; then
18087  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18088fi
18089
18090echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18091echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18092hardcode_action_GCJ=
18093if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18094   test -n "$runpath_var_GCJ" || \
18095   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18096
18097  # We can hardcode non-existant directories.
18098  if test "$hardcode_direct_GCJ" != no &&
18099     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18100     # have to relink, otherwise we might link with an installed library
18101     # when we should be linking with a yet-to-be-installed one
18102     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18103     test "$hardcode_minus_L_GCJ" != no; then
18104    # Linking always hardcodes the temporary library directory.
18105    hardcode_action_GCJ=relink
18106  else
18107    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18108    hardcode_action_GCJ=immediate
18109  fi
18110else
18111  # We cannot hardcode anything, or else we can only hardcode existing
18112  # directories.
18113  hardcode_action_GCJ=unsupported
18114fi
18115echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18116echo "${ECHO_T}$hardcode_action_GCJ" >&6
18117
18118if test "$hardcode_action_GCJ" = relink; then
18119  # Fast installation is not supported
18120  enable_fast_install=no
18121elif test "$shlibpath_overrides_runpath" = yes ||
18122     test "$enable_shared" = no; then
18123  # Fast installation is not necessary
18124  enable_fast_install=needless
18125fi
18126
18127
18128# The else clause should only fire when bootstrapping the
18129# libtool distribution, otherwise you forgot to ship ltmain.sh
18130# with your package, and you will get complaints that there are
18131# no rules to generate ltmain.sh.
18132if test -f "$ltmain"; then
18133  # See if we are running on zsh, and set the options which allow our commands through
18134  # without removal of \ escapes.
18135  if test -n "${ZSH_VERSION+set}" ; then
18136    setopt NO_GLOB_SUBST
18137  fi
18138  # Now quote all the things that may contain metacharacters while being
18139  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18140  # variables and quote the copies for generation of the libtool script.
18141  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18142    SED SHELL STRIP \
18143    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18144    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18145    deplibs_check_method reload_flag reload_cmds need_locks \
18146    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18147    lt_cv_sys_global_symbol_to_c_name_address \
18148    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18149    old_postinstall_cmds old_postuninstall_cmds \
18150    compiler_GCJ \
18151    CC_GCJ \
18152    LD_GCJ \
18153    lt_prog_compiler_wl_GCJ \
18154    lt_prog_compiler_pic_GCJ \
18155    lt_prog_compiler_static_GCJ \
18156    lt_prog_compiler_no_builtin_flag_GCJ \
18157    export_dynamic_flag_spec_GCJ \
18158    thread_safe_flag_spec_GCJ \
18159    whole_archive_flag_spec_GCJ \
18160    enable_shared_with_static_runtimes_GCJ \
18161    old_archive_cmds_GCJ \
18162    old_archive_from_new_cmds_GCJ \
18163    predep_objects_GCJ \
18164    postdep_objects_GCJ \
18165    predeps_GCJ \
18166    postdeps_GCJ \
18167    compiler_lib_search_path_GCJ \
18168    archive_cmds_GCJ \
18169    archive_expsym_cmds_GCJ \
18170    postinstall_cmds_GCJ \
18171    postuninstall_cmds_GCJ \
18172    old_archive_from_expsyms_cmds_GCJ \
18173    allow_undefined_flag_GCJ \
18174    no_undefined_flag_GCJ \
18175    export_symbols_cmds_GCJ \
18176    hardcode_libdir_flag_spec_GCJ \
18177    hardcode_libdir_flag_spec_ld_GCJ \
18178    hardcode_libdir_separator_GCJ \
18179    hardcode_automatic_GCJ \
18180    module_cmds_GCJ \
18181    module_expsym_cmds_GCJ \
18182    lt_cv_prog_compiler_c_o_GCJ \
18183    exclude_expsyms_GCJ \
18184    include_expsyms_GCJ; do
18185
18186    case $var in
18187    old_archive_cmds_GCJ | \
18188    old_archive_from_new_cmds_GCJ | \
18189    archive_cmds_GCJ | \
18190    archive_expsym_cmds_GCJ | \
18191    module_cmds_GCJ | \
18192    module_expsym_cmds_GCJ | \
18193    old_archive_from_expsyms_cmds_GCJ | \
18194    export_symbols_cmds_GCJ | \
18195    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18196    postinstall_cmds | postuninstall_cmds | \
18197    old_postinstall_cmds | old_postuninstall_cmds | \
18198    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18199      # Double-quote double-evaled strings.
18200      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18201      ;;
18202    *)
18203      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18204      ;;
18205    esac
18206  done
18207
18208  case $lt_echo in
18209  *'\$0 --fallback-echo"')
18210    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18211    ;;
18212  esac
18213
18214cfgfile="$ofile"
18215
18216  cat <<__EOF__ >> "$cfgfile"
18217# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18218
18219# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18220
18221# Shell to use when invoking shell scripts.
18222SHELL=$lt_SHELL
18223
18224# Whether or not to build shared libraries.
18225build_libtool_libs=$enable_shared
18226
18227# Whether or not to build static libraries.
18228build_old_libs=$enable_static
18229
18230# Whether or not to add -lc for building shared libraries.
18231build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18232
18233# Whether or not to disallow shared libs when runtime libs are static
18234allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18235
18236# Whether or not to optimize for fast installation.
18237fast_install=$enable_fast_install
18238
18239# The host system.
18240host_alias=$host_alias
18241host=$host
18242host_os=$host_os
18243
18244# The build system.
18245build_alias=$build_alias
18246build=$build
18247build_os=$build_os
18248
18249# An echo program that does not interpret backslashes.
18250echo=$lt_echo
18251
18252# The archiver.
18253AR=$lt_AR
18254AR_FLAGS=$lt_AR_FLAGS
18255
18256# A C compiler.
18257LTCC=$lt_LTCC
18258
18259# LTCC compiler flags.
18260LTCFLAGS=$lt_LTCFLAGS
18261
18262# A language-specific compiler.
18263CC=$lt_compiler_GCJ
18264
18265# Is the compiler the GNU C compiler?
18266with_gcc=$GCC_GCJ
18267
18268# An ERE matcher.
18269EGREP=$lt_EGREP
18270
18271# The linker used to build libraries.
18272LD=$lt_LD_GCJ
18273
18274# Whether we need hard or soft links.
18275LN_S=$lt_LN_S
18276
18277# A BSD-compatible nm program.
18278NM=$lt_NM
18279
18280# A symbol stripping program
18281STRIP=$lt_STRIP
18282
18283# Used to examine libraries when file_magic_cmd begins "file"
18284MAGIC_CMD=$MAGIC_CMD
18285
18286# Used on cygwin: DLL creation program.
18287DLLTOOL="$DLLTOOL"
18288
18289# Used on cygwin: object dumper.
18290OBJDUMP="$OBJDUMP"
18291
18292# Used on cygwin: assembler.
18293AS="$AS"
18294
18295# The name of the directory that contains temporary libtool files.
18296objdir=$objdir
18297
18298# How to create reloadable object files.
18299reload_flag=$lt_reload_flag
18300reload_cmds=$lt_reload_cmds
18301
18302# How to pass a linker flag through the compiler.
18303wl=$lt_lt_prog_compiler_wl_GCJ
18304
18305# Object file suffix (normally "o").
18306objext="$ac_objext"
18307
18308# Old archive suffix (normally "a").
18309libext="$libext"
18310
18311# Shared library suffix (normally ".so").
18312shrext_cmds='$shrext_cmds'
18313
18314# Executable file suffix (normally "").
18315exeext="$exeext"
18316
18317# Additional compiler flags for building library objects.
18318pic_flag=$lt_lt_prog_compiler_pic_GCJ
18319pic_mode=$pic_mode
18320
18321# What is the maximum length of a command?
18322max_cmd_len=$lt_cv_sys_max_cmd_len
18323
18324# Does compiler simultaneously support -c and -o options?
18325compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18326
18327# Must we lock files when doing compilation?
18328need_locks=$lt_need_locks
18329
18330# Do we need the lib prefix for modules?
18331need_lib_prefix=$need_lib_prefix
18332
18333# Do we need a version for libraries?
18334need_version=$need_version
18335
18336# Whether dlopen is supported.
18337dlopen_support=$enable_dlopen
18338
18339# Whether dlopen of programs is supported.
18340dlopen_self=$enable_dlopen_self
18341
18342# Whether dlopen of statically linked programs is supported.
18343dlopen_self_static=$enable_dlopen_self_static
18344
18345# Compiler flag to prevent dynamic linking.
18346link_static_flag=$lt_lt_prog_compiler_static_GCJ
18347
18348# Compiler flag to turn off builtin functions.
18349no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18350
18351# Compiler flag to allow reflexive dlopens.
18352export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18353
18354# Compiler flag to generate shared objects directly from archives.
18355whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18356
18357# Compiler flag to generate thread-safe objects.
18358thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18359
18360# Library versioning type.
18361version_type=$version_type
18362
18363# Format of library name prefix.
18364libname_spec=$lt_libname_spec
18365
18366# List of archive names.  First name is the real one, the rest are links.
18367# The last name is the one that the linker finds with -lNAME.
18368library_names_spec=$lt_library_names_spec
18369
18370# The coded name of the library, if different from the real name.
18371soname_spec=$lt_soname_spec
18372
18373# Commands used to build and install an old-style archive.
18374RANLIB=$lt_RANLIB
18375old_archive_cmds=$lt_old_archive_cmds_GCJ
18376old_postinstall_cmds=$lt_old_postinstall_cmds
18377old_postuninstall_cmds=$lt_old_postuninstall_cmds
18378
18379# Create an old-style archive from a shared archive.
18380old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18381
18382# Create a temporary old-style archive to link instead of a shared archive.
18383old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18384
18385# Commands used to build and install a shared archive.
18386archive_cmds=$lt_archive_cmds_GCJ
18387archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18388postinstall_cmds=$lt_postinstall_cmds
18389postuninstall_cmds=$lt_postuninstall_cmds
18390
18391# Commands used to build a loadable module (assumed same as above if empty)
18392module_cmds=$lt_module_cmds_GCJ
18393module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18394
18395# Commands to strip libraries.
18396old_striplib=$lt_old_striplib
18397striplib=$lt_striplib
18398
18399# Dependencies to place before the objects being linked to create a
18400# shared library.
18401predep_objects=$lt_predep_objects_GCJ
18402
18403# Dependencies to place after the objects being linked to create a
18404# shared library.
18405postdep_objects=$lt_postdep_objects_GCJ
18406
18407# Dependencies to place before the objects being linked to create a
18408# shared library.
18409predeps=$lt_predeps_GCJ
18410
18411# Dependencies to place after the objects being linked to create a
18412# shared library.
18413postdeps=$lt_postdeps_GCJ
18414
18415# The library search path used internally by the compiler when linking
18416# a shared library.
18417compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18418
18419# Method to check whether dependent libraries are shared objects.
18420deplibs_check_method=$lt_deplibs_check_method
18421
18422# Command to use when deplibs_check_method == file_magic.
18423file_magic_cmd=$lt_file_magic_cmd
18424
18425# Flag that allows shared libraries with undefined symbols to be built.
18426allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18427
18428# Flag that forces no undefined symbols.
18429no_undefined_flag=$lt_no_undefined_flag_GCJ
18430
18431# Commands used to finish a libtool library installation in a directory.
18432finish_cmds=$lt_finish_cmds
18433
18434# Same as above, but a single script fragment to be evaled but not shown.
18435finish_eval=$lt_finish_eval
18436
18437# Take the output of nm and produce a listing of raw symbols and C names.
18438global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18439
18440# Transform the output of nm in a proper C declaration
18441global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18442
18443# Transform the output of nm in a C name address pair
18444global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18445
18446# This is the shared library runtime path variable.
18447runpath_var=$runpath_var
18448
18449# This is the shared library path variable.
18450shlibpath_var=$shlibpath_var
18451
18452# Is shlibpath searched before the hard-coded library search path?
18453shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18454
18455# How to hardcode a shared library path into an executable.
18456hardcode_action=$hardcode_action_GCJ
18457
18458# Whether we should hardcode library paths into libraries.
18459hardcode_into_libs=$hardcode_into_libs
18460
18461# Flag to hardcode \$libdir into a binary during linking.
18462# This must work even if \$libdir does not exist.
18463hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18464
18465# If ld is used when linking, flag to hardcode \$libdir into
18466# a binary during linking. This must work even if \$libdir does
18467# not exist.
18468hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18469
18470# Whether we need a single -rpath flag with a separated argument.
18471hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18472
18473# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18474# resulting binary.
18475hardcode_direct=$hardcode_direct_GCJ
18476
18477# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18478# resulting binary.
18479hardcode_minus_L=$hardcode_minus_L_GCJ
18480
18481# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18482# the resulting binary.
18483hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18484
18485# Set to yes if building a shared library automatically hardcodes DIR into the library
18486# and all subsequent libraries and executables linked against it.
18487hardcode_automatic=$hardcode_automatic_GCJ
18488
18489# Variables whose values should be saved in libtool wrapper scripts and
18490# restored at relink time.
18491variables_saved_for_relink="$variables_saved_for_relink"
18492
18493# Whether libtool must link a program against all its dependency libraries.
18494link_all_deplibs=$link_all_deplibs_GCJ
18495
18496# Compile-time system search path for libraries
18497sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18498
18499# Run-time system search path for libraries
18500sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18501
18502# Fix the shell variable \$srcfile for the compiler.
18503fix_srcfile_path="$fix_srcfile_path_GCJ"
18504
18505# Set to yes if exported symbols are required.
18506always_export_symbols=$always_export_symbols_GCJ
18507
18508# The commands to list exported symbols.
18509export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18510
18511# The commands to extract the exported symbol list from a shared archive.
18512extract_expsyms_cmds=$lt_extract_expsyms_cmds
18513
18514# Symbols that should not be listed in the preloaded symbols.
18515exclude_expsyms=$lt_exclude_expsyms_GCJ
18516
18517# Symbols that must always be exported.
18518include_expsyms=$lt_include_expsyms_GCJ
18519
18520# ### END LIBTOOL TAG CONFIG: $tagname
18521
18522__EOF__
18523
18524
18525else
18526  # If there is no Makefile yet, we rely on a make rule to execute
18527  # `config.status --recheck' to rerun these tests and create the
18528  # libtool script then.
18529  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18530  if test -f "$ltmain_in"; then
18531    test -f Makefile && make "$ltmain"
18532  fi
18533fi
18534
18535
18536ac_ext=c
18537ac_cpp='$CPP $CPPFLAGS'
18538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18540ac_compiler_gnu=$ac_cv_c_compiler_gnu
18541
18542CC="$lt_save_CC"
18543
18544	else
18545	  tagname=""
18546	fi
18547	;;
18548
18549      RC)
18550
18551
18552
18553# Source file extension for RC test sources.
18554ac_ext=rc
18555
18556# Object file extension for compiled RC test sources.
18557objext=o
18558objext_RC=$objext
18559
18560# Code to be used in simple compile tests
18561lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18562
18563# Code to be used in simple link tests
18564lt_simple_link_test_code="$lt_simple_compile_test_code"
18565
18566# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18567
18568# If no C compiler was specified, use CC.
18569LTCC=${LTCC-"$CC"}
18570
18571# If no C compiler flags were specified, use CFLAGS.
18572LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18573
18574# Allow CC to be a program name with arguments.
18575compiler=$CC
18576
18577
18578# save warnings/boilerplate of simple test code
18579ac_outfile=conftest.$ac_objext
18580printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18581eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18582_lt_compiler_boilerplate=`cat conftest.err`
18583$rm conftest*
18584
18585ac_outfile=conftest.$ac_objext
18586printf "$lt_simple_link_test_code" >conftest.$ac_ext
18587eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18588_lt_linker_boilerplate=`cat conftest.err`
18589$rm conftest*
18590
18591
18592# Allow CC to be a program name with arguments.
18593lt_save_CC="$CC"
18594CC=${RC-"windres"}
18595compiler=$CC
18596compiler_RC=$CC
18597for cc_temp in $compiler""; do
18598  case $cc_temp in
18599    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18600    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18601    \-*) ;;
18602    *) break;;
18603  esac
18604done
18605cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18606
18607lt_cv_prog_compiler_c_o_RC=yes
18608
18609# The else clause should only fire when bootstrapping the
18610# libtool distribution, otherwise you forgot to ship ltmain.sh
18611# with your package, and you will get complaints that there are
18612# no rules to generate ltmain.sh.
18613if test -f "$ltmain"; then
18614  # See if we are running on zsh, and set the options which allow our commands through
18615  # without removal of \ escapes.
18616  if test -n "${ZSH_VERSION+set}" ; then
18617    setopt NO_GLOB_SUBST
18618  fi
18619  # Now quote all the things that may contain metacharacters while being
18620  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18621  # variables and quote the copies for generation of the libtool script.
18622  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18623    SED SHELL STRIP \
18624    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18625    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18626    deplibs_check_method reload_flag reload_cmds need_locks \
18627    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18628    lt_cv_sys_global_symbol_to_c_name_address \
18629    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18630    old_postinstall_cmds old_postuninstall_cmds \
18631    compiler_RC \
18632    CC_RC \
18633    LD_RC \
18634    lt_prog_compiler_wl_RC \
18635    lt_prog_compiler_pic_RC \
18636    lt_prog_compiler_static_RC \
18637    lt_prog_compiler_no_builtin_flag_RC \
18638    export_dynamic_flag_spec_RC \
18639    thread_safe_flag_spec_RC \
18640    whole_archive_flag_spec_RC \
18641    enable_shared_with_static_runtimes_RC \
18642    old_archive_cmds_RC \
18643    old_archive_from_new_cmds_RC \
18644    predep_objects_RC \
18645    postdep_objects_RC \
18646    predeps_RC \
18647    postdeps_RC \
18648    compiler_lib_search_path_RC \
18649    archive_cmds_RC \
18650    archive_expsym_cmds_RC \
18651    postinstall_cmds_RC \
18652    postuninstall_cmds_RC \
18653    old_archive_from_expsyms_cmds_RC \
18654    allow_undefined_flag_RC \
18655    no_undefined_flag_RC \
18656    export_symbols_cmds_RC \
18657    hardcode_libdir_flag_spec_RC \
18658    hardcode_libdir_flag_spec_ld_RC \
18659    hardcode_libdir_separator_RC \
18660    hardcode_automatic_RC \
18661    module_cmds_RC \
18662    module_expsym_cmds_RC \
18663    lt_cv_prog_compiler_c_o_RC \
18664    exclude_expsyms_RC \
18665    include_expsyms_RC; do
18666
18667    case $var in
18668    old_archive_cmds_RC | \
18669    old_archive_from_new_cmds_RC | \
18670    archive_cmds_RC | \
18671    archive_expsym_cmds_RC | \
18672    module_cmds_RC | \
18673    module_expsym_cmds_RC | \
18674    old_archive_from_expsyms_cmds_RC | \
18675    export_symbols_cmds_RC | \
18676    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18677    postinstall_cmds | postuninstall_cmds | \
18678    old_postinstall_cmds | old_postuninstall_cmds | \
18679    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18680      # Double-quote double-evaled strings.
18681      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18682      ;;
18683    *)
18684      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18685      ;;
18686    esac
18687  done
18688
18689  case $lt_echo in
18690  *'\$0 --fallback-echo"')
18691    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18692    ;;
18693  esac
18694
18695cfgfile="$ofile"
18696
18697  cat <<__EOF__ >> "$cfgfile"
18698# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18699
18700# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18701
18702# Shell to use when invoking shell scripts.
18703SHELL=$lt_SHELL
18704
18705# Whether or not to build shared libraries.
18706build_libtool_libs=$enable_shared
18707
18708# Whether or not to build static libraries.
18709build_old_libs=$enable_static
18710
18711# Whether or not to add -lc for building shared libraries.
18712build_libtool_need_lc=$archive_cmds_need_lc_RC
18713
18714# Whether or not to disallow shared libs when runtime libs are static
18715allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18716
18717# Whether or not to optimize for fast installation.
18718fast_install=$enable_fast_install
18719
18720# The host system.
18721host_alias=$host_alias
18722host=$host
18723host_os=$host_os
18724
18725# The build system.
18726build_alias=$build_alias
18727build=$build
18728build_os=$build_os
18729
18730# An echo program that does not interpret backslashes.
18731echo=$lt_echo
18732
18733# The archiver.
18734AR=$lt_AR
18735AR_FLAGS=$lt_AR_FLAGS
18736
18737# A C compiler.
18738LTCC=$lt_LTCC
18739
18740# LTCC compiler flags.
18741LTCFLAGS=$lt_LTCFLAGS
18742
18743# A language-specific compiler.
18744CC=$lt_compiler_RC
18745
18746# Is the compiler the GNU C compiler?
18747with_gcc=$GCC_RC
18748
18749# An ERE matcher.
18750EGREP=$lt_EGREP
18751
18752# The linker used to build libraries.
18753LD=$lt_LD_RC
18754
18755# Whether we need hard or soft links.
18756LN_S=$lt_LN_S
18757
18758# A BSD-compatible nm program.
18759NM=$lt_NM
18760
18761# A symbol stripping program
18762STRIP=$lt_STRIP
18763
18764# Used to examine libraries when file_magic_cmd begins "file"
18765MAGIC_CMD=$MAGIC_CMD
18766
18767# Used on cygwin: DLL creation program.
18768DLLTOOL="$DLLTOOL"
18769
18770# Used on cygwin: object dumper.
18771OBJDUMP="$OBJDUMP"
18772
18773# Used on cygwin: assembler.
18774AS="$AS"
18775
18776# The name of the directory that contains temporary libtool files.
18777objdir=$objdir
18778
18779# How to create reloadable object files.
18780reload_flag=$lt_reload_flag
18781reload_cmds=$lt_reload_cmds
18782
18783# How to pass a linker flag through the compiler.
18784wl=$lt_lt_prog_compiler_wl_RC
18785
18786# Object file suffix (normally "o").
18787objext="$ac_objext"
18788
18789# Old archive suffix (normally "a").
18790libext="$libext"
18791
18792# Shared library suffix (normally ".so").
18793shrext_cmds='$shrext_cmds'
18794
18795# Executable file suffix (normally "").
18796exeext="$exeext"
18797
18798# Additional compiler flags for building library objects.
18799pic_flag=$lt_lt_prog_compiler_pic_RC
18800pic_mode=$pic_mode
18801
18802# What is the maximum length of a command?
18803max_cmd_len=$lt_cv_sys_max_cmd_len
18804
18805# Does compiler simultaneously support -c and -o options?
18806compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18807
18808# Must we lock files when doing compilation?
18809need_locks=$lt_need_locks
18810
18811# Do we need the lib prefix for modules?
18812need_lib_prefix=$need_lib_prefix
18813
18814# Do we need a version for libraries?
18815need_version=$need_version
18816
18817# Whether dlopen is supported.
18818dlopen_support=$enable_dlopen
18819
18820# Whether dlopen of programs is supported.
18821dlopen_self=$enable_dlopen_self
18822
18823# Whether dlopen of statically linked programs is supported.
18824dlopen_self_static=$enable_dlopen_self_static
18825
18826# Compiler flag to prevent dynamic linking.
18827link_static_flag=$lt_lt_prog_compiler_static_RC
18828
18829# Compiler flag to turn off builtin functions.
18830no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18831
18832# Compiler flag to allow reflexive dlopens.
18833export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18834
18835# Compiler flag to generate shared objects directly from archives.
18836whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18837
18838# Compiler flag to generate thread-safe objects.
18839thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18840
18841# Library versioning type.
18842version_type=$version_type
18843
18844# Format of library name prefix.
18845libname_spec=$lt_libname_spec
18846
18847# List of archive names.  First name is the real one, the rest are links.
18848# The last name is the one that the linker finds with -lNAME.
18849library_names_spec=$lt_library_names_spec
18850
18851# The coded name of the library, if different from the real name.
18852soname_spec=$lt_soname_spec
18853
18854# Commands used to build and install an old-style archive.
18855RANLIB=$lt_RANLIB
18856old_archive_cmds=$lt_old_archive_cmds_RC
18857old_postinstall_cmds=$lt_old_postinstall_cmds
18858old_postuninstall_cmds=$lt_old_postuninstall_cmds
18859
18860# Create an old-style archive from a shared archive.
18861old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18862
18863# Create a temporary old-style archive to link instead of a shared archive.
18864old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18865
18866# Commands used to build and install a shared archive.
18867archive_cmds=$lt_archive_cmds_RC
18868archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18869postinstall_cmds=$lt_postinstall_cmds
18870postuninstall_cmds=$lt_postuninstall_cmds
18871
18872# Commands used to build a loadable module (assumed same as above if empty)
18873module_cmds=$lt_module_cmds_RC
18874module_expsym_cmds=$lt_module_expsym_cmds_RC
18875
18876# Commands to strip libraries.
18877old_striplib=$lt_old_striplib
18878striplib=$lt_striplib
18879
18880# Dependencies to place before the objects being linked to create a
18881# shared library.
18882predep_objects=$lt_predep_objects_RC
18883
18884# Dependencies to place after the objects being linked to create a
18885# shared library.
18886postdep_objects=$lt_postdep_objects_RC
18887
18888# Dependencies to place before the objects being linked to create a
18889# shared library.
18890predeps=$lt_predeps_RC
18891
18892# Dependencies to place after the objects being linked to create a
18893# shared library.
18894postdeps=$lt_postdeps_RC
18895
18896# The library search path used internally by the compiler when linking
18897# a shared library.
18898compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18899
18900# Method to check whether dependent libraries are shared objects.
18901deplibs_check_method=$lt_deplibs_check_method
18902
18903# Command to use when deplibs_check_method == file_magic.
18904file_magic_cmd=$lt_file_magic_cmd
18905
18906# Flag that allows shared libraries with undefined symbols to be built.
18907allow_undefined_flag=$lt_allow_undefined_flag_RC
18908
18909# Flag that forces no undefined symbols.
18910no_undefined_flag=$lt_no_undefined_flag_RC
18911
18912# Commands used to finish a libtool library installation in a directory.
18913finish_cmds=$lt_finish_cmds
18914
18915# Same as above, but a single script fragment to be evaled but not shown.
18916finish_eval=$lt_finish_eval
18917
18918# Take the output of nm and produce a listing of raw symbols and C names.
18919global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18920
18921# Transform the output of nm in a proper C declaration
18922global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18923
18924# Transform the output of nm in a C name address pair
18925global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18926
18927# This is the shared library runtime path variable.
18928runpath_var=$runpath_var
18929
18930# This is the shared library path variable.
18931shlibpath_var=$shlibpath_var
18932
18933# Is shlibpath searched before the hard-coded library search path?
18934shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18935
18936# How to hardcode a shared library path into an executable.
18937hardcode_action=$hardcode_action_RC
18938
18939# Whether we should hardcode library paths into libraries.
18940hardcode_into_libs=$hardcode_into_libs
18941
18942# Flag to hardcode \$libdir into a binary during linking.
18943# This must work even if \$libdir does not exist.
18944hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18945
18946# If ld is used when linking, flag to hardcode \$libdir into
18947# a binary during linking. This must work even if \$libdir does
18948# not exist.
18949hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18950
18951# Whether we need a single -rpath flag with a separated argument.
18952hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18953
18954# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18955# resulting binary.
18956hardcode_direct=$hardcode_direct_RC
18957
18958# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18959# resulting binary.
18960hardcode_minus_L=$hardcode_minus_L_RC
18961
18962# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18963# the resulting binary.
18964hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18965
18966# Set to yes if building a shared library automatically hardcodes DIR into the library
18967# and all subsequent libraries and executables linked against it.
18968hardcode_automatic=$hardcode_automatic_RC
18969
18970# Variables whose values should be saved in libtool wrapper scripts and
18971# restored at relink time.
18972variables_saved_for_relink="$variables_saved_for_relink"
18973
18974# Whether libtool must link a program against all its dependency libraries.
18975link_all_deplibs=$link_all_deplibs_RC
18976
18977# Compile-time system search path for libraries
18978sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18979
18980# Run-time system search path for libraries
18981sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18982
18983# Fix the shell variable \$srcfile for the compiler.
18984fix_srcfile_path="$fix_srcfile_path_RC"
18985
18986# Set to yes if exported symbols are required.
18987always_export_symbols=$always_export_symbols_RC
18988
18989# The commands to list exported symbols.
18990export_symbols_cmds=$lt_export_symbols_cmds_RC
18991
18992# The commands to extract the exported symbol list from a shared archive.
18993extract_expsyms_cmds=$lt_extract_expsyms_cmds
18994
18995# Symbols that should not be listed in the preloaded symbols.
18996exclude_expsyms=$lt_exclude_expsyms_RC
18997
18998# Symbols that must always be exported.
18999include_expsyms=$lt_include_expsyms_RC
19000
19001# ### END LIBTOOL TAG CONFIG: $tagname
19002
19003__EOF__
19004
19005
19006else
19007  # If there is no Makefile yet, we rely on a make rule to execute
19008  # `config.status --recheck' to rerun these tests and create the
19009  # libtool script then.
19010  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19011  if test -f "$ltmain_in"; then
19012    test -f Makefile && make "$ltmain"
19013  fi
19014fi
19015
19016
19017ac_ext=c
19018ac_cpp='$CPP $CPPFLAGS'
19019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19021ac_compiler_gnu=$ac_cv_c_compiler_gnu
19022
19023CC="$lt_save_CC"
19024
19025	;;
19026
19027      *)
19028	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19029echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19030   { (exit 1); exit 1; }; }
19031	;;
19032      esac
19033
19034      # Append the new tag name to the list of available tags.
19035      if test -n "$tagname" ; then
19036      available_tags="$available_tags $tagname"
19037    fi
19038    fi
19039  done
19040  IFS="$lt_save_ifs"
19041
19042  # Now substitute the updated list of available tags.
19043  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19044    mv "${ofile}T" "$ofile"
19045    chmod +x "$ofile"
19046  else
19047    rm -f "${ofile}T"
19048    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19049echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19050   { (exit 1); exit 1; }; }
19051  fi
19052fi
19053
19054
19055
19056# This can be used to rebuild libtool when needed
19057LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19058
19059# Always use our own libtool.
19060LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19061
19062# Prevent multiple expansion
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
19087echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
19088if test "${am_cv_prog_cc_stdc+set}" = set; then
19089  echo $ECHO_N "(cached) $ECHO_C" >&6
19090else
19091  am_cv_prog_cc_stdc=no
19092ac_save_CC="$CC"
19093# Don't try gcc -ansi; that turns off useful extensions and
19094# breaks some systems' header files.
19095# AIX			-qlanglvl=ansi
19096# Ultrix and OSF/1	-std1
19097# HP-UX			-Aa -D_HPUX_SOURCE
19098# SVR4			-Xc -D__EXTENSIONS__
19099for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19100do
19101  CC="$ac_save_CC $ac_arg"
19102  cat >conftest.$ac_ext <<_ACEOF
19103/* confdefs.h.  */
19104_ACEOF
19105cat confdefs.h >>conftest.$ac_ext
19106cat >>conftest.$ac_ext <<_ACEOF
19107/* end confdefs.h.  */
19108#include <stdarg.h>
19109#include <stdio.h>
19110#include <sys/types.h>
19111#include <sys/stat.h>
19112/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19113struct buf { int x; };
19114FILE * (*rcsopen) (struct buf *, struct stat *, int);
19115static char *e (p, i)
19116     char **p;
19117     int i;
19118{
19119  return p[i];
19120}
19121static char *f (char * (*g) (char **, int), char **p, ...)
19122{
19123  char *s;
19124  va_list v;
19125  va_start (v,p);
19126  s = g (p, va_arg (v,int));
19127  va_end (v);
19128  return s;
19129}
19130int test (int i, double x);
19131struct s1 {int (*f) (int a);};
19132struct s2 {int (*f) (double a);};
19133int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19134int argc;
19135char **argv;
19136
19137int
19138main ()
19139{
19140
19141return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19142
19143  ;
19144  return 0;
19145}
19146_ACEOF
19147rm -f conftest.$ac_objext
19148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19149  (eval $ac_compile) 2>conftest.er1
19150  ac_status=$?
19151  grep -v '^ *+' conftest.er1 >conftest.err
19152  rm -f conftest.er1
19153  cat conftest.err >&5
19154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155  (exit $ac_status); } &&
19156	 { ac_try='test -z "$ac_c_werror_flag"
19157			 || test ! -s conftest.err'
19158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159  (eval $ac_try) 2>&5
19160  ac_status=$?
19161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162  (exit $ac_status); }; } &&
19163	 { ac_try='test -s conftest.$ac_objext'
19164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165  (eval $ac_try) 2>&5
19166  ac_status=$?
19167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168  (exit $ac_status); }; }; then
19169  am_cv_prog_cc_stdc="$ac_arg"; break
19170else
19171  echo "$as_me: failed program was:" >&5
19172sed 's/^/| /' conftest.$ac_ext >&5
19173
19174fi
19175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19176done
19177CC="$ac_save_CC"
19178
19179fi
19180
19181if test -z "$am_cv_prog_cc_stdc"; then
19182  echo "$as_me:$LINENO: result: none needed" >&5
19183echo "${ECHO_T}none needed" >&6
19184else
19185  echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
19186echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
19187fi
19188case "x$am_cv_prog_cc_stdc" in
19189  x|xno) ;;
19190  *) CC="$CC $am_cv_prog_cc_stdc" ;;
19191esac
19192
19193echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19194echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19195if test "${ac_cv_header_stdc+set}" = set; then
19196  echo $ECHO_N "(cached) $ECHO_C" >&6
19197else
19198  cat >conftest.$ac_ext <<_ACEOF
19199/* confdefs.h.  */
19200_ACEOF
19201cat confdefs.h >>conftest.$ac_ext
19202cat >>conftest.$ac_ext <<_ACEOF
19203/* end confdefs.h.  */
19204#include <stdlib.h>
19205#include <stdarg.h>
19206#include <string.h>
19207#include <float.h>
19208
19209int
19210main ()
19211{
19212
19213  ;
19214  return 0;
19215}
19216_ACEOF
19217rm -f conftest.$ac_objext
19218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19219  (eval $ac_compile) 2>conftest.er1
19220  ac_status=$?
19221  grep -v '^ *+' conftest.er1 >conftest.err
19222  rm -f conftest.er1
19223  cat conftest.err >&5
19224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225  (exit $ac_status); } &&
19226	 { ac_try='test -z "$ac_c_werror_flag"
19227			 || test ! -s conftest.err'
19228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229  (eval $ac_try) 2>&5
19230  ac_status=$?
19231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232  (exit $ac_status); }; } &&
19233	 { ac_try='test -s conftest.$ac_objext'
19234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235  (eval $ac_try) 2>&5
19236  ac_status=$?
19237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238  (exit $ac_status); }; }; then
19239  ac_cv_header_stdc=yes
19240else
19241  echo "$as_me: failed program was:" >&5
19242sed 's/^/| /' conftest.$ac_ext >&5
19243
19244ac_cv_header_stdc=no
19245fi
19246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19247
19248if test $ac_cv_header_stdc = yes; then
19249  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19250  cat >conftest.$ac_ext <<_ACEOF
19251/* confdefs.h.  */
19252_ACEOF
19253cat confdefs.h >>conftest.$ac_ext
19254cat >>conftest.$ac_ext <<_ACEOF
19255/* end confdefs.h.  */
19256#include <string.h>
19257
19258_ACEOF
19259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19260  $EGREP "memchr" >/dev/null 2>&1; then
19261  :
19262else
19263  ac_cv_header_stdc=no
19264fi
19265rm -f conftest*
19266
19267fi
19268
19269if test $ac_cv_header_stdc = yes; then
19270  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19271  cat >conftest.$ac_ext <<_ACEOF
19272/* confdefs.h.  */
19273_ACEOF
19274cat confdefs.h >>conftest.$ac_ext
19275cat >>conftest.$ac_ext <<_ACEOF
19276/* end confdefs.h.  */
19277#include <stdlib.h>
19278
19279_ACEOF
19280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19281  $EGREP "free" >/dev/null 2>&1; then
19282  :
19283else
19284  ac_cv_header_stdc=no
19285fi
19286rm -f conftest*
19287
19288fi
19289
19290if test $ac_cv_header_stdc = yes; then
19291  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19292  if test "$cross_compiling" = yes; then
19293  :
19294else
19295  cat >conftest.$ac_ext <<_ACEOF
19296/* confdefs.h.  */
19297_ACEOF
19298cat confdefs.h >>conftest.$ac_ext
19299cat >>conftest.$ac_ext <<_ACEOF
19300/* end confdefs.h.  */
19301#include <ctype.h>
19302#if ((' ' & 0x0FF) == 0x020)
19303# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19304# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19305#else
19306# define ISLOWER(c) \
19307		   (('a' <= (c) && (c) <= 'i') \
19308		     || ('j' <= (c) && (c) <= 'r') \
19309		     || ('s' <= (c) && (c) <= 'z'))
19310# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19311#endif
19312
19313#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19314int
19315main ()
19316{
19317  int i;
19318  for (i = 0; i < 256; i++)
19319    if (XOR (islower (i), ISLOWER (i))
19320	|| toupper (i) != TOUPPER (i))
19321      exit(2);
19322  exit (0);
19323}
19324_ACEOF
19325rm -f conftest$ac_exeext
19326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19327  (eval $ac_link) 2>&5
19328  ac_status=$?
19329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332  (eval $ac_try) 2>&5
19333  ac_status=$?
19334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335  (exit $ac_status); }; }; then
19336  :
19337else
19338  echo "$as_me: program exited with status $ac_status" >&5
19339echo "$as_me: failed program was:" >&5
19340sed 's/^/| /' conftest.$ac_ext >&5
19341
19342( exit $ac_status )
19343ac_cv_header_stdc=no
19344fi
19345rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19346fi
19347fi
19348fi
19349echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19350echo "${ECHO_T}$ac_cv_header_stdc" >&6
19351if test $ac_cv_header_stdc = yes; then
19352
19353cat >>confdefs.h <<\_ACEOF
19354#define STDC_HEADERS 1
19355_ACEOF
19356
19357fi
19358
19359#------------------------------------------------------------------------------
19360# The gnomeui library is required but the gnomeprint and gnomeprintui libraries
19361# are optional. First we verify the gnomeui library is present. Then we check
19362# for the presence of the gnomeprint libraries and set a flag to indicate the
19363# print libraries are present. Finally, we run pkg-config to get the compile and
19364# link flags for the combined set of libraries to eliminate duplications in
19365# the CFLAGS.
19366
19367
19368if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19369	if test -n "$ac_tool_prefix"; then
19370  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19371set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19372echo "$as_me:$LINENO: checking for $ac_word" >&5
19373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19374if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19375  echo $ECHO_N "(cached) $ECHO_C" >&6
19376else
19377  case $PKG_CONFIG in
19378  [\\/]* | ?:[\\/]*)
19379  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19380  ;;
19381  *)
19382  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19383for as_dir in $PATH
19384do
19385  IFS=$as_save_IFS
19386  test -z "$as_dir" && as_dir=.
19387  for ac_exec_ext in '' $ac_executable_extensions; do
19388  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19389    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19390    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19391    break 2
19392  fi
19393done
19394done
19395
19396  ;;
19397esac
19398fi
19399PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19400
19401if test -n "$PKG_CONFIG"; then
19402  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19403echo "${ECHO_T}$PKG_CONFIG" >&6
19404else
19405  echo "$as_me:$LINENO: result: no" >&5
19406echo "${ECHO_T}no" >&6
19407fi
19408
19409fi
19410if test -z "$ac_cv_path_PKG_CONFIG"; then
19411  ac_pt_PKG_CONFIG=$PKG_CONFIG
19412  # Extract the first word of "pkg-config", so it can be a program name with args.
19413set dummy pkg-config; ac_word=$2
19414echo "$as_me:$LINENO: checking for $ac_word" >&5
19415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19416if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19417  echo $ECHO_N "(cached) $ECHO_C" >&6
19418else
19419  case $ac_pt_PKG_CONFIG in
19420  [\\/]* | ?:[\\/]*)
19421  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19422  ;;
19423  *)
19424  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19425for as_dir in $PATH
19426do
19427  IFS=$as_save_IFS
19428  test -z "$as_dir" && as_dir=.
19429  for ac_exec_ext in '' $ac_executable_extensions; do
19430  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19431    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19432    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19433    break 2
19434  fi
19435done
19436done
19437
19438  ;;
19439esac
19440fi
19441ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19442
19443if test -n "$ac_pt_PKG_CONFIG"; then
19444  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19445echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
19446else
19447  echo "$as_me:$LINENO: result: no" >&5
19448echo "${ECHO_T}no" >&6
19449fi
19450
19451  PKG_CONFIG=$ac_pt_PKG_CONFIG
19452else
19453  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19454fi
19455
19456fi
19457if test -n "$PKG_CONFIG"; then
19458	_pkg_min_version=0.9.0
19459	echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19460echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
19461	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19462		echo "$as_me:$LINENO: result: yes" >&5
19463echo "${ECHO_T}yes" >&6
19464	else
19465		echo "$as_me:$LINENO: result: no" >&5
19466echo "${ECHO_T}no" >&6
19467		PKG_CONFIG=""
19468	fi
19469
19470fi
19471
19472pkg_failed=no
19473echo "$as_me:$LINENO: checking for GUI" >&5
19474echo $ECHO_N "checking for GUI... $ECHO_C" >&6
19475
19476if test -n "$PKG_CONFIG"; then
19477    if test -n "$GUI_CFLAGS"; then
19478        pkg_cv_GUI_CFLAGS="$GUI_CFLAGS"
19479    else
19480        if test -n "$PKG_CONFIG" && \
19481    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.8.0 pango >= 1.12.4 libglade-2.0 >= 2.5.1\"") >&5
19482  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.8.0 pango >= 1.12.4 libglade-2.0 >= 2.5.1") 2>&5
19483  ac_status=$?
19484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485  (exit $ac_status); }; then
19486  pkg_cv_GUI_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8.0 pango >= 1.12.4 libglade-2.0 >= 2.5.1" 2>/dev/null`
19487else
19488  pkg_failed=yes
19489fi
19490    fi
19491else
19492	pkg_failed=untried
19493fi
19494if test -n "$PKG_CONFIG"; then
19495    if test -n "$GUI_LIBS"; then
19496        pkg_cv_GUI_LIBS="$GUI_LIBS"
19497    else
19498        if test -n "$PKG_CONFIG" && \
19499    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.8.0 pango >= 1.12.4 libglade-2.0 >= 2.5.1\"") >&5
19500  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.8.0 pango >= 1.12.4 libglade-2.0 >= 2.5.1") 2>&5
19501  ac_status=$?
19502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503  (exit $ac_status); }; then
19504  pkg_cv_GUI_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8.0 pango >= 1.12.4 libglade-2.0 >= 2.5.1" 2>/dev/null`
19505else
19506  pkg_failed=yes
19507fi
19508    fi
19509else
19510	pkg_failed=untried
19511fi
19512
19513
19514
19515if test $pkg_failed = yes; then
19516
19517if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19518        _pkg_short_errors_supported=yes
19519else
19520        _pkg_short_errors_supported=no
19521fi
19522        if test $_pkg_short_errors_supported = yes; then
19523	        GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8.0 pango >= 1.12.4 libglade-2.0 >= 2.5.1"`
19524        else
19525	        GUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8.0 pango >= 1.12.4 libglade-2.0 >= 2.5.1"`
19526        fi
19527	# Put the nasty error message in config.log where it belongs
19528	echo "$GUI_PKG_ERRORS" >&5
19529
19530	{ { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.8.0 pango >= 1.12.4 libglade-2.0 >= 2.5.1) were not met:
19531
19532$GUI_PKG_ERRORS
19533
19534Consider adjusting the PKG_CONFIG_PATH environment variable if you
19535installed software in a non-standard prefix.
19536
19537Alternatively, you may set the environment variables GUI_CFLAGS
19538and GUI_LIBS to avoid the need to call pkg-config.
19539See the pkg-config man page for more details.
19540" >&5
19541echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.8.0 pango >= 1.12.4 libglade-2.0 >= 2.5.1) were not met:
19542
19543$GUI_PKG_ERRORS
19544
19545Consider adjusting the PKG_CONFIG_PATH environment variable if you
19546installed software in a non-standard prefix.
19547
19548Alternatively, you may set the environment variables GUI_CFLAGS
19549and GUI_LIBS to avoid the need to call pkg-config.
19550See the pkg-config man page for more details.
19551" >&2;}
19552   { (exit 1); exit 1; }; }
19553elif test $pkg_failed = untried; then
19554	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
19555is in your PATH or set the PKG_CONFIG environment variable to the full
19556path to pkg-config.
19557
19558Alternatively, you may set the environment variables GUI_CFLAGS
19559and GUI_LIBS to avoid the need to call pkg-config.
19560See the pkg-config man page for more details.
19561
19562To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19563See \`config.log' for more details." >&5
19564echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
19565is in your PATH or set the PKG_CONFIG environment variable to the full
19566path to pkg-config.
19567
19568Alternatively, you may set the environment variables GUI_CFLAGS
19569and GUI_LIBS to avoid the need to call pkg-config.
19570See the pkg-config man page for more details.
19571
19572To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19573See \`config.log' for more details." >&2;}
19574   { (exit 1); exit 1; }; }
19575else
19576	GUI_CFLAGS=$pkg_cv_GUI_CFLAGS
19577	GUI_LIBS=$pkg_cv_GUI_LIBS
19578        echo "$as_me:$LINENO: result: yes" >&5
19579echo "${ECHO_T}yes" >&6
19580	:
19581fi
19582
19583pkg_failed=no
19584echo "$as_me:$LINENO: checking for PRINT" >&5
19585echo $ECHO_N "checking for PRINT... $ECHO_C" >&6
19586
19587pkg_failed=no
19588echo "$as_me:$LINENO: checking for GTKPRINT" >&5
19589echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6
19590
19591if test -n "$PKG_CONFIG"; then
19592    if test -n "$GTKPRINT_CFLAGS"; then
19593        pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
19594    else
19595        if test -n "$PKG_CONFIG" && \
19596    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.10.0\"") >&5
19597  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.10.0") 2>&5
19598  ac_status=$?
19599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600  (exit $ac_status); }; then
19601  pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.10.0" 2>/dev/null`
19602else
19603  pkg_failed=yes
19604fi
19605    fi
19606else
19607	pkg_failed=untried
19608fi
19609if test -n "$PKG_CONFIG"; then
19610    if test -n "$GTKPRINT_LIBS"; then
19611        pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
19612    else
19613        if test -n "$PKG_CONFIG" && \
19614    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.10.0\"") >&5
19615  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.10.0") 2>&5
19616  ac_status=$?
19617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618  (exit $ac_status); }; then
19619  pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.10.0" 2>/dev/null`
19620else
19621  pkg_failed=yes
19622fi
19623    fi
19624else
19625	pkg_failed=untried
19626fi
19627
19628
19629
19630if test $pkg_failed = yes; then
19631
19632if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19633        _pkg_short_errors_supported=yes
19634else
19635        _pkg_short_errors_supported=no
19636fi
19637        if test $_pkg_short_errors_supported = yes; then
19638	        GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.10.0"`
19639        else
19640	        GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.10.0"`
19641        fi
19642	# Put the nasty error message in config.log where it belongs
19643	echo "$GTKPRINT_PKG_ERRORS" >&5
19644
19645	echo "GtkPrint not available
19646elif test $pkg_failed = untried; then
19647	echo "GtkPrint not available
19648else
19649	GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
19650	GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
19651        echo "$as_me:$LINENO: result: yes" >&5
19652echo "${ECHO_T}yes" >&6
19653	gpaint_have_gtk_print=1
19654fi
19655
19656
19657
19658
19659
19660if test "x$gpaint_have_gtk_print" = "x1"; then
19661    cat >>confdefs.h <<\_ACEOF
19662#define HAVE_GTK_PRINT "1"
19663_ACEOF
19664
19665    echo "printing support using gtk+"
19666elif test "x$gpaint_have_gnome_print" = "x1"; then
19667    cat >>confdefs.h <<\_ACEOF
19668#define HAVE_GNOME_PRINT "1"
19669_ACEOF
19670
19671    gpaint_gnome_libs="libgnomeprint-2.2 libgnomeprintui-2.2"
19672
19673    echo "configuring with libraries: " $gpaint_gnome_libs
19674fi
19675
19676
19677
19678
19679
19680GETTEXT_PACKAGE=gpaint-2
19681
19682cat >>confdefs.h <<_ACEOF
19683#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
19684_ACEOF
19685
19686
19687ALL_LINGUAS="am ca cs de es fr ga ja nl pt pt_BR sv uk"
19688
19689
19690for ac_header in locale.h
19691do
19692as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19693if eval "test \"\${$as_ac_Header+set}\" = set"; then
19694  echo "$as_me:$LINENO: checking for $ac_header" >&5
19695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19696if eval "test \"\${$as_ac_Header+set}\" = set"; then
19697  echo $ECHO_N "(cached) $ECHO_C" >&6
19698fi
19699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19701else
19702  # Is the header compilable?
19703echo "$as_me:$LINENO: checking $ac_header usability" >&5
19704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19705cat >conftest.$ac_ext <<_ACEOF
19706/* confdefs.h.  */
19707_ACEOF
19708cat confdefs.h >>conftest.$ac_ext
19709cat >>conftest.$ac_ext <<_ACEOF
19710/* end confdefs.h.  */
19711$ac_includes_default
19712#include <$ac_header>
19713_ACEOF
19714rm -f conftest.$ac_objext
19715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19716  (eval $ac_compile) 2>conftest.er1
19717  ac_status=$?
19718  grep -v '^ *+' conftest.er1 >conftest.err
19719  rm -f conftest.er1
19720  cat conftest.err >&5
19721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722  (exit $ac_status); } &&
19723	 { ac_try='test -z "$ac_c_werror_flag"
19724			 || test ! -s conftest.err'
19725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726  (eval $ac_try) 2>&5
19727  ac_status=$?
19728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729  (exit $ac_status); }; } &&
19730	 { ac_try='test -s conftest.$ac_objext'
19731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732  (eval $ac_try) 2>&5
19733  ac_status=$?
19734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735  (exit $ac_status); }; }; then
19736  ac_header_compiler=yes
19737else
19738  echo "$as_me: failed program was:" >&5
19739sed 's/^/| /' conftest.$ac_ext >&5
19740
19741ac_header_compiler=no
19742fi
19743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19744echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19745echo "${ECHO_T}$ac_header_compiler" >&6
19746
19747# Is the header present?
19748echo "$as_me:$LINENO: checking $ac_header presence" >&5
19749echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19750cat >conftest.$ac_ext <<_ACEOF
19751/* confdefs.h.  */
19752_ACEOF
19753cat confdefs.h >>conftest.$ac_ext
19754cat >>conftest.$ac_ext <<_ACEOF
19755/* end confdefs.h.  */
19756#include <$ac_header>
19757_ACEOF
19758if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19759  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19760  ac_status=$?
19761  grep -v '^ *+' conftest.er1 >conftest.err
19762  rm -f conftest.er1
19763  cat conftest.err >&5
19764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765  (exit $ac_status); } >/dev/null; then
19766  if test -s conftest.err; then
19767    ac_cpp_err=$ac_c_preproc_warn_flag
19768    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19769  else
19770    ac_cpp_err=
19771  fi
19772else
19773  ac_cpp_err=yes
19774fi
19775if test -z "$ac_cpp_err"; then
19776  ac_header_preproc=yes
19777else
19778  echo "$as_me: failed program was:" >&5
19779sed 's/^/| /' conftest.$ac_ext >&5
19780
19781  ac_header_preproc=no
19782fi
19783rm -f conftest.err conftest.$ac_ext
19784echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19785echo "${ECHO_T}$ac_header_preproc" >&6
19786
19787# So?  What about this header?
19788case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19789  yes:no: )
19790    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19791echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19792    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19793echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19794    ac_header_preproc=yes
19795    ;;
19796  no:yes:* )
19797    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19798echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19799    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19800echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19801    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19802echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19803    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19804echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19805    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19806echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19807    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19808echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19809    (
19810      cat <<\_ASBOX
19811## --------------------------------------------------------- ##
19812## Report this to http://savannah.gnu.org/bugs/?group=gpaint ##
19813## --------------------------------------------------------- ##
19814_ASBOX
19815    ) |
19816      sed "s/^/$as_me: WARNING:     /" >&2
19817    ;;
19818esac
19819echo "$as_me:$LINENO: checking for $ac_header" >&5
19820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19821if eval "test \"\${$as_ac_Header+set}\" = set"; then
19822  echo $ECHO_N "(cached) $ECHO_C" >&6
19823else
19824  eval "$as_ac_Header=\$ac_header_preproc"
19825fi
19826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19827echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19828
19829fi
19830if test `eval echo '${'$as_ac_Header'}'` = yes; then
19831  cat >>confdefs.h <<_ACEOF
19832#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19833_ACEOF
19834
19835fi
19836
19837done
19838
19839    if test $ac_cv_header_locale_h = yes; then
19840    echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
19841echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
19842if test "${am_cv_val_LC_MESSAGES+set}" = set; then
19843  echo $ECHO_N "(cached) $ECHO_C" >&6
19844else
19845  cat >conftest.$ac_ext <<_ACEOF
19846/* confdefs.h.  */
19847_ACEOF
19848cat confdefs.h >>conftest.$ac_ext
19849cat >>conftest.$ac_ext <<_ACEOF
19850/* end confdefs.h.  */
19851#include <locale.h>
19852int
19853main ()
19854{
19855return LC_MESSAGES
19856  ;
19857  return 0;
19858}
19859_ACEOF
19860rm -f conftest.$ac_objext conftest$ac_exeext
19861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19862  (eval $ac_link) 2>conftest.er1
19863  ac_status=$?
19864  grep -v '^ *+' conftest.er1 >conftest.err
19865  rm -f conftest.er1
19866  cat conftest.err >&5
19867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868  (exit $ac_status); } &&
19869	 { ac_try='test -z "$ac_c_werror_flag"
19870			 || test ! -s conftest.err'
19871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872  (eval $ac_try) 2>&5
19873  ac_status=$?
19874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875  (exit $ac_status); }; } &&
19876	 { ac_try='test -s conftest$ac_exeext'
19877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878  (eval $ac_try) 2>&5
19879  ac_status=$?
19880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881  (exit $ac_status); }; }; then
19882  am_cv_val_LC_MESSAGES=yes
19883else
19884  echo "$as_me: failed program was:" >&5
19885sed 's/^/| /' conftest.$ac_ext >&5
19886
19887am_cv_val_LC_MESSAGES=no
19888fi
19889rm -f conftest.err conftest.$ac_objext \
19890      conftest$ac_exeext conftest.$ac_ext
19891fi
19892echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
19893echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
19894    if test $am_cv_val_LC_MESSAGES = yes; then
19895
19896cat >>confdefs.h <<\_ACEOF
19897#define HAVE_LC_MESSAGES 1
19898_ACEOF
19899
19900    fi
19901  fi
19902     USE_NLS=yes
19903
19904
19905    gt_cv_have_gettext=no
19906
19907    CATOBJEXT=NONE
19908    XGETTEXT=:
19909    INTLLIBS=
19910
19911    if test "${ac_cv_header_libintl_h+set}" = set; then
19912  echo "$as_me:$LINENO: checking for libintl.h" >&5
19913echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
19914if test "${ac_cv_header_libintl_h+set}" = set; then
19915  echo $ECHO_N "(cached) $ECHO_C" >&6
19916fi
19917echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
19918echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
19919else
19920  # Is the header compilable?
19921echo "$as_me:$LINENO: checking libintl.h usability" >&5
19922echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
19923cat >conftest.$ac_ext <<_ACEOF
19924/* confdefs.h.  */
19925_ACEOF
19926cat confdefs.h >>conftest.$ac_ext
19927cat >>conftest.$ac_ext <<_ACEOF
19928/* end confdefs.h.  */
19929$ac_includes_default
19930#include <libintl.h>
19931_ACEOF
19932rm -f conftest.$ac_objext
19933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19934  (eval $ac_compile) 2>conftest.er1
19935  ac_status=$?
19936  grep -v '^ *+' conftest.er1 >conftest.err
19937  rm -f conftest.er1
19938  cat conftest.err >&5
19939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940  (exit $ac_status); } &&
19941	 { ac_try='test -z "$ac_c_werror_flag"
19942			 || test ! -s conftest.err'
19943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944  (eval $ac_try) 2>&5
19945  ac_status=$?
19946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947  (exit $ac_status); }; } &&
19948	 { ac_try='test -s conftest.$ac_objext'
19949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19950  (eval $ac_try) 2>&5
19951  ac_status=$?
19952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953  (exit $ac_status); }; }; then
19954  ac_header_compiler=yes
19955else
19956  echo "$as_me: failed program was:" >&5
19957sed 's/^/| /' conftest.$ac_ext >&5
19958
19959ac_header_compiler=no
19960fi
19961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19962echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19963echo "${ECHO_T}$ac_header_compiler" >&6
19964
19965# Is the header present?
19966echo "$as_me:$LINENO: checking libintl.h presence" >&5
19967echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
19968cat >conftest.$ac_ext <<_ACEOF
19969/* confdefs.h.  */
19970_ACEOF
19971cat confdefs.h >>conftest.$ac_ext
19972cat >>conftest.$ac_ext <<_ACEOF
19973/* end confdefs.h.  */
19974#include <libintl.h>
19975_ACEOF
19976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19977  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19978  ac_status=$?
19979  grep -v '^ *+' conftest.er1 >conftest.err
19980  rm -f conftest.er1
19981  cat conftest.err >&5
19982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983  (exit $ac_status); } >/dev/null; then
19984  if test -s conftest.err; then
19985    ac_cpp_err=$ac_c_preproc_warn_flag
19986    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19987  else
19988    ac_cpp_err=
19989  fi
19990else
19991  ac_cpp_err=yes
19992fi
19993if test -z "$ac_cpp_err"; then
19994  ac_header_preproc=yes
19995else
19996  echo "$as_me: failed program was:" >&5
19997sed 's/^/| /' conftest.$ac_ext >&5
19998
19999  ac_header_preproc=no
20000fi
20001rm -f conftest.err conftest.$ac_ext
20002echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20003echo "${ECHO_T}$ac_header_preproc" >&6
20004
20005# So?  What about this header?
20006case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20007  yes:no: )
20008    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20009echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20010    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
20011echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
20012    ac_header_preproc=yes
20013    ;;
20014  no:yes:* )
20015    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
20016echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
20017    { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
20018echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
20019    { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
20020echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
20021    { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
20022echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20023    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
20024echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
20025    { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
20026echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
20027    (
20028      cat <<\_ASBOX
20029## --------------------------------------------------------- ##
20030## Report this to http://savannah.gnu.org/bugs/?group=gpaint ##
20031## --------------------------------------------------------- ##
20032_ASBOX
20033    ) |
20034      sed "s/^/$as_me: WARNING:     /" >&2
20035    ;;
20036esac
20037echo "$as_me:$LINENO: checking for libintl.h" >&5
20038echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
20039if test "${ac_cv_header_libintl_h+set}" = set; then
20040  echo $ECHO_N "(cached) $ECHO_C" >&6
20041else
20042  ac_cv_header_libintl_h=$ac_header_preproc
20043fi
20044echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20045echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
20046
20047fi
20048if test $ac_cv_header_libintl_h = yes; then
20049  gt_cv_func_dgettext_libintl="no"
20050      libintl_extra_libs=""
20051
20052      #
20053      # First check in libc
20054      #
20055      echo "$as_me:$LINENO: checking for ngettext in libc" >&5
20056echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6
20057if test "${gt_cv_func_ngettext_libc+set}" = set; then
20058  echo $ECHO_N "(cached) $ECHO_C" >&6
20059else
20060  cat >conftest.$ac_ext <<_ACEOF
20061/* confdefs.h.  */
20062_ACEOF
20063cat confdefs.h >>conftest.$ac_ext
20064cat >>conftest.$ac_ext <<_ACEOF
20065/* end confdefs.h.  */
20066
20067#include <libintl.h>
20068
20069int
20070main ()
20071{
20072return !ngettext ("","", 1)
20073  ;
20074  return 0;
20075}
20076_ACEOF
20077rm -f conftest.$ac_objext conftest$ac_exeext
20078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20079  (eval $ac_link) 2>conftest.er1
20080  ac_status=$?
20081  grep -v '^ *+' conftest.er1 >conftest.err
20082  rm -f conftest.er1
20083  cat conftest.err >&5
20084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085  (exit $ac_status); } &&
20086	 { ac_try='test -z "$ac_c_werror_flag"
20087			 || test ! -s conftest.err'
20088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089  (eval $ac_try) 2>&5
20090  ac_status=$?
20091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092  (exit $ac_status); }; } &&
20093	 { ac_try='test -s conftest$ac_exeext'
20094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095  (eval $ac_try) 2>&5
20096  ac_status=$?
20097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098  (exit $ac_status); }; }; then
20099  gt_cv_func_ngettext_libc=yes
20100else
20101  echo "$as_me: failed program was:" >&5
20102sed 's/^/| /' conftest.$ac_ext >&5
20103
20104gt_cv_func_ngettext_libc=no
20105fi
20106rm -f conftest.err conftest.$ac_objext \
20107      conftest$ac_exeext conftest.$ac_ext
20108
20109fi
20110echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
20111echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6
20112
20113      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
20114	      echo "$as_me:$LINENO: checking for dgettext in libc" >&5
20115echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
20116if test "${gt_cv_func_dgettext_libc+set}" = set; then
20117  echo $ECHO_N "(cached) $ECHO_C" >&6
20118else
20119  cat >conftest.$ac_ext <<_ACEOF
20120/* confdefs.h.  */
20121_ACEOF
20122cat confdefs.h >>conftest.$ac_ext
20123cat >>conftest.$ac_ext <<_ACEOF
20124/* end confdefs.h.  */
20125
20126#include <libintl.h>
20127
20128int
20129main ()
20130{
20131return !dgettext ("","")
20132  ;
20133  return 0;
20134}
20135_ACEOF
20136rm -f conftest.$ac_objext conftest$ac_exeext
20137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20138  (eval $ac_link) 2>conftest.er1
20139  ac_status=$?
20140  grep -v '^ *+' conftest.er1 >conftest.err
20141  rm -f conftest.er1
20142  cat conftest.err >&5
20143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144  (exit $ac_status); } &&
20145	 { ac_try='test -z "$ac_c_werror_flag"
20146			 || test ! -s conftest.err'
20147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148  (eval $ac_try) 2>&5
20149  ac_status=$?
20150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151  (exit $ac_status); }; } &&
20152	 { ac_try='test -s conftest$ac_exeext'
20153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154  (eval $ac_try) 2>&5
20155  ac_status=$?
20156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157  (exit $ac_status); }; }; then
20158  gt_cv_func_dgettext_libc=yes
20159else
20160  echo "$as_me: failed program was:" >&5
20161sed 's/^/| /' conftest.$ac_ext >&5
20162
20163gt_cv_func_dgettext_libc=no
20164fi
20165rm -f conftest.err conftest.$ac_objext \
20166      conftest$ac_exeext conftest.$ac_ext
20167
20168fi
20169echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
20170echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
20171      fi
20172
20173      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
20174
20175for ac_func in bind_textdomain_codeset
20176do
20177as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20178echo "$as_me:$LINENO: checking for $ac_func" >&5
20179echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20180if eval "test \"\${$as_ac_var+set}\" = set"; then
20181  echo $ECHO_N "(cached) $ECHO_C" >&6
20182else
20183  cat >conftest.$ac_ext <<_ACEOF
20184/* confdefs.h.  */
20185_ACEOF
20186cat confdefs.h >>conftest.$ac_ext
20187cat >>conftest.$ac_ext <<_ACEOF
20188/* end confdefs.h.  */
20189/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20190   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20191#define $ac_func innocuous_$ac_func
20192
20193/* System header to define __stub macros and hopefully few prototypes,
20194    which can conflict with char $ac_func (); below.
20195    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20196    <limits.h> exists even on freestanding compilers.  */
20197
20198#ifdef __STDC__
20199# include <limits.h>
20200#else
20201# include <assert.h>
20202#endif
20203
20204#undef $ac_func
20205
20206/* Override any gcc2 internal prototype to avoid an error.  */
20207#ifdef __cplusplus
20208extern "C"
20209{
20210#endif
20211/* We use char because int might match the return type of a gcc2
20212   builtin and then its argument prototype would still apply.  */
20213char $ac_func ();
20214/* The GNU C library defines this for functions which it implements
20215    to always fail with ENOSYS.  Some functions are actually named
20216    something starting with __ and the normal name is an alias.  */
20217#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20218choke me
20219#else
20220char (*f) () = $ac_func;
20221#endif
20222#ifdef __cplusplus
20223}
20224#endif
20225
20226int
20227main ()
20228{
20229return f != $ac_func;
20230  ;
20231  return 0;
20232}
20233_ACEOF
20234rm -f conftest.$ac_objext conftest$ac_exeext
20235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20236  (eval $ac_link) 2>conftest.er1
20237  ac_status=$?
20238  grep -v '^ *+' conftest.er1 >conftest.err
20239  rm -f conftest.er1
20240  cat conftest.err >&5
20241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242  (exit $ac_status); } &&
20243	 { ac_try='test -z "$ac_c_werror_flag"
20244			 || test ! -s conftest.err'
20245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246  (eval $ac_try) 2>&5
20247  ac_status=$?
20248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249  (exit $ac_status); }; } &&
20250	 { ac_try='test -s conftest$ac_exeext'
20251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252  (eval $ac_try) 2>&5
20253  ac_status=$?
20254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255  (exit $ac_status); }; }; then
20256  eval "$as_ac_var=yes"
20257else
20258  echo "$as_me: failed program was:" >&5
20259sed 's/^/| /' conftest.$ac_ext >&5
20260
20261eval "$as_ac_var=no"
20262fi
20263rm -f conftest.err conftest.$ac_objext \
20264      conftest$ac_exeext conftest.$ac_ext
20265fi
20266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20267echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20268if test `eval echo '${'$as_ac_var'}'` = yes; then
20269  cat >>confdefs.h <<_ACEOF
20270#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20271_ACEOF
20272
20273fi
20274done
20275
20276      fi
20277
20278      #
20279      # If we don't have everything we want, check in libintl
20280      #
20281      if test "$gt_cv_func_dgettext_libc" != "yes" \
20282	 || test "$gt_cv_func_ngettext_libc" != "yes" \
20283         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
20284
20285        echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
20286echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
20287if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
20288  echo $ECHO_N "(cached) $ECHO_C" >&6
20289else
20290  ac_check_lib_save_LIBS=$LIBS
20291LIBS="-lintl  $LIBS"
20292cat >conftest.$ac_ext <<_ACEOF
20293/* confdefs.h.  */
20294_ACEOF
20295cat confdefs.h >>conftest.$ac_ext
20296cat >>conftest.$ac_ext <<_ACEOF
20297/* end confdefs.h.  */
20298
20299/* Override any gcc2 internal prototype to avoid an error.  */
20300#ifdef __cplusplus
20301extern "C"
20302#endif
20303/* We use char because int might match the return type of a gcc2
20304   builtin and then its argument prototype would still apply.  */
20305char bindtextdomain ();
20306int
20307main ()
20308{
20309bindtextdomain ();
20310  ;
20311  return 0;
20312}
20313_ACEOF
20314rm -f conftest.$ac_objext conftest$ac_exeext
20315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20316  (eval $ac_link) 2>conftest.er1
20317  ac_status=$?
20318  grep -v '^ *+' conftest.er1 >conftest.err
20319  rm -f conftest.er1
20320  cat conftest.err >&5
20321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322  (exit $ac_status); } &&
20323	 { ac_try='test -z "$ac_c_werror_flag"
20324			 || test ! -s conftest.err'
20325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326  (eval $ac_try) 2>&5
20327  ac_status=$?
20328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329  (exit $ac_status); }; } &&
20330	 { ac_try='test -s conftest$ac_exeext'
20331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332  (eval $ac_try) 2>&5
20333  ac_status=$?
20334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335  (exit $ac_status); }; }; then
20336  ac_cv_lib_intl_bindtextdomain=yes
20337else
20338  echo "$as_me: failed program was:" >&5
20339sed 's/^/| /' conftest.$ac_ext >&5
20340
20341ac_cv_lib_intl_bindtextdomain=no
20342fi
20343rm -f conftest.err conftest.$ac_objext \
20344      conftest$ac_exeext conftest.$ac_ext
20345LIBS=$ac_check_lib_save_LIBS
20346fi
20347echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
20348echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
20349if test $ac_cv_lib_intl_bindtextdomain = yes; then
20350  echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
20351echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
20352if test "${ac_cv_lib_intl_ngettext+set}" = set; then
20353  echo $ECHO_N "(cached) $ECHO_C" >&6
20354else
20355  ac_check_lib_save_LIBS=$LIBS
20356LIBS="-lintl  $LIBS"
20357cat >conftest.$ac_ext <<_ACEOF
20358/* confdefs.h.  */
20359_ACEOF
20360cat confdefs.h >>conftest.$ac_ext
20361cat >>conftest.$ac_ext <<_ACEOF
20362/* end confdefs.h.  */
20363
20364/* Override any gcc2 internal prototype to avoid an error.  */
20365#ifdef __cplusplus
20366extern "C"
20367#endif
20368/* We use char because int might match the return type of a gcc2
20369   builtin and then its argument prototype would still apply.  */
20370char ngettext ();
20371int
20372main ()
20373{
20374ngettext ();
20375  ;
20376  return 0;
20377}
20378_ACEOF
20379rm -f conftest.$ac_objext conftest$ac_exeext
20380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20381  (eval $ac_link) 2>conftest.er1
20382  ac_status=$?
20383  grep -v '^ *+' conftest.er1 >conftest.err
20384  rm -f conftest.er1
20385  cat conftest.err >&5
20386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387  (exit $ac_status); } &&
20388	 { ac_try='test -z "$ac_c_werror_flag"
20389			 || test ! -s conftest.err'
20390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391  (eval $ac_try) 2>&5
20392  ac_status=$?
20393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394  (exit $ac_status); }; } &&
20395	 { ac_try='test -s conftest$ac_exeext'
20396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397  (eval $ac_try) 2>&5
20398  ac_status=$?
20399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400  (exit $ac_status); }; }; then
20401  ac_cv_lib_intl_ngettext=yes
20402else
20403  echo "$as_me: failed program was:" >&5
20404sed 's/^/| /' conftest.$ac_ext >&5
20405
20406ac_cv_lib_intl_ngettext=no
20407fi
20408rm -f conftest.err conftest.$ac_objext \
20409      conftest$ac_exeext conftest.$ac_ext
20410LIBS=$ac_check_lib_save_LIBS
20411fi
20412echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
20413echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
20414if test $ac_cv_lib_intl_ngettext = yes; then
20415  echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20416echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20417if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20418  echo $ECHO_N "(cached) $ECHO_C" >&6
20419else
20420  ac_check_lib_save_LIBS=$LIBS
20421LIBS="-lintl  $LIBS"
20422cat >conftest.$ac_ext <<_ACEOF
20423/* confdefs.h.  */
20424_ACEOF
20425cat confdefs.h >>conftest.$ac_ext
20426cat >>conftest.$ac_ext <<_ACEOF
20427/* end confdefs.h.  */
20428
20429/* Override any gcc2 internal prototype to avoid an error.  */
20430#ifdef __cplusplus
20431extern "C"
20432#endif
20433/* We use char because int might match the return type of a gcc2
20434   builtin and then its argument prototype would still apply.  */
20435char dgettext ();
20436int
20437main ()
20438{
20439dgettext ();
20440  ;
20441  return 0;
20442}
20443_ACEOF
20444rm -f conftest.$ac_objext conftest$ac_exeext
20445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20446  (eval $ac_link) 2>conftest.er1
20447  ac_status=$?
20448  grep -v '^ *+' conftest.er1 >conftest.err
20449  rm -f conftest.er1
20450  cat conftest.err >&5
20451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452  (exit $ac_status); } &&
20453	 { ac_try='test -z "$ac_c_werror_flag"
20454			 || test ! -s conftest.err'
20455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456  (eval $ac_try) 2>&5
20457  ac_status=$?
20458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459  (exit $ac_status); }; } &&
20460	 { ac_try='test -s conftest$ac_exeext'
20461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462  (eval $ac_try) 2>&5
20463  ac_status=$?
20464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465  (exit $ac_status); }; }; then
20466  ac_cv_lib_intl_dgettext=yes
20467else
20468  echo "$as_me: failed program was:" >&5
20469sed 's/^/| /' conftest.$ac_ext >&5
20470
20471ac_cv_lib_intl_dgettext=no
20472fi
20473rm -f conftest.err conftest.$ac_objext \
20474      conftest$ac_exeext conftest.$ac_ext
20475LIBS=$ac_check_lib_save_LIBS
20476fi
20477echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20478echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20479if test $ac_cv_lib_intl_dgettext = yes; then
20480  gt_cv_func_dgettext_libintl=yes
20481fi
20482
20483fi
20484
20485fi
20486
20487
20488	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
20489	  echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
20490echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
20491	  echo "$as_me:$LINENO: result: " >&5
20492echo "${ECHO_T}" >&6
20493  	  echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
20494echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
20495if test "${ac_cv_lib_intl_ngettext+set}" = set; then
20496  echo $ECHO_N "(cached) $ECHO_C" >&6
20497else
20498  ac_check_lib_save_LIBS=$LIBS
20499LIBS="-lintl -liconv $LIBS"
20500cat >conftest.$ac_ext <<_ACEOF
20501/* confdefs.h.  */
20502_ACEOF
20503cat confdefs.h >>conftest.$ac_ext
20504cat >>conftest.$ac_ext <<_ACEOF
20505/* end confdefs.h.  */
20506
20507/* Override any gcc2 internal prototype to avoid an error.  */
20508#ifdef __cplusplus
20509extern "C"
20510#endif
20511/* We use char because int might match the return type of a gcc2
20512   builtin and then its argument prototype would still apply.  */
20513char ngettext ();
20514int
20515main ()
20516{
20517ngettext ();
20518  ;
20519  return 0;
20520}
20521_ACEOF
20522rm -f conftest.$ac_objext conftest$ac_exeext
20523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20524  (eval $ac_link) 2>conftest.er1
20525  ac_status=$?
20526  grep -v '^ *+' conftest.er1 >conftest.err
20527  rm -f conftest.er1
20528  cat conftest.err >&5
20529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530  (exit $ac_status); } &&
20531	 { ac_try='test -z "$ac_c_werror_flag"
20532			 || test ! -s conftest.err'
20533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534  (eval $ac_try) 2>&5
20535  ac_status=$?
20536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537  (exit $ac_status); }; } &&
20538	 { ac_try='test -s conftest$ac_exeext'
20539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540  (eval $ac_try) 2>&5
20541  ac_status=$?
20542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543  (exit $ac_status); }; }; then
20544  ac_cv_lib_intl_ngettext=yes
20545else
20546  echo "$as_me: failed program was:" >&5
20547sed 's/^/| /' conftest.$ac_ext >&5
20548
20549ac_cv_lib_intl_ngettext=no
20550fi
20551rm -f conftest.err conftest.$ac_objext \
20552      conftest$ac_exeext conftest.$ac_ext
20553LIBS=$ac_check_lib_save_LIBS
20554fi
20555echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
20556echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
20557if test $ac_cv_lib_intl_ngettext = yes; then
20558  echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
20559echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
20560if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
20561  echo $ECHO_N "(cached) $ECHO_C" >&6
20562else
20563  ac_check_lib_save_LIBS=$LIBS
20564LIBS="-lintl -liconv $LIBS"
20565cat >conftest.$ac_ext <<_ACEOF
20566/* confdefs.h.  */
20567_ACEOF
20568cat confdefs.h >>conftest.$ac_ext
20569cat >>conftest.$ac_ext <<_ACEOF
20570/* end confdefs.h.  */
20571
20572/* Override any gcc2 internal prototype to avoid an error.  */
20573#ifdef __cplusplus
20574extern "C"
20575#endif
20576/* We use char because int might match the return type of a gcc2
20577   builtin and then its argument prototype would still apply.  */
20578char dcgettext ();
20579int
20580main ()
20581{
20582dcgettext ();
20583  ;
20584  return 0;
20585}
20586_ACEOF
20587rm -f conftest.$ac_objext conftest$ac_exeext
20588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20589  (eval $ac_link) 2>conftest.er1
20590  ac_status=$?
20591  grep -v '^ *+' conftest.er1 >conftest.err
20592  rm -f conftest.er1
20593  cat conftest.err >&5
20594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595  (exit $ac_status); } &&
20596	 { ac_try='test -z "$ac_c_werror_flag"
20597			 || test ! -s conftest.err'
20598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599  (eval $ac_try) 2>&5
20600  ac_status=$?
20601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602  (exit $ac_status); }; } &&
20603	 { ac_try='test -s conftest$ac_exeext'
20604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605  (eval $ac_try) 2>&5
20606  ac_status=$?
20607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608  (exit $ac_status); }; }; then
20609  ac_cv_lib_intl_dcgettext=yes
20610else
20611  echo "$as_me: failed program was:" >&5
20612sed 's/^/| /' conftest.$ac_ext >&5
20613
20614ac_cv_lib_intl_dcgettext=no
20615fi
20616rm -f conftest.err conftest.$ac_objext \
20617      conftest$ac_exeext conftest.$ac_ext
20618LIBS=$ac_check_lib_save_LIBS
20619fi
20620echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
20621echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
20622if test $ac_cv_lib_intl_dcgettext = yes; then
20623  gt_cv_func_dgettext_libintl=yes
20624			libintl_extra_libs=-liconv
20625else
20626  :
20627fi
20628
20629else
20630  :
20631fi
20632
20633        fi
20634
20635        #
20636        # If we found libintl, then check in it for bind_textdomain_codeset();
20637        # we'll prefer libc if neither have bind_textdomain_codeset(),
20638        # and both have dgettext and ngettext
20639        #
20640        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
20641          glib_save_LIBS="$LIBS"
20642          LIBS="$LIBS -lintl $libintl_extra_libs"
20643          unset ac_cv_func_bind_textdomain_codeset
20644
20645for ac_func in bind_textdomain_codeset
20646do
20647as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20648echo "$as_me:$LINENO: checking for $ac_func" >&5
20649echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20650if eval "test \"\${$as_ac_var+set}\" = set"; then
20651  echo $ECHO_N "(cached) $ECHO_C" >&6
20652else
20653  cat >conftest.$ac_ext <<_ACEOF
20654/* confdefs.h.  */
20655_ACEOF
20656cat confdefs.h >>conftest.$ac_ext
20657cat >>conftest.$ac_ext <<_ACEOF
20658/* end confdefs.h.  */
20659/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20660   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20661#define $ac_func innocuous_$ac_func
20662
20663/* System header to define __stub macros and hopefully few prototypes,
20664    which can conflict with char $ac_func (); below.
20665    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20666    <limits.h> exists even on freestanding compilers.  */
20667
20668#ifdef __STDC__
20669# include <limits.h>
20670#else
20671# include <assert.h>
20672#endif
20673
20674#undef $ac_func
20675
20676/* Override any gcc2 internal prototype to avoid an error.  */
20677#ifdef __cplusplus
20678extern "C"
20679{
20680#endif
20681/* We use char because int might match the return type of a gcc2
20682   builtin and then its argument prototype would still apply.  */
20683char $ac_func ();
20684/* The GNU C library defines this for functions which it implements
20685    to always fail with ENOSYS.  Some functions are actually named
20686    something starting with __ and the normal name is an alias.  */
20687#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20688choke me
20689#else
20690char (*f) () = $ac_func;
20691#endif
20692#ifdef __cplusplus
20693}
20694#endif
20695
20696int
20697main ()
20698{
20699return f != $ac_func;
20700  ;
20701  return 0;
20702}
20703_ACEOF
20704rm -f conftest.$ac_objext conftest$ac_exeext
20705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20706  (eval $ac_link) 2>conftest.er1
20707  ac_status=$?
20708  grep -v '^ *+' conftest.er1 >conftest.err
20709  rm -f conftest.er1
20710  cat conftest.err >&5
20711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712  (exit $ac_status); } &&
20713	 { ac_try='test -z "$ac_c_werror_flag"
20714			 || test ! -s conftest.err'
20715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20716  (eval $ac_try) 2>&5
20717  ac_status=$?
20718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719  (exit $ac_status); }; } &&
20720	 { ac_try='test -s conftest$ac_exeext'
20721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20722  (eval $ac_try) 2>&5
20723  ac_status=$?
20724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725  (exit $ac_status); }; }; then
20726  eval "$as_ac_var=yes"
20727else
20728  echo "$as_me: failed program was:" >&5
20729sed 's/^/| /' conftest.$ac_ext >&5
20730
20731eval "$as_ac_var=no"
20732fi
20733rm -f conftest.err conftest.$ac_objext \
20734      conftest$ac_exeext conftest.$ac_ext
20735fi
20736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20737echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20738if test `eval echo '${'$as_ac_var'}'` = yes; then
20739  cat >>confdefs.h <<_ACEOF
20740#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20741_ACEOF
20742
20743fi
20744done
20745
20746          LIBS="$glib_save_LIBS"
20747
20748          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
20749            gt_cv_func_dgettext_libc=no
20750          else
20751            if test "$gt_cv_func_dgettext_libc" = "yes" \
20752		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
20753              gt_cv_func_dgettext_libintl=no
20754            fi
20755          fi
20756        fi
20757      fi
20758
20759      if test "$gt_cv_func_dgettext_libc" = "yes" \
20760	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
20761        gt_cv_have_gettext=yes
20762      fi
20763
20764      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
20765        INTLLIBS="-lintl $libintl_extra_libs"
20766      fi
20767
20768      if test "$gt_cv_have_gettext" = "yes"; then
20769
20770cat >>confdefs.h <<\_ACEOF
20771#define HAVE_GETTEXT 1
20772_ACEOF
20773
20774	# Extract the first word of "msgfmt", so it can be a program name with args.
20775set dummy msgfmt; ac_word=$2
20776echo "$as_me:$LINENO: checking for $ac_word" >&5
20777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20778if test "${ac_cv_path_MSGFMT+set}" = set; then
20779  echo $ECHO_N "(cached) $ECHO_C" >&6
20780else
20781  case "$MSGFMT" in
20782  /*)
20783  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20784  ;;
20785  *)
20786  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
20787  for ac_dir in $PATH; do
20788    test -z "$ac_dir" && ac_dir=.
20789    if test -f $ac_dir/$ac_word; then
20790      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
20791	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
20792	break
20793      fi
20794    fi
20795  done
20796  IFS="$ac_save_ifs"
20797  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
20798  ;;
20799esac
20800fi
20801MSGFMT="$ac_cv_path_MSGFMT"
20802if test "$MSGFMT" != "no"; then
20803  echo "$as_me:$LINENO: result: $MSGFMT" >&5
20804echo "${ECHO_T}$MSGFMT" >&6
20805else
20806  echo "$as_me:$LINENO: result: no" >&5
20807echo "${ECHO_T}no" >&6
20808fi
20809	if test "$MSGFMT" != "no"; then
20810          glib_save_LIBS="$LIBS"
20811          LIBS="$LIBS $INTLLIBS"
20812
20813for ac_func in dcgettext
20814do
20815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20816echo "$as_me:$LINENO: checking for $ac_func" >&5
20817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20818if eval "test \"\${$as_ac_var+set}\" = set"; then
20819  echo $ECHO_N "(cached) $ECHO_C" >&6
20820else
20821  cat >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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20828   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20829#define $ac_func innocuous_$ac_func
20830
20831/* System header to define __stub macros and hopefully few prototypes,
20832    which can conflict with char $ac_func (); below.
20833    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20834    <limits.h> exists even on freestanding compilers.  */
20835
20836#ifdef __STDC__
20837# include <limits.h>
20838#else
20839# include <assert.h>
20840#endif
20841
20842#undef $ac_func
20843
20844/* Override any gcc2 internal prototype to avoid an error.  */
20845#ifdef __cplusplus
20846extern "C"
20847{
20848#endif
20849/* We use char because int might match the return type of a gcc2
20850   builtin and then its argument prototype would still apply.  */
20851char $ac_func ();
20852/* The GNU C library defines this for functions which it implements
20853    to always fail with ENOSYS.  Some functions are actually named
20854    something starting with __ and the normal name is an alias.  */
20855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20856choke me
20857#else
20858char (*f) () = $ac_func;
20859#endif
20860#ifdef __cplusplus
20861}
20862#endif
20863
20864int
20865main ()
20866{
20867return f != $ac_func;
20868  ;
20869  return 0;
20870}
20871_ACEOF
20872rm -f conftest.$ac_objext conftest$ac_exeext
20873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20874  (eval $ac_link) 2>conftest.er1
20875  ac_status=$?
20876  grep -v '^ *+' conftest.er1 >conftest.err
20877  rm -f conftest.er1
20878  cat conftest.err >&5
20879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880  (exit $ac_status); } &&
20881	 { ac_try='test -z "$ac_c_werror_flag"
20882			 || test ! -s conftest.err'
20883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884  (eval $ac_try) 2>&5
20885  ac_status=$?
20886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887  (exit $ac_status); }; } &&
20888	 { ac_try='test -s conftest$ac_exeext'
20889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890  (eval $ac_try) 2>&5
20891  ac_status=$?
20892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893  (exit $ac_status); }; }; then
20894  eval "$as_ac_var=yes"
20895else
20896  echo "$as_me: failed program was:" >&5
20897sed 's/^/| /' conftest.$ac_ext >&5
20898
20899eval "$as_ac_var=no"
20900fi
20901rm -f conftest.err conftest.$ac_objext \
20902      conftest$ac_exeext conftest.$ac_ext
20903fi
20904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20905echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20906if test `eval echo '${'$as_ac_var'}'` = yes; then
20907  cat >>confdefs.h <<_ACEOF
20908#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20909_ACEOF
20910
20911fi
20912done
20913
20914	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
20915set dummy gmsgfmt; ac_word=$2
20916echo "$as_me:$LINENO: checking for $ac_word" >&5
20917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20918if test "${ac_cv_path_GMSGFMT+set}" = set; then
20919  echo $ECHO_N "(cached) $ECHO_C" >&6
20920else
20921  case $GMSGFMT in
20922  [\\/]* | ?:[\\/]*)
20923  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20924  ;;
20925  *)
20926  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20927for as_dir in $PATH
20928do
20929  IFS=$as_save_IFS
20930  test -z "$as_dir" && as_dir=.
20931  for ac_exec_ext in '' $ac_executable_extensions; do
20932  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20933    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20934    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20935    break 2
20936  fi
20937done
20938done
20939
20940  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20941  ;;
20942esac
20943fi
20944GMSGFMT=$ac_cv_path_GMSGFMT
20945
20946if test -n "$GMSGFMT"; then
20947  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
20948echo "${ECHO_T}$GMSGFMT" >&6
20949else
20950  echo "$as_me:$LINENO: result: no" >&5
20951echo "${ECHO_T}no" >&6
20952fi
20953
20954	  # Extract the first word of "xgettext", so it can be a program name with args.
20955set dummy xgettext; ac_word=$2
20956echo "$as_me:$LINENO: checking for $ac_word" >&5
20957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20958if test "${ac_cv_path_XGETTEXT+set}" = set; then
20959  echo $ECHO_N "(cached) $ECHO_C" >&6
20960else
20961  case "$XGETTEXT" in
20962  /*)
20963  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20964  ;;
20965  *)
20966  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
20967  for ac_dir in $PATH; do
20968    test -z "$ac_dir" && ac_dir=.
20969    if test -f $ac_dir/$ac_word; then
20970      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
20971	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
20972	break
20973      fi
20974    fi
20975  done
20976  IFS="$ac_save_ifs"
20977  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
20978  ;;
20979esac
20980fi
20981XGETTEXT="$ac_cv_path_XGETTEXT"
20982if test "$XGETTEXT" != ":"; then
20983  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20984echo "${ECHO_T}$XGETTEXT" >&6
20985else
20986  echo "$as_me:$LINENO: result: no" >&5
20987echo "${ECHO_T}no" >&6
20988fi
20989
20990	  cat >conftest.$ac_ext <<_ACEOF
20991/* confdefs.h.  */
20992_ACEOF
20993cat confdefs.h >>conftest.$ac_ext
20994cat >>conftest.$ac_ext <<_ACEOF
20995/* end confdefs.h.  */
20996
20997int
20998main ()
20999{
21000extern int _nl_msg_cat_cntr;
21001			 return _nl_msg_cat_cntr
21002  ;
21003  return 0;
21004}
21005_ACEOF
21006rm -f conftest.$ac_objext conftest$ac_exeext
21007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21008  (eval $ac_link) 2>conftest.er1
21009  ac_status=$?
21010  grep -v '^ *+' conftest.er1 >conftest.err
21011  rm -f conftest.er1
21012  cat conftest.err >&5
21013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014  (exit $ac_status); } &&
21015	 { ac_try='test -z "$ac_c_werror_flag"
21016			 || test ! -s conftest.err'
21017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018  (eval $ac_try) 2>&5
21019  ac_status=$?
21020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021  (exit $ac_status); }; } &&
21022	 { ac_try='test -s conftest$ac_exeext'
21023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024  (eval $ac_try) 2>&5
21025  ac_status=$?
21026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027  (exit $ac_status); }; }; then
21028  CATOBJEXT=.gmo
21029             DATADIRNAME=share
21030else
21031  echo "$as_me: failed program was:" >&5
21032sed 's/^/| /' conftest.$ac_ext >&5
21033
21034case $host in
21035	    *-*-solaris*)
21036	    	                	    	                echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
21037echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
21038if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
21039  echo $ECHO_N "(cached) $ECHO_C" >&6
21040else
21041  cat >conftest.$ac_ext <<_ACEOF
21042/* confdefs.h.  */
21043_ACEOF
21044cat confdefs.h >>conftest.$ac_ext
21045cat >>conftest.$ac_ext <<_ACEOF
21046/* end confdefs.h.  */
21047/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
21048   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21049#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
21050
21051/* System header to define __stub macros and hopefully few prototypes,
21052    which can conflict with char bind_textdomain_codeset (); below.
21053    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21054    <limits.h> exists even on freestanding compilers.  */
21055
21056#ifdef __STDC__
21057# include <limits.h>
21058#else
21059# include <assert.h>
21060#endif
21061
21062#undef bind_textdomain_codeset
21063
21064/* Override any gcc2 internal prototype to avoid an error.  */
21065#ifdef __cplusplus
21066extern "C"
21067{
21068#endif
21069/* We use char because int might match the return type of a gcc2
21070   builtin and then its argument prototype would still apply.  */
21071char bind_textdomain_codeset ();
21072/* The GNU C library defines this for functions which it implements
21073    to always fail with ENOSYS.  Some functions are actually named
21074    something starting with __ and the normal name is an alias.  */
21075#if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
21076choke me
21077#else
21078char (*f) () = bind_textdomain_codeset;
21079#endif
21080#ifdef __cplusplus
21081}
21082#endif
21083
21084int
21085main ()
21086{
21087return f != bind_textdomain_codeset;
21088  ;
21089  return 0;
21090}
21091_ACEOF
21092rm -f conftest.$ac_objext conftest$ac_exeext
21093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21094  (eval $ac_link) 2>conftest.er1
21095  ac_status=$?
21096  grep -v '^ *+' conftest.er1 >conftest.err
21097  rm -f conftest.er1
21098  cat conftest.err >&5
21099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100  (exit $ac_status); } &&
21101	 { ac_try='test -z "$ac_c_werror_flag"
21102			 || test ! -s conftest.err'
21103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104  (eval $ac_try) 2>&5
21105  ac_status=$?
21106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107  (exit $ac_status); }; } &&
21108	 { ac_try='test -s conftest$ac_exeext'
21109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110  (eval $ac_try) 2>&5
21111  ac_status=$?
21112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113  (exit $ac_status); }; }; then
21114  ac_cv_func_bind_textdomain_codeset=yes
21115else
21116  echo "$as_me: failed program was:" >&5
21117sed 's/^/| /' conftest.$ac_ext >&5
21118
21119ac_cv_func_bind_textdomain_codeset=no
21120fi
21121rm -f conftest.err conftest.$ac_objext \
21122      conftest$ac_exeext conftest.$ac_ext
21123fi
21124echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
21125echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
21126if test $ac_cv_func_bind_textdomain_codeset = yes; then
21127  CATOBJEXT=.gmo
21128               DATADIRNAME=share
21129else
21130  CATOBJEXT=.mo
21131               DATADIRNAME=lib
21132fi
21133
21134	    ;;
21135	    *)
21136	    CATOBJEXT=.mo
21137            DATADIRNAME=lib
21138	    ;;
21139	    esac
21140fi
21141rm -f conftest.err conftest.$ac_objext \
21142      conftest$ac_exeext conftest.$ac_ext
21143          LIBS="$glib_save_LIBS"
21144	  INSTOBJEXT=.mo
21145	else
21146	  gt_cv_have_gettext=no
21147	fi
21148      fi
21149
21150fi
21151
21152
21153
21154    if test "$gt_cv_have_gettext" = "yes" ; then
21155
21156cat >>confdefs.h <<\_ACEOF
21157#define ENABLE_NLS 1
21158_ACEOF
21159
21160    fi
21161
21162        if test "$XGETTEXT" != ":"; then
21163                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
21164        : ;
21165      else
21166        echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
21167echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
21168        XGETTEXT=":"
21169      fi
21170    fi
21171
21172    # We need to process the po/ directory.
21173    POSUB=po
21174
21175              ac_config_commands="$ac_config_commands default-1"
21176
21177
21178                for lang in $ALL_LINGUAS; do
21179      GMOFILES="$GMOFILES $lang.gmo"
21180      POFILES="$POFILES $lang.po"
21181    done
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195   if test "$gt_cv_have_gettext" = "yes"; then
21196     if test "x$ALL_LINGUAS" = "x"; then
21197       LINGUAS=
21198     else
21199       echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
21200echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
21201       NEW_LINGUAS=
21202       for presentlang in $ALL_LINGUAS; do
21203         useit=no
21204         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
21205           desiredlanguages="$LINGUAS"
21206         else
21207           desiredlanguages="$ALL_LINGUAS"
21208         fi
21209         for desiredlang in $desiredlanguages; do
21210 	   # Use the presentlang catalog if desiredlang is
21211           #   a. equal to presentlang, or
21212           #   b. a variant of presentlang (because in this case,
21213           #      presentlang can be used as a fallback for messages
21214           #      which are not translated in the desiredlang catalog).
21215           case "$desiredlang" in
21216             "$presentlang"*) useit=yes;;
21217           esac
21218         done
21219         if test $useit = yes; then
21220           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
21221         fi
21222       done
21223       LINGUAS=$NEW_LINGUAS
21224       echo "$as_me:$LINENO: result: $LINGUAS" >&5
21225echo "${ECHO_T}$LINGUAS" >&6
21226     fi
21227
21228          if test -n "$LINGUAS"; then
21229       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
21230     fi
21231   fi
21232
21233            MKINSTALLDIRS=
21234   if test -n "$ac_aux_dir"; then
21235     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
21236   fi
21237   if test -z "$MKINSTALLDIRS"; then
21238     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
21239   fi
21240
21241
21242         test -d po || mkdir po
21243   if test "x$srcdir" != "x."; then
21244     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
21245       posrcprefix="$srcdir/"
21246     else
21247       posrcprefix="../$srcdir/"
21248     fi
21249   else
21250     posrcprefix="../"
21251   fi
21252   rm -f po/POTFILES
21253   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
21254	< $srcdir/po/POTFILES.in > po/POTFILES
21255
21256
21257
21258                              ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"
21259cat >confcache <<\_ACEOF
21260# This file is a shell script that caches the results of configure
21261# tests run on this system so they can be shared between configure
21262# scripts and configure runs, see configure's option --config-cache.
21263# It is not useful on other systems.  If it contains results you don't
21264# want to keep, you may remove or edit it.
21265#
21266# config.status only pays attention to the cache file if you give it
21267# the --recheck option to rerun configure.
21268#
21269# `ac_cv_env_foo' variables (set or unset) will be overridden when
21270# loading this file, other *unset* `ac_cv_foo' will be assigned the
21271# following values.
21272
21273_ACEOF
21274
21275# The following way of writing the cache mishandles newlines in values,
21276# but we know of no workaround that is simple, portable, and efficient.
21277# So, don't put newlines in cache variables' values.
21278# Ultrix sh set writes to stderr and can't be redirected directly,
21279# and sets the high bit in the cache file unless we assign to the vars.
21280{
21281  (set) 2>&1 |
21282    case `(ac_space=' '; set | grep ac_space) 2>&1` in
21283    *ac_space=\ *)
21284      # `set' does not quote correctly, so add quotes (double-quote
21285      # substitution turns \\\\ into \\, and sed turns \\ into \).
21286      sed -n \
21287	"s/'/'\\\\''/g;
21288	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21289      ;;
21290    *)
21291      # `set' quotes correctly as required by POSIX, so do not add quotes.
21292      sed -n \
21293	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21294      ;;
21295    esac;
21296} |
21297  sed '
21298     t clear
21299     : clear
21300     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21301     t end
21302     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21303     : end' >>confcache
21304if diff $cache_file confcache >/dev/null 2>&1; then :; else
21305  if test -w $cache_file; then
21306    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21307    cat confcache >$cache_file
21308  else
21309    echo "not updating unwritable cache $cache_file"
21310  fi
21311fi
21312rm -f confcache
21313
21314test "x$prefix" = xNONE && prefix=$ac_default_prefix
21315# Let make expand exec_prefix.
21316test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21317
21318# VPATH may cause trouble with some makes, so we remove $(srcdir),
21319# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21320# trailing colons and then remove the whole line if VPATH becomes empty
21321# (actually we leave an empty line to preserve line numbers).
21322if test "x$srcdir" = x.; then
21323  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21324s/:*\$(srcdir):*/:/;
21325s/:*\${srcdir}:*/:/;
21326s/:*@srcdir@:*/:/;
21327s/^\([^=]*=[	 ]*\):*/\1/;
21328s/:*$//;
21329s/^[^=]*=[	 ]*$//;
21330}'
21331fi
21332
21333# Transform confdefs.h into DEFS.
21334# Protect against shell expansion while executing Makefile rules.
21335# Protect against Makefile macro expansion.
21336#
21337# If the first sed substitution is executed (which looks for macros that
21338# take arguments), then we branch to the quote section.  Otherwise,
21339# look for a macro that doesn't take arguments.
21340cat >confdef2opt.sed <<\_ACEOF
21341t clear
21342: clear
21343s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
21344t quote
21345s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
21346t quote
21347d
21348: quote
21349s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
21350s,\[,\\&,g
21351s,\],\\&,g
21352s,\$,$$,g
21353p
21354_ACEOF
21355# We use echo to avoid assuming a particular line-breaking character.
21356# The extra dot is to prevent the shell from consuming trailing
21357# line-breaks from the sub-command output.  A line-break within
21358# single-quotes doesn't work because, if this script is created in a
21359# platform that uses two characters for line-breaks (e.g., DOS), tr
21360# would break.
21361ac_LF_and_DOT=`echo; echo .`
21362DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
21363rm -f confdef2opt.sed
21364
21365
21366ac_libobjs=
21367ac_ltlibobjs=
21368for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21369  # 1. Remove the extension, and $U if already installed.
21370  ac_i=`echo "$ac_i" |
21371	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21372  # 2. Add them.
21373  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21374  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21375done
21376LIBOBJS=$ac_libobjs
21377
21378LTLIBOBJS=$ac_ltlibobjs
21379
21380
21381
21382: ${CONFIG_STATUS=./config.status}
21383ac_clean_files_save=$ac_clean_files
21384ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21385{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21386echo "$as_me: creating $CONFIG_STATUS" >&6;}
21387cat >$CONFIG_STATUS <<_ACEOF
21388#! $SHELL
21389# Generated by $as_me.
21390# Run this file to recreate the current configuration.
21391# Compiler output produced by configure, useful for debugging
21392# configure, is in config.log if it exists.
21393
21394debug=false
21395ac_cs_recheck=false
21396ac_cs_silent=false
21397SHELL=\${CONFIG_SHELL-$SHELL}
21398_ACEOF
21399
21400cat >>$CONFIG_STATUS <<\_ACEOF
21401## --------------------- ##
21402## M4sh Initialization.  ##
21403## --------------------- ##
21404
21405# Be Bourne compatible
21406if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21407  emulate sh
21408  NULLCMD=:
21409  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21410  # is contrary to our usage.  Disable this feature.
21411  alias -g '${1+"$@"}'='"$@"'
21412elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21413  set -o posix
21414fi
21415DUALCASE=1; export DUALCASE # for MKS sh
21416
21417# Support unset when possible.
21418if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21419  as_unset=unset
21420else
21421  as_unset=false
21422fi
21423
21424
21425# Work around bugs in pre-3.0 UWIN ksh.
21426$as_unset ENV MAIL MAILPATH
21427PS1='$ '
21428PS2='> '
21429PS4='+ '
21430
21431# NLS nuisances.
21432for as_var in \
21433  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21434  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21435  LC_TELEPHONE LC_TIME
21436do
21437  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21438    eval $as_var=C; export $as_var
21439  else
21440    $as_unset $as_var
21441  fi
21442done
21443
21444# Required to use basename.
21445if expr a : '\(a\)' >/dev/null 2>&1; then
21446  as_expr=expr
21447else
21448  as_expr=false
21449fi
21450
21451if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21452  as_basename=basename
21453else
21454  as_basename=false
21455fi
21456
21457
21458# Name of the executable.
21459as_me=`$as_basename "$0" ||
21460$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21461	 X"$0" : 'X\(//\)$' \| \
21462	 X"$0" : 'X\(/\)$' \| \
21463	 .     : '\(.\)' 2>/dev/null ||
21464echo X/"$0" |
21465    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21466  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
21467  	  /^X\/\(\/\).*/{ s//\1/; q; }
21468  	  s/.*/./; q'`
21469
21470
21471# PATH needs CR, and LINENO needs CR and PATH.
21472# Avoid depending upon Character Ranges.
21473as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21474as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21475as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21476as_cr_digits='0123456789'
21477as_cr_alnum=$as_cr_Letters$as_cr_digits
21478
21479# The user is always right.
21480if test "${PATH_SEPARATOR+set}" != set; then
21481  echo "#! /bin/sh" >conf$$.sh
21482  echo  "exit 0"   >>conf$$.sh
21483  chmod +x conf$$.sh
21484  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21485    PATH_SEPARATOR=';'
21486  else
21487    PATH_SEPARATOR=:
21488  fi
21489  rm -f conf$$.sh
21490fi
21491
21492
21493  as_lineno_1=$LINENO
21494  as_lineno_2=$LINENO
21495  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21496  test "x$as_lineno_1" != "x$as_lineno_2" &&
21497  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21498  # Find who we are.  Look in the path if we contain no path at all
21499  # relative or not.
21500  case $0 in
21501    *[\\/]* ) as_myself=$0 ;;
21502    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21503for as_dir in $PATH
21504do
21505  IFS=$as_save_IFS
21506  test -z "$as_dir" && as_dir=.
21507  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21508done
21509
21510       ;;
21511  esac
21512  # We did not find ourselves, most probably we were run as `sh COMMAND'
21513  # in which case we are not to be found in the path.
21514  if test "x$as_myself" = x; then
21515    as_myself=$0
21516  fi
21517  if test ! -f "$as_myself"; then
21518    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21519echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21520   { (exit 1); exit 1; }; }
21521  fi
21522  case $CONFIG_SHELL in
21523  '')
21524    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21525for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21526do
21527  IFS=$as_save_IFS
21528  test -z "$as_dir" && as_dir=.
21529  for as_base in sh bash ksh sh5; do
21530	 case $as_dir in
21531	 /*)
21532	   if ("$as_dir/$as_base" -c '
21533  as_lineno_1=$LINENO
21534  as_lineno_2=$LINENO
21535  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21536  test "x$as_lineno_1" != "x$as_lineno_2" &&
21537  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21538	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21539	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21540	     CONFIG_SHELL=$as_dir/$as_base
21541	     export CONFIG_SHELL
21542	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21543	   fi;;
21544	 esac
21545       done
21546done
21547;;
21548  esac
21549
21550  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21551  # uniformly replaced by the line number.  The first 'sed' inserts a
21552  # line-number line before each line; the second 'sed' does the real
21553  # work.  The second script uses 'N' to pair each line-number line
21554  # with the numbered line, and appends trailing '-' during
21555  # substitution so that $LINENO is not a special case at line end.
21556  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21557  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21558  sed '=' <$as_myself |
21559    sed '
21560      N
21561      s,$,-,
21562      : loop
21563      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21564      t loop
21565      s,-$,,
21566      s,^['$as_cr_digits']*\n,,
21567    ' >$as_me.lineno &&
21568  chmod +x $as_me.lineno ||
21569    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21570echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21571   { (exit 1); exit 1; }; }
21572
21573  # Don't try to exec as it changes $[0], causing all sort of problems
21574  # (the dirname of $[0] is not the place where we might find the
21575  # original and so on.  Autoconf is especially sensible to this).
21576  . ./$as_me.lineno
21577  # Exit status is that of the last command.
21578  exit
21579}
21580
21581
21582case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21583  *c*,-n*) ECHO_N= ECHO_C='
21584' ECHO_T='	' ;;
21585  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21586  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21587esac
21588
21589if expr a : '\(a\)' >/dev/null 2>&1; then
21590  as_expr=expr
21591else
21592  as_expr=false
21593fi
21594
21595rm -f conf$$ conf$$.exe conf$$.file
21596echo >conf$$.file
21597if ln -s conf$$.file conf$$ 2>/dev/null; then
21598  # We could just check for DJGPP; but this test a) works b) is more generic
21599  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21600  if test -f conf$$.exe; then
21601    # Don't use ln at all; we don't have any links
21602    as_ln_s='cp -p'
21603  else
21604    as_ln_s='ln -s'
21605  fi
21606elif ln conf$$.file conf$$ 2>/dev/null; then
21607  as_ln_s=ln
21608else
21609  as_ln_s='cp -p'
21610fi
21611rm -f conf$$ conf$$.exe conf$$.file
21612
21613if mkdir -p . 2>/dev/null; then
21614  as_mkdir_p=:
21615else
21616  test -d ./-p && rmdir ./-p
21617  as_mkdir_p=false
21618fi
21619
21620as_executable_p="test -f"
21621
21622# Sed expression to map a string onto a valid CPP name.
21623as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21624
21625# Sed expression to map a string onto a valid variable name.
21626as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21627
21628
21629# IFS
21630# We need space, tab and new line, in precisely that order.
21631as_nl='
21632'
21633IFS=" 	$as_nl"
21634
21635# CDPATH.
21636$as_unset CDPATH
21637
21638exec 6>&1
21639
21640# Open the log real soon, to keep \$[0] and so on meaningful, and to
21641# report actual input values of CONFIG_FILES etc. instead of their
21642# values after options handling.  Logging --version etc. is OK.
21643exec 5>>config.log
21644{
21645  echo
21646  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21647## Running $as_me. ##
21648_ASBOX
21649} >&5
21650cat >&5 <<_CSEOF
21651
21652This file was extended by gpaint-2 $as_me 0.3.3, which was
21653generated by GNU Autoconf 2.59.  Invocation command line was
21654
21655  CONFIG_FILES    = $CONFIG_FILES
21656  CONFIG_HEADERS  = $CONFIG_HEADERS
21657  CONFIG_LINKS    = $CONFIG_LINKS
21658  CONFIG_COMMANDS = $CONFIG_COMMANDS
21659  $ $0 $@
21660
21661_CSEOF
21662echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21663echo >&5
21664_ACEOF
21665
21666# Files that config.status was made for.
21667if test -n "$ac_config_files"; then
21668  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21669fi
21670
21671if test -n "$ac_config_headers"; then
21672  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21673fi
21674
21675if test -n "$ac_config_links"; then
21676  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21677fi
21678
21679if test -n "$ac_config_commands"; then
21680  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21681fi
21682
21683cat >>$CONFIG_STATUS <<\_ACEOF
21684
21685ac_cs_usage="\
21686\`$as_me' instantiates files from templates according to the
21687current configuration.
21688
21689Usage: $0 [OPTIONS] [FILE]...
21690
21691  -h, --help       print this help, then exit
21692  -V, --version    print version number, then exit
21693  -q, --quiet      do not print progress messages
21694  -d, --debug      don't remove temporary files
21695      --recheck    update $as_me by reconfiguring in the same conditions
21696  --file=FILE[:TEMPLATE]
21697		   instantiate the configuration file FILE
21698
21699Configuration files:
21700$config_files
21701
21702Configuration commands:
21703$config_commands
21704
21705Report bugs to <bug-autoconf@gnu.org>."
21706_ACEOF
21707
21708cat >>$CONFIG_STATUS <<_ACEOF
21709ac_cs_version="\\
21710gpaint-2 config.status 0.3.3
21711configured by $0, generated by GNU Autoconf 2.59,
21712  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21713
21714Copyright (C) 2003 Free Software Foundation, Inc.
21715This config.status script is free software; the Free Software Foundation
21716gives unlimited permission to copy, distribute and modify it."
21717srcdir=$srcdir
21718INSTALL="$INSTALL"
21719_ACEOF
21720
21721cat >>$CONFIG_STATUS <<\_ACEOF
21722# If no file are specified by the user, then we need to provide default
21723# value.  By we need to know if files were specified by the user.
21724ac_need_defaults=:
21725while test $# != 0
21726do
21727  case $1 in
21728  --*=*)
21729    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21730    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21731    ac_shift=:
21732    ;;
21733  -*)
21734    ac_option=$1
21735    ac_optarg=$2
21736    ac_shift=shift
21737    ;;
21738  *) # This is not an option, so the user has probably given explicit
21739     # arguments.
21740     ac_option=$1
21741     ac_need_defaults=false;;
21742  esac
21743
21744  case $ac_option in
21745  # Handling of the options.
21746_ACEOF
21747cat >>$CONFIG_STATUS <<\_ACEOF
21748  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21749    ac_cs_recheck=: ;;
21750  --version | --vers* | -V )
21751    echo "$ac_cs_version"; exit 0 ;;
21752  --he | --h)
21753    # Conflict between --help and --header
21754    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21755Try \`$0 --help' for more information." >&5
21756echo "$as_me: error: ambiguous option: $1
21757Try \`$0 --help' for more information." >&2;}
21758   { (exit 1); exit 1; }; };;
21759  --help | --hel | -h )
21760    echo "$ac_cs_usage"; exit 0 ;;
21761  --debug | --d* | -d )
21762    debug=: ;;
21763  --file | --fil | --fi | --f )
21764    $ac_shift
21765    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21766    ac_need_defaults=false;;
21767  --header | --heade | --head | --hea )
21768    $ac_shift
21769    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21770    ac_need_defaults=false;;
21771  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21772  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21773    ac_cs_silent=: ;;
21774
21775  # This is an error.
21776  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21777Try \`$0 --help' for more information." >&5
21778echo "$as_me: error: unrecognized option: $1
21779Try \`$0 --help' for more information." >&2;}
21780   { (exit 1); exit 1; }; } ;;
21781
21782  *) ac_config_targets="$ac_config_targets $1" ;;
21783
21784  esac
21785  shift
21786done
21787
21788ac_configure_extra_args=
21789
21790if $ac_cs_silent; then
21791  exec 6>/dev/null
21792  ac_configure_extra_args="$ac_configure_extra_args --silent"
21793fi
21794
21795_ACEOF
21796cat >>$CONFIG_STATUS <<_ACEOF
21797if \$ac_cs_recheck; then
21798  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21799  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21800fi
21801
21802_ACEOF
21803
21804cat >>$CONFIG_STATUS <<_ACEOF
21805#
21806# INIT-COMMANDS section.
21807#
21808
21809
21810
21811_ACEOF
21812
21813
21814
21815cat >>$CONFIG_STATUS <<\_ACEOF
21816for ac_config_target in $ac_config_targets
21817do
21818  case "$ac_config_target" in
21819  # Handling of arguments.
21820  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21821  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21822  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21823  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21824  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21825echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21826   { (exit 1); exit 1; }; };;
21827  esac
21828done
21829
21830# If the user did not use the arguments to specify the items to instantiate,
21831# then the envvar interface is used.  Set only those that are not.
21832# We use the long form for the default assignment because of an extremely
21833# bizarre bug on SunOS 4.1.3.
21834if $ac_need_defaults; then
21835  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21836  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21837fi
21838
21839# Have a temporary directory for convenience.  Make it in the build tree
21840# simply because there is no reason to put it here, and in addition,
21841# creating and moving files from /tmp can sometimes cause problems.
21842# Create a temporary directory, and hook for its removal unless debugging.
21843$debug ||
21844{
21845  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21846  trap '{ (exit 1); exit 1; }' 1 2 13 15
21847}
21848
21849# Create a (secure) tmp directory for tmp files.
21850
21851{
21852  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21853  test -n "$tmp" && test -d "$tmp"
21854}  ||
21855{
21856  tmp=./confstat$$-$RANDOM
21857  (umask 077 && mkdir $tmp)
21858} ||
21859{
21860   echo "$me: cannot create a temporary directory in ." >&2
21861   { (exit 1); exit 1; }
21862}
21863
21864_ACEOF
21865
21866cat >>$CONFIG_STATUS <<_ACEOF
21867
21868#
21869# CONFIG_FILES section.
21870#
21871
21872# No need to generate the scripts if there are no CONFIG_FILES.
21873# This happens for instance when ./config.status config.h
21874if test -n "\$CONFIG_FILES"; then
21875  # Protect against being on the right side of a sed subst in config.status.
21876  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21877   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21878s,@SHELL@,$SHELL,;t t
21879s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21880s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21881s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21882s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21883s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21884s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21885s,@exec_prefix@,$exec_prefix,;t t
21886s,@prefix@,$prefix,;t t
21887s,@program_transform_name@,$program_transform_name,;t t
21888s,@bindir@,$bindir,;t t
21889s,@sbindir@,$sbindir,;t t
21890s,@libexecdir@,$libexecdir,;t t
21891s,@datadir@,$datadir,;t t
21892s,@sysconfdir@,$sysconfdir,;t t
21893s,@sharedstatedir@,$sharedstatedir,;t t
21894s,@localstatedir@,$localstatedir,;t t
21895s,@libdir@,$libdir,;t t
21896s,@includedir@,$includedir,;t t
21897s,@oldincludedir@,$oldincludedir,;t t
21898s,@infodir@,$infodir,;t t
21899s,@mandir@,$mandir,;t t
21900s,@build_alias@,$build_alias,;t t
21901s,@host_alias@,$host_alias,;t t
21902s,@target_alias@,$target_alias,;t t
21903s,@DEFS@,$DEFS,;t t
21904s,@ECHO_C@,$ECHO_C,;t t
21905s,@ECHO_N@,$ECHO_N,;t t
21906s,@ECHO_T@,$ECHO_T,;t t
21907s,@LIBS@,$LIBS,;t t
21908s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21909s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21910s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21911s,@PACKAGE@,$PACKAGE,;t t
21912s,@VERSION@,$VERSION,;t t
21913s,@ACLOCAL@,$ACLOCAL,;t t
21914s,@AUTOCONF@,$AUTOCONF,;t t
21915s,@AUTOMAKE@,$AUTOMAKE,;t t
21916s,@AUTOHEADER@,$AUTOHEADER,;t t
21917s,@MAKEINFO@,$MAKEINFO,;t t
21918s,@SET_MAKE@,$SET_MAKE,;t t
21919s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21920s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21921s,@MAINT@,$MAINT,;t t
21922s,@CC@,$CC,;t t
21923s,@CFLAGS@,$CFLAGS,;t t
21924s,@LDFLAGS@,$LDFLAGS,;t t
21925s,@CPPFLAGS@,$CPPFLAGS,;t t
21926s,@ac_ct_CC@,$ac_ct_CC,;t t
21927s,@EXEEXT@,$EXEEXT,;t t
21928s,@OBJEXT@,$OBJEXT,;t t
21929s,@build@,$build,;t t
21930s,@build_cpu@,$build_cpu,;t t
21931s,@build_vendor@,$build_vendor,;t t
21932s,@build_os@,$build_os,;t t
21933s,@host@,$host,;t t
21934s,@host_cpu@,$host_cpu,;t t
21935s,@host_vendor@,$host_vendor,;t t
21936s,@host_os@,$host_os,;t t
21937s,@EGREP@,$EGREP,;t t
21938s,@LN_S@,$LN_S,;t t
21939s,@ECHO@,$ECHO,;t t
21940s,@AR@,$AR,;t t
21941s,@ac_ct_AR@,$ac_ct_AR,;t t
21942s,@RANLIB@,$RANLIB,;t t
21943s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21944s,@STRIP@,$STRIP,;t t
21945s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21946s,@CPP@,$CPP,;t t
21947s,@CXX@,$CXX,;t t
21948s,@CXXFLAGS@,$CXXFLAGS,;t t
21949s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21950s,@CXXCPP@,$CXXCPP,;t t
21951s,@F77@,$F77,;t t
21952s,@FFLAGS@,$FFLAGS,;t t
21953s,@ac_ct_F77@,$ac_ct_F77,;t t
21954s,@LIBTOOL@,$LIBTOOL,;t t
21955s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21956s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21957s,@GUI_CFLAGS@,$GUI_CFLAGS,;t t
21958s,@GUI_LIBS@,$GUI_LIBS,;t t
21959s,@PRINT_CFLAGS@,$PRINT_CFLAGS,;t t
21960s,@PRINT_LIBS@,$PRINT_LIBS,;t t
21961s,@GTKPRINT_CFLAGS@,$GTKPRINT_CFLAGS,;t t
21962s,@GTKPRINT_LIBS@,$GTKPRINT_LIBS,;t t
21963s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
21964s,@USE_NLS@,$USE_NLS,;t t
21965s,@MSGFMT@,$MSGFMT,;t t
21966s,@GMSGFMT@,$GMSGFMT,;t t
21967s,@XGETTEXT@,$XGETTEXT,;t t
21968s,@CATALOGS@,$CATALOGS,;t t
21969s,@CATOBJEXT@,$CATOBJEXT,;t t
21970s,@DATADIRNAME@,$DATADIRNAME,;t t
21971s,@GMOFILES@,$GMOFILES,;t t
21972s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21973s,@INTLLIBS@,$INTLLIBS,;t t
21974s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t
21975s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t
21976s,@POFILES@,$POFILES,;t t
21977s,@POSUB@,$POSUB,;t t
21978s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
21979s,@LIBOBJS@,$LIBOBJS,;t t
21980s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21981CEOF
21982
21983_ACEOF
21984
21985  cat >>$CONFIG_STATUS <<\_ACEOF
21986  # Split the substitutions into bite-sized pieces for seds with
21987  # small command number limits, like on Digital OSF/1 and HP-UX.
21988  ac_max_sed_lines=48
21989  ac_sed_frag=1 # Number of current file.
21990  ac_beg=1 # First line for current file.
21991  ac_end=$ac_max_sed_lines # Line after last line for current file.
21992  ac_more_lines=:
21993  ac_sed_cmds=
21994  while $ac_more_lines; do
21995    if test $ac_beg -gt 1; then
21996      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21997    else
21998      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21999    fi
22000    if test ! -s $tmp/subs.frag; then
22001      ac_more_lines=false
22002    else
22003      # The purpose of the label and of the branching condition is to
22004      # speed up the sed processing (if there are no `@' at all, there
22005      # is no need to browse any of the substitutions).
22006      # These are the two extra sed commands mentioned above.
22007      (echo ':t
22008  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22009      if test -z "$ac_sed_cmds"; then
22010	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22011      else
22012	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22013      fi
22014      ac_sed_frag=`expr $ac_sed_frag + 1`
22015      ac_beg=$ac_end
22016      ac_end=`expr $ac_end + $ac_max_sed_lines`
22017    fi
22018  done
22019  if test -z "$ac_sed_cmds"; then
22020    ac_sed_cmds=cat
22021  fi
22022fi # test -n "$CONFIG_FILES"
22023
22024_ACEOF
22025cat >>$CONFIG_STATUS <<\_ACEOF
22026for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22027  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22028  case $ac_file in
22029  - | *:- | *:-:* ) # input from stdin
22030	cat >$tmp/stdin
22031	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22032	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22033  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22034	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22035  * )   ac_file_in=$ac_file.in ;;
22036  esac
22037
22038  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22039  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22040$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22041	 X"$ac_file" : 'X\(//\)[^/]' \| \
22042	 X"$ac_file" : 'X\(//\)$' \| \
22043	 X"$ac_file" : 'X\(/\)' \| \
22044	 .     : '\(.\)' 2>/dev/null ||
22045echo X"$ac_file" |
22046    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22047  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22048  	  /^X\(\/\/\)$/{ s//\1/; q; }
22049  	  /^X\(\/\).*/{ s//\1/; q; }
22050  	  s/.*/./; q'`
22051  { if $as_mkdir_p; then
22052    mkdir -p "$ac_dir"
22053  else
22054    as_dir="$ac_dir"
22055    as_dirs=
22056    while test ! -d "$as_dir"; do
22057      as_dirs="$as_dir $as_dirs"
22058      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22059$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22060	 X"$as_dir" : 'X\(//\)[^/]' \| \
22061	 X"$as_dir" : 'X\(//\)$' \| \
22062	 X"$as_dir" : 'X\(/\)' \| \
22063	 .     : '\(.\)' 2>/dev/null ||
22064echo X"$as_dir" |
22065    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22066  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22067  	  /^X\(\/\/\)$/{ s//\1/; q; }
22068  	  /^X\(\/\).*/{ s//\1/; q; }
22069  	  s/.*/./; q'`
22070    done
22071    test ! -n "$as_dirs" || mkdir $as_dirs
22072  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22073echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22074   { (exit 1); exit 1; }; }; }
22075
22076  ac_builddir=.
22077
22078if test "$ac_dir" != .; then
22079  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22080  # A "../" for each directory in $ac_dir_suffix.
22081  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22082else
22083  ac_dir_suffix= ac_top_builddir=
22084fi
22085
22086case $srcdir in
22087  .)  # No --srcdir option.  We are building in place.
22088    ac_srcdir=.
22089    if test -z "$ac_top_builddir"; then
22090       ac_top_srcdir=.
22091    else
22092       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22093    fi ;;
22094  [\\/]* | ?:[\\/]* )  # Absolute path.
22095    ac_srcdir=$srcdir$ac_dir_suffix;
22096    ac_top_srcdir=$srcdir ;;
22097  *) # Relative path.
22098    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22099    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22100esac
22101
22102# Do not use `cd foo && pwd` to compute absolute paths, because
22103# the directories may not exist.
22104case `pwd` in
22105.) ac_abs_builddir="$ac_dir";;
22106*)
22107  case "$ac_dir" in
22108  .) ac_abs_builddir=`pwd`;;
22109  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22110  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22111  esac;;
22112esac
22113case $ac_abs_builddir in
22114.) ac_abs_top_builddir=${ac_top_builddir}.;;
22115*)
22116  case ${ac_top_builddir}. in
22117  .) ac_abs_top_builddir=$ac_abs_builddir;;
22118  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22119  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22120  esac;;
22121esac
22122case $ac_abs_builddir in
22123.) ac_abs_srcdir=$ac_srcdir;;
22124*)
22125  case $ac_srcdir in
22126  .) ac_abs_srcdir=$ac_abs_builddir;;
22127  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22128  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22129  esac;;
22130esac
22131case $ac_abs_builddir in
22132.) ac_abs_top_srcdir=$ac_top_srcdir;;
22133*)
22134  case $ac_top_srcdir in
22135  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22136  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22137  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22138  esac;;
22139esac
22140
22141
22142  case $INSTALL in
22143  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22144  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22145  esac
22146
22147  if test x"$ac_file" != x-; then
22148    { echo "$as_me:$LINENO: creating $ac_file" >&5
22149echo "$as_me: creating $ac_file" >&6;}
22150    rm -f "$ac_file"
22151  fi
22152  # Let's still pretend it is `configure' which instantiates (i.e., don't
22153  # use $as_me), people would be surprised to read:
22154  #    /* config.h.  Generated by config.status.  */
22155  if test x"$ac_file" = x-; then
22156    configure_input=
22157  else
22158    configure_input="$ac_file.  "
22159  fi
22160  configure_input=$configure_input"Generated from `echo $ac_file_in |
22161				     sed 's,.*/,,'` by configure."
22162
22163  # First look for the input files in the build tree, otherwise in the
22164  # src tree.
22165  ac_file_inputs=`IFS=:
22166    for f in $ac_file_in; do
22167      case $f in
22168      -) echo $tmp/stdin ;;
22169      [\\/$]*)
22170	 # Absolute (can't be DOS-style, as IFS=:)
22171	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22172echo "$as_me: error: cannot find input file: $f" >&2;}
22173   { (exit 1); exit 1; }; }
22174	 echo "$f";;
22175      *) # Relative
22176	 if test -f "$f"; then
22177	   # Build tree
22178	   echo "$f"
22179	 elif test -f "$srcdir/$f"; then
22180	   # Source tree
22181	   echo "$srcdir/$f"
22182	 else
22183	   # /dev/null tree
22184	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22185echo "$as_me: error: cannot find input file: $f" >&2;}
22186   { (exit 1); exit 1; }; }
22187	 fi;;
22188      esac
22189    done` || { (exit 1); exit 1; }
22190_ACEOF
22191cat >>$CONFIG_STATUS <<_ACEOF
22192  sed "$ac_vpsub
22193$extrasub
22194_ACEOF
22195cat >>$CONFIG_STATUS <<\_ACEOF
22196:t
22197/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22198s,@configure_input@,$configure_input,;t t
22199s,@srcdir@,$ac_srcdir,;t t
22200s,@abs_srcdir@,$ac_abs_srcdir,;t t
22201s,@top_srcdir@,$ac_top_srcdir,;t t
22202s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22203s,@builddir@,$ac_builddir,;t t
22204s,@abs_builddir@,$ac_abs_builddir,;t t
22205s,@top_builddir@,$ac_top_builddir,;t t
22206s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22207s,@INSTALL@,$ac_INSTALL,;t t
22208" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22209  rm -f $tmp/stdin
22210  if test x"$ac_file" != x-; then
22211    mv $tmp/out $ac_file
22212  else
22213    cat $tmp/out
22214    rm -f $tmp/out
22215  fi
22216
22217done
22218_ACEOF
22219cat >>$CONFIG_STATUS <<\_ACEOF
22220
22221#
22222# CONFIG_COMMANDS section.
22223#
22224for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22225  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22226  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22227  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22228$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22229	 X"$ac_dest" : 'X\(//\)[^/]' \| \
22230	 X"$ac_dest" : 'X\(//\)$' \| \
22231	 X"$ac_dest" : 'X\(/\)' \| \
22232	 .     : '\(.\)' 2>/dev/null ||
22233echo X"$ac_dest" |
22234    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22235  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22236  	  /^X\(\/\/\)$/{ s//\1/; q; }
22237  	  /^X\(\/\).*/{ s//\1/; q; }
22238  	  s/.*/./; q'`
22239  { if $as_mkdir_p; then
22240    mkdir -p "$ac_dir"
22241  else
22242    as_dir="$ac_dir"
22243    as_dirs=
22244    while test ! -d "$as_dir"; do
22245      as_dirs="$as_dir $as_dirs"
22246      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22247$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22248	 X"$as_dir" : 'X\(//\)[^/]' \| \
22249	 X"$as_dir" : 'X\(//\)$' \| \
22250	 X"$as_dir" : 'X\(/\)' \| \
22251	 .     : '\(.\)' 2>/dev/null ||
22252echo X"$as_dir" |
22253    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22254  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22255  	  /^X\(\/\/\)$/{ s//\1/; q; }
22256  	  /^X\(\/\).*/{ s//\1/; q; }
22257  	  s/.*/./; q'`
22258    done
22259    test ! -n "$as_dirs" || mkdir $as_dirs
22260  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22261echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22262   { (exit 1); exit 1; }; }; }
22263
22264  ac_builddir=.
22265
22266if test "$ac_dir" != .; then
22267  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22268  # A "../" for each directory in $ac_dir_suffix.
22269  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22270else
22271  ac_dir_suffix= ac_top_builddir=
22272fi
22273
22274case $srcdir in
22275  .)  # No --srcdir option.  We are building in place.
22276    ac_srcdir=.
22277    if test -z "$ac_top_builddir"; then
22278       ac_top_srcdir=.
22279    else
22280       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22281    fi ;;
22282  [\\/]* | ?:[\\/]* )  # Absolute path.
22283    ac_srcdir=$srcdir$ac_dir_suffix;
22284    ac_top_srcdir=$srcdir ;;
22285  *) # Relative path.
22286    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22287    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22288esac
22289
22290# Do not use `cd foo && pwd` to compute absolute paths, because
22291# the directories may not exist.
22292case `pwd` in
22293.) ac_abs_builddir="$ac_dir";;
22294*)
22295  case "$ac_dir" in
22296  .) ac_abs_builddir=`pwd`;;
22297  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22298  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22299  esac;;
22300esac
22301case $ac_abs_builddir in
22302.) ac_abs_top_builddir=${ac_top_builddir}.;;
22303*)
22304  case ${ac_top_builddir}. in
22305  .) ac_abs_top_builddir=$ac_abs_builddir;;
22306  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22307  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22308  esac;;
22309esac
22310case $ac_abs_builddir in
22311.) ac_abs_srcdir=$ac_srcdir;;
22312*)
22313  case $ac_srcdir in
22314  .) ac_abs_srcdir=$ac_abs_builddir;;
22315  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22316  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22317  esac;;
22318esac
22319case $ac_abs_builddir in
22320.) ac_abs_top_srcdir=$ac_top_srcdir;;
22321*)
22322  case $ac_top_srcdir in
22323  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22324  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22325  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22326  esac;;
22327esac
22328
22329
22330  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22331echo "$as_me: executing $ac_dest commands" >&6;}
22332  case $ac_dest in
22333    default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*)
22334        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
22335      esac ;;
22336  esac
22337done
22338_ACEOF
22339
22340cat >>$CONFIG_STATUS <<\_ACEOF
22341
22342{ (exit 0); exit 0; }
22343_ACEOF
22344chmod +x $CONFIG_STATUS
22345ac_clean_files=$ac_clean_files_save
22346
22347
22348# configure is writing to config.log, and then calls config.status.
22349# config.status does its own redirection, appending to config.log.
22350# Unfortunately, on DOS this fails, as config.log is still kept open
22351# by configure, so config.status won't be able to write to it; its
22352# output is simply discarded.  So we exec the FD to /dev/null,
22353# effectively closing config.log, so it can be properly (re)opened and
22354# appended to by config.status.  When coming back to configure, we
22355# need to make the FD available again.
22356if test "$no_create" != yes; then
22357  ac_cs_success=:
22358  ac_config_status_args=
22359  test "$silent" = yes &&
22360    ac_config_status_args="$ac_config_status_args --quiet"
22361  exec 5>/dev/null
22362  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22363  exec 5>>config.log
22364  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22365  # would make configure fail if this is the last instruction.
22366  $ac_cs_success || { (exit 1); exit 1; }
22367fi
22368
22369
22370
22371echo "
22372Configuration:
22373
22374	Source code location:	  ${srcdir}
22375	Compiler:		  ${CC}
22376	Extra Compiler Warnings:  ${EXTRA_WARNING_CFLAGS}
22377
22378"
22379