configure revision 9bd41f2c
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for xf86-input-vmmouse 12.5.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560  # Remove one level of quotation (which was required for Make).
561  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562  ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567  # Discard the --no-reexec flag, and continue.
568  shift
569elif test "X$1" = X--fallback-echo; then
570  # Avoid inline document here, it may be left over
571  :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573  # Yippee, $echo works!
574  :
575else
576  # Restart under the correct shell.
577  exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581  # used as fallback echo
582  shift
583  cat <<EOF
584$*
585EOF
586  exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599       echo_test_string=`eval $cmd` &&
600       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601    then
602      break
603    fi
604  done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609   test "X$echo_testing_string" = "X$echo_test_string"; then
610  :
611else
612  # The Solaris, AIX, and Digital Unix default echo programs unquote
613  # backslashes.  This makes it impossible to quote backslashes using
614  #   echo "$something" | sed 's/\\/\\\\/g'
615  #
616  # So, first we look for a working echo in the user's PATH.
617
618  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619  for dir in $PATH /usr/ucb; do
620    IFS="$lt_save_ifs"
621    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624       test "X$echo_testing_string" = "X$echo_test_string"; then
625      echo="$dir/echo"
626      break
627    fi
628  done
629  IFS="$lt_save_ifs"
630
631  if test "X$echo" = Xecho; then
632    # We didn't find a better echo, so look for alternatives.
633    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635       test "X$echo_testing_string" = "X$echo_test_string"; then
636      # This shell has a builtin print -r that does the trick.
637      echo='print -r'
638    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639	 test "X$CONFIG_SHELL" != X/bin/ksh; then
640      # If we have ksh, try running configure again with it.
641      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642      export ORIGINAL_CONFIG_SHELL
643      CONFIG_SHELL=/bin/ksh
644      export CONFIG_SHELL
645      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646    else
647      # Try using printf.
648      echo='printf %s\n'
649      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651	 test "X$echo_testing_string" = "X$echo_test_string"; then
652	# Cool, printf works
653	:
654      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655	   test "X$echo_testing_string" = 'X\t' &&
656	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657	   test "X$echo_testing_string" = "X$echo_test_string"; then
658	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659	export CONFIG_SHELL
660	SHELL="$CONFIG_SHELL"
661	export SHELL
662	echo="$CONFIG_SHELL $0 --fallback-echo"
663      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664	   test "X$echo_testing_string" = 'X\t' &&
665	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666	   test "X$echo_testing_string" = "X$echo_test_string"; then
667	echo="$CONFIG_SHELL $0 --fallback-echo"
668      else
669	# maybe with a smaller string...
670	prev=:
671
672	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674	  then
675	    break
676	  fi
677	  prev="$cmd"
678	done
679
680	if test "$prev" != 'sed 50q "$0"'; then
681	  echo_test_string=`eval $prev`
682	  export echo_test_string
683	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684	else
685	  # Oops.  We lost completely, so just stick with echo.
686	  echo=echo
687	fi
688      fi
689    fi
690  fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
708exec 7<&0 </dev/null 6>&1
709
710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
719ac_clean_files=
720ac_config_libobj_dir=.
721LIBOBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='xf86-input-vmmouse'
730PACKAGE_TARNAME='xf86-input-vmmouse'
731PACKAGE_VERSION='12.5.0'
732PACKAGE_STRING='xf86-input-vmmouse 12.5.0'
733PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
734
735ac_unique_file="Makefile.am"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
739#ifdef HAVE_SYS_TYPES_H
740# include <sys/types.h>
741#endif
742#ifdef HAVE_SYS_STAT_H
743# include <sys/stat.h>
744#endif
745#ifdef STDC_HEADERS
746# include <stdlib.h>
747# include <stddef.h>
748#else
749# ifdef HAVE_STDLIB_H
750#  include <stdlib.h>
751# endif
752#endif
753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755#  include <memory.h>
756# endif
757# include <string.h>
758#endif
759#ifdef HAVE_STRINGS_H
760# include <strings.h>
761#endif
762#ifdef HAVE_INTTYPES_H
763# include <inttypes.h>
764#endif
765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
769# include <unistd.h>
770#endif"
771
772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
812am__isrc
813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821install_sh
822STRIP
823INSTALL_STRIP_PROGRAM
824mkdir_p
825AWK
826SET_MAKE
827am__leading_dot
828AMTAR
829am__tar
830am__untar
831MAINTAINER_MODE_TRUE
832MAINTAINER_MODE_FALSE
833MAINT
834DRIVER_NAME
835build
836build_cpu
837build_vendor
838build_os
839host
840host_cpu
841host_vendor
842host_os
843CC
844CFLAGS
845LDFLAGS
846CPPFLAGS
847ac_ct_CC
848EXEEXT
849OBJEXT
850DEPDIR
851am__include
852am__quote
853AMDEP_TRUE
854AMDEP_FALSE
855AMDEPBACKSLASH
856CCDEPMODE
857am__fastdepCC_TRUE
858am__fastdepCC_FALSE
859SED
860GREP
861EGREP
862LN_S
863ECHO
864AR
865RANLIB
866CPP
867CXX
868CXXFLAGS
869ac_ct_CXX
870CXXDEPMODE
871am__fastdepCXX_TRUE
872am__fastdepCXX_FALSE
873CXXCPP
874F77
875FFLAGS
876ac_ct_F77
877LIBTOOL
878inputdir
879PKG_CONFIG
880XORG_CFLAGS
881XORG_LIBS
882APP_MAN_SUFFIX
883LIB_MAN_SUFFIX
884FILE_MAN_SUFFIX
885MISC_MAN_SUFFIX
886DRIVER_MAN_SUFFIX
887ADMIN_MAN_SUFFIX
888APP_MAN_DIR
889LIB_MAN_DIR
890FILE_MAN_DIR
891MISC_MAN_DIR
892DRIVER_MAN_DIR
893ADMIN_MAN_DIR
894LIBOBJS
895LTLIBOBJS'
896ac_subst_files=''
897      ac_precious_vars='build_alias
898host_alias
899target_alias
900CC
901CFLAGS
902LDFLAGS
903LIBS
904CPPFLAGS
905CPP
906CXX
907CXXFLAGS
908CCC
909CXXCPP
910F77
911FFLAGS
912PKG_CONFIG
913XORG_CFLAGS
914XORG_LIBS'
915
916
917# Initialize some variables set by options.
918ac_init_help=
919ac_init_version=false
920# The variables have the same names as the options, with
921# dashes changed to underlines.
922cache_file=/dev/null
923exec_prefix=NONE
924no_create=
925no_recursion=
926prefix=NONE
927program_prefix=NONE
928program_suffix=NONE
929program_transform_name=s,x,x,
930silent=
931site=
932srcdir=
933verbose=
934x_includes=NONE
935x_libraries=NONE
936
937# Installation directory options.
938# These are left unexpanded so users can "make install exec_prefix=/foo"
939# and all the variables that are supposed to be based on exec_prefix
940# by default will actually change.
941# Use braces instead of parens because sh, perl, etc. also accept them.
942# (The list follows the same order as the GNU Coding Standards.)
943bindir='${exec_prefix}/bin'
944sbindir='${exec_prefix}/sbin'
945libexecdir='${exec_prefix}/libexec'
946datarootdir='${prefix}/share'
947datadir='${datarootdir}'
948sysconfdir='${prefix}/etc'
949sharedstatedir='${prefix}/com'
950localstatedir='${prefix}/var'
951includedir='${prefix}/include'
952oldincludedir='/usr/include'
953docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
954infodir='${datarootdir}/info'
955htmldir='${docdir}'
956dvidir='${docdir}'
957pdfdir='${docdir}'
958psdir='${docdir}'
959libdir='${exec_prefix}/lib'
960localedir='${datarootdir}/locale'
961mandir='${datarootdir}/man'
962
963ac_prev=
964ac_dashdash=
965for ac_option
966do
967  # If the previous option needs an argument, assign it.
968  if test -n "$ac_prev"; then
969    eval $ac_prev=\$ac_option
970    ac_prev=
971    continue
972  fi
973
974  case $ac_option in
975  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976  *)	ac_optarg=yes ;;
977  esac
978
979  # Accept the important Cygnus configure options, so we can diagnose typos.
980
981  case $ac_dashdash$ac_option in
982  --)
983    ac_dashdash=yes ;;
984
985  -bindir | --bindir | --bindi | --bind | --bin | --bi)
986    ac_prev=bindir ;;
987  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988    bindir=$ac_optarg ;;
989
990  -build | --build | --buil | --bui | --bu)
991    ac_prev=build_alias ;;
992  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
993    build_alias=$ac_optarg ;;
994
995  -cache-file | --cache-file | --cache-fil | --cache-fi \
996  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997    ac_prev=cache_file ;;
998  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1000    cache_file=$ac_optarg ;;
1001
1002  --config-cache | -C)
1003    cache_file=config.cache ;;
1004
1005  -datadir | --datadir | --datadi | --datad)
1006    ac_prev=datadir ;;
1007  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1008    datadir=$ac_optarg ;;
1009
1010  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011  | --dataroo | --dataro | --datar)
1012    ac_prev=datarootdir ;;
1013  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015    datarootdir=$ac_optarg ;;
1016
1017  -disable-* | --disable-*)
1018    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019    # Reject names that are not valid shell variable names.
1020    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1022   { (exit 1); exit 1; }; }
1023    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1024    eval enable_$ac_feature=no ;;
1025
1026  -docdir | --docdir | --docdi | --doc | --do)
1027    ac_prev=docdir ;;
1028  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029    docdir=$ac_optarg ;;
1030
1031  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032    ac_prev=dvidir ;;
1033  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034    dvidir=$ac_optarg ;;
1035
1036  -enable-* | --enable-*)
1037    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038    # Reject names that are not valid shell variable names.
1039    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1040      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1041   { (exit 1); exit 1; }; }
1042    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1043    eval enable_$ac_feature=\$ac_optarg ;;
1044
1045  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047  | --exec | --exe | --ex)
1048    ac_prev=exec_prefix ;;
1049  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051  | --exec=* | --exe=* | --ex=*)
1052    exec_prefix=$ac_optarg ;;
1053
1054  -gas | --gas | --ga | --g)
1055    # Obsolete; use --with-gas.
1056    with_gas=yes ;;
1057
1058  -help | --help | --hel | --he | -h)
1059    ac_init_help=long ;;
1060  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061    ac_init_help=recursive ;;
1062  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063    ac_init_help=short ;;
1064
1065  -host | --host | --hos | --ho)
1066    ac_prev=host_alias ;;
1067  -host=* | --host=* | --hos=* | --ho=*)
1068    host_alias=$ac_optarg ;;
1069
1070  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071    ac_prev=htmldir ;;
1072  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073  | --ht=*)
1074    htmldir=$ac_optarg ;;
1075
1076  -includedir | --includedir | --includedi | --included | --include \
1077  | --includ | --inclu | --incl | --inc)
1078    ac_prev=includedir ;;
1079  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080  | --includ=* | --inclu=* | --incl=* | --inc=*)
1081    includedir=$ac_optarg ;;
1082
1083  -infodir | --infodir | --infodi | --infod | --info | --inf)
1084    ac_prev=infodir ;;
1085  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086    infodir=$ac_optarg ;;
1087
1088  -libdir | --libdir | --libdi | --libd)
1089    ac_prev=libdir ;;
1090  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091    libdir=$ac_optarg ;;
1092
1093  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094  | --libexe | --libex | --libe)
1095    ac_prev=libexecdir ;;
1096  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097  | --libexe=* | --libex=* | --libe=*)
1098    libexecdir=$ac_optarg ;;
1099
1100  -localedir | --localedir | --localedi | --localed | --locale)
1101    ac_prev=localedir ;;
1102  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103    localedir=$ac_optarg ;;
1104
1105  -localstatedir | --localstatedir | --localstatedi | --localstated \
1106  | --localstate | --localstat | --localsta | --localst | --locals)
1107    ac_prev=localstatedir ;;
1108  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110    localstatedir=$ac_optarg ;;
1111
1112  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113    ac_prev=mandir ;;
1114  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115    mandir=$ac_optarg ;;
1116
1117  -nfp | --nfp | --nf)
1118    # Obsolete; use --without-fp.
1119    with_fp=no ;;
1120
1121  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122  | --no-cr | --no-c | -n)
1123    no_create=yes ;;
1124
1125  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127    no_recursion=yes ;;
1128
1129  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131  | --oldin | --oldi | --old | --ol | --o)
1132    ac_prev=oldincludedir ;;
1133  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136    oldincludedir=$ac_optarg ;;
1137
1138  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139    ac_prev=prefix ;;
1140  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141    prefix=$ac_optarg ;;
1142
1143  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144  | --program-pre | --program-pr | --program-p)
1145    ac_prev=program_prefix ;;
1146  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148    program_prefix=$ac_optarg ;;
1149
1150  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151  | --program-suf | --program-su | --program-s)
1152    ac_prev=program_suffix ;;
1153  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155    program_suffix=$ac_optarg ;;
1156
1157  -program-transform-name | --program-transform-name \
1158  | --program-transform-nam | --program-transform-na \
1159  | --program-transform-n | --program-transform- \
1160  | --program-transform | --program-transfor \
1161  | --program-transfo | --program-transf \
1162  | --program-trans | --program-tran \
1163  | --progr-tra | --program-tr | --program-t)
1164    ac_prev=program_transform_name ;;
1165  -program-transform-name=* | --program-transform-name=* \
1166  | --program-transform-nam=* | --program-transform-na=* \
1167  | --program-transform-n=* | --program-transform-=* \
1168  | --program-transform=* | --program-transfor=* \
1169  | --program-transfo=* | --program-transf=* \
1170  | --program-trans=* | --program-tran=* \
1171  | --progr-tra=* | --program-tr=* | --program-t=*)
1172    program_transform_name=$ac_optarg ;;
1173
1174  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175    ac_prev=pdfdir ;;
1176  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177    pdfdir=$ac_optarg ;;
1178
1179  -psdir | --psdir | --psdi | --psd | --ps)
1180    ac_prev=psdir ;;
1181  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182    psdir=$ac_optarg ;;
1183
1184  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185  | -silent | --silent | --silen | --sile | --sil)
1186    silent=yes ;;
1187
1188  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189    ac_prev=sbindir ;;
1190  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191  | --sbi=* | --sb=*)
1192    sbindir=$ac_optarg ;;
1193
1194  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196  | --sharedst | --shareds | --shared | --share | --shar \
1197  | --sha | --sh)
1198    ac_prev=sharedstatedir ;;
1199  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202  | --sha=* | --sh=*)
1203    sharedstatedir=$ac_optarg ;;
1204
1205  -site | --site | --sit)
1206    ac_prev=site ;;
1207  -site=* | --site=* | --sit=*)
1208    site=$ac_optarg ;;
1209
1210  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211    ac_prev=srcdir ;;
1212  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213    srcdir=$ac_optarg ;;
1214
1215  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216  | --syscon | --sysco | --sysc | --sys | --sy)
1217    ac_prev=sysconfdir ;;
1218  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220    sysconfdir=$ac_optarg ;;
1221
1222  -target | --target | --targe | --targ | --tar | --ta | --t)
1223    ac_prev=target_alias ;;
1224  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225    target_alias=$ac_optarg ;;
1226
1227  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228    verbose=yes ;;
1229
1230  -version | --version | --versio | --versi | --vers | -V)
1231    ac_init_version=: ;;
1232
1233  -with-* | --with-*)
1234    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235    # Reject names that are not valid shell variable names.
1236    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237      { echo "$as_me: error: invalid package name: $ac_package" >&2
1238   { (exit 1); exit 1; }; }
1239    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1240    eval with_$ac_package=\$ac_optarg ;;
1241
1242  -without-* | --without-*)
1243    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1244    # Reject names that are not valid shell variable names.
1245    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246      { echo "$as_me: error: invalid package name: $ac_package" >&2
1247   { (exit 1); exit 1; }; }
1248    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1249    eval with_$ac_package=no ;;
1250
1251  --x)
1252    # Obsolete; use --with-x.
1253    with_x=yes ;;
1254
1255  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256  | --x-incl | --x-inc | --x-in | --x-i)
1257    ac_prev=x_includes ;;
1258  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260    x_includes=$ac_optarg ;;
1261
1262  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264    ac_prev=x_libraries ;;
1265  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267    x_libraries=$ac_optarg ;;
1268
1269  -*) { echo "$as_me: error: unrecognized option: $ac_option
1270Try \`$0 --help' for more information." >&2
1271   { (exit 1); exit 1; }; }
1272    ;;
1273
1274  *=*)
1275    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276    # Reject names that are not valid shell variable names.
1277    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1278      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1279   { (exit 1); exit 1; }; }
1280    eval $ac_envvar=\$ac_optarg
1281    export $ac_envvar ;;
1282
1283  *)
1284    # FIXME: should be removed in autoconf 3.0.
1285    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1289    ;;
1290
1291  esac
1292done
1293
1294if test -n "$ac_prev"; then
1295  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296  { echo "$as_me: error: missing argument to $ac_option" >&2
1297   { (exit 1); exit 1; }; }
1298fi
1299
1300# Be sure to have absolute directory names.
1301for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302		datadir sysconfdir sharedstatedir localstatedir includedir \
1303		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304		libdir localedir mandir
1305do
1306  eval ac_val=\$$ac_var
1307  case $ac_val in
1308    [\\/$]* | ?:[\\/]* )  continue;;
1309    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310  esac
1311  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1312   { (exit 1); exit 1; }; }
1313done
1314
1315# There might be people who depend on the old broken behavior: `$host'
1316# used to hold the argument of --host etc.
1317# FIXME: To remove some day.
1318build=$build_alias
1319host=$host_alias
1320target=$target_alias
1321
1322# FIXME: To remove some day.
1323if test "x$host_alias" != x; then
1324  if test "x$build_alias" = x; then
1325    cross_compiling=maybe
1326    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1327    If a cross compiler is detected then cross compile mode will be used." >&2
1328  elif test "x$build_alias" != "x$host_alias"; then
1329    cross_compiling=yes
1330  fi
1331fi
1332
1333ac_tool_prefix=
1334test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336test "$silent" = yes && exec 6>/dev/null
1337
1338
1339ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340ac_ls_di=`ls -di .` &&
1341ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342  { echo "$as_me: error: Working directory cannot be determined" >&2
1343   { (exit 1); exit 1; }; }
1344test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345  { echo "$as_me: error: pwd does not report name of working directory" >&2
1346   { (exit 1); exit 1; }; }
1347
1348
1349# Find the source files, if location was not specified.
1350if test -z "$srcdir"; then
1351  ac_srcdir_defaulted=yes
1352  # Try the directory containing this script, then the parent directory.
1353  ac_confdir=`$as_dirname -- "$0" ||
1354$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355	 X"$0" : 'X\(//\)[^/]' \| \
1356	 X"$0" : 'X\(//\)$' \| \
1357	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1358echo X"$0" |
1359    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360	    s//\1/
1361	    q
1362	  }
1363	  /^X\(\/\/\)[^/].*/{
1364	    s//\1/
1365	    q
1366	  }
1367	  /^X\(\/\/\)$/{
1368	    s//\1/
1369	    q
1370	  }
1371	  /^X\(\/\).*/{
1372	    s//\1/
1373	    q
1374	  }
1375	  s/.*/./; q'`
1376  srcdir=$ac_confdir
1377  if test ! -r "$srcdir/$ac_unique_file"; then
1378    srcdir=..
1379  fi
1380else
1381  ac_srcdir_defaulted=no
1382fi
1383if test ! -r "$srcdir/$ac_unique_file"; then
1384  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1386   { (exit 1); exit 1; }; }
1387fi
1388ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389ac_abs_confdir=`(
1390	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1391   { (exit 1); exit 1; }; }
1392	pwd)`
1393# When building in place, set srcdir=.
1394if test "$ac_abs_confdir" = "$ac_pwd"; then
1395  srcdir=.
1396fi
1397# Remove unnecessary trailing slashes from srcdir.
1398# Double slashes in file names in object file debugging info
1399# mess up M-x gdb in Emacs.
1400case $srcdir in
1401*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402esac
1403for ac_var in $ac_precious_vars; do
1404  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405  eval ac_env_${ac_var}_value=\$${ac_var}
1406  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408done
1409
1410#
1411# Report the --help message.
1412#
1413if test "$ac_init_help" = "long"; then
1414  # Omit some internal or obsolete options to make the list less imposing.
1415  # This message is too long to be a string in the A/UX 3.1 sh.
1416  cat <<_ACEOF
1417\`configure' configures xf86-input-vmmouse 12.5.0 to adapt to many kinds of systems.
1418
1419Usage: $0 [OPTION]... [VAR=VALUE]...
1420
1421To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422VAR=VALUE.  See below for descriptions of some of the useful variables.
1423
1424Defaults for the options are specified in brackets.
1425
1426Configuration:
1427  -h, --help              display this help and exit
1428      --help=short        display options specific to this package
1429      --help=recursive    display the short help of all the included packages
1430  -V, --version           display version information and exit
1431  -q, --quiet, --silent   do not print \`checking...' messages
1432      --cache-file=FILE   cache test results in FILE [disabled]
1433  -C, --config-cache      alias for \`--cache-file=config.cache'
1434  -n, --no-create         do not create output files
1435      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1436
1437Installation directories:
1438  --prefix=PREFIX         install architecture-independent files in PREFIX
1439			  [$ac_default_prefix]
1440  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1441			  [PREFIX]
1442
1443By default, \`make install' will install all the files in
1444\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1445an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446for instance \`--prefix=\$HOME'.
1447
1448For better control, use the options below.
1449
1450Fine tuning of the installation directories:
1451  --bindir=DIR           user executables [EPREFIX/bin]
1452  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1453  --libexecdir=DIR       program executables [EPREFIX/libexec]
1454  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1455  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1456  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1457  --libdir=DIR           object code libraries [EPREFIX/lib]
1458  --includedir=DIR       C header files [PREFIX/include]
1459  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1460  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1461  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1462  --infodir=DIR          info documentation [DATAROOTDIR/info]
1463  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1464  --mandir=DIR           man documentation [DATAROOTDIR/man]
1465  --docdir=DIR           documentation root [DATAROOTDIR/doc/xf86-input-vmmouse]
1466  --htmldir=DIR          html documentation [DOCDIR]
1467  --dvidir=DIR           dvi documentation [DOCDIR]
1468  --pdfdir=DIR           pdf documentation [DOCDIR]
1469  --psdir=DIR            ps documentation [DOCDIR]
1470_ACEOF
1471
1472  cat <<\_ACEOF
1473
1474Program names:
1475  --program-prefix=PREFIX            prepend PREFIX to installed program names
1476  --program-suffix=SUFFIX            append SUFFIX to installed program names
1477  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1478
1479System types:
1480  --build=BUILD     configure for building on BUILD [guessed]
1481  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1482_ACEOF
1483fi
1484
1485if test -n "$ac_init_help"; then
1486  case $ac_init_help in
1487     short | recursive ) echo "Configuration of xf86-input-vmmouse 12.5.0:";;
1488   esac
1489  cat <<\_ACEOF
1490
1491Optional Features:
1492  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1493  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1494  --enable-maintainer-mode  enable make rules and dependencies not useful
1495			  (and sometimes confusing) to the casual installer
1496  --enable-static[=PKGS]  build static libraries [default=no]
1497  --enable-shared[=PKGS]  build shared libraries [default=yes]
1498  --enable-fast-install[=PKGS]
1499                          optimize for fast installation [default=yes]
1500  --disable-dependency-tracking  speeds up one-time build
1501  --enable-dependency-tracking   do not reject slow dependency extractors
1502  --disable-libtool-lock  avoid locking (might break parallel builds)
1503
1504Optional Packages:
1505  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1506  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1507  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1508  --with-pic              try to use only PIC/non-PIC objects [default=use
1509                          both]
1510  --with-tags[=TAGS]      include additional configurations [automatic]
1511  --with-xorg-module-dir=DIR
1512                          Default xorg module directory
1513                          [default=$libdir/xorg/modules]
1514  --with-release-version=STRING
1515                          Use release version string in package name
1516
1517Some influential environment variables:
1518  CC          C compiler command
1519  CFLAGS      C compiler flags
1520  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1521              nonstandard directory <lib dir>
1522  LIBS        libraries to pass to the linker, e.g. -l<library>
1523  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1524              you have headers in a nonstandard directory <include dir>
1525  CPP         C preprocessor
1526  CXX         C++ compiler command
1527  CXXFLAGS    C++ compiler flags
1528  CXXCPP      C++ preprocessor
1529  F77         Fortran 77 compiler command
1530  FFLAGS      Fortran 77 compiler flags
1531  PKG_CONFIG  path to pkg-config utility
1532  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1533  XORG_LIBS   linker flags for XORG, overriding pkg-config
1534
1535Use these variables to override the choices made by `configure' or to help
1536it to find libraries and programs with nonstandard names/locations.
1537
1538Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1539_ACEOF
1540ac_status=$?
1541fi
1542
1543if test "$ac_init_help" = "recursive"; then
1544  # If there are subdirs, report their specific --help.
1545  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546    test -d "$ac_dir" || continue
1547    ac_builddir=.
1548
1549case "$ac_dir" in
1550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551*)
1552  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1553  # A ".." for each directory in $ac_dir_suffix.
1554  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1555  case $ac_top_builddir_sub in
1556  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558  esac ;;
1559esac
1560ac_abs_top_builddir=$ac_pwd
1561ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562# for backward compatibility:
1563ac_top_builddir=$ac_top_build_prefix
1564
1565case $srcdir in
1566  .)  # We are building in place.
1567    ac_srcdir=.
1568    ac_top_srcdir=$ac_top_builddir_sub
1569    ac_abs_top_srcdir=$ac_pwd ;;
1570  [\\/]* | ?:[\\/]* )  # Absolute name.
1571    ac_srcdir=$srcdir$ac_dir_suffix;
1572    ac_top_srcdir=$srcdir
1573    ac_abs_top_srcdir=$srcdir ;;
1574  *) # Relative name.
1575    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576    ac_top_srcdir=$ac_top_build_prefix$srcdir
1577    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578esac
1579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581    cd "$ac_dir" || { ac_status=$?; continue; }
1582    # Check for guested configure.
1583    if test -f "$ac_srcdir/configure.gnu"; then
1584      echo &&
1585      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586    elif test -f "$ac_srcdir/configure"; then
1587      echo &&
1588      $SHELL "$ac_srcdir/configure" --help=recursive
1589    else
1590      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591    fi || ac_status=$?
1592    cd "$ac_pwd" || { ac_status=$?; break; }
1593  done
1594fi
1595
1596test -n "$ac_init_help" && exit $ac_status
1597if $ac_init_version; then
1598  cat <<\_ACEOF
1599xf86-input-vmmouse configure 12.5.0
1600generated by GNU Autoconf 2.61
1601
1602Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16032002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1604This configure script is free software; the Free Software Foundation
1605gives unlimited permission to copy, distribute and modify it.
1606_ACEOF
1607  exit
1608fi
1609cat >config.log <<_ACEOF
1610This file contains any messages produced by compilers while
1611running configure, to aid debugging if configure makes a mistake.
1612
1613It was created by xf86-input-vmmouse $as_me 12.5.0, which was
1614generated by GNU Autoconf 2.61.  Invocation command line was
1615
1616  $ $0 $@
1617
1618_ACEOF
1619exec 5>>config.log
1620{
1621cat <<_ASUNAME
1622## --------- ##
1623## Platform. ##
1624## --------- ##
1625
1626hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1627uname -m = `(uname -m) 2>/dev/null || echo unknown`
1628uname -r = `(uname -r) 2>/dev/null || echo unknown`
1629uname -s = `(uname -s) 2>/dev/null || echo unknown`
1630uname -v = `(uname -v) 2>/dev/null || echo unknown`
1631
1632/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1633/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1634
1635/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1636/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1637/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1638/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1639/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1640/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1641/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1642
1643_ASUNAME
1644
1645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646for as_dir in $PATH
1647do
1648  IFS=$as_save_IFS
1649  test -z "$as_dir" && as_dir=.
1650  echo "PATH: $as_dir"
1651done
1652IFS=$as_save_IFS
1653
1654} >&5
1655
1656cat >&5 <<_ACEOF
1657
1658
1659## ----------- ##
1660## Core tests. ##
1661## ----------- ##
1662
1663_ACEOF
1664
1665
1666# Keep a trace of the command line.
1667# Strip out --no-create and --no-recursion so they do not pile up.
1668# Strip out --silent because we don't want to record it for future runs.
1669# Also quote any args containing shell meta-characters.
1670# Make two passes to allow for proper duplicate-argument suppression.
1671ac_configure_args=
1672ac_configure_args0=
1673ac_configure_args1=
1674ac_must_keep_next=false
1675for ac_pass in 1 2
1676do
1677  for ac_arg
1678  do
1679    case $ac_arg in
1680    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1681    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1682    | -silent | --silent | --silen | --sile | --sil)
1683      continue ;;
1684    *\'*)
1685      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1686    esac
1687    case $ac_pass in
1688    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1689    2)
1690      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1691      if test $ac_must_keep_next = true; then
1692	ac_must_keep_next=false # Got value, back to normal.
1693      else
1694	case $ac_arg in
1695	  *=* | --config-cache | -C | -disable-* | --disable-* \
1696	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1697	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1698	  | -with-* | --with-* | -without-* | --without-* | --x)
1699	    case "$ac_configure_args0 " in
1700	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1701	    esac
1702	    ;;
1703	  -* ) ac_must_keep_next=true ;;
1704	esac
1705      fi
1706      ac_configure_args="$ac_configure_args '$ac_arg'"
1707      ;;
1708    esac
1709  done
1710done
1711$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1712$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1713
1714# When interrupted or exit'd, cleanup temporary files, and complete
1715# config.log.  We remove comments because anyway the quotes in there
1716# would cause problems or look ugly.
1717# WARNING: Use '\'' to represent an apostrophe within the trap.
1718# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1719trap 'exit_status=$?
1720  # Save into config.log some information that might help in debugging.
1721  {
1722    echo
1723
1724    cat <<\_ASBOX
1725## ---------------- ##
1726## Cache variables. ##
1727## ---------------- ##
1728_ASBOX
1729    echo
1730    # The following way of writing the cache mishandles newlines in values,
1731(
1732  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1733    eval ac_val=\$$ac_var
1734    case $ac_val in #(
1735    *${as_nl}*)
1736      case $ac_var in #(
1737      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1738echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1739      esac
1740      case $ac_var in #(
1741      _ | IFS | as_nl) ;; #(
1742      *) $as_unset $ac_var ;;
1743      esac ;;
1744    esac
1745  done
1746  (set) 2>&1 |
1747    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1748    *${as_nl}ac_space=\ *)
1749      sed -n \
1750	"s/'\''/'\''\\\\'\'''\''/g;
1751	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1752      ;; #(
1753    *)
1754      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1755      ;;
1756    esac |
1757    sort
1758)
1759    echo
1760
1761    cat <<\_ASBOX
1762## ----------------- ##
1763## Output variables. ##
1764## ----------------- ##
1765_ASBOX
1766    echo
1767    for ac_var in $ac_subst_vars
1768    do
1769      eval ac_val=\$$ac_var
1770      case $ac_val in
1771      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772      esac
1773      echo "$ac_var='\''$ac_val'\''"
1774    done | sort
1775    echo
1776
1777    if test -n "$ac_subst_files"; then
1778      cat <<\_ASBOX
1779## ------------------- ##
1780## File substitutions. ##
1781## ------------------- ##
1782_ASBOX
1783      echo
1784      for ac_var in $ac_subst_files
1785      do
1786	eval ac_val=\$$ac_var
1787	case $ac_val in
1788	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789	esac
1790	echo "$ac_var='\''$ac_val'\''"
1791      done | sort
1792      echo
1793    fi
1794
1795    if test -s confdefs.h; then
1796      cat <<\_ASBOX
1797## ----------- ##
1798## confdefs.h. ##
1799## ----------- ##
1800_ASBOX
1801      echo
1802      cat confdefs.h
1803      echo
1804    fi
1805    test "$ac_signal" != 0 &&
1806      echo "$as_me: caught signal $ac_signal"
1807    echo "$as_me: exit $exit_status"
1808  } >&5
1809  rm -f core *.core core.conftest.* &&
1810    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1811    exit $exit_status
1812' 0
1813for ac_signal in 1 2 13 15; do
1814  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1815done
1816ac_signal=0
1817
1818# confdefs.h avoids OS command line length limits that DEFS can exceed.
1819rm -f -r conftest* confdefs.h
1820
1821# Predefined preprocessor variables.
1822
1823cat >>confdefs.h <<_ACEOF
1824#define PACKAGE_NAME "$PACKAGE_NAME"
1825_ACEOF
1826
1827
1828cat >>confdefs.h <<_ACEOF
1829#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1830_ACEOF
1831
1832
1833cat >>confdefs.h <<_ACEOF
1834#define PACKAGE_VERSION "$PACKAGE_VERSION"
1835_ACEOF
1836
1837
1838cat >>confdefs.h <<_ACEOF
1839#define PACKAGE_STRING "$PACKAGE_STRING"
1840_ACEOF
1841
1842
1843cat >>confdefs.h <<_ACEOF
1844#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1845_ACEOF
1846
1847
1848# Let the site file select an alternate cache file if it wants to.
1849# Prefer explicitly selected file to automatically selected ones.
1850if test -n "$CONFIG_SITE"; then
1851  set x "$CONFIG_SITE"
1852elif test "x$prefix" != xNONE; then
1853  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1854else
1855  set x "$ac_default_prefix/share/config.site" \
1856	"$ac_default_prefix/etc/config.site"
1857fi
1858shift
1859for ac_site_file
1860do
1861  if test -r "$ac_site_file"; then
1862    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1863echo "$as_me: loading site script $ac_site_file" >&6;}
1864    sed 's/^/| /' "$ac_site_file" >&5
1865    . "$ac_site_file"
1866  fi
1867done
1868
1869if test -r "$cache_file"; then
1870  # Some versions of bash will fail to source /dev/null (special
1871  # files actually), so we avoid doing that.
1872  if test -f "$cache_file"; then
1873    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1874echo "$as_me: loading cache $cache_file" >&6;}
1875    case $cache_file in
1876      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1877      *)                      . "./$cache_file";;
1878    esac
1879  fi
1880else
1881  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1882echo "$as_me: creating cache $cache_file" >&6;}
1883  >$cache_file
1884fi
1885
1886# Check that the precious variables saved in the cache have kept the same
1887# value.
1888ac_cache_corrupted=false
1889for ac_var in $ac_precious_vars; do
1890  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1891  eval ac_new_set=\$ac_env_${ac_var}_set
1892  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1893  eval ac_new_val=\$ac_env_${ac_var}_value
1894  case $ac_old_set,$ac_new_set in
1895    set,)
1896      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1897echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1898      ac_cache_corrupted=: ;;
1899    ,set)
1900      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1901echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1902      ac_cache_corrupted=: ;;
1903    ,);;
1904    *)
1905      if test "x$ac_old_val" != "x$ac_new_val"; then
1906	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1907echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1908	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1909echo "$as_me:   former value:  $ac_old_val" >&2;}
1910	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1911echo "$as_me:   current value: $ac_new_val" >&2;}
1912	ac_cache_corrupted=:
1913      fi;;
1914  esac
1915  # Pass precious variables to config.status.
1916  if test "$ac_new_set" = set; then
1917    case $ac_new_val in
1918    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1919    *) ac_arg=$ac_var=$ac_new_val ;;
1920    esac
1921    case " $ac_configure_args " in
1922      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1923      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1924    esac
1925  fi
1926done
1927if $ac_cache_corrupted; then
1928  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1929echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1930  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1931echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1932   { (exit 1); exit 1; }; }
1933fi
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959ac_ext=c
1960ac_cpp='$CPP $CPPFLAGS'
1961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964
1965
1966
1967
1968ac_aux_dir=
1969for ac_dir in . "$srcdir"/.; do
1970  if test -f "$ac_dir/install-sh"; then
1971    ac_aux_dir=$ac_dir
1972    ac_install_sh="$ac_aux_dir/install-sh -c"
1973    break
1974  elif test -f "$ac_dir/install.sh"; then
1975    ac_aux_dir=$ac_dir
1976    ac_install_sh="$ac_aux_dir/install.sh -c"
1977    break
1978  elif test -f "$ac_dir/shtool"; then
1979    ac_aux_dir=$ac_dir
1980    ac_install_sh="$ac_aux_dir/shtool install -c"
1981    break
1982  fi
1983done
1984if test -z "$ac_aux_dir"; then
1985  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1986echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1987   { (exit 1); exit 1; }; }
1988fi
1989
1990# These three variables are undocumented and unsupported,
1991# and are intended to be withdrawn in a future Autoconf release.
1992# They can cause serious problems if a builder's source tree is in a directory
1993# whose full name contains unusual characters.
1994ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1995ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1996ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1997
1998
1999am__api_version='1.10'
2000
2001# Find a good install program.  We prefer a C program (faster),
2002# so one script is as good as another.  But avoid the broken or
2003# incompatible versions:
2004# SysV /etc/install, /usr/sbin/install
2005# SunOS /usr/etc/install
2006# IRIX /sbin/install
2007# AIX /bin/install
2008# AmigaOS /C/install, which installs bootblocks on floppy discs
2009# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2010# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2011# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2012# OS/2's system install, which has a completely different semantic
2013# ./install, which can be erroneously created by make from ./install.sh.
2014{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2015echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2016if test -z "$INSTALL"; then
2017if test "${ac_cv_path_install+set}" = set; then
2018  echo $ECHO_N "(cached) $ECHO_C" >&6
2019else
2020  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021for as_dir in $PATH
2022do
2023  IFS=$as_save_IFS
2024  test -z "$as_dir" && as_dir=.
2025  # Account for people who put trailing slashes in PATH elements.
2026case $as_dir/ in
2027  ./ | .// | /cC/* | \
2028  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2029  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2030  /usr/ucb/* ) ;;
2031  *)
2032    # OSF1 and SCO ODT 3.0 have their own names for install.
2033    # Don't use installbsd from OSF since it installs stuff as root
2034    # by default.
2035    for ac_prog in ginstall scoinst install; do
2036      for ac_exec_ext in '' $ac_executable_extensions; do
2037	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2038	  if test $ac_prog = install &&
2039	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2040	    # AIX install.  It has an incompatible calling convention.
2041	    :
2042	  elif test $ac_prog = install &&
2043	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2044	    # program-specific install script used by HP pwplus--don't use.
2045	    :
2046	  else
2047	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2048	    break 3
2049	  fi
2050	fi
2051      done
2052    done
2053    ;;
2054esac
2055done
2056IFS=$as_save_IFS
2057
2058
2059fi
2060  if test "${ac_cv_path_install+set}" = set; then
2061    INSTALL=$ac_cv_path_install
2062  else
2063    # As a last resort, use the slow shell script.  Don't cache a
2064    # value for INSTALL within a source directory, because that will
2065    # break other packages using the cache if that directory is
2066    # removed, or if the value is a relative name.
2067    INSTALL=$ac_install_sh
2068  fi
2069fi
2070{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2071echo "${ECHO_T}$INSTALL" >&6; }
2072
2073# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2074# It thinks the first close brace ends the variable substitution.
2075test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2076
2077test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2078
2079test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2080
2081{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2082echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2083# Just in case
2084sleep 1
2085echo timestamp > conftest.file
2086# Do `set' in a subshell so we don't clobber the current shell's
2087# arguments.  Must try -L first in case configure is actually a
2088# symlink; some systems play weird games with the mod time of symlinks
2089# (eg FreeBSD returns the mod time of the symlink's containing
2090# directory).
2091if (
2092   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2093   if test "$*" = "X"; then
2094      # -L didn't work.
2095      set X `ls -t $srcdir/configure conftest.file`
2096   fi
2097   rm -f conftest.file
2098   if test "$*" != "X $srcdir/configure conftest.file" \
2099      && test "$*" != "X conftest.file $srcdir/configure"; then
2100
2101      # If neither matched, then we have a broken ls.  This can happen
2102      # if, for instance, CONFIG_SHELL is bash and it inherits a
2103      # broken ls alias from the environment.  This has actually
2104      # happened.  Such a system could not be considered "sane".
2105      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2106alias in your environment" >&5
2107echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2108alias in your environment" >&2;}
2109   { (exit 1); exit 1; }; }
2110   fi
2111
2112   test "$2" = conftest.file
2113   )
2114then
2115   # Ok.
2116   :
2117else
2118   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2119Check your system clock" >&5
2120echo "$as_me: error: newly created file is older than distributed files!
2121Check your system clock" >&2;}
2122   { (exit 1); exit 1; }; }
2123fi
2124{ echo "$as_me:$LINENO: result: yes" >&5
2125echo "${ECHO_T}yes" >&6; }
2126test "$program_prefix" != NONE &&
2127  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2128# Use a double $ so make ignores it.
2129test "$program_suffix" != NONE &&
2130  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2131# Double any \ or $.  echo might interpret backslashes.
2132# By default was `s,x,x', remove it if useless.
2133cat <<\_ACEOF >conftest.sed
2134s/[\\$]/&&/g;s/;s,x,x,$//
2135_ACEOF
2136program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2137rm -f conftest.sed
2138
2139# expand $ac_aux_dir to an absolute path
2140am_aux_dir=`cd $ac_aux_dir && pwd`
2141
2142test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2143# Use eval to expand $SHELL
2144if eval "$MISSING --run true"; then
2145  am_missing_run="$MISSING --run "
2146else
2147  am_missing_run=
2148  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2149echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2150fi
2151
2152{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2153echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2154if test -z "$MKDIR_P"; then
2155  if test "${ac_cv_path_mkdir+set}" = set; then
2156  echo $ECHO_N "(cached) $ECHO_C" >&6
2157else
2158  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2160do
2161  IFS=$as_save_IFS
2162  test -z "$as_dir" && as_dir=.
2163  for ac_prog in mkdir gmkdir; do
2164	 for ac_exec_ext in '' $ac_executable_extensions; do
2165	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2166	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2167	     'mkdir (GNU coreutils) '* | \
2168	     'mkdir (coreutils) '* | \
2169	     'mkdir (fileutils) '4.1*)
2170	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2171	       break 3;;
2172	   esac
2173	 done
2174       done
2175done
2176IFS=$as_save_IFS
2177
2178fi
2179
2180  if test "${ac_cv_path_mkdir+set}" = set; then
2181    MKDIR_P="$ac_cv_path_mkdir -p"
2182  else
2183    # As a last resort, use the slow shell script.  Don't cache a
2184    # value for MKDIR_P within a source directory, because that will
2185    # break other packages using the cache if that directory is
2186    # removed, or if the value is a relative name.
2187    test -d ./--version && rmdir ./--version
2188    MKDIR_P="$ac_install_sh -d"
2189  fi
2190fi
2191{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2192echo "${ECHO_T}$MKDIR_P" >&6; }
2193
2194mkdir_p="$MKDIR_P"
2195case $mkdir_p in
2196  [\\/$]* | ?:[\\/]*) ;;
2197  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2198esac
2199
2200for ac_prog in gawk mawk nawk awk
2201do
2202  # Extract the first word of "$ac_prog", so it can be a program name with args.
2203set dummy $ac_prog; ac_word=$2
2204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2206if test "${ac_cv_prog_AWK+set}" = set; then
2207  echo $ECHO_N "(cached) $ECHO_C" >&6
2208else
2209  if test -n "$AWK"; then
2210  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2211else
2212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213for as_dir in $PATH
2214do
2215  IFS=$as_save_IFS
2216  test -z "$as_dir" && as_dir=.
2217  for ac_exec_ext in '' $ac_executable_extensions; do
2218  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2219    ac_cv_prog_AWK="$ac_prog"
2220    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221    break 2
2222  fi
2223done
2224done
2225IFS=$as_save_IFS
2226
2227fi
2228fi
2229AWK=$ac_cv_prog_AWK
2230if test -n "$AWK"; then
2231  { echo "$as_me:$LINENO: result: $AWK" >&5
2232echo "${ECHO_T}$AWK" >&6; }
2233else
2234  { echo "$as_me:$LINENO: result: no" >&5
2235echo "${ECHO_T}no" >&6; }
2236fi
2237
2238
2239  test -n "$AWK" && break
2240done
2241
2242{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2243echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2244set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2245if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2246  echo $ECHO_N "(cached) $ECHO_C" >&6
2247else
2248  cat >conftest.make <<\_ACEOF
2249SHELL = /bin/sh
2250all:
2251	@echo '@@@%%%=$(MAKE)=@@@%%%'
2252_ACEOF
2253# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2254case `${MAKE-make} -f conftest.make 2>/dev/null` in
2255  *@@@%%%=?*=@@@%%%*)
2256    eval ac_cv_prog_make_${ac_make}_set=yes;;
2257  *)
2258    eval ac_cv_prog_make_${ac_make}_set=no;;
2259esac
2260rm -f conftest.make
2261fi
2262if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2263  { echo "$as_me:$LINENO: result: yes" >&5
2264echo "${ECHO_T}yes" >&6; }
2265  SET_MAKE=
2266else
2267  { echo "$as_me:$LINENO: result: no" >&5
2268echo "${ECHO_T}no" >&6; }
2269  SET_MAKE="MAKE=${MAKE-make}"
2270fi
2271
2272rm -rf .tst 2>/dev/null
2273mkdir .tst 2>/dev/null
2274if test -d .tst; then
2275  am__leading_dot=.
2276else
2277  am__leading_dot=_
2278fi
2279rmdir .tst 2>/dev/null
2280
2281if test "`cd $srcdir && pwd`" != "`pwd`"; then
2282  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2283  # is not polluted with repeated "-I."
2284  am__isrc=' -I$(srcdir)'
2285  # test to see if srcdir already configured
2286  if test -f $srcdir/config.status; then
2287    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2288echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2289   { (exit 1); exit 1; }; }
2290  fi
2291fi
2292
2293# test whether we have cygpath
2294if test -z "$CYGPATH_W"; then
2295  if (cygpath --version) >/dev/null 2>/dev/null; then
2296    CYGPATH_W='cygpath -w'
2297  else
2298    CYGPATH_W=echo
2299  fi
2300fi
2301
2302
2303# Define the identity of the package.
2304 PACKAGE='xf86-input-vmmouse'
2305 VERSION='12.5.0'
2306
2307
2308cat >>confdefs.h <<_ACEOF
2309#define PACKAGE "$PACKAGE"
2310_ACEOF
2311
2312
2313cat >>confdefs.h <<_ACEOF
2314#define VERSION "$VERSION"
2315_ACEOF
2316
2317# Some tools Automake needs.
2318
2319ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2320
2321
2322AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2323
2324
2325AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2326
2327
2328AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2329
2330
2331MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2332
2333install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2334
2335# Installed binaries are usually stripped using `strip' when the user
2336# run `make install-strip'.  However `strip' might not be the right
2337# tool to use in cross-compilation environments, therefore Automake
2338# will honor the `STRIP' environment variable to overrule this program.
2339if test "$cross_compiling" != no; then
2340  if test -n "$ac_tool_prefix"; then
2341  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2342set dummy ${ac_tool_prefix}strip; ac_word=$2
2343{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2345if test "${ac_cv_prog_STRIP+set}" = set; then
2346  echo $ECHO_N "(cached) $ECHO_C" >&6
2347else
2348  if test -n "$STRIP"; then
2349  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2350else
2351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352for as_dir in $PATH
2353do
2354  IFS=$as_save_IFS
2355  test -z "$as_dir" && as_dir=.
2356  for ac_exec_ext in '' $ac_executable_extensions; do
2357  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2359    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360    break 2
2361  fi
2362done
2363done
2364IFS=$as_save_IFS
2365
2366fi
2367fi
2368STRIP=$ac_cv_prog_STRIP
2369if test -n "$STRIP"; then
2370  { echo "$as_me:$LINENO: result: $STRIP" >&5
2371echo "${ECHO_T}$STRIP" >&6; }
2372else
2373  { echo "$as_me:$LINENO: result: no" >&5
2374echo "${ECHO_T}no" >&6; }
2375fi
2376
2377
2378fi
2379if test -z "$ac_cv_prog_STRIP"; then
2380  ac_ct_STRIP=$STRIP
2381  # Extract the first word of "strip", so it can be a program name with args.
2382set dummy strip; ac_word=$2
2383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2386  echo $ECHO_N "(cached) $ECHO_C" >&6
2387else
2388  if test -n "$ac_ct_STRIP"; then
2389  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2390else
2391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392for as_dir in $PATH
2393do
2394  IFS=$as_save_IFS
2395  test -z "$as_dir" && as_dir=.
2396  for ac_exec_ext in '' $ac_executable_extensions; do
2397  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398    ac_cv_prog_ac_ct_STRIP="strip"
2399    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400    break 2
2401  fi
2402done
2403done
2404IFS=$as_save_IFS
2405
2406fi
2407fi
2408ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2409if test -n "$ac_ct_STRIP"; then
2410  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2411echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2412else
2413  { echo "$as_me:$LINENO: result: no" >&5
2414echo "${ECHO_T}no" >&6; }
2415fi
2416
2417  if test "x$ac_ct_STRIP" = x; then
2418    STRIP=":"
2419  else
2420    case $cross_compiling:$ac_tool_warned in
2421yes:)
2422{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2423whose name does not start with the host triplet.  If you think this
2424configuration is useful to you, please write to autoconf@gnu.org." >&5
2425echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2426whose name does not start with the host triplet.  If you think this
2427configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2428ac_tool_warned=yes ;;
2429esac
2430    STRIP=$ac_ct_STRIP
2431  fi
2432else
2433  STRIP="$ac_cv_prog_STRIP"
2434fi
2435
2436fi
2437INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2438
2439# We need awk for the "check" target.  The system "awk" is bad on
2440# some platforms.
2441# Always define AMTAR for backward compatibility.
2442
2443AMTAR=${AMTAR-"${am_missing_run}tar"}
2444
2445am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2446
2447
2448
2449
2450
2451
2452{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2453echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2454    # Check whether --enable-maintainer-mode was given.
2455if test "${enable_maintainer_mode+set}" = set; then
2456  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2457else
2458  USE_MAINTAINER_MODE=no
2459fi
2460
2461  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2462echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2463   if test $USE_MAINTAINER_MODE = yes; then
2464  MAINTAINER_MODE_TRUE=
2465  MAINTAINER_MODE_FALSE='#'
2466else
2467  MAINTAINER_MODE_TRUE='#'
2468  MAINTAINER_MODE_FALSE=
2469fi
2470
2471  MAINT=$MAINTAINER_MODE_TRUE
2472
2473
2474
2475DRIVER_NAME=vmmouse
2476
2477
2478ac_config_headers="$ac_config_headers config.h"
2479
2480
2481# Checks for programs.
2482# Check whether --enable-static was given.
2483if test "${enable_static+set}" = set; then
2484  enableval=$enable_static; p=${PACKAGE-default}
2485    case $enableval in
2486    yes) enable_static=yes ;;
2487    no) enable_static=no ;;
2488    *)
2489     enable_static=no
2490      # Look at the argument we got.  We use all the common list separators.
2491      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2492      for pkg in $enableval; do
2493	IFS="$lt_save_ifs"
2494	if test "X$pkg" = "X$p"; then
2495	  enable_static=yes
2496	fi
2497      done
2498      IFS="$lt_save_ifs"
2499      ;;
2500    esac
2501else
2502  enable_static=no
2503fi
2504
2505
2506
2507# Check whether --enable-shared was given.
2508if test "${enable_shared+set}" = set; then
2509  enableval=$enable_shared; p=${PACKAGE-default}
2510    case $enableval in
2511    yes) enable_shared=yes ;;
2512    no) enable_shared=no ;;
2513    *)
2514      enable_shared=no
2515      # Look at the argument we got.  We use all the common list separators.
2516      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2517      for pkg in $enableval; do
2518	IFS="$lt_save_ifs"
2519	if test "X$pkg" = "X$p"; then
2520	  enable_shared=yes
2521	fi
2522      done
2523      IFS="$lt_save_ifs"
2524      ;;
2525    esac
2526else
2527  enable_shared=yes
2528fi
2529
2530
2531# Check whether --enable-fast-install was given.
2532if test "${enable_fast_install+set}" = set; then
2533  enableval=$enable_fast_install; p=${PACKAGE-default}
2534    case $enableval in
2535    yes) enable_fast_install=yes ;;
2536    no) enable_fast_install=no ;;
2537    *)
2538      enable_fast_install=no
2539      # Look at the argument we got.  We use all the common list separators.
2540      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2541      for pkg in $enableval; do
2542	IFS="$lt_save_ifs"
2543	if test "X$pkg" = "X$p"; then
2544	  enable_fast_install=yes
2545	fi
2546      done
2547      IFS="$lt_save_ifs"
2548      ;;
2549    esac
2550else
2551  enable_fast_install=yes
2552fi
2553
2554
2555# Make sure we can run config.sub.
2556$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2557  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2558echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2559   { (exit 1); exit 1; }; }
2560
2561{ echo "$as_me:$LINENO: checking build system type" >&5
2562echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2563if test "${ac_cv_build+set}" = set; then
2564  echo $ECHO_N "(cached) $ECHO_C" >&6
2565else
2566  ac_build_alias=$build_alias
2567test "x$ac_build_alias" = x &&
2568  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2569test "x$ac_build_alias" = x &&
2570  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2571echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2572   { (exit 1); exit 1; }; }
2573ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2574  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2575echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2576   { (exit 1); exit 1; }; }
2577
2578fi
2579{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2580echo "${ECHO_T}$ac_cv_build" >&6; }
2581case $ac_cv_build in
2582*-*-*) ;;
2583*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2584echo "$as_me: error: invalid value of canonical build" >&2;}
2585   { (exit 1); exit 1; }; };;
2586esac
2587build=$ac_cv_build
2588ac_save_IFS=$IFS; IFS='-'
2589set x $ac_cv_build
2590shift
2591build_cpu=$1
2592build_vendor=$2
2593shift; shift
2594# Remember, the first character of IFS is used to create $*,
2595# except with old shells:
2596build_os=$*
2597IFS=$ac_save_IFS
2598case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2599
2600
2601{ echo "$as_me:$LINENO: checking host system type" >&5
2602echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2603if test "${ac_cv_host+set}" = set; then
2604  echo $ECHO_N "(cached) $ECHO_C" >&6
2605else
2606  if test "x$host_alias" = x; then
2607  ac_cv_host=$ac_cv_build
2608else
2609  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2610    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2611echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2612   { (exit 1); exit 1; }; }
2613fi
2614
2615fi
2616{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2617echo "${ECHO_T}$ac_cv_host" >&6; }
2618case $ac_cv_host in
2619*-*-*) ;;
2620*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2621echo "$as_me: error: invalid value of canonical host" >&2;}
2622   { (exit 1); exit 1; }; };;
2623esac
2624host=$ac_cv_host
2625ac_save_IFS=$IFS; IFS='-'
2626set x $ac_cv_host
2627shift
2628host_cpu=$1
2629host_vendor=$2
2630shift; shift
2631# Remember, the first character of IFS is used to create $*,
2632# except with old shells:
2633host_os=$*
2634IFS=$ac_save_IFS
2635case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2636
2637
2638DEPDIR="${am__leading_dot}deps"
2639
2640ac_config_commands="$ac_config_commands depfiles"
2641
2642
2643am_make=${MAKE-make}
2644cat > confinc << 'END'
2645am__doit:
2646	@echo done
2647.PHONY: am__doit
2648END
2649# If we don't find an include directive, just comment out the code.
2650{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2651echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2652am__include="#"
2653am__quote=
2654_am_result=none
2655# First try GNU make style include.
2656echo "include confinc" > confmf
2657# We grep out `Entering directory' and `Leaving directory'
2658# messages which can occur if `w' ends up in MAKEFLAGS.
2659# In particular we don't look at `^make:' because GNU make might
2660# be invoked under some other name (usually "gmake"), in which
2661# case it prints its new name instead of `make'.
2662if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2663   am__include=include
2664   am__quote=
2665   _am_result=GNU
2666fi
2667# Now try BSD make style include.
2668if test "$am__include" = "#"; then
2669   echo '.include "confinc"' > confmf
2670   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2671      am__include=.include
2672      am__quote="\""
2673      _am_result=BSD
2674   fi
2675fi
2676
2677
2678{ echo "$as_me:$LINENO: result: $_am_result" >&5
2679echo "${ECHO_T}$_am_result" >&6; }
2680rm -f confinc confmf
2681
2682# Check whether --enable-dependency-tracking was given.
2683if test "${enable_dependency_tracking+set}" = set; then
2684  enableval=$enable_dependency_tracking;
2685fi
2686
2687if test "x$enable_dependency_tracking" != xno; then
2688  am_depcomp="$ac_aux_dir/depcomp"
2689  AMDEPBACKSLASH='\'
2690fi
2691 if test "x$enable_dependency_tracking" != xno; then
2692  AMDEP_TRUE=
2693  AMDEP_FALSE='#'
2694else
2695  AMDEP_TRUE='#'
2696  AMDEP_FALSE=
2697fi
2698
2699
2700ac_ext=c
2701ac_cpp='$CPP $CPPFLAGS'
2702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704ac_compiler_gnu=$ac_cv_c_compiler_gnu
2705if test -n "$ac_tool_prefix"; then
2706  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2707set dummy ${ac_tool_prefix}gcc; ac_word=$2
2708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2710if test "${ac_cv_prog_CC+set}" = set; then
2711  echo $ECHO_N "(cached) $ECHO_C" >&6
2712else
2713  if test -n "$CC"; then
2714  ac_cv_prog_CC="$CC" # Let the user override the test.
2715else
2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717for as_dir in $PATH
2718do
2719  IFS=$as_save_IFS
2720  test -z "$as_dir" && as_dir=.
2721  for ac_exec_ext in '' $ac_executable_extensions; do
2722  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2724    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725    break 2
2726  fi
2727done
2728done
2729IFS=$as_save_IFS
2730
2731fi
2732fi
2733CC=$ac_cv_prog_CC
2734if test -n "$CC"; then
2735  { echo "$as_me:$LINENO: result: $CC" >&5
2736echo "${ECHO_T}$CC" >&6; }
2737else
2738  { echo "$as_me:$LINENO: result: no" >&5
2739echo "${ECHO_T}no" >&6; }
2740fi
2741
2742
2743fi
2744if test -z "$ac_cv_prog_CC"; then
2745  ac_ct_CC=$CC
2746  # Extract the first word of "gcc", so it can be a program name with args.
2747set dummy gcc; ac_word=$2
2748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2750if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2751  echo $ECHO_N "(cached) $ECHO_C" >&6
2752else
2753  if test -n "$ac_ct_CC"; then
2754  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2755else
2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757for as_dir in $PATH
2758do
2759  IFS=$as_save_IFS
2760  test -z "$as_dir" && as_dir=.
2761  for ac_exec_ext in '' $ac_executable_extensions; do
2762  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763    ac_cv_prog_ac_ct_CC="gcc"
2764    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2765    break 2
2766  fi
2767done
2768done
2769IFS=$as_save_IFS
2770
2771fi
2772fi
2773ac_ct_CC=$ac_cv_prog_ac_ct_CC
2774if test -n "$ac_ct_CC"; then
2775  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2776echo "${ECHO_T}$ac_ct_CC" >&6; }
2777else
2778  { echo "$as_me:$LINENO: result: no" >&5
2779echo "${ECHO_T}no" >&6; }
2780fi
2781
2782  if test "x$ac_ct_CC" = x; then
2783    CC=""
2784  else
2785    case $cross_compiling:$ac_tool_warned in
2786yes:)
2787{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2788whose name does not start with the host triplet.  If you think this
2789configuration is useful to you, please write to autoconf@gnu.org." >&5
2790echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2791whose name does not start with the host triplet.  If you think this
2792configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2793ac_tool_warned=yes ;;
2794esac
2795    CC=$ac_ct_CC
2796  fi
2797else
2798  CC="$ac_cv_prog_CC"
2799fi
2800
2801if test -z "$CC"; then
2802          if test -n "$ac_tool_prefix"; then
2803    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2804set dummy ${ac_tool_prefix}cc; ac_word=$2
2805{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2807if test "${ac_cv_prog_CC+set}" = set; then
2808  echo $ECHO_N "(cached) $ECHO_C" >&6
2809else
2810  if test -n "$CC"; then
2811  ac_cv_prog_CC="$CC" # Let the user override the test.
2812else
2813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814for as_dir in $PATH
2815do
2816  IFS=$as_save_IFS
2817  test -z "$as_dir" && as_dir=.
2818  for ac_exec_ext in '' $ac_executable_extensions; do
2819  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820    ac_cv_prog_CC="${ac_tool_prefix}cc"
2821    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822    break 2
2823  fi
2824done
2825done
2826IFS=$as_save_IFS
2827
2828fi
2829fi
2830CC=$ac_cv_prog_CC
2831if test -n "$CC"; then
2832  { echo "$as_me:$LINENO: result: $CC" >&5
2833echo "${ECHO_T}$CC" >&6; }
2834else
2835  { echo "$as_me:$LINENO: result: no" >&5
2836echo "${ECHO_T}no" >&6; }
2837fi
2838
2839
2840  fi
2841fi
2842if test -z "$CC"; then
2843  # Extract the first word of "cc", so it can be a program name with args.
2844set dummy cc; ac_word=$2
2845{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2847if test "${ac_cv_prog_CC+set}" = set; then
2848  echo $ECHO_N "(cached) $ECHO_C" >&6
2849else
2850  if test -n "$CC"; then
2851  ac_cv_prog_CC="$CC" # Let the user override the test.
2852else
2853  ac_prog_rejected=no
2854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855for as_dir in $PATH
2856do
2857  IFS=$as_save_IFS
2858  test -z "$as_dir" && as_dir=.
2859  for ac_exec_ext in '' $ac_executable_extensions; do
2860  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2862       ac_prog_rejected=yes
2863       continue
2864     fi
2865    ac_cv_prog_CC="cc"
2866    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867    break 2
2868  fi
2869done
2870done
2871IFS=$as_save_IFS
2872
2873if test $ac_prog_rejected = yes; then
2874  # We found a bogon in the path, so make sure we never use it.
2875  set dummy $ac_cv_prog_CC
2876  shift
2877  if test $# != 0; then
2878    # We chose a different compiler from the bogus one.
2879    # However, it has the same basename, so the bogon will be chosen
2880    # first if we set CC to just the basename; use the full file name.
2881    shift
2882    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2883  fi
2884fi
2885fi
2886fi
2887CC=$ac_cv_prog_CC
2888if test -n "$CC"; then
2889  { echo "$as_me:$LINENO: result: $CC" >&5
2890echo "${ECHO_T}$CC" >&6; }
2891else
2892  { echo "$as_me:$LINENO: result: no" >&5
2893echo "${ECHO_T}no" >&6; }
2894fi
2895
2896
2897fi
2898if test -z "$CC"; then
2899  if test -n "$ac_tool_prefix"; then
2900  for ac_prog in cl.exe
2901  do
2902    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2903set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2906if test "${ac_cv_prog_CC+set}" = set; then
2907  echo $ECHO_N "(cached) $ECHO_C" >&6
2908else
2909  if test -n "$CC"; then
2910  ac_cv_prog_CC="$CC" # Let the user override the test.
2911else
2912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913for as_dir in $PATH
2914do
2915  IFS=$as_save_IFS
2916  test -z "$as_dir" && as_dir=.
2917  for ac_exec_ext in '' $ac_executable_extensions; do
2918  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2920    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2921    break 2
2922  fi
2923done
2924done
2925IFS=$as_save_IFS
2926
2927fi
2928fi
2929CC=$ac_cv_prog_CC
2930if test -n "$CC"; then
2931  { echo "$as_me:$LINENO: result: $CC" >&5
2932echo "${ECHO_T}$CC" >&6; }
2933else
2934  { echo "$as_me:$LINENO: result: no" >&5
2935echo "${ECHO_T}no" >&6; }
2936fi
2937
2938
2939    test -n "$CC" && break
2940  done
2941fi
2942if test -z "$CC"; then
2943  ac_ct_CC=$CC
2944  for ac_prog in cl.exe
2945do
2946  # Extract the first word of "$ac_prog", so it can be a program name with args.
2947set dummy $ac_prog; ac_word=$2
2948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2950if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2951  echo $ECHO_N "(cached) $ECHO_C" >&6
2952else
2953  if test -n "$ac_ct_CC"; then
2954  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2955else
2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957for as_dir in $PATH
2958do
2959  IFS=$as_save_IFS
2960  test -z "$as_dir" && as_dir=.
2961  for ac_exec_ext in '' $ac_executable_extensions; do
2962  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2963    ac_cv_prog_ac_ct_CC="$ac_prog"
2964    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2965    break 2
2966  fi
2967done
2968done
2969IFS=$as_save_IFS
2970
2971fi
2972fi
2973ac_ct_CC=$ac_cv_prog_ac_ct_CC
2974if test -n "$ac_ct_CC"; then
2975  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2976echo "${ECHO_T}$ac_ct_CC" >&6; }
2977else
2978  { echo "$as_me:$LINENO: result: no" >&5
2979echo "${ECHO_T}no" >&6; }
2980fi
2981
2982
2983  test -n "$ac_ct_CC" && break
2984done
2985
2986  if test "x$ac_ct_CC" = x; then
2987    CC=""
2988  else
2989    case $cross_compiling:$ac_tool_warned in
2990yes:)
2991{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2992whose name does not start with the host triplet.  If you think this
2993configuration is useful to you, please write to autoconf@gnu.org." >&5
2994echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2995whose name does not start with the host triplet.  If you think this
2996configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2997ac_tool_warned=yes ;;
2998esac
2999    CC=$ac_ct_CC
3000  fi
3001fi
3002
3003fi
3004
3005
3006test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3007See \`config.log' for more details." >&5
3008echo "$as_me: error: no acceptable C compiler found in \$PATH
3009See \`config.log' for more details." >&2;}
3010   { (exit 1); exit 1; }; }
3011
3012# Provide some information about the compiler.
3013echo "$as_me:$LINENO: checking for C compiler version" >&5
3014ac_compiler=`set X $ac_compile; echo $2`
3015{ (ac_try="$ac_compiler --version >&5"
3016case "(($ac_try" in
3017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018  *) ac_try_echo=$ac_try;;
3019esac
3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021  (eval "$ac_compiler --version >&5") 2>&5
3022  ac_status=$?
3023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024  (exit $ac_status); }
3025{ (ac_try="$ac_compiler -v >&5"
3026case "(($ac_try" in
3027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028  *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031  (eval "$ac_compiler -v >&5") 2>&5
3032  ac_status=$?
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); }
3035{ (ac_try="$ac_compiler -V >&5"
3036case "(($ac_try" in
3037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038  *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041  (eval "$ac_compiler -V >&5") 2>&5
3042  ac_status=$?
3043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044  (exit $ac_status); }
3045
3046cat >conftest.$ac_ext <<_ACEOF
3047/* confdefs.h.  */
3048_ACEOF
3049cat confdefs.h >>conftest.$ac_ext
3050cat >>conftest.$ac_ext <<_ACEOF
3051/* end confdefs.h.  */
3052
3053int
3054main ()
3055{
3056
3057  ;
3058  return 0;
3059}
3060_ACEOF
3061ac_clean_files_save=$ac_clean_files
3062ac_clean_files="$ac_clean_files a.out a.exe b.out"
3063# Try to create an executable without -o first, disregard a.out.
3064# It will help us diagnose broken compilers, and finding out an intuition
3065# of exeext.
3066{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3067echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3068ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3069#
3070# List of possible output files, starting from the most likely.
3071# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3072# only as a last resort.  b.out is created by i960 compilers.
3073ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3074#
3075# The IRIX 6 linker writes into existing files which may not be
3076# executable, retaining their permissions.  Remove them first so a
3077# subsequent execution test works.
3078ac_rmfiles=
3079for ac_file in $ac_files
3080do
3081  case $ac_file in
3082    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3083    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3084  esac
3085done
3086rm -f $ac_rmfiles
3087
3088if { (ac_try="$ac_link_default"
3089case "(($ac_try" in
3090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091  *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094  (eval "$ac_link_default") 2>&5
3095  ac_status=$?
3096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097  (exit $ac_status); }; then
3098  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3099# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3100# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3101# so that the user can short-circuit this test for compilers unknown to
3102# Autoconf.
3103for ac_file in $ac_files ''
3104do
3105  test -f "$ac_file" || continue
3106  case $ac_file in
3107    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3108	;;
3109    [ab].out )
3110	# We found the default executable, but exeext='' is most
3111	# certainly right.
3112	break;;
3113    *.* )
3114        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3115	then :; else
3116	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3117	fi
3118	# We set ac_cv_exeext here because the later test for it is not
3119	# safe: cross compilers may not add the suffix if given an `-o'
3120	# argument, so we may need to know it at that point already.
3121	# Even if this section looks crufty: it has the advantage of
3122	# actually working.
3123	break;;
3124    * )
3125	break;;
3126  esac
3127done
3128test "$ac_cv_exeext" = no && ac_cv_exeext=
3129
3130else
3131  ac_file=''
3132fi
3133
3134{ echo "$as_me:$LINENO: result: $ac_file" >&5
3135echo "${ECHO_T}$ac_file" >&6; }
3136if test -z "$ac_file"; then
3137  echo "$as_me: failed program was:" >&5
3138sed 's/^/| /' conftest.$ac_ext >&5
3139
3140{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3141See \`config.log' for more details." >&5
3142echo "$as_me: error: C compiler cannot create executables
3143See \`config.log' for more details." >&2;}
3144   { (exit 77); exit 77; }; }
3145fi
3146
3147ac_exeext=$ac_cv_exeext
3148
3149# Check that the compiler produces executables we can run.  If not, either
3150# the compiler is broken, or we cross compile.
3151{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3152echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3153# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3154# If not cross compiling, check that we can run a simple program.
3155if test "$cross_compiling" != yes; then
3156  if { ac_try='./$ac_file'
3157  { (case "(($ac_try" in
3158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159  *) ac_try_echo=$ac_try;;
3160esac
3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162  (eval "$ac_try") 2>&5
3163  ac_status=$?
3164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165  (exit $ac_status); }; }; then
3166    cross_compiling=no
3167  else
3168    if test "$cross_compiling" = maybe; then
3169	cross_compiling=yes
3170    else
3171	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3172If you meant to cross compile, use \`--host'.
3173See \`config.log' for more details." >&5
3174echo "$as_me: error: cannot run C compiled programs.
3175If you meant to cross compile, use \`--host'.
3176See \`config.log' for more details." >&2;}
3177   { (exit 1); exit 1; }; }
3178    fi
3179  fi
3180fi
3181{ echo "$as_me:$LINENO: result: yes" >&5
3182echo "${ECHO_T}yes" >&6; }
3183
3184rm -f a.out a.exe conftest$ac_cv_exeext b.out
3185ac_clean_files=$ac_clean_files_save
3186# Check that the compiler produces executables we can run.  If not, either
3187# the compiler is broken, or we cross compile.
3188{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3189echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3190{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3191echo "${ECHO_T}$cross_compiling" >&6; }
3192
3193{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3194echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3195if { (ac_try="$ac_link"
3196case "(($ac_try" in
3197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198  *) ac_try_echo=$ac_try;;
3199esac
3200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201  (eval "$ac_link") 2>&5
3202  ac_status=$?
3203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204  (exit $ac_status); }; then
3205  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3206# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3207# work properly (i.e., refer to `conftest.exe'), while it won't with
3208# `rm'.
3209for ac_file in conftest.exe conftest conftest.*; do
3210  test -f "$ac_file" || continue
3211  case $ac_file in
3212    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3213    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3214	  break;;
3215    * ) break;;
3216  esac
3217done
3218else
3219  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3220See \`config.log' for more details." >&5
3221echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3222See \`config.log' for more details." >&2;}
3223   { (exit 1); exit 1; }; }
3224fi
3225
3226rm -f conftest$ac_cv_exeext
3227{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3228echo "${ECHO_T}$ac_cv_exeext" >&6; }
3229
3230rm -f conftest.$ac_ext
3231EXEEXT=$ac_cv_exeext
3232ac_exeext=$EXEEXT
3233{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3234echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3235if test "${ac_cv_objext+set}" = set; then
3236  echo $ECHO_N "(cached) $ECHO_C" >&6
3237else
3238  cat >conftest.$ac_ext <<_ACEOF
3239/* confdefs.h.  */
3240_ACEOF
3241cat confdefs.h >>conftest.$ac_ext
3242cat >>conftest.$ac_ext <<_ACEOF
3243/* end confdefs.h.  */
3244
3245int
3246main ()
3247{
3248
3249  ;
3250  return 0;
3251}
3252_ACEOF
3253rm -f conftest.o conftest.obj
3254if { (ac_try="$ac_compile"
3255case "(($ac_try" in
3256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257  *) ac_try_echo=$ac_try;;
3258esac
3259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260  (eval "$ac_compile") 2>&5
3261  ac_status=$?
3262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263  (exit $ac_status); }; then
3264  for ac_file in conftest.o conftest.obj conftest.*; do
3265  test -f "$ac_file" || continue;
3266  case $ac_file in
3267    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3268    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3269       break;;
3270  esac
3271done
3272else
3273  echo "$as_me: failed program was:" >&5
3274sed 's/^/| /' conftest.$ac_ext >&5
3275
3276{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3277See \`config.log' for more details." >&5
3278echo "$as_me: error: cannot compute suffix of object files: cannot compile
3279See \`config.log' for more details." >&2;}
3280   { (exit 1); exit 1; }; }
3281fi
3282
3283rm -f conftest.$ac_cv_objext conftest.$ac_ext
3284fi
3285{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3286echo "${ECHO_T}$ac_cv_objext" >&6; }
3287OBJEXT=$ac_cv_objext
3288ac_objext=$OBJEXT
3289{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3290echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3291if test "${ac_cv_c_compiler_gnu+set}" = set; then
3292  echo $ECHO_N "(cached) $ECHO_C" >&6
3293else
3294  cat >conftest.$ac_ext <<_ACEOF
3295/* confdefs.h.  */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
3299/* end confdefs.h.  */
3300
3301int
3302main ()
3303{
3304#ifndef __GNUC__
3305       choke me
3306#endif
3307
3308  ;
3309  return 0;
3310}
3311_ACEOF
3312rm -f conftest.$ac_objext
3313if { (ac_try="$ac_compile"
3314case "(($ac_try" in
3315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316  *) ac_try_echo=$ac_try;;
3317esac
3318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319  (eval "$ac_compile") 2>conftest.er1
3320  ac_status=$?
3321  grep -v '^ *+' conftest.er1 >conftest.err
3322  rm -f conftest.er1
3323  cat conftest.err >&5
3324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); } && {
3326	 test -z "$ac_c_werror_flag" ||
3327	 test ! -s conftest.err
3328       } && test -s conftest.$ac_objext; then
3329  ac_compiler_gnu=yes
3330else
3331  echo "$as_me: failed program was:" >&5
3332sed 's/^/| /' conftest.$ac_ext >&5
3333
3334	ac_compiler_gnu=no
3335fi
3336
3337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338ac_cv_c_compiler_gnu=$ac_compiler_gnu
3339
3340fi
3341{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3342echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3343GCC=`test $ac_compiler_gnu = yes && echo yes`
3344ac_test_CFLAGS=${CFLAGS+set}
3345ac_save_CFLAGS=$CFLAGS
3346{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3347echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3348if test "${ac_cv_prog_cc_g+set}" = set; then
3349  echo $ECHO_N "(cached) $ECHO_C" >&6
3350else
3351  ac_save_c_werror_flag=$ac_c_werror_flag
3352   ac_c_werror_flag=yes
3353   ac_cv_prog_cc_g=no
3354   CFLAGS="-g"
3355   cat >conftest.$ac_ext <<_ACEOF
3356/* confdefs.h.  */
3357_ACEOF
3358cat confdefs.h >>conftest.$ac_ext
3359cat >>conftest.$ac_ext <<_ACEOF
3360/* end confdefs.h.  */
3361
3362int
3363main ()
3364{
3365
3366  ;
3367  return 0;
3368}
3369_ACEOF
3370rm -f conftest.$ac_objext
3371if { (ac_try="$ac_compile"
3372case "(($ac_try" in
3373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374  *) ac_try_echo=$ac_try;;
3375esac
3376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377  (eval "$ac_compile") 2>conftest.er1
3378  ac_status=$?
3379  grep -v '^ *+' conftest.er1 >conftest.err
3380  rm -f conftest.er1
3381  cat conftest.err >&5
3382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383  (exit $ac_status); } && {
3384	 test -z "$ac_c_werror_flag" ||
3385	 test ! -s conftest.err
3386       } && test -s conftest.$ac_objext; then
3387  ac_cv_prog_cc_g=yes
3388else
3389  echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392	CFLAGS=""
3393      cat >conftest.$ac_ext <<_ACEOF
3394/* confdefs.h.  */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
3398/* end confdefs.h.  */
3399
3400int
3401main ()
3402{
3403
3404  ;
3405  return 0;
3406}
3407_ACEOF
3408rm -f conftest.$ac_objext
3409if { (ac_try="$ac_compile"
3410case "(($ac_try" in
3411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412  *) ac_try_echo=$ac_try;;
3413esac
3414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415  (eval "$ac_compile") 2>conftest.er1
3416  ac_status=$?
3417  grep -v '^ *+' conftest.er1 >conftest.err
3418  rm -f conftest.er1
3419  cat conftest.err >&5
3420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421  (exit $ac_status); } && {
3422	 test -z "$ac_c_werror_flag" ||
3423	 test ! -s conftest.err
3424       } && test -s conftest.$ac_objext; then
3425  :
3426else
3427  echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
3430	ac_c_werror_flag=$ac_save_c_werror_flag
3431	 CFLAGS="-g"
3432	 cat >conftest.$ac_ext <<_ACEOF
3433/* confdefs.h.  */
3434_ACEOF
3435cat confdefs.h >>conftest.$ac_ext
3436cat >>conftest.$ac_ext <<_ACEOF
3437/* end confdefs.h.  */
3438
3439int
3440main ()
3441{
3442
3443  ;
3444  return 0;
3445}
3446_ACEOF
3447rm -f conftest.$ac_objext
3448if { (ac_try="$ac_compile"
3449case "(($ac_try" in
3450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451  *) ac_try_echo=$ac_try;;
3452esac
3453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454  (eval "$ac_compile") 2>conftest.er1
3455  ac_status=$?
3456  grep -v '^ *+' conftest.er1 >conftest.err
3457  rm -f conftest.er1
3458  cat conftest.err >&5
3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460  (exit $ac_status); } && {
3461	 test -z "$ac_c_werror_flag" ||
3462	 test ! -s conftest.err
3463       } && test -s conftest.$ac_objext; then
3464  ac_cv_prog_cc_g=yes
3465else
3466  echo "$as_me: failed program was:" >&5
3467sed 's/^/| /' conftest.$ac_ext >&5
3468
3469
3470fi
3471
3472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473fi
3474
3475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476fi
3477
3478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479   ac_c_werror_flag=$ac_save_c_werror_flag
3480fi
3481{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3482echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3483if test "$ac_test_CFLAGS" = set; then
3484  CFLAGS=$ac_save_CFLAGS
3485elif test $ac_cv_prog_cc_g = yes; then
3486  if test "$GCC" = yes; then
3487    CFLAGS="-g -O2"
3488  else
3489    CFLAGS="-g"
3490  fi
3491else
3492  if test "$GCC" = yes; then
3493    CFLAGS="-O2"
3494  else
3495    CFLAGS=
3496  fi
3497fi
3498{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3499echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3500if test "${ac_cv_prog_cc_c89+set}" = set; then
3501  echo $ECHO_N "(cached) $ECHO_C" >&6
3502else
3503  ac_cv_prog_cc_c89=no
3504ac_save_CC=$CC
3505cat >conftest.$ac_ext <<_ACEOF
3506/* confdefs.h.  */
3507_ACEOF
3508cat confdefs.h >>conftest.$ac_ext
3509cat >>conftest.$ac_ext <<_ACEOF
3510/* end confdefs.h.  */
3511#include <stdarg.h>
3512#include <stdio.h>
3513#include <sys/types.h>
3514#include <sys/stat.h>
3515/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3516struct buf { int x; };
3517FILE * (*rcsopen) (struct buf *, struct stat *, int);
3518static char *e (p, i)
3519     char **p;
3520     int i;
3521{
3522  return p[i];
3523}
3524static char *f (char * (*g) (char **, int), char **p, ...)
3525{
3526  char *s;
3527  va_list v;
3528  va_start (v,p);
3529  s = g (p, va_arg (v,int));
3530  va_end (v);
3531  return s;
3532}
3533
3534/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3535   function prototypes and stuff, but not '\xHH' hex character constants.
3536   These don't provoke an error unfortunately, instead are silently treated
3537   as 'x'.  The following induces an error, until -std is added to get
3538   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3539   array size at least.  It's necessary to write '\x00'==0 to get something
3540   that's true only with -std.  */
3541int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3542
3543/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3544   inside strings and character constants.  */
3545#define FOO(x) 'x'
3546int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3547
3548int test (int i, double x);
3549struct s1 {int (*f) (int a);};
3550struct s2 {int (*f) (double a);};
3551int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3552int argc;
3553char **argv;
3554int
3555main ()
3556{
3557return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3558  ;
3559  return 0;
3560}
3561_ACEOF
3562for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3563	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3564do
3565  CC="$ac_save_CC $ac_arg"
3566  rm -f conftest.$ac_objext
3567if { (ac_try="$ac_compile"
3568case "(($ac_try" in
3569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570  *) ac_try_echo=$ac_try;;
3571esac
3572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573  (eval "$ac_compile") 2>conftest.er1
3574  ac_status=$?
3575  grep -v '^ *+' conftest.er1 >conftest.err
3576  rm -f conftest.er1
3577  cat conftest.err >&5
3578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579  (exit $ac_status); } && {
3580	 test -z "$ac_c_werror_flag" ||
3581	 test ! -s conftest.err
3582       } && test -s conftest.$ac_objext; then
3583  ac_cv_prog_cc_c89=$ac_arg
3584else
3585  echo "$as_me: failed program was:" >&5
3586sed 's/^/| /' conftest.$ac_ext >&5
3587
3588
3589fi
3590
3591rm -f core conftest.err conftest.$ac_objext
3592  test "x$ac_cv_prog_cc_c89" != "xno" && break
3593done
3594rm -f conftest.$ac_ext
3595CC=$ac_save_CC
3596
3597fi
3598# AC_CACHE_VAL
3599case "x$ac_cv_prog_cc_c89" in
3600  x)
3601    { echo "$as_me:$LINENO: result: none needed" >&5
3602echo "${ECHO_T}none needed" >&6; } ;;
3603  xno)
3604    { echo "$as_me:$LINENO: result: unsupported" >&5
3605echo "${ECHO_T}unsupported" >&6; } ;;
3606  *)
3607    CC="$CC $ac_cv_prog_cc_c89"
3608    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3609echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3610esac
3611
3612
3613ac_ext=c
3614ac_cpp='$CPP $CPPFLAGS'
3615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
3619depcc="$CC"   am_compiler_list=
3620
3621{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3622echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3623if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3624  echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
3626  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3627  # We make a subdir and do the tests there.  Otherwise we can end up
3628  # making bogus files that we don't know about and never remove.  For
3629  # instance it was reported that on HP-UX the gcc test will end up
3630  # making a dummy file named `D' -- because `-MD' means `put the output
3631  # in D'.
3632  mkdir conftest.dir
3633  # Copy depcomp to subdir because otherwise we won't find it if we're
3634  # using a relative directory.
3635  cp "$am_depcomp" conftest.dir
3636  cd conftest.dir
3637  # We will build objects and dependencies in a subdirectory because
3638  # it helps to detect inapplicable dependency modes.  For instance
3639  # both Tru64's cc and ICC support -MD to output dependencies as a
3640  # side effect of compilation, but ICC will put the dependencies in
3641  # the current directory while Tru64 will put them in the object
3642  # directory.
3643  mkdir sub
3644
3645  am_cv_CC_dependencies_compiler_type=none
3646  if test "$am_compiler_list" = ""; then
3647     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3648  fi
3649  for depmode in $am_compiler_list; do
3650    # Setup a source with many dependencies, because some compilers
3651    # like to wrap large dependency lists on column 80 (with \), and
3652    # we should not choose a depcomp mode which is confused by this.
3653    #
3654    # We need to recreate these files for each test, as the compiler may
3655    # overwrite some of them when testing with obscure command lines.
3656    # This happens at least with the AIX C compiler.
3657    : > sub/conftest.c
3658    for i in 1 2 3 4 5 6; do
3659      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3660      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3661      # Solaris 8's {/usr,}/bin/sh.
3662      touch sub/conftst$i.h
3663    done
3664    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3665
3666    case $depmode in
3667    nosideeffect)
3668      # after this tag, mechanisms are not by side-effect, so they'll
3669      # only be used when explicitly requested
3670      if test "x$enable_dependency_tracking" = xyes; then
3671	continue
3672      else
3673	break
3674      fi
3675      ;;
3676    none) break ;;
3677    esac
3678    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3679    # mode.  It turns out that the SunPro C++ compiler does not properly
3680    # handle `-M -o', and we need to detect this.
3681    if depmode=$depmode \
3682       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3683       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3684       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3685         >/dev/null 2>conftest.err &&
3686       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3687       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3688       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3689       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3690      # icc doesn't choke on unknown options, it will just issue warnings
3691      # or remarks (even with -Werror).  So we grep stderr for any message
3692      # that says an option was ignored or not supported.
3693      # When given -MP, icc 7.0 and 7.1 complain thusly:
3694      #   icc: Command line warning: ignoring option '-M'; no argument required
3695      # The diagnosis changed in icc 8.0:
3696      #   icc: Command line remark: option '-MP' not supported
3697      if (grep 'ignoring option' conftest.err ||
3698          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3699        am_cv_CC_dependencies_compiler_type=$depmode
3700        break
3701      fi
3702    fi
3703  done
3704
3705  cd ..
3706  rm -rf conftest.dir
3707else
3708  am_cv_CC_dependencies_compiler_type=none
3709fi
3710
3711fi
3712{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3713echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3714CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3715
3716 if
3717  test "x$enable_dependency_tracking" != xno \
3718  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3719  am__fastdepCC_TRUE=
3720  am__fastdepCC_FALSE='#'
3721else
3722  am__fastdepCC_TRUE='#'
3723  am__fastdepCC_FALSE=
3724fi
3725
3726
3727{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3728echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3729if test "${lt_cv_path_SED+set}" = set; then
3730  echo $ECHO_N "(cached) $ECHO_C" >&6
3731else
3732  # Loop through the user's path and test for sed and gsed.
3733# Then use that list of sed's as ones to test for truncation.
3734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735for as_dir in $PATH
3736do
3737  IFS=$as_save_IFS
3738  test -z "$as_dir" && as_dir=.
3739  for lt_ac_prog in sed gsed; do
3740    for ac_exec_ext in '' $ac_executable_extensions; do
3741      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3742        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3743      fi
3744    done
3745  done
3746done
3747IFS=$as_save_IFS
3748lt_ac_max=0
3749lt_ac_count=0
3750# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3751# along with /bin/sed that truncates output.
3752for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3753  test ! -f $lt_ac_sed && continue
3754  cat /dev/null > conftest.in
3755  lt_ac_count=0
3756  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3757  # Check for GNU sed and select it if it is found.
3758  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3759    lt_cv_path_SED=$lt_ac_sed
3760    break
3761  fi
3762  while true; do
3763    cat conftest.in conftest.in >conftest.tmp
3764    mv conftest.tmp conftest.in
3765    cp conftest.in conftest.nl
3766    echo >>conftest.nl
3767    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3768    cmp -s conftest.out conftest.nl || break
3769    # 10000 chars as input seems more than enough
3770    test $lt_ac_count -gt 10 && break
3771    lt_ac_count=`expr $lt_ac_count + 1`
3772    if test $lt_ac_count -gt $lt_ac_max; then
3773      lt_ac_max=$lt_ac_count
3774      lt_cv_path_SED=$lt_ac_sed
3775    fi
3776  done
3777done
3778
3779fi
3780
3781SED=$lt_cv_path_SED
3782
3783{ echo "$as_me:$LINENO: result: $SED" >&5
3784echo "${ECHO_T}$SED" >&6; }
3785
3786{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3787echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3788if test "${ac_cv_path_GREP+set}" = set; then
3789  echo $ECHO_N "(cached) $ECHO_C" >&6
3790else
3791  # Extract the first word of "grep ggrep" to use in msg output
3792if test -z "$GREP"; then
3793set dummy grep ggrep; ac_prog_name=$2
3794if test "${ac_cv_path_GREP+set}" = set; then
3795  echo $ECHO_N "(cached) $ECHO_C" >&6
3796else
3797  ac_path_GREP_found=false
3798# Loop through the user's path and test for each of PROGNAME-LIST
3799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3801do
3802  IFS=$as_save_IFS
3803  test -z "$as_dir" && as_dir=.
3804  for ac_prog in grep ggrep; do
3805  for ac_exec_ext in '' $ac_executable_extensions; do
3806    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3807    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3808    # Check for GNU ac_path_GREP and select it if it is found.
3809  # Check for GNU $ac_path_GREP
3810case `"$ac_path_GREP" --version 2>&1` in
3811*GNU*)
3812  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3813*)
3814  ac_count=0
3815  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3816  while :
3817  do
3818    cat "conftest.in" "conftest.in" >"conftest.tmp"
3819    mv "conftest.tmp" "conftest.in"
3820    cp "conftest.in" "conftest.nl"
3821    echo 'GREP' >> "conftest.nl"
3822    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3823    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3824    ac_count=`expr $ac_count + 1`
3825    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3826      # Best one so far, save it but keep looking for a better one
3827      ac_cv_path_GREP="$ac_path_GREP"
3828      ac_path_GREP_max=$ac_count
3829    fi
3830    # 10*(2^10) chars as input seems more than enough
3831    test $ac_count -gt 10 && break
3832  done
3833  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3834esac
3835
3836
3837    $ac_path_GREP_found && break 3
3838  done
3839done
3840
3841done
3842IFS=$as_save_IFS
3843
3844
3845fi
3846
3847GREP="$ac_cv_path_GREP"
3848if test -z "$GREP"; then
3849  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3850echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3851   { (exit 1); exit 1; }; }
3852fi
3853
3854else
3855  ac_cv_path_GREP=$GREP
3856fi
3857
3858
3859fi
3860{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3861echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3862 GREP="$ac_cv_path_GREP"
3863
3864
3865{ echo "$as_me:$LINENO: checking for egrep" >&5
3866echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3867if test "${ac_cv_path_EGREP+set}" = set; then
3868  echo $ECHO_N "(cached) $ECHO_C" >&6
3869else
3870  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3871   then ac_cv_path_EGREP="$GREP -E"
3872   else
3873     # Extract the first word of "egrep" to use in msg output
3874if test -z "$EGREP"; then
3875set dummy egrep; ac_prog_name=$2
3876if test "${ac_cv_path_EGREP+set}" = set; then
3877  echo $ECHO_N "(cached) $ECHO_C" >&6
3878else
3879  ac_path_EGREP_found=false
3880# Loop through the user's path and test for each of PROGNAME-LIST
3881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3883do
3884  IFS=$as_save_IFS
3885  test -z "$as_dir" && as_dir=.
3886  for ac_prog in egrep; do
3887  for ac_exec_ext in '' $ac_executable_extensions; do
3888    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3889    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3890    # Check for GNU ac_path_EGREP and select it if it is found.
3891  # Check for GNU $ac_path_EGREP
3892case `"$ac_path_EGREP" --version 2>&1` in
3893*GNU*)
3894  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3895*)
3896  ac_count=0
3897  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3898  while :
3899  do
3900    cat "conftest.in" "conftest.in" >"conftest.tmp"
3901    mv "conftest.tmp" "conftest.in"
3902    cp "conftest.in" "conftest.nl"
3903    echo 'EGREP' >> "conftest.nl"
3904    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3905    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3906    ac_count=`expr $ac_count + 1`
3907    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3908      # Best one so far, save it but keep looking for a better one
3909      ac_cv_path_EGREP="$ac_path_EGREP"
3910      ac_path_EGREP_max=$ac_count
3911    fi
3912    # 10*(2^10) chars as input seems more than enough
3913    test $ac_count -gt 10 && break
3914  done
3915  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3916esac
3917
3918
3919    $ac_path_EGREP_found && break 3
3920  done
3921done
3922
3923done
3924IFS=$as_save_IFS
3925
3926
3927fi
3928
3929EGREP="$ac_cv_path_EGREP"
3930if test -z "$EGREP"; then
3931  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3932echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3933   { (exit 1); exit 1; }; }
3934fi
3935
3936else
3937  ac_cv_path_EGREP=$EGREP
3938fi
3939
3940
3941   fi
3942fi
3943{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3944echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3945 EGREP="$ac_cv_path_EGREP"
3946
3947
3948
3949# Check whether --with-gnu-ld was given.
3950if test "${with_gnu_ld+set}" = set; then
3951  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3952else
3953  with_gnu_ld=no
3954fi
3955
3956ac_prog=ld
3957if test "$GCC" = yes; then
3958  # Check if gcc -print-prog-name=ld gives a path.
3959  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3960echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3961  case $host in
3962  *-*-mingw*)
3963    # gcc leaves a trailing carriage return which upsets mingw
3964    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3965  *)
3966    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3967  esac
3968  case $ac_prog in
3969    # Accept absolute paths.
3970    [\\/]* | ?:[\\/]*)
3971      re_direlt='/[^/][^/]*/\.\./'
3972      # Canonicalize the pathname of ld
3973      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3974      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3975	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3976      done
3977      test -z "$LD" && LD="$ac_prog"
3978      ;;
3979  "")
3980    # If it fails, then pretend we aren't using GCC.
3981    ac_prog=ld
3982    ;;
3983  *)
3984    # If it is relative, then search for the first ld in PATH.
3985    with_gnu_ld=unknown
3986    ;;
3987  esac
3988elif test "$with_gnu_ld" = yes; then
3989  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3990echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3991else
3992  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3993echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3994fi
3995if test "${lt_cv_path_LD+set}" = set; then
3996  echo $ECHO_N "(cached) $ECHO_C" >&6
3997else
3998  if test -z "$LD"; then
3999  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4000  for ac_dir in $PATH; do
4001    IFS="$lt_save_ifs"
4002    test -z "$ac_dir" && ac_dir=.
4003    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4004      lt_cv_path_LD="$ac_dir/$ac_prog"
4005      # Check to see if the program is GNU ld.  I'd rather use --version,
4006      # but apparently some variants of GNU ld only accept -v.
4007      # Break only if it was the GNU/non-GNU ld that we prefer.
4008      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4009      *GNU* | *'with BFD'*)
4010	test "$with_gnu_ld" != no && break
4011	;;
4012      *)
4013	test "$with_gnu_ld" != yes && break
4014	;;
4015      esac
4016    fi
4017  done
4018  IFS="$lt_save_ifs"
4019else
4020  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4021fi
4022fi
4023
4024LD="$lt_cv_path_LD"
4025if test -n "$LD"; then
4026  { echo "$as_me:$LINENO: result: $LD" >&5
4027echo "${ECHO_T}$LD" >&6; }
4028else
4029  { echo "$as_me:$LINENO: result: no" >&5
4030echo "${ECHO_T}no" >&6; }
4031fi
4032test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4033echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4034   { (exit 1); exit 1; }; }
4035{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4036echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4037if test "${lt_cv_prog_gnu_ld+set}" = set; then
4038  echo $ECHO_N "(cached) $ECHO_C" >&6
4039else
4040  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4041case `$LD -v 2>&1 </dev/null` in
4042*GNU* | *'with BFD'*)
4043  lt_cv_prog_gnu_ld=yes
4044  ;;
4045*)
4046  lt_cv_prog_gnu_ld=no
4047  ;;
4048esac
4049fi
4050{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4051echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4052with_gnu_ld=$lt_cv_prog_gnu_ld
4053
4054
4055{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4056echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4057if test "${lt_cv_ld_reload_flag+set}" = set; then
4058  echo $ECHO_N "(cached) $ECHO_C" >&6
4059else
4060  lt_cv_ld_reload_flag='-r'
4061fi
4062{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4063echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4064reload_flag=$lt_cv_ld_reload_flag
4065case $reload_flag in
4066"" | " "*) ;;
4067*) reload_flag=" $reload_flag" ;;
4068esac
4069reload_cmds='$LD$reload_flag -o $output$reload_objs'
4070case $host_os in
4071  darwin*)
4072    if test "$GCC" = yes; then
4073      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4074    else
4075      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4076    fi
4077    ;;
4078esac
4079
4080{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4081echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4082if test "${lt_cv_path_NM+set}" = set; then
4083  echo $ECHO_N "(cached) $ECHO_C" >&6
4084else
4085  if test -n "$NM"; then
4086  # Let the user override the test.
4087  lt_cv_path_NM="$NM"
4088else
4089  lt_nm_to_check="${ac_tool_prefix}nm"
4090  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4091    lt_nm_to_check="$lt_nm_to_check nm"
4092  fi
4093  for lt_tmp_nm in $lt_nm_to_check; do
4094    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4095    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4096      IFS="$lt_save_ifs"
4097      test -z "$ac_dir" && ac_dir=.
4098      tmp_nm="$ac_dir/$lt_tmp_nm"
4099      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4100	# Check to see if the nm accepts a BSD-compat flag.
4101	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4102	#   nm: unknown option "B" ignored
4103	# Tru64's nm complains that /dev/null is an invalid object file
4104	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4105	*/dev/null* | *'Invalid file or object type'*)
4106	  lt_cv_path_NM="$tmp_nm -B"
4107	  break
4108	  ;;
4109	*)
4110	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4111	  */dev/null*)
4112	    lt_cv_path_NM="$tmp_nm -p"
4113	    break
4114	    ;;
4115	  *)
4116	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4117	    continue # so that we can try to find one that supports BSD flags
4118	    ;;
4119	  esac
4120	  ;;
4121	esac
4122      fi
4123    done
4124    IFS="$lt_save_ifs"
4125  done
4126  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4127fi
4128fi
4129{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4130echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4131NM="$lt_cv_path_NM"
4132
4133{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4134echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4135LN_S=$as_ln_s
4136if test "$LN_S" = "ln -s"; then
4137  { echo "$as_me:$LINENO: result: yes" >&5
4138echo "${ECHO_T}yes" >&6; }
4139else
4140  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4141echo "${ECHO_T}no, using $LN_S" >&6; }
4142fi
4143
4144{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4145echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4146if test "${lt_cv_deplibs_check_method+set}" = set; then
4147  echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149  lt_cv_file_magic_cmd='$MAGIC_CMD'
4150lt_cv_file_magic_test_file=
4151lt_cv_deplibs_check_method='unknown'
4152# Need to set the preceding variable on all platforms that support
4153# interlibrary dependencies.
4154# 'none' -- dependencies not supported.
4155# `unknown' -- same as none, but documents that we really don't know.
4156# 'pass_all' -- all dependencies passed with no checks.
4157# 'test_compile' -- check by making test program.
4158# 'file_magic [[regex]]' -- check by looking for files in library path
4159# which responds to the $file_magic_cmd with a given extended regex.
4160# If you have `file' or equivalent on your system and you're not sure
4161# whether `pass_all' will *always* work, you probably want this one.
4162
4163case $host_os in
4164aix4* | aix5*)
4165  lt_cv_deplibs_check_method=pass_all
4166  ;;
4167
4168beos*)
4169  lt_cv_deplibs_check_method=pass_all
4170  ;;
4171
4172bsdi[45]*)
4173  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4174  lt_cv_file_magic_cmd='/usr/bin/file -L'
4175  lt_cv_file_magic_test_file=/shlib/libc.so
4176  ;;
4177
4178cygwin*)
4179  # func_win32_libid is a shell function defined in ltmain.sh
4180  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4181  lt_cv_file_magic_cmd='func_win32_libid'
4182  ;;
4183
4184mingw* | pw32*)
4185  # Base MSYS/MinGW do not provide the 'file' command needed by
4186  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4187  # unless we find 'file', for example because we are cross-compiling.
4188  if ( file / ) >/dev/null 2>&1; then
4189    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4190    lt_cv_file_magic_cmd='func_win32_libid'
4191  else
4192    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4193    lt_cv_file_magic_cmd='$OBJDUMP -f'
4194  fi
4195  ;;
4196
4197darwin* | rhapsody*)
4198  lt_cv_deplibs_check_method=pass_all
4199  ;;
4200
4201freebsd* | dragonfly*)
4202  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4203    case $host_cpu in
4204    i*86 )
4205      # Not sure whether the presence of OpenBSD here was a mistake.
4206      # Let's accept both of them until this is cleared up.
4207      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4208      lt_cv_file_magic_cmd=/usr/bin/file
4209      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4210      ;;
4211    esac
4212  else
4213    lt_cv_deplibs_check_method=pass_all
4214  fi
4215  ;;
4216
4217gnu*)
4218  lt_cv_deplibs_check_method=pass_all
4219  ;;
4220
4221hpux10.20* | hpux11*)
4222  lt_cv_file_magic_cmd=/usr/bin/file
4223  case $host_cpu in
4224  ia64*)
4225    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4226    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4227    ;;
4228  hppa*64*)
4229    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]'
4230    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4231    ;;
4232  *)
4233    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4234    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4235    ;;
4236  esac
4237  ;;
4238
4239interix[3-9]*)
4240  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4241  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4242  ;;
4243
4244irix5* | irix6* | nonstopux*)
4245  case $LD in
4246  *-32|*"-32 ") libmagic=32-bit;;
4247  *-n32|*"-n32 ") libmagic=N32;;
4248  *-64|*"-64 ") libmagic=64-bit;;
4249  *) libmagic=never-match;;
4250  esac
4251  lt_cv_deplibs_check_method=pass_all
4252  ;;
4253
4254# This must be Linux ELF.
4255linux* | k*bsd*-gnu)
4256  lt_cv_deplibs_check_method=pass_all
4257  ;;
4258
4259netbsd*)
4260  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4261    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4262  else
4263    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4264  fi
4265  ;;
4266
4267newos6*)
4268  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4269  lt_cv_file_magic_cmd=/usr/bin/file
4270  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4271  ;;
4272
4273nto-qnx*)
4274  lt_cv_deplibs_check_method=unknown
4275  ;;
4276
4277openbsd*)
4278  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4279    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4280  else
4281    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4282  fi
4283  ;;
4284
4285osf3* | osf4* | osf5*)
4286  lt_cv_deplibs_check_method=pass_all
4287  ;;
4288
4289rdos*)
4290  lt_cv_deplibs_check_method=pass_all
4291  ;;
4292
4293solaris*)
4294  lt_cv_deplibs_check_method=pass_all
4295  ;;
4296
4297sysv4 | sysv4.3*)
4298  case $host_vendor in
4299  motorola)
4300    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]'
4301    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4302    ;;
4303  ncr)
4304    lt_cv_deplibs_check_method=pass_all
4305    ;;
4306  sequent)
4307    lt_cv_file_magic_cmd='/bin/file'
4308    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4309    ;;
4310  sni)
4311    lt_cv_file_magic_cmd='/bin/file'
4312    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4313    lt_cv_file_magic_test_file=/lib/libc.so
4314    ;;
4315  siemens)
4316    lt_cv_deplibs_check_method=pass_all
4317    ;;
4318  pc)
4319    lt_cv_deplibs_check_method=pass_all
4320    ;;
4321  esac
4322  ;;
4323
4324sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4325  lt_cv_deplibs_check_method=pass_all
4326  ;;
4327esac
4328
4329fi
4330{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4331echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4332file_magic_cmd=$lt_cv_file_magic_cmd
4333deplibs_check_method=$lt_cv_deplibs_check_method
4334test -z "$deplibs_check_method" && deplibs_check_method=unknown
4335
4336
4337
4338
4339# If no C compiler was specified, use CC.
4340LTCC=${LTCC-"$CC"}
4341
4342# If no C compiler flags were specified, use CFLAGS.
4343LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4344
4345# Allow CC to be a program name with arguments.
4346compiler=$CC
4347
4348
4349# Check whether --enable-libtool-lock was given.
4350if test "${enable_libtool_lock+set}" = set; then
4351  enableval=$enable_libtool_lock;
4352fi
4353
4354test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4355
4356# Some flags need to be propagated to the compiler or linker for good
4357# libtool support.
4358case $host in
4359ia64-*-hpux*)
4360  # Find out which ABI we are using.
4361  echo 'int i;' > conftest.$ac_ext
4362  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4363  (eval $ac_compile) 2>&5
4364  ac_status=$?
4365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366  (exit $ac_status); }; then
4367    case `/usr/bin/file conftest.$ac_objext` in
4368    *ELF-32*)
4369      HPUX_IA64_MODE="32"
4370      ;;
4371    *ELF-64*)
4372      HPUX_IA64_MODE="64"
4373      ;;
4374    esac
4375  fi
4376  rm -rf conftest*
4377  ;;
4378*-*-irix6*)
4379  # Find out which ABI we are using.
4380  echo '#line 4380 "configure"' > conftest.$ac_ext
4381  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4382  (eval $ac_compile) 2>&5
4383  ac_status=$?
4384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385  (exit $ac_status); }; then
4386   if test "$lt_cv_prog_gnu_ld" = yes; then
4387    case `/usr/bin/file conftest.$ac_objext` in
4388    *32-bit*)
4389      LD="${LD-ld} -melf32bsmip"
4390      ;;
4391    *N32*)
4392      LD="${LD-ld} -melf32bmipn32"
4393      ;;
4394    *64-bit*)
4395      LD="${LD-ld} -melf64bmip"
4396      ;;
4397    esac
4398   else
4399    case `/usr/bin/file conftest.$ac_objext` in
4400    *32-bit*)
4401      LD="${LD-ld} -32"
4402      ;;
4403    *N32*)
4404      LD="${LD-ld} -n32"
4405      ;;
4406    *64-bit*)
4407      LD="${LD-ld} -64"
4408      ;;
4409    esac
4410   fi
4411  fi
4412  rm -rf conftest*
4413  ;;
4414
4415x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4416s390*-*linux*|sparc*-*linux*)
4417  # Find out which ABI we are using.
4418  echo 'int i;' > conftest.$ac_ext
4419  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420  (eval $ac_compile) 2>&5
4421  ac_status=$?
4422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423  (exit $ac_status); }; then
4424    case `/usr/bin/file conftest.o` in
4425    *32-bit*)
4426      case $host in
4427        x86_64-*kfreebsd*-gnu)
4428          LD="${LD-ld} -m elf_i386_fbsd"
4429          ;;
4430        x86_64-*linux*)
4431          LD="${LD-ld} -m elf_i386"
4432          ;;
4433        ppc64-*linux*|powerpc64-*linux*)
4434          LD="${LD-ld} -m elf32ppclinux"
4435          ;;
4436        s390x-*linux*)
4437          LD="${LD-ld} -m elf_s390"
4438          ;;
4439        sparc64-*linux*)
4440          LD="${LD-ld} -m elf32_sparc"
4441          ;;
4442      esac
4443      ;;
4444    *64-bit*)
4445      libsuff=64
4446      case $host in
4447        x86_64-*kfreebsd*-gnu)
4448          LD="${LD-ld} -m elf_x86_64_fbsd"
4449          ;;
4450        x86_64-*linux*)
4451          LD="${LD-ld} -m elf_x86_64"
4452          ;;
4453        ppc*-*linux*|powerpc*-*linux*)
4454          LD="${LD-ld} -m elf64ppc"
4455          ;;
4456        s390*-*linux*)
4457          LD="${LD-ld} -m elf64_s390"
4458          ;;
4459        sparc*-*linux*)
4460          LD="${LD-ld} -m elf64_sparc"
4461          ;;
4462      esac
4463      ;;
4464    esac
4465  fi
4466  rm -rf conftest*
4467  ;;
4468
4469*-*-sco3.2v5*)
4470  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4471  SAVE_CFLAGS="$CFLAGS"
4472  CFLAGS="$CFLAGS -belf"
4473  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4474echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4475if test "${lt_cv_cc_needs_belf+set}" = set; then
4476  echo $ECHO_N "(cached) $ECHO_C" >&6
4477else
4478  ac_ext=c
4479ac_cpp='$CPP $CPPFLAGS'
4480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4482ac_compiler_gnu=$ac_cv_c_compiler_gnu
4483
4484     cat >conftest.$ac_ext <<_ACEOF
4485/* confdefs.h.  */
4486_ACEOF
4487cat confdefs.h >>conftest.$ac_ext
4488cat >>conftest.$ac_ext <<_ACEOF
4489/* end confdefs.h.  */
4490
4491int
4492main ()
4493{
4494
4495  ;
4496  return 0;
4497}
4498_ACEOF
4499rm -f conftest.$ac_objext conftest$ac_exeext
4500if { (ac_try="$ac_link"
4501case "(($ac_try" in
4502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503  *) ac_try_echo=$ac_try;;
4504esac
4505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506  (eval "$ac_link") 2>conftest.er1
4507  ac_status=$?
4508  grep -v '^ *+' conftest.er1 >conftest.err
4509  rm -f conftest.er1
4510  cat conftest.err >&5
4511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512  (exit $ac_status); } && {
4513	 test -z "$ac_c_werror_flag" ||
4514	 test ! -s conftest.err
4515       } && test -s conftest$ac_exeext &&
4516       $as_test_x conftest$ac_exeext; then
4517  lt_cv_cc_needs_belf=yes
4518else
4519  echo "$as_me: failed program was:" >&5
4520sed 's/^/| /' conftest.$ac_ext >&5
4521
4522	lt_cv_cc_needs_belf=no
4523fi
4524
4525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4526      conftest$ac_exeext conftest.$ac_ext
4527     ac_ext=c
4528ac_cpp='$CPP $CPPFLAGS'
4529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531ac_compiler_gnu=$ac_cv_c_compiler_gnu
4532
4533fi
4534{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4535echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4536  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4537    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4538    CFLAGS="$SAVE_CFLAGS"
4539  fi
4540  ;;
4541sparc*-*solaris*)
4542  # Find out which ABI we are using.
4543  echo 'int i;' > conftest.$ac_ext
4544  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545  (eval $ac_compile) 2>&5
4546  ac_status=$?
4547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548  (exit $ac_status); }; then
4549    case `/usr/bin/file conftest.o` in
4550    *64-bit*)
4551      case $lt_cv_prog_gnu_ld in
4552      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4553      *)    LD="${LD-ld} -64" ;;
4554      esac
4555      ;;
4556    esac
4557  fi
4558  rm -rf conftest*
4559  ;;
4560
4561
4562esac
4563
4564need_locks="$enable_libtool_lock"
4565
4566
4567ac_ext=c
4568ac_cpp='$CPP $CPPFLAGS'
4569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571ac_compiler_gnu=$ac_cv_c_compiler_gnu
4572{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4573echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4574# On Suns, sometimes $CPP names a directory.
4575if test -n "$CPP" && test -d "$CPP"; then
4576  CPP=
4577fi
4578if test -z "$CPP"; then
4579  if test "${ac_cv_prog_CPP+set}" = set; then
4580  echo $ECHO_N "(cached) $ECHO_C" >&6
4581else
4582      # Double quotes because CPP needs to be expanded
4583    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4584    do
4585      ac_preproc_ok=false
4586for ac_c_preproc_warn_flag in '' yes
4587do
4588  # Use a header file that comes with gcc, so configuring glibc
4589  # with a fresh cross-compiler works.
4590  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4591  # <limits.h> exists even on freestanding compilers.
4592  # On the NeXT, cc -E runs the code through the compiler's parser,
4593  # not just through cpp. "Syntax error" is here to catch this case.
4594  cat >conftest.$ac_ext <<_ACEOF
4595/* confdefs.h.  */
4596_ACEOF
4597cat confdefs.h >>conftest.$ac_ext
4598cat >>conftest.$ac_ext <<_ACEOF
4599/* end confdefs.h.  */
4600#ifdef __STDC__
4601# include <limits.h>
4602#else
4603# include <assert.h>
4604#endif
4605		     Syntax error
4606_ACEOF
4607if { (ac_try="$ac_cpp conftest.$ac_ext"
4608case "(($ac_try" in
4609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610  *) ac_try_echo=$ac_try;;
4611esac
4612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4614  ac_status=$?
4615  grep -v '^ *+' conftest.er1 >conftest.err
4616  rm -f conftest.er1
4617  cat conftest.err >&5
4618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619  (exit $ac_status); } >/dev/null && {
4620	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4621	 test ! -s conftest.err
4622       }; then
4623  :
4624else
4625  echo "$as_me: failed program was:" >&5
4626sed 's/^/| /' conftest.$ac_ext >&5
4627
4628  # Broken: fails on valid input.
4629continue
4630fi
4631
4632rm -f conftest.err conftest.$ac_ext
4633
4634  # OK, works on sane cases.  Now check whether nonexistent headers
4635  # can be detected and how.
4636  cat >conftest.$ac_ext <<_ACEOF
4637/* confdefs.h.  */
4638_ACEOF
4639cat confdefs.h >>conftest.$ac_ext
4640cat >>conftest.$ac_ext <<_ACEOF
4641/* end confdefs.h.  */
4642#include <ac_nonexistent.h>
4643_ACEOF
4644if { (ac_try="$ac_cpp conftest.$ac_ext"
4645case "(($ac_try" in
4646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647  *) ac_try_echo=$ac_try;;
4648esac
4649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4650  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4651  ac_status=$?
4652  grep -v '^ *+' conftest.er1 >conftest.err
4653  rm -f conftest.er1
4654  cat conftest.err >&5
4655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656  (exit $ac_status); } >/dev/null && {
4657	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4658	 test ! -s conftest.err
4659       }; then
4660  # Broken: success on invalid input.
4661continue
4662else
4663  echo "$as_me: failed program was:" >&5
4664sed 's/^/| /' conftest.$ac_ext >&5
4665
4666  # Passes both tests.
4667ac_preproc_ok=:
4668break
4669fi
4670
4671rm -f conftest.err conftest.$ac_ext
4672
4673done
4674# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4675rm -f conftest.err conftest.$ac_ext
4676if $ac_preproc_ok; then
4677  break
4678fi
4679
4680    done
4681    ac_cv_prog_CPP=$CPP
4682
4683fi
4684  CPP=$ac_cv_prog_CPP
4685else
4686  ac_cv_prog_CPP=$CPP
4687fi
4688{ echo "$as_me:$LINENO: result: $CPP" >&5
4689echo "${ECHO_T}$CPP" >&6; }
4690ac_preproc_ok=false
4691for ac_c_preproc_warn_flag in '' yes
4692do
4693  # Use a header file that comes with gcc, so configuring glibc
4694  # with a fresh cross-compiler works.
4695  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4696  # <limits.h> exists even on freestanding compilers.
4697  # On the NeXT, cc -E runs the code through the compiler's parser,
4698  # not just through cpp. "Syntax error" is here to catch this case.
4699  cat >conftest.$ac_ext <<_ACEOF
4700/* confdefs.h.  */
4701_ACEOF
4702cat confdefs.h >>conftest.$ac_ext
4703cat >>conftest.$ac_ext <<_ACEOF
4704/* end confdefs.h.  */
4705#ifdef __STDC__
4706# include <limits.h>
4707#else
4708# include <assert.h>
4709#endif
4710		     Syntax error
4711_ACEOF
4712if { (ac_try="$ac_cpp conftest.$ac_ext"
4713case "(($ac_try" in
4714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715  *) ac_try_echo=$ac_try;;
4716esac
4717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4718  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4719  ac_status=$?
4720  grep -v '^ *+' conftest.er1 >conftest.err
4721  rm -f conftest.er1
4722  cat conftest.err >&5
4723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724  (exit $ac_status); } >/dev/null && {
4725	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4726	 test ! -s conftest.err
4727       }; then
4728  :
4729else
4730  echo "$as_me: failed program was:" >&5
4731sed 's/^/| /' conftest.$ac_ext >&5
4732
4733  # Broken: fails on valid input.
4734continue
4735fi
4736
4737rm -f conftest.err conftest.$ac_ext
4738
4739  # OK, works on sane cases.  Now check whether nonexistent headers
4740  # can be detected and how.
4741  cat >conftest.$ac_ext <<_ACEOF
4742/* confdefs.h.  */
4743_ACEOF
4744cat confdefs.h >>conftest.$ac_ext
4745cat >>conftest.$ac_ext <<_ACEOF
4746/* end confdefs.h.  */
4747#include <ac_nonexistent.h>
4748_ACEOF
4749if { (ac_try="$ac_cpp conftest.$ac_ext"
4750case "(($ac_try" in
4751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752  *) ac_try_echo=$ac_try;;
4753esac
4754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4756  ac_status=$?
4757  grep -v '^ *+' conftest.er1 >conftest.err
4758  rm -f conftest.er1
4759  cat conftest.err >&5
4760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761  (exit $ac_status); } >/dev/null && {
4762	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4763	 test ! -s conftest.err
4764       }; then
4765  # Broken: success on invalid input.
4766continue
4767else
4768  echo "$as_me: failed program was:" >&5
4769sed 's/^/| /' conftest.$ac_ext >&5
4770
4771  # Passes both tests.
4772ac_preproc_ok=:
4773break
4774fi
4775
4776rm -f conftest.err conftest.$ac_ext
4777
4778done
4779# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4780rm -f conftest.err conftest.$ac_ext
4781if $ac_preproc_ok; then
4782  :
4783else
4784  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4785See \`config.log' for more details." >&5
4786echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4787See \`config.log' for more details." >&2;}
4788   { (exit 1); exit 1; }; }
4789fi
4790
4791ac_ext=c
4792ac_cpp='$CPP $CPPFLAGS'
4793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795ac_compiler_gnu=$ac_cv_c_compiler_gnu
4796
4797
4798{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4799echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4800if test "${ac_cv_header_stdc+set}" = set; then
4801  echo $ECHO_N "(cached) $ECHO_C" >&6
4802else
4803  cat >conftest.$ac_ext <<_ACEOF
4804/* confdefs.h.  */
4805_ACEOF
4806cat confdefs.h >>conftest.$ac_ext
4807cat >>conftest.$ac_ext <<_ACEOF
4808/* end confdefs.h.  */
4809#include <stdlib.h>
4810#include <stdarg.h>
4811#include <string.h>
4812#include <float.h>
4813
4814int
4815main ()
4816{
4817
4818  ;
4819  return 0;
4820}
4821_ACEOF
4822rm -f conftest.$ac_objext
4823if { (ac_try="$ac_compile"
4824case "(($ac_try" in
4825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826  *) ac_try_echo=$ac_try;;
4827esac
4828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4829  (eval "$ac_compile") 2>conftest.er1
4830  ac_status=$?
4831  grep -v '^ *+' conftest.er1 >conftest.err
4832  rm -f conftest.er1
4833  cat conftest.err >&5
4834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835  (exit $ac_status); } && {
4836	 test -z "$ac_c_werror_flag" ||
4837	 test ! -s conftest.err
4838       } && test -s conftest.$ac_objext; then
4839  ac_cv_header_stdc=yes
4840else
4841  echo "$as_me: failed program was:" >&5
4842sed 's/^/| /' conftest.$ac_ext >&5
4843
4844	ac_cv_header_stdc=no
4845fi
4846
4847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848
4849if test $ac_cv_header_stdc = yes; then
4850  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4851  cat >conftest.$ac_ext <<_ACEOF
4852/* confdefs.h.  */
4853_ACEOF
4854cat confdefs.h >>conftest.$ac_ext
4855cat >>conftest.$ac_ext <<_ACEOF
4856/* end confdefs.h.  */
4857#include <string.h>
4858
4859_ACEOF
4860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4861  $EGREP "memchr" >/dev/null 2>&1; then
4862  :
4863else
4864  ac_cv_header_stdc=no
4865fi
4866rm -f conftest*
4867
4868fi
4869
4870if test $ac_cv_header_stdc = yes; then
4871  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4872  cat >conftest.$ac_ext <<_ACEOF
4873/* confdefs.h.  */
4874_ACEOF
4875cat confdefs.h >>conftest.$ac_ext
4876cat >>conftest.$ac_ext <<_ACEOF
4877/* end confdefs.h.  */
4878#include <stdlib.h>
4879
4880_ACEOF
4881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4882  $EGREP "free" >/dev/null 2>&1; then
4883  :
4884else
4885  ac_cv_header_stdc=no
4886fi
4887rm -f conftest*
4888
4889fi
4890
4891if test $ac_cv_header_stdc = yes; then
4892  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4893  if test "$cross_compiling" = yes; then
4894  :
4895else
4896  cat >conftest.$ac_ext <<_ACEOF
4897/* confdefs.h.  */
4898_ACEOF
4899cat confdefs.h >>conftest.$ac_ext
4900cat >>conftest.$ac_ext <<_ACEOF
4901/* end confdefs.h.  */
4902#include <ctype.h>
4903#include <stdlib.h>
4904#if ((' ' & 0x0FF) == 0x020)
4905# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4906# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4907#else
4908# define ISLOWER(c) \
4909		   (('a' <= (c) && (c) <= 'i') \
4910		     || ('j' <= (c) && (c) <= 'r') \
4911		     || ('s' <= (c) && (c) <= 'z'))
4912# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4913#endif
4914
4915#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4916int
4917main ()
4918{
4919  int i;
4920  for (i = 0; i < 256; i++)
4921    if (XOR (islower (i), ISLOWER (i))
4922	|| toupper (i) != TOUPPER (i))
4923      return 2;
4924  return 0;
4925}
4926_ACEOF
4927rm -f conftest$ac_exeext
4928if { (ac_try="$ac_link"
4929case "(($ac_try" in
4930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931  *) ac_try_echo=$ac_try;;
4932esac
4933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934  (eval "$ac_link") 2>&5
4935  ac_status=$?
4936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4938  { (case "(($ac_try" in
4939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940  *) ac_try_echo=$ac_try;;
4941esac
4942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943  (eval "$ac_try") 2>&5
4944  ac_status=$?
4945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946  (exit $ac_status); }; }; then
4947  :
4948else
4949  echo "$as_me: program exited with status $ac_status" >&5
4950echo "$as_me: failed program was:" >&5
4951sed 's/^/| /' conftest.$ac_ext >&5
4952
4953( exit $ac_status )
4954ac_cv_header_stdc=no
4955fi
4956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4957fi
4958
4959
4960fi
4961fi
4962{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4963echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4964if test $ac_cv_header_stdc = yes; then
4965
4966cat >>confdefs.h <<\_ACEOF
4967#define STDC_HEADERS 1
4968_ACEOF
4969
4970fi
4971
4972# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4983		  inttypes.h stdint.h unistd.h
4984do
4985as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4986{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4989  echo $ECHO_N "(cached) $ECHO_C" >&6
4990else
4991  cat >conftest.$ac_ext <<_ACEOF
4992/* confdefs.h.  */
4993_ACEOF
4994cat confdefs.h >>conftest.$ac_ext
4995cat >>conftest.$ac_ext <<_ACEOF
4996/* end confdefs.h.  */
4997$ac_includes_default
4998
4999#include <$ac_header>
5000_ACEOF
5001rm -f conftest.$ac_objext
5002if { (ac_try="$ac_compile"
5003case "(($ac_try" in
5004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005  *) ac_try_echo=$ac_try;;
5006esac
5007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5008  (eval "$ac_compile") 2>conftest.er1
5009  ac_status=$?
5010  grep -v '^ *+' conftest.er1 >conftest.err
5011  rm -f conftest.er1
5012  cat conftest.err >&5
5013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014  (exit $ac_status); } && {
5015	 test -z "$ac_c_werror_flag" ||
5016	 test ! -s conftest.err
5017       } && test -s conftest.$ac_objext; then
5018  eval "$as_ac_Header=yes"
5019else
5020  echo "$as_me: failed program was:" >&5
5021sed 's/^/| /' conftest.$ac_ext >&5
5022
5023	eval "$as_ac_Header=no"
5024fi
5025
5026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027fi
5028ac_res=`eval echo '${'$as_ac_Header'}'`
5029	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5030echo "${ECHO_T}$ac_res" >&6; }
5031if test `eval echo '${'$as_ac_Header'}'` = yes; then
5032  cat >>confdefs.h <<_ACEOF
5033#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5034_ACEOF
5035
5036fi
5037
5038done
5039
5040
5041
5042for ac_header in dlfcn.h
5043do
5044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5046  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5048if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5049  echo $ECHO_N "(cached) $ECHO_C" >&6
5050fi
5051ac_res=`eval echo '${'$as_ac_Header'}'`
5052	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5053echo "${ECHO_T}$ac_res" >&6; }
5054else
5055  # Is the header compilable?
5056{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5057echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5058cat >conftest.$ac_ext <<_ACEOF
5059/* confdefs.h.  */
5060_ACEOF
5061cat confdefs.h >>conftest.$ac_ext
5062cat >>conftest.$ac_ext <<_ACEOF
5063/* end confdefs.h.  */
5064$ac_includes_default
5065#include <$ac_header>
5066_ACEOF
5067rm -f conftest.$ac_objext
5068if { (ac_try="$ac_compile"
5069case "(($ac_try" in
5070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071  *) ac_try_echo=$ac_try;;
5072esac
5073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5074  (eval "$ac_compile") 2>conftest.er1
5075  ac_status=$?
5076  grep -v '^ *+' conftest.er1 >conftest.err
5077  rm -f conftest.er1
5078  cat conftest.err >&5
5079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080  (exit $ac_status); } && {
5081	 test -z "$ac_c_werror_flag" ||
5082	 test ! -s conftest.err
5083       } && test -s conftest.$ac_objext; then
5084  ac_header_compiler=yes
5085else
5086  echo "$as_me: failed program was:" >&5
5087sed 's/^/| /' conftest.$ac_ext >&5
5088
5089	ac_header_compiler=no
5090fi
5091
5092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5093{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5094echo "${ECHO_T}$ac_header_compiler" >&6; }
5095
5096# Is the header present?
5097{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5098echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5099cat >conftest.$ac_ext <<_ACEOF
5100/* confdefs.h.  */
5101_ACEOF
5102cat confdefs.h >>conftest.$ac_ext
5103cat >>conftest.$ac_ext <<_ACEOF
5104/* end confdefs.h.  */
5105#include <$ac_header>
5106_ACEOF
5107if { (ac_try="$ac_cpp conftest.$ac_ext"
5108case "(($ac_try" in
5109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5110  *) ac_try_echo=$ac_try;;
5111esac
5112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5113  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5114  ac_status=$?
5115  grep -v '^ *+' conftest.er1 >conftest.err
5116  rm -f conftest.er1
5117  cat conftest.err >&5
5118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119  (exit $ac_status); } >/dev/null && {
5120	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5121	 test ! -s conftest.err
5122       }; then
5123  ac_header_preproc=yes
5124else
5125  echo "$as_me: failed program was:" >&5
5126sed 's/^/| /' conftest.$ac_ext >&5
5127
5128  ac_header_preproc=no
5129fi
5130
5131rm -f conftest.err conftest.$ac_ext
5132{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5133echo "${ECHO_T}$ac_header_preproc" >&6; }
5134
5135# So?  What about this header?
5136case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5137  yes:no: )
5138    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5139echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5140    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5141echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5142    ac_header_preproc=yes
5143    ;;
5144  no:yes:* )
5145    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5146echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5147    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5148echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5149    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5150echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5151    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5152echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5153    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5154echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5155    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5156echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5157    ( cat <<\_ASBOX
5158## ---------------------------------------------------------------------- ##
5159## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5160## ---------------------------------------------------------------------- ##
5161_ASBOX
5162     ) | sed "s/^/$as_me: WARNING:     /" >&2
5163    ;;
5164esac
5165{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5168  echo $ECHO_N "(cached) $ECHO_C" >&6
5169else
5170  eval "$as_ac_Header=\$ac_header_preproc"
5171fi
5172ac_res=`eval echo '${'$as_ac_Header'}'`
5173	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5174echo "${ECHO_T}$ac_res" >&6; }
5175
5176fi
5177if test `eval echo '${'$as_ac_Header'}'` = yes; then
5178  cat >>confdefs.h <<_ACEOF
5179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5180_ACEOF
5181
5182fi
5183
5184done
5185
5186ac_ext=cpp
5187ac_cpp='$CXXCPP $CPPFLAGS'
5188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5191if test -z "$CXX"; then
5192  if test -n "$CCC"; then
5193    CXX=$CCC
5194  else
5195    if test -n "$ac_tool_prefix"; then
5196  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5197  do
5198    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5199set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5202if test "${ac_cv_prog_CXX+set}" = set; then
5203  echo $ECHO_N "(cached) $ECHO_C" >&6
5204else
5205  if test -n "$CXX"; then
5206  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5207else
5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211  IFS=$as_save_IFS
5212  test -z "$as_dir" && as_dir=.
5213  for ac_exec_ext in '' $ac_executable_extensions; do
5214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5216    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217    break 2
5218  fi
5219done
5220done
5221IFS=$as_save_IFS
5222
5223fi
5224fi
5225CXX=$ac_cv_prog_CXX
5226if test -n "$CXX"; then
5227  { echo "$as_me:$LINENO: result: $CXX" >&5
5228echo "${ECHO_T}$CXX" >&6; }
5229else
5230  { echo "$as_me:$LINENO: result: no" >&5
5231echo "${ECHO_T}no" >&6; }
5232fi
5233
5234
5235    test -n "$CXX" && break
5236  done
5237fi
5238if test -z "$CXX"; then
5239  ac_ct_CXX=$CXX
5240  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5241do
5242  # Extract the first word of "$ac_prog", so it can be a program name with args.
5243set dummy $ac_prog; ac_word=$2
5244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5246if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5247  echo $ECHO_N "(cached) $ECHO_C" >&6
5248else
5249  if test -n "$ac_ct_CXX"; then
5250  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5251else
5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255  IFS=$as_save_IFS
5256  test -z "$as_dir" && as_dir=.
5257  for ac_exec_ext in '' $ac_executable_extensions; do
5258  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259    ac_cv_prog_ac_ct_CXX="$ac_prog"
5260    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261    break 2
5262  fi
5263done
5264done
5265IFS=$as_save_IFS
5266
5267fi
5268fi
5269ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5270if test -n "$ac_ct_CXX"; then
5271  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5272echo "${ECHO_T}$ac_ct_CXX" >&6; }
5273else
5274  { echo "$as_me:$LINENO: result: no" >&5
5275echo "${ECHO_T}no" >&6; }
5276fi
5277
5278
5279  test -n "$ac_ct_CXX" && break
5280done
5281
5282  if test "x$ac_ct_CXX" = x; then
5283    CXX="g++"
5284  else
5285    case $cross_compiling:$ac_tool_warned in
5286yes:)
5287{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5288whose name does not start with the host triplet.  If you think this
5289configuration is useful to you, please write to autoconf@gnu.org." >&5
5290echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5291whose name does not start with the host triplet.  If you think this
5292configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5293ac_tool_warned=yes ;;
5294esac
5295    CXX=$ac_ct_CXX
5296  fi
5297fi
5298
5299  fi
5300fi
5301# Provide some information about the compiler.
5302echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5303ac_compiler=`set X $ac_compile; echo $2`
5304{ (ac_try="$ac_compiler --version >&5"
5305case "(($ac_try" in
5306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307  *) ac_try_echo=$ac_try;;
5308esac
5309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5310  (eval "$ac_compiler --version >&5") 2>&5
5311  ac_status=$?
5312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313  (exit $ac_status); }
5314{ (ac_try="$ac_compiler -v >&5"
5315case "(($ac_try" in
5316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317  *) ac_try_echo=$ac_try;;
5318esac
5319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320  (eval "$ac_compiler -v >&5") 2>&5
5321  ac_status=$?
5322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323  (exit $ac_status); }
5324{ (ac_try="$ac_compiler -V >&5"
5325case "(($ac_try" in
5326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327  *) ac_try_echo=$ac_try;;
5328esac
5329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330  (eval "$ac_compiler -V >&5") 2>&5
5331  ac_status=$?
5332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333  (exit $ac_status); }
5334
5335{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5336echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5337if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5338  echo $ECHO_N "(cached) $ECHO_C" >&6
5339else
5340  cat >conftest.$ac_ext <<_ACEOF
5341/* confdefs.h.  */
5342_ACEOF
5343cat confdefs.h >>conftest.$ac_ext
5344cat >>conftest.$ac_ext <<_ACEOF
5345/* end confdefs.h.  */
5346
5347int
5348main ()
5349{
5350#ifndef __GNUC__
5351       choke me
5352#endif
5353
5354  ;
5355  return 0;
5356}
5357_ACEOF
5358rm -f conftest.$ac_objext
5359if { (ac_try="$ac_compile"
5360case "(($ac_try" in
5361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362  *) ac_try_echo=$ac_try;;
5363esac
5364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365  (eval "$ac_compile") 2>conftest.er1
5366  ac_status=$?
5367  grep -v '^ *+' conftest.er1 >conftest.err
5368  rm -f conftest.er1
5369  cat conftest.err >&5
5370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371  (exit $ac_status); } && {
5372	 test -z "$ac_cxx_werror_flag" ||
5373	 test ! -s conftest.err
5374       } && test -s conftest.$ac_objext; then
5375  ac_compiler_gnu=yes
5376else
5377  echo "$as_me: failed program was:" >&5
5378sed 's/^/| /' conftest.$ac_ext >&5
5379
5380	ac_compiler_gnu=no
5381fi
5382
5383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5385
5386fi
5387{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5388echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5389GXX=`test $ac_compiler_gnu = yes && echo yes`
5390ac_test_CXXFLAGS=${CXXFLAGS+set}
5391ac_save_CXXFLAGS=$CXXFLAGS
5392{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5393echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5394if test "${ac_cv_prog_cxx_g+set}" = set; then
5395  echo $ECHO_N "(cached) $ECHO_C" >&6
5396else
5397  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5398   ac_cxx_werror_flag=yes
5399   ac_cv_prog_cxx_g=no
5400   CXXFLAGS="-g"
5401   cat >conftest.$ac_ext <<_ACEOF
5402/* confdefs.h.  */
5403_ACEOF
5404cat confdefs.h >>conftest.$ac_ext
5405cat >>conftest.$ac_ext <<_ACEOF
5406/* end confdefs.h.  */
5407
5408int
5409main ()
5410{
5411
5412  ;
5413  return 0;
5414}
5415_ACEOF
5416rm -f conftest.$ac_objext
5417if { (ac_try="$ac_compile"
5418case "(($ac_try" in
5419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5420  *) ac_try_echo=$ac_try;;
5421esac
5422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5423  (eval "$ac_compile") 2>conftest.er1
5424  ac_status=$?
5425  grep -v '^ *+' conftest.er1 >conftest.err
5426  rm -f conftest.er1
5427  cat conftest.err >&5
5428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429  (exit $ac_status); } && {
5430	 test -z "$ac_cxx_werror_flag" ||
5431	 test ! -s conftest.err
5432       } && test -s conftest.$ac_objext; then
5433  ac_cv_prog_cxx_g=yes
5434else
5435  echo "$as_me: failed program was:" >&5
5436sed 's/^/| /' conftest.$ac_ext >&5
5437
5438	CXXFLAGS=""
5439      cat >conftest.$ac_ext <<_ACEOF
5440/* confdefs.h.  */
5441_ACEOF
5442cat confdefs.h >>conftest.$ac_ext
5443cat >>conftest.$ac_ext <<_ACEOF
5444/* end confdefs.h.  */
5445
5446int
5447main ()
5448{
5449
5450  ;
5451  return 0;
5452}
5453_ACEOF
5454rm -f conftest.$ac_objext
5455if { (ac_try="$ac_compile"
5456case "(($ac_try" in
5457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458  *) ac_try_echo=$ac_try;;
5459esac
5460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461  (eval "$ac_compile") 2>conftest.er1
5462  ac_status=$?
5463  grep -v '^ *+' conftest.er1 >conftest.err
5464  rm -f conftest.er1
5465  cat conftest.err >&5
5466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467  (exit $ac_status); } && {
5468	 test -z "$ac_cxx_werror_flag" ||
5469	 test ! -s conftest.err
5470       } && test -s conftest.$ac_objext; then
5471  :
5472else
5473  echo "$as_me: failed program was:" >&5
5474sed 's/^/| /' conftest.$ac_ext >&5
5475
5476	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5477	 CXXFLAGS="-g"
5478	 cat >conftest.$ac_ext <<_ACEOF
5479/* confdefs.h.  */
5480_ACEOF
5481cat confdefs.h >>conftest.$ac_ext
5482cat >>conftest.$ac_ext <<_ACEOF
5483/* end confdefs.h.  */
5484
5485int
5486main ()
5487{
5488
5489  ;
5490  return 0;
5491}
5492_ACEOF
5493rm -f conftest.$ac_objext
5494if { (ac_try="$ac_compile"
5495case "(($ac_try" in
5496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497  *) ac_try_echo=$ac_try;;
5498esac
5499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5500  (eval "$ac_compile") 2>conftest.er1
5501  ac_status=$?
5502  grep -v '^ *+' conftest.er1 >conftest.err
5503  rm -f conftest.er1
5504  cat conftest.err >&5
5505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506  (exit $ac_status); } && {
5507	 test -z "$ac_cxx_werror_flag" ||
5508	 test ! -s conftest.err
5509       } && test -s conftest.$ac_objext; then
5510  ac_cv_prog_cxx_g=yes
5511else
5512  echo "$as_me: failed program was:" >&5
5513sed 's/^/| /' conftest.$ac_ext >&5
5514
5515
5516fi
5517
5518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519fi
5520
5521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522fi
5523
5524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5526fi
5527{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5528echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5529if test "$ac_test_CXXFLAGS" = set; then
5530  CXXFLAGS=$ac_save_CXXFLAGS
5531elif test $ac_cv_prog_cxx_g = yes; then
5532  if test "$GXX" = yes; then
5533    CXXFLAGS="-g -O2"
5534  else
5535    CXXFLAGS="-g"
5536  fi
5537else
5538  if test "$GXX" = yes; then
5539    CXXFLAGS="-O2"
5540  else
5541    CXXFLAGS=
5542  fi
5543fi
5544ac_ext=cpp
5545ac_cpp='$CXXCPP $CPPFLAGS'
5546ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5547ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5548ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5549
5550depcc="$CXX"  am_compiler_list=
5551
5552{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5553echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5554if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5555  echo $ECHO_N "(cached) $ECHO_C" >&6
5556else
5557  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5558  # We make a subdir and do the tests there.  Otherwise we can end up
5559  # making bogus files that we don't know about and never remove.  For
5560  # instance it was reported that on HP-UX the gcc test will end up
5561  # making a dummy file named `D' -- because `-MD' means `put the output
5562  # in D'.
5563  mkdir conftest.dir
5564  # Copy depcomp to subdir because otherwise we won't find it if we're
5565  # using a relative directory.
5566  cp "$am_depcomp" conftest.dir
5567  cd conftest.dir
5568  # We will build objects and dependencies in a subdirectory because
5569  # it helps to detect inapplicable dependency modes.  For instance
5570  # both Tru64's cc and ICC support -MD to output dependencies as a
5571  # side effect of compilation, but ICC will put the dependencies in
5572  # the current directory while Tru64 will put them in the object
5573  # directory.
5574  mkdir sub
5575
5576  am_cv_CXX_dependencies_compiler_type=none
5577  if test "$am_compiler_list" = ""; then
5578     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5579  fi
5580  for depmode in $am_compiler_list; do
5581    # Setup a source with many dependencies, because some compilers
5582    # like to wrap large dependency lists on column 80 (with \), and
5583    # we should not choose a depcomp mode which is confused by this.
5584    #
5585    # We need to recreate these files for each test, as the compiler may
5586    # overwrite some of them when testing with obscure command lines.
5587    # This happens at least with the AIX C compiler.
5588    : > sub/conftest.c
5589    for i in 1 2 3 4 5 6; do
5590      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5591      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5592      # Solaris 8's {/usr,}/bin/sh.
5593      touch sub/conftst$i.h
5594    done
5595    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5596
5597    case $depmode in
5598    nosideeffect)
5599      # after this tag, mechanisms are not by side-effect, so they'll
5600      # only be used when explicitly requested
5601      if test "x$enable_dependency_tracking" = xyes; then
5602	continue
5603      else
5604	break
5605      fi
5606      ;;
5607    none) break ;;
5608    esac
5609    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5610    # mode.  It turns out that the SunPro C++ compiler does not properly
5611    # handle `-M -o', and we need to detect this.
5612    if depmode=$depmode \
5613       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5614       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5615       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5616         >/dev/null 2>conftest.err &&
5617       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5618       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5619       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5620       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5621      # icc doesn't choke on unknown options, it will just issue warnings
5622      # or remarks (even with -Werror).  So we grep stderr for any message
5623      # that says an option was ignored or not supported.
5624      # When given -MP, icc 7.0 and 7.1 complain thusly:
5625      #   icc: Command line warning: ignoring option '-M'; no argument required
5626      # The diagnosis changed in icc 8.0:
5627      #   icc: Command line remark: option '-MP' not supported
5628      if (grep 'ignoring option' conftest.err ||
5629          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5630        am_cv_CXX_dependencies_compiler_type=$depmode
5631        break
5632      fi
5633    fi
5634  done
5635
5636  cd ..
5637  rm -rf conftest.dir
5638else
5639  am_cv_CXX_dependencies_compiler_type=none
5640fi
5641
5642fi
5643{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5644echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5645CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5646
5647 if
5648  test "x$enable_dependency_tracking" != xno \
5649  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5650  am__fastdepCXX_TRUE=
5651  am__fastdepCXX_FALSE='#'
5652else
5653  am__fastdepCXX_TRUE='#'
5654  am__fastdepCXX_FALSE=
5655fi
5656
5657
5658
5659
5660if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5661    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5662    (test "X$CXX" != "Xg++"))) ; then
5663  ac_ext=cpp
5664ac_cpp='$CXXCPP $CPPFLAGS'
5665ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5666ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5667ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5668{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5669echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5670if test -z "$CXXCPP"; then
5671  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5672  echo $ECHO_N "(cached) $ECHO_C" >&6
5673else
5674      # Double quotes because CXXCPP needs to be expanded
5675    for CXXCPP in "$CXX -E" "/lib/cpp"
5676    do
5677      ac_preproc_ok=false
5678for ac_cxx_preproc_warn_flag in '' yes
5679do
5680  # Use a header file that comes with gcc, so configuring glibc
5681  # with a fresh cross-compiler works.
5682  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5683  # <limits.h> exists even on freestanding compilers.
5684  # On the NeXT, cc -E runs the code through the compiler's parser,
5685  # not just through cpp. "Syntax error" is here to catch this case.
5686  cat >conftest.$ac_ext <<_ACEOF
5687/* confdefs.h.  */
5688_ACEOF
5689cat confdefs.h >>conftest.$ac_ext
5690cat >>conftest.$ac_ext <<_ACEOF
5691/* end confdefs.h.  */
5692#ifdef __STDC__
5693# include <limits.h>
5694#else
5695# include <assert.h>
5696#endif
5697		     Syntax error
5698_ACEOF
5699if { (ac_try="$ac_cpp conftest.$ac_ext"
5700case "(($ac_try" in
5701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702  *) ac_try_echo=$ac_try;;
5703esac
5704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5706  ac_status=$?
5707  grep -v '^ *+' conftest.er1 >conftest.err
5708  rm -f conftest.er1
5709  cat conftest.err >&5
5710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711  (exit $ac_status); } >/dev/null && {
5712	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5713	 test ! -s conftest.err
5714       }; then
5715  :
5716else
5717  echo "$as_me: failed program was:" >&5
5718sed 's/^/| /' conftest.$ac_ext >&5
5719
5720  # Broken: fails on valid input.
5721continue
5722fi
5723
5724rm -f conftest.err conftest.$ac_ext
5725
5726  # OK, works on sane cases.  Now check whether nonexistent headers
5727  # can be detected and how.
5728  cat >conftest.$ac_ext <<_ACEOF
5729/* confdefs.h.  */
5730_ACEOF
5731cat confdefs.h >>conftest.$ac_ext
5732cat >>conftest.$ac_ext <<_ACEOF
5733/* end confdefs.h.  */
5734#include <ac_nonexistent.h>
5735_ACEOF
5736if { (ac_try="$ac_cpp conftest.$ac_ext"
5737case "(($ac_try" in
5738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739  *) ac_try_echo=$ac_try;;
5740esac
5741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5743  ac_status=$?
5744  grep -v '^ *+' conftest.er1 >conftest.err
5745  rm -f conftest.er1
5746  cat conftest.err >&5
5747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748  (exit $ac_status); } >/dev/null && {
5749	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5750	 test ! -s conftest.err
5751       }; then
5752  # Broken: success on invalid input.
5753continue
5754else
5755  echo "$as_me: failed program was:" >&5
5756sed 's/^/| /' conftest.$ac_ext >&5
5757
5758  # Passes both tests.
5759ac_preproc_ok=:
5760break
5761fi
5762
5763rm -f conftest.err conftest.$ac_ext
5764
5765done
5766# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5767rm -f conftest.err conftest.$ac_ext
5768if $ac_preproc_ok; then
5769  break
5770fi
5771
5772    done
5773    ac_cv_prog_CXXCPP=$CXXCPP
5774
5775fi
5776  CXXCPP=$ac_cv_prog_CXXCPP
5777else
5778  ac_cv_prog_CXXCPP=$CXXCPP
5779fi
5780{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5781echo "${ECHO_T}$CXXCPP" >&6; }
5782ac_preproc_ok=false
5783for ac_cxx_preproc_warn_flag in '' yes
5784do
5785  # Use a header file that comes with gcc, so configuring glibc
5786  # with a fresh cross-compiler works.
5787  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5788  # <limits.h> exists even on freestanding compilers.
5789  # On the NeXT, cc -E runs the code through the compiler's parser,
5790  # not just through cpp. "Syntax error" is here to catch this case.
5791  cat >conftest.$ac_ext <<_ACEOF
5792/* confdefs.h.  */
5793_ACEOF
5794cat confdefs.h >>conftest.$ac_ext
5795cat >>conftest.$ac_ext <<_ACEOF
5796/* end confdefs.h.  */
5797#ifdef __STDC__
5798# include <limits.h>
5799#else
5800# include <assert.h>
5801#endif
5802		     Syntax error
5803_ACEOF
5804if { (ac_try="$ac_cpp conftest.$ac_ext"
5805case "(($ac_try" in
5806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807  *) ac_try_echo=$ac_try;;
5808esac
5809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5811  ac_status=$?
5812  grep -v '^ *+' conftest.er1 >conftest.err
5813  rm -f conftest.er1
5814  cat conftest.err >&5
5815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816  (exit $ac_status); } >/dev/null && {
5817	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5818	 test ! -s conftest.err
5819       }; then
5820  :
5821else
5822  echo "$as_me: failed program was:" >&5
5823sed 's/^/| /' conftest.$ac_ext >&5
5824
5825  # Broken: fails on valid input.
5826continue
5827fi
5828
5829rm -f conftest.err conftest.$ac_ext
5830
5831  # OK, works on sane cases.  Now check whether nonexistent headers
5832  # can be detected and how.
5833  cat >conftest.$ac_ext <<_ACEOF
5834/* confdefs.h.  */
5835_ACEOF
5836cat confdefs.h >>conftest.$ac_ext
5837cat >>conftest.$ac_ext <<_ACEOF
5838/* end confdefs.h.  */
5839#include <ac_nonexistent.h>
5840_ACEOF
5841if { (ac_try="$ac_cpp conftest.$ac_ext"
5842case "(($ac_try" in
5843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844  *) ac_try_echo=$ac_try;;
5845esac
5846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5848  ac_status=$?
5849  grep -v '^ *+' conftest.er1 >conftest.err
5850  rm -f conftest.er1
5851  cat conftest.err >&5
5852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853  (exit $ac_status); } >/dev/null && {
5854	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5855	 test ! -s conftest.err
5856       }; then
5857  # Broken: success on invalid input.
5858continue
5859else
5860  echo "$as_me: failed program was:" >&5
5861sed 's/^/| /' conftest.$ac_ext >&5
5862
5863  # Passes both tests.
5864ac_preproc_ok=:
5865break
5866fi
5867
5868rm -f conftest.err conftest.$ac_ext
5869
5870done
5871# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5872rm -f conftest.err conftest.$ac_ext
5873if $ac_preproc_ok; then
5874  :
5875else
5876  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5877See \`config.log' for more details." >&5
5878echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5879See \`config.log' for more details." >&2;}
5880   { (exit 1); exit 1; }; }
5881fi
5882
5883ac_ext=cpp
5884ac_cpp='$CXXCPP $CPPFLAGS'
5885ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5888
5889fi
5890
5891
5892ac_ext=f
5893ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5894ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5895ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5896if test -n "$ac_tool_prefix"; then
5897  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5898  do
5899    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5900set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5903if test "${ac_cv_prog_F77+set}" = set; then
5904  echo $ECHO_N "(cached) $ECHO_C" >&6
5905else
5906  if test -n "$F77"; then
5907  ac_cv_prog_F77="$F77" # Let the user override the test.
5908else
5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912  IFS=$as_save_IFS
5913  test -z "$as_dir" && as_dir=.
5914  for ac_exec_ext in '' $ac_executable_extensions; do
5915  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5916    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5918    break 2
5919  fi
5920done
5921done
5922IFS=$as_save_IFS
5923
5924fi
5925fi
5926F77=$ac_cv_prog_F77
5927if test -n "$F77"; then
5928  { echo "$as_me:$LINENO: result: $F77" >&5
5929echo "${ECHO_T}$F77" >&6; }
5930else
5931  { echo "$as_me:$LINENO: result: no" >&5
5932echo "${ECHO_T}no" >&6; }
5933fi
5934
5935
5936    test -n "$F77" && break
5937  done
5938fi
5939if test -z "$F77"; then
5940  ac_ct_F77=$F77
5941  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5942do
5943  # Extract the first word of "$ac_prog", so it can be a program name with args.
5944set dummy $ac_prog; ac_word=$2
5945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5948  echo $ECHO_N "(cached) $ECHO_C" >&6
5949else
5950  if test -n "$ac_ct_F77"; then
5951  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5952else
5953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954for as_dir in $PATH
5955do
5956  IFS=$as_save_IFS
5957  test -z "$as_dir" && as_dir=.
5958  for ac_exec_ext in '' $ac_executable_extensions; do
5959  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960    ac_cv_prog_ac_ct_F77="$ac_prog"
5961    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962    break 2
5963  fi
5964done
5965done
5966IFS=$as_save_IFS
5967
5968fi
5969fi
5970ac_ct_F77=$ac_cv_prog_ac_ct_F77
5971if test -n "$ac_ct_F77"; then
5972  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5973echo "${ECHO_T}$ac_ct_F77" >&6; }
5974else
5975  { echo "$as_me:$LINENO: result: no" >&5
5976echo "${ECHO_T}no" >&6; }
5977fi
5978
5979
5980  test -n "$ac_ct_F77" && break
5981done
5982
5983  if test "x$ac_ct_F77" = x; then
5984    F77=""
5985  else
5986    case $cross_compiling:$ac_tool_warned in
5987yes:)
5988{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5989whose name does not start with the host triplet.  If you think this
5990configuration is useful to you, please write to autoconf@gnu.org." >&5
5991echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5992whose name does not start with the host triplet.  If you think this
5993configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5994ac_tool_warned=yes ;;
5995esac
5996    F77=$ac_ct_F77
5997  fi
5998fi
5999
6000
6001# Provide some information about the compiler.
6002echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6003ac_compiler=`set X $ac_compile; echo $2`
6004{ (ac_try="$ac_compiler --version >&5"
6005case "(($ac_try" in
6006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007  *) ac_try_echo=$ac_try;;
6008esac
6009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010  (eval "$ac_compiler --version >&5") 2>&5
6011  ac_status=$?
6012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013  (exit $ac_status); }
6014{ (ac_try="$ac_compiler -v >&5"
6015case "(($ac_try" in
6016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017  *) ac_try_echo=$ac_try;;
6018esac
6019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6020  (eval "$ac_compiler -v >&5") 2>&5
6021  ac_status=$?
6022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023  (exit $ac_status); }
6024{ (ac_try="$ac_compiler -V >&5"
6025case "(($ac_try" in
6026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027  *) ac_try_echo=$ac_try;;
6028esac
6029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030  (eval "$ac_compiler -V >&5") 2>&5
6031  ac_status=$?
6032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033  (exit $ac_status); }
6034rm -f a.out
6035
6036# If we don't use `.F' as extension, the preprocessor is not run on the
6037# input file.  (Note that this only needs to work for GNU compilers.)
6038ac_save_ext=$ac_ext
6039ac_ext=F
6040{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6041echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6042if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6043  echo $ECHO_N "(cached) $ECHO_C" >&6
6044else
6045  cat >conftest.$ac_ext <<_ACEOF
6046      program main
6047#ifndef __GNUC__
6048       choke me
6049#endif
6050
6051      end
6052_ACEOF
6053rm -f conftest.$ac_objext
6054if { (ac_try="$ac_compile"
6055case "(($ac_try" in
6056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057  *) ac_try_echo=$ac_try;;
6058esac
6059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060  (eval "$ac_compile") 2>conftest.er1
6061  ac_status=$?
6062  grep -v '^ *+' conftest.er1 >conftest.err
6063  rm -f conftest.er1
6064  cat conftest.err >&5
6065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066  (exit $ac_status); } && {
6067	 test -z "$ac_f77_werror_flag" ||
6068	 test ! -s conftest.err
6069       } && test -s conftest.$ac_objext; then
6070  ac_compiler_gnu=yes
6071else
6072  echo "$as_me: failed program was:" >&5
6073sed 's/^/| /' conftest.$ac_ext >&5
6074
6075	ac_compiler_gnu=no
6076fi
6077
6078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6079ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6080
6081fi
6082{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6083echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6084ac_ext=$ac_save_ext
6085ac_test_FFLAGS=${FFLAGS+set}
6086ac_save_FFLAGS=$FFLAGS
6087FFLAGS=
6088{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6089echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6090if test "${ac_cv_prog_f77_g+set}" = set; then
6091  echo $ECHO_N "(cached) $ECHO_C" >&6
6092else
6093  FFLAGS=-g
6094cat >conftest.$ac_ext <<_ACEOF
6095      program main
6096
6097      end
6098_ACEOF
6099rm -f conftest.$ac_objext
6100if { (ac_try="$ac_compile"
6101case "(($ac_try" in
6102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103  *) ac_try_echo=$ac_try;;
6104esac
6105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106  (eval "$ac_compile") 2>conftest.er1
6107  ac_status=$?
6108  grep -v '^ *+' conftest.er1 >conftest.err
6109  rm -f conftest.er1
6110  cat conftest.err >&5
6111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112  (exit $ac_status); } && {
6113	 test -z "$ac_f77_werror_flag" ||
6114	 test ! -s conftest.err
6115       } && test -s conftest.$ac_objext; then
6116  ac_cv_prog_f77_g=yes
6117else
6118  echo "$as_me: failed program was:" >&5
6119sed 's/^/| /' conftest.$ac_ext >&5
6120
6121	ac_cv_prog_f77_g=no
6122fi
6123
6124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125
6126fi
6127{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6128echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6129if test "$ac_test_FFLAGS" = set; then
6130  FFLAGS=$ac_save_FFLAGS
6131elif test $ac_cv_prog_f77_g = yes; then
6132  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6133    FFLAGS="-g -O2"
6134  else
6135    FFLAGS="-g"
6136  fi
6137else
6138  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6139    FFLAGS="-O2"
6140  else
6141    FFLAGS=
6142  fi
6143fi
6144
6145G77=`test $ac_compiler_gnu = yes && echo yes`
6146ac_ext=c
6147ac_cpp='$CPP $CPPFLAGS'
6148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6150ac_compiler_gnu=$ac_cv_c_compiler_gnu
6151
6152
6153
6154# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6155
6156# find the maximum length of command line arguments
6157{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6158echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6159if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6160  echo $ECHO_N "(cached) $ECHO_C" >&6
6161else
6162    i=0
6163  teststring="ABCD"
6164
6165  case $build_os in
6166  msdosdjgpp*)
6167    # On DJGPP, this test can blow up pretty badly due to problems in libc
6168    # (any single argument exceeding 2000 bytes causes a buffer overrun
6169    # during glob expansion).  Even if it were fixed, the result of this
6170    # check would be larger than it should be.
6171    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6172    ;;
6173
6174  gnu*)
6175    # Under GNU Hurd, this test is not required because there is
6176    # no limit to the length of command line arguments.
6177    # Libtool will interpret -1 as no limit whatsoever
6178    lt_cv_sys_max_cmd_len=-1;
6179    ;;
6180
6181  cygwin* | mingw*)
6182    # On Win9x/ME, this test blows up -- it succeeds, but takes
6183    # about 5 minutes as the teststring grows exponentially.
6184    # Worse, since 9x/ME are not pre-emptively multitasking,
6185    # you end up with a "frozen" computer, even though with patience
6186    # the test eventually succeeds (with a max line length of 256k).
6187    # Instead, let's just punt: use the minimum linelength reported by
6188    # all of the supported platforms: 8192 (on NT/2K/XP).
6189    lt_cv_sys_max_cmd_len=8192;
6190    ;;
6191
6192  amigaos*)
6193    # On AmigaOS with pdksh, this test takes hours, literally.
6194    # So we just punt and use a minimum line length of 8192.
6195    lt_cv_sys_max_cmd_len=8192;
6196    ;;
6197
6198  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6199    # This has been around since 386BSD, at least.  Likely further.
6200    if test -x /sbin/sysctl; then
6201      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6202    elif test -x /usr/sbin/sysctl; then
6203      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6204    else
6205      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6206    fi
6207    # And add a safety zone
6208    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6209    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6210    ;;
6211
6212  interix*)
6213    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6214    lt_cv_sys_max_cmd_len=196608
6215    ;;
6216
6217  osf*)
6218    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6219    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6220    # nice to cause kernel panics so lets avoid the loop below.
6221    # First set a reasonable default.
6222    lt_cv_sys_max_cmd_len=16384
6223    #
6224    if test -x /sbin/sysconfig; then
6225      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6226        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6227      esac
6228    fi
6229    ;;
6230  sco3.2v5*)
6231    lt_cv_sys_max_cmd_len=102400
6232    ;;
6233  sysv5* | sco5v6* | sysv4.2uw2*)
6234    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6235    if test -n "$kargmax"; then
6236      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6237    else
6238      lt_cv_sys_max_cmd_len=32768
6239    fi
6240    ;;
6241  *)
6242    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6243    if test -n "$lt_cv_sys_max_cmd_len"; then
6244      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6245      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6246    else
6247      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6248      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6249	       = "XX$teststring") >/dev/null 2>&1 &&
6250	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6251	      lt_cv_sys_max_cmd_len=$new_result &&
6252	      test $i != 17 # 1/2 MB should be enough
6253      do
6254        i=`expr $i + 1`
6255        teststring=$teststring$teststring
6256      done
6257      teststring=
6258      # Add a significant safety factor because C++ compilers can tack on massive
6259      # amounts of additional arguments before passing them to the linker.
6260      # It appears as though 1/2 is a usable value.
6261      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6262    fi
6263    ;;
6264  esac
6265
6266fi
6267
6268if test -n $lt_cv_sys_max_cmd_len ; then
6269  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6270echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6271else
6272  { echo "$as_me:$LINENO: result: none" >&5
6273echo "${ECHO_T}none" >&6; }
6274fi
6275
6276
6277
6278
6279
6280# Check for command to grab the raw symbol name followed by C symbol from nm.
6281{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6282echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6283if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6284  echo $ECHO_N "(cached) $ECHO_C" >&6
6285else
6286
6287# These are sane defaults that work on at least a few old systems.
6288# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6289
6290# Character class describing NM global symbol codes.
6291symcode='[BCDEGRST]'
6292
6293# Regexp to match symbols that can be accessed directly from C.
6294sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6295
6296# Transform an extracted symbol line into a proper C declaration
6297lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6298
6299# Transform an extracted symbol line into symbol name and symbol address
6300lt_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'"
6301
6302# Define system-specific variables.
6303case $host_os in
6304aix*)
6305  symcode='[BCDT]'
6306  ;;
6307cygwin* | mingw* | pw32*)
6308  symcode='[ABCDGISTW]'
6309  ;;
6310hpux*) # Its linker distinguishes data from code symbols
6311  if test "$host_cpu" = ia64; then
6312    symcode='[ABCDEGRST]'
6313  fi
6314  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6315  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'"
6316  ;;
6317linux* | k*bsd*-gnu)
6318  if test "$host_cpu" = ia64; then
6319    symcode='[ABCDGIRSTW]'
6320    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6321    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'"
6322  fi
6323  ;;
6324irix* | nonstopux*)
6325  symcode='[BCDEGRST]'
6326  ;;
6327osf*)
6328  symcode='[BCDEGQRST]'
6329  ;;
6330solaris*)
6331  symcode='[BDRT]'
6332  ;;
6333sco3.2v5*)
6334  symcode='[DT]'
6335  ;;
6336sysv4.2uw2*)
6337  symcode='[DT]'
6338  ;;
6339sysv5* | sco5v6* | unixware* | OpenUNIX*)
6340  symcode='[ABDT]'
6341  ;;
6342sysv4)
6343  symcode='[DFNSTU]'
6344  ;;
6345esac
6346
6347# Handle CRLF in mingw tool chain
6348opt_cr=
6349case $build_os in
6350mingw*)
6351  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6352  ;;
6353esac
6354
6355# If we're using GNU nm, then use its standard symbol codes.
6356case `$NM -V 2>&1` in
6357*GNU* | *'with BFD'*)
6358  symcode='[ABCDGIRSTW]' ;;
6359esac
6360
6361# Try without a prefix undercore, then with it.
6362for ac_symprfx in "" "_"; do
6363
6364  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6365  symxfrm="\\1 $ac_symprfx\\2 \\2"
6366
6367  # Write the raw and C identifiers.
6368  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6369
6370  # Check to see that the pipe works correctly.
6371  pipe_works=no
6372
6373  rm -f conftest*
6374  cat > conftest.$ac_ext <<EOF
6375#ifdef __cplusplus
6376extern "C" {
6377#endif
6378char nm_test_var;
6379void nm_test_func(){}
6380#ifdef __cplusplus
6381}
6382#endif
6383int main(){nm_test_var='a';nm_test_func();return(0);}
6384EOF
6385
6386  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6387  (eval $ac_compile) 2>&5
6388  ac_status=$?
6389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390  (exit $ac_status); }; then
6391    # Now try to grab the symbols.
6392    nlist=conftest.nm
6393    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6394  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6395  ac_status=$?
6396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397  (exit $ac_status); } && test -s "$nlist"; then
6398      # Try sorting and uniquifying the output.
6399      if sort "$nlist" | uniq > "$nlist"T; then
6400	mv -f "$nlist"T "$nlist"
6401      else
6402	rm -f "$nlist"T
6403      fi
6404
6405      # Make sure that we snagged all the symbols we need.
6406      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6407	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6408	  cat <<EOF > conftest.$ac_ext
6409#ifdef __cplusplus
6410extern "C" {
6411#endif
6412
6413EOF
6414	  # Now generate the symbol file.
6415	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6416
6417	  cat <<EOF >> conftest.$ac_ext
6418#if defined (__STDC__) && __STDC__
6419# define lt_ptr_t void *
6420#else
6421# define lt_ptr_t char *
6422# define const
6423#endif
6424
6425/* The mapping between symbol names and symbols. */
6426const struct {
6427  const char *name;
6428  lt_ptr_t address;
6429}
6430lt_preloaded_symbols[] =
6431{
6432EOF
6433	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6434	  cat <<\EOF >> conftest.$ac_ext
6435  {0, (lt_ptr_t) 0}
6436};
6437
6438#ifdef __cplusplus
6439}
6440#endif
6441EOF
6442	  # Now try linking the two files.
6443	  mv conftest.$ac_objext conftstm.$ac_objext
6444	  lt_save_LIBS="$LIBS"
6445	  lt_save_CFLAGS="$CFLAGS"
6446	  LIBS="conftstm.$ac_objext"
6447	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6448	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6449  (eval $ac_link) 2>&5
6450  ac_status=$?
6451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6453	    pipe_works=yes
6454	  fi
6455	  LIBS="$lt_save_LIBS"
6456	  CFLAGS="$lt_save_CFLAGS"
6457	else
6458	  echo "cannot find nm_test_func in $nlist" >&5
6459	fi
6460      else
6461	echo "cannot find nm_test_var in $nlist" >&5
6462      fi
6463    else
6464      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6465    fi
6466  else
6467    echo "$progname: failed program was:" >&5
6468    cat conftest.$ac_ext >&5
6469  fi
6470  rm -f conftest* conftst*
6471
6472  # Do not use the global_symbol_pipe unless it works.
6473  if test "$pipe_works" = yes; then
6474    break
6475  else
6476    lt_cv_sys_global_symbol_pipe=
6477  fi
6478done
6479
6480fi
6481
6482if test -z "$lt_cv_sys_global_symbol_pipe"; then
6483  lt_cv_sys_global_symbol_to_cdecl=
6484fi
6485if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6486  { echo "$as_me:$LINENO: result: failed" >&5
6487echo "${ECHO_T}failed" >&6; }
6488else
6489  { echo "$as_me:$LINENO: result: ok" >&5
6490echo "${ECHO_T}ok" >&6; }
6491fi
6492
6493{ echo "$as_me:$LINENO: checking for objdir" >&5
6494echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6495if test "${lt_cv_objdir+set}" = set; then
6496  echo $ECHO_N "(cached) $ECHO_C" >&6
6497else
6498  rm -f .libs 2>/dev/null
6499mkdir .libs 2>/dev/null
6500if test -d .libs; then
6501  lt_cv_objdir=.libs
6502else
6503  # MS-DOS does not allow filenames that begin with a dot.
6504  lt_cv_objdir=_libs
6505fi
6506rmdir .libs 2>/dev/null
6507fi
6508{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6509echo "${ECHO_T}$lt_cv_objdir" >&6; }
6510objdir=$lt_cv_objdir
6511
6512
6513
6514
6515
6516case $host_os in
6517aix3*)
6518  # AIX sometimes has problems with the GCC collect2 program.  For some
6519  # reason, if we set the COLLECT_NAMES environment variable, the problems
6520  # vanish in a puff of smoke.
6521  if test "X${COLLECT_NAMES+set}" != Xset; then
6522    COLLECT_NAMES=
6523    export COLLECT_NAMES
6524  fi
6525  ;;
6526esac
6527
6528# Sed substitution that helps us do robust quoting.  It backslashifies
6529# metacharacters that are still active within double-quoted strings.
6530Xsed='sed -e 1s/^X//'
6531sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6532
6533# Same as above, but do not quote variable references.
6534double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6535
6536# Sed substitution to delay expansion of an escaped shell variable in a
6537# double_quote_subst'ed string.
6538delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6539
6540# Sed substitution to avoid accidental globbing in evaled expressions
6541no_glob_subst='s/\*/\\\*/g'
6542
6543# Constants:
6544rm="rm -f"
6545
6546# Global variables:
6547default_ofile=libtool
6548can_build_shared=yes
6549
6550# All known linkers require a `.a' archive for static linking (except MSVC,
6551# which needs '.lib').
6552libext=a
6553ltmain="$ac_aux_dir/ltmain.sh"
6554ofile="$default_ofile"
6555with_gnu_ld="$lt_cv_prog_gnu_ld"
6556
6557if test -n "$ac_tool_prefix"; then
6558  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6559set dummy ${ac_tool_prefix}ar; ac_word=$2
6560{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6562if test "${ac_cv_prog_AR+set}" = set; then
6563  echo $ECHO_N "(cached) $ECHO_C" >&6
6564else
6565  if test -n "$AR"; then
6566  ac_cv_prog_AR="$AR" # Let the user override the test.
6567else
6568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569for as_dir in $PATH
6570do
6571  IFS=$as_save_IFS
6572  test -z "$as_dir" && as_dir=.
6573  for ac_exec_ext in '' $ac_executable_extensions; do
6574  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6575    ac_cv_prog_AR="${ac_tool_prefix}ar"
6576    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577    break 2
6578  fi
6579done
6580done
6581IFS=$as_save_IFS
6582
6583fi
6584fi
6585AR=$ac_cv_prog_AR
6586if test -n "$AR"; then
6587  { echo "$as_me:$LINENO: result: $AR" >&5
6588echo "${ECHO_T}$AR" >&6; }
6589else
6590  { echo "$as_me:$LINENO: result: no" >&5
6591echo "${ECHO_T}no" >&6; }
6592fi
6593
6594
6595fi
6596if test -z "$ac_cv_prog_AR"; then
6597  ac_ct_AR=$AR
6598  # Extract the first word of "ar", so it can be a program name with args.
6599set dummy ar; ac_word=$2
6600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6602if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6603  echo $ECHO_N "(cached) $ECHO_C" >&6
6604else
6605  if test -n "$ac_ct_AR"; then
6606  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6607else
6608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609for as_dir in $PATH
6610do
6611  IFS=$as_save_IFS
6612  test -z "$as_dir" && as_dir=.
6613  for ac_exec_ext in '' $ac_executable_extensions; do
6614  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615    ac_cv_prog_ac_ct_AR="ar"
6616    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617    break 2
6618  fi
6619done
6620done
6621IFS=$as_save_IFS
6622
6623fi
6624fi
6625ac_ct_AR=$ac_cv_prog_ac_ct_AR
6626if test -n "$ac_ct_AR"; then
6627  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6628echo "${ECHO_T}$ac_ct_AR" >&6; }
6629else
6630  { echo "$as_me:$LINENO: result: no" >&5
6631echo "${ECHO_T}no" >&6; }
6632fi
6633
6634  if test "x$ac_ct_AR" = x; then
6635    AR="false"
6636  else
6637    case $cross_compiling:$ac_tool_warned in
6638yes:)
6639{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6640whose name does not start with the host triplet.  If you think this
6641configuration is useful to you, please write to autoconf@gnu.org." >&5
6642echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6643whose name does not start with the host triplet.  If you think this
6644configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6645ac_tool_warned=yes ;;
6646esac
6647    AR=$ac_ct_AR
6648  fi
6649else
6650  AR="$ac_cv_prog_AR"
6651fi
6652
6653if test -n "$ac_tool_prefix"; then
6654  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6655set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658if test "${ac_cv_prog_RANLIB+set}" = set; then
6659  echo $ECHO_N "(cached) $ECHO_C" >&6
6660else
6661  if test -n "$RANLIB"; then
6662  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6663else
6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665for as_dir in $PATH
6666do
6667  IFS=$as_save_IFS
6668  test -z "$as_dir" && as_dir=.
6669  for ac_exec_ext in '' $ac_executable_extensions; do
6670  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6671    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6672    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673    break 2
6674  fi
6675done
6676done
6677IFS=$as_save_IFS
6678
6679fi
6680fi
6681RANLIB=$ac_cv_prog_RANLIB
6682if test -n "$RANLIB"; then
6683  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6684echo "${ECHO_T}$RANLIB" >&6; }
6685else
6686  { echo "$as_me:$LINENO: result: no" >&5
6687echo "${ECHO_T}no" >&6; }
6688fi
6689
6690
6691fi
6692if test -z "$ac_cv_prog_RANLIB"; then
6693  ac_ct_RANLIB=$RANLIB
6694  # Extract the first word of "ranlib", so it can be a program name with args.
6695set dummy ranlib; ac_word=$2
6696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6698if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6699  echo $ECHO_N "(cached) $ECHO_C" >&6
6700else
6701  if test -n "$ac_ct_RANLIB"; then
6702  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6703else
6704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705for as_dir in $PATH
6706do
6707  IFS=$as_save_IFS
6708  test -z "$as_dir" && as_dir=.
6709  for ac_exec_ext in '' $ac_executable_extensions; do
6710  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6711    ac_cv_prog_ac_ct_RANLIB="ranlib"
6712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713    break 2
6714  fi
6715done
6716done
6717IFS=$as_save_IFS
6718
6719fi
6720fi
6721ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6722if test -n "$ac_ct_RANLIB"; then
6723  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6724echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6725else
6726  { echo "$as_me:$LINENO: result: no" >&5
6727echo "${ECHO_T}no" >&6; }
6728fi
6729
6730  if test "x$ac_ct_RANLIB" = x; then
6731    RANLIB=":"
6732  else
6733    case $cross_compiling:$ac_tool_warned in
6734yes:)
6735{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6736whose name does not start with the host triplet.  If you think this
6737configuration is useful to you, please write to autoconf@gnu.org." >&5
6738echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6739whose name does not start with the host triplet.  If you think this
6740configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6741ac_tool_warned=yes ;;
6742esac
6743    RANLIB=$ac_ct_RANLIB
6744  fi
6745else
6746  RANLIB="$ac_cv_prog_RANLIB"
6747fi
6748
6749if test -n "$ac_tool_prefix"; then
6750  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6751set dummy ${ac_tool_prefix}strip; ac_word=$2
6752{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6754if test "${ac_cv_prog_STRIP+set}" = set; then
6755  echo $ECHO_N "(cached) $ECHO_C" >&6
6756else
6757  if test -n "$STRIP"; then
6758  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6759else
6760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763  IFS=$as_save_IFS
6764  test -z "$as_dir" && as_dir=.
6765  for ac_exec_ext in '' $ac_executable_extensions; do
6766  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6767    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6768    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769    break 2
6770  fi
6771done
6772done
6773IFS=$as_save_IFS
6774
6775fi
6776fi
6777STRIP=$ac_cv_prog_STRIP
6778if test -n "$STRIP"; then
6779  { echo "$as_me:$LINENO: result: $STRIP" >&5
6780echo "${ECHO_T}$STRIP" >&6; }
6781else
6782  { echo "$as_me:$LINENO: result: no" >&5
6783echo "${ECHO_T}no" >&6; }
6784fi
6785
6786
6787fi
6788if test -z "$ac_cv_prog_STRIP"; then
6789  ac_ct_STRIP=$STRIP
6790  # Extract the first word of "strip", so it can be a program name with args.
6791set dummy strip; ac_word=$2
6792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6794if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6795  echo $ECHO_N "(cached) $ECHO_C" >&6
6796else
6797  if test -n "$ac_ct_STRIP"; then
6798  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6799else
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803  IFS=$as_save_IFS
6804  test -z "$as_dir" && as_dir=.
6805  for ac_exec_ext in '' $ac_executable_extensions; do
6806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6807    ac_cv_prog_ac_ct_STRIP="strip"
6808    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809    break 2
6810  fi
6811done
6812done
6813IFS=$as_save_IFS
6814
6815fi
6816fi
6817ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6818if test -n "$ac_ct_STRIP"; then
6819  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6820echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6821else
6822  { echo "$as_me:$LINENO: result: no" >&5
6823echo "${ECHO_T}no" >&6; }
6824fi
6825
6826  if test "x$ac_ct_STRIP" = x; then
6827    STRIP=":"
6828  else
6829    case $cross_compiling:$ac_tool_warned in
6830yes:)
6831{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6832whose name does not start with the host triplet.  If you think this
6833configuration is useful to you, please write to autoconf@gnu.org." >&5
6834echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6835whose name does not start with the host triplet.  If you think this
6836configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6837ac_tool_warned=yes ;;
6838esac
6839    STRIP=$ac_ct_STRIP
6840  fi
6841else
6842  STRIP="$ac_cv_prog_STRIP"
6843fi
6844
6845
6846old_CC="$CC"
6847old_CFLAGS="$CFLAGS"
6848
6849# Set sane defaults for various variables
6850test -z "$AR" && AR=ar
6851test -z "$AR_FLAGS" && AR_FLAGS=cru
6852test -z "$AS" && AS=as
6853test -z "$CC" && CC=cc
6854test -z "$LTCC" && LTCC=$CC
6855test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6856test -z "$DLLTOOL" && DLLTOOL=dlltool
6857test -z "$LD" && LD=ld
6858test -z "$LN_S" && LN_S="ln -s"
6859test -z "$MAGIC_CMD" && MAGIC_CMD=file
6860test -z "$NM" && NM=nm
6861test -z "$SED" && SED=sed
6862test -z "$OBJDUMP" && OBJDUMP=objdump
6863test -z "$RANLIB" && RANLIB=:
6864test -z "$STRIP" && STRIP=:
6865test -z "$ac_objext" && ac_objext=o
6866
6867# Determine commands to create old-style static archives.
6868old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6869old_postinstall_cmds='chmod 644 $oldlib'
6870old_postuninstall_cmds=
6871
6872if test -n "$RANLIB"; then
6873  case $host_os in
6874  openbsd*)
6875    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6876    ;;
6877  *)
6878    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6879    ;;
6880  esac
6881  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6882fi
6883
6884for cc_temp in $compiler""; do
6885  case $cc_temp in
6886    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6887    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6888    \-*) ;;
6889    *) break;;
6890  esac
6891done
6892cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6893
6894
6895# Only perform the check for file, if the check method requires it
6896case $deplibs_check_method in
6897file_magic*)
6898  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6899    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6900echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6901if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6902  echo $ECHO_N "(cached) $ECHO_C" >&6
6903else
6904  case $MAGIC_CMD in
6905[\\/*] |  ?:[\\/]*)
6906  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6907  ;;
6908*)
6909  lt_save_MAGIC_CMD="$MAGIC_CMD"
6910  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6911  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6912  for ac_dir in $ac_dummy; do
6913    IFS="$lt_save_ifs"
6914    test -z "$ac_dir" && ac_dir=.
6915    if test -f $ac_dir/${ac_tool_prefix}file; then
6916      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6917      if test -n "$file_magic_test_file"; then
6918	case $deplibs_check_method in
6919	"file_magic "*)
6920	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6921	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6922	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6923	    $EGREP "$file_magic_regex" > /dev/null; then
6924	    :
6925	  else
6926	    cat <<EOF 1>&2
6927
6928*** Warning: the command libtool uses to detect shared libraries,
6929*** $file_magic_cmd, produces output that libtool cannot recognize.
6930*** The result is that libtool may fail to recognize shared libraries
6931*** as such.  This will affect the creation of libtool libraries that
6932*** depend on shared libraries, but programs linked with such libtool
6933*** libraries will work regardless of this problem.  Nevertheless, you
6934*** may want to report the problem to your system manager and/or to
6935*** bug-libtool@gnu.org
6936
6937EOF
6938	  fi ;;
6939	esac
6940      fi
6941      break
6942    fi
6943  done
6944  IFS="$lt_save_ifs"
6945  MAGIC_CMD="$lt_save_MAGIC_CMD"
6946  ;;
6947esac
6948fi
6949
6950MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6951if test -n "$MAGIC_CMD"; then
6952  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6953echo "${ECHO_T}$MAGIC_CMD" >&6; }
6954else
6955  { echo "$as_me:$LINENO: result: no" >&5
6956echo "${ECHO_T}no" >&6; }
6957fi
6958
6959if test -z "$lt_cv_path_MAGIC_CMD"; then
6960  if test -n "$ac_tool_prefix"; then
6961    { echo "$as_me:$LINENO: checking for file" >&5
6962echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6963if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6964  echo $ECHO_N "(cached) $ECHO_C" >&6
6965else
6966  case $MAGIC_CMD in
6967[\\/*] |  ?:[\\/]*)
6968  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6969  ;;
6970*)
6971  lt_save_MAGIC_CMD="$MAGIC_CMD"
6972  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6973  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6974  for ac_dir in $ac_dummy; do
6975    IFS="$lt_save_ifs"
6976    test -z "$ac_dir" && ac_dir=.
6977    if test -f $ac_dir/file; then
6978      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6979      if test -n "$file_magic_test_file"; then
6980	case $deplibs_check_method in
6981	"file_magic "*)
6982	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6983	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6984	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6985	    $EGREP "$file_magic_regex" > /dev/null; then
6986	    :
6987	  else
6988	    cat <<EOF 1>&2
6989
6990*** Warning: the command libtool uses to detect shared libraries,
6991*** $file_magic_cmd, produces output that libtool cannot recognize.
6992*** The result is that libtool may fail to recognize shared libraries
6993*** as such.  This will affect the creation of libtool libraries that
6994*** depend on shared libraries, but programs linked with such libtool
6995*** libraries will work regardless of this problem.  Nevertheless, you
6996*** may want to report the problem to your system manager and/or to
6997*** bug-libtool@gnu.org
6998
6999EOF
7000	  fi ;;
7001	esac
7002      fi
7003      break
7004    fi
7005  done
7006  IFS="$lt_save_ifs"
7007  MAGIC_CMD="$lt_save_MAGIC_CMD"
7008  ;;
7009esac
7010fi
7011
7012MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7013if test -n "$MAGIC_CMD"; then
7014  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7015echo "${ECHO_T}$MAGIC_CMD" >&6; }
7016else
7017  { echo "$as_me:$LINENO: result: no" >&5
7018echo "${ECHO_T}no" >&6; }
7019fi
7020
7021  else
7022    MAGIC_CMD=:
7023  fi
7024fi
7025
7026  fi
7027  ;;
7028esac
7029
7030enable_dlopen=no
7031enable_win32_dll=no
7032
7033# Check whether --enable-libtool-lock was given.
7034if test "${enable_libtool_lock+set}" = set; then
7035  enableval=$enable_libtool_lock;
7036fi
7037
7038test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7039
7040
7041# Check whether --with-pic was given.
7042if test "${with_pic+set}" = set; then
7043  withval=$with_pic; pic_mode="$withval"
7044else
7045  pic_mode=default
7046fi
7047
7048test -z "$pic_mode" && pic_mode=default
7049
7050# Use C for the default configuration in the libtool script
7051tagname=
7052lt_save_CC="$CC"
7053ac_ext=c
7054ac_cpp='$CPP $CPPFLAGS'
7055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7057ac_compiler_gnu=$ac_cv_c_compiler_gnu
7058
7059
7060# Source file extension for C test sources.
7061ac_ext=c
7062
7063# Object file extension for compiled C test sources.
7064objext=o
7065objext=$objext
7066
7067# Code to be used in simple compile tests
7068lt_simple_compile_test_code="int some_variable = 0;"
7069
7070# Code to be used in simple link tests
7071lt_simple_link_test_code='int main(){return(0);}'
7072
7073
7074# If no C compiler was specified, use CC.
7075LTCC=${LTCC-"$CC"}
7076
7077# If no C compiler flags were specified, use CFLAGS.
7078LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7079
7080# Allow CC to be a program name with arguments.
7081compiler=$CC
7082
7083
7084# save warnings/boilerplate of simple test code
7085ac_outfile=conftest.$ac_objext
7086echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7087eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7088_lt_compiler_boilerplate=`cat conftest.err`
7089$rm conftest*
7090
7091ac_outfile=conftest.$ac_objext
7092echo "$lt_simple_link_test_code" >conftest.$ac_ext
7093eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7094_lt_linker_boilerplate=`cat conftest.err`
7095$rm conftest*
7096
7097
7098
7099lt_prog_compiler_no_builtin_flag=
7100
7101if test "$GCC" = yes; then
7102  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7103
7104
7105{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7106echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7107if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7108  echo $ECHO_N "(cached) $ECHO_C" >&6
7109else
7110  lt_cv_prog_compiler_rtti_exceptions=no
7111  ac_outfile=conftest.$ac_objext
7112   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7113   lt_compiler_flag="-fno-rtti -fno-exceptions"
7114   # Insert the option either (1) after the last *FLAGS variable, or
7115   # (2) before a word containing "conftest.", or (3) at the end.
7116   # Note that $ac_compile itself does not contain backslashes and begins
7117   # with a dollar sign (not a hyphen), so the echo should work correctly.
7118   # The option is referenced via a variable to avoid confusing sed.
7119   lt_compile=`echo "$ac_compile" | $SED \
7120   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7121   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7122   -e 's:$: $lt_compiler_flag:'`
7123   (eval echo "\"\$as_me:7123: $lt_compile\"" >&5)
7124   (eval "$lt_compile" 2>conftest.err)
7125   ac_status=$?
7126   cat conftest.err >&5
7127   echo "$as_me:7127: \$? = $ac_status" >&5
7128   if (exit $ac_status) && test -s "$ac_outfile"; then
7129     # The compiler can only warn and ignore the option if not recognized
7130     # So say no if there are warnings other than the usual output.
7131     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7132     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7133     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7134       lt_cv_prog_compiler_rtti_exceptions=yes
7135     fi
7136   fi
7137   $rm conftest*
7138
7139fi
7140{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7141echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7142
7143if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7144    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7145else
7146    :
7147fi
7148
7149fi
7150
7151lt_prog_compiler_wl=
7152lt_prog_compiler_pic=
7153lt_prog_compiler_static=
7154
7155{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7156echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7157
7158  if test "$GCC" = yes; then
7159    lt_prog_compiler_wl='-Wl,'
7160    lt_prog_compiler_static='-static'
7161
7162    case $host_os in
7163      aix*)
7164      # All AIX code is PIC.
7165      if test "$host_cpu" = ia64; then
7166	# AIX 5 now supports IA64 processor
7167	lt_prog_compiler_static='-Bstatic'
7168      fi
7169      ;;
7170
7171    amigaos*)
7172      # FIXME: we need at least 68020 code to build shared libraries, but
7173      # adding the `-m68020' flag to GCC prevents building anything better,
7174      # like `-m68040'.
7175      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7176      ;;
7177
7178    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7179      # PIC is the default for these OSes.
7180      ;;
7181
7182    mingw* | cygwin* | pw32* | os2*)
7183      # This hack is so that the source file can tell whether it is being
7184      # built for inclusion in a dll (and should export symbols for example).
7185      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7186      # (--disable-auto-import) libraries
7187      lt_prog_compiler_pic='-DDLL_EXPORT'
7188      ;;
7189
7190    darwin* | rhapsody*)
7191      # PIC is the default on this platform
7192      # Common symbols not allowed in MH_DYLIB files
7193      lt_prog_compiler_pic='-fno-common'
7194      ;;
7195
7196    interix[3-9]*)
7197      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7198      # Instead, we relocate shared libraries at runtime.
7199      ;;
7200
7201    msdosdjgpp*)
7202      # Just because we use GCC doesn't mean we suddenly get shared libraries
7203      # on systems that don't support them.
7204      lt_prog_compiler_can_build_shared=no
7205      enable_shared=no
7206      ;;
7207
7208    sysv4*MP*)
7209      if test -d /usr/nec; then
7210	lt_prog_compiler_pic=-Kconform_pic
7211      fi
7212      ;;
7213
7214    hpux*)
7215      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7216      # not for PA HP-UX.
7217      case $host_cpu in
7218      hppa*64*|ia64*)
7219	# +Z the default
7220	;;
7221      *)
7222	lt_prog_compiler_pic='-fPIC'
7223	;;
7224      esac
7225      ;;
7226
7227    *)
7228      lt_prog_compiler_pic='-fPIC'
7229      ;;
7230    esac
7231  else
7232    # PORTME Check for flag to pass linker flags through the system compiler.
7233    case $host_os in
7234    aix*)
7235      lt_prog_compiler_wl='-Wl,'
7236      if test "$host_cpu" = ia64; then
7237	# AIX 5 now supports IA64 processor
7238	lt_prog_compiler_static='-Bstatic'
7239      else
7240	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7241      fi
7242      ;;
7243      darwin*)
7244        # PIC is the default on this platform
7245        # Common symbols not allowed in MH_DYLIB files
7246       case $cc_basename in
7247         xlc*)
7248         lt_prog_compiler_pic='-qnocommon'
7249         lt_prog_compiler_wl='-Wl,'
7250         ;;
7251       esac
7252       ;;
7253
7254    mingw* | cygwin* | pw32* | os2*)
7255      # This hack is so that the source file can tell whether it is being
7256      # built for inclusion in a dll (and should export symbols for example).
7257      lt_prog_compiler_pic='-DDLL_EXPORT'
7258      ;;
7259
7260    hpux9* | hpux10* | hpux11*)
7261      lt_prog_compiler_wl='-Wl,'
7262      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7263      # not for PA HP-UX.
7264      case $host_cpu in
7265      hppa*64*|ia64*)
7266	# +Z the default
7267	;;
7268      *)
7269	lt_prog_compiler_pic='+Z'
7270	;;
7271      esac
7272      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7273      lt_prog_compiler_static='${wl}-a ${wl}archive'
7274      ;;
7275
7276    irix5* | irix6* | nonstopux*)
7277      lt_prog_compiler_wl='-Wl,'
7278      # PIC (with -KPIC) is the default.
7279      lt_prog_compiler_static='-non_shared'
7280      ;;
7281
7282    newsos6)
7283      lt_prog_compiler_pic='-KPIC'
7284      lt_prog_compiler_static='-Bstatic'
7285      ;;
7286
7287    linux* | k*bsd*-gnu)
7288      case $cc_basename in
7289      icc* | ecc*)
7290	lt_prog_compiler_wl='-Wl,'
7291	lt_prog_compiler_pic='-KPIC'
7292	lt_prog_compiler_static='-static'
7293        ;;
7294      pgcc* | pgf77* | pgf90* | pgf95*)
7295        # Portland Group compilers (*not* the Pentium gcc compiler,
7296	# which looks to be a dead project)
7297	lt_prog_compiler_wl='-Wl,'
7298	lt_prog_compiler_pic='-fpic'
7299	lt_prog_compiler_static='-Bstatic'
7300        ;;
7301      ccc*)
7302        lt_prog_compiler_wl='-Wl,'
7303        # All Alpha code is PIC.
7304        lt_prog_compiler_static='-non_shared'
7305        ;;
7306      *)
7307        case `$CC -V 2>&1 | sed 5q` in
7308	*Sun\ C*)
7309	  # Sun C 5.9
7310	  lt_prog_compiler_pic='-KPIC'
7311	  lt_prog_compiler_static='-Bstatic'
7312	  lt_prog_compiler_wl='-Wl,'
7313	  ;;
7314	*Sun\ F*)
7315	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7316	  lt_prog_compiler_pic='-KPIC'
7317	  lt_prog_compiler_static='-Bstatic'
7318	  lt_prog_compiler_wl=''
7319	  ;;
7320	esac
7321	;;
7322      esac
7323      ;;
7324
7325    osf3* | osf4* | osf5*)
7326      lt_prog_compiler_wl='-Wl,'
7327      # All OSF/1 code is PIC.
7328      lt_prog_compiler_static='-non_shared'
7329      ;;
7330
7331    rdos*)
7332      lt_prog_compiler_static='-non_shared'
7333      ;;
7334
7335    solaris*)
7336      lt_prog_compiler_pic='-KPIC'
7337      lt_prog_compiler_static='-Bstatic'
7338      case $cc_basename in
7339      f77* | f90* | f95*)
7340	lt_prog_compiler_wl='-Qoption ld ';;
7341      *)
7342	lt_prog_compiler_wl='-Wl,';;
7343      esac
7344      ;;
7345
7346    sunos4*)
7347      lt_prog_compiler_wl='-Qoption ld '
7348      lt_prog_compiler_pic='-PIC'
7349      lt_prog_compiler_static='-Bstatic'
7350      ;;
7351
7352    sysv4 | sysv4.2uw2* | sysv4.3*)
7353      lt_prog_compiler_wl='-Wl,'
7354      lt_prog_compiler_pic='-KPIC'
7355      lt_prog_compiler_static='-Bstatic'
7356      ;;
7357
7358    sysv4*MP*)
7359      if test -d /usr/nec ;then
7360	lt_prog_compiler_pic='-Kconform_pic'
7361	lt_prog_compiler_static='-Bstatic'
7362      fi
7363      ;;
7364
7365    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7366      lt_prog_compiler_wl='-Wl,'
7367      lt_prog_compiler_pic='-KPIC'
7368      lt_prog_compiler_static='-Bstatic'
7369      ;;
7370
7371    unicos*)
7372      lt_prog_compiler_wl='-Wl,'
7373      lt_prog_compiler_can_build_shared=no
7374      ;;
7375
7376    uts4*)
7377      lt_prog_compiler_pic='-pic'
7378      lt_prog_compiler_static='-Bstatic'
7379      ;;
7380
7381    *)
7382      lt_prog_compiler_can_build_shared=no
7383      ;;
7384    esac
7385  fi
7386
7387{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7388echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7389
7390#
7391# Check to make sure the PIC flag actually works.
7392#
7393if test -n "$lt_prog_compiler_pic"; then
7394
7395{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7396echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7397if test "${lt_prog_compiler_pic_works+set}" = set; then
7398  echo $ECHO_N "(cached) $ECHO_C" >&6
7399else
7400  lt_prog_compiler_pic_works=no
7401  ac_outfile=conftest.$ac_objext
7402   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7403   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7404   # Insert the option either (1) after the last *FLAGS variable, or
7405   # (2) before a word containing "conftest.", or (3) at the end.
7406   # Note that $ac_compile itself does not contain backslashes and begins
7407   # with a dollar sign (not a hyphen), so the echo should work correctly.
7408   # The option is referenced via a variable to avoid confusing sed.
7409   lt_compile=`echo "$ac_compile" | $SED \
7410   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7411   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7412   -e 's:$: $lt_compiler_flag:'`
7413   (eval echo "\"\$as_me:7413: $lt_compile\"" >&5)
7414   (eval "$lt_compile" 2>conftest.err)
7415   ac_status=$?
7416   cat conftest.err >&5
7417   echo "$as_me:7417: \$? = $ac_status" >&5
7418   if (exit $ac_status) && test -s "$ac_outfile"; then
7419     # The compiler can only warn and ignore the option if not recognized
7420     # So say no if there are warnings other than the usual output.
7421     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7422     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7423     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7424       lt_prog_compiler_pic_works=yes
7425     fi
7426   fi
7427   $rm conftest*
7428
7429fi
7430{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7431echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7432
7433if test x"$lt_prog_compiler_pic_works" = xyes; then
7434    case $lt_prog_compiler_pic in
7435     "" | " "*) ;;
7436     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7437     esac
7438else
7439    lt_prog_compiler_pic=
7440     lt_prog_compiler_can_build_shared=no
7441fi
7442
7443fi
7444case $host_os in
7445  # For platforms which do not support PIC, -DPIC is meaningless:
7446  *djgpp*)
7447    lt_prog_compiler_pic=
7448    ;;
7449  *)
7450    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7451    ;;
7452esac
7453
7454#
7455# Check to make sure the static flag actually works.
7456#
7457wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7458{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7459echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7460if test "${lt_prog_compiler_static_works+set}" = set; then
7461  echo $ECHO_N "(cached) $ECHO_C" >&6
7462else
7463  lt_prog_compiler_static_works=no
7464   save_LDFLAGS="$LDFLAGS"
7465   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7466   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7467   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7468     # The linker can only warn and ignore the option if not recognized
7469     # So say no if there are warnings
7470     if test -s conftest.err; then
7471       # Append any errors to the config.log.
7472       cat conftest.err 1>&5
7473       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7474       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7475       if diff conftest.exp conftest.er2 >/dev/null; then
7476         lt_prog_compiler_static_works=yes
7477       fi
7478     else
7479       lt_prog_compiler_static_works=yes
7480     fi
7481   fi
7482   $rm conftest*
7483   LDFLAGS="$save_LDFLAGS"
7484
7485fi
7486{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7487echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7488
7489if test x"$lt_prog_compiler_static_works" = xyes; then
7490    :
7491else
7492    lt_prog_compiler_static=
7493fi
7494
7495
7496{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7497echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7498if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7499  echo $ECHO_N "(cached) $ECHO_C" >&6
7500else
7501  lt_cv_prog_compiler_c_o=no
7502   $rm -r conftest 2>/dev/null
7503   mkdir conftest
7504   cd conftest
7505   mkdir out
7506   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7507
7508   lt_compiler_flag="-o out/conftest2.$ac_objext"
7509   # Insert the option either (1) after the last *FLAGS variable, or
7510   # (2) before a word containing "conftest.", or (3) at the end.
7511   # Note that $ac_compile itself does not contain backslashes and begins
7512   # with a dollar sign (not a hyphen), so the echo should work correctly.
7513   lt_compile=`echo "$ac_compile" | $SED \
7514   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7515   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7516   -e 's:$: $lt_compiler_flag:'`
7517   (eval echo "\"\$as_me:7517: $lt_compile\"" >&5)
7518   (eval "$lt_compile" 2>out/conftest.err)
7519   ac_status=$?
7520   cat out/conftest.err >&5
7521   echo "$as_me:7521: \$? = $ac_status" >&5
7522   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7523   then
7524     # The compiler can only warn and ignore the option if not recognized
7525     # So say no if there are warnings
7526     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7527     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7528     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7529       lt_cv_prog_compiler_c_o=yes
7530     fi
7531   fi
7532   chmod u+w . 2>&5
7533   $rm conftest*
7534   # SGI C++ compiler will create directory out/ii_files/ for
7535   # template instantiation
7536   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7537   $rm out/* && rmdir out
7538   cd ..
7539   rmdir conftest
7540   $rm conftest*
7541
7542fi
7543{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7544echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7545
7546
7547hard_links="nottested"
7548if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7549  # do not overwrite the value of need_locks provided by the user
7550  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7551echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7552  hard_links=yes
7553  $rm conftest*
7554  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7555  touch conftest.a
7556  ln conftest.a conftest.b 2>&5 || hard_links=no
7557  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7558  { echo "$as_me:$LINENO: result: $hard_links" >&5
7559echo "${ECHO_T}$hard_links" >&6; }
7560  if test "$hard_links" = no; then
7561    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7562echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7563    need_locks=warn
7564  fi
7565else
7566  need_locks=no
7567fi
7568
7569{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7570echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7571
7572  runpath_var=
7573  allow_undefined_flag=
7574  enable_shared_with_static_runtimes=no
7575  archive_cmds=
7576  archive_expsym_cmds=
7577  old_archive_From_new_cmds=
7578  old_archive_from_expsyms_cmds=
7579  export_dynamic_flag_spec=
7580  whole_archive_flag_spec=
7581  thread_safe_flag_spec=
7582  hardcode_libdir_flag_spec=
7583  hardcode_libdir_flag_spec_ld=
7584  hardcode_libdir_separator=
7585  hardcode_direct=no
7586  hardcode_minus_L=no
7587  hardcode_shlibpath_var=unsupported
7588  link_all_deplibs=unknown
7589  hardcode_automatic=no
7590  module_cmds=
7591  module_expsym_cmds=
7592  always_export_symbols=no
7593  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7594  # include_expsyms should be a list of space-separated symbols to be *always*
7595  # included in the symbol list
7596  include_expsyms=
7597  # exclude_expsyms can be an extended regexp of symbols to exclude
7598  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7599  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7600  # as well as any symbol that contains `d'.
7601  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7602  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7603  # platforms (ab)use it in PIC code, but their linkers get confused if
7604  # the symbol is explicitly referenced.  Since portable code cannot
7605  # rely on this symbol name, it's probably fine to never include it in
7606  # preloaded symbol tables.
7607  extract_expsyms_cmds=
7608  # Just being paranoid about ensuring that cc_basename is set.
7609  for cc_temp in $compiler""; do
7610  case $cc_temp in
7611    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7612    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7613    \-*) ;;
7614    *) break;;
7615  esac
7616done
7617cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7618
7619  case $host_os in
7620  cygwin* | mingw* | pw32*)
7621    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7622    # When not using gcc, we currently assume that we are using
7623    # Microsoft Visual C++.
7624    if test "$GCC" != yes; then
7625      with_gnu_ld=no
7626    fi
7627    ;;
7628  interix*)
7629    # we just hope/assume this is gcc and not c89 (= MSVC++)
7630    with_gnu_ld=yes
7631    ;;
7632  openbsd*)
7633    with_gnu_ld=no
7634    ;;
7635  esac
7636
7637  ld_shlibs=yes
7638  if test "$with_gnu_ld" = yes; then
7639    # If archive_cmds runs LD, not CC, wlarc should be empty
7640    wlarc='${wl}'
7641
7642    # Set some defaults for GNU ld with shared library support. These
7643    # are reset later if shared libraries are not supported. Putting them
7644    # here allows them to be overridden if necessary.
7645    runpath_var=LD_RUN_PATH
7646    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7647    export_dynamic_flag_spec='${wl}--export-dynamic'
7648    # ancient GNU ld didn't support --whole-archive et. al.
7649    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7650	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7651      else
7652  	whole_archive_flag_spec=
7653    fi
7654    supports_anon_versioning=no
7655    case `$LD -v 2>/dev/null` in
7656      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7657      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7658      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7659      *\ 2.11.*) ;; # other 2.11 versions
7660      *) supports_anon_versioning=yes ;;
7661    esac
7662
7663    # See if GNU ld supports shared libraries.
7664    case $host_os in
7665    aix3* | aix4* | aix5*)
7666      # On AIX/PPC, the GNU linker is very broken
7667      if test "$host_cpu" != ia64; then
7668	ld_shlibs=no
7669	cat <<EOF 1>&2
7670
7671*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7672*** to be unable to reliably create shared libraries on AIX.
7673*** Therefore, libtool is disabling shared libraries support.  If you
7674*** really care for shared libraries, you may want to modify your PATH
7675*** so that a non-GNU linker is found, and then restart.
7676
7677EOF
7678      fi
7679      ;;
7680
7681    amigaos*)
7682      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)'
7683      hardcode_libdir_flag_spec='-L$libdir'
7684      hardcode_minus_L=yes
7685
7686      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7687      # that the semantics of dynamic libraries on AmigaOS, at least up
7688      # to version 4, is to share data among multiple programs linked
7689      # with the same dynamic library.  Since this doesn't match the
7690      # behavior of shared libraries on other platforms, we can't use
7691      # them.
7692      ld_shlibs=no
7693      ;;
7694
7695    beos*)
7696      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7697	allow_undefined_flag=unsupported
7698	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7699	# support --undefined.  This deserves some investigation.  FIXME
7700	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7701      else
7702	ld_shlibs=no
7703      fi
7704      ;;
7705
7706    cygwin* | mingw* | pw32*)
7707      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7708      # as there is no search path for DLLs.
7709      hardcode_libdir_flag_spec='-L$libdir'
7710      allow_undefined_flag=unsupported
7711      always_export_symbols=no
7712      enable_shared_with_static_runtimes=yes
7713      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7714
7715      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7716        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7717	# If the export-symbols file already is a .def file (1st line
7718	# is EXPORTS), use it as is; otherwise, prepend...
7719	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7720	  cp $export_symbols $output_objdir/$soname.def;
7721	else
7722	  echo EXPORTS > $output_objdir/$soname.def;
7723	  cat $export_symbols >> $output_objdir/$soname.def;
7724	fi~
7725	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7726      else
7727	ld_shlibs=no
7728      fi
7729      ;;
7730
7731    interix[3-9]*)
7732      hardcode_direct=no
7733      hardcode_shlibpath_var=no
7734      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7735      export_dynamic_flag_spec='${wl}-E'
7736      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7737      # Instead, shared libraries are loaded at an image base (0x10000000 by
7738      # default) and relocated if they conflict, which is a slow very memory
7739      # consuming and fragmenting process.  To avoid this, we pick a random,
7740      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7741      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7742      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7743      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7744      ;;
7745
7746    gnu* | linux* | k*bsd*-gnu)
7747      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7748	tmp_addflag=
7749	case $cc_basename,$host_cpu in
7750	pgcc*)				# Portland Group C compiler
7751	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7752	  tmp_addflag=' $pic_flag'
7753	  ;;
7754	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7755	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7756	  tmp_addflag=' $pic_flag -Mnomain' ;;
7757	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7758	  tmp_addflag=' -i_dynamic' ;;
7759	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7760	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7761	ifc* | ifort*)			# Intel Fortran compiler
7762	  tmp_addflag=' -nofor_main' ;;
7763	esac
7764	case `$CC -V 2>&1 | sed 5q` in
7765	*Sun\ C*)			# Sun C 5.9
7766	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7767	  tmp_sharedflag='-G' ;;
7768	*Sun\ F*)			# Sun Fortran 8.3
7769	  tmp_sharedflag='-G' ;;
7770	*)
7771	  tmp_sharedflag='-shared' ;;
7772	esac
7773	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7774
7775	if test $supports_anon_versioning = yes; then
7776	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7777  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7778  $echo "local: *; };" >> $output_objdir/$libname.ver~
7779	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7780	fi
7781      else
7782	ld_shlibs=no
7783      fi
7784      ;;
7785
7786    netbsd*)
7787      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7788	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7789	wlarc=
7790      else
7791	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7792	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7793      fi
7794      ;;
7795
7796    solaris*)
7797      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7798	ld_shlibs=no
7799	cat <<EOF 1>&2
7800
7801*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7802*** create shared libraries on Solaris systems.  Therefore, libtool
7803*** is disabling shared libraries support.  We urge you to upgrade GNU
7804*** binutils to release 2.9.1 or newer.  Another option is to modify
7805*** your PATH or compiler configuration so that the native linker is
7806*** used, and then restart.
7807
7808EOF
7809      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7810	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7811	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7812      else
7813	ld_shlibs=no
7814      fi
7815      ;;
7816
7817    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7818      case `$LD -v 2>&1` in
7819        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7820	ld_shlibs=no
7821	cat <<_LT_EOF 1>&2
7822
7823*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7824*** reliably create shared libraries on SCO systems.  Therefore, libtool
7825*** is disabling shared libraries support.  We urge you to upgrade GNU
7826*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7827*** your PATH or compiler configuration so that the native linker is
7828*** used, and then restart.
7829
7830_LT_EOF
7831	;;
7832	*)
7833	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7834	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7835	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7836	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7837	  else
7838	    ld_shlibs=no
7839	  fi
7840	;;
7841      esac
7842      ;;
7843
7844    sunos4*)
7845      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7846      wlarc=
7847      hardcode_direct=yes
7848      hardcode_shlibpath_var=no
7849      ;;
7850
7851    *)
7852      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7853	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7854	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7855      else
7856	ld_shlibs=no
7857      fi
7858      ;;
7859    esac
7860
7861    if test "$ld_shlibs" = no; then
7862      runpath_var=
7863      hardcode_libdir_flag_spec=
7864      export_dynamic_flag_spec=
7865      whole_archive_flag_spec=
7866    fi
7867  else
7868    # PORTME fill in a description of your system's linker (not GNU ld)
7869    case $host_os in
7870    aix3*)
7871      allow_undefined_flag=unsupported
7872      always_export_symbols=yes
7873      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'
7874      # Note: this linker hardcodes the directories in LIBPATH if there
7875      # are no directories specified by -L.
7876      hardcode_minus_L=yes
7877      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7878	# Neither direct hardcoding nor static linking is supported with a
7879	# broken collect2.
7880	hardcode_direct=unsupported
7881      fi
7882      ;;
7883
7884    aix4* | aix5*)
7885      if test "$host_cpu" = ia64; then
7886	# On IA64, the linker does run time linking by default, so we don't
7887	# have to do anything special.
7888	aix_use_runtimelinking=no
7889	exp_sym_flag='-Bexport'
7890	no_entry_flag=""
7891      else
7892	# If we're using GNU nm, then we don't want the "-C" option.
7893	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7894	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7895	  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'
7896	else
7897	  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'
7898	fi
7899	aix_use_runtimelinking=no
7900
7901	# Test if we are trying to use run time linking or normal
7902	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7903	# need to do runtime linking.
7904	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7905	  for ld_flag in $LDFLAGS; do
7906  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7907  	    aix_use_runtimelinking=yes
7908  	    break
7909  	  fi
7910	  done
7911	  ;;
7912	esac
7913
7914	exp_sym_flag='-bexport'
7915	no_entry_flag='-bnoentry'
7916      fi
7917
7918      # When large executables or shared objects are built, AIX ld can
7919      # have problems creating the table of contents.  If linking a library
7920      # or program results in "error TOC overflow" add -mminimal-toc to
7921      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7922      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7923
7924      archive_cmds=''
7925      hardcode_direct=yes
7926      hardcode_libdir_separator=':'
7927      link_all_deplibs=yes
7928
7929      if test "$GCC" = yes; then
7930	case $host_os in aix4.[012]|aix4.[012].*)
7931	# We only want to do this on AIX 4.2 and lower, the check
7932	# below for broken collect2 doesn't work under 4.3+
7933	  collect2name=`${CC} -print-prog-name=collect2`
7934	  if test -f "$collect2name" && \
7935  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7936	  then
7937  	  # We have reworked collect2
7938  	  :
7939	  else
7940  	  # We have old collect2
7941  	  hardcode_direct=unsupported
7942  	  # It fails to find uninstalled libraries when the uninstalled
7943  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7944  	  # to unsupported forces relinking
7945  	  hardcode_minus_L=yes
7946  	  hardcode_libdir_flag_spec='-L$libdir'
7947  	  hardcode_libdir_separator=
7948	  fi
7949	  ;;
7950	esac
7951	shared_flag='-shared'
7952	if test "$aix_use_runtimelinking" = yes; then
7953	  shared_flag="$shared_flag "'${wl}-G'
7954	fi
7955      else
7956	# not using gcc
7957	if test "$host_cpu" = ia64; then
7958  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7959  	# chokes on -Wl,-G. The following line is correct:
7960	  shared_flag='-G'
7961	else
7962	  if test "$aix_use_runtimelinking" = yes; then
7963	    shared_flag='${wl}-G'
7964	  else
7965	    shared_flag='${wl}-bM:SRE'
7966	  fi
7967	fi
7968      fi
7969
7970      # It seems that -bexpall does not export symbols beginning with
7971      # underscore (_), so it is better to generate a list of symbols to export.
7972      always_export_symbols=yes
7973      if test "$aix_use_runtimelinking" = yes; then
7974	# Warning - without using the other runtime loading flags (-brtl),
7975	# -berok will link without error, but may produce a broken library.
7976	allow_undefined_flag='-berok'
7977       # Determine the default libpath from the value encoded in an empty executable.
7978       cat >conftest.$ac_ext <<_ACEOF
7979/* confdefs.h.  */
7980_ACEOF
7981cat confdefs.h >>conftest.$ac_ext
7982cat >>conftest.$ac_ext <<_ACEOF
7983/* end confdefs.h.  */
7984
7985int
7986main ()
7987{
7988
7989  ;
7990  return 0;
7991}
7992_ACEOF
7993rm -f conftest.$ac_objext conftest$ac_exeext
7994if { (ac_try="$ac_link"
7995case "(($ac_try" in
7996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997  *) ac_try_echo=$ac_try;;
7998esac
7999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000  (eval "$ac_link") 2>conftest.er1
8001  ac_status=$?
8002  grep -v '^ *+' conftest.er1 >conftest.err
8003  rm -f conftest.er1
8004  cat conftest.err >&5
8005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006  (exit $ac_status); } && {
8007	 test -z "$ac_c_werror_flag" ||
8008	 test ! -s conftest.err
8009       } && test -s conftest$ac_exeext &&
8010       $as_test_x conftest$ac_exeext; then
8011
8012lt_aix_libpath_sed='
8013    /Import File Strings/,/^$/ {
8014	/^0/ {
8015	    s/^0  *\(.*\)$/\1/
8016	    p
8017	}
8018    }'
8019aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8020# Check for a 64-bit object if we didn't find anything.
8021if test -z "$aix_libpath"; then
8022  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8023fi
8024else
8025  echo "$as_me: failed program was:" >&5
8026sed 's/^/| /' conftest.$ac_ext >&5
8027
8028
8029fi
8030
8031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8032      conftest$ac_exeext conftest.$ac_ext
8033if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8034
8035       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8036	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8037       else
8038	if test "$host_cpu" = ia64; then
8039	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8040	  allow_undefined_flag="-z nodefs"
8041	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8042	else
8043	 # Determine the default libpath from the value encoded in an empty executable.
8044	 cat >conftest.$ac_ext <<_ACEOF
8045/* confdefs.h.  */
8046_ACEOF
8047cat confdefs.h >>conftest.$ac_ext
8048cat >>conftest.$ac_ext <<_ACEOF
8049/* end confdefs.h.  */
8050
8051int
8052main ()
8053{
8054
8055  ;
8056  return 0;
8057}
8058_ACEOF
8059rm -f conftest.$ac_objext conftest$ac_exeext
8060if { (ac_try="$ac_link"
8061case "(($ac_try" in
8062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063  *) ac_try_echo=$ac_try;;
8064esac
8065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066  (eval "$ac_link") 2>conftest.er1
8067  ac_status=$?
8068  grep -v '^ *+' conftest.er1 >conftest.err
8069  rm -f conftest.er1
8070  cat conftest.err >&5
8071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072  (exit $ac_status); } && {
8073	 test -z "$ac_c_werror_flag" ||
8074	 test ! -s conftest.err
8075       } && test -s conftest$ac_exeext &&
8076       $as_test_x conftest$ac_exeext; then
8077
8078lt_aix_libpath_sed='
8079    /Import File Strings/,/^$/ {
8080	/^0/ {
8081	    s/^0  *\(.*\)$/\1/
8082	    p
8083	}
8084    }'
8085aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8086# Check for a 64-bit object if we didn't find anything.
8087if test -z "$aix_libpath"; then
8088  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8089fi
8090else
8091  echo "$as_me: failed program was:" >&5
8092sed 's/^/| /' conftest.$ac_ext >&5
8093
8094
8095fi
8096
8097rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8098      conftest$ac_exeext conftest.$ac_ext
8099if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8100
8101	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8102	  # Warning - without using the other run time loading flags,
8103	  # -berok will link without error, but may produce a broken library.
8104	  no_undefined_flag=' ${wl}-bernotok'
8105	  allow_undefined_flag=' ${wl}-berok'
8106	  # Exported symbols can be pulled into shared objects from archives
8107	  whole_archive_flag_spec='$convenience'
8108	  archive_cmds_need_lc=yes
8109	  # This is similar to how AIX traditionally builds its shared libraries.
8110	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8111	fi
8112      fi
8113      ;;
8114
8115    amigaos*)
8116      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)'
8117      hardcode_libdir_flag_spec='-L$libdir'
8118      hardcode_minus_L=yes
8119      # see comment about different semantics on the GNU ld section
8120      ld_shlibs=no
8121      ;;
8122
8123    bsdi[45]*)
8124      export_dynamic_flag_spec=-rdynamic
8125      ;;
8126
8127    cygwin* | mingw* | pw32*)
8128      # When not using gcc, we currently assume that we are using
8129      # Microsoft Visual C++.
8130      # hardcode_libdir_flag_spec is actually meaningless, as there is
8131      # no search path for DLLs.
8132      hardcode_libdir_flag_spec=' '
8133      allow_undefined_flag=unsupported
8134      # Tell ltmain to make .lib files, not .a files.
8135      libext=lib
8136      # Tell ltmain to make .dll files, not .so files.
8137      shrext_cmds=".dll"
8138      # FIXME: Setting linknames here is a bad hack.
8139      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8140      # The linker will automatically build a .lib file if we build a DLL.
8141      old_archive_From_new_cmds='true'
8142      # FIXME: Should let the user specify the lib program.
8143      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8144      fix_srcfile_path='`cygpath -w "$srcfile"`'
8145      enable_shared_with_static_runtimes=yes
8146      ;;
8147
8148    darwin* | rhapsody*)
8149      case $host_os in
8150        rhapsody* | darwin1.[012])
8151         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8152         ;;
8153       *) # Darwin 1.3 on
8154         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8155           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8156         else
8157           case ${MACOSX_DEPLOYMENT_TARGET} in
8158             10.[012])
8159               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8160               ;;
8161             10.*)
8162               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8163               ;;
8164           esac
8165         fi
8166         ;;
8167      esac
8168      archive_cmds_need_lc=no
8169      hardcode_direct=no
8170      hardcode_automatic=yes
8171      hardcode_shlibpath_var=unsupported
8172      whole_archive_flag_spec=''
8173      link_all_deplibs=yes
8174    if test "$GCC" = yes ; then
8175    	output_verbose_link_cmd='echo'
8176        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8177      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8178      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8179      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8180      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8181    else
8182      case $cc_basename in
8183        xlc*)
8184         output_verbose_link_cmd='echo'
8185         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8186         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8187          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8188         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8189          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8190          ;;
8191       *)
8192         ld_shlibs=no
8193          ;;
8194      esac
8195    fi
8196      ;;
8197
8198    dgux*)
8199      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8200      hardcode_libdir_flag_spec='-L$libdir'
8201      hardcode_shlibpath_var=no
8202      ;;
8203
8204    freebsd1*)
8205      ld_shlibs=no
8206      ;;
8207
8208    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8209    # support.  Future versions do this automatically, but an explicit c++rt0.o
8210    # does not break anything, and helps significantly (at the cost of a little
8211    # extra space).
8212    freebsd2.2*)
8213      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8214      hardcode_libdir_flag_spec='-R$libdir'
8215      hardcode_direct=yes
8216      hardcode_shlibpath_var=no
8217      ;;
8218
8219    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8220    freebsd2*)
8221      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8222      hardcode_direct=yes
8223      hardcode_minus_L=yes
8224      hardcode_shlibpath_var=no
8225      ;;
8226
8227    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8228    freebsd* | dragonfly*)
8229      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8230      hardcode_libdir_flag_spec='-R$libdir'
8231      hardcode_direct=yes
8232      hardcode_shlibpath_var=no
8233      ;;
8234
8235    hpux9*)
8236      if test "$GCC" = yes; then
8237	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8238      else
8239	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'
8240      fi
8241      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8242      hardcode_libdir_separator=:
8243      hardcode_direct=yes
8244
8245      # hardcode_minus_L: Not really in the search PATH,
8246      # but as the default location of the library.
8247      hardcode_minus_L=yes
8248      export_dynamic_flag_spec='${wl}-E'
8249      ;;
8250
8251    hpux10*)
8252      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8253	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8254      else
8255	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8256      fi
8257      if test "$with_gnu_ld" = no; then
8258	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8259	hardcode_libdir_separator=:
8260
8261	hardcode_direct=yes
8262	export_dynamic_flag_spec='${wl}-E'
8263
8264	# hardcode_minus_L: Not really in the search PATH,
8265	# but as the default location of the library.
8266	hardcode_minus_L=yes
8267      fi
8268      ;;
8269
8270    hpux11*)
8271      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8272	case $host_cpu in
8273	hppa*64*)
8274	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8275	  ;;
8276	ia64*)
8277	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8278	  ;;
8279	*)
8280	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8281	  ;;
8282	esac
8283      else
8284	case $host_cpu in
8285	hppa*64*)
8286	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8287	  ;;
8288	ia64*)
8289	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8290	  ;;
8291	*)
8292	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8293	  ;;
8294	esac
8295      fi
8296      if test "$with_gnu_ld" = no; then
8297	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8298	hardcode_libdir_separator=:
8299
8300	case $host_cpu in
8301	hppa*64*|ia64*)
8302	  hardcode_libdir_flag_spec_ld='+b $libdir'
8303	  hardcode_direct=no
8304	  hardcode_shlibpath_var=no
8305	  ;;
8306	*)
8307	  hardcode_direct=yes
8308	  export_dynamic_flag_spec='${wl}-E'
8309
8310	  # hardcode_minus_L: Not really in the search PATH,
8311	  # but as the default location of the library.
8312	  hardcode_minus_L=yes
8313	  ;;
8314	esac
8315      fi
8316      ;;
8317
8318    irix5* | irix6* | nonstopux*)
8319      if test "$GCC" = yes; then
8320	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8321      else
8322	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'
8323	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8324      fi
8325      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8326      hardcode_libdir_separator=:
8327      link_all_deplibs=yes
8328      ;;
8329
8330    netbsd*)
8331      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8332	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8333      else
8334	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8335      fi
8336      hardcode_libdir_flag_spec='-R$libdir'
8337      hardcode_direct=yes
8338      hardcode_shlibpath_var=no
8339      ;;
8340
8341    newsos6)
8342      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8343      hardcode_direct=yes
8344      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8345      hardcode_libdir_separator=:
8346      hardcode_shlibpath_var=no
8347      ;;
8348
8349    openbsd*)
8350      if test -f /usr/libexec/ld.so; then
8351	hardcode_direct=yes
8352	hardcode_shlibpath_var=no
8353	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8354	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8355	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8356	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8357	  export_dynamic_flag_spec='${wl}-E'
8358	else
8359	  case $host_os in
8360	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8361	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8362	     hardcode_libdir_flag_spec='-R$libdir'
8363	     ;;
8364	   *)
8365	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8366	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8367	     ;;
8368	  esac
8369        fi
8370      else
8371	ld_shlibs=no
8372      fi
8373      ;;
8374
8375    os2*)
8376      hardcode_libdir_flag_spec='-L$libdir'
8377      hardcode_minus_L=yes
8378      allow_undefined_flag=unsupported
8379      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8380      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8381      ;;
8382
8383    osf3*)
8384      if test "$GCC" = yes; then
8385	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8386	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8387      else
8388	allow_undefined_flag=' -expect_unresolved \*'
8389	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'
8390      fi
8391      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8392      hardcode_libdir_separator=:
8393      ;;
8394
8395    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8396      if test "$GCC" = yes; then
8397	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8398	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8399	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8400      else
8401	allow_undefined_flag=' -expect_unresolved \*'
8402	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'
8403	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8404	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8405
8406	# Both c and cxx compiler support -rpath directly
8407	hardcode_libdir_flag_spec='-rpath $libdir'
8408      fi
8409      hardcode_libdir_separator=:
8410      ;;
8411
8412    solaris*)
8413      no_undefined_flag=' -z text'
8414      if test "$GCC" = yes; then
8415	wlarc='${wl}'
8416	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8417	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8418	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8419      else
8420	wlarc=''
8421	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8422	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8423  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8424      fi
8425      hardcode_libdir_flag_spec='-R$libdir'
8426      hardcode_shlibpath_var=no
8427      case $host_os in
8428      solaris2.[0-5] | solaris2.[0-5].*) ;;
8429      *)
8430	# The compiler driver will combine and reorder linker options,
8431	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8432	# but is careful enough not to reorder.
8433 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8434	if test "$GCC" = yes; then
8435	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8436	else
8437	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8438	fi
8439	;;
8440      esac
8441      link_all_deplibs=yes
8442      ;;
8443
8444    sunos4*)
8445      if test "x$host_vendor" = xsequent; then
8446	# Use $CC to link under sequent, because it throws in some extra .o
8447	# files that make .init and .fini sections work.
8448	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8449      else
8450	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8451      fi
8452      hardcode_libdir_flag_spec='-L$libdir'
8453      hardcode_direct=yes
8454      hardcode_minus_L=yes
8455      hardcode_shlibpath_var=no
8456      ;;
8457
8458    sysv4)
8459      case $host_vendor in
8460	sni)
8461	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8462	  hardcode_direct=yes # is this really true???
8463	;;
8464	siemens)
8465	  ## LD is ld it makes a PLAMLIB
8466	  ## CC just makes a GrossModule.
8467	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8468	  reload_cmds='$CC -r -o $output$reload_objs'
8469	  hardcode_direct=no
8470        ;;
8471	motorola)
8472	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8473	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8474	;;
8475      esac
8476      runpath_var='LD_RUN_PATH'
8477      hardcode_shlibpath_var=no
8478      ;;
8479
8480    sysv4.3*)
8481      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8482      hardcode_shlibpath_var=no
8483      export_dynamic_flag_spec='-Bexport'
8484      ;;
8485
8486    sysv4*MP*)
8487      if test -d /usr/nec; then
8488	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8489	hardcode_shlibpath_var=no
8490	runpath_var=LD_RUN_PATH
8491	hardcode_runpath_var=yes
8492	ld_shlibs=yes
8493      fi
8494      ;;
8495
8496    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8497      no_undefined_flag='${wl}-z,text'
8498      archive_cmds_need_lc=no
8499      hardcode_shlibpath_var=no
8500      runpath_var='LD_RUN_PATH'
8501
8502      if test "$GCC" = yes; then
8503	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8504	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8505      else
8506	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8507	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8508      fi
8509      ;;
8510
8511    sysv5* | sco3.2v5* | sco5v6*)
8512      # Note: We can NOT use -z defs as we might desire, because we do not
8513      # link with -lc, and that would cause any symbols used from libc to
8514      # always be unresolved, which means just about no library would
8515      # ever link correctly.  If we're not using GNU ld we use -z text
8516      # though, which does catch some bad symbols but isn't as heavy-handed
8517      # as -z defs.
8518      no_undefined_flag='${wl}-z,text'
8519      allow_undefined_flag='${wl}-z,nodefs'
8520      archive_cmds_need_lc=no
8521      hardcode_shlibpath_var=no
8522      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8523      hardcode_libdir_separator=':'
8524      link_all_deplibs=yes
8525      export_dynamic_flag_spec='${wl}-Bexport'
8526      runpath_var='LD_RUN_PATH'
8527
8528      if test "$GCC" = yes; then
8529	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8530	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8531      else
8532	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8533	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8534      fi
8535      ;;
8536
8537    uts4*)
8538      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8539      hardcode_libdir_flag_spec='-L$libdir'
8540      hardcode_shlibpath_var=no
8541      ;;
8542
8543    *)
8544      ld_shlibs=no
8545      ;;
8546    esac
8547  fi
8548
8549{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8550echo "${ECHO_T}$ld_shlibs" >&6; }
8551test "$ld_shlibs" = no && can_build_shared=no
8552
8553#
8554# Do we need to explicitly link libc?
8555#
8556case "x$archive_cmds_need_lc" in
8557x|xyes)
8558  # Assume -lc should be added
8559  archive_cmds_need_lc=yes
8560
8561  if test "$enable_shared" = yes && test "$GCC" = yes; then
8562    case $archive_cmds in
8563    *'~'*)
8564      # FIXME: we may have to deal with multi-command sequences.
8565      ;;
8566    '$CC '*)
8567      # Test whether the compiler implicitly links with -lc since on some
8568      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8569      # to ld, don't add -lc before -lgcc.
8570      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8571echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8572      $rm conftest*
8573      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8574
8575      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8576  (eval $ac_compile) 2>&5
8577  ac_status=$?
8578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579  (exit $ac_status); } 2>conftest.err; then
8580        soname=conftest
8581        lib=conftest
8582        libobjs=conftest.$ac_objext
8583        deplibs=
8584        wl=$lt_prog_compiler_wl
8585	pic_flag=$lt_prog_compiler_pic
8586        compiler_flags=-v
8587        linker_flags=-v
8588        verstring=
8589        output_objdir=.
8590        libname=conftest
8591        lt_save_allow_undefined_flag=$allow_undefined_flag
8592        allow_undefined_flag=
8593        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8594  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8595  ac_status=$?
8596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597  (exit $ac_status); }
8598        then
8599	  archive_cmds_need_lc=no
8600        else
8601	  archive_cmds_need_lc=yes
8602        fi
8603        allow_undefined_flag=$lt_save_allow_undefined_flag
8604      else
8605        cat conftest.err 1>&5
8606      fi
8607      $rm conftest*
8608      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8609echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8610      ;;
8611    esac
8612  fi
8613  ;;
8614esac
8615
8616{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8617echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8618library_names_spec=
8619libname_spec='lib$name'
8620soname_spec=
8621shrext_cmds=".so"
8622postinstall_cmds=
8623postuninstall_cmds=
8624finish_cmds=
8625finish_eval=
8626shlibpath_var=
8627shlibpath_overrides_runpath=unknown
8628version_type=none
8629dynamic_linker="$host_os ld.so"
8630sys_lib_dlsearch_path_spec="/lib /usr/lib"
8631
8632if test "$GCC" = yes; then
8633  case $host_os in
8634    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8635    *) lt_awk_arg="/^libraries:/" ;;
8636  esac
8637  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8638  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8639    # if the path contains ";" then we assume it to be the separator
8640    # otherwise default to the standard path separator (i.e. ":") - it is
8641    # assumed that no part of a normal pathname contains ";" but that should
8642    # okay in the real world where ";" in dirpaths is itself problematic.
8643    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8644  else
8645    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8646  fi
8647  # Ok, now we have the path, separated by spaces, we can step through it
8648  # and add multilib dir if necessary.
8649  lt_tmp_lt_search_path_spec=
8650  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8651  for lt_sys_path in $lt_search_path_spec; do
8652    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8653      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8654    else
8655      test -d "$lt_sys_path" && \
8656	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8657    fi
8658  done
8659  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8660BEGIN {RS=" "; FS="/|\n";} {
8661  lt_foo="";
8662  lt_count=0;
8663  for (lt_i = NF; lt_i > 0; lt_i--) {
8664    if ($lt_i != "" && $lt_i != ".") {
8665      if ($lt_i == "..") {
8666        lt_count++;
8667      } else {
8668        if (lt_count == 0) {
8669          lt_foo="/" $lt_i lt_foo;
8670        } else {
8671          lt_count--;
8672        }
8673      }
8674    }
8675  }
8676  if (lt_foo != "") { lt_freq[lt_foo]++; }
8677  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8678}'`
8679  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8680else
8681  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8682fi
8683need_lib_prefix=unknown
8684hardcode_into_libs=no
8685
8686# when you set need_version to no, make sure it does not cause -set_version
8687# flags to be left without arguments
8688need_version=unknown
8689
8690case $host_os in
8691aix3*)
8692  version_type=linux
8693  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8694  shlibpath_var=LIBPATH
8695
8696  # AIX 3 has no versioning support, so we append a major version to the name.
8697  soname_spec='${libname}${release}${shared_ext}$major'
8698  ;;
8699
8700aix4* | aix5*)
8701  version_type=linux
8702  need_lib_prefix=no
8703  need_version=no
8704  hardcode_into_libs=yes
8705  if test "$host_cpu" = ia64; then
8706    # AIX 5 supports IA64
8707    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8708    shlibpath_var=LD_LIBRARY_PATH
8709  else
8710    # With GCC up to 2.95.x, collect2 would create an import file
8711    # for dependence libraries.  The import file would start with
8712    # the line `#! .'.  This would cause the generated library to
8713    # depend on `.', always an invalid library.  This was fixed in
8714    # development snapshots of GCC prior to 3.0.
8715    case $host_os in
8716      aix4 | aix4.[01] | aix4.[01].*)
8717      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8718	   echo ' yes '
8719	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8720	:
8721      else
8722	can_build_shared=no
8723      fi
8724      ;;
8725    esac
8726    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8727    # soname into executable. Probably we can add versioning support to
8728    # collect2, so additional links can be useful in future.
8729    if test "$aix_use_runtimelinking" = yes; then
8730      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8731      # instead of lib<name>.a to let people know that these are not
8732      # typical AIX shared libraries.
8733      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8734    else
8735      # We preserve .a as extension for shared libraries through AIX4.2
8736      # and later when we are not doing run time linking.
8737      library_names_spec='${libname}${release}.a $libname.a'
8738      soname_spec='${libname}${release}${shared_ext}$major'
8739    fi
8740    shlibpath_var=LIBPATH
8741  fi
8742  ;;
8743
8744amigaos*)
8745  library_names_spec='$libname.ixlibrary $libname.a'
8746  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8747  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'
8748  ;;
8749
8750beos*)
8751  library_names_spec='${libname}${shared_ext}'
8752  dynamic_linker="$host_os ld.so"
8753  shlibpath_var=LIBRARY_PATH
8754  ;;
8755
8756bsdi[45]*)
8757  version_type=linux
8758  need_version=no
8759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8760  soname_spec='${libname}${release}${shared_ext}$major'
8761  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8762  shlibpath_var=LD_LIBRARY_PATH
8763  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8764  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8765  # the default ld.so.conf also contains /usr/contrib/lib and
8766  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8767  # libtool to hard-code these into programs
8768  ;;
8769
8770cygwin* | mingw* | pw32*)
8771  version_type=windows
8772  shrext_cmds=".dll"
8773  need_version=no
8774  need_lib_prefix=no
8775
8776  case $GCC,$host_os in
8777  yes,cygwin* | yes,mingw* | yes,pw32*)
8778    library_names_spec='$libname.dll.a'
8779    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8780    postinstall_cmds='base_file=`basename \${file}`~
8781      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8782      dldir=$destdir/`dirname \$dlpath`~
8783      test -d \$dldir || mkdir -p \$dldir~
8784      $install_prog $dir/$dlname \$dldir/$dlname~
8785      chmod a+x \$dldir/$dlname'
8786    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8787      dlpath=$dir/\$dldll~
8788       $rm \$dlpath'
8789    shlibpath_overrides_runpath=yes
8790
8791    case $host_os in
8792    cygwin*)
8793      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8794      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8795      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8796      ;;
8797    mingw*)
8798      # MinGW DLLs use traditional 'lib' prefix
8799      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8800      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8801      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8802        # It is most probably a Windows format PATH printed by
8803        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8804        # path with ; separators, and with drive letters. We can handle the
8805        # drive letters (cygwin fileutils understands them), so leave them,
8806        # especially as we might pass files found there to a mingw objdump,
8807        # which wouldn't understand a cygwinified path. Ahh.
8808        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8809      else
8810        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8811      fi
8812      ;;
8813    pw32*)
8814      # pw32 DLLs use 'pw' prefix rather than 'lib'
8815      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8816      ;;
8817    esac
8818    ;;
8819
8820  *)
8821    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8822    ;;
8823  esac
8824  dynamic_linker='Win32 ld.exe'
8825  # FIXME: first we should search . and the directory the executable is in
8826  shlibpath_var=PATH
8827  ;;
8828
8829darwin* | rhapsody*)
8830  dynamic_linker="$host_os dyld"
8831  version_type=darwin
8832  need_lib_prefix=no
8833  need_version=no
8834  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8835  soname_spec='${libname}${release}${major}$shared_ext'
8836  shlibpath_overrides_runpath=yes
8837  shlibpath_var=DYLD_LIBRARY_PATH
8838  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8839
8840  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8841  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8842  ;;
8843
8844dgux*)
8845  version_type=linux
8846  need_lib_prefix=no
8847  need_version=no
8848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8849  soname_spec='${libname}${release}${shared_ext}$major'
8850  shlibpath_var=LD_LIBRARY_PATH
8851  ;;
8852
8853freebsd1*)
8854  dynamic_linker=no
8855  ;;
8856
8857freebsd* | dragonfly*)
8858  # DragonFly does not have aout.  When/if they implement a new
8859  # versioning mechanism, adjust this.
8860  if test -x /usr/bin/objformat; then
8861    objformat=`/usr/bin/objformat`
8862  else
8863    case $host_os in
8864    freebsd[123]*) objformat=aout ;;
8865    *) objformat=elf ;;
8866    esac
8867  fi
8868  version_type=freebsd-$objformat
8869  case $version_type in
8870    freebsd-elf*)
8871      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8872      need_version=no
8873      need_lib_prefix=no
8874      ;;
8875    freebsd-*)
8876      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8877      need_version=yes
8878      ;;
8879  esac
8880  shlibpath_var=LD_LIBRARY_PATH
8881  case $host_os in
8882  freebsd2*)
8883    shlibpath_overrides_runpath=yes
8884    ;;
8885  freebsd3.[01]* | freebsdelf3.[01]*)
8886    shlibpath_overrides_runpath=yes
8887    hardcode_into_libs=yes
8888    ;;
8889  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8890  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8891    shlibpath_overrides_runpath=no
8892    hardcode_into_libs=yes
8893    ;;
8894  *) # from 4.6 on, and DragonFly
8895    shlibpath_overrides_runpath=yes
8896    hardcode_into_libs=yes
8897    ;;
8898  esac
8899  ;;
8900
8901gnu*)
8902  version_type=linux
8903  need_lib_prefix=no
8904  need_version=no
8905  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8906  soname_spec='${libname}${release}${shared_ext}$major'
8907  shlibpath_var=LD_LIBRARY_PATH
8908  hardcode_into_libs=yes
8909  ;;
8910
8911hpux9* | hpux10* | hpux11*)
8912  # Give a soname corresponding to the major version so that dld.sl refuses to
8913  # link against other versions.
8914  version_type=sunos
8915  need_lib_prefix=no
8916  need_version=no
8917  case $host_cpu in
8918  ia64*)
8919    shrext_cmds='.so'
8920    hardcode_into_libs=yes
8921    dynamic_linker="$host_os dld.so"
8922    shlibpath_var=LD_LIBRARY_PATH
8923    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8924    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8925    soname_spec='${libname}${release}${shared_ext}$major'
8926    if test "X$HPUX_IA64_MODE" = X32; then
8927      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8928    else
8929      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8930    fi
8931    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8932    ;;
8933   hppa*64*)
8934     shrext_cmds='.sl'
8935     hardcode_into_libs=yes
8936     dynamic_linker="$host_os dld.sl"
8937     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8938     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8939     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8940     soname_spec='${libname}${release}${shared_ext}$major'
8941     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8942     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8943     ;;
8944   *)
8945    shrext_cmds='.sl'
8946    dynamic_linker="$host_os dld.sl"
8947    shlibpath_var=SHLIB_PATH
8948    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8949    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950    soname_spec='${libname}${release}${shared_ext}$major'
8951    ;;
8952  esac
8953  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8954  postinstall_cmds='chmod 555 $lib'
8955  ;;
8956
8957interix[3-9]*)
8958  version_type=linux
8959  need_lib_prefix=no
8960  need_version=no
8961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8962  soname_spec='${libname}${release}${shared_ext}$major'
8963  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8964  shlibpath_var=LD_LIBRARY_PATH
8965  shlibpath_overrides_runpath=no
8966  hardcode_into_libs=yes
8967  ;;
8968
8969irix5* | irix6* | nonstopux*)
8970  case $host_os in
8971    nonstopux*) version_type=nonstopux ;;
8972    *)
8973	if test "$lt_cv_prog_gnu_ld" = yes; then
8974		version_type=linux
8975	else
8976		version_type=irix
8977	fi ;;
8978  esac
8979  need_lib_prefix=no
8980  need_version=no
8981  soname_spec='${libname}${release}${shared_ext}$major'
8982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8983  case $host_os in
8984  irix5* | nonstopux*)
8985    libsuff= shlibsuff=
8986    ;;
8987  *)
8988    case $LD in # libtool.m4 will add one of these switches to LD
8989    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8990      libsuff= shlibsuff= libmagic=32-bit;;
8991    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8992      libsuff=32 shlibsuff=N32 libmagic=N32;;
8993    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8994      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8995    *) libsuff= shlibsuff= libmagic=never-match;;
8996    esac
8997    ;;
8998  esac
8999  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9000  shlibpath_overrides_runpath=no
9001  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9002  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9003  hardcode_into_libs=yes
9004  ;;
9005
9006# No shared lib support for Linux oldld, aout, or coff.
9007linux*oldld* | linux*aout* | linux*coff*)
9008  dynamic_linker=no
9009  ;;
9010
9011# This must be Linux ELF.
9012linux* | k*bsd*-gnu)
9013  version_type=linux
9014  need_lib_prefix=no
9015  need_version=no
9016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017  soname_spec='${libname}${release}${shared_ext}$major'
9018  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9019  shlibpath_var=LD_LIBRARY_PATH
9020  shlibpath_overrides_runpath=no
9021  # This implies no fast_install, which is unacceptable.
9022  # Some rework will be needed to allow for fast_install
9023  # before this can be enabled.
9024  hardcode_into_libs=yes
9025  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9026  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9027
9028  # Append ld.so.conf contents to the search path
9029  if test -f /etc/ld.so.conf; then
9030    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9031    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9032  fi
9033
9034  # We used to test for /lib/ld.so.1 and disable shared libraries on
9035  # powerpc, because MkLinux only supported shared libraries with the
9036  # GNU dynamic linker.  Since this was broken with cross compilers,
9037  # most powerpc-linux boxes support dynamic linking these days and
9038  # people can always --disable-shared, the test was removed, and we
9039  # assume the GNU/Linux dynamic linker is in use.
9040  dynamic_linker='GNU/Linux ld.so'
9041  ;;
9042
9043netbsd*)
9044  version_type=sunos
9045  need_lib_prefix=no
9046  need_version=no
9047  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9048    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9049    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9050    dynamic_linker='NetBSD (a.out) ld.so'
9051  else
9052    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9053    soname_spec='${libname}${release}${shared_ext}$major'
9054    dynamic_linker='NetBSD ld.elf_so'
9055  fi
9056  shlibpath_var=LD_LIBRARY_PATH
9057  shlibpath_overrides_runpath=yes
9058  hardcode_into_libs=yes
9059  ;;
9060
9061newsos6)
9062  version_type=linux
9063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9064  shlibpath_var=LD_LIBRARY_PATH
9065  shlibpath_overrides_runpath=yes
9066  ;;
9067
9068nto-qnx*)
9069  version_type=linux
9070  need_lib_prefix=no
9071  need_version=no
9072  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073  soname_spec='${libname}${release}${shared_ext}$major'
9074  shlibpath_var=LD_LIBRARY_PATH
9075  shlibpath_overrides_runpath=yes
9076  ;;
9077
9078openbsd*)
9079  version_type=sunos
9080  sys_lib_dlsearch_path_spec="/usr/lib"
9081  need_lib_prefix=no
9082  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9083  case $host_os in
9084    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9085    *)                         need_version=no  ;;
9086  esac
9087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9088  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9089  shlibpath_var=LD_LIBRARY_PATH
9090  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9091    case $host_os in
9092      openbsd2.[89] | openbsd2.[89].*)
9093	shlibpath_overrides_runpath=no
9094	;;
9095      *)
9096	shlibpath_overrides_runpath=yes
9097	;;
9098      esac
9099  else
9100    shlibpath_overrides_runpath=yes
9101  fi
9102  ;;
9103
9104os2*)
9105  libname_spec='$name'
9106  shrext_cmds=".dll"
9107  need_lib_prefix=no
9108  library_names_spec='$libname${shared_ext} $libname.a'
9109  dynamic_linker='OS/2 ld.exe'
9110  shlibpath_var=LIBPATH
9111  ;;
9112
9113osf3* | osf4* | osf5*)
9114  version_type=osf
9115  need_lib_prefix=no
9116  need_version=no
9117  soname_spec='${libname}${release}${shared_ext}$major'
9118  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119  shlibpath_var=LD_LIBRARY_PATH
9120  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9121  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9122  ;;
9123
9124rdos*)
9125  dynamic_linker=no
9126  ;;
9127
9128solaris*)
9129  version_type=linux
9130  need_lib_prefix=no
9131  need_version=no
9132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9133  soname_spec='${libname}${release}${shared_ext}$major'
9134  shlibpath_var=LD_LIBRARY_PATH
9135  shlibpath_overrides_runpath=yes
9136  hardcode_into_libs=yes
9137  # ldd complains unless libraries are executable
9138  postinstall_cmds='chmod +x $lib'
9139  ;;
9140
9141sunos4*)
9142  version_type=sunos
9143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9144  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9145  shlibpath_var=LD_LIBRARY_PATH
9146  shlibpath_overrides_runpath=yes
9147  if test "$with_gnu_ld" = yes; then
9148    need_lib_prefix=no
9149  fi
9150  need_version=yes
9151  ;;
9152
9153sysv4 | sysv4.3*)
9154  version_type=linux
9155  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156  soname_spec='${libname}${release}${shared_ext}$major'
9157  shlibpath_var=LD_LIBRARY_PATH
9158  case $host_vendor in
9159    sni)
9160      shlibpath_overrides_runpath=no
9161      need_lib_prefix=no
9162      export_dynamic_flag_spec='${wl}-Blargedynsym'
9163      runpath_var=LD_RUN_PATH
9164      ;;
9165    siemens)
9166      need_lib_prefix=no
9167      ;;
9168    motorola)
9169      need_lib_prefix=no
9170      need_version=no
9171      shlibpath_overrides_runpath=no
9172      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9173      ;;
9174  esac
9175  ;;
9176
9177sysv4*MP*)
9178  if test -d /usr/nec ;then
9179    version_type=linux
9180    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9181    soname_spec='$libname${shared_ext}.$major'
9182    shlibpath_var=LD_LIBRARY_PATH
9183  fi
9184  ;;
9185
9186sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9187  version_type=freebsd-elf
9188  need_lib_prefix=no
9189  need_version=no
9190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9191  soname_spec='${libname}${release}${shared_ext}$major'
9192  shlibpath_var=LD_LIBRARY_PATH
9193  hardcode_into_libs=yes
9194  if test "$with_gnu_ld" = yes; then
9195    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9196    shlibpath_overrides_runpath=no
9197  else
9198    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9199    shlibpath_overrides_runpath=yes
9200    case $host_os in
9201      sco3.2v5*)
9202        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9203	;;
9204    esac
9205  fi
9206  sys_lib_dlsearch_path_spec='/usr/lib'
9207  ;;
9208
9209uts4*)
9210  version_type=linux
9211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9212  soname_spec='${libname}${release}${shared_ext}$major'
9213  shlibpath_var=LD_LIBRARY_PATH
9214  ;;
9215
9216*)
9217  dynamic_linker=no
9218  ;;
9219esac
9220{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9221echo "${ECHO_T}$dynamic_linker" >&6; }
9222test "$dynamic_linker" = no && can_build_shared=no
9223
9224variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9225if test "$GCC" = yes; then
9226  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9227fi
9228
9229{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9230echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9231hardcode_action=
9232if test -n "$hardcode_libdir_flag_spec" || \
9233   test -n "$runpath_var" || \
9234   test "X$hardcode_automatic" = "Xyes" ; then
9235
9236  # We can hardcode non-existant directories.
9237  if test "$hardcode_direct" != no &&
9238     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9239     # have to relink, otherwise we might link with an installed library
9240     # when we should be linking with a yet-to-be-installed one
9241     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9242     test "$hardcode_minus_L" != no; then
9243    # Linking always hardcodes the temporary library directory.
9244    hardcode_action=relink
9245  else
9246    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9247    hardcode_action=immediate
9248  fi
9249else
9250  # We cannot hardcode anything, or else we can only hardcode existing
9251  # directories.
9252  hardcode_action=unsupported
9253fi
9254{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9255echo "${ECHO_T}$hardcode_action" >&6; }
9256
9257if test "$hardcode_action" = relink; then
9258  # Fast installation is not supported
9259  enable_fast_install=no
9260elif test "$shlibpath_overrides_runpath" = yes ||
9261     test "$enable_shared" = no; then
9262  # Fast installation is not necessary
9263  enable_fast_install=needless
9264fi
9265
9266striplib=
9267old_striplib=
9268{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9269echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9270if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9271  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9272  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9273  { echo "$as_me:$LINENO: result: yes" >&5
9274echo "${ECHO_T}yes" >&6; }
9275else
9276# FIXME - insert some real tests, host_os isn't really good enough
9277  case $host_os in
9278   darwin*)
9279       if test -n "$STRIP" ; then
9280         striplib="$STRIP -x"
9281         old_striplib="$STRIP -S"
9282         { echo "$as_me:$LINENO: result: yes" >&5
9283echo "${ECHO_T}yes" >&6; }
9284       else
9285  { echo "$as_me:$LINENO: result: no" >&5
9286echo "${ECHO_T}no" >&6; }
9287fi
9288       ;;
9289   *)
9290  { echo "$as_me:$LINENO: result: no" >&5
9291echo "${ECHO_T}no" >&6; }
9292    ;;
9293  esac
9294fi
9295
9296if test "x$enable_dlopen" != xyes; then
9297  enable_dlopen=unknown
9298  enable_dlopen_self=unknown
9299  enable_dlopen_self_static=unknown
9300else
9301  lt_cv_dlopen=no
9302  lt_cv_dlopen_libs=
9303
9304  case $host_os in
9305  beos*)
9306    lt_cv_dlopen="load_add_on"
9307    lt_cv_dlopen_libs=
9308    lt_cv_dlopen_self=yes
9309    ;;
9310
9311  mingw* | pw32*)
9312    lt_cv_dlopen="LoadLibrary"
9313    lt_cv_dlopen_libs=
9314   ;;
9315
9316  cygwin*)
9317    lt_cv_dlopen="dlopen"
9318    lt_cv_dlopen_libs=
9319   ;;
9320
9321  darwin*)
9322  # if libdl is installed we need to link against it
9323    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9324echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9325if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9326  echo $ECHO_N "(cached) $ECHO_C" >&6
9327else
9328  ac_check_lib_save_LIBS=$LIBS
9329LIBS="-ldl  $LIBS"
9330cat >conftest.$ac_ext <<_ACEOF
9331/* confdefs.h.  */
9332_ACEOF
9333cat confdefs.h >>conftest.$ac_ext
9334cat >>conftest.$ac_ext <<_ACEOF
9335/* end confdefs.h.  */
9336
9337/* Override any GCC internal prototype to avoid an error.
9338   Use char because int might match the return type of a GCC
9339   builtin and then its argument prototype would still apply.  */
9340#ifdef __cplusplus
9341extern "C"
9342#endif
9343char dlopen ();
9344int
9345main ()
9346{
9347return dlopen ();
9348  ;
9349  return 0;
9350}
9351_ACEOF
9352rm -f conftest.$ac_objext conftest$ac_exeext
9353if { (ac_try="$ac_link"
9354case "(($ac_try" in
9355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9356  *) ac_try_echo=$ac_try;;
9357esac
9358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9359  (eval "$ac_link") 2>conftest.er1
9360  ac_status=$?
9361  grep -v '^ *+' conftest.er1 >conftest.err
9362  rm -f conftest.er1
9363  cat conftest.err >&5
9364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365  (exit $ac_status); } && {
9366	 test -z "$ac_c_werror_flag" ||
9367	 test ! -s conftest.err
9368       } && test -s conftest$ac_exeext &&
9369       $as_test_x conftest$ac_exeext; then
9370  ac_cv_lib_dl_dlopen=yes
9371else
9372  echo "$as_me: failed program was:" >&5
9373sed 's/^/| /' conftest.$ac_ext >&5
9374
9375	ac_cv_lib_dl_dlopen=no
9376fi
9377
9378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9379      conftest$ac_exeext conftest.$ac_ext
9380LIBS=$ac_check_lib_save_LIBS
9381fi
9382{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9383echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9384if test $ac_cv_lib_dl_dlopen = yes; then
9385  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9386else
9387
9388    lt_cv_dlopen="dyld"
9389    lt_cv_dlopen_libs=
9390    lt_cv_dlopen_self=yes
9391
9392fi
9393
9394   ;;
9395
9396  *)
9397    { echo "$as_me:$LINENO: checking for shl_load" >&5
9398echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9399if test "${ac_cv_func_shl_load+set}" = set; then
9400  echo $ECHO_N "(cached) $ECHO_C" >&6
9401else
9402  cat >conftest.$ac_ext <<_ACEOF
9403/* confdefs.h.  */
9404_ACEOF
9405cat confdefs.h >>conftest.$ac_ext
9406cat >>conftest.$ac_ext <<_ACEOF
9407/* end confdefs.h.  */
9408/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9409   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9410#define shl_load innocuous_shl_load
9411
9412/* System header to define __stub macros and hopefully few prototypes,
9413    which can conflict with char shl_load (); below.
9414    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9415    <limits.h> exists even on freestanding compilers.  */
9416
9417#ifdef __STDC__
9418# include <limits.h>
9419#else
9420# include <assert.h>
9421#endif
9422
9423#undef shl_load
9424
9425/* Override any GCC internal prototype to avoid an error.
9426   Use char because int might match the return type of a GCC
9427   builtin and then its argument prototype would still apply.  */
9428#ifdef __cplusplus
9429extern "C"
9430#endif
9431char shl_load ();
9432/* The GNU C library defines this for functions which it implements
9433    to always fail with ENOSYS.  Some functions are actually named
9434    something starting with __ and the normal name is an alias.  */
9435#if defined __stub_shl_load || defined __stub___shl_load
9436choke me
9437#endif
9438
9439int
9440main ()
9441{
9442return shl_load ();
9443  ;
9444  return 0;
9445}
9446_ACEOF
9447rm -f conftest.$ac_objext conftest$ac_exeext
9448if { (ac_try="$ac_link"
9449case "(($ac_try" in
9450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451  *) ac_try_echo=$ac_try;;
9452esac
9453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9454  (eval "$ac_link") 2>conftest.er1
9455  ac_status=$?
9456  grep -v '^ *+' conftest.er1 >conftest.err
9457  rm -f conftest.er1
9458  cat conftest.err >&5
9459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460  (exit $ac_status); } && {
9461	 test -z "$ac_c_werror_flag" ||
9462	 test ! -s conftest.err
9463       } && test -s conftest$ac_exeext &&
9464       $as_test_x conftest$ac_exeext; then
9465  ac_cv_func_shl_load=yes
9466else
9467  echo "$as_me: failed program was:" >&5
9468sed 's/^/| /' conftest.$ac_ext >&5
9469
9470	ac_cv_func_shl_load=no
9471fi
9472
9473rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9474      conftest$ac_exeext conftest.$ac_ext
9475fi
9476{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9477echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9478if test $ac_cv_func_shl_load = yes; then
9479  lt_cv_dlopen="shl_load"
9480else
9481  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9482echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9483if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9484  echo $ECHO_N "(cached) $ECHO_C" >&6
9485else
9486  ac_check_lib_save_LIBS=$LIBS
9487LIBS="-ldld  $LIBS"
9488cat >conftest.$ac_ext <<_ACEOF
9489/* confdefs.h.  */
9490_ACEOF
9491cat confdefs.h >>conftest.$ac_ext
9492cat >>conftest.$ac_ext <<_ACEOF
9493/* end confdefs.h.  */
9494
9495/* Override any GCC internal prototype to avoid an error.
9496   Use char because int might match the return type of a GCC
9497   builtin and then its argument prototype would still apply.  */
9498#ifdef __cplusplus
9499extern "C"
9500#endif
9501char shl_load ();
9502int
9503main ()
9504{
9505return shl_load ();
9506  ;
9507  return 0;
9508}
9509_ACEOF
9510rm -f conftest.$ac_objext conftest$ac_exeext
9511if { (ac_try="$ac_link"
9512case "(($ac_try" in
9513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514  *) ac_try_echo=$ac_try;;
9515esac
9516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517  (eval "$ac_link") 2>conftest.er1
9518  ac_status=$?
9519  grep -v '^ *+' conftest.er1 >conftest.err
9520  rm -f conftest.er1
9521  cat conftest.err >&5
9522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523  (exit $ac_status); } && {
9524	 test -z "$ac_c_werror_flag" ||
9525	 test ! -s conftest.err
9526       } && test -s conftest$ac_exeext &&
9527       $as_test_x conftest$ac_exeext; then
9528  ac_cv_lib_dld_shl_load=yes
9529else
9530  echo "$as_me: failed program was:" >&5
9531sed 's/^/| /' conftest.$ac_ext >&5
9532
9533	ac_cv_lib_dld_shl_load=no
9534fi
9535
9536rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9537      conftest$ac_exeext conftest.$ac_ext
9538LIBS=$ac_check_lib_save_LIBS
9539fi
9540{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9541echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9542if test $ac_cv_lib_dld_shl_load = yes; then
9543  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9544else
9545  { echo "$as_me:$LINENO: checking for dlopen" >&5
9546echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9547if test "${ac_cv_func_dlopen+set}" = set; then
9548  echo $ECHO_N "(cached) $ECHO_C" >&6
9549else
9550  cat >conftest.$ac_ext <<_ACEOF
9551/* confdefs.h.  */
9552_ACEOF
9553cat confdefs.h >>conftest.$ac_ext
9554cat >>conftest.$ac_ext <<_ACEOF
9555/* end confdefs.h.  */
9556/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9557   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9558#define dlopen innocuous_dlopen
9559
9560/* System header to define __stub macros and hopefully few prototypes,
9561    which can conflict with char dlopen (); below.
9562    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9563    <limits.h> exists even on freestanding compilers.  */
9564
9565#ifdef __STDC__
9566# include <limits.h>
9567#else
9568# include <assert.h>
9569#endif
9570
9571#undef dlopen
9572
9573/* Override any GCC internal prototype to avoid an error.
9574   Use char because int might match the return type of a GCC
9575   builtin and then its argument prototype would still apply.  */
9576#ifdef __cplusplus
9577extern "C"
9578#endif
9579char dlopen ();
9580/* The GNU C library defines this for functions which it implements
9581    to always fail with ENOSYS.  Some functions are actually named
9582    something starting with __ and the normal name is an alias.  */
9583#if defined __stub_dlopen || defined __stub___dlopen
9584choke me
9585#endif
9586
9587int
9588main ()
9589{
9590return dlopen ();
9591  ;
9592  return 0;
9593}
9594_ACEOF
9595rm -f conftest.$ac_objext conftest$ac_exeext
9596if { (ac_try="$ac_link"
9597case "(($ac_try" in
9598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599  *) ac_try_echo=$ac_try;;
9600esac
9601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602  (eval "$ac_link") 2>conftest.er1
9603  ac_status=$?
9604  grep -v '^ *+' conftest.er1 >conftest.err
9605  rm -f conftest.er1
9606  cat conftest.err >&5
9607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608  (exit $ac_status); } && {
9609	 test -z "$ac_c_werror_flag" ||
9610	 test ! -s conftest.err
9611       } && test -s conftest$ac_exeext &&
9612       $as_test_x conftest$ac_exeext; then
9613  ac_cv_func_dlopen=yes
9614else
9615  echo "$as_me: failed program was:" >&5
9616sed 's/^/| /' conftest.$ac_ext >&5
9617
9618	ac_cv_func_dlopen=no
9619fi
9620
9621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9622      conftest$ac_exeext conftest.$ac_ext
9623fi
9624{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9625echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9626if test $ac_cv_func_dlopen = yes; then
9627  lt_cv_dlopen="dlopen"
9628else
9629  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9630echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9631if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9632  echo $ECHO_N "(cached) $ECHO_C" >&6
9633else
9634  ac_check_lib_save_LIBS=$LIBS
9635LIBS="-ldl  $LIBS"
9636cat >conftest.$ac_ext <<_ACEOF
9637/* confdefs.h.  */
9638_ACEOF
9639cat confdefs.h >>conftest.$ac_ext
9640cat >>conftest.$ac_ext <<_ACEOF
9641/* end confdefs.h.  */
9642
9643/* Override any GCC internal prototype to avoid an error.
9644   Use char because int might match the return type of a GCC
9645   builtin and then its argument prototype would still apply.  */
9646#ifdef __cplusplus
9647extern "C"
9648#endif
9649char dlopen ();
9650int
9651main ()
9652{
9653return dlopen ();
9654  ;
9655  return 0;
9656}
9657_ACEOF
9658rm -f conftest.$ac_objext conftest$ac_exeext
9659if { (ac_try="$ac_link"
9660case "(($ac_try" in
9661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662  *) ac_try_echo=$ac_try;;
9663esac
9664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665  (eval "$ac_link") 2>conftest.er1
9666  ac_status=$?
9667  grep -v '^ *+' conftest.er1 >conftest.err
9668  rm -f conftest.er1
9669  cat conftest.err >&5
9670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671  (exit $ac_status); } && {
9672	 test -z "$ac_c_werror_flag" ||
9673	 test ! -s conftest.err
9674       } && test -s conftest$ac_exeext &&
9675       $as_test_x conftest$ac_exeext; then
9676  ac_cv_lib_dl_dlopen=yes
9677else
9678  echo "$as_me: failed program was:" >&5
9679sed 's/^/| /' conftest.$ac_ext >&5
9680
9681	ac_cv_lib_dl_dlopen=no
9682fi
9683
9684rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9685      conftest$ac_exeext conftest.$ac_ext
9686LIBS=$ac_check_lib_save_LIBS
9687fi
9688{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9689echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9690if test $ac_cv_lib_dl_dlopen = yes; then
9691  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9692else
9693  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9694echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9695if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9696  echo $ECHO_N "(cached) $ECHO_C" >&6
9697else
9698  ac_check_lib_save_LIBS=$LIBS
9699LIBS="-lsvld  $LIBS"
9700cat >conftest.$ac_ext <<_ACEOF
9701/* confdefs.h.  */
9702_ACEOF
9703cat confdefs.h >>conftest.$ac_ext
9704cat >>conftest.$ac_ext <<_ACEOF
9705/* end confdefs.h.  */
9706
9707/* Override any GCC internal prototype to avoid an error.
9708   Use char because int might match the return type of a GCC
9709   builtin and then its argument prototype would still apply.  */
9710#ifdef __cplusplus
9711extern "C"
9712#endif
9713char dlopen ();
9714int
9715main ()
9716{
9717return dlopen ();
9718  ;
9719  return 0;
9720}
9721_ACEOF
9722rm -f conftest.$ac_objext conftest$ac_exeext
9723if { (ac_try="$ac_link"
9724case "(($ac_try" in
9725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726  *) ac_try_echo=$ac_try;;
9727esac
9728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729  (eval "$ac_link") 2>conftest.er1
9730  ac_status=$?
9731  grep -v '^ *+' conftest.er1 >conftest.err
9732  rm -f conftest.er1
9733  cat conftest.err >&5
9734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735  (exit $ac_status); } && {
9736	 test -z "$ac_c_werror_flag" ||
9737	 test ! -s conftest.err
9738       } && test -s conftest$ac_exeext &&
9739       $as_test_x conftest$ac_exeext; then
9740  ac_cv_lib_svld_dlopen=yes
9741else
9742  echo "$as_me: failed program was:" >&5
9743sed 's/^/| /' conftest.$ac_ext >&5
9744
9745	ac_cv_lib_svld_dlopen=no
9746fi
9747
9748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9749      conftest$ac_exeext conftest.$ac_ext
9750LIBS=$ac_check_lib_save_LIBS
9751fi
9752{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9753echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9754if test $ac_cv_lib_svld_dlopen = yes; then
9755  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9756else
9757  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9758echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9759if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9760  echo $ECHO_N "(cached) $ECHO_C" >&6
9761else
9762  ac_check_lib_save_LIBS=$LIBS
9763LIBS="-ldld  $LIBS"
9764cat >conftest.$ac_ext <<_ACEOF
9765/* confdefs.h.  */
9766_ACEOF
9767cat confdefs.h >>conftest.$ac_ext
9768cat >>conftest.$ac_ext <<_ACEOF
9769/* end confdefs.h.  */
9770
9771/* Override any GCC internal prototype to avoid an error.
9772   Use char because int might match the return type of a GCC
9773   builtin and then its argument prototype would still apply.  */
9774#ifdef __cplusplus
9775extern "C"
9776#endif
9777char dld_link ();
9778int
9779main ()
9780{
9781return dld_link ();
9782  ;
9783  return 0;
9784}
9785_ACEOF
9786rm -f conftest.$ac_objext conftest$ac_exeext
9787if { (ac_try="$ac_link"
9788case "(($ac_try" in
9789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790  *) ac_try_echo=$ac_try;;
9791esac
9792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793  (eval "$ac_link") 2>conftest.er1
9794  ac_status=$?
9795  grep -v '^ *+' conftest.er1 >conftest.err
9796  rm -f conftest.er1
9797  cat conftest.err >&5
9798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799  (exit $ac_status); } && {
9800	 test -z "$ac_c_werror_flag" ||
9801	 test ! -s conftest.err
9802       } && test -s conftest$ac_exeext &&
9803       $as_test_x conftest$ac_exeext; then
9804  ac_cv_lib_dld_dld_link=yes
9805else
9806  echo "$as_me: failed program was:" >&5
9807sed 's/^/| /' conftest.$ac_ext >&5
9808
9809	ac_cv_lib_dld_dld_link=no
9810fi
9811
9812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9813      conftest$ac_exeext conftest.$ac_ext
9814LIBS=$ac_check_lib_save_LIBS
9815fi
9816{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9817echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9818if test $ac_cv_lib_dld_dld_link = yes; then
9819  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9820fi
9821
9822
9823fi
9824
9825
9826fi
9827
9828
9829fi
9830
9831
9832fi
9833
9834
9835fi
9836
9837    ;;
9838  esac
9839
9840  if test "x$lt_cv_dlopen" != xno; then
9841    enable_dlopen=yes
9842  else
9843    enable_dlopen=no
9844  fi
9845
9846  case $lt_cv_dlopen in
9847  dlopen)
9848    save_CPPFLAGS="$CPPFLAGS"
9849    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9850
9851    save_LDFLAGS="$LDFLAGS"
9852    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9853
9854    save_LIBS="$LIBS"
9855    LIBS="$lt_cv_dlopen_libs $LIBS"
9856
9857    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9858echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9859if test "${lt_cv_dlopen_self+set}" = set; then
9860  echo $ECHO_N "(cached) $ECHO_C" >&6
9861else
9862  	  if test "$cross_compiling" = yes; then :
9863  lt_cv_dlopen_self=cross
9864else
9865  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9866  lt_status=$lt_dlunknown
9867  cat > conftest.$ac_ext <<EOF
9868#line 9868 "configure"
9869#include "confdefs.h"
9870
9871#if HAVE_DLFCN_H
9872#include <dlfcn.h>
9873#endif
9874
9875#include <stdio.h>
9876
9877#ifdef RTLD_GLOBAL
9878#  define LT_DLGLOBAL		RTLD_GLOBAL
9879#else
9880#  ifdef DL_GLOBAL
9881#    define LT_DLGLOBAL		DL_GLOBAL
9882#  else
9883#    define LT_DLGLOBAL		0
9884#  endif
9885#endif
9886
9887/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9888   find out it does not work in some platform. */
9889#ifndef LT_DLLAZY_OR_NOW
9890#  ifdef RTLD_LAZY
9891#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9892#  else
9893#    ifdef DL_LAZY
9894#      define LT_DLLAZY_OR_NOW		DL_LAZY
9895#    else
9896#      ifdef RTLD_NOW
9897#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9898#      else
9899#        ifdef DL_NOW
9900#          define LT_DLLAZY_OR_NOW	DL_NOW
9901#        else
9902#          define LT_DLLAZY_OR_NOW	0
9903#        endif
9904#      endif
9905#    endif
9906#  endif
9907#endif
9908
9909#ifdef __cplusplus
9910extern "C" void exit (int);
9911#endif
9912
9913void fnord() { int i=42;}
9914int main ()
9915{
9916  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9917  int status = $lt_dlunknown;
9918
9919  if (self)
9920    {
9921      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9922      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9923      /* dlclose (self); */
9924    }
9925  else
9926    puts (dlerror ());
9927
9928    exit (status);
9929}
9930EOF
9931  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9932  (eval $ac_link) 2>&5
9933  ac_status=$?
9934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9936    (./conftest; exit; ) >&5 2>/dev/null
9937    lt_status=$?
9938    case x$lt_status in
9939      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9940      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9941      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9942    esac
9943  else :
9944    # compilation failed
9945    lt_cv_dlopen_self=no
9946  fi
9947fi
9948rm -fr conftest*
9949
9950
9951fi
9952{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9953echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9954
9955    if test "x$lt_cv_dlopen_self" = xyes; then
9956      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9957      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9958echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9959if test "${lt_cv_dlopen_self_static+set}" = set; then
9960  echo $ECHO_N "(cached) $ECHO_C" >&6
9961else
9962  	  if test "$cross_compiling" = yes; then :
9963  lt_cv_dlopen_self_static=cross
9964else
9965  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9966  lt_status=$lt_dlunknown
9967  cat > conftest.$ac_ext <<EOF
9968#line 9968 "configure"
9969#include "confdefs.h"
9970
9971#if HAVE_DLFCN_H
9972#include <dlfcn.h>
9973#endif
9974
9975#include <stdio.h>
9976
9977#ifdef RTLD_GLOBAL
9978#  define LT_DLGLOBAL		RTLD_GLOBAL
9979#else
9980#  ifdef DL_GLOBAL
9981#    define LT_DLGLOBAL		DL_GLOBAL
9982#  else
9983#    define LT_DLGLOBAL		0
9984#  endif
9985#endif
9986
9987/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9988   find out it does not work in some platform. */
9989#ifndef LT_DLLAZY_OR_NOW
9990#  ifdef RTLD_LAZY
9991#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9992#  else
9993#    ifdef DL_LAZY
9994#      define LT_DLLAZY_OR_NOW		DL_LAZY
9995#    else
9996#      ifdef RTLD_NOW
9997#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9998#      else
9999#        ifdef DL_NOW
10000#          define LT_DLLAZY_OR_NOW	DL_NOW
10001#        else
10002#          define LT_DLLAZY_OR_NOW	0
10003#        endif
10004#      endif
10005#    endif
10006#  endif
10007#endif
10008
10009#ifdef __cplusplus
10010extern "C" void exit (int);
10011#endif
10012
10013void fnord() { int i=42;}
10014int main ()
10015{
10016  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10017  int status = $lt_dlunknown;
10018
10019  if (self)
10020    {
10021      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10022      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10023      /* dlclose (self); */
10024    }
10025  else
10026    puts (dlerror ());
10027
10028    exit (status);
10029}
10030EOF
10031  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10032  (eval $ac_link) 2>&5
10033  ac_status=$?
10034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10036    (./conftest; exit; ) >&5 2>/dev/null
10037    lt_status=$?
10038    case x$lt_status in
10039      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10040      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10041      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10042    esac
10043  else :
10044    # compilation failed
10045    lt_cv_dlopen_self_static=no
10046  fi
10047fi
10048rm -fr conftest*
10049
10050
10051fi
10052{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10053echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10054    fi
10055
10056    CPPFLAGS="$save_CPPFLAGS"
10057    LDFLAGS="$save_LDFLAGS"
10058    LIBS="$save_LIBS"
10059    ;;
10060  esac
10061
10062  case $lt_cv_dlopen_self in
10063  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10064  *) enable_dlopen_self=unknown ;;
10065  esac
10066
10067  case $lt_cv_dlopen_self_static in
10068  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10069  *) enable_dlopen_self_static=unknown ;;
10070  esac
10071fi
10072
10073
10074# Report which library types will actually be built
10075{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10076echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10077{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10078echo "${ECHO_T}$can_build_shared" >&6; }
10079
10080{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10081echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10082test "$can_build_shared" = "no" && enable_shared=no
10083
10084# On AIX, shared libraries and static libraries use the same namespace, and
10085# are all built from PIC.
10086case $host_os in
10087aix3*)
10088  test "$enable_shared" = yes && enable_static=no
10089  if test -n "$RANLIB"; then
10090    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10091    postinstall_cmds='$RANLIB $lib'
10092  fi
10093  ;;
10094
10095aix4* | aix5*)
10096  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10097    test "$enable_shared" = yes && enable_static=no
10098  fi
10099    ;;
10100esac
10101{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10102echo "${ECHO_T}$enable_shared" >&6; }
10103
10104{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10105echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10106# Make sure either enable_shared or enable_static is yes.
10107test "$enable_shared" = yes || enable_static=yes
10108{ echo "$as_me:$LINENO: result: $enable_static" >&5
10109echo "${ECHO_T}$enable_static" >&6; }
10110
10111# The else clause should only fire when bootstrapping the
10112# libtool distribution, otherwise you forgot to ship ltmain.sh
10113# with your package, and you will get complaints that there are
10114# no rules to generate ltmain.sh.
10115if test -f "$ltmain"; then
10116  # See if we are running on zsh, and set the options which allow our commands through
10117  # without removal of \ escapes.
10118  if test -n "${ZSH_VERSION+set}" ; then
10119    setopt NO_GLOB_SUBST
10120  fi
10121  # Now quote all the things that may contain metacharacters while being
10122  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10123  # variables and quote the copies for generation of the libtool script.
10124  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10125    SED SHELL STRIP \
10126    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10127    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10128    deplibs_check_method reload_flag reload_cmds need_locks \
10129    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10130    lt_cv_sys_global_symbol_to_c_name_address \
10131    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10132    old_postinstall_cmds old_postuninstall_cmds \
10133    compiler \
10134    CC \
10135    LD \
10136    lt_prog_compiler_wl \
10137    lt_prog_compiler_pic \
10138    lt_prog_compiler_static \
10139    lt_prog_compiler_no_builtin_flag \
10140    export_dynamic_flag_spec \
10141    thread_safe_flag_spec \
10142    whole_archive_flag_spec \
10143    enable_shared_with_static_runtimes \
10144    old_archive_cmds \
10145    old_archive_from_new_cmds \
10146    predep_objects \
10147    postdep_objects \
10148    predeps \
10149    postdeps \
10150    compiler_lib_search_path \
10151    archive_cmds \
10152    archive_expsym_cmds \
10153    postinstall_cmds \
10154    postuninstall_cmds \
10155    old_archive_from_expsyms_cmds \
10156    allow_undefined_flag \
10157    no_undefined_flag \
10158    export_symbols_cmds \
10159    hardcode_libdir_flag_spec \
10160    hardcode_libdir_flag_spec_ld \
10161    hardcode_libdir_separator \
10162    hardcode_automatic \
10163    module_cmds \
10164    module_expsym_cmds \
10165    lt_cv_prog_compiler_c_o \
10166    fix_srcfile_path \
10167    exclude_expsyms \
10168    include_expsyms; do
10169
10170    case $var in
10171    old_archive_cmds | \
10172    old_archive_from_new_cmds | \
10173    archive_cmds | \
10174    archive_expsym_cmds | \
10175    module_cmds | \
10176    module_expsym_cmds | \
10177    old_archive_from_expsyms_cmds | \
10178    export_symbols_cmds | \
10179    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10180    postinstall_cmds | postuninstall_cmds | \
10181    old_postinstall_cmds | old_postuninstall_cmds | \
10182    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10183      # Double-quote double-evaled strings.
10184      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10185      ;;
10186    *)
10187      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10188      ;;
10189    esac
10190  done
10191
10192  case $lt_echo in
10193  *'\$0 --fallback-echo"')
10194    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10195    ;;
10196  esac
10197
10198cfgfile="${ofile}T"
10199  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10200  $rm -f "$cfgfile"
10201  { echo "$as_me:$LINENO: creating $ofile" >&5
10202echo "$as_me: creating $ofile" >&6;}
10203
10204  cat <<__EOF__ >> "$cfgfile"
10205#! $SHELL
10206
10207# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10208# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10209# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10210#
10211# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10212# Free Software Foundation, Inc.
10213#
10214# This file is part of GNU Libtool:
10215# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10216#
10217# This program is free software; you can redistribute it and/or modify
10218# it under the terms of the GNU General Public License as published by
10219# the Free Software Foundation; either version 2 of the License, or
10220# (at your option) any later version.
10221#
10222# This program is distributed in the hope that it will be useful, but
10223# WITHOUT ANY WARRANTY; without even the implied warranty of
10224# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10225# General Public License for more details.
10226#
10227# You should have received a copy of the GNU General Public License
10228# along with this program; if not, write to the Free Software
10229# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10230#
10231# As a special exception to the GNU General Public License, if you
10232# distribute this file as part of a program that contains a
10233# configuration script generated by Autoconf, you may include it under
10234# the same distribution terms that you use for the rest of that program.
10235
10236# A sed program that does not truncate output.
10237SED=$lt_SED
10238
10239# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10240Xsed="$SED -e 1s/^X//"
10241
10242# The HP-UX ksh and POSIX shell print the target directory to stdout
10243# if CDPATH is set.
10244(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10245
10246# The names of the tagged configurations supported by this script.
10247available_tags=
10248
10249# ### BEGIN LIBTOOL CONFIG
10250
10251# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10252
10253# Shell to use when invoking shell scripts.
10254SHELL=$lt_SHELL
10255
10256# Whether or not to build shared libraries.
10257build_libtool_libs=$enable_shared
10258
10259# Whether or not to build static libraries.
10260build_old_libs=$enable_static
10261
10262# Whether or not to add -lc for building shared libraries.
10263build_libtool_need_lc=$archive_cmds_need_lc
10264
10265# Whether or not to disallow shared libs when runtime libs are static
10266allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10267
10268# Whether or not to optimize for fast installation.
10269fast_install=$enable_fast_install
10270
10271# The host system.
10272host_alias=$host_alias
10273host=$host
10274host_os=$host_os
10275
10276# The build system.
10277build_alias=$build_alias
10278build=$build
10279build_os=$build_os
10280
10281# An echo program that does not interpret backslashes.
10282echo=$lt_echo
10283
10284# The archiver.
10285AR=$lt_AR
10286AR_FLAGS=$lt_AR_FLAGS
10287
10288# A C compiler.
10289LTCC=$lt_LTCC
10290
10291# LTCC compiler flags.
10292LTCFLAGS=$lt_LTCFLAGS
10293
10294# A language-specific compiler.
10295CC=$lt_compiler
10296
10297# Is the compiler the GNU C compiler?
10298with_gcc=$GCC
10299
10300# An ERE matcher.
10301EGREP=$lt_EGREP
10302
10303# The linker used to build libraries.
10304LD=$lt_LD
10305
10306# Whether we need hard or soft links.
10307LN_S=$lt_LN_S
10308
10309# A BSD-compatible nm program.
10310NM=$lt_NM
10311
10312# A symbol stripping program
10313STRIP=$lt_STRIP
10314
10315# Used to examine libraries when file_magic_cmd begins "file"
10316MAGIC_CMD=$MAGIC_CMD
10317
10318# Used on cygwin: DLL creation program.
10319DLLTOOL="$DLLTOOL"
10320
10321# Used on cygwin: object dumper.
10322OBJDUMP="$OBJDUMP"
10323
10324# Used on cygwin: assembler.
10325AS="$AS"
10326
10327# The name of the directory that contains temporary libtool files.
10328objdir=$objdir
10329
10330# How to create reloadable object files.
10331reload_flag=$lt_reload_flag
10332reload_cmds=$lt_reload_cmds
10333
10334# How to pass a linker flag through the compiler.
10335wl=$lt_lt_prog_compiler_wl
10336
10337# Object file suffix (normally "o").
10338objext="$ac_objext"
10339
10340# Old archive suffix (normally "a").
10341libext="$libext"
10342
10343# Shared library suffix (normally ".so").
10344shrext_cmds='$shrext_cmds'
10345
10346# Executable file suffix (normally "").
10347exeext="$exeext"
10348
10349# Additional compiler flags for building library objects.
10350pic_flag=$lt_lt_prog_compiler_pic
10351pic_mode=$pic_mode
10352
10353# What is the maximum length of a command?
10354max_cmd_len=$lt_cv_sys_max_cmd_len
10355
10356# Does compiler simultaneously support -c and -o options?
10357compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10358
10359# Must we lock files when doing compilation?
10360need_locks=$lt_need_locks
10361
10362# Do we need the lib prefix for modules?
10363need_lib_prefix=$need_lib_prefix
10364
10365# Do we need a version for libraries?
10366need_version=$need_version
10367
10368# Whether dlopen is supported.
10369dlopen_support=$enable_dlopen
10370
10371# Whether dlopen of programs is supported.
10372dlopen_self=$enable_dlopen_self
10373
10374# Whether dlopen of statically linked programs is supported.
10375dlopen_self_static=$enable_dlopen_self_static
10376
10377# Compiler flag to prevent dynamic linking.
10378link_static_flag=$lt_lt_prog_compiler_static
10379
10380# Compiler flag to turn off builtin functions.
10381no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10382
10383# Compiler flag to allow reflexive dlopens.
10384export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10385
10386# Compiler flag to generate shared objects directly from archives.
10387whole_archive_flag_spec=$lt_whole_archive_flag_spec
10388
10389# Compiler flag to generate thread-safe objects.
10390thread_safe_flag_spec=$lt_thread_safe_flag_spec
10391
10392# Library versioning type.
10393version_type=$version_type
10394
10395# Format of library name prefix.
10396libname_spec=$lt_libname_spec
10397
10398# List of archive names.  First name is the real one, the rest are links.
10399# The last name is the one that the linker finds with -lNAME.
10400library_names_spec=$lt_library_names_spec
10401
10402# The coded name of the library, if different from the real name.
10403soname_spec=$lt_soname_spec
10404
10405# Commands used to build and install an old-style archive.
10406RANLIB=$lt_RANLIB
10407old_archive_cmds=$lt_old_archive_cmds
10408old_postinstall_cmds=$lt_old_postinstall_cmds
10409old_postuninstall_cmds=$lt_old_postuninstall_cmds
10410
10411# Create an old-style archive from a shared archive.
10412old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10413
10414# Create a temporary old-style archive to link instead of a shared archive.
10415old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10416
10417# Commands used to build and install a shared archive.
10418archive_cmds=$lt_archive_cmds
10419archive_expsym_cmds=$lt_archive_expsym_cmds
10420postinstall_cmds=$lt_postinstall_cmds
10421postuninstall_cmds=$lt_postuninstall_cmds
10422
10423# Commands used to build a loadable module (assumed same as above if empty)
10424module_cmds=$lt_module_cmds
10425module_expsym_cmds=$lt_module_expsym_cmds
10426
10427# Commands to strip libraries.
10428old_striplib=$lt_old_striplib
10429striplib=$lt_striplib
10430
10431# Dependencies to place before the objects being linked to create a
10432# shared library.
10433predep_objects=$lt_predep_objects
10434
10435# Dependencies to place after the objects being linked to create a
10436# shared library.
10437postdep_objects=$lt_postdep_objects
10438
10439# Dependencies to place before the objects being linked to create a
10440# shared library.
10441predeps=$lt_predeps
10442
10443# Dependencies to place after the objects being linked to create a
10444# shared library.
10445postdeps=$lt_postdeps
10446
10447# The library search path used internally by the compiler when linking
10448# a shared library.
10449compiler_lib_search_path=$lt_compiler_lib_search_path
10450
10451# Method to check whether dependent libraries are shared objects.
10452deplibs_check_method=$lt_deplibs_check_method
10453
10454# Command to use when deplibs_check_method == file_magic.
10455file_magic_cmd=$lt_file_magic_cmd
10456
10457# Flag that allows shared libraries with undefined symbols to be built.
10458allow_undefined_flag=$lt_allow_undefined_flag
10459
10460# Flag that forces no undefined symbols.
10461no_undefined_flag=$lt_no_undefined_flag
10462
10463# Commands used to finish a libtool library installation in a directory.
10464finish_cmds=$lt_finish_cmds
10465
10466# Same as above, but a single script fragment to be evaled but not shown.
10467finish_eval=$lt_finish_eval
10468
10469# Take the output of nm and produce a listing of raw symbols and C names.
10470global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10471
10472# Transform the output of nm in a proper C declaration
10473global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10474
10475# Transform the output of nm in a C name address pair
10476global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10477
10478# This is the shared library runtime path variable.
10479runpath_var=$runpath_var
10480
10481# This is the shared library path variable.
10482shlibpath_var=$shlibpath_var
10483
10484# Is shlibpath searched before the hard-coded library search path?
10485shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10486
10487# How to hardcode a shared library path into an executable.
10488hardcode_action=$hardcode_action
10489
10490# Whether we should hardcode library paths into libraries.
10491hardcode_into_libs=$hardcode_into_libs
10492
10493# Flag to hardcode \$libdir into a binary during linking.
10494# This must work even if \$libdir does not exist.
10495hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10496
10497# If ld is used when linking, flag to hardcode \$libdir into
10498# a binary during linking. This must work even if \$libdir does
10499# not exist.
10500hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10501
10502# Whether we need a single -rpath flag with a separated argument.
10503hardcode_libdir_separator=$lt_hardcode_libdir_separator
10504
10505# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10506# resulting binary.
10507hardcode_direct=$hardcode_direct
10508
10509# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10510# resulting binary.
10511hardcode_minus_L=$hardcode_minus_L
10512
10513# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10514# the resulting binary.
10515hardcode_shlibpath_var=$hardcode_shlibpath_var
10516
10517# Set to yes if building a shared library automatically hardcodes DIR into the library
10518# and all subsequent libraries and executables linked against it.
10519hardcode_automatic=$hardcode_automatic
10520
10521# Variables whose values should be saved in libtool wrapper scripts and
10522# restored at relink time.
10523variables_saved_for_relink="$variables_saved_for_relink"
10524
10525# Whether libtool must link a program against all its dependency libraries.
10526link_all_deplibs=$link_all_deplibs
10527
10528# Compile-time system search path for libraries
10529sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10530
10531# Run-time system search path for libraries
10532sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10533
10534# Fix the shell variable \$srcfile for the compiler.
10535fix_srcfile_path=$lt_fix_srcfile_path
10536
10537# Set to yes if exported symbols are required.
10538always_export_symbols=$always_export_symbols
10539
10540# The commands to list exported symbols.
10541export_symbols_cmds=$lt_export_symbols_cmds
10542
10543# The commands to extract the exported symbol list from a shared archive.
10544extract_expsyms_cmds=$lt_extract_expsyms_cmds
10545
10546# Symbols that should not be listed in the preloaded symbols.
10547exclude_expsyms=$lt_exclude_expsyms
10548
10549# Symbols that must always be exported.
10550include_expsyms=$lt_include_expsyms
10551
10552# ### END LIBTOOL CONFIG
10553
10554__EOF__
10555
10556
10557  case $host_os in
10558  aix3*)
10559    cat <<\EOF >> "$cfgfile"
10560
10561# AIX sometimes has problems with the GCC collect2 program.  For some
10562# reason, if we set the COLLECT_NAMES environment variable, the problems
10563# vanish in a puff of smoke.
10564if test "X${COLLECT_NAMES+set}" != Xset; then
10565  COLLECT_NAMES=
10566  export COLLECT_NAMES
10567fi
10568EOF
10569    ;;
10570  esac
10571
10572  # We use sed instead of cat because bash on DJGPP gets confused if
10573  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10574  # text mode, it properly converts lines to CR/LF.  This bash problem
10575  # is reportedly fixed, but why not run on old versions too?
10576  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10577
10578  mv -f "$cfgfile" "$ofile" || \
10579    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10580  chmod +x "$ofile"
10581
10582else
10583  # If there is no Makefile yet, we rely on a make rule to execute
10584  # `config.status --recheck' to rerun these tests and create the
10585  # libtool script then.
10586  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10587  if test -f "$ltmain_in"; then
10588    test -f Makefile && make "$ltmain"
10589  fi
10590fi
10591
10592
10593ac_ext=c
10594ac_cpp='$CPP $CPPFLAGS'
10595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10597ac_compiler_gnu=$ac_cv_c_compiler_gnu
10598
10599CC="$lt_save_CC"
10600
10601
10602# Check whether --with-tags was given.
10603if test "${with_tags+set}" = set; then
10604  withval=$with_tags; tagnames="$withval"
10605fi
10606
10607
10608if test -f "$ltmain" && test -n "$tagnames"; then
10609  if test ! -f "${ofile}"; then
10610    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10611echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10612  fi
10613
10614  if test -z "$LTCC"; then
10615    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10616    if test -z "$LTCC"; then
10617      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10618echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10619    else
10620      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10621echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10622    fi
10623  fi
10624  if test -z "$LTCFLAGS"; then
10625    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10626  fi
10627
10628  # Extract list of available tagged configurations in $ofile.
10629  # Note that this assumes the entire list is on one line.
10630  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10631
10632  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10633  for tagname in $tagnames; do
10634    IFS="$lt_save_ifs"
10635    # Check whether tagname contains only valid characters
10636    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10637    "") ;;
10638    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10639echo "$as_me: error: invalid tag name: $tagname" >&2;}
10640   { (exit 1); exit 1; }; }
10641	;;
10642    esac
10643
10644    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10645    then
10646      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10647echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10648   { (exit 1); exit 1; }; }
10649    fi
10650
10651    # Update the list of available tags.
10652    if test -n "$tagname"; then
10653      echo appending configuration tag \"$tagname\" to $ofile
10654
10655      case $tagname in
10656      CXX)
10657	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10658	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10659	    (test "X$CXX" != "Xg++"))) ; then
10660	  ac_ext=cpp
10661ac_cpp='$CXXCPP $CPPFLAGS'
10662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10665
10666
10667
10668
10669archive_cmds_need_lc_CXX=no
10670allow_undefined_flag_CXX=
10671always_export_symbols_CXX=no
10672archive_expsym_cmds_CXX=
10673export_dynamic_flag_spec_CXX=
10674hardcode_direct_CXX=no
10675hardcode_libdir_flag_spec_CXX=
10676hardcode_libdir_flag_spec_ld_CXX=
10677hardcode_libdir_separator_CXX=
10678hardcode_minus_L_CXX=no
10679hardcode_shlibpath_var_CXX=unsupported
10680hardcode_automatic_CXX=no
10681module_cmds_CXX=
10682module_expsym_cmds_CXX=
10683link_all_deplibs_CXX=unknown
10684old_archive_cmds_CXX=$old_archive_cmds
10685no_undefined_flag_CXX=
10686whole_archive_flag_spec_CXX=
10687enable_shared_with_static_runtimes_CXX=no
10688
10689# Dependencies to place before and after the object being linked:
10690predep_objects_CXX=
10691postdep_objects_CXX=
10692predeps_CXX=
10693postdeps_CXX=
10694compiler_lib_search_path_CXX=
10695
10696# Source file extension for C++ test sources.
10697ac_ext=cpp
10698
10699# Object file extension for compiled C++ test sources.
10700objext=o
10701objext_CXX=$objext
10702
10703# Code to be used in simple compile tests
10704lt_simple_compile_test_code="int some_variable = 0;"
10705
10706# Code to be used in simple link tests
10707lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10708
10709# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10710
10711# If no C compiler was specified, use CC.
10712LTCC=${LTCC-"$CC"}
10713
10714# If no C compiler flags were specified, use CFLAGS.
10715LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10716
10717# Allow CC to be a program name with arguments.
10718compiler=$CC
10719
10720
10721# save warnings/boilerplate of simple test code
10722ac_outfile=conftest.$ac_objext
10723echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10724eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10725_lt_compiler_boilerplate=`cat conftest.err`
10726$rm conftest*
10727
10728ac_outfile=conftest.$ac_objext
10729echo "$lt_simple_link_test_code" >conftest.$ac_ext
10730eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10731_lt_linker_boilerplate=`cat conftest.err`
10732$rm conftest*
10733
10734
10735# Allow CC to be a program name with arguments.
10736lt_save_CC=$CC
10737lt_save_LD=$LD
10738lt_save_GCC=$GCC
10739GCC=$GXX
10740lt_save_with_gnu_ld=$with_gnu_ld
10741lt_save_path_LD=$lt_cv_path_LD
10742if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10743  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10744else
10745  $as_unset lt_cv_prog_gnu_ld
10746fi
10747if test -n "${lt_cv_path_LDCXX+set}"; then
10748  lt_cv_path_LD=$lt_cv_path_LDCXX
10749else
10750  $as_unset lt_cv_path_LD
10751fi
10752test -z "${LDCXX+set}" || LD=$LDCXX
10753CC=${CXX-"c++"}
10754compiler=$CC
10755compiler_CXX=$CC
10756for cc_temp in $compiler""; do
10757  case $cc_temp in
10758    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10759    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10760    \-*) ;;
10761    *) break;;
10762  esac
10763done
10764cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10765
10766
10767# We don't want -fno-exception wen compiling C++ code, so set the
10768# no_builtin_flag separately
10769if test "$GXX" = yes; then
10770  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10771else
10772  lt_prog_compiler_no_builtin_flag_CXX=
10773fi
10774
10775if test "$GXX" = yes; then
10776  # Set up default GNU C++ configuration
10777
10778
10779# Check whether --with-gnu-ld was given.
10780if test "${with_gnu_ld+set}" = set; then
10781  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10782else
10783  with_gnu_ld=no
10784fi
10785
10786ac_prog=ld
10787if test "$GCC" = yes; then
10788  # Check if gcc -print-prog-name=ld gives a path.
10789  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10790echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10791  case $host in
10792  *-*-mingw*)
10793    # gcc leaves a trailing carriage return which upsets mingw
10794    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10795  *)
10796    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10797  esac
10798  case $ac_prog in
10799    # Accept absolute paths.
10800    [\\/]* | ?:[\\/]*)
10801      re_direlt='/[^/][^/]*/\.\./'
10802      # Canonicalize the pathname of ld
10803      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10804      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10805	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10806      done
10807      test -z "$LD" && LD="$ac_prog"
10808      ;;
10809  "")
10810    # If it fails, then pretend we aren't using GCC.
10811    ac_prog=ld
10812    ;;
10813  *)
10814    # If it is relative, then search for the first ld in PATH.
10815    with_gnu_ld=unknown
10816    ;;
10817  esac
10818elif test "$with_gnu_ld" = yes; then
10819  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10820echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10821else
10822  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10823echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10824fi
10825if test "${lt_cv_path_LD+set}" = set; then
10826  echo $ECHO_N "(cached) $ECHO_C" >&6
10827else
10828  if test -z "$LD"; then
10829  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10830  for ac_dir in $PATH; do
10831    IFS="$lt_save_ifs"
10832    test -z "$ac_dir" && ac_dir=.
10833    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10834      lt_cv_path_LD="$ac_dir/$ac_prog"
10835      # Check to see if the program is GNU ld.  I'd rather use --version,
10836      # but apparently some variants of GNU ld only accept -v.
10837      # Break only if it was the GNU/non-GNU ld that we prefer.
10838      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10839      *GNU* | *'with BFD'*)
10840	test "$with_gnu_ld" != no && break
10841	;;
10842      *)
10843	test "$with_gnu_ld" != yes && break
10844	;;
10845      esac
10846    fi
10847  done
10848  IFS="$lt_save_ifs"
10849else
10850  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10851fi
10852fi
10853
10854LD="$lt_cv_path_LD"
10855if test -n "$LD"; then
10856  { echo "$as_me:$LINENO: result: $LD" >&5
10857echo "${ECHO_T}$LD" >&6; }
10858else
10859  { echo "$as_me:$LINENO: result: no" >&5
10860echo "${ECHO_T}no" >&6; }
10861fi
10862test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10863echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10864   { (exit 1); exit 1; }; }
10865{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10866echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10867if test "${lt_cv_prog_gnu_ld+set}" = set; then
10868  echo $ECHO_N "(cached) $ECHO_C" >&6
10869else
10870  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10871case `$LD -v 2>&1 </dev/null` in
10872*GNU* | *'with BFD'*)
10873  lt_cv_prog_gnu_ld=yes
10874  ;;
10875*)
10876  lt_cv_prog_gnu_ld=no
10877  ;;
10878esac
10879fi
10880{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10881echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10882with_gnu_ld=$lt_cv_prog_gnu_ld
10883
10884
10885
10886  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10887  # archiving commands below assume that GNU ld is being used.
10888  if test "$with_gnu_ld" = yes; then
10889    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10890    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10891
10892    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10893    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10894
10895    # If archive_cmds runs LD, not CC, wlarc should be empty
10896    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10897    #     investigate it a little bit more. (MM)
10898    wlarc='${wl}'
10899
10900    # ancient GNU ld didn't support --whole-archive et. al.
10901    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10902	grep 'no-whole-archive' > /dev/null; then
10903      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10904    else
10905      whole_archive_flag_spec_CXX=
10906    fi
10907  else
10908    with_gnu_ld=no
10909    wlarc=
10910
10911    # A generic and very simple default shared library creation
10912    # command for GNU C++ for the case where it uses the native
10913    # linker, instead of GNU ld.  If possible, this setting should
10914    # overridden to take advantage of the native linker features on
10915    # the platform it is being used on.
10916    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10917  fi
10918
10919  # Commands to make compiler produce verbose output that lists
10920  # what "hidden" libraries, object files and flags are used when
10921  # linking a shared library.
10922  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10923
10924else
10925  GXX=no
10926  with_gnu_ld=no
10927  wlarc=
10928fi
10929
10930# PORTME: fill in a description of your system's C++ link characteristics
10931{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10932echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10933ld_shlibs_CXX=yes
10934case $host_os in
10935  aix3*)
10936    # FIXME: insert proper C++ library support
10937    ld_shlibs_CXX=no
10938    ;;
10939  aix4* | aix5*)
10940    if test "$host_cpu" = ia64; then
10941      # On IA64, the linker does run time linking by default, so we don't
10942      # have to do anything special.
10943      aix_use_runtimelinking=no
10944      exp_sym_flag='-Bexport'
10945      no_entry_flag=""
10946    else
10947      aix_use_runtimelinking=no
10948
10949      # Test if we are trying to use run time linking or normal
10950      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10951      # need to do runtime linking.
10952      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10953	for ld_flag in $LDFLAGS; do
10954	  case $ld_flag in
10955	  *-brtl*)
10956	    aix_use_runtimelinking=yes
10957	    break
10958	    ;;
10959	  esac
10960	done
10961	;;
10962      esac
10963
10964      exp_sym_flag='-bexport'
10965      no_entry_flag='-bnoentry'
10966    fi
10967
10968    # When large executables or shared objects are built, AIX ld can
10969    # have problems creating the table of contents.  If linking a library
10970    # or program results in "error TOC overflow" add -mminimal-toc to
10971    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10972    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10973
10974    archive_cmds_CXX=''
10975    hardcode_direct_CXX=yes
10976    hardcode_libdir_separator_CXX=':'
10977    link_all_deplibs_CXX=yes
10978
10979    if test "$GXX" = yes; then
10980      case $host_os in aix4.[012]|aix4.[012].*)
10981      # We only want to do this on AIX 4.2 and lower, the check
10982      # below for broken collect2 doesn't work under 4.3+
10983	collect2name=`${CC} -print-prog-name=collect2`
10984	if test -f "$collect2name" && \
10985	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10986	then
10987	  # We have reworked collect2
10988	  :
10989	else
10990	  # We have old collect2
10991	  hardcode_direct_CXX=unsupported
10992	  # It fails to find uninstalled libraries when the uninstalled
10993	  # path is not listed in the libpath.  Setting hardcode_minus_L
10994	  # to unsupported forces relinking
10995	  hardcode_minus_L_CXX=yes
10996	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10997	  hardcode_libdir_separator_CXX=
10998	fi
10999	;;
11000      esac
11001      shared_flag='-shared'
11002      if test "$aix_use_runtimelinking" = yes; then
11003	shared_flag="$shared_flag "'${wl}-G'
11004      fi
11005    else
11006      # not using gcc
11007      if test "$host_cpu" = ia64; then
11008	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11009	# chokes on -Wl,-G. The following line is correct:
11010	shared_flag='-G'
11011      else
11012	if test "$aix_use_runtimelinking" = yes; then
11013	  shared_flag='${wl}-G'
11014	else
11015	  shared_flag='${wl}-bM:SRE'
11016	fi
11017      fi
11018    fi
11019
11020    # It seems that -bexpall does not export symbols beginning with
11021    # underscore (_), so it is better to generate a list of symbols to export.
11022    always_export_symbols_CXX=yes
11023    if test "$aix_use_runtimelinking" = yes; then
11024      # Warning - without using the other runtime loading flags (-brtl),
11025      # -berok will link without error, but may produce a broken library.
11026      allow_undefined_flag_CXX='-berok'
11027      # Determine the default libpath from the value encoded in an empty executable.
11028      cat >conftest.$ac_ext <<_ACEOF
11029/* confdefs.h.  */
11030_ACEOF
11031cat confdefs.h >>conftest.$ac_ext
11032cat >>conftest.$ac_ext <<_ACEOF
11033/* end confdefs.h.  */
11034
11035int
11036main ()
11037{
11038
11039  ;
11040  return 0;
11041}
11042_ACEOF
11043rm -f conftest.$ac_objext conftest$ac_exeext
11044if { (ac_try="$ac_link"
11045case "(($ac_try" in
11046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047  *) ac_try_echo=$ac_try;;
11048esac
11049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11050  (eval "$ac_link") 2>conftest.er1
11051  ac_status=$?
11052  grep -v '^ *+' conftest.er1 >conftest.err
11053  rm -f conftest.er1
11054  cat conftest.err >&5
11055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056  (exit $ac_status); } && {
11057	 test -z "$ac_cxx_werror_flag" ||
11058	 test ! -s conftest.err
11059       } && test -s conftest$ac_exeext &&
11060       $as_test_x conftest$ac_exeext; then
11061
11062lt_aix_libpath_sed='
11063    /Import File Strings/,/^$/ {
11064	/^0/ {
11065	    s/^0  *\(.*\)$/\1/
11066	    p
11067	}
11068    }'
11069aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11070# Check for a 64-bit object if we didn't find anything.
11071if test -z "$aix_libpath"; then
11072  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11073fi
11074else
11075  echo "$as_me: failed program was:" >&5
11076sed 's/^/| /' conftest.$ac_ext >&5
11077
11078
11079fi
11080
11081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11082      conftest$ac_exeext conftest.$ac_ext
11083if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11084
11085      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11086
11087      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11088     else
11089      if test "$host_cpu" = ia64; then
11090	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11091	allow_undefined_flag_CXX="-z nodefs"
11092	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11093      else
11094	# Determine the default libpath from the value encoded in an empty executable.
11095	cat >conftest.$ac_ext <<_ACEOF
11096/* confdefs.h.  */
11097_ACEOF
11098cat confdefs.h >>conftest.$ac_ext
11099cat >>conftest.$ac_ext <<_ACEOF
11100/* end confdefs.h.  */
11101
11102int
11103main ()
11104{
11105
11106  ;
11107  return 0;
11108}
11109_ACEOF
11110rm -f conftest.$ac_objext conftest$ac_exeext
11111if { (ac_try="$ac_link"
11112case "(($ac_try" in
11113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114  *) ac_try_echo=$ac_try;;
11115esac
11116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117  (eval "$ac_link") 2>conftest.er1
11118  ac_status=$?
11119  grep -v '^ *+' conftest.er1 >conftest.err
11120  rm -f conftest.er1
11121  cat conftest.err >&5
11122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123  (exit $ac_status); } && {
11124	 test -z "$ac_cxx_werror_flag" ||
11125	 test ! -s conftest.err
11126       } && test -s conftest$ac_exeext &&
11127       $as_test_x conftest$ac_exeext; then
11128
11129lt_aix_libpath_sed='
11130    /Import File Strings/,/^$/ {
11131	/^0/ {
11132	    s/^0  *\(.*\)$/\1/
11133	    p
11134	}
11135    }'
11136aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11137# Check for a 64-bit object if we didn't find anything.
11138if test -z "$aix_libpath"; then
11139  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11140fi
11141else
11142  echo "$as_me: failed program was:" >&5
11143sed 's/^/| /' conftest.$ac_ext >&5
11144
11145
11146fi
11147
11148rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11149      conftest$ac_exeext conftest.$ac_ext
11150if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11151
11152	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11153	# Warning - without using the other run time loading flags,
11154	# -berok will link without error, but may produce a broken library.
11155	no_undefined_flag_CXX=' ${wl}-bernotok'
11156	allow_undefined_flag_CXX=' ${wl}-berok'
11157	# Exported symbols can be pulled into shared objects from archives
11158	whole_archive_flag_spec_CXX='$convenience'
11159	archive_cmds_need_lc_CXX=yes
11160	# This is similar to how AIX traditionally builds its shared libraries.
11161	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11162      fi
11163    fi
11164    ;;
11165
11166  beos*)
11167    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11168      allow_undefined_flag_CXX=unsupported
11169      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11170      # support --undefined.  This deserves some investigation.  FIXME
11171      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11172    else
11173      ld_shlibs_CXX=no
11174    fi
11175    ;;
11176
11177  chorus*)
11178    case $cc_basename in
11179      *)
11180	# FIXME: insert proper C++ library support
11181	ld_shlibs_CXX=no
11182	;;
11183    esac
11184    ;;
11185
11186  cygwin* | mingw* | pw32*)
11187    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11188    # as there is no search path for DLLs.
11189    hardcode_libdir_flag_spec_CXX='-L$libdir'
11190    allow_undefined_flag_CXX=unsupported
11191    always_export_symbols_CXX=no
11192    enable_shared_with_static_runtimes_CXX=yes
11193
11194    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11195      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11196      # If the export-symbols file already is a .def file (1st line
11197      # is EXPORTS), use it as is; otherwise, prepend...
11198      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11199	cp $export_symbols $output_objdir/$soname.def;
11200      else
11201	echo EXPORTS > $output_objdir/$soname.def;
11202	cat $export_symbols >> $output_objdir/$soname.def;
11203      fi~
11204      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11205    else
11206      ld_shlibs_CXX=no
11207    fi
11208  ;;
11209      darwin* | rhapsody*)
11210        case $host_os in
11211        rhapsody* | darwin1.[012])
11212         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11213         ;;
11214       *) # Darwin 1.3 on
11215         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11216           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11217         else
11218           case ${MACOSX_DEPLOYMENT_TARGET} in
11219             10.[012])
11220               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11221               ;;
11222             10.*)
11223               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11224               ;;
11225           esac
11226         fi
11227         ;;
11228        esac
11229      archive_cmds_need_lc_CXX=no
11230      hardcode_direct_CXX=no
11231      hardcode_automatic_CXX=yes
11232      hardcode_shlibpath_var_CXX=unsupported
11233      whole_archive_flag_spec_CXX=''
11234      link_all_deplibs_CXX=yes
11235
11236    if test "$GXX" = yes ; then
11237      lt_int_apple_cc_single_mod=no
11238      output_verbose_link_cmd='echo'
11239      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11240       lt_int_apple_cc_single_mod=yes
11241      fi
11242      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11243       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11244      else
11245          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11246        fi
11247        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11248        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11249          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11250            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11251          else
11252            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11253          fi
11254            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11255      else
11256      case $cc_basename in
11257        xlc*)
11258         output_verbose_link_cmd='echo'
11259          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11260          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11261          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11262          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11263          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11264          ;;
11265       *)
11266         ld_shlibs_CXX=no
11267          ;;
11268      esac
11269      fi
11270        ;;
11271
11272  dgux*)
11273    case $cc_basename in
11274      ec++*)
11275	# FIXME: insert proper C++ library support
11276	ld_shlibs_CXX=no
11277	;;
11278      ghcx*)
11279	# Green Hills C++ Compiler
11280	# FIXME: insert proper C++ library support
11281	ld_shlibs_CXX=no
11282	;;
11283      *)
11284	# FIXME: insert proper C++ library support
11285	ld_shlibs_CXX=no
11286	;;
11287    esac
11288    ;;
11289  freebsd[12]*)
11290    # C++ shared libraries reported to be fairly broken before switch to ELF
11291    ld_shlibs_CXX=no
11292    ;;
11293  freebsd-elf*)
11294    archive_cmds_need_lc_CXX=no
11295    ;;
11296  freebsd* | dragonfly*)
11297    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11298    # conventions
11299    ld_shlibs_CXX=yes
11300    ;;
11301  gnu*)
11302    ;;
11303  hpux9*)
11304    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11305    hardcode_libdir_separator_CXX=:
11306    export_dynamic_flag_spec_CXX='${wl}-E'
11307    hardcode_direct_CXX=yes
11308    hardcode_minus_L_CXX=yes # Not in the search PATH,
11309				# but as the default
11310				# location of the library.
11311
11312    case $cc_basename in
11313    CC*)
11314      # FIXME: insert proper C++ library support
11315      ld_shlibs_CXX=no
11316      ;;
11317    aCC*)
11318      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11319      # Commands to make compiler produce verbose output that lists
11320      # what "hidden" libraries, object files and flags are used when
11321      # linking a shared library.
11322      #
11323      # There doesn't appear to be a way to prevent this compiler from
11324      # explicitly linking system object files so we need to strip them
11325      # from the output so that they don't get included in the library
11326      # dependencies.
11327      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'
11328      ;;
11329    *)
11330      if test "$GXX" = yes; then
11331        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11332      else
11333        # FIXME: insert proper C++ library support
11334        ld_shlibs_CXX=no
11335      fi
11336      ;;
11337    esac
11338    ;;
11339  hpux10*|hpux11*)
11340    if test $with_gnu_ld = no; then
11341      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11342      hardcode_libdir_separator_CXX=:
11343
11344      case $host_cpu in
11345      hppa*64*|ia64*) ;;
11346      *)
11347	export_dynamic_flag_spec_CXX='${wl}-E'
11348        ;;
11349      esac
11350    fi
11351    case $host_cpu in
11352    hppa*64*|ia64*)
11353      hardcode_direct_CXX=no
11354      hardcode_shlibpath_var_CXX=no
11355      ;;
11356    *)
11357      hardcode_direct_CXX=yes
11358      hardcode_minus_L_CXX=yes # Not in the search PATH,
11359					      # but as the default
11360					      # location of the library.
11361      ;;
11362    esac
11363
11364    case $cc_basename in
11365      CC*)
11366	# FIXME: insert proper C++ library support
11367	ld_shlibs_CXX=no
11368	;;
11369      aCC*)
11370	case $host_cpu in
11371	hppa*64*)
11372	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11373	  ;;
11374	ia64*)
11375	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11376	  ;;
11377	*)
11378	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11379	  ;;
11380	esac
11381	# Commands to make compiler produce verbose output that lists
11382	# what "hidden" libraries, object files and flags are used when
11383	# linking a shared library.
11384	#
11385	# There doesn't appear to be a way to prevent this compiler from
11386	# explicitly linking system object files so we need to strip them
11387	# from the output so that they don't get included in the library
11388	# dependencies.
11389	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'
11390	;;
11391      *)
11392	if test "$GXX" = yes; then
11393	  if test $with_gnu_ld = no; then
11394	    case $host_cpu in
11395	    hppa*64*)
11396	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11397	      ;;
11398	    ia64*)
11399	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11400	      ;;
11401	    *)
11402	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11403	      ;;
11404	    esac
11405	  fi
11406	else
11407	  # FIXME: insert proper C++ library support
11408	  ld_shlibs_CXX=no
11409	fi
11410	;;
11411    esac
11412    ;;
11413  interix[3-9]*)
11414    hardcode_direct_CXX=no
11415    hardcode_shlibpath_var_CXX=no
11416    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11417    export_dynamic_flag_spec_CXX='${wl}-E'
11418    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11419    # Instead, shared libraries are loaded at an image base (0x10000000 by
11420    # default) and relocated if they conflict, which is a slow very memory
11421    # consuming and fragmenting process.  To avoid this, we pick a random,
11422    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11423    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11424    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11425    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11426    ;;
11427  irix5* | irix6*)
11428    case $cc_basename in
11429      CC*)
11430	# SGI C++
11431	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11432
11433	# Archives containing C++ object files must be created using
11434	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11435	# necessary to make sure instantiated templates are included
11436	# in the archive.
11437	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11438	;;
11439      *)
11440	if test "$GXX" = yes; then
11441	  if test "$with_gnu_ld" = no; then
11442	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11443	  else
11444	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11445	  fi
11446	fi
11447	link_all_deplibs_CXX=yes
11448	;;
11449    esac
11450    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11451    hardcode_libdir_separator_CXX=:
11452    ;;
11453  linux* | k*bsd*-gnu)
11454    case $cc_basename in
11455      KCC*)
11456	# Kuck and Associates, Inc. (KAI) C++ Compiler
11457
11458	# KCC will only create a shared library if the output file
11459	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11460	# to its proper name (with version) after linking.
11461	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11462	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11463	# Commands to make compiler produce verbose output that lists
11464	# what "hidden" libraries, object files and flags are used when
11465	# linking a shared library.
11466	#
11467	# There doesn't appear to be a way to prevent this compiler from
11468	# explicitly linking system object files so we need to strip them
11469	# from the output so that they don't get included in the library
11470	# dependencies.
11471	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'
11472
11473	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11474	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11475
11476	# Archives containing C++ object files must be created using
11477	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11478	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11479	;;
11480      icpc*)
11481	# Intel C++
11482	with_gnu_ld=yes
11483	# version 8.0 and above of icpc choke on multiply defined symbols
11484	# if we add $predep_objects and $postdep_objects, however 7.1 and
11485	# earlier do not add the objects themselves.
11486	case `$CC -V 2>&1` in
11487	*"Version 7."*)
11488  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11489  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11490	  ;;
11491	*)  # Version 8.0 or newer
11492	  tmp_idyn=
11493	  case $host_cpu in
11494	    ia64*) tmp_idyn=' -i_dynamic';;
11495	  esac
11496  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11497	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11498	  ;;
11499	esac
11500	archive_cmds_need_lc_CXX=no
11501	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11502	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11503	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11504	;;
11505      pgCC*)
11506        # Portland Group C++ compiler
11507	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11508  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11509
11510	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11511	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11512	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11513        ;;
11514      cxx*)
11515	# Compaq C++
11516	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11517	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11518
11519	runpath_var=LD_RUN_PATH
11520	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11521	hardcode_libdir_separator_CXX=:
11522
11523	# Commands to make compiler produce verbose output that lists
11524	# what "hidden" libraries, object files and flags are used when
11525	# linking a shared library.
11526	#
11527	# There doesn't appear to be a way to prevent this compiler from
11528	# explicitly linking system object files so we need to strip them
11529	# from the output so that they don't get included in the library
11530	# dependencies.
11531	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'
11532	;;
11533      *)
11534	case `$CC -V 2>&1 | sed 5q` in
11535	*Sun\ C*)
11536	  # Sun C++ 5.9
11537	  no_undefined_flag_CXX=' -zdefs'
11538	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11539	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11540	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11541	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11542
11543	  # Not sure whether something based on
11544	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11545	  # would be better.
11546	  output_verbose_link_cmd='echo'
11547
11548	  # Archives containing C++ object files must be created using
11549	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11550	  # necessary to make sure instantiated templates are included
11551	  # in the archive.
11552	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11553	  ;;
11554	esac
11555	;;
11556    esac
11557    ;;
11558  lynxos*)
11559    # FIXME: insert proper C++ library support
11560    ld_shlibs_CXX=no
11561    ;;
11562  m88k*)
11563    # FIXME: insert proper C++ library support
11564    ld_shlibs_CXX=no
11565    ;;
11566  mvs*)
11567    case $cc_basename in
11568      cxx*)
11569	# FIXME: insert proper C++ library support
11570	ld_shlibs_CXX=no
11571	;;
11572      *)
11573	# FIXME: insert proper C++ library support
11574	ld_shlibs_CXX=no
11575	;;
11576    esac
11577    ;;
11578  netbsd*)
11579    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11580      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11581      wlarc=
11582      hardcode_libdir_flag_spec_CXX='-R$libdir'
11583      hardcode_direct_CXX=yes
11584      hardcode_shlibpath_var_CXX=no
11585    fi
11586    # Workaround some broken pre-1.5 toolchains
11587    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11588    ;;
11589  openbsd2*)
11590    # C++ shared libraries are fairly broken
11591    ld_shlibs_CXX=no
11592    ;;
11593  openbsd*)
11594    if test -f /usr/libexec/ld.so; then
11595      hardcode_direct_CXX=yes
11596      hardcode_shlibpath_var_CXX=no
11597      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11598      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11599      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11600	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11601	export_dynamic_flag_spec_CXX='${wl}-E'
11602	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11603      fi
11604      output_verbose_link_cmd='echo'
11605    else
11606      ld_shlibs_CXX=no
11607    fi
11608    ;;
11609  osf3*)
11610    case $cc_basename in
11611      KCC*)
11612	# Kuck and Associates, Inc. (KAI) C++ Compiler
11613
11614	# KCC will only create a shared library if the output file
11615	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11616	# to its proper name (with version) after linking.
11617	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11618
11619	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11620	hardcode_libdir_separator_CXX=:
11621
11622	# Archives containing C++ object files must be created using
11623	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11624	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11625
11626	;;
11627      RCC*)
11628	# Rational C++ 2.4.1
11629	# FIXME: insert proper C++ library support
11630	ld_shlibs_CXX=no
11631	;;
11632      cxx*)
11633	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11634	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11635
11636	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11637	hardcode_libdir_separator_CXX=:
11638
11639	# Commands to make compiler produce verbose output that lists
11640	# what "hidden" libraries, object files and flags are used when
11641	# linking a shared library.
11642	#
11643	# There doesn't appear to be a way to prevent this compiler from
11644	# explicitly linking system object files so we need to strip them
11645	# from the output so that they don't get included in the library
11646	# dependencies.
11647	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'
11648	;;
11649      *)
11650	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11651	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11652	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11653
11654	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11655	  hardcode_libdir_separator_CXX=:
11656
11657	  # Commands to make compiler produce verbose output that lists
11658	  # what "hidden" libraries, object files and flags are used when
11659	  # linking a shared library.
11660	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11661
11662	else
11663	  # FIXME: insert proper C++ library support
11664	  ld_shlibs_CXX=no
11665	fi
11666	;;
11667    esac
11668    ;;
11669  osf4* | osf5*)
11670    case $cc_basename in
11671      KCC*)
11672	# Kuck and Associates, Inc. (KAI) C++ Compiler
11673
11674	# KCC will only create a shared library if the output file
11675	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11676	# to its proper name (with version) after linking.
11677	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11678
11679	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11680	hardcode_libdir_separator_CXX=:
11681
11682	# Archives containing C++ object files must be created using
11683	# the KAI C++ compiler.
11684	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11685	;;
11686      RCC*)
11687	# Rational C++ 2.4.1
11688	# FIXME: insert proper C++ library support
11689	ld_shlibs_CXX=no
11690	;;
11691      cxx*)
11692	allow_undefined_flag_CXX=' -expect_unresolved \*'
11693	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11694	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11695	  echo "-hidden">> $lib.exp~
11696	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11697	  $rm $lib.exp'
11698
11699	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11700	hardcode_libdir_separator_CXX=:
11701
11702	# Commands to make compiler produce verbose output that lists
11703	# what "hidden" libraries, object files and flags are used when
11704	# linking a shared library.
11705	#
11706	# There doesn't appear to be a way to prevent this compiler from
11707	# explicitly linking system object files so we need to strip them
11708	# from the output so that they don't get included in the library
11709	# dependencies.
11710	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'
11711	;;
11712      *)
11713	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11714	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11715	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11716
11717	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11718	  hardcode_libdir_separator_CXX=:
11719
11720	  # Commands to make compiler produce verbose output that lists
11721	  # what "hidden" libraries, object files and flags are used when
11722	  # linking a shared library.
11723	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11724
11725	else
11726	  # FIXME: insert proper C++ library support
11727	  ld_shlibs_CXX=no
11728	fi
11729	;;
11730    esac
11731    ;;
11732  psos*)
11733    # FIXME: insert proper C++ library support
11734    ld_shlibs_CXX=no
11735    ;;
11736  sunos4*)
11737    case $cc_basename in
11738      CC*)
11739	# Sun C++ 4.x
11740	# FIXME: insert proper C++ library support
11741	ld_shlibs_CXX=no
11742	;;
11743      lcc*)
11744	# Lucid
11745	# FIXME: insert proper C++ library support
11746	ld_shlibs_CXX=no
11747	;;
11748      *)
11749	# FIXME: insert proper C++ library support
11750	ld_shlibs_CXX=no
11751	;;
11752    esac
11753    ;;
11754  solaris*)
11755    case $cc_basename in
11756      CC*)
11757	# Sun C++ 4.2, 5.x and Centerline C++
11758        archive_cmds_need_lc_CXX=yes
11759	no_undefined_flag_CXX=' -zdefs'
11760	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11761	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11762	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11763
11764	hardcode_libdir_flag_spec_CXX='-R$libdir'
11765	hardcode_shlibpath_var_CXX=no
11766	case $host_os in
11767	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11768	  *)
11769	    # The compiler driver will combine and reorder linker options,
11770	    # but understands `-z linker_flag'.
11771	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11772	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11773	    ;;
11774	esac
11775	link_all_deplibs_CXX=yes
11776
11777	output_verbose_link_cmd='echo'
11778
11779	# Archives containing C++ object files must be created using
11780	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11781	# necessary to make sure instantiated templates are included
11782	# in the archive.
11783	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11784	;;
11785      gcx*)
11786	# Green Hills C++ Compiler
11787	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11788
11789	# The C++ compiler must be used to create the archive.
11790	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11791	;;
11792      *)
11793	# GNU C++ compiler with Solaris linker
11794	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11795	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11796	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11797	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11798	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11799		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11800
11801	    # Commands to make compiler produce verbose output that lists
11802	    # what "hidden" libraries, object files and flags are used when
11803	    # linking a shared library.
11804	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11805	  else
11806	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11807	    # platform.
11808	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11809	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11810		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11811
11812	    # Commands to make compiler produce verbose output that lists
11813	    # what "hidden" libraries, object files and flags are used when
11814	    # linking a shared library.
11815	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11816	  fi
11817
11818	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11819	  case $host_os in
11820	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11821	  *)
11822	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11823	    ;;
11824	  esac
11825	fi
11826	;;
11827    esac
11828    ;;
11829  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11830    no_undefined_flag_CXX='${wl}-z,text'
11831    archive_cmds_need_lc_CXX=no
11832    hardcode_shlibpath_var_CXX=no
11833    runpath_var='LD_RUN_PATH'
11834
11835    case $cc_basename in
11836      CC*)
11837	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11838	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11839	;;
11840      *)
11841	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11842	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11843	;;
11844    esac
11845    ;;
11846  sysv5* | sco3.2v5* | sco5v6*)
11847    # Note: We can NOT use -z defs as we might desire, because we do not
11848    # link with -lc, and that would cause any symbols used from libc to
11849    # always be unresolved, which means just about no library would
11850    # ever link correctly.  If we're not using GNU ld we use -z text
11851    # though, which does catch some bad symbols but isn't as heavy-handed
11852    # as -z defs.
11853    # For security reasons, it is highly recommended that you always
11854    # use absolute paths for naming shared libraries, and exclude the
11855    # DT_RUNPATH tag from executables and libraries.  But doing so
11856    # requires that you compile everything twice, which is a pain.
11857    # So that behaviour is only enabled if SCOABSPATH is set to a
11858    # non-empty value in the environment.  Most likely only useful for
11859    # creating official distributions of packages.
11860    # This is a hack until libtool officially supports absolute path
11861    # names for shared libraries.
11862    no_undefined_flag_CXX='${wl}-z,text'
11863    allow_undefined_flag_CXX='${wl}-z,nodefs'
11864    archive_cmds_need_lc_CXX=no
11865    hardcode_shlibpath_var_CXX=no
11866    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11867    hardcode_libdir_separator_CXX=':'
11868    link_all_deplibs_CXX=yes
11869    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11870    runpath_var='LD_RUN_PATH'
11871
11872    case $cc_basename in
11873      CC*)
11874	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11875	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11876	;;
11877      *)
11878	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11879	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11880	;;
11881    esac
11882    ;;
11883  tandem*)
11884    case $cc_basename in
11885      NCC*)
11886	# NonStop-UX NCC 3.20
11887	# FIXME: insert proper C++ library support
11888	ld_shlibs_CXX=no
11889	;;
11890      *)
11891	# FIXME: insert proper C++ library support
11892	ld_shlibs_CXX=no
11893	;;
11894    esac
11895    ;;
11896  vxworks*)
11897    # FIXME: insert proper C++ library support
11898    ld_shlibs_CXX=no
11899    ;;
11900  *)
11901    # FIXME: insert proper C++ library support
11902    ld_shlibs_CXX=no
11903    ;;
11904esac
11905{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11906echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11907test "$ld_shlibs_CXX" = no && can_build_shared=no
11908
11909GCC_CXX="$GXX"
11910LD_CXX="$LD"
11911
11912
11913cat > conftest.$ac_ext <<EOF
11914class Foo
11915{
11916public:
11917  Foo (void) { a = 0; }
11918private:
11919  int a;
11920};
11921EOF
11922
11923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11924  (eval $ac_compile) 2>&5
11925  ac_status=$?
11926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927  (exit $ac_status); }; then
11928  # Parse the compiler output and extract the necessary
11929  # objects, libraries and library flags.
11930
11931  # Sentinel used to keep track of whether or not we are before
11932  # the conftest object file.
11933  pre_test_object_deps_done=no
11934
11935  # The `*' in the case matches for architectures that use `case' in
11936  # $output_verbose_cmd can trigger glob expansion during the loop
11937  # eval without this substitution.
11938  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11939
11940  for p in `eval $output_verbose_link_cmd`; do
11941    case $p in
11942
11943    -L* | -R* | -l*)
11944       # Some compilers place space between "-{L,R}" and the path.
11945       # Remove the space.
11946       if test $p = "-L" \
11947	  || test $p = "-R"; then
11948	 prev=$p
11949	 continue
11950       else
11951	 prev=
11952       fi
11953
11954       if test "$pre_test_object_deps_done" = no; then
11955	 case $p in
11956	 -L* | -R*)
11957	   # Internal compiler library paths should come after those
11958	   # provided the user.  The postdeps already come after the
11959	   # user supplied libs so there is no need to process them.
11960	   if test -z "$compiler_lib_search_path_CXX"; then
11961	     compiler_lib_search_path_CXX="${prev}${p}"
11962	   else
11963	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11964	   fi
11965	   ;;
11966	 # The "-l" case would never come before the object being
11967	 # linked, so don't bother handling this case.
11968	 esac
11969       else
11970	 if test -z "$postdeps_CXX"; then
11971	   postdeps_CXX="${prev}${p}"
11972	 else
11973	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11974	 fi
11975       fi
11976       ;;
11977
11978    *.$objext)
11979       # This assumes that the test object file only shows up
11980       # once in the compiler output.
11981       if test "$p" = "conftest.$objext"; then
11982	 pre_test_object_deps_done=yes
11983	 continue
11984       fi
11985
11986       if test "$pre_test_object_deps_done" = no; then
11987	 if test -z "$predep_objects_CXX"; then
11988	   predep_objects_CXX="$p"
11989	 else
11990	   predep_objects_CXX="$predep_objects_CXX $p"
11991	 fi
11992       else
11993	 if test -z "$postdep_objects_CXX"; then
11994	   postdep_objects_CXX="$p"
11995	 else
11996	   postdep_objects_CXX="$postdep_objects_CXX $p"
11997	 fi
11998       fi
11999       ;;
12000
12001    *) ;; # Ignore the rest.
12002
12003    esac
12004  done
12005
12006  # Clean up.
12007  rm -f a.out a.exe
12008else
12009  echo "libtool.m4: error: problem compiling CXX test program"
12010fi
12011
12012$rm -f confest.$objext
12013
12014# PORTME: override above test on systems where it is broken
12015case $host_os in
12016interix[3-9]*)
12017  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12018  # hack all around it, let's just trust "g++" to DTRT.
12019  predep_objects_CXX=
12020  postdep_objects_CXX=
12021  postdeps_CXX=
12022  ;;
12023
12024linux*)
12025  case `$CC -V 2>&1 | sed 5q` in
12026  *Sun\ C*)
12027    # Sun C++ 5.9
12028    #
12029    # The more standards-conforming stlport4 library is
12030    # incompatible with the Cstd library. Avoid specifying
12031    # it if it's in CXXFLAGS. Ignore libCrun as
12032    # -library=stlport4 depends on it.
12033    case " $CXX $CXXFLAGS " in
12034    *" -library=stlport4 "*)
12035      solaris_use_stlport4=yes
12036      ;;
12037    esac
12038    if test "$solaris_use_stlport4" != yes; then
12039      postdeps_CXX='-library=Cstd -library=Crun'
12040    fi
12041    ;;
12042  esac
12043  ;;
12044
12045solaris*)
12046  case $cc_basename in
12047  CC*)
12048    # The more standards-conforming stlport4 library is
12049    # incompatible with the Cstd library. Avoid specifying
12050    # it if it's in CXXFLAGS. Ignore libCrun as
12051    # -library=stlport4 depends on it.
12052    case " $CXX $CXXFLAGS " in
12053    *" -library=stlport4 "*)
12054      solaris_use_stlport4=yes
12055      ;;
12056    esac
12057
12058    # Adding this requires a known-good setup of shared libraries for
12059    # Sun compiler versions before 5.6, else PIC objects from an old
12060    # archive will be linked into the output, leading to subtle bugs.
12061    if test "$solaris_use_stlport4" != yes; then
12062      postdeps_CXX='-library=Cstd -library=Crun'
12063    fi
12064    ;;
12065  esac
12066  ;;
12067esac
12068
12069
12070case " $postdeps_CXX " in
12071*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12072esac
12073
12074lt_prog_compiler_wl_CXX=
12075lt_prog_compiler_pic_CXX=
12076lt_prog_compiler_static_CXX=
12077
12078{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12079echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12080
12081  # C++ specific cases for pic, static, wl, etc.
12082  if test "$GXX" = yes; then
12083    lt_prog_compiler_wl_CXX='-Wl,'
12084    lt_prog_compiler_static_CXX='-static'
12085
12086    case $host_os in
12087    aix*)
12088      # All AIX code is PIC.
12089      if test "$host_cpu" = ia64; then
12090	# AIX 5 now supports IA64 processor
12091	lt_prog_compiler_static_CXX='-Bstatic'
12092      fi
12093      ;;
12094    amigaos*)
12095      # FIXME: we need at least 68020 code to build shared libraries, but
12096      # adding the `-m68020' flag to GCC prevents building anything better,
12097      # like `-m68040'.
12098      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12099      ;;
12100    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12101      # PIC is the default for these OSes.
12102      ;;
12103    mingw* | cygwin* | os2* | pw32*)
12104      # This hack is so that the source file can tell whether it is being
12105      # built for inclusion in a dll (and should export symbols for example).
12106      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12107      # (--disable-auto-import) libraries
12108      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12109      ;;
12110    darwin* | rhapsody*)
12111      # PIC is the default on this platform
12112      # Common symbols not allowed in MH_DYLIB files
12113      lt_prog_compiler_pic_CXX='-fno-common'
12114      ;;
12115    *djgpp*)
12116      # DJGPP does not support shared libraries at all
12117      lt_prog_compiler_pic_CXX=
12118      ;;
12119    interix[3-9]*)
12120      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12121      # Instead, we relocate shared libraries at runtime.
12122      ;;
12123    sysv4*MP*)
12124      if test -d /usr/nec; then
12125	lt_prog_compiler_pic_CXX=-Kconform_pic
12126      fi
12127      ;;
12128    hpux*)
12129      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12130      # not for PA HP-UX.
12131      case $host_cpu in
12132      hppa*64*|ia64*)
12133	;;
12134      *)
12135	lt_prog_compiler_pic_CXX='-fPIC'
12136	;;
12137      esac
12138      ;;
12139    *)
12140      lt_prog_compiler_pic_CXX='-fPIC'
12141      ;;
12142    esac
12143  else
12144    case $host_os in
12145      aix4* | aix5*)
12146	# All AIX code is PIC.
12147	if test "$host_cpu" = ia64; then
12148	  # AIX 5 now supports IA64 processor
12149	  lt_prog_compiler_static_CXX='-Bstatic'
12150	else
12151	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12152	fi
12153	;;
12154      chorus*)
12155	case $cc_basename in
12156	cxch68*)
12157	  # Green Hills C++ Compiler
12158	  # _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"
12159	  ;;
12160	esac
12161	;;
12162       darwin*)
12163         # PIC is the default on this platform
12164         # Common symbols not allowed in MH_DYLIB files
12165         case $cc_basename in
12166           xlc*)
12167           lt_prog_compiler_pic_CXX='-qnocommon'
12168           lt_prog_compiler_wl_CXX='-Wl,'
12169           ;;
12170         esac
12171       ;;
12172      dgux*)
12173	case $cc_basename in
12174	  ec++*)
12175	    lt_prog_compiler_pic_CXX='-KPIC'
12176	    ;;
12177	  ghcx*)
12178	    # Green Hills C++ Compiler
12179	    lt_prog_compiler_pic_CXX='-pic'
12180	    ;;
12181	  *)
12182	    ;;
12183	esac
12184	;;
12185      freebsd* | dragonfly*)
12186	# FreeBSD uses GNU C++
12187	;;
12188      hpux9* | hpux10* | hpux11*)
12189	case $cc_basename in
12190	  CC*)
12191	    lt_prog_compiler_wl_CXX='-Wl,'
12192	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12193	    if test "$host_cpu" != ia64; then
12194	      lt_prog_compiler_pic_CXX='+Z'
12195	    fi
12196	    ;;
12197	  aCC*)
12198	    lt_prog_compiler_wl_CXX='-Wl,'
12199	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12200	    case $host_cpu in
12201	    hppa*64*|ia64*)
12202	      # +Z the default
12203	      ;;
12204	    *)
12205	      lt_prog_compiler_pic_CXX='+Z'
12206	      ;;
12207	    esac
12208	    ;;
12209	  *)
12210	    ;;
12211	esac
12212	;;
12213      interix*)
12214	# This is c89, which is MS Visual C++ (no shared libs)
12215	# Anyone wants to do a port?
12216	;;
12217      irix5* | irix6* | nonstopux*)
12218	case $cc_basename in
12219	  CC*)
12220	    lt_prog_compiler_wl_CXX='-Wl,'
12221	    lt_prog_compiler_static_CXX='-non_shared'
12222	    # CC pic flag -KPIC is the default.
12223	    ;;
12224	  *)
12225	    ;;
12226	esac
12227	;;
12228      linux* | k*bsd*-gnu)
12229	case $cc_basename in
12230	  KCC*)
12231	    # KAI C++ Compiler
12232	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12233	    lt_prog_compiler_pic_CXX='-fPIC'
12234	    ;;
12235	  icpc* | ecpc*)
12236	    # Intel C++
12237	    lt_prog_compiler_wl_CXX='-Wl,'
12238	    lt_prog_compiler_pic_CXX='-KPIC'
12239	    lt_prog_compiler_static_CXX='-static'
12240	    ;;
12241	  pgCC*)
12242	    # Portland Group C++ compiler.
12243	    lt_prog_compiler_wl_CXX='-Wl,'
12244	    lt_prog_compiler_pic_CXX='-fpic'
12245	    lt_prog_compiler_static_CXX='-Bstatic'
12246	    ;;
12247	  cxx*)
12248	    # Compaq C++
12249	    # Make sure the PIC flag is empty.  It appears that all Alpha
12250	    # Linux and Compaq Tru64 Unix objects are PIC.
12251	    lt_prog_compiler_pic_CXX=
12252	    lt_prog_compiler_static_CXX='-non_shared'
12253	    ;;
12254	  *)
12255	    case `$CC -V 2>&1 | sed 5q` in
12256	    *Sun\ C*)
12257	      # Sun C++ 5.9
12258	      lt_prog_compiler_pic_CXX='-KPIC'
12259	      lt_prog_compiler_static_CXX='-Bstatic'
12260	      lt_prog_compiler_wl_CXX='-Qoption ld '
12261	      ;;
12262	    esac
12263	    ;;
12264	esac
12265	;;
12266      lynxos*)
12267	;;
12268      m88k*)
12269	;;
12270      mvs*)
12271	case $cc_basename in
12272	  cxx*)
12273	    lt_prog_compiler_pic_CXX='-W c,exportall'
12274	    ;;
12275	  *)
12276	    ;;
12277	esac
12278	;;
12279      netbsd*)
12280	;;
12281      osf3* | osf4* | osf5*)
12282	case $cc_basename in
12283	  KCC*)
12284	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12285	    ;;
12286	  RCC*)
12287	    # Rational C++ 2.4.1
12288	    lt_prog_compiler_pic_CXX='-pic'
12289	    ;;
12290	  cxx*)
12291	    # Digital/Compaq C++
12292	    lt_prog_compiler_wl_CXX='-Wl,'
12293	    # Make sure the PIC flag is empty.  It appears that all Alpha
12294	    # Linux and Compaq Tru64 Unix objects are PIC.
12295	    lt_prog_compiler_pic_CXX=
12296	    lt_prog_compiler_static_CXX='-non_shared'
12297	    ;;
12298	  *)
12299	    ;;
12300	esac
12301	;;
12302      psos*)
12303	;;
12304      solaris*)
12305	case $cc_basename in
12306	  CC*)
12307	    # Sun C++ 4.2, 5.x and Centerline C++
12308	    lt_prog_compiler_pic_CXX='-KPIC'
12309	    lt_prog_compiler_static_CXX='-Bstatic'
12310	    lt_prog_compiler_wl_CXX='-Qoption ld '
12311	    ;;
12312	  gcx*)
12313	    # Green Hills C++ Compiler
12314	    lt_prog_compiler_pic_CXX='-PIC'
12315	    ;;
12316	  *)
12317	    ;;
12318	esac
12319	;;
12320      sunos4*)
12321	case $cc_basename in
12322	  CC*)
12323	    # Sun C++ 4.x
12324	    lt_prog_compiler_pic_CXX='-pic'
12325	    lt_prog_compiler_static_CXX='-Bstatic'
12326	    ;;
12327	  lcc*)
12328	    # Lucid
12329	    lt_prog_compiler_pic_CXX='-pic'
12330	    ;;
12331	  *)
12332	    ;;
12333	esac
12334	;;
12335      tandem*)
12336	case $cc_basename in
12337	  NCC*)
12338	    # NonStop-UX NCC 3.20
12339	    lt_prog_compiler_pic_CXX='-KPIC'
12340	    ;;
12341	  *)
12342	    ;;
12343	esac
12344	;;
12345      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12346	case $cc_basename in
12347	  CC*)
12348	    lt_prog_compiler_wl_CXX='-Wl,'
12349	    lt_prog_compiler_pic_CXX='-KPIC'
12350	    lt_prog_compiler_static_CXX='-Bstatic'
12351	    ;;
12352	esac
12353	;;
12354      vxworks*)
12355	;;
12356      *)
12357	lt_prog_compiler_can_build_shared_CXX=no
12358	;;
12359    esac
12360  fi
12361
12362{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12363echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12364
12365#
12366# Check to make sure the PIC flag actually works.
12367#
12368if test -n "$lt_prog_compiler_pic_CXX"; then
12369
12370{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12371echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12372if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12373  echo $ECHO_N "(cached) $ECHO_C" >&6
12374else
12375  lt_prog_compiler_pic_works_CXX=no
12376  ac_outfile=conftest.$ac_objext
12377   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12378   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12379   # Insert the option either (1) after the last *FLAGS variable, or
12380   # (2) before a word containing "conftest.", or (3) at the end.
12381   # Note that $ac_compile itself does not contain backslashes and begins
12382   # with a dollar sign (not a hyphen), so the echo should work correctly.
12383   # The option is referenced via a variable to avoid confusing sed.
12384   lt_compile=`echo "$ac_compile" | $SED \
12385   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12386   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12387   -e 's:$: $lt_compiler_flag:'`
12388   (eval echo "\"\$as_me:12388: $lt_compile\"" >&5)
12389   (eval "$lt_compile" 2>conftest.err)
12390   ac_status=$?
12391   cat conftest.err >&5
12392   echo "$as_me:12392: \$? = $ac_status" >&5
12393   if (exit $ac_status) && test -s "$ac_outfile"; then
12394     # The compiler can only warn and ignore the option if not recognized
12395     # So say no if there are warnings other than the usual output.
12396     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12397     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12398     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12399       lt_prog_compiler_pic_works_CXX=yes
12400     fi
12401   fi
12402   $rm conftest*
12403
12404fi
12405{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12406echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12407
12408if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12409    case $lt_prog_compiler_pic_CXX in
12410     "" | " "*) ;;
12411     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12412     esac
12413else
12414    lt_prog_compiler_pic_CXX=
12415     lt_prog_compiler_can_build_shared_CXX=no
12416fi
12417
12418fi
12419case $host_os in
12420  # For platforms which do not support PIC, -DPIC is meaningless:
12421  *djgpp*)
12422    lt_prog_compiler_pic_CXX=
12423    ;;
12424  *)
12425    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12426    ;;
12427esac
12428
12429#
12430# Check to make sure the static flag actually works.
12431#
12432wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12433{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12434echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12435if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12436  echo $ECHO_N "(cached) $ECHO_C" >&6
12437else
12438  lt_prog_compiler_static_works_CXX=no
12439   save_LDFLAGS="$LDFLAGS"
12440   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12441   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12442   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12443     # The linker can only warn and ignore the option if not recognized
12444     # So say no if there are warnings
12445     if test -s conftest.err; then
12446       # Append any errors to the config.log.
12447       cat conftest.err 1>&5
12448       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12449       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12450       if diff conftest.exp conftest.er2 >/dev/null; then
12451         lt_prog_compiler_static_works_CXX=yes
12452       fi
12453     else
12454       lt_prog_compiler_static_works_CXX=yes
12455     fi
12456   fi
12457   $rm conftest*
12458   LDFLAGS="$save_LDFLAGS"
12459
12460fi
12461{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12462echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12463
12464if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12465    :
12466else
12467    lt_prog_compiler_static_CXX=
12468fi
12469
12470
12471{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12472echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12473if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12474  echo $ECHO_N "(cached) $ECHO_C" >&6
12475else
12476  lt_cv_prog_compiler_c_o_CXX=no
12477   $rm -r conftest 2>/dev/null
12478   mkdir conftest
12479   cd conftest
12480   mkdir out
12481   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12482
12483   lt_compiler_flag="-o out/conftest2.$ac_objext"
12484   # Insert the option either (1) after the last *FLAGS variable, or
12485   # (2) before a word containing "conftest.", or (3) at the end.
12486   # Note that $ac_compile itself does not contain backslashes and begins
12487   # with a dollar sign (not a hyphen), so the echo should work correctly.
12488   lt_compile=`echo "$ac_compile" | $SED \
12489   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12490   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12491   -e 's:$: $lt_compiler_flag:'`
12492   (eval echo "\"\$as_me:12492: $lt_compile\"" >&5)
12493   (eval "$lt_compile" 2>out/conftest.err)
12494   ac_status=$?
12495   cat out/conftest.err >&5
12496   echo "$as_me:12496: \$? = $ac_status" >&5
12497   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12498   then
12499     # The compiler can only warn and ignore the option if not recognized
12500     # So say no if there are warnings
12501     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12502     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12503     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12504       lt_cv_prog_compiler_c_o_CXX=yes
12505     fi
12506   fi
12507   chmod u+w . 2>&5
12508   $rm conftest*
12509   # SGI C++ compiler will create directory out/ii_files/ for
12510   # template instantiation
12511   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12512   $rm out/* && rmdir out
12513   cd ..
12514   rmdir conftest
12515   $rm conftest*
12516
12517fi
12518{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12519echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12520
12521
12522hard_links="nottested"
12523if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12524  # do not overwrite the value of need_locks provided by the user
12525  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12526echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12527  hard_links=yes
12528  $rm conftest*
12529  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12530  touch conftest.a
12531  ln conftest.a conftest.b 2>&5 || hard_links=no
12532  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12533  { echo "$as_me:$LINENO: result: $hard_links" >&5
12534echo "${ECHO_T}$hard_links" >&6; }
12535  if test "$hard_links" = no; then
12536    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12537echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12538    need_locks=warn
12539  fi
12540else
12541  need_locks=no
12542fi
12543
12544{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12545echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12546
12547  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12548  case $host_os in
12549  aix4* | aix5*)
12550    # If we're using GNU nm, then we don't want the "-C" option.
12551    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12552    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12553      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'
12554    else
12555      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'
12556    fi
12557    ;;
12558  pw32*)
12559    export_symbols_cmds_CXX="$ltdll_cmds"
12560  ;;
12561  cygwin* | mingw*)
12562    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12563  ;;
12564  *)
12565    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12566  ;;
12567  esac
12568
12569{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12570echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12571test "$ld_shlibs_CXX" = no && can_build_shared=no
12572
12573#
12574# Do we need to explicitly link libc?
12575#
12576case "x$archive_cmds_need_lc_CXX" in
12577x|xyes)
12578  # Assume -lc should be added
12579  archive_cmds_need_lc_CXX=yes
12580
12581  if test "$enable_shared" = yes && test "$GCC" = yes; then
12582    case $archive_cmds_CXX in
12583    *'~'*)
12584      # FIXME: we may have to deal with multi-command sequences.
12585      ;;
12586    '$CC '*)
12587      # Test whether the compiler implicitly links with -lc since on some
12588      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12589      # to ld, don't add -lc before -lgcc.
12590      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12591echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12592      $rm conftest*
12593      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12594
12595      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12596  (eval $ac_compile) 2>&5
12597  ac_status=$?
12598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599  (exit $ac_status); } 2>conftest.err; then
12600        soname=conftest
12601        lib=conftest
12602        libobjs=conftest.$ac_objext
12603        deplibs=
12604        wl=$lt_prog_compiler_wl_CXX
12605	pic_flag=$lt_prog_compiler_pic_CXX
12606        compiler_flags=-v
12607        linker_flags=-v
12608        verstring=
12609        output_objdir=.
12610        libname=conftest
12611        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12612        allow_undefined_flag_CXX=
12613        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12614  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12615  ac_status=$?
12616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617  (exit $ac_status); }
12618        then
12619	  archive_cmds_need_lc_CXX=no
12620        else
12621	  archive_cmds_need_lc_CXX=yes
12622        fi
12623        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12624      else
12625        cat conftest.err 1>&5
12626      fi
12627      $rm conftest*
12628      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12629echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12630      ;;
12631    esac
12632  fi
12633  ;;
12634esac
12635
12636{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12637echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12638library_names_spec=
12639libname_spec='lib$name'
12640soname_spec=
12641shrext_cmds=".so"
12642postinstall_cmds=
12643postuninstall_cmds=
12644finish_cmds=
12645finish_eval=
12646shlibpath_var=
12647shlibpath_overrides_runpath=unknown
12648version_type=none
12649dynamic_linker="$host_os ld.so"
12650sys_lib_dlsearch_path_spec="/lib /usr/lib"
12651
12652need_lib_prefix=unknown
12653hardcode_into_libs=no
12654
12655# when you set need_version to no, make sure it does not cause -set_version
12656# flags to be left without arguments
12657need_version=unknown
12658
12659case $host_os in
12660aix3*)
12661  version_type=linux
12662  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12663  shlibpath_var=LIBPATH
12664
12665  # AIX 3 has no versioning support, so we append a major version to the name.
12666  soname_spec='${libname}${release}${shared_ext}$major'
12667  ;;
12668
12669aix4* | aix5*)
12670  version_type=linux
12671  need_lib_prefix=no
12672  need_version=no
12673  hardcode_into_libs=yes
12674  if test "$host_cpu" = ia64; then
12675    # AIX 5 supports IA64
12676    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12677    shlibpath_var=LD_LIBRARY_PATH
12678  else
12679    # With GCC up to 2.95.x, collect2 would create an import file
12680    # for dependence libraries.  The import file would start with
12681    # the line `#! .'.  This would cause the generated library to
12682    # depend on `.', always an invalid library.  This was fixed in
12683    # development snapshots of GCC prior to 3.0.
12684    case $host_os in
12685      aix4 | aix4.[01] | aix4.[01].*)
12686      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12687	   echo ' yes '
12688	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12689	:
12690      else
12691	can_build_shared=no
12692      fi
12693      ;;
12694    esac
12695    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12696    # soname into executable. Probably we can add versioning support to
12697    # collect2, so additional links can be useful in future.
12698    if test "$aix_use_runtimelinking" = yes; then
12699      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12700      # instead of lib<name>.a to let people know that these are not
12701      # typical AIX shared libraries.
12702      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12703    else
12704      # We preserve .a as extension for shared libraries through AIX4.2
12705      # and later when we are not doing run time linking.
12706      library_names_spec='${libname}${release}.a $libname.a'
12707      soname_spec='${libname}${release}${shared_ext}$major'
12708    fi
12709    shlibpath_var=LIBPATH
12710  fi
12711  ;;
12712
12713amigaos*)
12714  library_names_spec='$libname.ixlibrary $libname.a'
12715  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12716  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'
12717  ;;
12718
12719beos*)
12720  library_names_spec='${libname}${shared_ext}'
12721  dynamic_linker="$host_os ld.so"
12722  shlibpath_var=LIBRARY_PATH
12723  ;;
12724
12725bsdi[45]*)
12726  version_type=linux
12727  need_version=no
12728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12729  soname_spec='${libname}${release}${shared_ext}$major'
12730  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12731  shlibpath_var=LD_LIBRARY_PATH
12732  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12733  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12734  # the default ld.so.conf also contains /usr/contrib/lib and
12735  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12736  # libtool to hard-code these into programs
12737  ;;
12738
12739cygwin* | mingw* | pw32*)
12740  version_type=windows
12741  shrext_cmds=".dll"
12742  need_version=no
12743  need_lib_prefix=no
12744
12745  case $GCC,$host_os in
12746  yes,cygwin* | yes,mingw* | yes,pw32*)
12747    library_names_spec='$libname.dll.a'
12748    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12749    postinstall_cmds='base_file=`basename \${file}`~
12750      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12751      dldir=$destdir/`dirname \$dlpath`~
12752      test -d \$dldir || mkdir -p \$dldir~
12753      $install_prog $dir/$dlname \$dldir/$dlname~
12754      chmod a+x \$dldir/$dlname'
12755    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12756      dlpath=$dir/\$dldll~
12757       $rm \$dlpath'
12758    shlibpath_overrides_runpath=yes
12759
12760    case $host_os in
12761    cygwin*)
12762      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12763      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12764      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12765      ;;
12766    mingw*)
12767      # MinGW DLLs use traditional 'lib' prefix
12768      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12769      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12770      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12771        # It is most probably a Windows format PATH printed by
12772        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12773        # path with ; separators, and with drive letters. We can handle the
12774        # drive letters (cygwin fileutils understands them), so leave them,
12775        # especially as we might pass files found there to a mingw objdump,
12776        # which wouldn't understand a cygwinified path. Ahh.
12777        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12778      else
12779        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12780      fi
12781      ;;
12782    pw32*)
12783      # pw32 DLLs use 'pw' prefix rather than 'lib'
12784      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12785      ;;
12786    esac
12787    ;;
12788
12789  *)
12790    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12791    ;;
12792  esac
12793  dynamic_linker='Win32 ld.exe'
12794  # FIXME: first we should search . and the directory the executable is in
12795  shlibpath_var=PATH
12796  ;;
12797
12798darwin* | rhapsody*)
12799  dynamic_linker="$host_os dyld"
12800  version_type=darwin
12801  need_lib_prefix=no
12802  need_version=no
12803  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12804  soname_spec='${libname}${release}${major}$shared_ext'
12805  shlibpath_overrides_runpath=yes
12806  shlibpath_var=DYLD_LIBRARY_PATH
12807  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12808
12809  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12810  ;;
12811
12812dgux*)
12813  version_type=linux
12814  need_lib_prefix=no
12815  need_version=no
12816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12817  soname_spec='${libname}${release}${shared_ext}$major'
12818  shlibpath_var=LD_LIBRARY_PATH
12819  ;;
12820
12821freebsd1*)
12822  dynamic_linker=no
12823  ;;
12824
12825freebsd* | dragonfly*)
12826  # DragonFly does not have aout.  When/if they implement a new
12827  # versioning mechanism, adjust this.
12828  if test -x /usr/bin/objformat; then
12829    objformat=`/usr/bin/objformat`
12830  else
12831    case $host_os in
12832    freebsd[123]*) objformat=aout ;;
12833    *) objformat=elf ;;
12834    esac
12835  fi
12836  version_type=freebsd-$objformat
12837  case $version_type in
12838    freebsd-elf*)
12839      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12840      need_version=no
12841      need_lib_prefix=no
12842      ;;
12843    freebsd-*)
12844      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12845      need_version=yes
12846      ;;
12847  esac
12848  shlibpath_var=LD_LIBRARY_PATH
12849  case $host_os in
12850  freebsd2*)
12851    shlibpath_overrides_runpath=yes
12852    ;;
12853  freebsd3.[01]* | freebsdelf3.[01]*)
12854    shlibpath_overrides_runpath=yes
12855    hardcode_into_libs=yes
12856    ;;
12857  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12858  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12859    shlibpath_overrides_runpath=no
12860    hardcode_into_libs=yes
12861    ;;
12862  *) # from 4.6 on, and DragonFly
12863    shlibpath_overrides_runpath=yes
12864    hardcode_into_libs=yes
12865    ;;
12866  esac
12867  ;;
12868
12869gnu*)
12870  version_type=linux
12871  need_lib_prefix=no
12872  need_version=no
12873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12874  soname_spec='${libname}${release}${shared_ext}$major'
12875  shlibpath_var=LD_LIBRARY_PATH
12876  hardcode_into_libs=yes
12877  ;;
12878
12879hpux9* | hpux10* | hpux11*)
12880  # Give a soname corresponding to the major version so that dld.sl refuses to
12881  # link against other versions.
12882  version_type=sunos
12883  need_lib_prefix=no
12884  need_version=no
12885  case $host_cpu in
12886  ia64*)
12887    shrext_cmds='.so'
12888    hardcode_into_libs=yes
12889    dynamic_linker="$host_os dld.so"
12890    shlibpath_var=LD_LIBRARY_PATH
12891    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12892    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12893    soname_spec='${libname}${release}${shared_ext}$major'
12894    if test "X$HPUX_IA64_MODE" = X32; then
12895      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12896    else
12897      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12898    fi
12899    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12900    ;;
12901   hppa*64*)
12902     shrext_cmds='.sl'
12903     hardcode_into_libs=yes
12904     dynamic_linker="$host_os dld.sl"
12905     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12906     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12907     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12908     soname_spec='${libname}${release}${shared_ext}$major'
12909     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12910     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12911     ;;
12912   *)
12913    shrext_cmds='.sl'
12914    dynamic_linker="$host_os dld.sl"
12915    shlibpath_var=SHLIB_PATH
12916    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12917    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12918    soname_spec='${libname}${release}${shared_ext}$major'
12919    ;;
12920  esac
12921  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12922  postinstall_cmds='chmod 555 $lib'
12923  ;;
12924
12925interix[3-9]*)
12926  version_type=linux
12927  need_lib_prefix=no
12928  need_version=no
12929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12930  soname_spec='${libname}${release}${shared_ext}$major'
12931  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12932  shlibpath_var=LD_LIBRARY_PATH
12933  shlibpath_overrides_runpath=no
12934  hardcode_into_libs=yes
12935  ;;
12936
12937irix5* | irix6* | nonstopux*)
12938  case $host_os in
12939    nonstopux*) version_type=nonstopux ;;
12940    *)
12941	if test "$lt_cv_prog_gnu_ld" = yes; then
12942		version_type=linux
12943	else
12944		version_type=irix
12945	fi ;;
12946  esac
12947  need_lib_prefix=no
12948  need_version=no
12949  soname_spec='${libname}${release}${shared_ext}$major'
12950  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12951  case $host_os in
12952  irix5* | nonstopux*)
12953    libsuff= shlibsuff=
12954    ;;
12955  *)
12956    case $LD in # libtool.m4 will add one of these switches to LD
12957    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12958      libsuff= shlibsuff= libmagic=32-bit;;
12959    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12960      libsuff=32 shlibsuff=N32 libmagic=N32;;
12961    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12962      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12963    *) libsuff= shlibsuff= libmagic=never-match;;
12964    esac
12965    ;;
12966  esac
12967  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12968  shlibpath_overrides_runpath=no
12969  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12970  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12971  hardcode_into_libs=yes
12972  ;;
12973
12974# No shared lib support for Linux oldld, aout, or coff.
12975linux*oldld* | linux*aout* | linux*coff*)
12976  dynamic_linker=no
12977  ;;
12978
12979# This must be Linux ELF.
12980linux* | k*bsd*-gnu)
12981  version_type=linux
12982  need_lib_prefix=no
12983  need_version=no
12984  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12985  soname_spec='${libname}${release}${shared_ext}$major'
12986  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12987  shlibpath_var=LD_LIBRARY_PATH
12988  shlibpath_overrides_runpath=no
12989  # This implies no fast_install, which is unacceptable.
12990  # Some rework will be needed to allow for fast_install
12991  # before this can be enabled.
12992  hardcode_into_libs=yes
12993  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12994  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12995
12996  # Append ld.so.conf contents to the search path
12997  if test -f /etc/ld.so.conf; then
12998    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12999    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13000  fi
13001
13002  # We used to test for /lib/ld.so.1 and disable shared libraries on
13003  # powerpc, because MkLinux only supported shared libraries with the
13004  # GNU dynamic linker.  Since this was broken with cross compilers,
13005  # most powerpc-linux boxes support dynamic linking these days and
13006  # people can always --disable-shared, the test was removed, and we
13007  # assume the GNU/Linux dynamic linker is in use.
13008  dynamic_linker='GNU/Linux ld.so'
13009  ;;
13010
13011netbsd*)
13012  version_type=sunos
13013  need_lib_prefix=no
13014  need_version=no
13015  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13016    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13017    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13018    dynamic_linker='NetBSD (a.out) ld.so'
13019  else
13020    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13021    soname_spec='${libname}${release}${shared_ext}$major'
13022    dynamic_linker='NetBSD ld.elf_so'
13023  fi
13024  shlibpath_var=LD_LIBRARY_PATH
13025  shlibpath_overrides_runpath=yes
13026  hardcode_into_libs=yes
13027  ;;
13028
13029newsos6)
13030  version_type=linux
13031  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13032  shlibpath_var=LD_LIBRARY_PATH
13033  shlibpath_overrides_runpath=yes
13034  ;;
13035
13036nto-qnx*)
13037  version_type=linux
13038  need_lib_prefix=no
13039  need_version=no
13040  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13041  soname_spec='${libname}${release}${shared_ext}$major'
13042  shlibpath_var=LD_LIBRARY_PATH
13043  shlibpath_overrides_runpath=yes
13044  ;;
13045
13046openbsd*)
13047  version_type=sunos
13048  sys_lib_dlsearch_path_spec="/usr/lib"
13049  need_lib_prefix=no
13050  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13051  case $host_os in
13052    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13053    *)                         need_version=no  ;;
13054  esac
13055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13056  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13057  shlibpath_var=LD_LIBRARY_PATH
13058  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13059    case $host_os in
13060      openbsd2.[89] | openbsd2.[89].*)
13061	shlibpath_overrides_runpath=no
13062	;;
13063      *)
13064	shlibpath_overrides_runpath=yes
13065	;;
13066      esac
13067  else
13068    shlibpath_overrides_runpath=yes
13069  fi
13070  ;;
13071
13072os2*)
13073  libname_spec='$name'
13074  shrext_cmds=".dll"
13075  need_lib_prefix=no
13076  library_names_spec='$libname${shared_ext} $libname.a'
13077  dynamic_linker='OS/2 ld.exe'
13078  shlibpath_var=LIBPATH
13079  ;;
13080
13081osf3* | osf4* | osf5*)
13082  version_type=osf
13083  need_lib_prefix=no
13084  need_version=no
13085  soname_spec='${libname}${release}${shared_ext}$major'
13086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13087  shlibpath_var=LD_LIBRARY_PATH
13088  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13089  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13090  ;;
13091
13092rdos*)
13093  dynamic_linker=no
13094  ;;
13095
13096solaris*)
13097  version_type=linux
13098  need_lib_prefix=no
13099  need_version=no
13100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13101  soname_spec='${libname}${release}${shared_ext}$major'
13102  shlibpath_var=LD_LIBRARY_PATH
13103  shlibpath_overrides_runpath=yes
13104  hardcode_into_libs=yes
13105  # ldd complains unless libraries are executable
13106  postinstall_cmds='chmod +x $lib'
13107  ;;
13108
13109sunos4*)
13110  version_type=sunos
13111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13112  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13113  shlibpath_var=LD_LIBRARY_PATH
13114  shlibpath_overrides_runpath=yes
13115  if test "$with_gnu_ld" = yes; then
13116    need_lib_prefix=no
13117  fi
13118  need_version=yes
13119  ;;
13120
13121sysv4 | sysv4.3*)
13122  version_type=linux
13123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13124  soname_spec='${libname}${release}${shared_ext}$major'
13125  shlibpath_var=LD_LIBRARY_PATH
13126  case $host_vendor in
13127    sni)
13128      shlibpath_overrides_runpath=no
13129      need_lib_prefix=no
13130      export_dynamic_flag_spec='${wl}-Blargedynsym'
13131      runpath_var=LD_RUN_PATH
13132      ;;
13133    siemens)
13134      need_lib_prefix=no
13135      ;;
13136    motorola)
13137      need_lib_prefix=no
13138      need_version=no
13139      shlibpath_overrides_runpath=no
13140      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13141      ;;
13142  esac
13143  ;;
13144
13145sysv4*MP*)
13146  if test -d /usr/nec ;then
13147    version_type=linux
13148    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13149    soname_spec='$libname${shared_ext}.$major'
13150    shlibpath_var=LD_LIBRARY_PATH
13151  fi
13152  ;;
13153
13154sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13155  version_type=freebsd-elf
13156  need_lib_prefix=no
13157  need_version=no
13158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13159  soname_spec='${libname}${release}${shared_ext}$major'
13160  shlibpath_var=LD_LIBRARY_PATH
13161  hardcode_into_libs=yes
13162  if test "$with_gnu_ld" = yes; then
13163    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13164    shlibpath_overrides_runpath=no
13165  else
13166    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13167    shlibpath_overrides_runpath=yes
13168    case $host_os in
13169      sco3.2v5*)
13170        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13171	;;
13172    esac
13173  fi
13174  sys_lib_dlsearch_path_spec='/usr/lib'
13175  ;;
13176
13177uts4*)
13178  version_type=linux
13179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13180  soname_spec='${libname}${release}${shared_ext}$major'
13181  shlibpath_var=LD_LIBRARY_PATH
13182  ;;
13183
13184*)
13185  dynamic_linker=no
13186  ;;
13187esac
13188{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13189echo "${ECHO_T}$dynamic_linker" >&6; }
13190test "$dynamic_linker" = no && can_build_shared=no
13191
13192variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13193if test "$GCC" = yes; then
13194  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13195fi
13196
13197{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13198echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13199hardcode_action_CXX=
13200if test -n "$hardcode_libdir_flag_spec_CXX" || \
13201   test -n "$runpath_var_CXX" || \
13202   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13203
13204  # We can hardcode non-existant directories.
13205  if test "$hardcode_direct_CXX" != no &&
13206     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13207     # have to relink, otherwise we might link with an installed library
13208     # when we should be linking with a yet-to-be-installed one
13209     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13210     test "$hardcode_minus_L_CXX" != no; then
13211    # Linking always hardcodes the temporary library directory.
13212    hardcode_action_CXX=relink
13213  else
13214    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13215    hardcode_action_CXX=immediate
13216  fi
13217else
13218  # We cannot hardcode anything, or else we can only hardcode existing
13219  # directories.
13220  hardcode_action_CXX=unsupported
13221fi
13222{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13223echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13224
13225if test "$hardcode_action_CXX" = relink; then
13226  # Fast installation is not supported
13227  enable_fast_install=no
13228elif test "$shlibpath_overrides_runpath" = yes ||
13229     test "$enable_shared" = no; then
13230  # Fast installation is not necessary
13231  enable_fast_install=needless
13232fi
13233
13234
13235# The else clause should only fire when bootstrapping the
13236# libtool distribution, otherwise you forgot to ship ltmain.sh
13237# with your package, and you will get complaints that there are
13238# no rules to generate ltmain.sh.
13239if test -f "$ltmain"; then
13240  # See if we are running on zsh, and set the options which allow our commands through
13241  # without removal of \ escapes.
13242  if test -n "${ZSH_VERSION+set}" ; then
13243    setopt NO_GLOB_SUBST
13244  fi
13245  # Now quote all the things that may contain metacharacters while being
13246  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13247  # variables and quote the copies for generation of the libtool script.
13248  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13249    SED SHELL STRIP \
13250    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13251    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13252    deplibs_check_method reload_flag reload_cmds need_locks \
13253    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13254    lt_cv_sys_global_symbol_to_c_name_address \
13255    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13256    old_postinstall_cmds old_postuninstall_cmds \
13257    compiler_CXX \
13258    CC_CXX \
13259    LD_CXX \
13260    lt_prog_compiler_wl_CXX \
13261    lt_prog_compiler_pic_CXX \
13262    lt_prog_compiler_static_CXX \
13263    lt_prog_compiler_no_builtin_flag_CXX \
13264    export_dynamic_flag_spec_CXX \
13265    thread_safe_flag_spec_CXX \
13266    whole_archive_flag_spec_CXX \
13267    enable_shared_with_static_runtimes_CXX \
13268    old_archive_cmds_CXX \
13269    old_archive_from_new_cmds_CXX \
13270    predep_objects_CXX \
13271    postdep_objects_CXX \
13272    predeps_CXX \
13273    postdeps_CXX \
13274    compiler_lib_search_path_CXX \
13275    archive_cmds_CXX \
13276    archive_expsym_cmds_CXX \
13277    postinstall_cmds_CXX \
13278    postuninstall_cmds_CXX \
13279    old_archive_from_expsyms_cmds_CXX \
13280    allow_undefined_flag_CXX \
13281    no_undefined_flag_CXX \
13282    export_symbols_cmds_CXX \
13283    hardcode_libdir_flag_spec_CXX \
13284    hardcode_libdir_flag_spec_ld_CXX \
13285    hardcode_libdir_separator_CXX \
13286    hardcode_automatic_CXX \
13287    module_cmds_CXX \
13288    module_expsym_cmds_CXX \
13289    lt_cv_prog_compiler_c_o_CXX \
13290    fix_srcfile_path_CXX \
13291    exclude_expsyms_CXX \
13292    include_expsyms_CXX; do
13293
13294    case $var in
13295    old_archive_cmds_CXX | \
13296    old_archive_from_new_cmds_CXX | \
13297    archive_cmds_CXX | \
13298    archive_expsym_cmds_CXX | \
13299    module_cmds_CXX | \
13300    module_expsym_cmds_CXX | \
13301    old_archive_from_expsyms_cmds_CXX | \
13302    export_symbols_cmds_CXX | \
13303    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13304    postinstall_cmds | postuninstall_cmds | \
13305    old_postinstall_cmds | old_postuninstall_cmds | \
13306    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13307      # Double-quote double-evaled strings.
13308      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13309      ;;
13310    *)
13311      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13312      ;;
13313    esac
13314  done
13315
13316  case $lt_echo in
13317  *'\$0 --fallback-echo"')
13318    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13319    ;;
13320  esac
13321
13322cfgfile="$ofile"
13323
13324  cat <<__EOF__ >> "$cfgfile"
13325# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13326
13327# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13328
13329# Shell to use when invoking shell scripts.
13330SHELL=$lt_SHELL
13331
13332# Whether or not to build shared libraries.
13333build_libtool_libs=$enable_shared
13334
13335# Whether or not to build static libraries.
13336build_old_libs=$enable_static
13337
13338# Whether or not to add -lc for building shared libraries.
13339build_libtool_need_lc=$archive_cmds_need_lc_CXX
13340
13341# Whether or not to disallow shared libs when runtime libs are static
13342allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13343
13344# Whether or not to optimize for fast installation.
13345fast_install=$enable_fast_install
13346
13347# The host system.
13348host_alias=$host_alias
13349host=$host
13350host_os=$host_os
13351
13352# The build system.
13353build_alias=$build_alias
13354build=$build
13355build_os=$build_os
13356
13357# An echo program that does not interpret backslashes.
13358echo=$lt_echo
13359
13360# The archiver.
13361AR=$lt_AR
13362AR_FLAGS=$lt_AR_FLAGS
13363
13364# A C compiler.
13365LTCC=$lt_LTCC
13366
13367# LTCC compiler flags.
13368LTCFLAGS=$lt_LTCFLAGS
13369
13370# A language-specific compiler.
13371CC=$lt_compiler_CXX
13372
13373# Is the compiler the GNU C compiler?
13374with_gcc=$GCC_CXX
13375
13376# An ERE matcher.
13377EGREP=$lt_EGREP
13378
13379# The linker used to build libraries.
13380LD=$lt_LD_CXX
13381
13382# Whether we need hard or soft links.
13383LN_S=$lt_LN_S
13384
13385# A BSD-compatible nm program.
13386NM=$lt_NM
13387
13388# A symbol stripping program
13389STRIP=$lt_STRIP
13390
13391# Used to examine libraries when file_magic_cmd begins "file"
13392MAGIC_CMD=$MAGIC_CMD
13393
13394# Used on cygwin: DLL creation program.
13395DLLTOOL="$DLLTOOL"
13396
13397# Used on cygwin: object dumper.
13398OBJDUMP="$OBJDUMP"
13399
13400# Used on cygwin: assembler.
13401AS="$AS"
13402
13403# The name of the directory that contains temporary libtool files.
13404objdir=$objdir
13405
13406# How to create reloadable object files.
13407reload_flag=$lt_reload_flag
13408reload_cmds=$lt_reload_cmds
13409
13410# How to pass a linker flag through the compiler.
13411wl=$lt_lt_prog_compiler_wl_CXX
13412
13413# Object file suffix (normally "o").
13414objext="$ac_objext"
13415
13416# Old archive suffix (normally "a").
13417libext="$libext"
13418
13419# Shared library suffix (normally ".so").
13420shrext_cmds='$shrext_cmds'
13421
13422# Executable file suffix (normally "").
13423exeext="$exeext"
13424
13425# Additional compiler flags for building library objects.
13426pic_flag=$lt_lt_prog_compiler_pic_CXX
13427pic_mode=$pic_mode
13428
13429# What is the maximum length of a command?
13430max_cmd_len=$lt_cv_sys_max_cmd_len
13431
13432# Does compiler simultaneously support -c and -o options?
13433compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13434
13435# Must we lock files when doing compilation?
13436need_locks=$lt_need_locks
13437
13438# Do we need the lib prefix for modules?
13439need_lib_prefix=$need_lib_prefix
13440
13441# Do we need a version for libraries?
13442need_version=$need_version
13443
13444# Whether dlopen is supported.
13445dlopen_support=$enable_dlopen
13446
13447# Whether dlopen of programs is supported.
13448dlopen_self=$enable_dlopen_self
13449
13450# Whether dlopen of statically linked programs is supported.
13451dlopen_self_static=$enable_dlopen_self_static
13452
13453# Compiler flag to prevent dynamic linking.
13454link_static_flag=$lt_lt_prog_compiler_static_CXX
13455
13456# Compiler flag to turn off builtin functions.
13457no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13458
13459# Compiler flag to allow reflexive dlopens.
13460export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13461
13462# Compiler flag to generate shared objects directly from archives.
13463whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13464
13465# Compiler flag to generate thread-safe objects.
13466thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13467
13468# Library versioning type.
13469version_type=$version_type
13470
13471# Format of library name prefix.
13472libname_spec=$lt_libname_spec
13473
13474# List of archive names.  First name is the real one, the rest are links.
13475# The last name is the one that the linker finds with -lNAME.
13476library_names_spec=$lt_library_names_spec
13477
13478# The coded name of the library, if different from the real name.
13479soname_spec=$lt_soname_spec
13480
13481# Commands used to build and install an old-style archive.
13482RANLIB=$lt_RANLIB
13483old_archive_cmds=$lt_old_archive_cmds_CXX
13484old_postinstall_cmds=$lt_old_postinstall_cmds
13485old_postuninstall_cmds=$lt_old_postuninstall_cmds
13486
13487# Create an old-style archive from a shared archive.
13488old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13489
13490# Create a temporary old-style archive to link instead of a shared archive.
13491old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13492
13493# Commands used to build and install a shared archive.
13494archive_cmds=$lt_archive_cmds_CXX
13495archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13496postinstall_cmds=$lt_postinstall_cmds
13497postuninstall_cmds=$lt_postuninstall_cmds
13498
13499# Commands used to build a loadable module (assumed same as above if empty)
13500module_cmds=$lt_module_cmds_CXX
13501module_expsym_cmds=$lt_module_expsym_cmds_CXX
13502
13503# Commands to strip libraries.
13504old_striplib=$lt_old_striplib
13505striplib=$lt_striplib
13506
13507# Dependencies to place before the objects being linked to create a
13508# shared library.
13509predep_objects=$lt_predep_objects_CXX
13510
13511# Dependencies to place after the objects being linked to create a
13512# shared library.
13513postdep_objects=$lt_postdep_objects_CXX
13514
13515# Dependencies to place before the objects being linked to create a
13516# shared library.
13517predeps=$lt_predeps_CXX
13518
13519# Dependencies to place after the objects being linked to create a
13520# shared library.
13521postdeps=$lt_postdeps_CXX
13522
13523# The library search path used internally by the compiler when linking
13524# a shared library.
13525compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13526
13527# Method to check whether dependent libraries are shared objects.
13528deplibs_check_method=$lt_deplibs_check_method
13529
13530# Command to use when deplibs_check_method == file_magic.
13531file_magic_cmd=$lt_file_magic_cmd
13532
13533# Flag that allows shared libraries with undefined symbols to be built.
13534allow_undefined_flag=$lt_allow_undefined_flag_CXX
13535
13536# Flag that forces no undefined symbols.
13537no_undefined_flag=$lt_no_undefined_flag_CXX
13538
13539# Commands used to finish a libtool library installation in a directory.
13540finish_cmds=$lt_finish_cmds
13541
13542# Same as above, but a single script fragment to be evaled but not shown.
13543finish_eval=$lt_finish_eval
13544
13545# Take the output of nm and produce a listing of raw symbols and C names.
13546global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13547
13548# Transform the output of nm in a proper C declaration
13549global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13550
13551# Transform the output of nm in a C name address pair
13552global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13553
13554# This is the shared library runtime path variable.
13555runpath_var=$runpath_var
13556
13557# This is the shared library path variable.
13558shlibpath_var=$shlibpath_var
13559
13560# Is shlibpath searched before the hard-coded library search path?
13561shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13562
13563# How to hardcode a shared library path into an executable.
13564hardcode_action=$hardcode_action_CXX
13565
13566# Whether we should hardcode library paths into libraries.
13567hardcode_into_libs=$hardcode_into_libs
13568
13569# Flag to hardcode \$libdir into a binary during linking.
13570# This must work even if \$libdir does not exist.
13571hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13572
13573# If ld is used when linking, flag to hardcode \$libdir into
13574# a binary during linking. This must work even if \$libdir does
13575# not exist.
13576hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13577
13578# Whether we need a single -rpath flag with a separated argument.
13579hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13580
13581# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13582# resulting binary.
13583hardcode_direct=$hardcode_direct_CXX
13584
13585# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13586# resulting binary.
13587hardcode_minus_L=$hardcode_minus_L_CXX
13588
13589# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13590# the resulting binary.
13591hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13592
13593# Set to yes if building a shared library automatically hardcodes DIR into the library
13594# and all subsequent libraries and executables linked against it.
13595hardcode_automatic=$hardcode_automatic_CXX
13596
13597# Variables whose values should be saved in libtool wrapper scripts and
13598# restored at relink time.
13599variables_saved_for_relink="$variables_saved_for_relink"
13600
13601# Whether libtool must link a program against all its dependency libraries.
13602link_all_deplibs=$link_all_deplibs_CXX
13603
13604# Compile-time system search path for libraries
13605sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13606
13607# Run-time system search path for libraries
13608sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13609
13610# Fix the shell variable \$srcfile for the compiler.
13611fix_srcfile_path=$lt_fix_srcfile_path
13612
13613# Set to yes if exported symbols are required.
13614always_export_symbols=$always_export_symbols_CXX
13615
13616# The commands to list exported symbols.
13617export_symbols_cmds=$lt_export_symbols_cmds_CXX
13618
13619# The commands to extract the exported symbol list from a shared archive.
13620extract_expsyms_cmds=$lt_extract_expsyms_cmds
13621
13622# Symbols that should not be listed in the preloaded symbols.
13623exclude_expsyms=$lt_exclude_expsyms_CXX
13624
13625# Symbols that must always be exported.
13626include_expsyms=$lt_include_expsyms_CXX
13627
13628# ### END LIBTOOL TAG CONFIG: $tagname
13629
13630__EOF__
13631
13632
13633else
13634  # If there is no Makefile yet, we rely on a make rule to execute
13635  # `config.status --recheck' to rerun these tests and create the
13636  # libtool script then.
13637  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13638  if test -f "$ltmain_in"; then
13639    test -f Makefile && make "$ltmain"
13640  fi
13641fi
13642
13643
13644ac_ext=c
13645ac_cpp='$CPP $CPPFLAGS'
13646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13648ac_compiler_gnu=$ac_cv_c_compiler_gnu
13649
13650CC=$lt_save_CC
13651LDCXX=$LD
13652LD=$lt_save_LD
13653GCC=$lt_save_GCC
13654with_gnu_ldcxx=$with_gnu_ld
13655with_gnu_ld=$lt_save_with_gnu_ld
13656lt_cv_path_LDCXX=$lt_cv_path_LD
13657lt_cv_path_LD=$lt_save_path_LD
13658lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13659lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13660
13661	else
13662	  tagname=""
13663	fi
13664	;;
13665
13666      F77)
13667	if test -n "$F77" && test "X$F77" != "Xno"; then
13668
13669ac_ext=f
13670ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13671ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13672ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13673
13674
13675archive_cmds_need_lc_F77=no
13676allow_undefined_flag_F77=
13677always_export_symbols_F77=no
13678archive_expsym_cmds_F77=
13679export_dynamic_flag_spec_F77=
13680hardcode_direct_F77=no
13681hardcode_libdir_flag_spec_F77=
13682hardcode_libdir_flag_spec_ld_F77=
13683hardcode_libdir_separator_F77=
13684hardcode_minus_L_F77=no
13685hardcode_automatic_F77=no
13686module_cmds_F77=
13687module_expsym_cmds_F77=
13688link_all_deplibs_F77=unknown
13689old_archive_cmds_F77=$old_archive_cmds
13690no_undefined_flag_F77=
13691whole_archive_flag_spec_F77=
13692enable_shared_with_static_runtimes_F77=no
13693
13694# Source file extension for f77 test sources.
13695ac_ext=f
13696
13697# Object file extension for compiled f77 test sources.
13698objext=o
13699objext_F77=$objext
13700
13701# Code to be used in simple compile tests
13702lt_simple_compile_test_code="\
13703      subroutine t
13704      return
13705      end
13706"
13707
13708# Code to be used in simple link tests
13709lt_simple_link_test_code="\
13710      program t
13711      end
13712"
13713
13714# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13715
13716# If no C compiler was specified, use CC.
13717LTCC=${LTCC-"$CC"}
13718
13719# If no C compiler flags were specified, use CFLAGS.
13720LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13721
13722# Allow CC to be a program name with arguments.
13723compiler=$CC
13724
13725
13726# save warnings/boilerplate of simple test code
13727ac_outfile=conftest.$ac_objext
13728echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13729eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13730_lt_compiler_boilerplate=`cat conftest.err`
13731$rm conftest*
13732
13733ac_outfile=conftest.$ac_objext
13734echo "$lt_simple_link_test_code" >conftest.$ac_ext
13735eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13736_lt_linker_boilerplate=`cat conftest.err`
13737$rm conftest*
13738
13739
13740# Allow CC to be a program name with arguments.
13741lt_save_CC="$CC"
13742CC=${F77-"f77"}
13743compiler=$CC
13744compiler_F77=$CC
13745for cc_temp in $compiler""; do
13746  case $cc_temp in
13747    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13748    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13749    \-*) ;;
13750    *) break;;
13751  esac
13752done
13753cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13754
13755
13756{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13757echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13758{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13759echo "${ECHO_T}$can_build_shared" >&6; }
13760
13761{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13762echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13763test "$can_build_shared" = "no" && enable_shared=no
13764
13765# On AIX, shared libraries and static libraries use the same namespace, and
13766# are all built from PIC.
13767case $host_os in
13768aix3*)
13769  test "$enable_shared" = yes && enable_static=no
13770  if test -n "$RANLIB"; then
13771    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13772    postinstall_cmds='$RANLIB $lib'
13773  fi
13774  ;;
13775aix4* | aix5*)
13776  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13777    test "$enable_shared" = yes && enable_static=no
13778  fi
13779  ;;
13780esac
13781{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13782echo "${ECHO_T}$enable_shared" >&6; }
13783
13784{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13785echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13786# Make sure either enable_shared or enable_static is yes.
13787test "$enable_shared" = yes || enable_static=yes
13788{ echo "$as_me:$LINENO: result: $enable_static" >&5
13789echo "${ECHO_T}$enable_static" >&6; }
13790
13791GCC_F77="$G77"
13792LD_F77="$LD"
13793
13794lt_prog_compiler_wl_F77=
13795lt_prog_compiler_pic_F77=
13796lt_prog_compiler_static_F77=
13797
13798{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13799echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13800
13801  if test "$GCC" = yes; then
13802    lt_prog_compiler_wl_F77='-Wl,'
13803    lt_prog_compiler_static_F77='-static'
13804
13805    case $host_os in
13806      aix*)
13807      # All AIX code is PIC.
13808      if test "$host_cpu" = ia64; then
13809	# AIX 5 now supports IA64 processor
13810	lt_prog_compiler_static_F77='-Bstatic'
13811      fi
13812      ;;
13813
13814    amigaos*)
13815      # FIXME: we need at least 68020 code to build shared libraries, but
13816      # adding the `-m68020' flag to GCC prevents building anything better,
13817      # like `-m68040'.
13818      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13819      ;;
13820
13821    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13822      # PIC is the default for these OSes.
13823      ;;
13824
13825    mingw* | cygwin* | pw32* | os2*)
13826      # This hack is so that the source file can tell whether it is being
13827      # built for inclusion in a dll (and should export symbols for example).
13828      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13829      # (--disable-auto-import) libraries
13830      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13831      ;;
13832
13833    darwin* | rhapsody*)
13834      # PIC is the default on this platform
13835      # Common symbols not allowed in MH_DYLIB files
13836      lt_prog_compiler_pic_F77='-fno-common'
13837      ;;
13838
13839    interix[3-9]*)
13840      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13841      # Instead, we relocate shared libraries at runtime.
13842      ;;
13843
13844    msdosdjgpp*)
13845      # Just because we use GCC doesn't mean we suddenly get shared libraries
13846      # on systems that don't support them.
13847      lt_prog_compiler_can_build_shared_F77=no
13848      enable_shared=no
13849      ;;
13850
13851    sysv4*MP*)
13852      if test -d /usr/nec; then
13853	lt_prog_compiler_pic_F77=-Kconform_pic
13854      fi
13855      ;;
13856
13857    hpux*)
13858      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13859      # not for PA HP-UX.
13860      case $host_cpu in
13861      hppa*64*|ia64*)
13862	# +Z the default
13863	;;
13864      *)
13865	lt_prog_compiler_pic_F77='-fPIC'
13866	;;
13867      esac
13868      ;;
13869
13870    *)
13871      lt_prog_compiler_pic_F77='-fPIC'
13872      ;;
13873    esac
13874  else
13875    # PORTME Check for flag to pass linker flags through the system compiler.
13876    case $host_os in
13877    aix*)
13878      lt_prog_compiler_wl_F77='-Wl,'
13879      if test "$host_cpu" = ia64; then
13880	# AIX 5 now supports IA64 processor
13881	lt_prog_compiler_static_F77='-Bstatic'
13882      else
13883	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13884      fi
13885      ;;
13886      darwin*)
13887        # PIC is the default on this platform
13888        # Common symbols not allowed in MH_DYLIB files
13889       case $cc_basename in
13890         xlc*)
13891         lt_prog_compiler_pic_F77='-qnocommon'
13892         lt_prog_compiler_wl_F77='-Wl,'
13893         ;;
13894       esac
13895       ;;
13896
13897    mingw* | cygwin* | pw32* | os2*)
13898      # This hack is so that the source file can tell whether it is being
13899      # built for inclusion in a dll (and should export symbols for example).
13900      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13901      ;;
13902
13903    hpux9* | hpux10* | hpux11*)
13904      lt_prog_compiler_wl_F77='-Wl,'
13905      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13906      # not for PA HP-UX.
13907      case $host_cpu in
13908      hppa*64*|ia64*)
13909	# +Z the default
13910	;;
13911      *)
13912	lt_prog_compiler_pic_F77='+Z'
13913	;;
13914      esac
13915      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13916      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13917      ;;
13918
13919    irix5* | irix6* | nonstopux*)
13920      lt_prog_compiler_wl_F77='-Wl,'
13921      # PIC (with -KPIC) is the default.
13922      lt_prog_compiler_static_F77='-non_shared'
13923      ;;
13924
13925    newsos6)
13926      lt_prog_compiler_pic_F77='-KPIC'
13927      lt_prog_compiler_static_F77='-Bstatic'
13928      ;;
13929
13930    linux* | k*bsd*-gnu)
13931      case $cc_basename in
13932      icc* | ecc*)
13933	lt_prog_compiler_wl_F77='-Wl,'
13934	lt_prog_compiler_pic_F77='-KPIC'
13935	lt_prog_compiler_static_F77='-static'
13936        ;;
13937      pgcc* | pgf77* | pgf90* | pgf95*)
13938        # Portland Group compilers (*not* the Pentium gcc compiler,
13939	# which looks to be a dead project)
13940	lt_prog_compiler_wl_F77='-Wl,'
13941	lt_prog_compiler_pic_F77='-fpic'
13942	lt_prog_compiler_static_F77='-Bstatic'
13943        ;;
13944      ccc*)
13945        lt_prog_compiler_wl_F77='-Wl,'
13946        # All Alpha code is PIC.
13947        lt_prog_compiler_static_F77='-non_shared'
13948        ;;
13949      *)
13950        case `$CC -V 2>&1 | sed 5q` in
13951	*Sun\ C*)
13952	  # Sun C 5.9
13953	  lt_prog_compiler_pic_F77='-KPIC'
13954	  lt_prog_compiler_static_F77='-Bstatic'
13955	  lt_prog_compiler_wl_F77='-Wl,'
13956	  ;;
13957	*Sun\ F*)
13958	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13959	  lt_prog_compiler_pic_F77='-KPIC'
13960	  lt_prog_compiler_static_F77='-Bstatic'
13961	  lt_prog_compiler_wl_F77=''
13962	  ;;
13963	esac
13964	;;
13965      esac
13966      ;;
13967
13968    osf3* | osf4* | osf5*)
13969      lt_prog_compiler_wl_F77='-Wl,'
13970      # All OSF/1 code is PIC.
13971      lt_prog_compiler_static_F77='-non_shared'
13972      ;;
13973
13974    rdos*)
13975      lt_prog_compiler_static_F77='-non_shared'
13976      ;;
13977
13978    solaris*)
13979      lt_prog_compiler_pic_F77='-KPIC'
13980      lt_prog_compiler_static_F77='-Bstatic'
13981      case $cc_basename in
13982      f77* | f90* | f95*)
13983	lt_prog_compiler_wl_F77='-Qoption ld ';;
13984      *)
13985	lt_prog_compiler_wl_F77='-Wl,';;
13986      esac
13987      ;;
13988
13989    sunos4*)
13990      lt_prog_compiler_wl_F77='-Qoption ld '
13991      lt_prog_compiler_pic_F77='-PIC'
13992      lt_prog_compiler_static_F77='-Bstatic'
13993      ;;
13994
13995    sysv4 | sysv4.2uw2* | sysv4.3*)
13996      lt_prog_compiler_wl_F77='-Wl,'
13997      lt_prog_compiler_pic_F77='-KPIC'
13998      lt_prog_compiler_static_F77='-Bstatic'
13999      ;;
14000
14001    sysv4*MP*)
14002      if test -d /usr/nec ;then
14003	lt_prog_compiler_pic_F77='-Kconform_pic'
14004	lt_prog_compiler_static_F77='-Bstatic'
14005      fi
14006      ;;
14007
14008    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14009      lt_prog_compiler_wl_F77='-Wl,'
14010      lt_prog_compiler_pic_F77='-KPIC'
14011      lt_prog_compiler_static_F77='-Bstatic'
14012      ;;
14013
14014    unicos*)
14015      lt_prog_compiler_wl_F77='-Wl,'
14016      lt_prog_compiler_can_build_shared_F77=no
14017      ;;
14018
14019    uts4*)
14020      lt_prog_compiler_pic_F77='-pic'
14021      lt_prog_compiler_static_F77='-Bstatic'
14022      ;;
14023
14024    *)
14025      lt_prog_compiler_can_build_shared_F77=no
14026      ;;
14027    esac
14028  fi
14029
14030{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14031echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14032
14033#
14034# Check to make sure the PIC flag actually works.
14035#
14036if test -n "$lt_prog_compiler_pic_F77"; then
14037
14038{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14039echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14040if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14041  echo $ECHO_N "(cached) $ECHO_C" >&6
14042else
14043  lt_prog_compiler_pic_works_F77=no
14044  ac_outfile=conftest.$ac_objext
14045   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14046   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14047   # Insert the option either (1) after the last *FLAGS variable, or
14048   # (2) before a word containing "conftest.", or (3) at the end.
14049   # Note that $ac_compile itself does not contain backslashes and begins
14050   # with a dollar sign (not a hyphen), so the echo should work correctly.
14051   # The option is referenced via a variable to avoid confusing sed.
14052   lt_compile=`echo "$ac_compile" | $SED \
14053   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14054   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14055   -e 's:$: $lt_compiler_flag:'`
14056   (eval echo "\"\$as_me:14056: $lt_compile\"" >&5)
14057   (eval "$lt_compile" 2>conftest.err)
14058   ac_status=$?
14059   cat conftest.err >&5
14060   echo "$as_me:14060: \$? = $ac_status" >&5
14061   if (exit $ac_status) && test -s "$ac_outfile"; then
14062     # The compiler can only warn and ignore the option if not recognized
14063     # So say no if there are warnings other than the usual output.
14064     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14065     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14066     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14067       lt_prog_compiler_pic_works_F77=yes
14068     fi
14069   fi
14070   $rm conftest*
14071
14072fi
14073{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14074echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14075
14076if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14077    case $lt_prog_compiler_pic_F77 in
14078     "" | " "*) ;;
14079     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14080     esac
14081else
14082    lt_prog_compiler_pic_F77=
14083     lt_prog_compiler_can_build_shared_F77=no
14084fi
14085
14086fi
14087case $host_os in
14088  # For platforms which do not support PIC, -DPIC is meaningless:
14089  *djgpp*)
14090    lt_prog_compiler_pic_F77=
14091    ;;
14092  *)
14093    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14094    ;;
14095esac
14096
14097#
14098# Check to make sure the static flag actually works.
14099#
14100wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14101{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14102echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14103if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14104  echo $ECHO_N "(cached) $ECHO_C" >&6
14105else
14106  lt_prog_compiler_static_works_F77=no
14107   save_LDFLAGS="$LDFLAGS"
14108   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14109   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14110   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14111     # The linker can only warn and ignore the option if not recognized
14112     # So say no if there are warnings
14113     if test -s conftest.err; then
14114       # Append any errors to the config.log.
14115       cat conftest.err 1>&5
14116       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14117       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14118       if diff conftest.exp conftest.er2 >/dev/null; then
14119         lt_prog_compiler_static_works_F77=yes
14120       fi
14121     else
14122       lt_prog_compiler_static_works_F77=yes
14123     fi
14124   fi
14125   $rm conftest*
14126   LDFLAGS="$save_LDFLAGS"
14127
14128fi
14129{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14130echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14131
14132if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14133    :
14134else
14135    lt_prog_compiler_static_F77=
14136fi
14137
14138
14139{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14140echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14141if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14142  echo $ECHO_N "(cached) $ECHO_C" >&6
14143else
14144  lt_cv_prog_compiler_c_o_F77=no
14145   $rm -r conftest 2>/dev/null
14146   mkdir conftest
14147   cd conftest
14148   mkdir out
14149   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14150
14151   lt_compiler_flag="-o out/conftest2.$ac_objext"
14152   # Insert the option either (1) after the last *FLAGS variable, or
14153   # (2) before a word containing "conftest.", or (3) at the end.
14154   # Note that $ac_compile itself does not contain backslashes and begins
14155   # with a dollar sign (not a hyphen), so the echo should work correctly.
14156   lt_compile=`echo "$ac_compile" | $SED \
14157   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14158   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14159   -e 's:$: $lt_compiler_flag:'`
14160   (eval echo "\"\$as_me:14160: $lt_compile\"" >&5)
14161   (eval "$lt_compile" 2>out/conftest.err)
14162   ac_status=$?
14163   cat out/conftest.err >&5
14164   echo "$as_me:14164: \$? = $ac_status" >&5
14165   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14166   then
14167     # The compiler can only warn and ignore the option if not recognized
14168     # So say no if there are warnings
14169     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14170     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14171     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14172       lt_cv_prog_compiler_c_o_F77=yes
14173     fi
14174   fi
14175   chmod u+w . 2>&5
14176   $rm conftest*
14177   # SGI C++ compiler will create directory out/ii_files/ for
14178   # template instantiation
14179   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14180   $rm out/* && rmdir out
14181   cd ..
14182   rmdir conftest
14183   $rm conftest*
14184
14185fi
14186{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14187echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14188
14189
14190hard_links="nottested"
14191if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14192  # do not overwrite the value of need_locks provided by the user
14193  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14194echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14195  hard_links=yes
14196  $rm conftest*
14197  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14198  touch conftest.a
14199  ln conftest.a conftest.b 2>&5 || hard_links=no
14200  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14201  { echo "$as_me:$LINENO: result: $hard_links" >&5
14202echo "${ECHO_T}$hard_links" >&6; }
14203  if test "$hard_links" = no; then
14204    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14205echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14206    need_locks=warn
14207  fi
14208else
14209  need_locks=no
14210fi
14211
14212{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14213echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14214
14215  runpath_var=
14216  allow_undefined_flag_F77=
14217  enable_shared_with_static_runtimes_F77=no
14218  archive_cmds_F77=
14219  archive_expsym_cmds_F77=
14220  old_archive_From_new_cmds_F77=
14221  old_archive_from_expsyms_cmds_F77=
14222  export_dynamic_flag_spec_F77=
14223  whole_archive_flag_spec_F77=
14224  thread_safe_flag_spec_F77=
14225  hardcode_libdir_flag_spec_F77=
14226  hardcode_libdir_flag_spec_ld_F77=
14227  hardcode_libdir_separator_F77=
14228  hardcode_direct_F77=no
14229  hardcode_minus_L_F77=no
14230  hardcode_shlibpath_var_F77=unsupported
14231  link_all_deplibs_F77=unknown
14232  hardcode_automatic_F77=no
14233  module_cmds_F77=
14234  module_expsym_cmds_F77=
14235  always_export_symbols_F77=no
14236  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14237  # include_expsyms should be a list of space-separated symbols to be *always*
14238  # included in the symbol list
14239  include_expsyms_F77=
14240  # exclude_expsyms can be an extended regexp of symbols to exclude
14241  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14242  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14243  # as well as any symbol that contains `d'.
14244  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14245  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14246  # platforms (ab)use it in PIC code, but their linkers get confused if
14247  # the symbol is explicitly referenced.  Since portable code cannot
14248  # rely on this symbol name, it's probably fine to never include it in
14249  # preloaded symbol tables.
14250  extract_expsyms_cmds=
14251  # Just being paranoid about ensuring that cc_basename is set.
14252  for cc_temp in $compiler""; do
14253  case $cc_temp in
14254    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14255    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14256    \-*) ;;
14257    *) break;;
14258  esac
14259done
14260cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14261
14262  case $host_os in
14263  cygwin* | mingw* | pw32*)
14264    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14265    # When not using gcc, we currently assume that we are using
14266    # Microsoft Visual C++.
14267    if test "$GCC" != yes; then
14268      with_gnu_ld=no
14269    fi
14270    ;;
14271  interix*)
14272    # we just hope/assume this is gcc and not c89 (= MSVC++)
14273    with_gnu_ld=yes
14274    ;;
14275  openbsd*)
14276    with_gnu_ld=no
14277    ;;
14278  esac
14279
14280  ld_shlibs_F77=yes
14281  if test "$with_gnu_ld" = yes; then
14282    # If archive_cmds runs LD, not CC, wlarc should be empty
14283    wlarc='${wl}'
14284
14285    # Set some defaults for GNU ld with shared library support. These
14286    # are reset later if shared libraries are not supported. Putting them
14287    # here allows them to be overridden if necessary.
14288    runpath_var=LD_RUN_PATH
14289    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14290    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14291    # ancient GNU ld didn't support --whole-archive et. al.
14292    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14293	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14294      else
14295  	whole_archive_flag_spec_F77=
14296    fi
14297    supports_anon_versioning=no
14298    case `$LD -v 2>/dev/null` in
14299      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14300      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14301      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14302      *\ 2.11.*) ;; # other 2.11 versions
14303      *) supports_anon_versioning=yes ;;
14304    esac
14305
14306    # See if GNU ld supports shared libraries.
14307    case $host_os in
14308    aix3* | aix4* | aix5*)
14309      # On AIX/PPC, the GNU linker is very broken
14310      if test "$host_cpu" != ia64; then
14311	ld_shlibs_F77=no
14312	cat <<EOF 1>&2
14313
14314*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14315*** to be unable to reliably create shared libraries on AIX.
14316*** Therefore, libtool is disabling shared libraries support.  If you
14317*** really care for shared libraries, you may want to modify your PATH
14318*** so that a non-GNU linker is found, and then restart.
14319
14320EOF
14321      fi
14322      ;;
14323
14324    amigaos*)
14325      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)'
14326      hardcode_libdir_flag_spec_F77='-L$libdir'
14327      hardcode_minus_L_F77=yes
14328
14329      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14330      # that the semantics of dynamic libraries on AmigaOS, at least up
14331      # to version 4, is to share data among multiple programs linked
14332      # with the same dynamic library.  Since this doesn't match the
14333      # behavior of shared libraries on other platforms, we can't use
14334      # them.
14335      ld_shlibs_F77=no
14336      ;;
14337
14338    beos*)
14339      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14340	allow_undefined_flag_F77=unsupported
14341	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14342	# support --undefined.  This deserves some investigation.  FIXME
14343	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14344      else
14345	ld_shlibs_F77=no
14346      fi
14347      ;;
14348
14349    cygwin* | mingw* | pw32*)
14350      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14351      # as there is no search path for DLLs.
14352      hardcode_libdir_flag_spec_F77='-L$libdir'
14353      allow_undefined_flag_F77=unsupported
14354      always_export_symbols_F77=no
14355      enable_shared_with_static_runtimes_F77=yes
14356      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14357
14358      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14359        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14360	# If the export-symbols file already is a .def file (1st line
14361	# is EXPORTS), use it as is; otherwise, prepend...
14362	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14363	  cp $export_symbols $output_objdir/$soname.def;
14364	else
14365	  echo EXPORTS > $output_objdir/$soname.def;
14366	  cat $export_symbols >> $output_objdir/$soname.def;
14367	fi~
14368	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14369      else
14370	ld_shlibs_F77=no
14371      fi
14372      ;;
14373
14374    interix[3-9]*)
14375      hardcode_direct_F77=no
14376      hardcode_shlibpath_var_F77=no
14377      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14378      export_dynamic_flag_spec_F77='${wl}-E'
14379      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14380      # Instead, shared libraries are loaded at an image base (0x10000000 by
14381      # default) and relocated if they conflict, which is a slow very memory
14382      # consuming and fragmenting process.  To avoid this, we pick a random,
14383      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14384      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14385      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14386      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14387      ;;
14388
14389    gnu* | linux* | k*bsd*-gnu)
14390      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14391	tmp_addflag=
14392	case $cc_basename,$host_cpu in
14393	pgcc*)				# Portland Group C compiler
14394	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14395	  tmp_addflag=' $pic_flag'
14396	  ;;
14397	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14398	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14399	  tmp_addflag=' $pic_flag -Mnomain' ;;
14400	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14401	  tmp_addflag=' -i_dynamic' ;;
14402	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14403	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14404	ifc* | ifort*)			# Intel Fortran compiler
14405	  tmp_addflag=' -nofor_main' ;;
14406	esac
14407	case `$CC -V 2>&1 | sed 5q` in
14408	*Sun\ C*)			# Sun C 5.9
14409	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14410	  tmp_sharedflag='-G' ;;
14411	*Sun\ F*)			# Sun Fortran 8.3
14412	  tmp_sharedflag='-G' ;;
14413	*)
14414	  tmp_sharedflag='-shared' ;;
14415	esac
14416	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14417
14418	if test $supports_anon_versioning = yes; then
14419	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14420  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14421  $echo "local: *; };" >> $output_objdir/$libname.ver~
14422	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14423	fi
14424      else
14425	ld_shlibs_F77=no
14426      fi
14427      ;;
14428
14429    netbsd*)
14430      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14431	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14432	wlarc=
14433      else
14434	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14435	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14436      fi
14437      ;;
14438
14439    solaris*)
14440      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14441	ld_shlibs_F77=no
14442	cat <<EOF 1>&2
14443
14444*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14445*** create shared libraries on Solaris systems.  Therefore, libtool
14446*** is disabling shared libraries support.  We urge you to upgrade GNU
14447*** binutils to release 2.9.1 or newer.  Another option is to modify
14448*** your PATH or compiler configuration so that the native linker is
14449*** used, and then restart.
14450
14451EOF
14452      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14453	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14454	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14455      else
14456	ld_shlibs_F77=no
14457      fi
14458      ;;
14459
14460    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14461      case `$LD -v 2>&1` in
14462        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14463	ld_shlibs_F77=no
14464	cat <<_LT_EOF 1>&2
14465
14466*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14467*** reliably create shared libraries on SCO systems.  Therefore, libtool
14468*** is disabling shared libraries support.  We urge you to upgrade GNU
14469*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14470*** your PATH or compiler configuration so that the native linker is
14471*** used, and then restart.
14472
14473_LT_EOF
14474	;;
14475	*)
14476	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14477	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14478	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14479	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14480	  else
14481	    ld_shlibs_F77=no
14482	  fi
14483	;;
14484      esac
14485      ;;
14486
14487    sunos4*)
14488      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14489      wlarc=
14490      hardcode_direct_F77=yes
14491      hardcode_shlibpath_var_F77=no
14492      ;;
14493
14494    *)
14495      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14496	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14497	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14498      else
14499	ld_shlibs_F77=no
14500      fi
14501      ;;
14502    esac
14503
14504    if test "$ld_shlibs_F77" = no; then
14505      runpath_var=
14506      hardcode_libdir_flag_spec_F77=
14507      export_dynamic_flag_spec_F77=
14508      whole_archive_flag_spec_F77=
14509    fi
14510  else
14511    # PORTME fill in a description of your system's linker (not GNU ld)
14512    case $host_os in
14513    aix3*)
14514      allow_undefined_flag_F77=unsupported
14515      always_export_symbols_F77=yes
14516      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'
14517      # Note: this linker hardcodes the directories in LIBPATH if there
14518      # are no directories specified by -L.
14519      hardcode_minus_L_F77=yes
14520      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14521	# Neither direct hardcoding nor static linking is supported with a
14522	# broken collect2.
14523	hardcode_direct_F77=unsupported
14524      fi
14525      ;;
14526
14527    aix4* | aix5*)
14528      if test "$host_cpu" = ia64; then
14529	# On IA64, the linker does run time linking by default, so we don't
14530	# have to do anything special.
14531	aix_use_runtimelinking=no
14532	exp_sym_flag='-Bexport'
14533	no_entry_flag=""
14534      else
14535	# If we're using GNU nm, then we don't want the "-C" option.
14536	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14537	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14538	  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'
14539	else
14540	  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'
14541	fi
14542	aix_use_runtimelinking=no
14543
14544	# Test if we are trying to use run time linking or normal
14545	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14546	# need to do runtime linking.
14547	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14548	  for ld_flag in $LDFLAGS; do
14549  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14550  	    aix_use_runtimelinking=yes
14551  	    break
14552  	  fi
14553	  done
14554	  ;;
14555	esac
14556
14557	exp_sym_flag='-bexport'
14558	no_entry_flag='-bnoentry'
14559      fi
14560
14561      # When large executables or shared objects are built, AIX ld can
14562      # have problems creating the table of contents.  If linking a library
14563      # or program results in "error TOC overflow" add -mminimal-toc to
14564      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14565      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14566
14567      archive_cmds_F77=''
14568      hardcode_direct_F77=yes
14569      hardcode_libdir_separator_F77=':'
14570      link_all_deplibs_F77=yes
14571
14572      if test "$GCC" = yes; then
14573	case $host_os in aix4.[012]|aix4.[012].*)
14574	# We only want to do this on AIX 4.2 and lower, the check
14575	# below for broken collect2 doesn't work under 4.3+
14576	  collect2name=`${CC} -print-prog-name=collect2`
14577	  if test -f "$collect2name" && \
14578  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14579	  then
14580  	  # We have reworked collect2
14581  	  :
14582	  else
14583  	  # We have old collect2
14584  	  hardcode_direct_F77=unsupported
14585  	  # It fails to find uninstalled libraries when the uninstalled
14586  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14587  	  # to unsupported forces relinking
14588  	  hardcode_minus_L_F77=yes
14589  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14590  	  hardcode_libdir_separator_F77=
14591	  fi
14592	  ;;
14593	esac
14594	shared_flag='-shared'
14595	if test "$aix_use_runtimelinking" = yes; then
14596	  shared_flag="$shared_flag "'${wl}-G'
14597	fi
14598      else
14599	# not using gcc
14600	if test "$host_cpu" = ia64; then
14601  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14602  	# chokes on -Wl,-G. The following line is correct:
14603	  shared_flag='-G'
14604	else
14605	  if test "$aix_use_runtimelinking" = yes; then
14606	    shared_flag='${wl}-G'
14607	  else
14608	    shared_flag='${wl}-bM:SRE'
14609	  fi
14610	fi
14611      fi
14612
14613      # It seems that -bexpall does not export symbols beginning with
14614      # underscore (_), so it is better to generate a list of symbols to export.
14615      always_export_symbols_F77=yes
14616      if test "$aix_use_runtimelinking" = yes; then
14617	# Warning - without using the other runtime loading flags (-brtl),
14618	# -berok will link without error, but may produce a broken library.
14619	allow_undefined_flag_F77='-berok'
14620       # Determine the default libpath from the value encoded in an empty executable.
14621       cat >conftest.$ac_ext <<_ACEOF
14622      program main
14623
14624      end
14625_ACEOF
14626rm -f conftest.$ac_objext conftest$ac_exeext
14627if { (ac_try="$ac_link"
14628case "(($ac_try" in
14629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630  *) ac_try_echo=$ac_try;;
14631esac
14632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633  (eval "$ac_link") 2>conftest.er1
14634  ac_status=$?
14635  grep -v '^ *+' conftest.er1 >conftest.err
14636  rm -f conftest.er1
14637  cat conftest.err >&5
14638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639  (exit $ac_status); } && {
14640	 test -z "$ac_f77_werror_flag" ||
14641	 test ! -s conftest.err
14642       } && test -s conftest$ac_exeext &&
14643       $as_test_x conftest$ac_exeext; then
14644
14645lt_aix_libpath_sed='
14646    /Import File Strings/,/^$/ {
14647	/^0/ {
14648	    s/^0  *\(.*\)$/\1/
14649	    p
14650	}
14651    }'
14652aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14653# Check for a 64-bit object if we didn't find anything.
14654if test -z "$aix_libpath"; then
14655  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14656fi
14657else
14658  echo "$as_me: failed program was:" >&5
14659sed 's/^/| /' conftest.$ac_ext >&5
14660
14661
14662fi
14663
14664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14665      conftest$ac_exeext conftest.$ac_ext
14666if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14667
14668       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14669	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14670       else
14671	if test "$host_cpu" = ia64; then
14672	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14673	  allow_undefined_flag_F77="-z nodefs"
14674	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14675	else
14676	 # Determine the default libpath from the value encoded in an empty executable.
14677	 cat >conftest.$ac_ext <<_ACEOF
14678      program main
14679
14680      end
14681_ACEOF
14682rm -f conftest.$ac_objext conftest$ac_exeext
14683if { (ac_try="$ac_link"
14684case "(($ac_try" in
14685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686  *) ac_try_echo=$ac_try;;
14687esac
14688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689  (eval "$ac_link") 2>conftest.er1
14690  ac_status=$?
14691  grep -v '^ *+' conftest.er1 >conftest.err
14692  rm -f conftest.er1
14693  cat conftest.err >&5
14694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695  (exit $ac_status); } && {
14696	 test -z "$ac_f77_werror_flag" ||
14697	 test ! -s conftest.err
14698       } && test -s conftest$ac_exeext &&
14699       $as_test_x conftest$ac_exeext; then
14700
14701lt_aix_libpath_sed='
14702    /Import File Strings/,/^$/ {
14703	/^0/ {
14704	    s/^0  *\(.*\)$/\1/
14705	    p
14706	}
14707    }'
14708aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14709# Check for a 64-bit object if we didn't find anything.
14710if test -z "$aix_libpath"; then
14711  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14712fi
14713else
14714  echo "$as_me: failed program was:" >&5
14715sed 's/^/| /' conftest.$ac_ext >&5
14716
14717
14718fi
14719
14720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14721      conftest$ac_exeext conftest.$ac_ext
14722if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14723
14724	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14725	  # Warning - without using the other run time loading flags,
14726	  # -berok will link without error, but may produce a broken library.
14727	  no_undefined_flag_F77=' ${wl}-bernotok'
14728	  allow_undefined_flag_F77=' ${wl}-berok'
14729	  # Exported symbols can be pulled into shared objects from archives
14730	  whole_archive_flag_spec_F77='$convenience'
14731	  archive_cmds_need_lc_F77=yes
14732	  # This is similar to how AIX traditionally builds its shared libraries.
14733	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14734	fi
14735      fi
14736      ;;
14737
14738    amigaos*)
14739      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)'
14740      hardcode_libdir_flag_spec_F77='-L$libdir'
14741      hardcode_minus_L_F77=yes
14742      # see comment about different semantics on the GNU ld section
14743      ld_shlibs_F77=no
14744      ;;
14745
14746    bsdi[45]*)
14747      export_dynamic_flag_spec_F77=-rdynamic
14748      ;;
14749
14750    cygwin* | mingw* | pw32*)
14751      # When not using gcc, we currently assume that we are using
14752      # Microsoft Visual C++.
14753      # hardcode_libdir_flag_spec is actually meaningless, as there is
14754      # no search path for DLLs.
14755      hardcode_libdir_flag_spec_F77=' '
14756      allow_undefined_flag_F77=unsupported
14757      # Tell ltmain to make .lib files, not .a files.
14758      libext=lib
14759      # Tell ltmain to make .dll files, not .so files.
14760      shrext_cmds=".dll"
14761      # FIXME: Setting linknames here is a bad hack.
14762      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14763      # The linker will automatically build a .lib file if we build a DLL.
14764      old_archive_From_new_cmds_F77='true'
14765      # FIXME: Should let the user specify the lib program.
14766      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14767      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14768      enable_shared_with_static_runtimes_F77=yes
14769      ;;
14770
14771    darwin* | rhapsody*)
14772      case $host_os in
14773        rhapsody* | darwin1.[012])
14774         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14775         ;;
14776       *) # Darwin 1.3 on
14777         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14778           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14779         else
14780           case ${MACOSX_DEPLOYMENT_TARGET} in
14781             10.[012])
14782               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14783               ;;
14784             10.*)
14785               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14786               ;;
14787           esac
14788         fi
14789         ;;
14790      esac
14791      archive_cmds_need_lc_F77=no
14792      hardcode_direct_F77=no
14793      hardcode_automatic_F77=yes
14794      hardcode_shlibpath_var_F77=unsupported
14795      whole_archive_flag_spec_F77=''
14796      link_all_deplibs_F77=yes
14797    if test "$GCC" = yes ; then
14798    	output_verbose_link_cmd='echo'
14799        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14800      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14801      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14802      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14803      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14804    else
14805      case $cc_basename in
14806        xlc*)
14807         output_verbose_link_cmd='echo'
14808         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14809         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14810          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14811         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14812          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14813          ;;
14814       *)
14815         ld_shlibs_F77=no
14816          ;;
14817      esac
14818    fi
14819      ;;
14820
14821    dgux*)
14822      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14823      hardcode_libdir_flag_spec_F77='-L$libdir'
14824      hardcode_shlibpath_var_F77=no
14825      ;;
14826
14827    freebsd1*)
14828      ld_shlibs_F77=no
14829      ;;
14830
14831    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14832    # support.  Future versions do this automatically, but an explicit c++rt0.o
14833    # does not break anything, and helps significantly (at the cost of a little
14834    # extra space).
14835    freebsd2.2*)
14836      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14837      hardcode_libdir_flag_spec_F77='-R$libdir'
14838      hardcode_direct_F77=yes
14839      hardcode_shlibpath_var_F77=no
14840      ;;
14841
14842    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14843    freebsd2*)
14844      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14845      hardcode_direct_F77=yes
14846      hardcode_minus_L_F77=yes
14847      hardcode_shlibpath_var_F77=no
14848      ;;
14849
14850    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14851    freebsd* | dragonfly*)
14852      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14853      hardcode_libdir_flag_spec_F77='-R$libdir'
14854      hardcode_direct_F77=yes
14855      hardcode_shlibpath_var_F77=no
14856      ;;
14857
14858    hpux9*)
14859      if test "$GCC" = yes; then
14860	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14861      else
14862	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'
14863      fi
14864      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14865      hardcode_libdir_separator_F77=:
14866      hardcode_direct_F77=yes
14867
14868      # hardcode_minus_L: Not really in the search PATH,
14869      # but as the default location of the library.
14870      hardcode_minus_L_F77=yes
14871      export_dynamic_flag_spec_F77='${wl}-E'
14872      ;;
14873
14874    hpux10*)
14875      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14876	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14877      else
14878	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14879      fi
14880      if test "$with_gnu_ld" = no; then
14881	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14882	hardcode_libdir_separator_F77=:
14883
14884	hardcode_direct_F77=yes
14885	export_dynamic_flag_spec_F77='${wl}-E'
14886
14887	# hardcode_minus_L: Not really in the search PATH,
14888	# but as the default location of the library.
14889	hardcode_minus_L_F77=yes
14890      fi
14891      ;;
14892
14893    hpux11*)
14894      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14895	case $host_cpu in
14896	hppa*64*)
14897	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14898	  ;;
14899	ia64*)
14900	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14901	  ;;
14902	*)
14903	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14904	  ;;
14905	esac
14906      else
14907	case $host_cpu in
14908	hppa*64*)
14909	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14910	  ;;
14911	ia64*)
14912	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14913	  ;;
14914	*)
14915	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14916	  ;;
14917	esac
14918      fi
14919      if test "$with_gnu_ld" = no; then
14920	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14921	hardcode_libdir_separator_F77=:
14922
14923	case $host_cpu in
14924	hppa*64*|ia64*)
14925	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14926	  hardcode_direct_F77=no
14927	  hardcode_shlibpath_var_F77=no
14928	  ;;
14929	*)
14930	  hardcode_direct_F77=yes
14931	  export_dynamic_flag_spec_F77='${wl}-E'
14932
14933	  # hardcode_minus_L: Not really in the search PATH,
14934	  # but as the default location of the library.
14935	  hardcode_minus_L_F77=yes
14936	  ;;
14937	esac
14938      fi
14939      ;;
14940
14941    irix5* | irix6* | nonstopux*)
14942      if test "$GCC" = yes; then
14943	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14944      else
14945	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'
14946	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14947      fi
14948      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14949      hardcode_libdir_separator_F77=:
14950      link_all_deplibs_F77=yes
14951      ;;
14952
14953    netbsd*)
14954      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14955	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14956      else
14957	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14958      fi
14959      hardcode_libdir_flag_spec_F77='-R$libdir'
14960      hardcode_direct_F77=yes
14961      hardcode_shlibpath_var_F77=no
14962      ;;
14963
14964    newsos6)
14965      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14966      hardcode_direct_F77=yes
14967      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14968      hardcode_libdir_separator_F77=:
14969      hardcode_shlibpath_var_F77=no
14970      ;;
14971
14972    openbsd*)
14973      if test -f /usr/libexec/ld.so; then
14974	hardcode_direct_F77=yes
14975	hardcode_shlibpath_var_F77=no
14976	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14977	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14978	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14979	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14980	  export_dynamic_flag_spec_F77='${wl}-E'
14981	else
14982	  case $host_os in
14983	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14984	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14985	     hardcode_libdir_flag_spec_F77='-R$libdir'
14986	     ;;
14987	   *)
14988	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14989	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14990	     ;;
14991	  esac
14992        fi
14993      else
14994	ld_shlibs_F77=no
14995      fi
14996      ;;
14997
14998    os2*)
14999      hardcode_libdir_flag_spec_F77='-L$libdir'
15000      hardcode_minus_L_F77=yes
15001      allow_undefined_flag_F77=unsupported
15002      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15003      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15004      ;;
15005
15006    osf3*)
15007      if test "$GCC" = yes; then
15008	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15009	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15010      else
15011	allow_undefined_flag_F77=' -expect_unresolved \*'
15012	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'
15013      fi
15014      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15015      hardcode_libdir_separator_F77=:
15016      ;;
15017
15018    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15019      if test "$GCC" = yes; then
15020	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15021	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15022	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15023      else
15024	allow_undefined_flag_F77=' -expect_unresolved \*'
15025	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'
15026	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~
15027	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15028
15029	# Both c and cxx compiler support -rpath directly
15030	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15031      fi
15032      hardcode_libdir_separator_F77=:
15033      ;;
15034
15035    solaris*)
15036      no_undefined_flag_F77=' -z text'
15037      if test "$GCC" = yes; then
15038	wlarc='${wl}'
15039	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15040	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15041	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15042      else
15043	wlarc=''
15044	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15045	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15046  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15047      fi
15048      hardcode_libdir_flag_spec_F77='-R$libdir'
15049      hardcode_shlibpath_var_F77=no
15050      case $host_os in
15051      solaris2.[0-5] | solaris2.[0-5].*) ;;
15052      *)
15053	# The compiler driver will combine and reorder linker options,
15054	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15055	# but is careful enough not to reorder.
15056 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15057	if test "$GCC" = yes; then
15058	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15059	else
15060	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15061	fi
15062	;;
15063      esac
15064      link_all_deplibs_F77=yes
15065      ;;
15066
15067    sunos4*)
15068      if test "x$host_vendor" = xsequent; then
15069	# Use $CC to link under sequent, because it throws in some extra .o
15070	# files that make .init and .fini sections work.
15071	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15072      else
15073	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15074      fi
15075      hardcode_libdir_flag_spec_F77='-L$libdir'
15076      hardcode_direct_F77=yes
15077      hardcode_minus_L_F77=yes
15078      hardcode_shlibpath_var_F77=no
15079      ;;
15080
15081    sysv4)
15082      case $host_vendor in
15083	sni)
15084	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15085	  hardcode_direct_F77=yes # is this really true???
15086	;;
15087	siemens)
15088	  ## LD is ld it makes a PLAMLIB
15089	  ## CC just makes a GrossModule.
15090	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15091	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15092	  hardcode_direct_F77=no
15093        ;;
15094	motorola)
15095	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15096	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15097	;;
15098      esac
15099      runpath_var='LD_RUN_PATH'
15100      hardcode_shlibpath_var_F77=no
15101      ;;
15102
15103    sysv4.3*)
15104      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15105      hardcode_shlibpath_var_F77=no
15106      export_dynamic_flag_spec_F77='-Bexport'
15107      ;;
15108
15109    sysv4*MP*)
15110      if test -d /usr/nec; then
15111	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15112	hardcode_shlibpath_var_F77=no
15113	runpath_var=LD_RUN_PATH
15114	hardcode_runpath_var=yes
15115	ld_shlibs_F77=yes
15116      fi
15117      ;;
15118
15119    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15120      no_undefined_flag_F77='${wl}-z,text'
15121      archive_cmds_need_lc_F77=no
15122      hardcode_shlibpath_var_F77=no
15123      runpath_var='LD_RUN_PATH'
15124
15125      if test "$GCC" = yes; then
15126	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15127	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15128      else
15129	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15130	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15131      fi
15132      ;;
15133
15134    sysv5* | sco3.2v5* | sco5v6*)
15135      # Note: We can NOT use -z defs as we might desire, because we do not
15136      # link with -lc, and that would cause any symbols used from libc to
15137      # always be unresolved, which means just about no library would
15138      # ever link correctly.  If we're not using GNU ld we use -z text
15139      # though, which does catch some bad symbols but isn't as heavy-handed
15140      # as -z defs.
15141      no_undefined_flag_F77='${wl}-z,text'
15142      allow_undefined_flag_F77='${wl}-z,nodefs'
15143      archive_cmds_need_lc_F77=no
15144      hardcode_shlibpath_var_F77=no
15145      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15146      hardcode_libdir_separator_F77=':'
15147      link_all_deplibs_F77=yes
15148      export_dynamic_flag_spec_F77='${wl}-Bexport'
15149      runpath_var='LD_RUN_PATH'
15150
15151      if test "$GCC" = yes; then
15152	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15153	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15154      else
15155	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15156	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15157      fi
15158      ;;
15159
15160    uts4*)
15161      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15162      hardcode_libdir_flag_spec_F77='-L$libdir'
15163      hardcode_shlibpath_var_F77=no
15164      ;;
15165
15166    *)
15167      ld_shlibs_F77=no
15168      ;;
15169    esac
15170  fi
15171
15172{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15173echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15174test "$ld_shlibs_F77" = no && can_build_shared=no
15175
15176#
15177# Do we need to explicitly link libc?
15178#
15179case "x$archive_cmds_need_lc_F77" in
15180x|xyes)
15181  # Assume -lc should be added
15182  archive_cmds_need_lc_F77=yes
15183
15184  if test "$enable_shared" = yes && test "$GCC" = yes; then
15185    case $archive_cmds_F77 in
15186    *'~'*)
15187      # FIXME: we may have to deal with multi-command sequences.
15188      ;;
15189    '$CC '*)
15190      # Test whether the compiler implicitly links with -lc since on some
15191      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15192      # to ld, don't add -lc before -lgcc.
15193      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15194echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15195      $rm conftest*
15196      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15197
15198      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15199  (eval $ac_compile) 2>&5
15200  ac_status=$?
15201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202  (exit $ac_status); } 2>conftest.err; then
15203        soname=conftest
15204        lib=conftest
15205        libobjs=conftest.$ac_objext
15206        deplibs=
15207        wl=$lt_prog_compiler_wl_F77
15208	pic_flag=$lt_prog_compiler_pic_F77
15209        compiler_flags=-v
15210        linker_flags=-v
15211        verstring=
15212        output_objdir=.
15213        libname=conftest
15214        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15215        allow_undefined_flag_F77=
15216        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15217  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15218  ac_status=$?
15219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220  (exit $ac_status); }
15221        then
15222	  archive_cmds_need_lc_F77=no
15223        else
15224	  archive_cmds_need_lc_F77=yes
15225        fi
15226        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15227      else
15228        cat conftest.err 1>&5
15229      fi
15230      $rm conftest*
15231      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15232echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15233      ;;
15234    esac
15235  fi
15236  ;;
15237esac
15238
15239{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15240echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15241library_names_spec=
15242libname_spec='lib$name'
15243soname_spec=
15244shrext_cmds=".so"
15245postinstall_cmds=
15246postuninstall_cmds=
15247finish_cmds=
15248finish_eval=
15249shlibpath_var=
15250shlibpath_overrides_runpath=unknown
15251version_type=none
15252dynamic_linker="$host_os ld.so"
15253sys_lib_dlsearch_path_spec="/lib /usr/lib"
15254
15255need_lib_prefix=unknown
15256hardcode_into_libs=no
15257
15258# when you set need_version to no, make sure it does not cause -set_version
15259# flags to be left without arguments
15260need_version=unknown
15261
15262case $host_os in
15263aix3*)
15264  version_type=linux
15265  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15266  shlibpath_var=LIBPATH
15267
15268  # AIX 3 has no versioning support, so we append a major version to the name.
15269  soname_spec='${libname}${release}${shared_ext}$major'
15270  ;;
15271
15272aix4* | aix5*)
15273  version_type=linux
15274  need_lib_prefix=no
15275  need_version=no
15276  hardcode_into_libs=yes
15277  if test "$host_cpu" = ia64; then
15278    # AIX 5 supports IA64
15279    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15280    shlibpath_var=LD_LIBRARY_PATH
15281  else
15282    # With GCC up to 2.95.x, collect2 would create an import file
15283    # for dependence libraries.  The import file would start with
15284    # the line `#! .'.  This would cause the generated library to
15285    # depend on `.', always an invalid library.  This was fixed in
15286    # development snapshots of GCC prior to 3.0.
15287    case $host_os in
15288      aix4 | aix4.[01] | aix4.[01].*)
15289      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15290	   echo ' yes '
15291	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15292	:
15293      else
15294	can_build_shared=no
15295      fi
15296      ;;
15297    esac
15298    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15299    # soname into executable. Probably we can add versioning support to
15300    # collect2, so additional links can be useful in future.
15301    if test "$aix_use_runtimelinking" = yes; then
15302      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15303      # instead of lib<name>.a to let people know that these are not
15304      # typical AIX shared libraries.
15305      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15306    else
15307      # We preserve .a as extension for shared libraries through AIX4.2
15308      # and later when we are not doing run time linking.
15309      library_names_spec='${libname}${release}.a $libname.a'
15310      soname_spec='${libname}${release}${shared_ext}$major'
15311    fi
15312    shlibpath_var=LIBPATH
15313  fi
15314  ;;
15315
15316amigaos*)
15317  library_names_spec='$libname.ixlibrary $libname.a'
15318  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15319  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'
15320  ;;
15321
15322beos*)
15323  library_names_spec='${libname}${shared_ext}'
15324  dynamic_linker="$host_os ld.so"
15325  shlibpath_var=LIBRARY_PATH
15326  ;;
15327
15328bsdi[45]*)
15329  version_type=linux
15330  need_version=no
15331  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15332  soname_spec='${libname}${release}${shared_ext}$major'
15333  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15334  shlibpath_var=LD_LIBRARY_PATH
15335  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15336  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15337  # the default ld.so.conf also contains /usr/contrib/lib and
15338  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15339  # libtool to hard-code these into programs
15340  ;;
15341
15342cygwin* | mingw* | pw32*)
15343  version_type=windows
15344  shrext_cmds=".dll"
15345  need_version=no
15346  need_lib_prefix=no
15347
15348  case $GCC,$host_os in
15349  yes,cygwin* | yes,mingw* | yes,pw32*)
15350    library_names_spec='$libname.dll.a'
15351    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15352    postinstall_cmds='base_file=`basename \${file}`~
15353      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15354      dldir=$destdir/`dirname \$dlpath`~
15355      test -d \$dldir || mkdir -p \$dldir~
15356      $install_prog $dir/$dlname \$dldir/$dlname~
15357      chmod a+x \$dldir/$dlname'
15358    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15359      dlpath=$dir/\$dldll~
15360       $rm \$dlpath'
15361    shlibpath_overrides_runpath=yes
15362
15363    case $host_os in
15364    cygwin*)
15365      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15366      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15367      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15368      ;;
15369    mingw*)
15370      # MinGW DLLs use traditional 'lib' prefix
15371      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15372      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15373      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15374        # It is most probably a Windows format PATH printed by
15375        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15376        # path with ; separators, and with drive letters. We can handle the
15377        # drive letters (cygwin fileutils understands them), so leave them,
15378        # especially as we might pass files found there to a mingw objdump,
15379        # which wouldn't understand a cygwinified path. Ahh.
15380        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15381      else
15382        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15383      fi
15384      ;;
15385    pw32*)
15386      # pw32 DLLs use 'pw' prefix rather than 'lib'
15387      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15388      ;;
15389    esac
15390    ;;
15391
15392  *)
15393    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15394    ;;
15395  esac
15396  dynamic_linker='Win32 ld.exe'
15397  # FIXME: first we should search . and the directory the executable is in
15398  shlibpath_var=PATH
15399  ;;
15400
15401darwin* | rhapsody*)
15402  dynamic_linker="$host_os dyld"
15403  version_type=darwin
15404  need_lib_prefix=no
15405  need_version=no
15406  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15407  soname_spec='${libname}${release}${major}$shared_ext'
15408  shlibpath_overrides_runpath=yes
15409  shlibpath_var=DYLD_LIBRARY_PATH
15410  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15411
15412  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15413  ;;
15414
15415dgux*)
15416  version_type=linux
15417  need_lib_prefix=no
15418  need_version=no
15419  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15420  soname_spec='${libname}${release}${shared_ext}$major'
15421  shlibpath_var=LD_LIBRARY_PATH
15422  ;;
15423
15424freebsd1*)
15425  dynamic_linker=no
15426  ;;
15427
15428freebsd* | dragonfly*)
15429  # DragonFly does not have aout.  When/if they implement a new
15430  # versioning mechanism, adjust this.
15431  if test -x /usr/bin/objformat; then
15432    objformat=`/usr/bin/objformat`
15433  else
15434    case $host_os in
15435    freebsd[123]*) objformat=aout ;;
15436    *) objformat=elf ;;
15437    esac
15438  fi
15439  version_type=freebsd-$objformat
15440  case $version_type in
15441    freebsd-elf*)
15442      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15443      need_version=no
15444      need_lib_prefix=no
15445      ;;
15446    freebsd-*)
15447      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15448      need_version=yes
15449      ;;
15450  esac
15451  shlibpath_var=LD_LIBRARY_PATH
15452  case $host_os in
15453  freebsd2*)
15454    shlibpath_overrides_runpath=yes
15455    ;;
15456  freebsd3.[01]* | freebsdelf3.[01]*)
15457    shlibpath_overrides_runpath=yes
15458    hardcode_into_libs=yes
15459    ;;
15460  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15461  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15462    shlibpath_overrides_runpath=no
15463    hardcode_into_libs=yes
15464    ;;
15465  *) # from 4.6 on, and DragonFly
15466    shlibpath_overrides_runpath=yes
15467    hardcode_into_libs=yes
15468    ;;
15469  esac
15470  ;;
15471
15472gnu*)
15473  version_type=linux
15474  need_lib_prefix=no
15475  need_version=no
15476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15477  soname_spec='${libname}${release}${shared_ext}$major'
15478  shlibpath_var=LD_LIBRARY_PATH
15479  hardcode_into_libs=yes
15480  ;;
15481
15482hpux9* | hpux10* | hpux11*)
15483  # Give a soname corresponding to the major version so that dld.sl refuses to
15484  # link against other versions.
15485  version_type=sunos
15486  need_lib_prefix=no
15487  need_version=no
15488  case $host_cpu in
15489  ia64*)
15490    shrext_cmds='.so'
15491    hardcode_into_libs=yes
15492    dynamic_linker="$host_os dld.so"
15493    shlibpath_var=LD_LIBRARY_PATH
15494    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15495    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15496    soname_spec='${libname}${release}${shared_ext}$major'
15497    if test "X$HPUX_IA64_MODE" = X32; then
15498      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15499    else
15500      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15501    fi
15502    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15503    ;;
15504   hppa*64*)
15505     shrext_cmds='.sl'
15506     hardcode_into_libs=yes
15507     dynamic_linker="$host_os dld.sl"
15508     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15509     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15510     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15511     soname_spec='${libname}${release}${shared_ext}$major'
15512     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15513     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15514     ;;
15515   *)
15516    shrext_cmds='.sl'
15517    dynamic_linker="$host_os dld.sl"
15518    shlibpath_var=SHLIB_PATH
15519    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15520    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15521    soname_spec='${libname}${release}${shared_ext}$major'
15522    ;;
15523  esac
15524  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15525  postinstall_cmds='chmod 555 $lib'
15526  ;;
15527
15528interix[3-9]*)
15529  version_type=linux
15530  need_lib_prefix=no
15531  need_version=no
15532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15533  soname_spec='${libname}${release}${shared_ext}$major'
15534  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15535  shlibpath_var=LD_LIBRARY_PATH
15536  shlibpath_overrides_runpath=no
15537  hardcode_into_libs=yes
15538  ;;
15539
15540irix5* | irix6* | nonstopux*)
15541  case $host_os in
15542    nonstopux*) version_type=nonstopux ;;
15543    *)
15544	if test "$lt_cv_prog_gnu_ld" = yes; then
15545		version_type=linux
15546	else
15547		version_type=irix
15548	fi ;;
15549  esac
15550  need_lib_prefix=no
15551  need_version=no
15552  soname_spec='${libname}${release}${shared_ext}$major'
15553  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15554  case $host_os in
15555  irix5* | nonstopux*)
15556    libsuff= shlibsuff=
15557    ;;
15558  *)
15559    case $LD in # libtool.m4 will add one of these switches to LD
15560    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15561      libsuff= shlibsuff= libmagic=32-bit;;
15562    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15563      libsuff=32 shlibsuff=N32 libmagic=N32;;
15564    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15565      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15566    *) libsuff= shlibsuff= libmagic=never-match;;
15567    esac
15568    ;;
15569  esac
15570  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15571  shlibpath_overrides_runpath=no
15572  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15573  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15574  hardcode_into_libs=yes
15575  ;;
15576
15577# No shared lib support for Linux oldld, aout, or coff.
15578linux*oldld* | linux*aout* | linux*coff*)
15579  dynamic_linker=no
15580  ;;
15581
15582# This must be Linux ELF.
15583linux* | k*bsd*-gnu)
15584  version_type=linux
15585  need_lib_prefix=no
15586  need_version=no
15587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15588  soname_spec='${libname}${release}${shared_ext}$major'
15589  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15590  shlibpath_var=LD_LIBRARY_PATH
15591  shlibpath_overrides_runpath=no
15592  # This implies no fast_install, which is unacceptable.
15593  # Some rework will be needed to allow for fast_install
15594  # before this can be enabled.
15595  hardcode_into_libs=yes
15596  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15597  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15598
15599  # Append ld.so.conf contents to the search path
15600  if test -f /etc/ld.so.conf; then
15601    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15602    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15603  fi
15604
15605  # We used to test for /lib/ld.so.1 and disable shared libraries on
15606  # powerpc, because MkLinux only supported shared libraries with the
15607  # GNU dynamic linker.  Since this was broken with cross compilers,
15608  # most powerpc-linux boxes support dynamic linking these days and
15609  # people can always --disable-shared, the test was removed, and we
15610  # assume the GNU/Linux dynamic linker is in use.
15611  dynamic_linker='GNU/Linux ld.so'
15612  ;;
15613
15614netbsd*)
15615  version_type=sunos
15616  need_lib_prefix=no
15617  need_version=no
15618  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15619    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15620    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15621    dynamic_linker='NetBSD (a.out) ld.so'
15622  else
15623    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15624    soname_spec='${libname}${release}${shared_ext}$major'
15625    dynamic_linker='NetBSD ld.elf_so'
15626  fi
15627  shlibpath_var=LD_LIBRARY_PATH
15628  shlibpath_overrides_runpath=yes
15629  hardcode_into_libs=yes
15630  ;;
15631
15632newsos6)
15633  version_type=linux
15634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635  shlibpath_var=LD_LIBRARY_PATH
15636  shlibpath_overrides_runpath=yes
15637  ;;
15638
15639nto-qnx*)
15640  version_type=linux
15641  need_lib_prefix=no
15642  need_version=no
15643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644  soname_spec='${libname}${release}${shared_ext}$major'
15645  shlibpath_var=LD_LIBRARY_PATH
15646  shlibpath_overrides_runpath=yes
15647  ;;
15648
15649openbsd*)
15650  version_type=sunos
15651  sys_lib_dlsearch_path_spec="/usr/lib"
15652  need_lib_prefix=no
15653  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15654  case $host_os in
15655    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15656    *)                         need_version=no  ;;
15657  esac
15658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15659  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15660  shlibpath_var=LD_LIBRARY_PATH
15661  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15662    case $host_os in
15663      openbsd2.[89] | openbsd2.[89].*)
15664	shlibpath_overrides_runpath=no
15665	;;
15666      *)
15667	shlibpath_overrides_runpath=yes
15668	;;
15669      esac
15670  else
15671    shlibpath_overrides_runpath=yes
15672  fi
15673  ;;
15674
15675os2*)
15676  libname_spec='$name'
15677  shrext_cmds=".dll"
15678  need_lib_prefix=no
15679  library_names_spec='$libname${shared_ext} $libname.a'
15680  dynamic_linker='OS/2 ld.exe'
15681  shlibpath_var=LIBPATH
15682  ;;
15683
15684osf3* | osf4* | osf5*)
15685  version_type=osf
15686  need_lib_prefix=no
15687  need_version=no
15688  soname_spec='${libname}${release}${shared_ext}$major'
15689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15690  shlibpath_var=LD_LIBRARY_PATH
15691  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15692  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15693  ;;
15694
15695rdos*)
15696  dynamic_linker=no
15697  ;;
15698
15699solaris*)
15700  version_type=linux
15701  need_lib_prefix=no
15702  need_version=no
15703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15704  soname_spec='${libname}${release}${shared_ext}$major'
15705  shlibpath_var=LD_LIBRARY_PATH
15706  shlibpath_overrides_runpath=yes
15707  hardcode_into_libs=yes
15708  # ldd complains unless libraries are executable
15709  postinstall_cmds='chmod +x $lib'
15710  ;;
15711
15712sunos4*)
15713  version_type=sunos
15714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15715  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15716  shlibpath_var=LD_LIBRARY_PATH
15717  shlibpath_overrides_runpath=yes
15718  if test "$with_gnu_ld" = yes; then
15719    need_lib_prefix=no
15720  fi
15721  need_version=yes
15722  ;;
15723
15724sysv4 | sysv4.3*)
15725  version_type=linux
15726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15727  soname_spec='${libname}${release}${shared_ext}$major'
15728  shlibpath_var=LD_LIBRARY_PATH
15729  case $host_vendor in
15730    sni)
15731      shlibpath_overrides_runpath=no
15732      need_lib_prefix=no
15733      export_dynamic_flag_spec='${wl}-Blargedynsym'
15734      runpath_var=LD_RUN_PATH
15735      ;;
15736    siemens)
15737      need_lib_prefix=no
15738      ;;
15739    motorola)
15740      need_lib_prefix=no
15741      need_version=no
15742      shlibpath_overrides_runpath=no
15743      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15744      ;;
15745  esac
15746  ;;
15747
15748sysv4*MP*)
15749  if test -d /usr/nec ;then
15750    version_type=linux
15751    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15752    soname_spec='$libname${shared_ext}.$major'
15753    shlibpath_var=LD_LIBRARY_PATH
15754  fi
15755  ;;
15756
15757sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15758  version_type=freebsd-elf
15759  need_lib_prefix=no
15760  need_version=no
15761  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15762  soname_spec='${libname}${release}${shared_ext}$major'
15763  shlibpath_var=LD_LIBRARY_PATH
15764  hardcode_into_libs=yes
15765  if test "$with_gnu_ld" = yes; then
15766    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15767    shlibpath_overrides_runpath=no
15768  else
15769    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15770    shlibpath_overrides_runpath=yes
15771    case $host_os in
15772      sco3.2v5*)
15773        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15774	;;
15775    esac
15776  fi
15777  sys_lib_dlsearch_path_spec='/usr/lib'
15778  ;;
15779
15780uts4*)
15781  version_type=linux
15782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15783  soname_spec='${libname}${release}${shared_ext}$major'
15784  shlibpath_var=LD_LIBRARY_PATH
15785  ;;
15786
15787*)
15788  dynamic_linker=no
15789  ;;
15790esac
15791{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15792echo "${ECHO_T}$dynamic_linker" >&6; }
15793test "$dynamic_linker" = no && can_build_shared=no
15794
15795variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15796if test "$GCC" = yes; then
15797  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15798fi
15799
15800{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15801echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15802hardcode_action_F77=
15803if test -n "$hardcode_libdir_flag_spec_F77" || \
15804   test -n "$runpath_var_F77" || \
15805   test "X$hardcode_automatic_F77" = "Xyes" ; then
15806
15807  # We can hardcode non-existant directories.
15808  if test "$hardcode_direct_F77" != no &&
15809     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15810     # have to relink, otherwise we might link with an installed library
15811     # when we should be linking with a yet-to-be-installed one
15812     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15813     test "$hardcode_minus_L_F77" != no; then
15814    # Linking always hardcodes the temporary library directory.
15815    hardcode_action_F77=relink
15816  else
15817    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15818    hardcode_action_F77=immediate
15819  fi
15820else
15821  # We cannot hardcode anything, or else we can only hardcode existing
15822  # directories.
15823  hardcode_action_F77=unsupported
15824fi
15825{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15826echo "${ECHO_T}$hardcode_action_F77" >&6; }
15827
15828if test "$hardcode_action_F77" = relink; then
15829  # Fast installation is not supported
15830  enable_fast_install=no
15831elif test "$shlibpath_overrides_runpath" = yes ||
15832     test "$enable_shared" = no; then
15833  # Fast installation is not necessary
15834  enable_fast_install=needless
15835fi
15836
15837
15838# The else clause should only fire when bootstrapping the
15839# libtool distribution, otherwise you forgot to ship ltmain.sh
15840# with your package, and you will get complaints that there are
15841# no rules to generate ltmain.sh.
15842if test -f "$ltmain"; then
15843  # See if we are running on zsh, and set the options which allow our commands through
15844  # without removal of \ escapes.
15845  if test -n "${ZSH_VERSION+set}" ; then
15846    setopt NO_GLOB_SUBST
15847  fi
15848  # Now quote all the things that may contain metacharacters while being
15849  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15850  # variables and quote the copies for generation of the libtool script.
15851  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15852    SED SHELL STRIP \
15853    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15854    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15855    deplibs_check_method reload_flag reload_cmds need_locks \
15856    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15857    lt_cv_sys_global_symbol_to_c_name_address \
15858    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15859    old_postinstall_cmds old_postuninstall_cmds \
15860    compiler_F77 \
15861    CC_F77 \
15862    LD_F77 \
15863    lt_prog_compiler_wl_F77 \
15864    lt_prog_compiler_pic_F77 \
15865    lt_prog_compiler_static_F77 \
15866    lt_prog_compiler_no_builtin_flag_F77 \
15867    export_dynamic_flag_spec_F77 \
15868    thread_safe_flag_spec_F77 \
15869    whole_archive_flag_spec_F77 \
15870    enable_shared_with_static_runtimes_F77 \
15871    old_archive_cmds_F77 \
15872    old_archive_from_new_cmds_F77 \
15873    predep_objects_F77 \
15874    postdep_objects_F77 \
15875    predeps_F77 \
15876    postdeps_F77 \
15877    compiler_lib_search_path_F77 \
15878    archive_cmds_F77 \
15879    archive_expsym_cmds_F77 \
15880    postinstall_cmds_F77 \
15881    postuninstall_cmds_F77 \
15882    old_archive_from_expsyms_cmds_F77 \
15883    allow_undefined_flag_F77 \
15884    no_undefined_flag_F77 \
15885    export_symbols_cmds_F77 \
15886    hardcode_libdir_flag_spec_F77 \
15887    hardcode_libdir_flag_spec_ld_F77 \
15888    hardcode_libdir_separator_F77 \
15889    hardcode_automatic_F77 \
15890    module_cmds_F77 \
15891    module_expsym_cmds_F77 \
15892    lt_cv_prog_compiler_c_o_F77 \
15893    fix_srcfile_path_F77 \
15894    exclude_expsyms_F77 \
15895    include_expsyms_F77; do
15896
15897    case $var in
15898    old_archive_cmds_F77 | \
15899    old_archive_from_new_cmds_F77 | \
15900    archive_cmds_F77 | \
15901    archive_expsym_cmds_F77 | \
15902    module_cmds_F77 | \
15903    module_expsym_cmds_F77 | \
15904    old_archive_from_expsyms_cmds_F77 | \
15905    export_symbols_cmds_F77 | \
15906    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15907    postinstall_cmds | postuninstall_cmds | \
15908    old_postinstall_cmds | old_postuninstall_cmds | \
15909    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15910      # Double-quote double-evaled strings.
15911      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15912      ;;
15913    *)
15914      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15915      ;;
15916    esac
15917  done
15918
15919  case $lt_echo in
15920  *'\$0 --fallback-echo"')
15921    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15922    ;;
15923  esac
15924
15925cfgfile="$ofile"
15926
15927  cat <<__EOF__ >> "$cfgfile"
15928# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15929
15930# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15931
15932# Shell to use when invoking shell scripts.
15933SHELL=$lt_SHELL
15934
15935# Whether or not to build shared libraries.
15936build_libtool_libs=$enable_shared
15937
15938# Whether or not to build static libraries.
15939build_old_libs=$enable_static
15940
15941# Whether or not to add -lc for building shared libraries.
15942build_libtool_need_lc=$archive_cmds_need_lc_F77
15943
15944# Whether or not to disallow shared libs when runtime libs are static
15945allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15946
15947# Whether or not to optimize for fast installation.
15948fast_install=$enable_fast_install
15949
15950# The host system.
15951host_alias=$host_alias
15952host=$host
15953host_os=$host_os
15954
15955# The build system.
15956build_alias=$build_alias
15957build=$build
15958build_os=$build_os
15959
15960# An echo program that does not interpret backslashes.
15961echo=$lt_echo
15962
15963# The archiver.
15964AR=$lt_AR
15965AR_FLAGS=$lt_AR_FLAGS
15966
15967# A C compiler.
15968LTCC=$lt_LTCC
15969
15970# LTCC compiler flags.
15971LTCFLAGS=$lt_LTCFLAGS
15972
15973# A language-specific compiler.
15974CC=$lt_compiler_F77
15975
15976# Is the compiler the GNU C compiler?
15977with_gcc=$GCC_F77
15978
15979# An ERE matcher.
15980EGREP=$lt_EGREP
15981
15982# The linker used to build libraries.
15983LD=$lt_LD_F77
15984
15985# Whether we need hard or soft links.
15986LN_S=$lt_LN_S
15987
15988# A BSD-compatible nm program.
15989NM=$lt_NM
15990
15991# A symbol stripping program
15992STRIP=$lt_STRIP
15993
15994# Used to examine libraries when file_magic_cmd begins "file"
15995MAGIC_CMD=$MAGIC_CMD
15996
15997# Used on cygwin: DLL creation program.
15998DLLTOOL="$DLLTOOL"
15999
16000# Used on cygwin: object dumper.
16001OBJDUMP="$OBJDUMP"
16002
16003# Used on cygwin: assembler.
16004AS="$AS"
16005
16006# The name of the directory that contains temporary libtool files.
16007objdir=$objdir
16008
16009# How to create reloadable object files.
16010reload_flag=$lt_reload_flag
16011reload_cmds=$lt_reload_cmds
16012
16013# How to pass a linker flag through the compiler.
16014wl=$lt_lt_prog_compiler_wl_F77
16015
16016# Object file suffix (normally "o").
16017objext="$ac_objext"
16018
16019# Old archive suffix (normally "a").
16020libext="$libext"
16021
16022# Shared library suffix (normally ".so").
16023shrext_cmds='$shrext_cmds'
16024
16025# Executable file suffix (normally "").
16026exeext="$exeext"
16027
16028# Additional compiler flags for building library objects.
16029pic_flag=$lt_lt_prog_compiler_pic_F77
16030pic_mode=$pic_mode
16031
16032# What is the maximum length of a command?
16033max_cmd_len=$lt_cv_sys_max_cmd_len
16034
16035# Does compiler simultaneously support -c and -o options?
16036compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16037
16038# Must we lock files when doing compilation?
16039need_locks=$lt_need_locks
16040
16041# Do we need the lib prefix for modules?
16042need_lib_prefix=$need_lib_prefix
16043
16044# Do we need a version for libraries?
16045need_version=$need_version
16046
16047# Whether dlopen is supported.
16048dlopen_support=$enable_dlopen
16049
16050# Whether dlopen of programs is supported.
16051dlopen_self=$enable_dlopen_self
16052
16053# Whether dlopen of statically linked programs is supported.
16054dlopen_self_static=$enable_dlopen_self_static
16055
16056# Compiler flag to prevent dynamic linking.
16057link_static_flag=$lt_lt_prog_compiler_static_F77
16058
16059# Compiler flag to turn off builtin functions.
16060no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16061
16062# Compiler flag to allow reflexive dlopens.
16063export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16064
16065# Compiler flag to generate shared objects directly from archives.
16066whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16067
16068# Compiler flag to generate thread-safe objects.
16069thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16070
16071# Library versioning type.
16072version_type=$version_type
16073
16074# Format of library name prefix.
16075libname_spec=$lt_libname_spec
16076
16077# List of archive names.  First name is the real one, the rest are links.
16078# The last name is the one that the linker finds with -lNAME.
16079library_names_spec=$lt_library_names_spec
16080
16081# The coded name of the library, if different from the real name.
16082soname_spec=$lt_soname_spec
16083
16084# Commands used to build and install an old-style archive.
16085RANLIB=$lt_RANLIB
16086old_archive_cmds=$lt_old_archive_cmds_F77
16087old_postinstall_cmds=$lt_old_postinstall_cmds
16088old_postuninstall_cmds=$lt_old_postuninstall_cmds
16089
16090# Create an old-style archive from a shared archive.
16091old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16092
16093# Create a temporary old-style archive to link instead of a shared archive.
16094old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16095
16096# Commands used to build and install a shared archive.
16097archive_cmds=$lt_archive_cmds_F77
16098archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16099postinstall_cmds=$lt_postinstall_cmds
16100postuninstall_cmds=$lt_postuninstall_cmds
16101
16102# Commands used to build a loadable module (assumed same as above if empty)
16103module_cmds=$lt_module_cmds_F77
16104module_expsym_cmds=$lt_module_expsym_cmds_F77
16105
16106# Commands to strip libraries.
16107old_striplib=$lt_old_striplib
16108striplib=$lt_striplib
16109
16110# Dependencies to place before the objects being linked to create a
16111# shared library.
16112predep_objects=$lt_predep_objects_F77
16113
16114# Dependencies to place after the objects being linked to create a
16115# shared library.
16116postdep_objects=$lt_postdep_objects_F77
16117
16118# Dependencies to place before the objects being linked to create a
16119# shared library.
16120predeps=$lt_predeps_F77
16121
16122# Dependencies to place after the objects being linked to create a
16123# shared library.
16124postdeps=$lt_postdeps_F77
16125
16126# The library search path used internally by the compiler when linking
16127# a shared library.
16128compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16129
16130# Method to check whether dependent libraries are shared objects.
16131deplibs_check_method=$lt_deplibs_check_method
16132
16133# Command to use when deplibs_check_method == file_magic.
16134file_magic_cmd=$lt_file_magic_cmd
16135
16136# Flag that allows shared libraries with undefined symbols to be built.
16137allow_undefined_flag=$lt_allow_undefined_flag_F77
16138
16139# Flag that forces no undefined symbols.
16140no_undefined_flag=$lt_no_undefined_flag_F77
16141
16142# Commands used to finish a libtool library installation in a directory.
16143finish_cmds=$lt_finish_cmds
16144
16145# Same as above, but a single script fragment to be evaled but not shown.
16146finish_eval=$lt_finish_eval
16147
16148# Take the output of nm and produce a listing of raw symbols and C names.
16149global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16150
16151# Transform the output of nm in a proper C declaration
16152global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16153
16154# Transform the output of nm in a C name address pair
16155global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16156
16157# This is the shared library runtime path variable.
16158runpath_var=$runpath_var
16159
16160# This is the shared library path variable.
16161shlibpath_var=$shlibpath_var
16162
16163# Is shlibpath searched before the hard-coded library search path?
16164shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16165
16166# How to hardcode a shared library path into an executable.
16167hardcode_action=$hardcode_action_F77
16168
16169# Whether we should hardcode library paths into libraries.
16170hardcode_into_libs=$hardcode_into_libs
16171
16172# Flag to hardcode \$libdir into a binary during linking.
16173# This must work even if \$libdir does not exist.
16174hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16175
16176# If ld is used when linking, flag to hardcode \$libdir into
16177# a binary during linking. This must work even if \$libdir does
16178# not exist.
16179hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16180
16181# Whether we need a single -rpath flag with a separated argument.
16182hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16183
16184# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16185# resulting binary.
16186hardcode_direct=$hardcode_direct_F77
16187
16188# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16189# resulting binary.
16190hardcode_minus_L=$hardcode_minus_L_F77
16191
16192# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16193# the resulting binary.
16194hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16195
16196# Set to yes if building a shared library automatically hardcodes DIR into the library
16197# and all subsequent libraries and executables linked against it.
16198hardcode_automatic=$hardcode_automatic_F77
16199
16200# Variables whose values should be saved in libtool wrapper scripts and
16201# restored at relink time.
16202variables_saved_for_relink="$variables_saved_for_relink"
16203
16204# Whether libtool must link a program against all its dependency libraries.
16205link_all_deplibs=$link_all_deplibs_F77
16206
16207# Compile-time system search path for libraries
16208sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16209
16210# Run-time system search path for libraries
16211sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16212
16213# Fix the shell variable \$srcfile for the compiler.
16214fix_srcfile_path=$lt_fix_srcfile_path
16215
16216# Set to yes if exported symbols are required.
16217always_export_symbols=$always_export_symbols_F77
16218
16219# The commands to list exported symbols.
16220export_symbols_cmds=$lt_export_symbols_cmds_F77
16221
16222# The commands to extract the exported symbol list from a shared archive.
16223extract_expsyms_cmds=$lt_extract_expsyms_cmds
16224
16225# Symbols that should not be listed in the preloaded symbols.
16226exclude_expsyms=$lt_exclude_expsyms_F77
16227
16228# Symbols that must always be exported.
16229include_expsyms=$lt_include_expsyms_F77
16230
16231# ### END LIBTOOL TAG CONFIG: $tagname
16232
16233__EOF__
16234
16235
16236else
16237  # If there is no Makefile yet, we rely on a make rule to execute
16238  # `config.status --recheck' to rerun these tests and create the
16239  # libtool script then.
16240  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16241  if test -f "$ltmain_in"; then
16242    test -f Makefile && make "$ltmain"
16243  fi
16244fi
16245
16246
16247ac_ext=c
16248ac_cpp='$CPP $CPPFLAGS'
16249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16251ac_compiler_gnu=$ac_cv_c_compiler_gnu
16252
16253CC="$lt_save_CC"
16254
16255	else
16256	  tagname=""
16257	fi
16258	;;
16259
16260      GCJ)
16261	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16262
16263
16264# Source file extension for Java test sources.
16265ac_ext=java
16266
16267# Object file extension for compiled Java test sources.
16268objext=o
16269objext_GCJ=$objext
16270
16271# Code to be used in simple compile tests
16272lt_simple_compile_test_code="class foo {}"
16273
16274# Code to be used in simple link tests
16275lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16276
16277# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16278
16279# If no C compiler was specified, use CC.
16280LTCC=${LTCC-"$CC"}
16281
16282# If no C compiler flags were specified, use CFLAGS.
16283LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16284
16285# Allow CC to be a program name with arguments.
16286compiler=$CC
16287
16288
16289# save warnings/boilerplate of simple test code
16290ac_outfile=conftest.$ac_objext
16291echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16292eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16293_lt_compiler_boilerplate=`cat conftest.err`
16294$rm conftest*
16295
16296ac_outfile=conftest.$ac_objext
16297echo "$lt_simple_link_test_code" >conftest.$ac_ext
16298eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16299_lt_linker_boilerplate=`cat conftest.err`
16300$rm conftest*
16301
16302
16303# Allow CC to be a program name with arguments.
16304lt_save_CC="$CC"
16305CC=${GCJ-"gcj"}
16306compiler=$CC
16307compiler_GCJ=$CC
16308for cc_temp in $compiler""; do
16309  case $cc_temp in
16310    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16311    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16312    \-*) ;;
16313    *) break;;
16314  esac
16315done
16316cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16317
16318
16319# GCJ did not exist at the time GCC didn't implicitly link libc in.
16320archive_cmds_need_lc_GCJ=no
16321
16322old_archive_cmds_GCJ=$old_archive_cmds
16323
16324
16325lt_prog_compiler_no_builtin_flag_GCJ=
16326
16327if test "$GCC" = yes; then
16328  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16329
16330
16331{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16332echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16333if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16334  echo $ECHO_N "(cached) $ECHO_C" >&6
16335else
16336  lt_cv_prog_compiler_rtti_exceptions=no
16337  ac_outfile=conftest.$ac_objext
16338   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16339   lt_compiler_flag="-fno-rtti -fno-exceptions"
16340   # Insert the option either (1) after the last *FLAGS variable, or
16341   # (2) before a word containing "conftest.", or (3) at the end.
16342   # Note that $ac_compile itself does not contain backslashes and begins
16343   # with a dollar sign (not a hyphen), so the echo should work correctly.
16344   # The option is referenced via a variable to avoid confusing sed.
16345   lt_compile=`echo "$ac_compile" | $SED \
16346   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16347   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16348   -e 's:$: $lt_compiler_flag:'`
16349   (eval echo "\"\$as_me:16349: $lt_compile\"" >&5)
16350   (eval "$lt_compile" 2>conftest.err)
16351   ac_status=$?
16352   cat conftest.err >&5
16353   echo "$as_me:16353: \$? = $ac_status" >&5
16354   if (exit $ac_status) && test -s "$ac_outfile"; then
16355     # The compiler can only warn and ignore the option if not recognized
16356     # So say no if there are warnings other than the usual output.
16357     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16358     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16359     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16360       lt_cv_prog_compiler_rtti_exceptions=yes
16361     fi
16362   fi
16363   $rm conftest*
16364
16365fi
16366{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16367echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16368
16369if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16370    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16371else
16372    :
16373fi
16374
16375fi
16376
16377lt_prog_compiler_wl_GCJ=
16378lt_prog_compiler_pic_GCJ=
16379lt_prog_compiler_static_GCJ=
16380
16381{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16382echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16383
16384  if test "$GCC" = yes; then
16385    lt_prog_compiler_wl_GCJ='-Wl,'
16386    lt_prog_compiler_static_GCJ='-static'
16387
16388    case $host_os in
16389      aix*)
16390      # All AIX code is PIC.
16391      if test "$host_cpu" = ia64; then
16392	# AIX 5 now supports IA64 processor
16393	lt_prog_compiler_static_GCJ='-Bstatic'
16394      fi
16395      ;;
16396
16397    amigaos*)
16398      # FIXME: we need at least 68020 code to build shared libraries, but
16399      # adding the `-m68020' flag to GCC prevents building anything better,
16400      # like `-m68040'.
16401      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16402      ;;
16403
16404    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16405      # PIC is the default for these OSes.
16406      ;;
16407
16408    mingw* | cygwin* | pw32* | os2*)
16409      # This hack is so that the source file can tell whether it is being
16410      # built for inclusion in a dll (and should export symbols for example).
16411      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16412      # (--disable-auto-import) libraries
16413      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16414      ;;
16415
16416    darwin* | rhapsody*)
16417      # PIC is the default on this platform
16418      # Common symbols not allowed in MH_DYLIB files
16419      lt_prog_compiler_pic_GCJ='-fno-common'
16420      ;;
16421
16422    interix[3-9]*)
16423      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16424      # Instead, we relocate shared libraries at runtime.
16425      ;;
16426
16427    msdosdjgpp*)
16428      # Just because we use GCC doesn't mean we suddenly get shared libraries
16429      # on systems that don't support them.
16430      lt_prog_compiler_can_build_shared_GCJ=no
16431      enable_shared=no
16432      ;;
16433
16434    sysv4*MP*)
16435      if test -d /usr/nec; then
16436	lt_prog_compiler_pic_GCJ=-Kconform_pic
16437      fi
16438      ;;
16439
16440    hpux*)
16441      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16442      # not for PA HP-UX.
16443      case $host_cpu in
16444      hppa*64*|ia64*)
16445	# +Z the default
16446	;;
16447      *)
16448	lt_prog_compiler_pic_GCJ='-fPIC'
16449	;;
16450      esac
16451      ;;
16452
16453    *)
16454      lt_prog_compiler_pic_GCJ='-fPIC'
16455      ;;
16456    esac
16457  else
16458    # PORTME Check for flag to pass linker flags through the system compiler.
16459    case $host_os in
16460    aix*)
16461      lt_prog_compiler_wl_GCJ='-Wl,'
16462      if test "$host_cpu" = ia64; then
16463	# AIX 5 now supports IA64 processor
16464	lt_prog_compiler_static_GCJ='-Bstatic'
16465      else
16466	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16467      fi
16468      ;;
16469      darwin*)
16470        # PIC is the default on this platform
16471        # Common symbols not allowed in MH_DYLIB files
16472       case $cc_basename in
16473         xlc*)
16474         lt_prog_compiler_pic_GCJ='-qnocommon'
16475         lt_prog_compiler_wl_GCJ='-Wl,'
16476         ;;
16477       esac
16478       ;;
16479
16480    mingw* | cygwin* | pw32* | os2*)
16481      # This hack is so that the source file can tell whether it is being
16482      # built for inclusion in a dll (and should export symbols for example).
16483      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16484      ;;
16485
16486    hpux9* | hpux10* | hpux11*)
16487      lt_prog_compiler_wl_GCJ='-Wl,'
16488      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16489      # not for PA HP-UX.
16490      case $host_cpu in
16491      hppa*64*|ia64*)
16492	# +Z the default
16493	;;
16494      *)
16495	lt_prog_compiler_pic_GCJ='+Z'
16496	;;
16497      esac
16498      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16499      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16500      ;;
16501
16502    irix5* | irix6* | nonstopux*)
16503      lt_prog_compiler_wl_GCJ='-Wl,'
16504      # PIC (with -KPIC) is the default.
16505      lt_prog_compiler_static_GCJ='-non_shared'
16506      ;;
16507
16508    newsos6)
16509      lt_prog_compiler_pic_GCJ='-KPIC'
16510      lt_prog_compiler_static_GCJ='-Bstatic'
16511      ;;
16512
16513    linux* | k*bsd*-gnu)
16514      case $cc_basename in
16515      icc* | ecc*)
16516	lt_prog_compiler_wl_GCJ='-Wl,'
16517	lt_prog_compiler_pic_GCJ='-KPIC'
16518	lt_prog_compiler_static_GCJ='-static'
16519        ;;
16520      pgcc* | pgf77* | pgf90* | pgf95*)
16521        # Portland Group compilers (*not* the Pentium gcc compiler,
16522	# which looks to be a dead project)
16523	lt_prog_compiler_wl_GCJ='-Wl,'
16524	lt_prog_compiler_pic_GCJ='-fpic'
16525	lt_prog_compiler_static_GCJ='-Bstatic'
16526        ;;
16527      ccc*)
16528        lt_prog_compiler_wl_GCJ='-Wl,'
16529        # All Alpha code is PIC.
16530        lt_prog_compiler_static_GCJ='-non_shared'
16531        ;;
16532      *)
16533        case `$CC -V 2>&1 | sed 5q` in
16534	*Sun\ C*)
16535	  # Sun C 5.9
16536	  lt_prog_compiler_pic_GCJ='-KPIC'
16537	  lt_prog_compiler_static_GCJ='-Bstatic'
16538	  lt_prog_compiler_wl_GCJ='-Wl,'
16539	  ;;
16540	*Sun\ F*)
16541	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16542	  lt_prog_compiler_pic_GCJ='-KPIC'
16543	  lt_prog_compiler_static_GCJ='-Bstatic'
16544	  lt_prog_compiler_wl_GCJ=''
16545	  ;;
16546	esac
16547	;;
16548      esac
16549      ;;
16550
16551    osf3* | osf4* | osf5*)
16552      lt_prog_compiler_wl_GCJ='-Wl,'
16553      # All OSF/1 code is PIC.
16554      lt_prog_compiler_static_GCJ='-non_shared'
16555      ;;
16556
16557    rdos*)
16558      lt_prog_compiler_static_GCJ='-non_shared'
16559      ;;
16560
16561    solaris*)
16562      lt_prog_compiler_pic_GCJ='-KPIC'
16563      lt_prog_compiler_static_GCJ='-Bstatic'
16564      case $cc_basename in
16565      f77* | f90* | f95*)
16566	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16567      *)
16568	lt_prog_compiler_wl_GCJ='-Wl,';;
16569      esac
16570      ;;
16571
16572    sunos4*)
16573      lt_prog_compiler_wl_GCJ='-Qoption ld '
16574      lt_prog_compiler_pic_GCJ='-PIC'
16575      lt_prog_compiler_static_GCJ='-Bstatic'
16576      ;;
16577
16578    sysv4 | sysv4.2uw2* | sysv4.3*)
16579      lt_prog_compiler_wl_GCJ='-Wl,'
16580      lt_prog_compiler_pic_GCJ='-KPIC'
16581      lt_prog_compiler_static_GCJ='-Bstatic'
16582      ;;
16583
16584    sysv4*MP*)
16585      if test -d /usr/nec ;then
16586	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16587	lt_prog_compiler_static_GCJ='-Bstatic'
16588      fi
16589      ;;
16590
16591    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16592      lt_prog_compiler_wl_GCJ='-Wl,'
16593      lt_prog_compiler_pic_GCJ='-KPIC'
16594      lt_prog_compiler_static_GCJ='-Bstatic'
16595      ;;
16596
16597    unicos*)
16598      lt_prog_compiler_wl_GCJ='-Wl,'
16599      lt_prog_compiler_can_build_shared_GCJ=no
16600      ;;
16601
16602    uts4*)
16603      lt_prog_compiler_pic_GCJ='-pic'
16604      lt_prog_compiler_static_GCJ='-Bstatic'
16605      ;;
16606
16607    *)
16608      lt_prog_compiler_can_build_shared_GCJ=no
16609      ;;
16610    esac
16611  fi
16612
16613{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16614echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16615
16616#
16617# Check to make sure the PIC flag actually works.
16618#
16619if test -n "$lt_prog_compiler_pic_GCJ"; then
16620
16621{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16622echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16623if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16624  echo $ECHO_N "(cached) $ECHO_C" >&6
16625else
16626  lt_prog_compiler_pic_works_GCJ=no
16627  ac_outfile=conftest.$ac_objext
16628   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16629   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16630   # Insert the option either (1) after the last *FLAGS variable, or
16631   # (2) before a word containing "conftest.", or (3) at the end.
16632   # Note that $ac_compile itself does not contain backslashes and begins
16633   # with a dollar sign (not a hyphen), so the echo should work correctly.
16634   # The option is referenced via a variable to avoid confusing sed.
16635   lt_compile=`echo "$ac_compile" | $SED \
16636   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16637   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16638   -e 's:$: $lt_compiler_flag:'`
16639   (eval echo "\"\$as_me:16639: $lt_compile\"" >&5)
16640   (eval "$lt_compile" 2>conftest.err)
16641   ac_status=$?
16642   cat conftest.err >&5
16643   echo "$as_me:16643: \$? = $ac_status" >&5
16644   if (exit $ac_status) && test -s "$ac_outfile"; then
16645     # The compiler can only warn and ignore the option if not recognized
16646     # So say no if there are warnings other than the usual output.
16647     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16648     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16649     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16650       lt_prog_compiler_pic_works_GCJ=yes
16651     fi
16652   fi
16653   $rm conftest*
16654
16655fi
16656{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16657echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16658
16659if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16660    case $lt_prog_compiler_pic_GCJ in
16661     "" | " "*) ;;
16662     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16663     esac
16664else
16665    lt_prog_compiler_pic_GCJ=
16666     lt_prog_compiler_can_build_shared_GCJ=no
16667fi
16668
16669fi
16670case $host_os in
16671  # For platforms which do not support PIC, -DPIC is meaningless:
16672  *djgpp*)
16673    lt_prog_compiler_pic_GCJ=
16674    ;;
16675  *)
16676    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16677    ;;
16678esac
16679
16680#
16681# Check to make sure the static flag actually works.
16682#
16683wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16684{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16685echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16686if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16687  echo $ECHO_N "(cached) $ECHO_C" >&6
16688else
16689  lt_prog_compiler_static_works_GCJ=no
16690   save_LDFLAGS="$LDFLAGS"
16691   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16692   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16693   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16694     # The linker can only warn and ignore the option if not recognized
16695     # So say no if there are warnings
16696     if test -s conftest.err; then
16697       # Append any errors to the config.log.
16698       cat conftest.err 1>&5
16699       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16700       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16701       if diff conftest.exp conftest.er2 >/dev/null; then
16702         lt_prog_compiler_static_works_GCJ=yes
16703       fi
16704     else
16705       lt_prog_compiler_static_works_GCJ=yes
16706     fi
16707   fi
16708   $rm conftest*
16709   LDFLAGS="$save_LDFLAGS"
16710
16711fi
16712{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16713echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16714
16715if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16716    :
16717else
16718    lt_prog_compiler_static_GCJ=
16719fi
16720
16721
16722{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16723echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16724if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16725  echo $ECHO_N "(cached) $ECHO_C" >&6
16726else
16727  lt_cv_prog_compiler_c_o_GCJ=no
16728   $rm -r conftest 2>/dev/null
16729   mkdir conftest
16730   cd conftest
16731   mkdir out
16732   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16733
16734   lt_compiler_flag="-o out/conftest2.$ac_objext"
16735   # Insert the option either (1) after the last *FLAGS variable, or
16736   # (2) before a word containing "conftest.", or (3) at the end.
16737   # Note that $ac_compile itself does not contain backslashes and begins
16738   # with a dollar sign (not a hyphen), so the echo should work correctly.
16739   lt_compile=`echo "$ac_compile" | $SED \
16740   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16741   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16742   -e 's:$: $lt_compiler_flag:'`
16743   (eval echo "\"\$as_me:16743: $lt_compile\"" >&5)
16744   (eval "$lt_compile" 2>out/conftest.err)
16745   ac_status=$?
16746   cat out/conftest.err >&5
16747   echo "$as_me:16747: \$? = $ac_status" >&5
16748   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16749   then
16750     # The compiler can only warn and ignore the option if not recognized
16751     # So say no if there are warnings
16752     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16753     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16754     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16755       lt_cv_prog_compiler_c_o_GCJ=yes
16756     fi
16757   fi
16758   chmod u+w . 2>&5
16759   $rm conftest*
16760   # SGI C++ compiler will create directory out/ii_files/ for
16761   # template instantiation
16762   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16763   $rm out/* && rmdir out
16764   cd ..
16765   rmdir conftest
16766   $rm conftest*
16767
16768fi
16769{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16770echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16771
16772
16773hard_links="nottested"
16774if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16775  # do not overwrite the value of need_locks provided by the user
16776  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16777echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16778  hard_links=yes
16779  $rm conftest*
16780  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16781  touch conftest.a
16782  ln conftest.a conftest.b 2>&5 || hard_links=no
16783  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16784  { echo "$as_me:$LINENO: result: $hard_links" >&5
16785echo "${ECHO_T}$hard_links" >&6; }
16786  if test "$hard_links" = no; then
16787    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16788echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16789    need_locks=warn
16790  fi
16791else
16792  need_locks=no
16793fi
16794
16795{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16796echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16797
16798  runpath_var=
16799  allow_undefined_flag_GCJ=
16800  enable_shared_with_static_runtimes_GCJ=no
16801  archive_cmds_GCJ=
16802  archive_expsym_cmds_GCJ=
16803  old_archive_From_new_cmds_GCJ=
16804  old_archive_from_expsyms_cmds_GCJ=
16805  export_dynamic_flag_spec_GCJ=
16806  whole_archive_flag_spec_GCJ=
16807  thread_safe_flag_spec_GCJ=
16808  hardcode_libdir_flag_spec_GCJ=
16809  hardcode_libdir_flag_spec_ld_GCJ=
16810  hardcode_libdir_separator_GCJ=
16811  hardcode_direct_GCJ=no
16812  hardcode_minus_L_GCJ=no
16813  hardcode_shlibpath_var_GCJ=unsupported
16814  link_all_deplibs_GCJ=unknown
16815  hardcode_automatic_GCJ=no
16816  module_cmds_GCJ=
16817  module_expsym_cmds_GCJ=
16818  always_export_symbols_GCJ=no
16819  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16820  # include_expsyms should be a list of space-separated symbols to be *always*
16821  # included in the symbol list
16822  include_expsyms_GCJ=
16823  # exclude_expsyms can be an extended regexp of symbols to exclude
16824  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16825  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16826  # as well as any symbol that contains `d'.
16827  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16828  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16829  # platforms (ab)use it in PIC code, but their linkers get confused if
16830  # the symbol is explicitly referenced.  Since portable code cannot
16831  # rely on this symbol name, it's probably fine to never include it in
16832  # preloaded symbol tables.
16833  extract_expsyms_cmds=
16834  # Just being paranoid about ensuring that cc_basename is set.
16835  for cc_temp in $compiler""; do
16836  case $cc_temp in
16837    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16838    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16839    \-*) ;;
16840    *) break;;
16841  esac
16842done
16843cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16844
16845  case $host_os in
16846  cygwin* | mingw* | pw32*)
16847    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16848    # When not using gcc, we currently assume that we are using
16849    # Microsoft Visual C++.
16850    if test "$GCC" != yes; then
16851      with_gnu_ld=no
16852    fi
16853    ;;
16854  interix*)
16855    # we just hope/assume this is gcc and not c89 (= MSVC++)
16856    with_gnu_ld=yes
16857    ;;
16858  openbsd*)
16859    with_gnu_ld=no
16860    ;;
16861  esac
16862
16863  ld_shlibs_GCJ=yes
16864  if test "$with_gnu_ld" = yes; then
16865    # If archive_cmds runs LD, not CC, wlarc should be empty
16866    wlarc='${wl}'
16867
16868    # Set some defaults for GNU ld with shared library support. These
16869    # are reset later if shared libraries are not supported. Putting them
16870    # here allows them to be overridden if necessary.
16871    runpath_var=LD_RUN_PATH
16872    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16873    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16874    # ancient GNU ld didn't support --whole-archive et. al.
16875    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16876	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16877      else
16878  	whole_archive_flag_spec_GCJ=
16879    fi
16880    supports_anon_versioning=no
16881    case `$LD -v 2>/dev/null` in
16882      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16883      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16884      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16885      *\ 2.11.*) ;; # other 2.11 versions
16886      *) supports_anon_versioning=yes ;;
16887    esac
16888
16889    # See if GNU ld supports shared libraries.
16890    case $host_os in
16891    aix3* | aix4* | aix5*)
16892      # On AIX/PPC, the GNU linker is very broken
16893      if test "$host_cpu" != ia64; then
16894	ld_shlibs_GCJ=no
16895	cat <<EOF 1>&2
16896
16897*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16898*** to be unable to reliably create shared libraries on AIX.
16899*** Therefore, libtool is disabling shared libraries support.  If you
16900*** really care for shared libraries, you may want to modify your PATH
16901*** so that a non-GNU linker is found, and then restart.
16902
16903EOF
16904      fi
16905      ;;
16906
16907    amigaos*)
16908      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)'
16909      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16910      hardcode_minus_L_GCJ=yes
16911
16912      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16913      # that the semantics of dynamic libraries on AmigaOS, at least up
16914      # to version 4, is to share data among multiple programs linked
16915      # with the same dynamic library.  Since this doesn't match the
16916      # behavior of shared libraries on other platforms, we can't use
16917      # them.
16918      ld_shlibs_GCJ=no
16919      ;;
16920
16921    beos*)
16922      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16923	allow_undefined_flag_GCJ=unsupported
16924	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16925	# support --undefined.  This deserves some investigation.  FIXME
16926	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16927      else
16928	ld_shlibs_GCJ=no
16929      fi
16930      ;;
16931
16932    cygwin* | mingw* | pw32*)
16933      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16934      # as there is no search path for DLLs.
16935      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16936      allow_undefined_flag_GCJ=unsupported
16937      always_export_symbols_GCJ=no
16938      enable_shared_with_static_runtimes_GCJ=yes
16939      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16940
16941      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16942        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16943	# If the export-symbols file already is a .def file (1st line
16944	# is EXPORTS), use it as is; otherwise, prepend...
16945	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16946	  cp $export_symbols $output_objdir/$soname.def;
16947	else
16948	  echo EXPORTS > $output_objdir/$soname.def;
16949	  cat $export_symbols >> $output_objdir/$soname.def;
16950	fi~
16951	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16952      else
16953	ld_shlibs_GCJ=no
16954      fi
16955      ;;
16956
16957    interix[3-9]*)
16958      hardcode_direct_GCJ=no
16959      hardcode_shlibpath_var_GCJ=no
16960      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16961      export_dynamic_flag_spec_GCJ='${wl}-E'
16962      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16963      # Instead, shared libraries are loaded at an image base (0x10000000 by
16964      # default) and relocated if they conflict, which is a slow very memory
16965      # consuming and fragmenting process.  To avoid this, we pick a random,
16966      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16967      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16968      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16969      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16970      ;;
16971
16972    gnu* | linux* | k*bsd*-gnu)
16973      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16974	tmp_addflag=
16975	case $cc_basename,$host_cpu in
16976	pgcc*)				# Portland Group C compiler
16977	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16978	  tmp_addflag=' $pic_flag'
16979	  ;;
16980	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16981	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16982	  tmp_addflag=' $pic_flag -Mnomain' ;;
16983	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16984	  tmp_addflag=' -i_dynamic' ;;
16985	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16986	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16987	ifc* | ifort*)			# Intel Fortran compiler
16988	  tmp_addflag=' -nofor_main' ;;
16989	esac
16990	case `$CC -V 2>&1 | sed 5q` in
16991	*Sun\ C*)			# Sun C 5.9
16992	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16993	  tmp_sharedflag='-G' ;;
16994	*Sun\ F*)			# Sun Fortran 8.3
16995	  tmp_sharedflag='-G' ;;
16996	*)
16997	  tmp_sharedflag='-shared' ;;
16998	esac
16999	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17000
17001	if test $supports_anon_versioning = yes; then
17002	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17003  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17004  $echo "local: *; };" >> $output_objdir/$libname.ver~
17005	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17006	fi
17007      else
17008	ld_shlibs_GCJ=no
17009      fi
17010      ;;
17011
17012    netbsd*)
17013      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17014	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17015	wlarc=
17016      else
17017	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17018	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17019      fi
17020      ;;
17021
17022    solaris*)
17023      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17024	ld_shlibs_GCJ=no
17025	cat <<EOF 1>&2
17026
17027*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17028*** create shared libraries on Solaris systems.  Therefore, libtool
17029*** is disabling shared libraries support.  We urge you to upgrade GNU
17030*** binutils to release 2.9.1 or newer.  Another option is to modify
17031*** your PATH or compiler configuration so that the native linker is
17032*** used, and then restart.
17033
17034EOF
17035      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17036	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17037	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17038      else
17039	ld_shlibs_GCJ=no
17040      fi
17041      ;;
17042
17043    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17044      case `$LD -v 2>&1` in
17045        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17046	ld_shlibs_GCJ=no
17047	cat <<_LT_EOF 1>&2
17048
17049*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17050*** reliably create shared libraries on SCO systems.  Therefore, libtool
17051*** is disabling shared libraries support.  We urge you to upgrade GNU
17052*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17053*** your PATH or compiler configuration so that the native linker is
17054*** used, and then restart.
17055
17056_LT_EOF
17057	;;
17058	*)
17059	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17060	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17061	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17062	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17063	  else
17064	    ld_shlibs_GCJ=no
17065	  fi
17066	;;
17067      esac
17068      ;;
17069
17070    sunos4*)
17071      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17072      wlarc=
17073      hardcode_direct_GCJ=yes
17074      hardcode_shlibpath_var_GCJ=no
17075      ;;
17076
17077    *)
17078      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17079	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17080	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17081      else
17082	ld_shlibs_GCJ=no
17083      fi
17084      ;;
17085    esac
17086
17087    if test "$ld_shlibs_GCJ" = no; then
17088      runpath_var=
17089      hardcode_libdir_flag_spec_GCJ=
17090      export_dynamic_flag_spec_GCJ=
17091      whole_archive_flag_spec_GCJ=
17092    fi
17093  else
17094    # PORTME fill in a description of your system's linker (not GNU ld)
17095    case $host_os in
17096    aix3*)
17097      allow_undefined_flag_GCJ=unsupported
17098      always_export_symbols_GCJ=yes
17099      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'
17100      # Note: this linker hardcodes the directories in LIBPATH if there
17101      # are no directories specified by -L.
17102      hardcode_minus_L_GCJ=yes
17103      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17104	# Neither direct hardcoding nor static linking is supported with a
17105	# broken collect2.
17106	hardcode_direct_GCJ=unsupported
17107      fi
17108      ;;
17109
17110    aix4* | aix5*)
17111      if test "$host_cpu" = ia64; then
17112	# On IA64, the linker does run time linking by default, so we don't
17113	# have to do anything special.
17114	aix_use_runtimelinking=no
17115	exp_sym_flag='-Bexport'
17116	no_entry_flag=""
17117      else
17118	# If we're using GNU nm, then we don't want the "-C" option.
17119	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17120	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17121	  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'
17122	else
17123	  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'
17124	fi
17125	aix_use_runtimelinking=no
17126
17127	# Test if we are trying to use run time linking or normal
17128	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17129	# need to do runtime linking.
17130	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17131	  for ld_flag in $LDFLAGS; do
17132  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17133  	    aix_use_runtimelinking=yes
17134  	    break
17135  	  fi
17136	  done
17137	  ;;
17138	esac
17139
17140	exp_sym_flag='-bexport'
17141	no_entry_flag='-bnoentry'
17142      fi
17143
17144      # When large executables or shared objects are built, AIX ld can
17145      # have problems creating the table of contents.  If linking a library
17146      # or program results in "error TOC overflow" add -mminimal-toc to
17147      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17148      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17149
17150      archive_cmds_GCJ=''
17151      hardcode_direct_GCJ=yes
17152      hardcode_libdir_separator_GCJ=':'
17153      link_all_deplibs_GCJ=yes
17154
17155      if test "$GCC" = yes; then
17156	case $host_os in aix4.[012]|aix4.[012].*)
17157	# We only want to do this on AIX 4.2 and lower, the check
17158	# below for broken collect2 doesn't work under 4.3+
17159	  collect2name=`${CC} -print-prog-name=collect2`
17160	  if test -f "$collect2name" && \
17161  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17162	  then
17163  	  # We have reworked collect2
17164  	  :
17165	  else
17166  	  # We have old collect2
17167  	  hardcode_direct_GCJ=unsupported
17168  	  # It fails to find uninstalled libraries when the uninstalled
17169  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17170  	  # to unsupported forces relinking
17171  	  hardcode_minus_L_GCJ=yes
17172  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17173  	  hardcode_libdir_separator_GCJ=
17174	  fi
17175	  ;;
17176	esac
17177	shared_flag='-shared'
17178	if test "$aix_use_runtimelinking" = yes; then
17179	  shared_flag="$shared_flag "'${wl}-G'
17180	fi
17181      else
17182	# not using gcc
17183	if test "$host_cpu" = ia64; then
17184  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17185  	# chokes on -Wl,-G. The following line is correct:
17186	  shared_flag='-G'
17187	else
17188	  if test "$aix_use_runtimelinking" = yes; then
17189	    shared_flag='${wl}-G'
17190	  else
17191	    shared_flag='${wl}-bM:SRE'
17192	  fi
17193	fi
17194      fi
17195
17196      # It seems that -bexpall does not export symbols beginning with
17197      # underscore (_), so it is better to generate a list of symbols to export.
17198      always_export_symbols_GCJ=yes
17199      if test "$aix_use_runtimelinking" = yes; then
17200	# Warning - without using the other runtime loading flags (-brtl),
17201	# -berok will link without error, but may produce a broken library.
17202	allow_undefined_flag_GCJ='-berok'
17203       # Determine the default libpath from the value encoded in an empty executable.
17204       cat >conftest.$ac_ext <<_ACEOF
17205/* confdefs.h.  */
17206_ACEOF
17207cat confdefs.h >>conftest.$ac_ext
17208cat >>conftest.$ac_ext <<_ACEOF
17209/* end confdefs.h.  */
17210
17211int
17212main ()
17213{
17214
17215  ;
17216  return 0;
17217}
17218_ACEOF
17219rm -f conftest.$ac_objext conftest$ac_exeext
17220if { (ac_try="$ac_link"
17221case "(($ac_try" in
17222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223  *) ac_try_echo=$ac_try;;
17224esac
17225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17226  (eval "$ac_link") 2>conftest.er1
17227  ac_status=$?
17228  grep -v '^ *+' conftest.er1 >conftest.err
17229  rm -f conftest.er1
17230  cat conftest.err >&5
17231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232  (exit $ac_status); } && {
17233	 test -z "$ac_c_werror_flag" ||
17234	 test ! -s conftest.err
17235       } && test -s conftest$ac_exeext &&
17236       $as_test_x conftest$ac_exeext; then
17237
17238lt_aix_libpath_sed='
17239    /Import File Strings/,/^$/ {
17240	/^0/ {
17241	    s/^0  *\(.*\)$/\1/
17242	    p
17243	}
17244    }'
17245aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17246# Check for a 64-bit object if we didn't find anything.
17247if test -z "$aix_libpath"; then
17248  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17249fi
17250else
17251  echo "$as_me: failed program was:" >&5
17252sed 's/^/| /' conftest.$ac_ext >&5
17253
17254
17255fi
17256
17257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17258      conftest$ac_exeext conftest.$ac_ext
17259if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17260
17261       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17262	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17263       else
17264	if test "$host_cpu" = ia64; then
17265	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17266	  allow_undefined_flag_GCJ="-z nodefs"
17267	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17268	else
17269	 # Determine the default libpath from the value encoded in an empty executable.
17270	 cat >conftest.$ac_ext <<_ACEOF
17271/* confdefs.h.  */
17272_ACEOF
17273cat confdefs.h >>conftest.$ac_ext
17274cat >>conftest.$ac_ext <<_ACEOF
17275/* end confdefs.h.  */
17276
17277int
17278main ()
17279{
17280
17281  ;
17282  return 0;
17283}
17284_ACEOF
17285rm -f conftest.$ac_objext conftest$ac_exeext
17286if { (ac_try="$ac_link"
17287case "(($ac_try" in
17288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17289  *) ac_try_echo=$ac_try;;
17290esac
17291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17292  (eval "$ac_link") 2>conftest.er1
17293  ac_status=$?
17294  grep -v '^ *+' conftest.er1 >conftest.err
17295  rm -f conftest.er1
17296  cat conftest.err >&5
17297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298  (exit $ac_status); } && {
17299	 test -z "$ac_c_werror_flag" ||
17300	 test ! -s conftest.err
17301       } && test -s conftest$ac_exeext &&
17302       $as_test_x conftest$ac_exeext; then
17303
17304lt_aix_libpath_sed='
17305    /Import File Strings/,/^$/ {
17306	/^0/ {
17307	    s/^0  *\(.*\)$/\1/
17308	    p
17309	}
17310    }'
17311aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17312# Check for a 64-bit object if we didn't find anything.
17313if test -z "$aix_libpath"; then
17314  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17315fi
17316else
17317  echo "$as_me: failed program was:" >&5
17318sed 's/^/| /' conftest.$ac_ext >&5
17319
17320
17321fi
17322
17323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17324      conftest$ac_exeext conftest.$ac_ext
17325if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17326
17327	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17328	  # Warning - without using the other run time loading flags,
17329	  # -berok will link without error, but may produce a broken library.
17330	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17331	  allow_undefined_flag_GCJ=' ${wl}-berok'
17332	  # Exported symbols can be pulled into shared objects from archives
17333	  whole_archive_flag_spec_GCJ='$convenience'
17334	  archive_cmds_need_lc_GCJ=yes
17335	  # This is similar to how AIX traditionally builds its shared libraries.
17336	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17337	fi
17338      fi
17339      ;;
17340
17341    amigaos*)
17342      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)'
17343      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17344      hardcode_minus_L_GCJ=yes
17345      # see comment about different semantics on the GNU ld section
17346      ld_shlibs_GCJ=no
17347      ;;
17348
17349    bsdi[45]*)
17350      export_dynamic_flag_spec_GCJ=-rdynamic
17351      ;;
17352
17353    cygwin* | mingw* | pw32*)
17354      # When not using gcc, we currently assume that we are using
17355      # Microsoft Visual C++.
17356      # hardcode_libdir_flag_spec is actually meaningless, as there is
17357      # no search path for DLLs.
17358      hardcode_libdir_flag_spec_GCJ=' '
17359      allow_undefined_flag_GCJ=unsupported
17360      # Tell ltmain to make .lib files, not .a files.
17361      libext=lib
17362      # Tell ltmain to make .dll files, not .so files.
17363      shrext_cmds=".dll"
17364      # FIXME: Setting linknames here is a bad hack.
17365      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17366      # The linker will automatically build a .lib file if we build a DLL.
17367      old_archive_From_new_cmds_GCJ='true'
17368      # FIXME: Should let the user specify the lib program.
17369      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17370      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17371      enable_shared_with_static_runtimes_GCJ=yes
17372      ;;
17373
17374    darwin* | rhapsody*)
17375      case $host_os in
17376        rhapsody* | darwin1.[012])
17377         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17378         ;;
17379       *) # Darwin 1.3 on
17380         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17381           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17382         else
17383           case ${MACOSX_DEPLOYMENT_TARGET} in
17384             10.[012])
17385               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17386               ;;
17387             10.*)
17388               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17389               ;;
17390           esac
17391         fi
17392         ;;
17393      esac
17394      archive_cmds_need_lc_GCJ=no
17395      hardcode_direct_GCJ=no
17396      hardcode_automatic_GCJ=yes
17397      hardcode_shlibpath_var_GCJ=unsupported
17398      whole_archive_flag_spec_GCJ=''
17399      link_all_deplibs_GCJ=yes
17400    if test "$GCC" = yes ; then
17401    	output_verbose_link_cmd='echo'
17402        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17403      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17404      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17405      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17406      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17407    else
17408      case $cc_basename in
17409        xlc*)
17410         output_verbose_link_cmd='echo'
17411         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17412         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17413          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17414         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17415          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17416          ;;
17417       *)
17418         ld_shlibs_GCJ=no
17419          ;;
17420      esac
17421    fi
17422      ;;
17423
17424    dgux*)
17425      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17426      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17427      hardcode_shlibpath_var_GCJ=no
17428      ;;
17429
17430    freebsd1*)
17431      ld_shlibs_GCJ=no
17432      ;;
17433
17434    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17435    # support.  Future versions do this automatically, but an explicit c++rt0.o
17436    # does not break anything, and helps significantly (at the cost of a little
17437    # extra space).
17438    freebsd2.2*)
17439      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17440      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17441      hardcode_direct_GCJ=yes
17442      hardcode_shlibpath_var_GCJ=no
17443      ;;
17444
17445    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17446    freebsd2*)
17447      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17448      hardcode_direct_GCJ=yes
17449      hardcode_minus_L_GCJ=yes
17450      hardcode_shlibpath_var_GCJ=no
17451      ;;
17452
17453    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17454    freebsd* | dragonfly*)
17455      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17456      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17457      hardcode_direct_GCJ=yes
17458      hardcode_shlibpath_var_GCJ=no
17459      ;;
17460
17461    hpux9*)
17462      if test "$GCC" = yes; then
17463	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17464      else
17465	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'
17466      fi
17467      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17468      hardcode_libdir_separator_GCJ=:
17469      hardcode_direct_GCJ=yes
17470
17471      # hardcode_minus_L: Not really in the search PATH,
17472      # but as the default location of the library.
17473      hardcode_minus_L_GCJ=yes
17474      export_dynamic_flag_spec_GCJ='${wl}-E'
17475      ;;
17476
17477    hpux10*)
17478      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17479	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17480      else
17481	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17482      fi
17483      if test "$with_gnu_ld" = no; then
17484	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17485	hardcode_libdir_separator_GCJ=:
17486
17487	hardcode_direct_GCJ=yes
17488	export_dynamic_flag_spec_GCJ='${wl}-E'
17489
17490	# hardcode_minus_L: Not really in the search PATH,
17491	# but as the default location of the library.
17492	hardcode_minus_L_GCJ=yes
17493      fi
17494      ;;
17495
17496    hpux11*)
17497      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17498	case $host_cpu in
17499	hppa*64*)
17500	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17501	  ;;
17502	ia64*)
17503	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17504	  ;;
17505	*)
17506	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17507	  ;;
17508	esac
17509      else
17510	case $host_cpu in
17511	hppa*64*)
17512	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17513	  ;;
17514	ia64*)
17515	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17516	  ;;
17517	*)
17518	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17519	  ;;
17520	esac
17521      fi
17522      if test "$with_gnu_ld" = no; then
17523	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17524	hardcode_libdir_separator_GCJ=:
17525
17526	case $host_cpu in
17527	hppa*64*|ia64*)
17528	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17529	  hardcode_direct_GCJ=no
17530	  hardcode_shlibpath_var_GCJ=no
17531	  ;;
17532	*)
17533	  hardcode_direct_GCJ=yes
17534	  export_dynamic_flag_spec_GCJ='${wl}-E'
17535
17536	  # hardcode_minus_L: Not really in the search PATH,
17537	  # but as the default location of the library.
17538	  hardcode_minus_L_GCJ=yes
17539	  ;;
17540	esac
17541      fi
17542      ;;
17543
17544    irix5* | irix6* | nonstopux*)
17545      if test "$GCC" = yes; then
17546	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17547      else
17548	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'
17549	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17550      fi
17551      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17552      hardcode_libdir_separator_GCJ=:
17553      link_all_deplibs_GCJ=yes
17554      ;;
17555
17556    netbsd*)
17557      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17558	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17559      else
17560	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17561      fi
17562      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17563      hardcode_direct_GCJ=yes
17564      hardcode_shlibpath_var_GCJ=no
17565      ;;
17566
17567    newsos6)
17568      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17569      hardcode_direct_GCJ=yes
17570      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17571      hardcode_libdir_separator_GCJ=:
17572      hardcode_shlibpath_var_GCJ=no
17573      ;;
17574
17575    openbsd*)
17576      if test -f /usr/libexec/ld.so; then
17577	hardcode_direct_GCJ=yes
17578	hardcode_shlibpath_var_GCJ=no
17579	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17580	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17581	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17582	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17583	  export_dynamic_flag_spec_GCJ='${wl}-E'
17584	else
17585	  case $host_os in
17586	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17587	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17588	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
17589	     ;;
17590	   *)
17591	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17592	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17593	     ;;
17594	  esac
17595        fi
17596      else
17597	ld_shlibs_GCJ=no
17598      fi
17599      ;;
17600
17601    os2*)
17602      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17603      hardcode_minus_L_GCJ=yes
17604      allow_undefined_flag_GCJ=unsupported
17605      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17606      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17607      ;;
17608
17609    osf3*)
17610      if test "$GCC" = yes; then
17611	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17612	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17613      else
17614	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17615	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'
17616      fi
17617      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17618      hardcode_libdir_separator_GCJ=:
17619      ;;
17620
17621    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17622      if test "$GCC" = yes; then
17623	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17624	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17625	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17626      else
17627	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17628	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'
17629	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~
17630	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17631
17632	# Both c and cxx compiler support -rpath directly
17633	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17634      fi
17635      hardcode_libdir_separator_GCJ=:
17636      ;;
17637
17638    solaris*)
17639      no_undefined_flag_GCJ=' -z text'
17640      if test "$GCC" = yes; then
17641	wlarc='${wl}'
17642	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17643	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17644	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17645      else
17646	wlarc=''
17647	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17648	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17649  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17650      fi
17651      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17652      hardcode_shlibpath_var_GCJ=no
17653      case $host_os in
17654      solaris2.[0-5] | solaris2.[0-5].*) ;;
17655      *)
17656	# The compiler driver will combine and reorder linker options,
17657	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17658	# but is careful enough not to reorder.
17659 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17660	if test "$GCC" = yes; then
17661	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17662	else
17663	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17664	fi
17665	;;
17666      esac
17667      link_all_deplibs_GCJ=yes
17668      ;;
17669
17670    sunos4*)
17671      if test "x$host_vendor" = xsequent; then
17672	# Use $CC to link under sequent, because it throws in some extra .o
17673	# files that make .init and .fini sections work.
17674	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17675      else
17676	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17677      fi
17678      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17679      hardcode_direct_GCJ=yes
17680      hardcode_minus_L_GCJ=yes
17681      hardcode_shlibpath_var_GCJ=no
17682      ;;
17683
17684    sysv4)
17685      case $host_vendor in
17686	sni)
17687	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17688	  hardcode_direct_GCJ=yes # is this really true???
17689	;;
17690	siemens)
17691	  ## LD is ld it makes a PLAMLIB
17692	  ## CC just makes a GrossModule.
17693	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17694	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17695	  hardcode_direct_GCJ=no
17696        ;;
17697	motorola)
17698	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17699	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17700	;;
17701      esac
17702      runpath_var='LD_RUN_PATH'
17703      hardcode_shlibpath_var_GCJ=no
17704      ;;
17705
17706    sysv4.3*)
17707      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17708      hardcode_shlibpath_var_GCJ=no
17709      export_dynamic_flag_spec_GCJ='-Bexport'
17710      ;;
17711
17712    sysv4*MP*)
17713      if test -d /usr/nec; then
17714	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17715	hardcode_shlibpath_var_GCJ=no
17716	runpath_var=LD_RUN_PATH
17717	hardcode_runpath_var=yes
17718	ld_shlibs_GCJ=yes
17719      fi
17720      ;;
17721
17722    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17723      no_undefined_flag_GCJ='${wl}-z,text'
17724      archive_cmds_need_lc_GCJ=no
17725      hardcode_shlibpath_var_GCJ=no
17726      runpath_var='LD_RUN_PATH'
17727
17728      if test "$GCC" = yes; then
17729	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17730	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17731      else
17732	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17733	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17734      fi
17735      ;;
17736
17737    sysv5* | sco3.2v5* | sco5v6*)
17738      # Note: We can NOT use -z defs as we might desire, because we do not
17739      # link with -lc, and that would cause any symbols used from libc to
17740      # always be unresolved, which means just about no library would
17741      # ever link correctly.  If we're not using GNU ld we use -z text
17742      # though, which does catch some bad symbols but isn't as heavy-handed
17743      # as -z defs.
17744      no_undefined_flag_GCJ='${wl}-z,text'
17745      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17746      archive_cmds_need_lc_GCJ=no
17747      hardcode_shlibpath_var_GCJ=no
17748      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17749      hardcode_libdir_separator_GCJ=':'
17750      link_all_deplibs_GCJ=yes
17751      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17752      runpath_var='LD_RUN_PATH'
17753
17754      if test "$GCC" = yes; then
17755	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17756	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17757      else
17758	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17759	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17760      fi
17761      ;;
17762
17763    uts4*)
17764      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17765      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17766      hardcode_shlibpath_var_GCJ=no
17767      ;;
17768
17769    *)
17770      ld_shlibs_GCJ=no
17771      ;;
17772    esac
17773  fi
17774
17775{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17776echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17777test "$ld_shlibs_GCJ" = no && can_build_shared=no
17778
17779#
17780# Do we need to explicitly link libc?
17781#
17782case "x$archive_cmds_need_lc_GCJ" in
17783x|xyes)
17784  # Assume -lc should be added
17785  archive_cmds_need_lc_GCJ=yes
17786
17787  if test "$enable_shared" = yes && test "$GCC" = yes; then
17788    case $archive_cmds_GCJ in
17789    *'~'*)
17790      # FIXME: we may have to deal with multi-command sequences.
17791      ;;
17792    '$CC '*)
17793      # Test whether the compiler implicitly links with -lc since on some
17794      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17795      # to ld, don't add -lc before -lgcc.
17796      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17797echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17798      $rm conftest*
17799      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17800
17801      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17802  (eval $ac_compile) 2>&5
17803  ac_status=$?
17804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805  (exit $ac_status); } 2>conftest.err; then
17806        soname=conftest
17807        lib=conftest
17808        libobjs=conftest.$ac_objext
17809        deplibs=
17810        wl=$lt_prog_compiler_wl_GCJ
17811	pic_flag=$lt_prog_compiler_pic_GCJ
17812        compiler_flags=-v
17813        linker_flags=-v
17814        verstring=
17815        output_objdir=.
17816        libname=conftest
17817        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17818        allow_undefined_flag_GCJ=
17819        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17820  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17821  ac_status=$?
17822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823  (exit $ac_status); }
17824        then
17825	  archive_cmds_need_lc_GCJ=no
17826        else
17827	  archive_cmds_need_lc_GCJ=yes
17828        fi
17829        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17830      else
17831        cat conftest.err 1>&5
17832      fi
17833      $rm conftest*
17834      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17835echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17836      ;;
17837    esac
17838  fi
17839  ;;
17840esac
17841
17842{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17843echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17844library_names_spec=
17845libname_spec='lib$name'
17846soname_spec=
17847shrext_cmds=".so"
17848postinstall_cmds=
17849postuninstall_cmds=
17850finish_cmds=
17851finish_eval=
17852shlibpath_var=
17853shlibpath_overrides_runpath=unknown
17854version_type=none
17855dynamic_linker="$host_os ld.so"
17856sys_lib_dlsearch_path_spec="/lib /usr/lib"
17857
17858need_lib_prefix=unknown
17859hardcode_into_libs=no
17860
17861# when you set need_version to no, make sure it does not cause -set_version
17862# flags to be left without arguments
17863need_version=unknown
17864
17865case $host_os in
17866aix3*)
17867  version_type=linux
17868  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17869  shlibpath_var=LIBPATH
17870
17871  # AIX 3 has no versioning support, so we append a major version to the name.
17872  soname_spec='${libname}${release}${shared_ext}$major'
17873  ;;
17874
17875aix4* | aix5*)
17876  version_type=linux
17877  need_lib_prefix=no
17878  need_version=no
17879  hardcode_into_libs=yes
17880  if test "$host_cpu" = ia64; then
17881    # AIX 5 supports IA64
17882    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17883    shlibpath_var=LD_LIBRARY_PATH
17884  else
17885    # With GCC up to 2.95.x, collect2 would create an import file
17886    # for dependence libraries.  The import file would start with
17887    # the line `#! .'.  This would cause the generated library to
17888    # depend on `.', always an invalid library.  This was fixed in
17889    # development snapshots of GCC prior to 3.0.
17890    case $host_os in
17891      aix4 | aix4.[01] | aix4.[01].*)
17892      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17893	   echo ' yes '
17894	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17895	:
17896      else
17897	can_build_shared=no
17898      fi
17899      ;;
17900    esac
17901    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17902    # soname into executable. Probably we can add versioning support to
17903    # collect2, so additional links can be useful in future.
17904    if test "$aix_use_runtimelinking" = yes; then
17905      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17906      # instead of lib<name>.a to let people know that these are not
17907      # typical AIX shared libraries.
17908      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17909    else
17910      # We preserve .a as extension for shared libraries through AIX4.2
17911      # and later when we are not doing run time linking.
17912      library_names_spec='${libname}${release}.a $libname.a'
17913      soname_spec='${libname}${release}${shared_ext}$major'
17914    fi
17915    shlibpath_var=LIBPATH
17916  fi
17917  ;;
17918
17919amigaos*)
17920  library_names_spec='$libname.ixlibrary $libname.a'
17921  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17922  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'
17923  ;;
17924
17925beos*)
17926  library_names_spec='${libname}${shared_ext}'
17927  dynamic_linker="$host_os ld.so"
17928  shlibpath_var=LIBRARY_PATH
17929  ;;
17930
17931bsdi[45]*)
17932  version_type=linux
17933  need_version=no
17934  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17935  soname_spec='${libname}${release}${shared_ext}$major'
17936  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17937  shlibpath_var=LD_LIBRARY_PATH
17938  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17939  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17940  # the default ld.so.conf also contains /usr/contrib/lib and
17941  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17942  # libtool to hard-code these into programs
17943  ;;
17944
17945cygwin* | mingw* | pw32*)
17946  version_type=windows
17947  shrext_cmds=".dll"
17948  need_version=no
17949  need_lib_prefix=no
17950
17951  case $GCC,$host_os in
17952  yes,cygwin* | yes,mingw* | yes,pw32*)
17953    library_names_spec='$libname.dll.a'
17954    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17955    postinstall_cmds='base_file=`basename \${file}`~
17956      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17957      dldir=$destdir/`dirname \$dlpath`~
17958      test -d \$dldir || mkdir -p \$dldir~
17959      $install_prog $dir/$dlname \$dldir/$dlname~
17960      chmod a+x \$dldir/$dlname'
17961    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17962      dlpath=$dir/\$dldll~
17963       $rm \$dlpath'
17964    shlibpath_overrides_runpath=yes
17965
17966    case $host_os in
17967    cygwin*)
17968      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17969      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17970      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17971      ;;
17972    mingw*)
17973      # MinGW DLLs use traditional 'lib' prefix
17974      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17975      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17976      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17977        # It is most probably a Windows format PATH printed by
17978        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17979        # path with ; separators, and with drive letters. We can handle the
17980        # drive letters (cygwin fileutils understands them), so leave them,
17981        # especially as we might pass files found there to a mingw objdump,
17982        # which wouldn't understand a cygwinified path. Ahh.
17983        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17984      else
17985        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17986      fi
17987      ;;
17988    pw32*)
17989      # pw32 DLLs use 'pw' prefix rather than 'lib'
17990      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17991      ;;
17992    esac
17993    ;;
17994
17995  *)
17996    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17997    ;;
17998  esac
17999  dynamic_linker='Win32 ld.exe'
18000  # FIXME: first we should search . and the directory the executable is in
18001  shlibpath_var=PATH
18002  ;;
18003
18004darwin* | rhapsody*)
18005  dynamic_linker="$host_os dyld"
18006  version_type=darwin
18007  need_lib_prefix=no
18008  need_version=no
18009  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18010  soname_spec='${libname}${release}${major}$shared_ext'
18011  shlibpath_overrides_runpath=yes
18012  shlibpath_var=DYLD_LIBRARY_PATH
18013  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18014
18015  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18016  ;;
18017
18018dgux*)
18019  version_type=linux
18020  need_lib_prefix=no
18021  need_version=no
18022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18023  soname_spec='${libname}${release}${shared_ext}$major'
18024  shlibpath_var=LD_LIBRARY_PATH
18025  ;;
18026
18027freebsd1*)
18028  dynamic_linker=no
18029  ;;
18030
18031freebsd* | dragonfly*)
18032  # DragonFly does not have aout.  When/if they implement a new
18033  # versioning mechanism, adjust this.
18034  if test -x /usr/bin/objformat; then
18035    objformat=`/usr/bin/objformat`
18036  else
18037    case $host_os in
18038    freebsd[123]*) objformat=aout ;;
18039    *) objformat=elf ;;
18040    esac
18041  fi
18042  version_type=freebsd-$objformat
18043  case $version_type in
18044    freebsd-elf*)
18045      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18046      need_version=no
18047      need_lib_prefix=no
18048      ;;
18049    freebsd-*)
18050      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18051      need_version=yes
18052      ;;
18053  esac
18054  shlibpath_var=LD_LIBRARY_PATH
18055  case $host_os in
18056  freebsd2*)
18057    shlibpath_overrides_runpath=yes
18058    ;;
18059  freebsd3.[01]* | freebsdelf3.[01]*)
18060    shlibpath_overrides_runpath=yes
18061    hardcode_into_libs=yes
18062    ;;
18063  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18064  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18065    shlibpath_overrides_runpath=no
18066    hardcode_into_libs=yes
18067    ;;
18068  *) # from 4.6 on, and DragonFly
18069    shlibpath_overrides_runpath=yes
18070    hardcode_into_libs=yes
18071    ;;
18072  esac
18073  ;;
18074
18075gnu*)
18076  version_type=linux
18077  need_lib_prefix=no
18078  need_version=no
18079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18080  soname_spec='${libname}${release}${shared_ext}$major'
18081  shlibpath_var=LD_LIBRARY_PATH
18082  hardcode_into_libs=yes
18083  ;;
18084
18085hpux9* | hpux10* | hpux11*)
18086  # Give a soname corresponding to the major version so that dld.sl refuses to
18087  # link against other versions.
18088  version_type=sunos
18089  need_lib_prefix=no
18090  need_version=no
18091  case $host_cpu in
18092  ia64*)
18093    shrext_cmds='.so'
18094    hardcode_into_libs=yes
18095    dynamic_linker="$host_os dld.so"
18096    shlibpath_var=LD_LIBRARY_PATH
18097    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18098    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18099    soname_spec='${libname}${release}${shared_ext}$major'
18100    if test "X$HPUX_IA64_MODE" = X32; then
18101      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18102    else
18103      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18104    fi
18105    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18106    ;;
18107   hppa*64*)
18108     shrext_cmds='.sl'
18109     hardcode_into_libs=yes
18110     dynamic_linker="$host_os dld.sl"
18111     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18112     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18113     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18114     soname_spec='${libname}${release}${shared_ext}$major'
18115     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18116     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18117     ;;
18118   *)
18119    shrext_cmds='.sl'
18120    dynamic_linker="$host_os dld.sl"
18121    shlibpath_var=SHLIB_PATH
18122    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18123    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18124    soname_spec='${libname}${release}${shared_ext}$major'
18125    ;;
18126  esac
18127  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18128  postinstall_cmds='chmod 555 $lib'
18129  ;;
18130
18131interix[3-9]*)
18132  version_type=linux
18133  need_lib_prefix=no
18134  need_version=no
18135  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18136  soname_spec='${libname}${release}${shared_ext}$major'
18137  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18138  shlibpath_var=LD_LIBRARY_PATH
18139  shlibpath_overrides_runpath=no
18140  hardcode_into_libs=yes
18141  ;;
18142
18143irix5* | irix6* | nonstopux*)
18144  case $host_os in
18145    nonstopux*) version_type=nonstopux ;;
18146    *)
18147	if test "$lt_cv_prog_gnu_ld" = yes; then
18148		version_type=linux
18149	else
18150		version_type=irix
18151	fi ;;
18152  esac
18153  need_lib_prefix=no
18154  need_version=no
18155  soname_spec='${libname}${release}${shared_ext}$major'
18156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18157  case $host_os in
18158  irix5* | nonstopux*)
18159    libsuff= shlibsuff=
18160    ;;
18161  *)
18162    case $LD in # libtool.m4 will add one of these switches to LD
18163    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18164      libsuff= shlibsuff= libmagic=32-bit;;
18165    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18166      libsuff=32 shlibsuff=N32 libmagic=N32;;
18167    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18168      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18169    *) libsuff= shlibsuff= libmagic=never-match;;
18170    esac
18171    ;;
18172  esac
18173  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18174  shlibpath_overrides_runpath=no
18175  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18176  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18177  hardcode_into_libs=yes
18178  ;;
18179
18180# No shared lib support for Linux oldld, aout, or coff.
18181linux*oldld* | linux*aout* | linux*coff*)
18182  dynamic_linker=no
18183  ;;
18184
18185# This must be Linux ELF.
18186linux* | k*bsd*-gnu)
18187  version_type=linux
18188  need_lib_prefix=no
18189  need_version=no
18190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18191  soname_spec='${libname}${release}${shared_ext}$major'
18192  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18193  shlibpath_var=LD_LIBRARY_PATH
18194  shlibpath_overrides_runpath=no
18195  # This implies no fast_install, which is unacceptable.
18196  # Some rework will be needed to allow for fast_install
18197  # before this can be enabled.
18198  hardcode_into_libs=yes
18199  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18200  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18201
18202  # Append ld.so.conf contents to the search path
18203  if test -f /etc/ld.so.conf; then
18204    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18205    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18206  fi
18207
18208  # We used to test for /lib/ld.so.1 and disable shared libraries on
18209  # powerpc, because MkLinux only supported shared libraries with the
18210  # GNU dynamic linker.  Since this was broken with cross compilers,
18211  # most powerpc-linux boxes support dynamic linking these days and
18212  # people can always --disable-shared, the test was removed, and we
18213  # assume the GNU/Linux dynamic linker is in use.
18214  dynamic_linker='GNU/Linux ld.so'
18215  ;;
18216
18217netbsd*)
18218  version_type=sunos
18219  need_lib_prefix=no
18220  need_version=no
18221  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18222    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18223    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18224    dynamic_linker='NetBSD (a.out) ld.so'
18225  else
18226    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18227    soname_spec='${libname}${release}${shared_ext}$major'
18228    dynamic_linker='NetBSD ld.elf_so'
18229  fi
18230  shlibpath_var=LD_LIBRARY_PATH
18231  shlibpath_overrides_runpath=yes
18232  hardcode_into_libs=yes
18233  ;;
18234
18235newsos6)
18236  version_type=linux
18237  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18238  shlibpath_var=LD_LIBRARY_PATH
18239  shlibpath_overrides_runpath=yes
18240  ;;
18241
18242nto-qnx*)
18243  version_type=linux
18244  need_lib_prefix=no
18245  need_version=no
18246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18247  soname_spec='${libname}${release}${shared_ext}$major'
18248  shlibpath_var=LD_LIBRARY_PATH
18249  shlibpath_overrides_runpath=yes
18250  ;;
18251
18252openbsd*)
18253  version_type=sunos
18254  sys_lib_dlsearch_path_spec="/usr/lib"
18255  need_lib_prefix=no
18256  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18257  case $host_os in
18258    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18259    *)                         need_version=no  ;;
18260  esac
18261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18262  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18263  shlibpath_var=LD_LIBRARY_PATH
18264  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18265    case $host_os in
18266      openbsd2.[89] | openbsd2.[89].*)
18267	shlibpath_overrides_runpath=no
18268	;;
18269      *)
18270	shlibpath_overrides_runpath=yes
18271	;;
18272      esac
18273  else
18274    shlibpath_overrides_runpath=yes
18275  fi
18276  ;;
18277
18278os2*)
18279  libname_spec='$name'
18280  shrext_cmds=".dll"
18281  need_lib_prefix=no
18282  library_names_spec='$libname${shared_ext} $libname.a'
18283  dynamic_linker='OS/2 ld.exe'
18284  shlibpath_var=LIBPATH
18285  ;;
18286
18287osf3* | osf4* | osf5*)
18288  version_type=osf
18289  need_lib_prefix=no
18290  need_version=no
18291  soname_spec='${libname}${release}${shared_ext}$major'
18292  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18293  shlibpath_var=LD_LIBRARY_PATH
18294  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18295  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18296  ;;
18297
18298rdos*)
18299  dynamic_linker=no
18300  ;;
18301
18302solaris*)
18303  version_type=linux
18304  need_lib_prefix=no
18305  need_version=no
18306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18307  soname_spec='${libname}${release}${shared_ext}$major'
18308  shlibpath_var=LD_LIBRARY_PATH
18309  shlibpath_overrides_runpath=yes
18310  hardcode_into_libs=yes
18311  # ldd complains unless libraries are executable
18312  postinstall_cmds='chmod +x $lib'
18313  ;;
18314
18315sunos4*)
18316  version_type=sunos
18317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18318  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18319  shlibpath_var=LD_LIBRARY_PATH
18320  shlibpath_overrides_runpath=yes
18321  if test "$with_gnu_ld" = yes; then
18322    need_lib_prefix=no
18323  fi
18324  need_version=yes
18325  ;;
18326
18327sysv4 | sysv4.3*)
18328  version_type=linux
18329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18330  soname_spec='${libname}${release}${shared_ext}$major'
18331  shlibpath_var=LD_LIBRARY_PATH
18332  case $host_vendor in
18333    sni)
18334      shlibpath_overrides_runpath=no
18335      need_lib_prefix=no
18336      export_dynamic_flag_spec='${wl}-Blargedynsym'
18337      runpath_var=LD_RUN_PATH
18338      ;;
18339    siemens)
18340      need_lib_prefix=no
18341      ;;
18342    motorola)
18343      need_lib_prefix=no
18344      need_version=no
18345      shlibpath_overrides_runpath=no
18346      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18347      ;;
18348  esac
18349  ;;
18350
18351sysv4*MP*)
18352  if test -d /usr/nec ;then
18353    version_type=linux
18354    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18355    soname_spec='$libname${shared_ext}.$major'
18356    shlibpath_var=LD_LIBRARY_PATH
18357  fi
18358  ;;
18359
18360sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18361  version_type=freebsd-elf
18362  need_lib_prefix=no
18363  need_version=no
18364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18365  soname_spec='${libname}${release}${shared_ext}$major'
18366  shlibpath_var=LD_LIBRARY_PATH
18367  hardcode_into_libs=yes
18368  if test "$with_gnu_ld" = yes; then
18369    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18370    shlibpath_overrides_runpath=no
18371  else
18372    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18373    shlibpath_overrides_runpath=yes
18374    case $host_os in
18375      sco3.2v5*)
18376        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18377	;;
18378    esac
18379  fi
18380  sys_lib_dlsearch_path_spec='/usr/lib'
18381  ;;
18382
18383uts4*)
18384  version_type=linux
18385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18386  soname_spec='${libname}${release}${shared_ext}$major'
18387  shlibpath_var=LD_LIBRARY_PATH
18388  ;;
18389
18390*)
18391  dynamic_linker=no
18392  ;;
18393esac
18394{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18395echo "${ECHO_T}$dynamic_linker" >&6; }
18396test "$dynamic_linker" = no && can_build_shared=no
18397
18398variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18399if test "$GCC" = yes; then
18400  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18401fi
18402
18403{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18404echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18405hardcode_action_GCJ=
18406if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18407   test -n "$runpath_var_GCJ" || \
18408   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18409
18410  # We can hardcode non-existant directories.
18411  if test "$hardcode_direct_GCJ" != no &&
18412     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18413     # have to relink, otherwise we might link with an installed library
18414     # when we should be linking with a yet-to-be-installed one
18415     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18416     test "$hardcode_minus_L_GCJ" != no; then
18417    # Linking always hardcodes the temporary library directory.
18418    hardcode_action_GCJ=relink
18419  else
18420    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18421    hardcode_action_GCJ=immediate
18422  fi
18423else
18424  # We cannot hardcode anything, or else we can only hardcode existing
18425  # directories.
18426  hardcode_action_GCJ=unsupported
18427fi
18428{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18429echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18430
18431if test "$hardcode_action_GCJ" = relink; then
18432  # Fast installation is not supported
18433  enable_fast_install=no
18434elif test "$shlibpath_overrides_runpath" = yes ||
18435     test "$enable_shared" = no; then
18436  # Fast installation is not necessary
18437  enable_fast_install=needless
18438fi
18439
18440
18441# The else clause should only fire when bootstrapping the
18442# libtool distribution, otherwise you forgot to ship ltmain.sh
18443# with your package, and you will get complaints that there are
18444# no rules to generate ltmain.sh.
18445if test -f "$ltmain"; then
18446  # See if we are running on zsh, and set the options which allow our commands through
18447  # without removal of \ escapes.
18448  if test -n "${ZSH_VERSION+set}" ; then
18449    setopt NO_GLOB_SUBST
18450  fi
18451  # Now quote all the things that may contain metacharacters while being
18452  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18453  # variables and quote the copies for generation of the libtool script.
18454  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18455    SED SHELL STRIP \
18456    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18457    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18458    deplibs_check_method reload_flag reload_cmds need_locks \
18459    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18460    lt_cv_sys_global_symbol_to_c_name_address \
18461    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18462    old_postinstall_cmds old_postuninstall_cmds \
18463    compiler_GCJ \
18464    CC_GCJ \
18465    LD_GCJ \
18466    lt_prog_compiler_wl_GCJ \
18467    lt_prog_compiler_pic_GCJ \
18468    lt_prog_compiler_static_GCJ \
18469    lt_prog_compiler_no_builtin_flag_GCJ \
18470    export_dynamic_flag_spec_GCJ \
18471    thread_safe_flag_spec_GCJ \
18472    whole_archive_flag_spec_GCJ \
18473    enable_shared_with_static_runtimes_GCJ \
18474    old_archive_cmds_GCJ \
18475    old_archive_from_new_cmds_GCJ \
18476    predep_objects_GCJ \
18477    postdep_objects_GCJ \
18478    predeps_GCJ \
18479    postdeps_GCJ \
18480    compiler_lib_search_path_GCJ \
18481    archive_cmds_GCJ \
18482    archive_expsym_cmds_GCJ \
18483    postinstall_cmds_GCJ \
18484    postuninstall_cmds_GCJ \
18485    old_archive_from_expsyms_cmds_GCJ \
18486    allow_undefined_flag_GCJ \
18487    no_undefined_flag_GCJ \
18488    export_symbols_cmds_GCJ \
18489    hardcode_libdir_flag_spec_GCJ \
18490    hardcode_libdir_flag_spec_ld_GCJ \
18491    hardcode_libdir_separator_GCJ \
18492    hardcode_automatic_GCJ \
18493    module_cmds_GCJ \
18494    module_expsym_cmds_GCJ \
18495    lt_cv_prog_compiler_c_o_GCJ \
18496    fix_srcfile_path_GCJ \
18497    exclude_expsyms_GCJ \
18498    include_expsyms_GCJ; do
18499
18500    case $var in
18501    old_archive_cmds_GCJ | \
18502    old_archive_from_new_cmds_GCJ | \
18503    archive_cmds_GCJ | \
18504    archive_expsym_cmds_GCJ | \
18505    module_cmds_GCJ | \
18506    module_expsym_cmds_GCJ | \
18507    old_archive_from_expsyms_cmds_GCJ | \
18508    export_symbols_cmds_GCJ | \
18509    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18510    postinstall_cmds | postuninstall_cmds | \
18511    old_postinstall_cmds | old_postuninstall_cmds | \
18512    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18513      # Double-quote double-evaled strings.
18514      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18515      ;;
18516    *)
18517      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18518      ;;
18519    esac
18520  done
18521
18522  case $lt_echo in
18523  *'\$0 --fallback-echo"')
18524    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18525    ;;
18526  esac
18527
18528cfgfile="$ofile"
18529
18530  cat <<__EOF__ >> "$cfgfile"
18531# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18532
18533# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18534
18535# Shell to use when invoking shell scripts.
18536SHELL=$lt_SHELL
18537
18538# Whether or not to build shared libraries.
18539build_libtool_libs=$enable_shared
18540
18541# Whether or not to build static libraries.
18542build_old_libs=$enable_static
18543
18544# Whether or not to add -lc for building shared libraries.
18545build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18546
18547# Whether or not to disallow shared libs when runtime libs are static
18548allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18549
18550# Whether or not to optimize for fast installation.
18551fast_install=$enable_fast_install
18552
18553# The host system.
18554host_alias=$host_alias
18555host=$host
18556host_os=$host_os
18557
18558# The build system.
18559build_alias=$build_alias
18560build=$build
18561build_os=$build_os
18562
18563# An echo program that does not interpret backslashes.
18564echo=$lt_echo
18565
18566# The archiver.
18567AR=$lt_AR
18568AR_FLAGS=$lt_AR_FLAGS
18569
18570# A C compiler.
18571LTCC=$lt_LTCC
18572
18573# LTCC compiler flags.
18574LTCFLAGS=$lt_LTCFLAGS
18575
18576# A language-specific compiler.
18577CC=$lt_compiler_GCJ
18578
18579# Is the compiler the GNU C compiler?
18580with_gcc=$GCC_GCJ
18581
18582# An ERE matcher.
18583EGREP=$lt_EGREP
18584
18585# The linker used to build libraries.
18586LD=$lt_LD_GCJ
18587
18588# Whether we need hard or soft links.
18589LN_S=$lt_LN_S
18590
18591# A BSD-compatible nm program.
18592NM=$lt_NM
18593
18594# A symbol stripping program
18595STRIP=$lt_STRIP
18596
18597# Used to examine libraries when file_magic_cmd begins "file"
18598MAGIC_CMD=$MAGIC_CMD
18599
18600# Used on cygwin: DLL creation program.
18601DLLTOOL="$DLLTOOL"
18602
18603# Used on cygwin: object dumper.
18604OBJDUMP="$OBJDUMP"
18605
18606# Used on cygwin: assembler.
18607AS="$AS"
18608
18609# The name of the directory that contains temporary libtool files.
18610objdir=$objdir
18611
18612# How to create reloadable object files.
18613reload_flag=$lt_reload_flag
18614reload_cmds=$lt_reload_cmds
18615
18616# How to pass a linker flag through the compiler.
18617wl=$lt_lt_prog_compiler_wl_GCJ
18618
18619# Object file suffix (normally "o").
18620objext="$ac_objext"
18621
18622# Old archive suffix (normally "a").
18623libext="$libext"
18624
18625# Shared library suffix (normally ".so").
18626shrext_cmds='$shrext_cmds'
18627
18628# Executable file suffix (normally "").
18629exeext="$exeext"
18630
18631# Additional compiler flags for building library objects.
18632pic_flag=$lt_lt_prog_compiler_pic_GCJ
18633pic_mode=$pic_mode
18634
18635# What is the maximum length of a command?
18636max_cmd_len=$lt_cv_sys_max_cmd_len
18637
18638# Does compiler simultaneously support -c and -o options?
18639compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18640
18641# Must we lock files when doing compilation?
18642need_locks=$lt_need_locks
18643
18644# Do we need the lib prefix for modules?
18645need_lib_prefix=$need_lib_prefix
18646
18647# Do we need a version for libraries?
18648need_version=$need_version
18649
18650# Whether dlopen is supported.
18651dlopen_support=$enable_dlopen
18652
18653# Whether dlopen of programs is supported.
18654dlopen_self=$enable_dlopen_self
18655
18656# Whether dlopen of statically linked programs is supported.
18657dlopen_self_static=$enable_dlopen_self_static
18658
18659# Compiler flag to prevent dynamic linking.
18660link_static_flag=$lt_lt_prog_compiler_static_GCJ
18661
18662# Compiler flag to turn off builtin functions.
18663no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18664
18665# Compiler flag to allow reflexive dlopens.
18666export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18667
18668# Compiler flag to generate shared objects directly from archives.
18669whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18670
18671# Compiler flag to generate thread-safe objects.
18672thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18673
18674# Library versioning type.
18675version_type=$version_type
18676
18677# Format of library name prefix.
18678libname_spec=$lt_libname_spec
18679
18680# List of archive names.  First name is the real one, the rest are links.
18681# The last name is the one that the linker finds with -lNAME.
18682library_names_spec=$lt_library_names_spec
18683
18684# The coded name of the library, if different from the real name.
18685soname_spec=$lt_soname_spec
18686
18687# Commands used to build and install an old-style archive.
18688RANLIB=$lt_RANLIB
18689old_archive_cmds=$lt_old_archive_cmds_GCJ
18690old_postinstall_cmds=$lt_old_postinstall_cmds
18691old_postuninstall_cmds=$lt_old_postuninstall_cmds
18692
18693# Create an old-style archive from a shared archive.
18694old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18695
18696# Create a temporary old-style archive to link instead of a shared archive.
18697old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18698
18699# Commands used to build and install a shared archive.
18700archive_cmds=$lt_archive_cmds_GCJ
18701archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18702postinstall_cmds=$lt_postinstall_cmds
18703postuninstall_cmds=$lt_postuninstall_cmds
18704
18705# Commands used to build a loadable module (assumed same as above if empty)
18706module_cmds=$lt_module_cmds_GCJ
18707module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18708
18709# Commands to strip libraries.
18710old_striplib=$lt_old_striplib
18711striplib=$lt_striplib
18712
18713# Dependencies to place before the objects being linked to create a
18714# shared library.
18715predep_objects=$lt_predep_objects_GCJ
18716
18717# Dependencies to place after the objects being linked to create a
18718# shared library.
18719postdep_objects=$lt_postdep_objects_GCJ
18720
18721# Dependencies to place before the objects being linked to create a
18722# shared library.
18723predeps=$lt_predeps_GCJ
18724
18725# Dependencies to place after the objects being linked to create a
18726# shared library.
18727postdeps=$lt_postdeps_GCJ
18728
18729# The library search path used internally by the compiler when linking
18730# a shared library.
18731compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18732
18733# Method to check whether dependent libraries are shared objects.
18734deplibs_check_method=$lt_deplibs_check_method
18735
18736# Command to use when deplibs_check_method == file_magic.
18737file_magic_cmd=$lt_file_magic_cmd
18738
18739# Flag that allows shared libraries with undefined symbols to be built.
18740allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18741
18742# Flag that forces no undefined symbols.
18743no_undefined_flag=$lt_no_undefined_flag_GCJ
18744
18745# Commands used to finish a libtool library installation in a directory.
18746finish_cmds=$lt_finish_cmds
18747
18748# Same as above, but a single script fragment to be evaled but not shown.
18749finish_eval=$lt_finish_eval
18750
18751# Take the output of nm and produce a listing of raw symbols and C names.
18752global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18753
18754# Transform the output of nm in a proper C declaration
18755global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18756
18757# Transform the output of nm in a C name address pair
18758global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18759
18760# This is the shared library runtime path variable.
18761runpath_var=$runpath_var
18762
18763# This is the shared library path variable.
18764shlibpath_var=$shlibpath_var
18765
18766# Is shlibpath searched before the hard-coded library search path?
18767shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18768
18769# How to hardcode a shared library path into an executable.
18770hardcode_action=$hardcode_action_GCJ
18771
18772# Whether we should hardcode library paths into libraries.
18773hardcode_into_libs=$hardcode_into_libs
18774
18775# Flag to hardcode \$libdir into a binary during linking.
18776# This must work even if \$libdir does not exist.
18777hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18778
18779# If ld is used when linking, flag to hardcode \$libdir into
18780# a binary during linking. This must work even if \$libdir does
18781# not exist.
18782hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18783
18784# Whether we need a single -rpath flag with a separated argument.
18785hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18786
18787# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18788# resulting binary.
18789hardcode_direct=$hardcode_direct_GCJ
18790
18791# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18792# resulting binary.
18793hardcode_minus_L=$hardcode_minus_L_GCJ
18794
18795# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18796# the resulting binary.
18797hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18798
18799# Set to yes if building a shared library automatically hardcodes DIR into the library
18800# and all subsequent libraries and executables linked against it.
18801hardcode_automatic=$hardcode_automatic_GCJ
18802
18803# Variables whose values should be saved in libtool wrapper scripts and
18804# restored at relink time.
18805variables_saved_for_relink="$variables_saved_for_relink"
18806
18807# Whether libtool must link a program against all its dependency libraries.
18808link_all_deplibs=$link_all_deplibs_GCJ
18809
18810# Compile-time system search path for libraries
18811sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18812
18813# Run-time system search path for libraries
18814sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18815
18816# Fix the shell variable \$srcfile for the compiler.
18817fix_srcfile_path=$lt_fix_srcfile_path
18818
18819# Set to yes if exported symbols are required.
18820always_export_symbols=$always_export_symbols_GCJ
18821
18822# The commands to list exported symbols.
18823export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18824
18825# The commands to extract the exported symbol list from a shared archive.
18826extract_expsyms_cmds=$lt_extract_expsyms_cmds
18827
18828# Symbols that should not be listed in the preloaded symbols.
18829exclude_expsyms=$lt_exclude_expsyms_GCJ
18830
18831# Symbols that must always be exported.
18832include_expsyms=$lt_include_expsyms_GCJ
18833
18834# ### END LIBTOOL TAG CONFIG: $tagname
18835
18836__EOF__
18837
18838
18839else
18840  # If there is no Makefile yet, we rely on a make rule to execute
18841  # `config.status --recheck' to rerun these tests and create the
18842  # libtool script then.
18843  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18844  if test -f "$ltmain_in"; then
18845    test -f Makefile && make "$ltmain"
18846  fi
18847fi
18848
18849
18850ac_ext=c
18851ac_cpp='$CPP $CPPFLAGS'
18852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18854ac_compiler_gnu=$ac_cv_c_compiler_gnu
18855
18856CC="$lt_save_CC"
18857
18858	else
18859	  tagname=""
18860	fi
18861	;;
18862
18863      RC)
18864
18865
18866# Source file extension for RC test sources.
18867ac_ext=rc
18868
18869# Object file extension for compiled RC test sources.
18870objext=o
18871objext_RC=$objext
18872
18873# Code to be used in simple compile tests
18874lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18875
18876# Code to be used in simple link tests
18877lt_simple_link_test_code="$lt_simple_compile_test_code"
18878
18879# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18880
18881# If no C compiler was specified, use CC.
18882LTCC=${LTCC-"$CC"}
18883
18884# If no C compiler flags were specified, use CFLAGS.
18885LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18886
18887# Allow CC to be a program name with arguments.
18888compiler=$CC
18889
18890
18891# save warnings/boilerplate of simple test code
18892ac_outfile=conftest.$ac_objext
18893echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18894eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18895_lt_compiler_boilerplate=`cat conftest.err`
18896$rm conftest*
18897
18898ac_outfile=conftest.$ac_objext
18899echo "$lt_simple_link_test_code" >conftest.$ac_ext
18900eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18901_lt_linker_boilerplate=`cat conftest.err`
18902$rm conftest*
18903
18904
18905# Allow CC to be a program name with arguments.
18906lt_save_CC="$CC"
18907CC=${RC-"windres"}
18908compiler=$CC
18909compiler_RC=$CC
18910for cc_temp in $compiler""; do
18911  case $cc_temp in
18912    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18913    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18914    \-*) ;;
18915    *) break;;
18916  esac
18917done
18918cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18919
18920lt_cv_prog_compiler_c_o_RC=yes
18921
18922# The else clause should only fire when bootstrapping the
18923# libtool distribution, otherwise you forgot to ship ltmain.sh
18924# with your package, and you will get complaints that there are
18925# no rules to generate ltmain.sh.
18926if test -f "$ltmain"; then
18927  # See if we are running on zsh, and set the options which allow our commands through
18928  # without removal of \ escapes.
18929  if test -n "${ZSH_VERSION+set}" ; then
18930    setopt NO_GLOB_SUBST
18931  fi
18932  # Now quote all the things that may contain metacharacters while being
18933  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18934  # variables and quote the copies for generation of the libtool script.
18935  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18936    SED SHELL STRIP \
18937    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18938    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18939    deplibs_check_method reload_flag reload_cmds need_locks \
18940    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18941    lt_cv_sys_global_symbol_to_c_name_address \
18942    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18943    old_postinstall_cmds old_postuninstall_cmds \
18944    compiler_RC \
18945    CC_RC \
18946    LD_RC \
18947    lt_prog_compiler_wl_RC \
18948    lt_prog_compiler_pic_RC \
18949    lt_prog_compiler_static_RC \
18950    lt_prog_compiler_no_builtin_flag_RC \
18951    export_dynamic_flag_spec_RC \
18952    thread_safe_flag_spec_RC \
18953    whole_archive_flag_spec_RC \
18954    enable_shared_with_static_runtimes_RC \
18955    old_archive_cmds_RC \
18956    old_archive_from_new_cmds_RC \
18957    predep_objects_RC \
18958    postdep_objects_RC \
18959    predeps_RC \
18960    postdeps_RC \
18961    compiler_lib_search_path_RC \
18962    archive_cmds_RC \
18963    archive_expsym_cmds_RC \
18964    postinstall_cmds_RC \
18965    postuninstall_cmds_RC \
18966    old_archive_from_expsyms_cmds_RC \
18967    allow_undefined_flag_RC \
18968    no_undefined_flag_RC \
18969    export_symbols_cmds_RC \
18970    hardcode_libdir_flag_spec_RC \
18971    hardcode_libdir_flag_spec_ld_RC \
18972    hardcode_libdir_separator_RC \
18973    hardcode_automatic_RC \
18974    module_cmds_RC \
18975    module_expsym_cmds_RC \
18976    lt_cv_prog_compiler_c_o_RC \
18977    fix_srcfile_path_RC \
18978    exclude_expsyms_RC \
18979    include_expsyms_RC; do
18980
18981    case $var in
18982    old_archive_cmds_RC | \
18983    old_archive_from_new_cmds_RC | \
18984    archive_cmds_RC | \
18985    archive_expsym_cmds_RC | \
18986    module_cmds_RC | \
18987    module_expsym_cmds_RC | \
18988    old_archive_from_expsyms_cmds_RC | \
18989    export_symbols_cmds_RC | \
18990    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18991    postinstall_cmds | postuninstall_cmds | \
18992    old_postinstall_cmds | old_postuninstall_cmds | \
18993    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18994      # Double-quote double-evaled strings.
18995      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18996      ;;
18997    *)
18998      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18999      ;;
19000    esac
19001  done
19002
19003  case $lt_echo in
19004  *'\$0 --fallback-echo"')
19005    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19006    ;;
19007  esac
19008
19009cfgfile="$ofile"
19010
19011  cat <<__EOF__ >> "$cfgfile"
19012# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19013
19014# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19015
19016# Shell to use when invoking shell scripts.
19017SHELL=$lt_SHELL
19018
19019# Whether or not to build shared libraries.
19020build_libtool_libs=$enable_shared
19021
19022# Whether or not to build static libraries.
19023build_old_libs=$enable_static
19024
19025# Whether or not to add -lc for building shared libraries.
19026build_libtool_need_lc=$archive_cmds_need_lc_RC
19027
19028# Whether or not to disallow shared libs when runtime libs are static
19029allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19030
19031# Whether or not to optimize for fast installation.
19032fast_install=$enable_fast_install
19033
19034# The host system.
19035host_alias=$host_alias
19036host=$host
19037host_os=$host_os
19038
19039# The build system.
19040build_alias=$build_alias
19041build=$build
19042build_os=$build_os
19043
19044# An echo program that does not interpret backslashes.
19045echo=$lt_echo
19046
19047# The archiver.
19048AR=$lt_AR
19049AR_FLAGS=$lt_AR_FLAGS
19050
19051# A C compiler.
19052LTCC=$lt_LTCC
19053
19054# LTCC compiler flags.
19055LTCFLAGS=$lt_LTCFLAGS
19056
19057# A language-specific compiler.
19058CC=$lt_compiler_RC
19059
19060# Is the compiler the GNU C compiler?
19061with_gcc=$GCC_RC
19062
19063# An ERE matcher.
19064EGREP=$lt_EGREP
19065
19066# The linker used to build libraries.
19067LD=$lt_LD_RC
19068
19069# Whether we need hard or soft links.
19070LN_S=$lt_LN_S
19071
19072# A BSD-compatible nm program.
19073NM=$lt_NM
19074
19075# A symbol stripping program
19076STRIP=$lt_STRIP
19077
19078# Used to examine libraries when file_magic_cmd begins "file"
19079MAGIC_CMD=$MAGIC_CMD
19080
19081# Used on cygwin: DLL creation program.
19082DLLTOOL="$DLLTOOL"
19083
19084# Used on cygwin: object dumper.
19085OBJDUMP="$OBJDUMP"
19086
19087# Used on cygwin: assembler.
19088AS="$AS"
19089
19090# The name of the directory that contains temporary libtool files.
19091objdir=$objdir
19092
19093# How to create reloadable object files.
19094reload_flag=$lt_reload_flag
19095reload_cmds=$lt_reload_cmds
19096
19097# How to pass a linker flag through the compiler.
19098wl=$lt_lt_prog_compiler_wl_RC
19099
19100# Object file suffix (normally "o").
19101objext="$ac_objext"
19102
19103# Old archive suffix (normally "a").
19104libext="$libext"
19105
19106# Shared library suffix (normally ".so").
19107shrext_cmds='$shrext_cmds'
19108
19109# Executable file suffix (normally "").
19110exeext="$exeext"
19111
19112# Additional compiler flags for building library objects.
19113pic_flag=$lt_lt_prog_compiler_pic_RC
19114pic_mode=$pic_mode
19115
19116# What is the maximum length of a command?
19117max_cmd_len=$lt_cv_sys_max_cmd_len
19118
19119# Does compiler simultaneously support -c and -o options?
19120compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19121
19122# Must we lock files when doing compilation?
19123need_locks=$lt_need_locks
19124
19125# Do we need the lib prefix for modules?
19126need_lib_prefix=$need_lib_prefix
19127
19128# Do we need a version for libraries?
19129need_version=$need_version
19130
19131# Whether dlopen is supported.
19132dlopen_support=$enable_dlopen
19133
19134# Whether dlopen of programs is supported.
19135dlopen_self=$enable_dlopen_self
19136
19137# Whether dlopen of statically linked programs is supported.
19138dlopen_self_static=$enable_dlopen_self_static
19139
19140# Compiler flag to prevent dynamic linking.
19141link_static_flag=$lt_lt_prog_compiler_static_RC
19142
19143# Compiler flag to turn off builtin functions.
19144no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19145
19146# Compiler flag to allow reflexive dlopens.
19147export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19148
19149# Compiler flag to generate shared objects directly from archives.
19150whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19151
19152# Compiler flag to generate thread-safe objects.
19153thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19154
19155# Library versioning type.
19156version_type=$version_type
19157
19158# Format of library name prefix.
19159libname_spec=$lt_libname_spec
19160
19161# List of archive names.  First name is the real one, the rest are links.
19162# The last name is the one that the linker finds with -lNAME.
19163library_names_spec=$lt_library_names_spec
19164
19165# The coded name of the library, if different from the real name.
19166soname_spec=$lt_soname_spec
19167
19168# Commands used to build and install an old-style archive.
19169RANLIB=$lt_RANLIB
19170old_archive_cmds=$lt_old_archive_cmds_RC
19171old_postinstall_cmds=$lt_old_postinstall_cmds
19172old_postuninstall_cmds=$lt_old_postuninstall_cmds
19173
19174# Create an old-style archive from a shared archive.
19175old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19176
19177# Create a temporary old-style archive to link instead of a shared archive.
19178old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19179
19180# Commands used to build and install a shared archive.
19181archive_cmds=$lt_archive_cmds_RC
19182archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19183postinstall_cmds=$lt_postinstall_cmds
19184postuninstall_cmds=$lt_postuninstall_cmds
19185
19186# Commands used to build a loadable module (assumed same as above if empty)
19187module_cmds=$lt_module_cmds_RC
19188module_expsym_cmds=$lt_module_expsym_cmds_RC
19189
19190# Commands to strip libraries.
19191old_striplib=$lt_old_striplib
19192striplib=$lt_striplib
19193
19194# Dependencies to place before the objects being linked to create a
19195# shared library.
19196predep_objects=$lt_predep_objects_RC
19197
19198# Dependencies to place after the objects being linked to create a
19199# shared library.
19200postdep_objects=$lt_postdep_objects_RC
19201
19202# Dependencies to place before the objects being linked to create a
19203# shared library.
19204predeps=$lt_predeps_RC
19205
19206# Dependencies to place after the objects being linked to create a
19207# shared library.
19208postdeps=$lt_postdeps_RC
19209
19210# The library search path used internally by the compiler when linking
19211# a shared library.
19212compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19213
19214# Method to check whether dependent libraries are shared objects.
19215deplibs_check_method=$lt_deplibs_check_method
19216
19217# Command to use when deplibs_check_method == file_magic.
19218file_magic_cmd=$lt_file_magic_cmd
19219
19220# Flag that allows shared libraries with undefined symbols to be built.
19221allow_undefined_flag=$lt_allow_undefined_flag_RC
19222
19223# Flag that forces no undefined symbols.
19224no_undefined_flag=$lt_no_undefined_flag_RC
19225
19226# Commands used to finish a libtool library installation in a directory.
19227finish_cmds=$lt_finish_cmds
19228
19229# Same as above, but a single script fragment to be evaled but not shown.
19230finish_eval=$lt_finish_eval
19231
19232# Take the output of nm and produce a listing of raw symbols and C names.
19233global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19234
19235# Transform the output of nm in a proper C declaration
19236global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19237
19238# Transform the output of nm in a C name address pair
19239global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19240
19241# This is the shared library runtime path variable.
19242runpath_var=$runpath_var
19243
19244# This is the shared library path variable.
19245shlibpath_var=$shlibpath_var
19246
19247# Is shlibpath searched before the hard-coded library search path?
19248shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19249
19250# How to hardcode a shared library path into an executable.
19251hardcode_action=$hardcode_action_RC
19252
19253# Whether we should hardcode library paths into libraries.
19254hardcode_into_libs=$hardcode_into_libs
19255
19256# Flag to hardcode \$libdir into a binary during linking.
19257# This must work even if \$libdir does not exist.
19258hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19259
19260# If ld is used when linking, flag to hardcode \$libdir into
19261# a binary during linking. This must work even if \$libdir does
19262# not exist.
19263hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19264
19265# Whether we need a single -rpath flag with a separated argument.
19266hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19267
19268# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19269# resulting binary.
19270hardcode_direct=$hardcode_direct_RC
19271
19272# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19273# resulting binary.
19274hardcode_minus_L=$hardcode_minus_L_RC
19275
19276# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19277# the resulting binary.
19278hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19279
19280# Set to yes if building a shared library automatically hardcodes DIR into the library
19281# and all subsequent libraries and executables linked against it.
19282hardcode_automatic=$hardcode_automatic_RC
19283
19284# Variables whose values should be saved in libtool wrapper scripts and
19285# restored at relink time.
19286variables_saved_for_relink="$variables_saved_for_relink"
19287
19288# Whether libtool must link a program against all its dependency libraries.
19289link_all_deplibs=$link_all_deplibs_RC
19290
19291# Compile-time system search path for libraries
19292sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19293
19294# Run-time system search path for libraries
19295sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19296
19297# Fix the shell variable \$srcfile for the compiler.
19298fix_srcfile_path=$lt_fix_srcfile_path
19299
19300# Set to yes if exported symbols are required.
19301always_export_symbols=$always_export_symbols_RC
19302
19303# The commands to list exported symbols.
19304export_symbols_cmds=$lt_export_symbols_cmds_RC
19305
19306# The commands to extract the exported symbol list from a shared archive.
19307extract_expsyms_cmds=$lt_extract_expsyms_cmds
19308
19309# Symbols that should not be listed in the preloaded symbols.
19310exclude_expsyms=$lt_exclude_expsyms_RC
19311
19312# Symbols that must always be exported.
19313include_expsyms=$lt_include_expsyms_RC
19314
19315# ### END LIBTOOL TAG CONFIG: $tagname
19316
19317__EOF__
19318
19319
19320else
19321  # If there is no Makefile yet, we rely on a make rule to execute
19322  # `config.status --recheck' to rerun these tests and create the
19323  # libtool script then.
19324  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19325  if test -f "$ltmain_in"; then
19326    test -f Makefile && make "$ltmain"
19327  fi
19328fi
19329
19330
19331ac_ext=c
19332ac_cpp='$CPP $CPPFLAGS'
19333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19335ac_compiler_gnu=$ac_cv_c_compiler_gnu
19336
19337CC="$lt_save_CC"
19338
19339	;;
19340
19341      *)
19342	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19343echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19344   { (exit 1); exit 1; }; }
19345	;;
19346      esac
19347
19348      # Append the new tag name to the list of available tags.
19349      if test -n "$tagname" ; then
19350      available_tags="$available_tags $tagname"
19351    fi
19352    fi
19353  done
19354  IFS="$lt_save_ifs"
19355
19356  # Now substitute the updated list of available tags.
19357  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19358    mv "${ofile}T" "$ofile"
19359    chmod +x "$ofile"
19360  else
19361    rm -f "${ofile}T"
19362    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19363echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19364   { (exit 1); exit 1; }; }
19365  fi
19366fi
19367
19368
19369
19370# This can be used to rebuild libtool when needed
19371LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19372
19373# Always use our own libtool.
19374LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19375
19376# Prevent multiple expansion
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397ac_ext=c
19398ac_cpp='$CPP $CPPFLAGS'
19399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19401ac_compiler_gnu=$ac_cv_c_compiler_gnu
19402if test -n "$ac_tool_prefix"; then
19403  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19404set dummy ${ac_tool_prefix}gcc; ac_word=$2
19405{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19407if test "${ac_cv_prog_CC+set}" = set; then
19408  echo $ECHO_N "(cached) $ECHO_C" >&6
19409else
19410  if test -n "$CC"; then
19411  ac_cv_prog_CC="$CC" # Let the user override the test.
19412else
19413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19414for as_dir in $PATH
19415do
19416  IFS=$as_save_IFS
19417  test -z "$as_dir" && as_dir=.
19418  for ac_exec_ext in '' $ac_executable_extensions; do
19419  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19420    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19421    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19422    break 2
19423  fi
19424done
19425done
19426IFS=$as_save_IFS
19427
19428fi
19429fi
19430CC=$ac_cv_prog_CC
19431if test -n "$CC"; then
19432  { echo "$as_me:$LINENO: result: $CC" >&5
19433echo "${ECHO_T}$CC" >&6; }
19434else
19435  { echo "$as_me:$LINENO: result: no" >&5
19436echo "${ECHO_T}no" >&6; }
19437fi
19438
19439
19440fi
19441if test -z "$ac_cv_prog_CC"; then
19442  ac_ct_CC=$CC
19443  # Extract the first word of "gcc", so it can be a program name with args.
19444set dummy gcc; ac_word=$2
19445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19447if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19448  echo $ECHO_N "(cached) $ECHO_C" >&6
19449else
19450  if test -n "$ac_ct_CC"; then
19451  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19452else
19453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19454for as_dir in $PATH
19455do
19456  IFS=$as_save_IFS
19457  test -z "$as_dir" && as_dir=.
19458  for ac_exec_ext in '' $ac_executable_extensions; do
19459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19460    ac_cv_prog_ac_ct_CC="gcc"
19461    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19462    break 2
19463  fi
19464done
19465done
19466IFS=$as_save_IFS
19467
19468fi
19469fi
19470ac_ct_CC=$ac_cv_prog_ac_ct_CC
19471if test -n "$ac_ct_CC"; then
19472  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19473echo "${ECHO_T}$ac_ct_CC" >&6; }
19474else
19475  { echo "$as_me:$LINENO: result: no" >&5
19476echo "${ECHO_T}no" >&6; }
19477fi
19478
19479  if test "x$ac_ct_CC" = x; then
19480    CC=""
19481  else
19482    case $cross_compiling:$ac_tool_warned in
19483yes:)
19484{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19485whose name does not start with the host triplet.  If you think this
19486configuration is useful to you, please write to autoconf@gnu.org." >&5
19487echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19488whose name does not start with the host triplet.  If you think this
19489configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19490ac_tool_warned=yes ;;
19491esac
19492    CC=$ac_ct_CC
19493  fi
19494else
19495  CC="$ac_cv_prog_CC"
19496fi
19497
19498if test -z "$CC"; then
19499          if test -n "$ac_tool_prefix"; then
19500    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19501set dummy ${ac_tool_prefix}cc; ac_word=$2
19502{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19504if test "${ac_cv_prog_CC+set}" = set; then
19505  echo $ECHO_N "(cached) $ECHO_C" >&6
19506else
19507  if test -n "$CC"; then
19508  ac_cv_prog_CC="$CC" # Let the user override the test.
19509else
19510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19511for as_dir in $PATH
19512do
19513  IFS=$as_save_IFS
19514  test -z "$as_dir" && as_dir=.
19515  for ac_exec_ext in '' $ac_executable_extensions; do
19516  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19517    ac_cv_prog_CC="${ac_tool_prefix}cc"
19518    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19519    break 2
19520  fi
19521done
19522done
19523IFS=$as_save_IFS
19524
19525fi
19526fi
19527CC=$ac_cv_prog_CC
19528if test -n "$CC"; then
19529  { echo "$as_me:$LINENO: result: $CC" >&5
19530echo "${ECHO_T}$CC" >&6; }
19531else
19532  { echo "$as_me:$LINENO: result: no" >&5
19533echo "${ECHO_T}no" >&6; }
19534fi
19535
19536
19537  fi
19538fi
19539if test -z "$CC"; then
19540  # Extract the first word of "cc", so it can be a program name with args.
19541set dummy cc; ac_word=$2
19542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19544if test "${ac_cv_prog_CC+set}" = set; then
19545  echo $ECHO_N "(cached) $ECHO_C" >&6
19546else
19547  if test -n "$CC"; then
19548  ac_cv_prog_CC="$CC" # Let the user override the test.
19549else
19550  ac_prog_rejected=no
19551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19552for as_dir in $PATH
19553do
19554  IFS=$as_save_IFS
19555  test -z "$as_dir" && as_dir=.
19556  for ac_exec_ext in '' $ac_executable_extensions; do
19557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19558    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19559       ac_prog_rejected=yes
19560       continue
19561     fi
19562    ac_cv_prog_CC="cc"
19563    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19564    break 2
19565  fi
19566done
19567done
19568IFS=$as_save_IFS
19569
19570if test $ac_prog_rejected = yes; then
19571  # We found a bogon in the path, so make sure we never use it.
19572  set dummy $ac_cv_prog_CC
19573  shift
19574  if test $# != 0; then
19575    # We chose a different compiler from the bogus one.
19576    # However, it has the same basename, so the bogon will be chosen
19577    # first if we set CC to just the basename; use the full file name.
19578    shift
19579    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19580  fi
19581fi
19582fi
19583fi
19584CC=$ac_cv_prog_CC
19585if test -n "$CC"; then
19586  { echo "$as_me:$LINENO: result: $CC" >&5
19587echo "${ECHO_T}$CC" >&6; }
19588else
19589  { echo "$as_me:$LINENO: result: no" >&5
19590echo "${ECHO_T}no" >&6; }
19591fi
19592
19593
19594fi
19595if test -z "$CC"; then
19596  if test -n "$ac_tool_prefix"; then
19597  for ac_prog in cl.exe
19598  do
19599    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19600set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19603if test "${ac_cv_prog_CC+set}" = set; then
19604  echo $ECHO_N "(cached) $ECHO_C" >&6
19605else
19606  if test -n "$CC"; then
19607  ac_cv_prog_CC="$CC" # Let the user override the test.
19608else
19609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19610for as_dir in $PATH
19611do
19612  IFS=$as_save_IFS
19613  test -z "$as_dir" && as_dir=.
19614  for ac_exec_ext in '' $ac_executable_extensions; do
19615  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19616    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19617    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19618    break 2
19619  fi
19620done
19621done
19622IFS=$as_save_IFS
19623
19624fi
19625fi
19626CC=$ac_cv_prog_CC
19627if test -n "$CC"; then
19628  { echo "$as_me:$LINENO: result: $CC" >&5
19629echo "${ECHO_T}$CC" >&6; }
19630else
19631  { echo "$as_me:$LINENO: result: no" >&5
19632echo "${ECHO_T}no" >&6; }
19633fi
19634
19635
19636    test -n "$CC" && break
19637  done
19638fi
19639if test -z "$CC"; then
19640  ac_ct_CC=$CC
19641  for ac_prog in cl.exe
19642do
19643  # Extract the first word of "$ac_prog", so it can be a program name with args.
19644set dummy $ac_prog; ac_word=$2
19645{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19647if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19648  echo $ECHO_N "(cached) $ECHO_C" >&6
19649else
19650  if test -n "$ac_ct_CC"; then
19651  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19652else
19653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19654for as_dir in $PATH
19655do
19656  IFS=$as_save_IFS
19657  test -z "$as_dir" && as_dir=.
19658  for ac_exec_ext in '' $ac_executable_extensions; do
19659  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19660    ac_cv_prog_ac_ct_CC="$ac_prog"
19661    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19662    break 2
19663  fi
19664done
19665done
19666IFS=$as_save_IFS
19667
19668fi
19669fi
19670ac_ct_CC=$ac_cv_prog_ac_ct_CC
19671if test -n "$ac_ct_CC"; then
19672  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19673echo "${ECHO_T}$ac_ct_CC" >&6; }
19674else
19675  { echo "$as_me:$LINENO: result: no" >&5
19676echo "${ECHO_T}no" >&6; }
19677fi
19678
19679
19680  test -n "$ac_ct_CC" && break
19681done
19682
19683  if test "x$ac_ct_CC" = x; then
19684    CC=""
19685  else
19686    case $cross_compiling:$ac_tool_warned in
19687yes:)
19688{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19689whose name does not start with the host triplet.  If you think this
19690configuration is useful to you, please write to autoconf@gnu.org." >&5
19691echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19692whose name does not start with the host triplet.  If you think this
19693configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19694ac_tool_warned=yes ;;
19695esac
19696    CC=$ac_ct_CC
19697  fi
19698fi
19699
19700fi
19701
19702
19703test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19704See \`config.log' for more details." >&5
19705echo "$as_me: error: no acceptable C compiler found in \$PATH
19706See \`config.log' for more details." >&2;}
19707   { (exit 1); exit 1; }; }
19708
19709# Provide some information about the compiler.
19710echo "$as_me:$LINENO: checking for C compiler version" >&5
19711ac_compiler=`set X $ac_compile; echo $2`
19712{ (ac_try="$ac_compiler --version >&5"
19713case "(($ac_try" in
19714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715  *) ac_try_echo=$ac_try;;
19716esac
19717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19718  (eval "$ac_compiler --version >&5") 2>&5
19719  ac_status=$?
19720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721  (exit $ac_status); }
19722{ (ac_try="$ac_compiler -v >&5"
19723case "(($ac_try" in
19724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725  *) ac_try_echo=$ac_try;;
19726esac
19727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728  (eval "$ac_compiler -v >&5") 2>&5
19729  ac_status=$?
19730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731  (exit $ac_status); }
19732{ (ac_try="$ac_compiler -V >&5"
19733case "(($ac_try" in
19734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735  *) ac_try_echo=$ac_try;;
19736esac
19737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738  (eval "$ac_compiler -V >&5") 2>&5
19739  ac_status=$?
19740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741  (exit $ac_status); }
19742
19743{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19744echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19745if test "${ac_cv_c_compiler_gnu+set}" = set; then
19746  echo $ECHO_N "(cached) $ECHO_C" >&6
19747else
19748  cat >conftest.$ac_ext <<_ACEOF
19749/* confdefs.h.  */
19750_ACEOF
19751cat confdefs.h >>conftest.$ac_ext
19752cat >>conftest.$ac_ext <<_ACEOF
19753/* end confdefs.h.  */
19754
19755int
19756main ()
19757{
19758#ifndef __GNUC__
19759       choke me
19760#endif
19761
19762  ;
19763  return 0;
19764}
19765_ACEOF
19766rm -f conftest.$ac_objext
19767if { (ac_try="$ac_compile"
19768case "(($ac_try" in
19769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770  *) ac_try_echo=$ac_try;;
19771esac
19772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773  (eval "$ac_compile") 2>conftest.er1
19774  ac_status=$?
19775  grep -v '^ *+' conftest.er1 >conftest.err
19776  rm -f conftest.er1
19777  cat conftest.err >&5
19778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779  (exit $ac_status); } && {
19780	 test -z "$ac_c_werror_flag" ||
19781	 test ! -s conftest.err
19782       } && test -s conftest.$ac_objext; then
19783  ac_compiler_gnu=yes
19784else
19785  echo "$as_me: failed program was:" >&5
19786sed 's/^/| /' conftest.$ac_ext >&5
19787
19788	ac_compiler_gnu=no
19789fi
19790
19791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19792ac_cv_c_compiler_gnu=$ac_compiler_gnu
19793
19794fi
19795{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19796echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19797GCC=`test $ac_compiler_gnu = yes && echo yes`
19798ac_test_CFLAGS=${CFLAGS+set}
19799ac_save_CFLAGS=$CFLAGS
19800{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19801echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19802if test "${ac_cv_prog_cc_g+set}" = set; then
19803  echo $ECHO_N "(cached) $ECHO_C" >&6
19804else
19805  ac_save_c_werror_flag=$ac_c_werror_flag
19806   ac_c_werror_flag=yes
19807   ac_cv_prog_cc_g=no
19808   CFLAGS="-g"
19809   cat >conftest.$ac_ext <<_ACEOF
19810/* confdefs.h.  */
19811_ACEOF
19812cat confdefs.h >>conftest.$ac_ext
19813cat >>conftest.$ac_ext <<_ACEOF
19814/* end confdefs.h.  */
19815
19816int
19817main ()
19818{
19819
19820  ;
19821  return 0;
19822}
19823_ACEOF
19824rm -f conftest.$ac_objext
19825if { (ac_try="$ac_compile"
19826case "(($ac_try" in
19827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828  *) ac_try_echo=$ac_try;;
19829esac
19830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831  (eval "$ac_compile") 2>conftest.er1
19832  ac_status=$?
19833  grep -v '^ *+' conftest.er1 >conftest.err
19834  rm -f conftest.er1
19835  cat conftest.err >&5
19836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837  (exit $ac_status); } && {
19838	 test -z "$ac_c_werror_flag" ||
19839	 test ! -s conftest.err
19840       } && test -s conftest.$ac_objext; then
19841  ac_cv_prog_cc_g=yes
19842else
19843  echo "$as_me: failed program was:" >&5
19844sed 's/^/| /' conftest.$ac_ext >&5
19845
19846	CFLAGS=""
19847      cat >conftest.$ac_ext <<_ACEOF
19848/* confdefs.h.  */
19849_ACEOF
19850cat confdefs.h >>conftest.$ac_ext
19851cat >>conftest.$ac_ext <<_ACEOF
19852/* end confdefs.h.  */
19853
19854int
19855main ()
19856{
19857
19858  ;
19859  return 0;
19860}
19861_ACEOF
19862rm -f conftest.$ac_objext
19863if { (ac_try="$ac_compile"
19864case "(($ac_try" in
19865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866  *) ac_try_echo=$ac_try;;
19867esac
19868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869  (eval "$ac_compile") 2>conftest.er1
19870  ac_status=$?
19871  grep -v '^ *+' conftest.er1 >conftest.err
19872  rm -f conftest.er1
19873  cat conftest.err >&5
19874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875  (exit $ac_status); } && {
19876	 test -z "$ac_c_werror_flag" ||
19877	 test ! -s conftest.err
19878       } && test -s conftest.$ac_objext; then
19879  :
19880else
19881  echo "$as_me: failed program was:" >&5
19882sed 's/^/| /' conftest.$ac_ext >&5
19883
19884	ac_c_werror_flag=$ac_save_c_werror_flag
19885	 CFLAGS="-g"
19886	 cat >conftest.$ac_ext <<_ACEOF
19887/* confdefs.h.  */
19888_ACEOF
19889cat confdefs.h >>conftest.$ac_ext
19890cat >>conftest.$ac_ext <<_ACEOF
19891/* end confdefs.h.  */
19892
19893int
19894main ()
19895{
19896
19897  ;
19898  return 0;
19899}
19900_ACEOF
19901rm -f conftest.$ac_objext
19902if { (ac_try="$ac_compile"
19903case "(($ac_try" in
19904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905  *) ac_try_echo=$ac_try;;
19906esac
19907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908  (eval "$ac_compile") 2>conftest.er1
19909  ac_status=$?
19910  grep -v '^ *+' conftest.er1 >conftest.err
19911  rm -f conftest.er1
19912  cat conftest.err >&5
19913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914  (exit $ac_status); } && {
19915	 test -z "$ac_c_werror_flag" ||
19916	 test ! -s conftest.err
19917       } && test -s conftest.$ac_objext; then
19918  ac_cv_prog_cc_g=yes
19919else
19920  echo "$as_me: failed program was:" >&5
19921sed 's/^/| /' conftest.$ac_ext >&5
19922
19923
19924fi
19925
19926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19927fi
19928
19929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19930fi
19931
19932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19933   ac_c_werror_flag=$ac_save_c_werror_flag
19934fi
19935{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19936echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19937if test "$ac_test_CFLAGS" = set; then
19938  CFLAGS=$ac_save_CFLAGS
19939elif test $ac_cv_prog_cc_g = yes; then
19940  if test "$GCC" = yes; then
19941    CFLAGS="-g -O2"
19942  else
19943    CFLAGS="-g"
19944  fi
19945else
19946  if test "$GCC" = yes; then
19947    CFLAGS="-O2"
19948  else
19949    CFLAGS=
19950  fi
19951fi
19952{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19953echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19954if test "${ac_cv_prog_cc_c89+set}" = set; then
19955  echo $ECHO_N "(cached) $ECHO_C" >&6
19956else
19957  ac_cv_prog_cc_c89=no
19958ac_save_CC=$CC
19959cat >conftest.$ac_ext <<_ACEOF
19960/* confdefs.h.  */
19961_ACEOF
19962cat confdefs.h >>conftest.$ac_ext
19963cat >>conftest.$ac_ext <<_ACEOF
19964/* end confdefs.h.  */
19965#include <stdarg.h>
19966#include <stdio.h>
19967#include <sys/types.h>
19968#include <sys/stat.h>
19969/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19970struct buf { int x; };
19971FILE * (*rcsopen) (struct buf *, struct stat *, int);
19972static char *e (p, i)
19973     char **p;
19974     int i;
19975{
19976  return p[i];
19977}
19978static char *f (char * (*g) (char **, int), char **p, ...)
19979{
19980  char *s;
19981  va_list v;
19982  va_start (v,p);
19983  s = g (p, va_arg (v,int));
19984  va_end (v);
19985  return s;
19986}
19987
19988/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19989   function prototypes and stuff, but not '\xHH' hex character constants.
19990   These don't provoke an error unfortunately, instead are silently treated
19991   as 'x'.  The following induces an error, until -std is added to get
19992   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19993   array size at least.  It's necessary to write '\x00'==0 to get something
19994   that's true only with -std.  */
19995int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19996
19997/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19998   inside strings and character constants.  */
19999#define FOO(x) 'x'
20000int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20001
20002int test (int i, double x);
20003struct s1 {int (*f) (int a);};
20004struct s2 {int (*f) (double a);};
20005int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20006int argc;
20007char **argv;
20008int
20009main ()
20010{
20011return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20012  ;
20013  return 0;
20014}
20015_ACEOF
20016for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20017	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20018do
20019  CC="$ac_save_CC $ac_arg"
20020  rm -f conftest.$ac_objext
20021if { (ac_try="$ac_compile"
20022case "(($ac_try" in
20023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024  *) ac_try_echo=$ac_try;;
20025esac
20026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20027  (eval "$ac_compile") 2>conftest.er1
20028  ac_status=$?
20029  grep -v '^ *+' conftest.er1 >conftest.err
20030  rm -f conftest.er1
20031  cat conftest.err >&5
20032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033  (exit $ac_status); } && {
20034	 test -z "$ac_c_werror_flag" ||
20035	 test ! -s conftest.err
20036       } && test -s conftest.$ac_objext; then
20037  ac_cv_prog_cc_c89=$ac_arg
20038else
20039  echo "$as_me: failed program was:" >&5
20040sed 's/^/| /' conftest.$ac_ext >&5
20041
20042
20043fi
20044
20045rm -f core conftest.err conftest.$ac_objext
20046  test "x$ac_cv_prog_cc_c89" != "xno" && break
20047done
20048rm -f conftest.$ac_ext
20049CC=$ac_save_CC
20050
20051fi
20052# AC_CACHE_VAL
20053case "x$ac_cv_prog_cc_c89" in
20054  x)
20055    { echo "$as_me:$LINENO: result: none needed" >&5
20056echo "${ECHO_T}none needed" >&6; } ;;
20057  xno)
20058    { echo "$as_me:$LINENO: result: unsupported" >&5
20059echo "${ECHO_T}unsupported" >&6; } ;;
20060  *)
20061    CC="$CC $ac_cv_prog_cc_c89"
20062    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20063echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20064esac
20065
20066
20067ac_ext=c
20068ac_cpp='$CPP $CPPFLAGS'
20069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20071ac_compiler_gnu=$ac_cv_c_compiler_gnu
20072
20073depcc="$CC"   am_compiler_list=
20074
20075{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20076echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20077if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20078  echo $ECHO_N "(cached) $ECHO_C" >&6
20079else
20080  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20081  # We make a subdir and do the tests there.  Otherwise we can end up
20082  # making bogus files that we don't know about and never remove.  For
20083  # instance it was reported that on HP-UX the gcc test will end up
20084  # making a dummy file named `D' -- because `-MD' means `put the output
20085  # in D'.
20086  mkdir conftest.dir
20087  # Copy depcomp to subdir because otherwise we won't find it if we're
20088  # using a relative directory.
20089  cp "$am_depcomp" conftest.dir
20090  cd conftest.dir
20091  # We will build objects and dependencies in a subdirectory because
20092  # it helps to detect inapplicable dependency modes.  For instance
20093  # both Tru64's cc and ICC support -MD to output dependencies as a
20094  # side effect of compilation, but ICC will put the dependencies in
20095  # the current directory while Tru64 will put them in the object
20096  # directory.
20097  mkdir sub
20098
20099  am_cv_CC_dependencies_compiler_type=none
20100  if test "$am_compiler_list" = ""; then
20101     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20102  fi
20103  for depmode in $am_compiler_list; do
20104    # Setup a source with many dependencies, because some compilers
20105    # like to wrap large dependency lists on column 80 (with \), and
20106    # we should not choose a depcomp mode which is confused by this.
20107    #
20108    # We need to recreate these files for each test, as the compiler may
20109    # overwrite some of them when testing with obscure command lines.
20110    # This happens at least with the AIX C compiler.
20111    : > sub/conftest.c
20112    for i in 1 2 3 4 5 6; do
20113      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20114      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20115      # Solaris 8's {/usr,}/bin/sh.
20116      touch sub/conftst$i.h
20117    done
20118    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20119
20120    case $depmode in
20121    nosideeffect)
20122      # after this tag, mechanisms are not by side-effect, so they'll
20123      # only be used when explicitly requested
20124      if test "x$enable_dependency_tracking" = xyes; then
20125	continue
20126      else
20127	break
20128      fi
20129      ;;
20130    none) break ;;
20131    esac
20132    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20133    # mode.  It turns out that the SunPro C++ compiler does not properly
20134    # handle `-M -o', and we need to detect this.
20135    if depmode=$depmode \
20136       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20137       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20138       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20139         >/dev/null 2>conftest.err &&
20140       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20141       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20142       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20143       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20144      # icc doesn't choke on unknown options, it will just issue warnings
20145      # or remarks (even with -Werror).  So we grep stderr for any message
20146      # that says an option was ignored or not supported.
20147      # When given -MP, icc 7.0 and 7.1 complain thusly:
20148      #   icc: Command line warning: ignoring option '-M'; no argument required
20149      # The diagnosis changed in icc 8.0:
20150      #   icc: Command line remark: option '-MP' not supported
20151      if (grep 'ignoring option' conftest.err ||
20152          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20153        am_cv_CC_dependencies_compiler_type=$depmode
20154        break
20155      fi
20156    fi
20157  done
20158
20159  cd ..
20160  rm -rf conftest.dir
20161else
20162  am_cv_CC_dependencies_compiler_type=none
20163fi
20164
20165fi
20166{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20167echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20168CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20169
20170 if
20171  test "x$enable_dependency_tracking" != xno \
20172  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20173  am__fastdepCC_TRUE=
20174  am__fastdepCC_FALSE='#'
20175else
20176  am__fastdepCC_TRUE='#'
20177  am__fastdepCC_FALSE=
20178fi
20179
20180
20181
20182
20183
20184
20185#AC_DEFINE(XFree86LOADER,1,[Stub define for loadable drivers])
20186#
20187#AC_ARG_ENABLE(XINPUT, AS_HELP_STRING([--enable-xinput],
20188#              [Build XInput support (default: yes)]),
20189#              [XINPUT=$enableval],[XINPUT=yes])
20190#AM_CONDITIONAL(XINPUT, test "x$XINPUT" = "xyes")
20191#if test "x$XINPUT" = "xyes" ; then
20192#    AC_DEFINE(XINPUT,1,[Enable XInput support])
20193#fi
20194#
20195#AC_ARG_ENABLE(XKB, AS_HELP_STRING([--enable-xkb],
20196#              [Build XKB support (default: yes)]),
20197#              [XKB=$enableval],[XKB=yes])
20198#AM_CONDITIONAL(XKB, test "x$XKB" = "xyes")
20199#if test "x$XKB" = "xyes" ; then
20200#    AC_DEFINE(XKB,1,[Enable XKB support])
20201#fi
20202
20203
20204# Check whether --with-xorg-module-dir was given.
20205if test "${with_xorg_module_dir+set}" = set; then
20206  withval=$with_xorg_module_dir; moduledir="$withval"
20207else
20208  moduledir="$libdir/xorg/modules"
20209fi
20210
20211inputdir=${moduledir}/input
20212
20213
20214# Checks for extensions
20215
20216	SAVE_CFLAGS="$CFLAGS"
20217	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20218	cat >conftest.$ac_ext <<_ACEOF
20219/* confdefs.h.  */
20220_ACEOF
20221cat confdefs.h >>conftest.$ac_ext
20222cat >>conftest.$ac_ext <<_ACEOF
20223/* end confdefs.h.  */
20224
20225#include "xorg-server.h"
20226#if !defined RANDR
20227#error RANDR not defined
20228#endif
20229
20230int
20231main ()
20232{
20233
20234  ;
20235  return 0;
20236}
20237_ACEOF
20238rm -f conftest.$ac_objext
20239if { (ac_try="$ac_compile"
20240case "(($ac_try" in
20241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242  *) ac_try_echo=$ac_try;;
20243esac
20244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20245  (eval "$ac_compile") 2>conftest.er1
20246  ac_status=$?
20247  grep -v '^ *+' conftest.er1 >conftest.err
20248  rm -f conftest.er1
20249  cat conftest.err >&5
20250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251  (exit $ac_status); } && {
20252	 test -z "$ac_c_werror_flag" ||
20253	 test ! -s conftest.err
20254       } && test -s conftest.$ac_objext; then
20255  _EXT_CHECK=yes
20256else
20257  echo "$as_me: failed program was:" >&5
20258sed 's/^/| /' conftest.$ac_ext >&5
20259
20260	_EXT_CHECK=no
20261fi
20262
20263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20264	CFLAGS="$SAVE_CFLAGS"
20265	{ echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20266echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; }
20267	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20268echo "${ECHO_T}$_EXT_CHECK" >&6; }
20269	if test "$_EXT_CHECK" != no; then
20270		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20271	fi
20272
20273
20274	SAVE_CFLAGS="$CFLAGS"
20275	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20276	cat >conftest.$ac_ext <<_ACEOF
20277/* confdefs.h.  */
20278_ACEOF
20279cat confdefs.h >>conftest.$ac_ext
20280cat >>conftest.$ac_ext <<_ACEOF
20281/* end confdefs.h.  */
20282
20283#include "xorg-server.h"
20284#if !defined XINPUT
20285#error XINPUT not defined
20286#endif
20287
20288int
20289main ()
20290{
20291
20292  ;
20293  return 0;
20294}
20295_ACEOF
20296rm -f conftest.$ac_objext
20297if { (ac_try="$ac_compile"
20298case "(($ac_try" in
20299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20300  *) ac_try_echo=$ac_try;;
20301esac
20302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303  (eval "$ac_compile") 2>conftest.er1
20304  ac_status=$?
20305  grep -v '^ *+' conftest.er1 >conftest.err
20306  rm -f conftest.er1
20307  cat conftest.err >&5
20308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309  (exit $ac_status); } && {
20310	 test -z "$ac_c_werror_flag" ||
20311	 test ! -s conftest.err
20312       } && test -s conftest.$ac_objext; then
20313  _EXT_CHECK=yes
20314else
20315  echo "$as_me: failed program was:" >&5
20316sed 's/^/| /' conftest.$ac_ext >&5
20317
20318	_EXT_CHECK=no
20319fi
20320
20321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20322	CFLAGS="$SAVE_CFLAGS"
20323	{ echo "$as_me:$LINENO: checking if XINPUT is defined" >&5
20324echo $ECHO_N "checking if XINPUT is defined... $ECHO_C" >&6; }
20325	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20326echo "${ECHO_T}$_EXT_CHECK" >&6; }
20327	if test "$_EXT_CHECK" != no; then
20328		REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
20329	fi
20330
20331
20332# Checks for pkg-config packages
20333
20334
20335if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20336	if test -n "$ac_tool_prefix"; then
20337  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20338set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20339{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20341if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20342  echo $ECHO_N "(cached) $ECHO_C" >&6
20343else
20344  case $PKG_CONFIG in
20345  [\\/]* | ?:[\\/]*)
20346  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20347  ;;
20348  *)
20349  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20350for as_dir in $PATH
20351do
20352  IFS=$as_save_IFS
20353  test -z "$as_dir" && as_dir=.
20354  for ac_exec_ext in '' $ac_executable_extensions; do
20355  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20356    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20357    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20358    break 2
20359  fi
20360done
20361done
20362IFS=$as_save_IFS
20363
20364  ;;
20365esac
20366fi
20367PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20368if test -n "$PKG_CONFIG"; then
20369  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20370echo "${ECHO_T}$PKG_CONFIG" >&6; }
20371else
20372  { echo "$as_me:$LINENO: result: no" >&5
20373echo "${ECHO_T}no" >&6; }
20374fi
20375
20376
20377fi
20378if test -z "$ac_cv_path_PKG_CONFIG"; then
20379  ac_pt_PKG_CONFIG=$PKG_CONFIG
20380  # Extract the first word of "pkg-config", so it can be a program name with args.
20381set dummy pkg-config; ac_word=$2
20382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20384if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20385  echo $ECHO_N "(cached) $ECHO_C" >&6
20386else
20387  case $ac_pt_PKG_CONFIG in
20388  [\\/]* | ?:[\\/]*)
20389  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20390  ;;
20391  *)
20392  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20393for as_dir in $PATH
20394do
20395  IFS=$as_save_IFS
20396  test -z "$as_dir" && as_dir=.
20397  for ac_exec_ext in '' $ac_executable_extensions; do
20398  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20399    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20400    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20401    break 2
20402  fi
20403done
20404done
20405IFS=$as_save_IFS
20406
20407  ;;
20408esac
20409fi
20410ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20411if test -n "$ac_pt_PKG_CONFIG"; then
20412  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20413echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20414else
20415  { echo "$as_me:$LINENO: result: no" >&5
20416echo "${ECHO_T}no" >&6; }
20417fi
20418
20419  if test "x$ac_pt_PKG_CONFIG" = x; then
20420    PKG_CONFIG=""
20421  else
20422    case $cross_compiling:$ac_tool_warned in
20423yes:)
20424{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20425whose name does not start with the host triplet.  If you think this
20426configuration is useful to you, please write to autoconf@gnu.org." >&5
20427echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20428whose name does not start with the host triplet.  If you think this
20429configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20430ac_tool_warned=yes ;;
20431esac
20432    PKG_CONFIG=$ac_pt_PKG_CONFIG
20433  fi
20434else
20435  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20436fi
20437
20438fi
20439if test -n "$PKG_CONFIG"; then
20440	_pkg_min_version=0.9.0
20441	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20442echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20443	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20444		{ echo "$as_me:$LINENO: result: yes" >&5
20445echo "${ECHO_T}yes" >&6; }
20446	else
20447		{ echo "$as_me:$LINENO: result: no" >&5
20448echo "${ECHO_T}no" >&6; }
20449		PKG_CONFIG=""
20450	fi
20451
20452fi
20453
20454pkg_failed=no
20455{ echo "$as_me:$LINENO: checking for XORG" >&5
20456echo $ECHO_N "checking for XORG... $ECHO_C" >&6; }
20457
20458if test -n "$PKG_CONFIG"; then
20459    if test -n "$XORG_CFLAGS"; then
20460        pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
20461    else
20462        if test -n "$PKG_CONFIG" && \
20463    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\"") >&5
20464  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5
20465  ac_status=$?
20466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467  (exit $ac_status); }; then
20468  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null`
20469else
20470  pkg_failed=yes
20471fi
20472    fi
20473else
20474	pkg_failed=untried
20475fi
20476if test -n "$PKG_CONFIG"; then
20477    if test -n "$XORG_LIBS"; then
20478        pkg_cv_XORG_LIBS="$XORG_LIBS"
20479    else
20480        if test -n "$PKG_CONFIG" && \
20481    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\"") >&5
20482  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5
20483  ac_status=$?
20484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485  (exit $ac_status); }; then
20486  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null`
20487else
20488  pkg_failed=yes
20489fi
20490    fi
20491else
20492	pkg_failed=untried
20493fi
20494
20495
20496
20497if test $pkg_failed = yes; then
20498
20499if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20500        _pkg_short_errors_supported=yes
20501else
20502        _pkg_short_errors_supported=no
20503fi
20504        if test $_pkg_short_errors_supported = yes; then
20505	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES"`
20506        else
20507	        XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES"`
20508        fi
20509	# Put the nasty error message in config.log where it belongs
20510	echo "$XORG_PKG_ERRORS" >&5
20511
20512	{ { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES) were not met:
20513
20514$XORG_PKG_ERRORS
20515
20516Consider adjusting the PKG_CONFIG_PATH environment variable if you
20517installed software in a non-standard prefix.
20518
20519Alternatively, you may set the environment variables XORG_CFLAGS
20520and XORG_LIBS to avoid the need to call pkg-config.
20521See the pkg-config man page for more details.
20522" >&5
20523echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES) were not met:
20524
20525$XORG_PKG_ERRORS
20526
20527Consider adjusting the PKG_CONFIG_PATH environment variable if you
20528installed software in a non-standard prefix.
20529
20530Alternatively, you may set the environment variables XORG_CFLAGS
20531and XORG_LIBS to avoid the need to call pkg-config.
20532See the pkg-config man page for more details.
20533" >&2;}
20534   { (exit 1); exit 1; }; }
20535elif test $pkg_failed = untried; then
20536	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20537is in your PATH or set the PKG_CONFIG environment variable to the full
20538path to pkg-config.
20539
20540Alternatively, you may set the environment variables XORG_CFLAGS
20541and XORG_LIBS to avoid the need to call pkg-config.
20542See the pkg-config man page for more details.
20543
20544To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20545See \`config.log' for more details." >&5
20546echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20547is in your PATH or set the PKG_CONFIG environment variable to the full
20548path to pkg-config.
20549
20550Alternatively, you may set the environment variables XORG_CFLAGS
20551and XORG_LIBS to avoid the need to call pkg-config.
20552See the pkg-config man page for more details.
20553
20554To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20555See \`config.log' for more details." >&2;}
20556   { (exit 1); exit 1; }; }
20557else
20558	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20559	XORG_LIBS=$pkg_cv_XORG_LIBS
20560        { echo "$as_me:$LINENO: result: yes" >&5
20561echo "${ECHO_T}yes" >&6; }
20562	:
20563fi
20564sdkdir=$(pkg-config --variable=sdkdir xorg-server)
20565
20566CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src'
20567
20568
20569# Checks for libraries.
20570
20571# Checks for header files.
20572{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20573echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20574if test "${ac_cv_header_stdc+set}" = set; then
20575  echo $ECHO_N "(cached) $ECHO_C" >&6
20576else
20577  cat >conftest.$ac_ext <<_ACEOF
20578/* confdefs.h.  */
20579_ACEOF
20580cat confdefs.h >>conftest.$ac_ext
20581cat >>conftest.$ac_ext <<_ACEOF
20582/* end confdefs.h.  */
20583#include <stdlib.h>
20584#include <stdarg.h>
20585#include <string.h>
20586#include <float.h>
20587
20588int
20589main ()
20590{
20591
20592  ;
20593  return 0;
20594}
20595_ACEOF
20596rm -f conftest.$ac_objext
20597if { (ac_try="$ac_compile"
20598case "(($ac_try" in
20599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600  *) ac_try_echo=$ac_try;;
20601esac
20602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20603  (eval "$ac_compile") 2>conftest.er1
20604  ac_status=$?
20605  grep -v '^ *+' conftest.er1 >conftest.err
20606  rm -f conftest.er1
20607  cat conftest.err >&5
20608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609  (exit $ac_status); } && {
20610	 test -z "$ac_c_werror_flag" ||
20611	 test ! -s conftest.err
20612       } && test -s conftest.$ac_objext; then
20613  ac_cv_header_stdc=yes
20614else
20615  echo "$as_me: failed program was:" >&5
20616sed 's/^/| /' conftest.$ac_ext >&5
20617
20618	ac_cv_header_stdc=no
20619fi
20620
20621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20622
20623if test $ac_cv_header_stdc = yes; then
20624  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20625  cat >conftest.$ac_ext <<_ACEOF
20626/* confdefs.h.  */
20627_ACEOF
20628cat confdefs.h >>conftest.$ac_ext
20629cat >>conftest.$ac_ext <<_ACEOF
20630/* end confdefs.h.  */
20631#include <string.h>
20632
20633_ACEOF
20634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20635  $EGREP "memchr" >/dev/null 2>&1; then
20636  :
20637else
20638  ac_cv_header_stdc=no
20639fi
20640rm -f conftest*
20641
20642fi
20643
20644if test $ac_cv_header_stdc = yes; then
20645  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20646  cat >conftest.$ac_ext <<_ACEOF
20647/* confdefs.h.  */
20648_ACEOF
20649cat confdefs.h >>conftest.$ac_ext
20650cat >>conftest.$ac_ext <<_ACEOF
20651/* end confdefs.h.  */
20652#include <stdlib.h>
20653
20654_ACEOF
20655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20656  $EGREP "free" >/dev/null 2>&1; then
20657  :
20658else
20659  ac_cv_header_stdc=no
20660fi
20661rm -f conftest*
20662
20663fi
20664
20665if test $ac_cv_header_stdc = yes; then
20666  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20667  if test "$cross_compiling" = yes; then
20668  :
20669else
20670  cat >conftest.$ac_ext <<_ACEOF
20671/* confdefs.h.  */
20672_ACEOF
20673cat confdefs.h >>conftest.$ac_ext
20674cat >>conftest.$ac_ext <<_ACEOF
20675/* end confdefs.h.  */
20676#include <ctype.h>
20677#include <stdlib.h>
20678#if ((' ' & 0x0FF) == 0x020)
20679# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20680# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20681#else
20682# define ISLOWER(c) \
20683		   (('a' <= (c) && (c) <= 'i') \
20684		     || ('j' <= (c) && (c) <= 'r') \
20685		     || ('s' <= (c) && (c) <= 'z'))
20686# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20687#endif
20688
20689#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20690int
20691main ()
20692{
20693  int i;
20694  for (i = 0; i < 256; i++)
20695    if (XOR (islower (i), ISLOWER (i))
20696	|| toupper (i) != TOUPPER (i))
20697      return 2;
20698  return 0;
20699}
20700_ACEOF
20701rm -f conftest$ac_exeext
20702if { (ac_try="$ac_link"
20703case "(($ac_try" in
20704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705  *) ac_try_echo=$ac_try;;
20706esac
20707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708  (eval "$ac_link") 2>&5
20709  ac_status=$?
20710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20712  { (case "(($ac_try" in
20713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714  *) ac_try_echo=$ac_try;;
20715esac
20716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20717  (eval "$ac_try") 2>&5
20718  ac_status=$?
20719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720  (exit $ac_status); }; }; then
20721  :
20722else
20723  echo "$as_me: program exited with status $ac_status" >&5
20724echo "$as_me: failed program was:" >&5
20725sed 's/^/| /' conftest.$ac_ext >&5
20726
20727( exit $ac_status )
20728ac_cv_header_stdc=no
20729fi
20730rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20731fi
20732
20733
20734fi
20735fi
20736{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20737echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20738if test $ac_cv_header_stdc = yes; then
20739
20740cat >>confdefs.h <<\_ACEOF
20741#define STDC_HEADERS 1
20742_ACEOF
20743
20744fi
20745
20746
20747
20748
20749
20750if test x$APP_MAN_SUFFIX = x    ; then
20751    APP_MAN_SUFFIX=1
20752fi
20753if test x$APP_MAN_DIR = x    ; then
20754    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20755fi
20756
20757if test x$LIB_MAN_SUFFIX = x    ; then
20758    LIB_MAN_SUFFIX=3
20759fi
20760if test x$LIB_MAN_DIR = x    ; then
20761    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20762fi
20763
20764if test x$FILE_MAN_SUFFIX = x    ; then
20765    case $host_os in
20766	solaris*)	FILE_MAN_SUFFIX=4  ;;
20767	*)		FILE_MAN_SUFFIX=5  ;;
20768    esac
20769fi
20770if test x$FILE_MAN_DIR = x    ; then
20771    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20772fi
20773
20774if test x$MISC_MAN_SUFFIX = x    ; then
20775    case $host_os in
20776	solaris*)	MISC_MAN_SUFFIX=5  ;;
20777	*)		MISC_MAN_SUFFIX=7  ;;
20778    esac
20779fi
20780if test x$MISC_MAN_DIR = x    ; then
20781    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20782fi
20783
20784if test x$DRIVER_MAN_SUFFIX = x    ; then
20785    case $host_os in
20786	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
20787	*)		DRIVER_MAN_SUFFIX=4  ;;
20788    esac
20789fi
20790if test x$DRIVER_MAN_DIR = x    ; then
20791    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20792fi
20793
20794if test x$ADMIN_MAN_SUFFIX = x    ; then
20795    case $host_os in
20796	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
20797	*)		ADMIN_MAN_SUFFIX=8  ;;
20798    esac
20799fi
20800if test x$ADMIN_MAN_DIR = x    ; then
20801    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20802fi
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820# Check whether --with-release-version was given.
20821if test "${with_release_version+set}" = set; then
20822  withval=$with_release_version; RELEASE_VERSION="$withval"
20823else
20824  RELEASE_VERSION=""
20825fi
20826
20827	if test "x$RELEASE_VERSION" != "x"; then
20828		PACKAGE="$PACKAGE-$RELEASE_VERSION"
20829		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20830		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20831echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20832	fi
20833
20834cat >>confdefs.h <<_ACEOF
20835#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20836_ACEOF
20837
20838	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20839	if test "x$PVM" = "x"; then
20840		PVM="0"
20841	fi
20842
20843cat >>confdefs.h <<_ACEOF
20844#define PACKAGE_VERSION_MINOR $PVM
20845_ACEOF
20846
20847	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20848	if test "x$PVP" = "x"; then
20849		PVP="0"
20850	fi
20851
20852cat >>confdefs.h <<_ACEOF
20853#define PACKAGE_VERSION_PATCHLEVEL $PVP
20854_ACEOF
20855
20856
20857
20858ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20859
20860cat >confcache <<\_ACEOF
20861# This file is a shell script that caches the results of configure
20862# tests run on this system so they can be shared between configure
20863# scripts and configure runs, see configure's option --config-cache.
20864# It is not useful on other systems.  If it contains results you don't
20865# want to keep, you may remove or edit it.
20866#
20867# config.status only pays attention to the cache file if you give it
20868# the --recheck option to rerun configure.
20869#
20870# `ac_cv_env_foo' variables (set or unset) will be overridden when
20871# loading this file, other *unset* `ac_cv_foo' will be assigned the
20872# following values.
20873
20874_ACEOF
20875
20876# The following way of writing the cache mishandles newlines in values,
20877# but we know of no workaround that is simple, portable, and efficient.
20878# So, we kill variables containing newlines.
20879# Ultrix sh set writes to stderr and can't be redirected directly,
20880# and sets the high bit in the cache file unless we assign to the vars.
20881(
20882  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20883    eval ac_val=\$$ac_var
20884    case $ac_val in #(
20885    *${as_nl}*)
20886      case $ac_var in #(
20887      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20888echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20889      esac
20890      case $ac_var in #(
20891      _ | IFS | as_nl) ;; #(
20892      *) $as_unset $ac_var ;;
20893      esac ;;
20894    esac
20895  done
20896
20897  (set) 2>&1 |
20898    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20899    *${as_nl}ac_space=\ *)
20900      # `set' does not quote correctly, so add quotes (double-quote
20901      # substitution turns \\\\ into \\, and sed turns \\ into \).
20902      sed -n \
20903	"s/'/'\\\\''/g;
20904	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20905      ;; #(
20906    *)
20907      # `set' quotes correctly as required by POSIX, so do not add quotes.
20908      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20909      ;;
20910    esac |
20911    sort
20912) |
20913  sed '
20914     /^ac_cv_env_/b end
20915     t clear
20916     :clear
20917     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20918     t end
20919     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20920     :end' >>confcache
20921if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20922  if test -w "$cache_file"; then
20923    test "x$cache_file" != "x/dev/null" &&
20924      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20925echo "$as_me: updating cache $cache_file" >&6;}
20926    cat confcache >$cache_file
20927  else
20928    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20929echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20930  fi
20931fi
20932rm -f confcache
20933
20934test "x$prefix" = xNONE && prefix=$ac_default_prefix
20935# Let make expand exec_prefix.
20936test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20937
20938DEFS=-DHAVE_CONFIG_H
20939
20940ac_libobjs=
20941ac_ltlibobjs=
20942for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20943  # 1. Remove the extension, and $U if already installed.
20944  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20945  ac_i=`echo "$ac_i" | sed "$ac_script"`
20946  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20947  #    will be set to the directory where LIBOBJS objects are built.
20948  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20949  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20950done
20951LIBOBJS=$ac_libobjs
20952
20953LTLIBOBJS=$ac_ltlibobjs
20954
20955
20956if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20957  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20958Usually this means the macro was only invoked conditionally." >&5
20959echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20960Usually this means the macro was only invoked conditionally." >&2;}
20961   { (exit 1); exit 1; }; }
20962fi
20963if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20964  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20965Usually this means the macro was only invoked conditionally." >&5
20966echo "$as_me: error: conditional \"AMDEP\" was never defined.
20967Usually this means the macro was only invoked conditionally." >&2;}
20968   { (exit 1); exit 1; }; }
20969fi
20970if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20971  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20972Usually this means the macro was only invoked conditionally." >&5
20973echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20974Usually this means the macro was only invoked conditionally." >&2;}
20975   { (exit 1); exit 1; }; }
20976fi
20977if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20978  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20979Usually this means the macro was only invoked conditionally." >&5
20980echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20981Usually this means the macro was only invoked conditionally." >&2;}
20982   { (exit 1); exit 1; }; }
20983fi
20984if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20985  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20986Usually this means the macro was only invoked conditionally." >&5
20987echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20988Usually this means the macro was only invoked conditionally." >&2;}
20989   { (exit 1); exit 1; }; }
20990fi
20991
20992: ${CONFIG_STATUS=./config.status}
20993ac_clean_files_save=$ac_clean_files
20994ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20995{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20996echo "$as_me: creating $CONFIG_STATUS" >&6;}
20997cat >$CONFIG_STATUS <<_ACEOF
20998#! $SHELL
20999# Generated by $as_me.
21000# Run this file to recreate the current configuration.
21001# Compiler output produced by configure, useful for debugging
21002# configure, is in config.log if it exists.
21003
21004debug=false
21005ac_cs_recheck=false
21006ac_cs_silent=false
21007SHELL=\${CONFIG_SHELL-$SHELL}
21008_ACEOF
21009
21010cat >>$CONFIG_STATUS <<\_ACEOF
21011## --------------------- ##
21012## M4sh Initialization.  ##
21013## --------------------- ##
21014
21015# Be more Bourne compatible
21016DUALCASE=1; export DUALCASE # for MKS sh
21017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21018  emulate sh
21019  NULLCMD=:
21020  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21021  # is contrary to our usage.  Disable this feature.
21022  alias -g '${1+"$@"}'='"$@"'
21023  setopt NO_GLOB_SUBST
21024else
21025  case `(set -o) 2>/dev/null` in
21026  *posix*) set -o posix ;;
21027esac
21028
21029fi
21030
21031
21032
21033
21034# PATH needs CR
21035# Avoid depending upon Character Ranges.
21036as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21037as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21038as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21039as_cr_digits='0123456789'
21040as_cr_alnum=$as_cr_Letters$as_cr_digits
21041
21042# The user is always right.
21043if test "${PATH_SEPARATOR+set}" != set; then
21044  echo "#! /bin/sh" >conf$$.sh
21045  echo  "exit 0"   >>conf$$.sh
21046  chmod +x conf$$.sh
21047  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21048    PATH_SEPARATOR=';'
21049  else
21050    PATH_SEPARATOR=:
21051  fi
21052  rm -f conf$$.sh
21053fi
21054
21055# Support unset when possible.
21056if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21057  as_unset=unset
21058else
21059  as_unset=false
21060fi
21061
21062
21063# IFS
21064# We need space, tab and new line, in precisely that order.  Quoting is
21065# there to prevent editors from complaining about space-tab.
21066# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21067# splitting by setting IFS to empty value.)
21068as_nl='
21069'
21070IFS=" ""	$as_nl"
21071
21072# Find who we are.  Look in the path if we contain no directory separator.
21073case $0 in
21074  *[\\/]* ) as_myself=$0 ;;
21075  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21076for as_dir in $PATH
21077do
21078  IFS=$as_save_IFS
21079  test -z "$as_dir" && as_dir=.
21080  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21081done
21082IFS=$as_save_IFS
21083
21084     ;;
21085esac
21086# We did not find ourselves, most probably we were run as `sh COMMAND'
21087# in which case we are not to be found in the path.
21088if test "x$as_myself" = x; then
21089  as_myself=$0
21090fi
21091if test ! -f "$as_myself"; then
21092  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21093  { (exit 1); exit 1; }
21094fi
21095
21096# Work around bugs in pre-3.0 UWIN ksh.
21097for as_var in ENV MAIL MAILPATH
21098do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21099done
21100PS1='$ '
21101PS2='> '
21102PS4='+ '
21103
21104# NLS nuisances.
21105for as_var in \
21106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21108  LC_TELEPHONE LC_TIME
21109do
21110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21111    eval $as_var=C; export $as_var
21112  else
21113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21114  fi
21115done
21116
21117# Required to use basename.
21118if expr a : '\(a\)' >/dev/null 2>&1 &&
21119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21120  as_expr=expr
21121else
21122  as_expr=false
21123fi
21124
21125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21126  as_basename=basename
21127else
21128  as_basename=false
21129fi
21130
21131
21132# Name of the executable.
21133as_me=`$as_basename -- "$0" ||
21134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21135	 X"$0" : 'X\(//\)$' \| \
21136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21137echo X/"$0" |
21138    sed '/^.*\/\([^/][^/]*\)\/*$/{
21139	    s//\1/
21140	    q
21141	  }
21142	  /^X\/\(\/\/\)$/{
21143	    s//\1/
21144	    q
21145	  }
21146	  /^X\/\(\/\).*/{
21147	    s//\1/
21148	    q
21149	  }
21150	  s/.*/./; q'`
21151
21152# CDPATH.
21153$as_unset CDPATH
21154
21155
21156
21157  as_lineno_1=$LINENO
21158  as_lineno_2=$LINENO
21159  test "x$as_lineno_1" != "x$as_lineno_2" &&
21160  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21161
21162  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21163  # uniformly replaced by the line number.  The first 'sed' inserts a
21164  # line-number line after each line using $LINENO; the second 'sed'
21165  # does the real work.  The second script uses 'N' to pair each
21166  # line-number line with the line containing $LINENO, and appends
21167  # trailing '-' during substitution so that $LINENO is not a special
21168  # case at line end.
21169  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21170  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21171  # E. McMahon (1931-1989) for sed's syntax.  :-)
21172  sed -n '
21173    p
21174    /[$]LINENO/=
21175  ' <$as_myself |
21176    sed '
21177      s/[$]LINENO.*/&-/
21178      t lineno
21179      b
21180      :lineno
21181      N
21182      :loop
21183      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21184      t loop
21185      s/-\n.*//
21186    ' >$as_me.lineno &&
21187  chmod +x "$as_me.lineno" ||
21188    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21189   { (exit 1); exit 1; }; }
21190
21191  # Don't try to exec as it changes $[0], causing all sort of problems
21192  # (the dirname of $[0] is not the place where we might find the
21193  # original and so on.  Autoconf is especially sensitive to this).
21194  . "./$as_me.lineno"
21195  # Exit status is that of the last command.
21196  exit
21197}
21198
21199
21200if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21201  as_dirname=dirname
21202else
21203  as_dirname=false
21204fi
21205
21206ECHO_C= ECHO_N= ECHO_T=
21207case `echo -n x` in
21208-n*)
21209  case `echo 'x\c'` in
21210  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21211  *)   ECHO_C='\c';;
21212  esac;;
21213*)
21214  ECHO_N='-n';;
21215esac
21216
21217if expr a : '\(a\)' >/dev/null 2>&1 &&
21218   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21219  as_expr=expr
21220else
21221  as_expr=false
21222fi
21223
21224rm -f conf$$ conf$$.exe conf$$.file
21225if test -d conf$$.dir; then
21226  rm -f conf$$.dir/conf$$.file
21227else
21228  rm -f conf$$.dir
21229  mkdir conf$$.dir
21230fi
21231echo >conf$$.file
21232if ln -s conf$$.file conf$$ 2>/dev/null; then
21233  as_ln_s='ln -s'
21234  # ... but there are two gotchas:
21235  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21236  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21237  # In both cases, we have to default to `cp -p'.
21238  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21239    as_ln_s='cp -p'
21240elif ln conf$$.file conf$$ 2>/dev/null; then
21241  as_ln_s=ln
21242else
21243  as_ln_s='cp -p'
21244fi
21245rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21246rmdir conf$$.dir 2>/dev/null
21247
21248if mkdir -p . 2>/dev/null; then
21249  as_mkdir_p=:
21250else
21251  test -d ./-p && rmdir ./-p
21252  as_mkdir_p=false
21253fi
21254
21255if test -x / >/dev/null 2>&1; then
21256  as_test_x='test -x'
21257else
21258  if ls -dL / >/dev/null 2>&1; then
21259    as_ls_L_option=L
21260  else
21261    as_ls_L_option=
21262  fi
21263  as_test_x='
21264    eval sh -c '\''
21265      if test -d "$1"; then
21266        test -d "$1/.";
21267      else
21268	case $1 in
21269        -*)set "./$1";;
21270	esac;
21271	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21272	???[sx]*):;;*)false;;esac;fi
21273    '\'' sh
21274  '
21275fi
21276as_executable_p=$as_test_x
21277
21278# Sed expression to map a string onto a valid CPP name.
21279as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21280
21281# Sed expression to map a string onto a valid variable name.
21282as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21283
21284
21285exec 6>&1
21286
21287# Save the log message, to keep $[0] and so on meaningful, and to
21288# report actual input values of CONFIG_FILES etc. instead of their
21289# values after options handling.
21290ac_log="
21291This file was extended by xf86-input-vmmouse $as_me 12.5.0, which was
21292generated by GNU Autoconf 2.61.  Invocation command line was
21293
21294  CONFIG_FILES    = $CONFIG_FILES
21295  CONFIG_HEADERS  = $CONFIG_HEADERS
21296  CONFIG_LINKS    = $CONFIG_LINKS
21297  CONFIG_COMMANDS = $CONFIG_COMMANDS
21298  $ $0 $@
21299
21300on `(hostname || uname -n) 2>/dev/null | sed 1q`
21301"
21302
21303_ACEOF
21304
21305cat >>$CONFIG_STATUS <<_ACEOF
21306# Files that config.status was made for.
21307config_files="$ac_config_files"
21308config_headers="$ac_config_headers"
21309config_commands="$ac_config_commands"
21310
21311_ACEOF
21312
21313cat >>$CONFIG_STATUS <<\_ACEOF
21314ac_cs_usage="\
21315\`$as_me' instantiates files from templates according to the
21316current configuration.
21317
21318Usage: $0 [OPTIONS] [FILE]...
21319
21320  -h, --help       print this help, then exit
21321  -V, --version    print version number and configuration settings, then exit
21322  -q, --quiet      do not print progress messages
21323  -d, --debug      don't remove temporary files
21324      --recheck    update $as_me by reconfiguring in the same conditions
21325  --file=FILE[:TEMPLATE]
21326		   instantiate the configuration file FILE
21327  --header=FILE[:TEMPLATE]
21328		   instantiate the configuration header FILE
21329
21330Configuration files:
21331$config_files
21332
21333Configuration headers:
21334$config_headers
21335
21336Configuration commands:
21337$config_commands
21338
21339Report bugs to <bug-autoconf@gnu.org>."
21340
21341_ACEOF
21342cat >>$CONFIG_STATUS <<_ACEOF
21343ac_cs_version="\\
21344xf86-input-vmmouse config.status 12.5.0
21345configured by $0, generated by GNU Autoconf 2.61,
21346  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21347
21348Copyright (C) 2006 Free Software Foundation, Inc.
21349This config.status script is free software; the Free Software Foundation
21350gives unlimited permission to copy, distribute and modify it."
21351
21352ac_pwd='$ac_pwd'
21353srcdir='$srcdir'
21354INSTALL='$INSTALL'
21355MKDIR_P='$MKDIR_P'
21356_ACEOF
21357
21358cat >>$CONFIG_STATUS <<\_ACEOF
21359# If no file are specified by the user, then we need to provide default
21360# value.  By we need to know if files were specified by the user.
21361ac_need_defaults=:
21362while test $# != 0
21363do
21364  case $1 in
21365  --*=*)
21366    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21367    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21368    ac_shift=:
21369    ;;
21370  *)
21371    ac_option=$1
21372    ac_optarg=$2
21373    ac_shift=shift
21374    ;;
21375  esac
21376
21377  case $ac_option in
21378  # Handling of the options.
21379  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21380    ac_cs_recheck=: ;;
21381  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21382    echo "$ac_cs_version"; exit ;;
21383  --debug | --debu | --deb | --de | --d | -d )
21384    debug=: ;;
21385  --file | --fil | --fi | --f )
21386    $ac_shift
21387    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21388    ac_need_defaults=false;;
21389  --header | --heade | --head | --hea )
21390    $ac_shift
21391    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21392    ac_need_defaults=false;;
21393  --he | --h)
21394    # Conflict between --help and --header
21395    { echo "$as_me: error: ambiguous option: $1
21396Try \`$0 --help' for more information." >&2
21397   { (exit 1); exit 1; }; };;
21398  --help | --hel | -h )
21399    echo "$ac_cs_usage"; exit ;;
21400  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21401  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21402    ac_cs_silent=: ;;
21403
21404  # This is an error.
21405  -*) { echo "$as_me: error: unrecognized option: $1
21406Try \`$0 --help' for more information." >&2
21407   { (exit 1); exit 1; }; } ;;
21408
21409  *) ac_config_targets="$ac_config_targets $1"
21410     ac_need_defaults=false ;;
21411
21412  esac
21413  shift
21414done
21415
21416ac_configure_extra_args=
21417
21418if $ac_cs_silent; then
21419  exec 6>/dev/null
21420  ac_configure_extra_args="$ac_configure_extra_args --silent"
21421fi
21422
21423_ACEOF
21424cat >>$CONFIG_STATUS <<_ACEOF
21425if \$ac_cs_recheck; then
21426  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21427  CONFIG_SHELL=$SHELL
21428  export CONFIG_SHELL
21429  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21430fi
21431
21432_ACEOF
21433cat >>$CONFIG_STATUS <<\_ACEOF
21434exec 5>>config.log
21435{
21436  echo
21437  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21438## Running $as_me. ##
21439_ASBOX
21440  echo "$ac_log"
21441} >&5
21442
21443_ACEOF
21444cat >>$CONFIG_STATUS <<_ACEOF
21445#
21446# INIT-COMMANDS
21447#
21448AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21449
21450_ACEOF
21451
21452cat >>$CONFIG_STATUS <<\_ACEOF
21453
21454# Handling of arguments.
21455for ac_config_target in $ac_config_targets
21456do
21457  case $ac_config_target in
21458    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21459    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21460    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21461    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21462    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21463
21464  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21465echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21466   { (exit 1); exit 1; }; };;
21467  esac
21468done
21469
21470
21471# If the user did not use the arguments to specify the items to instantiate,
21472# then the envvar interface is used.  Set only those that are not.
21473# We use the long form for the default assignment because of an extremely
21474# bizarre bug on SunOS 4.1.3.
21475if $ac_need_defaults; then
21476  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21477  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21478  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21479fi
21480
21481# Have a temporary directory for convenience.  Make it in the build tree
21482# simply because there is no reason against having it here, and in addition,
21483# creating and moving files from /tmp can sometimes cause problems.
21484# Hook for its removal unless debugging.
21485# Note that there is a small window in which the directory will not be cleaned:
21486# after its creation but before its name has been assigned to `$tmp'.
21487$debug ||
21488{
21489  tmp=
21490  trap 'exit_status=$?
21491  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21492' 0
21493  trap '{ (exit 1); exit 1; }' 1 2 13 15
21494}
21495# Create a (secure) tmp directory for tmp files.
21496
21497{
21498  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21499  test -n "$tmp" && test -d "$tmp"
21500}  ||
21501{
21502  tmp=./conf$$-$RANDOM
21503  (umask 077 && mkdir "$tmp")
21504} ||
21505{
21506   echo "$me: cannot create a temporary directory in ." >&2
21507   { (exit 1); exit 1; }
21508}
21509
21510#
21511# Set up the sed scripts for CONFIG_FILES section.
21512#
21513
21514# No need to generate the scripts if there are no CONFIG_FILES.
21515# This happens for instance when ./config.status config.h
21516if test -n "$CONFIG_FILES"; then
21517
21518_ACEOF
21519
21520
21521
21522ac_delim='%!_!# '
21523for ac_last_try in false false false false false :; do
21524  cat >conf$$subs.sed <<_ACEOF
21525SHELL!$SHELL$ac_delim
21526PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21527PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21528PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21529PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21530PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21531PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21532exec_prefix!$exec_prefix$ac_delim
21533prefix!$prefix$ac_delim
21534program_transform_name!$program_transform_name$ac_delim
21535bindir!$bindir$ac_delim
21536sbindir!$sbindir$ac_delim
21537libexecdir!$libexecdir$ac_delim
21538datarootdir!$datarootdir$ac_delim
21539datadir!$datadir$ac_delim
21540sysconfdir!$sysconfdir$ac_delim
21541sharedstatedir!$sharedstatedir$ac_delim
21542localstatedir!$localstatedir$ac_delim
21543includedir!$includedir$ac_delim
21544oldincludedir!$oldincludedir$ac_delim
21545docdir!$docdir$ac_delim
21546infodir!$infodir$ac_delim
21547htmldir!$htmldir$ac_delim
21548dvidir!$dvidir$ac_delim
21549pdfdir!$pdfdir$ac_delim
21550psdir!$psdir$ac_delim
21551libdir!$libdir$ac_delim
21552localedir!$localedir$ac_delim
21553mandir!$mandir$ac_delim
21554DEFS!$DEFS$ac_delim
21555ECHO_C!$ECHO_C$ac_delim
21556ECHO_N!$ECHO_N$ac_delim
21557ECHO_T!$ECHO_T$ac_delim
21558LIBS!$LIBS$ac_delim
21559build_alias!$build_alias$ac_delim
21560host_alias!$host_alias$ac_delim
21561target_alias!$target_alias$ac_delim
21562INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21563INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21564INSTALL_DATA!$INSTALL_DATA$ac_delim
21565am__isrc!$am__isrc$ac_delim
21566CYGPATH_W!$CYGPATH_W$ac_delim
21567PACKAGE!$PACKAGE$ac_delim
21568VERSION!$VERSION$ac_delim
21569ACLOCAL!$ACLOCAL$ac_delim
21570AUTOCONF!$AUTOCONF$ac_delim
21571AUTOMAKE!$AUTOMAKE$ac_delim
21572AUTOHEADER!$AUTOHEADER$ac_delim
21573MAKEINFO!$MAKEINFO$ac_delim
21574install_sh!$install_sh$ac_delim
21575STRIP!$STRIP$ac_delim
21576INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21577mkdir_p!$mkdir_p$ac_delim
21578AWK!$AWK$ac_delim
21579SET_MAKE!$SET_MAKE$ac_delim
21580am__leading_dot!$am__leading_dot$ac_delim
21581AMTAR!$AMTAR$ac_delim
21582am__tar!$am__tar$ac_delim
21583am__untar!$am__untar$ac_delim
21584MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
21585MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
21586MAINT!$MAINT$ac_delim
21587DRIVER_NAME!$DRIVER_NAME$ac_delim
21588build!$build$ac_delim
21589build_cpu!$build_cpu$ac_delim
21590build_vendor!$build_vendor$ac_delim
21591build_os!$build_os$ac_delim
21592host!$host$ac_delim
21593host_cpu!$host_cpu$ac_delim
21594host_vendor!$host_vendor$ac_delim
21595host_os!$host_os$ac_delim
21596CC!$CC$ac_delim
21597CFLAGS!$CFLAGS$ac_delim
21598LDFLAGS!$LDFLAGS$ac_delim
21599CPPFLAGS!$CPPFLAGS$ac_delim
21600ac_ct_CC!$ac_ct_CC$ac_delim
21601EXEEXT!$EXEEXT$ac_delim
21602OBJEXT!$OBJEXT$ac_delim
21603DEPDIR!$DEPDIR$ac_delim
21604am__include!$am__include$ac_delim
21605am__quote!$am__quote$ac_delim
21606AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21607AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21608AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21609CCDEPMODE!$CCDEPMODE$ac_delim
21610am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21611am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21612SED!$SED$ac_delim
21613GREP!$GREP$ac_delim
21614EGREP!$EGREP$ac_delim
21615LN_S!$LN_S$ac_delim
21616ECHO!$ECHO$ac_delim
21617AR!$AR$ac_delim
21618RANLIB!$RANLIB$ac_delim
21619CPP!$CPP$ac_delim
21620CXX!$CXX$ac_delim
21621CXXFLAGS!$CXXFLAGS$ac_delim
21622_ACEOF
21623
21624  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21625    break
21626  elif $ac_last_try; then
21627    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21628echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21629   { (exit 1); exit 1; }; }
21630  else
21631    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21632  fi
21633done
21634
21635ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21636if test -n "$ac_eof"; then
21637  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21638  ac_eof=`expr $ac_eof + 1`
21639fi
21640
21641cat >>$CONFIG_STATUS <<_ACEOF
21642cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21643/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21644_ACEOF
21645sed '
21646s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21647s/^/s,@/; s/!/@,|#_!!_#|/
21648:n
21649t n
21650s/'"$ac_delim"'$/,g/; t
21651s/$/\\/; p
21652N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21653' >>$CONFIG_STATUS <conf$$subs.sed
21654rm -f conf$$subs.sed
21655cat >>$CONFIG_STATUS <<_ACEOF
21656CEOF$ac_eof
21657_ACEOF
21658
21659
21660ac_delim='%!_!# '
21661for ac_last_try in false false false false false :; do
21662  cat >conf$$subs.sed <<_ACEOF
21663ac_ct_CXX!$ac_ct_CXX$ac_delim
21664CXXDEPMODE!$CXXDEPMODE$ac_delim
21665am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21666am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21667CXXCPP!$CXXCPP$ac_delim
21668F77!$F77$ac_delim
21669FFLAGS!$FFLAGS$ac_delim
21670ac_ct_F77!$ac_ct_F77$ac_delim
21671LIBTOOL!$LIBTOOL$ac_delim
21672inputdir!$inputdir$ac_delim
21673PKG_CONFIG!$PKG_CONFIG$ac_delim
21674XORG_CFLAGS!$XORG_CFLAGS$ac_delim
21675XORG_LIBS!$XORG_LIBS$ac_delim
21676APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
21677LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
21678FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
21679MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
21680DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
21681ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
21682APP_MAN_DIR!$APP_MAN_DIR$ac_delim
21683LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
21684FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
21685MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
21686DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
21687ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
21688LIBOBJS!$LIBOBJS$ac_delim
21689LTLIBOBJS!$LTLIBOBJS$ac_delim
21690_ACEOF
21691
21692  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
21693    break
21694  elif $ac_last_try; then
21695    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21696echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21697   { (exit 1); exit 1; }; }
21698  else
21699    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21700  fi
21701done
21702
21703ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21704if test -n "$ac_eof"; then
21705  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21706  ac_eof=`expr $ac_eof + 1`
21707fi
21708
21709cat >>$CONFIG_STATUS <<_ACEOF
21710cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21711/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21712_ACEOF
21713sed '
21714s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21715s/^/s,@/; s/!/@,|#_!!_#|/
21716:n
21717t n
21718s/'"$ac_delim"'$/,g/; t
21719s/$/\\/; p
21720N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21721' >>$CONFIG_STATUS <conf$$subs.sed
21722rm -f conf$$subs.sed
21723cat >>$CONFIG_STATUS <<_ACEOF
21724:end
21725s/|#_!!_#|//g
21726CEOF$ac_eof
21727_ACEOF
21728
21729
21730# VPATH may cause trouble with some makes, so we remove $(srcdir),
21731# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21732# trailing colons and then remove the whole line if VPATH becomes empty
21733# (actually we leave an empty line to preserve line numbers).
21734if test "x$srcdir" = x.; then
21735  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21736s/:*\$(srcdir):*/:/
21737s/:*\${srcdir}:*/:/
21738s/:*@srcdir@:*/:/
21739s/^\([^=]*=[	 ]*\):*/\1/
21740s/:*$//
21741s/^[^=]*=[	 ]*$//
21742}'
21743fi
21744
21745cat >>$CONFIG_STATUS <<\_ACEOF
21746fi # test -n "$CONFIG_FILES"
21747
21748
21749for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21750do
21751  case $ac_tag in
21752  :[FHLC]) ac_mode=$ac_tag; continue;;
21753  esac
21754  case $ac_mode$ac_tag in
21755  :[FHL]*:*);;
21756  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21757echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21758   { (exit 1); exit 1; }; };;
21759  :[FH]-) ac_tag=-:-;;
21760  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21761  esac
21762  ac_save_IFS=$IFS
21763  IFS=:
21764  set x $ac_tag
21765  IFS=$ac_save_IFS
21766  shift
21767  ac_file=$1
21768  shift
21769
21770  case $ac_mode in
21771  :L) ac_source=$1;;
21772  :[FH])
21773    ac_file_inputs=
21774    for ac_f
21775    do
21776      case $ac_f in
21777      -) ac_f="$tmp/stdin";;
21778      *) # Look for the file first in the build tree, then in the source tree
21779	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21780	 # because $ac_f cannot contain `:'.
21781	 test -f "$ac_f" ||
21782	   case $ac_f in
21783	   [\\/$]*) false;;
21784	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21785	   esac ||
21786	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21787echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21788   { (exit 1); exit 1; }; };;
21789      esac
21790      ac_file_inputs="$ac_file_inputs $ac_f"
21791    done
21792
21793    # Let's still pretend it is `configure' which instantiates (i.e., don't
21794    # use $as_me), people would be surprised to read:
21795    #    /* config.h.  Generated by config.status.  */
21796    configure_input="Generated from "`IFS=:
21797	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21798    if test x"$ac_file" != x-; then
21799      configure_input="$ac_file.  $configure_input"
21800      { echo "$as_me:$LINENO: creating $ac_file" >&5
21801echo "$as_me: creating $ac_file" >&6;}
21802    fi
21803
21804    case $ac_tag in
21805    *:-:* | *:-) cat >"$tmp/stdin";;
21806    esac
21807    ;;
21808  esac
21809
21810  ac_dir=`$as_dirname -- "$ac_file" ||
21811$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21812	 X"$ac_file" : 'X\(//\)[^/]' \| \
21813	 X"$ac_file" : 'X\(//\)$' \| \
21814	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21815echo X"$ac_file" |
21816    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21817	    s//\1/
21818	    q
21819	  }
21820	  /^X\(\/\/\)[^/].*/{
21821	    s//\1/
21822	    q
21823	  }
21824	  /^X\(\/\/\)$/{
21825	    s//\1/
21826	    q
21827	  }
21828	  /^X\(\/\).*/{
21829	    s//\1/
21830	    q
21831	  }
21832	  s/.*/./; q'`
21833  { as_dir="$ac_dir"
21834  case $as_dir in #(
21835  -*) as_dir=./$as_dir;;
21836  esac
21837  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21838    as_dirs=
21839    while :; do
21840      case $as_dir in #(
21841      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21842      *) as_qdir=$as_dir;;
21843      esac
21844      as_dirs="'$as_qdir' $as_dirs"
21845      as_dir=`$as_dirname -- "$as_dir" ||
21846$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21847	 X"$as_dir" : 'X\(//\)[^/]' \| \
21848	 X"$as_dir" : 'X\(//\)$' \| \
21849	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21850echo X"$as_dir" |
21851    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21852	    s//\1/
21853	    q
21854	  }
21855	  /^X\(\/\/\)[^/].*/{
21856	    s//\1/
21857	    q
21858	  }
21859	  /^X\(\/\/\)$/{
21860	    s//\1/
21861	    q
21862	  }
21863	  /^X\(\/\).*/{
21864	    s//\1/
21865	    q
21866	  }
21867	  s/.*/./; q'`
21868      test -d "$as_dir" && break
21869    done
21870    test -z "$as_dirs" || eval "mkdir $as_dirs"
21871  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21872echo "$as_me: error: cannot create directory $as_dir" >&2;}
21873   { (exit 1); exit 1; }; }; }
21874  ac_builddir=.
21875
21876case "$ac_dir" in
21877.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21878*)
21879  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21880  # A ".." for each directory in $ac_dir_suffix.
21881  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21882  case $ac_top_builddir_sub in
21883  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21884  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21885  esac ;;
21886esac
21887ac_abs_top_builddir=$ac_pwd
21888ac_abs_builddir=$ac_pwd$ac_dir_suffix
21889# for backward compatibility:
21890ac_top_builddir=$ac_top_build_prefix
21891
21892case $srcdir in
21893  .)  # We are building in place.
21894    ac_srcdir=.
21895    ac_top_srcdir=$ac_top_builddir_sub
21896    ac_abs_top_srcdir=$ac_pwd ;;
21897  [\\/]* | ?:[\\/]* )  # Absolute name.
21898    ac_srcdir=$srcdir$ac_dir_suffix;
21899    ac_top_srcdir=$srcdir
21900    ac_abs_top_srcdir=$srcdir ;;
21901  *) # Relative name.
21902    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21903    ac_top_srcdir=$ac_top_build_prefix$srcdir
21904    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21905esac
21906ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21907
21908
21909  case $ac_mode in
21910  :F)
21911  #
21912  # CONFIG_FILE
21913  #
21914
21915  case $INSTALL in
21916  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21917  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21918  esac
21919  ac_MKDIR_P=$MKDIR_P
21920  case $MKDIR_P in
21921  [\\/$]* | ?:[\\/]* ) ;;
21922  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21923  esac
21924_ACEOF
21925
21926cat >>$CONFIG_STATUS <<\_ACEOF
21927# If the template does not know about datarootdir, expand it.
21928# FIXME: This hack should be removed a few years after 2.60.
21929ac_datarootdir_hack=; ac_datarootdir_seen=
21930
21931case `sed -n '/datarootdir/ {
21932  p
21933  q
21934}
21935/@datadir@/p
21936/@docdir@/p
21937/@infodir@/p
21938/@localedir@/p
21939/@mandir@/p
21940' $ac_file_inputs` in
21941*datarootdir*) ac_datarootdir_seen=yes;;
21942*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21943  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21944echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21945_ACEOF
21946cat >>$CONFIG_STATUS <<_ACEOF
21947  ac_datarootdir_hack='
21948  s&@datadir@&$datadir&g
21949  s&@docdir@&$docdir&g
21950  s&@infodir@&$infodir&g
21951  s&@localedir@&$localedir&g
21952  s&@mandir@&$mandir&g
21953    s&\\\${datarootdir}&$datarootdir&g' ;;
21954esac
21955_ACEOF
21956
21957# Neutralize VPATH when `$srcdir' = `.'.
21958# Shell code in configure.ac might set extrasub.
21959# FIXME: do we really want to maintain this feature?
21960cat >>$CONFIG_STATUS <<_ACEOF
21961  sed "$ac_vpsub
21962$extrasub
21963_ACEOF
21964cat >>$CONFIG_STATUS <<\_ACEOF
21965:t
21966/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21967s&@configure_input@&$configure_input&;t t
21968s&@top_builddir@&$ac_top_builddir_sub&;t t
21969s&@srcdir@&$ac_srcdir&;t t
21970s&@abs_srcdir@&$ac_abs_srcdir&;t t
21971s&@top_srcdir@&$ac_top_srcdir&;t t
21972s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21973s&@builddir@&$ac_builddir&;t t
21974s&@abs_builddir@&$ac_abs_builddir&;t t
21975s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21976s&@INSTALL@&$ac_INSTALL&;t t
21977s&@MKDIR_P@&$ac_MKDIR_P&;t t
21978$ac_datarootdir_hack
21979" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21980
21981test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21982  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21983  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21984  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21985which seems to be undefined.  Please make sure it is defined." >&5
21986echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21987which seems to be undefined.  Please make sure it is defined." >&2;}
21988
21989  rm -f "$tmp/stdin"
21990  case $ac_file in
21991  -) cat "$tmp/out"; rm -f "$tmp/out";;
21992  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21993  esac
21994 ;;
21995  :H)
21996  #
21997  # CONFIG_HEADER
21998  #
21999_ACEOF
22000
22001# Transform confdefs.h into a sed script `conftest.defines', that
22002# substitutes the proper values into config.h.in to produce config.h.
22003rm -f conftest.defines conftest.tail
22004# First, append a space to every undef/define line, to ease matching.
22005echo 's/$/ /' >conftest.defines
22006# Then, protect against being on the right side of a sed subst, or in
22007# an unquoted here document, in config.status.  If some macros were
22008# called several times there might be several #defines for the same
22009# symbol, which is useless.  But do not sort them, since the last
22010# AC_DEFINE must be honored.
22011ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22012# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22013# NAME is the cpp macro being defined, VALUE is the value it is being given.
22014# PARAMS is the parameter list in the macro definition--in most cases, it's
22015# just an empty string.
22016ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
22017ac_dB='\\)[	 (].*,\\1define\\2'
22018ac_dC=' '
22019ac_dD=' ,'
22020
22021uniq confdefs.h |
22022  sed -n '
22023	t rset
22024	:rset
22025	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
22026	t ok
22027	d
22028	:ok
22029	s/[\\&,]/\\&/g
22030	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22031	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22032  ' >>conftest.defines
22033
22034# Remove the space that was appended to ease matching.
22035# Then replace #undef with comments.  This is necessary, for
22036# example, in the case of _POSIX_SOURCE, which is predefined and required
22037# on some systems where configure will not decide to define it.
22038# (The regexp can be short, since the line contains either #define or #undef.)
22039echo 's/ $//
22040s,^[	 #]*u.*,/* & */,' >>conftest.defines
22041
22042# Break up conftest.defines:
22043ac_max_sed_lines=50
22044
22045# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22046# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22047# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22048# et cetera.
22049ac_in='$ac_file_inputs'
22050ac_out='"$tmp/out1"'
22051ac_nxt='"$tmp/out2"'
22052
22053while :
22054do
22055  # Write a here document:
22056    cat >>$CONFIG_STATUS <<_ACEOF
22057    # First, check the format of the line:
22058    cat >"\$tmp/defines.sed" <<\\CEOF
22059/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
22060/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
22061b
22062:def
22063_ACEOF
22064  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22065  echo 'CEOF
22066    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22067  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22068  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22069  grep . conftest.tail >/dev/null || break
22070  rm -f conftest.defines
22071  mv conftest.tail conftest.defines
22072done
22073rm -f conftest.defines conftest.tail
22074
22075echo "ac_result=$ac_in" >>$CONFIG_STATUS
22076cat >>$CONFIG_STATUS <<\_ACEOF
22077  if test x"$ac_file" != x-; then
22078    echo "/* $configure_input  */" >"$tmp/config.h"
22079    cat "$ac_result" >>"$tmp/config.h"
22080    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22081      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22082echo "$as_me: $ac_file is unchanged" >&6;}
22083    else
22084      rm -f $ac_file
22085      mv "$tmp/config.h" $ac_file
22086    fi
22087  else
22088    echo "/* $configure_input  */"
22089    cat "$ac_result"
22090  fi
22091  rm -f "$tmp/out12"
22092# Compute $ac_file's index in $config_headers.
22093_am_stamp_count=1
22094for _am_header in $config_headers :; do
22095  case $_am_header in
22096    $ac_file | $ac_file:* )
22097      break ;;
22098    * )
22099      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22100  esac
22101done
22102echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22103$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22104	 X$ac_file : 'X\(//\)[^/]' \| \
22105	 X$ac_file : 'X\(//\)$' \| \
22106	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22107echo X$ac_file |
22108    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22109	    s//\1/
22110	    q
22111	  }
22112	  /^X\(\/\/\)[^/].*/{
22113	    s//\1/
22114	    q
22115	  }
22116	  /^X\(\/\/\)$/{
22117	    s//\1/
22118	    q
22119	  }
22120	  /^X\(\/\).*/{
22121	    s//\1/
22122	    q
22123	  }
22124	  s/.*/./; q'`/stamp-h$_am_stamp_count
22125 ;;
22126
22127  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22128echo "$as_me: executing $ac_file commands" >&6;}
22129 ;;
22130  esac
22131
22132
22133  case $ac_file$ac_mode in
22134    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22135  # Strip MF so we end up with the name of the file.
22136  mf=`echo "$mf" | sed -e 's/:.*$//'`
22137  # Check whether this is an Automake generated Makefile or not.
22138  # We used to match only the files named `Makefile.in', but
22139  # some people rename them; so instead we look at the file content.
22140  # Grep'ing the first line is not enough: some people post-process
22141  # each Makefile.in and add a new line on top of each file to say so.
22142  # Grep'ing the whole file is not good either: AIX grep has a line
22143  # limit of 2048, but all sed's we know have understand at least 4000.
22144  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22145    dirpart=`$as_dirname -- "$mf" ||
22146$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22147	 X"$mf" : 'X\(//\)[^/]' \| \
22148	 X"$mf" : 'X\(//\)$' \| \
22149	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22150echo X"$mf" |
22151    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22152	    s//\1/
22153	    q
22154	  }
22155	  /^X\(\/\/\)[^/].*/{
22156	    s//\1/
22157	    q
22158	  }
22159	  /^X\(\/\/\)$/{
22160	    s//\1/
22161	    q
22162	  }
22163	  /^X\(\/\).*/{
22164	    s//\1/
22165	    q
22166	  }
22167	  s/.*/./; q'`
22168  else
22169    continue
22170  fi
22171  # Extract the definition of DEPDIR, am__include, and am__quote
22172  # from the Makefile without running `make'.
22173  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22174  test -z "$DEPDIR" && continue
22175  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22176  test -z "am__include" && continue
22177  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22178  # When using ansi2knr, U may be empty or an underscore; expand it
22179  U=`sed -n 's/^U = //p' < "$mf"`
22180  # Find all dependency output files, they are included files with
22181  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22182  # simplest approach to changing $(DEPDIR) to its actual value in the
22183  # expansion.
22184  for file in `sed -n "
22185    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22186       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22187    # Make sure the directory exists.
22188    test -f "$dirpart/$file" && continue
22189    fdir=`$as_dirname -- "$file" ||
22190$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22191	 X"$file" : 'X\(//\)[^/]' \| \
22192	 X"$file" : 'X\(//\)$' \| \
22193	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22194echo X"$file" |
22195    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22196	    s//\1/
22197	    q
22198	  }
22199	  /^X\(\/\/\)[^/].*/{
22200	    s//\1/
22201	    q
22202	  }
22203	  /^X\(\/\/\)$/{
22204	    s//\1/
22205	    q
22206	  }
22207	  /^X\(\/\).*/{
22208	    s//\1/
22209	    q
22210	  }
22211	  s/.*/./; q'`
22212    { as_dir=$dirpart/$fdir
22213  case $as_dir in #(
22214  -*) as_dir=./$as_dir;;
22215  esac
22216  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22217    as_dirs=
22218    while :; do
22219      case $as_dir in #(
22220      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22221      *) as_qdir=$as_dir;;
22222      esac
22223      as_dirs="'$as_qdir' $as_dirs"
22224      as_dir=`$as_dirname -- "$as_dir" ||
22225$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22226	 X"$as_dir" : 'X\(//\)[^/]' \| \
22227	 X"$as_dir" : 'X\(//\)$' \| \
22228	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22229echo X"$as_dir" |
22230    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22231	    s//\1/
22232	    q
22233	  }
22234	  /^X\(\/\/\)[^/].*/{
22235	    s//\1/
22236	    q
22237	  }
22238	  /^X\(\/\/\)$/{
22239	    s//\1/
22240	    q
22241	  }
22242	  /^X\(\/\).*/{
22243	    s//\1/
22244	    q
22245	  }
22246	  s/.*/./; q'`
22247      test -d "$as_dir" && break
22248    done
22249    test -z "$as_dirs" || eval "mkdir $as_dirs"
22250  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22251echo "$as_me: error: cannot create directory $as_dir" >&2;}
22252   { (exit 1); exit 1; }; }; }
22253    # echo "creating $dirpart/$file"
22254    echo '# dummy' > "$dirpart/$file"
22255  done
22256done
22257 ;;
22258
22259  esac
22260done # for ac_tag
22261
22262
22263{ (exit 0); exit 0; }
22264_ACEOF
22265chmod +x $CONFIG_STATUS
22266ac_clean_files=$ac_clean_files_save
22267
22268
22269# configure is writing to config.log, and then calls config.status.
22270# config.status does its own redirection, appending to config.log.
22271# Unfortunately, on DOS this fails, as config.log is still kept open
22272# by configure, so config.status won't be able to write to it; its
22273# output is simply discarded.  So we exec the FD to /dev/null,
22274# effectively closing config.log, so it can be properly (re)opened and
22275# appended to by config.status.  When coming back to configure, we
22276# need to make the FD available again.
22277if test "$no_create" != yes; then
22278  ac_cs_success=:
22279  ac_config_status_args=
22280  test "$silent" = yes &&
22281    ac_config_status_args="$ac_config_status_args --quiet"
22282  exec 5>/dev/null
22283  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22284  exec 5>>config.log
22285  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22286  # would make configure fail if this is the last instruction.
22287  $ac_cs_success || { (exit 1); exit 1; }
22288fi
22289
22290