configure revision 8c7da7f0
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for xf86-video-intel 2.4.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-intel'
730PACKAGE_TARNAME='xf86-video-intel'
731PACKAGE_VERSION='2.4.0'
732PACKAGE_STRING='xf86-video-intel 2.4.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
879DOLT_BASH
880LTCOMPILE
881LTCXXCOMPILE
882gen4asm
883HAVE_GEN4ASM_TRUE
884HAVE_GEN4ASM_FALSE
885PKG_CONFIG
886XORG_CFLAGS
887XORG_LIBS
888PCIACCESS_CFLAGS
889PCIACCESS_LIBS
890XSERVER_LIBPCIACCESS_TRUE
891XSERVER_LIBPCIACCESS_FALSE
892LIBPCIACCESS_TRUE
893LIBPCIACCESS_FALSE
894XMODES_TRUE
895XMODES_FALSE
896XMODES_CFLAGS
897DRI_TRUE
898DRI_FALSE
899DRI_CFLAGS
900DRI_LIBS
901DRI_MM_CFLAGS
902DRI_MM_LIBS
903VIDEO_DEBUG_TRUE
904VIDEO_DEBUG_FALSE
905XVMCLIB_CFLAGS
906XVMCLIB_LIBS
907XVMC_TRUE
908XVMC_FALSE
909WARN_CFLAGS
910moduledir
911DRIVER_NAME
912APP_MAN_SUFFIX
913LIB_MAN_SUFFIX
914FILE_MAN_SUFFIX
915MISC_MAN_SUFFIX
916DRIVER_MAN_SUFFIX
917ADMIN_MAN_SUFFIX
918APP_MAN_DIR
919LIB_MAN_DIR
920FILE_MAN_DIR
921MISC_MAN_DIR
922DRIVER_MAN_DIR
923ADMIN_MAN_DIR
924LINUXDOC
925PS2PDF
926BUILD_LINUXDOC_TRUE
927BUILD_LINUXDOC_FALSE
928BUILD_PDFDOC_TRUE
929BUILD_PDFDOC_FALSE
930MAKE_TEXT
931MAKE_PS
932MAKE_PDF
933MAKE_HTML
934LIBOBJS
935LTLIBOBJS'
936ac_subst_files=''
937      ac_precious_vars='build_alias
938host_alias
939target_alias
940CC
941CFLAGS
942LDFLAGS
943LIBS
944CPPFLAGS
945CPP
946CXX
947CXXFLAGS
948CCC
949CXXCPP
950F77
951FFLAGS
952PKG_CONFIG
953XORG_CFLAGS
954XORG_LIBS
955PCIACCESS_CFLAGS
956PCIACCESS_LIBS
957DRI_CFLAGS
958DRI_LIBS
959DRI_MM_CFLAGS
960DRI_MM_LIBS
961XVMCLIB_CFLAGS
962XVMCLIB_LIBS'
963
964
965# Initialize some variables set by options.
966ac_init_help=
967ac_init_version=false
968# The variables have the same names as the options, with
969# dashes changed to underlines.
970cache_file=/dev/null
971exec_prefix=NONE
972no_create=
973no_recursion=
974prefix=NONE
975program_prefix=NONE
976program_suffix=NONE
977program_transform_name=s,x,x,
978silent=
979site=
980srcdir=
981verbose=
982x_includes=NONE
983x_libraries=NONE
984
985# Installation directory options.
986# These are left unexpanded so users can "make install exec_prefix=/foo"
987# and all the variables that are supposed to be based on exec_prefix
988# by default will actually change.
989# Use braces instead of parens because sh, perl, etc. also accept them.
990# (The list follows the same order as the GNU Coding Standards.)
991bindir='${exec_prefix}/bin'
992sbindir='${exec_prefix}/sbin'
993libexecdir='${exec_prefix}/libexec'
994datarootdir='${prefix}/share'
995datadir='${datarootdir}'
996sysconfdir='${prefix}/etc'
997sharedstatedir='${prefix}/com'
998localstatedir='${prefix}/var'
999includedir='${prefix}/include'
1000oldincludedir='/usr/include'
1001docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1002infodir='${datarootdir}/info'
1003htmldir='${docdir}'
1004dvidir='${docdir}'
1005pdfdir='${docdir}'
1006psdir='${docdir}'
1007libdir='${exec_prefix}/lib'
1008localedir='${datarootdir}/locale'
1009mandir='${datarootdir}/man'
1010
1011ac_prev=
1012ac_dashdash=
1013for ac_option
1014do
1015  # If the previous option needs an argument, assign it.
1016  if test -n "$ac_prev"; then
1017    eval $ac_prev=\$ac_option
1018    ac_prev=
1019    continue
1020  fi
1021
1022  case $ac_option in
1023  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024  *)	ac_optarg=yes ;;
1025  esac
1026
1027  # Accept the important Cygnus configure options, so we can diagnose typos.
1028
1029  case $ac_dashdash$ac_option in
1030  --)
1031    ac_dashdash=yes ;;
1032
1033  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034    ac_prev=bindir ;;
1035  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036    bindir=$ac_optarg ;;
1037
1038  -build | --build | --buil | --bui | --bu)
1039    ac_prev=build_alias ;;
1040  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041    build_alias=$ac_optarg ;;
1042
1043  -cache-file | --cache-file | --cache-fil | --cache-fi \
1044  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045    ac_prev=cache_file ;;
1046  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048    cache_file=$ac_optarg ;;
1049
1050  --config-cache | -C)
1051    cache_file=config.cache ;;
1052
1053  -datadir | --datadir | --datadi | --datad)
1054    ac_prev=datadir ;;
1055  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056    datadir=$ac_optarg ;;
1057
1058  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059  | --dataroo | --dataro | --datar)
1060    ac_prev=datarootdir ;;
1061  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063    datarootdir=$ac_optarg ;;
1064
1065  -disable-* | --disable-*)
1066    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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=no ;;
1073
1074  -docdir | --docdir | --docdi | --doc | --do)
1075    ac_prev=docdir ;;
1076  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077    docdir=$ac_optarg ;;
1078
1079  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1080    ac_prev=dvidir ;;
1081  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082    dvidir=$ac_optarg ;;
1083
1084  -enable-* | --enable-*)
1085    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086    # Reject names that are not valid shell variable names.
1087    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1089   { (exit 1); exit 1; }; }
1090    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1091    eval enable_$ac_feature=\$ac_optarg ;;
1092
1093  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095  | --exec | --exe | --ex)
1096    ac_prev=exec_prefix ;;
1097  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099  | --exec=* | --exe=* | --ex=*)
1100    exec_prefix=$ac_optarg ;;
1101
1102  -gas | --gas | --ga | --g)
1103    # Obsolete; use --with-gas.
1104    with_gas=yes ;;
1105
1106  -help | --help | --hel | --he | -h)
1107    ac_init_help=long ;;
1108  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109    ac_init_help=recursive ;;
1110  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111    ac_init_help=short ;;
1112
1113  -host | --host | --hos | --ho)
1114    ac_prev=host_alias ;;
1115  -host=* | --host=* | --hos=* | --ho=*)
1116    host_alias=$ac_optarg ;;
1117
1118  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119    ac_prev=htmldir ;;
1120  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121  | --ht=*)
1122    htmldir=$ac_optarg ;;
1123
1124  -includedir | --includedir | --includedi | --included | --include \
1125  | --includ | --inclu | --incl | --inc)
1126    ac_prev=includedir ;;
1127  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128  | --includ=* | --inclu=* | --incl=* | --inc=*)
1129    includedir=$ac_optarg ;;
1130
1131  -infodir | --infodir | --infodi | --infod | --info | --inf)
1132    ac_prev=infodir ;;
1133  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134    infodir=$ac_optarg ;;
1135
1136  -libdir | --libdir | --libdi | --libd)
1137    ac_prev=libdir ;;
1138  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139    libdir=$ac_optarg ;;
1140
1141  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142  | --libexe | --libex | --libe)
1143    ac_prev=libexecdir ;;
1144  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145  | --libexe=* | --libex=* | --libe=*)
1146    libexecdir=$ac_optarg ;;
1147
1148  -localedir | --localedir | --localedi | --localed | --locale)
1149    ac_prev=localedir ;;
1150  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151    localedir=$ac_optarg ;;
1152
1153  -localstatedir | --localstatedir | --localstatedi | --localstated \
1154  | --localstate | --localstat | --localsta | --localst | --locals)
1155    ac_prev=localstatedir ;;
1156  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158    localstatedir=$ac_optarg ;;
1159
1160  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161    ac_prev=mandir ;;
1162  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163    mandir=$ac_optarg ;;
1164
1165  -nfp | --nfp | --nf)
1166    # Obsolete; use --without-fp.
1167    with_fp=no ;;
1168
1169  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170  | --no-cr | --no-c | -n)
1171    no_create=yes ;;
1172
1173  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175    no_recursion=yes ;;
1176
1177  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179  | --oldin | --oldi | --old | --ol | --o)
1180    ac_prev=oldincludedir ;;
1181  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184    oldincludedir=$ac_optarg ;;
1185
1186  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187    ac_prev=prefix ;;
1188  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189    prefix=$ac_optarg ;;
1190
1191  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192  | --program-pre | --program-pr | --program-p)
1193    ac_prev=program_prefix ;;
1194  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196    program_prefix=$ac_optarg ;;
1197
1198  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199  | --program-suf | --program-su | --program-s)
1200    ac_prev=program_suffix ;;
1201  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203    program_suffix=$ac_optarg ;;
1204
1205  -program-transform-name | --program-transform-name \
1206  | --program-transform-nam | --program-transform-na \
1207  | --program-transform-n | --program-transform- \
1208  | --program-transform | --program-transfor \
1209  | --program-transfo | --program-transf \
1210  | --program-trans | --program-tran \
1211  | --progr-tra | --program-tr | --program-t)
1212    ac_prev=program_transform_name ;;
1213  -program-transform-name=* | --program-transform-name=* \
1214  | --program-transform-nam=* | --program-transform-na=* \
1215  | --program-transform-n=* | --program-transform-=* \
1216  | --program-transform=* | --program-transfor=* \
1217  | --program-transfo=* | --program-transf=* \
1218  | --program-trans=* | --program-tran=* \
1219  | --progr-tra=* | --program-tr=* | --program-t=*)
1220    program_transform_name=$ac_optarg ;;
1221
1222  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223    ac_prev=pdfdir ;;
1224  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225    pdfdir=$ac_optarg ;;
1226
1227  -psdir | --psdir | --psdi | --psd | --ps)
1228    ac_prev=psdir ;;
1229  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230    psdir=$ac_optarg ;;
1231
1232  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233  | -silent | --silent | --silen | --sile | --sil)
1234    silent=yes ;;
1235
1236  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237    ac_prev=sbindir ;;
1238  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239  | --sbi=* | --sb=*)
1240    sbindir=$ac_optarg ;;
1241
1242  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244  | --sharedst | --shareds | --shared | --share | --shar \
1245  | --sha | --sh)
1246    ac_prev=sharedstatedir ;;
1247  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250  | --sha=* | --sh=*)
1251    sharedstatedir=$ac_optarg ;;
1252
1253  -site | --site | --sit)
1254    ac_prev=site ;;
1255  -site=* | --site=* | --sit=*)
1256    site=$ac_optarg ;;
1257
1258  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259    ac_prev=srcdir ;;
1260  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261    srcdir=$ac_optarg ;;
1262
1263  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264  | --syscon | --sysco | --sysc | --sys | --sy)
1265    ac_prev=sysconfdir ;;
1266  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268    sysconfdir=$ac_optarg ;;
1269
1270  -target | --target | --targe | --targ | --tar | --ta | --t)
1271    ac_prev=target_alias ;;
1272  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273    target_alias=$ac_optarg ;;
1274
1275  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276    verbose=yes ;;
1277
1278  -version | --version | --versio | --versi | --vers | -V)
1279    ac_init_version=: ;;
1280
1281  -with-* | --with-*)
1282    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283    # Reject names that are not valid shell variable names.
1284    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285      { echo "$as_me: error: invalid package name: $ac_package" >&2
1286   { (exit 1); exit 1; }; }
1287    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1288    eval with_$ac_package=\$ac_optarg ;;
1289
1290  -without-* | --without-*)
1291    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292    # Reject names that are not valid shell variable names.
1293    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294      { echo "$as_me: error: invalid package name: $ac_package" >&2
1295   { (exit 1); exit 1; }; }
1296    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1297    eval with_$ac_package=no ;;
1298
1299  --x)
1300    # Obsolete; use --with-x.
1301    with_x=yes ;;
1302
1303  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304  | --x-incl | --x-inc | --x-in | --x-i)
1305    ac_prev=x_includes ;;
1306  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308    x_includes=$ac_optarg ;;
1309
1310  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312    ac_prev=x_libraries ;;
1313  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315    x_libraries=$ac_optarg ;;
1316
1317  -*) { echo "$as_me: error: unrecognized option: $ac_option
1318Try \`$0 --help' for more information." >&2
1319   { (exit 1); exit 1; }; }
1320    ;;
1321
1322  *=*)
1323    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324    # Reject names that are not valid shell variable names.
1325    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1326      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1327   { (exit 1); exit 1; }; }
1328    eval $ac_envvar=\$ac_optarg
1329    export $ac_envvar ;;
1330
1331  *)
1332    # FIXME: should be removed in autoconf 3.0.
1333    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1337    ;;
1338
1339  esac
1340done
1341
1342if test -n "$ac_prev"; then
1343  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344  { echo "$as_me: error: missing argument to $ac_option" >&2
1345   { (exit 1); exit 1; }; }
1346fi
1347
1348# Be sure to have absolute directory names.
1349for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350		datadir sysconfdir sharedstatedir localstatedir includedir \
1351		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352		libdir localedir mandir
1353do
1354  eval ac_val=\$$ac_var
1355  case $ac_val in
1356    [\\/$]* | ?:[\\/]* )  continue;;
1357    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358  esac
1359  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1360   { (exit 1); exit 1; }; }
1361done
1362
1363# There might be people who depend on the old broken behavior: `$host'
1364# used to hold the argument of --host etc.
1365# FIXME: To remove some day.
1366build=$build_alias
1367host=$host_alias
1368target=$target_alias
1369
1370# FIXME: To remove some day.
1371if test "x$host_alias" != x; then
1372  if test "x$build_alias" = x; then
1373    cross_compiling=maybe
1374    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375    If a cross compiler is detected then cross compile mode will be used." >&2
1376  elif test "x$build_alias" != "x$host_alias"; then
1377    cross_compiling=yes
1378  fi
1379fi
1380
1381ac_tool_prefix=
1382test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384test "$silent" = yes && exec 6>/dev/null
1385
1386
1387ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388ac_ls_di=`ls -di .` &&
1389ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390  { echo "$as_me: error: Working directory cannot be determined" >&2
1391   { (exit 1); exit 1; }; }
1392test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393  { echo "$as_me: error: pwd does not report name of working directory" >&2
1394   { (exit 1); exit 1; }; }
1395
1396
1397# Find the source files, if location was not specified.
1398if test -z "$srcdir"; then
1399  ac_srcdir_defaulted=yes
1400  # Try the directory containing this script, then the parent directory.
1401  ac_confdir=`$as_dirname -- "$0" ||
1402$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403	 X"$0" : 'X\(//\)[^/]' \| \
1404	 X"$0" : 'X\(//\)$' \| \
1405	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1406echo X"$0" |
1407    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408	    s//\1/
1409	    q
1410	  }
1411	  /^X\(\/\/\)[^/].*/{
1412	    s//\1/
1413	    q
1414	  }
1415	  /^X\(\/\/\)$/{
1416	    s//\1/
1417	    q
1418	  }
1419	  /^X\(\/\).*/{
1420	    s//\1/
1421	    q
1422	  }
1423	  s/.*/./; q'`
1424  srcdir=$ac_confdir
1425  if test ! -r "$srcdir/$ac_unique_file"; then
1426    srcdir=..
1427  fi
1428else
1429  ac_srcdir_defaulted=no
1430fi
1431if test ! -r "$srcdir/$ac_unique_file"; then
1432  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1434   { (exit 1); exit 1; }; }
1435fi
1436ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437ac_abs_confdir=`(
1438	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1439   { (exit 1); exit 1; }; }
1440	pwd)`
1441# When building in place, set srcdir=.
1442if test "$ac_abs_confdir" = "$ac_pwd"; then
1443  srcdir=.
1444fi
1445# Remove unnecessary trailing slashes from srcdir.
1446# Double slashes in file names in object file debugging info
1447# mess up M-x gdb in Emacs.
1448case $srcdir in
1449*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1450esac
1451for ac_var in $ac_precious_vars; do
1452  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453  eval ac_env_${ac_var}_value=\$${ac_var}
1454  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456done
1457
1458#
1459# Report the --help message.
1460#
1461if test "$ac_init_help" = "long"; then
1462  # Omit some internal or obsolete options to make the list less imposing.
1463  # This message is too long to be a string in the A/UX 3.1 sh.
1464  cat <<_ACEOF
1465\`configure' configures xf86-video-intel 2.4.0 to adapt to many kinds of systems.
1466
1467Usage: $0 [OPTION]... [VAR=VALUE]...
1468
1469To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470VAR=VALUE.  See below for descriptions of some of the useful variables.
1471
1472Defaults for the options are specified in brackets.
1473
1474Configuration:
1475  -h, --help              display this help and exit
1476      --help=short        display options specific to this package
1477      --help=recursive    display the short help of all the included packages
1478  -V, --version           display version information and exit
1479  -q, --quiet, --silent   do not print \`checking...' messages
1480      --cache-file=FILE   cache test results in FILE [disabled]
1481  -C, --config-cache      alias for \`--cache-file=config.cache'
1482  -n, --no-create         do not create output files
1483      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1484
1485Installation directories:
1486  --prefix=PREFIX         install architecture-independent files in PREFIX
1487			  [$ac_default_prefix]
1488  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1489			  [PREFIX]
1490
1491By default, \`make install' will install all the files in
1492\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1493an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494for instance \`--prefix=\$HOME'.
1495
1496For better control, use the options below.
1497
1498Fine tuning of the installation directories:
1499  --bindir=DIR           user executables [EPREFIX/bin]
1500  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1501  --libexecdir=DIR       program executables [EPREFIX/libexec]
1502  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1503  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1504  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1505  --libdir=DIR           object code libraries [EPREFIX/lib]
1506  --includedir=DIR       C header files [PREFIX/include]
1507  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1508  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1509  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1510  --infodir=DIR          info documentation [DATAROOTDIR/info]
1511  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1512  --mandir=DIR           man documentation [DATAROOTDIR/man]
1513  --docdir=DIR           documentation root [DATAROOTDIR/doc/xf86-video-intel]
1514  --htmldir=DIR          html documentation [DOCDIR]
1515  --dvidir=DIR           dvi documentation [DOCDIR]
1516  --pdfdir=DIR           pdf documentation [DOCDIR]
1517  --psdir=DIR            ps documentation [DOCDIR]
1518_ACEOF
1519
1520  cat <<\_ACEOF
1521
1522Program names:
1523  --program-prefix=PREFIX            prepend PREFIX to installed program names
1524  --program-suffix=SUFFIX            append SUFFIX to installed program names
1525  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1526
1527System types:
1528  --build=BUILD     configure for building on BUILD [guessed]
1529  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1530_ACEOF
1531fi
1532
1533if test -n "$ac_init_help"; then
1534  case $ac_init_help in
1535     short | recursive ) echo "Configuration of xf86-video-intel 2.4.0:";;
1536   esac
1537  cat <<\_ACEOF
1538
1539Optional Features:
1540  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1541  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1542  --enable-maintainer-mode  enable make rules and dependencies not useful
1543			  (and sometimes confusing) to the casual installer
1544  --enable-static[=PKGS]  build static libraries [default=no]
1545  --enable-shared[=PKGS]  build shared libraries [default=yes]
1546  --enable-fast-install[=PKGS]
1547                          optimize for fast installation [default=yes]
1548  --disable-dependency-tracking  speeds up one-time build
1549  --enable-dependency-tracking   do not reject slow dependency extractors
1550  --disable-libtool-lock  avoid locking (might break parallel builds)
1551  --disable-dri           Disable DRI support [default=auto]
1552  --enable-video-debug    Enable video debugging support [default=no]
1553  --disable-xvmc          Disable XvMC support [default=auto]
1554
1555Optional Packages:
1556  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1557  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1558  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1559  --with-pic              try to use only PIC/non-PIC objects [default=use
1560                          both]
1561  --with-tags[=TAGS]      include additional configurations [automatic]
1562  --with-xorg-module-dir=DIR
1563                          Default xorg module directory
1564                          [default=$libdir/xorg/modules]
1565  --with-xserver-source=XSERVER_SOURCE
1566                          Path to X server source tree
1567  --with-release-version=STRING
1568                          Use release version string in package name
1569
1570Some influential environment variables:
1571  CC          C compiler command
1572  CFLAGS      C compiler flags
1573  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1574              nonstandard directory <lib dir>
1575  LIBS        libraries to pass to the linker, e.g. -l<library>
1576  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1577              you have headers in a nonstandard directory <include dir>
1578  CPP         C preprocessor
1579  CXX         C++ compiler command
1580  CXXFLAGS    C++ compiler flags
1581  CXXCPP      C++ preprocessor
1582  F77         Fortran 77 compiler command
1583  FFLAGS      Fortran 77 compiler flags
1584  PKG_CONFIG  path to pkg-config utility
1585  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1586  XORG_LIBS   linker flags for XORG, overriding pkg-config
1587  PCIACCESS_CFLAGS
1588              C compiler flags for PCIACCESS, overriding pkg-config
1589  PCIACCESS_LIBS
1590              linker flags for PCIACCESS, overriding pkg-config
1591  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1592  DRI_LIBS    linker flags for DRI, overriding pkg-config
1593  DRI_MM_CFLAGS
1594              C compiler flags for DRI_MM, overriding pkg-config
1595  DRI_MM_LIBS linker flags for DRI_MM, overriding pkg-config
1596  XVMCLIB_CFLAGS
1597              C compiler flags for XVMCLIB, overriding pkg-config
1598  XVMCLIB_LIBS
1599              linker flags for XVMCLIB, overriding pkg-config
1600
1601Use these variables to override the choices made by `configure' or to help
1602it to find libraries and programs with nonstandard names/locations.
1603
1604Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1605_ACEOF
1606ac_status=$?
1607fi
1608
1609if test "$ac_init_help" = "recursive"; then
1610  # If there are subdirs, report their specific --help.
1611  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1612    test -d "$ac_dir" || continue
1613    ac_builddir=.
1614
1615case "$ac_dir" in
1616.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617*)
1618  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1619  # A ".." for each directory in $ac_dir_suffix.
1620  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1621  case $ac_top_builddir_sub in
1622  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624  esac ;;
1625esac
1626ac_abs_top_builddir=$ac_pwd
1627ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628# for backward compatibility:
1629ac_top_builddir=$ac_top_build_prefix
1630
1631case $srcdir in
1632  .)  # We are building in place.
1633    ac_srcdir=.
1634    ac_top_srcdir=$ac_top_builddir_sub
1635    ac_abs_top_srcdir=$ac_pwd ;;
1636  [\\/]* | ?:[\\/]* )  # Absolute name.
1637    ac_srcdir=$srcdir$ac_dir_suffix;
1638    ac_top_srcdir=$srcdir
1639    ac_abs_top_srcdir=$srcdir ;;
1640  *) # Relative name.
1641    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642    ac_top_srcdir=$ac_top_build_prefix$srcdir
1643    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644esac
1645ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1646
1647    cd "$ac_dir" || { ac_status=$?; continue; }
1648    # Check for guested configure.
1649    if test -f "$ac_srcdir/configure.gnu"; then
1650      echo &&
1651      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652    elif test -f "$ac_srcdir/configure"; then
1653      echo &&
1654      $SHELL "$ac_srcdir/configure" --help=recursive
1655    else
1656      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657    fi || ac_status=$?
1658    cd "$ac_pwd" || { ac_status=$?; break; }
1659  done
1660fi
1661
1662test -n "$ac_init_help" && exit $ac_status
1663if $ac_init_version; then
1664  cat <<\_ACEOF
1665xf86-video-intel configure 2.4.0
1666generated by GNU Autoconf 2.61
1667
1668Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16692002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1670This configure script is free software; the Free Software Foundation
1671gives unlimited permission to copy, distribute and modify it.
1672_ACEOF
1673  exit
1674fi
1675cat >config.log <<_ACEOF
1676This file contains any messages produced by compilers while
1677running configure, to aid debugging if configure makes a mistake.
1678
1679It was created by xf86-video-intel $as_me 2.4.0, which was
1680generated by GNU Autoconf 2.61.  Invocation command line was
1681
1682  $ $0 $@
1683
1684_ACEOF
1685exec 5>>config.log
1686{
1687cat <<_ASUNAME
1688## --------- ##
1689## Platform. ##
1690## --------- ##
1691
1692hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1693uname -m = `(uname -m) 2>/dev/null || echo unknown`
1694uname -r = `(uname -r) 2>/dev/null || echo unknown`
1695uname -s = `(uname -s) 2>/dev/null || echo unknown`
1696uname -v = `(uname -v) 2>/dev/null || echo unknown`
1697
1698/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1699/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1700
1701/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1702/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1703/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1704/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1705/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1706/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1707/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1708
1709_ASUNAME
1710
1711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712for as_dir in $PATH
1713do
1714  IFS=$as_save_IFS
1715  test -z "$as_dir" && as_dir=.
1716  echo "PATH: $as_dir"
1717done
1718IFS=$as_save_IFS
1719
1720} >&5
1721
1722cat >&5 <<_ACEOF
1723
1724
1725## ----------- ##
1726## Core tests. ##
1727## ----------- ##
1728
1729_ACEOF
1730
1731
1732# Keep a trace of the command line.
1733# Strip out --no-create and --no-recursion so they do not pile up.
1734# Strip out --silent because we don't want to record it for future runs.
1735# Also quote any args containing shell meta-characters.
1736# Make two passes to allow for proper duplicate-argument suppression.
1737ac_configure_args=
1738ac_configure_args0=
1739ac_configure_args1=
1740ac_must_keep_next=false
1741for ac_pass in 1 2
1742do
1743  for ac_arg
1744  do
1745    case $ac_arg in
1746    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1747    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1748    | -silent | --silent | --silen | --sile | --sil)
1749      continue ;;
1750    *\'*)
1751      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1752    esac
1753    case $ac_pass in
1754    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755    2)
1756      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1757      if test $ac_must_keep_next = true; then
1758	ac_must_keep_next=false # Got value, back to normal.
1759      else
1760	case $ac_arg in
1761	  *=* | --config-cache | -C | -disable-* | --disable-* \
1762	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1763	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1764	  | -with-* | --with-* | -without-* | --without-* | --x)
1765	    case "$ac_configure_args0 " in
1766	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1767	    esac
1768	    ;;
1769	  -* ) ac_must_keep_next=true ;;
1770	esac
1771      fi
1772      ac_configure_args="$ac_configure_args '$ac_arg'"
1773      ;;
1774    esac
1775  done
1776done
1777$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1778$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1779
1780# When interrupted or exit'd, cleanup temporary files, and complete
1781# config.log.  We remove comments because anyway the quotes in there
1782# would cause problems or look ugly.
1783# WARNING: Use '\'' to represent an apostrophe within the trap.
1784# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1785trap 'exit_status=$?
1786  # Save into config.log some information that might help in debugging.
1787  {
1788    echo
1789
1790    cat <<\_ASBOX
1791## ---------------- ##
1792## Cache variables. ##
1793## ---------------- ##
1794_ASBOX
1795    echo
1796    # The following way of writing the cache mishandles newlines in values,
1797(
1798  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1799    eval ac_val=\$$ac_var
1800    case $ac_val in #(
1801    *${as_nl}*)
1802      case $ac_var in #(
1803      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1804echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1805      esac
1806      case $ac_var in #(
1807      _ | IFS | as_nl) ;; #(
1808      *) $as_unset $ac_var ;;
1809      esac ;;
1810    esac
1811  done
1812  (set) 2>&1 |
1813    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1814    *${as_nl}ac_space=\ *)
1815      sed -n \
1816	"s/'\''/'\''\\\\'\'''\''/g;
1817	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1818      ;; #(
1819    *)
1820      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1821      ;;
1822    esac |
1823    sort
1824)
1825    echo
1826
1827    cat <<\_ASBOX
1828## ----------------- ##
1829## Output variables. ##
1830## ----------------- ##
1831_ASBOX
1832    echo
1833    for ac_var in $ac_subst_vars
1834    do
1835      eval ac_val=\$$ac_var
1836      case $ac_val in
1837      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838      esac
1839      echo "$ac_var='\''$ac_val'\''"
1840    done | sort
1841    echo
1842
1843    if test -n "$ac_subst_files"; then
1844      cat <<\_ASBOX
1845## ------------------- ##
1846## File substitutions. ##
1847## ------------------- ##
1848_ASBOX
1849      echo
1850      for ac_var in $ac_subst_files
1851      do
1852	eval ac_val=\$$ac_var
1853	case $ac_val in
1854	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855	esac
1856	echo "$ac_var='\''$ac_val'\''"
1857      done | sort
1858      echo
1859    fi
1860
1861    if test -s confdefs.h; then
1862      cat <<\_ASBOX
1863## ----------- ##
1864## confdefs.h. ##
1865## ----------- ##
1866_ASBOX
1867      echo
1868      cat confdefs.h
1869      echo
1870    fi
1871    test "$ac_signal" != 0 &&
1872      echo "$as_me: caught signal $ac_signal"
1873    echo "$as_me: exit $exit_status"
1874  } >&5
1875  rm -f core *.core core.conftest.* &&
1876    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1877    exit $exit_status
1878' 0
1879for ac_signal in 1 2 13 15; do
1880  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1881done
1882ac_signal=0
1883
1884# confdefs.h avoids OS command line length limits that DEFS can exceed.
1885rm -f -r conftest* confdefs.h
1886
1887# Predefined preprocessor variables.
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_NAME "$PACKAGE_NAME"
1891_ACEOF
1892
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_VERSION "$PACKAGE_VERSION"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_STRING "$PACKAGE_STRING"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1911_ACEOF
1912
1913
1914# Let the site file select an alternate cache file if it wants to.
1915# Prefer explicitly selected file to automatically selected ones.
1916if test -n "$CONFIG_SITE"; then
1917  set x "$CONFIG_SITE"
1918elif test "x$prefix" != xNONE; then
1919  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1920else
1921  set x "$ac_default_prefix/share/config.site" \
1922	"$ac_default_prefix/etc/config.site"
1923fi
1924shift
1925for ac_site_file
1926do
1927  if test -r "$ac_site_file"; then
1928    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1929echo "$as_me: loading site script $ac_site_file" >&6;}
1930    sed 's/^/| /' "$ac_site_file" >&5
1931    . "$ac_site_file"
1932  fi
1933done
1934
1935if test -r "$cache_file"; then
1936  # Some versions of bash will fail to source /dev/null (special
1937  # files actually), so we avoid doing that.
1938  if test -f "$cache_file"; then
1939    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1940echo "$as_me: loading cache $cache_file" >&6;}
1941    case $cache_file in
1942      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1943      *)                      . "./$cache_file";;
1944    esac
1945  fi
1946else
1947  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1948echo "$as_me: creating cache $cache_file" >&6;}
1949  >$cache_file
1950fi
1951
1952# Check that the precious variables saved in the cache have kept the same
1953# value.
1954ac_cache_corrupted=false
1955for ac_var in $ac_precious_vars; do
1956  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1957  eval ac_new_set=\$ac_env_${ac_var}_set
1958  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1959  eval ac_new_val=\$ac_env_${ac_var}_value
1960  case $ac_old_set,$ac_new_set in
1961    set,)
1962      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1963echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1964      ac_cache_corrupted=: ;;
1965    ,set)
1966      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1967echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1968      ac_cache_corrupted=: ;;
1969    ,);;
1970    *)
1971      if test "x$ac_old_val" != "x$ac_new_val"; then
1972	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1973echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1974	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1975echo "$as_me:   former value:  $ac_old_val" >&2;}
1976	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1977echo "$as_me:   current value: $ac_new_val" >&2;}
1978	ac_cache_corrupted=:
1979      fi;;
1980  esac
1981  # Pass precious variables to config.status.
1982  if test "$ac_new_set" = set; then
1983    case $ac_new_val in
1984    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1985    *) ac_arg=$ac_var=$ac_new_val ;;
1986    esac
1987    case " $ac_configure_args " in
1988      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1989      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1990    esac
1991  fi
1992done
1993if $ac_cache_corrupted; then
1994  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1995echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1996  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1997echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1998   { (exit 1); exit 1; }; }
1999fi
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025ac_ext=c
2026ac_cpp='$CPP $CPPFLAGS'
2027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2029ac_compiler_gnu=$ac_cv_c_compiler_gnu
2030
2031
2032
2033
2034ac_config_headers="$ac_config_headers config.h"
2035
2036ac_aux_dir=
2037for ac_dir in . "$srcdir"/.; do
2038  if test -f "$ac_dir/install-sh"; then
2039    ac_aux_dir=$ac_dir
2040    ac_install_sh="$ac_aux_dir/install-sh -c"
2041    break
2042  elif test -f "$ac_dir/install.sh"; then
2043    ac_aux_dir=$ac_dir
2044    ac_install_sh="$ac_aux_dir/install.sh -c"
2045    break
2046  elif test -f "$ac_dir/shtool"; then
2047    ac_aux_dir=$ac_dir
2048    ac_install_sh="$ac_aux_dir/shtool install -c"
2049    break
2050  fi
2051done
2052if test -z "$ac_aux_dir"; then
2053  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2054echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2055   { (exit 1); exit 1; }; }
2056fi
2057
2058# These three variables are undocumented and unsupported,
2059# and are intended to be withdrawn in a future Autoconf release.
2060# They can cause serious problems if a builder's source tree is in a directory
2061# whose full name contains unusual characters.
2062ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2063ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2064ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2065
2066
2067
2068am__api_version='1.10'
2069
2070# Find a good install program.  We prefer a C program (faster),
2071# so one script is as good as another.  But avoid the broken or
2072# incompatible versions:
2073# SysV /etc/install, /usr/sbin/install
2074# SunOS /usr/etc/install
2075# IRIX /sbin/install
2076# AIX /bin/install
2077# AmigaOS /C/install, which installs bootblocks on floppy discs
2078# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2079# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2080# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2081# OS/2's system install, which has a completely different semantic
2082# ./install, which can be erroneously created by make from ./install.sh.
2083{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2084echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2085if test -z "$INSTALL"; then
2086if test "${ac_cv_path_install+set}" = set; then
2087  echo $ECHO_N "(cached) $ECHO_C" >&6
2088else
2089  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090for as_dir in $PATH
2091do
2092  IFS=$as_save_IFS
2093  test -z "$as_dir" && as_dir=.
2094  # Account for people who put trailing slashes in PATH elements.
2095case $as_dir/ in
2096  ./ | .// | /cC/* | \
2097  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2098  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2099  /usr/ucb/* ) ;;
2100  *)
2101    # OSF1 and SCO ODT 3.0 have their own names for install.
2102    # Don't use installbsd from OSF since it installs stuff as root
2103    # by default.
2104    for ac_prog in ginstall scoinst install; do
2105      for ac_exec_ext in '' $ac_executable_extensions; do
2106	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2107	  if test $ac_prog = install &&
2108	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2109	    # AIX install.  It has an incompatible calling convention.
2110	    :
2111	  elif test $ac_prog = install &&
2112	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2113	    # program-specific install script used by HP pwplus--don't use.
2114	    :
2115	  else
2116	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2117	    break 3
2118	  fi
2119	fi
2120      done
2121    done
2122    ;;
2123esac
2124done
2125IFS=$as_save_IFS
2126
2127
2128fi
2129  if test "${ac_cv_path_install+set}" = set; then
2130    INSTALL=$ac_cv_path_install
2131  else
2132    # As a last resort, use the slow shell script.  Don't cache a
2133    # value for INSTALL within a source directory, because that will
2134    # break other packages using the cache if that directory is
2135    # removed, or if the value is a relative name.
2136    INSTALL=$ac_install_sh
2137  fi
2138fi
2139{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2140echo "${ECHO_T}$INSTALL" >&6; }
2141
2142# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2143# It thinks the first close brace ends the variable substitution.
2144test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2145
2146test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2147
2148test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2149
2150{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2151echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2152# Just in case
2153sleep 1
2154echo timestamp > conftest.file
2155# Do `set' in a subshell so we don't clobber the current shell's
2156# arguments.  Must try -L first in case configure is actually a
2157# symlink; some systems play weird games with the mod time of symlinks
2158# (eg FreeBSD returns the mod time of the symlink's containing
2159# directory).
2160if (
2161   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2162   if test "$*" = "X"; then
2163      # -L didn't work.
2164      set X `ls -t $srcdir/configure conftest.file`
2165   fi
2166   rm -f conftest.file
2167   if test "$*" != "X $srcdir/configure conftest.file" \
2168      && test "$*" != "X conftest.file $srcdir/configure"; then
2169
2170      # If neither matched, then we have a broken ls.  This can happen
2171      # if, for instance, CONFIG_SHELL is bash and it inherits a
2172      # broken ls alias from the environment.  This has actually
2173      # happened.  Such a system could not be considered "sane".
2174      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2175alias in your environment" >&5
2176echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2177alias in your environment" >&2;}
2178   { (exit 1); exit 1; }; }
2179   fi
2180
2181   test "$2" = conftest.file
2182   )
2183then
2184   # Ok.
2185   :
2186else
2187   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2188Check your system clock" >&5
2189echo "$as_me: error: newly created file is older than distributed files!
2190Check your system clock" >&2;}
2191   { (exit 1); exit 1; }; }
2192fi
2193{ echo "$as_me:$LINENO: result: yes" >&5
2194echo "${ECHO_T}yes" >&6; }
2195test "$program_prefix" != NONE &&
2196  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2197# Use a double $ so make ignores it.
2198test "$program_suffix" != NONE &&
2199  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2200# Double any \ or $.  echo might interpret backslashes.
2201# By default was `s,x,x', remove it if useless.
2202cat <<\_ACEOF >conftest.sed
2203s/[\\$]/&&/g;s/;s,x,x,$//
2204_ACEOF
2205program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2206rm -f conftest.sed
2207
2208# expand $ac_aux_dir to an absolute path
2209am_aux_dir=`cd $ac_aux_dir && pwd`
2210
2211test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2212# Use eval to expand $SHELL
2213if eval "$MISSING --run true"; then
2214  am_missing_run="$MISSING --run "
2215else
2216  am_missing_run=
2217  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2218echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2219fi
2220
2221{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2222echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2223if test -z "$MKDIR_P"; then
2224  if test "${ac_cv_path_mkdir+set}" = set; then
2225  echo $ECHO_N "(cached) $ECHO_C" >&6
2226else
2227  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2229do
2230  IFS=$as_save_IFS
2231  test -z "$as_dir" && as_dir=.
2232  for ac_prog in mkdir gmkdir; do
2233	 for ac_exec_ext in '' $ac_executable_extensions; do
2234	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2235	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2236	     'mkdir (GNU coreutils) '* | \
2237	     'mkdir (coreutils) '* | \
2238	     'mkdir (fileutils) '4.1*)
2239	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2240	       break 3;;
2241	   esac
2242	 done
2243       done
2244done
2245IFS=$as_save_IFS
2246
2247fi
2248
2249  if test "${ac_cv_path_mkdir+set}" = set; then
2250    MKDIR_P="$ac_cv_path_mkdir -p"
2251  else
2252    # As a last resort, use the slow shell script.  Don't cache a
2253    # value for MKDIR_P within a source directory, because that will
2254    # break other packages using the cache if that directory is
2255    # removed, or if the value is a relative name.
2256    test -d ./--version && rmdir ./--version
2257    MKDIR_P="$ac_install_sh -d"
2258  fi
2259fi
2260{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2261echo "${ECHO_T}$MKDIR_P" >&6; }
2262
2263mkdir_p="$MKDIR_P"
2264case $mkdir_p in
2265  [\\/$]* | ?:[\\/]*) ;;
2266  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2267esac
2268
2269for ac_prog in gawk mawk nawk awk
2270do
2271  # Extract the first word of "$ac_prog", so it can be a program name with args.
2272set dummy $ac_prog; ac_word=$2
2273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2275if test "${ac_cv_prog_AWK+set}" = set; then
2276  echo $ECHO_N "(cached) $ECHO_C" >&6
2277else
2278  if test -n "$AWK"; then
2279  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2280else
2281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282for as_dir in $PATH
2283do
2284  IFS=$as_save_IFS
2285  test -z "$as_dir" && as_dir=.
2286  for ac_exec_ext in '' $ac_executable_extensions; do
2287  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2288    ac_cv_prog_AWK="$ac_prog"
2289    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290    break 2
2291  fi
2292done
2293done
2294IFS=$as_save_IFS
2295
2296fi
2297fi
2298AWK=$ac_cv_prog_AWK
2299if test -n "$AWK"; then
2300  { echo "$as_me:$LINENO: result: $AWK" >&5
2301echo "${ECHO_T}$AWK" >&6; }
2302else
2303  { echo "$as_me:$LINENO: result: no" >&5
2304echo "${ECHO_T}no" >&6; }
2305fi
2306
2307
2308  test -n "$AWK" && break
2309done
2310
2311{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2312echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2313set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2314if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2315  echo $ECHO_N "(cached) $ECHO_C" >&6
2316else
2317  cat >conftest.make <<\_ACEOF
2318SHELL = /bin/sh
2319all:
2320	@echo '@@@%%%=$(MAKE)=@@@%%%'
2321_ACEOF
2322# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2323case `${MAKE-make} -f conftest.make 2>/dev/null` in
2324  *@@@%%%=?*=@@@%%%*)
2325    eval ac_cv_prog_make_${ac_make}_set=yes;;
2326  *)
2327    eval ac_cv_prog_make_${ac_make}_set=no;;
2328esac
2329rm -f conftest.make
2330fi
2331if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2332  { echo "$as_me:$LINENO: result: yes" >&5
2333echo "${ECHO_T}yes" >&6; }
2334  SET_MAKE=
2335else
2336  { echo "$as_me:$LINENO: result: no" >&5
2337echo "${ECHO_T}no" >&6; }
2338  SET_MAKE="MAKE=${MAKE-make}"
2339fi
2340
2341rm -rf .tst 2>/dev/null
2342mkdir .tst 2>/dev/null
2343if test -d .tst; then
2344  am__leading_dot=.
2345else
2346  am__leading_dot=_
2347fi
2348rmdir .tst 2>/dev/null
2349
2350if test "`cd $srcdir && pwd`" != "`pwd`"; then
2351  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2352  # is not polluted with repeated "-I."
2353  am__isrc=' -I$(srcdir)'
2354  # test to see if srcdir already configured
2355  if test -f $srcdir/config.status; then
2356    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2357echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2358   { (exit 1); exit 1; }; }
2359  fi
2360fi
2361
2362# test whether we have cygpath
2363if test -z "$CYGPATH_W"; then
2364  if (cygpath --version) >/dev/null 2>/dev/null; then
2365    CYGPATH_W='cygpath -w'
2366  else
2367    CYGPATH_W=echo
2368  fi
2369fi
2370
2371
2372# Define the identity of the package.
2373 PACKAGE='xf86-video-intel'
2374 VERSION='2.4.0'
2375
2376
2377cat >>confdefs.h <<_ACEOF
2378#define PACKAGE "$PACKAGE"
2379_ACEOF
2380
2381
2382cat >>confdefs.h <<_ACEOF
2383#define VERSION "$VERSION"
2384_ACEOF
2385
2386# Some tools Automake needs.
2387
2388ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2389
2390
2391AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2392
2393
2394AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2395
2396
2397AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2398
2399
2400MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2401
2402install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2403
2404# Installed binaries are usually stripped using `strip' when the user
2405# run `make install-strip'.  However `strip' might not be the right
2406# tool to use in cross-compilation environments, therefore Automake
2407# will honor the `STRIP' environment variable to overrule this program.
2408if test "$cross_compiling" != no; then
2409  if test -n "$ac_tool_prefix"; then
2410  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2411set dummy ${ac_tool_prefix}strip; ac_word=$2
2412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2414if test "${ac_cv_prog_STRIP+set}" = set; then
2415  echo $ECHO_N "(cached) $ECHO_C" >&6
2416else
2417  if test -n "$STRIP"; then
2418  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2419else
2420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421for as_dir in $PATH
2422do
2423  IFS=$as_save_IFS
2424  test -z "$as_dir" && as_dir=.
2425  for ac_exec_ext in '' $ac_executable_extensions; do
2426  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2428    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429    break 2
2430  fi
2431done
2432done
2433IFS=$as_save_IFS
2434
2435fi
2436fi
2437STRIP=$ac_cv_prog_STRIP
2438if test -n "$STRIP"; then
2439  { echo "$as_me:$LINENO: result: $STRIP" >&5
2440echo "${ECHO_T}$STRIP" >&6; }
2441else
2442  { echo "$as_me:$LINENO: result: no" >&5
2443echo "${ECHO_T}no" >&6; }
2444fi
2445
2446
2447fi
2448if test -z "$ac_cv_prog_STRIP"; then
2449  ac_ct_STRIP=$STRIP
2450  # Extract the first word of "strip", so it can be a program name with args.
2451set dummy strip; ac_word=$2
2452{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2454if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2455  echo $ECHO_N "(cached) $ECHO_C" >&6
2456else
2457  if test -n "$ac_ct_STRIP"; then
2458  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2459else
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463  IFS=$as_save_IFS
2464  test -z "$as_dir" && as_dir=.
2465  for ac_exec_ext in '' $ac_executable_extensions; do
2466  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467    ac_cv_prog_ac_ct_STRIP="strip"
2468    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469    break 2
2470  fi
2471done
2472done
2473IFS=$as_save_IFS
2474
2475fi
2476fi
2477ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2478if test -n "$ac_ct_STRIP"; then
2479  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2480echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2481else
2482  { echo "$as_me:$LINENO: result: no" >&5
2483echo "${ECHO_T}no" >&6; }
2484fi
2485
2486  if test "x$ac_ct_STRIP" = x; then
2487    STRIP=":"
2488  else
2489    case $cross_compiling:$ac_tool_warned in
2490yes:)
2491{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2492whose name does not start with the host triplet.  If you think this
2493configuration is useful to you, please write to autoconf@gnu.org." >&5
2494echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2495whose name does not start with the host triplet.  If you think this
2496configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2497ac_tool_warned=yes ;;
2498esac
2499    STRIP=$ac_ct_STRIP
2500  fi
2501else
2502  STRIP="$ac_cv_prog_STRIP"
2503fi
2504
2505fi
2506INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2507
2508# We need awk for the "check" target.  The system "awk" is bad on
2509# some platforms.
2510# Always define AMTAR for backward compatibility.
2511
2512AMTAR=${AMTAR-"${am_missing_run}tar"}
2513
2514am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2515
2516
2517
2518
2519
2520
2521{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2522echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2523    # Check whether --enable-maintainer-mode was given.
2524if test "${enable_maintainer_mode+set}" = set; then
2525  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2526else
2527  USE_MAINTAINER_MODE=no
2528fi
2529
2530  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2531echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2532   if test $USE_MAINTAINER_MODE = yes; then
2533  MAINTAINER_MODE_TRUE=
2534  MAINTAINER_MODE_FALSE='#'
2535else
2536  MAINTAINER_MODE_TRUE='#'
2537  MAINTAINER_MODE_FALSE=
2538fi
2539
2540  MAINT=$MAINTAINER_MODE_TRUE
2541
2542
2543
2544# Checks for programs.
2545# Check whether --enable-static was given.
2546if test "${enable_static+set}" = set; then
2547  enableval=$enable_static; p=${PACKAGE-default}
2548    case $enableval in
2549    yes) enable_static=yes ;;
2550    no) enable_static=no ;;
2551    *)
2552     enable_static=no
2553      # Look at the argument we got.  We use all the common list separators.
2554      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2555      for pkg in $enableval; do
2556	IFS="$lt_save_ifs"
2557	if test "X$pkg" = "X$p"; then
2558	  enable_static=yes
2559	fi
2560      done
2561      IFS="$lt_save_ifs"
2562      ;;
2563    esac
2564else
2565  enable_static=no
2566fi
2567
2568
2569
2570# Check whether --enable-shared was given.
2571if test "${enable_shared+set}" = set; then
2572  enableval=$enable_shared; p=${PACKAGE-default}
2573    case $enableval in
2574    yes) enable_shared=yes ;;
2575    no) enable_shared=no ;;
2576    *)
2577      enable_shared=no
2578      # Look at the argument we got.  We use all the common list separators.
2579      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2580      for pkg in $enableval; do
2581	IFS="$lt_save_ifs"
2582	if test "X$pkg" = "X$p"; then
2583	  enable_shared=yes
2584	fi
2585      done
2586      IFS="$lt_save_ifs"
2587      ;;
2588    esac
2589else
2590  enable_shared=yes
2591fi
2592
2593
2594# Check whether --enable-fast-install was given.
2595if test "${enable_fast_install+set}" = set; then
2596  enableval=$enable_fast_install; p=${PACKAGE-default}
2597    case $enableval in
2598    yes) enable_fast_install=yes ;;
2599    no) enable_fast_install=no ;;
2600    *)
2601      enable_fast_install=no
2602      # Look at the argument we got.  We use all the common list separators.
2603      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2604      for pkg in $enableval; do
2605	IFS="$lt_save_ifs"
2606	if test "X$pkg" = "X$p"; then
2607	  enable_fast_install=yes
2608	fi
2609      done
2610      IFS="$lt_save_ifs"
2611      ;;
2612    esac
2613else
2614  enable_fast_install=yes
2615fi
2616
2617
2618# Make sure we can run config.sub.
2619$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2620  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2621echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2622   { (exit 1); exit 1; }; }
2623
2624{ echo "$as_me:$LINENO: checking build system type" >&5
2625echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2626if test "${ac_cv_build+set}" = set; then
2627  echo $ECHO_N "(cached) $ECHO_C" >&6
2628else
2629  ac_build_alias=$build_alias
2630test "x$ac_build_alias" = x &&
2631  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2632test "x$ac_build_alias" = x &&
2633  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2634echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2635   { (exit 1); exit 1; }; }
2636ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2637  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2638echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2639   { (exit 1); exit 1; }; }
2640
2641fi
2642{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2643echo "${ECHO_T}$ac_cv_build" >&6; }
2644case $ac_cv_build in
2645*-*-*) ;;
2646*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2647echo "$as_me: error: invalid value of canonical build" >&2;}
2648   { (exit 1); exit 1; }; };;
2649esac
2650build=$ac_cv_build
2651ac_save_IFS=$IFS; IFS='-'
2652set x $ac_cv_build
2653shift
2654build_cpu=$1
2655build_vendor=$2
2656shift; shift
2657# Remember, the first character of IFS is used to create $*,
2658# except with old shells:
2659build_os=$*
2660IFS=$ac_save_IFS
2661case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2662
2663
2664{ echo "$as_me:$LINENO: checking host system type" >&5
2665echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2666if test "${ac_cv_host+set}" = set; then
2667  echo $ECHO_N "(cached) $ECHO_C" >&6
2668else
2669  if test "x$host_alias" = x; then
2670  ac_cv_host=$ac_cv_build
2671else
2672  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2673    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2674echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2675   { (exit 1); exit 1; }; }
2676fi
2677
2678fi
2679{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2680echo "${ECHO_T}$ac_cv_host" >&6; }
2681case $ac_cv_host in
2682*-*-*) ;;
2683*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2684echo "$as_me: error: invalid value of canonical host" >&2;}
2685   { (exit 1); exit 1; }; };;
2686esac
2687host=$ac_cv_host
2688ac_save_IFS=$IFS; IFS='-'
2689set x $ac_cv_host
2690shift
2691host_cpu=$1
2692host_vendor=$2
2693shift; shift
2694# Remember, the first character of IFS is used to create $*,
2695# except with old shells:
2696host_os=$*
2697IFS=$ac_save_IFS
2698case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2699
2700
2701DEPDIR="${am__leading_dot}deps"
2702
2703ac_config_commands="$ac_config_commands depfiles"
2704
2705
2706am_make=${MAKE-make}
2707cat > confinc << 'END'
2708am__doit:
2709	@echo done
2710.PHONY: am__doit
2711END
2712# If we don't find an include directive, just comment out the code.
2713{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2714echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2715am__include="#"
2716am__quote=
2717_am_result=none
2718# First try GNU make style include.
2719echo "include confinc" > confmf
2720# We grep out `Entering directory' and `Leaving directory'
2721# messages which can occur if `w' ends up in MAKEFLAGS.
2722# In particular we don't look at `^make:' because GNU make might
2723# be invoked under some other name (usually "gmake"), in which
2724# case it prints its new name instead of `make'.
2725if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2726   am__include=include
2727   am__quote=
2728   _am_result=GNU
2729fi
2730# Now try BSD make style include.
2731if test "$am__include" = "#"; then
2732   echo '.include "confinc"' > confmf
2733   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2734      am__include=.include
2735      am__quote="\""
2736      _am_result=BSD
2737   fi
2738fi
2739
2740
2741{ echo "$as_me:$LINENO: result: $_am_result" >&5
2742echo "${ECHO_T}$_am_result" >&6; }
2743rm -f confinc confmf
2744
2745# Check whether --enable-dependency-tracking was given.
2746if test "${enable_dependency_tracking+set}" = set; then
2747  enableval=$enable_dependency_tracking;
2748fi
2749
2750if test "x$enable_dependency_tracking" != xno; then
2751  am_depcomp="$ac_aux_dir/depcomp"
2752  AMDEPBACKSLASH='\'
2753fi
2754 if test "x$enable_dependency_tracking" != xno; then
2755  AMDEP_TRUE=
2756  AMDEP_FALSE='#'
2757else
2758  AMDEP_TRUE='#'
2759  AMDEP_FALSE=
2760fi
2761
2762
2763ac_ext=c
2764ac_cpp='$CPP $CPPFLAGS'
2765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768if test -n "$ac_tool_prefix"; then
2769  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2770set dummy ${ac_tool_prefix}gcc; ac_word=$2
2771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2773if test "${ac_cv_prog_CC+set}" = set; then
2774  echo $ECHO_N "(cached) $ECHO_C" >&6
2775else
2776  if test -n "$CC"; then
2777  ac_cv_prog_CC="$CC" # Let the user override the test.
2778else
2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780for as_dir in $PATH
2781do
2782  IFS=$as_save_IFS
2783  test -z "$as_dir" && as_dir=.
2784  for ac_exec_ext in '' $ac_executable_extensions; do
2785  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2787    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788    break 2
2789  fi
2790done
2791done
2792IFS=$as_save_IFS
2793
2794fi
2795fi
2796CC=$ac_cv_prog_CC
2797if test -n "$CC"; then
2798  { echo "$as_me:$LINENO: result: $CC" >&5
2799echo "${ECHO_T}$CC" >&6; }
2800else
2801  { echo "$as_me:$LINENO: result: no" >&5
2802echo "${ECHO_T}no" >&6; }
2803fi
2804
2805
2806fi
2807if test -z "$ac_cv_prog_CC"; then
2808  ac_ct_CC=$CC
2809  # Extract the first word of "gcc", so it can be a program name with args.
2810set dummy gcc; ac_word=$2
2811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2814  echo $ECHO_N "(cached) $ECHO_C" >&6
2815else
2816  if test -n "$ac_ct_CC"; then
2817  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818else
2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822  IFS=$as_save_IFS
2823  test -z "$as_dir" && as_dir=.
2824  for ac_exec_ext in '' $ac_executable_extensions; do
2825  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826    ac_cv_prog_ac_ct_CC="gcc"
2827    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828    break 2
2829  fi
2830done
2831done
2832IFS=$as_save_IFS
2833
2834fi
2835fi
2836ac_ct_CC=$ac_cv_prog_ac_ct_CC
2837if test -n "$ac_ct_CC"; then
2838  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2839echo "${ECHO_T}$ac_ct_CC" >&6; }
2840else
2841  { echo "$as_me:$LINENO: result: no" >&5
2842echo "${ECHO_T}no" >&6; }
2843fi
2844
2845  if test "x$ac_ct_CC" = x; then
2846    CC=""
2847  else
2848    case $cross_compiling:$ac_tool_warned in
2849yes:)
2850{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2851whose name does not start with the host triplet.  If you think this
2852configuration is useful to you, please write to autoconf@gnu.org." >&5
2853echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2854whose name does not start with the host triplet.  If you think this
2855configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2856ac_tool_warned=yes ;;
2857esac
2858    CC=$ac_ct_CC
2859  fi
2860else
2861  CC="$ac_cv_prog_CC"
2862fi
2863
2864if test -z "$CC"; then
2865          if test -n "$ac_tool_prefix"; then
2866    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2867set dummy ${ac_tool_prefix}cc; ac_word=$2
2868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2870if test "${ac_cv_prog_CC+set}" = set; then
2871  echo $ECHO_N "(cached) $ECHO_C" >&6
2872else
2873  if test -n "$CC"; then
2874  ac_cv_prog_CC="$CC" # Let the user override the test.
2875else
2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877for as_dir in $PATH
2878do
2879  IFS=$as_save_IFS
2880  test -z "$as_dir" && as_dir=.
2881  for ac_exec_ext in '' $ac_executable_extensions; do
2882  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883    ac_cv_prog_CC="${ac_tool_prefix}cc"
2884    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885    break 2
2886  fi
2887done
2888done
2889IFS=$as_save_IFS
2890
2891fi
2892fi
2893CC=$ac_cv_prog_CC
2894if test -n "$CC"; then
2895  { echo "$as_me:$LINENO: result: $CC" >&5
2896echo "${ECHO_T}$CC" >&6; }
2897else
2898  { echo "$as_me:$LINENO: result: no" >&5
2899echo "${ECHO_T}no" >&6; }
2900fi
2901
2902
2903  fi
2904fi
2905if test -z "$CC"; then
2906  # Extract the first word of "cc", so it can be a program name with args.
2907set dummy cc; ac_word=$2
2908{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2910if test "${ac_cv_prog_CC+set}" = set; then
2911  echo $ECHO_N "(cached) $ECHO_C" >&6
2912else
2913  if test -n "$CC"; then
2914  ac_cv_prog_CC="$CC" # Let the user override the test.
2915else
2916  ac_prog_rejected=no
2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918for as_dir in $PATH
2919do
2920  IFS=$as_save_IFS
2921  test -z "$as_dir" && as_dir=.
2922  for ac_exec_ext in '' $ac_executable_extensions; do
2923  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2925       ac_prog_rejected=yes
2926       continue
2927     fi
2928    ac_cv_prog_CC="cc"
2929    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930    break 2
2931  fi
2932done
2933done
2934IFS=$as_save_IFS
2935
2936if test $ac_prog_rejected = yes; then
2937  # We found a bogon in the path, so make sure we never use it.
2938  set dummy $ac_cv_prog_CC
2939  shift
2940  if test $# != 0; then
2941    # We chose a different compiler from the bogus one.
2942    # However, it has the same basename, so the bogon will be chosen
2943    # first if we set CC to just the basename; use the full file name.
2944    shift
2945    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2946  fi
2947fi
2948fi
2949fi
2950CC=$ac_cv_prog_CC
2951if test -n "$CC"; then
2952  { echo "$as_me:$LINENO: result: $CC" >&5
2953echo "${ECHO_T}$CC" >&6; }
2954else
2955  { echo "$as_me:$LINENO: result: no" >&5
2956echo "${ECHO_T}no" >&6; }
2957fi
2958
2959
2960fi
2961if test -z "$CC"; then
2962  if test -n "$ac_tool_prefix"; then
2963  for ac_prog in cl.exe
2964  do
2965    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2966set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2967{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2969if test "${ac_cv_prog_CC+set}" = set; then
2970  echo $ECHO_N "(cached) $ECHO_C" >&6
2971else
2972  if test -n "$CC"; then
2973  ac_cv_prog_CC="$CC" # Let the user override the test.
2974else
2975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH
2977do
2978  IFS=$as_save_IFS
2979  test -z "$as_dir" && as_dir=.
2980  for ac_exec_ext in '' $ac_executable_extensions; do
2981  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2983    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2984    break 2
2985  fi
2986done
2987done
2988IFS=$as_save_IFS
2989
2990fi
2991fi
2992CC=$ac_cv_prog_CC
2993if test -n "$CC"; then
2994  { echo "$as_me:$LINENO: result: $CC" >&5
2995echo "${ECHO_T}$CC" >&6; }
2996else
2997  { echo "$as_me:$LINENO: result: no" >&5
2998echo "${ECHO_T}no" >&6; }
2999fi
3000
3001
3002    test -n "$CC" && break
3003  done
3004fi
3005if test -z "$CC"; then
3006  ac_ct_CC=$CC
3007  for ac_prog in cl.exe
3008do
3009  # Extract the first word of "$ac_prog", so it can be a program name with args.
3010set dummy $ac_prog; ac_word=$2
3011{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3013if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3014  echo $ECHO_N "(cached) $ECHO_C" >&6
3015else
3016  if test -n "$ac_ct_CC"; then
3017  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3018else
3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020for as_dir in $PATH
3021do
3022  IFS=$as_save_IFS
3023  test -z "$as_dir" && as_dir=.
3024  for ac_exec_ext in '' $ac_executable_extensions; do
3025  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026    ac_cv_prog_ac_ct_CC="$ac_prog"
3027    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3028    break 2
3029  fi
3030done
3031done
3032IFS=$as_save_IFS
3033
3034fi
3035fi
3036ac_ct_CC=$ac_cv_prog_ac_ct_CC
3037if test -n "$ac_ct_CC"; then
3038  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3039echo "${ECHO_T}$ac_ct_CC" >&6; }
3040else
3041  { echo "$as_me:$LINENO: result: no" >&5
3042echo "${ECHO_T}no" >&6; }
3043fi
3044
3045
3046  test -n "$ac_ct_CC" && break
3047done
3048
3049  if test "x$ac_ct_CC" = x; then
3050    CC=""
3051  else
3052    case $cross_compiling:$ac_tool_warned in
3053yes:)
3054{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3055whose name does not start with the host triplet.  If you think this
3056configuration is useful to you, please write to autoconf@gnu.org." >&5
3057echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3058whose name does not start with the host triplet.  If you think this
3059configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3060ac_tool_warned=yes ;;
3061esac
3062    CC=$ac_ct_CC
3063  fi
3064fi
3065
3066fi
3067
3068
3069test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3070See \`config.log' for more details." >&5
3071echo "$as_me: error: no acceptable C compiler found in \$PATH
3072See \`config.log' for more details." >&2;}
3073   { (exit 1); exit 1; }; }
3074
3075# Provide some information about the compiler.
3076echo "$as_me:$LINENO: checking for C compiler version" >&5
3077ac_compiler=`set X $ac_compile; echo $2`
3078{ (ac_try="$ac_compiler --version >&5"
3079case "(($ac_try" in
3080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081  *) ac_try_echo=$ac_try;;
3082esac
3083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084  (eval "$ac_compiler --version >&5") 2>&5
3085  ac_status=$?
3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087  (exit $ac_status); }
3088{ (ac_try="$ac_compiler -v >&5"
3089case "(($ac_try" in
3090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091  *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094  (eval "$ac_compiler -v >&5") 2>&5
3095  ac_status=$?
3096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097  (exit $ac_status); }
3098{ (ac_try="$ac_compiler -V >&5"
3099case "(($ac_try" in
3100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101  *) ac_try_echo=$ac_try;;
3102esac
3103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104  (eval "$ac_compiler -V >&5") 2>&5
3105  ac_status=$?
3106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107  (exit $ac_status); }
3108
3109cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h.  */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
3114/* end confdefs.h.  */
3115
3116int
3117main ()
3118{
3119
3120  ;
3121  return 0;
3122}
3123_ACEOF
3124ac_clean_files_save=$ac_clean_files
3125ac_clean_files="$ac_clean_files a.out a.exe b.out"
3126# Try to create an executable without -o first, disregard a.out.
3127# It will help us diagnose broken compilers, and finding out an intuition
3128# of exeext.
3129{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3130echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3131ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3132#
3133# List of possible output files, starting from the most likely.
3134# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3135# only as a last resort.  b.out is created by i960 compilers.
3136ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3137#
3138# The IRIX 6 linker writes into existing files which may not be
3139# executable, retaining their permissions.  Remove them first so a
3140# subsequent execution test works.
3141ac_rmfiles=
3142for ac_file in $ac_files
3143do
3144  case $ac_file in
3145    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3146    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3147  esac
3148done
3149rm -f $ac_rmfiles
3150
3151if { (ac_try="$ac_link_default"
3152case "(($ac_try" in
3153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154  *) ac_try_echo=$ac_try;;
3155esac
3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157  (eval "$ac_link_default") 2>&5
3158  ac_status=$?
3159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160  (exit $ac_status); }; then
3161  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3162# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3163# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3164# so that the user can short-circuit this test for compilers unknown to
3165# Autoconf.
3166for ac_file in $ac_files ''
3167do
3168  test -f "$ac_file" || continue
3169  case $ac_file in
3170    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3171	;;
3172    [ab].out )
3173	# We found the default executable, but exeext='' is most
3174	# certainly right.
3175	break;;
3176    *.* )
3177        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3178	then :; else
3179	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3180	fi
3181	# We set ac_cv_exeext here because the later test for it is not
3182	# safe: cross compilers may not add the suffix if given an `-o'
3183	# argument, so we may need to know it at that point already.
3184	# Even if this section looks crufty: it has the advantage of
3185	# actually working.
3186	break;;
3187    * )
3188	break;;
3189  esac
3190done
3191test "$ac_cv_exeext" = no && ac_cv_exeext=
3192
3193else
3194  ac_file=''
3195fi
3196
3197{ echo "$as_me:$LINENO: result: $ac_file" >&5
3198echo "${ECHO_T}$ac_file" >&6; }
3199if test -z "$ac_file"; then
3200  echo "$as_me: failed program was:" >&5
3201sed 's/^/| /' conftest.$ac_ext >&5
3202
3203{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3204See \`config.log' for more details." >&5
3205echo "$as_me: error: C compiler cannot create executables
3206See \`config.log' for more details." >&2;}
3207   { (exit 77); exit 77; }; }
3208fi
3209
3210ac_exeext=$ac_cv_exeext
3211
3212# Check that the compiler produces executables we can run.  If not, either
3213# the compiler is broken, or we cross compile.
3214{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3215echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3216# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3217# If not cross compiling, check that we can run a simple program.
3218if test "$cross_compiling" != yes; then
3219  if { ac_try='./$ac_file'
3220  { (case "(($ac_try" in
3221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222  *) ac_try_echo=$ac_try;;
3223esac
3224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225  (eval "$ac_try") 2>&5
3226  ac_status=$?
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); }; }; then
3229    cross_compiling=no
3230  else
3231    if test "$cross_compiling" = maybe; then
3232	cross_compiling=yes
3233    else
3234	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3235If you meant to cross compile, use \`--host'.
3236See \`config.log' for more details." >&5
3237echo "$as_me: error: cannot run C compiled programs.
3238If you meant to cross compile, use \`--host'.
3239See \`config.log' for more details." >&2;}
3240   { (exit 1); exit 1; }; }
3241    fi
3242  fi
3243fi
3244{ echo "$as_me:$LINENO: result: yes" >&5
3245echo "${ECHO_T}yes" >&6; }
3246
3247rm -f a.out a.exe conftest$ac_cv_exeext b.out
3248ac_clean_files=$ac_clean_files_save
3249# Check that the compiler produces executables we can run.  If not, either
3250# the compiler is broken, or we cross compile.
3251{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3252echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3253{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3254echo "${ECHO_T}$cross_compiling" >&6; }
3255
3256{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3257echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3258if { (ac_try="$ac_link"
3259case "(($ac_try" in
3260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261  *) ac_try_echo=$ac_try;;
3262esac
3263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3264  (eval "$ac_link") 2>&5
3265  ac_status=$?
3266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267  (exit $ac_status); }; then
3268  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3269# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3270# work properly (i.e., refer to `conftest.exe'), while it won't with
3271# `rm'.
3272for ac_file in conftest.exe conftest conftest.*; do
3273  test -f "$ac_file" || continue
3274  case $ac_file in
3275    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3276    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3277	  break;;
3278    * ) break;;
3279  esac
3280done
3281else
3282  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3283See \`config.log' for more details." >&5
3284echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3285See \`config.log' for more details." >&2;}
3286   { (exit 1); exit 1; }; }
3287fi
3288
3289rm -f conftest$ac_cv_exeext
3290{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3291echo "${ECHO_T}$ac_cv_exeext" >&6; }
3292
3293rm -f conftest.$ac_ext
3294EXEEXT=$ac_cv_exeext
3295ac_exeext=$EXEEXT
3296{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3297echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3298if test "${ac_cv_objext+set}" = set; then
3299  echo $ECHO_N "(cached) $ECHO_C" >&6
3300else
3301  cat >conftest.$ac_ext <<_ACEOF
3302/* confdefs.h.  */
3303_ACEOF
3304cat confdefs.h >>conftest.$ac_ext
3305cat >>conftest.$ac_ext <<_ACEOF
3306/* end confdefs.h.  */
3307
3308int
3309main ()
3310{
3311
3312  ;
3313  return 0;
3314}
3315_ACEOF
3316rm -f conftest.o conftest.obj
3317if { (ac_try="$ac_compile"
3318case "(($ac_try" in
3319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320  *) ac_try_echo=$ac_try;;
3321esac
3322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323  (eval "$ac_compile") 2>&5
3324  ac_status=$?
3325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326  (exit $ac_status); }; then
3327  for ac_file in conftest.o conftest.obj conftest.*; do
3328  test -f "$ac_file" || continue;
3329  case $ac_file in
3330    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3331    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3332       break;;
3333  esac
3334done
3335else
3336  echo "$as_me: failed program was:" >&5
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
3339{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3340See \`config.log' for more details." >&5
3341echo "$as_me: error: cannot compute suffix of object files: cannot compile
3342See \`config.log' for more details." >&2;}
3343   { (exit 1); exit 1; }; }
3344fi
3345
3346rm -f conftest.$ac_cv_objext conftest.$ac_ext
3347fi
3348{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3349echo "${ECHO_T}$ac_cv_objext" >&6; }
3350OBJEXT=$ac_cv_objext
3351ac_objext=$OBJEXT
3352{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3353echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3354if test "${ac_cv_c_compiler_gnu+set}" = set; then
3355  echo $ECHO_N "(cached) $ECHO_C" >&6
3356else
3357  cat >conftest.$ac_ext <<_ACEOF
3358/* confdefs.h.  */
3359_ACEOF
3360cat confdefs.h >>conftest.$ac_ext
3361cat >>conftest.$ac_ext <<_ACEOF
3362/* end confdefs.h.  */
3363
3364int
3365main ()
3366{
3367#ifndef __GNUC__
3368       choke me
3369#endif
3370
3371  ;
3372  return 0;
3373}
3374_ACEOF
3375rm -f conftest.$ac_objext
3376if { (ac_try="$ac_compile"
3377case "(($ac_try" in
3378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379  *) ac_try_echo=$ac_try;;
3380esac
3381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382  (eval "$ac_compile") 2>conftest.er1
3383  ac_status=$?
3384  grep -v '^ *+' conftest.er1 >conftest.err
3385  rm -f conftest.er1
3386  cat conftest.err >&5
3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); } && {
3389	 test -z "$ac_c_werror_flag" ||
3390	 test ! -s conftest.err
3391       } && test -s conftest.$ac_objext; then
3392  ac_compiler_gnu=yes
3393else
3394  echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
3396
3397	ac_compiler_gnu=no
3398fi
3399
3400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401ac_cv_c_compiler_gnu=$ac_compiler_gnu
3402
3403fi
3404{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3405echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3406GCC=`test $ac_compiler_gnu = yes && echo yes`
3407ac_test_CFLAGS=${CFLAGS+set}
3408ac_save_CFLAGS=$CFLAGS
3409{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3410echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3411if test "${ac_cv_prog_cc_g+set}" = set; then
3412  echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414  ac_save_c_werror_flag=$ac_c_werror_flag
3415   ac_c_werror_flag=yes
3416   ac_cv_prog_cc_g=no
3417   CFLAGS="-g"
3418   cat >conftest.$ac_ext <<_ACEOF
3419/* confdefs.h.  */
3420_ACEOF
3421cat confdefs.h >>conftest.$ac_ext
3422cat >>conftest.$ac_ext <<_ACEOF
3423/* end confdefs.h.  */
3424
3425int
3426main ()
3427{
3428
3429  ;
3430  return 0;
3431}
3432_ACEOF
3433rm -f conftest.$ac_objext
3434if { (ac_try="$ac_compile"
3435case "(($ac_try" in
3436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437  *) ac_try_echo=$ac_try;;
3438esac
3439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440  (eval "$ac_compile") 2>conftest.er1
3441  ac_status=$?
3442  grep -v '^ *+' conftest.er1 >conftest.err
3443  rm -f conftest.er1
3444  cat conftest.err >&5
3445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446  (exit $ac_status); } && {
3447	 test -z "$ac_c_werror_flag" ||
3448	 test ! -s conftest.err
3449       } && test -s conftest.$ac_objext; then
3450  ac_cv_prog_cc_g=yes
3451else
3452  echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
3455	CFLAGS=""
3456      cat >conftest.$ac_ext <<_ACEOF
3457/* confdefs.h.  */
3458_ACEOF
3459cat confdefs.h >>conftest.$ac_ext
3460cat >>conftest.$ac_ext <<_ACEOF
3461/* end confdefs.h.  */
3462
3463int
3464main ()
3465{
3466
3467  ;
3468  return 0;
3469}
3470_ACEOF
3471rm -f conftest.$ac_objext
3472if { (ac_try="$ac_compile"
3473case "(($ac_try" in
3474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475  *) ac_try_echo=$ac_try;;
3476esac
3477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478  (eval "$ac_compile") 2>conftest.er1
3479  ac_status=$?
3480  grep -v '^ *+' conftest.er1 >conftest.err
3481  rm -f conftest.er1
3482  cat conftest.err >&5
3483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484  (exit $ac_status); } && {
3485	 test -z "$ac_c_werror_flag" ||
3486	 test ! -s conftest.err
3487       } && test -s conftest.$ac_objext; then
3488  :
3489else
3490  echo "$as_me: failed program was:" >&5
3491sed 's/^/| /' conftest.$ac_ext >&5
3492
3493	ac_c_werror_flag=$ac_save_c_werror_flag
3494	 CFLAGS="-g"
3495	 cat >conftest.$ac_ext <<_ACEOF
3496/* confdefs.h.  */
3497_ACEOF
3498cat confdefs.h >>conftest.$ac_ext
3499cat >>conftest.$ac_ext <<_ACEOF
3500/* end confdefs.h.  */
3501
3502int
3503main ()
3504{
3505
3506  ;
3507  return 0;
3508}
3509_ACEOF
3510rm -f conftest.$ac_objext
3511if { (ac_try="$ac_compile"
3512case "(($ac_try" in
3513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514  *) ac_try_echo=$ac_try;;
3515esac
3516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3517  (eval "$ac_compile") 2>conftest.er1
3518  ac_status=$?
3519  grep -v '^ *+' conftest.er1 >conftest.err
3520  rm -f conftest.er1
3521  cat conftest.err >&5
3522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523  (exit $ac_status); } && {
3524	 test -z "$ac_c_werror_flag" ||
3525	 test ! -s conftest.err
3526       } && test -s conftest.$ac_objext; then
3527  ac_cv_prog_cc_g=yes
3528else
3529  echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
3532
3533fi
3534
3535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536fi
3537
3538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539fi
3540
3541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542   ac_c_werror_flag=$ac_save_c_werror_flag
3543fi
3544{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3545echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3546if test "$ac_test_CFLAGS" = set; then
3547  CFLAGS=$ac_save_CFLAGS
3548elif test $ac_cv_prog_cc_g = yes; then
3549  if test "$GCC" = yes; then
3550    CFLAGS="-g -O2"
3551  else
3552    CFLAGS="-g"
3553  fi
3554else
3555  if test "$GCC" = yes; then
3556    CFLAGS="-O2"
3557  else
3558    CFLAGS=
3559  fi
3560fi
3561{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3562echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3563if test "${ac_cv_prog_cc_c89+set}" = set; then
3564  echo $ECHO_N "(cached) $ECHO_C" >&6
3565else
3566  ac_cv_prog_cc_c89=no
3567ac_save_CC=$CC
3568cat >conftest.$ac_ext <<_ACEOF
3569/* confdefs.h.  */
3570_ACEOF
3571cat confdefs.h >>conftest.$ac_ext
3572cat >>conftest.$ac_ext <<_ACEOF
3573/* end confdefs.h.  */
3574#include <stdarg.h>
3575#include <stdio.h>
3576#include <sys/types.h>
3577#include <sys/stat.h>
3578/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3579struct buf { int x; };
3580FILE * (*rcsopen) (struct buf *, struct stat *, int);
3581static char *e (p, i)
3582     char **p;
3583     int i;
3584{
3585  return p[i];
3586}
3587static char *f (char * (*g) (char **, int), char **p, ...)
3588{
3589  char *s;
3590  va_list v;
3591  va_start (v,p);
3592  s = g (p, va_arg (v,int));
3593  va_end (v);
3594  return s;
3595}
3596
3597/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3598   function prototypes and stuff, but not '\xHH' hex character constants.
3599   These don't provoke an error unfortunately, instead are silently treated
3600   as 'x'.  The following induces an error, until -std is added to get
3601   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3602   array size at least.  It's necessary to write '\x00'==0 to get something
3603   that's true only with -std.  */
3604int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3605
3606/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3607   inside strings and character constants.  */
3608#define FOO(x) 'x'
3609int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3610
3611int test (int i, double x);
3612struct s1 {int (*f) (int a);};
3613struct s2 {int (*f) (double a);};
3614int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3615int argc;
3616char **argv;
3617int
3618main ()
3619{
3620return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3621  ;
3622  return 0;
3623}
3624_ACEOF
3625for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3626	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3627do
3628  CC="$ac_save_CC $ac_arg"
3629  rm -f conftest.$ac_objext
3630if { (ac_try="$ac_compile"
3631case "(($ac_try" in
3632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633  *) ac_try_echo=$ac_try;;
3634esac
3635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636  (eval "$ac_compile") 2>conftest.er1
3637  ac_status=$?
3638  grep -v '^ *+' conftest.er1 >conftest.err
3639  rm -f conftest.er1
3640  cat conftest.err >&5
3641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642  (exit $ac_status); } && {
3643	 test -z "$ac_c_werror_flag" ||
3644	 test ! -s conftest.err
3645       } && test -s conftest.$ac_objext; then
3646  ac_cv_prog_cc_c89=$ac_arg
3647else
3648  echo "$as_me: failed program was:" >&5
3649sed 's/^/| /' conftest.$ac_ext >&5
3650
3651
3652fi
3653
3654rm -f core conftest.err conftest.$ac_objext
3655  test "x$ac_cv_prog_cc_c89" != "xno" && break
3656done
3657rm -f conftest.$ac_ext
3658CC=$ac_save_CC
3659
3660fi
3661# AC_CACHE_VAL
3662case "x$ac_cv_prog_cc_c89" in
3663  x)
3664    { echo "$as_me:$LINENO: result: none needed" >&5
3665echo "${ECHO_T}none needed" >&6; } ;;
3666  xno)
3667    { echo "$as_me:$LINENO: result: unsupported" >&5
3668echo "${ECHO_T}unsupported" >&6; } ;;
3669  *)
3670    CC="$CC $ac_cv_prog_cc_c89"
3671    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3672echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3673esac
3674
3675
3676ac_ext=c
3677ac_cpp='$CPP $CPPFLAGS'
3678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680ac_compiler_gnu=$ac_cv_c_compiler_gnu
3681
3682depcc="$CC"   am_compiler_list=
3683
3684{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3685echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3686if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3687  echo $ECHO_N "(cached) $ECHO_C" >&6
3688else
3689  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3690  # We make a subdir and do the tests there.  Otherwise we can end up
3691  # making bogus files that we don't know about and never remove.  For
3692  # instance it was reported that on HP-UX the gcc test will end up
3693  # making a dummy file named `D' -- because `-MD' means `put the output
3694  # in D'.
3695  mkdir conftest.dir
3696  # Copy depcomp to subdir because otherwise we won't find it if we're
3697  # using a relative directory.
3698  cp "$am_depcomp" conftest.dir
3699  cd conftest.dir
3700  # We will build objects and dependencies in a subdirectory because
3701  # it helps to detect inapplicable dependency modes.  For instance
3702  # both Tru64's cc and ICC support -MD to output dependencies as a
3703  # side effect of compilation, but ICC will put the dependencies in
3704  # the current directory while Tru64 will put them in the object
3705  # directory.
3706  mkdir sub
3707
3708  am_cv_CC_dependencies_compiler_type=none
3709  if test "$am_compiler_list" = ""; then
3710     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3711  fi
3712  for depmode in $am_compiler_list; do
3713    # Setup a source with many dependencies, because some compilers
3714    # like to wrap large dependency lists on column 80 (with \), and
3715    # we should not choose a depcomp mode which is confused by this.
3716    #
3717    # We need to recreate these files for each test, as the compiler may
3718    # overwrite some of them when testing with obscure command lines.
3719    # This happens at least with the AIX C compiler.
3720    : > sub/conftest.c
3721    for i in 1 2 3 4 5 6; do
3722      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3723      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3724      # Solaris 8's {/usr,}/bin/sh.
3725      touch sub/conftst$i.h
3726    done
3727    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3728
3729    case $depmode in
3730    nosideeffect)
3731      # after this tag, mechanisms are not by side-effect, so they'll
3732      # only be used when explicitly requested
3733      if test "x$enable_dependency_tracking" = xyes; then
3734	continue
3735      else
3736	break
3737      fi
3738      ;;
3739    none) break ;;
3740    esac
3741    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3742    # mode.  It turns out that the SunPro C++ compiler does not properly
3743    # handle `-M -o', and we need to detect this.
3744    if depmode=$depmode \
3745       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3746       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3747       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3748         >/dev/null 2>conftest.err &&
3749       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3750       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3751       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3752       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3753      # icc doesn't choke on unknown options, it will just issue warnings
3754      # or remarks (even with -Werror).  So we grep stderr for any message
3755      # that says an option was ignored or not supported.
3756      # When given -MP, icc 7.0 and 7.1 complain thusly:
3757      #   icc: Command line warning: ignoring option '-M'; no argument required
3758      # The diagnosis changed in icc 8.0:
3759      #   icc: Command line remark: option '-MP' not supported
3760      if (grep 'ignoring option' conftest.err ||
3761          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3762        am_cv_CC_dependencies_compiler_type=$depmode
3763        break
3764      fi
3765    fi
3766  done
3767
3768  cd ..
3769  rm -rf conftest.dir
3770else
3771  am_cv_CC_dependencies_compiler_type=none
3772fi
3773
3774fi
3775{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3776echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3777CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3778
3779 if
3780  test "x$enable_dependency_tracking" != xno \
3781  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3782  am__fastdepCC_TRUE=
3783  am__fastdepCC_FALSE='#'
3784else
3785  am__fastdepCC_TRUE='#'
3786  am__fastdepCC_FALSE=
3787fi
3788
3789
3790{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3791echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3792if test "${lt_cv_path_SED+set}" = set; then
3793  echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795  # Loop through the user's path and test for sed and gsed.
3796# Then use that list of sed's as ones to test for truncation.
3797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798for as_dir in $PATH
3799do
3800  IFS=$as_save_IFS
3801  test -z "$as_dir" && as_dir=.
3802  for lt_ac_prog in sed gsed; do
3803    for ac_exec_ext in '' $ac_executable_extensions; do
3804      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3805        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3806      fi
3807    done
3808  done
3809done
3810IFS=$as_save_IFS
3811lt_ac_max=0
3812lt_ac_count=0
3813# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3814# along with /bin/sed that truncates output.
3815for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3816  test ! -f $lt_ac_sed && continue
3817  cat /dev/null > conftest.in
3818  lt_ac_count=0
3819  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3820  # Check for GNU sed and select it if it is found.
3821  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3822    lt_cv_path_SED=$lt_ac_sed
3823    break
3824  fi
3825  while true; do
3826    cat conftest.in conftest.in >conftest.tmp
3827    mv conftest.tmp conftest.in
3828    cp conftest.in conftest.nl
3829    echo >>conftest.nl
3830    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3831    cmp -s conftest.out conftest.nl || break
3832    # 10000 chars as input seems more than enough
3833    test $lt_ac_count -gt 10 && break
3834    lt_ac_count=`expr $lt_ac_count + 1`
3835    if test $lt_ac_count -gt $lt_ac_max; then
3836      lt_ac_max=$lt_ac_count
3837      lt_cv_path_SED=$lt_ac_sed
3838    fi
3839  done
3840done
3841
3842fi
3843
3844SED=$lt_cv_path_SED
3845
3846{ echo "$as_me:$LINENO: result: $SED" >&5
3847echo "${ECHO_T}$SED" >&6; }
3848
3849{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3850echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3851if test "${ac_cv_path_GREP+set}" = set; then
3852  echo $ECHO_N "(cached) $ECHO_C" >&6
3853else
3854  # Extract the first word of "grep ggrep" to use in msg output
3855if test -z "$GREP"; then
3856set dummy grep ggrep; ac_prog_name=$2
3857if test "${ac_cv_path_GREP+set}" = set; then
3858  echo $ECHO_N "(cached) $ECHO_C" >&6
3859else
3860  ac_path_GREP_found=false
3861# Loop through the user's path and test for each of PROGNAME-LIST
3862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3864do
3865  IFS=$as_save_IFS
3866  test -z "$as_dir" && as_dir=.
3867  for ac_prog in grep ggrep; do
3868  for ac_exec_ext in '' $ac_executable_extensions; do
3869    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3870    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3871    # Check for GNU ac_path_GREP and select it if it is found.
3872  # Check for GNU $ac_path_GREP
3873case `"$ac_path_GREP" --version 2>&1` in
3874*GNU*)
3875  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3876*)
3877  ac_count=0
3878  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3879  while :
3880  do
3881    cat "conftest.in" "conftest.in" >"conftest.tmp"
3882    mv "conftest.tmp" "conftest.in"
3883    cp "conftest.in" "conftest.nl"
3884    echo 'GREP' >> "conftest.nl"
3885    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3886    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3887    ac_count=`expr $ac_count + 1`
3888    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3889      # Best one so far, save it but keep looking for a better one
3890      ac_cv_path_GREP="$ac_path_GREP"
3891      ac_path_GREP_max=$ac_count
3892    fi
3893    # 10*(2^10) chars as input seems more than enough
3894    test $ac_count -gt 10 && break
3895  done
3896  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3897esac
3898
3899
3900    $ac_path_GREP_found && break 3
3901  done
3902done
3903
3904done
3905IFS=$as_save_IFS
3906
3907
3908fi
3909
3910GREP="$ac_cv_path_GREP"
3911if test -z "$GREP"; then
3912  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3913echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3914   { (exit 1); exit 1; }; }
3915fi
3916
3917else
3918  ac_cv_path_GREP=$GREP
3919fi
3920
3921
3922fi
3923{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3924echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3925 GREP="$ac_cv_path_GREP"
3926
3927
3928{ echo "$as_me:$LINENO: checking for egrep" >&5
3929echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3930if test "${ac_cv_path_EGREP+set}" = set; then
3931  echo $ECHO_N "(cached) $ECHO_C" >&6
3932else
3933  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3934   then ac_cv_path_EGREP="$GREP -E"
3935   else
3936     # Extract the first word of "egrep" to use in msg output
3937if test -z "$EGREP"; then
3938set dummy egrep; ac_prog_name=$2
3939if test "${ac_cv_path_EGREP+set}" = set; then
3940  echo $ECHO_N "(cached) $ECHO_C" >&6
3941else
3942  ac_path_EGREP_found=false
3943# Loop through the user's path and test for each of PROGNAME-LIST
3944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3946do
3947  IFS=$as_save_IFS
3948  test -z "$as_dir" && as_dir=.
3949  for ac_prog in egrep; do
3950  for ac_exec_ext in '' $ac_executable_extensions; do
3951    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3952    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3953    # Check for GNU ac_path_EGREP and select it if it is found.
3954  # Check for GNU $ac_path_EGREP
3955case `"$ac_path_EGREP" --version 2>&1` in
3956*GNU*)
3957  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3958*)
3959  ac_count=0
3960  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3961  while :
3962  do
3963    cat "conftest.in" "conftest.in" >"conftest.tmp"
3964    mv "conftest.tmp" "conftest.in"
3965    cp "conftest.in" "conftest.nl"
3966    echo 'EGREP' >> "conftest.nl"
3967    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3968    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3969    ac_count=`expr $ac_count + 1`
3970    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3971      # Best one so far, save it but keep looking for a better one
3972      ac_cv_path_EGREP="$ac_path_EGREP"
3973      ac_path_EGREP_max=$ac_count
3974    fi
3975    # 10*(2^10) chars as input seems more than enough
3976    test $ac_count -gt 10 && break
3977  done
3978  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3979esac
3980
3981
3982    $ac_path_EGREP_found && break 3
3983  done
3984done
3985
3986done
3987IFS=$as_save_IFS
3988
3989
3990fi
3991
3992EGREP="$ac_cv_path_EGREP"
3993if test -z "$EGREP"; then
3994  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3995echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3996   { (exit 1); exit 1; }; }
3997fi
3998
3999else
4000  ac_cv_path_EGREP=$EGREP
4001fi
4002
4003
4004   fi
4005fi
4006{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4007echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4008 EGREP="$ac_cv_path_EGREP"
4009
4010
4011
4012# Check whether --with-gnu-ld was given.
4013if test "${with_gnu_ld+set}" = set; then
4014  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4015else
4016  with_gnu_ld=no
4017fi
4018
4019ac_prog=ld
4020if test "$GCC" = yes; then
4021  # Check if gcc -print-prog-name=ld gives a path.
4022  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4023echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4024  case $host in
4025  *-*-mingw*)
4026    # gcc leaves a trailing carriage return which upsets mingw
4027    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4028  *)
4029    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4030  esac
4031  case $ac_prog in
4032    # Accept absolute paths.
4033    [\\/]* | ?:[\\/]*)
4034      re_direlt='/[^/][^/]*/\.\./'
4035      # Canonicalize the pathname of ld
4036      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4037      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4038	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4039      done
4040      test -z "$LD" && LD="$ac_prog"
4041      ;;
4042  "")
4043    # If it fails, then pretend we aren't using GCC.
4044    ac_prog=ld
4045    ;;
4046  *)
4047    # If it is relative, then search for the first ld in PATH.
4048    with_gnu_ld=unknown
4049    ;;
4050  esac
4051elif test "$with_gnu_ld" = yes; then
4052  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4053echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4054else
4055  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4056echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4057fi
4058if test "${lt_cv_path_LD+set}" = set; then
4059  echo $ECHO_N "(cached) $ECHO_C" >&6
4060else
4061  if test -z "$LD"; then
4062  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4063  for ac_dir in $PATH; do
4064    IFS="$lt_save_ifs"
4065    test -z "$ac_dir" && ac_dir=.
4066    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4067      lt_cv_path_LD="$ac_dir/$ac_prog"
4068      # Check to see if the program is GNU ld.  I'd rather use --version,
4069      # but apparently some variants of GNU ld only accept -v.
4070      # Break only if it was the GNU/non-GNU ld that we prefer.
4071      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4072      *GNU* | *'with BFD'*)
4073	test "$with_gnu_ld" != no && break
4074	;;
4075      *)
4076	test "$with_gnu_ld" != yes && break
4077	;;
4078      esac
4079    fi
4080  done
4081  IFS="$lt_save_ifs"
4082else
4083  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4084fi
4085fi
4086
4087LD="$lt_cv_path_LD"
4088if test -n "$LD"; then
4089  { echo "$as_me:$LINENO: result: $LD" >&5
4090echo "${ECHO_T}$LD" >&6; }
4091else
4092  { echo "$as_me:$LINENO: result: no" >&5
4093echo "${ECHO_T}no" >&6; }
4094fi
4095test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4096echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4097   { (exit 1); exit 1; }; }
4098{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4099echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4100if test "${lt_cv_prog_gnu_ld+set}" = set; then
4101  echo $ECHO_N "(cached) $ECHO_C" >&6
4102else
4103  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4104case `$LD -v 2>&1 </dev/null` in
4105*GNU* | *'with BFD'*)
4106  lt_cv_prog_gnu_ld=yes
4107  ;;
4108*)
4109  lt_cv_prog_gnu_ld=no
4110  ;;
4111esac
4112fi
4113{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4114echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4115with_gnu_ld=$lt_cv_prog_gnu_ld
4116
4117
4118{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4119echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4120if test "${lt_cv_ld_reload_flag+set}" = set; then
4121  echo $ECHO_N "(cached) $ECHO_C" >&6
4122else
4123  lt_cv_ld_reload_flag='-r'
4124fi
4125{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4126echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4127reload_flag=$lt_cv_ld_reload_flag
4128case $reload_flag in
4129"" | " "*) ;;
4130*) reload_flag=" $reload_flag" ;;
4131esac
4132reload_cmds='$LD$reload_flag -o $output$reload_objs'
4133case $host_os in
4134  darwin*)
4135    if test "$GCC" = yes; then
4136      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4137    else
4138      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4139    fi
4140    ;;
4141esac
4142
4143{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4144echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4145if test "${lt_cv_path_NM+set}" = set; then
4146  echo $ECHO_N "(cached) $ECHO_C" >&6
4147else
4148  if test -n "$NM"; then
4149  # Let the user override the test.
4150  lt_cv_path_NM="$NM"
4151else
4152  lt_nm_to_check="${ac_tool_prefix}nm"
4153  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4154    lt_nm_to_check="$lt_nm_to_check nm"
4155  fi
4156  for lt_tmp_nm in $lt_nm_to_check; do
4157    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4158    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4159      IFS="$lt_save_ifs"
4160      test -z "$ac_dir" && ac_dir=.
4161      tmp_nm="$ac_dir/$lt_tmp_nm"
4162      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4163	# Check to see if the nm accepts a BSD-compat flag.
4164	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4165	#   nm: unknown option "B" ignored
4166	# Tru64's nm complains that /dev/null is an invalid object file
4167	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4168	*/dev/null* | *'Invalid file or object type'*)
4169	  lt_cv_path_NM="$tmp_nm -B"
4170	  break
4171	  ;;
4172	*)
4173	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4174	  */dev/null*)
4175	    lt_cv_path_NM="$tmp_nm -p"
4176	    break
4177	    ;;
4178	  *)
4179	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4180	    continue # so that we can try to find one that supports BSD flags
4181	    ;;
4182	  esac
4183	  ;;
4184	esac
4185      fi
4186    done
4187    IFS="$lt_save_ifs"
4188  done
4189  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4190fi
4191fi
4192{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4193echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4194NM="$lt_cv_path_NM"
4195
4196{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4197echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4198LN_S=$as_ln_s
4199if test "$LN_S" = "ln -s"; then
4200  { echo "$as_me:$LINENO: result: yes" >&5
4201echo "${ECHO_T}yes" >&6; }
4202else
4203  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4204echo "${ECHO_T}no, using $LN_S" >&6; }
4205fi
4206
4207{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4208echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4209if test "${lt_cv_deplibs_check_method+set}" = set; then
4210  echo $ECHO_N "(cached) $ECHO_C" >&6
4211else
4212  lt_cv_file_magic_cmd='$MAGIC_CMD'
4213lt_cv_file_magic_test_file=
4214lt_cv_deplibs_check_method='unknown'
4215# Need to set the preceding variable on all platforms that support
4216# interlibrary dependencies.
4217# 'none' -- dependencies not supported.
4218# `unknown' -- same as none, but documents that we really don't know.
4219# 'pass_all' -- all dependencies passed with no checks.
4220# 'test_compile' -- check by making test program.
4221# 'file_magic [[regex]]' -- check by looking for files in library path
4222# which responds to the $file_magic_cmd with a given extended regex.
4223# If you have `file' or equivalent on your system and you're not sure
4224# whether `pass_all' will *always* work, you probably want this one.
4225
4226case $host_os in
4227aix[4-9]*)
4228  lt_cv_deplibs_check_method=pass_all
4229  ;;
4230
4231beos*)
4232  lt_cv_deplibs_check_method=pass_all
4233  ;;
4234
4235bsdi[45]*)
4236  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4237  lt_cv_file_magic_cmd='/usr/bin/file -L'
4238  lt_cv_file_magic_test_file=/shlib/libc.so
4239  ;;
4240
4241cygwin*)
4242  # func_win32_libid is a shell function defined in ltmain.sh
4243  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4244  lt_cv_file_magic_cmd='func_win32_libid'
4245  ;;
4246
4247mingw* | pw32*)
4248  # Base MSYS/MinGW do not provide the 'file' command needed by
4249  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4250  # unless we find 'file', for example because we are cross-compiling.
4251  if ( file / ) >/dev/null 2>&1; then
4252    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4253    lt_cv_file_magic_cmd='func_win32_libid'
4254  else
4255    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4256    lt_cv_file_magic_cmd='$OBJDUMP -f'
4257  fi
4258  ;;
4259
4260darwin* | rhapsody*)
4261  lt_cv_deplibs_check_method=pass_all
4262  ;;
4263
4264freebsd* | dragonfly*)
4265  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4266    case $host_cpu in
4267    i*86 )
4268      # Not sure whether the presence of OpenBSD here was a mistake.
4269      # Let's accept both of them until this is cleared up.
4270      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4271      lt_cv_file_magic_cmd=/usr/bin/file
4272      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4273      ;;
4274    esac
4275  else
4276    lt_cv_deplibs_check_method=pass_all
4277  fi
4278  ;;
4279
4280gnu*)
4281  lt_cv_deplibs_check_method=pass_all
4282  ;;
4283
4284hpux10.20* | hpux11*)
4285  lt_cv_file_magic_cmd=/usr/bin/file
4286  case $host_cpu in
4287  ia64*)
4288    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4289    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4290    ;;
4291  hppa*64*)
4292    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]'
4293    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4294    ;;
4295  *)
4296    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4297    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4298    ;;
4299  esac
4300  ;;
4301
4302interix[3-9]*)
4303  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4304  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4305  ;;
4306
4307irix5* | irix6* | nonstopux*)
4308  case $LD in
4309  *-32|*"-32 ") libmagic=32-bit;;
4310  *-n32|*"-n32 ") libmagic=N32;;
4311  *-64|*"-64 ") libmagic=64-bit;;
4312  *) libmagic=never-match;;
4313  esac
4314  lt_cv_deplibs_check_method=pass_all
4315  ;;
4316
4317# This must be Linux ELF.
4318linux* | k*bsd*-gnu)
4319  lt_cv_deplibs_check_method=pass_all
4320  ;;
4321
4322netbsd* | netbsdelf*-gnu)
4323  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4324    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4325  else
4326    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4327  fi
4328  ;;
4329
4330newos6*)
4331  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4332  lt_cv_file_magic_cmd=/usr/bin/file
4333  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4334  ;;
4335
4336nto-qnx*)
4337  lt_cv_deplibs_check_method=unknown
4338  ;;
4339
4340openbsd*)
4341  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4342    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4343  else
4344    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4345  fi
4346  ;;
4347
4348osf3* | osf4* | osf5*)
4349  lt_cv_deplibs_check_method=pass_all
4350  ;;
4351
4352rdos*)
4353  lt_cv_deplibs_check_method=pass_all
4354  ;;
4355
4356solaris*)
4357  lt_cv_deplibs_check_method=pass_all
4358  ;;
4359
4360sysv4 | sysv4.3*)
4361  case $host_vendor in
4362  motorola)
4363    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]'
4364    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4365    ;;
4366  ncr)
4367    lt_cv_deplibs_check_method=pass_all
4368    ;;
4369  sequent)
4370    lt_cv_file_magic_cmd='/bin/file'
4371    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4372    ;;
4373  sni)
4374    lt_cv_file_magic_cmd='/bin/file'
4375    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4376    lt_cv_file_magic_test_file=/lib/libc.so
4377    ;;
4378  siemens)
4379    lt_cv_deplibs_check_method=pass_all
4380    ;;
4381  pc)
4382    lt_cv_deplibs_check_method=pass_all
4383    ;;
4384  esac
4385  ;;
4386
4387sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4388  lt_cv_deplibs_check_method=pass_all
4389  ;;
4390esac
4391
4392fi
4393{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4394echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4395file_magic_cmd=$lt_cv_file_magic_cmd
4396deplibs_check_method=$lt_cv_deplibs_check_method
4397test -z "$deplibs_check_method" && deplibs_check_method=unknown
4398
4399
4400
4401
4402# If no C compiler was specified, use CC.
4403LTCC=${LTCC-"$CC"}
4404
4405# If no C compiler flags were specified, use CFLAGS.
4406LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4407
4408# Allow CC to be a program name with arguments.
4409compiler=$CC
4410
4411
4412# Check whether --enable-libtool-lock was given.
4413if test "${enable_libtool_lock+set}" = set; then
4414  enableval=$enable_libtool_lock;
4415fi
4416
4417test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4418
4419# Some flags need to be propagated to the compiler or linker for good
4420# libtool support.
4421case $host in
4422ia64-*-hpux*)
4423  # Find out which ABI we are using.
4424  echo 'int i;' > conftest.$ac_ext
4425  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4426  (eval $ac_compile) 2>&5
4427  ac_status=$?
4428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429  (exit $ac_status); }; then
4430    case `/usr/bin/file conftest.$ac_objext` in
4431    *ELF-32*)
4432      HPUX_IA64_MODE="32"
4433      ;;
4434    *ELF-64*)
4435      HPUX_IA64_MODE="64"
4436      ;;
4437    esac
4438  fi
4439  rm -rf conftest*
4440  ;;
4441*-*-irix6*)
4442  # Find out which ABI we are using.
4443  echo '#line 4443 "configure"' > conftest.$ac_ext
4444  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4445  (eval $ac_compile) 2>&5
4446  ac_status=$?
4447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448  (exit $ac_status); }; then
4449   if test "$lt_cv_prog_gnu_ld" = yes; then
4450    case `/usr/bin/file conftest.$ac_objext` in
4451    *32-bit*)
4452      LD="${LD-ld} -melf32bsmip"
4453      ;;
4454    *N32*)
4455      LD="${LD-ld} -melf32bmipn32"
4456      ;;
4457    *64-bit*)
4458      LD="${LD-ld} -melf64bmip"
4459      ;;
4460    esac
4461   else
4462    case `/usr/bin/file conftest.$ac_objext` in
4463    *32-bit*)
4464      LD="${LD-ld} -32"
4465      ;;
4466    *N32*)
4467      LD="${LD-ld} -n32"
4468      ;;
4469    *64-bit*)
4470      LD="${LD-ld} -64"
4471      ;;
4472    esac
4473   fi
4474  fi
4475  rm -rf conftest*
4476  ;;
4477
4478x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4479s390*-*linux*|sparc*-*linux*)
4480  # Find out which ABI we are using.
4481  echo 'int i;' > conftest.$ac_ext
4482  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483  (eval $ac_compile) 2>&5
4484  ac_status=$?
4485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486  (exit $ac_status); }; then
4487    case `/usr/bin/file conftest.o` in
4488    *32-bit*)
4489      case $host in
4490        x86_64-*kfreebsd*-gnu)
4491          LD="${LD-ld} -m elf_i386_fbsd"
4492          ;;
4493        x86_64-*linux*)
4494          LD="${LD-ld} -m elf_i386"
4495          ;;
4496        ppc64-*linux*|powerpc64-*linux*)
4497          LD="${LD-ld} -m elf32ppclinux"
4498          ;;
4499        s390x-*linux*)
4500          LD="${LD-ld} -m elf_s390"
4501          ;;
4502        sparc64-*linux*)
4503          LD="${LD-ld} -m elf32_sparc"
4504          ;;
4505      esac
4506      ;;
4507    *64-bit*)
4508      case $host in
4509        x86_64-*kfreebsd*-gnu)
4510          LD="${LD-ld} -m elf_x86_64_fbsd"
4511          ;;
4512        x86_64-*linux*)
4513          LD="${LD-ld} -m elf_x86_64"
4514          ;;
4515        ppc*-*linux*|powerpc*-*linux*)
4516          LD="${LD-ld} -m elf64ppc"
4517          ;;
4518        s390*-*linux*)
4519          LD="${LD-ld} -m elf64_s390"
4520          ;;
4521        sparc*-*linux*)
4522          LD="${LD-ld} -m elf64_sparc"
4523          ;;
4524      esac
4525      ;;
4526    esac
4527  fi
4528  rm -rf conftest*
4529  ;;
4530
4531*-*-sco3.2v5*)
4532  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4533  SAVE_CFLAGS="$CFLAGS"
4534  CFLAGS="$CFLAGS -belf"
4535  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4536echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4537if test "${lt_cv_cc_needs_belf+set}" = set; then
4538  echo $ECHO_N "(cached) $ECHO_C" >&6
4539else
4540  ac_ext=c
4541ac_cpp='$CPP $CPPFLAGS'
4542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545
4546     cat >conftest.$ac_ext <<_ACEOF
4547/* confdefs.h.  */
4548_ACEOF
4549cat confdefs.h >>conftest.$ac_ext
4550cat >>conftest.$ac_ext <<_ACEOF
4551/* end confdefs.h.  */
4552
4553int
4554main ()
4555{
4556
4557  ;
4558  return 0;
4559}
4560_ACEOF
4561rm -f conftest.$ac_objext conftest$ac_exeext
4562if { (ac_try="$ac_link"
4563case "(($ac_try" in
4564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565  *) ac_try_echo=$ac_try;;
4566esac
4567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568  (eval "$ac_link") 2>conftest.er1
4569  ac_status=$?
4570  grep -v '^ *+' conftest.er1 >conftest.err
4571  rm -f conftest.er1
4572  cat conftest.err >&5
4573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574  (exit $ac_status); } && {
4575	 test -z "$ac_c_werror_flag" ||
4576	 test ! -s conftest.err
4577       } && test -s conftest$ac_exeext &&
4578       $as_test_x conftest$ac_exeext; then
4579  lt_cv_cc_needs_belf=yes
4580else
4581  echo "$as_me: failed program was:" >&5
4582sed 's/^/| /' conftest.$ac_ext >&5
4583
4584	lt_cv_cc_needs_belf=no
4585fi
4586
4587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4588      conftest$ac_exeext conftest.$ac_ext
4589     ac_ext=c
4590ac_cpp='$CPP $CPPFLAGS'
4591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593ac_compiler_gnu=$ac_cv_c_compiler_gnu
4594
4595fi
4596{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4597echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4598  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4599    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4600    CFLAGS="$SAVE_CFLAGS"
4601  fi
4602  ;;
4603sparc*-*solaris*)
4604  # Find out which ABI we are using.
4605  echo 'int i;' > conftest.$ac_ext
4606  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607  (eval $ac_compile) 2>&5
4608  ac_status=$?
4609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610  (exit $ac_status); }; then
4611    case `/usr/bin/file conftest.o` in
4612    *64-bit*)
4613      case $lt_cv_prog_gnu_ld in
4614      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4615      *)
4616        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4617	  LD="${LD-ld} -64"
4618	fi
4619	;;
4620      esac
4621      ;;
4622    esac
4623  fi
4624  rm -rf conftest*
4625  ;;
4626
4627
4628esac
4629
4630need_locks="$enable_libtool_lock"
4631
4632
4633ac_ext=c
4634ac_cpp='$CPP $CPPFLAGS'
4635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4639echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4640# On Suns, sometimes $CPP names a directory.
4641if test -n "$CPP" && test -d "$CPP"; then
4642  CPP=
4643fi
4644if test -z "$CPP"; then
4645  if test "${ac_cv_prog_CPP+set}" = set; then
4646  echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648      # Double quotes because CPP needs to be expanded
4649    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4650    do
4651      ac_preproc_ok=false
4652for ac_c_preproc_warn_flag in '' yes
4653do
4654  # Use a header file that comes with gcc, so configuring glibc
4655  # with a fresh cross-compiler works.
4656  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4657  # <limits.h> exists even on freestanding compilers.
4658  # On the NeXT, cc -E runs the code through the compiler's parser,
4659  # not just through cpp. "Syntax error" is here to catch this case.
4660  cat >conftest.$ac_ext <<_ACEOF
4661/* confdefs.h.  */
4662_ACEOF
4663cat confdefs.h >>conftest.$ac_ext
4664cat >>conftest.$ac_ext <<_ACEOF
4665/* end confdefs.h.  */
4666#ifdef __STDC__
4667# include <limits.h>
4668#else
4669# include <assert.h>
4670#endif
4671		     Syntax error
4672_ACEOF
4673if { (ac_try="$ac_cpp conftest.$ac_ext"
4674case "(($ac_try" in
4675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676  *) ac_try_echo=$ac_try;;
4677esac
4678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4680  ac_status=$?
4681  grep -v '^ *+' conftest.er1 >conftest.err
4682  rm -f conftest.er1
4683  cat conftest.err >&5
4684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685  (exit $ac_status); } >/dev/null && {
4686	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4687	 test ! -s conftest.err
4688       }; then
4689  :
4690else
4691  echo "$as_me: failed program was:" >&5
4692sed 's/^/| /' conftest.$ac_ext >&5
4693
4694  # Broken: fails on valid input.
4695continue
4696fi
4697
4698rm -f conftest.err conftest.$ac_ext
4699
4700  # OK, works on sane cases.  Now check whether nonexistent headers
4701  # can be detected and how.
4702  cat >conftest.$ac_ext <<_ACEOF
4703/* confdefs.h.  */
4704_ACEOF
4705cat confdefs.h >>conftest.$ac_ext
4706cat >>conftest.$ac_ext <<_ACEOF
4707/* end confdefs.h.  */
4708#include <ac_nonexistent.h>
4709_ACEOF
4710if { (ac_try="$ac_cpp conftest.$ac_ext"
4711case "(($ac_try" in
4712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713  *) ac_try_echo=$ac_try;;
4714esac
4715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4716  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4717  ac_status=$?
4718  grep -v '^ *+' conftest.er1 >conftest.err
4719  rm -f conftest.er1
4720  cat conftest.err >&5
4721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722  (exit $ac_status); } >/dev/null && {
4723	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4724	 test ! -s conftest.err
4725       }; then
4726  # Broken: success on invalid input.
4727continue
4728else
4729  echo "$as_me: failed program was:" >&5
4730sed 's/^/| /' conftest.$ac_ext >&5
4731
4732  # Passes both tests.
4733ac_preproc_ok=:
4734break
4735fi
4736
4737rm -f conftest.err conftest.$ac_ext
4738
4739done
4740# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4741rm -f conftest.err conftest.$ac_ext
4742if $ac_preproc_ok; then
4743  break
4744fi
4745
4746    done
4747    ac_cv_prog_CPP=$CPP
4748
4749fi
4750  CPP=$ac_cv_prog_CPP
4751else
4752  ac_cv_prog_CPP=$CPP
4753fi
4754{ echo "$as_me:$LINENO: result: $CPP" >&5
4755echo "${ECHO_T}$CPP" >&6; }
4756ac_preproc_ok=false
4757for ac_c_preproc_warn_flag in '' yes
4758do
4759  # Use a header file that comes with gcc, so configuring glibc
4760  # with a fresh cross-compiler works.
4761  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4762  # <limits.h> exists even on freestanding compilers.
4763  # On the NeXT, cc -E runs the code through the compiler's parser,
4764  # not just through cpp. "Syntax error" is here to catch this case.
4765  cat >conftest.$ac_ext <<_ACEOF
4766/* confdefs.h.  */
4767_ACEOF
4768cat confdefs.h >>conftest.$ac_ext
4769cat >>conftest.$ac_ext <<_ACEOF
4770/* end confdefs.h.  */
4771#ifdef __STDC__
4772# include <limits.h>
4773#else
4774# include <assert.h>
4775#endif
4776		     Syntax error
4777_ACEOF
4778if { (ac_try="$ac_cpp conftest.$ac_ext"
4779case "(($ac_try" in
4780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4781  *) ac_try_echo=$ac_try;;
4782esac
4783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4784  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4785  ac_status=$?
4786  grep -v '^ *+' conftest.er1 >conftest.err
4787  rm -f conftest.er1
4788  cat conftest.err >&5
4789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790  (exit $ac_status); } >/dev/null && {
4791	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4792	 test ! -s conftest.err
4793       }; then
4794  :
4795else
4796  echo "$as_me: failed program was:" >&5
4797sed 's/^/| /' conftest.$ac_ext >&5
4798
4799  # Broken: fails on valid input.
4800continue
4801fi
4802
4803rm -f conftest.err conftest.$ac_ext
4804
4805  # OK, works on sane cases.  Now check whether nonexistent headers
4806  # can be detected and how.
4807  cat >conftest.$ac_ext <<_ACEOF
4808/* confdefs.h.  */
4809_ACEOF
4810cat confdefs.h >>conftest.$ac_ext
4811cat >>conftest.$ac_ext <<_ACEOF
4812/* end confdefs.h.  */
4813#include <ac_nonexistent.h>
4814_ACEOF
4815if { (ac_try="$ac_cpp conftest.$ac_ext"
4816case "(($ac_try" in
4817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818  *) ac_try_echo=$ac_try;;
4819esac
4820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4821  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4822  ac_status=$?
4823  grep -v '^ *+' conftest.er1 >conftest.err
4824  rm -f conftest.er1
4825  cat conftest.err >&5
4826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827  (exit $ac_status); } >/dev/null && {
4828	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4829	 test ! -s conftest.err
4830       }; then
4831  # Broken: success on invalid input.
4832continue
4833else
4834  echo "$as_me: failed program was:" >&5
4835sed 's/^/| /' conftest.$ac_ext >&5
4836
4837  # Passes both tests.
4838ac_preproc_ok=:
4839break
4840fi
4841
4842rm -f conftest.err conftest.$ac_ext
4843
4844done
4845# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4846rm -f conftest.err conftest.$ac_ext
4847if $ac_preproc_ok; then
4848  :
4849else
4850  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4851See \`config.log' for more details." >&5
4852echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4853See \`config.log' for more details." >&2;}
4854   { (exit 1); exit 1; }; }
4855fi
4856
4857ac_ext=c
4858ac_cpp='$CPP $CPPFLAGS'
4859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862
4863
4864{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4865echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4866if test "${ac_cv_header_stdc+set}" = set; then
4867  echo $ECHO_N "(cached) $ECHO_C" >&6
4868else
4869  cat >conftest.$ac_ext <<_ACEOF
4870/* confdefs.h.  */
4871_ACEOF
4872cat confdefs.h >>conftest.$ac_ext
4873cat >>conftest.$ac_ext <<_ACEOF
4874/* end confdefs.h.  */
4875#include <stdlib.h>
4876#include <stdarg.h>
4877#include <string.h>
4878#include <float.h>
4879
4880int
4881main ()
4882{
4883
4884  ;
4885  return 0;
4886}
4887_ACEOF
4888rm -f conftest.$ac_objext
4889if { (ac_try="$ac_compile"
4890case "(($ac_try" in
4891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4892  *) ac_try_echo=$ac_try;;
4893esac
4894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4895  (eval "$ac_compile") 2>conftest.er1
4896  ac_status=$?
4897  grep -v '^ *+' conftest.er1 >conftest.err
4898  rm -f conftest.er1
4899  cat conftest.err >&5
4900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901  (exit $ac_status); } && {
4902	 test -z "$ac_c_werror_flag" ||
4903	 test ! -s conftest.err
4904       } && test -s conftest.$ac_objext; then
4905  ac_cv_header_stdc=yes
4906else
4907  echo "$as_me: failed program was:" >&5
4908sed 's/^/| /' conftest.$ac_ext >&5
4909
4910	ac_cv_header_stdc=no
4911fi
4912
4913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914
4915if test $ac_cv_header_stdc = yes; then
4916  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4917  cat >conftest.$ac_ext <<_ACEOF
4918/* confdefs.h.  */
4919_ACEOF
4920cat confdefs.h >>conftest.$ac_ext
4921cat >>conftest.$ac_ext <<_ACEOF
4922/* end confdefs.h.  */
4923#include <string.h>
4924
4925_ACEOF
4926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4927  $EGREP "memchr" >/dev/null 2>&1; then
4928  :
4929else
4930  ac_cv_header_stdc=no
4931fi
4932rm -f conftest*
4933
4934fi
4935
4936if test $ac_cv_header_stdc = yes; then
4937  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4938  cat >conftest.$ac_ext <<_ACEOF
4939/* confdefs.h.  */
4940_ACEOF
4941cat confdefs.h >>conftest.$ac_ext
4942cat >>conftest.$ac_ext <<_ACEOF
4943/* end confdefs.h.  */
4944#include <stdlib.h>
4945
4946_ACEOF
4947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4948  $EGREP "free" >/dev/null 2>&1; then
4949  :
4950else
4951  ac_cv_header_stdc=no
4952fi
4953rm -f conftest*
4954
4955fi
4956
4957if test $ac_cv_header_stdc = yes; then
4958  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4959  if test "$cross_compiling" = yes; then
4960  :
4961else
4962  cat >conftest.$ac_ext <<_ACEOF
4963/* confdefs.h.  */
4964_ACEOF
4965cat confdefs.h >>conftest.$ac_ext
4966cat >>conftest.$ac_ext <<_ACEOF
4967/* end confdefs.h.  */
4968#include <ctype.h>
4969#include <stdlib.h>
4970#if ((' ' & 0x0FF) == 0x020)
4971# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4972# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4973#else
4974# define ISLOWER(c) \
4975		   (('a' <= (c) && (c) <= 'i') \
4976		     || ('j' <= (c) && (c) <= 'r') \
4977		     || ('s' <= (c) && (c) <= 'z'))
4978# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4979#endif
4980
4981#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4982int
4983main ()
4984{
4985  int i;
4986  for (i = 0; i < 256; i++)
4987    if (XOR (islower (i), ISLOWER (i))
4988	|| toupper (i) != TOUPPER (i))
4989      return 2;
4990  return 0;
4991}
4992_ACEOF
4993rm -f conftest$ac_exeext
4994if { (ac_try="$ac_link"
4995case "(($ac_try" in
4996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997  *) ac_try_echo=$ac_try;;
4998esac
4999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5000  (eval "$ac_link") 2>&5
5001  ac_status=$?
5002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5004  { (case "(($ac_try" in
5005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006  *) ac_try_echo=$ac_try;;
5007esac
5008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009  (eval "$ac_try") 2>&5
5010  ac_status=$?
5011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012  (exit $ac_status); }; }; then
5013  :
5014else
5015  echo "$as_me: program exited with status $ac_status" >&5
5016echo "$as_me: failed program was:" >&5
5017sed 's/^/| /' conftest.$ac_ext >&5
5018
5019( exit $ac_status )
5020ac_cv_header_stdc=no
5021fi
5022rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5023fi
5024
5025
5026fi
5027fi
5028{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5029echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5030if test $ac_cv_header_stdc = yes; then
5031
5032cat >>confdefs.h <<\_ACEOF
5033#define STDC_HEADERS 1
5034_ACEOF
5035
5036fi
5037
5038# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5049		  inttypes.h stdint.h unistd.h
5050do
5051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5052{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5055  echo $ECHO_N "(cached) $ECHO_C" >&6
5056else
5057  cat >conftest.$ac_ext <<_ACEOF
5058/* confdefs.h.  */
5059_ACEOF
5060cat confdefs.h >>conftest.$ac_ext
5061cat >>conftest.$ac_ext <<_ACEOF
5062/* end confdefs.h.  */
5063$ac_includes_default
5064
5065#include <$ac_header>
5066_ACEOF
5067rm -f conftest.$ac_objext
5068if { (ac_try="$ac_compile"
5069case "(($ac_try" in
5070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071  *) ac_try_echo=$ac_try;;
5072esac
5073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5074  (eval "$ac_compile") 2>conftest.er1
5075  ac_status=$?
5076  grep -v '^ *+' conftest.er1 >conftest.err
5077  rm -f conftest.er1
5078  cat conftest.err >&5
5079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080  (exit $ac_status); } && {
5081	 test -z "$ac_c_werror_flag" ||
5082	 test ! -s conftest.err
5083       } && test -s conftest.$ac_objext; then
5084  eval "$as_ac_Header=yes"
5085else
5086  echo "$as_me: failed program was:" >&5
5087sed 's/^/| /' conftest.$ac_ext >&5
5088
5089	eval "$as_ac_Header=no"
5090fi
5091
5092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5093fi
5094ac_res=`eval echo '${'$as_ac_Header'}'`
5095	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5096echo "${ECHO_T}$ac_res" >&6; }
5097if test `eval echo '${'$as_ac_Header'}'` = yes; then
5098  cat >>confdefs.h <<_ACEOF
5099#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5100_ACEOF
5101
5102fi
5103
5104done
5105
5106
5107
5108for ac_header in dlfcn.h
5109do
5110as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5112  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5114if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5115  echo $ECHO_N "(cached) $ECHO_C" >&6
5116fi
5117ac_res=`eval echo '${'$as_ac_Header'}'`
5118	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5119echo "${ECHO_T}$ac_res" >&6; }
5120else
5121  # Is the header compilable?
5122{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5123echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5124cat >conftest.$ac_ext <<_ACEOF
5125/* confdefs.h.  */
5126_ACEOF
5127cat confdefs.h >>conftest.$ac_ext
5128cat >>conftest.$ac_ext <<_ACEOF
5129/* end confdefs.h.  */
5130$ac_includes_default
5131#include <$ac_header>
5132_ACEOF
5133rm -f conftest.$ac_objext
5134if { (ac_try="$ac_compile"
5135case "(($ac_try" in
5136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137  *) ac_try_echo=$ac_try;;
5138esac
5139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5140  (eval "$ac_compile") 2>conftest.er1
5141  ac_status=$?
5142  grep -v '^ *+' conftest.er1 >conftest.err
5143  rm -f conftest.er1
5144  cat conftest.err >&5
5145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146  (exit $ac_status); } && {
5147	 test -z "$ac_c_werror_flag" ||
5148	 test ! -s conftest.err
5149       } && test -s conftest.$ac_objext; then
5150  ac_header_compiler=yes
5151else
5152  echo "$as_me: failed program was:" >&5
5153sed 's/^/| /' conftest.$ac_ext >&5
5154
5155	ac_header_compiler=no
5156fi
5157
5158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5160echo "${ECHO_T}$ac_header_compiler" >&6; }
5161
5162# Is the header present?
5163{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5164echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5165cat >conftest.$ac_ext <<_ACEOF
5166/* confdefs.h.  */
5167_ACEOF
5168cat confdefs.h >>conftest.$ac_ext
5169cat >>conftest.$ac_ext <<_ACEOF
5170/* end confdefs.h.  */
5171#include <$ac_header>
5172_ACEOF
5173if { (ac_try="$ac_cpp conftest.$ac_ext"
5174case "(($ac_try" in
5175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176  *) ac_try_echo=$ac_try;;
5177esac
5178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5179  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5180  ac_status=$?
5181  grep -v '^ *+' conftest.er1 >conftest.err
5182  rm -f conftest.er1
5183  cat conftest.err >&5
5184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185  (exit $ac_status); } >/dev/null && {
5186	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5187	 test ! -s conftest.err
5188       }; then
5189  ac_header_preproc=yes
5190else
5191  echo "$as_me: failed program was:" >&5
5192sed 's/^/| /' conftest.$ac_ext >&5
5193
5194  ac_header_preproc=no
5195fi
5196
5197rm -f conftest.err conftest.$ac_ext
5198{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5199echo "${ECHO_T}$ac_header_preproc" >&6; }
5200
5201# So?  What about this header?
5202case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5203  yes:no: )
5204    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5205echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5206    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5207echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5208    ac_header_preproc=yes
5209    ;;
5210  no:yes:* )
5211    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5212echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5213    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5214echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5215    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5216echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5217    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5218echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5219    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5220echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5221    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5222echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5223    ( cat <<\_ASBOX
5224## ---------------------------------------------------------------------- ##
5225## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5226## ---------------------------------------------------------------------- ##
5227_ASBOX
5228     ) | sed "s/^/$as_me: WARNING:     /" >&2
5229    ;;
5230esac
5231{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5234  echo $ECHO_N "(cached) $ECHO_C" >&6
5235else
5236  eval "$as_ac_Header=\$ac_header_preproc"
5237fi
5238ac_res=`eval echo '${'$as_ac_Header'}'`
5239	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5240echo "${ECHO_T}$ac_res" >&6; }
5241
5242fi
5243if test `eval echo '${'$as_ac_Header'}'` = yes; then
5244  cat >>confdefs.h <<_ACEOF
5245#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5246_ACEOF
5247
5248fi
5249
5250done
5251
5252ac_ext=cpp
5253ac_cpp='$CXXCPP $CPPFLAGS'
5254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5257if test -z "$CXX"; then
5258  if test -n "$CCC"; then
5259    CXX=$CCC
5260  else
5261    if test -n "$ac_tool_prefix"; then
5262  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5263  do
5264    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5265set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5268if test "${ac_cv_prog_CXX+set}" = set; then
5269  echo $ECHO_N "(cached) $ECHO_C" >&6
5270else
5271  if test -n "$CXX"; then
5272  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5273else
5274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275for as_dir in $PATH
5276do
5277  IFS=$as_save_IFS
5278  test -z "$as_dir" && as_dir=.
5279  for ac_exec_ext in '' $ac_executable_extensions; do
5280  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5281    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5282    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5283    break 2
5284  fi
5285done
5286done
5287IFS=$as_save_IFS
5288
5289fi
5290fi
5291CXX=$ac_cv_prog_CXX
5292if test -n "$CXX"; then
5293  { echo "$as_me:$LINENO: result: $CXX" >&5
5294echo "${ECHO_T}$CXX" >&6; }
5295else
5296  { echo "$as_me:$LINENO: result: no" >&5
5297echo "${ECHO_T}no" >&6; }
5298fi
5299
5300
5301    test -n "$CXX" && break
5302  done
5303fi
5304if test -z "$CXX"; then
5305  ac_ct_CXX=$CXX
5306  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5307do
5308  # Extract the first word of "$ac_prog", so it can be a program name with args.
5309set dummy $ac_prog; ac_word=$2
5310{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5312if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5313  echo $ECHO_N "(cached) $ECHO_C" >&6
5314else
5315  if test -n "$ac_ct_CXX"; then
5316  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5317else
5318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319for as_dir in $PATH
5320do
5321  IFS=$as_save_IFS
5322  test -z "$as_dir" && as_dir=.
5323  for ac_exec_ext in '' $ac_executable_extensions; do
5324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325    ac_cv_prog_ac_ct_CXX="$ac_prog"
5326    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327    break 2
5328  fi
5329done
5330done
5331IFS=$as_save_IFS
5332
5333fi
5334fi
5335ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5336if test -n "$ac_ct_CXX"; then
5337  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5338echo "${ECHO_T}$ac_ct_CXX" >&6; }
5339else
5340  { echo "$as_me:$LINENO: result: no" >&5
5341echo "${ECHO_T}no" >&6; }
5342fi
5343
5344
5345  test -n "$ac_ct_CXX" && break
5346done
5347
5348  if test "x$ac_ct_CXX" = x; then
5349    CXX="g++"
5350  else
5351    case $cross_compiling:$ac_tool_warned in
5352yes:)
5353{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5354whose name does not start with the host triplet.  If you think this
5355configuration is useful to you, please write to autoconf@gnu.org." >&5
5356echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5357whose name does not start with the host triplet.  If you think this
5358configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5359ac_tool_warned=yes ;;
5360esac
5361    CXX=$ac_ct_CXX
5362  fi
5363fi
5364
5365  fi
5366fi
5367# Provide some information about the compiler.
5368echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5369ac_compiler=`set X $ac_compile; echo $2`
5370{ (ac_try="$ac_compiler --version >&5"
5371case "(($ac_try" in
5372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373  *) ac_try_echo=$ac_try;;
5374esac
5375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376  (eval "$ac_compiler --version >&5") 2>&5
5377  ac_status=$?
5378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379  (exit $ac_status); }
5380{ (ac_try="$ac_compiler -v >&5"
5381case "(($ac_try" in
5382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383  *) ac_try_echo=$ac_try;;
5384esac
5385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386  (eval "$ac_compiler -v >&5") 2>&5
5387  ac_status=$?
5388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389  (exit $ac_status); }
5390{ (ac_try="$ac_compiler -V >&5"
5391case "(($ac_try" in
5392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393  *) ac_try_echo=$ac_try;;
5394esac
5395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396  (eval "$ac_compiler -V >&5") 2>&5
5397  ac_status=$?
5398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399  (exit $ac_status); }
5400
5401{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5402echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5403if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5404  echo $ECHO_N "(cached) $ECHO_C" >&6
5405else
5406  cat >conftest.$ac_ext <<_ACEOF
5407/* confdefs.h.  */
5408_ACEOF
5409cat confdefs.h >>conftest.$ac_ext
5410cat >>conftest.$ac_ext <<_ACEOF
5411/* end confdefs.h.  */
5412
5413int
5414main ()
5415{
5416#ifndef __GNUC__
5417       choke me
5418#endif
5419
5420  ;
5421  return 0;
5422}
5423_ACEOF
5424rm -f conftest.$ac_objext
5425if { (ac_try="$ac_compile"
5426case "(($ac_try" in
5427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428  *) ac_try_echo=$ac_try;;
5429esac
5430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431  (eval "$ac_compile") 2>conftest.er1
5432  ac_status=$?
5433  grep -v '^ *+' conftest.er1 >conftest.err
5434  rm -f conftest.er1
5435  cat conftest.err >&5
5436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437  (exit $ac_status); } && {
5438	 test -z "$ac_cxx_werror_flag" ||
5439	 test ! -s conftest.err
5440       } && test -s conftest.$ac_objext; then
5441  ac_compiler_gnu=yes
5442else
5443  echo "$as_me: failed program was:" >&5
5444sed 's/^/| /' conftest.$ac_ext >&5
5445
5446	ac_compiler_gnu=no
5447fi
5448
5449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5451
5452fi
5453{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5454echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5455GXX=`test $ac_compiler_gnu = yes && echo yes`
5456ac_test_CXXFLAGS=${CXXFLAGS+set}
5457ac_save_CXXFLAGS=$CXXFLAGS
5458{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5459echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5460if test "${ac_cv_prog_cxx_g+set}" = set; then
5461  echo $ECHO_N "(cached) $ECHO_C" >&6
5462else
5463  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5464   ac_cxx_werror_flag=yes
5465   ac_cv_prog_cxx_g=no
5466   CXXFLAGS="-g"
5467   cat >conftest.$ac_ext <<_ACEOF
5468/* confdefs.h.  */
5469_ACEOF
5470cat confdefs.h >>conftest.$ac_ext
5471cat >>conftest.$ac_ext <<_ACEOF
5472/* end confdefs.h.  */
5473
5474int
5475main ()
5476{
5477
5478  ;
5479  return 0;
5480}
5481_ACEOF
5482rm -f conftest.$ac_objext
5483if { (ac_try="$ac_compile"
5484case "(($ac_try" in
5485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486  *) ac_try_echo=$ac_try;;
5487esac
5488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489  (eval "$ac_compile") 2>conftest.er1
5490  ac_status=$?
5491  grep -v '^ *+' conftest.er1 >conftest.err
5492  rm -f conftest.er1
5493  cat conftest.err >&5
5494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495  (exit $ac_status); } && {
5496	 test -z "$ac_cxx_werror_flag" ||
5497	 test ! -s conftest.err
5498       } && test -s conftest.$ac_objext; then
5499  ac_cv_prog_cxx_g=yes
5500else
5501  echo "$as_me: failed program was:" >&5
5502sed 's/^/| /' conftest.$ac_ext >&5
5503
5504	CXXFLAGS=""
5505      cat >conftest.$ac_ext <<_ACEOF
5506/* confdefs.h.  */
5507_ACEOF
5508cat confdefs.h >>conftest.$ac_ext
5509cat >>conftest.$ac_ext <<_ACEOF
5510/* end confdefs.h.  */
5511
5512int
5513main ()
5514{
5515
5516  ;
5517  return 0;
5518}
5519_ACEOF
5520rm -f conftest.$ac_objext
5521if { (ac_try="$ac_compile"
5522case "(($ac_try" in
5523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524  *) ac_try_echo=$ac_try;;
5525esac
5526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527  (eval "$ac_compile") 2>conftest.er1
5528  ac_status=$?
5529  grep -v '^ *+' conftest.er1 >conftest.err
5530  rm -f conftest.er1
5531  cat conftest.err >&5
5532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533  (exit $ac_status); } && {
5534	 test -z "$ac_cxx_werror_flag" ||
5535	 test ! -s conftest.err
5536       } && test -s conftest.$ac_objext; then
5537  :
5538else
5539  echo "$as_me: failed program was:" >&5
5540sed 's/^/| /' conftest.$ac_ext >&5
5541
5542	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5543	 CXXFLAGS="-g"
5544	 cat >conftest.$ac_ext <<_ACEOF
5545/* confdefs.h.  */
5546_ACEOF
5547cat confdefs.h >>conftest.$ac_ext
5548cat >>conftest.$ac_ext <<_ACEOF
5549/* end confdefs.h.  */
5550
5551int
5552main ()
5553{
5554
5555  ;
5556  return 0;
5557}
5558_ACEOF
5559rm -f conftest.$ac_objext
5560if { (ac_try="$ac_compile"
5561case "(($ac_try" in
5562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563  *) ac_try_echo=$ac_try;;
5564esac
5565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566  (eval "$ac_compile") 2>conftest.er1
5567  ac_status=$?
5568  grep -v '^ *+' conftest.er1 >conftest.err
5569  rm -f conftest.er1
5570  cat conftest.err >&5
5571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572  (exit $ac_status); } && {
5573	 test -z "$ac_cxx_werror_flag" ||
5574	 test ! -s conftest.err
5575       } && test -s conftest.$ac_objext; then
5576  ac_cv_prog_cxx_g=yes
5577else
5578  echo "$as_me: failed program was:" >&5
5579sed 's/^/| /' conftest.$ac_ext >&5
5580
5581
5582fi
5583
5584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585fi
5586
5587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588fi
5589
5590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5592fi
5593{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5594echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5595if test "$ac_test_CXXFLAGS" = set; then
5596  CXXFLAGS=$ac_save_CXXFLAGS
5597elif test $ac_cv_prog_cxx_g = yes; then
5598  if test "$GXX" = yes; then
5599    CXXFLAGS="-g -O2"
5600  else
5601    CXXFLAGS="-g"
5602  fi
5603else
5604  if test "$GXX" = yes; then
5605    CXXFLAGS="-O2"
5606  else
5607    CXXFLAGS=
5608  fi
5609fi
5610ac_ext=cpp
5611ac_cpp='$CXXCPP $CPPFLAGS'
5612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5615
5616depcc="$CXX"  am_compiler_list=
5617
5618{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5619echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5620if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5621  echo $ECHO_N "(cached) $ECHO_C" >&6
5622else
5623  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5624  # We make a subdir and do the tests there.  Otherwise we can end up
5625  # making bogus files that we don't know about and never remove.  For
5626  # instance it was reported that on HP-UX the gcc test will end up
5627  # making a dummy file named `D' -- because `-MD' means `put the output
5628  # in D'.
5629  mkdir conftest.dir
5630  # Copy depcomp to subdir because otherwise we won't find it if we're
5631  # using a relative directory.
5632  cp "$am_depcomp" conftest.dir
5633  cd conftest.dir
5634  # We will build objects and dependencies in a subdirectory because
5635  # it helps to detect inapplicable dependency modes.  For instance
5636  # both Tru64's cc and ICC support -MD to output dependencies as a
5637  # side effect of compilation, but ICC will put the dependencies in
5638  # the current directory while Tru64 will put them in the object
5639  # directory.
5640  mkdir sub
5641
5642  am_cv_CXX_dependencies_compiler_type=none
5643  if test "$am_compiler_list" = ""; then
5644     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5645  fi
5646  for depmode in $am_compiler_list; do
5647    # Setup a source with many dependencies, because some compilers
5648    # like to wrap large dependency lists on column 80 (with \), and
5649    # we should not choose a depcomp mode which is confused by this.
5650    #
5651    # We need to recreate these files for each test, as the compiler may
5652    # overwrite some of them when testing with obscure command lines.
5653    # This happens at least with the AIX C compiler.
5654    : > sub/conftest.c
5655    for i in 1 2 3 4 5 6; do
5656      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5657      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5658      # Solaris 8's {/usr,}/bin/sh.
5659      touch sub/conftst$i.h
5660    done
5661    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5662
5663    case $depmode in
5664    nosideeffect)
5665      # after this tag, mechanisms are not by side-effect, so they'll
5666      # only be used when explicitly requested
5667      if test "x$enable_dependency_tracking" = xyes; then
5668	continue
5669      else
5670	break
5671      fi
5672      ;;
5673    none) break ;;
5674    esac
5675    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5676    # mode.  It turns out that the SunPro C++ compiler does not properly
5677    # handle `-M -o', and we need to detect this.
5678    if depmode=$depmode \
5679       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5680       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5681       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5682         >/dev/null 2>conftest.err &&
5683       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5684       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5685       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5686       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5687      # icc doesn't choke on unknown options, it will just issue warnings
5688      # or remarks (even with -Werror).  So we grep stderr for any message
5689      # that says an option was ignored or not supported.
5690      # When given -MP, icc 7.0 and 7.1 complain thusly:
5691      #   icc: Command line warning: ignoring option '-M'; no argument required
5692      # The diagnosis changed in icc 8.0:
5693      #   icc: Command line remark: option '-MP' not supported
5694      if (grep 'ignoring option' conftest.err ||
5695          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5696        am_cv_CXX_dependencies_compiler_type=$depmode
5697        break
5698      fi
5699    fi
5700  done
5701
5702  cd ..
5703  rm -rf conftest.dir
5704else
5705  am_cv_CXX_dependencies_compiler_type=none
5706fi
5707
5708fi
5709{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5710echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5711CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5712
5713 if
5714  test "x$enable_dependency_tracking" != xno \
5715  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5716  am__fastdepCXX_TRUE=
5717  am__fastdepCXX_FALSE='#'
5718else
5719  am__fastdepCXX_TRUE='#'
5720  am__fastdepCXX_FALSE=
5721fi
5722
5723
5724
5725
5726if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5727    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5728    (test "X$CXX" != "Xg++"))) ; then
5729  ac_ext=cpp
5730ac_cpp='$CXXCPP $CPPFLAGS'
5731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5734{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5735echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5736if test -z "$CXXCPP"; then
5737  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5738  echo $ECHO_N "(cached) $ECHO_C" >&6
5739else
5740      # Double quotes because CXXCPP needs to be expanded
5741    for CXXCPP in "$CXX -E" "/lib/cpp"
5742    do
5743      ac_preproc_ok=false
5744for ac_cxx_preproc_warn_flag in '' yes
5745do
5746  # Use a header file that comes with gcc, so configuring glibc
5747  # with a fresh cross-compiler works.
5748  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5749  # <limits.h> exists even on freestanding compilers.
5750  # On the NeXT, cc -E runs the code through the compiler's parser,
5751  # not just through cpp. "Syntax error" is here to catch this case.
5752  cat >conftest.$ac_ext <<_ACEOF
5753/* confdefs.h.  */
5754_ACEOF
5755cat confdefs.h >>conftest.$ac_ext
5756cat >>conftest.$ac_ext <<_ACEOF
5757/* end confdefs.h.  */
5758#ifdef __STDC__
5759# include <limits.h>
5760#else
5761# include <assert.h>
5762#endif
5763		     Syntax error
5764_ACEOF
5765if { (ac_try="$ac_cpp conftest.$ac_ext"
5766case "(($ac_try" in
5767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768  *) ac_try_echo=$ac_try;;
5769esac
5770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5772  ac_status=$?
5773  grep -v '^ *+' conftest.er1 >conftest.err
5774  rm -f conftest.er1
5775  cat conftest.err >&5
5776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777  (exit $ac_status); } >/dev/null && {
5778	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5779	 test ! -s conftest.err
5780       }; then
5781  :
5782else
5783  echo "$as_me: failed program was:" >&5
5784sed 's/^/| /' conftest.$ac_ext >&5
5785
5786  # Broken: fails on valid input.
5787continue
5788fi
5789
5790rm -f conftest.err conftest.$ac_ext
5791
5792  # OK, works on sane cases.  Now check whether nonexistent headers
5793  # can be detected and how.
5794  cat >conftest.$ac_ext <<_ACEOF
5795/* confdefs.h.  */
5796_ACEOF
5797cat confdefs.h >>conftest.$ac_ext
5798cat >>conftest.$ac_ext <<_ACEOF
5799/* end confdefs.h.  */
5800#include <ac_nonexistent.h>
5801_ACEOF
5802if { (ac_try="$ac_cpp conftest.$ac_ext"
5803case "(($ac_try" in
5804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805  *) ac_try_echo=$ac_try;;
5806esac
5807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5809  ac_status=$?
5810  grep -v '^ *+' conftest.er1 >conftest.err
5811  rm -f conftest.er1
5812  cat conftest.err >&5
5813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814  (exit $ac_status); } >/dev/null && {
5815	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5816	 test ! -s conftest.err
5817       }; then
5818  # Broken: success on invalid input.
5819continue
5820else
5821  echo "$as_me: failed program was:" >&5
5822sed 's/^/| /' conftest.$ac_ext >&5
5823
5824  # Passes both tests.
5825ac_preproc_ok=:
5826break
5827fi
5828
5829rm -f conftest.err conftest.$ac_ext
5830
5831done
5832# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5833rm -f conftest.err conftest.$ac_ext
5834if $ac_preproc_ok; then
5835  break
5836fi
5837
5838    done
5839    ac_cv_prog_CXXCPP=$CXXCPP
5840
5841fi
5842  CXXCPP=$ac_cv_prog_CXXCPP
5843else
5844  ac_cv_prog_CXXCPP=$CXXCPP
5845fi
5846{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5847echo "${ECHO_T}$CXXCPP" >&6; }
5848ac_preproc_ok=false
5849for ac_cxx_preproc_warn_flag in '' yes
5850do
5851  # Use a header file that comes with gcc, so configuring glibc
5852  # with a fresh cross-compiler works.
5853  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5854  # <limits.h> exists even on freestanding compilers.
5855  # On the NeXT, cc -E runs the code through the compiler's parser,
5856  # not just through cpp. "Syntax error" is here to catch this case.
5857  cat >conftest.$ac_ext <<_ACEOF
5858/* confdefs.h.  */
5859_ACEOF
5860cat confdefs.h >>conftest.$ac_ext
5861cat >>conftest.$ac_ext <<_ACEOF
5862/* end confdefs.h.  */
5863#ifdef __STDC__
5864# include <limits.h>
5865#else
5866# include <assert.h>
5867#endif
5868		     Syntax error
5869_ACEOF
5870if { (ac_try="$ac_cpp conftest.$ac_ext"
5871case "(($ac_try" in
5872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873  *) ac_try_echo=$ac_try;;
5874esac
5875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5877  ac_status=$?
5878  grep -v '^ *+' conftest.er1 >conftest.err
5879  rm -f conftest.er1
5880  cat conftest.err >&5
5881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882  (exit $ac_status); } >/dev/null && {
5883	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5884	 test ! -s conftest.err
5885       }; then
5886  :
5887else
5888  echo "$as_me: failed program was:" >&5
5889sed 's/^/| /' conftest.$ac_ext >&5
5890
5891  # Broken: fails on valid input.
5892continue
5893fi
5894
5895rm -f conftest.err conftest.$ac_ext
5896
5897  # OK, works on sane cases.  Now check whether nonexistent headers
5898  # can be detected and how.
5899  cat >conftest.$ac_ext <<_ACEOF
5900/* confdefs.h.  */
5901_ACEOF
5902cat confdefs.h >>conftest.$ac_ext
5903cat >>conftest.$ac_ext <<_ACEOF
5904/* end confdefs.h.  */
5905#include <ac_nonexistent.h>
5906_ACEOF
5907if { (ac_try="$ac_cpp conftest.$ac_ext"
5908case "(($ac_try" in
5909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910  *) ac_try_echo=$ac_try;;
5911esac
5912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5914  ac_status=$?
5915  grep -v '^ *+' conftest.er1 >conftest.err
5916  rm -f conftest.er1
5917  cat conftest.err >&5
5918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919  (exit $ac_status); } >/dev/null && {
5920	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5921	 test ! -s conftest.err
5922       }; then
5923  # Broken: success on invalid input.
5924continue
5925else
5926  echo "$as_me: failed program was:" >&5
5927sed 's/^/| /' conftest.$ac_ext >&5
5928
5929  # Passes both tests.
5930ac_preproc_ok=:
5931break
5932fi
5933
5934rm -f conftest.err conftest.$ac_ext
5935
5936done
5937# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5938rm -f conftest.err conftest.$ac_ext
5939if $ac_preproc_ok; then
5940  :
5941else
5942  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5943See \`config.log' for more details." >&5
5944echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5945See \`config.log' for more details." >&2;}
5946   { (exit 1); exit 1; }; }
5947fi
5948
5949ac_ext=cpp
5950ac_cpp='$CXXCPP $CPPFLAGS'
5951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5954
5955fi
5956
5957
5958ac_ext=f
5959ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5960ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5961ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5962if test -n "$ac_tool_prefix"; then
5963  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
5964  do
5965    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5966set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5967{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5969if test "${ac_cv_prog_F77+set}" = set; then
5970  echo $ECHO_N "(cached) $ECHO_C" >&6
5971else
5972  if test -n "$F77"; then
5973  ac_cv_prog_F77="$F77" # Let the user override the test.
5974else
5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976for as_dir in $PATH
5977do
5978  IFS=$as_save_IFS
5979  test -z "$as_dir" && as_dir=.
5980  for ac_exec_ext in '' $ac_executable_extensions; do
5981  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5982    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5983    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984    break 2
5985  fi
5986done
5987done
5988IFS=$as_save_IFS
5989
5990fi
5991fi
5992F77=$ac_cv_prog_F77
5993if test -n "$F77"; then
5994  { echo "$as_me:$LINENO: result: $F77" >&5
5995echo "${ECHO_T}$F77" >&6; }
5996else
5997  { echo "$as_me:$LINENO: result: no" >&5
5998echo "${ECHO_T}no" >&6; }
5999fi
6000
6001
6002    test -n "$F77" && break
6003  done
6004fi
6005if test -z "$F77"; then
6006  ac_ct_F77=$F77
6007  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
6008do
6009  # Extract the first word of "$ac_prog", so it can be a program name with args.
6010set dummy $ac_prog; ac_word=$2
6011{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6013if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6014  echo $ECHO_N "(cached) $ECHO_C" >&6
6015else
6016  if test -n "$ac_ct_F77"; then
6017  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6018else
6019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020for as_dir in $PATH
6021do
6022  IFS=$as_save_IFS
6023  test -z "$as_dir" && as_dir=.
6024  for ac_exec_ext in '' $ac_executable_extensions; do
6025  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6026    ac_cv_prog_ac_ct_F77="$ac_prog"
6027    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6028    break 2
6029  fi
6030done
6031done
6032IFS=$as_save_IFS
6033
6034fi
6035fi
6036ac_ct_F77=$ac_cv_prog_ac_ct_F77
6037if test -n "$ac_ct_F77"; then
6038  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6039echo "${ECHO_T}$ac_ct_F77" >&6; }
6040else
6041  { echo "$as_me:$LINENO: result: no" >&5
6042echo "${ECHO_T}no" >&6; }
6043fi
6044
6045
6046  test -n "$ac_ct_F77" && break
6047done
6048
6049  if test "x$ac_ct_F77" = x; then
6050    F77=""
6051  else
6052    case $cross_compiling:$ac_tool_warned in
6053yes:)
6054{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6055whose name does not start with the host triplet.  If you think this
6056configuration is useful to you, please write to autoconf@gnu.org." >&5
6057echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6058whose name does not start with the host triplet.  If you think this
6059configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6060ac_tool_warned=yes ;;
6061esac
6062    F77=$ac_ct_F77
6063  fi
6064fi
6065
6066
6067# Provide some information about the compiler.
6068echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6069ac_compiler=`set X $ac_compile; echo $2`
6070{ (ac_try="$ac_compiler --version >&5"
6071case "(($ac_try" in
6072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073  *) ac_try_echo=$ac_try;;
6074esac
6075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076  (eval "$ac_compiler --version >&5") 2>&5
6077  ac_status=$?
6078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079  (exit $ac_status); }
6080{ (ac_try="$ac_compiler -v >&5"
6081case "(($ac_try" in
6082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083  *) ac_try_echo=$ac_try;;
6084esac
6085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086  (eval "$ac_compiler -v >&5") 2>&5
6087  ac_status=$?
6088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089  (exit $ac_status); }
6090{ (ac_try="$ac_compiler -V >&5"
6091case "(($ac_try" in
6092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093  *) ac_try_echo=$ac_try;;
6094esac
6095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096  (eval "$ac_compiler -V >&5") 2>&5
6097  ac_status=$?
6098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099  (exit $ac_status); }
6100rm -f a.out
6101
6102# If we don't use `.F' as extension, the preprocessor is not run on the
6103# input file.  (Note that this only needs to work for GNU compilers.)
6104ac_save_ext=$ac_ext
6105ac_ext=F
6106{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6107echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6108if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6109  echo $ECHO_N "(cached) $ECHO_C" >&6
6110else
6111  cat >conftest.$ac_ext <<_ACEOF
6112      program main
6113#ifndef __GNUC__
6114       choke me
6115#endif
6116
6117      end
6118_ACEOF
6119rm -f conftest.$ac_objext
6120if { (ac_try="$ac_compile"
6121case "(($ac_try" in
6122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123  *) ac_try_echo=$ac_try;;
6124esac
6125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126  (eval "$ac_compile") 2>conftest.er1
6127  ac_status=$?
6128  grep -v '^ *+' conftest.er1 >conftest.err
6129  rm -f conftest.er1
6130  cat conftest.err >&5
6131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132  (exit $ac_status); } && {
6133	 test -z "$ac_f77_werror_flag" ||
6134	 test ! -s conftest.err
6135       } && test -s conftest.$ac_objext; then
6136  ac_compiler_gnu=yes
6137else
6138  echo "$as_me: failed program was:" >&5
6139sed 's/^/| /' conftest.$ac_ext >&5
6140
6141	ac_compiler_gnu=no
6142fi
6143
6144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6146
6147fi
6148{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6149echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6150ac_ext=$ac_save_ext
6151ac_test_FFLAGS=${FFLAGS+set}
6152ac_save_FFLAGS=$FFLAGS
6153FFLAGS=
6154{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6155echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6156if test "${ac_cv_prog_f77_g+set}" = set; then
6157  echo $ECHO_N "(cached) $ECHO_C" >&6
6158else
6159  FFLAGS=-g
6160cat >conftest.$ac_ext <<_ACEOF
6161      program main
6162
6163      end
6164_ACEOF
6165rm -f conftest.$ac_objext
6166if { (ac_try="$ac_compile"
6167case "(($ac_try" in
6168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169  *) ac_try_echo=$ac_try;;
6170esac
6171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6172  (eval "$ac_compile") 2>conftest.er1
6173  ac_status=$?
6174  grep -v '^ *+' conftest.er1 >conftest.err
6175  rm -f conftest.er1
6176  cat conftest.err >&5
6177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178  (exit $ac_status); } && {
6179	 test -z "$ac_f77_werror_flag" ||
6180	 test ! -s conftest.err
6181       } && test -s conftest.$ac_objext; then
6182  ac_cv_prog_f77_g=yes
6183else
6184  echo "$as_me: failed program was:" >&5
6185sed 's/^/| /' conftest.$ac_ext >&5
6186
6187	ac_cv_prog_f77_g=no
6188fi
6189
6190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6191
6192fi
6193{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6194echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6195if test "$ac_test_FFLAGS" = set; then
6196  FFLAGS=$ac_save_FFLAGS
6197elif test $ac_cv_prog_f77_g = yes; then
6198  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6199    FFLAGS="-g -O2"
6200  else
6201    FFLAGS="-g"
6202  fi
6203else
6204  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6205    FFLAGS="-O2"
6206  else
6207    FFLAGS=
6208  fi
6209fi
6210
6211G77=`test $ac_compiler_gnu = yes && echo yes`
6212ac_ext=c
6213ac_cpp='$CPP $CPPFLAGS'
6214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6216ac_compiler_gnu=$ac_cv_c_compiler_gnu
6217
6218
6219
6220# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6221# find the maximum length of command line arguments
6222{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6223echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6224if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6225  echo $ECHO_N "(cached) $ECHO_C" >&6
6226else
6227    i=0
6228  teststring="ABCD"
6229
6230  case $build_os in
6231  msdosdjgpp*)
6232    # On DJGPP, this test can blow up pretty badly due to problems in libc
6233    # (any single argument exceeding 2000 bytes causes a buffer overrun
6234    # during glob expansion).  Even if it were fixed, the result of this
6235    # check would be larger than it should be.
6236    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6237    ;;
6238
6239  gnu*)
6240    # Under GNU Hurd, this test is not required because there is
6241    # no limit to the length of command line arguments.
6242    # Libtool will interpret -1 as no limit whatsoever
6243    lt_cv_sys_max_cmd_len=-1;
6244    ;;
6245
6246  cygwin* | mingw*)
6247    # On Win9x/ME, this test blows up -- it succeeds, but takes
6248    # about 5 minutes as the teststring grows exponentially.
6249    # Worse, since 9x/ME are not pre-emptively multitasking,
6250    # you end up with a "frozen" computer, even though with patience
6251    # the test eventually succeeds (with a max line length of 256k).
6252    # Instead, let's just punt: use the minimum linelength reported by
6253    # all of the supported platforms: 8192 (on NT/2K/XP).
6254    lt_cv_sys_max_cmd_len=8192;
6255    ;;
6256
6257  amigaos*)
6258    # On AmigaOS with pdksh, this test takes hours, literally.
6259    # So we just punt and use a minimum line length of 8192.
6260    lt_cv_sys_max_cmd_len=8192;
6261    ;;
6262
6263  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6264    # This has been around since 386BSD, at least.  Likely further.
6265    if test -x /sbin/sysctl; then
6266      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6267    elif test -x /usr/sbin/sysctl; then
6268      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6269    else
6270      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6271    fi
6272    # And add a safety zone
6273    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6274    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6275    ;;
6276
6277  interix*)
6278    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6279    lt_cv_sys_max_cmd_len=196608
6280    ;;
6281
6282  osf*)
6283    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6284    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6285    # nice to cause kernel panics so lets avoid the loop below.
6286    # First set a reasonable default.
6287    lt_cv_sys_max_cmd_len=16384
6288    #
6289    if test -x /sbin/sysconfig; then
6290      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6291        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6292      esac
6293    fi
6294    ;;
6295  sco3.2v5*)
6296    lt_cv_sys_max_cmd_len=102400
6297    ;;
6298  sysv5* | sco5v6* | sysv4.2uw2*)
6299    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6300    if test -n "$kargmax"; then
6301      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6302    else
6303      lt_cv_sys_max_cmd_len=32768
6304    fi
6305    ;;
6306  *)
6307    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6308    if test -n "$lt_cv_sys_max_cmd_len"; then
6309      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6310      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6311    else
6312      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6313      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6314	       = "XX$teststring") >/dev/null 2>&1 &&
6315	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6316	      lt_cv_sys_max_cmd_len=$new_result &&
6317	      test $i != 17 # 1/2 MB should be enough
6318      do
6319        i=`expr $i + 1`
6320        teststring=$teststring$teststring
6321      done
6322      teststring=
6323      # Add a significant safety factor because C++ compilers can tack on massive
6324      # amounts of additional arguments before passing them to the linker.
6325      # It appears as though 1/2 is a usable value.
6326      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6327    fi
6328    ;;
6329  esac
6330
6331fi
6332
6333if test -n $lt_cv_sys_max_cmd_len ; then
6334  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6335echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6336else
6337  { echo "$as_me:$LINENO: result: none" >&5
6338echo "${ECHO_T}none" >&6; }
6339fi
6340
6341
6342
6343
6344
6345# Check for command to grab the raw symbol name followed by C symbol from nm.
6346{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6347echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6348if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6349  echo $ECHO_N "(cached) $ECHO_C" >&6
6350else
6351
6352# These are sane defaults that work on at least a few old systems.
6353# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6354
6355# Character class describing NM global symbol codes.
6356symcode='[BCDEGRST]'
6357
6358# Regexp to match symbols that can be accessed directly from C.
6359sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6360
6361# Transform an extracted symbol line into a proper C declaration
6362lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6363
6364# Transform an extracted symbol line into symbol name and symbol address
6365lt_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'"
6366
6367# Define system-specific variables.
6368case $host_os in
6369aix*)
6370  symcode='[BCDT]'
6371  ;;
6372cygwin* | mingw* | pw32*)
6373  symcode='[ABCDGISTW]'
6374  ;;
6375hpux*) # Its linker distinguishes data from code symbols
6376  if test "$host_cpu" = ia64; then
6377    symcode='[ABCDEGRST]'
6378  fi
6379  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6380  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'"
6381  ;;
6382linux* | k*bsd*-gnu)
6383  if test "$host_cpu" = ia64; then
6384    symcode='[ABCDGIRSTW]'
6385    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6386    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'"
6387  fi
6388  ;;
6389irix* | nonstopux*)
6390  symcode='[BCDEGRST]'
6391  ;;
6392osf*)
6393  symcode='[BCDEGQRST]'
6394  ;;
6395solaris*)
6396  symcode='[BDRT]'
6397  ;;
6398sco3.2v5*)
6399  symcode='[DT]'
6400  ;;
6401sysv4.2uw2*)
6402  symcode='[DT]'
6403  ;;
6404sysv5* | sco5v6* | unixware* | OpenUNIX*)
6405  symcode='[ABDT]'
6406  ;;
6407sysv4)
6408  symcode='[DFNSTU]'
6409  ;;
6410esac
6411
6412# Handle CRLF in mingw tool chain
6413opt_cr=
6414case $build_os in
6415mingw*)
6416  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6417  ;;
6418esac
6419
6420# If we're using GNU nm, then use its standard symbol codes.
6421case `$NM -V 2>&1` in
6422*GNU* | *'with BFD'*)
6423  symcode='[ABCDGIRSTW]' ;;
6424esac
6425
6426# Try without a prefix undercore, then with it.
6427for ac_symprfx in "" "_"; do
6428
6429  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6430  symxfrm="\\1 $ac_symprfx\\2 \\2"
6431
6432  # Write the raw and C identifiers.
6433  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6434
6435  # Check to see that the pipe works correctly.
6436  pipe_works=no
6437
6438  rm -f conftest*
6439  cat > conftest.$ac_ext <<EOF
6440#ifdef __cplusplus
6441extern "C" {
6442#endif
6443char nm_test_var;
6444void nm_test_func(){}
6445#ifdef __cplusplus
6446}
6447#endif
6448int main(){nm_test_var='a';nm_test_func();return(0);}
6449EOF
6450
6451  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6452  (eval $ac_compile) 2>&5
6453  ac_status=$?
6454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455  (exit $ac_status); }; then
6456    # Now try to grab the symbols.
6457    nlist=conftest.nm
6458    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6459  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6460  ac_status=$?
6461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462  (exit $ac_status); } && test -s "$nlist"; then
6463      # Try sorting and uniquifying the output.
6464      if sort "$nlist" | uniq > "$nlist"T; then
6465	mv -f "$nlist"T "$nlist"
6466      else
6467	rm -f "$nlist"T
6468      fi
6469
6470      # Make sure that we snagged all the symbols we need.
6471      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6472	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6473	  cat <<EOF > conftest.$ac_ext
6474#ifdef __cplusplus
6475extern "C" {
6476#endif
6477
6478EOF
6479	  # Now generate the symbol file.
6480	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6481
6482	  cat <<EOF >> conftest.$ac_ext
6483#if defined (__STDC__) && __STDC__
6484# define lt_ptr_t void *
6485#else
6486# define lt_ptr_t char *
6487# define const
6488#endif
6489
6490/* The mapping between symbol names and symbols. */
6491const struct {
6492  const char *name;
6493  lt_ptr_t address;
6494}
6495lt_preloaded_symbols[] =
6496{
6497EOF
6498	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6499	  cat <<\EOF >> conftest.$ac_ext
6500  {0, (lt_ptr_t) 0}
6501};
6502
6503#ifdef __cplusplus
6504}
6505#endif
6506EOF
6507	  # Now try linking the two files.
6508	  mv conftest.$ac_objext conftstm.$ac_objext
6509	  lt_save_LIBS="$LIBS"
6510	  lt_save_CFLAGS="$CFLAGS"
6511	  LIBS="conftstm.$ac_objext"
6512	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6513	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514  (eval $ac_link) 2>&5
6515  ac_status=$?
6516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6518	    pipe_works=yes
6519	  fi
6520	  LIBS="$lt_save_LIBS"
6521	  CFLAGS="$lt_save_CFLAGS"
6522	else
6523	  echo "cannot find nm_test_func in $nlist" >&5
6524	fi
6525      else
6526	echo "cannot find nm_test_var in $nlist" >&5
6527      fi
6528    else
6529      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6530    fi
6531  else
6532    echo "$progname: failed program was:" >&5
6533    cat conftest.$ac_ext >&5
6534  fi
6535  rm -rf conftest* conftst*
6536
6537  # Do not use the global_symbol_pipe unless it works.
6538  if test "$pipe_works" = yes; then
6539    break
6540  else
6541    lt_cv_sys_global_symbol_pipe=
6542  fi
6543done
6544
6545fi
6546
6547if test -z "$lt_cv_sys_global_symbol_pipe"; then
6548  lt_cv_sys_global_symbol_to_cdecl=
6549fi
6550if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6551  { echo "$as_me:$LINENO: result: failed" >&5
6552echo "${ECHO_T}failed" >&6; }
6553else
6554  { echo "$as_me:$LINENO: result: ok" >&5
6555echo "${ECHO_T}ok" >&6; }
6556fi
6557
6558{ echo "$as_me:$LINENO: checking for objdir" >&5
6559echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6560if test "${lt_cv_objdir+set}" = set; then
6561  echo $ECHO_N "(cached) $ECHO_C" >&6
6562else
6563  rm -f .libs 2>/dev/null
6564mkdir .libs 2>/dev/null
6565if test -d .libs; then
6566  lt_cv_objdir=.libs
6567else
6568  # MS-DOS does not allow filenames that begin with a dot.
6569  lt_cv_objdir=_libs
6570fi
6571rmdir .libs 2>/dev/null
6572fi
6573{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6574echo "${ECHO_T}$lt_cv_objdir" >&6; }
6575objdir=$lt_cv_objdir
6576
6577
6578
6579
6580
6581case $host_os in
6582aix3*)
6583  # AIX sometimes has problems with the GCC collect2 program.  For some
6584  # reason, if we set the COLLECT_NAMES environment variable, the problems
6585  # vanish in a puff of smoke.
6586  if test "X${COLLECT_NAMES+set}" != Xset; then
6587    COLLECT_NAMES=
6588    export COLLECT_NAMES
6589  fi
6590  ;;
6591esac
6592
6593# Sed substitution that helps us do robust quoting.  It backslashifies
6594# metacharacters that are still active within double-quoted strings.
6595Xsed='sed -e 1s/^X//'
6596sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6597
6598# Same as above, but do not quote variable references.
6599double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6600
6601# Sed substitution to delay expansion of an escaped shell variable in a
6602# double_quote_subst'ed string.
6603delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6604
6605# Sed substitution to avoid accidental globbing in evaled expressions
6606no_glob_subst='s/\*/\\\*/g'
6607
6608# Constants:
6609rm="rm -f"
6610
6611# Global variables:
6612default_ofile=libtool
6613can_build_shared=yes
6614
6615# All known linkers require a `.a' archive for static linking (except MSVC,
6616# which needs '.lib').
6617libext=a
6618ltmain="$ac_aux_dir/ltmain.sh"
6619ofile="$default_ofile"
6620with_gnu_ld="$lt_cv_prog_gnu_ld"
6621
6622if test -n "$ac_tool_prefix"; then
6623  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6624set dummy ${ac_tool_prefix}ar; ac_word=$2
6625{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627if test "${ac_cv_prog_AR+set}" = set; then
6628  echo $ECHO_N "(cached) $ECHO_C" >&6
6629else
6630  if test -n "$AR"; then
6631  ac_cv_prog_AR="$AR" # Let the user override the test.
6632else
6633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634for as_dir in $PATH
6635do
6636  IFS=$as_save_IFS
6637  test -z "$as_dir" && as_dir=.
6638  for ac_exec_ext in '' $ac_executable_extensions; do
6639  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640    ac_cv_prog_AR="${ac_tool_prefix}ar"
6641    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6642    break 2
6643  fi
6644done
6645done
6646IFS=$as_save_IFS
6647
6648fi
6649fi
6650AR=$ac_cv_prog_AR
6651if test -n "$AR"; then
6652  { echo "$as_me:$LINENO: result: $AR" >&5
6653echo "${ECHO_T}$AR" >&6; }
6654else
6655  { echo "$as_me:$LINENO: result: no" >&5
6656echo "${ECHO_T}no" >&6; }
6657fi
6658
6659
6660fi
6661if test -z "$ac_cv_prog_AR"; then
6662  ac_ct_AR=$AR
6663  # Extract the first word of "ar", so it can be a program name with args.
6664set dummy ar; ac_word=$2
6665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6668  echo $ECHO_N "(cached) $ECHO_C" >&6
6669else
6670  if test -n "$ac_ct_AR"; then
6671  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6672else
6673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674for as_dir in $PATH
6675do
6676  IFS=$as_save_IFS
6677  test -z "$as_dir" && as_dir=.
6678  for ac_exec_ext in '' $ac_executable_extensions; do
6679  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6680    ac_cv_prog_ac_ct_AR="ar"
6681    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682    break 2
6683  fi
6684done
6685done
6686IFS=$as_save_IFS
6687
6688fi
6689fi
6690ac_ct_AR=$ac_cv_prog_ac_ct_AR
6691if test -n "$ac_ct_AR"; then
6692  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6693echo "${ECHO_T}$ac_ct_AR" >&6; }
6694else
6695  { echo "$as_me:$LINENO: result: no" >&5
6696echo "${ECHO_T}no" >&6; }
6697fi
6698
6699  if test "x$ac_ct_AR" = x; then
6700    AR="false"
6701  else
6702    case $cross_compiling:$ac_tool_warned in
6703yes:)
6704{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6705whose name does not start with the host triplet.  If you think this
6706configuration is useful to you, please write to autoconf@gnu.org." >&5
6707echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6708whose name does not start with the host triplet.  If you think this
6709configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6710ac_tool_warned=yes ;;
6711esac
6712    AR=$ac_ct_AR
6713  fi
6714else
6715  AR="$ac_cv_prog_AR"
6716fi
6717
6718if test -n "$ac_tool_prefix"; then
6719  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6720set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6721{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723if test "${ac_cv_prog_RANLIB+set}" = set; then
6724  echo $ECHO_N "(cached) $ECHO_C" >&6
6725else
6726  if test -n "$RANLIB"; then
6727  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6728else
6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732  IFS=$as_save_IFS
6733  test -z "$as_dir" && as_dir=.
6734  for ac_exec_ext in '' $ac_executable_extensions; do
6735  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6737    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738    break 2
6739  fi
6740done
6741done
6742IFS=$as_save_IFS
6743
6744fi
6745fi
6746RANLIB=$ac_cv_prog_RANLIB
6747if test -n "$RANLIB"; then
6748  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6749echo "${ECHO_T}$RANLIB" >&6; }
6750else
6751  { echo "$as_me:$LINENO: result: no" >&5
6752echo "${ECHO_T}no" >&6; }
6753fi
6754
6755
6756fi
6757if test -z "$ac_cv_prog_RANLIB"; then
6758  ac_ct_RANLIB=$RANLIB
6759  # Extract the first word of "ranlib", so it can be a program name with args.
6760set dummy ranlib; ac_word=$2
6761{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6764  echo $ECHO_N "(cached) $ECHO_C" >&6
6765else
6766  if test -n "$ac_ct_RANLIB"; then
6767  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6768else
6769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772  IFS=$as_save_IFS
6773  test -z "$as_dir" && as_dir=.
6774  for ac_exec_ext in '' $ac_executable_extensions; do
6775  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776    ac_cv_prog_ac_ct_RANLIB="ranlib"
6777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778    break 2
6779  fi
6780done
6781done
6782IFS=$as_save_IFS
6783
6784fi
6785fi
6786ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6787if test -n "$ac_ct_RANLIB"; then
6788  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6789echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6790else
6791  { echo "$as_me:$LINENO: result: no" >&5
6792echo "${ECHO_T}no" >&6; }
6793fi
6794
6795  if test "x$ac_ct_RANLIB" = x; then
6796    RANLIB=":"
6797  else
6798    case $cross_compiling:$ac_tool_warned in
6799yes:)
6800{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6801whose name does not start with the host triplet.  If you think this
6802configuration is useful to you, please write to autoconf@gnu.org." >&5
6803echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6804whose name does not start with the host triplet.  If you think this
6805configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6806ac_tool_warned=yes ;;
6807esac
6808    RANLIB=$ac_ct_RANLIB
6809  fi
6810else
6811  RANLIB="$ac_cv_prog_RANLIB"
6812fi
6813
6814if test -n "$ac_tool_prefix"; then
6815  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6816set dummy ${ac_tool_prefix}strip; ac_word=$2
6817{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6819if test "${ac_cv_prog_STRIP+set}" = set; then
6820  echo $ECHO_N "(cached) $ECHO_C" >&6
6821else
6822  if test -n "$STRIP"; then
6823  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6824else
6825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826for as_dir in $PATH
6827do
6828  IFS=$as_save_IFS
6829  test -z "$as_dir" && as_dir=.
6830  for ac_exec_ext in '' $ac_executable_extensions; do
6831  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6833    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834    break 2
6835  fi
6836done
6837done
6838IFS=$as_save_IFS
6839
6840fi
6841fi
6842STRIP=$ac_cv_prog_STRIP
6843if test -n "$STRIP"; then
6844  { echo "$as_me:$LINENO: result: $STRIP" >&5
6845echo "${ECHO_T}$STRIP" >&6; }
6846else
6847  { echo "$as_me:$LINENO: result: no" >&5
6848echo "${ECHO_T}no" >&6; }
6849fi
6850
6851
6852fi
6853if test -z "$ac_cv_prog_STRIP"; then
6854  ac_ct_STRIP=$STRIP
6855  # Extract the first word of "strip", so it can be a program name with args.
6856set dummy strip; ac_word=$2
6857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6860  echo $ECHO_N "(cached) $ECHO_C" >&6
6861else
6862  if test -n "$ac_ct_STRIP"; then
6863  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6864else
6865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866for as_dir in $PATH
6867do
6868  IFS=$as_save_IFS
6869  test -z "$as_dir" && as_dir=.
6870  for ac_exec_ext in '' $ac_executable_extensions; do
6871  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872    ac_cv_prog_ac_ct_STRIP="strip"
6873    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874    break 2
6875  fi
6876done
6877done
6878IFS=$as_save_IFS
6879
6880fi
6881fi
6882ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6883if test -n "$ac_ct_STRIP"; then
6884  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6885echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6886else
6887  { echo "$as_me:$LINENO: result: no" >&5
6888echo "${ECHO_T}no" >&6; }
6889fi
6890
6891  if test "x$ac_ct_STRIP" = x; then
6892    STRIP=":"
6893  else
6894    case $cross_compiling:$ac_tool_warned in
6895yes:)
6896{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6897whose name does not start with the host triplet.  If you think this
6898configuration is useful to you, please write to autoconf@gnu.org." >&5
6899echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6900whose name does not start with the host triplet.  If you think this
6901configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6902ac_tool_warned=yes ;;
6903esac
6904    STRIP=$ac_ct_STRIP
6905  fi
6906else
6907  STRIP="$ac_cv_prog_STRIP"
6908fi
6909
6910
6911old_CC="$CC"
6912old_CFLAGS="$CFLAGS"
6913
6914# Set sane defaults for various variables
6915test -z "$AR" && AR=ar
6916test -z "$AR_FLAGS" && AR_FLAGS=cru
6917test -z "$AS" && AS=as
6918test -z "$CC" && CC=cc
6919test -z "$LTCC" && LTCC=$CC
6920test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6921test -z "$DLLTOOL" && DLLTOOL=dlltool
6922test -z "$LD" && LD=ld
6923test -z "$LN_S" && LN_S="ln -s"
6924test -z "$MAGIC_CMD" && MAGIC_CMD=file
6925test -z "$NM" && NM=nm
6926test -z "$SED" && SED=sed
6927test -z "$OBJDUMP" && OBJDUMP=objdump
6928test -z "$RANLIB" && RANLIB=:
6929test -z "$STRIP" && STRIP=:
6930test -z "$ac_objext" && ac_objext=o
6931
6932# Determine commands to create old-style static archives.
6933old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6934old_postinstall_cmds='chmod 644 $oldlib'
6935old_postuninstall_cmds=
6936
6937if test -n "$RANLIB"; then
6938  case $host_os in
6939  openbsd*)
6940    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6941    ;;
6942  *)
6943    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6944    ;;
6945  esac
6946  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6947fi
6948
6949for cc_temp in $compiler""; do
6950  case $cc_temp in
6951    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6952    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6953    \-*) ;;
6954    *) break;;
6955  esac
6956done
6957cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6958
6959
6960# Only perform the check for file, if the check method requires it
6961case $deplibs_check_method in
6962file_magic*)
6963  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6964    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6965echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6966if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6967  echo $ECHO_N "(cached) $ECHO_C" >&6
6968else
6969  case $MAGIC_CMD in
6970[\\/*] |  ?:[\\/]*)
6971  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6972  ;;
6973*)
6974  lt_save_MAGIC_CMD="$MAGIC_CMD"
6975  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6976  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6977  for ac_dir in $ac_dummy; do
6978    IFS="$lt_save_ifs"
6979    test -z "$ac_dir" && ac_dir=.
6980    if test -f $ac_dir/${ac_tool_prefix}file; then
6981      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6982      if test -n "$file_magic_test_file"; then
6983	case $deplibs_check_method in
6984	"file_magic "*)
6985	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6986	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6987	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6988	    $EGREP "$file_magic_regex" > /dev/null; then
6989	    :
6990	  else
6991	    cat <<EOF 1>&2
6992
6993*** Warning: the command libtool uses to detect shared libraries,
6994*** $file_magic_cmd, produces output that libtool cannot recognize.
6995*** The result is that libtool may fail to recognize shared libraries
6996*** as such.  This will affect the creation of libtool libraries that
6997*** depend on shared libraries, but programs linked with such libtool
6998*** libraries will work regardless of this problem.  Nevertheless, you
6999*** may want to report the problem to your system manager and/or to
7000*** bug-libtool@gnu.org
7001
7002EOF
7003	  fi ;;
7004	esac
7005      fi
7006      break
7007    fi
7008  done
7009  IFS="$lt_save_ifs"
7010  MAGIC_CMD="$lt_save_MAGIC_CMD"
7011  ;;
7012esac
7013fi
7014
7015MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7016if test -n "$MAGIC_CMD"; then
7017  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7018echo "${ECHO_T}$MAGIC_CMD" >&6; }
7019else
7020  { echo "$as_me:$LINENO: result: no" >&5
7021echo "${ECHO_T}no" >&6; }
7022fi
7023
7024if test -z "$lt_cv_path_MAGIC_CMD"; then
7025  if test -n "$ac_tool_prefix"; then
7026    { echo "$as_me:$LINENO: checking for file" >&5
7027echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7028if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7029  echo $ECHO_N "(cached) $ECHO_C" >&6
7030else
7031  case $MAGIC_CMD in
7032[\\/*] |  ?:[\\/]*)
7033  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7034  ;;
7035*)
7036  lt_save_MAGIC_CMD="$MAGIC_CMD"
7037  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7038  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7039  for ac_dir in $ac_dummy; do
7040    IFS="$lt_save_ifs"
7041    test -z "$ac_dir" && ac_dir=.
7042    if test -f $ac_dir/file; then
7043      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7044      if test -n "$file_magic_test_file"; then
7045	case $deplibs_check_method in
7046	"file_magic "*)
7047	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7048	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7049	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7050	    $EGREP "$file_magic_regex" > /dev/null; then
7051	    :
7052	  else
7053	    cat <<EOF 1>&2
7054
7055*** Warning: the command libtool uses to detect shared libraries,
7056*** $file_magic_cmd, produces output that libtool cannot recognize.
7057*** The result is that libtool may fail to recognize shared libraries
7058*** as such.  This will affect the creation of libtool libraries that
7059*** depend on shared libraries, but programs linked with such libtool
7060*** libraries will work regardless of this problem.  Nevertheless, you
7061*** may want to report the problem to your system manager and/or to
7062*** bug-libtool@gnu.org
7063
7064EOF
7065	  fi ;;
7066	esac
7067      fi
7068      break
7069    fi
7070  done
7071  IFS="$lt_save_ifs"
7072  MAGIC_CMD="$lt_save_MAGIC_CMD"
7073  ;;
7074esac
7075fi
7076
7077MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7078if test -n "$MAGIC_CMD"; then
7079  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7080echo "${ECHO_T}$MAGIC_CMD" >&6; }
7081else
7082  { echo "$as_me:$LINENO: result: no" >&5
7083echo "${ECHO_T}no" >&6; }
7084fi
7085
7086  else
7087    MAGIC_CMD=:
7088  fi
7089fi
7090
7091  fi
7092  ;;
7093esac
7094
7095
7096  case $host_os in
7097    rhapsody* | darwin*)
7098    if test -n "$ac_tool_prefix"; then
7099  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7100set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7101{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7103if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7104  echo $ECHO_N "(cached) $ECHO_C" >&6
7105else
7106  if test -n "$DSYMUTIL"; then
7107  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7108else
7109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110for as_dir in $PATH
7111do
7112  IFS=$as_save_IFS
7113  test -z "$as_dir" && as_dir=.
7114  for ac_exec_ext in '' $ac_executable_extensions; do
7115  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7116    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7117    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118    break 2
7119  fi
7120done
7121done
7122IFS=$as_save_IFS
7123
7124fi
7125fi
7126DSYMUTIL=$ac_cv_prog_DSYMUTIL
7127if test -n "$DSYMUTIL"; then
7128  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7129echo "${ECHO_T}$DSYMUTIL" >&6; }
7130else
7131  { echo "$as_me:$LINENO: result: no" >&5
7132echo "${ECHO_T}no" >&6; }
7133fi
7134
7135
7136fi
7137if test -z "$ac_cv_prog_DSYMUTIL"; then
7138  ac_ct_DSYMUTIL=$DSYMUTIL
7139  # Extract the first word of "dsymutil", so it can be a program name with args.
7140set dummy dsymutil; ac_word=$2
7141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7143if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7144  echo $ECHO_N "(cached) $ECHO_C" >&6
7145else
7146  if test -n "$ac_ct_DSYMUTIL"; then
7147  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7148else
7149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152  IFS=$as_save_IFS
7153  test -z "$as_dir" && as_dir=.
7154  for ac_exec_ext in '' $ac_executable_extensions; do
7155  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7156    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7157    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158    break 2
7159  fi
7160done
7161done
7162IFS=$as_save_IFS
7163
7164fi
7165fi
7166ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7167if test -n "$ac_ct_DSYMUTIL"; then
7168  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7169echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7170else
7171  { echo "$as_me:$LINENO: result: no" >&5
7172echo "${ECHO_T}no" >&6; }
7173fi
7174
7175  if test "x$ac_ct_DSYMUTIL" = x; then
7176    DSYMUTIL=":"
7177  else
7178    case $cross_compiling:$ac_tool_warned in
7179yes:)
7180{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7181whose name does not start with the host triplet.  If you think this
7182configuration is useful to you, please write to autoconf@gnu.org." >&5
7183echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7184whose name does not start with the host triplet.  If you think this
7185configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7186ac_tool_warned=yes ;;
7187esac
7188    DSYMUTIL=$ac_ct_DSYMUTIL
7189  fi
7190else
7191  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7192fi
7193
7194    if test -n "$ac_tool_prefix"; then
7195  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7196set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7197{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7199if test "${ac_cv_prog_NMEDIT+set}" = set; then
7200  echo $ECHO_N "(cached) $ECHO_C" >&6
7201else
7202  if test -n "$NMEDIT"; then
7203  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7204else
7205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206for as_dir in $PATH
7207do
7208  IFS=$as_save_IFS
7209  test -z "$as_dir" && as_dir=.
7210  for ac_exec_ext in '' $ac_executable_extensions; do
7211  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7213    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214    break 2
7215  fi
7216done
7217done
7218IFS=$as_save_IFS
7219
7220fi
7221fi
7222NMEDIT=$ac_cv_prog_NMEDIT
7223if test -n "$NMEDIT"; then
7224  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7225echo "${ECHO_T}$NMEDIT" >&6; }
7226else
7227  { echo "$as_me:$LINENO: result: no" >&5
7228echo "${ECHO_T}no" >&6; }
7229fi
7230
7231
7232fi
7233if test -z "$ac_cv_prog_NMEDIT"; then
7234  ac_ct_NMEDIT=$NMEDIT
7235  # Extract the first word of "nmedit", so it can be a program name with args.
7236set dummy nmedit; ac_word=$2
7237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7239if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7240  echo $ECHO_N "(cached) $ECHO_C" >&6
7241else
7242  if test -n "$ac_ct_NMEDIT"; then
7243  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7244else
7245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246for as_dir in $PATH
7247do
7248  IFS=$as_save_IFS
7249  test -z "$as_dir" && as_dir=.
7250  for ac_exec_ext in '' $ac_executable_extensions; do
7251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7252    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7253    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7254    break 2
7255  fi
7256done
7257done
7258IFS=$as_save_IFS
7259
7260fi
7261fi
7262ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7263if test -n "$ac_ct_NMEDIT"; then
7264  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7265echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7266else
7267  { echo "$as_me:$LINENO: result: no" >&5
7268echo "${ECHO_T}no" >&6; }
7269fi
7270
7271  if test "x$ac_ct_NMEDIT" = x; then
7272    NMEDIT=":"
7273  else
7274    case $cross_compiling:$ac_tool_warned in
7275yes:)
7276{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7277whose name does not start with the host triplet.  If you think this
7278configuration is useful to you, please write to autoconf@gnu.org." >&5
7279echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7280whose name does not start with the host triplet.  If you think this
7281configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7282ac_tool_warned=yes ;;
7283esac
7284    NMEDIT=$ac_ct_NMEDIT
7285  fi
7286else
7287  NMEDIT="$ac_cv_prog_NMEDIT"
7288fi
7289
7290
7291    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7292echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7293if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7294  echo $ECHO_N "(cached) $ECHO_C" >&6
7295else
7296  lt_cv_apple_cc_single_mod=no
7297      if test -z "${LT_MULTI_MODULE}"; then
7298   # By default we will add the -single_module flag. You can override
7299   # by either setting the environment variable LT_MULTI_MODULE
7300   # non-empty at configure time, or by adding -multi_module to the
7301   # link flags.
7302   echo "int foo(void){return 1;}" > conftest.c
7303   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7304     -dynamiclib ${wl}-single_module conftest.c
7305   if test -f libconftest.dylib; then
7306     lt_cv_apple_cc_single_mod=yes
7307     rm -rf libconftest.dylib*
7308   fi
7309   rm conftest.c
7310      fi
7311fi
7312{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7313echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7314    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7315echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7316if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7317  echo $ECHO_N "(cached) $ECHO_C" >&6
7318else
7319  lt_cv_ld_exported_symbols_list=no
7320      save_LDFLAGS=$LDFLAGS
7321      echo "_main" > conftest.sym
7322      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7323      cat >conftest.$ac_ext <<_ACEOF
7324/* confdefs.h.  */
7325_ACEOF
7326cat confdefs.h >>conftest.$ac_ext
7327cat >>conftest.$ac_ext <<_ACEOF
7328/* end confdefs.h.  */
7329
7330int
7331main ()
7332{
7333
7334  ;
7335  return 0;
7336}
7337_ACEOF
7338rm -f conftest.$ac_objext conftest$ac_exeext
7339if { (ac_try="$ac_link"
7340case "(($ac_try" in
7341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7342  *) ac_try_echo=$ac_try;;
7343esac
7344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7345  (eval "$ac_link") 2>conftest.er1
7346  ac_status=$?
7347  grep -v '^ *+' conftest.er1 >conftest.err
7348  rm -f conftest.er1
7349  cat conftest.err >&5
7350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351  (exit $ac_status); } && {
7352	 test -z "$ac_c_werror_flag" ||
7353	 test ! -s conftest.err
7354       } && test -s conftest$ac_exeext &&
7355       $as_test_x conftest$ac_exeext; then
7356  lt_cv_ld_exported_symbols_list=yes
7357else
7358  echo "$as_me: failed program was:" >&5
7359sed 's/^/| /' conftest.$ac_ext >&5
7360
7361	lt_cv_ld_exported_symbols_list=no
7362fi
7363
7364rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7365      conftest$ac_exeext conftest.$ac_ext
7366   LDFLAGS="$save_LDFLAGS"
7367
7368fi
7369{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7370echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7371    case $host_os in
7372    rhapsody* | darwin1.[0123])
7373      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7374    darwin1.*)
7375     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7376    darwin*)
7377      # if running on 10.5 or later, the deployment target defaults
7378      # to the OS version, if on x86, and 10.4, the deployment
7379      # target defaults to 10.4. Don't you love it?
7380      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7381   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7382     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7383   10.[012]*)
7384     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7385   10.*)
7386     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7387      esac
7388    ;;
7389  esac
7390    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7391      _lt_dar_single_mod='$single_module'
7392    fi
7393    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7394      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7395    else
7396      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7397    fi
7398    if test "$DSYMUTIL" != ":"; then
7399      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7400    else
7401      _lt_dsymutil=
7402    fi
7403    ;;
7404  esac
7405
7406
7407enable_dlopen=no
7408enable_win32_dll=no
7409
7410# Check whether --enable-libtool-lock was given.
7411if test "${enable_libtool_lock+set}" = set; then
7412  enableval=$enable_libtool_lock;
7413fi
7414
7415test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7416
7417
7418# Check whether --with-pic was given.
7419if test "${with_pic+set}" = set; then
7420  withval=$with_pic; pic_mode="$withval"
7421else
7422  pic_mode=default
7423fi
7424
7425test -z "$pic_mode" && pic_mode=default
7426
7427# Use C for the default configuration in the libtool script
7428tagname=
7429lt_save_CC="$CC"
7430ac_ext=c
7431ac_cpp='$CPP $CPPFLAGS'
7432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7434ac_compiler_gnu=$ac_cv_c_compiler_gnu
7435
7436
7437# Source file extension for C test sources.
7438ac_ext=c
7439
7440# Object file extension for compiled C test sources.
7441objext=o
7442objext=$objext
7443
7444# Code to be used in simple compile tests
7445lt_simple_compile_test_code="int some_variable = 0;"
7446
7447# Code to be used in simple link tests
7448lt_simple_link_test_code='int main(){return(0);}'
7449
7450
7451# If no C compiler was specified, use CC.
7452LTCC=${LTCC-"$CC"}
7453
7454# If no C compiler flags were specified, use CFLAGS.
7455LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7456
7457# Allow CC to be a program name with arguments.
7458compiler=$CC
7459
7460
7461# save warnings/boilerplate of simple test code
7462ac_outfile=conftest.$ac_objext
7463echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7464eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7465_lt_compiler_boilerplate=`cat conftest.err`
7466$rm conftest*
7467
7468ac_outfile=conftest.$ac_objext
7469echo "$lt_simple_link_test_code" >conftest.$ac_ext
7470eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7471_lt_linker_boilerplate=`cat conftest.err`
7472$rm -r conftest*
7473
7474
7475
7476lt_prog_compiler_no_builtin_flag=
7477
7478if test "$GCC" = yes; then
7479  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7480
7481
7482{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7483echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7484if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7485  echo $ECHO_N "(cached) $ECHO_C" >&6
7486else
7487  lt_cv_prog_compiler_rtti_exceptions=no
7488  ac_outfile=conftest.$ac_objext
7489   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7490   lt_compiler_flag="-fno-rtti -fno-exceptions"
7491   # Insert the option either (1) after the last *FLAGS variable, or
7492   # (2) before a word containing "conftest.", or (3) at the end.
7493   # Note that $ac_compile itself does not contain backslashes and begins
7494   # with a dollar sign (not a hyphen), so the echo should work correctly.
7495   # The option is referenced via a variable to avoid confusing sed.
7496   lt_compile=`echo "$ac_compile" | $SED \
7497   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7498   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7499   -e 's:$: $lt_compiler_flag:'`
7500   (eval echo "\"\$as_me:7500: $lt_compile\"" >&5)
7501   (eval "$lt_compile" 2>conftest.err)
7502   ac_status=$?
7503   cat conftest.err >&5
7504   echo "$as_me:7504: \$? = $ac_status" >&5
7505   if (exit $ac_status) && test -s "$ac_outfile"; then
7506     # The compiler can only warn and ignore the option if not recognized
7507     # So say no if there are warnings other than the usual output.
7508     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7509     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7510     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7511       lt_cv_prog_compiler_rtti_exceptions=yes
7512     fi
7513   fi
7514   $rm conftest*
7515
7516fi
7517{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7518echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7519
7520if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7521    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7522else
7523    :
7524fi
7525
7526fi
7527
7528lt_prog_compiler_wl=
7529lt_prog_compiler_pic=
7530lt_prog_compiler_static=
7531
7532{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7533echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7534
7535  if test "$GCC" = yes; then
7536    lt_prog_compiler_wl='-Wl,'
7537    lt_prog_compiler_static='-static'
7538
7539    case $host_os in
7540      aix*)
7541      # All AIX code is PIC.
7542      if test "$host_cpu" = ia64; then
7543	# AIX 5 now supports IA64 processor
7544	lt_prog_compiler_static='-Bstatic'
7545      fi
7546      ;;
7547
7548    amigaos*)
7549      # FIXME: we need at least 68020 code to build shared libraries, but
7550      # adding the `-m68020' flag to GCC prevents building anything better,
7551      # like `-m68040'.
7552      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7553      ;;
7554
7555    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7556      # PIC is the default for these OSes.
7557      ;;
7558
7559    mingw* | cygwin* | pw32* | os2*)
7560      # This hack is so that the source file can tell whether it is being
7561      # built for inclusion in a dll (and should export symbols for example).
7562      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7563      # (--disable-auto-import) libraries
7564      lt_prog_compiler_pic='-DDLL_EXPORT'
7565      ;;
7566
7567    darwin* | rhapsody*)
7568      # PIC is the default on this platform
7569      # Common symbols not allowed in MH_DYLIB files
7570      lt_prog_compiler_pic='-fno-common'
7571      ;;
7572
7573    interix[3-9]*)
7574      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7575      # Instead, we relocate shared libraries at runtime.
7576      ;;
7577
7578    msdosdjgpp*)
7579      # Just because we use GCC doesn't mean we suddenly get shared libraries
7580      # on systems that don't support them.
7581      lt_prog_compiler_can_build_shared=no
7582      enable_shared=no
7583      ;;
7584
7585    sysv4*MP*)
7586      if test -d /usr/nec; then
7587	lt_prog_compiler_pic=-Kconform_pic
7588      fi
7589      ;;
7590
7591    hpux*)
7592      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7593      # not for PA HP-UX.
7594      case $host_cpu in
7595      hppa*64*|ia64*)
7596	# +Z the default
7597	;;
7598      *)
7599	lt_prog_compiler_pic='-fPIC'
7600	;;
7601      esac
7602      ;;
7603
7604    *)
7605      lt_prog_compiler_pic='-fPIC'
7606      ;;
7607    esac
7608  else
7609    # PORTME Check for flag to pass linker flags through the system compiler.
7610    case $host_os in
7611    aix*)
7612      lt_prog_compiler_wl='-Wl,'
7613      if test "$host_cpu" = ia64; then
7614	# AIX 5 now supports IA64 processor
7615	lt_prog_compiler_static='-Bstatic'
7616      else
7617	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7618      fi
7619      ;;
7620      darwin*)
7621        # PIC is the default on this platform
7622        # Common symbols not allowed in MH_DYLIB files
7623       case $cc_basename in
7624         xlc*)
7625         lt_prog_compiler_pic='-qnocommon'
7626         lt_prog_compiler_wl='-Wl,'
7627         ;;
7628       esac
7629       ;;
7630
7631    mingw* | cygwin* | pw32* | os2*)
7632      # This hack is so that the source file can tell whether it is being
7633      # built for inclusion in a dll (and should export symbols for example).
7634      lt_prog_compiler_pic='-DDLL_EXPORT'
7635      ;;
7636
7637    hpux9* | hpux10* | hpux11*)
7638      lt_prog_compiler_wl='-Wl,'
7639      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7640      # not for PA HP-UX.
7641      case $host_cpu in
7642      hppa*64*|ia64*)
7643	# +Z the default
7644	;;
7645      *)
7646	lt_prog_compiler_pic='+Z'
7647	;;
7648      esac
7649      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7650      lt_prog_compiler_static='${wl}-a ${wl}archive'
7651      ;;
7652
7653    irix5* | irix6* | nonstopux*)
7654      lt_prog_compiler_wl='-Wl,'
7655      # PIC (with -KPIC) is the default.
7656      lt_prog_compiler_static='-non_shared'
7657      ;;
7658
7659    newsos6)
7660      lt_prog_compiler_pic='-KPIC'
7661      lt_prog_compiler_static='-Bstatic'
7662      ;;
7663
7664    linux* | k*bsd*-gnu)
7665      case $cc_basename in
7666      icc* | ecc*)
7667	lt_prog_compiler_wl='-Wl,'
7668	lt_prog_compiler_pic='-KPIC'
7669	lt_prog_compiler_static='-static'
7670        ;;
7671      pgcc* | pgf77* | pgf90* | pgf95*)
7672        # Portland Group compilers (*not* the Pentium gcc compiler,
7673	# which looks to be a dead project)
7674	lt_prog_compiler_wl='-Wl,'
7675	lt_prog_compiler_pic='-fpic'
7676	lt_prog_compiler_static='-Bstatic'
7677        ;;
7678      ccc*)
7679        lt_prog_compiler_wl='-Wl,'
7680        # All Alpha code is PIC.
7681        lt_prog_compiler_static='-non_shared'
7682        ;;
7683      *)
7684        case `$CC -V 2>&1 | sed 5q` in
7685	*Sun\ C*)
7686	  # Sun C 5.9
7687	  lt_prog_compiler_pic='-KPIC'
7688	  lt_prog_compiler_static='-Bstatic'
7689	  lt_prog_compiler_wl='-Wl,'
7690	  ;;
7691	*Sun\ F*)
7692	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7693	  lt_prog_compiler_pic='-KPIC'
7694	  lt_prog_compiler_static='-Bstatic'
7695	  lt_prog_compiler_wl=''
7696	  ;;
7697	esac
7698	;;
7699      esac
7700      ;;
7701
7702    osf3* | osf4* | osf5*)
7703      lt_prog_compiler_wl='-Wl,'
7704      # All OSF/1 code is PIC.
7705      lt_prog_compiler_static='-non_shared'
7706      ;;
7707
7708    rdos*)
7709      lt_prog_compiler_static='-non_shared'
7710      ;;
7711
7712    solaris*)
7713      lt_prog_compiler_pic='-KPIC'
7714      lt_prog_compiler_static='-Bstatic'
7715      case $cc_basename in
7716      f77* | f90* | f95*)
7717	lt_prog_compiler_wl='-Qoption ld ';;
7718      *)
7719	lt_prog_compiler_wl='-Wl,';;
7720      esac
7721      ;;
7722
7723    sunos4*)
7724      lt_prog_compiler_wl='-Qoption ld '
7725      lt_prog_compiler_pic='-PIC'
7726      lt_prog_compiler_static='-Bstatic'
7727      ;;
7728
7729    sysv4 | sysv4.2uw2* | sysv4.3*)
7730      lt_prog_compiler_wl='-Wl,'
7731      lt_prog_compiler_pic='-KPIC'
7732      lt_prog_compiler_static='-Bstatic'
7733      ;;
7734
7735    sysv4*MP*)
7736      if test -d /usr/nec ;then
7737	lt_prog_compiler_pic='-Kconform_pic'
7738	lt_prog_compiler_static='-Bstatic'
7739      fi
7740      ;;
7741
7742    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7743      lt_prog_compiler_wl='-Wl,'
7744      lt_prog_compiler_pic='-KPIC'
7745      lt_prog_compiler_static='-Bstatic'
7746      ;;
7747
7748    unicos*)
7749      lt_prog_compiler_wl='-Wl,'
7750      lt_prog_compiler_can_build_shared=no
7751      ;;
7752
7753    uts4*)
7754      lt_prog_compiler_pic='-pic'
7755      lt_prog_compiler_static='-Bstatic'
7756      ;;
7757
7758    *)
7759      lt_prog_compiler_can_build_shared=no
7760      ;;
7761    esac
7762  fi
7763
7764{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7765echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7766
7767#
7768# Check to make sure the PIC flag actually works.
7769#
7770if test -n "$lt_prog_compiler_pic"; then
7771
7772{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7773echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7774if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7775  echo $ECHO_N "(cached) $ECHO_C" >&6
7776else
7777  lt_cv_prog_compiler_pic_works=no
7778  ac_outfile=conftest.$ac_objext
7779   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7780   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7781   # Insert the option either (1) after the last *FLAGS variable, or
7782   # (2) before a word containing "conftest.", or (3) at the end.
7783   # Note that $ac_compile itself does not contain backslashes and begins
7784   # with a dollar sign (not a hyphen), so the echo should work correctly.
7785   # The option is referenced via a variable to avoid confusing sed.
7786   lt_compile=`echo "$ac_compile" | $SED \
7787   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7788   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7789   -e 's:$: $lt_compiler_flag:'`
7790   (eval echo "\"\$as_me:7790: $lt_compile\"" >&5)
7791   (eval "$lt_compile" 2>conftest.err)
7792   ac_status=$?
7793   cat conftest.err >&5
7794   echo "$as_me:7794: \$? = $ac_status" >&5
7795   if (exit $ac_status) && test -s "$ac_outfile"; then
7796     # The compiler can only warn and ignore the option if not recognized
7797     # So say no if there are warnings other than the usual output.
7798     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7799     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7800     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7801       lt_cv_prog_compiler_pic_works=yes
7802     fi
7803   fi
7804   $rm conftest*
7805
7806fi
7807{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7808echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7809
7810if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7811    case $lt_prog_compiler_pic in
7812     "" | " "*) ;;
7813     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7814     esac
7815else
7816    lt_prog_compiler_pic=
7817     lt_prog_compiler_can_build_shared=no
7818fi
7819
7820fi
7821case $host_os in
7822  # For platforms which do not support PIC, -DPIC is meaningless:
7823  *djgpp*)
7824    lt_prog_compiler_pic=
7825    ;;
7826  *)
7827    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7828    ;;
7829esac
7830
7831#
7832# Check to make sure the static flag actually works.
7833#
7834wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7835{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7836echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7837if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7838  echo $ECHO_N "(cached) $ECHO_C" >&6
7839else
7840  lt_cv_prog_compiler_static_works=no
7841   save_LDFLAGS="$LDFLAGS"
7842   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7843   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7844   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7845     # The linker can only warn and ignore the option if not recognized
7846     # So say no if there are warnings
7847     if test -s conftest.err; then
7848       # Append any errors to the config.log.
7849       cat conftest.err 1>&5
7850       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7851       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7852       if diff conftest.exp conftest.er2 >/dev/null; then
7853         lt_cv_prog_compiler_static_works=yes
7854       fi
7855     else
7856       lt_cv_prog_compiler_static_works=yes
7857     fi
7858   fi
7859   $rm -r conftest*
7860   LDFLAGS="$save_LDFLAGS"
7861
7862fi
7863{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7864echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7865
7866if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7867    :
7868else
7869    lt_prog_compiler_static=
7870fi
7871
7872
7873{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7874echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7875if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7876  echo $ECHO_N "(cached) $ECHO_C" >&6
7877else
7878  lt_cv_prog_compiler_c_o=no
7879   $rm -r conftest 2>/dev/null
7880   mkdir conftest
7881   cd conftest
7882   mkdir out
7883   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7884
7885   lt_compiler_flag="-o out/conftest2.$ac_objext"
7886   # Insert the option either (1) after the last *FLAGS variable, or
7887   # (2) before a word containing "conftest.", or (3) at the end.
7888   # Note that $ac_compile itself does not contain backslashes and begins
7889   # with a dollar sign (not a hyphen), so the echo should work correctly.
7890   lt_compile=`echo "$ac_compile" | $SED \
7891   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7892   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7893   -e 's:$: $lt_compiler_flag:'`
7894   (eval echo "\"\$as_me:7894: $lt_compile\"" >&5)
7895   (eval "$lt_compile" 2>out/conftest.err)
7896   ac_status=$?
7897   cat out/conftest.err >&5
7898   echo "$as_me:7898: \$? = $ac_status" >&5
7899   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7900   then
7901     # The compiler can only warn and ignore the option if not recognized
7902     # So say no if there are warnings
7903     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7904     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7905     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7906       lt_cv_prog_compiler_c_o=yes
7907     fi
7908   fi
7909   chmod u+w . 2>&5
7910   $rm conftest*
7911   # SGI C++ compiler will create directory out/ii_files/ for
7912   # template instantiation
7913   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7914   $rm out/* && rmdir out
7915   cd ..
7916   rmdir conftest
7917   $rm conftest*
7918
7919fi
7920{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7921echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7922
7923
7924hard_links="nottested"
7925if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7926  # do not overwrite the value of need_locks provided by the user
7927  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7928echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7929  hard_links=yes
7930  $rm conftest*
7931  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7932  touch conftest.a
7933  ln conftest.a conftest.b 2>&5 || hard_links=no
7934  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7935  { echo "$as_me:$LINENO: result: $hard_links" >&5
7936echo "${ECHO_T}$hard_links" >&6; }
7937  if test "$hard_links" = no; then
7938    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7939echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7940    need_locks=warn
7941  fi
7942else
7943  need_locks=no
7944fi
7945
7946{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7947echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7948
7949  runpath_var=
7950  allow_undefined_flag=
7951  enable_shared_with_static_runtimes=no
7952  archive_cmds=
7953  archive_expsym_cmds=
7954  old_archive_From_new_cmds=
7955  old_archive_from_expsyms_cmds=
7956  export_dynamic_flag_spec=
7957  whole_archive_flag_spec=
7958  thread_safe_flag_spec=
7959  hardcode_libdir_flag_spec=
7960  hardcode_libdir_flag_spec_ld=
7961  hardcode_libdir_separator=
7962  hardcode_direct=no
7963  hardcode_minus_L=no
7964  hardcode_shlibpath_var=unsupported
7965  link_all_deplibs=unknown
7966  hardcode_automatic=no
7967  module_cmds=
7968  module_expsym_cmds=
7969  always_export_symbols=no
7970  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7971  # include_expsyms should be a list of space-separated symbols to be *always*
7972  # included in the symbol list
7973  include_expsyms=
7974  # exclude_expsyms can be an extended regexp of symbols to exclude
7975  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7976  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7977  # as well as any symbol that contains `d'.
7978  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7979  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7980  # platforms (ab)use it in PIC code, but their linkers get confused if
7981  # the symbol is explicitly referenced.  Since portable code cannot
7982  # rely on this symbol name, it's probably fine to never include it in
7983  # preloaded symbol tables.
7984  # Exclude shared library initialization/finalization symbols.
7985  extract_expsyms_cmds=
7986  # Just being paranoid about ensuring that cc_basename is set.
7987  for cc_temp in $compiler""; do
7988  case $cc_temp in
7989    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7990    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7991    \-*) ;;
7992    *) break;;
7993  esac
7994done
7995cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7996
7997  case $host_os in
7998  cygwin* | mingw* | pw32*)
7999    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8000    # When not using gcc, we currently assume that we are using
8001    # Microsoft Visual C++.
8002    if test "$GCC" != yes; then
8003      with_gnu_ld=no
8004    fi
8005    ;;
8006  interix*)
8007    # we just hope/assume this is gcc and not c89 (= MSVC++)
8008    with_gnu_ld=yes
8009    ;;
8010  openbsd*)
8011    with_gnu_ld=no
8012    ;;
8013  esac
8014
8015  ld_shlibs=yes
8016  if test "$with_gnu_ld" = yes; then
8017    # If archive_cmds runs LD, not CC, wlarc should be empty
8018    wlarc='${wl}'
8019
8020    # Set some defaults for GNU ld with shared library support. These
8021    # are reset later if shared libraries are not supported. Putting them
8022    # here allows them to be overridden if necessary.
8023    runpath_var=LD_RUN_PATH
8024    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8025    export_dynamic_flag_spec='${wl}--export-dynamic'
8026    # ancient GNU ld didn't support --whole-archive et. al.
8027    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8028	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8029      else
8030  	whole_archive_flag_spec=
8031    fi
8032    supports_anon_versioning=no
8033    case `$LD -v 2>/dev/null` in
8034      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8035      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8036      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8037      *\ 2.11.*) ;; # other 2.11 versions
8038      *) supports_anon_versioning=yes ;;
8039    esac
8040
8041    # See if GNU ld supports shared libraries.
8042    case $host_os in
8043    aix[3-9]*)
8044      # On AIX/PPC, the GNU linker is very broken
8045      if test "$host_cpu" != ia64; then
8046	ld_shlibs=no
8047	cat <<EOF 1>&2
8048
8049*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8050*** to be unable to reliably create shared libraries on AIX.
8051*** Therefore, libtool is disabling shared libraries support.  If you
8052*** really care for shared libraries, you may want to modify your PATH
8053*** so that a non-GNU linker is found, and then restart.
8054
8055EOF
8056      fi
8057      ;;
8058
8059    amigaos*)
8060      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)'
8061      hardcode_libdir_flag_spec='-L$libdir'
8062      hardcode_minus_L=yes
8063
8064      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8065      # that the semantics of dynamic libraries on AmigaOS, at least up
8066      # to version 4, is to share data among multiple programs linked
8067      # with the same dynamic library.  Since this doesn't match the
8068      # behavior of shared libraries on other platforms, we can't use
8069      # them.
8070      ld_shlibs=no
8071      ;;
8072
8073    beos*)
8074      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8075	allow_undefined_flag=unsupported
8076	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8077	# support --undefined.  This deserves some investigation.  FIXME
8078	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8079      else
8080	ld_shlibs=no
8081      fi
8082      ;;
8083
8084    cygwin* | mingw* | pw32*)
8085      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8086      # as there is no search path for DLLs.
8087      hardcode_libdir_flag_spec='-L$libdir'
8088      allow_undefined_flag=unsupported
8089      always_export_symbols=no
8090      enable_shared_with_static_runtimes=yes
8091      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8092
8093      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8094        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8095	# If the export-symbols file already is a .def file (1st line
8096	# is EXPORTS), use it as is; otherwise, prepend...
8097	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8098	  cp $export_symbols $output_objdir/$soname.def;
8099	else
8100	  echo EXPORTS > $output_objdir/$soname.def;
8101	  cat $export_symbols >> $output_objdir/$soname.def;
8102	fi~
8103	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8104      else
8105	ld_shlibs=no
8106      fi
8107      ;;
8108
8109    interix[3-9]*)
8110      hardcode_direct=no
8111      hardcode_shlibpath_var=no
8112      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8113      export_dynamic_flag_spec='${wl}-E'
8114      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8115      # Instead, shared libraries are loaded at an image base (0x10000000 by
8116      # default) and relocated if they conflict, which is a slow very memory
8117      # consuming and fragmenting process.  To avoid this, we pick a random,
8118      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8119      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8120      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8121      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'
8122      ;;
8123
8124    gnu* | linux* | k*bsd*-gnu)
8125      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8126	tmp_addflag=
8127	case $cc_basename,$host_cpu in
8128	pgcc*)				# Portland Group C compiler
8129	  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'
8130	  tmp_addflag=' $pic_flag'
8131	  ;;
8132	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8133	  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'
8134	  tmp_addflag=' $pic_flag -Mnomain' ;;
8135	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8136	  tmp_addflag=' -i_dynamic' ;;
8137	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8138	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8139	ifc* | ifort*)			# Intel Fortran compiler
8140	  tmp_addflag=' -nofor_main' ;;
8141	esac
8142	case `$CC -V 2>&1 | sed 5q` in
8143	*Sun\ C*)			# Sun C 5.9
8144	  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'
8145	  tmp_sharedflag='-G' ;;
8146	*Sun\ F*)			# Sun Fortran 8.3
8147	  tmp_sharedflag='-G' ;;
8148	*)
8149	  tmp_sharedflag='-shared' ;;
8150	esac
8151	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8152
8153	if test $supports_anon_versioning = yes; then
8154	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8155  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8156  $echo "local: *; };" >> $output_objdir/$libname.ver~
8157	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8158	fi
8159	link_all_deplibs=no
8160      else
8161	ld_shlibs=no
8162      fi
8163      ;;
8164
8165    netbsd* | netbsdelf*-gnu)
8166      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8167	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8168	wlarc=
8169      else
8170	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8171	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8172      fi
8173      ;;
8174
8175    solaris*)
8176      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8177	ld_shlibs=no
8178	cat <<EOF 1>&2
8179
8180*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8181*** create shared libraries on Solaris systems.  Therefore, libtool
8182*** is disabling shared libraries support.  We urge you to upgrade GNU
8183*** binutils to release 2.9.1 or newer.  Another option is to modify
8184*** your PATH or compiler configuration so that the native linker is
8185*** used, and then restart.
8186
8187EOF
8188      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8189	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8190	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8191      else
8192	ld_shlibs=no
8193      fi
8194      ;;
8195
8196    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8197      case `$LD -v 2>&1` in
8198        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8199	ld_shlibs=no
8200	cat <<_LT_EOF 1>&2
8201
8202*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8203*** reliably create shared libraries on SCO systems.  Therefore, libtool
8204*** is disabling shared libraries support.  We urge you to upgrade GNU
8205*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8206*** your PATH or compiler configuration so that the native linker is
8207*** used, and then restart.
8208
8209_LT_EOF
8210	;;
8211	*)
8212	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8213	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8214	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8215	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8216	  else
8217	    ld_shlibs=no
8218	  fi
8219	;;
8220      esac
8221      ;;
8222
8223    sunos4*)
8224      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8225      wlarc=
8226      hardcode_direct=yes
8227      hardcode_shlibpath_var=no
8228      ;;
8229
8230    *)
8231      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8232	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8233	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8234      else
8235	ld_shlibs=no
8236      fi
8237      ;;
8238    esac
8239
8240    if test "$ld_shlibs" = no; then
8241      runpath_var=
8242      hardcode_libdir_flag_spec=
8243      export_dynamic_flag_spec=
8244      whole_archive_flag_spec=
8245    fi
8246  else
8247    # PORTME fill in a description of your system's linker (not GNU ld)
8248    case $host_os in
8249    aix3*)
8250      allow_undefined_flag=unsupported
8251      always_export_symbols=yes
8252      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'
8253      # Note: this linker hardcodes the directories in LIBPATH if there
8254      # are no directories specified by -L.
8255      hardcode_minus_L=yes
8256      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8257	# Neither direct hardcoding nor static linking is supported with a
8258	# broken collect2.
8259	hardcode_direct=unsupported
8260      fi
8261      ;;
8262
8263    aix[4-9]*)
8264      if test "$host_cpu" = ia64; then
8265	# On IA64, the linker does run time linking by default, so we don't
8266	# have to do anything special.
8267	aix_use_runtimelinking=no
8268	exp_sym_flag='-Bexport'
8269	no_entry_flag=""
8270      else
8271	# If we're using GNU nm, then we don't want the "-C" option.
8272	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8273	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8274	  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'
8275	else
8276	  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'
8277	fi
8278	aix_use_runtimelinking=no
8279
8280	# Test if we are trying to use run time linking or normal
8281	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8282	# need to do runtime linking.
8283	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8284	  for ld_flag in $LDFLAGS; do
8285  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8286  	    aix_use_runtimelinking=yes
8287  	    break
8288  	  fi
8289	  done
8290	  ;;
8291	esac
8292
8293	exp_sym_flag='-bexport'
8294	no_entry_flag='-bnoentry'
8295      fi
8296
8297      # When large executables or shared objects are built, AIX ld can
8298      # have problems creating the table of contents.  If linking a library
8299      # or program results in "error TOC overflow" add -mminimal-toc to
8300      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8301      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8302
8303      archive_cmds=''
8304      hardcode_direct=yes
8305      hardcode_libdir_separator=':'
8306      link_all_deplibs=yes
8307
8308      if test "$GCC" = yes; then
8309	case $host_os in aix4.[012]|aix4.[012].*)
8310	# We only want to do this on AIX 4.2 and lower, the check
8311	# below for broken collect2 doesn't work under 4.3+
8312	  collect2name=`${CC} -print-prog-name=collect2`
8313	  if test -f "$collect2name" && \
8314  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8315	  then
8316  	  # We have reworked collect2
8317  	  :
8318	  else
8319  	  # We have old collect2
8320  	  hardcode_direct=unsupported
8321  	  # It fails to find uninstalled libraries when the uninstalled
8322  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8323  	  # to unsupported forces relinking
8324  	  hardcode_minus_L=yes
8325  	  hardcode_libdir_flag_spec='-L$libdir'
8326  	  hardcode_libdir_separator=
8327	  fi
8328	  ;;
8329	esac
8330	shared_flag='-shared'
8331	if test "$aix_use_runtimelinking" = yes; then
8332	  shared_flag="$shared_flag "'${wl}-G'
8333	fi
8334      else
8335	# not using gcc
8336	if test "$host_cpu" = ia64; then
8337  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8338  	# chokes on -Wl,-G. The following line is correct:
8339	  shared_flag='-G'
8340	else
8341	  if test "$aix_use_runtimelinking" = yes; then
8342	    shared_flag='${wl}-G'
8343	  else
8344	    shared_flag='${wl}-bM:SRE'
8345	  fi
8346	fi
8347      fi
8348
8349      # It seems that -bexpall does not export symbols beginning with
8350      # underscore (_), so it is better to generate a list of symbols to export.
8351      always_export_symbols=yes
8352      if test "$aix_use_runtimelinking" = yes; then
8353	# Warning - without using the other runtime loading flags (-brtl),
8354	# -berok will link without error, but may produce a broken library.
8355	allow_undefined_flag='-berok'
8356       # Determine the default libpath from the value encoded in an empty executable.
8357       cat >conftest.$ac_ext <<_ACEOF
8358/* confdefs.h.  */
8359_ACEOF
8360cat confdefs.h >>conftest.$ac_ext
8361cat >>conftest.$ac_ext <<_ACEOF
8362/* end confdefs.h.  */
8363
8364int
8365main ()
8366{
8367
8368  ;
8369  return 0;
8370}
8371_ACEOF
8372rm -f conftest.$ac_objext conftest$ac_exeext
8373if { (ac_try="$ac_link"
8374case "(($ac_try" in
8375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376  *) ac_try_echo=$ac_try;;
8377esac
8378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379  (eval "$ac_link") 2>conftest.er1
8380  ac_status=$?
8381  grep -v '^ *+' conftest.er1 >conftest.err
8382  rm -f conftest.er1
8383  cat conftest.err >&5
8384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385  (exit $ac_status); } && {
8386	 test -z "$ac_c_werror_flag" ||
8387	 test ! -s conftest.err
8388       } && test -s conftest$ac_exeext &&
8389       $as_test_x conftest$ac_exeext; then
8390
8391lt_aix_libpath_sed='
8392    /Import File Strings/,/^$/ {
8393	/^0/ {
8394	    s/^0  *\(.*\)$/\1/
8395	    p
8396	}
8397    }'
8398aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8399# Check for a 64-bit object if we didn't find anything.
8400if test -z "$aix_libpath"; then
8401  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8402fi
8403else
8404  echo "$as_me: failed program was:" >&5
8405sed 's/^/| /' conftest.$ac_ext >&5
8406
8407
8408fi
8409
8410rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8411      conftest$ac_exeext conftest.$ac_ext
8412if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8413
8414       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8415	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"
8416       else
8417	if test "$host_cpu" = ia64; then
8418	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8419	  allow_undefined_flag="-z nodefs"
8420	  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"
8421	else
8422	 # Determine the default libpath from the value encoded in an empty executable.
8423	 cat >conftest.$ac_ext <<_ACEOF
8424/* confdefs.h.  */
8425_ACEOF
8426cat confdefs.h >>conftest.$ac_ext
8427cat >>conftest.$ac_ext <<_ACEOF
8428/* end confdefs.h.  */
8429
8430int
8431main ()
8432{
8433
8434  ;
8435  return 0;
8436}
8437_ACEOF
8438rm -f conftest.$ac_objext conftest$ac_exeext
8439if { (ac_try="$ac_link"
8440case "(($ac_try" in
8441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442  *) ac_try_echo=$ac_try;;
8443esac
8444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445  (eval "$ac_link") 2>conftest.er1
8446  ac_status=$?
8447  grep -v '^ *+' conftest.er1 >conftest.err
8448  rm -f conftest.er1
8449  cat conftest.err >&5
8450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451  (exit $ac_status); } && {
8452	 test -z "$ac_c_werror_flag" ||
8453	 test ! -s conftest.err
8454       } && test -s conftest$ac_exeext &&
8455       $as_test_x conftest$ac_exeext; then
8456
8457lt_aix_libpath_sed='
8458    /Import File Strings/,/^$/ {
8459	/^0/ {
8460	    s/^0  *\(.*\)$/\1/
8461	    p
8462	}
8463    }'
8464aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8465# Check for a 64-bit object if we didn't find anything.
8466if test -z "$aix_libpath"; then
8467  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8468fi
8469else
8470  echo "$as_me: failed program was:" >&5
8471sed 's/^/| /' conftest.$ac_ext >&5
8472
8473
8474fi
8475
8476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8477      conftest$ac_exeext conftest.$ac_ext
8478if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8479
8480	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8481	  # Warning - without using the other run time loading flags,
8482	  # -berok will link without error, but may produce a broken library.
8483	  no_undefined_flag=' ${wl}-bernotok'
8484	  allow_undefined_flag=' ${wl}-berok'
8485	  # Exported symbols can be pulled into shared objects from archives
8486	  whole_archive_flag_spec='$convenience'
8487	  archive_cmds_need_lc=yes
8488	  # This is similar to how AIX traditionally builds its shared libraries.
8489	  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'
8490	fi
8491      fi
8492      ;;
8493
8494    amigaos*)
8495      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)'
8496      hardcode_libdir_flag_spec='-L$libdir'
8497      hardcode_minus_L=yes
8498      # see comment about different semantics on the GNU ld section
8499      ld_shlibs=no
8500      ;;
8501
8502    bsdi[45]*)
8503      export_dynamic_flag_spec=-rdynamic
8504      ;;
8505
8506    cygwin* | mingw* | pw32*)
8507      # When not using gcc, we currently assume that we are using
8508      # Microsoft Visual C++.
8509      # hardcode_libdir_flag_spec is actually meaningless, as there is
8510      # no search path for DLLs.
8511      hardcode_libdir_flag_spec=' '
8512      allow_undefined_flag=unsupported
8513      # Tell ltmain to make .lib files, not .a files.
8514      libext=lib
8515      # Tell ltmain to make .dll files, not .so files.
8516      shrext_cmds=".dll"
8517      # FIXME: Setting linknames here is a bad hack.
8518      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8519      # The linker will automatically build a .lib file if we build a DLL.
8520      old_archive_From_new_cmds='true'
8521      # FIXME: Should let the user specify the lib program.
8522      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8523      fix_srcfile_path='`cygpath -w "$srcfile"`'
8524      enable_shared_with_static_runtimes=yes
8525      ;;
8526
8527    darwin* | rhapsody*)
8528      case $host_os in
8529        rhapsody* | darwin1.[012])
8530         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8531         ;;
8532       *) # Darwin 1.3 on
8533         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8534           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8535         else
8536           case ${MACOSX_DEPLOYMENT_TARGET} in
8537             10.[012])
8538               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8539               ;;
8540             10.*)
8541               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8542               ;;
8543           esac
8544         fi
8545         ;;
8546      esac
8547      archive_cmds_need_lc=no
8548      hardcode_direct=no
8549      hardcode_automatic=yes
8550      hardcode_shlibpath_var=unsupported
8551      whole_archive_flag_spec=''
8552      link_all_deplibs=yes
8553    if test "$GCC" = yes ; then
8554    	output_verbose_link_cmd='echo'
8555        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8556        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8557        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}"
8558        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}"
8559    else
8560      case $cc_basename in
8561        xlc*)
8562         output_verbose_link_cmd='echo'
8563         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8564         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8565          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8566         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}'
8567          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}'
8568          ;;
8569       *)
8570         ld_shlibs=no
8571          ;;
8572      esac
8573    fi
8574      ;;
8575
8576    dgux*)
8577      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8578      hardcode_libdir_flag_spec='-L$libdir'
8579      hardcode_shlibpath_var=no
8580      ;;
8581
8582    freebsd1*)
8583      ld_shlibs=no
8584      ;;
8585
8586    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8587    # support.  Future versions do this automatically, but an explicit c++rt0.o
8588    # does not break anything, and helps significantly (at the cost of a little
8589    # extra space).
8590    freebsd2.2*)
8591      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8592      hardcode_libdir_flag_spec='-R$libdir'
8593      hardcode_direct=yes
8594      hardcode_shlibpath_var=no
8595      ;;
8596
8597    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8598    freebsd2*)
8599      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8600      hardcode_direct=yes
8601      hardcode_minus_L=yes
8602      hardcode_shlibpath_var=no
8603      ;;
8604
8605    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8606    freebsd* | dragonfly*)
8607      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8608      hardcode_libdir_flag_spec='-R$libdir'
8609      hardcode_direct=yes
8610      hardcode_shlibpath_var=no
8611      ;;
8612
8613    hpux9*)
8614      if test "$GCC" = yes; then
8615	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'
8616      else
8617	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'
8618      fi
8619      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8620      hardcode_libdir_separator=:
8621      hardcode_direct=yes
8622
8623      # hardcode_minus_L: Not really in the search PATH,
8624      # but as the default location of the library.
8625      hardcode_minus_L=yes
8626      export_dynamic_flag_spec='${wl}-E'
8627      ;;
8628
8629    hpux10*)
8630      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8631	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8632      else
8633	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8634      fi
8635      if test "$with_gnu_ld" = no; then
8636	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8637	hardcode_libdir_separator=:
8638
8639	hardcode_direct=yes
8640	export_dynamic_flag_spec='${wl}-E'
8641
8642	# hardcode_minus_L: Not really in the search PATH,
8643	# but as the default location of the library.
8644	hardcode_minus_L=yes
8645      fi
8646      ;;
8647
8648    hpux11*)
8649      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8650	case $host_cpu in
8651	hppa*64*)
8652	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8653	  ;;
8654	ia64*)
8655	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8656	  ;;
8657	*)
8658	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8659	  ;;
8660	esac
8661      else
8662	case $host_cpu in
8663	hppa*64*)
8664	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8665	  ;;
8666	ia64*)
8667	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8668	  ;;
8669	*)
8670	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8671	  ;;
8672	esac
8673      fi
8674      if test "$with_gnu_ld" = no; then
8675	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8676	hardcode_libdir_separator=:
8677
8678	case $host_cpu in
8679	hppa*64*|ia64*)
8680	  hardcode_libdir_flag_spec_ld='+b $libdir'
8681	  hardcode_direct=no
8682	  hardcode_shlibpath_var=no
8683	  ;;
8684	*)
8685	  hardcode_direct=yes
8686	  export_dynamic_flag_spec='${wl}-E'
8687
8688	  # hardcode_minus_L: Not really in the search PATH,
8689	  # but as the default location of the library.
8690	  hardcode_minus_L=yes
8691	  ;;
8692	esac
8693      fi
8694      ;;
8695
8696    irix5* | irix6* | nonstopux*)
8697      if test "$GCC" = yes; then
8698	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'
8699      else
8700	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'
8701	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8702      fi
8703      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8704      hardcode_libdir_separator=:
8705      link_all_deplibs=yes
8706      ;;
8707
8708    netbsd* | netbsdelf*-gnu)
8709      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8710	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8711      else
8712	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8713      fi
8714      hardcode_libdir_flag_spec='-R$libdir'
8715      hardcode_direct=yes
8716      hardcode_shlibpath_var=no
8717      ;;
8718
8719    newsos6)
8720      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8721      hardcode_direct=yes
8722      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8723      hardcode_libdir_separator=:
8724      hardcode_shlibpath_var=no
8725      ;;
8726
8727    openbsd*)
8728      if test -f /usr/libexec/ld.so; then
8729	hardcode_direct=yes
8730	hardcode_shlibpath_var=no
8731	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8732	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8733	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8734	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8735	  export_dynamic_flag_spec='${wl}-E'
8736	else
8737	  case $host_os in
8738	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8739	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8740	     hardcode_libdir_flag_spec='-R$libdir'
8741	     ;;
8742	   *)
8743	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8744	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8745	     ;;
8746	  esac
8747        fi
8748      else
8749	ld_shlibs=no
8750      fi
8751      ;;
8752
8753    os2*)
8754      hardcode_libdir_flag_spec='-L$libdir'
8755      hardcode_minus_L=yes
8756      allow_undefined_flag=unsupported
8757      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'
8758      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8759      ;;
8760
8761    osf3*)
8762      if test "$GCC" = yes; then
8763	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8764	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'
8765      else
8766	allow_undefined_flag=' -expect_unresolved \*'
8767	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'
8768      fi
8769      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8770      hardcode_libdir_separator=:
8771      ;;
8772
8773    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8774      if test "$GCC" = yes; then
8775	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8776	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'
8777	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8778      else
8779	allow_undefined_flag=' -expect_unresolved \*'
8780	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'
8781	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8782	$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'
8783
8784	# Both c and cxx compiler support -rpath directly
8785	hardcode_libdir_flag_spec='-rpath $libdir'
8786      fi
8787      hardcode_libdir_separator=:
8788      ;;
8789
8790    solaris*)
8791      no_undefined_flag=' -z text'
8792      if test "$GCC" = yes; then
8793	wlarc='${wl}'
8794	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8795	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8796	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8797      else
8798	wlarc=''
8799	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8800	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8801  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8802      fi
8803      hardcode_libdir_flag_spec='-R$libdir'
8804      hardcode_shlibpath_var=no
8805      case $host_os in
8806      solaris2.[0-5] | solaris2.[0-5].*) ;;
8807      *)
8808	# The compiler driver will combine and reorder linker options,
8809	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8810	# but is careful enough not to reorder.
8811 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8812	if test "$GCC" = yes; then
8813	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8814	else
8815	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8816	fi
8817	;;
8818      esac
8819      link_all_deplibs=yes
8820      ;;
8821
8822    sunos4*)
8823      if test "x$host_vendor" = xsequent; then
8824	# Use $CC to link under sequent, because it throws in some extra .o
8825	# files that make .init and .fini sections work.
8826	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8827      else
8828	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8829      fi
8830      hardcode_libdir_flag_spec='-L$libdir'
8831      hardcode_direct=yes
8832      hardcode_minus_L=yes
8833      hardcode_shlibpath_var=no
8834      ;;
8835
8836    sysv4)
8837      case $host_vendor in
8838	sni)
8839	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8840	  hardcode_direct=yes # is this really true???
8841	;;
8842	siemens)
8843	  ## LD is ld it makes a PLAMLIB
8844	  ## CC just makes a GrossModule.
8845	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8846	  reload_cmds='$CC -r -o $output$reload_objs'
8847	  hardcode_direct=no
8848        ;;
8849	motorola)
8850	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8851	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8852	;;
8853      esac
8854      runpath_var='LD_RUN_PATH'
8855      hardcode_shlibpath_var=no
8856      ;;
8857
8858    sysv4.3*)
8859      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8860      hardcode_shlibpath_var=no
8861      export_dynamic_flag_spec='-Bexport'
8862      ;;
8863
8864    sysv4*MP*)
8865      if test -d /usr/nec; then
8866	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8867	hardcode_shlibpath_var=no
8868	runpath_var=LD_RUN_PATH
8869	hardcode_runpath_var=yes
8870	ld_shlibs=yes
8871      fi
8872      ;;
8873
8874    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8875      no_undefined_flag='${wl}-z,text'
8876      archive_cmds_need_lc=no
8877      hardcode_shlibpath_var=no
8878      runpath_var='LD_RUN_PATH'
8879
8880      if test "$GCC" = yes; then
8881	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8882	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8883      else
8884	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8885	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8886      fi
8887      ;;
8888
8889    sysv5* | sco3.2v5* | sco5v6*)
8890      # Note: We can NOT use -z defs as we might desire, because we do not
8891      # link with -lc, and that would cause any symbols used from libc to
8892      # always be unresolved, which means just about no library would
8893      # ever link correctly.  If we're not using GNU ld we use -z text
8894      # though, which does catch some bad symbols but isn't as heavy-handed
8895      # as -z defs.
8896      no_undefined_flag='${wl}-z,text'
8897      allow_undefined_flag='${wl}-z,nodefs'
8898      archive_cmds_need_lc=no
8899      hardcode_shlibpath_var=no
8900      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8901      hardcode_libdir_separator=':'
8902      link_all_deplibs=yes
8903      export_dynamic_flag_spec='${wl}-Bexport'
8904      runpath_var='LD_RUN_PATH'
8905
8906      if test "$GCC" = yes; then
8907	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8908	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8909      else
8910	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8911	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8912      fi
8913      ;;
8914
8915    uts4*)
8916      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8917      hardcode_libdir_flag_spec='-L$libdir'
8918      hardcode_shlibpath_var=no
8919      ;;
8920
8921    *)
8922      ld_shlibs=no
8923      ;;
8924    esac
8925  fi
8926
8927{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8928echo "${ECHO_T}$ld_shlibs" >&6; }
8929test "$ld_shlibs" = no && can_build_shared=no
8930
8931#
8932# Do we need to explicitly link libc?
8933#
8934case "x$archive_cmds_need_lc" in
8935x|xyes)
8936  # Assume -lc should be added
8937  archive_cmds_need_lc=yes
8938
8939  if test "$enable_shared" = yes && test "$GCC" = yes; then
8940    case $archive_cmds in
8941    *'~'*)
8942      # FIXME: we may have to deal with multi-command sequences.
8943      ;;
8944    '$CC '*)
8945      # Test whether the compiler implicitly links with -lc since on some
8946      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8947      # to ld, don't add -lc before -lgcc.
8948      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8949echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8950      $rm conftest*
8951      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8952
8953      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8954  (eval $ac_compile) 2>&5
8955  ac_status=$?
8956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957  (exit $ac_status); } 2>conftest.err; then
8958        soname=conftest
8959        lib=conftest
8960        libobjs=conftest.$ac_objext
8961        deplibs=
8962        wl=$lt_prog_compiler_wl
8963	pic_flag=$lt_prog_compiler_pic
8964        compiler_flags=-v
8965        linker_flags=-v
8966        verstring=
8967        output_objdir=.
8968        libname=conftest
8969        lt_save_allow_undefined_flag=$allow_undefined_flag
8970        allow_undefined_flag=
8971        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8972  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8973  ac_status=$?
8974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975  (exit $ac_status); }
8976        then
8977	  archive_cmds_need_lc=no
8978        else
8979	  archive_cmds_need_lc=yes
8980        fi
8981        allow_undefined_flag=$lt_save_allow_undefined_flag
8982      else
8983        cat conftest.err 1>&5
8984      fi
8985      $rm conftest*
8986      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8987echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8988      ;;
8989    esac
8990  fi
8991  ;;
8992esac
8993
8994{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8995echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8996library_names_spec=
8997libname_spec='lib$name'
8998soname_spec=
8999shrext_cmds=".so"
9000postinstall_cmds=
9001postuninstall_cmds=
9002finish_cmds=
9003finish_eval=
9004shlibpath_var=
9005shlibpath_overrides_runpath=unknown
9006version_type=none
9007dynamic_linker="$host_os ld.so"
9008sys_lib_dlsearch_path_spec="/lib /usr/lib"
9009
9010if test "$GCC" = yes; then
9011  case $host_os in
9012    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9013    *) lt_awk_arg="/^libraries:/" ;;
9014  esac
9015  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9016  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9017    # if the path contains ";" then we assume it to be the separator
9018    # otherwise default to the standard path separator (i.e. ":") - it is
9019    # assumed that no part of a normal pathname contains ";" but that should
9020    # okay in the real world where ";" in dirpaths is itself problematic.
9021    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9022  else
9023    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9024  fi
9025  # Ok, now we have the path, separated by spaces, we can step through it
9026  # and add multilib dir if necessary.
9027  lt_tmp_lt_search_path_spec=
9028  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9029  for lt_sys_path in $lt_search_path_spec; do
9030    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9031      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9032    else
9033      test -d "$lt_sys_path" && \
9034	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9035    fi
9036  done
9037  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9038BEGIN {RS=" "; FS="/|\n";} {
9039  lt_foo="";
9040  lt_count=0;
9041  for (lt_i = NF; lt_i > 0; lt_i--) {
9042    if ($lt_i != "" && $lt_i != ".") {
9043      if ($lt_i == "..") {
9044        lt_count++;
9045      } else {
9046        if (lt_count == 0) {
9047          lt_foo="/" $lt_i lt_foo;
9048        } else {
9049          lt_count--;
9050        }
9051      }
9052    }
9053  }
9054  if (lt_foo != "") { lt_freq[lt_foo]++; }
9055  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9056}'`
9057  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9058else
9059  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9060fi
9061need_lib_prefix=unknown
9062hardcode_into_libs=no
9063
9064# when you set need_version to no, make sure it does not cause -set_version
9065# flags to be left without arguments
9066need_version=unknown
9067
9068case $host_os in
9069aix3*)
9070  version_type=linux
9071  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9072  shlibpath_var=LIBPATH
9073
9074  # AIX 3 has no versioning support, so we append a major version to the name.
9075  soname_spec='${libname}${release}${shared_ext}$major'
9076  ;;
9077
9078aix[4-9]*)
9079  version_type=linux
9080  need_lib_prefix=no
9081  need_version=no
9082  hardcode_into_libs=yes
9083  if test "$host_cpu" = ia64; then
9084    # AIX 5 supports IA64
9085    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9086    shlibpath_var=LD_LIBRARY_PATH
9087  else
9088    # With GCC up to 2.95.x, collect2 would create an import file
9089    # for dependence libraries.  The import file would start with
9090    # the line `#! .'.  This would cause the generated library to
9091    # depend on `.', always an invalid library.  This was fixed in
9092    # development snapshots of GCC prior to 3.0.
9093    case $host_os in
9094      aix4 | aix4.[01] | aix4.[01].*)
9095      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9096	   echo ' yes '
9097	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9098	:
9099      else
9100	can_build_shared=no
9101      fi
9102      ;;
9103    esac
9104    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9105    # soname into executable. Probably we can add versioning support to
9106    # collect2, so additional links can be useful in future.
9107    if test "$aix_use_runtimelinking" = yes; then
9108      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9109      # instead of lib<name>.a to let people know that these are not
9110      # typical AIX shared libraries.
9111      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112    else
9113      # We preserve .a as extension for shared libraries through AIX4.2
9114      # and later when we are not doing run time linking.
9115      library_names_spec='${libname}${release}.a $libname.a'
9116      soname_spec='${libname}${release}${shared_ext}$major'
9117    fi
9118    shlibpath_var=LIBPATH
9119  fi
9120  ;;
9121
9122amigaos*)
9123  library_names_spec='$libname.ixlibrary $libname.a'
9124  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9125  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'
9126  ;;
9127
9128beos*)
9129  library_names_spec='${libname}${shared_ext}'
9130  dynamic_linker="$host_os ld.so"
9131  shlibpath_var=LIBRARY_PATH
9132  ;;
9133
9134bsdi[45]*)
9135  version_type=linux
9136  need_version=no
9137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138  soname_spec='${libname}${release}${shared_ext}$major'
9139  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9140  shlibpath_var=LD_LIBRARY_PATH
9141  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9142  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9143  # the default ld.so.conf also contains /usr/contrib/lib and
9144  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9145  # libtool to hard-code these into programs
9146  ;;
9147
9148cygwin* | mingw* | pw32*)
9149  version_type=windows
9150  shrext_cmds=".dll"
9151  need_version=no
9152  need_lib_prefix=no
9153
9154  case $GCC,$host_os in
9155  yes,cygwin* | yes,mingw* | yes,pw32*)
9156    library_names_spec='$libname.dll.a'
9157    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9158    postinstall_cmds='base_file=`basename \${file}`~
9159      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9160      dldir=$destdir/`dirname \$dlpath`~
9161      test -d \$dldir || mkdir -p \$dldir~
9162      $install_prog $dir/$dlname \$dldir/$dlname~
9163      chmod a+x \$dldir/$dlname'
9164    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9165      dlpath=$dir/\$dldll~
9166       $rm \$dlpath'
9167    shlibpath_overrides_runpath=yes
9168
9169    case $host_os in
9170    cygwin*)
9171      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9172      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9173      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9174      ;;
9175    mingw*)
9176      # MinGW DLLs use traditional 'lib' prefix
9177      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9178      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9179      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9180        # It is most probably a Windows format PATH printed by
9181        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9182        # path with ; separators, and with drive letters. We can handle the
9183        # drive letters (cygwin fileutils understands them), so leave them,
9184        # especially as we might pass files found there to a mingw objdump,
9185        # which wouldn't understand a cygwinified path. Ahh.
9186        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9187      else
9188        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9189      fi
9190      ;;
9191    pw32*)
9192      # pw32 DLLs use 'pw' prefix rather than 'lib'
9193      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9194      ;;
9195    esac
9196    ;;
9197
9198  *)
9199    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9200    ;;
9201  esac
9202  dynamic_linker='Win32 ld.exe'
9203  # FIXME: first we should search . and the directory the executable is in
9204  shlibpath_var=PATH
9205  ;;
9206
9207darwin* | rhapsody*)
9208  dynamic_linker="$host_os dyld"
9209  version_type=darwin
9210  need_lib_prefix=no
9211  need_version=no
9212  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9213  soname_spec='${libname}${release}${major}$shared_ext'
9214  shlibpath_overrides_runpath=yes
9215  shlibpath_var=DYLD_LIBRARY_PATH
9216  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9217
9218  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9219  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9220  ;;
9221
9222dgux*)
9223  version_type=linux
9224  need_lib_prefix=no
9225  need_version=no
9226  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9227  soname_spec='${libname}${release}${shared_ext}$major'
9228  shlibpath_var=LD_LIBRARY_PATH
9229  ;;
9230
9231freebsd1*)
9232  dynamic_linker=no
9233  ;;
9234
9235freebsd* | dragonfly*)
9236  # DragonFly does not have aout.  When/if they implement a new
9237  # versioning mechanism, adjust this.
9238  if test -x /usr/bin/objformat; then
9239    objformat=`/usr/bin/objformat`
9240  else
9241    case $host_os in
9242    freebsd[123]*) objformat=aout ;;
9243    *) objformat=elf ;;
9244    esac
9245  fi
9246  version_type=freebsd-$objformat
9247  case $version_type in
9248    freebsd-elf*)
9249      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9250      need_version=no
9251      need_lib_prefix=no
9252      ;;
9253    freebsd-*)
9254      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9255      need_version=yes
9256      ;;
9257  esac
9258  shlibpath_var=LD_LIBRARY_PATH
9259  case $host_os in
9260  freebsd2*)
9261    shlibpath_overrides_runpath=yes
9262    ;;
9263  freebsd3.[01]* | freebsdelf3.[01]*)
9264    shlibpath_overrides_runpath=yes
9265    hardcode_into_libs=yes
9266    ;;
9267  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9268  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9269    shlibpath_overrides_runpath=no
9270    hardcode_into_libs=yes
9271    ;;
9272  *) # from 4.6 on, and DragonFly
9273    shlibpath_overrides_runpath=yes
9274    hardcode_into_libs=yes
9275    ;;
9276  esac
9277  ;;
9278
9279gnu*)
9280  version_type=linux
9281  need_lib_prefix=no
9282  need_version=no
9283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9284  soname_spec='${libname}${release}${shared_ext}$major'
9285  shlibpath_var=LD_LIBRARY_PATH
9286  hardcode_into_libs=yes
9287  ;;
9288
9289hpux9* | hpux10* | hpux11*)
9290  # Give a soname corresponding to the major version so that dld.sl refuses to
9291  # link against other versions.
9292  version_type=sunos
9293  need_lib_prefix=no
9294  need_version=no
9295  case $host_cpu in
9296  ia64*)
9297    shrext_cmds='.so'
9298    hardcode_into_libs=yes
9299    dynamic_linker="$host_os dld.so"
9300    shlibpath_var=LD_LIBRARY_PATH
9301    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9302    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303    soname_spec='${libname}${release}${shared_ext}$major'
9304    if test "X$HPUX_IA64_MODE" = X32; then
9305      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9306    else
9307      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9308    fi
9309    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9310    ;;
9311   hppa*64*)
9312     shrext_cmds='.sl'
9313     hardcode_into_libs=yes
9314     dynamic_linker="$host_os dld.sl"
9315     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9316     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9317     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9318     soname_spec='${libname}${release}${shared_ext}$major'
9319     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9320     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9321     ;;
9322   *)
9323    shrext_cmds='.sl'
9324    dynamic_linker="$host_os dld.sl"
9325    shlibpath_var=SHLIB_PATH
9326    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9327    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9328    soname_spec='${libname}${release}${shared_ext}$major'
9329    ;;
9330  esac
9331  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9332  postinstall_cmds='chmod 555 $lib'
9333  ;;
9334
9335interix[3-9]*)
9336  version_type=linux
9337  need_lib_prefix=no
9338  need_version=no
9339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9340  soname_spec='${libname}${release}${shared_ext}$major'
9341  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9342  shlibpath_var=LD_LIBRARY_PATH
9343  shlibpath_overrides_runpath=no
9344  hardcode_into_libs=yes
9345  ;;
9346
9347irix5* | irix6* | nonstopux*)
9348  case $host_os in
9349    nonstopux*) version_type=nonstopux ;;
9350    *)
9351	if test "$lt_cv_prog_gnu_ld" = yes; then
9352		version_type=linux
9353	else
9354		version_type=irix
9355	fi ;;
9356  esac
9357  need_lib_prefix=no
9358  need_version=no
9359  soname_spec='${libname}${release}${shared_ext}$major'
9360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9361  case $host_os in
9362  irix5* | nonstopux*)
9363    libsuff= shlibsuff=
9364    ;;
9365  *)
9366    case $LD in # libtool.m4 will add one of these switches to LD
9367    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9368      libsuff= shlibsuff= libmagic=32-bit;;
9369    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9370      libsuff=32 shlibsuff=N32 libmagic=N32;;
9371    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9372      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9373    *) libsuff= shlibsuff= libmagic=never-match;;
9374    esac
9375    ;;
9376  esac
9377  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9378  shlibpath_overrides_runpath=no
9379  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9380  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9381  hardcode_into_libs=yes
9382  ;;
9383
9384# No shared lib support for Linux oldld, aout, or coff.
9385linux*oldld* | linux*aout* | linux*coff*)
9386  dynamic_linker=no
9387  ;;
9388
9389# This must be Linux ELF.
9390linux* | k*bsd*-gnu)
9391  version_type=linux
9392  need_lib_prefix=no
9393  need_version=no
9394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9395  soname_spec='${libname}${release}${shared_ext}$major'
9396  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9397  shlibpath_var=LD_LIBRARY_PATH
9398  shlibpath_overrides_runpath=no
9399  # This implies no fast_install, which is unacceptable.
9400  # Some rework will be needed to allow for fast_install
9401  # before this can be enabled.
9402  hardcode_into_libs=yes
9403
9404  # Append ld.so.conf contents to the search path
9405  if test -f /etc/ld.so.conf; then
9406    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' ' '`
9407    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9408  fi
9409
9410  # We used to test for /lib/ld.so.1 and disable shared libraries on
9411  # powerpc, because MkLinux only supported shared libraries with the
9412  # GNU dynamic linker.  Since this was broken with cross compilers,
9413  # most powerpc-linux boxes support dynamic linking these days and
9414  # people can always --disable-shared, the test was removed, and we
9415  # assume the GNU/Linux dynamic linker is in use.
9416  dynamic_linker='GNU/Linux ld.so'
9417  ;;
9418
9419netbsdelf*-gnu)
9420  version_type=linux
9421  need_lib_prefix=no
9422  need_version=no
9423  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9424  soname_spec='${libname}${release}${shared_ext}$major'
9425  shlibpath_var=LD_LIBRARY_PATH
9426  shlibpath_overrides_runpath=no
9427  hardcode_into_libs=yes
9428  dynamic_linker='NetBSD ld.elf_so'
9429  ;;
9430
9431netbsd*)
9432  version_type=sunos
9433  need_lib_prefix=no
9434  need_version=no
9435  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9436    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9437    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9438    dynamic_linker='NetBSD (a.out) ld.so'
9439  else
9440    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9441    soname_spec='${libname}${release}${shared_ext}$major'
9442    dynamic_linker='NetBSD ld.elf_so'
9443  fi
9444  shlibpath_var=LD_LIBRARY_PATH
9445  shlibpath_overrides_runpath=yes
9446  hardcode_into_libs=yes
9447  ;;
9448
9449newsos6)
9450  version_type=linux
9451  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9452  shlibpath_var=LD_LIBRARY_PATH
9453  shlibpath_overrides_runpath=yes
9454  ;;
9455
9456nto-qnx*)
9457  version_type=linux
9458  need_lib_prefix=no
9459  need_version=no
9460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461  soname_spec='${libname}${release}${shared_ext}$major'
9462  shlibpath_var=LD_LIBRARY_PATH
9463  shlibpath_overrides_runpath=yes
9464  ;;
9465
9466openbsd*)
9467  version_type=sunos
9468  sys_lib_dlsearch_path_spec="/usr/lib"
9469  need_lib_prefix=no
9470  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9471  case $host_os in
9472    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9473    *)                         need_version=no  ;;
9474  esac
9475  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9476  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9477  shlibpath_var=LD_LIBRARY_PATH
9478  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9479    case $host_os in
9480      openbsd2.[89] | openbsd2.[89].*)
9481	shlibpath_overrides_runpath=no
9482	;;
9483      *)
9484	shlibpath_overrides_runpath=yes
9485	;;
9486      esac
9487  else
9488    shlibpath_overrides_runpath=yes
9489  fi
9490  ;;
9491
9492os2*)
9493  libname_spec='$name'
9494  shrext_cmds=".dll"
9495  need_lib_prefix=no
9496  library_names_spec='$libname${shared_ext} $libname.a'
9497  dynamic_linker='OS/2 ld.exe'
9498  shlibpath_var=LIBPATH
9499  ;;
9500
9501osf3* | osf4* | osf5*)
9502  version_type=osf
9503  need_lib_prefix=no
9504  need_version=no
9505  soname_spec='${libname}${release}${shared_ext}$major'
9506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9507  shlibpath_var=LD_LIBRARY_PATH
9508  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9509  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9510  ;;
9511
9512rdos*)
9513  dynamic_linker=no
9514  ;;
9515
9516solaris*)
9517  version_type=linux
9518  need_lib_prefix=no
9519  need_version=no
9520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521  soname_spec='${libname}${release}${shared_ext}$major'
9522  shlibpath_var=LD_LIBRARY_PATH
9523  shlibpath_overrides_runpath=yes
9524  hardcode_into_libs=yes
9525  # ldd complains unless libraries are executable
9526  postinstall_cmds='chmod +x $lib'
9527  ;;
9528
9529sunos4*)
9530  version_type=sunos
9531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9532  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9533  shlibpath_var=LD_LIBRARY_PATH
9534  shlibpath_overrides_runpath=yes
9535  if test "$with_gnu_ld" = yes; then
9536    need_lib_prefix=no
9537  fi
9538  need_version=yes
9539  ;;
9540
9541sysv4 | sysv4.3*)
9542  version_type=linux
9543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544  soname_spec='${libname}${release}${shared_ext}$major'
9545  shlibpath_var=LD_LIBRARY_PATH
9546  case $host_vendor in
9547    sni)
9548      shlibpath_overrides_runpath=no
9549      need_lib_prefix=no
9550      export_dynamic_flag_spec='${wl}-Blargedynsym'
9551      runpath_var=LD_RUN_PATH
9552      ;;
9553    siemens)
9554      need_lib_prefix=no
9555      ;;
9556    motorola)
9557      need_lib_prefix=no
9558      need_version=no
9559      shlibpath_overrides_runpath=no
9560      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9561      ;;
9562  esac
9563  ;;
9564
9565sysv4*MP*)
9566  if test -d /usr/nec ;then
9567    version_type=linux
9568    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9569    soname_spec='$libname${shared_ext}.$major'
9570    shlibpath_var=LD_LIBRARY_PATH
9571  fi
9572  ;;
9573
9574sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9575  version_type=freebsd-elf
9576  need_lib_prefix=no
9577  need_version=no
9578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9579  soname_spec='${libname}${release}${shared_ext}$major'
9580  shlibpath_var=LD_LIBRARY_PATH
9581  hardcode_into_libs=yes
9582  if test "$with_gnu_ld" = yes; then
9583    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9584    shlibpath_overrides_runpath=no
9585  else
9586    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9587    shlibpath_overrides_runpath=yes
9588    case $host_os in
9589      sco3.2v5*)
9590        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9591	;;
9592    esac
9593  fi
9594  sys_lib_dlsearch_path_spec='/usr/lib'
9595  ;;
9596
9597uts4*)
9598  version_type=linux
9599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9600  soname_spec='${libname}${release}${shared_ext}$major'
9601  shlibpath_var=LD_LIBRARY_PATH
9602  ;;
9603
9604*)
9605  dynamic_linker=no
9606  ;;
9607esac
9608{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9609echo "${ECHO_T}$dynamic_linker" >&6; }
9610test "$dynamic_linker" = no && can_build_shared=no
9611
9612if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9613  echo $ECHO_N "(cached) $ECHO_C" >&6
9614else
9615  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9616fi
9617
9618sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9619if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9620  echo $ECHO_N "(cached) $ECHO_C" >&6
9621else
9622  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9623fi
9624
9625sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9626
9627variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9628if test "$GCC" = yes; then
9629  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9630fi
9631
9632{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9633echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9634hardcode_action=
9635if test -n "$hardcode_libdir_flag_spec" || \
9636   test -n "$runpath_var" || \
9637   test "X$hardcode_automatic" = "Xyes" ; then
9638
9639  # We can hardcode non-existant directories.
9640  if test "$hardcode_direct" != no &&
9641     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9642     # have to relink, otherwise we might link with an installed library
9643     # when we should be linking with a yet-to-be-installed one
9644     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9645     test "$hardcode_minus_L" != no; then
9646    # Linking always hardcodes the temporary library directory.
9647    hardcode_action=relink
9648  else
9649    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9650    hardcode_action=immediate
9651  fi
9652else
9653  # We cannot hardcode anything, or else we can only hardcode existing
9654  # directories.
9655  hardcode_action=unsupported
9656fi
9657{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9658echo "${ECHO_T}$hardcode_action" >&6; }
9659
9660if test "$hardcode_action" = relink; then
9661  # Fast installation is not supported
9662  enable_fast_install=no
9663elif test "$shlibpath_overrides_runpath" = yes ||
9664     test "$enable_shared" = no; then
9665  # Fast installation is not necessary
9666  enable_fast_install=needless
9667fi
9668
9669striplib=
9670old_striplib=
9671{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9672echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9673if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9674  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9675  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9676  { echo "$as_me:$LINENO: result: yes" >&5
9677echo "${ECHO_T}yes" >&6; }
9678else
9679# FIXME - insert some real tests, host_os isn't really good enough
9680  case $host_os in
9681   darwin*)
9682       if test -n "$STRIP" ; then
9683         striplib="$STRIP -x"
9684         old_striplib="$STRIP -S"
9685         { echo "$as_me:$LINENO: result: yes" >&5
9686echo "${ECHO_T}yes" >&6; }
9687       else
9688  { echo "$as_me:$LINENO: result: no" >&5
9689echo "${ECHO_T}no" >&6; }
9690fi
9691       ;;
9692   *)
9693  { echo "$as_me:$LINENO: result: no" >&5
9694echo "${ECHO_T}no" >&6; }
9695    ;;
9696  esac
9697fi
9698
9699if test "x$enable_dlopen" != xyes; then
9700  enable_dlopen=unknown
9701  enable_dlopen_self=unknown
9702  enable_dlopen_self_static=unknown
9703else
9704  lt_cv_dlopen=no
9705  lt_cv_dlopen_libs=
9706
9707  case $host_os in
9708  beos*)
9709    lt_cv_dlopen="load_add_on"
9710    lt_cv_dlopen_libs=
9711    lt_cv_dlopen_self=yes
9712    ;;
9713
9714  mingw* | pw32*)
9715    lt_cv_dlopen="LoadLibrary"
9716    lt_cv_dlopen_libs=
9717   ;;
9718
9719  cygwin*)
9720    lt_cv_dlopen="dlopen"
9721    lt_cv_dlopen_libs=
9722   ;;
9723
9724  darwin*)
9725  # if libdl is installed we need to link against it
9726    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9727echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9728if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9729  echo $ECHO_N "(cached) $ECHO_C" >&6
9730else
9731  ac_check_lib_save_LIBS=$LIBS
9732LIBS="-ldl  $LIBS"
9733cat >conftest.$ac_ext <<_ACEOF
9734/* confdefs.h.  */
9735_ACEOF
9736cat confdefs.h >>conftest.$ac_ext
9737cat >>conftest.$ac_ext <<_ACEOF
9738/* end confdefs.h.  */
9739
9740/* Override any GCC internal prototype to avoid an error.
9741   Use char because int might match the return type of a GCC
9742   builtin and then its argument prototype would still apply.  */
9743#ifdef __cplusplus
9744extern "C"
9745#endif
9746char dlopen ();
9747int
9748main ()
9749{
9750return dlopen ();
9751  ;
9752  return 0;
9753}
9754_ACEOF
9755rm -f conftest.$ac_objext conftest$ac_exeext
9756if { (ac_try="$ac_link"
9757case "(($ac_try" in
9758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759  *) ac_try_echo=$ac_try;;
9760esac
9761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762  (eval "$ac_link") 2>conftest.er1
9763  ac_status=$?
9764  grep -v '^ *+' conftest.er1 >conftest.err
9765  rm -f conftest.er1
9766  cat conftest.err >&5
9767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768  (exit $ac_status); } && {
9769	 test -z "$ac_c_werror_flag" ||
9770	 test ! -s conftest.err
9771       } && test -s conftest$ac_exeext &&
9772       $as_test_x conftest$ac_exeext; then
9773  ac_cv_lib_dl_dlopen=yes
9774else
9775  echo "$as_me: failed program was:" >&5
9776sed 's/^/| /' conftest.$ac_ext >&5
9777
9778	ac_cv_lib_dl_dlopen=no
9779fi
9780
9781rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9782      conftest$ac_exeext conftest.$ac_ext
9783LIBS=$ac_check_lib_save_LIBS
9784fi
9785{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9786echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9787if test $ac_cv_lib_dl_dlopen = yes; then
9788  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9789else
9790
9791    lt_cv_dlopen="dyld"
9792    lt_cv_dlopen_libs=
9793    lt_cv_dlopen_self=yes
9794
9795fi
9796
9797   ;;
9798
9799  *)
9800    { echo "$as_me:$LINENO: checking for shl_load" >&5
9801echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9802if test "${ac_cv_func_shl_load+set}" = set; then
9803  echo $ECHO_N "(cached) $ECHO_C" >&6
9804else
9805  cat >conftest.$ac_ext <<_ACEOF
9806/* confdefs.h.  */
9807_ACEOF
9808cat confdefs.h >>conftest.$ac_ext
9809cat >>conftest.$ac_ext <<_ACEOF
9810/* end confdefs.h.  */
9811/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9812   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9813#define shl_load innocuous_shl_load
9814
9815/* System header to define __stub macros and hopefully few prototypes,
9816    which can conflict with char shl_load (); below.
9817    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9818    <limits.h> exists even on freestanding compilers.  */
9819
9820#ifdef __STDC__
9821# include <limits.h>
9822#else
9823# include <assert.h>
9824#endif
9825
9826#undef shl_load
9827
9828/* Override any GCC internal prototype to avoid an error.
9829   Use char because int might match the return type of a GCC
9830   builtin and then its argument prototype would still apply.  */
9831#ifdef __cplusplus
9832extern "C"
9833#endif
9834char shl_load ();
9835/* The GNU C library defines this for functions which it implements
9836    to always fail with ENOSYS.  Some functions are actually named
9837    something starting with __ and the normal name is an alias.  */
9838#if defined __stub_shl_load || defined __stub___shl_load
9839choke me
9840#endif
9841
9842int
9843main ()
9844{
9845return shl_load ();
9846  ;
9847  return 0;
9848}
9849_ACEOF
9850rm -f conftest.$ac_objext conftest$ac_exeext
9851if { (ac_try="$ac_link"
9852case "(($ac_try" in
9853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854  *) ac_try_echo=$ac_try;;
9855esac
9856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9857  (eval "$ac_link") 2>conftest.er1
9858  ac_status=$?
9859  grep -v '^ *+' conftest.er1 >conftest.err
9860  rm -f conftest.er1
9861  cat conftest.err >&5
9862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863  (exit $ac_status); } && {
9864	 test -z "$ac_c_werror_flag" ||
9865	 test ! -s conftest.err
9866       } && test -s conftest$ac_exeext &&
9867       $as_test_x conftest$ac_exeext; then
9868  ac_cv_func_shl_load=yes
9869else
9870  echo "$as_me: failed program was:" >&5
9871sed 's/^/| /' conftest.$ac_ext >&5
9872
9873	ac_cv_func_shl_load=no
9874fi
9875
9876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9877      conftest$ac_exeext conftest.$ac_ext
9878fi
9879{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9880echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9881if test $ac_cv_func_shl_load = yes; then
9882  lt_cv_dlopen="shl_load"
9883else
9884  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9885echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9886if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9887  echo $ECHO_N "(cached) $ECHO_C" >&6
9888else
9889  ac_check_lib_save_LIBS=$LIBS
9890LIBS="-ldld  $LIBS"
9891cat >conftest.$ac_ext <<_ACEOF
9892/* confdefs.h.  */
9893_ACEOF
9894cat confdefs.h >>conftest.$ac_ext
9895cat >>conftest.$ac_ext <<_ACEOF
9896/* end confdefs.h.  */
9897
9898/* Override any GCC internal prototype to avoid an error.
9899   Use char because int might match the return type of a GCC
9900   builtin and then its argument prototype would still apply.  */
9901#ifdef __cplusplus
9902extern "C"
9903#endif
9904char shl_load ();
9905int
9906main ()
9907{
9908return shl_load ();
9909  ;
9910  return 0;
9911}
9912_ACEOF
9913rm -f conftest.$ac_objext conftest$ac_exeext
9914if { (ac_try="$ac_link"
9915case "(($ac_try" in
9916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917  *) ac_try_echo=$ac_try;;
9918esac
9919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920  (eval "$ac_link") 2>conftest.er1
9921  ac_status=$?
9922  grep -v '^ *+' conftest.er1 >conftest.err
9923  rm -f conftest.er1
9924  cat conftest.err >&5
9925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926  (exit $ac_status); } && {
9927	 test -z "$ac_c_werror_flag" ||
9928	 test ! -s conftest.err
9929       } && test -s conftest$ac_exeext &&
9930       $as_test_x conftest$ac_exeext; then
9931  ac_cv_lib_dld_shl_load=yes
9932else
9933  echo "$as_me: failed program was:" >&5
9934sed 's/^/| /' conftest.$ac_ext >&5
9935
9936	ac_cv_lib_dld_shl_load=no
9937fi
9938
9939rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9940      conftest$ac_exeext conftest.$ac_ext
9941LIBS=$ac_check_lib_save_LIBS
9942fi
9943{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9944echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9945if test $ac_cv_lib_dld_shl_load = yes; then
9946  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9947else
9948  { echo "$as_me:$LINENO: checking for dlopen" >&5
9949echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9950if test "${ac_cv_func_dlopen+set}" = set; then
9951  echo $ECHO_N "(cached) $ECHO_C" >&6
9952else
9953  cat >conftest.$ac_ext <<_ACEOF
9954/* confdefs.h.  */
9955_ACEOF
9956cat confdefs.h >>conftest.$ac_ext
9957cat >>conftest.$ac_ext <<_ACEOF
9958/* end confdefs.h.  */
9959/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9960   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9961#define dlopen innocuous_dlopen
9962
9963/* System header to define __stub macros and hopefully few prototypes,
9964    which can conflict with char dlopen (); below.
9965    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9966    <limits.h> exists even on freestanding compilers.  */
9967
9968#ifdef __STDC__
9969# include <limits.h>
9970#else
9971# include <assert.h>
9972#endif
9973
9974#undef dlopen
9975
9976/* Override any GCC internal prototype to avoid an error.
9977   Use char because int might match the return type of a GCC
9978   builtin and then its argument prototype would still apply.  */
9979#ifdef __cplusplus
9980extern "C"
9981#endif
9982char dlopen ();
9983/* The GNU C library defines this for functions which it implements
9984    to always fail with ENOSYS.  Some functions are actually named
9985    something starting with __ and the normal name is an alias.  */
9986#if defined __stub_dlopen || defined __stub___dlopen
9987choke me
9988#endif
9989
9990int
9991main ()
9992{
9993return dlopen ();
9994  ;
9995  return 0;
9996}
9997_ACEOF
9998rm -f conftest.$ac_objext conftest$ac_exeext
9999if { (ac_try="$ac_link"
10000case "(($ac_try" in
10001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10002  *) ac_try_echo=$ac_try;;
10003esac
10004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10005  (eval "$ac_link") 2>conftest.er1
10006  ac_status=$?
10007  grep -v '^ *+' conftest.er1 >conftest.err
10008  rm -f conftest.er1
10009  cat conftest.err >&5
10010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011  (exit $ac_status); } && {
10012	 test -z "$ac_c_werror_flag" ||
10013	 test ! -s conftest.err
10014       } && test -s conftest$ac_exeext &&
10015       $as_test_x conftest$ac_exeext; then
10016  ac_cv_func_dlopen=yes
10017else
10018  echo "$as_me: failed program was:" >&5
10019sed 's/^/| /' conftest.$ac_ext >&5
10020
10021	ac_cv_func_dlopen=no
10022fi
10023
10024rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10025      conftest$ac_exeext conftest.$ac_ext
10026fi
10027{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10028echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10029if test $ac_cv_func_dlopen = yes; then
10030  lt_cv_dlopen="dlopen"
10031else
10032  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10033echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10034if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10035  echo $ECHO_N "(cached) $ECHO_C" >&6
10036else
10037  ac_check_lib_save_LIBS=$LIBS
10038LIBS="-ldl  $LIBS"
10039cat >conftest.$ac_ext <<_ACEOF
10040/* confdefs.h.  */
10041_ACEOF
10042cat confdefs.h >>conftest.$ac_ext
10043cat >>conftest.$ac_ext <<_ACEOF
10044/* end confdefs.h.  */
10045
10046/* Override any GCC internal prototype to avoid an error.
10047   Use char because int might match the return type of a GCC
10048   builtin and then its argument prototype would still apply.  */
10049#ifdef __cplusplus
10050extern "C"
10051#endif
10052char dlopen ();
10053int
10054main ()
10055{
10056return dlopen ();
10057  ;
10058  return 0;
10059}
10060_ACEOF
10061rm -f conftest.$ac_objext conftest$ac_exeext
10062if { (ac_try="$ac_link"
10063case "(($ac_try" in
10064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065  *) ac_try_echo=$ac_try;;
10066esac
10067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068  (eval "$ac_link") 2>conftest.er1
10069  ac_status=$?
10070  grep -v '^ *+' conftest.er1 >conftest.err
10071  rm -f conftest.er1
10072  cat conftest.err >&5
10073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074  (exit $ac_status); } && {
10075	 test -z "$ac_c_werror_flag" ||
10076	 test ! -s conftest.err
10077       } && test -s conftest$ac_exeext &&
10078       $as_test_x conftest$ac_exeext; then
10079  ac_cv_lib_dl_dlopen=yes
10080else
10081  echo "$as_me: failed program was:" >&5
10082sed 's/^/| /' conftest.$ac_ext >&5
10083
10084	ac_cv_lib_dl_dlopen=no
10085fi
10086
10087rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10088      conftest$ac_exeext conftest.$ac_ext
10089LIBS=$ac_check_lib_save_LIBS
10090fi
10091{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10092echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10093if test $ac_cv_lib_dl_dlopen = yes; then
10094  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10095else
10096  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10097echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10098if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10099  echo $ECHO_N "(cached) $ECHO_C" >&6
10100else
10101  ac_check_lib_save_LIBS=$LIBS
10102LIBS="-lsvld  $LIBS"
10103cat >conftest.$ac_ext <<_ACEOF
10104/* confdefs.h.  */
10105_ACEOF
10106cat confdefs.h >>conftest.$ac_ext
10107cat >>conftest.$ac_ext <<_ACEOF
10108/* end confdefs.h.  */
10109
10110/* Override any GCC internal prototype to avoid an error.
10111   Use char because int might match the return type of a GCC
10112   builtin and then its argument prototype would still apply.  */
10113#ifdef __cplusplus
10114extern "C"
10115#endif
10116char dlopen ();
10117int
10118main ()
10119{
10120return dlopen ();
10121  ;
10122  return 0;
10123}
10124_ACEOF
10125rm -f conftest.$ac_objext conftest$ac_exeext
10126if { (ac_try="$ac_link"
10127case "(($ac_try" in
10128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129  *) ac_try_echo=$ac_try;;
10130esac
10131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10132  (eval "$ac_link") 2>conftest.er1
10133  ac_status=$?
10134  grep -v '^ *+' conftest.er1 >conftest.err
10135  rm -f conftest.er1
10136  cat conftest.err >&5
10137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138  (exit $ac_status); } && {
10139	 test -z "$ac_c_werror_flag" ||
10140	 test ! -s conftest.err
10141       } && test -s conftest$ac_exeext &&
10142       $as_test_x conftest$ac_exeext; then
10143  ac_cv_lib_svld_dlopen=yes
10144else
10145  echo "$as_me: failed program was:" >&5
10146sed 's/^/| /' conftest.$ac_ext >&5
10147
10148	ac_cv_lib_svld_dlopen=no
10149fi
10150
10151rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10152      conftest$ac_exeext conftest.$ac_ext
10153LIBS=$ac_check_lib_save_LIBS
10154fi
10155{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10156echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10157if test $ac_cv_lib_svld_dlopen = yes; then
10158  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10159else
10160  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10161echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10162if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10163  echo $ECHO_N "(cached) $ECHO_C" >&6
10164else
10165  ac_check_lib_save_LIBS=$LIBS
10166LIBS="-ldld  $LIBS"
10167cat >conftest.$ac_ext <<_ACEOF
10168/* confdefs.h.  */
10169_ACEOF
10170cat confdefs.h >>conftest.$ac_ext
10171cat >>conftest.$ac_ext <<_ACEOF
10172/* end confdefs.h.  */
10173
10174/* Override any GCC internal prototype to avoid an error.
10175   Use char because int might match the return type of a GCC
10176   builtin and then its argument prototype would still apply.  */
10177#ifdef __cplusplus
10178extern "C"
10179#endif
10180char dld_link ();
10181int
10182main ()
10183{
10184return dld_link ();
10185  ;
10186  return 0;
10187}
10188_ACEOF
10189rm -f conftest.$ac_objext conftest$ac_exeext
10190if { (ac_try="$ac_link"
10191case "(($ac_try" in
10192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10193  *) ac_try_echo=$ac_try;;
10194esac
10195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10196  (eval "$ac_link") 2>conftest.er1
10197  ac_status=$?
10198  grep -v '^ *+' conftest.er1 >conftest.err
10199  rm -f conftest.er1
10200  cat conftest.err >&5
10201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202  (exit $ac_status); } && {
10203	 test -z "$ac_c_werror_flag" ||
10204	 test ! -s conftest.err
10205       } && test -s conftest$ac_exeext &&
10206       $as_test_x conftest$ac_exeext; then
10207  ac_cv_lib_dld_dld_link=yes
10208else
10209  echo "$as_me: failed program was:" >&5
10210sed 's/^/| /' conftest.$ac_ext >&5
10211
10212	ac_cv_lib_dld_dld_link=no
10213fi
10214
10215rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10216      conftest$ac_exeext conftest.$ac_ext
10217LIBS=$ac_check_lib_save_LIBS
10218fi
10219{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10220echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10221if test $ac_cv_lib_dld_dld_link = yes; then
10222  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10223fi
10224
10225
10226fi
10227
10228
10229fi
10230
10231
10232fi
10233
10234
10235fi
10236
10237
10238fi
10239
10240    ;;
10241  esac
10242
10243  if test "x$lt_cv_dlopen" != xno; then
10244    enable_dlopen=yes
10245  else
10246    enable_dlopen=no
10247  fi
10248
10249  case $lt_cv_dlopen in
10250  dlopen)
10251    save_CPPFLAGS="$CPPFLAGS"
10252    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10253
10254    save_LDFLAGS="$LDFLAGS"
10255    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10256
10257    save_LIBS="$LIBS"
10258    LIBS="$lt_cv_dlopen_libs $LIBS"
10259
10260    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10261echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10262if test "${lt_cv_dlopen_self+set}" = set; then
10263  echo $ECHO_N "(cached) $ECHO_C" >&6
10264else
10265  	  if test "$cross_compiling" = yes; then :
10266  lt_cv_dlopen_self=cross
10267else
10268  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10269  lt_status=$lt_dlunknown
10270  cat > conftest.$ac_ext <<EOF
10271#line 10271 "configure"
10272#include "confdefs.h"
10273
10274#if HAVE_DLFCN_H
10275#include <dlfcn.h>
10276#endif
10277
10278#include <stdio.h>
10279
10280#ifdef RTLD_GLOBAL
10281#  define LT_DLGLOBAL		RTLD_GLOBAL
10282#else
10283#  ifdef DL_GLOBAL
10284#    define LT_DLGLOBAL		DL_GLOBAL
10285#  else
10286#    define LT_DLGLOBAL		0
10287#  endif
10288#endif
10289
10290/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10291   find out it does not work in some platform. */
10292#ifndef LT_DLLAZY_OR_NOW
10293#  ifdef RTLD_LAZY
10294#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10295#  else
10296#    ifdef DL_LAZY
10297#      define LT_DLLAZY_OR_NOW		DL_LAZY
10298#    else
10299#      ifdef RTLD_NOW
10300#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10301#      else
10302#        ifdef DL_NOW
10303#          define LT_DLLAZY_OR_NOW	DL_NOW
10304#        else
10305#          define LT_DLLAZY_OR_NOW	0
10306#        endif
10307#      endif
10308#    endif
10309#  endif
10310#endif
10311
10312#ifdef __cplusplus
10313extern "C" void exit (int);
10314#endif
10315
10316void fnord() { int i=42;}
10317int main ()
10318{
10319  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10320  int status = $lt_dlunknown;
10321
10322  if (self)
10323    {
10324      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10325      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10326      /* dlclose (self); */
10327    }
10328  else
10329    puts (dlerror ());
10330
10331    exit (status);
10332}
10333EOF
10334  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10335  (eval $ac_link) 2>&5
10336  ac_status=$?
10337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10339    (./conftest; exit; ) >&5 2>/dev/null
10340    lt_status=$?
10341    case x$lt_status in
10342      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10343      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10344      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10345    esac
10346  else :
10347    # compilation failed
10348    lt_cv_dlopen_self=no
10349  fi
10350fi
10351rm -fr conftest*
10352
10353
10354fi
10355{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10356echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10357
10358    if test "x$lt_cv_dlopen_self" = xyes; then
10359      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10360      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10361echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10362if test "${lt_cv_dlopen_self_static+set}" = set; then
10363  echo $ECHO_N "(cached) $ECHO_C" >&6
10364else
10365  	  if test "$cross_compiling" = yes; then :
10366  lt_cv_dlopen_self_static=cross
10367else
10368  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10369  lt_status=$lt_dlunknown
10370  cat > conftest.$ac_ext <<EOF
10371#line 10371 "configure"
10372#include "confdefs.h"
10373
10374#if HAVE_DLFCN_H
10375#include <dlfcn.h>
10376#endif
10377
10378#include <stdio.h>
10379
10380#ifdef RTLD_GLOBAL
10381#  define LT_DLGLOBAL		RTLD_GLOBAL
10382#else
10383#  ifdef DL_GLOBAL
10384#    define LT_DLGLOBAL		DL_GLOBAL
10385#  else
10386#    define LT_DLGLOBAL		0
10387#  endif
10388#endif
10389
10390/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10391   find out it does not work in some platform. */
10392#ifndef LT_DLLAZY_OR_NOW
10393#  ifdef RTLD_LAZY
10394#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10395#  else
10396#    ifdef DL_LAZY
10397#      define LT_DLLAZY_OR_NOW		DL_LAZY
10398#    else
10399#      ifdef RTLD_NOW
10400#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10401#      else
10402#        ifdef DL_NOW
10403#          define LT_DLLAZY_OR_NOW	DL_NOW
10404#        else
10405#          define LT_DLLAZY_OR_NOW	0
10406#        endif
10407#      endif
10408#    endif
10409#  endif
10410#endif
10411
10412#ifdef __cplusplus
10413extern "C" void exit (int);
10414#endif
10415
10416void fnord() { int i=42;}
10417int main ()
10418{
10419  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10420  int status = $lt_dlunknown;
10421
10422  if (self)
10423    {
10424      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10425      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10426      /* dlclose (self); */
10427    }
10428  else
10429    puts (dlerror ());
10430
10431    exit (status);
10432}
10433EOF
10434  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10435  (eval $ac_link) 2>&5
10436  ac_status=$?
10437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10439    (./conftest; exit; ) >&5 2>/dev/null
10440    lt_status=$?
10441    case x$lt_status in
10442      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10443      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10444      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10445    esac
10446  else :
10447    # compilation failed
10448    lt_cv_dlopen_self_static=no
10449  fi
10450fi
10451rm -fr conftest*
10452
10453
10454fi
10455{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10456echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10457    fi
10458
10459    CPPFLAGS="$save_CPPFLAGS"
10460    LDFLAGS="$save_LDFLAGS"
10461    LIBS="$save_LIBS"
10462    ;;
10463  esac
10464
10465  case $lt_cv_dlopen_self in
10466  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10467  *) enable_dlopen_self=unknown ;;
10468  esac
10469
10470  case $lt_cv_dlopen_self_static in
10471  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10472  *) enable_dlopen_self_static=unknown ;;
10473  esac
10474fi
10475
10476
10477# Report which library types will actually be built
10478{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10479echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10480{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10481echo "${ECHO_T}$can_build_shared" >&6; }
10482
10483{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10484echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10485test "$can_build_shared" = "no" && enable_shared=no
10486
10487# On AIX, shared libraries and static libraries use the same namespace, and
10488# are all built from PIC.
10489case $host_os in
10490aix3*)
10491  test "$enable_shared" = yes && enable_static=no
10492  if test -n "$RANLIB"; then
10493    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10494    postinstall_cmds='$RANLIB $lib'
10495  fi
10496  ;;
10497
10498aix[4-9]*)
10499  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10500    test "$enable_shared" = yes && enable_static=no
10501  fi
10502    ;;
10503esac
10504{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10505echo "${ECHO_T}$enable_shared" >&6; }
10506
10507{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10508echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10509# Make sure either enable_shared or enable_static is yes.
10510test "$enable_shared" = yes || enable_static=yes
10511{ echo "$as_me:$LINENO: result: $enable_static" >&5
10512echo "${ECHO_T}$enable_static" >&6; }
10513
10514# The else clause should only fire when bootstrapping the
10515# libtool distribution, otherwise you forgot to ship ltmain.sh
10516# with your package, and you will get complaints that there are
10517# no rules to generate ltmain.sh.
10518if test -f "$ltmain"; then
10519  # See if we are running on zsh, and set the options which allow our commands through
10520  # without removal of \ escapes.
10521  if test -n "${ZSH_VERSION+set}" ; then
10522    setopt NO_GLOB_SUBST
10523  fi
10524  # Now quote all the things that may contain metacharacters while being
10525  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10526  # variables and quote the copies for generation of the libtool script.
10527  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10528    SED SHELL STRIP \
10529    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10530    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10531    deplibs_check_method reload_flag reload_cmds need_locks \
10532    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10533    lt_cv_sys_global_symbol_to_c_name_address \
10534    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10535    old_postinstall_cmds old_postuninstall_cmds \
10536    compiler \
10537    CC \
10538    LD \
10539    lt_prog_compiler_wl \
10540    lt_prog_compiler_pic \
10541    lt_prog_compiler_static \
10542    lt_prog_compiler_no_builtin_flag \
10543    export_dynamic_flag_spec \
10544    thread_safe_flag_spec \
10545    whole_archive_flag_spec \
10546    enable_shared_with_static_runtimes \
10547    old_archive_cmds \
10548    old_archive_from_new_cmds \
10549    predep_objects \
10550    postdep_objects \
10551    predeps \
10552    postdeps \
10553    compiler_lib_search_path \
10554    compiler_lib_search_dirs \
10555    archive_cmds \
10556    archive_expsym_cmds \
10557    postinstall_cmds \
10558    postuninstall_cmds \
10559    old_archive_from_expsyms_cmds \
10560    allow_undefined_flag \
10561    no_undefined_flag \
10562    export_symbols_cmds \
10563    hardcode_libdir_flag_spec \
10564    hardcode_libdir_flag_spec_ld \
10565    hardcode_libdir_separator \
10566    hardcode_automatic \
10567    module_cmds \
10568    module_expsym_cmds \
10569    lt_cv_prog_compiler_c_o \
10570    fix_srcfile_path \
10571    exclude_expsyms \
10572    include_expsyms; do
10573
10574    case $var in
10575    old_archive_cmds | \
10576    old_archive_from_new_cmds | \
10577    archive_cmds | \
10578    archive_expsym_cmds | \
10579    module_cmds | \
10580    module_expsym_cmds | \
10581    old_archive_from_expsyms_cmds | \
10582    export_symbols_cmds | \
10583    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10584    postinstall_cmds | postuninstall_cmds | \
10585    old_postinstall_cmds | old_postuninstall_cmds | \
10586    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10587      # Double-quote double-evaled strings.
10588      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10589      ;;
10590    *)
10591      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10592      ;;
10593    esac
10594  done
10595
10596  case $lt_echo in
10597  *'\$0 --fallback-echo"')
10598    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10599    ;;
10600  esac
10601
10602cfgfile="${ofile}T"
10603  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10604  $rm -f "$cfgfile"
10605  { echo "$as_me:$LINENO: creating $ofile" >&5
10606echo "$as_me: creating $ofile" >&6;}
10607
10608  cat <<__EOF__ >> "$cfgfile"
10609#! $SHELL
10610
10611# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10612# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10613# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10614#
10615# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10616# Free Software Foundation, Inc.
10617#
10618# This file is part of GNU Libtool:
10619# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10620#
10621# This program is free software; you can redistribute it and/or modify
10622# it under the terms of the GNU General Public License as published by
10623# the Free Software Foundation; either version 2 of the License, or
10624# (at your option) any later version.
10625#
10626# This program is distributed in the hope that it will be useful, but
10627# WITHOUT ANY WARRANTY; without even the implied warranty of
10628# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10629# General Public License for more details.
10630#
10631# You should have received a copy of the GNU General Public License
10632# along with this program; if not, write to the Free Software
10633# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10634#
10635# As a special exception to the GNU General Public License, if you
10636# distribute this file as part of a program that contains a
10637# configuration script generated by Autoconf, you may include it under
10638# the same distribution terms that you use for the rest of that program.
10639
10640# A sed program that does not truncate output.
10641SED=$lt_SED
10642
10643# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10644Xsed="$SED -e 1s/^X//"
10645
10646# The HP-UX ksh and POSIX shell print the target directory to stdout
10647# if CDPATH is set.
10648(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10649
10650# The names of the tagged configurations supported by this script.
10651available_tags=
10652
10653# ### BEGIN LIBTOOL CONFIG
10654
10655# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10656
10657# Shell to use when invoking shell scripts.
10658SHELL=$lt_SHELL
10659
10660# Whether or not to build shared libraries.
10661build_libtool_libs=$enable_shared
10662
10663# Whether or not to build static libraries.
10664build_old_libs=$enable_static
10665
10666# Whether or not to add -lc for building shared libraries.
10667build_libtool_need_lc=$archive_cmds_need_lc
10668
10669# Whether or not to disallow shared libs when runtime libs are static
10670allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10671
10672# Whether or not to optimize for fast installation.
10673fast_install=$enable_fast_install
10674
10675# The host system.
10676host_alias=$host_alias
10677host=$host
10678host_os=$host_os
10679
10680# The build system.
10681build_alias=$build_alias
10682build=$build
10683build_os=$build_os
10684
10685# An echo program that does not interpret backslashes.
10686echo=$lt_echo
10687
10688# The archiver.
10689AR=$lt_AR
10690AR_FLAGS=$lt_AR_FLAGS
10691
10692# A C compiler.
10693LTCC=$lt_LTCC
10694
10695# LTCC compiler flags.
10696LTCFLAGS=$lt_LTCFLAGS
10697
10698# A language-specific compiler.
10699CC=$lt_compiler
10700
10701# Is the compiler the GNU C compiler?
10702with_gcc=$GCC
10703
10704# An ERE matcher.
10705EGREP=$lt_EGREP
10706
10707# The linker used to build libraries.
10708LD=$lt_LD
10709
10710# Whether we need hard or soft links.
10711LN_S=$lt_LN_S
10712
10713# A BSD-compatible nm program.
10714NM=$lt_NM
10715
10716# A symbol stripping program
10717STRIP=$lt_STRIP
10718
10719# Used to examine libraries when file_magic_cmd begins "file"
10720MAGIC_CMD=$MAGIC_CMD
10721
10722# Used on cygwin: DLL creation program.
10723DLLTOOL="$DLLTOOL"
10724
10725# Used on cygwin: object dumper.
10726OBJDUMP="$OBJDUMP"
10727
10728# Used on cygwin: assembler.
10729AS="$AS"
10730
10731# The name of the directory that contains temporary libtool files.
10732objdir=$objdir
10733
10734# How to create reloadable object files.
10735reload_flag=$lt_reload_flag
10736reload_cmds=$lt_reload_cmds
10737
10738# How to pass a linker flag through the compiler.
10739wl=$lt_lt_prog_compiler_wl
10740
10741# Object file suffix (normally "o").
10742objext="$ac_objext"
10743
10744# Old archive suffix (normally "a").
10745libext="$libext"
10746
10747# Shared library suffix (normally ".so").
10748shrext_cmds='$shrext_cmds'
10749
10750# Executable file suffix (normally "").
10751exeext="$exeext"
10752
10753# Additional compiler flags for building library objects.
10754pic_flag=$lt_lt_prog_compiler_pic
10755pic_mode=$pic_mode
10756
10757# What is the maximum length of a command?
10758max_cmd_len=$lt_cv_sys_max_cmd_len
10759
10760# Does compiler simultaneously support -c and -o options?
10761compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10762
10763# Must we lock files when doing compilation?
10764need_locks=$lt_need_locks
10765
10766# Do we need the lib prefix for modules?
10767need_lib_prefix=$need_lib_prefix
10768
10769# Do we need a version for libraries?
10770need_version=$need_version
10771
10772# Whether dlopen is supported.
10773dlopen_support=$enable_dlopen
10774
10775# Whether dlopen of programs is supported.
10776dlopen_self=$enable_dlopen_self
10777
10778# Whether dlopen of statically linked programs is supported.
10779dlopen_self_static=$enable_dlopen_self_static
10780
10781# Compiler flag to prevent dynamic linking.
10782link_static_flag=$lt_lt_prog_compiler_static
10783
10784# Compiler flag to turn off builtin functions.
10785no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10786
10787# Compiler flag to allow reflexive dlopens.
10788export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10789
10790# Compiler flag to generate shared objects directly from archives.
10791whole_archive_flag_spec=$lt_whole_archive_flag_spec
10792
10793# Compiler flag to generate thread-safe objects.
10794thread_safe_flag_spec=$lt_thread_safe_flag_spec
10795
10796# Library versioning type.
10797version_type=$version_type
10798
10799# Format of library name prefix.
10800libname_spec=$lt_libname_spec
10801
10802# List of archive names.  First name is the real one, the rest are links.
10803# The last name is the one that the linker finds with -lNAME.
10804library_names_spec=$lt_library_names_spec
10805
10806# The coded name of the library, if different from the real name.
10807soname_spec=$lt_soname_spec
10808
10809# Commands used to build and install an old-style archive.
10810RANLIB=$lt_RANLIB
10811old_archive_cmds=$lt_old_archive_cmds
10812old_postinstall_cmds=$lt_old_postinstall_cmds
10813old_postuninstall_cmds=$lt_old_postuninstall_cmds
10814
10815# Create an old-style archive from a shared archive.
10816old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10817
10818# Create a temporary old-style archive to link instead of a shared archive.
10819old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10820
10821# Commands used to build and install a shared archive.
10822archive_cmds=$lt_archive_cmds
10823archive_expsym_cmds=$lt_archive_expsym_cmds
10824postinstall_cmds=$lt_postinstall_cmds
10825postuninstall_cmds=$lt_postuninstall_cmds
10826
10827# Commands used to build a loadable module (assumed same as above if empty)
10828module_cmds=$lt_module_cmds
10829module_expsym_cmds=$lt_module_expsym_cmds
10830
10831# Commands to strip libraries.
10832old_striplib=$lt_old_striplib
10833striplib=$lt_striplib
10834
10835# Dependencies to place before the objects being linked to create a
10836# shared library.
10837predep_objects=$lt_predep_objects
10838
10839# Dependencies to place after the objects being linked to create a
10840# shared library.
10841postdep_objects=$lt_postdep_objects
10842
10843# Dependencies to place before the objects being linked to create a
10844# shared library.
10845predeps=$lt_predeps
10846
10847# Dependencies to place after the objects being linked to create a
10848# shared library.
10849postdeps=$lt_postdeps
10850
10851# The directories searched by this compiler when creating a shared
10852# library
10853compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10854
10855# The library search path used internally by the compiler when linking
10856# a shared library.
10857compiler_lib_search_path=$lt_compiler_lib_search_path
10858
10859# Method to check whether dependent libraries are shared objects.
10860deplibs_check_method=$lt_deplibs_check_method
10861
10862# Command to use when deplibs_check_method == file_magic.
10863file_magic_cmd=$lt_file_magic_cmd
10864
10865# Flag that allows shared libraries with undefined symbols to be built.
10866allow_undefined_flag=$lt_allow_undefined_flag
10867
10868# Flag that forces no undefined symbols.
10869no_undefined_flag=$lt_no_undefined_flag
10870
10871# Commands used to finish a libtool library installation in a directory.
10872finish_cmds=$lt_finish_cmds
10873
10874# Same as above, but a single script fragment to be evaled but not shown.
10875finish_eval=$lt_finish_eval
10876
10877# Take the output of nm and produce a listing of raw symbols and C names.
10878global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10879
10880# Transform the output of nm in a proper C declaration
10881global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10882
10883# Transform the output of nm in a C name address pair
10884global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10885
10886# This is the shared library runtime path variable.
10887runpath_var=$runpath_var
10888
10889# This is the shared library path variable.
10890shlibpath_var=$shlibpath_var
10891
10892# Is shlibpath searched before the hard-coded library search path?
10893shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10894
10895# How to hardcode a shared library path into an executable.
10896hardcode_action=$hardcode_action
10897
10898# Whether we should hardcode library paths into libraries.
10899hardcode_into_libs=$hardcode_into_libs
10900
10901# Flag to hardcode \$libdir into a binary during linking.
10902# This must work even if \$libdir does not exist.
10903hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10904
10905# If ld is used when linking, flag to hardcode \$libdir into
10906# a binary during linking. This must work even if \$libdir does
10907# not exist.
10908hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10909
10910# Whether we need a single -rpath flag with a separated argument.
10911hardcode_libdir_separator=$lt_hardcode_libdir_separator
10912
10913# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10914# resulting binary.
10915hardcode_direct=$hardcode_direct
10916
10917# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10918# resulting binary.
10919hardcode_minus_L=$hardcode_minus_L
10920
10921# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10922# the resulting binary.
10923hardcode_shlibpath_var=$hardcode_shlibpath_var
10924
10925# Set to yes if building a shared library automatically hardcodes DIR into the library
10926# and all subsequent libraries and executables linked against it.
10927hardcode_automatic=$hardcode_automatic
10928
10929# Variables whose values should be saved in libtool wrapper scripts and
10930# restored at relink time.
10931variables_saved_for_relink="$variables_saved_for_relink"
10932
10933# Whether libtool must link a program against all its dependency libraries.
10934link_all_deplibs=$link_all_deplibs
10935
10936# Compile-time system search path for libraries
10937sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10938
10939# Run-time system search path for libraries
10940sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10941
10942# Fix the shell variable \$srcfile for the compiler.
10943fix_srcfile_path=$lt_fix_srcfile_path
10944
10945# Set to yes if exported symbols are required.
10946always_export_symbols=$always_export_symbols
10947
10948# The commands to list exported symbols.
10949export_symbols_cmds=$lt_export_symbols_cmds
10950
10951# The commands to extract the exported symbol list from a shared archive.
10952extract_expsyms_cmds=$lt_extract_expsyms_cmds
10953
10954# Symbols that should not be listed in the preloaded symbols.
10955exclude_expsyms=$lt_exclude_expsyms
10956
10957# Symbols that must always be exported.
10958include_expsyms=$lt_include_expsyms
10959
10960# ### END LIBTOOL CONFIG
10961
10962__EOF__
10963
10964
10965  case $host_os in
10966  aix3*)
10967    cat <<\EOF >> "$cfgfile"
10968
10969# AIX sometimes has problems with the GCC collect2 program.  For some
10970# reason, if we set the COLLECT_NAMES environment variable, the problems
10971# vanish in a puff of smoke.
10972if test "X${COLLECT_NAMES+set}" != Xset; then
10973  COLLECT_NAMES=
10974  export COLLECT_NAMES
10975fi
10976EOF
10977    ;;
10978  esac
10979
10980  # We use sed instead of cat because bash on DJGPP gets confused if
10981  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10982  # text mode, it properly converts lines to CR/LF.  This bash problem
10983  # is reportedly fixed, but why not run on old versions too?
10984  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10985
10986  mv -f "$cfgfile" "$ofile" || \
10987    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10988  chmod +x "$ofile"
10989
10990else
10991  # If there is no Makefile yet, we rely on a make rule to execute
10992  # `config.status --recheck' to rerun these tests and create the
10993  # libtool script then.
10994  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10995  if test -f "$ltmain_in"; then
10996    test -f Makefile && make "$ltmain"
10997  fi
10998fi
10999
11000
11001ac_ext=c
11002ac_cpp='$CPP $CPPFLAGS'
11003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11005ac_compiler_gnu=$ac_cv_c_compiler_gnu
11006
11007CC="$lt_save_CC"
11008
11009
11010# Check whether --with-tags was given.
11011if test "${with_tags+set}" = set; then
11012  withval=$with_tags; tagnames="$withval"
11013fi
11014
11015
11016if test -f "$ltmain" && test -n "$tagnames"; then
11017  if test ! -f "${ofile}"; then
11018    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11019echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11020  fi
11021
11022  if test -z "$LTCC"; then
11023    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11024    if test -z "$LTCC"; then
11025      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11026echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11027    else
11028      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11029echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11030    fi
11031  fi
11032  if test -z "$LTCFLAGS"; then
11033    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11034  fi
11035
11036  # Extract list of available tagged configurations in $ofile.
11037  # Note that this assumes the entire list is on one line.
11038  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11039
11040  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11041  for tagname in $tagnames; do
11042    IFS="$lt_save_ifs"
11043    # Check whether tagname contains only valid characters
11044    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11045    "") ;;
11046    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11047echo "$as_me: error: invalid tag name: $tagname" >&2;}
11048   { (exit 1); exit 1; }; }
11049	;;
11050    esac
11051
11052    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11053    then
11054      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11055echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11056   { (exit 1); exit 1; }; }
11057    fi
11058
11059    # Update the list of available tags.
11060    if test -n "$tagname"; then
11061      echo appending configuration tag \"$tagname\" to $ofile
11062
11063      case $tagname in
11064      CXX)
11065	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11066	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11067	    (test "X$CXX" != "Xg++"))) ; then
11068	  ac_ext=cpp
11069ac_cpp='$CXXCPP $CPPFLAGS'
11070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11073
11074
11075
11076
11077archive_cmds_need_lc_CXX=no
11078allow_undefined_flag_CXX=
11079always_export_symbols_CXX=no
11080archive_expsym_cmds_CXX=
11081export_dynamic_flag_spec_CXX=
11082hardcode_direct_CXX=no
11083hardcode_libdir_flag_spec_CXX=
11084hardcode_libdir_flag_spec_ld_CXX=
11085hardcode_libdir_separator_CXX=
11086hardcode_minus_L_CXX=no
11087hardcode_shlibpath_var_CXX=unsupported
11088hardcode_automatic_CXX=no
11089module_cmds_CXX=
11090module_expsym_cmds_CXX=
11091link_all_deplibs_CXX=unknown
11092old_archive_cmds_CXX=$old_archive_cmds
11093no_undefined_flag_CXX=
11094whole_archive_flag_spec_CXX=
11095enable_shared_with_static_runtimes_CXX=no
11096
11097# Dependencies to place before and after the object being linked:
11098predep_objects_CXX=
11099postdep_objects_CXX=
11100predeps_CXX=
11101postdeps_CXX=
11102compiler_lib_search_path_CXX=
11103compiler_lib_search_dirs_CXX=
11104
11105# Source file extension for C++ test sources.
11106ac_ext=cpp
11107
11108# Object file extension for compiled C++ test sources.
11109objext=o
11110objext_CXX=$objext
11111
11112# Code to be used in simple compile tests
11113lt_simple_compile_test_code="int some_variable = 0;"
11114
11115# Code to be used in simple link tests
11116lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11117
11118# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11119
11120# If no C compiler was specified, use CC.
11121LTCC=${LTCC-"$CC"}
11122
11123# If no C compiler flags were specified, use CFLAGS.
11124LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11125
11126# Allow CC to be a program name with arguments.
11127compiler=$CC
11128
11129
11130# save warnings/boilerplate of simple test code
11131ac_outfile=conftest.$ac_objext
11132echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11133eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11134_lt_compiler_boilerplate=`cat conftest.err`
11135$rm conftest*
11136
11137ac_outfile=conftest.$ac_objext
11138echo "$lt_simple_link_test_code" >conftest.$ac_ext
11139eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11140_lt_linker_boilerplate=`cat conftest.err`
11141$rm -r conftest*
11142
11143
11144# Allow CC to be a program name with arguments.
11145lt_save_CC=$CC
11146lt_save_LD=$LD
11147lt_save_GCC=$GCC
11148GCC=$GXX
11149lt_save_with_gnu_ld=$with_gnu_ld
11150lt_save_path_LD=$lt_cv_path_LD
11151if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11152  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11153else
11154  $as_unset lt_cv_prog_gnu_ld
11155fi
11156if test -n "${lt_cv_path_LDCXX+set}"; then
11157  lt_cv_path_LD=$lt_cv_path_LDCXX
11158else
11159  $as_unset lt_cv_path_LD
11160fi
11161test -z "${LDCXX+set}" || LD=$LDCXX
11162CC=${CXX-"c++"}
11163compiler=$CC
11164compiler_CXX=$CC
11165for cc_temp in $compiler""; do
11166  case $cc_temp in
11167    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11168    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11169    \-*) ;;
11170    *) break;;
11171  esac
11172done
11173cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11174
11175
11176# We don't want -fno-exception wen compiling C++ code, so set the
11177# no_builtin_flag separately
11178if test "$GXX" = yes; then
11179  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11180else
11181  lt_prog_compiler_no_builtin_flag_CXX=
11182fi
11183
11184if test "$GXX" = yes; then
11185  # Set up default GNU C++ configuration
11186
11187
11188# Check whether --with-gnu-ld was given.
11189if test "${with_gnu_ld+set}" = set; then
11190  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11191else
11192  with_gnu_ld=no
11193fi
11194
11195ac_prog=ld
11196if test "$GCC" = yes; then
11197  # Check if gcc -print-prog-name=ld gives a path.
11198  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11199echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11200  case $host in
11201  *-*-mingw*)
11202    # gcc leaves a trailing carriage return which upsets mingw
11203    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11204  *)
11205    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11206  esac
11207  case $ac_prog in
11208    # Accept absolute paths.
11209    [\\/]* | ?:[\\/]*)
11210      re_direlt='/[^/][^/]*/\.\./'
11211      # Canonicalize the pathname of ld
11212      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11213      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11214	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11215      done
11216      test -z "$LD" && LD="$ac_prog"
11217      ;;
11218  "")
11219    # If it fails, then pretend we aren't using GCC.
11220    ac_prog=ld
11221    ;;
11222  *)
11223    # If it is relative, then search for the first ld in PATH.
11224    with_gnu_ld=unknown
11225    ;;
11226  esac
11227elif test "$with_gnu_ld" = yes; then
11228  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11229echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11230else
11231  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11232echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11233fi
11234if test "${lt_cv_path_LD+set}" = set; then
11235  echo $ECHO_N "(cached) $ECHO_C" >&6
11236else
11237  if test -z "$LD"; then
11238  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11239  for ac_dir in $PATH; do
11240    IFS="$lt_save_ifs"
11241    test -z "$ac_dir" && ac_dir=.
11242    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11243      lt_cv_path_LD="$ac_dir/$ac_prog"
11244      # Check to see if the program is GNU ld.  I'd rather use --version,
11245      # but apparently some variants of GNU ld only accept -v.
11246      # Break only if it was the GNU/non-GNU ld that we prefer.
11247      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11248      *GNU* | *'with BFD'*)
11249	test "$with_gnu_ld" != no && break
11250	;;
11251      *)
11252	test "$with_gnu_ld" != yes && break
11253	;;
11254      esac
11255    fi
11256  done
11257  IFS="$lt_save_ifs"
11258else
11259  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11260fi
11261fi
11262
11263LD="$lt_cv_path_LD"
11264if test -n "$LD"; then
11265  { echo "$as_me:$LINENO: result: $LD" >&5
11266echo "${ECHO_T}$LD" >&6; }
11267else
11268  { echo "$as_me:$LINENO: result: no" >&5
11269echo "${ECHO_T}no" >&6; }
11270fi
11271test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11272echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11273   { (exit 1); exit 1; }; }
11274{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11275echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11276if test "${lt_cv_prog_gnu_ld+set}" = set; then
11277  echo $ECHO_N "(cached) $ECHO_C" >&6
11278else
11279  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11280case `$LD -v 2>&1 </dev/null` in
11281*GNU* | *'with BFD'*)
11282  lt_cv_prog_gnu_ld=yes
11283  ;;
11284*)
11285  lt_cv_prog_gnu_ld=no
11286  ;;
11287esac
11288fi
11289{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11290echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11291with_gnu_ld=$lt_cv_prog_gnu_ld
11292
11293
11294
11295  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11296  # archiving commands below assume that GNU ld is being used.
11297  if test "$with_gnu_ld" = yes; then
11298    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11299    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'
11300
11301    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11302    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11303
11304    # If archive_cmds runs LD, not CC, wlarc should be empty
11305    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11306    #     investigate it a little bit more. (MM)
11307    wlarc='${wl}'
11308
11309    # ancient GNU ld didn't support --whole-archive et. al.
11310    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11311	grep 'no-whole-archive' > /dev/null; then
11312      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11313    else
11314      whole_archive_flag_spec_CXX=
11315    fi
11316  else
11317    with_gnu_ld=no
11318    wlarc=
11319
11320    # A generic and very simple default shared library creation
11321    # command for GNU C++ for the case where it uses the native
11322    # linker, instead of GNU ld.  If possible, this setting should
11323    # overridden to take advantage of the native linker features on
11324    # the platform it is being used on.
11325    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11326  fi
11327
11328  # Commands to make compiler produce verbose output that lists
11329  # what "hidden" libraries, object files and flags are used when
11330  # linking a shared library.
11331  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11332
11333else
11334  GXX=no
11335  with_gnu_ld=no
11336  wlarc=
11337fi
11338
11339# PORTME: fill in a description of your system's C++ link characteristics
11340{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11341echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11342ld_shlibs_CXX=yes
11343case $host_os in
11344  aix3*)
11345    # FIXME: insert proper C++ library support
11346    ld_shlibs_CXX=no
11347    ;;
11348  aix[4-9]*)
11349    if test "$host_cpu" = ia64; then
11350      # On IA64, the linker does run time linking by default, so we don't
11351      # have to do anything special.
11352      aix_use_runtimelinking=no
11353      exp_sym_flag='-Bexport'
11354      no_entry_flag=""
11355    else
11356      aix_use_runtimelinking=no
11357
11358      # Test if we are trying to use run time linking or normal
11359      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11360      # need to do runtime linking.
11361      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11362	for ld_flag in $LDFLAGS; do
11363	  case $ld_flag in
11364	  *-brtl*)
11365	    aix_use_runtimelinking=yes
11366	    break
11367	    ;;
11368	  esac
11369	done
11370	;;
11371      esac
11372
11373      exp_sym_flag='-bexport'
11374      no_entry_flag='-bnoentry'
11375    fi
11376
11377    # When large executables or shared objects are built, AIX ld can
11378    # have problems creating the table of contents.  If linking a library
11379    # or program results in "error TOC overflow" add -mminimal-toc to
11380    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11381    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11382
11383    archive_cmds_CXX=''
11384    hardcode_direct_CXX=yes
11385    hardcode_libdir_separator_CXX=':'
11386    link_all_deplibs_CXX=yes
11387
11388    if test "$GXX" = yes; then
11389      case $host_os in aix4.[012]|aix4.[012].*)
11390      # We only want to do this on AIX 4.2 and lower, the check
11391      # below for broken collect2 doesn't work under 4.3+
11392	collect2name=`${CC} -print-prog-name=collect2`
11393	if test -f "$collect2name" && \
11394	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11395	then
11396	  # We have reworked collect2
11397	  :
11398	else
11399	  # We have old collect2
11400	  hardcode_direct_CXX=unsupported
11401	  # It fails to find uninstalled libraries when the uninstalled
11402	  # path is not listed in the libpath.  Setting hardcode_minus_L
11403	  # to unsupported forces relinking
11404	  hardcode_minus_L_CXX=yes
11405	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11406	  hardcode_libdir_separator_CXX=
11407	fi
11408	;;
11409      esac
11410      shared_flag='-shared'
11411      if test "$aix_use_runtimelinking" = yes; then
11412	shared_flag="$shared_flag "'${wl}-G'
11413      fi
11414    else
11415      # not using gcc
11416      if test "$host_cpu" = ia64; then
11417	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11418	# chokes on -Wl,-G. The following line is correct:
11419	shared_flag='-G'
11420      else
11421	if test "$aix_use_runtimelinking" = yes; then
11422	  shared_flag='${wl}-G'
11423	else
11424	  shared_flag='${wl}-bM:SRE'
11425	fi
11426      fi
11427    fi
11428
11429    # It seems that -bexpall does not export symbols beginning with
11430    # underscore (_), so it is better to generate a list of symbols to export.
11431    always_export_symbols_CXX=yes
11432    if test "$aix_use_runtimelinking" = yes; then
11433      # Warning - without using the other runtime loading flags (-brtl),
11434      # -berok will link without error, but may produce a broken library.
11435      allow_undefined_flag_CXX='-berok'
11436      # Determine the default libpath from the value encoded in an empty executable.
11437      cat >conftest.$ac_ext <<_ACEOF
11438/* confdefs.h.  */
11439_ACEOF
11440cat confdefs.h >>conftest.$ac_ext
11441cat >>conftest.$ac_ext <<_ACEOF
11442/* end confdefs.h.  */
11443
11444int
11445main ()
11446{
11447
11448  ;
11449  return 0;
11450}
11451_ACEOF
11452rm -f conftest.$ac_objext conftest$ac_exeext
11453if { (ac_try="$ac_link"
11454case "(($ac_try" in
11455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456  *) ac_try_echo=$ac_try;;
11457esac
11458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459  (eval "$ac_link") 2>conftest.er1
11460  ac_status=$?
11461  grep -v '^ *+' conftest.er1 >conftest.err
11462  rm -f conftest.er1
11463  cat conftest.err >&5
11464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465  (exit $ac_status); } && {
11466	 test -z "$ac_cxx_werror_flag" ||
11467	 test ! -s conftest.err
11468       } && test -s conftest$ac_exeext &&
11469       $as_test_x conftest$ac_exeext; then
11470
11471lt_aix_libpath_sed='
11472    /Import File Strings/,/^$/ {
11473	/^0/ {
11474	    s/^0  *\(.*\)$/\1/
11475	    p
11476	}
11477    }'
11478aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11479# Check for a 64-bit object if we didn't find anything.
11480if test -z "$aix_libpath"; then
11481  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11482fi
11483else
11484  echo "$as_me: failed program was:" >&5
11485sed 's/^/| /' conftest.$ac_ext >&5
11486
11487
11488fi
11489
11490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11491      conftest$ac_exeext conftest.$ac_ext
11492if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11493
11494      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11495
11496      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"
11497     else
11498      if test "$host_cpu" = ia64; then
11499	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11500	allow_undefined_flag_CXX="-z nodefs"
11501	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"
11502      else
11503	# Determine the default libpath from the value encoded in an empty executable.
11504	cat >conftest.$ac_ext <<_ACEOF
11505/* confdefs.h.  */
11506_ACEOF
11507cat confdefs.h >>conftest.$ac_ext
11508cat >>conftest.$ac_ext <<_ACEOF
11509/* end confdefs.h.  */
11510
11511int
11512main ()
11513{
11514
11515  ;
11516  return 0;
11517}
11518_ACEOF
11519rm -f conftest.$ac_objext conftest$ac_exeext
11520if { (ac_try="$ac_link"
11521case "(($ac_try" in
11522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523  *) ac_try_echo=$ac_try;;
11524esac
11525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526  (eval "$ac_link") 2>conftest.er1
11527  ac_status=$?
11528  grep -v '^ *+' conftest.er1 >conftest.err
11529  rm -f conftest.er1
11530  cat conftest.err >&5
11531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532  (exit $ac_status); } && {
11533	 test -z "$ac_cxx_werror_flag" ||
11534	 test ! -s conftest.err
11535       } && test -s conftest$ac_exeext &&
11536       $as_test_x conftest$ac_exeext; then
11537
11538lt_aix_libpath_sed='
11539    /Import File Strings/,/^$/ {
11540	/^0/ {
11541	    s/^0  *\(.*\)$/\1/
11542	    p
11543	}
11544    }'
11545aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11546# Check for a 64-bit object if we didn't find anything.
11547if test -z "$aix_libpath"; then
11548  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11549fi
11550else
11551  echo "$as_me: failed program was:" >&5
11552sed 's/^/| /' conftest.$ac_ext >&5
11553
11554
11555fi
11556
11557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11558      conftest$ac_exeext conftest.$ac_ext
11559if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11560
11561	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11562	# Warning - without using the other run time loading flags,
11563	# -berok will link without error, but may produce a broken library.
11564	no_undefined_flag_CXX=' ${wl}-bernotok'
11565	allow_undefined_flag_CXX=' ${wl}-berok'
11566	# Exported symbols can be pulled into shared objects from archives
11567	whole_archive_flag_spec_CXX='$convenience'
11568	archive_cmds_need_lc_CXX=yes
11569	# This is similar to how AIX traditionally builds its shared libraries.
11570	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'
11571      fi
11572    fi
11573    ;;
11574
11575  beos*)
11576    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11577      allow_undefined_flag_CXX=unsupported
11578      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11579      # support --undefined.  This deserves some investigation.  FIXME
11580      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11581    else
11582      ld_shlibs_CXX=no
11583    fi
11584    ;;
11585
11586  chorus*)
11587    case $cc_basename in
11588      *)
11589	# FIXME: insert proper C++ library support
11590	ld_shlibs_CXX=no
11591	;;
11592    esac
11593    ;;
11594
11595  cygwin* | mingw* | pw32*)
11596    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11597    # as there is no search path for DLLs.
11598    hardcode_libdir_flag_spec_CXX='-L$libdir'
11599    allow_undefined_flag_CXX=unsupported
11600    always_export_symbols_CXX=no
11601    enable_shared_with_static_runtimes_CXX=yes
11602
11603    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11604      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'
11605      # If the export-symbols file already is a .def file (1st line
11606      # is EXPORTS), use it as is; otherwise, prepend...
11607      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11608	cp $export_symbols $output_objdir/$soname.def;
11609      else
11610	echo EXPORTS > $output_objdir/$soname.def;
11611	cat $export_symbols >> $output_objdir/$soname.def;
11612      fi~
11613      $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'
11614    else
11615      ld_shlibs_CXX=no
11616    fi
11617  ;;
11618      darwin* | rhapsody*)
11619      archive_cmds_need_lc_CXX=no
11620      hardcode_direct_CXX=no
11621      hardcode_automatic_CXX=yes
11622      hardcode_shlibpath_var_CXX=unsupported
11623      whole_archive_flag_spec_CXX=''
11624      link_all_deplibs_CXX=yes
11625      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11626      if test "$GXX" = yes ; then
11627      output_verbose_link_cmd='echo'
11628      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}"
11629      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11630      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}"
11631      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}"
11632      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11633        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}"
11634        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}"
11635      fi
11636      else
11637      case $cc_basename in
11638        xlc*)
11639         output_verbose_link_cmd='echo'
11640          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'
11641          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11642          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11643          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}'
11644          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}'
11645          ;;
11646       *)
11647         ld_shlibs_CXX=no
11648          ;;
11649      esac
11650      fi
11651        ;;
11652
11653  dgux*)
11654    case $cc_basename in
11655      ec++*)
11656	# FIXME: insert proper C++ library support
11657	ld_shlibs_CXX=no
11658	;;
11659      ghcx*)
11660	# Green Hills C++ Compiler
11661	# FIXME: insert proper C++ library support
11662	ld_shlibs_CXX=no
11663	;;
11664      *)
11665	# FIXME: insert proper C++ library support
11666	ld_shlibs_CXX=no
11667	;;
11668    esac
11669    ;;
11670  freebsd[12]*)
11671    # C++ shared libraries reported to be fairly broken before switch to ELF
11672    ld_shlibs_CXX=no
11673    ;;
11674  freebsd-elf*)
11675    archive_cmds_need_lc_CXX=no
11676    ;;
11677  freebsd* | dragonfly*)
11678    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11679    # conventions
11680    ld_shlibs_CXX=yes
11681    ;;
11682  gnu*)
11683    ;;
11684  hpux9*)
11685    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11686    hardcode_libdir_separator_CXX=:
11687    export_dynamic_flag_spec_CXX='${wl}-E'
11688    hardcode_direct_CXX=yes
11689    hardcode_minus_L_CXX=yes # Not in the search PATH,
11690				# but as the default
11691				# location of the library.
11692
11693    case $cc_basename in
11694    CC*)
11695      # FIXME: insert proper C++ library support
11696      ld_shlibs_CXX=no
11697      ;;
11698    aCC*)
11699      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'
11700      # Commands to make compiler produce verbose output that lists
11701      # what "hidden" libraries, object files and flags are used when
11702      # linking a shared library.
11703      #
11704      # There doesn't appear to be a way to prevent this compiler from
11705      # explicitly linking system object files so we need to strip them
11706      # from the output so that they don't get included in the library
11707      # dependencies.
11708      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'
11709      ;;
11710    *)
11711      if test "$GXX" = yes; then
11712        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'
11713      else
11714        # FIXME: insert proper C++ library support
11715        ld_shlibs_CXX=no
11716      fi
11717      ;;
11718    esac
11719    ;;
11720  hpux10*|hpux11*)
11721    if test $with_gnu_ld = no; then
11722      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11723      hardcode_libdir_separator_CXX=:
11724
11725      case $host_cpu in
11726      hppa*64*|ia64*) ;;
11727      *)
11728	export_dynamic_flag_spec_CXX='${wl}-E'
11729        ;;
11730      esac
11731    fi
11732    case $host_cpu in
11733    hppa*64*|ia64*)
11734      hardcode_direct_CXX=no
11735      hardcode_shlibpath_var_CXX=no
11736      ;;
11737    *)
11738      hardcode_direct_CXX=yes
11739      hardcode_minus_L_CXX=yes # Not in the search PATH,
11740					      # but as the default
11741					      # location of the library.
11742      ;;
11743    esac
11744
11745    case $cc_basename in
11746      CC*)
11747	# FIXME: insert proper C++ library support
11748	ld_shlibs_CXX=no
11749	;;
11750      aCC*)
11751	case $host_cpu in
11752	hppa*64*)
11753	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11754	  ;;
11755	ia64*)
11756	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11757	  ;;
11758	*)
11759	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11760	  ;;
11761	esac
11762	# Commands to make compiler produce verbose output that lists
11763	# what "hidden" libraries, object files and flags are used when
11764	# linking a shared library.
11765	#
11766	# There doesn't appear to be a way to prevent this compiler from
11767	# explicitly linking system object files so we need to strip them
11768	# from the output so that they don't get included in the library
11769	# dependencies.
11770	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'
11771	;;
11772      *)
11773	if test "$GXX" = yes; then
11774	  if test $with_gnu_ld = no; then
11775	    case $host_cpu in
11776	    hppa*64*)
11777	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11778	      ;;
11779	    ia64*)
11780	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11781	      ;;
11782	    *)
11783	      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'
11784	      ;;
11785	    esac
11786	  fi
11787	else
11788	  # FIXME: insert proper C++ library support
11789	  ld_shlibs_CXX=no
11790	fi
11791	;;
11792    esac
11793    ;;
11794  interix[3-9]*)
11795    hardcode_direct_CXX=no
11796    hardcode_shlibpath_var_CXX=no
11797    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11798    export_dynamic_flag_spec_CXX='${wl}-E'
11799    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11800    # Instead, shared libraries are loaded at an image base (0x10000000 by
11801    # default) and relocated if they conflict, which is a slow very memory
11802    # consuming and fragmenting process.  To avoid this, we pick a random,
11803    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11804    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11805    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'
11806    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'
11807    ;;
11808  irix5* | irix6*)
11809    case $cc_basename in
11810      CC*)
11811	# SGI C++
11812	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'
11813
11814	# Archives containing C++ object files must be created using
11815	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11816	# necessary to make sure instantiated templates are included
11817	# in the archive.
11818	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11819	;;
11820      *)
11821	if test "$GXX" = yes; then
11822	  if test "$with_gnu_ld" = no; then
11823	    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'
11824	  else
11825	    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'
11826	  fi
11827	fi
11828	link_all_deplibs_CXX=yes
11829	;;
11830    esac
11831    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11832    hardcode_libdir_separator_CXX=:
11833    ;;
11834  linux* | k*bsd*-gnu)
11835    case $cc_basename in
11836      KCC*)
11837	# Kuck and Associates, Inc. (KAI) C++ Compiler
11838
11839	# KCC will only create a shared library if the output file
11840	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11841	# to its proper name (with version) after linking.
11842	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'
11843	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'
11844	# Commands to make compiler produce verbose output that lists
11845	# what "hidden" libraries, object files and flags are used when
11846	# linking a shared library.
11847	#
11848	# There doesn't appear to be a way to prevent this compiler from
11849	# explicitly linking system object files so we need to strip them
11850	# from the output so that they don't get included in the library
11851	# dependencies.
11852	output_verbose_link_cmd='templist=`$CC $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'
11853
11854	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11855	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11856
11857	# Archives containing C++ object files must be created using
11858	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11859	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11860	;;
11861      icpc*)
11862	# Intel C++
11863	with_gnu_ld=yes
11864	# version 8.0 and above of icpc choke on multiply defined symbols
11865	# if we add $predep_objects and $postdep_objects, however 7.1 and
11866	# earlier do not add the objects themselves.
11867	case `$CC -V 2>&1` in
11868	*"Version 7."*)
11869  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11870  	  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'
11871	  ;;
11872	*)  # Version 8.0 or newer
11873	  tmp_idyn=
11874	  case $host_cpu in
11875	    ia64*) tmp_idyn=' -i_dynamic';;
11876	  esac
11877  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11878	  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'
11879	  ;;
11880	esac
11881	archive_cmds_need_lc_CXX=no
11882	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11883	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11884	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11885	;;
11886      pgCC* | pgcpp*)
11887        # Portland Group C++ compiler
11888	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11889  	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'
11890
11891	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11892	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11893	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'
11894        ;;
11895      cxx*)
11896	# Compaq C++
11897	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11898	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'
11899
11900	runpath_var=LD_RUN_PATH
11901	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11902	hardcode_libdir_separator_CXX=:
11903
11904	# Commands to make compiler produce verbose output that lists
11905	# what "hidden" libraries, object files and flags are used when
11906	# linking a shared library.
11907	#
11908	# There doesn't appear to be a way to prevent this compiler from
11909	# explicitly linking system object files so we need to strip them
11910	# from the output so that they don't get included in the library
11911	# dependencies.
11912	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'
11913	;;
11914      *)
11915	case `$CC -V 2>&1 | sed 5q` in
11916	*Sun\ C*)
11917	  # Sun C++ 5.9
11918	  no_undefined_flag_CXX=' -zdefs'
11919	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11920	  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'
11921	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11922	  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'
11923
11924	  # Not sure whether something based on
11925	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11926	  # would be better.
11927	  output_verbose_link_cmd='echo'
11928
11929	  # Archives containing C++ object files must be created using
11930	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11931	  # necessary to make sure instantiated templates are included
11932	  # in the archive.
11933	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11934	  ;;
11935	esac
11936	;;
11937    esac
11938    ;;
11939  lynxos*)
11940    # FIXME: insert proper C++ library support
11941    ld_shlibs_CXX=no
11942    ;;
11943  m88k*)
11944    # FIXME: insert proper C++ library support
11945    ld_shlibs_CXX=no
11946    ;;
11947  mvs*)
11948    case $cc_basename in
11949      cxx*)
11950	# FIXME: insert proper C++ library support
11951	ld_shlibs_CXX=no
11952	;;
11953      *)
11954	# FIXME: insert proper C++ library support
11955	ld_shlibs_CXX=no
11956	;;
11957    esac
11958    ;;
11959  netbsd* | netbsdelf*-gnu)
11960    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11961      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11962      wlarc=
11963      hardcode_libdir_flag_spec_CXX='-R$libdir'
11964      hardcode_direct_CXX=yes
11965      hardcode_shlibpath_var_CXX=no
11966    fi
11967    # Workaround some broken pre-1.5 toolchains
11968    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11969    ;;
11970  openbsd2*)
11971    # C++ shared libraries are fairly broken
11972    ld_shlibs_CXX=no
11973    ;;
11974  openbsd*)
11975    if test -f /usr/libexec/ld.so; then
11976      hardcode_direct_CXX=yes
11977      hardcode_shlibpath_var_CXX=no
11978      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11979      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11980      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11981	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11982	export_dynamic_flag_spec_CXX='${wl}-E'
11983	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11984      fi
11985      output_verbose_link_cmd='echo'
11986    else
11987      ld_shlibs_CXX=no
11988    fi
11989    ;;
11990  osf3*)
11991    case $cc_basename in
11992      KCC*)
11993	# Kuck and Associates, Inc. (KAI) C++ Compiler
11994
11995	# KCC will only create a shared library if the output file
11996	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11997	# to its proper name (with version) after linking.
11998	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'
11999
12000	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12001	hardcode_libdir_separator_CXX=:
12002
12003	# Archives containing C++ object files must be created using
12004	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12005	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12006
12007	;;
12008      RCC*)
12009	# Rational C++ 2.4.1
12010	# FIXME: insert proper C++ library support
12011	ld_shlibs_CXX=no
12012	;;
12013      cxx*)
12014	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12015	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'
12016
12017	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12018	hardcode_libdir_separator_CXX=:
12019
12020	# Commands to make compiler produce verbose output that lists
12021	# what "hidden" libraries, object files and flags are used when
12022	# linking a shared library.
12023	#
12024	# There doesn't appear to be a way to prevent this compiler from
12025	# explicitly linking system object files so we need to strip them
12026	# from the output so that they don't get included in the library
12027	# dependencies.
12028	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'
12029	;;
12030      *)
12031	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12032	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12033	  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'
12034
12035	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12036	  hardcode_libdir_separator_CXX=:
12037
12038	  # Commands to make compiler produce verbose output that lists
12039	  # what "hidden" libraries, object files and flags are used when
12040	  # linking a shared library.
12041	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12042
12043	else
12044	  # FIXME: insert proper C++ library support
12045	  ld_shlibs_CXX=no
12046	fi
12047	;;
12048    esac
12049    ;;
12050  osf4* | osf5*)
12051    case $cc_basename in
12052      KCC*)
12053	# Kuck and Associates, Inc. (KAI) C++ Compiler
12054
12055	# KCC will only create a shared library if the output file
12056	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12057	# to its proper name (with version) after linking.
12058	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'
12059
12060	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12061	hardcode_libdir_separator_CXX=:
12062
12063	# Archives containing C++ object files must be created using
12064	# the KAI C++ compiler.
12065	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12066	;;
12067      RCC*)
12068	# Rational C++ 2.4.1
12069	# FIXME: insert proper C++ library support
12070	ld_shlibs_CXX=no
12071	;;
12072      cxx*)
12073	allow_undefined_flag_CXX=' -expect_unresolved \*'
12074	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'
12075	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12076	  echo "-hidden">> $lib.exp~
12077	  $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~
12078	  $rm $lib.exp'
12079
12080	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12081	hardcode_libdir_separator_CXX=:
12082
12083	# Commands to make compiler produce verbose output that lists
12084	# what "hidden" libraries, object files and flags are used when
12085	# linking a shared library.
12086	#
12087	# There doesn't appear to be a way to prevent this compiler from
12088	# explicitly linking system object files so we need to strip them
12089	# from the output so that they don't get included in the library
12090	# dependencies.
12091	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'
12092	;;
12093      *)
12094	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12095	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12096	 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'
12097
12098	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12099	  hardcode_libdir_separator_CXX=:
12100
12101	  # Commands to make compiler produce verbose output that lists
12102	  # what "hidden" libraries, object files and flags are used when
12103	  # linking a shared library.
12104	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12105
12106	else
12107	  # FIXME: insert proper C++ library support
12108	  ld_shlibs_CXX=no
12109	fi
12110	;;
12111    esac
12112    ;;
12113  psos*)
12114    # FIXME: insert proper C++ library support
12115    ld_shlibs_CXX=no
12116    ;;
12117  sunos4*)
12118    case $cc_basename in
12119      CC*)
12120	# Sun C++ 4.x
12121	# FIXME: insert proper C++ library support
12122	ld_shlibs_CXX=no
12123	;;
12124      lcc*)
12125	# Lucid
12126	# FIXME: insert proper C++ library support
12127	ld_shlibs_CXX=no
12128	;;
12129      *)
12130	# FIXME: insert proper C++ library support
12131	ld_shlibs_CXX=no
12132	;;
12133    esac
12134    ;;
12135  solaris*)
12136    case $cc_basename in
12137      CC*)
12138	# Sun C++ 4.2, 5.x and Centerline C++
12139        archive_cmds_need_lc_CXX=yes
12140	no_undefined_flag_CXX=' -zdefs'
12141	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12142	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12143	$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'
12144
12145	hardcode_libdir_flag_spec_CXX='-R$libdir'
12146	hardcode_shlibpath_var_CXX=no
12147	case $host_os in
12148	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12149	  *)
12150	    # The compiler driver will combine and reorder linker options,
12151	    # but understands `-z linker_flag'.
12152	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12153	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12154	    ;;
12155	esac
12156	link_all_deplibs_CXX=yes
12157
12158	output_verbose_link_cmd='echo'
12159
12160	# Archives containing C++ object files must be created using
12161	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12162	# necessary to make sure instantiated templates are included
12163	# in the archive.
12164	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12165	;;
12166      gcx*)
12167	# Green Hills C++ Compiler
12168	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12169
12170	# The C++ compiler must be used to create the archive.
12171	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12172	;;
12173      *)
12174	# GNU C++ compiler with Solaris linker
12175	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12176	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12177	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12178	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12179	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12180		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12181
12182	    # Commands to make compiler produce verbose output that lists
12183	    # what "hidden" libraries, object files and flags are used when
12184	    # linking a shared library.
12185	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12186	  else
12187	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12188	    # platform.
12189	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12190	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12191		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12192
12193	    # Commands to make compiler produce verbose output that lists
12194	    # what "hidden" libraries, object files and flags are used when
12195	    # linking a shared library.
12196	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12197	  fi
12198
12199	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12200	  case $host_os in
12201	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12202	  *)
12203	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12204	    ;;
12205	  esac
12206	fi
12207	;;
12208    esac
12209    ;;
12210  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12211    no_undefined_flag_CXX='${wl}-z,text'
12212    archive_cmds_need_lc_CXX=no
12213    hardcode_shlibpath_var_CXX=no
12214    runpath_var='LD_RUN_PATH'
12215
12216    case $cc_basename in
12217      CC*)
12218	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12219	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12220	;;
12221      *)
12222	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12223	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12224	;;
12225    esac
12226    ;;
12227  sysv5* | sco3.2v5* | sco5v6*)
12228    # Note: We can NOT use -z defs as we might desire, because we do not
12229    # link with -lc, and that would cause any symbols used from libc to
12230    # always be unresolved, which means just about no library would
12231    # ever link correctly.  If we're not using GNU ld we use -z text
12232    # though, which does catch some bad symbols but isn't as heavy-handed
12233    # as -z defs.
12234    # For security reasons, it is highly recommended that you always
12235    # use absolute paths for naming shared libraries, and exclude the
12236    # DT_RUNPATH tag from executables and libraries.  But doing so
12237    # requires that you compile everything twice, which is a pain.
12238    # So that behaviour is only enabled if SCOABSPATH is set to a
12239    # non-empty value in the environment.  Most likely only useful for
12240    # creating official distributions of packages.
12241    # This is a hack until libtool officially supports absolute path
12242    # names for shared libraries.
12243    no_undefined_flag_CXX='${wl}-z,text'
12244    allow_undefined_flag_CXX='${wl}-z,nodefs'
12245    archive_cmds_need_lc_CXX=no
12246    hardcode_shlibpath_var_CXX=no
12247    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12248    hardcode_libdir_separator_CXX=':'
12249    link_all_deplibs_CXX=yes
12250    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12251    runpath_var='LD_RUN_PATH'
12252
12253    case $cc_basename in
12254      CC*)
12255	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12256	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12257	;;
12258      *)
12259	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12260	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12261	;;
12262    esac
12263    ;;
12264  tandem*)
12265    case $cc_basename in
12266      NCC*)
12267	# NonStop-UX NCC 3.20
12268	# FIXME: insert proper C++ library support
12269	ld_shlibs_CXX=no
12270	;;
12271      *)
12272	# FIXME: insert proper C++ library support
12273	ld_shlibs_CXX=no
12274	;;
12275    esac
12276    ;;
12277  vxworks*)
12278    # FIXME: insert proper C++ library support
12279    ld_shlibs_CXX=no
12280    ;;
12281  *)
12282    # FIXME: insert proper C++ library support
12283    ld_shlibs_CXX=no
12284    ;;
12285esac
12286{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12287echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12288test "$ld_shlibs_CXX" = no && can_build_shared=no
12289
12290GCC_CXX="$GXX"
12291LD_CXX="$LD"
12292
12293cat > conftest.$ac_ext <<EOF
12294class Foo
12295{
12296public:
12297  Foo (void) { a = 0; }
12298private:
12299  int a;
12300};
12301EOF
12302
12303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12304  (eval $ac_compile) 2>&5
12305  ac_status=$?
12306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307  (exit $ac_status); }; then
12308  # Parse the compiler output and extract the necessary
12309  # objects, libraries and library flags.
12310
12311  # Sentinel used to keep track of whether or not we are before
12312  # the conftest object file.
12313  pre_test_object_deps_done=no
12314
12315  # The `*' in the case matches for architectures that use `case' in
12316  # $output_verbose_cmd can trigger glob expansion during the loop
12317  # eval without this substitution.
12318  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12319
12320  for p in `eval $output_verbose_link_cmd`; do
12321    case $p in
12322
12323    -L* | -R* | -l*)
12324       # Some compilers place space between "-{L,R}" and the path.
12325       # Remove the space.
12326       if test $p = "-L" \
12327	  || test $p = "-R"; then
12328	 prev=$p
12329	 continue
12330       else
12331	 prev=
12332       fi
12333
12334       if test "$pre_test_object_deps_done" = no; then
12335	 case $p in
12336	 -L* | -R*)
12337	   # Internal compiler library paths should come after those
12338	   # provided the user.  The postdeps already come after the
12339	   # user supplied libs so there is no need to process them.
12340	   if test -z "$compiler_lib_search_path_CXX"; then
12341	     compiler_lib_search_path_CXX="${prev}${p}"
12342	   else
12343	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12344	   fi
12345	   ;;
12346	 # The "-l" case would never come before the object being
12347	 # linked, so don't bother handling this case.
12348	 esac
12349       else
12350	 if test -z "$postdeps_CXX"; then
12351	   postdeps_CXX="${prev}${p}"
12352	 else
12353	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12354	 fi
12355       fi
12356       ;;
12357
12358    *.$objext)
12359       # This assumes that the test object file only shows up
12360       # once in the compiler output.
12361       if test "$p" = "conftest.$objext"; then
12362	 pre_test_object_deps_done=yes
12363	 continue
12364       fi
12365
12366       if test "$pre_test_object_deps_done" = no; then
12367	 if test -z "$predep_objects_CXX"; then
12368	   predep_objects_CXX="$p"
12369	 else
12370	   predep_objects_CXX="$predep_objects_CXX $p"
12371	 fi
12372       else
12373	 if test -z "$postdep_objects_CXX"; then
12374	   postdep_objects_CXX="$p"
12375	 else
12376	   postdep_objects_CXX="$postdep_objects_CXX $p"
12377	 fi
12378       fi
12379       ;;
12380
12381    *) ;; # Ignore the rest.
12382
12383    esac
12384  done
12385
12386  # Clean up.
12387  rm -f a.out a.exe
12388else
12389  echo "libtool.m4: error: problem compiling CXX test program"
12390fi
12391
12392$rm -f confest.$objext
12393
12394compiler_lib_search_dirs_CXX=
12395if test -n "$compiler_lib_search_path_CXX"; then
12396  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12397fi
12398
12399# PORTME: override above test on systems where it is broken
12400case $host_os in
12401interix[3-9]*)
12402  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12403  # hack all around it, let's just trust "g++" to DTRT.
12404  predep_objects_CXX=
12405  postdep_objects_CXX=
12406  postdeps_CXX=
12407  ;;
12408
12409linux*)
12410  case `$CC -V 2>&1 | sed 5q` in
12411  *Sun\ C*)
12412    # Sun C++ 5.9
12413    #
12414    # The more standards-conforming stlport4 library is
12415    # incompatible with the Cstd library. Avoid specifying
12416    # it if it's in CXXFLAGS. Ignore libCrun as
12417    # -library=stlport4 depends on it.
12418    case " $CXX $CXXFLAGS " in
12419    *" -library=stlport4 "*)
12420      solaris_use_stlport4=yes
12421      ;;
12422    esac
12423    if test "$solaris_use_stlport4" != yes; then
12424      postdeps_CXX='-library=Cstd -library=Crun'
12425    fi
12426    ;;
12427  esac
12428  ;;
12429
12430solaris*)
12431  case $cc_basename in
12432  CC*)
12433    # The more standards-conforming stlport4 library is
12434    # incompatible with the Cstd library. Avoid specifying
12435    # it if it's in CXXFLAGS. Ignore libCrun as
12436    # -library=stlport4 depends on it.
12437    case " $CXX $CXXFLAGS " in
12438    *" -library=stlport4 "*)
12439      solaris_use_stlport4=yes
12440      ;;
12441    esac
12442
12443    # Adding this requires a known-good setup of shared libraries for
12444    # Sun compiler versions before 5.6, else PIC objects from an old
12445    # archive will be linked into the output, leading to subtle bugs.
12446    if test "$solaris_use_stlport4" != yes; then
12447      postdeps_CXX='-library=Cstd -library=Crun'
12448    fi
12449    ;;
12450  esac
12451  ;;
12452esac
12453
12454case " $postdeps_CXX " in
12455*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12456esac
12457
12458lt_prog_compiler_wl_CXX=
12459lt_prog_compiler_pic_CXX=
12460lt_prog_compiler_static_CXX=
12461
12462{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12463echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12464
12465  # C++ specific cases for pic, static, wl, etc.
12466  if test "$GXX" = yes; then
12467    lt_prog_compiler_wl_CXX='-Wl,'
12468    lt_prog_compiler_static_CXX='-static'
12469
12470    case $host_os in
12471    aix*)
12472      # All AIX code is PIC.
12473      if test "$host_cpu" = ia64; then
12474	# AIX 5 now supports IA64 processor
12475	lt_prog_compiler_static_CXX='-Bstatic'
12476      fi
12477      ;;
12478    amigaos*)
12479      # FIXME: we need at least 68020 code to build shared libraries, but
12480      # adding the `-m68020' flag to GCC prevents building anything better,
12481      # like `-m68040'.
12482      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12483      ;;
12484    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12485      # PIC is the default for these OSes.
12486      ;;
12487    mingw* | cygwin* | os2* | pw32*)
12488      # This hack is so that the source file can tell whether it is being
12489      # built for inclusion in a dll (and should export symbols for example).
12490      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12491      # (--disable-auto-import) libraries
12492      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12493      ;;
12494    darwin* | rhapsody*)
12495      # PIC is the default on this platform
12496      # Common symbols not allowed in MH_DYLIB files
12497      lt_prog_compiler_pic_CXX='-fno-common'
12498      ;;
12499    *djgpp*)
12500      # DJGPP does not support shared libraries at all
12501      lt_prog_compiler_pic_CXX=
12502      ;;
12503    interix[3-9]*)
12504      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12505      # Instead, we relocate shared libraries at runtime.
12506      ;;
12507    sysv4*MP*)
12508      if test -d /usr/nec; then
12509	lt_prog_compiler_pic_CXX=-Kconform_pic
12510      fi
12511      ;;
12512    hpux*)
12513      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12514      # not for PA HP-UX.
12515      case $host_cpu in
12516      hppa*64*|ia64*)
12517	;;
12518      *)
12519	lt_prog_compiler_pic_CXX='-fPIC'
12520	;;
12521      esac
12522      ;;
12523    *)
12524      lt_prog_compiler_pic_CXX='-fPIC'
12525      ;;
12526    esac
12527  else
12528    case $host_os in
12529      aix[4-9]*)
12530	# All AIX code is PIC.
12531	if test "$host_cpu" = ia64; then
12532	  # AIX 5 now supports IA64 processor
12533	  lt_prog_compiler_static_CXX='-Bstatic'
12534	else
12535	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12536	fi
12537	;;
12538      chorus*)
12539	case $cc_basename in
12540	cxch68*)
12541	  # Green Hills C++ Compiler
12542	  # _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"
12543	  ;;
12544	esac
12545	;;
12546       darwin*)
12547         # PIC is the default on this platform
12548         # Common symbols not allowed in MH_DYLIB files
12549         case $cc_basename in
12550           xlc*)
12551           lt_prog_compiler_pic_CXX='-qnocommon'
12552           lt_prog_compiler_wl_CXX='-Wl,'
12553           ;;
12554         esac
12555       ;;
12556      dgux*)
12557	case $cc_basename in
12558	  ec++*)
12559	    lt_prog_compiler_pic_CXX='-KPIC'
12560	    ;;
12561	  ghcx*)
12562	    # Green Hills C++ Compiler
12563	    lt_prog_compiler_pic_CXX='-pic'
12564	    ;;
12565	  *)
12566	    ;;
12567	esac
12568	;;
12569      freebsd* | dragonfly*)
12570	# FreeBSD uses GNU C++
12571	;;
12572      hpux9* | hpux10* | hpux11*)
12573	case $cc_basename in
12574	  CC*)
12575	    lt_prog_compiler_wl_CXX='-Wl,'
12576	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12577	    if test "$host_cpu" != ia64; then
12578	      lt_prog_compiler_pic_CXX='+Z'
12579	    fi
12580	    ;;
12581	  aCC*)
12582	    lt_prog_compiler_wl_CXX='-Wl,'
12583	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12584	    case $host_cpu in
12585	    hppa*64*|ia64*)
12586	      # +Z the default
12587	      ;;
12588	    *)
12589	      lt_prog_compiler_pic_CXX='+Z'
12590	      ;;
12591	    esac
12592	    ;;
12593	  *)
12594	    ;;
12595	esac
12596	;;
12597      interix*)
12598	# This is c89, which is MS Visual C++ (no shared libs)
12599	# Anyone wants to do a port?
12600	;;
12601      irix5* | irix6* | nonstopux*)
12602	case $cc_basename in
12603	  CC*)
12604	    lt_prog_compiler_wl_CXX='-Wl,'
12605	    lt_prog_compiler_static_CXX='-non_shared'
12606	    # CC pic flag -KPIC is the default.
12607	    ;;
12608	  *)
12609	    ;;
12610	esac
12611	;;
12612      linux* | k*bsd*-gnu)
12613	case $cc_basename in
12614	  KCC*)
12615	    # KAI C++ Compiler
12616	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12617	    lt_prog_compiler_pic_CXX='-fPIC'
12618	    ;;
12619	  icpc* | ecpc*)
12620	    # Intel C++
12621	    lt_prog_compiler_wl_CXX='-Wl,'
12622	    lt_prog_compiler_pic_CXX='-KPIC'
12623	    lt_prog_compiler_static_CXX='-static'
12624	    ;;
12625	  pgCC* | pgcpp*)
12626	    # Portland Group C++ compiler.
12627	    lt_prog_compiler_wl_CXX='-Wl,'
12628	    lt_prog_compiler_pic_CXX='-fpic'
12629	    lt_prog_compiler_static_CXX='-Bstatic'
12630	    ;;
12631	  cxx*)
12632	    # Compaq C++
12633	    # Make sure the PIC flag is empty.  It appears that all Alpha
12634	    # Linux and Compaq Tru64 Unix objects are PIC.
12635	    lt_prog_compiler_pic_CXX=
12636	    lt_prog_compiler_static_CXX='-non_shared'
12637	    ;;
12638	  *)
12639	    case `$CC -V 2>&1 | sed 5q` in
12640	    *Sun\ C*)
12641	      # Sun C++ 5.9
12642	      lt_prog_compiler_pic_CXX='-KPIC'
12643	      lt_prog_compiler_static_CXX='-Bstatic'
12644	      lt_prog_compiler_wl_CXX='-Qoption ld '
12645	      ;;
12646	    esac
12647	    ;;
12648	esac
12649	;;
12650      lynxos*)
12651	;;
12652      m88k*)
12653	;;
12654      mvs*)
12655	case $cc_basename in
12656	  cxx*)
12657	    lt_prog_compiler_pic_CXX='-W c,exportall'
12658	    ;;
12659	  *)
12660	    ;;
12661	esac
12662	;;
12663      netbsd* | netbsdelf*-gnu)
12664	;;
12665      osf3* | osf4* | osf5*)
12666	case $cc_basename in
12667	  KCC*)
12668	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12669	    ;;
12670	  RCC*)
12671	    # Rational C++ 2.4.1
12672	    lt_prog_compiler_pic_CXX='-pic'
12673	    ;;
12674	  cxx*)
12675	    # Digital/Compaq C++
12676	    lt_prog_compiler_wl_CXX='-Wl,'
12677	    # Make sure the PIC flag is empty.  It appears that all Alpha
12678	    # Linux and Compaq Tru64 Unix objects are PIC.
12679	    lt_prog_compiler_pic_CXX=
12680	    lt_prog_compiler_static_CXX='-non_shared'
12681	    ;;
12682	  *)
12683	    ;;
12684	esac
12685	;;
12686      psos*)
12687	;;
12688      solaris*)
12689	case $cc_basename in
12690	  CC*)
12691	    # Sun C++ 4.2, 5.x and Centerline C++
12692	    lt_prog_compiler_pic_CXX='-KPIC'
12693	    lt_prog_compiler_static_CXX='-Bstatic'
12694	    lt_prog_compiler_wl_CXX='-Qoption ld '
12695	    ;;
12696	  gcx*)
12697	    # Green Hills C++ Compiler
12698	    lt_prog_compiler_pic_CXX='-PIC'
12699	    ;;
12700	  *)
12701	    ;;
12702	esac
12703	;;
12704      sunos4*)
12705	case $cc_basename in
12706	  CC*)
12707	    # Sun C++ 4.x
12708	    lt_prog_compiler_pic_CXX='-pic'
12709	    lt_prog_compiler_static_CXX='-Bstatic'
12710	    ;;
12711	  lcc*)
12712	    # Lucid
12713	    lt_prog_compiler_pic_CXX='-pic'
12714	    ;;
12715	  *)
12716	    ;;
12717	esac
12718	;;
12719      tandem*)
12720	case $cc_basename in
12721	  NCC*)
12722	    # NonStop-UX NCC 3.20
12723	    lt_prog_compiler_pic_CXX='-KPIC'
12724	    ;;
12725	  *)
12726	    ;;
12727	esac
12728	;;
12729      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12730	case $cc_basename in
12731	  CC*)
12732	    lt_prog_compiler_wl_CXX='-Wl,'
12733	    lt_prog_compiler_pic_CXX='-KPIC'
12734	    lt_prog_compiler_static_CXX='-Bstatic'
12735	    ;;
12736	esac
12737	;;
12738      vxworks*)
12739	;;
12740      *)
12741	lt_prog_compiler_can_build_shared_CXX=no
12742	;;
12743    esac
12744  fi
12745
12746{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12747echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12748
12749#
12750# Check to make sure the PIC flag actually works.
12751#
12752if test -n "$lt_prog_compiler_pic_CXX"; then
12753
12754{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12755echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12756if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12757  echo $ECHO_N "(cached) $ECHO_C" >&6
12758else
12759  lt_cv_prog_compiler_pic_works_CXX=no
12760  ac_outfile=conftest.$ac_objext
12761   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12762   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12763   # Insert the option either (1) after the last *FLAGS variable, or
12764   # (2) before a word containing "conftest.", or (3) at the end.
12765   # Note that $ac_compile itself does not contain backslashes and begins
12766   # with a dollar sign (not a hyphen), so the echo should work correctly.
12767   # The option is referenced via a variable to avoid confusing sed.
12768   lt_compile=`echo "$ac_compile" | $SED \
12769   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12770   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12771   -e 's:$: $lt_compiler_flag:'`
12772   (eval echo "\"\$as_me:12772: $lt_compile\"" >&5)
12773   (eval "$lt_compile" 2>conftest.err)
12774   ac_status=$?
12775   cat conftest.err >&5
12776   echo "$as_me:12776: \$? = $ac_status" >&5
12777   if (exit $ac_status) && test -s "$ac_outfile"; then
12778     # The compiler can only warn and ignore the option if not recognized
12779     # So say no if there are warnings other than the usual output.
12780     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12781     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12782     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12783       lt_cv_prog_compiler_pic_works_CXX=yes
12784     fi
12785   fi
12786   $rm conftest*
12787
12788fi
12789{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12790echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12791
12792if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12793    case $lt_prog_compiler_pic_CXX in
12794     "" | " "*) ;;
12795     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12796     esac
12797else
12798    lt_prog_compiler_pic_CXX=
12799     lt_prog_compiler_can_build_shared_CXX=no
12800fi
12801
12802fi
12803case $host_os in
12804  # For platforms which do not support PIC, -DPIC is meaningless:
12805  *djgpp*)
12806    lt_prog_compiler_pic_CXX=
12807    ;;
12808  *)
12809    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12810    ;;
12811esac
12812
12813#
12814# Check to make sure the static flag actually works.
12815#
12816wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12817{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12818echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12819if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12820  echo $ECHO_N "(cached) $ECHO_C" >&6
12821else
12822  lt_cv_prog_compiler_static_works_CXX=no
12823   save_LDFLAGS="$LDFLAGS"
12824   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12825   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12826   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12827     # The linker can only warn and ignore the option if not recognized
12828     # So say no if there are warnings
12829     if test -s conftest.err; then
12830       # Append any errors to the config.log.
12831       cat conftest.err 1>&5
12832       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12833       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12834       if diff conftest.exp conftest.er2 >/dev/null; then
12835         lt_cv_prog_compiler_static_works_CXX=yes
12836       fi
12837     else
12838       lt_cv_prog_compiler_static_works_CXX=yes
12839     fi
12840   fi
12841   $rm -r conftest*
12842   LDFLAGS="$save_LDFLAGS"
12843
12844fi
12845{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12846echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12847
12848if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12849    :
12850else
12851    lt_prog_compiler_static_CXX=
12852fi
12853
12854
12855{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12856echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12857if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12858  echo $ECHO_N "(cached) $ECHO_C" >&6
12859else
12860  lt_cv_prog_compiler_c_o_CXX=no
12861   $rm -r conftest 2>/dev/null
12862   mkdir conftest
12863   cd conftest
12864   mkdir out
12865   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12866
12867   lt_compiler_flag="-o out/conftest2.$ac_objext"
12868   # Insert the option either (1) after the last *FLAGS variable, or
12869   # (2) before a word containing "conftest.", or (3) at the end.
12870   # Note that $ac_compile itself does not contain backslashes and begins
12871   # with a dollar sign (not a hyphen), so the echo should work correctly.
12872   lt_compile=`echo "$ac_compile" | $SED \
12873   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12874   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12875   -e 's:$: $lt_compiler_flag:'`
12876   (eval echo "\"\$as_me:12876: $lt_compile\"" >&5)
12877   (eval "$lt_compile" 2>out/conftest.err)
12878   ac_status=$?
12879   cat out/conftest.err >&5
12880   echo "$as_me:12880: \$? = $ac_status" >&5
12881   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12882   then
12883     # The compiler can only warn and ignore the option if not recognized
12884     # So say no if there are warnings
12885     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12886     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12887     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12888       lt_cv_prog_compiler_c_o_CXX=yes
12889     fi
12890   fi
12891   chmod u+w . 2>&5
12892   $rm conftest*
12893   # SGI C++ compiler will create directory out/ii_files/ for
12894   # template instantiation
12895   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12896   $rm out/* && rmdir out
12897   cd ..
12898   rmdir conftest
12899   $rm conftest*
12900
12901fi
12902{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12903echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12904
12905
12906hard_links="nottested"
12907if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12908  # do not overwrite the value of need_locks provided by the user
12909  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12910echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12911  hard_links=yes
12912  $rm conftest*
12913  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12914  touch conftest.a
12915  ln conftest.a conftest.b 2>&5 || hard_links=no
12916  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12917  { echo "$as_me:$LINENO: result: $hard_links" >&5
12918echo "${ECHO_T}$hard_links" >&6; }
12919  if test "$hard_links" = no; then
12920    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12921echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12922    need_locks=warn
12923  fi
12924else
12925  need_locks=no
12926fi
12927
12928{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12929echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12930
12931  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12932  case $host_os in
12933  aix[4-9]*)
12934    # If we're using GNU nm, then we don't want the "-C" option.
12935    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12936    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12937      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'
12938    else
12939      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'
12940    fi
12941    ;;
12942  pw32*)
12943    export_symbols_cmds_CXX="$ltdll_cmds"
12944  ;;
12945  cygwin* | mingw*)
12946    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'
12947  ;;
12948  linux* | k*bsd*-gnu)
12949    link_all_deplibs_CXX=no
12950  ;;
12951  *)
12952    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12953  ;;
12954  esac
12955  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12956
12957{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12958echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12959test "$ld_shlibs_CXX" = no && can_build_shared=no
12960
12961#
12962# Do we need to explicitly link libc?
12963#
12964case "x$archive_cmds_need_lc_CXX" in
12965x|xyes)
12966  # Assume -lc should be added
12967  archive_cmds_need_lc_CXX=yes
12968
12969  if test "$enable_shared" = yes && test "$GCC" = yes; then
12970    case $archive_cmds_CXX in
12971    *'~'*)
12972      # FIXME: we may have to deal with multi-command sequences.
12973      ;;
12974    '$CC '*)
12975      # Test whether the compiler implicitly links with -lc since on some
12976      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12977      # to ld, don't add -lc before -lgcc.
12978      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12979echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12980      $rm conftest*
12981      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12982
12983      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12984  (eval $ac_compile) 2>&5
12985  ac_status=$?
12986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987  (exit $ac_status); } 2>conftest.err; then
12988        soname=conftest
12989        lib=conftest
12990        libobjs=conftest.$ac_objext
12991        deplibs=
12992        wl=$lt_prog_compiler_wl_CXX
12993	pic_flag=$lt_prog_compiler_pic_CXX
12994        compiler_flags=-v
12995        linker_flags=-v
12996        verstring=
12997        output_objdir=.
12998        libname=conftest
12999        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13000        allow_undefined_flag_CXX=
13001        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13002  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13003  ac_status=$?
13004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005  (exit $ac_status); }
13006        then
13007	  archive_cmds_need_lc_CXX=no
13008        else
13009	  archive_cmds_need_lc_CXX=yes
13010        fi
13011        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13012      else
13013        cat conftest.err 1>&5
13014      fi
13015      $rm conftest*
13016      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13017echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13018      ;;
13019    esac
13020  fi
13021  ;;
13022esac
13023
13024{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13025echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13026library_names_spec=
13027libname_spec='lib$name'
13028soname_spec=
13029shrext_cmds=".so"
13030postinstall_cmds=
13031postuninstall_cmds=
13032finish_cmds=
13033finish_eval=
13034shlibpath_var=
13035shlibpath_overrides_runpath=unknown
13036version_type=none
13037dynamic_linker="$host_os ld.so"
13038sys_lib_dlsearch_path_spec="/lib /usr/lib"
13039
13040need_lib_prefix=unknown
13041hardcode_into_libs=no
13042
13043# when you set need_version to no, make sure it does not cause -set_version
13044# flags to be left without arguments
13045need_version=unknown
13046
13047case $host_os in
13048aix3*)
13049  version_type=linux
13050  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13051  shlibpath_var=LIBPATH
13052
13053  # AIX 3 has no versioning support, so we append a major version to the name.
13054  soname_spec='${libname}${release}${shared_ext}$major'
13055  ;;
13056
13057aix[4-9]*)
13058  version_type=linux
13059  need_lib_prefix=no
13060  need_version=no
13061  hardcode_into_libs=yes
13062  if test "$host_cpu" = ia64; then
13063    # AIX 5 supports IA64
13064    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13065    shlibpath_var=LD_LIBRARY_PATH
13066  else
13067    # With GCC up to 2.95.x, collect2 would create an import file
13068    # for dependence libraries.  The import file would start with
13069    # the line `#! .'.  This would cause the generated library to
13070    # depend on `.', always an invalid library.  This was fixed in
13071    # development snapshots of GCC prior to 3.0.
13072    case $host_os in
13073      aix4 | aix4.[01] | aix4.[01].*)
13074      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13075	   echo ' yes '
13076	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13077	:
13078      else
13079	can_build_shared=no
13080      fi
13081      ;;
13082    esac
13083    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13084    # soname into executable. Probably we can add versioning support to
13085    # collect2, so additional links can be useful in future.
13086    if test "$aix_use_runtimelinking" = yes; then
13087      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13088      # instead of lib<name>.a to let people know that these are not
13089      # typical AIX shared libraries.
13090      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13091    else
13092      # We preserve .a as extension for shared libraries through AIX4.2
13093      # and later when we are not doing run time linking.
13094      library_names_spec='${libname}${release}.a $libname.a'
13095      soname_spec='${libname}${release}${shared_ext}$major'
13096    fi
13097    shlibpath_var=LIBPATH
13098  fi
13099  ;;
13100
13101amigaos*)
13102  library_names_spec='$libname.ixlibrary $libname.a'
13103  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13104  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'
13105  ;;
13106
13107beos*)
13108  library_names_spec='${libname}${shared_ext}'
13109  dynamic_linker="$host_os ld.so"
13110  shlibpath_var=LIBRARY_PATH
13111  ;;
13112
13113bsdi[45]*)
13114  version_type=linux
13115  need_version=no
13116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13117  soname_spec='${libname}${release}${shared_ext}$major'
13118  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13119  shlibpath_var=LD_LIBRARY_PATH
13120  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13121  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13122  # the default ld.so.conf also contains /usr/contrib/lib and
13123  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13124  # libtool to hard-code these into programs
13125  ;;
13126
13127cygwin* | mingw* | pw32*)
13128  version_type=windows
13129  shrext_cmds=".dll"
13130  need_version=no
13131  need_lib_prefix=no
13132
13133  case $GCC,$host_os in
13134  yes,cygwin* | yes,mingw* | yes,pw32*)
13135    library_names_spec='$libname.dll.a'
13136    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13137    postinstall_cmds='base_file=`basename \${file}`~
13138      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13139      dldir=$destdir/`dirname \$dlpath`~
13140      test -d \$dldir || mkdir -p \$dldir~
13141      $install_prog $dir/$dlname \$dldir/$dlname~
13142      chmod a+x \$dldir/$dlname'
13143    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13144      dlpath=$dir/\$dldll~
13145       $rm \$dlpath'
13146    shlibpath_overrides_runpath=yes
13147
13148    case $host_os in
13149    cygwin*)
13150      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13151      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13152      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13153      ;;
13154    mingw*)
13155      # MinGW DLLs use traditional 'lib' prefix
13156      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13157      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13158      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13159        # It is most probably a Windows format PATH printed by
13160        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13161        # path with ; separators, and with drive letters. We can handle the
13162        # drive letters (cygwin fileutils understands them), so leave them,
13163        # especially as we might pass files found there to a mingw objdump,
13164        # which wouldn't understand a cygwinified path. Ahh.
13165        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13166      else
13167        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13168      fi
13169      ;;
13170    pw32*)
13171      # pw32 DLLs use 'pw' prefix rather than 'lib'
13172      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13173      ;;
13174    esac
13175    ;;
13176
13177  *)
13178    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13179    ;;
13180  esac
13181  dynamic_linker='Win32 ld.exe'
13182  # FIXME: first we should search . and the directory the executable is in
13183  shlibpath_var=PATH
13184  ;;
13185
13186darwin* | rhapsody*)
13187  dynamic_linker="$host_os dyld"
13188  version_type=darwin
13189  need_lib_prefix=no
13190  need_version=no
13191  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13192  soname_spec='${libname}${release}${major}$shared_ext'
13193  shlibpath_overrides_runpath=yes
13194  shlibpath_var=DYLD_LIBRARY_PATH
13195  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13196
13197  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13198  ;;
13199
13200dgux*)
13201  version_type=linux
13202  need_lib_prefix=no
13203  need_version=no
13204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13205  soname_spec='${libname}${release}${shared_ext}$major'
13206  shlibpath_var=LD_LIBRARY_PATH
13207  ;;
13208
13209freebsd1*)
13210  dynamic_linker=no
13211  ;;
13212
13213freebsd* | dragonfly*)
13214  # DragonFly does not have aout.  When/if they implement a new
13215  # versioning mechanism, adjust this.
13216  if test -x /usr/bin/objformat; then
13217    objformat=`/usr/bin/objformat`
13218  else
13219    case $host_os in
13220    freebsd[123]*) objformat=aout ;;
13221    *) objformat=elf ;;
13222    esac
13223  fi
13224  version_type=freebsd-$objformat
13225  case $version_type in
13226    freebsd-elf*)
13227      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13228      need_version=no
13229      need_lib_prefix=no
13230      ;;
13231    freebsd-*)
13232      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13233      need_version=yes
13234      ;;
13235  esac
13236  shlibpath_var=LD_LIBRARY_PATH
13237  case $host_os in
13238  freebsd2*)
13239    shlibpath_overrides_runpath=yes
13240    ;;
13241  freebsd3.[01]* | freebsdelf3.[01]*)
13242    shlibpath_overrides_runpath=yes
13243    hardcode_into_libs=yes
13244    ;;
13245  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13246  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13247    shlibpath_overrides_runpath=no
13248    hardcode_into_libs=yes
13249    ;;
13250  *) # from 4.6 on, and DragonFly
13251    shlibpath_overrides_runpath=yes
13252    hardcode_into_libs=yes
13253    ;;
13254  esac
13255  ;;
13256
13257gnu*)
13258  version_type=linux
13259  need_lib_prefix=no
13260  need_version=no
13261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13262  soname_spec='${libname}${release}${shared_ext}$major'
13263  shlibpath_var=LD_LIBRARY_PATH
13264  hardcode_into_libs=yes
13265  ;;
13266
13267hpux9* | hpux10* | hpux11*)
13268  # Give a soname corresponding to the major version so that dld.sl refuses to
13269  # link against other versions.
13270  version_type=sunos
13271  need_lib_prefix=no
13272  need_version=no
13273  case $host_cpu in
13274  ia64*)
13275    shrext_cmds='.so'
13276    hardcode_into_libs=yes
13277    dynamic_linker="$host_os dld.so"
13278    shlibpath_var=LD_LIBRARY_PATH
13279    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13280    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13281    soname_spec='${libname}${release}${shared_ext}$major'
13282    if test "X$HPUX_IA64_MODE" = X32; then
13283      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13284    else
13285      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13286    fi
13287    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13288    ;;
13289   hppa*64*)
13290     shrext_cmds='.sl'
13291     hardcode_into_libs=yes
13292     dynamic_linker="$host_os dld.sl"
13293     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13294     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13296     soname_spec='${libname}${release}${shared_ext}$major'
13297     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13298     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13299     ;;
13300   *)
13301    shrext_cmds='.sl'
13302    dynamic_linker="$host_os dld.sl"
13303    shlibpath_var=SHLIB_PATH
13304    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13305    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13306    soname_spec='${libname}${release}${shared_ext}$major'
13307    ;;
13308  esac
13309  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13310  postinstall_cmds='chmod 555 $lib'
13311  ;;
13312
13313interix[3-9]*)
13314  version_type=linux
13315  need_lib_prefix=no
13316  need_version=no
13317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13318  soname_spec='${libname}${release}${shared_ext}$major'
13319  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13320  shlibpath_var=LD_LIBRARY_PATH
13321  shlibpath_overrides_runpath=no
13322  hardcode_into_libs=yes
13323  ;;
13324
13325irix5* | irix6* | nonstopux*)
13326  case $host_os in
13327    nonstopux*) version_type=nonstopux ;;
13328    *)
13329	if test "$lt_cv_prog_gnu_ld" = yes; then
13330		version_type=linux
13331	else
13332		version_type=irix
13333	fi ;;
13334  esac
13335  need_lib_prefix=no
13336  need_version=no
13337  soname_spec='${libname}${release}${shared_ext}$major'
13338  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13339  case $host_os in
13340  irix5* | nonstopux*)
13341    libsuff= shlibsuff=
13342    ;;
13343  *)
13344    case $LD in # libtool.m4 will add one of these switches to LD
13345    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13346      libsuff= shlibsuff= libmagic=32-bit;;
13347    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13348      libsuff=32 shlibsuff=N32 libmagic=N32;;
13349    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13350      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13351    *) libsuff= shlibsuff= libmagic=never-match;;
13352    esac
13353    ;;
13354  esac
13355  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13356  shlibpath_overrides_runpath=no
13357  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13358  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13359  hardcode_into_libs=yes
13360  ;;
13361
13362# No shared lib support for Linux oldld, aout, or coff.
13363linux*oldld* | linux*aout* | linux*coff*)
13364  dynamic_linker=no
13365  ;;
13366
13367# This must be Linux ELF.
13368linux* | k*bsd*-gnu)
13369  version_type=linux
13370  need_lib_prefix=no
13371  need_version=no
13372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13373  soname_spec='${libname}${release}${shared_ext}$major'
13374  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13375  shlibpath_var=LD_LIBRARY_PATH
13376  shlibpath_overrides_runpath=no
13377  # This implies no fast_install, which is unacceptable.
13378  # Some rework will be needed to allow for fast_install
13379  # before this can be enabled.
13380  hardcode_into_libs=yes
13381
13382  # Append ld.so.conf contents to the search path
13383  if test -f /etc/ld.so.conf; then
13384    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' ' '`
13385    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13386  fi
13387
13388  # We used to test for /lib/ld.so.1 and disable shared libraries on
13389  # powerpc, because MkLinux only supported shared libraries with the
13390  # GNU dynamic linker.  Since this was broken with cross compilers,
13391  # most powerpc-linux boxes support dynamic linking these days and
13392  # people can always --disable-shared, the test was removed, and we
13393  # assume the GNU/Linux dynamic linker is in use.
13394  dynamic_linker='GNU/Linux ld.so'
13395  ;;
13396
13397netbsdelf*-gnu)
13398  version_type=linux
13399  need_lib_prefix=no
13400  need_version=no
13401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13402  soname_spec='${libname}${release}${shared_ext}$major'
13403  shlibpath_var=LD_LIBRARY_PATH
13404  shlibpath_overrides_runpath=no
13405  hardcode_into_libs=yes
13406  dynamic_linker='NetBSD ld.elf_so'
13407  ;;
13408
13409netbsd*)
13410  version_type=sunos
13411  need_lib_prefix=no
13412  need_version=no
13413  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13414    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13415    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13416    dynamic_linker='NetBSD (a.out) ld.so'
13417  else
13418    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13419    soname_spec='${libname}${release}${shared_ext}$major'
13420    dynamic_linker='NetBSD ld.elf_so'
13421  fi
13422  shlibpath_var=LD_LIBRARY_PATH
13423  shlibpath_overrides_runpath=yes
13424  hardcode_into_libs=yes
13425  ;;
13426
13427newsos6)
13428  version_type=linux
13429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13430  shlibpath_var=LD_LIBRARY_PATH
13431  shlibpath_overrides_runpath=yes
13432  ;;
13433
13434nto-qnx*)
13435  version_type=linux
13436  need_lib_prefix=no
13437  need_version=no
13438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13439  soname_spec='${libname}${release}${shared_ext}$major'
13440  shlibpath_var=LD_LIBRARY_PATH
13441  shlibpath_overrides_runpath=yes
13442  ;;
13443
13444openbsd*)
13445  version_type=sunos
13446  sys_lib_dlsearch_path_spec="/usr/lib"
13447  need_lib_prefix=no
13448  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13449  case $host_os in
13450    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13451    *)                         need_version=no  ;;
13452  esac
13453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13454  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13455  shlibpath_var=LD_LIBRARY_PATH
13456  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13457    case $host_os in
13458      openbsd2.[89] | openbsd2.[89].*)
13459	shlibpath_overrides_runpath=no
13460	;;
13461      *)
13462	shlibpath_overrides_runpath=yes
13463	;;
13464      esac
13465  else
13466    shlibpath_overrides_runpath=yes
13467  fi
13468  ;;
13469
13470os2*)
13471  libname_spec='$name'
13472  shrext_cmds=".dll"
13473  need_lib_prefix=no
13474  library_names_spec='$libname${shared_ext} $libname.a'
13475  dynamic_linker='OS/2 ld.exe'
13476  shlibpath_var=LIBPATH
13477  ;;
13478
13479osf3* | osf4* | osf5*)
13480  version_type=osf
13481  need_lib_prefix=no
13482  need_version=no
13483  soname_spec='${libname}${release}${shared_ext}$major'
13484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13485  shlibpath_var=LD_LIBRARY_PATH
13486  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13487  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13488  ;;
13489
13490rdos*)
13491  dynamic_linker=no
13492  ;;
13493
13494solaris*)
13495  version_type=linux
13496  need_lib_prefix=no
13497  need_version=no
13498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13499  soname_spec='${libname}${release}${shared_ext}$major'
13500  shlibpath_var=LD_LIBRARY_PATH
13501  shlibpath_overrides_runpath=yes
13502  hardcode_into_libs=yes
13503  # ldd complains unless libraries are executable
13504  postinstall_cmds='chmod +x $lib'
13505  ;;
13506
13507sunos4*)
13508  version_type=sunos
13509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13510  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13511  shlibpath_var=LD_LIBRARY_PATH
13512  shlibpath_overrides_runpath=yes
13513  if test "$with_gnu_ld" = yes; then
13514    need_lib_prefix=no
13515  fi
13516  need_version=yes
13517  ;;
13518
13519sysv4 | sysv4.3*)
13520  version_type=linux
13521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13522  soname_spec='${libname}${release}${shared_ext}$major'
13523  shlibpath_var=LD_LIBRARY_PATH
13524  case $host_vendor in
13525    sni)
13526      shlibpath_overrides_runpath=no
13527      need_lib_prefix=no
13528      export_dynamic_flag_spec='${wl}-Blargedynsym'
13529      runpath_var=LD_RUN_PATH
13530      ;;
13531    siemens)
13532      need_lib_prefix=no
13533      ;;
13534    motorola)
13535      need_lib_prefix=no
13536      need_version=no
13537      shlibpath_overrides_runpath=no
13538      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13539      ;;
13540  esac
13541  ;;
13542
13543sysv4*MP*)
13544  if test -d /usr/nec ;then
13545    version_type=linux
13546    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13547    soname_spec='$libname${shared_ext}.$major'
13548    shlibpath_var=LD_LIBRARY_PATH
13549  fi
13550  ;;
13551
13552sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13553  version_type=freebsd-elf
13554  need_lib_prefix=no
13555  need_version=no
13556  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13557  soname_spec='${libname}${release}${shared_ext}$major'
13558  shlibpath_var=LD_LIBRARY_PATH
13559  hardcode_into_libs=yes
13560  if test "$with_gnu_ld" = yes; then
13561    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13562    shlibpath_overrides_runpath=no
13563  else
13564    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13565    shlibpath_overrides_runpath=yes
13566    case $host_os in
13567      sco3.2v5*)
13568        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13569	;;
13570    esac
13571  fi
13572  sys_lib_dlsearch_path_spec='/usr/lib'
13573  ;;
13574
13575uts4*)
13576  version_type=linux
13577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13578  soname_spec='${libname}${release}${shared_ext}$major'
13579  shlibpath_var=LD_LIBRARY_PATH
13580  ;;
13581
13582*)
13583  dynamic_linker=no
13584  ;;
13585esac
13586{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13587echo "${ECHO_T}$dynamic_linker" >&6; }
13588test "$dynamic_linker" = no && can_build_shared=no
13589
13590if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13591  echo $ECHO_N "(cached) $ECHO_C" >&6
13592else
13593  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13594fi
13595
13596sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13597if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13598  echo $ECHO_N "(cached) $ECHO_C" >&6
13599else
13600  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13601fi
13602
13603sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13604
13605variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13606if test "$GCC" = yes; then
13607  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13608fi
13609
13610{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13611echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13612hardcode_action_CXX=
13613if test -n "$hardcode_libdir_flag_spec_CXX" || \
13614   test -n "$runpath_var_CXX" || \
13615   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13616
13617  # We can hardcode non-existant directories.
13618  if test "$hardcode_direct_CXX" != no &&
13619     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13620     # have to relink, otherwise we might link with an installed library
13621     # when we should be linking with a yet-to-be-installed one
13622     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13623     test "$hardcode_minus_L_CXX" != no; then
13624    # Linking always hardcodes the temporary library directory.
13625    hardcode_action_CXX=relink
13626  else
13627    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13628    hardcode_action_CXX=immediate
13629  fi
13630else
13631  # We cannot hardcode anything, or else we can only hardcode existing
13632  # directories.
13633  hardcode_action_CXX=unsupported
13634fi
13635{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13636echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13637
13638if test "$hardcode_action_CXX" = relink; then
13639  # Fast installation is not supported
13640  enable_fast_install=no
13641elif test "$shlibpath_overrides_runpath" = yes ||
13642     test "$enable_shared" = no; then
13643  # Fast installation is not necessary
13644  enable_fast_install=needless
13645fi
13646
13647
13648# The else clause should only fire when bootstrapping the
13649# libtool distribution, otherwise you forgot to ship ltmain.sh
13650# with your package, and you will get complaints that there are
13651# no rules to generate ltmain.sh.
13652if test -f "$ltmain"; then
13653  # See if we are running on zsh, and set the options which allow our commands through
13654  # without removal of \ escapes.
13655  if test -n "${ZSH_VERSION+set}" ; then
13656    setopt NO_GLOB_SUBST
13657  fi
13658  # Now quote all the things that may contain metacharacters while being
13659  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13660  # variables and quote the copies for generation of the libtool script.
13661  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13662    SED SHELL STRIP \
13663    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13664    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13665    deplibs_check_method reload_flag reload_cmds need_locks \
13666    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13667    lt_cv_sys_global_symbol_to_c_name_address \
13668    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13669    old_postinstall_cmds old_postuninstall_cmds \
13670    compiler_CXX \
13671    CC_CXX \
13672    LD_CXX \
13673    lt_prog_compiler_wl_CXX \
13674    lt_prog_compiler_pic_CXX \
13675    lt_prog_compiler_static_CXX \
13676    lt_prog_compiler_no_builtin_flag_CXX \
13677    export_dynamic_flag_spec_CXX \
13678    thread_safe_flag_spec_CXX \
13679    whole_archive_flag_spec_CXX \
13680    enable_shared_with_static_runtimes_CXX \
13681    old_archive_cmds_CXX \
13682    old_archive_from_new_cmds_CXX \
13683    predep_objects_CXX \
13684    postdep_objects_CXX \
13685    predeps_CXX \
13686    postdeps_CXX \
13687    compiler_lib_search_path_CXX \
13688    compiler_lib_search_dirs_CXX \
13689    archive_cmds_CXX \
13690    archive_expsym_cmds_CXX \
13691    postinstall_cmds_CXX \
13692    postuninstall_cmds_CXX \
13693    old_archive_from_expsyms_cmds_CXX \
13694    allow_undefined_flag_CXX \
13695    no_undefined_flag_CXX \
13696    export_symbols_cmds_CXX \
13697    hardcode_libdir_flag_spec_CXX \
13698    hardcode_libdir_flag_spec_ld_CXX \
13699    hardcode_libdir_separator_CXX \
13700    hardcode_automatic_CXX \
13701    module_cmds_CXX \
13702    module_expsym_cmds_CXX \
13703    lt_cv_prog_compiler_c_o_CXX \
13704    fix_srcfile_path_CXX \
13705    exclude_expsyms_CXX \
13706    include_expsyms_CXX; do
13707
13708    case $var in
13709    old_archive_cmds_CXX | \
13710    old_archive_from_new_cmds_CXX | \
13711    archive_cmds_CXX | \
13712    archive_expsym_cmds_CXX | \
13713    module_cmds_CXX | \
13714    module_expsym_cmds_CXX | \
13715    old_archive_from_expsyms_cmds_CXX | \
13716    export_symbols_cmds_CXX | \
13717    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13718    postinstall_cmds | postuninstall_cmds | \
13719    old_postinstall_cmds | old_postuninstall_cmds | \
13720    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13721      # Double-quote double-evaled strings.
13722      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13723      ;;
13724    *)
13725      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13726      ;;
13727    esac
13728  done
13729
13730  case $lt_echo in
13731  *'\$0 --fallback-echo"')
13732    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13733    ;;
13734  esac
13735
13736cfgfile="$ofile"
13737
13738  cat <<__EOF__ >> "$cfgfile"
13739# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13740
13741# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13742
13743# Shell to use when invoking shell scripts.
13744SHELL=$lt_SHELL
13745
13746# Whether or not to build shared libraries.
13747build_libtool_libs=$enable_shared
13748
13749# Whether or not to build static libraries.
13750build_old_libs=$enable_static
13751
13752# Whether or not to add -lc for building shared libraries.
13753build_libtool_need_lc=$archive_cmds_need_lc_CXX
13754
13755# Whether or not to disallow shared libs when runtime libs are static
13756allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13757
13758# Whether or not to optimize for fast installation.
13759fast_install=$enable_fast_install
13760
13761# The host system.
13762host_alias=$host_alias
13763host=$host
13764host_os=$host_os
13765
13766# The build system.
13767build_alias=$build_alias
13768build=$build
13769build_os=$build_os
13770
13771# An echo program that does not interpret backslashes.
13772echo=$lt_echo
13773
13774# The archiver.
13775AR=$lt_AR
13776AR_FLAGS=$lt_AR_FLAGS
13777
13778# A C compiler.
13779LTCC=$lt_LTCC
13780
13781# LTCC compiler flags.
13782LTCFLAGS=$lt_LTCFLAGS
13783
13784# A language-specific compiler.
13785CC=$lt_compiler_CXX
13786
13787# Is the compiler the GNU C compiler?
13788with_gcc=$GCC_CXX
13789
13790# An ERE matcher.
13791EGREP=$lt_EGREP
13792
13793# The linker used to build libraries.
13794LD=$lt_LD_CXX
13795
13796# Whether we need hard or soft links.
13797LN_S=$lt_LN_S
13798
13799# A BSD-compatible nm program.
13800NM=$lt_NM
13801
13802# A symbol stripping program
13803STRIP=$lt_STRIP
13804
13805# Used to examine libraries when file_magic_cmd begins "file"
13806MAGIC_CMD=$MAGIC_CMD
13807
13808# Used on cygwin: DLL creation program.
13809DLLTOOL="$DLLTOOL"
13810
13811# Used on cygwin: object dumper.
13812OBJDUMP="$OBJDUMP"
13813
13814# Used on cygwin: assembler.
13815AS="$AS"
13816
13817# The name of the directory that contains temporary libtool files.
13818objdir=$objdir
13819
13820# How to create reloadable object files.
13821reload_flag=$lt_reload_flag
13822reload_cmds=$lt_reload_cmds
13823
13824# How to pass a linker flag through the compiler.
13825wl=$lt_lt_prog_compiler_wl_CXX
13826
13827# Object file suffix (normally "o").
13828objext="$ac_objext"
13829
13830# Old archive suffix (normally "a").
13831libext="$libext"
13832
13833# Shared library suffix (normally ".so").
13834shrext_cmds='$shrext_cmds'
13835
13836# Executable file suffix (normally "").
13837exeext="$exeext"
13838
13839# Additional compiler flags for building library objects.
13840pic_flag=$lt_lt_prog_compiler_pic_CXX
13841pic_mode=$pic_mode
13842
13843# What is the maximum length of a command?
13844max_cmd_len=$lt_cv_sys_max_cmd_len
13845
13846# Does compiler simultaneously support -c and -o options?
13847compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13848
13849# Must we lock files when doing compilation?
13850need_locks=$lt_need_locks
13851
13852# Do we need the lib prefix for modules?
13853need_lib_prefix=$need_lib_prefix
13854
13855# Do we need a version for libraries?
13856need_version=$need_version
13857
13858# Whether dlopen is supported.
13859dlopen_support=$enable_dlopen
13860
13861# Whether dlopen of programs is supported.
13862dlopen_self=$enable_dlopen_self
13863
13864# Whether dlopen of statically linked programs is supported.
13865dlopen_self_static=$enable_dlopen_self_static
13866
13867# Compiler flag to prevent dynamic linking.
13868link_static_flag=$lt_lt_prog_compiler_static_CXX
13869
13870# Compiler flag to turn off builtin functions.
13871no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13872
13873# Compiler flag to allow reflexive dlopens.
13874export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13875
13876# Compiler flag to generate shared objects directly from archives.
13877whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13878
13879# Compiler flag to generate thread-safe objects.
13880thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13881
13882# Library versioning type.
13883version_type=$version_type
13884
13885# Format of library name prefix.
13886libname_spec=$lt_libname_spec
13887
13888# List of archive names.  First name is the real one, the rest are links.
13889# The last name is the one that the linker finds with -lNAME.
13890library_names_spec=$lt_library_names_spec
13891
13892# The coded name of the library, if different from the real name.
13893soname_spec=$lt_soname_spec
13894
13895# Commands used to build and install an old-style archive.
13896RANLIB=$lt_RANLIB
13897old_archive_cmds=$lt_old_archive_cmds_CXX
13898old_postinstall_cmds=$lt_old_postinstall_cmds
13899old_postuninstall_cmds=$lt_old_postuninstall_cmds
13900
13901# Create an old-style archive from a shared archive.
13902old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13903
13904# Create a temporary old-style archive to link instead of a shared archive.
13905old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13906
13907# Commands used to build and install a shared archive.
13908archive_cmds=$lt_archive_cmds_CXX
13909archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13910postinstall_cmds=$lt_postinstall_cmds
13911postuninstall_cmds=$lt_postuninstall_cmds
13912
13913# Commands used to build a loadable module (assumed same as above if empty)
13914module_cmds=$lt_module_cmds_CXX
13915module_expsym_cmds=$lt_module_expsym_cmds_CXX
13916
13917# Commands to strip libraries.
13918old_striplib=$lt_old_striplib
13919striplib=$lt_striplib
13920
13921# Dependencies to place before the objects being linked to create a
13922# shared library.
13923predep_objects=$lt_predep_objects_CXX
13924
13925# Dependencies to place after the objects being linked to create a
13926# shared library.
13927postdep_objects=$lt_postdep_objects_CXX
13928
13929# Dependencies to place before the objects being linked to create a
13930# shared library.
13931predeps=$lt_predeps_CXX
13932
13933# Dependencies to place after the objects being linked to create a
13934# shared library.
13935postdeps=$lt_postdeps_CXX
13936
13937# The directories searched by this compiler when creating a shared
13938# library
13939compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13940
13941# The library search path used internally by the compiler when linking
13942# a shared library.
13943compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13944
13945# Method to check whether dependent libraries are shared objects.
13946deplibs_check_method=$lt_deplibs_check_method
13947
13948# Command to use when deplibs_check_method == file_magic.
13949file_magic_cmd=$lt_file_magic_cmd
13950
13951# Flag that allows shared libraries with undefined symbols to be built.
13952allow_undefined_flag=$lt_allow_undefined_flag_CXX
13953
13954# Flag that forces no undefined symbols.
13955no_undefined_flag=$lt_no_undefined_flag_CXX
13956
13957# Commands used to finish a libtool library installation in a directory.
13958finish_cmds=$lt_finish_cmds
13959
13960# Same as above, but a single script fragment to be evaled but not shown.
13961finish_eval=$lt_finish_eval
13962
13963# Take the output of nm and produce a listing of raw symbols and C names.
13964global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13965
13966# Transform the output of nm in a proper C declaration
13967global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13968
13969# Transform the output of nm in a C name address pair
13970global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13971
13972# This is the shared library runtime path variable.
13973runpath_var=$runpath_var
13974
13975# This is the shared library path variable.
13976shlibpath_var=$shlibpath_var
13977
13978# Is shlibpath searched before the hard-coded library search path?
13979shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13980
13981# How to hardcode a shared library path into an executable.
13982hardcode_action=$hardcode_action_CXX
13983
13984# Whether we should hardcode library paths into libraries.
13985hardcode_into_libs=$hardcode_into_libs
13986
13987# Flag to hardcode \$libdir into a binary during linking.
13988# This must work even if \$libdir does not exist.
13989hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13990
13991# If ld is used when linking, flag to hardcode \$libdir into
13992# a binary during linking. This must work even if \$libdir does
13993# not exist.
13994hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13995
13996# Whether we need a single -rpath flag with a separated argument.
13997hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13998
13999# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14000# resulting binary.
14001hardcode_direct=$hardcode_direct_CXX
14002
14003# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14004# resulting binary.
14005hardcode_minus_L=$hardcode_minus_L_CXX
14006
14007# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14008# the resulting binary.
14009hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14010
14011# Set to yes if building a shared library automatically hardcodes DIR into the library
14012# and all subsequent libraries and executables linked against it.
14013hardcode_automatic=$hardcode_automatic_CXX
14014
14015# Variables whose values should be saved in libtool wrapper scripts and
14016# restored at relink time.
14017variables_saved_for_relink="$variables_saved_for_relink"
14018
14019# Whether libtool must link a program against all its dependency libraries.
14020link_all_deplibs=$link_all_deplibs_CXX
14021
14022# Compile-time system search path for libraries
14023sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14024
14025# Run-time system search path for libraries
14026sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14027
14028# Fix the shell variable \$srcfile for the compiler.
14029fix_srcfile_path=$lt_fix_srcfile_path
14030
14031# Set to yes if exported symbols are required.
14032always_export_symbols=$always_export_symbols_CXX
14033
14034# The commands to list exported symbols.
14035export_symbols_cmds=$lt_export_symbols_cmds_CXX
14036
14037# The commands to extract the exported symbol list from a shared archive.
14038extract_expsyms_cmds=$lt_extract_expsyms_cmds
14039
14040# Symbols that should not be listed in the preloaded symbols.
14041exclude_expsyms=$lt_exclude_expsyms_CXX
14042
14043# Symbols that must always be exported.
14044include_expsyms=$lt_include_expsyms_CXX
14045
14046# ### END LIBTOOL TAG CONFIG: $tagname
14047
14048__EOF__
14049
14050
14051else
14052  # If there is no Makefile yet, we rely on a make rule to execute
14053  # `config.status --recheck' to rerun these tests and create the
14054  # libtool script then.
14055  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14056  if test -f "$ltmain_in"; then
14057    test -f Makefile && make "$ltmain"
14058  fi
14059fi
14060
14061
14062ac_ext=c
14063ac_cpp='$CPP $CPPFLAGS'
14064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14066ac_compiler_gnu=$ac_cv_c_compiler_gnu
14067
14068CC=$lt_save_CC
14069LDCXX=$LD
14070LD=$lt_save_LD
14071GCC=$lt_save_GCC
14072with_gnu_ldcxx=$with_gnu_ld
14073with_gnu_ld=$lt_save_with_gnu_ld
14074lt_cv_path_LDCXX=$lt_cv_path_LD
14075lt_cv_path_LD=$lt_save_path_LD
14076lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14077lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14078
14079	else
14080	  tagname=""
14081	fi
14082	;;
14083
14084      F77)
14085	if test -n "$F77" && test "X$F77" != "Xno"; then
14086
14087ac_ext=f
14088ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14089ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14090ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14091
14092
14093archive_cmds_need_lc_F77=no
14094allow_undefined_flag_F77=
14095always_export_symbols_F77=no
14096archive_expsym_cmds_F77=
14097export_dynamic_flag_spec_F77=
14098hardcode_direct_F77=no
14099hardcode_libdir_flag_spec_F77=
14100hardcode_libdir_flag_spec_ld_F77=
14101hardcode_libdir_separator_F77=
14102hardcode_minus_L_F77=no
14103hardcode_automatic_F77=no
14104module_cmds_F77=
14105module_expsym_cmds_F77=
14106link_all_deplibs_F77=unknown
14107old_archive_cmds_F77=$old_archive_cmds
14108no_undefined_flag_F77=
14109whole_archive_flag_spec_F77=
14110enable_shared_with_static_runtimes_F77=no
14111
14112# Source file extension for f77 test sources.
14113ac_ext=f
14114
14115# Object file extension for compiled f77 test sources.
14116objext=o
14117objext_F77=$objext
14118
14119# Code to be used in simple compile tests
14120lt_simple_compile_test_code="\
14121      subroutine t
14122      return
14123      end
14124"
14125
14126# Code to be used in simple link tests
14127lt_simple_link_test_code="\
14128      program t
14129      end
14130"
14131
14132# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14133
14134# If no C compiler was specified, use CC.
14135LTCC=${LTCC-"$CC"}
14136
14137# If no C compiler flags were specified, use CFLAGS.
14138LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14139
14140# Allow CC to be a program name with arguments.
14141compiler=$CC
14142
14143
14144# save warnings/boilerplate of simple test code
14145ac_outfile=conftest.$ac_objext
14146echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14147eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14148_lt_compiler_boilerplate=`cat conftest.err`
14149$rm conftest*
14150
14151ac_outfile=conftest.$ac_objext
14152echo "$lt_simple_link_test_code" >conftest.$ac_ext
14153eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14154_lt_linker_boilerplate=`cat conftest.err`
14155$rm -r conftest*
14156
14157
14158# Allow CC to be a program name with arguments.
14159lt_save_CC="$CC"
14160CC=${F77-"f77"}
14161compiler=$CC
14162compiler_F77=$CC
14163for cc_temp in $compiler""; do
14164  case $cc_temp in
14165    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14166    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14167    \-*) ;;
14168    *) break;;
14169  esac
14170done
14171cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14172
14173
14174{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14175echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14176{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14177echo "${ECHO_T}$can_build_shared" >&6; }
14178
14179{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14180echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14181test "$can_build_shared" = "no" && enable_shared=no
14182
14183# On AIX, shared libraries and static libraries use the same namespace, and
14184# are all built from PIC.
14185case $host_os in
14186aix3*)
14187  test "$enable_shared" = yes && enable_static=no
14188  if test -n "$RANLIB"; then
14189    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14190    postinstall_cmds='$RANLIB $lib'
14191  fi
14192  ;;
14193aix[4-9]*)
14194  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14195    test "$enable_shared" = yes && enable_static=no
14196  fi
14197  ;;
14198esac
14199{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14200echo "${ECHO_T}$enable_shared" >&6; }
14201
14202{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14203echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14204# Make sure either enable_shared or enable_static is yes.
14205test "$enable_shared" = yes || enable_static=yes
14206{ echo "$as_me:$LINENO: result: $enable_static" >&5
14207echo "${ECHO_T}$enable_static" >&6; }
14208
14209GCC_F77="$G77"
14210LD_F77="$LD"
14211
14212lt_prog_compiler_wl_F77=
14213lt_prog_compiler_pic_F77=
14214lt_prog_compiler_static_F77=
14215
14216{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14217echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14218
14219  if test "$GCC" = yes; then
14220    lt_prog_compiler_wl_F77='-Wl,'
14221    lt_prog_compiler_static_F77='-static'
14222
14223    case $host_os in
14224      aix*)
14225      # All AIX code is PIC.
14226      if test "$host_cpu" = ia64; then
14227	# AIX 5 now supports IA64 processor
14228	lt_prog_compiler_static_F77='-Bstatic'
14229      fi
14230      ;;
14231
14232    amigaos*)
14233      # FIXME: we need at least 68020 code to build shared libraries, but
14234      # adding the `-m68020' flag to GCC prevents building anything better,
14235      # like `-m68040'.
14236      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14237      ;;
14238
14239    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14240      # PIC is the default for these OSes.
14241      ;;
14242
14243    mingw* | cygwin* | pw32* | os2*)
14244      # This hack is so that the source file can tell whether it is being
14245      # built for inclusion in a dll (and should export symbols for example).
14246      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14247      # (--disable-auto-import) libraries
14248      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14249      ;;
14250
14251    darwin* | rhapsody*)
14252      # PIC is the default on this platform
14253      # Common symbols not allowed in MH_DYLIB files
14254      lt_prog_compiler_pic_F77='-fno-common'
14255      ;;
14256
14257    interix[3-9]*)
14258      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14259      # Instead, we relocate shared libraries at runtime.
14260      ;;
14261
14262    msdosdjgpp*)
14263      # Just because we use GCC doesn't mean we suddenly get shared libraries
14264      # on systems that don't support them.
14265      lt_prog_compiler_can_build_shared_F77=no
14266      enable_shared=no
14267      ;;
14268
14269    sysv4*MP*)
14270      if test -d /usr/nec; then
14271	lt_prog_compiler_pic_F77=-Kconform_pic
14272      fi
14273      ;;
14274
14275    hpux*)
14276      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14277      # not for PA HP-UX.
14278      case $host_cpu in
14279      hppa*64*|ia64*)
14280	# +Z the default
14281	;;
14282      *)
14283	lt_prog_compiler_pic_F77='-fPIC'
14284	;;
14285      esac
14286      ;;
14287
14288    *)
14289      lt_prog_compiler_pic_F77='-fPIC'
14290      ;;
14291    esac
14292  else
14293    # PORTME Check for flag to pass linker flags through the system compiler.
14294    case $host_os in
14295    aix*)
14296      lt_prog_compiler_wl_F77='-Wl,'
14297      if test "$host_cpu" = ia64; then
14298	# AIX 5 now supports IA64 processor
14299	lt_prog_compiler_static_F77='-Bstatic'
14300      else
14301	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14302      fi
14303      ;;
14304      darwin*)
14305        # PIC is the default on this platform
14306        # Common symbols not allowed in MH_DYLIB files
14307       case $cc_basename in
14308         xlc*)
14309         lt_prog_compiler_pic_F77='-qnocommon'
14310         lt_prog_compiler_wl_F77='-Wl,'
14311         ;;
14312       esac
14313       ;;
14314
14315    mingw* | cygwin* | pw32* | os2*)
14316      # This hack is so that the source file can tell whether it is being
14317      # built for inclusion in a dll (and should export symbols for example).
14318      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14319      ;;
14320
14321    hpux9* | hpux10* | hpux11*)
14322      lt_prog_compiler_wl_F77='-Wl,'
14323      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14324      # not for PA HP-UX.
14325      case $host_cpu in
14326      hppa*64*|ia64*)
14327	# +Z the default
14328	;;
14329      *)
14330	lt_prog_compiler_pic_F77='+Z'
14331	;;
14332      esac
14333      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14334      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14335      ;;
14336
14337    irix5* | irix6* | nonstopux*)
14338      lt_prog_compiler_wl_F77='-Wl,'
14339      # PIC (with -KPIC) is the default.
14340      lt_prog_compiler_static_F77='-non_shared'
14341      ;;
14342
14343    newsos6)
14344      lt_prog_compiler_pic_F77='-KPIC'
14345      lt_prog_compiler_static_F77='-Bstatic'
14346      ;;
14347
14348    linux* | k*bsd*-gnu)
14349      case $cc_basename in
14350      icc* | ecc*)
14351	lt_prog_compiler_wl_F77='-Wl,'
14352	lt_prog_compiler_pic_F77='-KPIC'
14353	lt_prog_compiler_static_F77='-static'
14354        ;;
14355      pgcc* | pgf77* | pgf90* | pgf95*)
14356        # Portland Group compilers (*not* the Pentium gcc compiler,
14357	# which looks to be a dead project)
14358	lt_prog_compiler_wl_F77='-Wl,'
14359	lt_prog_compiler_pic_F77='-fpic'
14360	lt_prog_compiler_static_F77='-Bstatic'
14361        ;;
14362      ccc*)
14363        lt_prog_compiler_wl_F77='-Wl,'
14364        # All Alpha code is PIC.
14365        lt_prog_compiler_static_F77='-non_shared'
14366        ;;
14367      *)
14368        case `$CC -V 2>&1 | sed 5q` in
14369	*Sun\ C*)
14370	  # Sun C 5.9
14371	  lt_prog_compiler_pic_F77='-KPIC'
14372	  lt_prog_compiler_static_F77='-Bstatic'
14373	  lt_prog_compiler_wl_F77='-Wl,'
14374	  ;;
14375	*Sun\ F*)
14376	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14377	  lt_prog_compiler_pic_F77='-KPIC'
14378	  lt_prog_compiler_static_F77='-Bstatic'
14379	  lt_prog_compiler_wl_F77=''
14380	  ;;
14381	esac
14382	;;
14383      esac
14384      ;;
14385
14386    osf3* | osf4* | osf5*)
14387      lt_prog_compiler_wl_F77='-Wl,'
14388      # All OSF/1 code is PIC.
14389      lt_prog_compiler_static_F77='-non_shared'
14390      ;;
14391
14392    rdos*)
14393      lt_prog_compiler_static_F77='-non_shared'
14394      ;;
14395
14396    solaris*)
14397      lt_prog_compiler_pic_F77='-KPIC'
14398      lt_prog_compiler_static_F77='-Bstatic'
14399      case $cc_basename in
14400      f77* | f90* | f95*)
14401	lt_prog_compiler_wl_F77='-Qoption ld ';;
14402      *)
14403	lt_prog_compiler_wl_F77='-Wl,';;
14404      esac
14405      ;;
14406
14407    sunos4*)
14408      lt_prog_compiler_wl_F77='-Qoption ld '
14409      lt_prog_compiler_pic_F77='-PIC'
14410      lt_prog_compiler_static_F77='-Bstatic'
14411      ;;
14412
14413    sysv4 | sysv4.2uw2* | sysv4.3*)
14414      lt_prog_compiler_wl_F77='-Wl,'
14415      lt_prog_compiler_pic_F77='-KPIC'
14416      lt_prog_compiler_static_F77='-Bstatic'
14417      ;;
14418
14419    sysv4*MP*)
14420      if test -d /usr/nec ;then
14421	lt_prog_compiler_pic_F77='-Kconform_pic'
14422	lt_prog_compiler_static_F77='-Bstatic'
14423      fi
14424      ;;
14425
14426    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14427      lt_prog_compiler_wl_F77='-Wl,'
14428      lt_prog_compiler_pic_F77='-KPIC'
14429      lt_prog_compiler_static_F77='-Bstatic'
14430      ;;
14431
14432    unicos*)
14433      lt_prog_compiler_wl_F77='-Wl,'
14434      lt_prog_compiler_can_build_shared_F77=no
14435      ;;
14436
14437    uts4*)
14438      lt_prog_compiler_pic_F77='-pic'
14439      lt_prog_compiler_static_F77='-Bstatic'
14440      ;;
14441
14442    *)
14443      lt_prog_compiler_can_build_shared_F77=no
14444      ;;
14445    esac
14446  fi
14447
14448{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14449echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14450
14451#
14452# Check to make sure the PIC flag actually works.
14453#
14454if test -n "$lt_prog_compiler_pic_F77"; then
14455
14456{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14457echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14458if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14459  echo $ECHO_N "(cached) $ECHO_C" >&6
14460else
14461  lt_cv_prog_compiler_pic_works_F77=no
14462  ac_outfile=conftest.$ac_objext
14463   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14464   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14465   # Insert the option either (1) after the last *FLAGS variable, or
14466   # (2) before a word containing "conftest.", or (3) at the end.
14467   # Note that $ac_compile itself does not contain backslashes and begins
14468   # with a dollar sign (not a hyphen), so the echo should work correctly.
14469   # The option is referenced via a variable to avoid confusing sed.
14470   lt_compile=`echo "$ac_compile" | $SED \
14471   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14472   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14473   -e 's:$: $lt_compiler_flag:'`
14474   (eval echo "\"\$as_me:14474: $lt_compile\"" >&5)
14475   (eval "$lt_compile" 2>conftest.err)
14476   ac_status=$?
14477   cat conftest.err >&5
14478   echo "$as_me:14478: \$? = $ac_status" >&5
14479   if (exit $ac_status) && test -s "$ac_outfile"; then
14480     # The compiler can only warn and ignore the option if not recognized
14481     # So say no if there are warnings other than the usual output.
14482     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14483     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14484     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14485       lt_cv_prog_compiler_pic_works_F77=yes
14486     fi
14487   fi
14488   $rm conftest*
14489
14490fi
14491{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14492echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14493
14494if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14495    case $lt_prog_compiler_pic_F77 in
14496     "" | " "*) ;;
14497     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14498     esac
14499else
14500    lt_prog_compiler_pic_F77=
14501     lt_prog_compiler_can_build_shared_F77=no
14502fi
14503
14504fi
14505case $host_os in
14506  # For platforms which do not support PIC, -DPIC is meaningless:
14507  *djgpp*)
14508    lt_prog_compiler_pic_F77=
14509    ;;
14510  *)
14511    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14512    ;;
14513esac
14514
14515#
14516# Check to make sure the static flag actually works.
14517#
14518wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14519{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14520echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14521if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14522  echo $ECHO_N "(cached) $ECHO_C" >&6
14523else
14524  lt_cv_prog_compiler_static_works_F77=no
14525   save_LDFLAGS="$LDFLAGS"
14526   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14527   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14528   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14529     # The linker can only warn and ignore the option if not recognized
14530     # So say no if there are warnings
14531     if test -s conftest.err; then
14532       # Append any errors to the config.log.
14533       cat conftest.err 1>&5
14534       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14535       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14536       if diff conftest.exp conftest.er2 >/dev/null; then
14537         lt_cv_prog_compiler_static_works_F77=yes
14538       fi
14539     else
14540       lt_cv_prog_compiler_static_works_F77=yes
14541     fi
14542   fi
14543   $rm -r conftest*
14544   LDFLAGS="$save_LDFLAGS"
14545
14546fi
14547{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14548echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14549
14550if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14551    :
14552else
14553    lt_prog_compiler_static_F77=
14554fi
14555
14556
14557{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14558echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14559if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14560  echo $ECHO_N "(cached) $ECHO_C" >&6
14561else
14562  lt_cv_prog_compiler_c_o_F77=no
14563   $rm -r conftest 2>/dev/null
14564   mkdir conftest
14565   cd conftest
14566   mkdir out
14567   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14568
14569   lt_compiler_flag="-o out/conftest2.$ac_objext"
14570   # Insert the option either (1) after the last *FLAGS variable, or
14571   # (2) before a word containing "conftest.", or (3) at the end.
14572   # Note that $ac_compile itself does not contain backslashes and begins
14573   # with a dollar sign (not a hyphen), so the echo should work correctly.
14574   lt_compile=`echo "$ac_compile" | $SED \
14575   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14576   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14577   -e 's:$: $lt_compiler_flag:'`
14578   (eval echo "\"\$as_me:14578: $lt_compile\"" >&5)
14579   (eval "$lt_compile" 2>out/conftest.err)
14580   ac_status=$?
14581   cat out/conftest.err >&5
14582   echo "$as_me:14582: \$? = $ac_status" >&5
14583   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14584   then
14585     # The compiler can only warn and ignore the option if not recognized
14586     # So say no if there are warnings
14587     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14588     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14589     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14590       lt_cv_prog_compiler_c_o_F77=yes
14591     fi
14592   fi
14593   chmod u+w . 2>&5
14594   $rm conftest*
14595   # SGI C++ compiler will create directory out/ii_files/ for
14596   # template instantiation
14597   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14598   $rm out/* && rmdir out
14599   cd ..
14600   rmdir conftest
14601   $rm conftest*
14602
14603fi
14604{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14605echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14606
14607
14608hard_links="nottested"
14609if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14610  # do not overwrite the value of need_locks provided by the user
14611  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14612echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14613  hard_links=yes
14614  $rm conftest*
14615  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14616  touch conftest.a
14617  ln conftest.a conftest.b 2>&5 || hard_links=no
14618  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14619  { echo "$as_me:$LINENO: result: $hard_links" >&5
14620echo "${ECHO_T}$hard_links" >&6; }
14621  if test "$hard_links" = no; then
14622    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14623echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14624    need_locks=warn
14625  fi
14626else
14627  need_locks=no
14628fi
14629
14630{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14631echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14632
14633  runpath_var=
14634  allow_undefined_flag_F77=
14635  enable_shared_with_static_runtimes_F77=no
14636  archive_cmds_F77=
14637  archive_expsym_cmds_F77=
14638  old_archive_From_new_cmds_F77=
14639  old_archive_from_expsyms_cmds_F77=
14640  export_dynamic_flag_spec_F77=
14641  whole_archive_flag_spec_F77=
14642  thread_safe_flag_spec_F77=
14643  hardcode_libdir_flag_spec_F77=
14644  hardcode_libdir_flag_spec_ld_F77=
14645  hardcode_libdir_separator_F77=
14646  hardcode_direct_F77=no
14647  hardcode_minus_L_F77=no
14648  hardcode_shlibpath_var_F77=unsupported
14649  link_all_deplibs_F77=unknown
14650  hardcode_automatic_F77=no
14651  module_cmds_F77=
14652  module_expsym_cmds_F77=
14653  always_export_symbols_F77=no
14654  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14655  # include_expsyms should be a list of space-separated symbols to be *always*
14656  # included in the symbol list
14657  include_expsyms_F77=
14658  # exclude_expsyms can be an extended regexp of symbols to exclude
14659  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14660  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14661  # as well as any symbol that contains `d'.
14662  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14663  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14664  # platforms (ab)use it in PIC code, but their linkers get confused if
14665  # the symbol is explicitly referenced.  Since portable code cannot
14666  # rely on this symbol name, it's probably fine to never include it in
14667  # preloaded symbol tables.
14668  # Exclude shared library initialization/finalization symbols.
14669  extract_expsyms_cmds=
14670  # Just being paranoid about ensuring that cc_basename is set.
14671  for cc_temp in $compiler""; do
14672  case $cc_temp in
14673    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14674    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14675    \-*) ;;
14676    *) break;;
14677  esac
14678done
14679cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14680
14681  case $host_os in
14682  cygwin* | mingw* | pw32*)
14683    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14684    # When not using gcc, we currently assume that we are using
14685    # Microsoft Visual C++.
14686    if test "$GCC" != yes; then
14687      with_gnu_ld=no
14688    fi
14689    ;;
14690  interix*)
14691    # we just hope/assume this is gcc and not c89 (= MSVC++)
14692    with_gnu_ld=yes
14693    ;;
14694  openbsd*)
14695    with_gnu_ld=no
14696    ;;
14697  esac
14698
14699  ld_shlibs_F77=yes
14700  if test "$with_gnu_ld" = yes; then
14701    # If archive_cmds runs LD, not CC, wlarc should be empty
14702    wlarc='${wl}'
14703
14704    # Set some defaults for GNU ld with shared library support. These
14705    # are reset later if shared libraries are not supported. Putting them
14706    # here allows them to be overridden if necessary.
14707    runpath_var=LD_RUN_PATH
14708    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14709    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14710    # ancient GNU ld didn't support --whole-archive et. al.
14711    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14712	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14713      else
14714  	whole_archive_flag_spec_F77=
14715    fi
14716    supports_anon_versioning=no
14717    case `$LD -v 2>/dev/null` in
14718      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14719      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14720      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14721      *\ 2.11.*) ;; # other 2.11 versions
14722      *) supports_anon_versioning=yes ;;
14723    esac
14724
14725    # See if GNU ld supports shared libraries.
14726    case $host_os in
14727    aix[3-9]*)
14728      # On AIX/PPC, the GNU linker is very broken
14729      if test "$host_cpu" != ia64; then
14730	ld_shlibs_F77=no
14731	cat <<EOF 1>&2
14732
14733*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14734*** to be unable to reliably create shared libraries on AIX.
14735*** Therefore, libtool is disabling shared libraries support.  If you
14736*** really care for shared libraries, you may want to modify your PATH
14737*** so that a non-GNU linker is found, and then restart.
14738
14739EOF
14740      fi
14741      ;;
14742
14743    amigaos*)
14744      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)'
14745      hardcode_libdir_flag_spec_F77='-L$libdir'
14746      hardcode_minus_L_F77=yes
14747
14748      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14749      # that the semantics of dynamic libraries on AmigaOS, at least up
14750      # to version 4, is to share data among multiple programs linked
14751      # with the same dynamic library.  Since this doesn't match the
14752      # behavior of shared libraries on other platforms, we can't use
14753      # them.
14754      ld_shlibs_F77=no
14755      ;;
14756
14757    beos*)
14758      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14759	allow_undefined_flag_F77=unsupported
14760	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14761	# support --undefined.  This deserves some investigation.  FIXME
14762	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14763      else
14764	ld_shlibs_F77=no
14765      fi
14766      ;;
14767
14768    cygwin* | mingw* | pw32*)
14769      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14770      # as there is no search path for DLLs.
14771      hardcode_libdir_flag_spec_F77='-L$libdir'
14772      allow_undefined_flag_F77=unsupported
14773      always_export_symbols_F77=no
14774      enable_shared_with_static_runtimes_F77=yes
14775      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14776
14777      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14778        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14779	# If the export-symbols file already is a .def file (1st line
14780	# is EXPORTS), use it as is; otherwise, prepend...
14781	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14782	  cp $export_symbols $output_objdir/$soname.def;
14783	else
14784	  echo EXPORTS > $output_objdir/$soname.def;
14785	  cat $export_symbols >> $output_objdir/$soname.def;
14786	fi~
14787	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14788      else
14789	ld_shlibs_F77=no
14790      fi
14791      ;;
14792
14793    interix[3-9]*)
14794      hardcode_direct_F77=no
14795      hardcode_shlibpath_var_F77=no
14796      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14797      export_dynamic_flag_spec_F77='${wl}-E'
14798      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14799      # Instead, shared libraries are loaded at an image base (0x10000000 by
14800      # default) and relocated if they conflict, which is a slow very memory
14801      # consuming and fragmenting process.  To avoid this, we pick a random,
14802      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14803      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14804      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'
14805      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'
14806      ;;
14807
14808    gnu* | linux* | k*bsd*-gnu)
14809      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14810	tmp_addflag=
14811	case $cc_basename,$host_cpu in
14812	pgcc*)				# Portland Group C compiler
14813	  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'
14814	  tmp_addflag=' $pic_flag'
14815	  ;;
14816	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14817	  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'
14818	  tmp_addflag=' $pic_flag -Mnomain' ;;
14819	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14820	  tmp_addflag=' -i_dynamic' ;;
14821	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14822	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14823	ifc* | ifort*)			# Intel Fortran compiler
14824	  tmp_addflag=' -nofor_main' ;;
14825	esac
14826	case `$CC -V 2>&1 | sed 5q` in
14827	*Sun\ C*)			# Sun C 5.9
14828	  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'
14829	  tmp_sharedflag='-G' ;;
14830	*Sun\ F*)			# Sun Fortran 8.3
14831	  tmp_sharedflag='-G' ;;
14832	*)
14833	  tmp_sharedflag='-shared' ;;
14834	esac
14835	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14836
14837	if test $supports_anon_versioning = yes; then
14838	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14839  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14840  $echo "local: *; };" >> $output_objdir/$libname.ver~
14841	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14842	fi
14843	link_all_deplibs_F77=no
14844      else
14845	ld_shlibs_F77=no
14846      fi
14847      ;;
14848
14849    netbsd* | netbsdelf*-gnu)
14850      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14851	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14852	wlarc=
14853      else
14854	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14855	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14856      fi
14857      ;;
14858
14859    solaris*)
14860      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14861	ld_shlibs_F77=no
14862	cat <<EOF 1>&2
14863
14864*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14865*** create shared libraries on Solaris systems.  Therefore, libtool
14866*** is disabling shared libraries support.  We urge you to upgrade GNU
14867*** binutils to release 2.9.1 or newer.  Another option is to modify
14868*** your PATH or compiler configuration so that the native linker is
14869*** used, and then restart.
14870
14871EOF
14872      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14873	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14874	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14875      else
14876	ld_shlibs_F77=no
14877      fi
14878      ;;
14879
14880    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14881      case `$LD -v 2>&1` in
14882        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14883	ld_shlibs_F77=no
14884	cat <<_LT_EOF 1>&2
14885
14886*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14887*** reliably create shared libraries on SCO systems.  Therefore, libtool
14888*** is disabling shared libraries support.  We urge you to upgrade GNU
14889*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14890*** your PATH or compiler configuration so that the native linker is
14891*** used, and then restart.
14892
14893_LT_EOF
14894	;;
14895	*)
14896	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14897	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14898	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14899	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14900	  else
14901	    ld_shlibs_F77=no
14902	  fi
14903	;;
14904      esac
14905      ;;
14906
14907    sunos4*)
14908      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14909      wlarc=
14910      hardcode_direct_F77=yes
14911      hardcode_shlibpath_var_F77=no
14912      ;;
14913
14914    *)
14915      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14916	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14917	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14918      else
14919	ld_shlibs_F77=no
14920      fi
14921      ;;
14922    esac
14923
14924    if test "$ld_shlibs_F77" = no; then
14925      runpath_var=
14926      hardcode_libdir_flag_spec_F77=
14927      export_dynamic_flag_spec_F77=
14928      whole_archive_flag_spec_F77=
14929    fi
14930  else
14931    # PORTME fill in a description of your system's linker (not GNU ld)
14932    case $host_os in
14933    aix3*)
14934      allow_undefined_flag_F77=unsupported
14935      always_export_symbols_F77=yes
14936      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'
14937      # Note: this linker hardcodes the directories in LIBPATH if there
14938      # are no directories specified by -L.
14939      hardcode_minus_L_F77=yes
14940      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14941	# Neither direct hardcoding nor static linking is supported with a
14942	# broken collect2.
14943	hardcode_direct_F77=unsupported
14944      fi
14945      ;;
14946
14947    aix[4-9]*)
14948      if test "$host_cpu" = ia64; then
14949	# On IA64, the linker does run time linking by default, so we don't
14950	# have to do anything special.
14951	aix_use_runtimelinking=no
14952	exp_sym_flag='-Bexport'
14953	no_entry_flag=""
14954      else
14955	# If we're using GNU nm, then we don't want the "-C" option.
14956	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14957	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14958	  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'
14959	else
14960	  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'
14961	fi
14962	aix_use_runtimelinking=no
14963
14964	# Test if we are trying to use run time linking or normal
14965	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14966	# need to do runtime linking.
14967	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14968	  for ld_flag in $LDFLAGS; do
14969  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14970  	    aix_use_runtimelinking=yes
14971  	    break
14972  	  fi
14973	  done
14974	  ;;
14975	esac
14976
14977	exp_sym_flag='-bexport'
14978	no_entry_flag='-bnoentry'
14979      fi
14980
14981      # When large executables or shared objects are built, AIX ld can
14982      # have problems creating the table of contents.  If linking a library
14983      # or program results in "error TOC overflow" add -mminimal-toc to
14984      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14985      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14986
14987      archive_cmds_F77=''
14988      hardcode_direct_F77=yes
14989      hardcode_libdir_separator_F77=':'
14990      link_all_deplibs_F77=yes
14991
14992      if test "$GCC" = yes; then
14993	case $host_os in aix4.[012]|aix4.[012].*)
14994	# We only want to do this on AIX 4.2 and lower, the check
14995	# below for broken collect2 doesn't work under 4.3+
14996	  collect2name=`${CC} -print-prog-name=collect2`
14997	  if test -f "$collect2name" && \
14998  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14999	  then
15000  	  # We have reworked collect2
15001  	  :
15002	  else
15003  	  # We have old collect2
15004  	  hardcode_direct_F77=unsupported
15005  	  # It fails to find uninstalled libraries when the uninstalled
15006  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15007  	  # to unsupported forces relinking
15008  	  hardcode_minus_L_F77=yes
15009  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15010  	  hardcode_libdir_separator_F77=
15011	  fi
15012	  ;;
15013	esac
15014	shared_flag='-shared'
15015	if test "$aix_use_runtimelinking" = yes; then
15016	  shared_flag="$shared_flag "'${wl}-G'
15017	fi
15018      else
15019	# not using gcc
15020	if test "$host_cpu" = ia64; then
15021  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15022  	# chokes on -Wl,-G. The following line is correct:
15023	  shared_flag='-G'
15024	else
15025	  if test "$aix_use_runtimelinking" = yes; then
15026	    shared_flag='${wl}-G'
15027	  else
15028	    shared_flag='${wl}-bM:SRE'
15029	  fi
15030	fi
15031      fi
15032
15033      # It seems that -bexpall does not export symbols beginning with
15034      # underscore (_), so it is better to generate a list of symbols to export.
15035      always_export_symbols_F77=yes
15036      if test "$aix_use_runtimelinking" = yes; then
15037	# Warning - without using the other runtime loading flags (-brtl),
15038	# -berok will link without error, but may produce a broken library.
15039	allow_undefined_flag_F77='-berok'
15040       # Determine the default libpath from the value encoded in an empty executable.
15041       cat >conftest.$ac_ext <<_ACEOF
15042      program main
15043
15044      end
15045_ACEOF
15046rm -f conftest.$ac_objext conftest$ac_exeext
15047if { (ac_try="$ac_link"
15048case "(($ac_try" in
15049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050  *) ac_try_echo=$ac_try;;
15051esac
15052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053  (eval "$ac_link") 2>conftest.er1
15054  ac_status=$?
15055  grep -v '^ *+' conftest.er1 >conftest.err
15056  rm -f conftest.er1
15057  cat conftest.err >&5
15058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059  (exit $ac_status); } && {
15060	 test -z "$ac_f77_werror_flag" ||
15061	 test ! -s conftest.err
15062       } && test -s conftest$ac_exeext &&
15063       $as_test_x conftest$ac_exeext; then
15064
15065lt_aix_libpath_sed='
15066    /Import File Strings/,/^$/ {
15067	/^0/ {
15068	    s/^0  *\(.*\)$/\1/
15069	    p
15070	}
15071    }'
15072aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15073# Check for a 64-bit object if we didn't find anything.
15074if test -z "$aix_libpath"; then
15075  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15076fi
15077else
15078  echo "$as_me: failed program was:" >&5
15079sed 's/^/| /' conftest.$ac_ext >&5
15080
15081
15082fi
15083
15084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15085      conftest$ac_exeext conftest.$ac_ext
15086if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15087
15088       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15089	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"
15090       else
15091	if test "$host_cpu" = ia64; then
15092	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15093	  allow_undefined_flag_F77="-z nodefs"
15094	  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"
15095	else
15096	 # Determine the default libpath from the value encoded in an empty executable.
15097	 cat >conftest.$ac_ext <<_ACEOF
15098      program main
15099
15100      end
15101_ACEOF
15102rm -f conftest.$ac_objext conftest$ac_exeext
15103if { (ac_try="$ac_link"
15104case "(($ac_try" in
15105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15106  *) ac_try_echo=$ac_try;;
15107esac
15108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15109  (eval "$ac_link") 2>conftest.er1
15110  ac_status=$?
15111  grep -v '^ *+' conftest.er1 >conftest.err
15112  rm -f conftest.er1
15113  cat conftest.err >&5
15114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115  (exit $ac_status); } && {
15116	 test -z "$ac_f77_werror_flag" ||
15117	 test ! -s conftest.err
15118       } && test -s conftest$ac_exeext &&
15119       $as_test_x conftest$ac_exeext; then
15120
15121lt_aix_libpath_sed='
15122    /Import File Strings/,/^$/ {
15123	/^0/ {
15124	    s/^0  *\(.*\)$/\1/
15125	    p
15126	}
15127    }'
15128aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15129# Check for a 64-bit object if we didn't find anything.
15130if test -z "$aix_libpath"; then
15131  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15132fi
15133else
15134  echo "$as_me: failed program was:" >&5
15135sed 's/^/| /' conftest.$ac_ext >&5
15136
15137
15138fi
15139
15140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15141      conftest$ac_exeext conftest.$ac_ext
15142if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15143
15144	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15145	  # Warning - without using the other run time loading flags,
15146	  # -berok will link without error, but may produce a broken library.
15147	  no_undefined_flag_F77=' ${wl}-bernotok'
15148	  allow_undefined_flag_F77=' ${wl}-berok'
15149	  # Exported symbols can be pulled into shared objects from archives
15150	  whole_archive_flag_spec_F77='$convenience'
15151	  archive_cmds_need_lc_F77=yes
15152	  # This is similar to how AIX traditionally builds its shared libraries.
15153	  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'
15154	fi
15155      fi
15156      ;;
15157
15158    amigaos*)
15159      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)'
15160      hardcode_libdir_flag_spec_F77='-L$libdir'
15161      hardcode_minus_L_F77=yes
15162      # see comment about different semantics on the GNU ld section
15163      ld_shlibs_F77=no
15164      ;;
15165
15166    bsdi[45]*)
15167      export_dynamic_flag_spec_F77=-rdynamic
15168      ;;
15169
15170    cygwin* | mingw* | pw32*)
15171      # When not using gcc, we currently assume that we are using
15172      # Microsoft Visual C++.
15173      # hardcode_libdir_flag_spec is actually meaningless, as there is
15174      # no search path for DLLs.
15175      hardcode_libdir_flag_spec_F77=' '
15176      allow_undefined_flag_F77=unsupported
15177      # Tell ltmain to make .lib files, not .a files.
15178      libext=lib
15179      # Tell ltmain to make .dll files, not .so files.
15180      shrext_cmds=".dll"
15181      # FIXME: Setting linknames here is a bad hack.
15182      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15183      # The linker will automatically build a .lib file if we build a DLL.
15184      old_archive_From_new_cmds_F77='true'
15185      # FIXME: Should let the user specify the lib program.
15186      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15187      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15188      enable_shared_with_static_runtimes_F77=yes
15189      ;;
15190
15191    darwin* | rhapsody*)
15192      case $host_os in
15193        rhapsody* | darwin1.[012])
15194         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15195         ;;
15196       *) # Darwin 1.3 on
15197         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15198           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15199         else
15200           case ${MACOSX_DEPLOYMENT_TARGET} in
15201             10.[012])
15202               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15203               ;;
15204             10.*)
15205               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15206               ;;
15207           esac
15208         fi
15209         ;;
15210      esac
15211      archive_cmds_need_lc_F77=no
15212      hardcode_direct_F77=no
15213      hardcode_automatic_F77=yes
15214      hardcode_shlibpath_var_F77=unsupported
15215      whole_archive_flag_spec_F77=''
15216      link_all_deplibs_F77=yes
15217    if test "$GCC" = yes ; then
15218    	output_verbose_link_cmd='echo'
15219        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}"
15220        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15221        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}"
15222        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}"
15223    else
15224      case $cc_basename in
15225        xlc*)
15226         output_verbose_link_cmd='echo'
15227         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15228         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15229          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15230         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}'
15231          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}'
15232          ;;
15233       *)
15234         ld_shlibs_F77=no
15235          ;;
15236      esac
15237    fi
15238      ;;
15239
15240    dgux*)
15241      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15242      hardcode_libdir_flag_spec_F77='-L$libdir'
15243      hardcode_shlibpath_var_F77=no
15244      ;;
15245
15246    freebsd1*)
15247      ld_shlibs_F77=no
15248      ;;
15249
15250    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15251    # support.  Future versions do this automatically, but an explicit c++rt0.o
15252    # does not break anything, and helps significantly (at the cost of a little
15253    # extra space).
15254    freebsd2.2*)
15255      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15256      hardcode_libdir_flag_spec_F77='-R$libdir'
15257      hardcode_direct_F77=yes
15258      hardcode_shlibpath_var_F77=no
15259      ;;
15260
15261    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15262    freebsd2*)
15263      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15264      hardcode_direct_F77=yes
15265      hardcode_minus_L_F77=yes
15266      hardcode_shlibpath_var_F77=no
15267      ;;
15268
15269    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15270    freebsd* | dragonfly*)
15271      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15272      hardcode_libdir_flag_spec_F77='-R$libdir'
15273      hardcode_direct_F77=yes
15274      hardcode_shlibpath_var_F77=no
15275      ;;
15276
15277    hpux9*)
15278      if test "$GCC" = yes; then
15279	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'
15280      else
15281	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'
15282      fi
15283      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15284      hardcode_libdir_separator_F77=:
15285      hardcode_direct_F77=yes
15286
15287      # hardcode_minus_L: Not really in the search PATH,
15288      # but as the default location of the library.
15289      hardcode_minus_L_F77=yes
15290      export_dynamic_flag_spec_F77='${wl}-E'
15291      ;;
15292
15293    hpux10*)
15294      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15295	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15296      else
15297	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15298      fi
15299      if test "$with_gnu_ld" = no; then
15300	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15301	hardcode_libdir_separator_F77=:
15302
15303	hardcode_direct_F77=yes
15304	export_dynamic_flag_spec_F77='${wl}-E'
15305
15306	# hardcode_minus_L: Not really in the search PATH,
15307	# but as the default location of the library.
15308	hardcode_minus_L_F77=yes
15309      fi
15310      ;;
15311
15312    hpux11*)
15313      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15314	case $host_cpu in
15315	hppa*64*)
15316	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15317	  ;;
15318	ia64*)
15319	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15320	  ;;
15321	*)
15322	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15323	  ;;
15324	esac
15325      else
15326	case $host_cpu in
15327	hppa*64*)
15328	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15329	  ;;
15330	ia64*)
15331	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15332	  ;;
15333	*)
15334	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15335	  ;;
15336	esac
15337      fi
15338      if test "$with_gnu_ld" = no; then
15339	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15340	hardcode_libdir_separator_F77=:
15341
15342	case $host_cpu in
15343	hppa*64*|ia64*)
15344	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15345	  hardcode_direct_F77=no
15346	  hardcode_shlibpath_var_F77=no
15347	  ;;
15348	*)
15349	  hardcode_direct_F77=yes
15350	  export_dynamic_flag_spec_F77='${wl}-E'
15351
15352	  # hardcode_minus_L: Not really in the search PATH,
15353	  # but as the default location of the library.
15354	  hardcode_minus_L_F77=yes
15355	  ;;
15356	esac
15357      fi
15358      ;;
15359
15360    irix5* | irix6* | nonstopux*)
15361      if test "$GCC" = yes; then
15362	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'
15363      else
15364	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'
15365	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15366      fi
15367      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15368      hardcode_libdir_separator_F77=:
15369      link_all_deplibs_F77=yes
15370      ;;
15371
15372    netbsd* | netbsdelf*-gnu)
15373      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15374	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15375      else
15376	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15377      fi
15378      hardcode_libdir_flag_spec_F77='-R$libdir'
15379      hardcode_direct_F77=yes
15380      hardcode_shlibpath_var_F77=no
15381      ;;
15382
15383    newsos6)
15384      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15385      hardcode_direct_F77=yes
15386      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15387      hardcode_libdir_separator_F77=:
15388      hardcode_shlibpath_var_F77=no
15389      ;;
15390
15391    openbsd*)
15392      if test -f /usr/libexec/ld.so; then
15393	hardcode_direct_F77=yes
15394	hardcode_shlibpath_var_F77=no
15395	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15396	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15397	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15398	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15399	  export_dynamic_flag_spec_F77='${wl}-E'
15400	else
15401	  case $host_os in
15402	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15403	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15404	     hardcode_libdir_flag_spec_F77='-R$libdir'
15405	     ;;
15406	   *)
15407	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15408	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15409	     ;;
15410	  esac
15411        fi
15412      else
15413	ld_shlibs_F77=no
15414      fi
15415      ;;
15416
15417    os2*)
15418      hardcode_libdir_flag_spec_F77='-L$libdir'
15419      hardcode_minus_L_F77=yes
15420      allow_undefined_flag_F77=unsupported
15421      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'
15422      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15423      ;;
15424
15425    osf3*)
15426      if test "$GCC" = yes; then
15427	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15428	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'
15429      else
15430	allow_undefined_flag_F77=' -expect_unresolved \*'
15431	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'
15432      fi
15433      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15434      hardcode_libdir_separator_F77=:
15435      ;;
15436
15437    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15438      if test "$GCC" = yes; then
15439	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15440	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'
15441	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15442      else
15443	allow_undefined_flag_F77=' -expect_unresolved \*'
15444	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'
15445	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~
15446	$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'
15447
15448	# Both c and cxx compiler support -rpath directly
15449	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15450      fi
15451      hardcode_libdir_separator_F77=:
15452      ;;
15453
15454    solaris*)
15455      no_undefined_flag_F77=' -z text'
15456      if test "$GCC" = yes; then
15457	wlarc='${wl}'
15458	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15459	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15460	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15461      else
15462	wlarc=''
15463	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15464	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15465  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15466      fi
15467      hardcode_libdir_flag_spec_F77='-R$libdir'
15468      hardcode_shlibpath_var_F77=no
15469      case $host_os in
15470      solaris2.[0-5] | solaris2.[0-5].*) ;;
15471      *)
15472	# The compiler driver will combine and reorder linker options,
15473	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15474	# but is careful enough not to reorder.
15475 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15476	if test "$GCC" = yes; then
15477	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15478	else
15479	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15480	fi
15481	;;
15482      esac
15483      link_all_deplibs_F77=yes
15484      ;;
15485
15486    sunos4*)
15487      if test "x$host_vendor" = xsequent; then
15488	# Use $CC to link under sequent, because it throws in some extra .o
15489	# files that make .init and .fini sections work.
15490	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15491      else
15492	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15493      fi
15494      hardcode_libdir_flag_spec_F77='-L$libdir'
15495      hardcode_direct_F77=yes
15496      hardcode_minus_L_F77=yes
15497      hardcode_shlibpath_var_F77=no
15498      ;;
15499
15500    sysv4)
15501      case $host_vendor in
15502	sni)
15503	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15504	  hardcode_direct_F77=yes # is this really true???
15505	;;
15506	siemens)
15507	  ## LD is ld it makes a PLAMLIB
15508	  ## CC just makes a GrossModule.
15509	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15510	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15511	  hardcode_direct_F77=no
15512        ;;
15513	motorola)
15514	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15515	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15516	;;
15517      esac
15518      runpath_var='LD_RUN_PATH'
15519      hardcode_shlibpath_var_F77=no
15520      ;;
15521
15522    sysv4.3*)
15523      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15524      hardcode_shlibpath_var_F77=no
15525      export_dynamic_flag_spec_F77='-Bexport'
15526      ;;
15527
15528    sysv4*MP*)
15529      if test -d /usr/nec; then
15530	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15531	hardcode_shlibpath_var_F77=no
15532	runpath_var=LD_RUN_PATH
15533	hardcode_runpath_var=yes
15534	ld_shlibs_F77=yes
15535      fi
15536      ;;
15537
15538    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15539      no_undefined_flag_F77='${wl}-z,text'
15540      archive_cmds_need_lc_F77=no
15541      hardcode_shlibpath_var_F77=no
15542      runpath_var='LD_RUN_PATH'
15543
15544      if test "$GCC" = yes; then
15545	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15546	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15547      else
15548	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15549	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15550      fi
15551      ;;
15552
15553    sysv5* | sco3.2v5* | sco5v6*)
15554      # Note: We can NOT use -z defs as we might desire, because we do not
15555      # link with -lc, and that would cause any symbols used from libc to
15556      # always be unresolved, which means just about no library would
15557      # ever link correctly.  If we're not using GNU ld we use -z text
15558      # though, which does catch some bad symbols but isn't as heavy-handed
15559      # as -z defs.
15560      no_undefined_flag_F77='${wl}-z,text'
15561      allow_undefined_flag_F77='${wl}-z,nodefs'
15562      archive_cmds_need_lc_F77=no
15563      hardcode_shlibpath_var_F77=no
15564      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15565      hardcode_libdir_separator_F77=':'
15566      link_all_deplibs_F77=yes
15567      export_dynamic_flag_spec_F77='${wl}-Bexport'
15568      runpath_var='LD_RUN_PATH'
15569
15570      if test "$GCC" = yes; then
15571	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15572	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15573      else
15574	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15575	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15576      fi
15577      ;;
15578
15579    uts4*)
15580      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15581      hardcode_libdir_flag_spec_F77='-L$libdir'
15582      hardcode_shlibpath_var_F77=no
15583      ;;
15584
15585    *)
15586      ld_shlibs_F77=no
15587      ;;
15588    esac
15589  fi
15590
15591{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15592echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15593test "$ld_shlibs_F77" = no && can_build_shared=no
15594
15595#
15596# Do we need to explicitly link libc?
15597#
15598case "x$archive_cmds_need_lc_F77" in
15599x|xyes)
15600  # Assume -lc should be added
15601  archive_cmds_need_lc_F77=yes
15602
15603  if test "$enable_shared" = yes && test "$GCC" = yes; then
15604    case $archive_cmds_F77 in
15605    *'~'*)
15606      # FIXME: we may have to deal with multi-command sequences.
15607      ;;
15608    '$CC '*)
15609      # Test whether the compiler implicitly links with -lc since on some
15610      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15611      # to ld, don't add -lc before -lgcc.
15612      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15613echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15614      $rm conftest*
15615      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15616
15617      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15618  (eval $ac_compile) 2>&5
15619  ac_status=$?
15620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621  (exit $ac_status); } 2>conftest.err; then
15622        soname=conftest
15623        lib=conftest
15624        libobjs=conftest.$ac_objext
15625        deplibs=
15626        wl=$lt_prog_compiler_wl_F77
15627	pic_flag=$lt_prog_compiler_pic_F77
15628        compiler_flags=-v
15629        linker_flags=-v
15630        verstring=
15631        output_objdir=.
15632        libname=conftest
15633        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15634        allow_undefined_flag_F77=
15635        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15636  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15637  ac_status=$?
15638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639  (exit $ac_status); }
15640        then
15641	  archive_cmds_need_lc_F77=no
15642        else
15643	  archive_cmds_need_lc_F77=yes
15644        fi
15645        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15646      else
15647        cat conftest.err 1>&5
15648      fi
15649      $rm conftest*
15650      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15651echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15652      ;;
15653    esac
15654  fi
15655  ;;
15656esac
15657
15658{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15659echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15660library_names_spec=
15661libname_spec='lib$name'
15662soname_spec=
15663shrext_cmds=".so"
15664postinstall_cmds=
15665postuninstall_cmds=
15666finish_cmds=
15667finish_eval=
15668shlibpath_var=
15669shlibpath_overrides_runpath=unknown
15670version_type=none
15671dynamic_linker="$host_os ld.so"
15672sys_lib_dlsearch_path_spec="/lib /usr/lib"
15673
15674need_lib_prefix=unknown
15675hardcode_into_libs=no
15676
15677# when you set need_version to no, make sure it does not cause -set_version
15678# flags to be left without arguments
15679need_version=unknown
15680
15681case $host_os in
15682aix3*)
15683  version_type=linux
15684  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15685  shlibpath_var=LIBPATH
15686
15687  # AIX 3 has no versioning support, so we append a major version to the name.
15688  soname_spec='${libname}${release}${shared_ext}$major'
15689  ;;
15690
15691aix[4-9]*)
15692  version_type=linux
15693  need_lib_prefix=no
15694  need_version=no
15695  hardcode_into_libs=yes
15696  if test "$host_cpu" = ia64; then
15697    # AIX 5 supports IA64
15698    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15699    shlibpath_var=LD_LIBRARY_PATH
15700  else
15701    # With GCC up to 2.95.x, collect2 would create an import file
15702    # for dependence libraries.  The import file would start with
15703    # the line `#! .'.  This would cause the generated library to
15704    # depend on `.', always an invalid library.  This was fixed in
15705    # development snapshots of GCC prior to 3.0.
15706    case $host_os in
15707      aix4 | aix4.[01] | aix4.[01].*)
15708      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15709	   echo ' yes '
15710	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15711	:
15712      else
15713	can_build_shared=no
15714      fi
15715      ;;
15716    esac
15717    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15718    # soname into executable. Probably we can add versioning support to
15719    # collect2, so additional links can be useful in future.
15720    if test "$aix_use_runtimelinking" = yes; then
15721      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15722      # instead of lib<name>.a to let people know that these are not
15723      # typical AIX shared libraries.
15724      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15725    else
15726      # We preserve .a as extension for shared libraries through AIX4.2
15727      # and later when we are not doing run time linking.
15728      library_names_spec='${libname}${release}.a $libname.a'
15729      soname_spec='${libname}${release}${shared_ext}$major'
15730    fi
15731    shlibpath_var=LIBPATH
15732  fi
15733  ;;
15734
15735amigaos*)
15736  library_names_spec='$libname.ixlibrary $libname.a'
15737  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15738  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'
15739  ;;
15740
15741beos*)
15742  library_names_spec='${libname}${shared_ext}'
15743  dynamic_linker="$host_os ld.so"
15744  shlibpath_var=LIBRARY_PATH
15745  ;;
15746
15747bsdi[45]*)
15748  version_type=linux
15749  need_version=no
15750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15751  soname_spec='${libname}${release}${shared_ext}$major'
15752  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15753  shlibpath_var=LD_LIBRARY_PATH
15754  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15755  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15756  # the default ld.so.conf also contains /usr/contrib/lib and
15757  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15758  # libtool to hard-code these into programs
15759  ;;
15760
15761cygwin* | mingw* | pw32*)
15762  version_type=windows
15763  shrext_cmds=".dll"
15764  need_version=no
15765  need_lib_prefix=no
15766
15767  case $GCC,$host_os in
15768  yes,cygwin* | yes,mingw* | yes,pw32*)
15769    library_names_spec='$libname.dll.a'
15770    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15771    postinstall_cmds='base_file=`basename \${file}`~
15772      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15773      dldir=$destdir/`dirname \$dlpath`~
15774      test -d \$dldir || mkdir -p \$dldir~
15775      $install_prog $dir/$dlname \$dldir/$dlname~
15776      chmod a+x \$dldir/$dlname'
15777    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15778      dlpath=$dir/\$dldll~
15779       $rm \$dlpath'
15780    shlibpath_overrides_runpath=yes
15781
15782    case $host_os in
15783    cygwin*)
15784      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15785      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15786      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15787      ;;
15788    mingw*)
15789      # MinGW DLLs use traditional 'lib' prefix
15790      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15791      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15792      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15793        # It is most probably a Windows format PATH printed by
15794        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15795        # path with ; separators, and with drive letters. We can handle the
15796        # drive letters (cygwin fileutils understands them), so leave them,
15797        # especially as we might pass files found there to a mingw objdump,
15798        # which wouldn't understand a cygwinified path. Ahh.
15799        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15800      else
15801        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15802      fi
15803      ;;
15804    pw32*)
15805      # pw32 DLLs use 'pw' prefix rather than 'lib'
15806      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15807      ;;
15808    esac
15809    ;;
15810
15811  *)
15812    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15813    ;;
15814  esac
15815  dynamic_linker='Win32 ld.exe'
15816  # FIXME: first we should search . and the directory the executable is in
15817  shlibpath_var=PATH
15818  ;;
15819
15820darwin* | rhapsody*)
15821  dynamic_linker="$host_os dyld"
15822  version_type=darwin
15823  need_lib_prefix=no
15824  need_version=no
15825  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15826  soname_spec='${libname}${release}${major}$shared_ext'
15827  shlibpath_overrides_runpath=yes
15828  shlibpath_var=DYLD_LIBRARY_PATH
15829  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15830
15831  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15832  ;;
15833
15834dgux*)
15835  version_type=linux
15836  need_lib_prefix=no
15837  need_version=no
15838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15839  soname_spec='${libname}${release}${shared_ext}$major'
15840  shlibpath_var=LD_LIBRARY_PATH
15841  ;;
15842
15843freebsd1*)
15844  dynamic_linker=no
15845  ;;
15846
15847freebsd* | dragonfly*)
15848  # DragonFly does not have aout.  When/if they implement a new
15849  # versioning mechanism, adjust this.
15850  if test -x /usr/bin/objformat; then
15851    objformat=`/usr/bin/objformat`
15852  else
15853    case $host_os in
15854    freebsd[123]*) objformat=aout ;;
15855    *) objformat=elf ;;
15856    esac
15857  fi
15858  version_type=freebsd-$objformat
15859  case $version_type in
15860    freebsd-elf*)
15861      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15862      need_version=no
15863      need_lib_prefix=no
15864      ;;
15865    freebsd-*)
15866      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15867      need_version=yes
15868      ;;
15869  esac
15870  shlibpath_var=LD_LIBRARY_PATH
15871  case $host_os in
15872  freebsd2*)
15873    shlibpath_overrides_runpath=yes
15874    ;;
15875  freebsd3.[01]* | freebsdelf3.[01]*)
15876    shlibpath_overrides_runpath=yes
15877    hardcode_into_libs=yes
15878    ;;
15879  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15880  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15881    shlibpath_overrides_runpath=no
15882    hardcode_into_libs=yes
15883    ;;
15884  *) # from 4.6 on, and DragonFly
15885    shlibpath_overrides_runpath=yes
15886    hardcode_into_libs=yes
15887    ;;
15888  esac
15889  ;;
15890
15891gnu*)
15892  version_type=linux
15893  need_lib_prefix=no
15894  need_version=no
15895  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15896  soname_spec='${libname}${release}${shared_ext}$major'
15897  shlibpath_var=LD_LIBRARY_PATH
15898  hardcode_into_libs=yes
15899  ;;
15900
15901hpux9* | hpux10* | hpux11*)
15902  # Give a soname corresponding to the major version so that dld.sl refuses to
15903  # link against other versions.
15904  version_type=sunos
15905  need_lib_prefix=no
15906  need_version=no
15907  case $host_cpu in
15908  ia64*)
15909    shrext_cmds='.so'
15910    hardcode_into_libs=yes
15911    dynamic_linker="$host_os dld.so"
15912    shlibpath_var=LD_LIBRARY_PATH
15913    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15914    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15915    soname_spec='${libname}${release}${shared_ext}$major'
15916    if test "X$HPUX_IA64_MODE" = X32; then
15917      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15918    else
15919      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15920    fi
15921    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15922    ;;
15923   hppa*64*)
15924     shrext_cmds='.sl'
15925     hardcode_into_libs=yes
15926     dynamic_linker="$host_os dld.sl"
15927     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15928     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15930     soname_spec='${libname}${release}${shared_ext}$major'
15931     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15932     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15933     ;;
15934   *)
15935    shrext_cmds='.sl'
15936    dynamic_linker="$host_os dld.sl"
15937    shlibpath_var=SHLIB_PATH
15938    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15939    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15940    soname_spec='${libname}${release}${shared_ext}$major'
15941    ;;
15942  esac
15943  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15944  postinstall_cmds='chmod 555 $lib'
15945  ;;
15946
15947interix[3-9]*)
15948  version_type=linux
15949  need_lib_prefix=no
15950  need_version=no
15951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15952  soname_spec='${libname}${release}${shared_ext}$major'
15953  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15954  shlibpath_var=LD_LIBRARY_PATH
15955  shlibpath_overrides_runpath=no
15956  hardcode_into_libs=yes
15957  ;;
15958
15959irix5* | irix6* | nonstopux*)
15960  case $host_os in
15961    nonstopux*) version_type=nonstopux ;;
15962    *)
15963	if test "$lt_cv_prog_gnu_ld" = yes; then
15964		version_type=linux
15965	else
15966		version_type=irix
15967	fi ;;
15968  esac
15969  need_lib_prefix=no
15970  need_version=no
15971  soname_spec='${libname}${release}${shared_ext}$major'
15972  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15973  case $host_os in
15974  irix5* | nonstopux*)
15975    libsuff= shlibsuff=
15976    ;;
15977  *)
15978    case $LD in # libtool.m4 will add one of these switches to LD
15979    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15980      libsuff= shlibsuff= libmagic=32-bit;;
15981    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15982      libsuff=32 shlibsuff=N32 libmagic=N32;;
15983    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15984      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15985    *) libsuff= shlibsuff= libmagic=never-match;;
15986    esac
15987    ;;
15988  esac
15989  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15990  shlibpath_overrides_runpath=no
15991  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15992  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15993  hardcode_into_libs=yes
15994  ;;
15995
15996# No shared lib support for Linux oldld, aout, or coff.
15997linux*oldld* | linux*aout* | linux*coff*)
15998  dynamic_linker=no
15999  ;;
16000
16001# This must be Linux ELF.
16002linux* | k*bsd*-gnu)
16003  version_type=linux
16004  need_lib_prefix=no
16005  need_version=no
16006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16007  soname_spec='${libname}${release}${shared_ext}$major'
16008  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16009  shlibpath_var=LD_LIBRARY_PATH
16010  shlibpath_overrides_runpath=no
16011  # This implies no fast_install, which is unacceptable.
16012  # Some rework will be needed to allow for fast_install
16013  # before this can be enabled.
16014  hardcode_into_libs=yes
16015
16016  # Append ld.so.conf contents to the search path
16017  if test -f /etc/ld.so.conf; then
16018    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' ' '`
16019    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16020  fi
16021
16022  # We used to test for /lib/ld.so.1 and disable shared libraries on
16023  # powerpc, because MkLinux only supported shared libraries with the
16024  # GNU dynamic linker.  Since this was broken with cross compilers,
16025  # most powerpc-linux boxes support dynamic linking these days and
16026  # people can always --disable-shared, the test was removed, and we
16027  # assume the GNU/Linux dynamic linker is in use.
16028  dynamic_linker='GNU/Linux ld.so'
16029  ;;
16030
16031netbsdelf*-gnu)
16032  version_type=linux
16033  need_lib_prefix=no
16034  need_version=no
16035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16036  soname_spec='${libname}${release}${shared_ext}$major'
16037  shlibpath_var=LD_LIBRARY_PATH
16038  shlibpath_overrides_runpath=no
16039  hardcode_into_libs=yes
16040  dynamic_linker='NetBSD ld.elf_so'
16041  ;;
16042
16043netbsd*)
16044  version_type=sunos
16045  need_lib_prefix=no
16046  need_version=no
16047  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16048    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16049    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16050    dynamic_linker='NetBSD (a.out) ld.so'
16051  else
16052    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16053    soname_spec='${libname}${release}${shared_ext}$major'
16054    dynamic_linker='NetBSD ld.elf_so'
16055  fi
16056  shlibpath_var=LD_LIBRARY_PATH
16057  shlibpath_overrides_runpath=yes
16058  hardcode_into_libs=yes
16059  ;;
16060
16061newsos6)
16062  version_type=linux
16063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064  shlibpath_var=LD_LIBRARY_PATH
16065  shlibpath_overrides_runpath=yes
16066  ;;
16067
16068nto-qnx*)
16069  version_type=linux
16070  need_lib_prefix=no
16071  need_version=no
16072  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16073  soname_spec='${libname}${release}${shared_ext}$major'
16074  shlibpath_var=LD_LIBRARY_PATH
16075  shlibpath_overrides_runpath=yes
16076  ;;
16077
16078openbsd*)
16079  version_type=sunos
16080  sys_lib_dlsearch_path_spec="/usr/lib"
16081  need_lib_prefix=no
16082  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16083  case $host_os in
16084    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16085    *)                         need_version=no  ;;
16086  esac
16087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16088  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16089  shlibpath_var=LD_LIBRARY_PATH
16090  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16091    case $host_os in
16092      openbsd2.[89] | openbsd2.[89].*)
16093	shlibpath_overrides_runpath=no
16094	;;
16095      *)
16096	shlibpath_overrides_runpath=yes
16097	;;
16098      esac
16099  else
16100    shlibpath_overrides_runpath=yes
16101  fi
16102  ;;
16103
16104os2*)
16105  libname_spec='$name'
16106  shrext_cmds=".dll"
16107  need_lib_prefix=no
16108  library_names_spec='$libname${shared_ext} $libname.a'
16109  dynamic_linker='OS/2 ld.exe'
16110  shlibpath_var=LIBPATH
16111  ;;
16112
16113osf3* | osf4* | osf5*)
16114  version_type=osf
16115  need_lib_prefix=no
16116  need_version=no
16117  soname_spec='${libname}${release}${shared_ext}$major'
16118  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16119  shlibpath_var=LD_LIBRARY_PATH
16120  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16121  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16122  ;;
16123
16124rdos*)
16125  dynamic_linker=no
16126  ;;
16127
16128solaris*)
16129  version_type=linux
16130  need_lib_prefix=no
16131  need_version=no
16132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16133  soname_spec='${libname}${release}${shared_ext}$major'
16134  shlibpath_var=LD_LIBRARY_PATH
16135  shlibpath_overrides_runpath=yes
16136  hardcode_into_libs=yes
16137  # ldd complains unless libraries are executable
16138  postinstall_cmds='chmod +x $lib'
16139  ;;
16140
16141sunos4*)
16142  version_type=sunos
16143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16144  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16145  shlibpath_var=LD_LIBRARY_PATH
16146  shlibpath_overrides_runpath=yes
16147  if test "$with_gnu_ld" = yes; then
16148    need_lib_prefix=no
16149  fi
16150  need_version=yes
16151  ;;
16152
16153sysv4 | sysv4.3*)
16154  version_type=linux
16155  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16156  soname_spec='${libname}${release}${shared_ext}$major'
16157  shlibpath_var=LD_LIBRARY_PATH
16158  case $host_vendor in
16159    sni)
16160      shlibpath_overrides_runpath=no
16161      need_lib_prefix=no
16162      export_dynamic_flag_spec='${wl}-Blargedynsym'
16163      runpath_var=LD_RUN_PATH
16164      ;;
16165    siemens)
16166      need_lib_prefix=no
16167      ;;
16168    motorola)
16169      need_lib_prefix=no
16170      need_version=no
16171      shlibpath_overrides_runpath=no
16172      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16173      ;;
16174  esac
16175  ;;
16176
16177sysv4*MP*)
16178  if test -d /usr/nec ;then
16179    version_type=linux
16180    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16181    soname_spec='$libname${shared_ext}.$major'
16182    shlibpath_var=LD_LIBRARY_PATH
16183  fi
16184  ;;
16185
16186sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16187  version_type=freebsd-elf
16188  need_lib_prefix=no
16189  need_version=no
16190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16191  soname_spec='${libname}${release}${shared_ext}$major'
16192  shlibpath_var=LD_LIBRARY_PATH
16193  hardcode_into_libs=yes
16194  if test "$with_gnu_ld" = yes; then
16195    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16196    shlibpath_overrides_runpath=no
16197  else
16198    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16199    shlibpath_overrides_runpath=yes
16200    case $host_os in
16201      sco3.2v5*)
16202        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16203	;;
16204    esac
16205  fi
16206  sys_lib_dlsearch_path_spec='/usr/lib'
16207  ;;
16208
16209uts4*)
16210  version_type=linux
16211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16212  soname_spec='${libname}${release}${shared_ext}$major'
16213  shlibpath_var=LD_LIBRARY_PATH
16214  ;;
16215
16216*)
16217  dynamic_linker=no
16218  ;;
16219esac
16220{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16221echo "${ECHO_T}$dynamic_linker" >&6; }
16222test "$dynamic_linker" = no && can_build_shared=no
16223
16224if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16225  echo $ECHO_N "(cached) $ECHO_C" >&6
16226else
16227  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16228fi
16229
16230sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16231if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16232  echo $ECHO_N "(cached) $ECHO_C" >&6
16233else
16234  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16235fi
16236
16237sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16238
16239variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16240if test "$GCC" = yes; then
16241  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16242fi
16243
16244{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16245echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16246hardcode_action_F77=
16247if test -n "$hardcode_libdir_flag_spec_F77" || \
16248   test -n "$runpath_var_F77" || \
16249   test "X$hardcode_automatic_F77" = "Xyes" ; then
16250
16251  # We can hardcode non-existant directories.
16252  if test "$hardcode_direct_F77" != no &&
16253     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16254     # have to relink, otherwise we might link with an installed library
16255     # when we should be linking with a yet-to-be-installed one
16256     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16257     test "$hardcode_minus_L_F77" != no; then
16258    # Linking always hardcodes the temporary library directory.
16259    hardcode_action_F77=relink
16260  else
16261    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16262    hardcode_action_F77=immediate
16263  fi
16264else
16265  # We cannot hardcode anything, or else we can only hardcode existing
16266  # directories.
16267  hardcode_action_F77=unsupported
16268fi
16269{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16270echo "${ECHO_T}$hardcode_action_F77" >&6; }
16271
16272if test "$hardcode_action_F77" = relink; then
16273  # Fast installation is not supported
16274  enable_fast_install=no
16275elif test "$shlibpath_overrides_runpath" = yes ||
16276     test "$enable_shared" = no; then
16277  # Fast installation is not necessary
16278  enable_fast_install=needless
16279fi
16280
16281
16282# The else clause should only fire when bootstrapping the
16283# libtool distribution, otherwise you forgot to ship ltmain.sh
16284# with your package, and you will get complaints that there are
16285# no rules to generate ltmain.sh.
16286if test -f "$ltmain"; then
16287  # See if we are running on zsh, and set the options which allow our commands through
16288  # without removal of \ escapes.
16289  if test -n "${ZSH_VERSION+set}" ; then
16290    setopt NO_GLOB_SUBST
16291  fi
16292  # Now quote all the things that may contain metacharacters while being
16293  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16294  # variables and quote the copies for generation of the libtool script.
16295  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16296    SED SHELL STRIP \
16297    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16298    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16299    deplibs_check_method reload_flag reload_cmds need_locks \
16300    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16301    lt_cv_sys_global_symbol_to_c_name_address \
16302    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16303    old_postinstall_cmds old_postuninstall_cmds \
16304    compiler_F77 \
16305    CC_F77 \
16306    LD_F77 \
16307    lt_prog_compiler_wl_F77 \
16308    lt_prog_compiler_pic_F77 \
16309    lt_prog_compiler_static_F77 \
16310    lt_prog_compiler_no_builtin_flag_F77 \
16311    export_dynamic_flag_spec_F77 \
16312    thread_safe_flag_spec_F77 \
16313    whole_archive_flag_spec_F77 \
16314    enable_shared_with_static_runtimes_F77 \
16315    old_archive_cmds_F77 \
16316    old_archive_from_new_cmds_F77 \
16317    predep_objects_F77 \
16318    postdep_objects_F77 \
16319    predeps_F77 \
16320    postdeps_F77 \
16321    compiler_lib_search_path_F77 \
16322    compiler_lib_search_dirs_F77 \
16323    archive_cmds_F77 \
16324    archive_expsym_cmds_F77 \
16325    postinstall_cmds_F77 \
16326    postuninstall_cmds_F77 \
16327    old_archive_from_expsyms_cmds_F77 \
16328    allow_undefined_flag_F77 \
16329    no_undefined_flag_F77 \
16330    export_symbols_cmds_F77 \
16331    hardcode_libdir_flag_spec_F77 \
16332    hardcode_libdir_flag_spec_ld_F77 \
16333    hardcode_libdir_separator_F77 \
16334    hardcode_automatic_F77 \
16335    module_cmds_F77 \
16336    module_expsym_cmds_F77 \
16337    lt_cv_prog_compiler_c_o_F77 \
16338    fix_srcfile_path_F77 \
16339    exclude_expsyms_F77 \
16340    include_expsyms_F77; do
16341
16342    case $var in
16343    old_archive_cmds_F77 | \
16344    old_archive_from_new_cmds_F77 | \
16345    archive_cmds_F77 | \
16346    archive_expsym_cmds_F77 | \
16347    module_cmds_F77 | \
16348    module_expsym_cmds_F77 | \
16349    old_archive_from_expsyms_cmds_F77 | \
16350    export_symbols_cmds_F77 | \
16351    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16352    postinstall_cmds | postuninstall_cmds | \
16353    old_postinstall_cmds | old_postuninstall_cmds | \
16354    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16355      # Double-quote double-evaled strings.
16356      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16357      ;;
16358    *)
16359      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16360      ;;
16361    esac
16362  done
16363
16364  case $lt_echo in
16365  *'\$0 --fallback-echo"')
16366    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16367    ;;
16368  esac
16369
16370cfgfile="$ofile"
16371
16372  cat <<__EOF__ >> "$cfgfile"
16373# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16374
16375# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16376
16377# Shell to use when invoking shell scripts.
16378SHELL=$lt_SHELL
16379
16380# Whether or not to build shared libraries.
16381build_libtool_libs=$enable_shared
16382
16383# Whether or not to build static libraries.
16384build_old_libs=$enable_static
16385
16386# Whether or not to add -lc for building shared libraries.
16387build_libtool_need_lc=$archive_cmds_need_lc_F77
16388
16389# Whether or not to disallow shared libs when runtime libs are static
16390allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16391
16392# Whether or not to optimize for fast installation.
16393fast_install=$enable_fast_install
16394
16395# The host system.
16396host_alias=$host_alias
16397host=$host
16398host_os=$host_os
16399
16400# The build system.
16401build_alias=$build_alias
16402build=$build
16403build_os=$build_os
16404
16405# An echo program that does not interpret backslashes.
16406echo=$lt_echo
16407
16408# The archiver.
16409AR=$lt_AR
16410AR_FLAGS=$lt_AR_FLAGS
16411
16412# A C compiler.
16413LTCC=$lt_LTCC
16414
16415# LTCC compiler flags.
16416LTCFLAGS=$lt_LTCFLAGS
16417
16418# A language-specific compiler.
16419CC=$lt_compiler_F77
16420
16421# Is the compiler the GNU C compiler?
16422with_gcc=$GCC_F77
16423
16424# An ERE matcher.
16425EGREP=$lt_EGREP
16426
16427# The linker used to build libraries.
16428LD=$lt_LD_F77
16429
16430# Whether we need hard or soft links.
16431LN_S=$lt_LN_S
16432
16433# A BSD-compatible nm program.
16434NM=$lt_NM
16435
16436# A symbol stripping program
16437STRIP=$lt_STRIP
16438
16439# Used to examine libraries when file_magic_cmd begins "file"
16440MAGIC_CMD=$MAGIC_CMD
16441
16442# Used on cygwin: DLL creation program.
16443DLLTOOL="$DLLTOOL"
16444
16445# Used on cygwin: object dumper.
16446OBJDUMP="$OBJDUMP"
16447
16448# Used on cygwin: assembler.
16449AS="$AS"
16450
16451# The name of the directory that contains temporary libtool files.
16452objdir=$objdir
16453
16454# How to create reloadable object files.
16455reload_flag=$lt_reload_flag
16456reload_cmds=$lt_reload_cmds
16457
16458# How to pass a linker flag through the compiler.
16459wl=$lt_lt_prog_compiler_wl_F77
16460
16461# Object file suffix (normally "o").
16462objext="$ac_objext"
16463
16464# Old archive suffix (normally "a").
16465libext="$libext"
16466
16467# Shared library suffix (normally ".so").
16468shrext_cmds='$shrext_cmds'
16469
16470# Executable file suffix (normally "").
16471exeext="$exeext"
16472
16473# Additional compiler flags for building library objects.
16474pic_flag=$lt_lt_prog_compiler_pic_F77
16475pic_mode=$pic_mode
16476
16477# What is the maximum length of a command?
16478max_cmd_len=$lt_cv_sys_max_cmd_len
16479
16480# Does compiler simultaneously support -c and -o options?
16481compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16482
16483# Must we lock files when doing compilation?
16484need_locks=$lt_need_locks
16485
16486# Do we need the lib prefix for modules?
16487need_lib_prefix=$need_lib_prefix
16488
16489# Do we need a version for libraries?
16490need_version=$need_version
16491
16492# Whether dlopen is supported.
16493dlopen_support=$enable_dlopen
16494
16495# Whether dlopen of programs is supported.
16496dlopen_self=$enable_dlopen_self
16497
16498# Whether dlopen of statically linked programs is supported.
16499dlopen_self_static=$enable_dlopen_self_static
16500
16501# Compiler flag to prevent dynamic linking.
16502link_static_flag=$lt_lt_prog_compiler_static_F77
16503
16504# Compiler flag to turn off builtin functions.
16505no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16506
16507# Compiler flag to allow reflexive dlopens.
16508export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16509
16510# Compiler flag to generate shared objects directly from archives.
16511whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16512
16513# Compiler flag to generate thread-safe objects.
16514thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16515
16516# Library versioning type.
16517version_type=$version_type
16518
16519# Format of library name prefix.
16520libname_spec=$lt_libname_spec
16521
16522# List of archive names.  First name is the real one, the rest are links.
16523# The last name is the one that the linker finds with -lNAME.
16524library_names_spec=$lt_library_names_spec
16525
16526# The coded name of the library, if different from the real name.
16527soname_spec=$lt_soname_spec
16528
16529# Commands used to build and install an old-style archive.
16530RANLIB=$lt_RANLIB
16531old_archive_cmds=$lt_old_archive_cmds_F77
16532old_postinstall_cmds=$lt_old_postinstall_cmds
16533old_postuninstall_cmds=$lt_old_postuninstall_cmds
16534
16535# Create an old-style archive from a shared archive.
16536old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16537
16538# Create a temporary old-style archive to link instead of a shared archive.
16539old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16540
16541# Commands used to build and install a shared archive.
16542archive_cmds=$lt_archive_cmds_F77
16543archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16544postinstall_cmds=$lt_postinstall_cmds
16545postuninstall_cmds=$lt_postuninstall_cmds
16546
16547# Commands used to build a loadable module (assumed same as above if empty)
16548module_cmds=$lt_module_cmds_F77
16549module_expsym_cmds=$lt_module_expsym_cmds_F77
16550
16551# Commands to strip libraries.
16552old_striplib=$lt_old_striplib
16553striplib=$lt_striplib
16554
16555# Dependencies to place before the objects being linked to create a
16556# shared library.
16557predep_objects=$lt_predep_objects_F77
16558
16559# Dependencies to place after the objects being linked to create a
16560# shared library.
16561postdep_objects=$lt_postdep_objects_F77
16562
16563# Dependencies to place before the objects being linked to create a
16564# shared library.
16565predeps=$lt_predeps_F77
16566
16567# Dependencies to place after the objects being linked to create a
16568# shared library.
16569postdeps=$lt_postdeps_F77
16570
16571# The directories searched by this compiler when creating a shared
16572# library
16573compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16574
16575# The library search path used internally by the compiler when linking
16576# a shared library.
16577compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16578
16579# Method to check whether dependent libraries are shared objects.
16580deplibs_check_method=$lt_deplibs_check_method
16581
16582# Command to use when deplibs_check_method == file_magic.
16583file_magic_cmd=$lt_file_magic_cmd
16584
16585# Flag that allows shared libraries with undefined symbols to be built.
16586allow_undefined_flag=$lt_allow_undefined_flag_F77
16587
16588# Flag that forces no undefined symbols.
16589no_undefined_flag=$lt_no_undefined_flag_F77
16590
16591# Commands used to finish a libtool library installation in a directory.
16592finish_cmds=$lt_finish_cmds
16593
16594# Same as above, but a single script fragment to be evaled but not shown.
16595finish_eval=$lt_finish_eval
16596
16597# Take the output of nm and produce a listing of raw symbols and C names.
16598global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16599
16600# Transform the output of nm in a proper C declaration
16601global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16602
16603# Transform the output of nm in a C name address pair
16604global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16605
16606# This is the shared library runtime path variable.
16607runpath_var=$runpath_var
16608
16609# This is the shared library path variable.
16610shlibpath_var=$shlibpath_var
16611
16612# Is shlibpath searched before the hard-coded library search path?
16613shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16614
16615# How to hardcode a shared library path into an executable.
16616hardcode_action=$hardcode_action_F77
16617
16618# Whether we should hardcode library paths into libraries.
16619hardcode_into_libs=$hardcode_into_libs
16620
16621# Flag to hardcode \$libdir into a binary during linking.
16622# This must work even if \$libdir does not exist.
16623hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16624
16625# If ld is used when linking, flag to hardcode \$libdir into
16626# a binary during linking. This must work even if \$libdir does
16627# not exist.
16628hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16629
16630# Whether we need a single -rpath flag with a separated argument.
16631hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16632
16633# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16634# resulting binary.
16635hardcode_direct=$hardcode_direct_F77
16636
16637# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16638# resulting binary.
16639hardcode_minus_L=$hardcode_minus_L_F77
16640
16641# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16642# the resulting binary.
16643hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16644
16645# Set to yes if building a shared library automatically hardcodes DIR into the library
16646# and all subsequent libraries and executables linked against it.
16647hardcode_automatic=$hardcode_automatic_F77
16648
16649# Variables whose values should be saved in libtool wrapper scripts and
16650# restored at relink time.
16651variables_saved_for_relink="$variables_saved_for_relink"
16652
16653# Whether libtool must link a program against all its dependency libraries.
16654link_all_deplibs=$link_all_deplibs_F77
16655
16656# Compile-time system search path for libraries
16657sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16658
16659# Run-time system search path for libraries
16660sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16661
16662# Fix the shell variable \$srcfile for the compiler.
16663fix_srcfile_path=$lt_fix_srcfile_path
16664
16665# Set to yes if exported symbols are required.
16666always_export_symbols=$always_export_symbols_F77
16667
16668# The commands to list exported symbols.
16669export_symbols_cmds=$lt_export_symbols_cmds_F77
16670
16671# The commands to extract the exported symbol list from a shared archive.
16672extract_expsyms_cmds=$lt_extract_expsyms_cmds
16673
16674# Symbols that should not be listed in the preloaded symbols.
16675exclude_expsyms=$lt_exclude_expsyms_F77
16676
16677# Symbols that must always be exported.
16678include_expsyms=$lt_include_expsyms_F77
16679
16680# ### END LIBTOOL TAG CONFIG: $tagname
16681
16682__EOF__
16683
16684
16685else
16686  # If there is no Makefile yet, we rely on a make rule to execute
16687  # `config.status --recheck' to rerun these tests and create the
16688  # libtool script then.
16689  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16690  if test -f "$ltmain_in"; then
16691    test -f Makefile && make "$ltmain"
16692  fi
16693fi
16694
16695
16696ac_ext=c
16697ac_cpp='$CPP $CPPFLAGS'
16698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16700ac_compiler_gnu=$ac_cv_c_compiler_gnu
16701
16702CC="$lt_save_CC"
16703
16704	else
16705	  tagname=""
16706	fi
16707	;;
16708
16709      GCJ)
16710	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16711
16712
16713# Source file extension for Java test sources.
16714ac_ext=java
16715
16716# Object file extension for compiled Java test sources.
16717objext=o
16718objext_GCJ=$objext
16719
16720# Code to be used in simple compile tests
16721lt_simple_compile_test_code="class foo {}"
16722
16723# Code to be used in simple link tests
16724lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16725
16726# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16727
16728# If no C compiler was specified, use CC.
16729LTCC=${LTCC-"$CC"}
16730
16731# If no C compiler flags were specified, use CFLAGS.
16732LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16733
16734# Allow CC to be a program name with arguments.
16735compiler=$CC
16736
16737
16738# save warnings/boilerplate of simple test code
16739ac_outfile=conftest.$ac_objext
16740echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16741eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16742_lt_compiler_boilerplate=`cat conftest.err`
16743$rm conftest*
16744
16745ac_outfile=conftest.$ac_objext
16746echo "$lt_simple_link_test_code" >conftest.$ac_ext
16747eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16748_lt_linker_boilerplate=`cat conftest.err`
16749$rm -r conftest*
16750
16751
16752# Allow CC to be a program name with arguments.
16753lt_save_CC="$CC"
16754CC=${GCJ-"gcj"}
16755compiler=$CC
16756compiler_GCJ=$CC
16757for cc_temp in $compiler""; do
16758  case $cc_temp in
16759    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16760    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16761    \-*) ;;
16762    *) break;;
16763  esac
16764done
16765cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16766
16767
16768# GCJ did not exist at the time GCC didn't implicitly link libc in.
16769archive_cmds_need_lc_GCJ=no
16770
16771old_archive_cmds_GCJ=$old_archive_cmds
16772
16773
16774lt_prog_compiler_no_builtin_flag_GCJ=
16775
16776if test "$GCC" = yes; then
16777  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16778
16779
16780{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16781echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16782if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16783  echo $ECHO_N "(cached) $ECHO_C" >&6
16784else
16785  lt_cv_prog_compiler_rtti_exceptions=no
16786  ac_outfile=conftest.$ac_objext
16787   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16788   lt_compiler_flag="-fno-rtti -fno-exceptions"
16789   # Insert the option either (1) after the last *FLAGS variable, or
16790   # (2) before a word containing "conftest.", or (3) at the end.
16791   # Note that $ac_compile itself does not contain backslashes and begins
16792   # with a dollar sign (not a hyphen), so the echo should work correctly.
16793   # The option is referenced via a variable to avoid confusing sed.
16794   lt_compile=`echo "$ac_compile" | $SED \
16795   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16796   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16797   -e 's:$: $lt_compiler_flag:'`
16798   (eval echo "\"\$as_me:16798: $lt_compile\"" >&5)
16799   (eval "$lt_compile" 2>conftest.err)
16800   ac_status=$?
16801   cat conftest.err >&5
16802   echo "$as_me:16802: \$? = $ac_status" >&5
16803   if (exit $ac_status) && test -s "$ac_outfile"; then
16804     # The compiler can only warn and ignore the option if not recognized
16805     # So say no if there are warnings other than the usual output.
16806     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16807     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16808     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16809       lt_cv_prog_compiler_rtti_exceptions=yes
16810     fi
16811   fi
16812   $rm conftest*
16813
16814fi
16815{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16816echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16817
16818if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16819    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16820else
16821    :
16822fi
16823
16824fi
16825
16826lt_prog_compiler_wl_GCJ=
16827lt_prog_compiler_pic_GCJ=
16828lt_prog_compiler_static_GCJ=
16829
16830{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16831echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16832
16833  if test "$GCC" = yes; then
16834    lt_prog_compiler_wl_GCJ='-Wl,'
16835    lt_prog_compiler_static_GCJ='-static'
16836
16837    case $host_os in
16838      aix*)
16839      # All AIX code is PIC.
16840      if test "$host_cpu" = ia64; then
16841	# AIX 5 now supports IA64 processor
16842	lt_prog_compiler_static_GCJ='-Bstatic'
16843      fi
16844      ;;
16845
16846    amigaos*)
16847      # FIXME: we need at least 68020 code to build shared libraries, but
16848      # adding the `-m68020' flag to GCC prevents building anything better,
16849      # like `-m68040'.
16850      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16851      ;;
16852
16853    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16854      # PIC is the default for these OSes.
16855      ;;
16856
16857    mingw* | cygwin* | pw32* | os2*)
16858      # This hack is so that the source file can tell whether it is being
16859      # built for inclusion in a dll (and should export symbols for example).
16860      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16861      # (--disable-auto-import) libraries
16862
16863      ;;
16864
16865    darwin* | rhapsody*)
16866      # PIC is the default on this platform
16867      # Common symbols not allowed in MH_DYLIB files
16868      lt_prog_compiler_pic_GCJ='-fno-common'
16869      ;;
16870
16871    interix[3-9]*)
16872      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16873      # Instead, we relocate shared libraries at runtime.
16874      ;;
16875
16876    msdosdjgpp*)
16877      # Just because we use GCC doesn't mean we suddenly get shared libraries
16878      # on systems that don't support them.
16879      lt_prog_compiler_can_build_shared_GCJ=no
16880      enable_shared=no
16881      ;;
16882
16883    sysv4*MP*)
16884      if test -d /usr/nec; then
16885	lt_prog_compiler_pic_GCJ=-Kconform_pic
16886      fi
16887      ;;
16888
16889    hpux*)
16890      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16891      # not for PA HP-UX.
16892      case $host_cpu in
16893      hppa*64*|ia64*)
16894	# +Z the default
16895	;;
16896      *)
16897	lt_prog_compiler_pic_GCJ='-fPIC'
16898	;;
16899      esac
16900      ;;
16901
16902    *)
16903      lt_prog_compiler_pic_GCJ='-fPIC'
16904      ;;
16905    esac
16906  else
16907    # PORTME Check for flag to pass linker flags through the system compiler.
16908    case $host_os in
16909    aix*)
16910      lt_prog_compiler_wl_GCJ='-Wl,'
16911      if test "$host_cpu" = ia64; then
16912	# AIX 5 now supports IA64 processor
16913	lt_prog_compiler_static_GCJ='-Bstatic'
16914      else
16915	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16916      fi
16917      ;;
16918      darwin*)
16919        # PIC is the default on this platform
16920        # Common symbols not allowed in MH_DYLIB files
16921       case $cc_basename in
16922         xlc*)
16923         lt_prog_compiler_pic_GCJ='-qnocommon'
16924         lt_prog_compiler_wl_GCJ='-Wl,'
16925         ;;
16926       esac
16927       ;;
16928
16929    mingw* | cygwin* | pw32* | os2*)
16930      # This hack is so that the source file can tell whether it is being
16931      # built for inclusion in a dll (and should export symbols for example).
16932
16933      ;;
16934
16935    hpux9* | hpux10* | hpux11*)
16936      lt_prog_compiler_wl_GCJ='-Wl,'
16937      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16938      # not for PA HP-UX.
16939      case $host_cpu in
16940      hppa*64*|ia64*)
16941	# +Z the default
16942	;;
16943      *)
16944	lt_prog_compiler_pic_GCJ='+Z'
16945	;;
16946      esac
16947      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16948      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16949      ;;
16950
16951    irix5* | irix6* | nonstopux*)
16952      lt_prog_compiler_wl_GCJ='-Wl,'
16953      # PIC (with -KPIC) is the default.
16954      lt_prog_compiler_static_GCJ='-non_shared'
16955      ;;
16956
16957    newsos6)
16958      lt_prog_compiler_pic_GCJ='-KPIC'
16959      lt_prog_compiler_static_GCJ='-Bstatic'
16960      ;;
16961
16962    linux* | k*bsd*-gnu)
16963      case $cc_basename in
16964      icc* | ecc*)
16965	lt_prog_compiler_wl_GCJ='-Wl,'
16966	lt_prog_compiler_pic_GCJ='-KPIC'
16967	lt_prog_compiler_static_GCJ='-static'
16968        ;;
16969      pgcc* | pgf77* | pgf90* | pgf95*)
16970        # Portland Group compilers (*not* the Pentium gcc compiler,
16971	# which looks to be a dead project)
16972	lt_prog_compiler_wl_GCJ='-Wl,'
16973	lt_prog_compiler_pic_GCJ='-fpic'
16974	lt_prog_compiler_static_GCJ='-Bstatic'
16975        ;;
16976      ccc*)
16977        lt_prog_compiler_wl_GCJ='-Wl,'
16978        # All Alpha code is PIC.
16979        lt_prog_compiler_static_GCJ='-non_shared'
16980        ;;
16981      *)
16982        case `$CC -V 2>&1 | sed 5q` in
16983	*Sun\ C*)
16984	  # Sun C 5.9
16985	  lt_prog_compiler_pic_GCJ='-KPIC'
16986	  lt_prog_compiler_static_GCJ='-Bstatic'
16987	  lt_prog_compiler_wl_GCJ='-Wl,'
16988	  ;;
16989	*Sun\ F*)
16990	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16991	  lt_prog_compiler_pic_GCJ='-KPIC'
16992	  lt_prog_compiler_static_GCJ='-Bstatic'
16993	  lt_prog_compiler_wl_GCJ=''
16994	  ;;
16995	esac
16996	;;
16997      esac
16998      ;;
16999
17000    osf3* | osf4* | osf5*)
17001      lt_prog_compiler_wl_GCJ='-Wl,'
17002      # All OSF/1 code is PIC.
17003      lt_prog_compiler_static_GCJ='-non_shared'
17004      ;;
17005
17006    rdos*)
17007      lt_prog_compiler_static_GCJ='-non_shared'
17008      ;;
17009
17010    solaris*)
17011      lt_prog_compiler_pic_GCJ='-KPIC'
17012      lt_prog_compiler_static_GCJ='-Bstatic'
17013      case $cc_basename in
17014      f77* | f90* | f95*)
17015	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17016      *)
17017	lt_prog_compiler_wl_GCJ='-Wl,';;
17018      esac
17019      ;;
17020
17021    sunos4*)
17022      lt_prog_compiler_wl_GCJ='-Qoption ld '
17023      lt_prog_compiler_pic_GCJ='-PIC'
17024      lt_prog_compiler_static_GCJ='-Bstatic'
17025      ;;
17026
17027    sysv4 | sysv4.2uw2* | sysv4.3*)
17028      lt_prog_compiler_wl_GCJ='-Wl,'
17029      lt_prog_compiler_pic_GCJ='-KPIC'
17030      lt_prog_compiler_static_GCJ='-Bstatic'
17031      ;;
17032
17033    sysv4*MP*)
17034      if test -d /usr/nec ;then
17035	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17036	lt_prog_compiler_static_GCJ='-Bstatic'
17037      fi
17038      ;;
17039
17040    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17041      lt_prog_compiler_wl_GCJ='-Wl,'
17042      lt_prog_compiler_pic_GCJ='-KPIC'
17043      lt_prog_compiler_static_GCJ='-Bstatic'
17044      ;;
17045
17046    unicos*)
17047      lt_prog_compiler_wl_GCJ='-Wl,'
17048      lt_prog_compiler_can_build_shared_GCJ=no
17049      ;;
17050
17051    uts4*)
17052      lt_prog_compiler_pic_GCJ='-pic'
17053      lt_prog_compiler_static_GCJ='-Bstatic'
17054      ;;
17055
17056    *)
17057      lt_prog_compiler_can_build_shared_GCJ=no
17058      ;;
17059    esac
17060  fi
17061
17062{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17063echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17064
17065#
17066# Check to make sure the PIC flag actually works.
17067#
17068if test -n "$lt_prog_compiler_pic_GCJ"; then
17069
17070{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17071echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17072if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17073  echo $ECHO_N "(cached) $ECHO_C" >&6
17074else
17075  lt_cv_prog_compiler_pic_works_GCJ=no
17076  ac_outfile=conftest.$ac_objext
17077   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17078   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17079   # Insert the option either (1) after the last *FLAGS variable, or
17080   # (2) before a word containing "conftest.", or (3) at the end.
17081   # Note that $ac_compile itself does not contain backslashes and begins
17082   # with a dollar sign (not a hyphen), so the echo should work correctly.
17083   # The option is referenced via a variable to avoid confusing sed.
17084   lt_compile=`echo "$ac_compile" | $SED \
17085   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17086   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17087   -e 's:$: $lt_compiler_flag:'`
17088   (eval echo "\"\$as_me:17088: $lt_compile\"" >&5)
17089   (eval "$lt_compile" 2>conftest.err)
17090   ac_status=$?
17091   cat conftest.err >&5
17092   echo "$as_me:17092: \$? = $ac_status" >&5
17093   if (exit $ac_status) && test -s "$ac_outfile"; then
17094     # The compiler can only warn and ignore the option if not recognized
17095     # So say no if there are warnings other than the usual output.
17096     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17097     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17098     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17099       lt_cv_prog_compiler_pic_works_GCJ=yes
17100     fi
17101   fi
17102   $rm conftest*
17103
17104fi
17105{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17106echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17107
17108if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17109    case $lt_prog_compiler_pic_GCJ in
17110     "" | " "*) ;;
17111     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17112     esac
17113else
17114    lt_prog_compiler_pic_GCJ=
17115     lt_prog_compiler_can_build_shared_GCJ=no
17116fi
17117
17118fi
17119case $host_os in
17120  # For platforms which do not support PIC, -DPIC is meaningless:
17121  *djgpp*)
17122    lt_prog_compiler_pic_GCJ=
17123    ;;
17124  *)
17125    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17126    ;;
17127esac
17128
17129#
17130# Check to make sure the static flag actually works.
17131#
17132wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17133{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17134echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17135if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17136  echo $ECHO_N "(cached) $ECHO_C" >&6
17137else
17138  lt_cv_prog_compiler_static_works_GCJ=no
17139   save_LDFLAGS="$LDFLAGS"
17140   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17141   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17142   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17143     # The linker can only warn and ignore the option if not recognized
17144     # So say no if there are warnings
17145     if test -s conftest.err; then
17146       # Append any errors to the config.log.
17147       cat conftest.err 1>&5
17148       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17149       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17150       if diff conftest.exp conftest.er2 >/dev/null; then
17151         lt_cv_prog_compiler_static_works_GCJ=yes
17152       fi
17153     else
17154       lt_cv_prog_compiler_static_works_GCJ=yes
17155     fi
17156   fi
17157   $rm -r conftest*
17158   LDFLAGS="$save_LDFLAGS"
17159
17160fi
17161{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17162echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17163
17164if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17165    :
17166else
17167    lt_prog_compiler_static_GCJ=
17168fi
17169
17170
17171{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17172echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17173if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17174  echo $ECHO_N "(cached) $ECHO_C" >&6
17175else
17176  lt_cv_prog_compiler_c_o_GCJ=no
17177   $rm -r conftest 2>/dev/null
17178   mkdir conftest
17179   cd conftest
17180   mkdir out
17181   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17182
17183   lt_compiler_flag="-o out/conftest2.$ac_objext"
17184   # Insert the option either (1) after the last *FLAGS variable, or
17185   # (2) before a word containing "conftest.", or (3) at the end.
17186   # Note that $ac_compile itself does not contain backslashes and begins
17187   # with a dollar sign (not a hyphen), so the echo should work correctly.
17188   lt_compile=`echo "$ac_compile" | $SED \
17189   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17190   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17191   -e 's:$: $lt_compiler_flag:'`
17192   (eval echo "\"\$as_me:17192: $lt_compile\"" >&5)
17193   (eval "$lt_compile" 2>out/conftest.err)
17194   ac_status=$?
17195   cat out/conftest.err >&5
17196   echo "$as_me:17196: \$? = $ac_status" >&5
17197   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17198   then
17199     # The compiler can only warn and ignore the option if not recognized
17200     # So say no if there are warnings
17201     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17202     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17203     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17204       lt_cv_prog_compiler_c_o_GCJ=yes
17205     fi
17206   fi
17207   chmod u+w . 2>&5
17208   $rm conftest*
17209   # SGI C++ compiler will create directory out/ii_files/ for
17210   # template instantiation
17211   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17212   $rm out/* && rmdir out
17213   cd ..
17214   rmdir conftest
17215   $rm conftest*
17216
17217fi
17218{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17219echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17220
17221
17222hard_links="nottested"
17223if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17224  # do not overwrite the value of need_locks provided by the user
17225  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17226echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17227  hard_links=yes
17228  $rm conftest*
17229  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17230  touch conftest.a
17231  ln conftest.a conftest.b 2>&5 || hard_links=no
17232  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17233  { echo "$as_me:$LINENO: result: $hard_links" >&5
17234echo "${ECHO_T}$hard_links" >&6; }
17235  if test "$hard_links" = no; then
17236    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17237echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17238    need_locks=warn
17239  fi
17240else
17241  need_locks=no
17242fi
17243
17244{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17245echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17246
17247  runpath_var=
17248  allow_undefined_flag_GCJ=
17249  enable_shared_with_static_runtimes_GCJ=no
17250  archive_cmds_GCJ=
17251  archive_expsym_cmds_GCJ=
17252  old_archive_From_new_cmds_GCJ=
17253  old_archive_from_expsyms_cmds_GCJ=
17254  export_dynamic_flag_spec_GCJ=
17255  whole_archive_flag_spec_GCJ=
17256  thread_safe_flag_spec_GCJ=
17257  hardcode_libdir_flag_spec_GCJ=
17258  hardcode_libdir_flag_spec_ld_GCJ=
17259  hardcode_libdir_separator_GCJ=
17260  hardcode_direct_GCJ=no
17261  hardcode_minus_L_GCJ=no
17262  hardcode_shlibpath_var_GCJ=unsupported
17263  link_all_deplibs_GCJ=unknown
17264  hardcode_automatic_GCJ=no
17265  module_cmds_GCJ=
17266  module_expsym_cmds_GCJ=
17267  always_export_symbols_GCJ=no
17268  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17269  # include_expsyms should be a list of space-separated symbols to be *always*
17270  # included in the symbol list
17271  include_expsyms_GCJ=
17272  # exclude_expsyms can be an extended regexp of symbols to exclude
17273  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17274  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17275  # as well as any symbol that contains `d'.
17276  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17277  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17278  # platforms (ab)use it in PIC code, but their linkers get confused if
17279  # the symbol is explicitly referenced.  Since portable code cannot
17280  # rely on this symbol name, it's probably fine to never include it in
17281  # preloaded symbol tables.
17282  # Exclude shared library initialization/finalization symbols.
17283  extract_expsyms_cmds=
17284  # Just being paranoid about ensuring that cc_basename is set.
17285  for cc_temp in $compiler""; do
17286  case $cc_temp in
17287    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17288    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17289    \-*) ;;
17290    *) break;;
17291  esac
17292done
17293cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17294
17295  case $host_os in
17296  cygwin* | mingw* | pw32*)
17297    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17298    # When not using gcc, we currently assume that we are using
17299    # Microsoft Visual C++.
17300    if test "$GCC" != yes; then
17301      with_gnu_ld=no
17302    fi
17303    ;;
17304  interix*)
17305    # we just hope/assume this is gcc and not c89 (= MSVC++)
17306    with_gnu_ld=yes
17307    ;;
17308  openbsd*)
17309    with_gnu_ld=no
17310    ;;
17311  esac
17312
17313  ld_shlibs_GCJ=yes
17314  if test "$with_gnu_ld" = yes; then
17315    # If archive_cmds runs LD, not CC, wlarc should be empty
17316    wlarc='${wl}'
17317
17318    # Set some defaults for GNU ld with shared library support. These
17319    # are reset later if shared libraries are not supported. Putting them
17320    # here allows them to be overridden if necessary.
17321    runpath_var=LD_RUN_PATH
17322    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17323    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17324    # ancient GNU ld didn't support --whole-archive et. al.
17325    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17326	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17327      else
17328  	whole_archive_flag_spec_GCJ=
17329    fi
17330    supports_anon_versioning=no
17331    case `$LD -v 2>/dev/null` in
17332      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17333      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17334      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17335      *\ 2.11.*) ;; # other 2.11 versions
17336      *) supports_anon_versioning=yes ;;
17337    esac
17338
17339    # See if GNU ld supports shared libraries.
17340    case $host_os in
17341    aix[3-9]*)
17342      # On AIX/PPC, the GNU linker is very broken
17343      if test "$host_cpu" != ia64; then
17344	ld_shlibs_GCJ=no
17345	cat <<EOF 1>&2
17346
17347*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17348*** to be unable to reliably create shared libraries on AIX.
17349*** Therefore, libtool is disabling shared libraries support.  If you
17350*** really care for shared libraries, you may want to modify your PATH
17351*** so that a non-GNU linker is found, and then restart.
17352
17353EOF
17354      fi
17355      ;;
17356
17357    amigaos*)
17358      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)'
17359      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17360      hardcode_minus_L_GCJ=yes
17361
17362      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17363      # that the semantics of dynamic libraries on AmigaOS, at least up
17364      # to version 4, is to share data among multiple programs linked
17365      # with the same dynamic library.  Since this doesn't match the
17366      # behavior of shared libraries on other platforms, we can't use
17367      # them.
17368      ld_shlibs_GCJ=no
17369      ;;
17370
17371    beos*)
17372      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17373	allow_undefined_flag_GCJ=unsupported
17374	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17375	# support --undefined.  This deserves some investigation.  FIXME
17376	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17377      else
17378	ld_shlibs_GCJ=no
17379      fi
17380      ;;
17381
17382    cygwin* | mingw* | pw32*)
17383      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17384      # as there is no search path for DLLs.
17385      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17386      allow_undefined_flag_GCJ=unsupported
17387      always_export_symbols_GCJ=no
17388      enable_shared_with_static_runtimes_GCJ=yes
17389      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17390
17391      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17392        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17393	# If the export-symbols file already is a .def file (1st line
17394	# is EXPORTS), use it as is; otherwise, prepend...
17395	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17396	  cp $export_symbols $output_objdir/$soname.def;
17397	else
17398	  echo EXPORTS > $output_objdir/$soname.def;
17399	  cat $export_symbols >> $output_objdir/$soname.def;
17400	fi~
17401	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17402      else
17403	ld_shlibs_GCJ=no
17404      fi
17405      ;;
17406
17407    interix[3-9]*)
17408      hardcode_direct_GCJ=no
17409      hardcode_shlibpath_var_GCJ=no
17410      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17411      export_dynamic_flag_spec_GCJ='${wl}-E'
17412      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17413      # Instead, shared libraries are loaded at an image base (0x10000000 by
17414      # default) and relocated if they conflict, which is a slow very memory
17415      # consuming and fragmenting process.  To avoid this, we pick a random,
17416      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17417      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17418      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'
17419      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'
17420      ;;
17421
17422    gnu* | linux* | k*bsd*-gnu)
17423      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17424	tmp_addflag=
17425	case $cc_basename,$host_cpu in
17426	pgcc*)				# Portland Group C compiler
17427	  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'
17428	  tmp_addflag=' $pic_flag'
17429	  ;;
17430	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17431	  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'
17432	  tmp_addflag=' $pic_flag -Mnomain' ;;
17433	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17434	  tmp_addflag=' -i_dynamic' ;;
17435	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17436	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17437	ifc* | ifort*)			# Intel Fortran compiler
17438	  tmp_addflag=' -nofor_main' ;;
17439	esac
17440	case `$CC -V 2>&1 | sed 5q` in
17441	*Sun\ C*)			# Sun C 5.9
17442	  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'
17443	  tmp_sharedflag='-G' ;;
17444	*Sun\ F*)			# Sun Fortran 8.3
17445	  tmp_sharedflag='-G' ;;
17446	*)
17447	  tmp_sharedflag='-shared' ;;
17448	esac
17449	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17450
17451	if test $supports_anon_versioning = yes; then
17452	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17453  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17454  $echo "local: *; };" >> $output_objdir/$libname.ver~
17455	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17456	fi
17457	link_all_deplibs_GCJ=no
17458      else
17459	ld_shlibs_GCJ=no
17460      fi
17461      ;;
17462
17463    netbsd* | netbsdelf*-gnu)
17464      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17465	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17466	wlarc=
17467      else
17468	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17469	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17470      fi
17471      ;;
17472
17473    solaris*)
17474      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17475	ld_shlibs_GCJ=no
17476	cat <<EOF 1>&2
17477
17478*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17479*** create shared libraries on Solaris systems.  Therefore, libtool
17480*** is disabling shared libraries support.  We urge you to upgrade GNU
17481*** binutils to release 2.9.1 or newer.  Another option is to modify
17482*** your PATH or compiler configuration so that the native linker is
17483*** used, and then restart.
17484
17485EOF
17486      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17487	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17488	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17489      else
17490	ld_shlibs_GCJ=no
17491      fi
17492      ;;
17493
17494    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17495      case `$LD -v 2>&1` in
17496        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17497	ld_shlibs_GCJ=no
17498	cat <<_LT_EOF 1>&2
17499
17500*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17501*** reliably create shared libraries on SCO systems.  Therefore, libtool
17502*** is disabling shared libraries support.  We urge you to upgrade GNU
17503*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17504*** your PATH or compiler configuration so that the native linker is
17505*** used, and then restart.
17506
17507_LT_EOF
17508	;;
17509	*)
17510	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17511	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17512	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17513	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17514	  else
17515	    ld_shlibs_GCJ=no
17516	  fi
17517	;;
17518      esac
17519      ;;
17520
17521    sunos4*)
17522      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17523      wlarc=
17524      hardcode_direct_GCJ=yes
17525      hardcode_shlibpath_var_GCJ=no
17526      ;;
17527
17528    *)
17529      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17530	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17531	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17532      else
17533	ld_shlibs_GCJ=no
17534      fi
17535      ;;
17536    esac
17537
17538    if test "$ld_shlibs_GCJ" = no; then
17539      runpath_var=
17540      hardcode_libdir_flag_spec_GCJ=
17541      export_dynamic_flag_spec_GCJ=
17542      whole_archive_flag_spec_GCJ=
17543    fi
17544  else
17545    # PORTME fill in a description of your system's linker (not GNU ld)
17546    case $host_os in
17547    aix3*)
17548      allow_undefined_flag_GCJ=unsupported
17549      always_export_symbols_GCJ=yes
17550      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'
17551      # Note: this linker hardcodes the directories in LIBPATH if there
17552      # are no directories specified by -L.
17553      hardcode_minus_L_GCJ=yes
17554      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17555	# Neither direct hardcoding nor static linking is supported with a
17556	# broken collect2.
17557	hardcode_direct_GCJ=unsupported
17558      fi
17559      ;;
17560
17561    aix[4-9]*)
17562      if test "$host_cpu" = ia64; then
17563	# On IA64, the linker does run time linking by default, so we don't
17564	# have to do anything special.
17565	aix_use_runtimelinking=no
17566	exp_sym_flag='-Bexport'
17567	no_entry_flag=""
17568      else
17569	# If we're using GNU nm, then we don't want the "-C" option.
17570	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17571	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17572	  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'
17573	else
17574	  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'
17575	fi
17576	aix_use_runtimelinking=no
17577
17578	# Test if we are trying to use run time linking or normal
17579	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17580	# need to do runtime linking.
17581	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17582	  for ld_flag in $LDFLAGS; do
17583  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17584  	    aix_use_runtimelinking=yes
17585  	    break
17586  	  fi
17587	  done
17588	  ;;
17589	esac
17590
17591	exp_sym_flag='-bexport'
17592	no_entry_flag='-bnoentry'
17593      fi
17594
17595      # When large executables or shared objects are built, AIX ld can
17596      # have problems creating the table of contents.  If linking a library
17597      # or program results in "error TOC overflow" add -mminimal-toc to
17598      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17599      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17600
17601      archive_cmds_GCJ=''
17602      hardcode_direct_GCJ=yes
17603      hardcode_libdir_separator_GCJ=':'
17604      link_all_deplibs_GCJ=yes
17605
17606      if test "$GCC" = yes; then
17607	case $host_os in aix4.[012]|aix4.[012].*)
17608	# We only want to do this on AIX 4.2 and lower, the check
17609	# below for broken collect2 doesn't work under 4.3+
17610	  collect2name=`${CC} -print-prog-name=collect2`
17611	  if test -f "$collect2name" && \
17612  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17613	  then
17614  	  # We have reworked collect2
17615  	  :
17616	  else
17617  	  # We have old collect2
17618  	  hardcode_direct_GCJ=unsupported
17619  	  # It fails to find uninstalled libraries when the uninstalled
17620  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17621  	  # to unsupported forces relinking
17622  	  hardcode_minus_L_GCJ=yes
17623  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17624  	  hardcode_libdir_separator_GCJ=
17625	  fi
17626	  ;;
17627	esac
17628	shared_flag='-shared'
17629	if test "$aix_use_runtimelinking" = yes; then
17630	  shared_flag="$shared_flag "'${wl}-G'
17631	fi
17632      else
17633	# not using gcc
17634	if test "$host_cpu" = ia64; then
17635  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17636  	# chokes on -Wl,-G. The following line is correct:
17637	  shared_flag='-G'
17638	else
17639	  if test "$aix_use_runtimelinking" = yes; then
17640	    shared_flag='${wl}-G'
17641	  else
17642	    shared_flag='${wl}-bM:SRE'
17643	  fi
17644	fi
17645      fi
17646
17647      # It seems that -bexpall does not export symbols beginning with
17648      # underscore (_), so it is better to generate a list of symbols to export.
17649      always_export_symbols_GCJ=yes
17650      if test "$aix_use_runtimelinking" = yes; then
17651	# Warning - without using the other runtime loading flags (-brtl),
17652	# -berok will link without error, but may produce a broken library.
17653	allow_undefined_flag_GCJ='-berok'
17654       # Determine the default libpath from the value encoded in an empty executable.
17655       cat >conftest.$ac_ext <<_ACEOF
17656/* confdefs.h.  */
17657_ACEOF
17658cat confdefs.h >>conftest.$ac_ext
17659cat >>conftest.$ac_ext <<_ACEOF
17660/* end confdefs.h.  */
17661
17662int
17663main ()
17664{
17665
17666  ;
17667  return 0;
17668}
17669_ACEOF
17670rm -f conftest.$ac_objext conftest$ac_exeext
17671if { (ac_try="$ac_link"
17672case "(($ac_try" in
17673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674  *) ac_try_echo=$ac_try;;
17675esac
17676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677  (eval "$ac_link") 2>conftest.er1
17678  ac_status=$?
17679  grep -v '^ *+' conftest.er1 >conftest.err
17680  rm -f conftest.er1
17681  cat conftest.err >&5
17682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683  (exit $ac_status); } && {
17684	 test -z "$ac_c_werror_flag" ||
17685	 test ! -s conftest.err
17686       } && test -s conftest$ac_exeext &&
17687       $as_test_x conftest$ac_exeext; then
17688
17689lt_aix_libpath_sed='
17690    /Import File Strings/,/^$/ {
17691	/^0/ {
17692	    s/^0  *\(.*\)$/\1/
17693	    p
17694	}
17695    }'
17696aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17697# Check for a 64-bit object if we didn't find anything.
17698if test -z "$aix_libpath"; then
17699  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17700fi
17701else
17702  echo "$as_me: failed program was:" >&5
17703sed 's/^/| /' conftest.$ac_ext >&5
17704
17705
17706fi
17707
17708rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17709      conftest$ac_exeext conftest.$ac_ext
17710if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17711
17712       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17713	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"
17714       else
17715	if test "$host_cpu" = ia64; then
17716	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17717	  allow_undefined_flag_GCJ="-z nodefs"
17718	  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"
17719	else
17720	 # Determine the default libpath from the value encoded in an empty executable.
17721	 cat >conftest.$ac_ext <<_ACEOF
17722/* confdefs.h.  */
17723_ACEOF
17724cat confdefs.h >>conftest.$ac_ext
17725cat >>conftest.$ac_ext <<_ACEOF
17726/* end confdefs.h.  */
17727
17728int
17729main ()
17730{
17731
17732  ;
17733  return 0;
17734}
17735_ACEOF
17736rm -f conftest.$ac_objext conftest$ac_exeext
17737if { (ac_try="$ac_link"
17738case "(($ac_try" in
17739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740  *) ac_try_echo=$ac_try;;
17741esac
17742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743  (eval "$ac_link") 2>conftest.er1
17744  ac_status=$?
17745  grep -v '^ *+' conftest.er1 >conftest.err
17746  rm -f conftest.er1
17747  cat conftest.err >&5
17748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749  (exit $ac_status); } && {
17750	 test -z "$ac_c_werror_flag" ||
17751	 test ! -s conftest.err
17752       } && test -s conftest$ac_exeext &&
17753       $as_test_x conftest$ac_exeext; then
17754
17755lt_aix_libpath_sed='
17756    /Import File Strings/,/^$/ {
17757	/^0/ {
17758	    s/^0  *\(.*\)$/\1/
17759	    p
17760	}
17761    }'
17762aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17763# Check for a 64-bit object if we didn't find anything.
17764if test -z "$aix_libpath"; then
17765  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17766fi
17767else
17768  echo "$as_me: failed program was:" >&5
17769sed 's/^/| /' conftest.$ac_ext >&5
17770
17771
17772fi
17773
17774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17775      conftest$ac_exeext conftest.$ac_ext
17776if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17777
17778	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17779	  # Warning - without using the other run time loading flags,
17780	  # -berok will link without error, but may produce a broken library.
17781	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17782	  allow_undefined_flag_GCJ=' ${wl}-berok'
17783	  # Exported symbols can be pulled into shared objects from archives
17784	  whole_archive_flag_spec_GCJ='$convenience'
17785	  archive_cmds_need_lc_GCJ=yes
17786	  # This is similar to how AIX traditionally builds its shared libraries.
17787	  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'
17788	fi
17789      fi
17790      ;;
17791
17792    amigaos*)
17793      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)'
17794      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17795      hardcode_minus_L_GCJ=yes
17796      # see comment about different semantics on the GNU ld section
17797      ld_shlibs_GCJ=no
17798      ;;
17799
17800    bsdi[45]*)
17801      export_dynamic_flag_spec_GCJ=-rdynamic
17802      ;;
17803
17804    cygwin* | mingw* | pw32*)
17805      # When not using gcc, we currently assume that we are using
17806      # Microsoft Visual C++.
17807      # hardcode_libdir_flag_spec is actually meaningless, as there is
17808      # no search path for DLLs.
17809      hardcode_libdir_flag_spec_GCJ=' '
17810      allow_undefined_flag_GCJ=unsupported
17811      # Tell ltmain to make .lib files, not .a files.
17812      libext=lib
17813      # Tell ltmain to make .dll files, not .so files.
17814      shrext_cmds=".dll"
17815      # FIXME: Setting linknames here is a bad hack.
17816      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17817      # The linker will automatically build a .lib file if we build a DLL.
17818      old_archive_From_new_cmds_GCJ='true'
17819      # FIXME: Should let the user specify the lib program.
17820      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17821      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17822      enable_shared_with_static_runtimes_GCJ=yes
17823      ;;
17824
17825    darwin* | rhapsody*)
17826      case $host_os in
17827        rhapsody* | darwin1.[012])
17828         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17829         ;;
17830       *) # Darwin 1.3 on
17831         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17832           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17833         else
17834           case ${MACOSX_DEPLOYMENT_TARGET} in
17835             10.[012])
17836               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17837               ;;
17838             10.*)
17839               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17840               ;;
17841           esac
17842         fi
17843         ;;
17844      esac
17845      archive_cmds_need_lc_GCJ=no
17846      hardcode_direct_GCJ=no
17847      hardcode_automatic_GCJ=yes
17848      hardcode_shlibpath_var_GCJ=unsupported
17849      whole_archive_flag_spec_GCJ=''
17850      link_all_deplibs_GCJ=yes
17851    if test "$GCC" = yes ; then
17852    	output_verbose_link_cmd='echo'
17853        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}"
17854        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17855        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}"
17856        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}"
17857    else
17858      case $cc_basename in
17859        xlc*)
17860         output_verbose_link_cmd='echo'
17861         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17862         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17863          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17864         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}'
17865          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}'
17866          ;;
17867       *)
17868         ld_shlibs_GCJ=no
17869          ;;
17870      esac
17871    fi
17872      ;;
17873
17874    dgux*)
17875      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17876      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17877      hardcode_shlibpath_var_GCJ=no
17878      ;;
17879
17880    freebsd1*)
17881      ld_shlibs_GCJ=no
17882      ;;
17883
17884    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17885    # support.  Future versions do this automatically, but an explicit c++rt0.o
17886    # does not break anything, and helps significantly (at the cost of a little
17887    # extra space).
17888    freebsd2.2*)
17889      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17890      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17891      hardcode_direct_GCJ=yes
17892      hardcode_shlibpath_var_GCJ=no
17893      ;;
17894
17895    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17896    freebsd2*)
17897      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17898      hardcode_direct_GCJ=yes
17899      hardcode_minus_L_GCJ=yes
17900      hardcode_shlibpath_var_GCJ=no
17901      ;;
17902
17903    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17904    freebsd* | dragonfly*)
17905      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17906      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17907      hardcode_direct_GCJ=yes
17908      hardcode_shlibpath_var_GCJ=no
17909      ;;
17910
17911    hpux9*)
17912      if test "$GCC" = yes; then
17913	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'
17914      else
17915	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'
17916      fi
17917      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17918      hardcode_libdir_separator_GCJ=:
17919      hardcode_direct_GCJ=yes
17920
17921      # hardcode_minus_L: Not really in the search PATH,
17922      # but as the default location of the library.
17923      hardcode_minus_L_GCJ=yes
17924      export_dynamic_flag_spec_GCJ='${wl}-E'
17925      ;;
17926
17927    hpux10*)
17928      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17929	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17930      else
17931	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17932      fi
17933      if test "$with_gnu_ld" = no; then
17934	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17935	hardcode_libdir_separator_GCJ=:
17936
17937	hardcode_direct_GCJ=yes
17938	export_dynamic_flag_spec_GCJ='${wl}-E'
17939
17940	# hardcode_minus_L: Not really in the search PATH,
17941	# but as the default location of the library.
17942	hardcode_minus_L_GCJ=yes
17943      fi
17944      ;;
17945
17946    hpux11*)
17947      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17948	case $host_cpu in
17949	hppa*64*)
17950	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17951	  ;;
17952	ia64*)
17953	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17954	  ;;
17955	*)
17956	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17957	  ;;
17958	esac
17959      else
17960	case $host_cpu in
17961	hppa*64*)
17962	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17963	  ;;
17964	ia64*)
17965	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17966	  ;;
17967	*)
17968	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17969	  ;;
17970	esac
17971      fi
17972      if test "$with_gnu_ld" = no; then
17973	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17974	hardcode_libdir_separator_GCJ=:
17975
17976	case $host_cpu in
17977	hppa*64*|ia64*)
17978	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17979	  hardcode_direct_GCJ=no
17980	  hardcode_shlibpath_var_GCJ=no
17981	  ;;
17982	*)
17983	  hardcode_direct_GCJ=yes
17984	  export_dynamic_flag_spec_GCJ='${wl}-E'
17985
17986	  # hardcode_minus_L: Not really in the search PATH,
17987	  # but as the default location of the library.
17988	  hardcode_minus_L_GCJ=yes
17989	  ;;
17990	esac
17991      fi
17992      ;;
17993
17994    irix5* | irix6* | nonstopux*)
17995      if test "$GCC" = yes; then
17996	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'
17997      else
17998	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'
17999	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18000      fi
18001      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18002      hardcode_libdir_separator_GCJ=:
18003      link_all_deplibs_GCJ=yes
18004      ;;
18005
18006    netbsd* | netbsdelf*-gnu)
18007      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18008	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18009      else
18010	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18011      fi
18012      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18013      hardcode_direct_GCJ=yes
18014      hardcode_shlibpath_var_GCJ=no
18015      ;;
18016
18017    newsos6)
18018      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18019      hardcode_direct_GCJ=yes
18020      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18021      hardcode_libdir_separator_GCJ=:
18022      hardcode_shlibpath_var_GCJ=no
18023      ;;
18024
18025    openbsd*)
18026      if test -f /usr/libexec/ld.so; then
18027	hardcode_direct_GCJ=yes
18028	hardcode_shlibpath_var_GCJ=no
18029	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18030	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18031	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18032	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18033	  export_dynamic_flag_spec_GCJ='${wl}-E'
18034	else
18035	  case $host_os in
18036	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18037	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18038	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18039	     ;;
18040	   *)
18041	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18042	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18043	     ;;
18044	  esac
18045        fi
18046      else
18047	ld_shlibs_GCJ=no
18048      fi
18049      ;;
18050
18051    os2*)
18052      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18053      hardcode_minus_L_GCJ=yes
18054      allow_undefined_flag_GCJ=unsupported
18055      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'
18056      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18057      ;;
18058
18059    osf3*)
18060      if test "$GCC" = yes; then
18061	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18062	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'
18063      else
18064	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18065	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'
18066      fi
18067      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18068      hardcode_libdir_separator_GCJ=:
18069      ;;
18070
18071    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18072      if test "$GCC" = yes; then
18073	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18074	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'
18075	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18076      else
18077	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18078	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'
18079	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~
18080	$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'
18081
18082	# Both c and cxx compiler support -rpath directly
18083	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18084      fi
18085      hardcode_libdir_separator_GCJ=:
18086      ;;
18087
18088    solaris*)
18089      no_undefined_flag_GCJ=' -z text'
18090      if test "$GCC" = yes; then
18091	wlarc='${wl}'
18092	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18093	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18094	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18095      else
18096	wlarc=''
18097	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18098	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18099  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18100      fi
18101      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18102      hardcode_shlibpath_var_GCJ=no
18103      case $host_os in
18104      solaris2.[0-5] | solaris2.[0-5].*) ;;
18105      *)
18106	# The compiler driver will combine and reorder linker options,
18107	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18108	# but is careful enough not to reorder.
18109 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18110	if test "$GCC" = yes; then
18111	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18112	else
18113	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18114	fi
18115	;;
18116      esac
18117      link_all_deplibs_GCJ=yes
18118      ;;
18119
18120    sunos4*)
18121      if test "x$host_vendor" = xsequent; then
18122	# Use $CC to link under sequent, because it throws in some extra .o
18123	# files that make .init and .fini sections work.
18124	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18125      else
18126	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18127      fi
18128      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18129      hardcode_direct_GCJ=yes
18130      hardcode_minus_L_GCJ=yes
18131      hardcode_shlibpath_var_GCJ=no
18132      ;;
18133
18134    sysv4)
18135      case $host_vendor in
18136	sni)
18137	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18138	  hardcode_direct_GCJ=yes # is this really true???
18139	;;
18140	siemens)
18141	  ## LD is ld it makes a PLAMLIB
18142	  ## CC just makes a GrossModule.
18143	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18144	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18145	  hardcode_direct_GCJ=no
18146        ;;
18147	motorola)
18148	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18149	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18150	;;
18151      esac
18152      runpath_var='LD_RUN_PATH'
18153      hardcode_shlibpath_var_GCJ=no
18154      ;;
18155
18156    sysv4.3*)
18157      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18158      hardcode_shlibpath_var_GCJ=no
18159      export_dynamic_flag_spec_GCJ='-Bexport'
18160      ;;
18161
18162    sysv4*MP*)
18163      if test -d /usr/nec; then
18164	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18165	hardcode_shlibpath_var_GCJ=no
18166	runpath_var=LD_RUN_PATH
18167	hardcode_runpath_var=yes
18168	ld_shlibs_GCJ=yes
18169      fi
18170      ;;
18171
18172    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18173      no_undefined_flag_GCJ='${wl}-z,text'
18174      archive_cmds_need_lc_GCJ=no
18175      hardcode_shlibpath_var_GCJ=no
18176      runpath_var='LD_RUN_PATH'
18177
18178      if test "$GCC" = yes; then
18179	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18180	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18181      else
18182	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18183	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18184      fi
18185      ;;
18186
18187    sysv5* | sco3.2v5* | sco5v6*)
18188      # Note: We can NOT use -z defs as we might desire, because we do not
18189      # link with -lc, and that would cause any symbols used from libc to
18190      # always be unresolved, which means just about no library would
18191      # ever link correctly.  If we're not using GNU ld we use -z text
18192      # though, which does catch some bad symbols but isn't as heavy-handed
18193      # as -z defs.
18194      no_undefined_flag_GCJ='${wl}-z,text'
18195      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18196      archive_cmds_need_lc_GCJ=no
18197      hardcode_shlibpath_var_GCJ=no
18198      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18199      hardcode_libdir_separator_GCJ=':'
18200      link_all_deplibs_GCJ=yes
18201      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18202      runpath_var='LD_RUN_PATH'
18203
18204      if test "$GCC" = yes; then
18205	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18206	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18207      else
18208	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18209	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18210      fi
18211      ;;
18212
18213    uts4*)
18214      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18215      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18216      hardcode_shlibpath_var_GCJ=no
18217      ;;
18218
18219    *)
18220      ld_shlibs_GCJ=no
18221      ;;
18222    esac
18223  fi
18224
18225{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18226echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18227test "$ld_shlibs_GCJ" = no && can_build_shared=no
18228
18229#
18230# Do we need to explicitly link libc?
18231#
18232case "x$archive_cmds_need_lc_GCJ" in
18233x|xyes)
18234  # Assume -lc should be added
18235  archive_cmds_need_lc_GCJ=yes
18236
18237  if test "$enable_shared" = yes && test "$GCC" = yes; then
18238    case $archive_cmds_GCJ in
18239    *'~'*)
18240      # FIXME: we may have to deal with multi-command sequences.
18241      ;;
18242    '$CC '*)
18243      # Test whether the compiler implicitly links with -lc since on some
18244      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18245      # to ld, don't add -lc before -lgcc.
18246      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18247echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18248      $rm conftest*
18249      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18250
18251      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18252  (eval $ac_compile) 2>&5
18253  ac_status=$?
18254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255  (exit $ac_status); } 2>conftest.err; then
18256        soname=conftest
18257        lib=conftest
18258        libobjs=conftest.$ac_objext
18259        deplibs=
18260        wl=$lt_prog_compiler_wl_GCJ
18261	pic_flag=$lt_prog_compiler_pic_GCJ
18262        compiler_flags=-v
18263        linker_flags=-v
18264        verstring=
18265        output_objdir=.
18266        libname=conftest
18267        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18268        allow_undefined_flag_GCJ=
18269        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18270  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18271  ac_status=$?
18272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273  (exit $ac_status); }
18274        then
18275	  archive_cmds_need_lc_GCJ=no
18276        else
18277	  archive_cmds_need_lc_GCJ=yes
18278        fi
18279        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18280      else
18281        cat conftest.err 1>&5
18282      fi
18283      $rm conftest*
18284      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18285echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18286      ;;
18287    esac
18288  fi
18289  ;;
18290esac
18291
18292{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18293echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18294library_names_spec=
18295libname_spec='lib$name'
18296soname_spec=
18297shrext_cmds=".so"
18298postinstall_cmds=
18299postuninstall_cmds=
18300finish_cmds=
18301finish_eval=
18302shlibpath_var=
18303shlibpath_overrides_runpath=unknown
18304version_type=none
18305dynamic_linker="$host_os ld.so"
18306sys_lib_dlsearch_path_spec="/lib /usr/lib"
18307
18308need_lib_prefix=unknown
18309hardcode_into_libs=no
18310
18311# when you set need_version to no, make sure it does not cause -set_version
18312# flags to be left without arguments
18313need_version=unknown
18314
18315case $host_os in
18316aix3*)
18317  version_type=linux
18318  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18319  shlibpath_var=LIBPATH
18320
18321  # AIX 3 has no versioning support, so we append a major version to the name.
18322  soname_spec='${libname}${release}${shared_ext}$major'
18323  ;;
18324
18325aix[4-9]*)
18326  version_type=linux
18327  need_lib_prefix=no
18328  need_version=no
18329  hardcode_into_libs=yes
18330  if test "$host_cpu" = ia64; then
18331    # AIX 5 supports IA64
18332    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18333    shlibpath_var=LD_LIBRARY_PATH
18334  else
18335    # With GCC up to 2.95.x, collect2 would create an import file
18336    # for dependence libraries.  The import file would start with
18337    # the line `#! .'.  This would cause the generated library to
18338    # depend on `.', always an invalid library.  This was fixed in
18339    # development snapshots of GCC prior to 3.0.
18340    case $host_os in
18341      aix4 | aix4.[01] | aix4.[01].*)
18342      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18343	   echo ' yes '
18344	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18345	:
18346      else
18347	can_build_shared=no
18348      fi
18349      ;;
18350    esac
18351    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18352    # soname into executable. Probably we can add versioning support to
18353    # collect2, so additional links can be useful in future.
18354    if test "$aix_use_runtimelinking" = yes; then
18355      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18356      # instead of lib<name>.a to let people know that these are not
18357      # typical AIX shared libraries.
18358      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18359    else
18360      # We preserve .a as extension for shared libraries through AIX4.2
18361      # and later when we are not doing run time linking.
18362      library_names_spec='${libname}${release}.a $libname.a'
18363      soname_spec='${libname}${release}${shared_ext}$major'
18364    fi
18365    shlibpath_var=LIBPATH
18366  fi
18367  ;;
18368
18369amigaos*)
18370  library_names_spec='$libname.ixlibrary $libname.a'
18371  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18372  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'
18373  ;;
18374
18375beos*)
18376  library_names_spec='${libname}${shared_ext}'
18377  dynamic_linker="$host_os ld.so"
18378  shlibpath_var=LIBRARY_PATH
18379  ;;
18380
18381bsdi[45]*)
18382  version_type=linux
18383  need_version=no
18384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18385  soname_spec='${libname}${release}${shared_ext}$major'
18386  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18387  shlibpath_var=LD_LIBRARY_PATH
18388  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18389  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18390  # the default ld.so.conf also contains /usr/contrib/lib and
18391  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18392  # libtool to hard-code these into programs
18393  ;;
18394
18395cygwin* | mingw* | pw32*)
18396  version_type=windows
18397  shrext_cmds=".dll"
18398  need_version=no
18399  need_lib_prefix=no
18400
18401  case $GCC,$host_os in
18402  yes,cygwin* | yes,mingw* | yes,pw32*)
18403    library_names_spec='$libname.dll.a'
18404    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18405    postinstall_cmds='base_file=`basename \${file}`~
18406      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18407      dldir=$destdir/`dirname \$dlpath`~
18408      test -d \$dldir || mkdir -p \$dldir~
18409      $install_prog $dir/$dlname \$dldir/$dlname~
18410      chmod a+x \$dldir/$dlname'
18411    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18412      dlpath=$dir/\$dldll~
18413       $rm \$dlpath'
18414    shlibpath_overrides_runpath=yes
18415
18416    case $host_os in
18417    cygwin*)
18418      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18419      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18420      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18421      ;;
18422    mingw*)
18423      # MinGW DLLs use traditional 'lib' prefix
18424      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18425      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18426      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18427        # It is most probably a Windows format PATH printed by
18428        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18429        # path with ; separators, and with drive letters. We can handle the
18430        # drive letters (cygwin fileutils understands them), so leave them,
18431        # especially as we might pass files found there to a mingw objdump,
18432        # which wouldn't understand a cygwinified path. Ahh.
18433        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18434      else
18435        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18436      fi
18437      ;;
18438    pw32*)
18439      # pw32 DLLs use 'pw' prefix rather than 'lib'
18440      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18441      ;;
18442    esac
18443    ;;
18444
18445  *)
18446    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18447    ;;
18448  esac
18449  dynamic_linker='Win32 ld.exe'
18450  # FIXME: first we should search . and the directory the executable is in
18451  shlibpath_var=PATH
18452  ;;
18453
18454darwin* | rhapsody*)
18455  dynamic_linker="$host_os dyld"
18456  version_type=darwin
18457  need_lib_prefix=no
18458  need_version=no
18459  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18460  soname_spec='${libname}${release}${major}$shared_ext'
18461  shlibpath_overrides_runpath=yes
18462  shlibpath_var=DYLD_LIBRARY_PATH
18463  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18464
18465  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18466  ;;
18467
18468dgux*)
18469  version_type=linux
18470  need_lib_prefix=no
18471  need_version=no
18472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18473  soname_spec='${libname}${release}${shared_ext}$major'
18474  shlibpath_var=LD_LIBRARY_PATH
18475  ;;
18476
18477freebsd1*)
18478  dynamic_linker=no
18479  ;;
18480
18481freebsd* | dragonfly*)
18482  # DragonFly does not have aout.  When/if they implement a new
18483  # versioning mechanism, adjust this.
18484  if test -x /usr/bin/objformat; then
18485    objformat=`/usr/bin/objformat`
18486  else
18487    case $host_os in
18488    freebsd[123]*) objformat=aout ;;
18489    *) objformat=elf ;;
18490    esac
18491  fi
18492  version_type=freebsd-$objformat
18493  case $version_type in
18494    freebsd-elf*)
18495      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18496      need_version=no
18497      need_lib_prefix=no
18498      ;;
18499    freebsd-*)
18500      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18501      need_version=yes
18502      ;;
18503  esac
18504  shlibpath_var=LD_LIBRARY_PATH
18505  case $host_os in
18506  freebsd2*)
18507    shlibpath_overrides_runpath=yes
18508    ;;
18509  freebsd3.[01]* | freebsdelf3.[01]*)
18510    shlibpath_overrides_runpath=yes
18511    hardcode_into_libs=yes
18512    ;;
18513  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18514  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18515    shlibpath_overrides_runpath=no
18516    hardcode_into_libs=yes
18517    ;;
18518  *) # from 4.6 on, and DragonFly
18519    shlibpath_overrides_runpath=yes
18520    hardcode_into_libs=yes
18521    ;;
18522  esac
18523  ;;
18524
18525gnu*)
18526  version_type=linux
18527  need_lib_prefix=no
18528  need_version=no
18529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18530  soname_spec='${libname}${release}${shared_ext}$major'
18531  shlibpath_var=LD_LIBRARY_PATH
18532  hardcode_into_libs=yes
18533  ;;
18534
18535hpux9* | hpux10* | hpux11*)
18536  # Give a soname corresponding to the major version so that dld.sl refuses to
18537  # link against other versions.
18538  version_type=sunos
18539  need_lib_prefix=no
18540  need_version=no
18541  case $host_cpu in
18542  ia64*)
18543    shrext_cmds='.so'
18544    hardcode_into_libs=yes
18545    dynamic_linker="$host_os dld.so"
18546    shlibpath_var=LD_LIBRARY_PATH
18547    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18548    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18549    soname_spec='${libname}${release}${shared_ext}$major'
18550    if test "X$HPUX_IA64_MODE" = X32; then
18551      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18552    else
18553      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18554    fi
18555    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18556    ;;
18557   hppa*64*)
18558     shrext_cmds='.sl'
18559     hardcode_into_libs=yes
18560     dynamic_linker="$host_os dld.sl"
18561     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18562     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18563     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18564     soname_spec='${libname}${release}${shared_ext}$major'
18565     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18566     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18567     ;;
18568   *)
18569    shrext_cmds='.sl'
18570    dynamic_linker="$host_os dld.sl"
18571    shlibpath_var=SHLIB_PATH
18572    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18573    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18574    soname_spec='${libname}${release}${shared_ext}$major'
18575    ;;
18576  esac
18577  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18578  postinstall_cmds='chmod 555 $lib'
18579  ;;
18580
18581interix[3-9]*)
18582  version_type=linux
18583  need_lib_prefix=no
18584  need_version=no
18585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18586  soname_spec='${libname}${release}${shared_ext}$major'
18587  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18588  shlibpath_var=LD_LIBRARY_PATH
18589  shlibpath_overrides_runpath=no
18590  hardcode_into_libs=yes
18591  ;;
18592
18593irix5* | irix6* | nonstopux*)
18594  case $host_os in
18595    nonstopux*) version_type=nonstopux ;;
18596    *)
18597	if test "$lt_cv_prog_gnu_ld" = yes; then
18598		version_type=linux
18599	else
18600		version_type=irix
18601	fi ;;
18602  esac
18603  need_lib_prefix=no
18604  need_version=no
18605  soname_spec='${libname}${release}${shared_ext}$major'
18606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18607  case $host_os in
18608  irix5* | nonstopux*)
18609    libsuff= shlibsuff=
18610    ;;
18611  *)
18612    case $LD in # libtool.m4 will add one of these switches to LD
18613    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18614      libsuff= shlibsuff= libmagic=32-bit;;
18615    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18616      libsuff=32 shlibsuff=N32 libmagic=N32;;
18617    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18618      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18619    *) libsuff= shlibsuff= libmagic=never-match;;
18620    esac
18621    ;;
18622  esac
18623  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18624  shlibpath_overrides_runpath=no
18625  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18626  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18627  hardcode_into_libs=yes
18628  ;;
18629
18630# No shared lib support for Linux oldld, aout, or coff.
18631linux*oldld* | linux*aout* | linux*coff*)
18632  dynamic_linker=no
18633  ;;
18634
18635# This must be Linux ELF.
18636linux* | k*bsd*-gnu)
18637  version_type=linux
18638  need_lib_prefix=no
18639  need_version=no
18640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18641  soname_spec='${libname}${release}${shared_ext}$major'
18642  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18643  shlibpath_var=LD_LIBRARY_PATH
18644  shlibpath_overrides_runpath=no
18645  # This implies no fast_install, which is unacceptable.
18646  # Some rework will be needed to allow for fast_install
18647  # before this can be enabled.
18648  hardcode_into_libs=yes
18649
18650  # Append ld.so.conf contents to the search path
18651  if test -f /etc/ld.so.conf; then
18652    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' ' '`
18653    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18654  fi
18655
18656  # We used to test for /lib/ld.so.1 and disable shared libraries on
18657  # powerpc, because MkLinux only supported shared libraries with the
18658  # GNU dynamic linker.  Since this was broken with cross compilers,
18659  # most powerpc-linux boxes support dynamic linking these days and
18660  # people can always --disable-shared, the test was removed, and we
18661  # assume the GNU/Linux dynamic linker is in use.
18662  dynamic_linker='GNU/Linux ld.so'
18663  ;;
18664
18665netbsdelf*-gnu)
18666  version_type=linux
18667  need_lib_prefix=no
18668  need_version=no
18669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18670  soname_spec='${libname}${release}${shared_ext}$major'
18671  shlibpath_var=LD_LIBRARY_PATH
18672  shlibpath_overrides_runpath=no
18673  hardcode_into_libs=yes
18674  dynamic_linker='NetBSD ld.elf_so'
18675  ;;
18676
18677netbsd*)
18678  version_type=sunos
18679  need_lib_prefix=no
18680  need_version=no
18681  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18682    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18683    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18684    dynamic_linker='NetBSD (a.out) ld.so'
18685  else
18686    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18687    soname_spec='${libname}${release}${shared_ext}$major'
18688    dynamic_linker='NetBSD ld.elf_so'
18689  fi
18690  shlibpath_var=LD_LIBRARY_PATH
18691  shlibpath_overrides_runpath=yes
18692  hardcode_into_libs=yes
18693  ;;
18694
18695newsos6)
18696  version_type=linux
18697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18698  shlibpath_var=LD_LIBRARY_PATH
18699  shlibpath_overrides_runpath=yes
18700  ;;
18701
18702nto-qnx*)
18703  version_type=linux
18704  need_lib_prefix=no
18705  need_version=no
18706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18707  soname_spec='${libname}${release}${shared_ext}$major'
18708  shlibpath_var=LD_LIBRARY_PATH
18709  shlibpath_overrides_runpath=yes
18710  ;;
18711
18712openbsd*)
18713  version_type=sunos
18714  sys_lib_dlsearch_path_spec="/usr/lib"
18715  need_lib_prefix=no
18716  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18717  case $host_os in
18718    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18719    *)                         need_version=no  ;;
18720  esac
18721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18722  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18723  shlibpath_var=LD_LIBRARY_PATH
18724  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18725    case $host_os in
18726      openbsd2.[89] | openbsd2.[89].*)
18727	shlibpath_overrides_runpath=no
18728	;;
18729      *)
18730	shlibpath_overrides_runpath=yes
18731	;;
18732      esac
18733  else
18734    shlibpath_overrides_runpath=yes
18735  fi
18736  ;;
18737
18738os2*)
18739  libname_spec='$name'
18740  shrext_cmds=".dll"
18741  need_lib_prefix=no
18742  library_names_spec='$libname${shared_ext} $libname.a'
18743  dynamic_linker='OS/2 ld.exe'
18744  shlibpath_var=LIBPATH
18745  ;;
18746
18747osf3* | osf4* | osf5*)
18748  version_type=osf
18749  need_lib_prefix=no
18750  need_version=no
18751  soname_spec='${libname}${release}${shared_ext}$major'
18752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18753  shlibpath_var=LD_LIBRARY_PATH
18754  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18755  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18756  ;;
18757
18758rdos*)
18759  dynamic_linker=no
18760  ;;
18761
18762solaris*)
18763  version_type=linux
18764  need_lib_prefix=no
18765  need_version=no
18766  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18767  soname_spec='${libname}${release}${shared_ext}$major'
18768  shlibpath_var=LD_LIBRARY_PATH
18769  shlibpath_overrides_runpath=yes
18770  hardcode_into_libs=yes
18771  # ldd complains unless libraries are executable
18772  postinstall_cmds='chmod +x $lib'
18773  ;;
18774
18775sunos4*)
18776  version_type=sunos
18777  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18778  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18779  shlibpath_var=LD_LIBRARY_PATH
18780  shlibpath_overrides_runpath=yes
18781  if test "$with_gnu_ld" = yes; then
18782    need_lib_prefix=no
18783  fi
18784  need_version=yes
18785  ;;
18786
18787sysv4 | sysv4.3*)
18788  version_type=linux
18789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18790  soname_spec='${libname}${release}${shared_ext}$major'
18791  shlibpath_var=LD_LIBRARY_PATH
18792  case $host_vendor in
18793    sni)
18794      shlibpath_overrides_runpath=no
18795      need_lib_prefix=no
18796      export_dynamic_flag_spec='${wl}-Blargedynsym'
18797      runpath_var=LD_RUN_PATH
18798      ;;
18799    siemens)
18800      need_lib_prefix=no
18801      ;;
18802    motorola)
18803      need_lib_prefix=no
18804      need_version=no
18805      shlibpath_overrides_runpath=no
18806      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18807      ;;
18808  esac
18809  ;;
18810
18811sysv4*MP*)
18812  if test -d /usr/nec ;then
18813    version_type=linux
18814    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18815    soname_spec='$libname${shared_ext}.$major'
18816    shlibpath_var=LD_LIBRARY_PATH
18817  fi
18818  ;;
18819
18820sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18821  version_type=freebsd-elf
18822  need_lib_prefix=no
18823  need_version=no
18824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18825  soname_spec='${libname}${release}${shared_ext}$major'
18826  shlibpath_var=LD_LIBRARY_PATH
18827  hardcode_into_libs=yes
18828  if test "$with_gnu_ld" = yes; then
18829    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18830    shlibpath_overrides_runpath=no
18831  else
18832    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18833    shlibpath_overrides_runpath=yes
18834    case $host_os in
18835      sco3.2v5*)
18836        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18837	;;
18838    esac
18839  fi
18840  sys_lib_dlsearch_path_spec='/usr/lib'
18841  ;;
18842
18843uts4*)
18844  version_type=linux
18845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18846  soname_spec='${libname}${release}${shared_ext}$major'
18847  shlibpath_var=LD_LIBRARY_PATH
18848  ;;
18849
18850*)
18851  dynamic_linker=no
18852  ;;
18853esac
18854{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18855echo "${ECHO_T}$dynamic_linker" >&6; }
18856test "$dynamic_linker" = no && can_build_shared=no
18857
18858if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18859  echo $ECHO_N "(cached) $ECHO_C" >&6
18860else
18861  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18862fi
18863
18864sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18865if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18866  echo $ECHO_N "(cached) $ECHO_C" >&6
18867else
18868  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18869fi
18870
18871sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18872
18873variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18874if test "$GCC" = yes; then
18875  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18876fi
18877
18878{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18879echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18880hardcode_action_GCJ=
18881if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18882   test -n "$runpath_var_GCJ" || \
18883   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18884
18885  # We can hardcode non-existant directories.
18886  if test "$hardcode_direct_GCJ" != no &&
18887     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18888     # have to relink, otherwise we might link with an installed library
18889     # when we should be linking with a yet-to-be-installed one
18890     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18891     test "$hardcode_minus_L_GCJ" != no; then
18892    # Linking always hardcodes the temporary library directory.
18893    hardcode_action_GCJ=relink
18894  else
18895    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18896    hardcode_action_GCJ=immediate
18897  fi
18898else
18899  # We cannot hardcode anything, or else we can only hardcode existing
18900  # directories.
18901  hardcode_action_GCJ=unsupported
18902fi
18903{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18904echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18905
18906if test "$hardcode_action_GCJ" = relink; then
18907  # Fast installation is not supported
18908  enable_fast_install=no
18909elif test "$shlibpath_overrides_runpath" = yes ||
18910     test "$enable_shared" = no; then
18911  # Fast installation is not necessary
18912  enable_fast_install=needless
18913fi
18914
18915
18916# The else clause should only fire when bootstrapping the
18917# libtool distribution, otherwise you forgot to ship ltmain.sh
18918# with your package, and you will get complaints that there are
18919# no rules to generate ltmain.sh.
18920if test -f "$ltmain"; then
18921  # See if we are running on zsh, and set the options which allow our commands through
18922  # without removal of \ escapes.
18923  if test -n "${ZSH_VERSION+set}" ; then
18924    setopt NO_GLOB_SUBST
18925  fi
18926  # Now quote all the things that may contain metacharacters while being
18927  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18928  # variables and quote the copies for generation of the libtool script.
18929  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18930    SED SHELL STRIP \
18931    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18932    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18933    deplibs_check_method reload_flag reload_cmds need_locks \
18934    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18935    lt_cv_sys_global_symbol_to_c_name_address \
18936    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18937    old_postinstall_cmds old_postuninstall_cmds \
18938    compiler_GCJ \
18939    CC_GCJ \
18940    LD_GCJ \
18941    lt_prog_compiler_wl_GCJ \
18942    lt_prog_compiler_pic_GCJ \
18943    lt_prog_compiler_static_GCJ \
18944    lt_prog_compiler_no_builtin_flag_GCJ \
18945    export_dynamic_flag_spec_GCJ \
18946    thread_safe_flag_spec_GCJ \
18947    whole_archive_flag_spec_GCJ \
18948    enable_shared_with_static_runtimes_GCJ \
18949    old_archive_cmds_GCJ \
18950    old_archive_from_new_cmds_GCJ \
18951    predep_objects_GCJ \
18952    postdep_objects_GCJ \
18953    predeps_GCJ \
18954    postdeps_GCJ \
18955    compiler_lib_search_path_GCJ \
18956    compiler_lib_search_dirs_GCJ \
18957    archive_cmds_GCJ \
18958    archive_expsym_cmds_GCJ \
18959    postinstall_cmds_GCJ \
18960    postuninstall_cmds_GCJ \
18961    old_archive_from_expsyms_cmds_GCJ \
18962    allow_undefined_flag_GCJ \
18963    no_undefined_flag_GCJ \
18964    export_symbols_cmds_GCJ \
18965    hardcode_libdir_flag_spec_GCJ \
18966    hardcode_libdir_flag_spec_ld_GCJ \
18967    hardcode_libdir_separator_GCJ \
18968    hardcode_automatic_GCJ \
18969    module_cmds_GCJ \
18970    module_expsym_cmds_GCJ \
18971    lt_cv_prog_compiler_c_o_GCJ \
18972    fix_srcfile_path_GCJ \
18973    exclude_expsyms_GCJ \
18974    include_expsyms_GCJ; do
18975
18976    case $var in
18977    old_archive_cmds_GCJ | \
18978    old_archive_from_new_cmds_GCJ | \
18979    archive_cmds_GCJ | \
18980    archive_expsym_cmds_GCJ | \
18981    module_cmds_GCJ | \
18982    module_expsym_cmds_GCJ | \
18983    old_archive_from_expsyms_cmds_GCJ | \
18984    export_symbols_cmds_GCJ | \
18985    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18986    postinstall_cmds | postuninstall_cmds | \
18987    old_postinstall_cmds | old_postuninstall_cmds | \
18988    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18989      # Double-quote double-evaled strings.
18990      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18991      ;;
18992    *)
18993      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18994      ;;
18995    esac
18996  done
18997
18998  case $lt_echo in
18999  *'\$0 --fallback-echo"')
19000    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19001    ;;
19002  esac
19003
19004cfgfile="$ofile"
19005
19006  cat <<__EOF__ >> "$cfgfile"
19007# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19008
19009# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19010
19011# Shell to use when invoking shell scripts.
19012SHELL=$lt_SHELL
19013
19014# Whether or not to build shared libraries.
19015build_libtool_libs=$enable_shared
19016
19017# Whether or not to build static libraries.
19018build_old_libs=$enable_static
19019
19020# Whether or not to add -lc for building shared libraries.
19021build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19022
19023# Whether or not to disallow shared libs when runtime libs are static
19024allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19025
19026# Whether or not to optimize for fast installation.
19027fast_install=$enable_fast_install
19028
19029# The host system.
19030host_alias=$host_alias
19031host=$host
19032host_os=$host_os
19033
19034# The build system.
19035build_alias=$build_alias
19036build=$build
19037build_os=$build_os
19038
19039# An echo program that does not interpret backslashes.
19040echo=$lt_echo
19041
19042# The archiver.
19043AR=$lt_AR
19044AR_FLAGS=$lt_AR_FLAGS
19045
19046# A C compiler.
19047LTCC=$lt_LTCC
19048
19049# LTCC compiler flags.
19050LTCFLAGS=$lt_LTCFLAGS
19051
19052# A language-specific compiler.
19053CC=$lt_compiler_GCJ
19054
19055# Is the compiler the GNU C compiler?
19056with_gcc=$GCC_GCJ
19057
19058# An ERE matcher.
19059EGREP=$lt_EGREP
19060
19061# The linker used to build libraries.
19062LD=$lt_LD_GCJ
19063
19064# Whether we need hard or soft links.
19065LN_S=$lt_LN_S
19066
19067# A BSD-compatible nm program.
19068NM=$lt_NM
19069
19070# A symbol stripping program
19071STRIP=$lt_STRIP
19072
19073# Used to examine libraries when file_magic_cmd begins "file"
19074MAGIC_CMD=$MAGIC_CMD
19075
19076# Used on cygwin: DLL creation program.
19077DLLTOOL="$DLLTOOL"
19078
19079# Used on cygwin: object dumper.
19080OBJDUMP="$OBJDUMP"
19081
19082# Used on cygwin: assembler.
19083AS="$AS"
19084
19085# The name of the directory that contains temporary libtool files.
19086objdir=$objdir
19087
19088# How to create reloadable object files.
19089reload_flag=$lt_reload_flag
19090reload_cmds=$lt_reload_cmds
19091
19092# How to pass a linker flag through the compiler.
19093wl=$lt_lt_prog_compiler_wl_GCJ
19094
19095# Object file suffix (normally "o").
19096objext="$ac_objext"
19097
19098# Old archive suffix (normally "a").
19099libext="$libext"
19100
19101# Shared library suffix (normally ".so").
19102shrext_cmds='$shrext_cmds'
19103
19104# Executable file suffix (normally "").
19105exeext="$exeext"
19106
19107# Additional compiler flags for building library objects.
19108pic_flag=$lt_lt_prog_compiler_pic_GCJ
19109pic_mode=$pic_mode
19110
19111# What is the maximum length of a command?
19112max_cmd_len=$lt_cv_sys_max_cmd_len
19113
19114# Does compiler simultaneously support -c and -o options?
19115compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19116
19117# Must we lock files when doing compilation?
19118need_locks=$lt_need_locks
19119
19120# Do we need the lib prefix for modules?
19121need_lib_prefix=$need_lib_prefix
19122
19123# Do we need a version for libraries?
19124need_version=$need_version
19125
19126# Whether dlopen is supported.
19127dlopen_support=$enable_dlopen
19128
19129# Whether dlopen of programs is supported.
19130dlopen_self=$enable_dlopen_self
19131
19132# Whether dlopen of statically linked programs is supported.
19133dlopen_self_static=$enable_dlopen_self_static
19134
19135# Compiler flag to prevent dynamic linking.
19136link_static_flag=$lt_lt_prog_compiler_static_GCJ
19137
19138# Compiler flag to turn off builtin functions.
19139no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19140
19141# Compiler flag to allow reflexive dlopens.
19142export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19143
19144# Compiler flag to generate shared objects directly from archives.
19145whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19146
19147# Compiler flag to generate thread-safe objects.
19148thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19149
19150# Library versioning type.
19151version_type=$version_type
19152
19153# Format of library name prefix.
19154libname_spec=$lt_libname_spec
19155
19156# List of archive names.  First name is the real one, the rest are links.
19157# The last name is the one that the linker finds with -lNAME.
19158library_names_spec=$lt_library_names_spec
19159
19160# The coded name of the library, if different from the real name.
19161soname_spec=$lt_soname_spec
19162
19163# Commands used to build and install an old-style archive.
19164RANLIB=$lt_RANLIB
19165old_archive_cmds=$lt_old_archive_cmds_GCJ
19166old_postinstall_cmds=$lt_old_postinstall_cmds
19167old_postuninstall_cmds=$lt_old_postuninstall_cmds
19168
19169# Create an old-style archive from a shared archive.
19170old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19171
19172# Create a temporary old-style archive to link instead of a shared archive.
19173old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19174
19175# Commands used to build and install a shared archive.
19176archive_cmds=$lt_archive_cmds_GCJ
19177archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19178postinstall_cmds=$lt_postinstall_cmds
19179postuninstall_cmds=$lt_postuninstall_cmds
19180
19181# Commands used to build a loadable module (assumed same as above if empty)
19182module_cmds=$lt_module_cmds_GCJ
19183module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19184
19185# Commands to strip libraries.
19186old_striplib=$lt_old_striplib
19187striplib=$lt_striplib
19188
19189# Dependencies to place before the objects being linked to create a
19190# shared library.
19191predep_objects=$lt_predep_objects_GCJ
19192
19193# Dependencies to place after the objects being linked to create a
19194# shared library.
19195postdep_objects=$lt_postdep_objects_GCJ
19196
19197# Dependencies to place before the objects being linked to create a
19198# shared library.
19199predeps=$lt_predeps_GCJ
19200
19201# Dependencies to place after the objects being linked to create a
19202# shared library.
19203postdeps=$lt_postdeps_GCJ
19204
19205# The directories searched by this compiler when creating a shared
19206# library
19207compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19208
19209# The library search path used internally by the compiler when linking
19210# a shared library.
19211compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19212
19213# Method to check whether dependent libraries are shared objects.
19214deplibs_check_method=$lt_deplibs_check_method
19215
19216# Command to use when deplibs_check_method == file_magic.
19217file_magic_cmd=$lt_file_magic_cmd
19218
19219# Flag that allows shared libraries with undefined symbols to be built.
19220allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19221
19222# Flag that forces no undefined symbols.
19223no_undefined_flag=$lt_no_undefined_flag_GCJ
19224
19225# Commands used to finish a libtool library installation in a directory.
19226finish_cmds=$lt_finish_cmds
19227
19228# Same as above, but a single script fragment to be evaled but not shown.
19229finish_eval=$lt_finish_eval
19230
19231# Take the output of nm and produce a listing of raw symbols and C names.
19232global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19233
19234# Transform the output of nm in a proper C declaration
19235global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19236
19237# Transform the output of nm in a C name address pair
19238global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19239
19240# This is the shared library runtime path variable.
19241runpath_var=$runpath_var
19242
19243# This is the shared library path variable.
19244shlibpath_var=$shlibpath_var
19245
19246# Is shlibpath searched before the hard-coded library search path?
19247shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19248
19249# How to hardcode a shared library path into an executable.
19250hardcode_action=$hardcode_action_GCJ
19251
19252# Whether we should hardcode library paths into libraries.
19253hardcode_into_libs=$hardcode_into_libs
19254
19255# Flag to hardcode \$libdir into a binary during linking.
19256# This must work even if \$libdir does not exist.
19257hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19258
19259# If ld is used when linking, flag to hardcode \$libdir into
19260# a binary during linking. This must work even if \$libdir does
19261# not exist.
19262hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19263
19264# Whether we need a single -rpath flag with a separated argument.
19265hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19266
19267# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19268# resulting binary.
19269hardcode_direct=$hardcode_direct_GCJ
19270
19271# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19272# resulting binary.
19273hardcode_minus_L=$hardcode_minus_L_GCJ
19274
19275# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19276# the resulting binary.
19277hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19278
19279# Set to yes if building a shared library automatically hardcodes DIR into the library
19280# and all subsequent libraries and executables linked against it.
19281hardcode_automatic=$hardcode_automatic_GCJ
19282
19283# Variables whose values should be saved in libtool wrapper scripts and
19284# restored at relink time.
19285variables_saved_for_relink="$variables_saved_for_relink"
19286
19287# Whether libtool must link a program against all its dependency libraries.
19288link_all_deplibs=$link_all_deplibs_GCJ
19289
19290# Compile-time system search path for libraries
19291sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19292
19293# Run-time system search path for libraries
19294sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19295
19296# Fix the shell variable \$srcfile for the compiler.
19297fix_srcfile_path=$lt_fix_srcfile_path
19298
19299# Set to yes if exported symbols are required.
19300always_export_symbols=$always_export_symbols_GCJ
19301
19302# The commands to list exported symbols.
19303export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19304
19305# The commands to extract the exported symbol list from a shared archive.
19306extract_expsyms_cmds=$lt_extract_expsyms_cmds
19307
19308# Symbols that should not be listed in the preloaded symbols.
19309exclude_expsyms=$lt_exclude_expsyms_GCJ
19310
19311# Symbols that must always be exported.
19312include_expsyms=$lt_include_expsyms_GCJ
19313
19314# ### END LIBTOOL TAG CONFIG: $tagname
19315
19316__EOF__
19317
19318
19319else
19320  # If there is no Makefile yet, we rely on a make rule to execute
19321  # `config.status --recheck' to rerun these tests and create the
19322  # libtool script then.
19323  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19324  if test -f "$ltmain_in"; then
19325    test -f Makefile && make "$ltmain"
19326  fi
19327fi
19328
19329
19330ac_ext=c
19331ac_cpp='$CPP $CPPFLAGS'
19332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19334ac_compiler_gnu=$ac_cv_c_compiler_gnu
19335
19336CC="$lt_save_CC"
19337
19338	else
19339	  tagname=""
19340	fi
19341	;;
19342
19343      RC)
19344
19345
19346# Source file extension for RC test sources.
19347ac_ext=rc
19348
19349# Object file extension for compiled RC test sources.
19350objext=o
19351objext_RC=$objext
19352
19353# Code to be used in simple compile tests
19354lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19355
19356# Code to be used in simple link tests
19357lt_simple_link_test_code="$lt_simple_compile_test_code"
19358
19359# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19360
19361# If no C compiler was specified, use CC.
19362LTCC=${LTCC-"$CC"}
19363
19364# If no C compiler flags were specified, use CFLAGS.
19365LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19366
19367# Allow CC to be a program name with arguments.
19368compiler=$CC
19369
19370
19371# save warnings/boilerplate of simple test code
19372ac_outfile=conftest.$ac_objext
19373echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19374eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19375_lt_compiler_boilerplate=`cat conftest.err`
19376$rm conftest*
19377
19378ac_outfile=conftest.$ac_objext
19379echo "$lt_simple_link_test_code" >conftest.$ac_ext
19380eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19381_lt_linker_boilerplate=`cat conftest.err`
19382$rm -r conftest*
19383
19384
19385# Allow CC to be a program name with arguments.
19386lt_save_CC="$CC"
19387CC=${RC-"windres"}
19388compiler=$CC
19389compiler_RC=$CC
19390for cc_temp in $compiler""; do
19391  case $cc_temp in
19392    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19393    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19394    \-*) ;;
19395    *) break;;
19396  esac
19397done
19398cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19399
19400lt_cv_prog_compiler_c_o_RC=yes
19401
19402# The else clause should only fire when bootstrapping the
19403# libtool distribution, otherwise you forgot to ship ltmain.sh
19404# with your package, and you will get complaints that there are
19405# no rules to generate ltmain.sh.
19406if test -f "$ltmain"; then
19407  # See if we are running on zsh, and set the options which allow our commands through
19408  # without removal of \ escapes.
19409  if test -n "${ZSH_VERSION+set}" ; then
19410    setopt NO_GLOB_SUBST
19411  fi
19412  # Now quote all the things that may contain metacharacters while being
19413  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19414  # variables and quote the copies for generation of the libtool script.
19415  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19416    SED SHELL STRIP \
19417    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19418    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19419    deplibs_check_method reload_flag reload_cmds need_locks \
19420    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19421    lt_cv_sys_global_symbol_to_c_name_address \
19422    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19423    old_postinstall_cmds old_postuninstall_cmds \
19424    compiler_RC \
19425    CC_RC \
19426    LD_RC \
19427    lt_prog_compiler_wl_RC \
19428    lt_prog_compiler_pic_RC \
19429    lt_prog_compiler_static_RC \
19430    lt_prog_compiler_no_builtin_flag_RC \
19431    export_dynamic_flag_spec_RC \
19432    thread_safe_flag_spec_RC \
19433    whole_archive_flag_spec_RC \
19434    enable_shared_with_static_runtimes_RC \
19435    old_archive_cmds_RC \
19436    old_archive_from_new_cmds_RC \
19437    predep_objects_RC \
19438    postdep_objects_RC \
19439    predeps_RC \
19440    postdeps_RC \
19441    compiler_lib_search_path_RC \
19442    compiler_lib_search_dirs_RC \
19443    archive_cmds_RC \
19444    archive_expsym_cmds_RC \
19445    postinstall_cmds_RC \
19446    postuninstall_cmds_RC \
19447    old_archive_from_expsyms_cmds_RC \
19448    allow_undefined_flag_RC \
19449    no_undefined_flag_RC \
19450    export_symbols_cmds_RC \
19451    hardcode_libdir_flag_spec_RC \
19452    hardcode_libdir_flag_spec_ld_RC \
19453    hardcode_libdir_separator_RC \
19454    hardcode_automatic_RC \
19455    module_cmds_RC \
19456    module_expsym_cmds_RC \
19457    lt_cv_prog_compiler_c_o_RC \
19458    fix_srcfile_path_RC \
19459    exclude_expsyms_RC \
19460    include_expsyms_RC; do
19461
19462    case $var in
19463    old_archive_cmds_RC | \
19464    old_archive_from_new_cmds_RC | \
19465    archive_cmds_RC | \
19466    archive_expsym_cmds_RC | \
19467    module_cmds_RC | \
19468    module_expsym_cmds_RC | \
19469    old_archive_from_expsyms_cmds_RC | \
19470    export_symbols_cmds_RC | \
19471    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19472    postinstall_cmds | postuninstall_cmds | \
19473    old_postinstall_cmds | old_postuninstall_cmds | \
19474    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19475      # Double-quote double-evaled strings.
19476      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19477      ;;
19478    *)
19479      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19480      ;;
19481    esac
19482  done
19483
19484  case $lt_echo in
19485  *'\$0 --fallback-echo"')
19486    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19487    ;;
19488  esac
19489
19490cfgfile="$ofile"
19491
19492  cat <<__EOF__ >> "$cfgfile"
19493# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19494
19495# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19496
19497# Shell to use when invoking shell scripts.
19498SHELL=$lt_SHELL
19499
19500# Whether or not to build shared libraries.
19501build_libtool_libs=$enable_shared
19502
19503# Whether or not to build static libraries.
19504build_old_libs=$enable_static
19505
19506# Whether or not to add -lc for building shared libraries.
19507build_libtool_need_lc=$archive_cmds_need_lc_RC
19508
19509# Whether or not to disallow shared libs when runtime libs are static
19510allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19511
19512# Whether or not to optimize for fast installation.
19513fast_install=$enable_fast_install
19514
19515# The host system.
19516host_alias=$host_alias
19517host=$host
19518host_os=$host_os
19519
19520# The build system.
19521build_alias=$build_alias
19522build=$build
19523build_os=$build_os
19524
19525# An echo program that does not interpret backslashes.
19526echo=$lt_echo
19527
19528# The archiver.
19529AR=$lt_AR
19530AR_FLAGS=$lt_AR_FLAGS
19531
19532# A C compiler.
19533LTCC=$lt_LTCC
19534
19535# LTCC compiler flags.
19536LTCFLAGS=$lt_LTCFLAGS
19537
19538# A language-specific compiler.
19539CC=$lt_compiler_RC
19540
19541# Is the compiler the GNU C compiler?
19542with_gcc=$GCC_RC
19543
19544# An ERE matcher.
19545EGREP=$lt_EGREP
19546
19547# The linker used to build libraries.
19548LD=$lt_LD_RC
19549
19550# Whether we need hard or soft links.
19551LN_S=$lt_LN_S
19552
19553# A BSD-compatible nm program.
19554NM=$lt_NM
19555
19556# A symbol stripping program
19557STRIP=$lt_STRIP
19558
19559# Used to examine libraries when file_magic_cmd begins "file"
19560MAGIC_CMD=$MAGIC_CMD
19561
19562# Used on cygwin: DLL creation program.
19563DLLTOOL="$DLLTOOL"
19564
19565# Used on cygwin: object dumper.
19566OBJDUMP="$OBJDUMP"
19567
19568# Used on cygwin: assembler.
19569AS="$AS"
19570
19571# The name of the directory that contains temporary libtool files.
19572objdir=$objdir
19573
19574# How to create reloadable object files.
19575reload_flag=$lt_reload_flag
19576reload_cmds=$lt_reload_cmds
19577
19578# How to pass a linker flag through the compiler.
19579wl=$lt_lt_prog_compiler_wl_RC
19580
19581# Object file suffix (normally "o").
19582objext="$ac_objext"
19583
19584# Old archive suffix (normally "a").
19585libext="$libext"
19586
19587# Shared library suffix (normally ".so").
19588shrext_cmds='$shrext_cmds'
19589
19590# Executable file suffix (normally "").
19591exeext="$exeext"
19592
19593# Additional compiler flags for building library objects.
19594pic_flag=$lt_lt_prog_compiler_pic_RC
19595pic_mode=$pic_mode
19596
19597# What is the maximum length of a command?
19598max_cmd_len=$lt_cv_sys_max_cmd_len
19599
19600# Does compiler simultaneously support -c and -o options?
19601compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19602
19603# Must we lock files when doing compilation?
19604need_locks=$lt_need_locks
19605
19606# Do we need the lib prefix for modules?
19607need_lib_prefix=$need_lib_prefix
19608
19609# Do we need a version for libraries?
19610need_version=$need_version
19611
19612# Whether dlopen is supported.
19613dlopen_support=$enable_dlopen
19614
19615# Whether dlopen of programs is supported.
19616dlopen_self=$enable_dlopen_self
19617
19618# Whether dlopen of statically linked programs is supported.
19619dlopen_self_static=$enable_dlopen_self_static
19620
19621# Compiler flag to prevent dynamic linking.
19622link_static_flag=$lt_lt_prog_compiler_static_RC
19623
19624# Compiler flag to turn off builtin functions.
19625no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19626
19627# Compiler flag to allow reflexive dlopens.
19628export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19629
19630# Compiler flag to generate shared objects directly from archives.
19631whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19632
19633# Compiler flag to generate thread-safe objects.
19634thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19635
19636# Library versioning type.
19637version_type=$version_type
19638
19639# Format of library name prefix.
19640libname_spec=$lt_libname_spec
19641
19642# List of archive names.  First name is the real one, the rest are links.
19643# The last name is the one that the linker finds with -lNAME.
19644library_names_spec=$lt_library_names_spec
19645
19646# The coded name of the library, if different from the real name.
19647soname_spec=$lt_soname_spec
19648
19649# Commands used to build and install an old-style archive.
19650RANLIB=$lt_RANLIB
19651old_archive_cmds=$lt_old_archive_cmds_RC
19652old_postinstall_cmds=$lt_old_postinstall_cmds
19653old_postuninstall_cmds=$lt_old_postuninstall_cmds
19654
19655# Create an old-style archive from a shared archive.
19656old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19657
19658# Create a temporary old-style archive to link instead of a shared archive.
19659old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19660
19661# Commands used to build and install a shared archive.
19662archive_cmds=$lt_archive_cmds_RC
19663archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19664postinstall_cmds=$lt_postinstall_cmds
19665postuninstall_cmds=$lt_postuninstall_cmds
19666
19667# Commands used to build a loadable module (assumed same as above if empty)
19668module_cmds=$lt_module_cmds_RC
19669module_expsym_cmds=$lt_module_expsym_cmds_RC
19670
19671# Commands to strip libraries.
19672old_striplib=$lt_old_striplib
19673striplib=$lt_striplib
19674
19675# Dependencies to place before the objects being linked to create a
19676# shared library.
19677predep_objects=$lt_predep_objects_RC
19678
19679# Dependencies to place after the objects being linked to create a
19680# shared library.
19681postdep_objects=$lt_postdep_objects_RC
19682
19683# Dependencies to place before the objects being linked to create a
19684# shared library.
19685predeps=$lt_predeps_RC
19686
19687# Dependencies to place after the objects being linked to create a
19688# shared library.
19689postdeps=$lt_postdeps_RC
19690
19691# The directories searched by this compiler when creating a shared
19692# library
19693compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19694
19695# The library search path used internally by the compiler when linking
19696# a shared library.
19697compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19698
19699# Method to check whether dependent libraries are shared objects.
19700deplibs_check_method=$lt_deplibs_check_method
19701
19702# Command to use when deplibs_check_method == file_magic.
19703file_magic_cmd=$lt_file_magic_cmd
19704
19705# Flag that allows shared libraries with undefined symbols to be built.
19706allow_undefined_flag=$lt_allow_undefined_flag_RC
19707
19708# Flag that forces no undefined symbols.
19709no_undefined_flag=$lt_no_undefined_flag_RC
19710
19711# Commands used to finish a libtool library installation in a directory.
19712finish_cmds=$lt_finish_cmds
19713
19714# Same as above, but a single script fragment to be evaled but not shown.
19715finish_eval=$lt_finish_eval
19716
19717# Take the output of nm and produce a listing of raw symbols and C names.
19718global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19719
19720# Transform the output of nm in a proper C declaration
19721global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19722
19723# Transform the output of nm in a C name address pair
19724global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19725
19726# This is the shared library runtime path variable.
19727runpath_var=$runpath_var
19728
19729# This is the shared library path variable.
19730shlibpath_var=$shlibpath_var
19731
19732# Is shlibpath searched before the hard-coded library search path?
19733shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19734
19735# How to hardcode a shared library path into an executable.
19736hardcode_action=$hardcode_action_RC
19737
19738# Whether we should hardcode library paths into libraries.
19739hardcode_into_libs=$hardcode_into_libs
19740
19741# Flag to hardcode \$libdir into a binary during linking.
19742# This must work even if \$libdir does not exist.
19743hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19744
19745# If ld is used when linking, flag to hardcode \$libdir into
19746# a binary during linking. This must work even if \$libdir does
19747# not exist.
19748hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19749
19750# Whether we need a single -rpath flag with a separated argument.
19751hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19752
19753# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19754# resulting binary.
19755hardcode_direct=$hardcode_direct_RC
19756
19757# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19758# resulting binary.
19759hardcode_minus_L=$hardcode_minus_L_RC
19760
19761# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19762# the resulting binary.
19763hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19764
19765# Set to yes if building a shared library automatically hardcodes DIR into the library
19766# and all subsequent libraries and executables linked against it.
19767hardcode_automatic=$hardcode_automatic_RC
19768
19769# Variables whose values should be saved in libtool wrapper scripts and
19770# restored at relink time.
19771variables_saved_for_relink="$variables_saved_for_relink"
19772
19773# Whether libtool must link a program against all its dependency libraries.
19774link_all_deplibs=$link_all_deplibs_RC
19775
19776# Compile-time system search path for libraries
19777sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19778
19779# Run-time system search path for libraries
19780sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19781
19782# Fix the shell variable \$srcfile for the compiler.
19783fix_srcfile_path=$lt_fix_srcfile_path
19784
19785# Set to yes if exported symbols are required.
19786always_export_symbols=$always_export_symbols_RC
19787
19788# The commands to list exported symbols.
19789export_symbols_cmds=$lt_export_symbols_cmds_RC
19790
19791# The commands to extract the exported symbol list from a shared archive.
19792extract_expsyms_cmds=$lt_extract_expsyms_cmds
19793
19794# Symbols that should not be listed in the preloaded symbols.
19795exclude_expsyms=$lt_exclude_expsyms_RC
19796
19797# Symbols that must always be exported.
19798include_expsyms=$lt_include_expsyms_RC
19799
19800# ### END LIBTOOL TAG CONFIG: $tagname
19801
19802__EOF__
19803
19804
19805else
19806  # If there is no Makefile yet, we rely on a make rule to execute
19807  # `config.status --recheck' to rerun these tests and create the
19808  # libtool script then.
19809  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19810  if test -f "$ltmain_in"; then
19811    test -f Makefile && make "$ltmain"
19812  fi
19813fi
19814
19815
19816ac_ext=c
19817ac_cpp='$CPP $CPPFLAGS'
19818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19820ac_compiler_gnu=$ac_cv_c_compiler_gnu
19821
19822CC="$lt_save_CC"
19823
19824	;;
19825
19826      *)
19827	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19828echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19829   { (exit 1); exit 1; }; }
19830	;;
19831      esac
19832
19833      # Append the new tag name to the list of available tags.
19834      if test -n "$tagname" ; then
19835      available_tags="$available_tags $tagname"
19836    fi
19837    fi
19838  done
19839  IFS="$lt_save_ifs"
19840
19841  # Now substitute the updated list of available tags.
19842  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19843    mv "${ofile}T" "$ofile"
19844    chmod +x "$ofile"
19845  else
19846    rm -f "${ofile}T"
19847    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19848echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19849   { (exit 1); exit 1; }; }
19850  fi
19851fi
19852
19853
19854
19855# This can be used to rebuild libtool when needed
19856LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19857
19858# Always use our own libtool.
19859LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19860
19861# Prevent multiple expansion
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884# dolt, a replacement for libtool
19885# Josh Triplett <josh@freedesktop.org>
19886# Extract the first word of "bash", so it can be a program name with args.
19887set dummy bash; ac_word=$2
19888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19890if test "${ac_cv_path_DOLT_BASH+set}" = set; then
19891  echo $ECHO_N "(cached) $ECHO_C" >&6
19892else
19893  case $DOLT_BASH in
19894  [\\/]* | ?:[\\/]*)
19895  ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path.
19896  ;;
19897  *)
19898  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19899for as_dir in $PATH
19900do
19901  IFS=$as_save_IFS
19902  test -z "$as_dir" && as_dir=.
19903  for ac_exec_ext in '' $ac_executable_extensions; do
19904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19905    ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext"
19906    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19907    break 2
19908  fi
19909done
19910done
19911IFS=$as_save_IFS
19912
19913  ;;
19914esac
19915fi
19916DOLT_BASH=$ac_cv_path_DOLT_BASH
19917if test -n "$DOLT_BASH"; then
19918  { echo "$as_me:$LINENO: result: $DOLT_BASH" >&5
19919echo "${ECHO_T}$DOLT_BASH" >&6; }
19920else
19921  { echo "$as_me:$LINENO: result: no" >&5
19922echo "${ECHO_T}no" >&6; }
19923fi
19924
19925
19926{ echo "$as_me:$LINENO: checking if libtool sucks" >&5
19927echo $ECHO_N "checking if libtool sucks... $ECHO_C" >&6; }
19928{ echo "$as_me:$LINENO: result: yup, it does" >&5
19929echo "${ECHO_T}yup, it does" >&6; }
19930{ echo "$as_me:$LINENO: checking if dolt supports this host" >&5
19931echo $ECHO_N "checking if dolt supports this host... $ECHO_C" >&6; }
19932dolt_supported=yes
19933if test x$DOLT_BASH = x; then
19934    dolt_supported=no
19935fi
19936if test x$GCC != xyes; then
19937    dolt_supported=no
19938fi
19939case $host in
19940i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux*) ;;
19941amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*) ;;
19942*) dolt_supported=no ;;
19943esac
19944if test x$dolt_supported = xno ; then
19945    { echo "$as_me:$LINENO: result: no, falling back to libtool" >&5
19946echo "${ECHO_T}no, falling back to libtool" >&6; }
19947    LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)'
19948    LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)'
19949else
19950    { echo "$as_me:$LINENO: result: yes, replacing libtool" >&5
19951echo "${ECHO_T}yes, replacing libtool" >&6; }
19952
19953    cat <<__DOLTCOMPILE__EOF__ >doltcompile
19954#!$DOLT_BASH
19955__DOLTCOMPILE__EOF__
19956    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
19957args=("$@")
19958for ((arg=0; arg<${#args[@]}; arg++)) ; do
19959    if test x"${args[$arg]}" = x-o ; then
19960        objarg=$((arg+1))
19961        break
19962    fi
19963done
19964if test x$objarg = x ; then
19965    echo 'Error: no -o on compiler command line' 1>&2
19966    exit 1
19967fi
19968lo="${args[$objarg]}"
19969obj="${lo%.lo}"
19970if test x"$lo" = x"$obj" ; then
19971    echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2
19972    exit 1
19973fi
19974objbase="${obj##*/}"
19975__DOLTCOMPILE__EOF__
19976
19977    if test x$enable_shared = xyes; then
19978        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
19979libobjdir="${obj%$objbase}.libs"
19980if test ! -d "$libobjdir" ; then
19981    mkdir_out="$(mkdir "$libobjdir" 2>&1)"
19982    mkdir_ret=$?
19983    if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then
19984	echo "$mkdir_out" 1>&2
19985        exit $mkdir_ret
19986    fi
19987fi
19988pic_object="$libobjdir/$objbase.o"
19989args[$objarg]="$pic_object"
19990"${args[@]}" -fPIC -DPIC || exit $?
19991__DOLTCOMPILE__EOF__
19992    fi
19993
19994    if test x$enable_static = xyes; then
19995        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
19996non_pic_object="$obj.o"
19997args[$objarg]="$non_pic_object"
19998__DOLTCOMPILE__EOF__
19999        if test x$enable_shared = xyes; then
20000            cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20001"${args[@]}" >/dev/null 2>&1 || exit $?
20002__DOLTCOMPILE__EOF__
20003        else
20004            cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20005"${args[@]}" || exit $?
20006__DOLTCOMPILE__EOF__
20007        fi
20008    fi
20009
20010    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20011{
20012echo "# $lo - a libtool object file"
20013echo "# Generated by doltcompile, not libtool"
20014__DOLTCOMPILE__EOF__
20015
20016    if test x$enable_shared = xyes; then
20017        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20018echo "pic_object='$pic_object'"
20019__DOLTCOMPILE__EOF__
20020    else
20021        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20022echo pic_object=none
20023__DOLTCOMPILE__EOF__
20024    fi
20025
20026    if test x$enable_static = xyes; then
20027        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20028echo "non_pic_object='$non_pic_object'"
20029__DOLTCOMPILE__EOF__
20030    else
20031        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20032echo non_pic_object=none
20033__DOLTCOMPILE__EOF__
20034    fi
20035
20036    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20037} > "$lo"
20038__DOLTCOMPILE__EOF__
20039
20040    chmod +x doltcompile
20041    LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)'
20042    LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)'
20043fi
20044
20045
20046# end dolt
20047
20048ac_ext=c
20049ac_cpp='$CPP $CPPFLAGS'
20050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20052ac_compiler_gnu=$ac_cv_c_compiler_gnu
20053if test -n "$ac_tool_prefix"; then
20054  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20055set dummy ${ac_tool_prefix}gcc; ac_word=$2
20056{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20058if test "${ac_cv_prog_CC+set}" = set; then
20059  echo $ECHO_N "(cached) $ECHO_C" >&6
20060else
20061  if test -n "$CC"; then
20062  ac_cv_prog_CC="$CC" # Let the user override the test.
20063else
20064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20065for as_dir in $PATH
20066do
20067  IFS=$as_save_IFS
20068  test -z "$as_dir" && as_dir=.
20069  for ac_exec_ext in '' $ac_executable_extensions; do
20070  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20071    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20072    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20073    break 2
20074  fi
20075done
20076done
20077IFS=$as_save_IFS
20078
20079fi
20080fi
20081CC=$ac_cv_prog_CC
20082if test -n "$CC"; then
20083  { echo "$as_me:$LINENO: result: $CC" >&5
20084echo "${ECHO_T}$CC" >&6; }
20085else
20086  { echo "$as_me:$LINENO: result: no" >&5
20087echo "${ECHO_T}no" >&6; }
20088fi
20089
20090
20091fi
20092if test -z "$ac_cv_prog_CC"; then
20093  ac_ct_CC=$CC
20094  # Extract the first word of "gcc", so it can be a program name with args.
20095set dummy gcc; ac_word=$2
20096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20098if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20099  echo $ECHO_N "(cached) $ECHO_C" >&6
20100else
20101  if test -n "$ac_ct_CC"; then
20102  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20103else
20104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20105for as_dir in $PATH
20106do
20107  IFS=$as_save_IFS
20108  test -z "$as_dir" && as_dir=.
20109  for ac_exec_ext in '' $ac_executable_extensions; do
20110  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20111    ac_cv_prog_ac_ct_CC="gcc"
20112    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20113    break 2
20114  fi
20115done
20116done
20117IFS=$as_save_IFS
20118
20119fi
20120fi
20121ac_ct_CC=$ac_cv_prog_ac_ct_CC
20122if test -n "$ac_ct_CC"; then
20123  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20124echo "${ECHO_T}$ac_ct_CC" >&6; }
20125else
20126  { echo "$as_me:$LINENO: result: no" >&5
20127echo "${ECHO_T}no" >&6; }
20128fi
20129
20130  if test "x$ac_ct_CC" = x; then
20131    CC=""
20132  else
20133    case $cross_compiling:$ac_tool_warned in
20134yes:)
20135{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20136whose name does not start with the host triplet.  If you think this
20137configuration is useful to you, please write to autoconf@gnu.org." >&5
20138echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20139whose name does not start with the host triplet.  If you think this
20140configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20141ac_tool_warned=yes ;;
20142esac
20143    CC=$ac_ct_CC
20144  fi
20145else
20146  CC="$ac_cv_prog_CC"
20147fi
20148
20149if test -z "$CC"; then
20150          if test -n "$ac_tool_prefix"; then
20151    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20152set dummy ${ac_tool_prefix}cc; ac_word=$2
20153{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20155if test "${ac_cv_prog_CC+set}" = set; then
20156  echo $ECHO_N "(cached) $ECHO_C" >&6
20157else
20158  if test -n "$CC"; then
20159  ac_cv_prog_CC="$CC" # Let the user override the test.
20160else
20161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20162for as_dir in $PATH
20163do
20164  IFS=$as_save_IFS
20165  test -z "$as_dir" && as_dir=.
20166  for ac_exec_ext in '' $ac_executable_extensions; do
20167  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20168    ac_cv_prog_CC="${ac_tool_prefix}cc"
20169    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20170    break 2
20171  fi
20172done
20173done
20174IFS=$as_save_IFS
20175
20176fi
20177fi
20178CC=$ac_cv_prog_CC
20179if test -n "$CC"; then
20180  { echo "$as_me:$LINENO: result: $CC" >&5
20181echo "${ECHO_T}$CC" >&6; }
20182else
20183  { echo "$as_me:$LINENO: result: no" >&5
20184echo "${ECHO_T}no" >&6; }
20185fi
20186
20187
20188  fi
20189fi
20190if test -z "$CC"; then
20191  # Extract the first word of "cc", so it can be a program name with args.
20192set dummy cc; ac_word=$2
20193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20195if test "${ac_cv_prog_CC+set}" = set; then
20196  echo $ECHO_N "(cached) $ECHO_C" >&6
20197else
20198  if test -n "$CC"; then
20199  ac_cv_prog_CC="$CC" # Let the user override the test.
20200else
20201  ac_prog_rejected=no
20202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20203for as_dir in $PATH
20204do
20205  IFS=$as_save_IFS
20206  test -z "$as_dir" && as_dir=.
20207  for ac_exec_ext in '' $ac_executable_extensions; do
20208  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20209    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20210       ac_prog_rejected=yes
20211       continue
20212     fi
20213    ac_cv_prog_CC="cc"
20214    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20215    break 2
20216  fi
20217done
20218done
20219IFS=$as_save_IFS
20220
20221if test $ac_prog_rejected = yes; then
20222  # We found a bogon in the path, so make sure we never use it.
20223  set dummy $ac_cv_prog_CC
20224  shift
20225  if test $# != 0; then
20226    # We chose a different compiler from the bogus one.
20227    # However, it has the same basename, so the bogon will be chosen
20228    # first if we set CC to just the basename; use the full file name.
20229    shift
20230    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20231  fi
20232fi
20233fi
20234fi
20235CC=$ac_cv_prog_CC
20236if test -n "$CC"; then
20237  { echo "$as_me:$LINENO: result: $CC" >&5
20238echo "${ECHO_T}$CC" >&6; }
20239else
20240  { echo "$as_me:$LINENO: result: no" >&5
20241echo "${ECHO_T}no" >&6; }
20242fi
20243
20244
20245fi
20246if test -z "$CC"; then
20247  if test -n "$ac_tool_prefix"; then
20248  for ac_prog in cl.exe
20249  do
20250    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20251set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20252{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20254if test "${ac_cv_prog_CC+set}" = set; then
20255  echo $ECHO_N "(cached) $ECHO_C" >&6
20256else
20257  if test -n "$CC"; then
20258  ac_cv_prog_CC="$CC" # Let the user override the test.
20259else
20260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20261for as_dir in $PATH
20262do
20263  IFS=$as_save_IFS
20264  test -z "$as_dir" && as_dir=.
20265  for ac_exec_ext in '' $ac_executable_extensions; do
20266  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20267    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20268    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20269    break 2
20270  fi
20271done
20272done
20273IFS=$as_save_IFS
20274
20275fi
20276fi
20277CC=$ac_cv_prog_CC
20278if test -n "$CC"; then
20279  { echo "$as_me:$LINENO: result: $CC" >&5
20280echo "${ECHO_T}$CC" >&6; }
20281else
20282  { echo "$as_me:$LINENO: result: no" >&5
20283echo "${ECHO_T}no" >&6; }
20284fi
20285
20286
20287    test -n "$CC" && break
20288  done
20289fi
20290if test -z "$CC"; then
20291  ac_ct_CC=$CC
20292  for ac_prog in cl.exe
20293do
20294  # Extract the first word of "$ac_prog", so it can be a program name with args.
20295set dummy $ac_prog; ac_word=$2
20296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20298if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20299  echo $ECHO_N "(cached) $ECHO_C" >&6
20300else
20301  if test -n "$ac_ct_CC"; then
20302  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20303else
20304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20305for as_dir in $PATH
20306do
20307  IFS=$as_save_IFS
20308  test -z "$as_dir" && as_dir=.
20309  for ac_exec_ext in '' $ac_executable_extensions; do
20310  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20311    ac_cv_prog_ac_ct_CC="$ac_prog"
20312    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20313    break 2
20314  fi
20315done
20316done
20317IFS=$as_save_IFS
20318
20319fi
20320fi
20321ac_ct_CC=$ac_cv_prog_ac_ct_CC
20322if test -n "$ac_ct_CC"; then
20323  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20324echo "${ECHO_T}$ac_ct_CC" >&6; }
20325else
20326  { echo "$as_me:$LINENO: result: no" >&5
20327echo "${ECHO_T}no" >&6; }
20328fi
20329
20330
20331  test -n "$ac_ct_CC" && break
20332done
20333
20334  if test "x$ac_ct_CC" = x; then
20335    CC=""
20336  else
20337    case $cross_compiling:$ac_tool_warned in
20338yes:)
20339{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20340whose name does not start with the host triplet.  If you think this
20341configuration is useful to you, please write to autoconf@gnu.org." >&5
20342echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20343whose name does not start with the host triplet.  If you think this
20344configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20345ac_tool_warned=yes ;;
20346esac
20347    CC=$ac_ct_CC
20348  fi
20349fi
20350
20351fi
20352
20353
20354test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20355See \`config.log' for more details." >&5
20356echo "$as_me: error: no acceptable C compiler found in \$PATH
20357See \`config.log' for more details." >&2;}
20358   { (exit 1); exit 1; }; }
20359
20360# Provide some information about the compiler.
20361echo "$as_me:$LINENO: checking for C compiler version" >&5
20362ac_compiler=`set X $ac_compile; echo $2`
20363{ (ac_try="$ac_compiler --version >&5"
20364case "(($ac_try" in
20365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366  *) ac_try_echo=$ac_try;;
20367esac
20368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369  (eval "$ac_compiler --version >&5") 2>&5
20370  ac_status=$?
20371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372  (exit $ac_status); }
20373{ (ac_try="$ac_compiler -v >&5"
20374case "(($ac_try" in
20375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376  *) ac_try_echo=$ac_try;;
20377esac
20378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379  (eval "$ac_compiler -v >&5") 2>&5
20380  ac_status=$?
20381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382  (exit $ac_status); }
20383{ (ac_try="$ac_compiler -V >&5"
20384case "(($ac_try" in
20385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386  *) ac_try_echo=$ac_try;;
20387esac
20388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389  (eval "$ac_compiler -V >&5") 2>&5
20390  ac_status=$?
20391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392  (exit $ac_status); }
20393
20394{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20395echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20396if test "${ac_cv_c_compiler_gnu+set}" = set; then
20397  echo $ECHO_N "(cached) $ECHO_C" >&6
20398else
20399  cat >conftest.$ac_ext <<_ACEOF
20400/* confdefs.h.  */
20401_ACEOF
20402cat confdefs.h >>conftest.$ac_ext
20403cat >>conftest.$ac_ext <<_ACEOF
20404/* end confdefs.h.  */
20405
20406int
20407main ()
20408{
20409#ifndef __GNUC__
20410       choke me
20411#endif
20412
20413  ;
20414  return 0;
20415}
20416_ACEOF
20417rm -f conftest.$ac_objext
20418if { (ac_try="$ac_compile"
20419case "(($ac_try" in
20420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421  *) ac_try_echo=$ac_try;;
20422esac
20423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424  (eval "$ac_compile") 2>conftest.er1
20425  ac_status=$?
20426  grep -v '^ *+' conftest.er1 >conftest.err
20427  rm -f conftest.er1
20428  cat conftest.err >&5
20429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430  (exit $ac_status); } && {
20431	 test -z "$ac_c_werror_flag" ||
20432	 test ! -s conftest.err
20433       } && test -s conftest.$ac_objext; then
20434  ac_compiler_gnu=yes
20435else
20436  echo "$as_me: failed program was:" >&5
20437sed 's/^/| /' conftest.$ac_ext >&5
20438
20439	ac_compiler_gnu=no
20440fi
20441
20442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20443ac_cv_c_compiler_gnu=$ac_compiler_gnu
20444
20445fi
20446{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20447echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20448GCC=`test $ac_compiler_gnu = yes && echo yes`
20449ac_test_CFLAGS=${CFLAGS+set}
20450ac_save_CFLAGS=$CFLAGS
20451{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20452echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20453if test "${ac_cv_prog_cc_g+set}" = set; then
20454  echo $ECHO_N "(cached) $ECHO_C" >&6
20455else
20456  ac_save_c_werror_flag=$ac_c_werror_flag
20457   ac_c_werror_flag=yes
20458   ac_cv_prog_cc_g=no
20459   CFLAGS="-g"
20460   cat >conftest.$ac_ext <<_ACEOF
20461/* confdefs.h.  */
20462_ACEOF
20463cat confdefs.h >>conftest.$ac_ext
20464cat >>conftest.$ac_ext <<_ACEOF
20465/* end confdefs.h.  */
20466
20467int
20468main ()
20469{
20470
20471  ;
20472  return 0;
20473}
20474_ACEOF
20475rm -f conftest.$ac_objext
20476if { (ac_try="$ac_compile"
20477case "(($ac_try" in
20478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479  *) ac_try_echo=$ac_try;;
20480esac
20481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482  (eval "$ac_compile") 2>conftest.er1
20483  ac_status=$?
20484  grep -v '^ *+' conftest.er1 >conftest.err
20485  rm -f conftest.er1
20486  cat conftest.err >&5
20487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488  (exit $ac_status); } && {
20489	 test -z "$ac_c_werror_flag" ||
20490	 test ! -s conftest.err
20491       } && test -s conftest.$ac_objext; then
20492  ac_cv_prog_cc_g=yes
20493else
20494  echo "$as_me: failed program was:" >&5
20495sed 's/^/| /' conftest.$ac_ext >&5
20496
20497	CFLAGS=""
20498      cat >conftest.$ac_ext <<_ACEOF
20499/* confdefs.h.  */
20500_ACEOF
20501cat confdefs.h >>conftest.$ac_ext
20502cat >>conftest.$ac_ext <<_ACEOF
20503/* end confdefs.h.  */
20504
20505int
20506main ()
20507{
20508
20509  ;
20510  return 0;
20511}
20512_ACEOF
20513rm -f conftest.$ac_objext
20514if { (ac_try="$ac_compile"
20515case "(($ac_try" in
20516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517  *) ac_try_echo=$ac_try;;
20518esac
20519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520  (eval "$ac_compile") 2>conftest.er1
20521  ac_status=$?
20522  grep -v '^ *+' conftest.er1 >conftest.err
20523  rm -f conftest.er1
20524  cat conftest.err >&5
20525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526  (exit $ac_status); } && {
20527	 test -z "$ac_c_werror_flag" ||
20528	 test ! -s conftest.err
20529       } && test -s conftest.$ac_objext; then
20530  :
20531else
20532  echo "$as_me: failed program was:" >&5
20533sed 's/^/| /' conftest.$ac_ext >&5
20534
20535	ac_c_werror_flag=$ac_save_c_werror_flag
20536	 CFLAGS="-g"
20537	 cat >conftest.$ac_ext <<_ACEOF
20538/* confdefs.h.  */
20539_ACEOF
20540cat confdefs.h >>conftest.$ac_ext
20541cat >>conftest.$ac_ext <<_ACEOF
20542/* end confdefs.h.  */
20543
20544int
20545main ()
20546{
20547
20548  ;
20549  return 0;
20550}
20551_ACEOF
20552rm -f conftest.$ac_objext
20553if { (ac_try="$ac_compile"
20554case "(($ac_try" in
20555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556  *) ac_try_echo=$ac_try;;
20557esac
20558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559  (eval "$ac_compile") 2>conftest.er1
20560  ac_status=$?
20561  grep -v '^ *+' conftest.er1 >conftest.err
20562  rm -f conftest.er1
20563  cat conftest.err >&5
20564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565  (exit $ac_status); } && {
20566	 test -z "$ac_c_werror_flag" ||
20567	 test ! -s conftest.err
20568       } && test -s conftest.$ac_objext; then
20569  ac_cv_prog_cc_g=yes
20570else
20571  echo "$as_me: failed program was:" >&5
20572sed 's/^/| /' conftest.$ac_ext >&5
20573
20574
20575fi
20576
20577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20578fi
20579
20580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20581fi
20582
20583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20584   ac_c_werror_flag=$ac_save_c_werror_flag
20585fi
20586{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20587echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20588if test "$ac_test_CFLAGS" = set; then
20589  CFLAGS=$ac_save_CFLAGS
20590elif test $ac_cv_prog_cc_g = yes; then
20591  if test "$GCC" = yes; then
20592    CFLAGS="-g -O2"
20593  else
20594    CFLAGS="-g"
20595  fi
20596else
20597  if test "$GCC" = yes; then
20598    CFLAGS="-O2"
20599  else
20600    CFLAGS=
20601  fi
20602fi
20603{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20604echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20605if test "${ac_cv_prog_cc_c89+set}" = set; then
20606  echo $ECHO_N "(cached) $ECHO_C" >&6
20607else
20608  ac_cv_prog_cc_c89=no
20609ac_save_CC=$CC
20610cat >conftest.$ac_ext <<_ACEOF
20611/* confdefs.h.  */
20612_ACEOF
20613cat confdefs.h >>conftest.$ac_ext
20614cat >>conftest.$ac_ext <<_ACEOF
20615/* end confdefs.h.  */
20616#include <stdarg.h>
20617#include <stdio.h>
20618#include <sys/types.h>
20619#include <sys/stat.h>
20620/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20621struct buf { int x; };
20622FILE * (*rcsopen) (struct buf *, struct stat *, int);
20623static char *e (p, i)
20624     char **p;
20625     int i;
20626{
20627  return p[i];
20628}
20629static char *f (char * (*g) (char **, int), char **p, ...)
20630{
20631  char *s;
20632  va_list v;
20633  va_start (v,p);
20634  s = g (p, va_arg (v,int));
20635  va_end (v);
20636  return s;
20637}
20638
20639/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20640   function prototypes and stuff, but not '\xHH' hex character constants.
20641   These don't provoke an error unfortunately, instead are silently treated
20642   as 'x'.  The following induces an error, until -std is added to get
20643   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20644   array size at least.  It's necessary to write '\x00'==0 to get something
20645   that's true only with -std.  */
20646int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20647
20648/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20649   inside strings and character constants.  */
20650#define FOO(x) 'x'
20651int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20652
20653int test (int i, double x);
20654struct s1 {int (*f) (int a);};
20655struct s2 {int (*f) (double a);};
20656int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20657int argc;
20658char **argv;
20659int
20660main ()
20661{
20662return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20663  ;
20664  return 0;
20665}
20666_ACEOF
20667for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20668	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20669do
20670  CC="$ac_save_CC $ac_arg"
20671  rm -f conftest.$ac_objext
20672if { (ac_try="$ac_compile"
20673case "(($ac_try" in
20674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675  *) ac_try_echo=$ac_try;;
20676esac
20677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678  (eval "$ac_compile") 2>conftest.er1
20679  ac_status=$?
20680  grep -v '^ *+' conftest.er1 >conftest.err
20681  rm -f conftest.er1
20682  cat conftest.err >&5
20683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684  (exit $ac_status); } && {
20685	 test -z "$ac_c_werror_flag" ||
20686	 test ! -s conftest.err
20687       } && test -s conftest.$ac_objext; then
20688  ac_cv_prog_cc_c89=$ac_arg
20689else
20690  echo "$as_me: failed program was:" >&5
20691sed 's/^/| /' conftest.$ac_ext >&5
20692
20693
20694fi
20695
20696rm -f core conftest.err conftest.$ac_objext
20697  test "x$ac_cv_prog_cc_c89" != "xno" && break
20698done
20699rm -f conftest.$ac_ext
20700CC=$ac_save_CC
20701
20702fi
20703# AC_CACHE_VAL
20704case "x$ac_cv_prog_cc_c89" in
20705  x)
20706    { echo "$as_me:$LINENO: result: none needed" >&5
20707echo "${ECHO_T}none needed" >&6; } ;;
20708  xno)
20709    { echo "$as_me:$LINENO: result: unsupported" >&5
20710echo "${ECHO_T}unsupported" >&6; } ;;
20711  *)
20712    CC="$CC $ac_cv_prog_cc_c89"
20713    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20714echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20715esac
20716
20717
20718ac_ext=c
20719ac_cpp='$CPP $CPPFLAGS'
20720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20722ac_compiler_gnu=$ac_cv_c_compiler_gnu
20723
20724depcc="$CC"   am_compiler_list=
20725
20726{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20727echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20728if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20729  echo $ECHO_N "(cached) $ECHO_C" >&6
20730else
20731  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20732  # We make a subdir and do the tests there.  Otherwise we can end up
20733  # making bogus files that we don't know about and never remove.  For
20734  # instance it was reported that on HP-UX the gcc test will end up
20735  # making a dummy file named `D' -- because `-MD' means `put the output
20736  # in D'.
20737  mkdir conftest.dir
20738  # Copy depcomp to subdir because otherwise we won't find it if we're
20739  # using a relative directory.
20740  cp "$am_depcomp" conftest.dir
20741  cd conftest.dir
20742  # We will build objects and dependencies in a subdirectory because
20743  # it helps to detect inapplicable dependency modes.  For instance
20744  # both Tru64's cc and ICC support -MD to output dependencies as a
20745  # side effect of compilation, but ICC will put the dependencies in
20746  # the current directory while Tru64 will put them in the object
20747  # directory.
20748  mkdir sub
20749
20750  am_cv_CC_dependencies_compiler_type=none
20751  if test "$am_compiler_list" = ""; then
20752     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20753  fi
20754  for depmode in $am_compiler_list; do
20755    # Setup a source with many dependencies, because some compilers
20756    # like to wrap large dependency lists on column 80 (with \), and
20757    # we should not choose a depcomp mode which is confused by this.
20758    #
20759    # We need to recreate these files for each test, as the compiler may
20760    # overwrite some of them when testing with obscure command lines.
20761    # This happens at least with the AIX C compiler.
20762    : > sub/conftest.c
20763    for i in 1 2 3 4 5 6; do
20764      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20765      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20766      # Solaris 8's {/usr,}/bin/sh.
20767      touch sub/conftst$i.h
20768    done
20769    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20770
20771    case $depmode in
20772    nosideeffect)
20773      # after this tag, mechanisms are not by side-effect, so they'll
20774      # only be used when explicitly requested
20775      if test "x$enable_dependency_tracking" = xyes; then
20776	continue
20777      else
20778	break
20779      fi
20780      ;;
20781    none) break ;;
20782    esac
20783    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20784    # mode.  It turns out that the SunPro C++ compiler does not properly
20785    # handle `-M -o', and we need to detect this.
20786    if depmode=$depmode \
20787       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20788       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20789       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20790         >/dev/null 2>conftest.err &&
20791       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20792       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20793       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20794       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20795      # icc doesn't choke on unknown options, it will just issue warnings
20796      # or remarks (even with -Werror).  So we grep stderr for any message
20797      # that says an option was ignored or not supported.
20798      # When given -MP, icc 7.0 and 7.1 complain thusly:
20799      #   icc: Command line warning: ignoring option '-M'; no argument required
20800      # The diagnosis changed in icc 8.0:
20801      #   icc: Command line remark: option '-MP' not supported
20802      if (grep 'ignoring option' conftest.err ||
20803          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20804        am_cv_CC_dependencies_compiler_type=$depmode
20805        break
20806      fi
20807    fi
20808  done
20809
20810  cd ..
20811  rm -rf conftest.dir
20812else
20813  am_cv_CC_dependencies_compiler_type=none
20814fi
20815
20816fi
20817{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20818echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20819CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20820
20821 if
20822  test "x$enable_dependency_tracking" != xno \
20823  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20824  am__fastdepCC_TRUE=
20825  am__fastdepCC_FALSE='#'
20826else
20827  am__fastdepCC_TRUE='#'
20828  am__fastdepCC_FALSE=
20829fi
20830
20831
20832if test "x$CC" != xcc; then
20833  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
20834echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
20835else
20836  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
20837echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
20838fi
20839set dummy $CC; ac_cc=`echo $2 |
20840		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20841if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
20842  echo $ECHO_N "(cached) $ECHO_C" >&6
20843else
20844  cat >conftest.$ac_ext <<_ACEOF
20845/* confdefs.h.  */
20846_ACEOF
20847cat confdefs.h >>conftest.$ac_ext
20848cat >>conftest.$ac_ext <<_ACEOF
20849/* end confdefs.h.  */
20850
20851int
20852main ()
20853{
20854
20855  ;
20856  return 0;
20857}
20858_ACEOF
20859# Make sure it works both with $CC and with simple cc.
20860# We do the test twice because some compilers refuse to overwrite an
20861# existing .o file with -o, though they will create one.
20862ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20863rm -f conftest2.*
20864if { (case "(($ac_try" in
20865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866  *) ac_try_echo=$ac_try;;
20867esac
20868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20869  (eval "$ac_try") 2>&5
20870  ac_status=$?
20871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872  (exit $ac_status); } &&
20873   test -f conftest2.$ac_objext && { (case "(($ac_try" in
20874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875  *) ac_try_echo=$ac_try;;
20876esac
20877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878  (eval "$ac_try") 2>&5
20879  ac_status=$?
20880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881  (exit $ac_status); };
20882then
20883  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20884  if test "x$CC" != xcc; then
20885    # Test first that cc exists at all.
20886    if { ac_try='cc -c conftest.$ac_ext >&5'
20887  { (case "(($ac_try" in
20888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889  *) ac_try_echo=$ac_try;;
20890esac
20891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892  (eval "$ac_try") 2>&5
20893  ac_status=$?
20894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895  (exit $ac_status); }; }; then
20896      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20897      rm -f conftest2.*
20898      if { (case "(($ac_try" in
20899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900  *) ac_try_echo=$ac_try;;
20901esac
20902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903  (eval "$ac_try") 2>&5
20904  ac_status=$?
20905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906  (exit $ac_status); } &&
20907	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
20908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909  *) ac_try_echo=$ac_try;;
20910esac
20911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912  (eval "$ac_try") 2>&5
20913  ac_status=$?
20914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915  (exit $ac_status); };
20916      then
20917	# cc works too.
20918	:
20919      else
20920	# cc exists but doesn't like -o.
20921	eval ac_cv_prog_cc_${ac_cc}_c_o=no
20922      fi
20923    fi
20924  fi
20925else
20926  eval ac_cv_prog_cc_${ac_cc}_c_o=no
20927fi
20928rm -f core conftest*
20929
20930fi
20931if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
20932  { echo "$as_me:$LINENO: result: yes" >&5
20933echo "${ECHO_T}yes" >&6; }
20934else
20935  { echo "$as_me:$LINENO: result: no" >&5
20936echo "${ECHO_T}no" >&6; }
20937
20938cat >>confdefs.h <<\_ACEOF
20939#define NO_MINUS_C_MINUS_O 1
20940_ACEOF
20941
20942fi
20943
20944# FIXME: we rely on the cache variable name because
20945# there is no other way.
20946set dummy $CC
20947ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20948if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
20949   # Losing compiler, so override with the script.
20950   # FIXME: It is wrong to rewrite CC.
20951   # But if we don't then we get into trouble of one sort or another.
20952   # A longer-term fix would be to have automake use am__CC in this case,
20953   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20954   CC="$am_aux_dir/compile $CC"
20955fi
20956
20957
20958
20959# Extract the first word of "intel-gen4asm", so it can be a program name with args.
20960set dummy intel-gen4asm; ac_word=$2
20961{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20963if test "${ac_cv_prog_gen4asm+set}" = set; then
20964  echo $ECHO_N "(cached) $ECHO_C" >&6
20965else
20966  if test -n "$gen4asm"; then
20967  ac_cv_prog_gen4asm="$gen4asm" # Let the user override the test.
20968else
20969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20970for as_dir in $PATH
20971do
20972  IFS=$as_save_IFS
20973  test -z "$as_dir" && as_dir=.
20974  for ac_exec_ext in '' $ac_executable_extensions; do
20975  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20976    ac_cv_prog_gen4asm="yes"
20977    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20978    break 2
20979  fi
20980done
20981done
20982IFS=$as_save_IFS
20983
20984  test -z "$ac_cv_prog_gen4asm" && ac_cv_prog_gen4asm="no"
20985fi
20986fi
20987gen4asm=$ac_cv_prog_gen4asm
20988if test -n "$gen4asm"; then
20989  { echo "$as_me:$LINENO: result: $gen4asm" >&5
20990echo "${ECHO_T}$gen4asm" >&6; }
20991else
20992  { echo "$as_me:$LINENO: result: no" >&5
20993echo "${ECHO_T}no" >&6; }
20994fi
20995
20996
20997 if test x$gen4asm = xyes; then
20998  HAVE_GEN4ASM_TRUE=
20999  HAVE_GEN4ASM_FALSE='#'
21000else
21001  HAVE_GEN4ASM_TRUE='#'
21002  HAVE_GEN4ASM_FALSE=
21003fi
21004
21005
21006
21007for ac_header in sys/mman.h
21008do
21009as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21011  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21014  echo $ECHO_N "(cached) $ECHO_C" >&6
21015fi
21016ac_res=`eval echo '${'$as_ac_Header'}'`
21017	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21018echo "${ECHO_T}$ac_res" >&6; }
21019else
21020  # Is the header compilable?
21021{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21022echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21023cat >conftest.$ac_ext <<_ACEOF
21024/* confdefs.h.  */
21025_ACEOF
21026cat confdefs.h >>conftest.$ac_ext
21027cat >>conftest.$ac_ext <<_ACEOF
21028/* end confdefs.h.  */
21029$ac_includes_default
21030#include <$ac_header>
21031_ACEOF
21032rm -f conftest.$ac_objext
21033if { (ac_try="$ac_compile"
21034case "(($ac_try" in
21035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036  *) ac_try_echo=$ac_try;;
21037esac
21038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039  (eval "$ac_compile") 2>conftest.er1
21040  ac_status=$?
21041  grep -v '^ *+' conftest.er1 >conftest.err
21042  rm -f conftest.er1
21043  cat conftest.err >&5
21044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045  (exit $ac_status); } && {
21046	 test -z "$ac_c_werror_flag" ||
21047	 test ! -s conftest.err
21048       } && test -s conftest.$ac_objext; then
21049  ac_header_compiler=yes
21050else
21051  echo "$as_me: failed program was:" >&5
21052sed 's/^/| /' conftest.$ac_ext >&5
21053
21054	ac_header_compiler=no
21055fi
21056
21057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21058{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21059echo "${ECHO_T}$ac_header_compiler" >&6; }
21060
21061# Is the header present?
21062{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21063echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21064cat >conftest.$ac_ext <<_ACEOF
21065/* confdefs.h.  */
21066_ACEOF
21067cat confdefs.h >>conftest.$ac_ext
21068cat >>conftest.$ac_ext <<_ACEOF
21069/* end confdefs.h.  */
21070#include <$ac_header>
21071_ACEOF
21072if { (ac_try="$ac_cpp conftest.$ac_ext"
21073case "(($ac_try" in
21074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21075  *) ac_try_echo=$ac_try;;
21076esac
21077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21078  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21079  ac_status=$?
21080  grep -v '^ *+' conftest.er1 >conftest.err
21081  rm -f conftest.er1
21082  cat conftest.err >&5
21083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084  (exit $ac_status); } >/dev/null && {
21085	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21086	 test ! -s conftest.err
21087       }; then
21088  ac_header_preproc=yes
21089else
21090  echo "$as_me: failed program was:" >&5
21091sed 's/^/| /' conftest.$ac_ext >&5
21092
21093  ac_header_preproc=no
21094fi
21095
21096rm -f conftest.err conftest.$ac_ext
21097{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21098echo "${ECHO_T}$ac_header_preproc" >&6; }
21099
21100# So?  What about this header?
21101case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21102  yes:no: )
21103    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21104echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21105    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21106echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21107    ac_header_preproc=yes
21108    ;;
21109  no:yes:* )
21110    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21111echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21112    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21113echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21114    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21115echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21116    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21117echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21118    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21119echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21120    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21121echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21122    ( cat <<\_ASBOX
21123## ---------------------------------------------------------------------- ##
21124## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
21125## ---------------------------------------------------------------------- ##
21126_ASBOX
21127     ) | sed "s/^/$as_me: WARNING:     /" >&2
21128    ;;
21129esac
21130{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21133  echo $ECHO_N "(cached) $ECHO_C" >&6
21134else
21135  eval "$as_ac_Header=\$ac_header_preproc"
21136fi
21137ac_res=`eval echo '${'$as_ac_Header'}'`
21138	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21139echo "${ECHO_T}$ac_res" >&6; }
21140
21141fi
21142if test `eval echo '${'$as_ac_Header'}'` = yes; then
21143  cat >>confdefs.h <<_ACEOF
21144#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21145_ACEOF
21146
21147fi
21148
21149done
21150
21151
21152for ac_func in mprotect
21153do
21154as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21155{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21156echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21157if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21158  echo $ECHO_N "(cached) $ECHO_C" >&6
21159else
21160  cat >conftest.$ac_ext <<_ACEOF
21161/* confdefs.h.  */
21162_ACEOF
21163cat confdefs.h >>conftest.$ac_ext
21164cat >>conftest.$ac_ext <<_ACEOF
21165/* end confdefs.h.  */
21166/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21167   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21168#define $ac_func innocuous_$ac_func
21169
21170/* System header to define __stub macros and hopefully few prototypes,
21171    which can conflict with char $ac_func (); below.
21172    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21173    <limits.h> exists even on freestanding compilers.  */
21174
21175#ifdef __STDC__
21176# include <limits.h>
21177#else
21178# include <assert.h>
21179#endif
21180
21181#undef $ac_func
21182
21183/* Override any GCC internal prototype to avoid an error.
21184   Use char because int might match the return type of a GCC
21185   builtin and then its argument prototype would still apply.  */
21186#ifdef __cplusplus
21187extern "C"
21188#endif
21189char $ac_func ();
21190/* The GNU C library defines this for functions which it implements
21191    to always fail with ENOSYS.  Some functions are actually named
21192    something starting with __ and the normal name is an alias.  */
21193#if defined __stub_$ac_func || defined __stub___$ac_func
21194choke me
21195#endif
21196
21197int
21198main ()
21199{
21200return $ac_func ();
21201  ;
21202  return 0;
21203}
21204_ACEOF
21205rm -f conftest.$ac_objext conftest$ac_exeext
21206if { (ac_try="$ac_link"
21207case "(($ac_try" in
21208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21209  *) ac_try_echo=$ac_try;;
21210esac
21211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21212  (eval "$ac_link") 2>conftest.er1
21213  ac_status=$?
21214  grep -v '^ *+' conftest.er1 >conftest.err
21215  rm -f conftest.er1
21216  cat conftest.err >&5
21217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218  (exit $ac_status); } && {
21219	 test -z "$ac_c_werror_flag" ||
21220	 test ! -s conftest.err
21221       } && test -s conftest$ac_exeext &&
21222       $as_test_x conftest$ac_exeext; then
21223  eval "$as_ac_var=yes"
21224else
21225  echo "$as_me: failed program was:" >&5
21226sed 's/^/| /' conftest.$ac_ext >&5
21227
21228	eval "$as_ac_var=no"
21229fi
21230
21231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21232      conftest$ac_exeext conftest.$ac_ext
21233fi
21234ac_res=`eval echo '${'$as_ac_var'}'`
21235	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21236echo "${ECHO_T}$ac_res" >&6; }
21237if test `eval echo '${'$as_ac_var'}'` = yes; then
21238  cat >>confdefs.h <<_ACEOF
21239#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21240_ACEOF
21241
21242fi
21243done
21244
21245
21246
21247
21248
21249
21250# Check whether --with-xorg-module-dir was given.
21251if test "${with_xorg_module_dir+set}" = set; then
21252  withval=$with_xorg_module_dir; moduledir="$withval"
21253else
21254  moduledir="$libdir/xorg/modules"
21255fi
21256
21257
21258# Check whether --enable-dri was given.
21259if test "${enable_dri+set}" = set; then
21260  enableval=$enable_dri; DRI="$enableval"
21261else
21262  DRI=auto
21263fi
21264
21265
21266# Check whether --enable-video-debug was given.
21267if test "${enable_video_debug+set}" = set; then
21268  enableval=$enable_video_debug; VIDEO_DEBUG="$enableval"
21269else
21270  VIDEO_DEBUG=no
21271fi
21272
21273
21274
21275# Check whether --with-xserver-source was given.
21276if test "${with_xserver_source+set}" = set; then
21277  withval=$with_xserver_source;  XSERVER_SOURCE="$withval"
21278else
21279   XSERVER_SOURCE=""
21280fi
21281
21282
21283# Check whether --enable-xvmc was given.
21284if test "${enable_xvmc+set}" = set; then
21285  enableval=$enable_xvmc; XVMC="$enableval"
21286else
21287  XVMC=auto
21288fi
21289
21290
21291# Checks for extensions
21292
21293	SAVE_CFLAGS="$CFLAGS"
21294	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21295	cat >conftest.$ac_ext <<_ACEOF
21296/* confdefs.h.  */
21297_ACEOF
21298cat confdefs.h >>conftest.$ac_ext
21299cat >>conftest.$ac_ext <<_ACEOF
21300/* end confdefs.h.  */
21301
21302#include "xorg-server.h"
21303#if !defined XINERAMA
21304#error XINERAMA not defined
21305#endif
21306
21307int
21308main ()
21309{
21310
21311  ;
21312  return 0;
21313}
21314_ACEOF
21315rm -f conftest.$ac_objext
21316if { (ac_try="$ac_compile"
21317case "(($ac_try" in
21318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21319  *) ac_try_echo=$ac_try;;
21320esac
21321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21322  (eval "$ac_compile") 2>conftest.er1
21323  ac_status=$?
21324  grep -v '^ *+' conftest.er1 >conftest.err
21325  rm -f conftest.er1
21326  cat conftest.err >&5
21327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328  (exit $ac_status); } && {
21329	 test -z "$ac_c_werror_flag" ||
21330	 test ! -s conftest.err
21331       } && test -s conftest.$ac_objext; then
21332  _EXT_CHECK=yes
21333else
21334  echo "$as_me: failed program was:" >&5
21335sed 's/^/| /' conftest.$ac_ext >&5
21336
21337	_EXT_CHECK=no
21338fi
21339
21340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21341	CFLAGS="$SAVE_CFLAGS"
21342	{ echo "$as_me:$LINENO: checking if XINERAMA is defined" >&5
21343echo $ECHO_N "checking if XINERAMA is defined... $ECHO_C" >&6; }
21344	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21345echo "${ECHO_T}$_EXT_CHECK" >&6; }
21346	if test "$_EXT_CHECK" != no; then
21347		REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
21348	fi
21349
21350
21351	SAVE_CFLAGS="$CFLAGS"
21352	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21353	cat >conftest.$ac_ext <<_ACEOF
21354/* confdefs.h.  */
21355_ACEOF
21356cat confdefs.h >>conftest.$ac_ext
21357cat >>conftest.$ac_ext <<_ACEOF
21358/* end confdefs.h.  */
21359
21360#include "xorg-server.h"
21361#if !defined RANDR
21362#error RANDR not defined
21363#endif
21364
21365int
21366main ()
21367{
21368
21369  ;
21370  return 0;
21371}
21372_ACEOF
21373rm -f conftest.$ac_objext
21374if { (ac_try="$ac_compile"
21375case "(($ac_try" in
21376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377  *) ac_try_echo=$ac_try;;
21378esac
21379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380  (eval "$ac_compile") 2>conftest.er1
21381  ac_status=$?
21382  grep -v '^ *+' conftest.er1 >conftest.err
21383  rm -f conftest.er1
21384  cat conftest.err >&5
21385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386  (exit $ac_status); } && {
21387	 test -z "$ac_c_werror_flag" ||
21388	 test ! -s conftest.err
21389       } && test -s conftest.$ac_objext; then
21390  _EXT_CHECK=yes
21391else
21392  echo "$as_me: failed program was:" >&5
21393sed 's/^/| /' conftest.$ac_ext >&5
21394
21395	_EXT_CHECK=no
21396fi
21397
21398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21399	CFLAGS="$SAVE_CFLAGS"
21400	{ echo "$as_me:$LINENO: checking if RANDR is defined" >&5
21401echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; }
21402	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21403echo "${ECHO_T}$_EXT_CHECK" >&6; }
21404	if test "$_EXT_CHECK" != no; then
21405		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
21406	fi
21407
21408
21409	SAVE_CFLAGS="$CFLAGS"
21410	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21411	cat >conftest.$ac_ext <<_ACEOF
21412/* confdefs.h.  */
21413_ACEOF
21414cat confdefs.h >>conftest.$ac_ext
21415cat >>conftest.$ac_ext <<_ACEOF
21416/* end confdefs.h.  */
21417
21418#include "xorg-server.h"
21419#if !defined RENDER
21420#error RENDER not defined
21421#endif
21422
21423int
21424main ()
21425{
21426
21427  ;
21428  return 0;
21429}
21430_ACEOF
21431rm -f conftest.$ac_objext
21432if { (ac_try="$ac_compile"
21433case "(($ac_try" in
21434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435  *) ac_try_echo=$ac_try;;
21436esac
21437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438  (eval "$ac_compile") 2>conftest.er1
21439  ac_status=$?
21440  grep -v '^ *+' conftest.er1 >conftest.err
21441  rm -f conftest.er1
21442  cat conftest.err >&5
21443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444  (exit $ac_status); } && {
21445	 test -z "$ac_c_werror_flag" ||
21446	 test ! -s conftest.err
21447       } && test -s conftest.$ac_objext; then
21448  _EXT_CHECK=yes
21449else
21450  echo "$as_me: failed program was:" >&5
21451sed 's/^/| /' conftest.$ac_ext >&5
21452
21453	_EXT_CHECK=no
21454fi
21455
21456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21457	CFLAGS="$SAVE_CFLAGS"
21458	{ echo "$as_me:$LINENO: checking if RENDER is defined" >&5
21459echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6; }
21460	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21461echo "${ECHO_T}$_EXT_CHECK" >&6; }
21462	if test "$_EXT_CHECK" != no; then
21463		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
21464	fi
21465
21466
21467	SAVE_CFLAGS="$CFLAGS"
21468	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21469	cat >conftest.$ac_ext <<_ACEOF
21470/* confdefs.h.  */
21471_ACEOF
21472cat confdefs.h >>conftest.$ac_ext
21473cat >>conftest.$ac_ext <<_ACEOF
21474/* end confdefs.h.  */
21475
21476#include "xorg-server.h"
21477#if !defined XF86DRI
21478#error XF86DRI not defined
21479#endif
21480
21481int
21482main ()
21483{
21484
21485  ;
21486  return 0;
21487}
21488_ACEOF
21489rm -f conftest.$ac_objext
21490if { (ac_try="$ac_compile"
21491case "(($ac_try" in
21492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21493  *) ac_try_echo=$ac_try;;
21494esac
21495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21496  (eval "$ac_compile") 2>conftest.er1
21497  ac_status=$?
21498  grep -v '^ *+' conftest.er1 >conftest.err
21499  rm -f conftest.er1
21500  cat conftest.err >&5
21501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502  (exit $ac_status); } && {
21503	 test -z "$ac_c_werror_flag" ||
21504	 test ! -s conftest.err
21505       } && test -s conftest.$ac_objext; then
21506  _EXT_CHECK=yes
21507else
21508  echo "$as_me: failed program was:" >&5
21509sed 's/^/| /' conftest.$ac_ext >&5
21510
21511	_EXT_CHECK=no
21512fi
21513
21514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21515	CFLAGS="$SAVE_CFLAGS"
21516	{ echo "$as_me:$LINENO: checking if XF86DRI is defined" >&5
21517echo $ECHO_N "checking if XF86DRI is defined... $ECHO_C" >&6; }
21518	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21519echo "${ECHO_T}$_EXT_CHECK" >&6; }
21520	if test "$_EXT_CHECK" != no; then
21521		REQUIRED_MODULES="$REQUIRED_MODULES xextproto x11"
21522	fi
21523
21524
21525	SAVE_CFLAGS="$CFLAGS"
21526	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21527	cat >conftest.$ac_ext <<_ACEOF
21528/* confdefs.h.  */
21529_ACEOF
21530cat confdefs.h >>conftest.$ac_ext
21531cat >>conftest.$ac_ext <<_ACEOF
21532/* end confdefs.h.  */
21533
21534#include "xorg-server.h"
21535#if !defined DPMSExtension
21536#error DPMSExtension not defined
21537#endif
21538
21539int
21540main ()
21541{
21542
21543  ;
21544  return 0;
21545}
21546_ACEOF
21547rm -f conftest.$ac_objext
21548if { (ac_try="$ac_compile"
21549case "(($ac_try" in
21550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551  *) ac_try_echo=$ac_try;;
21552esac
21553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554  (eval "$ac_compile") 2>conftest.er1
21555  ac_status=$?
21556  grep -v '^ *+' conftest.er1 >conftest.err
21557  rm -f conftest.er1
21558  cat conftest.err >&5
21559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560  (exit $ac_status); } && {
21561	 test -z "$ac_c_werror_flag" ||
21562	 test ! -s conftest.err
21563       } && test -s conftest.$ac_objext; then
21564  _EXT_CHECK=yes
21565else
21566  echo "$as_me: failed program was:" >&5
21567sed 's/^/| /' conftest.$ac_ext >&5
21568
21569	_EXT_CHECK=no
21570fi
21571
21572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21573	CFLAGS="$SAVE_CFLAGS"
21574	{ echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
21575echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6; }
21576	{ echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21577echo "${ECHO_T}$_EXT_CHECK" >&6; }
21578	if test "$_EXT_CHECK" != no; then
21579		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
21580	fi
21581
21582
21583# Checks for pkg-config packages
21584
21585
21586if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21587	if test -n "$ac_tool_prefix"; then
21588  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21589set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21592if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21593  echo $ECHO_N "(cached) $ECHO_C" >&6
21594else
21595  case $PKG_CONFIG in
21596  [\\/]* | ?:[\\/]*)
21597  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21598  ;;
21599  *)
21600  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21601for as_dir in $PATH
21602do
21603  IFS=$as_save_IFS
21604  test -z "$as_dir" && as_dir=.
21605  for ac_exec_ext in '' $ac_executable_extensions; do
21606  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21607    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21608    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21609    break 2
21610  fi
21611done
21612done
21613IFS=$as_save_IFS
21614
21615  ;;
21616esac
21617fi
21618PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21619if test -n "$PKG_CONFIG"; then
21620  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21621echo "${ECHO_T}$PKG_CONFIG" >&6; }
21622else
21623  { echo "$as_me:$LINENO: result: no" >&5
21624echo "${ECHO_T}no" >&6; }
21625fi
21626
21627
21628fi
21629if test -z "$ac_cv_path_PKG_CONFIG"; then
21630  ac_pt_PKG_CONFIG=$PKG_CONFIG
21631  # Extract the first word of "pkg-config", so it can be a program name with args.
21632set dummy pkg-config; ac_word=$2
21633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21635if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21636  echo $ECHO_N "(cached) $ECHO_C" >&6
21637else
21638  case $ac_pt_PKG_CONFIG in
21639  [\\/]* | ?:[\\/]*)
21640  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21641  ;;
21642  *)
21643  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21644for as_dir in $PATH
21645do
21646  IFS=$as_save_IFS
21647  test -z "$as_dir" && as_dir=.
21648  for ac_exec_ext in '' $ac_executable_extensions; do
21649  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21650    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21651    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21652    break 2
21653  fi
21654done
21655done
21656IFS=$as_save_IFS
21657
21658  ;;
21659esac
21660fi
21661ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21662if test -n "$ac_pt_PKG_CONFIG"; then
21663  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21664echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21665else
21666  { echo "$as_me:$LINENO: result: no" >&5
21667echo "${ECHO_T}no" >&6; }
21668fi
21669
21670  if test "x$ac_pt_PKG_CONFIG" = x; then
21671    PKG_CONFIG=""
21672  else
21673    case $cross_compiling:$ac_tool_warned in
21674yes:)
21675{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21676whose name does not start with the host triplet.  If you think this
21677configuration is useful to you, please write to autoconf@gnu.org." >&5
21678echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21679whose name does not start with the host triplet.  If you think this
21680configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21681ac_tool_warned=yes ;;
21682esac
21683    PKG_CONFIG=$ac_pt_PKG_CONFIG
21684  fi
21685else
21686  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21687fi
21688
21689fi
21690if test -n "$PKG_CONFIG"; then
21691	_pkg_min_version=0.9.0
21692	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21693echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21694	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21695		{ echo "$as_me:$LINENO: result: yes" >&5
21696echo "${ECHO_T}yes" >&6; }
21697	else
21698		{ echo "$as_me:$LINENO: result: no" >&5
21699echo "${ECHO_T}no" >&6; }
21700		PKG_CONFIG=""
21701	fi
21702
21703fi
21704
21705pkg_failed=no
21706{ echo "$as_me:$LINENO: checking for XORG" >&5
21707echo $ECHO_N "checking for XORG... $ECHO_C" >&6; }
21708
21709if test -n "$PKG_CONFIG"; then
21710    if test -n "$XORG_CFLAGS"; then
21711        pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21712    else
21713        if test -n "$PKG_CONFIG" && \
21714    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\"") >&5
21715  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
21716  ac_status=$?
21717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718  (exit $ac_status); }; then
21719  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21720else
21721  pkg_failed=yes
21722fi
21723    fi
21724else
21725	pkg_failed=untried
21726fi
21727if test -n "$PKG_CONFIG"; then
21728    if test -n "$XORG_LIBS"; then
21729        pkg_cv_XORG_LIBS="$XORG_LIBS"
21730    else
21731        if test -n "$PKG_CONFIG" && \
21732    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\"") >&5
21733  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
21734  ac_status=$?
21735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736  (exit $ac_status); }; then
21737  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21738else
21739  pkg_failed=yes
21740fi
21741    fi
21742else
21743	pkg_failed=untried
21744fi
21745
21746
21747
21748if test $pkg_failed = yes; then
21749
21750if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21751        _pkg_short_errors_supported=yes
21752else
21753        _pkg_short_errors_supported=no
21754fi
21755        if test $_pkg_short_errors_supported = yes; then
21756	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES"`
21757        else
21758	        XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES"`
21759        fi
21760	# Put the nasty error message in config.log where it belongs
21761	echo "$XORG_PKG_ERRORS" >&5
21762
21763	{ { echo "$as_me:$LINENO: error: Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met:
21764
21765$XORG_PKG_ERRORS
21766
21767Consider adjusting the PKG_CONFIG_PATH environment variable if you
21768installed software in a non-standard prefix.
21769
21770Alternatively, you may set the environment variables XORG_CFLAGS
21771and XORG_LIBS to avoid the need to call pkg-config.
21772See the pkg-config man page for more details.
21773" >&5
21774echo "$as_me: error: Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met:
21775
21776$XORG_PKG_ERRORS
21777
21778Consider adjusting the PKG_CONFIG_PATH environment variable if you
21779installed software in a non-standard prefix.
21780
21781Alternatively, you may set the environment variables XORG_CFLAGS
21782and XORG_LIBS to avoid the need to call pkg-config.
21783See the pkg-config man page for more details.
21784" >&2;}
21785   { (exit 1); exit 1; }; }
21786elif test $pkg_failed = untried; then
21787	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21788is in your PATH or set the PKG_CONFIG environment variable to the full
21789path to pkg-config.
21790
21791Alternatively, you may set the environment variables XORG_CFLAGS
21792and XORG_LIBS to avoid the need to call pkg-config.
21793See the pkg-config man page for more details.
21794
21795To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21796See \`config.log' for more details." >&5
21797echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21798is in your PATH or set the PKG_CONFIG environment variable to the full
21799path to pkg-config.
21800
21801Alternatively, you may set the environment variables XORG_CFLAGS
21802and XORG_LIBS to avoid the need to call pkg-config.
21803See the pkg-config man page for more details.
21804
21805To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21806See \`config.log' for more details." >&2;}
21807   { (exit 1); exit 1; }; }
21808else
21809	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21810	XORG_LIBS=$pkg_cv_XORG_LIBS
21811        { echo "$as_me:$LINENO: result: yes" >&5
21812echo "${ECHO_T}yes" >&6; }
21813	:
21814fi
21815sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21816
21817# Checks for libraries.
21818
21819# Checks for header files.
21820{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21821echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21822if test "${ac_cv_header_stdc+set}" = set; then
21823  echo $ECHO_N "(cached) $ECHO_C" >&6
21824else
21825  cat >conftest.$ac_ext <<_ACEOF
21826/* confdefs.h.  */
21827_ACEOF
21828cat confdefs.h >>conftest.$ac_ext
21829cat >>conftest.$ac_ext <<_ACEOF
21830/* end confdefs.h.  */
21831#include <stdlib.h>
21832#include <stdarg.h>
21833#include <string.h>
21834#include <float.h>
21835
21836int
21837main ()
21838{
21839
21840  ;
21841  return 0;
21842}
21843_ACEOF
21844rm -f conftest.$ac_objext
21845if { (ac_try="$ac_compile"
21846case "(($ac_try" in
21847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21848  *) ac_try_echo=$ac_try;;
21849esac
21850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21851  (eval "$ac_compile") 2>conftest.er1
21852  ac_status=$?
21853  grep -v '^ *+' conftest.er1 >conftest.err
21854  rm -f conftest.er1
21855  cat conftest.err >&5
21856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857  (exit $ac_status); } && {
21858	 test -z "$ac_c_werror_flag" ||
21859	 test ! -s conftest.err
21860       } && test -s conftest.$ac_objext; then
21861  ac_cv_header_stdc=yes
21862else
21863  echo "$as_me: failed program was:" >&5
21864sed 's/^/| /' conftest.$ac_ext >&5
21865
21866	ac_cv_header_stdc=no
21867fi
21868
21869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21870
21871if test $ac_cv_header_stdc = yes; then
21872  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21873  cat >conftest.$ac_ext <<_ACEOF
21874/* confdefs.h.  */
21875_ACEOF
21876cat confdefs.h >>conftest.$ac_ext
21877cat >>conftest.$ac_ext <<_ACEOF
21878/* end confdefs.h.  */
21879#include <string.h>
21880
21881_ACEOF
21882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21883  $EGREP "memchr" >/dev/null 2>&1; then
21884  :
21885else
21886  ac_cv_header_stdc=no
21887fi
21888rm -f conftest*
21889
21890fi
21891
21892if test $ac_cv_header_stdc = yes; then
21893  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21894  cat >conftest.$ac_ext <<_ACEOF
21895/* confdefs.h.  */
21896_ACEOF
21897cat confdefs.h >>conftest.$ac_ext
21898cat >>conftest.$ac_ext <<_ACEOF
21899/* end confdefs.h.  */
21900#include <stdlib.h>
21901
21902_ACEOF
21903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21904  $EGREP "free" >/dev/null 2>&1; then
21905  :
21906else
21907  ac_cv_header_stdc=no
21908fi
21909rm -f conftest*
21910
21911fi
21912
21913if test $ac_cv_header_stdc = yes; then
21914  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21915  if test "$cross_compiling" = yes; then
21916  :
21917else
21918  cat >conftest.$ac_ext <<_ACEOF
21919/* confdefs.h.  */
21920_ACEOF
21921cat confdefs.h >>conftest.$ac_ext
21922cat >>conftest.$ac_ext <<_ACEOF
21923/* end confdefs.h.  */
21924#include <ctype.h>
21925#include <stdlib.h>
21926#if ((' ' & 0x0FF) == 0x020)
21927# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21928# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21929#else
21930# define ISLOWER(c) \
21931		   (('a' <= (c) && (c) <= 'i') \
21932		     || ('j' <= (c) && (c) <= 'r') \
21933		     || ('s' <= (c) && (c) <= 'z'))
21934# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21935#endif
21936
21937#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21938int
21939main ()
21940{
21941  int i;
21942  for (i = 0; i < 256; i++)
21943    if (XOR (islower (i), ISLOWER (i))
21944	|| toupper (i) != TOUPPER (i))
21945      return 2;
21946  return 0;
21947}
21948_ACEOF
21949rm -f conftest$ac_exeext
21950if { (ac_try="$ac_link"
21951case "(($ac_try" in
21952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21953  *) ac_try_echo=$ac_try;;
21954esac
21955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21956  (eval "$ac_link") 2>&5
21957  ac_status=$?
21958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21960  { (case "(($ac_try" in
21961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962  *) ac_try_echo=$ac_try;;
21963esac
21964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21965  (eval "$ac_try") 2>&5
21966  ac_status=$?
21967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968  (exit $ac_status); }; }; then
21969  :
21970else
21971  echo "$as_me: program exited with status $ac_status" >&5
21972echo "$as_me: failed program was:" >&5
21973sed 's/^/| /' conftest.$ac_ext >&5
21974
21975( exit $ac_status )
21976ac_cv_header_stdc=no
21977fi
21978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21979fi
21980
21981
21982fi
21983fi
21984{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21985echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21986if test $ac_cv_header_stdc = yes; then
21987
21988cat >>confdefs.h <<\_ACEOF
21989#define STDC_HEADERS 1
21990_ACEOF
21991
21992fi
21993
21994
21995{ echo "$as_me:$LINENO: checking whether to include DRI support" >&5
21996echo $ECHO_N "checking whether to include DRI support... $ECHO_C" >&6; }
21997if test x$DRI = xauto; then
21998        as_ac_File=`echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
21999{ echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
22000echo $ECHO_N "checking for ${sdkdir}/dri.h... $ECHO_C" >&6; }
22001if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22002  echo $ECHO_N "(cached) $ECHO_C" >&6
22003else
22004  test "$cross_compiling" = yes &&
22005  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22006echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22007   { (exit 1); exit 1; }; }
22008if test -r "${sdkdir}/dri.h"; then
22009  eval "$as_ac_File=yes"
22010else
22011  eval "$as_ac_File=no"
22012fi
22013fi
22014ac_res=`eval echo '${'$as_ac_File'}'`
22015	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22016echo "${ECHO_T}$ac_res" >&6; }
22017if test `eval echo '${'$as_ac_File'}'` = yes; then
22018  have_dri_h="yes"
22019else
22020  have_dri_h="no"
22021fi
22022
22023        as_ac_File=`echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
22024{ echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
22025echo $ECHO_N "checking for ${sdkdir}/sarea.h... $ECHO_C" >&6; }
22026if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22027  echo $ECHO_N "(cached) $ECHO_C" >&6
22028else
22029  test "$cross_compiling" = yes &&
22030  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22031echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22032   { (exit 1); exit 1; }; }
22033if test -r "${sdkdir}/sarea.h"; then
22034  eval "$as_ac_File=yes"
22035else
22036  eval "$as_ac_File=no"
22037fi
22038fi
22039ac_res=`eval echo '${'$as_ac_File'}'`
22040	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22041echo "${ECHO_T}$ac_res" >&6; }
22042if test `eval echo '${'$as_ac_File'}'` = yes; then
22043  have_sarea_h="yes"
22044else
22045  have_sarea_h="no"
22046fi
22047
22048        as_ac_File=`echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
22049{ echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
22050echo $ECHO_N "checking for ${sdkdir}/dristruct.h... $ECHO_C" >&6; }
22051if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22052  echo $ECHO_N "(cached) $ECHO_C" >&6
22053else
22054  test "$cross_compiling" = yes &&
22055  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22056echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22057   { (exit 1); exit 1; }; }
22058if test -r "${sdkdir}/dristruct.h"; then
22059  eval "$as_ac_File=yes"
22060else
22061  eval "$as_ac_File=no"
22062fi
22063fi
22064ac_res=`eval echo '${'$as_ac_File'}'`
22065	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22066echo "${ECHO_T}$ac_res" >&6; }
22067if test `eval echo '${'$as_ac_File'}'` = yes; then
22068  have_dristruct_h="yes"
22069else
22070  have_dristruct_h="no"
22071fi
22072
22073	as_ac_File=`echo "ac_cv_file_${sdkdir}/damage.h" | $as_tr_sh`
22074{ echo "$as_me:$LINENO: checking for ${sdkdir}/damage.h" >&5
22075echo $ECHO_N "checking for ${sdkdir}/damage.h... $ECHO_C" >&6; }
22076if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22077  echo $ECHO_N "(cached) $ECHO_C" >&6
22078else
22079  test "$cross_compiling" = yes &&
22080  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22081echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22082   { (exit 1); exit 1; }; }
22083if test -r "${sdkdir}/damage.h"; then
22084  eval "$as_ac_File=yes"
22085else
22086  eval "$as_ac_File=no"
22087fi
22088fi
22089ac_res=`eval echo '${'$as_ac_File'}'`
22090	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22091echo "${ECHO_T}$ac_res" >&6; }
22092if test `eval echo '${'$as_ac_File'}'` = yes; then
22093  have_damage_h="yes"
22094else
22095  have_damage_h="no"
22096fi
22097
22098
22099        if test "$have_dri_h" = yes -a \
22100                "$have_sarea_h" = yes -a \
22101                "$have_dristruct_h" = yes; then
22102                DRI="yes"
22103        else
22104                DRI="no"
22105        fi
22106fi
22107{ echo "$as_me:$LINENO: result: $DRI" >&5
22108echo "${ECHO_T}$DRI" >&6; }
22109
22110save_CFLAGS="$CFLAGS"
22111CFLAGS="$XORG_CFLAGS"
22112{ echo "$as_me:$LINENO: checking for xf86Modes.h" >&5
22113echo $ECHO_N "checking for xf86Modes.h... $ECHO_C" >&6; }
22114if test "${ac_cv_header_xf86Modes_h+set}" = set; then
22115  echo $ECHO_N "(cached) $ECHO_C" >&6
22116else
22117  cat >conftest.$ac_ext <<_ACEOF
22118/* confdefs.h.  */
22119_ACEOF
22120cat confdefs.h >>conftest.$ac_ext
22121cat >>conftest.$ac_ext <<_ACEOF
22122/* end confdefs.h.  */
22123#include "xorg-server.h"
22124
22125#include <xf86Modes.h>
22126_ACEOF
22127rm -f conftest.$ac_objext
22128if { (ac_try="$ac_compile"
22129case "(($ac_try" in
22130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131  *) ac_try_echo=$ac_try;;
22132esac
22133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134  (eval "$ac_compile") 2>conftest.er1
22135  ac_status=$?
22136  grep -v '^ *+' conftest.er1 >conftest.err
22137  rm -f conftest.er1
22138  cat conftest.err >&5
22139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140  (exit $ac_status); } && {
22141	 test -z "$ac_c_werror_flag" ||
22142	 test ! -s conftest.err
22143       } && test -s conftest.$ac_objext; then
22144  ac_cv_header_xf86Modes_h=yes
22145else
22146  echo "$as_me: failed program was:" >&5
22147sed 's/^/| /' conftest.$ac_ext >&5
22148
22149	ac_cv_header_xf86Modes_h=no
22150fi
22151
22152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22153fi
22154{ echo "$as_me:$LINENO: result: $ac_cv_header_xf86Modes_h" >&5
22155echo "${ECHO_T}$ac_cv_header_xf86Modes_h" >&6; }
22156if test $ac_cv_header_xf86Modes_h = yes; then
22157  XMODES=yes
22158else
22159  XMODES=no
22160fi
22161
22162
22163{ echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
22164echo $ECHO_N "checking whether XSERVER_LIBPCIACCESS is declared... $ECHO_C" >&6; }
22165if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
22166  echo $ECHO_N "(cached) $ECHO_C" >&6
22167else
22168  cat >conftest.$ac_ext <<_ACEOF
22169/* confdefs.h.  */
22170_ACEOF
22171cat confdefs.h >>conftest.$ac_ext
22172cat >>conftest.$ac_ext <<_ACEOF
22173/* end confdefs.h.  */
22174#include "xorg-server.h"
22175
22176int
22177main ()
22178{
22179#ifndef XSERVER_LIBPCIACCESS
22180  (void) XSERVER_LIBPCIACCESS;
22181#endif
22182
22183  ;
22184  return 0;
22185}
22186_ACEOF
22187rm -f conftest.$ac_objext
22188if { (ac_try="$ac_compile"
22189case "(($ac_try" in
22190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191  *) ac_try_echo=$ac_try;;
22192esac
22193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194  (eval "$ac_compile") 2>conftest.er1
22195  ac_status=$?
22196  grep -v '^ *+' conftest.er1 >conftest.err
22197  rm -f conftest.er1
22198  cat conftest.err >&5
22199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200  (exit $ac_status); } && {
22201	 test -z "$ac_c_werror_flag" ||
22202	 test ! -s conftest.err
22203       } && test -s conftest.$ac_objext; then
22204  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
22205else
22206  echo "$as_me: failed program was:" >&5
22207sed 's/^/| /' conftest.$ac_ext >&5
22208
22209	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
22210fi
22211
22212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22213fi
22214{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
22215echo "${ECHO_T}$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
22216if test $ac_cv_have_decl_XSERVER_LIBPCIACCESS = yes; then
22217  XSERVER_LIBPCIACCESS=yes
22218else
22219  XSERVER_LIBPCIACCESS=no
22220fi
22221
22222CFLAGS="$save_CFLAGS"
22223
22224if test x$XSERVER_LIBPCIACCESS = xyes; then
22225
22226pkg_failed=no
22227{ echo "$as_me:$LINENO: checking for PCIACCESS" >&5
22228echo $ECHO_N "checking for PCIACCESS... $ECHO_C" >&6; }
22229
22230if test -n "$PKG_CONFIG"; then
22231    if test -n "$PCIACCESS_CFLAGS"; then
22232        pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
22233    else
22234        if test -n "$PKG_CONFIG" && \
22235    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5
22236  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
22237  ac_status=$?
22238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239  (exit $ac_status); }; then
22240  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
22241else
22242  pkg_failed=yes
22243fi
22244    fi
22245else
22246	pkg_failed=untried
22247fi
22248if test -n "$PKG_CONFIG"; then
22249    if test -n "$PCIACCESS_LIBS"; then
22250        pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
22251    else
22252        if test -n "$PKG_CONFIG" && \
22253    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5
22254  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
22255  ac_status=$?
22256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257  (exit $ac_status); }; then
22258  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
22259else
22260  pkg_failed=yes
22261fi
22262    fi
22263else
22264	pkg_failed=untried
22265fi
22266
22267
22268
22269if test $pkg_failed = yes; then
22270
22271if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22272        _pkg_short_errors_supported=yes
22273else
22274        _pkg_short_errors_supported=no
22275fi
22276        if test $_pkg_short_errors_supported = yes; then
22277	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess >= 0.10"`
22278        else
22279	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.10"`
22280        fi
22281	# Put the nasty error message in config.log where it belongs
22282	echo "$PCIACCESS_PKG_ERRORS" >&5
22283
22284	{ { echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.10) were not met:
22285
22286$PCIACCESS_PKG_ERRORS
22287
22288Consider adjusting the PKG_CONFIG_PATH environment variable if you
22289installed software in a non-standard prefix.
22290
22291Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22292and PCIACCESS_LIBS to avoid the need to call pkg-config.
22293See the pkg-config man page for more details.
22294" >&5
22295echo "$as_me: error: Package requirements (pciaccess >= 0.10) were not met:
22296
22297$PCIACCESS_PKG_ERRORS
22298
22299Consider adjusting the PKG_CONFIG_PATH environment variable if you
22300installed software in a non-standard prefix.
22301
22302Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22303and PCIACCESS_LIBS to avoid the need to call pkg-config.
22304See the pkg-config man page for more details.
22305" >&2;}
22306   { (exit 1); exit 1; }; }
22307elif test $pkg_failed = untried; then
22308	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22309is in your PATH or set the PKG_CONFIG environment variable to the full
22310path to pkg-config.
22311
22312Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22313and PCIACCESS_LIBS to avoid the need to call pkg-config.
22314See the pkg-config man page for more details.
22315
22316To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22317See \`config.log' for more details." >&5
22318echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22319is in your PATH or set the PKG_CONFIG environment variable to the full
22320path to pkg-config.
22321
22322Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22323and PCIACCESS_LIBS to avoid the need to call pkg-config.
22324See the pkg-config man page for more details.
22325
22326To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22327See \`config.log' for more details." >&2;}
22328   { (exit 1); exit 1; }; }
22329else
22330	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
22331	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
22332        { echo "$as_me:$LINENO: result: yes" >&5
22333echo "${ECHO_T}yes" >&6; }
22334	:
22335fi
22336else
22337
22338pkg_failed=no
22339{ echo "$as_me:$LINENO: checking for PCIACCESS" >&5
22340echo $ECHO_N "checking for PCIACCESS... $ECHO_C" >&6; }
22341
22342if test -n "$PKG_CONFIG"; then
22343    if test -n "$PCIACCESS_CFLAGS"; then
22344        pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
22345    else
22346        if test -n "$PKG_CONFIG" && \
22347    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5
22348  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
22349  ac_status=$?
22350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351  (exit $ac_status); }; then
22352  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
22353else
22354  pkg_failed=yes
22355fi
22356    fi
22357else
22358	pkg_failed=untried
22359fi
22360if test -n "$PKG_CONFIG"; then
22361    if test -n "$PCIACCESS_LIBS"; then
22362        pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
22363    else
22364        if test -n "$PKG_CONFIG" && \
22365    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5
22366  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
22367  ac_status=$?
22368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369  (exit $ac_status); }; then
22370  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
22371else
22372  pkg_failed=yes
22373fi
22374    fi
22375else
22376	pkg_failed=untried
22377fi
22378
22379
22380
22381if test $pkg_failed = yes; then
22382
22383if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22384        _pkg_short_errors_supported=yes
22385else
22386        _pkg_short_errors_supported=no
22387fi
22388        if test $_pkg_short_errors_supported = yes; then
22389	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess >= 0.10"`
22390        else
22391	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.10"`
22392        fi
22393	# Put the nasty error message in config.log where it belongs
22394	echo "$PCIACCESS_PKG_ERRORS" >&5
22395
22396	{ echo "$as_me:$LINENO: result: no" >&5
22397echo "${ECHO_T}no" >&6; }
22398                have_libpciaccess=no
22399elif test $pkg_failed = untried; then
22400	have_libpciaccess=no
22401else
22402	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
22403	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
22404        { echo "$as_me:$LINENO: result: yes" >&5
22405echo "${ECHO_T}yes" >&6; }
22406	have_libpciaccess=yes
22407fi
22408fi
22409 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
22410  XSERVER_LIBPCIACCESS_TRUE=
22411  XSERVER_LIBPCIACCESS_FALSE='#'
22412else
22413  XSERVER_LIBPCIACCESS_TRUE='#'
22414  XSERVER_LIBPCIACCESS_FALSE=
22415fi
22416
22417 if test "x$XSERVER_LIBPCIACCESS" = xyes -o "x$have_libpciaccess" = xyes; then
22418  LIBPCIACCESS_TRUE=
22419  LIBPCIACCESS_FALSE='#'
22420else
22421  LIBPCIACCESS_TRUE='#'
22422  LIBPCIACCESS_FALSE=
22423fi
22424
22425 if test "x$XMODES" = xno; then
22426  XMODES_TRUE=
22427  XMODES_FALSE='#'
22428else
22429  XMODES_TRUE='#'
22430  XMODES_FALSE=
22431fi
22432
22433
22434if test "x$XSERVER_SOURCE" = x; then
22435	if test -d ../../xserver; then
22436		XSERVER_SOURCE="`cd ../../xserver && pwd`"
22437	fi
22438fi
22439
22440if test -d "$XSERVER_SOURCE"; then
22441	case "$XSERVER_SOURCE" in
22442	/*)
22443		;;
22444	*)
22445		XSERVER_SOURCE="`cd $XSERVER_SOURCE && pwd`"
22446		;;
22447	esac
22448	if test -f $srcdir/src/modes/xf86Modes.h; then
22449		:
22450	else
22451		ln -sf $XSERVER_SOURCE/hw/xfree86/modes $srcdir/src/modes
22452	fi
22453
22454	if test -f $srcdir/src/parser/xf86Parser.h; then
22455		:
22456	else
22457		ln -sf $XSERVER_SOURCE/hw/xfree86/parser $srcdir/src/parser
22458	fi
22459fi
22460
22461if test "x$XMODES" = xyes; then
22462	{ echo "$as_me:$LINENO: X server has new mode code" >&5
22463echo "$as_me: X server has new mode code" >&6;}
22464
22465cat >>confdefs.h <<\_ACEOF
22466#define XMODES 1
22467_ACEOF
22468
22469	XMODES_CFLAGS=
22470else
22471	if test -f $srcdir/src/modes/xf86Modes.h -a -f $srcdir/src/parser/xf86Parser.h; then
22472		{ echo "$as_me:$LINENO: X server is missing new mode code, using local copy" >&5
22473echo "$as_me: X server is missing new mode code, using local copy" >&6;}
22474	else
22475		{ { echo "$as_me:$LINENO: error: Must have X server >= 1.3 source tree for mode setting code. Please specify --with-xserver-source" >&5
22476echo "$as_me: error: Must have X server >= 1.3 source tree for mode setting code. Please specify --with-xserver-source" >&2;}
22477   { (exit 1); exit 1; }; }
22478	fi
22479	XMODES_CFLAGS='-DXF86_MODES_RENAME -I$(top_srcdir)/src -I$(top_srcdir)/src/modes -I$(top_srcdir)/src/parser'
22480fi
22481
22482
22483
22484SAVE_CPPFLAGS="$CPPFLAGS"
22485CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
22486
22487{ echo "$as_me:$LINENO: checking whether xf86RotateFreeShadow is declared" >&5
22488echo $ECHO_N "checking whether xf86RotateFreeShadow is declared... $ECHO_C" >&6; }
22489if test "${ac_cv_have_decl_xf86RotateFreeShadow+set}" = set; then
22490  echo $ECHO_N "(cached) $ECHO_C" >&6
22491else
22492  cat >conftest.$ac_ext <<_ACEOF
22493/* confdefs.h.  */
22494_ACEOF
22495cat confdefs.h >>conftest.$ac_ext
22496cat >>conftest.$ac_ext <<_ACEOF
22497/* end confdefs.h.  */
22498#include <xorg-server.h>
22499	       #include <windowstr.h>
22500	       #include <xf86Crtc.h>
22501
22502int
22503main ()
22504{
22505#ifndef xf86RotateFreeShadow
22506  (void) xf86RotateFreeShadow;
22507#endif
22508
22509  ;
22510  return 0;
22511}
22512_ACEOF
22513rm -f conftest.$ac_objext
22514if { (ac_try="$ac_compile"
22515case "(($ac_try" in
22516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22517  *) ac_try_echo=$ac_try;;
22518esac
22519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22520  (eval "$ac_compile") 2>conftest.er1
22521  ac_status=$?
22522  grep -v '^ *+' conftest.er1 >conftest.err
22523  rm -f conftest.er1
22524  cat conftest.err >&5
22525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526  (exit $ac_status); } && {
22527	 test -z "$ac_c_werror_flag" ||
22528	 test ! -s conftest.err
22529       } && test -s conftest.$ac_objext; then
22530  ac_cv_have_decl_xf86RotateFreeShadow=yes
22531else
22532  echo "$as_me: failed program was:" >&5
22533sed 's/^/| /' conftest.$ac_ext >&5
22534
22535	ac_cv_have_decl_xf86RotateFreeShadow=no
22536fi
22537
22538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22539fi
22540{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86RotateFreeShadow" >&5
22541echo "${ECHO_T}$ac_cv_have_decl_xf86RotateFreeShadow" >&6; }
22542if test $ac_cv_have_decl_xf86RotateFreeShadow = yes; then
22543
22544cat >>confdefs.h <<\_ACEOF
22545#define HAVE_FREE_SHADOW 1
22546_ACEOF
22547
22548fi
22549
22550
22551CPPFLAGS="$SAVE_CPPFLAGS"
22552
22553
22554WARN_CFLAGS=""
22555
22556if test "x$GCC" = "xyes"; then
22557	WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
22558	-Wmissing-prototypes -Wmissing-declarations \
22559	-Wnested-externs -fno-strict-aliasing"
22560fi
22561
22562 if test x$DRI = xyes; then
22563  DRI_TRUE=
22564  DRI_FALSE='#'
22565else
22566  DRI_TRUE='#'
22567  DRI_FALSE=
22568fi
22569
22570if test "$DRI" = yes; then
22571
22572pkg_failed=no
22573{ echo "$as_me:$LINENO: checking for DRI" >&5
22574echo $ECHO_N "checking for DRI... $ECHO_C" >&6; }
22575
22576if test -n "$PKG_CONFIG"; then
22577    if test -n "$DRI_CFLAGS"; then
22578        pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
22579    else
22580        if test -n "$PKG_CONFIG" && \
22581    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm xf86driproto glproto\"") >&5
22582  ($PKG_CONFIG --exists --print-errors "libdrm xf86driproto glproto") 2>&5
22583  ac_status=$?
22584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585  (exit $ac_status); }; then
22586  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm xf86driproto glproto" 2>/dev/null`
22587else
22588  pkg_failed=yes
22589fi
22590    fi
22591else
22592	pkg_failed=untried
22593fi
22594if test -n "$PKG_CONFIG"; then
22595    if test -n "$DRI_LIBS"; then
22596        pkg_cv_DRI_LIBS="$DRI_LIBS"
22597    else
22598        if test -n "$PKG_CONFIG" && \
22599    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm xf86driproto glproto\"") >&5
22600  ($PKG_CONFIG --exists --print-errors "libdrm xf86driproto glproto") 2>&5
22601  ac_status=$?
22602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603  (exit $ac_status); }; then
22604  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm xf86driproto glproto" 2>/dev/null`
22605else
22606  pkg_failed=yes
22607fi
22608    fi
22609else
22610	pkg_failed=untried
22611fi
22612
22613
22614
22615if test $pkg_failed = yes; then
22616
22617if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22618        _pkg_short_errors_supported=yes
22619else
22620        _pkg_short_errors_supported=no
22621fi
22622        if test $_pkg_short_errors_supported = yes; then
22623	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libdrm xf86driproto glproto"`
22624        else
22625	        DRI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdrm xf86driproto glproto"`
22626        fi
22627	# Put the nasty error message in config.log where it belongs
22628	echo "$DRI_PKG_ERRORS" >&5
22629
22630	{ { echo "$as_me:$LINENO: error: Package requirements (libdrm xf86driproto glproto) were not met:
22631
22632$DRI_PKG_ERRORS
22633
22634Consider adjusting the PKG_CONFIG_PATH environment variable if you
22635installed software in a non-standard prefix.
22636
22637Alternatively, you may set the environment variables DRI_CFLAGS
22638and DRI_LIBS to avoid the need to call pkg-config.
22639See the pkg-config man page for more details.
22640" >&5
22641echo "$as_me: error: Package requirements (libdrm xf86driproto glproto) were not met:
22642
22643$DRI_PKG_ERRORS
22644
22645Consider adjusting the PKG_CONFIG_PATH environment variable if you
22646installed software in a non-standard prefix.
22647
22648Alternatively, you may set the environment variables DRI_CFLAGS
22649and DRI_LIBS to avoid the need to call pkg-config.
22650See the pkg-config man page for more details.
22651" >&2;}
22652   { (exit 1); exit 1; }; }
22653elif test $pkg_failed = untried; then
22654	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22655is in your PATH or set the PKG_CONFIG environment variable to the full
22656path to pkg-config.
22657
22658Alternatively, you may set the environment variables DRI_CFLAGS
22659and DRI_LIBS to avoid the need to call pkg-config.
22660See the pkg-config man page for more details.
22661
22662To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22663See \`config.log' for more details." >&5
22664echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22665is in your PATH or set the PKG_CONFIG environment variable to the full
22666path to pkg-config.
22667
22668Alternatively, you may set the environment variables DRI_CFLAGS
22669and DRI_LIBS to avoid the need to call pkg-config.
22670See the pkg-config man page for more details.
22671
22672To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22673See \`config.log' for more details." >&2;}
22674   { (exit 1); exit 1; }; }
22675else
22676	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
22677	DRI_LIBS=$pkg_cv_DRI_LIBS
22678        { echo "$as_me:$LINENO: result: yes" >&5
22679echo "${ECHO_T}yes" >&6; }
22680	:
22681fi
22682
22683cat >>confdefs.h <<\_ACEOF
22684#define XF86DRI 1
22685_ACEOF
22686
22687
22688cat >>confdefs.h <<\_ACEOF
22689#define XF86DRI_DEVEL 1
22690_ACEOF
22691
22692
22693pkg_failed=no
22694{ echo "$as_me:$LINENO: checking for DRI_MM" >&5
22695echo $ECHO_N "checking for DRI_MM... $ECHO_C" >&6; }
22696
22697if test -n "$PKG_CONFIG"; then
22698    if test -n "$DRI_MM_CFLAGS"; then
22699        pkg_cv_DRI_MM_CFLAGS="$DRI_MM_CFLAGS"
22700    else
22701        if test -n "$PKG_CONFIG" && \
22702    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.0\"") >&5
22703  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.0") 2>&5
22704  ac_status=$?
22705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706  (exit $ac_status); }; then
22707  pkg_cv_DRI_MM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.0" 2>/dev/null`
22708else
22709  pkg_failed=yes
22710fi
22711    fi
22712else
22713	pkg_failed=untried
22714fi
22715if test -n "$PKG_CONFIG"; then
22716    if test -n "$DRI_MM_LIBS"; then
22717        pkg_cv_DRI_MM_LIBS="$DRI_MM_LIBS"
22718    else
22719        if test -n "$PKG_CONFIG" && \
22720    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.0\"") >&5
22721  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.0") 2>&5
22722  ac_status=$?
22723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724  (exit $ac_status); }; then
22725  pkg_cv_DRI_MM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.0" 2>/dev/null`
22726else
22727  pkg_failed=yes
22728fi
22729    fi
22730else
22731	pkg_failed=untried
22732fi
22733
22734
22735
22736if test $pkg_failed = yes; then
22737
22738if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22739        _pkg_short_errors_supported=yes
22740else
22741        _pkg_short_errors_supported=no
22742fi
22743        if test $_pkg_short_errors_supported = yes; then
22744	        DRI_MM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libdrm >= 2.4.0"`
22745        else
22746	        DRI_MM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdrm >= 2.4.0"`
22747        fi
22748	# Put the nasty error message in config.log where it belongs
22749	echo "$DRI_MM_PKG_ERRORS" >&5
22750
22751	{ echo "$as_me:$LINENO: result: no" >&5
22752echo "${ECHO_T}no" >&6; }
22753                DRI_MM=no
22754elif test $pkg_failed = untried; then
22755	DRI_MM=no
22756else
22757	DRI_MM_CFLAGS=$pkg_cv_DRI_MM_CFLAGS
22758	DRI_MM_LIBS=$pkg_cv_DRI_MM_LIBS
22759        { echo "$as_me:$LINENO: result: yes" >&5
22760echo "${ECHO_T}yes" >&6; }
22761	DRI_MM=yes
22762fi
22763	if test "x$DRI_MM" = xyes; then
22764
22765cat >>confdefs.h <<\_ACEOF
22766#define XF86DRI_MM 1
22767_ACEOF
22768
22769	fi
22770	if test "$have_damage_h" = yes; then
22771
22772cat >>confdefs.h <<\_ACEOF
22773#define DAMAGE 1
22774_ACEOF
22775
22776	fi
22777
22778	save_CFLAGS="$CFLAGS"
22779	CFLAGS="$XORG_CFLAGS $DRI_CFLAGS"
22780	{ echo "$as_me:$LINENO: checking for drm_i915_flip_t" >&5
22781echo $ECHO_N "checking for drm_i915_flip_t... $ECHO_C" >&6; }
22782if test "${ac_cv_type_drm_i915_flip_t+set}" = set; then
22783  echo $ECHO_N "(cached) $ECHO_C" >&6
22784else
22785  cat >conftest.$ac_ext <<_ACEOF
22786/* confdefs.h.  */
22787_ACEOF
22788cat confdefs.h >>conftest.$ac_ext
22789cat >>conftest.$ac_ext <<_ACEOF
22790/* end confdefs.h.  */
22791
22792#include <inttypes.h>
22793#include <i915_drm.h>
22794
22795
22796typedef drm_i915_flip_t ac__type_new_;
22797int
22798main ()
22799{
22800if ((ac__type_new_ *) 0)
22801  return 0;
22802if (sizeof (ac__type_new_))
22803  return 0;
22804  ;
22805  return 0;
22806}
22807_ACEOF
22808rm -f conftest.$ac_objext
22809if { (ac_try="$ac_compile"
22810case "(($ac_try" in
22811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22812  *) ac_try_echo=$ac_try;;
22813esac
22814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22815  (eval "$ac_compile") 2>conftest.er1
22816  ac_status=$?
22817  grep -v '^ *+' conftest.er1 >conftest.err
22818  rm -f conftest.er1
22819  cat conftest.err >&5
22820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821  (exit $ac_status); } && {
22822	 test -z "$ac_c_werror_flag" ||
22823	 test ! -s conftest.err
22824       } && test -s conftest.$ac_objext; then
22825  ac_cv_type_drm_i915_flip_t=yes
22826else
22827  echo "$as_me: failed program was:" >&5
22828sed 's/^/| /' conftest.$ac_ext >&5
22829
22830	ac_cv_type_drm_i915_flip_t=no
22831fi
22832
22833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22834fi
22835{ echo "$as_me:$LINENO: result: $ac_cv_type_drm_i915_flip_t" >&5
22836echo "${ECHO_T}$ac_cv_type_drm_i915_flip_t" >&6; }
22837if test $ac_cv_type_drm_i915_flip_t = yes; then
22838
22839cat >>confdefs.h <<\_ACEOF
22840#define HAVE_I915_FLIP 1
22841_ACEOF
22842
22843fi
22844
22845	CFLAGS="$save_CFLAGS"
22846fi
22847
22848 if test x$VIDEO_DEBUG = xyes; then
22849  VIDEO_DEBUG_TRUE=
22850  VIDEO_DEBUG_FALSE='#'
22851else
22852  VIDEO_DEBUG_TRUE='#'
22853  VIDEO_DEBUG_FALSE=
22854fi
22855
22856if test "$VIDEO_DEBUG" = yes; then
22857
22858cat >>confdefs.h <<\_ACEOF
22859#define VIDEO_DEBUG 1
22860_ACEOF
22861
22862fi
22863
22864if test "$XVMC" = auto; then
22865	XVMC="$DRI"
22866fi
22867if test "$XVMC" = yes && test "$DRI" = no; then
22868	{ { echo "$as_me:$LINENO: error: XvMC can't be enabled without DRI" >&5
22869echo "$as_me: error: XvMC can't be enabled without DRI" >&2;}
22870   { (exit 1); exit 1; }; }
22871fi
22872if test "$XVMC" = yes; then
22873
22874pkg_failed=no
22875{ echo "$as_me:$LINENO: checking for XVMCLIB" >&5
22876echo $ECHO_N "checking for XVMCLIB... $ECHO_C" >&6; }
22877
22878if test -n "$PKG_CONFIG"; then
22879    if test -n "$XVMCLIB_CFLAGS"; then
22880        pkg_cv_XVMCLIB_CFLAGS="$XVMCLIB_CFLAGS"
22881    else
22882        if test -n "$PKG_CONFIG" && \
22883    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xvmc\"") >&5
22884  ($PKG_CONFIG --exists --print-errors "xvmc") 2>&5
22885  ac_status=$?
22886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887  (exit $ac_status); }; then
22888  pkg_cv_XVMCLIB_CFLAGS=`$PKG_CONFIG --cflags "xvmc" 2>/dev/null`
22889else
22890  pkg_failed=yes
22891fi
22892    fi
22893else
22894	pkg_failed=untried
22895fi
22896if test -n "$PKG_CONFIG"; then
22897    if test -n "$XVMCLIB_LIBS"; then
22898        pkg_cv_XVMCLIB_LIBS="$XVMCLIB_LIBS"
22899    else
22900        if test -n "$PKG_CONFIG" && \
22901    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xvmc\"") >&5
22902  ($PKG_CONFIG --exists --print-errors "xvmc") 2>&5
22903  ac_status=$?
22904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905  (exit $ac_status); }; then
22906  pkg_cv_XVMCLIB_LIBS=`$PKG_CONFIG --libs "xvmc" 2>/dev/null`
22907else
22908  pkg_failed=yes
22909fi
22910    fi
22911else
22912	pkg_failed=untried
22913fi
22914
22915
22916
22917if test $pkg_failed = yes; then
22918
22919if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22920        _pkg_short_errors_supported=yes
22921else
22922        _pkg_short_errors_supported=no
22923fi
22924        if test $_pkg_short_errors_supported = yes; then
22925	        XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xvmc"`
22926        else
22927	        XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xvmc"`
22928        fi
22929	# Put the nasty error message in config.log where it belongs
22930	echo "$XVMCLIB_PKG_ERRORS" >&5
22931
22932	{ echo "$as_me:$LINENO: result: no" >&5
22933echo "${ECHO_T}no" >&6; }
22934                XVMC=no
22935elif test $pkg_failed = untried; then
22936	XVMC=no
22937else
22938	XVMCLIB_CFLAGS=$pkg_cv_XVMCLIB_CFLAGS
22939	XVMCLIB_LIBS=$pkg_cv_XVMCLIB_LIBS
22940        { echo "$as_me:$LINENO: result: yes" >&5
22941echo "${ECHO_T}yes" >&6; }
22942	XVMC=yes
22943fi
22944fi
22945{ echo "$as_me:$LINENO: checking whether to include XvMC support" >&5
22946echo $ECHO_N "checking whether to include XvMC support... $ECHO_C" >&6; }
22947{ echo "$as_me:$LINENO: result: $XVMC" >&5
22948echo "${ECHO_T}$XVMC" >&6; }
22949 if test x$XVMC = xyes; then
22950  XVMC_TRUE=
22951  XVMC_FALSE='#'
22952else
22953  XVMC_TRUE='#'
22954  XVMC_FALSE=
22955fi
22956
22957if test "$XVMC" = yes; then
22958
22959cat >>confdefs.h <<\_ACEOF
22960#define ENABLE_XVMC 1
22961_ACEOF
22962
22963
22964fi
22965
22966
22967
22968
22969
22970
22971
22972DRIVER_NAME=intel
22973
22974
22975
22976
22977	XORG_MACROS_needed_version=1.1.3
22978	XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
22979	XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
22980	{ echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5
22981echo $ECHO_N "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... $ECHO_C" >&6; }
22982	XORG_MACROS_version=1.1.6
22983	XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
22984	XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
22985	if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
22986		{ { echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5
22987echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;}
22988   { (exit 1); exit 1; }; }
22989	fi
22990	if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
22991		{ { echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5
22992echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;}
22993   { (exit 1); exit 1; }; }
22994	fi
22995	{ echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
22996echo "${ECHO_T}yes, $XORG_MACROS_version" >&6; }
22997
22998
22999
23000
23001if test x$APP_MAN_SUFFIX = x    ; then
23002    APP_MAN_SUFFIX=1
23003fi
23004if test x$APP_MAN_DIR = x    ; then
23005    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
23006fi
23007
23008if test x$LIB_MAN_SUFFIX = x    ; then
23009    LIB_MAN_SUFFIX=3
23010fi
23011if test x$LIB_MAN_DIR = x    ; then
23012    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
23013fi
23014
23015if test x$FILE_MAN_SUFFIX = x    ; then
23016    case $host_os in
23017	solaris*)	FILE_MAN_SUFFIX=4  ;;
23018	*)		FILE_MAN_SUFFIX=5  ;;
23019    esac
23020fi
23021if test x$FILE_MAN_DIR = x    ; then
23022    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
23023fi
23024
23025if test x$MISC_MAN_SUFFIX = x    ; then
23026    case $host_os in
23027	solaris*)	MISC_MAN_SUFFIX=5  ;;
23028	*)		MISC_MAN_SUFFIX=7  ;;
23029    esac
23030fi
23031if test x$MISC_MAN_DIR = x    ; then
23032    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
23033fi
23034
23035if test x$DRIVER_MAN_SUFFIX = x    ; then
23036    case $host_os in
23037	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
23038	*)		DRIVER_MAN_SUFFIX=4  ;;
23039    esac
23040fi
23041if test x$DRIVER_MAN_DIR = x    ; then
23042    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
23043fi
23044
23045if test x$ADMIN_MAN_SUFFIX = x    ; then
23046    case $host_os in
23047	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
23048	*)		ADMIN_MAN_SUFFIX=8  ;;
23049    esac
23050fi
23051if test x$ADMIN_MAN_DIR = x    ; then
23052    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
23053fi
23054
23055
23056
23057
23058
23059
23060
23061
23062
23063
23064
23065
23066
23067
23068
23069
23070
23071# Check whether --with-release-version was given.
23072if test "${with_release_version+set}" = set; then
23073  withval=$with_release_version; RELEASE_VERSION="$withval"
23074else
23075  RELEASE_VERSION=""
23076fi
23077
23078	if test "x$RELEASE_VERSION" != "x"; then
23079		PACKAGE="$PACKAGE-$RELEASE_VERSION"
23080		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
23081		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
23082echo "$as_me: Building with package name set to $PACKAGE" >&6;}
23083	fi
23084
23085cat >>confdefs.h <<_ACEOF
23086#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
23087_ACEOF
23088
23089	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
23090	if test "x$PVM" = "x"; then
23091		PVM="0"
23092	fi
23093
23094cat >>confdefs.h <<_ACEOF
23095#define PACKAGE_VERSION_MINOR $PVM
23096_ACEOF
23097
23098	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
23099	if test "x$PVP" = "x"; then
23100		PVP="0"
23101	fi
23102
23103cat >>confdefs.h <<_ACEOF
23104#define PACKAGE_VERSION_PATCHLEVEL $PVP
23105_ACEOF
23106
23107
23108
23109
23110XORG_SGML_PATH=$prefix/share/sgml
23111HAVE_DEFS_ENT=
23112
23113if test x"$cross_compiling" = x"yes" ; then
23114  HAVE_DEFS_ENT=no
23115else
23116  as_ac_File=`echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh`
23117{ echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5
23118echo $ECHO_N "checking for $XORG_SGML_PATH/X11/defs.ent... $ECHO_C" >&6; }
23119if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23120  echo $ECHO_N "(cached) $ECHO_C" >&6
23121else
23122  test "$cross_compiling" = yes &&
23123  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23124echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23125   { (exit 1); exit 1; }; }
23126if test -r "$XORG_SGML_PATH/X11/defs.ent"; then
23127  eval "$as_ac_File=yes"
23128else
23129  eval "$as_ac_File=no"
23130fi
23131fi
23132ac_res=`eval echo '${'$as_ac_File'}'`
23133	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23134echo "${ECHO_T}$ac_res" >&6; }
23135if test `eval echo '${'$as_ac_File'}'` = yes; then
23136  HAVE_DEFS_ENT=yes
23137fi
23138
23139fi
23140
23141# Extract the first word of "linuxdoc", so it can be a program name with args.
23142set dummy linuxdoc; ac_word=$2
23143{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23145if test "${ac_cv_path_LINUXDOC+set}" = set; then
23146  echo $ECHO_N "(cached) $ECHO_C" >&6
23147else
23148  case $LINUXDOC in
23149  [\\/]* | ?:[\\/]*)
23150  ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path.
23151  ;;
23152  *)
23153  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23154for as_dir in $PATH
23155do
23156  IFS=$as_save_IFS
23157  test -z "$as_dir" && as_dir=.
23158  for ac_exec_ext in '' $ac_executable_extensions; do
23159  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23160    ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext"
23161    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23162    break 2
23163  fi
23164done
23165done
23166IFS=$as_save_IFS
23167
23168  ;;
23169esac
23170fi
23171LINUXDOC=$ac_cv_path_LINUXDOC
23172if test -n "$LINUXDOC"; then
23173  { echo "$as_me:$LINENO: result: $LINUXDOC" >&5
23174echo "${ECHO_T}$LINUXDOC" >&6; }
23175else
23176  { echo "$as_me:$LINENO: result: no" >&5
23177echo "${ECHO_T}no" >&6; }
23178fi
23179
23180
23181# Extract the first word of "ps2pdf", so it can be a program name with args.
23182set dummy ps2pdf; ac_word=$2
23183{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23185if test "${ac_cv_path_PS2PDF+set}" = set; then
23186  echo $ECHO_N "(cached) $ECHO_C" >&6
23187else
23188  case $PS2PDF in
23189  [\\/]* | ?:[\\/]*)
23190  ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
23191  ;;
23192  *)
23193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23194for as_dir in $PATH
23195do
23196  IFS=$as_save_IFS
23197  test -z "$as_dir" && as_dir=.
23198  for ac_exec_ext in '' $ac_executable_extensions; do
23199  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23200    ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
23201    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23202    break 2
23203  fi
23204done
23205done
23206IFS=$as_save_IFS
23207
23208  ;;
23209esac
23210fi
23211PS2PDF=$ac_cv_path_PS2PDF
23212if test -n "$PS2PDF"; then
23213  { echo "$as_me:$LINENO: result: $PS2PDF" >&5
23214echo "${ECHO_T}$PS2PDF" >&6; }
23215else
23216  { echo "$as_me:$LINENO: result: no" >&5
23217echo "${ECHO_T}no" >&6; }
23218fi
23219
23220
23221
23222{ echo "$as_me:$LINENO: checking Whether to build documentation" >&5
23223echo $ECHO_N "checking Whether to build documentation... $ECHO_C" >&6; }
23224
23225if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
23226   BUILDDOC=yes
23227else
23228   BUILDDOC=no
23229fi
23230
23231 if test x$BUILDDOC = xyes; then
23232  BUILD_LINUXDOC_TRUE=
23233  BUILD_LINUXDOC_FALSE='#'
23234else
23235  BUILD_LINUXDOC_TRUE='#'
23236  BUILD_LINUXDOC_FALSE=
23237fi
23238
23239
23240{ echo "$as_me:$LINENO: result: $BUILDDOC" >&5
23241echo "${ECHO_T}$BUILDDOC" >&6; }
23242
23243{ echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5
23244echo $ECHO_N "checking Whether to build pdf documentation... $ECHO_C" >&6; }
23245
23246if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
23247   BUILDPDFDOC=yes
23248else
23249   BUILDPDFDOC=no
23250fi
23251
23252 if test x$BUILDPDFDOC = xyes; then
23253  BUILD_PDFDOC_TRUE=
23254  BUILD_PDFDOC_FALSE='#'
23255else
23256  BUILD_PDFDOC_TRUE='#'
23257  BUILD_PDFDOC_FALSE=
23258fi
23259
23260
23261{ echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5
23262echo "${ECHO_T}$BUILDPDFDOC" >&6; }
23263
23264MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
23265MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
23266MAKE_PDF="$PS2PDF"
23267MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC  -B html --split=0"
23268
23269
23270
23271
23272
23273
23274
23275ac_config_files="$ac_config_files Makefile src/Makefile src/xvmc/Makefile src/bios_reader/Makefile src/ch7017/Makefile src/ch7xxx/Makefile src/ivch/Makefile src/reg_dumper/Makefile src/sil164/Makefile src/tfp410/Makefile man/Makefile"
23276
23277cat >confcache <<\_ACEOF
23278# This file is a shell script that caches the results of configure
23279# tests run on this system so they can be shared between configure
23280# scripts and configure runs, see configure's option --config-cache.
23281# It is not useful on other systems.  If it contains results you don't
23282# want to keep, you may remove or edit it.
23283#
23284# config.status only pays attention to the cache file if you give it
23285# the --recheck option to rerun configure.
23286#
23287# `ac_cv_env_foo' variables (set or unset) will be overridden when
23288# loading this file, other *unset* `ac_cv_foo' will be assigned the
23289# following values.
23290
23291_ACEOF
23292
23293# The following way of writing the cache mishandles newlines in values,
23294# but we know of no workaround that is simple, portable, and efficient.
23295# So, we kill variables containing newlines.
23296# Ultrix sh set writes to stderr and can't be redirected directly,
23297# and sets the high bit in the cache file unless we assign to the vars.
23298(
23299  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23300    eval ac_val=\$$ac_var
23301    case $ac_val in #(
23302    *${as_nl}*)
23303      case $ac_var in #(
23304      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23305echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23306      esac
23307      case $ac_var in #(
23308      _ | IFS | as_nl) ;; #(
23309      *) $as_unset $ac_var ;;
23310      esac ;;
23311    esac
23312  done
23313
23314  (set) 2>&1 |
23315    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23316    *${as_nl}ac_space=\ *)
23317      # `set' does not quote correctly, so add quotes (double-quote
23318      # substitution turns \\\\ into \\, and sed turns \\ into \).
23319      sed -n \
23320	"s/'/'\\\\''/g;
23321	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23322      ;; #(
23323    *)
23324      # `set' quotes correctly as required by POSIX, so do not add quotes.
23325      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23326      ;;
23327    esac |
23328    sort
23329) |
23330  sed '
23331     /^ac_cv_env_/b end
23332     t clear
23333     :clear
23334     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23335     t end
23336     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23337     :end' >>confcache
23338if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23339  if test -w "$cache_file"; then
23340    test "x$cache_file" != "x/dev/null" &&
23341      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23342echo "$as_me: updating cache $cache_file" >&6;}
23343    cat confcache >$cache_file
23344  else
23345    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23346echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23347  fi
23348fi
23349rm -f confcache
23350
23351test "x$prefix" = xNONE && prefix=$ac_default_prefix
23352# Let make expand exec_prefix.
23353test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23354
23355DEFS=-DHAVE_CONFIG_H
23356
23357ac_libobjs=
23358ac_ltlibobjs=
23359for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23360  # 1. Remove the extension, and $U if already installed.
23361  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23362  ac_i=`echo "$ac_i" | sed "$ac_script"`
23363  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23364  #    will be set to the directory where LIBOBJS objects are built.
23365  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23366  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23367done
23368LIBOBJS=$ac_libobjs
23369
23370LTLIBOBJS=$ac_ltlibobjs
23371
23372
23373if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23374  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23375Usually this means the macro was only invoked conditionally." >&5
23376echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23377Usually this means the macro was only invoked conditionally." >&2;}
23378   { (exit 1); exit 1; }; }
23379fi
23380if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23381  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23382Usually this means the macro was only invoked conditionally." >&5
23383echo "$as_me: error: conditional \"AMDEP\" was never defined.
23384Usually this means the macro was only invoked conditionally." >&2;}
23385   { (exit 1); exit 1; }; }
23386fi
23387if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23388  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23389Usually this means the macro was only invoked conditionally." >&5
23390echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23391Usually this means the macro was only invoked conditionally." >&2;}
23392   { (exit 1); exit 1; }; }
23393fi
23394if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23395  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23396Usually this means the macro was only invoked conditionally." >&5
23397echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23398Usually this means the macro was only invoked conditionally." >&2;}
23399   { (exit 1); exit 1; }; }
23400fi
23401if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23402  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23403Usually this means the macro was only invoked conditionally." >&5
23404echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23405Usually this means the macro was only invoked conditionally." >&2;}
23406   { (exit 1); exit 1; }; }
23407fi
23408if test -z "${HAVE_GEN4ASM_TRUE}" && test -z "${HAVE_GEN4ASM_FALSE}"; then
23409  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GEN4ASM\" was never defined.
23410Usually this means the macro was only invoked conditionally." >&5
23411echo "$as_me: error: conditional \"HAVE_GEN4ASM\" was never defined.
23412Usually this means the macro was only invoked conditionally." >&2;}
23413   { (exit 1); exit 1; }; }
23414fi
23415if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
23416  { { echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
23417Usually this means the macro was only invoked conditionally." >&5
23418echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
23419Usually this means the macro was only invoked conditionally." >&2;}
23420   { (exit 1); exit 1; }; }
23421fi
23422if test -z "${LIBPCIACCESS_TRUE}" && test -z "${LIBPCIACCESS_FALSE}"; then
23423  { { echo "$as_me:$LINENO: error: conditional \"LIBPCIACCESS\" was never defined.
23424Usually this means the macro was only invoked conditionally." >&5
23425echo "$as_me: error: conditional \"LIBPCIACCESS\" was never defined.
23426Usually this means the macro was only invoked conditionally." >&2;}
23427   { (exit 1); exit 1; }; }
23428fi
23429if test -z "${XMODES_TRUE}" && test -z "${XMODES_FALSE}"; then
23430  { { echo "$as_me:$LINENO: error: conditional \"XMODES\" was never defined.
23431Usually this means the macro was only invoked conditionally." >&5
23432echo "$as_me: error: conditional \"XMODES\" was never defined.
23433Usually this means the macro was only invoked conditionally." >&2;}
23434   { (exit 1); exit 1; }; }
23435fi
23436if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
23437  { { echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
23438Usually this means the macro was only invoked conditionally." >&5
23439echo "$as_me: error: conditional \"DRI\" was never defined.
23440Usually this means the macro was only invoked conditionally." >&2;}
23441   { (exit 1); exit 1; }; }
23442fi
23443if test -z "${VIDEO_DEBUG_TRUE}" && test -z "${VIDEO_DEBUG_FALSE}"; then
23444  { { echo "$as_me:$LINENO: error: conditional \"VIDEO_DEBUG\" was never defined.
23445Usually this means the macro was only invoked conditionally." >&5
23446echo "$as_me: error: conditional \"VIDEO_DEBUG\" was never defined.
23447Usually this means the macro was only invoked conditionally." >&2;}
23448   { (exit 1); exit 1; }; }
23449fi
23450if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
23451  { { echo "$as_me:$LINENO: error: conditional \"XVMC\" was never defined.
23452Usually this means the macro was only invoked conditionally." >&5
23453echo "$as_me: error: conditional \"XVMC\" was never defined.
23454Usually this means the macro was only invoked conditionally." >&2;}
23455   { (exit 1); exit 1; }; }
23456fi
23457if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then
23458  { { echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined.
23459Usually this means the macro was only invoked conditionally." >&5
23460echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined.
23461Usually this means the macro was only invoked conditionally." >&2;}
23462   { (exit 1); exit 1; }; }
23463fi
23464if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
23465  { { echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined.
23466Usually this means the macro was only invoked conditionally." >&5
23467echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined.
23468Usually this means the macro was only invoked conditionally." >&2;}
23469   { (exit 1); exit 1; }; }
23470fi
23471
23472: ${CONFIG_STATUS=./config.status}
23473ac_clean_files_save=$ac_clean_files
23474ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23475{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23476echo "$as_me: creating $CONFIG_STATUS" >&6;}
23477cat >$CONFIG_STATUS <<_ACEOF
23478#! $SHELL
23479# Generated by $as_me.
23480# Run this file to recreate the current configuration.
23481# Compiler output produced by configure, useful for debugging
23482# configure, is in config.log if it exists.
23483
23484debug=false
23485ac_cs_recheck=false
23486ac_cs_silent=false
23487SHELL=\${CONFIG_SHELL-$SHELL}
23488_ACEOF
23489
23490cat >>$CONFIG_STATUS <<\_ACEOF
23491## --------------------- ##
23492## M4sh Initialization.  ##
23493## --------------------- ##
23494
23495# Be more Bourne compatible
23496DUALCASE=1; export DUALCASE # for MKS sh
23497if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23498  emulate sh
23499  NULLCMD=:
23500  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23501  # is contrary to our usage.  Disable this feature.
23502  alias -g '${1+"$@"}'='"$@"'
23503  setopt NO_GLOB_SUBST
23504else
23505  case `(set -o) 2>/dev/null` in
23506  *posix*) set -o posix ;;
23507esac
23508
23509fi
23510
23511
23512
23513
23514# PATH needs CR
23515# Avoid depending upon Character Ranges.
23516as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23517as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23518as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23519as_cr_digits='0123456789'
23520as_cr_alnum=$as_cr_Letters$as_cr_digits
23521
23522# The user is always right.
23523if test "${PATH_SEPARATOR+set}" != set; then
23524  echo "#! /bin/sh" >conf$$.sh
23525  echo  "exit 0"   >>conf$$.sh
23526  chmod +x conf$$.sh
23527  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23528    PATH_SEPARATOR=';'
23529  else
23530    PATH_SEPARATOR=:
23531  fi
23532  rm -f conf$$.sh
23533fi
23534
23535# Support unset when possible.
23536if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23537  as_unset=unset
23538else
23539  as_unset=false
23540fi
23541
23542
23543# IFS
23544# We need space, tab and new line, in precisely that order.  Quoting is
23545# there to prevent editors from complaining about space-tab.
23546# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23547# splitting by setting IFS to empty value.)
23548as_nl='
23549'
23550IFS=" ""	$as_nl"
23551
23552# Find who we are.  Look in the path if we contain no directory separator.
23553case $0 in
23554  *[\\/]* ) as_myself=$0 ;;
23555  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23556for as_dir in $PATH
23557do
23558  IFS=$as_save_IFS
23559  test -z "$as_dir" && as_dir=.
23560  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23561done
23562IFS=$as_save_IFS
23563
23564     ;;
23565esac
23566# We did not find ourselves, most probably we were run as `sh COMMAND'
23567# in which case we are not to be found in the path.
23568if test "x$as_myself" = x; then
23569  as_myself=$0
23570fi
23571if test ! -f "$as_myself"; then
23572  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23573  { (exit 1); exit 1; }
23574fi
23575
23576# Work around bugs in pre-3.0 UWIN ksh.
23577for as_var in ENV MAIL MAILPATH
23578do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23579done
23580PS1='$ '
23581PS2='> '
23582PS4='+ '
23583
23584# NLS nuisances.
23585for as_var in \
23586  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23587  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23588  LC_TELEPHONE LC_TIME
23589do
23590  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23591    eval $as_var=C; export $as_var
23592  else
23593    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23594  fi
23595done
23596
23597# Required to use basename.
23598if expr a : '\(a\)' >/dev/null 2>&1 &&
23599   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23600  as_expr=expr
23601else
23602  as_expr=false
23603fi
23604
23605if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23606  as_basename=basename
23607else
23608  as_basename=false
23609fi
23610
23611
23612# Name of the executable.
23613as_me=`$as_basename -- "$0" ||
23614$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23615	 X"$0" : 'X\(//\)$' \| \
23616	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23617echo X/"$0" |
23618    sed '/^.*\/\([^/][^/]*\)\/*$/{
23619	    s//\1/
23620	    q
23621	  }
23622	  /^X\/\(\/\/\)$/{
23623	    s//\1/
23624	    q
23625	  }
23626	  /^X\/\(\/\).*/{
23627	    s//\1/
23628	    q
23629	  }
23630	  s/.*/./; q'`
23631
23632# CDPATH.
23633$as_unset CDPATH
23634
23635
23636
23637  as_lineno_1=$LINENO
23638  as_lineno_2=$LINENO
23639  test "x$as_lineno_1" != "x$as_lineno_2" &&
23640  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23641
23642  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23643  # uniformly replaced by the line number.  The first 'sed' inserts a
23644  # line-number line after each line using $LINENO; the second 'sed'
23645  # does the real work.  The second script uses 'N' to pair each
23646  # line-number line with the line containing $LINENO, and appends
23647  # trailing '-' during substitution so that $LINENO is not a special
23648  # case at line end.
23649  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23650  # scripts with optimization help from Paolo Bonzini.  Blame Lee
23651  # E. McMahon (1931-1989) for sed's syntax.  :-)
23652  sed -n '
23653    p
23654    /[$]LINENO/=
23655  ' <$as_myself |
23656    sed '
23657      s/[$]LINENO.*/&-/
23658      t lineno
23659      b
23660      :lineno
23661      N
23662      :loop
23663      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23664      t loop
23665      s/-\n.*//
23666    ' >$as_me.lineno &&
23667  chmod +x "$as_me.lineno" ||
23668    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23669   { (exit 1); exit 1; }; }
23670
23671  # Don't try to exec as it changes $[0], causing all sort of problems
23672  # (the dirname of $[0] is not the place where we might find the
23673  # original and so on.  Autoconf is especially sensitive to this).
23674  . "./$as_me.lineno"
23675  # Exit status is that of the last command.
23676  exit
23677}
23678
23679
23680if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23681  as_dirname=dirname
23682else
23683  as_dirname=false
23684fi
23685
23686ECHO_C= ECHO_N= ECHO_T=
23687case `echo -n x` in
23688-n*)
23689  case `echo 'x\c'` in
23690  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23691  *)   ECHO_C='\c';;
23692  esac;;
23693*)
23694  ECHO_N='-n';;
23695esac
23696
23697if expr a : '\(a\)' >/dev/null 2>&1 &&
23698   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23699  as_expr=expr
23700else
23701  as_expr=false
23702fi
23703
23704rm -f conf$$ conf$$.exe conf$$.file
23705if test -d conf$$.dir; then
23706  rm -f conf$$.dir/conf$$.file
23707else
23708  rm -f conf$$.dir
23709  mkdir conf$$.dir
23710fi
23711echo >conf$$.file
23712if ln -s conf$$.file conf$$ 2>/dev/null; then
23713  as_ln_s='ln -s'
23714  # ... but there are two gotchas:
23715  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23716  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23717  # In both cases, we have to default to `cp -p'.
23718  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23719    as_ln_s='cp -p'
23720elif ln conf$$.file conf$$ 2>/dev/null; then
23721  as_ln_s=ln
23722else
23723  as_ln_s='cp -p'
23724fi
23725rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23726rmdir conf$$.dir 2>/dev/null
23727
23728if mkdir -p . 2>/dev/null; then
23729  as_mkdir_p=:
23730else
23731  test -d ./-p && rmdir ./-p
23732  as_mkdir_p=false
23733fi
23734
23735if test -x / >/dev/null 2>&1; then
23736  as_test_x='test -x'
23737else
23738  if ls -dL / >/dev/null 2>&1; then
23739    as_ls_L_option=L
23740  else
23741    as_ls_L_option=
23742  fi
23743  as_test_x='
23744    eval sh -c '\''
23745      if test -d "$1"; then
23746        test -d "$1/.";
23747      else
23748	case $1 in
23749        -*)set "./$1";;
23750	esac;
23751	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23752	???[sx]*):;;*)false;;esac;fi
23753    '\'' sh
23754  '
23755fi
23756as_executable_p=$as_test_x
23757
23758# Sed expression to map a string onto a valid CPP name.
23759as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23760
23761# Sed expression to map a string onto a valid variable name.
23762as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23763
23764
23765exec 6>&1
23766
23767# Save the log message, to keep $[0] and so on meaningful, and to
23768# report actual input values of CONFIG_FILES etc. instead of their
23769# values after options handling.
23770ac_log="
23771This file was extended by xf86-video-intel $as_me 2.4.0, which was
23772generated by GNU Autoconf 2.61.  Invocation command line was
23773
23774  CONFIG_FILES    = $CONFIG_FILES
23775  CONFIG_HEADERS  = $CONFIG_HEADERS
23776  CONFIG_LINKS    = $CONFIG_LINKS
23777  CONFIG_COMMANDS = $CONFIG_COMMANDS
23778  $ $0 $@
23779
23780on `(hostname || uname -n) 2>/dev/null | sed 1q`
23781"
23782
23783_ACEOF
23784
23785cat >>$CONFIG_STATUS <<_ACEOF
23786# Files that config.status was made for.
23787config_files="$ac_config_files"
23788config_headers="$ac_config_headers"
23789config_commands="$ac_config_commands"
23790
23791_ACEOF
23792
23793cat >>$CONFIG_STATUS <<\_ACEOF
23794ac_cs_usage="\
23795\`$as_me' instantiates files from templates according to the
23796current configuration.
23797
23798Usage: $0 [OPTIONS] [FILE]...
23799
23800  -h, --help       print this help, then exit
23801  -V, --version    print version number and configuration settings, then exit
23802  -q, --quiet      do not print progress messages
23803  -d, --debug      don't remove temporary files
23804      --recheck    update $as_me by reconfiguring in the same conditions
23805  --file=FILE[:TEMPLATE]
23806		   instantiate the configuration file FILE
23807  --header=FILE[:TEMPLATE]
23808		   instantiate the configuration header FILE
23809
23810Configuration files:
23811$config_files
23812
23813Configuration headers:
23814$config_headers
23815
23816Configuration commands:
23817$config_commands
23818
23819Report bugs to <bug-autoconf@gnu.org>."
23820
23821_ACEOF
23822cat >>$CONFIG_STATUS <<_ACEOF
23823ac_cs_version="\\
23824xf86-video-intel config.status 2.4.0
23825configured by $0, generated by GNU Autoconf 2.61,
23826  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23827
23828Copyright (C) 2006 Free Software Foundation, Inc.
23829This config.status script is free software; the Free Software Foundation
23830gives unlimited permission to copy, distribute and modify it."
23831
23832ac_pwd='$ac_pwd'
23833srcdir='$srcdir'
23834INSTALL='$INSTALL'
23835MKDIR_P='$MKDIR_P'
23836_ACEOF
23837
23838cat >>$CONFIG_STATUS <<\_ACEOF
23839# If no file are specified by the user, then we need to provide default
23840# value.  By we need to know if files were specified by the user.
23841ac_need_defaults=:
23842while test $# != 0
23843do
23844  case $1 in
23845  --*=*)
23846    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23847    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23848    ac_shift=:
23849    ;;
23850  *)
23851    ac_option=$1
23852    ac_optarg=$2
23853    ac_shift=shift
23854    ;;
23855  esac
23856
23857  case $ac_option in
23858  # Handling of the options.
23859  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23860    ac_cs_recheck=: ;;
23861  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23862    echo "$ac_cs_version"; exit ;;
23863  --debug | --debu | --deb | --de | --d | -d )
23864    debug=: ;;
23865  --file | --fil | --fi | --f )
23866    $ac_shift
23867    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23868    ac_need_defaults=false;;
23869  --header | --heade | --head | --hea )
23870    $ac_shift
23871    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23872    ac_need_defaults=false;;
23873  --he | --h)
23874    # Conflict between --help and --header
23875    { echo "$as_me: error: ambiguous option: $1
23876Try \`$0 --help' for more information." >&2
23877   { (exit 1); exit 1; }; };;
23878  --help | --hel | -h )
23879    echo "$ac_cs_usage"; exit ;;
23880  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23881  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23882    ac_cs_silent=: ;;
23883
23884  # This is an error.
23885  -*) { echo "$as_me: error: unrecognized option: $1
23886Try \`$0 --help' for more information." >&2
23887   { (exit 1); exit 1; }; } ;;
23888
23889  *) ac_config_targets="$ac_config_targets $1"
23890     ac_need_defaults=false ;;
23891
23892  esac
23893  shift
23894done
23895
23896ac_configure_extra_args=
23897
23898if $ac_cs_silent; then
23899  exec 6>/dev/null
23900  ac_configure_extra_args="$ac_configure_extra_args --silent"
23901fi
23902
23903_ACEOF
23904cat >>$CONFIG_STATUS <<_ACEOF
23905if \$ac_cs_recheck; then
23906  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23907  CONFIG_SHELL=$SHELL
23908  export CONFIG_SHELL
23909  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23910fi
23911
23912_ACEOF
23913cat >>$CONFIG_STATUS <<\_ACEOF
23914exec 5>>config.log
23915{
23916  echo
23917  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23918## Running $as_me. ##
23919_ASBOX
23920  echo "$ac_log"
23921} >&5
23922
23923_ACEOF
23924cat >>$CONFIG_STATUS <<_ACEOF
23925#
23926# INIT-COMMANDS
23927#
23928AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23929
23930_ACEOF
23931
23932cat >>$CONFIG_STATUS <<\_ACEOF
23933
23934# Handling of arguments.
23935for ac_config_target in $ac_config_targets
23936do
23937  case $ac_config_target in
23938    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23939    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23940    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23941    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23942    "src/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/Makefile" ;;
23943    "src/bios_reader/Makefile") CONFIG_FILES="$CONFIG_FILES src/bios_reader/Makefile" ;;
23944    "src/ch7017/Makefile") CONFIG_FILES="$CONFIG_FILES src/ch7017/Makefile" ;;
23945    "src/ch7xxx/Makefile") CONFIG_FILES="$CONFIG_FILES src/ch7xxx/Makefile" ;;
23946    "src/ivch/Makefile") CONFIG_FILES="$CONFIG_FILES src/ivch/Makefile" ;;
23947    "src/reg_dumper/Makefile") CONFIG_FILES="$CONFIG_FILES src/reg_dumper/Makefile" ;;
23948    "src/sil164/Makefile") CONFIG_FILES="$CONFIG_FILES src/sil164/Makefile" ;;
23949    "src/tfp410/Makefile") CONFIG_FILES="$CONFIG_FILES src/tfp410/Makefile" ;;
23950    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23951
23952  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23953echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23954   { (exit 1); exit 1; }; };;
23955  esac
23956done
23957
23958
23959# If the user did not use the arguments to specify the items to instantiate,
23960# then the envvar interface is used.  Set only those that are not.
23961# We use the long form for the default assignment because of an extremely
23962# bizarre bug on SunOS 4.1.3.
23963if $ac_need_defaults; then
23964  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23965  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23966  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23967fi
23968
23969# Have a temporary directory for convenience.  Make it in the build tree
23970# simply because there is no reason against having it here, and in addition,
23971# creating and moving files from /tmp can sometimes cause problems.
23972# Hook for its removal unless debugging.
23973# Note that there is a small window in which the directory will not be cleaned:
23974# after its creation but before its name has been assigned to `$tmp'.
23975$debug ||
23976{
23977  tmp=
23978  trap 'exit_status=$?
23979  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23980' 0
23981  trap '{ (exit 1); exit 1; }' 1 2 13 15
23982}
23983# Create a (secure) tmp directory for tmp files.
23984
23985{
23986  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23987  test -n "$tmp" && test -d "$tmp"
23988}  ||
23989{
23990  tmp=./conf$$-$RANDOM
23991  (umask 077 && mkdir "$tmp")
23992} ||
23993{
23994   echo "$me: cannot create a temporary directory in ." >&2
23995   { (exit 1); exit 1; }
23996}
23997
23998#
23999# Set up the sed scripts for CONFIG_FILES section.
24000#
24001
24002# No need to generate the scripts if there are no CONFIG_FILES.
24003# This happens for instance when ./config.status config.h
24004if test -n "$CONFIG_FILES"; then
24005
24006_ACEOF
24007
24008
24009
24010ac_delim='%!_!# '
24011for ac_last_try in false false false false false :; do
24012  cat >conf$$subs.sed <<_ACEOF
24013SHELL!$SHELL$ac_delim
24014PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24015PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24016PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24017PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24018PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24019PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24020exec_prefix!$exec_prefix$ac_delim
24021prefix!$prefix$ac_delim
24022program_transform_name!$program_transform_name$ac_delim
24023bindir!$bindir$ac_delim
24024sbindir!$sbindir$ac_delim
24025libexecdir!$libexecdir$ac_delim
24026datarootdir!$datarootdir$ac_delim
24027datadir!$datadir$ac_delim
24028sysconfdir!$sysconfdir$ac_delim
24029sharedstatedir!$sharedstatedir$ac_delim
24030localstatedir!$localstatedir$ac_delim
24031includedir!$includedir$ac_delim
24032oldincludedir!$oldincludedir$ac_delim
24033docdir!$docdir$ac_delim
24034infodir!$infodir$ac_delim
24035htmldir!$htmldir$ac_delim
24036dvidir!$dvidir$ac_delim
24037pdfdir!$pdfdir$ac_delim
24038psdir!$psdir$ac_delim
24039libdir!$libdir$ac_delim
24040localedir!$localedir$ac_delim
24041mandir!$mandir$ac_delim
24042DEFS!$DEFS$ac_delim
24043ECHO_C!$ECHO_C$ac_delim
24044ECHO_N!$ECHO_N$ac_delim
24045ECHO_T!$ECHO_T$ac_delim
24046LIBS!$LIBS$ac_delim
24047build_alias!$build_alias$ac_delim
24048host_alias!$host_alias$ac_delim
24049target_alias!$target_alias$ac_delim
24050INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24051INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24052INSTALL_DATA!$INSTALL_DATA$ac_delim
24053am__isrc!$am__isrc$ac_delim
24054CYGPATH_W!$CYGPATH_W$ac_delim
24055PACKAGE!$PACKAGE$ac_delim
24056VERSION!$VERSION$ac_delim
24057ACLOCAL!$ACLOCAL$ac_delim
24058AUTOCONF!$AUTOCONF$ac_delim
24059AUTOMAKE!$AUTOMAKE$ac_delim
24060AUTOHEADER!$AUTOHEADER$ac_delim
24061MAKEINFO!$MAKEINFO$ac_delim
24062install_sh!$install_sh$ac_delim
24063STRIP!$STRIP$ac_delim
24064INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24065mkdir_p!$mkdir_p$ac_delim
24066AWK!$AWK$ac_delim
24067SET_MAKE!$SET_MAKE$ac_delim
24068am__leading_dot!$am__leading_dot$ac_delim
24069AMTAR!$AMTAR$ac_delim
24070am__tar!$am__tar$ac_delim
24071am__untar!$am__untar$ac_delim
24072MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
24073MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
24074MAINT!$MAINT$ac_delim
24075build!$build$ac_delim
24076build_cpu!$build_cpu$ac_delim
24077build_vendor!$build_vendor$ac_delim
24078build_os!$build_os$ac_delim
24079host!$host$ac_delim
24080host_cpu!$host_cpu$ac_delim
24081host_vendor!$host_vendor$ac_delim
24082host_os!$host_os$ac_delim
24083CC!$CC$ac_delim
24084CFLAGS!$CFLAGS$ac_delim
24085LDFLAGS!$LDFLAGS$ac_delim
24086CPPFLAGS!$CPPFLAGS$ac_delim
24087ac_ct_CC!$ac_ct_CC$ac_delim
24088EXEEXT!$EXEEXT$ac_delim
24089OBJEXT!$OBJEXT$ac_delim
24090DEPDIR!$DEPDIR$ac_delim
24091am__include!$am__include$ac_delim
24092am__quote!$am__quote$ac_delim
24093AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24094AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24095AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24096CCDEPMODE!$CCDEPMODE$ac_delim
24097am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24098am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24099SED!$SED$ac_delim
24100GREP!$GREP$ac_delim
24101EGREP!$EGREP$ac_delim
24102LN_S!$LN_S$ac_delim
24103ECHO!$ECHO$ac_delim
24104AR!$AR$ac_delim
24105RANLIB!$RANLIB$ac_delim
24106DSYMUTIL!$DSYMUTIL$ac_delim
24107NMEDIT!$NMEDIT$ac_delim
24108CPP!$CPP$ac_delim
24109CXX!$CXX$ac_delim
24110_ACEOF
24111
24112  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24113    break
24114  elif $ac_last_try; then
24115    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24116echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24117   { (exit 1); exit 1; }; }
24118  else
24119    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24120  fi
24121done
24122
24123ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24124if test -n "$ac_eof"; then
24125  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24126  ac_eof=`expr $ac_eof + 1`
24127fi
24128
24129cat >>$CONFIG_STATUS <<_ACEOF
24130cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24131/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24132_ACEOF
24133sed '
24134s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24135s/^/s,@/; s/!/@,|#_!!_#|/
24136:n
24137t n
24138s/'"$ac_delim"'$/,g/; t
24139s/$/\\/; p
24140N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24141' >>$CONFIG_STATUS <conf$$subs.sed
24142rm -f conf$$subs.sed
24143cat >>$CONFIG_STATUS <<_ACEOF
24144CEOF$ac_eof
24145_ACEOF
24146
24147
24148ac_delim='%!_!# '
24149for ac_last_try in false false false false false :; do
24150  cat >conf$$subs.sed <<_ACEOF
24151CXXFLAGS!$CXXFLAGS$ac_delim
24152ac_ct_CXX!$ac_ct_CXX$ac_delim
24153CXXDEPMODE!$CXXDEPMODE$ac_delim
24154am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24155am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24156CXXCPP!$CXXCPP$ac_delim
24157F77!$F77$ac_delim
24158FFLAGS!$FFLAGS$ac_delim
24159ac_ct_F77!$ac_ct_F77$ac_delim
24160LIBTOOL!$LIBTOOL$ac_delim
24161DOLT_BASH!$DOLT_BASH$ac_delim
24162LTCOMPILE!$LTCOMPILE$ac_delim
24163LTCXXCOMPILE!$LTCXXCOMPILE$ac_delim
24164gen4asm!$gen4asm$ac_delim
24165HAVE_GEN4ASM_TRUE!$HAVE_GEN4ASM_TRUE$ac_delim
24166HAVE_GEN4ASM_FALSE!$HAVE_GEN4ASM_FALSE$ac_delim
24167PKG_CONFIG!$PKG_CONFIG$ac_delim
24168XORG_CFLAGS!$XORG_CFLAGS$ac_delim
24169XORG_LIBS!$XORG_LIBS$ac_delim
24170PCIACCESS_CFLAGS!$PCIACCESS_CFLAGS$ac_delim
24171PCIACCESS_LIBS!$PCIACCESS_LIBS$ac_delim
24172XSERVER_LIBPCIACCESS_TRUE!$XSERVER_LIBPCIACCESS_TRUE$ac_delim
24173XSERVER_LIBPCIACCESS_FALSE!$XSERVER_LIBPCIACCESS_FALSE$ac_delim
24174LIBPCIACCESS_TRUE!$LIBPCIACCESS_TRUE$ac_delim
24175LIBPCIACCESS_FALSE!$LIBPCIACCESS_FALSE$ac_delim
24176XMODES_TRUE!$XMODES_TRUE$ac_delim
24177XMODES_FALSE!$XMODES_FALSE$ac_delim
24178XMODES_CFLAGS!$XMODES_CFLAGS$ac_delim
24179DRI_TRUE!$DRI_TRUE$ac_delim
24180DRI_FALSE!$DRI_FALSE$ac_delim
24181DRI_CFLAGS!$DRI_CFLAGS$ac_delim
24182DRI_LIBS!$DRI_LIBS$ac_delim
24183DRI_MM_CFLAGS!$DRI_MM_CFLAGS$ac_delim
24184DRI_MM_LIBS!$DRI_MM_LIBS$ac_delim
24185VIDEO_DEBUG_TRUE!$VIDEO_DEBUG_TRUE$ac_delim
24186VIDEO_DEBUG_FALSE!$VIDEO_DEBUG_FALSE$ac_delim
24187XVMCLIB_CFLAGS!$XVMCLIB_CFLAGS$ac_delim
24188XVMCLIB_LIBS!$XVMCLIB_LIBS$ac_delim
24189XVMC_TRUE!$XVMC_TRUE$ac_delim
24190XVMC_FALSE!$XVMC_FALSE$ac_delim
24191WARN_CFLAGS!$WARN_CFLAGS$ac_delim
24192moduledir!$moduledir$ac_delim
24193DRIVER_NAME!$DRIVER_NAME$ac_delim
24194APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
24195LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
24196FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
24197MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
24198DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
24199ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
24200APP_MAN_DIR!$APP_MAN_DIR$ac_delim
24201LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
24202FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
24203MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
24204DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
24205ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
24206LINUXDOC!$LINUXDOC$ac_delim
24207PS2PDF!$PS2PDF$ac_delim
24208BUILD_LINUXDOC_TRUE!$BUILD_LINUXDOC_TRUE$ac_delim
24209BUILD_LINUXDOC_FALSE!$BUILD_LINUXDOC_FALSE$ac_delim
24210BUILD_PDFDOC_TRUE!$BUILD_PDFDOC_TRUE$ac_delim
24211BUILD_PDFDOC_FALSE!$BUILD_PDFDOC_FALSE$ac_delim
24212MAKE_TEXT!$MAKE_TEXT$ac_delim
24213MAKE_PS!$MAKE_PS$ac_delim
24214MAKE_PDF!$MAKE_PDF$ac_delim
24215MAKE_HTML!$MAKE_HTML$ac_delim
24216LIBOBJS!$LIBOBJS$ac_delim
24217LTLIBOBJS!$LTLIBOBJS$ac_delim
24218_ACEOF
24219
24220  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
24221    break
24222  elif $ac_last_try; then
24223    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24224echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24225   { (exit 1); exit 1; }; }
24226  else
24227    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24228  fi
24229done
24230
24231ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24232if test -n "$ac_eof"; then
24233  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24234  ac_eof=`expr $ac_eof + 1`
24235fi
24236
24237cat >>$CONFIG_STATUS <<_ACEOF
24238cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24239/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24240_ACEOF
24241sed '
24242s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24243s/^/s,@/; s/!/@,|#_!!_#|/
24244:n
24245t n
24246s/'"$ac_delim"'$/,g/; t
24247s/$/\\/; p
24248N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24249' >>$CONFIG_STATUS <conf$$subs.sed
24250rm -f conf$$subs.sed
24251cat >>$CONFIG_STATUS <<_ACEOF
24252:end
24253s/|#_!!_#|//g
24254CEOF$ac_eof
24255_ACEOF
24256
24257
24258# VPATH may cause trouble with some makes, so we remove $(srcdir),
24259# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24260# trailing colons and then remove the whole line if VPATH becomes empty
24261# (actually we leave an empty line to preserve line numbers).
24262if test "x$srcdir" = x.; then
24263  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
24264s/:*\$(srcdir):*/:/
24265s/:*\${srcdir}:*/:/
24266s/:*@srcdir@:*/:/
24267s/^\([^=]*=[	 ]*\):*/\1/
24268s/:*$//
24269s/^[^=]*=[	 ]*$//
24270}'
24271fi
24272
24273cat >>$CONFIG_STATUS <<\_ACEOF
24274fi # test -n "$CONFIG_FILES"
24275
24276
24277for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24278do
24279  case $ac_tag in
24280  :[FHLC]) ac_mode=$ac_tag; continue;;
24281  esac
24282  case $ac_mode$ac_tag in
24283  :[FHL]*:*);;
24284  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24285echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24286   { (exit 1); exit 1; }; };;
24287  :[FH]-) ac_tag=-:-;;
24288  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24289  esac
24290  ac_save_IFS=$IFS
24291  IFS=:
24292  set x $ac_tag
24293  IFS=$ac_save_IFS
24294  shift
24295  ac_file=$1
24296  shift
24297
24298  case $ac_mode in
24299  :L) ac_source=$1;;
24300  :[FH])
24301    ac_file_inputs=
24302    for ac_f
24303    do
24304      case $ac_f in
24305      -) ac_f="$tmp/stdin";;
24306      *) # Look for the file first in the build tree, then in the source tree
24307	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
24308	 # because $ac_f cannot contain `:'.
24309	 test -f "$ac_f" ||
24310	   case $ac_f in
24311	   [\\/$]*) false;;
24312	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24313	   esac ||
24314	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24315echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24316   { (exit 1); exit 1; }; };;
24317      esac
24318      ac_file_inputs="$ac_file_inputs $ac_f"
24319    done
24320
24321    # Let's still pretend it is `configure' which instantiates (i.e., don't
24322    # use $as_me), people would be surprised to read:
24323    #    /* config.h.  Generated by config.status.  */
24324    configure_input="Generated from "`IFS=:
24325	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24326    if test x"$ac_file" != x-; then
24327      configure_input="$ac_file.  $configure_input"
24328      { echo "$as_me:$LINENO: creating $ac_file" >&5
24329echo "$as_me: creating $ac_file" >&6;}
24330    fi
24331
24332    case $ac_tag in
24333    *:-:* | *:-) cat >"$tmp/stdin";;
24334    esac
24335    ;;
24336  esac
24337
24338  ac_dir=`$as_dirname -- "$ac_file" ||
24339$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24340	 X"$ac_file" : 'X\(//\)[^/]' \| \
24341	 X"$ac_file" : 'X\(//\)$' \| \
24342	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24343echo X"$ac_file" |
24344    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24345	    s//\1/
24346	    q
24347	  }
24348	  /^X\(\/\/\)[^/].*/{
24349	    s//\1/
24350	    q
24351	  }
24352	  /^X\(\/\/\)$/{
24353	    s//\1/
24354	    q
24355	  }
24356	  /^X\(\/\).*/{
24357	    s//\1/
24358	    q
24359	  }
24360	  s/.*/./; q'`
24361  { as_dir="$ac_dir"
24362  case $as_dir in #(
24363  -*) as_dir=./$as_dir;;
24364  esac
24365  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24366    as_dirs=
24367    while :; do
24368      case $as_dir in #(
24369      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24370      *) as_qdir=$as_dir;;
24371      esac
24372      as_dirs="'$as_qdir' $as_dirs"
24373      as_dir=`$as_dirname -- "$as_dir" ||
24374$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24375	 X"$as_dir" : 'X\(//\)[^/]' \| \
24376	 X"$as_dir" : 'X\(//\)$' \| \
24377	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24378echo X"$as_dir" |
24379    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24380	    s//\1/
24381	    q
24382	  }
24383	  /^X\(\/\/\)[^/].*/{
24384	    s//\1/
24385	    q
24386	  }
24387	  /^X\(\/\/\)$/{
24388	    s//\1/
24389	    q
24390	  }
24391	  /^X\(\/\).*/{
24392	    s//\1/
24393	    q
24394	  }
24395	  s/.*/./; q'`
24396      test -d "$as_dir" && break
24397    done
24398    test -z "$as_dirs" || eval "mkdir $as_dirs"
24399  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24400echo "$as_me: error: cannot create directory $as_dir" >&2;}
24401   { (exit 1); exit 1; }; }; }
24402  ac_builddir=.
24403
24404case "$ac_dir" in
24405.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24406*)
24407  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24408  # A ".." for each directory in $ac_dir_suffix.
24409  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24410  case $ac_top_builddir_sub in
24411  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24412  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24413  esac ;;
24414esac
24415ac_abs_top_builddir=$ac_pwd
24416ac_abs_builddir=$ac_pwd$ac_dir_suffix
24417# for backward compatibility:
24418ac_top_builddir=$ac_top_build_prefix
24419
24420case $srcdir in
24421  .)  # We are building in place.
24422    ac_srcdir=.
24423    ac_top_srcdir=$ac_top_builddir_sub
24424    ac_abs_top_srcdir=$ac_pwd ;;
24425  [\\/]* | ?:[\\/]* )  # Absolute name.
24426    ac_srcdir=$srcdir$ac_dir_suffix;
24427    ac_top_srcdir=$srcdir
24428    ac_abs_top_srcdir=$srcdir ;;
24429  *) # Relative name.
24430    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24431    ac_top_srcdir=$ac_top_build_prefix$srcdir
24432    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24433esac
24434ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24435
24436
24437  case $ac_mode in
24438  :F)
24439  #
24440  # CONFIG_FILE
24441  #
24442
24443  case $INSTALL in
24444  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24445  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24446  esac
24447  ac_MKDIR_P=$MKDIR_P
24448  case $MKDIR_P in
24449  [\\/$]* | ?:[\\/]* ) ;;
24450  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24451  esac
24452_ACEOF
24453
24454cat >>$CONFIG_STATUS <<\_ACEOF
24455# If the template does not know about datarootdir, expand it.
24456# FIXME: This hack should be removed a few years after 2.60.
24457ac_datarootdir_hack=; ac_datarootdir_seen=
24458
24459case `sed -n '/datarootdir/ {
24460  p
24461  q
24462}
24463/@datadir@/p
24464/@docdir@/p
24465/@infodir@/p
24466/@localedir@/p
24467/@mandir@/p
24468' $ac_file_inputs` in
24469*datarootdir*) ac_datarootdir_seen=yes;;
24470*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24471  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24472echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24473_ACEOF
24474cat >>$CONFIG_STATUS <<_ACEOF
24475  ac_datarootdir_hack='
24476  s&@datadir@&$datadir&g
24477  s&@docdir@&$docdir&g
24478  s&@infodir@&$infodir&g
24479  s&@localedir@&$localedir&g
24480  s&@mandir@&$mandir&g
24481    s&\\\${datarootdir}&$datarootdir&g' ;;
24482esac
24483_ACEOF
24484
24485# Neutralize VPATH when `$srcdir' = `.'.
24486# Shell code in configure.ac might set extrasub.
24487# FIXME: do we really want to maintain this feature?
24488cat >>$CONFIG_STATUS <<_ACEOF
24489  sed "$ac_vpsub
24490$extrasub
24491_ACEOF
24492cat >>$CONFIG_STATUS <<\_ACEOF
24493:t
24494/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24495s&@configure_input@&$configure_input&;t t
24496s&@top_builddir@&$ac_top_builddir_sub&;t t
24497s&@srcdir@&$ac_srcdir&;t t
24498s&@abs_srcdir@&$ac_abs_srcdir&;t t
24499s&@top_srcdir@&$ac_top_srcdir&;t t
24500s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24501s&@builddir@&$ac_builddir&;t t
24502s&@abs_builddir@&$ac_abs_builddir&;t t
24503s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24504s&@INSTALL@&$ac_INSTALL&;t t
24505s&@MKDIR_P@&$ac_MKDIR_P&;t t
24506$ac_datarootdir_hack
24507" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24508
24509test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24510  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24511  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24512  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24513which seems to be undefined.  Please make sure it is defined." >&5
24514echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24515which seems to be undefined.  Please make sure it is defined." >&2;}
24516
24517  rm -f "$tmp/stdin"
24518  case $ac_file in
24519  -) cat "$tmp/out"; rm -f "$tmp/out";;
24520  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24521  esac
24522 ;;
24523  :H)
24524  #
24525  # CONFIG_HEADER
24526  #
24527_ACEOF
24528
24529# Transform confdefs.h into a sed script `conftest.defines', that
24530# substitutes the proper values into config.h.in to produce config.h.
24531rm -f conftest.defines conftest.tail
24532# First, append a space to every undef/define line, to ease matching.
24533echo 's/$/ /' >conftest.defines
24534# Then, protect against being on the right side of a sed subst, or in
24535# an unquoted here document, in config.status.  If some macros were
24536# called several times there might be several #defines for the same
24537# symbol, which is useless.  But do not sort them, since the last
24538# AC_DEFINE must be honored.
24539ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24540# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24541# NAME is the cpp macro being defined, VALUE is the value it is being given.
24542# PARAMS is the parameter list in the macro definition--in most cases, it's
24543# just an empty string.
24544ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
24545ac_dB='\\)[	 (].*,\\1define\\2'
24546ac_dC=' '
24547ac_dD=' ,'
24548
24549uniq confdefs.h |
24550  sed -n '
24551	t rset
24552	:rset
24553	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
24554	t ok
24555	d
24556	:ok
24557	s/[\\&,]/\\&/g
24558	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24559	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24560  ' >>conftest.defines
24561
24562# Remove the space that was appended to ease matching.
24563# Then replace #undef with comments.  This is necessary, for
24564# example, in the case of _POSIX_SOURCE, which is predefined and required
24565# on some systems where configure will not decide to define it.
24566# (The regexp can be short, since the line contains either #define or #undef.)
24567echo 's/ $//
24568s,^[	 #]*u.*,/* & */,' >>conftest.defines
24569
24570# Break up conftest.defines:
24571ac_max_sed_lines=50
24572
24573# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24574# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24575# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24576# et cetera.
24577ac_in='$ac_file_inputs'
24578ac_out='"$tmp/out1"'
24579ac_nxt='"$tmp/out2"'
24580
24581while :
24582do
24583  # Write a here document:
24584    cat >>$CONFIG_STATUS <<_ACEOF
24585    # First, check the format of the line:
24586    cat >"\$tmp/defines.sed" <<\\CEOF
24587/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
24588/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
24589b
24590:def
24591_ACEOF
24592  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24593  echo 'CEOF
24594    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24595  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24596  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24597  grep . conftest.tail >/dev/null || break
24598  rm -f conftest.defines
24599  mv conftest.tail conftest.defines
24600done
24601rm -f conftest.defines conftest.tail
24602
24603echo "ac_result=$ac_in" >>$CONFIG_STATUS
24604cat >>$CONFIG_STATUS <<\_ACEOF
24605  if test x"$ac_file" != x-; then
24606    echo "/* $configure_input  */" >"$tmp/config.h"
24607    cat "$ac_result" >>"$tmp/config.h"
24608    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24609      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24610echo "$as_me: $ac_file is unchanged" >&6;}
24611    else
24612      rm -f $ac_file
24613      mv "$tmp/config.h" $ac_file
24614    fi
24615  else
24616    echo "/* $configure_input  */"
24617    cat "$ac_result"
24618  fi
24619  rm -f "$tmp/out12"
24620# Compute $ac_file's index in $config_headers.
24621_am_arg=$ac_file
24622_am_stamp_count=1
24623for _am_header in $config_headers :; do
24624  case $_am_header in
24625    $_am_arg | $_am_arg:* )
24626      break ;;
24627    * )
24628      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24629  esac
24630done
24631echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24632$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24633	 X"$_am_arg" : 'X\(//\)[^/]' \| \
24634	 X"$_am_arg" : 'X\(//\)$' \| \
24635	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24636echo X"$_am_arg" |
24637    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24638	    s//\1/
24639	    q
24640	  }
24641	  /^X\(\/\/\)[^/].*/{
24642	    s//\1/
24643	    q
24644	  }
24645	  /^X\(\/\/\)$/{
24646	    s//\1/
24647	    q
24648	  }
24649	  /^X\(\/\).*/{
24650	    s//\1/
24651	    q
24652	  }
24653	  s/.*/./; q'`/stamp-h$_am_stamp_count
24654 ;;
24655
24656  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24657echo "$as_me: executing $ac_file commands" >&6;}
24658 ;;
24659  esac
24660
24661
24662  case $ac_file$ac_mode in
24663    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24664  # Strip MF so we end up with the name of the file.
24665  mf=`echo "$mf" | sed -e 's/:.*$//'`
24666  # Check whether this is an Automake generated Makefile or not.
24667  # We used to match only the files named `Makefile.in', but
24668  # some people rename them; so instead we look at the file content.
24669  # Grep'ing the first line is not enough: some people post-process
24670  # each Makefile.in and add a new line on top of each file to say so.
24671  # Grep'ing the whole file is not good either: AIX grep has a line
24672  # limit of 2048, but all sed's we know have understand at least 4000.
24673  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24674    dirpart=`$as_dirname -- "$mf" ||
24675$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24676	 X"$mf" : 'X\(//\)[^/]' \| \
24677	 X"$mf" : 'X\(//\)$' \| \
24678	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24679echo X"$mf" |
24680    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24681	    s//\1/
24682	    q
24683	  }
24684	  /^X\(\/\/\)[^/].*/{
24685	    s//\1/
24686	    q
24687	  }
24688	  /^X\(\/\/\)$/{
24689	    s//\1/
24690	    q
24691	  }
24692	  /^X\(\/\).*/{
24693	    s//\1/
24694	    q
24695	  }
24696	  s/.*/./; q'`
24697  else
24698    continue
24699  fi
24700  # Extract the definition of DEPDIR, am__include, and am__quote
24701  # from the Makefile without running `make'.
24702  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24703  test -z "$DEPDIR" && continue
24704  am__include=`sed -n 's/^am__include = //p' < "$mf"`
24705  test -z "am__include" && continue
24706  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24707  # When using ansi2knr, U may be empty or an underscore; expand it
24708  U=`sed -n 's/^U = //p' < "$mf"`
24709  # Find all dependency output files, they are included files with
24710  # $(DEPDIR) in their names.  We invoke sed twice because it is the
24711  # simplest approach to changing $(DEPDIR) to its actual value in the
24712  # expansion.
24713  for file in `sed -n "
24714    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24715       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24716    # Make sure the directory exists.
24717    test -f "$dirpart/$file" && continue
24718    fdir=`$as_dirname -- "$file" ||
24719$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24720	 X"$file" : 'X\(//\)[^/]' \| \
24721	 X"$file" : 'X\(//\)$' \| \
24722	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24723echo X"$file" |
24724    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24725	    s//\1/
24726	    q
24727	  }
24728	  /^X\(\/\/\)[^/].*/{
24729	    s//\1/
24730	    q
24731	  }
24732	  /^X\(\/\/\)$/{
24733	    s//\1/
24734	    q
24735	  }
24736	  /^X\(\/\).*/{
24737	    s//\1/
24738	    q
24739	  }
24740	  s/.*/./; q'`
24741    { as_dir=$dirpart/$fdir
24742  case $as_dir in #(
24743  -*) as_dir=./$as_dir;;
24744  esac
24745  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24746    as_dirs=
24747    while :; do
24748      case $as_dir in #(
24749      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24750      *) as_qdir=$as_dir;;
24751      esac
24752      as_dirs="'$as_qdir' $as_dirs"
24753      as_dir=`$as_dirname -- "$as_dir" ||
24754$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24755	 X"$as_dir" : 'X\(//\)[^/]' \| \
24756	 X"$as_dir" : 'X\(//\)$' \| \
24757	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24758echo X"$as_dir" |
24759    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24760	    s//\1/
24761	    q
24762	  }
24763	  /^X\(\/\/\)[^/].*/{
24764	    s//\1/
24765	    q
24766	  }
24767	  /^X\(\/\/\)$/{
24768	    s//\1/
24769	    q
24770	  }
24771	  /^X\(\/\).*/{
24772	    s//\1/
24773	    q
24774	  }
24775	  s/.*/./; q'`
24776      test -d "$as_dir" && break
24777    done
24778    test -z "$as_dirs" || eval "mkdir $as_dirs"
24779  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24780echo "$as_me: error: cannot create directory $as_dir" >&2;}
24781   { (exit 1); exit 1; }; }; }
24782    # echo "creating $dirpart/$file"
24783    echo '# dummy' > "$dirpart/$file"
24784  done
24785done
24786 ;;
24787
24788  esac
24789done # for ac_tag
24790
24791
24792{ (exit 0); exit 0; }
24793_ACEOF
24794chmod +x $CONFIG_STATUS
24795ac_clean_files=$ac_clean_files_save
24796
24797
24798# configure is writing to config.log, and then calls config.status.
24799# config.status does its own redirection, appending to config.log.
24800# Unfortunately, on DOS this fails, as config.log is still kept open
24801# by configure, so config.status won't be able to write to it; its
24802# output is simply discarded.  So we exec the FD to /dev/null,
24803# effectively closing config.log, so it can be properly (re)opened and
24804# appended to by config.status.  When coming back to configure, we
24805# need to make the FD available again.
24806if test "$no_create" != yes; then
24807  ac_cs_success=:
24808  ac_config_status_args=
24809  test "$silent" = yes &&
24810    ac_config_status_args="$ac_config_status_args --quiet"
24811  exec 5>/dev/null
24812  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24813  exec 5>>config.log
24814  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24815  # would make configure fail if this is the last instruction.
24816  $ac_cs_success || { (exit 1); exit 1; }
24817fi
24818
24819