1@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.59.
4@%:@
5@%:@ Copyright (C) 2003 Free Software Foundation, Inc.
6@%:@ This configure script is free software; the Free Software Foundation
7@%:@ gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250  # Remove one level of quotation (which was required for Make).
251  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252  ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257  # Discard the --no-reexec flag, and continue.
258  shift
259elif test "X$1" = X--fallback-echo; then
260  # Avoid inline document here, it may be left over
261  :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263  # Yippee, $echo works!
264  :
265else
266  # Restart under the correct shell.
267  exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271  # used as fallback echo
272  shift
273  cat <<EOF
274$*
275EOF
276  exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289       echo_test_string="`eval $cmd`" &&
290       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291    then
292      break
293    fi
294  done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299   test "X$echo_testing_string" = "X$echo_test_string"; then
300  :
301else
302  # The Solaris, AIX, and Digital Unix default echo programs unquote
303  # backslashes.  This makes it impossible to quote backslashes using
304  #   echo "$something" | sed 's/\\/\\\\/g'
305  #
306  # So, first we look for a working echo in the user's PATH.
307
308  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309  for dir in $PATH /usr/ucb; do
310    IFS="$lt_save_ifs"
311    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314       test "X$echo_testing_string" = "X$echo_test_string"; then
315      echo="$dir/echo"
316      break
317    fi
318  done
319  IFS="$lt_save_ifs"
320
321  if test "X$echo" = Xecho; then
322    # We didn't find a better echo, so look for alternatives.
323    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325       test "X$echo_testing_string" = "X$echo_test_string"; then
326      # This shell has a builtin print -r that does the trick.
327      echo='print -r'
328    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329	 test "X$CONFIG_SHELL" != X/bin/ksh; then
330      # If we have ksh, try running configure again with it.
331      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332      export ORIGINAL_CONFIG_SHELL
333      CONFIG_SHELL=/bin/ksh
334      export CONFIG_SHELL
335      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336    else
337      # Try using printf.
338      echo='printf %s\n'
339      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341	 test "X$echo_testing_string" = "X$echo_test_string"; then
342	# Cool, printf works
343	:
344      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345	   test "X$echo_testing_string" = 'X\t' &&
346	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347	   test "X$echo_testing_string" = "X$echo_test_string"; then
348	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349	export CONFIG_SHELL
350	SHELL="$CONFIG_SHELL"
351	export SHELL
352	echo="$CONFIG_SHELL $0 --fallback-echo"
353      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	echo="$CONFIG_SHELL $0 --fallback-echo"
358      else
359	# maybe with a smaller string...
360	prev=:
361
362	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364	  then
365	    break
366	  fi
367	  prev="$cmd"
368	done
369
370	if test "$prev" != 'sed 50q "$0"'; then
371	  echo_test_string=`eval $prev`
372	  export echo_test_string
373	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374	else
375	  # Oops.  We lost completely, so just stick with echo.
376	  echo=echo
377	fi
378      fi
379    fi
380  fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete.  It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428ac_unique_file="acinclude.m4"
429ac_default_prefix=/usr/local
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE WOVERLOADED_VIRTUAL HAVE_GCC_VISIBILITY unsermake_enable_pch_TRUE unsermake_enable_pch_FALSE USE_EXCEPTIONS USE_RTTI CXXCPP NOOPT_CXXFLAGS NOOPT_CFLAGS ENABLE_PERMISSIVE_FLAG LDFLAGS_AS_NEEDED LDFLAGS_NEW_DTAGS KDE_USE_FINAL_TRUE KDE_USE_FINAL_FALSE KDE_USE_CLOSURE_TRUE KDE_USE_CLOSURE_FALSE KDE_NO_UNDEFINED KDE_USE_NMCHECK_TRUE KDE_USE_NMCHECK_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL KDE_PLUGIN KDE_CHECK_PLUGIN all_includes all_libraries AUTODIRS INCLUDEDIR LIBLINEAK PLUGINDIR TOPSUBDIRS LIB@&t@OBJS 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
948
949#
950# Report the --help message.
951#
952if test "$ac_init_help" = "long"; then
953  # Omit some internal or obsolete options to make the list less imposing.
954  # This message is too long to be a string in the A/UX 3.1 sh.
955  cat <<_ACEOF
956\`configure' configures this package to adapt to many kinds of systems.
957
958Usage: $0 [OPTION]... [VAR=VALUE]...
959
960To assign environment variables (e.g., CC, CFLAGS...), specify them as
961VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963Defaults for the options are specified in brackets.
964
965Configuration:
966  -h, --help              display this help and exit
967      --help=short        display options specific to this package
968      --help=recursive    display the short help of all the included packages
969  -V, --version           display version information and exit
970  -q, --quiet, --silent   do not print \`checking...' messages
971      --cache-file=FILE   cache test results in FILE [disabled]
972  -C, --config-cache      alias for \`--cache-file=config.cache'
973  -n, --no-create         do not create output files
974      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976_ACEOF
977
978  cat <<_ACEOF
979Installation directories:
980  --prefix=PREFIX         install architecture-independent files in PREFIX
981			  [$ac_default_prefix]
982  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983			  [PREFIX]
984
985By default, \`make install' will install all the files in
986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988for instance \`--prefix=\$HOME'.
989
990For better control, use the options below.
991
992Fine tuning of the installation directories:
993  --bindir=DIR           user executables [EPREFIX/bin]
994  --sbindir=DIR          system admin executables [EPREFIX/sbin]
995  --libexecdir=DIR       program executables [EPREFIX/libexec]
996  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000  --libdir=DIR           object code libraries [EPREFIX/lib]
1001  --includedir=DIR       C header files [PREFIX/include]
1002  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003  --infodir=DIR          info documentation [PREFIX/info]
1004  --mandir=DIR           man documentation [PREFIX/man]
1005_ACEOF
1006
1007  cat <<\_ACEOF
1008
1009Program names:
1010  --program-prefix=PREFIX            prepend PREFIX to installed program names
1011  --program-suffix=SUFFIX            append SUFFIX to installed program names
1012  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
1014X features:
1015  --x-includes=DIR    X include files are in DIR
1016  --x-libraries=DIR   X library files are in DIR
1017
1018System types:
1019  --build=BUILD     configure for building on BUILD [guessed]
1020  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1021  --target=TARGET   configure for building compilers for TARGET [HOST]
1022_ACEOF
1023fi
1024
1025if test -n "$ac_init_help"; then
1026
1027  cat <<\_ACEOF
1028
1029Optional Features:
1030  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1031  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1032  --enable-debug=ARG      enables debug symbols (yes|no|full) default=no
1033  --disable-debug         disables debug output and debug symbols default=no
1034  --enable-strict         compiles with strict compiler options (may not
1035                          work!)
1036  --disable-warnings      disables compilation with -Wall and similar
1037  --enable-profile        creates profiling infos default=no
1038  --disable-dependency-tracking  speeds up one-time build
1039  --enable-dependency-tracking   do not reject slow dependency extractors
1040  --enable-pch            enables precompiled header support (currently only
1041                          KCC or gcc >=3.4+unsermake) default=no
1042  --enable-coverage       use gcc coverage testing
1043  --enable-new-ldflags    enable the new linker flags
1044  --enable-final          build size optimized apps (experimental - needs lots
1045                          of memory)
1046  --enable-closure        delay template instantiation
1047  --enable-nmcheck        enable automatic namespace cleanness check
1048  --enable-shared@<:@=PKGS@:>@
1049                          build shared libraries @<:@default=yes@:>@
1050  --enable-static@<:@=PKGS@:>@
1051                          build static libraries @<:@default=no@:>@
1052  --enable-libsuffix      /lib directory suffix (64,32,none,auto=default)
1053  --enable-fast-install@<:@=PKGS@:>@
1054                          optimize for fast installation @<:@default=yes@:>@
1055  --disable-libtool-lock  avoid locking (might break parallel builds)
1056
1057Optional Packages:
1058  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1059  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1060  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1061  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1062                          both@:>@
1063  --with-tags@<:@=TAGS@:>@
1064                          include additional configurations @<:@automatic@:>@
1065  --with-lineak-includedir=DIR           location of the lineak include directory
1066  --with-x                use the X Window System
1067  --with-lineak-plugindir=DIR           Location of the lineak plugins directory
1068
1069Some influential environment variables:
1070  CC          C compiler command
1071  CFLAGS      C compiler flags
1072  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1073              nonstandard directory <lib dir>
1074  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1075              headers in a nonstandard directory <include dir>
1076  CPP         C preprocessor
1077  CXX         C++ compiler command
1078  CXXFLAGS    C++ compiler flags
1079  CXXCPP      C++ preprocessor
1080  F77         Fortran 77 compiler command
1081  FFLAGS      Fortran 77 compiler flags
1082
1083Use these variables to override the choices made by `configure' or to help
1084it to find libraries and programs with nonstandard names/locations.
1085
1086_ACEOF
1087fi
1088
1089if test "$ac_init_help" = "recursive"; then
1090  # If there are subdirs, report their specific --help.
1091  ac_popdir=`pwd`
1092  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093    test -d $ac_dir || continue
1094    ac_builddir=.
1095
1096if test "$ac_dir" != .; then
1097  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098  # A "../" for each directory in $ac_dir_suffix.
1099  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100else
1101  ac_dir_suffix= ac_top_builddir=
1102fi
1103
1104case $srcdir in
1105  .)  # No --srcdir option.  We are building in place.
1106    ac_srcdir=.
1107    if test -z "$ac_top_builddir"; then
1108       ac_top_srcdir=.
1109    else
1110       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111    fi ;;
1112  [\\/]* | ?:[\\/]* )  # Absolute path.
1113    ac_srcdir=$srcdir$ac_dir_suffix;
1114    ac_top_srcdir=$srcdir ;;
1115  *) # Relative path.
1116    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118esac
1119
1120# Do not use `cd foo && pwd` to compute absolute paths, because
1121# the directories may not exist.
1122case `pwd` in
1123.) ac_abs_builddir="$ac_dir";;
1124*)
1125  case "$ac_dir" in
1126  .) ac_abs_builddir=`pwd`;;
1127  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129  esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_top_builddir=${ac_top_builddir}.;;
1133*)
1134  case ${ac_top_builddir}. in
1135  .) ac_abs_top_builddir=$ac_abs_builddir;;
1136  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138  esac;;
1139esac
1140case $ac_abs_builddir in
1141.) ac_abs_srcdir=$ac_srcdir;;
1142*)
1143  case $ac_srcdir in
1144  .) ac_abs_srcdir=$ac_abs_builddir;;
1145  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147  esac;;
1148esac
1149case $ac_abs_builddir in
1150.) ac_abs_top_srcdir=$ac_top_srcdir;;
1151*)
1152  case $ac_top_srcdir in
1153  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1156  esac;;
1157esac
1158
1159    cd $ac_dir
1160    # Check for guested configure; otherwise get Cygnus style configure.
1161    if test -f $ac_srcdir/configure.gnu; then
1162      echo
1163      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1164    elif test -f $ac_srcdir/configure; then
1165      echo
1166      $SHELL $ac_srcdir/configure  --help=recursive
1167    elif test -f $ac_srcdir/configure.ac ||
1168	   test -f $ac_srcdir/configure.in; then
1169      echo
1170      $ac_configure --help
1171    else
1172      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173    fi
1174    cd "$ac_popdir"
1175  done
1176fi
1177
1178test -n "$ac_init_help" && exit 0
1179if $ac_init_version; then
1180  cat <<\_ACEOF
1181
1182Copyright (C) 2003 Free Software Foundation, Inc.
1183This configure script is free software; the Free Software Foundation
1184gives unlimited permission to copy, distribute and modify it.
1185_ACEOF
1186  exit 0
1187fi
1188exec 5>config.log
1189cat >&5 <<_ACEOF
1190This file contains any messages produced by compilers while
1191running configure, to aid debugging if configure makes a mistake.
1192
1193It was created by $as_me, which was
1194generated by GNU Autoconf 2.59.  Invocation command line was
1195
1196  $ $0 $@
1197
1198_ACEOF
1199{
1200cat <<_ASUNAME
1201@%:@@%:@ --------- @%:@@%:@
1202@%:@@%:@ Platform. @%:@@%:@
1203@%:@@%:@ --------- @%:@@%:@
1204
1205hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1206uname -m = `(uname -m) 2>/dev/null || echo unknown`
1207uname -r = `(uname -r) 2>/dev/null || echo unknown`
1208uname -s = `(uname -s) 2>/dev/null || echo unknown`
1209uname -v = `(uname -v) 2>/dev/null || echo unknown`
1210
1211/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1212/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1213
1214/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1215/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1216/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1217hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1218/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1219/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1220/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1221
1222_ASUNAME
1223
1224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1225for as_dir in $PATH
1226do
1227  IFS=$as_save_IFS
1228  test -z "$as_dir" && as_dir=.
1229  echo "PATH: $as_dir"
1230done
1231
1232} >&5
1233
1234cat >&5 <<_ACEOF
1235
1236
1237@%:@@%:@ ----------- @%:@@%:@
1238@%:@@%:@ Core tests. @%:@@%:@
1239@%:@@%:@ ----------- @%:@@%:@
1240
1241_ACEOF
1242
1243
1244# Keep a trace of the command line.
1245# Strip out --no-create and --no-recursion so they do not pile up.
1246# Strip out --silent because we don't want to record it for future runs.
1247# Also quote any args containing shell meta-characters.
1248# Make two passes to allow for proper duplicate-argument suppression.
1249ac_configure_args=
1250ac_configure_args0=
1251ac_configure_args1=
1252ac_sep=
1253ac_must_keep_next=false
1254for ac_pass in 1 2
1255do
1256  for ac_arg
1257  do
1258    case $ac_arg in
1259    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1260    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261    | -silent | --silent | --silen | --sile | --sil)
1262      continue ;;
1263    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1265    esac
1266    case $ac_pass in
1267    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1268    2)
1269      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1270      if test $ac_must_keep_next = true; then
1271	ac_must_keep_next=false # Got value, back to normal.
1272      else
1273	case $ac_arg in
1274	  *=* | --config-cache | -C | -disable-* | --disable-* \
1275	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1276	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1277	  | -with-* | --with-* | -without-* | --without-* | --x)
1278	    case "$ac_configure_args0 " in
1279	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1280	    esac
1281	    ;;
1282	  -* ) ac_must_keep_next=true ;;
1283	esac
1284      fi
1285      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1286      # Get rid of the leading space.
1287      ac_sep=" "
1288      ;;
1289    esac
1290  done
1291done
1292$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1293$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1294
1295# When interrupted or exit'd, cleanup temporary files, and complete
1296# config.log.  We remove comments because anyway the quotes in there
1297# would cause problems or look ugly.
1298# WARNING: Be sure not to use single quotes in there, as some shells,
1299# such as our DU 5.0 friend, will then `close' the trap.
1300trap 'exit_status=$?
1301  # Save into config.log some information that might help in debugging.
1302  {
1303    echo
1304
1305    cat <<\_ASBOX
1306@%:@@%:@ ---------------- @%:@@%:@
1307@%:@@%:@ Cache variables. @%:@@%:@
1308@%:@@%:@ ---------------- @%:@@%:@
1309_ASBOX
1310    echo
1311    # The following way of writing the cache mishandles newlines in values,
1312{
1313  (set) 2>&1 |
1314    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1315    *ac_space=\ *)
1316      sed -n \
1317	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1318	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1319      ;;
1320    *)
1321      sed -n \
1322	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1323      ;;
1324    esac;
1325}
1326    echo
1327
1328    cat <<\_ASBOX
1329@%:@@%:@ ----------------- @%:@@%:@
1330@%:@@%:@ Output variables. @%:@@%:@
1331@%:@@%:@ ----------------- @%:@@%:@
1332_ASBOX
1333    echo
1334    for ac_var in $ac_subst_vars
1335    do
1336      eval ac_val=$`echo $ac_var`
1337      echo "$ac_var='"'"'$ac_val'"'"'"
1338    done | sort
1339    echo
1340
1341    if test -n "$ac_subst_files"; then
1342      cat <<\_ASBOX
1343@%:@@%:@ ------------- @%:@@%:@
1344@%:@@%:@ Output files. @%:@@%:@
1345@%:@@%:@ ------------- @%:@@%:@
1346_ASBOX
1347      echo
1348      for ac_var in $ac_subst_files
1349      do
1350	eval ac_val=$`echo $ac_var`
1351	echo "$ac_var='"'"'$ac_val'"'"'"
1352      done | sort
1353      echo
1354    fi
1355
1356    if test -s confdefs.h; then
1357      cat <<\_ASBOX
1358@%:@@%:@ ----------- @%:@@%:@
1359@%:@@%:@ confdefs.h. @%:@@%:@
1360@%:@@%:@ ----------- @%:@@%:@
1361_ASBOX
1362      echo
1363      sed "/^$/d" confdefs.h | sort
1364      echo
1365    fi
1366    test "$ac_signal" != 0 &&
1367      echo "$as_me: caught signal $ac_signal"
1368    echo "$as_me: exit $exit_status"
1369  } >&5
1370  rm -f core *.core &&
1371  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1372    exit $exit_status
1373     ' 0
1374for ac_signal in 1 2 13 15; do
1375  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1376done
1377ac_signal=0
1378
1379# confdefs.h avoids OS command line length limits that DEFS can exceed.
1380rm -rf conftest* confdefs.h
1381# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1382echo >confdefs.h
1383
1384# Predefined preprocessor variables.
1385
1386cat >>confdefs.h <<_ACEOF
1387@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1388_ACEOF
1389
1390
1391cat >>confdefs.h <<_ACEOF
1392@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1393_ACEOF
1394
1395
1396cat >>confdefs.h <<_ACEOF
1397@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1398_ACEOF
1399
1400
1401cat >>confdefs.h <<_ACEOF
1402@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1403_ACEOF
1404
1405
1406cat >>confdefs.h <<_ACEOF
1407@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1408_ACEOF
1409
1410
1411# Let the site file select an alternate cache file if it wants to.
1412# Prefer explicitly selected file to automatically selected ones.
1413if test -z "$CONFIG_SITE"; then
1414  if test "x$prefix" != xNONE; then
1415    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1416  else
1417    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1418  fi
1419fi
1420for ac_site_file in $CONFIG_SITE; do
1421  if test -r "$ac_site_file"; then
1422    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1423echo "$as_me: loading site script $ac_site_file" >&6;}
1424    sed 's/^/| /' "$ac_site_file" >&5
1425    . "$ac_site_file"
1426  fi
1427done
1428
1429if test -r "$cache_file"; then
1430  # Some versions of bash will fail to source /dev/null (special
1431  # files actually), so we avoid doing that.
1432  if test -f "$cache_file"; then
1433    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1434echo "$as_me: loading cache $cache_file" >&6;}
1435    case $cache_file in
1436      [\\/]* | ?:[\\/]* ) . $cache_file;;
1437      *)                      . ./$cache_file;;
1438    esac
1439  fi
1440else
1441  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1442echo "$as_me: creating cache $cache_file" >&6;}
1443  >$cache_file
1444fi
1445
1446# Check that the precious variables saved in the cache have kept the same
1447# value.
1448ac_cache_corrupted=false
1449for ac_var in `(set) 2>&1 |
1450	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1451  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1452  eval ac_new_set=\$ac_env_${ac_var}_set
1453  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1454  eval ac_new_val="\$ac_env_${ac_var}_value"
1455  case $ac_old_set,$ac_new_set in
1456    set,)
1457      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1458echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1459      ac_cache_corrupted=: ;;
1460    ,set)
1461      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1462echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1463      ac_cache_corrupted=: ;;
1464    ,);;
1465    *)
1466      if test "x$ac_old_val" != "x$ac_new_val"; then
1467	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1468echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1469	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1470echo "$as_me:   former value:  $ac_old_val" >&2;}
1471	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1472echo "$as_me:   current value: $ac_new_val" >&2;}
1473	ac_cache_corrupted=:
1474      fi;;
1475  esac
1476  # Pass precious variables to config.status.
1477  if test "$ac_new_set" = set; then
1478    case $ac_new_val in
1479    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1480      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1481    *) ac_arg=$ac_var=$ac_new_val ;;
1482    esac
1483    case " $ac_configure_args " in
1484      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1485      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1486    esac
1487  fi
1488done
1489if $ac_cache_corrupted; then
1490  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1491echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1492  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1493echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1494   { (exit 1); exit 1; }; }
1495fi
1496
1497ac_ext=c
1498ac_cpp='$CPP $CPPFLAGS'
1499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1501ac_compiler_gnu=$ac_cv_c_compiler_gnu
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521ac_aux_dir=
1522for ac_dir in admin $srcdir/admin; do
1523  if test -f $ac_dir/install-sh; then
1524    ac_aux_dir=$ac_dir
1525    ac_install_sh="$ac_aux_dir/install-sh -c"
1526    break
1527  elif test -f $ac_dir/install.sh; then
1528    ac_aux_dir=$ac_dir
1529    ac_install_sh="$ac_aux_dir/install.sh -c"
1530    break
1531  elif test -f $ac_dir/shtool; then
1532    ac_aux_dir=$ac_dir
1533    ac_install_sh="$ac_aux_dir/shtool install -c"
1534    break
1535  fi
1536done
1537if test -z "$ac_aux_dir"; then
1538  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5
1539echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;}
1540   { (exit 1); exit 1; }; }
1541fi
1542ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1543ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1544ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1545
1546
1547unset CDPATH
1548
1549# Make sure we can run config.sub.
1550$ac_config_sub sun4 >/dev/null 2>&1 ||
1551  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1552echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1553   { (exit 1); exit 1; }; }
1554
1555echo "$as_me:$LINENO: checking build system type" >&5
1556echo $ECHO_N "checking build system type... $ECHO_C" >&6
1557if test "${ac_cv_build+set}" = set; then
1558  echo $ECHO_N "(cached) $ECHO_C" >&6
1559else
1560  ac_cv_build_alias=$build_alias
1561test -z "$ac_cv_build_alias" &&
1562  ac_cv_build_alias=`$ac_config_guess`
1563test -z "$ac_cv_build_alias" &&
1564  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1565echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1566   { (exit 1); exit 1; }; }
1567ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1568  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1569echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1570   { (exit 1); exit 1; }; }
1571
1572fi
1573echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1574echo "${ECHO_T}$ac_cv_build" >&6
1575build=$ac_cv_build
1576build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579
1580
1581echo "$as_me:$LINENO: checking host system type" >&5
1582echo $ECHO_N "checking host system type... $ECHO_C" >&6
1583if test "${ac_cv_host+set}" = set; then
1584  echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586  ac_cv_host_alias=$host_alias
1587test -z "$ac_cv_host_alias" &&
1588  ac_cv_host_alias=$ac_cv_build_alias
1589ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1590  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1591echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1592   { (exit 1); exit 1; }; }
1593
1594fi
1595echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1596echo "${ECHO_T}$ac_cv_host" >&6
1597host=$ac_cv_host
1598host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601
1602
1603echo "$as_me:$LINENO: checking target system type" >&5
1604echo $ECHO_N "checking target system type... $ECHO_C" >&6
1605if test "${ac_cv_target+set}" = set; then
1606  echo $ECHO_N "(cached) $ECHO_C" >&6
1607else
1608  ac_cv_target_alias=$target_alias
1609test "x$ac_cv_target_alias" = "x" &&
1610  ac_cv_target_alias=$ac_cv_host_alias
1611ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1612  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1613echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1614   { (exit 1); exit 1; }; }
1615
1616fi
1617echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1618echo "${ECHO_T}$ac_cv_target" >&6
1619target=$ac_cv_target
1620target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1621target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1622target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623
1624
1625# The aliases save the names the user supplied, while $host etc.
1626# will get canonicalized.
1627test -n "$target_alias" &&
1628  test "$program_prefix$program_suffix$program_transform_name" = \
1629    NONENONEs,x,x, &&
1630  program_prefix=${target_alias}-
1631test "$program_prefix" != NONE &&
1632  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1633# Use a double $ so make ignores it.
1634test "$program_suffix" != NONE &&
1635  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1636# Double any \ or $.  echo might interpret backslashes.
1637# By default was `s,x,x', remove it if useless.
1638cat <<\_ACEOF >conftest.sed
1639s/[\\$]/&&/g;s/;s,x,x,$//
1640_ACEOF
1641program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1642rm conftest.sed
1643
1644
1645am__api_version="1.8"
1646
1647
1648          test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
1649  test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
1650  test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
1651  # Find a good install program.  We prefer a C program (faster),
1652# so one script is as good as another.  But avoid the broken or
1653# incompatible versions:
1654# SysV /etc/install, /usr/sbin/install
1655# SunOS /usr/etc/install
1656# IRIX /sbin/install
1657# AIX /bin/install
1658# AmigaOS /C/install, which installs bootblocks on floppy discs
1659# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1660# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1661# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1662# OS/2's system install, which has a completely different semantic
1663# ./install, which can be erroneously created by make from ./install.sh.
1664echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1665echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1666if test -z "$INSTALL"; then
1667if test "${ac_cv_path_install+set}" = set; then
1668  echo $ECHO_N "(cached) $ECHO_C" >&6
1669else
1670  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671for as_dir in $PATH
1672do
1673  IFS=$as_save_IFS
1674  test -z "$as_dir" && as_dir=.
1675  # Account for people who put trailing slashes in PATH elements.
1676case $as_dir/ in
1677  ./ | .// | /cC/* | \
1678  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1679  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1680  /usr/ucb/* ) ;;
1681  *)
1682    # OSF1 and SCO ODT 3.0 have their own names for install.
1683    # Don't use installbsd from OSF since it installs stuff as root
1684    # by default.
1685    for ac_prog in ginstall scoinst install; do
1686      for ac_exec_ext in '' $ac_executable_extensions; do
1687	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1688	  if test $ac_prog = install &&
1689	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1690	    # AIX install.  It has an incompatible calling convention.
1691	    :
1692	  elif test $ac_prog = install &&
1693	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1694	    # program-specific install script used by HP pwplus--don't use.
1695	    :
1696	  else
1697	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1698	    break 3
1699	  fi
1700	fi
1701      done
1702    done
1703    ;;
1704esac
1705done
1706
1707
1708fi
1709  if test "${ac_cv_path_install+set}" = set; then
1710    INSTALL=$ac_cv_path_install
1711  else
1712    # As a last resort, use the slow shell script.  We don't cache a
1713    # path for INSTALL within a source directory, because that will
1714    # break other packages using the cache if that directory is
1715    # removed, or if the path is relative.
1716    INSTALL=$ac_install_sh
1717  fi
1718fi
1719echo "$as_me:$LINENO: result: $INSTALL" >&5
1720echo "${ECHO_T}$INSTALL" >&6
1721
1722# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1723# It thinks the first close brace ends the variable substitution.
1724test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1725
1726test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1727
1728test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1729
1730
1731  if test -z "$kde_save_INSTALL_given" ; then
1732    # OK, user hasn't given any INSTALL, autoconf found one for us
1733    # now we test, if it supports the -p flag
1734    echo "$as_me:$LINENO: checking for -p flag to install" >&5
1735echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6
1736    rm -f confinst.$$.* > /dev/null 2>&1
1737    echo "Testtest" > confinst.$$.orig
1738    ac_res=no
1739    if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
1740      if test -f confinst.$$.new ; then
1741        # OK, -p seems to do no harm to install
1742	INSTALL="${INSTALL} -p"
1743	ac_res=yes
1744      fi
1745    fi
1746    rm -f confinst.$$.*
1747    echo "$as_me:$LINENO: result: $ac_res" >&5
1748echo "${ECHO_T}$ac_res" >&6
1749  fi
1750
1751  if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
1752    INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
1753  fi
1754  if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
1755    INSTALL_SCRIPT='${INSTALL}'
1756  fi
1757
1758echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1759echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1760# Just in case
1761sleep 1
1762echo timestamp > conftest.file
1763# Do `set' in a subshell so we don't clobber the current shell's
1764# arguments.  Must try -L first in case configure is actually a
1765# symlink; some systems play weird games with the mod time of symlinks
1766# (eg FreeBSD returns the mod time of the symlink's containing
1767# directory).
1768if (
1769   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1770   if test "$*" = "X"; then
1771      # -L didn't work.
1772      set X `ls -t $srcdir/configure conftest.file`
1773   fi
1774   rm -f conftest.file
1775   if test "$*" != "X $srcdir/configure conftest.file" \
1776      && test "$*" != "X conftest.file $srcdir/configure"; then
1777
1778      # If neither matched, then we have a broken ls.  This can happen
1779      # if, for instance, CONFIG_SHELL is bash and it inherits a
1780      # broken ls alias from the environment.  This has actually
1781      # happened.  Such a system could not be considered "sane".
1782      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1783alias in your environment" >&5
1784echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1785alias in your environment" >&2;}
1786   { (exit 1); exit 1; }; }
1787   fi
1788
1789   test "$2" = conftest.file
1790   )
1791then
1792   # Ok.
1793   :
1794else
1795   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1796Check your system clock" >&5
1797echo "$as_me: error: newly created file is older than distributed files!
1798Check your system clock" >&2;}
1799   { (exit 1); exit 1; }; }
1800fi
1801echo "$as_me:$LINENO: result: yes" >&5
1802echo "${ECHO_T}yes" >&6
1803# expand $ac_aux_dir to an absolute path
1804am_aux_dir=`cd $ac_aux_dir && pwd`
1805
1806test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1807# Use eval to expand $SHELL
1808if eval "$MISSING --run true"; then
1809  am_missing_run="$MISSING --run "
1810else
1811  am_missing_run=
1812  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1813echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1814fi
1815
1816if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1817  # Keeping the `.' argument allows $(mkdir_p) to be used without
1818  # argument.  Indeed, we sometimes output rules like
1819  #   $(mkdir_p) $(somedir)
1820  # where $(somedir) is conditionally defined.
1821  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1822  # expensive solution, as it forces Make to start a sub-shell.)
1823  mkdir_p='mkdir -p -- .'
1824else
1825  # On NextStep and OpenStep, the `mkdir' command does not
1826  # recognize any option.  It will interpret all options as
1827  # directories to create, and then abort because `.' already
1828  # exists.
1829  for d in ./-p ./--version;
1830  do
1831    test -d $d && rmdir $d
1832  done
1833  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1834  if test -f "$ac_aux_dir/mkinstalldirs"; then
1835    mkdir_p='$(mkinstalldirs)'
1836  else
1837    mkdir_p='$(install_sh) -d'
1838  fi
1839fi
1840
1841for ac_prog in gawk mawk nawk awk
1842do
1843  # Extract the first word of "$ac_prog", so it can be a program name with args.
1844set dummy $ac_prog; ac_word=$2
1845echo "$as_me:$LINENO: checking for $ac_word" >&5
1846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847if test "${ac_cv_prog_AWK+set}" = set; then
1848  echo $ECHO_N "(cached) $ECHO_C" >&6
1849else
1850  if test -n "$AWK"; then
1851  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1852else
1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854for as_dir in $PATH
1855do
1856  IFS=$as_save_IFS
1857  test -z "$as_dir" && as_dir=.
1858  for ac_exec_ext in '' $ac_executable_extensions; do
1859  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860    ac_cv_prog_AWK="$ac_prog"
1861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862    break 2
1863  fi
1864done
1865done
1866
1867fi
1868fi
1869AWK=$ac_cv_prog_AWK
1870if test -n "$AWK"; then
1871  echo "$as_me:$LINENO: result: $AWK" >&5
1872echo "${ECHO_T}$AWK" >&6
1873else
1874  echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876fi
1877
1878  test -n "$AWK" && break
1879done
1880
1881echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1882echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1883set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1884if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1885  echo $ECHO_N "(cached) $ECHO_C" >&6
1886else
1887  cat >conftest.make <<\_ACEOF
1888all:
1889	@echo 'ac_maketemp="$(MAKE)"'
1890_ACEOF
1891# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1892eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1893if test -n "$ac_maketemp"; then
1894  eval ac_cv_prog_make_${ac_make}_set=yes
1895else
1896  eval ac_cv_prog_make_${ac_make}_set=no
1897fi
1898rm -f conftest.make
1899fi
1900if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1901  echo "$as_me:$LINENO: result: yes" >&5
1902echo "${ECHO_T}yes" >&6
1903  SET_MAKE=
1904else
1905  echo "$as_me:$LINENO: result: no" >&5
1906echo "${ECHO_T}no" >&6
1907  SET_MAKE="MAKE=${MAKE-make}"
1908fi
1909
1910rm -rf .tst 2>/dev/null
1911mkdir .tst 2>/dev/null
1912if test -d .tst; then
1913  am__leading_dot=.
1914else
1915  am__leading_dot=_
1916fi
1917rmdir .tst 2>/dev/null
1918
1919# test to see if srcdir already configured
1920if test "`cd $srcdir && pwd`" != "`pwd`" &&
1921   test -f $srcdir/config.status; then
1922  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1923echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1924   { (exit 1); exit 1; }; }
1925fi
1926
1927# test whether we have cygpath
1928if test -z "$CYGPATH_W"; then
1929  if (cygpath --version) >/dev/null 2>/dev/null; then
1930    CYGPATH_W='cygpath -w'
1931  else
1932    CYGPATH_W=echo
1933  fi
1934fi
1935
1936
1937# Define the identity of the package.
1938 PACKAGE=lineak_defaultplugin
1939 VERSION=0.9
1940
1941
1942cat >>confdefs.h <<_ACEOF
1943@%:@define PACKAGE "$PACKAGE"
1944_ACEOF
1945
1946
1947cat >>confdefs.h <<_ACEOF
1948@%:@define VERSION "$VERSION"
1949_ACEOF
1950
1951# Some tools Automake needs.
1952
1953ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1954
1955
1956AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1957
1958
1959AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1960
1961
1962AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1963
1964
1965MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1966
1967
1968AMTAR=${AMTAR-"${am_missing_run}tar"}
1969
1970install_sh=${install_sh-"$am_aux_dir/install-sh"}
1971
1972# Installed binaries are usually stripped using `strip' when the user
1973# run `make install-strip'.  However `strip' might not be the right
1974# tool to use in cross-compilation environments, therefore Automake
1975# will honor the `STRIP' environment variable to overrule this program.
1976if test "$cross_compiling" != no; then
1977  if test -n "$ac_tool_prefix"; then
1978  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1979set dummy ${ac_tool_prefix}strip; ac_word=$2
1980echo "$as_me:$LINENO: checking for $ac_word" >&5
1981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982if test "${ac_cv_prog_STRIP+set}" = set; then
1983  echo $ECHO_N "(cached) $ECHO_C" >&6
1984else
1985  if test -n "$STRIP"; then
1986  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1987else
1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991  IFS=$as_save_IFS
1992  test -z "$as_dir" && as_dir=.
1993  for ac_exec_ext in '' $ac_executable_extensions; do
1994  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1996    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997    break 2
1998  fi
1999done
2000done
2001
2002fi
2003fi
2004STRIP=$ac_cv_prog_STRIP
2005if test -n "$STRIP"; then
2006  echo "$as_me:$LINENO: result: $STRIP" >&5
2007echo "${ECHO_T}$STRIP" >&6
2008else
2009  echo "$as_me:$LINENO: result: no" >&5
2010echo "${ECHO_T}no" >&6
2011fi
2012
2013fi
2014if test -z "$ac_cv_prog_STRIP"; then
2015  ac_ct_STRIP=$STRIP
2016  # Extract the first word of "strip", so it can be a program name with args.
2017set dummy strip; ac_word=$2
2018echo "$as_me:$LINENO: checking for $ac_word" >&5
2019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2020if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2021  echo $ECHO_N "(cached) $ECHO_C" >&6
2022else
2023  if test -n "$ac_ct_STRIP"; then
2024  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2025else
2026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027for as_dir in $PATH
2028do
2029  IFS=$as_save_IFS
2030  test -z "$as_dir" && as_dir=.
2031  for ac_exec_ext in '' $ac_executable_extensions; do
2032  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2033    ac_cv_prog_ac_ct_STRIP="strip"
2034    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035    break 2
2036  fi
2037done
2038done
2039
2040  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2041fi
2042fi
2043ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2044if test -n "$ac_ct_STRIP"; then
2045  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2046echo "${ECHO_T}$ac_ct_STRIP" >&6
2047else
2048  echo "$as_me:$LINENO: result: no" >&5
2049echo "${ECHO_T}no" >&6
2050fi
2051
2052  STRIP=$ac_ct_STRIP
2053else
2054  STRIP="$ac_cv_prog_STRIP"
2055fi
2056
2057fi
2058INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2059
2060# We need awk for the "check" target.  The system "awk" is bad on
2061# some platforms.
2062
2063
2064
2065
2066unset CDPATH
2067
2068
2069if test "x$prefix" = "xNONE"; then
2070  prefix=$ac_default_prefix
2071    ac_configure_args="$ac_configure_args --prefix $prefix"
2072    fi
2073
2074          ac_config_headers="$ac_config_headers config.h"
2075
2076
2077DEPDIR="${am__leading_dot}deps"
2078
2079          ac_config_commands="$ac_config_commands depfiles"
2080
2081
2082am_make=${MAKE-make}
2083cat > confinc << 'END'
2084am__doit:
2085	@echo done
2086.PHONY: am__doit
2087END
2088# If we don't find an include directive, just comment out the code.
2089echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2090echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2091am__include="#"
2092am__quote=
2093_am_result=none
2094# First try GNU make style include.
2095echo "include confinc" > confmf
2096# We grep out `Entering directory' and `Leaving directory'
2097# messages which can occur if `w' ends up in MAKEFLAGS.
2098# In particular we don't look at `^make:' because GNU make might
2099# be invoked under some other name (usually "gmake"), in which
2100# case it prints its new name instead of `make'.
2101if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2102   am__include=include
2103   am__quote=
2104   _am_result=GNU
2105fi
2106# Now try BSD make style include.
2107if test "$am__include" = "#"; then
2108   echo '.include "confinc"' > confmf
2109   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2110      am__include=.include
2111      am__quote="\""
2112      _am_result=BSD
2113   fi
2114fi
2115
2116
2117echo "$as_me:$LINENO: result: $_am_result" >&5
2118echo "${ECHO_T}$_am_result" >&6
2119rm -f confinc confmf
2120
2121# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2122if test "${enable_dependency_tracking+set}" = set; then
2123  enableval="$enable_dependency_tracking"
2124
2125fi;
2126if test "x$enable_dependency_tracking" != xno; then
2127  am_depcomp="$ac_aux_dir/depcomp"
2128  AMDEPBACKSLASH='\'
2129fi
2130
2131
2132if test "x$enable_dependency_tracking" != xno; then
2133  AMDEP_TRUE=
2134  AMDEP_FALSE='#'
2135else
2136  AMDEP_TRUE='#'
2137  AMDEP_FALSE=
2138fi
2139
2140
2141
2142
2143
2144
2145  # Check whether --enable-debug or --disable-debug was given.
2146if test "${enable_debug+set}" = set; then
2147  enableval="$enable_debug"
2148
2149    case $enableval in
2150      yes)
2151        kde_use_debug_code="yes"
2152        kde_use_debug_define=no
2153        ;;
2154      full)
2155        kde_use_debug_code="full"
2156        kde_use_debug_define=no
2157        ;;
2158      *)
2159        kde_use_debug_code="no"
2160        kde_use_debug_define=yes
2161        ;;
2162    esac
2163
2164else
2165  kde_use_debug_code="no"
2166      kde_use_debug_define=no
2167
2168fi;
2169
2170    # Check whether --enable-dummyoption or --disable-dummyoption was given.
2171if test "${enable_dummyoption+set}" = set; then
2172  enableval="$enable_dummyoption"
2173
2174fi;
2175
2176  # Check whether --enable-strict or --disable-strict was given.
2177if test "${enable_strict+set}" = set; then
2178  enableval="$enable_strict"
2179
2180    if test $enableval = "no"; then
2181         kde_use_strict_options="no"
2182       else
2183         kde_use_strict_options="yes"
2184    fi
2185
2186else
2187  kde_use_strict_options="no"
2188fi;
2189
2190  # Check whether --enable-warnings or --disable-warnings was given.
2191if test "${enable_warnings+set}" = set; then
2192  enableval="$enable_warnings"
2193
2194    if test $enableval = "no"; then
2195         kde_use_warnings="no"
2196       else
2197         kde_use_warnings="yes"
2198    fi
2199
2200else
2201  kde_use_warnings="yes"
2202fi;
2203
2204    if test "$kde_use_debug_code" != "no"; then
2205    kde_use_warnings=yes
2206  fi
2207
2208  # Check whether --enable-profile or --disable-profile was given.
2209if test "${enable_profile+set}" = set; then
2210  enableval="$enable_profile"
2211  kde_use_profiling=$enableval
2212else
2213  kde_use_profiling="no"
2214
2215fi;
2216
2217    CFLAGS=" $CFLAGS"
2218
2219  ac_ext=c
2220ac_cpp='$CPP $CPPFLAGS'
2221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2223ac_compiler_gnu=$ac_cv_c_compiler_gnu
2224if test -n "$ac_tool_prefix"; then
2225  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2226set dummy ${ac_tool_prefix}gcc; ac_word=$2
2227echo "$as_me:$LINENO: checking for $ac_word" >&5
2228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229if test "${ac_cv_prog_CC+set}" = set; then
2230  echo $ECHO_N "(cached) $ECHO_C" >&6
2231else
2232  if test -n "$CC"; then
2233  ac_cv_prog_CC="$CC" # Let the user override the test.
2234else
2235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236for as_dir in $PATH
2237do
2238  IFS=$as_save_IFS
2239  test -z "$as_dir" && as_dir=.
2240  for ac_exec_ext in '' $ac_executable_extensions; do
2241  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2243    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244    break 2
2245  fi
2246done
2247done
2248
2249fi
2250fi
2251CC=$ac_cv_prog_CC
2252if test -n "$CC"; then
2253  echo "$as_me:$LINENO: result: $CC" >&5
2254echo "${ECHO_T}$CC" >&6
2255else
2256  echo "$as_me:$LINENO: result: no" >&5
2257echo "${ECHO_T}no" >&6
2258fi
2259
2260fi
2261if test -z "$ac_cv_prog_CC"; then
2262  ac_ct_CC=$CC
2263  # Extract the first word of "gcc", so it can be a program name with args.
2264set dummy gcc; ac_word=$2
2265echo "$as_me:$LINENO: checking for $ac_word" >&5
2266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2267if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2268  echo $ECHO_N "(cached) $ECHO_C" >&6
2269else
2270  if test -n "$ac_ct_CC"; then
2271  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2272else
2273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274for as_dir in $PATH
2275do
2276  IFS=$as_save_IFS
2277  test -z "$as_dir" && as_dir=.
2278  for ac_exec_ext in '' $ac_executable_extensions; do
2279  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2280    ac_cv_prog_ac_ct_CC="gcc"
2281    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2282    break 2
2283  fi
2284done
2285done
2286
2287fi
2288fi
2289ac_ct_CC=$ac_cv_prog_ac_ct_CC
2290if test -n "$ac_ct_CC"; then
2291  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2292echo "${ECHO_T}$ac_ct_CC" >&6
2293else
2294  echo "$as_me:$LINENO: result: no" >&5
2295echo "${ECHO_T}no" >&6
2296fi
2297
2298  CC=$ac_ct_CC
2299else
2300  CC="$ac_cv_prog_CC"
2301fi
2302
2303if test -z "$CC"; then
2304  if test -n "$ac_tool_prefix"; then
2305  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2306set dummy ${ac_tool_prefix}cc; ac_word=$2
2307echo "$as_me:$LINENO: checking for $ac_word" >&5
2308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2309if test "${ac_cv_prog_CC+set}" = set; then
2310  echo $ECHO_N "(cached) $ECHO_C" >&6
2311else
2312  if test -n "$CC"; then
2313  ac_cv_prog_CC="$CC" # Let the user override the test.
2314else
2315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316for as_dir in $PATH
2317do
2318  IFS=$as_save_IFS
2319  test -z "$as_dir" && as_dir=.
2320  for ac_exec_ext in '' $ac_executable_extensions; do
2321  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2322    ac_cv_prog_CC="${ac_tool_prefix}cc"
2323    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324    break 2
2325  fi
2326done
2327done
2328
2329fi
2330fi
2331CC=$ac_cv_prog_CC
2332if test -n "$CC"; then
2333  echo "$as_me:$LINENO: result: $CC" >&5
2334echo "${ECHO_T}$CC" >&6
2335else
2336  echo "$as_me:$LINENO: result: no" >&5
2337echo "${ECHO_T}no" >&6
2338fi
2339
2340fi
2341if test -z "$ac_cv_prog_CC"; then
2342  ac_ct_CC=$CC
2343  # Extract the first word of "cc", so it can be a program name with args.
2344set dummy cc; ac_word=$2
2345echo "$as_me:$LINENO: checking for $ac_word" >&5
2346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2347if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2348  echo $ECHO_N "(cached) $ECHO_C" >&6
2349else
2350  if test -n "$ac_ct_CC"; then
2351  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2352else
2353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354for as_dir in $PATH
2355do
2356  IFS=$as_save_IFS
2357  test -z "$as_dir" && as_dir=.
2358  for ac_exec_ext in '' $ac_executable_extensions; do
2359  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2360    ac_cv_prog_ac_ct_CC="cc"
2361    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362    break 2
2363  fi
2364done
2365done
2366
2367fi
2368fi
2369ac_ct_CC=$ac_cv_prog_ac_ct_CC
2370if test -n "$ac_ct_CC"; then
2371  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2372echo "${ECHO_T}$ac_ct_CC" >&6
2373else
2374  echo "$as_me:$LINENO: result: no" >&5
2375echo "${ECHO_T}no" >&6
2376fi
2377
2378  CC=$ac_ct_CC
2379else
2380  CC="$ac_cv_prog_CC"
2381fi
2382
2383fi
2384if test -z "$CC"; then
2385  # Extract the first word of "cc", so it can be a program name with args.
2386set dummy cc; ac_word=$2
2387echo "$as_me:$LINENO: checking for $ac_word" >&5
2388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2389if test "${ac_cv_prog_CC+set}" = set; then
2390  echo $ECHO_N "(cached) $ECHO_C" >&6
2391else
2392  if test -n "$CC"; then
2393  ac_cv_prog_CC="$CC" # Let the user override the test.
2394else
2395  ac_prog_rejected=no
2396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397for as_dir in $PATH
2398do
2399  IFS=$as_save_IFS
2400  test -z "$as_dir" && as_dir=.
2401  for ac_exec_ext in '' $ac_executable_extensions; do
2402  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2404       ac_prog_rejected=yes
2405       continue
2406     fi
2407    ac_cv_prog_CC="cc"
2408    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409    break 2
2410  fi
2411done
2412done
2413
2414if test $ac_prog_rejected = yes; then
2415  # We found a bogon in the path, so make sure we never use it.
2416  set dummy $ac_cv_prog_CC
2417  shift
2418  if test $@%:@ != 0; then
2419    # We chose a different compiler from the bogus one.
2420    # However, it has the same basename, so the bogon will be chosen
2421    # first if we set CC to just the basename; use the full file name.
2422    shift
2423    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2424  fi
2425fi
2426fi
2427fi
2428CC=$ac_cv_prog_CC
2429if test -n "$CC"; then
2430  echo "$as_me:$LINENO: result: $CC" >&5
2431echo "${ECHO_T}$CC" >&6
2432else
2433  echo "$as_me:$LINENO: result: no" >&5
2434echo "${ECHO_T}no" >&6
2435fi
2436
2437fi
2438if test -z "$CC"; then
2439  if test -n "$ac_tool_prefix"; then
2440  for ac_prog in cl
2441  do
2442    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2443set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2444echo "$as_me:$LINENO: checking for $ac_word" >&5
2445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446if test "${ac_cv_prog_CC+set}" = set; then
2447  echo $ECHO_N "(cached) $ECHO_C" >&6
2448else
2449  if test -n "$CC"; then
2450  ac_cv_prog_CC="$CC" # Let the user override the test.
2451else
2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453for as_dir in $PATH
2454do
2455  IFS=$as_save_IFS
2456  test -z "$as_dir" && as_dir=.
2457  for ac_exec_ext in '' $ac_executable_extensions; do
2458  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2460    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461    break 2
2462  fi
2463done
2464done
2465
2466fi
2467fi
2468CC=$ac_cv_prog_CC
2469if test -n "$CC"; then
2470  echo "$as_me:$LINENO: result: $CC" >&5
2471echo "${ECHO_T}$CC" >&6
2472else
2473  echo "$as_me:$LINENO: result: no" >&5
2474echo "${ECHO_T}no" >&6
2475fi
2476
2477    test -n "$CC" && break
2478  done
2479fi
2480if test -z "$CC"; then
2481  ac_ct_CC=$CC
2482  for ac_prog in cl
2483do
2484  # Extract the first word of "$ac_prog", so it can be a program name with args.
2485set dummy $ac_prog; ac_word=$2
2486echo "$as_me:$LINENO: checking for $ac_word" >&5
2487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2489  echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491  if test -n "$ac_ct_CC"; then
2492  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2493else
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495for as_dir in $PATH
2496do
2497  IFS=$as_save_IFS
2498  test -z "$as_dir" && as_dir=.
2499  for ac_exec_ext in '' $ac_executable_extensions; do
2500  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501    ac_cv_prog_ac_ct_CC="$ac_prog"
2502    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503    break 2
2504  fi
2505done
2506done
2507
2508fi
2509fi
2510ac_ct_CC=$ac_cv_prog_ac_ct_CC
2511if test -n "$ac_ct_CC"; then
2512  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2513echo "${ECHO_T}$ac_ct_CC" >&6
2514else
2515  echo "$as_me:$LINENO: result: no" >&5
2516echo "${ECHO_T}no" >&6
2517fi
2518
2519  test -n "$ac_ct_CC" && break
2520done
2521
2522  CC=$ac_ct_CC
2523fi
2524
2525fi
2526
2527
2528test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2529See \`config.log' for more details." >&5
2530echo "$as_me: error: no acceptable C compiler found in \$PATH
2531See \`config.log' for more details." >&2;}
2532   { (exit 1); exit 1; }; }
2533
2534# Provide some information about the compiler.
2535echo "$as_me:$LINENO:" \
2536     "checking for C compiler version" >&5
2537ac_compiler=`set X $ac_compile; echo $2`
2538{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2539  (eval $ac_compiler --version </dev/null >&5) 2>&5
2540  ac_status=$?
2541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542  (exit $ac_status); }
2543{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2544  (eval $ac_compiler -v </dev/null >&5) 2>&5
2545  ac_status=$?
2546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547  (exit $ac_status); }
2548{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2549  (eval $ac_compiler -V </dev/null >&5) 2>&5
2550  ac_status=$?
2551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552  (exit $ac_status); }
2553
2554cat >conftest.$ac_ext <<_ACEOF
2555/* confdefs.h.  */
2556_ACEOF
2557cat confdefs.h >>conftest.$ac_ext
2558cat >>conftest.$ac_ext <<_ACEOF
2559/* end confdefs.h.  */
2560
2561int
2562main ()
2563{
2564
2565  ;
2566  return 0;
2567}
2568_ACEOF
2569ac_clean_files_save=$ac_clean_files
2570ac_clean_files="$ac_clean_files a.out a.exe b.out"
2571# Try to create an executable without -o first, disregard a.out.
2572# It will help us diagnose broken compilers, and finding out an intuition
2573# of exeext.
2574echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2575echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2576ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2577if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2578  (eval $ac_link_default) 2>&5
2579  ac_status=$?
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); }; then
2582  # Find the output, starting from the most likely.  This scheme is
2583# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2584# resort.
2585
2586# Be careful to initialize this variable, since it used to be cached.
2587# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2588ac_cv_exeext=
2589# b.out is created by i960 compilers.
2590for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2591do
2592  test -f "$ac_file" || continue
2593  case $ac_file in
2594    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2595	;;
2596    conftest.$ac_ext )
2597	# This is the source file.
2598	;;
2599    [ab].out )
2600	# We found the default executable, but exeext='' is most
2601	# certainly right.
2602	break;;
2603    *.* )
2604	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2605	# FIXME: I believe we export ac_cv_exeext for Libtool,
2606	# but it would be cool to find out if it's true.  Does anybody
2607	# maintain Libtool? --akim.
2608	export ac_cv_exeext
2609	break;;
2610    * )
2611	break;;
2612  esac
2613done
2614else
2615  echo "$as_me: failed program was:" >&5
2616sed 's/^/| /' conftest.$ac_ext >&5
2617
2618{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2619See \`config.log' for more details." >&5
2620echo "$as_me: error: C compiler cannot create executables
2621See \`config.log' for more details." >&2;}
2622   { (exit 77); exit 77; }; }
2623fi
2624
2625ac_exeext=$ac_cv_exeext
2626echo "$as_me:$LINENO: result: $ac_file" >&5
2627echo "${ECHO_T}$ac_file" >&6
2628
2629# Check the compiler produces executables we can run.  If not, either
2630# the compiler is broken, or we cross compile.
2631echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2632echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2633# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2634# If not cross compiling, check that we can run a simple program.
2635if test "$cross_compiling" != yes; then
2636  if { ac_try='./$ac_file'
2637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638  (eval $ac_try) 2>&5
2639  ac_status=$?
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); }; }; then
2642    cross_compiling=no
2643  else
2644    if test "$cross_compiling" = maybe; then
2645	cross_compiling=yes
2646    else
2647	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2648If you meant to cross compile, use \`--host'.
2649See \`config.log' for more details." >&5
2650echo "$as_me: error: cannot run C compiled programs.
2651If you meant to cross compile, use \`--host'.
2652See \`config.log' for more details." >&2;}
2653   { (exit 1); exit 1; }; }
2654    fi
2655  fi
2656fi
2657echo "$as_me:$LINENO: result: yes" >&5
2658echo "${ECHO_T}yes" >&6
2659
2660rm -f a.out a.exe conftest$ac_cv_exeext b.out
2661ac_clean_files=$ac_clean_files_save
2662# Check the compiler produces executables we can run.  If not, either
2663# the compiler is broken, or we cross compile.
2664echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2665echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2666echo "$as_me:$LINENO: result: $cross_compiling" >&5
2667echo "${ECHO_T}$cross_compiling" >&6
2668
2669echo "$as_me:$LINENO: checking for suffix of executables" >&5
2670echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2672  (eval $ac_link) 2>&5
2673  ac_status=$?
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); }; then
2676  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2677# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2678# work properly (i.e., refer to `conftest.exe'), while it won't with
2679# `rm'.
2680for ac_file in conftest.exe conftest conftest.*; do
2681  test -f "$ac_file" || continue
2682  case $ac_file in
2683    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2684    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2685	  export ac_cv_exeext
2686	  break;;
2687    * ) break;;
2688  esac
2689done
2690else
2691  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2692See \`config.log' for more details." >&5
2693echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2694See \`config.log' for more details." >&2;}
2695   { (exit 1); exit 1; }; }
2696fi
2697
2698rm -f conftest$ac_cv_exeext
2699echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2700echo "${ECHO_T}$ac_cv_exeext" >&6
2701
2702rm -f conftest.$ac_ext
2703EXEEXT=$ac_cv_exeext
2704ac_exeext=$EXEEXT
2705echo "$as_me:$LINENO: checking for suffix of object files" >&5
2706echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2707if test "${ac_cv_objext+set}" = set; then
2708  echo $ECHO_N "(cached) $ECHO_C" >&6
2709else
2710  cat >conftest.$ac_ext <<_ACEOF
2711/* confdefs.h.  */
2712_ACEOF
2713cat confdefs.h >>conftest.$ac_ext
2714cat >>conftest.$ac_ext <<_ACEOF
2715/* end confdefs.h.  */
2716
2717int
2718main ()
2719{
2720
2721  ;
2722  return 0;
2723}
2724_ACEOF
2725rm -f conftest.o conftest.obj
2726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727  (eval $ac_compile) 2>&5
2728  ac_status=$?
2729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730  (exit $ac_status); }; then
2731  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2732  case $ac_file in
2733    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2734    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2735       break;;
2736  esac
2737done
2738else
2739  echo "$as_me: failed program was:" >&5
2740sed 's/^/| /' conftest.$ac_ext >&5
2741
2742{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2743See \`config.log' for more details." >&5
2744echo "$as_me: error: cannot compute suffix of object files: cannot compile
2745See \`config.log' for more details." >&2;}
2746   { (exit 1); exit 1; }; }
2747fi
2748
2749rm -f conftest.$ac_cv_objext conftest.$ac_ext
2750fi
2751echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2752echo "${ECHO_T}$ac_cv_objext" >&6
2753OBJEXT=$ac_cv_objext
2754ac_objext=$OBJEXT
2755echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2756echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2757if test "${ac_cv_c_compiler_gnu+set}" = set; then
2758  echo $ECHO_N "(cached) $ECHO_C" >&6
2759else
2760  cat >conftest.$ac_ext <<_ACEOF
2761/* confdefs.h.  */
2762_ACEOF
2763cat confdefs.h >>conftest.$ac_ext
2764cat >>conftest.$ac_ext <<_ACEOF
2765/* end confdefs.h.  */
2766
2767int
2768main ()
2769{
2770#ifndef __GNUC__
2771       choke me
2772#endif
2773
2774  ;
2775  return 0;
2776}
2777_ACEOF
2778rm -f conftest.$ac_objext
2779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780  (eval $ac_compile) 2>conftest.er1
2781  ac_status=$?
2782  grep -v '^ *+' conftest.er1 >conftest.err
2783  rm -f conftest.er1
2784  cat conftest.err >&5
2785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786  (exit $ac_status); } &&
2787	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789  (eval $ac_try) 2>&5
2790  ac_status=$?
2791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792  (exit $ac_status); }; } &&
2793	 { ac_try='test -s conftest.$ac_objext'
2794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795  (eval $ac_try) 2>&5
2796  ac_status=$?
2797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798  (exit $ac_status); }; }; then
2799  ac_compiler_gnu=yes
2800else
2801  echo "$as_me: failed program was:" >&5
2802sed 's/^/| /' conftest.$ac_ext >&5
2803
2804ac_compiler_gnu=no
2805fi
2806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2807ac_cv_c_compiler_gnu=$ac_compiler_gnu
2808
2809fi
2810echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2811echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2812GCC=`test $ac_compiler_gnu = yes && echo yes`
2813ac_test_CFLAGS=${CFLAGS+set}
2814ac_save_CFLAGS=$CFLAGS
2815CFLAGS="-g"
2816echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2817echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2818if test "${ac_cv_prog_cc_g+set}" = set; then
2819  echo $ECHO_N "(cached) $ECHO_C" >&6
2820else
2821  cat >conftest.$ac_ext <<_ACEOF
2822/* confdefs.h.  */
2823_ACEOF
2824cat confdefs.h >>conftest.$ac_ext
2825cat >>conftest.$ac_ext <<_ACEOF
2826/* end confdefs.h.  */
2827
2828int
2829main ()
2830{
2831
2832  ;
2833  return 0;
2834}
2835_ACEOF
2836rm -f conftest.$ac_objext
2837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838  (eval $ac_compile) 2>conftest.er1
2839  ac_status=$?
2840  grep -v '^ *+' conftest.er1 >conftest.err
2841  rm -f conftest.er1
2842  cat conftest.err >&5
2843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844  (exit $ac_status); } &&
2845	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847  (eval $ac_try) 2>&5
2848  ac_status=$?
2849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850  (exit $ac_status); }; } &&
2851	 { ac_try='test -s conftest.$ac_objext'
2852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853  (eval $ac_try) 2>&5
2854  ac_status=$?
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); }; }; then
2857  ac_cv_prog_cc_g=yes
2858else
2859  echo "$as_me: failed program was:" >&5
2860sed 's/^/| /' conftest.$ac_ext >&5
2861
2862ac_cv_prog_cc_g=no
2863fi
2864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2865fi
2866echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2867echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2868if test "$ac_test_CFLAGS" = set; then
2869  CFLAGS=$ac_save_CFLAGS
2870elif test $ac_cv_prog_cc_g = yes; then
2871  if test "$GCC" = yes; then
2872    CFLAGS="-g -O2"
2873  else
2874    CFLAGS="-g"
2875  fi
2876else
2877  if test "$GCC" = yes; then
2878    CFLAGS="-O2"
2879  else
2880    CFLAGS=
2881  fi
2882fi
2883echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2884echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2885if test "${ac_cv_prog_cc_stdc+set}" = set; then
2886  echo $ECHO_N "(cached) $ECHO_C" >&6
2887else
2888  ac_cv_prog_cc_stdc=no
2889ac_save_CC=$CC
2890cat >conftest.$ac_ext <<_ACEOF
2891/* confdefs.h.  */
2892_ACEOF
2893cat confdefs.h >>conftest.$ac_ext
2894cat >>conftest.$ac_ext <<_ACEOF
2895/* end confdefs.h.  */
2896#include <stdarg.h>
2897#include <stdio.h>
2898#include <sys/types.h>
2899#include <sys/stat.h>
2900/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2901struct buf { int x; };
2902FILE * (*rcsopen) (struct buf *, struct stat *, int);
2903static char *e (p, i)
2904     char **p;
2905     int i;
2906{
2907  return p[i];
2908}
2909static char *f (char * (*g) (char **, int), char **p, ...)
2910{
2911  char *s;
2912  va_list v;
2913  va_start (v,p);
2914  s = g (p, va_arg (v,int));
2915  va_end (v);
2916  return s;
2917}
2918
2919/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2920   function prototypes and stuff, but not '\xHH' hex character constants.
2921   These don't provoke an error unfortunately, instead are silently treated
2922   as 'x'.  The following induces an error, until -std1 is added to get
2923   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2924   array size at least.  It's necessary to write '\x00'==0 to get something
2925   that's true only with -std1.  */
2926int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2927
2928int test (int i, double x);
2929struct s1 {int (*f) (int a);};
2930struct s2 {int (*f) (double a);};
2931int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2932int argc;
2933char **argv;
2934int
2935main ()
2936{
2937return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2938  ;
2939  return 0;
2940}
2941_ACEOF
2942# Don't try gcc -ansi; that turns off useful extensions and
2943# breaks some systems' header files.
2944# AIX			-qlanglvl=ansi
2945# Ultrix and OSF/1	-std1
2946# HP-UX 10.20 and later	-Ae
2947# HP-UX older versions	-Aa -D_HPUX_SOURCE
2948# SVR4			-Xc -D__EXTENSIONS__
2949for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2950do
2951  CC="$ac_save_CC $ac_arg"
2952  rm -f conftest.$ac_objext
2953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2954  (eval $ac_compile) 2>conftest.er1
2955  ac_status=$?
2956  grep -v '^ *+' conftest.er1 >conftest.err
2957  rm -f conftest.er1
2958  cat conftest.err >&5
2959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960  (exit $ac_status); } &&
2961	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963  (eval $ac_try) 2>&5
2964  ac_status=$?
2965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966  (exit $ac_status); }; } &&
2967	 { ac_try='test -s conftest.$ac_objext'
2968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969  (eval $ac_try) 2>&5
2970  ac_status=$?
2971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972  (exit $ac_status); }; }; then
2973  ac_cv_prog_cc_stdc=$ac_arg
2974break
2975else
2976  echo "$as_me: failed program was:" >&5
2977sed 's/^/| /' conftest.$ac_ext >&5
2978
2979fi
2980rm -f conftest.err conftest.$ac_objext
2981done
2982rm -f conftest.$ac_ext conftest.$ac_objext
2983CC=$ac_save_CC
2984
2985fi
2986
2987case "x$ac_cv_prog_cc_stdc" in
2988  x|xno)
2989    echo "$as_me:$LINENO: result: none needed" >&5
2990echo "${ECHO_T}none needed" >&6 ;;
2991  *)
2992    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2993echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2994    CC="$CC $ac_cv_prog_cc_stdc" ;;
2995esac
2996
2997# Some people use a C++ compiler to compile C.  Since we use `exit',
2998# in C++ we need to declare it.  In case someone uses the same compiler
2999# for both compiling C and C++ we need to have the C++ compiler decide
3000# the declaration of exit, since it's the most demanding environment.
3001cat >conftest.$ac_ext <<_ACEOF
3002@%:@ifndef __cplusplus
3003  choke me
3004@%:@endif
3005_ACEOF
3006rm -f conftest.$ac_objext
3007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3008  (eval $ac_compile) 2>conftest.er1
3009  ac_status=$?
3010  grep -v '^ *+' conftest.er1 >conftest.err
3011  rm -f conftest.er1
3012  cat conftest.err >&5
3013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014  (exit $ac_status); } &&
3015	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017  (eval $ac_try) 2>&5
3018  ac_status=$?
3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020  (exit $ac_status); }; } &&
3021	 { ac_try='test -s conftest.$ac_objext'
3022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023  (eval $ac_try) 2>&5
3024  ac_status=$?
3025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026  (exit $ac_status); }; }; then
3027  for ac_declaration in \
3028   '' \
3029   'extern "C" void std::exit (int) throw (); using std::exit;' \
3030   'extern "C" void std::exit (int); using std::exit;' \
3031   'extern "C" void exit (int) throw ();' \
3032   'extern "C" void exit (int);' \
3033   'void exit (int);'
3034do
3035  cat >conftest.$ac_ext <<_ACEOF
3036/* confdefs.h.  */
3037_ACEOF
3038cat confdefs.h >>conftest.$ac_ext
3039cat >>conftest.$ac_ext <<_ACEOF
3040/* end confdefs.h.  */
3041$ac_declaration
3042@%:@include <stdlib.h>
3043int
3044main ()
3045{
3046exit (42);
3047  ;
3048  return 0;
3049}
3050_ACEOF
3051rm -f conftest.$ac_objext
3052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3053  (eval $ac_compile) 2>conftest.er1
3054  ac_status=$?
3055  grep -v '^ *+' conftest.er1 >conftest.err
3056  rm -f conftest.er1
3057  cat conftest.err >&5
3058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059  (exit $ac_status); } &&
3060	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062  (eval $ac_try) 2>&5
3063  ac_status=$?
3064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065  (exit $ac_status); }; } &&
3066	 { ac_try='test -s conftest.$ac_objext'
3067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068  (eval $ac_try) 2>&5
3069  ac_status=$?
3070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071  (exit $ac_status); }; }; then
3072  :
3073else
3074  echo "$as_me: failed program was:" >&5
3075sed 's/^/| /' conftest.$ac_ext >&5
3076
3077continue
3078fi
3079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3080  cat >conftest.$ac_ext <<_ACEOF
3081/* confdefs.h.  */
3082_ACEOF
3083cat confdefs.h >>conftest.$ac_ext
3084cat >>conftest.$ac_ext <<_ACEOF
3085/* end confdefs.h.  */
3086$ac_declaration
3087int
3088main ()
3089{
3090exit (42);
3091  ;
3092  return 0;
3093}
3094_ACEOF
3095rm -f conftest.$ac_objext
3096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3097  (eval $ac_compile) 2>conftest.er1
3098  ac_status=$?
3099  grep -v '^ *+' conftest.er1 >conftest.err
3100  rm -f conftest.er1
3101  cat conftest.err >&5
3102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103  (exit $ac_status); } &&
3104	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106  (eval $ac_try) 2>&5
3107  ac_status=$?
3108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109  (exit $ac_status); }; } &&
3110	 { ac_try='test -s conftest.$ac_objext'
3111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3112  (eval $ac_try) 2>&5
3113  ac_status=$?
3114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115  (exit $ac_status); }; }; then
3116  break
3117else
3118  echo "$as_me: failed program was:" >&5
3119sed 's/^/| /' conftest.$ac_ext >&5
3120
3121fi
3122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3123done
3124rm -f conftest*
3125if test -n "$ac_declaration"; then
3126  echo '#ifdef __cplusplus' >>confdefs.h
3127  echo $ac_declaration      >>confdefs.h
3128  echo '#endif'             >>confdefs.h
3129fi
3130
3131else
3132  echo "$as_me: failed program was:" >&5
3133sed 's/^/| /' conftest.$ac_ext >&5
3134
3135fi
3136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3137ac_ext=c
3138ac_cpp='$CPP $CPPFLAGS'
3139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142
3143depcc="$CC"   am_compiler_list=
3144
3145echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3146echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3147if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3148  echo $ECHO_N "(cached) $ECHO_C" >&6
3149else
3150  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3151  # We make a subdir and do the tests there.  Otherwise we can end up
3152  # making bogus files that we don't know about and never remove.  For
3153  # instance it was reported that on HP-UX the gcc test will end up
3154  # making a dummy file named `D' -- because `-MD' means `put the output
3155  # in D'.
3156  mkdir conftest.dir
3157  # Copy depcomp to subdir because otherwise we won't find it if we're
3158  # using a relative directory.
3159  cp "$am_depcomp" conftest.dir
3160  cd conftest.dir
3161  # We will build objects and dependencies in a subdirectory because
3162  # it helps to detect inapplicable dependency modes.  For instance
3163  # both Tru64's cc and ICC support -MD to output dependencies as a
3164  # side effect of compilation, but ICC will put the dependencies in
3165  # the current directory while Tru64 will put them in the object
3166  # directory.
3167  mkdir sub
3168
3169  am_cv_CC_dependencies_compiler_type=none
3170  if test "$am_compiler_list" = ""; then
3171     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3172  fi
3173  for depmode in $am_compiler_list; do
3174    # Setup a source with many dependencies, because some compilers
3175    # like to wrap large dependency lists on column 80 (with \), and
3176    # we should not choose a depcomp mode which is confused by this.
3177    #
3178    # We need to recreate these files for each test, as the compiler may
3179    # overwrite some of them when testing with obscure command lines.
3180    # This happens at least with the AIX C compiler.
3181    : > sub/conftest.c
3182    for i in 1 2 3 4 5 6; do
3183      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3184      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3185      # Solaris 8's {/usr,}/bin/sh.
3186      touch sub/conftst$i.h
3187    done
3188    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3189
3190    case $depmode in
3191    nosideeffect)
3192      # after this tag, mechanisms are not by side-effect, so they'll
3193      # only be used when explicitly requested
3194      if test "x$enable_dependency_tracking" = xyes; then
3195	continue
3196      else
3197	break
3198      fi
3199      ;;
3200    none) break ;;
3201    esac
3202    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3203    # mode.  It turns out that the SunPro C++ compiler does not properly
3204    # handle `-M -o', and we need to detect this.
3205    if depmode=$depmode \
3206       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3207       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3208       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3209         >/dev/null 2>conftest.err &&
3210       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3211       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3212       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3213      # icc doesn't choke on unknown options, it will just issue warnings
3214      # or remarks (even with -Werror).  So we grep stderr for any message
3215      # that says an option was ignored or not supported.
3216      # When given -MP, icc 7.0 and 7.1 complain thusly:
3217      #   icc: Command line warning: ignoring option '-M'; no argument required
3218      # The diagnosis changed in icc 8.0:
3219      #   icc: Command line remark: option '-MP' not supported
3220      if (grep 'ignoring option' conftest.err ||
3221          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3222        am_cv_CC_dependencies_compiler_type=$depmode
3223        break
3224      fi
3225    fi
3226  done
3227
3228  cd ..
3229  rm -rf conftest.dir
3230else
3231  am_cv_CC_dependencies_compiler_type=none
3232fi
3233
3234fi
3235echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3236echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3237CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3238
3239
3240
3241if
3242  test "x$enable_dependency_tracking" != xno \
3243  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3244  am__fastdepCC_TRUE=
3245  am__fastdepCC_FALSE='#'
3246else
3247  am__fastdepCC_TRUE='#'
3248  am__fastdepCC_FALSE=
3249fi
3250
3251
3252
3253  ac_ext=c
3254ac_cpp='$CPP $CPPFLAGS'
3255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257ac_compiler_gnu=$ac_cv_c_compiler_gnu
3258echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3259echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3260# On Suns, sometimes $CPP names a directory.
3261if test -n "$CPP" && test -d "$CPP"; then
3262  CPP=
3263fi
3264if test -z "$CPP"; then
3265  if test "${ac_cv_prog_CPP+set}" = set; then
3266  echo $ECHO_N "(cached) $ECHO_C" >&6
3267else
3268      # Double quotes because CPP needs to be expanded
3269    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3270    do
3271      ac_preproc_ok=false
3272for ac_c_preproc_warn_flag in '' yes
3273do
3274  # Use a header file that comes with gcc, so configuring glibc
3275  # with a fresh cross-compiler works.
3276  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3277  # <limits.h> exists even on freestanding compilers.
3278  # On the NeXT, cc -E runs the code through the compiler's parser,
3279  # not just through cpp. "Syntax error" is here to catch this case.
3280  cat >conftest.$ac_ext <<_ACEOF
3281/* confdefs.h.  */
3282_ACEOF
3283cat confdefs.h >>conftest.$ac_ext
3284cat >>conftest.$ac_ext <<_ACEOF
3285/* end confdefs.h.  */
3286@%:@ifdef __STDC__
3287@%:@ include <limits.h>
3288@%:@else
3289@%:@ include <assert.h>
3290@%:@endif
3291		     Syntax error
3292_ACEOF
3293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3294  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3295  ac_status=$?
3296  grep -v '^ *+' conftest.er1 >conftest.err
3297  rm -f conftest.er1
3298  cat conftest.err >&5
3299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300  (exit $ac_status); } >/dev/null; then
3301  if test -s conftest.err; then
3302    ac_cpp_err=$ac_c_preproc_warn_flag
3303    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3304  else
3305    ac_cpp_err=
3306  fi
3307else
3308  ac_cpp_err=yes
3309fi
3310if test -z "$ac_cpp_err"; then
3311  :
3312else
3313  echo "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
3316  # Broken: fails on valid input.
3317continue
3318fi
3319rm -f conftest.err conftest.$ac_ext
3320
3321  # OK, works on sane cases.  Now check whether non-existent headers
3322  # can be detected and how.
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@%:@include <ac_nonexistent.h>
3330_ACEOF
3331if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3332  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3333  ac_status=$?
3334  grep -v '^ *+' conftest.er1 >conftest.err
3335  rm -f conftest.er1
3336  cat conftest.err >&5
3337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338  (exit $ac_status); } >/dev/null; then
3339  if test -s conftest.err; then
3340    ac_cpp_err=$ac_c_preproc_warn_flag
3341    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3342  else
3343    ac_cpp_err=
3344  fi
3345else
3346  ac_cpp_err=yes
3347fi
3348if test -z "$ac_cpp_err"; then
3349  # Broken: success on invalid input.
3350continue
3351else
3352  echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
3354
3355  # Passes both tests.
3356ac_preproc_ok=:
3357break
3358fi
3359rm -f conftest.err conftest.$ac_ext
3360
3361done
3362# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3363rm -f conftest.err conftest.$ac_ext
3364if $ac_preproc_ok; then
3365  break
3366fi
3367
3368    done
3369    ac_cv_prog_CPP=$CPP
3370
3371fi
3372  CPP=$ac_cv_prog_CPP
3373else
3374  ac_cv_prog_CPP=$CPP
3375fi
3376echo "$as_me:$LINENO: result: $CPP" >&5
3377echo "${ECHO_T}$CPP" >&6
3378ac_preproc_ok=false
3379for ac_c_preproc_warn_flag in '' yes
3380do
3381  # Use a header file that comes with gcc, so configuring glibc
3382  # with a fresh cross-compiler works.
3383  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384  # <limits.h> exists even on freestanding compilers.
3385  # On the NeXT, cc -E runs the code through the compiler's parser,
3386  # not just through cpp. "Syntax error" is here to catch this case.
3387  cat >conftest.$ac_ext <<_ACEOF
3388/* confdefs.h.  */
3389_ACEOF
3390cat confdefs.h >>conftest.$ac_ext
3391cat >>conftest.$ac_ext <<_ACEOF
3392/* end confdefs.h.  */
3393@%:@ifdef __STDC__
3394@%:@ include <limits.h>
3395@%:@else
3396@%:@ include <assert.h>
3397@%:@endif
3398		     Syntax error
3399_ACEOF
3400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3401  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3402  ac_status=$?
3403  grep -v '^ *+' conftest.er1 >conftest.err
3404  rm -f conftest.er1
3405  cat conftest.err >&5
3406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407  (exit $ac_status); } >/dev/null; then
3408  if test -s conftest.err; then
3409    ac_cpp_err=$ac_c_preproc_warn_flag
3410    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411  else
3412    ac_cpp_err=
3413  fi
3414else
3415  ac_cpp_err=yes
3416fi
3417if test -z "$ac_cpp_err"; then
3418  :
3419else
3420  echo "$as_me: failed program was:" >&5
3421sed 's/^/| /' conftest.$ac_ext >&5
3422
3423  # Broken: fails on valid input.
3424continue
3425fi
3426rm -f conftest.err conftest.$ac_ext
3427
3428  # OK, works on sane cases.  Now check whether non-existent headers
3429  # can be detected and how.
3430  cat >conftest.$ac_ext <<_ACEOF
3431/* confdefs.h.  */
3432_ACEOF
3433cat confdefs.h >>conftest.$ac_ext
3434cat >>conftest.$ac_ext <<_ACEOF
3435/* end confdefs.h.  */
3436@%:@include <ac_nonexistent.h>
3437_ACEOF
3438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3439  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3440  ac_status=$?
3441  grep -v '^ *+' conftest.er1 >conftest.err
3442  rm -f conftest.er1
3443  cat conftest.err >&5
3444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445  (exit $ac_status); } >/dev/null; then
3446  if test -s conftest.err; then
3447    ac_cpp_err=$ac_c_preproc_warn_flag
3448    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449  else
3450    ac_cpp_err=
3451  fi
3452else
3453  ac_cpp_err=yes
3454fi
3455if test -z "$ac_cpp_err"; then
3456  # Broken: success on invalid input.
3457continue
3458else
3459  echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
3462  # Passes both tests.
3463ac_preproc_ok=:
3464break
3465fi
3466rm -f conftest.err conftest.$ac_ext
3467
3468done
3469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470rm -f conftest.err conftest.$ac_ext
3471if $ac_preproc_ok; then
3472  :
3473else
3474  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3475See \`config.log' for more details." >&5
3476echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3477See \`config.log' for more details." >&2;}
3478   { (exit 1); exit 1; }; }
3479fi
3480
3481ac_ext=c
3482ac_cpp='$CPP $CPPFLAGS'
3483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
3487
3488  if test "$GCC" = "yes"; then
3489    if test "$kde_use_debug_code" != "no"; then
3490      if test $kde_use_debug_code = "full"; then
3491        CFLAGS="-g3 -fno-inline $CFLAGS"
3492      else
3493        CFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CFLAGS"
3494      fi
3495    else
3496      CFLAGS="-O2 $CFLAGS"
3497    fi
3498  fi
3499
3500  if test "$kde_use_debug_define" = "yes"; then
3501    CFLAGS="-DNDEBUG $CFLAGS"
3502  fi
3503
3504
3505  case "$host" in
3506  *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
3507  *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
3508  esac
3509
3510  if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
3511     LDFLAGS=""
3512  fi
3513
3514  CXXFLAGS=" $CXXFLAGS"
3515
3516  ac_ext=cc
3517ac_cpp='$CXXCPP $CPPFLAGS'
3518ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3521if test -n "$ac_tool_prefix"; then
3522  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3523  do
3524    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3525set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3526echo "$as_me:$LINENO: checking for $ac_word" >&5
3527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3528if test "${ac_cv_prog_CXX+set}" = set; then
3529  echo $ECHO_N "(cached) $ECHO_C" >&6
3530else
3531  if test -n "$CXX"; then
3532  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3533else
3534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535for as_dir in $PATH
3536do
3537  IFS=$as_save_IFS
3538  test -z "$as_dir" && as_dir=.
3539  for ac_exec_ext in '' $ac_executable_extensions; do
3540  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3542    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543    break 2
3544  fi
3545done
3546done
3547
3548fi
3549fi
3550CXX=$ac_cv_prog_CXX
3551if test -n "$CXX"; then
3552  echo "$as_me:$LINENO: result: $CXX" >&5
3553echo "${ECHO_T}$CXX" >&6
3554else
3555  echo "$as_me:$LINENO: result: no" >&5
3556echo "${ECHO_T}no" >&6
3557fi
3558
3559    test -n "$CXX" && break
3560  done
3561fi
3562if test -z "$CXX"; then
3563  ac_ct_CXX=$CXX
3564  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3565do
3566  # Extract the first word of "$ac_prog", so it can be a program name with args.
3567set dummy $ac_prog; ac_word=$2
3568echo "$as_me:$LINENO: checking for $ac_word" >&5
3569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3570if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3571  echo $ECHO_N "(cached) $ECHO_C" >&6
3572else
3573  if test -n "$ac_ct_CXX"; then
3574  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3575else
3576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577for as_dir in $PATH
3578do
3579  IFS=$as_save_IFS
3580  test -z "$as_dir" && as_dir=.
3581  for ac_exec_ext in '' $ac_executable_extensions; do
3582  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583    ac_cv_prog_ac_ct_CXX="$ac_prog"
3584    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3585    break 2
3586  fi
3587done
3588done
3589
3590fi
3591fi
3592ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3593if test -n "$ac_ct_CXX"; then
3594  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3595echo "${ECHO_T}$ac_ct_CXX" >&6
3596else
3597  echo "$as_me:$LINENO: result: no" >&5
3598echo "${ECHO_T}no" >&6
3599fi
3600
3601  test -n "$ac_ct_CXX" && break
3602done
3603test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3604
3605  CXX=$ac_ct_CXX
3606fi
3607
3608
3609# Provide some information about the compiler.
3610echo "$as_me:$LINENO:" \
3611     "checking for C++ compiler version" >&5
3612ac_compiler=`set X $ac_compile; echo $2`
3613{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3614  (eval $ac_compiler --version </dev/null >&5) 2>&5
3615  ac_status=$?
3616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617  (exit $ac_status); }
3618{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3619  (eval $ac_compiler -v </dev/null >&5) 2>&5
3620  ac_status=$?
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); }
3623{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3624  (eval $ac_compiler -V </dev/null >&5) 2>&5
3625  ac_status=$?
3626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627  (exit $ac_status); }
3628
3629echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3630echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3631if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3632  echo $ECHO_N "(cached) $ECHO_C" >&6
3633else
3634  cat >conftest.$ac_ext <<_ACEOF
3635/* confdefs.h.  */
3636_ACEOF
3637cat confdefs.h >>conftest.$ac_ext
3638cat >>conftest.$ac_ext <<_ACEOF
3639/* end confdefs.h.  */
3640
3641int
3642main ()
3643{
3644#ifndef __GNUC__
3645       choke me
3646#endif
3647
3648  ;
3649  return 0;
3650}
3651_ACEOF
3652rm -f conftest.$ac_objext
3653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654  (eval $ac_compile) 2>conftest.er1
3655  ac_status=$?
3656  grep -v '^ *+' conftest.er1 >conftest.err
3657  rm -f conftest.er1
3658  cat conftest.err >&5
3659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660  (exit $ac_status); } &&
3661	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
3662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663  (eval $ac_try) 2>&5
3664  ac_status=$?
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); }; } &&
3667	 { ac_try='test -s conftest.$ac_objext'
3668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669  (eval $ac_try) 2>&5
3670  ac_status=$?
3671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672  (exit $ac_status); }; }; then
3673  ac_compiler_gnu=yes
3674else
3675  echo "$as_me: failed program was:" >&5
3676sed 's/^/| /' conftest.$ac_ext >&5
3677
3678ac_compiler_gnu=no
3679fi
3680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3681ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3682
3683fi
3684echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3685echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3686GXX=`test $ac_compiler_gnu = yes && echo yes`
3687ac_test_CXXFLAGS=${CXXFLAGS+set}
3688ac_save_CXXFLAGS=$CXXFLAGS
3689CXXFLAGS="-g"
3690echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3691echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3692if test "${ac_cv_prog_cxx_g+set}" = set; then
3693  echo $ECHO_N "(cached) $ECHO_C" >&6
3694else
3695  cat >conftest.$ac_ext <<_ACEOF
3696/* confdefs.h.  */
3697_ACEOF
3698cat confdefs.h >>conftest.$ac_ext
3699cat >>conftest.$ac_ext <<_ACEOF
3700/* end confdefs.h.  */
3701
3702int
3703main ()
3704{
3705
3706  ;
3707  return 0;
3708}
3709_ACEOF
3710rm -f conftest.$ac_objext
3711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712  (eval $ac_compile) 2>conftest.er1
3713  ac_status=$?
3714  grep -v '^ *+' conftest.er1 >conftest.err
3715  rm -f conftest.er1
3716  cat conftest.err >&5
3717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718  (exit $ac_status); } &&
3719	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
3720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721  (eval $ac_try) 2>&5
3722  ac_status=$?
3723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724  (exit $ac_status); }; } &&
3725	 { ac_try='test -s conftest.$ac_objext'
3726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727  (eval $ac_try) 2>&5
3728  ac_status=$?
3729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730  (exit $ac_status); }; }; then
3731  ac_cv_prog_cxx_g=yes
3732else
3733  echo "$as_me: failed program was:" >&5
3734sed 's/^/| /' conftest.$ac_ext >&5
3735
3736ac_cv_prog_cxx_g=no
3737fi
3738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3739fi
3740echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3741echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3742if test "$ac_test_CXXFLAGS" = set; then
3743  CXXFLAGS=$ac_save_CXXFLAGS
3744elif test $ac_cv_prog_cxx_g = yes; then
3745  if test "$GXX" = yes; then
3746    CXXFLAGS="-g -O2"
3747  else
3748    CXXFLAGS="-g"
3749  fi
3750else
3751  if test "$GXX" = yes; then
3752    CXXFLAGS="-O2"
3753  else
3754    CXXFLAGS=
3755  fi
3756fi
3757for ac_declaration in \
3758   '' \
3759   'extern "C" void std::exit (int) throw (); using std::exit;' \
3760   'extern "C" void std::exit (int); using std::exit;' \
3761   'extern "C" void exit (int) throw ();' \
3762   'extern "C" void exit (int);' \
3763   'void exit (int);'
3764do
3765  cat >conftest.$ac_ext <<_ACEOF
3766/* confdefs.h.  */
3767_ACEOF
3768cat confdefs.h >>conftest.$ac_ext
3769cat >>conftest.$ac_ext <<_ACEOF
3770/* end confdefs.h.  */
3771$ac_declaration
3772@%:@include <stdlib.h>
3773int
3774main ()
3775{
3776exit (42);
3777  ;
3778  return 0;
3779}
3780_ACEOF
3781rm -f conftest.$ac_objext
3782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3783  (eval $ac_compile) 2>conftest.er1
3784  ac_status=$?
3785  grep -v '^ *+' conftest.er1 >conftest.err
3786  rm -f conftest.er1
3787  cat conftest.err >&5
3788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789  (exit $ac_status); } &&
3790	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
3791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792  (eval $ac_try) 2>&5
3793  ac_status=$?
3794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795  (exit $ac_status); }; } &&
3796	 { ac_try='test -s conftest.$ac_objext'
3797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798  (eval $ac_try) 2>&5
3799  ac_status=$?
3800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801  (exit $ac_status); }; }; then
3802  :
3803else
3804  echo "$as_me: failed program was:" >&5
3805sed 's/^/| /' conftest.$ac_ext >&5
3806
3807continue
3808fi
3809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3810  cat >conftest.$ac_ext <<_ACEOF
3811/* confdefs.h.  */
3812_ACEOF
3813cat confdefs.h >>conftest.$ac_ext
3814cat >>conftest.$ac_ext <<_ACEOF
3815/* end confdefs.h.  */
3816$ac_declaration
3817int
3818main ()
3819{
3820exit (42);
3821  ;
3822  return 0;
3823}
3824_ACEOF
3825rm -f conftest.$ac_objext
3826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3827  (eval $ac_compile) 2>conftest.er1
3828  ac_status=$?
3829  grep -v '^ *+' conftest.er1 >conftest.err
3830  rm -f conftest.er1
3831  cat conftest.err >&5
3832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833  (exit $ac_status); } &&
3834	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
3835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836  (eval $ac_try) 2>&5
3837  ac_status=$?
3838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839  (exit $ac_status); }; } &&
3840	 { ac_try='test -s conftest.$ac_objext'
3841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842  (eval $ac_try) 2>&5
3843  ac_status=$?
3844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845  (exit $ac_status); }; }; then
3846  break
3847else
3848  echo "$as_me: failed program was:" >&5
3849sed 's/^/| /' conftest.$ac_ext >&5
3850
3851fi
3852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3853done
3854rm -f conftest*
3855if test -n "$ac_declaration"; then
3856  echo '#ifdef __cplusplus' >>confdefs.h
3857  echo $ac_declaration      >>confdefs.h
3858  echo '#endif'             >>confdefs.h
3859fi
3860
3861ac_ext=c
3862ac_cpp='$CPP $CPPFLAGS'
3863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865ac_compiler_gnu=$ac_cv_c_compiler_gnu
3866
3867depcc="$CXX"  am_compiler_list=
3868
3869echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3870echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3871if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3872  echo $ECHO_N "(cached) $ECHO_C" >&6
3873else
3874  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3875  # We make a subdir and do the tests there.  Otherwise we can end up
3876  # making bogus files that we don't know about and never remove.  For
3877  # instance it was reported that on HP-UX the gcc test will end up
3878  # making a dummy file named `D' -- because `-MD' means `put the output
3879  # in D'.
3880  mkdir conftest.dir
3881  # Copy depcomp to subdir because otherwise we won't find it if we're
3882  # using a relative directory.
3883  cp "$am_depcomp" conftest.dir
3884  cd conftest.dir
3885  # We will build objects and dependencies in a subdirectory because
3886  # it helps to detect inapplicable dependency modes.  For instance
3887  # both Tru64's cc and ICC support -MD to output dependencies as a
3888  # side effect of compilation, but ICC will put the dependencies in
3889  # the current directory while Tru64 will put them in the object
3890  # directory.
3891  mkdir sub
3892
3893  am_cv_CXX_dependencies_compiler_type=none
3894  if test "$am_compiler_list" = ""; then
3895     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3896  fi
3897  for depmode in $am_compiler_list; do
3898    # Setup a source with many dependencies, because some compilers
3899    # like to wrap large dependency lists on column 80 (with \), and
3900    # we should not choose a depcomp mode which is confused by this.
3901    #
3902    # We need to recreate these files for each test, as the compiler may
3903    # overwrite some of them when testing with obscure command lines.
3904    # This happens at least with the AIX C compiler.
3905    : > sub/conftest.c
3906    for i in 1 2 3 4 5 6; do
3907      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3908      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3909      # Solaris 8's {/usr,}/bin/sh.
3910      touch sub/conftst$i.h
3911    done
3912    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3913
3914    case $depmode in
3915    nosideeffect)
3916      # after this tag, mechanisms are not by side-effect, so they'll
3917      # only be used when explicitly requested
3918      if test "x$enable_dependency_tracking" = xyes; then
3919	continue
3920      else
3921	break
3922      fi
3923      ;;
3924    none) break ;;
3925    esac
3926    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3927    # mode.  It turns out that the SunPro C++ compiler does not properly
3928    # handle `-M -o', and we need to detect this.
3929    if depmode=$depmode \
3930       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3931       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3932       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3933         >/dev/null 2>conftest.err &&
3934       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3935       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3936       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3937      # icc doesn't choke on unknown options, it will just issue warnings
3938      # or remarks (even with -Werror).  So we grep stderr for any message
3939      # that says an option was ignored or not supported.
3940      # When given -MP, icc 7.0 and 7.1 complain thusly:
3941      #   icc: Command line warning: ignoring option '-M'; no argument required
3942      # The diagnosis changed in icc 8.0:
3943      #   icc: Command line remark: option '-MP' not supported
3944      if (grep 'ignoring option' conftest.err ||
3945          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3946        am_cv_CXX_dependencies_compiler_type=$depmode
3947        break
3948      fi
3949    fi
3950  done
3951
3952  cd ..
3953  rm -rf conftest.dir
3954else
3955  am_cv_CXX_dependencies_compiler_type=none
3956fi
3957
3958fi
3959echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3960echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3961CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3962
3963
3964
3965if
3966  test "x$enable_dependency_tracking" != xno \
3967  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3968  am__fastdepCXX_TRUE=
3969  am__fastdepCXX_FALSE='#'
3970else
3971  am__fastdepCXX_TRUE='#'
3972  am__fastdepCXX_FALSE=
3973fi
3974
3975
3976
3977
3978  echo "$as_me:$LINENO: checking whether $CC is blacklisted" >&5
3979echo $ECHO_N "checking whether $CC is blacklisted... $ECHO_C" >&6
3980
3981
3982  cat >conftest.$ac_ext <<_ACEOF
3983/* confdefs.h.  */
3984_ACEOF
3985cat confdefs.h >>conftest.$ac_ext
3986cat >>conftest.$ac_ext <<_ACEOF
3987/* end confdefs.h.  */
3988
3989#ifdef __GNUC__
3990#if __GNUC__ == 4 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 0
3991choke me
3992#endif
3993#endif
3994
3995int
3996main ()
3997{
3998
3999  ;
4000  return 0;
4001}
4002_ACEOF
4003rm -f conftest.$ac_objext
4004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005  (eval $ac_compile) 2>conftest.er1
4006  ac_status=$?
4007  grep -v '^ *+' conftest.er1 >conftest.err
4008  rm -f conftest.er1
4009  cat conftest.err >&5
4010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011  (exit $ac_status); } &&
4012	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014  (eval $ac_try) 2>&5
4015  ac_status=$?
4016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017  (exit $ac_status); }; } &&
4018	 { ac_try='test -s conftest.$ac_objext'
4019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020  (eval $ac_try) 2>&5
4021  ac_status=$?
4022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023  (exit $ac_status); }; }; then
4024  kde_bad_compiler=no
4025else
4026  echo "$as_me: failed program was:" >&5
4027sed 's/^/| /' conftest.$ac_ext >&5
4028
4029kde_bad_compiler=yes
4030
4031fi
4032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4033
4034  echo "$as_me:$LINENO: result: $kde_bad_compiler" >&5
4035echo "${ECHO_T}$kde_bad_compiler" >&6
4036
4037if test "$kde_bad_compiler" = "yes"; then
4038  { { echo "$as_me:$LINENO: error:
4039
4040This particular compiler version is blacklisted because it
4041is known to miscompile KDE. Please use a newer version, or
4042if that is not yet available, choose an older version.
4043
4044Please do not report a bug or bother us reporting this
4045configure error. We know about it, and we introduced
4046it by intention to avoid untraceable bugs or crashes in KDE.
4047
4048" >&5
4049echo "$as_me: error:
4050
4051This particular compiler version is blacklisted because it
4052is known to miscompile KDE. Please use a newer version, or
4053if that is not yet available, choose an older version.
4054
4055Please do not report a bug or bother us reporting this
4056configure error. We know about it, and we introduced
4057it by intention to avoid untraceable bugs or crashes in KDE.
4058
4059" >&2;}
4060   { (exit 1); exit 1; }; }
4061fi
4062
4063
4064
4065  if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
4066    if test "$kde_use_debug_code" != "no"; then
4067      if test "$CXX" = "KCC"; then
4068        CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
4069      else
4070        if test "$kde_use_debug_code" = "full"; then
4071          CXXFLAGS="-g3 -fno-inline $CXXFLAGS"
4072        else
4073          CXXFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CXXFLAGS"
4074        fi
4075      fi
4076
4077echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
4078echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6
4079kde_cache=`echo fno-builtin | sed 'y% .=/+-,%____p__%'`
4080if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4081  echo $ECHO_N "(cached) $ECHO_C" >&6
4082else
4083
4084
4085
4086
4087ac_ext=cc
4088ac_cpp='$CXXCPP $CPPFLAGS'
4089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4092
4093ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4094
4095
4096
4097  save_CXXFLAGS="$CXXFLAGS"
4098  CXXFLAGS="$CXXFLAGS -fno-builtin"
4099  cat >conftest.$ac_ext <<_ACEOF
4100/* confdefs.h.  */
4101_ACEOF
4102cat confdefs.h >>conftest.$ac_ext
4103cat >>conftest.$ac_ext <<_ACEOF
4104/* end confdefs.h.  */
4105
4106int
4107main ()
4108{
4109 return 0;
4110  ;
4111  return 0;
4112}
4113_ACEOF
4114rm -f conftest.$ac_objext conftest$ac_exeext
4115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4116  (eval $ac_link) 2>conftest.er1
4117  ac_status=$?
4118  grep -v '^ *+' conftest.er1 >conftest.err
4119  rm -f conftest.er1
4120  cat conftest.err >&5
4121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122  (exit $ac_status); } &&
4123	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125  (eval $ac_try) 2>&5
4126  ac_status=$?
4127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128  (exit $ac_status); }; } &&
4129	 { ac_try='test -s conftest$ac_exeext'
4130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131  (eval $ac_try) 2>&5
4132  ac_status=$?
4133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134  (exit $ac_status); }; }; then
4135  eval "kde_cv_prog_cxx_$kde_cache=yes"
4136else
4137  echo "$as_me: failed program was:" >&5
4138sed 's/^/| /' conftest.$ac_ext >&5
4139
4140fi
4141rm -f conftest.err conftest.$ac_objext \
4142      conftest$ac_exeext conftest.$ac_ext
4143  CXXFLAGS="$save_CXXFLAGS"
4144  ac_ext=c
4145ac_cpp='$CPP $CPPFLAGS'
4146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149
4150
4151fi
4152
4153if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4154 echo "$as_me:$LINENO: result: yes" >&5
4155echo "${ECHO_T}yes" >&6
4156 :
4157 CXXFLAGS="-fno-builtin $CXXFLAGS"
4158else
4159 echo "$as_me:$LINENO: result: no" >&5
4160echo "${ECHO_T}no" >&6
4161 :
4162
4163fi
4164
4165
4166
4167echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
4168echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6
4169kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-,%____p__%'`
4170if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4171  echo $ECHO_N "(cached) $ECHO_C" >&6
4172else
4173
4174
4175
4176   ac_ext=cc
4177ac_cpp='$CXXCPP $CPPFLAGS'
4178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4181
4182ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4183
4184
4185  save_CXXFLAGS="$CXXFLAGS"
4186  CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
4187  cat >conftest.$ac_ext <<_ACEOF
4188/* confdefs.h.  */
4189_ACEOF
4190cat confdefs.h >>conftest.$ac_ext
4191cat >>conftest.$ac_ext <<_ACEOF
4192/* end confdefs.h.  */
4193
4194int
4195main ()
4196{
4197 return 0;
4198  ;
4199  return 0;
4200}
4201_ACEOF
4202rm -f conftest.$ac_objext conftest$ac_exeext
4203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204  (eval $ac_link) 2>conftest.er1
4205  ac_status=$?
4206  grep -v '^ *+' conftest.er1 >conftest.err
4207  rm -f conftest.er1
4208  cat conftest.err >&5
4209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210  (exit $ac_status); } &&
4211	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213  (eval $ac_try) 2>&5
4214  ac_status=$?
4215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216  (exit $ac_status); }; } &&
4217	 { ac_try='test -s conftest$ac_exeext'
4218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219  (eval $ac_try) 2>&5
4220  ac_status=$?
4221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222  (exit $ac_status); }; }; then
4223  eval "kde_cv_prog_cxx_$kde_cache=yes"
4224else
4225  echo "$as_me: failed program was:" >&5
4226sed 's/^/| /' conftest.$ac_ext >&5
4227
4228fi
4229rm -f conftest.err conftest.$ac_objext \
4230      conftest$ac_exeext conftest.$ac_ext
4231  CXXFLAGS="$save_CXXFLAGS"
4232  ac_ext=c
4233ac_cpp='$CPP $CPPFLAGS'
4234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237
4238
4239fi
4240
4241if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4242 echo "$as_me:$LINENO: result: yes" >&5
4243echo "${ECHO_T}yes" >&6
4244 :
4245 WOVERLOADED_VIRTUAL="-Woverloaded-virtual"
4246else
4247 echo "$as_me:$LINENO: result: no" >&5
4248echo "${ECHO_T}no" >&6
4249 :
4250 WOVERLOADED_VRITUAL=""
4251fi
4252
4253
4254    else
4255      if test "$CXX" = "KCC"; then
4256        CXXFLAGS="+K3 $CXXFLAGS"
4257      else
4258        CXXFLAGS="-O2 $CXXFLAGS"
4259      fi
4260    fi
4261  fi
4262
4263  if test "$kde_use_debug_define" = "yes"; then
4264    CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
4265  fi
4266
4267  if test "$kde_use_profiling" = "yes"; then
4268
4269echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
4270echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6
4271kde_cache=`echo pg | sed 'y% .=/+-,%____p__%'`
4272if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4273  echo $ECHO_N "(cached) $ECHO_C" >&6
4274else
4275
4276
4277
4278   ac_ext=cc
4279ac_cpp='$CXXCPP $CPPFLAGS'
4280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4283
4284ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4285
4286
4287  save_CXXFLAGS="$CXXFLAGS"
4288  CXXFLAGS="$CXXFLAGS -pg"
4289  cat >conftest.$ac_ext <<_ACEOF
4290/* confdefs.h.  */
4291_ACEOF
4292cat confdefs.h >>conftest.$ac_ext
4293cat >>conftest.$ac_ext <<_ACEOF
4294/* end confdefs.h.  */
4295
4296int
4297main ()
4298{
4299 return 0;
4300  ;
4301  return 0;
4302}
4303_ACEOF
4304rm -f conftest.$ac_objext conftest$ac_exeext
4305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4306  (eval $ac_link) 2>conftest.er1
4307  ac_status=$?
4308  grep -v '^ *+' conftest.er1 >conftest.err
4309  rm -f conftest.er1
4310  cat conftest.err >&5
4311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312  (exit $ac_status); } &&
4313	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315  (eval $ac_try) 2>&5
4316  ac_status=$?
4317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318  (exit $ac_status); }; } &&
4319	 { ac_try='test -s conftest$ac_exeext'
4320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321  (eval $ac_try) 2>&5
4322  ac_status=$?
4323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324  (exit $ac_status); }; }; then
4325  eval "kde_cv_prog_cxx_$kde_cache=yes"
4326else
4327  echo "$as_me: failed program was:" >&5
4328sed 's/^/| /' conftest.$ac_ext >&5
4329
4330fi
4331rm -f conftest.err conftest.$ac_objext \
4332      conftest$ac_exeext conftest.$ac_ext
4333  CXXFLAGS="$save_CXXFLAGS"
4334  ac_ext=c
4335ac_cpp='$CPP $CPPFLAGS'
4336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339
4340
4341fi
4342
4343if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4344 echo "$as_me:$LINENO: result: yes" >&5
4345echo "${ECHO_T}yes" >&6
4346 :
4347
4348      CFLAGS="-pg $CFLAGS"
4349      CXXFLAGS="-pg $CXXFLAGS"
4350
4351else
4352 echo "$as_me:$LINENO: result: no" >&5
4353echo "${ECHO_T}no" >&6
4354 :
4355
4356fi
4357
4358  fi
4359
4360  if test "$kde_use_warnings" = "yes"; then
4361      if test "$GCC" = "yes"; then
4362        CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
4363        case $host in
4364          *-*-linux-gnu)
4365            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
4366            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
4367
4368echo "$as_me:$LINENO: checking whether $CXX supports -Wmissing-format-attribute" >&5
4369echo $ECHO_N "checking whether $CXX supports -Wmissing-format-attribute... $ECHO_C" >&6
4370kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
4371if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4372  echo $ECHO_N "(cached) $ECHO_C" >&6
4373else
4374
4375
4376
4377   ac_ext=cc
4378ac_cpp='$CXXCPP $CPPFLAGS'
4379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4382
4383ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4384
4385
4386  save_CXXFLAGS="$CXXFLAGS"
4387  CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"
4388  cat >conftest.$ac_ext <<_ACEOF
4389/* confdefs.h.  */
4390_ACEOF
4391cat confdefs.h >>conftest.$ac_ext
4392cat >>conftest.$ac_ext <<_ACEOF
4393/* end confdefs.h.  */
4394
4395int
4396main ()
4397{
4398 return 0;
4399  ;
4400  return 0;
4401}
4402_ACEOF
4403rm -f conftest.$ac_objext conftest$ac_exeext
4404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4405  (eval $ac_link) 2>conftest.er1
4406  ac_status=$?
4407  grep -v '^ *+' conftest.er1 >conftest.err
4408  rm -f conftest.er1
4409  cat conftest.err >&5
4410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411  (exit $ac_status); } &&
4412	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414  (eval $ac_try) 2>&5
4415  ac_status=$?
4416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417  (exit $ac_status); }; } &&
4418	 { ac_try='test -s conftest$ac_exeext'
4419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420  (eval $ac_try) 2>&5
4421  ac_status=$?
4422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423  (exit $ac_status); }; }; then
4424  eval "kde_cv_prog_cxx_$kde_cache=yes"
4425else
4426  echo "$as_me: failed program was:" >&5
4427sed 's/^/| /' conftest.$ac_ext >&5
4428
4429fi
4430rm -f conftest.err conftest.$ac_objext \
4431      conftest$ac_exeext conftest.$ac_ext
4432  CXXFLAGS="$save_CXXFLAGS"
4433  ac_ext=c
4434ac_cpp='$CPP $CPPFLAGS'
4435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4437ac_compiler_gnu=$ac_cv_c_compiler_gnu
4438
4439
4440fi
4441
4442if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4443 echo "$as_me:$LINENO: result: yes" >&5
4444echo "${ECHO_T}yes" >&6
4445 :
4446 CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"
4447else
4448 echo "$as_me:$LINENO: result: no" >&5
4449echo "${ECHO_T}no" >&6
4450 :
4451
4452fi
4453
4454
4455echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4456echo $ECHO_N "checking whether $CC supports -Wmissing-format-attribute... $ECHO_C" >&6
4457kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
4458if eval "test \"\${kde_cv_prog_cc_$kde_cache+set}\" = set"; then
4459  echo $ECHO_N "(cached) $ECHO_C" >&6
4460else
4461
4462
4463
4464  ac_ext=c
4465ac_cpp='$CPP $CPPFLAGS'
4466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4468ac_compiler_gnu=$ac_cv_c_compiler_gnu
4469
4470  save_CFLAGS="$CFLAGS"
4471  CFLAGS="$CFLAGS -Wmissing-format-attribute"
4472  cat >conftest.$ac_ext <<_ACEOF
4473/* confdefs.h.  */
4474_ACEOF
4475cat confdefs.h >>conftest.$ac_ext
4476cat >>conftest.$ac_ext <<_ACEOF
4477/* end confdefs.h.  */
4478
4479int
4480main ()
4481{
4482 return 0;
4483  ;
4484  return 0;
4485}
4486_ACEOF
4487rm -f conftest.$ac_objext conftest$ac_exeext
4488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4489  (eval $ac_link) 2>conftest.er1
4490  ac_status=$?
4491  grep -v '^ *+' conftest.er1 >conftest.err
4492  rm -f conftest.er1
4493  cat conftest.err >&5
4494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495  (exit $ac_status); } &&
4496	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498  (eval $ac_try) 2>&5
4499  ac_status=$?
4500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501  (exit $ac_status); }; } &&
4502	 { ac_try='test -s conftest$ac_exeext'
4503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504  (eval $ac_try) 2>&5
4505  ac_status=$?
4506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507  (exit $ac_status); }; }; then
4508  eval "kde_cv_prog_cc_$kde_cache=yes"
4509else
4510  echo "$as_me: failed program was:" >&5
4511sed 's/^/| /' conftest.$ac_ext >&5
4512
4513fi
4514rm -f conftest.err conftest.$ac_objext \
4515      conftest$ac_exeext conftest.$ac_ext
4516  CFLAGS="$save_CFLAGS"
4517  ac_ext=c
4518ac_cpp='$CPP $CPPFLAGS'
4519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522
4523
4524fi
4525
4526if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then
4527 echo "$as_me:$LINENO: result: yes" >&5
4528echo "${ECHO_T}yes" >&6
4529 :
4530 CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"
4531else
4532 echo "$as_me:$LINENO: result: no" >&5
4533echo "${ECHO_T}no" >&6
4534 :
4535
4536fi
4537
4538          ;;
4539        esac
4540
4541echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
4542echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6
4543kde_cache=`echo Wundef | sed 'y% .=/+-,%____p__%'`
4544if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4545  echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547
4548
4549
4550   ac_ext=cc
4551ac_cpp='$CXXCPP $CPPFLAGS'
4552ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4553ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4554ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4555
4556ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4557
4558
4559  save_CXXFLAGS="$CXXFLAGS"
4560  CXXFLAGS="$CXXFLAGS -Wundef"
4561  cat >conftest.$ac_ext <<_ACEOF
4562/* confdefs.h.  */
4563_ACEOF
4564cat confdefs.h >>conftest.$ac_ext
4565cat >>conftest.$ac_ext <<_ACEOF
4566/* end confdefs.h.  */
4567
4568int
4569main ()
4570{
4571 return 0;
4572  ;
4573  return 0;
4574}
4575_ACEOF
4576rm -f conftest.$ac_objext conftest$ac_exeext
4577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4578  (eval $ac_link) 2>conftest.er1
4579  ac_status=$?
4580  grep -v '^ *+' conftest.er1 >conftest.err
4581  rm -f conftest.er1
4582  cat conftest.err >&5
4583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584  (exit $ac_status); } &&
4585	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587  (eval $ac_try) 2>&5
4588  ac_status=$?
4589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590  (exit $ac_status); }; } &&
4591	 { ac_try='test -s conftest$ac_exeext'
4592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593  (eval $ac_try) 2>&5
4594  ac_status=$?
4595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596  (exit $ac_status); }; }; then
4597  eval "kde_cv_prog_cxx_$kde_cache=yes"
4598else
4599  echo "$as_me: failed program was:" >&5
4600sed 's/^/| /' conftest.$ac_ext >&5
4601
4602fi
4603rm -f conftest.err conftest.$ac_objext \
4604      conftest$ac_exeext conftest.$ac_ext
4605  CXXFLAGS="$save_CXXFLAGS"
4606  ac_ext=c
4607ac_cpp='$CPP $CPPFLAGS'
4608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611
4612
4613fi
4614
4615if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4616 echo "$as_me:$LINENO: result: yes" >&5
4617echo "${ECHO_T}yes" >&6
4618 :
4619 CXXFLAGS="-Wundef $CXXFLAGS"
4620else
4621 echo "$as_me:$LINENO: result: no" >&5
4622echo "${ECHO_T}no" >&6
4623 :
4624
4625fi
4626
4627
4628echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
4629echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6
4630kde_cache=`echo Wno-long-long | sed 'y% .=/+-,%____p__%'`
4631if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4632  echo $ECHO_N "(cached) $ECHO_C" >&6
4633else
4634
4635
4636
4637   ac_ext=cc
4638ac_cpp='$CXXCPP $CPPFLAGS'
4639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4642
4643ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4644
4645
4646  save_CXXFLAGS="$CXXFLAGS"
4647  CXXFLAGS="$CXXFLAGS -Wno-long-long"
4648  cat >conftest.$ac_ext <<_ACEOF
4649/* confdefs.h.  */
4650_ACEOF
4651cat confdefs.h >>conftest.$ac_ext
4652cat >>conftest.$ac_ext <<_ACEOF
4653/* end confdefs.h.  */
4654
4655int
4656main ()
4657{
4658 return 0;
4659  ;
4660  return 0;
4661}
4662_ACEOF
4663rm -f conftest.$ac_objext conftest$ac_exeext
4664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4665  (eval $ac_link) 2>conftest.er1
4666  ac_status=$?
4667  grep -v '^ *+' conftest.er1 >conftest.err
4668  rm -f conftest.er1
4669  cat conftest.err >&5
4670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671  (exit $ac_status); } &&
4672	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674  (eval $ac_try) 2>&5
4675  ac_status=$?
4676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677  (exit $ac_status); }; } &&
4678	 { ac_try='test -s conftest$ac_exeext'
4679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680  (eval $ac_try) 2>&5
4681  ac_status=$?
4682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683  (exit $ac_status); }; }; then
4684  eval "kde_cv_prog_cxx_$kde_cache=yes"
4685else
4686  echo "$as_me: failed program was:" >&5
4687sed 's/^/| /' conftest.$ac_ext >&5
4688
4689fi
4690rm -f conftest.err conftest.$ac_objext \
4691      conftest$ac_exeext conftest.$ac_ext
4692  CXXFLAGS="$save_CXXFLAGS"
4693  ac_ext=c
4694ac_cpp='$CPP $CPPFLAGS'
4695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4697ac_compiler_gnu=$ac_cv_c_compiler_gnu
4698
4699
4700fi
4701
4702if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4703 echo "$as_me:$LINENO: result: yes" >&5
4704echo "${ECHO_T}yes" >&6
4705 :
4706 CXXFLAGS="-Wno-long-long $CXXFLAGS"
4707else
4708 echo "$as_me:$LINENO: result: no" >&5
4709echo "${ECHO_T}no" >&6
4710 :
4711
4712fi
4713
4714
4715echo "$as_me:$LINENO: checking whether $CXX supports -Wno-non-virtual-dtor" >&5
4716echo $ECHO_N "checking whether $CXX supports -Wno-non-virtual-dtor... $ECHO_C" >&6
4717kde_cache=`echo Wno-non-virtual-dtor | sed 'y% .=/+-,%____p__%'`
4718if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4719  echo $ECHO_N "(cached) $ECHO_C" >&6
4720else
4721
4722
4723
4724   ac_ext=cc
4725ac_cpp='$CXXCPP $CPPFLAGS'
4726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4729
4730ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4731
4732
4733  save_CXXFLAGS="$CXXFLAGS"
4734  CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor"
4735  cat >conftest.$ac_ext <<_ACEOF
4736/* confdefs.h.  */
4737_ACEOF
4738cat confdefs.h >>conftest.$ac_ext
4739cat >>conftest.$ac_ext <<_ACEOF
4740/* end confdefs.h.  */
4741
4742int
4743main ()
4744{
4745 return 0;
4746  ;
4747  return 0;
4748}
4749_ACEOF
4750rm -f conftest.$ac_objext conftest$ac_exeext
4751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4752  (eval $ac_link) 2>conftest.er1
4753  ac_status=$?
4754  grep -v '^ *+' conftest.er1 >conftest.err
4755  rm -f conftest.er1
4756  cat conftest.err >&5
4757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758  (exit $ac_status); } &&
4759	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761  (eval $ac_try) 2>&5
4762  ac_status=$?
4763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764  (exit $ac_status); }; } &&
4765	 { ac_try='test -s conftest$ac_exeext'
4766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767  (eval $ac_try) 2>&5
4768  ac_status=$?
4769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770  (exit $ac_status); }; }; then
4771  eval "kde_cv_prog_cxx_$kde_cache=yes"
4772else
4773  echo "$as_me: failed program was:" >&5
4774sed 's/^/| /' conftest.$ac_ext >&5
4775
4776fi
4777rm -f conftest.err conftest.$ac_objext \
4778      conftest$ac_exeext conftest.$ac_ext
4779  CXXFLAGS="$save_CXXFLAGS"
4780  ac_ext=c
4781ac_cpp='$CPP $CPPFLAGS'
4782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4784ac_compiler_gnu=$ac_cv_c_compiler_gnu
4785
4786
4787fi
4788
4789if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4790 echo "$as_me:$LINENO: result: yes" >&5
4791echo "${ECHO_T}yes" >&6
4792 :
4793 CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor"
4794else
4795 echo "$as_me:$LINENO: result: no" >&5
4796echo "${ECHO_T}no" >&6
4797 :
4798
4799fi
4800
4801     fi
4802  fi
4803
4804  if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
4805    CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
4806  fi
4807
4808  # Check whether --enable-pch or --disable-pch was given.
4809if test "${enable_pch+set}" = set; then
4810  enableval="$enable_pch"
4811   kde_use_pch=$enableval
4812else
4813   kde_use_pch=no
4814fi;
4815
4816  HAVE_GCC_VISIBILITY=0
4817
4818
4819  if test "$GXX" = "yes"; then
4820    gcc_no_reorder_blocks=NO
4821
4822echo "$as_me:$LINENO: checking whether $CXX supports -fno-reorder-blocks" >&5
4823echo $ECHO_N "checking whether $CXX supports -fno-reorder-blocks... $ECHO_C" >&6
4824kde_cache=`echo fno-reorder-blocks | sed 'y% .=/+-,%____p__%'`
4825if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4826  echo $ECHO_N "(cached) $ECHO_C" >&6
4827else
4828
4829
4830
4831   ac_ext=cc
4832ac_cpp='$CXXCPP $CPPFLAGS'
4833ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4836
4837ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4838
4839
4840  save_CXXFLAGS="$CXXFLAGS"
4841  CXXFLAGS="$CXXFLAGS -fno-reorder-blocks"
4842  cat >conftest.$ac_ext <<_ACEOF
4843/* confdefs.h.  */
4844_ACEOF
4845cat confdefs.h >>conftest.$ac_ext
4846cat >>conftest.$ac_ext <<_ACEOF
4847/* end confdefs.h.  */
4848
4849int
4850main ()
4851{
4852 return 0;
4853  ;
4854  return 0;
4855}
4856_ACEOF
4857rm -f conftest.$ac_objext conftest$ac_exeext
4858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4859  (eval $ac_link) 2>conftest.er1
4860  ac_status=$?
4861  grep -v '^ *+' conftest.er1 >conftest.err
4862  rm -f conftest.er1
4863  cat conftest.err >&5
4864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865  (exit $ac_status); } &&
4866	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868  (eval $ac_try) 2>&5
4869  ac_status=$?
4870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871  (exit $ac_status); }; } &&
4872	 { ac_try='test -s conftest$ac_exeext'
4873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874  (eval $ac_try) 2>&5
4875  ac_status=$?
4876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877  (exit $ac_status); }; }; then
4878  eval "kde_cv_prog_cxx_$kde_cache=yes"
4879else
4880  echo "$as_me: failed program was:" >&5
4881sed 's/^/| /' conftest.$ac_ext >&5
4882
4883fi
4884rm -f conftest.err conftest.$ac_objext \
4885      conftest$ac_exeext conftest.$ac_ext
4886  CXXFLAGS="$save_CXXFLAGS"
4887  ac_ext=c
4888ac_cpp='$CPP $CPPFLAGS'
4889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4891ac_compiler_gnu=$ac_cv_c_compiler_gnu
4892
4893
4894fi
4895
4896if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4897 echo "$as_me:$LINENO: result: yes" >&5
4898echo "${ECHO_T}yes" >&6
4899 :
4900 gcc_no_reorder_blocks=YES
4901else
4902 echo "$as_me:$LINENO: result: no" >&5
4903echo "${ECHO_T}no" >&6
4904 :
4905
4906fi
4907
4908    if test $kde_use_debug_code != "no" && \
4909       test $kde_use_debug_code != "full" && \
4910       test "YES" = "$gcc_no_reorder_blocks" ; then
4911          CXXFLAGS="$CXXFLAGS -fno-reorder-blocks"
4912          CFLAGS="$CFLAGS -fno-reorder-blocks"
4913    fi
4914
4915echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
4916echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6
4917kde_cache=`echo fno-exceptions | sed 'y% .=/+-,%____p__%'`
4918if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4919  echo $ECHO_N "(cached) $ECHO_C" >&6
4920else
4921
4922
4923
4924   ac_ext=cc
4925ac_cpp='$CXXCPP $CPPFLAGS'
4926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4929
4930ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4931
4932
4933  save_CXXFLAGS="$CXXFLAGS"
4934  CXXFLAGS="$CXXFLAGS -fno-exceptions"
4935  cat >conftest.$ac_ext <<_ACEOF
4936/* confdefs.h.  */
4937_ACEOF
4938cat confdefs.h >>conftest.$ac_ext
4939cat >>conftest.$ac_ext <<_ACEOF
4940/* end confdefs.h.  */
4941
4942int
4943main ()
4944{
4945 return 0;
4946  ;
4947  return 0;
4948}
4949_ACEOF
4950rm -f conftest.$ac_objext conftest$ac_exeext
4951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4952  (eval $ac_link) 2>conftest.er1
4953  ac_status=$?
4954  grep -v '^ *+' conftest.er1 >conftest.err
4955  rm -f conftest.er1
4956  cat conftest.err >&5
4957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958  (exit $ac_status); } &&
4959	 { ac_try='test -z "$ac_cxx_werror_flag"			 || 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_exeext'
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  eval "kde_cv_prog_cxx_$kde_cache=yes"
4972else
4973  echo "$as_me: failed program was:" >&5
4974sed 's/^/| /' conftest.$ac_ext >&5
4975
4976fi
4977rm -f conftest.err conftest.$ac_objext \
4978      conftest$ac_exeext conftest.$ac_ext
4979  CXXFLAGS="$save_CXXFLAGS"
4980  ac_ext=c
4981ac_cpp='$CPP $CPPFLAGS'
4982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984ac_compiler_gnu=$ac_cv_c_compiler_gnu
4985
4986
4987fi
4988
4989if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4990 echo "$as_me:$LINENO: result: yes" >&5
4991echo "${ECHO_T}yes" >&6
4992 :
4993 CXXFLAGS="$CXXFLAGS -fno-exceptions"
4994else
4995 echo "$as_me:$LINENO: result: no" >&5
4996echo "${ECHO_T}no" >&6
4997 :
4998
4999fi
5000
5001
5002echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
5003echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6
5004kde_cache=`echo fno-check-new | sed 'y% .=/+-,%____p__%'`
5005if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5006  echo $ECHO_N "(cached) $ECHO_C" >&6
5007else
5008
5009
5010
5011   ac_ext=cc
5012ac_cpp='$CXXCPP $CPPFLAGS'
5013ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5016
5017ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5018
5019
5020  save_CXXFLAGS="$CXXFLAGS"
5021  CXXFLAGS="$CXXFLAGS -fno-check-new"
5022  cat >conftest.$ac_ext <<_ACEOF
5023/* confdefs.h.  */
5024_ACEOF
5025cat confdefs.h >>conftest.$ac_ext
5026cat >>conftest.$ac_ext <<_ACEOF
5027/* end confdefs.h.  */
5028
5029int
5030main ()
5031{
5032 return 0;
5033  ;
5034  return 0;
5035}
5036_ACEOF
5037rm -f conftest.$ac_objext conftest$ac_exeext
5038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5039  (eval $ac_link) 2>conftest.er1
5040  ac_status=$?
5041  grep -v '^ *+' conftest.er1 >conftest.err
5042  rm -f conftest.er1
5043  cat conftest.err >&5
5044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045  (exit $ac_status); } &&
5046	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048  (eval $ac_try) 2>&5
5049  ac_status=$?
5050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051  (exit $ac_status); }; } &&
5052	 { ac_try='test -s conftest$ac_exeext'
5053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054  (eval $ac_try) 2>&5
5055  ac_status=$?
5056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057  (exit $ac_status); }; }; then
5058  eval "kde_cv_prog_cxx_$kde_cache=yes"
5059else
5060  echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
5063fi
5064rm -f conftest.err conftest.$ac_objext \
5065      conftest$ac_exeext conftest.$ac_ext
5066  CXXFLAGS="$save_CXXFLAGS"
5067  ac_ext=c
5068ac_cpp='$CPP $CPPFLAGS'
5069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072
5073
5074fi
5075
5076if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5077 echo "$as_me:$LINENO: result: yes" >&5
5078echo "${ECHO_T}yes" >&6
5079 :
5080 CXXFLAGS="$CXXFLAGS -fno-check-new"
5081else
5082 echo "$as_me:$LINENO: result: no" >&5
5083echo "${ECHO_T}no" >&6
5084 :
5085
5086fi
5087
5088
5089echo "$as_me:$LINENO: checking whether $CXX supports -fno-common" >&5
5090echo $ECHO_N "checking whether $CXX supports -fno-common... $ECHO_C" >&6
5091kde_cache=`echo fno-common | sed 'y% .=/+-,%____p__%'`
5092if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5093  echo $ECHO_N "(cached) $ECHO_C" >&6
5094else
5095
5096
5097
5098   ac_ext=cc
5099ac_cpp='$CXXCPP $CPPFLAGS'
5100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5103
5104ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5105
5106
5107  save_CXXFLAGS="$CXXFLAGS"
5108  CXXFLAGS="$CXXFLAGS -fno-common"
5109  cat >conftest.$ac_ext <<_ACEOF
5110/* confdefs.h.  */
5111_ACEOF
5112cat confdefs.h >>conftest.$ac_ext
5113cat >>conftest.$ac_ext <<_ACEOF
5114/* end confdefs.h.  */
5115
5116int
5117main ()
5118{
5119 return 0;
5120  ;
5121  return 0;
5122}
5123_ACEOF
5124rm -f conftest.$ac_objext conftest$ac_exeext
5125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5126  (eval $ac_link) 2>conftest.er1
5127  ac_status=$?
5128  grep -v '^ *+' conftest.er1 >conftest.err
5129  rm -f conftest.er1
5130  cat conftest.err >&5
5131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132  (exit $ac_status); } &&
5133	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135  (eval $ac_try) 2>&5
5136  ac_status=$?
5137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138  (exit $ac_status); }; } &&
5139	 { ac_try='test -s conftest$ac_exeext'
5140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141  (eval $ac_try) 2>&5
5142  ac_status=$?
5143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144  (exit $ac_status); }; }; then
5145  eval "kde_cv_prog_cxx_$kde_cache=yes"
5146else
5147  echo "$as_me: failed program was:" >&5
5148sed 's/^/| /' conftest.$ac_ext >&5
5149
5150fi
5151rm -f conftest.err conftest.$ac_objext \
5152      conftest$ac_exeext conftest.$ac_ext
5153  CXXFLAGS="$save_CXXFLAGS"
5154  ac_ext=c
5155ac_cpp='$CPP $CPPFLAGS'
5156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158ac_compiler_gnu=$ac_cv_c_compiler_gnu
5159
5160
5161fi
5162
5163if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5164 echo "$as_me:$LINENO: result: yes" >&5
5165echo "${ECHO_T}yes" >&6
5166 :
5167 CXXFLAGS="$CXXFLAGS -fno-common"
5168else
5169 echo "$as_me:$LINENO: result: no" >&5
5170echo "${ECHO_T}no" >&6
5171 :
5172
5173fi
5174
5175
5176echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
5177echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6
5178kde_cache=`echo fexceptions | sed 'y% .=/+-,%____p__%'`
5179if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5180  echo $ECHO_N "(cached) $ECHO_C" >&6
5181else
5182
5183
5184
5185   ac_ext=cc
5186ac_cpp='$CXXCPP $CPPFLAGS'
5187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5190
5191ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5192
5193
5194  save_CXXFLAGS="$CXXFLAGS"
5195  CXXFLAGS="$CXXFLAGS -fexceptions"
5196  cat >conftest.$ac_ext <<_ACEOF
5197/* confdefs.h.  */
5198_ACEOF
5199cat confdefs.h >>conftest.$ac_ext
5200cat >>conftest.$ac_ext <<_ACEOF
5201/* end confdefs.h.  */
5202
5203int
5204main ()
5205{
5206 return 0;
5207  ;
5208  return 0;
5209}
5210_ACEOF
5211rm -f conftest.$ac_objext conftest$ac_exeext
5212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5213  (eval $ac_link) 2>conftest.er1
5214  ac_status=$?
5215  grep -v '^ *+' conftest.er1 >conftest.err
5216  rm -f conftest.er1
5217  cat conftest.err >&5
5218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219  (exit $ac_status); } &&
5220	 { ac_try='test -z "$ac_cxx_werror_flag"			 || 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_exeext'
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  eval "kde_cv_prog_cxx_$kde_cache=yes"
5233else
5234  echo "$as_me: failed program was:" >&5
5235sed 's/^/| /' conftest.$ac_ext >&5
5236
5237fi
5238rm -f conftest.err conftest.$ac_objext \
5239      conftest$ac_exeext conftest.$ac_ext
5240  CXXFLAGS="$save_CXXFLAGS"
5241  ac_ext=c
5242ac_cpp='$CPP $CPPFLAGS'
5243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245ac_compiler_gnu=$ac_cv_c_compiler_gnu
5246
5247
5248fi
5249
5250if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5251 echo "$as_me:$LINENO: result: yes" >&5
5252echo "${ECHO_T}yes" >&6
5253 :
5254 USE_EXCEPTIONS="-fexceptions"
5255else
5256 echo "$as_me:$LINENO: result: no" >&5
5257echo "${ECHO_T}no" >&6
5258 :
5259 USE_EXCEPTIONS=
5260fi
5261
5262    ENABLE_PERMISSIVE_FLAG="-fpermissive"
5263
5264    if test "$kde_use_pch" = "yes"; then
5265        echo "$as_me:$LINENO: checking whether gcc supports precompiling c header files" >&5
5266echo $ECHO_N "checking whether gcc supports precompiling c header files... $ECHO_C" >&6
5267        echo >conftest.h
5268        if $CC -x c-header conftest.h >/dev/null 2>/dev/null; then
5269            kde_gcc_supports_pch=yes
5270            echo "$as_me:$LINENO: result: yes" >&5
5271echo "${ECHO_T}yes" >&6
5272        else
5273            kde_gcc_supports_pch=no
5274            echo "$as_me:$LINENO: result: no" >&5
5275echo "${ECHO_T}no" >&6
5276        fi
5277        if test "$kde_gcc_supports_pch" = "yes"; then
5278            echo "$as_me:$LINENO: checking whether gcc supports precompiling c++ header files" >&5
5279echo $ECHO_N "checking whether gcc supports precompiling c++ header files... $ECHO_C" >&6
5280            if $CXX -x c++-header conftest.h >/dev/null 2>/dev/null; then
5281                kde_gcc_supports_pch=yes
5282                echo "$as_me:$LINENO: result: yes" >&5
5283echo "${ECHO_T}yes" >&6
5284            else
5285                kde_gcc_supports_pch=no
5286                echo "$as_me:$LINENO: result: no" >&5
5287echo "${ECHO_T}no" >&6
5288            fi
5289        fi
5290        rm -f conftest.h conftest.h.gch
5291    fi
5292
5293
5294  echo "$as_me:$LINENO: checking whether system headers can cope with -O2 -fno-inline" >&5
5295echo $ECHO_N "checking whether system headers can cope with -O2 -fno-inline... $ECHO_C" >&6
5296if test "${kde_cv_opt_noinline_match+set}" = set; then
5297  echo $ECHO_N "(cached) $ECHO_C" >&6
5298else
5299
5300  kde_cv_opt_noinline_match=irrelevant
5301    if echo "$CFLAGS" | grep -qe -O2 \
5302     && echo "$CFLAGS" | grep -qe -fno-inline ; then
5303
5304    ac_cflags_save="$CFLAGS"
5305    CFLAGS="$CFLAGS -D_USE_GNU"
5306
5307    cat >conftest.$ac_ext <<_ACEOF
5308/* confdefs.h.  */
5309_ACEOF
5310cat confdefs.h >>conftest.$ac_ext
5311cat >>conftest.$ac_ext <<_ACEOF
5312/* end confdefs.h.  */
5313
5314  #include <string.h>
5315
5316int
5317main ()
5318{
5319  const char *pt, *et;
5320  et = __extension__      ({ char __a0, __a1, __a2;       (__builtin_constant_p (  ";,"  ) && ((size_t)(const void *)((   ";,"   )+ 1) - (size_t)(const void *)(   ";,"   ) == 1)        ? ((__a0 =((__const char  *) (  ";,"  ))[0], __a0 == '\0')     ? ((void) (  pt ),((void *)0) )        : ((__a1 = ((__const char *) (  ";,"  ))[1], __a1== '\0')      ? (__extension__ (__builtin_constant_p (  __a0 ) && ( __a0 ) == '\0'   ? (char *) __rawmemchr (   pt  ,   __a0)       : strchr(   pt  ,   __a0 )))   : ((__a2 = ((__const char *) (  ";,"  ))[2], __a2 == '\0')      ? __strpbrk_c2 (  pt , __a0, __a1)      :(((__const char *) (  ";,"  ))[3] == '\0'     ? __strpbrk_c3 (  pt ,__a0, __a1, __a2): strpbrk (  pt ,   ";,"  ))))) : strpbrk (  pt ,  ";,"  )); }) ;
5321
5322  ;
5323  return 0;
5324}
5325_ACEOF
5326rm -f conftest.$ac_objext conftest$ac_exeext
5327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5328  (eval $ac_link) 2>conftest.er1
5329  ac_status=$?
5330  grep -v '^ *+' conftest.er1 >conftest.err
5331  rm -f conftest.er1
5332  cat conftest.err >&5
5333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334  (exit $ac_status); } &&
5335	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337  (eval $ac_try) 2>&5
5338  ac_status=$?
5339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340  (exit $ac_status); }; } &&
5341	 { ac_try='test -s conftest$ac_exeext'
5342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343  (eval $ac_try) 2>&5
5344  ac_status=$?
5345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346  (exit $ac_status); }; }; then
5347  kde_cv_opt_noinline_match=yes
5348else
5349  echo "$as_me: failed program was:" >&5
5350sed 's/^/| /' conftest.$ac_ext >&5
5351
5352kde_cv_opt_noinline_match=no
5353
5354fi
5355rm -f conftest.err conftest.$ac_objext \
5356      conftest$ac_exeext conftest.$ac_ext
5357
5358    CFLAGS="$ac_cflags_save"
5359  fi
5360
5361fi
5362echo "$as_me:$LINENO: result: $kde_cv_opt_noinline_match" >&5
5363echo "${ECHO_T}$kde_cv_opt_noinline_match" >&6
5364
5365    if test "x$kde_cv_opt_noinline_match" = "xno" ; then
5366       CFLAGS="`echo "$CFLAGS" | sed "s/ -fno-inline//"`"
5367    fi
5368  fi
5369
5370
5371if test "$kde_use_pch" = "yes" && test "$kde_gcc_supports_pch" = "yes"; then
5372  unsermake_enable_pch_TRUE=
5373  unsermake_enable_pch_FALSE='#'
5374else
5375  unsermake_enable_pch_TRUE='#'
5376  unsermake_enable_pch_FALSE=
5377fi
5378
5379  if test "$CXX" = "KCC"; then
5380
5381    if test "$kde_use_pch" = "yes"; then
5382
5383echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
5384echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6
5385kde_cache=`echo -pch | sed 'y% .=/+-,%____p__%'`
5386if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5387  echo $ECHO_N "(cached) $ECHO_C" >&6
5388else
5389
5390
5391
5392   ac_ext=cc
5393ac_cpp='$CXXCPP $CPPFLAGS'
5394ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5397
5398ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5399
5400
5401  save_CXXFLAGS="$CXXFLAGS"
5402  CXXFLAGS="$CXXFLAGS --pch"
5403  cat >conftest.$ac_ext <<_ACEOF
5404/* confdefs.h.  */
5405_ACEOF
5406cat confdefs.h >>conftest.$ac_ext
5407cat >>conftest.$ac_ext <<_ACEOF
5408/* end confdefs.h.  */
5409
5410int
5411main ()
5412{
5413 return 0;
5414  ;
5415  return 0;
5416}
5417_ACEOF
5418rm -f conftest.$ac_objext conftest$ac_exeext
5419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5420  (eval $ac_link) 2>conftest.er1
5421  ac_status=$?
5422  grep -v '^ *+' conftest.er1 >conftest.err
5423  rm -f conftest.er1
5424  cat conftest.err >&5
5425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426  (exit $ac_status); } &&
5427	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429  (eval $ac_try) 2>&5
5430  ac_status=$?
5431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432  (exit $ac_status); }; } &&
5433	 { ac_try='test -s conftest$ac_exeext'
5434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435  (eval $ac_try) 2>&5
5436  ac_status=$?
5437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438  (exit $ac_status); }; }; then
5439  eval "kde_cv_prog_cxx_$kde_cache=yes"
5440else
5441  echo "$as_me: failed program was:" >&5
5442sed 's/^/| /' conftest.$ac_ext >&5
5443
5444fi
5445rm -f conftest.err conftest.$ac_objext \
5446      conftest$ac_exeext conftest.$ac_ext
5447  CXXFLAGS="$save_CXXFLAGS"
5448  ac_ext=c
5449ac_cpp='$CPP $CPPFLAGS'
5450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5452ac_compiler_gnu=$ac_cv_c_compiler_gnu
5453
5454
5455fi
5456
5457if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5458 echo "$as_me:$LINENO: result: yes" >&5
5459echo "${ECHO_T}yes" >&6
5460 :
5461 CXXFLAGS="$CXXFLAGS --pch"
5462else
5463 echo "$as_me:$LINENO: result: no" >&5
5464echo "${ECHO_T}no" >&6
5465 :
5466
5467fi
5468
5469                                              fi
5470
5471echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
5472echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6
5473kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-,%____p__%'`
5474if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5475  echo $ECHO_N "(cached) $ECHO_C" >&6
5476else
5477
5478
5479
5480   ac_ext=cc
5481ac_cpp='$CXXCPP $CPPFLAGS'
5482ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5485
5486ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5487
5488
5489  save_CXXFLAGS="$CXXFLAGS"
5490  CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
5491  cat >conftest.$ac_ext <<_ACEOF
5492/* confdefs.h.  */
5493_ACEOF
5494cat confdefs.h >>conftest.$ac_ext
5495cat >>conftest.$ac_ext <<_ACEOF
5496/* end confdefs.h.  */
5497
5498int
5499main ()
5500{
5501 return 0;
5502  ;
5503  return 0;
5504}
5505_ACEOF
5506rm -f conftest.$ac_objext conftest$ac_exeext
5507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5508  (eval $ac_link) 2>conftest.er1
5509  ac_status=$?
5510  grep -v '^ *+' conftest.er1 >conftest.err
5511  rm -f conftest.er1
5512  cat conftest.err >&5
5513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514  (exit $ac_status); } &&
5515	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517  (eval $ac_try) 2>&5
5518  ac_status=$?
5519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520  (exit $ac_status); }; } &&
5521	 { ac_try='test -s conftest$ac_exeext'
5522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523  (eval $ac_try) 2>&5
5524  ac_status=$?
5525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526  (exit $ac_status); }; }; then
5527  eval "kde_cv_prog_cxx_$kde_cache=yes"
5528else
5529  echo "$as_me: failed program was:" >&5
5530sed 's/^/| /' conftest.$ac_ext >&5
5531
5532fi
5533rm -f conftest.err conftest.$ac_objext \
5534      conftest$ac_exeext conftest.$ac_ext
5535  CXXFLAGS="$save_CXXFLAGS"
5536  ac_ext=c
5537ac_cpp='$CPP $CPPFLAGS'
5538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5540ac_compiler_gnu=$ac_cv_c_compiler_gnu
5541
5542
5543fi
5544
5545if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5546 echo "$as_me:$LINENO: result: yes" >&5
5547echo "${ECHO_T}yes" >&6
5548 :
5549 CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
5550else
5551 echo "$as_me:$LINENO: result: no" >&5
5552echo "${ECHO_T}no" >&6
5553 :
5554
5555fi
5556
5557
5558echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
5559echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6
5560kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-,%____p__%'`
5561if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5562  echo $ECHO_N "(cached) $ECHO_C" >&6
5563else
5564
5565
5566
5567   ac_ext=cc
5568ac_cpp='$CXXCPP $CPPFLAGS'
5569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5572
5573ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5574
5575
5576  save_CXXFLAGS="$CXXFLAGS"
5577  CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
5578  cat >conftest.$ac_ext <<_ACEOF
5579/* confdefs.h.  */
5580_ACEOF
5581cat confdefs.h >>conftest.$ac_ext
5582cat >>conftest.$ac_ext <<_ACEOF
5583/* end confdefs.h.  */
5584
5585int
5586main ()
5587{
5588 return 0;
5589  ;
5590  return 0;
5591}
5592_ACEOF
5593rm -f conftest.$ac_objext conftest$ac_exeext
5594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5595  (eval $ac_link) 2>conftest.er1
5596  ac_status=$?
5597  grep -v '^ *+' conftest.er1 >conftest.err
5598  rm -f conftest.er1
5599  cat conftest.err >&5
5600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601  (exit $ac_status); } &&
5602	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604  (eval $ac_try) 2>&5
5605  ac_status=$?
5606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607  (exit $ac_status); }; } &&
5608	 { ac_try='test -s conftest$ac_exeext'
5609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610  (eval $ac_try) 2>&5
5611  ac_status=$?
5612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613  (exit $ac_status); }; }; then
5614  eval "kde_cv_prog_cxx_$kde_cache=yes"
5615else
5616  echo "$as_me: failed program was:" >&5
5617sed 's/^/| /' conftest.$ac_ext >&5
5618
5619fi
5620rm -f conftest.err conftest.$ac_objext \
5621      conftest$ac_exeext conftest.$ac_ext
5622  CXXFLAGS="$save_CXXFLAGS"
5623  ac_ext=c
5624ac_cpp='$CPP $CPPFLAGS'
5625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5627ac_compiler_gnu=$ac_cv_c_compiler_gnu
5628
5629
5630fi
5631
5632if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5633 echo "$as_me:$LINENO: result: yes" >&5
5634echo "${ECHO_T}yes" >&6
5635 :
5636 CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
5637else
5638 echo "$as_me:$LINENO: result: no" >&5
5639echo "${ECHO_T}no" >&6
5640 :
5641
5642fi
5643
5644
5645echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
5646echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6
5647kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
5648if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5649  echo $ECHO_N "(cached) $ECHO_C" >&6
5650else
5651
5652
5653
5654   ac_ext=cc
5655ac_cpp='$CXXCPP $CPPFLAGS'
5656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5659
5660ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5661
5662
5663  save_CXXFLAGS="$CXXFLAGS"
5664  CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
5665  cat >conftest.$ac_ext <<_ACEOF
5666/* confdefs.h.  */
5667_ACEOF
5668cat confdefs.h >>conftest.$ac_ext
5669cat >>conftest.$ac_ext <<_ACEOF
5670/* end confdefs.h.  */
5671
5672int
5673main ()
5674{
5675 return 0;
5676  ;
5677  return 0;
5678}
5679_ACEOF
5680rm -f conftest.$ac_objext conftest$ac_exeext
5681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5682  (eval $ac_link) 2>conftest.er1
5683  ac_status=$?
5684  grep -v '^ *+' conftest.er1 >conftest.err
5685  rm -f conftest.er1
5686  cat conftest.err >&5
5687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688  (exit $ac_status); } &&
5689	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691  (eval $ac_try) 2>&5
5692  ac_status=$?
5693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694  (exit $ac_status); }; } &&
5695	 { ac_try='test -s conftest$ac_exeext'
5696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697  (eval $ac_try) 2>&5
5698  ac_status=$?
5699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700  (exit $ac_status); }; }; then
5701  eval "kde_cv_prog_cxx_$kde_cache=yes"
5702else
5703  echo "$as_me: failed program was:" >&5
5704sed 's/^/| /' conftest.$ac_ext >&5
5705
5706fi
5707rm -f conftest.err conftest.$ac_objext \
5708      conftest$ac_exeext conftest.$ac_ext
5709  CXXFLAGS="$save_CXXFLAGS"
5710  ac_ext=c
5711ac_cpp='$CPP $CPPFLAGS'
5712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5714ac_compiler_gnu=$ac_cv_c_compiler_gnu
5715
5716
5717fi
5718
5719if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5720 echo "$as_me:$LINENO: result: yes" >&5
5721echo "${ECHO_T}yes" >&6
5722 :
5723 CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
5724else
5725 echo "$as_me:$LINENO: result: no" >&5
5726echo "${ECHO_T}no" >&6
5727 :
5728
5729fi
5730
5731
5732echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
5733echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6
5734kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
5735if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5736  echo $ECHO_N "(cached) $ECHO_C" >&6
5737else
5738
5739
5740
5741   ac_ext=cc
5742ac_cpp='$CXXCPP $CPPFLAGS'
5743ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5746
5747ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5748
5749
5750  save_CXXFLAGS="$CXXFLAGS"
5751  CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
5752  cat >conftest.$ac_ext <<_ACEOF
5753/* confdefs.h.  */
5754_ACEOF
5755cat confdefs.h >>conftest.$ac_ext
5756cat >>conftest.$ac_ext <<_ACEOF
5757/* end confdefs.h.  */
5758
5759int
5760main ()
5761{
5762 return 0;
5763  ;
5764  return 0;
5765}
5766_ACEOF
5767rm -f conftest.$ac_objext conftest$ac_exeext
5768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5769  (eval $ac_link) 2>conftest.er1
5770  ac_status=$?
5771  grep -v '^ *+' conftest.er1 >conftest.err
5772  rm -f conftest.er1
5773  cat conftest.err >&5
5774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775  (exit $ac_status); } &&
5776	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778  (eval $ac_try) 2>&5
5779  ac_status=$?
5780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781  (exit $ac_status); }; } &&
5782	 { ac_try='test -s conftest$ac_exeext'
5783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784  (eval $ac_try) 2>&5
5785  ac_status=$?
5786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787  (exit $ac_status); }; }; then
5788  eval "kde_cv_prog_cxx_$kde_cache=yes"
5789else
5790  echo "$as_me: failed program was:" >&5
5791sed 's/^/| /' conftest.$ac_ext >&5
5792
5793fi
5794rm -f conftest.err conftest.$ac_objext \
5795      conftest$ac_exeext conftest.$ac_ext
5796  CXXFLAGS="$save_CXXFLAGS"
5797  ac_ext=c
5798ac_cpp='$CPP $CPPFLAGS'
5799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5801ac_compiler_gnu=$ac_cv_c_compiler_gnu
5802
5803
5804fi
5805
5806if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5807 echo "$as_me:$LINENO: result: yes" >&5
5808echo "${ECHO_T}yes" >&6
5809 :
5810 CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
5811else
5812 echo "$as_me:$LINENO: result: no" >&5
5813echo "${ECHO_T}no" >&6
5814 :
5815
5816fi
5817
5818
5819echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
5820echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6
5821kde_cache=`echo -one_per | sed 'y% .=/+-,%____p__%'`
5822if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5823  echo $ECHO_N "(cached) $ECHO_C" >&6
5824else
5825
5826
5827
5828   ac_ext=cc
5829ac_cpp='$CXXCPP $CPPFLAGS'
5830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5833
5834ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5835
5836
5837  save_CXXFLAGS="$CXXFLAGS"
5838  CXXFLAGS="$CXXFLAGS --one_per"
5839  cat >conftest.$ac_ext <<_ACEOF
5840/* confdefs.h.  */
5841_ACEOF
5842cat confdefs.h >>conftest.$ac_ext
5843cat >>conftest.$ac_ext <<_ACEOF
5844/* end confdefs.h.  */
5845
5846int
5847main ()
5848{
5849 return 0;
5850  ;
5851  return 0;
5852}
5853_ACEOF
5854rm -f conftest.$ac_objext conftest$ac_exeext
5855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5856  (eval $ac_link) 2>conftest.er1
5857  ac_status=$?
5858  grep -v '^ *+' conftest.er1 >conftest.err
5859  rm -f conftest.er1
5860  cat conftest.err >&5
5861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862  (exit $ac_status); } &&
5863	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865  (eval $ac_try) 2>&5
5866  ac_status=$?
5867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868  (exit $ac_status); }; } &&
5869	 { ac_try='test -s conftest$ac_exeext'
5870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871  (eval $ac_try) 2>&5
5872  ac_status=$?
5873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874  (exit $ac_status); }; }; then
5875  eval "kde_cv_prog_cxx_$kde_cache=yes"
5876else
5877  echo "$as_me: failed program was:" >&5
5878sed 's/^/| /' conftest.$ac_ext >&5
5879
5880fi
5881rm -f conftest.err conftest.$ac_objext \
5882      conftest$ac_exeext conftest.$ac_ext
5883  CXXFLAGS="$save_CXXFLAGS"
5884  ac_ext=c
5885ac_cpp='$CPP $CPPFLAGS'
5886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888ac_compiler_gnu=$ac_cv_c_compiler_gnu
5889
5890
5891fi
5892
5893if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5894 echo "$as_me:$LINENO: result: yes" >&5
5895echo "${ECHO_T}yes" >&6
5896 :
5897 CXXFLAGS="$CXXFLAGS --one_per"
5898else
5899 echo "$as_me:$LINENO: result: no" >&5
5900echo "${ECHO_T}no" >&6
5901 :
5902
5903fi
5904
5905  fi
5906
5907    USE_RTTI=
5908
5909
5910  case "$host" in
5911      *-*-irix*)  test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
5912      *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
5913      *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
5914      *-*-solaris*)
5915        if test "$GXX" = yes; then
5916          libstdcpp=`$CXX -print-file-name=libstdc++.so`
5917          if test ! -f $libstdcpp; then
5918             { { echo "$as_me:$LINENO: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&5
5919echo "$as_me: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&2;}
5920   { (exit 1); exit 1; }; }
5921          fi
5922        fi
5923        ;;
5924  esac
5925
5926  if test "x$kde_use_qt_emb" != "xyes"; then
5927  __val=$CXX
5928  __forbid=" -fno-rtti -rpath "
5929  if test -n "$__val"; then
5930    __new=""
5931    ac_save_IFS=$IFS
5932    IFS=" 	"
5933    for i in $__val; do
5934      case "$__forbid" in
5935        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
5936echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
5937	*) # Careful to not add spaces, where there were none, because otherwise
5938	   # libtool gets confused, if we change e.g. CXX
5939	   if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
5940      esac
5941    done
5942    IFS=$ac_save_IFS
5943    CXX=$__new
5944  fi
5945
5946  __val=$CXXFLAGS
5947  __forbid=" -fno-rtti -rpath "
5948  if test -n "$__val"; then
5949    __new=""
5950    ac_save_IFS=$IFS
5951    IFS=" 	"
5952    for i in $__val; do
5953      case "$__forbid" in
5954        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
5955echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
5956	*) # Careful to not add spaces, where there were none, because otherwise
5957	   # libtool gets confused, if we change e.g. CXX
5958	   if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
5959      esac
5960    done
5961    IFS=$ac_save_IFS
5962    CXXFLAGS=$__new
5963  fi
5964
5965else
5966  __val=$CXX
5967  __forbid=" -rpath "
5968  if test -n "$__val"; then
5969    __new=""
5970    ac_save_IFS=$IFS
5971    IFS=" 	"
5972    for i in $__val; do
5973      case "$__forbid" in
5974        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
5975echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
5976	*) # Careful to not add spaces, where there were none, because otherwise
5977	   # libtool gets confused, if we change e.g. CXX
5978	   if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
5979      esac
5980    done
5981    IFS=$ac_save_IFS
5982    CXX=$__new
5983  fi
5984
5985  __val=$CXXFLAGS
5986  __forbid=" -rpath "
5987  if test -n "$__val"; then
5988    __new=""
5989    ac_save_IFS=$IFS
5990    IFS=" 	"
5991    for i in $__val; do
5992      case "$__forbid" in
5993        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
5994echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
5995	*) # Careful to not add spaces, where there were none, because otherwise
5996	   # libtool gets confused, if we change e.g. CXX
5997	   if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
5998      esac
5999    done
6000    IFS=$ac_save_IFS
6001    CXXFLAGS=$__new
6002  fi
6003
6004fi
6005
6006
6007  ac_ext=cc
6008ac_cpp='$CXXCPP $CPPFLAGS'
6009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6012echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6013echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6014if test -z "$CXXCPP"; then
6015  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6016  echo $ECHO_N "(cached) $ECHO_C" >&6
6017else
6018      # Double quotes because CXXCPP needs to be expanded
6019    for CXXCPP in "$CXX -E" "/lib/cpp"
6020    do
6021      ac_preproc_ok=false
6022for ac_cxx_preproc_warn_flag in '' yes
6023do
6024  # Use a header file that comes with gcc, so configuring glibc
6025  # with a fresh cross-compiler works.
6026  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6027  # <limits.h> exists even on freestanding compilers.
6028  # On the NeXT, cc -E runs the code through the compiler's parser,
6029  # not just through cpp. "Syntax error" is here to catch this case.
6030  cat >conftest.$ac_ext <<_ACEOF
6031/* confdefs.h.  */
6032_ACEOF
6033cat confdefs.h >>conftest.$ac_ext
6034cat >>conftest.$ac_ext <<_ACEOF
6035/* end confdefs.h.  */
6036@%:@ifdef __STDC__
6037@%:@ include <limits.h>
6038@%:@else
6039@%:@ include <assert.h>
6040@%:@endif
6041		     Syntax error
6042_ACEOF
6043if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6044  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6045  ac_status=$?
6046  grep -v '^ *+' conftest.er1 >conftest.err
6047  rm -f conftest.er1
6048  cat conftest.err >&5
6049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050  (exit $ac_status); } >/dev/null; then
6051  if test -s conftest.err; then
6052    ac_cpp_err=$ac_cxx_preproc_warn_flag
6053    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6054  else
6055    ac_cpp_err=
6056  fi
6057else
6058  ac_cpp_err=yes
6059fi
6060if test -z "$ac_cpp_err"; then
6061  :
6062else
6063  echo "$as_me: failed program was:" >&5
6064sed 's/^/| /' conftest.$ac_ext >&5
6065
6066  # Broken: fails on valid input.
6067continue
6068fi
6069rm -f conftest.err conftest.$ac_ext
6070
6071  # OK, works on sane cases.  Now check whether non-existent headers
6072  # can be detected and how.
6073  cat >conftest.$ac_ext <<_ACEOF
6074/* confdefs.h.  */
6075_ACEOF
6076cat confdefs.h >>conftest.$ac_ext
6077cat >>conftest.$ac_ext <<_ACEOF
6078/* end confdefs.h.  */
6079@%:@include <ac_nonexistent.h>
6080_ACEOF
6081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6082  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6083  ac_status=$?
6084  grep -v '^ *+' conftest.er1 >conftest.err
6085  rm -f conftest.er1
6086  cat conftest.err >&5
6087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088  (exit $ac_status); } >/dev/null; then
6089  if test -s conftest.err; then
6090    ac_cpp_err=$ac_cxx_preproc_warn_flag
6091    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6092  else
6093    ac_cpp_err=
6094  fi
6095else
6096  ac_cpp_err=yes
6097fi
6098if test -z "$ac_cpp_err"; then
6099  # Broken: success on invalid input.
6100continue
6101else
6102  echo "$as_me: failed program was:" >&5
6103sed 's/^/| /' conftest.$ac_ext >&5
6104
6105  # Passes both tests.
6106ac_preproc_ok=:
6107break
6108fi
6109rm -f conftest.err conftest.$ac_ext
6110
6111done
6112# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6113rm -f conftest.err conftest.$ac_ext
6114if $ac_preproc_ok; then
6115  break
6116fi
6117
6118    done
6119    ac_cv_prog_CXXCPP=$CXXCPP
6120
6121fi
6122  CXXCPP=$ac_cv_prog_CXXCPP
6123else
6124  ac_cv_prog_CXXCPP=$CXXCPP
6125fi
6126echo "$as_me:$LINENO: result: $CXXCPP" >&5
6127echo "${ECHO_T}$CXXCPP" >&6
6128ac_preproc_ok=false
6129for ac_cxx_preproc_warn_flag in '' yes
6130do
6131  # Use a header file that comes with gcc, so configuring glibc
6132  # with a fresh cross-compiler works.
6133  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6134  # <limits.h> exists even on freestanding compilers.
6135  # On the NeXT, cc -E runs the code through the compiler's parser,
6136  # not just through cpp. "Syntax error" is here to catch this case.
6137  cat >conftest.$ac_ext <<_ACEOF
6138/* confdefs.h.  */
6139_ACEOF
6140cat confdefs.h >>conftest.$ac_ext
6141cat >>conftest.$ac_ext <<_ACEOF
6142/* end confdefs.h.  */
6143@%:@ifdef __STDC__
6144@%:@ include <limits.h>
6145@%:@else
6146@%:@ include <assert.h>
6147@%:@endif
6148		     Syntax error
6149_ACEOF
6150if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6151  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6152  ac_status=$?
6153  grep -v '^ *+' conftest.er1 >conftest.err
6154  rm -f conftest.er1
6155  cat conftest.err >&5
6156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157  (exit $ac_status); } >/dev/null; then
6158  if test -s conftest.err; then
6159    ac_cpp_err=$ac_cxx_preproc_warn_flag
6160    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6161  else
6162    ac_cpp_err=
6163  fi
6164else
6165  ac_cpp_err=yes
6166fi
6167if test -z "$ac_cpp_err"; then
6168  :
6169else
6170  echo "$as_me: failed program was:" >&5
6171sed 's/^/| /' conftest.$ac_ext >&5
6172
6173  # Broken: fails on valid input.
6174continue
6175fi
6176rm -f conftest.err conftest.$ac_ext
6177
6178  # OK, works on sane cases.  Now check whether non-existent headers
6179  # can be detected and how.
6180  cat >conftest.$ac_ext <<_ACEOF
6181/* confdefs.h.  */
6182_ACEOF
6183cat confdefs.h >>conftest.$ac_ext
6184cat >>conftest.$ac_ext <<_ACEOF
6185/* end confdefs.h.  */
6186@%:@include <ac_nonexistent.h>
6187_ACEOF
6188if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6189  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6190  ac_status=$?
6191  grep -v '^ *+' conftest.er1 >conftest.err
6192  rm -f conftest.er1
6193  cat conftest.err >&5
6194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195  (exit $ac_status); } >/dev/null; then
6196  if test -s conftest.err; then
6197    ac_cpp_err=$ac_cxx_preproc_warn_flag
6198    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6199  else
6200    ac_cpp_err=
6201  fi
6202else
6203  ac_cpp_err=yes
6204fi
6205if test -z "$ac_cpp_err"; then
6206  # Broken: success on invalid input.
6207continue
6208else
6209  echo "$as_me: failed program was:" >&5
6210sed 's/^/| /' conftest.$ac_ext >&5
6211
6212  # Passes both tests.
6213ac_preproc_ok=:
6214break
6215fi
6216rm -f conftest.err conftest.$ac_ext
6217
6218done
6219# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6220rm -f conftest.err conftest.$ac_ext
6221if $ac_preproc_ok; then
6222  :
6223else
6224  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6225See \`config.log' for more details." >&5
6226echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6227See \`config.log' for more details." >&2;}
6228   { (exit 1); exit 1; }; }
6229fi
6230
6231ac_ext=c
6232ac_cpp='$CPP $CPPFLAGS'
6233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6235ac_compiler_gnu=$ac_cv_c_compiler_gnu
6236
6237
6238  if test "$GCC" = yes; then
6239     NOOPT_CFLAGS=-O0
6240  fi
6241
6242echo "$as_me:$LINENO: checking whether $CXX supports -O0" >&5
6243echo $ECHO_N "checking whether $CXX supports -O0... $ECHO_C" >&6
6244kde_cache=`echo O0 | sed 'y% .=/+-,%____p__%'`
6245if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
6246  echo $ECHO_N "(cached) $ECHO_C" >&6
6247else
6248
6249
6250
6251   ac_ext=cc
6252ac_cpp='$CXXCPP $CPPFLAGS'
6253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6256
6257ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6258
6259
6260  save_CXXFLAGS="$CXXFLAGS"
6261  CXXFLAGS="$CXXFLAGS -O0"
6262  cat >conftest.$ac_ext <<_ACEOF
6263/* confdefs.h.  */
6264_ACEOF
6265cat confdefs.h >>conftest.$ac_ext
6266cat >>conftest.$ac_ext <<_ACEOF
6267/* end confdefs.h.  */
6268
6269int
6270main ()
6271{
6272 return 0;
6273  ;
6274  return 0;
6275}
6276_ACEOF
6277rm -f conftest.$ac_objext conftest$ac_exeext
6278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6279  (eval $ac_link) 2>conftest.er1
6280  ac_status=$?
6281  grep -v '^ *+' conftest.er1 >conftest.err
6282  rm -f conftest.er1
6283  cat conftest.err >&5
6284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285  (exit $ac_status); } &&
6286	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288  (eval $ac_try) 2>&5
6289  ac_status=$?
6290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291  (exit $ac_status); }; } &&
6292	 { ac_try='test -s conftest$ac_exeext'
6293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294  (eval $ac_try) 2>&5
6295  ac_status=$?
6296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297  (exit $ac_status); }; }; then
6298  eval "kde_cv_prog_cxx_$kde_cache=yes"
6299else
6300  echo "$as_me: failed program was:" >&5
6301sed 's/^/| /' conftest.$ac_ext >&5
6302
6303fi
6304rm -f conftest.err conftest.$ac_objext \
6305      conftest$ac_exeext conftest.$ac_ext
6306  CXXFLAGS="$save_CXXFLAGS"
6307  ac_ext=c
6308ac_cpp='$CPP $CPPFLAGS'
6309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6311ac_compiler_gnu=$ac_cv_c_compiler_gnu
6312
6313
6314fi
6315
6316if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6317 echo "$as_me:$LINENO: result: yes" >&5
6318echo "${ECHO_T}yes" >&6
6319 :
6320 NOOPT_CXXFLAGS=-O0
6321else
6322 echo "$as_me:$LINENO: result: no" >&5
6323echo "${ECHO_T}no" >&6
6324 :
6325
6326fi
6327
6328
6329  # Check whether --enable-coverage or --disable-coverage was given.
6330if test "${enable_coverage+set}" = set; then
6331  enableval="$enable_coverage"
6332
6333      if test "$am_cv_CC_dependencies_compiler_type" = "gcc3"; then
6334        ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
6335        ac_coverage_linker="-lgcc"
6336      elif test "$am_cv_CC_dependencies_compiler_type" = "gcc"; then
6337        ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
6338        ac_coverage_linker=""
6339      else
6340        { { echo "$as_me:$LINENO: error: coverage with your compiler is not supported" >&5
6341echo "$as_me: error: coverage with your compiler is not supported" >&2;}
6342   { (exit 1); exit 1; }; }
6343      fi
6344      CFLAGS="$CFLAGS $ac_coverage_compiler"
6345      CXXFLAGS="$CXXFLAGS $ac_coverage_compiler"
6346      LDFLAGS="$LDFLAGS $ac_coverage_linker"
6347
6348fi;
6349
6350
6351
6352
6353
6354
6355  # Check whether --enable-new_ldflags or --disable-new_ldflags was given.
6356if test "${enable_new_ldflags+set}" = set; then
6357  enableval="$enable_new_ldflags"
6358  kde_use_new_ldflags=$enableval
6359else
6360  kde_use_new_ldflags=no
6361fi;
6362
6363  LDFLAGS_AS_NEEDED=""
6364  LDFLAGS_NEW_DTAGS=""
6365  if test "x$kde_use_new_ldflags" = "xyes"; then
6366       LDFLAGS_NEW_DTAGS=""
6367
6368echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--enable-new-dtags" >&5
6369echo $ECHO_N "checking whether $CXX supports -Wl,--enable-new-dtags... $ECHO_C" >&6
6370kde_cache=`echo Wl,--enable-new-dtags | sed 'y% .=/+-,%____p__%'`
6371if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
6372  echo $ECHO_N "(cached) $ECHO_C" >&6
6373else
6374
6375
6376
6377   ac_ext=cc
6378ac_cpp='$CXXCPP $CPPFLAGS'
6379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6382
6383ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6384
6385
6386  save_CXXFLAGS="$CXXFLAGS"
6387  CXXFLAGS="$CXXFLAGS -Wl,--enable-new-dtags"
6388  cat >conftest.$ac_ext <<_ACEOF
6389/* confdefs.h.  */
6390_ACEOF
6391cat confdefs.h >>conftest.$ac_ext
6392cat >>conftest.$ac_ext <<_ACEOF
6393/* end confdefs.h.  */
6394
6395int
6396main ()
6397{
6398 return 0;
6399  ;
6400  return 0;
6401}
6402_ACEOF
6403rm -f conftest.$ac_objext conftest$ac_exeext
6404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6405  (eval $ac_link) 2>conftest.er1
6406  ac_status=$?
6407  grep -v '^ *+' conftest.er1 >conftest.err
6408  rm -f conftest.er1
6409  cat conftest.err >&5
6410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411  (exit $ac_status); } &&
6412	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414  (eval $ac_try) 2>&5
6415  ac_status=$?
6416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417  (exit $ac_status); }; } &&
6418	 { ac_try='test -s conftest$ac_exeext'
6419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420  (eval $ac_try) 2>&5
6421  ac_status=$?
6422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423  (exit $ac_status); }; }; then
6424  eval "kde_cv_prog_cxx_$kde_cache=yes"
6425else
6426  echo "$as_me: failed program was:" >&5
6427sed 's/^/| /' conftest.$ac_ext >&5
6428
6429fi
6430rm -f conftest.err conftest.$ac_objext \
6431      conftest$ac_exeext conftest.$ac_ext
6432  CXXFLAGS="$save_CXXFLAGS"
6433  ac_ext=c
6434ac_cpp='$CPP $CPPFLAGS'
6435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6437ac_compiler_gnu=$ac_cv_c_compiler_gnu
6438
6439
6440fi
6441
6442if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6443 echo "$as_me:$LINENO: result: yes" >&5
6444echo "${ECHO_T}yes" >&6
6445 :
6446 LDFLAGS_NEW_DTAGS="-Wl,--enable-new-dtags"
6447else
6448 echo "$as_me:$LINENO: result: no" >&5
6449echo "${ECHO_T}no" >&6
6450 :
6451
6452fi
6453
6454
6455
6456echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--as-needed" >&5
6457echo $ECHO_N "checking whether $CXX supports -Wl,--as-needed... $ECHO_C" >&6
6458kde_cache=`echo Wl,--as-needed | sed 'y% .=/+-,%____p__%'`
6459if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
6460  echo $ECHO_N "(cached) $ECHO_C" >&6
6461else
6462
6463
6464
6465   ac_ext=cc
6466ac_cpp='$CXXCPP $CPPFLAGS'
6467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6470
6471ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6472
6473
6474  save_CXXFLAGS="$CXXFLAGS"
6475  CXXFLAGS="$CXXFLAGS -Wl,--as-needed"
6476  cat >conftest.$ac_ext <<_ACEOF
6477/* confdefs.h.  */
6478_ACEOF
6479cat confdefs.h >>conftest.$ac_ext
6480cat >>conftest.$ac_ext <<_ACEOF
6481/* end confdefs.h.  */
6482
6483int
6484main ()
6485{
6486 return 0;
6487  ;
6488  return 0;
6489}
6490_ACEOF
6491rm -f conftest.$ac_objext conftest$ac_exeext
6492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6493  (eval $ac_link) 2>conftest.er1
6494  ac_status=$?
6495  grep -v '^ *+' conftest.er1 >conftest.err
6496  rm -f conftest.er1
6497  cat conftest.err >&5
6498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499  (exit $ac_status); } &&
6500	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502  (eval $ac_try) 2>&5
6503  ac_status=$?
6504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505  (exit $ac_status); }; } &&
6506	 { ac_try='test -s conftest$ac_exeext'
6507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508  (eval $ac_try) 2>&5
6509  ac_status=$?
6510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511  (exit $ac_status); }; }; then
6512  eval "kde_cv_prog_cxx_$kde_cache=yes"
6513else
6514  echo "$as_me: failed program was:" >&5
6515sed 's/^/| /' conftest.$ac_ext >&5
6516
6517fi
6518rm -f conftest.err conftest.$ac_objext \
6519      conftest$ac_exeext conftest.$ac_ext
6520  CXXFLAGS="$save_CXXFLAGS"
6521  ac_ext=c
6522ac_cpp='$CPP $CPPFLAGS'
6523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6525ac_compiler_gnu=$ac_cv_c_compiler_gnu
6526
6527
6528fi
6529
6530if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6531 echo "$as_me:$LINENO: result: yes" >&5
6532echo "${ECHO_T}yes" >&6
6533 :
6534 LDFLAGS_AS_NEEDED="-Wl,--as-needed"
6535else
6536 echo "$as_me:$LINENO: result: no" >&5
6537echo "${ECHO_T}no" >&6
6538 :
6539
6540fi
6541
6542  fi
6543
6544
6545
6546
6547  # Check whether --enable-final or --disable-final was given.
6548if test "${enable_final+set}" = set; then
6549  enableval="$enable_final"
6550  kde_use_final=$enableval
6551else
6552  kde_use_final=no
6553fi;
6554
6555  if test "x$kde_use_final" = "xyes"; then
6556      KDE_USE_FINAL_TRUE=""
6557      KDE_USE_FINAL_FALSE="#"
6558   else
6559      KDE_USE_FINAL_TRUE="#"
6560      KDE_USE_FINAL_FALSE=""
6561  fi
6562
6563
6564
6565
6566  # Check whether --enable-closure or --disable-closure was given.
6567if test "${enable_closure+set}" = set; then
6568  enableval="$enable_closure"
6569  kde_use_closure=$enableval
6570else
6571  kde_use_closure=no
6572fi;
6573
6574  KDE_NO_UNDEFINED=""
6575  if test "x$kde_use_closure" = "xyes"; then
6576       KDE_USE_CLOSURE_TRUE=""
6577       KDE_USE_CLOSURE_FALSE="#"
6578#       CXXFLAGS="$CXXFLAGS $REPO"
6579  else
6580       KDE_USE_CLOSURE_TRUE="#"
6581       KDE_USE_CLOSURE_FALSE=""
6582       KDE_NO_UNDEFINED=""
6583       case $host in
6584         *-*-linux-gnu)
6585
6586echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5
6587echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6
6588kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'`
6589if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
6590  echo $ECHO_N "(cached) $ECHO_C" >&6
6591else
6592
6593
6594
6595   ac_ext=cc
6596ac_cpp='$CXXCPP $CPPFLAGS'
6597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6600
6601ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6602
6603
6604  save_CXXFLAGS="$CXXFLAGS"
6605  CXXFLAGS="$CXXFLAGS -Wl,--no-undefined"
6606  cat >conftest.$ac_ext <<_ACEOF
6607/* confdefs.h.  */
6608_ACEOF
6609cat confdefs.h >>conftest.$ac_ext
6610cat >>conftest.$ac_ext <<_ACEOF
6611/* end confdefs.h.  */
6612
6613int
6614main ()
6615{
6616 return 0;
6617  ;
6618  return 0;
6619}
6620_ACEOF
6621rm -f conftest.$ac_objext conftest$ac_exeext
6622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6623  (eval $ac_link) 2>conftest.er1
6624  ac_status=$?
6625  grep -v '^ *+' conftest.er1 >conftest.err
6626  rm -f conftest.er1
6627  cat conftest.err >&5
6628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629  (exit $ac_status); } &&
6630	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632  (eval $ac_try) 2>&5
6633  ac_status=$?
6634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635  (exit $ac_status); }; } &&
6636	 { ac_try='test -s conftest$ac_exeext'
6637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638  (eval $ac_try) 2>&5
6639  ac_status=$?
6640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641  (exit $ac_status); }; }; then
6642  eval "kde_cv_prog_cxx_$kde_cache=yes"
6643else
6644  echo "$as_me: failed program was:" >&5
6645sed 's/^/| /' conftest.$ac_ext >&5
6646
6647fi
6648rm -f conftest.err conftest.$ac_objext \
6649      conftest$ac_exeext conftest.$ac_ext
6650  CXXFLAGS="$save_CXXFLAGS"
6651  ac_ext=c
6652ac_cpp='$CPP $CPPFLAGS'
6653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6655ac_compiler_gnu=$ac_cv_c_compiler_gnu
6656
6657
6658fi
6659
6660if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6661 echo "$as_me:$LINENO: result: yes" >&5
6662echo "${ECHO_T}yes" >&6
6663 :
6664
6665echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5
6666echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6
6667kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'`
6668if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
6669  echo $ECHO_N "(cached) $ECHO_C" >&6
6670else
6671
6672
6673
6674   ac_ext=cc
6675ac_cpp='$CXXCPP $CPPFLAGS'
6676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6679
6680ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6681
6682
6683  save_CXXFLAGS="$CXXFLAGS"
6684  CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined"
6685  cat >conftest.$ac_ext <<_ACEOF
6686/* confdefs.h.  */
6687_ACEOF
6688cat confdefs.h >>conftest.$ac_ext
6689cat >>conftest.$ac_ext <<_ACEOF
6690/* end confdefs.h.  */
6691
6692int
6693main ()
6694{
6695 return 0;
6696  ;
6697  return 0;
6698}
6699_ACEOF
6700rm -f conftest.$ac_objext conftest$ac_exeext
6701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6702  (eval $ac_link) 2>conftest.er1
6703  ac_status=$?
6704  grep -v '^ *+' conftest.er1 >conftest.err
6705  rm -f conftest.er1
6706  cat conftest.err >&5
6707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708  (exit $ac_status); } &&
6709	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711  (eval $ac_try) 2>&5
6712  ac_status=$?
6713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714  (exit $ac_status); }; } &&
6715	 { ac_try='test -s conftest$ac_exeext'
6716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717  (eval $ac_try) 2>&5
6718  ac_status=$?
6719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720  (exit $ac_status); }; }; then
6721  eval "kde_cv_prog_cxx_$kde_cache=yes"
6722else
6723  echo "$as_me: failed program was:" >&5
6724sed 's/^/| /' conftest.$ac_ext >&5
6725
6726fi
6727rm -f conftest.err conftest.$ac_objext \
6728      conftest$ac_exeext conftest.$ac_ext
6729  CXXFLAGS="$save_CXXFLAGS"
6730  ac_ext=c
6731ac_cpp='$CPP $CPPFLAGS'
6732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6734ac_compiler_gnu=$ac_cv_c_compiler_gnu
6735
6736
6737fi
6738
6739if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6740 echo "$as_me:$LINENO: result: yes" >&5
6741echo "${ECHO_T}yes" >&6
6742 :
6743 KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"
6744else
6745 echo "$as_me:$LINENO: result: no" >&5
6746echo "${ECHO_T}no" >&6
6747 :
6748 KDE_NO_UNDEFINED=""
6749fi
6750
6751else
6752 echo "$as_me:$LINENO: result: no" >&5
6753echo "${ECHO_T}no" >&6
6754 :
6755 KDE_NO_UNDEFINED=""
6756fi
6757
6758           ;;
6759       esac
6760  fi
6761
6762
6763
6764
6765
6766  # Check whether --enable-nmcheck or --disable-nmcheck was given.
6767if test "${enable_nmcheck+set}" = set; then
6768  enableval="$enable_nmcheck"
6769  kde_use_nmcheck=$enableval
6770else
6771  kde_use_nmcheck=no
6772fi;
6773
6774  if test "$kde_use_nmcheck" = "yes"; then
6775      KDE_USE_NMCHECK_TRUE=""
6776      KDE_USE_NMCHECK_FALSE="#"
6777   else
6778      KDE_USE_NMCHECK_TRUE="#"
6779      KDE_USE_NMCHECK_FALSE=""
6780  fi
6781
6782
6783
6784
6785
6786
6787
6788
6789# Check whether --enable-shared or --disable-shared was given.
6790if test "${enable_shared+set}" = set; then
6791  enableval="$enable_shared"
6792  p=${PACKAGE-default}
6793    case $enableval in
6794    yes) enable_shared=yes ;;
6795    no) enable_shared=no ;;
6796    *)
6797      enable_shared=no
6798      # Look at the argument we got.  We use all the common list separators.
6799      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6800      for pkg in $enableval; do
6801	IFS="$lt_save_ifs"
6802	if test "X$pkg" = "X$p"; then
6803	  enable_shared=yes
6804	fi
6805      done
6806      IFS="$lt_save_ifs"
6807      ;;
6808    esac
6809else
6810  enable_shared=yes
6811fi;
6812
6813
6814# Check whether --enable-static or --disable-static was given.
6815if test "${enable_static+set}" = set; then
6816  enableval="$enable_static"
6817  p=${PACKAGE-default}
6818    case $enableval in
6819    yes) enable_static=yes ;;
6820    no) enable_static=no ;;
6821    *)
6822     enable_static=no
6823      # Look at the argument we got.  We use all the common list separators.
6824      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6825      for pkg in $enableval; do
6826	IFS="$lt_save_ifs"
6827	if test "X$pkg" = "X$p"; then
6828	  enable_static=yes
6829	fi
6830      done
6831      IFS="$lt_save_ifs"
6832      ;;
6833    esac
6834else
6835  enable_static=no
6836fi;
6837
6838
6839
6840
6841
6842    kdelibsuff="$kde_libs_suffix"
6843    if test -z "$kdelibsuff"; then
6844       kdelibsuff="auto"
6845    fi
6846    # Check whether --enable-libsuffix or --disable-libsuffix was given.
6847if test "${enable_libsuffix+set}" = set; then
6848  enableval="$enable_libsuffix"
6849  kdelibsuff=$enableval
6850fi;
6851
6852    if test "$kdelibsuff" = "auto"; then
6853
6854cat > conftest.c << EOF
6855#include <stdio.h>
6856int main() {
6857 return 0;
6858}
6859EOF
6860        kdelibsuff=`$CC conftest.c -o conftest.out; ldd conftest.out | grep -E "libc.so"| grep -E -o "/lib[^\/]*/" | sed "s/lib//" | sed "s/\/*//g"`
6861	rm -rf conftest.*
6862    fi
6863
6864    if test "$kdelibsuff" = "no"; then
6865       kdelibsuff=
6866    fi
6867    if test -z "$kdelibsuff"; then
6868        echo "$as_me:$LINENO: result: not using lib directory suffix" >&5
6869echo "${ECHO_T}not using lib directory suffix" >&6
6870
6871cat >>confdefs.h <<\_ACEOF
6872@%:@define KDELIBSUFF ""
6873_ACEOF
6874
6875    else
6876        if test "$libdir" = '${exec_prefix}/lib'; then
6877            libdir="$libdir${kdelibsuff}"
6878            libdir="$libdir"
6879          fi
6880
6881cat >>confdefs.h <<_ACEOF
6882@%:@define KDELIBSUFF "${kdelibsuff}"
6883_ACEOF
6884
6885        echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5
6886echo "${ECHO_T}using lib directory suffix $kdelibsuff" >&6
6887    fi
6888
6889# Check whether --enable-fast-install or --disable-fast-install was given.
6890if test "${enable_fast_install+set}" = set; then
6891  enableval="$enable_fast_install"
6892  p=${PACKAGE-default}
6893    case $enableval in
6894    yes) enable_fast_install=yes ;;
6895    no) enable_fast_install=no ;;
6896    *)
6897      enable_fast_install=no
6898      # Look at the argument we got.  We use all the common list separators.
6899      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6900      for pkg in $enableval; do
6901	IFS="$lt_save_ifs"
6902	if test "X$pkg" = "X$p"; then
6903	  enable_fast_install=yes
6904	fi
6905      done
6906      IFS="$lt_save_ifs"
6907      ;;
6908    esac
6909else
6910  enable_fast_install=yes
6911fi;
6912
6913echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6914echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6915if test "${lt_cv_path_SED+set}" = set; then
6916  echo $ECHO_N "(cached) $ECHO_C" >&6
6917else
6918  # Loop through the user's path and test for sed and gsed.
6919# Then use that list of sed's as ones to test for truncation.
6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923  IFS=$as_save_IFS
6924  test -z "$as_dir" && as_dir=.
6925  for lt_ac_prog in sed gsed; do
6926    for ac_exec_ext in '' $ac_executable_extensions; do
6927      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6928        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6929      fi
6930    done
6931  done
6932done
6933lt_ac_max=0
6934lt_ac_count=0
6935# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6936# along with /bin/sed that truncates output.
6937for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6938  test ! -f $lt_ac_sed && break
6939  cat /dev/null > conftest.in
6940  lt_ac_count=0
6941  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6942  # Check for GNU sed and select it if it is found.
6943  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6944    lt_cv_path_SED=$lt_ac_sed
6945    break
6946  fi
6947  while true; do
6948    cat conftest.in conftest.in >conftest.tmp
6949    mv conftest.tmp conftest.in
6950    cp conftest.in conftest.nl
6951    echo >>conftest.nl
6952    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6953    cmp -s conftest.out conftest.nl || break
6954    # 10000 chars as input seems more than enough
6955    test $lt_ac_count -gt 10 && break
6956    lt_ac_count=`expr $lt_ac_count + 1`
6957    if test $lt_ac_count -gt $lt_ac_max; then
6958      lt_ac_max=$lt_ac_count
6959      lt_cv_path_SED=$lt_ac_sed
6960    fi
6961  done
6962done
6963
6964fi
6965
6966SED=$lt_cv_path_SED
6967echo "$as_me:$LINENO: result: $SED" >&5
6968echo "${ECHO_T}$SED" >&6
6969
6970echo "$as_me:$LINENO: checking for egrep" >&5
6971echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6972if test "${ac_cv_prog_egrep+set}" = set; then
6973  echo $ECHO_N "(cached) $ECHO_C" >&6
6974else
6975  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6976    then ac_cv_prog_egrep='grep -E'
6977    else ac_cv_prog_egrep='egrep'
6978    fi
6979fi
6980echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6981echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6982 EGREP=$ac_cv_prog_egrep
6983
6984
6985
6986# Check whether --with-gnu-ld or --without-gnu-ld was given.
6987if test "${with_gnu_ld+set}" = set; then
6988  withval="$with_gnu_ld"
6989  test "$withval" = no || with_gnu_ld=yes
6990else
6991  with_gnu_ld=no
6992fi;
6993ac_prog=ld
6994if test "$GCC" = yes; then
6995  # Check if gcc -print-prog-name=ld gives a path.
6996  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6997echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6998  case $host in
6999  *-*-mingw*)
7000    # gcc leaves a trailing carriage return which upsets mingw
7001    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7002  *)
7003    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7004  esac
7005  case $ac_prog in
7006    # Accept absolute paths.
7007    [\\/]* | ?:[\\/]*)
7008      re_direlt='/[^/][^/]*/\.\./'
7009      # Canonicalize the pathname of ld
7010      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7011      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7012	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7013      done
7014      test -z "$LD" && LD="$ac_prog"
7015      ;;
7016  "")
7017    # If it fails, then pretend we aren't using GCC.
7018    ac_prog=ld
7019    ;;
7020  *)
7021    # If it is relative, then search for the first ld in PATH.
7022    with_gnu_ld=unknown
7023    ;;
7024  esac
7025elif test "$with_gnu_ld" = yes; then
7026  echo "$as_me:$LINENO: checking for GNU ld" >&5
7027echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7028else
7029  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7030echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7031fi
7032if test "${lt_cv_path_LD+set}" = set; then
7033  echo $ECHO_N "(cached) $ECHO_C" >&6
7034else
7035  if test -z "$LD"; then
7036  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7037  for ac_dir in $PATH; do
7038    IFS="$lt_save_ifs"
7039    test -z "$ac_dir" && ac_dir=.
7040    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7041      lt_cv_path_LD="$ac_dir/$ac_prog"
7042      # Check to see if the program is GNU ld.  I'd rather use --version,
7043      # but apparently some GNU ld's only accept -v.
7044      # Break only if it was the GNU/non-GNU ld that we prefer.
7045      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7046      *GNU* | *'with BFD'*)
7047	test "$with_gnu_ld" != no && break
7048	;;
7049      *)
7050	test "$with_gnu_ld" != yes && break
7051	;;
7052      esac
7053    fi
7054  done
7055  IFS="$lt_save_ifs"
7056else
7057  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7058fi
7059fi
7060
7061LD="$lt_cv_path_LD"
7062if test -n "$LD"; then
7063  echo "$as_me:$LINENO: result: $LD" >&5
7064echo "${ECHO_T}$LD" >&6
7065else
7066  echo "$as_me:$LINENO: result: no" >&5
7067echo "${ECHO_T}no" >&6
7068fi
7069test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7070echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7071   { (exit 1); exit 1; }; }
7072echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7073echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7074if test "${lt_cv_prog_gnu_ld+set}" = set; then
7075  echo $ECHO_N "(cached) $ECHO_C" >&6
7076else
7077  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7078case `$LD -v 2>&1 </dev/null` in
7079*GNU* | *'with BFD'*)
7080  lt_cv_prog_gnu_ld=yes
7081  ;;
7082*)
7083  lt_cv_prog_gnu_ld=no
7084  ;;
7085esac
7086fi
7087echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7088echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
7089with_gnu_ld=$lt_cv_prog_gnu_ld
7090
7091
7092echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7093echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
7094if test "${lt_cv_ld_reload_flag+set}" = set; then
7095  echo $ECHO_N "(cached) $ECHO_C" >&6
7096else
7097  lt_cv_ld_reload_flag='-r'
7098fi
7099echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7100echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
7101reload_flag=$lt_cv_ld_reload_flag
7102case $reload_flag in
7103"" | " "*) ;;
7104*) reload_flag=" $reload_flag" ;;
7105esac
7106reload_cmds='$LD$reload_flag -o $output$reload_objs'
7107
7108echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7109echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7110if test "${lt_cv_path_NM+set}" = set; then
7111  echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113  if test -n "$NM"; then
7114  # Let the user override the test.
7115  lt_cv_path_NM="$NM"
7116else
7117  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7118  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7119    IFS="$lt_save_ifs"
7120    test -z "$ac_dir" && ac_dir=.
7121    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7122    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7123      # Check to see if the nm accepts a BSD-compat flag.
7124      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7125      #   nm: unknown option "B" ignored
7126      # Tru64's nm complains that /dev/null is an invalid object file
7127      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7128      */dev/null* | *'Invalid file or object type'*)
7129	lt_cv_path_NM="$tmp_nm -B"
7130	break
7131        ;;
7132      *)
7133	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7134	*/dev/null*)
7135	  lt_cv_path_NM="$tmp_nm -p"
7136	  break
7137	  ;;
7138	*)
7139	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7140	  continue # so that we can try to find one that supports BSD flags
7141	  ;;
7142	esac
7143      esac
7144    fi
7145  done
7146  IFS="$lt_save_ifs"
7147  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7148fi
7149fi
7150echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7151echo "${ECHO_T}$lt_cv_path_NM" >&6
7152NM="$lt_cv_path_NM"
7153
7154echo "$as_me:$LINENO: checking whether ln -s works" >&5
7155echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7156LN_S=$as_ln_s
7157if test "$LN_S" = "ln -s"; then
7158  echo "$as_me:$LINENO: result: yes" >&5
7159echo "${ECHO_T}yes" >&6
7160else
7161  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7162echo "${ECHO_T}no, using $LN_S" >&6
7163fi
7164
7165echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7166echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7167if test "${lt_cv_deplibs_check_method+set}" = set; then
7168  echo $ECHO_N "(cached) $ECHO_C" >&6
7169else
7170  lt_cv_file_magic_cmd='$MAGIC_CMD'
7171lt_cv_file_magic_test_file=
7172lt_cv_deplibs_check_method='unknown'
7173# Need to set the preceding variable on all platforms that support
7174# interlibrary dependencies.
7175# 'none' -- dependencies not supported.
7176# `unknown' -- same as none, but documents that we really don't know.
7177# 'pass_all' -- all dependencies passed with no checks.
7178# 'test_compile' -- check by making test program.
7179# 'file_magic [[regex]]' -- check by looking for files in library path
7180# which responds to the $file_magic_cmd with a given extended regex.
7181# If you have `file' or equivalent on your system and you're not sure
7182# whether `pass_all' will *always* work, you probably want this one.
7183
7184case $host_os in
7185aix4* | aix5*)
7186  lt_cv_deplibs_check_method=pass_all
7187  ;;
7188
7189beos*)
7190  lt_cv_deplibs_check_method=pass_all
7191  ;;
7192
7193bsdi4*)
7194  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7195  lt_cv_file_magic_cmd='/usr/bin/file -L'
7196  lt_cv_file_magic_test_file=/shlib/libc.so
7197  ;;
7198
7199cygwin*)
7200  lt_cv_deplibs_check_method=pass_all
7201  ;;
7202
7203mingw* | pw32*)
7204  # win32_libid is a shell function defined in ltmain.sh
7205  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7206  lt_cv_file_magic_cmd='win32_libid'
7207  ;;
7208
7209darwin* | rhapsody*)
7210  # this will be overwritten by pass_all, but leave it in just in case
7211  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
7212  lt_cv_file_magic_cmd='/usr/bin/file -L'
7213  case "$host_os" in
7214  rhapsody* | darwin1.[012])
7215    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
7216    ;;
7217  *) # Darwin 1.3 on
7218    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
7219    ;;
7220  esac
7221  lt_cv_deplibs_check_method=pass_all
7222  ;;
7223
7224freebsd* | kfreebsd*-gnu)
7225  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7226    case $host_cpu in
7227    i*86 )
7228      # Not sure whether the presence of OpenBSD here was a mistake.
7229      # Let's accept both of them until this is cleared up.
7230      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
7231      lt_cv_file_magic_cmd=/usr/bin/file
7232      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7233      ;;
7234    esac
7235  else
7236    lt_cv_deplibs_check_method=pass_all
7237  fi
7238  ;;
7239
7240gnu*)
7241  lt_cv_deplibs_check_method=pass_all
7242  ;;
7243
7244hpux10.20* | hpux11*)
7245  lt_cv_file_magic_cmd=/usr/bin/file
7246  case "$host_cpu" in
7247  ia64*)
7248    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7249    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7250    ;;
7251  hppa*64*)
7252    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]'
7253    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7254    ;;
7255  *)
7256    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7257    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7258    ;;
7259  esac
7260  ;;
7261
7262irix5* | irix6* | nonstopux*)
7263  case $host_os in
7264  irix5* | nonstopux*)
7265    # this will be overridden with pass_all, but let us keep it just in case
7266    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
7267    ;;
7268  *)
7269    case $LD in
7270    *-32|*"-32 ") libmagic=32-bit;;
7271    *-n32|*"-n32 ") libmagic=N32;;
7272    *-64|*"-64 ") libmagic=64-bit;;
7273    *) libmagic=never-match;;
7274    esac
7275    # this will be overridden with pass_all, but let us keep it just in case
7276    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
7277    ;;
7278  esac
7279  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
7280  lt_cv_deplibs_check_method=pass_all
7281  ;;
7282
7283# This must be Linux ELF.
7284linux*)
7285  case $host_cpu in
7286  alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
7287    lt_cv_deplibs_check_method=pass_all ;;
7288  # the debian people say, arm and glibc 2.3.1 works for them with pass_all
7289  arm* )
7290    lt_cv_deplibs_check_method=pass_all ;;
7291  *)
7292    # glibc up to 2.1.1 does not perform some relocations on ARM
7293    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
7294  esac
7295  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
7296  ;;
7297
7298netbsd*)
7299  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7300    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7301  else
7302    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7303  fi
7304  ;;
7305
7306newos6*)
7307  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7308  lt_cv_file_magic_cmd=/usr/bin/file
7309  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7310  ;;
7311
7312nto-qnx*)
7313  lt_cv_deplibs_check_method=unknown
7314  ;;
7315
7316openbsd*)
7317  lt_cv_file_magic_cmd=/usr/bin/file
7318  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7319  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7320    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
7321  else
7322    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
7323  fi
7324  ;;
7325
7326osf3* | osf4* | osf5*)
7327  # this will be overridden with pass_all, but let us keep it just in case
7328  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
7329  lt_cv_file_magic_test_file=/shlib/libc.so
7330  lt_cv_deplibs_check_method=pass_all
7331  ;;
7332
7333sco3.2v5*)
7334  lt_cv_deplibs_check_method=pass_all
7335  ;;
7336
7337solaris*)
7338  lt_cv_deplibs_check_method=pass_all
7339  lt_cv_file_magic_test_file=/lib/libc.so
7340  ;;
7341
7342sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7343  case $host_vendor in
7344  motorola)
7345    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]'
7346    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7347    ;;
7348  ncr)
7349    lt_cv_deplibs_check_method=pass_all
7350    ;;
7351  sequent)
7352    lt_cv_file_magic_cmd='/bin/file'
7353    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7354    ;;
7355  sni)
7356    lt_cv_file_magic_cmd='/bin/file'
7357    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7358    lt_cv_file_magic_test_file=/lib/libc.so
7359    ;;
7360  siemens)
7361    lt_cv_deplibs_check_method=pass_all
7362    ;;
7363  esac
7364  ;;
7365
7366sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
7367  lt_cv_deplibs_check_method=pass_all
7368  ;;
7369esac
7370
7371fi
7372echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7373echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7374file_magic_cmd=$lt_cv_file_magic_cmd
7375deplibs_check_method=$lt_cv_deplibs_check_method
7376test -z "$deplibs_check_method" && deplibs_check_method=unknown
7377
7378
7379# If no C compiler was specified, use CC.
7380LTCC=${LTCC-"$CC"}
7381
7382# Allow CC to be a program name with arguments.
7383compiler=$CC
7384
7385# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7386if test "${enable_libtool_lock+set}" = set; then
7387  enableval="$enable_libtool_lock"
7388
7389fi;
7390test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7391
7392# Some flags need to be propagated to the compiler or linker for good
7393# libtool support.
7394case $host in
7395ia64-*-hpux*)
7396  # Find out which ABI we are using.
7397  echo 'int i;' > conftest.$ac_ext
7398  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7399  (eval $ac_compile) 2>&5
7400  ac_status=$?
7401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402  (exit $ac_status); }; then
7403    case `/usr/bin/file conftest.$ac_objext` in
7404    *ELF-32*)
7405      HPUX_IA64_MODE="32"
7406      ;;
7407    *ELF-64*)
7408      HPUX_IA64_MODE="64"
7409      ;;
7410    esac
7411  fi
7412  rm -rf conftest*
7413  ;;
7414*-*-irix6*)
7415  # Find out which ABI we are using.
7416  echo '#line __oline__ "configure"' > conftest.$ac_ext
7417  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7418  (eval $ac_compile) 2>&5
7419  ac_status=$?
7420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421  (exit $ac_status); }; then
7422   if test "$lt_cv_prog_gnu_ld" = yes; then
7423    case `/usr/bin/file conftest.$ac_objext` in
7424    *32-bit*)
7425      LD="${LD-ld} -melf32bsmip"
7426      ;;
7427    *N32*)
7428      LD="${LD-ld} -melf32bmipn32"
7429      ;;
7430    *64-bit*)
7431      LD="${LD-ld} -melf64bmip"
7432      ;;
7433    esac
7434   else
7435    case `/usr/bin/file conftest.$ac_objext` in
7436    *32-bit*)
7437      LD="${LD-ld} -32"
7438      ;;
7439    *N32*)
7440      LD="${LD-ld} -n32"
7441      ;;
7442    *64-bit*)
7443      LD="${LD-ld} -64"
7444      ;;
7445    esac
7446   fi
7447  fi
7448  rm -rf conftest*
7449  ;;
7450
7451x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7452  # Find out which ABI we are using.
7453  echo 'int i;' > conftest.$ac_ext
7454  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7455  (eval $ac_compile) 2>&5
7456  ac_status=$?
7457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458  (exit $ac_status); }; then
7459    case "`/usr/bin/file conftest.o`" in
7460    *32-bit*)
7461      LINUX_64_MODE="32"
7462      case $host in
7463        x86_64-*linux*)
7464          LD="${LD-ld} -m elf_i386"
7465          ;;
7466        ppc64-*linux*)
7467          LD="${LD-ld} -m elf32ppclinux"
7468          ;;
7469        s390x-*linux*)
7470          LD="${LD-ld} -m elf_s390"
7471          ;;
7472        sparc64-*linux*)
7473          LD="${LD-ld} -m elf32_sparc"
7474          ;;
7475      esac
7476      ;;
7477    *64-bit*)
7478      LINUX_64_MODE="64"
7479      case $host in
7480        x86_64-*linux*)
7481          LD="${LD-ld} -m elf_x86_64"
7482          ;;
7483        ppc*-*linux*|powerpc*-*linux*)
7484          LD="${LD-ld} -m elf64ppc"
7485          ;;
7486        s390*-*linux*)
7487          LD="${LD-ld} -m elf64_s390"
7488          ;;
7489        sparc*-*linux*)
7490          LD="${LD-ld} -m elf64_sparc"
7491          ;;
7492      esac
7493      ;;
7494    esac
7495  fi
7496  rm -rf conftest*
7497  ;;
7498
7499*-*-sco3.2v5*)
7500  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7501  SAVE_CFLAGS="$CFLAGS"
7502  CFLAGS="$CFLAGS -belf"
7503  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7504echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7505if test "${lt_cv_cc_needs_belf+set}" = set; then
7506  echo $ECHO_N "(cached) $ECHO_C" >&6
7507else
7508  ac_ext=c
7509ac_cpp='$CPP $CPPFLAGS'
7510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7512ac_compiler_gnu=$ac_cv_c_compiler_gnu
7513
7514     cat >conftest.$ac_ext <<_ACEOF
7515/* confdefs.h.  */
7516_ACEOF
7517cat confdefs.h >>conftest.$ac_ext
7518cat >>conftest.$ac_ext <<_ACEOF
7519/* end confdefs.h.  */
7520
7521int
7522main ()
7523{
7524
7525  ;
7526  return 0;
7527}
7528_ACEOF
7529rm -f conftest.$ac_objext conftest$ac_exeext
7530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7531  (eval $ac_link) 2>conftest.er1
7532  ac_status=$?
7533  grep -v '^ *+' conftest.er1 >conftest.err
7534  rm -f conftest.er1
7535  cat conftest.err >&5
7536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537  (exit $ac_status); } &&
7538	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540  (eval $ac_try) 2>&5
7541  ac_status=$?
7542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543  (exit $ac_status); }; } &&
7544	 { ac_try='test -s conftest$ac_exeext'
7545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546  (eval $ac_try) 2>&5
7547  ac_status=$?
7548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549  (exit $ac_status); }; }; then
7550  lt_cv_cc_needs_belf=yes
7551else
7552  echo "$as_me: failed program was:" >&5
7553sed 's/^/| /' conftest.$ac_ext >&5
7554
7555lt_cv_cc_needs_belf=no
7556fi
7557rm -f conftest.err conftest.$ac_objext \
7558      conftest$ac_exeext conftest.$ac_ext
7559     ac_ext=c
7560ac_cpp='$CPP $CPPFLAGS'
7561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7563ac_compiler_gnu=$ac_cv_c_compiler_gnu
7564
7565fi
7566echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7567echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7568  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7569    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7570    CFLAGS="$SAVE_CFLAGS"
7571  fi
7572  ;;
7573
7574esac
7575
7576need_locks="$enable_libtool_lock"
7577
7578
7579
7580echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7581echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7582if test "${ac_cv_header_stdc+set}" = set; then
7583  echo $ECHO_N "(cached) $ECHO_C" >&6
7584else
7585  cat >conftest.$ac_ext <<_ACEOF
7586/* confdefs.h.  */
7587_ACEOF
7588cat confdefs.h >>conftest.$ac_ext
7589cat >>conftest.$ac_ext <<_ACEOF
7590/* end confdefs.h.  */
7591#include <stdlib.h>
7592#include <stdarg.h>
7593#include <string.h>
7594#include <float.h>
7595
7596int
7597main ()
7598{
7599
7600  ;
7601  return 0;
7602}
7603_ACEOF
7604rm -f conftest.$ac_objext
7605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7606  (eval $ac_compile) 2>conftest.er1
7607  ac_status=$?
7608  grep -v '^ *+' conftest.er1 >conftest.err
7609  rm -f conftest.er1
7610  cat conftest.err >&5
7611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612  (exit $ac_status); } &&
7613	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615  (eval $ac_try) 2>&5
7616  ac_status=$?
7617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618  (exit $ac_status); }; } &&
7619	 { ac_try='test -s conftest.$ac_objext'
7620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621  (eval $ac_try) 2>&5
7622  ac_status=$?
7623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624  (exit $ac_status); }; }; then
7625  ac_cv_header_stdc=yes
7626else
7627  echo "$as_me: failed program was:" >&5
7628sed 's/^/| /' conftest.$ac_ext >&5
7629
7630ac_cv_header_stdc=no
7631fi
7632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7633
7634if test $ac_cv_header_stdc = yes; then
7635  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7636  cat >conftest.$ac_ext <<_ACEOF
7637/* confdefs.h.  */
7638_ACEOF
7639cat confdefs.h >>conftest.$ac_ext
7640cat >>conftest.$ac_ext <<_ACEOF
7641/* end confdefs.h.  */
7642#include <string.h>
7643
7644_ACEOF
7645if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7646  $EGREP "memchr" >/dev/null 2>&1; then
7647  :
7648else
7649  ac_cv_header_stdc=no
7650fi
7651rm -f conftest*
7652
7653fi
7654
7655if test $ac_cv_header_stdc = yes; then
7656  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7657  cat >conftest.$ac_ext <<_ACEOF
7658/* confdefs.h.  */
7659_ACEOF
7660cat confdefs.h >>conftest.$ac_ext
7661cat >>conftest.$ac_ext <<_ACEOF
7662/* end confdefs.h.  */
7663#include <stdlib.h>
7664
7665_ACEOF
7666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7667  $EGREP "free" >/dev/null 2>&1; then
7668  :
7669else
7670  ac_cv_header_stdc=no
7671fi
7672rm -f conftest*
7673
7674fi
7675
7676if test $ac_cv_header_stdc = yes; then
7677  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7678  if test "$cross_compiling" = yes; then
7679  :
7680else
7681  cat >conftest.$ac_ext <<_ACEOF
7682/* confdefs.h.  */
7683_ACEOF
7684cat confdefs.h >>conftest.$ac_ext
7685cat >>conftest.$ac_ext <<_ACEOF
7686/* end confdefs.h.  */
7687#include <ctype.h>
7688#if ((' ' & 0x0FF) == 0x020)
7689# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7690# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7691#else
7692# define ISLOWER(c) \
7693		   (('a' <= (c) && (c) <= 'i') \
7694		     || ('j' <= (c) && (c) <= 'r') \
7695		     || ('s' <= (c) && (c) <= 'z'))
7696# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7697#endif
7698
7699#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7700int
7701main ()
7702{
7703  int i;
7704  for (i = 0; i < 256; i++)
7705    if (XOR (islower (i), ISLOWER (i))
7706	|| toupper (i) != TOUPPER (i))
7707      exit(2);
7708  exit (0);
7709}
7710_ACEOF
7711rm -f conftest$ac_exeext
7712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7713  (eval $ac_link) 2>&5
7714  ac_status=$?
7715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718  (eval $ac_try) 2>&5
7719  ac_status=$?
7720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721  (exit $ac_status); }; }; then
7722  :
7723else
7724  echo "$as_me: program exited with status $ac_status" >&5
7725echo "$as_me: failed program was:" >&5
7726sed 's/^/| /' conftest.$ac_ext >&5
7727
7728( exit $ac_status )
7729ac_cv_header_stdc=no
7730fi
7731rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7732fi
7733fi
7734fi
7735echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7736echo "${ECHO_T}$ac_cv_header_stdc" >&6
7737if test $ac_cv_header_stdc = yes; then
7738
7739cat >>confdefs.h <<\_ACEOF
7740@%:@define STDC_HEADERS 1
7741_ACEOF
7742
7743fi
7744
7745# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7756		  inttypes.h stdint.h unistd.h
7757do
7758as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7759echo "$as_me:$LINENO: checking for $ac_header" >&5
7760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7761if eval "test \"\${$as_ac_Header+set}\" = set"; then
7762  echo $ECHO_N "(cached) $ECHO_C" >&6
7763else
7764  cat >conftest.$ac_ext <<_ACEOF
7765/* confdefs.h.  */
7766_ACEOF
7767cat confdefs.h >>conftest.$ac_ext
7768cat >>conftest.$ac_ext <<_ACEOF
7769/* end confdefs.h.  */
7770$ac_includes_default
7771
7772@%:@include <$ac_header>
7773_ACEOF
7774rm -f conftest.$ac_objext
7775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7776  (eval $ac_compile) 2>conftest.er1
7777  ac_status=$?
7778  grep -v '^ *+' conftest.er1 >conftest.err
7779  rm -f conftest.er1
7780  cat conftest.err >&5
7781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782  (exit $ac_status); } &&
7783	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785  (eval $ac_try) 2>&5
7786  ac_status=$?
7787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788  (exit $ac_status); }; } &&
7789	 { ac_try='test -s conftest.$ac_objext'
7790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791  (eval $ac_try) 2>&5
7792  ac_status=$?
7793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794  (exit $ac_status); }; }; then
7795  eval "$as_ac_Header=yes"
7796else
7797  echo "$as_me: failed program was:" >&5
7798sed 's/^/| /' conftest.$ac_ext >&5
7799
7800eval "$as_ac_Header=no"
7801fi
7802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7803fi
7804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7805echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7806if test `eval echo '${'$as_ac_Header'}'` = yes; then
7807  cat >>confdefs.h <<_ACEOF
7808@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7809_ACEOF
7810
7811fi
7812
7813done
7814
7815
7816
7817for ac_header in dlfcn.h
7818do
7819as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7820if eval "test \"\${$as_ac_Header+set}\" = set"; then
7821  echo "$as_me:$LINENO: checking for $ac_header" >&5
7822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7823if eval "test \"\${$as_ac_Header+set}\" = set"; then
7824  echo $ECHO_N "(cached) $ECHO_C" >&6
7825fi
7826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7827echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7828else
7829  # Is the header compilable?
7830echo "$as_me:$LINENO: checking $ac_header usability" >&5
7831echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7832cat >conftest.$ac_ext <<_ACEOF
7833/* confdefs.h.  */
7834_ACEOF
7835cat confdefs.h >>conftest.$ac_ext
7836cat >>conftest.$ac_ext <<_ACEOF
7837/* end confdefs.h.  */
7838$ac_includes_default
7839@%:@include <$ac_header>
7840_ACEOF
7841rm -f conftest.$ac_objext
7842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7843  (eval $ac_compile) 2>conftest.er1
7844  ac_status=$?
7845  grep -v '^ *+' conftest.er1 >conftest.err
7846  rm -f conftest.er1
7847  cat conftest.err >&5
7848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849  (exit $ac_status); } &&
7850	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852  (eval $ac_try) 2>&5
7853  ac_status=$?
7854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855  (exit $ac_status); }; } &&
7856	 { ac_try='test -s conftest.$ac_objext'
7857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858  (eval $ac_try) 2>&5
7859  ac_status=$?
7860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861  (exit $ac_status); }; }; then
7862  ac_header_compiler=yes
7863else
7864  echo "$as_me: failed program was:" >&5
7865sed 's/^/| /' conftest.$ac_ext >&5
7866
7867ac_header_compiler=no
7868fi
7869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7870echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7871echo "${ECHO_T}$ac_header_compiler" >&6
7872
7873# Is the header present?
7874echo "$as_me:$LINENO: checking $ac_header presence" >&5
7875echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7876cat >conftest.$ac_ext <<_ACEOF
7877/* confdefs.h.  */
7878_ACEOF
7879cat confdefs.h >>conftest.$ac_ext
7880cat >>conftest.$ac_ext <<_ACEOF
7881/* end confdefs.h.  */
7882@%:@include <$ac_header>
7883_ACEOF
7884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7885  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7886  ac_status=$?
7887  grep -v '^ *+' conftest.er1 >conftest.err
7888  rm -f conftest.er1
7889  cat conftest.err >&5
7890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891  (exit $ac_status); } >/dev/null; then
7892  if test -s conftest.err; then
7893    ac_cpp_err=$ac_c_preproc_warn_flag
7894    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7895  else
7896    ac_cpp_err=
7897  fi
7898else
7899  ac_cpp_err=yes
7900fi
7901if test -z "$ac_cpp_err"; then
7902  ac_header_preproc=yes
7903else
7904  echo "$as_me: failed program was:" >&5
7905sed 's/^/| /' conftest.$ac_ext >&5
7906
7907  ac_header_preproc=no
7908fi
7909rm -f conftest.err conftest.$ac_ext
7910echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7911echo "${ECHO_T}$ac_header_preproc" >&6
7912
7913# So?  What about this header?
7914case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7915  yes:no: )
7916    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7917echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7918    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7919echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7920    ac_header_preproc=yes
7921    ;;
7922  no:yes:* )
7923    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7924echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7925    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7926echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7927    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7928echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7929    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7930echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7931    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7932echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7933    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7934echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7935    (
7936      cat <<\_ASBOX
7937@%:@@%:@ ------------------------------------------ @%:@@%:@
7938@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
7939@%:@@%:@ ------------------------------------------ @%:@@%:@
7940_ASBOX
7941    ) |
7942      sed "s/^/$as_me: WARNING:     /" >&2
7943    ;;
7944esac
7945echo "$as_me:$LINENO: checking for $ac_header" >&5
7946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7947if eval "test \"\${$as_ac_Header+set}\" = set"; then
7948  echo $ECHO_N "(cached) $ECHO_C" >&6
7949else
7950  eval "$as_ac_Header=\$ac_header_preproc"
7951fi
7952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7954
7955fi
7956if test `eval echo '${'$as_ac_Header'}'` = yes; then
7957  cat >>confdefs.h <<_ACEOF
7958@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7959_ACEOF
7960
7961fi
7962
7963done
7964
7965ac_ext=f
7966ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7967ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7968ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7969if test -n "$ac_tool_prefix"; then
7970  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7971  do
7972    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7973set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7974echo "$as_me:$LINENO: checking for $ac_word" >&5
7975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7976if test "${ac_cv_prog_F77+set}" = set; then
7977  echo $ECHO_N "(cached) $ECHO_C" >&6
7978else
7979  if test -n "$F77"; then
7980  ac_cv_prog_F77="$F77" # Let the user override the test.
7981else
7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985  IFS=$as_save_IFS
7986  test -z "$as_dir" && as_dir=.
7987  for ac_exec_ext in '' $ac_executable_extensions; do
7988  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7989    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7990    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7991    break 2
7992  fi
7993done
7994done
7995
7996fi
7997fi
7998F77=$ac_cv_prog_F77
7999if test -n "$F77"; then
8000  echo "$as_me:$LINENO: result: $F77" >&5
8001echo "${ECHO_T}$F77" >&6
8002else
8003  echo "$as_me:$LINENO: result: no" >&5
8004echo "${ECHO_T}no" >&6
8005fi
8006
8007    test -n "$F77" && break
8008  done
8009fi
8010if test -z "$F77"; then
8011  ac_ct_F77=$F77
8012  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
8013do
8014  # Extract the first word of "$ac_prog", so it can be a program name with args.
8015set dummy $ac_prog; ac_word=$2
8016echo "$as_me:$LINENO: checking for $ac_word" >&5
8017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8018if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
8019  echo $ECHO_N "(cached) $ECHO_C" >&6
8020else
8021  if test -n "$ac_ct_F77"; then
8022  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8023else
8024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025for as_dir in $PATH
8026do
8027  IFS=$as_save_IFS
8028  test -z "$as_dir" && as_dir=.
8029  for ac_exec_ext in '' $ac_executable_extensions; do
8030  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031    ac_cv_prog_ac_ct_F77="$ac_prog"
8032    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8033    break 2
8034  fi
8035done
8036done
8037
8038fi
8039fi
8040ac_ct_F77=$ac_cv_prog_ac_ct_F77
8041if test -n "$ac_ct_F77"; then
8042  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8043echo "${ECHO_T}$ac_ct_F77" >&6
8044else
8045  echo "$as_me:$LINENO: result: no" >&5
8046echo "${ECHO_T}no" >&6
8047fi
8048
8049  test -n "$ac_ct_F77" && break
8050done
8051
8052  F77=$ac_ct_F77
8053fi
8054
8055
8056# Provide some information about the compiler.
8057echo "$as_me:__oline__:" \
8058     "checking for Fortran 77 compiler version" >&5
8059ac_compiler=`set X $ac_compile; echo $2`
8060{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8061  (eval $ac_compiler --version </dev/null >&5) 2>&5
8062  ac_status=$?
8063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064  (exit $ac_status); }
8065{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8066  (eval $ac_compiler -v </dev/null >&5) 2>&5
8067  ac_status=$?
8068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069  (exit $ac_status); }
8070{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8071  (eval $ac_compiler -V </dev/null >&5) 2>&5
8072  ac_status=$?
8073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074  (exit $ac_status); }
8075rm -f a.out
8076
8077# If we don't use `.F' as extension, the preprocessor is not run on the
8078# input file.  (Note that this only needs to work for GNU compilers.)
8079ac_save_ext=$ac_ext
8080ac_ext=F
8081echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8082echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
8083if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8084  echo $ECHO_N "(cached) $ECHO_C" >&6
8085else
8086  cat >conftest.$ac_ext <<_ACEOF
8087      program main
8088#ifndef __GNUC__
8089       choke me
8090#endif
8091
8092      end
8093_ACEOF
8094rm -f conftest.$ac_objext
8095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8096  (eval $ac_compile) 2>conftest.er1
8097  ac_status=$?
8098  grep -v '^ *+' conftest.er1 >conftest.err
8099  rm -f conftest.er1
8100  cat conftest.err >&5
8101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102  (exit $ac_status); } &&
8103	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
8104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105  (eval $ac_try) 2>&5
8106  ac_status=$?
8107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108  (exit $ac_status); }; } &&
8109	 { ac_try='test -s conftest.$ac_objext'
8110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111  (eval $ac_try) 2>&5
8112  ac_status=$?
8113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114  (exit $ac_status); }; }; then
8115  ac_compiler_gnu=yes
8116else
8117  echo "$as_me: failed program was:" >&5
8118sed 's/^/| /' conftest.$ac_ext >&5
8119
8120ac_compiler_gnu=no
8121fi
8122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8123ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8124
8125fi
8126echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8127echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
8128ac_ext=$ac_save_ext
8129ac_test_FFLAGS=${FFLAGS+set}
8130ac_save_FFLAGS=$FFLAGS
8131FFLAGS=
8132echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8133echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
8134if test "${ac_cv_prog_f77_g+set}" = set; then
8135  echo $ECHO_N "(cached) $ECHO_C" >&6
8136else
8137  FFLAGS=-g
8138cat >conftest.$ac_ext <<_ACEOF
8139      program main
8140
8141      end
8142_ACEOF
8143rm -f conftest.$ac_objext
8144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8145  (eval $ac_compile) 2>conftest.er1
8146  ac_status=$?
8147  grep -v '^ *+' conftest.er1 >conftest.err
8148  rm -f conftest.er1
8149  cat conftest.err >&5
8150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151  (exit $ac_status); } &&
8152	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
8153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154  (eval $ac_try) 2>&5
8155  ac_status=$?
8156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157  (exit $ac_status); }; } &&
8158	 { ac_try='test -s conftest.$ac_objext'
8159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8160  (eval $ac_try) 2>&5
8161  ac_status=$?
8162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163  (exit $ac_status); }; }; then
8164  ac_cv_prog_f77_g=yes
8165else
8166  echo "$as_me: failed program was:" >&5
8167sed 's/^/| /' conftest.$ac_ext >&5
8168
8169ac_cv_prog_f77_g=no
8170fi
8171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8172
8173fi
8174echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8175echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
8176if test "$ac_test_FFLAGS" = set; then
8177  FFLAGS=$ac_save_FFLAGS
8178elif test $ac_cv_prog_f77_g = yes; then
8179  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8180    FFLAGS="-g -O2"
8181  else
8182    FFLAGS="-g"
8183  fi
8184else
8185  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8186    FFLAGS="-O2"
8187  else
8188    FFLAGS=
8189  fi
8190fi
8191
8192G77=`test $ac_compiler_gnu = yes && echo yes`
8193ac_ext=c
8194ac_cpp='$CPP $CPPFLAGS'
8195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8197ac_compiler_gnu=$ac_cv_c_compiler_gnu
8198
8199
8200
8201# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8202
8203# find the maximum length of command line arguments
8204echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8205echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8206if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8207  echo $ECHO_N "(cached) $ECHO_C" >&6
8208else
8209    i=0
8210  testring="ABCD"
8211
8212  case $build_os in
8213  msdosdjgpp*)
8214    # On DJGPP, this test can blow up pretty badly due to problems in libc
8215    # (any single argument exceeding 2000 bytes causes a buffer overrun
8216    # during glob expansion).  Even if it were fixed, the result of this
8217    # check would be larger than it should be.
8218    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8219    ;;
8220
8221  gnu*)
8222    # Under GNU Hurd, this test is not required because there is
8223    # no limit to the length of command line arguments.
8224    # Libtool will interpret -1 as no limit whatsoever
8225    lt_cv_sys_max_cmd_len=-1;
8226    ;;
8227
8228  cygwin* | mingw*)
8229    # On Win9x/ME, this test blows up -- it succeeds, but takes
8230    # about 5 minutes as the teststring grows exponentially.
8231    # Worse, since 9x/ME are not pre-emptively multitasking,
8232    # you end up with a "frozen" computer, even though with patience
8233    # the test eventually succeeds (with a max line length of 256k).
8234    # Instead, let's just punt: use the minimum linelength reported by
8235    # all of the supported platforms: 8192 (on NT/2K/XP).
8236    lt_cv_sys_max_cmd_len=8192;
8237    ;;
8238
8239 *)
8240    # If test is not a shell built-in, we'll probably end up computing a
8241    # maximum length that is only half of the actual maximum length, but
8242    # we can't tell.
8243    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
8244	       = "XX$testring") >/dev/null 2>&1 &&
8245	    new_result=`expr "X$testring" : ".*" 2>&1` &&
8246	    lt_cv_sys_max_cmd_len=$new_result &&
8247	    test $i != 17 # 1/2 MB should be enough
8248    do
8249      i=`expr $i + 1`
8250      testring=$testring$testring
8251    done
8252    testring=
8253    # Add a significant safety factor because C++ compilers can tack on massive
8254    # amounts of additional arguments before passing them to the linker.
8255    # It appears as though 1/2 is a usable value.
8256    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8257    ;;
8258  esac
8259
8260fi
8261
8262if test -n $lt_cv_sys_max_cmd_len ; then
8263  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8264echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8265else
8266  echo "$as_me:$LINENO: result: none" >&5
8267echo "${ECHO_T}none" >&6
8268fi
8269
8270
8271
8272
8273# Check for command to grab the raw symbol name followed by C symbol from nm.
8274echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8275echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8276if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8277  echo $ECHO_N "(cached) $ECHO_C" >&6
8278else
8279
8280# These are sane defaults that work on at least a few old systems.
8281# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8282
8283# Character class describing NM global symbol codes.
8284symcode='[BCDEGRST]'
8285
8286# Regexp to match symbols that can be accessed directly from C.
8287sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8288
8289# Transform the above into a raw symbol and a C symbol.
8290symxfrm='\1 \2\3 \3'
8291
8292# Transform an extracted symbol line into a proper C declaration
8293lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8294
8295# Transform an extracted symbol line into symbol name and symbol address
8296lt_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'"
8297
8298# Define system-specific variables.
8299case $host_os in
8300aix*)
8301  symcode='[BCDT]'
8302  ;;
8303cygwin* | mingw* | pw32*)
8304  symcode='[ABCDGISTW]'
8305  ;;
8306hpux*) # Its linker distinguishes data from code symbols
8307  if test "$host_cpu" = ia64; then
8308    symcode='[ABCDEGRST]'
8309  fi
8310  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8311  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'"
8312  ;;
8313irix* | nonstopux*)
8314  symcode='[BCDEGRST]'
8315  ;;
8316osf*)
8317  symcode='[BCDEGQRST]'
8318  ;;
8319solaris* | sysv5*)
8320  symcode='[BDT]'
8321  ;;
8322sysv4)
8323  symcode='[DFNSTU]'
8324  ;;
8325esac
8326
8327# Handle CRLF in mingw tool chain
8328opt_cr=
8329case $build_os in
8330mingw*)
8331  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8332  ;;
8333esac
8334
8335# If we're using GNU nm, then use its standard symbol codes.
8336case `$NM -V 2>&1` in
8337*GNU* | *'with BFD'*)
8338  symcode='[ABCDGISTW]' ;;
8339esac
8340
8341# Try without a prefix undercore, then with it.
8342for ac_symprfx in "" "_"; do
8343
8344  # Write the raw and C identifiers.
8345  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
8346
8347  # Check to see that the pipe works correctly.
8348  pipe_works=no
8349
8350  rm -f conftest*
8351  cat > conftest.$ac_ext <<EOF
8352#ifdef __cplusplus
8353extern "C" {
8354#endif
8355char nm_test_var;
8356void nm_test_func(){}
8357#ifdef __cplusplus
8358}
8359#endif
8360int main(){nm_test_var='a';nm_test_func();return(0);}
8361EOF
8362
8363  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8364  (eval $ac_compile) 2>&5
8365  ac_status=$?
8366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367  (exit $ac_status); }; then
8368    # Now try to grab the symbols.
8369    nlist=conftest.nm
8370    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8371  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8372  ac_status=$?
8373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374  (exit $ac_status); } && test -s "$nlist"; then
8375      # Try sorting and uniquifying the output.
8376      if sort "$nlist" | uniq > "$nlist"T; then
8377	mv -f "$nlist"T "$nlist"
8378      else
8379	rm -f "$nlist"T
8380      fi
8381
8382      # Make sure that we snagged all the symbols we need.
8383      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8384	if grep ' nm_test_func$' "$nlist" >/dev/null; then
8385	  cat <<EOF > conftest.$ac_ext
8386#ifdef __cplusplus
8387extern "C" {
8388#endif
8389
8390EOF
8391	  # Now generate the symbol file.
8392	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8393
8394	  cat <<EOF >> conftest.$ac_ext
8395#if defined (__STDC__) && __STDC__
8396# define lt_ptr_t void *
8397#else
8398# define lt_ptr_t char *
8399# define const
8400#endif
8401
8402/* The mapping between symbol names and symbols. */
8403const struct {
8404  const char *name;
8405  lt_ptr_t address;
8406}
8407lt_preloaded_symbols[] =
8408{
8409EOF
8410	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8411	  cat <<\EOF >> conftest.$ac_ext
8412  {0, (lt_ptr_t) 0}
8413};
8414
8415#ifdef __cplusplus
8416}
8417#endif
8418EOF
8419	  # Now try linking the two files.
8420	  mv conftest.$ac_objext conftstm.$ac_objext
8421	  lt_save_LIBS="$LIBS"
8422	  lt_save_CFLAGS="$CFLAGS"
8423	  LIBS="conftstm.$ac_objext"
8424	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8425	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8426  (eval $ac_link) 2>&5
8427  ac_status=$?
8428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8430	    pipe_works=yes
8431	  fi
8432	  LIBS="$lt_save_LIBS"
8433	  CFLAGS="$lt_save_CFLAGS"
8434	else
8435	  echo "cannot find nm_test_func in $nlist" >&5
8436	fi
8437      else
8438	echo "cannot find nm_test_var in $nlist" >&5
8439      fi
8440    else
8441      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8442    fi
8443  else
8444    echo "$progname: failed program was:" >&5
8445    cat conftest.$ac_ext >&5
8446  fi
8447  rm -f conftest* conftst*
8448
8449  # Do not use the global_symbol_pipe unless it works.
8450  if test "$pipe_works" = yes; then
8451    break
8452  else
8453    lt_cv_sys_global_symbol_pipe=
8454  fi
8455done
8456
8457fi
8458
8459if test -z "$lt_cv_sys_global_symbol_pipe"; then
8460  lt_cv_sys_global_symbol_to_cdecl=
8461fi
8462if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8463  echo "$as_me:$LINENO: result: failed" >&5
8464echo "${ECHO_T}failed" >&6
8465else
8466  echo "$as_me:$LINENO: result: ok" >&5
8467echo "${ECHO_T}ok" >&6
8468fi
8469
8470echo "$as_me:$LINENO: checking for objdir" >&5
8471echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8472if test "${lt_cv_objdir+set}" = set; then
8473  echo $ECHO_N "(cached) $ECHO_C" >&6
8474else
8475  rm -f .libs 2>/dev/null
8476mkdir .libs 2>/dev/null
8477if test -d .libs; then
8478  lt_cv_objdir=.libs
8479else
8480  # MS-DOS does not allow filenames that begin with a dot.
8481  lt_cv_objdir=_libs
8482fi
8483rmdir .libs 2>/dev/null
8484fi
8485echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8486echo "${ECHO_T}$lt_cv_objdir" >&6
8487objdir=$lt_cv_objdir
8488
8489
8490
8491
8492
8493case $host_os in
8494aix3*)
8495  # AIX sometimes has problems with the GCC collect2 program.  For some
8496  # reason, if we set the COLLECT_NAMES environment variable, the problems
8497  # vanish in a puff of smoke.
8498  if test "X${COLLECT_NAMES+set}" != Xset; then
8499    COLLECT_NAMES=
8500    export COLLECT_NAMES
8501  fi
8502  ;;
8503esac
8504
8505# Sed substitution that helps us do robust quoting.  It backslashifies
8506# metacharacters that are still active within double-quoted strings.
8507Xsed='sed -e s/^X//'
8508sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8509
8510# Same as above, but do not quote variable references.
8511double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8512
8513# Sed substitution to delay expansion of an escaped shell variable in a
8514# double_quote_subst'ed string.
8515delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8516
8517# Sed substitution to avoid accidental globbing in evaled expressions
8518no_glob_subst='s/\*/\\\*/g'
8519
8520# Constants:
8521rm="rm -f"
8522
8523# Global variables:
8524default_ofile=libtool
8525can_build_shared=yes
8526
8527# All known linkers require a `.a' archive for static linking (except M$VC,
8528# which needs '.lib').
8529libext=a
8530ltmain="$ac_aux_dir/ltmain.sh"
8531ofile="$default_ofile"
8532with_gnu_ld="$lt_cv_prog_gnu_ld"
8533
8534if test -n "$ac_tool_prefix"; then
8535  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8536set dummy ${ac_tool_prefix}ar; ac_word=$2
8537echo "$as_me:$LINENO: checking for $ac_word" >&5
8538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8539if test "${ac_cv_prog_AR+set}" = set; then
8540  echo $ECHO_N "(cached) $ECHO_C" >&6
8541else
8542  if test -n "$AR"; then
8543  ac_cv_prog_AR="$AR" # Let the user override the test.
8544else
8545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546for as_dir in $PATH
8547do
8548  IFS=$as_save_IFS
8549  test -z "$as_dir" && as_dir=.
8550  for ac_exec_ext in '' $ac_executable_extensions; do
8551  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8552    ac_cv_prog_AR="${ac_tool_prefix}ar"
8553    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8554    break 2
8555  fi
8556done
8557done
8558
8559fi
8560fi
8561AR=$ac_cv_prog_AR
8562if test -n "$AR"; then
8563  echo "$as_me:$LINENO: result: $AR" >&5
8564echo "${ECHO_T}$AR" >&6
8565else
8566  echo "$as_me:$LINENO: result: no" >&5
8567echo "${ECHO_T}no" >&6
8568fi
8569
8570fi
8571if test -z "$ac_cv_prog_AR"; then
8572  ac_ct_AR=$AR
8573  # Extract the first word of "ar", so it can be a program name with args.
8574set dummy ar; ac_word=$2
8575echo "$as_me:$LINENO: checking for $ac_word" >&5
8576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8577if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8578  echo $ECHO_N "(cached) $ECHO_C" >&6
8579else
8580  if test -n "$ac_ct_AR"; then
8581  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8582else
8583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584for as_dir in $PATH
8585do
8586  IFS=$as_save_IFS
8587  test -z "$as_dir" && as_dir=.
8588  for ac_exec_ext in '' $ac_executable_extensions; do
8589  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8590    ac_cv_prog_ac_ct_AR="ar"
8591    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8592    break 2
8593  fi
8594done
8595done
8596
8597  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8598fi
8599fi
8600ac_ct_AR=$ac_cv_prog_ac_ct_AR
8601if test -n "$ac_ct_AR"; then
8602  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8603echo "${ECHO_T}$ac_ct_AR" >&6
8604else
8605  echo "$as_me:$LINENO: result: no" >&5
8606echo "${ECHO_T}no" >&6
8607fi
8608
8609  AR=$ac_ct_AR
8610else
8611  AR="$ac_cv_prog_AR"
8612fi
8613
8614if test -n "$ac_tool_prefix"; then
8615  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8616set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8617echo "$as_me:$LINENO: checking for $ac_word" >&5
8618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8619if test "${ac_cv_prog_RANLIB+set}" = set; then
8620  echo $ECHO_N "(cached) $ECHO_C" >&6
8621else
8622  if test -n "$RANLIB"; then
8623  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8624else
8625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626for as_dir in $PATH
8627do
8628  IFS=$as_save_IFS
8629  test -z "$as_dir" && as_dir=.
8630  for ac_exec_ext in '' $ac_executable_extensions; do
8631  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8632    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8633    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8634    break 2
8635  fi
8636done
8637done
8638
8639fi
8640fi
8641RANLIB=$ac_cv_prog_RANLIB
8642if test -n "$RANLIB"; then
8643  echo "$as_me:$LINENO: result: $RANLIB" >&5
8644echo "${ECHO_T}$RANLIB" >&6
8645else
8646  echo "$as_me:$LINENO: result: no" >&5
8647echo "${ECHO_T}no" >&6
8648fi
8649
8650fi
8651if test -z "$ac_cv_prog_RANLIB"; then
8652  ac_ct_RANLIB=$RANLIB
8653  # Extract the first word of "ranlib", so it can be a program name with args.
8654set dummy ranlib; ac_word=$2
8655echo "$as_me:$LINENO: checking for $ac_word" >&5
8656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8657if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8658  echo $ECHO_N "(cached) $ECHO_C" >&6
8659else
8660  if test -n "$ac_ct_RANLIB"; then
8661  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8662else
8663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664for as_dir in $PATH
8665do
8666  IFS=$as_save_IFS
8667  test -z "$as_dir" && as_dir=.
8668  for ac_exec_ext in '' $ac_executable_extensions; do
8669  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8670    ac_cv_prog_ac_ct_RANLIB="ranlib"
8671    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8672    break 2
8673  fi
8674done
8675done
8676
8677  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8678fi
8679fi
8680ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8681if test -n "$ac_ct_RANLIB"; then
8682  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8683echo "${ECHO_T}$ac_ct_RANLIB" >&6
8684else
8685  echo "$as_me:$LINENO: result: no" >&5
8686echo "${ECHO_T}no" >&6
8687fi
8688
8689  RANLIB=$ac_ct_RANLIB
8690else
8691  RANLIB="$ac_cv_prog_RANLIB"
8692fi
8693
8694if test -n "$ac_tool_prefix"; then
8695  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8696set dummy ${ac_tool_prefix}strip; ac_word=$2
8697echo "$as_me:$LINENO: checking for $ac_word" >&5
8698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8699if test "${ac_cv_prog_STRIP+set}" = set; then
8700  echo $ECHO_N "(cached) $ECHO_C" >&6
8701else
8702  if test -n "$STRIP"; then
8703  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8704else
8705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8706for as_dir in $PATH
8707do
8708  IFS=$as_save_IFS
8709  test -z "$as_dir" && as_dir=.
8710  for ac_exec_ext in '' $ac_executable_extensions; do
8711  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8712    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8713    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8714    break 2
8715  fi
8716done
8717done
8718
8719fi
8720fi
8721STRIP=$ac_cv_prog_STRIP
8722if test -n "$STRIP"; then
8723  echo "$as_me:$LINENO: result: $STRIP" >&5
8724echo "${ECHO_T}$STRIP" >&6
8725else
8726  echo "$as_me:$LINENO: result: no" >&5
8727echo "${ECHO_T}no" >&6
8728fi
8729
8730fi
8731if test -z "$ac_cv_prog_STRIP"; then
8732  ac_ct_STRIP=$STRIP
8733  # Extract the first word of "strip", so it can be a program name with args.
8734set dummy strip; ac_word=$2
8735echo "$as_me:$LINENO: checking for $ac_word" >&5
8736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8737if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8738  echo $ECHO_N "(cached) $ECHO_C" >&6
8739else
8740  if test -n "$ac_ct_STRIP"; then
8741  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8742else
8743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744for as_dir in $PATH
8745do
8746  IFS=$as_save_IFS
8747  test -z "$as_dir" && as_dir=.
8748  for ac_exec_ext in '' $ac_executable_extensions; do
8749  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8750    ac_cv_prog_ac_ct_STRIP="strip"
8751    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8752    break 2
8753  fi
8754done
8755done
8756
8757  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8758fi
8759fi
8760ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8761if test -n "$ac_ct_STRIP"; then
8762  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8763echo "${ECHO_T}$ac_ct_STRIP" >&6
8764else
8765  echo "$as_me:$LINENO: result: no" >&5
8766echo "${ECHO_T}no" >&6
8767fi
8768
8769  STRIP=$ac_ct_STRIP
8770else
8771  STRIP="$ac_cv_prog_STRIP"
8772fi
8773
8774
8775old_CC="$CC"
8776old_CFLAGS="$CFLAGS"
8777
8778# Set sane defaults for various variables
8779test -z "$AR" && AR=ar
8780test -z "$AR_FLAGS" && AR_FLAGS=cru
8781test -z "$AS" && AS=as
8782test -z "$CC" && CC=cc
8783test -z "$LTCC" && LTCC=$CC
8784test -z "$DLLTOOL" && DLLTOOL=dlltool
8785test -z "$LD" && LD=ld
8786test -z "$LN_S" && LN_S="ln -s"
8787test -z "$MAGIC_CMD" && MAGIC_CMD=file
8788test -z "$NM" && NM=nm
8789test -z "$SED" && SED=sed
8790test -z "$OBJDUMP" && OBJDUMP=objdump
8791test -z "$RANLIB" && RANLIB=:
8792test -z "$STRIP" && STRIP=:
8793test -z "$ac_objext" && ac_objext=o
8794
8795# Determine commands to create old-style static archives.
8796old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8797old_postinstall_cmds='chmod 644 $oldlib'
8798old_postuninstall_cmds=
8799
8800if test -n "$RANLIB"; then
8801  case $host_os in
8802  openbsd*)
8803    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8804    ;;
8805  *)
8806    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8807    ;;
8808  esac
8809  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8810fi
8811
8812# Only perform the check for file, if the check method requires it
8813case $deplibs_check_method in
8814file_magic*)
8815  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8816    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8817echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8818if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8819  echo $ECHO_N "(cached) $ECHO_C" >&6
8820else
8821  case $MAGIC_CMD in
8822[\\/*] |  ?:[\\/]*)
8823  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8824  ;;
8825*)
8826  lt_save_MAGIC_CMD="$MAGIC_CMD"
8827  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8828  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8829  for ac_dir in $ac_dummy; do
8830    IFS="$lt_save_ifs"
8831    test -z "$ac_dir" && ac_dir=.
8832    if test -f $ac_dir/${ac_tool_prefix}file; then
8833      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8834      if test -n "$file_magic_test_file"; then
8835	case $deplibs_check_method in
8836	"file_magic "*)
8837	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8838	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8839	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8840	    $EGREP "$file_magic_regex" > /dev/null; then
8841	    :
8842	  else
8843	    cat <<EOF 1>&2
8844
8845*** Warning: the command libtool uses to detect shared libraries,
8846*** $file_magic_cmd, produces output that libtool cannot recognize.
8847*** The result is that libtool may fail to recognize shared libraries
8848*** as such.  This will affect the creation of libtool libraries that
8849*** depend on shared libraries, but programs linked with such libtool
8850*** libraries will work regardless of this problem.  Nevertheless, you
8851*** may want to report the problem to your system manager and/or to
8852*** bug-libtool@gnu.org
8853
8854EOF
8855	  fi ;;
8856	esac
8857      fi
8858      break
8859    fi
8860  done
8861  IFS="$lt_save_ifs"
8862  MAGIC_CMD="$lt_save_MAGIC_CMD"
8863  ;;
8864esac
8865fi
8866
8867MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8868if test -n "$MAGIC_CMD"; then
8869  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8870echo "${ECHO_T}$MAGIC_CMD" >&6
8871else
8872  echo "$as_me:$LINENO: result: no" >&5
8873echo "${ECHO_T}no" >&6
8874fi
8875
8876if test -z "$lt_cv_path_MAGIC_CMD"; then
8877  if test -n "$ac_tool_prefix"; then
8878    echo "$as_me:$LINENO: checking for file" >&5
8879echo $ECHO_N "checking for file... $ECHO_C" >&6
8880if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8881  echo $ECHO_N "(cached) $ECHO_C" >&6
8882else
8883  case $MAGIC_CMD in
8884[\\/*] |  ?:[\\/]*)
8885  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8886  ;;
8887*)
8888  lt_save_MAGIC_CMD="$MAGIC_CMD"
8889  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8890  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8891  for ac_dir in $ac_dummy; do
8892    IFS="$lt_save_ifs"
8893    test -z "$ac_dir" && ac_dir=.
8894    if test -f $ac_dir/file; then
8895      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8896      if test -n "$file_magic_test_file"; then
8897	case $deplibs_check_method in
8898	"file_magic "*)
8899	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8900	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8901	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8902	    $EGREP "$file_magic_regex" > /dev/null; then
8903	    :
8904	  else
8905	    cat <<EOF 1>&2
8906
8907*** Warning: the command libtool uses to detect shared libraries,
8908*** $file_magic_cmd, produces output that libtool cannot recognize.
8909*** The result is that libtool may fail to recognize shared libraries
8910*** as such.  This will affect the creation of libtool libraries that
8911*** depend on shared libraries, but programs linked with such libtool
8912*** libraries will work regardless of this problem.  Nevertheless, you
8913*** may want to report the problem to your system manager and/or to
8914*** bug-libtool@gnu.org
8915
8916EOF
8917	  fi ;;
8918	esac
8919      fi
8920      break
8921    fi
8922  done
8923  IFS="$lt_save_ifs"
8924  MAGIC_CMD="$lt_save_MAGIC_CMD"
8925  ;;
8926esac
8927fi
8928
8929MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8930if test -n "$MAGIC_CMD"; then
8931  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8932echo "${ECHO_T}$MAGIC_CMD" >&6
8933else
8934  echo "$as_me:$LINENO: result: no" >&5
8935echo "${ECHO_T}no" >&6
8936fi
8937
8938  else
8939    MAGIC_CMD=:
8940  fi
8941fi
8942
8943  fi
8944  ;;
8945esac
8946
8947enable_dlopen=yes
8948enable_win32_dll=no
8949
8950# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8951if test "${enable_libtool_lock+set}" = set; then
8952  enableval="$enable_libtool_lock"
8953
8954fi;
8955test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8956
8957
8958# Check whether --with-pic or --without-pic was given.
8959if test "${with_pic+set}" = set; then
8960  withval="$with_pic"
8961  pic_mode="$withval"
8962else
8963  pic_mode=default
8964fi;
8965test -z "$pic_mode" && pic_mode=default
8966
8967# Use C for the default configuration in the libtool script
8968tagname=
8969lt_save_CC="$CC"
8970ac_ext=c
8971ac_cpp='$CPP $CPPFLAGS'
8972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8974ac_compiler_gnu=$ac_cv_c_compiler_gnu
8975
8976
8977# Source file extension for C test sources.
8978ac_ext=c
8979
8980# Object file extension for compiled C test sources.
8981objext=o
8982objext=$objext
8983
8984# Code to be used in simple compile tests
8985lt_simple_compile_test_code="int some_variable = 0;\n"
8986
8987# Code to be used in simple link tests
8988lt_simple_link_test_code='int main(){return(0);}\n'
8989
8990
8991# If no C compiler was specified, use CC.
8992LTCC=${LTCC-"$CC"}
8993
8994# Allow CC to be a program name with arguments.
8995compiler=$CC
8996
8997
8998#
8999# Check for any special shared library compilation flags.
9000#
9001lt_prog_cc_shlib=
9002if test "$GCC" = no; then
9003  case $host_os in
9004  sco3.2v5*)
9005    lt_prog_cc_shlib='-belf'
9006    ;;
9007  esac
9008fi
9009if test -n "$lt_prog_cc_shlib"; then
9010  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
9011echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
9012  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
9013  else
9014    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
9015echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
9016    lt_cv_prog_cc_can_build_shared=no
9017  fi
9018fi
9019
9020
9021#
9022# Check to make sure the static flag actually works.
9023#
9024echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
9025echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
9026if test "${lt_prog_compiler_static_works+set}" = set; then
9027  echo $ECHO_N "(cached) $ECHO_C" >&6
9028else
9029  lt_prog_compiler_static_works=no
9030   save_LDFLAGS="$LDFLAGS"
9031   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
9032   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9033   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9034     # The compiler can only warn and ignore the option if not recognized
9035     # So say no if there are warnings
9036     if test -s conftest.err; then
9037       # Append any errors to the config.log.
9038       cat conftest.err 1>&5
9039     else
9040       lt_prog_compiler_static_works=yes
9041     fi
9042   fi
9043   $rm conftest*
9044   LDFLAGS="$save_LDFLAGS"
9045
9046fi
9047echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9048echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9049
9050if test x"$lt_prog_compiler_static_works" = xyes; then
9051    :
9052else
9053    lt_prog_compiler_static=
9054fi
9055
9056
9057
9058## CAVEAT EMPTOR:
9059## There is no encapsulation within the following macros, do not change
9060## the running order or otherwise move them around unless you know exactly
9061## what you are doing...
9062
9063lt_prog_compiler_no_builtin_flag=
9064
9065if test "$GCC" = yes; then
9066  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9067
9068
9069echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9070echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9071if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9072  echo $ECHO_N "(cached) $ECHO_C" >&6
9073else
9074  lt_cv_prog_compiler_rtti_exceptions=no
9075  ac_outfile=conftest.$ac_objext
9076   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9077   lt_compiler_flag="-fno-rtti -fno-exceptions"
9078   # Insert the option either (1) after the last *FLAGS variable, or
9079   # (2) before a word containing "conftest.", or (3) at the end.
9080   # Note that $ac_compile itself does not contain backslashes and begins
9081   # with a dollar sign (not a hyphen), so the echo should work correctly.
9082   # The option is referenced via a variable to avoid confusing sed.
9083   lt_compile=`echo "$ac_compile" | $SED \
9084   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9085   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9086   -e 's:$: $lt_compiler_flag:'`
9087   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9088   (eval "$lt_compile" 2>conftest.err)
9089   ac_status=$?
9090   cat conftest.err >&5
9091   echo "$as_me:__oline__: \$? = $ac_status" >&5
9092   if (exit $ac_status) && test -s "$ac_outfile"; then
9093     # The compiler can only warn and ignore the option if not recognized
9094     # So say no if there are warnings
9095     if test ! -s conftest.err; then
9096       lt_cv_prog_compiler_rtti_exceptions=yes
9097     fi
9098   fi
9099   $rm conftest*
9100
9101fi
9102echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9103echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9104
9105if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9106    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9107else
9108    :
9109fi
9110
9111fi
9112
9113lt_prog_compiler_wl=
9114lt_prog_compiler_pic=
9115lt_prog_compiler_static=
9116
9117echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9118echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9119
9120  if test "$GCC" = yes; then
9121    lt_prog_compiler_wl='-Wl,'
9122    lt_prog_compiler_static='-static'
9123
9124    case $host_os in
9125      aix*)
9126      # All AIX code is PIC.
9127      if test "$host_cpu" = ia64; then
9128	# AIX 5 now supports IA64 processor
9129	lt_prog_compiler_static='-Bstatic'
9130      fi
9131      ;;
9132
9133    amigaos*)
9134      # FIXME: we need at least 68020 code to build shared libraries, but
9135      # adding the `-m68020' flag to GCC prevents building anything better,
9136      # like `-m68040'.
9137      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9138      ;;
9139
9140    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9141      # PIC is the default for these OSes.
9142      ;;
9143
9144    mingw* | pw32* | os2*)
9145      # This hack is so that the source file can tell whether it is being
9146      # built for inclusion in a dll (and should export symbols for example).
9147      lt_prog_compiler_pic='-DDLL_EXPORT'
9148      ;;
9149
9150    darwin* | rhapsody*)
9151      # PIC is the default on this platform
9152      # Common symbols not allowed in MH_DYLIB files
9153      lt_prog_compiler_pic='-fno-common'
9154      ;;
9155
9156    msdosdjgpp*)
9157      # Just because we use GCC doesn't mean we suddenly get shared libraries
9158      # on systems that don't support them.
9159      lt_prog_compiler_can_build_shared=no
9160      enable_shared=no
9161      ;;
9162
9163    sysv4*MP*)
9164      if test -d /usr/nec; then
9165	lt_prog_compiler_pic=-Kconform_pic
9166      fi
9167      ;;
9168
9169    hpux*)
9170      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9171      # not for PA HP-UX.
9172      case "$host_cpu" in
9173      hppa*64*|ia64*)
9174	# +Z the default
9175	;;
9176      *)
9177	lt_prog_compiler_pic='-fPIC'
9178	;;
9179      esac
9180      ;;
9181
9182    *)
9183      lt_prog_compiler_pic='-fPIC'
9184      ;;
9185    esac
9186  else
9187    # PORTME Check for flag to pass linker flags through the system compiler.
9188    case $host_os in
9189    aix*)
9190      lt_prog_compiler_wl='-Wl,'
9191      if test "$host_cpu" = ia64; then
9192	# AIX 5 now supports IA64 processor
9193	lt_prog_compiler_static='-Bstatic'
9194      else
9195	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9196      fi
9197      ;;
9198
9199    mingw* | pw32* | os2*)
9200      # This hack is so that the source file can tell whether it is being
9201      # built for inclusion in a dll (and should export symbols for example).
9202      lt_prog_compiler_pic='-DDLL_EXPORT'
9203      ;;
9204
9205    hpux9* | hpux10* | hpux11*)
9206      lt_prog_compiler_wl='-Wl,'
9207      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9208      # not for PA HP-UX.
9209      case "$host_cpu" in
9210      hppa*64*|ia64*)
9211	# +Z the default
9212	;;
9213      *)
9214	lt_prog_compiler_pic='+Z'
9215	;;
9216      esac
9217      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9218      lt_prog_compiler_static='${wl}-a ${wl}archive'
9219      ;;
9220
9221    irix5* | irix6* | nonstopux*)
9222      lt_prog_compiler_wl='-Wl,'
9223      # PIC (with -KPIC) is the default.
9224      lt_prog_compiler_static='-non_shared'
9225      ;;
9226
9227    newsos6)
9228      lt_prog_compiler_pic='-KPIC'
9229      lt_prog_compiler_static='-Bstatic'
9230      ;;
9231
9232    linux*)
9233      case $CC in
9234      icc* | ecc*)
9235	lt_prog_compiler_wl='-Wl,'
9236	lt_prog_compiler_pic='-KPIC'
9237	lt_prog_compiler_static='-static'
9238        ;;
9239      ccc*)
9240        lt_prog_compiler_wl='-Wl,'
9241        # All Alpha code is PIC.
9242        lt_prog_compiler_static='-non_shared'
9243        ;;
9244      esac
9245      ;;
9246
9247    osf3* | osf4* | osf5*)
9248      lt_prog_compiler_wl='-Wl,'
9249      # All OSF/1 code is PIC.
9250      lt_prog_compiler_static='-non_shared'
9251      ;;
9252
9253    sco3.2v5*)
9254      lt_prog_compiler_pic='-Kpic'
9255      lt_prog_compiler_static='-dn'
9256      ;;
9257
9258    solaris*)
9259      lt_prog_compiler_wl='-Wl,'
9260      lt_prog_compiler_pic='-KPIC'
9261      lt_prog_compiler_static='-Bstatic'
9262      ;;
9263
9264    sunos4*)
9265      lt_prog_compiler_wl='-Qoption ld '
9266      lt_prog_compiler_pic='-PIC'
9267      lt_prog_compiler_static='-Bstatic'
9268      ;;
9269
9270    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9271      lt_prog_compiler_wl='-Wl,'
9272      lt_prog_compiler_pic='-KPIC'
9273      lt_prog_compiler_static='-Bstatic'
9274      ;;
9275
9276    sysv4*MP*)
9277      if test -d /usr/nec ;then
9278	lt_prog_compiler_pic='-Kconform_pic'
9279	lt_prog_compiler_static='-Bstatic'
9280      fi
9281      ;;
9282
9283    uts4*)
9284      lt_prog_compiler_pic='-pic'
9285      lt_prog_compiler_static='-Bstatic'
9286      ;;
9287
9288    *)
9289      lt_prog_compiler_can_build_shared=no
9290      ;;
9291    esac
9292  fi
9293
9294echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9295echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9296
9297#
9298# Check to make sure the PIC flag actually works.
9299#
9300if test -n "$lt_prog_compiler_pic"; then
9301
9302echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9303echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9304if test "${lt_prog_compiler_pic_works+set}" = set; then
9305  echo $ECHO_N "(cached) $ECHO_C" >&6
9306else
9307  lt_prog_compiler_pic_works=no
9308  ac_outfile=conftest.$ac_objext
9309   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9310   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9311   # Insert the option either (1) after the last *FLAGS variable, or
9312   # (2) before a word containing "conftest.", or (3) at the end.
9313   # Note that $ac_compile itself does not contain backslashes and begins
9314   # with a dollar sign (not a hyphen), so the echo should work correctly.
9315   # The option is referenced via a variable to avoid confusing sed.
9316   lt_compile=`echo "$ac_compile" | $SED \
9317   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9318   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9319   -e 's:$: $lt_compiler_flag:'`
9320   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9321   (eval "$lt_compile" 2>conftest.err)
9322   ac_status=$?
9323   cat conftest.err >&5
9324   echo "$as_me:__oline__: \$? = $ac_status" >&5
9325   if (exit $ac_status) && test -s "$ac_outfile"; then
9326     # The compiler can only warn and ignore the option if not recognized
9327     # So say no if there are warnings
9328     if test ! -s conftest.err; then
9329       lt_prog_compiler_pic_works=yes
9330     fi
9331   fi
9332   $rm conftest*
9333
9334fi
9335echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9336echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9337
9338if test x"$lt_prog_compiler_pic_works" = xyes; then
9339    case $lt_prog_compiler_pic in
9340     "" | " "*) ;;
9341     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9342     esac
9343else
9344    lt_prog_compiler_pic=
9345     lt_prog_compiler_can_build_shared=no
9346fi
9347
9348fi
9349case "$host_os" in
9350  # For platforms which do not support PIC, -DPIC is meaningless:
9351  *djgpp*)
9352    lt_prog_compiler_pic=
9353    ;;
9354  *)
9355    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9356    ;;
9357esac
9358
9359echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9360echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9361if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9362  echo $ECHO_N "(cached) $ECHO_C" >&6
9363else
9364  lt_cv_prog_compiler_c_o=no
9365   $rm -r conftest 2>/dev/null
9366   mkdir conftest
9367   cd conftest
9368   mkdir out
9369   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9370
9371   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
9372   # that will create temporary files in the current directory regardless of
9373   # the output directory.  Thus, making CWD read-only will cause this test
9374   # to fail, enabling locking or at least warning the user not to do parallel
9375   # builds.
9376   chmod -w .
9377
9378   lt_compiler_flag="-o out/conftest2.$ac_objext"
9379   # Insert the option either (1) after the last *FLAGS variable, or
9380   # (2) before a word containing "conftest.", or (3) at the end.
9381   # Note that $ac_compile itself does not contain backslashes and begins
9382   # with a dollar sign (not a hyphen), so the echo should work correctly.
9383   lt_compile=`echo "$ac_compile" | $SED \
9384   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9385   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9386   -e 's:$: $lt_compiler_flag:'`
9387   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9388   (eval "$lt_compile" 2>out/conftest.err)
9389   ac_status=$?
9390   cat out/conftest.err >&5
9391   echo "$as_me:__oline__: \$? = $ac_status" >&5
9392   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9393   then
9394     # The compiler can only warn and ignore the option if not recognized
9395     # So say no if there are warnings
9396     if test ! -s out/conftest.err; then
9397       lt_cv_prog_compiler_c_o=yes
9398     fi
9399   fi
9400   chmod u+w .
9401   $rm conftest* out/*
9402   rmdir out
9403   cd ..
9404   rmdir conftest
9405   $rm conftest*
9406
9407fi
9408echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9409echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9410
9411
9412hard_links="nottested"
9413if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9414  # do not overwrite the value of need_locks provided by the user
9415  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9416echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9417  hard_links=yes
9418  $rm conftest*
9419  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9420  touch conftest.a
9421  ln conftest.a conftest.b 2>&5 || hard_links=no
9422  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9423  echo "$as_me:$LINENO: result: $hard_links" >&5
9424echo "${ECHO_T}$hard_links" >&6
9425  if test "$hard_links" = no; then
9426    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9427echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9428    need_locks=warn
9429  fi
9430else
9431  need_locks=no
9432fi
9433
9434echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9435echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9436
9437  runpath_var=
9438  allow_undefined_flag=
9439  enable_shared_with_static_runtimes=no
9440  archive_cmds=
9441  archive_expsym_cmds=
9442  old_archive_From_new_cmds=
9443  old_archive_from_expsyms_cmds=
9444  export_dynamic_flag_spec=
9445  whole_archive_flag_spec=
9446  thread_safe_flag_spec=
9447  hardcode_libdir_flag_spec=
9448  hardcode_libdir_flag_spec_ld=
9449  hardcode_libdir_separator=
9450  hardcode_direct=no
9451  hardcode_minus_L=no
9452  hardcode_shlibpath_var=unsupported
9453  link_all_deplibs=unknown
9454  hardcode_automatic=no
9455  module_cmds=
9456  module_expsym_cmds=
9457  always_export_symbols=no
9458  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9459  # include_expsyms should be a list of space-separated symbols to be *always*
9460  # included in the symbol list
9461  include_expsyms=
9462  # exclude_expsyms can be an extended regexp of symbols to exclude
9463  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9464  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9465  # as well as any symbol that contains `d'.
9466  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9467  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9468  # platforms (ab)use it in PIC code, but their linkers get confused if
9469  # the symbol is explicitly referenced.  Since portable code cannot
9470  # rely on this symbol name, it's probably fine to never include it in
9471  # preloaded symbol tables.
9472  extract_expsyms_cmds=
9473
9474  case $host_os in
9475  cygwin* | mingw* | pw32*)
9476    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9477    # When not using gcc, we currently assume that we are using
9478    # Microsoft Visual C++.
9479    if test "$GCC" != yes; then
9480      with_gnu_ld=no
9481    fi
9482    ;;
9483  openbsd*)
9484    with_gnu_ld=no
9485    ;;
9486  esac
9487
9488  ld_shlibs=yes
9489  if test "$with_gnu_ld" = yes; then
9490    # If archive_cmds runs LD, not CC, wlarc should be empty
9491    wlarc='${wl}'
9492
9493    # See if GNU ld supports shared libraries.
9494    case $host_os in
9495    aix3* | aix4* | aix5*)
9496      # On AIX/PPC, the GNU linker is very broken
9497      if test "$host_cpu" != ia64; then
9498	ld_shlibs=no
9499	cat <<EOF 1>&2
9500
9501*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9502*** to be unable to reliably create shared libraries on AIX.
9503*** Therefore, libtool is disabling shared libraries support.  If you
9504*** really care for shared libraries, you may want to modify your PATH
9505*** so that a non-GNU linker is found, and then restart.
9506
9507EOF
9508      fi
9509      ;;
9510
9511    amigaos*)
9512      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)'
9513      hardcode_libdir_flag_spec='-L$libdir'
9514      hardcode_minus_L=yes
9515
9516      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9517      # that the semantics of dynamic libraries on AmigaOS, at least up
9518      # to version 4, is to share data among multiple programs linked
9519      # with the same dynamic library.  Since this doesn't match the
9520      # behavior of shared libraries on other platforms, we can't use
9521      # them.
9522      ld_shlibs=no
9523      ;;
9524
9525    beos*)
9526      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9527	allow_undefined_flag=unsupported
9528	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9529	# support --undefined.  This deserves some investigation.  FIXME
9530	archive_cmds='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
9531      else
9532	ld_shlibs=no
9533      fi
9534      ;;
9535
9536    cygwin* | mingw* | pw32*)
9537      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9538      # as there is no search path for DLLs.
9539      hardcode_libdir_flag_spec='-L$libdir'
9540      allow_undefined_flag=no
9541      always_export_symbols=no
9542      enable_shared_with_static_runtimes=yes
9543      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9544
9545      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9546        archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9547	# If the export-symbols file already is a .def file (1st line
9548	# is EXPORTS), use it as is; otherwise, prepend...
9549	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9550	  cp $export_symbols $output_objdir/$soname.def;
9551	else
9552	  echo EXPORTS > $output_objdir/$soname.def;
9553	  cat $export_symbols >> $output_objdir/$soname.def;
9554	fi~
9555	$CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9556      else
9557	ld_shlibs=no
9558      fi
9559      ;;
9560
9561    netbsd*)
9562      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9563	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9564	wlarc=
9565      else
9566	archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
9567	archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9568      fi
9569      ;;
9570
9571    solaris* | sysv5*)
9572      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9573	ld_shlibs=no
9574	cat <<EOF 1>&2
9575
9576*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9577*** create shared libraries on Solaris systems.  Therefore, libtool
9578*** is disabling shared libraries support.  We urge you to upgrade GNU
9579*** binutils to release 2.9.1 or newer.  Another option is to modify
9580*** your PATH or compiler configuration so that the native linker is
9581*** used, and then restart.
9582
9583EOF
9584      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9585	archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
9586	archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9587      else
9588	ld_shlibs=no
9589      fi
9590      ;;
9591
9592    sunos4*)
9593      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9594      wlarc=
9595      hardcode_direct=yes
9596      hardcode_shlibpath_var=no
9597      ;;
9598
9599    *)
9600      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9601	archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
9602	archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9603      else
9604	ld_shlibs=no
9605      fi
9606      ;;
9607    esac
9608
9609    if test "$ld_shlibs" = yes; then
9610      runpath_var=LD_RUN_PATH
9611      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9612      export_dynamic_flag_spec='${wl}--export-dynamic'
9613      # ancient GNU ld didn't support --whole-archive et. al.
9614      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9615 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9616      else
9617  	whole_archive_flag_spec=
9618      fi
9619    fi
9620  else
9621    # PORTME fill in a description of your system's linker (not GNU ld)
9622    case $host_os in
9623    aix3*)
9624      allow_undefined_flag=unsupported
9625      always_export_symbols=yes
9626      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'
9627      # Note: this linker hardcodes the directories in LIBPATH if there
9628      # are no directories specified by -L.
9629      hardcode_minus_L=yes
9630      if test "$GCC" = yes && test -z "$link_static_flag"; then
9631	# Neither direct hardcoding nor static linking is supported with a
9632	# broken collect2.
9633	hardcode_direct=unsupported
9634      fi
9635      ;;
9636
9637    aix4* | aix5*)
9638      if test "$host_cpu" = ia64; then
9639	# On IA64, the linker does run time linking by default, so we don't
9640	# have to do anything special.
9641	aix_use_runtimelinking=no
9642	exp_sym_flag='-Bexport'
9643	no_entry_flag=""
9644      else
9645	# If we're using GNU nm, then we don't want the "-C" option.
9646	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9647	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9648	  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'
9649	else
9650	  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'
9651	fi
9652
9653	# KDE requires run time linking.  Make it the default.
9654	aix_use_runtimelinking=yes
9655	exp_sym_flag='-bexport'
9656	no_entry_flag='-bnoentry'
9657      fi
9658
9659      # When large executables or shared objects are built, AIX ld can
9660      # have problems creating the table of contents.  If linking a library
9661      # or program results in "error TOC overflow" add -mminimal-toc to
9662      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9663      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9664
9665      archive_cmds=''
9666      hardcode_direct=yes
9667      hardcode_libdir_separator=':'
9668      link_all_deplibs=yes
9669
9670      if test "$GCC" = yes; then
9671	case $host_os in aix4.012|aix4.012.*)
9672	# We only want to do this on AIX 4.2 and lower, the check
9673	# below for broken collect2 doesn't work under 4.3+
9674	  collect2name=`${CC} -print-prog-name=collect2`
9675	  if test -f "$collect2name" && \
9676  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9677	  then
9678  	  # We have reworked collect2
9679  	  hardcode_direct=yes
9680	  else
9681  	  # We have old collect2
9682  	  hardcode_direct=unsupported
9683  	  # It fails to find uninstalled libraries when the uninstalled
9684  	  # path is not listed in the libpath.  Setting hardcode_minus_L
9685  	  # to unsupported forces relinking
9686  	  hardcode_minus_L=yes
9687  	  hardcode_libdir_flag_spec='-L$libdir'
9688  	  hardcode_libdir_separator=
9689	  fi
9690	esac
9691	shared_flag='-shared'
9692      else
9693	# not using gcc
9694	if test "$host_cpu" = ia64; then
9695  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9696  	# chokes on -Wl,-G. The following line is correct:
9697	  shared_flag='-G'
9698	else
9699  	if test "$aix_use_runtimelinking" = yes; then
9700	    shared_flag='-qmkshrobj ${wl}-G'
9701	  else
9702	    shared_flag='-qmkshrobj'
9703  	fi
9704	fi
9705      fi
9706
9707      # Let the compiler handle the export list.
9708      always_export_symbols=no
9709      if test "$aix_use_runtimelinking" = yes; then
9710	# Warning - without using the other runtime loading flags (-brtl),
9711	# -berok will link without error, but may produce a broken library.
9712	allow_undefined_flag='-berok'
9713       # Determine the default libpath from the value encoded in an empty executable.
9714	cat >conftest.$ac_ext <<_ACEOF
9715/* confdefs.h.  */
9716_ACEOF
9717cat confdefs.h >>conftest.$ac_ext
9718cat >>conftest.$ac_ext <<_ACEOF
9719/* end confdefs.h.  */
9720
9721int
9722main ()
9723{
9724
9725  ;
9726  return 0;
9727}
9728_ACEOF
9729rm -f conftest.$ac_objext conftest$ac_exeext
9730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9731  (eval $ac_link) 2>conftest.er1
9732  ac_status=$?
9733  grep -v '^ *+' conftest.er1 >conftest.err
9734  rm -f conftest.er1
9735  cat conftest.err >&5
9736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737  (exit $ac_status); } &&
9738	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740  (eval $ac_try) 2>&5
9741  ac_status=$?
9742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743  (exit $ac_status); }; } &&
9744	 { ac_try='test -s conftest$ac_exeext'
9745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746  (eval $ac_try) 2>&5
9747  ac_status=$?
9748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749  (exit $ac_status); }; }; then
9750
9751aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9752}'`
9753# Check for a 64-bit object if we didn't find anything.
9754if 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; }
9755}'`; fi
9756else
9757  echo "$as_me: failed program was:" >&5
9758sed 's/^/| /' conftest.$ac_ext >&5
9759
9760fi
9761rm -f conftest.err conftest.$ac_objext \
9762      conftest$ac_exeext conftest.$ac_ext
9763if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9764
9765	hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9766	archive_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
9767	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9768       else
9769	if test "$host_cpu" = ia64; then
9770	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9771	  allow_undefined_flag="-z nodefs"
9772	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9773	else
9774	 # Determine the default libpath from the value encoded in an empty executable.
9775	 cat >conftest.$ac_ext <<_ACEOF
9776/* confdefs.h.  */
9777_ACEOF
9778cat confdefs.h >>conftest.$ac_ext
9779cat >>conftest.$ac_ext <<_ACEOF
9780/* end confdefs.h.  */
9781
9782int
9783main ()
9784{
9785
9786  ;
9787  return 0;
9788}
9789_ACEOF
9790rm -f conftest.$ac_objext conftest$ac_exeext
9791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9792  (eval $ac_link) 2>conftest.er1
9793  ac_status=$?
9794  grep -v '^ *+' conftest.er1 >conftest.err
9795  rm -f conftest.er1
9796  cat conftest.err >&5
9797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798  (exit $ac_status); } &&
9799	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801  (eval $ac_try) 2>&5
9802  ac_status=$?
9803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804  (exit $ac_status); }; } &&
9805	 { ac_try='test -s conftest$ac_exeext'
9806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807  (eval $ac_try) 2>&5
9808  ac_status=$?
9809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810  (exit $ac_status); }; }; then
9811
9812aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9813}'`
9814# Check for a 64-bit object if we didn't find anything.
9815if 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; }
9816}'`; fi
9817else
9818  echo "$as_me: failed program was:" >&5
9819sed 's/^/| /' conftest.$ac_ext >&5
9820
9821fi
9822rm -f conftest.err conftest.$ac_objext \
9823      conftest$ac_exeext conftest.$ac_ext
9824if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9825
9826	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9827	  # Warning - without using the other run time loading flags,
9828	  # -berok will link without error, but may produce a broken library.
9829	  no_undefined_flag=' ${wl}-bernotok'
9830	  allow_undefined_flag=' ${wl}-berok'
9831	  # -bexpall does not export symbols beginning with underscore (_)
9832	  always_export_symbols=yes
9833	  # Exported symbols can be pulled into shared objects from archives
9834	  whole_archive_flag_spec=' '
9835	  archive_cmds_need_lc=yes
9836	  # This is similar to how AIX traditionally builds it's shared libraries.
9837	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9838	fi
9839      fi
9840      ;;
9841
9842    amigaos*)
9843      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)'
9844      hardcode_libdir_flag_spec='-L$libdir'
9845      hardcode_minus_L=yes
9846      # see comment about different semantics on the GNU ld section
9847      ld_shlibs=no
9848      ;;
9849
9850    bsdi4*)
9851      export_dynamic_flag_spec=-rdynamic
9852      ;;
9853
9854    cygwin* | mingw* | pw32*)
9855      # When not using gcc, we currently assume that we are using
9856      # Microsoft Visual C++.
9857      # hardcode_libdir_flag_spec is actually meaningless, as there is
9858      # no search path for DLLs.
9859      hardcode_libdir_flag_spec=' '
9860      allow_undefined_flag=no
9861      # Tell ltmain to make .lib files, not .a files.
9862      libext=lib
9863      # Tell ltmain to make .dll files, not .so files.
9864      shrext=".dll"
9865      # FIXME: Setting linknames here is a bad hack.
9866      archive_cmds='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9867      # The linker will automatically build a .lib file if we build a DLL.
9868      old_archive_From_new_cmds='true'
9869      # FIXME: Should let the user specify the lib program.
9870      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9871      fix_srcfile_path='`cygpath -w "$srcfile"`'
9872      enable_shared_with_static_runtimes=yes
9873      ;;
9874
9875    darwin* | rhapsody*)
9876    if test "$GXX" = yes ; then
9877      archive_cmds_need_lc=no
9878      case "$host_os" in
9879      rhapsody* | darwin1.[012])
9880	allow_undefined_flag='-Wl,-undefined -Wl,suppress'
9881	;;
9882      *) # Darwin 1.3 on
9883	if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9884	  allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
9885	else
9886	  case ${MACOSX_DEPLOYMENT_TARGET} in
9887	    10.012)
9888	      allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
9889	      ;;
9890	    10.*)
9891	      allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
9892	      ;;
9893	  esac
9894	fi
9895	;;
9896      esac
9897    	lt_int_apple_cc_single_mod=no
9898    	output_verbose_link_cmd='echo'
9899    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9900    	  lt_int_apple_cc_single_mod=yes
9901    	fi
9902    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9903    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
9904    	else
9905        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
9906      fi
9907      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
9908      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9909        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9910          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9911        else
9912          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9913        fi
9914          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9915      hardcode_direct=no
9916      hardcode_automatic=yes
9917      hardcode_shlibpath_var=unsupported
9918      whole_archive_flag_spec='-all_load $convenience'
9919      link_all_deplibs=yes
9920    else
9921      ld_shlibs=no
9922    fi
9923      ;;
9924
9925    dgux*)
9926      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9927      hardcode_libdir_flag_spec='-L$libdir'
9928      hardcode_shlibpath_var=no
9929      ;;
9930
9931    freebsd1*)
9932      ld_shlibs=no
9933      ;;
9934
9935    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9936    # support.  Future versions do this automatically, but an explicit c++rt0.o
9937    # does not break anything, and helps significantly (at the cost of a little
9938    # extra space).
9939    freebsd2.2*)
9940      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9941      hardcode_libdir_flag_spec='-R$libdir'
9942      hardcode_direct=yes
9943      hardcode_shlibpath_var=no
9944      ;;
9945
9946    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9947    freebsd2*)
9948      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9949      hardcode_direct=yes
9950      hardcode_minus_L=yes
9951      hardcode_shlibpath_var=no
9952      ;;
9953
9954    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9955    freebsd* | kfreebsd*-gnu)
9956      archive_cmds='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
9957      hardcode_libdir_flag_spec='-R$libdir'
9958      hardcode_direct=yes
9959      hardcode_shlibpath_var=no
9960      ;;
9961
9962    hpux9*)
9963      if test "$GCC" = yes; then
9964	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9965      else
9966	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'
9967      fi
9968      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9969      hardcode_libdir_separator=:
9970      hardcode_direct=yes
9971
9972      # hardcode_minus_L: Not really in the search PATH,
9973      # but as the default location of the library.
9974      hardcode_minus_L=yes
9975      export_dynamic_flag_spec='${wl}-E'
9976      ;;
9977
9978    hpux10* | hpux11*)
9979      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9980	case "$host_cpu" in
9981	hppa*64*|ia64*)
9982	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
9983	  ;;
9984	*)
9985	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
9986	  ;;
9987	esac
9988      else
9989	case "$host_cpu" in
9990	hppa*64*|ia64*)
9991	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9992	  ;;
9993	*)
9994	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9995	  ;;
9996	esac
9997      fi
9998      if test "$with_gnu_ld" = no; then
9999	case "$host_cpu" in
10000	hppa*64*)
10001	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10002	  hardcode_libdir_flag_spec_ld='+b $libdir'
10003	  hardcode_libdir_separator=:
10004	  hardcode_direct=no
10005	  hardcode_shlibpath_var=no
10006	  ;;
10007	ia64*)
10008	  hardcode_libdir_flag_spec='-L$libdir'
10009	  hardcode_direct=no
10010	  hardcode_shlibpath_var=no
10011
10012	  # hardcode_minus_L: Not really in the search PATH,
10013	  # but as the default location of the library.
10014	  hardcode_minus_L=yes
10015	  ;;
10016	*)
10017	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10018	  hardcode_libdir_separator=:
10019	  hardcode_direct=yes
10020	  export_dynamic_flag_spec='${wl}-E'
10021
10022	  # hardcode_minus_L: Not really in the search PATH,
10023	  # but as the default location of the library.
10024	  hardcode_minus_L=yes
10025	  ;;
10026	esac
10027      fi
10028      ;;
10029
10030    irix5* | irix6* | nonstopux*)
10031      if test "$GCC" = yes; then
10032	archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10033      else
10034	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'
10035	hardcode_libdir_flag_spec_ld='-rpath $libdir'
10036      fi
10037      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10038      hardcode_libdir_separator=:
10039      link_all_deplibs=yes
10040      ;;
10041
10042    netbsd*)
10043      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10044	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10045      else
10046	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10047      fi
10048      hardcode_libdir_flag_spec='-R$libdir'
10049      hardcode_direct=yes
10050      hardcode_shlibpath_var=no
10051      ;;
10052
10053    newsos6)
10054      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055      hardcode_direct=yes
10056      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10057      hardcode_libdir_separator=:
10058      hardcode_shlibpath_var=no
10059      ;;
10060
10061    openbsd*)
10062      hardcode_direct=yes
10063      hardcode_shlibpath_var=no
10064      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10065	archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
10066	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10067	export_dynamic_flag_spec='${wl}-E'
10068      else
10069       case $host_os in
10070	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10071	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10072	   hardcode_libdir_flag_spec='-R$libdir'
10073	   ;;
10074	 *)
10075	   archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
10076	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10077	   ;;
10078       esac
10079      fi
10080      ;;
10081
10082    os2*)
10083      hardcode_libdir_flag_spec='-L$libdir'
10084      hardcode_minus_L=yes
10085      allow_undefined_flag=unsupported
10086      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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
10087      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10088      ;;
10089
10090    osf3*)
10091      if test "$GCC" = yes; then
10092	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10093	archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10094      else
10095	allow_undefined_flag=' -expect_unresolved \*'
10096	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'
10097      fi
10098      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10099      hardcode_libdir_separator=:
10100      ;;
10101
10102    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10103      if test "$GCC" = yes; then
10104	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10105	archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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'
10106	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10107      else
10108	allow_undefined_flag=' -expect_unresolved \*'
10109	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'
10110	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10111	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
10112
10113	# Both c and cxx compiler support -rpath directly
10114	hardcode_libdir_flag_spec='-rpath $libdir'
10115      fi
10116      hardcode_libdir_separator=:
10117      ;;
10118
10119    sco3.2v5*)
10120      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10121      hardcode_shlibpath_var=no
10122      export_dynamic_flag_spec='${wl}-Bexport'
10123      runpath_var=LD_RUN_PATH
10124      hardcode_runpath_var=yes
10125      ;;
10126
10127    solaris*)
10128      no_undefined_flag=' -z text'
10129      if test "$GCC" = yes; then
10130	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
10131	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10132	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
10133      else
10134	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10135	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10136  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10137      fi
10138      hardcode_libdir_flag_spec='-R$libdir'
10139      hardcode_shlibpath_var=no
10140      case $host_os in
10141      solaris2.[0-5] | solaris2.[0-5].*) ;;
10142      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
10143	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10144      esac
10145      link_all_deplibs=yes
10146      ;;
10147
10148    sunos4*)
10149      if test "x$host_vendor" = xsequent; then
10150	# Use $CC to link under sequent, because it throws in some extra .o
10151	# files that make .init and .fini sections work.
10152	archive_cmds='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
10153      else
10154	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10155      fi
10156      hardcode_libdir_flag_spec='-L$libdir'
10157      hardcode_direct=yes
10158      hardcode_minus_L=yes
10159      hardcode_shlibpath_var=no
10160      ;;
10161
10162    sysv4)
10163      case $host_vendor in
10164	sni)
10165	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10166	  hardcode_direct=yes # is this really true???
10167	;;
10168	siemens)
10169	  ## LD is ld it makes a PLAMLIB
10170	  ## CC just makes a GrossModule.
10171	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10172	  reload_cmds='$CC -r -o $output$reload_objs'
10173	  hardcode_direct=no
10174        ;;
10175	motorola)
10176	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10177	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10178	;;
10179      esac
10180      runpath_var='LD_RUN_PATH'
10181      hardcode_shlibpath_var=no
10182      ;;
10183
10184    sysv4.3*)
10185      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10186      hardcode_shlibpath_var=no
10187      export_dynamic_flag_spec='-Bexport'
10188      ;;
10189
10190    sysv4*MP*)
10191      if test -d /usr/nec; then
10192	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193	hardcode_shlibpath_var=no
10194	runpath_var=LD_RUN_PATH
10195	hardcode_runpath_var=yes
10196	ld_shlibs=yes
10197      fi
10198      ;;
10199
10200    sysv4.2uw2*)
10201      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10202      hardcode_direct=yes
10203      hardcode_minus_L=no
10204      hardcode_shlibpath_var=no
10205      hardcode_runpath_var=yes
10206      runpath_var=LD_RUN_PATH
10207      ;;
10208
10209   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
10210      no_undefined_flag='${wl}-z ${wl}text'
10211      if test "$GCC" = yes; then
10212	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
10213      else
10214	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
10215      fi
10216      runpath_var='LD_RUN_PATH'
10217      hardcode_shlibpath_var=no
10218      ;;
10219
10220    sysv5*)
10221      no_undefined_flag=' -z text'
10222      # $CC -shared without GNU ld will not create a library from C++
10223      # object files and a static libstdc++, better avoid it by now
10224      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10225      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10226  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10227      hardcode_libdir_flag_spec=
10228      hardcode_shlibpath_var=no
10229      runpath_var='LD_RUN_PATH'
10230      ;;
10231
10232    uts4*)
10233      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10234      hardcode_libdir_flag_spec='-L$libdir'
10235      hardcode_shlibpath_var=no
10236      ;;
10237
10238    *)
10239      ld_shlibs=no
10240      ;;
10241    esac
10242  fi
10243
10244echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10245echo "${ECHO_T}$ld_shlibs" >&6
10246test "$ld_shlibs" = no && can_build_shared=no
10247
10248variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10249if test "$GCC" = yes; then
10250  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10251fi
10252
10253#
10254# Do we need to explicitly link libc?
10255#
10256case "x$archive_cmds_need_lc" in
10257x|xyes)
10258  # Assume -lc should be added
10259  archive_cmds_need_lc=yes
10260
10261  if test "$enable_shared" = yes && test "$GCC" = yes; then
10262    case $archive_cmds in
10263    *'~'*)
10264      # FIXME: we may have to deal with multi-command sequences.
10265      ;;
10266    '$CC '*)
10267      # Test whether the compiler implicitly links with -lc since on some
10268      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10269      # to ld, don't add -lc before -lgcc.
10270      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10271echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10272      $rm conftest*
10273      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10274
10275      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276  (eval $ac_compile) 2>&5
10277  ac_status=$?
10278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279  (exit $ac_status); } 2>conftest.err; then
10280        soname=conftest
10281        lib=conftest
10282        libobjs=conftest.$ac_objext
10283        deplibs=
10284        wl=$lt_prog_compiler_wl
10285        compiler_flags=-v
10286        linker_flags=-v
10287        verstring=
10288        output_objdir=.
10289        libname=conftest
10290        lt_save_allow_undefined_flag=$allow_undefined_flag
10291        allow_undefined_flag=
10292        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10293  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10294  ac_status=$?
10295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296  (exit $ac_status); }
10297        then
10298	  archive_cmds_need_lc=no
10299        else
10300	  archive_cmds_need_lc=yes
10301        fi
10302        allow_undefined_flag=$lt_save_allow_undefined_flag
10303      else
10304        cat conftest.err 1>&5
10305      fi
10306      $rm conftest*
10307      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10308echo "${ECHO_T}$archive_cmds_need_lc" >&6
10309      ;;
10310    esac
10311  fi
10312  ;;
10313esac
10314
10315echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10316echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10317library_names_spec=
10318libname_spec='lib$name'
10319soname_spec=
10320shrext=".so"
10321postinstall_cmds=
10322postuninstall_cmds=
10323finish_cmds=
10324finish_eval=
10325shlibpath_var=
10326shlibpath_overrides_runpath=unknown
10327version_type=none
10328dynamic_linker="$host_os ld.so"
10329sys_lib_dlsearch_path_spec="/lib /usr/lib"
10330sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10331need_lib_prefix=unknown
10332hardcode_into_libs=no
10333
10334# when you set need_version to no, make sure it does not cause -set_version
10335# flags to be left without arguments
10336need_version=unknown
10337
10338case $host_os in
10339aix3*)
10340  version_type=linux
10341  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10342  shlibpath_var=LIBPATH
10343
10344  # AIX 3 has no versioning support, so we append a major version to the name.
10345  soname_spec='${libname}${release}${shared_ext}$major'
10346  ;;
10347
10348aix4* | aix5*)
10349  version_type=linux
10350  need_lib_prefix=no
10351  need_version=no
10352  hardcode_into_libs=yes
10353  if test "$host_cpu" = ia64; then
10354    # AIX 5 supports IA64
10355    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10356    shlibpath_var=LD_LIBRARY_PATH
10357  else
10358    # With GCC up to 2.95.x, collect2 would create an import file
10359    # for dependence libraries.  The import file would start with
10360    # the line `#! .'.  This would cause the generated library to
10361    # depend on `.', always an invalid library.  This was fixed in
10362    # development snapshots of GCC prior to 3.0.
10363    case $host_os in
10364      aix4 | aix4.[01] | aix4.[01].*)
10365      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10366	   echo ' yes '
10367	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10368	:
10369      else
10370	can_build_shared=no
10371      fi
10372      ;;
10373    esac
10374    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10375    # soname into executable. Probably we can add versioning support to
10376    # collect2, so additional links can be useful in future.
10377    if test "$aix_use_runtimelinking" = yes; then
10378      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10379      # instead of lib<name>.a to let people know that these are not
10380      # typical AIX shared libraries.
10381      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10382    else
10383      # We preserve .a as extension for shared libraries through AIX4.2
10384      # and later when we are not doing run time linking.
10385      library_names_spec='${libname}${release}.a $libname.a'
10386      soname_spec='${libname}${release}${shared_ext}$major'
10387    fi
10388    shlibpath_var=LIBPATH
10389  fi
10390  ;;
10391
10392amigaos*)
10393  library_names_spec='$libname.ixlibrary $libname.a'
10394  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10395  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'
10396  ;;
10397
10398beos*)
10399  library_names_spec='${libname}${shared_ext}'
10400  dynamic_linker="$host_os ld.so"
10401  shlibpath_var=LIBRARY_PATH
10402  ;;
10403
10404bsdi4*)
10405  version_type=linux
10406  need_version=no
10407  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10408  soname_spec='${libname}${release}${shared_ext}$major'
10409  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10410  shlibpath_var=LD_LIBRARY_PATH
10411  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10412  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10413  # the default ld.so.conf also contains /usr/contrib/lib and
10414  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10415  # libtool to hard-code these into programs
10416  ;;
10417
10418cygwin* | mingw* | pw32*)
10419  version_type=windows
10420  shrext=".dll"
10421  need_version=no
10422  need_lib_prefix=no
10423
10424  case $GCC,$host_os in
10425  yes,cygwin* | yes,mingw* | yes,pw32*)
10426    library_names_spec='$libname.dll.a'
10427    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10428    postinstall_cmds='base_file=`basename \${file}`~
10429      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10430      dldir=$destdir/`dirname \$dlpath`~
10431      test -d \$dldir || mkdir -p \$dldir~
10432      $install_prog $dir/$dlname \$dldir/$dlname'
10433    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10434      dlpath=$dir/\$dldll~
10435       $rm \$dlpath'
10436    shlibpath_overrides_runpath=yes
10437
10438    case $host_os in
10439    cygwin*)
10440      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10441      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10442      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10443      ;;
10444    mingw*)
10445      # MinGW DLLs use traditional 'lib' prefix
10446      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10447      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10448      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10449        # It is most probably a Windows format PATH printed by
10450        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10451        # path with ; separators, and with drive letters. We can handle the
10452        # drive letters (cygwin fileutils understands them), so leave them,
10453        # especially as we might pass files found there to a mingw objdump,
10454        # which wouldn't understand a cygwinified path. Ahh.
10455        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10456      else
10457        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10458      fi
10459      ;;
10460    pw32*)
10461      # pw32 DLLs use 'pw' prefix rather than 'lib'
10462      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10463      ;;
10464    esac
10465    ;;
10466
10467  *)
10468    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10469    ;;
10470  esac
10471  dynamic_linker='Win32 ld.exe'
10472  # FIXME: first we should search . and the directory the executable is in
10473  shlibpath_var=PATH
10474  ;;
10475
10476darwin* | rhapsody*)
10477  dynamic_linker="$host_os dyld"
10478  version_type=darwin
10479  need_lib_prefix=no
10480  need_version=no
10481  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10482  soname_spec='${libname}${release}${major}$shared_ext'
10483  shlibpath_overrides_runpath=yes
10484  shlibpath_var=DYLD_LIBRARY_PATH
10485  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10486  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10487  if test "$GCC" = yes; then
10488    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"`
10489  else
10490    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10491  fi
10492  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10493  ;;
10494
10495dgux*)
10496  version_type=linux
10497  need_lib_prefix=no
10498  need_version=no
10499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10500  soname_spec='${libname}${release}${shared_ext}$major'
10501  shlibpath_var=LD_LIBRARY_PATH
10502  ;;
10503
10504freebsd1*)
10505  dynamic_linker=no
10506  ;;
10507
10508kfreebsd*-gnu*)
10509  version_type=linux
10510  need_lib_prefix=no
10511  need_version=no
10512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10513  soname_spec='${libname}${release}${shared_ext}$major'
10514  shlibpath_var=LD_LIBRARY_PATH
10515  shlibpath_overrides_runpath=no
10516  hardcode_into_libs=yes
10517  dynamic_linker='GNU ld.so'
10518  ;;
10519
10520freebsd*)
10521  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10522  version_type=freebsd-$objformat
10523  case $version_type in
10524    freebsd-elf*)
10525      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10526      need_version=no
10527      need_lib_prefix=no
10528      ;;
10529    freebsd-*)
10530      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10531      need_version=yes
10532      ;;
10533  esac
10534  shlibpath_var=LD_LIBRARY_PATH
10535  case $host_os in
10536  freebsd2*)
10537    shlibpath_overrides_runpath=yes
10538    ;;
10539  freebsd3.01* | freebsdelf3.01*)
10540    shlibpath_overrides_runpath=yes
10541    hardcode_into_libs=yes
10542    ;;
10543  *) # from 3.2 on
10544    shlibpath_overrides_runpath=no
10545    hardcode_into_libs=yes
10546    ;;
10547  esac
10548  ;;
10549
10550gnu*)
10551  version_type=linux
10552  need_lib_prefix=no
10553  need_version=no
10554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10555  soname_spec='${libname}${release}${shared_ext}$major'
10556  shlibpath_var=LD_LIBRARY_PATH
10557  hardcode_into_libs=yes
10558  ;;
10559
10560hpux9* | hpux10* | hpux11*)
10561  # Give a soname corresponding to the major version so that dld.sl refuses to
10562  # link against other versions.
10563  version_type=sunos
10564  need_lib_prefix=no
10565  need_version=no
10566  case "$host_cpu" in
10567  ia64*)
10568    shrext='.so'
10569    hardcode_into_libs=yes
10570    dynamic_linker="$host_os dld.so"
10571    shlibpath_var=LD_LIBRARY_PATH
10572    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10573    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574    soname_spec='${libname}${release}${shared_ext}$major'
10575    if test "X$HPUX_IA64_MODE" = X32; then
10576      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10577    else
10578      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10579    fi
10580    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10581    ;;
10582   hppa*64*)
10583     shrext='.sl'
10584     hardcode_into_libs=yes
10585     dynamic_linker="$host_os dld.sl"
10586     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10587     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10588     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10589     soname_spec='${libname}${release}${shared_ext}$major'
10590     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10591     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10592     ;;
10593   *)
10594    shrext='.sl'
10595    dynamic_linker="$host_os dld.sl"
10596    shlibpath_var=SHLIB_PATH
10597    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10598    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599    soname_spec='${libname}${release}${shared_ext}$major'
10600    ;;
10601  esac
10602  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10603  postinstall_cmds='chmod 555 $lib'
10604  ;;
10605
10606irix5* | irix6* | nonstopux*)
10607  case $host_os in
10608    nonstopux*) version_type=nonstopux ;;
10609    *)
10610	if test "$lt_cv_prog_gnu_ld" = yes; then
10611		version_type=linux
10612	else
10613		version_type=irix
10614	fi ;;
10615  esac
10616  need_lib_prefix=no
10617  need_version=no
10618  soname_spec='${libname}${release}${shared_ext}$major'
10619  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10620  case $host_os in
10621  irix5* | nonstopux*)
10622    libsuff= shlibsuff=
10623    ;;
10624  *)
10625    case $LD in # libtool.m4 will add one of these switches to LD
10626    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10627      libsuff= shlibsuff= libmagic=32-bit;;
10628    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10629      libsuff=32 shlibsuff=N32 libmagic=N32;;
10630    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10631      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10632    *) libsuff= shlibsuff= libmagic=never-match;;
10633    esac
10634    ;;
10635  esac
10636  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10637  shlibpath_overrides_runpath=no
10638  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10639  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10640  hardcode_into_libs=yes
10641  ;;
10642
10643# No shared lib support for Linux oldld, aout, or coff.
10644linux*oldld* | linux*aout* | linux*coff*)
10645  dynamic_linker=no
10646  ;;
10647
10648# This must be Linux ELF.
10649linux*)
10650  version_type=linux
10651  need_lib_prefix=no
10652  need_version=no
10653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654  soname_spec='${libname}${release}${shared_ext}$major'
10655  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10656  libsuff=
10657  if test "x$LINUX_64_MODE" = x64; then
10658    # Some platforms are per default 64-bit, so there's no /lib64
10659    if test -d /lib64; then
10660      libsuff=64
10661    fi
10662  fi
10663  shlibpath_var=LD_LIBRARY_PATH
10664  shlibpath_overrides_runpath=no
10665  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10666  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
10667  # This implies no fast_install, which is unacceptable.
10668  # Some rework will be needed to allow for fast_install
10669  # before this can be enabled.
10670  hardcode_into_libs=yes
10671
10672  # We used to test for /lib/ld.so.1 and disable shared libraries on
10673  # powerpc, because MkLinux only supported shared libraries with the
10674  # GNU dynamic linker.  Since this was broken with cross compilers,
10675  # most powerpc-linux boxes support dynamic linking these days and
10676  # people can always --disable-shared, the test was removed, and we
10677  # assume the GNU/Linux dynamic linker is in use.
10678  dynamic_linker='GNU/Linux ld.so'
10679  ;;
10680
10681netbsd*)
10682  version_type=sunos
10683  need_lib_prefix=no
10684  need_version=no
10685  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10686    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10687    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10688    dynamic_linker='NetBSD (a.out) ld.so'
10689  else
10690    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10691    soname_spec='${libname}${release}${shared_ext}$major'
10692    dynamic_linker='NetBSD ld.elf_so'
10693  fi
10694  shlibpath_var=LD_LIBRARY_PATH
10695  shlibpath_overrides_runpath=yes
10696  hardcode_into_libs=yes
10697  ;;
10698
10699newsos6)
10700  version_type=linux
10701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10702  shlibpath_var=LD_LIBRARY_PATH
10703  shlibpath_overrides_runpath=yes
10704  ;;
10705
10706nto-qnx*)
10707  version_type=linux
10708  need_lib_prefix=no
10709  need_version=no
10710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10711  soname_spec='${libname}${release}${shared_ext}$major'
10712  shlibpath_var=LD_LIBRARY_PATH
10713  shlibpath_overrides_runpath=yes
10714  ;;
10715
10716openbsd*)
10717  version_type=sunos
10718  need_lib_prefix=no
10719  need_version=no
10720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10721  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10722  shlibpath_var=LD_LIBRARY_PATH
10723  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10724    case $host_os in
10725      openbsd2.[89] | openbsd2.[89].*)
10726	shlibpath_overrides_runpath=no
10727	;;
10728      *)
10729	shlibpath_overrides_runpath=yes
10730	;;
10731      esac
10732  else
10733    shlibpath_overrides_runpath=yes
10734  fi
10735  ;;
10736
10737os2*)
10738  libname_spec='$name'
10739  shrext=".dll"
10740  need_lib_prefix=no
10741  library_names_spec='$libname${shared_ext} $libname.a'
10742  dynamic_linker='OS/2 ld.exe'
10743  shlibpath_var=LIBPATH
10744  ;;
10745
10746osf3* | osf4* | osf5*)
10747  version_type=osf
10748  need_lib_prefix=no
10749  need_version=no
10750  soname_spec='${libname}${release}${shared_ext}$major'
10751  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10752  shlibpath_var=LD_LIBRARY_PATH
10753  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10754  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10755  ;;
10756
10757sco3.2v5*)
10758  version_type=osf
10759  soname_spec='${libname}${release}${shared_ext}$major'
10760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10761  shlibpath_var=LD_LIBRARY_PATH
10762  ;;
10763
10764solaris*)
10765  version_type=linux
10766  need_lib_prefix=no
10767  need_version=no
10768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10769  soname_spec='${libname}${release}${shared_ext}$major'
10770  shlibpath_var=LD_LIBRARY_PATH
10771  shlibpath_overrides_runpath=yes
10772  hardcode_into_libs=yes
10773  # ldd complains unless libraries are executable
10774  postinstall_cmds='chmod +x $lib'
10775  ;;
10776
10777sunos4*)
10778  version_type=sunos
10779  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10780  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10781  shlibpath_var=LD_LIBRARY_PATH
10782  shlibpath_overrides_runpath=yes
10783  if test "$with_gnu_ld" = yes; then
10784    need_lib_prefix=no
10785  fi
10786  need_version=yes
10787  ;;
10788
10789sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10790  version_type=linux
10791  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10792  soname_spec='${libname}${release}${shared_ext}$major'
10793  shlibpath_var=LD_LIBRARY_PATH
10794  case $host_vendor in
10795    sni)
10796      shlibpath_overrides_runpath=no
10797      need_lib_prefix=no
10798      export_dynamic_flag_spec='${wl}-Blargedynsym'
10799      runpath_var=LD_RUN_PATH
10800      ;;
10801    siemens)
10802      need_lib_prefix=no
10803      ;;
10804    motorola)
10805      need_lib_prefix=no
10806      need_version=no
10807      shlibpath_overrides_runpath=no
10808      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10809      ;;
10810  esac
10811  ;;
10812
10813sysv4*MP*)
10814  if test -d /usr/nec ;then
10815    version_type=linux
10816    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10817    soname_spec='$libname${shared_ext}.$major'
10818    shlibpath_var=LD_LIBRARY_PATH
10819  fi
10820  ;;
10821
10822uts4*)
10823  version_type=linux
10824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825  soname_spec='${libname}${release}${shared_ext}$major'
10826  shlibpath_var=LD_LIBRARY_PATH
10827  ;;
10828
10829*)
10830  dynamic_linker=no
10831  ;;
10832esac
10833echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10834echo "${ECHO_T}$dynamic_linker" >&6
10835test "$dynamic_linker" = no && can_build_shared=no
10836
10837echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10838echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10839hardcode_action=
10840if test -n "$hardcode_libdir_flag_spec" || \
10841   test -n "$runpath_var " || \
10842   test "X$hardcode_automatic"="Xyes" ; then
10843
10844  # We can hardcode non-existant directories.
10845  if test "$hardcode_direct" != no &&
10846     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10847     # have to relink, otherwise we might link with an installed library
10848     # when we should be linking with a yet-to-be-installed one
10849     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10850     test "$hardcode_minus_L" != no; then
10851    # Linking always hardcodes the temporary library directory.
10852    hardcode_action=relink
10853  else
10854    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10855    hardcode_action=immediate
10856  fi
10857else
10858  # We cannot hardcode anything, or else we can only hardcode existing
10859  # directories.
10860  hardcode_action=unsupported
10861fi
10862echo "$as_me:$LINENO: result: $hardcode_action" >&5
10863echo "${ECHO_T}$hardcode_action" >&6
10864
10865if test "$hardcode_action" = relink; then
10866  # Fast installation is not supported
10867  enable_fast_install=no
10868elif test "$shlibpath_overrides_runpath" = yes ||
10869     test "$enable_shared" = no; then
10870  # Fast installation is not necessary
10871  enable_fast_install=needless
10872fi
10873
10874striplib=
10875old_striplib=
10876echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10877echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10878if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10879  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10880  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10881  echo "$as_me:$LINENO: result: yes" >&5
10882echo "${ECHO_T}yes" >&6
10883else
10884# FIXME - insert some real tests, host_os isn't really good enough
10885  case $host_os in
10886   darwin*)
10887       if test -n "$STRIP" ; then
10888         striplib="$STRIP -x"
10889         echo "$as_me:$LINENO: result: yes" >&5
10890echo "${ECHO_T}yes" >&6
10891       else
10892  echo "$as_me:$LINENO: result: no" >&5
10893echo "${ECHO_T}no" >&6
10894fi
10895       ;;
10896   *)
10897  echo "$as_me:$LINENO: result: no" >&5
10898echo "${ECHO_T}no" >&6
10899    ;;
10900  esac
10901fi
10902
10903if test "x$enable_dlopen" != xyes; then
10904  enable_dlopen=unknown
10905  enable_dlopen_self=unknown
10906  enable_dlopen_self_static=unknown
10907else
10908  lt_cv_dlopen=no
10909  lt_cv_dlopen_libs=
10910
10911  case $host_os in
10912  beos*)
10913    lt_cv_dlopen="load_add_on"
10914    lt_cv_dlopen_libs=
10915    lt_cv_dlopen_self=yes
10916    ;;
10917
10918  mingw* | pw32*)
10919    lt_cv_dlopen="LoadLibrary"
10920    lt_cv_dlopen_libs=
10921   ;;
10922
10923  cygwin*)
10924    lt_cv_dlopen="dlopen"
10925    lt_cv_dlopen_libs=
10926   ;;
10927
10928  darwin*)
10929  # if libdl is installed we need to link against it
10930    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10931echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10932if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10933  echo $ECHO_N "(cached) $ECHO_C" >&6
10934else
10935  ac_check_lib_save_LIBS=$LIBS
10936LIBS="-ldl  $LIBS"
10937cat >conftest.$ac_ext <<_ACEOF
10938/* confdefs.h.  */
10939_ACEOF
10940cat confdefs.h >>conftest.$ac_ext
10941cat >>conftest.$ac_ext <<_ACEOF
10942/* end confdefs.h.  */
10943
10944/* Override any gcc2 internal prototype to avoid an error.  */
10945#ifdef __cplusplus
10946extern "C"
10947#endif
10948/* We use char because int might match the return type of a gcc2
10949   builtin and then its argument prototype would still apply.  */
10950char dlopen ();
10951int
10952main ()
10953{
10954dlopen ();
10955  ;
10956  return 0;
10957}
10958_ACEOF
10959rm -f conftest.$ac_objext conftest$ac_exeext
10960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10961  (eval $ac_link) 2>conftest.er1
10962  ac_status=$?
10963  grep -v '^ *+' conftest.er1 >conftest.err
10964  rm -f conftest.er1
10965  cat conftest.err >&5
10966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967  (exit $ac_status); } &&
10968	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970  (eval $ac_try) 2>&5
10971  ac_status=$?
10972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973  (exit $ac_status); }; } &&
10974	 { ac_try='test -s conftest$ac_exeext'
10975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976  (eval $ac_try) 2>&5
10977  ac_status=$?
10978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979  (exit $ac_status); }; }; then
10980  ac_cv_lib_dl_dlopen=yes
10981else
10982  echo "$as_me: failed program was:" >&5
10983sed 's/^/| /' conftest.$ac_ext >&5
10984
10985ac_cv_lib_dl_dlopen=no
10986fi
10987rm -f conftest.err conftest.$ac_objext \
10988      conftest$ac_exeext conftest.$ac_ext
10989LIBS=$ac_check_lib_save_LIBS
10990fi
10991echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10992echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10993if test $ac_cv_lib_dl_dlopen = yes; then
10994  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10995else
10996
10997    lt_cv_dlopen="dyld"
10998    lt_cv_dlopen_libs=
10999    lt_cv_dlopen_self=yes
11000
11001fi
11002
11003   ;;
11004
11005  *)
11006    echo "$as_me:$LINENO: checking for shl_load" >&5
11007echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11008if test "${ac_cv_func_shl_load+set}" = set; then
11009  echo $ECHO_N "(cached) $ECHO_C" >&6
11010else
11011  cat >conftest.$ac_ext <<_ACEOF
11012/* confdefs.h.  */
11013_ACEOF
11014cat confdefs.h >>conftest.$ac_ext
11015cat >>conftest.$ac_ext <<_ACEOF
11016/* end confdefs.h.  */
11017/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11018   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11019#define shl_load innocuous_shl_load
11020
11021/* System header to define __stub macros and hopefully few prototypes,
11022    which can conflict with char shl_load (); below.
11023    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11024    <limits.h> exists even on freestanding compilers.  */
11025
11026#ifdef __STDC__
11027# include <limits.h>
11028#else
11029# include <assert.h>
11030#endif
11031
11032#undef shl_load
11033
11034/* Override any gcc2 internal prototype to avoid an error.  */
11035#ifdef __cplusplus
11036extern "C"
11037{
11038#endif
11039/* We use char because int might match the return type of a gcc2
11040   builtin and then its argument prototype would still apply.  */
11041char shl_load ();
11042/* The GNU C library defines this for functions which it implements
11043    to always fail with ENOSYS.  Some functions are actually named
11044    something starting with __ and the normal name is an alias.  */
11045#if defined (__stub_shl_load) || defined (__stub___shl_load)
11046choke me
11047#else
11048char (*f) () = shl_load;
11049#endif
11050#ifdef __cplusplus
11051}
11052#endif
11053
11054int
11055main ()
11056{
11057return f != shl_load;
11058  ;
11059  return 0;
11060}
11061_ACEOF
11062rm -f conftest.$ac_objext conftest$ac_exeext
11063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11064  (eval $ac_link) 2>conftest.er1
11065  ac_status=$?
11066  grep -v '^ *+' conftest.er1 >conftest.err
11067  rm -f conftest.er1
11068  cat conftest.err >&5
11069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070  (exit $ac_status); } &&
11071	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073  (eval $ac_try) 2>&5
11074  ac_status=$?
11075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076  (exit $ac_status); }; } &&
11077	 { ac_try='test -s conftest$ac_exeext'
11078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079  (eval $ac_try) 2>&5
11080  ac_status=$?
11081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082  (exit $ac_status); }; }; then
11083  ac_cv_func_shl_load=yes
11084else
11085  echo "$as_me: failed program was:" >&5
11086sed 's/^/| /' conftest.$ac_ext >&5
11087
11088ac_cv_func_shl_load=no
11089fi
11090rm -f conftest.err conftest.$ac_objext \
11091      conftest$ac_exeext conftest.$ac_ext
11092fi
11093echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11094echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11095if test $ac_cv_func_shl_load = yes; then
11096  lt_cv_dlopen="shl_load"
11097else
11098  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11099echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11100if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11101  echo $ECHO_N "(cached) $ECHO_C" >&6
11102else
11103  ac_check_lib_save_LIBS=$LIBS
11104LIBS="-ldld  $LIBS"
11105cat >conftest.$ac_ext <<_ACEOF
11106/* confdefs.h.  */
11107_ACEOF
11108cat confdefs.h >>conftest.$ac_ext
11109cat >>conftest.$ac_ext <<_ACEOF
11110/* end confdefs.h.  */
11111
11112/* Override any gcc2 internal prototype to avoid an error.  */
11113#ifdef __cplusplus
11114extern "C"
11115#endif
11116/* We use char because int might match the return type of a gcc2
11117   builtin and then its argument prototype would still apply.  */
11118char shl_load ();
11119int
11120main ()
11121{
11122shl_load ();
11123  ;
11124  return 0;
11125}
11126_ACEOF
11127rm -f conftest.$ac_objext conftest$ac_exeext
11128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11129  (eval $ac_link) 2>conftest.er1
11130  ac_status=$?
11131  grep -v '^ *+' conftest.er1 >conftest.err
11132  rm -f conftest.er1
11133  cat conftest.err >&5
11134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135  (exit $ac_status); } &&
11136	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138  (eval $ac_try) 2>&5
11139  ac_status=$?
11140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141  (exit $ac_status); }; } &&
11142	 { ac_try='test -s conftest$ac_exeext'
11143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11144  (eval $ac_try) 2>&5
11145  ac_status=$?
11146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147  (exit $ac_status); }; }; then
11148  ac_cv_lib_dld_shl_load=yes
11149else
11150  echo "$as_me: failed program was:" >&5
11151sed 's/^/| /' conftest.$ac_ext >&5
11152
11153ac_cv_lib_dld_shl_load=no
11154fi
11155rm -f conftest.err conftest.$ac_objext \
11156      conftest$ac_exeext conftest.$ac_ext
11157LIBS=$ac_check_lib_save_LIBS
11158fi
11159echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11160echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11161if test $ac_cv_lib_dld_shl_load = yes; then
11162  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11163else
11164  echo "$as_me:$LINENO: checking for dlopen" >&5
11165echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11166if test "${ac_cv_func_dlopen+set}" = set; then
11167  echo $ECHO_N "(cached) $ECHO_C" >&6
11168else
11169  cat >conftest.$ac_ext <<_ACEOF
11170/* confdefs.h.  */
11171_ACEOF
11172cat confdefs.h >>conftest.$ac_ext
11173cat >>conftest.$ac_ext <<_ACEOF
11174/* end confdefs.h.  */
11175/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11176   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11177#define dlopen innocuous_dlopen
11178
11179/* System header to define __stub macros and hopefully few prototypes,
11180    which can conflict with char dlopen (); below.
11181    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11182    <limits.h> exists even on freestanding compilers.  */
11183
11184#ifdef __STDC__
11185# include <limits.h>
11186#else
11187# include <assert.h>
11188#endif
11189
11190#undef dlopen
11191
11192/* Override any gcc2 internal prototype to avoid an error.  */
11193#ifdef __cplusplus
11194extern "C"
11195{
11196#endif
11197/* We use char because int might match the return type of a gcc2
11198   builtin and then its argument prototype would still apply.  */
11199char dlopen ();
11200/* The GNU C library defines this for functions which it implements
11201    to always fail with ENOSYS.  Some functions are actually named
11202    something starting with __ and the normal name is an alias.  */
11203#if defined (__stub_dlopen) || defined (__stub___dlopen)
11204choke me
11205#else
11206char (*f) () = dlopen;
11207#endif
11208#ifdef __cplusplus
11209}
11210#endif
11211
11212int
11213main ()
11214{
11215return f != dlopen;
11216  ;
11217  return 0;
11218}
11219_ACEOF
11220rm -f conftest.$ac_objext conftest$ac_exeext
11221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11222  (eval $ac_link) 2>conftest.er1
11223  ac_status=$?
11224  grep -v '^ *+' conftest.er1 >conftest.err
11225  rm -f conftest.er1
11226  cat conftest.err >&5
11227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228  (exit $ac_status); } &&
11229	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231  (eval $ac_try) 2>&5
11232  ac_status=$?
11233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234  (exit $ac_status); }; } &&
11235	 { ac_try='test -s conftest$ac_exeext'
11236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237  (eval $ac_try) 2>&5
11238  ac_status=$?
11239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240  (exit $ac_status); }; }; then
11241  ac_cv_func_dlopen=yes
11242else
11243  echo "$as_me: failed program was:" >&5
11244sed 's/^/| /' conftest.$ac_ext >&5
11245
11246ac_cv_func_dlopen=no
11247fi
11248rm -f conftest.err conftest.$ac_objext \
11249      conftest$ac_exeext conftest.$ac_ext
11250fi
11251echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11252echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11253if test $ac_cv_func_dlopen = yes; then
11254  lt_cv_dlopen="dlopen"
11255else
11256  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11257echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11258if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11259  echo $ECHO_N "(cached) $ECHO_C" >&6
11260else
11261  ac_check_lib_save_LIBS=$LIBS
11262LIBS="-ldl  $LIBS"
11263cat >conftest.$ac_ext <<_ACEOF
11264/* confdefs.h.  */
11265_ACEOF
11266cat confdefs.h >>conftest.$ac_ext
11267cat >>conftest.$ac_ext <<_ACEOF
11268/* end confdefs.h.  */
11269
11270/* Override any gcc2 internal prototype to avoid an error.  */
11271#ifdef __cplusplus
11272extern "C"
11273#endif
11274/* We use char because int might match the return type of a gcc2
11275   builtin and then its argument prototype would still apply.  */
11276char dlopen ();
11277int
11278main ()
11279{
11280dlopen ();
11281  ;
11282  return 0;
11283}
11284_ACEOF
11285rm -f conftest.$ac_objext conftest$ac_exeext
11286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11287  (eval $ac_link) 2>conftest.er1
11288  ac_status=$?
11289  grep -v '^ *+' conftest.er1 >conftest.err
11290  rm -f conftest.er1
11291  cat conftest.err >&5
11292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293  (exit $ac_status); } &&
11294	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296  (eval $ac_try) 2>&5
11297  ac_status=$?
11298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299  (exit $ac_status); }; } &&
11300	 { ac_try='test -s conftest$ac_exeext'
11301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302  (eval $ac_try) 2>&5
11303  ac_status=$?
11304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305  (exit $ac_status); }; }; then
11306  ac_cv_lib_dl_dlopen=yes
11307else
11308  echo "$as_me: failed program was:" >&5
11309sed 's/^/| /' conftest.$ac_ext >&5
11310
11311ac_cv_lib_dl_dlopen=no
11312fi
11313rm -f conftest.err conftest.$ac_objext \
11314      conftest$ac_exeext conftest.$ac_ext
11315LIBS=$ac_check_lib_save_LIBS
11316fi
11317echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11318echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11319if test $ac_cv_lib_dl_dlopen = yes; then
11320  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11321else
11322  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11323echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11324if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11325  echo $ECHO_N "(cached) $ECHO_C" >&6
11326else
11327  ac_check_lib_save_LIBS=$LIBS
11328LIBS="-lsvld  $LIBS"
11329cat >conftest.$ac_ext <<_ACEOF
11330/* confdefs.h.  */
11331_ACEOF
11332cat confdefs.h >>conftest.$ac_ext
11333cat >>conftest.$ac_ext <<_ACEOF
11334/* end confdefs.h.  */
11335
11336/* Override any gcc2 internal prototype to avoid an error.  */
11337#ifdef __cplusplus
11338extern "C"
11339#endif
11340/* We use char because int might match the return type of a gcc2
11341   builtin and then its argument prototype would still apply.  */
11342char dlopen ();
11343int
11344main ()
11345{
11346dlopen ();
11347  ;
11348  return 0;
11349}
11350_ACEOF
11351rm -f conftest.$ac_objext conftest$ac_exeext
11352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11353  (eval $ac_link) 2>conftest.er1
11354  ac_status=$?
11355  grep -v '^ *+' conftest.er1 >conftest.err
11356  rm -f conftest.er1
11357  cat conftest.err >&5
11358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359  (exit $ac_status); } &&
11360	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362  (eval $ac_try) 2>&5
11363  ac_status=$?
11364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365  (exit $ac_status); }; } &&
11366	 { ac_try='test -s conftest$ac_exeext'
11367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368  (eval $ac_try) 2>&5
11369  ac_status=$?
11370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371  (exit $ac_status); }; }; then
11372  ac_cv_lib_svld_dlopen=yes
11373else
11374  echo "$as_me: failed program was:" >&5
11375sed 's/^/| /' conftest.$ac_ext >&5
11376
11377ac_cv_lib_svld_dlopen=no
11378fi
11379rm -f conftest.err conftest.$ac_objext \
11380      conftest$ac_exeext conftest.$ac_ext
11381LIBS=$ac_check_lib_save_LIBS
11382fi
11383echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11384echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11385if test $ac_cv_lib_svld_dlopen = yes; then
11386  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11387else
11388  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11389echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11390if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11391  echo $ECHO_N "(cached) $ECHO_C" >&6
11392else
11393  ac_check_lib_save_LIBS=$LIBS
11394LIBS="-ldld  $LIBS"
11395cat >conftest.$ac_ext <<_ACEOF
11396/* confdefs.h.  */
11397_ACEOF
11398cat confdefs.h >>conftest.$ac_ext
11399cat >>conftest.$ac_ext <<_ACEOF
11400/* end confdefs.h.  */
11401
11402/* Override any gcc2 internal prototype to avoid an error.  */
11403#ifdef __cplusplus
11404extern "C"
11405#endif
11406/* We use char because int might match the return type of a gcc2
11407   builtin and then its argument prototype would still apply.  */
11408char dld_link ();
11409int
11410main ()
11411{
11412dld_link ();
11413  ;
11414  return 0;
11415}
11416_ACEOF
11417rm -f conftest.$ac_objext conftest$ac_exeext
11418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11419  (eval $ac_link) 2>conftest.er1
11420  ac_status=$?
11421  grep -v '^ *+' conftest.er1 >conftest.err
11422  rm -f conftest.er1
11423  cat conftest.err >&5
11424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425  (exit $ac_status); } &&
11426	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428  (eval $ac_try) 2>&5
11429  ac_status=$?
11430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431  (exit $ac_status); }; } &&
11432	 { ac_try='test -s conftest$ac_exeext'
11433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434  (eval $ac_try) 2>&5
11435  ac_status=$?
11436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437  (exit $ac_status); }; }; then
11438  ac_cv_lib_dld_dld_link=yes
11439else
11440  echo "$as_me: failed program was:" >&5
11441sed 's/^/| /' conftest.$ac_ext >&5
11442
11443ac_cv_lib_dld_dld_link=no
11444fi
11445rm -f conftest.err conftest.$ac_objext \
11446      conftest$ac_exeext conftest.$ac_ext
11447LIBS=$ac_check_lib_save_LIBS
11448fi
11449echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11450echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11451if test $ac_cv_lib_dld_dld_link = yes; then
11452  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11453fi
11454
11455
11456fi
11457
11458
11459fi
11460
11461
11462fi
11463
11464
11465fi
11466
11467
11468fi
11469
11470    ;;
11471  esac
11472
11473  if test "x$lt_cv_dlopen" != xno; then
11474    enable_dlopen=yes
11475  else
11476    enable_dlopen=no
11477  fi
11478
11479  case $lt_cv_dlopen in
11480  dlopen)
11481    save_CPPFLAGS="$CPPFLAGS"
11482    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11483
11484    save_LDFLAGS="$LDFLAGS"
11485    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11486
11487    save_LIBS="$LIBS"
11488    LIBS="$lt_cv_dlopen_libs $LIBS"
11489
11490    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11491echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11492if test "${lt_cv_dlopen_self+set}" = set; then
11493  echo $ECHO_N "(cached) $ECHO_C" >&6
11494else
11495  	  if test "$cross_compiling" = yes; then :
11496  lt_cv_dlopen_self=cross
11497else
11498  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11499  lt_status=$lt_dlunknown
11500  cat > conftest.$ac_ext <<EOF
11501#line __oline__ "configure"
11502#include "confdefs.h"
11503
11504#if HAVE_DLFCN_H
11505#include <dlfcn.h>
11506#endif
11507
11508#include <stdio.h>
11509
11510#ifdef RTLD_GLOBAL
11511#  define LT_DLGLOBAL		RTLD_GLOBAL
11512#else
11513#  ifdef DL_GLOBAL
11514#    define LT_DLGLOBAL		DL_GLOBAL
11515#  else
11516#    define LT_DLGLOBAL		0
11517#  endif
11518#endif
11519
11520/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11521   find out it does not work in some platform. */
11522#ifndef LT_DLLAZY_OR_NOW
11523#  ifdef RTLD_LAZY
11524#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11525#  else
11526#    ifdef DL_LAZY
11527#      define LT_DLLAZY_OR_NOW		DL_LAZY
11528#    else
11529#      ifdef RTLD_NOW
11530#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11531#      else
11532#        ifdef DL_NOW
11533#          define LT_DLLAZY_OR_NOW	DL_NOW
11534#        else
11535#          define LT_DLLAZY_OR_NOW	0
11536#        endif
11537#      endif
11538#    endif
11539#  endif
11540#endif
11541
11542#ifdef __cplusplus
11543extern "C" void exit (int);
11544#endif
11545
11546void fnord() { int i=42;}
11547int main ()
11548{
11549  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11550  int status = $lt_dlunknown;
11551
11552  if (self)
11553    {
11554      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11555      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11556      /* dlclose (self); */
11557    }
11558
11559    exit (status);
11560}
11561EOF
11562  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563  (eval $ac_link) 2>&5
11564  ac_status=$?
11565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11567    (./conftest; exit; ) 2>/dev/null
11568    lt_status=$?
11569    case x$lt_status in
11570      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11571      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11572      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11573    esac
11574  else :
11575    # compilation failed
11576    lt_cv_dlopen_self=no
11577  fi
11578fi
11579rm -fr conftest*
11580
11581
11582fi
11583echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11584echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11585
11586    if test "x$lt_cv_dlopen_self" = xyes; then
11587      LDFLAGS="$LDFLAGS $link_static_flag"
11588      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11589echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11590if test "${lt_cv_dlopen_self_static+set}" = set; then
11591  echo $ECHO_N "(cached) $ECHO_C" >&6
11592else
11593  	  if test "$cross_compiling" = yes; then :
11594  lt_cv_dlopen_self_static=cross
11595else
11596  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11597  lt_status=$lt_dlunknown
11598  cat > conftest.$ac_ext <<EOF
11599#line __oline__ "configure"
11600#include "confdefs.h"
11601
11602#if HAVE_DLFCN_H
11603#include <dlfcn.h>
11604#endif
11605
11606#include <stdio.h>
11607
11608#ifdef RTLD_GLOBAL
11609#  define LT_DLGLOBAL		RTLD_GLOBAL
11610#else
11611#  ifdef DL_GLOBAL
11612#    define LT_DLGLOBAL		DL_GLOBAL
11613#  else
11614#    define LT_DLGLOBAL		0
11615#  endif
11616#endif
11617
11618/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11619   find out it does not work in some platform. */
11620#ifndef LT_DLLAZY_OR_NOW
11621#  ifdef RTLD_LAZY
11622#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11623#  else
11624#    ifdef DL_LAZY
11625#      define LT_DLLAZY_OR_NOW		DL_LAZY
11626#    else
11627#      ifdef RTLD_NOW
11628#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11629#      else
11630#        ifdef DL_NOW
11631#          define LT_DLLAZY_OR_NOW	DL_NOW
11632#        else
11633#          define LT_DLLAZY_OR_NOW	0
11634#        endif
11635#      endif
11636#    endif
11637#  endif
11638#endif
11639
11640#ifdef __cplusplus
11641extern "C" void exit (int);
11642#endif
11643
11644void fnord() { int i=42;}
11645int main ()
11646{
11647  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11648  int status = $lt_dlunknown;
11649
11650  if (self)
11651    {
11652      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11653      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11654      /* dlclose (self); */
11655    }
11656
11657    exit (status);
11658}
11659EOF
11660  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11661  (eval $ac_link) 2>&5
11662  ac_status=$?
11663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11665    (./conftest; exit; ) 2>/dev/null
11666    lt_status=$?
11667    case x$lt_status in
11668      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11669      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11670      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11671    esac
11672  else :
11673    # compilation failed
11674    lt_cv_dlopen_self_static=no
11675  fi
11676fi
11677rm -fr conftest*
11678
11679
11680fi
11681echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11682echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11683    fi
11684
11685    CPPFLAGS="$save_CPPFLAGS"
11686    LDFLAGS="$save_LDFLAGS"
11687    LIBS="$save_LIBS"
11688    ;;
11689  esac
11690
11691  case $lt_cv_dlopen_self in
11692  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11693  *) enable_dlopen_self=unknown ;;
11694  esac
11695
11696  case $lt_cv_dlopen_self_static in
11697  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11698  *) enable_dlopen_self_static=unknown ;;
11699  esac
11700fi
11701
11702
11703# Report which librarie types wil actually be built
11704echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11705echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11706echo "$as_me:$LINENO: result: $can_build_shared" >&5
11707echo "${ECHO_T}$can_build_shared" >&6
11708
11709echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11710echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11711test "$can_build_shared" = "no" && enable_shared=no
11712
11713# On AIX, shared libraries and static libraries use the same namespace, and
11714# are all built from PIC.
11715case "$host_os" in
11716aix3*)
11717  test "$enable_shared" = yes && enable_static=no
11718  if test -n "$RANLIB"; then
11719    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11720    postinstall_cmds='$RANLIB $lib'
11721  fi
11722  ;;
11723
11724aix4*)
11725  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11726    test "$enable_shared" = yes && enable_static=no
11727  fi
11728  ;;
11729  darwin* | rhapsody*)
11730  if test "$GCC" = yes; then
11731    archive_cmds_need_lc=no
11732    case "$host_os" in
11733    rhapsody* | darwin1.[012])
11734      allow_undefined_flag='-Wl,-undefined -Wl,suppress'
11735      ;;
11736    *) # Darwin 1.3 on
11737      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11738	allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
11739      else
11740	case ${MACOSX_DEPLOYMENT_TARGET} in
11741	  10.012)
11742	    allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
11743	    ;;
11744	  10.*)
11745	    allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
11746	    ;;
11747	esac
11748      fi
11749      ;;
11750    esac
11751    output_verbose_link_cmd='echo'
11752    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
11753    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
11754    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11755    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11756    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11757    hardcode_direct=no
11758    hardcode_automatic=yes
11759    hardcode_shlibpath_var=unsupported
11760    whole_archive_flag_spec='-all_load $convenience'
11761    link_all_deplibs=yes
11762  else
11763    ld_shlibs=no
11764  fi
11765    ;;
11766esac
11767echo "$as_me:$LINENO: result: $enable_shared" >&5
11768echo "${ECHO_T}$enable_shared" >&6
11769
11770echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11771echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11772# Make sure either enable_shared or enable_static is yes.
11773test "$enable_shared" = yes || enable_static=yes
11774echo "$as_me:$LINENO: result: $enable_static" >&5
11775echo "${ECHO_T}$enable_static" >&6
11776
11777# The else clause should only fire when bootstrapping the
11778# libtool distribution, otherwise you forgot to ship ltmain.sh
11779# with your package, and you will get complaints that there are
11780# no rules to generate ltmain.sh.
11781if test -f "$ltmain"; then
11782  # See if we are running on zsh, and set the options which allow our commands through
11783  # without removal of \ escapes.
11784  if test -n "${ZSH_VERSION+set}" ; then
11785    setopt NO_GLOB_SUBST
11786  fi
11787  # Now quote all the things that may contain metacharacters while being
11788  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11789  # variables and quote the copies for generation of the libtool script.
11790  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11791    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11792    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11793    deplibs_check_method reload_flag reload_cmds need_locks \
11794    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11795    lt_cv_sys_global_symbol_to_c_name_address \
11796    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11797    old_postinstall_cmds old_postuninstall_cmds \
11798    compiler \
11799    CC \
11800    LD \
11801    lt_prog_compiler_wl \
11802    lt_prog_compiler_pic \
11803    lt_prog_compiler_static \
11804    lt_prog_compiler_no_builtin_flag \
11805    export_dynamic_flag_spec \
11806    thread_safe_flag_spec \
11807    whole_archive_flag_spec \
11808    enable_shared_with_static_runtimes \
11809    old_archive_cmds \
11810    old_archive_from_new_cmds \
11811    predep_objects \
11812    postdep_objects \
11813    predeps \
11814    postdeps \
11815    compiler_lib_search_path \
11816    archive_cmds \
11817    archive_expsym_cmds \
11818    postinstall_cmds \
11819    postuninstall_cmds \
11820    old_archive_from_expsyms_cmds \
11821    allow_undefined_flag \
11822    no_undefined_flag \
11823    export_symbols_cmds \
11824    hardcode_libdir_flag_spec \
11825    hardcode_libdir_flag_spec_ld \
11826    hardcode_libdir_separator \
11827    hardcode_automatic \
11828    module_cmds \
11829    module_expsym_cmds \
11830    lt_cv_prog_compiler_c_o \
11831    exclude_expsyms \
11832    include_expsyms; do
11833
11834    case $var in
11835    old_archive_cmds | \
11836    old_archive_from_new_cmds | \
11837    archive_cmds | \
11838    archive_expsym_cmds | \
11839    module_cmds | \
11840    module_expsym_cmds | \
11841    old_archive_from_expsyms_cmds | \
11842    export_symbols_cmds | \
11843    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11844    postinstall_cmds | postuninstall_cmds | \
11845    old_postinstall_cmds | old_postuninstall_cmds | \
11846    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11847      # Double-quote double-evaled strings.
11848      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11849      ;;
11850    *)
11851      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11852      ;;
11853    esac
11854  done
11855
11856  case $lt_echo in
11857  *'\$0 --fallback-echo"')
11858    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11859    ;;
11860  esac
11861
11862cfgfile="${ofile}T"
11863  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11864  $rm -f "$cfgfile"
11865  { echo "$as_me:$LINENO: creating $ofile" >&5
11866echo "$as_me: creating $ofile" >&6;}
11867
11868  cat <<__EOF__ >> "$cfgfile"
11869#! $SHELL
11870
11871# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11872# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11873# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11874#
11875# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11876# Free Software Foundation, Inc.
11877#
11878# This file is part of GNU Libtool:
11879# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11880#
11881# This program is free software; you can redistribute it and/or modify
11882# it under the terms of the GNU General Public License as published by
11883# the Free Software Foundation; either version 2 of the License, or
11884# (at your option) any later version.
11885#
11886# This program is distributed in the hope that it will be useful, but
11887# WITHOUT ANY WARRANTY; without even the implied warranty of
11888# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11889# General Public License for more details.
11890#
11891# You should have received a copy of the GNU General Public License
11892# along with this program; if not, write to the Free Software
11893# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11894#
11895# As a special exception to the GNU General Public License, if you
11896# distribute this file as part of a program that contains a
11897# configuration script generated by Autoconf, you may include it under
11898# the same distribution terms that you use for the rest of that program.
11899
11900# A sed program that does not truncate output.
11901SED=$lt_SED
11902
11903# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11904Xsed="$SED -e s/^X//"
11905
11906# The HP-UX ksh and POSIX shell print the target directory to stdout
11907# if CDPATH is set.
11908if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
11909
11910# The names of the tagged configurations supported by this script.
11911available_tags=
11912
11913# ### BEGIN LIBTOOL CONFIG
11914
11915# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11916
11917# Shell to use when invoking shell scripts.
11918SHELL=$lt_SHELL
11919
11920# Whether or not to build shared libraries.
11921build_libtool_libs=$enable_shared
11922
11923# Whether or not to build static libraries.
11924build_old_libs=$enable_static
11925
11926# Whether or not to add -lc for building shared libraries.
11927build_libtool_need_lc=$archive_cmds_need_lc
11928
11929# Whether or not to disallow shared libs when runtime libs are static
11930allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11931
11932# Whether or not to optimize for fast installation.
11933fast_install=$enable_fast_install
11934
11935# The host system.
11936host_alias=$host_alias
11937host=$host
11938
11939# An echo program that does not interpret backslashes.
11940echo=$lt_echo
11941
11942# The archiver.
11943AR=$lt_AR
11944AR_FLAGS=$lt_AR_FLAGS
11945
11946# A C compiler.
11947LTCC=$lt_LTCC
11948
11949# A language-specific compiler.
11950CC=$lt_compiler
11951
11952# Is the compiler the GNU C compiler?
11953with_gcc=$GCC
11954
11955# An ERE matcher.
11956EGREP=$lt_EGREP
11957
11958# The linker used to build libraries.
11959LD=$lt_LD
11960
11961# Whether we need hard or soft links.
11962LN_S=$lt_LN_S
11963
11964# A BSD-compatible nm program.
11965NM=$lt_NM
11966
11967# A symbol stripping program
11968STRIP=$STRIP
11969
11970# Used to examine libraries when file_magic_cmd begins "file"
11971MAGIC_CMD=$MAGIC_CMD
11972
11973# Used on cygwin: DLL creation program.
11974DLLTOOL="$DLLTOOL"
11975
11976# Used on cygwin: object dumper.
11977OBJDUMP="$OBJDUMP"
11978
11979# Used on cygwin: assembler.
11980AS="$AS"
11981
11982# The name of the directory that contains temporary libtool files.
11983objdir=$objdir
11984
11985# How to create reloadable object files.
11986reload_flag=$lt_reload_flag
11987reload_cmds=$lt_reload_cmds
11988
11989# How to pass a linker flag through the compiler.
11990wl=$lt_lt_prog_compiler_wl
11991
11992# Object file suffix (normally "o").
11993objext="$ac_objext"
11994
11995# Old archive suffix (normally "a").
11996libext="$libext"
11997
11998# Shared library suffix (normally ".so").
11999shrext='$shrext'
12000
12001# Executable file suffix (normally "").
12002exeext="$exeext"
12003
12004# Additional compiler flags for building library objects.
12005pic_flag=$lt_lt_prog_compiler_pic
12006pic_mode=$pic_mode
12007
12008# What is the maximum length of a command?
12009max_cmd_len=$lt_cv_sys_max_cmd_len
12010
12011# Does compiler simultaneously support -c and -o options?
12012compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12013
12014# Must we lock files when doing compilation ?
12015need_locks=$lt_need_locks
12016
12017# Do we need the lib prefix for modules?
12018need_lib_prefix=$need_lib_prefix
12019
12020# Do we need a version for libraries?
12021need_version=$need_version
12022
12023# Whether dlopen is supported.
12024dlopen_support=$enable_dlopen
12025
12026# Whether dlopen of programs is supported.
12027dlopen_self=$enable_dlopen_self
12028
12029# Whether dlopen of statically linked programs is supported.
12030dlopen_self_static=$enable_dlopen_self_static
12031
12032# Compiler flag to prevent dynamic linking.
12033link_static_flag=$lt_lt_prog_compiler_static
12034
12035# Compiler flag to turn off builtin functions.
12036no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12037
12038# Compiler flag to allow reflexive dlopens.
12039export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12040
12041# Compiler flag to generate shared objects directly from archives.
12042whole_archive_flag_spec=$lt_whole_archive_flag_spec
12043
12044# Compiler flag to generate thread-safe objects.
12045thread_safe_flag_spec=$lt_thread_safe_flag_spec
12046
12047# Library versioning type.
12048version_type=$version_type
12049
12050# Format of library name prefix.
12051libname_spec=$lt_libname_spec
12052
12053# List of archive names.  First name is the real one, the rest are links.
12054# The last name is the one that the linker finds with -lNAME.
12055library_names_spec=$lt_library_names_spec
12056
12057# The coded name of the library, if different from the real name.
12058soname_spec=$lt_soname_spec
12059
12060# Commands used to build and install an old-style archive.
12061RANLIB=$lt_RANLIB
12062old_archive_cmds=$lt_old_archive_cmds
12063old_postinstall_cmds=$lt_old_postinstall_cmds
12064old_postuninstall_cmds=$lt_old_postuninstall_cmds
12065
12066# Create an old-style archive from a shared archive.
12067old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12068
12069# Create a temporary old-style archive to link instead of a shared archive.
12070old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12071
12072# Commands used to build and install a shared archive.
12073archive_cmds=$lt_archive_cmds
12074archive_expsym_cmds=$lt_archive_expsym_cmds
12075postinstall_cmds=$lt_postinstall_cmds
12076postuninstall_cmds=$lt_postuninstall_cmds
12077
12078# Commands used to build a loadable module (assumed same as above if empty)
12079module_cmds=$lt_module_cmds
12080module_expsym_cmds=$lt_module_expsym_cmds
12081
12082# Commands to strip libraries.
12083old_striplib=$lt_old_striplib
12084striplib=$lt_striplib
12085
12086# Dependencies to place before the objects being linked to create a
12087# shared library.
12088predep_objects=$lt_predep_objects
12089
12090# Dependencies to place after the objects being linked to create a
12091# shared library.
12092postdep_objects=$lt_postdep_objects
12093
12094# Dependencies to place before the objects being linked to create a
12095# shared library.
12096predeps=$lt_predeps
12097
12098# Dependencies to place after the objects being linked to create a
12099# shared library.
12100postdeps=$lt_postdeps
12101
12102# The library search path used internally by the compiler when linking
12103# a shared library.
12104compiler_lib_search_path=$lt_compiler_lib_search_path
12105
12106# Method to check whether dependent libraries are shared objects.
12107deplibs_check_method=$lt_deplibs_check_method
12108
12109# Command to use when deplibs_check_method == file_magic.
12110file_magic_cmd=$lt_file_magic_cmd
12111
12112# Flag that allows shared libraries with undefined symbols to be built.
12113allow_undefined_flag=$lt_allow_undefined_flag
12114
12115# Flag that forces no undefined symbols.
12116no_undefined_flag=$lt_no_undefined_flag
12117
12118# Commands used to finish a libtool library installation in a directory.
12119finish_cmds=$lt_finish_cmds
12120
12121# Same as above, but a single script fragment to be evaled but not shown.
12122finish_eval=$lt_finish_eval
12123
12124# Take the output of nm and produce a listing of raw symbols and C names.
12125global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12126
12127# Transform the output of nm in a proper C declaration
12128global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12129
12130# Transform the output of nm in a C name address pair
12131global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12132
12133# This is the shared library runtime path variable.
12134runpath_var=$runpath_var
12135
12136# This is the shared library path variable.
12137shlibpath_var=$shlibpath_var
12138
12139# Is shlibpath searched before the hard-coded library search path?
12140shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12141
12142# How to hardcode a shared library path into an executable.
12143hardcode_action=$hardcode_action
12144
12145# Whether we should hardcode library paths into libraries.
12146hardcode_into_libs=$hardcode_into_libs
12147
12148# Flag to hardcode \$libdir into a binary during linking.
12149# This must work even if \$libdir does not exist.
12150hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12151
12152# If ld is used when linking, flag to hardcode \$libdir into
12153# a binary during linking. This must work even if \$libdir does
12154# not exist.
12155hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12156
12157# Whether we need a single -rpath flag with a separated argument.
12158hardcode_libdir_separator=$lt_hardcode_libdir_separator
12159
12160# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12161# resulting binary.
12162hardcode_direct=$hardcode_direct
12163
12164# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12165# resulting binary.
12166hardcode_minus_L=$hardcode_minus_L
12167
12168# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12169# the resulting binary.
12170hardcode_shlibpath_var=$hardcode_shlibpath_var
12171
12172# Set to yes if building a shared library automatically hardcodes DIR into the library
12173# and all subsequent libraries and executables linked against it.
12174hardcode_automatic=$hardcode_automatic
12175
12176# Variables whose values should be saved in libtool wrapper scripts and
12177# restored at relink time.
12178variables_saved_for_relink="$variables_saved_for_relink"
12179
12180# Whether libtool must link a program against all its dependency libraries.
12181link_all_deplibs=$link_all_deplibs
12182
12183# Compile-time system search path for libraries
12184sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12185
12186# Run-time system search path for libraries
12187sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12188
12189# Fix the shell variable \$srcfile for the compiler.
12190fix_srcfile_path="$fix_srcfile_path"
12191
12192# Set to yes if exported symbols are required.
12193always_export_symbols=$always_export_symbols
12194
12195# The commands to list exported symbols.
12196export_symbols_cmds=$lt_export_symbols_cmds
12197
12198# The commands to extract the exported symbol list from a shared archive.
12199extract_expsyms_cmds=$lt_extract_expsyms_cmds
12200
12201# Symbols that should not be listed in the preloaded symbols.
12202exclude_expsyms=$lt_exclude_expsyms
12203
12204# Symbols that must always be exported.
12205include_expsyms=$lt_include_expsyms
12206
12207# ### END LIBTOOL CONFIG
12208
12209__EOF__
12210
12211
12212  case $host_os in
12213  aix3*)
12214    cat <<\EOF >> "$cfgfile"
12215
12216# AIX sometimes has problems with the GCC collect2 program.  For some
12217# reason, if we set the COLLECT_NAMES environment variable, the problems
12218# vanish in a puff of smoke.
12219if test "X${COLLECT_NAMES+set}" != Xset; then
12220  COLLECT_NAMES=
12221  export COLLECT_NAMES
12222fi
12223EOF
12224    ;;
12225  esac
12226
12227  # We use sed instead of cat because bash on DJGPP gets confused if
12228  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12229  # text mode, it properly converts lines to CR/LF.  This bash problem
12230  # is reportedly fixed, but why not run on old versions too?
12231  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12232
12233  mv -f "$cfgfile" "$ofile" || \
12234    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12235  chmod +x "$ofile"
12236
12237else
12238  # If there is no Makefile yet, we rely on a make rule to execute
12239  # `config.status --recheck' to rerun these tests and create the
12240  # libtool script then.
12241  test -f Makefile && make "$ltmain"
12242fi
12243
12244
12245ac_ext=c
12246ac_cpp='$CPP $CPPFLAGS'
12247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12249ac_compiler_gnu=$ac_cv_c_compiler_gnu
12250
12251CC="$lt_save_CC"
12252
12253
12254# Check whether --with-tags or --without-tags was given.
12255if test "${with_tags+set}" = set; then
12256  withval="$with_tags"
12257  tagnames="$withval"
12258fi;
12259
12260if test -f "$ltmain" && test -n "$tagnames"; then
12261  if test ! -f "${ofile}"; then
12262    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12263echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12264  fi
12265
12266  if test -z "$LTCC"; then
12267    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12268    if test -z "$LTCC"; then
12269      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12270echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12271    else
12272      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12273echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12274    fi
12275  fi
12276
12277  # Extract list of available tagged configurations in $ofile.
12278  # Note that this assumes the entire list is on one line.
12279  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12280
12281  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12282  for tagname in $tagnames; do
12283    IFS="$lt_save_ifs"
12284    # Check whether tagname contains only valid characters
12285    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12286    "") ;;
12287    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12288echo "$as_me: error: invalid tag name: $tagname" >&2;}
12289   { (exit 1); exit 1; }; }
12290	;;
12291    esac
12292
12293    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12294    then
12295      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12296echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12297   { (exit 1); exit 1; }; }
12298    fi
12299
12300    # Update the list of available tags.
12301    if test -n "$tagname"; then
12302      echo appending configuration tag \"$tagname\" to $ofile
12303
12304      case $tagname in
12305      CXX)
12306	if test -n "$CXX" && test "X$CXX" != "Xno"; then
12307	  ac_ext=cc
12308ac_cpp='$CXXCPP $CPPFLAGS'
12309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12312
12313
12314
12315
12316archive_cmds_need_lc_CXX=no
12317allow_undefined_flag_CXX=
12318always_export_symbols_CXX=no
12319archive_expsym_cmds_CXX=
12320export_dynamic_flag_spec_CXX=
12321hardcode_direct_CXX=no
12322hardcode_libdir_flag_spec_CXX=
12323hardcode_libdir_flag_spec_ld_CXX=
12324hardcode_libdir_separator_CXX=
12325hardcode_minus_L_CXX=no
12326hardcode_automatic_CXX=no
12327module_cmds_CXX=
12328module_expsym_cmds_CXX=
12329link_all_deplibs_CXX=unknown
12330old_archive_cmds_CXX=$old_archive_cmds
12331no_undefined_flag_CXX=
12332whole_archive_flag_spec_CXX=
12333enable_shared_with_static_runtimes_CXX=no
12334
12335# Dependencies to place before and after the object being linked:
12336predep_objects_CXX=
12337postdep_objects_CXX=
12338predeps_CXX=
12339postdeps_CXX=
12340compiler_lib_search_path_CXX=
12341
12342# Source file extension for C++ test sources.
12343ac_ext=cc
12344
12345# Object file extension for compiled C++ test sources.
12346objext=o
12347objext_CXX=$objext
12348
12349# Code to be used in simple compile tests
12350lt_simple_compile_test_code="int some_variable = 0;\n"
12351
12352# Code to be used in simple link tests
12353lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
12354
12355# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12356
12357# If no C compiler was specified, use CC.
12358LTCC=${LTCC-"$CC"}
12359
12360# Allow CC to be a program name with arguments.
12361compiler=$CC
12362
12363
12364# Allow CC to be a program name with arguments.
12365lt_save_CC=$CC
12366lt_save_LD=$LD
12367lt_save_GCC=$GCC
12368GCC=$GXX
12369lt_save_with_gnu_ld=$with_gnu_ld
12370lt_save_path_LD=$lt_cv_path_LD
12371if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12372  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12373else
12374  unset lt_cv_prog_gnu_ld
12375fi
12376if test -n "${lt_cv_path_LDCXX+set}"; then
12377  lt_cv_path_LD=$lt_cv_path_LDCXX
12378else
12379  unset lt_cv_path_LD
12380fi
12381test -z "${LDCXX+set}" || LD=$LDCXX
12382CC=${CXX-"c++"}
12383compiler=$CC
12384compiler_CXX=$CC
12385cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12386
12387# We don't want -fno-exception wen compiling C++ code, so set the
12388# no_builtin_flag separately
12389if test "$GXX" = yes; then
12390  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12391else
12392  lt_prog_compiler_no_builtin_flag_CXX=
12393fi
12394
12395if test "$GXX" = yes; then
12396  # Set up default GNU C++ configuration
12397
12398
12399# Check whether --with-gnu-ld or --without-gnu-ld was given.
12400if test "${with_gnu_ld+set}" = set; then
12401  withval="$with_gnu_ld"
12402  test "$withval" = no || with_gnu_ld=yes
12403else
12404  with_gnu_ld=no
12405fi;
12406ac_prog=ld
12407if test "$GCC" = yes; then
12408  # Check if gcc -print-prog-name=ld gives a path.
12409  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12410echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12411  case $host in
12412  *-*-mingw*)
12413    # gcc leaves a trailing carriage return which upsets mingw
12414    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12415  *)
12416    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12417  esac
12418  case $ac_prog in
12419    # Accept absolute paths.
12420    [\\/]* | ?:[\\/]*)
12421      re_direlt='/[^/][^/]*/\.\./'
12422      # Canonicalize the pathname of ld
12423      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12424      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12425	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12426      done
12427      test -z "$LD" && LD="$ac_prog"
12428      ;;
12429  "")
12430    # If it fails, then pretend we aren't using GCC.
12431    ac_prog=ld
12432    ;;
12433  *)
12434    # If it is relative, then search for the first ld in PATH.
12435    with_gnu_ld=unknown
12436    ;;
12437  esac
12438elif test "$with_gnu_ld" = yes; then
12439  echo "$as_me:$LINENO: checking for GNU ld" >&5
12440echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12441else
12442  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12443echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12444fi
12445if test "${lt_cv_path_LD+set}" = set; then
12446  echo $ECHO_N "(cached) $ECHO_C" >&6
12447else
12448  if test -z "$LD"; then
12449  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12450  for ac_dir in $PATH; do
12451    IFS="$lt_save_ifs"
12452    test -z "$ac_dir" && ac_dir=.
12453    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12454      lt_cv_path_LD="$ac_dir/$ac_prog"
12455      # Check to see if the program is GNU ld.  I'd rather use --version,
12456      # but apparently some GNU ld's only accept -v.
12457      # Break only if it was the GNU/non-GNU ld that we prefer.
12458      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12459      *GNU* | *'with BFD'*)
12460	test "$with_gnu_ld" != no && break
12461	;;
12462      *)
12463	test "$with_gnu_ld" != yes && break
12464	;;
12465      esac
12466    fi
12467  done
12468  IFS="$lt_save_ifs"
12469else
12470  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12471fi
12472fi
12473
12474LD="$lt_cv_path_LD"
12475if test -n "$LD"; then
12476  echo "$as_me:$LINENO: result: $LD" >&5
12477echo "${ECHO_T}$LD" >&6
12478else
12479  echo "$as_me:$LINENO: result: no" >&5
12480echo "${ECHO_T}no" >&6
12481fi
12482test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12483echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12484   { (exit 1); exit 1; }; }
12485echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12486echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12487if test "${lt_cv_prog_gnu_ld+set}" = set; then
12488  echo $ECHO_N "(cached) $ECHO_C" >&6
12489else
12490  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12491case `$LD -v 2>&1 </dev/null` in
12492*GNU* | *'with BFD'*)
12493  lt_cv_prog_gnu_ld=yes
12494  ;;
12495*)
12496  lt_cv_prog_gnu_ld=no
12497  ;;
12498esac
12499fi
12500echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12501echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12502with_gnu_ld=$lt_cv_prog_gnu_ld
12503
12504
12505
12506  # Check if GNU C++ uses GNU ld as the underlying linker, since the
12507  # archiving commands below assume that GNU ld is being used.
12508  if test "$with_gnu_ld" = yes; then
12509    archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
12510    archive_expsym_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12511
12512    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12513    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12514
12515    # If archive_cmds runs LD, not CC, wlarc should be empty
12516    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12517    #     investigate it a little bit more. (MM)
12518    wlarc='${wl}'
12519
12520    # ancient GNU ld didn't support --whole-archive et. al.
12521    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12522	grep 'no-whole-archive' > /dev/null; then
12523      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12524    else
12525      whole_archive_flag_spec_CXX=
12526    fi
12527  else
12528    with_gnu_ld=no
12529    wlarc=
12530
12531    # A generic and very simple default shared library creation
12532    # command for GNU C++ for the case where it uses the native
12533    # linker, instead of GNU ld.  If possible, this setting should
12534    # overridden to take advantage of the native linker features on
12535    # the platform it is being used on.
12536    archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib'
12537  fi
12538
12539  # Commands to make compiler produce verbose output that lists
12540  # what "hidden" libraries, object files and flags are used when
12541  # linking a shared library.
12542  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12543
12544else
12545  GXX=no
12546  with_gnu_ld=no
12547  wlarc=
12548fi
12549
12550# PORTME: fill in a description of your system's C++ link characteristics
12551echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12552echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12553ld_shlibs_CXX=yes
12554case $host_os in
12555  aix3*)
12556    # FIXME: insert proper C++ library support
12557    ld_shlibs_CXX=no
12558    ;;
12559  aix4* | aix5*)
12560    if test "$host_cpu" = ia64; then
12561      # On IA64, the linker does run time linking by default, so we don't
12562      # have to do anything special.
12563      aix_use_runtimelinking=no
12564      exp_sym_flag='-Bexport'
12565      no_entry_flag=""
12566    else
12567      # KDE requires run time linking.  Make it the default.
12568      aix_use_runtimelinking=yes
12569      exp_sym_flag='-bexport'
12570      no_entry_flag='-bnoentry'
12571    fi
12572
12573    # When large executables or shared objects are built, AIX ld can
12574    # have problems creating the table of contents.  If linking a library
12575    # or program results in "error TOC overflow" add -mminimal-toc to
12576    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12577    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12578
12579    archive_cmds_CXX=''
12580    hardcode_direct_CXX=yes
12581    hardcode_libdir_separator_CXX=':'
12582    link_all_deplibs_CXX=yes
12583
12584    if test "$GXX" = yes; then
12585      case $host_os in aix4.012|aix4.012.*)
12586      # We only want to do this on AIX 4.2 and lower, the check
12587      # below for broken collect2 doesn't work under 4.3+
12588	collect2name=`${CC} -print-prog-name=collect2`
12589	if test -f "$collect2name" && \
12590	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12591	then
12592	  # We have reworked collect2
12593	  hardcode_direct_CXX=yes
12594	else
12595	  # We have old collect2
12596	  hardcode_direct_CXX=unsupported
12597	  # It fails to find uninstalled libraries when the uninstalled
12598	  # path is not listed in the libpath.  Setting hardcode_minus_L
12599	  # to unsupported forces relinking
12600	  hardcode_minus_L_CXX=yes
12601	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12602	  hardcode_libdir_separator_CXX=
12603	fi
12604      esac
12605      shared_flag='-shared'
12606    else
12607      # not using gcc
12608      if test "$host_cpu" = ia64; then
12609	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12610	# chokes on -Wl,-G. The following line is correct:
12611	shared_flag='-G'
12612      else
12613	if test "$aix_use_runtimelinking" = yes; then
12614	  shared_flag='-qmkshrobj ${wl}-G'
12615	else
12616	  shared_flag='-qmkshrobj'
12617	fi
12618      fi
12619    fi
12620
12621    # Let the compiler handle the export list.
12622    always_export_symbols_CXX=no
12623    if test "$aix_use_runtimelinking" = yes; then
12624      # Warning - without using the other runtime loading flags (-brtl),
12625      # -berok will link without error, but may produce a broken library.
12626      allow_undefined_flag_CXX='-berok'
12627      # Determine the default libpath from the value encoded in an empty executable.
12628      cat >conftest.$ac_ext <<_ACEOF
12629/* confdefs.h.  */
12630_ACEOF
12631cat confdefs.h >>conftest.$ac_ext
12632cat >>conftest.$ac_ext <<_ACEOF
12633/* end confdefs.h.  */
12634
12635int
12636main ()
12637{
12638
12639  ;
12640  return 0;
12641}
12642_ACEOF
12643rm -f conftest.$ac_objext conftest$ac_exeext
12644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12645  (eval $ac_link) 2>conftest.er1
12646  ac_status=$?
12647  grep -v '^ *+' conftest.er1 >conftest.err
12648  rm -f conftest.er1
12649  cat conftest.err >&5
12650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651  (exit $ac_status); } &&
12652	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654  (eval $ac_try) 2>&5
12655  ac_status=$?
12656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657  (exit $ac_status); }; } &&
12658	 { ac_try='test -s conftest$ac_exeext'
12659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660  (eval $ac_try) 2>&5
12661  ac_status=$?
12662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663  (exit $ac_status); }; }; then
12664
12665aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12666}'`
12667# Check for a 64-bit object if we didn't find anything.
12668if 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; }
12669}'`; fi
12670else
12671  echo "$as_me: failed program was:" >&5
12672sed 's/^/| /' conftest.$ac_ext >&5
12673
12674fi
12675rm -f conftest.err conftest.$ac_objext \
12676      conftest$ac_exeext conftest.$ac_ext
12677if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12678
12679      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12680
12681      archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
12682      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12683     else
12684      if test "$host_cpu" = ia64; then
12685	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12686	allow_undefined_flag_CXX="-z nodefs"
12687	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12688      else
12689	# Determine the default libpath from the value encoded in an empty executable.
12690	cat >conftest.$ac_ext <<_ACEOF
12691/* confdefs.h.  */
12692_ACEOF
12693cat confdefs.h >>conftest.$ac_ext
12694cat >>conftest.$ac_ext <<_ACEOF
12695/* end confdefs.h.  */
12696
12697int
12698main ()
12699{
12700
12701  ;
12702  return 0;
12703}
12704_ACEOF
12705rm -f conftest.$ac_objext conftest$ac_exeext
12706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12707  (eval $ac_link) 2>conftest.er1
12708  ac_status=$?
12709  grep -v '^ *+' conftest.er1 >conftest.err
12710  rm -f conftest.er1
12711  cat conftest.err >&5
12712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713  (exit $ac_status); } &&
12714	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716  (eval $ac_try) 2>&5
12717  ac_status=$?
12718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719  (exit $ac_status); }; } &&
12720	 { ac_try='test -s conftest$ac_exeext'
12721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722  (eval $ac_try) 2>&5
12723  ac_status=$?
12724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725  (exit $ac_status); }; }; then
12726
12727aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12728}'`
12729# Check for a 64-bit object if we didn't find anything.
12730if 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; }
12731}'`; fi
12732else
12733  echo "$as_me: failed program was:" >&5
12734sed 's/^/| /' conftest.$ac_ext >&5
12735
12736fi
12737rm -f conftest.err conftest.$ac_objext \
12738      conftest$ac_exeext conftest.$ac_ext
12739if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12740
12741	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12742	# Warning - without using the other run time loading flags,
12743	# -berok will link without error, but may produce a broken library.
12744	no_undefined_flag_CXX=' ${wl}-bernotok'
12745	allow_undefined_flag_CXX=' ${wl}-berok'
12746	# -bexpall does not export symbols beginning with underscore (_)
12747	always_export_symbols_CXX=yes
12748	# Exported symbols can be pulled into shared objects from archives
12749	whole_archive_flag_spec_CXX=' '
12750	archive_cmds_need_lc_CXX=yes
12751	# This is similar to how AIX traditionally builds it's shared libraries.
12752	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12753      fi
12754    fi
12755    ;;
12756  chorus*)
12757    case $cc_basename in
12758      *)
12759	# FIXME: insert proper C++ library support
12760	ld_shlibs_CXX=no
12761	;;
12762    esac
12763    ;;
12764
12765  cygwin* | mingw* | pw32*)
12766    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12767    # as there is no search path for DLLs.
12768    hardcode_libdir_flag_spec_CXX='-L$libdir'
12769    allow_undefined_flag_CXX=no
12770    always_export_symbols_CXX=no
12771    enable_shared_with_static_runtimes_CXX=yes
12772
12773    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12774      archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12775      # If the export-symbols file already is a .def file (1st line
12776      # is EXPORTS), use it as is; otherwise, prepend...
12777      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12778	cp $export_symbols $output_objdir/$soname.def;
12779      else
12780	echo EXPORTS > $output_objdir/$soname.def;
12781	cat $export_symbols >> $output_objdir/$soname.def;
12782      fi~
12783      $CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12784    else
12785      ld_shlibs_CXX=no
12786    fi
12787  ;;
12788
12789  darwin* | rhapsody*)
12790  if test "$GXX" = yes; then
12791    archive_cmds_need_lc_CXX=no
12792    case "$host_os" in
12793    rhapsody* | darwin1.[012])
12794      allow_undefined_flag_CXX='-Wl,-undefined -Wl,suppress'
12795      ;;
12796    *) # Darwin 1.3 on
12797      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12798	allow_undefined_flag_CXX='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
12799      else
12800	case ${MACOSX_DEPLOYMENT_TARGET} in
12801	  10.012)
12802	    allow_undefined_flag_CXX='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
12803	    ;;
12804	  10.*)
12805	    allow_undefined_flag_CXX='-Wl,-undefined -Wl,dynamic_lookup'
12806	    ;;
12807	esac
12808      fi
12809      ;;
12810    esac
12811    lt_int_apple_cc_single_mod=no
12812    output_verbose_link_cmd='echo'
12813    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12814      lt_int_apple_cc_single_mod=yes
12815    fi
12816    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12817      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
12818    else
12819      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
12820    fi
12821    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
12822
12823    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12824    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12825      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 $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12826    else
12827      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12828    fi
12829    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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12830    hardcode_direct_CXX=no
12831    hardcode_automatic_CXX=yes
12832    hardcode_shlibpath_var_CXX=unsupported
12833    whole_archive_flag_spec_CXX='-all_load $convenience'
12834    link_all_deplibs_CXX=yes
12835  else
12836    ld_shlibs_CXX=no
12837  fi
12838    ;;
12839
12840  dgux*)
12841    case $cc_basename in
12842      ec++)
12843	# FIXME: insert proper C++ library support
12844	ld_shlibs_CXX=no
12845	;;
12846      ghcx)
12847	# Green Hills C++ Compiler
12848	# FIXME: insert proper C++ library support
12849	ld_shlibs_CXX=no
12850	;;
12851      *)
12852	# FIXME: insert proper C++ library support
12853	ld_shlibs_CXX=no
12854	;;
12855    esac
12856    ;;
12857  freebsd12*)
12858    # C++ shared libraries reported to be fairly broken before switch to ELF
12859    ld_shlibs_CXX=no
12860    ;;
12861  freebsd-elf*)
12862    archive_cmds_need_lc_CXX=no
12863    ;;
12864  freebsd* | kfreebsd*-gnu)
12865    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12866    # conventions
12867    ld_shlibs_CXX=yes
12868    ;;
12869  gnu*)
12870    ;;
12871  hpux9*)
12872    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12873    hardcode_libdir_separator_CXX=:
12874    export_dynamic_flag_spec_CXX='${wl}-E'
12875    hardcode_direct_CXX=yes
12876    hardcode_minus_L_CXX=yes # Not in the search PATH,
12877				# but as the default
12878				# location of the library.
12879
12880    case $cc_basename in
12881    CC)
12882      # FIXME: insert proper C++ library support
12883      ld_shlibs_CXX=no
12884      ;;
12885    aCC)
12886      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12887      # Commands to make compiler produce verbose output that lists
12888      # what "hidden" libraries, object files and flags are used when
12889      # linking a shared library.
12890      #
12891      # There doesn't appear to be a way to prevent this compiler from
12892      # explicitly linking system object files so we need to strip them
12893      # from the output so that they don't get included in the library
12894      # dependencies.
12895      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12896      ;;
12897    *)
12898      if test "$GXX" = yes; then
12899        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12900      else
12901        # FIXME: insert proper C++ library support
12902        ld_shlibs_CXX=no
12903      fi
12904      ;;
12905    esac
12906    ;;
12907  hpux10*|hpux11*)
12908    if test $with_gnu_ld = no; then
12909      case "$host_cpu" in
12910      hppa*64*)
12911	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12912	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12913	hardcode_libdir_separator_CXX=:
12914        ;;
12915      ia64*)
12916	hardcode_libdir_flag_spec_CXX='-L$libdir'
12917        ;;
12918      *)
12919	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12920	hardcode_libdir_separator_CXX=:
12921	export_dynamic_flag_spec_CXX='${wl}-E'
12922        ;;
12923      esac
12924    fi
12925    case "$host_cpu" in
12926    hppa*64*)
12927      hardcode_direct_CXX=no
12928      hardcode_shlibpath_var_CXX=no
12929      ;;
12930    ia64*)
12931      hardcode_direct_CXX=no
12932      hardcode_shlibpath_var_CXX=no
12933      hardcode_minus_L_CXX=yes # Not in the search PATH,
12934					      # but as the default
12935					      # location of the library.
12936      ;;
12937    *)
12938      hardcode_direct_CXX=yes
12939      hardcode_minus_L_CXX=yes # Not in the search PATH,
12940					      # but as the default
12941					      # location of the library.
12942      ;;
12943    esac
12944
12945    case $cc_basename in
12946      CC)
12947	# FIXME: insert proper C++ library support
12948	ld_shlibs_CXX=no
12949	;;
12950      aCC)
12951	case "$host_cpu" in
12952	hppa*64*|ia64*)
12953	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12954	  ;;
12955	*)
12956	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
12957	  ;;
12958	esac
12959	# Commands to make compiler produce verbose output that lists
12960	# what "hidden" libraries, object files and flags are used when
12961	# linking a shared library.
12962	#
12963	# There doesn't appear to be a way to prevent this compiler from
12964	# explicitly linking system object files so we need to strip them
12965	# from the output so that they don't get included in the library
12966	# dependencies.
12967	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'
12968	;;
12969      *)
12970	if test "$GXX" = yes; then
12971	  if test $with_gnu_ld = no; then
12972	    case "$host_cpu" in
12973	    ia64*|hppa*64*)
12974	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12975	      ;;
12976	    *)
12977	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
12978	      ;;
12979	    esac
12980	  fi
12981	else
12982	  # FIXME: insert proper C++ library support
12983	  ld_shlibs_CXX=no
12984	fi
12985	;;
12986    esac
12987    ;;
12988  irix5* | irix6*)
12989    case $cc_basename in
12990      CC)
12991	# SGI C++
12992	archive_cmds_CXX='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12993
12994	# Archives containing C++ object files must be created using
12995	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12996	# necessary to make sure instantiated templates are included
12997	# in the archive.
12998	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12999	;;
13000      *)
13001	if test "$GXX" = yes; then
13002	  if test "$with_gnu_ld" = no; then
13003	    archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13004	  else
13005	    archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
13006	  fi
13007	fi
13008	link_all_deplibs_CXX=yes
13009	;;
13010    esac
13011    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13012    hardcode_libdir_separator_CXX=:
13013    ;;
13014  linux*)
13015    case $cc_basename in
13016      KCC)
13017	# Kuck and Associates, Inc. (KAI) C++ Compiler
13018
13019	# KCC will only create a shared library if the output file
13020	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13021	# to its proper name (with version) after linking.
13022	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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
13023	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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13024	# Commands to make compiler produce verbose output that lists
13025	# what "hidden" libraries, object files and flags are used when
13026	# linking a shared library.
13027	#
13028	# There doesn't appear to be a way to prevent this compiler from
13029	# explicitly linking system object files so we need to strip them
13030	# from the output so that they don't get included in the library
13031	# dependencies.
13032	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'
13033
13034	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13035	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13036
13037	# Archives containing C++ object files must be created using
13038	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13039	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13040	;;
13041      icpc)
13042	# Intel C++
13043	with_gnu_ld=yes
13044	archive_cmds_need_lc_CXX=no
13045	archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
13046	archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13047	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13048	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13049	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13050	;;
13051      cxx)
13052	# Compaq C++
13053	archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
13054	archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13055
13056	runpath_var=LD_RUN_PATH
13057	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13058	hardcode_libdir_separator_CXX=:
13059
13060	# Commands to make compiler produce verbose output that lists
13061	# what "hidden" libraries, object files and flags are used when
13062	# linking a shared library.
13063	#
13064	# There doesn't appear to be a way to prevent this compiler from
13065	# explicitly linking system object files so we need to strip them
13066	# from the output so that they don't get included in the library
13067	# dependencies.
13068	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'
13069	;;
13070    esac
13071    ;;
13072  lynxos*)
13073    # FIXME: insert proper C++ library support
13074    ld_shlibs_CXX=no
13075    ;;
13076  m88k*)
13077    # FIXME: insert proper C++ library support
13078    ld_shlibs_CXX=no
13079    ;;
13080  mvs*)
13081    case $cc_basename in
13082      cxx)
13083	# FIXME: insert proper C++ library support
13084	ld_shlibs_CXX=no
13085	;;
13086      *)
13087	# FIXME: insert proper C++ library support
13088	ld_shlibs_CXX=no
13089	;;
13090    esac
13091    ;;
13092  netbsd*)
13093    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13094      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13095      wlarc=
13096      hardcode_libdir_flag_spec_CXX='-R$libdir'
13097      hardcode_direct_CXX=yes
13098      hardcode_shlibpath_var_CXX=no
13099    fi
13100    # Workaround some broken pre-1.5 toolchains
13101    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13102    ;;
13103  osf3*)
13104    case $cc_basename in
13105      KCC)
13106	# Kuck and Associates, Inc. (KAI) C++ Compiler
13107
13108	# KCC will only create a shared library if the output file
13109	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13110	# to its proper name (with version) after linking.
13111	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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
13112
13113	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13114	hardcode_libdir_separator_CXX=:
13115
13116	# Archives containing C++ object files must be created using
13117	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13118	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13119
13120	;;
13121      RCC)
13122	# Rational C++ 2.4.1
13123	# FIXME: insert proper C++ library support
13124	ld_shlibs_CXX=no
13125	;;
13126      cxx)
13127	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13128	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13129
13130	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13131	hardcode_libdir_separator_CXX=:
13132
13133	# Commands to make compiler produce verbose output that lists
13134	# what "hidden" libraries, object files and flags are used when
13135	# linking a shared library.
13136	#
13137	# There doesn't appear to be a way to prevent this compiler from
13138	# explicitly linking system object files so we need to strip them
13139	# from the output so that they don't get included in the library
13140	# dependencies.
13141	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'
13142	;;
13143      *)
13144	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13145	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13146	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13147
13148	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13149	  hardcode_libdir_separator_CXX=:
13150
13151	  # Commands to make compiler produce verbose output that lists
13152	  # what "hidden" libraries, object files and flags are used when
13153	  # linking a shared library.
13154	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13155
13156	else
13157	  # FIXME: insert proper C++ library support
13158	  ld_shlibs_CXX=no
13159	fi
13160	;;
13161    esac
13162    ;;
13163  osf4* | osf5*)
13164    case $cc_basename in
13165      KCC)
13166	# Kuck and Associates, Inc. (KAI) C++ Compiler
13167
13168	# KCC will only create a shared library if the output file
13169	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13170	# to its proper name (with version) after linking.
13171	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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
13172
13173	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13174	hardcode_libdir_separator_CXX=:
13175
13176	# Archives containing C++ object files must be created using
13177	# the KAI C++ compiler.
13178	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13179	;;
13180      RCC)
13181	# Rational C++ 2.4.1
13182	# FIXME: insert proper C++ library support
13183	ld_shlibs_CXX=no
13184	;;
13185      cxx)
13186	allow_undefined_flag_CXX=' -expect_unresolved \*'
13187	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13188	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13189	  echo "-hidden">> $lib.exp~
13190	  $CC -shared$allow_undefined_flag $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~
13191	  $rm $lib.exp'
13192
13193	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13194	hardcode_libdir_separator_CXX=:
13195
13196	# Commands to make compiler produce verbose output that lists
13197	# what "hidden" libraries, object files and flags are used when
13198	# linking a shared library.
13199	#
13200	# There doesn't appear to be a way to prevent this compiler from
13201	# explicitly linking system object files so we need to strip them
13202	# from the output so that they don't get included in the library
13203	# dependencies.
13204	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'
13205	;;
13206      *)
13207	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13208	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13209	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13210
13211	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13212	  hardcode_libdir_separator_CXX=:
13213
13214	  # Commands to make compiler produce verbose output that lists
13215	  # what "hidden" libraries, object files and flags are used when
13216	  # linking a shared library.
13217	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13218
13219	else
13220	  # FIXME: insert proper C++ library support
13221	  ld_shlibs_CXX=no
13222	fi
13223	;;
13224    esac
13225    ;;
13226  psos*)
13227    # FIXME: insert proper C++ library support
13228    ld_shlibs_CXX=no
13229    ;;
13230  sco*)
13231    archive_cmds_need_lc_CXX=no
13232    case $cc_basename in
13233      CC)
13234	# FIXME: insert proper C++ library support
13235	ld_shlibs_CXX=no
13236	;;
13237      *)
13238	# FIXME: insert proper C++ library support
13239	ld_shlibs_CXX=no
13240	;;
13241    esac
13242    ;;
13243  sunos4*)
13244    case $cc_basename in
13245      CC)
13246	# Sun C++ 4.x
13247	# FIXME: insert proper C++ library support
13248	ld_shlibs_CXX=no
13249	;;
13250      lcc)
13251	# Lucid
13252	# FIXME: insert proper C++ library support
13253	ld_shlibs_CXX=no
13254	;;
13255      *)
13256	# FIXME: insert proper C++ library support
13257	ld_shlibs_CXX=no
13258	;;
13259    esac
13260    ;;
13261  solaris*)
13262    case $cc_basename in
13263      CC)
13264	# Sun C++ 4.2, 5.x and Centerline C++
13265	no_undefined_flag_CXX=' -zdefs'
13266	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
13267	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13268	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
13269
13270	hardcode_libdir_flag_spec_CXX='-R$libdir'
13271	hardcode_shlibpath_var_CXX=no
13272	case $host_os in
13273	  solaris2.0-5 | solaris2.0-5.*) ;;
13274	  *)
13275	    # The C++ compiler is used as linker so we must use $wl
13276	    # flag to pass the commands to the underlying system
13277	    # linker.
13278	    # Supported since Solaris 2.6 (maybe 2.5.1?)
13279	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13280	    ;;
13281	esac
13282	link_all_deplibs_CXX=yes
13283
13284	# Commands to make compiler produce verbose output that lists
13285	# what "hidden" libraries, object files and flags are used when
13286	# linking a shared library.
13287	#
13288	# There doesn't appear to be a way to prevent this compiler from
13289	# explicitly linking system object files so we need to strip them
13290	# from the output so that they don't get included in the library
13291	# dependencies.
13292	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13293
13294	# Archives containing C++ object files must be created using
13295	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
13296	# necessary to make sure instantiated templates are included
13297	# in the archive.
13298	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13299	;;
13300      gcx)
13301	# Green Hills C++ Compiler
13302	archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
13303
13304	# The C++ compiler must be used to create the archive.
13305	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13306	;;
13307      *)
13308	# GNU C++ compiler with Solaris linker
13309	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13310	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13311	  if $CC --version | grep -v '^2\.7' > /dev/null; then
13312	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
13313	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13314		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
13315
13316	    # Commands to make compiler produce verbose output that lists
13317	    # what "hidden" libraries, object files and flags are used when
13318	    # linking a shared library.
13319	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13320	  else
13321	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
13322	    # platform.
13323	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
13324	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13325		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
13326
13327	    # Commands to make compiler produce verbose output that lists
13328	    # what "hidden" libraries, object files and flags are used when
13329	    # linking a shared library.
13330	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13331	  fi
13332
13333	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13334	fi
13335	;;
13336    esac
13337    ;;
13338  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13339    archive_cmds_need_lc_CXX=no
13340    ;;
13341  tandem*)
13342    case $cc_basename in
13343      NCC)
13344	# NonStop-UX NCC 3.20
13345	# FIXME: insert proper C++ library support
13346	ld_shlibs_CXX=no
13347	;;
13348      *)
13349	# FIXME: insert proper C++ library support
13350	ld_shlibs_CXX=no
13351	;;
13352    esac
13353    ;;
13354  vxworks*)
13355    # FIXME: insert proper C++ library support
13356    ld_shlibs_CXX=no
13357    ;;
13358  *)
13359    # FIXME: insert proper C++ library support
13360    ld_shlibs_CXX=no
13361    ;;
13362esac
13363echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13364echo "${ECHO_T}$ld_shlibs_CXX" >&6
13365test "$ld_shlibs_CXX" = no && can_build_shared=no
13366
13367GCC_CXX="$GXX"
13368LD_CXX="$LD"
13369
13370## CAVEAT EMPTOR:
13371## There is no encapsulation within the following macros, do not change
13372## the running order or otherwise move them around unless you know exactly
13373## what you are doing...
13374
13375cat > conftest.$ac_ext <<EOF
13376class Foo
13377{
13378public:
13379  Foo (void) { a = 0; }
13380private:
13381  int a;
13382};
13383EOF
13384
13385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13386  (eval $ac_compile) 2>&5
13387  ac_status=$?
13388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389  (exit $ac_status); }; then
13390  # Parse the compiler output and extract the necessary
13391  # objects, libraries and library flags.
13392
13393  # Sentinel used to keep track of whether or not we are before
13394  # the conftest object file.
13395  pre_test_object_deps_done=no
13396
13397  # The `*' in the case matches for architectures that use `case' in
13398  # $output_verbose_cmd can trigger glob expansion during the loop
13399  # eval without this substitution.
13400  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13401
13402  for p in `eval $output_verbose_link_cmd`; do
13403    case $p in
13404
13405    -L* | -R* | -l*)
13406       # Some compilers place space between "-{L,R}" and the path.
13407       # Remove the space.
13408       if test $p = "-L" \
13409	  || test $p = "-R"; then
13410	 prev=$p
13411	 continue
13412       else
13413	 prev=
13414       fi
13415
13416       if test "$pre_test_object_deps_done" = no; then
13417	 case $p in
13418	 -L* | -R*)
13419	   # Internal compiler library paths should come after those
13420	   # provided the user.  The postdeps already come after the
13421	   # user supplied libs so there is no need to process them.
13422	   if test -z "$compiler_lib_search_path_CXX"; then
13423	     compiler_lib_search_path_CXX="${prev}${p}"
13424	   else
13425	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13426	   fi
13427	   ;;
13428	 # The "-l" case would never come before the object being
13429	 # linked, so don't bother handling this case.
13430	 esac
13431       else
13432	 if test -z "$postdeps_CXX"; then
13433	   postdeps_CXX="${prev}${p}"
13434	 else
13435	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13436	 fi
13437       fi
13438       ;;
13439
13440    *.$objext|*.$libext)
13441       # This assumes that the test object file only shows up
13442       # once in the compiler output.
13443       if test "$p" = "conftest.$objext"; then
13444	 pre_test_object_deps_done=yes
13445	 continue
13446       fi
13447
13448       if test "$pre_test_object_deps_done" = no; then
13449	 if test -z "$predep_objects_CXX"; then
13450	   predep_objects_CXX="$p"
13451	 else
13452	   predep_objects_CXX="$predep_objects_CXX $p"
13453	 fi
13454       else
13455	 if test -z "$postdep_objects_CXX"; then
13456	   postdep_objects_CXX="$p"
13457	 else
13458	   postdep_objects_CXX="$postdep_objects_CXX $p"
13459	 fi
13460       fi
13461       ;;
13462
13463    *) ;; # Ignore the rest.
13464
13465    esac
13466  done
13467
13468  # Clean up.
13469  rm -f a.out a.exe
13470else
13471  echo "libtool.m4: error: problem compiling CXX test program"
13472fi
13473
13474$rm -f confest.$objext
13475
13476case " $postdeps_CXX " in
13477*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13478esac
13479
13480lt_prog_compiler_wl_CXX=
13481lt_prog_compiler_pic_CXX=
13482lt_prog_compiler_static_CXX=
13483
13484echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13485echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13486
13487  # C++ specific cases for pic, static, wl, etc.
13488  if test "$GXX" = yes; then
13489    lt_prog_compiler_wl_CXX='-Wl,'
13490    lt_prog_compiler_static_CXX='-static'
13491
13492    case $host_os in
13493    aix*)
13494      # All AIX code is PIC.
13495      if test "$host_cpu" = ia64; then
13496	# AIX 5 now supports IA64 processor
13497	lt_prog_compiler_static_CXX='-Bstatic'
13498      fi
13499      ;;
13500    amigaos*)
13501      # FIXME: we need at least 68020 code to build shared libraries, but
13502      # adding the `-m68020' flag to GCC prevents building anything better,
13503      # like `-m68040'.
13504      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13505      ;;
13506    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13507      # PIC is the default for these OSes.
13508      ;;
13509    mingw* | os2* | pw32*)
13510      # This hack is so that the source file can tell whether it is being
13511      # built for inclusion in a dll (and should export symbols for example).
13512      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13513      ;;
13514    darwin* | rhapsody*)
13515      # PIC is the default on this platform
13516      # Common symbols not allowed in MH_DYLIB files
13517      lt_prog_compiler_pic_CXX='-fno-common'
13518      ;;
13519    *djgpp*)
13520      # DJGPP does not support shared libraries at all
13521      lt_prog_compiler_pic_CXX=
13522      ;;
13523    sysv4*MP*)
13524      if test -d /usr/nec; then
13525	lt_prog_compiler_pic_CXX=-Kconform_pic
13526      fi
13527      ;;
13528    hpux*)
13529      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13530      # not for PA HP-UX.
13531      case "$host_cpu" in
13532      hppa*64*|ia64*)
13533	;;
13534      *)
13535	lt_prog_compiler_pic_CXX='-fPIC'
13536	;;
13537      esac
13538      ;;
13539    *)
13540      lt_prog_compiler_pic_CXX='-fPIC'
13541      ;;
13542    esac
13543  else
13544    case $host_os in
13545      aix4* | aix5*)
13546	# All AIX code is PIC.
13547	if test "$host_cpu" = ia64; then
13548	  # AIX 5 now supports IA64 processor
13549	  lt_prog_compiler_static_CXX='-Bstatic'
13550	else
13551	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13552	fi
13553	;;
13554      chorus*)
13555	case $cc_basename in
13556	cxch68)
13557	  # Green Hills C++ Compiler
13558	  # _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"
13559	  ;;
13560	esac
13561	;;
13562      dgux*)
13563	case $cc_basename in
13564	  ec++)
13565	    lt_prog_compiler_pic_CXX='-KPIC'
13566	    ;;
13567	  ghcx)
13568	    # Green Hills C++ Compiler
13569	    lt_prog_compiler_pic_CXX='-pic'
13570	    ;;
13571	  *)
13572	    ;;
13573	esac
13574	;;
13575      freebsd* | kfreebsd*-gnu)
13576	# FreeBSD uses GNU C++
13577	;;
13578      hpux9* | hpux10* | hpux11*)
13579	case $cc_basename in
13580	  CC)
13581	    lt_prog_compiler_wl_CXX='-Wl,'
13582	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13583	    if test "$host_cpu" != ia64; then
13584	      lt_prog_compiler_pic_CXX='+Z'
13585	    fi
13586	    ;;
13587	  aCC)
13588	    lt_prog_compiler_wl_CXX='-Wl,'
13589	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13590	    case "$host_cpu" in
13591	    hppa*64*|ia64*)
13592	      # +Z the default
13593	      ;;
13594	    *)
13595	      lt_prog_compiler_pic_CXX='+Z'
13596	      ;;
13597	    esac
13598	    ;;
13599	  *)
13600	    ;;
13601	esac
13602	;;
13603      irix5* | irix6* | nonstopux*)
13604	case $cc_basename in
13605	  CC)
13606	    lt_prog_compiler_wl_CXX='-Wl,'
13607	    lt_prog_compiler_static_CXX='-non_shared'
13608	    # CC pic flag -KPIC is the default.
13609	    ;;
13610	  *)
13611	    ;;
13612	esac
13613	;;
13614      linux*)
13615	case $cc_basename in
13616	  KCC)
13617	    # KAI C++ Compiler
13618	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13619	    lt_prog_compiler_pic_CXX='-fPIC'
13620	    ;;
13621	  icpc)
13622	    # Intel C++
13623	    lt_prog_compiler_wl_CXX='-Wl,'
13624	    lt_prog_compiler_pic_CXX='-KPIC'
13625	    lt_prog_compiler_static_CXX='-static'
13626	    ;;
13627	  cxx)
13628	    # Compaq C++
13629	    # Make sure the PIC flag is empty.  It appears that all Alpha
13630	    # Linux and Compaq Tru64 Unix objects are PIC.
13631	    lt_prog_compiler_pic_CXX=
13632	    lt_prog_compiler_static_CXX='-non_shared'
13633	    ;;
13634	  *)
13635	    ;;
13636	esac
13637	;;
13638      lynxos*)
13639	;;
13640      m88k*)
13641	;;
13642      mvs*)
13643	case $cc_basename in
13644	  cxx)
13645	    lt_prog_compiler_pic_CXX='-W c,exportall'
13646	    ;;
13647	  *)
13648	    ;;
13649	esac
13650	;;
13651      netbsd*)
13652	;;
13653      osf3* | osf4* | osf5*)
13654	case $cc_basename in
13655	  KCC)
13656	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13657	    ;;
13658	  RCC)
13659	    # Rational C++ 2.4.1
13660	    lt_prog_compiler_pic_CXX='-pic'
13661	    ;;
13662	  cxx)
13663	    # Digital/Compaq C++
13664	    lt_prog_compiler_wl_CXX='-Wl,'
13665	    # Make sure the PIC flag is empty.  It appears that all Alpha
13666	    # Linux and Compaq Tru64 Unix objects are PIC.
13667	    lt_prog_compiler_pic_CXX=
13668	    lt_prog_compiler_static_CXX='-non_shared'
13669	    ;;
13670	  *)
13671	    ;;
13672	esac
13673	;;
13674      psos*)
13675	;;
13676      sco*)
13677	case $cc_basename in
13678	  CC)
13679	    lt_prog_compiler_pic_CXX='-fPIC'
13680	    ;;
13681	  *)
13682	    ;;
13683	esac
13684	;;
13685      solaris*)
13686	case $cc_basename in
13687	  CC)
13688	    # Sun C++ 4.2, 5.x and Centerline C++
13689	    lt_prog_compiler_pic_CXX='-KPIC'
13690	    lt_prog_compiler_static_CXX='-Bstatic'
13691	    lt_prog_compiler_wl_CXX='-Qoption ld '
13692	    ;;
13693	  gcx)
13694	    # Green Hills C++ Compiler
13695	    lt_prog_compiler_pic_CXX='-PIC'
13696	    ;;
13697	  *)
13698	    ;;
13699	esac
13700	;;
13701      sunos4*)
13702	case $cc_basename in
13703	  CC)
13704	    # Sun C++ 4.x
13705	    lt_prog_compiler_pic_CXX='-pic'
13706	    lt_prog_compiler_static_CXX='-Bstatic'
13707	    ;;
13708	  lcc)
13709	    # Lucid
13710	    lt_prog_compiler_pic_CXX='-pic'
13711	    ;;
13712	  *)
13713	    ;;
13714	esac
13715	;;
13716      tandem*)
13717	case $cc_basename in
13718	  NCC)
13719	    # NonStop-UX NCC 3.20
13720	    lt_prog_compiler_pic_CXX='-KPIC'
13721	    ;;
13722	  *)
13723	    ;;
13724	esac
13725	;;
13726      unixware*)
13727	;;
13728      vxworks*)
13729	;;
13730      *)
13731	lt_prog_compiler_can_build_shared_CXX=no
13732	;;
13733    esac
13734  fi
13735
13736echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13737echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13738
13739#
13740# Check to make sure the PIC flag actually works.
13741#
13742if test -n "$lt_prog_compiler_pic_CXX"; then
13743
13744echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13745echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13746if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13747  echo $ECHO_N "(cached) $ECHO_C" >&6
13748else
13749  lt_prog_compiler_pic_works_CXX=no
13750  ac_outfile=conftest.$ac_objext
13751   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13752   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13753   # Insert the option either (1) after the last *FLAGS variable, or
13754   # (2) before a word containing "conftest.", or (3) at the end.
13755   # Note that $ac_compile itself does not contain backslashes and begins
13756   # with a dollar sign (not a hyphen), so the echo should work correctly.
13757   # The option is referenced via a variable to avoid confusing sed.
13758   lt_compile=`echo "$ac_compile" | $SED \
13759   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13760   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13761   -e 's:$: $lt_compiler_flag:'`
13762   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13763   (eval "$lt_compile" 2>conftest.err)
13764   ac_status=$?
13765   cat conftest.err >&5
13766   echo "$as_me:__oline__: \$? = $ac_status" >&5
13767   if (exit $ac_status) && test -s "$ac_outfile"; then
13768     # The compiler can only warn and ignore the option if not recognized
13769     # So say no if there are warnings
13770     if test ! -s conftest.err; then
13771       lt_prog_compiler_pic_works_CXX=yes
13772     fi
13773   fi
13774   $rm conftest*
13775
13776fi
13777echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13778echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13779
13780if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13781    case $lt_prog_compiler_pic_CXX in
13782     "" | " "*) ;;
13783     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13784     esac
13785else
13786    lt_prog_compiler_pic_CXX=
13787     lt_prog_compiler_can_build_shared_CXX=no
13788fi
13789
13790fi
13791case "$host_os" in
13792  # For platforms which do not support PIC, -DPIC is meaningless:
13793  *djgpp*)
13794    lt_prog_compiler_pic_CXX=
13795    ;;
13796  *)
13797    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13798    ;;
13799esac
13800
13801echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13802echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13803if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13804  echo $ECHO_N "(cached) $ECHO_C" >&6
13805else
13806  lt_cv_prog_compiler_c_o_CXX=no
13807   $rm -r conftest 2>/dev/null
13808   mkdir conftest
13809   cd conftest
13810   mkdir out
13811   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13812
13813   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13814   # that will create temporary files in the current directory regardless of
13815   # the output directory.  Thus, making CWD read-only will cause this test
13816   # to fail, enabling locking or at least warning the user not to do parallel
13817   # builds.
13818   chmod -w .
13819
13820   lt_compiler_flag="-o out/conftest2.$ac_objext"
13821   # Insert the option either (1) after the last *FLAGS variable, or
13822   # (2) before a word containing "conftest.", or (3) at the end.
13823   # Note that $ac_compile itself does not contain backslashes and begins
13824   # with a dollar sign (not a hyphen), so the echo should work correctly.
13825   lt_compile=`echo "$ac_compile" | $SED \
13826   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13827   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13828   -e 's:$: $lt_compiler_flag:'`
13829   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13830   (eval "$lt_compile" 2>out/conftest.err)
13831   ac_status=$?
13832   cat out/conftest.err >&5
13833   echo "$as_me:__oline__: \$? = $ac_status" >&5
13834   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13835   then
13836     # The compiler can only warn and ignore the option if not recognized
13837     # So say no if there are warnings
13838     if test ! -s out/conftest.err; then
13839       lt_cv_prog_compiler_c_o_CXX=yes
13840     fi
13841   fi
13842   chmod u+w .
13843   $rm conftest* out/*
13844   rmdir out
13845   cd ..
13846   rmdir conftest
13847   $rm conftest*
13848
13849fi
13850echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13851echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13852
13853
13854hard_links="nottested"
13855if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13856  # do not overwrite the value of need_locks provided by the user
13857  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13858echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13859  hard_links=yes
13860  $rm conftest*
13861  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13862  touch conftest.a
13863  ln conftest.a conftest.b 2>&5 || hard_links=no
13864  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13865  echo "$as_me:$LINENO: result: $hard_links" >&5
13866echo "${ECHO_T}$hard_links" >&6
13867  if test "$hard_links" = no; then
13868    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13869echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13870    need_locks=warn
13871  fi
13872else
13873  need_locks=no
13874fi
13875
13876echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13877echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13878
13879  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13880  case $host_os in
13881  aix4* | aix5*)
13882    # If we're using GNU nm, then we don't want the "-C" option.
13883    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13884    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13885      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'
13886    else
13887      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'
13888    fi
13889    ;;
13890  pw32*)
13891    export_symbols_cmds_CXX="$ltdll_cmds"
13892  ;;
13893  cygwin* | mingw*)
13894    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13895  ;;
13896  *)
13897    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13898  ;;
13899  esac
13900
13901echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13902echo "${ECHO_T}$ld_shlibs_CXX" >&6
13903test "$ld_shlibs_CXX" = no && can_build_shared=no
13904
13905variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13906if test "$GCC" = yes; then
13907  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13908fi
13909
13910#
13911# Do we need to explicitly link libc?
13912#
13913case "x$archive_cmds_need_lc_CXX" in
13914x|xyes)
13915  # Assume -lc should be added
13916  archive_cmds_need_lc_CXX=yes
13917
13918  if test "$enable_shared" = yes && test "$GCC" = yes; then
13919    case $archive_cmds_CXX in
13920    *'~'*)
13921      # FIXME: we may have to deal with multi-command sequences.
13922      ;;
13923    '$CC '*)
13924      # Test whether the compiler implicitly links with -lc since on some
13925      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13926      # to ld, don't add -lc before -lgcc.
13927      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13928echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13929      $rm conftest*
13930      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13931
13932      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13933  (eval $ac_compile) 2>&5
13934  ac_status=$?
13935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936  (exit $ac_status); } 2>conftest.err; then
13937        soname=conftest
13938        lib=conftest
13939        libobjs=conftest.$ac_objext
13940        deplibs=
13941        wl=$lt_prog_compiler_wl_CXX
13942        compiler_flags=-v
13943        linker_flags=-v
13944        verstring=
13945        output_objdir=.
13946        libname=conftest
13947        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13948        allow_undefined_flag_CXX=
13949        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13950  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13951  ac_status=$?
13952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953  (exit $ac_status); }
13954        then
13955	  archive_cmds_need_lc_CXX=no
13956        else
13957	  archive_cmds_need_lc_CXX=yes
13958        fi
13959        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13960      else
13961        cat conftest.err 1>&5
13962      fi
13963      $rm conftest*
13964      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13965echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13966      ;;
13967    esac
13968  fi
13969  ;;
13970esac
13971
13972echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13973echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13974library_names_spec=
13975libname_spec='lib$name'
13976soname_spec=
13977shrext=".so"
13978postinstall_cmds=
13979postuninstall_cmds=
13980finish_cmds=
13981finish_eval=
13982shlibpath_var=
13983shlibpath_overrides_runpath=unknown
13984version_type=none
13985dynamic_linker="$host_os ld.so"
13986sys_lib_dlsearch_path_spec="/lib /usr/lib"
13987sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13988need_lib_prefix=unknown
13989hardcode_into_libs=no
13990
13991# when you set need_version to no, make sure it does not cause -set_version
13992# flags to be left without arguments
13993need_version=unknown
13994
13995case $host_os in
13996aix3*)
13997  version_type=linux
13998  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13999  shlibpath_var=LIBPATH
14000
14001  # AIX 3 has no versioning support, so we append a major version to the name.
14002  soname_spec='${libname}${release}${shared_ext}$major'
14003  ;;
14004
14005aix4* | aix5*)
14006  version_type=linux
14007  need_lib_prefix=no
14008  need_version=no
14009  hardcode_into_libs=yes
14010  if test "$host_cpu" = ia64; then
14011    # AIX 5 supports IA64
14012    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14013    shlibpath_var=LD_LIBRARY_PATH
14014  else
14015    # With GCC up to 2.95.x, collect2 would create an import file
14016    # for dependence libraries.  The import file would start with
14017    # the line `#! .'.  This would cause the generated library to
14018    # depend on `.', always an invalid library.  This was fixed in
14019    # development snapshots of GCC prior to 3.0.
14020    case $host_os in
14021      aix4 | aix4.[01] | aix4.[01].*)
14022      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14023	   echo ' yes '
14024	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14025	:
14026      else
14027	can_build_shared=no
14028      fi
14029      ;;
14030    esac
14031    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14032    # soname into executable. Probably we can add versioning support to
14033    # collect2, so additional links can be useful in future.
14034    if test "$aix_use_runtimelinking" = yes; then
14035      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14036      # instead of lib<name>.a to let people know that these are not
14037      # typical AIX shared libraries.
14038      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14039    else
14040      # We preserve .a as extension for shared libraries through AIX4.2
14041      # and later when we are not doing run time linking.
14042      library_names_spec='${libname}${release}.a $libname.a'
14043      soname_spec='${libname}${release}${shared_ext}$major'
14044    fi
14045    shlibpath_var=LIBPATH
14046  fi
14047  ;;
14048
14049amigaos*)
14050  library_names_spec='$libname.ixlibrary $libname.a'
14051  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14052  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'
14053  ;;
14054
14055beos*)
14056  library_names_spec='${libname}${shared_ext}'
14057  dynamic_linker="$host_os ld.so"
14058  shlibpath_var=LIBRARY_PATH
14059  ;;
14060
14061bsdi4*)
14062  version_type=linux
14063  need_version=no
14064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14065  soname_spec='${libname}${release}${shared_ext}$major'
14066  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14067  shlibpath_var=LD_LIBRARY_PATH
14068  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14069  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14070  # the default ld.so.conf also contains /usr/contrib/lib and
14071  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14072  # libtool to hard-code these into programs
14073  ;;
14074
14075cygwin* | mingw* | pw32*)
14076  version_type=windows
14077  shrext=".dll"
14078  need_version=no
14079  need_lib_prefix=no
14080
14081  case $GCC,$host_os in
14082  yes,cygwin* | yes,mingw* | yes,pw32*)
14083    library_names_spec='$libname.dll.a'
14084    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14085    postinstall_cmds='base_file=`basename \${file}`~
14086      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14087      dldir=$destdir/`dirname \$dlpath`~
14088      test -d \$dldir || mkdir -p \$dldir~
14089      $install_prog $dir/$dlname \$dldir/$dlname'
14090    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14091      dlpath=$dir/\$dldll~
14092       $rm \$dlpath'
14093    shlibpath_overrides_runpath=yes
14094
14095    case $host_os in
14096    cygwin*)
14097      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14098      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14099      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14100      ;;
14101    mingw*)
14102      # MinGW DLLs use traditional 'lib' prefix
14103      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14104      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14105      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14106        # It is most probably a Windows format PATH printed by
14107        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14108        # path with ; separators, and with drive letters. We can handle the
14109        # drive letters (cygwin fileutils understands them), so leave them,
14110        # especially as we might pass files found there to a mingw objdump,
14111        # which wouldn't understand a cygwinified path. Ahh.
14112        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14113      else
14114        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14115      fi
14116      ;;
14117    pw32*)
14118      # pw32 DLLs use 'pw' prefix rather than 'lib'
14119      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14120      ;;
14121    esac
14122    ;;
14123
14124  *)
14125    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14126    ;;
14127  esac
14128  dynamic_linker='Win32 ld.exe'
14129  # FIXME: first we should search . and the directory the executable is in
14130  shlibpath_var=PATH
14131  ;;
14132
14133darwin* | rhapsody*)
14134  dynamic_linker="$host_os dyld"
14135  version_type=darwin
14136  need_lib_prefix=no
14137  need_version=no
14138  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14139  soname_spec='${libname}${release}${major}$shared_ext'
14140  shlibpath_overrides_runpath=yes
14141  shlibpath_var=DYLD_LIBRARY_PATH
14142  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14143  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14144  if test "$GCC" = yes; then
14145    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"`
14146  else
14147    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14148  fi
14149  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14150  ;;
14151
14152dgux*)
14153  version_type=linux
14154  need_lib_prefix=no
14155  need_version=no
14156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14157  soname_spec='${libname}${release}${shared_ext}$major'
14158  shlibpath_var=LD_LIBRARY_PATH
14159  ;;
14160
14161freebsd1*)
14162  dynamic_linker=no
14163  ;;
14164
14165kfreebsd*-gnu*)
14166  version_type=linux
14167  need_lib_prefix=no
14168  need_version=no
14169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14170  soname_spec='${libname}${release}${shared_ext}$major'
14171  shlibpath_var=LD_LIBRARY_PATH
14172  shlibpath_overrides_runpath=no
14173  hardcode_into_libs=yes
14174  dynamic_linker='GNU ld.so'
14175  ;;
14176
14177freebsd*)
14178  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14179  version_type=freebsd-$objformat
14180  case $version_type in
14181    freebsd-elf*)
14182      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14183      need_version=no
14184      need_lib_prefix=no
14185      ;;
14186    freebsd-*)
14187      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14188      need_version=yes
14189      ;;
14190  esac
14191  shlibpath_var=LD_LIBRARY_PATH
14192  case $host_os in
14193  freebsd2*)
14194    shlibpath_overrides_runpath=yes
14195    ;;
14196  freebsd3.01* | freebsdelf3.01*)
14197    shlibpath_overrides_runpath=yes
14198    hardcode_into_libs=yes
14199    ;;
14200  *) # from 3.2 on
14201    shlibpath_overrides_runpath=no
14202    hardcode_into_libs=yes
14203    ;;
14204  esac
14205  ;;
14206
14207gnu*)
14208  version_type=linux
14209  need_lib_prefix=no
14210  need_version=no
14211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14212  soname_spec='${libname}${release}${shared_ext}$major'
14213  shlibpath_var=LD_LIBRARY_PATH
14214  hardcode_into_libs=yes
14215  ;;
14216
14217hpux9* | hpux10* | hpux11*)
14218  # Give a soname corresponding to the major version so that dld.sl refuses to
14219  # link against other versions.
14220  version_type=sunos
14221  need_lib_prefix=no
14222  need_version=no
14223  case "$host_cpu" in
14224  ia64*)
14225    shrext='.so'
14226    hardcode_into_libs=yes
14227    dynamic_linker="$host_os dld.so"
14228    shlibpath_var=LD_LIBRARY_PATH
14229    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14230    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14231    soname_spec='${libname}${release}${shared_ext}$major'
14232    if test "X$HPUX_IA64_MODE" = X32; then
14233      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14234    else
14235      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14236    fi
14237    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14238    ;;
14239   hppa*64*)
14240     shrext='.sl'
14241     hardcode_into_libs=yes
14242     dynamic_linker="$host_os dld.sl"
14243     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14244     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14245     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14246     soname_spec='${libname}${release}${shared_ext}$major'
14247     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14248     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14249     ;;
14250   *)
14251    shrext='.sl'
14252    dynamic_linker="$host_os dld.sl"
14253    shlibpath_var=SHLIB_PATH
14254    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14255    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14256    soname_spec='${libname}${release}${shared_ext}$major'
14257    ;;
14258  esac
14259  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14260  postinstall_cmds='chmod 555 $lib'
14261  ;;
14262
14263irix5* | irix6* | nonstopux*)
14264  case $host_os in
14265    nonstopux*) version_type=nonstopux ;;
14266    *)
14267	if test "$lt_cv_prog_gnu_ld" = yes; then
14268		version_type=linux
14269	else
14270		version_type=irix
14271	fi ;;
14272  esac
14273  need_lib_prefix=no
14274  need_version=no
14275  soname_spec='${libname}${release}${shared_ext}$major'
14276  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14277  case $host_os in
14278  irix5* | nonstopux*)
14279    libsuff= shlibsuff=
14280    ;;
14281  *)
14282    case $LD in # libtool.m4 will add one of these switches to LD
14283    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14284      libsuff= shlibsuff= libmagic=32-bit;;
14285    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14286      libsuff=32 shlibsuff=N32 libmagic=N32;;
14287    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14288      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14289    *) libsuff= shlibsuff= libmagic=never-match;;
14290    esac
14291    ;;
14292  esac
14293  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14294  shlibpath_overrides_runpath=no
14295  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14296  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14297  hardcode_into_libs=yes
14298  ;;
14299
14300# No shared lib support for Linux oldld, aout, or coff.
14301linux*oldld* | linux*aout* | linux*coff*)
14302  dynamic_linker=no
14303  ;;
14304
14305# This must be Linux ELF.
14306linux*)
14307  version_type=linux
14308  need_lib_prefix=no
14309  need_version=no
14310  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14311  soname_spec='${libname}${release}${shared_ext}$major'
14312  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14313  libsuff=
14314  if test "x$LINUX_64_MODE" = x64; then
14315    # Some platforms are per default 64-bit, so there's no /lib64
14316    if test -d /lib64; then
14317      libsuff=64
14318    fi
14319  fi
14320  shlibpath_var=LD_LIBRARY_PATH
14321  shlibpath_overrides_runpath=no
14322  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
14323  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14324  # This implies no fast_install, which is unacceptable.
14325  # Some rework will be needed to allow for fast_install
14326  # before this can be enabled.
14327  hardcode_into_libs=yes
14328
14329  # We used to test for /lib/ld.so.1 and disable shared libraries on
14330  # powerpc, because MkLinux only supported shared libraries with the
14331  # GNU dynamic linker.  Since this was broken with cross compilers,
14332  # most powerpc-linux boxes support dynamic linking these days and
14333  # people can always --disable-shared, the test was removed, and we
14334  # assume the GNU/Linux dynamic linker is in use.
14335  dynamic_linker='GNU/Linux ld.so'
14336  ;;
14337
14338netbsd*)
14339  version_type=sunos
14340  need_lib_prefix=no
14341  need_version=no
14342  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14343    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14344    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14345    dynamic_linker='NetBSD (a.out) ld.so'
14346  else
14347    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14348    soname_spec='${libname}${release}${shared_ext}$major'
14349    dynamic_linker='NetBSD ld.elf_so'
14350  fi
14351  shlibpath_var=LD_LIBRARY_PATH
14352  shlibpath_overrides_runpath=yes
14353  hardcode_into_libs=yes
14354  ;;
14355
14356newsos6)
14357  version_type=linux
14358  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14359  shlibpath_var=LD_LIBRARY_PATH
14360  shlibpath_overrides_runpath=yes
14361  ;;
14362
14363nto-qnx*)
14364  version_type=linux
14365  need_lib_prefix=no
14366  need_version=no
14367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14368  soname_spec='${libname}${release}${shared_ext}$major'
14369  shlibpath_var=LD_LIBRARY_PATH
14370  shlibpath_overrides_runpath=yes
14371  ;;
14372
14373openbsd*)
14374  version_type=sunos
14375  need_lib_prefix=no
14376  need_version=no
14377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14378  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14379  shlibpath_var=LD_LIBRARY_PATH
14380  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14381    case $host_os in
14382      openbsd2.[89] | openbsd2.[89].*)
14383	shlibpath_overrides_runpath=no
14384	;;
14385      *)
14386	shlibpath_overrides_runpath=yes
14387	;;
14388      esac
14389  else
14390    shlibpath_overrides_runpath=yes
14391  fi
14392  ;;
14393
14394os2*)
14395  libname_spec='$name'
14396  shrext=".dll"
14397  need_lib_prefix=no
14398  library_names_spec='$libname${shared_ext} $libname.a'
14399  dynamic_linker='OS/2 ld.exe'
14400  shlibpath_var=LIBPATH
14401  ;;
14402
14403osf3* | osf4* | osf5*)
14404  version_type=osf
14405  need_lib_prefix=no
14406  need_version=no
14407  soname_spec='${libname}${release}${shared_ext}$major'
14408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14409  shlibpath_var=LD_LIBRARY_PATH
14410  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14411  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14412  ;;
14413
14414sco3.2v5*)
14415  version_type=osf
14416  soname_spec='${libname}${release}${shared_ext}$major'
14417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14418  shlibpath_var=LD_LIBRARY_PATH
14419  ;;
14420
14421solaris*)
14422  version_type=linux
14423  need_lib_prefix=no
14424  need_version=no
14425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14426  soname_spec='${libname}${release}${shared_ext}$major'
14427  shlibpath_var=LD_LIBRARY_PATH
14428  shlibpath_overrides_runpath=yes
14429  hardcode_into_libs=yes
14430  # ldd complains unless libraries are executable
14431  postinstall_cmds='chmod +x $lib'
14432  ;;
14433
14434sunos4*)
14435  version_type=sunos
14436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14437  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14438  shlibpath_var=LD_LIBRARY_PATH
14439  shlibpath_overrides_runpath=yes
14440  if test "$with_gnu_ld" = yes; then
14441    need_lib_prefix=no
14442  fi
14443  need_version=yes
14444  ;;
14445
14446sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14447  version_type=linux
14448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14449  soname_spec='${libname}${release}${shared_ext}$major'
14450  shlibpath_var=LD_LIBRARY_PATH
14451  case $host_vendor in
14452    sni)
14453      shlibpath_overrides_runpath=no
14454      need_lib_prefix=no
14455      export_dynamic_flag_spec='${wl}-Blargedynsym'
14456      runpath_var=LD_RUN_PATH
14457      ;;
14458    siemens)
14459      need_lib_prefix=no
14460      ;;
14461    motorola)
14462      need_lib_prefix=no
14463      need_version=no
14464      shlibpath_overrides_runpath=no
14465      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14466      ;;
14467  esac
14468  ;;
14469
14470sysv4*MP*)
14471  if test -d /usr/nec ;then
14472    version_type=linux
14473    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14474    soname_spec='$libname${shared_ext}.$major'
14475    shlibpath_var=LD_LIBRARY_PATH
14476  fi
14477  ;;
14478
14479uts4*)
14480  version_type=linux
14481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14482  soname_spec='${libname}${release}${shared_ext}$major'
14483  shlibpath_var=LD_LIBRARY_PATH
14484  ;;
14485
14486*)
14487  dynamic_linker=no
14488  ;;
14489esac
14490echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14491echo "${ECHO_T}$dynamic_linker" >&6
14492test "$dynamic_linker" = no && can_build_shared=no
14493
14494echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14495echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14496hardcode_action_CXX=
14497if test -n "$hardcode_libdir_flag_spec_CXX" || \
14498   test -n "$runpath_var CXX" || \
14499   test "X$hardcode_automatic_CXX"="Xyes" ; then
14500
14501  # We can hardcode non-existant directories.
14502  if test "$hardcode_direct_CXX" != no &&
14503     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14504     # have to relink, otherwise we might link with an installed library
14505     # when we should be linking with a yet-to-be-installed one
14506     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14507     test "$hardcode_minus_L_CXX" != no; then
14508    # Linking always hardcodes the temporary library directory.
14509    hardcode_action_CXX=relink
14510  else
14511    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14512    hardcode_action_CXX=immediate
14513  fi
14514else
14515  # We cannot hardcode anything, or else we can only hardcode existing
14516  # directories.
14517  hardcode_action_CXX=unsupported
14518fi
14519echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14520echo "${ECHO_T}$hardcode_action_CXX" >&6
14521
14522if test "$hardcode_action_CXX" = relink; then
14523  # Fast installation is not supported
14524  enable_fast_install=no
14525elif test "$shlibpath_overrides_runpath" = yes ||
14526     test "$enable_shared" = no; then
14527  # Fast installation is not necessary
14528  enable_fast_install=needless
14529fi
14530
14531striplib=
14532old_striplib=
14533echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14534echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14535if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14536  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14537  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14538  echo "$as_me:$LINENO: result: yes" >&5
14539echo "${ECHO_T}yes" >&6
14540else
14541# FIXME - insert some real tests, host_os isn't really good enough
14542  case $host_os in
14543   darwin*)
14544       if test -n "$STRIP" ; then
14545         striplib="$STRIP -x"
14546         echo "$as_me:$LINENO: result: yes" >&5
14547echo "${ECHO_T}yes" >&6
14548       else
14549  echo "$as_me:$LINENO: result: no" >&5
14550echo "${ECHO_T}no" >&6
14551fi
14552       ;;
14553   *)
14554  echo "$as_me:$LINENO: result: no" >&5
14555echo "${ECHO_T}no" >&6
14556    ;;
14557  esac
14558fi
14559
14560if test "x$enable_dlopen" != xyes; then
14561  enable_dlopen=unknown
14562  enable_dlopen_self=unknown
14563  enable_dlopen_self_static=unknown
14564else
14565  lt_cv_dlopen=no
14566  lt_cv_dlopen_libs=
14567
14568  case $host_os in
14569  beos*)
14570    lt_cv_dlopen="load_add_on"
14571    lt_cv_dlopen_libs=
14572    lt_cv_dlopen_self=yes
14573    ;;
14574
14575  mingw* | pw32*)
14576    lt_cv_dlopen="LoadLibrary"
14577    lt_cv_dlopen_libs=
14578   ;;
14579
14580  cygwin*)
14581    lt_cv_dlopen="dlopen"
14582    lt_cv_dlopen_libs=
14583   ;;
14584
14585  darwin*)
14586  # if libdl is installed we need to link against it
14587    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14588echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14589if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14590  echo $ECHO_N "(cached) $ECHO_C" >&6
14591else
14592  ac_check_lib_save_LIBS=$LIBS
14593LIBS="-ldl  $LIBS"
14594cat >conftest.$ac_ext <<_ACEOF
14595/* confdefs.h.  */
14596_ACEOF
14597cat confdefs.h >>conftest.$ac_ext
14598cat >>conftest.$ac_ext <<_ACEOF
14599/* end confdefs.h.  */
14600
14601/* Override any gcc2 internal prototype to avoid an error.  */
14602#ifdef __cplusplus
14603extern "C"
14604#endif
14605/* We use char because int might match the return type of a gcc2
14606   builtin and then its argument prototype would still apply.  */
14607char dlopen ();
14608int
14609main ()
14610{
14611dlopen ();
14612  ;
14613  return 0;
14614}
14615_ACEOF
14616rm -f conftest.$ac_objext conftest$ac_exeext
14617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14618  (eval $ac_link) 2>conftest.er1
14619  ac_status=$?
14620  grep -v '^ *+' conftest.er1 >conftest.err
14621  rm -f conftest.er1
14622  cat conftest.err >&5
14623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624  (exit $ac_status); } &&
14625	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
14626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627  (eval $ac_try) 2>&5
14628  ac_status=$?
14629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630  (exit $ac_status); }; } &&
14631	 { ac_try='test -s conftest$ac_exeext'
14632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633  (eval $ac_try) 2>&5
14634  ac_status=$?
14635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636  (exit $ac_status); }; }; then
14637  ac_cv_lib_dl_dlopen=yes
14638else
14639  echo "$as_me: failed program was:" >&5
14640sed 's/^/| /' conftest.$ac_ext >&5
14641
14642ac_cv_lib_dl_dlopen=no
14643fi
14644rm -f conftest.err conftest.$ac_objext \
14645      conftest$ac_exeext conftest.$ac_ext
14646LIBS=$ac_check_lib_save_LIBS
14647fi
14648echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14649echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14650if test $ac_cv_lib_dl_dlopen = yes; then
14651  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14652else
14653
14654    lt_cv_dlopen="dyld"
14655    lt_cv_dlopen_libs=
14656    lt_cv_dlopen_self=yes
14657
14658fi
14659
14660   ;;
14661
14662  *)
14663    echo "$as_me:$LINENO: checking for shl_load" >&5
14664echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14665if test "${ac_cv_func_shl_load+set}" = set; then
14666  echo $ECHO_N "(cached) $ECHO_C" >&6
14667else
14668  cat >conftest.$ac_ext <<_ACEOF
14669/* confdefs.h.  */
14670_ACEOF
14671cat confdefs.h >>conftest.$ac_ext
14672cat >>conftest.$ac_ext <<_ACEOF
14673/* end confdefs.h.  */
14674/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14675   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14676#define shl_load innocuous_shl_load
14677
14678/* System header to define __stub macros and hopefully few prototypes,
14679    which can conflict with char shl_load (); below.
14680    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14681    <limits.h> exists even on freestanding compilers.  */
14682
14683#ifdef __STDC__
14684# include <limits.h>
14685#else
14686# include <assert.h>
14687#endif
14688
14689#undef shl_load
14690
14691/* Override any gcc2 internal prototype to avoid an error.  */
14692#ifdef __cplusplus
14693extern "C"
14694{
14695#endif
14696/* We use char because int might match the return type of a gcc2
14697   builtin and then its argument prototype would still apply.  */
14698char shl_load ();
14699/* The GNU C library defines this for functions which it implements
14700    to always fail with ENOSYS.  Some functions are actually named
14701    something starting with __ and the normal name is an alias.  */
14702#if defined (__stub_shl_load) || defined (__stub___shl_load)
14703choke me
14704#else
14705char (*f) () = shl_load;
14706#endif
14707#ifdef __cplusplus
14708}
14709#endif
14710
14711int
14712main ()
14713{
14714return f != shl_load;
14715  ;
14716  return 0;
14717}
14718_ACEOF
14719rm -f conftest.$ac_objext conftest$ac_exeext
14720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14721  (eval $ac_link) 2>conftest.er1
14722  ac_status=$?
14723  grep -v '^ *+' conftest.er1 >conftest.err
14724  rm -f conftest.er1
14725  cat conftest.err >&5
14726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727  (exit $ac_status); } &&
14728	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
14729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14730  (eval $ac_try) 2>&5
14731  ac_status=$?
14732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733  (exit $ac_status); }; } &&
14734	 { ac_try='test -s conftest$ac_exeext'
14735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736  (eval $ac_try) 2>&5
14737  ac_status=$?
14738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739  (exit $ac_status); }; }; then
14740  ac_cv_func_shl_load=yes
14741else
14742  echo "$as_me: failed program was:" >&5
14743sed 's/^/| /' conftest.$ac_ext >&5
14744
14745ac_cv_func_shl_load=no
14746fi
14747rm -f conftest.err conftest.$ac_objext \
14748      conftest$ac_exeext conftest.$ac_ext
14749fi
14750echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14751echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14752if test $ac_cv_func_shl_load = yes; then
14753  lt_cv_dlopen="shl_load"
14754else
14755  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14756echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14757if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14758  echo $ECHO_N "(cached) $ECHO_C" >&6
14759else
14760  ac_check_lib_save_LIBS=$LIBS
14761LIBS="-ldld  $LIBS"
14762cat >conftest.$ac_ext <<_ACEOF
14763/* confdefs.h.  */
14764_ACEOF
14765cat confdefs.h >>conftest.$ac_ext
14766cat >>conftest.$ac_ext <<_ACEOF
14767/* end confdefs.h.  */
14768
14769/* Override any gcc2 internal prototype to avoid an error.  */
14770#ifdef __cplusplus
14771extern "C"
14772#endif
14773/* We use char because int might match the return type of a gcc2
14774   builtin and then its argument prototype would still apply.  */
14775char shl_load ();
14776int
14777main ()
14778{
14779shl_load ();
14780  ;
14781  return 0;
14782}
14783_ACEOF
14784rm -f conftest.$ac_objext conftest$ac_exeext
14785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14786  (eval $ac_link) 2>conftest.er1
14787  ac_status=$?
14788  grep -v '^ *+' conftest.er1 >conftest.err
14789  rm -f conftest.er1
14790  cat conftest.err >&5
14791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792  (exit $ac_status); } &&
14793	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
14794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795  (eval $ac_try) 2>&5
14796  ac_status=$?
14797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798  (exit $ac_status); }; } &&
14799	 { ac_try='test -s conftest$ac_exeext'
14800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801  (eval $ac_try) 2>&5
14802  ac_status=$?
14803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804  (exit $ac_status); }; }; then
14805  ac_cv_lib_dld_shl_load=yes
14806else
14807  echo "$as_me: failed program was:" >&5
14808sed 's/^/| /' conftest.$ac_ext >&5
14809
14810ac_cv_lib_dld_shl_load=no
14811fi
14812rm -f conftest.err conftest.$ac_objext \
14813      conftest$ac_exeext conftest.$ac_ext
14814LIBS=$ac_check_lib_save_LIBS
14815fi
14816echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14817echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14818if test $ac_cv_lib_dld_shl_load = yes; then
14819  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14820else
14821  echo "$as_me:$LINENO: checking for dlopen" >&5
14822echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14823if test "${ac_cv_func_dlopen+set}" = set; then
14824  echo $ECHO_N "(cached) $ECHO_C" >&6
14825else
14826  cat >conftest.$ac_ext <<_ACEOF
14827/* confdefs.h.  */
14828_ACEOF
14829cat confdefs.h >>conftest.$ac_ext
14830cat >>conftest.$ac_ext <<_ACEOF
14831/* end confdefs.h.  */
14832/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14833   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14834#define dlopen innocuous_dlopen
14835
14836/* System header to define __stub macros and hopefully few prototypes,
14837    which can conflict with char dlopen (); below.
14838    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14839    <limits.h> exists even on freestanding compilers.  */
14840
14841#ifdef __STDC__
14842# include <limits.h>
14843#else
14844# include <assert.h>
14845#endif
14846
14847#undef dlopen
14848
14849/* Override any gcc2 internal prototype to avoid an error.  */
14850#ifdef __cplusplus
14851extern "C"
14852{
14853#endif
14854/* We use char because int might match the return type of a gcc2
14855   builtin and then its argument prototype would still apply.  */
14856char dlopen ();
14857/* The GNU C library defines this for functions which it implements
14858    to always fail with ENOSYS.  Some functions are actually named
14859    something starting with __ and the normal name is an alias.  */
14860#if defined (__stub_dlopen) || defined (__stub___dlopen)
14861choke me
14862#else
14863char (*f) () = dlopen;
14864#endif
14865#ifdef __cplusplus
14866}
14867#endif
14868
14869int
14870main ()
14871{
14872return f != dlopen;
14873  ;
14874  return 0;
14875}
14876_ACEOF
14877rm -f conftest.$ac_objext conftest$ac_exeext
14878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14879  (eval $ac_link) 2>conftest.er1
14880  ac_status=$?
14881  grep -v '^ *+' conftest.er1 >conftest.err
14882  rm -f conftest.er1
14883  cat conftest.err >&5
14884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885  (exit $ac_status); } &&
14886	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
14887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888  (eval $ac_try) 2>&5
14889  ac_status=$?
14890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891  (exit $ac_status); }; } &&
14892	 { ac_try='test -s conftest$ac_exeext'
14893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894  (eval $ac_try) 2>&5
14895  ac_status=$?
14896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897  (exit $ac_status); }; }; then
14898  ac_cv_func_dlopen=yes
14899else
14900  echo "$as_me: failed program was:" >&5
14901sed 's/^/| /' conftest.$ac_ext >&5
14902
14903ac_cv_func_dlopen=no
14904fi
14905rm -f conftest.err conftest.$ac_objext \
14906      conftest$ac_exeext conftest.$ac_ext
14907fi
14908echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14909echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14910if test $ac_cv_func_dlopen = yes; then
14911  lt_cv_dlopen="dlopen"
14912else
14913  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14914echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14915if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14916  echo $ECHO_N "(cached) $ECHO_C" >&6
14917else
14918  ac_check_lib_save_LIBS=$LIBS
14919LIBS="-ldl  $LIBS"
14920cat >conftest.$ac_ext <<_ACEOF
14921/* confdefs.h.  */
14922_ACEOF
14923cat confdefs.h >>conftest.$ac_ext
14924cat >>conftest.$ac_ext <<_ACEOF
14925/* end confdefs.h.  */
14926
14927/* Override any gcc2 internal prototype to avoid an error.  */
14928#ifdef __cplusplus
14929extern "C"
14930#endif
14931/* We use char because int might match the return type of a gcc2
14932   builtin and then its argument prototype would still apply.  */
14933char dlopen ();
14934int
14935main ()
14936{
14937dlopen ();
14938  ;
14939  return 0;
14940}
14941_ACEOF
14942rm -f conftest.$ac_objext conftest$ac_exeext
14943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14944  (eval $ac_link) 2>conftest.er1
14945  ac_status=$?
14946  grep -v '^ *+' conftest.er1 >conftest.err
14947  rm -f conftest.er1
14948  cat conftest.err >&5
14949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950  (exit $ac_status); } &&
14951	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
14952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953  (eval $ac_try) 2>&5
14954  ac_status=$?
14955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956  (exit $ac_status); }; } &&
14957	 { ac_try='test -s conftest$ac_exeext'
14958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959  (eval $ac_try) 2>&5
14960  ac_status=$?
14961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962  (exit $ac_status); }; }; then
14963  ac_cv_lib_dl_dlopen=yes
14964else
14965  echo "$as_me: failed program was:" >&5
14966sed 's/^/| /' conftest.$ac_ext >&5
14967
14968ac_cv_lib_dl_dlopen=no
14969fi
14970rm -f conftest.err conftest.$ac_objext \
14971      conftest$ac_exeext conftest.$ac_ext
14972LIBS=$ac_check_lib_save_LIBS
14973fi
14974echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14975echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14976if test $ac_cv_lib_dl_dlopen = yes; then
14977  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14978else
14979  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14980echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14981if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14982  echo $ECHO_N "(cached) $ECHO_C" >&6
14983else
14984  ac_check_lib_save_LIBS=$LIBS
14985LIBS="-lsvld  $LIBS"
14986cat >conftest.$ac_ext <<_ACEOF
14987/* confdefs.h.  */
14988_ACEOF
14989cat confdefs.h >>conftest.$ac_ext
14990cat >>conftest.$ac_ext <<_ACEOF
14991/* end confdefs.h.  */
14992
14993/* Override any gcc2 internal prototype to avoid an error.  */
14994#ifdef __cplusplus
14995extern "C"
14996#endif
14997/* We use char because int might match the return type of a gcc2
14998   builtin and then its argument prototype would still apply.  */
14999char dlopen ();
15000int
15001main ()
15002{
15003dlopen ();
15004  ;
15005  return 0;
15006}
15007_ACEOF
15008rm -f conftest.$ac_objext conftest$ac_exeext
15009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15010  (eval $ac_link) 2>conftest.er1
15011  ac_status=$?
15012  grep -v '^ *+' conftest.er1 >conftest.err
15013  rm -f conftest.er1
15014  cat conftest.err >&5
15015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016  (exit $ac_status); } &&
15017	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
15018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019  (eval $ac_try) 2>&5
15020  ac_status=$?
15021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022  (exit $ac_status); }; } &&
15023	 { ac_try='test -s conftest$ac_exeext'
15024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025  (eval $ac_try) 2>&5
15026  ac_status=$?
15027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028  (exit $ac_status); }; }; then
15029  ac_cv_lib_svld_dlopen=yes
15030else
15031  echo "$as_me: failed program was:" >&5
15032sed 's/^/| /' conftest.$ac_ext >&5
15033
15034ac_cv_lib_svld_dlopen=no
15035fi
15036rm -f conftest.err conftest.$ac_objext \
15037      conftest$ac_exeext conftest.$ac_ext
15038LIBS=$ac_check_lib_save_LIBS
15039fi
15040echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15041echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15042if test $ac_cv_lib_svld_dlopen = yes; then
15043  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15044else
15045  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15046echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15047if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15048  echo $ECHO_N "(cached) $ECHO_C" >&6
15049else
15050  ac_check_lib_save_LIBS=$LIBS
15051LIBS="-ldld  $LIBS"
15052cat >conftest.$ac_ext <<_ACEOF
15053/* confdefs.h.  */
15054_ACEOF
15055cat confdefs.h >>conftest.$ac_ext
15056cat >>conftest.$ac_ext <<_ACEOF
15057/* end confdefs.h.  */
15058
15059/* Override any gcc2 internal prototype to avoid an error.  */
15060#ifdef __cplusplus
15061extern "C"
15062#endif
15063/* We use char because int might match the return type of a gcc2
15064   builtin and then its argument prototype would still apply.  */
15065char dld_link ();
15066int
15067main ()
15068{
15069dld_link ();
15070  ;
15071  return 0;
15072}
15073_ACEOF
15074rm -f conftest.$ac_objext conftest$ac_exeext
15075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15076  (eval $ac_link) 2>conftest.er1
15077  ac_status=$?
15078  grep -v '^ *+' conftest.er1 >conftest.err
15079  rm -f conftest.er1
15080  cat conftest.err >&5
15081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082  (exit $ac_status); } &&
15083	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
15084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085  (eval $ac_try) 2>&5
15086  ac_status=$?
15087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088  (exit $ac_status); }; } &&
15089	 { ac_try='test -s conftest$ac_exeext'
15090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091  (eval $ac_try) 2>&5
15092  ac_status=$?
15093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094  (exit $ac_status); }; }; then
15095  ac_cv_lib_dld_dld_link=yes
15096else
15097  echo "$as_me: failed program was:" >&5
15098sed 's/^/| /' conftest.$ac_ext >&5
15099
15100ac_cv_lib_dld_dld_link=no
15101fi
15102rm -f conftest.err conftest.$ac_objext \
15103      conftest$ac_exeext conftest.$ac_ext
15104LIBS=$ac_check_lib_save_LIBS
15105fi
15106echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15107echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15108if test $ac_cv_lib_dld_dld_link = yes; then
15109  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15110fi
15111
15112
15113fi
15114
15115
15116fi
15117
15118
15119fi
15120
15121
15122fi
15123
15124
15125fi
15126
15127    ;;
15128  esac
15129
15130  if test "x$lt_cv_dlopen" != xno; then
15131    enable_dlopen=yes
15132  else
15133    enable_dlopen=no
15134  fi
15135
15136  case $lt_cv_dlopen in
15137  dlopen)
15138    save_CPPFLAGS="$CPPFLAGS"
15139    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15140
15141    save_LDFLAGS="$LDFLAGS"
15142    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15143
15144    save_LIBS="$LIBS"
15145    LIBS="$lt_cv_dlopen_libs $LIBS"
15146
15147    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15148echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15149if test "${lt_cv_dlopen_self+set}" = set; then
15150  echo $ECHO_N "(cached) $ECHO_C" >&6
15151else
15152  	  if test "$cross_compiling" = yes; then :
15153  lt_cv_dlopen_self=cross
15154else
15155  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15156  lt_status=$lt_dlunknown
15157  cat > conftest.$ac_ext <<EOF
15158#line __oline__ "configure"
15159#include "confdefs.h"
15160
15161#if HAVE_DLFCN_H
15162#include <dlfcn.h>
15163#endif
15164
15165#include <stdio.h>
15166
15167#ifdef RTLD_GLOBAL
15168#  define LT_DLGLOBAL		RTLD_GLOBAL
15169#else
15170#  ifdef DL_GLOBAL
15171#    define LT_DLGLOBAL		DL_GLOBAL
15172#  else
15173#    define LT_DLGLOBAL		0
15174#  endif
15175#endif
15176
15177/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15178   find out it does not work in some platform. */
15179#ifndef LT_DLLAZY_OR_NOW
15180#  ifdef RTLD_LAZY
15181#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15182#  else
15183#    ifdef DL_LAZY
15184#      define LT_DLLAZY_OR_NOW		DL_LAZY
15185#    else
15186#      ifdef RTLD_NOW
15187#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15188#      else
15189#        ifdef DL_NOW
15190#          define LT_DLLAZY_OR_NOW	DL_NOW
15191#        else
15192#          define LT_DLLAZY_OR_NOW	0
15193#        endif
15194#      endif
15195#    endif
15196#  endif
15197#endif
15198
15199#ifdef __cplusplus
15200extern "C" void exit (int);
15201#endif
15202
15203void fnord() { int i=42;}
15204int main ()
15205{
15206  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15207  int status = $lt_dlunknown;
15208
15209  if (self)
15210    {
15211      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15212      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15213      /* dlclose (self); */
15214    }
15215
15216    exit (status);
15217}
15218EOF
15219  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15220  (eval $ac_link) 2>&5
15221  ac_status=$?
15222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15224    (./conftest; exit; ) 2>/dev/null
15225    lt_status=$?
15226    case x$lt_status in
15227      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15228      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15229      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15230    esac
15231  else :
15232    # compilation failed
15233    lt_cv_dlopen_self=no
15234  fi
15235fi
15236rm -fr conftest*
15237
15238
15239fi
15240echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15241echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15242
15243    if test "x$lt_cv_dlopen_self" = xyes; then
15244      LDFLAGS="$LDFLAGS $link_static_flag"
15245      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15246echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15247if test "${lt_cv_dlopen_self_static+set}" = set; then
15248  echo $ECHO_N "(cached) $ECHO_C" >&6
15249else
15250  	  if test "$cross_compiling" = yes; then :
15251  lt_cv_dlopen_self_static=cross
15252else
15253  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15254  lt_status=$lt_dlunknown
15255  cat > conftest.$ac_ext <<EOF
15256#line __oline__ "configure"
15257#include "confdefs.h"
15258
15259#if HAVE_DLFCN_H
15260#include <dlfcn.h>
15261#endif
15262
15263#include <stdio.h>
15264
15265#ifdef RTLD_GLOBAL
15266#  define LT_DLGLOBAL		RTLD_GLOBAL
15267#else
15268#  ifdef DL_GLOBAL
15269#    define LT_DLGLOBAL		DL_GLOBAL
15270#  else
15271#    define LT_DLGLOBAL		0
15272#  endif
15273#endif
15274
15275/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15276   find out it does not work in some platform. */
15277#ifndef LT_DLLAZY_OR_NOW
15278#  ifdef RTLD_LAZY
15279#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15280#  else
15281#    ifdef DL_LAZY
15282#      define LT_DLLAZY_OR_NOW		DL_LAZY
15283#    else
15284#      ifdef RTLD_NOW
15285#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15286#      else
15287#        ifdef DL_NOW
15288#          define LT_DLLAZY_OR_NOW	DL_NOW
15289#        else
15290#          define LT_DLLAZY_OR_NOW	0
15291#        endif
15292#      endif
15293#    endif
15294#  endif
15295#endif
15296
15297#ifdef __cplusplus
15298extern "C" void exit (int);
15299#endif
15300
15301void fnord() { int i=42;}
15302int main ()
15303{
15304  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15305  int status = $lt_dlunknown;
15306
15307  if (self)
15308    {
15309      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15310      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15311      /* dlclose (self); */
15312    }
15313
15314    exit (status);
15315}
15316EOF
15317  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15318  (eval $ac_link) 2>&5
15319  ac_status=$?
15320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15322    (./conftest; exit; ) 2>/dev/null
15323    lt_status=$?
15324    case x$lt_status in
15325      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15326      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15327      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15328    esac
15329  else :
15330    # compilation failed
15331    lt_cv_dlopen_self_static=no
15332  fi
15333fi
15334rm -fr conftest*
15335
15336
15337fi
15338echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15339echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15340    fi
15341
15342    CPPFLAGS="$save_CPPFLAGS"
15343    LDFLAGS="$save_LDFLAGS"
15344    LIBS="$save_LIBS"
15345    ;;
15346  esac
15347
15348  case $lt_cv_dlopen_self in
15349  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15350  *) enable_dlopen_self=unknown ;;
15351  esac
15352
15353  case $lt_cv_dlopen_self_static in
15354  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15355  *) enable_dlopen_self_static=unknown ;;
15356  esac
15357fi
15358
15359
15360# The else clause should only fire when bootstrapping the
15361# libtool distribution, otherwise you forgot to ship ltmain.sh
15362# with your package, and you will get complaints that there are
15363# no rules to generate ltmain.sh.
15364if test -f "$ltmain"; then
15365  # See if we are running on zsh, and set the options which allow our commands through
15366  # without removal of \ escapes.
15367  if test -n "${ZSH_VERSION+set}" ; then
15368    setopt NO_GLOB_SUBST
15369  fi
15370  # Now quote all the things that may contain metacharacters while being
15371  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15372  # variables and quote the copies for generation of the libtool script.
15373  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15374    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15375    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15376    deplibs_check_method reload_flag reload_cmds need_locks \
15377    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15378    lt_cv_sys_global_symbol_to_c_name_address \
15379    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15380    old_postinstall_cmds old_postuninstall_cmds \
15381    compiler_CXX \
15382    CC_CXX \
15383    LD_CXX \
15384    lt_prog_compiler_wl_CXX \
15385    lt_prog_compiler_pic_CXX \
15386    lt_prog_compiler_static_CXX \
15387    lt_prog_compiler_no_builtin_flag_CXX \
15388    export_dynamic_flag_spec_CXX \
15389    thread_safe_flag_spec_CXX \
15390    whole_archive_flag_spec_CXX \
15391    enable_shared_with_static_runtimes_CXX \
15392    old_archive_cmds_CXX \
15393    old_archive_from_new_cmds_CXX \
15394    predep_objects_CXX \
15395    postdep_objects_CXX \
15396    predeps_CXX \
15397    postdeps_CXX \
15398    compiler_lib_search_path_CXX \
15399    archive_cmds_CXX \
15400    archive_expsym_cmds_CXX \
15401    postinstall_cmds_CXX \
15402    postuninstall_cmds_CXX \
15403    old_archive_from_expsyms_cmds_CXX \
15404    allow_undefined_flag_CXX \
15405    no_undefined_flag_CXX \
15406    export_symbols_cmds_CXX \
15407    hardcode_libdir_flag_spec_CXX \
15408    hardcode_libdir_flag_spec_ld_CXX \
15409    hardcode_libdir_separator_CXX \
15410    hardcode_automatic_CXX \
15411    module_cmds_CXX \
15412    module_expsym_cmds_CXX \
15413    lt_cv_prog_compiler_c_o_CXX \
15414    exclude_expsyms_CXX \
15415    include_expsyms_CXX; do
15416
15417    case $var in
15418    old_archive_cmds_CXX | \
15419    old_archive_from_new_cmds_CXX | \
15420    archive_cmds_CXX | \
15421    archive_expsym_cmds_CXX | \
15422    module_cmds_CXX | \
15423    module_expsym_cmds_CXX | \
15424    old_archive_from_expsyms_cmds_CXX | \
15425    export_symbols_cmds_CXX | \
15426    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15427    postinstall_cmds | postuninstall_cmds | \
15428    old_postinstall_cmds | old_postuninstall_cmds | \
15429    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15430      # Double-quote double-evaled strings.
15431      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15432      ;;
15433    *)
15434      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15435      ;;
15436    esac
15437  done
15438
15439  case $lt_echo in
15440  *'\$0 --fallback-echo"')
15441    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15442    ;;
15443  esac
15444
15445cfgfile="$ofile"
15446
15447  cat <<__EOF__ >> "$cfgfile"
15448# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15449
15450# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15451
15452# Shell to use when invoking shell scripts.
15453SHELL=$lt_SHELL
15454
15455# Whether or not to build shared libraries.
15456build_libtool_libs=$enable_shared
15457
15458# Whether or not to build static libraries.
15459build_old_libs=$enable_static
15460
15461# Whether or not to add -lc for building shared libraries.
15462build_libtool_need_lc=$archive_cmds_need_lc_CXX
15463
15464# Whether or not to disallow shared libs when runtime libs are static
15465allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15466
15467# Whether or not to optimize for fast installation.
15468fast_install=$enable_fast_install
15469
15470# The host system.
15471host_alias=$host_alias
15472host=$host
15473
15474# An echo program that does not interpret backslashes.
15475echo=$lt_echo
15476
15477# The archiver.
15478AR=$lt_AR
15479AR_FLAGS=$lt_AR_FLAGS
15480
15481# A C compiler.
15482LTCC=$lt_LTCC
15483
15484# A language-specific compiler.
15485CC=$lt_compiler_CXX
15486
15487# Is the compiler the GNU C compiler?
15488with_gcc=$GCC_CXX
15489
15490# An ERE matcher.
15491EGREP=$lt_EGREP
15492
15493# The linker used to build libraries.
15494LD=$lt_LD_CXX
15495
15496# Whether we need hard or soft links.
15497LN_S=$lt_LN_S
15498
15499# A BSD-compatible nm program.
15500NM=$lt_NM
15501
15502# A symbol stripping program
15503STRIP=$STRIP
15504
15505# Used to examine libraries when file_magic_cmd begins "file"
15506MAGIC_CMD=$MAGIC_CMD
15507
15508# Used on cygwin: DLL creation program.
15509DLLTOOL="$DLLTOOL"
15510
15511# Used on cygwin: object dumper.
15512OBJDUMP="$OBJDUMP"
15513
15514# Used on cygwin: assembler.
15515AS="$AS"
15516
15517# The name of the directory that contains temporary libtool files.
15518objdir=$objdir
15519
15520# How to create reloadable object files.
15521reload_flag=$lt_reload_flag
15522reload_cmds=$lt_reload_cmds
15523
15524# How to pass a linker flag through the compiler.
15525wl=$lt_lt_prog_compiler_wl_CXX
15526
15527# Object file suffix (normally "o").
15528objext="$ac_objext"
15529
15530# Old archive suffix (normally "a").
15531libext="$libext"
15532
15533# Shared library suffix (normally ".so").
15534shrext='$shrext'
15535
15536# Executable file suffix (normally "").
15537exeext="$exeext"
15538
15539# Additional compiler flags for building library objects.
15540pic_flag=$lt_lt_prog_compiler_pic_CXX
15541pic_mode=$pic_mode
15542
15543# What is the maximum length of a command?
15544max_cmd_len=$lt_cv_sys_max_cmd_len
15545
15546# Does compiler simultaneously support -c and -o options?
15547compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15548
15549# Must we lock files when doing compilation ?
15550need_locks=$lt_need_locks
15551
15552# Do we need the lib prefix for modules?
15553need_lib_prefix=$need_lib_prefix
15554
15555# Do we need a version for libraries?
15556need_version=$need_version
15557
15558# Whether dlopen is supported.
15559dlopen_support=$enable_dlopen
15560
15561# Whether dlopen of programs is supported.
15562dlopen_self=$enable_dlopen_self
15563
15564# Whether dlopen of statically linked programs is supported.
15565dlopen_self_static=$enable_dlopen_self_static
15566
15567# Compiler flag to prevent dynamic linking.
15568link_static_flag=$lt_lt_prog_compiler_static_CXX
15569
15570# Compiler flag to turn off builtin functions.
15571no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15572
15573# Compiler flag to allow reflexive dlopens.
15574export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15575
15576# Compiler flag to generate shared objects directly from archives.
15577whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15578
15579# Compiler flag to generate thread-safe objects.
15580thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15581
15582# Library versioning type.
15583version_type=$version_type
15584
15585# Format of library name prefix.
15586libname_spec=$lt_libname_spec
15587
15588# List of archive names.  First name is the real one, the rest are links.
15589# The last name is the one that the linker finds with -lNAME.
15590library_names_spec=$lt_library_names_spec
15591
15592# The coded name of the library, if different from the real name.
15593soname_spec=$lt_soname_spec
15594
15595# Commands used to build and install an old-style archive.
15596RANLIB=$lt_RANLIB
15597old_archive_cmds=$lt_old_archive_cmds_CXX
15598old_postinstall_cmds=$lt_old_postinstall_cmds
15599old_postuninstall_cmds=$lt_old_postuninstall_cmds
15600
15601# Create an old-style archive from a shared archive.
15602old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15603
15604# Create a temporary old-style archive to link instead of a shared archive.
15605old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15606
15607# Commands used to build and install a shared archive.
15608archive_cmds=$lt_archive_cmds_CXX
15609archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15610postinstall_cmds=$lt_postinstall_cmds
15611postuninstall_cmds=$lt_postuninstall_cmds
15612
15613# Commands used to build a loadable module (assumed same as above if empty)
15614module_cmds=$lt_module_cmds_CXX
15615module_expsym_cmds=$lt_module_expsym_cmds_CXX
15616
15617# Commands to strip libraries.
15618old_striplib=$lt_old_striplib
15619striplib=$lt_striplib
15620
15621# Dependencies to place before the objects being linked to create a
15622# shared library.
15623predep_objects=$lt_predep_objects_CXX
15624
15625# Dependencies to place after the objects being linked to create a
15626# shared library.
15627postdep_objects=$lt_postdep_objects_CXX
15628
15629# Dependencies to place before the objects being linked to create a
15630# shared library.
15631predeps=$lt_predeps_CXX
15632
15633# Dependencies to place after the objects being linked to create a
15634# shared library.
15635postdeps=$lt_postdeps_CXX
15636
15637# The library search path used internally by the compiler when linking
15638# a shared library.
15639compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15640
15641# Method to check whether dependent libraries are shared objects.
15642deplibs_check_method=$lt_deplibs_check_method
15643
15644# Command to use when deplibs_check_method == file_magic.
15645file_magic_cmd=$lt_file_magic_cmd
15646
15647# Flag that allows shared libraries with undefined symbols to be built.
15648allow_undefined_flag=$lt_allow_undefined_flag_CXX
15649
15650# Flag that forces no undefined symbols.
15651no_undefined_flag=$lt_no_undefined_flag_CXX
15652
15653# Commands used to finish a libtool library installation in a directory.
15654finish_cmds=$lt_finish_cmds
15655
15656# Same as above, but a single script fragment to be evaled but not shown.
15657finish_eval=$lt_finish_eval
15658
15659# Take the output of nm and produce a listing of raw symbols and C names.
15660global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15661
15662# Transform the output of nm in a proper C declaration
15663global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15664
15665# Transform the output of nm in a C name address pair
15666global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15667
15668# This is the shared library runtime path variable.
15669runpath_var=$runpath_var
15670
15671# This is the shared library path variable.
15672shlibpath_var=$shlibpath_var
15673
15674# Is shlibpath searched before the hard-coded library search path?
15675shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15676
15677# How to hardcode a shared library path into an executable.
15678hardcode_action=$hardcode_action_CXX
15679
15680# Whether we should hardcode library paths into libraries.
15681hardcode_into_libs=$hardcode_into_libs
15682
15683# Flag to hardcode \$libdir into a binary during linking.
15684# This must work even if \$libdir does not exist.
15685hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15686
15687# If ld is used when linking, flag to hardcode \$libdir into
15688# a binary during linking. This must work even if \$libdir does
15689# not exist.
15690hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15691
15692# Whether we need a single -rpath flag with a separated argument.
15693hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15694
15695# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15696# resulting binary.
15697hardcode_direct=$hardcode_direct_CXX
15698
15699# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15700# resulting binary.
15701hardcode_minus_L=$hardcode_minus_L_CXX
15702
15703# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15704# the resulting binary.
15705hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15706
15707# Set to yes if building a shared library automatically hardcodes DIR into the library
15708# and all subsequent libraries and executables linked against it.
15709hardcode_automatic=$hardcode_automatic_CXX
15710
15711# Variables whose values should be saved in libtool wrapper scripts and
15712# restored at relink time.
15713variables_saved_for_relink="$variables_saved_for_relink"
15714
15715# Whether libtool must link a program against all its dependency libraries.
15716link_all_deplibs=$link_all_deplibs_CXX
15717
15718# Compile-time system search path for libraries
15719sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15720
15721# Run-time system search path for libraries
15722sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15723
15724# Fix the shell variable \$srcfile for the compiler.
15725fix_srcfile_path="$fix_srcfile_path_CXX"
15726
15727# Set to yes if exported symbols are required.
15728always_export_symbols=$always_export_symbols_CXX
15729
15730# The commands to list exported symbols.
15731export_symbols_cmds=$lt_export_symbols_cmds_CXX
15732
15733# The commands to extract the exported symbol list from a shared archive.
15734extract_expsyms_cmds=$lt_extract_expsyms_cmds
15735
15736# Symbols that should not be listed in the preloaded symbols.
15737exclude_expsyms=$lt_exclude_expsyms_CXX
15738
15739# Symbols that must always be exported.
15740include_expsyms=$lt_include_expsyms_CXX
15741
15742# ### END LIBTOOL TAG CONFIG: $tagname
15743
15744__EOF__
15745
15746
15747else
15748  # If there is no Makefile yet, we rely on a make rule to execute
15749  # `config.status --recheck' to rerun these tests and create the
15750  # libtool script then.
15751  test -f Makefile && make "$ltmain"
15752fi
15753
15754
15755ac_ext=c
15756ac_cpp='$CPP $CPPFLAGS'
15757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15759ac_compiler_gnu=$ac_cv_c_compiler_gnu
15760
15761CC=$lt_save_CC
15762LDCXX=$LD
15763LD=$lt_save_LD
15764GCC=$lt_save_GCC
15765with_gnu_ldcxx=$with_gnu_ld
15766with_gnu_ld=$lt_save_with_gnu_ld
15767lt_cv_path_LDCXX=$lt_cv_path_LD
15768lt_cv_path_LD=$lt_save_path_LD
15769lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15770lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15771
15772	else
15773	  tagname=""
15774	fi
15775	;;
15776
15777      F77)
15778	if test -n "$F77" && test "X$F77" != "Xno"; then
15779
15780ac_ext=f
15781ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15782ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15783ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15784
15785
15786archive_cmds_need_lc_F77=no
15787allow_undefined_flag_F77=
15788always_export_symbols_F77=no
15789archive_expsym_cmds_F77=
15790export_dynamic_flag_spec_F77=
15791hardcode_direct_F77=no
15792hardcode_libdir_flag_spec_F77=
15793hardcode_libdir_flag_spec_ld_F77=
15794hardcode_libdir_separator_F77=
15795hardcode_minus_L_F77=no
15796hardcode_automatic_F77=no
15797module_cmds_F77=
15798module_expsym_cmds_F77=
15799link_all_deplibs_F77=unknown
15800old_archive_cmds_F77=$old_archive_cmds
15801no_undefined_flag_F77=
15802whole_archive_flag_spec_F77=
15803enable_shared_with_static_runtimes_F77=no
15804
15805# Source file extension for f77 test sources.
15806ac_ext=f
15807
15808# Object file extension for compiled f77 test sources.
15809objext=o
15810objext_F77=$objext
15811
15812# Code to be used in simple compile tests
15813lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15814
15815# Code to be used in simple link tests
15816lt_simple_link_test_code="      program t\n      end\n"
15817
15818# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15819
15820# If no C compiler was specified, use CC.
15821LTCC=${LTCC-"$CC"}
15822
15823# Allow CC to be a program name with arguments.
15824compiler=$CC
15825
15826
15827# Allow CC to be a program name with arguments.
15828lt_save_CC="$CC"
15829CC=${F77-"f77"}
15830compiler=$CC
15831compiler_F77=$CC
15832cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15833
15834echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15835echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15836echo "$as_me:$LINENO: result: $can_build_shared" >&5
15837echo "${ECHO_T}$can_build_shared" >&6
15838
15839echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15840echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15841test "$can_build_shared" = "no" && enable_shared=no
15842
15843# On AIX, shared libraries and static libraries use the same namespace, and
15844# are all built from PIC.
15845case "$host_os" in
15846aix3*)
15847  test "$enable_shared" = yes && enable_static=no
15848  if test -n "$RANLIB"; then
15849    archive_cmds="$archive_cmds~\$RANLIB \$lib"
15850    postinstall_cmds='$RANLIB $lib'
15851  fi
15852  ;;
15853aix4*)
15854  test "$enable_shared" = yes && enable_static=no
15855  ;;
15856esac
15857echo "$as_me:$LINENO: result: $enable_shared" >&5
15858echo "${ECHO_T}$enable_shared" >&6
15859
15860echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15861echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15862# Make sure either enable_shared or enable_static is yes.
15863test "$enable_shared" = yes || enable_static=yes
15864echo "$as_me:$LINENO: result: $enable_static" >&5
15865echo "${ECHO_T}$enable_static" >&6
15866
15867test "$ld_shlibs_F77" = no && can_build_shared=no
15868
15869GCC_F77="$G77"
15870LD_F77="$LD"
15871
15872lt_prog_compiler_wl_F77=
15873lt_prog_compiler_pic_F77=
15874lt_prog_compiler_static_F77=
15875
15876echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15877echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15878
15879  if test "$GCC" = yes; then
15880    lt_prog_compiler_wl_F77='-Wl,'
15881    lt_prog_compiler_static_F77='-static'
15882
15883    case $host_os in
15884      aix*)
15885      # All AIX code is PIC.
15886      if test "$host_cpu" = ia64; then
15887	# AIX 5 now supports IA64 processor
15888	lt_prog_compiler_static_F77='-Bstatic'
15889      fi
15890      ;;
15891
15892    amigaos*)
15893      # FIXME: we need at least 68020 code to build shared libraries, but
15894      # adding the `-m68020' flag to GCC prevents building anything better,
15895      # like `-m68040'.
15896      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15897      ;;
15898
15899    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15900      # PIC is the default for these OSes.
15901      ;;
15902
15903    mingw* | pw32* | os2*)
15904      # This hack is so that the source file can tell whether it is being
15905      # built for inclusion in a dll (and should export symbols for example).
15906      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15907      ;;
15908
15909    darwin* | rhapsody*)
15910      # PIC is the default on this platform
15911      # Common symbols not allowed in MH_DYLIB files
15912      lt_prog_compiler_pic_F77='-fno-common'
15913      ;;
15914
15915    msdosdjgpp*)
15916      # Just because we use GCC doesn't mean we suddenly get shared libraries
15917      # on systems that don't support them.
15918      lt_prog_compiler_can_build_shared_F77=no
15919      enable_shared=no
15920      ;;
15921
15922    sysv4*MP*)
15923      if test -d /usr/nec; then
15924	lt_prog_compiler_pic_F77=-Kconform_pic
15925      fi
15926      ;;
15927
15928    hpux*)
15929      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15930      # not for PA HP-UX.
15931      case "$host_cpu" in
15932      hppa*64*|ia64*)
15933	# +Z the default
15934	;;
15935      *)
15936	lt_prog_compiler_pic_F77='-fPIC'
15937	;;
15938      esac
15939      ;;
15940
15941    *)
15942      lt_prog_compiler_pic_F77='-fPIC'
15943      ;;
15944    esac
15945  else
15946    # PORTME Check for flag to pass linker flags through the system compiler.
15947    case $host_os in
15948    aix*)
15949      lt_prog_compiler_wl_F77='-Wl,'
15950      if test "$host_cpu" = ia64; then
15951	# AIX 5 now supports IA64 processor
15952	lt_prog_compiler_static_F77='-Bstatic'
15953      else
15954	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15955      fi
15956      ;;
15957
15958    mingw* | pw32* | os2*)
15959      # This hack is so that the source file can tell whether it is being
15960      # built for inclusion in a dll (and should export symbols for example).
15961      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15962      ;;
15963
15964    hpux9* | hpux10* | hpux11*)
15965      lt_prog_compiler_wl_F77='-Wl,'
15966      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15967      # not for PA HP-UX.
15968      case "$host_cpu" in
15969      hppa*64*|ia64*)
15970	# +Z the default
15971	;;
15972      *)
15973	lt_prog_compiler_pic_F77='+Z'
15974	;;
15975      esac
15976      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15977      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15978      ;;
15979
15980    irix5* | irix6* | nonstopux*)
15981      lt_prog_compiler_wl_F77='-Wl,'
15982      # PIC (with -KPIC) is the default.
15983      lt_prog_compiler_static_F77='-non_shared'
15984      ;;
15985
15986    newsos6)
15987      lt_prog_compiler_pic_F77='-KPIC'
15988      lt_prog_compiler_static_F77='-Bstatic'
15989      ;;
15990
15991    linux*)
15992      case $CC in
15993      icc* | ecc*)
15994	lt_prog_compiler_wl_F77='-Wl,'
15995	lt_prog_compiler_pic_F77='-KPIC'
15996	lt_prog_compiler_static_F77='-static'
15997        ;;
15998      ccc*)
15999        lt_prog_compiler_wl_F77='-Wl,'
16000        # All Alpha code is PIC.
16001        lt_prog_compiler_static_F77='-non_shared'
16002        ;;
16003      esac
16004      ;;
16005
16006    osf3* | osf4* | osf5*)
16007      lt_prog_compiler_wl_F77='-Wl,'
16008      # All OSF/1 code is PIC.
16009      lt_prog_compiler_static_F77='-non_shared'
16010      ;;
16011
16012    sco3.2v5*)
16013      lt_prog_compiler_pic_F77='-Kpic'
16014      lt_prog_compiler_static_F77='-dn'
16015      ;;
16016
16017    solaris*)
16018      lt_prog_compiler_wl_F77='-Wl,'
16019      lt_prog_compiler_pic_F77='-KPIC'
16020      lt_prog_compiler_static_F77='-Bstatic'
16021      ;;
16022
16023    sunos4*)
16024      lt_prog_compiler_wl_F77='-Qoption ld '
16025      lt_prog_compiler_pic_F77='-PIC'
16026      lt_prog_compiler_static_F77='-Bstatic'
16027      ;;
16028
16029    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16030      lt_prog_compiler_wl_F77='-Wl,'
16031      lt_prog_compiler_pic_F77='-KPIC'
16032      lt_prog_compiler_static_F77='-Bstatic'
16033      ;;
16034
16035    sysv4*MP*)
16036      if test -d /usr/nec ;then
16037	lt_prog_compiler_pic_F77='-Kconform_pic'
16038	lt_prog_compiler_static_F77='-Bstatic'
16039      fi
16040      ;;
16041
16042    uts4*)
16043      lt_prog_compiler_pic_F77='-pic'
16044      lt_prog_compiler_static_F77='-Bstatic'
16045      ;;
16046
16047    *)
16048      lt_prog_compiler_can_build_shared_F77=no
16049      ;;
16050    esac
16051  fi
16052
16053echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16054echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
16055
16056#
16057# Check to make sure the PIC flag actually works.
16058#
16059if test -n "$lt_prog_compiler_pic_F77"; then
16060
16061echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16062echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
16063if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
16064  echo $ECHO_N "(cached) $ECHO_C" >&6
16065else
16066  lt_prog_compiler_pic_works_F77=no
16067  ac_outfile=conftest.$ac_objext
16068   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16069   lt_compiler_flag="$lt_prog_compiler_pic_F77"
16070   # Insert the option either (1) after the last *FLAGS variable, or
16071   # (2) before a word containing "conftest.", or (3) at the end.
16072   # Note that $ac_compile itself does not contain backslashes and begins
16073   # with a dollar sign (not a hyphen), so the echo should work correctly.
16074   # The option is referenced via a variable to avoid confusing sed.
16075   lt_compile=`echo "$ac_compile" | $SED \
16076   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16077   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16078   -e 's:$: $lt_compiler_flag:'`
16079   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16080   (eval "$lt_compile" 2>conftest.err)
16081   ac_status=$?
16082   cat conftest.err >&5
16083   echo "$as_me:__oline__: \$? = $ac_status" >&5
16084   if (exit $ac_status) && test -s "$ac_outfile"; then
16085     # The compiler can only warn and ignore the option if not recognized
16086     # So say no if there are warnings
16087     if test ! -s conftest.err; then
16088       lt_prog_compiler_pic_works_F77=yes
16089     fi
16090   fi
16091   $rm conftest*
16092
16093fi
16094echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
16095echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
16096
16097if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
16098    case $lt_prog_compiler_pic_F77 in
16099     "" | " "*) ;;
16100     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16101     esac
16102else
16103    lt_prog_compiler_pic_F77=
16104     lt_prog_compiler_can_build_shared_F77=no
16105fi
16106
16107fi
16108case "$host_os" in
16109  # For platforms which do not support PIC, -DPIC is meaningless:
16110  *djgpp*)
16111    lt_prog_compiler_pic_F77=
16112    ;;
16113  *)
16114    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16115    ;;
16116esac
16117
16118echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16119echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16120if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16121  echo $ECHO_N "(cached) $ECHO_C" >&6
16122else
16123  lt_cv_prog_compiler_c_o_F77=no
16124   $rm -r conftest 2>/dev/null
16125   mkdir conftest
16126   cd conftest
16127   mkdir out
16128   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16129
16130   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
16131   # that will create temporary files in the current directory regardless of
16132   # the output directory.  Thus, making CWD read-only will cause this test
16133   # to fail, enabling locking or at least warning the user not to do parallel
16134   # builds.
16135   chmod -w .
16136
16137   lt_compiler_flag="-o out/conftest2.$ac_objext"
16138   # Insert the option either (1) after the last *FLAGS variable, or
16139   # (2) before a word containing "conftest.", or (3) at the end.
16140   # Note that $ac_compile itself does not contain backslashes and begins
16141   # with a dollar sign (not a hyphen), so the echo should work correctly.
16142   lt_compile=`echo "$ac_compile" | $SED \
16143   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16144   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16145   -e 's:$: $lt_compiler_flag:'`
16146   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16147   (eval "$lt_compile" 2>out/conftest.err)
16148   ac_status=$?
16149   cat out/conftest.err >&5
16150   echo "$as_me:__oline__: \$? = $ac_status" >&5
16151   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16152   then
16153     # The compiler can only warn and ignore the option if not recognized
16154     # So say no if there are warnings
16155     if test ! -s out/conftest.err; then
16156       lt_cv_prog_compiler_c_o_F77=yes
16157     fi
16158   fi
16159   chmod u+w .
16160   $rm conftest* out/*
16161   rmdir out
16162   cd ..
16163   rmdir conftest
16164   $rm conftest*
16165
16166fi
16167echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16168echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16169
16170
16171hard_links="nottested"
16172if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16173  # do not overwrite the value of need_locks provided by the user
16174  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16175echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16176  hard_links=yes
16177  $rm conftest*
16178  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16179  touch conftest.a
16180  ln conftest.a conftest.b 2>&5 || hard_links=no
16181  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16182  echo "$as_me:$LINENO: result: $hard_links" >&5
16183echo "${ECHO_T}$hard_links" >&6
16184  if test "$hard_links" = no; then
16185    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16186echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16187    need_locks=warn
16188  fi
16189else
16190  need_locks=no
16191fi
16192
16193echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16194echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16195
16196  runpath_var=
16197  allow_undefined_flag_F77=
16198  enable_shared_with_static_runtimes_F77=no
16199  archive_cmds_F77=
16200  archive_expsym_cmds_F77=
16201  old_archive_From_new_cmds_F77=
16202  old_archive_from_expsyms_cmds_F77=
16203  export_dynamic_flag_spec_F77=
16204  whole_archive_flag_spec_F77=
16205  thread_safe_flag_spec_F77=
16206  hardcode_libdir_flag_spec_F77=
16207  hardcode_libdir_flag_spec_ld_F77=
16208  hardcode_libdir_separator_F77=
16209  hardcode_direct_F77=no
16210  hardcode_minus_L_F77=no
16211  hardcode_shlibpath_var_F77=unsupported
16212  link_all_deplibs_F77=unknown
16213  hardcode_automatic_F77=no
16214  module_cmds_F77=
16215  module_expsym_cmds_F77=
16216  always_export_symbols_F77=no
16217  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16218  # include_expsyms should be a list of space-separated symbols to be *always*
16219  # included in the symbol list
16220  include_expsyms_F77=
16221  # exclude_expsyms can be an extended regexp of symbols to exclude
16222  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16223  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16224  # as well as any symbol that contains `d'.
16225  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16226  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16227  # platforms (ab)use it in PIC code, but their linkers get confused if
16228  # the symbol is explicitly referenced.  Since portable code cannot
16229  # rely on this symbol name, it's probably fine to never include it in
16230  # preloaded symbol tables.
16231  extract_expsyms_cmds=
16232
16233  case $host_os in
16234  cygwin* | mingw* | pw32*)
16235    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16236    # When not using gcc, we currently assume that we are using
16237    # Microsoft Visual C++.
16238    if test "$GCC" != yes; then
16239      with_gnu_ld=no
16240    fi
16241    ;;
16242  openbsd*)
16243    with_gnu_ld=no
16244    ;;
16245  esac
16246
16247  ld_shlibs_F77=yes
16248  if test "$with_gnu_ld" = yes; then
16249    # If archive_cmds runs LD, not CC, wlarc should be empty
16250    wlarc='${wl}'
16251
16252    # See if GNU ld supports shared libraries.
16253    case $host_os in
16254    aix3* | aix4* | aix5*)
16255      # On AIX/PPC, the GNU linker is very broken
16256      if test "$host_cpu" != ia64; then
16257	ld_shlibs_F77=no
16258	cat <<EOF 1>&2
16259
16260*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16261*** to be unable to reliably create shared libraries on AIX.
16262*** Therefore, libtool is disabling shared libraries support.  If you
16263*** really care for shared libraries, you may want to modify your PATH
16264*** so that a non-GNU linker is found, and then restart.
16265
16266EOF
16267      fi
16268      ;;
16269
16270    amigaos*)
16271      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)'
16272      hardcode_libdir_flag_spec_F77='-L$libdir'
16273      hardcode_minus_L_F77=yes
16274
16275      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16276      # that the semantics of dynamic libraries on AmigaOS, at least up
16277      # to version 4, is to share data among multiple programs linked
16278      # with the same dynamic library.  Since this doesn't match the
16279      # behavior of shared libraries on other platforms, we can't use
16280      # them.
16281      ld_shlibs_F77=no
16282      ;;
16283
16284    beos*)
16285      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16286	allow_undefined_flag_F77=unsupported
16287	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16288	# support --undefined.  This deserves some investigation.  FIXME
16289	archive_cmds_F77='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
16290      else
16291	ld_shlibs_F77=no
16292      fi
16293      ;;
16294
16295    cygwin* | mingw* | pw32*)
16296      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16297      # as there is no search path for DLLs.
16298      hardcode_libdir_flag_spec_F77='-L$libdir'
16299      allow_undefined_flag_F77=no
16300      always_export_symbols_F77=no
16301      enable_shared_with_static_runtimes_F77=yes
16302      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16303
16304      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16305        archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16306	# If the export-symbols file already is a .def file (1st line
16307	# is EXPORTS), use it as is; otherwise, prepend...
16308	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16309	  cp $export_symbols $output_objdir/$soname.def;
16310	else
16311	  echo EXPORTS > $output_objdir/$soname.def;
16312	  cat $export_symbols >> $output_objdir/$soname.def;
16313	fi~
16314	$CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16315      else
16316	ld_shlibs=no
16317      fi
16318      ;;
16319
16320    netbsd*)
16321      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16322	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16323	wlarc=
16324      else
16325	archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
16326	archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16327      fi
16328      ;;
16329
16330    solaris* | sysv5*)
16331      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16332	ld_shlibs_F77=no
16333	cat <<EOF 1>&2
16334
16335*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16336*** create shared libraries on Solaris systems.  Therefore, libtool
16337*** is disabling shared libraries support.  We urge you to upgrade GNU
16338*** binutils to release 2.9.1 or newer.  Another option is to modify
16339*** your PATH or compiler configuration so that the native linker is
16340*** used, and then restart.
16341
16342EOF
16343      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16344	archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
16345	archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16346      else
16347	ld_shlibs_F77=no
16348      fi
16349      ;;
16350
16351    sunos4*)
16352      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16353      wlarc=
16354      hardcode_direct_F77=yes
16355      hardcode_shlibpath_var_F77=no
16356      ;;
16357
16358    *)
16359      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16360	archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
16361	archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16362      else
16363	ld_shlibs_F77=no
16364      fi
16365      ;;
16366    esac
16367
16368    if test "$ld_shlibs_F77" = yes; then
16369      runpath_var=LD_RUN_PATH
16370      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16371      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16372      # ancient GNU ld didn't support --whole-archive et. al.
16373      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16374 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16375      else
16376  	whole_archive_flag_spec_F77=
16377      fi
16378    fi
16379  else
16380    # PORTME fill in a description of your system's linker (not GNU ld)
16381    case $host_os in
16382    aix3*)
16383      allow_undefined_flag_F77=unsupported
16384      always_export_symbols_F77=yes
16385      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'
16386      # Note: this linker hardcodes the directories in LIBPATH if there
16387      # are no directories specified by -L.
16388      hardcode_minus_L_F77=yes
16389      if test "$GCC" = yes && test -z "$link_static_flag"; then
16390	# Neither direct hardcoding nor static linking is supported with a
16391	# broken collect2.
16392	hardcode_direct_F77=unsupported
16393      fi
16394      ;;
16395
16396    aix4* | aix5*)
16397      if test "$host_cpu" = ia64; then
16398	# On IA64, the linker does run time linking by default, so we don't
16399	# have to do anything special.
16400	aix_use_runtimelinking=no
16401	exp_sym_flag='-Bexport'
16402	no_entry_flag=""
16403      else
16404	# If we're using GNU nm, then we don't want the "-C" option.
16405	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16406	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16407	  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'
16408	else
16409	  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'
16410	fi
16411
16412	# KDE requires run time linking.  Make it the default.
16413	aix_use_runtimelinking=yes
16414	exp_sym_flag='-bexport'
16415	no_entry_flag='-bnoentry'
16416      fi
16417
16418      # When large executables or shared objects are built, AIX ld can
16419      # have problems creating the table of contents.  If linking a library
16420      # or program results in "error TOC overflow" add -mminimal-toc to
16421      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16422      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16423
16424      archive_cmds_F77=''
16425      hardcode_direct_F77=yes
16426      hardcode_libdir_separator_F77=':'
16427      link_all_deplibs_F77=yes
16428
16429      if test "$GCC" = yes; then
16430	case $host_os in aix4.012|aix4.012.*)
16431	# We only want to do this on AIX 4.2 and lower, the check
16432	# below for broken collect2 doesn't work under 4.3+
16433	  collect2name=`${CC} -print-prog-name=collect2`
16434	  if test -f "$collect2name" && \
16435  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16436	  then
16437  	  # We have reworked collect2
16438  	  hardcode_direct_F77=yes
16439	  else
16440  	  # We have old collect2
16441  	  hardcode_direct_F77=unsupported
16442  	  # It fails to find uninstalled libraries when the uninstalled
16443  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16444  	  # to unsupported forces relinking
16445  	  hardcode_minus_L_F77=yes
16446  	  hardcode_libdir_flag_spec_F77='-L$libdir'
16447  	  hardcode_libdir_separator_F77=
16448	  fi
16449	esac
16450	shared_flag='-shared'
16451      else
16452	# not using gcc
16453	if test "$host_cpu" = ia64; then
16454  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16455  	# chokes on -Wl,-G. The following line is correct:
16456	  shared_flag='-G'
16457	else
16458  	if test "$aix_use_runtimelinking" = yes; then
16459	    shared_flag='-qmkshrobj ${wl}-G'
16460	  else
16461	    shared_flag='-qmkshrobj'
16462  	fi
16463	fi
16464      fi
16465
16466      # Let the compiler handle the export list.
16467      always_export_symbols_F77=no
16468      if test "$aix_use_runtimelinking" = yes; then
16469	# Warning - without using the other runtime loading flags (-brtl),
16470	# -berok will link without error, but may produce a broken library.
16471	allow_undefined_flag_F77='-berok'
16472       # Determine the default libpath from the value encoded in an empty executable.
16473	cat >conftest.$ac_ext <<_ACEOF
16474      program main
16475
16476      end
16477_ACEOF
16478rm -f conftest.$ac_objext conftest$ac_exeext
16479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16480  (eval $ac_link) 2>conftest.er1
16481  ac_status=$?
16482  grep -v '^ *+' conftest.er1 >conftest.err
16483  rm -f conftest.er1
16484  cat conftest.err >&5
16485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486  (exit $ac_status); } &&
16487	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
16488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489  (eval $ac_try) 2>&5
16490  ac_status=$?
16491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492  (exit $ac_status); }; } &&
16493	 { ac_try='test -s conftest$ac_exeext'
16494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16495  (eval $ac_try) 2>&5
16496  ac_status=$?
16497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498  (exit $ac_status); }; }; then
16499
16500aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16501}'`
16502# Check for a 64-bit object if we didn't find anything.
16503if 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; }
16504}'`; fi
16505else
16506  echo "$as_me: failed program was:" >&5
16507sed 's/^/| /' conftest.$ac_ext >&5
16508
16509fi
16510rm -f conftest.err conftest.$ac_objext \
16511      conftest$ac_exeext conftest.$ac_ext
16512if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16513
16514	hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16515	archive_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
16516	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16517       else
16518	if test "$host_cpu" = ia64; then
16519	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16520	  allow_undefined_flag_F77="-z nodefs"
16521	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16522	else
16523	 # Determine the default libpath from the value encoded in an empty executable.
16524	 cat >conftest.$ac_ext <<_ACEOF
16525      program main
16526
16527      end
16528_ACEOF
16529rm -f conftest.$ac_objext conftest$ac_exeext
16530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16531  (eval $ac_link) 2>conftest.er1
16532  ac_status=$?
16533  grep -v '^ *+' conftest.er1 >conftest.err
16534  rm -f conftest.er1
16535  cat conftest.err >&5
16536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537  (exit $ac_status); } &&
16538	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
16539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540  (eval $ac_try) 2>&5
16541  ac_status=$?
16542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543  (exit $ac_status); }; } &&
16544	 { ac_try='test -s conftest$ac_exeext'
16545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546  (eval $ac_try) 2>&5
16547  ac_status=$?
16548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549  (exit $ac_status); }; }; then
16550
16551aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16552}'`
16553# Check for a 64-bit object if we didn't find anything.
16554if 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; }
16555}'`; fi
16556else
16557  echo "$as_me: failed program was:" >&5
16558sed 's/^/| /' conftest.$ac_ext >&5
16559
16560fi
16561rm -f conftest.err conftest.$ac_objext \
16562      conftest$ac_exeext conftest.$ac_ext
16563if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16564
16565	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16566	  # Warning - without using the other run time loading flags,
16567	  # -berok will link without error, but may produce a broken library.
16568	  no_undefined_flag_F77=' ${wl}-bernotok'
16569	  allow_undefined_flag_F77=' ${wl}-berok'
16570	  # -bexpall does not export symbols beginning with underscore (_)
16571	  always_export_symbols_F77=yes
16572	  # Exported symbols can be pulled into shared objects from archives
16573	  whole_archive_flag_spec_F77=' '
16574	  archive_cmds_need_lc_F77=yes
16575	  # This is similar to how AIX traditionally builds it's shared libraries.
16576	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16577	fi
16578      fi
16579      ;;
16580
16581    amigaos*)
16582      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)'
16583      hardcode_libdir_flag_spec_F77='-L$libdir'
16584      hardcode_minus_L_F77=yes
16585      # see comment about different semantics on the GNU ld section
16586      ld_shlibs_F77=no
16587      ;;
16588
16589    bsdi4*)
16590      export_dynamic_flag_spec_F77=-rdynamic
16591      ;;
16592
16593    cygwin* | mingw* | pw32*)
16594      # When not using gcc, we currently assume that we are using
16595      # Microsoft Visual C++.
16596      # hardcode_libdir_flag_spec is actually meaningless, as there is
16597      # no search path for DLLs.
16598      hardcode_libdir_flag_spec_F77=' '
16599      allow_undefined_flag_F77=no
16600      # Tell ltmain to make .lib files, not .a files.
16601      libext=lib
16602      # Tell ltmain to make .dll files, not .so files.
16603      shrext=".dll"
16604      # FIXME: Setting linknames here is a bad hack.
16605      archive_cmds_F77='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16606      # The linker will automatically build a .lib file if we build a DLL.
16607      old_archive_From_new_cmds_F77='true'
16608      # FIXME: Should let the user specify the lib program.
16609      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16610      fix_srcfile_path='`cygpath -w "$srcfile"`'
16611      enable_shared_with_static_runtimes_F77=yes
16612      ;;
16613
16614    darwin* | rhapsody*)
16615    if test "$GXX" = yes ; then
16616      archive_cmds_need_lc_F77=no
16617      case "$host_os" in
16618      rhapsody* | darwin1.[012])
16619	allow_undefined_flag_F77='-Wl,-undefined -Wl,suppress'
16620	;;
16621      *) # Darwin 1.3 on
16622	if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16623	  allow_undefined_flag_F77='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
16624	else
16625	  case ${MACOSX_DEPLOYMENT_TARGET} in
16626	    10.012)
16627	      allow_undefined_flag_F77='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
16628	      ;;
16629	    10.*)
16630	      allow_undefined_flag_F77='-Wl,-undefined -Wl,dynamic_lookup'
16631	      ;;
16632	  esac
16633	fi
16634	;;
16635      esac
16636    	lt_int_apple_cc_single_mod=no
16637    	output_verbose_link_cmd='echo'
16638    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16639    	  lt_int_apple_cc_single_mod=yes
16640    	fi
16641    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16642    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
16643    	else
16644        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
16645      fi
16646      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
16647      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16648        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16649          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16650        else
16651          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16652        fi
16653          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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16654      hardcode_direct_F77=no
16655      hardcode_automatic_F77=yes
16656      hardcode_shlibpath_var_F77=unsupported
16657      whole_archive_flag_spec_F77='-all_load $convenience'
16658      link_all_deplibs_F77=yes
16659    else
16660      ld_shlibs_F77=no
16661    fi
16662      ;;
16663
16664    dgux*)
16665      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16666      hardcode_libdir_flag_spec_F77='-L$libdir'
16667      hardcode_shlibpath_var_F77=no
16668      ;;
16669
16670    freebsd1*)
16671      ld_shlibs_F77=no
16672      ;;
16673
16674    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16675    # support.  Future versions do this automatically, but an explicit c++rt0.o
16676    # does not break anything, and helps significantly (at the cost of a little
16677    # extra space).
16678    freebsd2.2*)
16679      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16680      hardcode_libdir_flag_spec_F77='-R$libdir'
16681      hardcode_direct_F77=yes
16682      hardcode_shlibpath_var_F77=no
16683      ;;
16684
16685    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16686    freebsd2*)
16687      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16688      hardcode_direct_F77=yes
16689      hardcode_minus_L_F77=yes
16690      hardcode_shlibpath_var_F77=no
16691      ;;
16692
16693    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16694    freebsd* | kfreebsd*-gnu)
16695      archive_cmds_F77='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
16696      hardcode_libdir_flag_spec_F77='-R$libdir'
16697      hardcode_direct_F77=yes
16698      hardcode_shlibpath_var_F77=no
16699      ;;
16700
16701    hpux9*)
16702      if test "$GCC" = yes; then
16703	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16704      else
16705	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'
16706      fi
16707      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16708      hardcode_libdir_separator_F77=:
16709      hardcode_direct_F77=yes
16710
16711      # hardcode_minus_L: Not really in the search PATH,
16712      # but as the default location of the library.
16713      hardcode_minus_L_F77=yes
16714      export_dynamic_flag_spec_F77='${wl}-E'
16715      ;;
16716
16717    hpux10* | hpux11*)
16718      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16719	case "$host_cpu" in
16720	hppa*64*|ia64*)
16721	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
16722	  ;;
16723	*)
16724	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
16725	  ;;
16726	esac
16727      else
16728	case "$host_cpu" in
16729	hppa*64*|ia64*)
16730	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16731	  ;;
16732	*)
16733	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16734	  ;;
16735	esac
16736      fi
16737      if test "$with_gnu_ld" = no; then
16738	case "$host_cpu" in
16739	hppa*64*)
16740	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16741	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16742	  hardcode_libdir_separator_F77=:
16743	  hardcode_direct_F77=no
16744	  hardcode_shlibpath_var_F77=no
16745	  ;;
16746	ia64*)
16747	  hardcode_libdir_flag_spec_F77='-L$libdir'
16748	  hardcode_direct_F77=no
16749	  hardcode_shlibpath_var_F77=no
16750
16751	  # hardcode_minus_L: Not really in the search PATH,
16752	  # but as the default location of the library.
16753	  hardcode_minus_L_F77=yes
16754	  ;;
16755	*)
16756	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16757	  hardcode_libdir_separator_F77=:
16758	  hardcode_direct_F77=yes
16759	  export_dynamic_flag_spec_F77='${wl}-E'
16760
16761	  # hardcode_minus_L: Not really in the search PATH,
16762	  # but as the default location of the library.
16763	  hardcode_minus_L_F77=yes
16764	  ;;
16765	esac
16766      fi
16767      ;;
16768
16769    irix5* | irix6* | nonstopux*)
16770      if test "$GCC" = yes; then
16771	archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16772      else
16773	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'
16774	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16775      fi
16776      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16777      hardcode_libdir_separator_F77=:
16778      link_all_deplibs_F77=yes
16779      ;;
16780
16781    netbsd*)
16782      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16783	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16784      else
16785	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16786      fi
16787      hardcode_libdir_flag_spec_F77='-R$libdir'
16788      hardcode_direct_F77=yes
16789      hardcode_shlibpath_var_F77=no
16790      ;;
16791
16792    newsos6)
16793      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16794      hardcode_direct_F77=yes
16795      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16796      hardcode_libdir_separator_F77=:
16797      hardcode_shlibpath_var_F77=no
16798      ;;
16799
16800    openbsd*)
16801      hardcode_direct_F77=yes
16802      hardcode_shlibpath_var_F77=no
16803      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16804	archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
16805	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16806	export_dynamic_flag_spec_F77='${wl}-E'
16807      else
16808       case $host_os in
16809	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16810	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16811	   hardcode_libdir_flag_spec_F77='-R$libdir'
16812	   ;;
16813	 *)
16814	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
16815	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16816	   ;;
16817       esac
16818      fi
16819      ;;
16820
16821    os2*)
16822      hardcode_libdir_flag_spec_F77='-L$libdir'
16823      hardcode_minus_L_F77=yes
16824      allow_undefined_flag_F77=unsupported
16825      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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
16826      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16827      ;;
16828
16829    osf3*)
16830      if test "$GCC" = yes; then
16831	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16832	archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16833      else
16834	allow_undefined_flag_F77=' -expect_unresolved \*'
16835	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'
16836      fi
16837      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16838      hardcode_libdir_separator_F77=:
16839      ;;
16840
16841    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16842      if test "$GCC" = yes; then
16843	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16844	archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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'
16845	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16846      else
16847	allow_undefined_flag_F77=' -expect_unresolved \*'
16848	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'
16849	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~
16850	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16851
16852	# Both c and cxx compiler support -rpath directly
16853	hardcode_libdir_flag_spec_F77='-rpath $libdir'
16854      fi
16855      hardcode_libdir_separator_F77=:
16856      ;;
16857
16858    sco3.2v5*)
16859      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16860      hardcode_shlibpath_var_F77=no
16861      export_dynamic_flag_spec_F77='${wl}-Bexport'
16862      runpath_var=LD_RUN_PATH
16863      hardcode_runpath_var=yes
16864      ;;
16865
16866    solaris*)
16867      no_undefined_flag_F77=' -z text'
16868      if test "$GCC" = yes; then
16869	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
16870	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16871	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
16872      else
16873	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16874	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16875  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16876      fi
16877      hardcode_libdir_flag_spec_F77='-R$libdir'
16878      hardcode_shlibpath_var_F77=no
16879      case $host_os in
16880      solaris2.[0-5] | solaris2.[0-5].*) ;;
16881      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16882	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16883      esac
16884      link_all_deplibs_F77=yes
16885      ;;
16886
16887    sunos4*)
16888      if test "x$host_vendor" = xsequent; then
16889	# Use $CC to link under sequent, because it throws in some extra .o
16890	# files that make .init and .fini sections work.
16891	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
16892      else
16893	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16894      fi
16895      hardcode_libdir_flag_spec_F77='-L$libdir'
16896      hardcode_direct_F77=yes
16897      hardcode_minus_L_F77=yes
16898      hardcode_shlibpath_var_F77=no
16899      ;;
16900
16901    sysv4)
16902      case $host_vendor in
16903	sni)
16904	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16905	  hardcode_direct_F77=yes # is this really true???
16906	;;
16907	siemens)
16908	  ## LD is ld it makes a PLAMLIB
16909	  ## CC just makes a GrossModule.
16910	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16911	  reload_cmds_F77='$CC -r -o $output$reload_objs'
16912	  hardcode_direct_F77=no
16913        ;;
16914	motorola)
16915	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16916	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16917	;;
16918      esac
16919      runpath_var='LD_RUN_PATH'
16920      hardcode_shlibpath_var_F77=no
16921      ;;
16922
16923    sysv4.3*)
16924      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16925      hardcode_shlibpath_var_F77=no
16926      export_dynamic_flag_spec_F77='-Bexport'
16927      ;;
16928
16929    sysv4*MP*)
16930      if test -d /usr/nec; then
16931	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16932	hardcode_shlibpath_var_F77=no
16933	runpath_var=LD_RUN_PATH
16934	hardcode_runpath_var=yes
16935	ld_shlibs_F77=yes
16936      fi
16937      ;;
16938
16939    sysv4.2uw2*)
16940      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16941      hardcode_direct_F77=yes
16942      hardcode_minus_L_F77=no
16943      hardcode_shlibpath_var_F77=no
16944      hardcode_runpath_var=yes
16945      runpath_var=LD_RUN_PATH
16946      ;;
16947
16948   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16949      no_undefined_flag_F77='${wl}-z ${wl}text'
16950      if test "$GCC" = yes; then
16951	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
16952      else
16953	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
16954      fi
16955      runpath_var='LD_RUN_PATH'
16956      hardcode_shlibpath_var_F77=no
16957      ;;
16958
16959    sysv5*)
16960      no_undefined_flag_F77=' -z text'
16961      # $CC -shared without GNU ld will not create a library from C++
16962      # object files and a static libstdc++, better avoid it by now
16963      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16964      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16965  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16966      hardcode_libdir_flag_spec_F77=
16967      hardcode_shlibpath_var_F77=no
16968      runpath_var='LD_RUN_PATH'
16969      ;;
16970
16971    uts4*)
16972      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16973      hardcode_libdir_flag_spec_F77='-L$libdir'
16974      hardcode_shlibpath_var_F77=no
16975      ;;
16976
16977    *)
16978      ld_shlibs_F77=no
16979      ;;
16980    esac
16981  fi
16982
16983echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16984echo "${ECHO_T}$ld_shlibs_F77" >&6
16985test "$ld_shlibs_F77" = no && can_build_shared=no
16986
16987variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16988if test "$GCC" = yes; then
16989  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16990fi
16991
16992#
16993# Do we need to explicitly link libc?
16994#
16995case "x$archive_cmds_need_lc_F77" in
16996x|xyes)
16997  # Assume -lc should be added
16998  archive_cmds_need_lc_F77=yes
16999
17000  if test "$enable_shared" = yes && test "$GCC" = yes; then
17001    case $archive_cmds_F77 in
17002    *'~'*)
17003      # FIXME: we may have to deal with multi-command sequences.
17004      ;;
17005    '$CC '*)
17006      # Test whether the compiler implicitly links with -lc since on some
17007      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17008      # to ld, don't add -lc before -lgcc.
17009      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17010echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17011      $rm conftest*
17012      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17013
17014      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17015  (eval $ac_compile) 2>&5
17016  ac_status=$?
17017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018  (exit $ac_status); } 2>conftest.err; then
17019        soname=conftest
17020        lib=conftest
17021        libobjs=conftest.$ac_objext
17022        deplibs=
17023        wl=$lt_prog_compiler_wl_F77
17024        compiler_flags=-v
17025        linker_flags=-v
17026        verstring=
17027        output_objdir=.
17028        libname=conftest
17029        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17030        allow_undefined_flag_F77=
17031        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17032  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17033  ac_status=$?
17034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035  (exit $ac_status); }
17036        then
17037	  archive_cmds_need_lc_F77=no
17038        else
17039	  archive_cmds_need_lc_F77=yes
17040        fi
17041        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17042      else
17043        cat conftest.err 1>&5
17044      fi
17045      $rm conftest*
17046      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17047echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
17048      ;;
17049    esac
17050  fi
17051  ;;
17052esac
17053
17054echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17055echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17056library_names_spec=
17057libname_spec='lib$name'
17058soname_spec=
17059shrext=".so"
17060postinstall_cmds=
17061postuninstall_cmds=
17062finish_cmds=
17063finish_eval=
17064shlibpath_var=
17065shlibpath_overrides_runpath=unknown
17066version_type=none
17067dynamic_linker="$host_os ld.so"
17068sys_lib_dlsearch_path_spec="/lib /usr/lib"
17069sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17070need_lib_prefix=unknown
17071hardcode_into_libs=no
17072
17073# when you set need_version to no, make sure it does not cause -set_version
17074# flags to be left without arguments
17075need_version=unknown
17076
17077case $host_os in
17078aix3*)
17079  version_type=linux
17080  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17081  shlibpath_var=LIBPATH
17082
17083  # AIX 3 has no versioning support, so we append a major version to the name.
17084  soname_spec='${libname}${release}${shared_ext}$major'
17085  ;;
17086
17087aix4* | aix5*)
17088  version_type=linux
17089  need_lib_prefix=no
17090  need_version=no
17091  hardcode_into_libs=yes
17092  if test "$host_cpu" = ia64; then
17093    # AIX 5 supports IA64
17094    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17095    shlibpath_var=LD_LIBRARY_PATH
17096  else
17097    # With GCC up to 2.95.x, collect2 would create an import file
17098    # for dependence libraries.  The import file would start with
17099    # the line `#! .'.  This would cause the generated library to
17100    # depend on `.', always an invalid library.  This was fixed in
17101    # development snapshots of GCC prior to 3.0.
17102    case $host_os in
17103      aix4 | aix4.[01] | aix4.[01].*)
17104      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17105	   echo ' yes '
17106	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17107	:
17108      else
17109	can_build_shared=no
17110      fi
17111      ;;
17112    esac
17113    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17114    # soname into executable. Probably we can add versioning support to
17115    # collect2, so additional links can be useful in future.
17116    if test "$aix_use_runtimelinking" = yes; then
17117      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17118      # instead of lib<name>.a to let people know that these are not
17119      # typical AIX shared libraries.
17120      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17121    else
17122      # We preserve .a as extension for shared libraries through AIX4.2
17123      # and later when we are not doing run time linking.
17124      library_names_spec='${libname}${release}.a $libname.a'
17125      soname_spec='${libname}${release}${shared_ext}$major'
17126    fi
17127    shlibpath_var=LIBPATH
17128  fi
17129  ;;
17130
17131amigaos*)
17132  library_names_spec='$libname.ixlibrary $libname.a'
17133  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17134  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'
17135  ;;
17136
17137beos*)
17138  library_names_spec='${libname}${shared_ext}'
17139  dynamic_linker="$host_os ld.so"
17140  shlibpath_var=LIBRARY_PATH
17141  ;;
17142
17143bsdi4*)
17144  version_type=linux
17145  need_version=no
17146  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17147  soname_spec='${libname}${release}${shared_ext}$major'
17148  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17149  shlibpath_var=LD_LIBRARY_PATH
17150  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17151  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17152  # the default ld.so.conf also contains /usr/contrib/lib and
17153  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17154  # libtool to hard-code these into programs
17155  ;;
17156
17157cygwin* | mingw* | pw32*)
17158  version_type=windows
17159  shrext=".dll"
17160  need_version=no
17161  need_lib_prefix=no
17162
17163  case $GCC,$host_os in
17164  yes,cygwin* | yes,mingw* | yes,pw32*)
17165    library_names_spec='$libname.dll.a'
17166    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17167    postinstall_cmds='base_file=`basename \${file}`~
17168      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17169      dldir=$destdir/`dirname \$dlpath`~
17170      test -d \$dldir || mkdir -p \$dldir~
17171      $install_prog $dir/$dlname \$dldir/$dlname'
17172    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17173      dlpath=$dir/\$dldll~
17174       $rm \$dlpath'
17175    shlibpath_overrides_runpath=yes
17176
17177    case $host_os in
17178    cygwin*)
17179      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17180      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17181      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17182      ;;
17183    mingw*)
17184      # MinGW DLLs use traditional 'lib' prefix
17185      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17186      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17187      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17188        # It is most probably a Windows format PATH printed by
17189        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17190        # path with ; separators, and with drive letters. We can handle the
17191        # drive letters (cygwin fileutils understands them), so leave them,
17192        # especially as we might pass files found there to a mingw objdump,
17193        # which wouldn't understand a cygwinified path. Ahh.
17194        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17195      else
17196        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17197      fi
17198      ;;
17199    pw32*)
17200      # pw32 DLLs use 'pw' prefix rather than 'lib'
17201      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17202      ;;
17203    esac
17204    ;;
17205
17206  *)
17207    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17208    ;;
17209  esac
17210  dynamic_linker='Win32 ld.exe'
17211  # FIXME: first we should search . and the directory the executable is in
17212  shlibpath_var=PATH
17213  ;;
17214
17215darwin* | rhapsody*)
17216  dynamic_linker="$host_os dyld"
17217  version_type=darwin
17218  need_lib_prefix=no
17219  need_version=no
17220  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17221  soname_spec='${libname}${release}${major}$shared_ext'
17222  shlibpath_overrides_runpath=yes
17223  shlibpath_var=DYLD_LIBRARY_PATH
17224  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17225  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17226  if test "$GCC" = yes; then
17227    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"`
17228  else
17229    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17230  fi
17231  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17232  ;;
17233
17234dgux*)
17235  version_type=linux
17236  need_lib_prefix=no
17237  need_version=no
17238  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17239  soname_spec='${libname}${release}${shared_ext}$major'
17240  shlibpath_var=LD_LIBRARY_PATH
17241  ;;
17242
17243freebsd1*)
17244  dynamic_linker=no
17245  ;;
17246
17247kfreebsd*-gnu*)
17248  version_type=linux
17249  need_lib_prefix=no
17250  need_version=no
17251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17252  soname_spec='${libname}${release}${shared_ext}$major'
17253  shlibpath_var=LD_LIBRARY_PATH
17254  shlibpath_overrides_runpath=no
17255  hardcode_into_libs=yes
17256  dynamic_linker='GNU ld.so'
17257  ;;
17258
17259freebsd*)
17260  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17261  version_type=freebsd-$objformat
17262  case $version_type in
17263    freebsd-elf*)
17264      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17265      need_version=no
17266      need_lib_prefix=no
17267      ;;
17268    freebsd-*)
17269      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17270      need_version=yes
17271      ;;
17272  esac
17273  shlibpath_var=LD_LIBRARY_PATH
17274  case $host_os in
17275  freebsd2*)
17276    shlibpath_overrides_runpath=yes
17277    ;;
17278  freebsd3.01* | freebsdelf3.01*)
17279    shlibpath_overrides_runpath=yes
17280    hardcode_into_libs=yes
17281    ;;
17282  *) # from 3.2 on
17283    shlibpath_overrides_runpath=no
17284    hardcode_into_libs=yes
17285    ;;
17286  esac
17287  ;;
17288
17289gnu*)
17290  version_type=linux
17291  need_lib_prefix=no
17292  need_version=no
17293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17294  soname_spec='${libname}${release}${shared_ext}$major'
17295  shlibpath_var=LD_LIBRARY_PATH
17296  hardcode_into_libs=yes
17297  ;;
17298
17299hpux9* | hpux10* | hpux11*)
17300  # Give a soname corresponding to the major version so that dld.sl refuses to
17301  # link against other versions.
17302  version_type=sunos
17303  need_lib_prefix=no
17304  need_version=no
17305  case "$host_cpu" in
17306  ia64*)
17307    shrext='.so'
17308    hardcode_into_libs=yes
17309    dynamic_linker="$host_os dld.so"
17310    shlibpath_var=LD_LIBRARY_PATH
17311    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17312    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17313    soname_spec='${libname}${release}${shared_ext}$major'
17314    if test "X$HPUX_IA64_MODE" = X32; then
17315      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17316    else
17317      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17318    fi
17319    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17320    ;;
17321   hppa*64*)
17322     shrext='.sl'
17323     hardcode_into_libs=yes
17324     dynamic_linker="$host_os dld.sl"
17325     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17326     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17327     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17328     soname_spec='${libname}${release}${shared_ext}$major'
17329     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17330     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17331     ;;
17332   *)
17333    shrext='.sl'
17334    dynamic_linker="$host_os dld.sl"
17335    shlibpath_var=SHLIB_PATH
17336    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17337    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17338    soname_spec='${libname}${release}${shared_ext}$major'
17339    ;;
17340  esac
17341  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17342  postinstall_cmds='chmod 555 $lib'
17343  ;;
17344
17345irix5* | irix6* | nonstopux*)
17346  case $host_os in
17347    nonstopux*) version_type=nonstopux ;;
17348    *)
17349	if test "$lt_cv_prog_gnu_ld" = yes; then
17350		version_type=linux
17351	else
17352		version_type=irix
17353	fi ;;
17354  esac
17355  need_lib_prefix=no
17356  need_version=no
17357  soname_spec='${libname}${release}${shared_ext}$major'
17358  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17359  case $host_os in
17360  irix5* | nonstopux*)
17361    libsuff= shlibsuff=
17362    ;;
17363  *)
17364    case $LD in # libtool.m4 will add one of these switches to LD
17365    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17366      libsuff= shlibsuff= libmagic=32-bit;;
17367    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17368      libsuff=32 shlibsuff=N32 libmagic=N32;;
17369    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17370      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17371    *) libsuff= shlibsuff= libmagic=never-match;;
17372    esac
17373    ;;
17374  esac
17375  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17376  shlibpath_overrides_runpath=no
17377  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17378  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17379  hardcode_into_libs=yes
17380  ;;
17381
17382# No shared lib support for Linux oldld, aout, or coff.
17383linux*oldld* | linux*aout* | linux*coff*)
17384  dynamic_linker=no
17385  ;;
17386
17387# This must be Linux ELF.
17388linux*)
17389  version_type=linux
17390  need_lib_prefix=no
17391  need_version=no
17392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17393  soname_spec='${libname}${release}${shared_ext}$major'
17394  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17395  libsuff=
17396  if test "x$LINUX_64_MODE" = x64; then
17397    # Some platforms are per default 64-bit, so there's no /lib64
17398    if test -d /lib64; then
17399      libsuff=64
17400    fi
17401  fi
17402  shlibpath_var=LD_LIBRARY_PATH
17403  shlibpath_overrides_runpath=no
17404  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
17405  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17406  # This implies no fast_install, which is unacceptable.
17407  # Some rework will be needed to allow for fast_install
17408  # before this can be enabled.
17409  hardcode_into_libs=yes
17410
17411  # We used to test for /lib/ld.so.1 and disable shared libraries on
17412  # powerpc, because MkLinux only supported shared libraries with the
17413  # GNU dynamic linker.  Since this was broken with cross compilers,
17414  # most powerpc-linux boxes support dynamic linking these days and
17415  # people can always --disable-shared, the test was removed, and we
17416  # assume the GNU/Linux dynamic linker is in use.
17417  dynamic_linker='GNU/Linux ld.so'
17418  ;;
17419
17420netbsd*)
17421  version_type=sunos
17422  need_lib_prefix=no
17423  need_version=no
17424  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17425    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17426    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17427    dynamic_linker='NetBSD (a.out) ld.so'
17428  else
17429    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17430    soname_spec='${libname}${release}${shared_ext}$major'
17431    dynamic_linker='NetBSD ld.elf_so'
17432  fi
17433  shlibpath_var=LD_LIBRARY_PATH
17434  shlibpath_overrides_runpath=yes
17435  hardcode_into_libs=yes
17436  ;;
17437
17438newsos6)
17439  version_type=linux
17440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441  shlibpath_var=LD_LIBRARY_PATH
17442  shlibpath_overrides_runpath=yes
17443  ;;
17444
17445nto-qnx*)
17446  version_type=linux
17447  need_lib_prefix=no
17448  need_version=no
17449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17450  soname_spec='${libname}${release}${shared_ext}$major'
17451  shlibpath_var=LD_LIBRARY_PATH
17452  shlibpath_overrides_runpath=yes
17453  ;;
17454
17455openbsd*)
17456  version_type=sunos
17457  need_lib_prefix=no
17458  need_version=no
17459  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17460  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17461  shlibpath_var=LD_LIBRARY_PATH
17462  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17463    case $host_os in
17464      openbsd2.[89] | openbsd2.[89].*)
17465	shlibpath_overrides_runpath=no
17466	;;
17467      *)
17468	shlibpath_overrides_runpath=yes
17469	;;
17470      esac
17471  else
17472    shlibpath_overrides_runpath=yes
17473  fi
17474  ;;
17475
17476os2*)
17477  libname_spec='$name'
17478  shrext=".dll"
17479  need_lib_prefix=no
17480  library_names_spec='$libname${shared_ext} $libname.a'
17481  dynamic_linker='OS/2 ld.exe'
17482  shlibpath_var=LIBPATH
17483  ;;
17484
17485osf3* | osf4* | osf5*)
17486  version_type=osf
17487  need_lib_prefix=no
17488  need_version=no
17489  soname_spec='${libname}${release}${shared_ext}$major'
17490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17491  shlibpath_var=LD_LIBRARY_PATH
17492  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17493  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17494  ;;
17495
17496sco3.2v5*)
17497  version_type=osf
17498  soname_spec='${libname}${release}${shared_ext}$major'
17499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17500  shlibpath_var=LD_LIBRARY_PATH
17501  ;;
17502
17503solaris*)
17504  version_type=linux
17505  need_lib_prefix=no
17506  need_version=no
17507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17508  soname_spec='${libname}${release}${shared_ext}$major'
17509  shlibpath_var=LD_LIBRARY_PATH
17510  shlibpath_overrides_runpath=yes
17511  hardcode_into_libs=yes
17512  # ldd complains unless libraries are executable
17513  postinstall_cmds='chmod +x $lib'
17514  ;;
17515
17516sunos4*)
17517  version_type=sunos
17518  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17519  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17520  shlibpath_var=LD_LIBRARY_PATH
17521  shlibpath_overrides_runpath=yes
17522  if test "$with_gnu_ld" = yes; then
17523    need_lib_prefix=no
17524  fi
17525  need_version=yes
17526  ;;
17527
17528sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17529  version_type=linux
17530  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17531  soname_spec='${libname}${release}${shared_ext}$major'
17532  shlibpath_var=LD_LIBRARY_PATH
17533  case $host_vendor in
17534    sni)
17535      shlibpath_overrides_runpath=no
17536      need_lib_prefix=no
17537      export_dynamic_flag_spec='${wl}-Blargedynsym'
17538      runpath_var=LD_RUN_PATH
17539      ;;
17540    siemens)
17541      need_lib_prefix=no
17542      ;;
17543    motorola)
17544      need_lib_prefix=no
17545      need_version=no
17546      shlibpath_overrides_runpath=no
17547      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17548      ;;
17549  esac
17550  ;;
17551
17552sysv4*MP*)
17553  if test -d /usr/nec ;then
17554    version_type=linux
17555    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17556    soname_spec='$libname${shared_ext}.$major'
17557    shlibpath_var=LD_LIBRARY_PATH
17558  fi
17559  ;;
17560
17561uts4*)
17562  version_type=linux
17563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17564  soname_spec='${libname}${release}${shared_ext}$major'
17565  shlibpath_var=LD_LIBRARY_PATH
17566  ;;
17567
17568*)
17569  dynamic_linker=no
17570  ;;
17571esac
17572echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17573echo "${ECHO_T}$dynamic_linker" >&6
17574test "$dynamic_linker" = no && can_build_shared=no
17575
17576echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17577echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17578hardcode_action_F77=
17579if test -n "$hardcode_libdir_flag_spec_F77" || \
17580   test -n "$runpath_var F77" || \
17581   test "X$hardcode_automatic_F77"="Xyes" ; then
17582
17583  # We can hardcode non-existant directories.
17584  if test "$hardcode_direct_F77" != no &&
17585     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17586     # have to relink, otherwise we might link with an installed library
17587     # when we should be linking with a yet-to-be-installed one
17588     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17589     test "$hardcode_minus_L_F77" != no; then
17590    # Linking always hardcodes the temporary library directory.
17591    hardcode_action_F77=relink
17592  else
17593    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17594    hardcode_action_F77=immediate
17595  fi
17596else
17597  # We cannot hardcode anything, or else we can only hardcode existing
17598  # directories.
17599  hardcode_action_F77=unsupported
17600fi
17601echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17602echo "${ECHO_T}$hardcode_action_F77" >&6
17603
17604if test "$hardcode_action_F77" = relink; then
17605  # Fast installation is not supported
17606  enable_fast_install=no
17607elif test "$shlibpath_overrides_runpath" = yes ||
17608     test "$enable_shared" = no; then
17609  # Fast installation is not necessary
17610  enable_fast_install=needless
17611fi
17612
17613striplib=
17614old_striplib=
17615echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17616echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17617if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17618  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17619  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17620  echo "$as_me:$LINENO: result: yes" >&5
17621echo "${ECHO_T}yes" >&6
17622else
17623# FIXME - insert some real tests, host_os isn't really good enough
17624  case $host_os in
17625   darwin*)
17626       if test -n "$STRIP" ; then
17627         striplib="$STRIP -x"
17628         echo "$as_me:$LINENO: result: yes" >&5
17629echo "${ECHO_T}yes" >&6
17630       else
17631  echo "$as_me:$LINENO: result: no" >&5
17632echo "${ECHO_T}no" >&6
17633fi
17634       ;;
17635   *)
17636  echo "$as_me:$LINENO: result: no" >&5
17637echo "${ECHO_T}no" >&6
17638    ;;
17639  esac
17640fi
17641
17642
17643
17644# The else clause should only fire when bootstrapping the
17645# libtool distribution, otherwise you forgot to ship ltmain.sh
17646# with your package, and you will get complaints that there are
17647# no rules to generate ltmain.sh.
17648if test -f "$ltmain"; then
17649  # See if we are running on zsh, and set the options which allow our commands through
17650  # without removal of \ escapes.
17651  if test -n "${ZSH_VERSION+set}" ; then
17652    setopt NO_GLOB_SUBST
17653  fi
17654  # Now quote all the things that may contain metacharacters while being
17655  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17656  # variables and quote the copies for generation of the libtool script.
17657  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17658    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17659    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17660    deplibs_check_method reload_flag reload_cmds need_locks \
17661    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17662    lt_cv_sys_global_symbol_to_c_name_address \
17663    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17664    old_postinstall_cmds old_postuninstall_cmds \
17665    compiler_F77 \
17666    CC_F77 \
17667    LD_F77 \
17668    lt_prog_compiler_wl_F77 \
17669    lt_prog_compiler_pic_F77 \
17670    lt_prog_compiler_static_F77 \
17671    lt_prog_compiler_no_builtin_flag_F77 \
17672    export_dynamic_flag_spec_F77 \
17673    thread_safe_flag_spec_F77 \
17674    whole_archive_flag_spec_F77 \
17675    enable_shared_with_static_runtimes_F77 \
17676    old_archive_cmds_F77 \
17677    old_archive_from_new_cmds_F77 \
17678    predep_objects_F77 \
17679    postdep_objects_F77 \
17680    predeps_F77 \
17681    postdeps_F77 \
17682    compiler_lib_search_path_F77 \
17683    archive_cmds_F77 \
17684    archive_expsym_cmds_F77 \
17685    postinstall_cmds_F77 \
17686    postuninstall_cmds_F77 \
17687    old_archive_from_expsyms_cmds_F77 \
17688    allow_undefined_flag_F77 \
17689    no_undefined_flag_F77 \
17690    export_symbols_cmds_F77 \
17691    hardcode_libdir_flag_spec_F77 \
17692    hardcode_libdir_flag_spec_ld_F77 \
17693    hardcode_libdir_separator_F77 \
17694    hardcode_automatic_F77 \
17695    module_cmds_F77 \
17696    module_expsym_cmds_F77 \
17697    lt_cv_prog_compiler_c_o_F77 \
17698    exclude_expsyms_F77 \
17699    include_expsyms_F77; do
17700
17701    case $var in
17702    old_archive_cmds_F77 | \
17703    old_archive_from_new_cmds_F77 | \
17704    archive_cmds_F77 | \
17705    archive_expsym_cmds_F77 | \
17706    module_cmds_F77 | \
17707    module_expsym_cmds_F77 | \
17708    old_archive_from_expsyms_cmds_F77 | \
17709    export_symbols_cmds_F77 | \
17710    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17711    postinstall_cmds | postuninstall_cmds | \
17712    old_postinstall_cmds | old_postuninstall_cmds | \
17713    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17714      # Double-quote double-evaled strings.
17715      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17716      ;;
17717    *)
17718      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17719      ;;
17720    esac
17721  done
17722
17723  case $lt_echo in
17724  *'\$0 --fallback-echo"')
17725    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17726    ;;
17727  esac
17728
17729cfgfile="$ofile"
17730
17731  cat <<__EOF__ >> "$cfgfile"
17732# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17733
17734# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17735
17736# Shell to use when invoking shell scripts.
17737SHELL=$lt_SHELL
17738
17739# Whether or not to build shared libraries.
17740build_libtool_libs=$enable_shared
17741
17742# Whether or not to build static libraries.
17743build_old_libs=$enable_static
17744
17745# Whether or not to add -lc for building shared libraries.
17746build_libtool_need_lc=$archive_cmds_need_lc_F77
17747
17748# Whether or not to disallow shared libs when runtime libs are static
17749allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17750
17751# Whether or not to optimize for fast installation.
17752fast_install=$enable_fast_install
17753
17754# The host system.
17755host_alias=$host_alias
17756host=$host
17757
17758# An echo program that does not interpret backslashes.
17759echo=$lt_echo
17760
17761# The archiver.
17762AR=$lt_AR
17763AR_FLAGS=$lt_AR_FLAGS
17764
17765# A C compiler.
17766LTCC=$lt_LTCC
17767
17768# A language-specific compiler.
17769CC=$lt_compiler_F77
17770
17771# Is the compiler the GNU C compiler?
17772with_gcc=$GCC_F77
17773
17774# An ERE matcher.
17775EGREP=$lt_EGREP
17776
17777# The linker used to build libraries.
17778LD=$lt_LD_F77
17779
17780# Whether we need hard or soft links.
17781LN_S=$lt_LN_S
17782
17783# A BSD-compatible nm program.
17784NM=$lt_NM
17785
17786# A symbol stripping program
17787STRIP=$STRIP
17788
17789# Used to examine libraries when file_magic_cmd begins "file"
17790MAGIC_CMD=$MAGIC_CMD
17791
17792# Used on cygwin: DLL creation program.
17793DLLTOOL="$DLLTOOL"
17794
17795# Used on cygwin: object dumper.
17796OBJDUMP="$OBJDUMP"
17797
17798# Used on cygwin: assembler.
17799AS="$AS"
17800
17801# The name of the directory that contains temporary libtool files.
17802objdir=$objdir
17803
17804# How to create reloadable object files.
17805reload_flag=$lt_reload_flag
17806reload_cmds=$lt_reload_cmds
17807
17808# How to pass a linker flag through the compiler.
17809wl=$lt_lt_prog_compiler_wl_F77
17810
17811# Object file suffix (normally "o").
17812objext="$ac_objext"
17813
17814# Old archive suffix (normally "a").
17815libext="$libext"
17816
17817# Shared library suffix (normally ".so").
17818shrext='$shrext'
17819
17820# Executable file suffix (normally "").
17821exeext="$exeext"
17822
17823# Additional compiler flags for building library objects.
17824pic_flag=$lt_lt_prog_compiler_pic_F77
17825pic_mode=$pic_mode
17826
17827# What is the maximum length of a command?
17828max_cmd_len=$lt_cv_sys_max_cmd_len
17829
17830# Does compiler simultaneously support -c and -o options?
17831compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17832
17833# Must we lock files when doing compilation ?
17834need_locks=$lt_need_locks
17835
17836# Do we need the lib prefix for modules?
17837need_lib_prefix=$need_lib_prefix
17838
17839# Do we need a version for libraries?
17840need_version=$need_version
17841
17842# Whether dlopen is supported.
17843dlopen_support=$enable_dlopen
17844
17845# Whether dlopen of programs is supported.
17846dlopen_self=$enable_dlopen_self
17847
17848# Whether dlopen of statically linked programs is supported.
17849dlopen_self_static=$enable_dlopen_self_static
17850
17851# Compiler flag to prevent dynamic linking.
17852link_static_flag=$lt_lt_prog_compiler_static_F77
17853
17854# Compiler flag to turn off builtin functions.
17855no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17856
17857# Compiler flag to allow reflexive dlopens.
17858export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17859
17860# Compiler flag to generate shared objects directly from archives.
17861whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17862
17863# Compiler flag to generate thread-safe objects.
17864thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17865
17866# Library versioning type.
17867version_type=$version_type
17868
17869# Format of library name prefix.
17870libname_spec=$lt_libname_spec
17871
17872# List of archive names.  First name is the real one, the rest are links.
17873# The last name is the one that the linker finds with -lNAME.
17874library_names_spec=$lt_library_names_spec
17875
17876# The coded name of the library, if different from the real name.
17877soname_spec=$lt_soname_spec
17878
17879# Commands used to build and install an old-style archive.
17880RANLIB=$lt_RANLIB
17881old_archive_cmds=$lt_old_archive_cmds_F77
17882old_postinstall_cmds=$lt_old_postinstall_cmds
17883old_postuninstall_cmds=$lt_old_postuninstall_cmds
17884
17885# Create an old-style archive from a shared archive.
17886old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17887
17888# Create a temporary old-style archive to link instead of a shared archive.
17889old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17890
17891# Commands used to build and install a shared archive.
17892archive_cmds=$lt_archive_cmds_F77
17893archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17894postinstall_cmds=$lt_postinstall_cmds
17895postuninstall_cmds=$lt_postuninstall_cmds
17896
17897# Commands used to build a loadable module (assumed same as above if empty)
17898module_cmds=$lt_module_cmds_F77
17899module_expsym_cmds=$lt_module_expsym_cmds_F77
17900
17901# Commands to strip libraries.
17902old_striplib=$lt_old_striplib
17903striplib=$lt_striplib
17904
17905# Dependencies to place before the objects being linked to create a
17906# shared library.
17907predep_objects=$lt_predep_objects_F77
17908
17909# Dependencies to place after the objects being linked to create a
17910# shared library.
17911postdep_objects=$lt_postdep_objects_F77
17912
17913# Dependencies to place before the objects being linked to create a
17914# shared library.
17915predeps=$lt_predeps_F77
17916
17917# Dependencies to place after the objects being linked to create a
17918# shared library.
17919postdeps=$lt_postdeps_F77
17920
17921# The library search path used internally by the compiler when linking
17922# a shared library.
17923compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17924
17925# Method to check whether dependent libraries are shared objects.
17926deplibs_check_method=$lt_deplibs_check_method
17927
17928# Command to use when deplibs_check_method == file_magic.
17929file_magic_cmd=$lt_file_magic_cmd
17930
17931# Flag that allows shared libraries with undefined symbols to be built.
17932allow_undefined_flag=$lt_allow_undefined_flag_F77
17933
17934# Flag that forces no undefined symbols.
17935no_undefined_flag=$lt_no_undefined_flag_F77
17936
17937# Commands used to finish a libtool library installation in a directory.
17938finish_cmds=$lt_finish_cmds
17939
17940# Same as above, but a single script fragment to be evaled but not shown.
17941finish_eval=$lt_finish_eval
17942
17943# Take the output of nm and produce a listing of raw symbols and C names.
17944global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17945
17946# Transform the output of nm in a proper C declaration
17947global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17948
17949# Transform the output of nm in a C name address pair
17950global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17951
17952# This is the shared library runtime path variable.
17953runpath_var=$runpath_var
17954
17955# This is the shared library path variable.
17956shlibpath_var=$shlibpath_var
17957
17958# Is shlibpath searched before the hard-coded library search path?
17959shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17960
17961# How to hardcode a shared library path into an executable.
17962hardcode_action=$hardcode_action_F77
17963
17964# Whether we should hardcode library paths into libraries.
17965hardcode_into_libs=$hardcode_into_libs
17966
17967# Flag to hardcode \$libdir into a binary during linking.
17968# This must work even if \$libdir does not exist.
17969hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17970
17971# If ld is used when linking, flag to hardcode \$libdir into
17972# a binary during linking. This must work even if \$libdir does
17973# not exist.
17974hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17975
17976# Whether we need a single -rpath flag with a separated argument.
17977hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17978
17979# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17980# resulting binary.
17981hardcode_direct=$hardcode_direct_F77
17982
17983# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17984# resulting binary.
17985hardcode_minus_L=$hardcode_minus_L_F77
17986
17987# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17988# the resulting binary.
17989hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17990
17991# Set to yes if building a shared library automatically hardcodes DIR into the library
17992# and all subsequent libraries and executables linked against it.
17993hardcode_automatic=$hardcode_automatic_F77
17994
17995# Variables whose values should be saved in libtool wrapper scripts and
17996# restored at relink time.
17997variables_saved_for_relink="$variables_saved_for_relink"
17998
17999# Whether libtool must link a program against all its dependency libraries.
18000link_all_deplibs=$link_all_deplibs_F77
18001
18002# Compile-time system search path for libraries
18003sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18004
18005# Run-time system search path for libraries
18006sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18007
18008# Fix the shell variable \$srcfile for the compiler.
18009fix_srcfile_path="$fix_srcfile_path_F77"
18010
18011# Set to yes if exported symbols are required.
18012always_export_symbols=$always_export_symbols_F77
18013
18014# The commands to list exported symbols.
18015export_symbols_cmds=$lt_export_symbols_cmds_F77
18016
18017# The commands to extract the exported symbol list from a shared archive.
18018extract_expsyms_cmds=$lt_extract_expsyms_cmds
18019
18020# Symbols that should not be listed in the preloaded symbols.
18021exclude_expsyms=$lt_exclude_expsyms_F77
18022
18023# Symbols that must always be exported.
18024include_expsyms=$lt_include_expsyms_F77
18025
18026# ### END LIBTOOL TAG CONFIG: $tagname
18027
18028__EOF__
18029
18030
18031else
18032  # If there is no Makefile yet, we rely on a make rule to execute
18033  # `config.status --recheck' to rerun these tests and create the
18034  # libtool script then.
18035  test -f Makefile && make "$ltmain"
18036fi
18037
18038
18039ac_ext=c
18040ac_cpp='$CPP $CPPFLAGS'
18041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18043ac_compiler_gnu=$ac_cv_c_compiler_gnu
18044
18045CC="$lt_save_CC"
18046
18047	else
18048	  tagname=""
18049	fi
18050	;;
18051
18052      GCJ)
18053	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18054
18055
18056
18057# Source file extension for Java test sources.
18058ac_ext=java
18059
18060# Object file extension for compiled Java test sources.
18061objext=o
18062objext_GCJ=$objext
18063
18064# Code to be used in simple compile tests
18065lt_simple_compile_test_code="class foo {}\n"
18066
18067# Code to be used in simple link tests
18068lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
18069
18070# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18071
18072# If no C compiler was specified, use CC.
18073LTCC=${LTCC-"$CC"}
18074
18075# Allow CC to be a program name with arguments.
18076compiler=$CC
18077
18078
18079# Allow CC to be a program name with arguments.
18080lt_save_CC="$CC"
18081CC=${GCJ-"gcj"}
18082compiler=$CC
18083compiler_GCJ=$CC
18084
18085# GCJ did not exist at the time GCC didn't implicitly link libc in.
18086archive_cmds_need_lc_GCJ=no
18087
18088## CAVEAT EMPTOR:
18089## There is no encapsulation within the following macros, do not change
18090## the running order or otherwise move them around unless you know exactly
18091## what you are doing...
18092
18093lt_prog_compiler_no_builtin_flag_GCJ=
18094
18095if test "$GCC" = yes; then
18096  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18097
18098
18099echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18100echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18101if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18102  echo $ECHO_N "(cached) $ECHO_C" >&6
18103else
18104  lt_cv_prog_compiler_rtti_exceptions=no
18105  ac_outfile=conftest.$ac_objext
18106   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18107   lt_compiler_flag="-fno-rtti -fno-exceptions"
18108   # Insert the option either (1) after the last *FLAGS variable, or
18109   # (2) before a word containing "conftest.", or (3) at the end.
18110   # Note that $ac_compile itself does not contain backslashes and begins
18111   # with a dollar sign (not a hyphen), so the echo should work correctly.
18112   # The option is referenced via a variable to avoid confusing sed.
18113   lt_compile=`echo "$ac_compile" | $SED \
18114   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18115   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18116   -e 's:$: $lt_compiler_flag:'`
18117   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18118   (eval "$lt_compile" 2>conftest.err)
18119   ac_status=$?
18120   cat conftest.err >&5
18121   echo "$as_me:__oline__: \$? = $ac_status" >&5
18122   if (exit $ac_status) && test -s "$ac_outfile"; then
18123     # The compiler can only warn and ignore the option if not recognized
18124     # So say no if there are warnings
18125     if test ! -s conftest.err; then
18126       lt_cv_prog_compiler_rtti_exceptions=yes
18127     fi
18128   fi
18129   $rm conftest*
18130
18131fi
18132echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18133echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18134
18135if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18136    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18137else
18138    :
18139fi
18140
18141fi
18142
18143lt_prog_compiler_wl_GCJ=
18144lt_prog_compiler_pic_GCJ=
18145lt_prog_compiler_static_GCJ=
18146
18147echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18148echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18149
18150  if test "$GCC" = yes; then
18151    lt_prog_compiler_wl_GCJ='-Wl,'
18152    lt_prog_compiler_static_GCJ='-static'
18153
18154    case $host_os in
18155      aix*)
18156      # All AIX code is PIC.
18157      if test "$host_cpu" = ia64; then
18158	# AIX 5 now supports IA64 processor
18159	lt_prog_compiler_static_GCJ='-Bstatic'
18160      fi
18161      ;;
18162
18163    amigaos*)
18164      # FIXME: we need at least 68020 code to build shared libraries, but
18165      # adding the `-m68020' flag to GCC prevents building anything better,
18166      # like `-m68040'.
18167      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18168      ;;
18169
18170    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18171      # PIC is the default for these OSes.
18172      ;;
18173
18174    mingw* | pw32* | os2*)
18175      # This hack is so that the source file can tell whether it is being
18176      # built for inclusion in a dll (and should export symbols for example).
18177      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18178      ;;
18179
18180    darwin* | rhapsody*)
18181      # PIC is the default on this platform
18182      # Common symbols not allowed in MH_DYLIB files
18183      lt_prog_compiler_pic_GCJ='-fno-common'
18184      ;;
18185
18186    msdosdjgpp*)
18187      # Just because we use GCC doesn't mean we suddenly get shared libraries
18188      # on systems that don't support them.
18189      lt_prog_compiler_can_build_shared_GCJ=no
18190      enable_shared=no
18191      ;;
18192
18193    sysv4*MP*)
18194      if test -d /usr/nec; then
18195	lt_prog_compiler_pic_GCJ=-Kconform_pic
18196      fi
18197      ;;
18198
18199    hpux*)
18200      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18201      # not for PA HP-UX.
18202      case "$host_cpu" in
18203      hppa*64*|ia64*)
18204	# +Z the default
18205	;;
18206      *)
18207	lt_prog_compiler_pic_GCJ='-fPIC'
18208	;;
18209      esac
18210      ;;
18211
18212    *)
18213      lt_prog_compiler_pic_GCJ='-fPIC'
18214      ;;
18215    esac
18216  else
18217    # PORTME Check for flag to pass linker flags through the system compiler.
18218    case $host_os in
18219    aix*)
18220      lt_prog_compiler_wl_GCJ='-Wl,'
18221      if test "$host_cpu" = ia64; then
18222	# AIX 5 now supports IA64 processor
18223	lt_prog_compiler_static_GCJ='-Bstatic'
18224      else
18225	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18226      fi
18227      ;;
18228
18229    mingw* | pw32* | os2*)
18230      # This hack is so that the source file can tell whether it is being
18231      # built for inclusion in a dll (and should export symbols for example).
18232      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18233      ;;
18234
18235    hpux9* | hpux10* | hpux11*)
18236      lt_prog_compiler_wl_GCJ='-Wl,'
18237      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18238      # not for PA HP-UX.
18239      case "$host_cpu" in
18240      hppa*64*|ia64*)
18241	# +Z the default
18242	;;
18243      *)
18244	lt_prog_compiler_pic_GCJ='+Z'
18245	;;
18246      esac
18247      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18248      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18249      ;;
18250
18251    irix5* | irix6* | nonstopux*)
18252      lt_prog_compiler_wl_GCJ='-Wl,'
18253      # PIC (with -KPIC) is the default.
18254      lt_prog_compiler_static_GCJ='-non_shared'
18255      ;;
18256
18257    newsos6)
18258      lt_prog_compiler_pic_GCJ='-KPIC'
18259      lt_prog_compiler_static_GCJ='-Bstatic'
18260      ;;
18261
18262    linux*)
18263      case $CC in
18264      icc* | ecc*)
18265	lt_prog_compiler_wl_GCJ='-Wl,'
18266	lt_prog_compiler_pic_GCJ='-KPIC'
18267	lt_prog_compiler_static_GCJ='-static'
18268        ;;
18269      ccc*)
18270        lt_prog_compiler_wl_GCJ='-Wl,'
18271        # All Alpha code is PIC.
18272        lt_prog_compiler_static_GCJ='-non_shared'
18273        ;;
18274      esac
18275      ;;
18276
18277    osf3* | osf4* | osf5*)
18278      lt_prog_compiler_wl_GCJ='-Wl,'
18279      # All OSF/1 code is PIC.
18280      lt_prog_compiler_static_GCJ='-non_shared'
18281      ;;
18282
18283    sco3.2v5*)
18284      lt_prog_compiler_pic_GCJ='-Kpic'
18285      lt_prog_compiler_static_GCJ='-dn'
18286      ;;
18287
18288    solaris*)
18289      lt_prog_compiler_wl_GCJ='-Wl,'
18290      lt_prog_compiler_pic_GCJ='-KPIC'
18291      lt_prog_compiler_static_GCJ='-Bstatic'
18292      ;;
18293
18294    sunos4*)
18295      lt_prog_compiler_wl_GCJ='-Qoption ld '
18296      lt_prog_compiler_pic_GCJ='-PIC'
18297      lt_prog_compiler_static_GCJ='-Bstatic'
18298      ;;
18299
18300    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18301      lt_prog_compiler_wl_GCJ='-Wl,'
18302      lt_prog_compiler_pic_GCJ='-KPIC'
18303      lt_prog_compiler_static_GCJ='-Bstatic'
18304      ;;
18305
18306    sysv4*MP*)
18307      if test -d /usr/nec ;then
18308	lt_prog_compiler_pic_GCJ='-Kconform_pic'
18309	lt_prog_compiler_static_GCJ='-Bstatic'
18310      fi
18311      ;;
18312
18313    uts4*)
18314      lt_prog_compiler_pic_GCJ='-pic'
18315      lt_prog_compiler_static_GCJ='-Bstatic'
18316      ;;
18317
18318    *)
18319      lt_prog_compiler_can_build_shared_GCJ=no
18320      ;;
18321    esac
18322  fi
18323
18324echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18325echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18326
18327#
18328# Check to make sure the PIC flag actually works.
18329#
18330if test -n "$lt_prog_compiler_pic_GCJ"; then
18331
18332echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18333echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18334if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18335  echo $ECHO_N "(cached) $ECHO_C" >&6
18336else
18337  lt_prog_compiler_pic_works_GCJ=no
18338  ac_outfile=conftest.$ac_objext
18339   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18340   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18341   # Insert the option either (1) after the last *FLAGS variable, or
18342   # (2) before a word containing "conftest.", or (3) at the end.
18343   # Note that $ac_compile itself does not contain backslashes and begins
18344   # with a dollar sign (not a hyphen), so the echo should work correctly.
18345   # The option is referenced via a variable to avoid confusing sed.
18346   lt_compile=`echo "$ac_compile" | $SED \
18347   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18348   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18349   -e 's:$: $lt_compiler_flag:'`
18350   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18351   (eval "$lt_compile" 2>conftest.err)
18352   ac_status=$?
18353   cat conftest.err >&5
18354   echo "$as_me:__oline__: \$? = $ac_status" >&5
18355   if (exit $ac_status) && test -s "$ac_outfile"; then
18356     # The compiler can only warn and ignore the option if not recognized
18357     # So say no if there are warnings
18358     if test ! -s conftest.err; then
18359       lt_prog_compiler_pic_works_GCJ=yes
18360     fi
18361   fi
18362   $rm conftest*
18363
18364fi
18365echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18366echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18367
18368if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18369    case $lt_prog_compiler_pic_GCJ in
18370     "" | " "*) ;;
18371     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18372     esac
18373else
18374    lt_prog_compiler_pic_GCJ=
18375     lt_prog_compiler_can_build_shared_GCJ=no
18376fi
18377
18378fi
18379case "$host_os" in
18380  # For platforms which do not support PIC, -DPIC is meaningless:
18381  *djgpp*)
18382    lt_prog_compiler_pic_GCJ=
18383    ;;
18384  *)
18385    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18386    ;;
18387esac
18388
18389echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18390echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18391if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18392  echo $ECHO_N "(cached) $ECHO_C" >&6
18393else
18394  lt_cv_prog_compiler_c_o_GCJ=no
18395   $rm -r conftest 2>/dev/null
18396   mkdir conftest
18397   cd conftest
18398   mkdir out
18399   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18400
18401   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
18402   # that will create temporary files in the current directory regardless of
18403   # the output directory.  Thus, making CWD read-only will cause this test
18404   # to fail, enabling locking or at least warning the user not to do parallel
18405   # builds.
18406   chmod -w .
18407
18408   lt_compiler_flag="-o out/conftest2.$ac_objext"
18409   # Insert the option either (1) after the last *FLAGS variable, or
18410   # (2) before a word containing "conftest.", or (3) at the end.
18411   # Note that $ac_compile itself does not contain backslashes and begins
18412   # with a dollar sign (not a hyphen), so the echo should work correctly.
18413   lt_compile=`echo "$ac_compile" | $SED \
18414   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18415   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18416   -e 's:$: $lt_compiler_flag:'`
18417   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18418   (eval "$lt_compile" 2>out/conftest.err)
18419   ac_status=$?
18420   cat out/conftest.err >&5
18421   echo "$as_me:__oline__: \$? = $ac_status" >&5
18422   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18423   then
18424     # The compiler can only warn and ignore the option if not recognized
18425     # So say no if there are warnings
18426     if test ! -s out/conftest.err; then
18427       lt_cv_prog_compiler_c_o_GCJ=yes
18428     fi
18429   fi
18430   chmod u+w .
18431   $rm conftest* out/*
18432   rmdir out
18433   cd ..
18434   rmdir conftest
18435   $rm conftest*
18436
18437fi
18438echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18439echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18440
18441
18442hard_links="nottested"
18443if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18444  # do not overwrite the value of need_locks provided by the user
18445  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18446echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18447  hard_links=yes
18448  $rm conftest*
18449  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18450  touch conftest.a
18451  ln conftest.a conftest.b 2>&5 || hard_links=no
18452  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18453  echo "$as_me:$LINENO: result: $hard_links" >&5
18454echo "${ECHO_T}$hard_links" >&6
18455  if test "$hard_links" = no; then
18456    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18457echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18458    need_locks=warn
18459  fi
18460else
18461  need_locks=no
18462fi
18463
18464echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18465echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18466
18467  runpath_var=
18468  allow_undefined_flag_GCJ=
18469  enable_shared_with_static_runtimes_GCJ=no
18470  archive_cmds_GCJ=
18471  archive_expsym_cmds_GCJ=
18472  old_archive_From_new_cmds_GCJ=
18473  old_archive_from_expsyms_cmds_GCJ=
18474  export_dynamic_flag_spec_GCJ=
18475  whole_archive_flag_spec_GCJ=
18476  thread_safe_flag_spec_GCJ=
18477  hardcode_libdir_flag_spec_GCJ=
18478  hardcode_libdir_flag_spec_ld_GCJ=
18479  hardcode_libdir_separator_GCJ=
18480  hardcode_direct_GCJ=no
18481  hardcode_minus_L_GCJ=no
18482  hardcode_shlibpath_var_GCJ=unsupported
18483  link_all_deplibs_GCJ=unknown
18484  hardcode_automatic_GCJ=no
18485  module_cmds_GCJ=
18486  module_expsym_cmds_GCJ=
18487  always_export_symbols_GCJ=no
18488  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18489  # include_expsyms should be a list of space-separated symbols to be *always*
18490  # included in the symbol list
18491  include_expsyms_GCJ=
18492  # exclude_expsyms can be an extended regexp of symbols to exclude
18493  # it will be wrapped by ` (' and `)$', so one must not match beginning or
18494  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18495  # as well as any symbol that contains `d'.
18496  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18497  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18498  # platforms (ab)use it in PIC code, but their linkers get confused if
18499  # the symbol is explicitly referenced.  Since portable code cannot
18500  # rely on this symbol name, it's probably fine to never include it in
18501  # preloaded symbol tables.
18502  extract_expsyms_cmds=
18503
18504  case $host_os in
18505  cygwin* | mingw* | pw32*)
18506    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18507    # When not using gcc, we currently assume that we are using
18508    # Microsoft Visual C++.
18509    if test "$GCC" != yes; then
18510      with_gnu_ld=no
18511    fi
18512    ;;
18513  openbsd*)
18514    with_gnu_ld=no
18515    ;;
18516  esac
18517
18518  ld_shlibs_GCJ=yes
18519  if test "$with_gnu_ld" = yes; then
18520    # If archive_cmds runs LD, not CC, wlarc should be empty
18521    wlarc='${wl}'
18522
18523    # See if GNU ld supports shared libraries.
18524    case $host_os in
18525    aix3* | aix4* | aix5*)
18526      # On AIX/PPC, the GNU linker is very broken
18527      if test "$host_cpu" != ia64; then
18528	ld_shlibs_GCJ=no
18529	cat <<EOF 1>&2
18530
18531*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18532*** to be unable to reliably create shared libraries on AIX.
18533*** Therefore, libtool is disabling shared libraries support.  If you
18534*** really care for shared libraries, you may want to modify your PATH
18535*** so that a non-GNU linker is found, and then restart.
18536
18537EOF
18538      fi
18539      ;;
18540
18541    amigaos*)
18542      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)'
18543      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18544      hardcode_minus_L_GCJ=yes
18545
18546      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18547      # that the semantics of dynamic libraries on AmigaOS, at least up
18548      # to version 4, is to share data among multiple programs linked
18549      # with the same dynamic library.  Since this doesn't match the
18550      # behavior of shared libraries on other platforms, we can't use
18551      # them.
18552      ld_shlibs_GCJ=no
18553      ;;
18554
18555    beos*)
18556      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18557	allow_undefined_flag_GCJ=unsupported
18558	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18559	# support --undefined.  This deserves some investigation.  FIXME
18560	archive_cmds_GCJ='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
18561      else
18562	ld_shlibs_GCJ=no
18563      fi
18564      ;;
18565
18566    cygwin* | mingw* | pw32*)
18567      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18568      # as there is no search path for DLLs.
18569      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18570      allow_undefined_flag_GCJ=no
18571      always_export_symbols_GCJ=no
18572      enable_shared_with_static_runtimes_GCJ=yes
18573      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18574
18575      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18576        archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18577	# If the export-symbols file already is a .def file (1st line
18578	# is EXPORTS), use it as is; otherwise, prepend...
18579	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18580	  cp $export_symbols $output_objdir/$soname.def;
18581	else
18582	  echo EXPORTS > $output_objdir/$soname.def;
18583	  cat $export_symbols >> $output_objdir/$soname.def;
18584	fi~
18585	$CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
18586      else
18587	ld_shlibs=no
18588      fi
18589      ;;
18590
18591    netbsd*)
18592      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18593	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18594	wlarc=
18595      else
18596	archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
18597	archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18598      fi
18599      ;;
18600
18601    solaris* | sysv5*)
18602      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18603	ld_shlibs_GCJ=no
18604	cat <<EOF 1>&2
18605
18606*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18607*** create shared libraries on Solaris systems.  Therefore, libtool
18608*** is disabling shared libraries support.  We urge you to upgrade GNU
18609*** binutils to release 2.9.1 or newer.  Another option is to modify
18610*** your PATH or compiler configuration so that the native linker is
18611*** used, and then restart.
18612
18613EOF
18614      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18615	archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
18616	archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18617      else
18618	ld_shlibs_GCJ=no
18619      fi
18620      ;;
18621
18622    sunos4*)
18623      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18624      wlarc=
18625      hardcode_direct_GCJ=yes
18626      hardcode_shlibpath_var_GCJ=no
18627      ;;
18628
18629    *)
18630      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18631	archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
18632	archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18633      else
18634	ld_shlibs_GCJ=no
18635      fi
18636      ;;
18637    esac
18638
18639    if test "$ld_shlibs_GCJ" = yes; then
18640      runpath_var=LD_RUN_PATH
18641      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18642      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18643      # ancient GNU ld didn't support --whole-archive et. al.
18644      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18645 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18646      else
18647  	whole_archive_flag_spec_GCJ=
18648      fi
18649    fi
18650  else
18651    # PORTME fill in a description of your system's linker (not GNU ld)
18652    case $host_os in
18653    aix3*)
18654      allow_undefined_flag_GCJ=unsupported
18655      always_export_symbols_GCJ=yes
18656      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'
18657      # Note: this linker hardcodes the directories in LIBPATH if there
18658      # are no directories specified by -L.
18659      hardcode_minus_L_GCJ=yes
18660      if test "$GCC" = yes && test -z "$link_static_flag"; then
18661	# Neither direct hardcoding nor static linking is supported with a
18662	# broken collect2.
18663	hardcode_direct_GCJ=unsupported
18664      fi
18665      ;;
18666
18667    aix4* | aix5*)
18668      if test "$host_cpu" = ia64; then
18669	# On IA64, the linker does run time linking by default, so we don't
18670	# have to do anything special.
18671	aix_use_runtimelinking=no
18672	exp_sym_flag='-Bexport'
18673	no_entry_flag=""
18674      else
18675	# If we're using GNU nm, then we don't want the "-C" option.
18676	# -C means demangle to AIX nm, but means don't demangle with GNU nm
18677	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18678	  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'
18679	else
18680	  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'
18681	fi
18682
18683	# KDE requires run time linking.  Make it the default.
18684	aix_use_runtimelinking=yes
18685	exp_sym_flag='-bexport'
18686	no_entry_flag='-bnoentry'
18687      fi
18688
18689      # When large executables or shared objects are built, AIX ld can
18690      # have problems creating the table of contents.  If linking a library
18691      # or program results in "error TOC overflow" add -mminimal-toc to
18692      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18693      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18694
18695      archive_cmds_GCJ=''
18696      hardcode_direct_GCJ=yes
18697      hardcode_libdir_separator_GCJ=':'
18698      link_all_deplibs_GCJ=yes
18699
18700      if test "$GCC" = yes; then
18701	case $host_os in aix4.012|aix4.012.*)
18702	# We only want to do this on AIX 4.2 and lower, the check
18703	# below for broken collect2 doesn't work under 4.3+
18704	  collect2name=`${CC} -print-prog-name=collect2`
18705	  if test -f "$collect2name" && \
18706  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18707	  then
18708  	  # We have reworked collect2
18709  	  hardcode_direct_GCJ=yes
18710	  else
18711  	  # We have old collect2
18712  	  hardcode_direct_GCJ=unsupported
18713  	  # It fails to find uninstalled libraries when the uninstalled
18714  	  # path is not listed in the libpath.  Setting hardcode_minus_L
18715  	  # to unsupported forces relinking
18716  	  hardcode_minus_L_GCJ=yes
18717  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18718  	  hardcode_libdir_separator_GCJ=
18719	  fi
18720	esac
18721	shared_flag='-shared'
18722      else
18723	# not using gcc
18724	if test "$host_cpu" = ia64; then
18725  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18726  	# chokes on -Wl,-G. The following line is correct:
18727	  shared_flag='-G'
18728	else
18729  	if test "$aix_use_runtimelinking" = yes; then
18730	    shared_flag='-qmkshrobj ${wl}-G'
18731	  else
18732	    shared_flag='-qmkshrobj'
18733  	fi
18734	fi
18735      fi
18736
18737      # Let the compiler handle the export list.
18738      always_export_symbols_GCJ=no
18739      if test "$aix_use_runtimelinking" = yes; then
18740	# Warning - without using the other runtime loading flags (-brtl),
18741	# -berok will link without error, but may produce a broken library.
18742	allow_undefined_flag_GCJ='-berok'
18743       # Determine the default libpath from the value encoded in an empty executable.
18744	cat >conftest.$ac_ext <<_ACEOF
18745/* confdefs.h.  */
18746_ACEOF
18747cat confdefs.h >>conftest.$ac_ext
18748cat >>conftest.$ac_ext <<_ACEOF
18749/* end confdefs.h.  */
18750
18751int
18752main ()
18753{
18754
18755  ;
18756  return 0;
18757}
18758_ACEOF
18759rm -f conftest.$ac_objext conftest$ac_exeext
18760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18761  (eval $ac_link) 2>conftest.er1
18762  ac_status=$?
18763  grep -v '^ *+' conftest.er1 >conftest.err
18764  rm -f conftest.er1
18765  cat conftest.err >&5
18766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767  (exit $ac_status); } &&
18768	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18770  (eval $ac_try) 2>&5
18771  ac_status=$?
18772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773  (exit $ac_status); }; } &&
18774	 { ac_try='test -s conftest$ac_exeext'
18775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18776  (eval $ac_try) 2>&5
18777  ac_status=$?
18778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779  (exit $ac_status); }; }; then
18780
18781aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18782}'`
18783# Check for a 64-bit object if we didn't find anything.
18784if 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; }
18785}'`; fi
18786else
18787  echo "$as_me: failed program was:" >&5
18788sed 's/^/| /' conftest.$ac_ext >&5
18789
18790fi
18791rm -f conftest.err conftest.$ac_objext \
18792      conftest$ac_exeext conftest.$ac_ext
18793if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18794
18795	hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18796	archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
18797	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18798       else
18799	if test "$host_cpu" = ia64; then
18800	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18801	  allow_undefined_flag_GCJ="-z nodefs"
18802	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
18803	else
18804	 # Determine the default libpath from the value encoded in an empty executable.
18805	 cat >conftest.$ac_ext <<_ACEOF
18806/* confdefs.h.  */
18807_ACEOF
18808cat confdefs.h >>conftest.$ac_ext
18809cat >>conftest.$ac_ext <<_ACEOF
18810/* end confdefs.h.  */
18811
18812int
18813main ()
18814{
18815
18816  ;
18817  return 0;
18818}
18819_ACEOF
18820rm -f conftest.$ac_objext conftest$ac_exeext
18821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18822  (eval $ac_link) 2>conftest.er1
18823  ac_status=$?
18824  grep -v '^ *+' conftest.er1 >conftest.err
18825  rm -f conftest.er1
18826  cat conftest.err >&5
18827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828  (exit $ac_status); } &&
18829	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831  (eval $ac_try) 2>&5
18832  ac_status=$?
18833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834  (exit $ac_status); }; } &&
18835	 { ac_try='test -s conftest$ac_exeext'
18836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837  (eval $ac_try) 2>&5
18838  ac_status=$?
18839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840  (exit $ac_status); }; }; then
18841
18842aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18843}'`
18844# Check for a 64-bit object if we didn't find anything.
18845if 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; }
18846}'`; fi
18847else
18848  echo "$as_me: failed program was:" >&5
18849sed 's/^/| /' conftest.$ac_ext >&5
18850
18851fi
18852rm -f conftest.err conftest.$ac_objext \
18853      conftest$ac_exeext conftest.$ac_ext
18854if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18855
18856	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18857	  # Warning - without using the other run time loading flags,
18858	  # -berok will link without error, but may produce a broken library.
18859	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18860	  allow_undefined_flag_GCJ=' ${wl}-berok'
18861	  # -bexpall does not export symbols beginning with underscore (_)
18862	  always_export_symbols_GCJ=yes
18863	  # Exported symbols can be pulled into shared objects from archives
18864	  whole_archive_flag_spec_GCJ=' '
18865	  archive_cmds_need_lc_GCJ=yes
18866	  # This is similar to how AIX traditionally builds it's shared libraries.
18867	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18868	fi
18869      fi
18870      ;;
18871
18872    amigaos*)
18873      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)'
18874      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18875      hardcode_minus_L_GCJ=yes
18876      # see comment about different semantics on the GNU ld section
18877      ld_shlibs_GCJ=no
18878      ;;
18879
18880    bsdi4*)
18881      export_dynamic_flag_spec_GCJ=-rdynamic
18882      ;;
18883
18884    cygwin* | mingw* | pw32*)
18885      # When not using gcc, we currently assume that we are using
18886      # Microsoft Visual C++.
18887      # hardcode_libdir_flag_spec is actually meaningless, as there is
18888      # no search path for DLLs.
18889      hardcode_libdir_flag_spec_GCJ=' '
18890      allow_undefined_flag_GCJ=no
18891      # Tell ltmain to make .lib files, not .a files.
18892      libext=lib
18893      # Tell ltmain to make .dll files, not .so files.
18894      shrext=".dll"
18895      # FIXME: Setting linknames here is a bad hack.
18896      archive_cmds_GCJ='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18897      # The linker will automatically build a .lib file if we build a DLL.
18898      old_archive_From_new_cmds_GCJ='true'
18899      # FIXME: Should let the user specify the lib program.
18900      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18901      fix_srcfile_path='`cygpath -w "$srcfile"`'
18902      enable_shared_with_static_runtimes_GCJ=yes
18903      ;;
18904
18905    darwin* | rhapsody*)
18906    if test "$GXX" = yes ; then
18907      archive_cmds_need_lc_GCJ=no
18908      case "$host_os" in
18909      rhapsody* | darwin1.[012])
18910	allow_undefined_flag_GCJ='-Wl,-undefined -Wl,suppress'
18911	;;
18912      *) # Darwin 1.3 on
18913	if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18914	  allow_undefined_flag_GCJ='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
18915	else
18916	  case ${MACOSX_DEPLOYMENT_TARGET} in
18917	    10.012)
18918	      allow_undefined_flag_GCJ='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
18919	      ;;
18920	    10.*)
18921	      allow_undefined_flag_GCJ='-Wl,-undefined -Wl,dynamic_lookup'
18922	      ;;
18923	  esac
18924	fi
18925	;;
18926      esac
18927    	lt_int_apple_cc_single_mod=no
18928    	output_verbose_link_cmd='echo'
18929    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
18930    	  lt_int_apple_cc_single_mod=yes
18931    	fi
18932    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18933    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
18934    	else
18935        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
18936      fi
18937      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
18938      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18939        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18940          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18941        else
18942          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18943        fi
18944          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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18945      hardcode_direct_GCJ=no
18946      hardcode_automatic_GCJ=yes
18947      hardcode_shlibpath_var_GCJ=unsupported
18948      whole_archive_flag_spec_GCJ='-all_load $convenience'
18949      link_all_deplibs_GCJ=yes
18950    else
18951      ld_shlibs_GCJ=no
18952    fi
18953      ;;
18954
18955    dgux*)
18956      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18957      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18958      hardcode_shlibpath_var_GCJ=no
18959      ;;
18960
18961    freebsd1*)
18962      ld_shlibs_GCJ=no
18963      ;;
18964
18965    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18966    # support.  Future versions do this automatically, but an explicit c++rt0.o
18967    # does not break anything, and helps significantly (at the cost of a little
18968    # extra space).
18969    freebsd2.2*)
18970      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18971      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18972      hardcode_direct_GCJ=yes
18973      hardcode_shlibpath_var_GCJ=no
18974      ;;
18975
18976    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18977    freebsd2*)
18978      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18979      hardcode_direct_GCJ=yes
18980      hardcode_minus_L_GCJ=yes
18981      hardcode_shlibpath_var_GCJ=no
18982      ;;
18983
18984    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18985    freebsd* | kfreebsd*-gnu)
18986      archive_cmds_GCJ='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
18987      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18988      hardcode_direct_GCJ=yes
18989      hardcode_shlibpath_var_GCJ=no
18990      ;;
18991
18992    hpux9*)
18993      if test "$GCC" = yes; then
18994	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18995      else
18996	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'
18997      fi
18998      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18999      hardcode_libdir_separator_GCJ=:
19000      hardcode_direct_GCJ=yes
19001
19002      # hardcode_minus_L: Not really in the search PATH,
19003      # but as the default location of the library.
19004      hardcode_minus_L_GCJ=yes
19005      export_dynamic_flag_spec_GCJ='${wl}-E'
19006      ;;
19007
19008    hpux10* | hpux11*)
19009      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19010	case "$host_cpu" in
19011	hppa*64*|ia64*)
19012	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19013	  ;;
19014	*)
19015	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
19016	  ;;
19017	esac
19018      else
19019	case "$host_cpu" in
19020	hppa*64*|ia64*)
19021	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19022	  ;;
19023	*)
19024	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19025	  ;;
19026	esac
19027      fi
19028      if test "$with_gnu_ld" = no; then
19029	case "$host_cpu" in
19030	hppa*64*)
19031	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19032	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19033	  hardcode_libdir_separator_GCJ=:
19034	  hardcode_direct_GCJ=no
19035	  hardcode_shlibpath_var_GCJ=no
19036	  ;;
19037	ia64*)
19038	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
19039	  hardcode_direct_GCJ=no
19040	  hardcode_shlibpath_var_GCJ=no
19041
19042	  # hardcode_minus_L: Not really in the search PATH,
19043	  # but as the default location of the library.
19044	  hardcode_minus_L_GCJ=yes
19045	  ;;
19046	*)
19047	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19048	  hardcode_libdir_separator_GCJ=:
19049	  hardcode_direct_GCJ=yes
19050	  export_dynamic_flag_spec_GCJ='${wl}-E'
19051
19052	  # hardcode_minus_L: Not really in the search PATH,
19053	  # but as the default location of the library.
19054	  hardcode_minus_L_GCJ=yes
19055	  ;;
19056	esac
19057      fi
19058      ;;
19059
19060    irix5* | irix6* | nonstopux*)
19061      if test "$GCC" = yes; then
19062	archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19063      else
19064	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'
19065	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19066      fi
19067      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19068      hardcode_libdir_separator_GCJ=:
19069      link_all_deplibs_GCJ=yes
19070      ;;
19071
19072    netbsd*)
19073      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19074	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19075      else
19076	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19077      fi
19078      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19079      hardcode_direct_GCJ=yes
19080      hardcode_shlibpath_var_GCJ=no
19081      ;;
19082
19083    newsos6)
19084      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19085      hardcode_direct_GCJ=yes
19086      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19087      hardcode_libdir_separator_GCJ=:
19088      hardcode_shlibpath_var_GCJ=no
19089      ;;
19090
19091    openbsd*)
19092      hardcode_direct_GCJ=yes
19093      hardcode_shlibpath_var_GCJ=no
19094      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19095	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
19096	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19097	export_dynamic_flag_spec_GCJ='${wl}-E'
19098      else
19099       case $host_os in
19100	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19101	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19102	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
19103	   ;;
19104	 *)
19105	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
19106	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19107	   ;;
19108       esac
19109      fi
19110      ;;
19111
19112    os2*)
19113      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19114      hardcode_minus_L_GCJ=yes
19115      allow_undefined_flag_GCJ=unsupported
19116      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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
19117      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19118      ;;
19119
19120    osf3*)
19121      if test "$GCC" = yes; then
19122	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19123	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19124      else
19125	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19126	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'
19127      fi
19128      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19129      hardcode_libdir_separator_GCJ=:
19130      ;;
19131
19132    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19133      if test "$GCC" = yes; then
19134	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19135	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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'
19136	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19137      else
19138	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19139	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'
19140	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~
19141	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
19142
19143	# Both c and cxx compiler support -rpath directly
19144	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19145      fi
19146      hardcode_libdir_separator_GCJ=:
19147      ;;
19148
19149    sco3.2v5*)
19150      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19151      hardcode_shlibpath_var_GCJ=no
19152      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19153      runpath_var=LD_RUN_PATH
19154      hardcode_runpath_var=yes
19155      ;;
19156
19157    solaris*)
19158      no_undefined_flag_GCJ=' -z text'
19159      if test "$GCC" = yes; then
19160	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19161	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19162	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
19163      else
19164	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19165	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19166  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19167      fi
19168      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19169      hardcode_shlibpath_var_GCJ=no
19170      case $host_os in
19171      solaris2.[0-5] | solaris2.[0-5].*) ;;
19172      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19173	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19174      esac
19175      link_all_deplibs_GCJ=yes
19176      ;;
19177
19178    sunos4*)
19179      if test "x$host_vendor" = xsequent; then
19180	# Use $CC to link under sequent, because it throws in some extra .o
19181	# files that make .init and .fini sections work.
19182	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
19183      else
19184	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19185      fi
19186      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19187      hardcode_direct_GCJ=yes
19188      hardcode_minus_L_GCJ=yes
19189      hardcode_shlibpath_var_GCJ=no
19190      ;;
19191
19192    sysv4)
19193      case $host_vendor in
19194	sni)
19195	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19196	  hardcode_direct_GCJ=yes # is this really true???
19197	;;
19198	siemens)
19199	  ## LD is ld it makes a PLAMLIB
19200	  ## CC just makes a GrossModule.
19201	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19202	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19203	  hardcode_direct_GCJ=no
19204        ;;
19205	motorola)
19206	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19207	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19208	;;
19209      esac
19210      runpath_var='LD_RUN_PATH'
19211      hardcode_shlibpath_var_GCJ=no
19212      ;;
19213
19214    sysv4.3*)
19215      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19216      hardcode_shlibpath_var_GCJ=no
19217      export_dynamic_flag_spec_GCJ='-Bexport'
19218      ;;
19219
19220    sysv4*MP*)
19221      if test -d /usr/nec; then
19222	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19223	hardcode_shlibpath_var_GCJ=no
19224	runpath_var=LD_RUN_PATH
19225	hardcode_runpath_var=yes
19226	ld_shlibs_GCJ=yes
19227      fi
19228      ;;
19229
19230    sysv4.2uw2*)
19231      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19232      hardcode_direct_GCJ=yes
19233      hardcode_minus_L_GCJ=no
19234      hardcode_shlibpath_var_GCJ=no
19235      hardcode_runpath_var=yes
19236      runpath_var=LD_RUN_PATH
19237      ;;
19238
19239   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19240      no_undefined_flag_GCJ='${wl}-z ${wl}text'
19241      if test "$GCC" = yes; then
19242	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19243      else
19244	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19245      fi
19246      runpath_var='LD_RUN_PATH'
19247      hardcode_shlibpath_var_GCJ=no
19248      ;;
19249
19250    sysv5*)
19251      no_undefined_flag_GCJ=' -z text'
19252      # $CC -shared without GNU ld will not create a library from C++
19253      # object files and a static libstdc++, better avoid it by now
19254      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19255      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19256  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19257      hardcode_libdir_flag_spec_GCJ=
19258      hardcode_shlibpath_var_GCJ=no
19259      runpath_var='LD_RUN_PATH'
19260      ;;
19261
19262    uts4*)
19263      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19264      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19265      hardcode_shlibpath_var_GCJ=no
19266      ;;
19267
19268    *)
19269      ld_shlibs_GCJ=no
19270      ;;
19271    esac
19272  fi
19273
19274echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19275echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19276test "$ld_shlibs_GCJ" = no && can_build_shared=no
19277
19278variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19279if test "$GCC" = yes; then
19280  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19281fi
19282
19283#
19284# Do we need to explicitly link libc?
19285#
19286case "x$archive_cmds_need_lc_GCJ" in
19287x|xyes)
19288  # Assume -lc should be added
19289  archive_cmds_need_lc_GCJ=yes
19290
19291  if test "$enable_shared" = yes && test "$GCC" = yes; then
19292    case $archive_cmds_GCJ in
19293    *'~'*)
19294      # FIXME: we may have to deal with multi-command sequences.
19295      ;;
19296    '$CC '*)
19297      # Test whether the compiler implicitly links with -lc since on some
19298      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19299      # to ld, don't add -lc before -lgcc.
19300      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19301echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19302      $rm conftest*
19303      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19304
19305      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19306  (eval $ac_compile) 2>&5
19307  ac_status=$?
19308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309  (exit $ac_status); } 2>conftest.err; then
19310        soname=conftest
19311        lib=conftest
19312        libobjs=conftest.$ac_objext
19313        deplibs=
19314        wl=$lt_prog_compiler_wl_GCJ
19315        compiler_flags=-v
19316        linker_flags=-v
19317        verstring=
19318        output_objdir=.
19319        libname=conftest
19320        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19321        allow_undefined_flag_GCJ=
19322        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19323  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19324  ac_status=$?
19325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326  (exit $ac_status); }
19327        then
19328	  archive_cmds_need_lc_GCJ=no
19329        else
19330	  archive_cmds_need_lc_GCJ=yes
19331        fi
19332        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19333      else
19334        cat conftest.err 1>&5
19335      fi
19336      $rm conftest*
19337      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19338echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19339      ;;
19340    esac
19341  fi
19342  ;;
19343esac
19344
19345echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19346echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19347library_names_spec=
19348libname_spec='lib$name'
19349soname_spec=
19350shrext=".so"
19351postinstall_cmds=
19352postuninstall_cmds=
19353finish_cmds=
19354finish_eval=
19355shlibpath_var=
19356shlibpath_overrides_runpath=unknown
19357version_type=none
19358dynamic_linker="$host_os ld.so"
19359sys_lib_dlsearch_path_spec="/lib /usr/lib"
19360sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19361need_lib_prefix=unknown
19362hardcode_into_libs=no
19363
19364# when you set need_version to no, make sure it does not cause -set_version
19365# flags to be left without arguments
19366need_version=unknown
19367
19368case $host_os in
19369aix3*)
19370  version_type=linux
19371  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19372  shlibpath_var=LIBPATH
19373
19374  # AIX 3 has no versioning support, so we append a major version to the name.
19375  soname_spec='${libname}${release}${shared_ext}$major'
19376  ;;
19377
19378aix4* | aix5*)
19379  version_type=linux
19380  need_lib_prefix=no
19381  need_version=no
19382  hardcode_into_libs=yes
19383  if test "$host_cpu" = ia64; then
19384    # AIX 5 supports IA64
19385    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19386    shlibpath_var=LD_LIBRARY_PATH
19387  else
19388    # With GCC up to 2.95.x, collect2 would create an import file
19389    # for dependence libraries.  The import file would start with
19390    # the line `#! .'.  This would cause the generated library to
19391    # depend on `.', always an invalid library.  This was fixed in
19392    # development snapshots of GCC prior to 3.0.
19393    case $host_os in
19394      aix4 | aix4.[01] | aix4.[01].*)
19395      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19396	   echo ' yes '
19397	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19398	:
19399      else
19400	can_build_shared=no
19401      fi
19402      ;;
19403    esac
19404    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19405    # soname into executable. Probably we can add versioning support to
19406    # collect2, so additional links can be useful in future.
19407    if test "$aix_use_runtimelinking" = yes; then
19408      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19409      # instead of lib<name>.a to let people know that these are not
19410      # typical AIX shared libraries.
19411      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19412    else
19413      # We preserve .a as extension for shared libraries through AIX4.2
19414      # and later when we are not doing run time linking.
19415      library_names_spec='${libname}${release}.a $libname.a'
19416      soname_spec='${libname}${release}${shared_ext}$major'
19417    fi
19418    shlibpath_var=LIBPATH
19419  fi
19420  ;;
19421
19422amigaos*)
19423  library_names_spec='$libname.ixlibrary $libname.a'
19424  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19425  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'
19426  ;;
19427
19428beos*)
19429  library_names_spec='${libname}${shared_ext}'
19430  dynamic_linker="$host_os ld.so"
19431  shlibpath_var=LIBRARY_PATH
19432  ;;
19433
19434bsdi4*)
19435  version_type=linux
19436  need_version=no
19437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19438  soname_spec='${libname}${release}${shared_ext}$major'
19439  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19440  shlibpath_var=LD_LIBRARY_PATH
19441  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19442  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19443  # the default ld.so.conf also contains /usr/contrib/lib and
19444  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19445  # libtool to hard-code these into programs
19446  ;;
19447
19448cygwin* | mingw* | pw32*)
19449  version_type=windows
19450  shrext=".dll"
19451  need_version=no
19452  need_lib_prefix=no
19453
19454  case $GCC,$host_os in
19455  yes,cygwin* | yes,mingw* | yes,pw32*)
19456    library_names_spec='$libname.dll.a'
19457    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19458    postinstall_cmds='base_file=`basename \${file}`~
19459      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19460      dldir=$destdir/`dirname \$dlpath`~
19461      test -d \$dldir || mkdir -p \$dldir~
19462      $install_prog $dir/$dlname \$dldir/$dlname'
19463    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19464      dlpath=$dir/\$dldll~
19465       $rm \$dlpath'
19466    shlibpath_overrides_runpath=yes
19467
19468    case $host_os in
19469    cygwin*)
19470      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19471      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19472      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19473      ;;
19474    mingw*)
19475      # MinGW DLLs use traditional 'lib' prefix
19476      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19477      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19478      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19479        # It is most probably a Windows format PATH printed by
19480        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19481        # path with ; separators, and with drive letters. We can handle the
19482        # drive letters (cygwin fileutils understands them), so leave them,
19483        # especially as we might pass files found there to a mingw objdump,
19484        # which wouldn't understand a cygwinified path. Ahh.
19485        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19486      else
19487        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19488      fi
19489      ;;
19490    pw32*)
19491      # pw32 DLLs use 'pw' prefix rather than 'lib'
19492      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
19493      ;;
19494    esac
19495    ;;
19496
19497  *)
19498    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19499    ;;
19500  esac
19501  dynamic_linker='Win32 ld.exe'
19502  # FIXME: first we should search . and the directory the executable is in
19503  shlibpath_var=PATH
19504  ;;
19505
19506darwin* | rhapsody*)
19507  dynamic_linker="$host_os dyld"
19508  version_type=darwin
19509  need_lib_prefix=no
19510  need_version=no
19511  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19512  soname_spec='${libname}${release}${major}$shared_ext'
19513  shlibpath_overrides_runpath=yes
19514  shlibpath_var=DYLD_LIBRARY_PATH
19515  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
19516  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19517  if test "$GCC" = yes; then
19518    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"`
19519  else
19520    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19521  fi
19522  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19523  ;;
19524
19525dgux*)
19526  version_type=linux
19527  need_lib_prefix=no
19528  need_version=no
19529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19530  soname_spec='${libname}${release}${shared_ext}$major'
19531  shlibpath_var=LD_LIBRARY_PATH
19532  ;;
19533
19534freebsd1*)
19535  dynamic_linker=no
19536  ;;
19537
19538kfreebsd*-gnu*)
19539  version_type=linux
19540  need_lib_prefix=no
19541  need_version=no
19542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19543  soname_spec='${libname}${release}${shared_ext}$major'
19544  shlibpath_var=LD_LIBRARY_PATH
19545  shlibpath_overrides_runpath=no
19546  hardcode_into_libs=yes
19547  dynamic_linker='GNU ld.so'
19548  ;;
19549
19550freebsd*)
19551  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19552  version_type=freebsd-$objformat
19553  case $version_type in
19554    freebsd-elf*)
19555      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19556      need_version=no
19557      need_lib_prefix=no
19558      ;;
19559    freebsd-*)
19560      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19561      need_version=yes
19562      ;;
19563  esac
19564  shlibpath_var=LD_LIBRARY_PATH
19565  case $host_os in
19566  freebsd2*)
19567    shlibpath_overrides_runpath=yes
19568    ;;
19569  freebsd3.01* | freebsdelf3.01*)
19570    shlibpath_overrides_runpath=yes
19571    hardcode_into_libs=yes
19572    ;;
19573  *) # from 3.2 on
19574    shlibpath_overrides_runpath=no
19575    hardcode_into_libs=yes
19576    ;;
19577  esac
19578  ;;
19579
19580gnu*)
19581  version_type=linux
19582  need_lib_prefix=no
19583  need_version=no
19584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19585  soname_spec='${libname}${release}${shared_ext}$major'
19586  shlibpath_var=LD_LIBRARY_PATH
19587  hardcode_into_libs=yes
19588  ;;
19589
19590hpux9* | hpux10* | hpux11*)
19591  # Give a soname corresponding to the major version so that dld.sl refuses to
19592  # link against other versions.
19593  version_type=sunos
19594  need_lib_prefix=no
19595  need_version=no
19596  case "$host_cpu" in
19597  ia64*)
19598    shrext='.so'
19599    hardcode_into_libs=yes
19600    dynamic_linker="$host_os dld.so"
19601    shlibpath_var=LD_LIBRARY_PATH
19602    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19603    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19604    soname_spec='${libname}${release}${shared_ext}$major'
19605    if test "X$HPUX_IA64_MODE" = X32; then
19606      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19607    else
19608      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19609    fi
19610    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19611    ;;
19612   hppa*64*)
19613     shrext='.sl'
19614     hardcode_into_libs=yes
19615     dynamic_linker="$host_os dld.sl"
19616     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19617     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19619     soname_spec='${libname}${release}${shared_ext}$major'
19620     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19621     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19622     ;;
19623   *)
19624    shrext='.sl'
19625    dynamic_linker="$host_os dld.sl"
19626    shlibpath_var=SHLIB_PATH
19627    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19628    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19629    soname_spec='${libname}${release}${shared_ext}$major'
19630    ;;
19631  esac
19632  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19633  postinstall_cmds='chmod 555 $lib'
19634  ;;
19635
19636irix5* | irix6* | nonstopux*)
19637  case $host_os in
19638    nonstopux*) version_type=nonstopux ;;
19639    *)
19640	if test "$lt_cv_prog_gnu_ld" = yes; then
19641		version_type=linux
19642	else
19643		version_type=irix
19644	fi ;;
19645  esac
19646  need_lib_prefix=no
19647  need_version=no
19648  soname_spec='${libname}${release}${shared_ext}$major'
19649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19650  case $host_os in
19651  irix5* | nonstopux*)
19652    libsuff= shlibsuff=
19653    ;;
19654  *)
19655    case $LD in # libtool.m4 will add one of these switches to LD
19656    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19657      libsuff= shlibsuff= libmagic=32-bit;;
19658    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19659      libsuff=32 shlibsuff=N32 libmagic=N32;;
19660    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19661      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19662    *) libsuff= shlibsuff= libmagic=never-match;;
19663    esac
19664    ;;
19665  esac
19666  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19667  shlibpath_overrides_runpath=no
19668  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19669  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19670  hardcode_into_libs=yes
19671  ;;
19672
19673# No shared lib support for Linux oldld, aout, or coff.
19674linux*oldld* | linux*aout* | linux*coff*)
19675  dynamic_linker=no
19676  ;;
19677
19678# This must be Linux ELF.
19679linux*)
19680  version_type=linux
19681  need_lib_prefix=no
19682  need_version=no
19683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19684  soname_spec='${libname}${release}${shared_ext}$major'
19685  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19686  libsuff=
19687  if test "x$LINUX_64_MODE" = x64; then
19688    # Some platforms are per default 64-bit, so there's no /lib64
19689    if test -d /lib64; then
19690      libsuff=64
19691    fi
19692  fi
19693  shlibpath_var=LD_LIBRARY_PATH
19694  shlibpath_overrides_runpath=no
19695  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
19696  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19697  # This implies no fast_install, which is unacceptable.
19698  # Some rework will be needed to allow for fast_install
19699  # before this can be enabled.
19700  hardcode_into_libs=yes
19701
19702  # We used to test for /lib/ld.so.1 and disable shared libraries on
19703  # powerpc, because MkLinux only supported shared libraries with the
19704  # GNU dynamic linker.  Since this was broken with cross compilers,
19705  # most powerpc-linux boxes support dynamic linking these days and
19706  # people can always --disable-shared, the test was removed, and we
19707  # assume the GNU/Linux dynamic linker is in use.
19708  dynamic_linker='GNU/Linux ld.so'
19709  ;;
19710
19711netbsd*)
19712  version_type=sunos
19713  need_lib_prefix=no
19714  need_version=no
19715  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19716    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19717    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19718    dynamic_linker='NetBSD (a.out) ld.so'
19719  else
19720    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
19721    soname_spec='${libname}${release}${shared_ext}$major'
19722    dynamic_linker='NetBSD ld.elf_so'
19723  fi
19724  shlibpath_var=LD_LIBRARY_PATH
19725  shlibpath_overrides_runpath=yes
19726  hardcode_into_libs=yes
19727  ;;
19728
19729newsos6)
19730  version_type=linux
19731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19732  shlibpath_var=LD_LIBRARY_PATH
19733  shlibpath_overrides_runpath=yes
19734  ;;
19735
19736nto-qnx*)
19737  version_type=linux
19738  need_lib_prefix=no
19739  need_version=no
19740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19741  soname_spec='${libname}${release}${shared_ext}$major'
19742  shlibpath_var=LD_LIBRARY_PATH
19743  shlibpath_overrides_runpath=yes
19744  ;;
19745
19746openbsd*)
19747  version_type=sunos
19748  need_lib_prefix=no
19749  need_version=no
19750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19751  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19752  shlibpath_var=LD_LIBRARY_PATH
19753  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19754    case $host_os in
19755      openbsd2.[89] | openbsd2.[89].*)
19756	shlibpath_overrides_runpath=no
19757	;;
19758      *)
19759	shlibpath_overrides_runpath=yes
19760	;;
19761      esac
19762  else
19763    shlibpath_overrides_runpath=yes
19764  fi
19765  ;;
19766
19767os2*)
19768  libname_spec='$name'
19769  shrext=".dll"
19770  need_lib_prefix=no
19771  library_names_spec='$libname${shared_ext} $libname.a'
19772  dynamic_linker='OS/2 ld.exe'
19773  shlibpath_var=LIBPATH
19774  ;;
19775
19776osf3* | osf4* | osf5*)
19777  version_type=osf
19778  need_lib_prefix=no
19779  need_version=no
19780  soname_spec='${libname}${release}${shared_ext}$major'
19781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19782  shlibpath_var=LD_LIBRARY_PATH
19783  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19784  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19785  ;;
19786
19787sco3.2v5*)
19788  version_type=osf
19789  soname_spec='${libname}${release}${shared_ext}$major'
19790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19791  shlibpath_var=LD_LIBRARY_PATH
19792  ;;
19793
19794solaris*)
19795  version_type=linux
19796  need_lib_prefix=no
19797  need_version=no
19798  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19799  soname_spec='${libname}${release}${shared_ext}$major'
19800  shlibpath_var=LD_LIBRARY_PATH
19801  shlibpath_overrides_runpath=yes
19802  hardcode_into_libs=yes
19803  # ldd complains unless libraries are executable
19804  postinstall_cmds='chmod +x $lib'
19805  ;;
19806
19807sunos4*)
19808  version_type=sunos
19809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19810  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19811  shlibpath_var=LD_LIBRARY_PATH
19812  shlibpath_overrides_runpath=yes
19813  if test "$with_gnu_ld" = yes; then
19814    need_lib_prefix=no
19815  fi
19816  need_version=yes
19817  ;;
19818
19819sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19820  version_type=linux
19821  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19822  soname_spec='${libname}${release}${shared_ext}$major'
19823  shlibpath_var=LD_LIBRARY_PATH
19824  case $host_vendor in
19825    sni)
19826      shlibpath_overrides_runpath=no
19827      need_lib_prefix=no
19828      export_dynamic_flag_spec='${wl}-Blargedynsym'
19829      runpath_var=LD_RUN_PATH
19830      ;;
19831    siemens)
19832      need_lib_prefix=no
19833      ;;
19834    motorola)
19835      need_lib_prefix=no
19836      need_version=no
19837      shlibpath_overrides_runpath=no
19838      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19839      ;;
19840  esac
19841  ;;
19842
19843sysv4*MP*)
19844  if test -d /usr/nec ;then
19845    version_type=linux
19846    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19847    soname_spec='$libname${shared_ext}.$major'
19848    shlibpath_var=LD_LIBRARY_PATH
19849  fi
19850  ;;
19851
19852uts4*)
19853  version_type=linux
19854  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19855  soname_spec='${libname}${release}${shared_ext}$major'
19856  shlibpath_var=LD_LIBRARY_PATH
19857  ;;
19858
19859*)
19860  dynamic_linker=no
19861  ;;
19862esac
19863echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19864echo "${ECHO_T}$dynamic_linker" >&6
19865test "$dynamic_linker" = no && can_build_shared=no
19866
19867echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19868echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19869hardcode_action_GCJ=
19870if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19871   test -n "$runpath_var GCJ" || \
19872   test "X$hardcode_automatic_GCJ"="Xyes" ; then
19873
19874  # We can hardcode non-existant directories.
19875  if test "$hardcode_direct_GCJ" != no &&
19876     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19877     # have to relink, otherwise we might link with an installed library
19878     # when we should be linking with a yet-to-be-installed one
19879     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19880     test "$hardcode_minus_L_GCJ" != no; then
19881    # Linking always hardcodes the temporary library directory.
19882    hardcode_action_GCJ=relink
19883  else
19884    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19885    hardcode_action_GCJ=immediate
19886  fi
19887else
19888  # We cannot hardcode anything, or else we can only hardcode existing
19889  # directories.
19890  hardcode_action_GCJ=unsupported
19891fi
19892echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19893echo "${ECHO_T}$hardcode_action_GCJ" >&6
19894
19895if test "$hardcode_action_GCJ" = relink; then
19896  # Fast installation is not supported
19897  enable_fast_install=no
19898elif test "$shlibpath_overrides_runpath" = yes ||
19899     test "$enable_shared" = no; then
19900  # Fast installation is not necessary
19901  enable_fast_install=needless
19902fi
19903
19904striplib=
19905old_striplib=
19906echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19907echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19908if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19909  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19910  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19911  echo "$as_me:$LINENO: result: yes" >&5
19912echo "${ECHO_T}yes" >&6
19913else
19914# FIXME - insert some real tests, host_os isn't really good enough
19915  case $host_os in
19916   darwin*)
19917       if test -n "$STRIP" ; then
19918         striplib="$STRIP -x"
19919         echo "$as_me:$LINENO: result: yes" >&5
19920echo "${ECHO_T}yes" >&6
19921       else
19922  echo "$as_me:$LINENO: result: no" >&5
19923echo "${ECHO_T}no" >&6
19924fi
19925       ;;
19926   *)
19927  echo "$as_me:$LINENO: result: no" >&5
19928echo "${ECHO_T}no" >&6
19929    ;;
19930  esac
19931fi
19932
19933if test "x$enable_dlopen" != xyes; then
19934  enable_dlopen=unknown
19935  enable_dlopen_self=unknown
19936  enable_dlopen_self_static=unknown
19937else
19938  lt_cv_dlopen=no
19939  lt_cv_dlopen_libs=
19940
19941  case $host_os in
19942  beos*)
19943    lt_cv_dlopen="load_add_on"
19944    lt_cv_dlopen_libs=
19945    lt_cv_dlopen_self=yes
19946    ;;
19947
19948  mingw* | pw32*)
19949    lt_cv_dlopen="LoadLibrary"
19950    lt_cv_dlopen_libs=
19951   ;;
19952
19953  cygwin*)
19954    lt_cv_dlopen="dlopen"
19955    lt_cv_dlopen_libs=
19956   ;;
19957
19958  darwin*)
19959  # if libdl is installed we need to link against it
19960    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19961echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19962if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19963  echo $ECHO_N "(cached) $ECHO_C" >&6
19964else
19965  ac_check_lib_save_LIBS=$LIBS
19966LIBS="-ldl  $LIBS"
19967cat >conftest.$ac_ext <<_ACEOF
19968/* confdefs.h.  */
19969_ACEOF
19970cat confdefs.h >>conftest.$ac_ext
19971cat >>conftest.$ac_ext <<_ACEOF
19972/* end confdefs.h.  */
19973
19974/* Override any gcc2 internal prototype to avoid an error.  */
19975#ifdef __cplusplus
19976extern "C"
19977#endif
19978/* We use char because int might match the return type of a gcc2
19979   builtin and then its argument prototype would still apply.  */
19980char dlopen ();
19981int
19982main ()
19983{
19984dlopen ();
19985  ;
19986  return 0;
19987}
19988_ACEOF
19989rm -f conftest.$ac_objext conftest$ac_exeext
19990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19991  (eval $ac_link) 2>conftest.er1
19992  ac_status=$?
19993  grep -v '^ *+' conftest.er1 >conftest.err
19994  rm -f conftest.er1
19995  cat conftest.err >&5
19996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997  (exit $ac_status); } &&
19998	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000  (eval $ac_try) 2>&5
20001  ac_status=$?
20002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003  (exit $ac_status); }; } &&
20004	 { ac_try='test -s conftest$ac_exeext'
20005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006  (eval $ac_try) 2>&5
20007  ac_status=$?
20008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009  (exit $ac_status); }; }; then
20010  ac_cv_lib_dl_dlopen=yes
20011else
20012  echo "$as_me: failed program was:" >&5
20013sed 's/^/| /' conftest.$ac_ext >&5
20014
20015ac_cv_lib_dl_dlopen=no
20016fi
20017rm -f conftest.err conftest.$ac_objext \
20018      conftest$ac_exeext conftest.$ac_ext
20019LIBS=$ac_check_lib_save_LIBS
20020fi
20021echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20022echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20023if test $ac_cv_lib_dl_dlopen = yes; then
20024  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20025else
20026
20027    lt_cv_dlopen="dyld"
20028    lt_cv_dlopen_libs=
20029    lt_cv_dlopen_self=yes
20030
20031fi
20032
20033   ;;
20034
20035  *)
20036    echo "$as_me:$LINENO: checking for shl_load" >&5
20037echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20038if test "${ac_cv_func_shl_load+set}" = set; then
20039  echo $ECHO_N "(cached) $ECHO_C" >&6
20040else
20041  cat >conftest.$ac_ext <<_ACEOF
20042/* confdefs.h.  */
20043_ACEOF
20044cat confdefs.h >>conftest.$ac_ext
20045cat >>conftest.$ac_ext <<_ACEOF
20046/* end confdefs.h.  */
20047/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20048   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20049#define shl_load innocuous_shl_load
20050
20051/* System header to define __stub macros and hopefully few prototypes,
20052    which can conflict with char shl_load (); below.
20053    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20054    <limits.h> exists even on freestanding compilers.  */
20055
20056#ifdef __STDC__
20057# include <limits.h>
20058#else
20059# include <assert.h>
20060#endif
20061
20062#undef shl_load
20063
20064/* Override any gcc2 internal prototype to avoid an error.  */
20065#ifdef __cplusplus
20066extern "C"
20067{
20068#endif
20069/* We use char because int might match the return type of a gcc2
20070   builtin and then its argument prototype would still apply.  */
20071char shl_load ();
20072/* The GNU C library defines this for functions which it implements
20073    to always fail with ENOSYS.  Some functions are actually named
20074    something starting with __ and the normal name is an alias.  */
20075#if defined (__stub_shl_load) || defined (__stub___shl_load)
20076choke me
20077#else
20078char (*f) () = shl_load;
20079#endif
20080#ifdef __cplusplus
20081}
20082#endif
20083
20084int
20085main ()
20086{
20087return f != shl_load;
20088  ;
20089  return 0;
20090}
20091_ACEOF
20092rm -f conftest.$ac_objext conftest$ac_exeext
20093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20094  (eval $ac_link) 2>conftest.er1
20095  ac_status=$?
20096  grep -v '^ *+' conftest.er1 >conftest.err
20097  rm -f conftest.er1
20098  cat conftest.err >&5
20099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100  (exit $ac_status); } &&
20101	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103  (eval $ac_try) 2>&5
20104  ac_status=$?
20105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106  (exit $ac_status); }; } &&
20107	 { ac_try='test -s conftest$ac_exeext'
20108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109  (eval $ac_try) 2>&5
20110  ac_status=$?
20111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112  (exit $ac_status); }; }; then
20113  ac_cv_func_shl_load=yes
20114else
20115  echo "$as_me: failed program was:" >&5
20116sed 's/^/| /' conftest.$ac_ext >&5
20117
20118ac_cv_func_shl_load=no
20119fi
20120rm -f conftest.err conftest.$ac_objext \
20121      conftest$ac_exeext conftest.$ac_ext
20122fi
20123echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20124echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20125if test $ac_cv_func_shl_load = yes; then
20126  lt_cv_dlopen="shl_load"
20127else
20128  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20129echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20130if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20131  echo $ECHO_N "(cached) $ECHO_C" >&6
20132else
20133  ac_check_lib_save_LIBS=$LIBS
20134LIBS="-ldld  $LIBS"
20135cat >conftest.$ac_ext <<_ACEOF
20136/* confdefs.h.  */
20137_ACEOF
20138cat confdefs.h >>conftest.$ac_ext
20139cat >>conftest.$ac_ext <<_ACEOF
20140/* end confdefs.h.  */
20141
20142/* Override any gcc2 internal prototype to avoid an error.  */
20143#ifdef __cplusplus
20144extern "C"
20145#endif
20146/* We use char because int might match the return type of a gcc2
20147   builtin and then its argument prototype would still apply.  */
20148char shl_load ();
20149int
20150main ()
20151{
20152shl_load ();
20153  ;
20154  return 0;
20155}
20156_ACEOF
20157rm -f conftest.$ac_objext conftest$ac_exeext
20158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20159  (eval $ac_link) 2>conftest.er1
20160  ac_status=$?
20161  grep -v '^ *+' conftest.er1 >conftest.err
20162  rm -f conftest.er1
20163  cat conftest.err >&5
20164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165  (exit $ac_status); } &&
20166	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168  (eval $ac_try) 2>&5
20169  ac_status=$?
20170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171  (exit $ac_status); }; } &&
20172	 { ac_try='test -s conftest$ac_exeext'
20173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174  (eval $ac_try) 2>&5
20175  ac_status=$?
20176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177  (exit $ac_status); }; }; then
20178  ac_cv_lib_dld_shl_load=yes
20179else
20180  echo "$as_me: failed program was:" >&5
20181sed 's/^/| /' conftest.$ac_ext >&5
20182
20183ac_cv_lib_dld_shl_load=no
20184fi
20185rm -f conftest.err conftest.$ac_objext \
20186      conftest$ac_exeext conftest.$ac_ext
20187LIBS=$ac_check_lib_save_LIBS
20188fi
20189echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20190echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20191if test $ac_cv_lib_dld_shl_load = yes; then
20192  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20193else
20194  echo "$as_me:$LINENO: checking for dlopen" >&5
20195echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20196if test "${ac_cv_func_dlopen+set}" = set; then
20197  echo $ECHO_N "(cached) $ECHO_C" >&6
20198else
20199  cat >conftest.$ac_ext <<_ACEOF
20200/* confdefs.h.  */
20201_ACEOF
20202cat confdefs.h >>conftest.$ac_ext
20203cat >>conftest.$ac_ext <<_ACEOF
20204/* end confdefs.h.  */
20205/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20206   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20207#define dlopen innocuous_dlopen
20208
20209/* System header to define __stub macros and hopefully few prototypes,
20210    which can conflict with char dlopen (); below.
20211    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20212    <limits.h> exists even on freestanding compilers.  */
20213
20214#ifdef __STDC__
20215# include <limits.h>
20216#else
20217# include <assert.h>
20218#endif
20219
20220#undef dlopen
20221
20222/* Override any gcc2 internal prototype to avoid an error.  */
20223#ifdef __cplusplus
20224extern "C"
20225{
20226#endif
20227/* We use char because int might match the return type of a gcc2
20228   builtin and then its argument prototype would still apply.  */
20229char dlopen ();
20230/* The GNU C library defines this for functions which it implements
20231    to always fail with ENOSYS.  Some functions are actually named
20232    something starting with __ and the normal name is an alias.  */
20233#if defined (__stub_dlopen) || defined (__stub___dlopen)
20234choke me
20235#else
20236char (*f) () = dlopen;
20237#endif
20238#ifdef __cplusplus
20239}
20240#endif
20241
20242int
20243main ()
20244{
20245return f != dlopen;
20246  ;
20247  return 0;
20248}
20249_ACEOF
20250rm -f conftest.$ac_objext conftest$ac_exeext
20251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20252  (eval $ac_link) 2>conftest.er1
20253  ac_status=$?
20254  grep -v '^ *+' conftest.er1 >conftest.err
20255  rm -f conftest.er1
20256  cat conftest.err >&5
20257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258  (exit $ac_status); } &&
20259	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261  (eval $ac_try) 2>&5
20262  ac_status=$?
20263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264  (exit $ac_status); }; } &&
20265	 { ac_try='test -s conftest$ac_exeext'
20266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267  (eval $ac_try) 2>&5
20268  ac_status=$?
20269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270  (exit $ac_status); }; }; then
20271  ac_cv_func_dlopen=yes
20272else
20273  echo "$as_me: failed program was:" >&5
20274sed 's/^/| /' conftest.$ac_ext >&5
20275
20276ac_cv_func_dlopen=no
20277fi
20278rm -f conftest.err conftest.$ac_objext \
20279      conftest$ac_exeext conftest.$ac_ext
20280fi
20281echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20282echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20283if test $ac_cv_func_dlopen = yes; then
20284  lt_cv_dlopen="dlopen"
20285else
20286  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20287echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20288if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20289  echo $ECHO_N "(cached) $ECHO_C" >&6
20290else
20291  ac_check_lib_save_LIBS=$LIBS
20292LIBS="-ldl  $LIBS"
20293cat >conftest.$ac_ext <<_ACEOF
20294/* confdefs.h.  */
20295_ACEOF
20296cat confdefs.h >>conftest.$ac_ext
20297cat >>conftest.$ac_ext <<_ACEOF
20298/* end confdefs.h.  */
20299
20300/* Override any gcc2 internal prototype to avoid an error.  */
20301#ifdef __cplusplus
20302extern "C"
20303#endif
20304/* We use char because int might match the return type of a gcc2
20305   builtin and then its argument prototype would still apply.  */
20306char dlopen ();
20307int
20308main ()
20309{
20310dlopen ();
20311  ;
20312  return 0;
20313}
20314_ACEOF
20315rm -f conftest.$ac_objext conftest$ac_exeext
20316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20317  (eval $ac_link) 2>conftest.er1
20318  ac_status=$?
20319  grep -v '^ *+' conftest.er1 >conftest.err
20320  rm -f conftest.er1
20321  cat conftest.err >&5
20322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323  (exit $ac_status); } &&
20324	 { ac_try='test -z "$ac_c_werror_flag"			 || 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_dl_dlopen=yes
20337else
20338  echo "$as_me: failed program was:" >&5
20339sed 's/^/| /' conftest.$ac_ext >&5
20340
20341ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
20348echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20349if test $ac_cv_lib_dl_dlopen = yes; then
20350  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20351else
20352  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20353echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20354if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20355  echo $ECHO_N "(cached) $ECHO_C" >&6
20356else
20357  ac_check_lib_save_LIBS=$LIBS
20358LIBS="-lsvld  $LIBS"
20359cat >conftest.$ac_ext <<_ACEOF
20360/* confdefs.h.  */
20361_ACEOF
20362cat confdefs.h >>conftest.$ac_ext
20363cat >>conftest.$ac_ext <<_ACEOF
20364/* end confdefs.h.  */
20365
20366/* Override any gcc2 internal prototype to avoid an error.  */
20367#ifdef __cplusplus
20368extern "C"
20369#endif
20370/* We use char because int might match the return type of a gcc2
20371   builtin and then its argument prototype would still apply.  */
20372char dlopen ();
20373int
20374main ()
20375{
20376dlopen ();
20377  ;
20378  return 0;
20379}
20380_ACEOF
20381rm -f conftest.$ac_objext conftest$ac_exeext
20382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20383  (eval $ac_link) 2>conftest.er1
20384  ac_status=$?
20385  grep -v '^ *+' conftest.er1 >conftest.err
20386  rm -f conftest.er1
20387  cat conftest.err >&5
20388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389  (exit $ac_status); } &&
20390	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20392  (eval $ac_try) 2>&5
20393  ac_status=$?
20394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395  (exit $ac_status); }; } &&
20396	 { ac_try='test -s conftest$ac_exeext'
20397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20398  (eval $ac_try) 2>&5
20399  ac_status=$?
20400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401  (exit $ac_status); }; }; then
20402  ac_cv_lib_svld_dlopen=yes
20403else
20404  echo "$as_me: failed program was:" >&5
20405sed 's/^/| /' conftest.$ac_ext >&5
20406
20407ac_cv_lib_svld_dlopen=no
20408fi
20409rm -f conftest.err conftest.$ac_objext \
20410      conftest$ac_exeext conftest.$ac_ext
20411LIBS=$ac_check_lib_save_LIBS
20412fi
20413echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20414echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20415if test $ac_cv_lib_svld_dlopen = yes; then
20416  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20417else
20418  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20419echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20420if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20421  echo $ECHO_N "(cached) $ECHO_C" >&6
20422else
20423  ac_check_lib_save_LIBS=$LIBS
20424LIBS="-ldld  $LIBS"
20425cat >conftest.$ac_ext <<_ACEOF
20426/* confdefs.h.  */
20427_ACEOF
20428cat confdefs.h >>conftest.$ac_ext
20429cat >>conftest.$ac_ext <<_ACEOF
20430/* end confdefs.h.  */
20431
20432/* Override any gcc2 internal prototype to avoid an error.  */
20433#ifdef __cplusplus
20434extern "C"
20435#endif
20436/* We use char because int might match the return type of a gcc2
20437   builtin and then its argument prototype would still apply.  */
20438char dld_link ();
20439int
20440main ()
20441{
20442dld_link ();
20443  ;
20444  return 0;
20445}
20446_ACEOF
20447rm -f conftest.$ac_objext conftest$ac_exeext
20448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20449  (eval $ac_link) 2>conftest.er1
20450  ac_status=$?
20451  grep -v '^ *+' conftest.er1 >conftest.err
20452  rm -f conftest.er1
20453  cat conftest.err >&5
20454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455  (exit $ac_status); } &&
20456	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20458  (eval $ac_try) 2>&5
20459  ac_status=$?
20460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461  (exit $ac_status); }; } &&
20462	 { ac_try='test -s conftest$ac_exeext'
20463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464  (eval $ac_try) 2>&5
20465  ac_status=$?
20466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467  (exit $ac_status); }; }; then
20468  ac_cv_lib_dld_dld_link=yes
20469else
20470  echo "$as_me: failed program was:" >&5
20471sed 's/^/| /' conftest.$ac_ext >&5
20472
20473ac_cv_lib_dld_dld_link=no
20474fi
20475rm -f conftest.err conftest.$ac_objext \
20476      conftest$ac_exeext conftest.$ac_ext
20477LIBS=$ac_check_lib_save_LIBS
20478fi
20479echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20480echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20481if test $ac_cv_lib_dld_dld_link = yes; then
20482  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20483fi
20484
20485
20486fi
20487
20488
20489fi
20490
20491
20492fi
20493
20494
20495fi
20496
20497
20498fi
20499
20500    ;;
20501  esac
20502
20503  if test "x$lt_cv_dlopen" != xno; then
20504    enable_dlopen=yes
20505  else
20506    enable_dlopen=no
20507  fi
20508
20509  case $lt_cv_dlopen in
20510  dlopen)
20511    save_CPPFLAGS="$CPPFLAGS"
20512    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20513
20514    save_LDFLAGS="$LDFLAGS"
20515    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20516
20517    save_LIBS="$LIBS"
20518    LIBS="$lt_cv_dlopen_libs $LIBS"
20519
20520    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20521echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20522if test "${lt_cv_dlopen_self+set}" = set; then
20523  echo $ECHO_N "(cached) $ECHO_C" >&6
20524else
20525  	  if test "$cross_compiling" = yes; then :
20526  lt_cv_dlopen_self=cross
20527else
20528  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20529  lt_status=$lt_dlunknown
20530  cat > conftest.$ac_ext <<EOF
20531#line __oline__ "configure"
20532#include "confdefs.h"
20533
20534#if HAVE_DLFCN_H
20535#include <dlfcn.h>
20536#endif
20537
20538#include <stdio.h>
20539
20540#ifdef RTLD_GLOBAL
20541#  define LT_DLGLOBAL		RTLD_GLOBAL
20542#else
20543#  ifdef DL_GLOBAL
20544#    define LT_DLGLOBAL		DL_GLOBAL
20545#  else
20546#    define LT_DLGLOBAL		0
20547#  endif
20548#endif
20549
20550/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20551   find out it does not work in some platform. */
20552#ifndef LT_DLLAZY_OR_NOW
20553#  ifdef RTLD_LAZY
20554#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
20555#  else
20556#    ifdef DL_LAZY
20557#      define LT_DLLAZY_OR_NOW		DL_LAZY
20558#    else
20559#      ifdef RTLD_NOW
20560#        define LT_DLLAZY_OR_NOW	RTLD_NOW
20561#      else
20562#        ifdef DL_NOW
20563#          define LT_DLLAZY_OR_NOW	DL_NOW
20564#        else
20565#          define LT_DLLAZY_OR_NOW	0
20566#        endif
20567#      endif
20568#    endif
20569#  endif
20570#endif
20571
20572#ifdef __cplusplus
20573extern "C" void exit (int);
20574#endif
20575
20576void fnord() { int i=42;}
20577int main ()
20578{
20579  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20580  int status = $lt_dlunknown;
20581
20582  if (self)
20583    {
20584      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20585      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20586      /* dlclose (self); */
20587    }
20588
20589    exit (status);
20590}
20591EOF
20592  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20593  (eval $ac_link) 2>&5
20594  ac_status=$?
20595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20597    (./conftest; exit; ) 2>/dev/null
20598    lt_status=$?
20599    case x$lt_status in
20600      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20601      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20602      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20603    esac
20604  else :
20605    # compilation failed
20606    lt_cv_dlopen_self=no
20607  fi
20608fi
20609rm -fr conftest*
20610
20611
20612fi
20613echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20614echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20615
20616    if test "x$lt_cv_dlopen_self" = xyes; then
20617      LDFLAGS="$LDFLAGS $link_static_flag"
20618      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20619echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20620if test "${lt_cv_dlopen_self_static+set}" = set; then
20621  echo $ECHO_N "(cached) $ECHO_C" >&6
20622else
20623  	  if test "$cross_compiling" = yes; then :
20624  lt_cv_dlopen_self_static=cross
20625else
20626  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20627  lt_status=$lt_dlunknown
20628  cat > conftest.$ac_ext <<EOF
20629#line __oline__ "configure"
20630#include "confdefs.h"
20631
20632#if HAVE_DLFCN_H
20633#include <dlfcn.h>
20634#endif
20635
20636#include <stdio.h>
20637
20638#ifdef RTLD_GLOBAL
20639#  define LT_DLGLOBAL		RTLD_GLOBAL
20640#else
20641#  ifdef DL_GLOBAL
20642#    define LT_DLGLOBAL		DL_GLOBAL
20643#  else
20644#    define LT_DLGLOBAL		0
20645#  endif
20646#endif
20647
20648/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20649   find out it does not work in some platform. */
20650#ifndef LT_DLLAZY_OR_NOW
20651#  ifdef RTLD_LAZY
20652#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
20653#  else
20654#    ifdef DL_LAZY
20655#      define LT_DLLAZY_OR_NOW		DL_LAZY
20656#    else
20657#      ifdef RTLD_NOW
20658#        define LT_DLLAZY_OR_NOW	RTLD_NOW
20659#      else
20660#        ifdef DL_NOW
20661#          define LT_DLLAZY_OR_NOW	DL_NOW
20662#        else
20663#          define LT_DLLAZY_OR_NOW	0
20664#        endif
20665#      endif
20666#    endif
20667#  endif
20668#endif
20669
20670#ifdef __cplusplus
20671extern "C" void exit (int);
20672#endif
20673
20674void fnord() { int i=42;}
20675int main ()
20676{
20677  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20678  int status = $lt_dlunknown;
20679
20680  if (self)
20681    {
20682      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20683      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20684      /* dlclose (self); */
20685    }
20686
20687    exit (status);
20688}
20689EOF
20690  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20691  (eval $ac_link) 2>&5
20692  ac_status=$?
20693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20695    (./conftest; exit; ) 2>/dev/null
20696    lt_status=$?
20697    case x$lt_status in
20698      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20699      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20700      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20701    esac
20702  else :
20703    # compilation failed
20704    lt_cv_dlopen_self_static=no
20705  fi
20706fi
20707rm -fr conftest*
20708
20709
20710fi
20711echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20712echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20713    fi
20714
20715    CPPFLAGS="$save_CPPFLAGS"
20716    LDFLAGS="$save_LDFLAGS"
20717    LIBS="$save_LIBS"
20718    ;;
20719  esac
20720
20721  case $lt_cv_dlopen_self in
20722  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20723  *) enable_dlopen_self=unknown ;;
20724  esac
20725
20726  case $lt_cv_dlopen_self_static in
20727  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20728  *) enable_dlopen_self_static=unknown ;;
20729  esac
20730fi
20731
20732
20733# The else clause should only fire when bootstrapping the
20734# libtool distribution, otherwise you forgot to ship ltmain.sh
20735# with your package, and you will get complaints that there are
20736# no rules to generate ltmain.sh.
20737if test -f "$ltmain"; then
20738  # See if we are running on zsh, and set the options which allow our commands through
20739  # without removal of \ escapes.
20740  if test -n "${ZSH_VERSION+set}" ; then
20741    setopt NO_GLOB_SUBST
20742  fi
20743  # Now quote all the things that may contain metacharacters while being
20744  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20745  # variables and quote the copies for generation of the libtool script.
20746  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
20747    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20748    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20749    deplibs_check_method reload_flag reload_cmds need_locks \
20750    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20751    lt_cv_sys_global_symbol_to_c_name_address \
20752    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20753    old_postinstall_cmds old_postuninstall_cmds \
20754    compiler_GCJ \
20755    CC_GCJ \
20756    LD_GCJ \
20757    lt_prog_compiler_wl_GCJ \
20758    lt_prog_compiler_pic_GCJ \
20759    lt_prog_compiler_static_GCJ \
20760    lt_prog_compiler_no_builtin_flag_GCJ \
20761    export_dynamic_flag_spec_GCJ \
20762    thread_safe_flag_spec_GCJ \
20763    whole_archive_flag_spec_GCJ \
20764    enable_shared_with_static_runtimes_GCJ \
20765    old_archive_cmds_GCJ \
20766    old_archive_from_new_cmds_GCJ \
20767    predep_objects_GCJ \
20768    postdep_objects_GCJ \
20769    predeps_GCJ \
20770    postdeps_GCJ \
20771    compiler_lib_search_path_GCJ \
20772    archive_cmds_GCJ \
20773    archive_expsym_cmds_GCJ \
20774    postinstall_cmds_GCJ \
20775    postuninstall_cmds_GCJ \
20776    old_archive_from_expsyms_cmds_GCJ \
20777    allow_undefined_flag_GCJ \
20778    no_undefined_flag_GCJ \
20779    export_symbols_cmds_GCJ \
20780    hardcode_libdir_flag_spec_GCJ \
20781    hardcode_libdir_flag_spec_ld_GCJ \
20782    hardcode_libdir_separator_GCJ \
20783    hardcode_automatic_GCJ \
20784    module_cmds_GCJ \
20785    module_expsym_cmds_GCJ \
20786    lt_cv_prog_compiler_c_o_GCJ \
20787    exclude_expsyms_GCJ \
20788    include_expsyms_GCJ; do
20789
20790    case $var in
20791    old_archive_cmds_GCJ | \
20792    old_archive_from_new_cmds_GCJ | \
20793    archive_cmds_GCJ | \
20794    archive_expsym_cmds_GCJ | \
20795    module_cmds_GCJ | \
20796    module_expsym_cmds_GCJ | \
20797    old_archive_from_expsyms_cmds_GCJ | \
20798    export_symbols_cmds_GCJ | \
20799    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20800    postinstall_cmds | postuninstall_cmds | \
20801    old_postinstall_cmds | old_postuninstall_cmds | \
20802    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20803      # Double-quote double-evaled strings.
20804      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20805      ;;
20806    *)
20807      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20808      ;;
20809    esac
20810  done
20811
20812  case $lt_echo in
20813  *'\$0 --fallback-echo"')
20814    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20815    ;;
20816  esac
20817
20818cfgfile="$ofile"
20819
20820  cat <<__EOF__ >> "$cfgfile"
20821# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20822
20823# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20824
20825# Shell to use when invoking shell scripts.
20826SHELL=$lt_SHELL
20827
20828# Whether or not to build shared libraries.
20829build_libtool_libs=$enable_shared
20830
20831# Whether or not to build static libraries.
20832build_old_libs=$enable_static
20833
20834# Whether or not to add -lc for building shared libraries.
20835build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20836
20837# Whether or not to disallow shared libs when runtime libs are static
20838allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20839
20840# Whether or not to optimize for fast installation.
20841fast_install=$enable_fast_install
20842
20843# The host system.
20844host_alias=$host_alias
20845host=$host
20846
20847# An echo program that does not interpret backslashes.
20848echo=$lt_echo
20849
20850# The archiver.
20851AR=$lt_AR
20852AR_FLAGS=$lt_AR_FLAGS
20853
20854# A C compiler.
20855LTCC=$lt_LTCC
20856
20857# A language-specific compiler.
20858CC=$lt_compiler_GCJ
20859
20860# Is the compiler the GNU C compiler?
20861with_gcc=$GCC_GCJ
20862
20863# An ERE matcher.
20864EGREP=$lt_EGREP
20865
20866# The linker used to build libraries.
20867LD=$lt_LD_GCJ
20868
20869# Whether we need hard or soft links.
20870LN_S=$lt_LN_S
20871
20872# A BSD-compatible nm program.
20873NM=$lt_NM
20874
20875# A symbol stripping program
20876STRIP=$STRIP
20877
20878# Used to examine libraries when file_magic_cmd begins "file"
20879MAGIC_CMD=$MAGIC_CMD
20880
20881# Used on cygwin: DLL creation program.
20882DLLTOOL="$DLLTOOL"
20883
20884# Used on cygwin: object dumper.
20885OBJDUMP="$OBJDUMP"
20886
20887# Used on cygwin: assembler.
20888AS="$AS"
20889
20890# The name of the directory that contains temporary libtool files.
20891objdir=$objdir
20892
20893# How to create reloadable object files.
20894reload_flag=$lt_reload_flag
20895reload_cmds=$lt_reload_cmds
20896
20897# How to pass a linker flag through the compiler.
20898wl=$lt_lt_prog_compiler_wl_GCJ
20899
20900# Object file suffix (normally "o").
20901objext="$ac_objext"
20902
20903# Old archive suffix (normally "a").
20904libext="$libext"
20905
20906# Shared library suffix (normally ".so").
20907shrext='$shrext'
20908
20909# Executable file suffix (normally "").
20910exeext="$exeext"
20911
20912# Additional compiler flags for building library objects.
20913pic_flag=$lt_lt_prog_compiler_pic_GCJ
20914pic_mode=$pic_mode
20915
20916# What is the maximum length of a command?
20917max_cmd_len=$lt_cv_sys_max_cmd_len
20918
20919# Does compiler simultaneously support -c and -o options?
20920compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20921
20922# Must we lock files when doing compilation ?
20923need_locks=$lt_need_locks
20924
20925# Do we need the lib prefix for modules?
20926need_lib_prefix=$need_lib_prefix
20927
20928# Do we need a version for libraries?
20929need_version=$need_version
20930
20931# Whether dlopen is supported.
20932dlopen_support=$enable_dlopen
20933
20934# Whether dlopen of programs is supported.
20935dlopen_self=$enable_dlopen_self
20936
20937# Whether dlopen of statically linked programs is supported.
20938dlopen_self_static=$enable_dlopen_self_static
20939
20940# Compiler flag to prevent dynamic linking.
20941link_static_flag=$lt_lt_prog_compiler_static_GCJ
20942
20943# Compiler flag to turn off builtin functions.
20944no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20945
20946# Compiler flag to allow reflexive dlopens.
20947export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20948
20949# Compiler flag to generate shared objects directly from archives.
20950whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20951
20952# Compiler flag to generate thread-safe objects.
20953thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20954
20955# Library versioning type.
20956version_type=$version_type
20957
20958# Format of library name prefix.
20959libname_spec=$lt_libname_spec
20960
20961# List of archive names.  First name is the real one, the rest are links.
20962# The last name is the one that the linker finds with -lNAME.
20963library_names_spec=$lt_library_names_spec
20964
20965# The coded name of the library, if different from the real name.
20966soname_spec=$lt_soname_spec
20967
20968# Commands used to build and install an old-style archive.
20969RANLIB=$lt_RANLIB
20970old_archive_cmds=$lt_old_archive_cmds_GCJ
20971old_postinstall_cmds=$lt_old_postinstall_cmds
20972old_postuninstall_cmds=$lt_old_postuninstall_cmds
20973
20974# Create an old-style archive from a shared archive.
20975old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20976
20977# Create a temporary old-style archive to link instead of a shared archive.
20978old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20979
20980# Commands used to build and install a shared archive.
20981archive_cmds=$lt_archive_cmds_GCJ
20982archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20983postinstall_cmds=$lt_postinstall_cmds
20984postuninstall_cmds=$lt_postuninstall_cmds
20985
20986# Commands used to build a loadable module (assumed same as above if empty)
20987module_cmds=$lt_module_cmds_GCJ
20988module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20989
20990# Commands to strip libraries.
20991old_striplib=$lt_old_striplib
20992striplib=$lt_striplib
20993
20994# Dependencies to place before the objects being linked to create a
20995# shared library.
20996predep_objects=$lt_predep_objects_GCJ
20997
20998# Dependencies to place after the objects being linked to create a
20999# shared library.
21000postdep_objects=$lt_postdep_objects_GCJ
21001
21002# Dependencies to place before the objects being linked to create a
21003# shared library.
21004predeps=$lt_predeps_GCJ
21005
21006# Dependencies to place after the objects being linked to create a
21007# shared library.
21008postdeps=$lt_postdeps_GCJ
21009
21010# The library search path used internally by the compiler when linking
21011# a shared library.
21012compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21013
21014# Method to check whether dependent libraries are shared objects.
21015deplibs_check_method=$lt_deplibs_check_method
21016
21017# Command to use when deplibs_check_method == file_magic.
21018file_magic_cmd=$lt_file_magic_cmd
21019
21020# Flag that allows shared libraries with undefined symbols to be built.
21021allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21022
21023# Flag that forces no undefined symbols.
21024no_undefined_flag=$lt_no_undefined_flag_GCJ
21025
21026# Commands used to finish a libtool library installation in a directory.
21027finish_cmds=$lt_finish_cmds
21028
21029# Same as above, but a single script fragment to be evaled but not shown.
21030finish_eval=$lt_finish_eval
21031
21032# Take the output of nm and produce a listing of raw symbols and C names.
21033global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21034
21035# Transform the output of nm in a proper C declaration
21036global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21037
21038# Transform the output of nm in a C name address pair
21039global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21040
21041# This is the shared library runtime path variable.
21042runpath_var=$runpath_var
21043
21044# This is the shared library path variable.
21045shlibpath_var=$shlibpath_var
21046
21047# Is shlibpath searched before the hard-coded library search path?
21048shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21049
21050# How to hardcode a shared library path into an executable.
21051hardcode_action=$hardcode_action_GCJ
21052
21053# Whether we should hardcode library paths into libraries.
21054hardcode_into_libs=$hardcode_into_libs
21055
21056# Flag to hardcode \$libdir into a binary during linking.
21057# This must work even if \$libdir does not exist.
21058hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21059
21060# If ld is used when linking, flag to hardcode \$libdir into
21061# a binary during linking. This must work even if \$libdir does
21062# not exist.
21063hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21064
21065# Whether we need a single -rpath flag with a separated argument.
21066hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21067
21068# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21069# resulting binary.
21070hardcode_direct=$hardcode_direct_GCJ
21071
21072# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21073# resulting binary.
21074hardcode_minus_L=$hardcode_minus_L_GCJ
21075
21076# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21077# the resulting binary.
21078hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21079
21080# Set to yes if building a shared library automatically hardcodes DIR into the library
21081# and all subsequent libraries and executables linked against it.
21082hardcode_automatic=$hardcode_automatic_GCJ
21083
21084# Variables whose values should be saved in libtool wrapper scripts and
21085# restored at relink time.
21086variables_saved_for_relink="$variables_saved_for_relink"
21087
21088# Whether libtool must link a program against all its dependency libraries.
21089link_all_deplibs=$link_all_deplibs_GCJ
21090
21091# Compile-time system search path for libraries
21092sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21093
21094# Run-time system search path for libraries
21095sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21096
21097# Fix the shell variable \$srcfile for the compiler.
21098fix_srcfile_path="$fix_srcfile_path_GCJ"
21099
21100# Set to yes if exported symbols are required.
21101always_export_symbols=$always_export_symbols_GCJ
21102
21103# The commands to list exported symbols.
21104export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21105
21106# The commands to extract the exported symbol list from a shared archive.
21107extract_expsyms_cmds=$lt_extract_expsyms_cmds
21108
21109# Symbols that should not be listed in the preloaded symbols.
21110exclude_expsyms=$lt_exclude_expsyms_GCJ
21111
21112# Symbols that must always be exported.
21113include_expsyms=$lt_include_expsyms_GCJ
21114
21115# ### END LIBTOOL TAG CONFIG: $tagname
21116
21117__EOF__
21118
21119
21120else
21121  # If there is no Makefile yet, we rely on a make rule to execute
21122  # `config.status --recheck' to rerun these tests and create the
21123  # libtool script then.
21124  test -f Makefile && make "$ltmain"
21125fi
21126
21127
21128ac_ext=c
21129ac_cpp='$CPP $CPPFLAGS'
21130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21132ac_compiler_gnu=$ac_cv_c_compiler_gnu
21133
21134CC="$lt_save_CC"
21135
21136	else
21137	  tagname=""
21138	fi
21139	;;
21140
21141      RC)
21142
21143
21144
21145# Source file extension for RC test sources.
21146ac_ext=rc
21147
21148# Object file extension for compiled RC test sources.
21149objext=o
21150objext_RC=$objext
21151
21152# Code to be used in simple compile tests
21153lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21154
21155# Code to be used in simple link tests
21156lt_simple_link_test_code="$lt_simple_compile_test_code"
21157
21158# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21159
21160# If no C compiler was specified, use CC.
21161LTCC=${LTCC-"$CC"}
21162
21163# Allow CC to be a program name with arguments.
21164compiler=$CC
21165
21166
21167# Allow CC to be a program name with arguments.
21168lt_save_CC="$CC"
21169CC=${RC-"windres"}
21170compiler=$CC
21171compiler_RC=$CC
21172lt_cv_prog_compiler_c_o_RC=yes
21173
21174# The else clause should only fire when bootstrapping the
21175# libtool distribution, otherwise you forgot to ship ltmain.sh
21176# with your package, and you will get complaints that there are
21177# no rules to generate ltmain.sh.
21178if test -f "$ltmain"; then
21179  # See if we are running on zsh, and set the options which allow our commands through
21180  # without removal of \ escapes.
21181  if test -n "${ZSH_VERSION+set}" ; then
21182    setopt NO_GLOB_SUBST
21183  fi
21184  # Now quote all the things that may contain metacharacters while being
21185  # careful not to overquote the AC_SUBSTed values.  We take copies of the
21186  # variables and quote the copies for generation of the libtool script.
21187  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
21188    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21189    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21190    deplibs_check_method reload_flag reload_cmds need_locks \
21191    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21192    lt_cv_sys_global_symbol_to_c_name_address \
21193    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21194    old_postinstall_cmds old_postuninstall_cmds \
21195    compiler_RC \
21196    CC_RC \
21197    LD_RC \
21198    lt_prog_compiler_wl_RC \
21199    lt_prog_compiler_pic_RC \
21200    lt_prog_compiler_static_RC \
21201    lt_prog_compiler_no_builtin_flag_RC \
21202    export_dynamic_flag_spec_RC \
21203    thread_safe_flag_spec_RC \
21204    whole_archive_flag_spec_RC \
21205    enable_shared_with_static_runtimes_RC \
21206    old_archive_cmds_RC \
21207    old_archive_from_new_cmds_RC \
21208    predep_objects_RC \
21209    postdep_objects_RC \
21210    predeps_RC \
21211    postdeps_RC \
21212    compiler_lib_search_path_RC \
21213    archive_cmds_RC \
21214    archive_expsym_cmds_RC \
21215    postinstall_cmds_RC \
21216    postuninstall_cmds_RC \
21217    old_archive_from_expsyms_cmds_RC \
21218    allow_undefined_flag_RC \
21219    no_undefined_flag_RC \
21220    export_symbols_cmds_RC \
21221    hardcode_libdir_flag_spec_RC \
21222    hardcode_libdir_flag_spec_ld_RC \
21223    hardcode_libdir_separator_RC \
21224    hardcode_automatic_RC \
21225    module_cmds_RC \
21226    module_expsym_cmds_RC \
21227    lt_cv_prog_compiler_c_o_RC \
21228    exclude_expsyms_RC \
21229    include_expsyms_RC; do
21230
21231    case $var in
21232    old_archive_cmds_RC | \
21233    old_archive_from_new_cmds_RC | \
21234    archive_cmds_RC | \
21235    archive_expsym_cmds_RC | \
21236    module_cmds_RC | \
21237    module_expsym_cmds_RC | \
21238    old_archive_from_expsyms_cmds_RC | \
21239    export_symbols_cmds_RC | \
21240    extract_expsyms_cmds | reload_cmds | finish_cmds | \
21241    postinstall_cmds | postuninstall_cmds | \
21242    old_postinstall_cmds | old_postuninstall_cmds | \
21243    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21244      # Double-quote double-evaled strings.
21245      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21246      ;;
21247    *)
21248      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21249      ;;
21250    esac
21251  done
21252
21253  case $lt_echo in
21254  *'\$0 --fallback-echo"')
21255    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21256    ;;
21257  esac
21258
21259cfgfile="$ofile"
21260
21261  cat <<__EOF__ >> "$cfgfile"
21262# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21263
21264# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21265
21266# Shell to use when invoking shell scripts.
21267SHELL=$lt_SHELL
21268
21269# Whether or not to build shared libraries.
21270build_libtool_libs=$enable_shared
21271
21272# Whether or not to build static libraries.
21273build_old_libs=$enable_static
21274
21275# Whether or not to add -lc for building shared libraries.
21276build_libtool_need_lc=$archive_cmds_need_lc_RC
21277
21278# Whether or not to disallow shared libs when runtime libs are static
21279allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21280
21281# Whether or not to optimize for fast installation.
21282fast_install=$enable_fast_install
21283
21284# The host system.
21285host_alias=$host_alias
21286host=$host
21287
21288# An echo program that does not interpret backslashes.
21289echo=$lt_echo
21290
21291# The archiver.
21292AR=$lt_AR
21293AR_FLAGS=$lt_AR_FLAGS
21294
21295# A C compiler.
21296LTCC=$lt_LTCC
21297
21298# A language-specific compiler.
21299CC=$lt_compiler_RC
21300
21301# Is the compiler the GNU C compiler?
21302with_gcc=$GCC_RC
21303
21304# An ERE matcher.
21305EGREP=$lt_EGREP
21306
21307# The linker used to build libraries.
21308LD=$lt_LD_RC
21309
21310# Whether we need hard or soft links.
21311LN_S=$lt_LN_S
21312
21313# A BSD-compatible nm program.
21314NM=$lt_NM
21315
21316# A symbol stripping program
21317STRIP=$STRIP
21318
21319# Used to examine libraries when file_magic_cmd begins "file"
21320MAGIC_CMD=$MAGIC_CMD
21321
21322# Used on cygwin: DLL creation program.
21323DLLTOOL="$DLLTOOL"
21324
21325# Used on cygwin: object dumper.
21326OBJDUMP="$OBJDUMP"
21327
21328# Used on cygwin: assembler.
21329AS="$AS"
21330
21331# The name of the directory that contains temporary libtool files.
21332objdir=$objdir
21333
21334# How to create reloadable object files.
21335reload_flag=$lt_reload_flag
21336reload_cmds=$lt_reload_cmds
21337
21338# How to pass a linker flag through the compiler.
21339wl=$lt_lt_prog_compiler_wl_RC
21340
21341# Object file suffix (normally "o").
21342objext="$ac_objext"
21343
21344# Old archive suffix (normally "a").
21345libext="$libext"
21346
21347# Shared library suffix (normally ".so").
21348shrext='$shrext'
21349
21350# Executable file suffix (normally "").
21351exeext="$exeext"
21352
21353# Additional compiler flags for building library objects.
21354pic_flag=$lt_lt_prog_compiler_pic_RC
21355pic_mode=$pic_mode
21356
21357# What is the maximum length of a command?
21358max_cmd_len=$lt_cv_sys_max_cmd_len
21359
21360# Does compiler simultaneously support -c and -o options?
21361compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21362
21363# Must we lock files when doing compilation ?
21364need_locks=$lt_need_locks
21365
21366# Do we need the lib prefix for modules?
21367need_lib_prefix=$need_lib_prefix
21368
21369# Do we need a version for libraries?
21370need_version=$need_version
21371
21372# Whether dlopen is supported.
21373dlopen_support=$enable_dlopen
21374
21375# Whether dlopen of programs is supported.
21376dlopen_self=$enable_dlopen_self
21377
21378# Whether dlopen of statically linked programs is supported.
21379dlopen_self_static=$enable_dlopen_self_static
21380
21381# Compiler flag to prevent dynamic linking.
21382link_static_flag=$lt_lt_prog_compiler_static_RC
21383
21384# Compiler flag to turn off builtin functions.
21385no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21386
21387# Compiler flag to allow reflexive dlopens.
21388export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21389
21390# Compiler flag to generate shared objects directly from archives.
21391whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21392
21393# Compiler flag to generate thread-safe objects.
21394thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21395
21396# Library versioning type.
21397version_type=$version_type
21398
21399# Format of library name prefix.
21400libname_spec=$lt_libname_spec
21401
21402# List of archive names.  First name is the real one, the rest are links.
21403# The last name is the one that the linker finds with -lNAME.
21404library_names_spec=$lt_library_names_spec
21405
21406# The coded name of the library, if different from the real name.
21407soname_spec=$lt_soname_spec
21408
21409# Commands used to build and install an old-style archive.
21410RANLIB=$lt_RANLIB
21411old_archive_cmds=$lt_old_archive_cmds_RC
21412old_postinstall_cmds=$lt_old_postinstall_cmds
21413old_postuninstall_cmds=$lt_old_postuninstall_cmds
21414
21415# Create an old-style archive from a shared archive.
21416old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21417
21418# Create a temporary old-style archive to link instead of a shared archive.
21419old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21420
21421# Commands used to build and install a shared archive.
21422archive_cmds=$lt_archive_cmds_RC
21423archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21424postinstall_cmds=$lt_postinstall_cmds
21425postuninstall_cmds=$lt_postuninstall_cmds
21426
21427# Commands used to build a loadable module (assumed same as above if empty)
21428module_cmds=$lt_module_cmds_RC
21429module_expsym_cmds=$lt_module_expsym_cmds_RC
21430
21431# Commands to strip libraries.
21432old_striplib=$lt_old_striplib
21433striplib=$lt_striplib
21434
21435# Dependencies to place before the objects being linked to create a
21436# shared library.
21437predep_objects=$lt_predep_objects_RC
21438
21439# Dependencies to place after the objects being linked to create a
21440# shared library.
21441postdep_objects=$lt_postdep_objects_RC
21442
21443# Dependencies to place before the objects being linked to create a
21444# shared library.
21445predeps=$lt_predeps_RC
21446
21447# Dependencies to place after the objects being linked to create a
21448# shared library.
21449postdeps=$lt_postdeps_RC
21450
21451# The library search path used internally by the compiler when linking
21452# a shared library.
21453compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21454
21455# Method to check whether dependent libraries are shared objects.
21456deplibs_check_method=$lt_deplibs_check_method
21457
21458# Command to use when deplibs_check_method == file_magic.
21459file_magic_cmd=$lt_file_magic_cmd
21460
21461# Flag that allows shared libraries with undefined symbols to be built.
21462allow_undefined_flag=$lt_allow_undefined_flag_RC
21463
21464# Flag that forces no undefined symbols.
21465no_undefined_flag=$lt_no_undefined_flag_RC
21466
21467# Commands used to finish a libtool library installation in a directory.
21468finish_cmds=$lt_finish_cmds
21469
21470# Same as above, but a single script fragment to be evaled but not shown.
21471finish_eval=$lt_finish_eval
21472
21473# Take the output of nm and produce a listing of raw symbols and C names.
21474global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21475
21476# Transform the output of nm in a proper C declaration
21477global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21478
21479# Transform the output of nm in a C name address pair
21480global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21481
21482# This is the shared library runtime path variable.
21483runpath_var=$runpath_var
21484
21485# This is the shared library path variable.
21486shlibpath_var=$shlibpath_var
21487
21488# Is shlibpath searched before the hard-coded library search path?
21489shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21490
21491# How to hardcode a shared library path into an executable.
21492hardcode_action=$hardcode_action_RC
21493
21494# Whether we should hardcode library paths into libraries.
21495hardcode_into_libs=$hardcode_into_libs
21496
21497# Flag to hardcode \$libdir into a binary during linking.
21498# This must work even if \$libdir does not exist.
21499hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21500
21501# If ld is used when linking, flag to hardcode \$libdir into
21502# a binary during linking. This must work even if \$libdir does
21503# not exist.
21504hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21505
21506# Whether we need a single -rpath flag with a separated argument.
21507hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21508
21509# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21510# resulting binary.
21511hardcode_direct=$hardcode_direct_RC
21512
21513# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21514# resulting binary.
21515hardcode_minus_L=$hardcode_minus_L_RC
21516
21517# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21518# the resulting binary.
21519hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21520
21521# Set to yes if building a shared library automatically hardcodes DIR into the library
21522# and all subsequent libraries and executables linked against it.
21523hardcode_automatic=$hardcode_automatic_RC
21524
21525# Variables whose values should be saved in libtool wrapper scripts and
21526# restored at relink time.
21527variables_saved_for_relink="$variables_saved_for_relink"
21528
21529# Whether libtool must link a program against all its dependency libraries.
21530link_all_deplibs=$link_all_deplibs_RC
21531
21532# Compile-time system search path for libraries
21533sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21534
21535# Run-time system search path for libraries
21536sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21537
21538# Fix the shell variable \$srcfile for the compiler.
21539fix_srcfile_path="$fix_srcfile_path_RC"
21540
21541# Set to yes if exported symbols are required.
21542always_export_symbols=$always_export_symbols_RC
21543
21544# The commands to list exported symbols.
21545export_symbols_cmds=$lt_export_symbols_cmds_RC
21546
21547# The commands to extract the exported symbol list from a shared archive.
21548extract_expsyms_cmds=$lt_extract_expsyms_cmds
21549
21550# Symbols that should not be listed in the preloaded symbols.
21551exclude_expsyms=$lt_exclude_expsyms_RC
21552
21553# Symbols that must always be exported.
21554include_expsyms=$lt_include_expsyms_RC
21555
21556# ### END LIBTOOL TAG CONFIG: $tagname
21557
21558__EOF__
21559
21560
21561else
21562  # If there is no Makefile yet, we rely on a make rule to execute
21563  # `config.status --recheck' to rerun these tests and create the
21564  # libtool script then.
21565  test -f Makefile && make "$ltmain"
21566fi
21567
21568
21569ac_ext=c
21570ac_cpp='$CPP $CPPFLAGS'
21571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21573ac_compiler_gnu=$ac_cv_c_compiler_gnu
21574
21575CC="$lt_save_CC"
21576
21577	;;
21578
21579      *)
21580	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21581echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21582   { (exit 1); exit 1; }; }
21583	;;
21584      esac
21585
21586      # Append the new tag name to the list of available tags.
21587      if test -n "$tagname" ; then
21588      available_tags="$available_tags $tagname"
21589    fi
21590    fi
21591  done
21592  IFS="$lt_save_ifs"
21593
21594  # Now substitute the updated list of available tags.
21595  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21596    mv "${ofile}T" "$ofile"
21597    chmod +x "$ofile"
21598  else
21599    rm -f "${ofile}T"
21600    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21601echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21602   { (exit 1); exit 1; }; }
21603  fi
21604fi
21605
21606
21607
21608# This can be used to rebuild libtool when needed
21609LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21610
21611# Always use our own libtool.
21612LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
21613
21614# Prevent multiple expansion
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649LIBTOOL_SHELL="/bin/sh ./libtool"
21650#  LIBTOOL="$LIBTOOL --silent"
21651KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
21652
21653
21654# This hack ensures that libtool creates shared libs for kunittest plugins. By default check_LTLIBRARIES makes static libs.
21655KDE_CHECK_PLUGIN="\$(KDE_PLUGIN) -rpath \$(libdir)"
21656
21657
21658# we patch configure quite some so we better keep that consistent for incremental runs
21659AUTOCONF='$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure'
21660
21661
21662
21663all_libraries="$all_libraries $USER_LDFLAGS"
21664all_includes="$all_includes $USER_INCLUDES"
21665
21666
21667
21668
21669
21670
21671
21672# Check whether --with-lineak-includedir or --without-lineak-includedir was given.
21673if test "${with_lineak_includedir+set}" = set; then
21674  withval="$with_lineak_includedir"
21675  lineakincludes=${withval}
21676fi;
21677
21678echo "$as_me:$LINENO: checking Looking for lineak headers" >&5
21679echo $ECHO_N "checking Looking for lineak headers... $ECHO_C" >&6
21680   if test "$lineakincludes" = ""; then
21681      for i in /usr/include /usr/local/include /opt/include $lineakincludes
21682      do
21683         if test -f "${i}/lineak/lconfig.h" ; then
21684            lineak_includedir="${i}/lineak"
21685            CPPFLAGS="${CPPFLAGS} -I${lineak_includedir} -I${i}"
21686            echo "$as_me:$LINENO: result: ${lineak_includedir}" >&5
21687echo "${ECHO_T}${lineak_includedir}" >&6
21688            break
21689         fi
21690      done
21691   else
21692      lineak_includedir="$lineakincludes"
21693      CPPFLAGS="${CPPFLAGS} -I${lineak_includedir} -I${i}"
21694      echo "$as_me:$LINENO: result: ${lineak_includedir}" >&5
21695echo "${ECHO_T}${lineak_includedir}" >&6
21696   fi
21697   if test ! -d "$lineak_includedir" ; then
21698      { { echo "$as_me:$LINENO: error: Lineak includes not found. Check your installation or try ./configure --with-lineak-includedir=" >&5
21699echo "$as_me: error: Lineak includes not found. Check your installation or try ./configure --with-lineak-includedir=" >&2;}
21700   { (exit 1); exit 1; }; }
21701      exit 0
21702   fi
21703
21704   if test "$lineak_includedir" != ""; then
21705
21706cat >>confdefs.h <<_ACEOF
21707@%:@define INCLUDEDIR "$lineak_includedir"
21708_ACEOF
21709
21710
21711   else
21712      echo The lineak development headers could not be found. Please install lineakd version 0.8 or higher.
21713      exit 0
21714  fi
21715
21716
21717   echo "$as_me:$LINENO: checking for X" >&5
21718echo $ECHO_N "checking for X... $ECHO_C" >&6
21719
21720ac_path_x_has_been_run=yes
21721
21722# Check whether --with-x or --without-x was given.
21723if test "${with_x+set}" = set; then
21724  withval="$with_x"
21725
21726fi;
21727# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21728if test "x$with_x" = xno; then
21729  # The user explicitly disabled X.
21730  have_x=disabled
21731else
21732  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21733    # Both variables are already set.
21734    have_x=yes
21735  else
21736    if test "${ac_cv_have_x+set}" = set; then
21737  echo $ECHO_N "(cached) $ECHO_C" >&6
21738else
21739  # One or both of the vars are not set, and there is no cached value.
21740ac_x_includes=no ac_x_libraries=no
21741rm -fr conftest.dir
21742if mkdir conftest.dir; then
21743  cd conftest.dir
21744  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21745  cat >Imakefile <<'_ACEOF'
21746acfindx:
21747	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21748_ACEOF
21749  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21750    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21751    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21752    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21753    for ac_extension in a so sl; do
21754      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21755	 test -f $ac_im_libdir/libX11.$ac_extension; then
21756	ac_im_usrlibdir=$ac_im_libdir; break
21757      fi
21758    done
21759    # Screen out bogus values from the imake configuration.  They are
21760    # bogus both because they are the default anyway, and because
21761    # using them would break gcc on systems where it needs fixed includes.
21762    case $ac_im_incroot in
21763	/usr/include) ;;
21764	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21765    esac
21766    case $ac_im_usrlibdir in
21767	/usr/lib | /lib) ;;
21768	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21769    esac
21770  fi
21771  cd ..
21772  rm -fr conftest.dir
21773fi
21774
21775# Standard set of common directories for X headers.
21776# Check X11 before X11Rn because it is often a symlink to the current release.
21777ac_x_header_dirs='
21778/usr/X11/include
21779/usr/X11R6/include
21780/usr/X11R5/include
21781/usr/X11R4/include
21782
21783/usr/include/X11
21784/usr/include/X11R6
21785/usr/include/X11R5
21786/usr/include/X11R4
21787
21788/usr/local/X11/include
21789/usr/local/X11R6/include
21790/usr/local/X11R5/include
21791/usr/local/X11R4/include
21792
21793/usr/local/include/X11
21794/usr/local/include/X11R6
21795/usr/local/include/X11R5
21796/usr/local/include/X11R4
21797
21798/usr/X386/include
21799/usr/x386/include
21800/usr/XFree86/include/X11
21801
21802/usr/include
21803/usr/local/include
21804/usr/unsupported/include
21805/usr/athena/include
21806/usr/local/x11r5/include
21807/usr/lpp/Xamples/include
21808
21809/usr/openwin/include
21810/usr/openwin/share/include'
21811
21812if test "$ac_x_includes" = no; then
21813  # Guess where to find include files, by looking for a specified header file.
21814  # First, try using that file with no special directory specified.
21815  cat >conftest.$ac_ext <<_ACEOF
21816/* confdefs.h.  */
21817_ACEOF
21818cat confdefs.h >>conftest.$ac_ext
21819cat >>conftest.$ac_ext <<_ACEOF
21820/* end confdefs.h.  */
21821@%:@include <X11/Xlib.h>
21822_ACEOF
21823if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21824  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21825  ac_status=$?
21826  grep -v '^ *+' conftest.er1 >conftest.err
21827  rm -f conftest.er1
21828  cat conftest.err >&5
21829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830  (exit $ac_status); } >/dev/null; then
21831  if test -s conftest.err; then
21832    ac_cpp_err=$ac_c_preproc_warn_flag
21833    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21834  else
21835    ac_cpp_err=
21836  fi
21837else
21838  ac_cpp_err=yes
21839fi
21840if test -z "$ac_cpp_err"; then
21841  # We can compile using X headers with no special include directory.
21842ac_x_includes=
21843else
21844  echo "$as_me: failed program was:" >&5
21845sed 's/^/| /' conftest.$ac_ext >&5
21846
21847  for ac_dir in $ac_x_header_dirs; do
21848  if test -r "$ac_dir/X11/Xlib.h"; then
21849    ac_x_includes=$ac_dir
21850    break
21851  fi
21852done
21853fi
21854rm -f conftest.err conftest.$ac_ext
21855fi # $ac_x_includes = no
21856
21857if test "$ac_x_libraries" = no; then
21858  # Check for the libraries.
21859  # See if we find them without any special options.
21860  # Don't add to $LIBS permanently.
21861  ac_save_LIBS=$LIBS
21862  LIBS="-lX11 $LIBS"
21863  cat >conftest.$ac_ext <<_ACEOF
21864/* confdefs.h.  */
21865_ACEOF
21866cat confdefs.h >>conftest.$ac_ext
21867cat >>conftest.$ac_ext <<_ACEOF
21868/* end confdefs.h.  */
21869@%:@include <X11/Xlib.h>
21870int
21871main ()
21872{
21873XrmInitialize ()
21874  ;
21875  return 0;
21876}
21877_ACEOF
21878rm -f conftest.$ac_objext conftest$ac_exeext
21879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21880  (eval $ac_link) 2>conftest.er1
21881  ac_status=$?
21882  grep -v '^ *+' conftest.er1 >conftest.err
21883  rm -f conftest.er1
21884  cat conftest.err >&5
21885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886  (exit $ac_status); } &&
21887	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889  (eval $ac_try) 2>&5
21890  ac_status=$?
21891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892  (exit $ac_status); }; } &&
21893	 { ac_try='test -s conftest$ac_exeext'
21894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895  (eval $ac_try) 2>&5
21896  ac_status=$?
21897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898  (exit $ac_status); }; }; then
21899  LIBS=$ac_save_LIBS
21900# We can link X programs with no special library path.
21901ac_x_libraries=
21902else
21903  echo "$as_me: failed program was:" >&5
21904sed 's/^/| /' conftest.$ac_ext >&5
21905
21906LIBS=$ac_save_LIBS
21907for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21908do
21909  # Don't even attempt the hair of trying to link an X program!
21910  for ac_extension in a so sl; do
21911    if test -r $ac_dir/libX11.$ac_extension; then
21912      ac_x_libraries=$ac_dir
21913      break 2
21914    fi
21915  done
21916done
21917fi
21918rm -f conftest.err conftest.$ac_objext \
21919      conftest$ac_exeext conftest.$ac_ext
21920fi # $ac_x_libraries = no
21921
21922if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21923  # Didn't find X anywhere.  Cache the known absence of X.
21924  ac_cv_have_x="have_x=no"
21925else
21926  # Record where we found X for the cache.
21927  ac_cv_have_x="have_x=yes \
21928		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21929fi
21930fi
21931
21932  fi
21933  eval "$ac_cv_have_x"
21934fi # $with_x != no
21935
21936if test "$have_x" != yes; then
21937  echo "$as_me:$LINENO: result: $have_x" >&5
21938echo "${ECHO_T}$have_x" >&6
21939  no_x=yes
21940else
21941  # If each of the values was on the command line, it overrides each guess.
21942  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21943  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21944  # Update the cache value to reflect the command line values.
21945  ac_cv_have_x="have_x=yes \
21946		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21947  # It might be that x_includes is empty (headers are found in the
21948  # standard search path. Then output the corresponding message
21949  ac_out_x_includes=$x_includes
21950  test "x$x_includes" = x && ac_out_x_includes="in standard search path"
21951  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
21952echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
21953fi
21954
21955   LDFLAGS="$all_libraries -L${x_libraries} $X_LDFLAGS -lX11 -lXext -ldl"
21956   CPPFLAGS="$all_includes -I${x_includes} ${CPPFLAGS} "
21957      echo "$as_me:$LINENO: checking for ac_check_lineak in -llineak" >&5
21958echo $ECHO_N "checking for ac_check_lineak in -llineak... $ECHO_C" >&6
21959if test "${ac_cv_lib_lineak_ac_check_lineak+set}" = set; then
21960  echo $ECHO_N "(cached) $ECHO_C" >&6
21961else
21962  ac_check_lib_save_LIBS=$LIBS
21963LIBS="-llineak  $LIBS"
21964cat >conftest.$ac_ext <<_ACEOF
21965/* confdefs.h.  */
21966_ACEOF
21967cat confdefs.h >>conftest.$ac_ext
21968cat >>conftest.$ac_ext <<_ACEOF
21969/* end confdefs.h.  */
21970
21971/* Override any gcc2 internal prototype to avoid an error.  */
21972#ifdef __cplusplus
21973extern "C"
21974#endif
21975/* We use char because int might match the return type of a gcc2
21976   builtin and then its argument prototype would still apply.  */
21977char ac_check_lineak ();
21978int
21979main ()
21980{
21981ac_check_lineak ();
21982  ;
21983  return 0;
21984}
21985_ACEOF
21986rm -f conftest.$ac_objext conftest$ac_exeext
21987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21988  (eval $ac_link) 2>conftest.er1
21989  ac_status=$?
21990  grep -v '^ *+' conftest.er1 >conftest.err
21991  rm -f conftest.er1
21992  cat conftest.err >&5
21993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994  (exit $ac_status); } &&
21995	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21997  (eval $ac_try) 2>&5
21998  ac_status=$?
21999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000  (exit $ac_status); }; } &&
22001	 { ac_try='test -s conftest$ac_exeext'
22002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003  (eval $ac_try) 2>&5
22004  ac_status=$?
22005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006  (exit $ac_status); }; }; then
22007  ac_cv_lib_lineak_ac_check_lineak=yes
22008else
22009  echo "$as_me: failed program was:" >&5
22010sed 's/^/| /' conftest.$ac_ext >&5
22011
22012ac_cv_lib_lineak_ac_check_lineak=no
22013fi
22014rm -f conftest.err conftest.$ac_objext \
22015      conftest$ac_exeext conftest.$ac_ext
22016LIBS=$ac_check_lib_save_LIBS
22017fi
22018echo "$as_me:$LINENO: result: $ac_cv_lib_lineak_ac_check_lineak" >&5
22019echo "${ECHO_T}$ac_cv_lib_lineak_ac_check_lineak" >&6
22020if test $ac_cv_lib_lineak_ac_check_lineak = yes; then
22021  LIBLINEAK="-llineak"
22022else
22023  { { echo "$as_me:$LINENO: error: lib lineak not found. Please install lineakd 0.8 or later." >&5
22024echo "$as_me: error: lib lineak not found. Please install lineakd 0.8 or later." >&2;}
22025   { (exit 1); exit 1; }; }
22026fi
22027
22028   if test "x$LIBLINEAK" != "x"; then
22029      LIBS="-llineak"
22030
22031cat >>confdefs.h <<\_ACEOF
22032@%:@define HAVE_LIBLINEAK 1
22033_ACEOF
22034
22035      fi
22036
22037
22038
22039
22040# Check whether --with-lineak_plugindir or --without-lineak_plugindir was given.
22041if test "${with_lineak_plugindir+set}" = set; then
22042  withval="$with_lineak_plugindir"
22043  lineakplugins=${withval}
22044fi;
22045echo "$as_me:$LINENO: checking Looking for the plugin directory" >&5
22046echo $ECHO_N "checking Looking for the plugin directory... $ECHO_C" >&6
22047if test "$lineakplugins" = ""; then
22048   for i in /usr /usr/local / /opt
22049   do
22050      if test -d "${i}/lib/lineakd/plugins" ; then
22051         pdir="${i}/lib/lineakd/plugins"
22052         echo "$as_me:$LINENO: result: ${pdir}" >&5
22053echo "${ECHO_T}${pdir}" >&6
22054         break
22055      fi
22056   done
22057else
22058   pdir="$lineakplugins"
22059   echo "$as_me:$LINENO: result: ${pdir}" >&5
22060echo "${ECHO_T}${pdir}" >&6
22061fi
22062
22063if test ! -d $pdir ; then
22064   { { echo "$as_me:$LINENO: error: Lineak plugin directory not found. Please install lineakd version 0.8 or higher." >&5
22065echo "$as_me: error: Lineak plugin directory not found. Please install lineakd version 0.8 or higher." >&2;}
22066   { (exit 1); exit 1; }; }
22067   exit 0
22068fi
22069
22070if test "$pdir" != ""; then
22071
22072cat >>confdefs.h <<_ACEOF
22073@%:@define PLUGINDIR "$pdir"
22074_ACEOF
22075
22076   PLUGINDIR="${pdir}"
22077
22078else
22079   echo The lineakd plugin directory could not be found. Please install lineakd version 0.8 or higher.
22080   exit 0
22081fi
22082
22083
22084
22085
22086DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
22087TOPSUBDIRS=""
22088
22089if test ! -s $srcdir/subdirs; then
22090    files=`cd $srcdir && ls -1`
22091  dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
22092  for i in $dirs; do
22093    echo $i >> $srcdir/subdirs
22094  done
22095fi
22096
22097ac_topsubdirs=
22098if test -s $srcdir/inst-apps; then
22099  ac_topsubdirs="`cat $srcdir/inst-apps`"
22100elif test -s $srcdir/subdirs; then
22101  ac_topsubdirs="`cat $srcdir/subdirs`"
22102fi
22103
22104for i in $ac_topsubdirs; do
22105  echo "$as_me:$LINENO: checking if $i should be compiled" >&5
22106echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6
22107  if test -d $srcdir/$i; then
22108    install_it="yes"
22109    for j in $DO_NOT_COMPILE; do
22110      if test $i = $j; then
22111        install_it="no"
22112      fi
22113    done
22114  else
22115    install_it="no"
22116  fi
22117  echo "$as_me:$LINENO: result: $install_it" >&5
22118echo "${ECHO_T}$install_it" >&6
22119  vari=`echo $i | sed -e 's,[-+.@],_,g'`
22120  if test $install_it = "yes"; then
22121    TOPSUBDIRS="$TOPSUBDIRS $i"
22122    eval "$vari""_SUBDIR_included=yes"
22123  else
22124    eval "$vari""_SUBDIR_included=no"
22125  fi
22126done
22127
22128
22129
22130          ac_config_files="$ac_config_files Makefile"
22131
22132          ac_config_files="$ac_config_files default_plugin/Makefile"
22133
22134          ac_config_files="$ac_config_files po/Makefile"
22135
22136cat >confcache <<\_ACEOF
22137# This file is a shell script that caches the results of configure
22138# tests run on this system so they can be shared between configure
22139# scripts and configure runs, see configure's option --config-cache.
22140# It is not useful on other systems.  If it contains results you don't
22141# want to keep, you may remove or edit it.
22142#
22143# config.status only pays attention to the cache file if you give it
22144# the --recheck option to rerun configure.
22145#
22146# `ac_cv_env_foo' variables (set or unset) will be overridden when
22147# loading this file, other *unset* `ac_cv_foo' will be assigned the
22148# following values.
22149
22150_ACEOF
22151
22152# The following way of writing the cache mishandles newlines in values,
22153# but we know of no workaround that is simple, portable, and efficient.
22154# So, don't put newlines in cache variables' values.
22155# Ultrix sh set writes to stderr and can't be redirected directly,
22156# and sets the high bit in the cache file unless we assign to the vars.
22157{
22158  (set) 2>&1 |
22159    case `(ac_space=' '; set | grep ac_space) 2>&1` in
22160    *ac_space=\ *)
22161      # `set' does not quote correctly, so add quotes (double-quote
22162      # substitution turns \\\\ into \\, and sed turns \\ into \).
22163      sed -n \
22164	"s/'/'\\\\''/g;
22165	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22166      ;;
22167    *)
22168      # `set' quotes correctly as required by POSIX, so do not add quotes.
22169      sed -n \
22170	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22171      ;;
22172    esac;
22173} |
22174  sed '
22175     t clear
22176     : clear
22177     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22178     t end
22179     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22180     : end' >>confcache
22181if diff $cache_file confcache >/dev/null 2>&1; then :; else
22182  if test -w $cache_file; then
22183    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22184    cat confcache >$cache_file
22185  else
22186    echo "not updating unwritable cache $cache_file"
22187  fi
22188fi
22189rm -f confcache
22190
22191test "x$prefix" = xNONE && prefix=$ac_default_prefix
22192# Let make expand exec_prefix.
22193test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22194
22195# VPATH may cause trouble with some makes, so we remove $(srcdir),
22196# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22197# trailing colons and then remove the whole line if VPATH becomes empty
22198# (actually we leave an empty line to preserve line numbers).
22199if test "x$srcdir" = x.; then
22200  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22201s/:*\$(srcdir):*/:/;
22202s/:*\${srcdir}:*/:/;
22203s/:*@srcdir@:*/:/;
22204s/^\([^=]*=[	 ]*\):*/\1/;
22205s/:*$//;
22206s/^[^=]*=[	 ]*$//;
22207}'
22208fi
22209
22210DEFS=-DHAVE_CONFIG_H
22211
22212ac_libobjs=
22213ac_ltlibobjs=
22214for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
22215  # 1. Remove the extension, and $U if already installed.
22216  ac_i=`echo "$ac_i" |
22217	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22218  # 2. Add them.
22219  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22220  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22221done
22222LIB@&t@OBJS=$ac_libobjs
22223
22224LTLIBOBJS=$ac_ltlibobjs
22225
22226
22227if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22228  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22229Usually this means the macro was only invoked conditionally." >&5
22230echo "$as_me: error: conditional \"AMDEP\" was never defined.
22231Usually this means the macro was only invoked conditionally." >&2;}
22232   { (exit 1); exit 1; }; }
22233fi
22234if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22235  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22236Usually this means the macro was only invoked conditionally." >&5
22237echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22238Usually this means the macro was only invoked conditionally." >&2;}
22239   { (exit 1); exit 1; }; }
22240fi
22241if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22242  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22243Usually this means the macro was only invoked conditionally." >&5
22244echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22245Usually this means the macro was only invoked conditionally." >&2;}
22246   { (exit 1); exit 1; }; }
22247fi
22248if test -z "${unsermake_enable_pch_TRUE}" && test -z "${unsermake_enable_pch_FALSE}"; then
22249  { { echo "$as_me:$LINENO: error: conditional \"unsermake_enable_pch\" was never defined.
22250Usually this means the macro was only invoked conditionally." >&5
22251echo "$as_me: error: conditional \"unsermake_enable_pch\" was never defined.
22252Usually this means the macro was only invoked conditionally." >&2;}
22253   { (exit 1); exit 1; }; }
22254fi
22255
22256: ${CONFIG_STATUS=./config.status}
22257ac_clean_files_save=$ac_clean_files
22258ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22259{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22260echo "$as_me: creating $CONFIG_STATUS" >&6;}
22261cat >$CONFIG_STATUS <<_ACEOF
22262#! $SHELL
22263# Generated by $as_me.
22264# Run this file to recreate the current configuration.
22265# Compiler output produced by configure, useful for debugging
22266# configure, is in config.log if it exists.
22267
22268debug=false
22269ac_cs_recheck=false
22270ac_cs_silent=false
22271SHELL=\${CONFIG_SHELL-$SHELL}
22272_ACEOF
22273
22274cat >>$CONFIG_STATUS <<\_ACEOF
22275## --------------------- ##
22276## M4sh Initialization.  ##
22277## --------------------- ##
22278
22279# Be Bourne compatible
22280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22281  emulate sh
22282  NULLCMD=:
22283  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22284  # is contrary to our usage.  Disable this feature.
22285  alias -g '${1+"$@"}'='"$@"'
22286elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22287  set -o posix
22288fi
22289DUALCASE=1; export DUALCASE # for MKS sh
22290
22291# Support unset when possible.
22292if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22293  as_unset=unset
22294else
22295  as_unset=false
22296fi
22297
22298
22299# Work around bugs in pre-3.0 UWIN ksh.
22300$as_unset ENV MAIL MAILPATH
22301PS1='$ '
22302PS2='> '
22303PS4='+ '
22304
22305# NLS nuisances.
22306for as_var in \
22307  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22308  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22309  LC_TELEPHONE LC_TIME
22310do
22311  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22312    eval $as_var=C; export $as_var
22313  else
22314    $as_unset $as_var
22315  fi
22316done
22317
22318# Required to use basename.
22319if expr a : '\(a\)' >/dev/null 2>&1; then
22320  as_expr=expr
22321else
22322  as_expr=false
22323fi
22324
22325if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22326  as_basename=basename
22327else
22328  as_basename=false
22329fi
22330
22331
22332# Name of the executable.
22333as_me=`$as_basename "$0" ||
22334$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22335	 X"$0" : 'X\(//\)$' \| \
22336	 X"$0" : 'X\(/\)$' \| \
22337	 .     : '\(.\)' 2>/dev/null ||
22338echo X/"$0" |
22339    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22340  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
22341  	  /^X\/\(\/\).*/{ s//\1/; q; }
22342  	  s/.*/./; q'`
22343
22344
22345# PATH needs CR, and LINENO needs CR and PATH.
22346# Avoid depending upon Character Ranges.
22347as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22348as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22349as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22350as_cr_digits='0123456789'
22351as_cr_alnum=$as_cr_Letters$as_cr_digits
22352
22353# The user is always right.
22354if test "${PATH_SEPARATOR+set}" != set; then
22355  echo "#! /bin/sh" >conf$$.sh
22356  echo  "exit 0"   >>conf$$.sh
22357  chmod +x conf$$.sh
22358  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22359    PATH_SEPARATOR=';'
22360  else
22361    PATH_SEPARATOR=:
22362  fi
22363  rm -f conf$$.sh
22364fi
22365
22366
22367  as_lineno_1=$LINENO
22368  as_lineno_2=$LINENO
22369  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22370  test "x$as_lineno_1" != "x$as_lineno_2" &&
22371  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22372  # Find who we are.  Look in the path if we contain no path at all
22373  # relative or not.
22374  case $0 in
22375    *[\\/]* ) as_myself=$0 ;;
22376    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22377for as_dir in $PATH
22378do
22379  IFS=$as_save_IFS
22380  test -z "$as_dir" && as_dir=.
22381  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22382done
22383
22384       ;;
22385  esac
22386  # We did not find ourselves, most probably we were run as `sh COMMAND'
22387  # in which case we are not to be found in the path.
22388  if test "x$as_myself" = x; then
22389    as_myself=$0
22390  fi
22391  if test ! -f "$as_myself"; then
22392    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22393echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22394   { (exit 1); exit 1; }; }
22395  fi
22396  case $CONFIG_SHELL in
22397  '')
22398    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22399for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22400do
22401  IFS=$as_save_IFS
22402  test -z "$as_dir" && as_dir=.
22403  for as_base in sh bash ksh sh5; do
22404	 case $as_dir in
22405	 /*)
22406	   if ("$as_dir/$as_base" -c '
22407  as_lineno_1=$LINENO
22408  as_lineno_2=$LINENO
22409  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22410  test "x$as_lineno_1" != "x$as_lineno_2" &&
22411  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22412	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22413	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22414	     CONFIG_SHELL=$as_dir/$as_base
22415	     export CONFIG_SHELL
22416	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22417	   fi;;
22418	 esac
22419       done
22420done
22421;;
22422  esac
22423
22424  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22425  # uniformly replaced by the line number.  The first 'sed' inserts a
22426  # line-number line before each line; the second 'sed' does the real
22427  # work.  The second script uses 'N' to pair each line-number line
22428  # with the numbered line, and appends trailing '-' during
22429  # substitution so that $LINENO is not a special case at line end.
22430  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22431  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22432  sed '=' <$as_myself |
22433    sed '
22434      N
22435      s,$,-,
22436      : loop
22437      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22438      t loop
22439      s,-$,,
22440      s,^['$as_cr_digits']*\n,,
22441    ' >$as_me.lineno &&
22442  chmod +x $as_me.lineno ||
22443    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22444echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22445   { (exit 1); exit 1; }; }
22446
22447  # Don't try to exec as it changes $[0], causing all sort of problems
22448  # (the dirname of $[0] is not the place where we might find the
22449  # original and so on.  Autoconf is especially sensible to this).
22450  . ./$as_me.lineno
22451  # Exit status is that of the last command.
22452  exit
22453}
22454
22455
22456case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22457  *c*,-n*) ECHO_N= ECHO_C='
22458' ECHO_T='	' ;;
22459  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22460  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22461esac
22462
22463if expr a : '\(a\)' >/dev/null 2>&1; then
22464  as_expr=expr
22465else
22466  as_expr=false
22467fi
22468
22469rm -f conf$$ conf$$.exe conf$$.file
22470echo >conf$$.file
22471if ln -s conf$$.file conf$$ 2>/dev/null; then
22472  # We could just check for DJGPP; but this test a) works b) is more generic
22473  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22474  if test -f conf$$.exe; then
22475    # Don't use ln at all; we don't have any links
22476    as_ln_s='cp -p'
22477  else
22478    as_ln_s='ln -s'
22479  fi
22480elif ln conf$$.file conf$$ 2>/dev/null; then
22481  as_ln_s=ln
22482else
22483  as_ln_s='cp -p'
22484fi
22485rm -f conf$$ conf$$.exe conf$$.file
22486
22487if mkdir -p . 2>/dev/null; then
22488  as_mkdir_p=:
22489else
22490  test -d ./-p && rmdir ./-p
22491  as_mkdir_p=false
22492fi
22493
22494as_executable_p="test -f"
22495
22496# Sed expression to map a string onto a valid CPP name.
22497as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22498
22499# Sed expression to map a string onto a valid variable name.
22500as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22501
22502
22503# IFS
22504# We need space, tab and new line, in precisely that order.
22505as_nl='
22506'
22507IFS=" 	$as_nl"
22508
22509# CDPATH.
22510$as_unset CDPATH
22511
22512exec 6>&1
22513
22514# Open the log real soon, to keep \$[0] and so on meaningful, and to
22515# report actual input values of CONFIG_FILES etc. instead of their
22516# values after options handling.  Logging --version etc. is OK.
22517exec 5>>config.log
22518{
22519  echo
22520  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
22521@%:@@%:@ Running $as_me. @%:@@%:@
22522_ASBOX
22523} >&5
22524cat >&5 <<_CSEOF
22525
22526This file was extended by $as_me, which was
22527generated by GNU Autoconf 2.59.  Invocation command line was
22528
22529  CONFIG_FILES    = $CONFIG_FILES
22530  CONFIG_HEADERS  = $CONFIG_HEADERS
22531  CONFIG_LINKS    = $CONFIG_LINKS
22532  CONFIG_COMMANDS = $CONFIG_COMMANDS
22533  $ $0 $@
22534
22535_CSEOF
22536echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22537echo >&5
22538_ACEOF
22539
22540# Files that config.status was made for.
22541if test -n "$ac_config_files"; then
22542  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22543fi
22544
22545if test -n "$ac_config_headers"; then
22546  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22547fi
22548
22549if test -n "$ac_config_links"; then
22550  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22551fi
22552
22553if test -n "$ac_config_commands"; then
22554  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22555fi
22556
22557cat >>$CONFIG_STATUS <<\_ACEOF
22558
22559ac_cs_usage="\
22560\`$as_me' instantiates files from templates according to the
22561current configuration.
22562
22563Usage: $0 [OPTIONS] [FILE]...
22564
22565  -h, --help       print this help, then exit
22566  -V, --version    print version number, then exit
22567  -q, --quiet      do not print progress messages
22568  -d, --debug      don't remove temporary files
22569      --recheck    update $as_me by reconfiguring in the same conditions
22570  --file=FILE[:TEMPLATE]
22571		   instantiate the configuration file FILE
22572  --header=FILE[:TEMPLATE]
22573		   instantiate the configuration header FILE
22574
22575Configuration files:
22576$config_files
22577
22578Configuration headers:
22579$config_headers
22580
22581Configuration commands:
22582$config_commands
22583
22584Report bugs to <bug-autoconf@gnu.org>."
22585_ACEOF
22586
22587cat >>$CONFIG_STATUS <<_ACEOF
22588ac_cs_version="\\
22589config.status
22590configured by $0, generated by GNU Autoconf 2.59,
22591  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22592
22593Copyright (C) 2003 Free Software Foundation, Inc.
22594This config.status script is free software; the Free Software Foundation
22595gives unlimited permission to copy, distribute and modify it."
22596srcdir=$srcdir
22597INSTALL="$INSTALL"
22598_ACEOF
22599
22600cat >>$CONFIG_STATUS <<\_ACEOF
22601# If no file are specified by the user, then we need to provide default
22602# value.  By we need to know if files were specified by the user.
22603ac_need_defaults=:
22604while test $# != 0
22605do
22606  case $1 in
22607  --*=*)
22608    ac_option=`expr "x$1" : 'x\([^=]*\)='`
22609    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22610    ac_shift=:
22611    ;;
22612  -*)
22613    ac_option=$1
22614    ac_optarg=$2
22615    ac_shift=shift
22616    ;;
22617  *) # This is not an option, so the user has probably given explicit
22618     # arguments.
22619     ac_option=$1
22620     ac_need_defaults=false;;
22621  esac
22622
22623  case $ac_option in
22624  # Handling of the options.
22625_ACEOF
22626cat >>$CONFIG_STATUS <<\_ACEOF
22627  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22628    ac_cs_recheck=: ;;
22629  --version | --vers* | -V )
22630    echo "$ac_cs_version"; exit 0 ;;
22631  --he | --h)
22632    # Conflict between --help and --header
22633    { { echo "$as_me:$LINENO: error: ambiguous option: $1
22634Try \`$0 --help' for more information." >&5
22635echo "$as_me: error: ambiguous option: $1
22636Try \`$0 --help' for more information." >&2;}
22637   { (exit 1); exit 1; }; };;
22638  --help | --hel | -h )
22639    echo "$ac_cs_usage"; exit 0 ;;
22640  --debug | --d* | -d )
22641    debug=: ;;
22642  --file | --fil | --fi | --f )
22643    $ac_shift
22644    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22645    ac_need_defaults=false;;
22646  --header | --heade | --head | --hea )
22647    $ac_shift
22648    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22649    ac_need_defaults=false;;
22650  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22651  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22652    ac_cs_silent=: ;;
22653
22654  # This is an error.
22655  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22656Try \`$0 --help' for more information." >&5
22657echo "$as_me: error: unrecognized option: $1
22658Try \`$0 --help' for more information." >&2;}
22659   { (exit 1); exit 1; }; } ;;
22660
22661  *) ac_config_targets="$ac_config_targets $1" ;;
22662
22663  esac
22664  shift
22665done
22666
22667ac_configure_extra_args=
22668
22669if $ac_cs_silent; then
22670  exec 6>/dev/null
22671  ac_configure_extra_args="$ac_configure_extra_args --silent"
22672fi
22673
22674_ACEOF
22675cat >>$CONFIG_STATUS <<_ACEOF
22676if \$ac_cs_recheck; then
22677  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22678  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22679fi
22680
22681_ACEOF
22682
22683cat >>$CONFIG_STATUS <<_ACEOF
22684#
22685# INIT-COMMANDS section.
22686#
22687
22688AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22689
22690_ACEOF
22691
22692
22693
22694cat >>$CONFIG_STATUS <<\_ACEOF
22695for ac_config_target in $ac_config_targets
22696do
22697  case "$ac_config_target" in
22698  # Handling of arguments.
22699  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22700  "default_plugin/Makefile" ) CONFIG_FILES="$CONFIG_FILES default_plugin/Makefile" ;;
22701  "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
22702  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22703  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22704  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22705echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22706   { (exit 1); exit 1; }; };;
22707  esac
22708done
22709
22710# If the user did not use the arguments to specify the items to instantiate,
22711# then the envvar interface is used.  Set only those that are not.
22712# We use the long form for the default assignment because of an extremely
22713# bizarre bug on SunOS 4.1.3.
22714if $ac_need_defaults; then
22715  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22716  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22717  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22718fi
22719
22720# Have a temporary directory for convenience.  Make it in the build tree
22721# simply because there is no reason to put it here, and in addition,
22722# creating and moving files from /tmp can sometimes cause problems.
22723# Create a temporary directory, and hook for its removal unless debugging.
22724$debug ||
22725{
22726  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22727  trap '{ (exit 1); exit 1; }' 1 2 13 15
22728}
22729
22730# Create a (secure) tmp directory for tmp files.
22731
22732{
22733  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22734  test -n "$tmp" && test -d "$tmp"
22735}  ||
22736{
22737  tmp=./confstat$$-$RANDOM
22738  (umask 077 && mkdir $tmp)
22739} ||
22740{
22741   echo "$me: cannot create a temporary directory in ." >&2
22742   { (exit 1); exit 1; }
22743}
22744
22745_ACEOF
22746
22747cat >>$CONFIG_STATUS <<_ACEOF
22748
22749#
22750# CONFIG_FILES section.
22751#
22752
22753# No need to generate the scripts if there are no CONFIG_FILES.
22754# This happens for instance when ./config.status config.h
22755if test -n "\$CONFIG_FILES"; then
22756  # Protect against being on the right side of a sed subst in config.status.
22757  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22758   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22759s,@SHELL@,$SHELL,;t t
22760s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22761s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22762s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22763s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22764s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22765s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22766s,@exec_prefix@,$exec_prefix,;t t
22767s,@prefix@,$prefix,;t t
22768s,@program_transform_name@,$program_transform_name,;t t
22769s,@bindir@,$bindir,;t t
22770s,@sbindir@,$sbindir,;t t
22771s,@libexecdir@,$libexecdir,;t t
22772s,@datadir@,$datadir,;t t
22773s,@sysconfdir@,$sysconfdir,;t t
22774s,@sharedstatedir@,$sharedstatedir,;t t
22775s,@localstatedir@,$localstatedir,;t t
22776s,@libdir@,$libdir,;t t
22777s,@includedir@,$includedir,;t t
22778s,@oldincludedir@,$oldincludedir,;t t
22779s,@infodir@,$infodir,;t t
22780s,@mandir@,$mandir,;t t
22781s,@build_alias@,$build_alias,;t t
22782s,@host_alias@,$host_alias,;t t
22783s,@target_alias@,$target_alias,;t t
22784s,@DEFS@,$DEFS,;t t
22785s,@ECHO_C@,$ECHO_C,;t t
22786s,@ECHO_N@,$ECHO_N,;t t
22787s,@ECHO_T@,$ECHO_T,;t t
22788s,@LIBS@,$LIBS,;t t
22789s,@build@,$build,;t t
22790s,@build_cpu@,$build_cpu,;t t
22791s,@build_vendor@,$build_vendor,;t t
22792s,@build_os@,$build_os,;t t
22793s,@host@,$host,;t t
22794s,@host_cpu@,$host_cpu,;t t
22795s,@host_vendor@,$host_vendor,;t t
22796s,@host_os@,$host_os,;t t
22797s,@target@,$target,;t t
22798s,@target_cpu@,$target_cpu,;t t
22799s,@target_vendor@,$target_vendor,;t t
22800s,@target_os@,$target_os,;t t
22801s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22802s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22803s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22804s,@CYGPATH_W@,$CYGPATH_W,;t t
22805s,@PACKAGE@,$PACKAGE,;t t
22806s,@VERSION@,$VERSION,;t t
22807s,@ACLOCAL@,$ACLOCAL,;t t
22808s,@AUTOCONF@,$AUTOCONF,;t t
22809s,@AUTOMAKE@,$AUTOMAKE,;t t
22810s,@AUTOHEADER@,$AUTOHEADER,;t t
22811s,@MAKEINFO@,$MAKEINFO,;t t
22812s,@AMTAR@,$AMTAR,;t t
22813s,@install_sh@,$install_sh,;t t
22814s,@STRIP@,$STRIP,;t t
22815s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22816s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22817s,@mkdir_p@,$mkdir_p,;t t
22818s,@AWK@,$AWK,;t t
22819s,@SET_MAKE@,$SET_MAKE,;t t
22820s,@am__leading_dot@,$am__leading_dot,;t t
22821s,@CC@,$CC,;t t
22822s,@CFLAGS@,$CFLAGS,;t t
22823s,@LDFLAGS@,$LDFLAGS,;t t
22824s,@CPPFLAGS@,$CPPFLAGS,;t t
22825s,@ac_ct_CC@,$ac_ct_CC,;t t
22826s,@EXEEXT@,$EXEEXT,;t t
22827s,@OBJEXT@,$OBJEXT,;t t
22828s,@DEPDIR@,$DEPDIR,;t t
22829s,@am__include@,$am__include,;t t
22830s,@am__quote@,$am__quote,;t t
22831s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22832s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22833s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22834s,@CCDEPMODE@,$CCDEPMODE,;t t
22835s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22836s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22837s,@CPP@,$CPP,;t t
22838s,@CXX@,$CXX,;t t
22839s,@CXXFLAGS@,$CXXFLAGS,;t t
22840s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22841s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22842s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22843s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22844s,@WOVERLOADED_VIRTUAL@,$WOVERLOADED_VIRTUAL,;t t
22845s,@HAVE_GCC_VISIBILITY@,$HAVE_GCC_VISIBILITY,;t t
22846s,@unsermake_enable_pch_TRUE@,$unsermake_enable_pch_TRUE,;t t
22847s,@unsermake_enable_pch_FALSE@,$unsermake_enable_pch_FALSE,;t t
22848s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t
22849s,@USE_RTTI@,$USE_RTTI,;t t
22850s,@CXXCPP@,$CXXCPP,;t t
22851s,@NOOPT_CXXFLAGS@,$NOOPT_CXXFLAGS,;t t
22852s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t
22853s,@ENABLE_PERMISSIVE_FLAG@,$ENABLE_PERMISSIVE_FLAG,;t t
22854s,@LDFLAGS_AS_NEEDED@,$LDFLAGS_AS_NEEDED,;t t
22855s,@LDFLAGS_NEW_DTAGS@,$LDFLAGS_NEW_DTAGS,;t t
22856s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t
22857s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t
22858s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t
22859s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t
22860s,@KDE_NO_UNDEFINED@,$KDE_NO_UNDEFINED,;t t
22861s,@KDE_USE_NMCHECK_TRUE@,$KDE_USE_NMCHECK_TRUE,;t t
22862s,@KDE_USE_NMCHECK_FALSE@,$KDE_USE_NMCHECK_FALSE,;t t
22863s,@EGREP@,$EGREP,;t t
22864s,@LN_S@,$LN_S,;t t
22865s,@ECHO@,$ECHO,;t t
22866s,@AR@,$AR,;t t
22867s,@ac_ct_AR@,$ac_ct_AR,;t t
22868s,@RANLIB@,$RANLIB,;t t
22869s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22870s,@F77@,$F77,;t t
22871s,@FFLAGS@,$FFLAGS,;t t
22872s,@ac_ct_F77@,$ac_ct_F77,;t t
22873s,@LIBTOOL@,$LIBTOOL,;t t
22874s,@KDE_PLUGIN@,$KDE_PLUGIN,;t t
22875s,@KDE_CHECK_PLUGIN@,$KDE_CHECK_PLUGIN,;t t
22876s,@all_includes@,$all_includes,;t t
22877s,@all_libraries@,$all_libraries,;t t
22878s,@AUTODIRS@,$AUTODIRS,;t t
22879s,@INCLUDEDIR@,$INCLUDEDIR,;t t
22880s,@LIBLINEAK@,$LIBLINEAK,;t t
22881s,@PLUGINDIR@,$PLUGINDIR,;t t
22882s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t
22883s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
22884s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22885CEOF
22886
22887_ACEOF
22888
22889  cat >>$CONFIG_STATUS <<\_ACEOF
22890  # Split the substitutions into bite-sized pieces for seds with
22891  # small command number limits, like on Digital OSF/1 and HP-UX.
22892  ac_max_sed_lines=48
22893  ac_sed_frag=1 # Number of current file.
22894  ac_beg=1 # First line for current file.
22895  ac_end=$ac_max_sed_lines # Line after last line for current file.
22896  ac_more_lines=:
22897  ac_sed_cmds=
22898  while $ac_more_lines; do
22899    if test $ac_beg -gt 1; then
22900      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22901    else
22902      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22903    fi
22904    if test ! -s $tmp/subs.frag; then
22905      ac_more_lines=false
22906    else
22907      # The purpose of the label and of the branching condition is to
22908      # speed up the sed processing (if there are no `@' at all, there
22909      # is no need to browse any of the substitutions).
22910      # These are the two extra sed commands mentioned above.
22911      (echo ':t
22912  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22913      if test -z "$ac_sed_cmds"; then
22914	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22915      else
22916	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22917      fi
22918      ac_sed_frag=`expr $ac_sed_frag + 1`
22919      ac_beg=$ac_end
22920      ac_end=`expr $ac_end + $ac_max_sed_lines`
22921    fi
22922  done
22923  if test -z "$ac_sed_cmds"; then
22924    ac_sed_cmds=cat
22925  fi
22926fi # test -n "$CONFIG_FILES"
22927
22928_ACEOF
22929cat >>$CONFIG_STATUS <<\_ACEOF
22930for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22931  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22932  case $ac_file in
22933  - | *:- | *:-:* ) # input from stdin
22934	cat >$tmp/stdin
22935	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22936	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22937  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22938	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22939  * )   ac_file_in=$ac_file.in ;;
22940  esac
22941
22942  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22943  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22944$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22945	 X"$ac_file" : 'X\(//\)[^/]' \| \
22946	 X"$ac_file" : 'X\(//\)$' \| \
22947	 X"$ac_file" : 'X\(/\)' \| \
22948	 .     : '\(.\)' 2>/dev/null ||
22949echo X"$ac_file" |
22950    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22951  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22952  	  /^X\(\/\/\)$/{ s//\1/; q; }
22953  	  /^X\(\/\).*/{ s//\1/; q; }
22954  	  s/.*/./; q'`
22955  { if $as_mkdir_p; then
22956    mkdir -p "$ac_dir"
22957  else
22958    as_dir="$ac_dir"
22959    as_dirs=
22960    while test ! -d "$as_dir"; do
22961      as_dirs="$as_dir $as_dirs"
22962      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22963$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22964	 X"$as_dir" : 'X\(//\)[^/]' \| \
22965	 X"$as_dir" : 'X\(//\)$' \| \
22966	 X"$as_dir" : 'X\(/\)' \| \
22967	 .     : '\(.\)' 2>/dev/null ||
22968echo X"$as_dir" |
22969    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22970  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22971  	  /^X\(\/\/\)$/{ s//\1/; q; }
22972  	  /^X\(\/\).*/{ s//\1/; q; }
22973  	  s/.*/./; q'`
22974    done
22975    test ! -n "$as_dirs" || mkdir $as_dirs
22976  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22977echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22978   { (exit 1); exit 1; }; }; }
22979
22980  ac_builddir=.
22981
22982if test "$ac_dir" != .; then
22983  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22984  # A "../" for each directory in $ac_dir_suffix.
22985  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22986else
22987  ac_dir_suffix= ac_top_builddir=
22988fi
22989
22990case $srcdir in
22991  .)  # No --srcdir option.  We are building in place.
22992    ac_srcdir=.
22993    if test -z "$ac_top_builddir"; then
22994       ac_top_srcdir=.
22995    else
22996       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22997    fi ;;
22998  [\\/]* | ?:[\\/]* )  # Absolute path.
22999    ac_srcdir=$srcdir$ac_dir_suffix;
23000    ac_top_srcdir=$srcdir ;;
23001  *) # Relative path.
23002    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23003    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23004esac
23005
23006# Do not use `cd foo && pwd` to compute absolute paths, because
23007# the directories may not exist.
23008case `pwd` in
23009.) ac_abs_builddir="$ac_dir";;
23010*)
23011  case "$ac_dir" in
23012  .) ac_abs_builddir=`pwd`;;
23013  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23014  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23015  esac;;
23016esac
23017case $ac_abs_builddir in
23018.) ac_abs_top_builddir=${ac_top_builddir}.;;
23019*)
23020  case ${ac_top_builddir}. in
23021  .) ac_abs_top_builddir=$ac_abs_builddir;;
23022  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23023  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23024  esac;;
23025esac
23026case $ac_abs_builddir in
23027.) ac_abs_srcdir=$ac_srcdir;;
23028*)
23029  case $ac_srcdir in
23030  .) ac_abs_srcdir=$ac_abs_builddir;;
23031  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23032  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23033  esac;;
23034esac
23035case $ac_abs_builddir in
23036.) ac_abs_top_srcdir=$ac_top_srcdir;;
23037*)
23038  case $ac_top_srcdir in
23039  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23040  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23041  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23042  esac;;
23043esac
23044
23045
23046  case $INSTALL in
23047  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23048  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23049  esac
23050
23051  # Let's still pretend it is `configure' which instantiates (i.e., don't
23052  # use $as_me), people would be surprised to read:
23053  #    /* config.h.  Generated by config.status.  */
23054  if test x"$ac_file" = x-; then
23055    configure_input=
23056  else
23057    configure_input="$ac_file.  "
23058  fi
23059  configure_input=$configure_input"Generated from `echo $ac_file_in |
23060				     sed 's,.*/,,'` by configure."
23061
23062  # First look for the input files in the build tree, otherwise in the
23063  # src tree.
23064  ac_file_inputs=`IFS=:
23065    for f in $ac_file_in; do
23066      case $f in
23067      -) echo $tmp/stdin ;;
23068      [\\/$]*)
23069	 # Absolute (can't be DOS-style, as IFS=:)
23070	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23071echo "$as_me: error: cannot find input file: $f" >&2;}
23072   { (exit 1); exit 1; }; }
23073	 echo "$f";;
23074      *) # Relative
23075	 if test -f "$f"; then
23076	   # Build tree
23077	   echo "$f"
23078	 elif test -f "$srcdir/$f"; then
23079	   # Source tree
23080	   echo "$srcdir/$f"
23081	 else
23082	   # /dev/null tree
23083	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23084echo "$as_me: error: cannot find input file: $f" >&2;}
23085   { (exit 1); exit 1; }; }
23086	 fi;;
23087      esac
23088    done` || { (exit 1); exit 1; }
23089
23090  if test x"$ac_file" != x-; then
23091    { echo "$as_me:$LINENO: creating $ac_file" >&5
23092echo "$as_me: creating $ac_file" >&6;}
23093    rm -f "$ac_file"
23094  fi
23095_ACEOF
23096cat >>$CONFIG_STATUS <<_ACEOF
23097  sed "$ac_vpsub
23098$extrasub
23099_ACEOF
23100cat >>$CONFIG_STATUS <<\_ACEOF
23101:t
23102/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23103s,@configure_input@,$configure_input,;t t
23104s,@srcdir@,$ac_srcdir,;t t
23105s,@abs_srcdir@,$ac_abs_srcdir,;t t
23106s,@top_srcdir@,$ac_top_srcdir,;t t
23107s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23108s,@builddir@,$ac_builddir,;t t
23109s,@abs_builddir@,$ac_abs_builddir,;t t
23110s,@top_builddir@,$ac_top_builddir,;t t
23111s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23112s,@INSTALL@,$ac_INSTALL,;t t
23113" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23114  rm -f $tmp/stdin
23115  if test x"$ac_file" != x-; then
23116    mv $tmp/out $ac_file
23117  else
23118    cat $tmp/out
23119    rm -f $tmp/out
23120  fi
23121
23122done
23123_ACEOF
23124cat >>$CONFIG_STATUS <<\_ACEOF
23125
23126#
23127# CONFIG_HEADER section.
23128#
23129
23130# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23131# NAME is the cpp macro being defined and VALUE is the value it is being given.
23132#
23133# ac_d sets the value in "#define NAME VALUE" lines.
23134ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
23135ac_dB='[	 ].*$,\1#\2'
23136ac_dC=' '
23137ac_dD=',;t'
23138# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23139ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
23140ac_uB='$,\1#\2define\3'
23141ac_uC=' '
23142ac_uD=',;t'
23143
23144for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23145  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23146  case $ac_file in
23147  - | *:- | *:-:* ) # input from stdin
23148	cat >$tmp/stdin
23149	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23150	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23151  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23152	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23153  * )   ac_file_in=$ac_file.in ;;
23154  esac
23155
23156  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23157echo "$as_me: creating $ac_file" >&6;}
23158
23159  # First look for the input files in the build tree, otherwise in the
23160  # src tree.
23161  ac_file_inputs=`IFS=:
23162    for f in $ac_file_in; do
23163      case $f in
23164      -) echo $tmp/stdin ;;
23165      [\\/$]*)
23166	 # Absolute (can't be DOS-style, as IFS=:)
23167	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23168echo "$as_me: error: cannot find input file: $f" >&2;}
23169   { (exit 1); exit 1; }; }
23170	 # Do quote $f, to prevent DOS paths from being IFS'd.
23171	 echo "$f";;
23172      *) # Relative
23173	 if test -f "$f"; then
23174	   # Build tree
23175	   echo "$f"
23176	 elif test -f "$srcdir/$f"; then
23177	   # Source tree
23178	   echo "$srcdir/$f"
23179	 else
23180	   # /dev/null tree
23181	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23182echo "$as_me: error: cannot find input file: $f" >&2;}
23183   { (exit 1); exit 1; }; }
23184	 fi;;
23185      esac
23186    done` || { (exit 1); exit 1; }
23187  # Remove the trailing spaces.
23188  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
23189
23190_ACEOF
23191
23192# Transform confdefs.h into two sed scripts, `conftest.defines' and
23193# `conftest.undefs', that substitutes the proper values into
23194# config.h.in to produce config.h.  The first handles `#define'
23195# templates, and the second `#undef' templates.
23196# And first: Protect against being on the right side of a sed subst in
23197# config.status.  Protect against being in an unquoted here document
23198# in config.status.
23199rm -f conftest.defines conftest.undefs
23200# Using a here document instead of a string reduces the quoting nightmare.
23201# Putting comments in sed scripts is not portable.
23202#
23203# `end' is used to avoid that the second main sed command (meant for
23204# 0-ary CPP macros) applies to n-ary macro definitions.
23205# See the Autoconf documentation for `clear'.
23206cat >confdef2sed.sed <<\_ACEOF
23207s/[\\&,]/\\&/g
23208s,[\\$`],\\&,g
23209t clear
23210: clear
23211s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23212t end
23213s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23214: end
23215_ACEOF
23216# If some macros were called several times there might be several times
23217# the same #defines, which is useless.  Nevertheless, we may not want to
23218# sort them, since we want the *last* AC-DEFINE to be honored.
23219uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23220sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23221rm -f confdef2sed.sed
23222
23223# This sed command replaces #undef with comments.  This is necessary, for
23224# example, in the case of _POSIX_SOURCE, which is predefined and required
23225# on some systems where configure will not decide to define it.
23226cat >>conftest.undefs <<\_ACEOF
23227s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23228_ACEOF
23229
23230# Break up conftest.defines because some shells have a limit on the size
23231# of here documents, and old seds have small limits too (100 cmds).
23232echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23233echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23234echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23235echo '  :' >>$CONFIG_STATUS
23236rm -f conftest.tail
23237while grep . conftest.defines >/dev/null
23238do
23239  # Write a limited-size here document to $tmp/defines.sed.
23240  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23241  # Speed up: don't consider the non `#define' lines.
23242  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
23243  # Work around the forget-to-reset-the-flag bug.
23244  echo 't clr' >>$CONFIG_STATUS
23245  echo ': clr' >>$CONFIG_STATUS
23246  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23247  echo 'CEOF
23248  sed -f $tmp/defines.sed $tmp/in >$tmp/out
23249  rm -f $tmp/in
23250  mv $tmp/out $tmp/in
23251' >>$CONFIG_STATUS
23252  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23253  rm -f conftest.defines
23254  mv conftest.tail conftest.defines
23255done
23256rm -f conftest.defines
23257echo '  fi # grep' >>$CONFIG_STATUS
23258echo >>$CONFIG_STATUS
23259
23260# Break up conftest.undefs because some shells have a limit on the size
23261# of here documents, and old seds have small limits too (100 cmds).
23262echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23263rm -f conftest.tail
23264while grep . conftest.undefs >/dev/null
23265do
23266  # Write a limited-size here document to $tmp/undefs.sed.
23267  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23268  # Speed up: don't consider the non `#undef'
23269  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
23270  # Work around the forget-to-reset-the-flag bug.
23271  echo 't clr' >>$CONFIG_STATUS
23272  echo ': clr' >>$CONFIG_STATUS
23273  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23274  echo 'CEOF
23275  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23276  rm -f $tmp/in
23277  mv $tmp/out $tmp/in
23278' >>$CONFIG_STATUS
23279  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23280  rm -f conftest.undefs
23281  mv conftest.tail conftest.undefs
23282done
23283rm -f conftest.undefs
23284
23285cat >>$CONFIG_STATUS <<\_ACEOF
23286  # Let's still pretend it is `configure' which instantiates (i.e., don't
23287  # use $as_me), people would be surprised to read:
23288  #    /* config.h.  Generated by config.status.  */
23289  if test x"$ac_file" = x-; then
23290    echo "/* Generated by configure.  */" >$tmp/config.h
23291  else
23292    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23293  fi
23294  cat $tmp/in >>$tmp/config.h
23295  rm -f $tmp/in
23296  if test x"$ac_file" != x-; then
23297    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23298      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23299echo "$as_me: $ac_file is unchanged" >&6;}
23300    else
23301      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23302$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23303	 X"$ac_file" : 'X\(//\)[^/]' \| \
23304	 X"$ac_file" : 'X\(//\)$' \| \
23305	 X"$ac_file" : 'X\(/\)' \| \
23306	 .     : '\(.\)' 2>/dev/null ||
23307echo X"$ac_file" |
23308    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23309  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23310  	  /^X\(\/\/\)$/{ s//\1/; q; }
23311  	  /^X\(\/\).*/{ s//\1/; q; }
23312  	  s/.*/./; q'`
23313      { if $as_mkdir_p; then
23314    mkdir -p "$ac_dir"
23315  else
23316    as_dir="$ac_dir"
23317    as_dirs=
23318    while test ! -d "$as_dir"; do
23319      as_dirs="$as_dir $as_dirs"
23320      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23321$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23322	 X"$as_dir" : 'X\(//\)[^/]' \| \
23323	 X"$as_dir" : 'X\(//\)$' \| \
23324	 X"$as_dir" : 'X\(/\)' \| \
23325	 .     : '\(.\)' 2>/dev/null ||
23326echo X"$as_dir" |
23327    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23328  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23329  	  /^X\(\/\/\)$/{ s//\1/; q; }
23330  	  /^X\(\/\).*/{ s//\1/; q; }
23331  	  s/.*/./; q'`
23332    done
23333    test ! -n "$as_dirs" || mkdir $as_dirs
23334  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23335echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23336   { (exit 1); exit 1; }; }; }
23337
23338      rm -f $ac_file
23339      mv $tmp/config.h $ac_file
23340    fi
23341  else
23342    cat $tmp/config.h
23343    rm -f $tmp/config.h
23344  fi
23345# Compute $ac_file's index in $config_headers.
23346_am_stamp_count=1
23347for _am_header in $config_headers :; do
23348  case $_am_header in
23349    $ac_file | $ac_file:* )
23350      break ;;
23351    * )
23352      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23353  esac
23354done
23355echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23356$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23357	 X$ac_file : 'X\(//\)[^/]' \| \
23358	 X$ac_file : 'X\(//\)$' \| \
23359	 X$ac_file : 'X\(/\)' \| \
23360	 .     : '\(.\)' 2>/dev/null ||
23361echo X$ac_file |
23362    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23363  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23364  	  /^X\(\/\/\)$/{ s//\1/; q; }
23365  	  /^X\(\/\).*/{ s//\1/; q; }
23366  	  s/.*/./; q'`/stamp-h$_am_stamp_count
23367done
23368_ACEOF
23369cat >>$CONFIG_STATUS <<\_ACEOF
23370
23371#
23372# CONFIG_COMMANDS section.
23373#
23374for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23375  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23376  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23377  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23378$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23379	 X"$ac_dest" : 'X\(//\)[^/]' \| \
23380	 X"$ac_dest" : 'X\(//\)$' \| \
23381	 X"$ac_dest" : 'X\(/\)' \| \
23382	 .     : '\(.\)' 2>/dev/null ||
23383echo X"$ac_dest" |
23384    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23385  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23386  	  /^X\(\/\/\)$/{ s//\1/; q; }
23387  	  /^X\(\/\).*/{ s//\1/; q; }
23388  	  s/.*/./; q'`
23389  { if $as_mkdir_p; then
23390    mkdir -p "$ac_dir"
23391  else
23392    as_dir="$ac_dir"
23393    as_dirs=
23394    while test ! -d "$as_dir"; do
23395      as_dirs="$as_dir $as_dirs"
23396      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23397$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23398	 X"$as_dir" : 'X\(//\)[^/]' \| \
23399	 X"$as_dir" : 'X\(//\)$' \| \
23400	 X"$as_dir" : 'X\(/\)' \| \
23401	 .     : '\(.\)' 2>/dev/null ||
23402echo X"$as_dir" |
23403    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23404  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23405  	  /^X\(\/\/\)$/{ s//\1/; q; }
23406  	  /^X\(\/\).*/{ s//\1/; q; }
23407  	  s/.*/./; q'`
23408    done
23409    test ! -n "$as_dirs" || mkdir $as_dirs
23410  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23411echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23412   { (exit 1); exit 1; }; }; }
23413
23414  ac_builddir=.
23415
23416if test "$ac_dir" != .; then
23417  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23418  # A "../" for each directory in $ac_dir_suffix.
23419  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23420else
23421  ac_dir_suffix= ac_top_builddir=
23422fi
23423
23424case $srcdir in
23425  .)  # No --srcdir option.  We are building in place.
23426    ac_srcdir=.
23427    if test -z "$ac_top_builddir"; then
23428       ac_top_srcdir=.
23429    else
23430       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23431    fi ;;
23432  [\\/]* | ?:[\\/]* )  # Absolute path.
23433    ac_srcdir=$srcdir$ac_dir_suffix;
23434    ac_top_srcdir=$srcdir ;;
23435  *) # Relative path.
23436    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23437    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23438esac
23439
23440# Do not use `cd foo && pwd` to compute absolute paths, because
23441# the directories may not exist.
23442case `pwd` in
23443.) ac_abs_builddir="$ac_dir";;
23444*)
23445  case "$ac_dir" in
23446  .) ac_abs_builddir=`pwd`;;
23447  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23448  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23449  esac;;
23450esac
23451case $ac_abs_builddir in
23452.) ac_abs_top_builddir=${ac_top_builddir}.;;
23453*)
23454  case ${ac_top_builddir}. in
23455  .) ac_abs_top_builddir=$ac_abs_builddir;;
23456  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23457  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23458  esac;;
23459esac
23460case $ac_abs_builddir in
23461.) ac_abs_srcdir=$ac_srcdir;;
23462*)
23463  case $ac_srcdir in
23464  .) ac_abs_srcdir=$ac_abs_builddir;;
23465  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23466  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23467  esac;;
23468esac
23469case $ac_abs_builddir in
23470.) ac_abs_top_srcdir=$ac_top_srcdir;;
23471*)
23472  case $ac_top_srcdir in
23473  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23474  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23475  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23476  esac;;
23477esac
23478
23479
23480  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23481echo "$as_me: executing $ac_dest commands" >&6;}
23482  case $ac_dest in
23483    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23484  # Strip MF so we end up with the name of the file.
23485  mf=`echo "$mf" | sed -e 's/:.*$//'`
23486  # Check whether this is an Automake generated Makefile or not.
23487  # We used to match only the files named `Makefile.in', but
23488  # some people rename them; so instead we look at the file content.
23489  # Grep'ing the first line is not enough: some people post-process
23490  # each Makefile.in and add a new line on top of each file to say so.
23491  # So let's grep whole file.
23492  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23493    dirpart=`(dirname "$mf") 2>/dev/null ||
23494$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23495	 X"$mf" : 'X\(//\)[^/]' \| \
23496	 X"$mf" : 'X\(//\)$' \| \
23497	 X"$mf" : 'X\(/\)' \| \
23498	 .     : '\(.\)' 2>/dev/null ||
23499echo X"$mf" |
23500    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23501  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23502  	  /^X\(\/\/\)$/{ s//\1/; q; }
23503  	  /^X\(\/\).*/{ s//\1/; q; }
23504  	  s/.*/./; q'`
23505  else
23506    continue
23507  fi
23508  grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue
23509  # Extract the definition of DEP_FILES from the Makefile without
23510  # running `make'.
23511  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23512  test -z "$DEPDIR" && continue
23513  # When using ansi2knr, U may be empty or an underscore; expand it
23514  U=`sed -n 's/^U = //p' < "$mf"`
23515  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23516  # We invoke sed twice because it is the simplest approach to
23517  # changing $(DEPDIR) to its actual value in the expansion.
23518  for file in `sed -n '
23519    /^DEP_FILES = .*\\\\$/ {
23520      s/^DEP_FILES = //
23521      :loop
23522	s/\\\\$//
23523	p
23524	n
23525	/\\\\$/ b loop
23526      p
23527    }
23528    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23529       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23530    # Make sure the directory exists.
23531    test -f "$dirpart/$file" && continue
23532    fdir=`(dirname "$file") 2>/dev/null ||
23533$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23534	 X"$file" : 'X\(//\)[^/]' \| \
23535	 X"$file" : 'X\(//\)$' \| \
23536	 X"$file" : 'X\(/\)' \| \
23537	 .     : '\(.\)' 2>/dev/null ||
23538echo X"$file" |
23539    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23540  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23541  	  /^X\(\/\/\)$/{ s//\1/; q; }
23542  	  /^X\(\/\).*/{ s//\1/; q; }
23543  	  s/.*/./; q'`
23544    { if $as_mkdir_p; then
23545    mkdir -p $dirpart/$fdir
23546  else
23547    as_dir=$dirpart/$fdir
23548    as_dirs=
23549    while test ! -d "$as_dir"; do
23550      as_dirs="$as_dir $as_dirs"
23551      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23552$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23553	 X"$as_dir" : 'X\(//\)[^/]' \| \
23554	 X"$as_dir" : 'X\(//\)$' \| \
23555	 X"$as_dir" : 'X\(/\)' \| \
23556	 .     : '\(.\)' 2>/dev/null ||
23557echo X"$as_dir" |
23558    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23559  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23560  	  /^X\(\/\/\)$/{ s//\1/; q; }
23561  	  /^X\(\/\).*/{ s//\1/; q; }
23562  	  s/.*/./; q'`
23563    done
23564    test ! -n "$as_dirs" || mkdir $as_dirs
23565  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23566echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23567   { (exit 1); exit 1; }; }; }
23568
23569    # echo "creating $dirpart/$file"
23570    echo '# dummy' > "$dirpart/$file"
23571  done
23572done
23573 ;;
23574  esac
23575done
23576_ACEOF
23577
23578cat >>$CONFIG_STATUS <<\_ACEOF
23579
23580{ (exit 0); exit 0; }
23581_ACEOF
23582chmod +x $CONFIG_STATUS
23583ac_clean_files=$ac_clean_files_save
23584
23585
23586# configure is writing to config.log, and then calls config.status.
23587# config.status does its own redirection, appending to config.log.
23588# Unfortunately, on DOS this fails, as config.log is still kept open
23589# by configure, so config.status won't be able to write to it; its
23590# output is simply discarded.  So we exec the FD to /dev/null,
23591# effectively closing config.log, so it can be properly (re)opened and
23592# appended to by config.status.  When coming back to configure, we
23593# need to make the FD available again.
23594if test "$no_create" != yes; then
23595  ac_cs_success=:
23596  ac_config_status_args=
23597  test "$silent" = yes &&
23598    ac_config_status_args="$ac_config_status_args --quiet"
23599  exec 5>/dev/null
23600  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23601  exec 5>>config.log
23602  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23603  # would make configure fail if this is the last instruction.
23604  $ac_cs_success || { (exit 1); exit 1; }
23605fi
23606
23607# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
23608if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
23609  # And if so, warn when they don't match
23610  if test "$kde_libs_prefix" != "$given_prefix"; then
23611    # And if kde doesn't know about the prefix yet
23612    echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
23613    if test $? -ne 0; then
23614      echo ""
23615      echo "Warning: you chose to install this package in $given_prefix,"
23616      echo "but KDE was found in $kde_libs_prefix."
23617      echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
23618      echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
23619      echo "Then restart KDE."
23620      echo ""
23621    fi
23622  fi
23623fi
23624
23625if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then
23626  echo ""
23627  echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
23628  echo "was not included. Therefore, GCC symbol visibility support remains disabled."
23629  echo ""
23630  echo "For better performance, consider including the Qt visibility supporting patch"
23631  echo "located at:"
23632  echo ""
23633  echo "http://bugs.kde.org/show_bug.cgi?id=109386"
23634  echo ""
23635  echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
23636  echo "everything will continue to work just fine without it."
23637  echo ""
23638fi
23639
23640if test "$all_tests" = "bad"; then
23641  if test ! "$cache_file" = "/dev/null"; then
23642    echo ""
23643    echo "Please remove the file $cache_file after changing your setup"
23644    echo "so that configure will find the changes next time."
23645    echo ""
23646  fi
23647else
23648  echo ""
23649  echo "Good - your configure finished. Start make now"
23650  echo ""
23651fi
23652