configure revision 209ff23f
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for xf86-video-ati 6.9.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-video-ati'
730PACKAGE_TARNAME='xf86-video-ati'
731PACKAGE_VERSION='6.9.0'
732PACKAGE_STRING='xf86-video-ati 6.9.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
834build
835build_cpu
836build_vendor
837build_os
838host
839host_cpu
840host_vendor
841host_os
842CC
843CFLAGS
844LDFLAGS
845CPPFLAGS
846ac_ct_CC
847EXEEXT
848OBJEXT
849DEPDIR
850am__include
851am__quote
852AMDEP_TRUE
853AMDEP_FALSE
854AMDEPBACKSLASH
855CCDEPMODE
856am__fastdepCC_TRUE
857am__fastdepCC_FALSE
858SED
859GREP
860EGREP
861LN_S
862ECHO
863AR
864RANLIB
865DSYMUTIL
866NMEDIT
867CPP
868CXX
869CXXFLAGS
870ac_ct_CXX
871CXXDEPMODE
872am__fastdepCXX_TRUE
873am__fastdepCXX_FALSE
874CXXCPP
875F77
876FFLAGS
877ac_ct_F77
878LIBTOOL
879PKG_CONFIG
880XORG_CFLAGS
881XORG_LIBS
882DRI_TRUE
883DRI_FALSE
884DRI_CFLAGS
885DRI_LIBS
886XMODES_TRUE
887XMODES_FALSE
888XMODES_CFLAGS
889USE_EXA_TRUE
890USE_EXA_FALSE
891PCIACCESS_CFLAGS
892PCIACCESS_LIBS
893XSERVER_LIBPCIACCESS_TRUE
894XSERVER_LIBPCIACCESS_FALSE
895moduledir
896DRIVER_NAME
897APP_MAN_SUFFIX
898LIB_MAN_SUFFIX
899FILE_MAN_SUFFIX
900MISC_MAN_SUFFIX
901DRIVER_MAN_SUFFIX
902ADMIN_MAN_SUFFIX
903APP_MAN_DIR
904LIB_MAN_DIR
905FILE_MAN_DIR
906MISC_MAN_DIR
907DRIVER_MAN_DIR
908ADMIN_MAN_DIR
909LINUXDOC
910PS2PDF
911BUILD_LINUXDOC_TRUE
912BUILD_LINUXDOC_FALSE
913BUILD_PDFDOC_TRUE
914BUILD_PDFDOC_FALSE
915MAKE_TEXT
916MAKE_PS
917MAKE_PDF
918MAKE_HTML
919LIBOBJS
920LTLIBOBJS'
921ac_subst_files=''
922      ac_precious_vars='build_alias
923host_alias
924target_alias
925CC
926CFLAGS
927LDFLAGS
928LIBS
929CPPFLAGS
930CPP
931CXX
932CXXFLAGS
933CCC
934CXXCPP
935F77
936FFLAGS
937PKG_CONFIG
938XORG_CFLAGS
939XORG_LIBS
940DRI_CFLAGS
941DRI_LIBS
942PCIACCESS_CFLAGS
943PCIACCESS_LIBS'
944
945
946# Initialize some variables set by options.
947ac_init_help=
948ac_init_version=false
949# The variables have the same names as the options, with
950# dashes changed to underlines.
951cache_file=/dev/null
952exec_prefix=NONE
953no_create=
954no_recursion=
955prefix=NONE
956program_prefix=NONE
957program_suffix=NONE
958program_transform_name=s,x,x,
959silent=
960site=
961srcdir=
962verbose=
963x_includes=NONE
964x_libraries=NONE
965
966# Installation directory options.
967# These are left unexpanded so users can "make install exec_prefix=/foo"
968# and all the variables that are supposed to be based on exec_prefix
969# by default will actually change.
970# Use braces instead of parens because sh, perl, etc. also accept them.
971# (The list follows the same order as the GNU Coding Standards.)
972bindir='${exec_prefix}/bin'
973sbindir='${exec_prefix}/sbin'
974libexecdir='${exec_prefix}/libexec'
975datarootdir='${prefix}/share'
976datadir='${datarootdir}'
977sysconfdir='${prefix}/etc'
978sharedstatedir='${prefix}/com'
979localstatedir='${prefix}/var'
980includedir='${prefix}/include'
981oldincludedir='/usr/include'
982docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
983infodir='${datarootdir}/info'
984htmldir='${docdir}'
985dvidir='${docdir}'
986pdfdir='${docdir}'
987psdir='${docdir}'
988libdir='${exec_prefix}/lib'
989localedir='${datarootdir}/locale'
990mandir='${datarootdir}/man'
991
992ac_prev=
993ac_dashdash=
994for ac_option
995do
996  # If the previous option needs an argument, assign it.
997  if test -n "$ac_prev"; then
998    eval $ac_prev=\$ac_option
999    ac_prev=
1000    continue
1001  fi
1002
1003  case $ac_option in
1004  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005  *)	ac_optarg=yes ;;
1006  esac
1007
1008  # Accept the important Cygnus configure options, so we can diagnose typos.
1009
1010  case $ac_dashdash$ac_option in
1011  --)
1012    ac_dashdash=yes ;;
1013
1014  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015    ac_prev=bindir ;;
1016  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017    bindir=$ac_optarg ;;
1018
1019  -build | --build | --buil | --bui | --bu)
1020    ac_prev=build_alias ;;
1021  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022    build_alias=$ac_optarg ;;
1023
1024  -cache-file | --cache-file | --cache-fil | --cache-fi \
1025  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1026    ac_prev=cache_file ;;
1027  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1028  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1029    cache_file=$ac_optarg ;;
1030
1031  --config-cache | -C)
1032    cache_file=config.cache ;;
1033
1034  -datadir | --datadir | --datadi | --datad)
1035    ac_prev=datadir ;;
1036  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1037    datadir=$ac_optarg ;;
1038
1039  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040  | --dataroo | --dataro | --datar)
1041    ac_prev=datarootdir ;;
1042  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044    datarootdir=$ac_optarg ;;
1045
1046  -disable-* | --disable-*)
1047    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048    # Reject names that are not valid shell variable names.
1049    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1050      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1051   { (exit 1); exit 1; }; }
1052    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1053    eval enable_$ac_feature=no ;;
1054
1055  -docdir | --docdir | --docdi | --doc | --do)
1056    ac_prev=docdir ;;
1057  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058    docdir=$ac_optarg ;;
1059
1060  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061    ac_prev=dvidir ;;
1062  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063    dvidir=$ac_optarg ;;
1064
1065  -enable-* | --enable-*)
1066    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067    # Reject names that are not valid shell variable names.
1068    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1069      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1070   { (exit 1); exit 1; }; }
1071    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1072    eval enable_$ac_feature=\$ac_optarg ;;
1073
1074  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1075  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1076  | --exec | --exe | --ex)
1077    ac_prev=exec_prefix ;;
1078  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1079  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1080  | --exec=* | --exe=* | --ex=*)
1081    exec_prefix=$ac_optarg ;;
1082
1083  -gas | --gas | --ga | --g)
1084    # Obsolete; use --with-gas.
1085    with_gas=yes ;;
1086
1087  -help | --help | --hel | --he | -h)
1088    ac_init_help=long ;;
1089  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1090    ac_init_help=recursive ;;
1091  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1092    ac_init_help=short ;;
1093
1094  -host | --host | --hos | --ho)
1095    ac_prev=host_alias ;;
1096  -host=* | --host=* | --hos=* | --ho=*)
1097    host_alias=$ac_optarg ;;
1098
1099  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1100    ac_prev=htmldir ;;
1101  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1102  | --ht=*)
1103    htmldir=$ac_optarg ;;
1104
1105  -includedir | --includedir | --includedi | --included | --include \
1106  | --includ | --inclu | --incl | --inc)
1107    ac_prev=includedir ;;
1108  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1109  | --includ=* | --inclu=* | --incl=* | --inc=*)
1110    includedir=$ac_optarg ;;
1111
1112  -infodir | --infodir | --infodi | --infod | --info | --inf)
1113    ac_prev=infodir ;;
1114  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1115    infodir=$ac_optarg ;;
1116
1117  -libdir | --libdir | --libdi | --libd)
1118    ac_prev=libdir ;;
1119  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1120    libdir=$ac_optarg ;;
1121
1122  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1123  | --libexe | --libex | --libe)
1124    ac_prev=libexecdir ;;
1125  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1126  | --libexe=* | --libex=* | --libe=*)
1127    libexecdir=$ac_optarg ;;
1128
1129  -localedir | --localedir | --localedi | --localed | --locale)
1130    ac_prev=localedir ;;
1131  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1132    localedir=$ac_optarg ;;
1133
1134  -localstatedir | --localstatedir | --localstatedi | --localstated \
1135  | --localstate | --localstat | --localsta | --localst | --locals)
1136    ac_prev=localstatedir ;;
1137  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1138  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1139    localstatedir=$ac_optarg ;;
1140
1141  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1142    ac_prev=mandir ;;
1143  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1144    mandir=$ac_optarg ;;
1145
1146  -nfp | --nfp | --nf)
1147    # Obsolete; use --without-fp.
1148    with_fp=no ;;
1149
1150  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1151  | --no-cr | --no-c | -n)
1152    no_create=yes ;;
1153
1154  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1155  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1156    no_recursion=yes ;;
1157
1158  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1159  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1160  | --oldin | --oldi | --old | --ol | --o)
1161    ac_prev=oldincludedir ;;
1162  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1163  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1164  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1165    oldincludedir=$ac_optarg ;;
1166
1167  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1168    ac_prev=prefix ;;
1169  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1170    prefix=$ac_optarg ;;
1171
1172  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1173  | --program-pre | --program-pr | --program-p)
1174    ac_prev=program_prefix ;;
1175  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1176  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1177    program_prefix=$ac_optarg ;;
1178
1179  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1180  | --program-suf | --program-su | --program-s)
1181    ac_prev=program_suffix ;;
1182  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1183  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1184    program_suffix=$ac_optarg ;;
1185
1186  -program-transform-name | --program-transform-name \
1187  | --program-transform-nam | --program-transform-na \
1188  | --program-transform-n | --program-transform- \
1189  | --program-transform | --program-transfor \
1190  | --program-transfo | --program-transf \
1191  | --program-trans | --program-tran \
1192  | --progr-tra | --program-tr | --program-t)
1193    ac_prev=program_transform_name ;;
1194  -program-transform-name=* | --program-transform-name=* \
1195  | --program-transform-nam=* | --program-transform-na=* \
1196  | --program-transform-n=* | --program-transform-=* \
1197  | --program-transform=* | --program-transfor=* \
1198  | --program-transfo=* | --program-transf=* \
1199  | --program-trans=* | --program-tran=* \
1200  | --progr-tra=* | --program-tr=* | --program-t=*)
1201    program_transform_name=$ac_optarg ;;
1202
1203  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1204    ac_prev=pdfdir ;;
1205  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1206    pdfdir=$ac_optarg ;;
1207
1208  -psdir | --psdir | --psdi | --psd | --ps)
1209    ac_prev=psdir ;;
1210  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1211    psdir=$ac_optarg ;;
1212
1213  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1214  | -silent | --silent | --silen | --sile | --sil)
1215    silent=yes ;;
1216
1217  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218    ac_prev=sbindir ;;
1219  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220  | --sbi=* | --sb=*)
1221    sbindir=$ac_optarg ;;
1222
1223  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225  | --sharedst | --shareds | --shared | --share | --shar \
1226  | --sha | --sh)
1227    ac_prev=sharedstatedir ;;
1228  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231  | --sha=* | --sh=*)
1232    sharedstatedir=$ac_optarg ;;
1233
1234  -site | --site | --sit)
1235    ac_prev=site ;;
1236  -site=* | --site=* | --sit=*)
1237    site=$ac_optarg ;;
1238
1239  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240    ac_prev=srcdir ;;
1241  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1242    srcdir=$ac_optarg ;;
1243
1244  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245  | --syscon | --sysco | --sysc | --sys | --sy)
1246    ac_prev=sysconfdir ;;
1247  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1249    sysconfdir=$ac_optarg ;;
1250
1251  -target | --target | --targe | --targ | --tar | --ta | --t)
1252    ac_prev=target_alias ;;
1253  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1254    target_alias=$ac_optarg ;;
1255
1256  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1257    verbose=yes ;;
1258
1259  -version | --version | --versio | --versi | --vers | -V)
1260    ac_init_version=: ;;
1261
1262  -with-* | --with-*)
1263    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1264    # Reject names that are not valid shell variable names.
1265    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266      { echo "$as_me: error: invalid package name: $ac_package" >&2
1267   { (exit 1); exit 1; }; }
1268    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1269    eval with_$ac_package=\$ac_optarg ;;
1270
1271  -without-* | --without-*)
1272    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273    # Reject names that are not valid shell variable names.
1274    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275      { echo "$as_me: error: invalid package name: $ac_package" >&2
1276   { (exit 1); exit 1; }; }
1277    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1278    eval with_$ac_package=no ;;
1279
1280  --x)
1281    # Obsolete; use --with-x.
1282    with_x=yes ;;
1283
1284  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1285  | --x-incl | --x-inc | --x-in | --x-i)
1286    ac_prev=x_includes ;;
1287  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1288  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1289    x_includes=$ac_optarg ;;
1290
1291  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1292  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1293    ac_prev=x_libraries ;;
1294  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1295  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1296    x_libraries=$ac_optarg ;;
1297
1298  -*) { echo "$as_me: error: unrecognized option: $ac_option
1299Try \`$0 --help' for more information." >&2
1300   { (exit 1); exit 1; }; }
1301    ;;
1302
1303  *=*)
1304    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305    # Reject names that are not valid shell variable names.
1306    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1307      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1308   { (exit 1); exit 1; }; }
1309    eval $ac_envvar=\$ac_optarg
1310    export $ac_envvar ;;
1311
1312  *)
1313    # FIXME: should be removed in autoconf 3.0.
1314    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1318    ;;
1319
1320  esac
1321done
1322
1323if test -n "$ac_prev"; then
1324  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1325  { echo "$as_me: error: missing argument to $ac_option" >&2
1326   { (exit 1); exit 1; }; }
1327fi
1328
1329# Be sure to have absolute directory names.
1330for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331		datadir sysconfdir sharedstatedir localstatedir includedir \
1332		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333		libdir localedir mandir
1334do
1335  eval ac_val=\$$ac_var
1336  case $ac_val in
1337    [\\/$]* | ?:[\\/]* )  continue;;
1338    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339  esac
1340  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1341   { (exit 1); exit 1; }; }
1342done
1343
1344# There might be people who depend on the old broken behavior: `$host'
1345# used to hold the argument of --host etc.
1346# FIXME: To remove some day.
1347build=$build_alias
1348host=$host_alias
1349target=$target_alias
1350
1351# FIXME: To remove some day.
1352if test "x$host_alias" != x; then
1353  if test "x$build_alias" = x; then
1354    cross_compiling=maybe
1355    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1356    If a cross compiler is detected then cross compile mode will be used." >&2
1357  elif test "x$build_alias" != "x$host_alias"; then
1358    cross_compiling=yes
1359  fi
1360fi
1361
1362ac_tool_prefix=
1363test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364
1365test "$silent" = yes && exec 6>/dev/null
1366
1367
1368ac_pwd=`pwd` && test -n "$ac_pwd" &&
1369ac_ls_di=`ls -di .` &&
1370ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1371  { echo "$as_me: error: Working directory cannot be determined" >&2
1372   { (exit 1); exit 1; }; }
1373test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374  { echo "$as_me: error: pwd does not report name of working directory" >&2
1375   { (exit 1); exit 1; }; }
1376
1377
1378# Find the source files, if location was not specified.
1379if test -z "$srcdir"; then
1380  ac_srcdir_defaulted=yes
1381  # Try the directory containing this script, then the parent directory.
1382  ac_confdir=`$as_dirname -- "$0" ||
1383$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1384	 X"$0" : 'X\(//\)[^/]' \| \
1385	 X"$0" : 'X\(//\)$' \| \
1386	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1387echo X"$0" |
1388    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389	    s//\1/
1390	    q
1391	  }
1392	  /^X\(\/\/\)[^/].*/{
1393	    s//\1/
1394	    q
1395	  }
1396	  /^X\(\/\/\)$/{
1397	    s//\1/
1398	    q
1399	  }
1400	  /^X\(\/\).*/{
1401	    s//\1/
1402	    q
1403	  }
1404	  s/.*/./; q'`
1405  srcdir=$ac_confdir
1406  if test ! -r "$srcdir/$ac_unique_file"; then
1407    srcdir=..
1408  fi
1409else
1410  ac_srcdir_defaulted=no
1411fi
1412if test ! -r "$srcdir/$ac_unique_file"; then
1413  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1414  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1415   { (exit 1); exit 1; }; }
1416fi
1417ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1418ac_abs_confdir=`(
1419	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1420   { (exit 1); exit 1; }; }
1421	pwd)`
1422# When building in place, set srcdir=.
1423if test "$ac_abs_confdir" = "$ac_pwd"; then
1424  srcdir=.
1425fi
1426# Remove unnecessary trailing slashes from srcdir.
1427# Double slashes in file names in object file debugging info
1428# mess up M-x gdb in Emacs.
1429case $srcdir in
1430*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431esac
1432for ac_var in $ac_precious_vars; do
1433  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434  eval ac_env_${ac_var}_value=\$${ac_var}
1435  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437done
1438
1439#
1440# Report the --help message.
1441#
1442if test "$ac_init_help" = "long"; then
1443  # Omit some internal or obsolete options to make the list less imposing.
1444  # This message is too long to be a string in the A/UX 3.1 sh.
1445  cat <<_ACEOF
1446\`configure' configures xf86-video-ati 6.9.0 to adapt to many kinds of systems.
1447
1448Usage: $0 [OPTION]... [VAR=VALUE]...
1449
1450To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451VAR=VALUE.  See below for descriptions of some of the useful variables.
1452
1453Defaults for the options are specified in brackets.
1454
1455Configuration:
1456  -h, --help              display this help and exit
1457      --help=short        display options specific to this package
1458      --help=recursive    display the short help of all the included packages
1459  -V, --version           display version information and exit
1460  -q, --quiet, --silent   do not print \`checking...' messages
1461      --cache-file=FILE   cache test results in FILE [disabled]
1462  -C, --config-cache      alias for \`--cache-file=config.cache'
1463  -n, --no-create         do not create output files
1464      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1465
1466Installation directories:
1467  --prefix=PREFIX         install architecture-independent files in PREFIX
1468			  [$ac_default_prefix]
1469  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1470			  [PREFIX]
1471
1472By default, \`make install' will install all the files in
1473\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1474an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475for instance \`--prefix=\$HOME'.
1476
1477For better control, use the options below.
1478
1479Fine tuning of the installation directories:
1480  --bindir=DIR           user executables [EPREFIX/bin]
1481  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1482  --libexecdir=DIR       program executables [EPREFIX/libexec]
1483  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1484  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1485  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1486  --libdir=DIR           object code libraries [EPREFIX/lib]
1487  --includedir=DIR       C header files [PREFIX/include]
1488  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1489  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1490  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1491  --infodir=DIR          info documentation [DATAROOTDIR/info]
1492  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1493  --mandir=DIR           man documentation [DATAROOTDIR/man]
1494  --docdir=DIR           documentation root [DATAROOTDIR/doc/xf86-video-ati]
1495  --htmldir=DIR          html documentation [DOCDIR]
1496  --dvidir=DIR           dvi documentation [DOCDIR]
1497  --pdfdir=DIR           pdf documentation [DOCDIR]
1498  --psdir=DIR            ps documentation [DOCDIR]
1499_ACEOF
1500
1501  cat <<\_ACEOF
1502
1503Program names:
1504  --program-prefix=PREFIX            prepend PREFIX to installed program names
1505  --program-suffix=SUFFIX            append SUFFIX to installed program names
1506  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1507
1508System types:
1509  --build=BUILD     configure for building on BUILD [guessed]
1510  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1511_ACEOF
1512fi
1513
1514if test -n "$ac_init_help"; then
1515  case $ac_init_help in
1516     short | recursive ) echo "Configuration of xf86-video-ati 6.9.0:";;
1517   esac
1518  cat <<\_ACEOF
1519
1520Optional Features:
1521  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1522  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1523  --enable-maintainer-mode  enable make rules and dependencies not useful
1524			  (and sometimes confusing) to the casual installer
1525  --enable-static[=PKGS]  build static libraries [default=no]
1526  --enable-shared[=PKGS]  build shared libraries [default=yes]
1527  --enable-fast-install[=PKGS]
1528                          optimize for fast installation [default=yes]
1529  --disable-dependency-tracking  speeds up one-time build
1530  --enable-dependency-tracking   do not reject slow dependency extractors
1531  --disable-libtool-lock  avoid locking (might break parallel builds)
1532  --disable-dri           Disable DRI support [default=auto]
1533  --disable-exa           Disable EXA support [default=enabled]
1534
1535Optional Packages:
1536  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1537  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1538  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1539  --with-pic              try to use only PIC/non-PIC objects [default=use
1540                          both]
1541  --with-tags[=TAGS]      include additional configurations [automatic]
1542  --with-xorg-module-dir=DIR
1543                          Default xorg module directory
1544                          [default=$libdir/xorg/modules]
1545  --with-xserver-source=XSERVER_SOURCE
1546                          Path to X server source tree
1547  --with-release-version=STRING
1548                          Use release version string in package name
1549
1550Some influential environment variables:
1551  CC          C compiler command
1552  CFLAGS      C compiler flags
1553  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1554              nonstandard directory <lib dir>
1555  LIBS        libraries to pass to the linker, e.g. -l<library>
1556  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1557              you have headers in a nonstandard directory <include dir>
1558  CPP         C preprocessor
1559  CXX         C++ compiler command
1560  CXXFLAGS    C++ compiler flags
1561  CXXCPP      C++ preprocessor
1562  F77         Fortran 77 compiler command
1563  FFLAGS      Fortran 77 compiler flags
1564  PKG_CONFIG  path to pkg-config utility
1565  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1566  XORG_LIBS   linker flags for XORG, overriding pkg-config
1567  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1568  DRI_LIBS    linker flags for DRI, overriding pkg-config
1569  PCIACCESS_CFLAGS
1570              C compiler flags for PCIACCESS, overriding pkg-config
1571  PCIACCESS_LIBS
1572              linker flags for PCIACCESS, overriding pkg-config
1573
1574Use these variables to override the choices made by `configure' or to help
1575it to find libraries and programs with nonstandard names/locations.
1576
1577Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1578_ACEOF
1579ac_status=$?
1580fi
1581
1582if test "$ac_init_help" = "recursive"; then
1583  # If there are subdirs, report their specific --help.
1584  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1585    test -d "$ac_dir" || continue
1586    ac_builddir=.
1587
1588case "$ac_dir" in
1589.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590*)
1591  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1592  # A ".." for each directory in $ac_dir_suffix.
1593  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1594  case $ac_top_builddir_sub in
1595  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597  esac ;;
1598esac
1599ac_abs_top_builddir=$ac_pwd
1600ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601# for backward compatibility:
1602ac_top_builddir=$ac_top_build_prefix
1603
1604case $srcdir in
1605  .)  # We are building in place.
1606    ac_srcdir=.
1607    ac_top_srcdir=$ac_top_builddir_sub
1608    ac_abs_top_srcdir=$ac_pwd ;;
1609  [\\/]* | ?:[\\/]* )  # Absolute name.
1610    ac_srcdir=$srcdir$ac_dir_suffix;
1611    ac_top_srcdir=$srcdir
1612    ac_abs_top_srcdir=$srcdir ;;
1613  *) # Relative name.
1614    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615    ac_top_srcdir=$ac_top_build_prefix$srcdir
1616    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617esac
1618ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1619
1620    cd "$ac_dir" || { ac_status=$?; continue; }
1621    # Check for guested configure.
1622    if test -f "$ac_srcdir/configure.gnu"; then
1623      echo &&
1624      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625    elif test -f "$ac_srcdir/configure"; then
1626      echo &&
1627      $SHELL "$ac_srcdir/configure" --help=recursive
1628    else
1629      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630    fi || ac_status=$?
1631    cd "$ac_pwd" || { ac_status=$?; break; }
1632  done
1633fi
1634
1635test -n "$ac_init_help" && exit $ac_status
1636if $ac_init_version; then
1637  cat <<\_ACEOF
1638xf86-video-ati configure 6.9.0
1639generated by GNU Autoconf 2.61
1640
1641Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16422002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1643This configure script is free software; the Free Software Foundation
1644gives unlimited permission to copy, distribute and modify it.
1645_ACEOF
1646  exit
1647fi
1648cat >config.log <<_ACEOF
1649This file contains any messages produced by compilers while
1650running configure, to aid debugging if configure makes a mistake.
1651
1652It was created by xf86-video-ati $as_me 6.9.0, which was
1653generated by GNU Autoconf 2.61.  Invocation command line was
1654
1655  $ $0 $@
1656
1657_ACEOF
1658exec 5>>config.log
1659{
1660cat <<_ASUNAME
1661## --------- ##
1662## Platform. ##
1663## --------- ##
1664
1665hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1666uname -m = `(uname -m) 2>/dev/null || echo unknown`
1667uname -r = `(uname -r) 2>/dev/null || echo unknown`
1668uname -s = `(uname -s) 2>/dev/null || echo unknown`
1669uname -v = `(uname -v) 2>/dev/null || echo unknown`
1670
1671/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1672/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1673
1674/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1675/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1676/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1677/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1678/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1679/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1680/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1681
1682_ASUNAME
1683
1684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685for as_dir in $PATH
1686do
1687  IFS=$as_save_IFS
1688  test -z "$as_dir" && as_dir=.
1689  echo "PATH: $as_dir"
1690done
1691IFS=$as_save_IFS
1692
1693} >&5
1694
1695cat >&5 <<_ACEOF
1696
1697
1698## ----------- ##
1699## Core tests. ##
1700## ----------- ##
1701
1702_ACEOF
1703
1704
1705# Keep a trace of the command line.
1706# Strip out --no-create and --no-recursion so they do not pile up.
1707# Strip out --silent because we don't want to record it for future runs.
1708# Also quote any args containing shell meta-characters.
1709# Make two passes to allow for proper duplicate-argument suppression.
1710ac_configure_args=
1711ac_configure_args0=
1712ac_configure_args1=
1713ac_must_keep_next=false
1714for ac_pass in 1 2
1715do
1716  for ac_arg
1717  do
1718    case $ac_arg in
1719    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1720    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1721    | -silent | --silent | --silen | --sile | --sil)
1722      continue ;;
1723    *\'*)
1724      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1725    esac
1726    case $ac_pass in
1727    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1728    2)
1729      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1730      if test $ac_must_keep_next = true; then
1731	ac_must_keep_next=false # Got value, back to normal.
1732      else
1733	case $ac_arg in
1734	  *=* | --config-cache | -C | -disable-* | --disable-* \
1735	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1736	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1737	  | -with-* | --with-* | -without-* | --without-* | --x)
1738	    case "$ac_configure_args0 " in
1739	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1740	    esac
1741	    ;;
1742	  -* ) ac_must_keep_next=true ;;
1743	esac
1744      fi
1745      ac_configure_args="$ac_configure_args '$ac_arg'"
1746      ;;
1747    esac
1748  done
1749done
1750$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1751$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1752
1753# When interrupted or exit'd, cleanup temporary files, and complete
1754# config.log.  We remove comments because anyway the quotes in there
1755# would cause problems or look ugly.
1756# WARNING: Use '\'' to represent an apostrophe within the trap.
1757# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1758trap 'exit_status=$?
1759  # Save into config.log some information that might help in debugging.
1760  {
1761    echo
1762
1763    cat <<\_ASBOX
1764## ---------------- ##
1765## Cache variables. ##
1766## ---------------- ##
1767_ASBOX
1768    echo
1769    # The following way of writing the cache mishandles newlines in values,
1770(
1771  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1772    eval ac_val=\$$ac_var
1773    case $ac_val in #(
1774    *${as_nl}*)
1775      case $ac_var in #(
1776      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1777echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1778      esac
1779      case $ac_var in #(
1780      _ | IFS | as_nl) ;; #(
1781      *) $as_unset $ac_var ;;
1782      esac ;;
1783    esac
1784  done
1785  (set) 2>&1 |
1786    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1787    *${as_nl}ac_space=\ *)
1788      sed -n \
1789	"s/'\''/'\''\\\\'\'''\''/g;
1790	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1791      ;; #(
1792    *)
1793      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1794      ;;
1795    esac |
1796    sort
1797)
1798    echo
1799
1800    cat <<\_ASBOX
1801## ----------------- ##
1802## Output variables. ##
1803## ----------------- ##
1804_ASBOX
1805    echo
1806    for ac_var in $ac_subst_vars
1807    do
1808      eval ac_val=\$$ac_var
1809      case $ac_val in
1810      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1811      esac
1812      echo "$ac_var='\''$ac_val'\''"
1813    done | sort
1814    echo
1815
1816    if test -n "$ac_subst_files"; then
1817      cat <<\_ASBOX
1818## ------------------- ##
1819## File substitutions. ##
1820## ------------------- ##
1821_ASBOX
1822      echo
1823      for ac_var in $ac_subst_files
1824      do
1825	eval ac_val=\$$ac_var
1826	case $ac_val in
1827	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828	esac
1829	echo "$ac_var='\''$ac_val'\''"
1830      done | sort
1831      echo
1832    fi
1833
1834    if test -s confdefs.h; then
1835      cat <<\_ASBOX
1836## ----------- ##
1837## confdefs.h. ##
1838## ----------- ##
1839_ASBOX
1840      echo
1841      cat confdefs.h
1842      echo
1843    fi
1844    test "$ac_signal" != 0 &&
1845      echo "$as_me: caught signal $ac_signal"
1846    echo "$as_me: exit $exit_status"
1847  } >&5
1848  rm -f core *.core core.conftest.* &&
1849    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1850    exit $exit_status
1851' 0
1852for ac_signal in 1 2 13 15; do
1853  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1854done
1855ac_signal=0
1856
1857# confdefs.h avoids OS command line length limits that DEFS can exceed.
1858rm -f -r conftest* confdefs.h
1859
1860# Predefined preprocessor variables.
1861
1862cat >>confdefs.h <<_ACEOF
1863#define PACKAGE_NAME "$PACKAGE_NAME"
1864_ACEOF
1865
1866
1867cat >>confdefs.h <<_ACEOF
1868#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1869_ACEOF
1870
1871
1872cat >>confdefs.h <<_ACEOF
1873#define PACKAGE_VERSION "$PACKAGE_VERSION"
1874_ACEOF
1875
1876
1877cat >>confdefs.h <<_ACEOF
1878#define PACKAGE_STRING "$PACKAGE_STRING"
1879_ACEOF
1880
1881
1882cat >>confdefs.h <<_ACEOF
1883#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1884_ACEOF
1885
1886
1887# Let the site file select an alternate cache file if it wants to.
1888# Prefer explicitly selected file to automatically selected ones.
1889if test -n "$CONFIG_SITE"; then
1890  set x "$CONFIG_SITE"
1891elif test "x$prefix" != xNONE; then
1892  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1893else
1894  set x "$ac_default_prefix/share/config.site" \
1895	"$ac_default_prefix/etc/config.site"
1896fi
1897shift
1898for ac_site_file
1899do
1900  if test -r "$ac_site_file"; then
1901    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1902echo "$as_me: loading site script $ac_site_file" >&6;}
1903    sed 's/^/| /' "$ac_site_file" >&5
1904    . "$ac_site_file"
1905  fi
1906done
1907
1908if test -r "$cache_file"; then
1909  # Some versions of bash will fail to source /dev/null (special
1910  # files actually), so we avoid doing that.
1911  if test -f "$cache_file"; then
1912    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1913echo "$as_me: loading cache $cache_file" >&6;}
1914    case $cache_file in
1915      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1916      *)                      . "./$cache_file";;
1917    esac
1918  fi
1919else
1920  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1921echo "$as_me: creating cache $cache_file" >&6;}
1922  >$cache_file
1923fi
1924
1925# Check that the precious variables saved in the cache have kept the same
1926# value.
1927ac_cache_corrupted=false
1928for ac_var in $ac_precious_vars; do
1929  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1930  eval ac_new_set=\$ac_env_${ac_var}_set
1931  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1932  eval ac_new_val=\$ac_env_${ac_var}_value
1933  case $ac_old_set,$ac_new_set in
1934    set,)
1935      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1936echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1937      ac_cache_corrupted=: ;;
1938    ,set)
1939      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1940echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1941      ac_cache_corrupted=: ;;
1942    ,);;
1943    *)
1944      if test "x$ac_old_val" != "x$ac_new_val"; then
1945	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1946echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1947	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1948echo "$as_me:   former value:  $ac_old_val" >&2;}
1949	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1950echo "$as_me:   current value: $ac_new_val" >&2;}
1951	ac_cache_corrupted=:
1952      fi;;
1953  esac
1954  # Pass precious variables to config.status.
1955  if test "$ac_new_set" = set; then
1956    case $ac_new_val in
1957    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1958    *) ac_arg=$ac_var=$ac_new_val ;;
1959    esac
1960    case " $ac_configure_args " in
1961      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1962      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1963    esac
1964  fi
1965done
1966if $ac_cache_corrupted; then
1967  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1968echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1969  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1970echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1971   { (exit 1); exit 1; }; }
1972fi
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998ac_ext=c
1999ac_cpp='$CPP $CPPFLAGS'
2000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003
2004
2005
2006
2007ac_config_headers="$ac_config_headers config.h"
2008
2009ac_aux_dir=
2010for ac_dir in . "$srcdir"/.; do
2011  if test -f "$ac_dir/install-sh"; then
2012    ac_aux_dir=$ac_dir
2013    ac_install_sh="$ac_aux_dir/install-sh -c"
2014    break
2015  elif test -f "$ac_dir/install.sh"; then
2016    ac_aux_dir=$ac_dir
2017    ac_install_sh="$ac_aux_dir/install.sh -c"
2018    break
2019  elif test -f "$ac_dir/shtool"; then
2020    ac_aux_dir=$ac_dir
2021    ac_install_sh="$ac_aux_dir/shtool install -c"
2022    break
2023  fi
2024done
2025if test -z "$ac_aux_dir"; then
2026  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2027echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2028   { (exit 1); exit 1; }; }
2029fi
2030
2031# These three variables are undocumented and unsupported,
2032# and are intended to be withdrawn in a future Autoconf release.
2033# They can cause serious problems if a builder's source tree is in a directory
2034# whose full name contains unusual characters.
2035ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2036ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2037ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2038
2039
2040
2041am__api_version='1.10'
2042
2043# Find a good install program.  We prefer a C program (faster),
2044# so one script is as good as another.  But avoid the broken or
2045# incompatible versions:
2046# SysV /etc/install, /usr/sbin/install
2047# SunOS /usr/etc/install
2048# IRIX /sbin/install
2049# AIX /bin/install
2050# AmigaOS /C/install, which installs bootblocks on floppy discs
2051# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2052# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2053# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2054# OS/2's system install, which has a completely different semantic
2055# ./install, which can be erroneously created by make from ./install.sh.
2056{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2057echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2058if test -z "$INSTALL"; then
2059if test "${ac_cv_path_install+set}" = set; then
2060  echo $ECHO_N "(cached) $ECHO_C" >&6
2061else
2062  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063for as_dir in $PATH
2064do
2065  IFS=$as_save_IFS
2066  test -z "$as_dir" && as_dir=.
2067  # Account for people who put trailing slashes in PATH elements.
2068case $as_dir/ in
2069  ./ | .// | /cC/* | \
2070  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2071  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2072  /usr/ucb/* ) ;;
2073  *)
2074    # OSF1 and SCO ODT 3.0 have their own names for install.
2075    # Don't use installbsd from OSF since it installs stuff as root
2076    # by default.
2077    for ac_prog in ginstall scoinst install; do
2078      for ac_exec_ext in '' $ac_executable_extensions; do
2079	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2080	  if test $ac_prog = install &&
2081	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2082	    # AIX install.  It has an incompatible calling convention.
2083	    :
2084	  elif test $ac_prog = install &&
2085	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2086	    # program-specific install script used by HP pwplus--don't use.
2087	    :
2088	  else
2089	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2090	    break 3
2091	  fi
2092	fi
2093      done
2094    done
2095    ;;
2096esac
2097done
2098IFS=$as_save_IFS
2099
2100
2101fi
2102  if test "${ac_cv_path_install+set}" = set; then
2103    INSTALL=$ac_cv_path_install
2104  else
2105    # As a last resort, use the slow shell script.  Don't cache a
2106    # value for INSTALL within a source directory, because that will
2107    # break other packages using the cache if that directory is
2108    # removed, or if the value is a relative name.
2109    INSTALL=$ac_install_sh
2110  fi
2111fi
2112{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2113echo "${ECHO_T}$INSTALL" >&6; }
2114
2115# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2116# It thinks the first close brace ends the variable substitution.
2117test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2118
2119test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2120
2121test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2122
2123{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2124echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2125# Just in case
2126sleep 1
2127echo timestamp > conftest.file
2128# Do `set' in a subshell so we don't clobber the current shell's
2129# arguments.  Must try -L first in case configure is actually a
2130# symlink; some systems play weird games with the mod time of symlinks
2131# (eg FreeBSD returns the mod time of the symlink's containing
2132# directory).
2133if (
2134   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2135   if test "$*" = "X"; then
2136      # -L didn't work.
2137      set X `ls -t $srcdir/configure conftest.file`
2138   fi
2139   rm -f conftest.file
2140   if test "$*" != "X $srcdir/configure conftest.file" \
2141      && test "$*" != "X conftest.file $srcdir/configure"; then
2142
2143      # If neither matched, then we have a broken ls.  This can happen
2144      # if, for instance, CONFIG_SHELL is bash and it inherits a
2145      # broken ls alias from the environment.  This has actually
2146      # happened.  Such a system could not be considered "sane".
2147      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2148alias in your environment" >&5
2149echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2150alias in your environment" >&2;}
2151   { (exit 1); exit 1; }; }
2152   fi
2153
2154   test "$2" = conftest.file
2155   )
2156then
2157   # Ok.
2158   :
2159else
2160   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2161Check your system clock" >&5
2162echo "$as_me: error: newly created file is older than distributed files!
2163Check your system clock" >&2;}
2164   { (exit 1); exit 1; }; }
2165fi
2166{ echo "$as_me:$LINENO: result: yes" >&5
2167echo "${ECHO_T}yes" >&6; }
2168test "$program_prefix" != NONE &&
2169  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2170# Use a double $ so make ignores it.
2171test "$program_suffix" != NONE &&
2172  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2173# Double any \ or $.  echo might interpret backslashes.
2174# By default was `s,x,x', remove it if useless.
2175cat <<\_ACEOF >conftest.sed
2176s/[\\$]/&&/g;s/;s,x,x,$//
2177_ACEOF
2178program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2179rm -f conftest.sed
2180
2181# expand $ac_aux_dir to an absolute path
2182am_aux_dir=`cd $ac_aux_dir && pwd`
2183
2184test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2185# Use eval to expand $SHELL
2186if eval "$MISSING --run true"; then
2187  am_missing_run="$MISSING --run "
2188else
2189  am_missing_run=
2190  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2191echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2192fi
2193
2194{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2195echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2196if test -z "$MKDIR_P"; then
2197  if test "${ac_cv_path_mkdir+set}" = set; then
2198  echo $ECHO_N "(cached) $ECHO_C" >&6
2199else
2200  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2202do
2203  IFS=$as_save_IFS
2204  test -z "$as_dir" && as_dir=.
2205  for ac_prog in mkdir gmkdir; do
2206	 for ac_exec_ext in '' $ac_executable_extensions; do
2207	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2208	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2209	     'mkdir (GNU coreutils) '* | \
2210	     'mkdir (coreutils) '* | \
2211	     'mkdir (fileutils) '4.1*)
2212	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2213	       break 3;;
2214	   esac
2215	 done
2216       done
2217done
2218IFS=$as_save_IFS
2219
2220fi
2221
2222  if test "${ac_cv_path_mkdir+set}" = set; then
2223    MKDIR_P="$ac_cv_path_mkdir -p"
2224  else
2225    # As a last resort, use the slow shell script.  Don't cache a
2226    # value for MKDIR_P within a source directory, because that will
2227    # break other packages using the cache if that directory is
2228    # removed, or if the value is a relative name.
2229    test -d ./--version && rmdir ./--version
2230    MKDIR_P="$ac_install_sh -d"
2231  fi
2232fi
2233{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2234echo "${ECHO_T}$MKDIR_P" >&6; }
2235
2236mkdir_p="$MKDIR_P"
2237case $mkdir_p in
2238  [\\/$]* | ?:[\\/]*) ;;
2239  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2240esac
2241
2242for ac_prog in gawk mawk nawk awk
2243do
2244  # Extract the first word of "$ac_prog", so it can be a program name with args.
2245set dummy $ac_prog; ac_word=$2
2246{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2248if test "${ac_cv_prog_AWK+set}" = set; then
2249  echo $ECHO_N "(cached) $ECHO_C" >&6
2250else
2251  if test -n "$AWK"; then
2252  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2253else
2254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255for as_dir in $PATH
2256do
2257  IFS=$as_save_IFS
2258  test -z "$as_dir" && as_dir=.
2259  for ac_exec_ext in '' $ac_executable_extensions; do
2260  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2261    ac_cv_prog_AWK="$ac_prog"
2262    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263    break 2
2264  fi
2265done
2266done
2267IFS=$as_save_IFS
2268
2269fi
2270fi
2271AWK=$ac_cv_prog_AWK
2272if test -n "$AWK"; then
2273  { echo "$as_me:$LINENO: result: $AWK" >&5
2274echo "${ECHO_T}$AWK" >&6; }
2275else
2276  { echo "$as_me:$LINENO: result: no" >&5
2277echo "${ECHO_T}no" >&6; }
2278fi
2279
2280
2281  test -n "$AWK" && break
2282done
2283
2284{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2285echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2286set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2287if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2288  echo $ECHO_N "(cached) $ECHO_C" >&6
2289else
2290  cat >conftest.make <<\_ACEOF
2291SHELL = /bin/sh
2292all:
2293	@echo '@@@%%%=$(MAKE)=@@@%%%'
2294_ACEOF
2295# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2296case `${MAKE-make} -f conftest.make 2>/dev/null` in
2297  *@@@%%%=?*=@@@%%%*)
2298    eval ac_cv_prog_make_${ac_make}_set=yes;;
2299  *)
2300    eval ac_cv_prog_make_${ac_make}_set=no;;
2301esac
2302rm -f conftest.make
2303fi
2304if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2305  { echo "$as_me:$LINENO: result: yes" >&5
2306echo "${ECHO_T}yes" >&6; }
2307  SET_MAKE=
2308else
2309  { echo "$as_me:$LINENO: result: no" >&5
2310echo "${ECHO_T}no" >&6; }
2311  SET_MAKE="MAKE=${MAKE-make}"
2312fi
2313
2314rm -rf .tst 2>/dev/null
2315mkdir .tst 2>/dev/null
2316if test -d .tst; then
2317  am__leading_dot=.
2318else
2319  am__leading_dot=_
2320fi
2321rmdir .tst 2>/dev/null
2322
2323if test "`cd $srcdir && pwd`" != "`pwd`"; then
2324  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2325  # is not polluted with repeated "-I."
2326  am__isrc=' -I$(srcdir)'
2327  # test to see if srcdir already configured
2328  if test -f $srcdir/config.status; then
2329    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2330echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2331   { (exit 1); exit 1; }; }
2332  fi
2333fi
2334
2335# test whether we have cygpath
2336if test -z "$CYGPATH_W"; then
2337  if (cygpath --version) >/dev/null 2>/dev/null; then
2338    CYGPATH_W='cygpath -w'
2339  else
2340    CYGPATH_W=echo
2341  fi
2342fi
2343
2344
2345# Define the identity of the package.
2346 PACKAGE='xf86-video-ati'
2347 VERSION='6.9.0'
2348
2349
2350cat >>confdefs.h <<_ACEOF
2351#define PACKAGE "$PACKAGE"
2352_ACEOF
2353
2354
2355cat >>confdefs.h <<_ACEOF
2356#define VERSION "$VERSION"
2357_ACEOF
2358
2359# Some tools Automake needs.
2360
2361ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2362
2363
2364AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2365
2366
2367AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2368
2369
2370AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2371
2372
2373MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2374
2375install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2376
2377# Installed binaries are usually stripped using `strip' when the user
2378# run `make install-strip'.  However `strip' might not be the right
2379# tool to use in cross-compilation environments, therefore Automake
2380# will honor the `STRIP' environment variable to overrule this program.
2381if test "$cross_compiling" != no; then
2382  if test -n "$ac_tool_prefix"; then
2383  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2384set dummy ${ac_tool_prefix}strip; ac_word=$2
2385{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2387if test "${ac_cv_prog_STRIP+set}" = set; then
2388  echo $ECHO_N "(cached) $ECHO_C" >&6
2389else
2390  if test -n "$STRIP"; then
2391  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2392else
2393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394for as_dir in $PATH
2395do
2396  IFS=$as_save_IFS
2397  test -z "$as_dir" && as_dir=.
2398  for ac_exec_ext in '' $ac_executable_extensions; do
2399  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2401    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402    break 2
2403  fi
2404done
2405done
2406IFS=$as_save_IFS
2407
2408fi
2409fi
2410STRIP=$ac_cv_prog_STRIP
2411if test -n "$STRIP"; then
2412  { echo "$as_me:$LINENO: result: $STRIP" >&5
2413echo "${ECHO_T}$STRIP" >&6; }
2414else
2415  { echo "$as_me:$LINENO: result: no" >&5
2416echo "${ECHO_T}no" >&6; }
2417fi
2418
2419
2420fi
2421if test -z "$ac_cv_prog_STRIP"; then
2422  ac_ct_STRIP=$STRIP
2423  # Extract the first word of "strip", so it can be a program name with args.
2424set dummy strip; ac_word=$2
2425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2427if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2428  echo $ECHO_N "(cached) $ECHO_C" >&6
2429else
2430  if test -n "$ac_ct_STRIP"; then
2431  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2432else
2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434for as_dir in $PATH
2435do
2436  IFS=$as_save_IFS
2437  test -z "$as_dir" && as_dir=.
2438  for ac_exec_ext in '' $ac_executable_extensions; do
2439  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2440    ac_cv_prog_ac_ct_STRIP="strip"
2441    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442    break 2
2443  fi
2444done
2445done
2446IFS=$as_save_IFS
2447
2448fi
2449fi
2450ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2451if test -n "$ac_ct_STRIP"; then
2452  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2453echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2454else
2455  { echo "$as_me:$LINENO: result: no" >&5
2456echo "${ECHO_T}no" >&6; }
2457fi
2458
2459  if test "x$ac_ct_STRIP" = x; then
2460    STRIP=":"
2461  else
2462    case $cross_compiling:$ac_tool_warned in
2463yes:)
2464{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2465whose name does not start with the host triplet.  If you think this
2466configuration is useful to you, please write to autoconf@gnu.org." >&5
2467echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2468whose name does not start with the host triplet.  If you think this
2469configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2470ac_tool_warned=yes ;;
2471esac
2472    STRIP=$ac_ct_STRIP
2473  fi
2474else
2475  STRIP="$ac_cv_prog_STRIP"
2476fi
2477
2478fi
2479INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2480
2481# We need awk for the "check" target.  The system "awk" is bad on
2482# some platforms.
2483# Always define AMTAR for backward compatibility.
2484
2485AMTAR=${AMTAR-"${am_missing_run}tar"}
2486
2487am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2488
2489
2490
2491
2492
2493
2494{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2495echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2496    # Check whether --enable-maintainer-mode was given.
2497if test "${enable_maintainer_mode+set}" = set; then
2498  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2499else
2500  USE_MAINTAINER_MODE=no
2501fi
2502
2503  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2504echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2505   if test $USE_MAINTAINER_MODE = yes; then
2506  MAINTAINER_MODE_TRUE=
2507  MAINTAINER_MODE_FALSE='#'
2508else
2509  MAINTAINER_MODE_TRUE='#'
2510  MAINTAINER_MODE_FALSE=
2511fi
2512
2513  MAINT=$MAINTAINER_MODE_TRUE
2514
2515
2516
2517# Checks for programs.
2518# Check whether --enable-static was given.
2519if test "${enable_static+set}" = set; then
2520  enableval=$enable_static; p=${PACKAGE-default}
2521    case $enableval in
2522    yes) enable_static=yes ;;
2523    no) enable_static=no ;;
2524    *)
2525     enable_static=no
2526      # Look at the argument we got.  We use all the common list separators.
2527      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2528      for pkg in $enableval; do
2529	IFS="$lt_save_ifs"
2530	if test "X$pkg" = "X$p"; then
2531	  enable_static=yes
2532	fi
2533      done
2534      IFS="$lt_save_ifs"
2535      ;;
2536    esac
2537else
2538  enable_static=no
2539fi
2540
2541
2542
2543# Check whether --enable-shared was given.
2544if test "${enable_shared+set}" = set; then
2545  enableval=$enable_shared; p=${PACKAGE-default}
2546    case $enableval in
2547    yes) enable_shared=yes ;;
2548    no) enable_shared=no ;;
2549    *)
2550      enable_shared=no
2551      # Look at the argument we got.  We use all the common list separators.
2552      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2553      for pkg in $enableval; do
2554	IFS="$lt_save_ifs"
2555	if test "X$pkg" = "X$p"; then
2556	  enable_shared=yes
2557	fi
2558      done
2559      IFS="$lt_save_ifs"
2560      ;;
2561    esac
2562else
2563  enable_shared=yes
2564fi
2565
2566
2567# Check whether --enable-fast-install was given.
2568if test "${enable_fast_install+set}" = set; then
2569  enableval=$enable_fast_install; p=${PACKAGE-default}
2570    case $enableval in
2571    yes) enable_fast_install=yes ;;
2572    no) enable_fast_install=no ;;
2573    *)
2574      enable_fast_install=no
2575      # Look at the argument we got.  We use all the common list separators.
2576      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2577      for pkg in $enableval; do
2578	IFS="$lt_save_ifs"
2579	if test "X$pkg" = "X$p"; then
2580	  enable_fast_install=yes
2581	fi
2582      done
2583      IFS="$lt_save_ifs"
2584      ;;
2585    esac
2586else
2587  enable_fast_install=yes
2588fi
2589
2590
2591# Make sure we can run config.sub.
2592$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2593  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2594echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2595   { (exit 1); exit 1; }; }
2596
2597{ echo "$as_me:$LINENO: checking build system type" >&5
2598echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2599if test "${ac_cv_build+set}" = set; then
2600  echo $ECHO_N "(cached) $ECHO_C" >&6
2601else
2602  ac_build_alias=$build_alias
2603test "x$ac_build_alias" = x &&
2604  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2605test "x$ac_build_alias" = x &&
2606  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2607echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2608   { (exit 1); exit 1; }; }
2609ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2610  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2611echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2612   { (exit 1); exit 1; }; }
2613
2614fi
2615{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2616echo "${ECHO_T}$ac_cv_build" >&6; }
2617case $ac_cv_build in
2618*-*-*) ;;
2619*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2620echo "$as_me: error: invalid value of canonical build" >&2;}
2621   { (exit 1); exit 1; }; };;
2622esac
2623build=$ac_cv_build
2624ac_save_IFS=$IFS; IFS='-'
2625set x $ac_cv_build
2626shift
2627build_cpu=$1
2628build_vendor=$2
2629shift; shift
2630# Remember, the first character of IFS is used to create $*,
2631# except with old shells:
2632build_os=$*
2633IFS=$ac_save_IFS
2634case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2635
2636
2637{ echo "$as_me:$LINENO: checking host system type" >&5
2638echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2639if test "${ac_cv_host+set}" = set; then
2640  echo $ECHO_N "(cached) $ECHO_C" >&6
2641else
2642  if test "x$host_alias" = x; then
2643  ac_cv_host=$ac_cv_build
2644else
2645  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2646    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2647echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2648   { (exit 1); exit 1; }; }
2649fi
2650
2651fi
2652{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2653echo "${ECHO_T}$ac_cv_host" >&6; }
2654case $ac_cv_host in
2655*-*-*) ;;
2656*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2657echo "$as_me: error: invalid value of canonical host" >&2;}
2658   { (exit 1); exit 1; }; };;
2659esac
2660host=$ac_cv_host
2661ac_save_IFS=$IFS; IFS='-'
2662set x $ac_cv_host
2663shift
2664host_cpu=$1
2665host_vendor=$2
2666shift; shift
2667# Remember, the first character of IFS is used to create $*,
2668# except with old shells:
2669host_os=$*
2670IFS=$ac_save_IFS
2671case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2672
2673
2674DEPDIR="${am__leading_dot}deps"
2675
2676ac_config_commands="$ac_config_commands depfiles"
2677
2678
2679am_make=${MAKE-make}
2680cat > confinc << 'END'
2681am__doit:
2682	@echo done
2683.PHONY: am__doit
2684END
2685# If we don't find an include directive, just comment out the code.
2686{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2687echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2688am__include="#"
2689am__quote=
2690_am_result=none
2691# First try GNU make style include.
2692echo "include confinc" > confmf
2693# We grep out `Entering directory' and `Leaving directory'
2694# messages which can occur if `w' ends up in MAKEFLAGS.
2695# In particular we don't look at `^make:' because GNU make might
2696# be invoked under some other name (usually "gmake"), in which
2697# case it prints its new name instead of `make'.
2698if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2699   am__include=include
2700   am__quote=
2701   _am_result=GNU
2702fi
2703# Now try BSD make style include.
2704if test "$am__include" = "#"; then
2705   echo '.include "confinc"' > confmf
2706   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2707      am__include=.include
2708      am__quote="\""
2709      _am_result=BSD
2710   fi
2711fi
2712
2713
2714{ echo "$as_me:$LINENO: result: $_am_result" >&5
2715echo "${ECHO_T}$_am_result" >&6; }
2716rm -f confinc confmf
2717
2718# Check whether --enable-dependency-tracking was given.
2719if test "${enable_dependency_tracking+set}" = set; then
2720  enableval=$enable_dependency_tracking;
2721fi
2722
2723if test "x$enable_dependency_tracking" != xno; then
2724  am_depcomp="$ac_aux_dir/depcomp"
2725  AMDEPBACKSLASH='\'
2726fi
2727 if test "x$enable_dependency_tracking" != xno; then
2728  AMDEP_TRUE=
2729  AMDEP_FALSE='#'
2730else
2731  AMDEP_TRUE='#'
2732  AMDEP_FALSE=
2733fi
2734
2735
2736ac_ext=c
2737ac_cpp='$CPP $CPPFLAGS'
2738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741if test -n "$ac_tool_prefix"; then
2742  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2743set dummy ${ac_tool_prefix}gcc; ac_word=$2
2744{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2746if test "${ac_cv_prog_CC+set}" = set; then
2747  echo $ECHO_N "(cached) $ECHO_C" >&6
2748else
2749  if test -n "$CC"; then
2750  ac_cv_prog_CC="$CC" # Let the user override the test.
2751else
2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755  IFS=$as_save_IFS
2756  test -z "$as_dir" && as_dir=.
2757  for ac_exec_ext in '' $ac_executable_extensions; do
2758  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2760    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761    break 2
2762  fi
2763done
2764done
2765IFS=$as_save_IFS
2766
2767fi
2768fi
2769CC=$ac_cv_prog_CC
2770if test -n "$CC"; then
2771  { echo "$as_me:$LINENO: result: $CC" >&5
2772echo "${ECHO_T}$CC" >&6; }
2773else
2774  { echo "$as_me:$LINENO: result: no" >&5
2775echo "${ECHO_T}no" >&6; }
2776fi
2777
2778
2779fi
2780if test -z "$ac_cv_prog_CC"; then
2781  ac_ct_CC=$CC
2782  # Extract the first word of "gcc", so it can be a program name with args.
2783set dummy gcc; ac_word=$2
2784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2786if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2787  echo $ECHO_N "(cached) $ECHO_C" >&6
2788else
2789  if test -n "$ac_ct_CC"; then
2790  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791else
2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793for as_dir in $PATH
2794do
2795  IFS=$as_save_IFS
2796  test -z "$as_dir" && as_dir=.
2797  for ac_exec_ext in '' $ac_executable_extensions; do
2798  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799    ac_cv_prog_ac_ct_CC="gcc"
2800    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801    break 2
2802  fi
2803done
2804done
2805IFS=$as_save_IFS
2806
2807fi
2808fi
2809ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810if test -n "$ac_ct_CC"; then
2811  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2812echo "${ECHO_T}$ac_ct_CC" >&6; }
2813else
2814  { echo "$as_me:$LINENO: result: no" >&5
2815echo "${ECHO_T}no" >&6; }
2816fi
2817
2818  if test "x$ac_ct_CC" = x; then
2819    CC=""
2820  else
2821    case $cross_compiling:$ac_tool_warned in
2822yes:)
2823{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2824whose name does not start with the host triplet.  If you think this
2825configuration is useful to you, please write to autoconf@gnu.org." >&5
2826echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2827whose name does not start with the host triplet.  If you think this
2828configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2829ac_tool_warned=yes ;;
2830esac
2831    CC=$ac_ct_CC
2832  fi
2833else
2834  CC="$ac_cv_prog_CC"
2835fi
2836
2837if test -z "$CC"; then
2838          if test -n "$ac_tool_prefix"; then
2839    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2840set dummy ${ac_tool_prefix}cc; ac_word=$2
2841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2843if test "${ac_cv_prog_CC+set}" = set; then
2844  echo $ECHO_N "(cached) $ECHO_C" >&6
2845else
2846  if test -n "$CC"; then
2847  ac_cv_prog_CC="$CC" # Let the user override the test.
2848else
2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850for as_dir in $PATH
2851do
2852  IFS=$as_save_IFS
2853  test -z "$as_dir" && as_dir=.
2854  for ac_exec_ext in '' $ac_executable_extensions; do
2855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856    ac_cv_prog_CC="${ac_tool_prefix}cc"
2857    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858    break 2
2859  fi
2860done
2861done
2862IFS=$as_save_IFS
2863
2864fi
2865fi
2866CC=$ac_cv_prog_CC
2867if test -n "$CC"; then
2868  { echo "$as_me:$LINENO: result: $CC" >&5
2869echo "${ECHO_T}$CC" >&6; }
2870else
2871  { echo "$as_me:$LINENO: result: no" >&5
2872echo "${ECHO_T}no" >&6; }
2873fi
2874
2875
2876  fi
2877fi
2878if test -z "$CC"; then
2879  # Extract the first word of "cc", so it can be a program name with args.
2880set dummy cc; ac_word=$2
2881{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2883if test "${ac_cv_prog_CC+set}" = set; then
2884  echo $ECHO_N "(cached) $ECHO_C" >&6
2885else
2886  if test -n "$CC"; then
2887  ac_cv_prog_CC="$CC" # Let the user override the test.
2888else
2889  ac_prog_rejected=no
2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH
2892do
2893  IFS=$as_save_IFS
2894  test -z "$as_dir" && as_dir=.
2895  for ac_exec_ext in '' $ac_executable_extensions; do
2896  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2898       ac_prog_rejected=yes
2899       continue
2900     fi
2901    ac_cv_prog_CC="cc"
2902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903    break 2
2904  fi
2905done
2906done
2907IFS=$as_save_IFS
2908
2909if test $ac_prog_rejected = yes; then
2910  # We found a bogon in the path, so make sure we never use it.
2911  set dummy $ac_cv_prog_CC
2912  shift
2913  if test $# != 0; then
2914    # We chose a different compiler from the bogus one.
2915    # However, it has the same basename, so the bogon will be chosen
2916    # first if we set CC to just the basename; use the full file name.
2917    shift
2918    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2919  fi
2920fi
2921fi
2922fi
2923CC=$ac_cv_prog_CC
2924if test -n "$CC"; then
2925  { echo "$as_me:$LINENO: result: $CC" >&5
2926echo "${ECHO_T}$CC" >&6; }
2927else
2928  { echo "$as_me:$LINENO: result: no" >&5
2929echo "${ECHO_T}no" >&6; }
2930fi
2931
2932
2933fi
2934if test -z "$CC"; then
2935  if test -n "$ac_tool_prefix"; then
2936  for ac_prog in cl.exe
2937  do
2938    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2939set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2940{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2942if test "${ac_cv_prog_CC+set}" = set; then
2943  echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945  if test -n "$CC"; then
2946  ac_cv_prog_CC="$CC" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951  IFS=$as_save_IFS
2952  test -z "$as_dir" && as_dir=.
2953  for ac_exec_ext in '' $ac_executable_extensions; do
2954  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2956    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957    break 2
2958  fi
2959done
2960done
2961IFS=$as_save_IFS
2962
2963fi
2964fi
2965CC=$ac_cv_prog_CC
2966if test -n "$CC"; then
2967  { echo "$as_me:$LINENO: result: $CC" >&5
2968echo "${ECHO_T}$CC" >&6; }
2969else
2970  { echo "$as_me:$LINENO: result: no" >&5
2971echo "${ECHO_T}no" >&6; }
2972fi
2973
2974
2975    test -n "$CC" && break
2976  done
2977fi
2978if test -z "$CC"; then
2979  ac_ct_CC=$CC
2980  for ac_prog in cl.exe
2981do
2982  # Extract the first word of "$ac_prog", so it can be a program name with args.
2983set dummy $ac_prog; ac_word=$2
2984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2986if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2987  echo $ECHO_N "(cached) $ECHO_C" >&6
2988else
2989  if test -n "$ac_ct_CC"; then
2990  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2991else
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995  IFS=$as_save_IFS
2996  test -z "$as_dir" && as_dir=.
2997  for ac_exec_ext in '' $ac_executable_extensions; do
2998  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999    ac_cv_prog_ac_ct_CC="$ac_prog"
3000    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001    break 2
3002  fi
3003done
3004done
3005IFS=$as_save_IFS
3006
3007fi
3008fi
3009ac_ct_CC=$ac_cv_prog_ac_ct_CC
3010if test -n "$ac_ct_CC"; then
3011  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3012echo "${ECHO_T}$ac_ct_CC" >&6; }
3013else
3014  { echo "$as_me:$LINENO: result: no" >&5
3015echo "${ECHO_T}no" >&6; }
3016fi
3017
3018
3019  test -n "$ac_ct_CC" && break
3020done
3021
3022  if test "x$ac_ct_CC" = x; then
3023    CC=""
3024  else
3025    case $cross_compiling:$ac_tool_warned in
3026yes:)
3027{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3028whose name does not start with the host triplet.  If you think this
3029configuration is useful to you, please write to autoconf@gnu.org." >&5
3030echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3031whose name does not start with the host triplet.  If you think this
3032configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3033ac_tool_warned=yes ;;
3034esac
3035    CC=$ac_ct_CC
3036  fi
3037fi
3038
3039fi
3040
3041
3042test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3043See \`config.log' for more details." >&5
3044echo "$as_me: error: no acceptable C compiler found in \$PATH
3045See \`config.log' for more details." >&2;}
3046   { (exit 1); exit 1; }; }
3047
3048# Provide some information about the compiler.
3049echo "$as_me:$LINENO: checking for C compiler version" >&5
3050ac_compiler=`set X $ac_compile; echo $2`
3051{ (ac_try="$ac_compiler --version >&5"
3052case "(($ac_try" in
3053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054  *) ac_try_echo=$ac_try;;
3055esac
3056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057  (eval "$ac_compiler --version >&5") 2>&5
3058  ac_status=$?
3059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060  (exit $ac_status); }
3061{ (ac_try="$ac_compiler -v >&5"
3062case "(($ac_try" in
3063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064  *) ac_try_echo=$ac_try;;
3065esac
3066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067  (eval "$ac_compiler -v >&5") 2>&5
3068  ac_status=$?
3069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070  (exit $ac_status); }
3071{ (ac_try="$ac_compiler -V >&5"
3072case "(($ac_try" in
3073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074  *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077  (eval "$ac_compiler -V >&5") 2>&5
3078  ac_status=$?
3079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080  (exit $ac_status); }
3081
3082cat >conftest.$ac_ext <<_ACEOF
3083/* confdefs.h.  */
3084_ACEOF
3085cat confdefs.h >>conftest.$ac_ext
3086cat >>conftest.$ac_ext <<_ACEOF
3087/* end confdefs.h.  */
3088
3089int
3090main ()
3091{
3092
3093  ;
3094  return 0;
3095}
3096_ACEOF
3097ac_clean_files_save=$ac_clean_files
3098ac_clean_files="$ac_clean_files a.out a.exe b.out"
3099# Try to create an executable without -o first, disregard a.out.
3100# It will help us diagnose broken compilers, and finding out an intuition
3101# of exeext.
3102{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3103echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3104ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3105#
3106# List of possible output files, starting from the most likely.
3107# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3108# only as a last resort.  b.out is created by i960 compilers.
3109ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3110#
3111# The IRIX 6 linker writes into existing files which may not be
3112# executable, retaining their permissions.  Remove them first so a
3113# subsequent execution test works.
3114ac_rmfiles=
3115for ac_file in $ac_files
3116do
3117  case $ac_file in
3118    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3119    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3120  esac
3121done
3122rm -f $ac_rmfiles
3123
3124if { (ac_try="$ac_link_default"
3125case "(($ac_try" in
3126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127  *) ac_try_echo=$ac_try;;
3128esac
3129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130  (eval "$ac_link_default") 2>&5
3131  ac_status=$?
3132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133  (exit $ac_status); }; then
3134  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3135# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3136# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3137# so that the user can short-circuit this test for compilers unknown to
3138# Autoconf.
3139for ac_file in $ac_files ''
3140do
3141  test -f "$ac_file" || continue
3142  case $ac_file in
3143    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3144	;;
3145    [ab].out )
3146	# We found the default executable, but exeext='' is most
3147	# certainly right.
3148	break;;
3149    *.* )
3150        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3151	then :; else
3152	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3153	fi
3154	# We set ac_cv_exeext here because the later test for it is not
3155	# safe: cross compilers may not add the suffix if given an `-o'
3156	# argument, so we may need to know it at that point already.
3157	# Even if this section looks crufty: it has the advantage of
3158	# actually working.
3159	break;;
3160    * )
3161	break;;
3162  esac
3163done
3164test "$ac_cv_exeext" = no && ac_cv_exeext=
3165
3166else
3167  ac_file=''
3168fi
3169
3170{ echo "$as_me:$LINENO: result: $ac_file" >&5
3171echo "${ECHO_T}$ac_file" >&6; }
3172if test -z "$ac_file"; then
3173  echo "$as_me: failed program was:" >&5
3174sed 's/^/| /' conftest.$ac_ext >&5
3175
3176{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3177See \`config.log' for more details." >&5
3178echo "$as_me: error: C compiler cannot create executables
3179See \`config.log' for more details." >&2;}
3180   { (exit 77); exit 77; }; }
3181fi
3182
3183ac_exeext=$ac_cv_exeext
3184
3185# Check that the compiler produces executables we can run.  If not, either
3186# the compiler is broken, or we cross compile.
3187{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3188echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3189# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3190# If not cross compiling, check that we can run a simple program.
3191if test "$cross_compiling" != yes; then
3192  if { ac_try='./$ac_file'
3193  { (case "(($ac_try" in
3194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195  *) ac_try_echo=$ac_try;;
3196esac
3197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198  (eval "$ac_try") 2>&5
3199  ac_status=$?
3200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201  (exit $ac_status); }; }; then
3202    cross_compiling=no
3203  else
3204    if test "$cross_compiling" = maybe; then
3205	cross_compiling=yes
3206    else
3207	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3208If you meant to cross compile, use \`--host'.
3209See \`config.log' for more details." >&5
3210echo "$as_me: error: cannot run C compiled programs.
3211If you meant to cross compile, use \`--host'.
3212See \`config.log' for more details." >&2;}
3213   { (exit 1); exit 1; }; }
3214    fi
3215  fi
3216fi
3217{ echo "$as_me:$LINENO: result: yes" >&5
3218echo "${ECHO_T}yes" >&6; }
3219
3220rm -f a.out a.exe conftest$ac_cv_exeext b.out
3221ac_clean_files=$ac_clean_files_save
3222# Check that the compiler produces executables we can run.  If not, either
3223# the compiler is broken, or we cross compile.
3224{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3225echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3226{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3227echo "${ECHO_T}$cross_compiling" >&6; }
3228
3229{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3230echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3231if { (ac_try="$ac_link"
3232case "(($ac_try" in
3233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234  *) ac_try_echo=$ac_try;;
3235esac
3236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237  (eval "$ac_link") 2>&5
3238  ac_status=$?
3239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240  (exit $ac_status); }; then
3241  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3242# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3243# work properly (i.e., refer to `conftest.exe'), while it won't with
3244# `rm'.
3245for ac_file in conftest.exe conftest conftest.*; do
3246  test -f "$ac_file" || continue
3247  case $ac_file in
3248    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3249    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3250	  break;;
3251    * ) break;;
3252  esac
3253done
3254else
3255  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3256See \`config.log' for more details." >&5
3257echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3258See \`config.log' for more details." >&2;}
3259   { (exit 1); exit 1; }; }
3260fi
3261
3262rm -f conftest$ac_cv_exeext
3263{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3264echo "${ECHO_T}$ac_cv_exeext" >&6; }
3265
3266rm -f conftest.$ac_ext
3267EXEEXT=$ac_cv_exeext
3268ac_exeext=$EXEEXT
3269{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3270echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3271if test "${ac_cv_objext+set}" = set; then
3272  echo $ECHO_N "(cached) $ECHO_C" >&6
3273else
3274  cat >conftest.$ac_ext <<_ACEOF
3275/* confdefs.h.  */
3276_ACEOF
3277cat confdefs.h >>conftest.$ac_ext
3278cat >>conftest.$ac_ext <<_ACEOF
3279/* end confdefs.h.  */
3280
3281int
3282main ()
3283{
3284
3285  ;
3286  return 0;
3287}
3288_ACEOF
3289rm -f conftest.o conftest.obj
3290if { (ac_try="$ac_compile"
3291case "(($ac_try" in
3292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293  *) ac_try_echo=$ac_try;;
3294esac
3295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296  (eval "$ac_compile") 2>&5
3297  ac_status=$?
3298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299  (exit $ac_status); }; then
3300  for ac_file in conftest.o conftest.obj conftest.*; do
3301  test -f "$ac_file" || continue;
3302  case $ac_file in
3303    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3304    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3305       break;;
3306  esac
3307done
3308else
3309  echo "$as_me: failed program was:" >&5
3310sed 's/^/| /' conftest.$ac_ext >&5
3311
3312{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3313See \`config.log' for more details." >&5
3314echo "$as_me: error: cannot compute suffix of object files: cannot compile
3315See \`config.log' for more details." >&2;}
3316   { (exit 1); exit 1; }; }
3317fi
3318
3319rm -f conftest.$ac_cv_objext conftest.$ac_ext
3320fi
3321{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3322echo "${ECHO_T}$ac_cv_objext" >&6; }
3323OBJEXT=$ac_cv_objext
3324ac_objext=$OBJEXT
3325{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3326echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3327if test "${ac_cv_c_compiler_gnu+set}" = set; then
3328  echo $ECHO_N "(cached) $ECHO_C" >&6
3329else
3330  cat >conftest.$ac_ext <<_ACEOF
3331/* confdefs.h.  */
3332_ACEOF
3333cat confdefs.h >>conftest.$ac_ext
3334cat >>conftest.$ac_ext <<_ACEOF
3335/* end confdefs.h.  */
3336
3337int
3338main ()
3339{
3340#ifndef __GNUC__
3341       choke me
3342#endif
3343
3344  ;
3345  return 0;
3346}
3347_ACEOF
3348rm -f conftest.$ac_objext
3349if { (ac_try="$ac_compile"
3350case "(($ac_try" in
3351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352  *) ac_try_echo=$ac_try;;
3353esac
3354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355  (eval "$ac_compile") 2>conftest.er1
3356  ac_status=$?
3357  grep -v '^ *+' conftest.er1 >conftest.err
3358  rm -f conftest.er1
3359  cat conftest.err >&5
3360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361  (exit $ac_status); } && {
3362	 test -z "$ac_c_werror_flag" ||
3363	 test ! -s conftest.err
3364       } && test -s conftest.$ac_objext; then
3365  ac_compiler_gnu=yes
3366else
3367  echo "$as_me: failed program was:" >&5
3368sed 's/^/| /' conftest.$ac_ext >&5
3369
3370	ac_compiler_gnu=no
3371fi
3372
3373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374ac_cv_c_compiler_gnu=$ac_compiler_gnu
3375
3376fi
3377{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3378echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3379GCC=`test $ac_compiler_gnu = yes && echo yes`
3380ac_test_CFLAGS=${CFLAGS+set}
3381ac_save_CFLAGS=$CFLAGS
3382{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3383echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3384if test "${ac_cv_prog_cc_g+set}" = set; then
3385  echo $ECHO_N "(cached) $ECHO_C" >&6
3386else
3387  ac_save_c_werror_flag=$ac_c_werror_flag
3388   ac_c_werror_flag=yes
3389   ac_cv_prog_cc_g=no
3390   CFLAGS="-g"
3391   cat >conftest.$ac_ext <<_ACEOF
3392/* confdefs.h.  */
3393_ACEOF
3394cat confdefs.h >>conftest.$ac_ext
3395cat >>conftest.$ac_ext <<_ACEOF
3396/* end confdefs.h.  */
3397
3398int
3399main ()
3400{
3401
3402  ;
3403  return 0;
3404}
3405_ACEOF
3406rm -f conftest.$ac_objext
3407if { (ac_try="$ac_compile"
3408case "(($ac_try" in
3409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410  *) ac_try_echo=$ac_try;;
3411esac
3412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413  (eval "$ac_compile") 2>conftest.er1
3414  ac_status=$?
3415  grep -v '^ *+' conftest.er1 >conftest.err
3416  rm -f conftest.er1
3417  cat conftest.err >&5
3418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419  (exit $ac_status); } && {
3420	 test -z "$ac_c_werror_flag" ||
3421	 test ! -s conftest.err
3422       } && test -s conftest.$ac_objext; then
3423  ac_cv_prog_cc_g=yes
3424else
3425  echo "$as_me: failed program was:" >&5
3426sed 's/^/| /' conftest.$ac_ext >&5
3427
3428	CFLAGS=""
3429      cat >conftest.$ac_ext <<_ACEOF
3430/* confdefs.h.  */
3431_ACEOF
3432cat confdefs.h >>conftest.$ac_ext
3433cat >>conftest.$ac_ext <<_ACEOF
3434/* end confdefs.h.  */
3435
3436int
3437main ()
3438{
3439
3440  ;
3441  return 0;
3442}
3443_ACEOF
3444rm -f conftest.$ac_objext
3445if { (ac_try="$ac_compile"
3446case "(($ac_try" in
3447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448  *) ac_try_echo=$ac_try;;
3449esac
3450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451  (eval "$ac_compile") 2>conftest.er1
3452  ac_status=$?
3453  grep -v '^ *+' conftest.er1 >conftest.err
3454  rm -f conftest.er1
3455  cat conftest.err >&5
3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); } && {
3458	 test -z "$ac_c_werror_flag" ||
3459	 test ! -s conftest.err
3460       } && test -s conftest.$ac_objext; then
3461  :
3462else
3463  echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466	ac_c_werror_flag=$ac_save_c_werror_flag
3467	 CFLAGS="-g"
3468	 cat >conftest.$ac_ext <<_ACEOF
3469/* confdefs.h.  */
3470_ACEOF
3471cat confdefs.h >>conftest.$ac_ext
3472cat >>conftest.$ac_ext <<_ACEOF
3473/* end confdefs.h.  */
3474
3475int
3476main ()
3477{
3478
3479  ;
3480  return 0;
3481}
3482_ACEOF
3483rm -f conftest.$ac_objext
3484if { (ac_try="$ac_compile"
3485case "(($ac_try" in
3486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487  *) ac_try_echo=$ac_try;;
3488esac
3489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490  (eval "$ac_compile") 2>conftest.er1
3491  ac_status=$?
3492  grep -v '^ *+' conftest.er1 >conftest.err
3493  rm -f conftest.er1
3494  cat conftest.err >&5
3495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496  (exit $ac_status); } && {
3497	 test -z "$ac_c_werror_flag" ||
3498	 test ! -s conftest.err
3499       } && test -s conftest.$ac_objext; then
3500  ac_cv_prog_cc_g=yes
3501else
3502  echo "$as_me: failed program was:" >&5
3503sed 's/^/| /' conftest.$ac_ext >&5
3504
3505
3506fi
3507
3508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509fi
3510
3511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512fi
3513
3514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515   ac_c_werror_flag=$ac_save_c_werror_flag
3516fi
3517{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3518echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3519if test "$ac_test_CFLAGS" = set; then
3520  CFLAGS=$ac_save_CFLAGS
3521elif test $ac_cv_prog_cc_g = yes; then
3522  if test "$GCC" = yes; then
3523    CFLAGS="-g -O2"
3524  else
3525    CFLAGS="-g"
3526  fi
3527else
3528  if test "$GCC" = yes; then
3529    CFLAGS="-O2"
3530  else
3531    CFLAGS=
3532  fi
3533fi
3534{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3535echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3536if test "${ac_cv_prog_cc_c89+set}" = set; then
3537  echo $ECHO_N "(cached) $ECHO_C" >&6
3538else
3539  ac_cv_prog_cc_c89=no
3540ac_save_CC=$CC
3541cat >conftest.$ac_ext <<_ACEOF
3542/* confdefs.h.  */
3543_ACEOF
3544cat confdefs.h >>conftest.$ac_ext
3545cat >>conftest.$ac_ext <<_ACEOF
3546/* end confdefs.h.  */
3547#include <stdarg.h>
3548#include <stdio.h>
3549#include <sys/types.h>
3550#include <sys/stat.h>
3551/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3552struct buf { int x; };
3553FILE * (*rcsopen) (struct buf *, struct stat *, int);
3554static char *e (p, i)
3555     char **p;
3556     int i;
3557{
3558  return p[i];
3559}
3560static char *f (char * (*g) (char **, int), char **p, ...)
3561{
3562  char *s;
3563  va_list v;
3564  va_start (v,p);
3565  s = g (p, va_arg (v,int));
3566  va_end (v);
3567  return s;
3568}
3569
3570/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3571   function prototypes and stuff, but not '\xHH' hex character constants.
3572   These don't provoke an error unfortunately, instead are silently treated
3573   as 'x'.  The following induces an error, until -std is added to get
3574   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3575   array size at least.  It's necessary to write '\x00'==0 to get something
3576   that's true only with -std.  */
3577int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3578
3579/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3580   inside strings and character constants.  */
3581#define FOO(x) 'x'
3582int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3583
3584int test (int i, double x);
3585struct s1 {int (*f) (int a);};
3586struct s2 {int (*f) (double a);};
3587int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3588int argc;
3589char **argv;
3590int
3591main ()
3592{
3593return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3594  ;
3595  return 0;
3596}
3597_ACEOF
3598for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3599	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3600do
3601  CC="$ac_save_CC $ac_arg"
3602  rm -f conftest.$ac_objext
3603if { (ac_try="$ac_compile"
3604case "(($ac_try" in
3605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606  *) ac_try_echo=$ac_try;;
3607esac
3608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609  (eval "$ac_compile") 2>conftest.er1
3610  ac_status=$?
3611  grep -v '^ *+' conftest.er1 >conftest.err
3612  rm -f conftest.er1
3613  cat conftest.err >&5
3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); } && {
3616	 test -z "$ac_c_werror_flag" ||
3617	 test ! -s conftest.err
3618       } && test -s conftest.$ac_objext; then
3619  ac_cv_prog_cc_c89=$ac_arg
3620else
3621  echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624
3625fi
3626
3627rm -f core conftest.err conftest.$ac_objext
3628  test "x$ac_cv_prog_cc_c89" != "xno" && break
3629done
3630rm -f conftest.$ac_ext
3631CC=$ac_save_CC
3632
3633fi
3634# AC_CACHE_VAL
3635case "x$ac_cv_prog_cc_c89" in
3636  x)
3637    { echo "$as_me:$LINENO: result: none needed" >&5
3638echo "${ECHO_T}none needed" >&6; } ;;
3639  xno)
3640    { echo "$as_me:$LINENO: result: unsupported" >&5
3641echo "${ECHO_T}unsupported" >&6; } ;;
3642  *)
3643    CC="$CC $ac_cv_prog_cc_c89"
3644    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3645echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3646esac
3647
3648
3649ac_ext=c
3650ac_cpp='$CPP $CPPFLAGS'
3651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654
3655depcc="$CC"   am_compiler_list=
3656
3657{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3658echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3659if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3660  echo $ECHO_N "(cached) $ECHO_C" >&6
3661else
3662  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3663  # We make a subdir and do the tests there.  Otherwise we can end up
3664  # making bogus files that we don't know about and never remove.  For
3665  # instance it was reported that on HP-UX the gcc test will end up
3666  # making a dummy file named `D' -- because `-MD' means `put the output
3667  # in D'.
3668  mkdir conftest.dir
3669  # Copy depcomp to subdir because otherwise we won't find it if we're
3670  # using a relative directory.
3671  cp "$am_depcomp" conftest.dir
3672  cd conftest.dir
3673  # We will build objects and dependencies in a subdirectory because
3674  # it helps to detect inapplicable dependency modes.  For instance
3675  # both Tru64's cc and ICC support -MD to output dependencies as a
3676  # side effect of compilation, but ICC will put the dependencies in
3677  # the current directory while Tru64 will put them in the object
3678  # directory.
3679  mkdir sub
3680
3681  am_cv_CC_dependencies_compiler_type=none
3682  if test "$am_compiler_list" = ""; then
3683     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3684  fi
3685  for depmode in $am_compiler_list; do
3686    # Setup a source with many dependencies, because some compilers
3687    # like to wrap large dependency lists on column 80 (with \), and
3688    # we should not choose a depcomp mode which is confused by this.
3689    #
3690    # We need to recreate these files for each test, as the compiler may
3691    # overwrite some of them when testing with obscure command lines.
3692    # This happens at least with the AIX C compiler.
3693    : > sub/conftest.c
3694    for i in 1 2 3 4 5 6; do
3695      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3696      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3697      # Solaris 8's {/usr,}/bin/sh.
3698      touch sub/conftst$i.h
3699    done
3700    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3701
3702    case $depmode in
3703    nosideeffect)
3704      # after this tag, mechanisms are not by side-effect, so they'll
3705      # only be used when explicitly requested
3706      if test "x$enable_dependency_tracking" = xyes; then
3707	continue
3708      else
3709	break
3710      fi
3711      ;;
3712    none) break ;;
3713    esac
3714    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3715    # mode.  It turns out that the SunPro C++ compiler does not properly
3716    # handle `-M -o', and we need to detect this.
3717    if depmode=$depmode \
3718       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3719       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3720       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3721         >/dev/null 2>conftest.err &&
3722       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3723       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3724       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3725       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3726      # icc doesn't choke on unknown options, it will just issue warnings
3727      # or remarks (even with -Werror).  So we grep stderr for any message
3728      # that says an option was ignored or not supported.
3729      # When given -MP, icc 7.0 and 7.1 complain thusly:
3730      #   icc: Command line warning: ignoring option '-M'; no argument required
3731      # The diagnosis changed in icc 8.0:
3732      #   icc: Command line remark: option '-MP' not supported
3733      if (grep 'ignoring option' conftest.err ||
3734          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3735        am_cv_CC_dependencies_compiler_type=$depmode
3736        break
3737      fi
3738    fi
3739  done
3740
3741  cd ..
3742  rm -rf conftest.dir
3743else
3744  am_cv_CC_dependencies_compiler_type=none
3745fi
3746
3747fi
3748{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3749echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3750CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3751
3752 if
3753  test "x$enable_dependency_tracking" != xno \
3754  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3755  am__fastdepCC_TRUE=
3756  am__fastdepCC_FALSE='#'
3757else
3758  am__fastdepCC_TRUE='#'
3759  am__fastdepCC_FALSE=
3760fi
3761
3762
3763{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3764echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3765if test "${lt_cv_path_SED+set}" = set; then
3766  echo $ECHO_N "(cached) $ECHO_C" >&6
3767else
3768  # Loop through the user's path and test for sed and gsed.
3769# Then use that list of sed's as ones to test for truncation.
3770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771for as_dir in $PATH
3772do
3773  IFS=$as_save_IFS
3774  test -z "$as_dir" && as_dir=.
3775  for lt_ac_prog in sed gsed; do
3776    for ac_exec_ext in '' $ac_executable_extensions; do
3777      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3778        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3779      fi
3780    done
3781  done
3782done
3783IFS=$as_save_IFS
3784lt_ac_max=0
3785lt_ac_count=0
3786# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3787# along with /bin/sed that truncates output.
3788for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3789  test ! -f $lt_ac_sed && continue
3790  cat /dev/null > conftest.in
3791  lt_ac_count=0
3792  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3793  # Check for GNU sed and select it if it is found.
3794  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3795    lt_cv_path_SED=$lt_ac_sed
3796    break
3797  fi
3798  while true; do
3799    cat conftest.in conftest.in >conftest.tmp
3800    mv conftest.tmp conftest.in
3801    cp conftest.in conftest.nl
3802    echo >>conftest.nl
3803    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3804    cmp -s conftest.out conftest.nl || break
3805    # 10000 chars as input seems more than enough
3806    test $lt_ac_count -gt 10 && break
3807    lt_ac_count=`expr $lt_ac_count + 1`
3808    if test $lt_ac_count -gt $lt_ac_max; then
3809      lt_ac_max=$lt_ac_count
3810      lt_cv_path_SED=$lt_ac_sed
3811    fi
3812  done
3813done
3814
3815fi
3816
3817SED=$lt_cv_path_SED
3818
3819{ echo "$as_me:$LINENO: result: $SED" >&5
3820echo "${ECHO_T}$SED" >&6; }
3821
3822{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3823echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3824if test "${ac_cv_path_GREP+set}" = set; then
3825  echo $ECHO_N "(cached) $ECHO_C" >&6
3826else
3827  # Extract the first word of "grep ggrep" to use in msg output
3828if test -z "$GREP"; then
3829set dummy grep ggrep; ac_prog_name=$2
3830if test "${ac_cv_path_GREP+set}" = set; then
3831  echo $ECHO_N "(cached) $ECHO_C" >&6
3832else
3833  ac_path_GREP_found=false
3834# Loop through the user's path and test for each of PROGNAME-LIST
3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3837do
3838  IFS=$as_save_IFS
3839  test -z "$as_dir" && as_dir=.
3840  for ac_prog in grep ggrep; do
3841  for ac_exec_ext in '' $ac_executable_extensions; do
3842    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3843    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3844    # Check for GNU ac_path_GREP and select it if it is found.
3845  # Check for GNU $ac_path_GREP
3846case `"$ac_path_GREP" --version 2>&1` in
3847*GNU*)
3848  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3849*)
3850  ac_count=0
3851  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3852  while :
3853  do
3854    cat "conftest.in" "conftest.in" >"conftest.tmp"
3855    mv "conftest.tmp" "conftest.in"
3856    cp "conftest.in" "conftest.nl"
3857    echo 'GREP' >> "conftest.nl"
3858    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3859    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3860    ac_count=`expr $ac_count + 1`
3861    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3862      # Best one so far, save it but keep looking for a better one
3863      ac_cv_path_GREP="$ac_path_GREP"
3864      ac_path_GREP_max=$ac_count
3865    fi
3866    # 10*(2^10) chars as input seems more than enough
3867    test $ac_count -gt 10 && break
3868  done
3869  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3870esac
3871
3872
3873    $ac_path_GREP_found && break 3
3874  done
3875done
3876
3877done
3878IFS=$as_save_IFS
3879
3880
3881fi
3882
3883GREP="$ac_cv_path_GREP"
3884if test -z "$GREP"; then
3885  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3886echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3887   { (exit 1); exit 1; }; }
3888fi
3889
3890else
3891  ac_cv_path_GREP=$GREP
3892fi
3893
3894
3895fi
3896{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3897echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3898 GREP="$ac_cv_path_GREP"
3899
3900
3901{ echo "$as_me:$LINENO: checking for egrep" >&5
3902echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3903if test "${ac_cv_path_EGREP+set}" = set; then
3904  echo $ECHO_N "(cached) $ECHO_C" >&6
3905else
3906  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3907   then ac_cv_path_EGREP="$GREP -E"
3908   else
3909     # Extract the first word of "egrep" to use in msg output
3910if test -z "$EGREP"; then
3911set dummy egrep; ac_prog_name=$2
3912if test "${ac_cv_path_EGREP+set}" = set; then
3913  echo $ECHO_N "(cached) $ECHO_C" >&6
3914else
3915  ac_path_EGREP_found=false
3916# Loop through the user's path and test for each of PROGNAME-LIST
3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3919do
3920  IFS=$as_save_IFS
3921  test -z "$as_dir" && as_dir=.
3922  for ac_prog in egrep; do
3923  for ac_exec_ext in '' $ac_executable_extensions; do
3924    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3925    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3926    # Check for GNU ac_path_EGREP and select it if it is found.
3927  # Check for GNU $ac_path_EGREP
3928case `"$ac_path_EGREP" --version 2>&1` in
3929*GNU*)
3930  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3931*)
3932  ac_count=0
3933  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3934  while :
3935  do
3936    cat "conftest.in" "conftest.in" >"conftest.tmp"
3937    mv "conftest.tmp" "conftest.in"
3938    cp "conftest.in" "conftest.nl"
3939    echo 'EGREP' >> "conftest.nl"
3940    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3941    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3942    ac_count=`expr $ac_count + 1`
3943    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3944      # Best one so far, save it but keep looking for a better one
3945      ac_cv_path_EGREP="$ac_path_EGREP"
3946      ac_path_EGREP_max=$ac_count
3947    fi
3948    # 10*(2^10) chars as input seems more than enough
3949    test $ac_count -gt 10 && break
3950  done
3951  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3952esac
3953
3954
3955    $ac_path_EGREP_found && break 3
3956  done
3957done
3958
3959done
3960IFS=$as_save_IFS
3961
3962
3963fi
3964
3965EGREP="$ac_cv_path_EGREP"
3966if test -z "$EGREP"; then
3967  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3968echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3969   { (exit 1); exit 1; }; }
3970fi
3971
3972else
3973  ac_cv_path_EGREP=$EGREP
3974fi
3975
3976
3977   fi
3978fi
3979{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3980echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3981 EGREP="$ac_cv_path_EGREP"
3982
3983
3984
3985# Check whether --with-gnu-ld was given.
3986if test "${with_gnu_ld+set}" = set; then
3987  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3988else
3989  with_gnu_ld=no
3990fi
3991
3992ac_prog=ld
3993if test "$GCC" = yes; then
3994  # Check if gcc -print-prog-name=ld gives a path.
3995  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3996echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3997  case $host in
3998  *-*-mingw*)
3999    # gcc leaves a trailing carriage return which upsets mingw
4000    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4001  *)
4002    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4003  esac
4004  case $ac_prog in
4005    # Accept absolute paths.
4006    [\\/]* | ?:[\\/]*)
4007      re_direlt='/[^/][^/]*/\.\./'
4008      # Canonicalize the pathname of ld
4009      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4010      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4011	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4012      done
4013      test -z "$LD" && LD="$ac_prog"
4014      ;;
4015  "")
4016    # If it fails, then pretend we aren't using GCC.
4017    ac_prog=ld
4018    ;;
4019  *)
4020    # If it is relative, then search for the first ld in PATH.
4021    with_gnu_ld=unknown
4022    ;;
4023  esac
4024elif test "$with_gnu_ld" = yes; then
4025  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4026echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4027else
4028  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4029echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4030fi
4031if test "${lt_cv_path_LD+set}" = set; then
4032  echo $ECHO_N "(cached) $ECHO_C" >&6
4033else
4034  if test -z "$LD"; then
4035  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4036  for ac_dir in $PATH; do
4037    IFS="$lt_save_ifs"
4038    test -z "$ac_dir" && ac_dir=.
4039    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4040      lt_cv_path_LD="$ac_dir/$ac_prog"
4041      # Check to see if the program is GNU ld.  I'd rather use --version,
4042      # but apparently some variants of GNU ld only accept -v.
4043      # Break only if it was the GNU/non-GNU ld that we prefer.
4044      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4045      *GNU* | *'with BFD'*)
4046	test "$with_gnu_ld" != no && break
4047	;;
4048      *)
4049	test "$with_gnu_ld" != yes && break
4050	;;
4051      esac
4052    fi
4053  done
4054  IFS="$lt_save_ifs"
4055else
4056  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4057fi
4058fi
4059
4060LD="$lt_cv_path_LD"
4061if test -n "$LD"; then
4062  { echo "$as_me:$LINENO: result: $LD" >&5
4063echo "${ECHO_T}$LD" >&6; }
4064else
4065  { echo "$as_me:$LINENO: result: no" >&5
4066echo "${ECHO_T}no" >&6; }
4067fi
4068test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4069echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4070   { (exit 1); exit 1; }; }
4071{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4072echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4073if test "${lt_cv_prog_gnu_ld+set}" = set; then
4074  echo $ECHO_N "(cached) $ECHO_C" >&6
4075else
4076  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4077case `$LD -v 2>&1 </dev/null` in
4078*GNU* | *'with BFD'*)
4079  lt_cv_prog_gnu_ld=yes
4080  ;;
4081*)
4082  lt_cv_prog_gnu_ld=no
4083  ;;
4084esac
4085fi
4086{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4087echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4088with_gnu_ld=$lt_cv_prog_gnu_ld
4089
4090
4091{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4092echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4093if test "${lt_cv_ld_reload_flag+set}" = set; then
4094  echo $ECHO_N "(cached) $ECHO_C" >&6
4095else
4096  lt_cv_ld_reload_flag='-r'
4097fi
4098{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4099echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4100reload_flag=$lt_cv_ld_reload_flag
4101case $reload_flag in
4102"" | " "*) ;;
4103*) reload_flag=" $reload_flag" ;;
4104esac
4105reload_cmds='$LD$reload_flag -o $output$reload_objs'
4106case $host_os in
4107  darwin*)
4108    if test "$GCC" = yes; then
4109      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4110    else
4111      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4112    fi
4113    ;;
4114esac
4115
4116{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4117echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4118if test "${lt_cv_path_NM+set}" = set; then
4119  echo $ECHO_N "(cached) $ECHO_C" >&6
4120else
4121  if test -n "$NM"; then
4122  # Let the user override the test.
4123  lt_cv_path_NM="$NM"
4124else
4125  lt_nm_to_check="${ac_tool_prefix}nm"
4126  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4127    lt_nm_to_check="$lt_nm_to_check nm"
4128  fi
4129  for lt_tmp_nm in $lt_nm_to_check; do
4130    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4131    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4132      IFS="$lt_save_ifs"
4133      test -z "$ac_dir" && ac_dir=.
4134      tmp_nm="$ac_dir/$lt_tmp_nm"
4135      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4136	# Check to see if the nm accepts a BSD-compat flag.
4137	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4138	#   nm: unknown option "B" ignored
4139	# Tru64's nm complains that /dev/null is an invalid object file
4140	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4141	*/dev/null* | *'Invalid file or object type'*)
4142	  lt_cv_path_NM="$tmp_nm -B"
4143	  break
4144	  ;;
4145	*)
4146	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4147	  */dev/null*)
4148	    lt_cv_path_NM="$tmp_nm -p"
4149	    break
4150	    ;;
4151	  *)
4152	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4153	    continue # so that we can try to find one that supports BSD flags
4154	    ;;
4155	  esac
4156	  ;;
4157	esac
4158      fi
4159    done
4160    IFS="$lt_save_ifs"
4161  done
4162  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4163fi
4164fi
4165{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4166echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4167NM="$lt_cv_path_NM"
4168
4169{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4170echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4171LN_S=$as_ln_s
4172if test "$LN_S" = "ln -s"; then
4173  { echo "$as_me:$LINENO: result: yes" >&5
4174echo "${ECHO_T}yes" >&6; }
4175else
4176  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4177echo "${ECHO_T}no, using $LN_S" >&6; }
4178fi
4179
4180{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4181echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4182if test "${lt_cv_deplibs_check_method+set}" = set; then
4183  echo $ECHO_N "(cached) $ECHO_C" >&6
4184else
4185  lt_cv_file_magic_cmd='$MAGIC_CMD'
4186lt_cv_file_magic_test_file=
4187lt_cv_deplibs_check_method='unknown'
4188# Need to set the preceding variable on all platforms that support
4189# interlibrary dependencies.
4190# 'none' -- dependencies not supported.
4191# `unknown' -- same as none, but documents that we really don't know.
4192# 'pass_all' -- all dependencies passed with no checks.
4193# 'test_compile' -- check by making test program.
4194# 'file_magic [[regex]]' -- check by looking for files in library path
4195# which responds to the $file_magic_cmd with a given extended regex.
4196# If you have `file' or equivalent on your system and you're not sure
4197# whether `pass_all' will *always* work, you probably want this one.
4198
4199case $host_os in
4200aix[4-9]*)
4201  lt_cv_deplibs_check_method=pass_all
4202  ;;
4203
4204beos*)
4205  lt_cv_deplibs_check_method=pass_all
4206  ;;
4207
4208bsdi[45]*)
4209  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4210  lt_cv_file_magic_cmd='/usr/bin/file -L'
4211  lt_cv_file_magic_test_file=/shlib/libc.so
4212  ;;
4213
4214cygwin*)
4215  # func_win32_libid is a shell function defined in ltmain.sh
4216  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4217  lt_cv_file_magic_cmd='func_win32_libid'
4218  ;;
4219
4220mingw* | pw32*)
4221  # Base MSYS/MinGW do not provide the 'file' command needed by
4222  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4223  # unless we find 'file', for example because we are cross-compiling.
4224  if ( file / ) >/dev/null 2>&1; then
4225    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4226    lt_cv_file_magic_cmd='func_win32_libid'
4227  else
4228    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4229    lt_cv_file_magic_cmd='$OBJDUMP -f'
4230  fi
4231  ;;
4232
4233darwin* | rhapsody*)
4234  lt_cv_deplibs_check_method=pass_all
4235  ;;
4236
4237freebsd* | dragonfly*)
4238  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4239    case $host_cpu in
4240    i*86 )
4241      # Not sure whether the presence of OpenBSD here was a mistake.
4242      # Let's accept both of them until this is cleared up.
4243      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4244      lt_cv_file_magic_cmd=/usr/bin/file
4245      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4246      ;;
4247    esac
4248  else
4249    lt_cv_deplibs_check_method=pass_all
4250  fi
4251  ;;
4252
4253gnu*)
4254  lt_cv_deplibs_check_method=pass_all
4255  ;;
4256
4257hpux10.20* | hpux11*)
4258  lt_cv_file_magic_cmd=/usr/bin/file
4259  case $host_cpu in
4260  ia64*)
4261    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4262    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4263    ;;
4264  hppa*64*)
4265    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]'
4266    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4267    ;;
4268  *)
4269    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4270    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4271    ;;
4272  esac
4273  ;;
4274
4275interix[3-9]*)
4276  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4277  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4278  ;;
4279
4280irix5* | irix6* | nonstopux*)
4281  case $LD in
4282  *-32|*"-32 ") libmagic=32-bit;;
4283  *-n32|*"-n32 ") libmagic=N32;;
4284  *-64|*"-64 ") libmagic=64-bit;;
4285  *) libmagic=never-match;;
4286  esac
4287  lt_cv_deplibs_check_method=pass_all
4288  ;;
4289
4290# This must be Linux ELF.
4291linux* | k*bsd*-gnu)
4292  lt_cv_deplibs_check_method=pass_all
4293  ;;
4294
4295netbsd* | netbsdelf*-gnu)
4296  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4297    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4298  else
4299    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4300  fi
4301  ;;
4302
4303newos6*)
4304  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4305  lt_cv_file_magic_cmd=/usr/bin/file
4306  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4307  ;;
4308
4309nto-qnx*)
4310  lt_cv_deplibs_check_method=unknown
4311  ;;
4312
4313openbsd*)
4314  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4315    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4316  else
4317    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4318  fi
4319  ;;
4320
4321osf3* | osf4* | osf5*)
4322  lt_cv_deplibs_check_method=pass_all
4323  ;;
4324
4325rdos*)
4326  lt_cv_deplibs_check_method=pass_all
4327  ;;
4328
4329solaris*)
4330  lt_cv_deplibs_check_method=pass_all
4331  ;;
4332
4333sysv4 | sysv4.3*)
4334  case $host_vendor in
4335  motorola)
4336    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]'
4337    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4338    ;;
4339  ncr)
4340    lt_cv_deplibs_check_method=pass_all
4341    ;;
4342  sequent)
4343    lt_cv_file_magic_cmd='/bin/file'
4344    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4345    ;;
4346  sni)
4347    lt_cv_file_magic_cmd='/bin/file'
4348    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4349    lt_cv_file_magic_test_file=/lib/libc.so
4350    ;;
4351  siemens)
4352    lt_cv_deplibs_check_method=pass_all
4353    ;;
4354  pc)
4355    lt_cv_deplibs_check_method=pass_all
4356    ;;
4357  esac
4358  ;;
4359
4360sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4361  lt_cv_deplibs_check_method=pass_all
4362  ;;
4363esac
4364
4365fi
4366{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4367echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4368file_magic_cmd=$lt_cv_file_magic_cmd
4369deplibs_check_method=$lt_cv_deplibs_check_method
4370test -z "$deplibs_check_method" && deplibs_check_method=unknown
4371
4372
4373
4374
4375# If no C compiler was specified, use CC.
4376LTCC=${LTCC-"$CC"}
4377
4378# If no C compiler flags were specified, use CFLAGS.
4379LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4380
4381# Allow CC to be a program name with arguments.
4382compiler=$CC
4383
4384
4385# Check whether --enable-libtool-lock was given.
4386if test "${enable_libtool_lock+set}" = set; then
4387  enableval=$enable_libtool_lock;
4388fi
4389
4390test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4391
4392# Some flags need to be propagated to the compiler or linker for good
4393# libtool support.
4394case $host in
4395ia64-*-hpux*)
4396  # Find out which ABI we are using.
4397  echo 'int i;' > conftest.$ac_ext
4398  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399  (eval $ac_compile) 2>&5
4400  ac_status=$?
4401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402  (exit $ac_status); }; then
4403    case `/usr/bin/file conftest.$ac_objext` in
4404    *ELF-32*)
4405      HPUX_IA64_MODE="32"
4406      ;;
4407    *ELF-64*)
4408      HPUX_IA64_MODE="64"
4409      ;;
4410    esac
4411  fi
4412  rm -rf conftest*
4413  ;;
4414*-*-irix6*)
4415  # Find out which ABI we are using.
4416  echo '#line 4416 "configure"' > conftest.$ac_ext
4417  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418  (eval $ac_compile) 2>&5
4419  ac_status=$?
4420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421  (exit $ac_status); }; then
4422   if test "$lt_cv_prog_gnu_ld" = yes; then
4423    case `/usr/bin/file conftest.$ac_objext` in
4424    *32-bit*)
4425      LD="${LD-ld} -melf32bsmip"
4426      ;;
4427    *N32*)
4428      LD="${LD-ld} -melf32bmipn32"
4429      ;;
4430    *64-bit*)
4431      LD="${LD-ld} -melf64bmip"
4432      ;;
4433    esac
4434   else
4435    case `/usr/bin/file conftest.$ac_objext` in
4436    *32-bit*)
4437      LD="${LD-ld} -32"
4438      ;;
4439    *N32*)
4440      LD="${LD-ld} -n32"
4441      ;;
4442    *64-bit*)
4443      LD="${LD-ld} -64"
4444      ;;
4445    esac
4446   fi
4447  fi
4448  rm -rf conftest*
4449  ;;
4450
4451x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4452s390*-*linux*|sparc*-*linux*)
4453  # Find out which ABI we are using.
4454  echo 'int i;' > conftest.$ac_ext
4455  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4456  (eval $ac_compile) 2>&5
4457  ac_status=$?
4458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459  (exit $ac_status); }; then
4460    case `/usr/bin/file conftest.o` in
4461    *32-bit*)
4462      case $host in
4463        x86_64-*kfreebsd*-gnu)
4464          LD="${LD-ld} -m elf_i386_fbsd"
4465          ;;
4466        x86_64-*linux*)
4467          LD="${LD-ld} -m elf_i386"
4468          ;;
4469        ppc64-*linux*|powerpc64-*linux*)
4470          LD="${LD-ld} -m elf32ppclinux"
4471          ;;
4472        s390x-*linux*)
4473          LD="${LD-ld} -m elf_s390"
4474          ;;
4475        sparc64-*linux*)
4476          LD="${LD-ld} -m elf32_sparc"
4477          ;;
4478      esac
4479      ;;
4480    *64-bit*)
4481      case $host in
4482        x86_64-*kfreebsd*-gnu)
4483          LD="${LD-ld} -m elf_x86_64_fbsd"
4484          ;;
4485        x86_64-*linux*)
4486          LD="${LD-ld} -m elf_x86_64"
4487          ;;
4488        ppc*-*linux*|powerpc*-*linux*)
4489          LD="${LD-ld} -m elf64ppc"
4490          ;;
4491        s390*-*linux*)
4492          LD="${LD-ld} -m elf64_s390"
4493          ;;
4494        sparc*-*linux*)
4495          LD="${LD-ld} -m elf64_sparc"
4496          ;;
4497      esac
4498      ;;
4499    esac
4500  fi
4501  rm -rf conftest*
4502  ;;
4503
4504*-*-sco3.2v5*)
4505  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4506  SAVE_CFLAGS="$CFLAGS"
4507  CFLAGS="$CFLAGS -belf"
4508  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4509echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4510if test "${lt_cv_cc_needs_belf+set}" = set; then
4511  echo $ECHO_N "(cached) $ECHO_C" >&6
4512else
4513  ac_ext=c
4514ac_cpp='$CPP $CPPFLAGS'
4515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517ac_compiler_gnu=$ac_cv_c_compiler_gnu
4518
4519     cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h.  */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h.  */
4525
4526int
4527main ()
4528{
4529
4530  ;
4531  return 0;
4532}
4533_ACEOF
4534rm -f conftest.$ac_objext conftest$ac_exeext
4535if { (ac_try="$ac_link"
4536case "(($ac_try" in
4537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538  *) ac_try_echo=$ac_try;;
4539esac
4540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4541  (eval "$ac_link") 2>conftest.er1
4542  ac_status=$?
4543  grep -v '^ *+' conftest.er1 >conftest.err
4544  rm -f conftest.er1
4545  cat conftest.err >&5
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); } && {
4548	 test -z "$ac_c_werror_flag" ||
4549	 test ! -s conftest.err
4550       } && test -s conftest$ac_exeext &&
4551       $as_test_x conftest$ac_exeext; then
4552  lt_cv_cc_needs_belf=yes
4553else
4554  echo "$as_me: failed program was:" >&5
4555sed 's/^/| /' conftest.$ac_ext >&5
4556
4557	lt_cv_cc_needs_belf=no
4558fi
4559
4560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4561      conftest$ac_exeext conftest.$ac_ext
4562     ac_ext=c
4563ac_cpp='$CPP $CPPFLAGS'
4564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566ac_compiler_gnu=$ac_cv_c_compiler_gnu
4567
4568fi
4569{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4570echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4571  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4572    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4573    CFLAGS="$SAVE_CFLAGS"
4574  fi
4575  ;;
4576sparc*-*solaris*)
4577  # Find out which ABI we are using.
4578  echo 'int i;' > conftest.$ac_ext
4579  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580  (eval $ac_compile) 2>&5
4581  ac_status=$?
4582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583  (exit $ac_status); }; then
4584    case `/usr/bin/file conftest.o` in
4585    *64-bit*)
4586      case $lt_cv_prog_gnu_ld in
4587      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4588      *)
4589        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4590	  LD="${LD-ld} -64"
4591	fi
4592	;;
4593      esac
4594      ;;
4595    esac
4596  fi
4597  rm -rf conftest*
4598  ;;
4599
4600
4601esac
4602
4603need_locks="$enable_libtool_lock"
4604
4605
4606ac_ext=c
4607ac_cpp='$CPP $CPPFLAGS'
4608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4612echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4613# On Suns, sometimes $CPP names a directory.
4614if test -n "$CPP" && test -d "$CPP"; then
4615  CPP=
4616fi
4617if test -z "$CPP"; then
4618  if test "${ac_cv_prog_CPP+set}" = set; then
4619  echo $ECHO_N "(cached) $ECHO_C" >&6
4620else
4621      # Double quotes because CPP needs to be expanded
4622    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4623    do
4624      ac_preproc_ok=false
4625for ac_c_preproc_warn_flag in '' yes
4626do
4627  # Use a header file that comes with gcc, so configuring glibc
4628  # with a fresh cross-compiler works.
4629  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4630  # <limits.h> exists even on freestanding compilers.
4631  # On the NeXT, cc -E runs the code through the compiler's parser,
4632  # not just through cpp. "Syntax error" is here to catch this case.
4633  cat >conftest.$ac_ext <<_ACEOF
4634/* confdefs.h.  */
4635_ACEOF
4636cat confdefs.h >>conftest.$ac_ext
4637cat >>conftest.$ac_ext <<_ACEOF
4638/* end confdefs.h.  */
4639#ifdef __STDC__
4640# include <limits.h>
4641#else
4642# include <assert.h>
4643#endif
4644		     Syntax error
4645_ACEOF
4646if { (ac_try="$ac_cpp conftest.$ac_ext"
4647case "(($ac_try" in
4648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649  *) ac_try_echo=$ac_try;;
4650esac
4651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4653  ac_status=$?
4654  grep -v '^ *+' conftest.er1 >conftest.err
4655  rm -f conftest.er1
4656  cat conftest.err >&5
4657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658  (exit $ac_status); } >/dev/null && {
4659	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4660	 test ! -s conftest.err
4661       }; then
4662  :
4663else
4664  echo "$as_me: failed program was:" >&5
4665sed 's/^/| /' conftest.$ac_ext >&5
4666
4667  # Broken: fails on valid input.
4668continue
4669fi
4670
4671rm -f conftest.err conftest.$ac_ext
4672
4673  # OK, works on sane cases.  Now check whether nonexistent headers
4674  # can be detected and how.
4675  cat >conftest.$ac_ext <<_ACEOF
4676/* confdefs.h.  */
4677_ACEOF
4678cat confdefs.h >>conftest.$ac_ext
4679cat >>conftest.$ac_ext <<_ACEOF
4680/* end confdefs.h.  */
4681#include <ac_nonexistent.h>
4682_ACEOF
4683if { (ac_try="$ac_cpp conftest.$ac_ext"
4684case "(($ac_try" in
4685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686  *) ac_try_echo=$ac_try;;
4687esac
4688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4690  ac_status=$?
4691  grep -v '^ *+' conftest.er1 >conftest.err
4692  rm -f conftest.er1
4693  cat conftest.err >&5
4694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695  (exit $ac_status); } >/dev/null && {
4696	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4697	 test ! -s conftest.err
4698       }; then
4699  # Broken: success on invalid input.
4700continue
4701else
4702  echo "$as_me: failed program was:" >&5
4703sed 's/^/| /' conftest.$ac_ext >&5
4704
4705  # Passes both tests.
4706ac_preproc_ok=:
4707break
4708fi
4709
4710rm -f conftest.err conftest.$ac_ext
4711
4712done
4713# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4714rm -f conftest.err conftest.$ac_ext
4715if $ac_preproc_ok; then
4716  break
4717fi
4718
4719    done
4720    ac_cv_prog_CPP=$CPP
4721
4722fi
4723  CPP=$ac_cv_prog_CPP
4724else
4725  ac_cv_prog_CPP=$CPP
4726fi
4727{ echo "$as_me:$LINENO: result: $CPP" >&5
4728echo "${ECHO_T}$CPP" >&6; }
4729ac_preproc_ok=false
4730for ac_c_preproc_warn_flag in '' yes
4731do
4732  # Use a header file that comes with gcc, so configuring glibc
4733  # with a fresh cross-compiler works.
4734  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4735  # <limits.h> exists even on freestanding compilers.
4736  # On the NeXT, cc -E runs the code through the compiler's parser,
4737  # not just through cpp. "Syntax error" is here to catch this case.
4738  cat >conftest.$ac_ext <<_ACEOF
4739/* confdefs.h.  */
4740_ACEOF
4741cat confdefs.h >>conftest.$ac_ext
4742cat >>conftest.$ac_ext <<_ACEOF
4743/* end confdefs.h.  */
4744#ifdef __STDC__
4745# include <limits.h>
4746#else
4747# include <assert.h>
4748#endif
4749		     Syntax error
4750_ACEOF
4751if { (ac_try="$ac_cpp conftest.$ac_ext"
4752case "(($ac_try" in
4753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754  *) ac_try_echo=$ac_try;;
4755esac
4756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4758  ac_status=$?
4759  grep -v '^ *+' conftest.er1 >conftest.err
4760  rm -f conftest.er1
4761  cat conftest.err >&5
4762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763  (exit $ac_status); } >/dev/null && {
4764	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4765	 test ! -s conftest.err
4766       }; then
4767  :
4768else
4769  echo "$as_me: failed program was:" >&5
4770sed 's/^/| /' conftest.$ac_ext >&5
4771
4772  # Broken: fails on valid input.
4773continue
4774fi
4775
4776rm -f conftest.err conftest.$ac_ext
4777
4778  # OK, works on sane cases.  Now check whether nonexistent headers
4779  # can be detected and how.
4780  cat >conftest.$ac_ext <<_ACEOF
4781/* confdefs.h.  */
4782_ACEOF
4783cat confdefs.h >>conftest.$ac_ext
4784cat >>conftest.$ac_ext <<_ACEOF
4785/* end confdefs.h.  */
4786#include <ac_nonexistent.h>
4787_ACEOF
4788if { (ac_try="$ac_cpp conftest.$ac_ext"
4789case "(($ac_try" in
4790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791  *) ac_try_echo=$ac_try;;
4792esac
4793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4794  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4795  ac_status=$?
4796  grep -v '^ *+' conftest.er1 >conftest.err
4797  rm -f conftest.er1
4798  cat conftest.err >&5
4799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800  (exit $ac_status); } >/dev/null && {
4801	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4802	 test ! -s conftest.err
4803       }; then
4804  # Broken: success on invalid input.
4805continue
4806else
4807  echo "$as_me: failed program was:" >&5
4808sed 's/^/| /' conftest.$ac_ext >&5
4809
4810  # Passes both tests.
4811ac_preproc_ok=:
4812break
4813fi
4814
4815rm -f conftest.err conftest.$ac_ext
4816
4817done
4818# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4819rm -f conftest.err conftest.$ac_ext
4820if $ac_preproc_ok; then
4821  :
4822else
4823  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4824See \`config.log' for more details." >&5
4825echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4826See \`config.log' for more details." >&2;}
4827   { (exit 1); exit 1; }; }
4828fi
4829
4830ac_ext=c
4831ac_cpp='$CPP $CPPFLAGS'
4832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834ac_compiler_gnu=$ac_cv_c_compiler_gnu
4835
4836
4837{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4838echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4839if test "${ac_cv_header_stdc+set}" = set; then
4840  echo $ECHO_N "(cached) $ECHO_C" >&6
4841else
4842  cat >conftest.$ac_ext <<_ACEOF
4843/* confdefs.h.  */
4844_ACEOF
4845cat confdefs.h >>conftest.$ac_ext
4846cat >>conftest.$ac_ext <<_ACEOF
4847/* end confdefs.h.  */
4848#include <stdlib.h>
4849#include <stdarg.h>
4850#include <string.h>
4851#include <float.h>
4852
4853int
4854main ()
4855{
4856
4857  ;
4858  return 0;
4859}
4860_ACEOF
4861rm -f conftest.$ac_objext
4862if { (ac_try="$ac_compile"
4863case "(($ac_try" in
4864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865  *) ac_try_echo=$ac_try;;
4866esac
4867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868  (eval "$ac_compile") 2>conftest.er1
4869  ac_status=$?
4870  grep -v '^ *+' conftest.er1 >conftest.err
4871  rm -f conftest.er1
4872  cat conftest.err >&5
4873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874  (exit $ac_status); } && {
4875	 test -z "$ac_c_werror_flag" ||
4876	 test ! -s conftest.err
4877       } && test -s conftest.$ac_objext; then
4878  ac_cv_header_stdc=yes
4879else
4880  echo "$as_me: failed program was:" >&5
4881sed 's/^/| /' conftest.$ac_ext >&5
4882
4883	ac_cv_header_stdc=no
4884fi
4885
4886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887
4888if test $ac_cv_header_stdc = yes; then
4889  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4890  cat >conftest.$ac_ext <<_ACEOF
4891/* confdefs.h.  */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h.  */
4896#include <string.h>
4897
4898_ACEOF
4899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4900  $EGREP "memchr" >/dev/null 2>&1; then
4901  :
4902else
4903  ac_cv_header_stdc=no
4904fi
4905rm -f conftest*
4906
4907fi
4908
4909if test $ac_cv_header_stdc = yes; then
4910  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4911  cat >conftest.$ac_ext <<_ACEOF
4912/* confdefs.h.  */
4913_ACEOF
4914cat confdefs.h >>conftest.$ac_ext
4915cat >>conftest.$ac_ext <<_ACEOF
4916/* end confdefs.h.  */
4917#include <stdlib.h>
4918
4919_ACEOF
4920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4921  $EGREP "free" >/dev/null 2>&1; then
4922  :
4923else
4924  ac_cv_header_stdc=no
4925fi
4926rm -f conftest*
4927
4928fi
4929
4930if test $ac_cv_header_stdc = yes; then
4931  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4932  if test "$cross_compiling" = yes; then
4933  :
4934else
4935  cat >conftest.$ac_ext <<_ACEOF
4936/* confdefs.h.  */
4937_ACEOF
4938cat confdefs.h >>conftest.$ac_ext
4939cat >>conftest.$ac_ext <<_ACEOF
4940/* end confdefs.h.  */
4941#include <ctype.h>
4942#include <stdlib.h>
4943#if ((' ' & 0x0FF) == 0x020)
4944# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4945# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4946#else
4947# define ISLOWER(c) \
4948		   (('a' <= (c) && (c) <= 'i') \
4949		     || ('j' <= (c) && (c) <= 'r') \
4950		     || ('s' <= (c) && (c) <= 'z'))
4951# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4952#endif
4953
4954#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4955int
4956main ()
4957{
4958  int i;
4959  for (i = 0; i < 256; i++)
4960    if (XOR (islower (i), ISLOWER (i))
4961	|| toupper (i) != TOUPPER (i))
4962      return 2;
4963  return 0;
4964}
4965_ACEOF
4966rm -f conftest$ac_exeext
4967if { (ac_try="$ac_link"
4968case "(($ac_try" in
4969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970  *) ac_try_echo=$ac_try;;
4971esac
4972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973  (eval "$ac_link") 2>&5
4974  ac_status=$?
4975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4977  { (case "(($ac_try" in
4978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979  *) ac_try_echo=$ac_try;;
4980esac
4981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982  (eval "$ac_try") 2>&5
4983  ac_status=$?
4984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985  (exit $ac_status); }; }; then
4986  :
4987else
4988  echo "$as_me: program exited with status $ac_status" >&5
4989echo "$as_me: failed program was:" >&5
4990sed 's/^/| /' conftest.$ac_ext >&5
4991
4992( exit $ac_status )
4993ac_cv_header_stdc=no
4994fi
4995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4996fi
4997
4998
4999fi
5000fi
5001{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5002echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5003if test $ac_cv_header_stdc = yes; then
5004
5005cat >>confdefs.h <<\_ACEOF
5006#define STDC_HEADERS 1
5007_ACEOF
5008
5009fi
5010
5011# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5022		  inttypes.h stdint.h unistd.h
5023do
5024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5025{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5028  echo $ECHO_N "(cached) $ECHO_C" >&6
5029else
5030  cat >conftest.$ac_ext <<_ACEOF
5031/* confdefs.h.  */
5032_ACEOF
5033cat confdefs.h >>conftest.$ac_ext
5034cat >>conftest.$ac_ext <<_ACEOF
5035/* end confdefs.h.  */
5036$ac_includes_default
5037
5038#include <$ac_header>
5039_ACEOF
5040rm -f conftest.$ac_objext
5041if { (ac_try="$ac_compile"
5042case "(($ac_try" in
5043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044  *) ac_try_echo=$ac_try;;
5045esac
5046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047  (eval "$ac_compile") 2>conftest.er1
5048  ac_status=$?
5049  grep -v '^ *+' conftest.er1 >conftest.err
5050  rm -f conftest.er1
5051  cat conftest.err >&5
5052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053  (exit $ac_status); } && {
5054	 test -z "$ac_c_werror_flag" ||
5055	 test ! -s conftest.err
5056       } && test -s conftest.$ac_objext; then
5057  eval "$as_ac_Header=yes"
5058else
5059  echo "$as_me: failed program was:" >&5
5060sed 's/^/| /' conftest.$ac_ext >&5
5061
5062	eval "$as_ac_Header=no"
5063fi
5064
5065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066fi
5067ac_res=`eval echo '${'$as_ac_Header'}'`
5068	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5069echo "${ECHO_T}$ac_res" >&6; }
5070if test `eval echo '${'$as_ac_Header'}'` = yes; then
5071  cat >>confdefs.h <<_ACEOF
5072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5073_ACEOF
5074
5075fi
5076
5077done
5078
5079
5080
5081for ac_header in dlfcn.h
5082do
5083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5085  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5087if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5088  echo $ECHO_N "(cached) $ECHO_C" >&6
5089fi
5090ac_res=`eval echo '${'$as_ac_Header'}'`
5091	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5092echo "${ECHO_T}$ac_res" >&6; }
5093else
5094  # Is the header compilable?
5095{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5096echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5097cat >conftest.$ac_ext <<_ACEOF
5098/* confdefs.h.  */
5099_ACEOF
5100cat confdefs.h >>conftest.$ac_ext
5101cat >>conftest.$ac_ext <<_ACEOF
5102/* end confdefs.h.  */
5103$ac_includes_default
5104#include <$ac_header>
5105_ACEOF
5106rm -f conftest.$ac_objext
5107if { (ac_try="$ac_compile"
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_compile") 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); } && {
5120	 test -z "$ac_c_werror_flag" ||
5121	 test ! -s conftest.err
5122       } && test -s conftest.$ac_objext; then
5123  ac_header_compiler=yes
5124else
5125  echo "$as_me: failed program was:" >&5
5126sed 's/^/| /' conftest.$ac_ext >&5
5127
5128	ac_header_compiler=no
5129fi
5130
5131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5133echo "${ECHO_T}$ac_header_compiler" >&6; }
5134
5135# Is the header present?
5136{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5137echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5138cat >conftest.$ac_ext <<_ACEOF
5139/* confdefs.h.  */
5140_ACEOF
5141cat confdefs.h >>conftest.$ac_ext
5142cat >>conftest.$ac_ext <<_ACEOF
5143/* end confdefs.h.  */
5144#include <$ac_header>
5145_ACEOF
5146if { (ac_try="$ac_cpp conftest.$ac_ext"
5147case "(($ac_try" in
5148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149  *) ac_try_echo=$ac_try;;
5150esac
5151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5152  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5153  ac_status=$?
5154  grep -v '^ *+' conftest.er1 >conftest.err
5155  rm -f conftest.er1
5156  cat conftest.err >&5
5157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158  (exit $ac_status); } >/dev/null && {
5159	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5160	 test ! -s conftest.err
5161       }; then
5162  ac_header_preproc=yes
5163else
5164  echo "$as_me: failed program was:" >&5
5165sed 's/^/| /' conftest.$ac_ext >&5
5166
5167  ac_header_preproc=no
5168fi
5169
5170rm -f conftest.err conftest.$ac_ext
5171{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5172echo "${ECHO_T}$ac_header_preproc" >&6; }
5173
5174# So?  What about this header?
5175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5176  yes:no: )
5177    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5178echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5179    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5180echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5181    ac_header_preproc=yes
5182    ;;
5183  no:yes:* )
5184    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5185echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5186    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5187echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5188    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5189echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5190    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5191echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5192    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5193echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5194    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5195echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5196    ( cat <<\_ASBOX
5197## ---------------------------------------------------------------------- ##
5198## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5199## ---------------------------------------------------------------------- ##
5200_ASBOX
5201     ) | sed "s/^/$as_me: WARNING:     /" >&2
5202    ;;
5203esac
5204{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5207  echo $ECHO_N "(cached) $ECHO_C" >&6
5208else
5209  eval "$as_ac_Header=\$ac_header_preproc"
5210fi
5211ac_res=`eval echo '${'$as_ac_Header'}'`
5212	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5213echo "${ECHO_T}$ac_res" >&6; }
5214
5215fi
5216if test `eval echo '${'$as_ac_Header'}'` = yes; then
5217  cat >>confdefs.h <<_ACEOF
5218#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5219_ACEOF
5220
5221fi
5222
5223done
5224
5225ac_ext=cpp
5226ac_cpp='$CXXCPP $CPPFLAGS'
5227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5230if test -z "$CXX"; then
5231  if test -n "$CCC"; then
5232    CXX=$CCC
5233  else
5234    if test -n "$ac_tool_prefix"; then
5235  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5236  do
5237    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5238set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5239{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5241if test "${ac_cv_prog_CXX+set}" = set; then
5242  echo $ECHO_N "(cached) $ECHO_C" >&6
5243else
5244  if test -n "$CXX"; then
5245  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5246else
5247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248for as_dir in $PATH
5249do
5250  IFS=$as_save_IFS
5251  test -z "$as_dir" && as_dir=.
5252  for ac_exec_ext in '' $ac_executable_extensions; do
5253  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5254    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5255    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256    break 2
5257  fi
5258done
5259done
5260IFS=$as_save_IFS
5261
5262fi
5263fi
5264CXX=$ac_cv_prog_CXX
5265if test -n "$CXX"; then
5266  { echo "$as_me:$LINENO: result: $CXX" >&5
5267echo "${ECHO_T}$CXX" >&6; }
5268else
5269  { echo "$as_me:$LINENO: result: no" >&5
5270echo "${ECHO_T}no" >&6; }
5271fi
5272
5273
5274    test -n "$CXX" && break
5275  done
5276fi
5277if test -z "$CXX"; then
5278  ac_ct_CXX=$CXX
5279  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5280do
5281  # Extract the first word of "$ac_prog", so it can be a program name with args.
5282set dummy $ac_prog; ac_word=$2
5283{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5285if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5286  echo $ECHO_N "(cached) $ECHO_C" >&6
5287else
5288  if test -n "$ac_ct_CXX"; then
5289  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5290else
5291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292for as_dir in $PATH
5293do
5294  IFS=$as_save_IFS
5295  test -z "$as_dir" && as_dir=.
5296  for ac_exec_ext in '' $ac_executable_extensions; do
5297  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298    ac_cv_prog_ac_ct_CXX="$ac_prog"
5299    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300    break 2
5301  fi
5302done
5303done
5304IFS=$as_save_IFS
5305
5306fi
5307fi
5308ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5309if test -n "$ac_ct_CXX"; then
5310  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5311echo "${ECHO_T}$ac_ct_CXX" >&6; }
5312else
5313  { echo "$as_me:$LINENO: result: no" >&5
5314echo "${ECHO_T}no" >&6; }
5315fi
5316
5317
5318  test -n "$ac_ct_CXX" && break
5319done
5320
5321  if test "x$ac_ct_CXX" = x; then
5322    CXX="g++"
5323  else
5324    case $cross_compiling:$ac_tool_warned in
5325yes:)
5326{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5327whose name does not start with the host triplet.  If you think this
5328configuration is useful to you, please write to autoconf@gnu.org." >&5
5329echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5330whose name does not start with the host triplet.  If you think this
5331configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5332ac_tool_warned=yes ;;
5333esac
5334    CXX=$ac_ct_CXX
5335  fi
5336fi
5337
5338  fi
5339fi
5340# Provide some information about the compiler.
5341echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5342ac_compiler=`set X $ac_compile; echo $2`
5343{ (ac_try="$ac_compiler --version >&5"
5344case "(($ac_try" in
5345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346  *) ac_try_echo=$ac_try;;
5347esac
5348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349  (eval "$ac_compiler --version >&5") 2>&5
5350  ac_status=$?
5351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352  (exit $ac_status); }
5353{ (ac_try="$ac_compiler -v >&5"
5354case "(($ac_try" in
5355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356  *) ac_try_echo=$ac_try;;
5357esac
5358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359  (eval "$ac_compiler -v >&5") 2>&5
5360  ac_status=$?
5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362  (exit $ac_status); }
5363{ (ac_try="$ac_compiler -V >&5"
5364case "(($ac_try" in
5365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366  *) ac_try_echo=$ac_try;;
5367esac
5368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369  (eval "$ac_compiler -V >&5") 2>&5
5370  ac_status=$?
5371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372  (exit $ac_status); }
5373
5374{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5375echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5376if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5377  echo $ECHO_N "(cached) $ECHO_C" >&6
5378else
5379  cat >conftest.$ac_ext <<_ACEOF
5380/* confdefs.h.  */
5381_ACEOF
5382cat confdefs.h >>conftest.$ac_ext
5383cat >>conftest.$ac_ext <<_ACEOF
5384/* end confdefs.h.  */
5385
5386int
5387main ()
5388{
5389#ifndef __GNUC__
5390       choke me
5391#endif
5392
5393  ;
5394  return 0;
5395}
5396_ACEOF
5397rm -f conftest.$ac_objext
5398if { (ac_try="$ac_compile"
5399case "(($ac_try" in
5400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401  *) ac_try_echo=$ac_try;;
5402esac
5403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404  (eval "$ac_compile") 2>conftest.er1
5405  ac_status=$?
5406  grep -v '^ *+' conftest.er1 >conftest.err
5407  rm -f conftest.er1
5408  cat conftest.err >&5
5409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410  (exit $ac_status); } && {
5411	 test -z "$ac_cxx_werror_flag" ||
5412	 test ! -s conftest.err
5413       } && test -s conftest.$ac_objext; then
5414  ac_compiler_gnu=yes
5415else
5416  echo "$as_me: failed program was:" >&5
5417sed 's/^/| /' conftest.$ac_ext >&5
5418
5419	ac_compiler_gnu=no
5420fi
5421
5422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5424
5425fi
5426{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5427echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5428GXX=`test $ac_compiler_gnu = yes && echo yes`
5429ac_test_CXXFLAGS=${CXXFLAGS+set}
5430ac_save_CXXFLAGS=$CXXFLAGS
5431{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5432echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5433if test "${ac_cv_prog_cxx_g+set}" = set; then
5434  echo $ECHO_N "(cached) $ECHO_C" >&6
5435else
5436  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5437   ac_cxx_werror_flag=yes
5438   ac_cv_prog_cxx_g=no
5439   CXXFLAGS="-g"
5440   cat >conftest.$ac_ext <<_ACEOF
5441/* confdefs.h.  */
5442_ACEOF
5443cat confdefs.h >>conftest.$ac_ext
5444cat >>conftest.$ac_ext <<_ACEOF
5445/* end confdefs.h.  */
5446
5447int
5448main ()
5449{
5450
5451  ;
5452  return 0;
5453}
5454_ACEOF
5455rm -f conftest.$ac_objext
5456if { (ac_try="$ac_compile"
5457case "(($ac_try" in
5458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459  *) ac_try_echo=$ac_try;;
5460esac
5461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462  (eval "$ac_compile") 2>conftest.er1
5463  ac_status=$?
5464  grep -v '^ *+' conftest.er1 >conftest.err
5465  rm -f conftest.er1
5466  cat conftest.err >&5
5467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468  (exit $ac_status); } && {
5469	 test -z "$ac_cxx_werror_flag" ||
5470	 test ! -s conftest.err
5471       } && test -s conftest.$ac_objext; then
5472  ac_cv_prog_cxx_g=yes
5473else
5474  echo "$as_me: failed program was:" >&5
5475sed 's/^/| /' conftest.$ac_ext >&5
5476
5477	CXXFLAGS=""
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  :
5511else
5512  echo "$as_me: failed program was:" >&5
5513sed 's/^/| /' conftest.$ac_ext >&5
5514
5515	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5516	 CXXFLAGS="-g"
5517	 cat >conftest.$ac_ext <<_ACEOF
5518/* confdefs.h.  */
5519_ACEOF
5520cat confdefs.h >>conftest.$ac_ext
5521cat >>conftest.$ac_ext <<_ACEOF
5522/* end confdefs.h.  */
5523
5524int
5525main ()
5526{
5527
5528  ;
5529  return 0;
5530}
5531_ACEOF
5532rm -f conftest.$ac_objext
5533if { (ac_try="$ac_compile"
5534case "(($ac_try" in
5535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5536  *) ac_try_echo=$ac_try;;
5537esac
5538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5539  (eval "$ac_compile") 2>conftest.er1
5540  ac_status=$?
5541  grep -v '^ *+' conftest.er1 >conftest.err
5542  rm -f conftest.er1
5543  cat conftest.err >&5
5544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545  (exit $ac_status); } && {
5546	 test -z "$ac_cxx_werror_flag" ||
5547	 test ! -s conftest.err
5548       } && test -s conftest.$ac_objext; then
5549  ac_cv_prog_cxx_g=yes
5550else
5551  echo "$as_me: failed program was:" >&5
5552sed 's/^/| /' conftest.$ac_ext >&5
5553
5554
5555fi
5556
5557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558fi
5559
5560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561fi
5562
5563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5565fi
5566{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5567echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5568if test "$ac_test_CXXFLAGS" = set; then
5569  CXXFLAGS=$ac_save_CXXFLAGS
5570elif test $ac_cv_prog_cxx_g = yes; then
5571  if test "$GXX" = yes; then
5572    CXXFLAGS="-g -O2"
5573  else
5574    CXXFLAGS="-g"
5575  fi
5576else
5577  if test "$GXX" = yes; then
5578    CXXFLAGS="-O2"
5579  else
5580    CXXFLAGS=
5581  fi
5582fi
5583ac_ext=cpp
5584ac_cpp='$CXXCPP $CPPFLAGS'
5585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5588
5589depcc="$CXX"  am_compiler_list=
5590
5591{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5592echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5593if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5594  echo $ECHO_N "(cached) $ECHO_C" >&6
5595else
5596  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5597  # We make a subdir and do the tests there.  Otherwise we can end up
5598  # making bogus files that we don't know about and never remove.  For
5599  # instance it was reported that on HP-UX the gcc test will end up
5600  # making a dummy file named `D' -- because `-MD' means `put the output
5601  # in D'.
5602  mkdir conftest.dir
5603  # Copy depcomp to subdir because otherwise we won't find it if we're
5604  # using a relative directory.
5605  cp "$am_depcomp" conftest.dir
5606  cd conftest.dir
5607  # We will build objects and dependencies in a subdirectory because
5608  # it helps to detect inapplicable dependency modes.  For instance
5609  # both Tru64's cc and ICC support -MD to output dependencies as a
5610  # side effect of compilation, but ICC will put the dependencies in
5611  # the current directory while Tru64 will put them in the object
5612  # directory.
5613  mkdir sub
5614
5615  am_cv_CXX_dependencies_compiler_type=none
5616  if test "$am_compiler_list" = ""; then
5617     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5618  fi
5619  for depmode in $am_compiler_list; do
5620    # Setup a source with many dependencies, because some compilers
5621    # like to wrap large dependency lists on column 80 (with \), and
5622    # we should not choose a depcomp mode which is confused by this.
5623    #
5624    # We need to recreate these files for each test, as the compiler may
5625    # overwrite some of them when testing with obscure command lines.
5626    # This happens at least with the AIX C compiler.
5627    : > sub/conftest.c
5628    for i in 1 2 3 4 5 6; do
5629      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5630      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5631      # Solaris 8's {/usr,}/bin/sh.
5632      touch sub/conftst$i.h
5633    done
5634    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5635
5636    case $depmode in
5637    nosideeffect)
5638      # after this tag, mechanisms are not by side-effect, so they'll
5639      # only be used when explicitly requested
5640      if test "x$enable_dependency_tracking" = xyes; then
5641	continue
5642      else
5643	break
5644      fi
5645      ;;
5646    none) break ;;
5647    esac
5648    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5649    # mode.  It turns out that the SunPro C++ compiler does not properly
5650    # handle `-M -o', and we need to detect this.
5651    if depmode=$depmode \
5652       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5653       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5654       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5655         >/dev/null 2>conftest.err &&
5656       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5657       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5658       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5659       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5660      # icc doesn't choke on unknown options, it will just issue warnings
5661      # or remarks (even with -Werror).  So we grep stderr for any message
5662      # that says an option was ignored or not supported.
5663      # When given -MP, icc 7.0 and 7.1 complain thusly:
5664      #   icc: Command line warning: ignoring option '-M'; no argument required
5665      # The diagnosis changed in icc 8.0:
5666      #   icc: Command line remark: option '-MP' not supported
5667      if (grep 'ignoring option' conftest.err ||
5668          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5669        am_cv_CXX_dependencies_compiler_type=$depmode
5670        break
5671      fi
5672    fi
5673  done
5674
5675  cd ..
5676  rm -rf conftest.dir
5677else
5678  am_cv_CXX_dependencies_compiler_type=none
5679fi
5680
5681fi
5682{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5683echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5684CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5685
5686 if
5687  test "x$enable_dependency_tracking" != xno \
5688  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5689  am__fastdepCXX_TRUE=
5690  am__fastdepCXX_FALSE='#'
5691else
5692  am__fastdepCXX_TRUE='#'
5693  am__fastdepCXX_FALSE=
5694fi
5695
5696
5697
5698
5699if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5700    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5701    (test "X$CXX" != "Xg++"))) ; then
5702  ac_ext=cpp
5703ac_cpp='$CXXCPP $CPPFLAGS'
5704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5707{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5708echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5709if test -z "$CXXCPP"; then
5710  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5711  echo $ECHO_N "(cached) $ECHO_C" >&6
5712else
5713      # Double quotes because CXXCPP needs to be expanded
5714    for CXXCPP in "$CXX -E" "/lib/cpp"
5715    do
5716      ac_preproc_ok=false
5717for ac_cxx_preproc_warn_flag in '' yes
5718do
5719  # Use a header file that comes with gcc, so configuring glibc
5720  # with a fresh cross-compiler works.
5721  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5722  # <limits.h> exists even on freestanding compilers.
5723  # On the NeXT, cc -E runs the code through the compiler's parser,
5724  # not just through cpp. "Syntax error" is here to catch this case.
5725  cat >conftest.$ac_ext <<_ACEOF
5726/* confdefs.h.  */
5727_ACEOF
5728cat confdefs.h >>conftest.$ac_ext
5729cat >>conftest.$ac_ext <<_ACEOF
5730/* end confdefs.h.  */
5731#ifdef __STDC__
5732# include <limits.h>
5733#else
5734# include <assert.h>
5735#endif
5736		     Syntax error
5737_ACEOF
5738if { (ac_try="$ac_cpp conftest.$ac_ext"
5739case "(($ac_try" in
5740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741  *) ac_try_echo=$ac_try;;
5742esac
5743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5745  ac_status=$?
5746  grep -v '^ *+' conftest.er1 >conftest.err
5747  rm -f conftest.er1
5748  cat conftest.err >&5
5749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750  (exit $ac_status); } >/dev/null && {
5751	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5752	 test ! -s conftest.err
5753       }; then
5754  :
5755else
5756  echo "$as_me: failed program was:" >&5
5757sed 's/^/| /' conftest.$ac_ext >&5
5758
5759  # Broken: fails on valid input.
5760continue
5761fi
5762
5763rm -f conftest.err conftest.$ac_ext
5764
5765  # OK, works on sane cases.  Now check whether nonexistent headers
5766  # can be detected and how.
5767  cat >conftest.$ac_ext <<_ACEOF
5768/* confdefs.h.  */
5769_ACEOF
5770cat confdefs.h >>conftest.$ac_ext
5771cat >>conftest.$ac_ext <<_ACEOF
5772/* end confdefs.h.  */
5773#include <ac_nonexistent.h>
5774_ACEOF
5775if { (ac_try="$ac_cpp conftest.$ac_ext"
5776case "(($ac_try" in
5777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778  *) ac_try_echo=$ac_try;;
5779esac
5780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5782  ac_status=$?
5783  grep -v '^ *+' conftest.er1 >conftest.err
5784  rm -f conftest.er1
5785  cat conftest.err >&5
5786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787  (exit $ac_status); } >/dev/null && {
5788	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5789	 test ! -s conftest.err
5790       }; then
5791  # Broken: success on invalid input.
5792continue
5793else
5794  echo "$as_me: failed program was:" >&5
5795sed 's/^/| /' conftest.$ac_ext >&5
5796
5797  # Passes both tests.
5798ac_preproc_ok=:
5799break
5800fi
5801
5802rm -f conftest.err conftest.$ac_ext
5803
5804done
5805# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5806rm -f conftest.err conftest.$ac_ext
5807if $ac_preproc_ok; then
5808  break
5809fi
5810
5811    done
5812    ac_cv_prog_CXXCPP=$CXXCPP
5813
5814fi
5815  CXXCPP=$ac_cv_prog_CXXCPP
5816else
5817  ac_cv_prog_CXXCPP=$CXXCPP
5818fi
5819{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5820echo "${ECHO_T}$CXXCPP" >&6; }
5821ac_preproc_ok=false
5822for ac_cxx_preproc_warn_flag in '' yes
5823do
5824  # Use a header file that comes with gcc, so configuring glibc
5825  # with a fresh cross-compiler works.
5826  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5827  # <limits.h> exists even on freestanding compilers.
5828  # On the NeXT, cc -E runs the code through the compiler's parser,
5829  # not just through cpp. "Syntax error" is here to catch this case.
5830  cat >conftest.$ac_ext <<_ACEOF
5831/* confdefs.h.  */
5832_ACEOF
5833cat confdefs.h >>conftest.$ac_ext
5834cat >>conftest.$ac_ext <<_ACEOF
5835/* end confdefs.h.  */
5836#ifdef __STDC__
5837# include <limits.h>
5838#else
5839# include <assert.h>
5840#endif
5841		     Syntax error
5842_ACEOF
5843if { (ac_try="$ac_cpp conftest.$ac_ext"
5844case "(($ac_try" in
5845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846  *) ac_try_echo=$ac_try;;
5847esac
5848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5850  ac_status=$?
5851  grep -v '^ *+' conftest.er1 >conftest.err
5852  rm -f conftest.er1
5853  cat conftest.err >&5
5854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855  (exit $ac_status); } >/dev/null && {
5856	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5857	 test ! -s conftest.err
5858       }; then
5859  :
5860else
5861  echo "$as_me: failed program was:" >&5
5862sed 's/^/| /' conftest.$ac_ext >&5
5863
5864  # Broken: fails on valid input.
5865continue
5866fi
5867
5868rm -f conftest.err conftest.$ac_ext
5869
5870  # OK, works on sane cases.  Now check whether nonexistent headers
5871  # can be detected and how.
5872  cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h.  */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h.  */
5878#include <ac_nonexistent.h>
5879_ACEOF
5880if { (ac_try="$ac_cpp conftest.$ac_ext"
5881case "(($ac_try" in
5882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883  *) ac_try_echo=$ac_try;;
5884esac
5885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5887  ac_status=$?
5888  grep -v '^ *+' conftest.er1 >conftest.err
5889  rm -f conftest.er1
5890  cat conftest.err >&5
5891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892  (exit $ac_status); } >/dev/null && {
5893	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5894	 test ! -s conftest.err
5895       }; then
5896  # Broken: success on invalid input.
5897continue
5898else
5899  echo "$as_me: failed program was:" >&5
5900sed 's/^/| /' conftest.$ac_ext >&5
5901
5902  # Passes both tests.
5903ac_preproc_ok=:
5904break
5905fi
5906
5907rm -f conftest.err conftest.$ac_ext
5908
5909done
5910# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5911rm -f conftest.err conftest.$ac_ext
5912if $ac_preproc_ok; then
5913  :
5914else
5915  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5916See \`config.log' for more details." >&5
5917echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5918See \`config.log' for more details." >&2;}
5919   { (exit 1); exit 1; }; }
5920fi
5921
5922ac_ext=cpp
5923ac_cpp='$CXXCPP $CPPFLAGS'
5924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5927
5928fi
5929
5930
5931ac_ext=f
5932ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5933ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5934ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5935if test -n "$ac_tool_prefix"; then
5936  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
5937  do
5938    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5939set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5940{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5942if test "${ac_cv_prog_F77+set}" = set; then
5943  echo $ECHO_N "(cached) $ECHO_C" >&6
5944else
5945  if test -n "$F77"; then
5946  ac_cv_prog_F77="$F77" # Let the user override the test.
5947else
5948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949for as_dir in $PATH
5950do
5951  IFS=$as_save_IFS
5952  test -z "$as_dir" && as_dir=.
5953  for ac_exec_ext in '' $ac_executable_extensions; do
5954  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5955    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5956    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957    break 2
5958  fi
5959done
5960done
5961IFS=$as_save_IFS
5962
5963fi
5964fi
5965F77=$ac_cv_prog_F77
5966if test -n "$F77"; then
5967  { echo "$as_me:$LINENO: result: $F77" >&5
5968echo "${ECHO_T}$F77" >&6; }
5969else
5970  { echo "$as_me:$LINENO: result: no" >&5
5971echo "${ECHO_T}no" >&6; }
5972fi
5973
5974
5975    test -n "$F77" && break
5976  done
5977fi
5978if test -z "$F77"; then
5979  ac_ct_F77=$F77
5980  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
5981do
5982  # Extract the first word of "$ac_prog", so it can be a program name with args.
5983set dummy $ac_prog; ac_word=$2
5984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5986if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5987  echo $ECHO_N "(cached) $ECHO_C" >&6
5988else
5989  if test -n "$ac_ct_F77"; then
5990  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5991else
5992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993for as_dir in $PATH
5994do
5995  IFS=$as_save_IFS
5996  test -z "$as_dir" && as_dir=.
5997  for ac_exec_ext in '' $ac_executable_extensions; do
5998  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5999    ac_cv_prog_ac_ct_F77="$ac_prog"
6000    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001    break 2
6002  fi
6003done
6004done
6005IFS=$as_save_IFS
6006
6007fi
6008fi
6009ac_ct_F77=$ac_cv_prog_ac_ct_F77
6010if test -n "$ac_ct_F77"; then
6011  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6012echo "${ECHO_T}$ac_ct_F77" >&6; }
6013else
6014  { echo "$as_me:$LINENO: result: no" >&5
6015echo "${ECHO_T}no" >&6; }
6016fi
6017
6018
6019  test -n "$ac_ct_F77" && break
6020done
6021
6022  if test "x$ac_ct_F77" = x; then
6023    F77=""
6024  else
6025    case $cross_compiling:$ac_tool_warned in
6026yes:)
6027{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6028whose name does not start with the host triplet.  If you think this
6029configuration is useful to you, please write to autoconf@gnu.org." >&5
6030echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6031whose name does not start with the host triplet.  If you think this
6032configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6033ac_tool_warned=yes ;;
6034esac
6035    F77=$ac_ct_F77
6036  fi
6037fi
6038
6039
6040# Provide some information about the compiler.
6041echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6042ac_compiler=`set X $ac_compile; echo $2`
6043{ (ac_try="$ac_compiler --version >&5"
6044case "(($ac_try" in
6045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046  *) ac_try_echo=$ac_try;;
6047esac
6048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049  (eval "$ac_compiler --version >&5") 2>&5
6050  ac_status=$?
6051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052  (exit $ac_status); }
6053{ (ac_try="$ac_compiler -v >&5"
6054case "(($ac_try" in
6055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6056  *) ac_try_echo=$ac_try;;
6057esac
6058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6059  (eval "$ac_compiler -v >&5") 2>&5
6060  ac_status=$?
6061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062  (exit $ac_status); }
6063{ (ac_try="$ac_compiler -V >&5"
6064case "(($ac_try" in
6065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066  *) ac_try_echo=$ac_try;;
6067esac
6068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069  (eval "$ac_compiler -V >&5") 2>&5
6070  ac_status=$?
6071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072  (exit $ac_status); }
6073rm -f a.out
6074
6075# If we don't use `.F' as extension, the preprocessor is not run on the
6076# input file.  (Note that this only needs to work for GNU compilers.)
6077ac_save_ext=$ac_ext
6078ac_ext=F
6079{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6080echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6081if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6082  echo $ECHO_N "(cached) $ECHO_C" >&6
6083else
6084  cat >conftest.$ac_ext <<_ACEOF
6085      program main
6086#ifndef __GNUC__
6087       choke me
6088#endif
6089
6090      end
6091_ACEOF
6092rm -f conftest.$ac_objext
6093if { (ac_try="$ac_compile"
6094case "(($ac_try" in
6095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096  *) ac_try_echo=$ac_try;;
6097esac
6098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099  (eval "$ac_compile") 2>conftest.er1
6100  ac_status=$?
6101  grep -v '^ *+' conftest.er1 >conftest.err
6102  rm -f conftest.er1
6103  cat conftest.err >&5
6104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105  (exit $ac_status); } && {
6106	 test -z "$ac_f77_werror_flag" ||
6107	 test ! -s conftest.err
6108       } && test -s conftest.$ac_objext; then
6109  ac_compiler_gnu=yes
6110else
6111  echo "$as_me: failed program was:" >&5
6112sed 's/^/| /' conftest.$ac_ext >&5
6113
6114	ac_compiler_gnu=no
6115fi
6116
6117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6119
6120fi
6121{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6122echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6123ac_ext=$ac_save_ext
6124ac_test_FFLAGS=${FFLAGS+set}
6125ac_save_FFLAGS=$FFLAGS
6126FFLAGS=
6127{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6128echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6129if test "${ac_cv_prog_f77_g+set}" = set; then
6130  echo $ECHO_N "(cached) $ECHO_C" >&6
6131else
6132  FFLAGS=-g
6133cat >conftest.$ac_ext <<_ACEOF
6134      program main
6135
6136      end
6137_ACEOF
6138rm -f conftest.$ac_objext
6139if { (ac_try="$ac_compile"
6140case "(($ac_try" in
6141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142  *) ac_try_echo=$ac_try;;
6143esac
6144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145  (eval "$ac_compile") 2>conftest.er1
6146  ac_status=$?
6147  grep -v '^ *+' conftest.er1 >conftest.err
6148  rm -f conftest.er1
6149  cat conftest.err >&5
6150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151  (exit $ac_status); } && {
6152	 test -z "$ac_f77_werror_flag" ||
6153	 test ! -s conftest.err
6154       } && test -s conftest.$ac_objext; then
6155  ac_cv_prog_f77_g=yes
6156else
6157  echo "$as_me: failed program was:" >&5
6158sed 's/^/| /' conftest.$ac_ext >&5
6159
6160	ac_cv_prog_f77_g=no
6161fi
6162
6163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164
6165fi
6166{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6167echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6168if test "$ac_test_FFLAGS" = set; then
6169  FFLAGS=$ac_save_FFLAGS
6170elif test $ac_cv_prog_f77_g = yes; then
6171  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6172    FFLAGS="-g -O2"
6173  else
6174    FFLAGS="-g"
6175  fi
6176else
6177  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6178    FFLAGS="-O2"
6179  else
6180    FFLAGS=
6181  fi
6182fi
6183
6184G77=`test $ac_compiler_gnu = yes && echo yes`
6185ac_ext=c
6186ac_cpp='$CPP $CPPFLAGS'
6187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189ac_compiler_gnu=$ac_cv_c_compiler_gnu
6190
6191
6192
6193# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6194# find the maximum length of command line arguments
6195{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6196echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6197if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6198  echo $ECHO_N "(cached) $ECHO_C" >&6
6199else
6200    i=0
6201  teststring="ABCD"
6202
6203  case $build_os in
6204  msdosdjgpp*)
6205    # On DJGPP, this test can blow up pretty badly due to problems in libc
6206    # (any single argument exceeding 2000 bytes causes a buffer overrun
6207    # during glob expansion).  Even if it were fixed, the result of this
6208    # check would be larger than it should be.
6209    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6210    ;;
6211
6212  gnu*)
6213    # Under GNU Hurd, this test is not required because there is
6214    # no limit to the length of command line arguments.
6215    # Libtool will interpret -1 as no limit whatsoever
6216    lt_cv_sys_max_cmd_len=-1;
6217    ;;
6218
6219  cygwin* | mingw*)
6220    # On Win9x/ME, this test blows up -- it succeeds, but takes
6221    # about 5 minutes as the teststring grows exponentially.
6222    # Worse, since 9x/ME are not pre-emptively multitasking,
6223    # you end up with a "frozen" computer, even though with patience
6224    # the test eventually succeeds (with a max line length of 256k).
6225    # Instead, let's just punt: use the minimum linelength reported by
6226    # all of the supported platforms: 8192 (on NT/2K/XP).
6227    lt_cv_sys_max_cmd_len=8192;
6228    ;;
6229
6230  amigaos*)
6231    # On AmigaOS with pdksh, this test takes hours, literally.
6232    # So we just punt and use a minimum line length of 8192.
6233    lt_cv_sys_max_cmd_len=8192;
6234    ;;
6235
6236  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6237    # This has been around since 386BSD, at least.  Likely further.
6238    if test -x /sbin/sysctl; then
6239      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6240    elif test -x /usr/sbin/sysctl; then
6241      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6242    else
6243      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6244    fi
6245    # And add a safety zone
6246    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6247    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6248    ;;
6249
6250  interix*)
6251    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6252    lt_cv_sys_max_cmd_len=196608
6253    ;;
6254
6255  osf*)
6256    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6257    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6258    # nice to cause kernel panics so lets avoid the loop below.
6259    # First set a reasonable default.
6260    lt_cv_sys_max_cmd_len=16384
6261    #
6262    if test -x /sbin/sysconfig; then
6263      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6264        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6265      esac
6266    fi
6267    ;;
6268  sco3.2v5*)
6269    lt_cv_sys_max_cmd_len=102400
6270    ;;
6271  sysv5* | sco5v6* | sysv4.2uw2*)
6272    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6273    if test -n "$kargmax"; then
6274      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6275    else
6276      lt_cv_sys_max_cmd_len=32768
6277    fi
6278    ;;
6279  *)
6280    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6281    if test -n "$lt_cv_sys_max_cmd_len"; then
6282      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6283      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6284    else
6285      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6286      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6287	       = "XX$teststring") >/dev/null 2>&1 &&
6288	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6289	      lt_cv_sys_max_cmd_len=$new_result &&
6290	      test $i != 17 # 1/2 MB should be enough
6291      do
6292        i=`expr $i + 1`
6293        teststring=$teststring$teststring
6294      done
6295      teststring=
6296      # Add a significant safety factor because C++ compilers can tack on massive
6297      # amounts of additional arguments before passing them to the linker.
6298      # It appears as though 1/2 is a usable value.
6299      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6300    fi
6301    ;;
6302  esac
6303
6304fi
6305
6306if test -n $lt_cv_sys_max_cmd_len ; then
6307  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6308echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6309else
6310  { echo "$as_me:$LINENO: result: none" >&5
6311echo "${ECHO_T}none" >&6; }
6312fi
6313
6314
6315
6316
6317
6318# Check for command to grab the raw symbol name followed by C symbol from nm.
6319{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6320echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6321if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6322  echo $ECHO_N "(cached) $ECHO_C" >&6
6323else
6324
6325# These are sane defaults that work on at least a few old systems.
6326# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6327
6328# Character class describing NM global symbol codes.
6329symcode='[BCDEGRST]'
6330
6331# Regexp to match symbols that can be accessed directly from C.
6332sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6333
6334# Transform an extracted symbol line into a proper C declaration
6335lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6336
6337# Transform an extracted symbol line into symbol name and symbol address
6338lt_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'"
6339
6340# Define system-specific variables.
6341case $host_os in
6342aix*)
6343  symcode='[BCDT]'
6344  ;;
6345cygwin* | mingw* | pw32*)
6346  symcode='[ABCDGISTW]'
6347  ;;
6348hpux*) # Its linker distinguishes data from code symbols
6349  if test "$host_cpu" = ia64; then
6350    symcode='[ABCDEGRST]'
6351  fi
6352  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6353  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'"
6354  ;;
6355linux* | k*bsd*-gnu)
6356  if test "$host_cpu" = ia64; then
6357    symcode='[ABCDGIRSTW]'
6358    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6359    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'"
6360  fi
6361  ;;
6362irix* | nonstopux*)
6363  symcode='[BCDEGRST]'
6364  ;;
6365osf*)
6366  symcode='[BCDEGQRST]'
6367  ;;
6368solaris*)
6369  symcode='[BDRT]'
6370  ;;
6371sco3.2v5*)
6372  symcode='[DT]'
6373  ;;
6374sysv4.2uw2*)
6375  symcode='[DT]'
6376  ;;
6377sysv5* | sco5v6* | unixware* | OpenUNIX*)
6378  symcode='[ABDT]'
6379  ;;
6380sysv4)
6381  symcode='[DFNSTU]'
6382  ;;
6383esac
6384
6385# Handle CRLF in mingw tool chain
6386opt_cr=
6387case $build_os in
6388mingw*)
6389  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6390  ;;
6391esac
6392
6393# If we're using GNU nm, then use its standard symbol codes.
6394case `$NM -V 2>&1` in
6395*GNU* | *'with BFD'*)
6396  symcode='[ABCDGIRSTW]' ;;
6397esac
6398
6399# Try without a prefix undercore, then with it.
6400for ac_symprfx in "" "_"; do
6401
6402  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6403  symxfrm="\\1 $ac_symprfx\\2 \\2"
6404
6405  # Write the raw and C identifiers.
6406  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6407
6408  # Check to see that the pipe works correctly.
6409  pipe_works=no
6410
6411  rm -f conftest*
6412  cat > conftest.$ac_ext <<EOF
6413#ifdef __cplusplus
6414extern "C" {
6415#endif
6416char nm_test_var;
6417void nm_test_func(){}
6418#ifdef __cplusplus
6419}
6420#endif
6421int main(){nm_test_var='a';nm_test_func();return(0);}
6422EOF
6423
6424  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425  (eval $ac_compile) 2>&5
6426  ac_status=$?
6427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428  (exit $ac_status); }; then
6429    # Now try to grab the symbols.
6430    nlist=conftest.nm
6431    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6432  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6433  ac_status=$?
6434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435  (exit $ac_status); } && test -s "$nlist"; then
6436      # Try sorting and uniquifying the output.
6437      if sort "$nlist" | uniq > "$nlist"T; then
6438	mv -f "$nlist"T "$nlist"
6439      else
6440	rm -f "$nlist"T
6441      fi
6442
6443      # Make sure that we snagged all the symbols we need.
6444      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6445	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6446	  cat <<EOF > conftest.$ac_ext
6447#ifdef __cplusplus
6448extern "C" {
6449#endif
6450
6451EOF
6452	  # Now generate the symbol file.
6453	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6454
6455	  cat <<EOF >> conftest.$ac_ext
6456#if defined (__STDC__) && __STDC__
6457# define lt_ptr_t void *
6458#else
6459# define lt_ptr_t char *
6460# define const
6461#endif
6462
6463/* The mapping between symbol names and symbols. */
6464const struct {
6465  const char *name;
6466  lt_ptr_t address;
6467}
6468lt_preloaded_symbols[] =
6469{
6470EOF
6471	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6472	  cat <<\EOF >> conftest.$ac_ext
6473  {0, (lt_ptr_t) 0}
6474};
6475
6476#ifdef __cplusplus
6477}
6478#endif
6479EOF
6480	  # Now try linking the two files.
6481	  mv conftest.$ac_objext conftstm.$ac_objext
6482	  lt_save_LIBS="$LIBS"
6483	  lt_save_CFLAGS="$CFLAGS"
6484	  LIBS="conftstm.$ac_objext"
6485	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6486	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6487  (eval $ac_link) 2>&5
6488  ac_status=$?
6489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6491	    pipe_works=yes
6492	  fi
6493	  LIBS="$lt_save_LIBS"
6494	  CFLAGS="$lt_save_CFLAGS"
6495	else
6496	  echo "cannot find nm_test_func in $nlist" >&5
6497	fi
6498      else
6499	echo "cannot find nm_test_var in $nlist" >&5
6500      fi
6501    else
6502      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6503    fi
6504  else
6505    echo "$progname: failed program was:" >&5
6506    cat conftest.$ac_ext >&5
6507  fi
6508  rm -rf conftest* conftst*
6509
6510  # Do not use the global_symbol_pipe unless it works.
6511  if test "$pipe_works" = yes; then
6512    break
6513  else
6514    lt_cv_sys_global_symbol_pipe=
6515  fi
6516done
6517
6518fi
6519
6520if test -z "$lt_cv_sys_global_symbol_pipe"; then
6521  lt_cv_sys_global_symbol_to_cdecl=
6522fi
6523if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6524  { echo "$as_me:$LINENO: result: failed" >&5
6525echo "${ECHO_T}failed" >&6; }
6526else
6527  { echo "$as_me:$LINENO: result: ok" >&5
6528echo "${ECHO_T}ok" >&6; }
6529fi
6530
6531{ echo "$as_me:$LINENO: checking for objdir" >&5
6532echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6533if test "${lt_cv_objdir+set}" = set; then
6534  echo $ECHO_N "(cached) $ECHO_C" >&6
6535else
6536  rm -f .libs 2>/dev/null
6537mkdir .libs 2>/dev/null
6538if test -d .libs; then
6539  lt_cv_objdir=.libs
6540else
6541  # MS-DOS does not allow filenames that begin with a dot.
6542  lt_cv_objdir=_libs
6543fi
6544rmdir .libs 2>/dev/null
6545fi
6546{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6547echo "${ECHO_T}$lt_cv_objdir" >&6; }
6548objdir=$lt_cv_objdir
6549
6550
6551
6552
6553
6554case $host_os in
6555aix3*)
6556  # AIX sometimes has problems with the GCC collect2 program.  For some
6557  # reason, if we set the COLLECT_NAMES environment variable, the problems
6558  # vanish in a puff of smoke.
6559  if test "X${COLLECT_NAMES+set}" != Xset; then
6560    COLLECT_NAMES=
6561    export COLLECT_NAMES
6562  fi
6563  ;;
6564esac
6565
6566# Sed substitution that helps us do robust quoting.  It backslashifies
6567# metacharacters that are still active within double-quoted strings.
6568Xsed='sed -e 1s/^X//'
6569sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6570
6571# Same as above, but do not quote variable references.
6572double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6573
6574# Sed substitution to delay expansion of an escaped shell variable in a
6575# double_quote_subst'ed string.
6576delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6577
6578# Sed substitution to avoid accidental globbing in evaled expressions
6579no_glob_subst='s/\*/\\\*/g'
6580
6581# Constants:
6582rm="rm -f"
6583
6584# Global variables:
6585default_ofile=libtool
6586can_build_shared=yes
6587
6588# All known linkers require a `.a' archive for static linking (except MSVC,
6589# which needs '.lib').
6590libext=a
6591ltmain="$ac_aux_dir/ltmain.sh"
6592ofile="$default_ofile"
6593with_gnu_ld="$lt_cv_prog_gnu_ld"
6594
6595if test -n "$ac_tool_prefix"; then
6596  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6597set dummy ${ac_tool_prefix}ar; ac_word=$2
6598{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6600if test "${ac_cv_prog_AR+set}" = set; then
6601  echo $ECHO_N "(cached) $ECHO_C" >&6
6602else
6603  if test -n "$AR"; then
6604  ac_cv_prog_AR="$AR" # Let the user override the test.
6605else
6606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607for as_dir in $PATH
6608do
6609  IFS=$as_save_IFS
6610  test -z "$as_dir" && as_dir=.
6611  for ac_exec_ext in '' $ac_executable_extensions; do
6612  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613    ac_cv_prog_AR="${ac_tool_prefix}ar"
6614    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615    break 2
6616  fi
6617done
6618done
6619IFS=$as_save_IFS
6620
6621fi
6622fi
6623AR=$ac_cv_prog_AR
6624if test -n "$AR"; then
6625  { echo "$as_me:$LINENO: result: $AR" >&5
6626echo "${ECHO_T}$AR" >&6; }
6627else
6628  { echo "$as_me:$LINENO: result: no" >&5
6629echo "${ECHO_T}no" >&6; }
6630fi
6631
6632
6633fi
6634if test -z "$ac_cv_prog_AR"; then
6635  ac_ct_AR=$AR
6636  # Extract the first word of "ar", so it can be a program name with args.
6637set dummy ar; ac_word=$2
6638{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6641  echo $ECHO_N "(cached) $ECHO_C" >&6
6642else
6643  if test -n "$ac_ct_AR"; then
6644  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6645else
6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in $PATH
6648do
6649  IFS=$as_save_IFS
6650  test -z "$as_dir" && as_dir=.
6651  for ac_exec_ext in '' $ac_executable_extensions; do
6652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653    ac_cv_prog_ac_ct_AR="ar"
6654    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655    break 2
6656  fi
6657done
6658done
6659IFS=$as_save_IFS
6660
6661fi
6662fi
6663ac_ct_AR=$ac_cv_prog_ac_ct_AR
6664if test -n "$ac_ct_AR"; then
6665  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6666echo "${ECHO_T}$ac_ct_AR" >&6; }
6667else
6668  { echo "$as_me:$LINENO: result: no" >&5
6669echo "${ECHO_T}no" >&6; }
6670fi
6671
6672  if test "x$ac_ct_AR" = x; then
6673    AR="false"
6674  else
6675    case $cross_compiling:$ac_tool_warned in
6676yes:)
6677{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6678whose name does not start with the host triplet.  If you think this
6679configuration is useful to you, please write to autoconf@gnu.org." >&5
6680echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6681whose name does not start with the host triplet.  If you think this
6682configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6683ac_tool_warned=yes ;;
6684esac
6685    AR=$ac_ct_AR
6686  fi
6687else
6688  AR="$ac_cv_prog_AR"
6689fi
6690
6691if test -n "$ac_tool_prefix"; then
6692  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6693set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6694{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696if test "${ac_cv_prog_RANLIB+set}" = set; then
6697  echo $ECHO_N "(cached) $ECHO_C" >&6
6698else
6699  if test -n "$RANLIB"; then
6700  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6701else
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705  IFS=$as_save_IFS
6706  test -z "$as_dir" && as_dir=.
6707  for ac_exec_ext in '' $ac_executable_extensions; do
6708  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6710    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711    break 2
6712  fi
6713done
6714done
6715IFS=$as_save_IFS
6716
6717fi
6718fi
6719RANLIB=$ac_cv_prog_RANLIB
6720if test -n "$RANLIB"; then
6721  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6722echo "${ECHO_T}$RANLIB" >&6; }
6723else
6724  { echo "$as_me:$LINENO: result: no" >&5
6725echo "${ECHO_T}no" >&6; }
6726fi
6727
6728
6729fi
6730if test -z "$ac_cv_prog_RANLIB"; then
6731  ac_ct_RANLIB=$RANLIB
6732  # Extract the first word of "ranlib", so it can be a program name with args.
6733set dummy ranlib; ac_word=$2
6734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6736if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6737  echo $ECHO_N "(cached) $ECHO_C" >&6
6738else
6739  if test -n "$ac_ct_RANLIB"; then
6740  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745  IFS=$as_save_IFS
6746  test -z "$as_dir" && as_dir=.
6747  for ac_exec_ext in '' $ac_executable_extensions; do
6748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749    ac_cv_prog_ac_ct_RANLIB="ranlib"
6750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751    break 2
6752  fi
6753done
6754done
6755IFS=$as_save_IFS
6756
6757fi
6758fi
6759ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6760if test -n "$ac_ct_RANLIB"; then
6761  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6762echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6763else
6764  { echo "$as_me:$LINENO: result: no" >&5
6765echo "${ECHO_T}no" >&6; }
6766fi
6767
6768  if test "x$ac_ct_RANLIB" = x; then
6769    RANLIB=":"
6770  else
6771    case $cross_compiling:$ac_tool_warned in
6772yes:)
6773{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6774whose name does not start with the host triplet.  If you think this
6775configuration is useful to you, please write to autoconf@gnu.org." >&5
6776echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6777whose name does not start with the host triplet.  If you think this
6778configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6779ac_tool_warned=yes ;;
6780esac
6781    RANLIB=$ac_ct_RANLIB
6782  fi
6783else
6784  RANLIB="$ac_cv_prog_RANLIB"
6785fi
6786
6787if test -n "$ac_tool_prefix"; then
6788  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6789set dummy ${ac_tool_prefix}strip; ac_word=$2
6790{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6792if test "${ac_cv_prog_STRIP+set}" = set; then
6793  echo $ECHO_N "(cached) $ECHO_C" >&6
6794else
6795  if test -n "$STRIP"; then
6796  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6797else
6798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799for as_dir in $PATH
6800do
6801  IFS=$as_save_IFS
6802  test -z "$as_dir" && as_dir=.
6803  for ac_exec_ext in '' $ac_executable_extensions; do
6804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6806    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807    break 2
6808  fi
6809done
6810done
6811IFS=$as_save_IFS
6812
6813fi
6814fi
6815STRIP=$ac_cv_prog_STRIP
6816if test -n "$STRIP"; then
6817  { echo "$as_me:$LINENO: result: $STRIP" >&5
6818echo "${ECHO_T}$STRIP" >&6; }
6819else
6820  { echo "$as_me:$LINENO: result: no" >&5
6821echo "${ECHO_T}no" >&6; }
6822fi
6823
6824
6825fi
6826if test -z "$ac_cv_prog_STRIP"; then
6827  ac_ct_STRIP=$STRIP
6828  # Extract the first word of "strip", so it can be a program name with args.
6829set dummy strip; ac_word=$2
6830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6833  echo $ECHO_N "(cached) $ECHO_C" >&6
6834else
6835  if test -n "$ac_ct_STRIP"; then
6836  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6837else
6838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839for as_dir in $PATH
6840do
6841  IFS=$as_save_IFS
6842  test -z "$as_dir" && as_dir=.
6843  for ac_exec_ext in '' $ac_executable_extensions; do
6844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845    ac_cv_prog_ac_ct_STRIP="strip"
6846    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847    break 2
6848  fi
6849done
6850done
6851IFS=$as_save_IFS
6852
6853fi
6854fi
6855ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6856if test -n "$ac_ct_STRIP"; then
6857  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6858echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6859else
6860  { echo "$as_me:$LINENO: result: no" >&5
6861echo "${ECHO_T}no" >&6; }
6862fi
6863
6864  if test "x$ac_ct_STRIP" = x; then
6865    STRIP=":"
6866  else
6867    case $cross_compiling:$ac_tool_warned in
6868yes:)
6869{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6870whose name does not start with the host triplet.  If you think this
6871configuration is useful to you, please write to autoconf@gnu.org." >&5
6872echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6873whose name does not start with the host triplet.  If you think this
6874configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6875ac_tool_warned=yes ;;
6876esac
6877    STRIP=$ac_ct_STRIP
6878  fi
6879else
6880  STRIP="$ac_cv_prog_STRIP"
6881fi
6882
6883
6884old_CC="$CC"
6885old_CFLAGS="$CFLAGS"
6886
6887# Set sane defaults for various variables
6888test -z "$AR" && AR=ar
6889test -z "$AR_FLAGS" && AR_FLAGS=cru
6890test -z "$AS" && AS=as
6891test -z "$CC" && CC=cc
6892test -z "$LTCC" && LTCC=$CC
6893test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6894test -z "$DLLTOOL" && DLLTOOL=dlltool
6895test -z "$LD" && LD=ld
6896test -z "$LN_S" && LN_S="ln -s"
6897test -z "$MAGIC_CMD" && MAGIC_CMD=file
6898test -z "$NM" && NM=nm
6899test -z "$SED" && SED=sed
6900test -z "$OBJDUMP" && OBJDUMP=objdump
6901test -z "$RANLIB" && RANLIB=:
6902test -z "$STRIP" && STRIP=:
6903test -z "$ac_objext" && ac_objext=o
6904
6905# Determine commands to create old-style static archives.
6906old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6907old_postinstall_cmds='chmod 644 $oldlib'
6908old_postuninstall_cmds=
6909
6910if test -n "$RANLIB"; then
6911  case $host_os in
6912  openbsd*)
6913    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6914    ;;
6915  *)
6916    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6917    ;;
6918  esac
6919  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6920fi
6921
6922for cc_temp in $compiler""; do
6923  case $cc_temp in
6924    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6925    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6926    \-*) ;;
6927    *) break;;
6928  esac
6929done
6930cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6931
6932
6933# Only perform the check for file, if the check method requires it
6934case $deplibs_check_method in
6935file_magic*)
6936  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6937    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6938echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6939if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6940  echo $ECHO_N "(cached) $ECHO_C" >&6
6941else
6942  case $MAGIC_CMD in
6943[\\/*] |  ?:[\\/]*)
6944  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6945  ;;
6946*)
6947  lt_save_MAGIC_CMD="$MAGIC_CMD"
6948  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6949  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6950  for ac_dir in $ac_dummy; do
6951    IFS="$lt_save_ifs"
6952    test -z "$ac_dir" && ac_dir=.
6953    if test -f $ac_dir/${ac_tool_prefix}file; then
6954      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6955      if test -n "$file_magic_test_file"; then
6956	case $deplibs_check_method in
6957	"file_magic "*)
6958	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6959	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6960	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6961	    $EGREP "$file_magic_regex" > /dev/null; then
6962	    :
6963	  else
6964	    cat <<EOF 1>&2
6965
6966*** Warning: the command libtool uses to detect shared libraries,
6967*** $file_magic_cmd, produces output that libtool cannot recognize.
6968*** The result is that libtool may fail to recognize shared libraries
6969*** as such.  This will affect the creation of libtool libraries that
6970*** depend on shared libraries, but programs linked with such libtool
6971*** libraries will work regardless of this problem.  Nevertheless, you
6972*** may want to report the problem to your system manager and/or to
6973*** bug-libtool@gnu.org
6974
6975EOF
6976	  fi ;;
6977	esac
6978      fi
6979      break
6980    fi
6981  done
6982  IFS="$lt_save_ifs"
6983  MAGIC_CMD="$lt_save_MAGIC_CMD"
6984  ;;
6985esac
6986fi
6987
6988MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6989if test -n "$MAGIC_CMD"; then
6990  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6991echo "${ECHO_T}$MAGIC_CMD" >&6; }
6992else
6993  { echo "$as_me:$LINENO: result: no" >&5
6994echo "${ECHO_T}no" >&6; }
6995fi
6996
6997if test -z "$lt_cv_path_MAGIC_CMD"; then
6998  if test -n "$ac_tool_prefix"; then
6999    { echo "$as_me:$LINENO: checking for file" >&5
7000echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7001if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7002  echo $ECHO_N "(cached) $ECHO_C" >&6
7003else
7004  case $MAGIC_CMD in
7005[\\/*] |  ?:[\\/]*)
7006  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7007  ;;
7008*)
7009  lt_save_MAGIC_CMD="$MAGIC_CMD"
7010  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7011  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7012  for ac_dir in $ac_dummy; do
7013    IFS="$lt_save_ifs"
7014    test -z "$ac_dir" && ac_dir=.
7015    if test -f $ac_dir/file; then
7016      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7017      if test -n "$file_magic_test_file"; then
7018	case $deplibs_check_method in
7019	"file_magic "*)
7020	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7021	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7022	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7023	    $EGREP "$file_magic_regex" > /dev/null; then
7024	    :
7025	  else
7026	    cat <<EOF 1>&2
7027
7028*** Warning: the command libtool uses to detect shared libraries,
7029*** $file_magic_cmd, produces output that libtool cannot recognize.
7030*** The result is that libtool may fail to recognize shared libraries
7031*** as such.  This will affect the creation of libtool libraries that
7032*** depend on shared libraries, but programs linked with such libtool
7033*** libraries will work regardless of this problem.  Nevertheless, you
7034*** may want to report the problem to your system manager and/or to
7035*** bug-libtool@gnu.org
7036
7037EOF
7038	  fi ;;
7039	esac
7040      fi
7041      break
7042    fi
7043  done
7044  IFS="$lt_save_ifs"
7045  MAGIC_CMD="$lt_save_MAGIC_CMD"
7046  ;;
7047esac
7048fi
7049
7050MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7051if test -n "$MAGIC_CMD"; then
7052  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7053echo "${ECHO_T}$MAGIC_CMD" >&6; }
7054else
7055  { echo "$as_me:$LINENO: result: no" >&5
7056echo "${ECHO_T}no" >&6; }
7057fi
7058
7059  else
7060    MAGIC_CMD=:
7061  fi
7062fi
7063
7064  fi
7065  ;;
7066esac
7067
7068
7069  case $host_os in
7070    rhapsody* | darwin*)
7071    if test -n "$ac_tool_prefix"; then
7072  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7073set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7074{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7077  echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079  if test -n "$DSYMUTIL"; then
7080  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085  IFS=$as_save_IFS
7086  test -z "$as_dir" && as_dir=.
7087  for ac_exec_ext in '' $ac_executable_extensions; do
7088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7089    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7090    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091    break 2
7092  fi
7093done
7094done
7095IFS=$as_save_IFS
7096
7097fi
7098fi
7099DSYMUTIL=$ac_cv_prog_DSYMUTIL
7100if test -n "$DSYMUTIL"; then
7101  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7102echo "${ECHO_T}$DSYMUTIL" >&6; }
7103else
7104  { echo "$as_me:$LINENO: result: no" >&5
7105echo "${ECHO_T}no" >&6; }
7106fi
7107
7108
7109fi
7110if test -z "$ac_cv_prog_DSYMUTIL"; then
7111  ac_ct_DSYMUTIL=$DSYMUTIL
7112  # Extract the first word of "dsymutil", so it can be a program name with args.
7113set dummy dsymutil; ac_word=$2
7114{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7116if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7117  echo $ECHO_N "(cached) $ECHO_C" >&6
7118else
7119  if test -n "$ac_ct_DSYMUTIL"; then
7120  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7121else
7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123for as_dir in $PATH
7124do
7125  IFS=$as_save_IFS
7126  test -z "$as_dir" && as_dir=.
7127  for ac_exec_ext in '' $ac_executable_extensions; do
7128  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7130    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131    break 2
7132  fi
7133done
7134done
7135IFS=$as_save_IFS
7136
7137fi
7138fi
7139ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7140if test -n "$ac_ct_DSYMUTIL"; then
7141  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7142echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7143else
7144  { echo "$as_me:$LINENO: result: no" >&5
7145echo "${ECHO_T}no" >&6; }
7146fi
7147
7148  if test "x$ac_ct_DSYMUTIL" = x; then
7149    DSYMUTIL=":"
7150  else
7151    case $cross_compiling:$ac_tool_warned in
7152yes:)
7153{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7154whose name does not start with the host triplet.  If you think this
7155configuration is useful to you, please write to autoconf@gnu.org." >&5
7156echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7157whose name does not start with the host triplet.  If you think this
7158configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7159ac_tool_warned=yes ;;
7160esac
7161    DSYMUTIL=$ac_ct_DSYMUTIL
7162  fi
7163else
7164  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7165fi
7166
7167    if test -n "$ac_tool_prefix"; then
7168  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7169set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7170{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7172if test "${ac_cv_prog_NMEDIT+set}" = set; then
7173  echo $ECHO_N "(cached) $ECHO_C" >&6
7174else
7175  if test -n "$NMEDIT"; then
7176  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7177else
7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179for as_dir in $PATH
7180do
7181  IFS=$as_save_IFS
7182  test -z "$as_dir" && as_dir=.
7183  for ac_exec_ext in '' $ac_executable_extensions; do
7184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7185    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7186    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187    break 2
7188  fi
7189done
7190done
7191IFS=$as_save_IFS
7192
7193fi
7194fi
7195NMEDIT=$ac_cv_prog_NMEDIT
7196if test -n "$NMEDIT"; then
7197  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7198echo "${ECHO_T}$NMEDIT" >&6; }
7199else
7200  { echo "$as_me:$LINENO: result: no" >&5
7201echo "${ECHO_T}no" >&6; }
7202fi
7203
7204
7205fi
7206if test -z "$ac_cv_prog_NMEDIT"; then
7207  ac_ct_NMEDIT=$NMEDIT
7208  # Extract the first word of "nmedit", so it can be a program name with args.
7209set dummy nmedit; ac_word=$2
7210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7212if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7213  echo $ECHO_N "(cached) $ECHO_C" >&6
7214else
7215  if test -n "$ac_ct_NMEDIT"; then
7216  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7217else
7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221  IFS=$as_save_IFS
7222  test -z "$as_dir" && as_dir=.
7223  for ac_exec_ext in '' $ac_executable_extensions; do
7224  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7225    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7226    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227    break 2
7228  fi
7229done
7230done
7231IFS=$as_save_IFS
7232
7233fi
7234fi
7235ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7236if test -n "$ac_ct_NMEDIT"; then
7237  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7238echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7239else
7240  { echo "$as_me:$LINENO: result: no" >&5
7241echo "${ECHO_T}no" >&6; }
7242fi
7243
7244  if test "x$ac_ct_NMEDIT" = x; then
7245    NMEDIT=":"
7246  else
7247    case $cross_compiling:$ac_tool_warned in
7248yes:)
7249{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7250whose name does not start with the host triplet.  If you think this
7251configuration is useful to you, please write to autoconf@gnu.org." >&5
7252echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7253whose name does not start with the host triplet.  If you think this
7254configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7255ac_tool_warned=yes ;;
7256esac
7257    NMEDIT=$ac_ct_NMEDIT
7258  fi
7259else
7260  NMEDIT="$ac_cv_prog_NMEDIT"
7261fi
7262
7263
7264    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7265echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7266if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7267  echo $ECHO_N "(cached) $ECHO_C" >&6
7268else
7269  lt_cv_apple_cc_single_mod=no
7270      if test -z "${LT_MULTI_MODULE}"; then
7271   # By default we will add the -single_module flag. You can override
7272   # by either setting the environment variable LT_MULTI_MODULE
7273   # non-empty at configure time, or by adding -multi_module to the
7274   # link flags.
7275   echo "int foo(void){return 1;}" > conftest.c
7276   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7277     -dynamiclib ${wl}-single_module conftest.c
7278   if test -f libconftest.dylib; then
7279     lt_cv_apple_cc_single_mod=yes
7280     rm -rf libconftest.dylib*
7281   fi
7282   rm conftest.c
7283      fi
7284fi
7285{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7286echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7287    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7288echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7289if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7290  echo $ECHO_N "(cached) $ECHO_C" >&6
7291else
7292  lt_cv_ld_exported_symbols_list=no
7293      save_LDFLAGS=$LDFLAGS
7294      echo "_main" > conftest.sym
7295      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7296      cat >conftest.$ac_ext <<_ACEOF
7297/* confdefs.h.  */
7298_ACEOF
7299cat confdefs.h >>conftest.$ac_ext
7300cat >>conftest.$ac_ext <<_ACEOF
7301/* end confdefs.h.  */
7302
7303int
7304main ()
7305{
7306
7307  ;
7308  return 0;
7309}
7310_ACEOF
7311rm -f conftest.$ac_objext conftest$ac_exeext
7312if { (ac_try="$ac_link"
7313case "(($ac_try" in
7314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315  *) ac_try_echo=$ac_try;;
7316esac
7317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318  (eval "$ac_link") 2>conftest.er1
7319  ac_status=$?
7320  grep -v '^ *+' conftest.er1 >conftest.err
7321  rm -f conftest.er1
7322  cat conftest.err >&5
7323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324  (exit $ac_status); } && {
7325	 test -z "$ac_c_werror_flag" ||
7326	 test ! -s conftest.err
7327       } && test -s conftest$ac_exeext &&
7328       $as_test_x conftest$ac_exeext; then
7329  lt_cv_ld_exported_symbols_list=yes
7330else
7331  echo "$as_me: failed program was:" >&5
7332sed 's/^/| /' conftest.$ac_ext >&5
7333
7334	lt_cv_ld_exported_symbols_list=no
7335fi
7336
7337rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7338      conftest$ac_exeext conftest.$ac_ext
7339   LDFLAGS="$save_LDFLAGS"
7340
7341fi
7342{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7343echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7344    case $host_os in
7345    rhapsody* | darwin1.[0123])
7346      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7347    darwin1.*)
7348     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7349    darwin*)
7350      # if running on 10.5 or later, the deployment target defaults
7351      # to the OS version, if on x86, and 10.4, the deployment
7352      # target defaults to 10.4. Don't you love it?
7353      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7354   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7355     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7356   10.[012]*)
7357     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7358   10.*)
7359     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7360      esac
7361    ;;
7362  esac
7363    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7364      _lt_dar_single_mod='$single_module'
7365    fi
7366    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7367      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7368    else
7369      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7370    fi
7371    if test "$DSYMUTIL" != ":"; then
7372      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7373    else
7374      _lt_dsymutil=
7375    fi
7376    ;;
7377  esac
7378
7379
7380enable_dlopen=no
7381enable_win32_dll=no
7382
7383# Check whether --enable-libtool-lock was given.
7384if test "${enable_libtool_lock+set}" = set; then
7385  enableval=$enable_libtool_lock;
7386fi
7387
7388test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7389
7390
7391# Check whether --with-pic was given.
7392if test "${with_pic+set}" = set; then
7393  withval=$with_pic; pic_mode="$withval"
7394else
7395  pic_mode=default
7396fi
7397
7398test -z "$pic_mode" && pic_mode=default
7399
7400# Use C for the default configuration in the libtool script
7401tagname=
7402lt_save_CC="$CC"
7403ac_ext=c
7404ac_cpp='$CPP $CPPFLAGS'
7405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407ac_compiler_gnu=$ac_cv_c_compiler_gnu
7408
7409
7410# Source file extension for C test sources.
7411ac_ext=c
7412
7413# Object file extension for compiled C test sources.
7414objext=o
7415objext=$objext
7416
7417# Code to be used in simple compile tests
7418lt_simple_compile_test_code="int some_variable = 0;"
7419
7420# Code to be used in simple link tests
7421lt_simple_link_test_code='int main(){return(0);}'
7422
7423
7424# If no C compiler was specified, use CC.
7425LTCC=${LTCC-"$CC"}
7426
7427# If no C compiler flags were specified, use CFLAGS.
7428LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7429
7430# Allow CC to be a program name with arguments.
7431compiler=$CC
7432
7433
7434# save warnings/boilerplate of simple test code
7435ac_outfile=conftest.$ac_objext
7436echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7437eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7438_lt_compiler_boilerplate=`cat conftest.err`
7439$rm conftest*
7440
7441ac_outfile=conftest.$ac_objext
7442echo "$lt_simple_link_test_code" >conftest.$ac_ext
7443eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7444_lt_linker_boilerplate=`cat conftest.err`
7445$rm -r conftest*
7446
7447
7448
7449lt_prog_compiler_no_builtin_flag=
7450
7451if test "$GCC" = yes; then
7452  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7453
7454
7455{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7456echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7457if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7458  echo $ECHO_N "(cached) $ECHO_C" >&6
7459else
7460  lt_cv_prog_compiler_rtti_exceptions=no
7461  ac_outfile=conftest.$ac_objext
7462   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7463   lt_compiler_flag="-fno-rtti -fno-exceptions"
7464   # Insert the option either (1) after the last *FLAGS variable, or
7465   # (2) before a word containing "conftest.", or (3) at the end.
7466   # Note that $ac_compile itself does not contain backslashes and begins
7467   # with a dollar sign (not a hyphen), so the echo should work correctly.
7468   # The option is referenced via a variable to avoid confusing sed.
7469   lt_compile=`echo "$ac_compile" | $SED \
7470   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7471   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7472   -e 's:$: $lt_compiler_flag:'`
7473   (eval echo "\"\$as_me:7473: $lt_compile\"" >&5)
7474   (eval "$lt_compile" 2>conftest.err)
7475   ac_status=$?
7476   cat conftest.err >&5
7477   echo "$as_me:7477: \$? = $ac_status" >&5
7478   if (exit $ac_status) && test -s "$ac_outfile"; then
7479     # The compiler can only warn and ignore the option if not recognized
7480     # So say no if there are warnings other than the usual output.
7481     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7482     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7483     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7484       lt_cv_prog_compiler_rtti_exceptions=yes
7485     fi
7486   fi
7487   $rm conftest*
7488
7489fi
7490{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7491echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7492
7493if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7494    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7495else
7496    :
7497fi
7498
7499fi
7500
7501lt_prog_compiler_wl=
7502lt_prog_compiler_pic=
7503lt_prog_compiler_static=
7504
7505{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7506echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7507
7508  if test "$GCC" = yes; then
7509    lt_prog_compiler_wl='-Wl,'
7510    lt_prog_compiler_static='-static'
7511
7512    case $host_os in
7513      aix*)
7514      # All AIX code is PIC.
7515      if test "$host_cpu" = ia64; then
7516	# AIX 5 now supports IA64 processor
7517	lt_prog_compiler_static='-Bstatic'
7518      fi
7519      ;;
7520
7521    amigaos*)
7522      # FIXME: we need at least 68020 code to build shared libraries, but
7523      # adding the `-m68020' flag to GCC prevents building anything better,
7524      # like `-m68040'.
7525      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7526      ;;
7527
7528    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7529      # PIC is the default for these OSes.
7530      ;;
7531
7532    mingw* | cygwin* | pw32* | os2*)
7533      # This hack is so that the source file can tell whether it is being
7534      # built for inclusion in a dll (and should export symbols for example).
7535      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7536      # (--disable-auto-import) libraries
7537      lt_prog_compiler_pic='-DDLL_EXPORT'
7538      ;;
7539
7540    darwin* | rhapsody*)
7541      # PIC is the default on this platform
7542      # Common symbols not allowed in MH_DYLIB files
7543      lt_prog_compiler_pic='-fno-common'
7544      ;;
7545
7546    interix[3-9]*)
7547      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7548      # Instead, we relocate shared libraries at runtime.
7549      ;;
7550
7551    msdosdjgpp*)
7552      # Just because we use GCC doesn't mean we suddenly get shared libraries
7553      # on systems that don't support them.
7554      lt_prog_compiler_can_build_shared=no
7555      enable_shared=no
7556      ;;
7557
7558    sysv4*MP*)
7559      if test -d /usr/nec; then
7560	lt_prog_compiler_pic=-Kconform_pic
7561      fi
7562      ;;
7563
7564    hpux*)
7565      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7566      # not for PA HP-UX.
7567      case $host_cpu in
7568      hppa*64*|ia64*)
7569	# +Z the default
7570	;;
7571      *)
7572	lt_prog_compiler_pic='-fPIC'
7573	;;
7574      esac
7575      ;;
7576
7577    *)
7578      lt_prog_compiler_pic='-fPIC'
7579      ;;
7580    esac
7581  else
7582    # PORTME Check for flag to pass linker flags through the system compiler.
7583    case $host_os in
7584    aix*)
7585      lt_prog_compiler_wl='-Wl,'
7586      if test "$host_cpu" = ia64; then
7587	# AIX 5 now supports IA64 processor
7588	lt_prog_compiler_static='-Bstatic'
7589      else
7590	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7591      fi
7592      ;;
7593      darwin*)
7594        # PIC is the default on this platform
7595        # Common symbols not allowed in MH_DYLIB files
7596       case $cc_basename in
7597         xlc*)
7598         lt_prog_compiler_pic='-qnocommon'
7599         lt_prog_compiler_wl='-Wl,'
7600         ;;
7601       esac
7602       ;;
7603
7604    mingw* | cygwin* | pw32* | os2*)
7605      # This hack is so that the source file can tell whether it is being
7606      # built for inclusion in a dll (and should export symbols for example).
7607      lt_prog_compiler_pic='-DDLL_EXPORT'
7608      ;;
7609
7610    hpux9* | hpux10* | hpux11*)
7611      lt_prog_compiler_wl='-Wl,'
7612      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7613      # not for PA HP-UX.
7614      case $host_cpu in
7615      hppa*64*|ia64*)
7616	# +Z the default
7617	;;
7618      *)
7619	lt_prog_compiler_pic='+Z'
7620	;;
7621      esac
7622      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7623      lt_prog_compiler_static='${wl}-a ${wl}archive'
7624      ;;
7625
7626    irix5* | irix6* | nonstopux*)
7627      lt_prog_compiler_wl='-Wl,'
7628      # PIC (with -KPIC) is the default.
7629      lt_prog_compiler_static='-non_shared'
7630      ;;
7631
7632    newsos6)
7633      lt_prog_compiler_pic='-KPIC'
7634      lt_prog_compiler_static='-Bstatic'
7635      ;;
7636
7637    linux* | k*bsd*-gnu)
7638      case $cc_basename in
7639      icc* | ecc*)
7640	lt_prog_compiler_wl='-Wl,'
7641	lt_prog_compiler_pic='-KPIC'
7642	lt_prog_compiler_static='-static'
7643        ;;
7644      pgcc* | pgf77* | pgf90* | pgf95*)
7645        # Portland Group compilers (*not* the Pentium gcc compiler,
7646	# which looks to be a dead project)
7647	lt_prog_compiler_wl='-Wl,'
7648	lt_prog_compiler_pic='-fpic'
7649	lt_prog_compiler_static='-Bstatic'
7650        ;;
7651      ccc*)
7652        lt_prog_compiler_wl='-Wl,'
7653        # All Alpha code is PIC.
7654        lt_prog_compiler_static='-non_shared'
7655        ;;
7656      *)
7657        case `$CC -V 2>&1 | sed 5q` in
7658	*Sun\ C*)
7659	  # Sun C 5.9
7660	  lt_prog_compiler_pic='-KPIC'
7661	  lt_prog_compiler_static='-Bstatic'
7662	  lt_prog_compiler_wl='-Wl,'
7663	  ;;
7664	*Sun\ F*)
7665	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7666	  lt_prog_compiler_pic='-KPIC'
7667	  lt_prog_compiler_static='-Bstatic'
7668	  lt_prog_compiler_wl=''
7669	  ;;
7670	esac
7671	;;
7672      esac
7673      ;;
7674
7675    osf3* | osf4* | osf5*)
7676      lt_prog_compiler_wl='-Wl,'
7677      # All OSF/1 code is PIC.
7678      lt_prog_compiler_static='-non_shared'
7679      ;;
7680
7681    rdos*)
7682      lt_prog_compiler_static='-non_shared'
7683      ;;
7684
7685    solaris*)
7686      lt_prog_compiler_pic='-KPIC'
7687      lt_prog_compiler_static='-Bstatic'
7688      case $cc_basename in
7689      f77* | f90* | f95*)
7690	lt_prog_compiler_wl='-Qoption ld ';;
7691      *)
7692	lt_prog_compiler_wl='-Wl,';;
7693      esac
7694      ;;
7695
7696    sunos4*)
7697      lt_prog_compiler_wl='-Qoption ld '
7698      lt_prog_compiler_pic='-PIC'
7699      lt_prog_compiler_static='-Bstatic'
7700      ;;
7701
7702    sysv4 | sysv4.2uw2* | sysv4.3*)
7703      lt_prog_compiler_wl='-Wl,'
7704      lt_prog_compiler_pic='-KPIC'
7705      lt_prog_compiler_static='-Bstatic'
7706      ;;
7707
7708    sysv4*MP*)
7709      if test -d /usr/nec ;then
7710	lt_prog_compiler_pic='-Kconform_pic'
7711	lt_prog_compiler_static='-Bstatic'
7712      fi
7713      ;;
7714
7715    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7716      lt_prog_compiler_wl='-Wl,'
7717      lt_prog_compiler_pic='-KPIC'
7718      lt_prog_compiler_static='-Bstatic'
7719      ;;
7720
7721    unicos*)
7722      lt_prog_compiler_wl='-Wl,'
7723      lt_prog_compiler_can_build_shared=no
7724      ;;
7725
7726    uts4*)
7727      lt_prog_compiler_pic='-pic'
7728      lt_prog_compiler_static='-Bstatic'
7729      ;;
7730
7731    *)
7732      lt_prog_compiler_can_build_shared=no
7733      ;;
7734    esac
7735  fi
7736
7737{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7738echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7739
7740#
7741# Check to make sure the PIC flag actually works.
7742#
7743if test -n "$lt_prog_compiler_pic"; then
7744
7745{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7746echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7747if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7748  echo $ECHO_N "(cached) $ECHO_C" >&6
7749else
7750  lt_cv_prog_compiler_pic_works=no
7751  ac_outfile=conftest.$ac_objext
7752   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7753   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7754   # Insert the option either (1) after the last *FLAGS variable, or
7755   # (2) before a word containing "conftest.", or (3) at the end.
7756   # Note that $ac_compile itself does not contain backslashes and begins
7757   # with a dollar sign (not a hyphen), so the echo should work correctly.
7758   # The option is referenced via a variable to avoid confusing sed.
7759   lt_compile=`echo "$ac_compile" | $SED \
7760   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7761   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7762   -e 's:$: $lt_compiler_flag:'`
7763   (eval echo "\"\$as_me:7763: $lt_compile\"" >&5)
7764   (eval "$lt_compile" 2>conftest.err)
7765   ac_status=$?
7766   cat conftest.err >&5
7767   echo "$as_me:7767: \$? = $ac_status" >&5
7768   if (exit $ac_status) && test -s "$ac_outfile"; then
7769     # The compiler can only warn and ignore the option if not recognized
7770     # So say no if there are warnings other than the usual output.
7771     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7772     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7773     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7774       lt_cv_prog_compiler_pic_works=yes
7775     fi
7776   fi
7777   $rm conftest*
7778
7779fi
7780{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7781echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7782
7783if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7784    case $lt_prog_compiler_pic in
7785     "" | " "*) ;;
7786     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7787     esac
7788else
7789    lt_prog_compiler_pic=
7790     lt_prog_compiler_can_build_shared=no
7791fi
7792
7793fi
7794case $host_os in
7795  # For platforms which do not support PIC, -DPIC is meaningless:
7796  *djgpp*)
7797    lt_prog_compiler_pic=
7798    ;;
7799  *)
7800    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7801    ;;
7802esac
7803
7804#
7805# Check to make sure the static flag actually works.
7806#
7807wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7808{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7809echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7810if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7811  echo $ECHO_N "(cached) $ECHO_C" >&6
7812else
7813  lt_cv_prog_compiler_static_works=no
7814   save_LDFLAGS="$LDFLAGS"
7815   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7816   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7817   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7818     # The linker can only warn and ignore the option if not recognized
7819     # So say no if there are warnings
7820     if test -s conftest.err; then
7821       # Append any errors to the config.log.
7822       cat conftest.err 1>&5
7823       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7824       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7825       if diff conftest.exp conftest.er2 >/dev/null; then
7826         lt_cv_prog_compiler_static_works=yes
7827       fi
7828     else
7829       lt_cv_prog_compiler_static_works=yes
7830     fi
7831   fi
7832   $rm -r conftest*
7833   LDFLAGS="$save_LDFLAGS"
7834
7835fi
7836{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7837echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7838
7839if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7840    :
7841else
7842    lt_prog_compiler_static=
7843fi
7844
7845
7846{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7847echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7848if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7849  echo $ECHO_N "(cached) $ECHO_C" >&6
7850else
7851  lt_cv_prog_compiler_c_o=no
7852   $rm -r conftest 2>/dev/null
7853   mkdir conftest
7854   cd conftest
7855   mkdir out
7856   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7857
7858   lt_compiler_flag="-o out/conftest2.$ac_objext"
7859   # Insert the option either (1) after the last *FLAGS variable, or
7860   # (2) before a word containing "conftest.", or (3) at the end.
7861   # Note that $ac_compile itself does not contain backslashes and begins
7862   # with a dollar sign (not a hyphen), so the echo should work correctly.
7863   lt_compile=`echo "$ac_compile" | $SED \
7864   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7865   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7866   -e 's:$: $lt_compiler_flag:'`
7867   (eval echo "\"\$as_me:7867: $lt_compile\"" >&5)
7868   (eval "$lt_compile" 2>out/conftest.err)
7869   ac_status=$?
7870   cat out/conftest.err >&5
7871   echo "$as_me:7871: \$? = $ac_status" >&5
7872   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7873   then
7874     # The compiler can only warn and ignore the option if not recognized
7875     # So say no if there are warnings
7876     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7877     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7878     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7879       lt_cv_prog_compiler_c_o=yes
7880     fi
7881   fi
7882   chmod u+w . 2>&5
7883   $rm conftest*
7884   # SGI C++ compiler will create directory out/ii_files/ for
7885   # template instantiation
7886   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7887   $rm out/* && rmdir out
7888   cd ..
7889   rmdir conftest
7890   $rm conftest*
7891
7892fi
7893{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7894echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7895
7896
7897hard_links="nottested"
7898if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7899  # do not overwrite the value of need_locks provided by the user
7900  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7901echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7902  hard_links=yes
7903  $rm conftest*
7904  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7905  touch conftest.a
7906  ln conftest.a conftest.b 2>&5 || hard_links=no
7907  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7908  { echo "$as_me:$LINENO: result: $hard_links" >&5
7909echo "${ECHO_T}$hard_links" >&6; }
7910  if test "$hard_links" = no; then
7911    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7912echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7913    need_locks=warn
7914  fi
7915else
7916  need_locks=no
7917fi
7918
7919{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7920echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7921
7922  runpath_var=
7923  allow_undefined_flag=
7924  enable_shared_with_static_runtimes=no
7925  archive_cmds=
7926  archive_expsym_cmds=
7927  old_archive_From_new_cmds=
7928  old_archive_from_expsyms_cmds=
7929  export_dynamic_flag_spec=
7930  whole_archive_flag_spec=
7931  thread_safe_flag_spec=
7932  hardcode_libdir_flag_spec=
7933  hardcode_libdir_flag_spec_ld=
7934  hardcode_libdir_separator=
7935  hardcode_direct=no
7936  hardcode_minus_L=no
7937  hardcode_shlibpath_var=unsupported
7938  link_all_deplibs=unknown
7939  hardcode_automatic=no
7940  module_cmds=
7941  module_expsym_cmds=
7942  always_export_symbols=no
7943  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7944  # include_expsyms should be a list of space-separated symbols to be *always*
7945  # included in the symbol list
7946  include_expsyms=
7947  # exclude_expsyms can be an extended regexp of symbols to exclude
7948  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7949  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7950  # as well as any symbol that contains `d'.
7951  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7952  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7953  # platforms (ab)use it in PIC code, but their linkers get confused if
7954  # the symbol is explicitly referenced.  Since portable code cannot
7955  # rely on this symbol name, it's probably fine to never include it in
7956  # preloaded symbol tables.
7957  # Exclude shared library initialization/finalization symbols.
7958  extract_expsyms_cmds=
7959  # Just being paranoid about ensuring that cc_basename is set.
7960  for cc_temp in $compiler""; do
7961  case $cc_temp in
7962    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7963    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7964    \-*) ;;
7965    *) break;;
7966  esac
7967done
7968cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7969
7970  case $host_os in
7971  cygwin* | mingw* | pw32*)
7972    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7973    # When not using gcc, we currently assume that we are using
7974    # Microsoft Visual C++.
7975    if test "$GCC" != yes; then
7976      with_gnu_ld=no
7977    fi
7978    ;;
7979  interix*)
7980    # we just hope/assume this is gcc and not c89 (= MSVC++)
7981    with_gnu_ld=yes
7982    ;;
7983  openbsd*)
7984    with_gnu_ld=no
7985    ;;
7986  esac
7987
7988  ld_shlibs=yes
7989  if test "$with_gnu_ld" = yes; then
7990    # If archive_cmds runs LD, not CC, wlarc should be empty
7991    wlarc='${wl}'
7992
7993    # Set some defaults for GNU ld with shared library support. These
7994    # are reset later if shared libraries are not supported. Putting them
7995    # here allows them to be overridden if necessary.
7996    runpath_var=LD_RUN_PATH
7997    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7998    export_dynamic_flag_spec='${wl}--export-dynamic'
7999    # ancient GNU ld didn't support --whole-archive et. al.
8000    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8001	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8002      else
8003  	whole_archive_flag_spec=
8004    fi
8005    supports_anon_versioning=no
8006    case `$LD -v 2>/dev/null` in
8007      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8008      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8009      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8010      *\ 2.11.*) ;; # other 2.11 versions
8011      *) supports_anon_versioning=yes ;;
8012    esac
8013
8014    # See if GNU ld supports shared libraries.
8015    case $host_os in
8016    aix[3-9]*)
8017      # On AIX/PPC, the GNU linker is very broken
8018      if test "$host_cpu" != ia64; then
8019	ld_shlibs=no
8020	cat <<EOF 1>&2
8021
8022*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8023*** to be unable to reliably create shared libraries on AIX.
8024*** Therefore, libtool is disabling shared libraries support.  If you
8025*** really care for shared libraries, you may want to modify your PATH
8026*** so that a non-GNU linker is found, and then restart.
8027
8028EOF
8029      fi
8030      ;;
8031
8032    amigaos*)
8033      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)'
8034      hardcode_libdir_flag_spec='-L$libdir'
8035      hardcode_minus_L=yes
8036
8037      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8038      # that the semantics of dynamic libraries on AmigaOS, at least up
8039      # to version 4, is to share data among multiple programs linked
8040      # with the same dynamic library.  Since this doesn't match the
8041      # behavior of shared libraries on other platforms, we can't use
8042      # them.
8043      ld_shlibs=no
8044      ;;
8045
8046    beos*)
8047      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8048	allow_undefined_flag=unsupported
8049	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8050	# support --undefined.  This deserves some investigation.  FIXME
8051	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8052      else
8053	ld_shlibs=no
8054      fi
8055      ;;
8056
8057    cygwin* | mingw* | pw32*)
8058      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8059      # as there is no search path for DLLs.
8060      hardcode_libdir_flag_spec='-L$libdir'
8061      allow_undefined_flag=unsupported
8062      always_export_symbols=no
8063      enable_shared_with_static_runtimes=yes
8064      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8065
8066      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8067        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8068	# If the export-symbols file already is a .def file (1st line
8069	# is EXPORTS), use it as is; otherwise, prepend...
8070	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8071	  cp $export_symbols $output_objdir/$soname.def;
8072	else
8073	  echo EXPORTS > $output_objdir/$soname.def;
8074	  cat $export_symbols >> $output_objdir/$soname.def;
8075	fi~
8076	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8077      else
8078	ld_shlibs=no
8079      fi
8080      ;;
8081
8082    interix[3-9]*)
8083      hardcode_direct=no
8084      hardcode_shlibpath_var=no
8085      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8086      export_dynamic_flag_spec='${wl}-E'
8087      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8088      # Instead, shared libraries are loaded at an image base (0x10000000 by
8089      # default) and relocated if they conflict, which is a slow very memory
8090      # consuming and fragmenting process.  To avoid this, we pick a random,
8091      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8092      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8093      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8094      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'
8095      ;;
8096
8097    gnu* | linux* | k*bsd*-gnu)
8098      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8099	tmp_addflag=
8100	case $cc_basename,$host_cpu in
8101	pgcc*)				# Portland Group C compiler
8102	  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'
8103	  tmp_addflag=' $pic_flag'
8104	  ;;
8105	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8106	  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'
8107	  tmp_addflag=' $pic_flag -Mnomain' ;;
8108	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8109	  tmp_addflag=' -i_dynamic' ;;
8110	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8111	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8112	ifc* | ifort*)			# Intel Fortran compiler
8113	  tmp_addflag=' -nofor_main' ;;
8114	esac
8115	case `$CC -V 2>&1 | sed 5q` in
8116	*Sun\ C*)			# Sun C 5.9
8117	  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'
8118	  tmp_sharedflag='-G' ;;
8119	*Sun\ F*)			# Sun Fortran 8.3
8120	  tmp_sharedflag='-G' ;;
8121	*)
8122	  tmp_sharedflag='-shared' ;;
8123	esac
8124	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8125
8126	if test $supports_anon_versioning = yes; then
8127	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8128  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8129  $echo "local: *; };" >> $output_objdir/$libname.ver~
8130	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8131	fi
8132	link_all_deplibs=no
8133      else
8134	ld_shlibs=no
8135      fi
8136      ;;
8137
8138    netbsd* | netbsdelf*-gnu)
8139      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8140	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8141	wlarc=
8142      else
8143	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8144	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8145      fi
8146      ;;
8147
8148    solaris*)
8149      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8150	ld_shlibs=no
8151	cat <<EOF 1>&2
8152
8153*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8154*** create shared libraries on Solaris systems.  Therefore, libtool
8155*** is disabling shared libraries support.  We urge you to upgrade GNU
8156*** binutils to release 2.9.1 or newer.  Another option is to modify
8157*** your PATH or compiler configuration so that the native linker is
8158*** used, and then restart.
8159
8160EOF
8161      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8162	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8163	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8164      else
8165	ld_shlibs=no
8166      fi
8167      ;;
8168
8169    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8170      case `$LD -v 2>&1` in
8171        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8172	ld_shlibs=no
8173	cat <<_LT_EOF 1>&2
8174
8175*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8176*** reliably create shared libraries on SCO systems.  Therefore, libtool
8177*** is disabling shared libraries support.  We urge you to upgrade GNU
8178*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8179*** your PATH or compiler configuration so that the native linker is
8180*** used, and then restart.
8181
8182_LT_EOF
8183	;;
8184	*)
8185	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8186	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8187	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8188	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8189	  else
8190	    ld_shlibs=no
8191	  fi
8192	;;
8193      esac
8194      ;;
8195
8196    sunos4*)
8197      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8198      wlarc=
8199      hardcode_direct=yes
8200      hardcode_shlibpath_var=no
8201      ;;
8202
8203    *)
8204      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8205	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8206	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8207      else
8208	ld_shlibs=no
8209      fi
8210      ;;
8211    esac
8212
8213    if test "$ld_shlibs" = no; then
8214      runpath_var=
8215      hardcode_libdir_flag_spec=
8216      export_dynamic_flag_spec=
8217      whole_archive_flag_spec=
8218    fi
8219  else
8220    # PORTME fill in a description of your system's linker (not GNU ld)
8221    case $host_os in
8222    aix3*)
8223      allow_undefined_flag=unsupported
8224      always_export_symbols=yes
8225      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'
8226      # Note: this linker hardcodes the directories in LIBPATH if there
8227      # are no directories specified by -L.
8228      hardcode_minus_L=yes
8229      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8230	# Neither direct hardcoding nor static linking is supported with a
8231	# broken collect2.
8232	hardcode_direct=unsupported
8233      fi
8234      ;;
8235
8236    aix[4-9]*)
8237      if test "$host_cpu" = ia64; then
8238	# On IA64, the linker does run time linking by default, so we don't
8239	# have to do anything special.
8240	aix_use_runtimelinking=no
8241	exp_sym_flag='-Bexport'
8242	no_entry_flag=""
8243      else
8244	# If we're using GNU nm, then we don't want the "-C" option.
8245	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8246	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8247	  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'
8248	else
8249	  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'
8250	fi
8251	aix_use_runtimelinking=no
8252
8253	# Test if we are trying to use run time linking or normal
8254	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8255	# need to do runtime linking.
8256	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8257	  for ld_flag in $LDFLAGS; do
8258  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8259  	    aix_use_runtimelinking=yes
8260  	    break
8261  	  fi
8262	  done
8263	  ;;
8264	esac
8265
8266	exp_sym_flag='-bexport'
8267	no_entry_flag='-bnoentry'
8268      fi
8269
8270      # When large executables or shared objects are built, AIX ld can
8271      # have problems creating the table of contents.  If linking a library
8272      # or program results in "error TOC overflow" add -mminimal-toc to
8273      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8274      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8275
8276      archive_cmds=''
8277      hardcode_direct=yes
8278      hardcode_libdir_separator=':'
8279      link_all_deplibs=yes
8280
8281      if test "$GCC" = yes; then
8282	case $host_os in aix4.[012]|aix4.[012].*)
8283	# We only want to do this on AIX 4.2 and lower, the check
8284	# below for broken collect2 doesn't work under 4.3+
8285	  collect2name=`${CC} -print-prog-name=collect2`
8286	  if test -f "$collect2name" && \
8287  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8288	  then
8289  	  # We have reworked collect2
8290  	  :
8291	  else
8292  	  # We have old collect2
8293  	  hardcode_direct=unsupported
8294  	  # It fails to find uninstalled libraries when the uninstalled
8295  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8296  	  # to unsupported forces relinking
8297  	  hardcode_minus_L=yes
8298  	  hardcode_libdir_flag_spec='-L$libdir'
8299  	  hardcode_libdir_separator=
8300	  fi
8301	  ;;
8302	esac
8303	shared_flag='-shared'
8304	if test "$aix_use_runtimelinking" = yes; then
8305	  shared_flag="$shared_flag "'${wl}-G'
8306	fi
8307      else
8308	# not using gcc
8309	if test "$host_cpu" = ia64; then
8310  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8311  	# chokes on -Wl,-G. The following line is correct:
8312	  shared_flag='-G'
8313	else
8314	  if test "$aix_use_runtimelinking" = yes; then
8315	    shared_flag='${wl}-G'
8316	  else
8317	    shared_flag='${wl}-bM:SRE'
8318	  fi
8319	fi
8320      fi
8321
8322      # It seems that -bexpall does not export symbols beginning with
8323      # underscore (_), so it is better to generate a list of symbols to export.
8324      always_export_symbols=yes
8325      if test "$aix_use_runtimelinking" = yes; then
8326	# Warning - without using the other runtime loading flags (-brtl),
8327	# -berok will link without error, but may produce a broken library.
8328	allow_undefined_flag='-berok'
8329       # Determine the default libpath from the value encoded in an empty executable.
8330       cat >conftest.$ac_ext <<_ACEOF
8331/* confdefs.h.  */
8332_ACEOF
8333cat confdefs.h >>conftest.$ac_ext
8334cat >>conftest.$ac_ext <<_ACEOF
8335/* end confdefs.h.  */
8336
8337int
8338main ()
8339{
8340
8341  ;
8342  return 0;
8343}
8344_ACEOF
8345rm -f conftest.$ac_objext conftest$ac_exeext
8346if { (ac_try="$ac_link"
8347case "(($ac_try" in
8348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349  *) ac_try_echo=$ac_try;;
8350esac
8351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352  (eval "$ac_link") 2>conftest.er1
8353  ac_status=$?
8354  grep -v '^ *+' conftest.er1 >conftest.err
8355  rm -f conftest.er1
8356  cat conftest.err >&5
8357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358  (exit $ac_status); } && {
8359	 test -z "$ac_c_werror_flag" ||
8360	 test ! -s conftest.err
8361       } && test -s conftest$ac_exeext &&
8362       $as_test_x conftest$ac_exeext; then
8363
8364lt_aix_libpath_sed='
8365    /Import File Strings/,/^$/ {
8366	/^0/ {
8367	    s/^0  *\(.*\)$/\1/
8368	    p
8369	}
8370    }'
8371aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8372# Check for a 64-bit object if we didn't find anything.
8373if test -z "$aix_libpath"; then
8374  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8375fi
8376else
8377  echo "$as_me: failed program was:" >&5
8378sed 's/^/| /' conftest.$ac_ext >&5
8379
8380
8381fi
8382
8383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8384      conftest$ac_exeext conftest.$ac_ext
8385if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8386
8387       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8388	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"
8389       else
8390	if test "$host_cpu" = ia64; then
8391	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8392	  allow_undefined_flag="-z nodefs"
8393	  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"
8394	else
8395	 # Determine the default libpath from the value encoded in an empty executable.
8396	 cat >conftest.$ac_ext <<_ACEOF
8397/* confdefs.h.  */
8398_ACEOF
8399cat confdefs.h >>conftest.$ac_ext
8400cat >>conftest.$ac_ext <<_ACEOF
8401/* end confdefs.h.  */
8402
8403int
8404main ()
8405{
8406
8407  ;
8408  return 0;
8409}
8410_ACEOF
8411rm -f conftest.$ac_objext conftest$ac_exeext
8412if { (ac_try="$ac_link"
8413case "(($ac_try" in
8414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415  *) ac_try_echo=$ac_try;;
8416esac
8417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418  (eval "$ac_link") 2>conftest.er1
8419  ac_status=$?
8420  grep -v '^ *+' conftest.er1 >conftest.err
8421  rm -f conftest.er1
8422  cat conftest.err >&5
8423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424  (exit $ac_status); } && {
8425	 test -z "$ac_c_werror_flag" ||
8426	 test ! -s conftest.err
8427       } && test -s conftest$ac_exeext &&
8428       $as_test_x conftest$ac_exeext; then
8429
8430lt_aix_libpath_sed='
8431    /Import File Strings/,/^$/ {
8432	/^0/ {
8433	    s/^0  *\(.*\)$/\1/
8434	    p
8435	}
8436    }'
8437aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8438# Check for a 64-bit object if we didn't find anything.
8439if test -z "$aix_libpath"; then
8440  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8441fi
8442else
8443  echo "$as_me: failed program was:" >&5
8444sed 's/^/| /' conftest.$ac_ext >&5
8445
8446
8447fi
8448
8449rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8450      conftest$ac_exeext conftest.$ac_ext
8451if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8452
8453	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8454	  # Warning - without using the other run time loading flags,
8455	  # -berok will link without error, but may produce a broken library.
8456	  no_undefined_flag=' ${wl}-bernotok'
8457	  allow_undefined_flag=' ${wl}-berok'
8458	  # Exported symbols can be pulled into shared objects from archives
8459	  whole_archive_flag_spec='$convenience'
8460	  archive_cmds_need_lc=yes
8461	  # This is similar to how AIX traditionally builds its shared libraries.
8462	  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'
8463	fi
8464      fi
8465      ;;
8466
8467    amigaos*)
8468      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)'
8469      hardcode_libdir_flag_spec='-L$libdir'
8470      hardcode_minus_L=yes
8471      # see comment about different semantics on the GNU ld section
8472      ld_shlibs=no
8473      ;;
8474
8475    bsdi[45]*)
8476      export_dynamic_flag_spec=-rdynamic
8477      ;;
8478
8479    cygwin* | mingw* | pw32*)
8480      # When not using gcc, we currently assume that we are using
8481      # Microsoft Visual C++.
8482      # hardcode_libdir_flag_spec is actually meaningless, as there is
8483      # no search path for DLLs.
8484      hardcode_libdir_flag_spec=' '
8485      allow_undefined_flag=unsupported
8486      # Tell ltmain to make .lib files, not .a files.
8487      libext=lib
8488      # Tell ltmain to make .dll files, not .so files.
8489      shrext_cmds=".dll"
8490      # FIXME: Setting linknames here is a bad hack.
8491      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8492      # The linker will automatically build a .lib file if we build a DLL.
8493      old_archive_From_new_cmds='true'
8494      # FIXME: Should let the user specify the lib program.
8495      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8496      fix_srcfile_path='`cygpath -w "$srcfile"`'
8497      enable_shared_with_static_runtimes=yes
8498      ;;
8499
8500    darwin* | rhapsody*)
8501      case $host_os in
8502        rhapsody* | darwin1.[012])
8503         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8504         ;;
8505       *) # Darwin 1.3 on
8506         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8507           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8508         else
8509           case ${MACOSX_DEPLOYMENT_TARGET} in
8510             10.[012])
8511               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8512               ;;
8513             10.*)
8514               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8515               ;;
8516           esac
8517         fi
8518         ;;
8519      esac
8520      archive_cmds_need_lc=no
8521      hardcode_direct=no
8522      hardcode_automatic=yes
8523      hardcode_shlibpath_var=unsupported
8524      whole_archive_flag_spec=''
8525      link_all_deplibs=yes
8526    if test "$GCC" = yes ; then
8527    	output_verbose_link_cmd='echo'
8528        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8529        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8530        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8531        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8532    else
8533      case $cc_basename in
8534        xlc*)
8535         output_verbose_link_cmd='echo'
8536         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8537         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8538          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8539         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}'
8540          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}'
8541          ;;
8542       *)
8543         ld_shlibs=no
8544          ;;
8545      esac
8546    fi
8547      ;;
8548
8549    dgux*)
8550      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8551      hardcode_libdir_flag_spec='-L$libdir'
8552      hardcode_shlibpath_var=no
8553      ;;
8554
8555    freebsd1*)
8556      ld_shlibs=no
8557      ;;
8558
8559    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8560    # support.  Future versions do this automatically, but an explicit c++rt0.o
8561    # does not break anything, and helps significantly (at the cost of a little
8562    # extra space).
8563    freebsd2.2*)
8564      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8565      hardcode_libdir_flag_spec='-R$libdir'
8566      hardcode_direct=yes
8567      hardcode_shlibpath_var=no
8568      ;;
8569
8570    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8571    freebsd2*)
8572      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8573      hardcode_direct=yes
8574      hardcode_minus_L=yes
8575      hardcode_shlibpath_var=no
8576      ;;
8577
8578    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8579    freebsd* | dragonfly*)
8580      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8581      hardcode_libdir_flag_spec='-R$libdir'
8582      hardcode_direct=yes
8583      hardcode_shlibpath_var=no
8584      ;;
8585
8586    hpux9*)
8587      if test "$GCC" = yes; then
8588	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'
8589      else
8590	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'
8591      fi
8592      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8593      hardcode_libdir_separator=:
8594      hardcode_direct=yes
8595
8596      # hardcode_minus_L: Not really in the search PATH,
8597      # but as the default location of the library.
8598      hardcode_minus_L=yes
8599      export_dynamic_flag_spec='${wl}-E'
8600      ;;
8601
8602    hpux10*)
8603      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8604	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8605      else
8606	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8607      fi
8608      if test "$with_gnu_ld" = no; then
8609	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8610	hardcode_libdir_separator=:
8611
8612	hardcode_direct=yes
8613	export_dynamic_flag_spec='${wl}-E'
8614
8615	# hardcode_minus_L: Not really in the search PATH,
8616	# but as the default location of the library.
8617	hardcode_minus_L=yes
8618      fi
8619      ;;
8620
8621    hpux11*)
8622      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8623	case $host_cpu in
8624	hppa*64*)
8625	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8626	  ;;
8627	ia64*)
8628	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8629	  ;;
8630	*)
8631	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8632	  ;;
8633	esac
8634      else
8635	case $host_cpu in
8636	hppa*64*)
8637	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8638	  ;;
8639	ia64*)
8640	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8641	  ;;
8642	*)
8643	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8644	  ;;
8645	esac
8646      fi
8647      if test "$with_gnu_ld" = no; then
8648	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8649	hardcode_libdir_separator=:
8650
8651	case $host_cpu in
8652	hppa*64*|ia64*)
8653	  hardcode_libdir_flag_spec_ld='+b $libdir'
8654	  hardcode_direct=no
8655	  hardcode_shlibpath_var=no
8656	  ;;
8657	*)
8658	  hardcode_direct=yes
8659	  export_dynamic_flag_spec='${wl}-E'
8660
8661	  # hardcode_minus_L: Not really in the search PATH,
8662	  # but as the default location of the library.
8663	  hardcode_minus_L=yes
8664	  ;;
8665	esac
8666      fi
8667      ;;
8668
8669    irix5* | irix6* | nonstopux*)
8670      if test "$GCC" = yes; then
8671	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'
8672      else
8673	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'
8674	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8675      fi
8676      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8677      hardcode_libdir_separator=:
8678      link_all_deplibs=yes
8679      ;;
8680
8681    netbsd* | netbsdelf*-gnu)
8682      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8683	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8684      else
8685	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8686      fi
8687      hardcode_libdir_flag_spec='-R$libdir'
8688      hardcode_direct=yes
8689      hardcode_shlibpath_var=no
8690      ;;
8691
8692    newsos6)
8693      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8694      hardcode_direct=yes
8695      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8696      hardcode_libdir_separator=:
8697      hardcode_shlibpath_var=no
8698      ;;
8699
8700    openbsd*)
8701      if test -f /usr/libexec/ld.so; then
8702	hardcode_direct=yes
8703	hardcode_shlibpath_var=no
8704	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8705	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8706	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8707	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8708	  export_dynamic_flag_spec='${wl}-E'
8709	else
8710	  case $host_os in
8711	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8712	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8713	     hardcode_libdir_flag_spec='-R$libdir'
8714	     ;;
8715	   *)
8716	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8717	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8718	     ;;
8719	  esac
8720        fi
8721      else
8722	ld_shlibs=no
8723      fi
8724      ;;
8725
8726    os2*)
8727      hardcode_libdir_flag_spec='-L$libdir'
8728      hardcode_minus_L=yes
8729      allow_undefined_flag=unsupported
8730      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'
8731      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8732      ;;
8733
8734    osf3*)
8735      if test "$GCC" = yes; then
8736	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8737	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'
8738      else
8739	allow_undefined_flag=' -expect_unresolved \*'
8740	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'
8741      fi
8742      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8743      hardcode_libdir_separator=:
8744      ;;
8745
8746    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8747      if test "$GCC" = yes; then
8748	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8749	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'
8750	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8751      else
8752	allow_undefined_flag=' -expect_unresolved \*'
8753	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'
8754	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8755	$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'
8756
8757	# Both c and cxx compiler support -rpath directly
8758	hardcode_libdir_flag_spec='-rpath $libdir'
8759      fi
8760      hardcode_libdir_separator=:
8761      ;;
8762
8763    solaris*)
8764      no_undefined_flag=' -z text'
8765      if test "$GCC" = yes; then
8766	wlarc='${wl}'
8767	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8768	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8769	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8770      else
8771	wlarc=''
8772	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8773	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8774  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8775      fi
8776      hardcode_libdir_flag_spec='-R$libdir'
8777      hardcode_shlibpath_var=no
8778      case $host_os in
8779      solaris2.[0-5] | solaris2.[0-5].*) ;;
8780      *)
8781	# The compiler driver will combine and reorder linker options,
8782	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8783	# but is careful enough not to reorder.
8784 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8785	if test "$GCC" = yes; then
8786	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8787	else
8788	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8789	fi
8790	;;
8791      esac
8792      link_all_deplibs=yes
8793      ;;
8794
8795    sunos4*)
8796      if test "x$host_vendor" = xsequent; then
8797	# Use $CC to link under sequent, because it throws in some extra .o
8798	# files that make .init and .fini sections work.
8799	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8800      else
8801	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8802      fi
8803      hardcode_libdir_flag_spec='-L$libdir'
8804      hardcode_direct=yes
8805      hardcode_minus_L=yes
8806      hardcode_shlibpath_var=no
8807      ;;
8808
8809    sysv4)
8810      case $host_vendor in
8811	sni)
8812	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8813	  hardcode_direct=yes # is this really true???
8814	;;
8815	siemens)
8816	  ## LD is ld it makes a PLAMLIB
8817	  ## CC just makes a GrossModule.
8818	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8819	  reload_cmds='$CC -r -o $output$reload_objs'
8820	  hardcode_direct=no
8821        ;;
8822	motorola)
8823	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8824	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8825	;;
8826      esac
8827      runpath_var='LD_RUN_PATH'
8828      hardcode_shlibpath_var=no
8829      ;;
8830
8831    sysv4.3*)
8832      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8833      hardcode_shlibpath_var=no
8834      export_dynamic_flag_spec='-Bexport'
8835      ;;
8836
8837    sysv4*MP*)
8838      if test -d /usr/nec; then
8839	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8840	hardcode_shlibpath_var=no
8841	runpath_var=LD_RUN_PATH
8842	hardcode_runpath_var=yes
8843	ld_shlibs=yes
8844      fi
8845      ;;
8846
8847    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8848      no_undefined_flag='${wl}-z,text'
8849      archive_cmds_need_lc=no
8850      hardcode_shlibpath_var=no
8851      runpath_var='LD_RUN_PATH'
8852
8853      if test "$GCC" = yes; then
8854	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8855	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8856      else
8857	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8858	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8859      fi
8860      ;;
8861
8862    sysv5* | sco3.2v5* | sco5v6*)
8863      # Note: We can NOT use -z defs as we might desire, because we do not
8864      # link with -lc, and that would cause any symbols used from libc to
8865      # always be unresolved, which means just about no library would
8866      # ever link correctly.  If we're not using GNU ld we use -z text
8867      # though, which does catch some bad symbols but isn't as heavy-handed
8868      # as -z defs.
8869      no_undefined_flag='${wl}-z,text'
8870      allow_undefined_flag='${wl}-z,nodefs'
8871      archive_cmds_need_lc=no
8872      hardcode_shlibpath_var=no
8873      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8874      hardcode_libdir_separator=':'
8875      link_all_deplibs=yes
8876      export_dynamic_flag_spec='${wl}-Bexport'
8877      runpath_var='LD_RUN_PATH'
8878
8879      if test "$GCC" = yes; then
8880	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8881	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8882      else
8883	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8884	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8885      fi
8886      ;;
8887
8888    uts4*)
8889      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8890      hardcode_libdir_flag_spec='-L$libdir'
8891      hardcode_shlibpath_var=no
8892      ;;
8893
8894    *)
8895      ld_shlibs=no
8896      ;;
8897    esac
8898  fi
8899
8900{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8901echo "${ECHO_T}$ld_shlibs" >&6; }
8902test "$ld_shlibs" = no && can_build_shared=no
8903
8904#
8905# Do we need to explicitly link libc?
8906#
8907case "x$archive_cmds_need_lc" in
8908x|xyes)
8909  # Assume -lc should be added
8910  archive_cmds_need_lc=yes
8911
8912  if test "$enable_shared" = yes && test "$GCC" = yes; then
8913    case $archive_cmds in
8914    *'~'*)
8915      # FIXME: we may have to deal with multi-command sequences.
8916      ;;
8917    '$CC '*)
8918      # Test whether the compiler implicitly links with -lc since on some
8919      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8920      # to ld, don't add -lc before -lgcc.
8921      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8922echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8923      $rm conftest*
8924      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8925
8926      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8927  (eval $ac_compile) 2>&5
8928  ac_status=$?
8929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930  (exit $ac_status); } 2>conftest.err; then
8931        soname=conftest
8932        lib=conftest
8933        libobjs=conftest.$ac_objext
8934        deplibs=
8935        wl=$lt_prog_compiler_wl
8936	pic_flag=$lt_prog_compiler_pic
8937        compiler_flags=-v
8938        linker_flags=-v
8939        verstring=
8940        output_objdir=.
8941        libname=conftest
8942        lt_save_allow_undefined_flag=$allow_undefined_flag
8943        allow_undefined_flag=
8944        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8945  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8946  ac_status=$?
8947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948  (exit $ac_status); }
8949        then
8950	  archive_cmds_need_lc=no
8951        else
8952	  archive_cmds_need_lc=yes
8953        fi
8954        allow_undefined_flag=$lt_save_allow_undefined_flag
8955      else
8956        cat conftest.err 1>&5
8957      fi
8958      $rm conftest*
8959      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8960echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8961      ;;
8962    esac
8963  fi
8964  ;;
8965esac
8966
8967{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8968echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8969library_names_spec=
8970libname_spec='lib$name'
8971soname_spec=
8972shrext_cmds=".so"
8973postinstall_cmds=
8974postuninstall_cmds=
8975finish_cmds=
8976finish_eval=
8977shlibpath_var=
8978shlibpath_overrides_runpath=unknown
8979version_type=none
8980dynamic_linker="$host_os ld.so"
8981sys_lib_dlsearch_path_spec="/lib /usr/lib"
8982
8983if test "$GCC" = yes; then
8984  case $host_os in
8985    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8986    *) lt_awk_arg="/^libraries:/" ;;
8987  esac
8988  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8989  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8990    # if the path contains ";" then we assume it to be the separator
8991    # otherwise default to the standard path separator (i.e. ":") - it is
8992    # assumed that no part of a normal pathname contains ";" but that should
8993    # okay in the real world where ";" in dirpaths is itself problematic.
8994    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8995  else
8996    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8997  fi
8998  # Ok, now we have the path, separated by spaces, we can step through it
8999  # and add multilib dir if necessary.
9000  lt_tmp_lt_search_path_spec=
9001  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9002  for lt_sys_path in $lt_search_path_spec; do
9003    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9004      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9005    else
9006      test -d "$lt_sys_path" && \
9007	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9008    fi
9009  done
9010  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9011BEGIN {RS=" "; FS="/|\n";} {
9012  lt_foo="";
9013  lt_count=0;
9014  for (lt_i = NF; lt_i > 0; lt_i--) {
9015    if ($lt_i != "" && $lt_i != ".") {
9016      if ($lt_i == "..") {
9017        lt_count++;
9018      } else {
9019        if (lt_count == 0) {
9020          lt_foo="/" $lt_i lt_foo;
9021        } else {
9022          lt_count--;
9023        }
9024      }
9025    }
9026  }
9027  if (lt_foo != "") { lt_freq[lt_foo]++; }
9028  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9029}'`
9030  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9031else
9032  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9033fi
9034need_lib_prefix=unknown
9035hardcode_into_libs=no
9036
9037# when you set need_version to no, make sure it does not cause -set_version
9038# flags to be left without arguments
9039need_version=unknown
9040
9041case $host_os in
9042aix3*)
9043  version_type=linux
9044  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9045  shlibpath_var=LIBPATH
9046
9047  # AIX 3 has no versioning support, so we append a major version to the name.
9048  soname_spec='${libname}${release}${shared_ext}$major'
9049  ;;
9050
9051aix[4-9]*)
9052  version_type=linux
9053  need_lib_prefix=no
9054  need_version=no
9055  hardcode_into_libs=yes
9056  if test "$host_cpu" = ia64; then
9057    # AIX 5 supports IA64
9058    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9059    shlibpath_var=LD_LIBRARY_PATH
9060  else
9061    # With GCC up to 2.95.x, collect2 would create an import file
9062    # for dependence libraries.  The import file would start with
9063    # the line `#! .'.  This would cause the generated library to
9064    # depend on `.', always an invalid library.  This was fixed in
9065    # development snapshots of GCC prior to 3.0.
9066    case $host_os in
9067      aix4 | aix4.[01] | aix4.[01].*)
9068      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9069	   echo ' yes '
9070	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9071	:
9072      else
9073	can_build_shared=no
9074      fi
9075      ;;
9076    esac
9077    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9078    # soname into executable. Probably we can add versioning support to
9079    # collect2, so additional links can be useful in future.
9080    if test "$aix_use_runtimelinking" = yes; then
9081      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9082      # instead of lib<name>.a to let people know that these are not
9083      # typical AIX shared libraries.
9084      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085    else
9086      # We preserve .a as extension for shared libraries through AIX4.2
9087      # and later when we are not doing run time linking.
9088      library_names_spec='${libname}${release}.a $libname.a'
9089      soname_spec='${libname}${release}${shared_ext}$major'
9090    fi
9091    shlibpath_var=LIBPATH
9092  fi
9093  ;;
9094
9095amigaos*)
9096  library_names_spec='$libname.ixlibrary $libname.a'
9097  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9098  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'
9099  ;;
9100
9101beos*)
9102  library_names_spec='${libname}${shared_ext}'
9103  dynamic_linker="$host_os ld.so"
9104  shlibpath_var=LIBRARY_PATH
9105  ;;
9106
9107bsdi[45]*)
9108  version_type=linux
9109  need_version=no
9110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111  soname_spec='${libname}${release}${shared_ext}$major'
9112  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9113  shlibpath_var=LD_LIBRARY_PATH
9114  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9115  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9116  # the default ld.so.conf also contains /usr/contrib/lib and
9117  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9118  # libtool to hard-code these into programs
9119  ;;
9120
9121cygwin* | mingw* | pw32*)
9122  version_type=windows
9123  shrext_cmds=".dll"
9124  need_version=no
9125  need_lib_prefix=no
9126
9127  case $GCC,$host_os in
9128  yes,cygwin* | yes,mingw* | yes,pw32*)
9129    library_names_spec='$libname.dll.a'
9130    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9131    postinstall_cmds='base_file=`basename \${file}`~
9132      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9133      dldir=$destdir/`dirname \$dlpath`~
9134      test -d \$dldir || mkdir -p \$dldir~
9135      $install_prog $dir/$dlname \$dldir/$dlname~
9136      chmod a+x \$dldir/$dlname'
9137    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9138      dlpath=$dir/\$dldll~
9139       $rm \$dlpath'
9140    shlibpath_overrides_runpath=yes
9141
9142    case $host_os in
9143    cygwin*)
9144      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9145      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9146      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9147      ;;
9148    mingw*)
9149      # MinGW DLLs use traditional 'lib' prefix
9150      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9151      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9152      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9153        # It is most probably a Windows format PATH printed by
9154        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9155        # path with ; separators, and with drive letters. We can handle the
9156        # drive letters (cygwin fileutils understands them), so leave them,
9157        # especially as we might pass files found there to a mingw objdump,
9158        # which wouldn't understand a cygwinified path. Ahh.
9159        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9160      else
9161        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9162      fi
9163      ;;
9164    pw32*)
9165      # pw32 DLLs use 'pw' prefix rather than 'lib'
9166      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9167      ;;
9168    esac
9169    ;;
9170
9171  *)
9172    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9173    ;;
9174  esac
9175  dynamic_linker='Win32 ld.exe'
9176  # FIXME: first we should search . and the directory the executable is in
9177  shlibpath_var=PATH
9178  ;;
9179
9180darwin* | rhapsody*)
9181  dynamic_linker="$host_os dyld"
9182  version_type=darwin
9183  need_lib_prefix=no
9184  need_version=no
9185  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9186  soname_spec='${libname}${release}${major}$shared_ext'
9187  shlibpath_overrides_runpath=yes
9188  shlibpath_var=DYLD_LIBRARY_PATH
9189  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9190
9191  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9192  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9193  ;;
9194
9195dgux*)
9196  version_type=linux
9197  need_lib_prefix=no
9198  need_version=no
9199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9200  soname_spec='${libname}${release}${shared_ext}$major'
9201  shlibpath_var=LD_LIBRARY_PATH
9202  ;;
9203
9204freebsd1*)
9205  dynamic_linker=no
9206  ;;
9207
9208freebsd* | dragonfly*)
9209  # DragonFly does not have aout.  When/if they implement a new
9210  # versioning mechanism, adjust this.
9211  if test -x /usr/bin/objformat; then
9212    objformat=`/usr/bin/objformat`
9213  else
9214    case $host_os in
9215    freebsd[123]*) objformat=aout ;;
9216    *) objformat=elf ;;
9217    esac
9218  fi
9219  version_type=freebsd-$objformat
9220  case $version_type in
9221    freebsd-elf*)
9222      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9223      need_version=no
9224      need_lib_prefix=no
9225      ;;
9226    freebsd-*)
9227      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9228      need_version=yes
9229      ;;
9230  esac
9231  shlibpath_var=LD_LIBRARY_PATH
9232  case $host_os in
9233  freebsd2*)
9234    shlibpath_overrides_runpath=yes
9235    ;;
9236  freebsd3.[01]* | freebsdelf3.[01]*)
9237    shlibpath_overrides_runpath=yes
9238    hardcode_into_libs=yes
9239    ;;
9240  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9241  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9242    shlibpath_overrides_runpath=no
9243    hardcode_into_libs=yes
9244    ;;
9245  *) # from 4.6 on, and DragonFly
9246    shlibpath_overrides_runpath=yes
9247    hardcode_into_libs=yes
9248    ;;
9249  esac
9250  ;;
9251
9252gnu*)
9253  version_type=linux
9254  need_lib_prefix=no
9255  need_version=no
9256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9257  soname_spec='${libname}${release}${shared_ext}$major'
9258  shlibpath_var=LD_LIBRARY_PATH
9259  hardcode_into_libs=yes
9260  ;;
9261
9262hpux9* | hpux10* | hpux11*)
9263  # Give a soname corresponding to the major version so that dld.sl refuses to
9264  # link against other versions.
9265  version_type=sunos
9266  need_lib_prefix=no
9267  need_version=no
9268  case $host_cpu in
9269  ia64*)
9270    shrext_cmds='.so'
9271    hardcode_into_libs=yes
9272    dynamic_linker="$host_os dld.so"
9273    shlibpath_var=LD_LIBRARY_PATH
9274    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9275    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276    soname_spec='${libname}${release}${shared_ext}$major'
9277    if test "X$HPUX_IA64_MODE" = X32; then
9278      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9279    else
9280      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9281    fi
9282    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9283    ;;
9284   hppa*64*)
9285     shrext_cmds='.sl'
9286     hardcode_into_libs=yes
9287     dynamic_linker="$host_os dld.sl"
9288     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9289     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9290     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9291     soname_spec='${libname}${release}${shared_ext}$major'
9292     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9293     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9294     ;;
9295   *)
9296    shrext_cmds='.sl'
9297    dynamic_linker="$host_os dld.sl"
9298    shlibpath_var=SHLIB_PATH
9299    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9300    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9301    soname_spec='${libname}${release}${shared_ext}$major'
9302    ;;
9303  esac
9304  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9305  postinstall_cmds='chmod 555 $lib'
9306  ;;
9307
9308interix[3-9]*)
9309  version_type=linux
9310  need_lib_prefix=no
9311  need_version=no
9312  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9313  soname_spec='${libname}${release}${shared_ext}$major'
9314  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9315  shlibpath_var=LD_LIBRARY_PATH
9316  shlibpath_overrides_runpath=no
9317  hardcode_into_libs=yes
9318  ;;
9319
9320irix5* | irix6* | nonstopux*)
9321  case $host_os in
9322    nonstopux*) version_type=nonstopux ;;
9323    *)
9324	if test "$lt_cv_prog_gnu_ld" = yes; then
9325		version_type=linux
9326	else
9327		version_type=irix
9328	fi ;;
9329  esac
9330  need_lib_prefix=no
9331  need_version=no
9332  soname_spec='${libname}${release}${shared_ext}$major'
9333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9334  case $host_os in
9335  irix5* | nonstopux*)
9336    libsuff= shlibsuff=
9337    ;;
9338  *)
9339    case $LD in # libtool.m4 will add one of these switches to LD
9340    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9341      libsuff= shlibsuff= libmagic=32-bit;;
9342    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9343      libsuff=32 shlibsuff=N32 libmagic=N32;;
9344    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9345      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9346    *) libsuff= shlibsuff= libmagic=never-match;;
9347    esac
9348    ;;
9349  esac
9350  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9351  shlibpath_overrides_runpath=no
9352  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9353  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9354  hardcode_into_libs=yes
9355  ;;
9356
9357# No shared lib support for Linux oldld, aout, or coff.
9358linux*oldld* | linux*aout* | linux*coff*)
9359  dynamic_linker=no
9360  ;;
9361
9362# This must be Linux ELF.
9363linux* | k*bsd*-gnu)
9364  version_type=linux
9365  need_lib_prefix=no
9366  need_version=no
9367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368  soname_spec='${libname}${release}${shared_ext}$major'
9369  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9370  shlibpath_var=LD_LIBRARY_PATH
9371  shlibpath_overrides_runpath=no
9372  # This implies no fast_install, which is unacceptable.
9373  # Some rework will be needed to allow for fast_install
9374  # before this can be enabled.
9375  hardcode_into_libs=yes
9376
9377  # Append ld.so.conf contents to the search path
9378  if test -f /etc/ld.so.conf; then
9379    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' ' '`
9380    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9381  fi
9382
9383  # We used to test for /lib/ld.so.1 and disable shared libraries on
9384  # powerpc, because MkLinux only supported shared libraries with the
9385  # GNU dynamic linker.  Since this was broken with cross compilers,
9386  # most powerpc-linux boxes support dynamic linking these days and
9387  # people can always --disable-shared, the test was removed, and we
9388  # assume the GNU/Linux dynamic linker is in use.
9389  dynamic_linker='GNU/Linux ld.so'
9390  ;;
9391
9392netbsdelf*-gnu)
9393  version_type=linux
9394  need_lib_prefix=no
9395  need_version=no
9396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9397  soname_spec='${libname}${release}${shared_ext}$major'
9398  shlibpath_var=LD_LIBRARY_PATH
9399  shlibpath_overrides_runpath=no
9400  hardcode_into_libs=yes
9401  dynamic_linker='NetBSD ld.elf_so'
9402  ;;
9403
9404netbsd*)
9405  version_type=sunos
9406  need_lib_prefix=no
9407  need_version=no
9408  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9409    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9410    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9411    dynamic_linker='NetBSD (a.out) ld.so'
9412  else
9413    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9414    soname_spec='${libname}${release}${shared_ext}$major'
9415    dynamic_linker='NetBSD ld.elf_so'
9416  fi
9417  shlibpath_var=LD_LIBRARY_PATH
9418  shlibpath_overrides_runpath=yes
9419  hardcode_into_libs=yes
9420  ;;
9421
9422newsos6)
9423  version_type=linux
9424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9425  shlibpath_var=LD_LIBRARY_PATH
9426  shlibpath_overrides_runpath=yes
9427  ;;
9428
9429nto-qnx*)
9430  version_type=linux
9431  need_lib_prefix=no
9432  need_version=no
9433  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434  soname_spec='${libname}${release}${shared_ext}$major'
9435  shlibpath_var=LD_LIBRARY_PATH
9436  shlibpath_overrides_runpath=yes
9437  ;;
9438
9439openbsd*)
9440  version_type=sunos
9441  sys_lib_dlsearch_path_spec="/usr/lib"
9442  need_lib_prefix=no
9443  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9444  case $host_os in
9445    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9446    *)                         need_version=no  ;;
9447  esac
9448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9449  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9450  shlibpath_var=LD_LIBRARY_PATH
9451  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9452    case $host_os in
9453      openbsd2.[89] | openbsd2.[89].*)
9454	shlibpath_overrides_runpath=no
9455	;;
9456      *)
9457	shlibpath_overrides_runpath=yes
9458	;;
9459      esac
9460  else
9461    shlibpath_overrides_runpath=yes
9462  fi
9463  ;;
9464
9465os2*)
9466  libname_spec='$name'
9467  shrext_cmds=".dll"
9468  need_lib_prefix=no
9469  library_names_spec='$libname${shared_ext} $libname.a'
9470  dynamic_linker='OS/2 ld.exe'
9471  shlibpath_var=LIBPATH
9472  ;;
9473
9474osf3* | osf4* | osf5*)
9475  version_type=osf
9476  need_lib_prefix=no
9477  need_version=no
9478  soname_spec='${libname}${release}${shared_ext}$major'
9479  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9480  shlibpath_var=LD_LIBRARY_PATH
9481  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9482  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9483  ;;
9484
9485rdos*)
9486  dynamic_linker=no
9487  ;;
9488
9489solaris*)
9490  version_type=linux
9491  need_lib_prefix=no
9492  need_version=no
9493  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494  soname_spec='${libname}${release}${shared_ext}$major'
9495  shlibpath_var=LD_LIBRARY_PATH
9496  shlibpath_overrides_runpath=yes
9497  hardcode_into_libs=yes
9498  # ldd complains unless libraries are executable
9499  postinstall_cmds='chmod +x $lib'
9500  ;;
9501
9502sunos4*)
9503  version_type=sunos
9504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9505  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9506  shlibpath_var=LD_LIBRARY_PATH
9507  shlibpath_overrides_runpath=yes
9508  if test "$with_gnu_ld" = yes; then
9509    need_lib_prefix=no
9510  fi
9511  need_version=yes
9512  ;;
9513
9514sysv4 | sysv4.3*)
9515  version_type=linux
9516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517  soname_spec='${libname}${release}${shared_ext}$major'
9518  shlibpath_var=LD_LIBRARY_PATH
9519  case $host_vendor in
9520    sni)
9521      shlibpath_overrides_runpath=no
9522      need_lib_prefix=no
9523      export_dynamic_flag_spec='${wl}-Blargedynsym'
9524      runpath_var=LD_RUN_PATH
9525      ;;
9526    siemens)
9527      need_lib_prefix=no
9528      ;;
9529    motorola)
9530      need_lib_prefix=no
9531      need_version=no
9532      shlibpath_overrides_runpath=no
9533      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9534      ;;
9535  esac
9536  ;;
9537
9538sysv4*MP*)
9539  if test -d /usr/nec ;then
9540    version_type=linux
9541    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9542    soname_spec='$libname${shared_ext}.$major'
9543    shlibpath_var=LD_LIBRARY_PATH
9544  fi
9545  ;;
9546
9547sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9548  version_type=freebsd-elf
9549  need_lib_prefix=no
9550  need_version=no
9551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9552  soname_spec='${libname}${release}${shared_ext}$major'
9553  shlibpath_var=LD_LIBRARY_PATH
9554  hardcode_into_libs=yes
9555  if test "$with_gnu_ld" = yes; then
9556    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9557    shlibpath_overrides_runpath=no
9558  else
9559    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9560    shlibpath_overrides_runpath=yes
9561    case $host_os in
9562      sco3.2v5*)
9563        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9564	;;
9565    esac
9566  fi
9567  sys_lib_dlsearch_path_spec='/usr/lib'
9568  ;;
9569
9570uts4*)
9571  version_type=linux
9572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573  soname_spec='${libname}${release}${shared_ext}$major'
9574  shlibpath_var=LD_LIBRARY_PATH
9575  ;;
9576
9577*)
9578  dynamic_linker=no
9579  ;;
9580esac
9581{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9582echo "${ECHO_T}$dynamic_linker" >&6; }
9583test "$dynamic_linker" = no && can_build_shared=no
9584
9585if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9586  echo $ECHO_N "(cached) $ECHO_C" >&6
9587else
9588  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9589fi
9590
9591sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9592if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9593  echo $ECHO_N "(cached) $ECHO_C" >&6
9594else
9595  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9596fi
9597
9598sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9599
9600variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9601if test "$GCC" = yes; then
9602  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9603fi
9604
9605{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9606echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9607hardcode_action=
9608if test -n "$hardcode_libdir_flag_spec" || \
9609   test -n "$runpath_var" || \
9610   test "X$hardcode_automatic" = "Xyes" ; then
9611
9612  # We can hardcode non-existant directories.
9613  if test "$hardcode_direct" != no &&
9614     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9615     # have to relink, otherwise we might link with an installed library
9616     # when we should be linking with a yet-to-be-installed one
9617     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9618     test "$hardcode_minus_L" != no; then
9619    # Linking always hardcodes the temporary library directory.
9620    hardcode_action=relink
9621  else
9622    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9623    hardcode_action=immediate
9624  fi
9625else
9626  # We cannot hardcode anything, or else we can only hardcode existing
9627  # directories.
9628  hardcode_action=unsupported
9629fi
9630{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9631echo "${ECHO_T}$hardcode_action" >&6; }
9632
9633if test "$hardcode_action" = relink; then
9634  # Fast installation is not supported
9635  enable_fast_install=no
9636elif test "$shlibpath_overrides_runpath" = yes ||
9637     test "$enable_shared" = no; then
9638  # Fast installation is not necessary
9639  enable_fast_install=needless
9640fi
9641
9642striplib=
9643old_striplib=
9644{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9645echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9646if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9647  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9648  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9649  { echo "$as_me:$LINENO: result: yes" >&5
9650echo "${ECHO_T}yes" >&6; }
9651else
9652# FIXME - insert some real tests, host_os isn't really good enough
9653  case $host_os in
9654   darwin*)
9655       if test -n "$STRIP" ; then
9656         striplib="$STRIP -x"
9657         old_striplib="$STRIP -S"
9658         { echo "$as_me:$LINENO: result: yes" >&5
9659echo "${ECHO_T}yes" >&6; }
9660       else
9661  { echo "$as_me:$LINENO: result: no" >&5
9662echo "${ECHO_T}no" >&6; }
9663fi
9664       ;;
9665   *)
9666  { echo "$as_me:$LINENO: result: no" >&5
9667echo "${ECHO_T}no" >&6; }
9668    ;;
9669  esac
9670fi
9671
9672if test "x$enable_dlopen" != xyes; then
9673  enable_dlopen=unknown
9674  enable_dlopen_self=unknown
9675  enable_dlopen_self_static=unknown
9676else
9677  lt_cv_dlopen=no
9678  lt_cv_dlopen_libs=
9679
9680  case $host_os in
9681  beos*)
9682    lt_cv_dlopen="load_add_on"
9683    lt_cv_dlopen_libs=
9684    lt_cv_dlopen_self=yes
9685    ;;
9686
9687  mingw* | pw32*)
9688    lt_cv_dlopen="LoadLibrary"
9689    lt_cv_dlopen_libs=
9690   ;;
9691
9692  cygwin*)
9693    lt_cv_dlopen="dlopen"
9694    lt_cv_dlopen_libs=
9695   ;;
9696
9697  darwin*)
9698  # if libdl is installed we need to link against it
9699    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9700echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9701if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9702  echo $ECHO_N "(cached) $ECHO_C" >&6
9703else
9704  ac_check_lib_save_LIBS=$LIBS
9705LIBS="-ldl  $LIBS"
9706cat >conftest.$ac_ext <<_ACEOF
9707/* confdefs.h.  */
9708_ACEOF
9709cat confdefs.h >>conftest.$ac_ext
9710cat >>conftest.$ac_ext <<_ACEOF
9711/* end confdefs.h.  */
9712
9713/* Override any GCC internal prototype to avoid an error.
9714   Use char because int might match the return type of a GCC
9715   builtin and then its argument prototype would still apply.  */
9716#ifdef __cplusplus
9717extern "C"
9718#endif
9719char dlopen ();
9720int
9721main ()
9722{
9723return dlopen ();
9724  ;
9725  return 0;
9726}
9727_ACEOF
9728rm -f conftest.$ac_objext conftest$ac_exeext
9729if { (ac_try="$ac_link"
9730case "(($ac_try" in
9731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732  *) ac_try_echo=$ac_try;;
9733esac
9734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735  (eval "$ac_link") 2>conftest.er1
9736  ac_status=$?
9737  grep -v '^ *+' conftest.er1 >conftest.err
9738  rm -f conftest.er1
9739  cat conftest.err >&5
9740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741  (exit $ac_status); } && {
9742	 test -z "$ac_c_werror_flag" ||
9743	 test ! -s conftest.err
9744       } && test -s conftest$ac_exeext &&
9745       $as_test_x conftest$ac_exeext; then
9746  ac_cv_lib_dl_dlopen=yes
9747else
9748  echo "$as_me: failed program was:" >&5
9749sed 's/^/| /' conftest.$ac_ext >&5
9750
9751	ac_cv_lib_dl_dlopen=no
9752fi
9753
9754rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9755      conftest$ac_exeext conftest.$ac_ext
9756LIBS=$ac_check_lib_save_LIBS
9757fi
9758{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9759echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9760if test $ac_cv_lib_dl_dlopen = yes; then
9761  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9762else
9763
9764    lt_cv_dlopen="dyld"
9765    lt_cv_dlopen_libs=
9766    lt_cv_dlopen_self=yes
9767
9768fi
9769
9770   ;;
9771
9772  *)
9773    { echo "$as_me:$LINENO: checking for shl_load" >&5
9774echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9775if test "${ac_cv_func_shl_load+set}" = set; then
9776  echo $ECHO_N "(cached) $ECHO_C" >&6
9777else
9778  cat >conftest.$ac_ext <<_ACEOF
9779/* confdefs.h.  */
9780_ACEOF
9781cat confdefs.h >>conftest.$ac_ext
9782cat >>conftest.$ac_ext <<_ACEOF
9783/* end confdefs.h.  */
9784/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9785   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9786#define shl_load innocuous_shl_load
9787
9788/* System header to define __stub macros and hopefully few prototypes,
9789    which can conflict with char shl_load (); below.
9790    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9791    <limits.h> exists even on freestanding compilers.  */
9792
9793#ifdef __STDC__
9794# include <limits.h>
9795#else
9796# include <assert.h>
9797#endif
9798
9799#undef shl_load
9800
9801/* Override any GCC internal prototype to avoid an error.
9802   Use char because int might match the return type of a GCC
9803   builtin and then its argument prototype would still apply.  */
9804#ifdef __cplusplus
9805extern "C"
9806#endif
9807char shl_load ();
9808/* The GNU C library defines this for functions which it implements
9809    to always fail with ENOSYS.  Some functions are actually named
9810    something starting with __ and the normal name is an alias.  */
9811#if defined __stub_shl_load || defined __stub___shl_load
9812choke me
9813#endif
9814
9815int
9816main ()
9817{
9818return shl_load ();
9819  ;
9820  return 0;
9821}
9822_ACEOF
9823rm -f conftest.$ac_objext conftest$ac_exeext
9824if { (ac_try="$ac_link"
9825case "(($ac_try" in
9826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827  *) ac_try_echo=$ac_try;;
9828esac
9829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830  (eval "$ac_link") 2>conftest.er1
9831  ac_status=$?
9832  grep -v '^ *+' conftest.er1 >conftest.err
9833  rm -f conftest.er1
9834  cat conftest.err >&5
9835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836  (exit $ac_status); } && {
9837	 test -z "$ac_c_werror_flag" ||
9838	 test ! -s conftest.err
9839       } && test -s conftest$ac_exeext &&
9840       $as_test_x conftest$ac_exeext; then
9841  ac_cv_func_shl_load=yes
9842else
9843  echo "$as_me: failed program was:" >&5
9844sed 's/^/| /' conftest.$ac_ext >&5
9845
9846	ac_cv_func_shl_load=no
9847fi
9848
9849rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9850      conftest$ac_exeext conftest.$ac_ext
9851fi
9852{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9853echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9854if test $ac_cv_func_shl_load = yes; then
9855  lt_cv_dlopen="shl_load"
9856else
9857  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9858echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9859if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9860  echo $ECHO_N "(cached) $ECHO_C" >&6
9861else
9862  ac_check_lib_save_LIBS=$LIBS
9863LIBS="-ldld  $LIBS"
9864cat >conftest.$ac_ext <<_ACEOF
9865/* confdefs.h.  */
9866_ACEOF
9867cat confdefs.h >>conftest.$ac_ext
9868cat >>conftest.$ac_ext <<_ACEOF
9869/* end confdefs.h.  */
9870
9871/* Override any GCC internal prototype to avoid an error.
9872   Use char because int might match the return type of a GCC
9873   builtin and then its argument prototype would still apply.  */
9874#ifdef __cplusplus
9875extern "C"
9876#endif
9877char shl_load ();
9878int
9879main ()
9880{
9881return shl_load ();
9882  ;
9883  return 0;
9884}
9885_ACEOF
9886rm -f conftest.$ac_objext conftest$ac_exeext
9887if { (ac_try="$ac_link"
9888case "(($ac_try" in
9889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890  *) ac_try_echo=$ac_try;;
9891esac
9892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893  (eval "$ac_link") 2>conftest.er1
9894  ac_status=$?
9895  grep -v '^ *+' conftest.er1 >conftest.err
9896  rm -f conftest.er1
9897  cat conftest.err >&5
9898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899  (exit $ac_status); } && {
9900	 test -z "$ac_c_werror_flag" ||
9901	 test ! -s conftest.err
9902       } && test -s conftest$ac_exeext &&
9903       $as_test_x conftest$ac_exeext; then
9904  ac_cv_lib_dld_shl_load=yes
9905else
9906  echo "$as_me: failed program was:" >&5
9907sed 's/^/| /' conftest.$ac_ext >&5
9908
9909	ac_cv_lib_dld_shl_load=no
9910fi
9911
9912rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9913      conftest$ac_exeext conftest.$ac_ext
9914LIBS=$ac_check_lib_save_LIBS
9915fi
9916{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9917echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9918if test $ac_cv_lib_dld_shl_load = yes; then
9919  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9920else
9921  { echo "$as_me:$LINENO: checking for dlopen" >&5
9922echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9923if test "${ac_cv_func_dlopen+set}" = set; then
9924  echo $ECHO_N "(cached) $ECHO_C" >&6
9925else
9926  cat >conftest.$ac_ext <<_ACEOF
9927/* confdefs.h.  */
9928_ACEOF
9929cat confdefs.h >>conftest.$ac_ext
9930cat >>conftest.$ac_ext <<_ACEOF
9931/* end confdefs.h.  */
9932/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9933   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9934#define dlopen innocuous_dlopen
9935
9936/* System header to define __stub macros and hopefully few prototypes,
9937    which can conflict with char dlopen (); below.
9938    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9939    <limits.h> exists even on freestanding compilers.  */
9940
9941#ifdef __STDC__
9942# include <limits.h>
9943#else
9944# include <assert.h>
9945#endif
9946
9947#undef dlopen
9948
9949/* Override any GCC internal prototype to avoid an error.
9950   Use char because int might match the return type of a GCC
9951   builtin and then its argument prototype would still apply.  */
9952#ifdef __cplusplus
9953extern "C"
9954#endif
9955char dlopen ();
9956/* The GNU C library defines this for functions which it implements
9957    to always fail with ENOSYS.  Some functions are actually named
9958    something starting with __ and the normal name is an alias.  */
9959#if defined __stub_dlopen || defined __stub___dlopen
9960choke me
9961#endif
9962
9963int
9964main ()
9965{
9966return dlopen ();
9967  ;
9968  return 0;
9969}
9970_ACEOF
9971rm -f conftest.$ac_objext conftest$ac_exeext
9972if { (ac_try="$ac_link"
9973case "(($ac_try" in
9974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975  *) ac_try_echo=$ac_try;;
9976esac
9977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978  (eval "$ac_link") 2>conftest.er1
9979  ac_status=$?
9980  grep -v '^ *+' conftest.er1 >conftest.err
9981  rm -f conftest.er1
9982  cat conftest.err >&5
9983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984  (exit $ac_status); } && {
9985	 test -z "$ac_c_werror_flag" ||
9986	 test ! -s conftest.err
9987       } && test -s conftest$ac_exeext &&
9988       $as_test_x conftest$ac_exeext; then
9989  ac_cv_func_dlopen=yes
9990else
9991  echo "$as_me: failed program was:" >&5
9992sed 's/^/| /' conftest.$ac_ext >&5
9993
9994	ac_cv_func_dlopen=no
9995fi
9996
9997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9998      conftest$ac_exeext conftest.$ac_ext
9999fi
10000{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10001echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10002if test $ac_cv_func_dlopen = yes; then
10003  lt_cv_dlopen="dlopen"
10004else
10005  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10006echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10007if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10008  echo $ECHO_N "(cached) $ECHO_C" >&6
10009else
10010  ac_check_lib_save_LIBS=$LIBS
10011LIBS="-ldl  $LIBS"
10012cat >conftest.$ac_ext <<_ACEOF
10013/* confdefs.h.  */
10014_ACEOF
10015cat confdefs.h >>conftest.$ac_ext
10016cat >>conftest.$ac_ext <<_ACEOF
10017/* end confdefs.h.  */
10018
10019/* Override any GCC internal prototype to avoid an error.
10020   Use char because int might match the return type of a GCC
10021   builtin and then its argument prototype would still apply.  */
10022#ifdef __cplusplus
10023extern "C"
10024#endif
10025char dlopen ();
10026int
10027main ()
10028{
10029return dlopen ();
10030  ;
10031  return 0;
10032}
10033_ACEOF
10034rm -f conftest.$ac_objext conftest$ac_exeext
10035if { (ac_try="$ac_link"
10036case "(($ac_try" in
10037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038  *) ac_try_echo=$ac_try;;
10039esac
10040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041  (eval "$ac_link") 2>conftest.er1
10042  ac_status=$?
10043  grep -v '^ *+' conftest.er1 >conftest.err
10044  rm -f conftest.er1
10045  cat conftest.err >&5
10046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047  (exit $ac_status); } && {
10048	 test -z "$ac_c_werror_flag" ||
10049	 test ! -s conftest.err
10050       } && test -s conftest$ac_exeext &&
10051       $as_test_x conftest$ac_exeext; then
10052  ac_cv_lib_dl_dlopen=yes
10053else
10054  echo "$as_me: failed program was:" >&5
10055sed 's/^/| /' conftest.$ac_ext >&5
10056
10057	ac_cv_lib_dl_dlopen=no
10058fi
10059
10060rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10061      conftest$ac_exeext conftest.$ac_ext
10062LIBS=$ac_check_lib_save_LIBS
10063fi
10064{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10065echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10066if test $ac_cv_lib_dl_dlopen = yes; then
10067  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10068else
10069  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10070echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10071if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10072  echo $ECHO_N "(cached) $ECHO_C" >&6
10073else
10074  ac_check_lib_save_LIBS=$LIBS
10075LIBS="-lsvld  $LIBS"
10076cat >conftest.$ac_ext <<_ACEOF
10077/* confdefs.h.  */
10078_ACEOF
10079cat confdefs.h >>conftest.$ac_ext
10080cat >>conftest.$ac_ext <<_ACEOF
10081/* end confdefs.h.  */
10082
10083/* Override any GCC internal prototype to avoid an error.
10084   Use char because int might match the return type of a GCC
10085   builtin and then its argument prototype would still apply.  */
10086#ifdef __cplusplus
10087extern "C"
10088#endif
10089char dlopen ();
10090int
10091main ()
10092{
10093return dlopen ();
10094  ;
10095  return 0;
10096}
10097_ACEOF
10098rm -f conftest.$ac_objext conftest$ac_exeext
10099if { (ac_try="$ac_link"
10100case "(($ac_try" in
10101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102  *) ac_try_echo=$ac_try;;
10103esac
10104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105  (eval "$ac_link") 2>conftest.er1
10106  ac_status=$?
10107  grep -v '^ *+' conftest.er1 >conftest.err
10108  rm -f conftest.er1
10109  cat conftest.err >&5
10110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111  (exit $ac_status); } && {
10112	 test -z "$ac_c_werror_flag" ||
10113	 test ! -s conftest.err
10114       } && test -s conftest$ac_exeext &&
10115       $as_test_x conftest$ac_exeext; then
10116  ac_cv_lib_svld_dlopen=yes
10117else
10118  echo "$as_me: failed program was:" >&5
10119sed 's/^/| /' conftest.$ac_ext >&5
10120
10121	ac_cv_lib_svld_dlopen=no
10122fi
10123
10124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10125      conftest$ac_exeext conftest.$ac_ext
10126LIBS=$ac_check_lib_save_LIBS
10127fi
10128{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10129echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10130if test $ac_cv_lib_svld_dlopen = yes; then
10131  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10132else
10133  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10134echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10135if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10136  echo $ECHO_N "(cached) $ECHO_C" >&6
10137else
10138  ac_check_lib_save_LIBS=$LIBS
10139LIBS="-ldld  $LIBS"
10140cat >conftest.$ac_ext <<_ACEOF
10141/* confdefs.h.  */
10142_ACEOF
10143cat confdefs.h >>conftest.$ac_ext
10144cat >>conftest.$ac_ext <<_ACEOF
10145/* end confdefs.h.  */
10146
10147/* Override any GCC internal prototype to avoid an error.
10148   Use char because int might match the return type of a GCC
10149   builtin and then its argument prototype would still apply.  */
10150#ifdef __cplusplus
10151extern "C"
10152#endif
10153char dld_link ();
10154int
10155main ()
10156{
10157return dld_link ();
10158  ;
10159  return 0;
10160}
10161_ACEOF
10162rm -f conftest.$ac_objext conftest$ac_exeext
10163if { (ac_try="$ac_link"
10164case "(($ac_try" in
10165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166  *) ac_try_echo=$ac_try;;
10167esac
10168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10169  (eval "$ac_link") 2>conftest.er1
10170  ac_status=$?
10171  grep -v '^ *+' conftest.er1 >conftest.err
10172  rm -f conftest.er1
10173  cat conftest.err >&5
10174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175  (exit $ac_status); } && {
10176	 test -z "$ac_c_werror_flag" ||
10177	 test ! -s conftest.err
10178       } && test -s conftest$ac_exeext &&
10179       $as_test_x conftest$ac_exeext; then
10180  ac_cv_lib_dld_dld_link=yes
10181else
10182  echo "$as_me: failed program was:" >&5
10183sed 's/^/| /' conftest.$ac_ext >&5
10184
10185	ac_cv_lib_dld_dld_link=no
10186fi
10187
10188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10189      conftest$ac_exeext conftest.$ac_ext
10190LIBS=$ac_check_lib_save_LIBS
10191fi
10192{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10193echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10194if test $ac_cv_lib_dld_dld_link = yes; then
10195  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10196fi
10197
10198
10199fi
10200
10201
10202fi
10203
10204
10205fi
10206
10207
10208fi
10209
10210
10211fi
10212
10213    ;;
10214  esac
10215
10216  if test "x$lt_cv_dlopen" != xno; then
10217    enable_dlopen=yes
10218  else
10219    enable_dlopen=no
10220  fi
10221
10222  case $lt_cv_dlopen in
10223  dlopen)
10224    save_CPPFLAGS="$CPPFLAGS"
10225    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10226
10227    save_LDFLAGS="$LDFLAGS"
10228    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10229
10230    save_LIBS="$LIBS"
10231    LIBS="$lt_cv_dlopen_libs $LIBS"
10232
10233    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10234echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10235if test "${lt_cv_dlopen_self+set}" = set; then
10236  echo $ECHO_N "(cached) $ECHO_C" >&6
10237else
10238  	  if test "$cross_compiling" = yes; then :
10239  lt_cv_dlopen_self=cross
10240else
10241  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10242  lt_status=$lt_dlunknown
10243  cat > conftest.$ac_ext <<EOF
10244#line 10244 "configure"
10245#include "confdefs.h"
10246
10247#if HAVE_DLFCN_H
10248#include <dlfcn.h>
10249#endif
10250
10251#include <stdio.h>
10252
10253#ifdef RTLD_GLOBAL
10254#  define LT_DLGLOBAL		RTLD_GLOBAL
10255#else
10256#  ifdef DL_GLOBAL
10257#    define LT_DLGLOBAL		DL_GLOBAL
10258#  else
10259#    define LT_DLGLOBAL		0
10260#  endif
10261#endif
10262
10263/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10264   find out it does not work in some platform. */
10265#ifndef LT_DLLAZY_OR_NOW
10266#  ifdef RTLD_LAZY
10267#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10268#  else
10269#    ifdef DL_LAZY
10270#      define LT_DLLAZY_OR_NOW		DL_LAZY
10271#    else
10272#      ifdef RTLD_NOW
10273#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10274#      else
10275#        ifdef DL_NOW
10276#          define LT_DLLAZY_OR_NOW	DL_NOW
10277#        else
10278#          define LT_DLLAZY_OR_NOW	0
10279#        endif
10280#      endif
10281#    endif
10282#  endif
10283#endif
10284
10285#ifdef __cplusplus
10286extern "C" void exit (int);
10287#endif
10288
10289void fnord() { int i=42;}
10290int main ()
10291{
10292  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10293  int status = $lt_dlunknown;
10294
10295  if (self)
10296    {
10297      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10298      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10299      /* dlclose (self); */
10300    }
10301  else
10302    puts (dlerror ());
10303
10304    exit (status);
10305}
10306EOF
10307  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10308  (eval $ac_link) 2>&5
10309  ac_status=$?
10310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10312    (./conftest; exit; ) >&5 2>/dev/null
10313    lt_status=$?
10314    case x$lt_status in
10315      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10316      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10317      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10318    esac
10319  else :
10320    # compilation failed
10321    lt_cv_dlopen_self=no
10322  fi
10323fi
10324rm -fr conftest*
10325
10326
10327fi
10328{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10329echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10330
10331    if test "x$lt_cv_dlopen_self" = xyes; then
10332      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10333      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10334echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10335if test "${lt_cv_dlopen_self_static+set}" = set; then
10336  echo $ECHO_N "(cached) $ECHO_C" >&6
10337else
10338  	  if test "$cross_compiling" = yes; then :
10339  lt_cv_dlopen_self_static=cross
10340else
10341  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10342  lt_status=$lt_dlunknown
10343  cat > conftest.$ac_ext <<EOF
10344#line 10344 "configure"
10345#include "confdefs.h"
10346
10347#if HAVE_DLFCN_H
10348#include <dlfcn.h>
10349#endif
10350
10351#include <stdio.h>
10352
10353#ifdef RTLD_GLOBAL
10354#  define LT_DLGLOBAL		RTLD_GLOBAL
10355#else
10356#  ifdef DL_GLOBAL
10357#    define LT_DLGLOBAL		DL_GLOBAL
10358#  else
10359#    define LT_DLGLOBAL		0
10360#  endif
10361#endif
10362
10363/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10364   find out it does not work in some platform. */
10365#ifndef LT_DLLAZY_OR_NOW
10366#  ifdef RTLD_LAZY
10367#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10368#  else
10369#    ifdef DL_LAZY
10370#      define LT_DLLAZY_OR_NOW		DL_LAZY
10371#    else
10372#      ifdef RTLD_NOW
10373#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10374#      else
10375#        ifdef DL_NOW
10376#          define LT_DLLAZY_OR_NOW	DL_NOW
10377#        else
10378#          define LT_DLLAZY_OR_NOW	0
10379#        endif
10380#      endif
10381#    endif
10382#  endif
10383#endif
10384
10385#ifdef __cplusplus
10386extern "C" void exit (int);
10387#endif
10388
10389void fnord() { int i=42;}
10390int main ()
10391{
10392  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10393  int status = $lt_dlunknown;
10394
10395  if (self)
10396    {
10397      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10398      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10399      /* dlclose (self); */
10400    }
10401  else
10402    puts (dlerror ());
10403
10404    exit (status);
10405}
10406EOF
10407  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10408  (eval $ac_link) 2>&5
10409  ac_status=$?
10410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10412    (./conftest; exit; ) >&5 2>/dev/null
10413    lt_status=$?
10414    case x$lt_status in
10415      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10416      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10417      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10418    esac
10419  else :
10420    # compilation failed
10421    lt_cv_dlopen_self_static=no
10422  fi
10423fi
10424rm -fr conftest*
10425
10426
10427fi
10428{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10429echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10430    fi
10431
10432    CPPFLAGS="$save_CPPFLAGS"
10433    LDFLAGS="$save_LDFLAGS"
10434    LIBS="$save_LIBS"
10435    ;;
10436  esac
10437
10438  case $lt_cv_dlopen_self in
10439  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10440  *) enable_dlopen_self=unknown ;;
10441  esac
10442
10443  case $lt_cv_dlopen_self_static in
10444  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10445  *) enable_dlopen_self_static=unknown ;;
10446  esac
10447fi
10448
10449
10450# Report which library types will actually be built
10451{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10452echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10453{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10454echo "${ECHO_T}$can_build_shared" >&6; }
10455
10456{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10457echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10458test "$can_build_shared" = "no" && enable_shared=no
10459
10460# On AIX, shared libraries and static libraries use the same namespace, and
10461# are all built from PIC.
10462case $host_os in
10463aix3*)
10464  test "$enable_shared" = yes && enable_static=no
10465  if test -n "$RANLIB"; then
10466    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10467    postinstall_cmds='$RANLIB $lib'
10468  fi
10469  ;;
10470
10471aix[4-9]*)
10472  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10473    test "$enable_shared" = yes && enable_static=no
10474  fi
10475    ;;
10476esac
10477{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10478echo "${ECHO_T}$enable_shared" >&6; }
10479
10480{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10481echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10482# Make sure either enable_shared or enable_static is yes.
10483test "$enable_shared" = yes || enable_static=yes
10484{ echo "$as_me:$LINENO: result: $enable_static" >&5
10485echo "${ECHO_T}$enable_static" >&6; }
10486
10487# The else clause should only fire when bootstrapping the
10488# libtool distribution, otherwise you forgot to ship ltmain.sh
10489# with your package, and you will get complaints that there are
10490# no rules to generate ltmain.sh.
10491if test -f "$ltmain"; then
10492  # See if we are running on zsh, and set the options which allow our commands through
10493  # without removal of \ escapes.
10494  if test -n "${ZSH_VERSION+set}" ; then
10495    setopt NO_GLOB_SUBST
10496  fi
10497  # Now quote all the things that may contain metacharacters while being
10498  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10499  # variables and quote the copies for generation of the libtool script.
10500  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10501    SED SHELL STRIP \
10502    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10503    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10504    deplibs_check_method reload_flag reload_cmds need_locks \
10505    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10506    lt_cv_sys_global_symbol_to_c_name_address \
10507    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10508    old_postinstall_cmds old_postuninstall_cmds \
10509    compiler \
10510    CC \
10511    LD \
10512    lt_prog_compiler_wl \
10513    lt_prog_compiler_pic \
10514    lt_prog_compiler_static \
10515    lt_prog_compiler_no_builtin_flag \
10516    export_dynamic_flag_spec \
10517    thread_safe_flag_spec \
10518    whole_archive_flag_spec \
10519    enable_shared_with_static_runtimes \
10520    old_archive_cmds \
10521    old_archive_from_new_cmds \
10522    predep_objects \
10523    postdep_objects \
10524    predeps \
10525    postdeps \
10526    compiler_lib_search_path \
10527    compiler_lib_search_dirs \
10528    archive_cmds \
10529    archive_expsym_cmds \
10530    postinstall_cmds \
10531    postuninstall_cmds \
10532    old_archive_from_expsyms_cmds \
10533    allow_undefined_flag \
10534    no_undefined_flag \
10535    export_symbols_cmds \
10536    hardcode_libdir_flag_spec \
10537    hardcode_libdir_flag_spec_ld \
10538    hardcode_libdir_separator \
10539    hardcode_automatic \
10540    module_cmds \
10541    module_expsym_cmds \
10542    lt_cv_prog_compiler_c_o \
10543    fix_srcfile_path \
10544    exclude_expsyms \
10545    include_expsyms; do
10546
10547    case $var in
10548    old_archive_cmds | \
10549    old_archive_from_new_cmds | \
10550    archive_cmds | \
10551    archive_expsym_cmds | \
10552    module_cmds | \
10553    module_expsym_cmds | \
10554    old_archive_from_expsyms_cmds | \
10555    export_symbols_cmds | \
10556    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10557    postinstall_cmds | postuninstall_cmds | \
10558    old_postinstall_cmds | old_postuninstall_cmds | \
10559    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10560      # Double-quote double-evaled strings.
10561      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10562      ;;
10563    *)
10564      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10565      ;;
10566    esac
10567  done
10568
10569  case $lt_echo in
10570  *'\$0 --fallback-echo"')
10571    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10572    ;;
10573  esac
10574
10575cfgfile="${ofile}T"
10576  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10577  $rm -f "$cfgfile"
10578  { echo "$as_me:$LINENO: creating $ofile" >&5
10579echo "$as_me: creating $ofile" >&6;}
10580
10581  cat <<__EOF__ >> "$cfgfile"
10582#! $SHELL
10583
10584# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10585# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10586# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10587#
10588# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10589# Free Software Foundation, Inc.
10590#
10591# This file is part of GNU Libtool:
10592# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10593#
10594# This program is free software; you can redistribute it and/or modify
10595# it under the terms of the GNU General Public License as published by
10596# the Free Software Foundation; either version 2 of the License, or
10597# (at your option) any later version.
10598#
10599# This program is distributed in the hope that it will be useful, but
10600# WITHOUT ANY WARRANTY; without even the implied warranty of
10601# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10602# General Public License for more details.
10603#
10604# You should have received a copy of the GNU General Public License
10605# along with this program; if not, write to the Free Software
10606# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10607#
10608# As a special exception to the GNU General Public License, if you
10609# distribute this file as part of a program that contains a
10610# configuration script generated by Autoconf, you may include it under
10611# the same distribution terms that you use for the rest of that program.
10612
10613# A sed program that does not truncate output.
10614SED=$lt_SED
10615
10616# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10617Xsed="$SED -e 1s/^X//"
10618
10619# The HP-UX ksh and POSIX shell print the target directory to stdout
10620# if CDPATH is set.
10621(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10622
10623# The names of the tagged configurations supported by this script.
10624available_tags=
10625
10626# ### BEGIN LIBTOOL CONFIG
10627
10628# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10629
10630# Shell to use when invoking shell scripts.
10631SHELL=$lt_SHELL
10632
10633# Whether or not to build shared libraries.
10634build_libtool_libs=$enable_shared
10635
10636# Whether or not to build static libraries.
10637build_old_libs=$enable_static
10638
10639# Whether or not to add -lc for building shared libraries.
10640build_libtool_need_lc=$archive_cmds_need_lc
10641
10642# Whether or not to disallow shared libs when runtime libs are static
10643allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10644
10645# Whether or not to optimize for fast installation.
10646fast_install=$enable_fast_install
10647
10648# The host system.
10649host_alias=$host_alias
10650host=$host
10651host_os=$host_os
10652
10653# The build system.
10654build_alias=$build_alias
10655build=$build
10656build_os=$build_os
10657
10658# An echo program that does not interpret backslashes.
10659echo=$lt_echo
10660
10661# The archiver.
10662AR=$lt_AR
10663AR_FLAGS=$lt_AR_FLAGS
10664
10665# A C compiler.
10666LTCC=$lt_LTCC
10667
10668# LTCC compiler flags.
10669LTCFLAGS=$lt_LTCFLAGS
10670
10671# A language-specific compiler.
10672CC=$lt_compiler
10673
10674# Is the compiler the GNU C compiler?
10675with_gcc=$GCC
10676
10677# An ERE matcher.
10678EGREP=$lt_EGREP
10679
10680# The linker used to build libraries.
10681LD=$lt_LD
10682
10683# Whether we need hard or soft links.
10684LN_S=$lt_LN_S
10685
10686# A BSD-compatible nm program.
10687NM=$lt_NM
10688
10689# A symbol stripping program
10690STRIP=$lt_STRIP
10691
10692# Used to examine libraries when file_magic_cmd begins "file"
10693MAGIC_CMD=$MAGIC_CMD
10694
10695# Used on cygwin: DLL creation program.
10696DLLTOOL="$DLLTOOL"
10697
10698# Used on cygwin: object dumper.
10699OBJDUMP="$OBJDUMP"
10700
10701# Used on cygwin: assembler.
10702AS="$AS"
10703
10704# The name of the directory that contains temporary libtool files.
10705objdir=$objdir
10706
10707# How to create reloadable object files.
10708reload_flag=$lt_reload_flag
10709reload_cmds=$lt_reload_cmds
10710
10711# How to pass a linker flag through the compiler.
10712wl=$lt_lt_prog_compiler_wl
10713
10714# Object file suffix (normally "o").
10715objext="$ac_objext"
10716
10717# Old archive suffix (normally "a").
10718libext="$libext"
10719
10720# Shared library suffix (normally ".so").
10721shrext_cmds='$shrext_cmds'
10722
10723# Executable file suffix (normally "").
10724exeext="$exeext"
10725
10726# Additional compiler flags for building library objects.
10727pic_flag=$lt_lt_prog_compiler_pic
10728pic_mode=$pic_mode
10729
10730# What is the maximum length of a command?
10731max_cmd_len=$lt_cv_sys_max_cmd_len
10732
10733# Does compiler simultaneously support -c and -o options?
10734compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10735
10736# Must we lock files when doing compilation?
10737need_locks=$lt_need_locks
10738
10739# Do we need the lib prefix for modules?
10740need_lib_prefix=$need_lib_prefix
10741
10742# Do we need a version for libraries?
10743need_version=$need_version
10744
10745# Whether dlopen is supported.
10746dlopen_support=$enable_dlopen
10747
10748# Whether dlopen of programs is supported.
10749dlopen_self=$enable_dlopen_self
10750
10751# Whether dlopen of statically linked programs is supported.
10752dlopen_self_static=$enable_dlopen_self_static
10753
10754# Compiler flag to prevent dynamic linking.
10755link_static_flag=$lt_lt_prog_compiler_static
10756
10757# Compiler flag to turn off builtin functions.
10758no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10759
10760# Compiler flag to allow reflexive dlopens.
10761export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10762
10763# Compiler flag to generate shared objects directly from archives.
10764whole_archive_flag_spec=$lt_whole_archive_flag_spec
10765
10766# Compiler flag to generate thread-safe objects.
10767thread_safe_flag_spec=$lt_thread_safe_flag_spec
10768
10769# Library versioning type.
10770version_type=$version_type
10771
10772# Format of library name prefix.
10773libname_spec=$lt_libname_spec
10774
10775# List of archive names.  First name is the real one, the rest are links.
10776# The last name is the one that the linker finds with -lNAME.
10777library_names_spec=$lt_library_names_spec
10778
10779# The coded name of the library, if different from the real name.
10780soname_spec=$lt_soname_spec
10781
10782# Commands used to build and install an old-style archive.
10783RANLIB=$lt_RANLIB
10784old_archive_cmds=$lt_old_archive_cmds
10785old_postinstall_cmds=$lt_old_postinstall_cmds
10786old_postuninstall_cmds=$lt_old_postuninstall_cmds
10787
10788# Create an old-style archive from a shared archive.
10789old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10790
10791# Create a temporary old-style archive to link instead of a shared archive.
10792old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10793
10794# Commands used to build and install a shared archive.
10795archive_cmds=$lt_archive_cmds
10796archive_expsym_cmds=$lt_archive_expsym_cmds
10797postinstall_cmds=$lt_postinstall_cmds
10798postuninstall_cmds=$lt_postuninstall_cmds
10799
10800# Commands used to build a loadable module (assumed same as above if empty)
10801module_cmds=$lt_module_cmds
10802module_expsym_cmds=$lt_module_expsym_cmds
10803
10804# Commands to strip libraries.
10805old_striplib=$lt_old_striplib
10806striplib=$lt_striplib
10807
10808# Dependencies to place before the objects being linked to create a
10809# shared library.
10810predep_objects=$lt_predep_objects
10811
10812# Dependencies to place after the objects being linked to create a
10813# shared library.
10814postdep_objects=$lt_postdep_objects
10815
10816# Dependencies to place before the objects being linked to create a
10817# shared library.
10818predeps=$lt_predeps
10819
10820# Dependencies to place after the objects being linked to create a
10821# shared library.
10822postdeps=$lt_postdeps
10823
10824# The directories searched by this compiler when creating a shared
10825# library
10826compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10827
10828# The library search path used internally by the compiler when linking
10829# a shared library.
10830compiler_lib_search_path=$lt_compiler_lib_search_path
10831
10832# Method to check whether dependent libraries are shared objects.
10833deplibs_check_method=$lt_deplibs_check_method
10834
10835# Command to use when deplibs_check_method == file_magic.
10836file_magic_cmd=$lt_file_magic_cmd
10837
10838# Flag that allows shared libraries with undefined symbols to be built.
10839allow_undefined_flag=$lt_allow_undefined_flag
10840
10841# Flag that forces no undefined symbols.
10842no_undefined_flag=$lt_no_undefined_flag
10843
10844# Commands used to finish a libtool library installation in a directory.
10845finish_cmds=$lt_finish_cmds
10846
10847# Same as above, but a single script fragment to be evaled but not shown.
10848finish_eval=$lt_finish_eval
10849
10850# Take the output of nm and produce a listing of raw symbols and C names.
10851global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10852
10853# Transform the output of nm in a proper C declaration
10854global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10855
10856# Transform the output of nm in a C name address pair
10857global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10858
10859# This is the shared library runtime path variable.
10860runpath_var=$runpath_var
10861
10862# This is the shared library path variable.
10863shlibpath_var=$shlibpath_var
10864
10865# Is shlibpath searched before the hard-coded library search path?
10866shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10867
10868# How to hardcode a shared library path into an executable.
10869hardcode_action=$hardcode_action
10870
10871# Whether we should hardcode library paths into libraries.
10872hardcode_into_libs=$hardcode_into_libs
10873
10874# Flag to hardcode \$libdir into a binary during linking.
10875# This must work even if \$libdir does not exist.
10876hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10877
10878# If ld is used when linking, flag to hardcode \$libdir into
10879# a binary during linking. This must work even if \$libdir does
10880# not exist.
10881hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10882
10883# Whether we need a single -rpath flag with a separated argument.
10884hardcode_libdir_separator=$lt_hardcode_libdir_separator
10885
10886# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10887# resulting binary.
10888hardcode_direct=$hardcode_direct
10889
10890# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10891# resulting binary.
10892hardcode_minus_L=$hardcode_minus_L
10893
10894# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10895# the resulting binary.
10896hardcode_shlibpath_var=$hardcode_shlibpath_var
10897
10898# Set to yes if building a shared library automatically hardcodes DIR into the library
10899# and all subsequent libraries and executables linked against it.
10900hardcode_automatic=$hardcode_automatic
10901
10902# Variables whose values should be saved in libtool wrapper scripts and
10903# restored at relink time.
10904variables_saved_for_relink="$variables_saved_for_relink"
10905
10906# Whether libtool must link a program against all its dependency libraries.
10907link_all_deplibs=$link_all_deplibs
10908
10909# Compile-time system search path for libraries
10910sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10911
10912# Run-time system search path for libraries
10913sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10914
10915# Fix the shell variable \$srcfile for the compiler.
10916fix_srcfile_path=$lt_fix_srcfile_path
10917
10918# Set to yes if exported symbols are required.
10919always_export_symbols=$always_export_symbols
10920
10921# The commands to list exported symbols.
10922export_symbols_cmds=$lt_export_symbols_cmds
10923
10924# The commands to extract the exported symbol list from a shared archive.
10925extract_expsyms_cmds=$lt_extract_expsyms_cmds
10926
10927# Symbols that should not be listed in the preloaded symbols.
10928exclude_expsyms=$lt_exclude_expsyms
10929
10930# Symbols that must always be exported.
10931include_expsyms=$lt_include_expsyms
10932
10933# ### END LIBTOOL CONFIG
10934
10935__EOF__
10936
10937
10938  case $host_os in
10939  aix3*)
10940    cat <<\EOF >> "$cfgfile"
10941
10942# AIX sometimes has problems with the GCC collect2 program.  For some
10943# reason, if we set the COLLECT_NAMES environment variable, the problems
10944# vanish in a puff of smoke.
10945if test "X${COLLECT_NAMES+set}" != Xset; then
10946  COLLECT_NAMES=
10947  export COLLECT_NAMES
10948fi
10949EOF
10950    ;;
10951  esac
10952
10953  # We use sed instead of cat because bash on DJGPP gets confused if
10954  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10955  # text mode, it properly converts lines to CR/LF.  This bash problem
10956  # is reportedly fixed, but why not run on old versions too?
10957  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10958
10959  mv -f "$cfgfile" "$ofile" || \
10960    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10961  chmod +x "$ofile"
10962
10963else
10964  # If there is no Makefile yet, we rely on a make rule to execute
10965  # `config.status --recheck' to rerun these tests and create the
10966  # libtool script then.
10967  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10968  if test -f "$ltmain_in"; then
10969    test -f Makefile && make "$ltmain"
10970  fi
10971fi
10972
10973
10974ac_ext=c
10975ac_cpp='$CPP $CPPFLAGS'
10976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10978ac_compiler_gnu=$ac_cv_c_compiler_gnu
10979
10980CC="$lt_save_CC"
10981
10982
10983# Check whether --with-tags was given.
10984if test "${with_tags+set}" = set; then
10985  withval=$with_tags; tagnames="$withval"
10986fi
10987
10988
10989if test -f "$ltmain" && test -n "$tagnames"; then
10990  if test ! -f "${ofile}"; then
10991    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10992echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10993  fi
10994
10995  if test -z "$LTCC"; then
10996    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10997    if test -z "$LTCC"; then
10998      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10999echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11000    else
11001      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11002echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11003    fi
11004  fi
11005  if test -z "$LTCFLAGS"; then
11006    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11007  fi
11008
11009  # Extract list of available tagged configurations in $ofile.
11010  # Note that this assumes the entire list is on one line.
11011  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11012
11013  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11014  for tagname in $tagnames; do
11015    IFS="$lt_save_ifs"
11016    # Check whether tagname contains only valid characters
11017    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11018    "") ;;
11019    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11020echo "$as_me: error: invalid tag name: $tagname" >&2;}
11021   { (exit 1); exit 1; }; }
11022	;;
11023    esac
11024
11025    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11026    then
11027      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11028echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11029   { (exit 1); exit 1; }; }
11030    fi
11031
11032    # Update the list of available tags.
11033    if test -n "$tagname"; then
11034      echo appending configuration tag \"$tagname\" to $ofile
11035
11036      case $tagname in
11037      CXX)
11038	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11039	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11040	    (test "X$CXX" != "Xg++"))) ; then
11041	  ac_ext=cpp
11042ac_cpp='$CXXCPP $CPPFLAGS'
11043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11046
11047
11048
11049
11050archive_cmds_need_lc_CXX=no
11051allow_undefined_flag_CXX=
11052always_export_symbols_CXX=no
11053archive_expsym_cmds_CXX=
11054export_dynamic_flag_spec_CXX=
11055hardcode_direct_CXX=no
11056hardcode_libdir_flag_spec_CXX=
11057hardcode_libdir_flag_spec_ld_CXX=
11058hardcode_libdir_separator_CXX=
11059hardcode_minus_L_CXX=no
11060hardcode_shlibpath_var_CXX=unsupported
11061hardcode_automatic_CXX=no
11062module_cmds_CXX=
11063module_expsym_cmds_CXX=
11064link_all_deplibs_CXX=unknown
11065old_archive_cmds_CXX=$old_archive_cmds
11066no_undefined_flag_CXX=
11067whole_archive_flag_spec_CXX=
11068enable_shared_with_static_runtimes_CXX=no
11069
11070# Dependencies to place before and after the object being linked:
11071predep_objects_CXX=
11072postdep_objects_CXX=
11073predeps_CXX=
11074postdeps_CXX=
11075compiler_lib_search_path_CXX=
11076compiler_lib_search_dirs_CXX=
11077
11078# Source file extension for C++ test sources.
11079ac_ext=cpp
11080
11081# Object file extension for compiled C++ test sources.
11082objext=o
11083objext_CXX=$objext
11084
11085# Code to be used in simple compile tests
11086lt_simple_compile_test_code="int some_variable = 0;"
11087
11088# Code to be used in simple link tests
11089lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11090
11091# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11092
11093# If no C compiler was specified, use CC.
11094LTCC=${LTCC-"$CC"}
11095
11096# If no C compiler flags were specified, use CFLAGS.
11097LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11098
11099# Allow CC to be a program name with arguments.
11100compiler=$CC
11101
11102
11103# save warnings/boilerplate of simple test code
11104ac_outfile=conftest.$ac_objext
11105echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11106eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11107_lt_compiler_boilerplate=`cat conftest.err`
11108$rm conftest*
11109
11110ac_outfile=conftest.$ac_objext
11111echo "$lt_simple_link_test_code" >conftest.$ac_ext
11112eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11113_lt_linker_boilerplate=`cat conftest.err`
11114$rm -r conftest*
11115
11116
11117# Allow CC to be a program name with arguments.
11118lt_save_CC=$CC
11119lt_save_LD=$LD
11120lt_save_GCC=$GCC
11121GCC=$GXX
11122lt_save_with_gnu_ld=$with_gnu_ld
11123lt_save_path_LD=$lt_cv_path_LD
11124if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11125  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11126else
11127  $as_unset lt_cv_prog_gnu_ld
11128fi
11129if test -n "${lt_cv_path_LDCXX+set}"; then
11130  lt_cv_path_LD=$lt_cv_path_LDCXX
11131else
11132  $as_unset lt_cv_path_LD
11133fi
11134test -z "${LDCXX+set}" || LD=$LDCXX
11135CC=${CXX-"c++"}
11136compiler=$CC
11137compiler_CXX=$CC
11138for cc_temp in $compiler""; do
11139  case $cc_temp in
11140    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11141    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11142    \-*) ;;
11143    *) break;;
11144  esac
11145done
11146cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11147
11148
11149# We don't want -fno-exception wen compiling C++ code, so set the
11150# no_builtin_flag separately
11151if test "$GXX" = yes; then
11152  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11153else
11154  lt_prog_compiler_no_builtin_flag_CXX=
11155fi
11156
11157if test "$GXX" = yes; then
11158  # Set up default GNU C++ configuration
11159
11160
11161# Check whether --with-gnu-ld was given.
11162if test "${with_gnu_ld+set}" = set; then
11163  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11164else
11165  with_gnu_ld=no
11166fi
11167
11168ac_prog=ld
11169if test "$GCC" = yes; then
11170  # Check if gcc -print-prog-name=ld gives a path.
11171  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11172echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11173  case $host in
11174  *-*-mingw*)
11175    # gcc leaves a trailing carriage return which upsets mingw
11176    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11177  *)
11178    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11179  esac
11180  case $ac_prog in
11181    # Accept absolute paths.
11182    [\\/]* | ?:[\\/]*)
11183      re_direlt='/[^/][^/]*/\.\./'
11184      # Canonicalize the pathname of ld
11185      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11186      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11187	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11188      done
11189      test -z "$LD" && LD="$ac_prog"
11190      ;;
11191  "")
11192    # If it fails, then pretend we aren't using GCC.
11193    ac_prog=ld
11194    ;;
11195  *)
11196    # If it is relative, then search for the first ld in PATH.
11197    with_gnu_ld=unknown
11198    ;;
11199  esac
11200elif test "$with_gnu_ld" = yes; then
11201  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11202echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11203else
11204  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11205echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11206fi
11207if test "${lt_cv_path_LD+set}" = set; then
11208  echo $ECHO_N "(cached) $ECHO_C" >&6
11209else
11210  if test -z "$LD"; then
11211  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11212  for ac_dir in $PATH; do
11213    IFS="$lt_save_ifs"
11214    test -z "$ac_dir" && ac_dir=.
11215    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11216      lt_cv_path_LD="$ac_dir/$ac_prog"
11217      # Check to see if the program is GNU ld.  I'd rather use --version,
11218      # but apparently some variants of GNU ld only accept -v.
11219      # Break only if it was the GNU/non-GNU ld that we prefer.
11220      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11221      *GNU* | *'with BFD'*)
11222	test "$with_gnu_ld" != no && break
11223	;;
11224      *)
11225	test "$with_gnu_ld" != yes && break
11226	;;
11227      esac
11228    fi
11229  done
11230  IFS="$lt_save_ifs"
11231else
11232  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11233fi
11234fi
11235
11236LD="$lt_cv_path_LD"
11237if test -n "$LD"; then
11238  { echo "$as_me:$LINENO: result: $LD" >&5
11239echo "${ECHO_T}$LD" >&6; }
11240else
11241  { echo "$as_me:$LINENO: result: no" >&5
11242echo "${ECHO_T}no" >&6; }
11243fi
11244test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11245echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11246   { (exit 1); exit 1; }; }
11247{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11248echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11249if test "${lt_cv_prog_gnu_ld+set}" = set; then
11250  echo $ECHO_N "(cached) $ECHO_C" >&6
11251else
11252  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11253case `$LD -v 2>&1 </dev/null` in
11254*GNU* | *'with BFD'*)
11255  lt_cv_prog_gnu_ld=yes
11256  ;;
11257*)
11258  lt_cv_prog_gnu_ld=no
11259  ;;
11260esac
11261fi
11262{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11263echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11264with_gnu_ld=$lt_cv_prog_gnu_ld
11265
11266
11267
11268  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11269  # archiving commands below assume that GNU ld is being used.
11270  if test "$with_gnu_ld" = yes; then
11271    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11272    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'
11273
11274    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11275    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11276
11277    # If archive_cmds runs LD, not CC, wlarc should be empty
11278    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11279    #     investigate it a little bit more. (MM)
11280    wlarc='${wl}'
11281
11282    # ancient GNU ld didn't support --whole-archive et. al.
11283    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11284	grep 'no-whole-archive' > /dev/null; then
11285      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11286    else
11287      whole_archive_flag_spec_CXX=
11288    fi
11289  else
11290    with_gnu_ld=no
11291    wlarc=
11292
11293    # A generic and very simple default shared library creation
11294    # command for GNU C++ for the case where it uses the native
11295    # linker, instead of GNU ld.  If possible, this setting should
11296    # overridden to take advantage of the native linker features on
11297    # the platform it is being used on.
11298    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11299  fi
11300
11301  # Commands to make compiler produce verbose output that lists
11302  # what "hidden" libraries, object files and flags are used when
11303  # linking a shared library.
11304  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11305
11306else
11307  GXX=no
11308  with_gnu_ld=no
11309  wlarc=
11310fi
11311
11312# PORTME: fill in a description of your system's C++ link characteristics
11313{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11314echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11315ld_shlibs_CXX=yes
11316case $host_os in
11317  aix3*)
11318    # FIXME: insert proper C++ library support
11319    ld_shlibs_CXX=no
11320    ;;
11321  aix[4-9]*)
11322    if test "$host_cpu" = ia64; then
11323      # On IA64, the linker does run time linking by default, so we don't
11324      # have to do anything special.
11325      aix_use_runtimelinking=no
11326      exp_sym_flag='-Bexport'
11327      no_entry_flag=""
11328    else
11329      aix_use_runtimelinking=no
11330
11331      # Test if we are trying to use run time linking or normal
11332      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11333      # need to do runtime linking.
11334      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11335	for ld_flag in $LDFLAGS; do
11336	  case $ld_flag in
11337	  *-brtl*)
11338	    aix_use_runtimelinking=yes
11339	    break
11340	    ;;
11341	  esac
11342	done
11343	;;
11344      esac
11345
11346      exp_sym_flag='-bexport'
11347      no_entry_flag='-bnoentry'
11348    fi
11349
11350    # When large executables or shared objects are built, AIX ld can
11351    # have problems creating the table of contents.  If linking a library
11352    # or program results in "error TOC overflow" add -mminimal-toc to
11353    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11354    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11355
11356    archive_cmds_CXX=''
11357    hardcode_direct_CXX=yes
11358    hardcode_libdir_separator_CXX=':'
11359    link_all_deplibs_CXX=yes
11360
11361    if test "$GXX" = yes; then
11362      case $host_os in aix4.[012]|aix4.[012].*)
11363      # We only want to do this on AIX 4.2 and lower, the check
11364      # below for broken collect2 doesn't work under 4.3+
11365	collect2name=`${CC} -print-prog-name=collect2`
11366	if test -f "$collect2name" && \
11367	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11368	then
11369	  # We have reworked collect2
11370	  :
11371	else
11372	  # We have old collect2
11373	  hardcode_direct_CXX=unsupported
11374	  # It fails to find uninstalled libraries when the uninstalled
11375	  # path is not listed in the libpath.  Setting hardcode_minus_L
11376	  # to unsupported forces relinking
11377	  hardcode_minus_L_CXX=yes
11378	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11379	  hardcode_libdir_separator_CXX=
11380	fi
11381	;;
11382      esac
11383      shared_flag='-shared'
11384      if test "$aix_use_runtimelinking" = yes; then
11385	shared_flag="$shared_flag "'${wl}-G'
11386      fi
11387    else
11388      # not using gcc
11389      if test "$host_cpu" = ia64; then
11390	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11391	# chokes on -Wl,-G. The following line is correct:
11392	shared_flag='-G'
11393      else
11394	if test "$aix_use_runtimelinking" = yes; then
11395	  shared_flag='${wl}-G'
11396	else
11397	  shared_flag='${wl}-bM:SRE'
11398	fi
11399      fi
11400    fi
11401
11402    # It seems that -bexpall does not export symbols beginning with
11403    # underscore (_), so it is better to generate a list of symbols to export.
11404    always_export_symbols_CXX=yes
11405    if test "$aix_use_runtimelinking" = yes; then
11406      # Warning - without using the other runtime loading flags (-brtl),
11407      # -berok will link without error, but may produce a broken library.
11408      allow_undefined_flag_CXX='-berok'
11409      # Determine the default libpath from the value encoded in an empty executable.
11410      cat >conftest.$ac_ext <<_ACEOF
11411/* confdefs.h.  */
11412_ACEOF
11413cat confdefs.h >>conftest.$ac_ext
11414cat >>conftest.$ac_ext <<_ACEOF
11415/* end confdefs.h.  */
11416
11417int
11418main ()
11419{
11420
11421  ;
11422  return 0;
11423}
11424_ACEOF
11425rm -f conftest.$ac_objext conftest$ac_exeext
11426if { (ac_try="$ac_link"
11427case "(($ac_try" in
11428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429  *) ac_try_echo=$ac_try;;
11430esac
11431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432  (eval "$ac_link") 2>conftest.er1
11433  ac_status=$?
11434  grep -v '^ *+' conftest.er1 >conftest.err
11435  rm -f conftest.er1
11436  cat conftest.err >&5
11437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438  (exit $ac_status); } && {
11439	 test -z "$ac_cxx_werror_flag" ||
11440	 test ! -s conftest.err
11441       } && test -s conftest$ac_exeext &&
11442       $as_test_x conftest$ac_exeext; then
11443
11444lt_aix_libpath_sed='
11445    /Import File Strings/,/^$/ {
11446	/^0/ {
11447	    s/^0  *\(.*\)$/\1/
11448	    p
11449	}
11450    }'
11451aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11452# Check for a 64-bit object if we didn't find anything.
11453if test -z "$aix_libpath"; then
11454  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11455fi
11456else
11457  echo "$as_me: failed program was:" >&5
11458sed 's/^/| /' conftest.$ac_ext >&5
11459
11460
11461fi
11462
11463rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11464      conftest$ac_exeext conftest.$ac_ext
11465if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11466
11467      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11468
11469      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"
11470     else
11471      if test "$host_cpu" = ia64; then
11472	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11473	allow_undefined_flag_CXX="-z nodefs"
11474	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"
11475      else
11476	# Determine the default libpath from the value encoded in an empty executable.
11477	cat >conftest.$ac_ext <<_ACEOF
11478/* confdefs.h.  */
11479_ACEOF
11480cat confdefs.h >>conftest.$ac_ext
11481cat >>conftest.$ac_ext <<_ACEOF
11482/* end confdefs.h.  */
11483
11484int
11485main ()
11486{
11487
11488  ;
11489  return 0;
11490}
11491_ACEOF
11492rm -f conftest.$ac_objext conftest$ac_exeext
11493if { (ac_try="$ac_link"
11494case "(($ac_try" in
11495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496  *) ac_try_echo=$ac_try;;
11497esac
11498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11499  (eval "$ac_link") 2>conftest.er1
11500  ac_status=$?
11501  grep -v '^ *+' conftest.er1 >conftest.err
11502  rm -f conftest.er1
11503  cat conftest.err >&5
11504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505  (exit $ac_status); } && {
11506	 test -z "$ac_cxx_werror_flag" ||
11507	 test ! -s conftest.err
11508       } && test -s conftest$ac_exeext &&
11509       $as_test_x conftest$ac_exeext; then
11510
11511lt_aix_libpath_sed='
11512    /Import File Strings/,/^$/ {
11513	/^0/ {
11514	    s/^0  *\(.*\)$/\1/
11515	    p
11516	}
11517    }'
11518aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11519# Check for a 64-bit object if we didn't find anything.
11520if test -z "$aix_libpath"; then
11521  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11522fi
11523else
11524  echo "$as_me: failed program was:" >&5
11525sed 's/^/| /' conftest.$ac_ext >&5
11526
11527
11528fi
11529
11530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11531      conftest$ac_exeext conftest.$ac_ext
11532if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11533
11534	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11535	# Warning - without using the other run time loading flags,
11536	# -berok will link without error, but may produce a broken library.
11537	no_undefined_flag_CXX=' ${wl}-bernotok'
11538	allow_undefined_flag_CXX=' ${wl}-berok'
11539	# Exported symbols can be pulled into shared objects from archives
11540	whole_archive_flag_spec_CXX='$convenience'
11541	archive_cmds_need_lc_CXX=yes
11542	# This is similar to how AIX traditionally builds its shared libraries.
11543	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'
11544      fi
11545    fi
11546    ;;
11547
11548  beos*)
11549    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11550      allow_undefined_flag_CXX=unsupported
11551      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11552      # support --undefined.  This deserves some investigation.  FIXME
11553      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11554    else
11555      ld_shlibs_CXX=no
11556    fi
11557    ;;
11558
11559  chorus*)
11560    case $cc_basename in
11561      *)
11562	# FIXME: insert proper C++ library support
11563	ld_shlibs_CXX=no
11564	;;
11565    esac
11566    ;;
11567
11568  cygwin* | mingw* | pw32*)
11569    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11570    # as there is no search path for DLLs.
11571    hardcode_libdir_flag_spec_CXX='-L$libdir'
11572    allow_undefined_flag_CXX=unsupported
11573    always_export_symbols_CXX=no
11574    enable_shared_with_static_runtimes_CXX=yes
11575
11576    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11577      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'
11578      # If the export-symbols file already is a .def file (1st line
11579      # is EXPORTS), use it as is; otherwise, prepend...
11580      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11581	cp $export_symbols $output_objdir/$soname.def;
11582      else
11583	echo EXPORTS > $output_objdir/$soname.def;
11584	cat $export_symbols >> $output_objdir/$soname.def;
11585      fi~
11586      $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'
11587    else
11588      ld_shlibs_CXX=no
11589    fi
11590  ;;
11591      darwin* | rhapsody*)
11592      archive_cmds_need_lc_CXX=no
11593      hardcode_direct_CXX=no
11594      hardcode_automatic_CXX=yes
11595      hardcode_shlibpath_var_CXX=unsupported
11596      whole_archive_flag_spec_CXX=''
11597      link_all_deplibs_CXX=yes
11598      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11599      if test "$GXX" = yes ; then
11600      output_verbose_link_cmd='echo'
11601      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11602      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11603      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11604      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11605      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11606        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${_lt_dsymutil}"
11607        archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11608      fi
11609      else
11610      case $cc_basename in
11611        xlc*)
11612         output_verbose_link_cmd='echo'
11613          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'
11614          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11615          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11616          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}'
11617          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}'
11618          ;;
11619       *)
11620         ld_shlibs_CXX=no
11621          ;;
11622      esac
11623      fi
11624        ;;
11625
11626  dgux*)
11627    case $cc_basename in
11628      ec++*)
11629	# FIXME: insert proper C++ library support
11630	ld_shlibs_CXX=no
11631	;;
11632      ghcx*)
11633	# Green Hills C++ Compiler
11634	# FIXME: insert proper C++ library support
11635	ld_shlibs_CXX=no
11636	;;
11637      *)
11638	# FIXME: insert proper C++ library support
11639	ld_shlibs_CXX=no
11640	;;
11641    esac
11642    ;;
11643  freebsd[12]*)
11644    # C++ shared libraries reported to be fairly broken before switch to ELF
11645    ld_shlibs_CXX=no
11646    ;;
11647  freebsd-elf*)
11648    archive_cmds_need_lc_CXX=no
11649    ;;
11650  freebsd* | dragonfly*)
11651    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11652    # conventions
11653    ld_shlibs_CXX=yes
11654    ;;
11655  gnu*)
11656    ;;
11657  hpux9*)
11658    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11659    hardcode_libdir_separator_CXX=:
11660    export_dynamic_flag_spec_CXX='${wl}-E'
11661    hardcode_direct_CXX=yes
11662    hardcode_minus_L_CXX=yes # Not in the search PATH,
11663				# but as the default
11664				# location of the library.
11665
11666    case $cc_basename in
11667    CC*)
11668      # FIXME: insert proper C++ library support
11669      ld_shlibs_CXX=no
11670      ;;
11671    aCC*)
11672      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'
11673      # Commands to make compiler produce verbose output that lists
11674      # what "hidden" libraries, object files and flags are used when
11675      # linking a shared library.
11676      #
11677      # There doesn't appear to be a way to prevent this compiler from
11678      # explicitly linking system object files so we need to strip them
11679      # from the output so that they don't get included in the library
11680      # dependencies.
11681      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'
11682      ;;
11683    *)
11684      if test "$GXX" = yes; then
11685        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'
11686      else
11687        # FIXME: insert proper C++ library support
11688        ld_shlibs_CXX=no
11689      fi
11690      ;;
11691    esac
11692    ;;
11693  hpux10*|hpux11*)
11694    if test $with_gnu_ld = no; then
11695      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11696      hardcode_libdir_separator_CXX=:
11697
11698      case $host_cpu in
11699      hppa*64*|ia64*) ;;
11700      *)
11701	export_dynamic_flag_spec_CXX='${wl}-E'
11702        ;;
11703      esac
11704    fi
11705    case $host_cpu in
11706    hppa*64*|ia64*)
11707      hardcode_direct_CXX=no
11708      hardcode_shlibpath_var_CXX=no
11709      ;;
11710    *)
11711      hardcode_direct_CXX=yes
11712      hardcode_minus_L_CXX=yes # Not in the search PATH,
11713					      # but as the default
11714					      # location of the library.
11715      ;;
11716    esac
11717
11718    case $cc_basename in
11719      CC*)
11720	# FIXME: insert proper C++ library support
11721	ld_shlibs_CXX=no
11722	;;
11723      aCC*)
11724	case $host_cpu in
11725	hppa*64*)
11726	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11727	  ;;
11728	ia64*)
11729	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11730	  ;;
11731	*)
11732	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11733	  ;;
11734	esac
11735	# Commands to make compiler produce verbose output that lists
11736	# what "hidden" libraries, object files and flags are used when
11737	# linking a shared library.
11738	#
11739	# There doesn't appear to be a way to prevent this compiler from
11740	# explicitly linking system object files so we need to strip them
11741	# from the output so that they don't get included in the library
11742	# dependencies.
11743	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'
11744	;;
11745      *)
11746	if test "$GXX" = yes; then
11747	  if test $with_gnu_ld = no; then
11748	    case $host_cpu in
11749	    hppa*64*)
11750	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11751	      ;;
11752	    ia64*)
11753	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11754	      ;;
11755	    *)
11756	      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'
11757	      ;;
11758	    esac
11759	  fi
11760	else
11761	  # FIXME: insert proper C++ library support
11762	  ld_shlibs_CXX=no
11763	fi
11764	;;
11765    esac
11766    ;;
11767  interix[3-9]*)
11768    hardcode_direct_CXX=no
11769    hardcode_shlibpath_var_CXX=no
11770    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11771    export_dynamic_flag_spec_CXX='${wl}-E'
11772    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11773    # Instead, shared libraries are loaded at an image base (0x10000000 by
11774    # default) and relocated if they conflict, which is a slow very memory
11775    # consuming and fragmenting process.  To avoid this, we pick a random,
11776    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11777    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11778    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'
11779    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'
11780    ;;
11781  irix5* | irix6*)
11782    case $cc_basename in
11783      CC*)
11784	# SGI C++
11785	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'
11786
11787	# Archives containing C++ object files must be created using
11788	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11789	# necessary to make sure instantiated templates are included
11790	# in the archive.
11791	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11792	;;
11793      *)
11794	if test "$GXX" = yes; then
11795	  if test "$with_gnu_ld" = no; then
11796	    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'
11797	  else
11798	    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'
11799	  fi
11800	fi
11801	link_all_deplibs_CXX=yes
11802	;;
11803    esac
11804    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11805    hardcode_libdir_separator_CXX=:
11806    ;;
11807  linux* | k*bsd*-gnu)
11808    case $cc_basename in
11809      KCC*)
11810	# Kuck and Associates, Inc. (KAI) C++ Compiler
11811
11812	# KCC will only create a shared library if the output file
11813	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11814	# to its proper name (with version) after linking.
11815	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'
11816	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'
11817	# Commands to make compiler produce verbose output that lists
11818	# what "hidden" libraries, object files and flags are used when
11819	# linking a shared library.
11820	#
11821	# There doesn't appear to be a way to prevent this compiler from
11822	# explicitly linking system object files so we need to strip them
11823	# from the output so that they don't get included in the library
11824	# dependencies.
11825	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'
11826
11827	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11828	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11829
11830	# Archives containing C++ object files must be created using
11831	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11832	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11833	;;
11834      icpc*)
11835	# Intel C++
11836	with_gnu_ld=yes
11837	# version 8.0 and above of icpc choke on multiply defined symbols
11838	# if we add $predep_objects and $postdep_objects, however 7.1 and
11839	# earlier do not add the objects themselves.
11840	case `$CC -V 2>&1` in
11841	*"Version 7."*)
11842  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11843  	  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'
11844	  ;;
11845	*)  # Version 8.0 or newer
11846	  tmp_idyn=
11847	  case $host_cpu in
11848	    ia64*) tmp_idyn=' -i_dynamic';;
11849	  esac
11850  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11851	  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'
11852	  ;;
11853	esac
11854	archive_cmds_need_lc_CXX=no
11855	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11856	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11857	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11858	;;
11859      pgCC* | pgcpp*)
11860        # Portland Group C++ compiler
11861	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11862  	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'
11863
11864	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11865	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11866	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'
11867        ;;
11868      cxx*)
11869	# Compaq C++
11870	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11871	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'
11872
11873	runpath_var=LD_RUN_PATH
11874	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11875	hardcode_libdir_separator_CXX=:
11876
11877	# Commands to make compiler produce verbose output that lists
11878	# what "hidden" libraries, object files and flags are used when
11879	# linking a shared library.
11880	#
11881	# There doesn't appear to be a way to prevent this compiler from
11882	# explicitly linking system object files so we need to strip them
11883	# from the output so that they don't get included in the library
11884	# dependencies.
11885	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'
11886	;;
11887      *)
11888	case `$CC -V 2>&1 | sed 5q` in
11889	*Sun\ C*)
11890	  # Sun C++ 5.9
11891	  no_undefined_flag_CXX=' -zdefs'
11892	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11893	  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'
11894	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11895	  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'
11896
11897	  # Not sure whether something based on
11898	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11899	  # would be better.
11900	  output_verbose_link_cmd='echo'
11901
11902	  # Archives containing C++ object files must be created using
11903	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11904	  # necessary to make sure instantiated templates are included
11905	  # in the archive.
11906	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11907	  ;;
11908	esac
11909	;;
11910    esac
11911    ;;
11912  lynxos*)
11913    # FIXME: insert proper C++ library support
11914    ld_shlibs_CXX=no
11915    ;;
11916  m88k*)
11917    # FIXME: insert proper C++ library support
11918    ld_shlibs_CXX=no
11919    ;;
11920  mvs*)
11921    case $cc_basename in
11922      cxx*)
11923	# FIXME: insert proper C++ library support
11924	ld_shlibs_CXX=no
11925	;;
11926      *)
11927	# FIXME: insert proper C++ library support
11928	ld_shlibs_CXX=no
11929	;;
11930    esac
11931    ;;
11932  netbsd* | netbsdelf*-gnu)
11933    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11934      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11935      wlarc=
11936      hardcode_libdir_flag_spec_CXX='-R$libdir'
11937      hardcode_direct_CXX=yes
11938      hardcode_shlibpath_var_CXX=no
11939    fi
11940    # Workaround some broken pre-1.5 toolchains
11941    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11942    ;;
11943  openbsd2*)
11944    # C++ shared libraries are fairly broken
11945    ld_shlibs_CXX=no
11946    ;;
11947  openbsd*)
11948    if test -f /usr/libexec/ld.so; then
11949      hardcode_direct_CXX=yes
11950      hardcode_shlibpath_var_CXX=no
11951      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11952      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11953      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11954	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11955	export_dynamic_flag_spec_CXX='${wl}-E'
11956	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11957      fi
11958      output_verbose_link_cmd='echo'
11959    else
11960      ld_shlibs_CXX=no
11961    fi
11962    ;;
11963  osf3*)
11964    case $cc_basename in
11965      KCC*)
11966	# Kuck and Associates, Inc. (KAI) C++ Compiler
11967
11968	# KCC will only create a shared library if the output file
11969	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11970	# to its proper name (with version) after linking.
11971	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'
11972
11973	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11974	hardcode_libdir_separator_CXX=:
11975
11976	# Archives containing C++ object files must be created using
11977	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11978	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11979
11980	;;
11981      RCC*)
11982	# Rational C++ 2.4.1
11983	# FIXME: insert proper C++ library support
11984	ld_shlibs_CXX=no
11985	;;
11986      cxx*)
11987	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11988	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'
11989
11990	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11991	hardcode_libdir_separator_CXX=:
11992
11993	# Commands to make compiler produce verbose output that lists
11994	# what "hidden" libraries, object files and flags are used when
11995	# linking a shared library.
11996	#
11997	# There doesn't appear to be a way to prevent this compiler from
11998	# explicitly linking system object files so we need to strip them
11999	# from the output so that they don't get included in the library
12000	# dependencies.
12001	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'
12002	;;
12003      *)
12004	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12005	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12006	  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'
12007
12008	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12009	  hardcode_libdir_separator_CXX=:
12010
12011	  # Commands to make compiler produce verbose output that lists
12012	  # what "hidden" libraries, object files and flags are used when
12013	  # linking a shared library.
12014	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12015
12016	else
12017	  # FIXME: insert proper C++ library support
12018	  ld_shlibs_CXX=no
12019	fi
12020	;;
12021    esac
12022    ;;
12023  osf4* | osf5*)
12024    case $cc_basename in
12025      KCC*)
12026	# Kuck and Associates, Inc. (KAI) C++ Compiler
12027
12028	# KCC will only create a shared library if the output file
12029	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12030	# to its proper name (with version) after linking.
12031	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'
12032
12033	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12034	hardcode_libdir_separator_CXX=:
12035
12036	# Archives containing C++ object files must be created using
12037	# the KAI C++ compiler.
12038	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12039	;;
12040      RCC*)
12041	# Rational C++ 2.4.1
12042	# FIXME: insert proper C++ library support
12043	ld_shlibs_CXX=no
12044	;;
12045      cxx*)
12046	allow_undefined_flag_CXX=' -expect_unresolved \*'
12047	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'
12048	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12049	  echo "-hidden">> $lib.exp~
12050	  $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~
12051	  $rm $lib.exp'
12052
12053	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12054	hardcode_libdir_separator_CXX=:
12055
12056	# Commands to make compiler produce verbose output that lists
12057	# what "hidden" libraries, object files and flags are used when
12058	# linking a shared library.
12059	#
12060	# There doesn't appear to be a way to prevent this compiler from
12061	# explicitly linking system object files so we need to strip them
12062	# from the output so that they don't get included in the library
12063	# dependencies.
12064	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'
12065	;;
12066      *)
12067	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12068	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12069	 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'
12070
12071	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12072	  hardcode_libdir_separator_CXX=:
12073
12074	  # Commands to make compiler produce verbose output that lists
12075	  # what "hidden" libraries, object files and flags are used when
12076	  # linking a shared library.
12077	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12078
12079	else
12080	  # FIXME: insert proper C++ library support
12081	  ld_shlibs_CXX=no
12082	fi
12083	;;
12084    esac
12085    ;;
12086  psos*)
12087    # FIXME: insert proper C++ library support
12088    ld_shlibs_CXX=no
12089    ;;
12090  sunos4*)
12091    case $cc_basename in
12092      CC*)
12093	# Sun C++ 4.x
12094	# FIXME: insert proper C++ library support
12095	ld_shlibs_CXX=no
12096	;;
12097      lcc*)
12098	# Lucid
12099	# FIXME: insert proper C++ library support
12100	ld_shlibs_CXX=no
12101	;;
12102      *)
12103	# FIXME: insert proper C++ library support
12104	ld_shlibs_CXX=no
12105	;;
12106    esac
12107    ;;
12108  solaris*)
12109    case $cc_basename in
12110      CC*)
12111	# Sun C++ 4.2, 5.x and Centerline C++
12112        archive_cmds_need_lc_CXX=yes
12113	no_undefined_flag_CXX=' -zdefs'
12114	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12115	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12116	$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'
12117
12118	hardcode_libdir_flag_spec_CXX='-R$libdir'
12119	hardcode_shlibpath_var_CXX=no
12120	case $host_os in
12121	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12122	  *)
12123	    # The compiler driver will combine and reorder linker options,
12124	    # but understands `-z linker_flag'.
12125	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12126	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12127	    ;;
12128	esac
12129	link_all_deplibs_CXX=yes
12130
12131	output_verbose_link_cmd='echo'
12132
12133	# Archives containing C++ object files must be created using
12134	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12135	# necessary to make sure instantiated templates are included
12136	# in the archive.
12137	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12138	;;
12139      gcx*)
12140	# Green Hills C++ Compiler
12141	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12142
12143	# The C++ compiler must be used to create the archive.
12144	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12145	;;
12146      *)
12147	# GNU C++ compiler with Solaris linker
12148	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12149	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12150	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12151	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12152	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12153		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12154
12155	    # Commands to make compiler produce verbose output that lists
12156	    # what "hidden" libraries, object files and flags are used when
12157	    # linking a shared library.
12158	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12159	  else
12160	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12161	    # platform.
12162	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12163	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12164		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12165
12166	    # Commands to make compiler produce verbose output that lists
12167	    # what "hidden" libraries, object files and flags are used when
12168	    # linking a shared library.
12169	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12170	  fi
12171
12172	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12173	  case $host_os in
12174	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12175	  *)
12176	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12177	    ;;
12178	  esac
12179	fi
12180	;;
12181    esac
12182    ;;
12183  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12184    no_undefined_flag_CXX='${wl}-z,text'
12185    archive_cmds_need_lc_CXX=no
12186    hardcode_shlibpath_var_CXX=no
12187    runpath_var='LD_RUN_PATH'
12188
12189    case $cc_basename in
12190      CC*)
12191	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12192	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12193	;;
12194      *)
12195	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12196	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12197	;;
12198    esac
12199    ;;
12200  sysv5* | sco3.2v5* | sco5v6*)
12201    # Note: We can NOT use -z defs as we might desire, because we do not
12202    # link with -lc, and that would cause any symbols used from libc to
12203    # always be unresolved, which means just about no library would
12204    # ever link correctly.  If we're not using GNU ld we use -z text
12205    # though, which does catch some bad symbols but isn't as heavy-handed
12206    # as -z defs.
12207    # For security reasons, it is highly recommended that you always
12208    # use absolute paths for naming shared libraries, and exclude the
12209    # DT_RUNPATH tag from executables and libraries.  But doing so
12210    # requires that you compile everything twice, which is a pain.
12211    # So that behaviour is only enabled if SCOABSPATH is set to a
12212    # non-empty value in the environment.  Most likely only useful for
12213    # creating official distributions of packages.
12214    # This is a hack until libtool officially supports absolute path
12215    # names for shared libraries.
12216    no_undefined_flag_CXX='${wl}-z,text'
12217    allow_undefined_flag_CXX='${wl}-z,nodefs'
12218    archive_cmds_need_lc_CXX=no
12219    hardcode_shlibpath_var_CXX=no
12220    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12221    hardcode_libdir_separator_CXX=':'
12222    link_all_deplibs_CXX=yes
12223    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12224    runpath_var='LD_RUN_PATH'
12225
12226    case $cc_basename in
12227      CC*)
12228	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12229	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12230	;;
12231      *)
12232	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12233	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12234	;;
12235    esac
12236    ;;
12237  tandem*)
12238    case $cc_basename in
12239      NCC*)
12240	# NonStop-UX NCC 3.20
12241	# FIXME: insert proper C++ library support
12242	ld_shlibs_CXX=no
12243	;;
12244      *)
12245	# FIXME: insert proper C++ library support
12246	ld_shlibs_CXX=no
12247	;;
12248    esac
12249    ;;
12250  vxworks*)
12251    # FIXME: insert proper C++ library support
12252    ld_shlibs_CXX=no
12253    ;;
12254  *)
12255    # FIXME: insert proper C++ library support
12256    ld_shlibs_CXX=no
12257    ;;
12258esac
12259{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12260echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12261test "$ld_shlibs_CXX" = no && can_build_shared=no
12262
12263GCC_CXX="$GXX"
12264LD_CXX="$LD"
12265
12266cat > conftest.$ac_ext <<EOF
12267class Foo
12268{
12269public:
12270  Foo (void) { a = 0; }
12271private:
12272  int a;
12273};
12274EOF
12275
12276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12277  (eval $ac_compile) 2>&5
12278  ac_status=$?
12279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280  (exit $ac_status); }; then
12281  # Parse the compiler output and extract the necessary
12282  # objects, libraries and library flags.
12283
12284  # Sentinel used to keep track of whether or not we are before
12285  # the conftest object file.
12286  pre_test_object_deps_done=no
12287
12288  # The `*' in the case matches for architectures that use `case' in
12289  # $output_verbose_cmd can trigger glob expansion during the loop
12290  # eval without this substitution.
12291  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12292
12293  for p in `eval $output_verbose_link_cmd`; do
12294    case $p in
12295
12296    -L* | -R* | -l*)
12297       # Some compilers place space between "-{L,R}" and the path.
12298       # Remove the space.
12299       if test $p = "-L" \
12300	  || test $p = "-R"; then
12301	 prev=$p
12302	 continue
12303       else
12304	 prev=
12305       fi
12306
12307       if test "$pre_test_object_deps_done" = no; then
12308	 case $p in
12309	 -L* | -R*)
12310	   # Internal compiler library paths should come after those
12311	   # provided the user.  The postdeps already come after the
12312	   # user supplied libs so there is no need to process them.
12313	   if test -z "$compiler_lib_search_path_CXX"; then
12314	     compiler_lib_search_path_CXX="${prev}${p}"
12315	   else
12316	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12317	   fi
12318	   ;;
12319	 # The "-l" case would never come before the object being
12320	 # linked, so don't bother handling this case.
12321	 esac
12322       else
12323	 if test -z "$postdeps_CXX"; then
12324	   postdeps_CXX="${prev}${p}"
12325	 else
12326	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12327	 fi
12328       fi
12329       ;;
12330
12331    *.$objext)
12332       # This assumes that the test object file only shows up
12333       # once in the compiler output.
12334       if test "$p" = "conftest.$objext"; then
12335	 pre_test_object_deps_done=yes
12336	 continue
12337       fi
12338
12339       if test "$pre_test_object_deps_done" = no; then
12340	 if test -z "$predep_objects_CXX"; then
12341	   predep_objects_CXX="$p"
12342	 else
12343	   predep_objects_CXX="$predep_objects_CXX $p"
12344	 fi
12345       else
12346	 if test -z "$postdep_objects_CXX"; then
12347	   postdep_objects_CXX="$p"
12348	 else
12349	   postdep_objects_CXX="$postdep_objects_CXX $p"
12350	 fi
12351       fi
12352       ;;
12353
12354    *) ;; # Ignore the rest.
12355
12356    esac
12357  done
12358
12359  # Clean up.
12360  rm -f a.out a.exe
12361else
12362  echo "libtool.m4: error: problem compiling CXX test program"
12363fi
12364
12365$rm -f confest.$objext
12366
12367compiler_lib_search_dirs_CXX=
12368if test -n "$compiler_lib_search_path_CXX"; then
12369  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12370fi
12371
12372# PORTME: override above test on systems where it is broken
12373case $host_os in
12374interix[3-9]*)
12375  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12376  # hack all around it, let's just trust "g++" to DTRT.
12377  predep_objects_CXX=
12378  postdep_objects_CXX=
12379  postdeps_CXX=
12380  ;;
12381
12382linux*)
12383  case `$CC -V 2>&1 | sed 5q` in
12384  *Sun\ C*)
12385    # Sun C++ 5.9
12386    #
12387    # The more standards-conforming stlport4 library is
12388    # incompatible with the Cstd library. Avoid specifying
12389    # it if it's in CXXFLAGS. Ignore libCrun as
12390    # -library=stlport4 depends on it.
12391    case " $CXX $CXXFLAGS " in
12392    *" -library=stlport4 "*)
12393      solaris_use_stlport4=yes
12394      ;;
12395    esac
12396    if test "$solaris_use_stlport4" != yes; then
12397      postdeps_CXX='-library=Cstd -library=Crun'
12398    fi
12399    ;;
12400  esac
12401  ;;
12402
12403solaris*)
12404  case $cc_basename in
12405  CC*)
12406    # The more standards-conforming stlport4 library is
12407    # incompatible with the Cstd library. Avoid specifying
12408    # it if it's in CXXFLAGS. Ignore libCrun as
12409    # -library=stlport4 depends on it.
12410    case " $CXX $CXXFLAGS " in
12411    *" -library=stlport4 "*)
12412      solaris_use_stlport4=yes
12413      ;;
12414    esac
12415
12416    # Adding this requires a known-good setup of shared libraries for
12417    # Sun compiler versions before 5.6, else PIC objects from an old
12418    # archive will be linked into the output, leading to subtle bugs.
12419    if test "$solaris_use_stlport4" != yes; then
12420      postdeps_CXX='-library=Cstd -library=Crun'
12421    fi
12422    ;;
12423  esac
12424  ;;
12425esac
12426
12427case " $postdeps_CXX " in
12428*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12429esac
12430
12431lt_prog_compiler_wl_CXX=
12432lt_prog_compiler_pic_CXX=
12433lt_prog_compiler_static_CXX=
12434
12435{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12436echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12437
12438  # C++ specific cases for pic, static, wl, etc.
12439  if test "$GXX" = yes; then
12440    lt_prog_compiler_wl_CXX='-Wl,'
12441    lt_prog_compiler_static_CXX='-static'
12442
12443    case $host_os in
12444    aix*)
12445      # All AIX code is PIC.
12446      if test "$host_cpu" = ia64; then
12447	# AIX 5 now supports IA64 processor
12448	lt_prog_compiler_static_CXX='-Bstatic'
12449      fi
12450      ;;
12451    amigaos*)
12452      # FIXME: we need at least 68020 code to build shared libraries, but
12453      # adding the `-m68020' flag to GCC prevents building anything better,
12454      # like `-m68040'.
12455      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12456      ;;
12457    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12458      # PIC is the default for these OSes.
12459      ;;
12460    mingw* | cygwin* | os2* | pw32*)
12461      # This hack is so that the source file can tell whether it is being
12462      # built for inclusion in a dll (and should export symbols for example).
12463      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12464      # (--disable-auto-import) libraries
12465      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12466      ;;
12467    darwin* | rhapsody*)
12468      # PIC is the default on this platform
12469      # Common symbols not allowed in MH_DYLIB files
12470      lt_prog_compiler_pic_CXX='-fno-common'
12471      ;;
12472    *djgpp*)
12473      # DJGPP does not support shared libraries at all
12474      lt_prog_compiler_pic_CXX=
12475      ;;
12476    interix[3-9]*)
12477      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12478      # Instead, we relocate shared libraries at runtime.
12479      ;;
12480    sysv4*MP*)
12481      if test -d /usr/nec; then
12482	lt_prog_compiler_pic_CXX=-Kconform_pic
12483      fi
12484      ;;
12485    hpux*)
12486      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12487      # not for PA HP-UX.
12488      case $host_cpu in
12489      hppa*64*|ia64*)
12490	;;
12491      *)
12492	lt_prog_compiler_pic_CXX='-fPIC'
12493	;;
12494      esac
12495      ;;
12496    *)
12497      lt_prog_compiler_pic_CXX='-fPIC'
12498      ;;
12499    esac
12500  else
12501    case $host_os in
12502      aix[4-9]*)
12503	# All AIX code is PIC.
12504	if test "$host_cpu" = ia64; then
12505	  # AIX 5 now supports IA64 processor
12506	  lt_prog_compiler_static_CXX='-Bstatic'
12507	else
12508	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12509	fi
12510	;;
12511      chorus*)
12512	case $cc_basename in
12513	cxch68*)
12514	  # Green Hills C++ Compiler
12515	  # _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"
12516	  ;;
12517	esac
12518	;;
12519       darwin*)
12520         # PIC is the default on this platform
12521         # Common symbols not allowed in MH_DYLIB files
12522         case $cc_basename in
12523           xlc*)
12524           lt_prog_compiler_pic_CXX='-qnocommon'
12525           lt_prog_compiler_wl_CXX='-Wl,'
12526           ;;
12527         esac
12528       ;;
12529      dgux*)
12530	case $cc_basename in
12531	  ec++*)
12532	    lt_prog_compiler_pic_CXX='-KPIC'
12533	    ;;
12534	  ghcx*)
12535	    # Green Hills C++ Compiler
12536	    lt_prog_compiler_pic_CXX='-pic'
12537	    ;;
12538	  *)
12539	    ;;
12540	esac
12541	;;
12542      freebsd* | dragonfly*)
12543	# FreeBSD uses GNU C++
12544	;;
12545      hpux9* | hpux10* | hpux11*)
12546	case $cc_basename in
12547	  CC*)
12548	    lt_prog_compiler_wl_CXX='-Wl,'
12549	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12550	    if test "$host_cpu" != ia64; then
12551	      lt_prog_compiler_pic_CXX='+Z'
12552	    fi
12553	    ;;
12554	  aCC*)
12555	    lt_prog_compiler_wl_CXX='-Wl,'
12556	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12557	    case $host_cpu in
12558	    hppa*64*|ia64*)
12559	      # +Z the default
12560	      ;;
12561	    *)
12562	      lt_prog_compiler_pic_CXX='+Z'
12563	      ;;
12564	    esac
12565	    ;;
12566	  *)
12567	    ;;
12568	esac
12569	;;
12570      interix*)
12571	# This is c89, which is MS Visual C++ (no shared libs)
12572	# Anyone wants to do a port?
12573	;;
12574      irix5* | irix6* | nonstopux*)
12575	case $cc_basename in
12576	  CC*)
12577	    lt_prog_compiler_wl_CXX='-Wl,'
12578	    lt_prog_compiler_static_CXX='-non_shared'
12579	    # CC pic flag -KPIC is the default.
12580	    ;;
12581	  *)
12582	    ;;
12583	esac
12584	;;
12585      linux* | k*bsd*-gnu)
12586	case $cc_basename in
12587	  KCC*)
12588	    # KAI C++ Compiler
12589	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12590	    lt_prog_compiler_pic_CXX='-fPIC'
12591	    ;;
12592	  icpc* | ecpc*)
12593	    # Intel C++
12594	    lt_prog_compiler_wl_CXX='-Wl,'
12595	    lt_prog_compiler_pic_CXX='-KPIC'
12596	    lt_prog_compiler_static_CXX='-static'
12597	    ;;
12598	  pgCC* | pgcpp*)
12599	    # Portland Group C++ compiler.
12600	    lt_prog_compiler_wl_CXX='-Wl,'
12601	    lt_prog_compiler_pic_CXX='-fpic'
12602	    lt_prog_compiler_static_CXX='-Bstatic'
12603	    ;;
12604	  cxx*)
12605	    # Compaq C++
12606	    # Make sure the PIC flag is empty.  It appears that all Alpha
12607	    # Linux and Compaq Tru64 Unix objects are PIC.
12608	    lt_prog_compiler_pic_CXX=
12609	    lt_prog_compiler_static_CXX='-non_shared'
12610	    ;;
12611	  *)
12612	    case `$CC -V 2>&1 | sed 5q` in
12613	    *Sun\ C*)
12614	      # Sun C++ 5.9
12615	      lt_prog_compiler_pic_CXX='-KPIC'
12616	      lt_prog_compiler_static_CXX='-Bstatic'
12617	      lt_prog_compiler_wl_CXX='-Qoption ld '
12618	      ;;
12619	    esac
12620	    ;;
12621	esac
12622	;;
12623      lynxos*)
12624	;;
12625      m88k*)
12626	;;
12627      mvs*)
12628	case $cc_basename in
12629	  cxx*)
12630	    lt_prog_compiler_pic_CXX='-W c,exportall'
12631	    ;;
12632	  *)
12633	    ;;
12634	esac
12635	;;
12636      netbsd* | netbsdelf*-gnu)
12637	;;
12638      osf3* | osf4* | osf5*)
12639	case $cc_basename in
12640	  KCC*)
12641	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12642	    ;;
12643	  RCC*)
12644	    # Rational C++ 2.4.1
12645	    lt_prog_compiler_pic_CXX='-pic'
12646	    ;;
12647	  cxx*)
12648	    # Digital/Compaq C++
12649	    lt_prog_compiler_wl_CXX='-Wl,'
12650	    # Make sure the PIC flag is empty.  It appears that all Alpha
12651	    # Linux and Compaq Tru64 Unix objects are PIC.
12652	    lt_prog_compiler_pic_CXX=
12653	    lt_prog_compiler_static_CXX='-non_shared'
12654	    ;;
12655	  *)
12656	    ;;
12657	esac
12658	;;
12659      psos*)
12660	;;
12661      solaris*)
12662	case $cc_basename in
12663	  CC*)
12664	    # Sun C++ 4.2, 5.x and Centerline C++
12665	    lt_prog_compiler_pic_CXX='-KPIC'
12666	    lt_prog_compiler_static_CXX='-Bstatic'
12667	    lt_prog_compiler_wl_CXX='-Qoption ld '
12668	    ;;
12669	  gcx*)
12670	    # Green Hills C++ Compiler
12671	    lt_prog_compiler_pic_CXX='-PIC'
12672	    ;;
12673	  *)
12674	    ;;
12675	esac
12676	;;
12677      sunos4*)
12678	case $cc_basename in
12679	  CC*)
12680	    # Sun C++ 4.x
12681	    lt_prog_compiler_pic_CXX='-pic'
12682	    lt_prog_compiler_static_CXX='-Bstatic'
12683	    ;;
12684	  lcc*)
12685	    # Lucid
12686	    lt_prog_compiler_pic_CXX='-pic'
12687	    ;;
12688	  *)
12689	    ;;
12690	esac
12691	;;
12692      tandem*)
12693	case $cc_basename in
12694	  NCC*)
12695	    # NonStop-UX NCC 3.20
12696	    lt_prog_compiler_pic_CXX='-KPIC'
12697	    ;;
12698	  *)
12699	    ;;
12700	esac
12701	;;
12702      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12703	case $cc_basename in
12704	  CC*)
12705	    lt_prog_compiler_wl_CXX='-Wl,'
12706	    lt_prog_compiler_pic_CXX='-KPIC'
12707	    lt_prog_compiler_static_CXX='-Bstatic'
12708	    ;;
12709	esac
12710	;;
12711      vxworks*)
12712	;;
12713      *)
12714	lt_prog_compiler_can_build_shared_CXX=no
12715	;;
12716    esac
12717  fi
12718
12719{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12720echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12721
12722#
12723# Check to make sure the PIC flag actually works.
12724#
12725if test -n "$lt_prog_compiler_pic_CXX"; then
12726
12727{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12728echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12729if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12730  echo $ECHO_N "(cached) $ECHO_C" >&6
12731else
12732  lt_cv_prog_compiler_pic_works_CXX=no
12733  ac_outfile=conftest.$ac_objext
12734   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12735   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12736   # Insert the option either (1) after the last *FLAGS variable, or
12737   # (2) before a word containing "conftest.", or (3) at the end.
12738   # Note that $ac_compile itself does not contain backslashes and begins
12739   # with a dollar sign (not a hyphen), so the echo should work correctly.
12740   # The option is referenced via a variable to avoid confusing sed.
12741   lt_compile=`echo "$ac_compile" | $SED \
12742   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12743   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12744   -e 's:$: $lt_compiler_flag:'`
12745   (eval echo "\"\$as_me:12745: $lt_compile\"" >&5)
12746   (eval "$lt_compile" 2>conftest.err)
12747   ac_status=$?
12748   cat conftest.err >&5
12749   echo "$as_me:12749: \$? = $ac_status" >&5
12750   if (exit $ac_status) && test -s "$ac_outfile"; then
12751     # The compiler can only warn and ignore the option if not recognized
12752     # So say no if there are warnings other than the usual output.
12753     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12754     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12755     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12756       lt_cv_prog_compiler_pic_works_CXX=yes
12757     fi
12758   fi
12759   $rm conftest*
12760
12761fi
12762{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12763echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12764
12765if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12766    case $lt_prog_compiler_pic_CXX in
12767     "" | " "*) ;;
12768     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12769     esac
12770else
12771    lt_prog_compiler_pic_CXX=
12772     lt_prog_compiler_can_build_shared_CXX=no
12773fi
12774
12775fi
12776case $host_os in
12777  # For platforms which do not support PIC, -DPIC is meaningless:
12778  *djgpp*)
12779    lt_prog_compiler_pic_CXX=
12780    ;;
12781  *)
12782    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12783    ;;
12784esac
12785
12786#
12787# Check to make sure the static flag actually works.
12788#
12789wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12790{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12791echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12792if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12793  echo $ECHO_N "(cached) $ECHO_C" >&6
12794else
12795  lt_cv_prog_compiler_static_works_CXX=no
12796   save_LDFLAGS="$LDFLAGS"
12797   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12798   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12799   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12800     # The linker can only warn and ignore the option if not recognized
12801     # So say no if there are warnings
12802     if test -s conftest.err; then
12803       # Append any errors to the config.log.
12804       cat conftest.err 1>&5
12805       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12806       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12807       if diff conftest.exp conftest.er2 >/dev/null; then
12808         lt_cv_prog_compiler_static_works_CXX=yes
12809       fi
12810     else
12811       lt_cv_prog_compiler_static_works_CXX=yes
12812     fi
12813   fi
12814   $rm -r conftest*
12815   LDFLAGS="$save_LDFLAGS"
12816
12817fi
12818{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12819echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12820
12821if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12822    :
12823else
12824    lt_prog_compiler_static_CXX=
12825fi
12826
12827
12828{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12829echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12830if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12831  echo $ECHO_N "(cached) $ECHO_C" >&6
12832else
12833  lt_cv_prog_compiler_c_o_CXX=no
12834   $rm -r conftest 2>/dev/null
12835   mkdir conftest
12836   cd conftest
12837   mkdir out
12838   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12839
12840   lt_compiler_flag="-o out/conftest2.$ac_objext"
12841   # Insert the option either (1) after the last *FLAGS variable, or
12842   # (2) before a word containing "conftest.", or (3) at the end.
12843   # Note that $ac_compile itself does not contain backslashes and begins
12844   # with a dollar sign (not a hyphen), so the echo should work correctly.
12845   lt_compile=`echo "$ac_compile" | $SED \
12846   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12847   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12848   -e 's:$: $lt_compiler_flag:'`
12849   (eval echo "\"\$as_me:12849: $lt_compile\"" >&5)
12850   (eval "$lt_compile" 2>out/conftest.err)
12851   ac_status=$?
12852   cat out/conftest.err >&5
12853   echo "$as_me:12853: \$? = $ac_status" >&5
12854   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12855   then
12856     # The compiler can only warn and ignore the option if not recognized
12857     # So say no if there are warnings
12858     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12859     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12860     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12861       lt_cv_prog_compiler_c_o_CXX=yes
12862     fi
12863   fi
12864   chmod u+w . 2>&5
12865   $rm conftest*
12866   # SGI C++ compiler will create directory out/ii_files/ for
12867   # template instantiation
12868   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12869   $rm out/* && rmdir out
12870   cd ..
12871   rmdir conftest
12872   $rm conftest*
12873
12874fi
12875{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12876echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12877
12878
12879hard_links="nottested"
12880if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12881  # do not overwrite the value of need_locks provided by the user
12882  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12883echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12884  hard_links=yes
12885  $rm conftest*
12886  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12887  touch conftest.a
12888  ln conftest.a conftest.b 2>&5 || hard_links=no
12889  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12890  { echo "$as_me:$LINENO: result: $hard_links" >&5
12891echo "${ECHO_T}$hard_links" >&6; }
12892  if test "$hard_links" = no; then
12893    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12894echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12895    need_locks=warn
12896  fi
12897else
12898  need_locks=no
12899fi
12900
12901{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12902echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12903
12904  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12905  case $host_os in
12906  aix[4-9]*)
12907    # If we're using GNU nm, then we don't want the "-C" option.
12908    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12909    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12910      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'
12911    else
12912      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'
12913    fi
12914    ;;
12915  pw32*)
12916    export_symbols_cmds_CXX="$ltdll_cmds"
12917  ;;
12918  cygwin* | mingw*)
12919    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'
12920  ;;
12921  linux* | k*bsd*-gnu)
12922    link_all_deplibs_CXX=no
12923  ;;
12924  *)
12925    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12926  ;;
12927  esac
12928  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12929
12930{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12931echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12932test "$ld_shlibs_CXX" = no && can_build_shared=no
12933
12934#
12935# Do we need to explicitly link libc?
12936#
12937case "x$archive_cmds_need_lc_CXX" in
12938x|xyes)
12939  # Assume -lc should be added
12940  archive_cmds_need_lc_CXX=yes
12941
12942  if test "$enable_shared" = yes && test "$GCC" = yes; then
12943    case $archive_cmds_CXX in
12944    *'~'*)
12945      # FIXME: we may have to deal with multi-command sequences.
12946      ;;
12947    '$CC '*)
12948      # Test whether the compiler implicitly links with -lc since on some
12949      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12950      # to ld, don't add -lc before -lgcc.
12951      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12952echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12953      $rm conftest*
12954      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12955
12956      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957  (eval $ac_compile) 2>&5
12958  ac_status=$?
12959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960  (exit $ac_status); } 2>conftest.err; then
12961        soname=conftest
12962        lib=conftest
12963        libobjs=conftest.$ac_objext
12964        deplibs=
12965        wl=$lt_prog_compiler_wl_CXX
12966	pic_flag=$lt_prog_compiler_pic_CXX
12967        compiler_flags=-v
12968        linker_flags=-v
12969        verstring=
12970        output_objdir=.
12971        libname=conftest
12972        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12973        allow_undefined_flag_CXX=
12974        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12975  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12976  ac_status=$?
12977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978  (exit $ac_status); }
12979        then
12980	  archive_cmds_need_lc_CXX=no
12981        else
12982	  archive_cmds_need_lc_CXX=yes
12983        fi
12984        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12985      else
12986        cat conftest.err 1>&5
12987      fi
12988      $rm conftest*
12989      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12990echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12991      ;;
12992    esac
12993  fi
12994  ;;
12995esac
12996
12997{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12998echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12999library_names_spec=
13000libname_spec='lib$name'
13001soname_spec=
13002shrext_cmds=".so"
13003postinstall_cmds=
13004postuninstall_cmds=
13005finish_cmds=
13006finish_eval=
13007shlibpath_var=
13008shlibpath_overrides_runpath=unknown
13009version_type=none
13010dynamic_linker="$host_os ld.so"
13011sys_lib_dlsearch_path_spec="/lib /usr/lib"
13012
13013need_lib_prefix=unknown
13014hardcode_into_libs=no
13015
13016# when you set need_version to no, make sure it does not cause -set_version
13017# flags to be left without arguments
13018need_version=unknown
13019
13020case $host_os in
13021aix3*)
13022  version_type=linux
13023  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13024  shlibpath_var=LIBPATH
13025
13026  # AIX 3 has no versioning support, so we append a major version to the name.
13027  soname_spec='${libname}${release}${shared_ext}$major'
13028  ;;
13029
13030aix[4-9]*)
13031  version_type=linux
13032  need_lib_prefix=no
13033  need_version=no
13034  hardcode_into_libs=yes
13035  if test "$host_cpu" = ia64; then
13036    # AIX 5 supports IA64
13037    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13038    shlibpath_var=LD_LIBRARY_PATH
13039  else
13040    # With GCC up to 2.95.x, collect2 would create an import file
13041    # for dependence libraries.  The import file would start with
13042    # the line `#! .'.  This would cause the generated library to
13043    # depend on `.', always an invalid library.  This was fixed in
13044    # development snapshots of GCC prior to 3.0.
13045    case $host_os in
13046      aix4 | aix4.[01] | aix4.[01].*)
13047      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13048	   echo ' yes '
13049	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13050	:
13051      else
13052	can_build_shared=no
13053      fi
13054      ;;
13055    esac
13056    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13057    # soname into executable. Probably we can add versioning support to
13058    # collect2, so additional links can be useful in future.
13059    if test "$aix_use_runtimelinking" = yes; then
13060      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13061      # instead of lib<name>.a to let people know that these are not
13062      # typical AIX shared libraries.
13063      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13064    else
13065      # We preserve .a as extension for shared libraries through AIX4.2
13066      # and later when we are not doing run time linking.
13067      library_names_spec='${libname}${release}.a $libname.a'
13068      soname_spec='${libname}${release}${shared_ext}$major'
13069    fi
13070    shlibpath_var=LIBPATH
13071  fi
13072  ;;
13073
13074amigaos*)
13075  library_names_spec='$libname.ixlibrary $libname.a'
13076  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13077  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'
13078  ;;
13079
13080beos*)
13081  library_names_spec='${libname}${shared_ext}'
13082  dynamic_linker="$host_os ld.so"
13083  shlibpath_var=LIBRARY_PATH
13084  ;;
13085
13086bsdi[45]*)
13087  version_type=linux
13088  need_version=no
13089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13090  soname_spec='${libname}${release}${shared_ext}$major'
13091  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13092  shlibpath_var=LD_LIBRARY_PATH
13093  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13094  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13095  # the default ld.so.conf also contains /usr/contrib/lib and
13096  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13097  # libtool to hard-code these into programs
13098  ;;
13099
13100cygwin* | mingw* | pw32*)
13101  version_type=windows
13102  shrext_cmds=".dll"
13103  need_version=no
13104  need_lib_prefix=no
13105
13106  case $GCC,$host_os in
13107  yes,cygwin* | yes,mingw* | yes,pw32*)
13108    library_names_spec='$libname.dll.a'
13109    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13110    postinstall_cmds='base_file=`basename \${file}`~
13111      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13112      dldir=$destdir/`dirname \$dlpath`~
13113      test -d \$dldir || mkdir -p \$dldir~
13114      $install_prog $dir/$dlname \$dldir/$dlname~
13115      chmod a+x \$dldir/$dlname'
13116    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13117      dlpath=$dir/\$dldll~
13118       $rm \$dlpath'
13119    shlibpath_overrides_runpath=yes
13120
13121    case $host_os in
13122    cygwin*)
13123      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13124      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13125      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13126      ;;
13127    mingw*)
13128      # MinGW DLLs use traditional 'lib' prefix
13129      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13130      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13131      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13132        # It is most probably a Windows format PATH printed by
13133        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13134        # path with ; separators, and with drive letters. We can handle the
13135        # drive letters (cygwin fileutils understands them), so leave them,
13136        # especially as we might pass files found there to a mingw objdump,
13137        # which wouldn't understand a cygwinified path. Ahh.
13138        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13139      else
13140        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13141      fi
13142      ;;
13143    pw32*)
13144      # pw32 DLLs use 'pw' prefix rather than 'lib'
13145      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13146      ;;
13147    esac
13148    ;;
13149
13150  *)
13151    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13152    ;;
13153  esac
13154  dynamic_linker='Win32 ld.exe'
13155  # FIXME: first we should search . and the directory the executable is in
13156  shlibpath_var=PATH
13157  ;;
13158
13159darwin* | rhapsody*)
13160  dynamic_linker="$host_os dyld"
13161  version_type=darwin
13162  need_lib_prefix=no
13163  need_version=no
13164  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13165  soname_spec='${libname}${release}${major}$shared_ext'
13166  shlibpath_overrides_runpath=yes
13167  shlibpath_var=DYLD_LIBRARY_PATH
13168  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13169
13170  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13171  ;;
13172
13173dgux*)
13174  version_type=linux
13175  need_lib_prefix=no
13176  need_version=no
13177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13178  soname_spec='${libname}${release}${shared_ext}$major'
13179  shlibpath_var=LD_LIBRARY_PATH
13180  ;;
13181
13182freebsd1*)
13183  dynamic_linker=no
13184  ;;
13185
13186freebsd* | dragonfly*)
13187  # DragonFly does not have aout.  When/if they implement a new
13188  # versioning mechanism, adjust this.
13189  if test -x /usr/bin/objformat; then
13190    objformat=`/usr/bin/objformat`
13191  else
13192    case $host_os in
13193    freebsd[123]*) objformat=aout ;;
13194    *) objformat=elf ;;
13195    esac
13196  fi
13197  version_type=freebsd-$objformat
13198  case $version_type in
13199    freebsd-elf*)
13200      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13201      need_version=no
13202      need_lib_prefix=no
13203      ;;
13204    freebsd-*)
13205      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13206      need_version=yes
13207      ;;
13208  esac
13209  shlibpath_var=LD_LIBRARY_PATH
13210  case $host_os in
13211  freebsd2*)
13212    shlibpath_overrides_runpath=yes
13213    ;;
13214  freebsd3.[01]* | freebsdelf3.[01]*)
13215    shlibpath_overrides_runpath=yes
13216    hardcode_into_libs=yes
13217    ;;
13218  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13219  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13220    shlibpath_overrides_runpath=no
13221    hardcode_into_libs=yes
13222    ;;
13223  *) # from 4.6 on, and DragonFly
13224    shlibpath_overrides_runpath=yes
13225    hardcode_into_libs=yes
13226    ;;
13227  esac
13228  ;;
13229
13230gnu*)
13231  version_type=linux
13232  need_lib_prefix=no
13233  need_version=no
13234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13235  soname_spec='${libname}${release}${shared_ext}$major'
13236  shlibpath_var=LD_LIBRARY_PATH
13237  hardcode_into_libs=yes
13238  ;;
13239
13240hpux9* | hpux10* | hpux11*)
13241  # Give a soname corresponding to the major version so that dld.sl refuses to
13242  # link against other versions.
13243  version_type=sunos
13244  need_lib_prefix=no
13245  need_version=no
13246  case $host_cpu in
13247  ia64*)
13248    shrext_cmds='.so'
13249    hardcode_into_libs=yes
13250    dynamic_linker="$host_os dld.so"
13251    shlibpath_var=LD_LIBRARY_PATH
13252    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13253    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13254    soname_spec='${libname}${release}${shared_ext}$major'
13255    if test "X$HPUX_IA64_MODE" = X32; then
13256      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13257    else
13258      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13259    fi
13260    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13261    ;;
13262   hppa*64*)
13263     shrext_cmds='.sl'
13264     hardcode_into_libs=yes
13265     dynamic_linker="$host_os dld.sl"
13266     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13267     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13268     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13269     soname_spec='${libname}${release}${shared_ext}$major'
13270     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13271     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13272     ;;
13273   *)
13274    shrext_cmds='.sl'
13275    dynamic_linker="$host_os dld.sl"
13276    shlibpath_var=SHLIB_PATH
13277    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13278    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279    soname_spec='${libname}${release}${shared_ext}$major'
13280    ;;
13281  esac
13282  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13283  postinstall_cmds='chmod 555 $lib'
13284  ;;
13285
13286interix[3-9]*)
13287  version_type=linux
13288  need_lib_prefix=no
13289  need_version=no
13290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13291  soname_spec='${libname}${release}${shared_ext}$major'
13292  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13293  shlibpath_var=LD_LIBRARY_PATH
13294  shlibpath_overrides_runpath=no
13295  hardcode_into_libs=yes
13296  ;;
13297
13298irix5* | irix6* | nonstopux*)
13299  case $host_os in
13300    nonstopux*) version_type=nonstopux ;;
13301    *)
13302	if test "$lt_cv_prog_gnu_ld" = yes; then
13303		version_type=linux
13304	else
13305		version_type=irix
13306	fi ;;
13307  esac
13308  need_lib_prefix=no
13309  need_version=no
13310  soname_spec='${libname}${release}${shared_ext}$major'
13311  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13312  case $host_os in
13313  irix5* | nonstopux*)
13314    libsuff= shlibsuff=
13315    ;;
13316  *)
13317    case $LD in # libtool.m4 will add one of these switches to LD
13318    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13319      libsuff= shlibsuff= libmagic=32-bit;;
13320    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13321      libsuff=32 shlibsuff=N32 libmagic=N32;;
13322    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13323      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13324    *) libsuff= shlibsuff= libmagic=never-match;;
13325    esac
13326    ;;
13327  esac
13328  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13329  shlibpath_overrides_runpath=no
13330  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13331  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13332  hardcode_into_libs=yes
13333  ;;
13334
13335# No shared lib support for Linux oldld, aout, or coff.
13336linux*oldld* | linux*aout* | linux*coff*)
13337  dynamic_linker=no
13338  ;;
13339
13340# This must be Linux ELF.
13341linux* | k*bsd*-gnu)
13342  version_type=linux
13343  need_lib_prefix=no
13344  need_version=no
13345  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13346  soname_spec='${libname}${release}${shared_ext}$major'
13347  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13348  shlibpath_var=LD_LIBRARY_PATH
13349  shlibpath_overrides_runpath=no
13350  # This implies no fast_install, which is unacceptable.
13351  # Some rework will be needed to allow for fast_install
13352  # before this can be enabled.
13353  hardcode_into_libs=yes
13354
13355  # Append ld.so.conf contents to the search path
13356  if test -f /etc/ld.so.conf; then
13357    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' ' '`
13358    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13359  fi
13360
13361  # We used to test for /lib/ld.so.1 and disable shared libraries on
13362  # powerpc, because MkLinux only supported shared libraries with the
13363  # GNU dynamic linker.  Since this was broken with cross compilers,
13364  # most powerpc-linux boxes support dynamic linking these days and
13365  # people can always --disable-shared, the test was removed, and we
13366  # assume the GNU/Linux dynamic linker is in use.
13367  dynamic_linker='GNU/Linux ld.so'
13368  ;;
13369
13370netbsdelf*-gnu)
13371  version_type=linux
13372  need_lib_prefix=no
13373  need_version=no
13374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13375  soname_spec='${libname}${release}${shared_ext}$major'
13376  shlibpath_var=LD_LIBRARY_PATH
13377  shlibpath_overrides_runpath=no
13378  hardcode_into_libs=yes
13379  dynamic_linker='NetBSD ld.elf_so'
13380  ;;
13381
13382netbsd*)
13383  version_type=sunos
13384  need_lib_prefix=no
13385  need_version=no
13386  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13387    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13388    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13389    dynamic_linker='NetBSD (a.out) ld.so'
13390  else
13391    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13392    soname_spec='${libname}${release}${shared_ext}$major'
13393    dynamic_linker='NetBSD ld.elf_so'
13394  fi
13395  shlibpath_var=LD_LIBRARY_PATH
13396  shlibpath_overrides_runpath=yes
13397  hardcode_into_libs=yes
13398  ;;
13399
13400newsos6)
13401  version_type=linux
13402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13403  shlibpath_var=LD_LIBRARY_PATH
13404  shlibpath_overrides_runpath=yes
13405  ;;
13406
13407nto-qnx*)
13408  version_type=linux
13409  need_lib_prefix=no
13410  need_version=no
13411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13412  soname_spec='${libname}${release}${shared_ext}$major'
13413  shlibpath_var=LD_LIBRARY_PATH
13414  shlibpath_overrides_runpath=yes
13415  ;;
13416
13417openbsd*)
13418  version_type=sunos
13419  sys_lib_dlsearch_path_spec="/usr/lib"
13420  need_lib_prefix=no
13421  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13422  case $host_os in
13423    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13424    *)                         need_version=no  ;;
13425  esac
13426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13427  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13428  shlibpath_var=LD_LIBRARY_PATH
13429  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13430    case $host_os in
13431      openbsd2.[89] | openbsd2.[89].*)
13432	shlibpath_overrides_runpath=no
13433	;;
13434      *)
13435	shlibpath_overrides_runpath=yes
13436	;;
13437      esac
13438  else
13439    shlibpath_overrides_runpath=yes
13440  fi
13441  ;;
13442
13443os2*)
13444  libname_spec='$name'
13445  shrext_cmds=".dll"
13446  need_lib_prefix=no
13447  library_names_spec='$libname${shared_ext} $libname.a'
13448  dynamic_linker='OS/2 ld.exe'
13449  shlibpath_var=LIBPATH
13450  ;;
13451
13452osf3* | osf4* | osf5*)
13453  version_type=osf
13454  need_lib_prefix=no
13455  need_version=no
13456  soname_spec='${libname}${release}${shared_ext}$major'
13457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13458  shlibpath_var=LD_LIBRARY_PATH
13459  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13460  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13461  ;;
13462
13463rdos*)
13464  dynamic_linker=no
13465  ;;
13466
13467solaris*)
13468  version_type=linux
13469  need_lib_prefix=no
13470  need_version=no
13471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13472  soname_spec='${libname}${release}${shared_ext}$major'
13473  shlibpath_var=LD_LIBRARY_PATH
13474  shlibpath_overrides_runpath=yes
13475  hardcode_into_libs=yes
13476  # ldd complains unless libraries are executable
13477  postinstall_cmds='chmod +x $lib'
13478  ;;
13479
13480sunos4*)
13481  version_type=sunos
13482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13483  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13484  shlibpath_var=LD_LIBRARY_PATH
13485  shlibpath_overrides_runpath=yes
13486  if test "$with_gnu_ld" = yes; then
13487    need_lib_prefix=no
13488  fi
13489  need_version=yes
13490  ;;
13491
13492sysv4 | sysv4.3*)
13493  version_type=linux
13494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13495  soname_spec='${libname}${release}${shared_ext}$major'
13496  shlibpath_var=LD_LIBRARY_PATH
13497  case $host_vendor in
13498    sni)
13499      shlibpath_overrides_runpath=no
13500      need_lib_prefix=no
13501      export_dynamic_flag_spec='${wl}-Blargedynsym'
13502      runpath_var=LD_RUN_PATH
13503      ;;
13504    siemens)
13505      need_lib_prefix=no
13506      ;;
13507    motorola)
13508      need_lib_prefix=no
13509      need_version=no
13510      shlibpath_overrides_runpath=no
13511      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13512      ;;
13513  esac
13514  ;;
13515
13516sysv4*MP*)
13517  if test -d /usr/nec ;then
13518    version_type=linux
13519    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13520    soname_spec='$libname${shared_ext}.$major'
13521    shlibpath_var=LD_LIBRARY_PATH
13522  fi
13523  ;;
13524
13525sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13526  version_type=freebsd-elf
13527  need_lib_prefix=no
13528  need_version=no
13529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13530  soname_spec='${libname}${release}${shared_ext}$major'
13531  shlibpath_var=LD_LIBRARY_PATH
13532  hardcode_into_libs=yes
13533  if test "$with_gnu_ld" = yes; then
13534    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13535    shlibpath_overrides_runpath=no
13536  else
13537    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13538    shlibpath_overrides_runpath=yes
13539    case $host_os in
13540      sco3.2v5*)
13541        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13542	;;
13543    esac
13544  fi
13545  sys_lib_dlsearch_path_spec='/usr/lib'
13546  ;;
13547
13548uts4*)
13549  version_type=linux
13550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13551  soname_spec='${libname}${release}${shared_ext}$major'
13552  shlibpath_var=LD_LIBRARY_PATH
13553  ;;
13554
13555*)
13556  dynamic_linker=no
13557  ;;
13558esac
13559{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13560echo "${ECHO_T}$dynamic_linker" >&6; }
13561test "$dynamic_linker" = no && can_build_shared=no
13562
13563if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13564  echo $ECHO_N "(cached) $ECHO_C" >&6
13565else
13566  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13567fi
13568
13569sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13570if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13571  echo $ECHO_N "(cached) $ECHO_C" >&6
13572else
13573  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13574fi
13575
13576sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13577
13578variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13579if test "$GCC" = yes; then
13580  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13581fi
13582
13583{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13584echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13585hardcode_action_CXX=
13586if test -n "$hardcode_libdir_flag_spec_CXX" || \
13587   test -n "$runpath_var_CXX" || \
13588   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13589
13590  # We can hardcode non-existant directories.
13591  if test "$hardcode_direct_CXX" != no &&
13592     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13593     # have to relink, otherwise we might link with an installed library
13594     # when we should be linking with a yet-to-be-installed one
13595     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13596     test "$hardcode_minus_L_CXX" != no; then
13597    # Linking always hardcodes the temporary library directory.
13598    hardcode_action_CXX=relink
13599  else
13600    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13601    hardcode_action_CXX=immediate
13602  fi
13603else
13604  # We cannot hardcode anything, or else we can only hardcode existing
13605  # directories.
13606  hardcode_action_CXX=unsupported
13607fi
13608{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13609echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13610
13611if test "$hardcode_action_CXX" = relink; then
13612  # Fast installation is not supported
13613  enable_fast_install=no
13614elif test "$shlibpath_overrides_runpath" = yes ||
13615     test "$enable_shared" = no; then
13616  # Fast installation is not necessary
13617  enable_fast_install=needless
13618fi
13619
13620
13621# The else clause should only fire when bootstrapping the
13622# libtool distribution, otherwise you forgot to ship ltmain.sh
13623# with your package, and you will get complaints that there are
13624# no rules to generate ltmain.sh.
13625if test -f "$ltmain"; then
13626  # See if we are running on zsh, and set the options which allow our commands through
13627  # without removal of \ escapes.
13628  if test -n "${ZSH_VERSION+set}" ; then
13629    setopt NO_GLOB_SUBST
13630  fi
13631  # Now quote all the things that may contain metacharacters while being
13632  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13633  # variables and quote the copies for generation of the libtool script.
13634  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13635    SED SHELL STRIP \
13636    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13637    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13638    deplibs_check_method reload_flag reload_cmds need_locks \
13639    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13640    lt_cv_sys_global_symbol_to_c_name_address \
13641    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13642    old_postinstall_cmds old_postuninstall_cmds \
13643    compiler_CXX \
13644    CC_CXX \
13645    LD_CXX \
13646    lt_prog_compiler_wl_CXX \
13647    lt_prog_compiler_pic_CXX \
13648    lt_prog_compiler_static_CXX \
13649    lt_prog_compiler_no_builtin_flag_CXX \
13650    export_dynamic_flag_spec_CXX \
13651    thread_safe_flag_spec_CXX \
13652    whole_archive_flag_spec_CXX \
13653    enable_shared_with_static_runtimes_CXX \
13654    old_archive_cmds_CXX \
13655    old_archive_from_new_cmds_CXX \
13656    predep_objects_CXX \
13657    postdep_objects_CXX \
13658    predeps_CXX \
13659    postdeps_CXX \
13660    compiler_lib_search_path_CXX \
13661    compiler_lib_search_dirs_CXX \
13662    archive_cmds_CXX \
13663    archive_expsym_cmds_CXX \
13664    postinstall_cmds_CXX \
13665    postuninstall_cmds_CXX \
13666    old_archive_from_expsyms_cmds_CXX \
13667    allow_undefined_flag_CXX \
13668    no_undefined_flag_CXX \
13669    export_symbols_cmds_CXX \
13670    hardcode_libdir_flag_spec_CXX \
13671    hardcode_libdir_flag_spec_ld_CXX \
13672    hardcode_libdir_separator_CXX \
13673    hardcode_automatic_CXX \
13674    module_cmds_CXX \
13675    module_expsym_cmds_CXX \
13676    lt_cv_prog_compiler_c_o_CXX \
13677    fix_srcfile_path_CXX \
13678    exclude_expsyms_CXX \
13679    include_expsyms_CXX; do
13680
13681    case $var in
13682    old_archive_cmds_CXX | \
13683    old_archive_from_new_cmds_CXX | \
13684    archive_cmds_CXX | \
13685    archive_expsym_cmds_CXX | \
13686    module_cmds_CXX | \
13687    module_expsym_cmds_CXX | \
13688    old_archive_from_expsyms_cmds_CXX | \
13689    export_symbols_cmds_CXX | \
13690    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13691    postinstall_cmds | postuninstall_cmds | \
13692    old_postinstall_cmds | old_postuninstall_cmds | \
13693    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13694      # Double-quote double-evaled strings.
13695      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13696      ;;
13697    *)
13698      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13699      ;;
13700    esac
13701  done
13702
13703  case $lt_echo in
13704  *'\$0 --fallback-echo"')
13705    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13706    ;;
13707  esac
13708
13709cfgfile="$ofile"
13710
13711  cat <<__EOF__ >> "$cfgfile"
13712# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13713
13714# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13715
13716# Shell to use when invoking shell scripts.
13717SHELL=$lt_SHELL
13718
13719# Whether or not to build shared libraries.
13720build_libtool_libs=$enable_shared
13721
13722# Whether or not to build static libraries.
13723build_old_libs=$enable_static
13724
13725# Whether or not to add -lc for building shared libraries.
13726build_libtool_need_lc=$archive_cmds_need_lc_CXX
13727
13728# Whether or not to disallow shared libs when runtime libs are static
13729allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13730
13731# Whether or not to optimize for fast installation.
13732fast_install=$enable_fast_install
13733
13734# The host system.
13735host_alias=$host_alias
13736host=$host
13737host_os=$host_os
13738
13739# The build system.
13740build_alias=$build_alias
13741build=$build
13742build_os=$build_os
13743
13744# An echo program that does not interpret backslashes.
13745echo=$lt_echo
13746
13747# The archiver.
13748AR=$lt_AR
13749AR_FLAGS=$lt_AR_FLAGS
13750
13751# A C compiler.
13752LTCC=$lt_LTCC
13753
13754# LTCC compiler flags.
13755LTCFLAGS=$lt_LTCFLAGS
13756
13757# A language-specific compiler.
13758CC=$lt_compiler_CXX
13759
13760# Is the compiler the GNU C compiler?
13761with_gcc=$GCC_CXX
13762
13763# An ERE matcher.
13764EGREP=$lt_EGREP
13765
13766# The linker used to build libraries.
13767LD=$lt_LD_CXX
13768
13769# Whether we need hard or soft links.
13770LN_S=$lt_LN_S
13771
13772# A BSD-compatible nm program.
13773NM=$lt_NM
13774
13775# A symbol stripping program
13776STRIP=$lt_STRIP
13777
13778# Used to examine libraries when file_magic_cmd begins "file"
13779MAGIC_CMD=$MAGIC_CMD
13780
13781# Used on cygwin: DLL creation program.
13782DLLTOOL="$DLLTOOL"
13783
13784# Used on cygwin: object dumper.
13785OBJDUMP="$OBJDUMP"
13786
13787# Used on cygwin: assembler.
13788AS="$AS"
13789
13790# The name of the directory that contains temporary libtool files.
13791objdir=$objdir
13792
13793# How to create reloadable object files.
13794reload_flag=$lt_reload_flag
13795reload_cmds=$lt_reload_cmds
13796
13797# How to pass a linker flag through the compiler.
13798wl=$lt_lt_prog_compiler_wl_CXX
13799
13800# Object file suffix (normally "o").
13801objext="$ac_objext"
13802
13803# Old archive suffix (normally "a").
13804libext="$libext"
13805
13806# Shared library suffix (normally ".so").
13807shrext_cmds='$shrext_cmds'
13808
13809# Executable file suffix (normally "").
13810exeext="$exeext"
13811
13812# Additional compiler flags for building library objects.
13813pic_flag=$lt_lt_prog_compiler_pic_CXX
13814pic_mode=$pic_mode
13815
13816# What is the maximum length of a command?
13817max_cmd_len=$lt_cv_sys_max_cmd_len
13818
13819# Does compiler simultaneously support -c and -o options?
13820compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13821
13822# Must we lock files when doing compilation?
13823need_locks=$lt_need_locks
13824
13825# Do we need the lib prefix for modules?
13826need_lib_prefix=$need_lib_prefix
13827
13828# Do we need a version for libraries?
13829need_version=$need_version
13830
13831# Whether dlopen is supported.
13832dlopen_support=$enable_dlopen
13833
13834# Whether dlopen of programs is supported.
13835dlopen_self=$enable_dlopen_self
13836
13837# Whether dlopen of statically linked programs is supported.
13838dlopen_self_static=$enable_dlopen_self_static
13839
13840# Compiler flag to prevent dynamic linking.
13841link_static_flag=$lt_lt_prog_compiler_static_CXX
13842
13843# Compiler flag to turn off builtin functions.
13844no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13845
13846# Compiler flag to allow reflexive dlopens.
13847export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13848
13849# Compiler flag to generate shared objects directly from archives.
13850whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13851
13852# Compiler flag to generate thread-safe objects.
13853thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13854
13855# Library versioning type.
13856version_type=$version_type
13857
13858# Format of library name prefix.
13859libname_spec=$lt_libname_spec
13860
13861# List of archive names.  First name is the real one, the rest are links.
13862# The last name is the one that the linker finds with -lNAME.
13863library_names_spec=$lt_library_names_spec
13864
13865# The coded name of the library, if different from the real name.
13866soname_spec=$lt_soname_spec
13867
13868# Commands used to build and install an old-style archive.
13869RANLIB=$lt_RANLIB
13870old_archive_cmds=$lt_old_archive_cmds_CXX
13871old_postinstall_cmds=$lt_old_postinstall_cmds
13872old_postuninstall_cmds=$lt_old_postuninstall_cmds
13873
13874# Create an old-style archive from a shared archive.
13875old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13876
13877# Create a temporary old-style archive to link instead of a shared archive.
13878old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13879
13880# Commands used to build and install a shared archive.
13881archive_cmds=$lt_archive_cmds_CXX
13882archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13883postinstall_cmds=$lt_postinstall_cmds
13884postuninstall_cmds=$lt_postuninstall_cmds
13885
13886# Commands used to build a loadable module (assumed same as above if empty)
13887module_cmds=$lt_module_cmds_CXX
13888module_expsym_cmds=$lt_module_expsym_cmds_CXX
13889
13890# Commands to strip libraries.
13891old_striplib=$lt_old_striplib
13892striplib=$lt_striplib
13893
13894# Dependencies to place before the objects being linked to create a
13895# shared library.
13896predep_objects=$lt_predep_objects_CXX
13897
13898# Dependencies to place after the objects being linked to create a
13899# shared library.
13900postdep_objects=$lt_postdep_objects_CXX
13901
13902# Dependencies to place before the objects being linked to create a
13903# shared library.
13904predeps=$lt_predeps_CXX
13905
13906# Dependencies to place after the objects being linked to create a
13907# shared library.
13908postdeps=$lt_postdeps_CXX
13909
13910# The directories searched by this compiler when creating a shared
13911# library
13912compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13913
13914# The library search path used internally by the compiler when linking
13915# a shared library.
13916compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13917
13918# Method to check whether dependent libraries are shared objects.
13919deplibs_check_method=$lt_deplibs_check_method
13920
13921# Command to use when deplibs_check_method == file_magic.
13922file_magic_cmd=$lt_file_magic_cmd
13923
13924# Flag that allows shared libraries with undefined symbols to be built.
13925allow_undefined_flag=$lt_allow_undefined_flag_CXX
13926
13927# Flag that forces no undefined symbols.
13928no_undefined_flag=$lt_no_undefined_flag_CXX
13929
13930# Commands used to finish a libtool library installation in a directory.
13931finish_cmds=$lt_finish_cmds
13932
13933# Same as above, but a single script fragment to be evaled but not shown.
13934finish_eval=$lt_finish_eval
13935
13936# Take the output of nm and produce a listing of raw symbols and C names.
13937global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13938
13939# Transform the output of nm in a proper C declaration
13940global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13941
13942# Transform the output of nm in a C name address pair
13943global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13944
13945# This is the shared library runtime path variable.
13946runpath_var=$runpath_var
13947
13948# This is the shared library path variable.
13949shlibpath_var=$shlibpath_var
13950
13951# Is shlibpath searched before the hard-coded library search path?
13952shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13953
13954# How to hardcode a shared library path into an executable.
13955hardcode_action=$hardcode_action_CXX
13956
13957# Whether we should hardcode library paths into libraries.
13958hardcode_into_libs=$hardcode_into_libs
13959
13960# Flag to hardcode \$libdir into a binary during linking.
13961# This must work even if \$libdir does not exist.
13962hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13963
13964# If ld is used when linking, flag to hardcode \$libdir into
13965# a binary during linking. This must work even if \$libdir does
13966# not exist.
13967hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13968
13969# Whether we need a single -rpath flag with a separated argument.
13970hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13971
13972# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13973# resulting binary.
13974hardcode_direct=$hardcode_direct_CXX
13975
13976# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13977# resulting binary.
13978hardcode_minus_L=$hardcode_minus_L_CXX
13979
13980# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13981# the resulting binary.
13982hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13983
13984# Set to yes if building a shared library automatically hardcodes DIR into the library
13985# and all subsequent libraries and executables linked against it.
13986hardcode_automatic=$hardcode_automatic_CXX
13987
13988# Variables whose values should be saved in libtool wrapper scripts and
13989# restored at relink time.
13990variables_saved_for_relink="$variables_saved_for_relink"
13991
13992# Whether libtool must link a program against all its dependency libraries.
13993link_all_deplibs=$link_all_deplibs_CXX
13994
13995# Compile-time system search path for libraries
13996sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13997
13998# Run-time system search path for libraries
13999sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14000
14001# Fix the shell variable \$srcfile for the compiler.
14002fix_srcfile_path=$lt_fix_srcfile_path
14003
14004# Set to yes if exported symbols are required.
14005always_export_symbols=$always_export_symbols_CXX
14006
14007# The commands to list exported symbols.
14008export_symbols_cmds=$lt_export_symbols_cmds_CXX
14009
14010# The commands to extract the exported symbol list from a shared archive.
14011extract_expsyms_cmds=$lt_extract_expsyms_cmds
14012
14013# Symbols that should not be listed in the preloaded symbols.
14014exclude_expsyms=$lt_exclude_expsyms_CXX
14015
14016# Symbols that must always be exported.
14017include_expsyms=$lt_include_expsyms_CXX
14018
14019# ### END LIBTOOL TAG CONFIG: $tagname
14020
14021__EOF__
14022
14023
14024else
14025  # If there is no Makefile yet, we rely on a make rule to execute
14026  # `config.status --recheck' to rerun these tests and create the
14027  # libtool script then.
14028  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14029  if test -f "$ltmain_in"; then
14030    test -f Makefile && make "$ltmain"
14031  fi
14032fi
14033
14034
14035ac_ext=c
14036ac_cpp='$CPP $CPPFLAGS'
14037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14039ac_compiler_gnu=$ac_cv_c_compiler_gnu
14040
14041CC=$lt_save_CC
14042LDCXX=$LD
14043LD=$lt_save_LD
14044GCC=$lt_save_GCC
14045with_gnu_ldcxx=$with_gnu_ld
14046with_gnu_ld=$lt_save_with_gnu_ld
14047lt_cv_path_LDCXX=$lt_cv_path_LD
14048lt_cv_path_LD=$lt_save_path_LD
14049lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14050lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14051
14052	else
14053	  tagname=""
14054	fi
14055	;;
14056
14057      F77)
14058	if test -n "$F77" && test "X$F77" != "Xno"; then
14059
14060ac_ext=f
14061ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14062ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14063ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14064
14065
14066archive_cmds_need_lc_F77=no
14067allow_undefined_flag_F77=
14068always_export_symbols_F77=no
14069archive_expsym_cmds_F77=
14070export_dynamic_flag_spec_F77=
14071hardcode_direct_F77=no
14072hardcode_libdir_flag_spec_F77=
14073hardcode_libdir_flag_spec_ld_F77=
14074hardcode_libdir_separator_F77=
14075hardcode_minus_L_F77=no
14076hardcode_automatic_F77=no
14077module_cmds_F77=
14078module_expsym_cmds_F77=
14079link_all_deplibs_F77=unknown
14080old_archive_cmds_F77=$old_archive_cmds
14081no_undefined_flag_F77=
14082whole_archive_flag_spec_F77=
14083enable_shared_with_static_runtimes_F77=no
14084
14085# Source file extension for f77 test sources.
14086ac_ext=f
14087
14088# Object file extension for compiled f77 test sources.
14089objext=o
14090objext_F77=$objext
14091
14092# Code to be used in simple compile tests
14093lt_simple_compile_test_code="\
14094      subroutine t
14095      return
14096      end
14097"
14098
14099# Code to be used in simple link tests
14100lt_simple_link_test_code="\
14101      program t
14102      end
14103"
14104
14105# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14106
14107# If no C compiler was specified, use CC.
14108LTCC=${LTCC-"$CC"}
14109
14110# If no C compiler flags were specified, use CFLAGS.
14111LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14112
14113# Allow CC to be a program name with arguments.
14114compiler=$CC
14115
14116
14117# save warnings/boilerplate of simple test code
14118ac_outfile=conftest.$ac_objext
14119echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14120eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14121_lt_compiler_boilerplate=`cat conftest.err`
14122$rm conftest*
14123
14124ac_outfile=conftest.$ac_objext
14125echo "$lt_simple_link_test_code" >conftest.$ac_ext
14126eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14127_lt_linker_boilerplate=`cat conftest.err`
14128$rm -r conftest*
14129
14130
14131# Allow CC to be a program name with arguments.
14132lt_save_CC="$CC"
14133CC=${F77-"f77"}
14134compiler=$CC
14135compiler_F77=$CC
14136for cc_temp in $compiler""; do
14137  case $cc_temp in
14138    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14139    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14140    \-*) ;;
14141    *) break;;
14142  esac
14143done
14144cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14145
14146
14147{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14148echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14149{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14150echo "${ECHO_T}$can_build_shared" >&6; }
14151
14152{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14153echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14154test "$can_build_shared" = "no" && enable_shared=no
14155
14156# On AIX, shared libraries and static libraries use the same namespace, and
14157# are all built from PIC.
14158case $host_os in
14159aix3*)
14160  test "$enable_shared" = yes && enable_static=no
14161  if test -n "$RANLIB"; then
14162    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14163    postinstall_cmds='$RANLIB $lib'
14164  fi
14165  ;;
14166aix[4-9]*)
14167  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14168    test "$enable_shared" = yes && enable_static=no
14169  fi
14170  ;;
14171esac
14172{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14173echo "${ECHO_T}$enable_shared" >&6; }
14174
14175{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14176echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14177# Make sure either enable_shared or enable_static is yes.
14178test "$enable_shared" = yes || enable_static=yes
14179{ echo "$as_me:$LINENO: result: $enable_static" >&5
14180echo "${ECHO_T}$enable_static" >&6; }
14181
14182GCC_F77="$G77"
14183LD_F77="$LD"
14184
14185lt_prog_compiler_wl_F77=
14186lt_prog_compiler_pic_F77=
14187lt_prog_compiler_static_F77=
14188
14189{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14190echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14191
14192  if test "$GCC" = yes; then
14193    lt_prog_compiler_wl_F77='-Wl,'
14194    lt_prog_compiler_static_F77='-static'
14195
14196    case $host_os in
14197      aix*)
14198      # All AIX code is PIC.
14199      if test "$host_cpu" = ia64; then
14200	# AIX 5 now supports IA64 processor
14201	lt_prog_compiler_static_F77='-Bstatic'
14202      fi
14203      ;;
14204
14205    amigaos*)
14206      # FIXME: we need at least 68020 code to build shared libraries, but
14207      # adding the `-m68020' flag to GCC prevents building anything better,
14208      # like `-m68040'.
14209      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14210      ;;
14211
14212    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14213      # PIC is the default for these OSes.
14214      ;;
14215
14216    mingw* | cygwin* | pw32* | os2*)
14217      # This hack is so that the source file can tell whether it is being
14218      # built for inclusion in a dll (and should export symbols for example).
14219      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14220      # (--disable-auto-import) libraries
14221      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14222      ;;
14223
14224    darwin* | rhapsody*)
14225      # PIC is the default on this platform
14226      # Common symbols not allowed in MH_DYLIB files
14227      lt_prog_compiler_pic_F77='-fno-common'
14228      ;;
14229
14230    interix[3-9]*)
14231      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14232      # Instead, we relocate shared libraries at runtime.
14233      ;;
14234
14235    msdosdjgpp*)
14236      # Just because we use GCC doesn't mean we suddenly get shared libraries
14237      # on systems that don't support them.
14238      lt_prog_compiler_can_build_shared_F77=no
14239      enable_shared=no
14240      ;;
14241
14242    sysv4*MP*)
14243      if test -d /usr/nec; then
14244	lt_prog_compiler_pic_F77=-Kconform_pic
14245      fi
14246      ;;
14247
14248    hpux*)
14249      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14250      # not for PA HP-UX.
14251      case $host_cpu in
14252      hppa*64*|ia64*)
14253	# +Z the default
14254	;;
14255      *)
14256	lt_prog_compiler_pic_F77='-fPIC'
14257	;;
14258      esac
14259      ;;
14260
14261    *)
14262      lt_prog_compiler_pic_F77='-fPIC'
14263      ;;
14264    esac
14265  else
14266    # PORTME Check for flag to pass linker flags through the system compiler.
14267    case $host_os in
14268    aix*)
14269      lt_prog_compiler_wl_F77='-Wl,'
14270      if test "$host_cpu" = ia64; then
14271	# AIX 5 now supports IA64 processor
14272	lt_prog_compiler_static_F77='-Bstatic'
14273      else
14274	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14275      fi
14276      ;;
14277      darwin*)
14278        # PIC is the default on this platform
14279        # Common symbols not allowed in MH_DYLIB files
14280       case $cc_basename in
14281         xlc*)
14282         lt_prog_compiler_pic_F77='-qnocommon'
14283         lt_prog_compiler_wl_F77='-Wl,'
14284         ;;
14285       esac
14286       ;;
14287
14288    mingw* | cygwin* | pw32* | os2*)
14289      # This hack is so that the source file can tell whether it is being
14290      # built for inclusion in a dll (and should export symbols for example).
14291      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14292      ;;
14293
14294    hpux9* | hpux10* | hpux11*)
14295      lt_prog_compiler_wl_F77='-Wl,'
14296      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14297      # not for PA HP-UX.
14298      case $host_cpu in
14299      hppa*64*|ia64*)
14300	# +Z the default
14301	;;
14302      *)
14303	lt_prog_compiler_pic_F77='+Z'
14304	;;
14305      esac
14306      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14307      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14308      ;;
14309
14310    irix5* | irix6* | nonstopux*)
14311      lt_prog_compiler_wl_F77='-Wl,'
14312      # PIC (with -KPIC) is the default.
14313      lt_prog_compiler_static_F77='-non_shared'
14314      ;;
14315
14316    newsos6)
14317      lt_prog_compiler_pic_F77='-KPIC'
14318      lt_prog_compiler_static_F77='-Bstatic'
14319      ;;
14320
14321    linux* | k*bsd*-gnu)
14322      case $cc_basename in
14323      icc* | ecc*)
14324	lt_prog_compiler_wl_F77='-Wl,'
14325	lt_prog_compiler_pic_F77='-KPIC'
14326	lt_prog_compiler_static_F77='-static'
14327        ;;
14328      pgcc* | pgf77* | pgf90* | pgf95*)
14329        # Portland Group compilers (*not* the Pentium gcc compiler,
14330	# which looks to be a dead project)
14331	lt_prog_compiler_wl_F77='-Wl,'
14332	lt_prog_compiler_pic_F77='-fpic'
14333	lt_prog_compiler_static_F77='-Bstatic'
14334        ;;
14335      ccc*)
14336        lt_prog_compiler_wl_F77='-Wl,'
14337        # All Alpha code is PIC.
14338        lt_prog_compiler_static_F77='-non_shared'
14339        ;;
14340      *)
14341        case `$CC -V 2>&1 | sed 5q` in
14342	*Sun\ C*)
14343	  # Sun C 5.9
14344	  lt_prog_compiler_pic_F77='-KPIC'
14345	  lt_prog_compiler_static_F77='-Bstatic'
14346	  lt_prog_compiler_wl_F77='-Wl,'
14347	  ;;
14348	*Sun\ F*)
14349	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14350	  lt_prog_compiler_pic_F77='-KPIC'
14351	  lt_prog_compiler_static_F77='-Bstatic'
14352	  lt_prog_compiler_wl_F77=''
14353	  ;;
14354	esac
14355	;;
14356      esac
14357      ;;
14358
14359    osf3* | osf4* | osf5*)
14360      lt_prog_compiler_wl_F77='-Wl,'
14361      # All OSF/1 code is PIC.
14362      lt_prog_compiler_static_F77='-non_shared'
14363      ;;
14364
14365    rdos*)
14366      lt_prog_compiler_static_F77='-non_shared'
14367      ;;
14368
14369    solaris*)
14370      lt_prog_compiler_pic_F77='-KPIC'
14371      lt_prog_compiler_static_F77='-Bstatic'
14372      case $cc_basename in
14373      f77* | f90* | f95*)
14374	lt_prog_compiler_wl_F77='-Qoption ld ';;
14375      *)
14376	lt_prog_compiler_wl_F77='-Wl,';;
14377      esac
14378      ;;
14379
14380    sunos4*)
14381      lt_prog_compiler_wl_F77='-Qoption ld '
14382      lt_prog_compiler_pic_F77='-PIC'
14383      lt_prog_compiler_static_F77='-Bstatic'
14384      ;;
14385
14386    sysv4 | sysv4.2uw2* | sysv4.3*)
14387      lt_prog_compiler_wl_F77='-Wl,'
14388      lt_prog_compiler_pic_F77='-KPIC'
14389      lt_prog_compiler_static_F77='-Bstatic'
14390      ;;
14391
14392    sysv4*MP*)
14393      if test -d /usr/nec ;then
14394	lt_prog_compiler_pic_F77='-Kconform_pic'
14395	lt_prog_compiler_static_F77='-Bstatic'
14396      fi
14397      ;;
14398
14399    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14400      lt_prog_compiler_wl_F77='-Wl,'
14401      lt_prog_compiler_pic_F77='-KPIC'
14402      lt_prog_compiler_static_F77='-Bstatic'
14403      ;;
14404
14405    unicos*)
14406      lt_prog_compiler_wl_F77='-Wl,'
14407      lt_prog_compiler_can_build_shared_F77=no
14408      ;;
14409
14410    uts4*)
14411      lt_prog_compiler_pic_F77='-pic'
14412      lt_prog_compiler_static_F77='-Bstatic'
14413      ;;
14414
14415    *)
14416      lt_prog_compiler_can_build_shared_F77=no
14417      ;;
14418    esac
14419  fi
14420
14421{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14422echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14423
14424#
14425# Check to make sure the PIC flag actually works.
14426#
14427if test -n "$lt_prog_compiler_pic_F77"; then
14428
14429{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14430echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14431if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14432  echo $ECHO_N "(cached) $ECHO_C" >&6
14433else
14434  lt_cv_prog_compiler_pic_works_F77=no
14435  ac_outfile=conftest.$ac_objext
14436   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14437   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14438   # Insert the option either (1) after the last *FLAGS variable, or
14439   # (2) before a word containing "conftest.", or (3) at the end.
14440   # Note that $ac_compile itself does not contain backslashes and begins
14441   # with a dollar sign (not a hyphen), so the echo should work correctly.
14442   # The option is referenced via a variable to avoid confusing sed.
14443   lt_compile=`echo "$ac_compile" | $SED \
14444   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14445   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14446   -e 's:$: $lt_compiler_flag:'`
14447   (eval echo "\"\$as_me:14447: $lt_compile\"" >&5)
14448   (eval "$lt_compile" 2>conftest.err)
14449   ac_status=$?
14450   cat conftest.err >&5
14451   echo "$as_me:14451: \$? = $ac_status" >&5
14452   if (exit $ac_status) && test -s "$ac_outfile"; then
14453     # The compiler can only warn and ignore the option if not recognized
14454     # So say no if there are warnings other than the usual output.
14455     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14456     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14457     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14458       lt_cv_prog_compiler_pic_works_F77=yes
14459     fi
14460   fi
14461   $rm conftest*
14462
14463fi
14464{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14465echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14466
14467if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14468    case $lt_prog_compiler_pic_F77 in
14469     "" | " "*) ;;
14470     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14471     esac
14472else
14473    lt_prog_compiler_pic_F77=
14474     lt_prog_compiler_can_build_shared_F77=no
14475fi
14476
14477fi
14478case $host_os in
14479  # For platforms which do not support PIC, -DPIC is meaningless:
14480  *djgpp*)
14481    lt_prog_compiler_pic_F77=
14482    ;;
14483  *)
14484    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14485    ;;
14486esac
14487
14488#
14489# Check to make sure the static flag actually works.
14490#
14491wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14492{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14493echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14494if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14495  echo $ECHO_N "(cached) $ECHO_C" >&6
14496else
14497  lt_cv_prog_compiler_static_works_F77=no
14498   save_LDFLAGS="$LDFLAGS"
14499   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14500   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14501   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14502     # The linker can only warn and ignore the option if not recognized
14503     # So say no if there are warnings
14504     if test -s conftest.err; then
14505       # Append any errors to the config.log.
14506       cat conftest.err 1>&5
14507       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14508       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14509       if diff conftest.exp conftest.er2 >/dev/null; then
14510         lt_cv_prog_compiler_static_works_F77=yes
14511       fi
14512     else
14513       lt_cv_prog_compiler_static_works_F77=yes
14514     fi
14515   fi
14516   $rm -r conftest*
14517   LDFLAGS="$save_LDFLAGS"
14518
14519fi
14520{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14521echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14522
14523if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14524    :
14525else
14526    lt_prog_compiler_static_F77=
14527fi
14528
14529
14530{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14531echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14532if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14533  echo $ECHO_N "(cached) $ECHO_C" >&6
14534else
14535  lt_cv_prog_compiler_c_o_F77=no
14536   $rm -r conftest 2>/dev/null
14537   mkdir conftest
14538   cd conftest
14539   mkdir out
14540   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14541
14542   lt_compiler_flag="-o out/conftest2.$ac_objext"
14543   # Insert the option either (1) after the last *FLAGS variable, or
14544   # (2) before a word containing "conftest.", or (3) at the end.
14545   # Note that $ac_compile itself does not contain backslashes and begins
14546   # with a dollar sign (not a hyphen), so the echo should work correctly.
14547   lt_compile=`echo "$ac_compile" | $SED \
14548   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14549   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14550   -e 's:$: $lt_compiler_flag:'`
14551   (eval echo "\"\$as_me:14551: $lt_compile\"" >&5)
14552   (eval "$lt_compile" 2>out/conftest.err)
14553   ac_status=$?
14554   cat out/conftest.err >&5
14555   echo "$as_me:14555: \$? = $ac_status" >&5
14556   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14557   then
14558     # The compiler can only warn and ignore the option if not recognized
14559     # So say no if there are warnings
14560     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14561     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14562     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14563       lt_cv_prog_compiler_c_o_F77=yes
14564     fi
14565   fi
14566   chmod u+w . 2>&5
14567   $rm conftest*
14568   # SGI C++ compiler will create directory out/ii_files/ for
14569   # template instantiation
14570   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14571   $rm out/* && rmdir out
14572   cd ..
14573   rmdir conftest
14574   $rm conftest*
14575
14576fi
14577{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14578echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14579
14580
14581hard_links="nottested"
14582if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14583  # do not overwrite the value of need_locks provided by the user
14584  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14585echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14586  hard_links=yes
14587  $rm conftest*
14588  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14589  touch conftest.a
14590  ln conftest.a conftest.b 2>&5 || hard_links=no
14591  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14592  { echo "$as_me:$LINENO: result: $hard_links" >&5
14593echo "${ECHO_T}$hard_links" >&6; }
14594  if test "$hard_links" = no; then
14595    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14596echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14597    need_locks=warn
14598  fi
14599else
14600  need_locks=no
14601fi
14602
14603{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14604echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14605
14606  runpath_var=
14607  allow_undefined_flag_F77=
14608  enable_shared_with_static_runtimes_F77=no
14609  archive_cmds_F77=
14610  archive_expsym_cmds_F77=
14611  old_archive_From_new_cmds_F77=
14612  old_archive_from_expsyms_cmds_F77=
14613  export_dynamic_flag_spec_F77=
14614  whole_archive_flag_spec_F77=
14615  thread_safe_flag_spec_F77=
14616  hardcode_libdir_flag_spec_F77=
14617  hardcode_libdir_flag_spec_ld_F77=
14618  hardcode_libdir_separator_F77=
14619  hardcode_direct_F77=no
14620  hardcode_minus_L_F77=no
14621  hardcode_shlibpath_var_F77=unsupported
14622  link_all_deplibs_F77=unknown
14623  hardcode_automatic_F77=no
14624  module_cmds_F77=
14625  module_expsym_cmds_F77=
14626  always_export_symbols_F77=no
14627  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14628  # include_expsyms should be a list of space-separated symbols to be *always*
14629  # included in the symbol list
14630  include_expsyms_F77=
14631  # exclude_expsyms can be an extended regexp of symbols to exclude
14632  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14633  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14634  # as well as any symbol that contains `d'.
14635  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14636  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14637  # platforms (ab)use it in PIC code, but their linkers get confused if
14638  # the symbol is explicitly referenced.  Since portable code cannot
14639  # rely on this symbol name, it's probably fine to never include it in
14640  # preloaded symbol tables.
14641  # Exclude shared library initialization/finalization symbols.
14642  extract_expsyms_cmds=
14643  # Just being paranoid about ensuring that cc_basename is set.
14644  for cc_temp in $compiler""; do
14645  case $cc_temp in
14646    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14647    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14648    \-*) ;;
14649    *) break;;
14650  esac
14651done
14652cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14653
14654  case $host_os in
14655  cygwin* | mingw* | pw32*)
14656    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14657    # When not using gcc, we currently assume that we are using
14658    # Microsoft Visual C++.
14659    if test "$GCC" != yes; then
14660      with_gnu_ld=no
14661    fi
14662    ;;
14663  interix*)
14664    # we just hope/assume this is gcc and not c89 (= MSVC++)
14665    with_gnu_ld=yes
14666    ;;
14667  openbsd*)
14668    with_gnu_ld=no
14669    ;;
14670  esac
14671
14672  ld_shlibs_F77=yes
14673  if test "$with_gnu_ld" = yes; then
14674    # If archive_cmds runs LD, not CC, wlarc should be empty
14675    wlarc='${wl}'
14676
14677    # Set some defaults for GNU ld with shared library support. These
14678    # are reset later if shared libraries are not supported. Putting them
14679    # here allows them to be overridden if necessary.
14680    runpath_var=LD_RUN_PATH
14681    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14682    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14683    # ancient GNU ld didn't support --whole-archive et. al.
14684    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14685	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14686      else
14687  	whole_archive_flag_spec_F77=
14688    fi
14689    supports_anon_versioning=no
14690    case `$LD -v 2>/dev/null` in
14691      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14692      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14693      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14694      *\ 2.11.*) ;; # other 2.11 versions
14695      *) supports_anon_versioning=yes ;;
14696    esac
14697
14698    # See if GNU ld supports shared libraries.
14699    case $host_os in
14700    aix[3-9]*)
14701      # On AIX/PPC, the GNU linker is very broken
14702      if test "$host_cpu" != ia64; then
14703	ld_shlibs_F77=no
14704	cat <<EOF 1>&2
14705
14706*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14707*** to be unable to reliably create shared libraries on AIX.
14708*** Therefore, libtool is disabling shared libraries support.  If you
14709*** really care for shared libraries, you may want to modify your PATH
14710*** so that a non-GNU linker is found, and then restart.
14711
14712EOF
14713      fi
14714      ;;
14715
14716    amigaos*)
14717      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)'
14718      hardcode_libdir_flag_spec_F77='-L$libdir'
14719      hardcode_minus_L_F77=yes
14720
14721      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14722      # that the semantics of dynamic libraries on AmigaOS, at least up
14723      # to version 4, is to share data among multiple programs linked
14724      # with the same dynamic library.  Since this doesn't match the
14725      # behavior of shared libraries on other platforms, we can't use
14726      # them.
14727      ld_shlibs_F77=no
14728      ;;
14729
14730    beos*)
14731      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14732	allow_undefined_flag_F77=unsupported
14733	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14734	# support --undefined.  This deserves some investigation.  FIXME
14735	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14736      else
14737	ld_shlibs_F77=no
14738      fi
14739      ;;
14740
14741    cygwin* | mingw* | pw32*)
14742      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14743      # as there is no search path for DLLs.
14744      hardcode_libdir_flag_spec_F77='-L$libdir'
14745      allow_undefined_flag_F77=unsupported
14746      always_export_symbols_F77=no
14747      enable_shared_with_static_runtimes_F77=yes
14748      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14749
14750      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14751        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14752	# If the export-symbols file already is a .def file (1st line
14753	# is EXPORTS), use it as is; otherwise, prepend...
14754	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14755	  cp $export_symbols $output_objdir/$soname.def;
14756	else
14757	  echo EXPORTS > $output_objdir/$soname.def;
14758	  cat $export_symbols >> $output_objdir/$soname.def;
14759	fi~
14760	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14761      else
14762	ld_shlibs_F77=no
14763      fi
14764      ;;
14765
14766    interix[3-9]*)
14767      hardcode_direct_F77=no
14768      hardcode_shlibpath_var_F77=no
14769      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14770      export_dynamic_flag_spec_F77='${wl}-E'
14771      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14772      # Instead, shared libraries are loaded at an image base (0x10000000 by
14773      # default) and relocated if they conflict, which is a slow very memory
14774      # consuming and fragmenting process.  To avoid this, we pick a random,
14775      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14776      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14777      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'
14778      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'
14779      ;;
14780
14781    gnu* | linux* | k*bsd*-gnu)
14782      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14783	tmp_addflag=
14784	case $cc_basename,$host_cpu in
14785	pgcc*)				# Portland Group C compiler
14786	  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'
14787	  tmp_addflag=' $pic_flag'
14788	  ;;
14789	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14790	  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'
14791	  tmp_addflag=' $pic_flag -Mnomain' ;;
14792	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14793	  tmp_addflag=' -i_dynamic' ;;
14794	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14795	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14796	ifc* | ifort*)			# Intel Fortran compiler
14797	  tmp_addflag=' -nofor_main' ;;
14798	esac
14799	case `$CC -V 2>&1 | sed 5q` in
14800	*Sun\ C*)			# Sun C 5.9
14801	  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'
14802	  tmp_sharedflag='-G' ;;
14803	*Sun\ F*)			# Sun Fortran 8.3
14804	  tmp_sharedflag='-G' ;;
14805	*)
14806	  tmp_sharedflag='-shared' ;;
14807	esac
14808	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14809
14810	if test $supports_anon_versioning = yes; then
14811	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14812  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14813  $echo "local: *; };" >> $output_objdir/$libname.ver~
14814	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14815	fi
14816	link_all_deplibs_F77=no
14817      else
14818	ld_shlibs_F77=no
14819      fi
14820      ;;
14821
14822    netbsd* | netbsdelf*-gnu)
14823      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14824	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14825	wlarc=
14826      else
14827	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14828	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14829      fi
14830      ;;
14831
14832    solaris*)
14833      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14834	ld_shlibs_F77=no
14835	cat <<EOF 1>&2
14836
14837*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14838*** create shared libraries on Solaris systems.  Therefore, libtool
14839*** is disabling shared libraries support.  We urge you to upgrade GNU
14840*** binutils to release 2.9.1 or newer.  Another option is to modify
14841*** your PATH or compiler configuration so that the native linker is
14842*** used, and then restart.
14843
14844EOF
14845      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14846	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14847	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14848      else
14849	ld_shlibs_F77=no
14850      fi
14851      ;;
14852
14853    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14854      case `$LD -v 2>&1` in
14855        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14856	ld_shlibs_F77=no
14857	cat <<_LT_EOF 1>&2
14858
14859*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14860*** reliably create shared libraries on SCO systems.  Therefore, libtool
14861*** is disabling shared libraries support.  We urge you to upgrade GNU
14862*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14863*** your PATH or compiler configuration so that the native linker is
14864*** used, and then restart.
14865
14866_LT_EOF
14867	;;
14868	*)
14869	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14870	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14871	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14872	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14873	  else
14874	    ld_shlibs_F77=no
14875	  fi
14876	;;
14877      esac
14878      ;;
14879
14880    sunos4*)
14881      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14882      wlarc=
14883      hardcode_direct_F77=yes
14884      hardcode_shlibpath_var_F77=no
14885      ;;
14886
14887    *)
14888      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14889	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14890	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14891      else
14892	ld_shlibs_F77=no
14893      fi
14894      ;;
14895    esac
14896
14897    if test "$ld_shlibs_F77" = no; then
14898      runpath_var=
14899      hardcode_libdir_flag_spec_F77=
14900      export_dynamic_flag_spec_F77=
14901      whole_archive_flag_spec_F77=
14902    fi
14903  else
14904    # PORTME fill in a description of your system's linker (not GNU ld)
14905    case $host_os in
14906    aix3*)
14907      allow_undefined_flag_F77=unsupported
14908      always_export_symbols_F77=yes
14909      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'
14910      # Note: this linker hardcodes the directories in LIBPATH if there
14911      # are no directories specified by -L.
14912      hardcode_minus_L_F77=yes
14913      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14914	# Neither direct hardcoding nor static linking is supported with a
14915	# broken collect2.
14916	hardcode_direct_F77=unsupported
14917      fi
14918      ;;
14919
14920    aix[4-9]*)
14921      if test "$host_cpu" = ia64; then
14922	# On IA64, the linker does run time linking by default, so we don't
14923	# have to do anything special.
14924	aix_use_runtimelinking=no
14925	exp_sym_flag='-Bexport'
14926	no_entry_flag=""
14927      else
14928	# If we're using GNU nm, then we don't want the "-C" option.
14929	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14930	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14931	  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'
14932	else
14933	  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'
14934	fi
14935	aix_use_runtimelinking=no
14936
14937	# Test if we are trying to use run time linking or normal
14938	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14939	# need to do runtime linking.
14940	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14941	  for ld_flag in $LDFLAGS; do
14942  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14943  	    aix_use_runtimelinking=yes
14944  	    break
14945  	  fi
14946	  done
14947	  ;;
14948	esac
14949
14950	exp_sym_flag='-bexport'
14951	no_entry_flag='-bnoentry'
14952      fi
14953
14954      # When large executables or shared objects are built, AIX ld can
14955      # have problems creating the table of contents.  If linking a library
14956      # or program results in "error TOC overflow" add -mminimal-toc to
14957      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14958      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14959
14960      archive_cmds_F77=''
14961      hardcode_direct_F77=yes
14962      hardcode_libdir_separator_F77=':'
14963      link_all_deplibs_F77=yes
14964
14965      if test "$GCC" = yes; then
14966	case $host_os in aix4.[012]|aix4.[012].*)
14967	# We only want to do this on AIX 4.2 and lower, the check
14968	# below for broken collect2 doesn't work under 4.3+
14969	  collect2name=`${CC} -print-prog-name=collect2`
14970	  if test -f "$collect2name" && \
14971  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14972	  then
14973  	  # We have reworked collect2
14974  	  :
14975	  else
14976  	  # We have old collect2
14977  	  hardcode_direct_F77=unsupported
14978  	  # It fails to find uninstalled libraries when the uninstalled
14979  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14980  	  # to unsupported forces relinking
14981  	  hardcode_minus_L_F77=yes
14982  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14983  	  hardcode_libdir_separator_F77=
14984	  fi
14985	  ;;
14986	esac
14987	shared_flag='-shared'
14988	if test "$aix_use_runtimelinking" = yes; then
14989	  shared_flag="$shared_flag "'${wl}-G'
14990	fi
14991      else
14992	# not using gcc
14993	if test "$host_cpu" = ia64; then
14994  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14995  	# chokes on -Wl,-G. The following line is correct:
14996	  shared_flag='-G'
14997	else
14998	  if test "$aix_use_runtimelinking" = yes; then
14999	    shared_flag='${wl}-G'
15000	  else
15001	    shared_flag='${wl}-bM:SRE'
15002	  fi
15003	fi
15004      fi
15005
15006      # It seems that -bexpall does not export symbols beginning with
15007      # underscore (_), so it is better to generate a list of symbols to export.
15008      always_export_symbols_F77=yes
15009      if test "$aix_use_runtimelinking" = yes; then
15010	# Warning - without using the other runtime loading flags (-brtl),
15011	# -berok will link without error, but may produce a broken library.
15012	allow_undefined_flag_F77='-berok'
15013       # Determine the default libpath from the value encoded in an empty executable.
15014       cat >conftest.$ac_ext <<_ACEOF
15015      program main
15016
15017      end
15018_ACEOF
15019rm -f conftest.$ac_objext conftest$ac_exeext
15020if { (ac_try="$ac_link"
15021case "(($ac_try" in
15022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15023  *) ac_try_echo=$ac_try;;
15024esac
15025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15026  (eval "$ac_link") 2>conftest.er1
15027  ac_status=$?
15028  grep -v '^ *+' conftest.er1 >conftest.err
15029  rm -f conftest.er1
15030  cat conftest.err >&5
15031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032  (exit $ac_status); } && {
15033	 test -z "$ac_f77_werror_flag" ||
15034	 test ! -s conftest.err
15035       } && test -s conftest$ac_exeext &&
15036       $as_test_x conftest$ac_exeext; then
15037
15038lt_aix_libpath_sed='
15039    /Import File Strings/,/^$/ {
15040	/^0/ {
15041	    s/^0  *\(.*\)$/\1/
15042	    p
15043	}
15044    }'
15045aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15046# Check for a 64-bit object if we didn't find anything.
15047if test -z "$aix_libpath"; then
15048  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15049fi
15050else
15051  echo "$as_me: failed program was:" >&5
15052sed 's/^/| /' conftest.$ac_ext >&5
15053
15054
15055fi
15056
15057rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15058      conftest$ac_exeext conftest.$ac_ext
15059if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15060
15061       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15062	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"
15063       else
15064	if test "$host_cpu" = ia64; then
15065	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15066	  allow_undefined_flag_F77="-z nodefs"
15067	  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"
15068	else
15069	 # Determine the default libpath from the value encoded in an empty executable.
15070	 cat >conftest.$ac_ext <<_ACEOF
15071      program main
15072
15073      end
15074_ACEOF
15075rm -f conftest.$ac_objext conftest$ac_exeext
15076if { (ac_try="$ac_link"
15077case "(($ac_try" in
15078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079  *) ac_try_echo=$ac_try;;
15080esac
15081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082  (eval "$ac_link") 2>conftest.er1
15083  ac_status=$?
15084  grep -v '^ *+' conftest.er1 >conftest.err
15085  rm -f conftest.er1
15086  cat conftest.err >&5
15087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088  (exit $ac_status); } && {
15089	 test -z "$ac_f77_werror_flag" ||
15090	 test ! -s conftest.err
15091       } && test -s conftest$ac_exeext &&
15092       $as_test_x conftest$ac_exeext; then
15093
15094lt_aix_libpath_sed='
15095    /Import File Strings/,/^$/ {
15096	/^0/ {
15097	    s/^0  *\(.*\)$/\1/
15098	    p
15099	}
15100    }'
15101aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15102# Check for a 64-bit object if we didn't find anything.
15103if test -z "$aix_libpath"; then
15104  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15105fi
15106else
15107  echo "$as_me: failed program was:" >&5
15108sed 's/^/| /' conftest.$ac_ext >&5
15109
15110
15111fi
15112
15113rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15114      conftest$ac_exeext conftest.$ac_ext
15115if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15116
15117	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15118	  # Warning - without using the other run time loading flags,
15119	  # -berok will link without error, but may produce a broken library.
15120	  no_undefined_flag_F77=' ${wl}-bernotok'
15121	  allow_undefined_flag_F77=' ${wl}-berok'
15122	  # Exported symbols can be pulled into shared objects from archives
15123	  whole_archive_flag_spec_F77='$convenience'
15124	  archive_cmds_need_lc_F77=yes
15125	  # This is similar to how AIX traditionally builds its shared libraries.
15126	  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'
15127	fi
15128      fi
15129      ;;
15130
15131    amigaos*)
15132      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)'
15133      hardcode_libdir_flag_spec_F77='-L$libdir'
15134      hardcode_minus_L_F77=yes
15135      # see comment about different semantics on the GNU ld section
15136      ld_shlibs_F77=no
15137      ;;
15138
15139    bsdi[45]*)
15140      export_dynamic_flag_spec_F77=-rdynamic
15141      ;;
15142
15143    cygwin* | mingw* | pw32*)
15144      # When not using gcc, we currently assume that we are using
15145      # Microsoft Visual C++.
15146      # hardcode_libdir_flag_spec is actually meaningless, as there is
15147      # no search path for DLLs.
15148      hardcode_libdir_flag_spec_F77=' '
15149      allow_undefined_flag_F77=unsupported
15150      # Tell ltmain to make .lib files, not .a files.
15151      libext=lib
15152      # Tell ltmain to make .dll files, not .so files.
15153      shrext_cmds=".dll"
15154      # FIXME: Setting linknames here is a bad hack.
15155      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15156      # The linker will automatically build a .lib file if we build a DLL.
15157      old_archive_From_new_cmds_F77='true'
15158      # FIXME: Should let the user specify the lib program.
15159      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15160      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15161      enable_shared_with_static_runtimes_F77=yes
15162      ;;
15163
15164    darwin* | rhapsody*)
15165      case $host_os in
15166        rhapsody* | darwin1.[012])
15167         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15168         ;;
15169       *) # Darwin 1.3 on
15170         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15171           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15172         else
15173           case ${MACOSX_DEPLOYMENT_TARGET} in
15174             10.[012])
15175               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15176               ;;
15177             10.*)
15178               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15179               ;;
15180           esac
15181         fi
15182         ;;
15183      esac
15184      archive_cmds_need_lc_F77=no
15185      hardcode_direct_F77=no
15186      hardcode_automatic_F77=yes
15187      hardcode_shlibpath_var_F77=unsupported
15188      whole_archive_flag_spec_F77=''
15189      link_all_deplibs_F77=yes
15190    if test "$GCC" = yes ; then
15191    	output_verbose_link_cmd='echo'
15192        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15193        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15194        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15195        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15196    else
15197      case $cc_basename in
15198        xlc*)
15199         output_verbose_link_cmd='echo'
15200         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15201         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15202          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15203         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}'
15204          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}'
15205          ;;
15206       *)
15207         ld_shlibs_F77=no
15208          ;;
15209      esac
15210    fi
15211      ;;
15212
15213    dgux*)
15214      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15215      hardcode_libdir_flag_spec_F77='-L$libdir'
15216      hardcode_shlibpath_var_F77=no
15217      ;;
15218
15219    freebsd1*)
15220      ld_shlibs_F77=no
15221      ;;
15222
15223    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15224    # support.  Future versions do this automatically, but an explicit c++rt0.o
15225    # does not break anything, and helps significantly (at the cost of a little
15226    # extra space).
15227    freebsd2.2*)
15228      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15229      hardcode_libdir_flag_spec_F77='-R$libdir'
15230      hardcode_direct_F77=yes
15231      hardcode_shlibpath_var_F77=no
15232      ;;
15233
15234    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15235    freebsd2*)
15236      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15237      hardcode_direct_F77=yes
15238      hardcode_minus_L_F77=yes
15239      hardcode_shlibpath_var_F77=no
15240      ;;
15241
15242    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15243    freebsd* | dragonfly*)
15244      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15245      hardcode_libdir_flag_spec_F77='-R$libdir'
15246      hardcode_direct_F77=yes
15247      hardcode_shlibpath_var_F77=no
15248      ;;
15249
15250    hpux9*)
15251      if test "$GCC" = yes; then
15252	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'
15253      else
15254	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'
15255      fi
15256      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15257      hardcode_libdir_separator_F77=:
15258      hardcode_direct_F77=yes
15259
15260      # hardcode_minus_L: Not really in the search PATH,
15261      # but as the default location of the library.
15262      hardcode_minus_L_F77=yes
15263      export_dynamic_flag_spec_F77='${wl}-E'
15264      ;;
15265
15266    hpux10*)
15267      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15268	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15269      else
15270	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15271      fi
15272      if test "$with_gnu_ld" = no; then
15273	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15274	hardcode_libdir_separator_F77=:
15275
15276	hardcode_direct_F77=yes
15277	export_dynamic_flag_spec_F77='${wl}-E'
15278
15279	# hardcode_minus_L: Not really in the search PATH,
15280	# but as the default location of the library.
15281	hardcode_minus_L_F77=yes
15282      fi
15283      ;;
15284
15285    hpux11*)
15286      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15287	case $host_cpu in
15288	hppa*64*)
15289	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15290	  ;;
15291	ia64*)
15292	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15293	  ;;
15294	*)
15295	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15296	  ;;
15297	esac
15298      else
15299	case $host_cpu in
15300	hppa*64*)
15301	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15302	  ;;
15303	ia64*)
15304	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15305	  ;;
15306	*)
15307	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15308	  ;;
15309	esac
15310      fi
15311      if test "$with_gnu_ld" = no; then
15312	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15313	hardcode_libdir_separator_F77=:
15314
15315	case $host_cpu in
15316	hppa*64*|ia64*)
15317	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15318	  hardcode_direct_F77=no
15319	  hardcode_shlibpath_var_F77=no
15320	  ;;
15321	*)
15322	  hardcode_direct_F77=yes
15323	  export_dynamic_flag_spec_F77='${wl}-E'
15324
15325	  # hardcode_minus_L: Not really in the search PATH,
15326	  # but as the default location of the library.
15327	  hardcode_minus_L_F77=yes
15328	  ;;
15329	esac
15330      fi
15331      ;;
15332
15333    irix5* | irix6* | nonstopux*)
15334      if test "$GCC" = yes; then
15335	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'
15336      else
15337	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'
15338	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15339      fi
15340      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15341      hardcode_libdir_separator_F77=:
15342      link_all_deplibs_F77=yes
15343      ;;
15344
15345    netbsd* | netbsdelf*-gnu)
15346      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15347	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15348      else
15349	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15350      fi
15351      hardcode_libdir_flag_spec_F77='-R$libdir'
15352      hardcode_direct_F77=yes
15353      hardcode_shlibpath_var_F77=no
15354      ;;
15355
15356    newsos6)
15357      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15358      hardcode_direct_F77=yes
15359      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15360      hardcode_libdir_separator_F77=:
15361      hardcode_shlibpath_var_F77=no
15362      ;;
15363
15364    openbsd*)
15365      if test -f /usr/libexec/ld.so; then
15366	hardcode_direct_F77=yes
15367	hardcode_shlibpath_var_F77=no
15368	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15369	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15370	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15371	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15372	  export_dynamic_flag_spec_F77='${wl}-E'
15373	else
15374	  case $host_os in
15375	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15376	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15377	     hardcode_libdir_flag_spec_F77='-R$libdir'
15378	     ;;
15379	   *)
15380	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15381	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15382	     ;;
15383	  esac
15384        fi
15385      else
15386	ld_shlibs_F77=no
15387      fi
15388      ;;
15389
15390    os2*)
15391      hardcode_libdir_flag_spec_F77='-L$libdir'
15392      hardcode_minus_L_F77=yes
15393      allow_undefined_flag_F77=unsupported
15394      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'
15395      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15396      ;;
15397
15398    osf3*)
15399      if test "$GCC" = yes; then
15400	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15401	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'
15402      else
15403	allow_undefined_flag_F77=' -expect_unresolved \*'
15404	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'
15405      fi
15406      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15407      hardcode_libdir_separator_F77=:
15408      ;;
15409
15410    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15411      if test "$GCC" = yes; then
15412	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15413	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'
15414	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15415      else
15416	allow_undefined_flag_F77=' -expect_unresolved \*'
15417	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'
15418	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~
15419	$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'
15420
15421	# Both c and cxx compiler support -rpath directly
15422	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15423      fi
15424      hardcode_libdir_separator_F77=:
15425      ;;
15426
15427    solaris*)
15428      no_undefined_flag_F77=' -z text'
15429      if test "$GCC" = yes; then
15430	wlarc='${wl}'
15431	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15432	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15433	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15434      else
15435	wlarc=''
15436	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15437	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15438  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15439      fi
15440      hardcode_libdir_flag_spec_F77='-R$libdir'
15441      hardcode_shlibpath_var_F77=no
15442      case $host_os in
15443      solaris2.[0-5] | solaris2.[0-5].*) ;;
15444      *)
15445	# The compiler driver will combine and reorder linker options,
15446	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15447	# but is careful enough not to reorder.
15448 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15449	if test "$GCC" = yes; then
15450	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15451	else
15452	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15453	fi
15454	;;
15455      esac
15456      link_all_deplibs_F77=yes
15457      ;;
15458
15459    sunos4*)
15460      if test "x$host_vendor" = xsequent; then
15461	# Use $CC to link under sequent, because it throws in some extra .o
15462	# files that make .init and .fini sections work.
15463	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15464      else
15465	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15466      fi
15467      hardcode_libdir_flag_spec_F77='-L$libdir'
15468      hardcode_direct_F77=yes
15469      hardcode_minus_L_F77=yes
15470      hardcode_shlibpath_var_F77=no
15471      ;;
15472
15473    sysv4)
15474      case $host_vendor in
15475	sni)
15476	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15477	  hardcode_direct_F77=yes # is this really true???
15478	;;
15479	siemens)
15480	  ## LD is ld it makes a PLAMLIB
15481	  ## CC just makes a GrossModule.
15482	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15483	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15484	  hardcode_direct_F77=no
15485        ;;
15486	motorola)
15487	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15488	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15489	;;
15490      esac
15491      runpath_var='LD_RUN_PATH'
15492      hardcode_shlibpath_var_F77=no
15493      ;;
15494
15495    sysv4.3*)
15496      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15497      hardcode_shlibpath_var_F77=no
15498      export_dynamic_flag_spec_F77='-Bexport'
15499      ;;
15500
15501    sysv4*MP*)
15502      if test -d /usr/nec; then
15503	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15504	hardcode_shlibpath_var_F77=no
15505	runpath_var=LD_RUN_PATH
15506	hardcode_runpath_var=yes
15507	ld_shlibs_F77=yes
15508      fi
15509      ;;
15510
15511    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15512      no_undefined_flag_F77='${wl}-z,text'
15513      archive_cmds_need_lc_F77=no
15514      hardcode_shlibpath_var_F77=no
15515      runpath_var='LD_RUN_PATH'
15516
15517      if test "$GCC" = yes; then
15518	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15519	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15520      else
15521	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15522	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15523      fi
15524      ;;
15525
15526    sysv5* | sco3.2v5* | sco5v6*)
15527      # Note: We can NOT use -z defs as we might desire, because we do not
15528      # link with -lc, and that would cause any symbols used from libc to
15529      # always be unresolved, which means just about no library would
15530      # ever link correctly.  If we're not using GNU ld we use -z text
15531      # though, which does catch some bad symbols but isn't as heavy-handed
15532      # as -z defs.
15533      no_undefined_flag_F77='${wl}-z,text'
15534      allow_undefined_flag_F77='${wl}-z,nodefs'
15535      archive_cmds_need_lc_F77=no
15536      hardcode_shlibpath_var_F77=no
15537      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15538      hardcode_libdir_separator_F77=':'
15539      link_all_deplibs_F77=yes
15540      export_dynamic_flag_spec_F77='${wl}-Bexport'
15541      runpath_var='LD_RUN_PATH'
15542
15543      if test "$GCC" = yes; then
15544	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15545	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15546      else
15547	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15548	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15549      fi
15550      ;;
15551
15552    uts4*)
15553      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15554      hardcode_libdir_flag_spec_F77='-L$libdir'
15555      hardcode_shlibpath_var_F77=no
15556      ;;
15557
15558    *)
15559      ld_shlibs_F77=no
15560      ;;
15561    esac
15562  fi
15563
15564{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15565echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15566test "$ld_shlibs_F77" = no && can_build_shared=no
15567
15568#
15569# Do we need to explicitly link libc?
15570#
15571case "x$archive_cmds_need_lc_F77" in
15572x|xyes)
15573  # Assume -lc should be added
15574  archive_cmds_need_lc_F77=yes
15575
15576  if test "$enable_shared" = yes && test "$GCC" = yes; then
15577    case $archive_cmds_F77 in
15578    *'~'*)
15579      # FIXME: we may have to deal with multi-command sequences.
15580      ;;
15581    '$CC '*)
15582      # Test whether the compiler implicitly links with -lc since on some
15583      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15584      # to ld, don't add -lc before -lgcc.
15585      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15586echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15587      $rm conftest*
15588      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15589
15590      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15591  (eval $ac_compile) 2>&5
15592  ac_status=$?
15593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594  (exit $ac_status); } 2>conftest.err; then
15595        soname=conftest
15596        lib=conftest
15597        libobjs=conftest.$ac_objext
15598        deplibs=
15599        wl=$lt_prog_compiler_wl_F77
15600	pic_flag=$lt_prog_compiler_pic_F77
15601        compiler_flags=-v
15602        linker_flags=-v
15603        verstring=
15604        output_objdir=.
15605        libname=conftest
15606        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15607        allow_undefined_flag_F77=
15608        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15609  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15610  ac_status=$?
15611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612  (exit $ac_status); }
15613        then
15614	  archive_cmds_need_lc_F77=no
15615        else
15616	  archive_cmds_need_lc_F77=yes
15617        fi
15618        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15619      else
15620        cat conftest.err 1>&5
15621      fi
15622      $rm conftest*
15623      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15624echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15625      ;;
15626    esac
15627  fi
15628  ;;
15629esac
15630
15631{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15632echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15633library_names_spec=
15634libname_spec='lib$name'
15635soname_spec=
15636shrext_cmds=".so"
15637postinstall_cmds=
15638postuninstall_cmds=
15639finish_cmds=
15640finish_eval=
15641shlibpath_var=
15642shlibpath_overrides_runpath=unknown
15643version_type=none
15644dynamic_linker="$host_os ld.so"
15645sys_lib_dlsearch_path_spec="/lib /usr/lib"
15646
15647need_lib_prefix=unknown
15648hardcode_into_libs=no
15649
15650# when you set need_version to no, make sure it does not cause -set_version
15651# flags to be left without arguments
15652need_version=unknown
15653
15654case $host_os in
15655aix3*)
15656  version_type=linux
15657  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15658  shlibpath_var=LIBPATH
15659
15660  # AIX 3 has no versioning support, so we append a major version to the name.
15661  soname_spec='${libname}${release}${shared_ext}$major'
15662  ;;
15663
15664aix[4-9]*)
15665  version_type=linux
15666  need_lib_prefix=no
15667  need_version=no
15668  hardcode_into_libs=yes
15669  if test "$host_cpu" = ia64; then
15670    # AIX 5 supports IA64
15671    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15672    shlibpath_var=LD_LIBRARY_PATH
15673  else
15674    # With GCC up to 2.95.x, collect2 would create an import file
15675    # for dependence libraries.  The import file would start with
15676    # the line `#! .'.  This would cause the generated library to
15677    # depend on `.', always an invalid library.  This was fixed in
15678    # development snapshots of GCC prior to 3.0.
15679    case $host_os in
15680      aix4 | aix4.[01] | aix4.[01].*)
15681      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15682	   echo ' yes '
15683	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15684	:
15685      else
15686	can_build_shared=no
15687      fi
15688      ;;
15689    esac
15690    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15691    # soname into executable. Probably we can add versioning support to
15692    # collect2, so additional links can be useful in future.
15693    if test "$aix_use_runtimelinking" = yes; then
15694      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15695      # instead of lib<name>.a to let people know that these are not
15696      # typical AIX shared libraries.
15697      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15698    else
15699      # We preserve .a as extension for shared libraries through AIX4.2
15700      # and later when we are not doing run time linking.
15701      library_names_spec='${libname}${release}.a $libname.a'
15702      soname_spec='${libname}${release}${shared_ext}$major'
15703    fi
15704    shlibpath_var=LIBPATH
15705  fi
15706  ;;
15707
15708amigaos*)
15709  library_names_spec='$libname.ixlibrary $libname.a'
15710  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15711  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'
15712  ;;
15713
15714beos*)
15715  library_names_spec='${libname}${shared_ext}'
15716  dynamic_linker="$host_os ld.so"
15717  shlibpath_var=LIBRARY_PATH
15718  ;;
15719
15720bsdi[45]*)
15721  version_type=linux
15722  need_version=no
15723  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724  soname_spec='${libname}${release}${shared_ext}$major'
15725  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15726  shlibpath_var=LD_LIBRARY_PATH
15727  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15728  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15729  # the default ld.so.conf also contains /usr/contrib/lib and
15730  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15731  # libtool to hard-code these into programs
15732  ;;
15733
15734cygwin* | mingw* | pw32*)
15735  version_type=windows
15736  shrext_cmds=".dll"
15737  need_version=no
15738  need_lib_prefix=no
15739
15740  case $GCC,$host_os in
15741  yes,cygwin* | yes,mingw* | yes,pw32*)
15742    library_names_spec='$libname.dll.a'
15743    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15744    postinstall_cmds='base_file=`basename \${file}`~
15745      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15746      dldir=$destdir/`dirname \$dlpath`~
15747      test -d \$dldir || mkdir -p \$dldir~
15748      $install_prog $dir/$dlname \$dldir/$dlname~
15749      chmod a+x \$dldir/$dlname'
15750    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15751      dlpath=$dir/\$dldll~
15752       $rm \$dlpath'
15753    shlibpath_overrides_runpath=yes
15754
15755    case $host_os in
15756    cygwin*)
15757      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15758      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15759      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15760      ;;
15761    mingw*)
15762      # MinGW DLLs use traditional 'lib' prefix
15763      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15764      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15765      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15766        # It is most probably a Windows format PATH printed by
15767        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15768        # path with ; separators, and with drive letters. We can handle the
15769        # drive letters (cygwin fileutils understands them), so leave them,
15770        # especially as we might pass files found there to a mingw objdump,
15771        # which wouldn't understand a cygwinified path. Ahh.
15772        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15773      else
15774        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15775      fi
15776      ;;
15777    pw32*)
15778      # pw32 DLLs use 'pw' prefix rather than 'lib'
15779      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15780      ;;
15781    esac
15782    ;;
15783
15784  *)
15785    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15786    ;;
15787  esac
15788  dynamic_linker='Win32 ld.exe'
15789  # FIXME: first we should search . and the directory the executable is in
15790  shlibpath_var=PATH
15791  ;;
15792
15793darwin* | rhapsody*)
15794  dynamic_linker="$host_os dyld"
15795  version_type=darwin
15796  need_lib_prefix=no
15797  need_version=no
15798  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15799  soname_spec='${libname}${release}${major}$shared_ext'
15800  shlibpath_overrides_runpath=yes
15801  shlibpath_var=DYLD_LIBRARY_PATH
15802  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15803
15804  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15805  ;;
15806
15807dgux*)
15808  version_type=linux
15809  need_lib_prefix=no
15810  need_version=no
15811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15812  soname_spec='${libname}${release}${shared_ext}$major'
15813  shlibpath_var=LD_LIBRARY_PATH
15814  ;;
15815
15816freebsd1*)
15817  dynamic_linker=no
15818  ;;
15819
15820freebsd* | dragonfly*)
15821  # DragonFly does not have aout.  When/if they implement a new
15822  # versioning mechanism, adjust this.
15823  if test -x /usr/bin/objformat; then
15824    objformat=`/usr/bin/objformat`
15825  else
15826    case $host_os in
15827    freebsd[123]*) objformat=aout ;;
15828    *) objformat=elf ;;
15829    esac
15830  fi
15831  version_type=freebsd-$objformat
15832  case $version_type in
15833    freebsd-elf*)
15834      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15835      need_version=no
15836      need_lib_prefix=no
15837      ;;
15838    freebsd-*)
15839      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15840      need_version=yes
15841      ;;
15842  esac
15843  shlibpath_var=LD_LIBRARY_PATH
15844  case $host_os in
15845  freebsd2*)
15846    shlibpath_overrides_runpath=yes
15847    ;;
15848  freebsd3.[01]* | freebsdelf3.[01]*)
15849    shlibpath_overrides_runpath=yes
15850    hardcode_into_libs=yes
15851    ;;
15852  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15853  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15854    shlibpath_overrides_runpath=no
15855    hardcode_into_libs=yes
15856    ;;
15857  *) # from 4.6 on, and DragonFly
15858    shlibpath_overrides_runpath=yes
15859    hardcode_into_libs=yes
15860    ;;
15861  esac
15862  ;;
15863
15864gnu*)
15865  version_type=linux
15866  need_lib_prefix=no
15867  need_version=no
15868  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15869  soname_spec='${libname}${release}${shared_ext}$major'
15870  shlibpath_var=LD_LIBRARY_PATH
15871  hardcode_into_libs=yes
15872  ;;
15873
15874hpux9* | hpux10* | hpux11*)
15875  # Give a soname corresponding to the major version so that dld.sl refuses to
15876  # link against other versions.
15877  version_type=sunos
15878  need_lib_prefix=no
15879  need_version=no
15880  case $host_cpu in
15881  ia64*)
15882    shrext_cmds='.so'
15883    hardcode_into_libs=yes
15884    dynamic_linker="$host_os dld.so"
15885    shlibpath_var=LD_LIBRARY_PATH
15886    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15887    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15888    soname_spec='${libname}${release}${shared_ext}$major'
15889    if test "X$HPUX_IA64_MODE" = X32; then
15890      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15891    else
15892      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15893    fi
15894    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15895    ;;
15896   hppa*64*)
15897     shrext_cmds='.sl'
15898     hardcode_into_libs=yes
15899     dynamic_linker="$host_os dld.sl"
15900     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15901     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15902     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15903     soname_spec='${libname}${release}${shared_ext}$major'
15904     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15905     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15906     ;;
15907   *)
15908    shrext_cmds='.sl'
15909    dynamic_linker="$host_os dld.sl"
15910    shlibpath_var=SHLIB_PATH
15911    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15912    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913    soname_spec='${libname}${release}${shared_ext}$major'
15914    ;;
15915  esac
15916  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15917  postinstall_cmds='chmod 555 $lib'
15918  ;;
15919
15920interix[3-9]*)
15921  version_type=linux
15922  need_lib_prefix=no
15923  need_version=no
15924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15925  soname_spec='${libname}${release}${shared_ext}$major'
15926  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15927  shlibpath_var=LD_LIBRARY_PATH
15928  shlibpath_overrides_runpath=no
15929  hardcode_into_libs=yes
15930  ;;
15931
15932irix5* | irix6* | nonstopux*)
15933  case $host_os in
15934    nonstopux*) version_type=nonstopux ;;
15935    *)
15936	if test "$lt_cv_prog_gnu_ld" = yes; then
15937		version_type=linux
15938	else
15939		version_type=irix
15940	fi ;;
15941  esac
15942  need_lib_prefix=no
15943  need_version=no
15944  soname_spec='${libname}${release}${shared_ext}$major'
15945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15946  case $host_os in
15947  irix5* | nonstopux*)
15948    libsuff= shlibsuff=
15949    ;;
15950  *)
15951    case $LD in # libtool.m4 will add one of these switches to LD
15952    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15953      libsuff= shlibsuff= libmagic=32-bit;;
15954    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15955      libsuff=32 shlibsuff=N32 libmagic=N32;;
15956    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15957      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15958    *) libsuff= shlibsuff= libmagic=never-match;;
15959    esac
15960    ;;
15961  esac
15962  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15963  shlibpath_overrides_runpath=no
15964  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15965  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15966  hardcode_into_libs=yes
15967  ;;
15968
15969# No shared lib support for Linux oldld, aout, or coff.
15970linux*oldld* | linux*aout* | linux*coff*)
15971  dynamic_linker=no
15972  ;;
15973
15974# This must be Linux ELF.
15975linux* | k*bsd*-gnu)
15976  version_type=linux
15977  need_lib_prefix=no
15978  need_version=no
15979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15980  soname_spec='${libname}${release}${shared_ext}$major'
15981  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15982  shlibpath_var=LD_LIBRARY_PATH
15983  shlibpath_overrides_runpath=no
15984  # This implies no fast_install, which is unacceptable.
15985  # Some rework will be needed to allow for fast_install
15986  # before this can be enabled.
15987  hardcode_into_libs=yes
15988
15989  # Append ld.so.conf contents to the search path
15990  if test -f /etc/ld.so.conf; then
15991    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' ' '`
15992    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15993  fi
15994
15995  # We used to test for /lib/ld.so.1 and disable shared libraries on
15996  # powerpc, because MkLinux only supported shared libraries with the
15997  # GNU dynamic linker.  Since this was broken with cross compilers,
15998  # most powerpc-linux boxes support dynamic linking these days and
15999  # people can always --disable-shared, the test was removed, and we
16000  # assume the GNU/Linux dynamic linker is in use.
16001  dynamic_linker='GNU/Linux ld.so'
16002  ;;
16003
16004netbsdelf*-gnu)
16005  version_type=linux
16006  need_lib_prefix=no
16007  need_version=no
16008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16009  soname_spec='${libname}${release}${shared_ext}$major'
16010  shlibpath_var=LD_LIBRARY_PATH
16011  shlibpath_overrides_runpath=no
16012  hardcode_into_libs=yes
16013  dynamic_linker='NetBSD ld.elf_so'
16014  ;;
16015
16016netbsd*)
16017  version_type=sunos
16018  need_lib_prefix=no
16019  need_version=no
16020  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16021    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16022    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16023    dynamic_linker='NetBSD (a.out) ld.so'
16024  else
16025    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16026    soname_spec='${libname}${release}${shared_ext}$major'
16027    dynamic_linker='NetBSD ld.elf_so'
16028  fi
16029  shlibpath_var=LD_LIBRARY_PATH
16030  shlibpath_overrides_runpath=yes
16031  hardcode_into_libs=yes
16032  ;;
16033
16034newsos6)
16035  version_type=linux
16036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16037  shlibpath_var=LD_LIBRARY_PATH
16038  shlibpath_overrides_runpath=yes
16039  ;;
16040
16041nto-qnx*)
16042  version_type=linux
16043  need_lib_prefix=no
16044  need_version=no
16045  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16046  soname_spec='${libname}${release}${shared_ext}$major'
16047  shlibpath_var=LD_LIBRARY_PATH
16048  shlibpath_overrides_runpath=yes
16049  ;;
16050
16051openbsd*)
16052  version_type=sunos
16053  sys_lib_dlsearch_path_spec="/usr/lib"
16054  need_lib_prefix=no
16055  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16056  case $host_os in
16057    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16058    *)                         need_version=no  ;;
16059  esac
16060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16061  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16062  shlibpath_var=LD_LIBRARY_PATH
16063  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16064    case $host_os in
16065      openbsd2.[89] | openbsd2.[89].*)
16066	shlibpath_overrides_runpath=no
16067	;;
16068      *)
16069	shlibpath_overrides_runpath=yes
16070	;;
16071      esac
16072  else
16073    shlibpath_overrides_runpath=yes
16074  fi
16075  ;;
16076
16077os2*)
16078  libname_spec='$name'
16079  shrext_cmds=".dll"
16080  need_lib_prefix=no
16081  library_names_spec='$libname${shared_ext} $libname.a'
16082  dynamic_linker='OS/2 ld.exe'
16083  shlibpath_var=LIBPATH
16084  ;;
16085
16086osf3* | osf4* | osf5*)
16087  version_type=osf
16088  need_lib_prefix=no
16089  need_version=no
16090  soname_spec='${libname}${release}${shared_ext}$major'
16091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16092  shlibpath_var=LD_LIBRARY_PATH
16093  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16094  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16095  ;;
16096
16097rdos*)
16098  dynamic_linker=no
16099  ;;
16100
16101solaris*)
16102  version_type=linux
16103  need_lib_prefix=no
16104  need_version=no
16105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16106  soname_spec='${libname}${release}${shared_ext}$major'
16107  shlibpath_var=LD_LIBRARY_PATH
16108  shlibpath_overrides_runpath=yes
16109  hardcode_into_libs=yes
16110  # ldd complains unless libraries are executable
16111  postinstall_cmds='chmod +x $lib'
16112  ;;
16113
16114sunos4*)
16115  version_type=sunos
16116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16117  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16118  shlibpath_var=LD_LIBRARY_PATH
16119  shlibpath_overrides_runpath=yes
16120  if test "$with_gnu_ld" = yes; then
16121    need_lib_prefix=no
16122  fi
16123  need_version=yes
16124  ;;
16125
16126sysv4 | sysv4.3*)
16127  version_type=linux
16128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129  soname_spec='${libname}${release}${shared_ext}$major'
16130  shlibpath_var=LD_LIBRARY_PATH
16131  case $host_vendor in
16132    sni)
16133      shlibpath_overrides_runpath=no
16134      need_lib_prefix=no
16135      export_dynamic_flag_spec='${wl}-Blargedynsym'
16136      runpath_var=LD_RUN_PATH
16137      ;;
16138    siemens)
16139      need_lib_prefix=no
16140      ;;
16141    motorola)
16142      need_lib_prefix=no
16143      need_version=no
16144      shlibpath_overrides_runpath=no
16145      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16146      ;;
16147  esac
16148  ;;
16149
16150sysv4*MP*)
16151  if test -d /usr/nec ;then
16152    version_type=linux
16153    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16154    soname_spec='$libname${shared_ext}.$major'
16155    shlibpath_var=LD_LIBRARY_PATH
16156  fi
16157  ;;
16158
16159sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16160  version_type=freebsd-elf
16161  need_lib_prefix=no
16162  need_version=no
16163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16164  soname_spec='${libname}${release}${shared_ext}$major'
16165  shlibpath_var=LD_LIBRARY_PATH
16166  hardcode_into_libs=yes
16167  if test "$with_gnu_ld" = yes; then
16168    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16169    shlibpath_overrides_runpath=no
16170  else
16171    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16172    shlibpath_overrides_runpath=yes
16173    case $host_os in
16174      sco3.2v5*)
16175        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16176	;;
16177    esac
16178  fi
16179  sys_lib_dlsearch_path_spec='/usr/lib'
16180  ;;
16181
16182uts4*)
16183  version_type=linux
16184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16185  soname_spec='${libname}${release}${shared_ext}$major'
16186  shlibpath_var=LD_LIBRARY_PATH
16187  ;;
16188
16189*)
16190  dynamic_linker=no
16191  ;;
16192esac
16193{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16194echo "${ECHO_T}$dynamic_linker" >&6; }
16195test "$dynamic_linker" = no && can_build_shared=no
16196
16197if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16198  echo $ECHO_N "(cached) $ECHO_C" >&6
16199else
16200  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16201fi
16202
16203sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16204if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16205  echo $ECHO_N "(cached) $ECHO_C" >&6
16206else
16207  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16208fi
16209
16210sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16211
16212variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16213if test "$GCC" = yes; then
16214  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16215fi
16216
16217{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16218echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16219hardcode_action_F77=
16220if test -n "$hardcode_libdir_flag_spec_F77" || \
16221   test -n "$runpath_var_F77" || \
16222   test "X$hardcode_automatic_F77" = "Xyes" ; then
16223
16224  # We can hardcode non-existant directories.
16225  if test "$hardcode_direct_F77" != no &&
16226     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16227     # have to relink, otherwise we might link with an installed library
16228     # when we should be linking with a yet-to-be-installed one
16229     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16230     test "$hardcode_minus_L_F77" != no; then
16231    # Linking always hardcodes the temporary library directory.
16232    hardcode_action_F77=relink
16233  else
16234    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16235    hardcode_action_F77=immediate
16236  fi
16237else
16238  # We cannot hardcode anything, or else we can only hardcode existing
16239  # directories.
16240  hardcode_action_F77=unsupported
16241fi
16242{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16243echo "${ECHO_T}$hardcode_action_F77" >&6; }
16244
16245if test "$hardcode_action_F77" = relink; then
16246  # Fast installation is not supported
16247  enable_fast_install=no
16248elif test "$shlibpath_overrides_runpath" = yes ||
16249     test "$enable_shared" = no; then
16250  # Fast installation is not necessary
16251  enable_fast_install=needless
16252fi
16253
16254
16255# The else clause should only fire when bootstrapping the
16256# libtool distribution, otherwise you forgot to ship ltmain.sh
16257# with your package, and you will get complaints that there are
16258# no rules to generate ltmain.sh.
16259if test -f "$ltmain"; then
16260  # See if we are running on zsh, and set the options which allow our commands through
16261  # without removal of \ escapes.
16262  if test -n "${ZSH_VERSION+set}" ; then
16263    setopt NO_GLOB_SUBST
16264  fi
16265  # Now quote all the things that may contain metacharacters while being
16266  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16267  # variables and quote the copies for generation of the libtool script.
16268  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16269    SED SHELL STRIP \
16270    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16271    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16272    deplibs_check_method reload_flag reload_cmds need_locks \
16273    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16274    lt_cv_sys_global_symbol_to_c_name_address \
16275    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16276    old_postinstall_cmds old_postuninstall_cmds \
16277    compiler_F77 \
16278    CC_F77 \
16279    LD_F77 \
16280    lt_prog_compiler_wl_F77 \
16281    lt_prog_compiler_pic_F77 \
16282    lt_prog_compiler_static_F77 \
16283    lt_prog_compiler_no_builtin_flag_F77 \
16284    export_dynamic_flag_spec_F77 \
16285    thread_safe_flag_spec_F77 \
16286    whole_archive_flag_spec_F77 \
16287    enable_shared_with_static_runtimes_F77 \
16288    old_archive_cmds_F77 \
16289    old_archive_from_new_cmds_F77 \
16290    predep_objects_F77 \
16291    postdep_objects_F77 \
16292    predeps_F77 \
16293    postdeps_F77 \
16294    compiler_lib_search_path_F77 \
16295    compiler_lib_search_dirs_F77 \
16296    archive_cmds_F77 \
16297    archive_expsym_cmds_F77 \
16298    postinstall_cmds_F77 \
16299    postuninstall_cmds_F77 \
16300    old_archive_from_expsyms_cmds_F77 \
16301    allow_undefined_flag_F77 \
16302    no_undefined_flag_F77 \
16303    export_symbols_cmds_F77 \
16304    hardcode_libdir_flag_spec_F77 \
16305    hardcode_libdir_flag_spec_ld_F77 \
16306    hardcode_libdir_separator_F77 \
16307    hardcode_automatic_F77 \
16308    module_cmds_F77 \
16309    module_expsym_cmds_F77 \
16310    lt_cv_prog_compiler_c_o_F77 \
16311    fix_srcfile_path_F77 \
16312    exclude_expsyms_F77 \
16313    include_expsyms_F77; do
16314
16315    case $var in
16316    old_archive_cmds_F77 | \
16317    old_archive_from_new_cmds_F77 | \
16318    archive_cmds_F77 | \
16319    archive_expsym_cmds_F77 | \
16320    module_cmds_F77 | \
16321    module_expsym_cmds_F77 | \
16322    old_archive_from_expsyms_cmds_F77 | \
16323    export_symbols_cmds_F77 | \
16324    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16325    postinstall_cmds | postuninstall_cmds | \
16326    old_postinstall_cmds | old_postuninstall_cmds | \
16327    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16328      # Double-quote double-evaled strings.
16329      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16330      ;;
16331    *)
16332      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16333      ;;
16334    esac
16335  done
16336
16337  case $lt_echo in
16338  *'\$0 --fallback-echo"')
16339    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16340    ;;
16341  esac
16342
16343cfgfile="$ofile"
16344
16345  cat <<__EOF__ >> "$cfgfile"
16346# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16347
16348# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16349
16350# Shell to use when invoking shell scripts.
16351SHELL=$lt_SHELL
16352
16353# Whether or not to build shared libraries.
16354build_libtool_libs=$enable_shared
16355
16356# Whether or not to build static libraries.
16357build_old_libs=$enable_static
16358
16359# Whether or not to add -lc for building shared libraries.
16360build_libtool_need_lc=$archive_cmds_need_lc_F77
16361
16362# Whether or not to disallow shared libs when runtime libs are static
16363allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16364
16365# Whether or not to optimize for fast installation.
16366fast_install=$enable_fast_install
16367
16368# The host system.
16369host_alias=$host_alias
16370host=$host
16371host_os=$host_os
16372
16373# The build system.
16374build_alias=$build_alias
16375build=$build
16376build_os=$build_os
16377
16378# An echo program that does not interpret backslashes.
16379echo=$lt_echo
16380
16381# The archiver.
16382AR=$lt_AR
16383AR_FLAGS=$lt_AR_FLAGS
16384
16385# A C compiler.
16386LTCC=$lt_LTCC
16387
16388# LTCC compiler flags.
16389LTCFLAGS=$lt_LTCFLAGS
16390
16391# A language-specific compiler.
16392CC=$lt_compiler_F77
16393
16394# Is the compiler the GNU C compiler?
16395with_gcc=$GCC_F77
16396
16397# An ERE matcher.
16398EGREP=$lt_EGREP
16399
16400# The linker used to build libraries.
16401LD=$lt_LD_F77
16402
16403# Whether we need hard or soft links.
16404LN_S=$lt_LN_S
16405
16406# A BSD-compatible nm program.
16407NM=$lt_NM
16408
16409# A symbol stripping program
16410STRIP=$lt_STRIP
16411
16412# Used to examine libraries when file_magic_cmd begins "file"
16413MAGIC_CMD=$MAGIC_CMD
16414
16415# Used on cygwin: DLL creation program.
16416DLLTOOL="$DLLTOOL"
16417
16418# Used on cygwin: object dumper.
16419OBJDUMP="$OBJDUMP"
16420
16421# Used on cygwin: assembler.
16422AS="$AS"
16423
16424# The name of the directory that contains temporary libtool files.
16425objdir=$objdir
16426
16427# How to create reloadable object files.
16428reload_flag=$lt_reload_flag
16429reload_cmds=$lt_reload_cmds
16430
16431# How to pass a linker flag through the compiler.
16432wl=$lt_lt_prog_compiler_wl_F77
16433
16434# Object file suffix (normally "o").
16435objext="$ac_objext"
16436
16437# Old archive suffix (normally "a").
16438libext="$libext"
16439
16440# Shared library suffix (normally ".so").
16441shrext_cmds='$shrext_cmds'
16442
16443# Executable file suffix (normally "").
16444exeext="$exeext"
16445
16446# Additional compiler flags for building library objects.
16447pic_flag=$lt_lt_prog_compiler_pic_F77
16448pic_mode=$pic_mode
16449
16450# What is the maximum length of a command?
16451max_cmd_len=$lt_cv_sys_max_cmd_len
16452
16453# Does compiler simultaneously support -c and -o options?
16454compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16455
16456# Must we lock files when doing compilation?
16457need_locks=$lt_need_locks
16458
16459# Do we need the lib prefix for modules?
16460need_lib_prefix=$need_lib_prefix
16461
16462# Do we need a version for libraries?
16463need_version=$need_version
16464
16465# Whether dlopen is supported.
16466dlopen_support=$enable_dlopen
16467
16468# Whether dlopen of programs is supported.
16469dlopen_self=$enable_dlopen_self
16470
16471# Whether dlopen of statically linked programs is supported.
16472dlopen_self_static=$enable_dlopen_self_static
16473
16474# Compiler flag to prevent dynamic linking.
16475link_static_flag=$lt_lt_prog_compiler_static_F77
16476
16477# Compiler flag to turn off builtin functions.
16478no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16479
16480# Compiler flag to allow reflexive dlopens.
16481export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16482
16483# Compiler flag to generate shared objects directly from archives.
16484whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16485
16486# Compiler flag to generate thread-safe objects.
16487thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16488
16489# Library versioning type.
16490version_type=$version_type
16491
16492# Format of library name prefix.
16493libname_spec=$lt_libname_spec
16494
16495# List of archive names.  First name is the real one, the rest are links.
16496# The last name is the one that the linker finds with -lNAME.
16497library_names_spec=$lt_library_names_spec
16498
16499# The coded name of the library, if different from the real name.
16500soname_spec=$lt_soname_spec
16501
16502# Commands used to build and install an old-style archive.
16503RANLIB=$lt_RANLIB
16504old_archive_cmds=$lt_old_archive_cmds_F77
16505old_postinstall_cmds=$lt_old_postinstall_cmds
16506old_postuninstall_cmds=$lt_old_postuninstall_cmds
16507
16508# Create an old-style archive from a shared archive.
16509old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16510
16511# Create a temporary old-style archive to link instead of a shared archive.
16512old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16513
16514# Commands used to build and install a shared archive.
16515archive_cmds=$lt_archive_cmds_F77
16516archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16517postinstall_cmds=$lt_postinstall_cmds
16518postuninstall_cmds=$lt_postuninstall_cmds
16519
16520# Commands used to build a loadable module (assumed same as above if empty)
16521module_cmds=$lt_module_cmds_F77
16522module_expsym_cmds=$lt_module_expsym_cmds_F77
16523
16524# Commands to strip libraries.
16525old_striplib=$lt_old_striplib
16526striplib=$lt_striplib
16527
16528# Dependencies to place before the objects being linked to create a
16529# shared library.
16530predep_objects=$lt_predep_objects_F77
16531
16532# Dependencies to place after the objects being linked to create a
16533# shared library.
16534postdep_objects=$lt_postdep_objects_F77
16535
16536# Dependencies to place before the objects being linked to create a
16537# shared library.
16538predeps=$lt_predeps_F77
16539
16540# Dependencies to place after the objects being linked to create a
16541# shared library.
16542postdeps=$lt_postdeps_F77
16543
16544# The directories searched by this compiler when creating a shared
16545# library
16546compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16547
16548# The library search path used internally by the compiler when linking
16549# a shared library.
16550compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16551
16552# Method to check whether dependent libraries are shared objects.
16553deplibs_check_method=$lt_deplibs_check_method
16554
16555# Command to use when deplibs_check_method == file_magic.
16556file_magic_cmd=$lt_file_magic_cmd
16557
16558# Flag that allows shared libraries with undefined symbols to be built.
16559allow_undefined_flag=$lt_allow_undefined_flag_F77
16560
16561# Flag that forces no undefined symbols.
16562no_undefined_flag=$lt_no_undefined_flag_F77
16563
16564# Commands used to finish a libtool library installation in a directory.
16565finish_cmds=$lt_finish_cmds
16566
16567# Same as above, but a single script fragment to be evaled but not shown.
16568finish_eval=$lt_finish_eval
16569
16570# Take the output of nm and produce a listing of raw symbols and C names.
16571global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16572
16573# Transform the output of nm in a proper C declaration
16574global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16575
16576# Transform the output of nm in a C name address pair
16577global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16578
16579# This is the shared library runtime path variable.
16580runpath_var=$runpath_var
16581
16582# This is the shared library path variable.
16583shlibpath_var=$shlibpath_var
16584
16585# Is shlibpath searched before the hard-coded library search path?
16586shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16587
16588# How to hardcode a shared library path into an executable.
16589hardcode_action=$hardcode_action_F77
16590
16591# Whether we should hardcode library paths into libraries.
16592hardcode_into_libs=$hardcode_into_libs
16593
16594# Flag to hardcode \$libdir into a binary during linking.
16595# This must work even if \$libdir does not exist.
16596hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16597
16598# If ld is used when linking, flag to hardcode \$libdir into
16599# a binary during linking. This must work even if \$libdir does
16600# not exist.
16601hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16602
16603# Whether we need a single -rpath flag with a separated argument.
16604hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16605
16606# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16607# resulting binary.
16608hardcode_direct=$hardcode_direct_F77
16609
16610# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16611# resulting binary.
16612hardcode_minus_L=$hardcode_minus_L_F77
16613
16614# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16615# the resulting binary.
16616hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16617
16618# Set to yes if building a shared library automatically hardcodes DIR into the library
16619# and all subsequent libraries and executables linked against it.
16620hardcode_automatic=$hardcode_automatic_F77
16621
16622# Variables whose values should be saved in libtool wrapper scripts and
16623# restored at relink time.
16624variables_saved_for_relink="$variables_saved_for_relink"
16625
16626# Whether libtool must link a program against all its dependency libraries.
16627link_all_deplibs=$link_all_deplibs_F77
16628
16629# Compile-time system search path for libraries
16630sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16631
16632# Run-time system search path for libraries
16633sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16634
16635# Fix the shell variable \$srcfile for the compiler.
16636fix_srcfile_path=$lt_fix_srcfile_path
16637
16638# Set to yes if exported symbols are required.
16639always_export_symbols=$always_export_symbols_F77
16640
16641# The commands to list exported symbols.
16642export_symbols_cmds=$lt_export_symbols_cmds_F77
16643
16644# The commands to extract the exported symbol list from a shared archive.
16645extract_expsyms_cmds=$lt_extract_expsyms_cmds
16646
16647# Symbols that should not be listed in the preloaded symbols.
16648exclude_expsyms=$lt_exclude_expsyms_F77
16649
16650# Symbols that must always be exported.
16651include_expsyms=$lt_include_expsyms_F77
16652
16653# ### END LIBTOOL TAG CONFIG: $tagname
16654
16655__EOF__
16656
16657
16658else
16659  # If there is no Makefile yet, we rely on a make rule to execute
16660  # `config.status --recheck' to rerun these tests and create the
16661  # libtool script then.
16662  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16663  if test -f "$ltmain_in"; then
16664    test -f Makefile && make "$ltmain"
16665  fi
16666fi
16667
16668
16669ac_ext=c
16670ac_cpp='$CPP $CPPFLAGS'
16671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16673ac_compiler_gnu=$ac_cv_c_compiler_gnu
16674
16675CC="$lt_save_CC"
16676
16677	else
16678	  tagname=""
16679	fi
16680	;;
16681
16682      GCJ)
16683	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16684
16685
16686# Source file extension for Java test sources.
16687ac_ext=java
16688
16689# Object file extension for compiled Java test sources.
16690objext=o
16691objext_GCJ=$objext
16692
16693# Code to be used in simple compile tests
16694lt_simple_compile_test_code="class foo {}"
16695
16696# Code to be used in simple link tests
16697lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16698
16699# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16700
16701# If no C compiler was specified, use CC.
16702LTCC=${LTCC-"$CC"}
16703
16704# If no C compiler flags were specified, use CFLAGS.
16705LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16706
16707# Allow CC to be a program name with arguments.
16708compiler=$CC
16709
16710
16711# save warnings/boilerplate of simple test code
16712ac_outfile=conftest.$ac_objext
16713echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16714eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16715_lt_compiler_boilerplate=`cat conftest.err`
16716$rm conftest*
16717
16718ac_outfile=conftest.$ac_objext
16719echo "$lt_simple_link_test_code" >conftest.$ac_ext
16720eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16721_lt_linker_boilerplate=`cat conftest.err`
16722$rm -r conftest*
16723
16724
16725# Allow CC to be a program name with arguments.
16726lt_save_CC="$CC"
16727CC=${GCJ-"gcj"}
16728compiler=$CC
16729compiler_GCJ=$CC
16730for cc_temp in $compiler""; do
16731  case $cc_temp in
16732    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16733    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16734    \-*) ;;
16735    *) break;;
16736  esac
16737done
16738cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16739
16740
16741# GCJ did not exist at the time GCC didn't implicitly link libc in.
16742archive_cmds_need_lc_GCJ=no
16743
16744old_archive_cmds_GCJ=$old_archive_cmds
16745
16746
16747lt_prog_compiler_no_builtin_flag_GCJ=
16748
16749if test "$GCC" = yes; then
16750  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16751
16752
16753{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16754echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16755if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16756  echo $ECHO_N "(cached) $ECHO_C" >&6
16757else
16758  lt_cv_prog_compiler_rtti_exceptions=no
16759  ac_outfile=conftest.$ac_objext
16760   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16761   lt_compiler_flag="-fno-rtti -fno-exceptions"
16762   # Insert the option either (1) after the last *FLAGS variable, or
16763   # (2) before a word containing "conftest.", or (3) at the end.
16764   # Note that $ac_compile itself does not contain backslashes and begins
16765   # with a dollar sign (not a hyphen), so the echo should work correctly.
16766   # The option is referenced via a variable to avoid confusing sed.
16767   lt_compile=`echo "$ac_compile" | $SED \
16768   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16769   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16770   -e 's:$: $lt_compiler_flag:'`
16771   (eval echo "\"\$as_me:16771: $lt_compile\"" >&5)
16772   (eval "$lt_compile" 2>conftest.err)
16773   ac_status=$?
16774   cat conftest.err >&5
16775   echo "$as_me:16775: \$? = $ac_status" >&5
16776   if (exit $ac_status) && test -s "$ac_outfile"; then
16777     # The compiler can only warn and ignore the option if not recognized
16778     # So say no if there are warnings other than the usual output.
16779     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16780     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16781     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16782       lt_cv_prog_compiler_rtti_exceptions=yes
16783     fi
16784   fi
16785   $rm conftest*
16786
16787fi
16788{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16789echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16790
16791if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16792    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16793else
16794    :
16795fi
16796
16797fi
16798
16799lt_prog_compiler_wl_GCJ=
16800lt_prog_compiler_pic_GCJ=
16801lt_prog_compiler_static_GCJ=
16802
16803{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16804echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16805
16806  if test "$GCC" = yes; then
16807    lt_prog_compiler_wl_GCJ='-Wl,'
16808    lt_prog_compiler_static_GCJ='-static'
16809
16810    case $host_os in
16811      aix*)
16812      # All AIX code is PIC.
16813      if test "$host_cpu" = ia64; then
16814	# AIX 5 now supports IA64 processor
16815	lt_prog_compiler_static_GCJ='-Bstatic'
16816      fi
16817      ;;
16818
16819    amigaos*)
16820      # FIXME: we need at least 68020 code to build shared libraries, but
16821      # adding the `-m68020' flag to GCC prevents building anything better,
16822      # like `-m68040'.
16823      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16824      ;;
16825
16826    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16827      # PIC is the default for these OSes.
16828      ;;
16829
16830    mingw* | cygwin* | pw32* | os2*)
16831      # This hack is so that the source file can tell whether it is being
16832      # built for inclusion in a dll (and should export symbols for example).
16833      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16834      # (--disable-auto-import) libraries
16835
16836      ;;
16837
16838    darwin* | rhapsody*)
16839      # PIC is the default on this platform
16840      # Common symbols not allowed in MH_DYLIB files
16841      lt_prog_compiler_pic_GCJ='-fno-common'
16842      ;;
16843
16844    interix[3-9]*)
16845      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16846      # Instead, we relocate shared libraries at runtime.
16847      ;;
16848
16849    msdosdjgpp*)
16850      # Just because we use GCC doesn't mean we suddenly get shared libraries
16851      # on systems that don't support them.
16852      lt_prog_compiler_can_build_shared_GCJ=no
16853      enable_shared=no
16854      ;;
16855
16856    sysv4*MP*)
16857      if test -d /usr/nec; then
16858	lt_prog_compiler_pic_GCJ=-Kconform_pic
16859      fi
16860      ;;
16861
16862    hpux*)
16863      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16864      # not for PA HP-UX.
16865      case $host_cpu in
16866      hppa*64*|ia64*)
16867	# +Z the default
16868	;;
16869      *)
16870	lt_prog_compiler_pic_GCJ='-fPIC'
16871	;;
16872      esac
16873      ;;
16874
16875    *)
16876      lt_prog_compiler_pic_GCJ='-fPIC'
16877      ;;
16878    esac
16879  else
16880    # PORTME Check for flag to pass linker flags through the system compiler.
16881    case $host_os in
16882    aix*)
16883      lt_prog_compiler_wl_GCJ='-Wl,'
16884      if test "$host_cpu" = ia64; then
16885	# AIX 5 now supports IA64 processor
16886	lt_prog_compiler_static_GCJ='-Bstatic'
16887      else
16888	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16889      fi
16890      ;;
16891      darwin*)
16892        # PIC is the default on this platform
16893        # Common symbols not allowed in MH_DYLIB files
16894       case $cc_basename in
16895         xlc*)
16896         lt_prog_compiler_pic_GCJ='-qnocommon'
16897         lt_prog_compiler_wl_GCJ='-Wl,'
16898         ;;
16899       esac
16900       ;;
16901
16902    mingw* | cygwin* | pw32* | os2*)
16903      # This hack is so that the source file can tell whether it is being
16904      # built for inclusion in a dll (and should export symbols for example).
16905
16906      ;;
16907
16908    hpux9* | hpux10* | hpux11*)
16909      lt_prog_compiler_wl_GCJ='-Wl,'
16910      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16911      # not for PA HP-UX.
16912      case $host_cpu in
16913      hppa*64*|ia64*)
16914	# +Z the default
16915	;;
16916      *)
16917	lt_prog_compiler_pic_GCJ='+Z'
16918	;;
16919      esac
16920      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16921      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16922      ;;
16923
16924    irix5* | irix6* | nonstopux*)
16925      lt_prog_compiler_wl_GCJ='-Wl,'
16926      # PIC (with -KPIC) is the default.
16927      lt_prog_compiler_static_GCJ='-non_shared'
16928      ;;
16929
16930    newsos6)
16931      lt_prog_compiler_pic_GCJ='-KPIC'
16932      lt_prog_compiler_static_GCJ='-Bstatic'
16933      ;;
16934
16935    linux* | k*bsd*-gnu)
16936      case $cc_basename in
16937      icc* | ecc*)
16938	lt_prog_compiler_wl_GCJ='-Wl,'
16939	lt_prog_compiler_pic_GCJ='-KPIC'
16940	lt_prog_compiler_static_GCJ='-static'
16941        ;;
16942      pgcc* | pgf77* | pgf90* | pgf95*)
16943        # Portland Group compilers (*not* the Pentium gcc compiler,
16944	# which looks to be a dead project)
16945	lt_prog_compiler_wl_GCJ='-Wl,'
16946	lt_prog_compiler_pic_GCJ='-fpic'
16947	lt_prog_compiler_static_GCJ='-Bstatic'
16948        ;;
16949      ccc*)
16950        lt_prog_compiler_wl_GCJ='-Wl,'
16951        # All Alpha code is PIC.
16952        lt_prog_compiler_static_GCJ='-non_shared'
16953        ;;
16954      *)
16955        case `$CC -V 2>&1 | sed 5q` in
16956	*Sun\ C*)
16957	  # Sun C 5.9
16958	  lt_prog_compiler_pic_GCJ='-KPIC'
16959	  lt_prog_compiler_static_GCJ='-Bstatic'
16960	  lt_prog_compiler_wl_GCJ='-Wl,'
16961	  ;;
16962	*Sun\ F*)
16963	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16964	  lt_prog_compiler_pic_GCJ='-KPIC'
16965	  lt_prog_compiler_static_GCJ='-Bstatic'
16966	  lt_prog_compiler_wl_GCJ=''
16967	  ;;
16968	esac
16969	;;
16970      esac
16971      ;;
16972
16973    osf3* | osf4* | osf5*)
16974      lt_prog_compiler_wl_GCJ='-Wl,'
16975      # All OSF/1 code is PIC.
16976      lt_prog_compiler_static_GCJ='-non_shared'
16977      ;;
16978
16979    rdos*)
16980      lt_prog_compiler_static_GCJ='-non_shared'
16981      ;;
16982
16983    solaris*)
16984      lt_prog_compiler_pic_GCJ='-KPIC'
16985      lt_prog_compiler_static_GCJ='-Bstatic'
16986      case $cc_basename in
16987      f77* | f90* | f95*)
16988	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16989      *)
16990	lt_prog_compiler_wl_GCJ='-Wl,';;
16991      esac
16992      ;;
16993
16994    sunos4*)
16995      lt_prog_compiler_wl_GCJ='-Qoption ld '
16996      lt_prog_compiler_pic_GCJ='-PIC'
16997      lt_prog_compiler_static_GCJ='-Bstatic'
16998      ;;
16999
17000    sysv4 | sysv4.2uw2* | sysv4.3*)
17001      lt_prog_compiler_wl_GCJ='-Wl,'
17002      lt_prog_compiler_pic_GCJ='-KPIC'
17003      lt_prog_compiler_static_GCJ='-Bstatic'
17004      ;;
17005
17006    sysv4*MP*)
17007      if test -d /usr/nec ;then
17008	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17009	lt_prog_compiler_static_GCJ='-Bstatic'
17010      fi
17011      ;;
17012
17013    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17014      lt_prog_compiler_wl_GCJ='-Wl,'
17015      lt_prog_compiler_pic_GCJ='-KPIC'
17016      lt_prog_compiler_static_GCJ='-Bstatic'
17017      ;;
17018
17019    unicos*)
17020      lt_prog_compiler_wl_GCJ='-Wl,'
17021      lt_prog_compiler_can_build_shared_GCJ=no
17022      ;;
17023
17024    uts4*)
17025      lt_prog_compiler_pic_GCJ='-pic'
17026      lt_prog_compiler_static_GCJ='-Bstatic'
17027      ;;
17028
17029    *)
17030      lt_prog_compiler_can_build_shared_GCJ=no
17031      ;;
17032    esac
17033  fi
17034
17035{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17036echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17037
17038#
17039# Check to make sure the PIC flag actually works.
17040#
17041if test -n "$lt_prog_compiler_pic_GCJ"; then
17042
17043{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17044echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17045if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17046  echo $ECHO_N "(cached) $ECHO_C" >&6
17047else
17048  lt_cv_prog_compiler_pic_works_GCJ=no
17049  ac_outfile=conftest.$ac_objext
17050   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17051   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17052   # Insert the option either (1) after the last *FLAGS variable, or
17053   # (2) before a word containing "conftest.", or (3) at the end.
17054   # Note that $ac_compile itself does not contain backslashes and begins
17055   # with a dollar sign (not a hyphen), so the echo should work correctly.
17056   # The option is referenced via a variable to avoid confusing sed.
17057   lt_compile=`echo "$ac_compile" | $SED \
17058   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17059   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17060   -e 's:$: $lt_compiler_flag:'`
17061   (eval echo "\"\$as_me:17061: $lt_compile\"" >&5)
17062   (eval "$lt_compile" 2>conftest.err)
17063   ac_status=$?
17064   cat conftest.err >&5
17065   echo "$as_me:17065: \$? = $ac_status" >&5
17066   if (exit $ac_status) && test -s "$ac_outfile"; then
17067     # The compiler can only warn and ignore the option if not recognized
17068     # So say no if there are warnings other than the usual output.
17069     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17070     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17071     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17072       lt_cv_prog_compiler_pic_works_GCJ=yes
17073     fi
17074   fi
17075   $rm conftest*
17076
17077fi
17078{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17079echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17080
17081if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17082    case $lt_prog_compiler_pic_GCJ in
17083     "" | " "*) ;;
17084     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17085     esac
17086else
17087    lt_prog_compiler_pic_GCJ=
17088     lt_prog_compiler_can_build_shared_GCJ=no
17089fi
17090
17091fi
17092case $host_os in
17093  # For platforms which do not support PIC, -DPIC is meaningless:
17094  *djgpp*)
17095    lt_prog_compiler_pic_GCJ=
17096    ;;
17097  *)
17098    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17099    ;;
17100esac
17101
17102#
17103# Check to make sure the static flag actually works.
17104#
17105wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17106{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17107echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17108if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17109  echo $ECHO_N "(cached) $ECHO_C" >&6
17110else
17111  lt_cv_prog_compiler_static_works_GCJ=no
17112   save_LDFLAGS="$LDFLAGS"
17113   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17114   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17115   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17116     # The linker can only warn and ignore the option if not recognized
17117     # So say no if there are warnings
17118     if test -s conftest.err; then
17119       # Append any errors to the config.log.
17120       cat conftest.err 1>&5
17121       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17122       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17123       if diff conftest.exp conftest.er2 >/dev/null; then
17124         lt_cv_prog_compiler_static_works_GCJ=yes
17125       fi
17126     else
17127       lt_cv_prog_compiler_static_works_GCJ=yes
17128     fi
17129   fi
17130   $rm -r conftest*
17131   LDFLAGS="$save_LDFLAGS"
17132
17133fi
17134{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17135echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17136
17137if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17138    :
17139else
17140    lt_prog_compiler_static_GCJ=
17141fi
17142
17143
17144{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17145echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17146if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17147  echo $ECHO_N "(cached) $ECHO_C" >&6
17148else
17149  lt_cv_prog_compiler_c_o_GCJ=no
17150   $rm -r conftest 2>/dev/null
17151   mkdir conftest
17152   cd conftest
17153   mkdir out
17154   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17155
17156   lt_compiler_flag="-o out/conftest2.$ac_objext"
17157   # Insert the option either (1) after the last *FLAGS variable, or
17158   # (2) before a word containing "conftest.", or (3) at the end.
17159   # Note that $ac_compile itself does not contain backslashes and begins
17160   # with a dollar sign (not a hyphen), so the echo should work correctly.
17161   lt_compile=`echo "$ac_compile" | $SED \
17162   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17163   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17164   -e 's:$: $lt_compiler_flag:'`
17165   (eval echo "\"\$as_me:17165: $lt_compile\"" >&5)
17166   (eval "$lt_compile" 2>out/conftest.err)
17167   ac_status=$?
17168   cat out/conftest.err >&5
17169   echo "$as_me:17169: \$? = $ac_status" >&5
17170   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17171   then
17172     # The compiler can only warn and ignore the option if not recognized
17173     # So say no if there are warnings
17174     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17175     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17176     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17177       lt_cv_prog_compiler_c_o_GCJ=yes
17178     fi
17179   fi
17180   chmod u+w . 2>&5
17181   $rm conftest*
17182   # SGI C++ compiler will create directory out/ii_files/ for
17183   # template instantiation
17184   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17185   $rm out/* && rmdir out
17186   cd ..
17187   rmdir conftest
17188   $rm conftest*
17189
17190fi
17191{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17192echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17193
17194
17195hard_links="nottested"
17196if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17197  # do not overwrite the value of need_locks provided by the user
17198  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17199echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17200  hard_links=yes
17201  $rm conftest*
17202  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17203  touch conftest.a
17204  ln conftest.a conftest.b 2>&5 || hard_links=no
17205  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17206  { echo "$as_me:$LINENO: result: $hard_links" >&5
17207echo "${ECHO_T}$hard_links" >&6; }
17208  if test "$hard_links" = no; then
17209    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17210echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17211    need_locks=warn
17212  fi
17213else
17214  need_locks=no
17215fi
17216
17217{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17218echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17219
17220  runpath_var=
17221  allow_undefined_flag_GCJ=
17222  enable_shared_with_static_runtimes_GCJ=no
17223  archive_cmds_GCJ=
17224  archive_expsym_cmds_GCJ=
17225  old_archive_From_new_cmds_GCJ=
17226  old_archive_from_expsyms_cmds_GCJ=
17227  export_dynamic_flag_spec_GCJ=
17228  whole_archive_flag_spec_GCJ=
17229  thread_safe_flag_spec_GCJ=
17230  hardcode_libdir_flag_spec_GCJ=
17231  hardcode_libdir_flag_spec_ld_GCJ=
17232  hardcode_libdir_separator_GCJ=
17233  hardcode_direct_GCJ=no
17234  hardcode_minus_L_GCJ=no
17235  hardcode_shlibpath_var_GCJ=unsupported
17236  link_all_deplibs_GCJ=unknown
17237  hardcode_automatic_GCJ=no
17238  module_cmds_GCJ=
17239  module_expsym_cmds_GCJ=
17240  always_export_symbols_GCJ=no
17241  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17242  # include_expsyms should be a list of space-separated symbols to be *always*
17243  # included in the symbol list
17244  include_expsyms_GCJ=
17245  # exclude_expsyms can be an extended regexp of symbols to exclude
17246  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17247  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17248  # as well as any symbol that contains `d'.
17249  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17250  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17251  # platforms (ab)use it in PIC code, but their linkers get confused if
17252  # the symbol is explicitly referenced.  Since portable code cannot
17253  # rely on this symbol name, it's probably fine to never include it in
17254  # preloaded symbol tables.
17255  # Exclude shared library initialization/finalization symbols.
17256  extract_expsyms_cmds=
17257  # Just being paranoid about ensuring that cc_basename is set.
17258  for cc_temp in $compiler""; do
17259  case $cc_temp in
17260    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17261    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17262    \-*) ;;
17263    *) break;;
17264  esac
17265done
17266cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17267
17268  case $host_os in
17269  cygwin* | mingw* | pw32*)
17270    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17271    # When not using gcc, we currently assume that we are using
17272    # Microsoft Visual C++.
17273    if test "$GCC" != yes; then
17274      with_gnu_ld=no
17275    fi
17276    ;;
17277  interix*)
17278    # we just hope/assume this is gcc and not c89 (= MSVC++)
17279    with_gnu_ld=yes
17280    ;;
17281  openbsd*)
17282    with_gnu_ld=no
17283    ;;
17284  esac
17285
17286  ld_shlibs_GCJ=yes
17287  if test "$with_gnu_ld" = yes; then
17288    # If archive_cmds runs LD, not CC, wlarc should be empty
17289    wlarc='${wl}'
17290
17291    # Set some defaults for GNU ld with shared library support. These
17292    # are reset later if shared libraries are not supported. Putting them
17293    # here allows them to be overridden if necessary.
17294    runpath_var=LD_RUN_PATH
17295    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17296    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17297    # ancient GNU ld didn't support --whole-archive et. al.
17298    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17299	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17300      else
17301  	whole_archive_flag_spec_GCJ=
17302    fi
17303    supports_anon_versioning=no
17304    case `$LD -v 2>/dev/null` in
17305      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17306      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17307      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17308      *\ 2.11.*) ;; # other 2.11 versions
17309      *) supports_anon_versioning=yes ;;
17310    esac
17311
17312    # See if GNU ld supports shared libraries.
17313    case $host_os in
17314    aix[3-9]*)
17315      # On AIX/PPC, the GNU linker is very broken
17316      if test "$host_cpu" != ia64; then
17317	ld_shlibs_GCJ=no
17318	cat <<EOF 1>&2
17319
17320*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17321*** to be unable to reliably create shared libraries on AIX.
17322*** Therefore, libtool is disabling shared libraries support.  If you
17323*** really care for shared libraries, you may want to modify your PATH
17324*** so that a non-GNU linker is found, and then restart.
17325
17326EOF
17327      fi
17328      ;;
17329
17330    amigaos*)
17331      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)'
17332      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17333      hardcode_minus_L_GCJ=yes
17334
17335      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17336      # that the semantics of dynamic libraries on AmigaOS, at least up
17337      # to version 4, is to share data among multiple programs linked
17338      # with the same dynamic library.  Since this doesn't match the
17339      # behavior of shared libraries on other platforms, we can't use
17340      # them.
17341      ld_shlibs_GCJ=no
17342      ;;
17343
17344    beos*)
17345      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17346	allow_undefined_flag_GCJ=unsupported
17347	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17348	# support --undefined.  This deserves some investigation.  FIXME
17349	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17350      else
17351	ld_shlibs_GCJ=no
17352      fi
17353      ;;
17354
17355    cygwin* | mingw* | pw32*)
17356      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17357      # as there is no search path for DLLs.
17358      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17359      allow_undefined_flag_GCJ=unsupported
17360      always_export_symbols_GCJ=no
17361      enable_shared_with_static_runtimes_GCJ=yes
17362      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17363
17364      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17365        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17366	# If the export-symbols file already is a .def file (1st line
17367	# is EXPORTS), use it as is; otherwise, prepend...
17368	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17369	  cp $export_symbols $output_objdir/$soname.def;
17370	else
17371	  echo EXPORTS > $output_objdir/$soname.def;
17372	  cat $export_symbols >> $output_objdir/$soname.def;
17373	fi~
17374	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17375      else
17376	ld_shlibs_GCJ=no
17377      fi
17378      ;;
17379
17380    interix[3-9]*)
17381      hardcode_direct_GCJ=no
17382      hardcode_shlibpath_var_GCJ=no
17383      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17384      export_dynamic_flag_spec_GCJ='${wl}-E'
17385      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17386      # Instead, shared libraries are loaded at an image base (0x10000000 by
17387      # default) and relocated if they conflict, which is a slow very memory
17388      # consuming and fragmenting process.  To avoid this, we pick a random,
17389      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17390      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17391      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'
17392      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'
17393      ;;
17394
17395    gnu* | linux* | k*bsd*-gnu)
17396      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17397	tmp_addflag=
17398	case $cc_basename,$host_cpu in
17399	pgcc*)				# Portland Group C compiler
17400	  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'
17401	  tmp_addflag=' $pic_flag'
17402	  ;;
17403	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17404	  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'
17405	  tmp_addflag=' $pic_flag -Mnomain' ;;
17406	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17407	  tmp_addflag=' -i_dynamic' ;;
17408	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17409	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17410	ifc* | ifort*)			# Intel Fortran compiler
17411	  tmp_addflag=' -nofor_main' ;;
17412	esac
17413	case `$CC -V 2>&1 | sed 5q` in
17414	*Sun\ C*)			# Sun C 5.9
17415	  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'
17416	  tmp_sharedflag='-G' ;;
17417	*Sun\ F*)			# Sun Fortran 8.3
17418	  tmp_sharedflag='-G' ;;
17419	*)
17420	  tmp_sharedflag='-shared' ;;
17421	esac
17422	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17423
17424	if test $supports_anon_versioning = yes; then
17425	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17426  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17427  $echo "local: *; };" >> $output_objdir/$libname.ver~
17428	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17429	fi
17430	link_all_deplibs_GCJ=no
17431      else
17432	ld_shlibs_GCJ=no
17433      fi
17434      ;;
17435
17436    netbsd* | netbsdelf*-gnu)
17437      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17438	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17439	wlarc=
17440      else
17441	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17442	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17443      fi
17444      ;;
17445
17446    solaris*)
17447      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17448	ld_shlibs_GCJ=no
17449	cat <<EOF 1>&2
17450
17451*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17452*** create shared libraries on Solaris systems.  Therefore, libtool
17453*** is disabling shared libraries support.  We urge you to upgrade GNU
17454*** binutils to release 2.9.1 or newer.  Another option is to modify
17455*** your PATH or compiler configuration so that the native linker is
17456*** used, and then restart.
17457
17458EOF
17459      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17460	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17461	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17462      else
17463	ld_shlibs_GCJ=no
17464      fi
17465      ;;
17466
17467    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17468      case `$LD -v 2>&1` in
17469        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17470	ld_shlibs_GCJ=no
17471	cat <<_LT_EOF 1>&2
17472
17473*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17474*** reliably create shared libraries on SCO systems.  Therefore, libtool
17475*** is disabling shared libraries support.  We urge you to upgrade GNU
17476*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17477*** your PATH or compiler configuration so that the native linker is
17478*** used, and then restart.
17479
17480_LT_EOF
17481	;;
17482	*)
17483	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17484	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17485	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17486	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17487	  else
17488	    ld_shlibs_GCJ=no
17489	  fi
17490	;;
17491      esac
17492      ;;
17493
17494    sunos4*)
17495      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17496      wlarc=
17497      hardcode_direct_GCJ=yes
17498      hardcode_shlibpath_var_GCJ=no
17499      ;;
17500
17501    *)
17502      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17503	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17504	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17505      else
17506	ld_shlibs_GCJ=no
17507      fi
17508      ;;
17509    esac
17510
17511    if test "$ld_shlibs_GCJ" = no; then
17512      runpath_var=
17513      hardcode_libdir_flag_spec_GCJ=
17514      export_dynamic_flag_spec_GCJ=
17515      whole_archive_flag_spec_GCJ=
17516    fi
17517  else
17518    # PORTME fill in a description of your system's linker (not GNU ld)
17519    case $host_os in
17520    aix3*)
17521      allow_undefined_flag_GCJ=unsupported
17522      always_export_symbols_GCJ=yes
17523      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'
17524      # Note: this linker hardcodes the directories in LIBPATH if there
17525      # are no directories specified by -L.
17526      hardcode_minus_L_GCJ=yes
17527      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17528	# Neither direct hardcoding nor static linking is supported with a
17529	# broken collect2.
17530	hardcode_direct_GCJ=unsupported
17531      fi
17532      ;;
17533
17534    aix[4-9]*)
17535      if test "$host_cpu" = ia64; then
17536	# On IA64, the linker does run time linking by default, so we don't
17537	# have to do anything special.
17538	aix_use_runtimelinking=no
17539	exp_sym_flag='-Bexport'
17540	no_entry_flag=""
17541      else
17542	# If we're using GNU nm, then we don't want the "-C" option.
17543	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17544	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17545	  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'
17546	else
17547	  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'
17548	fi
17549	aix_use_runtimelinking=no
17550
17551	# Test if we are trying to use run time linking or normal
17552	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17553	# need to do runtime linking.
17554	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17555	  for ld_flag in $LDFLAGS; do
17556  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17557  	    aix_use_runtimelinking=yes
17558  	    break
17559  	  fi
17560	  done
17561	  ;;
17562	esac
17563
17564	exp_sym_flag='-bexport'
17565	no_entry_flag='-bnoentry'
17566      fi
17567
17568      # When large executables or shared objects are built, AIX ld can
17569      # have problems creating the table of contents.  If linking a library
17570      # or program results in "error TOC overflow" add -mminimal-toc to
17571      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17572      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17573
17574      archive_cmds_GCJ=''
17575      hardcode_direct_GCJ=yes
17576      hardcode_libdir_separator_GCJ=':'
17577      link_all_deplibs_GCJ=yes
17578
17579      if test "$GCC" = yes; then
17580	case $host_os in aix4.[012]|aix4.[012].*)
17581	# We only want to do this on AIX 4.2 and lower, the check
17582	# below for broken collect2 doesn't work under 4.3+
17583	  collect2name=`${CC} -print-prog-name=collect2`
17584	  if test -f "$collect2name" && \
17585  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17586	  then
17587  	  # We have reworked collect2
17588  	  :
17589	  else
17590  	  # We have old collect2
17591  	  hardcode_direct_GCJ=unsupported
17592  	  # It fails to find uninstalled libraries when the uninstalled
17593  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17594  	  # to unsupported forces relinking
17595  	  hardcode_minus_L_GCJ=yes
17596  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17597  	  hardcode_libdir_separator_GCJ=
17598	  fi
17599	  ;;
17600	esac
17601	shared_flag='-shared'
17602	if test "$aix_use_runtimelinking" = yes; then
17603	  shared_flag="$shared_flag "'${wl}-G'
17604	fi
17605      else
17606	# not using gcc
17607	if test "$host_cpu" = ia64; then
17608  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17609  	# chokes on -Wl,-G. The following line is correct:
17610	  shared_flag='-G'
17611	else
17612	  if test "$aix_use_runtimelinking" = yes; then
17613	    shared_flag='${wl}-G'
17614	  else
17615	    shared_flag='${wl}-bM:SRE'
17616	  fi
17617	fi
17618      fi
17619
17620      # It seems that -bexpall does not export symbols beginning with
17621      # underscore (_), so it is better to generate a list of symbols to export.
17622      always_export_symbols_GCJ=yes
17623      if test "$aix_use_runtimelinking" = yes; then
17624	# Warning - without using the other runtime loading flags (-brtl),
17625	# -berok will link without error, but may produce a broken library.
17626	allow_undefined_flag_GCJ='-berok'
17627       # Determine the default libpath from the value encoded in an empty executable.
17628       cat >conftest.$ac_ext <<_ACEOF
17629/* confdefs.h.  */
17630_ACEOF
17631cat confdefs.h >>conftest.$ac_ext
17632cat >>conftest.$ac_ext <<_ACEOF
17633/* end confdefs.h.  */
17634
17635int
17636main ()
17637{
17638
17639  ;
17640  return 0;
17641}
17642_ACEOF
17643rm -f conftest.$ac_objext conftest$ac_exeext
17644if { (ac_try="$ac_link"
17645case "(($ac_try" in
17646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647  *) ac_try_echo=$ac_try;;
17648esac
17649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650  (eval "$ac_link") 2>conftest.er1
17651  ac_status=$?
17652  grep -v '^ *+' conftest.er1 >conftest.err
17653  rm -f conftest.er1
17654  cat conftest.err >&5
17655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656  (exit $ac_status); } && {
17657	 test -z "$ac_c_werror_flag" ||
17658	 test ! -s conftest.err
17659       } && test -s conftest$ac_exeext &&
17660       $as_test_x conftest$ac_exeext; then
17661
17662lt_aix_libpath_sed='
17663    /Import File Strings/,/^$/ {
17664	/^0/ {
17665	    s/^0  *\(.*\)$/\1/
17666	    p
17667	}
17668    }'
17669aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17670# Check for a 64-bit object if we didn't find anything.
17671if test -z "$aix_libpath"; then
17672  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17673fi
17674else
17675  echo "$as_me: failed program was:" >&5
17676sed 's/^/| /' conftest.$ac_ext >&5
17677
17678
17679fi
17680
17681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17682      conftest$ac_exeext conftest.$ac_ext
17683if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17684
17685       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17686	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"
17687       else
17688	if test "$host_cpu" = ia64; then
17689	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17690	  allow_undefined_flag_GCJ="-z nodefs"
17691	  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"
17692	else
17693	 # Determine the default libpath from the value encoded in an empty executable.
17694	 cat >conftest.$ac_ext <<_ACEOF
17695/* confdefs.h.  */
17696_ACEOF
17697cat confdefs.h >>conftest.$ac_ext
17698cat >>conftest.$ac_ext <<_ACEOF
17699/* end confdefs.h.  */
17700
17701int
17702main ()
17703{
17704
17705  ;
17706  return 0;
17707}
17708_ACEOF
17709rm -f conftest.$ac_objext conftest$ac_exeext
17710if { (ac_try="$ac_link"
17711case "(($ac_try" in
17712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713  *) ac_try_echo=$ac_try;;
17714esac
17715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716  (eval "$ac_link") 2>conftest.er1
17717  ac_status=$?
17718  grep -v '^ *+' conftest.er1 >conftest.err
17719  rm -f conftest.er1
17720  cat conftest.err >&5
17721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722  (exit $ac_status); } && {
17723	 test -z "$ac_c_werror_flag" ||
17724	 test ! -s conftest.err
17725       } && test -s conftest$ac_exeext &&
17726       $as_test_x conftest$ac_exeext; then
17727
17728lt_aix_libpath_sed='
17729    /Import File Strings/,/^$/ {
17730	/^0/ {
17731	    s/^0  *\(.*\)$/\1/
17732	    p
17733	}
17734    }'
17735aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17736# Check for a 64-bit object if we didn't find anything.
17737if test -z "$aix_libpath"; then
17738  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17739fi
17740else
17741  echo "$as_me: failed program was:" >&5
17742sed 's/^/| /' conftest.$ac_ext >&5
17743
17744
17745fi
17746
17747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17748      conftest$ac_exeext conftest.$ac_ext
17749if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17750
17751	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17752	  # Warning - without using the other run time loading flags,
17753	  # -berok will link without error, but may produce a broken library.
17754	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17755	  allow_undefined_flag_GCJ=' ${wl}-berok'
17756	  # Exported symbols can be pulled into shared objects from archives
17757	  whole_archive_flag_spec_GCJ='$convenience'
17758	  archive_cmds_need_lc_GCJ=yes
17759	  # This is similar to how AIX traditionally builds its shared libraries.
17760	  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'
17761	fi
17762      fi
17763      ;;
17764
17765    amigaos*)
17766      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)'
17767      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17768      hardcode_minus_L_GCJ=yes
17769      # see comment about different semantics on the GNU ld section
17770      ld_shlibs_GCJ=no
17771      ;;
17772
17773    bsdi[45]*)
17774      export_dynamic_flag_spec_GCJ=-rdynamic
17775      ;;
17776
17777    cygwin* | mingw* | pw32*)
17778      # When not using gcc, we currently assume that we are using
17779      # Microsoft Visual C++.
17780      # hardcode_libdir_flag_spec is actually meaningless, as there is
17781      # no search path for DLLs.
17782      hardcode_libdir_flag_spec_GCJ=' '
17783      allow_undefined_flag_GCJ=unsupported
17784      # Tell ltmain to make .lib files, not .a files.
17785      libext=lib
17786      # Tell ltmain to make .dll files, not .so files.
17787      shrext_cmds=".dll"
17788      # FIXME: Setting linknames here is a bad hack.
17789      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17790      # The linker will automatically build a .lib file if we build a DLL.
17791      old_archive_From_new_cmds_GCJ='true'
17792      # FIXME: Should let the user specify the lib program.
17793      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17794      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17795      enable_shared_with_static_runtimes_GCJ=yes
17796      ;;
17797
17798    darwin* | rhapsody*)
17799      case $host_os in
17800        rhapsody* | darwin1.[012])
17801         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17802         ;;
17803       *) # Darwin 1.3 on
17804         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17805           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17806         else
17807           case ${MACOSX_DEPLOYMENT_TARGET} in
17808             10.[012])
17809               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17810               ;;
17811             10.*)
17812               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17813               ;;
17814           esac
17815         fi
17816         ;;
17817      esac
17818      archive_cmds_need_lc_GCJ=no
17819      hardcode_direct_GCJ=no
17820      hardcode_automatic_GCJ=yes
17821      hardcode_shlibpath_var_GCJ=unsupported
17822      whole_archive_flag_spec_GCJ=''
17823      link_all_deplibs_GCJ=yes
17824    if test "$GCC" = yes ; then
17825    	output_verbose_link_cmd='echo'
17826        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17827        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17828        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17829        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17830    else
17831      case $cc_basename in
17832        xlc*)
17833         output_verbose_link_cmd='echo'
17834         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17835         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17836          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17837         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}'
17838          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}'
17839          ;;
17840       *)
17841         ld_shlibs_GCJ=no
17842          ;;
17843      esac
17844    fi
17845      ;;
17846
17847    dgux*)
17848      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17849      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17850      hardcode_shlibpath_var_GCJ=no
17851      ;;
17852
17853    freebsd1*)
17854      ld_shlibs_GCJ=no
17855      ;;
17856
17857    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17858    # support.  Future versions do this automatically, but an explicit c++rt0.o
17859    # does not break anything, and helps significantly (at the cost of a little
17860    # extra space).
17861    freebsd2.2*)
17862      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17863      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17864      hardcode_direct_GCJ=yes
17865      hardcode_shlibpath_var_GCJ=no
17866      ;;
17867
17868    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17869    freebsd2*)
17870      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17871      hardcode_direct_GCJ=yes
17872      hardcode_minus_L_GCJ=yes
17873      hardcode_shlibpath_var_GCJ=no
17874      ;;
17875
17876    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17877    freebsd* | dragonfly*)
17878      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17879      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17880      hardcode_direct_GCJ=yes
17881      hardcode_shlibpath_var_GCJ=no
17882      ;;
17883
17884    hpux9*)
17885      if test "$GCC" = yes; then
17886	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'
17887      else
17888	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'
17889      fi
17890      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17891      hardcode_libdir_separator_GCJ=:
17892      hardcode_direct_GCJ=yes
17893
17894      # hardcode_minus_L: Not really in the search PATH,
17895      # but as the default location of the library.
17896      hardcode_minus_L_GCJ=yes
17897      export_dynamic_flag_spec_GCJ='${wl}-E'
17898      ;;
17899
17900    hpux10*)
17901      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17902	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17903      else
17904	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17905      fi
17906      if test "$with_gnu_ld" = no; then
17907	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17908	hardcode_libdir_separator_GCJ=:
17909
17910	hardcode_direct_GCJ=yes
17911	export_dynamic_flag_spec_GCJ='${wl}-E'
17912
17913	# hardcode_minus_L: Not really in the search PATH,
17914	# but as the default location of the library.
17915	hardcode_minus_L_GCJ=yes
17916      fi
17917      ;;
17918
17919    hpux11*)
17920      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17921	case $host_cpu in
17922	hppa*64*)
17923	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17924	  ;;
17925	ia64*)
17926	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17927	  ;;
17928	*)
17929	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17930	  ;;
17931	esac
17932      else
17933	case $host_cpu in
17934	hppa*64*)
17935	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17936	  ;;
17937	ia64*)
17938	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17939	  ;;
17940	*)
17941	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17942	  ;;
17943	esac
17944      fi
17945      if test "$with_gnu_ld" = no; then
17946	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17947	hardcode_libdir_separator_GCJ=:
17948
17949	case $host_cpu in
17950	hppa*64*|ia64*)
17951	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17952	  hardcode_direct_GCJ=no
17953	  hardcode_shlibpath_var_GCJ=no
17954	  ;;
17955	*)
17956	  hardcode_direct_GCJ=yes
17957	  export_dynamic_flag_spec_GCJ='${wl}-E'
17958
17959	  # hardcode_minus_L: Not really in the search PATH,
17960	  # but as the default location of the library.
17961	  hardcode_minus_L_GCJ=yes
17962	  ;;
17963	esac
17964      fi
17965      ;;
17966
17967    irix5* | irix6* | nonstopux*)
17968      if test "$GCC" = yes; then
17969	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'
17970      else
17971	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'
17972	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17973      fi
17974      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17975      hardcode_libdir_separator_GCJ=:
17976      link_all_deplibs_GCJ=yes
17977      ;;
17978
17979    netbsd* | netbsdelf*-gnu)
17980      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17981	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17982      else
17983	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17984      fi
17985      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17986      hardcode_direct_GCJ=yes
17987      hardcode_shlibpath_var_GCJ=no
17988      ;;
17989
17990    newsos6)
17991      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17992      hardcode_direct_GCJ=yes
17993      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17994      hardcode_libdir_separator_GCJ=:
17995      hardcode_shlibpath_var_GCJ=no
17996      ;;
17997
17998    openbsd*)
17999      if test -f /usr/libexec/ld.so; then
18000	hardcode_direct_GCJ=yes
18001	hardcode_shlibpath_var_GCJ=no
18002	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18003	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18004	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18005	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18006	  export_dynamic_flag_spec_GCJ='${wl}-E'
18007	else
18008	  case $host_os in
18009	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18010	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18011	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18012	     ;;
18013	   *)
18014	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18015	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18016	     ;;
18017	  esac
18018        fi
18019      else
18020	ld_shlibs_GCJ=no
18021      fi
18022      ;;
18023
18024    os2*)
18025      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18026      hardcode_minus_L_GCJ=yes
18027      allow_undefined_flag_GCJ=unsupported
18028      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'
18029      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18030      ;;
18031
18032    osf3*)
18033      if test "$GCC" = yes; then
18034	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18035	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'
18036      else
18037	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18038	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'
18039      fi
18040      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18041      hardcode_libdir_separator_GCJ=:
18042      ;;
18043
18044    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18045      if test "$GCC" = yes; then
18046	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18047	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'
18048	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18049      else
18050	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18051	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'
18052	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~
18053	$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'
18054
18055	# Both c and cxx compiler support -rpath directly
18056	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18057      fi
18058      hardcode_libdir_separator_GCJ=:
18059      ;;
18060
18061    solaris*)
18062      no_undefined_flag_GCJ=' -z text'
18063      if test "$GCC" = yes; then
18064	wlarc='${wl}'
18065	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18066	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18067	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18068      else
18069	wlarc=''
18070	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18071	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18072  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18073      fi
18074      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18075      hardcode_shlibpath_var_GCJ=no
18076      case $host_os in
18077      solaris2.[0-5] | solaris2.[0-5].*) ;;
18078      *)
18079	# The compiler driver will combine and reorder linker options,
18080	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18081	# but is careful enough not to reorder.
18082 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18083	if test "$GCC" = yes; then
18084	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18085	else
18086	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18087	fi
18088	;;
18089      esac
18090      link_all_deplibs_GCJ=yes
18091      ;;
18092
18093    sunos4*)
18094      if test "x$host_vendor" = xsequent; then
18095	# Use $CC to link under sequent, because it throws in some extra .o
18096	# files that make .init and .fini sections work.
18097	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18098      else
18099	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18100      fi
18101      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18102      hardcode_direct_GCJ=yes
18103      hardcode_minus_L_GCJ=yes
18104      hardcode_shlibpath_var_GCJ=no
18105      ;;
18106
18107    sysv4)
18108      case $host_vendor in
18109	sni)
18110	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18111	  hardcode_direct_GCJ=yes # is this really true???
18112	;;
18113	siemens)
18114	  ## LD is ld it makes a PLAMLIB
18115	  ## CC just makes a GrossModule.
18116	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18117	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18118	  hardcode_direct_GCJ=no
18119        ;;
18120	motorola)
18121	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18122	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18123	;;
18124      esac
18125      runpath_var='LD_RUN_PATH'
18126      hardcode_shlibpath_var_GCJ=no
18127      ;;
18128
18129    sysv4.3*)
18130      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18131      hardcode_shlibpath_var_GCJ=no
18132      export_dynamic_flag_spec_GCJ='-Bexport'
18133      ;;
18134
18135    sysv4*MP*)
18136      if test -d /usr/nec; then
18137	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18138	hardcode_shlibpath_var_GCJ=no
18139	runpath_var=LD_RUN_PATH
18140	hardcode_runpath_var=yes
18141	ld_shlibs_GCJ=yes
18142      fi
18143      ;;
18144
18145    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18146      no_undefined_flag_GCJ='${wl}-z,text'
18147      archive_cmds_need_lc_GCJ=no
18148      hardcode_shlibpath_var_GCJ=no
18149      runpath_var='LD_RUN_PATH'
18150
18151      if test "$GCC" = yes; then
18152	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18153	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18154      else
18155	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18156	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18157      fi
18158      ;;
18159
18160    sysv5* | sco3.2v5* | sco5v6*)
18161      # Note: We can NOT use -z defs as we might desire, because we do not
18162      # link with -lc, and that would cause any symbols used from libc to
18163      # always be unresolved, which means just about no library would
18164      # ever link correctly.  If we're not using GNU ld we use -z text
18165      # though, which does catch some bad symbols but isn't as heavy-handed
18166      # as -z defs.
18167      no_undefined_flag_GCJ='${wl}-z,text'
18168      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18169      archive_cmds_need_lc_GCJ=no
18170      hardcode_shlibpath_var_GCJ=no
18171      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18172      hardcode_libdir_separator_GCJ=':'
18173      link_all_deplibs_GCJ=yes
18174      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18175      runpath_var='LD_RUN_PATH'
18176
18177      if test "$GCC" = yes; then
18178	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18179	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18180      else
18181	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18182	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18183      fi
18184      ;;
18185
18186    uts4*)
18187      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18188      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18189      hardcode_shlibpath_var_GCJ=no
18190      ;;
18191
18192    *)
18193      ld_shlibs_GCJ=no
18194      ;;
18195    esac
18196  fi
18197
18198{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18199echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18200test "$ld_shlibs_GCJ" = no && can_build_shared=no
18201
18202#
18203# Do we need to explicitly link libc?
18204#
18205case "x$archive_cmds_need_lc_GCJ" in
18206x|xyes)
18207  # Assume -lc should be added
18208  archive_cmds_need_lc_GCJ=yes
18209
18210  if test "$enable_shared" = yes && test "$GCC" = yes; then
18211    case $archive_cmds_GCJ in
18212    *'~'*)
18213      # FIXME: we may have to deal with multi-command sequences.
18214      ;;
18215    '$CC '*)
18216      # Test whether the compiler implicitly links with -lc since on some
18217      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18218      # to ld, don't add -lc before -lgcc.
18219      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18220echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18221      $rm conftest*
18222      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18223
18224      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18225  (eval $ac_compile) 2>&5
18226  ac_status=$?
18227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228  (exit $ac_status); } 2>conftest.err; then
18229        soname=conftest
18230        lib=conftest
18231        libobjs=conftest.$ac_objext
18232        deplibs=
18233        wl=$lt_prog_compiler_wl_GCJ
18234	pic_flag=$lt_prog_compiler_pic_GCJ
18235        compiler_flags=-v
18236        linker_flags=-v
18237        verstring=
18238        output_objdir=.
18239        libname=conftest
18240        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18241        allow_undefined_flag_GCJ=
18242        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18243  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18244  ac_status=$?
18245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246  (exit $ac_status); }
18247        then
18248	  archive_cmds_need_lc_GCJ=no
18249        else
18250	  archive_cmds_need_lc_GCJ=yes
18251        fi
18252        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18253      else
18254        cat conftest.err 1>&5
18255      fi
18256      $rm conftest*
18257      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18258echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18259      ;;
18260    esac
18261  fi
18262  ;;
18263esac
18264
18265{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18266echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18267library_names_spec=
18268libname_spec='lib$name'
18269soname_spec=
18270shrext_cmds=".so"
18271postinstall_cmds=
18272postuninstall_cmds=
18273finish_cmds=
18274finish_eval=
18275shlibpath_var=
18276shlibpath_overrides_runpath=unknown
18277version_type=none
18278dynamic_linker="$host_os ld.so"
18279sys_lib_dlsearch_path_spec="/lib /usr/lib"
18280
18281need_lib_prefix=unknown
18282hardcode_into_libs=no
18283
18284# when you set need_version to no, make sure it does not cause -set_version
18285# flags to be left without arguments
18286need_version=unknown
18287
18288case $host_os in
18289aix3*)
18290  version_type=linux
18291  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18292  shlibpath_var=LIBPATH
18293
18294  # AIX 3 has no versioning support, so we append a major version to the name.
18295  soname_spec='${libname}${release}${shared_ext}$major'
18296  ;;
18297
18298aix[4-9]*)
18299  version_type=linux
18300  need_lib_prefix=no
18301  need_version=no
18302  hardcode_into_libs=yes
18303  if test "$host_cpu" = ia64; then
18304    # AIX 5 supports IA64
18305    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18306    shlibpath_var=LD_LIBRARY_PATH
18307  else
18308    # With GCC up to 2.95.x, collect2 would create an import file
18309    # for dependence libraries.  The import file would start with
18310    # the line `#! .'.  This would cause the generated library to
18311    # depend on `.', always an invalid library.  This was fixed in
18312    # development snapshots of GCC prior to 3.0.
18313    case $host_os in
18314      aix4 | aix4.[01] | aix4.[01].*)
18315      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18316	   echo ' yes '
18317	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18318	:
18319      else
18320	can_build_shared=no
18321      fi
18322      ;;
18323    esac
18324    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18325    # soname into executable. Probably we can add versioning support to
18326    # collect2, so additional links can be useful in future.
18327    if test "$aix_use_runtimelinking" = yes; then
18328      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18329      # instead of lib<name>.a to let people know that these are not
18330      # typical AIX shared libraries.
18331      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18332    else
18333      # We preserve .a as extension for shared libraries through AIX4.2
18334      # and later when we are not doing run time linking.
18335      library_names_spec='${libname}${release}.a $libname.a'
18336      soname_spec='${libname}${release}${shared_ext}$major'
18337    fi
18338    shlibpath_var=LIBPATH
18339  fi
18340  ;;
18341
18342amigaos*)
18343  library_names_spec='$libname.ixlibrary $libname.a'
18344  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18345  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'
18346  ;;
18347
18348beos*)
18349  library_names_spec='${libname}${shared_ext}'
18350  dynamic_linker="$host_os ld.so"
18351  shlibpath_var=LIBRARY_PATH
18352  ;;
18353
18354bsdi[45]*)
18355  version_type=linux
18356  need_version=no
18357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18358  soname_spec='${libname}${release}${shared_ext}$major'
18359  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18360  shlibpath_var=LD_LIBRARY_PATH
18361  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18362  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18363  # the default ld.so.conf also contains /usr/contrib/lib and
18364  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18365  # libtool to hard-code these into programs
18366  ;;
18367
18368cygwin* | mingw* | pw32*)
18369  version_type=windows
18370  shrext_cmds=".dll"
18371  need_version=no
18372  need_lib_prefix=no
18373
18374  case $GCC,$host_os in
18375  yes,cygwin* | yes,mingw* | yes,pw32*)
18376    library_names_spec='$libname.dll.a'
18377    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18378    postinstall_cmds='base_file=`basename \${file}`~
18379      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18380      dldir=$destdir/`dirname \$dlpath`~
18381      test -d \$dldir || mkdir -p \$dldir~
18382      $install_prog $dir/$dlname \$dldir/$dlname~
18383      chmod a+x \$dldir/$dlname'
18384    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18385      dlpath=$dir/\$dldll~
18386       $rm \$dlpath'
18387    shlibpath_overrides_runpath=yes
18388
18389    case $host_os in
18390    cygwin*)
18391      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18392      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18393      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18394      ;;
18395    mingw*)
18396      # MinGW DLLs use traditional 'lib' prefix
18397      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18398      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18399      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18400        # It is most probably a Windows format PATH printed by
18401        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18402        # path with ; separators, and with drive letters. We can handle the
18403        # drive letters (cygwin fileutils understands them), so leave them,
18404        # especially as we might pass files found there to a mingw objdump,
18405        # which wouldn't understand a cygwinified path. Ahh.
18406        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18407      else
18408        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18409      fi
18410      ;;
18411    pw32*)
18412      # pw32 DLLs use 'pw' prefix rather than 'lib'
18413      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18414      ;;
18415    esac
18416    ;;
18417
18418  *)
18419    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18420    ;;
18421  esac
18422  dynamic_linker='Win32 ld.exe'
18423  # FIXME: first we should search . and the directory the executable is in
18424  shlibpath_var=PATH
18425  ;;
18426
18427darwin* | rhapsody*)
18428  dynamic_linker="$host_os dyld"
18429  version_type=darwin
18430  need_lib_prefix=no
18431  need_version=no
18432  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18433  soname_spec='${libname}${release}${major}$shared_ext'
18434  shlibpath_overrides_runpath=yes
18435  shlibpath_var=DYLD_LIBRARY_PATH
18436  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18437
18438  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18439  ;;
18440
18441dgux*)
18442  version_type=linux
18443  need_lib_prefix=no
18444  need_version=no
18445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18446  soname_spec='${libname}${release}${shared_ext}$major'
18447  shlibpath_var=LD_LIBRARY_PATH
18448  ;;
18449
18450freebsd1*)
18451  dynamic_linker=no
18452  ;;
18453
18454freebsd* | dragonfly*)
18455  # DragonFly does not have aout.  When/if they implement a new
18456  # versioning mechanism, adjust this.
18457  if test -x /usr/bin/objformat; then
18458    objformat=`/usr/bin/objformat`
18459  else
18460    case $host_os in
18461    freebsd[123]*) objformat=aout ;;
18462    *) objformat=elf ;;
18463    esac
18464  fi
18465  version_type=freebsd-$objformat
18466  case $version_type in
18467    freebsd-elf*)
18468      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18469      need_version=no
18470      need_lib_prefix=no
18471      ;;
18472    freebsd-*)
18473      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18474      need_version=yes
18475      ;;
18476  esac
18477  shlibpath_var=LD_LIBRARY_PATH
18478  case $host_os in
18479  freebsd2*)
18480    shlibpath_overrides_runpath=yes
18481    ;;
18482  freebsd3.[01]* | freebsdelf3.[01]*)
18483    shlibpath_overrides_runpath=yes
18484    hardcode_into_libs=yes
18485    ;;
18486  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18487  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18488    shlibpath_overrides_runpath=no
18489    hardcode_into_libs=yes
18490    ;;
18491  *) # from 4.6 on, and DragonFly
18492    shlibpath_overrides_runpath=yes
18493    hardcode_into_libs=yes
18494    ;;
18495  esac
18496  ;;
18497
18498gnu*)
18499  version_type=linux
18500  need_lib_prefix=no
18501  need_version=no
18502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18503  soname_spec='${libname}${release}${shared_ext}$major'
18504  shlibpath_var=LD_LIBRARY_PATH
18505  hardcode_into_libs=yes
18506  ;;
18507
18508hpux9* | hpux10* | hpux11*)
18509  # Give a soname corresponding to the major version so that dld.sl refuses to
18510  # link against other versions.
18511  version_type=sunos
18512  need_lib_prefix=no
18513  need_version=no
18514  case $host_cpu in
18515  ia64*)
18516    shrext_cmds='.so'
18517    hardcode_into_libs=yes
18518    dynamic_linker="$host_os dld.so"
18519    shlibpath_var=LD_LIBRARY_PATH
18520    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18521    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18522    soname_spec='${libname}${release}${shared_ext}$major'
18523    if test "X$HPUX_IA64_MODE" = X32; then
18524      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18525    else
18526      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18527    fi
18528    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18529    ;;
18530   hppa*64*)
18531     shrext_cmds='.sl'
18532     hardcode_into_libs=yes
18533     dynamic_linker="$host_os dld.sl"
18534     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18535     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18536     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18537     soname_spec='${libname}${release}${shared_ext}$major'
18538     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18539     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18540     ;;
18541   *)
18542    shrext_cmds='.sl'
18543    dynamic_linker="$host_os dld.sl"
18544    shlibpath_var=SHLIB_PATH
18545    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18546    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18547    soname_spec='${libname}${release}${shared_ext}$major'
18548    ;;
18549  esac
18550  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18551  postinstall_cmds='chmod 555 $lib'
18552  ;;
18553
18554interix[3-9]*)
18555  version_type=linux
18556  need_lib_prefix=no
18557  need_version=no
18558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18559  soname_spec='${libname}${release}${shared_ext}$major'
18560  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18561  shlibpath_var=LD_LIBRARY_PATH
18562  shlibpath_overrides_runpath=no
18563  hardcode_into_libs=yes
18564  ;;
18565
18566irix5* | irix6* | nonstopux*)
18567  case $host_os in
18568    nonstopux*) version_type=nonstopux ;;
18569    *)
18570	if test "$lt_cv_prog_gnu_ld" = yes; then
18571		version_type=linux
18572	else
18573		version_type=irix
18574	fi ;;
18575  esac
18576  need_lib_prefix=no
18577  need_version=no
18578  soname_spec='${libname}${release}${shared_ext}$major'
18579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18580  case $host_os in
18581  irix5* | nonstopux*)
18582    libsuff= shlibsuff=
18583    ;;
18584  *)
18585    case $LD in # libtool.m4 will add one of these switches to LD
18586    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18587      libsuff= shlibsuff= libmagic=32-bit;;
18588    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18589      libsuff=32 shlibsuff=N32 libmagic=N32;;
18590    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18591      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18592    *) libsuff= shlibsuff= libmagic=never-match;;
18593    esac
18594    ;;
18595  esac
18596  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18597  shlibpath_overrides_runpath=no
18598  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18599  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18600  hardcode_into_libs=yes
18601  ;;
18602
18603# No shared lib support for Linux oldld, aout, or coff.
18604linux*oldld* | linux*aout* | linux*coff*)
18605  dynamic_linker=no
18606  ;;
18607
18608# This must be Linux ELF.
18609linux* | k*bsd*-gnu)
18610  version_type=linux
18611  need_lib_prefix=no
18612  need_version=no
18613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18614  soname_spec='${libname}${release}${shared_ext}$major'
18615  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18616  shlibpath_var=LD_LIBRARY_PATH
18617  shlibpath_overrides_runpath=no
18618  # This implies no fast_install, which is unacceptable.
18619  # Some rework will be needed to allow for fast_install
18620  # before this can be enabled.
18621  hardcode_into_libs=yes
18622
18623  # Append ld.so.conf contents to the search path
18624  if test -f /etc/ld.so.conf; then
18625    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' ' '`
18626    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18627  fi
18628
18629  # We used to test for /lib/ld.so.1 and disable shared libraries on
18630  # powerpc, because MkLinux only supported shared libraries with the
18631  # GNU dynamic linker.  Since this was broken with cross compilers,
18632  # most powerpc-linux boxes support dynamic linking these days and
18633  # people can always --disable-shared, the test was removed, and we
18634  # assume the GNU/Linux dynamic linker is in use.
18635  dynamic_linker='GNU/Linux ld.so'
18636  ;;
18637
18638netbsdelf*-gnu)
18639  version_type=linux
18640  need_lib_prefix=no
18641  need_version=no
18642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18643  soname_spec='${libname}${release}${shared_ext}$major'
18644  shlibpath_var=LD_LIBRARY_PATH
18645  shlibpath_overrides_runpath=no
18646  hardcode_into_libs=yes
18647  dynamic_linker='NetBSD ld.elf_so'
18648  ;;
18649
18650netbsd*)
18651  version_type=sunos
18652  need_lib_prefix=no
18653  need_version=no
18654  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18655    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18656    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18657    dynamic_linker='NetBSD (a.out) ld.so'
18658  else
18659    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18660    soname_spec='${libname}${release}${shared_ext}$major'
18661    dynamic_linker='NetBSD ld.elf_so'
18662  fi
18663  shlibpath_var=LD_LIBRARY_PATH
18664  shlibpath_overrides_runpath=yes
18665  hardcode_into_libs=yes
18666  ;;
18667
18668newsos6)
18669  version_type=linux
18670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18671  shlibpath_var=LD_LIBRARY_PATH
18672  shlibpath_overrides_runpath=yes
18673  ;;
18674
18675nto-qnx*)
18676  version_type=linux
18677  need_lib_prefix=no
18678  need_version=no
18679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18680  soname_spec='${libname}${release}${shared_ext}$major'
18681  shlibpath_var=LD_LIBRARY_PATH
18682  shlibpath_overrides_runpath=yes
18683  ;;
18684
18685openbsd*)
18686  version_type=sunos
18687  sys_lib_dlsearch_path_spec="/usr/lib"
18688  need_lib_prefix=no
18689  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18690  case $host_os in
18691    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18692    *)                         need_version=no  ;;
18693  esac
18694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18695  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18696  shlibpath_var=LD_LIBRARY_PATH
18697  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18698    case $host_os in
18699      openbsd2.[89] | openbsd2.[89].*)
18700	shlibpath_overrides_runpath=no
18701	;;
18702      *)
18703	shlibpath_overrides_runpath=yes
18704	;;
18705      esac
18706  else
18707    shlibpath_overrides_runpath=yes
18708  fi
18709  ;;
18710
18711os2*)
18712  libname_spec='$name'
18713  shrext_cmds=".dll"
18714  need_lib_prefix=no
18715  library_names_spec='$libname${shared_ext} $libname.a'
18716  dynamic_linker='OS/2 ld.exe'
18717  shlibpath_var=LIBPATH
18718  ;;
18719
18720osf3* | osf4* | osf5*)
18721  version_type=osf
18722  need_lib_prefix=no
18723  need_version=no
18724  soname_spec='${libname}${release}${shared_ext}$major'
18725  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18726  shlibpath_var=LD_LIBRARY_PATH
18727  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18728  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18729  ;;
18730
18731rdos*)
18732  dynamic_linker=no
18733  ;;
18734
18735solaris*)
18736  version_type=linux
18737  need_lib_prefix=no
18738  need_version=no
18739  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18740  soname_spec='${libname}${release}${shared_ext}$major'
18741  shlibpath_var=LD_LIBRARY_PATH
18742  shlibpath_overrides_runpath=yes
18743  hardcode_into_libs=yes
18744  # ldd complains unless libraries are executable
18745  postinstall_cmds='chmod +x $lib'
18746  ;;
18747
18748sunos4*)
18749  version_type=sunos
18750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18751  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18752  shlibpath_var=LD_LIBRARY_PATH
18753  shlibpath_overrides_runpath=yes
18754  if test "$with_gnu_ld" = yes; then
18755    need_lib_prefix=no
18756  fi
18757  need_version=yes
18758  ;;
18759
18760sysv4 | sysv4.3*)
18761  version_type=linux
18762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18763  soname_spec='${libname}${release}${shared_ext}$major'
18764  shlibpath_var=LD_LIBRARY_PATH
18765  case $host_vendor in
18766    sni)
18767      shlibpath_overrides_runpath=no
18768      need_lib_prefix=no
18769      export_dynamic_flag_spec='${wl}-Blargedynsym'
18770      runpath_var=LD_RUN_PATH
18771      ;;
18772    siemens)
18773      need_lib_prefix=no
18774      ;;
18775    motorola)
18776      need_lib_prefix=no
18777      need_version=no
18778      shlibpath_overrides_runpath=no
18779      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18780      ;;
18781  esac
18782  ;;
18783
18784sysv4*MP*)
18785  if test -d /usr/nec ;then
18786    version_type=linux
18787    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18788    soname_spec='$libname${shared_ext}.$major'
18789    shlibpath_var=LD_LIBRARY_PATH
18790  fi
18791  ;;
18792
18793sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18794  version_type=freebsd-elf
18795  need_lib_prefix=no
18796  need_version=no
18797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18798  soname_spec='${libname}${release}${shared_ext}$major'
18799  shlibpath_var=LD_LIBRARY_PATH
18800  hardcode_into_libs=yes
18801  if test "$with_gnu_ld" = yes; then
18802    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18803    shlibpath_overrides_runpath=no
18804  else
18805    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18806    shlibpath_overrides_runpath=yes
18807    case $host_os in
18808      sco3.2v5*)
18809        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18810	;;
18811    esac
18812  fi
18813  sys_lib_dlsearch_path_spec='/usr/lib'
18814  ;;
18815
18816uts4*)
18817  version_type=linux
18818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18819  soname_spec='${libname}${release}${shared_ext}$major'
18820  shlibpath_var=LD_LIBRARY_PATH
18821  ;;
18822
18823*)
18824  dynamic_linker=no
18825  ;;
18826esac
18827{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18828echo "${ECHO_T}$dynamic_linker" >&6; }
18829test "$dynamic_linker" = no && can_build_shared=no
18830
18831if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18832  echo $ECHO_N "(cached) $ECHO_C" >&6
18833else
18834  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18835fi
18836
18837sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18838if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18839  echo $ECHO_N "(cached) $ECHO_C" >&6
18840else
18841  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18842fi
18843
18844sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18845
18846variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18847if test "$GCC" = yes; then
18848  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18849fi
18850
18851{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18852echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18853hardcode_action_GCJ=
18854if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18855   test -n "$runpath_var_GCJ" || \
18856   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18857
18858  # We can hardcode non-existant directories.
18859  if test "$hardcode_direct_GCJ" != no &&
18860     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18861     # have to relink, otherwise we might link with an installed library
18862     # when we should be linking with a yet-to-be-installed one
18863     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18864     test "$hardcode_minus_L_GCJ" != no; then
18865    # Linking always hardcodes the temporary library directory.
18866    hardcode_action_GCJ=relink
18867  else
18868    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18869    hardcode_action_GCJ=immediate
18870  fi
18871else
18872  # We cannot hardcode anything, or else we can only hardcode existing
18873  # directories.
18874  hardcode_action_GCJ=unsupported
18875fi
18876{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18877echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18878
18879if test "$hardcode_action_GCJ" = relink; then
18880  # Fast installation is not supported
18881  enable_fast_install=no
18882elif test "$shlibpath_overrides_runpath" = yes ||
18883     test "$enable_shared" = no; then
18884  # Fast installation is not necessary
18885  enable_fast_install=needless
18886fi
18887
18888
18889# The else clause should only fire when bootstrapping the
18890# libtool distribution, otherwise you forgot to ship ltmain.sh
18891# with your package, and you will get complaints that there are
18892# no rules to generate ltmain.sh.
18893if test -f "$ltmain"; then
18894  # See if we are running on zsh, and set the options which allow our commands through
18895  # without removal of \ escapes.
18896  if test -n "${ZSH_VERSION+set}" ; then
18897    setopt NO_GLOB_SUBST
18898  fi
18899  # Now quote all the things that may contain metacharacters while being
18900  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18901  # variables and quote the copies for generation of the libtool script.
18902  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18903    SED SHELL STRIP \
18904    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18905    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18906    deplibs_check_method reload_flag reload_cmds need_locks \
18907    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18908    lt_cv_sys_global_symbol_to_c_name_address \
18909    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18910    old_postinstall_cmds old_postuninstall_cmds \
18911    compiler_GCJ \
18912    CC_GCJ \
18913    LD_GCJ \
18914    lt_prog_compiler_wl_GCJ \
18915    lt_prog_compiler_pic_GCJ \
18916    lt_prog_compiler_static_GCJ \
18917    lt_prog_compiler_no_builtin_flag_GCJ \
18918    export_dynamic_flag_spec_GCJ \
18919    thread_safe_flag_spec_GCJ \
18920    whole_archive_flag_spec_GCJ \
18921    enable_shared_with_static_runtimes_GCJ \
18922    old_archive_cmds_GCJ \
18923    old_archive_from_new_cmds_GCJ \
18924    predep_objects_GCJ \
18925    postdep_objects_GCJ \
18926    predeps_GCJ \
18927    postdeps_GCJ \
18928    compiler_lib_search_path_GCJ \
18929    compiler_lib_search_dirs_GCJ \
18930    archive_cmds_GCJ \
18931    archive_expsym_cmds_GCJ \
18932    postinstall_cmds_GCJ \
18933    postuninstall_cmds_GCJ \
18934    old_archive_from_expsyms_cmds_GCJ \
18935    allow_undefined_flag_GCJ \
18936    no_undefined_flag_GCJ \
18937    export_symbols_cmds_GCJ \
18938    hardcode_libdir_flag_spec_GCJ \
18939    hardcode_libdir_flag_spec_ld_GCJ \
18940    hardcode_libdir_separator_GCJ \
18941    hardcode_automatic_GCJ \
18942    module_cmds_GCJ \
18943    module_expsym_cmds_GCJ \
18944    lt_cv_prog_compiler_c_o_GCJ \
18945    fix_srcfile_path_GCJ \
18946    exclude_expsyms_GCJ \
18947    include_expsyms_GCJ; do
18948
18949    case $var in
18950    old_archive_cmds_GCJ | \
18951    old_archive_from_new_cmds_GCJ | \
18952    archive_cmds_GCJ | \
18953    archive_expsym_cmds_GCJ | \
18954    module_cmds_GCJ | \
18955    module_expsym_cmds_GCJ | \
18956    old_archive_from_expsyms_cmds_GCJ | \
18957    export_symbols_cmds_GCJ | \
18958    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18959    postinstall_cmds | postuninstall_cmds | \
18960    old_postinstall_cmds | old_postuninstall_cmds | \
18961    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18962      # Double-quote double-evaled strings.
18963      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18964      ;;
18965    *)
18966      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18967      ;;
18968    esac
18969  done
18970
18971  case $lt_echo in
18972  *'\$0 --fallback-echo"')
18973    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18974    ;;
18975  esac
18976
18977cfgfile="$ofile"
18978
18979  cat <<__EOF__ >> "$cfgfile"
18980# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18981
18982# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18983
18984# Shell to use when invoking shell scripts.
18985SHELL=$lt_SHELL
18986
18987# Whether or not to build shared libraries.
18988build_libtool_libs=$enable_shared
18989
18990# Whether or not to build static libraries.
18991build_old_libs=$enable_static
18992
18993# Whether or not to add -lc for building shared libraries.
18994build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18995
18996# Whether or not to disallow shared libs when runtime libs are static
18997allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18998
18999# Whether or not to optimize for fast installation.
19000fast_install=$enable_fast_install
19001
19002# The host system.
19003host_alias=$host_alias
19004host=$host
19005host_os=$host_os
19006
19007# The build system.
19008build_alias=$build_alias
19009build=$build
19010build_os=$build_os
19011
19012# An echo program that does not interpret backslashes.
19013echo=$lt_echo
19014
19015# The archiver.
19016AR=$lt_AR
19017AR_FLAGS=$lt_AR_FLAGS
19018
19019# A C compiler.
19020LTCC=$lt_LTCC
19021
19022# LTCC compiler flags.
19023LTCFLAGS=$lt_LTCFLAGS
19024
19025# A language-specific compiler.
19026CC=$lt_compiler_GCJ
19027
19028# Is the compiler the GNU C compiler?
19029with_gcc=$GCC_GCJ
19030
19031# An ERE matcher.
19032EGREP=$lt_EGREP
19033
19034# The linker used to build libraries.
19035LD=$lt_LD_GCJ
19036
19037# Whether we need hard or soft links.
19038LN_S=$lt_LN_S
19039
19040# A BSD-compatible nm program.
19041NM=$lt_NM
19042
19043# A symbol stripping program
19044STRIP=$lt_STRIP
19045
19046# Used to examine libraries when file_magic_cmd begins "file"
19047MAGIC_CMD=$MAGIC_CMD
19048
19049# Used on cygwin: DLL creation program.
19050DLLTOOL="$DLLTOOL"
19051
19052# Used on cygwin: object dumper.
19053OBJDUMP="$OBJDUMP"
19054
19055# Used on cygwin: assembler.
19056AS="$AS"
19057
19058# The name of the directory that contains temporary libtool files.
19059objdir=$objdir
19060
19061# How to create reloadable object files.
19062reload_flag=$lt_reload_flag
19063reload_cmds=$lt_reload_cmds
19064
19065# How to pass a linker flag through the compiler.
19066wl=$lt_lt_prog_compiler_wl_GCJ
19067
19068# Object file suffix (normally "o").
19069objext="$ac_objext"
19070
19071# Old archive suffix (normally "a").
19072libext="$libext"
19073
19074# Shared library suffix (normally ".so").
19075shrext_cmds='$shrext_cmds'
19076
19077# Executable file suffix (normally "").
19078exeext="$exeext"
19079
19080# Additional compiler flags for building library objects.
19081pic_flag=$lt_lt_prog_compiler_pic_GCJ
19082pic_mode=$pic_mode
19083
19084# What is the maximum length of a command?
19085max_cmd_len=$lt_cv_sys_max_cmd_len
19086
19087# Does compiler simultaneously support -c and -o options?
19088compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19089
19090# Must we lock files when doing compilation?
19091need_locks=$lt_need_locks
19092
19093# Do we need the lib prefix for modules?
19094need_lib_prefix=$need_lib_prefix
19095
19096# Do we need a version for libraries?
19097need_version=$need_version
19098
19099# Whether dlopen is supported.
19100dlopen_support=$enable_dlopen
19101
19102# Whether dlopen of programs is supported.
19103dlopen_self=$enable_dlopen_self
19104
19105# Whether dlopen of statically linked programs is supported.
19106dlopen_self_static=$enable_dlopen_self_static
19107
19108# Compiler flag to prevent dynamic linking.
19109link_static_flag=$lt_lt_prog_compiler_static_GCJ
19110
19111# Compiler flag to turn off builtin functions.
19112no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19113
19114# Compiler flag to allow reflexive dlopens.
19115export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19116
19117# Compiler flag to generate shared objects directly from archives.
19118whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19119
19120# Compiler flag to generate thread-safe objects.
19121thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19122
19123# Library versioning type.
19124version_type=$version_type
19125
19126# Format of library name prefix.
19127libname_spec=$lt_libname_spec
19128
19129# List of archive names.  First name is the real one, the rest are links.
19130# The last name is the one that the linker finds with -lNAME.
19131library_names_spec=$lt_library_names_spec
19132
19133# The coded name of the library, if different from the real name.
19134soname_spec=$lt_soname_spec
19135
19136# Commands used to build and install an old-style archive.
19137RANLIB=$lt_RANLIB
19138old_archive_cmds=$lt_old_archive_cmds_GCJ
19139old_postinstall_cmds=$lt_old_postinstall_cmds
19140old_postuninstall_cmds=$lt_old_postuninstall_cmds
19141
19142# Create an old-style archive from a shared archive.
19143old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19144
19145# Create a temporary old-style archive to link instead of a shared archive.
19146old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19147
19148# Commands used to build and install a shared archive.
19149archive_cmds=$lt_archive_cmds_GCJ
19150archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19151postinstall_cmds=$lt_postinstall_cmds
19152postuninstall_cmds=$lt_postuninstall_cmds
19153
19154# Commands used to build a loadable module (assumed same as above if empty)
19155module_cmds=$lt_module_cmds_GCJ
19156module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19157
19158# Commands to strip libraries.
19159old_striplib=$lt_old_striplib
19160striplib=$lt_striplib
19161
19162# Dependencies to place before the objects being linked to create a
19163# shared library.
19164predep_objects=$lt_predep_objects_GCJ
19165
19166# Dependencies to place after the objects being linked to create a
19167# shared library.
19168postdep_objects=$lt_postdep_objects_GCJ
19169
19170# Dependencies to place before the objects being linked to create a
19171# shared library.
19172predeps=$lt_predeps_GCJ
19173
19174# Dependencies to place after the objects being linked to create a
19175# shared library.
19176postdeps=$lt_postdeps_GCJ
19177
19178# The directories searched by this compiler when creating a shared
19179# library
19180compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19181
19182# The library search path used internally by the compiler when linking
19183# a shared library.
19184compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19185
19186# Method to check whether dependent libraries are shared objects.
19187deplibs_check_method=$lt_deplibs_check_method
19188
19189# Command to use when deplibs_check_method == file_magic.
19190file_magic_cmd=$lt_file_magic_cmd
19191
19192# Flag that allows shared libraries with undefined symbols to be built.
19193allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19194
19195# Flag that forces no undefined symbols.
19196no_undefined_flag=$lt_no_undefined_flag_GCJ
19197
19198# Commands used to finish a libtool library installation in a directory.
19199finish_cmds=$lt_finish_cmds
19200
19201# Same as above, but a single script fragment to be evaled but not shown.
19202finish_eval=$lt_finish_eval
19203
19204# Take the output of nm and produce a listing of raw symbols and C names.
19205global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19206
19207# Transform the output of nm in a proper C declaration
19208global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19209
19210# Transform the output of nm in a C name address pair
19211global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19212
19213# This is the shared library runtime path variable.
19214runpath_var=$runpath_var
19215
19216# This is the shared library path variable.
19217shlibpath_var=$shlibpath_var
19218
19219# Is shlibpath searched before the hard-coded library search path?
19220shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19221
19222# How to hardcode a shared library path into an executable.
19223hardcode_action=$hardcode_action_GCJ
19224
19225# Whether we should hardcode library paths into libraries.
19226hardcode_into_libs=$hardcode_into_libs
19227
19228# Flag to hardcode \$libdir into a binary during linking.
19229# This must work even if \$libdir does not exist.
19230hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19231
19232# If ld is used when linking, flag to hardcode \$libdir into
19233# a binary during linking. This must work even if \$libdir does
19234# not exist.
19235hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19236
19237# Whether we need a single -rpath flag with a separated argument.
19238hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19239
19240# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19241# resulting binary.
19242hardcode_direct=$hardcode_direct_GCJ
19243
19244# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19245# resulting binary.
19246hardcode_minus_L=$hardcode_minus_L_GCJ
19247
19248# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19249# the resulting binary.
19250hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19251
19252# Set to yes if building a shared library automatically hardcodes DIR into the library
19253# and all subsequent libraries and executables linked against it.
19254hardcode_automatic=$hardcode_automatic_GCJ
19255
19256# Variables whose values should be saved in libtool wrapper scripts and
19257# restored at relink time.
19258variables_saved_for_relink="$variables_saved_for_relink"
19259
19260# Whether libtool must link a program against all its dependency libraries.
19261link_all_deplibs=$link_all_deplibs_GCJ
19262
19263# Compile-time system search path for libraries
19264sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19265
19266# Run-time system search path for libraries
19267sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19268
19269# Fix the shell variable \$srcfile for the compiler.
19270fix_srcfile_path=$lt_fix_srcfile_path
19271
19272# Set to yes if exported symbols are required.
19273always_export_symbols=$always_export_symbols_GCJ
19274
19275# The commands to list exported symbols.
19276export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19277
19278# The commands to extract the exported symbol list from a shared archive.
19279extract_expsyms_cmds=$lt_extract_expsyms_cmds
19280
19281# Symbols that should not be listed in the preloaded symbols.
19282exclude_expsyms=$lt_exclude_expsyms_GCJ
19283
19284# Symbols that must always be exported.
19285include_expsyms=$lt_include_expsyms_GCJ
19286
19287# ### END LIBTOOL TAG CONFIG: $tagname
19288
19289__EOF__
19290
19291
19292else
19293  # If there is no Makefile yet, we rely on a make rule to execute
19294  # `config.status --recheck' to rerun these tests and create the
19295  # libtool script then.
19296  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19297  if test -f "$ltmain_in"; then
19298    test -f Makefile && make "$ltmain"
19299  fi
19300fi
19301
19302
19303ac_ext=c
19304ac_cpp='$CPP $CPPFLAGS'
19305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19307ac_compiler_gnu=$ac_cv_c_compiler_gnu
19308
19309CC="$lt_save_CC"
19310
19311	else
19312	  tagname=""
19313	fi
19314	;;
19315
19316      RC)
19317
19318
19319# Source file extension for RC test sources.
19320ac_ext=rc
19321
19322# Object file extension for compiled RC test sources.
19323objext=o
19324objext_RC=$objext
19325
19326# Code to be used in simple compile tests
19327lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19328
19329# Code to be used in simple link tests
19330lt_simple_link_test_code="$lt_simple_compile_test_code"
19331
19332# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19333
19334# If no C compiler was specified, use CC.
19335LTCC=${LTCC-"$CC"}
19336
19337# If no C compiler flags were specified, use CFLAGS.
19338LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19339
19340# Allow CC to be a program name with arguments.
19341compiler=$CC
19342
19343
19344# save warnings/boilerplate of simple test code
19345ac_outfile=conftest.$ac_objext
19346echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19347eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19348_lt_compiler_boilerplate=`cat conftest.err`
19349$rm conftest*
19350
19351ac_outfile=conftest.$ac_objext
19352echo "$lt_simple_link_test_code" >conftest.$ac_ext
19353eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19354_lt_linker_boilerplate=`cat conftest.err`
19355$rm -r conftest*
19356
19357
19358# Allow CC to be a program name with arguments.
19359lt_save_CC="$CC"
19360CC=${RC-"windres"}
19361compiler=$CC
19362compiler_RC=$CC
19363for cc_temp in $compiler""; do
19364  case $cc_temp in
19365    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19366    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19367    \-*) ;;
19368    *) break;;
19369  esac
19370done
19371cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19372
19373lt_cv_prog_compiler_c_o_RC=yes
19374
19375# The else clause should only fire when bootstrapping the
19376# libtool distribution, otherwise you forgot to ship ltmain.sh
19377# with your package, and you will get complaints that there are
19378# no rules to generate ltmain.sh.
19379if test -f "$ltmain"; then
19380  # See if we are running on zsh, and set the options which allow our commands through
19381  # without removal of \ escapes.
19382  if test -n "${ZSH_VERSION+set}" ; then
19383    setopt NO_GLOB_SUBST
19384  fi
19385  # Now quote all the things that may contain metacharacters while being
19386  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19387  # variables and quote the copies for generation of the libtool script.
19388  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19389    SED SHELL STRIP \
19390    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19391    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19392    deplibs_check_method reload_flag reload_cmds need_locks \
19393    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19394    lt_cv_sys_global_symbol_to_c_name_address \
19395    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19396    old_postinstall_cmds old_postuninstall_cmds \
19397    compiler_RC \
19398    CC_RC \
19399    LD_RC \
19400    lt_prog_compiler_wl_RC \
19401    lt_prog_compiler_pic_RC \
19402    lt_prog_compiler_static_RC \
19403    lt_prog_compiler_no_builtin_flag_RC \
19404    export_dynamic_flag_spec_RC \
19405    thread_safe_flag_spec_RC \
19406    whole_archive_flag_spec_RC \
19407    enable_shared_with_static_runtimes_RC \
19408    old_archive_cmds_RC \
19409    old_archive_from_new_cmds_RC \
19410    predep_objects_RC \
19411    postdep_objects_RC \
19412    predeps_RC \
19413    postdeps_RC \
19414    compiler_lib_search_path_RC \
19415    compiler_lib_search_dirs_RC \
19416    archive_cmds_RC \
19417    archive_expsym_cmds_RC \
19418    postinstall_cmds_RC \
19419    postuninstall_cmds_RC \
19420    old_archive_from_expsyms_cmds_RC \
19421    allow_undefined_flag_RC \
19422    no_undefined_flag_RC \
19423    export_symbols_cmds_RC \
19424    hardcode_libdir_flag_spec_RC \
19425    hardcode_libdir_flag_spec_ld_RC \
19426    hardcode_libdir_separator_RC \
19427    hardcode_automatic_RC \
19428    module_cmds_RC \
19429    module_expsym_cmds_RC \
19430    lt_cv_prog_compiler_c_o_RC \
19431    fix_srcfile_path_RC \
19432    exclude_expsyms_RC \
19433    include_expsyms_RC; do
19434
19435    case $var in
19436    old_archive_cmds_RC | \
19437    old_archive_from_new_cmds_RC | \
19438    archive_cmds_RC | \
19439    archive_expsym_cmds_RC | \
19440    module_cmds_RC | \
19441    module_expsym_cmds_RC | \
19442    old_archive_from_expsyms_cmds_RC | \
19443    export_symbols_cmds_RC | \
19444    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19445    postinstall_cmds | postuninstall_cmds | \
19446    old_postinstall_cmds | old_postuninstall_cmds | \
19447    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19448      # Double-quote double-evaled strings.
19449      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19450      ;;
19451    *)
19452      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19453      ;;
19454    esac
19455  done
19456
19457  case $lt_echo in
19458  *'\$0 --fallback-echo"')
19459    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19460    ;;
19461  esac
19462
19463cfgfile="$ofile"
19464
19465  cat <<__EOF__ >> "$cfgfile"
19466# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19467
19468# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19469
19470# Shell to use when invoking shell scripts.
19471SHELL=$lt_SHELL
19472
19473# Whether or not to build shared libraries.
19474build_libtool_libs=$enable_shared
19475
19476# Whether or not to build static libraries.
19477build_old_libs=$enable_static
19478
19479# Whether or not to add -lc for building shared libraries.
19480build_libtool_need_lc=$archive_cmds_need_lc_RC
19481
19482# Whether or not to disallow shared libs when runtime libs are static
19483allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19484
19485# Whether or not to optimize for fast installation.
19486fast_install=$enable_fast_install
19487
19488# The host system.
19489host_alias=$host_alias
19490host=$host
19491host_os=$host_os
19492
19493# The build system.
19494build_alias=$build_alias
19495build=$build
19496build_os=$build_os
19497
19498# An echo program that does not interpret backslashes.
19499echo=$lt_echo
19500
19501# The archiver.
19502AR=$lt_AR
19503AR_FLAGS=$lt_AR_FLAGS
19504
19505# A C compiler.
19506LTCC=$lt_LTCC
19507
19508# LTCC compiler flags.
19509LTCFLAGS=$lt_LTCFLAGS
19510
19511# A language-specific compiler.
19512CC=$lt_compiler_RC
19513
19514# Is the compiler the GNU C compiler?
19515with_gcc=$GCC_RC
19516
19517# An ERE matcher.
19518EGREP=$lt_EGREP
19519
19520# The linker used to build libraries.
19521LD=$lt_LD_RC
19522
19523# Whether we need hard or soft links.
19524LN_S=$lt_LN_S
19525
19526# A BSD-compatible nm program.
19527NM=$lt_NM
19528
19529# A symbol stripping program
19530STRIP=$lt_STRIP
19531
19532# Used to examine libraries when file_magic_cmd begins "file"
19533MAGIC_CMD=$MAGIC_CMD
19534
19535# Used on cygwin: DLL creation program.
19536DLLTOOL="$DLLTOOL"
19537
19538# Used on cygwin: object dumper.
19539OBJDUMP="$OBJDUMP"
19540
19541# Used on cygwin: assembler.
19542AS="$AS"
19543
19544# The name of the directory that contains temporary libtool files.
19545objdir=$objdir
19546
19547# How to create reloadable object files.
19548reload_flag=$lt_reload_flag
19549reload_cmds=$lt_reload_cmds
19550
19551# How to pass a linker flag through the compiler.
19552wl=$lt_lt_prog_compiler_wl_RC
19553
19554# Object file suffix (normally "o").
19555objext="$ac_objext"
19556
19557# Old archive suffix (normally "a").
19558libext="$libext"
19559
19560# Shared library suffix (normally ".so").
19561shrext_cmds='$shrext_cmds'
19562
19563# Executable file suffix (normally "").
19564exeext="$exeext"
19565
19566# Additional compiler flags for building library objects.
19567pic_flag=$lt_lt_prog_compiler_pic_RC
19568pic_mode=$pic_mode
19569
19570# What is the maximum length of a command?
19571max_cmd_len=$lt_cv_sys_max_cmd_len
19572
19573# Does compiler simultaneously support -c and -o options?
19574compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19575
19576# Must we lock files when doing compilation?
19577need_locks=$lt_need_locks
19578
19579# Do we need the lib prefix for modules?
19580need_lib_prefix=$need_lib_prefix
19581
19582# Do we need a version for libraries?
19583need_version=$need_version
19584
19585# Whether dlopen is supported.
19586dlopen_support=$enable_dlopen
19587
19588# Whether dlopen of programs is supported.
19589dlopen_self=$enable_dlopen_self
19590
19591# Whether dlopen of statically linked programs is supported.
19592dlopen_self_static=$enable_dlopen_self_static
19593
19594# Compiler flag to prevent dynamic linking.
19595link_static_flag=$lt_lt_prog_compiler_static_RC
19596
19597# Compiler flag to turn off builtin functions.
19598no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19599
19600# Compiler flag to allow reflexive dlopens.
19601export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19602
19603# Compiler flag to generate shared objects directly from archives.
19604whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19605
19606# Compiler flag to generate thread-safe objects.
19607thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19608
19609# Library versioning type.
19610version_type=$version_type
19611
19612# Format of library name prefix.
19613libname_spec=$lt_libname_spec
19614
19615# List of archive names.  First name is the real one, the rest are links.
19616# The last name is the one that the linker finds with -lNAME.
19617library_names_spec=$lt_library_names_spec
19618
19619# The coded name of the library, if different from the real name.
19620soname_spec=$lt_soname_spec
19621
19622# Commands used to build and install an old-style archive.
19623RANLIB=$lt_RANLIB
19624old_archive_cmds=$lt_old_archive_cmds_RC
19625old_postinstall_cmds=$lt_old_postinstall_cmds
19626old_postuninstall_cmds=$lt_old_postuninstall_cmds
19627
19628# Create an old-style archive from a shared archive.
19629old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19630
19631# Create a temporary old-style archive to link instead of a shared archive.
19632old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19633
19634# Commands used to build and install a shared archive.
19635archive_cmds=$lt_archive_cmds_RC
19636archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19637postinstall_cmds=$lt_postinstall_cmds
19638postuninstall_cmds=$lt_postuninstall_cmds
19639
19640# Commands used to build a loadable module (assumed same as above if empty)
19641module_cmds=$lt_module_cmds_RC
19642module_expsym_cmds=$lt_module_expsym_cmds_RC
19643
19644# Commands to strip libraries.
19645old_striplib=$lt_old_striplib
19646striplib=$lt_striplib
19647
19648# Dependencies to place before the objects being linked to create a
19649# shared library.
19650predep_objects=$lt_predep_objects_RC
19651
19652# Dependencies to place after the objects being linked to create a
19653# shared library.
19654postdep_objects=$lt_postdep_objects_RC
19655
19656# Dependencies to place before the objects being linked to create a
19657# shared library.
19658predeps=$lt_predeps_RC
19659
19660# Dependencies to place after the objects being linked to create a
19661# shared library.
19662postdeps=$lt_postdeps_RC
19663
19664# The directories searched by this compiler when creating a shared
19665# library
19666compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19667
19668# The library search path used internally by the compiler when linking
19669# a shared library.
19670compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19671
19672# Method to check whether dependent libraries are shared objects.
19673deplibs_check_method=$lt_deplibs_check_method
19674
19675# Command to use when deplibs_check_method == file_magic.
19676file_magic_cmd=$lt_file_magic_cmd
19677
19678# Flag that allows shared libraries with undefined symbols to be built.
19679allow_undefined_flag=$lt_allow_undefined_flag_RC
19680
19681# Flag that forces no undefined symbols.
19682no_undefined_flag=$lt_no_undefined_flag_RC
19683
19684# Commands used to finish a libtool library installation in a directory.
19685finish_cmds=$lt_finish_cmds
19686
19687# Same as above, but a single script fragment to be evaled but not shown.
19688finish_eval=$lt_finish_eval
19689
19690# Take the output of nm and produce a listing of raw symbols and C names.
19691global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19692
19693# Transform the output of nm in a proper C declaration
19694global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19695
19696# Transform the output of nm in a C name address pair
19697global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19698
19699# This is the shared library runtime path variable.
19700runpath_var=$runpath_var
19701
19702# This is the shared library path variable.
19703shlibpath_var=$shlibpath_var
19704
19705# Is shlibpath searched before the hard-coded library search path?
19706shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19707
19708# How to hardcode a shared library path into an executable.
19709hardcode_action=$hardcode_action_RC
19710
19711# Whether we should hardcode library paths into libraries.
19712hardcode_into_libs=$hardcode_into_libs
19713
19714# Flag to hardcode \$libdir into a binary during linking.
19715# This must work even if \$libdir does not exist.
19716hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19717
19718# If ld is used when linking, flag to hardcode \$libdir into
19719# a binary during linking. This must work even if \$libdir does
19720# not exist.
19721hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19722
19723# Whether we need a single -rpath flag with a separated argument.
19724hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19725
19726# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19727# resulting binary.
19728hardcode_direct=$hardcode_direct_RC
19729
19730# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19731# resulting binary.
19732hardcode_minus_L=$hardcode_minus_L_RC
19733
19734# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19735# the resulting binary.
19736hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19737
19738# Set to yes if building a shared library automatically hardcodes DIR into the library
19739# and all subsequent libraries and executables linked against it.
19740hardcode_automatic=$hardcode_automatic_RC
19741
19742# Variables whose values should be saved in libtool wrapper scripts and
19743# restored at relink time.
19744variables_saved_for_relink="$variables_saved_for_relink"
19745
19746# Whether libtool must link a program against all its dependency libraries.
19747link_all_deplibs=$link_all_deplibs_RC
19748
19749# Compile-time system search path for libraries
19750sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19751
19752# Run-time system search path for libraries
19753sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19754
19755# Fix the shell variable \$srcfile for the compiler.
19756fix_srcfile_path=$lt_fix_srcfile_path
19757
19758# Set to yes if exported symbols are required.
19759always_export_symbols=$always_export_symbols_RC
19760
19761# The commands to list exported symbols.
19762export_symbols_cmds=$lt_export_symbols_cmds_RC
19763
19764# The commands to extract the exported symbol list from a shared archive.
19765extract_expsyms_cmds=$lt_extract_expsyms_cmds
19766
19767# Symbols that should not be listed in the preloaded symbols.
19768exclude_expsyms=$lt_exclude_expsyms_RC
19769
19770# Symbols that must always be exported.
19771include_expsyms=$lt_include_expsyms_RC
19772
19773# ### END LIBTOOL TAG CONFIG: $tagname
19774
19775__EOF__
19776
19777
19778else
19779  # If there is no Makefile yet, we rely on a make rule to execute
19780  # `config.status --recheck' to rerun these tests and create the
19781  # libtool script then.
19782  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19783  if test -f "$ltmain_in"; then
19784    test -f Makefile && make "$ltmain"
19785  fi
19786fi
19787
19788
19789ac_ext=c
19790ac_cpp='$CPP $CPPFLAGS'
19791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19793ac_compiler_gnu=$ac_cv_c_compiler_gnu
19794
19795CC="$lt_save_CC"
19796
19797	;;
19798
19799      *)
19800	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19801echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19802   { (exit 1); exit 1; }; }
19803	;;
19804      esac
19805
19806      # Append the new tag name to the list of available tags.
19807      if test -n "$tagname" ; then
19808      available_tags="$available_tags $tagname"
19809    fi
19810    fi
19811  done
19812  IFS="$lt_save_ifs"
19813
19814  # Now substitute the updated list of available tags.
19815  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19816    mv "${ofile}T" "$ofile"
19817    chmod +x "$ofile"
19818  else
19819    rm -f "${ofile}T"
19820    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19821echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19822   { (exit 1); exit 1; }; }
19823  fi
19824fi
19825
19826
19827
19828# This can be used to rebuild libtool when needed
19829LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19830
19831# Always use our own libtool.
19832LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19833
19834# Prevent multiple expansion
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855ac_ext=c
19856ac_cpp='$CPP $CPPFLAGS'
19857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19859ac_compiler_gnu=$ac_cv_c_compiler_gnu
19860if test -n "$ac_tool_prefix"; then
19861  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19862set dummy ${ac_tool_prefix}gcc; ac_word=$2
19863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19865if test "${ac_cv_prog_CC+set}" = set; then
19866  echo $ECHO_N "(cached) $ECHO_C" >&6
19867else
19868  if test -n "$CC"; then
19869  ac_cv_prog_CC="$CC" # Let the user override the test.
19870else
19871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19872for as_dir in $PATH
19873do
19874  IFS=$as_save_IFS
19875  test -z "$as_dir" && as_dir=.
19876  for ac_exec_ext in '' $ac_executable_extensions; do
19877  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19878    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19879    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19880    break 2
19881  fi
19882done
19883done
19884IFS=$as_save_IFS
19885
19886fi
19887fi
19888CC=$ac_cv_prog_CC
19889if test -n "$CC"; then
19890  { echo "$as_me:$LINENO: result: $CC" >&5
19891echo "${ECHO_T}$CC" >&6; }
19892else
19893  { echo "$as_me:$LINENO: result: no" >&5
19894echo "${ECHO_T}no" >&6; }
19895fi
19896
19897
19898fi
19899if test -z "$ac_cv_prog_CC"; then
19900  ac_ct_CC=$CC
19901  # Extract the first word of "gcc", so it can be a program name with args.
19902set dummy gcc; ac_word=$2
19903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19905if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19906  echo $ECHO_N "(cached) $ECHO_C" >&6
19907else
19908  if test -n "$ac_ct_CC"; then
19909  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19910else
19911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19912for as_dir in $PATH
19913do
19914  IFS=$as_save_IFS
19915  test -z "$as_dir" && as_dir=.
19916  for ac_exec_ext in '' $ac_executable_extensions; do
19917  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19918    ac_cv_prog_ac_ct_CC="gcc"
19919    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19920    break 2
19921  fi
19922done
19923done
19924IFS=$as_save_IFS
19925
19926fi
19927fi
19928ac_ct_CC=$ac_cv_prog_ac_ct_CC
19929if test -n "$ac_ct_CC"; then
19930  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19931echo "${ECHO_T}$ac_ct_CC" >&6; }
19932else
19933  { echo "$as_me:$LINENO: result: no" >&5
19934echo "${ECHO_T}no" >&6; }
19935fi
19936
19937  if test "x$ac_ct_CC" = x; then
19938    CC=""
19939  else
19940    case $cross_compiling:$ac_tool_warned in
19941yes:)
19942{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19943whose name does not start with the host triplet.  If you think this
19944configuration is useful to you, please write to autoconf@gnu.org." >&5
19945echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19946whose name does not start with the host triplet.  If you think this
19947configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19948ac_tool_warned=yes ;;
19949esac
19950    CC=$ac_ct_CC
19951  fi
19952else
19953  CC="$ac_cv_prog_CC"
19954fi
19955
19956if test -z "$CC"; then
19957          if test -n "$ac_tool_prefix"; then
19958    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19959set dummy ${ac_tool_prefix}cc; ac_word=$2
19960{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19962if test "${ac_cv_prog_CC+set}" = set; then
19963  echo $ECHO_N "(cached) $ECHO_C" >&6
19964else
19965  if test -n "$CC"; then
19966  ac_cv_prog_CC="$CC" # Let the user override the test.
19967else
19968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19969for as_dir in $PATH
19970do
19971  IFS=$as_save_IFS
19972  test -z "$as_dir" && as_dir=.
19973  for ac_exec_ext in '' $ac_executable_extensions; do
19974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19975    ac_cv_prog_CC="${ac_tool_prefix}cc"
19976    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19977    break 2
19978  fi
19979done
19980done
19981IFS=$as_save_IFS
19982
19983fi
19984fi
19985CC=$ac_cv_prog_CC
19986if test -n "$CC"; then
19987  { echo "$as_me:$LINENO: result: $CC" >&5
19988echo "${ECHO_T}$CC" >&6; }
19989else
19990  { echo "$as_me:$LINENO: result: no" >&5
19991echo "${ECHO_T}no" >&6; }
19992fi
19993
19994
19995  fi
19996fi
19997if test -z "$CC"; then
19998  # Extract the first word of "cc", so it can be a program name with args.
19999set dummy cc; ac_word=$2
20000{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20002if test "${ac_cv_prog_CC+set}" = set; then
20003  echo $ECHO_N "(cached) $ECHO_C" >&6
20004else
20005  if test -n "$CC"; then
20006  ac_cv_prog_CC="$CC" # Let the user override the test.
20007else
20008  ac_prog_rejected=no
20009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20010for as_dir in $PATH
20011do
20012  IFS=$as_save_IFS
20013  test -z "$as_dir" && as_dir=.
20014  for ac_exec_ext in '' $ac_executable_extensions; do
20015  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20016    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20017       ac_prog_rejected=yes
20018       continue
20019     fi
20020    ac_cv_prog_CC="cc"
20021    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20022    break 2
20023  fi
20024done
20025done
20026IFS=$as_save_IFS
20027
20028if test $ac_prog_rejected = yes; then
20029  # We found a bogon in the path, so make sure we never use it.
20030  set dummy $ac_cv_prog_CC
20031  shift
20032  if test $# != 0; then
20033    # We chose a different compiler from the bogus one.
20034    # However, it has the same basename, so the bogon will be chosen
20035    # first if we set CC to just the basename; use the full file name.
20036    shift
20037    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20038  fi
20039fi
20040fi
20041fi
20042CC=$ac_cv_prog_CC
20043if test -n "$CC"; then
20044  { echo "$as_me:$LINENO: result: $CC" >&5
20045echo "${ECHO_T}$CC" >&6; }
20046else
20047  { echo "$as_me:$LINENO: result: no" >&5
20048echo "${ECHO_T}no" >&6; }
20049fi
20050
20051
20052fi
20053if test -z "$CC"; then
20054  if test -n "$ac_tool_prefix"; then
20055  for ac_prog in cl.exe
20056  do
20057    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20058set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20061if test "${ac_cv_prog_CC+set}" = set; then
20062  echo $ECHO_N "(cached) $ECHO_C" >&6
20063else
20064  if test -n "$CC"; then
20065  ac_cv_prog_CC="$CC" # Let the user override the test.
20066else
20067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20068for as_dir in $PATH
20069do
20070  IFS=$as_save_IFS
20071  test -z "$as_dir" && as_dir=.
20072  for ac_exec_ext in '' $ac_executable_extensions; do
20073  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20074    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20075    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20076    break 2
20077  fi
20078done
20079done
20080IFS=$as_save_IFS
20081
20082fi
20083fi
20084CC=$ac_cv_prog_CC
20085if test -n "$CC"; then
20086  { echo "$as_me:$LINENO: result: $CC" >&5
20087echo "${ECHO_T}$CC" >&6; }
20088else
20089  { echo "$as_me:$LINENO: result: no" >&5
20090echo "${ECHO_T}no" >&6; }
20091fi
20092
20093
20094    test -n "$CC" && break
20095  done
20096fi
20097if test -z "$CC"; then
20098  ac_ct_CC=$CC
20099  for ac_prog in cl.exe
20100do
20101  # Extract the first word of "$ac_prog", so it can be a program name with args.
20102set dummy $ac_prog; ac_word=$2
20103{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20105if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20106  echo $ECHO_N "(cached) $ECHO_C" >&6
20107else
20108  if test -n "$ac_ct_CC"; then
20109  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20110else
20111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20112for as_dir in $PATH
20113do
20114  IFS=$as_save_IFS
20115  test -z "$as_dir" && as_dir=.
20116  for ac_exec_ext in '' $ac_executable_extensions; do
20117  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20118    ac_cv_prog_ac_ct_CC="$ac_prog"
20119    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20120    break 2
20121  fi
20122done
20123done
20124IFS=$as_save_IFS
20125
20126fi
20127fi
20128ac_ct_CC=$ac_cv_prog_ac_ct_CC
20129if test -n "$ac_ct_CC"; then
20130  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20131echo "${ECHO_T}$ac_ct_CC" >&6; }
20132else
20133  { echo "$as_me:$LINENO: result: no" >&5
20134echo "${ECHO_T}no" >&6; }
20135fi
20136
20137
20138  test -n "$ac_ct_CC" && break
20139done
20140
20141  if test "x$ac_ct_CC" = x; then
20142    CC=""
20143  else
20144    case $cross_compiling:$ac_tool_warned in
20145yes:)
20146{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20147whose name does not start with the host triplet.  If you think this
20148configuration is useful to you, please write to autoconf@gnu.org." >&5
20149echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20150whose name does not start with the host triplet.  If you think this
20151configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20152ac_tool_warned=yes ;;
20153esac
20154    CC=$ac_ct_CC
20155  fi
20156fi
20157
20158fi
20159
20160
20161test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20162See \`config.log' for more details." >&5
20163echo "$as_me: error: no acceptable C compiler found in \$PATH
20164See \`config.log' for more details." >&2;}
20165   { (exit 1); exit 1; }; }
20166
20167# Provide some information about the compiler.
20168echo "$as_me:$LINENO: checking for C compiler version" >&5
20169ac_compiler=`set X $ac_compile; echo $2`
20170{ (ac_try="$ac_compiler --version >&5"
20171case "(($ac_try" in
20172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20173  *) ac_try_echo=$ac_try;;
20174esac
20175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20176  (eval "$ac_compiler --version >&5") 2>&5
20177  ac_status=$?
20178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179  (exit $ac_status); }
20180{ (ac_try="$ac_compiler -v >&5"
20181case "(($ac_try" in
20182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183  *) ac_try_echo=$ac_try;;
20184esac
20185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186  (eval "$ac_compiler -v >&5") 2>&5
20187  ac_status=$?
20188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189  (exit $ac_status); }
20190{ (ac_try="$ac_compiler -V >&5"
20191case "(($ac_try" in
20192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193  *) ac_try_echo=$ac_try;;
20194esac
20195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20196  (eval "$ac_compiler -V >&5") 2>&5
20197  ac_status=$?
20198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199  (exit $ac_status); }
20200
20201{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20202echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20203if test "${ac_cv_c_compiler_gnu+set}" = set; then
20204  echo $ECHO_N "(cached) $ECHO_C" >&6
20205else
20206  cat >conftest.$ac_ext <<_ACEOF
20207/* confdefs.h.  */
20208_ACEOF
20209cat confdefs.h >>conftest.$ac_ext
20210cat >>conftest.$ac_ext <<_ACEOF
20211/* end confdefs.h.  */
20212
20213int
20214main ()
20215{
20216#ifndef __GNUC__
20217       choke me
20218#endif
20219
20220  ;
20221  return 0;
20222}
20223_ACEOF
20224rm -f conftest.$ac_objext
20225if { (ac_try="$ac_compile"
20226case "(($ac_try" in
20227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20228  *) ac_try_echo=$ac_try;;
20229esac
20230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20231  (eval "$ac_compile") 2>conftest.er1
20232  ac_status=$?
20233  grep -v '^ *+' conftest.er1 >conftest.err
20234  rm -f conftest.er1
20235  cat conftest.err >&5
20236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237  (exit $ac_status); } && {
20238	 test -z "$ac_c_werror_flag" ||
20239	 test ! -s conftest.err
20240       } && test -s conftest.$ac_objext; then
20241  ac_compiler_gnu=yes
20242else
20243  echo "$as_me: failed program was:" >&5
20244sed 's/^/| /' conftest.$ac_ext >&5
20245
20246	ac_compiler_gnu=no
20247fi
20248
20249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20250ac_cv_c_compiler_gnu=$ac_compiler_gnu
20251
20252fi
20253{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20254echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20255GCC=`test $ac_compiler_gnu = yes && echo yes`
20256ac_test_CFLAGS=${CFLAGS+set}
20257ac_save_CFLAGS=$CFLAGS
20258{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20259echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20260if test "${ac_cv_prog_cc_g+set}" = set; then
20261  echo $ECHO_N "(cached) $ECHO_C" >&6
20262else
20263  ac_save_c_werror_flag=$ac_c_werror_flag
20264   ac_c_werror_flag=yes
20265   ac_cv_prog_cc_g=no
20266   CFLAGS="-g"
20267   cat >conftest.$ac_ext <<_ACEOF
20268/* confdefs.h.  */
20269_ACEOF
20270cat confdefs.h >>conftest.$ac_ext
20271cat >>conftest.$ac_ext <<_ACEOF
20272/* end confdefs.h.  */
20273
20274int
20275main ()
20276{
20277
20278  ;
20279  return 0;
20280}
20281_ACEOF
20282rm -f conftest.$ac_objext
20283if { (ac_try="$ac_compile"
20284case "(($ac_try" in
20285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286  *) ac_try_echo=$ac_try;;
20287esac
20288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289  (eval "$ac_compile") 2>conftest.er1
20290  ac_status=$?
20291  grep -v '^ *+' conftest.er1 >conftest.err
20292  rm -f conftest.er1
20293  cat conftest.err >&5
20294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295  (exit $ac_status); } && {
20296	 test -z "$ac_c_werror_flag" ||
20297	 test ! -s conftest.err
20298       } && test -s conftest.$ac_objext; then
20299  ac_cv_prog_cc_g=yes
20300else
20301  echo "$as_me: failed program was:" >&5
20302sed 's/^/| /' conftest.$ac_ext >&5
20303
20304	CFLAGS=""
20305      cat >conftest.$ac_ext <<_ACEOF
20306/* confdefs.h.  */
20307_ACEOF
20308cat confdefs.h >>conftest.$ac_ext
20309cat >>conftest.$ac_ext <<_ACEOF
20310/* end confdefs.h.  */
20311
20312int
20313main ()
20314{
20315
20316  ;
20317  return 0;
20318}
20319_ACEOF
20320rm -f conftest.$ac_objext
20321if { (ac_try="$ac_compile"
20322case "(($ac_try" in
20323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324  *) ac_try_echo=$ac_try;;
20325esac
20326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327  (eval "$ac_compile") 2>conftest.er1
20328  ac_status=$?
20329  grep -v '^ *+' conftest.er1 >conftest.err
20330  rm -f conftest.er1
20331  cat conftest.err >&5
20332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333  (exit $ac_status); } && {
20334	 test -z "$ac_c_werror_flag" ||
20335	 test ! -s conftest.err
20336       } && test -s conftest.$ac_objext; then
20337  :
20338else
20339  echo "$as_me: failed program was:" >&5
20340sed 's/^/| /' conftest.$ac_ext >&5
20341
20342	ac_c_werror_flag=$ac_save_c_werror_flag
20343	 CFLAGS="-g"
20344	 cat >conftest.$ac_ext <<_ACEOF
20345/* confdefs.h.  */
20346_ACEOF
20347cat confdefs.h >>conftest.$ac_ext
20348cat >>conftest.$ac_ext <<_ACEOF
20349/* end confdefs.h.  */
20350
20351int
20352main ()
20353{
20354
20355  ;
20356  return 0;
20357}
20358_ACEOF
20359rm -f conftest.$ac_objext
20360if { (ac_try="$ac_compile"
20361case "(($ac_try" in
20362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363  *) ac_try_echo=$ac_try;;
20364esac
20365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366  (eval "$ac_compile") 2>conftest.er1
20367  ac_status=$?
20368  grep -v '^ *+' conftest.er1 >conftest.err
20369  rm -f conftest.er1
20370  cat conftest.err >&5
20371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372  (exit $ac_status); } && {
20373	 test -z "$ac_c_werror_flag" ||
20374	 test ! -s conftest.err
20375       } && test -s conftest.$ac_objext; then
20376  ac_cv_prog_cc_g=yes
20377else
20378  echo "$as_me: failed program was:" >&5
20379sed 's/^/| /' conftest.$ac_ext >&5
20380
20381
20382fi
20383
20384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20385fi
20386
20387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20388fi
20389
20390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20391   ac_c_werror_flag=$ac_save_c_werror_flag
20392fi
20393{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20394echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20395if test "$ac_test_CFLAGS" = set; then
20396  CFLAGS=$ac_save_CFLAGS
20397elif test $ac_cv_prog_cc_g = yes; then
20398  if test "$GCC" = yes; then
20399    CFLAGS="-g -O2"
20400  else
20401    CFLAGS="-g"
20402  fi
20403else
20404  if test "$GCC" = yes; then
20405    CFLAGS="-O2"
20406  else
20407    CFLAGS=
20408  fi
20409fi
20410{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20411echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20412if test "${ac_cv_prog_cc_c89+set}" = set; then
20413  echo $ECHO_N "(cached) $ECHO_C" >&6
20414else
20415  ac_cv_prog_cc_c89=no
20416ac_save_CC=$CC
20417cat >conftest.$ac_ext <<_ACEOF
20418/* confdefs.h.  */
20419_ACEOF
20420cat confdefs.h >>conftest.$ac_ext
20421cat >>conftest.$ac_ext <<_ACEOF
20422/* end confdefs.h.  */
20423#include <stdarg.h>
20424#include <stdio.h>
20425#include <sys/types.h>
20426#include <sys/stat.h>
20427/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20428struct buf { int x; };
20429FILE * (*rcsopen) (struct buf *, struct stat *, int);
20430static char *e (p, i)
20431     char **p;
20432     int i;
20433{
20434  return p[i];
20435}
20436static char *f (char * (*g) (char **, int), char **p, ...)
20437{
20438  char *s;
20439  va_list v;
20440  va_start (v,p);
20441  s = g (p, va_arg (v,int));
20442  va_end (v);
20443  return s;
20444}
20445
20446/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20447   function prototypes and stuff, but not '\xHH' hex character constants.
20448   These don't provoke an error unfortunately, instead are silently treated
20449   as 'x'.  The following induces an error, until -std is added to get
20450   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20451   array size at least.  It's necessary to write '\x00'==0 to get something
20452   that's true only with -std.  */
20453int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20454
20455/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20456   inside strings and character constants.  */
20457#define FOO(x) 'x'
20458int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20459
20460int test (int i, double x);
20461struct s1 {int (*f) (int a);};
20462struct s2 {int (*f) (double a);};
20463int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20464int argc;
20465char **argv;
20466int
20467main ()
20468{
20469return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20470  ;
20471  return 0;
20472}
20473_ACEOF
20474for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20475	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20476do
20477  CC="$ac_save_CC $ac_arg"
20478  rm -f conftest.$ac_objext
20479if { (ac_try="$ac_compile"
20480case "(($ac_try" in
20481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482  *) ac_try_echo=$ac_try;;
20483esac
20484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485  (eval "$ac_compile") 2>conftest.er1
20486  ac_status=$?
20487  grep -v '^ *+' conftest.er1 >conftest.err
20488  rm -f conftest.er1
20489  cat conftest.err >&5
20490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491  (exit $ac_status); } && {
20492	 test -z "$ac_c_werror_flag" ||
20493	 test ! -s conftest.err
20494       } && test -s conftest.$ac_objext; then
20495  ac_cv_prog_cc_c89=$ac_arg
20496else
20497  echo "$as_me: failed program was:" >&5
20498sed 's/^/| /' conftest.$ac_ext >&5
20499
20500
20501fi
20502
20503rm -f core conftest.err conftest.$ac_objext
20504  test "x$ac_cv_prog_cc_c89" != "xno" && break
20505done
20506rm -f conftest.$ac_ext
20507CC=$ac_save_CC
20508
20509fi
20510# AC_CACHE_VAL
20511case "x$ac_cv_prog_cc_c89" in
20512  x)
20513    { echo "$as_me:$LINENO: result: none needed" >&5
20514echo "${ECHO_T}none needed" >&6; } ;;
20515  xno)
20516    { echo "$as_me:$LINENO: result: unsupported" >&5
20517echo "${ECHO_T}unsupported" >&6; } ;;
20518  *)
20519    CC="$CC $ac_cv_prog_cc_c89"
20520    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20521echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20522esac
20523
20524
20525ac_ext=c
20526ac_cpp='$CPP $CPPFLAGS'
20527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20529ac_compiler_gnu=$ac_cv_c_compiler_gnu
20530
20531depcc="$CC"   am_compiler_list=
20532
20533{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20534echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20535if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20536  echo $ECHO_N "(cached) $ECHO_C" >&6
20537else
20538  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20539  # We make a subdir and do the tests there.  Otherwise we can end up
20540  # making bogus files that we don't know about and never remove.  For
20541  # instance it was reported that on HP-UX the gcc test will end up
20542  # making a dummy file named `D' -- because `-MD' means `put the output
20543  # in D'.
20544  mkdir conftest.dir
20545  # Copy depcomp to subdir because otherwise we won't find it if we're
20546  # using a relative directory.
20547  cp "$am_depcomp" conftest.dir
20548  cd conftest.dir
20549  # We will build objects and dependencies in a subdirectory because
20550  # it helps to detect inapplicable dependency modes.  For instance
20551  # both Tru64's cc and ICC support -MD to output dependencies as a
20552  # side effect of compilation, but ICC will put the dependencies in
20553  # the current directory while Tru64 will put them in the object
20554  # directory.
20555  mkdir sub
20556
20557  am_cv_CC_dependencies_compiler_type=none
20558  if test "$am_compiler_list" = ""; then
20559     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20560  fi
20561  for depmode in $am_compiler_list; do
20562    # Setup a source with many dependencies, because some compilers
20563    # like to wrap large dependency lists on column 80 (with \), and
20564    # we should not choose a depcomp mode which is confused by this.
20565    #
20566    # We need to recreate these files for each test, as the compiler may
20567    # overwrite some of them when testing with obscure command lines.
20568    # This happens at least with the AIX C compiler.
20569    : > sub/conftest.c
20570    for i in 1 2 3 4 5 6; do
20571      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20572      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20573      # Solaris 8's {/usr,}/bin/sh.
20574      touch sub/conftst$i.h
20575    done
20576    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20577
20578    case $depmode in
20579    nosideeffect)
20580      # after this tag, mechanisms are not by side-effect, so they'll
20581      # only be used when explicitly requested
20582      if test "x$enable_dependency_tracking" = xyes; then
20583	continue
20584      else
20585	break
20586      fi
20587      ;;
20588    none) break ;;
20589    esac
20590    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20591    # mode.  It turns out that the SunPro C++ compiler does not properly
20592    # handle `-M -o', and we need to detect this.
20593    if depmode=$depmode \
20594       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20595       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20596       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20597         >/dev/null 2>conftest.err &&
20598       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20599       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20600       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20601       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20602      # icc doesn't choke on unknown options, it will just issue warnings
20603      # or remarks (even with -Werror).  So we grep stderr for any message
20604      # that says an option was ignored or not supported.
20605      # When given -MP, icc 7.0 and 7.1 complain thusly:
20606      #   icc: Command line warning: ignoring option '-M'; no argument required
20607      # The diagnosis changed in icc 8.0:
20608      #   icc: Command line remark: option '-MP' not supported
20609      if (grep 'ignoring option' conftest.err ||
20610          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20611        am_cv_CC_dependencies_compiler_type=$depmode
20612        break
20613      fi
20614    fi
20615  done
20616
20617  cd ..
20618  rm -rf conftest.dir
20619else
20620  am_cv_CC_dependencies_compiler_type=none
20621fi
20622
20623fi
20624{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20625echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20626CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20627
20628 if
20629  test "x$enable_dependency_tracking" != xno \
20630  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20631  am__fastdepCC_TRUE=
20632  am__fastdepCC_FALSE='#'
20633else
20634  am__fastdepCC_TRUE='#'
20635  am__fastdepCC_FALSE=
20636fi
20637
20638
20639
20640if test "x$GCC" = "xyes"; then
20641	CPPFLAGS="$CPPFLAGS -Wall"
20642fi
20643
20644
20645
20646
20647
20648# Check whether --with-xorg-module-dir was given.
20649if test "${with_xorg_module_dir+set}" = set; then
20650  withval=$with_xorg_module_dir; moduledir="$withval"
20651else
20652  moduledir="$libdir/xorg/modules"
20653fi
20654
20655
20656# Check whether --enable-dri was given.
20657if test "${enable_dri+set}" = set; then
20658  enableval=$enable_dri; DRI="$enableval"
20659else
20660  DRI=auto
20661fi
20662
20663
20664# Check whether --enable-exa was given.
20665if test "${enable_exa+set}" = set; then
20666  enableval=$enable_exa; EXA="$enableval"
20667else
20668  EXA=yes
20669fi
20670
20671
20672
20673# Check whether --with-xserver-source was given.
20674if test "${with_xserver_source+set}" = set; then
20675  withval=$with_xserver_source;  XSERVER_SOURCE="$withval"
20676else
20677   XSERVER_SOURCE=""
20678fi
20679
20680
20681# Checks for extensions
20682
20683	SAVE_CFLAGS="$CFLAGS"
20684	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20685	cat >conftest.$ac_ext <<_ACEOF
20686/* confdefs.h.  */
20687_ACEOF
20688cat confdefs.h >>conftest.$ac_ext
20689cat >>conftest.$ac_ext <<_ACEOF
20690/* end confdefs.h.  */
20691
20692#include "xorg-server.h"
20693#if !defined XINERAMA
20694#error XINERAMA not defined
20695#endif
20696
20697int
20698main ()
20699{
20700
20701  ;
20702  return 0;
20703}
20704_ACEOF
20705rm -f conftest.$ac_objext
20706if { (ac_try="$ac_compile"
20707case "(($ac_try" in
20708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709  *) ac_try_echo=$ac_try;;
20710esac
20711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20712  (eval "$ac_compile") 2>conftest.er1
20713  ac_status=$?
20714  grep -v '^ *+' conftest.er1 >conftest.err
20715  rm -f conftest.er1
20716  cat conftest.err >&5
20717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718  (exit $ac_status); } && {
20719	 test -z "$ac_c_werror_flag" ||
20720	 test ! -s conftest.err
20721       } && test -s conftest.$ac_objext; then
20722  _EXT_CHECK=yes
20723else
20724  echo "$as_me: failed program was:" >&5
20725sed 's/^/| /' conftest.$ac_ext >&5
20726
20727	_EXT_CHECK=no
20728fi
20729
20730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20731	CFLAGS="$SAVE_CFLAGS"
20732	{ echo "$as_me:$LINENO: checking if XINERAMA is defined" >&5
20733echo $ECHO_N "checking if XINERAMA is defined... $ECHO_C" >&6; }
20734	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20735echo "${ECHO_T}$_EXT_CHECK" >&6; }
20736	if test "$_EXT_CHECK" != no; then
20737		REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
20738	fi
20739
20740
20741	SAVE_CFLAGS="$CFLAGS"
20742	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20743	cat >conftest.$ac_ext <<_ACEOF
20744/* confdefs.h.  */
20745_ACEOF
20746cat confdefs.h >>conftest.$ac_ext
20747cat >>conftest.$ac_ext <<_ACEOF
20748/* end confdefs.h.  */
20749
20750#include "xorg-server.h"
20751#if !defined RANDR
20752#error RANDR not defined
20753#endif
20754
20755int
20756main ()
20757{
20758
20759  ;
20760  return 0;
20761}
20762_ACEOF
20763rm -f conftest.$ac_objext
20764if { (ac_try="$ac_compile"
20765case "(($ac_try" in
20766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767  *) ac_try_echo=$ac_try;;
20768esac
20769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770  (eval "$ac_compile") 2>conftest.er1
20771  ac_status=$?
20772  grep -v '^ *+' conftest.er1 >conftest.err
20773  rm -f conftest.er1
20774  cat conftest.err >&5
20775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776  (exit $ac_status); } && {
20777	 test -z "$ac_c_werror_flag" ||
20778	 test ! -s conftest.err
20779       } && test -s conftest.$ac_objext; then
20780  _EXT_CHECK=yes
20781else
20782  echo "$as_me: failed program was:" >&5
20783sed 's/^/| /' conftest.$ac_ext >&5
20784
20785	_EXT_CHECK=no
20786fi
20787
20788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20789	CFLAGS="$SAVE_CFLAGS"
20790	{ echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20791echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; }
20792	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20793echo "${ECHO_T}$_EXT_CHECK" >&6; }
20794	if test "$_EXT_CHECK" != no; then
20795		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20796	fi
20797
20798
20799	SAVE_CFLAGS="$CFLAGS"
20800	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20801	cat >conftest.$ac_ext <<_ACEOF
20802/* confdefs.h.  */
20803_ACEOF
20804cat confdefs.h >>conftest.$ac_ext
20805cat >>conftest.$ac_ext <<_ACEOF
20806/* end confdefs.h.  */
20807
20808#include "xorg-server.h"
20809#if !defined RENDER
20810#error RENDER not defined
20811#endif
20812
20813int
20814main ()
20815{
20816
20817  ;
20818  return 0;
20819}
20820_ACEOF
20821rm -f conftest.$ac_objext
20822if { (ac_try="$ac_compile"
20823case "(($ac_try" in
20824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825  *) ac_try_echo=$ac_try;;
20826esac
20827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828  (eval "$ac_compile") 2>conftest.er1
20829  ac_status=$?
20830  grep -v '^ *+' conftest.er1 >conftest.err
20831  rm -f conftest.er1
20832  cat conftest.err >&5
20833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834  (exit $ac_status); } && {
20835	 test -z "$ac_c_werror_flag" ||
20836	 test ! -s conftest.err
20837       } && test -s conftest.$ac_objext; then
20838  _EXT_CHECK=yes
20839else
20840  echo "$as_me: failed program was:" >&5
20841sed 's/^/| /' conftest.$ac_ext >&5
20842
20843	_EXT_CHECK=no
20844fi
20845
20846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20847	CFLAGS="$SAVE_CFLAGS"
20848	{ echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20849echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6; }
20850	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20851echo "${ECHO_T}$_EXT_CHECK" >&6; }
20852	if test "$_EXT_CHECK" != no; then
20853		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20854	fi
20855
20856
20857	SAVE_CFLAGS="$CFLAGS"
20858	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20859	cat >conftest.$ac_ext <<_ACEOF
20860/* confdefs.h.  */
20861_ACEOF
20862cat confdefs.h >>conftest.$ac_ext
20863cat >>conftest.$ac_ext <<_ACEOF
20864/* end confdefs.h.  */
20865
20866#include "xorg-server.h"
20867#if !defined XV
20868#error XV not defined
20869#endif
20870
20871int
20872main ()
20873{
20874
20875  ;
20876  return 0;
20877}
20878_ACEOF
20879rm -f conftest.$ac_objext
20880if { (ac_try="$ac_compile"
20881case "(($ac_try" in
20882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883  *) ac_try_echo=$ac_try;;
20884esac
20885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20886  (eval "$ac_compile") 2>conftest.er1
20887  ac_status=$?
20888  grep -v '^ *+' conftest.er1 >conftest.err
20889  rm -f conftest.er1
20890  cat conftest.err >&5
20891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892  (exit $ac_status); } && {
20893	 test -z "$ac_c_werror_flag" ||
20894	 test ! -s conftest.err
20895       } && test -s conftest.$ac_objext; then
20896  _EXT_CHECK=yes
20897else
20898  echo "$as_me: failed program was:" >&5
20899sed 's/^/| /' conftest.$ac_ext >&5
20900
20901	_EXT_CHECK=no
20902fi
20903
20904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20905	CFLAGS="$SAVE_CFLAGS"
20906	{ echo "$as_me:$LINENO: checking if XV is defined" >&5
20907echo $ECHO_N "checking if XV is defined... $ECHO_C" >&6; }
20908	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20909echo "${ECHO_T}$_EXT_CHECK" >&6; }
20910	if test "$_EXT_CHECK" != no; then
20911		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
20912	fi
20913
20914
20915	SAVE_CFLAGS="$CFLAGS"
20916	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20917	cat >conftest.$ac_ext <<_ACEOF
20918/* confdefs.h.  */
20919_ACEOF
20920cat confdefs.h >>conftest.$ac_ext
20921cat >>conftest.$ac_ext <<_ACEOF
20922/* end confdefs.h.  */
20923
20924#include "xorg-server.h"
20925#if !defined XF86MISC
20926#error XF86MISC not defined
20927#endif
20928
20929int
20930main ()
20931{
20932
20933  ;
20934  return 0;
20935}
20936_ACEOF
20937rm -f conftest.$ac_objext
20938if { (ac_try="$ac_compile"
20939case "(($ac_try" in
20940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941  *) ac_try_echo=$ac_try;;
20942esac
20943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944  (eval "$ac_compile") 2>conftest.er1
20945  ac_status=$?
20946  grep -v '^ *+' conftest.er1 >conftest.err
20947  rm -f conftest.er1
20948  cat conftest.err >&5
20949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950  (exit $ac_status); } && {
20951	 test -z "$ac_c_werror_flag" ||
20952	 test ! -s conftest.err
20953       } && test -s conftest.$ac_objext; then
20954  _EXT_CHECK=yes
20955else
20956  echo "$as_me: failed program was:" >&5
20957sed 's/^/| /' conftest.$ac_ext >&5
20958
20959	_EXT_CHECK=no
20960fi
20961
20962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20963	CFLAGS="$SAVE_CFLAGS"
20964	{ echo "$as_me:$LINENO: checking if XF86MISC is defined" >&5
20965echo $ECHO_N "checking if XF86MISC is defined... $ECHO_C" >&6; }
20966	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20967echo "${ECHO_T}$_EXT_CHECK" >&6; }
20968	if test "$_EXT_CHECK" != no; then
20969		REQUIRED_MODULES="$REQUIRED_MODULES xf86miscproto"
20970	fi
20971
20972
20973	SAVE_CFLAGS="$CFLAGS"
20974	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20975	cat >conftest.$ac_ext <<_ACEOF
20976/* confdefs.h.  */
20977_ACEOF
20978cat confdefs.h >>conftest.$ac_ext
20979cat >>conftest.$ac_ext <<_ACEOF
20980/* end confdefs.h.  */
20981
20982#include "xorg-server.h"
20983#if !defined DPMSExtension
20984#error DPMSExtension not defined
20985#endif
20986
20987int
20988main ()
20989{
20990
20991  ;
20992  return 0;
20993}
20994_ACEOF
20995rm -f conftest.$ac_objext
20996if { (ac_try="$ac_compile"
20997case "(($ac_try" in
20998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999  *) ac_try_echo=$ac_try;;
21000esac
21001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002  (eval "$ac_compile") 2>conftest.er1
21003  ac_status=$?
21004  grep -v '^ *+' conftest.er1 >conftest.err
21005  rm -f conftest.er1
21006  cat conftest.err >&5
21007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008  (exit $ac_status); } && {
21009	 test -z "$ac_c_werror_flag" ||
21010	 test ! -s conftest.err
21011       } && test -s conftest.$ac_objext; then
21012  _EXT_CHECK=yes
21013else
21014  echo "$as_me: failed program was:" >&5
21015sed 's/^/| /' conftest.$ac_ext >&5
21016
21017	_EXT_CHECK=no
21018fi
21019
21020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21021	CFLAGS="$SAVE_CFLAGS"
21022	{ echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
21023echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6; }
21024	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21025echo "${ECHO_T}$_EXT_CHECK" >&6; }
21026	if test "$_EXT_CHECK" != no; then
21027		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
21028	fi
21029
21030
21031# Checks for pkg-config packages
21032
21033
21034if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21035	if test -n "$ac_tool_prefix"; then
21036  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21037set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21038{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21040if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21041  echo $ECHO_N "(cached) $ECHO_C" >&6
21042else
21043  case $PKG_CONFIG in
21044  [\\/]* | ?:[\\/]*)
21045  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21046  ;;
21047  *)
21048  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21049for as_dir in $PATH
21050do
21051  IFS=$as_save_IFS
21052  test -z "$as_dir" && as_dir=.
21053  for ac_exec_ext in '' $ac_executable_extensions; do
21054  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21055    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21056    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21057    break 2
21058  fi
21059done
21060done
21061IFS=$as_save_IFS
21062
21063  ;;
21064esac
21065fi
21066PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21067if test -n "$PKG_CONFIG"; then
21068  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21069echo "${ECHO_T}$PKG_CONFIG" >&6; }
21070else
21071  { echo "$as_me:$LINENO: result: no" >&5
21072echo "${ECHO_T}no" >&6; }
21073fi
21074
21075
21076fi
21077if test -z "$ac_cv_path_PKG_CONFIG"; then
21078  ac_pt_PKG_CONFIG=$PKG_CONFIG
21079  # Extract the first word of "pkg-config", so it can be a program name with args.
21080set dummy pkg-config; ac_word=$2
21081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21083if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21084  echo $ECHO_N "(cached) $ECHO_C" >&6
21085else
21086  case $ac_pt_PKG_CONFIG in
21087  [\\/]* | ?:[\\/]*)
21088  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21089  ;;
21090  *)
21091  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21092for as_dir in $PATH
21093do
21094  IFS=$as_save_IFS
21095  test -z "$as_dir" && as_dir=.
21096  for ac_exec_ext in '' $ac_executable_extensions; do
21097  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21098    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21099    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21100    break 2
21101  fi
21102done
21103done
21104IFS=$as_save_IFS
21105
21106  ;;
21107esac
21108fi
21109ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21110if test -n "$ac_pt_PKG_CONFIG"; then
21111  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21112echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21113else
21114  { echo "$as_me:$LINENO: result: no" >&5
21115echo "${ECHO_T}no" >&6; }
21116fi
21117
21118  if test "x$ac_pt_PKG_CONFIG" = x; then
21119    PKG_CONFIG=""
21120  else
21121    case $cross_compiling:$ac_tool_warned in
21122yes:)
21123{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21124whose name does not start with the host triplet.  If you think this
21125configuration is useful to you, please write to autoconf@gnu.org." >&5
21126echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21127whose name does not start with the host triplet.  If you think this
21128configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21129ac_tool_warned=yes ;;
21130esac
21131    PKG_CONFIG=$ac_pt_PKG_CONFIG
21132  fi
21133else
21134  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21135fi
21136
21137fi
21138if test -n "$PKG_CONFIG"; then
21139	_pkg_min_version=0.9.0
21140	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21141echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21142	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21143		{ echo "$as_me:$LINENO: result: yes" >&5
21144echo "${ECHO_T}yes" >&6; }
21145	else
21146		{ echo "$as_me:$LINENO: result: no" >&5
21147echo "${ECHO_T}no" >&6; }
21148		PKG_CONFIG=""
21149	fi
21150
21151fi
21152
21153pkg_failed=no
21154{ echo "$as_me:$LINENO: checking for XORG" >&5
21155echo $ECHO_N "checking for XORG... $ECHO_C" >&6; }
21156
21157if test -n "$PKG_CONFIG"; then
21158    if test -n "$XORG_CFLAGS"; then
21159        pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21160    else
21161        if test -n "$PKG_CONFIG" && \
21162    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21163  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5
21164  ac_status=$?
21165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166  (exit $ac_status); }; then
21167  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21168else
21169  pkg_failed=yes
21170fi
21171    fi
21172else
21173	pkg_failed=untried
21174fi
21175if test -n "$PKG_CONFIG"; then
21176    if test -n "$XORG_LIBS"; then
21177        pkg_cv_XORG_LIBS="$XORG_LIBS"
21178    else
21179        if test -n "$PKG_CONFIG" && \
21180    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21181  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5
21182  ac_status=$?
21183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184  (exit $ac_status); }; then
21185  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21186else
21187  pkg_failed=yes
21188fi
21189    fi
21190else
21191	pkg_failed=untried
21192fi
21193
21194
21195
21196if test $pkg_failed = yes; then
21197
21198if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21199        _pkg_short_errors_supported=yes
21200else
21201        _pkg_short_errors_supported=no
21202fi
21203        if test $_pkg_short_errors_supported = yes; then
21204	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES"`
21205        else
21206	        XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES"`
21207        fi
21208	# Put the nasty error message in config.log where it belongs
21209	echo "$XORG_PKG_ERRORS" >&5
21210
21211	{ { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met:
21212
21213$XORG_PKG_ERRORS
21214
21215Consider adjusting the PKG_CONFIG_PATH environment variable if you
21216installed software in a non-standard prefix.
21217
21218Alternatively, you may set the environment variables XORG_CFLAGS
21219and XORG_LIBS to avoid the need to call pkg-config.
21220See the pkg-config man page for more details.
21221" >&5
21222echo "$as_me: error: Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met:
21223
21224$XORG_PKG_ERRORS
21225
21226Consider adjusting the PKG_CONFIG_PATH environment variable if you
21227installed software in a non-standard prefix.
21228
21229Alternatively, you may set the environment variables XORG_CFLAGS
21230and XORG_LIBS to avoid the need to call pkg-config.
21231See the pkg-config man page for more details.
21232" >&2;}
21233   { (exit 1); exit 1; }; }
21234elif test $pkg_failed = untried; then
21235	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21236is in your PATH or set the PKG_CONFIG environment variable to the full
21237path to pkg-config.
21238
21239Alternatively, you may set the environment variables XORG_CFLAGS
21240and XORG_LIBS to avoid the need to call pkg-config.
21241See the pkg-config man page for more details.
21242
21243To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21244See \`config.log' for more details." >&5
21245echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21246is in your PATH or set the PKG_CONFIG environment variable to the full
21247path to pkg-config.
21248
21249Alternatively, you may set the environment variables XORG_CFLAGS
21250and XORG_LIBS to avoid the need to call pkg-config.
21251See the pkg-config man page for more details.
21252
21253To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21254See \`config.log' for more details." >&2;}
21255   { (exit 1); exit 1; }; }
21256else
21257	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21258	XORG_LIBS=$pkg_cv_XORG_LIBS
21259        { echo "$as_me:$LINENO: result: yes" >&5
21260echo "${ECHO_T}yes" >&6; }
21261	:
21262fi
21263sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21264
21265# Checks for libraries.
21266
21267# Checks for header files.
21268{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21269echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21270if test "${ac_cv_header_stdc+set}" = set; then
21271  echo $ECHO_N "(cached) $ECHO_C" >&6
21272else
21273  cat >conftest.$ac_ext <<_ACEOF
21274/* confdefs.h.  */
21275_ACEOF
21276cat confdefs.h >>conftest.$ac_ext
21277cat >>conftest.$ac_ext <<_ACEOF
21278/* end confdefs.h.  */
21279#include <stdlib.h>
21280#include <stdarg.h>
21281#include <string.h>
21282#include <float.h>
21283
21284int
21285main ()
21286{
21287
21288  ;
21289  return 0;
21290}
21291_ACEOF
21292rm -f conftest.$ac_objext
21293if { (ac_try="$ac_compile"
21294case "(($ac_try" in
21295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21296  *) ac_try_echo=$ac_try;;
21297esac
21298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21299  (eval "$ac_compile") 2>conftest.er1
21300  ac_status=$?
21301  grep -v '^ *+' conftest.er1 >conftest.err
21302  rm -f conftest.er1
21303  cat conftest.err >&5
21304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305  (exit $ac_status); } && {
21306	 test -z "$ac_c_werror_flag" ||
21307	 test ! -s conftest.err
21308       } && test -s conftest.$ac_objext; then
21309  ac_cv_header_stdc=yes
21310else
21311  echo "$as_me: failed program was:" >&5
21312sed 's/^/| /' conftest.$ac_ext >&5
21313
21314	ac_cv_header_stdc=no
21315fi
21316
21317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21318
21319if test $ac_cv_header_stdc = yes; then
21320  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21321  cat >conftest.$ac_ext <<_ACEOF
21322/* confdefs.h.  */
21323_ACEOF
21324cat confdefs.h >>conftest.$ac_ext
21325cat >>conftest.$ac_ext <<_ACEOF
21326/* end confdefs.h.  */
21327#include <string.h>
21328
21329_ACEOF
21330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21331  $EGREP "memchr" >/dev/null 2>&1; then
21332  :
21333else
21334  ac_cv_header_stdc=no
21335fi
21336rm -f conftest*
21337
21338fi
21339
21340if test $ac_cv_header_stdc = yes; then
21341  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21342  cat >conftest.$ac_ext <<_ACEOF
21343/* confdefs.h.  */
21344_ACEOF
21345cat confdefs.h >>conftest.$ac_ext
21346cat >>conftest.$ac_ext <<_ACEOF
21347/* end confdefs.h.  */
21348#include <stdlib.h>
21349
21350_ACEOF
21351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21352  $EGREP "free" >/dev/null 2>&1; then
21353  :
21354else
21355  ac_cv_header_stdc=no
21356fi
21357rm -f conftest*
21358
21359fi
21360
21361if test $ac_cv_header_stdc = yes; then
21362  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21363  if test "$cross_compiling" = yes; then
21364  :
21365else
21366  cat >conftest.$ac_ext <<_ACEOF
21367/* confdefs.h.  */
21368_ACEOF
21369cat confdefs.h >>conftest.$ac_ext
21370cat >>conftest.$ac_ext <<_ACEOF
21371/* end confdefs.h.  */
21372#include <ctype.h>
21373#include <stdlib.h>
21374#if ((' ' & 0x0FF) == 0x020)
21375# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21376# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21377#else
21378# define ISLOWER(c) \
21379		   (('a' <= (c) && (c) <= 'i') \
21380		     || ('j' <= (c) && (c) <= 'r') \
21381		     || ('s' <= (c) && (c) <= 'z'))
21382# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21383#endif
21384
21385#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21386int
21387main ()
21388{
21389  int i;
21390  for (i = 0; i < 256; i++)
21391    if (XOR (islower (i), ISLOWER (i))
21392	|| toupper (i) != TOUPPER (i))
21393      return 2;
21394  return 0;
21395}
21396_ACEOF
21397rm -f conftest$ac_exeext
21398if { (ac_try="$ac_link"
21399case "(($ac_try" in
21400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401  *) ac_try_echo=$ac_try;;
21402esac
21403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21404  (eval "$ac_link") 2>&5
21405  ac_status=$?
21406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21408  { (case "(($ac_try" in
21409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410  *) ac_try_echo=$ac_try;;
21411esac
21412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21413  (eval "$ac_try") 2>&5
21414  ac_status=$?
21415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416  (exit $ac_status); }; }; then
21417  :
21418else
21419  echo "$as_me: program exited with status $ac_status" >&5
21420echo "$as_me: failed program was:" >&5
21421sed 's/^/| /' conftest.$ac_ext >&5
21422
21423( exit $ac_status )
21424ac_cv_header_stdc=no
21425fi
21426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21427fi
21428
21429
21430fi
21431fi
21432{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21433echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21434if test $ac_cv_header_stdc = yes; then
21435
21436cat >>confdefs.h <<\_ACEOF
21437#define STDC_HEADERS 1
21438_ACEOF
21439
21440fi
21441
21442
21443if test "$DRI" != no; then
21444	as_ac_File=`echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
21445{ echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
21446echo $ECHO_N "checking for ${sdkdir}/dri.h... $ECHO_C" >&6; }
21447if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21448  echo $ECHO_N "(cached) $ECHO_C" >&6
21449else
21450  test "$cross_compiling" = yes &&
21451  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21452echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21453   { (exit 1); exit 1; }; }
21454if test -r "${sdkdir}/dri.h"; then
21455  eval "$as_ac_File=yes"
21456else
21457  eval "$as_ac_File=no"
21458fi
21459fi
21460ac_res=`eval echo '${'$as_ac_File'}'`
21461	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21462echo "${ECHO_T}$ac_res" >&6; }
21463if test `eval echo '${'$as_ac_File'}'` = yes; then
21464  have_dri_h="yes"
21465else
21466  have_dri_h="no"
21467fi
21468
21469	as_ac_File=`echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
21470{ echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
21471echo $ECHO_N "checking for ${sdkdir}/sarea.h... $ECHO_C" >&6; }
21472if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21473  echo $ECHO_N "(cached) $ECHO_C" >&6
21474else
21475  test "$cross_compiling" = yes &&
21476  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21477echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21478   { (exit 1); exit 1; }; }
21479if test -r "${sdkdir}/sarea.h"; then
21480  eval "$as_ac_File=yes"
21481else
21482  eval "$as_ac_File=no"
21483fi
21484fi
21485ac_res=`eval echo '${'$as_ac_File'}'`
21486	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21487echo "${ECHO_T}$ac_res" >&6; }
21488if test `eval echo '${'$as_ac_File'}'` = yes; then
21489  have_sarea_h="yes"
21490else
21491  have_sarea_h="no"
21492fi
21493
21494	as_ac_File=`echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
21495{ echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
21496echo $ECHO_N "checking for ${sdkdir}/dristruct.h... $ECHO_C" >&6; }
21497if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21498  echo $ECHO_N "(cached) $ECHO_C" >&6
21499else
21500  test "$cross_compiling" = yes &&
21501  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21502echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21503   { (exit 1); exit 1; }; }
21504if test -r "${sdkdir}/dristruct.h"; then
21505  eval "$as_ac_File=yes"
21506else
21507  eval "$as_ac_File=no"
21508fi
21509fi
21510ac_res=`eval echo '${'$as_ac_File'}'`
21511	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21512echo "${ECHO_T}$ac_res" >&6; }
21513if test `eval echo '${'$as_ac_File'}'` = yes; then
21514  have_dristruct_h="yes"
21515else
21516  have_dristruct_h="no"
21517fi
21518
21519	as_ac_File=`echo "ac_cv_file_${sdkdir}/damage.h" | $as_tr_sh`
21520{ echo "$as_me:$LINENO: checking for ${sdkdir}/damage.h" >&5
21521echo $ECHO_N "checking for ${sdkdir}/damage.h... $ECHO_C" >&6; }
21522if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21523  echo $ECHO_N "(cached) $ECHO_C" >&6
21524else
21525  test "$cross_compiling" = yes &&
21526  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21527echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21528   { (exit 1); exit 1; }; }
21529if test -r "${sdkdir}/damage.h"; then
21530  eval "$as_ac_File=yes"
21531else
21532  eval "$as_ac_File=no"
21533fi
21534fi
21535ac_res=`eval echo '${'$as_ac_File'}'`
21536	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21537echo "${ECHO_T}$ac_res" >&6; }
21538if test `eval echo '${'$as_ac_File'}'` = yes; then
21539  have_damage_h="yes"
21540else
21541  have_damage_h="no"
21542fi
21543
21544fi
21545
21546{ echo "$as_me:$LINENO: checking whether to include DRI support" >&5
21547echo $ECHO_N "checking whether to include DRI support... $ECHO_C" >&6; }
21548if test x$DRI = xauto; then
21549	if test "$have_dri_h" = yes -a \
21550                "$have_sarea_h" = yes -a \
21551                "$have_dristruct_h" = yes; then
21552		DRI="yes"
21553	else
21554		DRI="no"
21555	fi
21556fi
21557{ echo "$as_me:$LINENO: result: $DRI" >&5
21558echo "${ECHO_T}$DRI" >&6; }
21559
21560 if test x$DRI = xyes; then
21561  DRI_TRUE=
21562  DRI_FALSE='#'
21563else
21564  DRI_TRUE='#'
21565  DRI_FALSE=
21566fi
21567
21568if test "$DRI" = yes; then
21569
21570pkg_failed=no
21571{ echo "$as_me:$LINENO: checking for DRI" >&5
21572echo $ECHO_N "checking for DRI... $ECHO_C" >&6; }
21573
21574if test -n "$PKG_CONFIG"; then
21575    if test -n "$DRI_CFLAGS"; then
21576        pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
21577    else
21578        if test -n "$PKG_CONFIG" && \
21579    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\"") >&5
21580  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
21581  ac_status=$?
21582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583  (exit $ac_status); }; then
21584  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null`
21585else
21586  pkg_failed=yes
21587fi
21588    fi
21589else
21590	pkg_failed=untried
21591fi
21592if test -n "$PKG_CONFIG"; then
21593    if test -n "$DRI_LIBS"; then
21594        pkg_cv_DRI_LIBS="$DRI_LIBS"
21595    else
21596        if test -n "$PKG_CONFIG" && \
21597    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\"") >&5
21598  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
21599  ac_status=$?
21600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601  (exit $ac_status); }; then
21602  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null`
21603else
21604  pkg_failed=yes
21605fi
21606    fi
21607else
21608	pkg_failed=untried
21609fi
21610
21611
21612
21613if test $pkg_failed = yes; then
21614
21615if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21616        _pkg_short_errors_supported=yes
21617else
21618        _pkg_short_errors_supported=no
21619fi
21620        if test $_pkg_short_errors_supported = yes; then
21621	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libdrm >= 2.2 xf86driproto"`
21622        else
21623	        DRI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdrm >= 2.2 xf86driproto"`
21624        fi
21625	# Put the nasty error message in config.log where it belongs
21626	echo "$DRI_PKG_ERRORS" >&5
21627
21628	{ { echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.2 xf86driproto) were not met:
21629
21630$DRI_PKG_ERRORS
21631
21632Consider adjusting the PKG_CONFIG_PATH environment variable if you
21633installed software in a non-standard prefix.
21634
21635Alternatively, you may set the environment variables DRI_CFLAGS
21636and DRI_LIBS to avoid the need to call pkg-config.
21637See the pkg-config man page for more details.
21638" >&5
21639echo "$as_me: error: Package requirements (libdrm >= 2.2 xf86driproto) were not met:
21640
21641$DRI_PKG_ERRORS
21642
21643Consider adjusting the PKG_CONFIG_PATH environment variable if you
21644installed software in a non-standard prefix.
21645
21646Alternatively, you may set the environment variables DRI_CFLAGS
21647and DRI_LIBS to avoid the need to call pkg-config.
21648See the pkg-config man page for more details.
21649" >&2;}
21650   { (exit 1); exit 1; }; }
21651elif test $pkg_failed = untried; then
21652	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21653is in your PATH or set the PKG_CONFIG environment variable to the full
21654path to pkg-config.
21655
21656Alternatively, you may set the environment variables DRI_CFLAGS
21657and DRI_LIBS to avoid the need to call pkg-config.
21658See the pkg-config man page for more details.
21659
21660To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21661See \`config.log' for more details." >&5
21662echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21663is in your PATH or set the PKG_CONFIG environment variable to the full
21664path to pkg-config.
21665
21666Alternatively, you may set the environment variables DRI_CFLAGS
21667and DRI_LIBS to avoid the need to call pkg-config.
21668See the pkg-config man page for more details.
21669
21670To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21671See \`config.log' for more details." >&2;}
21672   { (exit 1); exit 1; }; }
21673else
21674	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
21675	DRI_LIBS=$pkg_cv_DRI_LIBS
21676        { echo "$as_me:$LINENO: result: yes" >&5
21677echo "${ECHO_T}yes" >&6; }
21678	:
21679fi
21680
21681cat >>confdefs.h <<\_ACEOF
21682#define XF86DRI 1
21683_ACEOF
21684
21685
21686cat >>confdefs.h <<\_ACEOF
21687#define XF86DRI_DEVEL 1
21688_ACEOF
21689
21690	if test "$have_damage_h" = yes; then
21691
21692cat >>confdefs.h <<\_ACEOF
21693#define DAMAGE 1
21694_ACEOF
21695
21696	fi
21697fi
21698
21699save_CFLAGS="$CFLAGS"
21700CFLAGS="$XORG_CFLAGS"
21701{ echo "$as_me:$LINENO: checking for xf86Modes.h" >&5
21702echo $ECHO_N "checking for xf86Modes.h... $ECHO_C" >&6; }
21703if test "${ac_cv_header_xf86Modes_h+set}" = set; then
21704  echo $ECHO_N "(cached) $ECHO_C" >&6
21705else
21706  cat >conftest.$ac_ext <<_ACEOF
21707/* confdefs.h.  */
21708_ACEOF
21709cat confdefs.h >>conftest.$ac_ext
21710cat >>conftest.$ac_ext <<_ACEOF
21711/* end confdefs.h.  */
21712#include "xorg-server.h"
21713
21714#include <xf86Modes.h>
21715_ACEOF
21716rm -f conftest.$ac_objext
21717if { (ac_try="$ac_compile"
21718case "(($ac_try" in
21719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21720  *) ac_try_echo=$ac_try;;
21721esac
21722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21723  (eval "$ac_compile") 2>conftest.er1
21724  ac_status=$?
21725  grep -v '^ *+' conftest.er1 >conftest.err
21726  rm -f conftest.er1
21727  cat conftest.err >&5
21728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729  (exit $ac_status); } && {
21730	 test -z "$ac_c_werror_flag" ||
21731	 test ! -s conftest.err
21732       } && test -s conftest.$ac_objext; then
21733  ac_cv_header_xf86Modes_h=yes
21734else
21735  echo "$as_me: failed program was:" >&5
21736sed 's/^/| /' conftest.$ac_ext >&5
21737
21738	ac_cv_header_xf86Modes_h=no
21739fi
21740
21741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21742fi
21743{ echo "$as_me:$LINENO: result: $ac_cv_header_xf86Modes_h" >&5
21744echo "${ECHO_T}$ac_cv_header_xf86Modes_h" >&6; }
21745if test $ac_cv_header_xf86Modes_h = yes; then
21746  XMODES=yes
21747else
21748  XMODES=no
21749fi
21750
21751
21752CFLAGS="$save_CFLAGS"
21753
21754
21755cat >>confdefs.h <<\_ACEOF
21756#define USE_XAA 1
21757_ACEOF
21758
21759
21760# Properly handle EXA.
21761{ echo "$as_me:$LINENO: checking whether to enable EXA support" >&5
21762echo $ECHO_N "checking whether to enable EXA support... $ECHO_C" >&6; }
21763if test "x$EXA" = xyes; then
21764        { echo "$as_me:$LINENO: result: yes" >&5
21765echo "${ECHO_T}yes" >&6; }
21766
21767        SAVE_CPPFLAGS="$CPPFLAGS"
21768        CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
21769        if test "${ac_cv_header_exa_h+set}" = set; then
21770  { echo "$as_me:$LINENO: checking for exa.h" >&5
21771echo $ECHO_N "checking for exa.h... $ECHO_C" >&6; }
21772if test "${ac_cv_header_exa_h+set}" = set; then
21773  echo $ECHO_N "(cached) $ECHO_C" >&6
21774fi
21775{ echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5
21776echo "${ECHO_T}$ac_cv_header_exa_h" >&6; }
21777else
21778  # Is the header compilable?
21779{ echo "$as_me:$LINENO: checking exa.h usability" >&5
21780echo $ECHO_N "checking exa.h usability... $ECHO_C" >&6; }
21781cat >conftest.$ac_ext <<_ACEOF
21782/* confdefs.h.  */
21783_ACEOF
21784cat confdefs.h >>conftest.$ac_ext
21785cat >>conftest.$ac_ext <<_ACEOF
21786/* end confdefs.h.  */
21787$ac_includes_default
21788#include <exa.h>
21789_ACEOF
21790rm -f conftest.$ac_objext
21791if { (ac_try="$ac_compile"
21792case "(($ac_try" in
21793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794  *) ac_try_echo=$ac_try;;
21795esac
21796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797  (eval "$ac_compile") 2>conftest.er1
21798  ac_status=$?
21799  grep -v '^ *+' conftest.er1 >conftest.err
21800  rm -f conftest.er1
21801  cat conftest.err >&5
21802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803  (exit $ac_status); } && {
21804	 test -z "$ac_c_werror_flag" ||
21805	 test ! -s conftest.err
21806       } && test -s conftest.$ac_objext; then
21807  ac_header_compiler=yes
21808else
21809  echo "$as_me: failed program was:" >&5
21810sed 's/^/| /' conftest.$ac_ext >&5
21811
21812	ac_header_compiler=no
21813fi
21814
21815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21816{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21817echo "${ECHO_T}$ac_header_compiler" >&6; }
21818
21819# Is the header present?
21820{ echo "$as_me:$LINENO: checking exa.h presence" >&5
21821echo $ECHO_N "checking exa.h presence... $ECHO_C" >&6; }
21822cat >conftest.$ac_ext <<_ACEOF
21823/* confdefs.h.  */
21824_ACEOF
21825cat confdefs.h >>conftest.$ac_ext
21826cat >>conftest.$ac_ext <<_ACEOF
21827/* end confdefs.h.  */
21828#include <exa.h>
21829_ACEOF
21830if { (ac_try="$ac_cpp conftest.$ac_ext"
21831case "(($ac_try" in
21832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21833  *) ac_try_echo=$ac_try;;
21834esac
21835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21836  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21837  ac_status=$?
21838  grep -v '^ *+' conftest.er1 >conftest.err
21839  rm -f conftest.er1
21840  cat conftest.err >&5
21841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842  (exit $ac_status); } >/dev/null && {
21843	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21844	 test ! -s conftest.err
21845       }; then
21846  ac_header_preproc=yes
21847else
21848  echo "$as_me: failed program was:" >&5
21849sed 's/^/| /' conftest.$ac_ext >&5
21850
21851  ac_header_preproc=no
21852fi
21853
21854rm -f conftest.err conftest.$ac_ext
21855{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21856echo "${ECHO_T}$ac_header_preproc" >&6; }
21857
21858# So?  What about this header?
21859case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21860  yes:no: )
21861    { echo "$as_me:$LINENO: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&5
21862echo "$as_me: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21863    { echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the compiler's result" >&5
21864echo "$as_me: WARNING: exa.h: proceeding with the compiler's result" >&2;}
21865    ac_header_preproc=yes
21866    ;;
21867  no:yes:* )
21868    { echo "$as_me:$LINENO: WARNING: exa.h: present but cannot be compiled" >&5
21869echo "$as_me: WARNING: exa.h: present but cannot be compiled" >&2;}
21870    { echo "$as_me:$LINENO: WARNING: exa.h:     check for missing prerequisite headers?" >&5
21871echo "$as_me: WARNING: exa.h:     check for missing prerequisite headers?" >&2;}
21872    { echo "$as_me:$LINENO: WARNING: exa.h: see the Autoconf documentation" >&5
21873echo "$as_me: WARNING: exa.h: see the Autoconf documentation" >&2;}
21874    { echo "$as_me:$LINENO: WARNING: exa.h:     section \"Present But Cannot Be Compiled\"" >&5
21875echo "$as_me: WARNING: exa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21876    { echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the preprocessor's result" >&5
21877echo "$as_me: WARNING: exa.h: proceeding with the preprocessor's result" >&2;}
21878    { echo "$as_me:$LINENO: WARNING: exa.h: in the future, the compiler will take precedence" >&5
21879echo "$as_me: WARNING: exa.h: in the future, the compiler will take precedence" >&2;}
21880    ( cat <<\_ASBOX
21881## ---------------------------------------------------------------------- ##
21882## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
21883## ---------------------------------------------------------------------- ##
21884_ASBOX
21885     ) | sed "s/^/$as_me: WARNING:     /" >&2
21886    ;;
21887esac
21888{ echo "$as_me:$LINENO: checking for exa.h" >&5
21889echo $ECHO_N "checking for exa.h... $ECHO_C" >&6; }
21890if test "${ac_cv_header_exa_h+set}" = set; then
21891  echo $ECHO_N "(cached) $ECHO_C" >&6
21892else
21893  ac_cv_header_exa_h=$ac_header_preproc
21894fi
21895{ echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5
21896echo "${ECHO_T}$ac_cv_header_exa_h" >&6; }
21897
21898fi
21899if test $ac_cv_header_exa_h = yes; then
21900  have_exa_h="yes"
21901else
21902  have_exa_h="no"
21903fi
21904
21905
21906        CPPFLAGS="$SAVE_CPPFLAGS"
21907else
21908        { echo "$as_me:$LINENO: result: no" >&5
21909echo "${ECHO_T}no" >&6; }
21910fi
21911
21912SAVE_CPPFLAGS="$CPPFLAGS"
21913CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
21914if test "x$have_exa_h" = xyes; then
21915        { echo "$as_me:$LINENO: checking whether EXA version is at least 2.0.0" >&5
21916echo $ECHO_N "checking whether EXA version is at least 2.0.0... $ECHO_C" >&6; }
21917        cat >conftest.$ac_ext <<_ACEOF
21918/* confdefs.h.  */
21919_ACEOF
21920cat confdefs.h >>conftest.$ac_ext
21921cat >>conftest.$ac_ext <<_ACEOF
21922/* end confdefs.h.  */
21923
21924#include "exa.h"
21925#if EXA_VERSION_MAJOR < 2
21926#error OLD EXA!
21927#endif
21928
21929int
21930main ()
21931{
21932
21933  ;
21934  return 0;
21935}
21936_ACEOF
21937if { (ac_try="$ac_cpp conftest.$ac_ext"
21938case "(($ac_try" in
21939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21940  *) ac_try_echo=$ac_try;;
21941esac
21942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21943  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21944  ac_status=$?
21945  grep -v '^ *+' conftest.er1 >conftest.err
21946  rm -f conftest.er1
21947  cat conftest.err >&5
21948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949  (exit $ac_status); } >/dev/null && {
21950	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21951	 test ! -s conftest.err
21952       }; then
21953  USE_EXA=yes
21954else
21955  echo "$as_me: failed program was:" >&5
21956sed 's/^/| /' conftest.$ac_ext >&5
21957
21958  USE_EXA=no
21959fi
21960
21961rm -f conftest.err conftest.$ac_ext
21962        { echo "$as_me:$LINENO: result: $USE_EXA" >&5
21963echo "${ECHO_T}$USE_EXA" >&6; }
21964
21965        if test "x$USE_EXA" = xyes; then
21966
21967cat >>confdefs.h <<\_ACEOF
21968#define USE_EXA 1
21969_ACEOF
21970
21971        fi
21972fi
21973
21974{ echo "$as_me:$LINENO: checking whether xf86XVFillKeyHelperDrawable is declared" >&5
21975echo $ECHO_N "checking whether xf86XVFillKeyHelperDrawable is declared... $ECHO_C" >&6; }
21976if test "${ac_cv_have_decl_xf86XVFillKeyHelperDrawable+set}" = set; then
21977  echo $ECHO_N "(cached) $ECHO_C" >&6
21978else
21979  cat >conftest.$ac_ext <<_ACEOF
21980/* confdefs.h.  */
21981_ACEOF
21982cat confdefs.h >>conftest.$ac_ext
21983cat >>conftest.$ac_ext <<_ACEOF
21984/* end confdefs.h.  */
21985#include <xf86xv.h>
21986
21987int
21988main ()
21989{
21990#ifndef xf86XVFillKeyHelperDrawable
21991  (void) xf86XVFillKeyHelperDrawable;
21992#endif
21993
21994  ;
21995  return 0;
21996}
21997_ACEOF
21998rm -f conftest.$ac_objext
21999if { (ac_try="$ac_compile"
22000case "(($ac_try" in
22001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002  *) ac_try_echo=$ac_try;;
22003esac
22004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22005  (eval "$ac_compile") 2>conftest.er1
22006  ac_status=$?
22007  grep -v '^ *+' conftest.er1 >conftest.err
22008  rm -f conftest.er1
22009  cat conftest.err >&5
22010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011  (exit $ac_status); } && {
22012	 test -z "$ac_c_werror_flag" ||
22013	 test ! -s conftest.err
22014       } && test -s conftest.$ac_objext; then
22015  ac_cv_have_decl_xf86XVFillKeyHelperDrawable=yes
22016else
22017  echo "$as_me: failed program was:" >&5
22018sed 's/^/| /' conftest.$ac_ext >&5
22019
22020	ac_cv_have_decl_xf86XVFillKeyHelperDrawable=no
22021fi
22022
22023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22024fi
22025{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86XVFillKeyHelperDrawable" >&5
22026echo "${ECHO_T}$ac_cv_have_decl_xf86XVFillKeyHelperDrawable" >&6; }
22027if test $ac_cv_have_decl_xf86XVFillKeyHelperDrawable = yes; then
22028
22029cat >>confdefs.h <<\_ACEOF
22030#define HAVE_XV_DRAWABLE_HELPER 1
22031_ACEOF
22032
22033fi
22034
22035
22036{ echo "$as_me:$LINENO: checking whether xf86ModeBandwidth is declared" >&5
22037echo $ECHO_N "checking whether xf86ModeBandwidth is declared... $ECHO_C" >&6; }
22038if test "${ac_cv_have_decl_xf86ModeBandwidth+set}" = set; then
22039  echo $ECHO_N "(cached) $ECHO_C" >&6
22040else
22041  cat >conftest.$ac_ext <<_ACEOF
22042/* confdefs.h.  */
22043_ACEOF
22044cat confdefs.h >>conftest.$ac_ext
22045cat >>conftest.$ac_ext <<_ACEOF
22046/* end confdefs.h.  */
22047#include "xorg-server.h"
22048	       #include "xf86Modes.h"
22049
22050int
22051main ()
22052{
22053#ifndef xf86ModeBandwidth
22054  (void) xf86ModeBandwidth;
22055#endif
22056
22057  ;
22058  return 0;
22059}
22060_ACEOF
22061rm -f conftest.$ac_objext
22062if { (ac_try="$ac_compile"
22063case "(($ac_try" in
22064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22065  *) ac_try_echo=$ac_try;;
22066esac
22067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22068  (eval "$ac_compile") 2>conftest.er1
22069  ac_status=$?
22070  grep -v '^ *+' conftest.er1 >conftest.err
22071  rm -f conftest.er1
22072  cat conftest.err >&5
22073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074  (exit $ac_status); } && {
22075	 test -z "$ac_c_werror_flag" ||
22076	 test ! -s conftest.err
22077       } && test -s conftest.$ac_objext; then
22078  ac_cv_have_decl_xf86ModeBandwidth=yes
22079else
22080  echo "$as_me: failed program was:" >&5
22081sed 's/^/| /' conftest.$ac_ext >&5
22082
22083	ac_cv_have_decl_xf86ModeBandwidth=no
22084fi
22085
22086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22087fi
22088{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86ModeBandwidth" >&5
22089echo "${ECHO_T}$ac_cv_have_decl_xf86ModeBandwidth" >&6; }
22090if test $ac_cv_have_decl_xf86ModeBandwidth = yes; then
22091
22092cat >>confdefs.h <<\_ACEOF
22093#define HAVE_XF86MODEBANDWIDTH 1
22094_ACEOF
22095
22096fi
22097
22098
22099{ echo "$as_me:$LINENO: checking whether xf86_crtc_clip_video_helper is declared" >&5
22100echo $ECHO_N "checking whether xf86_crtc_clip_video_helper is declared... $ECHO_C" >&6; }
22101if test "${ac_cv_have_decl_xf86_crtc_clip_video_helper+set}" = set; then
22102  echo $ECHO_N "(cached) $ECHO_C" >&6
22103else
22104  cat >conftest.$ac_ext <<_ACEOF
22105/* confdefs.h.  */
22106_ACEOF
22107cat confdefs.h >>conftest.$ac_ext
22108cat >>conftest.$ac_ext <<_ACEOF
22109/* end confdefs.h.  */
22110#include <X11/Xmd.h>
22111	       #include "xorg-server.h"
22112	       #include "xf86i2c.h"
22113	       #include "xf86Crtc.h"
22114
22115int
22116main ()
22117{
22118#ifndef xf86_crtc_clip_video_helper
22119  (void) xf86_crtc_clip_video_helper;
22120#endif
22121
22122  ;
22123  return 0;
22124}
22125_ACEOF
22126rm -f conftest.$ac_objext
22127if { (ac_try="$ac_compile"
22128case "(($ac_try" in
22129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130  *) ac_try_echo=$ac_try;;
22131esac
22132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133  (eval "$ac_compile") 2>conftest.er1
22134  ac_status=$?
22135  grep -v '^ *+' conftest.er1 >conftest.err
22136  rm -f conftest.er1
22137  cat conftest.err >&5
22138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139  (exit $ac_status); } && {
22140	 test -z "$ac_c_werror_flag" ||
22141	 test ! -s conftest.err
22142       } && test -s conftest.$ac_objext; then
22143  ac_cv_have_decl_xf86_crtc_clip_video_helper=yes
22144else
22145  echo "$as_me: failed program was:" >&5
22146sed 's/^/| /' conftest.$ac_ext >&5
22147
22148	ac_cv_have_decl_xf86_crtc_clip_video_helper=no
22149fi
22150
22151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22152fi
22153{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86_crtc_clip_video_helper" >&5
22154echo "${ECHO_T}$ac_cv_have_decl_xf86_crtc_clip_video_helper" >&6; }
22155if test $ac_cv_have_decl_xf86_crtc_clip_video_helper = yes; then
22156
22157cat >>confdefs.h <<\_ACEOF
22158#define HAVE_XF86CRTCCLIPVIDEOHELPER 1
22159_ACEOF
22160
22161fi
22162
22163
22164{ echo "$as_me:$LINENO: checking whether xf86RotateFreeShadow is declared" >&5
22165echo $ECHO_N "checking whether xf86RotateFreeShadow is declared... $ECHO_C" >&6; }
22166if test "${ac_cv_have_decl_xf86RotateFreeShadow+set}" = set; then
22167  echo $ECHO_N "(cached) $ECHO_C" >&6
22168else
22169  cat >conftest.$ac_ext <<_ACEOF
22170/* confdefs.h.  */
22171_ACEOF
22172cat confdefs.h >>conftest.$ac_ext
22173cat >>conftest.$ac_ext <<_ACEOF
22174/* end confdefs.h.  */
22175#include <xorg-server.h>
22176               #include <windowstr.h>
22177	       #include <xf86Crtc.h>
22178
22179int
22180main ()
22181{
22182#ifndef xf86RotateFreeShadow
22183  (void) xf86RotateFreeShadow;
22184#endif
22185
22186  ;
22187  return 0;
22188}
22189_ACEOF
22190rm -f conftest.$ac_objext
22191if { (ac_try="$ac_compile"
22192case "(($ac_try" in
22193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22194  *) ac_try_echo=$ac_try;;
22195esac
22196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22197  (eval "$ac_compile") 2>conftest.er1
22198  ac_status=$?
22199  grep -v '^ *+' conftest.er1 >conftest.err
22200  rm -f conftest.er1
22201  cat conftest.err >&5
22202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203  (exit $ac_status); } && {
22204	 test -z "$ac_c_werror_flag" ||
22205	 test ! -s conftest.err
22206       } && test -s conftest.$ac_objext; then
22207  ac_cv_have_decl_xf86RotateFreeShadow=yes
22208else
22209  echo "$as_me: failed program was:" >&5
22210sed 's/^/| /' conftest.$ac_ext >&5
22211
22212	ac_cv_have_decl_xf86RotateFreeShadow=no
22213fi
22214
22215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22216fi
22217{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86RotateFreeShadow" >&5
22218echo "${ECHO_T}$ac_cv_have_decl_xf86RotateFreeShadow" >&6; }
22219if test $ac_cv_have_decl_xf86RotateFreeShadow = yes; then
22220
22221cat >>confdefs.h <<\_ACEOF
22222#define HAVE_FREE_SHADOW 1
22223_ACEOF
22224
22225fi
22226
22227
22228{ echo "$as_me:$LINENO: checking whether pci_device_enable is declared" >&5
22229echo $ECHO_N "checking whether pci_device_enable is declared... $ECHO_C" >&6; }
22230if test "${ac_cv_have_decl_pci_device_enable+set}" = set; then
22231  echo $ECHO_N "(cached) $ECHO_C" >&6
22232else
22233  cat >conftest.$ac_ext <<_ACEOF
22234/* confdefs.h.  */
22235_ACEOF
22236cat confdefs.h >>conftest.$ac_ext
22237cat >>conftest.$ac_ext <<_ACEOF
22238/* end confdefs.h.  */
22239#include <pciaccess.h>
22240
22241int
22242main ()
22243{
22244#ifndef pci_device_enable
22245  (void) pci_device_enable;
22246#endif
22247
22248  ;
22249  return 0;
22250}
22251_ACEOF
22252rm -f conftest.$ac_objext
22253if { (ac_try="$ac_compile"
22254case "(($ac_try" in
22255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22256  *) ac_try_echo=$ac_try;;
22257esac
22258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22259  (eval "$ac_compile") 2>conftest.er1
22260  ac_status=$?
22261  grep -v '^ *+' conftest.er1 >conftest.err
22262  rm -f conftest.er1
22263  cat conftest.err >&5
22264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265  (exit $ac_status); } && {
22266	 test -z "$ac_c_werror_flag" ||
22267	 test ! -s conftest.err
22268       } && test -s conftest.$ac_objext; then
22269  ac_cv_have_decl_pci_device_enable=yes
22270else
22271  echo "$as_me: failed program was:" >&5
22272sed 's/^/| /' conftest.$ac_ext >&5
22273
22274	ac_cv_have_decl_pci_device_enable=no
22275fi
22276
22277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22278fi
22279{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_pci_device_enable" >&5
22280echo "${ECHO_T}$ac_cv_have_decl_pci_device_enable" >&6; }
22281if test $ac_cv_have_decl_pci_device_enable = yes; then
22282
22283cat >>confdefs.h <<\_ACEOF
22284#define HAVE_PCI_DEVICE_ENABLE 1
22285_ACEOF
22286
22287fi
22288
22289
22290{ echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
22291echo $ECHO_N "checking whether XSERVER_LIBPCIACCESS is declared... $ECHO_C" >&6; }
22292if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
22293  echo $ECHO_N "(cached) $ECHO_C" >&6
22294else
22295  cat >conftest.$ac_ext <<_ACEOF
22296/* confdefs.h.  */
22297_ACEOF
22298cat confdefs.h >>conftest.$ac_ext
22299cat >>conftest.$ac_ext <<_ACEOF
22300/* end confdefs.h.  */
22301#include "xorg-server.h"
22302
22303int
22304main ()
22305{
22306#ifndef XSERVER_LIBPCIACCESS
22307  (void) XSERVER_LIBPCIACCESS;
22308#endif
22309
22310  ;
22311  return 0;
22312}
22313_ACEOF
22314rm -f conftest.$ac_objext
22315if { (ac_try="$ac_compile"
22316case "(($ac_try" in
22317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22318  *) ac_try_echo=$ac_try;;
22319esac
22320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22321  (eval "$ac_compile") 2>conftest.er1
22322  ac_status=$?
22323  grep -v '^ *+' conftest.er1 >conftest.err
22324  rm -f conftest.er1
22325  cat conftest.err >&5
22326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327  (exit $ac_status); } && {
22328	 test -z "$ac_c_werror_flag" ||
22329	 test ! -s conftest.err
22330       } && test -s conftest.$ac_objext; then
22331  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
22332else
22333  echo "$as_me: failed program was:" >&5
22334sed 's/^/| /' conftest.$ac_ext >&5
22335
22336	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
22337fi
22338
22339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22340fi
22341{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
22342echo "${ECHO_T}$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
22343if test $ac_cv_have_decl_XSERVER_LIBPCIACCESS = yes; then
22344  XSERVER_LIBPCIACCESS=yes
22345else
22346  XSERVER_LIBPCIACCESS=no
22347fi
22348
22349
22350 if test "x$XMODES" = xno; then
22351  XMODES_TRUE=
22352  XMODES_FALSE='#'
22353else
22354  XMODES_TRUE='#'
22355  XMODES_FALSE=
22356fi
22357
22358
22359if test "x$XSERVER_SOURCE" = x; then
22360        if test -d ../../xserver; then
22361                XSERVER_SOURCE="`cd ../../xserver && pwd`"
22362        fi
22363fi
22364
22365if test -d "$XSERVER_SOURCE"; then
22366        case "$XSERVER_SOURCE" in
22367        /*)
22368                ;;
22369        *)
22370                XSERVER_SOURCE="`cd $XSERVER_SOURCE && pwd`"
22371        esac
22372        if test -f src/modes/xf86Modes.h; then
22373                :
22374        else
22375                ln -sf $XSERVER_SOURCE/hw/xfree86/modes src/modes
22376        fi
22377
22378        if test -f src/parser/xf86Parser.h; then
22379                :
22380        else
22381                ln -sf $XSERVER_SOURCE/hw/xfree86/parser src/parser
22382        fi
22383fi
22384if test "x$XMODES" = xyes; then
22385        { echo "$as_me:$LINENO: X server has new mode code" >&5
22386echo "$as_me: X server has new mode code" >&6;}
22387
22388cat >>confdefs.h <<\_ACEOF
22389#define XMODES 1
22390_ACEOF
22391
22392        XMODES_CFLAGS=
22393else
22394        if test -f src/modes/xf86Modes.h -a -f src/parser/xf86Parser.h; then
22395                { echo "$as_me:$LINENO: X server is missing new mode code, using local copy" >&5
22396echo "$as_me: X server is missing new mode code, using local copy" >&6;}
22397        else
22398                { { echo "$as_me:$LINENO: error: Must have X server >= 1.3 source tree for mode setting code. Please specify --with-xserver-source" >&5
22399echo "$as_me: error: Must have X server >= 1.3 source tree for mode setting code. Please specify --with-xserver-source" >&2;}
22400   { (exit 1); exit 1; }; }
22401        fi
22402        XMODES_CFLAGS='-DXF86_MODES_RENAME -I$(top_srcdir)/src -I$(top_srcdir)/src/modes -I$(top_srcdir)/src/parser'
22403fi
22404
22405
22406
22407CPPFLAGS="$SAVE_CPPFLAGS"
22408
22409 if test "x$USE_EXA" = xyes; then
22410  USE_EXA_TRUE=
22411  USE_EXA_FALSE='#'
22412else
22413  USE_EXA_TRUE='#'
22414  USE_EXA_FALSE=
22415fi
22416
22417
22418if test "x$XSERVER_LIBPCIACCESS" = xyes; then
22419
22420pkg_failed=no
22421{ echo "$as_me:$LINENO: checking for PCIACCESS" >&5
22422echo $ECHO_N "checking for PCIACCESS... $ECHO_C" >&6; }
22423
22424if test -n "$PKG_CONFIG"; then
22425    if test -n "$PCIACCESS_CFLAGS"; then
22426        pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
22427    else
22428        if test -n "$PKG_CONFIG" && \
22429    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
22430  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
22431  ac_status=$?
22432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433  (exit $ac_status); }; then
22434  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
22435else
22436  pkg_failed=yes
22437fi
22438    fi
22439else
22440	pkg_failed=untried
22441fi
22442if test -n "$PKG_CONFIG"; then
22443    if test -n "$PCIACCESS_LIBS"; then
22444        pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
22445    else
22446        if test -n "$PKG_CONFIG" && \
22447    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
22448  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
22449  ac_status=$?
22450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451  (exit $ac_status); }; then
22452  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
22453else
22454  pkg_failed=yes
22455fi
22456    fi
22457else
22458	pkg_failed=untried
22459fi
22460
22461
22462
22463if test $pkg_failed = yes; then
22464
22465if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22466        _pkg_short_errors_supported=yes
22467else
22468        _pkg_short_errors_supported=no
22469fi
22470        if test $_pkg_short_errors_supported = yes; then
22471	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess >= 0.8.0"`
22472        else
22473	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.8.0"`
22474        fi
22475	# Put the nasty error message in config.log where it belongs
22476	echo "$PCIACCESS_PKG_ERRORS" >&5
22477
22478	{ { echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
22479
22480$PCIACCESS_PKG_ERRORS
22481
22482Consider adjusting the PKG_CONFIG_PATH environment variable if you
22483installed software in a non-standard prefix.
22484
22485Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22486and PCIACCESS_LIBS to avoid the need to call pkg-config.
22487See the pkg-config man page for more details.
22488" >&5
22489echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
22490
22491$PCIACCESS_PKG_ERRORS
22492
22493Consider adjusting the PKG_CONFIG_PATH environment variable if you
22494installed software in a non-standard prefix.
22495
22496Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22497and PCIACCESS_LIBS to avoid the need to call pkg-config.
22498See the pkg-config man page for more details.
22499" >&2;}
22500   { (exit 1); exit 1; }; }
22501elif test $pkg_failed = untried; then
22502	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22503is in your PATH or set the PKG_CONFIG environment variable to the full
22504path to pkg-config.
22505
22506Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22507and PCIACCESS_LIBS to avoid the need to call pkg-config.
22508See the pkg-config man page for more details.
22509
22510To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22511See \`config.log' for more details." >&5
22512echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22513is in your PATH or set the PKG_CONFIG environment variable to the full
22514path to pkg-config.
22515
22516Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22517and PCIACCESS_LIBS to avoid the need to call pkg-config.
22518See the pkg-config man page for more details.
22519
22520To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22521See \`config.log' for more details." >&2;}
22522   { (exit 1); exit 1; }; }
22523else
22524	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
22525	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
22526        { echo "$as_me:$LINENO: result: yes" >&5
22527echo "${ECHO_T}yes" >&6; }
22528	:
22529fi
22530    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
22531fi
22532 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
22533  XSERVER_LIBPCIACCESS_TRUE=
22534  XSERVER_LIBPCIACCESS_FALSE='#'
22535else
22536  XSERVER_LIBPCIACCESS_TRUE='#'
22537  XSERVER_LIBPCIACCESS_FALSE=
22538fi
22539
22540
22541# Checks for headers/macros for byte swapping
22542# Known variants:
22543#	<byteswap.h> bswap_16, bswap_32, bswap_64  (glibc)
22544#	<sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
22545#	<sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
22546#	and a fallback to local macros if none of the above are found
22547
22548# if <byteswap.h> is found, assume it's the correct version
22549
22550for ac_header in byteswap.h
22551do
22552as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22554  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22557  echo $ECHO_N "(cached) $ECHO_C" >&6
22558fi
22559ac_res=`eval echo '${'$as_ac_Header'}'`
22560	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22561echo "${ECHO_T}$ac_res" >&6; }
22562else
22563  # Is the header compilable?
22564{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22565echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22566cat >conftest.$ac_ext <<_ACEOF
22567/* confdefs.h.  */
22568_ACEOF
22569cat confdefs.h >>conftest.$ac_ext
22570cat >>conftest.$ac_ext <<_ACEOF
22571/* end confdefs.h.  */
22572$ac_includes_default
22573#include <$ac_header>
22574_ACEOF
22575rm -f conftest.$ac_objext
22576if { (ac_try="$ac_compile"
22577case "(($ac_try" in
22578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22579  *) ac_try_echo=$ac_try;;
22580esac
22581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22582  (eval "$ac_compile") 2>conftest.er1
22583  ac_status=$?
22584  grep -v '^ *+' conftest.er1 >conftest.err
22585  rm -f conftest.er1
22586  cat conftest.err >&5
22587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588  (exit $ac_status); } && {
22589	 test -z "$ac_c_werror_flag" ||
22590	 test ! -s conftest.err
22591       } && test -s conftest.$ac_objext; then
22592  ac_header_compiler=yes
22593else
22594  echo "$as_me: failed program was:" >&5
22595sed 's/^/| /' conftest.$ac_ext >&5
22596
22597	ac_header_compiler=no
22598fi
22599
22600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22601{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22602echo "${ECHO_T}$ac_header_compiler" >&6; }
22603
22604# Is the header present?
22605{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22606echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22607cat >conftest.$ac_ext <<_ACEOF
22608/* confdefs.h.  */
22609_ACEOF
22610cat confdefs.h >>conftest.$ac_ext
22611cat >>conftest.$ac_ext <<_ACEOF
22612/* end confdefs.h.  */
22613#include <$ac_header>
22614_ACEOF
22615if { (ac_try="$ac_cpp conftest.$ac_ext"
22616case "(($ac_try" in
22617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22618  *) ac_try_echo=$ac_try;;
22619esac
22620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22621  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22622  ac_status=$?
22623  grep -v '^ *+' conftest.er1 >conftest.err
22624  rm -f conftest.er1
22625  cat conftest.err >&5
22626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627  (exit $ac_status); } >/dev/null && {
22628	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22629	 test ! -s conftest.err
22630       }; then
22631  ac_header_preproc=yes
22632else
22633  echo "$as_me: failed program was:" >&5
22634sed 's/^/| /' conftest.$ac_ext >&5
22635
22636  ac_header_preproc=no
22637fi
22638
22639rm -f conftest.err conftest.$ac_ext
22640{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22641echo "${ECHO_T}$ac_header_preproc" >&6; }
22642
22643# So?  What about this header?
22644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22645  yes:no: )
22646    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22647echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22648    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22649echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22650    ac_header_preproc=yes
22651    ;;
22652  no:yes:* )
22653    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22654echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22655    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22656echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22657    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22658echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22659    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22660echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22661    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22662echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22663    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22664echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22665    ( cat <<\_ASBOX
22666## ---------------------------------------------------------------------- ##
22667## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
22668## ---------------------------------------------------------------------- ##
22669_ASBOX
22670     ) | sed "s/^/$as_me: WARNING:     /" >&2
22671    ;;
22672esac
22673{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22676  echo $ECHO_N "(cached) $ECHO_C" >&6
22677else
22678  eval "$as_ac_Header=\$ac_header_preproc"
22679fi
22680ac_res=`eval echo '${'$as_ac_Header'}'`
22681	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22682echo "${ECHO_T}$ac_res" >&6; }
22683
22684fi
22685if test `eval echo '${'$as_ac_Header'}'` = yes; then
22686  cat >>confdefs.h <<_ACEOF
22687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22688_ACEOF
22689
22690fi
22691
22692done
22693
22694
22695# if <sys/endian.h> is found, have to check which version
22696if test "${ac_cv_header_sys_endian_h+set}" = set; then
22697  { echo "$as_me:$LINENO: checking for sys/endian.h" >&5
22698echo $ECHO_N "checking for sys/endian.h... $ECHO_C" >&6; }
22699if test "${ac_cv_header_sys_endian_h+set}" = set; then
22700  echo $ECHO_N "(cached) $ECHO_C" >&6
22701fi
22702{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_endian_h" >&5
22703echo "${ECHO_T}$ac_cv_header_sys_endian_h" >&6; }
22704else
22705  # Is the header compilable?
22706{ echo "$as_me:$LINENO: checking sys/endian.h usability" >&5
22707echo $ECHO_N "checking sys/endian.h usability... $ECHO_C" >&6; }
22708cat >conftest.$ac_ext <<_ACEOF
22709/* confdefs.h.  */
22710_ACEOF
22711cat confdefs.h >>conftest.$ac_ext
22712cat >>conftest.$ac_ext <<_ACEOF
22713/* end confdefs.h.  */
22714$ac_includes_default
22715#include <sys/endian.h>
22716_ACEOF
22717rm -f conftest.$ac_objext
22718if { (ac_try="$ac_compile"
22719case "(($ac_try" in
22720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22721  *) ac_try_echo=$ac_try;;
22722esac
22723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22724  (eval "$ac_compile") 2>conftest.er1
22725  ac_status=$?
22726  grep -v '^ *+' conftest.er1 >conftest.err
22727  rm -f conftest.er1
22728  cat conftest.err >&5
22729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730  (exit $ac_status); } && {
22731	 test -z "$ac_c_werror_flag" ||
22732	 test ! -s conftest.err
22733       } && test -s conftest.$ac_objext; then
22734  ac_header_compiler=yes
22735else
22736  echo "$as_me: failed program was:" >&5
22737sed 's/^/| /' conftest.$ac_ext >&5
22738
22739	ac_header_compiler=no
22740fi
22741
22742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22743{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22744echo "${ECHO_T}$ac_header_compiler" >&6; }
22745
22746# Is the header present?
22747{ echo "$as_me:$LINENO: checking sys/endian.h presence" >&5
22748echo $ECHO_N "checking sys/endian.h presence... $ECHO_C" >&6; }
22749cat >conftest.$ac_ext <<_ACEOF
22750/* confdefs.h.  */
22751_ACEOF
22752cat confdefs.h >>conftest.$ac_ext
22753cat >>conftest.$ac_ext <<_ACEOF
22754/* end confdefs.h.  */
22755#include <sys/endian.h>
22756_ACEOF
22757if { (ac_try="$ac_cpp conftest.$ac_ext"
22758case "(($ac_try" in
22759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22760  *) ac_try_echo=$ac_try;;
22761esac
22762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22763  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22764  ac_status=$?
22765  grep -v '^ *+' conftest.er1 >conftest.err
22766  rm -f conftest.er1
22767  cat conftest.err >&5
22768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769  (exit $ac_status); } >/dev/null && {
22770	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22771	 test ! -s conftest.err
22772       }; then
22773  ac_header_preproc=yes
22774else
22775  echo "$as_me: failed program was:" >&5
22776sed 's/^/| /' conftest.$ac_ext >&5
22777
22778  ac_header_preproc=no
22779fi
22780
22781rm -f conftest.err conftest.$ac_ext
22782{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22783echo "${ECHO_T}$ac_header_preproc" >&6; }
22784
22785# So?  What about this header?
22786case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22787  yes:no: )
22788    { echo "$as_me:$LINENO: WARNING: sys/endian.h: accepted by the compiler, rejected by the preprocessor!" >&5
22789echo "$as_me: WARNING: sys/endian.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22790    { echo "$as_me:$LINENO: WARNING: sys/endian.h: proceeding with the compiler's result" >&5
22791echo "$as_me: WARNING: sys/endian.h: proceeding with the compiler's result" >&2;}
22792    ac_header_preproc=yes
22793    ;;
22794  no:yes:* )
22795    { echo "$as_me:$LINENO: WARNING: sys/endian.h: present but cannot be compiled" >&5
22796echo "$as_me: WARNING: sys/endian.h: present but cannot be compiled" >&2;}
22797    { echo "$as_me:$LINENO: WARNING: sys/endian.h:     check for missing prerequisite headers?" >&5
22798echo "$as_me: WARNING: sys/endian.h:     check for missing prerequisite headers?" >&2;}
22799    { echo "$as_me:$LINENO: WARNING: sys/endian.h: see the Autoconf documentation" >&5
22800echo "$as_me: WARNING: sys/endian.h: see the Autoconf documentation" >&2;}
22801    { echo "$as_me:$LINENO: WARNING: sys/endian.h:     section \"Present But Cannot Be Compiled\"" >&5
22802echo "$as_me: WARNING: sys/endian.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22803    { echo "$as_me:$LINENO: WARNING: sys/endian.h: proceeding with the preprocessor's result" >&5
22804echo "$as_me: WARNING: sys/endian.h: proceeding with the preprocessor's result" >&2;}
22805    { echo "$as_me:$LINENO: WARNING: sys/endian.h: in the future, the compiler will take precedence" >&5
22806echo "$as_me: WARNING: sys/endian.h: in the future, the compiler will take precedence" >&2;}
22807    ( cat <<\_ASBOX
22808## ---------------------------------------------------------------------- ##
22809## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
22810## ---------------------------------------------------------------------- ##
22811_ASBOX
22812     ) | sed "s/^/$as_me: WARNING:     /" >&2
22813    ;;
22814esac
22815{ echo "$as_me:$LINENO: checking for sys/endian.h" >&5
22816echo $ECHO_N "checking for sys/endian.h... $ECHO_C" >&6; }
22817if test "${ac_cv_header_sys_endian_h+set}" = set; then
22818  echo $ECHO_N "(cached) $ECHO_C" >&6
22819else
22820  ac_cv_header_sys_endian_h=$ac_header_preproc
22821fi
22822{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_endian_h" >&5
22823echo "${ECHO_T}$ac_cv_header_sys_endian_h" >&6; }
22824
22825fi
22826if test $ac_cv_header_sys_endian_h = yes; then
22827  HAVE_SYS_ENDIAN_H="yes"
22828else
22829  HAVE_SYS_ENDIAN_H="no"
22830fi
22831
22832
22833
22834if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
22835	{ echo "$as_me:$LINENO: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
22836echo $ECHO_N "checking for __swap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
22837	cat >conftest.$ac_ext <<_ACEOF
22838/* confdefs.h.  */
22839_ACEOF
22840cat confdefs.h >>conftest.$ac_ext
22841cat >>conftest.$ac_ext <<_ACEOF
22842/* end confdefs.h.  */
22843
22844#include <sys/types.h>
22845#include <sys/endian.h>
22846
22847int
22848main ()
22849{
22850
22851int a = 1, b;
22852b = __swap16(a);
22853
22854  ;
22855  return 0;
22856}
22857
22858_ACEOF
22859rm -f conftest.$ac_objext conftest$ac_exeext
22860if { (ac_try="$ac_link"
22861case "(($ac_try" in
22862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22863  *) ac_try_echo=$ac_try;;
22864esac
22865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22866  (eval "$ac_link") 2>conftest.er1
22867  ac_status=$?
22868  grep -v '^ *+' conftest.er1 >conftest.err
22869  rm -f conftest.er1
22870  cat conftest.err >&5
22871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872  (exit $ac_status); } && {
22873	 test -z "$ac_c_werror_flag" ||
22874	 test ! -s conftest.err
22875       } && test -s conftest$ac_exeext &&
22876       $as_test_x conftest$ac_exeext; then
22877  SYS_ENDIAN__SWAP='yes'
22878else
22879  echo "$as_me: failed program was:" >&5
22880sed 's/^/| /' conftest.$ac_ext >&5
22881
22882	SYS_ENDIAN__SWAP='no'
22883fi
22884
22885rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22886      conftest$ac_exeext conftest.$ac_ext
22887	{ echo "$as_me:$LINENO: result: $SYS_ENDIAN__SWAP" >&5
22888echo "${ECHO_T}$SYS_ENDIAN__SWAP" >&6; }
22889
22890	{ echo "$as_me:$LINENO: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
22891echo $ECHO_N "checking for bswap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
22892	cat >conftest.$ac_ext <<_ACEOF
22893/* confdefs.h.  */
22894_ACEOF
22895cat confdefs.h >>conftest.$ac_ext
22896cat >>conftest.$ac_ext <<_ACEOF
22897/* end confdefs.h.  */
22898
22899#include <sys/types.h>
22900#include <sys/endian.h>
22901
22902int
22903main ()
22904{
22905
22906int a = 1, b;
22907b = bswap16(a);
22908
22909  ;
22910  return 0;
22911}
22912
22913_ACEOF
22914rm -f conftest.$ac_objext conftest$ac_exeext
22915if { (ac_try="$ac_link"
22916case "(($ac_try" in
22917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22918  *) ac_try_echo=$ac_try;;
22919esac
22920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22921  (eval "$ac_link") 2>conftest.er1
22922  ac_status=$?
22923  grep -v '^ *+' conftest.er1 >conftest.err
22924  rm -f conftest.er1
22925  cat conftest.err >&5
22926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927  (exit $ac_status); } && {
22928	 test -z "$ac_c_werror_flag" ||
22929	 test ! -s conftest.err
22930       } && test -s conftest$ac_exeext &&
22931       $as_test_x conftest$ac_exeext; then
22932  SYS_ENDIAN_BSWAP='yes'
22933else
22934  echo "$as_me: failed program was:" >&5
22935sed 's/^/| /' conftest.$ac_ext >&5
22936
22937	SYS_ENDIAN_BSWAP='no'
22938fi
22939
22940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22941      conftest$ac_exeext conftest.$ac_ext
22942	{ echo "$as_me:$LINENO: result: $SYS_ENDIAN_BSWAP" >&5
22943echo "${ECHO_T}$SYS_ENDIAN_BSWAP" >&6; }
22944
22945    	if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
22946		USE_SYS_ENDIAN_H=yes
22947		BSWAP=bswap
22948	else
22949	    	if test "$SYS_ENDIAN__SWAP" = "yes" ; then
22950			USE_SYS_ENDIAN_H=yes
22951			BSWAP=__swap
22952		else
22953			USE_SYS_ENDIAN_H=no
22954		fi
22955	fi
22956
22957	if test "$USE_SYS_ENDIAN_H" = "yes" ; then
22958
22959cat >>confdefs.h <<\_ACEOF
22960#define USE_SYS_ENDIAN_H 1
22961_ACEOF
22962
22963
22964cat >>confdefs.h <<_ACEOF
22965#define bswap_16 ${BSWAP}16
22966_ACEOF
22967
22968
22969cat >>confdefs.h <<_ACEOF
22970#define bswap_32 ${BSWAP}32
22971_ACEOF
22972
22973
22974cat >>confdefs.h <<_ACEOF
22975#define bswap_64 ${BSWAP}64
22976_ACEOF
22977
22978	fi
22979fi
22980
22981case $host_os in
22982  *linux*)
22983
22984cat >>confdefs.h <<\_ACEOF
22985#define FGL_LINUX 1
22986_ACEOF
22987 ;;
22988esac
22989
22990
22991
22992
22993
22994DRIVER_NAME=ati
22995
22996
22997
22998
22999
23000if test x$APP_MAN_SUFFIX = x    ; then
23001    APP_MAN_SUFFIX=1
23002fi
23003if test x$APP_MAN_DIR = x    ; then
23004    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
23005fi
23006
23007if test x$LIB_MAN_SUFFIX = x    ; then
23008    LIB_MAN_SUFFIX=3
23009fi
23010if test x$LIB_MAN_DIR = x    ; then
23011    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
23012fi
23013
23014if test x$FILE_MAN_SUFFIX = x    ; then
23015    case $host_os in
23016	solaris*)	FILE_MAN_SUFFIX=4  ;;
23017	*)		FILE_MAN_SUFFIX=5  ;;
23018    esac
23019fi
23020if test x$FILE_MAN_DIR = x    ; then
23021    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
23022fi
23023
23024if test x$MISC_MAN_SUFFIX = x    ; then
23025    case $host_os in
23026	solaris*)	MISC_MAN_SUFFIX=5  ;;
23027	*)		MISC_MAN_SUFFIX=7  ;;
23028    esac
23029fi
23030if test x$MISC_MAN_DIR = x    ; then
23031    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
23032fi
23033
23034if test x$DRIVER_MAN_SUFFIX = x    ; then
23035    case $host_os in
23036	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
23037	*)		DRIVER_MAN_SUFFIX=4  ;;
23038    esac
23039fi
23040if test x$DRIVER_MAN_DIR = x    ; then
23041    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
23042fi
23043
23044if test x$ADMIN_MAN_SUFFIX = x    ; then
23045    case $host_os in
23046	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
23047	*)		ADMIN_MAN_SUFFIX=8  ;;
23048    esac
23049fi
23050if test x$ADMIN_MAN_DIR = x    ; then
23051    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
23052fi
23053
23054
23055
23056
23057
23058
23059
23060
23061
23062
23063
23064
23065
23066
23067
23068
23069
23070# Check whether --with-release-version was given.
23071if test "${with_release_version+set}" = set; then
23072  withval=$with_release_version; RELEASE_VERSION="$withval"
23073else
23074  RELEASE_VERSION=""
23075fi
23076
23077	if test "x$RELEASE_VERSION" != "x"; then
23078		PACKAGE="$PACKAGE-$RELEASE_VERSION"
23079		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
23080		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
23081echo "$as_me: Building with package name set to $PACKAGE" >&6;}
23082	fi
23083
23084cat >>confdefs.h <<_ACEOF
23085#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
23086_ACEOF
23087
23088	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
23089	if test "x$PVM" = "x"; then
23090		PVM="0"
23091	fi
23092
23093cat >>confdefs.h <<_ACEOF
23094#define PACKAGE_VERSION_MINOR $PVM
23095_ACEOF
23096
23097	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
23098	if test "x$PVP" = "x"; then
23099		PVP="0"
23100	fi
23101
23102cat >>confdefs.h <<_ACEOF
23103#define PACKAGE_VERSION_PATCHLEVEL $PVP
23104_ACEOF
23105
23106
23107
23108XORG_SGML_PATH=$prefix/share/sgml
23109HAVE_DEFS_ENT=
23110
23111if test x"$cross_compiling" = x"yes" ; then
23112  HAVE_DEFS_ENT=no
23113else
23114  as_ac_File=`echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh`
23115{ echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5
23116echo $ECHO_N "checking for $XORG_SGML_PATH/X11/defs.ent... $ECHO_C" >&6; }
23117if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23118  echo $ECHO_N "(cached) $ECHO_C" >&6
23119else
23120  test "$cross_compiling" = yes &&
23121  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23122echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23123   { (exit 1); exit 1; }; }
23124if test -r "$XORG_SGML_PATH/X11/defs.ent"; then
23125  eval "$as_ac_File=yes"
23126else
23127  eval "$as_ac_File=no"
23128fi
23129fi
23130ac_res=`eval echo '${'$as_ac_File'}'`
23131	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23132echo "${ECHO_T}$ac_res" >&6; }
23133if test `eval echo '${'$as_ac_File'}'` = yes; then
23134  HAVE_DEFS_ENT=yes
23135fi
23136
23137fi
23138
23139# Extract the first word of "linuxdoc", so it can be a program name with args.
23140set dummy linuxdoc; ac_word=$2
23141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23143if test "${ac_cv_path_LINUXDOC+set}" = set; then
23144  echo $ECHO_N "(cached) $ECHO_C" >&6
23145else
23146  case $LINUXDOC in
23147  [\\/]* | ?:[\\/]*)
23148  ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path.
23149  ;;
23150  *)
23151  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23152for as_dir in $PATH
23153do
23154  IFS=$as_save_IFS
23155  test -z "$as_dir" && as_dir=.
23156  for ac_exec_ext in '' $ac_executable_extensions; do
23157  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23158    ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext"
23159    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23160    break 2
23161  fi
23162done
23163done
23164IFS=$as_save_IFS
23165
23166  ;;
23167esac
23168fi
23169LINUXDOC=$ac_cv_path_LINUXDOC
23170if test -n "$LINUXDOC"; then
23171  { echo "$as_me:$LINENO: result: $LINUXDOC" >&5
23172echo "${ECHO_T}$LINUXDOC" >&6; }
23173else
23174  { echo "$as_me:$LINENO: result: no" >&5
23175echo "${ECHO_T}no" >&6; }
23176fi
23177
23178
23179# Extract the first word of "ps2pdf", so it can be a program name with args.
23180set dummy ps2pdf; ac_word=$2
23181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23183if test "${ac_cv_path_PS2PDF+set}" = set; then
23184  echo $ECHO_N "(cached) $ECHO_C" >&6
23185else
23186  case $PS2PDF in
23187  [\\/]* | ?:[\\/]*)
23188  ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
23189  ;;
23190  *)
23191  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23192for as_dir in $PATH
23193do
23194  IFS=$as_save_IFS
23195  test -z "$as_dir" && as_dir=.
23196  for ac_exec_ext in '' $ac_executable_extensions; do
23197  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23198    ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
23199    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23200    break 2
23201  fi
23202done
23203done
23204IFS=$as_save_IFS
23205
23206  ;;
23207esac
23208fi
23209PS2PDF=$ac_cv_path_PS2PDF
23210if test -n "$PS2PDF"; then
23211  { echo "$as_me:$LINENO: result: $PS2PDF" >&5
23212echo "${ECHO_T}$PS2PDF" >&6; }
23213else
23214  { echo "$as_me:$LINENO: result: no" >&5
23215echo "${ECHO_T}no" >&6; }
23216fi
23217
23218
23219
23220{ echo "$as_me:$LINENO: checking Whether to build documentation" >&5
23221echo $ECHO_N "checking Whether to build documentation... $ECHO_C" >&6; }
23222
23223if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
23224   BUILDDOC=yes
23225else
23226   BUILDDOC=no
23227fi
23228
23229 if test x$BUILDDOC = xyes; then
23230  BUILD_LINUXDOC_TRUE=
23231  BUILD_LINUXDOC_FALSE='#'
23232else
23233  BUILD_LINUXDOC_TRUE='#'
23234  BUILD_LINUXDOC_FALSE=
23235fi
23236
23237
23238{ echo "$as_me:$LINENO: result: $BUILDDOC" >&5
23239echo "${ECHO_T}$BUILDDOC" >&6; }
23240
23241{ echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5
23242echo $ECHO_N "checking Whether to build pdf documentation... $ECHO_C" >&6; }
23243
23244if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
23245   BUILDPDFDOC=yes
23246else
23247   BUILDPDFDOC=no
23248fi
23249
23250 if test x$BUILDPDFDOC = xyes; then
23251  BUILD_PDFDOC_TRUE=
23252  BUILD_PDFDOC_FALSE='#'
23253else
23254  BUILD_PDFDOC_TRUE='#'
23255  BUILD_PDFDOC_FALSE=
23256fi
23257
23258
23259{ echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5
23260echo "${ECHO_T}$BUILDPDFDOC" >&6; }
23261
23262MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
23263MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
23264MAKE_PDF="$PS2PDF"
23265MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC  -B html --split=0"
23266
23267
23268
23269
23270
23271
23272
23273{ echo "$as_me:$LINENO: The atimisc sub-driver has been split out to xf86-video-mach64:
23274    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
23275Please install that driver as well for mach64-based cards.
23276" >&5
23277echo "$as_me: The atimisc sub-driver has been split out to xf86-video-mach64:
23278    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
23279Please install that driver as well for mach64-based cards.
23280" >&6;}
23281
23282{ echo "$as_me:$LINENO: The r128 sub-driver has been split out to xf86-video-r128:
23283    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
23284Please install that driver as well for rage128-based cards.
23285" >&5
23286echo "$as_me: The r128 sub-driver has been split out to xf86-video-r128:
23287    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
23288Please install that driver as well for rage128-based cards.
23289" >&6;}
23290
23291ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
23292
23293cat >confcache <<\_ACEOF
23294# This file is a shell script that caches the results of configure
23295# tests run on this system so they can be shared between configure
23296# scripts and configure runs, see configure's option --config-cache.
23297# It is not useful on other systems.  If it contains results you don't
23298# want to keep, you may remove or edit it.
23299#
23300# config.status only pays attention to the cache file if you give it
23301# the --recheck option to rerun configure.
23302#
23303# `ac_cv_env_foo' variables (set or unset) will be overridden when
23304# loading this file, other *unset* `ac_cv_foo' will be assigned the
23305# following values.
23306
23307_ACEOF
23308
23309# The following way of writing the cache mishandles newlines in values,
23310# but we know of no workaround that is simple, portable, and efficient.
23311# So, we kill variables containing newlines.
23312# Ultrix sh set writes to stderr and can't be redirected directly,
23313# and sets the high bit in the cache file unless we assign to the vars.
23314(
23315  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23316    eval ac_val=\$$ac_var
23317    case $ac_val in #(
23318    *${as_nl}*)
23319      case $ac_var in #(
23320      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23321echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23322      esac
23323      case $ac_var in #(
23324      _ | IFS | as_nl) ;; #(
23325      *) $as_unset $ac_var ;;
23326      esac ;;
23327    esac
23328  done
23329
23330  (set) 2>&1 |
23331    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23332    *${as_nl}ac_space=\ *)
23333      # `set' does not quote correctly, so add quotes (double-quote
23334      # substitution turns \\\\ into \\, and sed turns \\ into \).
23335      sed -n \
23336	"s/'/'\\\\''/g;
23337	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23338      ;; #(
23339    *)
23340      # `set' quotes correctly as required by POSIX, so do not add quotes.
23341      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23342      ;;
23343    esac |
23344    sort
23345) |
23346  sed '
23347     /^ac_cv_env_/b end
23348     t clear
23349     :clear
23350     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23351     t end
23352     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23353     :end' >>confcache
23354if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23355  if test -w "$cache_file"; then
23356    test "x$cache_file" != "x/dev/null" &&
23357      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23358echo "$as_me: updating cache $cache_file" >&6;}
23359    cat confcache >$cache_file
23360  else
23361    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23362echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23363  fi
23364fi
23365rm -f confcache
23366
23367test "x$prefix" = xNONE && prefix=$ac_default_prefix
23368# Let make expand exec_prefix.
23369test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23370
23371DEFS=-DHAVE_CONFIG_H
23372
23373ac_libobjs=
23374ac_ltlibobjs=
23375for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23376  # 1. Remove the extension, and $U if already installed.
23377  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23378  ac_i=`echo "$ac_i" | sed "$ac_script"`
23379  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23380  #    will be set to the directory where LIBOBJS objects are built.
23381  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23382  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23383done
23384LIBOBJS=$ac_libobjs
23385
23386LTLIBOBJS=$ac_ltlibobjs
23387
23388
23389if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23390  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23391Usually this means the macro was only invoked conditionally." >&5
23392echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23393Usually this means the macro was only invoked conditionally." >&2;}
23394   { (exit 1); exit 1; }; }
23395fi
23396if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23397  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23398Usually this means the macro was only invoked conditionally." >&5
23399echo "$as_me: error: conditional \"AMDEP\" was never defined.
23400Usually this means the macro was only invoked conditionally." >&2;}
23401   { (exit 1); exit 1; }; }
23402fi
23403if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23404  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23405Usually this means the macro was only invoked conditionally." >&5
23406echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23407Usually this means the macro was only invoked conditionally." >&2;}
23408   { (exit 1); exit 1; }; }
23409fi
23410if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23411  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23412Usually this means the macro was only invoked conditionally." >&5
23413echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23414Usually this means the macro was only invoked conditionally." >&2;}
23415   { (exit 1); exit 1; }; }
23416fi
23417if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23418  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23419Usually this means the macro was only invoked conditionally." >&5
23420echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23421Usually this means the macro was only invoked conditionally." >&2;}
23422   { (exit 1); exit 1; }; }
23423fi
23424if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
23425  { { echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
23426Usually this means the macro was only invoked conditionally." >&5
23427echo "$as_me: error: conditional \"DRI\" was never defined.
23428Usually this means the macro was only invoked conditionally." >&2;}
23429   { (exit 1); exit 1; }; }
23430fi
23431if test -z "${XMODES_TRUE}" && test -z "${XMODES_FALSE}"; then
23432  { { echo "$as_me:$LINENO: error: conditional \"XMODES\" was never defined.
23433Usually this means the macro was only invoked conditionally." >&5
23434echo "$as_me: error: conditional \"XMODES\" was never defined.
23435Usually this means the macro was only invoked conditionally." >&2;}
23436   { (exit 1); exit 1; }; }
23437fi
23438if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
23439  { { echo "$as_me:$LINENO: error: conditional \"USE_EXA\" was never defined.
23440Usually this means the macro was only invoked conditionally." >&5
23441echo "$as_me: error: conditional \"USE_EXA\" was never defined.
23442Usually this means the macro was only invoked conditionally." >&2;}
23443   { (exit 1); exit 1; }; }
23444fi
23445if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
23446  { { echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
23447Usually this means the macro was only invoked conditionally." >&5
23448echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
23449Usually this means the macro was only invoked conditionally." >&2;}
23450   { (exit 1); exit 1; }; }
23451fi
23452if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then
23453  { { echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined.
23454Usually this means the macro was only invoked conditionally." >&5
23455echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined.
23456Usually this means the macro was only invoked conditionally." >&2;}
23457   { (exit 1); exit 1; }; }
23458fi
23459if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
23460  { { echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined.
23461Usually this means the macro was only invoked conditionally." >&5
23462echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined.
23463Usually this means the macro was only invoked conditionally." >&2;}
23464   { (exit 1); exit 1; }; }
23465fi
23466
23467: ${CONFIG_STATUS=./config.status}
23468ac_clean_files_save=$ac_clean_files
23469ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23470{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23471echo "$as_me: creating $CONFIG_STATUS" >&6;}
23472cat >$CONFIG_STATUS <<_ACEOF
23473#! $SHELL
23474# Generated by $as_me.
23475# Run this file to recreate the current configuration.
23476# Compiler output produced by configure, useful for debugging
23477# configure, is in config.log if it exists.
23478
23479debug=false
23480ac_cs_recheck=false
23481ac_cs_silent=false
23482SHELL=\${CONFIG_SHELL-$SHELL}
23483_ACEOF
23484
23485cat >>$CONFIG_STATUS <<\_ACEOF
23486## --------------------- ##
23487## M4sh Initialization.  ##
23488## --------------------- ##
23489
23490# Be more Bourne compatible
23491DUALCASE=1; export DUALCASE # for MKS sh
23492if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23493  emulate sh
23494  NULLCMD=:
23495  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23496  # is contrary to our usage.  Disable this feature.
23497  alias -g '${1+"$@"}'='"$@"'
23498  setopt NO_GLOB_SUBST
23499else
23500  case `(set -o) 2>/dev/null` in
23501  *posix*) set -o posix ;;
23502esac
23503
23504fi
23505
23506
23507
23508
23509# PATH needs CR
23510# Avoid depending upon Character Ranges.
23511as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23512as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23513as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23514as_cr_digits='0123456789'
23515as_cr_alnum=$as_cr_Letters$as_cr_digits
23516
23517# The user is always right.
23518if test "${PATH_SEPARATOR+set}" != set; then
23519  echo "#! /bin/sh" >conf$$.sh
23520  echo  "exit 0"   >>conf$$.sh
23521  chmod +x conf$$.sh
23522  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23523    PATH_SEPARATOR=';'
23524  else
23525    PATH_SEPARATOR=:
23526  fi
23527  rm -f conf$$.sh
23528fi
23529
23530# Support unset when possible.
23531if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23532  as_unset=unset
23533else
23534  as_unset=false
23535fi
23536
23537
23538# IFS
23539# We need space, tab and new line, in precisely that order.  Quoting is
23540# there to prevent editors from complaining about space-tab.
23541# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23542# splitting by setting IFS to empty value.)
23543as_nl='
23544'
23545IFS=" ""	$as_nl"
23546
23547# Find who we are.  Look in the path if we contain no directory separator.
23548case $0 in
23549  *[\\/]* ) as_myself=$0 ;;
23550  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23551for as_dir in $PATH
23552do
23553  IFS=$as_save_IFS
23554  test -z "$as_dir" && as_dir=.
23555  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23556done
23557IFS=$as_save_IFS
23558
23559     ;;
23560esac
23561# We did not find ourselves, most probably we were run as `sh COMMAND'
23562# in which case we are not to be found in the path.
23563if test "x$as_myself" = x; then
23564  as_myself=$0
23565fi
23566if test ! -f "$as_myself"; then
23567  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23568  { (exit 1); exit 1; }
23569fi
23570
23571# Work around bugs in pre-3.0 UWIN ksh.
23572for as_var in ENV MAIL MAILPATH
23573do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23574done
23575PS1='$ '
23576PS2='> '
23577PS4='+ '
23578
23579# NLS nuisances.
23580for as_var in \
23581  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23582  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23583  LC_TELEPHONE LC_TIME
23584do
23585  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23586    eval $as_var=C; export $as_var
23587  else
23588    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23589  fi
23590done
23591
23592# Required to use basename.
23593if expr a : '\(a\)' >/dev/null 2>&1 &&
23594   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23595  as_expr=expr
23596else
23597  as_expr=false
23598fi
23599
23600if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23601  as_basename=basename
23602else
23603  as_basename=false
23604fi
23605
23606
23607# Name of the executable.
23608as_me=`$as_basename -- "$0" ||
23609$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23610	 X"$0" : 'X\(//\)$' \| \
23611	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23612echo X/"$0" |
23613    sed '/^.*\/\([^/][^/]*\)\/*$/{
23614	    s//\1/
23615	    q
23616	  }
23617	  /^X\/\(\/\/\)$/{
23618	    s//\1/
23619	    q
23620	  }
23621	  /^X\/\(\/\).*/{
23622	    s//\1/
23623	    q
23624	  }
23625	  s/.*/./; q'`
23626
23627# CDPATH.
23628$as_unset CDPATH
23629
23630
23631
23632  as_lineno_1=$LINENO
23633  as_lineno_2=$LINENO
23634  test "x$as_lineno_1" != "x$as_lineno_2" &&
23635  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23636
23637  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23638  # uniformly replaced by the line number.  The first 'sed' inserts a
23639  # line-number line after each line using $LINENO; the second 'sed'
23640  # does the real work.  The second script uses 'N' to pair each
23641  # line-number line with the line containing $LINENO, and appends
23642  # trailing '-' during substitution so that $LINENO is not a special
23643  # case at line end.
23644  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23645  # scripts with optimization help from Paolo Bonzini.  Blame Lee
23646  # E. McMahon (1931-1989) for sed's syntax.  :-)
23647  sed -n '
23648    p
23649    /[$]LINENO/=
23650  ' <$as_myself |
23651    sed '
23652      s/[$]LINENO.*/&-/
23653      t lineno
23654      b
23655      :lineno
23656      N
23657      :loop
23658      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23659      t loop
23660      s/-\n.*//
23661    ' >$as_me.lineno &&
23662  chmod +x "$as_me.lineno" ||
23663    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23664   { (exit 1); exit 1; }; }
23665
23666  # Don't try to exec as it changes $[0], causing all sort of problems
23667  # (the dirname of $[0] is not the place where we might find the
23668  # original and so on.  Autoconf is especially sensitive to this).
23669  . "./$as_me.lineno"
23670  # Exit status is that of the last command.
23671  exit
23672}
23673
23674
23675if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23676  as_dirname=dirname
23677else
23678  as_dirname=false
23679fi
23680
23681ECHO_C= ECHO_N= ECHO_T=
23682case `echo -n x` in
23683-n*)
23684  case `echo 'x\c'` in
23685  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23686  *)   ECHO_C='\c';;
23687  esac;;
23688*)
23689  ECHO_N='-n';;
23690esac
23691
23692if expr a : '\(a\)' >/dev/null 2>&1 &&
23693   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23694  as_expr=expr
23695else
23696  as_expr=false
23697fi
23698
23699rm -f conf$$ conf$$.exe conf$$.file
23700if test -d conf$$.dir; then
23701  rm -f conf$$.dir/conf$$.file
23702else
23703  rm -f conf$$.dir
23704  mkdir conf$$.dir
23705fi
23706echo >conf$$.file
23707if ln -s conf$$.file conf$$ 2>/dev/null; then
23708  as_ln_s='ln -s'
23709  # ... but there are two gotchas:
23710  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23711  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23712  # In both cases, we have to default to `cp -p'.
23713  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23714    as_ln_s='cp -p'
23715elif ln conf$$.file conf$$ 2>/dev/null; then
23716  as_ln_s=ln
23717else
23718  as_ln_s='cp -p'
23719fi
23720rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23721rmdir conf$$.dir 2>/dev/null
23722
23723if mkdir -p . 2>/dev/null; then
23724  as_mkdir_p=:
23725else
23726  test -d ./-p && rmdir ./-p
23727  as_mkdir_p=false
23728fi
23729
23730if test -x / >/dev/null 2>&1; then
23731  as_test_x='test -x'
23732else
23733  if ls -dL / >/dev/null 2>&1; then
23734    as_ls_L_option=L
23735  else
23736    as_ls_L_option=
23737  fi
23738  as_test_x='
23739    eval sh -c '\''
23740      if test -d "$1"; then
23741        test -d "$1/.";
23742      else
23743	case $1 in
23744        -*)set "./$1";;
23745	esac;
23746	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23747	???[sx]*):;;*)false;;esac;fi
23748    '\'' sh
23749  '
23750fi
23751as_executable_p=$as_test_x
23752
23753# Sed expression to map a string onto a valid CPP name.
23754as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23755
23756# Sed expression to map a string onto a valid variable name.
23757as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23758
23759
23760exec 6>&1
23761
23762# Save the log message, to keep $[0] and so on meaningful, and to
23763# report actual input values of CONFIG_FILES etc. instead of their
23764# values after options handling.
23765ac_log="
23766This file was extended by xf86-video-ati $as_me 6.9.0, which was
23767generated by GNU Autoconf 2.61.  Invocation command line was
23768
23769  CONFIG_FILES    = $CONFIG_FILES
23770  CONFIG_HEADERS  = $CONFIG_HEADERS
23771  CONFIG_LINKS    = $CONFIG_LINKS
23772  CONFIG_COMMANDS = $CONFIG_COMMANDS
23773  $ $0 $@
23774
23775on `(hostname || uname -n) 2>/dev/null | sed 1q`
23776"
23777
23778_ACEOF
23779
23780cat >>$CONFIG_STATUS <<_ACEOF
23781# Files that config.status was made for.
23782config_files="$ac_config_files"
23783config_headers="$ac_config_headers"
23784config_commands="$ac_config_commands"
23785
23786_ACEOF
23787
23788cat >>$CONFIG_STATUS <<\_ACEOF
23789ac_cs_usage="\
23790\`$as_me' instantiates files from templates according to the
23791current configuration.
23792
23793Usage: $0 [OPTIONS] [FILE]...
23794
23795  -h, --help       print this help, then exit
23796  -V, --version    print version number and configuration settings, then exit
23797  -q, --quiet      do not print progress messages
23798  -d, --debug      don't remove temporary files
23799      --recheck    update $as_me by reconfiguring in the same conditions
23800  --file=FILE[:TEMPLATE]
23801		   instantiate the configuration file FILE
23802  --header=FILE[:TEMPLATE]
23803		   instantiate the configuration header FILE
23804
23805Configuration files:
23806$config_files
23807
23808Configuration headers:
23809$config_headers
23810
23811Configuration commands:
23812$config_commands
23813
23814Report bugs to <bug-autoconf@gnu.org>."
23815
23816_ACEOF
23817cat >>$CONFIG_STATUS <<_ACEOF
23818ac_cs_version="\\
23819xf86-video-ati config.status 6.9.0
23820configured by $0, generated by GNU Autoconf 2.61,
23821  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23822
23823Copyright (C) 2006 Free Software Foundation, Inc.
23824This config.status script is free software; the Free Software Foundation
23825gives unlimited permission to copy, distribute and modify it."
23826
23827ac_pwd='$ac_pwd'
23828srcdir='$srcdir'
23829INSTALL='$INSTALL'
23830MKDIR_P='$MKDIR_P'
23831_ACEOF
23832
23833cat >>$CONFIG_STATUS <<\_ACEOF
23834# If no file are specified by the user, then we need to provide default
23835# value.  By we need to know if files were specified by the user.
23836ac_need_defaults=:
23837while test $# != 0
23838do
23839  case $1 in
23840  --*=*)
23841    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23842    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23843    ac_shift=:
23844    ;;
23845  *)
23846    ac_option=$1
23847    ac_optarg=$2
23848    ac_shift=shift
23849    ;;
23850  esac
23851
23852  case $ac_option in
23853  # Handling of the options.
23854  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23855    ac_cs_recheck=: ;;
23856  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23857    echo "$ac_cs_version"; exit ;;
23858  --debug | --debu | --deb | --de | --d | -d )
23859    debug=: ;;
23860  --file | --fil | --fi | --f )
23861    $ac_shift
23862    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23863    ac_need_defaults=false;;
23864  --header | --heade | --head | --hea )
23865    $ac_shift
23866    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23867    ac_need_defaults=false;;
23868  --he | --h)
23869    # Conflict between --help and --header
23870    { echo "$as_me: error: ambiguous option: $1
23871Try \`$0 --help' for more information." >&2
23872   { (exit 1); exit 1; }; };;
23873  --help | --hel | -h )
23874    echo "$ac_cs_usage"; exit ;;
23875  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23876  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23877    ac_cs_silent=: ;;
23878
23879  # This is an error.
23880  -*) { echo "$as_me: error: unrecognized option: $1
23881Try \`$0 --help' for more information." >&2
23882   { (exit 1); exit 1; }; } ;;
23883
23884  *) ac_config_targets="$ac_config_targets $1"
23885     ac_need_defaults=false ;;
23886
23887  esac
23888  shift
23889done
23890
23891ac_configure_extra_args=
23892
23893if $ac_cs_silent; then
23894  exec 6>/dev/null
23895  ac_configure_extra_args="$ac_configure_extra_args --silent"
23896fi
23897
23898_ACEOF
23899cat >>$CONFIG_STATUS <<_ACEOF
23900if \$ac_cs_recheck; then
23901  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23902  CONFIG_SHELL=$SHELL
23903  export CONFIG_SHELL
23904  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23905fi
23906
23907_ACEOF
23908cat >>$CONFIG_STATUS <<\_ACEOF
23909exec 5>>config.log
23910{
23911  echo
23912  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23913## Running $as_me. ##
23914_ASBOX
23915  echo "$ac_log"
23916} >&5
23917
23918_ACEOF
23919cat >>$CONFIG_STATUS <<_ACEOF
23920#
23921# INIT-COMMANDS
23922#
23923AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23924
23925_ACEOF
23926
23927cat >>$CONFIG_STATUS <<\_ACEOF
23928
23929# Handling of arguments.
23930for ac_config_target in $ac_config_targets
23931do
23932  case $ac_config_target in
23933    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23934    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23935    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23936    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23937    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23938
23939  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23940echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23941   { (exit 1); exit 1; }; };;
23942  esac
23943done
23944
23945
23946# If the user did not use the arguments to specify the items to instantiate,
23947# then the envvar interface is used.  Set only those that are not.
23948# We use the long form for the default assignment because of an extremely
23949# bizarre bug on SunOS 4.1.3.
23950if $ac_need_defaults; then
23951  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23952  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23953  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23954fi
23955
23956# Have a temporary directory for convenience.  Make it in the build tree
23957# simply because there is no reason against having it here, and in addition,
23958# creating and moving files from /tmp can sometimes cause problems.
23959# Hook for its removal unless debugging.
23960# Note that there is a small window in which the directory will not be cleaned:
23961# after its creation but before its name has been assigned to `$tmp'.
23962$debug ||
23963{
23964  tmp=
23965  trap 'exit_status=$?
23966  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23967' 0
23968  trap '{ (exit 1); exit 1; }' 1 2 13 15
23969}
23970# Create a (secure) tmp directory for tmp files.
23971
23972{
23973  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23974  test -n "$tmp" && test -d "$tmp"
23975}  ||
23976{
23977  tmp=./conf$$-$RANDOM
23978  (umask 077 && mkdir "$tmp")
23979} ||
23980{
23981   echo "$me: cannot create a temporary directory in ." >&2
23982   { (exit 1); exit 1; }
23983}
23984
23985#
23986# Set up the sed scripts for CONFIG_FILES section.
23987#
23988
23989# No need to generate the scripts if there are no CONFIG_FILES.
23990# This happens for instance when ./config.status config.h
23991if test -n "$CONFIG_FILES"; then
23992
23993_ACEOF
23994
23995
23996
23997ac_delim='%!_!# '
23998for ac_last_try in false false false false false :; do
23999  cat >conf$$subs.sed <<_ACEOF
24000SHELL!$SHELL$ac_delim
24001PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24002PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24003PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24004PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24005PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24006PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24007exec_prefix!$exec_prefix$ac_delim
24008prefix!$prefix$ac_delim
24009program_transform_name!$program_transform_name$ac_delim
24010bindir!$bindir$ac_delim
24011sbindir!$sbindir$ac_delim
24012libexecdir!$libexecdir$ac_delim
24013datarootdir!$datarootdir$ac_delim
24014datadir!$datadir$ac_delim
24015sysconfdir!$sysconfdir$ac_delim
24016sharedstatedir!$sharedstatedir$ac_delim
24017localstatedir!$localstatedir$ac_delim
24018includedir!$includedir$ac_delim
24019oldincludedir!$oldincludedir$ac_delim
24020docdir!$docdir$ac_delim
24021infodir!$infodir$ac_delim
24022htmldir!$htmldir$ac_delim
24023dvidir!$dvidir$ac_delim
24024pdfdir!$pdfdir$ac_delim
24025psdir!$psdir$ac_delim
24026libdir!$libdir$ac_delim
24027localedir!$localedir$ac_delim
24028mandir!$mandir$ac_delim
24029DEFS!$DEFS$ac_delim
24030ECHO_C!$ECHO_C$ac_delim
24031ECHO_N!$ECHO_N$ac_delim
24032ECHO_T!$ECHO_T$ac_delim
24033LIBS!$LIBS$ac_delim
24034build_alias!$build_alias$ac_delim
24035host_alias!$host_alias$ac_delim
24036target_alias!$target_alias$ac_delim
24037INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24038INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24039INSTALL_DATA!$INSTALL_DATA$ac_delim
24040am__isrc!$am__isrc$ac_delim
24041CYGPATH_W!$CYGPATH_W$ac_delim
24042PACKAGE!$PACKAGE$ac_delim
24043VERSION!$VERSION$ac_delim
24044ACLOCAL!$ACLOCAL$ac_delim
24045AUTOCONF!$AUTOCONF$ac_delim
24046AUTOMAKE!$AUTOMAKE$ac_delim
24047AUTOHEADER!$AUTOHEADER$ac_delim
24048MAKEINFO!$MAKEINFO$ac_delim
24049install_sh!$install_sh$ac_delim
24050STRIP!$STRIP$ac_delim
24051INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24052mkdir_p!$mkdir_p$ac_delim
24053AWK!$AWK$ac_delim
24054SET_MAKE!$SET_MAKE$ac_delim
24055am__leading_dot!$am__leading_dot$ac_delim
24056AMTAR!$AMTAR$ac_delim
24057am__tar!$am__tar$ac_delim
24058am__untar!$am__untar$ac_delim
24059MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
24060MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
24061MAINT!$MAINT$ac_delim
24062build!$build$ac_delim
24063build_cpu!$build_cpu$ac_delim
24064build_vendor!$build_vendor$ac_delim
24065build_os!$build_os$ac_delim
24066host!$host$ac_delim
24067host_cpu!$host_cpu$ac_delim
24068host_vendor!$host_vendor$ac_delim
24069host_os!$host_os$ac_delim
24070CC!$CC$ac_delim
24071CFLAGS!$CFLAGS$ac_delim
24072LDFLAGS!$LDFLAGS$ac_delim
24073CPPFLAGS!$CPPFLAGS$ac_delim
24074ac_ct_CC!$ac_ct_CC$ac_delim
24075EXEEXT!$EXEEXT$ac_delim
24076OBJEXT!$OBJEXT$ac_delim
24077DEPDIR!$DEPDIR$ac_delim
24078am__include!$am__include$ac_delim
24079am__quote!$am__quote$ac_delim
24080AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24081AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24082AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24083CCDEPMODE!$CCDEPMODE$ac_delim
24084am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24085am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24086SED!$SED$ac_delim
24087GREP!$GREP$ac_delim
24088EGREP!$EGREP$ac_delim
24089LN_S!$LN_S$ac_delim
24090ECHO!$ECHO$ac_delim
24091AR!$AR$ac_delim
24092RANLIB!$RANLIB$ac_delim
24093DSYMUTIL!$DSYMUTIL$ac_delim
24094NMEDIT!$NMEDIT$ac_delim
24095CPP!$CPP$ac_delim
24096CXX!$CXX$ac_delim
24097_ACEOF
24098
24099  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24100    break
24101  elif $ac_last_try; then
24102    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24103echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24104   { (exit 1); exit 1; }; }
24105  else
24106    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24107  fi
24108done
24109
24110ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24111if test -n "$ac_eof"; then
24112  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24113  ac_eof=`expr $ac_eof + 1`
24114fi
24115
24116cat >>$CONFIG_STATUS <<_ACEOF
24117cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24118/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24119_ACEOF
24120sed '
24121s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24122s/^/s,@/; s/!/@,|#_!!_#|/
24123:n
24124t n
24125s/'"$ac_delim"'$/,g/; t
24126s/$/\\/; p
24127N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24128' >>$CONFIG_STATUS <conf$$subs.sed
24129rm -f conf$$subs.sed
24130cat >>$CONFIG_STATUS <<_ACEOF
24131CEOF$ac_eof
24132_ACEOF
24133
24134
24135ac_delim='%!_!# '
24136for ac_last_try in false false false false false :; do
24137  cat >conf$$subs.sed <<_ACEOF
24138CXXFLAGS!$CXXFLAGS$ac_delim
24139ac_ct_CXX!$ac_ct_CXX$ac_delim
24140CXXDEPMODE!$CXXDEPMODE$ac_delim
24141am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24142am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24143CXXCPP!$CXXCPP$ac_delim
24144F77!$F77$ac_delim
24145FFLAGS!$FFLAGS$ac_delim
24146ac_ct_F77!$ac_ct_F77$ac_delim
24147LIBTOOL!$LIBTOOL$ac_delim
24148PKG_CONFIG!$PKG_CONFIG$ac_delim
24149XORG_CFLAGS!$XORG_CFLAGS$ac_delim
24150XORG_LIBS!$XORG_LIBS$ac_delim
24151DRI_TRUE!$DRI_TRUE$ac_delim
24152DRI_FALSE!$DRI_FALSE$ac_delim
24153DRI_CFLAGS!$DRI_CFLAGS$ac_delim
24154DRI_LIBS!$DRI_LIBS$ac_delim
24155XMODES_TRUE!$XMODES_TRUE$ac_delim
24156XMODES_FALSE!$XMODES_FALSE$ac_delim
24157XMODES_CFLAGS!$XMODES_CFLAGS$ac_delim
24158USE_EXA_TRUE!$USE_EXA_TRUE$ac_delim
24159USE_EXA_FALSE!$USE_EXA_FALSE$ac_delim
24160PCIACCESS_CFLAGS!$PCIACCESS_CFLAGS$ac_delim
24161PCIACCESS_LIBS!$PCIACCESS_LIBS$ac_delim
24162XSERVER_LIBPCIACCESS_TRUE!$XSERVER_LIBPCIACCESS_TRUE$ac_delim
24163XSERVER_LIBPCIACCESS_FALSE!$XSERVER_LIBPCIACCESS_FALSE$ac_delim
24164moduledir!$moduledir$ac_delim
24165DRIVER_NAME!$DRIVER_NAME$ac_delim
24166APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
24167LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
24168FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
24169MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
24170DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
24171ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
24172APP_MAN_DIR!$APP_MAN_DIR$ac_delim
24173LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
24174FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
24175MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
24176DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
24177ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
24178LINUXDOC!$LINUXDOC$ac_delim
24179PS2PDF!$PS2PDF$ac_delim
24180BUILD_LINUXDOC_TRUE!$BUILD_LINUXDOC_TRUE$ac_delim
24181BUILD_LINUXDOC_FALSE!$BUILD_LINUXDOC_FALSE$ac_delim
24182BUILD_PDFDOC_TRUE!$BUILD_PDFDOC_TRUE$ac_delim
24183BUILD_PDFDOC_FALSE!$BUILD_PDFDOC_FALSE$ac_delim
24184MAKE_TEXT!$MAKE_TEXT$ac_delim
24185MAKE_PS!$MAKE_PS$ac_delim
24186MAKE_PDF!$MAKE_PDF$ac_delim
24187MAKE_HTML!$MAKE_HTML$ac_delim
24188LIBOBJS!$LIBOBJS$ac_delim
24189LTLIBOBJS!$LTLIBOBJS$ac_delim
24190_ACEOF
24191
24192  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
24193    break
24194  elif $ac_last_try; then
24195    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24196echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24197   { (exit 1); exit 1; }; }
24198  else
24199    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24200  fi
24201done
24202
24203ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24204if test -n "$ac_eof"; then
24205  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24206  ac_eof=`expr $ac_eof + 1`
24207fi
24208
24209cat >>$CONFIG_STATUS <<_ACEOF
24210cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24211/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24212_ACEOF
24213sed '
24214s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24215s/^/s,@/; s/!/@,|#_!!_#|/
24216:n
24217t n
24218s/'"$ac_delim"'$/,g/; t
24219s/$/\\/; p
24220N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24221' >>$CONFIG_STATUS <conf$$subs.sed
24222rm -f conf$$subs.sed
24223cat >>$CONFIG_STATUS <<_ACEOF
24224:end
24225s/|#_!!_#|//g
24226CEOF$ac_eof
24227_ACEOF
24228
24229
24230# VPATH may cause trouble with some makes, so we remove $(srcdir),
24231# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24232# trailing colons and then remove the whole line if VPATH becomes empty
24233# (actually we leave an empty line to preserve line numbers).
24234if test "x$srcdir" = x.; then
24235  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
24236s/:*\$(srcdir):*/:/
24237s/:*\${srcdir}:*/:/
24238s/:*@srcdir@:*/:/
24239s/^\([^=]*=[	 ]*\):*/\1/
24240s/:*$//
24241s/^[^=]*=[	 ]*$//
24242}'
24243fi
24244
24245cat >>$CONFIG_STATUS <<\_ACEOF
24246fi # test -n "$CONFIG_FILES"
24247
24248
24249for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24250do
24251  case $ac_tag in
24252  :[FHLC]) ac_mode=$ac_tag; continue;;
24253  esac
24254  case $ac_mode$ac_tag in
24255  :[FHL]*:*);;
24256  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24257echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24258   { (exit 1); exit 1; }; };;
24259  :[FH]-) ac_tag=-:-;;
24260  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24261  esac
24262  ac_save_IFS=$IFS
24263  IFS=:
24264  set x $ac_tag
24265  IFS=$ac_save_IFS
24266  shift
24267  ac_file=$1
24268  shift
24269
24270  case $ac_mode in
24271  :L) ac_source=$1;;
24272  :[FH])
24273    ac_file_inputs=
24274    for ac_f
24275    do
24276      case $ac_f in
24277      -) ac_f="$tmp/stdin";;
24278      *) # Look for the file first in the build tree, then in the source tree
24279	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
24280	 # because $ac_f cannot contain `:'.
24281	 test -f "$ac_f" ||
24282	   case $ac_f in
24283	   [\\/$]*) false;;
24284	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24285	   esac ||
24286	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24287echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24288   { (exit 1); exit 1; }; };;
24289      esac
24290      ac_file_inputs="$ac_file_inputs $ac_f"
24291    done
24292
24293    # Let's still pretend it is `configure' which instantiates (i.e., don't
24294    # use $as_me), people would be surprised to read:
24295    #    /* config.h.  Generated by config.status.  */
24296    configure_input="Generated from "`IFS=:
24297	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24298    if test x"$ac_file" != x-; then
24299      configure_input="$ac_file.  $configure_input"
24300      { echo "$as_me:$LINENO: creating $ac_file" >&5
24301echo "$as_me: creating $ac_file" >&6;}
24302    fi
24303
24304    case $ac_tag in
24305    *:-:* | *:-) cat >"$tmp/stdin";;
24306    esac
24307    ;;
24308  esac
24309
24310  ac_dir=`$as_dirname -- "$ac_file" ||
24311$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24312	 X"$ac_file" : 'X\(//\)[^/]' \| \
24313	 X"$ac_file" : 'X\(//\)$' \| \
24314	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24315echo X"$ac_file" |
24316    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24317	    s//\1/
24318	    q
24319	  }
24320	  /^X\(\/\/\)[^/].*/{
24321	    s//\1/
24322	    q
24323	  }
24324	  /^X\(\/\/\)$/{
24325	    s//\1/
24326	    q
24327	  }
24328	  /^X\(\/\).*/{
24329	    s//\1/
24330	    q
24331	  }
24332	  s/.*/./; q'`
24333  { as_dir="$ac_dir"
24334  case $as_dir in #(
24335  -*) as_dir=./$as_dir;;
24336  esac
24337  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24338    as_dirs=
24339    while :; do
24340      case $as_dir in #(
24341      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24342      *) as_qdir=$as_dir;;
24343      esac
24344      as_dirs="'$as_qdir' $as_dirs"
24345      as_dir=`$as_dirname -- "$as_dir" ||
24346$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24347	 X"$as_dir" : 'X\(//\)[^/]' \| \
24348	 X"$as_dir" : 'X\(//\)$' \| \
24349	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24350echo X"$as_dir" |
24351    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24352	    s//\1/
24353	    q
24354	  }
24355	  /^X\(\/\/\)[^/].*/{
24356	    s//\1/
24357	    q
24358	  }
24359	  /^X\(\/\/\)$/{
24360	    s//\1/
24361	    q
24362	  }
24363	  /^X\(\/\).*/{
24364	    s//\1/
24365	    q
24366	  }
24367	  s/.*/./; q'`
24368      test -d "$as_dir" && break
24369    done
24370    test -z "$as_dirs" || eval "mkdir $as_dirs"
24371  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24372echo "$as_me: error: cannot create directory $as_dir" >&2;}
24373   { (exit 1); exit 1; }; }; }
24374  ac_builddir=.
24375
24376case "$ac_dir" in
24377.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24378*)
24379  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24380  # A ".." for each directory in $ac_dir_suffix.
24381  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24382  case $ac_top_builddir_sub in
24383  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24384  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24385  esac ;;
24386esac
24387ac_abs_top_builddir=$ac_pwd
24388ac_abs_builddir=$ac_pwd$ac_dir_suffix
24389# for backward compatibility:
24390ac_top_builddir=$ac_top_build_prefix
24391
24392case $srcdir in
24393  .)  # We are building in place.
24394    ac_srcdir=.
24395    ac_top_srcdir=$ac_top_builddir_sub
24396    ac_abs_top_srcdir=$ac_pwd ;;
24397  [\\/]* | ?:[\\/]* )  # Absolute name.
24398    ac_srcdir=$srcdir$ac_dir_suffix;
24399    ac_top_srcdir=$srcdir
24400    ac_abs_top_srcdir=$srcdir ;;
24401  *) # Relative name.
24402    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24403    ac_top_srcdir=$ac_top_build_prefix$srcdir
24404    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24405esac
24406ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24407
24408
24409  case $ac_mode in
24410  :F)
24411  #
24412  # CONFIG_FILE
24413  #
24414
24415  case $INSTALL in
24416  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24417  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24418  esac
24419  ac_MKDIR_P=$MKDIR_P
24420  case $MKDIR_P in
24421  [\\/$]* | ?:[\\/]* ) ;;
24422  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24423  esac
24424_ACEOF
24425
24426cat >>$CONFIG_STATUS <<\_ACEOF
24427# If the template does not know about datarootdir, expand it.
24428# FIXME: This hack should be removed a few years after 2.60.
24429ac_datarootdir_hack=; ac_datarootdir_seen=
24430
24431case `sed -n '/datarootdir/ {
24432  p
24433  q
24434}
24435/@datadir@/p
24436/@docdir@/p
24437/@infodir@/p
24438/@localedir@/p
24439/@mandir@/p
24440' $ac_file_inputs` in
24441*datarootdir*) ac_datarootdir_seen=yes;;
24442*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24443  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24444echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24445_ACEOF
24446cat >>$CONFIG_STATUS <<_ACEOF
24447  ac_datarootdir_hack='
24448  s&@datadir@&$datadir&g
24449  s&@docdir@&$docdir&g
24450  s&@infodir@&$infodir&g
24451  s&@localedir@&$localedir&g
24452  s&@mandir@&$mandir&g
24453    s&\\\${datarootdir}&$datarootdir&g' ;;
24454esac
24455_ACEOF
24456
24457# Neutralize VPATH when `$srcdir' = `.'.
24458# Shell code in configure.ac might set extrasub.
24459# FIXME: do we really want to maintain this feature?
24460cat >>$CONFIG_STATUS <<_ACEOF
24461  sed "$ac_vpsub
24462$extrasub
24463_ACEOF
24464cat >>$CONFIG_STATUS <<\_ACEOF
24465:t
24466/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24467s&@configure_input@&$configure_input&;t t
24468s&@top_builddir@&$ac_top_builddir_sub&;t t
24469s&@srcdir@&$ac_srcdir&;t t
24470s&@abs_srcdir@&$ac_abs_srcdir&;t t
24471s&@top_srcdir@&$ac_top_srcdir&;t t
24472s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24473s&@builddir@&$ac_builddir&;t t
24474s&@abs_builddir@&$ac_abs_builddir&;t t
24475s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24476s&@INSTALL@&$ac_INSTALL&;t t
24477s&@MKDIR_P@&$ac_MKDIR_P&;t t
24478$ac_datarootdir_hack
24479" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24480
24481test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24482  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24483  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24484  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24485which seems to be undefined.  Please make sure it is defined." >&5
24486echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24487which seems to be undefined.  Please make sure it is defined." >&2;}
24488
24489  rm -f "$tmp/stdin"
24490  case $ac_file in
24491  -) cat "$tmp/out"; rm -f "$tmp/out";;
24492  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24493  esac
24494 ;;
24495  :H)
24496  #
24497  # CONFIG_HEADER
24498  #
24499_ACEOF
24500
24501# Transform confdefs.h into a sed script `conftest.defines', that
24502# substitutes the proper values into config.h.in to produce config.h.
24503rm -f conftest.defines conftest.tail
24504# First, append a space to every undef/define line, to ease matching.
24505echo 's/$/ /' >conftest.defines
24506# Then, protect against being on the right side of a sed subst, or in
24507# an unquoted here document, in config.status.  If some macros were
24508# called several times there might be several #defines for the same
24509# symbol, which is useless.  But do not sort them, since the last
24510# AC_DEFINE must be honored.
24511ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24512# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24513# NAME is the cpp macro being defined, VALUE is the value it is being given.
24514# PARAMS is the parameter list in the macro definition--in most cases, it's
24515# just an empty string.
24516ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
24517ac_dB='\\)[	 (].*,\\1define\\2'
24518ac_dC=' '
24519ac_dD=' ,'
24520
24521uniq confdefs.h |
24522  sed -n '
24523	t rset
24524	:rset
24525	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
24526	t ok
24527	d
24528	:ok
24529	s/[\\&,]/\\&/g
24530	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24531	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24532  ' >>conftest.defines
24533
24534# Remove the space that was appended to ease matching.
24535# Then replace #undef with comments.  This is necessary, for
24536# example, in the case of _POSIX_SOURCE, which is predefined and required
24537# on some systems where configure will not decide to define it.
24538# (The regexp can be short, since the line contains either #define or #undef.)
24539echo 's/ $//
24540s,^[	 #]*u.*,/* & */,' >>conftest.defines
24541
24542# Break up conftest.defines:
24543ac_max_sed_lines=50
24544
24545# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24546# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24547# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24548# et cetera.
24549ac_in='$ac_file_inputs'
24550ac_out='"$tmp/out1"'
24551ac_nxt='"$tmp/out2"'
24552
24553while :
24554do
24555  # Write a here document:
24556    cat >>$CONFIG_STATUS <<_ACEOF
24557    # First, check the format of the line:
24558    cat >"\$tmp/defines.sed" <<\\CEOF
24559/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
24560/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
24561b
24562:def
24563_ACEOF
24564  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24565  echo 'CEOF
24566    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24567  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24568  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24569  grep . conftest.tail >/dev/null || break
24570  rm -f conftest.defines
24571  mv conftest.tail conftest.defines
24572done
24573rm -f conftest.defines conftest.tail
24574
24575echo "ac_result=$ac_in" >>$CONFIG_STATUS
24576cat >>$CONFIG_STATUS <<\_ACEOF
24577  if test x"$ac_file" != x-; then
24578    echo "/* $configure_input  */" >"$tmp/config.h"
24579    cat "$ac_result" >>"$tmp/config.h"
24580    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24581      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24582echo "$as_me: $ac_file is unchanged" >&6;}
24583    else
24584      rm -f $ac_file
24585      mv "$tmp/config.h" $ac_file
24586    fi
24587  else
24588    echo "/* $configure_input  */"
24589    cat "$ac_result"
24590  fi
24591  rm -f "$tmp/out12"
24592# Compute $ac_file's index in $config_headers.
24593_am_arg=$ac_file
24594_am_stamp_count=1
24595for _am_header in $config_headers :; do
24596  case $_am_header in
24597    $_am_arg | $_am_arg:* )
24598      break ;;
24599    * )
24600      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24601  esac
24602done
24603echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24604$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24605	 X"$_am_arg" : 'X\(//\)[^/]' \| \
24606	 X"$_am_arg" : 'X\(//\)$' \| \
24607	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24608echo X"$_am_arg" |
24609    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24610	    s//\1/
24611	    q
24612	  }
24613	  /^X\(\/\/\)[^/].*/{
24614	    s//\1/
24615	    q
24616	  }
24617	  /^X\(\/\/\)$/{
24618	    s//\1/
24619	    q
24620	  }
24621	  /^X\(\/\).*/{
24622	    s//\1/
24623	    q
24624	  }
24625	  s/.*/./; q'`/stamp-h$_am_stamp_count
24626 ;;
24627
24628  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24629echo "$as_me: executing $ac_file commands" >&6;}
24630 ;;
24631  esac
24632
24633
24634  case $ac_file$ac_mode in
24635    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24636  # Strip MF so we end up with the name of the file.
24637  mf=`echo "$mf" | sed -e 's/:.*$//'`
24638  # Check whether this is an Automake generated Makefile or not.
24639  # We used to match only the files named `Makefile.in', but
24640  # some people rename them; so instead we look at the file content.
24641  # Grep'ing the first line is not enough: some people post-process
24642  # each Makefile.in and add a new line on top of each file to say so.
24643  # Grep'ing the whole file is not good either: AIX grep has a line
24644  # limit of 2048, but all sed's we know have understand at least 4000.
24645  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24646    dirpart=`$as_dirname -- "$mf" ||
24647$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24648	 X"$mf" : 'X\(//\)[^/]' \| \
24649	 X"$mf" : 'X\(//\)$' \| \
24650	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24651echo X"$mf" |
24652    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24653	    s//\1/
24654	    q
24655	  }
24656	  /^X\(\/\/\)[^/].*/{
24657	    s//\1/
24658	    q
24659	  }
24660	  /^X\(\/\/\)$/{
24661	    s//\1/
24662	    q
24663	  }
24664	  /^X\(\/\).*/{
24665	    s//\1/
24666	    q
24667	  }
24668	  s/.*/./; q'`
24669  else
24670    continue
24671  fi
24672  # Extract the definition of DEPDIR, am__include, and am__quote
24673  # from the Makefile without running `make'.
24674  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24675  test -z "$DEPDIR" && continue
24676  am__include=`sed -n 's/^am__include = //p' < "$mf"`
24677  test -z "am__include" && continue
24678  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24679  # When using ansi2knr, U may be empty or an underscore; expand it
24680  U=`sed -n 's/^U = //p' < "$mf"`
24681  # Find all dependency output files, they are included files with
24682  # $(DEPDIR) in their names.  We invoke sed twice because it is the
24683  # simplest approach to changing $(DEPDIR) to its actual value in the
24684  # expansion.
24685  for file in `sed -n "
24686    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24687       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24688    # Make sure the directory exists.
24689    test -f "$dirpart/$file" && continue
24690    fdir=`$as_dirname -- "$file" ||
24691$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24692	 X"$file" : 'X\(//\)[^/]' \| \
24693	 X"$file" : 'X\(//\)$' \| \
24694	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24695echo X"$file" |
24696    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24697	    s//\1/
24698	    q
24699	  }
24700	  /^X\(\/\/\)[^/].*/{
24701	    s//\1/
24702	    q
24703	  }
24704	  /^X\(\/\/\)$/{
24705	    s//\1/
24706	    q
24707	  }
24708	  /^X\(\/\).*/{
24709	    s//\1/
24710	    q
24711	  }
24712	  s/.*/./; q'`
24713    { as_dir=$dirpart/$fdir
24714  case $as_dir in #(
24715  -*) as_dir=./$as_dir;;
24716  esac
24717  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24718    as_dirs=
24719    while :; do
24720      case $as_dir in #(
24721      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24722      *) as_qdir=$as_dir;;
24723      esac
24724      as_dirs="'$as_qdir' $as_dirs"
24725      as_dir=`$as_dirname -- "$as_dir" ||
24726$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24727	 X"$as_dir" : 'X\(//\)[^/]' \| \
24728	 X"$as_dir" : 'X\(//\)$' \| \
24729	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24730echo X"$as_dir" |
24731    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24732	    s//\1/
24733	    q
24734	  }
24735	  /^X\(\/\/\)[^/].*/{
24736	    s//\1/
24737	    q
24738	  }
24739	  /^X\(\/\/\)$/{
24740	    s//\1/
24741	    q
24742	  }
24743	  /^X\(\/\).*/{
24744	    s//\1/
24745	    q
24746	  }
24747	  s/.*/./; q'`
24748      test -d "$as_dir" && break
24749    done
24750    test -z "$as_dirs" || eval "mkdir $as_dirs"
24751  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24752echo "$as_me: error: cannot create directory $as_dir" >&2;}
24753   { (exit 1); exit 1; }; }; }
24754    # echo "creating $dirpart/$file"
24755    echo '# dummy' > "$dirpart/$file"
24756  done
24757done
24758 ;;
24759
24760  esac
24761done # for ac_tag
24762
24763
24764{ (exit 0); exit 0; }
24765_ACEOF
24766chmod +x $CONFIG_STATUS
24767ac_clean_files=$ac_clean_files_save
24768
24769
24770# configure is writing to config.log, and then calls config.status.
24771# config.status does its own redirection, appending to config.log.
24772# Unfortunately, on DOS this fails, as config.log is still kept open
24773# by configure, so config.status won't be able to write to it; its
24774# output is simply discarded.  So we exec the FD to /dev/null,
24775# effectively closing config.log, so it can be properly (re)opened and
24776# appended to by config.status.  When coming back to configure, we
24777# need to make the FD available again.
24778if test "$no_create" != yes; then
24779  ac_cs_success=:
24780  ac_config_status_args=
24781  test "$silent" = yes &&
24782    ac_config_status_args="$ac_config_status_args --quiet"
24783  exec 5>/dev/null
24784  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24785  exec 5>>config.log
24786  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24787  # would make configure fail if this is the last instruction.
24788  $ac_cs_success || { (exit 1); exit 1; }
24789fi
24790
24791