configure revision 1fd23544
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for xf86-video-sis 0.10.1.
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, 2007, 2008 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  # Pre-4.2 versions of Zsh do 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
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587echo=${ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $echo works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<EOF
606$*
607EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$ECHO"; then
616if test "X${echo_test_string+set}" != Xset; then
617# find a string as large as possible, as long as the shell can cope with it
618  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621       echo_test_string=`eval $cmd` &&
622       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623    then
624      break
625    fi
626  done
627fi
628
629if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631   test "X$echo_testing_string" = "X$echo_test_string"; then
632  :
633else
634  # The Solaris, AIX, and Digital Unix default echo programs unquote
635  # backslashes.  This makes it impossible to quote backslashes using
636  #   echo "$something" | sed 's/\\/\\\\/g'
637  #
638  # So, first we look for a working echo in the user's PATH.
639
640  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641  for dir in $PATH /usr/ucb; do
642    IFS="$lt_save_ifs"
643    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646       test "X$echo_testing_string" = "X$echo_test_string"; then
647      echo="$dir/echo"
648      break
649    fi
650  done
651  IFS="$lt_save_ifs"
652
653  if test "X$echo" = Xecho; then
654    # We didn't find a better echo, so look for alternatives.
655    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657       test "X$echo_testing_string" = "X$echo_test_string"; then
658      # This shell has a builtin print -r that does the trick.
659      echo='print -r'
660    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661	 test "X$CONFIG_SHELL" != X/bin/ksh; then
662      # If we have ksh, try running configure again with it.
663      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664      export ORIGINAL_CONFIG_SHELL
665      CONFIG_SHELL=/bin/ksh
666      export CONFIG_SHELL
667      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668    else
669      # Try using printf.
670      echo='printf %s\n'
671      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673	 test "X$echo_testing_string" = "X$echo_test_string"; then
674	# Cool, printf works
675	:
676      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677	   test "X$echo_testing_string" = 'X\t' &&
678	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679	   test "X$echo_testing_string" = "X$echo_test_string"; then
680	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681	export CONFIG_SHELL
682	SHELL="$CONFIG_SHELL"
683	export SHELL
684	echo="$CONFIG_SHELL $0 --fallback-echo"
685      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686	   test "X$echo_testing_string" = 'X\t' &&
687	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688	   test "X$echo_testing_string" = "X$echo_test_string"; then
689	echo="$CONFIG_SHELL $0 --fallback-echo"
690      else
691	# maybe with a smaller string...
692	prev=:
693
694	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696	  then
697	    break
698	  fi
699	  prev="$cmd"
700	done
701
702	if test "$prev" != 'sed 50q "$0"'; then
703	  echo_test_string=`eval $prev`
704	  export echo_test_string
705	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706	else
707	  # Oops.  We lost completely, so just stick with echo.
708	  echo=echo
709	fi
710      fi
711    fi
712  fi
713fi
714fi
715
716# Copy echo and quote the copy suitably for passing to libtool from
717# the Makefile, instead of quoting the original, which is used later.
718ECHO=$echo
719if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721fi
722
723
724
725
726tagnames=${tagnames+${tagnames},}CXX
727
728tagnames=${tagnames+${tagnames},}F77
729
730exec 7<&0 </dev/null 6>&1
731
732# Name of the host.
733# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734# so uname gets run too.
735ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737#
738# Initializations.
739#
740ac_default_prefix=/usr/local
741ac_clean_files=
742ac_config_libobj_dir=.
743LIBOBJS=
744cross_compiling=no
745subdirs=
746MFLAGS=
747MAKEFLAGS=
748SHELL=${CONFIG_SHELL-/bin/sh}
749
750# Identity of this package.
751PACKAGE_NAME='xf86-video-sis'
752PACKAGE_TARNAME='xf86-video-sis'
753PACKAGE_VERSION='0.10.1'
754PACKAGE_STRING='xf86-video-sis 0.10.1'
755PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
756
757ac_unique_file="Makefile.am"
758# Factoring default headers for most tests.
759ac_includes_default="\
760#include <stdio.h>
761#ifdef HAVE_SYS_TYPES_H
762# include <sys/types.h>
763#endif
764#ifdef HAVE_SYS_STAT_H
765# include <sys/stat.h>
766#endif
767#ifdef STDC_HEADERS
768# include <stdlib.h>
769# include <stddef.h>
770#else
771# ifdef HAVE_STDLIB_H
772#  include <stdlib.h>
773# endif
774#endif
775#ifdef HAVE_STRING_H
776# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777#  include <memory.h>
778# endif
779# include <string.h>
780#endif
781#ifdef HAVE_STRINGS_H
782# include <strings.h>
783#endif
784#ifdef HAVE_INTTYPES_H
785# include <inttypes.h>
786#endif
787#ifdef HAVE_STDINT_H
788# include <stdint.h>
789#endif
790#ifdef HAVE_UNISTD_H
791# include <unistd.h>
792#endif"
793
794ac_subst_vars='LTLIBOBJS
795LIBOBJS
796MAKE_HTML
797MAKE_PDF
798MAKE_PS
799MAKE_TEXT
800BUILD_PDFDOC_FALSE
801BUILD_PDFDOC_TRUE
802BUILD_LINUXDOC_FALSE
803BUILD_LINUXDOC_TRUE
804PS2PDF
805LINUXDOC
806ADMIN_MAN_DIR
807DRIVER_MAN_DIR
808MISC_MAN_DIR
809FILE_MAN_DIR
810LIB_MAN_DIR
811APP_MAN_DIR
812ADMIN_MAN_SUFFIX
813DRIVER_MAN_SUFFIX
814MISC_MAN_SUFFIX
815FILE_MAN_SUFFIX
816LIB_MAN_SUFFIX
817APP_MAN_SUFFIX
818DRIVER_NAME
819moduledir
820XSERVER_LIBPCIACCESS_FALSE
821XSERVER_LIBPCIACCESS_TRUE
822PCIACCESS_LIBS
823PCIACCESS_CFLAGS
824DRI_LIBS
825DRI_CFLAGS
826DRI_FALSE
827DRI_TRUE
828XORG_LIBS
829XORG_CFLAGS
830PKG_CONFIG
831RAWCPPFLAGS
832RAWCPP
833LIBTOOL
834ac_ct_F77
835FFLAGS
836F77
837CXXCPP
838am__fastdepCXX_FALSE
839am__fastdepCXX_TRUE
840CXXDEPMODE
841ac_ct_CXX
842CXXFLAGS
843CXX
844CPP
845NMEDIT
846DSYMUTIL
847RANLIB
848AR
849ECHO
850LN_S
851EGREP
852GREP
853SED
854am__fastdepCC_FALSE
855am__fastdepCC_TRUE
856CCDEPMODE
857AMDEPBACKSLASH
858AMDEP_FALSE
859AMDEP_TRUE
860am__quote
861am__include
862DEPDIR
863OBJEXT
864EXEEXT
865ac_ct_CC
866CPPFLAGS
867LDFLAGS
868CFLAGS
869CC
870host_os
871host_vendor
872host_cpu
873host
874build_os
875build_vendor
876build_cpu
877build
878MAINT
879MAINTAINER_MODE_FALSE
880MAINTAINER_MODE_TRUE
881am__untar
882am__tar
883AMTAR
884am__leading_dot
885SET_MAKE
886AWK
887mkdir_p
888MKDIR_P
889INSTALL_STRIP_PROGRAM
890STRIP
891install_sh
892MAKEINFO
893AUTOHEADER
894AUTOMAKE
895AUTOCONF
896ACLOCAL
897VERSION
898PACKAGE
899CYGPATH_W
900am__isrc
901INSTALL_DATA
902INSTALL_SCRIPT
903INSTALL_PROGRAM
904target_alias
905host_alias
906build_alias
907LIBS
908ECHO_T
909ECHO_N
910ECHO_C
911DEFS
912mandir
913localedir
914libdir
915psdir
916pdfdir
917dvidir
918htmldir
919infodir
920docdir
921oldincludedir
922includedir
923localstatedir
924sharedstatedir
925sysconfdir
926datadir
927datarootdir
928libexecdir
929sbindir
930bindir
931program_transform_name
932prefix
933exec_prefix
934PACKAGE_BUGREPORT
935PACKAGE_STRING
936PACKAGE_VERSION
937PACKAGE_TARNAME
938PACKAGE_NAME
939PATH_SEPARATOR
940SHELL'
941ac_subst_files=''
942ac_user_opts='
943enable_option_checking
944enable_maintainer_mode
945enable_static
946enable_shared
947enable_fast_install
948enable_dependency_tracking
949with_gnu_ld
950enable_libtool_lock
951with_pic
952with_tags
953with_xorg_module_dir
954enable_dri
955with_release_version
956'
957      ac_precious_vars='build_alias
958host_alias
959target_alias
960CC
961CFLAGS
962LDFLAGS
963LIBS
964CPPFLAGS
965CPP
966CXX
967CXXFLAGS
968CCC
969CXXCPP
970F77
971FFLAGS
972PKG_CONFIG
973XORG_CFLAGS
974XORG_LIBS
975DRI_CFLAGS
976DRI_LIBS
977PCIACCESS_CFLAGS
978PCIACCESS_LIBS'
979
980
981# Initialize some variables set by options.
982ac_init_help=
983ac_init_version=false
984ac_unrecognized_opts=
985ac_unrecognized_sep=
986# The variables have the same names as the options, with
987# dashes changed to underlines.
988cache_file=/dev/null
989exec_prefix=NONE
990no_create=
991no_recursion=
992prefix=NONE
993program_prefix=NONE
994program_suffix=NONE
995program_transform_name=s,x,x,
996silent=
997site=
998srcdir=
999verbose=
1000x_includes=NONE
1001x_libraries=NONE
1002
1003# Installation directory options.
1004# These are left unexpanded so users can "make install exec_prefix=/foo"
1005# and all the variables that are supposed to be based on exec_prefix
1006# by default will actually change.
1007# Use braces instead of parens because sh, perl, etc. also accept them.
1008# (The list follows the same order as the GNU Coding Standards.)
1009bindir='${exec_prefix}/bin'
1010sbindir='${exec_prefix}/sbin'
1011libexecdir='${exec_prefix}/libexec'
1012datarootdir='${prefix}/share'
1013datadir='${datarootdir}'
1014sysconfdir='${prefix}/etc'
1015sharedstatedir='${prefix}/com'
1016localstatedir='${prefix}/var'
1017includedir='${prefix}/include'
1018oldincludedir='/usr/include'
1019docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1020infodir='${datarootdir}/info'
1021htmldir='${docdir}'
1022dvidir='${docdir}'
1023pdfdir='${docdir}'
1024psdir='${docdir}'
1025libdir='${exec_prefix}/lib'
1026localedir='${datarootdir}/locale'
1027mandir='${datarootdir}/man'
1028
1029ac_prev=
1030ac_dashdash=
1031for ac_option
1032do
1033  # If the previous option needs an argument, assign it.
1034  if test -n "$ac_prev"; then
1035    eval $ac_prev=\$ac_option
1036    ac_prev=
1037    continue
1038  fi
1039
1040  case $ac_option in
1041  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1042  *)	ac_optarg=yes ;;
1043  esac
1044
1045  # Accept the important Cygnus configure options, so we can diagnose typos.
1046
1047  case $ac_dashdash$ac_option in
1048  --)
1049    ac_dashdash=yes ;;
1050
1051  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1052    ac_prev=bindir ;;
1053  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1054    bindir=$ac_optarg ;;
1055
1056  -build | --build | --buil | --bui | --bu)
1057    ac_prev=build_alias ;;
1058  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1059    build_alias=$ac_optarg ;;
1060
1061  -cache-file | --cache-file | --cache-fil | --cache-fi \
1062  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1063    ac_prev=cache_file ;;
1064  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1065  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1066    cache_file=$ac_optarg ;;
1067
1068  --config-cache | -C)
1069    cache_file=config.cache ;;
1070
1071  -datadir | --datadir | --datadi | --datad)
1072    ac_prev=datadir ;;
1073  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1074    datadir=$ac_optarg ;;
1075
1076  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1077  | --dataroo | --dataro | --datar)
1078    ac_prev=datarootdir ;;
1079  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1080  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1081    datarootdir=$ac_optarg ;;
1082
1083  -disable-* | --disable-*)
1084    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1085    # Reject names that are not valid shell variable names.
1086    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1088   { (exit 1); exit 1; }; }
1089    ac_useropt_orig=$ac_useropt
1090    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091    case $ac_user_opts in
1092      *"
1093"enable_$ac_useropt"
1094"*) ;;
1095      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1096	 ac_unrecognized_sep=', ';;
1097    esac
1098    eval enable_$ac_useropt=no ;;
1099
1100  -docdir | --docdir | --docdi | --doc | --do)
1101    ac_prev=docdir ;;
1102  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1103    docdir=$ac_optarg ;;
1104
1105  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1106    ac_prev=dvidir ;;
1107  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1108    dvidir=$ac_optarg ;;
1109
1110  -enable-* | --enable-*)
1111    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1112    # Reject names that are not valid shell variable names.
1113    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1115   { (exit 1); exit 1; }; }
1116    ac_useropt_orig=$ac_useropt
1117    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118    case $ac_user_opts in
1119      *"
1120"enable_$ac_useropt"
1121"*) ;;
1122      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1123	 ac_unrecognized_sep=', ';;
1124    esac
1125    eval enable_$ac_useropt=\$ac_optarg ;;
1126
1127  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1128  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1129  | --exec | --exe | --ex)
1130    ac_prev=exec_prefix ;;
1131  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1132  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1133  | --exec=* | --exe=* | --ex=*)
1134    exec_prefix=$ac_optarg ;;
1135
1136  -gas | --gas | --ga | --g)
1137    # Obsolete; use --with-gas.
1138    with_gas=yes ;;
1139
1140  -help | --help | --hel | --he | -h)
1141    ac_init_help=long ;;
1142  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1143    ac_init_help=recursive ;;
1144  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1145    ac_init_help=short ;;
1146
1147  -host | --host | --hos | --ho)
1148    ac_prev=host_alias ;;
1149  -host=* | --host=* | --hos=* | --ho=*)
1150    host_alias=$ac_optarg ;;
1151
1152  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1153    ac_prev=htmldir ;;
1154  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1155  | --ht=*)
1156    htmldir=$ac_optarg ;;
1157
1158  -includedir | --includedir | --includedi | --included | --include \
1159  | --includ | --inclu | --incl | --inc)
1160    ac_prev=includedir ;;
1161  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1162  | --includ=* | --inclu=* | --incl=* | --inc=*)
1163    includedir=$ac_optarg ;;
1164
1165  -infodir | --infodir | --infodi | --infod | --info | --inf)
1166    ac_prev=infodir ;;
1167  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1168    infodir=$ac_optarg ;;
1169
1170  -libdir | --libdir | --libdi | --libd)
1171    ac_prev=libdir ;;
1172  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1173    libdir=$ac_optarg ;;
1174
1175  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1176  | --libexe | --libex | --libe)
1177    ac_prev=libexecdir ;;
1178  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1179  | --libexe=* | --libex=* | --libe=*)
1180    libexecdir=$ac_optarg ;;
1181
1182  -localedir | --localedir | --localedi | --localed | --locale)
1183    ac_prev=localedir ;;
1184  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1185    localedir=$ac_optarg ;;
1186
1187  -localstatedir | --localstatedir | --localstatedi | --localstated \
1188  | --localstate | --localstat | --localsta | --localst | --locals)
1189    ac_prev=localstatedir ;;
1190  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1191  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1192    localstatedir=$ac_optarg ;;
1193
1194  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1195    ac_prev=mandir ;;
1196  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1197    mandir=$ac_optarg ;;
1198
1199  -nfp | --nfp | --nf)
1200    # Obsolete; use --without-fp.
1201    with_fp=no ;;
1202
1203  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1204  | --no-cr | --no-c | -n)
1205    no_create=yes ;;
1206
1207  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1208  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1209    no_recursion=yes ;;
1210
1211  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1212  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1213  | --oldin | --oldi | --old | --ol | --o)
1214    ac_prev=oldincludedir ;;
1215  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1216  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1217  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1218    oldincludedir=$ac_optarg ;;
1219
1220  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1221    ac_prev=prefix ;;
1222  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1223    prefix=$ac_optarg ;;
1224
1225  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1226  | --program-pre | --program-pr | --program-p)
1227    ac_prev=program_prefix ;;
1228  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1229  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1230    program_prefix=$ac_optarg ;;
1231
1232  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1233  | --program-suf | --program-su | --program-s)
1234    ac_prev=program_suffix ;;
1235  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1236  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1237    program_suffix=$ac_optarg ;;
1238
1239  -program-transform-name | --program-transform-name \
1240  | --program-transform-nam | --program-transform-na \
1241  | --program-transform-n | --program-transform- \
1242  | --program-transform | --program-transfor \
1243  | --program-transfo | --program-transf \
1244  | --program-trans | --program-tran \
1245  | --progr-tra | --program-tr | --program-t)
1246    ac_prev=program_transform_name ;;
1247  -program-transform-name=* | --program-transform-name=* \
1248  | --program-transform-nam=* | --program-transform-na=* \
1249  | --program-transform-n=* | --program-transform-=* \
1250  | --program-transform=* | --program-transfor=* \
1251  | --program-transfo=* | --program-transf=* \
1252  | --program-trans=* | --program-tran=* \
1253  | --progr-tra=* | --program-tr=* | --program-t=*)
1254    program_transform_name=$ac_optarg ;;
1255
1256  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1257    ac_prev=pdfdir ;;
1258  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1259    pdfdir=$ac_optarg ;;
1260
1261  -psdir | --psdir | --psdi | --psd | --ps)
1262    ac_prev=psdir ;;
1263  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1264    psdir=$ac_optarg ;;
1265
1266  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1267  | -silent | --silent | --silen | --sile | --sil)
1268    silent=yes ;;
1269
1270  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1271    ac_prev=sbindir ;;
1272  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1273  | --sbi=* | --sb=*)
1274    sbindir=$ac_optarg ;;
1275
1276  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1277  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1278  | --sharedst | --shareds | --shared | --share | --shar \
1279  | --sha | --sh)
1280    ac_prev=sharedstatedir ;;
1281  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1282  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1283  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1284  | --sha=* | --sh=*)
1285    sharedstatedir=$ac_optarg ;;
1286
1287  -site | --site | --sit)
1288    ac_prev=site ;;
1289  -site=* | --site=* | --sit=*)
1290    site=$ac_optarg ;;
1291
1292  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1293    ac_prev=srcdir ;;
1294  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1295    srcdir=$ac_optarg ;;
1296
1297  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1298  | --syscon | --sysco | --sysc | --sys | --sy)
1299    ac_prev=sysconfdir ;;
1300  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1301  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1302    sysconfdir=$ac_optarg ;;
1303
1304  -target | --target | --targe | --targ | --tar | --ta | --t)
1305    ac_prev=target_alias ;;
1306  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1307    target_alias=$ac_optarg ;;
1308
1309  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1310    verbose=yes ;;
1311
1312  -version | --version | --versio | --versi | --vers | -V)
1313    ac_init_version=: ;;
1314
1315  -with-* | --with-*)
1316    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1317    # Reject names that are not valid shell variable names.
1318    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1320   { (exit 1); exit 1; }; }
1321    ac_useropt_orig=$ac_useropt
1322    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323    case $ac_user_opts in
1324      *"
1325"with_$ac_useropt"
1326"*) ;;
1327      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1328	 ac_unrecognized_sep=', ';;
1329    esac
1330    eval with_$ac_useropt=\$ac_optarg ;;
1331
1332  -without-* | --without-*)
1333    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1334    # Reject names that are not valid shell variable names.
1335    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1336      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1337   { (exit 1); exit 1; }; }
1338    ac_useropt_orig=$ac_useropt
1339    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1340    case $ac_user_opts in
1341      *"
1342"with_$ac_useropt"
1343"*) ;;
1344      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1345	 ac_unrecognized_sep=', ';;
1346    esac
1347    eval with_$ac_useropt=no ;;
1348
1349  --x)
1350    # Obsolete; use --with-x.
1351    with_x=yes ;;
1352
1353  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1354  | --x-incl | --x-inc | --x-in | --x-i)
1355    ac_prev=x_includes ;;
1356  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1357  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1358    x_includes=$ac_optarg ;;
1359
1360  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1361  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1362    ac_prev=x_libraries ;;
1363  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1364  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1365    x_libraries=$ac_optarg ;;
1366
1367  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1368Try \`$0 --help' for more information." >&2
1369   { (exit 1); exit 1; }; }
1370    ;;
1371
1372  *=*)
1373    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1374    # Reject names that are not valid shell variable names.
1375    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1376      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1377   { (exit 1); exit 1; }; }
1378    eval $ac_envvar=\$ac_optarg
1379    export $ac_envvar ;;
1380
1381  *)
1382    # FIXME: should be removed in autoconf 3.0.
1383    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1384    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1385      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1386    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1387    ;;
1388
1389  esac
1390done
1391
1392if test -n "$ac_prev"; then
1393  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1394  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1395   { (exit 1); exit 1; }; }
1396fi
1397
1398if test -n "$ac_unrecognized_opts"; then
1399  case $enable_option_checking in
1400    no) ;;
1401    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1402   { (exit 1); exit 1; }; } ;;
1403    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1404  esac
1405fi
1406
1407# Check all directory arguments for consistency.
1408for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1409		datadir sysconfdir sharedstatedir localstatedir includedir \
1410		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1411		libdir localedir mandir
1412do
1413  eval ac_val=\$$ac_var
1414  # Remove trailing slashes.
1415  case $ac_val in
1416    */ )
1417      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1418      eval $ac_var=\$ac_val;;
1419  esac
1420  # Be sure to have absolute directory names.
1421  case $ac_val in
1422    [\\/$]* | ?:[\\/]* )  continue;;
1423    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1424  esac
1425  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1426   { (exit 1); exit 1; }; }
1427done
1428
1429# There might be people who depend on the old broken behavior: `$host'
1430# used to hold the argument of --host etc.
1431# FIXME: To remove some day.
1432build=$build_alias
1433host=$host_alias
1434target=$target_alias
1435
1436# FIXME: To remove some day.
1437if test "x$host_alias" != x; then
1438  if test "x$build_alias" = x; then
1439    cross_compiling=maybe
1440    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1441    If a cross compiler is detected then cross compile mode will be used." >&2
1442  elif test "x$build_alias" != "x$host_alias"; then
1443    cross_compiling=yes
1444  fi
1445fi
1446
1447ac_tool_prefix=
1448test -n "$host_alias" && ac_tool_prefix=$host_alias-
1449
1450test "$silent" = yes && exec 6>/dev/null
1451
1452
1453ac_pwd=`pwd` && test -n "$ac_pwd" &&
1454ac_ls_di=`ls -di .` &&
1455ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1456  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1457   { (exit 1); exit 1; }; }
1458test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1459  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1460   { (exit 1); exit 1; }; }
1461
1462
1463# Find the source files, if location was not specified.
1464if test -z "$srcdir"; then
1465  ac_srcdir_defaulted=yes
1466  # Try the directory containing this script, then the parent directory.
1467  ac_confdir=`$as_dirname -- "$as_myself" ||
1468$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1469	 X"$as_myself" : 'X\(//\)[^/]' \| \
1470	 X"$as_myself" : 'X\(//\)$' \| \
1471	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1472$as_echo X"$as_myself" |
1473    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1474	    s//\1/
1475	    q
1476	  }
1477	  /^X\(\/\/\)[^/].*/{
1478	    s//\1/
1479	    q
1480	  }
1481	  /^X\(\/\/\)$/{
1482	    s//\1/
1483	    q
1484	  }
1485	  /^X\(\/\).*/{
1486	    s//\1/
1487	    q
1488	  }
1489	  s/.*/./; q'`
1490  srcdir=$ac_confdir
1491  if test ! -r "$srcdir/$ac_unique_file"; then
1492    srcdir=..
1493  fi
1494else
1495  ac_srcdir_defaulted=no
1496fi
1497if test ! -r "$srcdir/$ac_unique_file"; then
1498  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1499  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1500   { (exit 1); exit 1; }; }
1501fi
1502ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1503ac_abs_confdir=`(
1504	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1505   { (exit 1); exit 1; }; }
1506	pwd)`
1507# When building in place, set srcdir=.
1508if test "$ac_abs_confdir" = "$ac_pwd"; then
1509  srcdir=.
1510fi
1511# Remove unnecessary trailing slashes from srcdir.
1512# Double slashes in file names in object file debugging info
1513# mess up M-x gdb in Emacs.
1514case $srcdir in
1515*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1516esac
1517for ac_var in $ac_precious_vars; do
1518  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1519  eval ac_env_${ac_var}_value=\$${ac_var}
1520  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1521  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1522done
1523
1524#
1525# Report the --help message.
1526#
1527if test "$ac_init_help" = "long"; then
1528  # Omit some internal or obsolete options to make the list less imposing.
1529  # This message is too long to be a string in the A/UX 3.1 sh.
1530  cat <<_ACEOF
1531\`configure' configures xf86-video-sis 0.10.1 to adapt to many kinds of systems.
1532
1533Usage: $0 [OPTION]... [VAR=VALUE]...
1534
1535To assign environment variables (e.g., CC, CFLAGS...), specify them as
1536VAR=VALUE.  See below for descriptions of some of the useful variables.
1537
1538Defaults for the options are specified in brackets.
1539
1540Configuration:
1541  -h, --help              display this help and exit
1542      --help=short        display options specific to this package
1543      --help=recursive    display the short help of all the included packages
1544  -V, --version           display version information and exit
1545  -q, --quiet, --silent   do not print \`checking...' messages
1546      --cache-file=FILE   cache test results in FILE [disabled]
1547  -C, --config-cache      alias for \`--cache-file=config.cache'
1548  -n, --no-create         do not create output files
1549      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1550
1551Installation directories:
1552  --prefix=PREFIX         install architecture-independent files in PREFIX
1553                          [$ac_default_prefix]
1554  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1555                          [PREFIX]
1556
1557By default, \`make install' will install all the files in
1558\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1559an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1560for instance \`--prefix=\$HOME'.
1561
1562For better control, use the options below.
1563
1564Fine tuning of the installation directories:
1565  --bindir=DIR            user executables [EPREFIX/bin]
1566  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1567  --libexecdir=DIR        program executables [EPREFIX/libexec]
1568  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1569  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1570  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1571  --libdir=DIR            object code libraries [EPREFIX/lib]
1572  --includedir=DIR        C header files [PREFIX/include]
1573  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1574  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1575  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1576  --infodir=DIR           info documentation [DATAROOTDIR/info]
1577  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1578  --mandir=DIR            man documentation [DATAROOTDIR/man]
1579  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-sis]
1580  --htmldir=DIR           html documentation [DOCDIR]
1581  --dvidir=DIR            dvi documentation [DOCDIR]
1582  --pdfdir=DIR            pdf documentation [DOCDIR]
1583  --psdir=DIR             ps documentation [DOCDIR]
1584_ACEOF
1585
1586  cat <<\_ACEOF
1587
1588Program names:
1589  --program-prefix=PREFIX            prepend PREFIX to installed program names
1590  --program-suffix=SUFFIX            append SUFFIX to installed program names
1591  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1592
1593System types:
1594  --build=BUILD     configure for building on BUILD [guessed]
1595  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1596_ACEOF
1597fi
1598
1599if test -n "$ac_init_help"; then
1600  case $ac_init_help in
1601     short | recursive ) echo "Configuration of xf86-video-sis 0.10.1:";;
1602   esac
1603  cat <<\_ACEOF
1604
1605Optional Features:
1606  --disable-option-checking  ignore unrecognized --enable/--with options
1607  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1608  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1609  --enable-maintainer-mode  enable make rules and dependencies not useful
1610			  (and sometimes confusing) to the casual installer
1611  --enable-static[=PKGS]  build static libraries [default=no]
1612  --enable-shared[=PKGS]  build shared libraries [default=yes]
1613  --enable-fast-install[=PKGS]
1614                          optimize for fast installation [default=yes]
1615  --disable-dependency-tracking  speeds up one-time build
1616  --enable-dependency-tracking   do not reject slow dependency extractors
1617  --disable-libtool-lock  avoid locking (might break parallel builds)
1618  --disable-dri           Disable DRI support [default=auto]
1619
1620Optional Packages:
1621  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1622  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1623  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1624  --with-pic              try to use only PIC/non-PIC objects [default=use
1625                          both]
1626  --with-tags[=TAGS]      include additional configurations [automatic]
1627  --with-xorg-module-dir=DIR
1628                          Default xorg module directory
1629                          [default=$libdir/xorg/modules]
1630  --with-release-version=STRING
1631                          Use release version string in package name
1632
1633Some influential environment variables:
1634  CC          C compiler command
1635  CFLAGS      C compiler flags
1636  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1637              nonstandard directory <lib dir>
1638  LIBS        libraries to pass to the linker, e.g. -l<library>
1639  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1640              you have headers in a nonstandard directory <include dir>
1641  CPP         C preprocessor
1642  CXX         C++ compiler command
1643  CXXFLAGS    C++ compiler flags
1644  CXXCPP      C++ preprocessor
1645  F77         Fortran 77 compiler command
1646  FFLAGS      Fortran 77 compiler flags
1647  PKG_CONFIG  path to pkg-config utility
1648  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1649  XORG_LIBS   linker flags for XORG, overriding pkg-config
1650  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1651  DRI_LIBS    linker flags for DRI, overriding pkg-config
1652  PCIACCESS_CFLAGS
1653              C compiler flags for PCIACCESS, overriding pkg-config
1654  PCIACCESS_LIBS
1655              linker flags for PCIACCESS, overriding pkg-config
1656
1657Use these variables to override the choices made by `configure' or to help
1658it to find libraries and programs with nonstandard names/locations.
1659
1660Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1661_ACEOF
1662ac_status=$?
1663fi
1664
1665if test "$ac_init_help" = "recursive"; then
1666  # If there are subdirs, report their specific --help.
1667  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1668    test -d "$ac_dir" ||
1669      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670      continue
1671    ac_builddir=.
1672
1673case "$ac_dir" in
1674.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675*)
1676  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1677  # A ".." for each directory in $ac_dir_suffix.
1678  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1679  case $ac_top_builddir_sub in
1680  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682  esac ;;
1683esac
1684ac_abs_top_builddir=$ac_pwd
1685ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686# for backward compatibility:
1687ac_top_builddir=$ac_top_build_prefix
1688
1689case $srcdir in
1690  .)  # We are building in place.
1691    ac_srcdir=.
1692    ac_top_srcdir=$ac_top_builddir_sub
1693    ac_abs_top_srcdir=$ac_pwd ;;
1694  [\\/]* | ?:[\\/]* )  # Absolute name.
1695    ac_srcdir=$srcdir$ac_dir_suffix;
1696    ac_top_srcdir=$srcdir
1697    ac_abs_top_srcdir=$srcdir ;;
1698  *) # Relative name.
1699    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700    ac_top_srcdir=$ac_top_build_prefix$srcdir
1701    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1702esac
1703ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1704
1705    cd "$ac_dir" || { ac_status=$?; continue; }
1706    # Check for guested configure.
1707    if test -f "$ac_srcdir/configure.gnu"; then
1708      echo &&
1709      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710    elif test -f "$ac_srcdir/configure"; then
1711      echo &&
1712      $SHELL "$ac_srcdir/configure" --help=recursive
1713    else
1714      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1715    fi || ac_status=$?
1716    cd "$ac_pwd" || { ac_status=$?; break; }
1717  done
1718fi
1719
1720test -n "$ac_init_help" && exit $ac_status
1721if $ac_init_version; then
1722  cat <<\_ACEOF
1723xf86-video-sis configure 0.10.1
1724generated by GNU Autoconf 2.63
1725
1726Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17272002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1728This configure script is free software; the Free Software Foundation
1729gives unlimited permission to copy, distribute and modify it.
1730_ACEOF
1731  exit
1732fi
1733cat >config.log <<_ACEOF
1734This file contains any messages produced by compilers while
1735running configure, to aid debugging if configure makes a mistake.
1736
1737It was created by xf86-video-sis $as_me 0.10.1, which was
1738generated by GNU Autoconf 2.63.  Invocation command line was
1739
1740  $ $0 $@
1741
1742_ACEOF
1743exec 5>>config.log
1744{
1745cat <<_ASUNAME
1746## --------- ##
1747## Platform. ##
1748## --------- ##
1749
1750hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1751uname -m = `(uname -m) 2>/dev/null || echo unknown`
1752uname -r = `(uname -r) 2>/dev/null || echo unknown`
1753uname -s = `(uname -s) 2>/dev/null || echo unknown`
1754uname -v = `(uname -v) 2>/dev/null || echo unknown`
1755
1756/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1757/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1758
1759/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1760/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1761/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1762/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1763/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1764/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1765/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1766
1767_ASUNAME
1768
1769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770for as_dir in $PATH
1771do
1772  IFS=$as_save_IFS
1773  test -z "$as_dir" && as_dir=.
1774  $as_echo "PATH: $as_dir"
1775done
1776IFS=$as_save_IFS
1777
1778} >&5
1779
1780cat >&5 <<_ACEOF
1781
1782
1783## ----------- ##
1784## Core tests. ##
1785## ----------- ##
1786
1787_ACEOF
1788
1789
1790# Keep a trace of the command line.
1791# Strip out --no-create and --no-recursion so they do not pile up.
1792# Strip out --silent because we don't want to record it for future runs.
1793# Also quote any args containing shell meta-characters.
1794# Make two passes to allow for proper duplicate-argument suppression.
1795ac_configure_args=
1796ac_configure_args0=
1797ac_configure_args1=
1798ac_must_keep_next=false
1799for ac_pass in 1 2
1800do
1801  for ac_arg
1802  do
1803    case $ac_arg in
1804    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1805    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1806    | -silent | --silent | --silen | --sile | --sil)
1807      continue ;;
1808    *\'*)
1809      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1810    esac
1811    case $ac_pass in
1812    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1813    2)
1814      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1815      if test $ac_must_keep_next = true; then
1816	ac_must_keep_next=false # Got value, back to normal.
1817      else
1818	case $ac_arg in
1819	  *=* | --config-cache | -C | -disable-* | --disable-* \
1820	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1821	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1822	  | -with-* | --with-* | -without-* | --without-* | --x)
1823	    case "$ac_configure_args0 " in
1824	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1825	    esac
1826	    ;;
1827	  -* ) ac_must_keep_next=true ;;
1828	esac
1829      fi
1830      ac_configure_args="$ac_configure_args '$ac_arg'"
1831      ;;
1832    esac
1833  done
1834done
1835$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1836$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1837
1838# When interrupted or exit'd, cleanup temporary files, and complete
1839# config.log.  We remove comments because anyway the quotes in there
1840# would cause problems or look ugly.
1841# WARNING: Use '\'' to represent an apostrophe within the trap.
1842# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843trap 'exit_status=$?
1844  # Save into config.log some information that might help in debugging.
1845  {
1846    echo
1847
1848    cat <<\_ASBOX
1849## ---------------- ##
1850## Cache variables. ##
1851## ---------------- ##
1852_ASBOX
1853    echo
1854    # The following way of writing the cache mishandles newlines in values,
1855(
1856  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857    eval ac_val=\$$ac_var
1858    case $ac_val in #(
1859    *${as_nl}*)
1860      case $ac_var in #(
1861      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1862$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1863      esac
1864      case $ac_var in #(
1865      _ | IFS | as_nl) ;; #(
1866      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1867      *) $as_unset $ac_var ;;
1868      esac ;;
1869    esac
1870  done
1871  (set) 2>&1 |
1872    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1873    *${as_nl}ac_space=\ *)
1874      sed -n \
1875	"s/'\''/'\''\\\\'\'''\''/g;
1876	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1877      ;; #(
1878    *)
1879      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1880      ;;
1881    esac |
1882    sort
1883)
1884    echo
1885
1886    cat <<\_ASBOX
1887## ----------------- ##
1888## Output variables. ##
1889## ----------------- ##
1890_ASBOX
1891    echo
1892    for ac_var in $ac_subst_vars
1893    do
1894      eval ac_val=\$$ac_var
1895      case $ac_val in
1896      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897      esac
1898      $as_echo "$ac_var='\''$ac_val'\''"
1899    done | sort
1900    echo
1901
1902    if test -n "$ac_subst_files"; then
1903      cat <<\_ASBOX
1904## ------------------- ##
1905## File substitutions. ##
1906## ------------------- ##
1907_ASBOX
1908      echo
1909      for ac_var in $ac_subst_files
1910      do
1911	eval ac_val=\$$ac_var
1912	case $ac_val in
1913	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914	esac
1915	$as_echo "$ac_var='\''$ac_val'\''"
1916      done | sort
1917      echo
1918    fi
1919
1920    if test -s confdefs.h; then
1921      cat <<\_ASBOX
1922## ----------- ##
1923## confdefs.h. ##
1924## ----------- ##
1925_ASBOX
1926      echo
1927      cat confdefs.h
1928      echo
1929    fi
1930    test "$ac_signal" != 0 &&
1931      $as_echo "$as_me: caught signal $ac_signal"
1932    $as_echo "$as_me: exit $exit_status"
1933  } >&5
1934  rm -f core *.core core.conftest.* &&
1935    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936    exit $exit_status
1937' 0
1938for ac_signal in 1 2 13 15; do
1939  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1940done
1941ac_signal=0
1942
1943# confdefs.h avoids OS command line length limits that DEFS can exceed.
1944rm -f -r conftest* confdefs.h
1945
1946# Predefined preprocessor variables.
1947
1948cat >>confdefs.h <<_ACEOF
1949#define PACKAGE_NAME "$PACKAGE_NAME"
1950_ACEOF
1951
1952
1953cat >>confdefs.h <<_ACEOF
1954#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1955_ACEOF
1956
1957
1958cat >>confdefs.h <<_ACEOF
1959#define PACKAGE_VERSION "$PACKAGE_VERSION"
1960_ACEOF
1961
1962
1963cat >>confdefs.h <<_ACEOF
1964#define PACKAGE_STRING "$PACKAGE_STRING"
1965_ACEOF
1966
1967
1968cat >>confdefs.h <<_ACEOF
1969#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1970_ACEOF
1971
1972
1973# Let the site file select an alternate cache file if it wants to.
1974# Prefer an explicitly selected file to automatically selected ones.
1975ac_site_file1=NONE
1976ac_site_file2=NONE
1977if test -n "$CONFIG_SITE"; then
1978  ac_site_file1=$CONFIG_SITE
1979elif test "x$prefix" != xNONE; then
1980  ac_site_file1=$prefix/share/config.site
1981  ac_site_file2=$prefix/etc/config.site
1982else
1983  ac_site_file1=$ac_default_prefix/share/config.site
1984  ac_site_file2=$ac_default_prefix/etc/config.site
1985fi
1986for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1987do
1988  test "x$ac_site_file" = xNONE && continue
1989  if test -r "$ac_site_file"; then
1990    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1991$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1992    sed 's/^/| /' "$ac_site_file" >&5
1993    . "$ac_site_file"
1994  fi
1995done
1996
1997if test -r "$cache_file"; then
1998  # Some versions of bash will fail to source /dev/null (special
1999  # files actually), so we avoid doing that.
2000  if test -f "$cache_file"; then
2001    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2002$as_echo "$as_me: loading cache $cache_file" >&6;}
2003    case $cache_file in
2004      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005      *)                      . "./$cache_file";;
2006    esac
2007  fi
2008else
2009  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2010$as_echo "$as_me: creating cache $cache_file" >&6;}
2011  >$cache_file
2012fi
2013
2014# Check that the precious variables saved in the cache have kept the same
2015# value.
2016ac_cache_corrupted=false
2017for ac_var in $ac_precious_vars; do
2018  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2019  eval ac_new_set=\$ac_env_${ac_var}_set
2020  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2021  eval ac_new_val=\$ac_env_${ac_var}_value
2022  case $ac_old_set,$ac_new_set in
2023    set,)
2024      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2025$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2026      ac_cache_corrupted=: ;;
2027    ,set)
2028      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2029$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2030      ac_cache_corrupted=: ;;
2031    ,);;
2032    *)
2033      if test "x$ac_old_val" != "x$ac_new_val"; then
2034	# differences in whitespace do not lead to failure.
2035	ac_old_val_w=`echo x $ac_old_val`
2036	ac_new_val_w=`echo x $ac_new_val`
2037	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2038	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2039$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2040	  ac_cache_corrupted=:
2041	else
2042	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2043$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2044	  eval $ac_var=\$ac_old_val
2045	fi
2046	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2047$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2048	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2049$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2050      fi;;
2051  esac
2052  # Pass precious variables to config.status.
2053  if test "$ac_new_set" = set; then
2054    case $ac_new_val in
2055    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2056    *) ac_arg=$ac_var=$ac_new_val ;;
2057    esac
2058    case " $ac_configure_args " in
2059      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2060      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2061    esac
2062  fi
2063done
2064if $ac_cache_corrupted; then
2065  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2068$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2069  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2070$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2071   { (exit 1); exit 1; }; }
2072fi
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098ac_ext=c
2099ac_cpp='$CPP $CPPFLAGS'
2100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2102ac_compiler_gnu=$ac_cv_c_compiler_gnu
2103
2104
2105
2106
2107ac_config_headers="$ac_config_headers config.h"
2108
2109ac_aux_dir=
2110for ac_dir in . "$srcdir"/.; do
2111  if test -f "$ac_dir/install-sh"; then
2112    ac_aux_dir=$ac_dir
2113    ac_install_sh="$ac_aux_dir/install-sh -c"
2114    break
2115  elif test -f "$ac_dir/install.sh"; then
2116    ac_aux_dir=$ac_dir
2117    ac_install_sh="$ac_aux_dir/install.sh -c"
2118    break
2119  elif test -f "$ac_dir/shtool"; then
2120    ac_aux_dir=$ac_dir
2121    ac_install_sh="$ac_aux_dir/shtool install -c"
2122    break
2123  fi
2124done
2125if test -z "$ac_aux_dir"; then
2126  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2127$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2128   { (exit 1); exit 1; }; }
2129fi
2130
2131# These three variables are undocumented and unsupported,
2132# and are intended to be withdrawn in a future Autoconf release.
2133# They can cause serious problems if a builder's source tree is in a directory
2134# whose full name contains unusual characters.
2135ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2136ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2137ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2138
2139
2140
2141am__api_version='1.10'
2142
2143# Find a good install program.  We prefer a C program (faster),
2144# so one script is as good as another.  But avoid the broken or
2145# incompatible versions:
2146# SysV /etc/install, /usr/sbin/install
2147# SunOS /usr/etc/install
2148# IRIX /sbin/install
2149# AIX /bin/install
2150# AmigaOS /C/install, which installs bootblocks on floppy discs
2151# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2152# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2153# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2154# OS/2's system install, which has a completely different semantic
2155# ./install, which can be erroneously created by make from ./install.sh.
2156# Reject install programs that cannot install multiple files.
2157{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2158$as_echo_n "checking for a BSD-compatible install... " >&6; }
2159if test -z "$INSTALL"; then
2160if test "${ac_cv_path_install+set}" = set; then
2161  $as_echo_n "(cached) " >&6
2162else
2163  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164for as_dir in $PATH
2165do
2166  IFS=$as_save_IFS
2167  test -z "$as_dir" && as_dir=.
2168  # Account for people who put trailing slashes in PATH elements.
2169case $as_dir/ in
2170  ./ | .// | /cC/* | \
2171  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2172  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2173  /usr/ucb/* ) ;;
2174  *)
2175    # OSF1 and SCO ODT 3.0 have their own names for install.
2176    # Don't use installbsd from OSF since it installs stuff as root
2177    # by default.
2178    for ac_prog in ginstall scoinst install; do
2179      for ac_exec_ext in '' $ac_executable_extensions; do
2180	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2181	  if test $ac_prog = install &&
2182	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2183	    # AIX install.  It has an incompatible calling convention.
2184	    :
2185	  elif test $ac_prog = install &&
2186	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2187	    # program-specific install script used by HP pwplus--don't use.
2188	    :
2189	  else
2190	    rm -rf conftest.one conftest.two conftest.dir
2191	    echo one > conftest.one
2192	    echo two > conftest.two
2193	    mkdir conftest.dir
2194	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2195	      test -s conftest.one && test -s conftest.two &&
2196	      test -s conftest.dir/conftest.one &&
2197	      test -s conftest.dir/conftest.two
2198	    then
2199	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2200	      break 3
2201	    fi
2202	  fi
2203	fi
2204      done
2205    done
2206    ;;
2207esac
2208
2209done
2210IFS=$as_save_IFS
2211
2212rm -rf conftest.one conftest.two conftest.dir
2213
2214fi
2215  if test "${ac_cv_path_install+set}" = set; then
2216    INSTALL=$ac_cv_path_install
2217  else
2218    # As a last resort, use the slow shell script.  Don't cache a
2219    # value for INSTALL within a source directory, because that will
2220    # break other packages using the cache if that directory is
2221    # removed, or if the value is a relative name.
2222    INSTALL=$ac_install_sh
2223  fi
2224fi
2225{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2226$as_echo "$INSTALL" >&6; }
2227
2228# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2229# It thinks the first close brace ends the variable substitution.
2230test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2231
2232test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2233
2234test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2235
2236{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2237$as_echo_n "checking whether build environment is sane... " >&6; }
2238# Just in case
2239sleep 1
2240echo timestamp > conftest.file
2241# Do `set' in a subshell so we don't clobber the current shell's
2242# arguments.  Must try -L first in case configure is actually a
2243# symlink; some systems play weird games with the mod time of symlinks
2244# (eg FreeBSD returns the mod time of the symlink's containing
2245# directory).
2246if (
2247   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2248   if test "$*" = "X"; then
2249      # -L didn't work.
2250      set X `ls -t $srcdir/configure conftest.file`
2251   fi
2252   rm -f conftest.file
2253   if test "$*" != "X $srcdir/configure conftest.file" \
2254      && test "$*" != "X conftest.file $srcdir/configure"; then
2255
2256      # If neither matched, then we have a broken ls.  This can happen
2257      # if, for instance, CONFIG_SHELL is bash and it inherits a
2258      # broken ls alias from the environment.  This has actually
2259      # happened.  Such a system could not be considered "sane".
2260      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2261alias in your environment" >&5
2262$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2263alias in your environment" >&2;}
2264   { (exit 1); exit 1; }; }
2265   fi
2266
2267   test "$2" = conftest.file
2268   )
2269then
2270   # Ok.
2271   :
2272else
2273   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2274Check your system clock" >&5
2275$as_echo "$as_me: error: newly created file is older than distributed files!
2276Check your system clock" >&2;}
2277   { (exit 1); exit 1; }; }
2278fi
2279{ $as_echo "$as_me:$LINENO: result: yes" >&5
2280$as_echo "yes" >&6; }
2281test "$program_prefix" != NONE &&
2282  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2283# Use a double $ so make ignores it.
2284test "$program_suffix" != NONE &&
2285  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2286# Double any \ or $.
2287# By default was `s,x,x', remove it if useless.
2288ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2289program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2290
2291# expand $ac_aux_dir to an absolute path
2292am_aux_dir=`cd $ac_aux_dir && pwd`
2293
2294test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2295# Use eval to expand $SHELL
2296if eval "$MISSING --run true"; then
2297  am_missing_run="$MISSING --run "
2298else
2299  am_missing_run=
2300  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2301$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2302fi
2303
2304{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2305$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2306if test -z "$MKDIR_P"; then
2307  if test "${ac_cv_path_mkdir+set}" = set; then
2308  $as_echo_n "(cached) " >&6
2309else
2310  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2312do
2313  IFS=$as_save_IFS
2314  test -z "$as_dir" && as_dir=.
2315  for ac_prog in mkdir gmkdir; do
2316	 for ac_exec_ext in '' $ac_executable_extensions; do
2317	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2318	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2319	     'mkdir (GNU coreutils) '* | \
2320	     'mkdir (coreutils) '* | \
2321	     'mkdir (fileutils) '4.1*)
2322	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2323	       break 3;;
2324	   esac
2325	 done
2326       done
2327done
2328IFS=$as_save_IFS
2329
2330fi
2331
2332  if test "${ac_cv_path_mkdir+set}" = set; then
2333    MKDIR_P="$ac_cv_path_mkdir -p"
2334  else
2335    # As a last resort, use the slow shell script.  Don't cache a
2336    # value for MKDIR_P within a source directory, because that will
2337    # break other packages using the cache if that directory is
2338    # removed, or if the value is a relative name.
2339    test -d ./--version && rmdir ./--version
2340    MKDIR_P="$ac_install_sh -d"
2341  fi
2342fi
2343{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2344$as_echo "$MKDIR_P" >&6; }
2345
2346mkdir_p="$MKDIR_P"
2347case $mkdir_p in
2348  [\\/$]* | ?:[\\/]*) ;;
2349  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2350esac
2351
2352for ac_prog in gawk mawk nawk awk
2353do
2354  # Extract the first word of "$ac_prog", so it can be a program name with args.
2355set dummy $ac_prog; ac_word=$2
2356{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2357$as_echo_n "checking for $ac_word... " >&6; }
2358if test "${ac_cv_prog_AWK+set}" = set; then
2359  $as_echo_n "(cached) " >&6
2360else
2361  if test -n "$AWK"; then
2362  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2363else
2364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365for as_dir in $PATH
2366do
2367  IFS=$as_save_IFS
2368  test -z "$as_dir" && as_dir=.
2369  for ac_exec_ext in '' $ac_executable_extensions; do
2370  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371    ac_cv_prog_AWK="$ac_prog"
2372    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373    break 2
2374  fi
2375done
2376done
2377IFS=$as_save_IFS
2378
2379fi
2380fi
2381AWK=$ac_cv_prog_AWK
2382if test -n "$AWK"; then
2383  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2384$as_echo "$AWK" >&6; }
2385else
2386  { $as_echo "$as_me:$LINENO: result: no" >&5
2387$as_echo "no" >&6; }
2388fi
2389
2390
2391  test -n "$AWK" && break
2392done
2393
2394{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2395$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2396set x ${MAKE-make}
2397ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2398if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2399  $as_echo_n "(cached) " >&6
2400else
2401  cat >conftest.make <<\_ACEOF
2402SHELL = /bin/sh
2403all:
2404	@echo '@@@%%%=$(MAKE)=@@@%%%'
2405_ACEOF
2406# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2407case `${MAKE-make} -f conftest.make 2>/dev/null` in
2408  *@@@%%%=?*=@@@%%%*)
2409    eval ac_cv_prog_make_${ac_make}_set=yes;;
2410  *)
2411    eval ac_cv_prog_make_${ac_make}_set=no;;
2412esac
2413rm -f conftest.make
2414fi
2415if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2416  { $as_echo "$as_me:$LINENO: result: yes" >&5
2417$as_echo "yes" >&6; }
2418  SET_MAKE=
2419else
2420  { $as_echo "$as_me:$LINENO: result: no" >&5
2421$as_echo "no" >&6; }
2422  SET_MAKE="MAKE=${MAKE-make}"
2423fi
2424
2425rm -rf .tst 2>/dev/null
2426mkdir .tst 2>/dev/null
2427if test -d .tst; then
2428  am__leading_dot=.
2429else
2430  am__leading_dot=_
2431fi
2432rmdir .tst 2>/dev/null
2433
2434if test "`cd $srcdir && pwd`" != "`pwd`"; then
2435  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2436  # is not polluted with repeated "-I."
2437  am__isrc=' -I$(srcdir)'
2438  # test to see if srcdir already configured
2439  if test -f $srcdir/config.status; then
2440    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2441$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2442   { (exit 1); exit 1; }; }
2443  fi
2444fi
2445
2446# test whether we have cygpath
2447if test -z "$CYGPATH_W"; then
2448  if (cygpath --version) >/dev/null 2>/dev/null; then
2449    CYGPATH_W='cygpath -w'
2450  else
2451    CYGPATH_W=echo
2452  fi
2453fi
2454
2455
2456# Define the identity of the package.
2457 PACKAGE='xf86-video-sis'
2458 VERSION='0.10.1'
2459
2460
2461cat >>confdefs.h <<_ACEOF
2462#define PACKAGE "$PACKAGE"
2463_ACEOF
2464
2465
2466cat >>confdefs.h <<_ACEOF
2467#define VERSION "$VERSION"
2468_ACEOF
2469
2470# Some tools Automake needs.
2471
2472ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2473
2474
2475AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2476
2477
2478AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2479
2480
2481AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2482
2483
2484MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2485
2486install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2487
2488# Installed binaries are usually stripped using `strip' when the user
2489# run `make install-strip'.  However `strip' might not be the right
2490# tool to use in cross-compilation environments, therefore Automake
2491# will honor the `STRIP' environment variable to overrule this program.
2492if test "$cross_compiling" != no; then
2493  if test -n "$ac_tool_prefix"; then
2494  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2495set dummy ${ac_tool_prefix}strip; ac_word=$2
2496{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2497$as_echo_n "checking for $ac_word... " >&6; }
2498if test "${ac_cv_prog_STRIP+set}" = set; then
2499  $as_echo_n "(cached) " >&6
2500else
2501  if test -n "$STRIP"; then
2502  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2503else
2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505for as_dir in $PATH
2506do
2507  IFS=$as_save_IFS
2508  test -z "$as_dir" && as_dir=.
2509  for ac_exec_ext in '' $ac_executable_extensions; do
2510  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2512    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513    break 2
2514  fi
2515done
2516done
2517IFS=$as_save_IFS
2518
2519fi
2520fi
2521STRIP=$ac_cv_prog_STRIP
2522if test -n "$STRIP"; then
2523  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2524$as_echo "$STRIP" >&6; }
2525else
2526  { $as_echo "$as_me:$LINENO: result: no" >&5
2527$as_echo "no" >&6; }
2528fi
2529
2530
2531fi
2532if test -z "$ac_cv_prog_STRIP"; then
2533  ac_ct_STRIP=$STRIP
2534  # Extract the first word of "strip", so it can be a program name with args.
2535set dummy strip; ac_word=$2
2536{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2537$as_echo_n "checking for $ac_word... " >&6; }
2538if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2539  $as_echo_n "(cached) " >&6
2540else
2541  if test -n "$ac_ct_STRIP"; then
2542  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2543else
2544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545for as_dir in $PATH
2546do
2547  IFS=$as_save_IFS
2548  test -z "$as_dir" && as_dir=.
2549  for ac_exec_ext in '' $ac_executable_extensions; do
2550  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2551    ac_cv_prog_ac_ct_STRIP="strip"
2552    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553    break 2
2554  fi
2555done
2556done
2557IFS=$as_save_IFS
2558
2559fi
2560fi
2561ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2562if test -n "$ac_ct_STRIP"; then
2563  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2564$as_echo "$ac_ct_STRIP" >&6; }
2565else
2566  { $as_echo "$as_me:$LINENO: result: no" >&5
2567$as_echo "no" >&6; }
2568fi
2569
2570  if test "x$ac_ct_STRIP" = x; then
2571    STRIP=":"
2572  else
2573    case $cross_compiling:$ac_tool_warned in
2574yes:)
2575{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2577ac_tool_warned=yes ;;
2578esac
2579    STRIP=$ac_ct_STRIP
2580  fi
2581else
2582  STRIP="$ac_cv_prog_STRIP"
2583fi
2584
2585fi
2586INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2587
2588# We need awk for the "check" target.  The system "awk" is bad on
2589# some platforms.
2590# Always define AMTAR for backward compatibility.
2591
2592AMTAR=${AMTAR-"${am_missing_run}tar"}
2593
2594am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2595
2596
2597
2598
2599
2600
2601{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2602$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2603    # Check whether --enable-maintainer-mode was given.
2604if test "${enable_maintainer_mode+set}" = set; then
2605  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2606else
2607  USE_MAINTAINER_MODE=no
2608fi
2609
2610  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2611$as_echo "$USE_MAINTAINER_MODE" >&6; }
2612   if test $USE_MAINTAINER_MODE = yes; then
2613  MAINTAINER_MODE_TRUE=
2614  MAINTAINER_MODE_FALSE='#'
2615else
2616  MAINTAINER_MODE_TRUE='#'
2617  MAINTAINER_MODE_FALSE=
2618fi
2619
2620  MAINT=$MAINTAINER_MODE_TRUE
2621
2622
2623
2624# Checks for programs.
2625# Check whether --enable-static was given.
2626if test "${enable_static+set}" = set; then
2627  enableval=$enable_static; p=${PACKAGE-default}
2628    case $enableval in
2629    yes) enable_static=yes ;;
2630    no) enable_static=no ;;
2631    *)
2632     enable_static=no
2633      # Look at the argument we got.  We use all the common list separators.
2634      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2635      for pkg in $enableval; do
2636	IFS="$lt_save_ifs"
2637	if test "X$pkg" = "X$p"; then
2638	  enable_static=yes
2639	fi
2640      done
2641      IFS="$lt_save_ifs"
2642      ;;
2643    esac
2644else
2645  enable_static=no
2646fi
2647
2648
2649
2650# Check whether --enable-shared was given.
2651if test "${enable_shared+set}" = set; then
2652  enableval=$enable_shared; p=${PACKAGE-default}
2653    case $enableval in
2654    yes) enable_shared=yes ;;
2655    no) enable_shared=no ;;
2656    *)
2657      enable_shared=no
2658      # Look at the argument we got.  We use all the common list separators.
2659      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2660      for pkg in $enableval; do
2661	IFS="$lt_save_ifs"
2662	if test "X$pkg" = "X$p"; then
2663	  enable_shared=yes
2664	fi
2665      done
2666      IFS="$lt_save_ifs"
2667      ;;
2668    esac
2669else
2670  enable_shared=yes
2671fi
2672
2673
2674# Check whether --enable-fast-install was given.
2675if test "${enable_fast_install+set}" = set; then
2676  enableval=$enable_fast_install; p=${PACKAGE-default}
2677    case $enableval in
2678    yes) enable_fast_install=yes ;;
2679    no) enable_fast_install=no ;;
2680    *)
2681      enable_fast_install=no
2682      # Look at the argument we got.  We use all the common list separators.
2683      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2684      for pkg in $enableval; do
2685	IFS="$lt_save_ifs"
2686	if test "X$pkg" = "X$p"; then
2687	  enable_fast_install=yes
2688	fi
2689      done
2690      IFS="$lt_save_ifs"
2691      ;;
2692    esac
2693else
2694  enable_fast_install=yes
2695fi
2696
2697
2698# Make sure we can run config.sub.
2699$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2700  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2701$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2702   { (exit 1); exit 1; }; }
2703
2704{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2705$as_echo_n "checking build system type... " >&6; }
2706if test "${ac_cv_build+set}" = set; then
2707  $as_echo_n "(cached) " >&6
2708else
2709  ac_build_alias=$build_alias
2710test "x$ac_build_alias" = x &&
2711  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2712test "x$ac_build_alias" = x &&
2713  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2714$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2715   { (exit 1); exit 1; }; }
2716ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2717  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2718$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2719   { (exit 1); exit 1; }; }
2720
2721fi
2722{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2723$as_echo "$ac_cv_build" >&6; }
2724case $ac_cv_build in
2725*-*-*) ;;
2726*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2727$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2728   { (exit 1); exit 1; }; };;
2729esac
2730build=$ac_cv_build
2731ac_save_IFS=$IFS; IFS='-'
2732set x $ac_cv_build
2733shift
2734build_cpu=$1
2735build_vendor=$2
2736shift; shift
2737# Remember, the first character of IFS is used to create $*,
2738# except with old shells:
2739build_os=$*
2740IFS=$ac_save_IFS
2741case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2742
2743
2744{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2745$as_echo_n "checking host system type... " >&6; }
2746if test "${ac_cv_host+set}" = set; then
2747  $as_echo_n "(cached) " >&6
2748else
2749  if test "x$host_alias" = x; then
2750  ac_cv_host=$ac_cv_build
2751else
2752  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2753    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2754$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2755   { (exit 1); exit 1; }; }
2756fi
2757
2758fi
2759{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2760$as_echo "$ac_cv_host" >&6; }
2761case $ac_cv_host in
2762*-*-*) ;;
2763*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2764$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2765   { (exit 1); exit 1; }; };;
2766esac
2767host=$ac_cv_host
2768ac_save_IFS=$IFS; IFS='-'
2769set x $ac_cv_host
2770shift
2771host_cpu=$1
2772host_vendor=$2
2773shift; shift
2774# Remember, the first character of IFS is used to create $*,
2775# except with old shells:
2776host_os=$*
2777IFS=$ac_save_IFS
2778case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2779
2780
2781DEPDIR="${am__leading_dot}deps"
2782
2783ac_config_commands="$ac_config_commands depfiles"
2784
2785
2786am_make=${MAKE-make}
2787cat > confinc << 'END'
2788am__doit:
2789	@echo done
2790.PHONY: am__doit
2791END
2792# If we don't find an include directive, just comment out the code.
2793{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2794$as_echo_n "checking for style of include used by $am_make... " >&6; }
2795am__include="#"
2796am__quote=
2797_am_result=none
2798# First try GNU make style include.
2799echo "include confinc" > confmf
2800# We grep out `Entering directory' and `Leaving directory'
2801# messages which can occur if `w' ends up in MAKEFLAGS.
2802# In particular we don't look at `^make:' because GNU make might
2803# be invoked under some other name (usually "gmake"), in which
2804# case it prints its new name instead of `make'.
2805if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2806   am__include=include
2807   am__quote=
2808   _am_result=GNU
2809fi
2810# Now try BSD make style include.
2811if test "$am__include" = "#"; then
2812   echo '.include "confinc"' > confmf
2813   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2814      am__include=.include
2815      am__quote="\""
2816      _am_result=BSD
2817   fi
2818fi
2819
2820
2821{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2822$as_echo "$_am_result" >&6; }
2823rm -f confinc confmf
2824
2825# Check whether --enable-dependency-tracking was given.
2826if test "${enable_dependency_tracking+set}" = set; then
2827  enableval=$enable_dependency_tracking;
2828fi
2829
2830if test "x$enable_dependency_tracking" != xno; then
2831  am_depcomp="$ac_aux_dir/depcomp"
2832  AMDEPBACKSLASH='\'
2833fi
2834 if test "x$enable_dependency_tracking" != xno; then
2835  AMDEP_TRUE=
2836  AMDEP_FALSE='#'
2837else
2838  AMDEP_TRUE='#'
2839  AMDEP_FALSE=
2840fi
2841
2842
2843ac_ext=c
2844ac_cpp='$CPP $CPPFLAGS'
2845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2847ac_compiler_gnu=$ac_cv_c_compiler_gnu
2848if test -n "$ac_tool_prefix"; then
2849  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2850set dummy ${ac_tool_prefix}gcc; ac_word=$2
2851{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2852$as_echo_n "checking for $ac_word... " >&6; }
2853if test "${ac_cv_prog_CC+set}" = set; then
2854  $as_echo_n "(cached) " >&6
2855else
2856  if test -n "$CC"; then
2857  ac_cv_prog_CC="$CC" # Let the user override the test.
2858else
2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862  IFS=$as_save_IFS
2863  test -z "$as_dir" && as_dir=.
2864  for ac_exec_ext in '' $ac_executable_extensions; do
2865  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2867    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868    break 2
2869  fi
2870done
2871done
2872IFS=$as_save_IFS
2873
2874fi
2875fi
2876CC=$ac_cv_prog_CC
2877if test -n "$CC"; then
2878  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2879$as_echo "$CC" >&6; }
2880else
2881  { $as_echo "$as_me:$LINENO: result: no" >&5
2882$as_echo "no" >&6; }
2883fi
2884
2885
2886fi
2887if test -z "$ac_cv_prog_CC"; then
2888  ac_ct_CC=$CC
2889  # Extract the first word of "gcc", so it can be a program name with args.
2890set dummy gcc; ac_word=$2
2891{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2892$as_echo_n "checking for $ac_word... " >&6; }
2893if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2894  $as_echo_n "(cached) " >&6
2895else
2896  if test -n "$ac_ct_CC"; then
2897  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2898else
2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900for as_dir in $PATH
2901do
2902  IFS=$as_save_IFS
2903  test -z "$as_dir" && as_dir=.
2904  for ac_exec_ext in '' $ac_executable_extensions; do
2905  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2906    ac_cv_prog_ac_ct_CC="gcc"
2907    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908    break 2
2909  fi
2910done
2911done
2912IFS=$as_save_IFS
2913
2914fi
2915fi
2916ac_ct_CC=$ac_cv_prog_ac_ct_CC
2917if test -n "$ac_ct_CC"; then
2918  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2919$as_echo "$ac_ct_CC" >&6; }
2920else
2921  { $as_echo "$as_me:$LINENO: result: no" >&5
2922$as_echo "no" >&6; }
2923fi
2924
2925  if test "x$ac_ct_CC" = x; then
2926    CC=""
2927  else
2928    case $cross_compiling:$ac_tool_warned in
2929yes:)
2930{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932ac_tool_warned=yes ;;
2933esac
2934    CC=$ac_ct_CC
2935  fi
2936else
2937  CC="$ac_cv_prog_CC"
2938fi
2939
2940if test -z "$CC"; then
2941          if test -n "$ac_tool_prefix"; then
2942    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2943set dummy ${ac_tool_prefix}cc; ac_word=$2
2944{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2945$as_echo_n "checking for $ac_word... " >&6; }
2946if test "${ac_cv_prog_CC+set}" = set; then
2947  $as_echo_n "(cached) " >&6
2948else
2949  if test -n "$CC"; then
2950  ac_cv_prog_CC="$CC" # Let the user override the test.
2951else
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955  IFS=$as_save_IFS
2956  test -z "$as_dir" && as_dir=.
2957  for ac_exec_ext in '' $ac_executable_extensions; do
2958  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959    ac_cv_prog_CC="${ac_tool_prefix}cc"
2960    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961    break 2
2962  fi
2963done
2964done
2965IFS=$as_save_IFS
2966
2967fi
2968fi
2969CC=$ac_cv_prog_CC
2970if test -n "$CC"; then
2971  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2972$as_echo "$CC" >&6; }
2973else
2974  { $as_echo "$as_me:$LINENO: result: no" >&5
2975$as_echo "no" >&6; }
2976fi
2977
2978
2979  fi
2980fi
2981if test -z "$CC"; then
2982  # Extract the first word of "cc", so it can be a program name with args.
2983set dummy cc; ac_word=$2
2984{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2985$as_echo_n "checking for $ac_word... " >&6; }
2986if test "${ac_cv_prog_CC+set}" = set; then
2987  $as_echo_n "(cached) " >&6
2988else
2989  if test -n "$CC"; then
2990  ac_cv_prog_CC="$CC" # Let the user override the test.
2991else
2992  ac_prog_rejected=no
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996  IFS=$as_save_IFS
2997  test -z "$as_dir" && as_dir=.
2998  for ac_exec_ext in '' $ac_executable_extensions; do
2999  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3000    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3001       ac_prog_rejected=yes
3002       continue
3003     fi
3004    ac_cv_prog_CC="cc"
3005    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3006    break 2
3007  fi
3008done
3009done
3010IFS=$as_save_IFS
3011
3012if test $ac_prog_rejected = yes; then
3013  # We found a bogon in the path, so make sure we never use it.
3014  set dummy $ac_cv_prog_CC
3015  shift
3016  if test $# != 0; then
3017    # We chose a different compiler from the bogus one.
3018    # However, it has the same basename, so the bogon will be chosen
3019    # first if we set CC to just the basename; use the full file name.
3020    shift
3021    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3022  fi
3023fi
3024fi
3025fi
3026CC=$ac_cv_prog_CC
3027if test -n "$CC"; then
3028  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3029$as_echo "$CC" >&6; }
3030else
3031  { $as_echo "$as_me:$LINENO: result: no" >&5
3032$as_echo "no" >&6; }
3033fi
3034
3035
3036fi
3037if test -z "$CC"; then
3038  if test -n "$ac_tool_prefix"; then
3039  for ac_prog in cl.exe
3040  do
3041    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3042set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3043{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3044$as_echo_n "checking for $ac_word... " >&6; }
3045if test "${ac_cv_prog_CC+set}" = set; then
3046  $as_echo_n "(cached) " >&6
3047else
3048  if test -n "$CC"; then
3049  ac_cv_prog_CC="$CC" # Let the user override the test.
3050else
3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052for as_dir in $PATH
3053do
3054  IFS=$as_save_IFS
3055  test -z "$as_dir" && as_dir=.
3056  for ac_exec_ext in '' $ac_executable_extensions; do
3057  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3059    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3060    break 2
3061  fi
3062done
3063done
3064IFS=$as_save_IFS
3065
3066fi
3067fi
3068CC=$ac_cv_prog_CC
3069if test -n "$CC"; then
3070  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3071$as_echo "$CC" >&6; }
3072else
3073  { $as_echo "$as_me:$LINENO: result: no" >&5
3074$as_echo "no" >&6; }
3075fi
3076
3077
3078    test -n "$CC" && break
3079  done
3080fi
3081if test -z "$CC"; then
3082  ac_ct_CC=$CC
3083  for ac_prog in cl.exe
3084do
3085  # Extract the first word of "$ac_prog", so it can be a program name with args.
3086set dummy $ac_prog; ac_word=$2
3087{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3088$as_echo_n "checking for $ac_word... " >&6; }
3089if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3090  $as_echo_n "(cached) " >&6
3091else
3092  if test -n "$ac_ct_CC"; then
3093  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3094else
3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH
3097do
3098  IFS=$as_save_IFS
3099  test -z "$as_dir" && as_dir=.
3100  for ac_exec_ext in '' $ac_executable_extensions; do
3101  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102    ac_cv_prog_ac_ct_CC="$ac_prog"
3103    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104    break 2
3105  fi
3106done
3107done
3108IFS=$as_save_IFS
3109
3110fi
3111fi
3112ac_ct_CC=$ac_cv_prog_ac_ct_CC
3113if test -n "$ac_ct_CC"; then
3114  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3115$as_echo "$ac_ct_CC" >&6; }
3116else
3117  { $as_echo "$as_me:$LINENO: result: no" >&5
3118$as_echo "no" >&6; }
3119fi
3120
3121
3122  test -n "$ac_ct_CC" && break
3123done
3124
3125  if test "x$ac_ct_CC" = x; then
3126    CC=""
3127  else
3128    case $cross_compiling:$ac_tool_warned in
3129yes:)
3130{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132ac_tool_warned=yes ;;
3133esac
3134    CC=$ac_ct_CC
3135  fi
3136fi
3137
3138fi
3139
3140
3141test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3144See \`config.log' for more details." >&5
3145$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3146See \`config.log' for more details." >&2;}
3147   { (exit 1); exit 1; }; }; }
3148
3149# Provide some information about the compiler.
3150$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3151set X $ac_compile
3152ac_compiler=$2
3153{ (ac_try="$ac_compiler --version >&5"
3154case "(($ac_try" in
3155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156  *) ac_try_echo=$ac_try;;
3157esac
3158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3159$as_echo "$ac_try_echo") >&5
3160  (eval "$ac_compiler --version >&5") 2>&5
3161  ac_status=$?
3162  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163  (exit $ac_status); }
3164{ (ac_try="$ac_compiler -v >&5"
3165case "(($ac_try" in
3166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167  *) ac_try_echo=$ac_try;;
3168esac
3169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3170$as_echo "$ac_try_echo") >&5
3171  (eval "$ac_compiler -v >&5") 2>&5
3172  ac_status=$?
3173  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174  (exit $ac_status); }
3175{ (ac_try="$ac_compiler -V >&5"
3176case "(($ac_try" in
3177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178  *) ac_try_echo=$ac_try;;
3179esac
3180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3181$as_echo "$ac_try_echo") >&5
3182  (eval "$ac_compiler -V >&5") 2>&5
3183  ac_status=$?
3184  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185  (exit $ac_status); }
3186
3187cat >conftest.$ac_ext <<_ACEOF
3188/* confdefs.h.  */
3189_ACEOF
3190cat confdefs.h >>conftest.$ac_ext
3191cat >>conftest.$ac_ext <<_ACEOF
3192/* end confdefs.h.  */
3193
3194int
3195main ()
3196{
3197
3198  ;
3199  return 0;
3200}
3201_ACEOF
3202ac_clean_files_save=$ac_clean_files
3203ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3204# Try to create an executable without -o first, disregard a.out.
3205# It will help us diagnose broken compilers, and finding out an intuition
3206# of exeext.
3207{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3208$as_echo_n "checking for C compiler default output file name... " >&6; }
3209ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3210
3211# The possible output files:
3212ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3213
3214ac_rmfiles=
3215for ac_file in $ac_files
3216do
3217  case $ac_file in
3218    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3219    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3220  esac
3221done
3222rm -f $ac_rmfiles
3223
3224if { (ac_try="$ac_link_default"
3225case "(($ac_try" in
3226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227  *) ac_try_echo=$ac_try;;
3228esac
3229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3230$as_echo "$ac_try_echo") >&5
3231  (eval "$ac_link_default") 2>&5
3232  ac_status=$?
3233  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234  (exit $ac_status); }; then
3235  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3236# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3237# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3238# so that the user can short-circuit this test for compilers unknown to
3239# Autoconf.
3240for ac_file in $ac_files ''
3241do
3242  test -f "$ac_file" || continue
3243  case $ac_file in
3244    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3245	;;
3246    [ab].out )
3247	# We found the default executable, but exeext='' is most
3248	# certainly right.
3249	break;;
3250    *.* )
3251        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3252	then :; else
3253	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254	fi
3255	# We set ac_cv_exeext here because the later test for it is not
3256	# safe: cross compilers may not add the suffix if given an `-o'
3257	# argument, so we may need to know it at that point already.
3258	# Even if this section looks crufty: it has the advantage of
3259	# actually working.
3260	break;;
3261    * )
3262	break;;
3263  esac
3264done
3265test "$ac_cv_exeext" = no && ac_cv_exeext=
3266
3267else
3268  ac_file=''
3269fi
3270
3271{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3272$as_echo "$ac_file" >&6; }
3273if test -z "$ac_file"; then
3274  $as_echo "$as_me: failed program was:" >&5
3275sed 's/^/| /' conftest.$ac_ext >&5
3276
3277{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3280See \`config.log' for more details." >&5
3281$as_echo "$as_me: error: C compiler cannot create executables
3282See \`config.log' for more details." >&2;}
3283   { (exit 77); exit 77; }; }; }
3284fi
3285
3286ac_exeext=$ac_cv_exeext
3287
3288# Check that the compiler produces executables we can run.  If not, either
3289# the compiler is broken, or we cross compile.
3290{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3291$as_echo_n "checking whether the C compiler works... " >&6; }
3292# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3293# If not cross compiling, check that we can run a simple program.
3294if test "$cross_compiling" != yes; then
3295  if { ac_try='./$ac_file'
3296  { (case "(($ac_try" in
3297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298  *) ac_try_echo=$ac_try;;
3299esac
3300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3301$as_echo "$ac_try_echo") >&5
3302  (eval "$ac_try") 2>&5
3303  ac_status=$?
3304  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305  (exit $ac_status); }; }; then
3306    cross_compiling=no
3307  else
3308    if test "$cross_compiling" = maybe; then
3309	cross_compiling=yes
3310    else
3311	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3314If you meant to cross compile, use \`--host'.
3315See \`config.log' for more details." >&5
3316$as_echo "$as_me: error: cannot run C compiled programs.
3317If you meant to cross compile, use \`--host'.
3318See \`config.log' for more details." >&2;}
3319   { (exit 1); exit 1; }; }; }
3320    fi
3321  fi
3322fi
3323{ $as_echo "$as_me:$LINENO: result: yes" >&5
3324$as_echo "yes" >&6; }
3325
3326rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3327ac_clean_files=$ac_clean_files_save
3328# Check that the compiler produces executables we can run.  If not, either
3329# the compiler is broken, or we cross compile.
3330{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3331$as_echo_n "checking whether we are cross compiling... " >&6; }
3332{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3333$as_echo "$cross_compiling" >&6; }
3334
3335{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3336$as_echo_n "checking for suffix of executables... " >&6; }
3337if { (ac_try="$ac_link"
3338case "(($ac_try" in
3339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340  *) ac_try_echo=$ac_try;;
3341esac
3342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3343$as_echo "$ac_try_echo") >&5
3344  (eval "$ac_link") 2>&5
3345  ac_status=$?
3346  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347  (exit $ac_status); }; then
3348  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3349# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3350# work properly (i.e., refer to `conftest.exe'), while it won't with
3351# `rm'.
3352for ac_file in conftest.exe conftest conftest.*; do
3353  test -f "$ac_file" || continue
3354  case $ac_file in
3355    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3356    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3357	  break;;
3358    * ) break;;
3359  esac
3360done
3361else
3362  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3365See \`config.log' for more details." >&5
3366$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3367See \`config.log' for more details." >&2;}
3368   { (exit 1); exit 1; }; }; }
3369fi
3370
3371rm -f conftest$ac_cv_exeext
3372{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3373$as_echo "$ac_cv_exeext" >&6; }
3374
3375rm -f conftest.$ac_ext
3376EXEEXT=$ac_cv_exeext
3377ac_exeext=$EXEEXT
3378{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3379$as_echo_n "checking for suffix of object files... " >&6; }
3380if test "${ac_cv_objext+set}" = set; then
3381  $as_echo_n "(cached) " >&6
3382else
3383  cat >conftest.$ac_ext <<_ACEOF
3384/* confdefs.h.  */
3385_ACEOF
3386cat confdefs.h >>conftest.$ac_ext
3387cat >>conftest.$ac_ext <<_ACEOF
3388/* end confdefs.h.  */
3389
3390int
3391main ()
3392{
3393
3394  ;
3395  return 0;
3396}
3397_ACEOF
3398rm -f conftest.o conftest.obj
3399if { (ac_try="$ac_compile"
3400case "(($ac_try" in
3401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402  *) ac_try_echo=$ac_try;;
3403esac
3404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3405$as_echo "$ac_try_echo") >&5
3406  (eval "$ac_compile") 2>&5
3407  ac_status=$?
3408  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409  (exit $ac_status); }; then
3410  for ac_file in conftest.o conftest.obj conftest.*; do
3411  test -f "$ac_file" || continue;
3412  case $ac_file in
3413    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3414    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3415       break;;
3416  esac
3417done
3418else
3419  $as_echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
3422{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3424{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3425See \`config.log' for more details." >&5
3426$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3427See \`config.log' for more details." >&2;}
3428   { (exit 1); exit 1; }; }; }
3429fi
3430
3431rm -f conftest.$ac_cv_objext conftest.$ac_ext
3432fi
3433{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3434$as_echo "$ac_cv_objext" >&6; }
3435OBJEXT=$ac_cv_objext
3436ac_objext=$OBJEXT
3437{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3438$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3439if test "${ac_cv_c_compiler_gnu+set}" = set; then
3440  $as_echo_n "(cached) " >&6
3441else
3442  cat >conftest.$ac_ext <<_ACEOF
3443/* confdefs.h.  */
3444_ACEOF
3445cat confdefs.h >>conftest.$ac_ext
3446cat >>conftest.$ac_ext <<_ACEOF
3447/* end confdefs.h.  */
3448
3449int
3450main ()
3451{
3452#ifndef __GNUC__
3453       choke me
3454#endif
3455
3456  ;
3457  return 0;
3458}
3459_ACEOF
3460rm -f conftest.$ac_objext
3461if { (ac_try="$ac_compile"
3462case "(($ac_try" in
3463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464  *) ac_try_echo=$ac_try;;
3465esac
3466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3467$as_echo "$ac_try_echo") >&5
3468  (eval "$ac_compile") 2>conftest.er1
3469  ac_status=$?
3470  grep -v '^ *+' conftest.er1 >conftest.err
3471  rm -f conftest.er1
3472  cat conftest.err >&5
3473  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); } && {
3475	 test -z "$ac_c_werror_flag" ||
3476	 test ! -s conftest.err
3477       } && test -s conftest.$ac_objext; then
3478  ac_compiler_gnu=yes
3479else
3480  $as_echo "$as_me: failed program was:" >&5
3481sed 's/^/| /' conftest.$ac_ext >&5
3482
3483	ac_compiler_gnu=no
3484fi
3485
3486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487ac_cv_c_compiler_gnu=$ac_compiler_gnu
3488
3489fi
3490{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3491$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3492if test $ac_compiler_gnu = yes; then
3493  GCC=yes
3494else
3495  GCC=
3496fi
3497ac_test_CFLAGS=${CFLAGS+set}
3498ac_save_CFLAGS=$CFLAGS
3499{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3500$as_echo_n "checking whether $CC accepts -g... " >&6; }
3501if test "${ac_cv_prog_cc_g+set}" = set; then
3502  $as_echo_n "(cached) " >&6
3503else
3504  ac_save_c_werror_flag=$ac_c_werror_flag
3505   ac_c_werror_flag=yes
3506   ac_cv_prog_cc_g=no
3507   CFLAGS="-g"
3508   cat >conftest.$ac_ext <<_ACEOF
3509/* confdefs.h.  */
3510_ACEOF
3511cat confdefs.h >>conftest.$ac_ext
3512cat >>conftest.$ac_ext <<_ACEOF
3513/* end confdefs.h.  */
3514
3515int
3516main ()
3517{
3518
3519  ;
3520  return 0;
3521}
3522_ACEOF
3523rm -f conftest.$ac_objext
3524if { (ac_try="$ac_compile"
3525case "(($ac_try" in
3526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527  *) ac_try_echo=$ac_try;;
3528esac
3529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3530$as_echo "$ac_try_echo") >&5
3531  (eval "$ac_compile") 2>conftest.er1
3532  ac_status=$?
3533  grep -v '^ *+' conftest.er1 >conftest.err
3534  rm -f conftest.er1
3535  cat conftest.err >&5
3536  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537  (exit $ac_status); } && {
3538	 test -z "$ac_c_werror_flag" ||
3539	 test ! -s conftest.err
3540       } && test -s conftest.$ac_objext; then
3541  ac_cv_prog_cc_g=yes
3542else
3543  $as_echo "$as_me: failed program was:" >&5
3544sed 's/^/| /' conftest.$ac_ext >&5
3545
3546	CFLAGS=""
3547      cat >conftest.$ac_ext <<_ACEOF
3548/* confdefs.h.  */
3549_ACEOF
3550cat confdefs.h >>conftest.$ac_ext
3551cat >>conftest.$ac_ext <<_ACEOF
3552/* end confdefs.h.  */
3553
3554int
3555main ()
3556{
3557
3558  ;
3559  return 0;
3560}
3561_ACEOF
3562rm -f conftest.$ac_objext
3563if { (ac_try="$ac_compile"
3564case "(($ac_try" in
3565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566  *) ac_try_echo=$ac_try;;
3567esac
3568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3569$as_echo "$ac_try_echo") >&5
3570  (eval "$ac_compile") 2>conftest.er1
3571  ac_status=$?
3572  grep -v '^ *+' conftest.er1 >conftest.err
3573  rm -f conftest.er1
3574  cat conftest.err >&5
3575  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576  (exit $ac_status); } && {
3577	 test -z "$ac_c_werror_flag" ||
3578	 test ! -s conftest.err
3579       } && test -s conftest.$ac_objext; then
3580  :
3581else
3582  $as_echo "$as_me: failed program was:" >&5
3583sed 's/^/| /' conftest.$ac_ext >&5
3584
3585	ac_c_werror_flag=$ac_save_c_werror_flag
3586	 CFLAGS="-g"
3587	 cat >conftest.$ac_ext <<_ACEOF
3588/* confdefs.h.  */
3589_ACEOF
3590cat confdefs.h >>conftest.$ac_ext
3591cat >>conftest.$ac_ext <<_ACEOF
3592/* end confdefs.h.  */
3593
3594int
3595main ()
3596{
3597
3598  ;
3599  return 0;
3600}
3601_ACEOF
3602rm -f conftest.$ac_objext
3603if { (ac_try="$ac_compile"
3604case "(($ac_try" in
3605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606  *) ac_try_echo=$ac_try;;
3607esac
3608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3609$as_echo "$ac_try_echo") >&5
3610  (eval "$ac_compile") 2>conftest.er1
3611  ac_status=$?
3612  grep -v '^ *+' conftest.er1 >conftest.err
3613  rm -f conftest.er1
3614  cat conftest.err >&5
3615  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616  (exit $ac_status); } && {
3617	 test -z "$ac_c_werror_flag" ||
3618	 test ! -s conftest.err
3619       } && test -s conftest.$ac_objext; then
3620  ac_cv_prog_cc_g=yes
3621else
3622  $as_echo "$as_me: failed program was:" >&5
3623sed 's/^/| /' conftest.$ac_ext >&5
3624
3625
3626fi
3627
3628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629fi
3630
3631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632fi
3633
3634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635   ac_c_werror_flag=$ac_save_c_werror_flag
3636fi
3637{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3638$as_echo "$ac_cv_prog_cc_g" >&6; }
3639if test "$ac_test_CFLAGS" = set; then
3640  CFLAGS=$ac_save_CFLAGS
3641elif test $ac_cv_prog_cc_g = yes; then
3642  if test "$GCC" = yes; then
3643    CFLAGS="-g -O2"
3644  else
3645    CFLAGS="-g"
3646  fi
3647else
3648  if test "$GCC" = yes; then
3649    CFLAGS="-O2"
3650  else
3651    CFLAGS=
3652  fi
3653fi
3654{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3655$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3656if test "${ac_cv_prog_cc_c89+set}" = set; then
3657  $as_echo_n "(cached) " >&6
3658else
3659  ac_cv_prog_cc_c89=no
3660ac_save_CC=$CC
3661cat >conftest.$ac_ext <<_ACEOF
3662/* confdefs.h.  */
3663_ACEOF
3664cat confdefs.h >>conftest.$ac_ext
3665cat >>conftest.$ac_ext <<_ACEOF
3666/* end confdefs.h.  */
3667#include <stdarg.h>
3668#include <stdio.h>
3669#include <sys/types.h>
3670#include <sys/stat.h>
3671/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3672struct buf { int x; };
3673FILE * (*rcsopen) (struct buf *, struct stat *, int);
3674static char *e (p, i)
3675     char **p;
3676     int i;
3677{
3678  return p[i];
3679}
3680static char *f (char * (*g) (char **, int), char **p, ...)
3681{
3682  char *s;
3683  va_list v;
3684  va_start (v,p);
3685  s = g (p, va_arg (v,int));
3686  va_end (v);
3687  return s;
3688}
3689
3690/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3691   function prototypes and stuff, but not '\xHH' hex character constants.
3692   These don't provoke an error unfortunately, instead are silently treated
3693   as 'x'.  The following induces an error, until -std is added to get
3694   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3695   array size at least.  It's necessary to write '\x00'==0 to get something
3696   that's true only with -std.  */
3697int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3698
3699/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3700   inside strings and character constants.  */
3701#define FOO(x) 'x'
3702int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3703
3704int test (int i, double x);
3705struct s1 {int (*f) (int a);};
3706struct s2 {int (*f) (double a);};
3707int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3708int argc;
3709char **argv;
3710int
3711main ()
3712{
3713return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3714  ;
3715  return 0;
3716}
3717_ACEOF
3718for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3719	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3720do
3721  CC="$ac_save_CC $ac_arg"
3722  rm -f conftest.$ac_objext
3723if { (ac_try="$ac_compile"
3724case "(($ac_try" in
3725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726  *) ac_try_echo=$ac_try;;
3727esac
3728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3729$as_echo "$ac_try_echo") >&5
3730  (eval "$ac_compile") 2>conftest.er1
3731  ac_status=$?
3732  grep -v '^ *+' conftest.er1 >conftest.err
3733  rm -f conftest.er1
3734  cat conftest.err >&5
3735  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736  (exit $ac_status); } && {
3737	 test -z "$ac_c_werror_flag" ||
3738	 test ! -s conftest.err
3739       } && test -s conftest.$ac_objext; then
3740  ac_cv_prog_cc_c89=$ac_arg
3741else
3742  $as_echo "$as_me: failed program was:" >&5
3743sed 's/^/| /' conftest.$ac_ext >&5
3744
3745
3746fi
3747
3748rm -f core conftest.err conftest.$ac_objext
3749  test "x$ac_cv_prog_cc_c89" != "xno" && break
3750done
3751rm -f conftest.$ac_ext
3752CC=$ac_save_CC
3753
3754fi
3755# AC_CACHE_VAL
3756case "x$ac_cv_prog_cc_c89" in
3757  x)
3758    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3759$as_echo "none needed" >&6; } ;;
3760  xno)
3761    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3762$as_echo "unsupported" >&6; } ;;
3763  *)
3764    CC="$CC $ac_cv_prog_cc_c89"
3765    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3766$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3767esac
3768
3769
3770ac_ext=c
3771ac_cpp='$CPP $CPPFLAGS'
3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775
3776depcc="$CC"   am_compiler_list=
3777
3778{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3779$as_echo_n "checking dependency style of $depcc... " >&6; }
3780if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3781  $as_echo_n "(cached) " >&6
3782else
3783  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3784  # We make a subdir and do the tests there.  Otherwise we can end up
3785  # making bogus files that we don't know about and never remove.  For
3786  # instance it was reported that on HP-UX the gcc test will end up
3787  # making a dummy file named `D' -- because `-MD' means `put the output
3788  # in D'.
3789  mkdir conftest.dir
3790  # Copy depcomp to subdir because otherwise we won't find it if we're
3791  # using a relative directory.
3792  cp "$am_depcomp" conftest.dir
3793  cd conftest.dir
3794  # We will build objects and dependencies in a subdirectory because
3795  # it helps to detect inapplicable dependency modes.  For instance
3796  # both Tru64's cc and ICC support -MD to output dependencies as a
3797  # side effect of compilation, but ICC will put the dependencies in
3798  # the current directory while Tru64 will put them in the object
3799  # directory.
3800  mkdir sub
3801
3802  am_cv_CC_dependencies_compiler_type=none
3803  if test "$am_compiler_list" = ""; then
3804     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3805  fi
3806  for depmode in $am_compiler_list; do
3807    # Setup a source with many dependencies, because some compilers
3808    # like to wrap large dependency lists on column 80 (with \), and
3809    # we should not choose a depcomp mode which is confused by this.
3810    #
3811    # We need to recreate these files for each test, as the compiler may
3812    # overwrite some of them when testing with obscure command lines.
3813    # This happens at least with the AIX C compiler.
3814    : > sub/conftest.c
3815    for i in 1 2 3 4 5 6; do
3816      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3817      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3818      # Solaris 8's {/usr,}/bin/sh.
3819      touch sub/conftst$i.h
3820    done
3821    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3822
3823    case $depmode in
3824    nosideeffect)
3825      # after this tag, mechanisms are not by side-effect, so they'll
3826      # only be used when explicitly requested
3827      if test "x$enable_dependency_tracking" = xyes; then
3828	continue
3829      else
3830	break
3831      fi
3832      ;;
3833    none) break ;;
3834    esac
3835    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3836    # mode.  It turns out that the SunPro C++ compiler does not properly
3837    # handle `-M -o', and we need to detect this.
3838    if depmode=$depmode \
3839       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3840       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3841       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3842         >/dev/null 2>conftest.err &&
3843       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3844       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3845       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3846       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3847      # icc doesn't choke on unknown options, it will just issue warnings
3848      # or remarks (even with -Werror).  So we grep stderr for any message
3849      # that says an option was ignored or not supported.
3850      # When given -MP, icc 7.0 and 7.1 complain thusly:
3851      #   icc: Command line warning: ignoring option '-M'; no argument required
3852      # The diagnosis changed in icc 8.0:
3853      #   icc: Command line remark: option '-MP' not supported
3854      if (grep 'ignoring option' conftest.err ||
3855          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3856        am_cv_CC_dependencies_compiler_type=$depmode
3857        break
3858      fi
3859    fi
3860  done
3861
3862  cd ..
3863  rm -rf conftest.dir
3864else
3865  am_cv_CC_dependencies_compiler_type=none
3866fi
3867
3868fi
3869{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3870$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3871CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3872
3873 if
3874  test "x$enable_dependency_tracking" != xno \
3875  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3876  am__fastdepCC_TRUE=
3877  am__fastdepCC_FALSE='#'
3878else
3879  am__fastdepCC_TRUE='#'
3880  am__fastdepCC_FALSE=
3881fi
3882
3883
3884{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3885$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3886if test "${lt_cv_path_SED+set}" = set; then
3887  $as_echo_n "(cached) " >&6
3888else
3889  # Loop through the user's path and test for sed and gsed.
3890# Then use that list of sed's as ones to test for truncation.
3891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892for as_dir in $PATH
3893do
3894  IFS=$as_save_IFS
3895  test -z "$as_dir" && as_dir=.
3896  for lt_ac_prog in sed gsed; do
3897    for ac_exec_ext in '' $ac_executable_extensions; do
3898      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3899        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3900      fi
3901    done
3902  done
3903done
3904IFS=$as_save_IFS
3905lt_ac_max=0
3906lt_ac_count=0
3907# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3908# along with /bin/sed that truncates output.
3909for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3910  test ! -f $lt_ac_sed && continue
3911  cat /dev/null > conftest.in
3912  lt_ac_count=0
3913  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3914  # Check for GNU sed and select it if it is found.
3915  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3916    lt_cv_path_SED=$lt_ac_sed
3917    break
3918  fi
3919  while true; do
3920    cat conftest.in conftest.in >conftest.tmp
3921    mv conftest.tmp conftest.in
3922    cp conftest.in conftest.nl
3923    echo >>conftest.nl
3924    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3925    cmp -s conftest.out conftest.nl || break
3926    # 10000 chars as input seems more than enough
3927    test $lt_ac_count -gt 10 && break
3928    lt_ac_count=`expr $lt_ac_count + 1`
3929    if test $lt_ac_count -gt $lt_ac_max; then
3930      lt_ac_max=$lt_ac_count
3931      lt_cv_path_SED=$lt_ac_sed
3932    fi
3933  done
3934done
3935
3936fi
3937
3938SED=$lt_cv_path_SED
3939
3940{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3941$as_echo "$SED" >&6; }
3942
3943{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3944$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3945if test "${ac_cv_path_GREP+set}" = set; then
3946  $as_echo_n "(cached) " >&6
3947else
3948  if test -z "$GREP"; then
3949  ac_path_GREP_found=false
3950  # Loop through the user's path and test for each of PROGNAME-LIST
3951  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3953do
3954  IFS=$as_save_IFS
3955  test -z "$as_dir" && as_dir=.
3956  for ac_prog in grep ggrep; do
3957    for ac_exec_ext in '' $ac_executable_extensions; do
3958      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3959      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3960# Check for GNU ac_path_GREP and select it if it is found.
3961  # Check for GNU $ac_path_GREP
3962case `"$ac_path_GREP" --version 2>&1` in
3963*GNU*)
3964  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3965*)
3966  ac_count=0
3967  $as_echo_n 0123456789 >"conftest.in"
3968  while :
3969  do
3970    cat "conftest.in" "conftest.in" >"conftest.tmp"
3971    mv "conftest.tmp" "conftest.in"
3972    cp "conftest.in" "conftest.nl"
3973    $as_echo 'GREP' >> "conftest.nl"
3974    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3975    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3976    ac_count=`expr $ac_count + 1`
3977    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3978      # Best one so far, save it but keep looking for a better one
3979      ac_cv_path_GREP="$ac_path_GREP"
3980      ac_path_GREP_max=$ac_count
3981    fi
3982    # 10*(2^10) chars as input seems more than enough
3983    test $ac_count -gt 10 && break
3984  done
3985  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3986esac
3987
3988      $ac_path_GREP_found && break 3
3989    done
3990  done
3991done
3992IFS=$as_save_IFS
3993  if test -z "$ac_cv_path_GREP"; then
3994    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3995$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3996   { (exit 1); exit 1; }; }
3997  fi
3998else
3999  ac_cv_path_GREP=$GREP
4000fi
4001
4002fi
4003{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4004$as_echo "$ac_cv_path_GREP" >&6; }
4005 GREP="$ac_cv_path_GREP"
4006
4007
4008{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4009$as_echo_n "checking for egrep... " >&6; }
4010if test "${ac_cv_path_EGREP+set}" = set; then
4011  $as_echo_n "(cached) " >&6
4012else
4013  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4014   then ac_cv_path_EGREP="$GREP -E"
4015   else
4016     if test -z "$EGREP"; then
4017  ac_path_EGREP_found=false
4018  # Loop through the user's path and test for each of PROGNAME-LIST
4019  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4021do
4022  IFS=$as_save_IFS
4023  test -z "$as_dir" && as_dir=.
4024  for ac_prog in egrep; do
4025    for ac_exec_ext in '' $ac_executable_extensions; do
4026      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4027      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4028# Check for GNU ac_path_EGREP and select it if it is found.
4029  # Check for GNU $ac_path_EGREP
4030case `"$ac_path_EGREP" --version 2>&1` in
4031*GNU*)
4032  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4033*)
4034  ac_count=0
4035  $as_echo_n 0123456789 >"conftest.in"
4036  while :
4037  do
4038    cat "conftest.in" "conftest.in" >"conftest.tmp"
4039    mv "conftest.tmp" "conftest.in"
4040    cp "conftest.in" "conftest.nl"
4041    $as_echo 'EGREP' >> "conftest.nl"
4042    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4043    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4044    ac_count=`expr $ac_count + 1`
4045    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4046      # Best one so far, save it but keep looking for a better one
4047      ac_cv_path_EGREP="$ac_path_EGREP"
4048      ac_path_EGREP_max=$ac_count
4049    fi
4050    # 10*(2^10) chars as input seems more than enough
4051    test $ac_count -gt 10 && break
4052  done
4053  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4054esac
4055
4056      $ac_path_EGREP_found && break 3
4057    done
4058  done
4059done
4060IFS=$as_save_IFS
4061  if test -z "$ac_cv_path_EGREP"; then
4062    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4063$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4064   { (exit 1); exit 1; }; }
4065  fi
4066else
4067  ac_cv_path_EGREP=$EGREP
4068fi
4069
4070   fi
4071fi
4072{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4073$as_echo "$ac_cv_path_EGREP" >&6; }
4074 EGREP="$ac_cv_path_EGREP"
4075
4076
4077
4078# Check whether --with-gnu-ld was given.
4079if test "${with_gnu_ld+set}" = set; then
4080  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4081else
4082  with_gnu_ld=no
4083fi
4084
4085ac_prog=ld
4086if test "$GCC" = yes; then
4087  # Check if gcc -print-prog-name=ld gives a path.
4088  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4089$as_echo_n "checking for ld used by $CC... " >&6; }
4090  case $host in
4091  *-*-mingw*)
4092    # gcc leaves a trailing carriage return which upsets mingw
4093    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4094  *)
4095    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4096  esac
4097  case $ac_prog in
4098    # Accept absolute paths.
4099    [\\/]* | ?:[\\/]*)
4100      re_direlt='/[^/][^/]*/\.\./'
4101      # Canonicalize the pathname of ld
4102      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4103      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4104	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4105      done
4106      test -z "$LD" && LD="$ac_prog"
4107      ;;
4108  "")
4109    # If it fails, then pretend we aren't using GCC.
4110    ac_prog=ld
4111    ;;
4112  *)
4113    # If it is relative, then search for the first ld in PATH.
4114    with_gnu_ld=unknown
4115    ;;
4116  esac
4117elif test "$with_gnu_ld" = yes; then
4118  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4119$as_echo_n "checking for GNU ld... " >&6; }
4120else
4121  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4122$as_echo_n "checking for non-GNU ld... " >&6; }
4123fi
4124if test "${lt_cv_path_LD+set}" = set; then
4125  $as_echo_n "(cached) " >&6
4126else
4127  if test -z "$LD"; then
4128  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4129  for ac_dir in $PATH; do
4130    IFS="$lt_save_ifs"
4131    test -z "$ac_dir" && ac_dir=.
4132    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4133      lt_cv_path_LD="$ac_dir/$ac_prog"
4134      # Check to see if the program is GNU ld.  I'd rather use --version,
4135      # but apparently some variants of GNU ld only accept -v.
4136      # Break only if it was the GNU/non-GNU ld that we prefer.
4137      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4138      *GNU* | *'with BFD'*)
4139	test "$with_gnu_ld" != no && break
4140	;;
4141      *)
4142	test "$with_gnu_ld" != yes && break
4143	;;
4144      esac
4145    fi
4146  done
4147  IFS="$lt_save_ifs"
4148else
4149  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4150fi
4151fi
4152
4153LD="$lt_cv_path_LD"
4154if test -n "$LD"; then
4155  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4156$as_echo "$LD" >&6; }
4157else
4158  { $as_echo "$as_me:$LINENO: result: no" >&5
4159$as_echo "no" >&6; }
4160fi
4161test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4162$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4163   { (exit 1); exit 1; }; }
4164{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4165$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4166if test "${lt_cv_prog_gnu_ld+set}" = set; then
4167  $as_echo_n "(cached) " >&6
4168else
4169  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4170case `$LD -v 2>&1 </dev/null` in
4171*GNU* | *'with BFD'*)
4172  lt_cv_prog_gnu_ld=yes
4173  ;;
4174*)
4175  lt_cv_prog_gnu_ld=no
4176  ;;
4177esac
4178fi
4179{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4180$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4181with_gnu_ld=$lt_cv_prog_gnu_ld
4182
4183
4184{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4185$as_echo_n "checking for $LD option to reload object files... " >&6; }
4186if test "${lt_cv_ld_reload_flag+set}" = set; then
4187  $as_echo_n "(cached) " >&6
4188else
4189  lt_cv_ld_reload_flag='-r'
4190fi
4191{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4192$as_echo "$lt_cv_ld_reload_flag" >&6; }
4193reload_flag=$lt_cv_ld_reload_flag
4194case $reload_flag in
4195"" | " "*) ;;
4196*) reload_flag=" $reload_flag" ;;
4197esac
4198reload_cmds='$LD$reload_flag -o $output$reload_objs'
4199case $host_os in
4200  darwin*)
4201    if test "$GCC" = yes; then
4202      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4203    else
4204      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4205    fi
4206    ;;
4207esac
4208
4209{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4210$as_echo_n "checking for BSD-compatible nm... " >&6; }
4211if test "${lt_cv_path_NM+set}" = set; then
4212  $as_echo_n "(cached) " >&6
4213else
4214  if test -n "$NM"; then
4215  # Let the user override the test.
4216  lt_cv_path_NM="$NM"
4217else
4218  lt_nm_to_check="${ac_tool_prefix}nm"
4219  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4220    lt_nm_to_check="$lt_nm_to_check nm"
4221  fi
4222  for lt_tmp_nm in $lt_nm_to_check; do
4223    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4224    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4225      IFS="$lt_save_ifs"
4226      test -z "$ac_dir" && ac_dir=.
4227      tmp_nm="$ac_dir/$lt_tmp_nm"
4228      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4229	# Check to see if the nm accepts a BSD-compat flag.
4230	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4231	#   nm: unknown option "B" ignored
4232	# Tru64's nm complains that /dev/null is an invalid object file
4233	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4234	*/dev/null* | *'Invalid file or object type'*)
4235	  lt_cv_path_NM="$tmp_nm -B"
4236	  break
4237	  ;;
4238	*)
4239	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4240	  */dev/null*)
4241	    lt_cv_path_NM="$tmp_nm -p"
4242	    break
4243	    ;;
4244	  *)
4245	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4246	    continue # so that we can try to find one that supports BSD flags
4247	    ;;
4248	  esac
4249	  ;;
4250	esac
4251      fi
4252    done
4253    IFS="$lt_save_ifs"
4254  done
4255  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4256fi
4257fi
4258{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4259$as_echo "$lt_cv_path_NM" >&6; }
4260NM="$lt_cv_path_NM"
4261
4262{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4263$as_echo_n "checking whether ln -s works... " >&6; }
4264LN_S=$as_ln_s
4265if test "$LN_S" = "ln -s"; then
4266  { $as_echo "$as_me:$LINENO: result: yes" >&5
4267$as_echo "yes" >&6; }
4268else
4269  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4270$as_echo "no, using $LN_S" >&6; }
4271fi
4272
4273{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4274$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4275if test "${lt_cv_deplibs_check_method+set}" = set; then
4276  $as_echo_n "(cached) " >&6
4277else
4278  lt_cv_file_magic_cmd='$MAGIC_CMD'
4279lt_cv_file_magic_test_file=
4280lt_cv_deplibs_check_method='unknown'
4281# Need to set the preceding variable on all platforms that support
4282# interlibrary dependencies.
4283# 'none' -- dependencies not supported.
4284# `unknown' -- same as none, but documents that we really don't know.
4285# 'pass_all' -- all dependencies passed with no checks.
4286# 'test_compile' -- check by making test program.
4287# 'file_magic [[regex]]' -- check by looking for files in library path
4288# which responds to the $file_magic_cmd with a given extended regex.
4289# If you have `file' or equivalent on your system and you're not sure
4290# whether `pass_all' will *always* work, you probably want this one.
4291
4292case $host_os in
4293aix[4-9]*)
4294  lt_cv_deplibs_check_method=pass_all
4295  ;;
4296
4297beos*)
4298  lt_cv_deplibs_check_method=pass_all
4299  ;;
4300
4301bsdi[45]*)
4302  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4303  lt_cv_file_magic_cmd='/usr/bin/file -L'
4304  lt_cv_file_magic_test_file=/shlib/libc.so
4305  ;;
4306
4307cygwin*)
4308  # func_win32_libid is a shell function defined in ltmain.sh
4309  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4310  lt_cv_file_magic_cmd='func_win32_libid'
4311  ;;
4312
4313mingw* | pw32*)
4314  # Base MSYS/MinGW do not provide the 'file' command needed by
4315  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4316  # unless we find 'file', for example because we are cross-compiling.
4317  if ( file / ) >/dev/null 2>&1; then
4318    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4319    lt_cv_file_magic_cmd='func_win32_libid'
4320  else
4321    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4322    lt_cv_file_magic_cmd='$OBJDUMP -f'
4323  fi
4324  ;;
4325
4326darwin* | rhapsody*)
4327  lt_cv_deplibs_check_method=pass_all
4328  ;;
4329
4330freebsd* | dragonfly*)
4331  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4332    case $host_cpu in
4333    i*86 )
4334      # Not sure whether the presence of OpenBSD here was a mistake.
4335      # Let's accept both of them until this is cleared up.
4336      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4337      lt_cv_file_magic_cmd=/usr/bin/file
4338      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4339      ;;
4340    esac
4341  else
4342    lt_cv_deplibs_check_method=pass_all
4343  fi
4344  ;;
4345
4346gnu*)
4347  lt_cv_deplibs_check_method=pass_all
4348  ;;
4349
4350hpux10.20* | hpux11*)
4351  lt_cv_file_magic_cmd=/usr/bin/file
4352  case $host_cpu in
4353  ia64*)
4354    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4355    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4356    ;;
4357  hppa*64*)
4358    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]'
4359    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4360    ;;
4361  *)
4362    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4363    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4364    ;;
4365  esac
4366  ;;
4367
4368interix[3-9]*)
4369  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4370  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4371  ;;
4372
4373irix5* | irix6* | nonstopux*)
4374  case $LD in
4375  *-32|*"-32 ") libmagic=32-bit;;
4376  *-n32|*"-n32 ") libmagic=N32;;
4377  *-64|*"-64 ") libmagic=64-bit;;
4378  *) libmagic=never-match;;
4379  esac
4380  lt_cv_deplibs_check_method=pass_all
4381  ;;
4382
4383# This must be Linux ELF.
4384linux* | k*bsd*-gnu)
4385  lt_cv_deplibs_check_method=pass_all
4386  ;;
4387
4388netbsd*)
4389  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4390    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4391  else
4392    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4393  fi
4394  ;;
4395
4396newos6*)
4397  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4398  lt_cv_file_magic_cmd=/usr/bin/file
4399  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4400  ;;
4401
4402nto-qnx*)
4403  lt_cv_deplibs_check_method=unknown
4404  ;;
4405
4406openbsd*)
4407  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4408    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4409  else
4410    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4411  fi
4412  ;;
4413
4414osf3* | osf4* | osf5*)
4415  lt_cv_deplibs_check_method=pass_all
4416  ;;
4417
4418rdos*)
4419  lt_cv_deplibs_check_method=pass_all
4420  ;;
4421
4422solaris*)
4423  lt_cv_deplibs_check_method=pass_all
4424  ;;
4425
4426sysv4 | sysv4.3*)
4427  case $host_vendor in
4428  motorola)
4429    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]'
4430    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4431    ;;
4432  ncr)
4433    lt_cv_deplibs_check_method=pass_all
4434    ;;
4435  sequent)
4436    lt_cv_file_magic_cmd='/bin/file'
4437    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4438    ;;
4439  sni)
4440    lt_cv_file_magic_cmd='/bin/file'
4441    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4442    lt_cv_file_magic_test_file=/lib/libc.so
4443    ;;
4444  siemens)
4445    lt_cv_deplibs_check_method=pass_all
4446    ;;
4447  pc)
4448    lt_cv_deplibs_check_method=pass_all
4449    ;;
4450  esac
4451  ;;
4452
4453sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4454  lt_cv_deplibs_check_method=pass_all
4455  ;;
4456esac
4457
4458fi
4459{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4460$as_echo "$lt_cv_deplibs_check_method" >&6; }
4461file_magic_cmd=$lt_cv_file_magic_cmd
4462deplibs_check_method=$lt_cv_deplibs_check_method
4463test -z "$deplibs_check_method" && deplibs_check_method=unknown
4464
4465
4466
4467
4468# If no C compiler was specified, use CC.
4469LTCC=${LTCC-"$CC"}
4470
4471# If no C compiler flags were specified, use CFLAGS.
4472LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4473
4474# Allow CC to be a program name with arguments.
4475compiler=$CC
4476
4477
4478# Check whether --enable-libtool-lock was given.
4479if test "${enable_libtool_lock+set}" = set; then
4480  enableval=$enable_libtool_lock;
4481fi
4482
4483test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4484
4485# Some flags need to be propagated to the compiler or linker for good
4486# libtool support.
4487case $host in
4488ia64-*-hpux*)
4489  # Find out which ABI we are using.
4490  echo 'int i;' > conftest.$ac_ext
4491  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4492  (eval $ac_compile) 2>&5
4493  ac_status=$?
4494  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495  (exit $ac_status); }; then
4496    case `/usr/bin/file conftest.$ac_objext` in
4497    *ELF-32*)
4498      HPUX_IA64_MODE="32"
4499      ;;
4500    *ELF-64*)
4501      HPUX_IA64_MODE="64"
4502      ;;
4503    esac
4504  fi
4505  rm -rf conftest*
4506  ;;
4507*-*-irix6*)
4508  # Find out which ABI we are using.
4509  echo '#line 4509 "configure"' > conftest.$ac_ext
4510  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511  (eval $ac_compile) 2>&5
4512  ac_status=$?
4513  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514  (exit $ac_status); }; then
4515   if test "$lt_cv_prog_gnu_ld" = yes; then
4516    case `/usr/bin/file conftest.$ac_objext` in
4517    *32-bit*)
4518      LD="${LD-ld} -melf32bsmip"
4519      ;;
4520    *N32*)
4521      LD="${LD-ld} -melf32bmipn32"
4522      ;;
4523    *64-bit*)
4524      LD="${LD-ld} -melf64bmip"
4525      ;;
4526    esac
4527   else
4528    case `/usr/bin/file conftest.$ac_objext` in
4529    *32-bit*)
4530      LD="${LD-ld} -32"
4531      ;;
4532    *N32*)
4533      LD="${LD-ld} -n32"
4534      ;;
4535    *64-bit*)
4536      LD="${LD-ld} -64"
4537      ;;
4538    esac
4539   fi
4540  fi
4541  rm -rf conftest*
4542  ;;
4543
4544x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4545s390*-*linux*|sparc*-*linux*)
4546  # Find out which ABI we are using.
4547  echo 'int i;' > conftest.$ac_ext
4548  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4549  (eval $ac_compile) 2>&5
4550  ac_status=$?
4551  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552  (exit $ac_status); }; then
4553    case `/usr/bin/file conftest.o` in
4554    *32-bit*)
4555      case $host in
4556        x86_64-*kfreebsd*-gnu)
4557          LD="${LD-ld} -m elf_i386_fbsd"
4558          ;;
4559        x86_64-*linux*)
4560          LD="${LD-ld} -m elf_i386"
4561          ;;
4562        ppc64-*linux*|powerpc64-*linux*)
4563          LD="${LD-ld} -m elf32ppclinux"
4564          ;;
4565        s390x-*linux*)
4566          LD="${LD-ld} -m elf_s390"
4567          ;;
4568        sparc64-*linux*)
4569          LD="${LD-ld} -m elf32_sparc"
4570          ;;
4571      esac
4572      ;;
4573    *64-bit*)
4574      libsuff=64
4575      case $host in
4576        x86_64-*kfreebsd*-gnu)
4577          LD="${LD-ld} -m elf_x86_64_fbsd"
4578          ;;
4579        x86_64-*linux*)
4580          LD="${LD-ld} -m elf_x86_64"
4581          ;;
4582        ppc*-*linux*|powerpc*-*linux*)
4583          LD="${LD-ld} -m elf64ppc"
4584          ;;
4585        s390*-*linux*)
4586          LD="${LD-ld} -m elf64_s390"
4587          ;;
4588        sparc*-*linux*)
4589          LD="${LD-ld} -m elf64_sparc"
4590          ;;
4591      esac
4592      ;;
4593    esac
4594  fi
4595  rm -rf conftest*
4596  ;;
4597
4598*-*-sco3.2v5*)
4599  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4600  SAVE_CFLAGS="$CFLAGS"
4601  CFLAGS="$CFLAGS -belf"
4602  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4603$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4604if test "${lt_cv_cc_needs_belf+set}" = set; then
4605  $as_echo_n "(cached) " >&6
4606else
4607  ac_ext=c
4608ac_cpp='$CPP $CPPFLAGS'
4609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4611ac_compiler_gnu=$ac_cv_c_compiler_gnu
4612
4613     cat >conftest.$ac_ext <<_ACEOF
4614/* confdefs.h.  */
4615_ACEOF
4616cat confdefs.h >>conftest.$ac_ext
4617cat >>conftest.$ac_ext <<_ACEOF
4618/* end confdefs.h.  */
4619
4620int
4621main ()
4622{
4623
4624  ;
4625  return 0;
4626}
4627_ACEOF
4628rm -f conftest.$ac_objext conftest$ac_exeext
4629if { (ac_try="$ac_link"
4630case "(($ac_try" in
4631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632  *) ac_try_echo=$ac_try;;
4633esac
4634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4635$as_echo "$ac_try_echo") >&5
4636  (eval "$ac_link") 2>conftest.er1
4637  ac_status=$?
4638  grep -v '^ *+' conftest.er1 >conftest.err
4639  rm -f conftest.er1
4640  cat conftest.err >&5
4641  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642  (exit $ac_status); } && {
4643	 test -z "$ac_c_werror_flag" ||
4644	 test ! -s conftest.err
4645       } && test -s conftest$ac_exeext && {
4646	 test "$cross_compiling" = yes ||
4647	 $as_test_x conftest$ac_exeext
4648       }; then
4649  lt_cv_cc_needs_belf=yes
4650else
4651  $as_echo "$as_me: failed program was:" >&5
4652sed 's/^/| /' conftest.$ac_ext >&5
4653
4654	lt_cv_cc_needs_belf=no
4655fi
4656
4657rm -rf conftest.dSYM
4658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4659      conftest$ac_exeext conftest.$ac_ext
4660     ac_ext=c
4661ac_cpp='$CPP $CPPFLAGS'
4662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664ac_compiler_gnu=$ac_cv_c_compiler_gnu
4665
4666fi
4667{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4668$as_echo "$lt_cv_cc_needs_belf" >&6; }
4669  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4670    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4671    CFLAGS="$SAVE_CFLAGS"
4672  fi
4673  ;;
4674sparc*-*solaris*)
4675  # Find out which ABI we are using.
4676  echo 'int i;' > conftest.$ac_ext
4677  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678  (eval $ac_compile) 2>&5
4679  ac_status=$?
4680  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681  (exit $ac_status); }; then
4682    case `/usr/bin/file conftest.o` in
4683    *64-bit*)
4684      case $lt_cv_prog_gnu_ld in
4685      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4686      *)
4687        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4688	  LD="${LD-ld} -64"
4689	fi
4690	;;
4691      esac
4692      ;;
4693    esac
4694  fi
4695  rm -rf conftest*
4696  ;;
4697
4698
4699esac
4700
4701need_locks="$enable_libtool_lock"
4702
4703
4704ac_ext=c
4705ac_cpp='$CPP $CPPFLAGS'
4706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4708ac_compiler_gnu=$ac_cv_c_compiler_gnu
4709{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4710$as_echo_n "checking how to run the C preprocessor... " >&6; }
4711# On Suns, sometimes $CPP names a directory.
4712if test -n "$CPP" && test -d "$CPP"; then
4713  CPP=
4714fi
4715if test -z "$CPP"; then
4716  if test "${ac_cv_prog_CPP+set}" = set; then
4717  $as_echo_n "(cached) " >&6
4718else
4719      # Double quotes because CPP needs to be expanded
4720    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4721    do
4722      ac_preproc_ok=false
4723for ac_c_preproc_warn_flag in '' yes
4724do
4725  # Use a header file that comes with gcc, so configuring glibc
4726  # with a fresh cross-compiler works.
4727  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4728  # <limits.h> exists even on freestanding compilers.
4729  # On the NeXT, cc -E runs the code through the compiler's parser,
4730  # not just through cpp. "Syntax error" is here to catch this case.
4731  cat >conftest.$ac_ext <<_ACEOF
4732/* confdefs.h.  */
4733_ACEOF
4734cat confdefs.h >>conftest.$ac_ext
4735cat >>conftest.$ac_ext <<_ACEOF
4736/* end confdefs.h.  */
4737#ifdef __STDC__
4738# include <limits.h>
4739#else
4740# include <assert.h>
4741#endif
4742		     Syntax error
4743_ACEOF
4744if { (ac_try="$ac_cpp conftest.$ac_ext"
4745case "(($ac_try" in
4746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747  *) ac_try_echo=$ac_try;;
4748esac
4749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4750$as_echo "$ac_try_echo") >&5
4751  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4752  ac_status=$?
4753  grep -v '^ *+' conftest.er1 >conftest.err
4754  rm -f conftest.er1
4755  cat conftest.err >&5
4756  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757  (exit $ac_status); } >/dev/null && {
4758	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4759	 test ! -s conftest.err
4760       }; then
4761  :
4762else
4763  $as_echo "$as_me: failed program was:" >&5
4764sed 's/^/| /' conftest.$ac_ext >&5
4765
4766  # Broken: fails on valid input.
4767continue
4768fi
4769
4770rm -f conftest.err conftest.$ac_ext
4771
4772  # OK, works on sane cases.  Now check whether nonexistent headers
4773  # can be detected and how.
4774  cat >conftest.$ac_ext <<_ACEOF
4775/* confdefs.h.  */
4776_ACEOF
4777cat confdefs.h >>conftest.$ac_ext
4778cat >>conftest.$ac_ext <<_ACEOF
4779/* end confdefs.h.  */
4780#include <ac_nonexistent.h>
4781_ACEOF
4782if { (ac_try="$ac_cpp conftest.$ac_ext"
4783case "(($ac_try" in
4784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785  *) ac_try_echo=$ac_try;;
4786esac
4787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4788$as_echo "$ac_try_echo") >&5
4789  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4790  ac_status=$?
4791  grep -v '^ *+' conftest.er1 >conftest.err
4792  rm -f conftest.er1
4793  cat conftest.err >&5
4794  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795  (exit $ac_status); } >/dev/null && {
4796	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4797	 test ! -s conftest.err
4798       }; then
4799  # Broken: success on invalid input.
4800continue
4801else
4802  $as_echo "$as_me: failed program was:" >&5
4803sed 's/^/| /' conftest.$ac_ext >&5
4804
4805  # Passes both tests.
4806ac_preproc_ok=:
4807break
4808fi
4809
4810rm -f conftest.err conftest.$ac_ext
4811
4812done
4813# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4814rm -f conftest.err conftest.$ac_ext
4815if $ac_preproc_ok; then
4816  break
4817fi
4818
4819    done
4820    ac_cv_prog_CPP=$CPP
4821
4822fi
4823  CPP=$ac_cv_prog_CPP
4824else
4825  ac_cv_prog_CPP=$CPP
4826fi
4827{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4828$as_echo "$CPP" >&6; }
4829ac_preproc_ok=false
4830for ac_c_preproc_warn_flag in '' yes
4831do
4832  # Use a header file that comes with gcc, so configuring glibc
4833  # with a fresh cross-compiler works.
4834  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4835  # <limits.h> exists even on freestanding compilers.
4836  # On the NeXT, cc -E runs the code through the compiler's parser,
4837  # not just through cpp. "Syntax error" is here to catch this case.
4838  cat >conftest.$ac_ext <<_ACEOF
4839/* confdefs.h.  */
4840_ACEOF
4841cat confdefs.h >>conftest.$ac_ext
4842cat >>conftest.$ac_ext <<_ACEOF
4843/* end confdefs.h.  */
4844#ifdef __STDC__
4845# include <limits.h>
4846#else
4847# include <assert.h>
4848#endif
4849		     Syntax error
4850_ACEOF
4851if { (ac_try="$ac_cpp conftest.$ac_ext"
4852case "(($ac_try" in
4853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854  *) ac_try_echo=$ac_try;;
4855esac
4856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4857$as_echo "$ac_try_echo") >&5
4858  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4859  ac_status=$?
4860  grep -v '^ *+' conftest.er1 >conftest.err
4861  rm -f conftest.er1
4862  cat conftest.err >&5
4863  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864  (exit $ac_status); } >/dev/null && {
4865	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4866	 test ! -s conftest.err
4867       }; then
4868  :
4869else
4870  $as_echo "$as_me: failed program was:" >&5
4871sed 's/^/| /' conftest.$ac_ext >&5
4872
4873  # Broken: fails on valid input.
4874continue
4875fi
4876
4877rm -f conftest.err conftest.$ac_ext
4878
4879  # OK, works on sane cases.  Now check whether nonexistent headers
4880  # can be detected and how.
4881  cat >conftest.$ac_ext <<_ACEOF
4882/* confdefs.h.  */
4883_ACEOF
4884cat confdefs.h >>conftest.$ac_ext
4885cat >>conftest.$ac_ext <<_ACEOF
4886/* end confdefs.h.  */
4887#include <ac_nonexistent.h>
4888_ACEOF
4889if { (ac_try="$ac_cpp conftest.$ac_ext"
4890case "(($ac_try" in
4891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4892  *) ac_try_echo=$ac_try;;
4893esac
4894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4895$as_echo "$ac_try_echo") >&5
4896  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4897  ac_status=$?
4898  grep -v '^ *+' conftest.er1 >conftest.err
4899  rm -f conftest.er1
4900  cat conftest.err >&5
4901  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902  (exit $ac_status); } >/dev/null && {
4903	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4904	 test ! -s conftest.err
4905       }; then
4906  # Broken: success on invalid input.
4907continue
4908else
4909  $as_echo "$as_me: failed program was:" >&5
4910sed 's/^/| /' conftest.$ac_ext >&5
4911
4912  # Passes both tests.
4913ac_preproc_ok=:
4914break
4915fi
4916
4917rm -f conftest.err conftest.$ac_ext
4918
4919done
4920# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4921rm -f conftest.err conftest.$ac_ext
4922if $ac_preproc_ok; then
4923  :
4924else
4925  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4927{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4928See \`config.log' for more details." >&5
4929$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4930See \`config.log' for more details." >&2;}
4931   { (exit 1); exit 1; }; }; }
4932fi
4933
4934ac_ext=c
4935ac_cpp='$CPP $CPPFLAGS'
4936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938ac_compiler_gnu=$ac_cv_c_compiler_gnu
4939
4940
4941{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4942$as_echo_n "checking for ANSI C header files... " >&6; }
4943if test "${ac_cv_header_stdc+set}" = set; then
4944  $as_echo_n "(cached) " >&6
4945else
4946  cat >conftest.$ac_ext <<_ACEOF
4947/* confdefs.h.  */
4948_ACEOF
4949cat confdefs.h >>conftest.$ac_ext
4950cat >>conftest.$ac_ext <<_ACEOF
4951/* end confdefs.h.  */
4952#include <stdlib.h>
4953#include <stdarg.h>
4954#include <string.h>
4955#include <float.h>
4956
4957int
4958main ()
4959{
4960
4961  ;
4962  return 0;
4963}
4964_ACEOF
4965rm -f conftest.$ac_objext
4966if { (ac_try="$ac_compile"
4967case "(($ac_try" in
4968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969  *) ac_try_echo=$ac_try;;
4970esac
4971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4972$as_echo "$ac_try_echo") >&5
4973  (eval "$ac_compile") 2>conftest.er1
4974  ac_status=$?
4975  grep -v '^ *+' conftest.er1 >conftest.err
4976  rm -f conftest.er1
4977  cat conftest.err >&5
4978  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979  (exit $ac_status); } && {
4980	 test -z "$ac_c_werror_flag" ||
4981	 test ! -s conftest.err
4982       } && test -s conftest.$ac_objext; then
4983  ac_cv_header_stdc=yes
4984else
4985  $as_echo "$as_me: failed program was:" >&5
4986sed 's/^/| /' conftest.$ac_ext >&5
4987
4988	ac_cv_header_stdc=no
4989fi
4990
4991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992
4993if test $ac_cv_header_stdc = yes; then
4994  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4995  cat >conftest.$ac_ext <<_ACEOF
4996/* confdefs.h.  */
4997_ACEOF
4998cat confdefs.h >>conftest.$ac_ext
4999cat >>conftest.$ac_ext <<_ACEOF
5000/* end confdefs.h.  */
5001#include <string.h>
5002
5003_ACEOF
5004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5005  $EGREP "memchr" >/dev/null 2>&1; then
5006  :
5007else
5008  ac_cv_header_stdc=no
5009fi
5010rm -f conftest*
5011
5012fi
5013
5014if test $ac_cv_header_stdc = yes; then
5015  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5016  cat >conftest.$ac_ext <<_ACEOF
5017/* confdefs.h.  */
5018_ACEOF
5019cat confdefs.h >>conftest.$ac_ext
5020cat >>conftest.$ac_ext <<_ACEOF
5021/* end confdefs.h.  */
5022#include <stdlib.h>
5023
5024_ACEOF
5025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5026  $EGREP "free" >/dev/null 2>&1; then
5027  :
5028else
5029  ac_cv_header_stdc=no
5030fi
5031rm -f conftest*
5032
5033fi
5034
5035if test $ac_cv_header_stdc = yes; then
5036  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5037  if test "$cross_compiling" = yes; then
5038  :
5039else
5040  cat >conftest.$ac_ext <<_ACEOF
5041/* confdefs.h.  */
5042_ACEOF
5043cat confdefs.h >>conftest.$ac_ext
5044cat >>conftest.$ac_ext <<_ACEOF
5045/* end confdefs.h.  */
5046#include <ctype.h>
5047#include <stdlib.h>
5048#if ((' ' & 0x0FF) == 0x020)
5049# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5050# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5051#else
5052# define ISLOWER(c) \
5053		   (('a' <= (c) && (c) <= 'i') \
5054		     || ('j' <= (c) && (c) <= 'r') \
5055		     || ('s' <= (c) && (c) <= 'z'))
5056# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5057#endif
5058
5059#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5060int
5061main ()
5062{
5063  int i;
5064  for (i = 0; i < 256; i++)
5065    if (XOR (islower (i), ISLOWER (i))
5066	|| toupper (i) != TOUPPER (i))
5067      return 2;
5068  return 0;
5069}
5070_ACEOF
5071rm -f conftest$ac_exeext
5072if { (ac_try="$ac_link"
5073case "(($ac_try" in
5074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075  *) ac_try_echo=$ac_try;;
5076esac
5077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5078$as_echo "$ac_try_echo") >&5
5079  (eval "$ac_link") 2>&5
5080  ac_status=$?
5081  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5083  { (case "(($ac_try" in
5084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085  *) ac_try_echo=$ac_try;;
5086esac
5087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5088$as_echo "$ac_try_echo") >&5
5089  (eval "$ac_try") 2>&5
5090  ac_status=$?
5091  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092  (exit $ac_status); }; }; then
5093  :
5094else
5095  $as_echo "$as_me: program exited with status $ac_status" >&5
5096$as_echo "$as_me: failed program was:" >&5
5097sed 's/^/| /' conftest.$ac_ext >&5
5098
5099( exit $ac_status )
5100ac_cv_header_stdc=no
5101fi
5102rm -rf conftest.dSYM
5103rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5104fi
5105
5106
5107fi
5108fi
5109{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5110$as_echo "$ac_cv_header_stdc" >&6; }
5111if test $ac_cv_header_stdc = yes; then
5112
5113cat >>confdefs.h <<\_ACEOF
5114#define STDC_HEADERS 1
5115_ACEOF
5116
5117fi
5118
5119# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5130		  inttypes.h stdint.h unistd.h
5131do
5132as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5133{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5134$as_echo_n "checking for $ac_header... " >&6; }
5135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5136  $as_echo_n "(cached) " >&6
5137else
5138  cat >conftest.$ac_ext <<_ACEOF
5139/* confdefs.h.  */
5140_ACEOF
5141cat confdefs.h >>conftest.$ac_ext
5142cat >>conftest.$ac_ext <<_ACEOF
5143/* end confdefs.h.  */
5144$ac_includes_default
5145
5146#include <$ac_header>
5147_ACEOF
5148rm -f conftest.$ac_objext
5149if { (ac_try="$ac_compile"
5150case "(($ac_try" in
5151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152  *) ac_try_echo=$ac_try;;
5153esac
5154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5155$as_echo "$ac_try_echo") >&5
5156  (eval "$ac_compile") 2>conftest.er1
5157  ac_status=$?
5158  grep -v '^ *+' conftest.er1 >conftest.err
5159  rm -f conftest.er1
5160  cat conftest.err >&5
5161  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162  (exit $ac_status); } && {
5163	 test -z "$ac_c_werror_flag" ||
5164	 test ! -s conftest.err
5165       } && test -s conftest.$ac_objext; then
5166  eval "$as_ac_Header=yes"
5167else
5168  $as_echo "$as_me: failed program was:" >&5
5169sed 's/^/| /' conftest.$ac_ext >&5
5170
5171	eval "$as_ac_Header=no"
5172fi
5173
5174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5175fi
5176ac_res=`eval 'as_val=${'$as_ac_Header'}
5177		 $as_echo "$as_val"'`
5178	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5179$as_echo "$ac_res" >&6; }
5180as_val=`eval 'as_val=${'$as_ac_Header'}
5181		 $as_echo "$as_val"'`
5182   if test "x$as_val" = x""yes; then
5183  cat >>confdefs.h <<_ACEOF
5184#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5185_ACEOF
5186
5187fi
5188
5189done
5190
5191
5192
5193for ac_header in dlfcn.h
5194do
5195as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5197  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5198$as_echo_n "checking for $ac_header... " >&6; }
5199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5200  $as_echo_n "(cached) " >&6
5201fi
5202ac_res=`eval 'as_val=${'$as_ac_Header'}
5203		 $as_echo "$as_val"'`
5204	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5205$as_echo "$ac_res" >&6; }
5206else
5207  # Is the header compilable?
5208{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5209$as_echo_n "checking $ac_header usability... " >&6; }
5210cat >conftest.$ac_ext <<_ACEOF
5211/* confdefs.h.  */
5212_ACEOF
5213cat confdefs.h >>conftest.$ac_ext
5214cat >>conftest.$ac_ext <<_ACEOF
5215/* end confdefs.h.  */
5216$ac_includes_default
5217#include <$ac_header>
5218_ACEOF
5219rm -f conftest.$ac_objext
5220if { (ac_try="$ac_compile"
5221case "(($ac_try" in
5222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223  *) ac_try_echo=$ac_try;;
5224esac
5225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5226$as_echo "$ac_try_echo") >&5
5227  (eval "$ac_compile") 2>conftest.er1
5228  ac_status=$?
5229  grep -v '^ *+' conftest.er1 >conftest.err
5230  rm -f conftest.er1
5231  cat conftest.err >&5
5232  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233  (exit $ac_status); } && {
5234	 test -z "$ac_c_werror_flag" ||
5235	 test ! -s conftest.err
5236       } && test -s conftest.$ac_objext; then
5237  ac_header_compiler=yes
5238else
5239  $as_echo "$as_me: failed program was:" >&5
5240sed 's/^/| /' conftest.$ac_ext >&5
5241
5242	ac_header_compiler=no
5243fi
5244
5245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5247$as_echo "$ac_header_compiler" >&6; }
5248
5249# Is the header present?
5250{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5251$as_echo_n "checking $ac_header presence... " >&6; }
5252cat >conftest.$ac_ext <<_ACEOF
5253/* confdefs.h.  */
5254_ACEOF
5255cat confdefs.h >>conftest.$ac_ext
5256cat >>conftest.$ac_ext <<_ACEOF
5257/* end confdefs.h.  */
5258#include <$ac_header>
5259_ACEOF
5260if { (ac_try="$ac_cpp conftest.$ac_ext"
5261case "(($ac_try" in
5262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263  *) ac_try_echo=$ac_try;;
5264esac
5265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5266$as_echo "$ac_try_echo") >&5
5267  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5268  ac_status=$?
5269  grep -v '^ *+' conftest.er1 >conftest.err
5270  rm -f conftest.er1
5271  cat conftest.err >&5
5272  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273  (exit $ac_status); } >/dev/null && {
5274	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5275	 test ! -s conftest.err
5276       }; then
5277  ac_header_preproc=yes
5278else
5279  $as_echo "$as_me: failed program was:" >&5
5280sed 's/^/| /' conftest.$ac_ext >&5
5281
5282  ac_header_preproc=no
5283fi
5284
5285rm -f conftest.err conftest.$ac_ext
5286{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5287$as_echo "$ac_header_preproc" >&6; }
5288
5289# So?  What about this header?
5290case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5291  yes:no: )
5292    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5293$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5294    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5295$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5296    ac_header_preproc=yes
5297    ;;
5298  no:yes:* )
5299    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5300$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5301    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5302$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5303    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5304$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5305    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5306$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5307    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5308$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5309    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5310$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5311    ( cat <<\_ASBOX
5312## ---------------------------------------------------------------------- ##
5313## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5314## ---------------------------------------------------------------------- ##
5315_ASBOX
5316     ) | sed "s/^/$as_me: WARNING:     /" >&2
5317    ;;
5318esac
5319{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5320$as_echo_n "checking for $ac_header... " >&6; }
5321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5322  $as_echo_n "(cached) " >&6
5323else
5324  eval "$as_ac_Header=\$ac_header_preproc"
5325fi
5326ac_res=`eval 'as_val=${'$as_ac_Header'}
5327		 $as_echo "$as_val"'`
5328	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5329$as_echo "$ac_res" >&6; }
5330
5331fi
5332as_val=`eval 'as_val=${'$as_ac_Header'}
5333		 $as_echo "$as_val"'`
5334   if test "x$as_val" = x""yes; then
5335  cat >>confdefs.h <<_ACEOF
5336#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5337_ACEOF
5338
5339fi
5340
5341done
5342
5343ac_ext=cpp
5344ac_cpp='$CXXCPP $CPPFLAGS'
5345ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5348if test -z "$CXX"; then
5349  if test -n "$CCC"; then
5350    CXX=$CCC
5351  else
5352    if test -n "$ac_tool_prefix"; then
5353  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5354  do
5355    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5356set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5358$as_echo_n "checking for $ac_word... " >&6; }
5359if test "${ac_cv_prog_CXX+set}" = set; then
5360  $as_echo_n "(cached) " >&6
5361else
5362  if test -n "$CXX"; then
5363  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5364else
5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
5368  IFS=$as_save_IFS
5369  test -z "$as_dir" && as_dir=.
5370  for ac_exec_ext in '' $ac_executable_extensions; do
5371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5373    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374    break 2
5375  fi
5376done
5377done
5378IFS=$as_save_IFS
5379
5380fi
5381fi
5382CXX=$ac_cv_prog_CXX
5383if test -n "$CXX"; then
5384  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5385$as_echo "$CXX" >&6; }
5386else
5387  { $as_echo "$as_me:$LINENO: result: no" >&5
5388$as_echo "no" >&6; }
5389fi
5390
5391
5392    test -n "$CXX" && break
5393  done
5394fi
5395if test -z "$CXX"; then
5396  ac_ct_CXX=$CXX
5397  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5398do
5399  # Extract the first word of "$ac_prog", so it can be a program name with args.
5400set dummy $ac_prog; ac_word=$2
5401{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5402$as_echo_n "checking for $ac_word... " >&6; }
5403if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5404  $as_echo_n "(cached) " >&6
5405else
5406  if test -n "$ac_ct_CXX"; then
5407  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5408else
5409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412  IFS=$as_save_IFS
5413  test -z "$as_dir" && as_dir=.
5414  for ac_exec_ext in '' $ac_executable_extensions; do
5415  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5416    ac_cv_prog_ac_ct_CXX="$ac_prog"
5417    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418    break 2
5419  fi
5420done
5421done
5422IFS=$as_save_IFS
5423
5424fi
5425fi
5426ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5427if test -n "$ac_ct_CXX"; then
5428  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5429$as_echo "$ac_ct_CXX" >&6; }
5430else
5431  { $as_echo "$as_me:$LINENO: result: no" >&5
5432$as_echo "no" >&6; }
5433fi
5434
5435
5436  test -n "$ac_ct_CXX" && break
5437done
5438
5439  if test "x$ac_ct_CXX" = x; then
5440    CXX="g++"
5441  else
5442    case $cross_compiling:$ac_tool_warned in
5443yes:)
5444{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5446ac_tool_warned=yes ;;
5447esac
5448    CXX=$ac_ct_CXX
5449  fi
5450fi
5451
5452  fi
5453fi
5454# Provide some information about the compiler.
5455$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5456set X $ac_compile
5457ac_compiler=$2
5458{ (ac_try="$ac_compiler --version >&5"
5459case "(($ac_try" in
5460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461  *) ac_try_echo=$ac_try;;
5462esac
5463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5464$as_echo "$ac_try_echo") >&5
5465  (eval "$ac_compiler --version >&5") 2>&5
5466  ac_status=$?
5467  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468  (exit $ac_status); }
5469{ (ac_try="$ac_compiler -v >&5"
5470case "(($ac_try" in
5471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472  *) ac_try_echo=$ac_try;;
5473esac
5474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5475$as_echo "$ac_try_echo") >&5
5476  (eval "$ac_compiler -v >&5") 2>&5
5477  ac_status=$?
5478  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479  (exit $ac_status); }
5480{ (ac_try="$ac_compiler -V >&5"
5481case "(($ac_try" in
5482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483  *) ac_try_echo=$ac_try;;
5484esac
5485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5486$as_echo "$ac_try_echo") >&5
5487  (eval "$ac_compiler -V >&5") 2>&5
5488  ac_status=$?
5489  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490  (exit $ac_status); }
5491
5492{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5493$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5494if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5495  $as_echo_n "(cached) " >&6
5496else
5497  cat >conftest.$ac_ext <<_ACEOF
5498/* confdefs.h.  */
5499_ACEOF
5500cat confdefs.h >>conftest.$ac_ext
5501cat >>conftest.$ac_ext <<_ACEOF
5502/* end confdefs.h.  */
5503
5504int
5505main ()
5506{
5507#ifndef __GNUC__
5508       choke me
5509#endif
5510
5511  ;
5512  return 0;
5513}
5514_ACEOF
5515rm -f conftest.$ac_objext
5516if { (ac_try="$ac_compile"
5517case "(($ac_try" in
5518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519  *) ac_try_echo=$ac_try;;
5520esac
5521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5522$as_echo "$ac_try_echo") >&5
5523  (eval "$ac_compile") 2>conftest.er1
5524  ac_status=$?
5525  grep -v '^ *+' conftest.er1 >conftest.err
5526  rm -f conftest.er1
5527  cat conftest.err >&5
5528  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529  (exit $ac_status); } && {
5530	 test -z "$ac_cxx_werror_flag" ||
5531	 test ! -s conftest.err
5532       } && test -s conftest.$ac_objext; then
5533  ac_compiler_gnu=yes
5534else
5535  $as_echo "$as_me: failed program was:" >&5
5536sed 's/^/| /' conftest.$ac_ext >&5
5537
5538	ac_compiler_gnu=no
5539fi
5540
5541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5543
5544fi
5545{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5546$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5547if test $ac_compiler_gnu = yes; then
5548  GXX=yes
5549else
5550  GXX=
5551fi
5552ac_test_CXXFLAGS=${CXXFLAGS+set}
5553ac_save_CXXFLAGS=$CXXFLAGS
5554{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5555$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5556if test "${ac_cv_prog_cxx_g+set}" = set; then
5557  $as_echo_n "(cached) " >&6
5558else
5559  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5560   ac_cxx_werror_flag=yes
5561   ac_cv_prog_cxx_g=no
5562   CXXFLAGS="-g"
5563   cat >conftest.$ac_ext <<_ACEOF
5564/* confdefs.h.  */
5565_ACEOF
5566cat confdefs.h >>conftest.$ac_ext
5567cat >>conftest.$ac_ext <<_ACEOF
5568/* end confdefs.h.  */
5569
5570int
5571main ()
5572{
5573
5574  ;
5575  return 0;
5576}
5577_ACEOF
5578rm -f conftest.$ac_objext
5579if { (ac_try="$ac_compile"
5580case "(($ac_try" in
5581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582  *) ac_try_echo=$ac_try;;
5583esac
5584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5585$as_echo "$ac_try_echo") >&5
5586  (eval "$ac_compile") 2>conftest.er1
5587  ac_status=$?
5588  grep -v '^ *+' conftest.er1 >conftest.err
5589  rm -f conftest.er1
5590  cat conftest.err >&5
5591  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592  (exit $ac_status); } && {
5593	 test -z "$ac_cxx_werror_flag" ||
5594	 test ! -s conftest.err
5595       } && test -s conftest.$ac_objext; then
5596  ac_cv_prog_cxx_g=yes
5597else
5598  $as_echo "$as_me: failed program was:" >&5
5599sed 's/^/| /' conftest.$ac_ext >&5
5600
5601	CXXFLAGS=""
5602      cat >conftest.$ac_ext <<_ACEOF
5603/* confdefs.h.  */
5604_ACEOF
5605cat confdefs.h >>conftest.$ac_ext
5606cat >>conftest.$ac_ext <<_ACEOF
5607/* end confdefs.h.  */
5608
5609int
5610main ()
5611{
5612
5613  ;
5614  return 0;
5615}
5616_ACEOF
5617rm -f conftest.$ac_objext
5618if { (ac_try="$ac_compile"
5619case "(($ac_try" in
5620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621  *) ac_try_echo=$ac_try;;
5622esac
5623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5624$as_echo "$ac_try_echo") >&5
5625  (eval "$ac_compile") 2>conftest.er1
5626  ac_status=$?
5627  grep -v '^ *+' conftest.er1 >conftest.err
5628  rm -f conftest.er1
5629  cat conftest.err >&5
5630  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631  (exit $ac_status); } && {
5632	 test -z "$ac_cxx_werror_flag" ||
5633	 test ! -s conftest.err
5634       } && test -s conftest.$ac_objext; then
5635  :
5636else
5637  $as_echo "$as_me: failed program was:" >&5
5638sed 's/^/| /' conftest.$ac_ext >&5
5639
5640	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5641	 CXXFLAGS="-g"
5642	 cat >conftest.$ac_ext <<_ACEOF
5643/* confdefs.h.  */
5644_ACEOF
5645cat confdefs.h >>conftest.$ac_ext
5646cat >>conftest.$ac_ext <<_ACEOF
5647/* end confdefs.h.  */
5648
5649int
5650main ()
5651{
5652
5653  ;
5654  return 0;
5655}
5656_ACEOF
5657rm -f conftest.$ac_objext
5658if { (ac_try="$ac_compile"
5659case "(($ac_try" in
5660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661  *) ac_try_echo=$ac_try;;
5662esac
5663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5664$as_echo "$ac_try_echo") >&5
5665  (eval "$ac_compile") 2>conftest.er1
5666  ac_status=$?
5667  grep -v '^ *+' conftest.er1 >conftest.err
5668  rm -f conftest.er1
5669  cat conftest.err >&5
5670  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671  (exit $ac_status); } && {
5672	 test -z "$ac_cxx_werror_flag" ||
5673	 test ! -s conftest.err
5674       } && test -s conftest.$ac_objext; then
5675  ac_cv_prog_cxx_g=yes
5676else
5677  $as_echo "$as_me: failed program was:" >&5
5678sed 's/^/| /' conftest.$ac_ext >&5
5679
5680
5681fi
5682
5683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684fi
5685
5686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687fi
5688
5689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5691fi
5692{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5693$as_echo "$ac_cv_prog_cxx_g" >&6; }
5694if test "$ac_test_CXXFLAGS" = set; then
5695  CXXFLAGS=$ac_save_CXXFLAGS
5696elif test $ac_cv_prog_cxx_g = yes; then
5697  if test "$GXX" = yes; then
5698    CXXFLAGS="-g -O2"
5699  else
5700    CXXFLAGS="-g"
5701  fi
5702else
5703  if test "$GXX" = yes; then
5704    CXXFLAGS="-O2"
5705  else
5706    CXXFLAGS=
5707  fi
5708fi
5709ac_ext=cpp
5710ac_cpp='$CXXCPP $CPPFLAGS'
5711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5714
5715depcc="$CXX"  am_compiler_list=
5716
5717{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5718$as_echo_n "checking dependency style of $depcc... " >&6; }
5719if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5720  $as_echo_n "(cached) " >&6
5721else
5722  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5723  # We make a subdir and do the tests there.  Otherwise we can end up
5724  # making bogus files that we don't know about and never remove.  For
5725  # instance it was reported that on HP-UX the gcc test will end up
5726  # making a dummy file named `D' -- because `-MD' means `put the output
5727  # in D'.
5728  mkdir conftest.dir
5729  # Copy depcomp to subdir because otherwise we won't find it if we're
5730  # using a relative directory.
5731  cp "$am_depcomp" conftest.dir
5732  cd conftest.dir
5733  # We will build objects and dependencies in a subdirectory because
5734  # it helps to detect inapplicable dependency modes.  For instance
5735  # both Tru64's cc and ICC support -MD to output dependencies as a
5736  # side effect of compilation, but ICC will put the dependencies in
5737  # the current directory while Tru64 will put them in the object
5738  # directory.
5739  mkdir sub
5740
5741  am_cv_CXX_dependencies_compiler_type=none
5742  if test "$am_compiler_list" = ""; then
5743     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5744  fi
5745  for depmode in $am_compiler_list; do
5746    # Setup a source with many dependencies, because some compilers
5747    # like to wrap large dependency lists on column 80 (with \), and
5748    # we should not choose a depcomp mode which is confused by this.
5749    #
5750    # We need to recreate these files for each test, as the compiler may
5751    # overwrite some of them when testing with obscure command lines.
5752    # This happens at least with the AIX C compiler.
5753    : > sub/conftest.c
5754    for i in 1 2 3 4 5 6; do
5755      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5756      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5757      # Solaris 8's {/usr,}/bin/sh.
5758      touch sub/conftst$i.h
5759    done
5760    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5761
5762    case $depmode in
5763    nosideeffect)
5764      # after this tag, mechanisms are not by side-effect, so they'll
5765      # only be used when explicitly requested
5766      if test "x$enable_dependency_tracking" = xyes; then
5767	continue
5768      else
5769	break
5770      fi
5771      ;;
5772    none) break ;;
5773    esac
5774    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5775    # mode.  It turns out that the SunPro C++ compiler does not properly
5776    # handle `-M -o', and we need to detect this.
5777    if depmode=$depmode \
5778       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5779       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5780       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5781         >/dev/null 2>conftest.err &&
5782       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5783       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5784       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5785       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5786      # icc doesn't choke on unknown options, it will just issue warnings
5787      # or remarks (even with -Werror).  So we grep stderr for any message
5788      # that says an option was ignored or not supported.
5789      # When given -MP, icc 7.0 and 7.1 complain thusly:
5790      #   icc: Command line warning: ignoring option '-M'; no argument required
5791      # The diagnosis changed in icc 8.0:
5792      #   icc: Command line remark: option '-MP' not supported
5793      if (grep 'ignoring option' conftest.err ||
5794          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5795        am_cv_CXX_dependencies_compiler_type=$depmode
5796        break
5797      fi
5798    fi
5799  done
5800
5801  cd ..
5802  rm -rf conftest.dir
5803else
5804  am_cv_CXX_dependencies_compiler_type=none
5805fi
5806
5807fi
5808{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5809$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5810CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5811
5812 if
5813  test "x$enable_dependency_tracking" != xno \
5814  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5815  am__fastdepCXX_TRUE=
5816  am__fastdepCXX_FALSE='#'
5817else
5818  am__fastdepCXX_TRUE='#'
5819  am__fastdepCXX_FALSE=
5820fi
5821
5822
5823
5824
5825if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5826    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5827    (test "X$CXX" != "Xg++"))) ; then
5828  ac_ext=cpp
5829ac_cpp='$CXXCPP $CPPFLAGS'
5830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5833{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5834$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5835if test -z "$CXXCPP"; then
5836  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5837  $as_echo_n "(cached) " >&6
5838else
5839      # Double quotes because CXXCPP needs to be expanded
5840    for CXXCPP in "$CXX -E" "/lib/cpp"
5841    do
5842      ac_preproc_ok=false
5843for ac_cxx_preproc_warn_flag in '' yes
5844do
5845  # Use a header file that comes with gcc, so configuring glibc
5846  # with a fresh cross-compiler works.
5847  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5848  # <limits.h> exists even on freestanding compilers.
5849  # On the NeXT, cc -E runs the code through the compiler's parser,
5850  # not just through cpp. "Syntax error" is here to catch this case.
5851  cat >conftest.$ac_ext <<_ACEOF
5852/* confdefs.h.  */
5853_ACEOF
5854cat confdefs.h >>conftest.$ac_ext
5855cat >>conftest.$ac_ext <<_ACEOF
5856/* end confdefs.h.  */
5857#ifdef __STDC__
5858# include <limits.h>
5859#else
5860# include <assert.h>
5861#endif
5862		     Syntax error
5863_ACEOF
5864if { (ac_try="$ac_cpp conftest.$ac_ext"
5865case "(($ac_try" in
5866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867  *) ac_try_echo=$ac_try;;
5868esac
5869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5870$as_echo "$ac_try_echo") >&5
5871  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5872  ac_status=$?
5873  grep -v '^ *+' conftest.er1 >conftest.err
5874  rm -f conftest.er1
5875  cat conftest.err >&5
5876  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877  (exit $ac_status); } >/dev/null && {
5878	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5879	 test ! -s conftest.err
5880       }; then
5881  :
5882else
5883  $as_echo "$as_me: failed program was:" >&5
5884sed 's/^/| /' conftest.$ac_ext >&5
5885
5886  # Broken: fails on valid input.
5887continue
5888fi
5889
5890rm -f conftest.err conftest.$ac_ext
5891
5892  # OK, works on sane cases.  Now check whether nonexistent headers
5893  # can be detected and how.
5894  cat >conftest.$ac_ext <<_ACEOF
5895/* confdefs.h.  */
5896_ACEOF
5897cat confdefs.h >>conftest.$ac_ext
5898cat >>conftest.$ac_ext <<_ACEOF
5899/* end confdefs.h.  */
5900#include <ac_nonexistent.h>
5901_ACEOF
5902if { (ac_try="$ac_cpp conftest.$ac_ext"
5903case "(($ac_try" in
5904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905  *) ac_try_echo=$ac_try;;
5906esac
5907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5908$as_echo "$ac_try_echo") >&5
5909  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5910  ac_status=$?
5911  grep -v '^ *+' conftest.er1 >conftest.err
5912  rm -f conftest.er1
5913  cat conftest.err >&5
5914  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915  (exit $ac_status); } >/dev/null && {
5916	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5917	 test ! -s conftest.err
5918       }; then
5919  # Broken: success on invalid input.
5920continue
5921else
5922  $as_echo "$as_me: failed program was:" >&5
5923sed 's/^/| /' conftest.$ac_ext >&5
5924
5925  # Passes both tests.
5926ac_preproc_ok=:
5927break
5928fi
5929
5930rm -f conftest.err conftest.$ac_ext
5931
5932done
5933# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5934rm -f conftest.err conftest.$ac_ext
5935if $ac_preproc_ok; then
5936  break
5937fi
5938
5939    done
5940    ac_cv_prog_CXXCPP=$CXXCPP
5941
5942fi
5943  CXXCPP=$ac_cv_prog_CXXCPP
5944else
5945  ac_cv_prog_CXXCPP=$CXXCPP
5946fi
5947{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5948$as_echo "$CXXCPP" >&6; }
5949ac_preproc_ok=false
5950for ac_cxx_preproc_warn_flag in '' yes
5951do
5952  # Use a header file that comes with gcc, so configuring glibc
5953  # with a fresh cross-compiler works.
5954  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5955  # <limits.h> exists even on freestanding compilers.
5956  # On the NeXT, cc -E runs the code through the compiler's parser,
5957  # not just through cpp. "Syntax error" is here to catch this case.
5958  cat >conftest.$ac_ext <<_ACEOF
5959/* confdefs.h.  */
5960_ACEOF
5961cat confdefs.h >>conftest.$ac_ext
5962cat >>conftest.$ac_ext <<_ACEOF
5963/* end confdefs.h.  */
5964#ifdef __STDC__
5965# include <limits.h>
5966#else
5967# include <assert.h>
5968#endif
5969		     Syntax error
5970_ACEOF
5971if { (ac_try="$ac_cpp conftest.$ac_ext"
5972case "(($ac_try" in
5973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974  *) ac_try_echo=$ac_try;;
5975esac
5976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5977$as_echo "$ac_try_echo") >&5
5978  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5979  ac_status=$?
5980  grep -v '^ *+' conftest.er1 >conftest.err
5981  rm -f conftest.er1
5982  cat conftest.err >&5
5983  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984  (exit $ac_status); } >/dev/null && {
5985	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5986	 test ! -s conftest.err
5987       }; then
5988  :
5989else
5990  $as_echo "$as_me: failed program was:" >&5
5991sed 's/^/| /' conftest.$ac_ext >&5
5992
5993  # Broken: fails on valid input.
5994continue
5995fi
5996
5997rm -f conftest.err conftest.$ac_ext
5998
5999  # OK, works on sane cases.  Now check whether nonexistent headers
6000  # can be detected and how.
6001  cat >conftest.$ac_ext <<_ACEOF
6002/* confdefs.h.  */
6003_ACEOF
6004cat confdefs.h >>conftest.$ac_ext
6005cat >>conftest.$ac_ext <<_ACEOF
6006/* end confdefs.h.  */
6007#include <ac_nonexistent.h>
6008_ACEOF
6009if { (ac_try="$ac_cpp conftest.$ac_ext"
6010case "(($ac_try" in
6011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012  *) ac_try_echo=$ac_try;;
6013esac
6014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6015$as_echo "$ac_try_echo") >&5
6016  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6017  ac_status=$?
6018  grep -v '^ *+' conftest.er1 >conftest.err
6019  rm -f conftest.er1
6020  cat conftest.err >&5
6021  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022  (exit $ac_status); } >/dev/null && {
6023	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6024	 test ! -s conftest.err
6025       }; then
6026  # Broken: success on invalid input.
6027continue
6028else
6029  $as_echo "$as_me: failed program was:" >&5
6030sed 's/^/| /' conftest.$ac_ext >&5
6031
6032  # Passes both tests.
6033ac_preproc_ok=:
6034break
6035fi
6036
6037rm -f conftest.err conftest.$ac_ext
6038
6039done
6040# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6041rm -f conftest.err conftest.$ac_ext
6042if $ac_preproc_ok; then
6043  :
6044else
6045  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6047{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6048See \`config.log' for more details." >&5
6049$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6050See \`config.log' for more details." >&2;}
6051   { (exit 1); exit 1; }; }; }
6052fi
6053
6054ac_ext=cpp
6055ac_cpp='$CXXCPP $CPPFLAGS'
6056ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6057ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6058ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6059
6060fi
6061
6062
6063ac_ext=f
6064ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6065ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6066ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6067if test -n "$ac_tool_prefix"; then
6068  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
6069  do
6070    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6071set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6072{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6073$as_echo_n "checking for $ac_word... " >&6; }
6074if test "${ac_cv_prog_F77+set}" = set; then
6075  $as_echo_n "(cached) " >&6
6076else
6077  if test -n "$F77"; then
6078  ac_cv_prog_F77="$F77" # Let the user override the test.
6079else
6080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081for as_dir in $PATH
6082do
6083  IFS=$as_save_IFS
6084  test -z "$as_dir" && as_dir=.
6085  for ac_exec_ext in '' $ac_executable_extensions; do
6086  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6087    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6088    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6089    break 2
6090  fi
6091done
6092done
6093IFS=$as_save_IFS
6094
6095fi
6096fi
6097F77=$ac_cv_prog_F77
6098if test -n "$F77"; then
6099  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6100$as_echo "$F77" >&6; }
6101else
6102  { $as_echo "$as_me:$LINENO: result: no" >&5
6103$as_echo "no" >&6; }
6104fi
6105
6106
6107    test -n "$F77" && break
6108  done
6109fi
6110if test -z "$F77"; then
6111  ac_ct_F77=$F77
6112  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
6113do
6114  # Extract the first word of "$ac_prog", so it can be a program name with args.
6115set dummy $ac_prog; ac_word=$2
6116{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6117$as_echo_n "checking for $ac_word... " >&6; }
6118if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6119  $as_echo_n "(cached) " >&6
6120else
6121  if test -n "$ac_ct_F77"; then
6122  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6123else
6124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125for as_dir in $PATH
6126do
6127  IFS=$as_save_IFS
6128  test -z "$as_dir" && as_dir=.
6129  for ac_exec_ext in '' $ac_executable_extensions; do
6130  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131    ac_cv_prog_ac_ct_F77="$ac_prog"
6132    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133    break 2
6134  fi
6135done
6136done
6137IFS=$as_save_IFS
6138
6139fi
6140fi
6141ac_ct_F77=$ac_cv_prog_ac_ct_F77
6142if test -n "$ac_ct_F77"; then
6143  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6144$as_echo "$ac_ct_F77" >&6; }
6145else
6146  { $as_echo "$as_me:$LINENO: result: no" >&5
6147$as_echo "no" >&6; }
6148fi
6149
6150
6151  test -n "$ac_ct_F77" && break
6152done
6153
6154  if test "x$ac_ct_F77" = x; then
6155    F77=""
6156  else
6157    case $cross_compiling:$ac_tool_warned in
6158yes:)
6159{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6161ac_tool_warned=yes ;;
6162esac
6163    F77=$ac_ct_F77
6164  fi
6165fi
6166
6167
6168# Provide some information about the compiler.
6169$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6170set X $ac_compile
6171ac_compiler=$2
6172{ (ac_try="$ac_compiler --version >&5"
6173case "(($ac_try" in
6174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175  *) ac_try_echo=$ac_try;;
6176esac
6177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6178$as_echo "$ac_try_echo") >&5
6179  (eval "$ac_compiler --version >&5") 2>&5
6180  ac_status=$?
6181  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182  (exit $ac_status); }
6183{ (ac_try="$ac_compiler -v >&5"
6184case "(($ac_try" in
6185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186  *) ac_try_echo=$ac_try;;
6187esac
6188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6189$as_echo "$ac_try_echo") >&5
6190  (eval "$ac_compiler -v >&5") 2>&5
6191  ac_status=$?
6192  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193  (exit $ac_status); }
6194{ (ac_try="$ac_compiler -V >&5"
6195case "(($ac_try" in
6196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197  *) ac_try_echo=$ac_try;;
6198esac
6199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6200$as_echo "$ac_try_echo") >&5
6201  (eval "$ac_compiler -V >&5") 2>&5
6202  ac_status=$?
6203  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204  (exit $ac_status); }
6205rm -f a.out
6206
6207# If we don't use `.F' as extension, the preprocessor is not run on the
6208# input file.  (Note that this only needs to work for GNU compilers.)
6209ac_save_ext=$ac_ext
6210ac_ext=F
6211{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6212$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6213if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6214  $as_echo_n "(cached) " >&6
6215else
6216  cat >conftest.$ac_ext <<_ACEOF
6217      program main
6218#ifndef __GNUC__
6219       choke me
6220#endif
6221
6222      end
6223_ACEOF
6224rm -f conftest.$ac_objext
6225if { (ac_try="$ac_compile"
6226case "(($ac_try" in
6227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228  *) ac_try_echo=$ac_try;;
6229esac
6230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6231$as_echo "$ac_try_echo") >&5
6232  (eval "$ac_compile") 2>conftest.er1
6233  ac_status=$?
6234  grep -v '^ *+' conftest.er1 >conftest.err
6235  rm -f conftest.er1
6236  cat conftest.err >&5
6237  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238  (exit $ac_status); } && {
6239	 test -z "$ac_f77_werror_flag" ||
6240	 test ! -s conftest.err
6241       } && test -s conftest.$ac_objext; then
6242  ac_compiler_gnu=yes
6243else
6244  $as_echo "$as_me: failed program was:" >&5
6245sed 's/^/| /' conftest.$ac_ext >&5
6246
6247	ac_compiler_gnu=no
6248fi
6249
6250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6252
6253fi
6254{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6255$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6256ac_ext=$ac_save_ext
6257ac_test_FFLAGS=${FFLAGS+set}
6258ac_save_FFLAGS=$FFLAGS
6259FFLAGS=
6260{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6261$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6262if test "${ac_cv_prog_f77_g+set}" = set; then
6263  $as_echo_n "(cached) " >&6
6264else
6265  FFLAGS=-g
6266cat >conftest.$ac_ext <<_ACEOF
6267      program main
6268
6269      end
6270_ACEOF
6271rm -f conftest.$ac_objext
6272if { (ac_try="$ac_compile"
6273case "(($ac_try" in
6274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6275  *) ac_try_echo=$ac_try;;
6276esac
6277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6278$as_echo "$ac_try_echo") >&5
6279  (eval "$ac_compile") 2>conftest.er1
6280  ac_status=$?
6281  grep -v '^ *+' conftest.er1 >conftest.err
6282  rm -f conftest.er1
6283  cat conftest.err >&5
6284  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285  (exit $ac_status); } && {
6286	 test -z "$ac_f77_werror_flag" ||
6287	 test ! -s conftest.err
6288       } && test -s conftest.$ac_objext; then
6289  ac_cv_prog_f77_g=yes
6290else
6291  $as_echo "$as_me: failed program was:" >&5
6292sed 's/^/| /' conftest.$ac_ext >&5
6293
6294	ac_cv_prog_f77_g=no
6295fi
6296
6297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298
6299fi
6300{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6301$as_echo "$ac_cv_prog_f77_g" >&6; }
6302if test "$ac_test_FFLAGS" = set; then
6303  FFLAGS=$ac_save_FFLAGS
6304elif test $ac_cv_prog_f77_g = yes; then
6305  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6306    FFLAGS="-g -O2"
6307  else
6308    FFLAGS="-g"
6309  fi
6310else
6311  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6312    FFLAGS="-O2"
6313  else
6314    FFLAGS=
6315  fi
6316fi
6317
6318if test $ac_compiler_gnu = yes; then
6319  G77=yes
6320else
6321  G77=
6322fi
6323ac_ext=c
6324ac_cpp='$CPP $CPPFLAGS'
6325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6327ac_compiler_gnu=$ac_cv_c_compiler_gnu
6328
6329
6330
6331# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6332# find the maximum length of command line arguments
6333{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6334$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6335if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6336  $as_echo_n "(cached) " >&6
6337else
6338    i=0
6339  teststring="ABCD"
6340
6341  case $build_os in
6342  msdosdjgpp*)
6343    # On DJGPP, this test can blow up pretty badly due to problems in libc
6344    # (any single argument exceeding 2000 bytes causes a buffer overrun
6345    # during glob expansion).  Even if it were fixed, the result of this
6346    # check would be larger than it should be.
6347    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6348    ;;
6349
6350  gnu*)
6351    # Under GNU Hurd, this test is not required because there is
6352    # no limit to the length of command line arguments.
6353    # Libtool will interpret -1 as no limit whatsoever
6354    lt_cv_sys_max_cmd_len=-1;
6355    ;;
6356
6357  cygwin* | mingw*)
6358    # On Win9x/ME, this test blows up -- it succeeds, but takes
6359    # about 5 minutes as the teststring grows exponentially.
6360    # Worse, since 9x/ME are not pre-emptively multitasking,
6361    # you end up with a "frozen" computer, even though with patience
6362    # the test eventually succeeds (with a max line length of 256k).
6363    # Instead, let's just punt: use the minimum linelength reported by
6364    # all of the supported platforms: 8192 (on NT/2K/XP).
6365    lt_cv_sys_max_cmd_len=8192;
6366    ;;
6367
6368  amigaos*)
6369    # On AmigaOS with pdksh, this test takes hours, literally.
6370    # So we just punt and use a minimum line length of 8192.
6371    lt_cv_sys_max_cmd_len=8192;
6372    ;;
6373
6374  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6375    # This has been around since 386BSD, at least.  Likely further.
6376    if test -x /sbin/sysctl; then
6377      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6378    elif test -x /usr/sbin/sysctl; then
6379      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6380    else
6381      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6382    fi
6383    # And add a safety zone
6384    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6385    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6386    ;;
6387
6388  interix*)
6389    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6390    lt_cv_sys_max_cmd_len=196608
6391    ;;
6392
6393  osf*)
6394    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6395    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6396    # nice to cause kernel panics so lets avoid the loop below.
6397    # First set a reasonable default.
6398    lt_cv_sys_max_cmd_len=16384
6399    #
6400    if test -x /sbin/sysconfig; then
6401      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6402        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6403      esac
6404    fi
6405    ;;
6406  sco3.2v5*)
6407    lt_cv_sys_max_cmd_len=102400
6408    ;;
6409  sysv5* | sco5v6* | sysv4.2uw2*)
6410    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6411    if test -n "$kargmax"; then
6412      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6413    else
6414      lt_cv_sys_max_cmd_len=32768
6415    fi
6416    ;;
6417  *)
6418    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6419    if test -n "$lt_cv_sys_max_cmd_len"; then
6420      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6421      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6422    else
6423      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6424      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6425	       = "XX$teststring") >/dev/null 2>&1 &&
6426	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6427	      lt_cv_sys_max_cmd_len=$new_result &&
6428	      test $i != 17 # 1/2 MB should be enough
6429      do
6430        i=`expr $i + 1`
6431        teststring=$teststring$teststring
6432      done
6433      teststring=
6434      # Add a significant safety factor because C++ compilers can tack on massive
6435      # amounts of additional arguments before passing them to the linker.
6436      # It appears as though 1/2 is a usable value.
6437      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6438    fi
6439    ;;
6440  esac
6441
6442fi
6443
6444if test -n $lt_cv_sys_max_cmd_len ; then
6445  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6446$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6447else
6448  { $as_echo "$as_me:$LINENO: result: none" >&5
6449$as_echo "none" >&6; }
6450fi
6451
6452
6453
6454
6455
6456# Check for command to grab the raw symbol name followed by C symbol from nm.
6457{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6458$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6459if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6460  $as_echo_n "(cached) " >&6
6461else
6462
6463# These are sane defaults that work on at least a few old systems.
6464# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6465
6466# Character class describing NM global symbol codes.
6467symcode='[BCDEGRST]'
6468
6469# Regexp to match symbols that can be accessed directly from C.
6470sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6471
6472# Transform an extracted symbol line into a proper C declaration
6473lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6474
6475# Transform an extracted symbol line into symbol name and symbol address
6476lt_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'"
6477
6478# Define system-specific variables.
6479case $host_os in
6480aix*)
6481  symcode='[BCDT]'
6482  ;;
6483cygwin* | mingw* | pw32*)
6484  symcode='[ABCDGISTW]'
6485  ;;
6486hpux*) # Its linker distinguishes data from code symbols
6487  if test "$host_cpu" = ia64; then
6488    symcode='[ABCDEGRST]'
6489  fi
6490  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6491  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'"
6492  ;;
6493linux* | k*bsd*-gnu)
6494  if test "$host_cpu" = ia64; then
6495    symcode='[ABCDGIRSTW]'
6496    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6497    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'"
6498  fi
6499  ;;
6500irix* | nonstopux*)
6501  symcode='[BCDEGRST]'
6502  ;;
6503osf*)
6504  symcode='[BCDEGQRST]'
6505  ;;
6506solaris*)
6507  symcode='[BDRT]'
6508  ;;
6509sco3.2v5*)
6510  symcode='[DT]'
6511  ;;
6512sysv4.2uw2*)
6513  symcode='[DT]'
6514  ;;
6515sysv5* | sco5v6* | unixware* | OpenUNIX*)
6516  symcode='[ABDT]'
6517  ;;
6518sysv4)
6519  symcode='[DFNSTU]'
6520  ;;
6521esac
6522
6523# Handle CRLF in mingw tool chain
6524opt_cr=
6525case $build_os in
6526mingw*)
6527  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6528  ;;
6529esac
6530
6531# If we're using GNU nm, then use its standard symbol codes.
6532case `$NM -V 2>&1` in
6533*GNU* | *'with BFD'*)
6534  symcode='[ABCDGIRSTW]' ;;
6535esac
6536
6537# Try without a prefix undercore, then with it.
6538for ac_symprfx in "" "_"; do
6539
6540  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6541  symxfrm="\\1 $ac_symprfx\\2 \\2"
6542
6543  # Write the raw and C identifiers.
6544  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6545
6546  # Check to see that the pipe works correctly.
6547  pipe_works=no
6548
6549  rm -f conftest*
6550  cat > conftest.$ac_ext <<EOF
6551#ifdef __cplusplus
6552extern "C" {
6553#endif
6554char nm_test_var;
6555void nm_test_func(){}
6556#ifdef __cplusplus
6557}
6558#endif
6559int main(){nm_test_var='a';nm_test_func();return(0);}
6560EOF
6561
6562  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6563  (eval $ac_compile) 2>&5
6564  ac_status=$?
6565  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566  (exit $ac_status); }; then
6567    # Now try to grab the symbols.
6568    nlist=conftest.nm
6569    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6570  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6571  ac_status=$?
6572  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573  (exit $ac_status); } && test -s "$nlist"; then
6574      # Try sorting and uniquifying the output.
6575      if sort "$nlist" | uniq > "$nlist"T; then
6576	mv -f "$nlist"T "$nlist"
6577      else
6578	rm -f "$nlist"T
6579      fi
6580
6581      # Make sure that we snagged all the symbols we need.
6582      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6583	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6584	  cat <<EOF > conftest.$ac_ext
6585#ifdef __cplusplus
6586extern "C" {
6587#endif
6588
6589EOF
6590	  # Now generate the symbol file.
6591	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6592
6593	  cat <<EOF >> conftest.$ac_ext
6594#if defined (__STDC__) && __STDC__
6595# define lt_ptr_t void *
6596#else
6597# define lt_ptr_t char *
6598# define const
6599#endif
6600
6601/* The mapping between symbol names and symbols. */
6602const struct {
6603  const char *name;
6604  lt_ptr_t address;
6605}
6606lt_preloaded_symbols[] =
6607{
6608EOF
6609	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6610	  cat <<\EOF >> conftest.$ac_ext
6611  {0, (lt_ptr_t) 0}
6612};
6613
6614#ifdef __cplusplus
6615}
6616#endif
6617EOF
6618	  # Now try linking the two files.
6619	  mv conftest.$ac_objext conftstm.$ac_objext
6620	  lt_save_LIBS="$LIBS"
6621	  lt_save_CFLAGS="$CFLAGS"
6622	  LIBS="conftstm.$ac_objext"
6623	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6624	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6625  (eval $ac_link) 2>&5
6626  ac_status=$?
6627  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6629	    pipe_works=yes
6630	  fi
6631	  LIBS="$lt_save_LIBS"
6632	  CFLAGS="$lt_save_CFLAGS"
6633	else
6634	  echo "cannot find nm_test_func in $nlist" >&5
6635	fi
6636      else
6637	echo "cannot find nm_test_var in $nlist" >&5
6638      fi
6639    else
6640      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6641    fi
6642  else
6643    echo "$progname: failed program was:" >&5
6644    cat conftest.$ac_ext >&5
6645  fi
6646  rm -rf conftest* conftst*
6647
6648  # Do not use the global_symbol_pipe unless it works.
6649  if test "$pipe_works" = yes; then
6650    break
6651  else
6652    lt_cv_sys_global_symbol_pipe=
6653  fi
6654done
6655
6656fi
6657
6658if test -z "$lt_cv_sys_global_symbol_pipe"; then
6659  lt_cv_sys_global_symbol_to_cdecl=
6660fi
6661if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6662  { $as_echo "$as_me:$LINENO: result: failed" >&5
6663$as_echo "failed" >&6; }
6664else
6665  { $as_echo "$as_me:$LINENO: result: ok" >&5
6666$as_echo "ok" >&6; }
6667fi
6668
6669{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6670$as_echo_n "checking for objdir... " >&6; }
6671if test "${lt_cv_objdir+set}" = set; then
6672  $as_echo_n "(cached) " >&6
6673else
6674  rm -f .libs 2>/dev/null
6675mkdir .libs 2>/dev/null
6676if test -d .libs; then
6677  lt_cv_objdir=.libs
6678else
6679  # MS-DOS does not allow filenames that begin with a dot.
6680  lt_cv_objdir=_libs
6681fi
6682rmdir .libs 2>/dev/null
6683fi
6684{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6685$as_echo "$lt_cv_objdir" >&6; }
6686objdir=$lt_cv_objdir
6687
6688
6689
6690
6691
6692case $host_os in
6693aix3*)
6694  # AIX sometimes has problems with the GCC collect2 program.  For some
6695  # reason, if we set the COLLECT_NAMES environment variable, the problems
6696  # vanish in a puff of smoke.
6697  if test "X${COLLECT_NAMES+set}" != Xset; then
6698    COLLECT_NAMES=
6699    export COLLECT_NAMES
6700  fi
6701  ;;
6702esac
6703
6704# Sed substitution that helps us do robust quoting.  It backslashifies
6705# metacharacters that are still active within double-quoted strings.
6706Xsed='sed -e 1s/^X//'
6707sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6708
6709# Same as above, but do not quote variable references.
6710double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6711
6712# Sed substitution to delay expansion of an escaped shell variable in a
6713# double_quote_subst'ed string.
6714delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6715
6716# Sed substitution to avoid accidental globbing in evaled expressions
6717no_glob_subst='s/\*/\\\*/g'
6718
6719# Constants:
6720rm="rm -f"
6721
6722# Global variables:
6723default_ofile=libtool
6724can_build_shared=yes
6725
6726# All known linkers require a `.a' archive for static linking (except MSVC,
6727# which needs '.lib').
6728libext=a
6729ltmain="$ac_aux_dir/ltmain.sh"
6730ofile="$default_ofile"
6731with_gnu_ld="$lt_cv_prog_gnu_ld"
6732
6733if test -n "$ac_tool_prefix"; then
6734  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6735set dummy ${ac_tool_prefix}ar; ac_word=$2
6736{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6737$as_echo_n "checking for $ac_word... " >&6; }
6738if test "${ac_cv_prog_AR+set}" = set; then
6739  $as_echo_n "(cached) " >&6
6740else
6741  if test -n "$AR"; then
6742  ac_cv_prog_AR="$AR" # Let the user override the test.
6743else
6744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745for as_dir in $PATH
6746do
6747  IFS=$as_save_IFS
6748  test -z "$as_dir" && as_dir=.
6749  for ac_exec_ext in '' $ac_executable_extensions; do
6750  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6751    ac_cv_prog_AR="${ac_tool_prefix}ar"
6752    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753    break 2
6754  fi
6755done
6756done
6757IFS=$as_save_IFS
6758
6759fi
6760fi
6761AR=$ac_cv_prog_AR
6762if test -n "$AR"; then
6763  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6764$as_echo "$AR" >&6; }
6765else
6766  { $as_echo "$as_me:$LINENO: result: no" >&5
6767$as_echo "no" >&6; }
6768fi
6769
6770
6771fi
6772if test -z "$ac_cv_prog_AR"; then
6773  ac_ct_AR=$AR
6774  # Extract the first word of "ar", so it can be a program name with args.
6775set dummy ar; ac_word=$2
6776{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6777$as_echo_n "checking for $ac_word... " >&6; }
6778if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6779  $as_echo_n "(cached) " >&6
6780else
6781  if test -n "$ac_ct_AR"; then
6782  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6783else
6784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787  IFS=$as_save_IFS
6788  test -z "$as_dir" && as_dir=.
6789  for ac_exec_ext in '' $ac_executable_extensions; do
6790  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791    ac_cv_prog_ac_ct_AR="ar"
6792    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793    break 2
6794  fi
6795done
6796done
6797IFS=$as_save_IFS
6798
6799fi
6800fi
6801ac_ct_AR=$ac_cv_prog_ac_ct_AR
6802if test -n "$ac_ct_AR"; then
6803  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6804$as_echo "$ac_ct_AR" >&6; }
6805else
6806  { $as_echo "$as_me:$LINENO: result: no" >&5
6807$as_echo "no" >&6; }
6808fi
6809
6810  if test "x$ac_ct_AR" = x; then
6811    AR="false"
6812  else
6813    case $cross_compiling:$ac_tool_warned in
6814yes:)
6815{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6817ac_tool_warned=yes ;;
6818esac
6819    AR=$ac_ct_AR
6820  fi
6821else
6822  AR="$ac_cv_prog_AR"
6823fi
6824
6825if test -n "$ac_tool_prefix"; then
6826  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6827set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6828{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6829$as_echo_n "checking for $ac_word... " >&6; }
6830if test "${ac_cv_prog_RANLIB+set}" = set; then
6831  $as_echo_n "(cached) " >&6
6832else
6833  if test -n "$RANLIB"; then
6834  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6835else
6836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837for as_dir in $PATH
6838do
6839  IFS=$as_save_IFS
6840  test -z "$as_dir" && as_dir=.
6841  for ac_exec_ext in '' $ac_executable_extensions; do
6842  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6844    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845    break 2
6846  fi
6847done
6848done
6849IFS=$as_save_IFS
6850
6851fi
6852fi
6853RANLIB=$ac_cv_prog_RANLIB
6854if test -n "$RANLIB"; then
6855  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6856$as_echo "$RANLIB" >&6; }
6857else
6858  { $as_echo "$as_me:$LINENO: result: no" >&5
6859$as_echo "no" >&6; }
6860fi
6861
6862
6863fi
6864if test -z "$ac_cv_prog_RANLIB"; then
6865  ac_ct_RANLIB=$RANLIB
6866  # Extract the first word of "ranlib", so it can be a program name with args.
6867set dummy ranlib; ac_word=$2
6868{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6869$as_echo_n "checking for $ac_word... " >&6; }
6870if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6871  $as_echo_n "(cached) " >&6
6872else
6873  if test -n "$ac_ct_RANLIB"; then
6874  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6875else
6876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877for as_dir in $PATH
6878do
6879  IFS=$as_save_IFS
6880  test -z "$as_dir" && as_dir=.
6881  for ac_exec_ext in '' $ac_executable_extensions; do
6882  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6883    ac_cv_prog_ac_ct_RANLIB="ranlib"
6884    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885    break 2
6886  fi
6887done
6888done
6889IFS=$as_save_IFS
6890
6891fi
6892fi
6893ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6894if test -n "$ac_ct_RANLIB"; then
6895  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6896$as_echo "$ac_ct_RANLIB" >&6; }
6897else
6898  { $as_echo "$as_me:$LINENO: result: no" >&5
6899$as_echo "no" >&6; }
6900fi
6901
6902  if test "x$ac_ct_RANLIB" = x; then
6903    RANLIB=":"
6904  else
6905    case $cross_compiling:$ac_tool_warned in
6906yes:)
6907{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6909ac_tool_warned=yes ;;
6910esac
6911    RANLIB=$ac_ct_RANLIB
6912  fi
6913else
6914  RANLIB="$ac_cv_prog_RANLIB"
6915fi
6916
6917if test -n "$ac_tool_prefix"; then
6918  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6919set dummy ${ac_tool_prefix}strip; ac_word=$2
6920{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6921$as_echo_n "checking for $ac_word... " >&6; }
6922if test "${ac_cv_prog_STRIP+set}" = set; then
6923  $as_echo_n "(cached) " >&6
6924else
6925  if test -n "$STRIP"; then
6926  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6927else
6928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929for as_dir in $PATH
6930do
6931  IFS=$as_save_IFS
6932  test -z "$as_dir" && as_dir=.
6933  for ac_exec_ext in '' $ac_executable_extensions; do
6934  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6935    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6936    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6937    break 2
6938  fi
6939done
6940done
6941IFS=$as_save_IFS
6942
6943fi
6944fi
6945STRIP=$ac_cv_prog_STRIP
6946if test -n "$STRIP"; then
6947  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6948$as_echo "$STRIP" >&6; }
6949else
6950  { $as_echo "$as_me:$LINENO: result: no" >&5
6951$as_echo "no" >&6; }
6952fi
6953
6954
6955fi
6956if test -z "$ac_cv_prog_STRIP"; then
6957  ac_ct_STRIP=$STRIP
6958  # Extract the first word of "strip", so it can be a program name with args.
6959set dummy strip; ac_word=$2
6960{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6961$as_echo_n "checking for $ac_word... " >&6; }
6962if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6963  $as_echo_n "(cached) " >&6
6964else
6965  if test -n "$ac_ct_STRIP"; then
6966  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6967else
6968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969for as_dir in $PATH
6970do
6971  IFS=$as_save_IFS
6972  test -z "$as_dir" && as_dir=.
6973  for ac_exec_ext in '' $ac_executable_extensions; do
6974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6975    ac_cv_prog_ac_ct_STRIP="strip"
6976    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977    break 2
6978  fi
6979done
6980done
6981IFS=$as_save_IFS
6982
6983fi
6984fi
6985ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6986if test -n "$ac_ct_STRIP"; then
6987  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6988$as_echo "$ac_ct_STRIP" >&6; }
6989else
6990  { $as_echo "$as_me:$LINENO: result: no" >&5
6991$as_echo "no" >&6; }
6992fi
6993
6994  if test "x$ac_ct_STRIP" = x; then
6995    STRIP=":"
6996  else
6997    case $cross_compiling:$ac_tool_warned in
6998yes:)
6999{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7001ac_tool_warned=yes ;;
7002esac
7003    STRIP=$ac_ct_STRIP
7004  fi
7005else
7006  STRIP="$ac_cv_prog_STRIP"
7007fi
7008
7009
7010old_CC="$CC"
7011old_CFLAGS="$CFLAGS"
7012
7013# Set sane defaults for various variables
7014test -z "$AR" && AR=ar
7015test -z "$AR_FLAGS" && AR_FLAGS=cru
7016test -z "$AS" && AS=as
7017test -z "$CC" && CC=cc
7018test -z "$LTCC" && LTCC=$CC
7019test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7020test -z "$DLLTOOL" && DLLTOOL=dlltool
7021test -z "$LD" && LD=ld
7022test -z "$LN_S" && LN_S="ln -s"
7023test -z "$MAGIC_CMD" && MAGIC_CMD=file
7024test -z "$NM" && NM=nm
7025test -z "$SED" && SED=sed
7026test -z "$OBJDUMP" && OBJDUMP=objdump
7027test -z "$RANLIB" && RANLIB=:
7028test -z "$STRIP" && STRIP=:
7029test -z "$ac_objext" && ac_objext=o
7030
7031# Determine commands to create old-style static archives.
7032old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7033old_postinstall_cmds='chmod 644 $oldlib'
7034old_postuninstall_cmds=
7035
7036if test -n "$RANLIB"; then
7037  case $host_os in
7038  openbsd*)
7039    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7040    ;;
7041  *)
7042    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7043    ;;
7044  esac
7045  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7046fi
7047
7048for cc_temp in $compiler""; do
7049  case $cc_temp in
7050    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7051    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7052    \-*) ;;
7053    *) break;;
7054  esac
7055done
7056cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7057
7058
7059# Only perform the check for file, if the check method requires it
7060case $deplibs_check_method in
7061file_magic*)
7062  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7063    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7064$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7065if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7066  $as_echo_n "(cached) " >&6
7067else
7068  case $MAGIC_CMD in
7069[\\/*] |  ?:[\\/]*)
7070  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7071  ;;
7072*)
7073  lt_save_MAGIC_CMD="$MAGIC_CMD"
7074  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7075  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7076  for ac_dir in $ac_dummy; do
7077    IFS="$lt_save_ifs"
7078    test -z "$ac_dir" && ac_dir=.
7079    if test -f $ac_dir/${ac_tool_prefix}file; then
7080      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7081      if test -n "$file_magic_test_file"; then
7082	case $deplibs_check_method in
7083	"file_magic "*)
7084	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7085	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7086	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7087	    $EGREP "$file_magic_regex" > /dev/null; then
7088	    :
7089	  else
7090	    cat <<EOF 1>&2
7091
7092*** Warning: the command libtool uses to detect shared libraries,
7093*** $file_magic_cmd, produces output that libtool cannot recognize.
7094*** The result is that libtool may fail to recognize shared libraries
7095*** as such.  This will affect the creation of libtool libraries that
7096*** depend on shared libraries, but programs linked with such libtool
7097*** libraries will work regardless of this problem.  Nevertheless, you
7098*** may want to report the problem to your system manager and/or to
7099*** bug-libtool@gnu.org
7100
7101EOF
7102	  fi ;;
7103	esac
7104      fi
7105      break
7106    fi
7107  done
7108  IFS="$lt_save_ifs"
7109  MAGIC_CMD="$lt_save_MAGIC_CMD"
7110  ;;
7111esac
7112fi
7113
7114MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7115if test -n "$MAGIC_CMD"; then
7116  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7117$as_echo "$MAGIC_CMD" >&6; }
7118else
7119  { $as_echo "$as_me:$LINENO: result: no" >&5
7120$as_echo "no" >&6; }
7121fi
7122
7123if test -z "$lt_cv_path_MAGIC_CMD"; then
7124  if test -n "$ac_tool_prefix"; then
7125    { $as_echo "$as_me:$LINENO: checking for file" >&5
7126$as_echo_n "checking for file... " >&6; }
7127if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7128  $as_echo_n "(cached) " >&6
7129else
7130  case $MAGIC_CMD in
7131[\\/*] |  ?:[\\/]*)
7132  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7133  ;;
7134*)
7135  lt_save_MAGIC_CMD="$MAGIC_CMD"
7136  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7137  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7138  for ac_dir in $ac_dummy; do
7139    IFS="$lt_save_ifs"
7140    test -z "$ac_dir" && ac_dir=.
7141    if test -f $ac_dir/file; then
7142      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7143      if test -n "$file_magic_test_file"; then
7144	case $deplibs_check_method in
7145	"file_magic "*)
7146	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7147	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7148	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7149	    $EGREP "$file_magic_regex" > /dev/null; then
7150	    :
7151	  else
7152	    cat <<EOF 1>&2
7153
7154*** Warning: the command libtool uses to detect shared libraries,
7155*** $file_magic_cmd, produces output that libtool cannot recognize.
7156*** The result is that libtool may fail to recognize shared libraries
7157*** as such.  This will affect the creation of libtool libraries that
7158*** depend on shared libraries, but programs linked with such libtool
7159*** libraries will work regardless of this problem.  Nevertheless, you
7160*** may want to report the problem to your system manager and/or to
7161*** bug-libtool@gnu.org
7162
7163EOF
7164	  fi ;;
7165	esac
7166      fi
7167      break
7168    fi
7169  done
7170  IFS="$lt_save_ifs"
7171  MAGIC_CMD="$lt_save_MAGIC_CMD"
7172  ;;
7173esac
7174fi
7175
7176MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7177if test -n "$MAGIC_CMD"; then
7178  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7179$as_echo "$MAGIC_CMD" >&6; }
7180else
7181  { $as_echo "$as_me:$LINENO: result: no" >&5
7182$as_echo "no" >&6; }
7183fi
7184
7185  else
7186    MAGIC_CMD=:
7187  fi
7188fi
7189
7190  fi
7191  ;;
7192esac
7193
7194
7195  case $host_os in
7196    rhapsody* | darwin*)
7197    if test -n "$ac_tool_prefix"; then
7198  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7199set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7200{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7201$as_echo_n "checking for $ac_word... " >&6; }
7202if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7203  $as_echo_n "(cached) " >&6
7204else
7205  if test -n "$DSYMUTIL"; then
7206  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7207else
7208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209for as_dir in $PATH
7210do
7211  IFS=$as_save_IFS
7212  test -z "$as_dir" && as_dir=.
7213  for ac_exec_ext in '' $ac_executable_extensions; do
7214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7215    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7216    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217    break 2
7218  fi
7219done
7220done
7221IFS=$as_save_IFS
7222
7223fi
7224fi
7225DSYMUTIL=$ac_cv_prog_DSYMUTIL
7226if test -n "$DSYMUTIL"; then
7227  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7228$as_echo "$DSYMUTIL" >&6; }
7229else
7230  { $as_echo "$as_me:$LINENO: result: no" >&5
7231$as_echo "no" >&6; }
7232fi
7233
7234
7235fi
7236if test -z "$ac_cv_prog_DSYMUTIL"; then
7237  ac_ct_DSYMUTIL=$DSYMUTIL
7238  # Extract the first word of "dsymutil", so it can be a program name with args.
7239set dummy dsymutil; ac_word=$2
7240{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7241$as_echo_n "checking for $ac_word... " >&6; }
7242if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7243  $as_echo_n "(cached) " >&6
7244else
7245  if test -n "$ac_ct_DSYMUTIL"; then
7246  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7247else
7248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249for as_dir in $PATH
7250do
7251  IFS=$as_save_IFS
7252  test -z "$as_dir" && as_dir=.
7253  for ac_exec_ext in '' $ac_executable_extensions; do
7254  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7255    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7256    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257    break 2
7258  fi
7259done
7260done
7261IFS=$as_save_IFS
7262
7263fi
7264fi
7265ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7266if test -n "$ac_ct_DSYMUTIL"; then
7267  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7268$as_echo "$ac_ct_DSYMUTIL" >&6; }
7269else
7270  { $as_echo "$as_me:$LINENO: result: no" >&5
7271$as_echo "no" >&6; }
7272fi
7273
7274  if test "x$ac_ct_DSYMUTIL" = x; then
7275    DSYMUTIL=":"
7276  else
7277    case $cross_compiling:$ac_tool_warned in
7278yes:)
7279{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7281ac_tool_warned=yes ;;
7282esac
7283    DSYMUTIL=$ac_ct_DSYMUTIL
7284  fi
7285else
7286  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7287fi
7288
7289    if test -n "$ac_tool_prefix"; then
7290  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7291set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7292{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7293$as_echo_n "checking for $ac_word... " >&6; }
7294if test "${ac_cv_prog_NMEDIT+set}" = set; then
7295  $as_echo_n "(cached) " >&6
7296else
7297  if test -n "$NMEDIT"; then
7298  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7299else
7300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301for as_dir in $PATH
7302do
7303  IFS=$as_save_IFS
7304  test -z "$as_dir" && as_dir=.
7305  for ac_exec_ext in '' $ac_executable_extensions; do
7306  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7307    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7308    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309    break 2
7310  fi
7311done
7312done
7313IFS=$as_save_IFS
7314
7315fi
7316fi
7317NMEDIT=$ac_cv_prog_NMEDIT
7318if test -n "$NMEDIT"; then
7319  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7320$as_echo "$NMEDIT" >&6; }
7321else
7322  { $as_echo "$as_me:$LINENO: result: no" >&5
7323$as_echo "no" >&6; }
7324fi
7325
7326
7327fi
7328if test -z "$ac_cv_prog_NMEDIT"; then
7329  ac_ct_NMEDIT=$NMEDIT
7330  # Extract the first word of "nmedit", so it can be a program name with args.
7331set dummy nmedit; ac_word=$2
7332{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7333$as_echo_n "checking for $ac_word... " >&6; }
7334if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7335  $as_echo_n "(cached) " >&6
7336else
7337  if test -n "$ac_ct_NMEDIT"; then
7338  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7339else
7340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341for as_dir in $PATH
7342do
7343  IFS=$as_save_IFS
7344  test -z "$as_dir" && as_dir=.
7345  for ac_exec_ext in '' $ac_executable_extensions; do
7346  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7347    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7348    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349    break 2
7350  fi
7351done
7352done
7353IFS=$as_save_IFS
7354
7355fi
7356fi
7357ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7358if test -n "$ac_ct_NMEDIT"; then
7359  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7360$as_echo "$ac_ct_NMEDIT" >&6; }
7361else
7362  { $as_echo "$as_me:$LINENO: result: no" >&5
7363$as_echo "no" >&6; }
7364fi
7365
7366  if test "x$ac_ct_NMEDIT" = x; then
7367    NMEDIT=":"
7368  else
7369    case $cross_compiling:$ac_tool_warned in
7370yes:)
7371{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7373ac_tool_warned=yes ;;
7374esac
7375    NMEDIT=$ac_ct_NMEDIT
7376  fi
7377else
7378  NMEDIT="$ac_cv_prog_NMEDIT"
7379fi
7380
7381
7382    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7383$as_echo_n "checking for -single_module linker flag... " >&6; }
7384if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7385  $as_echo_n "(cached) " >&6
7386else
7387  lt_cv_apple_cc_single_mod=no
7388      if test -z "${LT_MULTI_MODULE}"; then
7389   # By default we will add the -single_module flag. You can override
7390   # by either setting the environment variable LT_MULTI_MODULE
7391   # non-empty at configure time, or by adding -multi_module to the
7392   # link flags.
7393   echo "int foo(void){return 1;}" > conftest.c
7394   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7395     -dynamiclib ${wl}-single_module conftest.c
7396   if test -f libconftest.dylib; then
7397     lt_cv_apple_cc_single_mod=yes
7398     rm -rf libconftest.dylib*
7399   fi
7400   rm conftest.c
7401      fi
7402fi
7403{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7404$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7405    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7406$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7407if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7408  $as_echo_n "(cached) " >&6
7409else
7410  lt_cv_ld_exported_symbols_list=no
7411      save_LDFLAGS=$LDFLAGS
7412      echo "_main" > conftest.sym
7413      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7414      cat >conftest.$ac_ext <<_ACEOF
7415/* confdefs.h.  */
7416_ACEOF
7417cat confdefs.h >>conftest.$ac_ext
7418cat >>conftest.$ac_ext <<_ACEOF
7419/* end confdefs.h.  */
7420
7421int
7422main ()
7423{
7424
7425  ;
7426  return 0;
7427}
7428_ACEOF
7429rm -f conftest.$ac_objext conftest$ac_exeext
7430if { (ac_try="$ac_link"
7431case "(($ac_try" in
7432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433  *) ac_try_echo=$ac_try;;
7434esac
7435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7436$as_echo "$ac_try_echo") >&5
7437  (eval "$ac_link") 2>conftest.er1
7438  ac_status=$?
7439  grep -v '^ *+' conftest.er1 >conftest.err
7440  rm -f conftest.er1
7441  cat conftest.err >&5
7442  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443  (exit $ac_status); } && {
7444	 test -z "$ac_c_werror_flag" ||
7445	 test ! -s conftest.err
7446       } && test -s conftest$ac_exeext && {
7447	 test "$cross_compiling" = yes ||
7448	 $as_test_x conftest$ac_exeext
7449       }; then
7450  lt_cv_ld_exported_symbols_list=yes
7451else
7452  $as_echo "$as_me: failed program was:" >&5
7453sed 's/^/| /' conftest.$ac_ext >&5
7454
7455	lt_cv_ld_exported_symbols_list=no
7456fi
7457
7458rm -rf conftest.dSYM
7459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7460      conftest$ac_exeext conftest.$ac_ext
7461   LDFLAGS="$save_LDFLAGS"
7462
7463fi
7464{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7465$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7466    case $host_os in
7467    rhapsody* | darwin1.[0123])
7468      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7469    darwin1.*)
7470     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7471    darwin*)
7472      # if running on 10.5 or later, the deployment target defaults
7473      # to the OS version, if on x86, and 10.4, the deployment
7474      # target defaults to 10.4. Don't you love it?
7475      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7476   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7477     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7478   10.[012]*)
7479     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7480   10.*)
7481     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7482      esac
7483    ;;
7484  esac
7485    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7486      _lt_dar_single_mod='$single_module'
7487    fi
7488    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7489      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7490    else
7491      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7492    fi
7493    if test "$DSYMUTIL" != ":"; then
7494      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7495    else
7496      _lt_dsymutil=
7497    fi
7498    ;;
7499  esac
7500
7501
7502enable_dlopen=no
7503enable_win32_dll=no
7504
7505# Check whether --enable-libtool-lock was given.
7506if test "${enable_libtool_lock+set}" = set; then
7507  enableval=$enable_libtool_lock;
7508fi
7509
7510test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7511
7512
7513# Check whether --with-pic was given.
7514if test "${with_pic+set}" = set; then
7515  withval=$with_pic; pic_mode="$withval"
7516else
7517  pic_mode=default
7518fi
7519
7520test -z "$pic_mode" && pic_mode=default
7521
7522# Use C for the default configuration in the libtool script
7523tagname=
7524lt_save_CC="$CC"
7525ac_ext=c
7526ac_cpp='$CPP $CPPFLAGS'
7527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7529ac_compiler_gnu=$ac_cv_c_compiler_gnu
7530
7531
7532# Source file extension for C test sources.
7533ac_ext=c
7534
7535# Object file extension for compiled C test sources.
7536objext=o
7537objext=$objext
7538
7539# Code to be used in simple compile tests
7540lt_simple_compile_test_code="int some_variable = 0;"
7541
7542# Code to be used in simple link tests
7543lt_simple_link_test_code='int main(){return(0);}'
7544
7545
7546# If no C compiler was specified, use CC.
7547LTCC=${LTCC-"$CC"}
7548
7549# If no C compiler flags were specified, use CFLAGS.
7550LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7551
7552# Allow CC to be a program name with arguments.
7553compiler=$CC
7554
7555
7556# save warnings/boilerplate of simple test code
7557ac_outfile=conftest.$ac_objext
7558echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7559eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7560_lt_compiler_boilerplate=`cat conftest.err`
7561$rm conftest*
7562
7563ac_outfile=conftest.$ac_objext
7564echo "$lt_simple_link_test_code" >conftest.$ac_ext
7565eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7566_lt_linker_boilerplate=`cat conftest.err`
7567$rm -r conftest*
7568
7569
7570
7571lt_prog_compiler_no_builtin_flag=
7572
7573if test "$GCC" = yes; then
7574  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7575
7576
7577{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7578$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7579if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7580  $as_echo_n "(cached) " >&6
7581else
7582  lt_cv_prog_compiler_rtti_exceptions=no
7583  ac_outfile=conftest.$ac_objext
7584   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7585   lt_compiler_flag="-fno-rtti -fno-exceptions"
7586   # Insert the option either (1) after the last *FLAGS variable, or
7587   # (2) before a word containing "conftest.", or (3) at the end.
7588   # Note that $ac_compile itself does not contain backslashes and begins
7589   # with a dollar sign (not a hyphen), so the echo should work correctly.
7590   # The option is referenced via a variable to avoid confusing sed.
7591   lt_compile=`echo "$ac_compile" | $SED \
7592   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7593   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7594   -e 's:$: $lt_compiler_flag:'`
7595   (eval echo "\"\$as_me:7595: $lt_compile\"" >&5)
7596   (eval "$lt_compile" 2>conftest.err)
7597   ac_status=$?
7598   cat conftest.err >&5
7599   echo "$as_me:7599: \$? = $ac_status" >&5
7600   if (exit $ac_status) && test -s "$ac_outfile"; then
7601     # The compiler can only warn and ignore the option if not recognized
7602     # So say no if there are warnings other than the usual output.
7603     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7604     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7605     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7606       lt_cv_prog_compiler_rtti_exceptions=yes
7607     fi
7608   fi
7609   $rm conftest*
7610
7611fi
7612{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7613$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7614
7615if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7616    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7617else
7618    :
7619fi
7620
7621fi
7622
7623lt_prog_compiler_wl=
7624lt_prog_compiler_pic=
7625lt_prog_compiler_static=
7626
7627{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7628$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7629
7630  if test "$GCC" = yes; then
7631    lt_prog_compiler_wl='-Wl,'
7632    lt_prog_compiler_static='-static'
7633
7634    case $host_os in
7635      aix*)
7636      # All AIX code is PIC.
7637      if test "$host_cpu" = ia64; then
7638	# AIX 5 now supports IA64 processor
7639	lt_prog_compiler_static='-Bstatic'
7640      fi
7641      ;;
7642
7643    amigaos*)
7644      # FIXME: we need at least 68020 code to build shared libraries, but
7645      # adding the `-m68020' flag to GCC prevents building anything better,
7646      # like `-m68040'.
7647      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7648      ;;
7649
7650    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7651      # PIC is the default for these OSes.
7652      ;;
7653
7654    mingw* | cygwin* | pw32* | os2*)
7655      # This hack is so that the source file can tell whether it is being
7656      # built for inclusion in a dll (and should export symbols for example).
7657      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7658      # (--disable-auto-import) libraries
7659      lt_prog_compiler_pic='-DDLL_EXPORT'
7660      ;;
7661
7662    darwin* | rhapsody*)
7663      # PIC is the default on this platform
7664      # Common symbols not allowed in MH_DYLIB files
7665      lt_prog_compiler_pic='-fno-common'
7666      ;;
7667
7668    interix[3-9]*)
7669      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7670      # Instead, we relocate shared libraries at runtime.
7671      ;;
7672
7673    msdosdjgpp*)
7674      # Just because we use GCC doesn't mean we suddenly get shared libraries
7675      # on systems that don't support them.
7676      lt_prog_compiler_can_build_shared=no
7677      enable_shared=no
7678      ;;
7679
7680    sysv4*MP*)
7681      if test -d /usr/nec; then
7682	lt_prog_compiler_pic=-Kconform_pic
7683      fi
7684      ;;
7685
7686    hpux*)
7687      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7688      # not for PA HP-UX.
7689      case $host_cpu in
7690      hppa*64*|ia64*)
7691	# +Z the default
7692	;;
7693      *)
7694	lt_prog_compiler_pic='-fPIC'
7695	;;
7696      esac
7697      ;;
7698
7699    *)
7700      lt_prog_compiler_pic='-fPIC'
7701      ;;
7702    esac
7703  else
7704    # PORTME Check for flag to pass linker flags through the system compiler.
7705    case $host_os in
7706    aix*)
7707      lt_prog_compiler_wl='-Wl,'
7708      if test "$host_cpu" = ia64; then
7709	# AIX 5 now supports IA64 processor
7710	lt_prog_compiler_static='-Bstatic'
7711      else
7712	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7713      fi
7714      ;;
7715      darwin*)
7716        # PIC is the default on this platform
7717        # Common symbols not allowed in MH_DYLIB files
7718       case $cc_basename in
7719         xlc*)
7720         lt_prog_compiler_pic='-qnocommon'
7721         lt_prog_compiler_wl='-Wl,'
7722         ;;
7723       esac
7724       ;;
7725
7726    mingw* | cygwin* | pw32* | os2*)
7727      # This hack is so that the source file can tell whether it is being
7728      # built for inclusion in a dll (and should export symbols for example).
7729      lt_prog_compiler_pic='-DDLL_EXPORT'
7730      ;;
7731
7732    hpux9* | hpux10* | hpux11*)
7733      lt_prog_compiler_wl='-Wl,'
7734      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7735      # not for PA HP-UX.
7736      case $host_cpu in
7737      hppa*64*|ia64*)
7738	# +Z the default
7739	;;
7740      *)
7741	lt_prog_compiler_pic='+Z'
7742	;;
7743      esac
7744      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7745      lt_prog_compiler_static='${wl}-a ${wl}archive'
7746      ;;
7747
7748    irix5* | irix6* | nonstopux*)
7749      lt_prog_compiler_wl='-Wl,'
7750      # PIC (with -KPIC) is the default.
7751      lt_prog_compiler_static='-non_shared'
7752      ;;
7753
7754    newsos6)
7755      lt_prog_compiler_pic='-KPIC'
7756      lt_prog_compiler_static='-Bstatic'
7757      ;;
7758
7759    linux* | k*bsd*-gnu)
7760      case $cc_basename in
7761      icc* | ecc*)
7762	lt_prog_compiler_wl='-Wl,'
7763	lt_prog_compiler_pic='-KPIC'
7764	lt_prog_compiler_static='-static'
7765        ;;
7766      pgcc* | pgf77* | pgf90* | pgf95*)
7767        # Portland Group compilers (*not* the Pentium gcc compiler,
7768	# which looks to be a dead project)
7769	lt_prog_compiler_wl='-Wl,'
7770	lt_prog_compiler_pic='-fpic'
7771	lt_prog_compiler_static='-Bstatic'
7772        ;;
7773      ccc*)
7774        lt_prog_compiler_wl='-Wl,'
7775        # All Alpha code is PIC.
7776        lt_prog_compiler_static='-non_shared'
7777        ;;
7778      *)
7779        case `$CC -V 2>&1 | sed 5q` in
7780	*Sun\ C*)
7781	  # Sun C 5.9
7782	  lt_prog_compiler_pic='-KPIC'
7783	  lt_prog_compiler_static='-Bstatic'
7784	  lt_prog_compiler_wl='-Wl,'
7785	  ;;
7786	*Sun\ F*)
7787	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7788	  lt_prog_compiler_pic='-KPIC'
7789	  lt_prog_compiler_static='-Bstatic'
7790	  lt_prog_compiler_wl=''
7791	  ;;
7792	esac
7793	;;
7794      esac
7795      ;;
7796
7797    osf3* | osf4* | osf5*)
7798      lt_prog_compiler_wl='-Wl,'
7799      # All OSF/1 code is PIC.
7800      lt_prog_compiler_static='-non_shared'
7801      ;;
7802
7803    rdos*)
7804      lt_prog_compiler_static='-non_shared'
7805      ;;
7806
7807    solaris*)
7808      lt_prog_compiler_pic='-KPIC'
7809      lt_prog_compiler_static='-Bstatic'
7810      case $cc_basename in
7811      f77* | f90* | f95*)
7812	lt_prog_compiler_wl='-Qoption ld ';;
7813      *)
7814	lt_prog_compiler_wl='-Wl,';;
7815      esac
7816      ;;
7817
7818    sunos4*)
7819      lt_prog_compiler_wl='-Qoption ld '
7820      lt_prog_compiler_pic='-PIC'
7821      lt_prog_compiler_static='-Bstatic'
7822      ;;
7823
7824    sysv4 | sysv4.2uw2* | sysv4.3*)
7825      lt_prog_compiler_wl='-Wl,'
7826      lt_prog_compiler_pic='-KPIC'
7827      lt_prog_compiler_static='-Bstatic'
7828      ;;
7829
7830    sysv4*MP*)
7831      if test -d /usr/nec ;then
7832	lt_prog_compiler_pic='-Kconform_pic'
7833	lt_prog_compiler_static='-Bstatic'
7834      fi
7835      ;;
7836
7837    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7838      lt_prog_compiler_wl='-Wl,'
7839      lt_prog_compiler_pic='-KPIC'
7840      lt_prog_compiler_static='-Bstatic'
7841      ;;
7842
7843    unicos*)
7844      lt_prog_compiler_wl='-Wl,'
7845      lt_prog_compiler_can_build_shared=no
7846      ;;
7847
7848    uts4*)
7849      lt_prog_compiler_pic='-pic'
7850      lt_prog_compiler_static='-Bstatic'
7851      ;;
7852
7853    *)
7854      lt_prog_compiler_can_build_shared=no
7855      ;;
7856    esac
7857  fi
7858
7859{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7860$as_echo "$lt_prog_compiler_pic" >&6; }
7861
7862#
7863# Check to make sure the PIC flag actually works.
7864#
7865if test -n "$lt_prog_compiler_pic"; then
7866
7867{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7868$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7869if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7870  $as_echo_n "(cached) " >&6
7871else
7872  lt_cv_prog_compiler_pic_works=no
7873  ac_outfile=conftest.$ac_objext
7874   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7875   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7876   # Insert the option either (1) after the last *FLAGS variable, or
7877   # (2) before a word containing "conftest.", or (3) at the end.
7878   # Note that $ac_compile itself does not contain backslashes and begins
7879   # with a dollar sign (not a hyphen), so the echo should work correctly.
7880   # The option is referenced via a variable to avoid confusing sed.
7881   lt_compile=`echo "$ac_compile" | $SED \
7882   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7883   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7884   -e 's:$: $lt_compiler_flag:'`
7885   (eval echo "\"\$as_me:7885: $lt_compile\"" >&5)
7886   (eval "$lt_compile" 2>conftest.err)
7887   ac_status=$?
7888   cat conftest.err >&5
7889   echo "$as_me:7889: \$? = $ac_status" >&5
7890   if (exit $ac_status) && test -s "$ac_outfile"; then
7891     # The compiler can only warn and ignore the option if not recognized
7892     # So say no if there are warnings other than the usual output.
7893     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7894     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7895     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7896       lt_cv_prog_compiler_pic_works=yes
7897     fi
7898   fi
7899   $rm conftest*
7900
7901fi
7902{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7903$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7904
7905if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7906    case $lt_prog_compiler_pic in
7907     "" | " "*) ;;
7908     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7909     esac
7910else
7911    lt_prog_compiler_pic=
7912     lt_prog_compiler_can_build_shared=no
7913fi
7914
7915fi
7916case $host_os in
7917  # For platforms which do not support PIC, -DPIC is meaningless:
7918  *djgpp*)
7919    lt_prog_compiler_pic=
7920    ;;
7921  *)
7922    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7923    ;;
7924esac
7925
7926#
7927# Check to make sure the static flag actually works.
7928#
7929wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7930{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7931$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7932if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7933  $as_echo_n "(cached) " >&6
7934else
7935  lt_cv_prog_compiler_static_works=no
7936   save_LDFLAGS="$LDFLAGS"
7937   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7938   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7939   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7940     # The linker can only warn and ignore the option if not recognized
7941     # So say no if there are warnings
7942     if test -s conftest.err; then
7943       # Append any errors to the config.log.
7944       cat conftest.err 1>&5
7945       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7946       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7947       if diff conftest.exp conftest.er2 >/dev/null; then
7948         lt_cv_prog_compiler_static_works=yes
7949       fi
7950     else
7951       lt_cv_prog_compiler_static_works=yes
7952     fi
7953   fi
7954   $rm -r conftest*
7955   LDFLAGS="$save_LDFLAGS"
7956
7957fi
7958{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7959$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7960
7961if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7962    :
7963else
7964    lt_prog_compiler_static=
7965fi
7966
7967
7968{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7969$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7970if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7971  $as_echo_n "(cached) " >&6
7972else
7973  lt_cv_prog_compiler_c_o=no
7974   $rm -r conftest 2>/dev/null
7975   mkdir conftest
7976   cd conftest
7977   mkdir out
7978   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7979
7980   lt_compiler_flag="-o out/conftest2.$ac_objext"
7981   # Insert the option either (1) after the last *FLAGS variable, or
7982   # (2) before a word containing "conftest.", or (3) at the end.
7983   # Note that $ac_compile itself does not contain backslashes and begins
7984   # with a dollar sign (not a hyphen), so the echo should work correctly.
7985   lt_compile=`echo "$ac_compile" | $SED \
7986   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7987   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7988   -e 's:$: $lt_compiler_flag:'`
7989   (eval echo "\"\$as_me:7989: $lt_compile\"" >&5)
7990   (eval "$lt_compile" 2>out/conftest.err)
7991   ac_status=$?
7992   cat out/conftest.err >&5
7993   echo "$as_me:7993: \$? = $ac_status" >&5
7994   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7995   then
7996     # The compiler can only warn and ignore the option if not recognized
7997     # So say no if there are warnings
7998     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7999     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8000     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8001       lt_cv_prog_compiler_c_o=yes
8002     fi
8003   fi
8004   chmod u+w . 2>&5
8005   $rm conftest*
8006   # SGI C++ compiler will create directory out/ii_files/ for
8007   # template instantiation
8008   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8009   $rm out/* && rmdir out
8010   cd ..
8011   rmdir conftest
8012   $rm conftest*
8013
8014fi
8015{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8016$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8017
8018
8019hard_links="nottested"
8020if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8021  # do not overwrite the value of need_locks provided by the user
8022  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8023$as_echo_n "checking if we can lock with hard links... " >&6; }
8024  hard_links=yes
8025  $rm conftest*
8026  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8027  touch conftest.a
8028  ln conftest.a conftest.b 2>&5 || hard_links=no
8029  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8030  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8031$as_echo "$hard_links" >&6; }
8032  if test "$hard_links" = no; then
8033    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8034$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8035    need_locks=warn
8036  fi
8037else
8038  need_locks=no
8039fi
8040
8041{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8042$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8043
8044  runpath_var=
8045  allow_undefined_flag=
8046  enable_shared_with_static_runtimes=no
8047  archive_cmds=
8048  archive_expsym_cmds=
8049  old_archive_From_new_cmds=
8050  old_archive_from_expsyms_cmds=
8051  export_dynamic_flag_spec=
8052  whole_archive_flag_spec=
8053  thread_safe_flag_spec=
8054  hardcode_libdir_flag_spec=
8055  hardcode_libdir_flag_spec_ld=
8056  hardcode_libdir_separator=
8057  hardcode_direct=no
8058  hardcode_minus_L=no
8059  hardcode_shlibpath_var=unsupported
8060  link_all_deplibs=unknown
8061  hardcode_automatic=no
8062  module_cmds=
8063  module_expsym_cmds=
8064  always_export_symbols=no
8065  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8066  # include_expsyms should be a list of space-separated symbols to be *always*
8067  # included in the symbol list
8068  include_expsyms=
8069  # exclude_expsyms can be an extended regexp of symbols to exclude
8070  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8071  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8072  # as well as any symbol that contains `d'.
8073  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8074  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8075  # platforms (ab)use it in PIC code, but their linkers get confused if
8076  # the symbol is explicitly referenced.  Since portable code cannot
8077  # rely on this symbol name, it's probably fine to never include it in
8078  # preloaded symbol tables.
8079  # Exclude shared library initialization/finalization symbols.
8080  extract_expsyms_cmds=
8081  # Just being paranoid about ensuring that cc_basename is set.
8082  for cc_temp in $compiler""; do
8083  case $cc_temp in
8084    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8085    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8086    \-*) ;;
8087    *) break;;
8088  esac
8089done
8090cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8091
8092  case $host_os in
8093  cygwin* | mingw* | pw32*)
8094    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8095    # When not using gcc, we currently assume that we are using
8096    # Microsoft Visual C++.
8097    if test "$GCC" != yes; then
8098      with_gnu_ld=no
8099    fi
8100    ;;
8101  interix*)
8102    # we just hope/assume this is gcc and not c89 (= MSVC++)
8103    with_gnu_ld=yes
8104    ;;
8105  openbsd*)
8106    with_gnu_ld=no
8107    ;;
8108  esac
8109
8110  ld_shlibs=yes
8111  if test "$with_gnu_ld" = yes; then
8112    # If archive_cmds runs LD, not CC, wlarc should be empty
8113    wlarc='${wl}'
8114
8115    # Set some defaults for GNU ld with shared library support. These
8116    # are reset later if shared libraries are not supported. Putting them
8117    # here allows them to be overridden if necessary.
8118    runpath_var=LD_RUN_PATH
8119    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8120    export_dynamic_flag_spec='${wl}--export-dynamic'
8121    # ancient GNU ld didn't support --whole-archive et. al.
8122    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8123	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8124      else
8125  	whole_archive_flag_spec=
8126    fi
8127    supports_anon_versioning=no
8128    case `$LD -v 2>/dev/null` in
8129      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8130      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8131      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8132      *\ 2.11.*) ;; # other 2.11 versions
8133      *) supports_anon_versioning=yes ;;
8134    esac
8135
8136    # See if GNU ld supports shared libraries.
8137    case $host_os in
8138    aix[3-9]*)
8139      # On AIX/PPC, the GNU linker is very broken
8140      if test "$host_cpu" != ia64; then
8141	ld_shlibs=no
8142	cat <<EOF 1>&2
8143
8144*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8145*** to be unable to reliably create shared libraries on AIX.
8146*** Therefore, libtool is disabling shared libraries support.  If you
8147*** really care for shared libraries, you may want to modify your PATH
8148*** so that a non-GNU linker is found, and then restart.
8149
8150EOF
8151      fi
8152      ;;
8153
8154    amigaos*)
8155      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)'
8156      hardcode_libdir_flag_spec='-L$libdir'
8157      hardcode_minus_L=yes
8158
8159      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8160      # that the semantics of dynamic libraries on AmigaOS, at least up
8161      # to version 4, is to share data among multiple programs linked
8162      # with the same dynamic library.  Since this doesn't match the
8163      # behavior of shared libraries on other platforms, we can't use
8164      # them.
8165      ld_shlibs=no
8166      ;;
8167
8168    beos*)
8169      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8170	allow_undefined_flag=unsupported
8171	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8172	# support --undefined.  This deserves some investigation.  FIXME
8173	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8174      else
8175	ld_shlibs=no
8176      fi
8177      ;;
8178
8179    cygwin* | mingw* | pw32*)
8180      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8181      # as there is no search path for DLLs.
8182      hardcode_libdir_flag_spec='-L$libdir'
8183      allow_undefined_flag=unsupported
8184      always_export_symbols=no
8185      enable_shared_with_static_runtimes=yes
8186      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8187
8188      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8189        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8190	# If the export-symbols file already is a .def file (1st line
8191	# is EXPORTS), use it as is; otherwise, prepend...
8192	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8193	  cp $export_symbols $output_objdir/$soname.def;
8194	else
8195	  echo EXPORTS > $output_objdir/$soname.def;
8196	  cat $export_symbols >> $output_objdir/$soname.def;
8197	fi~
8198	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8199      else
8200	ld_shlibs=no
8201      fi
8202      ;;
8203
8204    interix[3-9]*)
8205      hardcode_direct=no
8206      hardcode_shlibpath_var=no
8207      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8208      export_dynamic_flag_spec='${wl}-E'
8209      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8210      # Instead, shared libraries are loaded at an image base (0x10000000 by
8211      # default) and relocated if they conflict, which is a slow very memory
8212      # consuming and fragmenting process.  To avoid this, we pick a random,
8213      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8214      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8215      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8216      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'
8217      ;;
8218
8219    gnu* | linux* | k*bsd*-gnu)
8220      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8221	tmp_addflag=
8222	case $cc_basename,$host_cpu in
8223	pgcc*)				# Portland Group C compiler
8224	  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'
8225	  tmp_addflag=' $pic_flag'
8226	  ;;
8227	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8228	  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'
8229	  tmp_addflag=' $pic_flag -Mnomain' ;;
8230	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8231	  tmp_addflag=' -i_dynamic' ;;
8232	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8233	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8234	ifc* | ifort*)			# Intel Fortran compiler
8235	  tmp_addflag=' -nofor_main' ;;
8236	esac
8237	case `$CC -V 2>&1 | sed 5q` in
8238	*Sun\ C*)			# Sun C 5.9
8239	  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'
8240	  tmp_sharedflag='-G' ;;
8241	*Sun\ F*)			# Sun Fortran 8.3
8242	  tmp_sharedflag='-G' ;;
8243	*)
8244	  tmp_sharedflag='-shared' ;;
8245	esac
8246	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8247
8248	if test $supports_anon_versioning = yes; then
8249	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8250  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8251  $echo "local: *; };" >> $output_objdir/$libname.ver~
8252	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8253	fi
8254      else
8255	ld_shlibs=no
8256      fi
8257      ;;
8258
8259    netbsd*)
8260      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8261	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8262	wlarc=
8263      else
8264	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8265	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8266      fi
8267      ;;
8268
8269    solaris*)
8270      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8271	ld_shlibs=no
8272	cat <<EOF 1>&2
8273
8274*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8275*** create shared libraries on Solaris systems.  Therefore, libtool
8276*** is disabling shared libraries support.  We urge you to upgrade GNU
8277*** binutils to release 2.9.1 or newer.  Another option is to modify
8278*** your PATH or compiler configuration so that the native linker is
8279*** used, and then restart.
8280
8281EOF
8282      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8283	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8284	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8285      else
8286	ld_shlibs=no
8287      fi
8288      ;;
8289
8290    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8291      case `$LD -v 2>&1` in
8292        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8293	ld_shlibs=no
8294	cat <<_LT_EOF 1>&2
8295
8296*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8297*** reliably create shared libraries on SCO systems.  Therefore, libtool
8298*** is disabling shared libraries support.  We urge you to upgrade GNU
8299*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8300*** your PATH or compiler configuration so that the native linker is
8301*** used, and then restart.
8302
8303_LT_EOF
8304	;;
8305	*)
8306	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8307	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8308	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8309	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8310	  else
8311	    ld_shlibs=no
8312	  fi
8313	;;
8314      esac
8315      ;;
8316
8317    sunos4*)
8318      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8319      wlarc=
8320      hardcode_direct=yes
8321      hardcode_shlibpath_var=no
8322      ;;
8323
8324    *)
8325      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8326	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8327	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8328      else
8329	ld_shlibs=no
8330      fi
8331      ;;
8332    esac
8333
8334    if test "$ld_shlibs" = no; then
8335      runpath_var=
8336      hardcode_libdir_flag_spec=
8337      export_dynamic_flag_spec=
8338      whole_archive_flag_spec=
8339    fi
8340  else
8341    # PORTME fill in a description of your system's linker (not GNU ld)
8342    case $host_os in
8343    aix3*)
8344      allow_undefined_flag=unsupported
8345      always_export_symbols=yes
8346      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'
8347      # Note: this linker hardcodes the directories in LIBPATH if there
8348      # are no directories specified by -L.
8349      hardcode_minus_L=yes
8350      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8351	# Neither direct hardcoding nor static linking is supported with a
8352	# broken collect2.
8353	hardcode_direct=unsupported
8354      fi
8355      ;;
8356
8357    aix[4-9]*)
8358      if test "$host_cpu" = ia64; then
8359	# On IA64, the linker does run time linking by default, so we don't
8360	# have to do anything special.
8361	aix_use_runtimelinking=no
8362	exp_sym_flag='-Bexport'
8363	no_entry_flag=""
8364      else
8365	# If we're using GNU nm, then we don't want the "-C" option.
8366	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8367	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8368	  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'
8369	else
8370	  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'
8371	fi
8372	aix_use_runtimelinking=no
8373
8374	# Test if we are trying to use run time linking or normal
8375	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8376	# need to do runtime linking.
8377	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8378	  for ld_flag in $LDFLAGS; do
8379  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8380  	    aix_use_runtimelinking=yes
8381  	    break
8382  	  fi
8383	  done
8384	  ;;
8385	esac
8386
8387	exp_sym_flag='-bexport'
8388	no_entry_flag='-bnoentry'
8389      fi
8390
8391      # When large executables or shared objects are built, AIX ld can
8392      # have problems creating the table of contents.  If linking a library
8393      # or program results in "error TOC overflow" add -mminimal-toc to
8394      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8395      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8396
8397      archive_cmds=''
8398      hardcode_direct=yes
8399      hardcode_libdir_separator=':'
8400      link_all_deplibs=yes
8401
8402      if test "$GCC" = yes; then
8403	case $host_os in aix4.[012]|aix4.[012].*)
8404	# We only want to do this on AIX 4.2 and lower, the check
8405	# below for broken collect2 doesn't work under 4.3+
8406	  collect2name=`${CC} -print-prog-name=collect2`
8407	  if test -f "$collect2name" && \
8408  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8409	  then
8410  	  # We have reworked collect2
8411  	  :
8412	  else
8413  	  # We have old collect2
8414  	  hardcode_direct=unsupported
8415  	  # It fails to find uninstalled libraries when the uninstalled
8416  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8417  	  # to unsupported forces relinking
8418  	  hardcode_minus_L=yes
8419  	  hardcode_libdir_flag_spec='-L$libdir'
8420  	  hardcode_libdir_separator=
8421	  fi
8422	  ;;
8423	esac
8424	shared_flag='-shared'
8425	if test "$aix_use_runtimelinking" = yes; then
8426	  shared_flag="$shared_flag "'${wl}-G'
8427	fi
8428      else
8429	# not using gcc
8430	if test "$host_cpu" = ia64; then
8431  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8432  	# chokes on -Wl,-G. The following line is correct:
8433	  shared_flag='-G'
8434	else
8435	  if test "$aix_use_runtimelinking" = yes; then
8436	    shared_flag='${wl}-G'
8437	  else
8438	    shared_flag='${wl}-bM:SRE'
8439	  fi
8440	fi
8441      fi
8442
8443      # It seems that -bexpall does not export symbols beginning with
8444      # underscore (_), so it is better to generate a list of symbols to export.
8445      always_export_symbols=yes
8446      if test "$aix_use_runtimelinking" = yes; then
8447	# Warning - without using the other runtime loading flags (-brtl),
8448	# -berok will link without error, but may produce a broken library.
8449	allow_undefined_flag='-berok'
8450       # Determine the default libpath from the value encoded in an empty executable.
8451       cat >conftest.$ac_ext <<_ACEOF
8452/* confdefs.h.  */
8453_ACEOF
8454cat confdefs.h >>conftest.$ac_ext
8455cat >>conftest.$ac_ext <<_ACEOF
8456/* end confdefs.h.  */
8457
8458int
8459main ()
8460{
8461
8462  ;
8463  return 0;
8464}
8465_ACEOF
8466rm -f conftest.$ac_objext conftest$ac_exeext
8467if { (ac_try="$ac_link"
8468case "(($ac_try" in
8469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470  *) ac_try_echo=$ac_try;;
8471esac
8472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8473$as_echo "$ac_try_echo") >&5
8474  (eval "$ac_link") 2>conftest.er1
8475  ac_status=$?
8476  grep -v '^ *+' conftest.er1 >conftest.err
8477  rm -f conftest.er1
8478  cat conftest.err >&5
8479  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480  (exit $ac_status); } && {
8481	 test -z "$ac_c_werror_flag" ||
8482	 test ! -s conftest.err
8483       } && test -s conftest$ac_exeext && {
8484	 test "$cross_compiling" = yes ||
8485	 $as_test_x conftest$ac_exeext
8486       }; then
8487
8488lt_aix_libpath_sed='
8489    /Import File Strings/,/^$/ {
8490	/^0/ {
8491	    s/^0  *\(.*\)$/\1/
8492	    p
8493	}
8494    }'
8495aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8496# Check for a 64-bit object if we didn't find anything.
8497if test -z "$aix_libpath"; then
8498  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8499fi
8500else
8501  $as_echo "$as_me: failed program was:" >&5
8502sed 's/^/| /' conftest.$ac_ext >&5
8503
8504
8505fi
8506
8507rm -rf conftest.dSYM
8508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8509      conftest$ac_exeext conftest.$ac_ext
8510if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8511
8512       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8513	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"
8514       else
8515	if test "$host_cpu" = ia64; then
8516	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8517	  allow_undefined_flag="-z nodefs"
8518	  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"
8519	else
8520	 # Determine the default libpath from the value encoded in an empty executable.
8521	 cat >conftest.$ac_ext <<_ACEOF
8522/* confdefs.h.  */
8523_ACEOF
8524cat confdefs.h >>conftest.$ac_ext
8525cat >>conftest.$ac_ext <<_ACEOF
8526/* end confdefs.h.  */
8527
8528int
8529main ()
8530{
8531
8532  ;
8533  return 0;
8534}
8535_ACEOF
8536rm -f conftest.$ac_objext conftest$ac_exeext
8537if { (ac_try="$ac_link"
8538case "(($ac_try" in
8539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540  *) ac_try_echo=$ac_try;;
8541esac
8542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8543$as_echo "$ac_try_echo") >&5
8544  (eval "$ac_link") 2>conftest.er1
8545  ac_status=$?
8546  grep -v '^ *+' conftest.er1 >conftest.err
8547  rm -f conftest.er1
8548  cat conftest.err >&5
8549  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550  (exit $ac_status); } && {
8551	 test -z "$ac_c_werror_flag" ||
8552	 test ! -s conftest.err
8553       } && test -s conftest$ac_exeext && {
8554	 test "$cross_compiling" = yes ||
8555	 $as_test_x conftest$ac_exeext
8556       }; then
8557
8558lt_aix_libpath_sed='
8559    /Import File Strings/,/^$/ {
8560	/^0/ {
8561	    s/^0  *\(.*\)$/\1/
8562	    p
8563	}
8564    }'
8565aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8566# Check for a 64-bit object if we didn't find anything.
8567if test -z "$aix_libpath"; then
8568  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8569fi
8570else
8571  $as_echo "$as_me: failed program was:" >&5
8572sed 's/^/| /' conftest.$ac_ext >&5
8573
8574
8575fi
8576
8577rm -rf conftest.dSYM
8578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8579      conftest$ac_exeext conftest.$ac_ext
8580if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8581
8582	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8583	  # Warning - without using the other run time loading flags,
8584	  # -berok will link without error, but may produce a broken library.
8585	  no_undefined_flag=' ${wl}-bernotok'
8586	  allow_undefined_flag=' ${wl}-berok'
8587	  # Exported symbols can be pulled into shared objects from archives
8588	  whole_archive_flag_spec='$convenience'
8589	  archive_cmds_need_lc=yes
8590	  # This is similar to how AIX traditionally builds its shared libraries.
8591	  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'
8592	fi
8593      fi
8594      ;;
8595
8596    amigaos*)
8597      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)'
8598      hardcode_libdir_flag_spec='-L$libdir'
8599      hardcode_minus_L=yes
8600      # see comment about different semantics on the GNU ld section
8601      ld_shlibs=no
8602      ;;
8603
8604    bsdi[45]*)
8605      export_dynamic_flag_spec=-rdynamic
8606      ;;
8607
8608    cygwin* | mingw* | pw32*)
8609      # When not using gcc, we currently assume that we are using
8610      # Microsoft Visual C++.
8611      # hardcode_libdir_flag_spec is actually meaningless, as there is
8612      # no search path for DLLs.
8613      hardcode_libdir_flag_spec=' '
8614      allow_undefined_flag=unsupported
8615      # Tell ltmain to make .lib files, not .a files.
8616      libext=lib
8617      # Tell ltmain to make .dll files, not .so files.
8618      shrext_cmds=".dll"
8619      # FIXME: Setting linknames here is a bad hack.
8620      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8621      # The linker will automatically build a .lib file if we build a DLL.
8622      old_archive_From_new_cmds='true'
8623      # FIXME: Should let the user specify the lib program.
8624      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8625      fix_srcfile_path='`cygpath -w "$srcfile"`'
8626      enable_shared_with_static_runtimes=yes
8627      ;;
8628
8629    darwin* | rhapsody*)
8630      case $host_os in
8631        rhapsody* | darwin1.[012])
8632         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8633         ;;
8634       *) # Darwin 1.3 on
8635         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8636           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8637         else
8638           case ${MACOSX_DEPLOYMENT_TARGET} in
8639             10.[012])
8640               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8641               ;;
8642             10.*)
8643               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8644               ;;
8645           esac
8646         fi
8647         ;;
8648      esac
8649      archive_cmds_need_lc=no
8650      hardcode_direct=no
8651      hardcode_automatic=yes
8652      hardcode_shlibpath_var=unsupported
8653      whole_archive_flag_spec=''
8654      link_all_deplibs=yes
8655    if test "$GCC" = yes ; then
8656    	output_verbose_link_cmd='echo'
8657        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8658        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8659        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}"
8660        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}"
8661    else
8662      case $cc_basename in
8663        xlc*)
8664         output_verbose_link_cmd='echo'
8665         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8666         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8667          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8668         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}'
8669          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}'
8670          ;;
8671       *)
8672         ld_shlibs=no
8673          ;;
8674      esac
8675    fi
8676      ;;
8677
8678    dgux*)
8679      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8680      hardcode_libdir_flag_spec='-L$libdir'
8681      hardcode_shlibpath_var=no
8682      ;;
8683
8684    freebsd1*)
8685      ld_shlibs=no
8686      ;;
8687
8688    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8689    # support.  Future versions do this automatically, but an explicit c++rt0.o
8690    # does not break anything, and helps significantly (at the cost of a little
8691    # extra space).
8692    freebsd2.2*)
8693      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8694      hardcode_libdir_flag_spec='-R$libdir'
8695      hardcode_direct=yes
8696      hardcode_shlibpath_var=no
8697      ;;
8698
8699    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8700    freebsd2*)
8701      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8702      hardcode_direct=yes
8703      hardcode_minus_L=yes
8704      hardcode_shlibpath_var=no
8705      ;;
8706
8707    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8708    freebsd* | dragonfly*)
8709      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8710      hardcode_libdir_flag_spec='-R$libdir'
8711      hardcode_direct=yes
8712      hardcode_shlibpath_var=no
8713      ;;
8714
8715    hpux9*)
8716      if test "$GCC" = yes; then
8717	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'
8718      else
8719	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'
8720      fi
8721      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8722      hardcode_libdir_separator=:
8723      hardcode_direct=yes
8724
8725      # hardcode_minus_L: Not really in the search PATH,
8726      # but as the default location of the library.
8727      hardcode_minus_L=yes
8728      export_dynamic_flag_spec='${wl}-E'
8729      ;;
8730
8731    hpux10*)
8732      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8733	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8734      else
8735	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8736      fi
8737      if test "$with_gnu_ld" = no; then
8738	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8739	hardcode_libdir_separator=:
8740
8741	hardcode_direct=yes
8742	export_dynamic_flag_spec='${wl}-E'
8743
8744	# hardcode_minus_L: Not really in the search PATH,
8745	# but as the default location of the library.
8746	hardcode_minus_L=yes
8747      fi
8748      ;;
8749
8750    hpux11*)
8751      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8752	case $host_cpu in
8753	hppa*64*)
8754	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8755	  ;;
8756	ia64*)
8757	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8758	  ;;
8759	*)
8760	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8761	  ;;
8762	esac
8763      else
8764	case $host_cpu in
8765	hppa*64*)
8766	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8767	  ;;
8768	ia64*)
8769	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8770	  ;;
8771	*)
8772	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8773	  ;;
8774	esac
8775      fi
8776      if test "$with_gnu_ld" = no; then
8777	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8778	hardcode_libdir_separator=:
8779
8780	case $host_cpu in
8781	hppa*64*|ia64*)
8782	  hardcode_libdir_flag_spec_ld='+b $libdir'
8783	  hardcode_direct=no
8784	  hardcode_shlibpath_var=no
8785	  ;;
8786	*)
8787	  hardcode_direct=yes
8788	  export_dynamic_flag_spec='${wl}-E'
8789
8790	  # hardcode_minus_L: Not really in the search PATH,
8791	  # but as the default location of the library.
8792	  hardcode_minus_L=yes
8793	  ;;
8794	esac
8795      fi
8796      ;;
8797
8798    irix5* | irix6* | nonstopux*)
8799      if test "$GCC" = yes; then
8800	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'
8801      else
8802	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'
8803	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8804      fi
8805      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8806      hardcode_libdir_separator=:
8807      link_all_deplibs=yes
8808      ;;
8809
8810    netbsd*)
8811      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8812	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8813      else
8814	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8815      fi
8816      hardcode_libdir_flag_spec='-R$libdir'
8817      hardcode_direct=yes
8818      hardcode_shlibpath_var=no
8819      ;;
8820
8821    newsos6)
8822      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8823      hardcode_direct=yes
8824      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8825      hardcode_libdir_separator=:
8826      hardcode_shlibpath_var=no
8827      ;;
8828
8829    openbsd*)
8830      if test -f /usr/libexec/ld.so; then
8831	hardcode_direct=yes
8832	hardcode_shlibpath_var=no
8833	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8834	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8835	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8836	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8837	  export_dynamic_flag_spec='${wl}-E'
8838	else
8839	  case $host_os in
8840	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8841	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8842	     hardcode_libdir_flag_spec='-R$libdir'
8843	     ;;
8844	   *)
8845	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8846	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8847	     ;;
8848	  esac
8849        fi
8850      else
8851	ld_shlibs=no
8852      fi
8853      ;;
8854
8855    os2*)
8856      hardcode_libdir_flag_spec='-L$libdir'
8857      hardcode_minus_L=yes
8858      allow_undefined_flag=unsupported
8859      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'
8860      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8861      ;;
8862
8863    osf3*)
8864      if test "$GCC" = yes; then
8865	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8866	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'
8867      else
8868	allow_undefined_flag=' -expect_unresolved \*'
8869	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'
8870      fi
8871      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8872      hardcode_libdir_separator=:
8873      ;;
8874
8875    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8876      if test "$GCC" = yes; then
8877	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8878	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'
8879	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8880      else
8881	allow_undefined_flag=' -expect_unresolved \*'
8882	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'
8883	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8884	$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'
8885
8886	# Both c and cxx compiler support -rpath directly
8887	hardcode_libdir_flag_spec='-rpath $libdir'
8888      fi
8889      hardcode_libdir_separator=:
8890      ;;
8891
8892    solaris*)
8893      no_undefined_flag=' -z text'
8894      if test "$GCC" = yes; then
8895	wlarc='${wl}'
8896	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8897	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8898	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8899      else
8900	wlarc=''
8901	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8902	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8903  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8904      fi
8905      hardcode_libdir_flag_spec='-R$libdir'
8906      hardcode_shlibpath_var=no
8907      case $host_os in
8908      solaris2.[0-5] | solaris2.[0-5].*) ;;
8909      *)
8910	# The compiler driver will combine and reorder linker options,
8911	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8912	# but is careful enough not to reorder.
8913 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8914	if test "$GCC" = yes; then
8915	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8916	else
8917	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8918	fi
8919	;;
8920      esac
8921      link_all_deplibs=yes
8922      ;;
8923
8924    sunos4*)
8925      if test "x$host_vendor" = xsequent; then
8926	# Use $CC to link under sequent, because it throws in some extra .o
8927	# files that make .init and .fini sections work.
8928	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8929      else
8930	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8931      fi
8932      hardcode_libdir_flag_spec='-L$libdir'
8933      hardcode_direct=yes
8934      hardcode_minus_L=yes
8935      hardcode_shlibpath_var=no
8936      ;;
8937
8938    sysv4)
8939      case $host_vendor in
8940	sni)
8941	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8942	  hardcode_direct=yes # is this really true???
8943	;;
8944	siemens)
8945	  ## LD is ld it makes a PLAMLIB
8946	  ## CC just makes a GrossModule.
8947	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8948	  reload_cmds='$CC -r -o $output$reload_objs'
8949	  hardcode_direct=no
8950        ;;
8951	motorola)
8952	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8953	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8954	;;
8955      esac
8956      runpath_var='LD_RUN_PATH'
8957      hardcode_shlibpath_var=no
8958      ;;
8959
8960    sysv4.3*)
8961      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962      hardcode_shlibpath_var=no
8963      export_dynamic_flag_spec='-Bexport'
8964      ;;
8965
8966    sysv4*MP*)
8967      if test -d /usr/nec; then
8968	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8969	hardcode_shlibpath_var=no
8970	runpath_var=LD_RUN_PATH
8971	hardcode_runpath_var=yes
8972	ld_shlibs=yes
8973      fi
8974      ;;
8975
8976    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8977      no_undefined_flag='${wl}-z,text'
8978      archive_cmds_need_lc=no
8979      hardcode_shlibpath_var=no
8980      runpath_var='LD_RUN_PATH'
8981
8982      if test "$GCC" = yes; then
8983	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8984	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8985      else
8986	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8987	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8988      fi
8989      ;;
8990
8991    sysv5* | sco3.2v5* | sco5v6*)
8992      # Note: We can NOT use -z defs as we might desire, because we do not
8993      # link with -lc, and that would cause any symbols used from libc to
8994      # always be unresolved, which means just about no library would
8995      # ever link correctly.  If we're not using GNU ld we use -z text
8996      # though, which does catch some bad symbols but isn't as heavy-handed
8997      # as -z defs.
8998      no_undefined_flag='${wl}-z,text'
8999      allow_undefined_flag='${wl}-z,nodefs'
9000      archive_cmds_need_lc=no
9001      hardcode_shlibpath_var=no
9002      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9003      hardcode_libdir_separator=':'
9004      link_all_deplibs=yes
9005      export_dynamic_flag_spec='${wl}-Bexport'
9006      runpath_var='LD_RUN_PATH'
9007
9008      if test "$GCC" = yes; then
9009	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9010	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9011      else
9012	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9013	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9014      fi
9015      ;;
9016
9017    uts4*)
9018      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9019      hardcode_libdir_flag_spec='-L$libdir'
9020      hardcode_shlibpath_var=no
9021      ;;
9022
9023    *)
9024      ld_shlibs=no
9025      ;;
9026    esac
9027  fi
9028
9029{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9030$as_echo "$ld_shlibs" >&6; }
9031test "$ld_shlibs" = no && can_build_shared=no
9032
9033#
9034# Do we need to explicitly link libc?
9035#
9036case "x$archive_cmds_need_lc" in
9037x|xyes)
9038  # Assume -lc should be added
9039  archive_cmds_need_lc=yes
9040
9041  if test "$enable_shared" = yes && test "$GCC" = yes; then
9042    case $archive_cmds in
9043    *'~'*)
9044      # FIXME: we may have to deal with multi-command sequences.
9045      ;;
9046    '$CC '*)
9047      # Test whether the compiler implicitly links with -lc since on some
9048      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9049      # to ld, don't add -lc before -lgcc.
9050      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9051$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9052      $rm conftest*
9053      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9054
9055      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9056  (eval $ac_compile) 2>&5
9057  ac_status=$?
9058  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059  (exit $ac_status); } 2>conftest.err; then
9060        soname=conftest
9061        lib=conftest
9062        libobjs=conftest.$ac_objext
9063        deplibs=
9064        wl=$lt_prog_compiler_wl
9065	pic_flag=$lt_prog_compiler_pic
9066        compiler_flags=-v
9067        linker_flags=-v
9068        verstring=
9069        output_objdir=.
9070        libname=conftest
9071        lt_save_allow_undefined_flag=$allow_undefined_flag
9072        allow_undefined_flag=
9073        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9074  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9075  ac_status=$?
9076  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077  (exit $ac_status); }
9078        then
9079	  archive_cmds_need_lc=no
9080        else
9081	  archive_cmds_need_lc=yes
9082        fi
9083        allow_undefined_flag=$lt_save_allow_undefined_flag
9084      else
9085        cat conftest.err 1>&5
9086      fi
9087      $rm conftest*
9088      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9089$as_echo "$archive_cmds_need_lc" >&6; }
9090      ;;
9091    esac
9092  fi
9093  ;;
9094esac
9095
9096{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9097$as_echo_n "checking dynamic linker characteristics... " >&6; }
9098library_names_spec=
9099libname_spec='lib$name'
9100soname_spec=
9101shrext_cmds=".so"
9102postinstall_cmds=
9103postuninstall_cmds=
9104finish_cmds=
9105finish_eval=
9106shlibpath_var=
9107shlibpath_overrides_runpath=unknown
9108version_type=none
9109dynamic_linker="$host_os ld.so"
9110sys_lib_dlsearch_path_spec="/lib /usr/lib"
9111
9112if test "$GCC" = yes; then
9113  case $host_os in
9114    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9115    *) lt_awk_arg="/^libraries:/" ;;
9116  esac
9117  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9118  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9119    # if the path contains ";" then we assume it to be the separator
9120    # otherwise default to the standard path separator (i.e. ":") - it is
9121    # assumed that no part of a normal pathname contains ";" but that should
9122    # okay in the real world where ";" in dirpaths is itself problematic.
9123    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9124  else
9125    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9126  fi
9127  # Ok, now we have the path, separated by spaces, we can step through it
9128  # and add multilib dir if necessary.
9129  lt_tmp_lt_search_path_spec=
9130  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9131  for lt_sys_path in $lt_search_path_spec; do
9132    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9133      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9134    else
9135      test -d "$lt_sys_path" && \
9136	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9137    fi
9138  done
9139  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9140BEGIN {RS=" "; FS="/|\n";} {
9141  lt_foo="";
9142  lt_count=0;
9143  for (lt_i = NF; lt_i > 0; lt_i--) {
9144    if ($lt_i != "" && $lt_i != ".") {
9145      if ($lt_i == "..") {
9146        lt_count++;
9147      } else {
9148        if (lt_count == 0) {
9149          lt_foo="/" $lt_i lt_foo;
9150        } else {
9151          lt_count--;
9152        }
9153      }
9154    }
9155  }
9156  if (lt_foo != "") { lt_freq[lt_foo]++; }
9157  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9158}'`
9159  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9160else
9161  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9162fi
9163need_lib_prefix=unknown
9164hardcode_into_libs=no
9165
9166# when you set need_version to no, make sure it does not cause -set_version
9167# flags to be left without arguments
9168need_version=unknown
9169
9170case $host_os in
9171aix3*)
9172  version_type=linux
9173  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9174  shlibpath_var=LIBPATH
9175
9176  # AIX 3 has no versioning support, so we append a major version to the name.
9177  soname_spec='${libname}${release}${shared_ext}$major'
9178  ;;
9179
9180aix[4-9]*)
9181  version_type=linux
9182  need_lib_prefix=no
9183  need_version=no
9184  hardcode_into_libs=yes
9185  if test "$host_cpu" = ia64; then
9186    # AIX 5 supports IA64
9187    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9188    shlibpath_var=LD_LIBRARY_PATH
9189  else
9190    # With GCC up to 2.95.x, collect2 would create an import file
9191    # for dependence libraries.  The import file would start with
9192    # the line `#! .'.  This would cause the generated library to
9193    # depend on `.', always an invalid library.  This was fixed in
9194    # development snapshots of GCC prior to 3.0.
9195    case $host_os in
9196      aix4 | aix4.[01] | aix4.[01].*)
9197      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9198	   echo ' yes '
9199	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9200	:
9201      else
9202	can_build_shared=no
9203      fi
9204      ;;
9205    esac
9206    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9207    # soname into executable. Probably we can add versioning support to
9208    # collect2, so additional links can be useful in future.
9209    if test "$aix_use_runtimelinking" = yes; then
9210      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9211      # instead of lib<name>.a to let people know that these are not
9212      # typical AIX shared libraries.
9213      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9214    else
9215      # We preserve .a as extension for shared libraries through AIX4.2
9216      # and later when we are not doing run time linking.
9217      library_names_spec='${libname}${release}.a $libname.a'
9218      soname_spec='${libname}${release}${shared_ext}$major'
9219    fi
9220    shlibpath_var=LIBPATH
9221  fi
9222  ;;
9223
9224amigaos*)
9225  library_names_spec='$libname.ixlibrary $libname.a'
9226  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9227  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'
9228  ;;
9229
9230beos*)
9231  library_names_spec='${libname}${shared_ext}'
9232  dynamic_linker="$host_os ld.so"
9233  shlibpath_var=LIBRARY_PATH
9234  ;;
9235
9236bsdi[45]*)
9237  version_type=linux
9238  need_version=no
9239  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240  soname_spec='${libname}${release}${shared_ext}$major'
9241  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9242  shlibpath_var=LD_LIBRARY_PATH
9243  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9244  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9245  # the default ld.so.conf also contains /usr/contrib/lib and
9246  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9247  # libtool to hard-code these into programs
9248  ;;
9249
9250cygwin* | mingw* | pw32*)
9251  version_type=windows
9252  shrext_cmds=".dll"
9253  need_version=no
9254  need_lib_prefix=no
9255
9256  case $GCC,$host_os in
9257  yes,cygwin* | yes,mingw* | yes,pw32*)
9258    library_names_spec='$libname.dll.a'
9259    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9260    postinstall_cmds='base_file=`basename \${file}`~
9261      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9262      dldir=$destdir/`dirname \$dlpath`~
9263      test -d \$dldir || mkdir -p \$dldir~
9264      $install_prog $dir/$dlname \$dldir/$dlname~
9265      chmod a+x \$dldir/$dlname'
9266    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9267      dlpath=$dir/\$dldll~
9268       $rm \$dlpath'
9269    shlibpath_overrides_runpath=yes
9270
9271    case $host_os in
9272    cygwin*)
9273      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9274      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9275      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9276      ;;
9277    mingw*)
9278      # MinGW DLLs use traditional 'lib' prefix
9279      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9280      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9281      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9282        # It is most probably a Windows format PATH printed by
9283        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9284        # path with ; separators, and with drive letters. We can handle the
9285        # drive letters (cygwin fileutils understands them), so leave them,
9286        # especially as we might pass files found there to a mingw objdump,
9287        # which wouldn't understand a cygwinified path. Ahh.
9288        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9289      else
9290        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9291      fi
9292      ;;
9293    pw32*)
9294      # pw32 DLLs use 'pw' prefix rather than 'lib'
9295      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9296      ;;
9297    esac
9298    ;;
9299
9300  *)
9301    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9302    ;;
9303  esac
9304  dynamic_linker='Win32 ld.exe'
9305  # FIXME: first we should search . and the directory the executable is in
9306  shlibpath_var=PATH
9307  ;;
9308
9309darwin* | rhapsody*)
9310  dynamic_linker="$host_os dyld"
9311  version_type=darwin
9312  need_lib_prefix=no
9313  need_version=no
9314  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9315  soname_spec='${libname}${release}${major}$shared_ext'
9316  shlibpath_overrides_runpath=yes
9317  shlibpath_var=DYLD_LIBRARY_PATH
9318  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9319
9320  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9321  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9322  ;;
9323
9324dgux*)
9325  version_type=linux
9326  need_lib_prefix=no
9327  need_version=no
9328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9329  soname_spec='${libname}${release}${shared_ext}$major'
9330  shlibpath_var=LD_LIBRARY_PATH
9331  ;;
9332
9333freebsd1*)
9334  dynamic_linker=no
9335  ;;
9336
9337freebsd* | dragonfly*)
9338  # DragonFly does not have aout.  When/if they implement a new
9339  # versioning mechanism, adjust this.
9340  if test -x /usr/bin/objformat; then
9341    objformat=`/usr/bin/objformat`
9342  else
9343    case $host_os in
9344    freebsd[123]*) objformat=aout ;;
9345    *) objformat=elf ;;
9346    esac
9347  fi
9348  version_type=freebsd-$objformat
9349  case $version_type in
9350    freebsd-elf*)
9351      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9352      need_version=no
9353      need_lib_prefix=no
9354      ;;
9355    freebsd-*)
9356      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9357      need_version=yes
9358      ;;
9359  esac
9360  shlibpath_var=LD_LIBRARY_PATH
9361  case $host_os in
9362  freebsd2*)
9363    shlibpath_overrides_runpath=yes
9364    ;;
9365  freebsd3.[01]* | freebsdelf3.[01]*)
9366    shlibpath_overrides_runpath=yes
9367    hardcode_into_libs=yes
9368    ;;
9369  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9370  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9371    shlibpath_overrides_runpath=no
9372    hardcode_into_libs=yes
9373    ;;
9374  *) # from 4.6 on, and DragonFly
9375    shlibpath_overrides_runpath=yes
9376    hardcode_into_libs=yes
9377    ;;
9378  esac
9379  ;;
9380
9381gnu*)
9382  version_type=linux
9383  need_lib_prefix=no
9384  need_version=no
9385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9386  soname_spec='${libname}${release}${shared_ext}$major'
9387  shlibpath_var=LD_LIBRARY_PATH
9388  hardcode_into_libs=yes
9389  ;;
9390
9391hpux9* | hpux10* | hpux11*)
9392  # Give a soname corresponding to the major version so that dld.sl refuses to
9393  # link against other versions.
9394  version_type=sunos
9395  need_lib_prefix=no
9396  need_version=no
9397  case $host_cpu in
9398  ia64*)
9399    shrext_cmds='.so'
9400    hardcode_into_libs=yes
9401    dynamic_linker="$host_os dld.so"
9402    shlibpath_var=LD_LIBRARY_PATH
9403    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9404    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405    soname_spec='${libname}${release}${shared_ext}$major'
9406    if test "X$HPUX_IA64_MODE" = X32; then
9407      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9408    else
9409      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9410    fi
9411    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9412    ;;
9413   hppa*64*)
9414     shrext_cmds='.sl'
9415     hardcode_into_libs=yes
9416     dynamic_linker="$host_os dld.sl"
9417     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9418     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9419     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9420     soname_spec='${libname}${release}${shared_ext}$major'
9421     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9422     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9423     ;;
9424   *)
9425    shrext_cmds='.sl'
9426    dynamic_linker="$host_os dld.sl"
9427    shlibpath_var=SHLIB_PATH
9428    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9429    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9430    soname_spec='${libname}${release}${shared_ext}$major'
9431    ;;
9432  esac
9433  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9434  postinstall_cmds='chmod 555 $lib'
9435  ;;
9436
9437interix[3-9]*)
9438  version_type=linux
9439  need_lib_prefix=no
9440  need_version=no
9441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9442  soname_spec='${libname}${release}${shared_ext}$major'
9443  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9444  shlibpath_var=LD_LIBRARY_PATH
9445  shlibpath_overrides_runpath=no
9446  hardcode_into_libs=yes
9447  ;;
9448
9449irix5* | irix6* | nonstopux*)
9450  case $host_os in
9451    nonstopux*) version_type=nonstopux ;;
9452    *)
9453	if test "$lt_cv_prog_gnu_ld" = yes; then
9454		version_type=linux
9455	else
9456		version_type=irix
9457	fi ;;
9458  esac
9459  need_lib_prefix=no
9460  need_version=no
9461  soname_spec='${libname}${release}${shared_ext}$major'
9462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9463  case $host_os in
9464  irix5* | nonstopux*)
9465    libsuff= shlibsuff=
9466    ;;
9467  *)
9468    case $LD in # libtool.m4 will add one of these switches to LD
9469    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9470      libsuff= shlibsuff= libmagic=32-bit;;
9471    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9472      libsuff=32 shlibsuff=N32 libmagic=N32;;
9473    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9474      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9475    *) libsuff= shlibsuff= libmagic=never-match;;
9476    esac
9477    ;;
9478  esac
9479  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9480  shlibpath_overrides_runpath=no
9481  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9482  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9483  hardcode_into_libs=yes
9484  ;;
9485
9486# No shared lib support for Linux oldld, aout, or coff.
9487linux*oldld* | linux*aout* | linux*coff*)
9488  dynamic_linker=no
9489  ;;
9490
9491# This must be Linux ELF.
9492linux* | k*bsd*-gnu)
9493  version_type=linux
9494  need_lib_prefix=no
9495  need_version=no
9496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9497  soname_spec='${libname}${release}${shared_ext}$major'
9498  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9499  shlibpath_var=LD_LIBRARY_PATH
9500  shlibpath_overrides_runpath=no
9501  # This implies no fast_install, which is unacceptable.
9502  # Some rework will be needed to allow for fast_install
9503  # before this can be enabled.
9504  hardcode_into_libs=yes
9505  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9506  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9507
9508  # Append ld.so.conf contents to the search path
9509  if test -f /etc/ld.so.conf; then
9510    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' ' '`
9511    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9512  fi
9513
9514  # We used to test for /lib/ld.so.1 and disable shared libraries on
9515  # powerpc, because MkLinux only supported shared libraries with the
9516  # GNU dynamic linker.  Since this was broken with cross compilers,
9517  # most powerpc-linux boxes support dynamic linking these days and
9518  # people can always --disable-shared, the test was removed, and we
9519  # assume the GNU/Linux dynamic linker is in use.
9520  dynamic_linker='GNU/Linux ld.so'
9521  ;;
9522
9523netbsd*)
9524  version_type=sunos
9525  need_lib_prefix=no
9526  need_version=no
9527  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9528    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9529    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9530    dynamic_linker='NetBSD (a.out) ld.so'
9531  else
9532    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9533    soname_spec='${libname}${release}${shared_ext}$major'
9534    dynamic_linker='NetBSD ld.elf_so'
9535  fi
9536  shlibpath_var=LD_LIBRARY_PATH
9537  shlibpath_overrides_runpath=yes
9538  hardcode_into_libs=yes
9539  ;;
9540
9541newsos6)
9542  version_type=linux
9543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544  shlibpath_var=LD_LIBRARY_PATH
9545  shlibpath_overrides_runpath=yes
9546  ;;
9547
9548nto-qnx*)
9549  version_type=linux
9550  need_lib_prefix=no
9551  need_version=no
9552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553  soname_spec='${libname}${release}${shared_ext}$major'
9554  shlibpath_var=LD_LIBRARY_PATH
9555  shlibpath_overrides_runpath=yes
9556  ;;
9557
9558openbsd*)
9559  version_type=sunos
9560  sys_lib_dlsearch_path_spec="/usr/lib"
9561  need_lib_prefix=no
9562  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9563  case $host_os in
9564    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9565    *)                         need_version=no  ;;
9566  esac
9567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9568  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9569  shlibpath_var=LD_LIBRARY_PATH
9570  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9571    case $host_os in
9572      openbsd2.[89] | openbsd2.[89].*)
9573	shlibpath_overrides_runpath=no
9574	;;
9575      *)
9576	shlibpath_overrides_runpath=yes
9577	;;
9578      esac
9579  else
9580    shlibpath_overrides_runpath=yes
9581  fi
9582  ;;
9583
9584os2*)
9585  libname_spec='$name'
9586  shrext_cmds=".dll"
9587  need_lib_prefix=no
9588  library_names_spec='$libname${shared_ext} $libname.a'
9589  dynamic_linker='OS/2 ld.exe'
9590  shlibpath_var=LIBPATH
9591  ;;
9592
9593osf3* | osf4* | osf5*)
9594  version_type=osf
9595  need_lib_prefix=no
9596  need_version=no
9597  soname_spec='${libname}${release}${shared_ext}$major'
9598  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599  shlibpath_var=LD_LIBRARY_PATH
9600  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9601  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9602  ;;
9603
9604rdos*)
9605  dynamic_linker=no
9606  ;;
9607
9608solaris*)
9609  version_type=linux
9610  need_lib_prefix=no
9611  need_version=no
9612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9613  soname_spec='${libname}${release}${shared_ext}$major'
9614  shlibpath_var=LD_LIBRARY_PATH
9615  shlibpath_overrides_runpath=yes
9616  hardcode_into_libs=yes
9617  # ldd complains unless libraries are executable
9618  postinstall_cmds='chmod +x $lib'
9619  ;;
9620
9621sunos4*)
9622  version_type=sunos
9623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9624  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9625  shlibpath_var=LD_LIBRARY_PATH
9626  shlibpath_overrides_runpath=yes
9627  if test "$with_gnu_ld" = yes; then
9628    need_lib_prefix=no
9629  fi
9630  need_version=yes
9631  ;;
9632
9633sysv4 | sysv4.3*)
9634  version_type=linux
9635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9636  soname_spec='${libname}${release}${shared_ext}$major'
9637  shlibpath_var=LD_LIBRARY_PATH
9638  case $host_vendor in
9639    sni)
9640      shlibpath_overrides_runpath=no
9641      need_lib_prefix=no
9642      export_dynamic_flag_spec='${wl}-Blargedynsym'
9643      runpath_var=LD_RUN_PATH
9644      ;;
9645    siemens)
9646      need_lib_prefix=no
9647      ;;
9648    motorola)
9649      need_lib_prefix=no
9650      need_version=no
9651      shlibpath_overrides_runpath=no
9652      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9653      ;;
9654  esac
9655  ;;
9656
9657sysv4*MP*)
9658  if test -d /usr/nec ;then
9659    version_type=linux
9660    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9661    soname_spec='$libname${shared_ext}.$major'
9662    shlibpath_var=LD_LIBRARY_PATH
9663  fi
9664  ;;
9665
9666sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9667  version_type=freebsd-elf
9668  need_lib_prefix=no
9669  need_version=no
9670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9671  soname_spec='${libname}${release}${shared_ext}$major'
9672  shlibpath_var=LD_LIBRARY_PATH
9673  hardcode_into_libs=yes
9674  if test "$with_gnu_ld" = yes; then
9675    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9676    shlibpath_overrides_runpath=no
9677  else
9678    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9679    shlibpath_overrides_runpath=yes
9680    case $host_os in
9681      sco3.2v5*)
9682        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9683	;;
9684    esac
9685  fi
9686  sys_lib_dlsearch_path_spec='/usr/lib'
9687  ;;
9688
9689uts4*)
9690  version_type=linux
9691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9692  soname_spec='${libname}${release}${shared_ext}$major'
9693  shlibpath_var=LD_LIBRARY_PATH
9694  ;;
9695
9696*)
9697  dynamic_linker=no
9698  ;;
9699esac
9700{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9701$as_echo "$dynamic_linker" >&6; }
9702test "$dynamic_linker" = no && can_build_shared=no
9703
9704if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9705  $as_echo_n "(cached) " >&6
9706else
9707  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9708fi
9709
9710sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9711if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9712  $as_echo_n "(cached) " >&6
9713else
9714  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9715fi
9716
9717sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9718
9719variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9720if test "$GCC" = yes; then
9721  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9722fi
9723
9724{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9725$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9726hardcode_action=
9727if test -n "$hardcode_libdir_flag_spec" || \
9728   test -n "$runpath_var" || \
9729   test "X$hardcode_automatic" = "Xyes" ; then
9730
9731  # We can hardcode non-existant directories.
9732  if test "$hardcode_direct" != no &&
9733     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9734     # have to relink, otherwise we might link with an installed library
9735     # when we should be linking with a yet-to-be-installed one
9736     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9737     test "$hardcode_minus_L" != no; then
9738    # Linking always hardcodes the temporary library directory.
9739    hardcode_action=relink
9740  else
9741    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9742    hardcode_action=immediate
9743  fi
9744else
9745  # We cannot hardcode anything, or else we can only hardcode existing
9746  # directories.
9747  hardcode_action=unsupported
9748fi
9749{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9750$as_echo "$hardcode_action" >&6; }
9751
9752if test "$hardcode_action" = relink; then
9753  # Fast installation is not supported
9754  enable_fast_install=no
9755elif test "$shlibpath_overrides_runpath" = yes ||
9756     test "$enable_shared" = no; then
9757  # Fast installation is not necessary
9758  enable_fast_install=needless
9759fi
9760
9761striplib=
9762old_striplib=
9763{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9764$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9765if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9766  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9767  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9768  { $as_echo "$as_me:$LINENO: result: yes" >&5
9769$as_echo "yes" >&6; }
9770else
9771# FIXME - insert some real tests, host_os isn't really good enough
9772  case $host_os in
9773   darwin*)
9774       if test -n "$STRIP" ; then
9775         striplib="$STRIP -x"
9776         old_striplib="$STRIP -S"
9777         { $as_echo "$as_me:$LINENO: result: yes" >&5
9778$as_echo "yes" >&6; }
9779       else
9780  { $as_echo "$as_me:$LINENO: result: no" >&5
9781$as_echo "no" >&6; }
9782fi
9783       ;;
9784   *)
9785  { $as_echo "$as_me:$LINENO: result: no" >&5
9786$as_echo "no" >&6; }
9787    ;;
9788  esac
9789fi
9790
9791if test "x$enable_dlopen" != xyes; then
9792  enable_dlopen=unknown
9793  enable_dlopen_self=unknown
9794  enable_dlopen_self_static=unknown
9795else
9796  lt_cv_dlopen=no
9797  lt_cv_dlopen_libs=
9798
9799  case $host_os in
9800  beos*)
9801    lt_cv_dlopen="load_add_on"
9802    lt_cv_dlopen_libs=
9803    lt_cv_dlopen_self=yes
9804    ;;
9805
9806  mingw* | pw32*)
9807    lt_cv_dlopen="LoadLibrary"
9808    lt_cv_dlopen_libs=
9809   ;;
9810
9811  cygwin*)
9812    lt_cv_dlopen="dlopen"
9813    lt_cv_dlopen_libs=
9814   ;;
9815
9816  darwin*)
9817  # if libdl is installed we need to link against it
9818    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9819$as_echo_n "checking for dlopen in -ldl... " >&6; }
9820if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9821  $as_echo_n "(cached) " >&6
9822else
9823  ac_check_lib_save_LIBS=$LIBS
9824LIBS="-ldl  $LIBS"
9825cat >conftest.$ac_ext <<_ACEOF
9826/* confdefs.h.  */
9827_ACEOF
9828cat confdefs.h >>conftest.$ac_ext
9829cat >>conftest.$ac_ext <<_ACEOF
9830/* end confdefs.h.  */
9831
9832/* Override any GCC internal prototype to avoid an error.
9833   Use char because int might match the return type of a GCC
9834   builtin and then its argument prototype would still apply.  */
9835#ifdef __cplusplus
9836extern "C"
9837#endif
9838char dlopen ();
9839int
9840main ()
9841{
9842return dlopen ();
9843  ;
9844  return 0;
9845}
9846_ACEOF
9847rm -f conftest.$ac_objext conftest$ac_exeext
9848if { (ac_try="$ac_link"
9849case "(($ac_try" in
9850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851  *) ac_try_echo=$ac_try;;
9852esac
9853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9854$as_echo "$ac_try_echo") >&5
9855  (eval "$ac_link") 2>conftest.er1
9856  ac_status=$?
9857  grep -v '^ *+' conftest.er1 >conftest.err
9858  rm -f conftest.er1
9859  cat conftest.err >&5
9860  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861  (exit $ac_status); } && {
9862	 test -z "$ac_c_werror_flag" ||
9863	 test ! -s conftest.err
9864       } && test -s conftest$ac_exeext && {
9865	 test "$cross_compiling" = yes ||
9866	 $as_test_x conftest$ac_exeext
9867       }; then
9868  ac_cv_lib_dl_dlopen=yes
9869else
9870  $as_echo "$as_me: failed program was:" >&5
9871sed 's/^/| /' conftest.$ac_ext >&5
9872
9873	ac_cv_lib_dl_dlopen=no
9874fi
9875
9876rm -rf conftest.dSYM
9877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9878      conftest$ac_exeext conftest.$ac_ext
9879LIBS=$ac_check_lib_save_LIBS
9880fi
9881{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9882$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9883if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9884  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9885else
9886
9887    lt_cv_dlopen="dyld"
9888    lt_cv_dlopen_libs=
9889    lt_cv_dlopen_self=yes
9890
9891fi
9892
9893   ;;
9894
9895  *)
9896    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9897$as_echo_n "checking for shl_load... " >&6; }
9898if test "${ac_cv_func_shl_load+set}" = set; then
9899  $as_echo_n "(cached) " >&6
9900else
9901  cat >conftest.$ac_ext <<_ACEOF
9902/* confdefs.h.  */
9903_ACEOF
9904cat confdefs.h >>conftest.$ac_ext
9905cat >>conftest.$ac_ext <<_ACEOF
9906/* end confdefs.h.  */
9907/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9908   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9909#define shl_load innocuous_shl_load
9910
9911/* System header to define __stub macros and hopefully few prototypes,
9912    which can conflict with char shl_load (); below.
9913    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9914    <limits.h> exists even on freestanding compilers.  */
9915
9916#ifdef __STDC__
9917# include <limits.h>
9918#else
9919# include <assert.h>
9920#endif
9921
9922#undef shl_load
9923
9924/* Override any GCC internal prototype to avoid an error.
9925   Use char because int might match the return type of a GCC
9926   builtin and then its argument prototype would still apply.  */
9927#ifdef __cplusplus
9928extern "C"
9929#endif
9930char shl_load ();
9931/* The GNU C library defines this for functions which it implements
9932    to always fail with ENOSYS.  Some functions are actually named
9933    something starting with __ and the normal name is an alias.  */
9934#if defined __stub_shl_load || defined __stub___shl_load
9935choke me
9936#endif
9937
9938int
9939main ()
9940{
9941return shl_load ();
9942  ;
9943  return 0;
9944}
9945_ACEOF
9946rm -f conftest.$ac_objext conftest$ac_exeext
9947if { (ac_try="$ac_link"
9948case "(($ac_try" in
9949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950  *) ac_try_echo=$ac_try;;
9951esac
9952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9953$as_echo "$ac_try_echo") >&5
9954  (eval "$ac_link") 2>conftest.er1
9955  ac_status=$?
9956  grep -v '^ *+' conftest.er1 >conftest.err
9957  rm -f conftest.er1
9958  cat conftest.err >&5
9959  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960  (exit $ac_status); } && {
9961	 test -z "$ac_c_werror_flag" ||
9962	 test ! -s conftest.err
9963       } && test -s conftest$ac_exeext && {
9964	 test "$cross_compiling" = yes ||
9965	 $as_test_x conftest$ac_exeext
9966       }; then
9967  ac_cv_func_shl_load=yes
9968else
9969  $as_echo "$as_me: failed program was:" >&5
9970sed 's/^/| /' conftest.$ac_ext >&5
9971
9972	ac_cv_func_shl_load=no
9973fi
9974
9975rm -rf conftest.dSYM
9976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9977      conftest$ac_exeext conftest.$ac_ext
9978fi
9979{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9980$as_echo "$ac_cv_func_shl_load" >&6; }
9981if test "x$ac_cv_func_shl_load" = x""yes; then
9982  lt_cv_dlopen="shl_load"
9983else
9984  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9985$as_echo_n "checking for shl_load in -ldld... " >&6; }
9986if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9987  $as_echo_n "(cached) " >&6
9988else
9989  ac_check_lib_save_LIBS=$LIBS
9990LIBS="-ldld  $LIBS"
9991cat >conftest.$ac_ext <<_ACEOF
9992/* confdefs.h.  */
9993_ACEOF
9994cat confdefs.h >>conftest.$ac_ext
9995cat >>conftest.$ac_ext <<_ACEOF
9996/* end confdefs.h.  */
9997
9998/* Override any GCC internal prototype to avoid an error.
9999   Use char because int might match the return type of a GCC
10000   builtin and then its argument prototype would still apply.  */
10001#ifdef __cplusplus
10002extern "C"
10003#endif
10004char shl_load ();
10005int
10006main ()
10007{
10008return shl_load ();
10009  ;
10010  return 0;
10011}
10012_ACEOF
10013rm -f conftest.$ac_objext conftest$ac_exeext
10014if { (ac_try="$ac_link"
10015case "(($ac_try" in
10016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017  *) ac_try_echo=$ac_try;;
10018esac
10019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10020$as_echo "$ac_try_echo") >&5
10021  (eval "$ac_link") 2>conftest.er1
10022  ac_status=$?
10023  grep -v '^ *+' conftest.er1 >conftest.err
10024  rm -f conftest.er1
10025  cat conftest.err >&5
10026  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027  (exit $ac_status); } && {
10028	 test -z "$ac_c_werror_flag" ||
10029	 test ! -s conftest.err
10030       } && test -s conftest$ac_exeext && {
10031	 test "$cross_compiling" = yes ||
10032	 $as_test_x conftest$ac_exeext
10033       }; then
10034  ac_cv_lib_dld_shl_load=yes
10035else
10036  $as_echo "$as_me: failed program was:" >&5
10037sed 's/^/| /' conftest.$ac_ext >&5
10038
10039	ac_cv_lib_dld_shl_load=no
10040fi
10041
10042rm -rf conftest.dSYM
10043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10044      conftest$ac_exeext conftest.$ac_ext
10045LIBS=$ac_check_lib_save_LIBS
10046fi
10047{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10048$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10049if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10050  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10051else
10052  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10053$as_echo_n "checking for dlopen... " >&6; }
10054if test "${ac_cv_func_dlopen+set}" = set; then
10055  $as_echo_n "(cached) " >&6
10056else
10057  cat >conftest.$ac_ext <<_ACEOF
10058/* confdefs.h.  */
10059_ACEOF
10060cat confdefs.h >>conftest.$ac_ext
10061cat >>conftest.$ac_ext <<_ACEOF
10062/* end confdefs.h.  */
10063/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10064   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10065#define dlopen innocuous_dlopen
10066
10067/* System header to define __stub macros and hopefully few prototypes,
10068    which can conflict with char dlopen (); below.
10069    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10070    <limits.h> exists even on freestanding compilers.  */
10071
10072#ifdef __STDC__
10073# include <limits.h>
10074#else
10075# include <assert.h>
10076#endif
10077
10078#undef dlopen
10079
10080/* Override any GCC internal prototype to avoid an error.
10081   Use char because int might match the return type of a GCC
10082   builtin and then its argument prototype would still apply.  */
10083#ifdef __cplusplus
10084extern "C"
10085#endif
10086char dlopen ();
10087/* The GNU C library defines this for functions which it implements
10088    to always fail with ENOSYS.  Some functions are actually named
10089    something starting with __ and the normal name is an alias.  */
10090#if defined __stub_dlopen || defined __stub___dlopen
10091choke me
10092#endif
10093
10094int
10095main ()
10096{
10097return dlopen ();
10098  ;
10099  return 0;
10100}
10101_ACEOF
10102rm -f conftest.$ac_objext conftest$ac_exeext
10103if { (ac_try="$ac_link"
10104case "(($ac_try" in
10105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106  *) ac_try_echo=$ac_try;;
10107esac
10108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10109$as_echo "$ac_try_echo") >&5
10110  (eval "$ac_link") 2>conftest.er1
10111  ac_status=$?
10112  grep -v '^ *+' conftest.er1 >conftest.err
10113  rm -f conftest.er1
10114  cat conftest.err >&5
10115  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116  (exit $ac_status); } && {
10117	 test -z "$ac_c_werror_flag" ||
10118	 test ! -s conftest.err
10119       } && test -s conftest$ac_exeext && {
10120	 test "$cross_compiling" = yes ||
10121	 $as_test_x conftest$ac_exeext
10122       }; then
10123  ac_cv_func_dlopen=yes
10124else
10125  $as_echo "$as_me: failed program was:" >&5
10126sed 's/^/| /' conftest.$ac_ext >&5
10127
10128	ac_cv_func_dlopen=no
10129fi
10130
10131rm -rf conftest.dSYM
10132rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10133      conftest$ac_exeext conftest.$ac_ext
10134fi
10135{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10136$as_echo "$ac_cv_func_dlopen" >&6; }
10137if test "x$ac_cv_func_dlopen" = x""yes; then
10138  lt_cv_dlopen="dlopen"
10139else
10140  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10141$as_echo_n "checking for dlopen in -ldl... " >&6; }
10142if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10143  $as_echo_n "(cached) " >&6
10144else
10145  ac_check_lib_save_LIBS=$LIBS
10146LIBS="-ldl  $LIBS"
10147cat >conftest.$ac_ext <<_ACEOF
10148/* confdefs.h.  */
10149_ACEOF
10150cat confdefs.h >>conftest.$ac_ext
10151cat >>conftest.$ac_ext <<_ACEOF
10152/* end confdefs.h.  */
10153
10154/* Override any GCC internal prototype to avoid an error.
10155   Use char because int might match the return type of a GCC
10156   builtin and then its argument prototype would still apply.  */
10157#ifdef __cplusplus
10158extern "C"
10159#endif
10160char dlopen ();
10161int
10162main ()
10163{
10164return dlopen ();
10165  ;
10166  return 0;
10167}
10168_ACEOF
10169rm -f conftest.$ac_objext conftest$ac_exeext
10170if { (ac_try="$ac_link"
10171case "(($ac_try" in
10172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173  *) ac_try_echo=$ac_try;;
10174esac
10175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10176$as_echo "$ac_try_echo") >&5
10177  (eval "$ac_link") 2>conftest.er1
10178  ac_status=$?
10179  grep -v '^ *+' conftest.er1 >conftest.err
10180  rm -f conftest.er1
10181  cat conftest.err >&5
10182  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183  (exit $ac_status); } && {
10184	 test -z "$ac_c_werror_flag" ||
10185	 test ! -s conftest.err
10186       } && test -s conftest$ac_exeext && {
10187	 test "$cross_compiling" = yes ||
10188	 $as_test_x conftest$ac_exeext
10189       }; then
10190  ac_cv_lib_dl_dlopen=yes
10191else
10192  $as_echo "$as_me: failed program was:" >&5
10193sed 's/^/| /' conftest.$ac_ext >&5
10194
10195	ac_cv_lib_dl_dlopen=no
10196fi
10197
10198rm -rf conftest.dSYM
10199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10200      conftest$ac_exeext conftest.$ac_ext
10201LIBS=$ac_check_lib_save_LIBS
10202fi
10203{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10204$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10205if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10206  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10207else
10208  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10209$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10210if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10211  $as_echo_n "(cached) " >&6
10212else
10213  ac_check_lib_save_LIBS=$LIBS
10214LIBS="-lsvld  $LIBS"
10215cat >conftest.$ac_ext <<_ACEOF
10216/* confdefs.h.  */
10217_ACEOF
10218cat confdefs.h >>conftest.$ac_ext
10219cat >>conftest.$ac_ext <<_ACEOF
10220/* end confdefs.h.  */
10221
10222/* Override any GCC internal prototype to avoid an error.
10223   Use char because int might match the return type of a GCC
10224   builtin and then its argument prototype would still apply.  */
10225#ifdef __cplusplus
10226extern "C"
10227#endif
10228char dlopen ();
10229int
10230main ()
10231{
10232return dlopen ();
10233  ;
10234  return 0;
10235}
10236_ACEOF
10237rm -f conftest.$ac_objext conftest$ac_exeext
10238if { (ac_try="$ac_link"
10239case "(($ac_try" in
10240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241  *) ac_try_echo=$ac_try;;
10242esac
10243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10244$as_echo "$ac_try_echo") >&5
10245  (eval "$ac_link") 2>conftest.er1
10246  ac_status=$?
10247  grep -v '^ *+' conftest.er1 >conftest.err
10248  rm -f conftest.er1
10249  cat conftest.err >&5
10250  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251  (exit $ac_status); } && {
10252	 test -z "$ac_c_werror_flag" ||
10253	 test ! -s conftest.err
10254       } && test -s conftest$ac_exeext && {
10255	 test "$cross_compiling" = yes ||
10256	 $as_test_x conftest$ac_exeext
10257       }; then
10258  ac_cv_lib_svld_dlopen=yes
10259else
10260  $as_echo "$as_me: failed program was:" >&5
10261sed 's/^/| /' conftest.$ac_ext >&5
10262
10263	ac_cv_lib_svld_dlopen=no
10264fi
10265
10266rm -rf conftest.dSYM
10267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10268      conftest$ac_exeext conftest.$ac_ext
10269LIBS=$ac_check_lib_save_LIBS
10270fi
10271{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10272$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10273if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10274  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10275else
10276  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10277$as_echo_n "checking for dld_link in -ldld... " >&6; }
10278if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10279  $as_echo_n "(cached) " >&6
10280else
10281  ac_check_lib_save_LIBS=$LIBS
10282LIBS="-ldld  $LIBS"
10283cat >conftest.$ac_ext <<_ACEOF
10284/* confdefs.h.  */
10285_ACEOF
10286cat confdefs.h >>conftest.$ac_ext
10287cat >>conftest.$ac_ext <<_ACEOF
10288/* end confdefs.h.  */
10289
10290/* Override any GCC internal prototype to avoid an error.
10291   Use char because int might match the return type of a GCC
10292   builtin and then its argument prototype would still apply.  */
10293#ifdef __cplusplus
10294extern "C"
10295#endif
10296char dld_link ();
10297int
10298main ()
10299{
10300return dld_link ();
10301  ;
10302  return 0;
10303}
10304_ACEOF
10305rm -f conftest.$ac_objext conftest$ac_exeext
10306if { (ac_try="$ac_link"
10307case "(($ac_try" in
10308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309  *) ac_try_echo=$ac_try;;
10310esac
10311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10312$as_echo "$ac_try_echo") >&5
10313  (eval "$ac_link") 2>conftest.er1
10314  ac_status=$?
10315  grep -v '^ *+' conftest.er1 >conftest.err
10316  rm -f conftest.er1
10317  cat conftest.err >&5
10318  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319  (exit $ac_status); } && {
10320	 test -z "$ac_c_werror_flag" ||
10321	 test ! -s conftest.err
10322       } && test -s conftest$ac_exeext && {
10323	 test "$cross_compiling" = yes ||
10324	 $as_test_x conftest$ac_exeext
10325       }; then
10326  ac_cv_lib_dld_dld_link=yes
10327else
10328  $as_echo "$as_me: failed program was:" >&5
10329sed 's/^/| /' conftest.$ac_ext >&5
10330
10331	ac_cv_lib_dld_dld_link=no
10332fi
10333
10334rm -rf conftest.dSYM
10335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10336      conftest$ac_exeext conftest.$ac_ext
10337LIBS=$ac_check_lib_save_LIBS
10338fi
10339{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10340$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10341if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10342  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10343fi
10344
10345
10346fi
10347
10348
10349fi
10350
10351
10352fi
10353
10354
10355fi
10356
10357
10358fi
10359
10360    ;;
10361  esac
10362
10363  if test "x$lt_cv_dlopen" != xno; then
10364    enable_dlopen=yes
10365  else
10366    enable_dlopen=no
10367  fi
10368
10369  case $lt_cv_dlopen in
10370  dlopen)
10371    save_CPPFLAGS="$CPPFLAGS"
10372    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10373
10374    save_LDFLAGS="$LDFLAGS"
10375    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10376
10377    save_LIBS="$LIBS"
10378    LIBS="$lt_cv_dlopen_libs $LIBS"
10379
10380    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10381$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10382if test "${lt_cv_dlopen_self+set}" = set; then
10383  $as_echo_n "(cached) " >&6
10384else
10385  	  if test "$cross_compiling" = yes; then :
10386  lt_cv_dlopen_self=cross
10387else
10388  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10389  lt_status=$lt_dlunknown
10390  cat > conftest.$ac_ext <<EOF
10391#line 10391 "configure"
10392#include "confdefs.h"
10393
10394#if HAVE_DLFCN_H
10395#include <dlfcn.h>
10396#endif
10397
10398#include <stdio.h>
10399
10400#ifdef RTLD_GLOBAL
10401#  define LT_DLGLOBAL		RTLD_GLOBAL
10402#else
10403#  ifdef DL_GLOBAL
10404#    define LT_DLGLOBAL		DL_GLOBAL
10405#  else
10406#    define LT_DLGLOBAL		0
10407#  endif
10408#endif
10409
10410/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10411   find out it does not work in some platform. */
10412#ifndef LT_DLLAZY_OR_NOW
10413#  ifdef RTLD_LAZY
10414#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10415#  else
10416#    ifdef DL_LAZY
10417#      define LT_DLLAZY_OR_NOW		DL_LAZY
10418#    else
10419#      ifdef RTLD_NOW
10420#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10421#      else
10422#        ifdef DL_NOW
10423#          define LT_DLLAZY_OR_NOW	DL_NOW
10424#        else
10425#          define LT_DLLAZY_OR_NOW	0
10426#        endif
10427#      endif
10428#    endif
10429#  endif
10430#endif
10431
10432#ifdef __cplusplus
10433extern "C" void exit (int);
10434#endif
10435
10436void fnord() { int i=42;}
10437int main ()
10438{
10439  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10440  int status = $lt_dlunknown;
10441
10442  if (self)
10443    {
10444      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10445      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10446      /* dlclose (self); */
10447    }
10448  else
10449    puts (dlerror ());
10450
10451    exit (status);
10452}
10453EOF
10454  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10455  (eval $ac_link) 2>&5
10456  ac_status=$?
10457  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10459    (./conftest; exit; ) >&5 2>/dev/null
10460    lt_status=$?
10461    case x$lt_status in
10462      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10463      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10464      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10465    esac
10466  else :
10467    # compilation failed
10468    lt_cv_dlopen_self=no
10469  fi
10470fi
10471rm -fr conftest*
10472
10473
10474fi
10475{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10476$as_echo "$lt_cv_dlopen_self" >&6; }
10477
10478    if test "x$lt_cv_dlopen_self" = xyes; then
10479      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10480      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10481$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10482if test "${lt_cv_dlopen_self_static+set}" = set; then
10483  $as_echo_n "(cached) " >&6
10484else
10485  	  if test "$cross_compiling" = yes; then :
10486  lt_cv_dlopen_self_static=cross
10487else
10488  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10489  lt_status=$lt_dlunknown
10490  cat > conftest.$ac_ext <<EOF
10491#line 10491 "configure"
10492#include "confdefs.h"
10493
10494#if HAVE_DLFCN_H
10495#include <dlfcn.h>
10496#endif
10497
10498#include <stdio.h>
10499
10500#ifdef RTLD_GLOBAL
10501#  define LT_DLGLOBAL		RTLD_GLOBAL
10502#else
10503#  ifdef DL_GLOBAL
10504#    define LT_DLGLOBAL		DL_GLOBAL
10505#  else
10506#    define LT_DLGLOBAL		0
10507#  endif
10508#endif
10509
10510/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10511   find out it does not work in some platform. */
10512#ifndef LT_DLLAZY_OR_NOW
10513#  ifdef RTLD_LAZY
10514#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10515#  else
10516#    ifdef DL_LAZY
10517#      define LT_DLLAZY_OR_NOW		DL_LAZY
10518#    else
10519#      ifdef RTLD_NOW
10520#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10521#      else
10522#        ifdef DL_NOW
10523#          define LT_DLLAZY_OR_NOW	DL_NOW
10524#        else
10525#          define LT_DLLAZY_OR_NOW	0
10526#        endif
10527#      endif
10528#    endif
10529#  endif
10530#endif
10531
10532#ifdef __cplusplus
10533extern "C" void exit (int);
10534#endif
10535
10536void fnord() { int i=42;}
10537int main ()
10538{
10539  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10540  int status = $lt_dlunknown;
10541
10542  if (self)
10543    {
10544      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10545      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10546      /* dlclose (self); */
10547    }
10548  else
10549    puts (dlerror ());
10550
10551    exit (status);
10552}
10553EOF
10554  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10555  (eval $ac_link) 2>&5
10556  ac_status=$?
10557  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10559    (./conftest; exit; ) >&5 2>/dev/null
10560    lt_status=$?
10561    case x$lt_status in
10562      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10563      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10564      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10565    esac
10566  else :
10567    # compilation failed
10568    lt_cv_dlopen_self_static=no
10569  fi
10570fi
10571rm -fr conftest*
10572
10573
10574fi
10575{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10576$as_echo "$lt_cv_dlopen_self_static" >&6; }
10577    fi
10578
10579    CPPFLAGS="$save_CPPFLAGS"
10580    LDFLAGS="$save_LDFLAGS"
10581    LIBS="$save_LIBS"
10582    ;;
10583  esac
10584
10585  case $lt_cv_dlopen_self in
10586  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10587  *) enable_dlopen_self=unknown ;;
10588  esac
10589
10590  case $lt_cv_dlopen_self_static in
10591  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10592  *) enable_dlopen_self_static=unknown ;;
10593  esac
10594fi
10595
10596
10597# Report which library types will actually be built
10598{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10599$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10600{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10601$as_echo "$can_build_shared" >&6; }
10602
10603{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10604$as_echo_n "checking whether to build shared libraries... " >&6; }
10605test "$can_build_shared" = "no" && enable_shared=no
10606
10607# On AIX, shared libraries and static libraries use the same namespace, and
10608# are all built from PIC.
10609case $host_os in
10610aix3*)
10611  test "$enable_shared" = yes && enable_static=no
10612  if test -n "$RANLIB"; then
10613    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10614    postinstall_cmds='$RANLIB $lib'
10615  fi
10616  ;;
10617
10618aix[4-9]*)
10619  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10620    test "$enable_shared" = yes && enable_static=no
10621  fi
10622    ;;
10623esac
10624{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10625$as_echo "$enable_shared" >&6; }
10626
10627{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10628$as_echo_n "checking whether to build static libraries... " >&6; }
10629# Make sure either enable_shared or enable_static is yes.
10630test "$enable_shared" = yes || enable_static=yes
10631{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10632$as_echo "$enable_static" >&6; }
10633
10634# The else clause should only fire when bootstrapping the
10635# libtool distribution, otherwise you forgot to ship ltmain.sh
10636# with your package, and you will get complaints that there are
10637# no rules to generate ltmain.sh.
10638if test -f "$ltmain"; then
10639  # See if we are running on zsh, and set the options which allow our commands through
10640  # without removal of \ escapes.
10641  if test -n "${ZSH_VERSION+set}" ; then
10642    setopt NO_GLOB_SUBST
10643  fi
10644  # Now quote all the things that may contain metacharacters while being
10645  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10646  # variables and quote the copies for generation of the libtool script.
10647  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10648    SED SHELL STRIP \
10649    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10650    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10651    deplibs_check_method reload_flag reload_cmds need_locks \
10652    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10653    lt_cv_sys_global_symbol_to_c_name_address \
10654    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10655    old_postinstall_cmds old_postuninstall_cmds \
10656    compiler \
10657    CC \
10658    LD \
10659    lt_prog_compiler_wl \
10660    lt_prog_compiler_pic \
10661    lt_prog_compiler_static \
10662    lt_prog_compiler_no_builtin_flag \
10663    export_dynamic_flag_spec \
10664    thread_safe_flag_spec \
10665    whole_archive_flag_spec \
10666    enable_shared_with_static_runtimes \
10667    old_archive_cmds \
10668    old_archive_from_new_cmds \
10669    predep_objects \
10670    postdep_objects \
10671    predeps \
10672    postdeps \
10673    compiler_lib_search_path \
10674    compiler_lib_search_dirs \
10675    archive_cmds \
10676    archive_expsym_cmds \
10677    postinstall_cmds \
10678    postuninstall_cmds \
10679    old_archive_from_expsyms_cmds \
10680    allow_undefined_flag \
10681    no_undefined_flag \
10682    export_symbols_cmds \
10683    hardcode_libdir_flag_spec \
10684    hardcode_libdir_flag_spec_ld \
10685    hardcode_libdir_separator \
10686    hardcode_automatic \
10687    module_cmds \
10688    module_expsym_cmds \
10689    lt_cv_prog_compiler_c_o \
10690    fix_srcfile_path \
10691    exclude_expsyms \
10692    include_expsyms; do
10693
10694    case $var in
10695    old_archive_cmds | \
10696    old_archive_from_new_cmds | \
10697    archive_cmds | \
10698    archive_expsym_cmds | \
10699    module_cmds | \
10700    module_expsym_cmds | \
10701    old_archive_from_expsyms_cmds | \
10702    export_symbols_cmds | \
10703    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10704    postinstall_cmds | postuninstall_cmds | \
10705    old_postinstall_cmds | old_postuninstall_cmds | \
10706    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10707      # Double-quote double-evaled strings.
10708      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10709      ;;
10710    *)
10711      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10712      ;;
10713    esac
10714  done
10715
10716  case $lt_echo in
10717  *'\$0 --fallback-echo"')
10718    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10719    ;;
10720  esac
10721
10722cfgfile="${ofile}T"
10723  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10724  $rm -f "$cfgfile"
10725  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10726$as_echo "$as_me: creating $ofile" >&6;}
10727
10728  cat <<__EOF__ >> "$cfgfile"
10729#! $SHELL
10730
10731# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10732# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10733# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10734#
10735# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10736# Free Software Foundation, Inc.
10737#
10738# This file is part of GNU Libtool:
10739# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10740#
10741# This program is free software; you can redistribute it and/or modify
10742# it under the terms of the GNU General Public License as published by
10743# the Free Software Foundation; either version 2 of the License, or
10744# (at your option) any later version.
10745#
10746# This program is distributed in the hope that it will be useful, but
10747# WITHOUT ANY WARRANTY; without even the implied warranty of
10748# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10749# General Public License for more details.
10750#
10751# You should have received a copy of the GNU General Public License
10752# along with this program; if not, write to the Free Software
10753# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10754#
10755# As a special exception to the GNU General Public License, if you
10756# distribute this file as part of a program that contains a
10757# configuration script generated by Autoconf, you may include it under
10758# the same distribution terms that you use for the rest of that program.
10759
10760# A sed program that does not truncate output.
10761SED=$lt_SED
10762
10763# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10764Xsed="$SED -e 1s/^X//"
10765
10766# The HP-UX ksh and POSIX shell print the target directory to stdout
10767# if CDPATH is set.
10768(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10769
10770# The names of the tagged configurations supported by this script.
10771available_tags=
10772
10773# ### BEGIN LIBTOOL CONFIG
10774
10775# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10776
10777# Shell to use when invoking shell scripts.
10778SHELL=$lt_SHELL
10779
10780# Whether or not to build shared libraries.
10781build_libtool_libs=$enable_shared
10782
10783# Whether or not to build static libraries.
10784build_old_libs=$enable_static
10785
10786# Whether or not to add -lc for building shared libraries.
10787build_libtool_need_lc=$archive_cmds_need_lc
10788
10789# Whether or not to disallow shared libs when runtime libs are static
10790allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10791
10792# Whether or not to optimize for fast installation.
10793fast_install=$enable_fast_install
10794
10795# The host system.
10796host_alias=$host_alias
10797host=$host
10798host_os=$host_os
10799
10800# The build system.
10801build_alias=$build_alias
10802build=$build
10803build_os=$build_os
10804
10805# An echo program that does not interpret backslashes.
10806echo=$lt_echo
10807
10808# The archiver.
10809AR=$lt_AR
10810AR_FLAGS=$lt_AR_FLAGS
10811
10812# A C compiler.
10813LTCC=$lt_LTCC
10814
10815# LTCC compiler flags.
10816LTCFLAGS=$lt_LTCFLAGS
10817
10818# A language-specific compiler.
10819CC=$lt_compiler
10820
10821# Is the compiler the GNU C compiler?
10822with_gcc=$GCC
10823
10824# An ERE matcher.
10825EGREP=$lt_EGREP
10826
10827# The linker used to build libraries.
10828LD=$lt_LD
10829
10830# Whether we need hard or soft links.
10831LN_S=$lt_LN_S
10832
10833# A BSD-compatible nm program.
10834NM=$lt_NM
10835
10836# A symbol stripping program
10837STRIP=$lt_STRIP
10838
10839# Used to examine libraries when file_magic_cmd begins "file"
10840MAGIC_CMD=$MAGIC_CMD
10841
10842# Used on cygwin: DLL creation program.
10843DLLTOOL="$DLLTOOL"
10844
10845# Used on cygwin: object dumper.
10846OBJDUMP="$OBJDUMP"
10847
10848# Used on cygwin: assembler.
10849AS="$AS"
10850
10851# The name of the directory that contains temporary libtool files.
10852objdir=$objdir
10853
10854# How to create reloadable object files.
10855reload_flag=$lt_reload_flag
10856reload_cmds=$lt_reload_cmds
10857
10858# How to pass a linker flag through the compiler.
10859wl=$lt_lt_prog_compiler_wl
10860
10861# Object file suffix (normally "o").
10862objext="$ac_objext"
10863
10864# Old archive suffix (normally "a").
10865libext="$libext"
10866
10867# Shared library suffix (normally ".so").
10868shrext_cmds='$shrext_cmds'
10869
10870# Executable file suffix (normally "").
10871exeext="$exeext"
10872
10873# Additional compiler flags for building library objects.
10874pic_flag=$lt_lt_prog_compiler_pic
10875pic_mode=$pic_mode
10876
10877# What is the maximum length of a command?
10878max_cmd_len=$lt_cv_sys_max_cmd_len
10879
10880# Does compiler simultaneously support -c and -o options?
10881compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10882
10883# Must we lock files when doing compilation?
10884need_locks=$lt_need_locks
10885
10886# Do we need the lib prefix for modules?
10887need_lib_prefix=$need_lib_prefix
10888
10889# Do we need a version for libraries?
10890need_version=$need_version
10891
10892# Whether dlopen is supported.
10893dlopen_support=$enable_dlopen
10894
10895# Whether dlopen of programs is supported.
10896dlopen_self=$enable_dlopen_self
10897
10898# Whether dlopen of statically linked programs is supported.
10899dlopen_self_static=$enable_dlopen_self_static
10900
10901# Compiler flag to prevent dynamic linking.
10902link_static_flag=$lt_lt_prog_compiler_static
10903
10904# Compiler flag to turn off builtin functions.
10905no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10906
10907# Compiler flag to allow reflexive dlopens.
10908export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10909
10910# Compiler flag to generate shared objects directly from archives.
10911whole_archive_flag_spec=$lt_whole_archive_flag_spec
10912
10913# Compiler flag to generate thread-safe objects.
10914thread_safe_flag_spec=$lt_thread_safe_flag_spec
10915
10916# Library versioning type.
10917version_type=$version_type
10918
10919# Format of library name prefix.
10920libname_spec=$lt_libname_spec
10921
10922# List of archive names.  First name is the real one, the rest are links.
10923# The last name is the one that the linker finds with -lNAME.
10924library_names_spec=$lt_library_names_spec
10925
10926# The coded name of the library, if different from the real name.
10927soname_spec=$lt_soname_spec
10928
10929# Commands used to build and install an old-style archive.
10930RANLIB=$lt_RANLIB
10931old_archive_cmds=$lt_old_archive_cmds
10932old_postinstall_cmds=$lt_old_postinstall_cmds
10933old_postuninstall_cmds=$lt_old_postuninstall_cmds
10934
10935# Create an old-style archive from a shared archive.
10936old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10937
10938# Create a temporary old-style archive to link instead of a shared archive.
10939old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10940
10941# Commands used to build and install a shared archive.
10942archive_cmds=$lt_archive_cmds
10943archive_expsym_cmds=$lt_archive_expsym_cmds
10944postinstall_cmds=$lt_postinstall_cmds
10945postuninstall_cmds=$lt_postuninstall_cmds
10946
10947# Commands used to build a loadable module (assumed same as above if empty)
10948module_cmds=$lt_module_cmds
10949module_expsym_cmds=$lt_module_expsym_cmds
10950
10951# Commands to strip libraries.
10952old_striplib=$lt_old_striplib
10953striplib=$lt_striplib
10954
10955# Dependencies to place before the objects being linked to create a
10956# shared library.
10957predep_objects=$lt_predep_objects
10958
10959# Dependencies to place after the objects being linked to create a
10960# shared library.
10961postdep_objects=$lt_postdep_objects
10962
10963# Dependencies to place before the objects being linked to create a
10964# shared library.
10965predeps=$lt_predeps
10966
10967# Dependencies to place after the objects being linked to create a
10968# shared library.
10969postdeps=$lt_postdeps
10970
10971# The directories searched by this compiler when creating a shared
10972# library
10973compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10974
10975# The library search path used internally by the compiler when linking
10976# a shared library.
10977compiler_lib_search_path=$lt_compiler_lib_search_path
10978
10979# Method to check whether dependent libraries are shared objects.
10980deplibs_check_method=$lt_deplibs_check_method
10981
10982# Command to use when deplibs_check_method == file_magic.
10983file_magic_cmd=$lt_file_magic_cmd
10984
10985# Flag that allows shared libraries with undefined symbols to be built.
10986allow_undefined_flag=$lt_allow_undefined_flag
10987
10988# Flag that forces no undefined symbols.
10989no_undefined_flag=$lt_no_undefined_flag
10990
10991# Commands used to finish a libtool library installation in a directory.
10992finish_cmds=$lt_finish_cmds
10993
10994# Same as above, but a single script fragment to be evaled but not shown.
10995finish_eval=$lt_finish_eval
10996
10997# Take the output of nm and produce a listing of raw symbols and C names.
10998global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10999
11000# Transform the output of nm in a proper C declaration
11001global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11002
11003# Transform the output of nm in a C name address pair
11004global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11005
11006# This is the shared library runtime path variable.
11007runpath_var=$runpath_var
11008
11009# This is the shared library path variable.
11010shlibpath_var=$shlibpath_var
11011
11012# Is shlibpath searched before the hard-coded library search path?
11013shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11014
11015# How to hardcode a shared library path into an executable.
11016hardcode_action=$hardcode_action
11017
11018# Whether we should hardcode library paths into libraries.
11019hardcode_into_libs=$hardcode_into_libs
11020
11021# Flag to hardcode \$libdir into a binary during linking.
11022# This must work even if \$libdir does not exist.
11023hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11024
11025# If ld is used when linking, flag to hardcode \$libdir into
11026# a binary during linking. This must work even if \$libdir does
11027# not exist.
11028hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11029
11030# Whether we need a single -rpath flag with a separated argument.
11031hardcode_libdir_separator=$lt_hardcode_libdir_separator
11032
11033# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11034# resulting binary.
11035hardcode_direct=$hardcode_direct
11036
11037# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11038# resulting binary.
11039hardcode_minus_L=$hardcode_minus_L
11040
11041# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11042# the resulting binary.
11043hardcode_shlibpath_var=$hardcode_shlibpath_var
11044
11045# Set to yes if building a shared library automatically hardcodes DIR into the library
11046# and all subsequent libraries and executables linked against it.
11047hardcode_automatic=$hardcode_automatic
11048
11049# Variables whose values should be saved in libtool wrapper scripts and
11050# restored at relink time.
11051variables_saved_for_relink="$variables_saved_for_relink"
11052
11053# Whether libtool must link a program against all its dependency libraries.
11054link_all_deplibs=$link_all_deplibs
11055
11056# Compile-time system search path for libraries
11057sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11058
11059# Run-time system search path for libraries
11060sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11061
11062# Fix the shell variable \$srcfile for the compiler.
11063fix_srcfile_path=$lt_fix_srcfile_path
11064
11065# Set to yes if exported symbols are required.
11066always_export_symbols=$always_export_symbols
11067
11068# The commands to list exported symbols.
11069export_symbols_cmds=$lt_export_symbols_cmds
11070
11071# The commands to extract the exported symbol list from a shared archive.
11072extract_expsyms_cmds=$lt_extract_expsyms_cmds
11073
11074# Symbols that should not be listed in the preloaded symbols.
11075exclude_expsyms=$lt_exclude_expsyms
11076
11077# Symbols that must always be exported.
11078include_expsyms=$lt_include_expsyms
11079
11080# ### END LIBTOOL CONFIG
11081
11082__EOF__
11083
11084
11085  case $host_os in
11086  aix3*)
11087    cat <<\EOF >> "$cfgfile"
11088
11089# AIX sometimes has problems with the GCC collect2 program.  For some
11090# reason, if we set the COLLECT_NAMES environment variable, the problems
11091# vanish in a puff of smoke.
11092if test "X${COLLECT_NAMES+set}" != Xset; then
11093  COLLECT_NAMES=
11094  export COLLECT_NAMES
11095fi
11096EOF
11097    ;;
11098  esac
11099
11100  # We use sed instead of cat because bash on DJGPP gets confused if
11101  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11102  # text mode, it properly converts lines to CR/LF.  This bash problem
11103  # is reportedly fixed, but why not run on old versions too?
11104  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11105
11106  mv -f "$cfgfile" "$ofile" || \
11107    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11108  chmod +x "$ofile"
11109
11110else
11111  # If there is no Makefile yet, we rely on a make rule to execute
11112  # `config.status --recheck' to rerun these tests and create the
11113  # libtool script then.
11114  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11115  if test -f "$ltmain_in"; then
11116    test -f Makefile && make "$ltmain"
11117  fi
11118fi
11119
11120
11121ac_ext=c
11122ac_cpp='$CPP $CPPFLAGS'
11123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11125ac_compiler_gnu=$ac_cv_c_compiler_gnu
11126
11127CC="$lt_save_CC"
11128
11129
11130# Check whether --with-tags was given.
11131if test "${with_tags+set}" = set; then
11132  withval=$with_tags; tagnames="$withval"
11133fi
11134
11135
11136if test -f "$ltmain" && test -n "$tagnames"; then
11137  if test ! -f "${ofile}"; then
11138    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11139$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11140  fi
11141
11142  if test -z "$LTCC"; then
11143    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11144    if test -z "$LTCC"; then
11145      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11146$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11147    else
11148      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11149$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11150    fi
11151  fi
11152  if test -z "$LTCFLAGS"; then
11153    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11154  fi
11155
11156  # Extract list of available tagged configurations in $ofile.
11157  # Note that this assumes the entire list is on one line.
11158  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11159
11160  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11161  for tagname in $tagnames; do
11162    IFS="$lt_save_ifs"
11163    # Check whether tagname contains only valid characters
11164    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11165    "") ;;
11166    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11167$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11168   { (exit 1); exit 1; }; }
11169	;;
11170    esac
11171
11172    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11173    then
11174      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11175$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11176   { (exit 1); exit 1; }; }
11177    fi
11178
11179    # Update the list of available tags.
11180    if test -n "$tagname"; then
11181      echo appending configuration tag \"$tagname\" to $ofile
11182
11183      case $tagname in
11184      CXX)
11185	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11186	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11187	    (test "X$CXX" != "Xg++"))) ; then
11188	  ac_ext=cpp
11189ac_cpp='$CXXCPP $CPPFLAGS'
11190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11193
11194
11195
11196
11197archive_cmds_need_lc_CXX=no
11198allow_undefined_flag_CXX=
11199always_export_symbols_CXX=no
11200archive_expsym_cmds_CXX=
11201export_dynamic_flag_spec_CXX=
11202hardcode_direct_CXX=no
11203hardcode_libdir_flag_spec_CXX=
11204hardcode_libdir_flag_spec_ld_CXX=
11205hardcode_libdir_separator_CXX=
11206hardcode_minus_L_CXX=no
11207hardcode_shlibpath_var_CXX=unsupported
11208hardcode_automatic_CXX=no
11209module_cmds_CXX=
11210module_expsym_cmds_CXX=
11211link_all_deplibs_CXX=unknown
11212old_archive_cmds_CXX=$old_archive_cmds
11213no_undefined_flag_CXX=
11214whole_archive_flag_spec_CXX=
11215enable_shared_with_static_runtimes_CXX=no
11216
11217# Dependencies to place before and after the object being linked:
11218predep_objects_CXX=
11219postdep_objects_CXX=
11220predeps_CXX=
11221postdeps_CXX=
11222compiler_lib_search_path_CXX=
11223compiler_lib_search_dirs_CXX=
11224
11225# Source file extension for C++ test sources.
11226ac_ext=cpp
11227
11228# Object file extension for compiled C++ test sources.
11229objext=o
11230objext_CXX=$objext
11231
11232# Code to be used in simple compile tests
11233lt_simple_compile_test_code="int some_variable = 0;"
11234
11235# Code to be used in simple link tests
11236lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11237
11238# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11239
11240# If no C compiler was specified, use CC.
11241LTCC=${LTCC-"$CC"}
11242
11243# If no C compiler flags were specified, use CFLAGS.
11244LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11245
11246# Allow CC to be a program name with arguments.
11247compiler=$CC
11248
11249
11250# save warnings/boilerplate of simple test code
11251ac_outfile=conftest.$ac_objext
11252echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11253eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11254_lt_compiler_boilerplate=`cat conftest.err`
11255$rm conftest*
11256
11257ac_outfile=conftest.$ac_objext
11258echo "$lt_simple_link_test_code" >conftest.$ac_ext
11259eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11260_lt_linker_boilerplate=`cat conftest.err`
11261$rm -r conftest*
11262
11263
11264# Allow CC to be a program name with arguments.
11265lt_save_CC=$CC
11266lt_save_LD=$LD
11267lt_save_GCC=$GCC
11268GCC=$GXX
11269lt_save_with_gnu_ld=$with_gnu_ld
11270lt_save_path_LD=$lt_cv_path_LD
11271if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11272  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11273else
11274  $as_unset lt_cv_prog_gnu_ld
11275fi
11276if test -n "${lt_cv_path_LDCXX+set}"; then
11277  lt_cv_path_LD=$lt_cv_path_LDCXX
11278else
11279  $as_unset lt_cv_path_LD
11280fi
11281test -z "${LDCXX+set}" || LD=$LDCXX
11282CC=${CXX-"c++"}
11283compiler=$CC
11284compiler_CXX=$CC
11285for cc_temp in $compiler""; do
11286  case $cc_temp in
11287    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11288    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11289    \-*) ;;
11290    *) break;;
11291  esac
11292done
11293cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11294
11295
11296# We don't want -fno-exception wen compiling C++ code, so set the
11297# no_builtin_flag separately
11298if test "$GXX" = yes; then
11299  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11300else
11301  lt_prog_compiler_no_builtin_flag_CXX=
11302fi
11303
11304if test "$GXX" = yes; then
11305  # Set up default GNU C++ configuration
11306
11307
11308# Check whether --with-gnu-ld was given.
11309if test "${with_gnu_ld+set}" = set; then
11310  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11311else
11312  with_gnu_ld=no
11313fi
11314
11315ac_prog=ld
11316if test "$GCC" = yes; then
11317  # Check if gcc -print-prog-name=ld gives a path.
11318  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11319$as_echo_n "checking for ld used by $CC... " >&6; }
11320  case $host in
11321  *-*-mingw*)
11322    # gcc leaves a trailing carriage return which upsets mingw
11323    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11324  *)
11325    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11326  esac
11327  case $ac_prog in
11328    # Accept absolute paths.
11329    [\\/]* | ?:[\\/]*)
11330      re_direlt='/[^/][^/]*/\.\./'
11331      # Canonicalize the pathname of ld
11332      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11333      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11334	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11335      done
11336      test -z "$LD" && LD="$ac_prog"
11337      ;;
11338  "")
11339    # If it fails, then pretend we aren't using GCC.
11340    ac_prog=ld
11341    ;;
11342  *)
11343    # If it is relative, then search for the first ld in PATH.
11344    with_gnu_ld=unknown
11345    ;;
11346  esac
11347elif test "$with_gnu_ld" = yes; then
11348  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11349$as_echo_n "checking for GNU ld... " >&6; }
11350else
11351  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11352$as_echo_n "checking for non-GNU ld... " >&6; }
11353fi
11354if test "${lt_cv_path_LD+set}" = set; then
11355  $as_echo_n "(cached) " >&6
11356else
11357  if test -z "$LD"; then
11358  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11359  for ac_dir in $PATH; do
11360    IFS="$lt_save_ifs"
11361    test -z "$ac_dir" && ac_dir=.
11362    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11363      lt_cv_path_LD="$ac_dir/$ac_prog"
11364      # Check to see if the program is GNU ld.  I'd rather use --version,
11365      # but apparently some variants of GNU ld only accept -v.
11366      # Break only if it was the GNU/non-GNU ld that we prefer.
11367      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11368      *GNU* | *'with BFD'*)
11369	test "$with_gnu_ld" != no && break
11370	;;
11371      *)
11372	test "$with_gnu_ld" != yes && break
11373	;;
11374      esac
11375    fi
11376  done
11377  IFS="$lt_save_ifs"
11378else
11379  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11380fi
11381fi
11382
11383LD="$lt_cv_path_LD"
11384if test -n "$LD"; then
11385  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11386$as_echo "$LD" >&6; }
11387else
11388  { $as_echo "$as_me:$LINENO: result: no" >&5
11389$as_echo "no" >&6; }
11390fi
11391test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11392$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11393   { (exit 1); exit 1; }; }
11394{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11395$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11396if test "${lt_cv_prog_gnu_ld+set}" = set; then
11397  $as_echo_n "(cached) " >&6
11398else
11399  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11400case `$LD -v 2>&1 </dev/null` in
11401*GNU* | *'with BFD'*)
11402  lt_cv_prog_gnu_ld=yes
11403  ;;
11404*)
11405  lt_cv_prog_gnu_ld=no
11406  ;;
11407esac
11408fi
11409{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11410$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11411with_gnu_ld=$lt_cv_prog_gnu_ld
11412
11413
11414
11415  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11416  # archiving commands below assume that GNU ld is being used.
11417  if test "$with_gnu_ld" = yes; then
11418    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11419    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'
11420
11421    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11422    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11423
11424    # If archive_cmds runs LD, not CC, wlarc should be empty
11425    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11426    #     investigate it a little bit more. (MM)
11427    wlarc='${wl}'
11428
11429    # ancient GNU ld didn't support --whole-archive et. al.
11430    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11431	grep 'no-whole-archive' > /dev/null; then
11432      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11433    else
11434      whole_archive_flag_spec_CXX=
11435    fi
11436  else
11437    with_gnu_ld=no
11438    wlarc=
11439
11440    # A generic and very simple default shared library creation
11441    # command for GNU C++ for the case where it uses the native
11442    # linker, instead of GNU ld.  If possible, this setting should
11443    # overridden to take advantage of the native linker features on
11444    # the platform it is being used on.
11445    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11446  fi
11447
11448  # Commands to make compiler produce verbose output that lists
11449  # what "hidden" libraries, object files and flags are used when
11450  # linking a shared library.
11451  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11452
11453else
11454  GXX=no
11455  with_gnu_ld=no
11456  wlarc=
11457fi
11458
11459# PORTME: fill in a description of your system's C++ link characteristics
11460{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11461$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11462ld_shlibs_CXX=yes
11463case $host_os in
11464  aix3*)
11465    # FIXME: insert proper C++ library support
11466    ld_shlibs_CXX=no
11467    ;;
11468  aix[4-9]*)
11469    if test "$host_cpu" = ia64; then
11470      # On IA64, the linker does run time linking by default, so we don't
11471      # have to do anything special.
11472      aix_use_runtimelinking=no
11473      exp_sym_flag='-Bexport'
11474      no_entry_flag=""
11475    else
11476      aix_use_runtimelinking=no
11477
11478      # Test if we are trying to use run time linking or normal
11479      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11480      # need to do runtime linking.
11481      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11482	for ld_flag in $LDFLAGS; do
11483	  case $ld_flag in
11484	  *-brtl*)
11485	    aix_use_runtimelinking=yes
11486	    break
11487	    ;;
11488	  esac
11489	done
11490	;;
11491      esac
11492
11493      exp_sym_flag='-bexport'
11494      no_entry_flag='-bnoentry'
11495    fi
11496
11497    # When large executables or shared objects are built, AIX ld can
11498    # have problems creating the table of contents.  If linking a library
11499    # or program results in "error TOC overflow" add -mminimal-toc to
11500    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11501    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11502
11503    archive_cmds_CXX=''
11504    hardcode_direct_CXX=yes
11505    hardcode_libdir_separator_CXX=':'
11506    link_all_deplibs_CXX=yes
11507
11508    if test "$GXX" = yes; then
11509      case $host_os in aix4.[012]|aix4.[012].*)
11510      # We only want to do this on AIX 4.2 and lower, the check
11511      # below for broken collect2 doesn't work under 4.3+
11512	collect2name=`${CC} -print-prog-name=collect2`
11513	if test -f "$collect2name" && \
11514	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11515	then
11516	  # We have reworked collect2
11517	  :
11518	else
11519	  # We have old collect2
11520	  hardcode_direct_CXX=unsupported
11521	  # It fails to find uninstalled libraries when the uninstalled
11522	  # path is not listed in the libpath.  Setting hardcode_minus_L
11523	  # to unsupported forces relinking
11524	  hardcode_minus_L_CXX=yes
11525	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11526	  hardcode_libdir_separator_CXX=
11527	fi
11528	;;
11529      esac
11530      shared_flag='-shared'
11531      if test "$aix_use_runtimelinking" = yes; then
11532	shared_flag="$shared_flag "'${wl}-G'
11533      fi
11534    else
11535      # not using gcc
11536      if test "$host_cpu" = ia64; then
11537	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11538	# chokes on -Wl,-G. The following line is correct:
11539	shared_flag='-G'
11540      else
11541	if test "$aix_use_runtimelinking" = yes; then
11542	  shared_flag='${wl}-G'
11543	else
11544	  shared_flag='${wl}-bM:SRE'
11545	fi
11546      fi
11547    fi
11548
11549    # It seems that -bexpall does not export symbols beginning with
11550    # underscore (_), so it is better to generate a list of symbols to export.
11551    always_export_symbols_CXX=yes
11552    if test "$aix_use_runtimelinking" = yes; then
11553      # Warning - without using the other runtime loading flags (-brtl),
11554      # -berok will link without error, but may produce a broken library.
11555      allow_undefined_flag_CXX='-berok'
11556      # Determine the default libpath from the value encoded in an empty executable.
11557      cat >conftest.$ac_ext <<_ACEOF
11558/* confdefs.h.  */
11559_ACEOF
11560cat confdefs.h >>conftest.$ac_ext
11561cat >>conftest.$ac_ext <<_ACEOF
11562/* end confdefs.h.  */
11563
11564int
11565main ()
11566{
11567
11568  ;
11569  return 0;
11570}
11571_ACEOF
11572rm -f conftest.$ac_objext conftest$ac_exeext
11573if { (ac_try="$ac_link"
11574case "(($ac_try" in
11575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576  *) ac_try_echo=$ac_try;;
11577esac
11578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11579$as_echo "$ac_try_echo") >&5
11580  (eval "$ac_link") 2>conftest.er1
11581  ac_status=$?
11582  grep -v '^ *+' conftest.er1 >conftest.err
11583  rm -f conftest.er1
11584  cat conftest.err >&5
11585  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586  (exit $ac_status); } && {
11587	 test -z "$ac_cxx_werror_flag" ||
11588	 test ! -s conftest.err
11589       } && test -s conftest$ac_exeext && {
11590	 test "$cross_compiling" = yes ||
11591	 $as_test_x conftest$ac_exeext
11592       }; then
11593
11594lt_aix_libpath_sed='
11595    /Import File Strings/,/^$/ {
11596	/^0/ {
11597	    s/^0  *\(.*\)$/\1/
11598	    p
11599	}
11600    }'
11601aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11602# Check for a 64-bit object if we didn't find anything.
11603if test -z "$aix_libpath"; then
11604  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11605fi
11606else
11607  $as_echo "$as_me: failed program was:" >&5
11608sed 's/^/| /' conftest.$ac_ext >&5
11609
11610
11611fi
11612
11613rm -rf conftest.dSYM
11614rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11615      conftest$ac_exeext conftest.$ac_ext
11616if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11617
11618      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11619
11620      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"
11621     else
11622      if test "$host_cpu" = ia64; then
11623	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11624	allow_undefined_flag_CXX="-z nodefs"
11625	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"
11626      else
11627	# Determine the default libpath from the value encoded in an empty executable.
11628	cat >conftest.$ac_ext <<_ACEOF
11629/* confdefs.h.  */
11630_ACEOF
11631cat confdefs.h >>conftest.$ac_ext
11632cat >>conftest.$ac_ext <<_ACEOF
11633/* end confdefs.h.  */
11634
11635int
11636main ()
11637{
11638
11639  ;
11640  return 0;
11641}
11642_ACEOF
11643rm -f conftest.$ac_objext conftest$ac_exeext
11644if { (ac_try="$ac_link"
11645case "(($ac_try" in
11646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647  *) ac_try_echo=$ac_try;;
11648esac
11649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11650$as_echo "$ac_try_echo") >&5
11651  (eval "$ac_link") 2>conftest.er1
11652  ac_status=$?
11653  grep -v '^ *+' conftest.er1 >conftest.err
11654  rm -f conftest.er1
11655  cat conftest.err >&5
11656  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657  (exit $ac_status); } && {
11658	 test -z "$ac_cxx_werror_flag" ||
11659	 test ! -s conftest.err
11660       } && test -s conftest$ac_exeext && {
11661	 test "$cross_compiling" = yes ||
11662	 $as_test_x conftest$ac_exeext
11663       }; then
11664
11665lt_aix_libpath_sed='
11666    /Import File Strings/,/^$/ {
11667	/^0/ {
11668	    s/^0  *\(.*\)$/\1/
11669	    p
11670	}
11671    }'
11672aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11673# Check for a 64-bit object if we didn't find anything.
11674if test -z "$aix_libpath"; then
11675  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11676fi
11677else
11678  $as_echo "$as_me: failed program was:" >&5
11679sed 's/^/| /' conftest.$ac_ext >&5
11680
11681
11682fi
11683
11684rm -rf conftest.dSYM
11685rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11686      conftest$ac_exeext conftest.$ac_ext
11687if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11688
11689	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11690	# Warning - without using the other run time loading flags,
11691	# -berok will link without error, but may produce a broken library.
11692	no_undefined_flag_CXX=' ${wl}-bernotok'
11693	allow_undefined_flag_CXX=' ${wl}-berok'
11694	# Exported symbols can be pulled into shared objects from archives
11695	whole_archive_flag_spec_CXX='$convenience'
11696	archive_cmds_need_lc_CXX=yes
11697	# This is similar to how AIX traditionally builds its shared libraries.
11698	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'
11699      fi
11700    fi
11701    ;;
11702
11703  beos*)
11704    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11705      allow_undefined_flag_CXX=unsupported
11706      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11707      # support --undefined.  This deserves some investigation.  FIXME
11708      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11709    else
11710      ld_shlibs_CXX=no
11711    fi
11712    ;;
11713
11714  chorus*)
11715    case $cc_basename in
11716      *)
11717	# FIXME: insert proper C++ library support
11718	ld_shlibs_CXX=no
11719	;;
11720    esac
11721    ;;
11722
11723  cygwin* | mingw* | pw32*)
11724    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11725    # as there is no search path for DLLs.
11726    hardcode_libdir_flag_spec_CXX='-L$libdir'
11727    allow_undefined_flag_CXX=unsupported
11728    always_export_symbols_CXX=no
11729    enable_shared_with_static_runtimes_CXX=yes
11730
11731    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11732      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'
11733      # If the export-symbols file already is a .def file (1st line
11734      # is EXPORTS), use it as is; otherwise, prepend...
11735      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11736	cp $export_symbols $output_objdir/$soname.def;
11737      else
11738	echo EXPORTS > $output_objdir/$soname.def;
11739	cat $export_symbols >> $output_objdir/$soname.def;
11740      fi~
11741      $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'
11742    else
11743      ld_shlibs_CXX=no
11744    fi
11745  ;;
11746      darwin* | rhapsody*)
11747      archive_cmds_need_lc_CXX=no
11748      hardcode_direct_CXX=no
11749      hardcode_automatic_CXX=yes
11750      hardcode_shlibpath_var_CXX=unsupported
11751      whole_archive_flag_spec_CXX=''
11752      link_all_deplibs_CXX=yes
11753      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11754      if test "$GXX" = yes ; then
11755      output_verbose_link_cmd='echo'
11756      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}"
11757      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11758      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}"
11759      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}"
11760      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11761        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}"
11762        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}"
11763      fi
11764      else
11765      case $cc_basename in
11766        xlc*)
11767         output_verbose_link_cmd='echo'
11768          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'
11769          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11770          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11771          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}'
11772          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}'
11773          ;;
11774       *)
11775         ld_shlibs_CXX=no
11776          ;;
11777      esac
11778      fi
11779        ;;
11780
11781  dgux*)
11782    case $cc_basename in
11783      ec++*)
11784	# FIXME: insert proper C++ library support
11785	ld_shlibs_CXX=no
11786	;;
11787      ghcx*)
11788	# Green Hills C++ Compiler
11789	# FIXME: insert proper C++ library support
11790	ld_shlibs_CXX=no
11791	;;
11792      *)
11793	# FIXME: insert proper C++ library support
11794	ld_shlibs_CXX=no
11795	;;
11796    esac
11797    ;;
11798  freebsd[12]*)
11799    # C++ shared libraries reported to be fairly broken before switch to ELF
11800    ld_shlibs_CXX=no
11801    ;;
11802  freebsd-elf*)
11803    archive_cmds_need_lc_CXX=no
11804    ;;
11805  freebsd* | dragonfly*)
11806    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11807    # conventions
11808    ld_shlibs_CXX=yes
11809    ;;
11810  gnu*)
11811    ;;
11812  hpux9*)
11813    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11814    hardcode_libdir_separator_CXX=:
11815    export_dynamic_flag_spec_CXX='${wl}-E'
11816    hardcode_direct_CXX=yes
11817    hardcode_minus_L_CXX=yes # Not in the search PATH,
11818				# but as the default
11819				# location of the library.
11820
11821    case $cc_basename in
11822    CC*)
11823      # FIXME: insert proper C++ library support
11824      ld_shlibs_CXX=no
11825      ;;
11826    aCC*)
11827      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'
11828      # Commands to make compiler produce verbose output that lists
11829      # what "hidden" libraries, object files and flags are used when
11830      # linking a shared library.
11831      #
11832      # There doesn't appear to be a way to prevent this compiler from
11833      # explicitly linking system object files so we need to strip them
11834      # from the output so that they don't get included in the library
11835      # dependencies.
11836      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'
11837      ;;
11838    *)
11839      if test "$GXX" = yes; then
11840        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'
11841      else
11842        # FIXME: insert proper C++ library support
11843        ld_shlibs_CXX=no
11844      fi
11845      ;;
11846    esac
11847    ;;
11848  hpux10*|hpux11*)
11849    if test $with_gnu_ld = no; then
11850      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11851      hardcode_libdir_separator_CXX=:
11852
11853      case $host_cpu in
11854      hppa*64*|ia64*) ;;
11855      *)
11856	export_dynamic_flag_spec_CXX='${wl}-E'
11857        ;;
11858      esac
11859    fi
11860    case $host_cpu in
11861    hppa*64*|ia64*)
11862      hardcode_direct_CXX=no
11863      hardcode_shlibpath_var_CXX=no
11864      ;;
11865    *)
11866      hardcode_direct_CXX=yes
11867      hardcode_minus_L_CXX=yes # Not in the search PATH,
11868					      # but as the default
11869					      # location of the library.
11870      ;;
11871    esac
11872
11873    case $cc_basename in
11874      CC*)
11875	# FIXME: insert proper C++ library support
11876	ld_shlibs_CXX=no
11877	;;
11878      aCC*)
11879	case $host_cpu in
11880	hppa*64*)
11881	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11882	  ;;
11883	ia64*)
11884	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11885	  ;;
11886	*)
11887	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11888	  ;;
11889	esac
11890	# Commands to make compiler produce verbose output that lists
11891	# what "hidden" libraries, object files and flags are used when
11892	# linking a shared library.
11893	#
11894	# There doesn't appear to be a way to prevent this compiler from
11895	# explicitly linking system object files so we need to strip them
11896	# from the output so that they don't get included in the library
11897	# dependencies.
11898	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'
11899	;;
11900      *)
11901	if test "$GXX" = yes; then
11902	  if test $with_gnu_ld = no; then
11903	    case $host_cpu in
11904	    hppa*64*)
11905	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11906	      ;;
11907	    ia64*)
11908	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11909	      ;;
11910	    *)
11911	      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'
11912	      ;;
11913	    esac
11914	  fi
11915	else
11916	  # FIXME: insert proper C++ library support
11917	  ld_shlibs_CXX=no
11918	fi
11919	;;
11920    esac
11921    ;;
11922  interix[3-9]*)
11923    hardcode_direct_CXX=no
11924    hardcode_shlibpath_var_CXX=no
11925    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11926    export_dynamic_flag_spec_CXX='${wl}-E'
11927    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11928    # Instead, shared libraries are loaded at an image base (0x10000000 by
11929    # default) and relocated if they conflict, which is a slow very memory
11930    # consuming and fragmenting process.  To avoid this, we pick a random,
11931    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11932    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11933    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'
11934    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'
11935    ;;
11936  irix5* | irix6*)
11937    case $cc_basename in
11938      CC*)
11939	# SGI C++
11940	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'
11941
11942	# Archives containing C++ object files must be created using
11943	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11944	# necessary to make sure instantiated templates are included
11945	# in the archive.
11946	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11947	;;
11948      *)
11949	if test "$GXX" = yes; then
11950	  if test "$with_gnu_ld" = no; then
11951	    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'
11952	  else
11953	    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'
11954	  fi
11955	fi
11956	link_all_deplibs_CXX=yes
11957	;;
11958    esac
11959    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11960    hardcode_libdir_separator_CXX=:
11961    ;;
11962  linux* | k*bsd*-gnu)
11963    case $cc_basename in
11964      KCC*)
11965	# Kuck and Associates, Inc. (KAI) C++ Compiler
11966
11967	# KCC will only create a shared library if the output file
11968	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11969	# to its proper name (with version) after linking.
11970	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'
11971	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'
11972	# Commands to make compiler produce verbose output that lists
11973	# what "hidden" libraries, object files and flags are used when
11974	# linking a shared library.
11975	#
11976	# There doesn't appear to be a way to prevent this compiler from
11977	# explicitly linking system object files so we need to strip them
11978	# from the output so that they don't get included in the library
11979	# dependencies.
11980	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'
11981
11982	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11983	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11984
11985	# Archives containing C++ object files must be created using
11986	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11987	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11988	;;
11989      icpc*)
11990	# Intel C++
11991	with_gnu_ld=yes
11992	# version 8.0 and above of icpc choke on multiply defined symbols
11993	# if we add $predep_objects and $postdep_objects, however 7.1 and
11994	# earlier do not add the objects themselves.
11995	case `$CC -V 2>&1` in
11996	*"Version 7."*)
11997  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11998  	  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'
11999	  ;;
12000	*)  # Version 8.0 or newer
12001	  tmp_idyn=
12002	  case $host_cpu in
12003	    ia64*) tmp_idyn=' -i_dynamic';;
12004	  esac
12005  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12006	  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'
12007	  ;;
12008	esac
12009	archive_cmds_need_lc_CXX=no
12010	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12011	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12012	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12013	;;
12014      pgCC* | pgcpp*)
12015        # Portland Group C++ compiler
12016	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12017  	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'
12018
12019	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12020	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12021	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'
12022        ;;
12023      cxx*)
12024	# Compaq C++
12025	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12026	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'
12027
12028	runpath_var=LD_RUN_PATH
12029	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12030	hardcode_libdir_separator_CXX=:
12031
12032	# Commands to make compiler produce verbose output that lists
12033	# what "hidden" libraries, object files and flags are used when
12034	# linking a shared library.
12035	#
12036	# There doesn't appear to be a way to prevent this compiler from
12037	# explicitly linking system object files so we need to strip them
12038	# from the output so that they don't get included in the library
12039	# dependencies.
12040	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'
12041	;;
12042      *)
12043	case `$CC -V 2>&1 | sed 5q` in
12044	*Sun\ C*)
12045	  # Sun C++ 5.9
12046	  no_undefined_flag_CXX=' -zdefs'
12047	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12048	  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'
12049	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12050	  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'
12051
12052	  # Not sure whether something based on
12053	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12054	  # would be better.
12055	  output_verbose_link_cmd='echo'
12056
12057	  # Archives containing C++ object files must be created using
12058	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12059	  # necessary to make sure instantiated templates are included
12060	  # in the archive.
12061	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12062	  ;;
12063	esac
12064	;;
12065    esac
12066    ;;
12067  lynxos*)
12068    # FIXME: insert proper C++ library support
12069    ld_shlibs_CXX=no
12070    ;;
12071  m88k*)
12072    # FIXME: insert proper C++ library support
12073    ld_shlibs_CXX=no
12074    ;;
12075  mvs*)
12076    case $cc_basename in
12077      cxx*)
12078	# FIXME: insert proper C++ library support
12079	ld_shlibs_CXX=no
12080	;;
12081      *)
12082	# FIXME: insert proper C++ library support
12083	ld_shlibs_CXX=no
12084	;;
12085    esac
12086    ;;
12087  netbsd*)
12088    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12089      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12090      wlarc=
12091      hardcode_libdir_flag_spec_CXX='-R$libdir'
12092      hardcode_direct_CXX=yes
12093      hardcode_shlibpath_var_CXX=no
12094    fi
12095    # Workaround some broken pre-1.5 toolchains
12096    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12097    ;;
12098  openbsd2*)
12099    # C++ shared libraries are fairly broken
12100    ld_shlibs_CXX=no
12101    ;;
12102  openbsd*)
12103    if test -f /usr/libexec/ld.so; then
12104      hardcode_direct_CXX=yes
12105      hardcode_shlibpath_var_CXX=no
12106      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12107      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12108      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12109	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12110	export_dynamic_flag_spec_CXX='${wl}-E'
12111	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12112      fi
12113      output_verbose_link_cmd='echo'
12114    else
12115      ld_shlibs_CXX=no
12116    fi
12117    ;;
12118  osf3*)
12119    case $cc_basename in
12120      KCC*)
12121	# Kuck and Associates, Inc. (KAI) C++ Compiler
12122
12123	# KCC will only create a shared library if the output file
12124	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12125	# to its proper name (with version) after linking.
12126	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'
12127
12128	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12129	hardcode_libdir_separator_CXX=:
12130
12131	# Archives containing C++ object files must be created using
12132	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12133	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12134
12135	;;
12136      RCC*)
12137	# Rational C++ 2.4.1
12138	# FIXME: insert proper C++ library support
12139	ld_shlibs_CXX=no
12140	;;
12141      cxx*)
12142	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12143	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'
12144
12145	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12146	hardcode_libdir_separator_CXX=:
12147
12148	# Commands to make compiler produce verbose output that lists
12149	# what "hidden" libraries, object files and flags are used when
12150	# linking a shared library.
12151	#
12152	# There doesn't appear to be a way to prevent this compiler from
12153	# explicitly linking system object files so we need to strip them
12154	# from the output so that they don't get included in the library
12155	# dependencies.
12156	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'
12157	;;
12158      *)
12159	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12160	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12161	  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'
12162
12163	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12164	  hardcode_libdir_separator_CXX=:
12165
12166	  # Commands to make compiler produce verbose output that lists
12167	  # what "hidden" libraries, object files and flags are used when
12168	  # linking a shared library.
12169	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12170
12171	else
12172	  # FIXME: insert proper C++ library support
12173	  ld_shlibs_CXX=no
12174	fi
12175	;;
12176    esac
12177    ;;
12178  osf4* | osf5*)
12179    case $cc_basename in
12180      KCC*)
12181	# Kuck and Associates, Inc. (KAI) C++ Compiler
12182
12183	# KCC will only create a shared library if the output file
12184	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12185	# to its proper name (with version) after linking.
12186	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'
12187
12188	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12189	hardcode_libdir_separator_CXX=:
12190
12191	# Archives containing C++ object files must be created using
12192	# the KAI C++ compiler.
12193	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12194	;;
12195      RCC*)
12196	# Rational C++ 2.4.1
12197	# FIXME: insert proper C++ library support
12198	ld_shlibs_CXX=no
12199	;;
12200      cxx*)
12201	allow_undefined_flag_CXX=' -expect_unresolved \*'
12202	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'
12203	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12204	  echo "-hidden">> $lib.exp~
12205	  $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~
12206	  $rm $lib.exp'
12207
12208	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12209	hardcode_libdir_separator_CXX=:
12210
12211	# Commands to make compiler produce verbose output that lists
12212	# what "hidden" libraries, object files and flags are used when
12213	# linking a shared library.
12214	#
12215	# There doesn't appear to be a way to prevent this compiler from
12216	# explicitly linking system object files so we need to strip them
12217	# from the output so that they don't get included in the library
12218	# dependencies.
12219	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'
12220	;;
12221      *)
12222	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12223	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12224	 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'
12225
12226	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12227	  hardcode_libdir_separator_CXX=:
12228
12229	  # Commands to make compiler produce verbose output that lists
12230	  # what "hidden" libraries, object files and flags are used when
12231	  # linking a shared library.
12232	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12233
12234	else
12235	  # FIXME: insert proper C++ library support
12236	  ld_shlibs_CXX=no
12237	fi
12238	;;
12239    esac
12240    ;;
12241  psos*)
12242    # FIXME: insert proper C++ library support
12243    ld_shlibs_CXX=no
12244    ;;
12245  sunos4*)
12246    case $cc_basename in
12247      CC*)
12248	# Sun C++ 4.x
12249	# FIXME: insert proper C++ library support
12250	ld_shlibs_CXX=no
12251	;;
12252      lcc*)
12253	# Lucid
12254	# FIXME: insert proper C++ library support
12255	ld_shlibs_CXX=no
12256	;;
12257      *)
12258	# FIXME: insert proper C++ library support
12259	ld_shlibs_CXX=no
12260	;;
12261    esac
12262    ;;
12263  solaris*)
12264    case $cc_basename in
12265      CC*)
12266	# Sun C++ 4.2, 5.x and Centerline C++
12267        archive_cmds_need_lc_CXX=yes
12268	no_undefined_flag_CXX=' -zdefs'
12269	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12270	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12271	$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'
12272
12273	hardcode_libdir_flag_spec_CXX='-R$libdir'
12274	hardcode_shlibpath_var_CXX=no
12275	case $host_os in
12276	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12277	  *)
12278	    # The compiler driver will combine and reorder linker options,
12279	    # but understands `-z linker_flag'.
12280	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12281	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12282	    ;;
12283	esac
12284	link_all_deplibs_CXX=yes
12285
12286	output_verbose_link_cmd='echo'
12287
12288	# Archives containing C++ object files must be created using
12289	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12290	# necessary to make sure instantiated templates are included
12291	# in the archive.
12292	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12293	;;
12294      gcx*)
12295	# Green Hills C++ Compiler
12296	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12297
12298	# The C++ compiler must be used to create the archive.
12299	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12300	;;
12301      *)
12302	# GNU C++ compiler with Solaris linker
12303	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12304	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12305	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12306	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12307	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12308		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12309
12310	    # Commands to make compiler produce verbose output that lists
12311	    # what "hidden" libraries, object files and flags are used when
12312	    # linking a shared library.
12313	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12314	  else
12315	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12316	    # platform.
12317	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12318	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12319		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12320
12321	    # Commands to make compiler produce verbose output that lists
12322	    # what "hidden" libraries, object files and flags are used when
12323	    # linking a shared library.
12324	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12325	  fi
12326
12327	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12328	  case $host_os in
12329	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12330	  *)
12331	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12332	    ;;
12333	  esac
12334	fi
12335	;;
12336    esac
12337    ;;
12338  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12339    no_undefined_flag_CXX='${wl}-z,text'
12340    archive_cmds_need_lc_CXX=no
12341    hardcode_shlibpath_var_CXX=no
12342    runpath_var='LD_RUN_PATH'
12343
12344    case $cc_basename in
12345      CC*)
12346	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12347	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12348	;;
12349      *)
12350	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12351	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12352	;;
12353    esac
12354    ;;
12355  sysv5* | sco3.2v5* | sco5v6*)
12356    # Note: We can NOT use -z defs as we might desire, because we do not
12357    # link with -lc, and that would cause any symbols used from libc to
12358    # always be unresolved, which means just about no library would
12359    # ever link correctly.  If we're not using GNU ld we use -z text
12360    # though, which does catch some bad symbols but isn't as heavy-handed
12361    # as -z defs.
12362    # For security reasons, it is highly recommended that you always
12363    # use absolute paths for naming shared libraries, and exclude the
12364    # DT_RUNPATH tag from executables and libraries.  But doing so
12365    # requires that you compile everything twice, which is a pain.
12366    # So that behaviour is only enabled if SCOABSPATH is set to a
12367    # non-empty value in the environment.  Most likely only useful for
12368    # creating official distributions of packages.
12369    # This is a hack until libtool officially supports absolute path
12370    # names for shared libraries.
12371    no_undefined_flag_CXX='${wl}-z,text'
12372    allow_undefined_flag_CXX='${wl}-z,nodefs'
12373    archive_cmds_need_lc_CXX=no
12374    hardcode_shlibpath_var_CXX=no
12375    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12376    hardcode_libdir_separator_CXX=':'
12377    link_all_deplibs_CXX=yes
12378    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12379    runpath_var='LD_RUN_PATH'
12380
12381    case $cc_basename in
12382      CC*)
12383	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12384	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12385	;;
12386      *)
12387	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12388	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12389	;;
12390    esac
12391    ;;
12392  tandem*)
12393    case $cc_basename in
12394      NCC*)
12395	# NonStop-UX NCC 3.20
12396	# FIXME: insert proper C++ library support
12397	ld_shlibs_CXX=no
12398	;;
12399      *)
12400	# FIXME: insert proper C++ library support
12401	ld_shlibs_CXX=no
12402	;;
12403    esac
12404    ;;
12405  vxworks*)
12406    # FIXME: insert proper C++ library support
12407    ld_shlibs_CXX=no
12408    ;;
12409  *)
12410    # FIXME: insert proper C++ library support
12411    ld_shlibs_CXX=no
12412    ;;
12413esac
12414{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12415$as_echo "$ld_shlibs_CXX" >&6; }
12416test "$ld_shlibs_CXX" = no && can_build_shared=no
12417
12418GCC_CXX="$GXX"
12419LD_CXX="$LD"
12420
12421cat > conftest.$ac_ext <<EOF
12422class Foo
12423{
12424public:
12425  Foo (void) { a = 0; }
12426private:
12427  int a;
12428};
12429EOF
12430
12431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12432  (eval $ac_compile) 2>&5
12433  ac_status=$?
12434  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435  (exit $ac_status); }; then
12436  # Parse the compiler output and extract the necessary
12437  # objects, libraries and library flags.
12438
12439  # Sentinel used to keep track of whether or not we are before
12440  # the conftest object file.
12441  pre_test_object_deps_done=no
12442
12443  # The `*' in the case matches for architectures that use `case' in
12444  # $output_verbose_cmd can trigger glob expansion during the loop
12445  # eval without this substitution.
12446  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12447
12448  for p in `eval $output_verbose_link_cmd`; do
12449    case $p in
12450
12451    -L* | -R* | -l*)
12452       # Some compilers place space between "-{L,R}" and the path.
12453       # Remove the space.
12454       if test $p = "-L" \
12455	  || test $p = "-R"; then
12456	 prev=$p
12457	 continue
12458       else
12459	 prev=
12460       fi
12461
12462       if test "$pre_test_object_deps_done" = no; then
12463	 case $p in
12464	 -L* | -R*)
12465	   # Internal compiler library paths should come after those
12466	   # provided the user.  The postdeps already come after the
12467	   # user supplied libs so there is no need to process them.
12468	   if test -z "$compiler_lib_search_path_CXX"; then
12469	     compiler_lib_search_path_CXX="${prev}${p}"
12470	   else
12471	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12472	   fi
12473	   ;;
12474	 # The "-l" case would never come before the object being
12475	 # linked, so don't bother handling this case.
12476	 esac
12477       else
12478	 if test -z "$postdeps_CXX"; then
12479	   postdeps_CXX="${prev}${p}"
12480	 else
12481	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12482	 fi
12483       fi
12484       ;;
12485
12486    *.$objext)
12487       # This assumes that the test object file only shows up
12488       # once in the compiler output.
12489       if test "$p" = "conftest.$objext"; then
12490	 pre_test_object_deps_done=yes
12491	 continue
12492       fi
12493
12494       if test "$pre_test_object_deps_done" = no; then
12495	 if test -z "$predep_objects_CXX"; then
12496	   predep_objects_CXX="$p"
12497	 else
12498	   predep_objects_CXX="$predep_objects_CXX $p"
12499	 fi
12500       else
12501	 if test -z "$postdep_objects_CXX"; then
12502	   postdep_objects_CXX="$p"
12503	 else
12504	   postdep_objects_CXX="$postdep_objects_CXX $p"
12505	 fi
12506       fi
12507       ;;
12508
12509    *) ;; # Ignore the rest.
12510
12511    esac
12512  done
12513
12514  # Clean up.
12515  rm -f a.out a.exe
12516else
12517  echo "libtool.m4: error: problem compiling CXX test program"
12518fi
12519
12520$rm -f confest.$objext
12521
12522compiler_lib_search_dirs_CXX=
12523if test -n "$compiler_lib_search_path_CXX"; then
12524  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12525fi
12526
12527# PORTME: override above test on systems where it is broken
12528case $host_os in
12529interix[3-9]*)
12530  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12531  # hack all around it, let's just trust "g++" to DTRT.
12532  predep_objects_CXX=
12533  postdep_objects_CXX=
12534  postdeps_CXX=
12535  ;;
12536
12537linux*)
12538  case `$CC -V 2>&1 | sed 5q` in
12539  *Sun\ C*)
12540    # Sun C++ 5.9
12541    #
12542    # The more standards-conforming stlport4 library is
12543    # incompatible with the Cstd library. Avoid specifying
12544    # it if it's in CXXFLAGS. Ignore libCrun as
12545    # -library=stlport4 depends on it.
12546    case " $CXX $CXXFLAGS " in
12547    *" -library=stlport4 "*)
12548      solaris_use_stlport4=yes
12549      ;;
12550    esac
12551    if test "$solaris_use_stlport4" != yes; then
12552      postdeps_CXX='-library=Cstd -library=Crun'
12553    fi
12554    ;;
12555  esac
12556  ;;
12557
12558solaris*)
12559  case $cc_basename in
12560  CC*)
12561    # The more standards-conforming stlport4 library is
12562    # incompatible with the Cstd library. Avoid specifying
12563    # it if it's in CXXFLAGS. Ignore libCrun as
12564    # -library=stlport4 depends on it.
12565    case " $CXX $CXXFLAGS " in
12566    *" -library=stlport4 "*)
12567      solaris_use_stlport4=yes
12568      ;;
12569    esac
12570
12571    # Adding this requires a known-good setup of shared libraries for
12572    # Sun compiler versions before 5.6, else PIC objects from an old
12573    # archive will be linked into the output, leading to subtle bugs.
12574    if test "$solaris_use_stlport4" != yes; then
12575      postdeps_CXX='-library=Cstd -library=Crun'
12576    fi
12577    ;;
12578  esac
12579  ;;
12580esac
12581
12582case " $postdeps_CXX " in
12583*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12584esac
12585
12586lt_prog_compiler_wl_CXX=
12587lt_prog_compiler_pic_CXX=
12588lt_prog_compiler_static_CXX=
12589
12590{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12591$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12592
12593  # C++ specific cases for pic, static, wl, etc.
12594  if test "$GXX" = yes; then
12595    lt_prog_compiler_wl_CXX='-Wl,'
12596    lt_prog_compiler_static_CXX='-static'
12597
12598    case $host_os in
12599    aix*)
12600      # All AIX code is PIC.
12601      if test "$host_cpu" = ia64; then
12602	# AIX 5 now supports IA64 processor
12603	lt_prog_compiler_static_CXX='-Bstatic'
12604      fi
12605      ;;
12606    amigaos*)
12607      # FIXME: we need at least 68020 code to build shared libraries, but
12608      # adding the `-m68020' flag to GCC prevents building anything better,
12609      # like `-m68040'.
12610      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12611      ;;
12612    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12613      # PIC is the default for these OSes.
12614      ;;
12615    mingw* | cygwin* | os2* | pw32*)
12616      # This hack is so that the source file can tell whether it is being
12617      # built for inclusion in a dll (and should export symbols for example).
12618      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12619      # (--disable-auto-import) libraries
12620      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12621      ;;
12622    darwin* | rhapsody*)
12623      # PIC is the default on this platform
12624      # Common symbols not allowed in MH_DYLIB files
12625      lt_prog_compiler_pic_CXX='-fno-common'
12626      ;;
12627    *djgpp*)
12628      # DJGPP does not support shared libraries at all
12629      lt_prog_compiler_pic_CXX=
12630      ;;
12631    interix[3-9]*)
12632      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12633      # Instead, we relocate shared libraries at runtime.
12634      ;;
12635    sysv4*MP*)
12636      if test -d /usr/nec; then
12637	lt_prog_compiler_pic_CXX=-Kconform_pic
12638      fi
12639      ;;
12640    hpux*)
12641      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12642      # not for PA HP-UX.
12643      case $host_cpu in
12644      hppa*64*|ia64*)
12645	;;
12646      *)
12647	lt_prog_compiler_pic_CXX='-fPIC'
12648	;;
12649      esac
12650      ;;
12651    *)
12652      lt_prog_compiler_pic_CXX='-fPIC'
12653      ;;
12654    esac
12655  else
12656    case $host_os in
12657      aix[4-9]*)
12658	# All AIX code is PIC.
12659	if test "$host_cpu" = ia64; then
12660	  # AIX 5 now supports IA64 processor
12661	  lt_prog_compiler_static_CXX='-Bstatic'
12662	else
12663	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12664	fi
12665	;;
12666      chorus*)
12667	case $cc_basename in
12668	cxch68*)
12669	  # Green Hills C++ Compiler
12670	  # _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"
12671	  ;;
12672	esac
12673	;;
12674       darwin*)
12675         # PIC is the default on this platform
12676         # Common symbols not allowed in MH_DYLIB files
12677         case $cc_basename in
12678           xlc*)
12679           lt_prog_compiler_pic_CXX='-qnocommon'
12680           lt_prog_compiler_wl_CXX='-Wl,'
12681           ;;
12682         esac
12683       ;;
12684      dgux*)
12685	case $cc_basename in
12686	  ec++*)
12687	    lt_prog_compiler_pic_CXX='-KPIC'
12688	    ;;
12689	  ghcx*)
12690	    # Green Hills C++ Compiler
12691	    lt_prog_compiler_pic_CXX='-pic'
12692	    ;;
12693	  *)
12694	    ;;
12695	esac
12696	;;
12697      freebsd* | dragonfly*)
12698	# FreeBSD uses GNU C++
12699	;;
12700      hpux9* | hpux10* | hpux11*)
12701	case $cc_basename in
12702	  CC*)
12703	    lt_prog_compiler_wl_CXX='-Wl,'
12704	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12705	    if test "$host_cpu" != ia64; then
12706	      lt_prog_compiler_pic_CXX='+Z'
12707	    fi
12708	    ;;
12709	  aCC*)
12710	    lt_prog_compiler_wl_CXX='-Wl,'
12711	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12712	    case $host_cpu in
12713	    hppa*64*|ia64*)
12714	      # +Z the default
12715	      ;;
12716	    *)
12717	      lt_prog_compiler_pic_CXX='+Z'
12718	      ;;
12719	    esac
12720	    ;;
12721	  *)
12722	    ;;
12723	esac
12724	;;
12725      interix*)
12726	# This is c89, which is MS Visual C++ (no shared libs)
12727	# Anyone wants to do a port?
12728	;;
12729      irix5* | irix6* | nonstopux*)
12730	case $cc_basename in
12731	  CC*)
12732	    lt_prog_compiler_wl_CXX='-Wl,'
12733	    lt_prog_compiler_static_CXX='-non_shared'
12734	    # CC pic flag -KPIC is the default.
12735	    ;;
12736	  *)
12737	    ;;
12738	esac
12739	;;
12740      linux* | k*bsd*-gnu)
12741	case $cc_basename in
12742	  KCC*)
12743	    # KAI C++ Compiler
12744	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12745	    lt_prog_compiler_pic_CXX='-fPIC'
12746	    ;;
12747	  icpc* | ecpc*)
12748	    # Intel C++
12749	    lt_prog_compiler_wl_CXX='-Wl,'
12750	    lt_prog_compiler_pic_CXX='-KPIC'
12751	    lt_prog_compiler_static_CXX='-static'
12752	    ;;
12753	  pgCC* | pgcpp*)
12754	    # Portland Group C++ compiler.
12755	    lt_prog_compiler_wl_CXX='-Wl,'
12756	    lt_prog_compiler_pic_CXX='-fpic'
12757	    lt_prog_compiler_static_CXX='-Bstatic'
12758	    ;;
12759	  cxx*)
12760	    # Compaq C++
12761	    # Make sure the PIC flag is empty.  It appears that all Alpha
12762	    # Linux and Compaq Tru64 Unix objects are PIC.
12763	    lt_prog_compiler_pic_CXX=
12764	    lt_prog_compiler_static_CXX='-non_shared'
12765	    ;;
12766	  *)
12767	    case `$CC -V 2>&1 | sed 5q` in
12768	    *Sun\ C*)
12769	      # Sun C++ 5.9
12770	      lt_prog_compiler_pic_CXX='-KPIC'
12771	      lt_prog_compiler_static_CXX='-Bstatic'
12772	      lt_prog_compiler_wl_CXX='-Qoption ld '
12773	      ;;
12774	    esac
12775	    ;;
12776	esac
12777	;;
12778      lynxos*)
12779	;;
12780      m88k*)
12781	;;
12782      mvs*)
12783	case $cc_basename in
12784	  cxx*)
12785	    lt_prog_compiler_pic_CXX='-W c,exportall'
12786	    ;;
12787	  *)
12788	    ;;
12789	esac
12790	;;
12791      netbsd*)
12792	;;
12793      osf3* | osf4* | osf5*)
12794	case $cc_basename in
12795	  KCC*)
12796	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12797	    ;;
12798	  RCC*)
12799	    # Rational C++ 2.4.1
12800	    lt_prog_compiler_pic_CXX='-pic'
12801	    ;;
12802	  cxx*)
12803	    # Digital/Compaq C++
12804	    lt_prog_compiler_wl_CXX='-Wl,'
12805	    # Make sure the PIC flag is empty.  It appears that all Alpha
12806	    # Linux and Compaq Tru64 Unix objects are PIC.
12807	    lt_prog_compiler_pic_CXX=
12808	    lt_prog_compiler_static_CXX='-non_shared'
12809	    ;;
12810	  *)
12811	    ;;
12812	esac
12813	;;
12814      psos*)
12815	;;
12816      solaris*)
12817	case $cc_basename in
12818	  CC*)
12819	    # Sun C++ 4.2, 5.x and Centerline C++
12820	    lt_prog_compiler_pic_CXX='-KPIC'
12821	    lt_prog_compiler_static_CXX='-Bstatic'
12822	    lt_prog_compiler_wl_CXX='-Qoption ld '
12823	    ;;
12824	  gcx*)
12825	    # Green Hills C++ Compiler
12826	    lt_prog_compiler_pic_CXX='-PIC'
12827	    ;;
12828	  *)
12829	    ;;
12830	esac
12831	;;
12832      sunos4*)
12833	case $cc_basename in
12834	  CC*)
12835	    # Sun C++ 4.x
12836	    lt_prog_compiler_pic_CXX='-pic'
12837	    lt_prog_compiler_static_CXX='-Bstatic'
12838	    ;;
12839	  lcc*)
12840	    # Lucid
12841	    lt_prog_compiler_pic_CXX='-pic'
12842	    ;;
12843	  *)
12844	    ;;
12845	esac
12846	;;
12847      tandem*)
12848	case $cc_basename in
12849	  NCC*)
12850	    # NonStop-UX NCC 3.20
12851	    lt_prog_compiler_pic_CXX='-KPIC'
12852	    ;;
12853	  *)
12854	    ;;
12855	esac
12856	;;
12857      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12858	case $cc_basename in
12859	  CC*)
12860	    lt_prog_compiler_wl_CXX='-Wl,'
12861	    lt_prog_compiler_pic_CXX='-KPIC'
12862	    lt_prog_compiler_static_CXX='-Bstatic'
12863	    ;;
12864	esac
12865	;;
12866      vxworks*)
12867	;;
12868      *)
12869	lt_prog_compiler_can_build_shared_CXX=no
12870	;;
12871    esac
12872  fi
12873
12874{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12875$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12876
12877#
12878# Check to make sure the PIC flag actually works.
12879#
12880if test -n "$lt_prog_compiler_pic_CXX"; then
12881
12882{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12883$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12884if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12885  $as_echo_n "(cached) " >&6
12886else
12887  lt_cv_prog_compiler_pic_works_CXX=no
12888  ac_outfile=conftest.$ac_objext
12889   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12890   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12891   # Insert the option either (1) after the last *FLAGS variable, or
12892   # (2) before a word containing "conftest.", or (3) at the end.
12893   # Note that $ac_compile itself does not contain backslashes and begins
12894   # with a dollar sign (not a hyphen), so the echo should work correctly.
12895   # The option is referenced via a variable to avoid confusing sed.
12896   lt_compile=`echo "$ac_compile" | $SED \
12897   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12898   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12899   -e 's:$: $lt_compiler_flag:'`
12900   (eval echo "\"\$as_me:12900: $lt_compile\"" >&5)
12901   (eval "$lt_compile" 2>conftest.err)
12902   ac_status=$?
12903   cat conftest.err >&5
12904   echo "$as_me:12904: \$? = $ac_status" >&5
12905   if (exit $ac_status) && test -s "$ac_outfile"; then
12906     # The compiler can only warn and ignore the option if not recognized
12907     # So say no if there are warnings other than the usual output.
12908     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12909     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12910     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12911       lt_cv_prog_compiler_pic_works_CXX=yes
12912     fi
12913   fi
12914   $rm conftest*
12915
12916fi
12917{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12918$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12919
12920if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12921    case $lt_prog_compiler_pic_CXX in
12922     "" | " "*) ;;
12923     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12924     esac
12925else
12926    lt_prog_compiler_pic_CXX=
12927     lt_prog_compiler_can_build_shared_CXX=no
12928fi
12929
12930fi
12931case $host_os in
12932  # For platforms which do not support PIC, -DPIC is meaningless:
12933  *djgpp*)
12934    lt_prog_compiler_pic_CXX=
12935    ;;
12936  *)
12937    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12938    ;;
12939esac
12940
12941#
12942# Check to make sure the static flag actually works.
12943#
12944wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12945{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12946$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12947if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12948  $as_echo_n "(cached) " >&6
12949else
12950  lt_cv_prog_compiler_static_works_CXX=no
12951   save_LDFLAGS="$LDFLAGS"
12952   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12953   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12954   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12955     # The linker can only warn and ignore the option if not recognized
12956     # So say no if there are warnings
12957     if test -s conftest.err; then
12958       # Append any errors to the config.log.
12959       cat conftest.err 1>&5
12960       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12961       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12962       if diff conftest.exp conftest.er2 >/dev/null; then
12963         lt_cv_prog_compiler_static_works_CXX=yes
12964       fi
12965     else
12966       lt_cv_prog_compiler_static_works_CXX=yes
12967     fi
12968   fi
12969   $rm -r conftest*
12970   LDFLAGS="$save_LDFLAGS"
12971
12972fi
12973{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12974$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12975
12976if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12977    :
12978else
12979    lt_prog_compiler_static_CXX=
12980fi
12981
12982
12983{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12984$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12985if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12986  $as_echo_n "(cached) " >&6
12987else
12988  lt_cv_prog_compiler_c_o_CXX=no
12989   $rm -r conftest 2>/dev/null
12990   mkdir conftest
12991   cd conftest
12992   mkdir out
12993   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12994
12995   lt_compiler_flag="-o out/conftest2.$ac_objext"
12996   # Insert the option either (1) after the last *FLAGS variable, or
12997   # (2) before a word containing "conftest.", or (3) at the end.
12998   # Note that $ac_compile itself does not contain backslashes and begins
12999   # with a dollar sign (not a hyphen), so the echo should work correctly.
13000   lt_compile=`echo "$ac_compile" | $SED \
13001   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13002   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13003   -e 's:$: $lt_compiler_flag:'`
13004   (eval echo "\"\$as_me:13004: $lt_compile\"" >&5)
13005   (eval "$lt_compile" 2>out/conftest.err)
13006   ac_status=$?
13007   cat out/conftest.err >&5
13008   echo "$as_me:13008: \$? = $ac_status" >&5
13009   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13010   then
13011     # The compiler can only warn and ignore the option if not recognized
13012     # So say no if there are warnings
13013     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13014     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13015     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13016       lt_cv_prog_compiler_c_o_CXX=yes
13017     fi
13018   fi
13019   chmod u+w . 2>&5
13020   $rm conftest*
13021   # SGI C++ compiler will create directory out/ii_files/ for
13022   # template instantiation
13023   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13024   $rm out/* && rmdir out
13025   cd ..
13026   rmdir conftest
13027   $rm conftest*
13028
13029fi
13030{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13031$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13032
13033
13034hard_links="nottested"
13035if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13036  # do not overwrite the value of need_locks provided by the user
13037  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13038$as_echo_n "checking if we can lock with hard links... " >&6; }
13039  hard_links=yes
13040  $rm conftest*
13041  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13042  touch conftest.a
13043  ln conftest.a conftest.b 2>&5 || hard_links=no
13044  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13045  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13046$as_echo "$hard_links" >&6; }
13047  if test "$hard_links" = no; then
13048    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13049$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13050    need_locks=warn
13051  fi
13052else
13053  need_locks=no
13054fi
13055
13056{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13057$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13058
13059  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13060  case $host_os in
13061  aix[4-9]*)
13062    # If we're using GNU nm, then we don't want the "-C" option.
13063    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13064    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13065      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'
13066    else
13067      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'
13068    fi
13069    ;;
13070  pw32*)
13071    export_symbols_cmds_CXX="$ltdll_cmds"
13072  ;;
13073  cygwin* | mingw*)
13074    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'
13075  ;;
13076  *)
13077    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13078  ;;
13079  esac
13080  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13081
13082{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13083$as_echo "$ld_shlibs_CXX" >&6; }
13084test "$ld_shlibs_CXX" = no && can_build_shared=no
13085
13086#
13087# Do we need to explicitly link libc?
13088#
13089case "x$archive_cmds_need_lc_CXX" in
13090x|xyes)
13091  # Assume -lc should be added
13092  archive_cmds_need_lc_CXX=yes
13093
13094  if test "$enable_shared" = yes && test "$GCC" = yes; then
13095    case $archive_cmds_CXX in
13096    *'~'*)
13097      # FIXME: we may have to deal with multi-command sequences.
13098      ;;
13099    '$CC '*)
13100      # Test whether the compiler implicitly links with -lc since on some
13101      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13102      # to ld, don't add -lc before -lgcc.
13103      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13104$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13105      $rm conftest*
13106      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13107
13108      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13109  (eval $ac_compile) 2>&5
13110  ac_status=$?
13111  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112  (exit $ac_status); } 2>conftest.err; then
13113        soname=conftest
13114        lib=conftest
13115        libobjs=conftest.$ac_objext
13116        deplibs=
13117        wl=$lt_prog_compiler_wl_CXX
13118	pic_flag=$lt_prog_compiler_pic_CXX
13119        compiler_flags=-v
13120        linker_flags=-v
13121        verstring=
13122        output_objdir=.
13123        libname=conftest
13124        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13125        allow_undefined_flag_CXX=
13126        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13127  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13128  ac_status=$?
13129  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130  (exit $ac_status); }
13131        then
13132	  archive_cmds_need_lc_CXX=no
13133        else
13134	  archive_cmds_need_lc_CXX=yes
13135        fi
13136        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13137      else
13138        cat conftest.err 1>&5
13139      fi
13140      $rm conftest*
13141      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13142$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13143      ;;
13144    esac
13145  fi
13146  ;;
13147esac
13148
13149{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13150$as_echo_n "checking dynamic linker characteristics... " >&6; }
13151library_names_spec=
13152libname_spec='lib$name'
13153soname_spec=
13154shrext_cmds=".so"
13155postinstall_cmds=
13156postuninstall_cmds=
13157finish_cmds=
13158finish_eval=
13159shlibpath_var=
13160shlibpath_overrides_runpath=unknown
13161version_type=none
13162dynamic_linker="$host_os ld.so"
13163sys_lib_dlsearch_path_spec="/lib /usr/lib"
13164
13165need_lib_prefix=unknown
13166hardcode_into_libs=no
13167
13168# when you set need_version to no, make sure it does not cause -set_version
13169# flags to be left without arguments
13170need_version=unknown
13171
13172case $host_os in
13173aix3*)
13174  version_type=linux
13175  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13176  shlibpath_var=LIBPATH
13177
13178  # AIX 3 has no versioning support, so we append a major version to the name.
13179  soname_spec='${libname}${release}${shared_ext}$major'
13180  ;;
13181
13182aix[4-9]*)
13183  version_type=linux
13184  need_lib_prefix=no
13185  need_version=no
13186  hardcode_into_libs=yes
13187  if test "$host_cpu" = ia64; then
13188    # AIX 5 supports IA64
13189    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13190    shlibpath_var=LD_LIBRARY_PATH
13191  else
13192    # With GCC up to 2.95.x, collect2 would create an import file
13193    # for dependence libraries.  The import file would start with
13194    # the line `#! .'.  This would cause the generated library to
13195    # depend on `.', always an invalid library.  This was fixed in
13196    # development snapshots of GCC prior to 3.0.
13197    case $host_os in
13198      aix4 | aix4.[01] | aix4.[01].*)
13199      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13200	   echo ' yes '
13201	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13202	:
13203      else
13204	can_build_shared=no
13205      fi
13206      ;;
13207    esac
13208    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13209    # soname into executable. Probably we can add versioning support to
13210    # collect2, so additional links can be useful in future.
13211    if test "$aix_use_runtimelinking" = yes; then
13212      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13213      # instead of lib<name>.a to let people know that these are not
13214      # typical AIX shared libraries.
13215      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13216    else
13217      # We preserve .a as extension for shared libraries through AIX4.2
13218      # and later when we are not doing run time linking.
13219      library_names_spec='${libname}${release}.a $libname.a'
13220      soname_spec='${libname}${release}${shared_ext}$major'
13221    fi
13222    shlibpath_var=LIBPATH
13223  fi
13224  ;;
13225
13226amigaos*)
13227  library_names_spec='$libname.ixlibrary $libname.a'
13228  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13229  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'
13230  ;;
13231
13232beos*)
13233  library_names_spec='${libname}${shared_ext}'
13234  dynamic_linker="$host_os ld.so"
13235  shlibpath_var=LIBRARY_PATH
13236  ;;
13237
13238bsdi[45]*)
13239  version_type=linux
13240  need_version=no
13241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13242  soname_spec='${libname}${release}${shared_ext}$major'
13243  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13244  shlibpath_var=LD_LIBRARY_PATH
13245  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13246  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13247  # the default ld.so.conf also contains /usr/contrib/lib and
13248  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13249  # libtool to hard-code these into programs
13250  ;;
13251
13252cygwin* | mingw* | pw32*)
13253  version_type=windows
13254  shrext_cmds=".dll"
13255  need_version=no
13256  need_lib_prefix=no
13257
13258  case $GCC,$host_os in
13259  yes,cygwin* | yes,mingw* | yes,pw32*)
13260    library_names_spec='$libname.dll.a'
13261    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13262    postinstall_cmds='base_file=`basename \${file}`~
13263      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13264      dldir=$destdir/`dirname \$dlpath`~
13265      test -d \$dldir || mkdir -p \$dldir~
13266      $install_prog $dir/$dlname \$dldir/$dlname~
13267      chmod a+x \$dldir/$dlname'
13268    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13269      dlpath=$dir/\$dldll~
13270       $rm \$dlpath'
13271    shlibpath_overrides_runpath=yes
13272
13273    case $host_os in
13274    cygwin*)
13275      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13276      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13277      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13278      ;;
13279    mingw*)
13280      # MinGW DLLs use traditional 'lib' prefix
13281      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13282      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13283      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13284        # It is most probably a Windows format PATH printed by
13285        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13286        # path with ; separators, and with drive letters. We can handle the
13287        # drive letters (cygwin fileutils understands them), so leave them,
13288        # especially as we might pass files found there to a mingw objdump,
13289        # which wouldn't understand a cygwinified path. Ahh.
13290        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13291      else
13292        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13293      fi
13294      ;;
13295    pw32*)
13296      # pw32 DLLs use 'pw' prefix rather than 'lib'
13297      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13298      ;;
13299    esac
13300    ;;
13301
13302  *)
13303    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13304    ;;
13305  esac
13306  dynamic_linker='Win32 ld.exe'
13307  # FIXME: first we should search . and the directory the executable is in
13308  shlibpath_var=PATH
13309  ;;
13310
13311darwin* | rhapsody*)
13312  dynamic_linker="$host_os dyld"
13313  version_type=darwin
13314  need_lib_prefix=no
13315  need_version=no
13316  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13317  soname_spec='${libname}${release}${major}$shared_ext'
13318  shlibpath_overrides_runpath=yes
13319  shlibpath_var=DYLD_LIBRARY_PATH
13320  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13321
13322  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13323  ;;
13324
13325dgux*)
13326  version_type=linux
13327  need_lib_prefix=no
13328  need_version=no
13329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13330  soname_spec='${libname}${release}${shared_ext}$major'
13331  shlibpath_var=LD_LIBRARY_PATH
13332  ;;
13333
13334freebsd1*)
13335  dynamic_linker=no
13336  ;;
13337
13338freebsd* | dragonfly*)
13339  # DragonFly does not have aout.  When/if they implement a new
13340  # versioning mechanism, adjust this.
13341  if test -x /usr/bin/objformat; then
13342    objformat=`/usr/bin/objformat`
13343  else
13344    case $host_os in
13345    freebsd[123]*) objformat=aout ;;
13346    *) objformat=elf ;;
13347    esac
13348  fi
13349  version_type=freebsd-$objformat
13350  case $version_type in
13351    freebsd-elf*)
13352      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13353      need_version=no
13354      need_lib_prefix=no
13355      ;;
13356    freebsd-*)
13357      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13358      need_version=yes
13359      ;;
13360  esac
13361  shlibpath_var=LD_LIBRARY_PATH
13362  case $host_os in
13363  freebsd2*)
13364    shlibpath_overrides_runpath=yes
13365    ;;
13366  freebsd3.[01]* | freebsdelf3.[01]*)
13367    shlibpath_overrides_runpath=yes
13368    hardcode_into_libs=yes
13369    ;;
13370  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13371  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13372    shlibpath_overrides_runpath=no
13373    hardcode_into_libs=yes
13374    ;;
13375  *) # from 4.6 on, and DragonFly
13376    shlibpath_overrides_runpath=yes
13377    hardcode_into_libs=yes
13378    ;;
13379  esac
13380  ;;
13381
13382gnu*)
13383  version_type=linux
13384  need_lib_prefix=no
13385  need_version=no
13386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13387  soname_spec='${libname}${release}${shared_ext}$major'
13388  shlibpath_var=LD_LIBRARY_PATH
13389  hardcode_into_libs=yes
13390  ;;
13391
13392hpux9* | hpux10* | hpux11*)
13393  # Give a soname corresponding to the major version so that dld.sl refuses to
13394  # link against other versions.
13395  version_type=sunos
13396  need_lib_prefix=no
13397  need_version=no
13398  case $host_cpu in
13399  ia64*)
13400    shrext_cmds='.so'
13401    hardcode_into_libs=yes
13402    dynamic_linker="$host_os dld.so"
13403    shlibpath_var=LD_LIBRARY_PATH
13404    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13405    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13406    soname_spec='${libname}${release}${shared_ext}$major'
13407    if test "X$HPUX_IA64_MODE" = X32; then
13408      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13409    else
13410      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13411    fi
13412    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13413    ;;
13414   hppa*64*)
13415     shrext_cmds='.sl'
13416     hardcode_into_libs=yes
13417     dynamic_linker="$host_os dld.sl"
13418     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13419     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13420     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13421     soname_spec='${libname}${release}${shared_ext}$major'
13422     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13423     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13424     ;;
13425   *)
13426    shrext_cmds='.sl'
13427    dynamic_linker="$host_os dld.sl"
13428    shlibpath_var=SHLIB_PATH
13429    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13430    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13431    soname_spec='${libname}${release}${shared_ext}$major'
13432    ;;
13433  esac
13434  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13435  postinstall_cmds='chmod 555 $lib'
13436  ;;
13437
13438interix[3-9]*)
13439  version_type=linux
13440  need_lib_prefix=no
13441  need_version=no
13442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13443  soname_spec='${libname}${release}${shared_ext}$major'
13444  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13445  shlibpath_var=LD_LIBRARY_PATH
13446  shlibpath_overrides_runpath=no
13447  hardcode_into_libs=yes
13448  ;;
13449
13450irix5* | irix6* | nonstopux*)
13451  case $host_os in
13452    nonstopux*) version_type=nonstopux ;;
13453    *)
13454	if test "$lt_cv_prog_gnu_ld" = yes; then
13455		version_type=linux
13456	else
13457		version_type=irix
13458	fi ;;
13459  esac
13460  need_lib_prefix=no
13461  need_version=no
13462  soname_spec='${libname}${release}${shared_ext}$major'
13463  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13464  case $host_os in
13465  irix5* | nonstopux*)
13466    libsuff= shlibsuff=
13467    ;;
13468  *)
13469    case $LD in # libtool.m4 will add one of these switches to LD
13470    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13471      libsuff= shlibsuff= libmagic=32-bit;;
13472    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13473      libsuff=32 shlibsuff=N32 libmagic=N32;;
13474    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13475      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13476    *) libsuff= shlibsuff= libmagic=never-match;;
13477    esac
13478    ;;
13479  esac
13480  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13481  shlibpath_overrides_runpath=no
13482  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13483  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13484  hardcode_into_libs=yes
13485  ;;
13486
13487# No shared lib support for Linux oldld, aout, or coff.
13488linux*oldld* | linux*aout* | linux*coff*)
13489  dynamic_linker=no
13490  ;;
13491
13492# This must be Linux ELF.
13493linux* | k*bsd*-gnu)
13494  version_type=linux
13495  need_lib_prefix=no
13496  need_version=no
13497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13498  soname_spec='${libname}${release}${shared_ext}$major'
13499  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13500  shlibpath_var=LD_LIBRARY_PATH
13501  shlibpath_overrides_runpath=no
13502  # This implies no fast_install, which is unacceptable.
13503  # Some rework will be needed to allow for fast_install
13504  # before this can be enabled.
13505  hardcode_into_libs=yes
13506  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13507  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13508
13509  # Append ld.so.conf contents to the search path
13510  if test -f /etc/ld.so.conf; then
13511    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' ' '`
13512    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13513  fi
13514
13515  # We used to test for /lib/ld.so.1 and disable shared libraries on
13516  # powerpc, because MkLinux only supported shared libraries with the
13517  # GNU dynamic linker.  Since this was broken with cross compilers,
13518  # most powerpc-linux boxes support dynamic linking these days and
13519  # people can always --disable-shared, the test was removed, and we
13520  # assume the GNU/Linux dynamic linker is in use.
13521  dynamic_linker='GNU/Linux ld.so'
13522  ;;
13523
13524netbsd*)
13525  version_type=sunos
13526  need_lib_prefix=no
13527  need_version=no
13528  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13529    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13530    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13531    dynamic_linker='NetBSD (a.out) ld.so'
13532  else
13533    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13534    soname_spec='${libname}${release}${shared_ext}$major'
13535    dynamic_linker='NetBSD ld.elf_so'
13536  fi
13537  shlibpath_var=LD_LIBRARY_PATH
13538  shlibpath_overrides_runpath=yes
13539  hardcode_into_libs=yes
13540  ;;
13541
13542newsos6)
13543  version_type=linux
13544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13545  shlibpath_var=LD_LIBRARY_PATH
13546  shlibpath_overrides_runpath=yes
13547  ;;
13548
13549nto-qnx*)
13550  version_type=linux
13551  need_lib_prefix=no
13552  need_version=no
13553  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13554  soname_spec='${libname}${release}${shared_ext}$major'
13555  shlibpath_var=LD_LIBRARY_PATH
13556  shlibpath_overrides_runpath=yes
13557  ;;
13558
13559openbsd*)
13560  version_type=sunos
13561  sys_lib_dlsearch_path_spec="/usr/lib"
13562  need_lib_prefix=no
13563  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13564  case $host_os in
13565    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13566    *)                         need_version=no  ;;
13567  esac
13568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13569  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13570  shlibpath_var=LD_LIBRARY_PATH
13571  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13572    case $host_os in
13573      openbsd2.[89] | openbsd2.[89].*)
13574	shlibpath_overrides_runpath=no
13575	;;
13576      *)
13577	shlibpath_overrides_runpath=yes
13578	;;
13579      esac
13580  else
13581    shlibpath_overrides_runpath=yes
13582  fi
13583  ;;
13584
13585os2*)
13586  libname_spec='$name'
13587  shrext_cmds=".dll"
13588  need_lib_prefix=no
13589  library_names_spec='$libname${shared_ext} $libname.a'
13590  dynamic_linker='OS/2 ld.exe'
13591  shlibpath_var=LIBPATH
13592  ;;
13593
13594osf3* | osf4* | osf5*)
13595  version_type=osf
13596  need_lib_prefix=no
13597  need_version=no
13598  soname_spec='${libname}${release}${shared_ext}$major'
13599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13600  shlibpath_var=LD_LIBRARY_PATH
13601  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13602  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13603  ;;
13604
13605rdos*)
13606  dynamic_linker=no
13607  ;;
13608
13609solaris*)
13610  version_type=linux
13611  need_lib_prefix=no
13612  need_version=no
13613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13614  soname_spec='${libname}${release}${shared_ext}$major'
13615  shlibpath_var=LD_LIBRARY_PATH
13616  shlibpath_overrides_runpath=yes
13617  hardcode_into_libs=yes
13618  # ldd complains unless libraries are executable
13619  postinstall_cmds='chmod +x $lib'
13620  ;;
13621
13622sunos4*)
13623  version_type=sunos
13624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13625  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13626  shlibpath_var=LD_LIBRARY_PATH
13627  shlibpath_overrides_runpath=yes
13628  if test "$with_gnu_ld" = yes; then
13629    need_lib_prefix=no
13630  fi
13631  need_version=yes
13632  ;;
13633
13634sysv4 | sysv4.3*)
13635  version_type=linux
13636  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13637  soname_spec='${libname}${release}${shared_ext}$major'
13638  shlibpath_var=LD_LIBRARY_PATH
13639  case $host_vendor in
13640    sni)
13641      shlibpath_overrides_runpath=no
13642      need_lib_prefix=no
13643      export_dynamic_flag_spec='${wl}-Blargedynsym'
13644      runpath_var=LD_RUN_PATH
13645      ;;
13646    siemens)
13647      need_lib_prefix=no
13648      ;;
13649    motorola)
13650      need_lib_prefix=no
13651      need_version=no
13652      shlibpath_overrides_runpath=no
13653      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13654      ;;
13655  esac
13656  ;;
13657
13658sysv4*MP*)
13659  if test -d /usr/nec ;then
13660    version_type=linux
13661    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13662    soname_spec='$libname${shared_ext}.$major'
13663    shlibpath_var=LD_LIBRARY_PATH
13664  fi
13665  ;;
13666
13667sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13668  version_type=freebsd-elf
13669  need_lib_prefix=no
13670  need_version=no
13671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13672  soname_spec='${libname}${release}${shared_ext}$major'
13673  shlibpath_var=LD_LIBRARY_PATH
13674  hardcode_into_libs=yes
13675  if test "$with_gnu_ld" = yes; then
13676    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13677    shlibpath_overrides_runpath=no
13678  else
13679    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13680    shlibpath_overrides_runpath=yes
13681    case $host_os in
13682      sco3.2v5*)
13683        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13684	;;
13685    esac
13686  fi
13687  sys_lib_dlsearch_path_spec='/usr/lib'
13688  ;;
13689
13690uts4*)
13691  version_type=linux
13692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13693  soname_spec='${libname}${release}${shared_ext}$major'
13694  shlibpath_var=LD_LIBRARY_PATH
13695  ;;
13696
13697*)
13698  dynamic_linker=no
13699  ;;
13700esac
13701{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13702$as_echo "$dynamic_linker" >&6; }
13703test "$dynamic_linker" = no && can_build_shared=no
13704
13705if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13706  $as_echo_n "(cached) " >&6
13707else
13708  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13709fi
13710
13711sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13712if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13713  $as_echo_n "(cached) " >&6
13714else
13715  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13716fi
13717
13718sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13719
13720variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13721if test "$GCC" = yes; then
13722  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13723fi
13724
13725{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13726$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13727hardcode_action_CXX=
13728if test -n "$hardcode_libdir_flag_spec_CXX" || \
13729   test -n "$runpath_var_CXX" || \
13730   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13731
13732  # We can hardcode non-existant directories.
13733  if test "$hardcode_direct_CXX" != no &&
13734     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13735     # have to relink, otherwise we might link with an installed library
13736     # when we should be linking with a yet-to-be-installed one
13737     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13738     test "$hardcode_minus_L_CXX" != no; then
13739    # Linking always hardcodes the temporary library directory.
13740    hardcode_action_CXX=relink
13741  else
13742    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13743    hardcode_action_CXX=immediate
13744  fi
13745else
13746  # We cannot hardcode anything, or else we can only hardcode existing
13747  # directories.
13748  hardcode_action_CXX=unsupported
13749fi
13750{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13751$as_echo "$hardcode_action_CXX" >&6; }
13752
13753if test "$hardcode_action_CXX" = relink; then
13754  # Fast installation is not supported
13755  enable_fast_install=no
13756elif test "$shlibpath_overrides_runpath" = yes ||
13757     test "$enable_shared" = no; then
13758  # Fast installation is not necessary
13759  enable_fast_install=needless
13760fi
13761
13762
13763# The else clause should only fire when bootstrapping the
13764# libtool distribution, otherwise you forgot to ship ltmain.sh
13765# with your package, and you will get complaints that there are
13766# no rules to generate ltmain.sh.
13767if test -f "$ltmain"; then
13768  # See if we are running on zsh, and set the options which allow our commands through
13769  # without removal of \ escapes.
13770  if test -n "${ZSH_VERSION+set}" ; then
13771    setopt NO_GLOB_SUBST
13772  fi
13773  # Now quote all the things that may contain metacharacters while being
13774  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13775  # variables and quote the copies for generation of the libtool script.
13776  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13777    SED SHELL STRIP \
13778    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13779    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13780    deplibs_check_method reload_flag reload_cmds need_locks \
13781    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13782    lt_cv_sys_global_symbol_to_c_name_address \
13783    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13784    old_postinstall_cmds old_postuninstall_cmds \
13785    compiler_CXX \
13786    CC_CXX \
13787    LD_CXX \
13788    lt_prog_compiler_wl_CXX \
13789    lt_prog_compiler_pic_CXX \
13790    lt_prog_compiler_static_CXX \
13791    lt_prog_compiler_no_builtin_flag_CXX \
13792    export_dynamic_flag_spec_CXX \
13793    thread_safe_flag_spec_CXX \
13794    whole_archive_flag_spec_CXX \
13795    enable_shared_with_static_runtimes_CXX \
13796    old_archive_cmds_CXX \
13797    old_archive_from_new_cmds_CXX \
13798    predep_objects_CXX \
13799    postdep_objects_CXX \
13800    predeps_CXX \
13801    postdeps_CXX \
13802    compiler_lib_search_path_CXX \
13803    compiler_lib_search_dirs_CXX \
13804    archive_cmds_CXX \
13805    archive_expsym_cmds_CXX \
13806    postinstall_cmds_CXX \
13807    postuninstall_cmds_CXX \
13808    old_archive_from_expsyms_cmds_CXX \
13809    allow_undefined_flag_CXX \
13810    no_undefined_flag_CXX \
13811    export_symbols_cmds_CXX \
13812    hardcode_libdir_flag_spec_CXX \
13813    hardcode_libdir_flag_spec_ld_CXX \
13814    hardcode_libdir_separator_CXX \
13815    hardcode_automatic_CXX \
13816    module_cmds_CXX \
13817    module_expsym_cmds_CXX \
13818    lt_cv_prog_compiler_c_o_CXX \
13819    fix_srcfile_path_CXX \
13820    exclude_expsyms_CXX \
13821    include_expsyms_CXX; do
13822
13823    case $var in
13824    old_archive_cmds_CXX | \
13825    old_archive_from_new_cmds_CXX | \
13826    archive_cmds_CXX | \
13827    archive_expsym_cmds_CXX | \
13828    module_cmds_CXX | \
13829    module_expsym_cmds_CXX | \
13830    old_archive_from_expsyms_cmds_CXX | \
13831    export_symbols_cmds_CXX | \
13832    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13833    postinstall_cmds | postuninstall_cmds | \
13834    old_postinstall_cmds | old_postuninstall_cmds | \
13835    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13836      # Double-quote double-evaled strings.
13837      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13838      ;;
13839    *)
13840      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13841      ;;
13842    esac
13843  done
13844
13845  case $lt_echo in
13846  *'\$0 --fallback-echo"')
13847    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13848    ;;
13849  esac
13850
13851cfgfile="$ofile"
13852
13853  cat <<__EOF__ >> "$cfgfile"
13854# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13855
13856# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13857
13858# Shell to use when invoking shell scripts.
13859SHELL=$lt_SHELL
13860
13861# Whether or not to build shared libraries.
13862build_libtool_libs=$enable_shared
13863
13864# Whether or not to build static libraries.
13865build_old_libs=$enable_static
13866
13867# Whether or not to add -lc for building shared libraries.
13868build_libtool_need_lc=$archive_cmds_need_lc_CXX
13869
13870# Whether or not to disallow shared libs when runtime libs are static
13871allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13872
13873# Whether or not to optimize for fast installation.
13874fast_install=$enable_fast_install
13875
13876# The host system.
13877host_alias=$host_alias
13878host=$host
13879host_os=$host_os
13880
13881# The build system.
13882build_alias=$build_alias
13883build=$build
13884build_os=$build_os
13885
13886# An echo program that does not interpret backslashes.
13887echo=$lt_echo
13888
13889# The archiver.
13890AR=$lt_AR
13891AR_FLAGS=$lt_AR_FLAGS
13892
13893# A C compiler.
13894LTCC=$lt_LTCC
13895
13896# LTCC compiler flags.
13897LTCFLAGS=$lt_LTCFLAGS
13898
13899# A language-specific compiler.
13900CC=$lt_compiler_CXX
13901
13902# Is the compiler the GNU C compiler?
13903with_gcc=$GCC_CXX
13904
13905# An ERE matcher.
13906EGREP=$lt_EGREP
13907
13908# The linker used to build libraries.
13909LD=$lt_LD_CXX
13910
13911# Whether we need hard or soft links.
13912LN_S=$lt_LN_S
13913
13914# A BSD-compatible nm program.
13915NM=$lt_NM
13916
13917# A symbol stripping program
13918STRIP=$lt_STRIP
13919
13920# Used to examine libraries when file_magic_cmd begins "file"
13921MAGIC_CMD=$MAGIC_CMD
13922
13923# Used on cygwin: DLL creation program.
13924DLLTOOL="$DLLTOOL"
13925
13926# Used on cygwin: object dumper.
13927OBJDUMP="$OBJDUMP"
13928
13929# Used on cygwin: assembler.
13930AS="$AS"
13931
13932# The name of the directory that contains temporary libtool files.
13933objdir=$objdir
13934
13935# How to create reloadable object files.
13936reload_flag=$lt_reload_flag
13937reload_cmds=$lt_reload_cmds
13938
13939# How to pass a linker flag through the compiler.
13940wl=$lt_lt_prog_compiler_wl_CXX
13941
13942# Object file suffix (normally "o").
13943objext="$ac_objext"
13944
13945# Old archive suffix (normally "a").
13946libext="$libext"
13947
13948# Shared library suffix (normally ".so").
13949shrext_cmds='$shrext_cmds'
13950
13951# Executable file suffix (normally "").
13952exeext="$exeext"
13953
13954# Additional compiler flags for building library objects.
13955pic_flag=$lt_lt_prog_compiler_pic_CXX
13956pic_mode=$pic_mode
13957
13958# What is the maximum length of a command?
13959max_cmd_len=$lt_cv_sys_max_cmd_len
13960
13961# Does compiler simultaneously support -c and -o options?
13962compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13963
13964# Must we lock files when doing compilation?
13965need_locks=$lt_need_locks
13966
13967# Do we need the lib prefix for modules?
13968need_lib_prefix=$need_lib_prefix
13969
13970# Do we need a version for libraries?
13971need_version=$need_version
13972
13973# Whether dlopen is supported.
13974dlopen_support=$enable_dlopen
13975
13976# Whether dlopen of programs is supported.
13977dlopen_self=$enable_dlopen_self
13978
13979# Whether dlopen of statically linked programs is supported.
13980dlopen_self_static=$enable_dlopen_self_static
13981
13982# Compiler flag to prevent dynamic linking.
13983link_static_flag=$lt_lt_prog_compiler_static_CXX
13984
13985# Compiler flag to turn off builtin functions.
13986no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13987
13988# Compiler flag to allow reflexive dlopens.
13989export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13990
13991# Compiler flag to generate shared objects directly from archives.
13992whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13993
13994# Compiler flag to generate thread-safe objects.
13995thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13996
13997# Library versioning type.
13998version_type=$version_type
13999
14000# Format of library name prefix.
14001libname_spec=$lt_libname_spec
14002
14003# List of archive names.  First name is the real one, the rest are links.
14004# The last name is the one that the linker finds with -lNAME.
14005library_names_spec=$lt_library_names_spec
14006
14007# The coded name of the library, if different from the real name.
14008soname_spec=$lt_soname_spec
14009
14010# Commands used to build and install an old-style archive.
14011RANLIB=$lt_RANLIB
14012old_archive_cmds=$lt_old_archive_cmds_CXX
14013old_postinstall_cmds=$lt_old_postinstall_cmds
14014old_postuninstall_cmds=$lt_old_postuninstall_cmds
14015
14016# Create an old-style archive from a shared archive.
14017old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14018
14019# Create a temporary old-style archive to link instead of a shared archive.
14020old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14021
14022# Commands used to build and install a shared archive.
14023archive_cmds=$lt_archive_cmds_CXX
14024archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14025postinstall_cmds=$lt_postinstall_cmds
14026postuninstall_cmds=$lt_postuninstall_cmds
14027
14028# Commands used to build a loadable module (assumed same as above if empty)
14029module_cmds=$lt_module_cmds_CXX
14030module_expsym_cmds=$lt_module_expsym_cmds_CXX
14031
14032# Commands to strip libraries.
14033old_striplib=$lt_old_striplib
14034striplib=$lt_striplib
14035
14036# Dependencies to place before the objects being linked to create a
14037# shared library.
14038predep_objects=$lt_predep_objects_CXX
14039
14040# Dependencies to place after the objects being linked to create a
14041# shared library.
14042postdep_objects=$lt_postdep_objects_CXX
14043
14044# Dependencies to place before the objects being linked to create a
14045# shared library.
14046predeps=$lt_predeps_CXX
14047
14048# Dependencies to place after the objects being linked to create a
14049# shared library.
14050postdeps=$lt_postdeps_CXX
14051
14052# The directories searched by this compiler when creating a shared
14053# library
14054compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14055
14056# The library search path used internally by the compiler when linking
14057# a shared library.
14058compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14059
14060# Method to check whether dependent libraries are shared objects.
14061deplibs_check_method=$lt_deplibs_check_method
14062
14063# Command to use when deplibs_check_method == file_magic.
14064file_magic_cmd=$lt_file_magic_cmd
14065
14066# Flag that allows shared libraries with undefined symbols to be built.
14067allow_undefined_flag=$lt_allow_undefined_flag_CXX
14068
14069# Flag that forces no undefined symbols.
14070no_undefined_flag=$lt_no_undefined_flag_CXX
14071
14072# Commands used to finish a libtool library installation in a directory.
14073finish_cmds=$lt_finish_cmds
14074
14075# Same as above, but a single script fragment to be evaled but not shown.
14076finish_eval=$lt_finish_eval
14077
14078# Take the output of nm and produce a listing of raw symbols and C names.
14079global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14080
14081# Transform the output of nm in a proper C declaration
14082global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14083
14084# Transform the output of nm in a C name address pair
14085global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14086
14087# This is the shared library runtime path variable.
14088runpath_var=$runpath_var
14089
14090# This is the shared library path variable.
14091shlibpath_var=$shlibpath_var
14092
14093# Is shlibpath searched before the hard-coded library search path?
14094shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14095
14096# How to hardcode a shared library path into an executable.
14097hardcode_action=$hardcode_action_CXX
14098
14099# Whether we should hardcode library paths into libraries.
14100hardcode_into_libs=$hardcode_into_libs
14101
14102# Flag to hardcode \$libdir into a binary during linking.
14103# This must work even if \$libdir does not exist.
14104hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14105
14106# If ld is used when linking, flag to hardcode \$libdir into
14107# a binary during linking. This must work even if \$libdir does
14108# not exist.
14109hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14110
14111# Whether we need a single -rpath flag with a separated argument.
14112hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14113
14114# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14115# resulting binary.
14116hardcode_direct=$hardcode_direct_CXX
14117
14118# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14119# resulting binary.
14120hardcode_minus_L=$hardcode_minus_L_CXX
14121
14122# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14123# the resulting binary.
14124hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14125
14126# Set to yes if building a shared library automatically hardcodes DIR into the library
14127# and all subsequent libraries and executables linked against it.
14128hardcode_automatic=$hardcode_automatic_CXX
14129
14130# Variables whose values should be saved in libtool wrapper scripts and
14131# restored at relink time.
14132variables_saved_for_relink="$variables_saved_for_relink"
14133
14134# Whether libtool must link a program against all its dependency libraries.
14135link_all_deplibs=$link_all_deplibs_CXX
14136
14137# Compile-time system search path for libraries
14138sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14139
14140# Run-time system search path for libraries
14141sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14142
14143# Fix the shell variable \$srcfile for the compiler.
14144fix_srcfile_path=$lt_fix_srcfile_path
14145
14146# Set to yes if exported symbols are required.
14147always_export_symbols=$always_export_symbols_CXX
14148
14149# The commands to list exported symbols.
14150export_symbols_cmds=$lt_export_symbols_cmds_CXX
14151
14152# The commands to extract the exported symbol list from a shared archive.
14153extract_expsyms_cmds=$lt_extract_expsyms_cmds
14154
14155# Symbols that should not be listed in the preloaded symbols.
14156exclude_expsyms=$lt_exclude_expsyms_CXX
14157
14158# Symbols that must always be exported.
14159include_expsyms=$lt_include_expsyms_CXX
14160
14161# ### END LIBTOOL TAG CONFIG: $tagname
14162
14163__EOF__
14164
14165
14166else
14167  # If there is no Makefile yet, we rely on a make rule to execute
14168  # `config.status --recheck' to rerun these tests and create the
14169  # libtool script then.
14170  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14171  if test -f "$ltmain_in"; then
14172    test -f Makefile && make "$ltmain"
14173  fi
14174fi
14175
14176
14177ac_ext=c
14178ac_cpp='$CPP $CPPFLAGS'
14179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14181ac_compiler_gnu=$ac_cv_c_compiler_gnu
14182
14183CC=$lt_save_CC
14184LDCXX=$LD
14185LD=$lt_save_LD
14186GCC=$lt_save_GCC
14187with_gnu_ldcxx=$with_gnu_ld
14188with_gnu_ld=$lt_save_with_gnu_ld
14189lt_cv_path_LDCXX=$lt_cv_path_LD
14190lt_cv_path_LD=$lt_save_path_LD
14191lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14192lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14193
14194	else
14195	  tagname=""
14196	fi
14197	;;
14198
14199      F77)
14200	if test -n "$F77" && test "X$F77" != "Xno"; then
14201
14202ac_ext=f
14203ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14204ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14205ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14206
14207
14208archive_cmds_need_lc_F77=no
14209allow_undefined_flag_F77=
14210always_export_symbols_F77=no
14211archive_expsym_cmds_F77=
14212export_dynamic_flag_spec_F77=
14213hardcode_direct_F77=no
14214hardcode_libdir_flag_spec_F77=
14215hardcode_libdir_flag_spec_ld_F77=
14216hardcode_libdir_separator_F77=
14217hardcode_minus_L_F77=no
14218hardcode_automatic_F77=no
14219module_cmds_F77=
14220module_expsym_cmds_F77=
14221link_all_deplibs_F77=unknown
14222old_archive_cmds_F77=$old_archive_cmds
14223no_undefined_flag_F77=
14224whole_archive_flag_spec_F77=
14225enable_shared_with_static_runtimes_F77=no
14226
14227# Source file extension for f77 test sources.
14228ac_ext=f
14229
14230# Object file extension for compiled f77 test sources.
14231objext=o
14232objext_F77=$objext
14233
14234# Code to be used in simple compile tests
14235lt_simple_compile_test_code="\
14236      subroutine t
14237      return
14238      end
14239"
14240
14241# Code to be used in simple link tests
14242lt_simple_link_test_code="\
14243      program t
14244      end
14245"
14246
14247# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14248
14249# If no C compiler was specified, use CC.
14250LTCC=${LTCC-"$CC"}
14251
14252# If no C compiler flags were specified, use CFLAGS.
14253LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14254
14255# Allow CC to be a program name with arguments.
14256compiler=$CC
14257
14258
14259# save warnings/boilerplate of simple test code
14260ac_outfile=conftest.$ac_objext
14261echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14262eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14263_lt_compiler_boilerplate=`cat conftest.err`
14264$rm conftest*
14265
14266ac_outfile=conftest.$ac_objext
14267echo "$lt_simple_link_test_code" >conftest.$ac_ext
14268eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14269_lt_linker_boilerplate=`cat conftest.err`
14270$rm -r conftest*
14271
14272
14273# Allow CC to be a program name with arguments.
14274lt_save_CC="$CC"
14275CC=${F77-"f77"}
14276compiler=$CC
14277compiler_F77=$CC
14278for cc_temp in $compiler""; do
14279  case $cc_temp in
14280    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14281    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14282    \-*) ;;
14283    *) break;;
14284  esac
14285done
14286cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14287
14288
14289{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14290$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14291{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14292$as_echo "$can_build_shared" >&6; }
14293
14294{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14295$as_echo_n "checking whether to build shared libraries... " >&6; }
14296test "$can_build_shared" = "no" && enable_shared=no
14297
14298# On AIX, shared libraries and static libraries use the same namespace, and
14299# are all built from PIC.
14300case $host_os in
14301aix3*)
14302  test "$enable_shared" = yes && enable_static=no
14303  if test -n "$RANLIB"; then
14304    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14305    postinstall_cmds='$RANLIB $lib'
14306  fi
14307  ;;
14308aix[4-9]*)
14309  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14310    test "$enable_shared" = yes && enable_static=no
14311  fi
14312  ;;
14313esac
14314{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14315$as_echo "$enable_shared" >&6; }
14316
14317{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14318$as_echo_n "checking whether to build static libraries... " >&6; }
14319# Make sure either enable_shared or enable_static is yes.
14320test "$enable_shared" = yes || enable_static=yes
14321{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14322$as_echo "$enable_static" >&6; }
14323
14324GCC_F77="$G77"
14325LD_F77="$LD"
14326
14327lt_prog_compiler_wl_F77=
14328lt_prog_compiler_pic_F77=
14329lt_prog_compiler_static_F77=
14330
14331{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14332$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14333
14334  if test "$GCC" = yes; then
14335    lt_prog_compiler_wl_F77='-Wl,'
14336    lt_prog_compiler_static_F77='-static'
14337
14338    case $host_os in
14339      aix*)
14340      # All AIX code is PIC.
14341      if test "$host_cpu" = ia64; then
14342	# AIX 5 now supports IA64 processor
14343	lt_prog_compiler_static_F77='-Bstatic'
14344      fi
14345      ;;
14346
14347    amigaos*)
14348      # FIXME: we need at least 68020 code to build shared libraries, but
14349      # adding the `-m68020' flag to GCC prevents building anything better,
14350      # like `-m68040'.
14351      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14352      ;;
14353
14354    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14355      # PIC is the default for these OSes.
14356      ;;
14357
14358    mingw* | cygwin* | pw32* | os2*)
14359      # This hack is so that the source file can tell whether it is being
14360      # built for inclusion in a dll (and should export symbols for example).
14361      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14362      # (--disable-auto-import) libraries
14363      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14364      ;;
14365
14366    darwin* | rhapsody*)
14367      # PIC is the default on this platform
14368      # Common symbols not allowed in MH_DYLIB files
14369      lt_prog_compiler_pic_F77='-fno-common'
14370      ;;
14371
14372    interix[3-9]*)
14373      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14374      # Instead, we relocate shared libraries at runtime.
14375      ;;
14376
14377    msdosdjgpp*)
14378      # Just because we use GCC doesn't mean we suddenly get shared libraries
14379      # on systems that don't support them.
14380      lt_prog_compiler_can_build_shared_F77=no
14381      enable_shared=no
14382      ;;
14383
14384    sysv4*MP*)
14385      if test -d /usr/nec; then
14386	lt_prog_compiler_pic_F77=-Kconform_pic
14387      fi
14388      ;;
14389
14390    hpux*)
14391      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14392      # not for PA HP-UX.
14393      case $host_cpu in
14394      hppa*64*|ia64*)
14395	# +Z the default
14396	;;
14397      *)
14398	lt_prog_compiler_pic_F77='-fPIC'
14399	;;
14400      esac
14401      ;;
14402
14403    *)
14404      lt_prog_compiler_pic_F77='-fPIC'
14405      ;;
14406    esac
14407  else
14408    # PORTME Check for flag to pass linker flags through the system compiler.
14409    case $host_os in
14410    aix*)
14411      lt_prog_compiler_wl_F77='-Wl,'
14412      if test "$host_cpu" = ia64; then
14413	# AIX 5 now supports IA64 processor
14414	lt_prog_compiler_static_F77='-Bstatic'
14415      else
14416	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14417      fi
14418      ;;
14419      darwin*)
14420        # PIC is the default on this platform
14421        # Common symbols not allowed in MH_DYLIB files
14422       case $cc_basename in
14423         xlc*)
14424         lt_prog_compiler_pic_F77='-qnocommon'
14425         lt_prog_compiler_wl_F77='-Wl,'
14426         ;;
14427       esac
14428       ;;
14429
14430    mingw* | cygwin* | pw32* | os2*)
14431      # This hack is so that the source file can tell whether it is being
14432      # built for inclusion in a dll (and should export symbols for example).
14433      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14434      ;;
14435
14436    hpux9* | hpux10* | hpux11*)
14437      lt_prog_compiler_wl_F77='-Wl,'
14438      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14439      # not for PA HP-UX.
14440      case $host_cpu in
14441      hppa*64*|ia64*)
14442	# +Z the default
14443	;;
14444      *)
14445	lt_prog_compiler_pic_F77='+Z'
14446	;;
14447      esac
14448      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14449      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14450      ;;
14451
14452    irix5* | irix6* | nonstopux*)
14453      lt_prog_compiler_wl_F77='-Wl,'
14454      # PIC (with -KPIC) is the default.
14455      lt_prog_compiler_static_F77='-non_shared'
14456      ;;
14457
14458    newsos6)
14459      lt_prog_compiler_pic_F77='-KPIC'
14460      lt_prog_compiler_static_F77='-Bstatic'
14461      ;;
14462
14463    linux* | k*bsd*-gnu)
14464      case $cc_basename in
14465      icc* | ecc*)
14466	lt_prog_compiler_wl_F77='-Wl,'
14467	lt_prog_compiler_pic_F77='-KPIC'
14468	lt_prog_compiler_static_F77='-static'
14469        ;;
14470      pgcc* | pgf77* | pgf90* | pgf95*)
14471        # Portland Group compilers (*not* the Pentium gcc compiler,
14472	# which looks to be a dead project)
14473	lt_prog_compiler_wl_F77='-Wl,'
14474	lt_prog_compiler_pic_F77='-fpic'
14475	lt_prog_compiler_static_F77='-Bstatic'
14476        ;;
14477      ccc*)
14478        lt_prog_compiler_wl_F77='-Wl,'
14479        # All Alpha code is PIC.
14480        lt_prog_compiler_static_F77='-non_shared'
14481        ;;
14482      *)
14483        case `$CC -V 2>&1 | sed 5q` in
14484	*Sun\ C*)
14485	  # Sun C 5.9
14486	  lt_prog_compiler_pic_F77='-KPIC'
14487	  lt_prog_compiler_static_F77='-Bstatic'
14488	  lt_prog_compiler_wl_F77='-Wl,'
14489	  ;;
14490	*Sun\ F*)
14491	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14492	  lt_prog_compiler_pic_F77='-KPIC'
14493	  lt_prog_compiler_static_F77='-Bstatic'
14494	  lt_prog_compiler_wl_F77=''
14495	  ;;
14496	esac
14497	;;
14498      esac
14499      ;;
14500
14501    osf3* | osf4* | osf5*)
14502      lt_prog_compiler_wl_F77='-Wl,'
14503      # All OSF/1 code is PIC.
14504      lt_prog_compiler_static_F77='-non_shared'
14505      ;;
14506
14507    rdos*)
14508      lt_prog_compiler_static_F77='-non_shared'
14509      ;;
14510
14511    solaris*)
14512      lt_prog_compiler_pic_F77='-KPIC'
14513      lt_prog_compiler_static_F77='-Bstatic'
14514      case $cc_basename in
14515      f77* | f90* | f95*)
14516	lt_prog_compiler_wl_F77='-Qoption ld ';;
14517      *)
14518	lt_prog_compiler_wl_F77='-Wl,';;
14519      esac
14520      ;;
14521
14522    sunos4*)
14523      lt_prog_compiler_wl_F77='-Qoption ld '
14524      lt_prog_compiler_pic_F77='-PIC'
14525      lt_prog_compiler_static_F77='-Bstatic'
14526      ;;
14527
14528    sysv4 | sysv4.2uw2* | sysv4.3*)
14529      lt_prog_compiler_wl_F77='-Wl,'
14530      lt_prog_compiler_pic_F77='-KPIC'
14531      lt_prog_compiler_static_F77='-Bstatic'
14532      ;;
14533
14534    sysv4*MP*)
14535      if test -d /usr/nec ;then
14536	lt_prog_compiler_pic_F77='-Kconform_pic'
14537	lt_prog_compiler_static_F77='-Bstatic'
14538      fi
14539      ;;
14540
14541    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14542      lt_prog_compiler_wl_F77='-Wl,'
14543      lt_prog_compiler_pic_F77='-KPIC'
14544      lt_prog_compiler_static_F77='-Bstatic'
14545      ;;
14546
14547    unicos*)
14548      lt_prog_compiler_wl_F77='-Wl,'
14549      lt_prog_compiler_can_build_shared_F77=no
14550      ;;
14551
14552    uts4*)
14553      lt_prog_compiler_pic_F77='-pic'
14554      lt_prog_compiler_static_F77='-Bstatic'
14555      ;;
14556
14557    *)
14558      lt_prog_compiler_can_build_shared_F77=no
14559      ;;
14560    esac
14561  fi
14562
14563{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14564$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14565
14566#
14567# Check to make sure the PIC flag actually works.
14568#
14569if test -n "$lt_prog_compiler_pic_F77"; then
14570
14571{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14572$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14573if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14574  $as_echo_n "(cached) " >&6
14575else
14576  lt_cv_prog_compiler_pic_works_F77=no
14577  ac_outfile=conftest.$ac_objext
14578   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14579   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14580   # Insert the option either (1) after the last *FLAGS variable, or
14581   # (2) before a word containing "conftest.", or (3) at the end.
14582   # Note that $ac_compile itself does not contain backslashes and begins
14583   # with a dollar sign (not a hyphen), so the echo should work correctly.
14584   # The option is referenced via a variable to avoid confusing sed.
14585   lt_compile=`echo "$ac_compile" | $SED \
14586   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14587   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14588   -e 's:$: $lt_compiler_flag:'`
14589   (eval echo "\"\$as_me:14589: $lt_compile\"" >&5)
14590   (eval "$lt_compile" 2>conftest.err)
14591   ac_status=$?
14592   cat conftest.err >&5
14593   echo "$as_me:14593: \$? = $ac_status" >&5
14594   if (exit $ac_status) && test -s "$ac_outfile"; then
14595     # The compiler can only warn and ignore the option if not recognized
14596     # So say no if there are warnings other than the usual output.
14597     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14598     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14599     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14600       lt_cv_prog_compiler_pic_works_F77=yes
14601     fi
14602   fi
14603   $rm conftest*
14604
14605fi
14606{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14607$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14608
14609if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14610    case $lt_prog_compiler_pic_F77 in
14611     "" | " "*) ;;
14612     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14613     esac
14614else
14615    lt_prog_compiler_pic_F77=
14616     lt_prog_compiler_can_build_shared_F77=no
14617fi
14618
14619fi
14620case $host_os in
14621  # For platforms which do not support PIC, -DPIC is meaningless:
14622  *djgpp*)
14623    lt_prog_compiler_pic_F77=
14624    ;;
14625  *)
14626    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14627    ;;
14628esac
14629
14630#
14631# Check to make sure the static flag actually works.
14632#
14633wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14634{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14635$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14636if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14637  $as_echo_n "(cached) " >&6
14638else
14639  lt_cv_prog_compiler_static_works_F77=no
14640   save_LDFLAGS="$LDFLAGS"
14641   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14642   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14643   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14644     # The linker can only warn and ignore the option if not recognized
14645     # So say no if there are warnings
14646     if test -s conftest.err; then
14647       # Append any errors to the config.log.
14648       cat conftest.err 1>&5
14649       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14650       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14651       if diff conftest.exp conftest.er2 >/dev/null; then
14652         lt_cv_prog_compiler_static_works_F77=yes
14653       fi
14654     else
14655       lt_cv_prog_compiler_static_works_F77=yes
14656     fi
14657   fi
14658   $rm -r conftest*
14659   LDFLAGS="$save_LDFLAGS"
14660
14661fi
14662{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14663$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14664
14665if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14666    :
14667else
14668    lt_prog_compiler_static_F77=
14669fi
14670
14671
14672{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14673$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14674if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14675  $as_echo_n "(cached) " >&6
14676else
14677  lt_cv_prog_compiler_c_o_F77=no
14678   $rm -r conftest 2>/dev/null
14679   mkdir conftest
14680   cd conftest
14681   mkdir out
14682   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14683
14684   lt_compiler_flag="-o out/conftest2.$ac_objext"
14685   # Insert the option either (1) after the last *FLAGS variable, or
14686   # (2) before a word containing "conftest.", or (3) at the end.
14687   # Note that $ac_compile itself does not contain backslashes and begins
14688   # with a dollar sign (not a hyphen), so the echo should work correctly.
14689   lt_compile=`echo "$ac_compile" | $SED \
14690   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14691   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14692   -e 's:$: $lt_compiler_flag:'`
14693   (eval echo "\"\$as_me:14693: $lt_compile\"" >&5)
14694   (eval "$lt_compile" 2>out/conftest.err)
14695   ac_status=$?
14696   cat out/conftest.err >&5
14697   echo "$as_me:14697: \$? = $ac_status" >&5
14698   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14699   then
14700     # The compiler can only warn and ignore the option if not recognized
14701     # So say no if there are warnings
14702     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14703     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14704     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14705       lt_cv_prog_compiler_c_o_F77=yes
14706     fi
14707   fi
14708   chmod u+w . 2>&5
14709   $rm conftest*
14710   # SGI C++ compiler will create directory out/ii_files/ for
14711   # template instantiation
14712   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14713   $rm out/* && rmdir out
14714   cd ..
14715   rmdir conftest
14716   $rm conftest*
14717
14718fi
14719{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14720$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14721
14722
14723hard_links="nottested"
14724if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14725  # do not overwrite the value of need_locks provided by the user
14726  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14727$as_echo_n "checking if we can lock with hard links... " >&6; }
14728  hard_links=yes
14729  $rm conftest*
14730  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14731  touch conftest.a
14732  ln conftest.a conftest.b 2>&5 || hard_links=no
14733  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14734  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14735$as_echo "$hard_links" >&6; }
14736  if test "$hard_links" = no; then
14737    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14738$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14739    need_locks=warn
14740  fi
14741else
14742  need_locks=no
14743fi
14744
14745{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14746$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14747
14748  runpath_var=
14749  allow_undefined_flag_F77=
14750  enable_shared_with_static_runtimes_F77=no
14751  archive_cmds_F77=
14752  archive_expsym_cmds_F77=
14753  old_archive_From_new_cmds_F77=
14754  old_archive_from_expsyms_cmds_F77=
14755  export_dynamic_flag_spec_F77=
14756  whole_archive_flag_spec_F77=
14757  thread_safe_flag_spec_F77=
14758  hardcode_libdir_flag_spec_F77=
14759  hardcode_libdir_flag_spec_ld_F77=
14760  hardcode_libdir_separator_F77=
14761  hardcode_direct_F77=no
14762  hardcode_minus_L_F77=no
14763  hardcode_shlibpath_var_F77=unsupported
14764  link_all_deplibs_F77=unknown
14765  hardcode_automatic_F77=no
14766  module_cmds_F77=
14767  module_expsym_cmds_F77=
14768  always_export_symbols_F77=no
14769  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14770  # include_expsyms should be a list of space-separated symbols to be *always*
14771  # included in the symbol list
14772  include_expsyms_F77=
14773  # exclude_expsyms can be an extended regexp of symbols to exclude
14774  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14775  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14776  # as well as any symbol that contains `d'.
14777  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14778  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14779  # platforms (ab)use it in PIC code, but their linkers get confused if
14780  # the symbol is explicitly referenced.  Since portable code cannot
14781  # rely on this symbol name, it's probably fine to never include it in
14782  # preloaded symbol tables.
14783  # Exclude shared library initialization/finalization symbols.
14784  extract_expsyms_cmds=
14785  # Just being paranoid about ensuring that cc_basename is set.
14786  for cc_temp in $compiler""; do
14787  case $cc_temp in
14788    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14789    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14790    \-*) ;;
14791    *) break;;
14792  esac
14793done
14794cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14795
14796  case $host_os in
14797  cygwin* | mingw* | pw32*)
14798    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14799    # When not using gcc, we currently assume that we are using
14800    # Microsoft Visual C++.
14801    if test "$GCC" != yes; then
14802      with_gnu_ld=no
14803    fi
14804    ;;
14805  interix*)
14806    # we just hope/assume this is gcc and not c89 (= MSVC++)
14807    with_gnu_ld=yes
14808    ;;
14809  openbsd*)
14810    with_gnu_ld=no
14811    ;;
14812  esac
14813
14814  ld_shlibs_F77=yes
14815  if test "$with_gnu_ld" = yes; then
14816    # If archive_cmds runs LD, not CC, wlarc should be empty
14817    wlarc='${wl}'
14818
14819    # Set some defaults for GNU ld with shared library support. These
14820    # are reset later if shared libraries are not supported. Putting them
14821    # here allows them to be overridden if necessary.
14822    runpath_var=LD_RUN_PATH
14823    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14824    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14825    # ancient GNU ld didn't support --whole-archive et. al.
14826    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14827	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14828      else
14829  	whole_archive_flag_spec_F77=
14830    fi
14831    supports_anon_versioning=no
14832    case `$LD -v 2>/dev/null` in
14833      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14834      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14835      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14836      *\ 2.11.*) ;; # other 2.11 versions
14837      *) supports_anon_versioning=yes ;;
14838    esac
14839
14840    # See if GNU ld supports shared libraries.
14841    case $host_os in
14842    aix[3-9]*)
14843      # On AIX/PPC, the GNU linker is very broken
14844      if test "$host_cpu" != ia64; then
14845	ld_shlibs_F77=no
14846	cat <<EOF 1>&2
14847
14848*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14849*** to be unable to reliably create shared libraries on AIX.
14850*** Therefore, libtool is disabling shared libraries support.  If you
14851*** really care for shared libraries, you may want to modify your PATH
14852*** so that a non-GNU linker is found, and then restart.
14853
14854EOF
14855      fi
14856      ;;
14857
14858    amigaos*)
14859      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)'
14860      hardcode_libdir_flag_spec_F77='-L$libdir'
14861      hardcode_minus_L_F77=yes
14862
14863      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14864      # that the semantics of dynamic libraries on AmigaOS, at least up
14865      # to version 4, is to share data among multiple programs linked
14866      # with the same dynamic library.  Since this doesn't match the
14867      # behavior of shared libraries on other platforms, we can't use
14868      # them.
14869      ld_shlibs_F77=no
14870      ;;
14871
14872    beos*)
14873      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14874	allow_undefined_flag_F77=unsupported
14875	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14876	# support --undefined.  This deserves some investigation.  FIXME
14877	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14878      else
14879	ld_shlibs_F77=no
14880      fi
14881      ;;
14882
14883    cygwin* | mingw* | pw32*)
14884      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14885      # as there is no search path for DLLs.
14886      hardcode_libdir_flag_spec_F77='-L$libdir'
14887      allow_undefined_flag_F77=unsupported
14888      always_export_symbols_F77=no
14889      enable_shared_with_static_runtimes_F77=yes
14890      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14891
14892      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14893        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14894	# If the export-symbols file already is a .def file (1st line
14895	# is EXPORTS), use it as is; otherwise, prepend...
14896	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14897	  cp $export_symbols $output_objdir/$soname.def;
14898	else
14899	  echo EXPORTS > $output_objdir/$soname.def;
14900	  cat $export_symbols >> $output_objdir/$soname.def;
14901	fi~
14902	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14903      else
14904	ld_shlibs_F77=no
14905      fi
14906      ;;
14907
14908    interix[3-9]*)
14909      hardcode_direct_F77=no
14910      hardcode_shlibpath_var_F77=no
14911      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14912      export_dynamic_flag_spec_F77='${wl}-E'
14913      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14914      # Instead, shared libraries are loaded at an image base (0x10000000 by
14915      # default) and relocated if they conflict, which is a slow very memory
14916      # consuming and fragmenting process.  To avoid this, we pick a random,
14917      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14918      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14919      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'
14920      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'
14921      ;;
14922
14923    gnu* | linux* | k*bsd*-gnu)
14924      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14925	tmp_addflag=
14926	case $cc_basename,$host_cpu in
14927	pgcc*)				# Portland Group C compiler
14928	  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'
14929	  tmp_addflag=' $pic_flag'
14930	  ;;
14931	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14932	  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'
14933	  tmp_addflag=' $pic_flag -Mnomain' ;;
14934	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14935	  tmp_addflag=' -i_dynamic' ;;
14936	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14937	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14938	ifc* | ifort*)			# Intel Fortran compiler
14939	  tmp_addflag=' -nofor_main' ;;
14940	esac
14941	case `$CC -V 2>&1 | sed 5q` in
14942	*Sun\ C*)			# Sun C 5.9
14943	  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'
14944	  tmp_sharedflag='-G' ;;
14945	*Sun\ F*)			# Sun Fortran 8.3
14946	  tmp_sharedflag='-G' ;;
14947	*)
14948	  tmp_sharedflag='-shared' ;;
14949	esac
14950	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14951
14952	if test $supports_anon_versioning = yes; then
14953	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14954  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14955  $echo "local: *; };" >> $output_objdir/$libname.ver~
14956	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14957	fi
14958      else
14959	ld_shlibs_F77=no
14960      fi
14961      ;;
14962
14963    netbsd*)
14964      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14965	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14966	wlarc=
14967      else
14968	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14969	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14970      fi
14971      ;;
14972
14973    solaris*)
14974      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14975	ld_shlibs_F77=no
14976	cat <<EOF 1>&2
14977
14978*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14979*** create shared libraries on Solaris systems.  Therefore, libtool
14980*** is disabling shared libraries support.  We urge you to upgrade GNU
14981*** binutils to release 2.9.1 or newer.  Another option is to modify
14982*** your PATH or compiler configuration so that the native linker is
14983*** used, and then restart.
14984
14985EOF
14986      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14987	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14988	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14989      else
14990	ld_shlibs_F77=no
14991      fi
14992      ;;
14993
14994    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14995      case `$LD -v 2>&1` in
14996        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14997	ld_shlibs_F77=no
14998	cat <<_LT_EOF 1>&2
14999
15000*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15001*** reliably create shared libraries on SCO systems.  Therefore, libtool
15002*** is disabling shared libraries support.  We urge you to upgrade GNU
15003*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15004*** your PATH or compiler configuration so that the native linker is
15005*** used, and then restart.
15006
15007_LT_EOF
15008	;;
15009	*)
15010	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15011	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15012	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15013	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15014	  else
15015	    ld_shlibs_F77=no
15016	  fi
15017	;;
15018      esac
15019      ;;
15020
15021    sunos4*)
15022      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15023      wlarc=
15024      hardcode_direct_F77=yes
15025      hardcode_shlibpath_var_F77=no
15026      ;;
15027
15028    *)
15029      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15030	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15031	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15032      else
15033	ld_shlibs_F77=no
15034      fi
15035      ;;
15036    esac
15037
15038    if test "$ld_shlibs_F77" = no; then
15039      runpath_var=
15040      hardcode_libdir_flag_spec_F77=
15041      export_dynamic_flag_spec_F77=
15042      whole_archive_flag_spec_F77=
15043    fi
15044  else
15045    # PORTME fill in a description of your system's linker (not GNU ld)
15046    case $host_os in
15047    aix3*)
15048      allow_undefined_flag_F77=unsupported
15049      always_export_symbols_F77=yes
15050      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'
15051      # Note: this linker hardcodes the directories in LIBPATH if there
15052      # are no directories specified by -L.
15053      hardcode_minus_L_F77=yes
15054      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15055	# Neither direct hardcoding nor static linking is supported with a
15056	# broken collect2.
15057	hardcode_direct_F77=unsupported
15058      fi
15059      ;;
15060
15061    aix[4-9]*)
15062      if test "$host_cpu" = ia64; then
15063	# On IA64, the linker does run time linking by default, so we don't
15064	# have to do anything special.
15065	aix_use_runtimelinking=no
15066	exp_sym_flag='-Bexport'
15067	no_entry_flag=""
15068      else
15069	# If we're using GNU nm, then we don't want the "-C" option.
15070	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15071	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15072	  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'
15073	else
15074	  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'
15075	fi
15076	aix_use_runtimelinking=no
15077
15078	# Test if we are trying to use run time linking or normal
15079	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15080	# need to do runtime linking.
15081	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15082	  for ld_flag in $LDFLAGS; do
15083  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15084  	    aix_use_runtimelinking=yes
15085  	    break
15086  	  fi
15087	  done
15088	  ;;
15089	esac
15090
15091	exp_sym_flag='-bexport'
15092	no_entry_flag='-bnoentry'
15093      fi
15094
15095      # When large executables or shared objects are built, AIX ld can
15096      # have problems creating the table of contents.  If linking a library
15097      # or program results in "error TOC overflow" add -mminimal-toc to
15098      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15099      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15100
15101      archive_cmds_F77=''
15102      hardcode_direct_F77=yes
15103      hardcode_libdir_separator_F77=':'
15104      link_all_deplibs_F77=yes
15105
15106      if test "$GCC" = yes; then
15107	case $host_os in aix4.[012]|aix4.[012].*)
15108	# We only want to do this on AIX 4.2 and lower, the check
15109	# below for broken collect2 doesn't work under 4.3+
15110	  collect2name=`${CC} -print-prog-name=collect2`
15111	  if test -f "$collect2name" && \
15112  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15113	  then
15114  	  # We have reworked collect2
15115  	  :
15116	  else
15117  	  # We have old collect2
15118  	  hardcode_direct_F77=unsupported
15119  	  # It fails to find uninstalled libraries when the uninstalled
15120  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15121  	  # to unsupported forces relinking
15122  	  hardcode_minus_L_F77=yes
15123  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15124  	  hardcode_libdir_separator_F77=
15125	  fi
15126	  ;;
15127	esac
15128	shared_flag='-shared'
15129	if test "$aix_use_runtimelinking" = yes; then
15130	  shared_flag="$shared_flag "'${wl}-G'
15131	fi
15132      else
15133	# not using gcc
15134	if test "$host_cpu" = ia64; then
15135  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15136  	# chokes on -Wl,-G. The following line is correct:
15137	  shared_flag='-G'
15138	else
15139	  if test "$aix_use_runtimelinking" = yes; then
15140	    shared_flag='${wl}-G'
15141	  else
15142	    shared_flag='${wl}-bM:SRE'
15143	  fi
15144	fi
15145      fi
15146
15147      # It seems that -bexpall does not export symbols beginning with
15148      # underscore (_), so it is better to generate a list of symbols to export.
15149      always_export_symbols_F77=yes
15150      if test "$aix_use_runtimelinking" = yes; then
15151	# Warning - without using the other runtime loading flags (-brtl),
15152	# -berok will link without error, but may produce a broken library.
15153	allow_undefined_flag_F77='-berok'
15154       # Determine the default libpath from the value encoded in an empty executable.
15155       cat >conftest.$ac_ext <<_ACEOF
15156      program main
15157
15158      end
15159_ACEOF
15160rm -f conftest.$ac_objext conftest$ac_exeext
15161if { (ac_try="$ac_link"
15162case "(($ac_try" in
15163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164  *) ac_try_echo=$ac_try;;
15165esac
15166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15167$as_echo "$ac_try_echo") >&5
15168  (eval "$ac_link") 2>conftest.er1
15169  ac_status=$?
15170  grep -v '^ *+' conftest.er1 >conftest.err
15171  rm -f conftest.er1
15172  cat conftest.err >&5
15173  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174  (exit $ac_status); } && {
15175	 test -z "$ac_f77_werror_flag" ||
15176	 test ! -s conftest.err
15177       } && test -s conftest$ac_exeext && {
15178	 test "$cross_compiling" = yes ||
15179	 $as_test_x conftest$ac_exeext
15180       }; then
15181
15182lt_aix_libpath_sed='
15183    /Import File Strings/,/^$/ {
15184	/^0/ {
15185	    s/^0  *\(.*\)$/\1/
15186	    p
15187	}
15188    }'
15189aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15190# Check for a 64-bit object if we didn't find anything.
15191if test -z "$aix_libpath"; then
15192  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15193fi
15194else
15195  $as_echo "$as_me: failed program was:" >&5
15196sed 's/^/| /' conftest.$ac_ext >&5
15197
15198
15199fi
15200
15201rm -rf conftest.dSYM
15202rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15203      conftest$ac_exeext conftest.$ac_ext
15204if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15205
15206       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15207	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"
15208       else
15209	if test "$host_cpu" = ia64; then
15210	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15211	  allow_undefined_flag_F77="-z nodefs"
15212	  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"
15213	else
15214	 # Determine the default libpath from the value encoded in an empty executable.
15215	 cat >conftest.$ac_ext <<_ACEOF
15216      program main
15217
15218      end
15219_ACEOF
15220rm -f conftest.$ac_objext conftest$ac_exeext
15221if { (ac_try="$ac_link"
15222case "(($ac_try" in
15223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224  *) ac_try_echo=$ac_try;;
15225esac
15226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15227$as_echo "$ac_try_echo") >&5
15228  (eval "$ac_link") 2>conftest.er1
15229  ac_status=$?
15230  grep -v '^ *+' conftest.er1 >conftest.err
15231  rm -f conftest.er1
15232  cat conftest.err >&5
15233  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234  (exit $ac_status); } && {
15235	 test -z "$ac_f77_werror_flag" ||
15236	 test ! -s conftest.err
15237       } && test -s conftest$ac_exeext && {
15238	 test "$cross_compiling" = yes ||
15239	 $as_test_x conftest$ac_exeext
15240       }; then
15241
15242lt_aix_libpath_sed='
15243    /Import File Strings/,/^$/ {
15244	/^0/ {
15245	    s/^0  *\(.*\)$/\1/
15246	    p
15247	}
15248    }'
15249aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15250# Check for a 64-bit object if we didn't find anything.
15251if test -z "$aix_libpath"; then
15252  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15253fi
15254else
15255  $as_echo "$as_me: failed program was:" >&5
15256sed 's/^/| /' conftest.$ac_ext >&5
15257
15258
15259fi
15260
15261rm -rf conftest.dSYM
15262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15263      conftest$ac_exeext conftest.$ac_ext
15264if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15265
15266	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15267	  # Warning - without using the other run time loading flags,
15268	  # -berok will link without error, but may produce a broken library.
15269	  no_undefined_flag_F77=' ${wl}-bernotok'
15270	  allow_undefined_flag_F77=' ${wl}-berok'
15271	  # Exported symbols can be pulled into shared objects from archives
15272	  whole_archive_flag_spec_F77='$convenience'
15273	  archive_cmds_need_lc_F77=yes
15274	  # This is similar to how AIX traditionally builds its shared libraries.
15275	  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'
15276	fi
15277      fi
15278      ;;
15279
15280    amigaos*)
15281      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)'
15282      hardcode_libdir_flag_spec_F77='-L$libdir'
15283      hardcode_minus_L_F77=yes
15284      # see comment about different semantics on the GNU ld section
15285      ld_shlibs_F77=no
15286      ;;
15287
15288    bsdi[45]*)
15289      export_dynamic_flag_spec_F77=-rdynamic
15290      ;;
15291
15292    cygwin* | mingw* | pw32*)
15293      # When not using gcc, we currently assume that we are using
15294      # Microsoft Visual C++.
15295      # hardcode_libdir_flag_spec is actually meaningless, as there is
15296      # no search path for DLLs.
15297      hardcode_libdir_flag_spec_F77=' '
15298      allow_undefined_flag_F77=unsupported
15299      # Tell ltmain to make .lib files, not .a files.
15300      libext=lib
15301      # Tell ltmain to make .dll files, not .so files.
15302      shrext_cmds=".dll"
15303      # FIXME: Setting linknames here is a bad hack.
15304      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15305      # The linker will automatically build a .lib file if we build a DLL.
15306      old_archive_From_new_cmds_F77='true'
15307      # FIXME: Should let the user specify the lib program.
15308      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15309      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15310      enable_shared_with_static_runtimes_F77=yes
15311      ;;
15312
15313    darwin* | rhapsody*)
15314      case $host_os in
15315        rhapsody* | darwin1.[012])
15316         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15317         ;;
15318       *) # Darwin 1.3 on
15319         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15320           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15321         else
15322           case ${MACOSX_DEPLOYMENT_TARGET} in
15323             10.[012])
15324               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15325               ;;
15326             10.*)
15327               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15328               ;;
15329           esac
15330         fi
15331         ;;
15332      esac
15333      archive_cmds_need_lc_F77=no
15334      hardcode_direct_F77=no
15335      hardcode_automatic_F77=yes
15336      hardcode_shlibpath_var_F77=unsupported
15337      whole_archive_flag_spec_F77=''
15338      link_all_deplibs_F77=yes
15339    if test "$GCC" = yes ; then
15340    	output_verbose_link_cmd='echo'
15341        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}"
15342        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15343        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}"
15344        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}"
15345    else
15346      case $cc_basename in
15347        xlc*)
15348         output_verbose_link_cmd='echo'
15349         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15350         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15351          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15352         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}'
15353          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}'
15354          ;;
15355       *)
15356         ld_shlibs_F77=no
15357          ;;
15358      esac
15359    fi
15360      ;;
15361
15362    dgux*)
15363      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15364      hardcode_libdir_flag_spec_F77='-L$libdir'
15365      hardcode_shlibpath_var_F77=no
15366      ;;
15367
15368    freebsd1*)
15369      ld_shlibs_F77=no
15370      ;;
15371
15372    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15373    # support.  Future versions do this automatically, but an explicit c++rt0.o
15374    # does not break anything, and helps significantly (at the cost of a little
15375    # extra space).
15376    freebsd2.2*)
15377      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15378      hardcode_libdir_flag_spec_F77='-R$libdir'
15379      hardcode_direct_F77=yes
15380      hardcode_shlibpath_var_F77=no
15381      ;;
15382
15383    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15384    freebsd2*)
15385      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15386      hardcode_direct_F77=yes
15387      hardcode_minus_L_F77=yes
15388      hardcode_shlibpath_var_F77=no
15389      ;;
15390
15391    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15392    freebsd* | dragonfly*)
15393      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15394      hardcode_libdir_flag_spec_F77='-R$libdir'
15395      hardcode_direct_F77=yes
15396      hardcode_shlibpath_var_F77=no
15397      ;;
15398
15399    hpux9*)
15400      if test "$GCC" = yes; then
15401	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'
15402      else
15403	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'
15404      fi
15405      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15406      hardcode_libdir_separator_F77=:
15407      hardcode_direct_F77=yes
15408
15409      # hardcode_minus_L: Not really in the search PATH,
15410      # but as the default location of the library.
15411      hardcode_minus_L_F77=yes
15412      export_dynamic_flag_spec_F77='${wl}-E'
15413      ;;
15414
15415    hpux10*)
15416      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15417	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15418      else
15419	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15420      fi
15421      if test "$with_gnu_ld" = no; then
15422	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15423	hardcode_libdir_separator_F77=:
15424
15425	hardcode_direct_F77=yes
15426	export_dynamic_flag_spec_F77='${wl}-E'
15427
15428	# hardcode_minus_L: Not really in the search PATH,
15429	# but as the default location of the library.
15430	hardcode_minus_L_F77=yes
15431      fi
15432      ;;
15433
15434    hpux11*)
15435      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15436	case $host_cpu in
15437	hppa*64*)
15438	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15439	  ;;
15440	ia64*)
15441	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15442	  ;;
15443	*)
15444	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15445	  ;;
15446	esac
15447      else
15448	case $host_cpu in
15449	hppa*64*)
15450	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15451	  ;;
15452	ia64*)
15453	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15454	  ;;
15455	*)
15456	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15457	  ;;
15458	esac
15459      fi
15460      if test "$with_gnu_ld" = no; then
15461	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15462	hardcode_libdir_separator_F77=:
15463
15464	case $host_cpu in
15465	hppa*64*|ia64*)
15466	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15467	  hardcode_direct_F77=no
15468	  hardcode_shlibpath_var_F77=no
15469	  ;;
15470	*)
15471	  hardcode_direct_F77=yes
15472	  export_dynamic_flag_spec_F77='${wl}-E'
15473
15474	  # hardcode_minus_L: Not really in the search PATH,
15475	  # but as the default location of the library.
15476	  hardcode_minus_L_F77=yes
15477	  ;;
15478	esac
15479      fi
15480      ;;
15481
15482    irix5* | irix6* | nonstopux*)
15483      if test "$GCC" = yes; then
15484	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'
15485      else
15486	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'
15487	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15488      fi
15489      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15490      hardcode_libdir_separator_F77=:
15491      link_all_deplibs_F77=yes
15492      ;;
15493
15494    netbsd*)
15495      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15496	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15497      else
15498	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15499      fi
15500      hardcode_libdir_flag_spec_F77='-R$libdir'
15501      hardcode_direct_F77=yes
15502      hardcode_shlibpath_var_F77=no
15503      ;;
15504
15505    newsos6)
15506      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15507      hardcode_direct_F77=yes
15508      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15509      hardcode_libdir_separator_F77=:
15510      hardcode_shlibpath_var_F77=no
15511      ;;
15512
15513    openbsd*)
15514      if test -f /usr/libexec/ld.so; then
15515	hardcode_direct_F77=yes
15516	hardcode_shlibpath_var_F77=no
15517	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15518	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15519	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15520	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15521	  export_dynamic_flag_spec_F77='${wl}-E'
15522	else
15523	  case $host_os in
15524	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15525	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15526	     hardcode_libdir_flag_spec_F77='-R$libdir'
15527	     ;;
15528	   *)
15529	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15530	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15531	     ;;
15532	  esac
15533        fi
15534      else
15535	ld_shlibs_F77=no
15536      fi
15537      ;;
15538
15539    os2*)
15540      hardcode_libdir_flag_spec_F77='-L$libdir'
15541      hardcode_minus_L_F77=yes
15542      allow_undefined_flag_F77=unsupported
15543      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'
15544      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15545      ;;
15546
15547    osf3*)
15548      if test "$GCC" = yes; then
15549	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15550	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'
15551      else
15552	allow_undefined_flag_F77=' -expect_unresolved \*'
15553	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'
15554      fi
15555      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15556      hardcode_libdir_separator_F77=:
15557      ;;
15558
15559    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15560      if test "$GCC" = yes; then
15561	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15562	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'
15563	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15564      else
15565	allow_undefined_flag_F77=' -expect_unresolved \*'
15566	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'
15567	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~
15568	$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'
15569
15570	# Both c and cxx compiler support -rpath directly
15571	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15572      fi
15573      hardcode_libdir_separator_F77=:
15574      ;;
15575
15576    solaris*)
15577      no_undefined_flag_F77=' -z text'
15578      if test "$GCC" = yes; then
15579	wlarc='${wl}'
15580	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15581	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15582	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15583      else
15584	wlarc=''
15585	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15586	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15587  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15588      fi
15589      hardcode_libdir_flag_spec_F77='-R$libdir'
15590      hardcode_shlibpath_var_F77=no
15591      case $host_os in
15592      solaris2.[0-5] | solaris2.[0-5].*) ;;
15593      *)
15594	# The compiler driver will combine and reorder linker options,
15595	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15596	# but is careful enough not to reorder.
15597 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15598	if test "$GCC" = yes; then
15599	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15600	else
15601	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15602	fi
15603	;;
15604      esac
15605      link_all_deplibs_F77=yes
15606      ;;
15607
15608    sunos4*)
15609      if test "x$host_vendor" = xsequent; then
15610	# Use $CC to link under sequent, because it throws in some extra .o
15611	# files that make .init and .fini sections work.
15612	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15613      else
15614	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15615      fi
15616      hardcode_libdir_flag_spec_F77='-L$libdir'
15617      hardcode_direct_F77=yes
15618      hardcode_minus_L_F77=yes
15619      hardcode_shlibpath_var_F77=no
15620      ;;
15621
15622    sysv4)
15623      case $host_vendor in
15624	sni)
15625	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15626	  hardcode_direct_F77=yes # is this really true???
15627	;;
15628	siemens)
15629	  ## LD is ld it makes a PLAMLIB
15630	  ## CC just makes a GrossModule.
15631	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15632	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15633	  hardcode_direct_F77=no
15634        ;;
15635	motorola)
15636	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15637	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15638	;;
15639      esac
15640      runpath_var='LD_RUN_PATH'
15641      hardcode_shlibpath_var_F77=no
15642      ;;
15643
15644    sysv4.3*)
15645      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15646      hardcode_shlibpath_var_F77=no
15647      export_dynamic_flag_spec_F77='-Bexport'
15648      ;;
15649
15650    sysv4*MP*)
15651      if test -d /usr/nec; then
15652	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15653	hardcode_shlibpath_var_F77=no
15654	runpath_var=LD_RUN_PATH
15655	hardcode_runpath_var=yes
15656	ld_shlibs_F77=yes
15657      fi
15658      ;;
15659
15660    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15661      no_undefined_flag_F77='${wl}-z,text'
15662      archive_cmds_need_lc_F77=no
15663      hardcode_shlibpath_var_F77=no
15664      runpath_var='LD_RUN_PATH'
15665
15666      if test "$GCC" = yes; then
15667	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15668	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15669      else
15670	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15671	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15672      fi
15673      ;;
15674
15675    sysv5* | sco3.2v5* | sco5v6*)
15676      # Note: We can NOT use -z defs as we might desire, because we do not
15677      # link with -lc, and that would cause any symbols used from libc to
15678      # always be unresolved, which means just about no library would
15679      # ever link correctly.  If we're not using GNU ld we use -z text
15680      # though, which does catch some bad symbols but isn't as heavy-handed
15681      # as -z defs.
15682      no_undefined_flag_F77='${wl}-z,text'
15683      allow_undefined_flag_F77='${wl}-z,nodefs'
15684      archive_cmds_need_lc_F77=no
15685      hardcode_shlibpath_var_F77=no
15686      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15687      hardcode_libdir_separator_F77=':'
15688      link_all_deplibs_F77=yes
15689      export_dynamic_flag_spec_F77='${wl}-Bexport'
15690      runpath_var='LD_RUN_PATH'
15691
15692      if test "$GCC" = yes; then
15693	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15694	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15695      else
15696	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15697	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15698      fi
15699      ;;
15700
15701    uts4*)
15702      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15703      hardcode_libdir_flag_spec_F77='-L$libdir'
15704      hardcode_shlibpath_var_F77=no
15705      ;;
15706
15707    *)
15708      ld_shlibs_F77=no
15709      ;;
15710    esac
15711  fi
15712
15713{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15714$as_echo "$ld_shlibs_F77" >&6; }
15715test "$ld_shlibs_F77" = no && can_build_shared=no
15716
15717#
15718# Do we need to explicitly link libc?
15719#
15720case "x$archive_cmds_need_lc_F77" in
15721x|xyes)
15722  # Assume -lc should be added
15723  archive_cmds_need_lc_F77=yes
15724
15725  if test "$enable_shared" = yes && test "$GCC" = yes; then
15726    case $archive_cmds_F77 in
15727    *'~'*)
15728      # FIXME: we may have to deal with multi-command sequences.
15729      ;;
15730    '$CC '*)
15731      # Test whether the compiler implicitly links with -lc since on some
15732      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15733      # to ld, don't add -lc before -lgcc.
15734      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15735$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15736      $rm conftest*
15737      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15738
15739      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15740  (eval $ac_compile) 2>&5
15741  ac_status=$?
15742  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743  (exit $ac_status); } 2>conftest.err; then
15744        soname=conftest
15745        lib=conftest
15746        libobjs=conftest.$ac_objext
15747        deplibs=
15748        wl=$lt_prog_compiler_wl_F77
15749	pic_flag=$lt_prog_compiler_pic_F77
15750        compiler_flags=-v
15751        linker_flags=-v
15752        verstring=
15753        output_objdir=.
15754        libname=conftest
15755        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15756        allow_undefined_flag_F77=
15757        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15758  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15759  ac_status=$?
15760  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761  (exit $ac_status); }
15762        then
15763	  archive_cmds_need_lc_F77=no
15764        else
15765	  archive_cmds_need_lc_F77=yes
15766        fi
15767        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15768      else
15769        cat conftest.err 1>&5
15770      fi
15771      $rm conftest*
15772      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15773$as_echo "$archive_cmds_need_lc_F77" >&6; }
15774      ;;
15775    esac
15776  fi
15777  ;;
15778esac
15779
15780{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15781$as_echo_n "checking dynamic linker characteristics... " >&6; }
15782library_names_spec=
15783libname_spec='lib$name'
15784soname_spec=
15785shrext_cmds=".so"
15786postinstall_cmds=
15787postuninstall_cmds=
15788finish_cmds=
15789finish_eval=
15790shlibpath_var=
15791shlibpath_overrides_runpath=unknown
15792version_type=none
15793dynamic_linker="$host_os ld.so"
15794sys_lib_dlsearch_path_spec="/lib /usr/lib"
15795
15796need_lib_prefix=unknown
15797hardcode_into_libs=no
15798
15799# when you set need_version to no, make sure it does not cause -set_version
15800# flags to be left without arguments
15801need_version=unknown
15802
15803case $host_os in
15804aix3*)
15805  version_type=linux
15806  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15807  shlibpath_var=LIBPATH
15808
15809  # AIX 3 has no versioning support, so we append a major version to the name.
15810  soname_spec='${libname}${release}${shared_ext}$major'
15811  ;;
15812
15813aix[4-9]*)
15814  version_type=linux
15815  need_lib_prefix=no
15816  need_version=no
15817  hardcode_into_libs=yes
15818  if test "$host_cpu" = ia64; then
15819    # AIX 5 supports IA64
15820    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15821    shlibpath_var=LD_LIBRARY_PATH
15822  else
15823    # With GCC up to 2.95.x, collect2 would create an import file
15824    # for dependence libraries.  The import file would start with
15825    # the line `#! .'.  This would cause the generated library to
15826    # depend on `.', always an invalid library.  This was fixed in
15827    # development snapshots of GCC prior to 3.0.
15828    case $host_os in
15829      aix4 | aix4.[01] | aix4.[01].*)
15830      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15831	   echo ' yes '
15832	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15833	:
15834      else
15835	can_build_shared=no
15836      fi
15837      ;;
15838    esac
15839    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15840    # soname into executable. Probably we can add versioning support to
15841    # collect2, so additional links can be useful in future.
15842    if test "$aix_use_runtimelinking" = yes; then
15843      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15844      # instead of lib<name>.a to let people know that these are not
15845      # typical AIX shared libraries.
15846      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847    else
15848      # We preserve .a as extension for shared libraries through AIX4.2
15849      # and later when we are not doing run time linking.
15850      library_names_spec='${libname}${release}.a $libname.a'
15851      soname_spec='${libname}${release}${shared_ext}$major'
15852    fi
15853    shlibpath_var=LIBPATH
15854  fi
15855  ;;
15856
15857amigaos*)
15858  library_names_spec='$libname.ixlibrary $libname.a'
15859  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15860  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'
15861  ;;
15862
15863beos*)
15864  library_names_spec='${libname}${shared_ext}'
15865  dynamic_linker="$host_os ld.so"
15866  shlibpath_var=LIBRARY_PATH
15867  ;;
15868
15869bsdi[45]*)
15870  version_type=linux
15871  need_version=no
15872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15873  soname_spec='${libname}${release}${shared_ext}$major'
15874  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15875  shlibpath_var=LD_LIBRARY_PATH
15876  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15877  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15878  # the default ld.so.conf also contains /usr/contrib/lib and
15879  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15880  # libtool to hard-code these into programs
15881  ;;
15882
15883cygwin* | mingw* | pw32*)
15884  version_type=windows
15885  shrext_cmds=".dll"
15886  need_version=no
15887  need_lib_prefix=no
15888
15889  case $GCC,$host_os in
15890  yes,cygwin* | yes,mingw* | yes,pw32*)
15891    library_names_spec='$libname.dll.a'
15892    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15893    postinstall_cmds='base_file=`basename \${file}`~
15894      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15895      dldir=$destdir/`dirname \$dlpath`~
15896      test -d \$dldir || mkdir -p \$dldir~
15897      $install_prog $dir/$dlname \$dldir/$dlname~
15898      chmod a+x \$dldir/$dlname'
15899    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15900      dlpath=$dir/\$dldll~
15901       $rm \$dlpath'
15902    shlibpath_overrides_runpath=yes
15903
15904    case $host_os in
15905    cygwin*)
15906      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15907      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15908      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15909      ;;
15910    mingw*)
15911      # MinGW DLLs use traditional 'lib' prefix
15912      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15913      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15914      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15915        # It is most probably a Windows format PATH printed by
15916        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15917        # path with ; separators, and with drive letters. We can handle the
15918        # drive letters (cygwin fileutils understands them), so leave them,
15919        # especially as we might pass files found there to a mingw objdump,
15920        # which wouldn't understand a cygwinified path. Ahh.
15921        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15922      else
15923        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15924      fi
15925      ;;
15926    pw32*)
15927      # pw32 DLLs use 'pw' prefix rather than 'lib'
15928      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15929      ;;
15930    esac
15931    ;;
15932
15933  *)
15934    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15935    ;;
15936  esac
15937  dynamic_linker='Win32 ld.exe'
15938  # FIXME: first we should search . and the directory the executable is in
15939  shlibpath_var=PATH
15940  ;;
15941
15942darwin* | rhapsody*)
15943  dynamic_linker="$host_os dyld"
15944  version_type=darwin
15945  need_lib_prefix=no
15946  need_version=no
15947  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15948  soname_spec='${libname}${release}${major}$shared_ext'
15949  shlibpath_overrides_runpath=yes
15950  shlibpath_var=DYLD_LIBRARY_PATH
15951  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15952
15953  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15954  ;;
15955
15956dgux*)
15957  version_type=linux
15958  need_lib_prefix=no
15959  need_version=no
15960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15961  soname_spec='${libname}${release}${shared_ext}$major'
15962  shlibpath_var=LD_LIBRARY_PATH
15963  ;;
15964
15965freebsd1*)
15966  dynamic_linker=no
15967  ;;
15968
15969freebsd* | dragonfly*)
15970  # DragonFly does not have aout.  When/if they implement a new
15971  # versioning mechanism, adjust this.
15972  if test -x /usr/bin/objformat; then
15973    objformat=`/usr/bin/objformat`
15974  else
15975    case $host_os in
15976    freebsd[123]*) objformat=aout ;;
15977    *) objformat=elf ;;
15978    esac
15979  fi
15980  version_type=freebsd-$objformat
15981  case $version_type in
15982    freebsd-elf*)
15983      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15984      need_version=no
15985      need_lib_prefix=no
15986      ;;
15987    freebsd-*)
15988      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15989      need_version=yes
15990      ;;
15991  esac
15992  shlibpath_var=LD_LIBRARY_PATH
15993  case $host_os in
15994  freebsd2*)
15995    shlibpath_overrides_runpath=yes
15996    ;;
15997  freebsd3.[01]* | freebsdelf3.[01]*)
15998    shlibpath_overrides_runpath=yes
15999    hardcode_into_libs=yes
16000    ;;
16001  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16002  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16003    shlibpath_overrides_runpath=no
16004    hardcode_into_libs=yes
16005    ;;
16006  *) # from 4.6 on, and DragonFly
16007    shlibpath_overrides_runpath=yes
16008    hardcode_into_libs=yes
16009    ;;
16010  esac
16011  ;;
16012
16013gnu*)
16014  version_type=linux
16015  need_lib_prefix=no
16016  need_version=no
16017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16018  soname_spec='${libname}${release}${shared_ext}$major'
16019  shlibpath_var=LD_LIBRARY_PATH
16020  hardcode_into_libs=yes
16021  ;;
16022
16023hpux9* | hpux10* | hpux11*)
16024  # Give a soname corresponding to the major version so that dld.sl refuses to
16025  # link against other versions.
16026  version_type=sunos
16027  need_lib_prefix=no
16028  need_version=no
16029  case $host_cpu in
16030  ia64*)
16031    shrext_cmds='.so'
16032    hardcode_into_libs=yes
16033    dynamic_linker="$host_os dld.so"
16034    shlibpath_var=LD_LIBRARY_PATH
16035    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16036    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16037    soname_spec='${libname}${release}${shared_ext}$major'
16038    if test "X$HPUX_IA64_MODE" = X32; then
16039      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16040    else
16041      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16042    fi
16043    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16044    ;;
16045   hppa*64*)
16046     shrext_cmds='.sl'
16047     hardcode_into_libs=yes
16048     dynamic_linker="$host_os dld.sl"
16049     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16050     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16052     soname_spec='${libname}${release}${shared_ext}$major'
16053     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16054     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16055     ;;
16056   *)
16057    shrext_cmds='.sl'
16058    dynamic_linker="$host_os dld.sl"
16059    shlibpath_var=SHLIB_PATH
16060    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16061    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062    soname_spec='${libname}${release}${shared_ext}$major'
16063    ;;
16064  esac
16065  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16066  postinstall_cmds='chmod 555 $lib'
16067  ;;
16068
16069interix[3-9]*)
16070  version_type=linux
16071  need_lib_prefix=no
16072  need_version=no
16073  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16074  soname_spec='${libname}${release}${shared_ext}$major'
16075  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16076  shlibpath_var=LD_LIBRARY_PATH
16077  shlibpath_overrides_runpath=no
16078  hardcode_into_libs=yes
16079  ;;
16080
16081irix5* | irix6* | nonstopux*)
16082  case $host_os in
16083    nonstopux*) version_type=nonstopux ;;
16084    *)
16085	if test "$lt_cv_prog_gnu_ld" = yes; then
16086		version_type=linux
16087	else
16088		version_type=irix
16089	fi ;;
16090  esac
16091  need_lib_prefix=no
16092  need_version=no
16093  soname_spec='${libname}${release}${shared_ext}$major'
16094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16095  case $host_os in
16096  irix5* | nonstopux*)
16097    libsuff= shlibsuff=
16098    ;;
16099  *)
16100    case $LD in # libtool.m4 will add one of these switches to LD
16101    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16102      libsuff= shlibsuff= libmagic=32-bit;;
16103    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16104      libsuff=32 shlibsuff=N32 libmagic=N32;;
16105    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16106      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16107    *) libsuff= shlibsuff= libmagic=never-match;;
16108    esac
16109    ;;
16110  esac
16111  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16112  shlibpath_overrides_runpath=no
16113  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16114  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16115  hardcode_into_libs=yes
16116  ;;
16117
16118# No shared lib support for Linux oldld, aout, or coff.
16119linux*oldld* | linux*aout* | linux*coff*)
16120  dynamic_linker=no
16121  ;;
16122
16123# This must be Linux ELF.
16124linux* | k*bsd*-gnu)
16125  version_type=linux
16126  need_lib_prefix=no
16127  need_version=no
16128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129  soname_spec='${libname}${release}${shared_ext}$major'
16130  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16131  shlibpath_var=LD_LIBRARY_PATH
16132  shlibpath_overrides_runpath=no
16133  # This implies no fast_install, which is unacceptable.
16134  # Some rework will be needed to allow for fast_install
16135  # before this can be enabled.
16136  hardcode_into_libs=yes
16137  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16138  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16139
16140  # Append ld.so.conf contents to the search path
16141  if test -f /etc/ld.so.conf; then
16142    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' ' '`
16143    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16144  fi
16145
16146  # We used to test for /lib/ld.so.1 and disable shared libraries on
16147  # powerpc, because MkLinux only supported shared libraries with the
16148  # GNU dynamic linker.  Since this was broken with cross compilers,
16149  # most powerpc-linux boxes support dynamic linking these days and
16150  # people can always --disable-shared, the test was removed, and we
16151  # assume the GNU/Linux dynamic linker is in use.
16152  dynamic_linker='GNU/Linux ld.so'
16153  ;;
16154
16155netbsd*)
16156  version_type=sunos
16157  need_lib_prefix=no
16158  need_version=no
16159  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16160    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16161    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16162    dynamic_linker='NetBSD (a.out) ld.so'
16163  else
16164    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16165    soname_spec='${libname}${release}${shared_ext}$major'
16166    dynamic_linker='NetBSD ld.elf_so'
16167  fi
16168  shlibpath_var=LD_LIBRARY_PATH
16169  shlibpath_overrides_runpath=yes
16170  hardcode_into_libs=yes
16171  ;;
16172
16173newsos6)
16174  version_type=linux
16175  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16176  shlibpath_var=LD_LIBRARY_PATH
16177  shlibpath_overrides_runpath=yes
16178  ;;
16179
16180nto-qnx*)
16181  version_type=linux
16182  need_lib_prefix=no
16183  need_version=no
16184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16185  soname_spec='${libname}${release}${shared_ext}$major'
16186  shlibpath_var=LD_LIBRARY_PATH
16187  shlibpath_overrides_runpath=yes
16188  ;;
16189
16190openbsd*)
16191  version_type=sunos
16192  sys_lib_dlsearch_path_spec="/usr/lib"
16193  need_lib_prefix=no
16194  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16195  case $host_os in
16196    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16197    *)                         need_version=no  ;;
16198  esac
16199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16200  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16201  shlibpath_var=LD_LIBRARY_PATH
16202  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16203    case $host_os in
16204      openbsd2.[89] | openbsd2.[89].*)
16205	shlibpath_overrides_runpath=no
16206	;;
16207      *)
16208	shlibpath_overrides_runpath=yes
16209	;;
16210      esac
16211  else
16212    shlibpath_overrides_runpath=yes
16213  fi
16214  ;;
16215
16216os2*)
16217  libname_spec='$name'
16218  shrext_cmds=".dll"
16219  need_lib_prefix=no
16220  library_names_spec='$libname${shared_ext} $libname.a'
16221  dynamic_linker='OS/2 ld.exe'
16222  shlibpath_var=LIBPATH
16223  ;;
16224
16225osf3* | osf4* | osf5*)
16226  version_type=osf
16227  need_lib_prefix=no
16228  need_version=no
16229  soname_spec='${libname}${release}${shared_ext}$major'
16230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231  shlibpath_var=LD_LIBRARY_PATH
16232  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16233  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16234  ;;
16235
16236rdos*)
16237  dynamic_linker=no
16238  ;;
16239
16240solaris*)
16241  version_type=linux
16242  need_lib_prefix=no
16243  need_version=no
16244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245  soname_spec='${libname}${release}${shared_ext}$major'
16246  shlibpath_var=LD_LIBRARY_PATH
16247  shlibpath_overrides_runpath=yes
16248  hardcode_into_libs=yes
16249  # ldd complains unless libraries are executable
16250  postinstall_cmds='chmod +x $lib'
16251  ;;
16252
16253sunos4*)
16254  version_type=sunos
16255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16256  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16257  shlibpath_var=LD_LIBRARY_PATH
16258  shlibpath_overrides_runpath=yes
16259  if test "$with_gnu_ld" = yes; then
16260    need_lib_prefix=no
16261  fi
16262  need_version=yes
16263  ;;
16264
16265sysv4 | sysv4.3*)
16266  version_type=linux
16267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16268  soname_spec='${libname}${release}${shared_ext}$major'
16269  shlibpath_var=LD_LIBRARY_PATH
16270  case $host_vendor in
16271    sni)
16272      shlibpath_overrides_runpath=no
16273      need_lib_prefix=no
16274      export_dynamic_flag_spec='${wl}-Blargedynsym'
16275      runpath_var=LD_RUN_PATH
16276      ;;
16277    siemens)
16278      need_lib_prefix=no
16279      ;;
16280    motorola)
16281      need_lib_prefix=no
16282      need_version=no
16283      shlibpath_overrides_runpath=no
16284      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16285      ;;
16286  esac
16287  ;;
16288
16289sysv4*MP*)
16290  if test -d /usr/nec ;then
16291    version_type=linux
16292    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16293    soname_spec='$libname${shared_ext}.$major'
16294    shlibpath_var=LD_LIBRARY_PATH
16295  fi
16296  ;;
16297
16298sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16299  version_type=freebsd-elf
16300  need_lib_prefix=no
16301  need_version=no
16302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16303  soname_spec='${libname}${release}${shared_ext}$major'
16304  shlibpath_var=LD_LIBRARY_PATH
16305  hardcode_into_libs=yes
16306  if test "$with_gnu_ld" = yes; then
16307    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16308    shlibpath_overrides_runpath=no
16309  else
16310    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16311    shlibpath_overrides_runpath=yes
16312    case $host_os in
16313      sco3.2v5*)
16314        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16315	;;
16316    esac
16317  fi
16318  sys_lib_dlsearch_path_spec='/usr/lib'
16319  ;;
16320
16321uts4*)
16322  version_type=linux
16323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16324  soname_spec='${libname}${release}${shared_ext}$major'
16325  shlibpath_var=LD_LIBRARY_PATH
16326  ;;
16327
16328*)
16329  dynamic_linker=no
16330  ;;
16331esac
16332{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16333$as_echo "$dynamic_linker" >&6; }
16334test "$dynamic_linker" = no && can_build_shared=no
16335
16336if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16337  $as_echo_n "(cached) " >&6
16338else
16339  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16340fi
16341
16342sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16343if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16344  $as_echo_n "(cached) " >&6
16345else
16346  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16347fi
16348
16349sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16350
16351variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16352if test "$GCC" = yes; then
16353  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16354fi
16355
16356{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16357$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16358hardcode_action_F77=
16359if test -n "$hardcode_libdir_flag_spec_F77" || \
16360   test -n "$runpath_var_F77" || \
16361   test "X$hardcode_automatic_F77" = "Xyes" ; then
16362
16363  # We can hardcode non-existant directories.
16364  if test "$hardcode_direct_F77" != no &&
16365     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16366     # have to relink, otherwise we might link with an installed library
16367     # when we should be linking with a yet-to-be-installed one
16368     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16369     test "$hardcode_minus_L_F77" != no; then
16370    # Linking always hardcodes the temporary library directory.
16371    hardcode_action_F77=relink
16372  else
16373    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16374    hardcode_action_F77=immediate
16375  fi
16376else
16377  # We cannot hardcode anything, or else we can only hardcode existing
16378  # directories.
16379  hardcode_action_F77=unsupported
16380fi
16381{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16382$as_echo "$hardcode_action_F77" >&6; }
16383
16384if test "$hardcode_action_F77" = relink; then
16385  # Fast installation is not supported
16386  enable_fast_install=no
16387elif test "$shlibpath_overrides_runpath" = yes ||
16388     test "$enable_shared" = no; then
16389  # Fast installation is not necessary
16390  enable_fast_install=needless
16391fi
16392
16393
16394# The else clause should only fire when bootstrapping the
16395# libtool distribution, otherwise you forgot to ship ltmain.sh
16396# with your package, and you will get complaints that there are
16397# no rules to generate ltmain.sh.
16398if test -f "$ltmain"; then
16399  # See if we are running on zsh, and set the options which allow our commands through
16400  # without removal of \ escapes.
16401  if test -n "${ZSH_VERSION+set}" ; then
16402    setopt NO_GLOB_SUBST
16403  fi
16404  # Now quote all the things that may contain metacharacters while being
16405  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16406  # variables and quote the copies for generation of the libtool script.
16407  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16408    SED SHELL STRIP \
16409    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16410    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16411    deplibs_check_method reload_flag reload_cmds need_locks \
16412    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16413    lt_cv_sys_global_symbol_to_c_name_address \
16414    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16415    old_postinstall_cmds old_postuninstall_cmds \
16416    compiler_F77 \
16417    CC_F77 \
16418    LD_F77 \
16419    lt_prog_compiler_wl_F77 \
16420    lt_prog_compiler_pic_F77 \
16421    lt_prog_compiler_static_F77 \
16422    lt_prog_compiler_no_builtin_flag_F77 \
16423    export_dynamic_flag_spec_F77 \
16424    thread_safe_flag_spec_F77 \
16425    whole_archive_flag_spec_F77 \
16426    enable_shared_with_static_runtimes_F77 \
16427    old_archive_cmds_F77 \
16428    old_archive_from_new_cmds_F77 \
16429    predep_objects_F77 \
16430    postdep_objects_F77 \
16431    predeps_F77 \
16432    postdeps_F77 \
16433    compiler_lib_search_path_F77 \
16434    compiler_lib_search_dirs_F77 \
16435    archive_cmds_F77 \
16436    archive_expsym_cmds_F77 \
16437    postinstall_cmds_F77 \
16438    postuninstall_cmds_F77 \
16439    old_archive_from_expsyms_cmds_F77 \
16440    allow_undefined_flag_F77 \
16441    no_undefined_flag_F77 \
16442    export_symbols_cmds_F77 \
16443    hardcode_libdir_flag_spec_F77 \
16444    hardcode_libdir_flag_spec_ld_F77 \
16445    hardcode_libdir_separator_F77 \
16446    hardcode_automatic_F77 \
16447    module_cmds_F77 \
16448    module_expsym_cmds_F77 \
16449    lt_cv_prog_compiler_c_o_F77 \
16450    fix_srcfile_path_F77 \
16451    exclude_expsyms_F77 \
16452    include_expsyms_F77; do
16453
16454    case $var in
16455    old_archive_cmds_F77 | \
16456    old_archive_from_new_cmds_F77 | \
16457    archive_cmds_F77 | \
16458    archive_expsym_cmds_F77 | \
16459    module_cmds_F77 | \
16460    module_expsym_cmds_F77 | \
16461    old_archive_from_expsyms_cmds_F77 | \
16462    export_symbols_cmds_F77 | \
16463    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16464    postinstall_cmds | postuninstall_cmds | \
16465    old_postinstall_cmds | old_postuninstall_cmds | \
16466    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16467      # Double-quote double-evaled strings.
16468      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16469      ;;
16470    *)
16471      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16472      ;;
16473    esac
16474  done
16475
16476  case $lt_echo in
16477  *'\$0 --fallback-echo"')
16478    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16479    ;;
16480  esac
16481
16482cfgfile="$ofile"
16483
16484  cat <<__EOF__ >> "$cfgfile"
16485# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16486
16487# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16488
16489# Shell to use when invoking shell scripts.
16490SHELL=$lt_SHELL
16491
16492# Whether or not to build shared libraries.
16493build_libtool_libs=$enable_shared
16494
16495# Whether or not to build static libraries.
16496build_old_libs=$enable_static
16497
16498# Whether or not to add -lc for building shared libraries.
16499build_libtool_need_lc=$archive_cmds_need_lc_F77
16500
16501# Whether or not to disallow shared libs when runtime libs are static
16502allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16503
16504# Whether or not to optimize for fast installation.
16505fast_install=$enable_fast_install
16506
16507# The host system.
16508host_alias=$host_alias
16509host=$host
16510host_os=$host_os
16511
16512# The build system.
16513build_alias=$build_alias
16514build=$build
16515build_os=$build_os
16516
16517# An echo program that does not interpret backslashes.
16518echo=$lt_echo
16519
16520# The archiver.
16521AR=$lt_AR
16522AR_FLAGS=$lt_AR_FLAGS
16523
16524# A C compiler.
16525LTCC=$lt_LTCC
16526
16527# LTCC compiler flags.
16528LTCFLAGS=$lt_LTCFLAGS
16529
16530# A language-specific compiler.
16531CC=$lt_compiler_F77
16532
16533# Is the compiler the GNU C compiler?
16534with_gcc=$GCC_F77
16535
16536# An ERE matcher.
16537EGREP=$lt_EGREP
16538
16539# The linker used to build libraries.
16540LD=$lt_LD_F77
16541
16542# Whether we need hard or soft links.
16543LN_S=$lt_LN_S
16544
16545# A BSD-compatible nm program.
16546NM=$lt_NM
16547
16548# A symbol stripping program
16549STRIP=$lt_STRIP
16550
16551# Used to examine libraries when file_magic_cmd begins "file"
16552MAGIC_CMD=$MAGIC_CMD
16553
16554# Used on cygwin: DLL creation program.
16555DLLTOOL="$DLLTOOL"
16556
16557# Used on cygwin: object dumper.
16558OBJDUMP="$OBJDUMP"
16559
16560# Used on cygwin: assembler.
16561AS="$AS"
16562
16563# The name of the directory that contains temporary libtool files.
16564objdir=$objdir
16565
16566# How to create reloadable object files.
16567reload_flag=$lt_reload_flag
16568reload_cmds=$lt_reload_cmds
16569
16570# How to pass a linker flag through the compiler.
16571wl=$lt_lt_prog_compiler_wl_F77
16572
16573# Object file suffix (normally "o").
16574objext="$ac_objext"
16575
16576# Old archive suffix (normally "a").
16577libext="$libext"
16578
16579# Shared library suffix (normally ".so").
16580shrext_cmds='$shrext_cmds'
16581
16582# Executable file suffix (normally "").
16583exeext="$exeext"
16584
16585# Additional compiler flags for building library objects.
16586pic_flag=$lt_lt_prog_compiler_pic_F77
16587pic_mode=$pic_mode
16588
16589# What is the maximum length of a command?
16590max_cmd_len=$lt_cv_sys_max_cmd_len
16591
16592# Does compiler simultaneously support -c and -o options?
16593compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16594
16595# Must we lock files when doing compilation?
16596need_locks=$lt_need_locks
16597
16598# Do we need the lib prefix for modules?
16599need_lib_prefix=$need_lib_prefix
16600
16601# Do we need a version for libraries?
16602need_version=$need_version
16603
16604# Whether dlopen is supported.
16605dlopen_support=$enable_dlopen
16606
16607# Whether dlopen of programs is supported.
16608dlopen_self=$enable_dlopen_self
16609
16610# Whether dlopen of statically linked programs is supported.
16611dlopen_self_static=$enable_dlopen_self_static
16612
16613# Compiler flag to prevent dynamic linking.
16614link_static_flag=$lt_lt_prog_compiler_static_F77
16615
16616# Compiler flag to turn off builtin functions.
16617no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16618
16619# Compiler flag to allow reflexive dlopens.
16620export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16621
16622# Compiler flag to generate shared objects directly from archives.
16623whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16624
16625# Compiler flag to generate thread-safe objects.
16626thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16627
16628# Library versioning type.
16629version_type=$version_type
16630
16631# Format of library name prefix.
16632libname_spec=$lt_libname_spec
16633
16634# List of archive names.  First name is the real one, the rest are links.
16635# The last name is the one that the linker finds with -lNAME.
16636library_names_spec=$lt_library_names_spec
16637
16638# The coded name of the library, if different from the real name.
16639soname_spec=$lt_soname_spec
16640
16641# Commands used to build and install an old-style archive.
16642RANLIB=$lt_RANLIB
16643old_archive_cmds=$lt_old_archive_cmds_F77
16644old_postinstall_cmds=$lt_old_postinstall_cmds
16645old_postuninstall_cmds=$lt_old_postuninstall_cmds
16646
16647# Create an old-style archive from a shared archive.
16648old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16649
16650# Create a temporary old-style archive to link instead of a shared archive.
16651old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16652
16653# Commands used to build and install a shared archive.
16654archive_cmds=$lt_archive_cmds_F77
16655archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16656postinstall_cmds=$lt_postinstall_cmds
16657postuninstall_cmds=$lt_postuninstall_cmds
16658
16659# Commands used to build a loadable module (assumed same as above if empty)
16660module_cmds=$lt_module_cmds_F77
16661module_expsym_cmds=$lt_module_expsym_cmds_F77
16662
16663# Commands to strip libraries.
16664old_striplib=$lt_old_striplib
16665striplib=$lt_striplib
16666
16667# Dependencies to place before the objects being linked to create a
16668# shared library.
16669predep_objects=$lt_predep_objects_F77
16670
16671# Dependencies to place after the objects being linked to create a
16672# shared library.
16673postdep_objects=$lt_postdep_objects_F77
16674
16675# Dependencies to place before the objects being linked to create a
16676# shared library.
16677predeps=$lt_predeps_F77
16678
16679# Dependencies to place after the objects being linked to create a
16680# shared library.
16681postdeps=$lt_postdeps_F77
16682
16683# The directories searched by this compiler when creating a shared
16684# library
16685compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16686
16687# The library search path used internally by the compiler when linking
16688# a shared library.
16689compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16690
16691# Method to check whether dependent libraries are shared objects.
16692deplibs_check_method=$lt_deplibs_check_method
16693
16694# Command to use when deplibs_check_method == file_magic.
16695file_magic_cmd=$lt_file_magic_cmd
16696
16697# Flag that allows shared libraries with undefined symbols to be built.
16698allow_undefined_flag=$lt_allow_undefined_flag_F77
16699
16700# Flag that forces no undefined symbols.
16701no_undefined_flag=$lt_no_undefined_flag_F77
16702
16703# Commands used to finish a libtool library installation in a directory.
16704finish_cmds=$lt_finish_cmds
16705
16706# Same as above, but a single script fragment to be evaled but not shown.
16707finish_eval=$lt_finish_eval
16708
16709# Take the output of nm and produce a listing of raw symbols and C names.
16710global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16711
16712# Transform the output of nm in a proper C declaration
16713global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16714
16715# Transform the output of nm in a C name address pair
16716global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16717
16718# This is the shared library runtime path variable.
16719runpath_var=$runpath_var
16720
16721# This is the shared library path variable.
16722shlibpath_var=$shlibpath_var
16723
16724# Is shlibpath searched before the hard-coded library search path?
16725shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16726
16727# How to hardcode a shared library path into an executable.
16728hardcode_action=$hardcode_action_F77
16729
16730# Whether we should hardcode library paths into libraries.
16731hardcode_into_libs=$hardcode_into_libs
16732
16733# Flag to hardcode \$libdir into a binary during linking.
16734# This must work even if \$libdir does not exist.
16735hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16736
16737# If ld is used when linking, flag to hardcode \$libdir into
16738# a binary during linking. This must work even if \$libdir does
16739# not exist.
16740hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16741
16742# Whether we need a single -rpath flag with a separated argument.
16743hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16744
16745# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16746# resulting binary.
16747hardcode_direct=$hardcode_direct_F77
16748
16749# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16750# resulting binary.
16751hardcode_minus_L=$hardcode_minus_L_F77
16752
16753# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16754# the resulting binary.
16755hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16756
16757# Set to yes if building a shared library automatically hardcodes DIR into the library
16758# and all subsequent libraries and executables linked against it.
16759hardcode_automatic=$hardcode_automatic_F77
16760
16761# Variables whose values should be saved in libtool wrapper scripts and
16762# restored at relink time.
16763variables_saved_for_relink="$variables_saved_for_relink"
16764
16765# Whether libtool must link a program against all its dependency libraries.
16766link_all_deplibs=$link_all_deplibs_F77
16767
16768# Compile-time system search path for libraries
16769sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16770
16771# Run-time system search path for libraries
16772sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16773
16774# Fix the shell variable \$srcfile for the compiler.
16775fix_srcfile_path=$lt_fix_srcfile_path
16776
16777# Set to yes if exported symbols are required.
16778always_export_symbols=$always_export_symbols_F77
16779
16780# The commands to list exported symbols.
16781export_symbols_cmds=$lt_export_symbols_cmds_F77
16782
16783# The commands to extract the exported symbol list from a shared archive.
16784extract_expsyms_cmds=$lt_extract_expsyms_cmds
16785
16786# Symbols that should not be listed in the preloaded symbols.
16787exclude_expsyms=$lt_exclude_expsyms_F77
16788
16789# Symbols that must always be exported.
16790include_expsyms=$lt_include_expsyms_F77
16791
16792# ### END LIBTOOL TAG CONFIG: $tagname
16793
16794__EOF__
16795
16796
16797else
16798  # If there is no Makefile yet, we rely on a make rule to execute
16799  # `config.status --recheck' to rerun these tests and create the
16800  # libtool script then.
16801  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16802  if test -f "$ltmain_in"; then
16803    test -f Makefile && make "$ltmain"
16804  fi
16805fi
16806
16807
16808ac_ext=c
16809ac_cpp='$CPP $CPPFLAGS'
16810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16812ac_compiler_gnu=$ac_cv_c_compiler_gnu
16813
16814CC="$lt_save_CC"
16815
16816	else
16817	  tagname=""
16818	fi
16819	;;
16820
16821      GCJ)
16822	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16823
16824
16825# Source file extension for Java test sources.
16826ac_ext=java
16827
16828# Object file extension for compiled Java test sources.
16829objext=o
16830objext_GCJ=$objext
16831
16832# Code to be used in simple compile tests
16833lt_simple_compile_test_code="class foo {}"
16834
16835# Code to be used in simple link tests
16836lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16837
16838# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16839
16840# If no C compiler was specified, use CC.
16841LTCC=${LTCC-"$CC"}
16842
16843# If no C compiler flags were specified, use CFLAGS.
16844LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16845
16846# Allow CC to be a program name with arguments.
16847compiler=$CC
16848
16849
16850# save warnings/boilerplate of simple test code
16851ac_outfile=conftest.$ac_objext
16852echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16853eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16854_lt_compiler_boilerplate=`cat conftest.err`
16855$rm conftest*
16856
16857ac_outfile=conftest.$ac_objext
16858echo "$lt_simple_link_test_code" >conftest.$ac_ext
16859eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16860_lt_linker_boilerplate=`cat conftest.err`
16861$rm -r conftest*
16862
16863
16864# Allow CC to be a program name with arguments.
16865lt_save_CC="$CC"
16866CC=${GCJ-"gcj"}
16867compiler=$CC
16868compiler_GCJ=$CC
16869for cc_temp in $compiler""; do
16870  case $cc_temp in
16871    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16872    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16873    \-*) ;;
16874    *) break;;
16875  esac
16876done
16877cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16878
16879
16880# GCJ did not exist at the time GCC didn't implicitly link libc in.
16881archive_cmds_need_lc_GCJ=no
16882
16883old_archive_cmds_GCJ=$old_archive_cmds
16884
16885
16886lt_prog_compiler_no_builtin_flag_GCJ=
16887
16888if test "$GCC" = yes; then
16889  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16890
16891
16892{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16893$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16894if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16895  $as_echo_n "(cached) " >&6
16896else
16897  lt_cv_prog_compiler_rtti_exceptions=no
16898  ac_outfile=conftest.$ac_objext
16899   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16900   lt_compiler_flag="-fno-rtti -fno-exceptions"
16901   # Insert the option either (1) after the last *FLAGS variable, or
16902   # (2) before a word containing "conftest.", or (3) at the end.
16903   # Note that $ac_compile itself does not contain backslashes and begins
16904   # with a dollar sign (not a hyphen), so the echo should work correctly.
16905   # The option is referenced via a variable to avoid confusing sed.
16906   lt_compile=`echo "$ac_compile" | $SED \
16907   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16908   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16909   -e 's:$: $lt_compiler_flag:'`
16910   (eval echo "\"\$as_me:16910: $lt_compile\"" >&5)
16911   (eval "$lt_compile" 2>conftest.err)
16912   ac_status=$?
16913   cat conftest.err >&5
16914   echo "$as_me:16914: \$? = $ac_status" >&5
16915   if (exit $ac_status) && test -s "$ac_outfile"; then
16916     # The compiler can only warn and ignore the option if not recognized
16917     # So say no if there are warnings other than the usual output.
16918     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16919     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16920     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16921       lt_cv_prog_compiler_rtti_exceptions=yes
16922     fi
16923   fi
16924   $rm conftest*
16925
16926fi
16927{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16928$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16929
16930if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16931    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16932else
16933    :
16934fi
16935
16936fi
16937
16938lt_prog_compiler_wl_GCJ=
16939lt_prog_compiler_pic_GCJ=
16940lt_prog_compiler_static_GCJ=
16941
16942{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16943$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16944
16945  if test "$GCC" = yes; then
16946    lt_prog_compiler_wl_GCJ='-Wl,'
16947    lt_prog_compiler_static_GCJ='-static'
16948
16949    case $host_os in
16950      aix*)
16951      # All AIX code is PIC.
16952      if test "$host_cpu" = ia64; then
16953	# AIX 5 now supports IA64 processor
16954	lt_prog_compiler_static_GCJ='-Bstatic'
16955      fi
16956      ;;
16957
16958    amigaos*)
16959      # FIXME: we need at least 68020 code to build shared libraries, but
16960      # adding the `-m68020' flag to GCC prevents building anything better,
16961      # like `-m68040'.
16962      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16963      ;;
16964
16965    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16966      # PIC is the default for these OSes.
16967      ;;
16968
16969    mingw* | cygwin* | pw32* | os2*)
16970      # This hack is so that the source file can tell whether it is being
16971      # built for inclusion in a dll (and should export symbols for example).
16972      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16973      # (--disable-auto-import) libraries
16974
16975      ;;
16976
16977    darwin* | rhapsody*)
16978      # PIC is the default on this platform
16979      # Common symbols not allowed in MH_DYLIB files
16980      lt_prog_compiler_pic_GCJ='-fno-common'
16981      ;;
16982
16983    interix[3-9]*)
16984      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16985      # Instead, we relocate shared libraries at runtime.
16986      ;;
16987
16988    msdosdjgpp*)
16989      # Just because we use GCC doesn't mean we suddenly get shared libraries
16990      # on systems that don't support them.
16991      lt_prog_compiler_can_build_shared_GCJ=no
16992      enable_shared=no
16993      ;;
16994
16995    sysv4*MP*)
16996      if test -d /usr/nec; then
16997	lt_prog_compiler_pic_GCJ=-Kconform_pic
16998      fi
16999      ;;
17000
17001    hpux*)
17002      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17003      # not for PA HP-UX.
17004      case $host_cpu in
17005      hppa*64*|ia64*)
17006	# +Z the default
17007	;;
17008      *)
17009	lt_prog_compiler_pic_GCJ='-fPIC'
17010	;;
17011      esac
17012      ;;
17013
17014    *)
17015      lt_prog_compiler_pic_GCJ='-fPIC'
17016      ;;
17017    esac
17018  else
17019    # PORTME Check for flag to pass linker flags through the system compiler.
17020    case $host_os in
17021    aix*)
17022      lt_prog_compiler_wl_GCJ='-Wl,'
17023      if test "$host_cpu" = ia64; then
17024	# AIX 5 now supports IA64 processor
17025	lt_prog_compiler_static_GCJ='-Bstatic'
17026      else
17027	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17028      fi
17029      ;;
17030      darwin*)
17031        # PIC is the default on this platform
17032        # Common symbols not allowed in MH_DYLIB files
17033       case $cc_basename in
17034         xlc*)
17035         lt_prog_compiler_pic_GCJ='-qnocommon'
17036         lt_prog_compiler_wl_GCJ='-Wl,'
17037         ;;
17038       esac
17039       ;;
17040
17041    mingw* | cygwin* | pw32* | os2*)
17042      # This hack is so that the source file can tell whether it is being
17043      # built for inclusion in a dll (and should export symbols for example).
17044
17045      ;;
17046
17047    hpux9* | hpux10* | hpux11*)
17048      lt_prog_compiler_wl_GCJ='-Wl,'
17049      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17050      # not for PA HP-UX.
17051      case $host_cpu in
17052      hppa*64*|ia64*)
17053	# +Z the default
17054	;;
17055      *)
17056	lt_prog_compiler_pic_GCJ='+Z'
17057	;;
17058      esac
17059      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17060      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17061      ;;
17062
17063    irix5* | irix6* | nonstopux*)
17064      lt_prog_compiler_wl_GCJ='-Wl,'
17065      # PIC (with -KPIC) is the default.
17066      lt_prog_compiler_static_GCJ='-non_shared'
17067      ;;
17068
17069    newsos6)
17070      lt_prog_compiler_pic_GCJ='-KPIC'
17071      lt_prog_compiler_static_GCJ='-Bstatic'
17072      ;;
17073
17074    linux* | k*bsd*-gnu)
17075      case $cc_basename in
17076      icc* | ecc*)
17077	lt_prog_compiler_wl_GCJ='-Wl,'
17078	lt_prog_compiler_pic_GCJ='-KPIC'
17079	lt_prog_compiler_static_GCJ='-static'
17080        ;;
17081      pgcc* | pgf77* | pgf90* | pgf95*)
17082        # Portland Group compilers (*not* the Pentium gcc compiler,
17083	# which looks to be a dead project)
17084	lt_prog_compiler_wl_GCJ='-Wl,'
17085	lt_prog_compiler_pic_GCJ='-fpic'
17086	lt_prog_compiler_static_GCJ='-Bstatic'
17087        ;;
17088      ccc*)
17089        lt_prog_compiler_wl_GCJ='-Wl,'
17090        # All Alpha code is PIC.
17091        lt_prog_compiler_static_GCJ='-non_shared'
17092        ;;
17093      *)
17094        case `$CC -V 2>&1 | sed 5q` in
17095	*Sun\ C*)
17096	  # Sun C 5.9
17097	  lt_prog_compiler_pic_GCJ='-KPIC'
17098	  lt_prog_compiler_static_GCJ='-Bstatic'
17099	  lt_prog_compiler_wl_GCJ='-Wl,'
17100	  ;;
17101	*Sun\ F*)
17102	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17103	  lt_prog_compiler_pic_GCJ='-KPIC'
17104	  lt_prog_compiler_static_GCJ='-Bstatic'
17105	  lt_prog_compiler_wl_GCJ=''
17106	  ;;
17107	esac
17108	;;
17109      esac
17110      ;;
17111
17112    osf3* | osf4* | osf5*)
17113      lt_prog_compiler_wl_GCJ='-Wl,'
17114      # All OSF/1 code is PIC.
17115      lt_prog_compiler_static_GCJ='-non_shared'
17116      ;;
17117
17118    rdos*)
17119      lt_prog_compiler_static_GCJ='-non_shared'
17120      ;;
17121
17122    solaris*)
17123      lt_prog_compiler_pic_GCJ='-KPIC'
17124      lt_prog_compiler_static_GCJ='-Bstatic'
17125      case $cc_basename in
17126      f77* | f90* | f95*)
17127	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17128      *)
17129	lt_prog_compiler_wl_GCJ='-Wl,';;
17130      esac
17131      ;;
17132
17133    sunos4*)
17134      lt_prog_compiler_wl_GCJ='-Qoption ld '
17135      lt_prog_compiler_pic_GCJ='-PIC'
17136      lt_prog_compiler_static_GCJ='-Bstatic'
17137      ;;
17138
17139    sysv4 | sysv4.2uw2* | sysv4.3*)
17140      lt_prog_compiler_wl_GCJ='-Wl,'
17141      lt_prog_compiler_pic_GCJ='-KPIC'
17142      lt_prog_compiler_static_GCJ='-Bstatic'
17143      ;;
17144
17145    sysv4*MP*)
17146      if test -d /usr/nec ;then
17147	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17148	lt_prog_compiler_static_GCJ='-Bstatic'
17149      fi
17150      ;;
17151
17152    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17153      lt_prog_compiler_wl_GCJ='-Wl,'
17154      lt_prog_compiler_pic_GCJ='-KPIC'
17155      lt_prog_compiler_static_GCJ='-Bstatic'
17156      ;;
17157
17158    unicos*)
17159      lt_prog_compiler_wl_GCJ='-Wl,'
17160      lt_prog_compiler_can_build_shared_GCJ=no
17161      ;;
17162
17163    uts4*)
17164      lt_prog_compiler_pic_GCJ='-pic'
17165      lt_prog_compiler_static_GCJ='-Bstatic'
17166      ;;
17167
17168    *)
17169      lt_prog_compiler_can_build_shared_GCJ=no
17170      ;;
17171    esac
17172  fi
17173
17174{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17175$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17176
17177#
17178# Check to make sure the PIC flag actually works.
17179#
17180if test -n "$lt_prog_compiler_pic_GCJ"; then
17181
17182{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17183$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17184if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17185  $as_echo_n "(cached) " >&6
17186else
17187  lt_cv_prog_compiler_pic_works_GCJ=no
17188  ac_outfile=conftest.$ac_objext
17189   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17190   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17191   # Insert the option either (1) after the last *FLAGS variable, or
17192   # (2) before a word containing "conftest.", or (3) at the end.
17193   # Note that $ac_compile itself does not contain backslashes and begins
17194   # with a dollar sign (not a hyphen), so the echo should work correctly.
17195   # The option is referenced via a variable to avoid confusing sed.
17196   lt_compile=`echo "$ac_compile" | $SED \
17197   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17198   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17199   -e 's:$: $lt_compiler_flag:'`
17200   (eval echo "\"\$as_me:17200: $lt_compile\"" >&5)
17201   (eval "$lt_compile" 2>conftest.err)
17202   ac_status=$?
17203   cat conftest.err >&5
17204   echo "$as_me:17204: \$? = $ac_status" >&5
17205   if (exit $ac_status) && test -s "$ac_outfile"; then
17206     # The compiler can only warn and ignore the option if not recognized
17207     # So say no if there are warnings other than the usual output.
17208     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17209     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17210     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17211       lt_cv_prog_compiler_pic_works_GCJ=yes
17212     fi
17213   fi
17214   $rm conftest*
17215
17216fi
17217{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17218$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17219
17220if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17221    case $lt_prog_compiler_pic_GCJ in
17222     "" | " "*) ;;
17223     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17224     esac
17225else
17226    lt_prog_compiler_pic_GCJ=
17227     lt_prog_compiler_can_build_shared_GCJ=no
17228fi
17229
17230fi
17231case $host_os in
17232  # For platforms which do not support PIC, -DPIC is meaningless:
17233  *djgpp*)
17234    lt_prog_compiler_pic_GCJ=
17235    ;;
17236  *)
17237    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17238    ;;
17239esac
17240
17241#
17242# Check to make sure the static flag actually works.
17243#
17244wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17245{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17246$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17247if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17248  $as_echo_n "(cached) " >&6
17249else
17250  lt_cv_prog_compiler_static_works_GCJ=no
17251   save_LDFLAGS="$LDFLAGS"
17252   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17253   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17254   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17255     # The linker can only warn and ignore the option if not recognized
17256     # So say no if there are warnings
17257     if test -s conftest.err; then
17258       # Append any errors to the config.log.
17259       cat conftest.err 1>&5
17260       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17261       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17262       if diff conftest.exp conftest.er2 >/dev/null; then
17263         lt_cv_prog_compiler_static_works_GCJ=yes
17264       fi
17265     else
17266       lt_cv_prog_compiler_static_works_GCJ=yes
17267     fi
17268   fi
17269   $rm -r conftest*
17270   LDFLAGS="$save_LDFLAGS"
17271
17272fi
17273{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17274$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17275
17276if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17277    :
17278else
17279    lt_prog_compiler_static_GCJ=
17280fi
17281
17282
17283{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17284$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17285if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17286  $as_echo_n "(cached) " >&6
17287else
17288  lt_cv_prog_compiler_c_o_GCJ=no
17289   $rm -r conftest 2>/dev/null
17290   mkdir conftest
17291   cd conftest
17292   mkdir out
17293   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17294
17295   lt_compiler_flag="-o out/conftest2.$ac_objext"
17296   # Insert the option either (1) after the last *FLAGS variable, or
17297   # (2) before a word containing "conftest.", or (3) at the end.
17298   # Note that $ac_compile itself does not contain backslashes and begins
17299   # with a dollar sign (not a hyphen), so the echo should work correctly.
17300   lt_compile=`echo "$ac_compile" | $SED \
17301   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17302   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17303   -e 's:$: $lt_compiler_flag:'`
17304   (eval echo "\"\$as_me:17304: $lt_compile\"" >&5)
17305   (eval "$lt_compile" 2>out/conftest.err)
17306   ac_status=$?
17307   cat out/conftest.err >&5
17308   echo "$as_me:17308: \$? = $ac_status" >&5
17309   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17310   then
17311     # The compiler can only warn and ignore the option if not recognized
17312     # So say no if there are warnings
17313     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17314     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17315     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17316       lt_cv_prog_compiler_c_o_GCJ=yes
17317     fi
17318   fi
17319   chmod u+w . 2>&5
17320   $rm conftest*
17321   # SGI C++ compiler will create directory out/ii_files/ for
17322   # template instantiation
17323   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17324   $rm out/* && rmdir out
17325   cd ..
17326   rmdir conftest
17327   $rm conftest*
17328
17329fi
17330{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17331$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17332
17333
17334hard_links="nottested"
17335if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17336  # do not overwrite the value of need_locks provided by the user
17337  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17338$as_echo_n "checking if we can lock with hard links... " >&6; }
17339  hard_links=yes
17340  $rm conftest*
17341  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17342  touch conftest.a
17343  ln conftest.a conftest.b 2>&5 || hard_links=no
17344  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17345  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17346$as_echo "$hard_links" >&6; }
17347  if test "$hard_links" = no; then
17348    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17349$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17350    need_locks=warn
17351  fi
17352else
17353  need_locks=no
17354fi
17355
17356{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17357$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17358
17359  runpath_var=
17360  allow_undefined_flag_GCJ=
17361  enable_shared_with_static_runtimes_GCJ=no
17362  archive_cmds_GCJ=
17363  archive_expsym_cmds_GCJ=
17364  old_archive_From_new_cmds_GCJ=
17365  old_archive_from_expsyms_cmds_GCJ=
17366  export_dynamic_flag_spec_GCJ=
17367  whole_archive_flag_spec_GCJ=
17368  thread_safe_flag_spec_GCJ=
17369  hardcode_libdir_flag_spec_GCJ=
17370  hardcode_libdir_flag_spec_ld_GCJ=
17371  hardcode_libdir_separator_GCJ=
17372  hardcode_direct_GCJ=no
17373  hardcode_minus_L_GCJ=no
17374  hardcode_shlibpath_var_GCJ=unsupported
17375  link_all_deplibs_GCJ=unknown
17376  hardcode_automatic_GCJ=no
17377  module_cmds_GCJ=
17378  module_expsym_cmds_GCJ=
17379  always_export_symbols_GCJ=no
17380  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17381  # include_expsyms should be a list of space-separated symbols to be *always*
17382  # included in the symbol list
17383  include_expsyms_GCJ=
17384  # exclude_expsyms can be an extended regexp of symbols to exclude
17385  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17386  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17387  # as well as any symbol that contains `d'.
17388  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17389  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17390  # platforms (ab)use it in PIC code, but their linkers get confused if
17391  # the symbol is explicitly referenced.  Since portable code cannot
17392  # rely on this symbol name, it's probably fine to never include it in
17393  # preloaded symbol tables.
17394  # Exclude shared library initialization/finalization symbols.
17395  extract_expsyms_cmds=
17396  # Just being paranoid about ensuring that cc_basename is set.
17397  for cc_temp in $compiler""; do
17398  case $cc_temp in
17399    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17400    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17401    \-*) ;;
17402    *) break;;
17403  esac
17404done
17405cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17406
17407  case $host_os in
17408  cygwin* | mingw* | pw32*)
17409    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17410    # When not using gcc, we currently assume that we are using
17411    # Microsoft Visual C++.
17412    if test "$GCC" != yes; then
17413      with_gnu_ld=no
17414    fi
17415    ;;
17416  interix*)
17417    # we just hope/assume this is gcc and not c89 (= MSVC++)
17418    with_gnu_ld=yes
17419    ;;
17420  openbsd*)
17421    with_gnu_ld=no
17422    ;;
17423  esac
17424
17425  ld_shlibs_GCJ=yes
17426  if test "$with_gnu_ld" = yes; then
17427    # If archive_cmds runs LD, not CC, wlarc should be empty
17428    wlarc='${wl}'
17429
17430    # Set some defaults for GNU ld with shared library support. These
17431    # are reset later if shared libraries are not supported. Putting them
17432    # here allows them to be overridden if necessary.
17433    runpath_var=LD_RUN_PATH
17434    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17435    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17436    # ancient GNU ld didn't support --whole-archive et. al.
17437    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17438	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17439      else
17440  	whole_archive_flag_spec_GCJ=
17441    fi
17442    supports_anon_versioning=no
17443    case `$LD -v 2>/dev/null` in
17444      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17445      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17446      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17447      *\ 2.11.*) ;; # other 2.11 versions
17448      *) supports_anon_versioning=yes ;;
17449    esac
17450
17451    # See if GNU ld supports shared libraries.
17452    case $host_os in
17453    aix[3-9]*)
17454      # On AIX/PPC, the GNU linker is very broken
17455      if test "$host_cpu" != ia64; then
17456	ld_shlibs_GCJ=no
17457	cat <<EOF 1>&2
17458
17459*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17460*** to be unable to reliably create shared libraries on AIX.
17461*** Therefore, libtool is disabling shared libraries support.  If you
17462*** really care for shared libraries, you may want to modify your PATH
17463*** so that a non-GNU linker is found, and then restart.
17464
17465EOF
17466      fi
17467      ;;
17468
17469    amigaos*)
17470      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)'
17471      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17472      hardcode_minus_L_GCJ=yes
17473
17474      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17475      # that the semantics of dynamic libraries on AmigaOS, at least up
17476      # to version 4, is to share data among multiple programs linked
17477      # with the same dynamic library.  Since this doesn't match the
17478      # behavior of shared libraries on other platforms, we can't use
17479      # them.
17480      ld_shlibs_GCJ=no
17481      ;;
17482
17483    beos*)
17484      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17485	allow_undefined_flag_GCJ=unsupported
17486	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17487	# support --undefined.  This deserves some investigation.  FIXME
17488	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17489      else
17490	ld_shlibs_GCJ=no
17491      fi
17492      ;;
17493
17494    cygwin* | mingw* | pw32*)
17495      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17496      # as there is no search path for DLLs.
17497      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17498      allow_undefined_flag_GCJ=unsupported
17499      always_export_symbols_GCJ=no
17500      enable_shared_with_static_runtimes_GCJ=yes
17501      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17502
17503      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17504        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17505	# If the export-symbols file already is a .def file (1st line
17506	# is EXPORTS), use it as is; otherwise, prepend...
17507	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17508	  cp $export_symbols $output_objdir/$soname.def;
17509	else
17510	  echo EXPORTS > $output_objdir/$soname.def;
17511	  cat $export_symbols >> $output_objdir/$soname.def;
17512	fi~
17513	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17514      else
17515	ld_shlibs_GCJ=no
17516      fi
17517      ;;
17518
17519    interix[3-9]*)
17520      hardcode_direct_GCJ=no
17521      hardcode_shlibpath_var_GCJ=no
17522      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17523      export_dynamic_flag_spec_GCJ='${wl}-E'
17524      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17525      # Instead, shared libraries are loaded at an image base (0x10000000 by
17526      # default) and relocated if they conflict, which is a slow very memory
17527      # consuming and fragmenting process.  To avoid this, we pick a random,
17528      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17529      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17530      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'
17531      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'
17532      ;;
17533
17534    gnu* | linux* | k*bsd*-gnu)
17535      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17536	tmp_addflag=
17537	case $cc_basename,$host_cpu in
17538	pgcc*)				# Portland Group C compiler
17539	  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'
17540	  tmp_addflag=' $pic_flag'
17541	  ;;
17542	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17543	  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'
17544	  tmp_addflag=' $pic_flag -Mnomain' ;;
17545	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17546	  tmp_addflag=' -i_dynamic' ;;
17547	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17548	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17549	ifc* | ifort*)			# Intel Fortran compiler
17550	  tmp_addflag=' -nofor_main' ;;
17551	esac
17552	case `$CC -V 2>&1 | sed 5q` in
17553	*Sun\ C*)			# Sun C 5.9
17554	  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'
17555	  tmp_sharedflag='-G' ;;
17556	*Sun\ F*)			# Sun Fortran 8.3
17557	  tmp_sharedflag='-G' ;;
17558	*)
17559	  tmp_sharedflag='-shared' ;;
17560	esac
17561	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17562
17563	if test $supports_anon_versioning = yes; then
17564	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17565  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17566  $echo "local: *; };" >> $output_objdir/$libname.ver~
17567	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17568	fi
17569      else
17570	ld_shlibs_GCJ=no
17571      fi
17572      ;;
17573
17574    netbsd*)
17575      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17576	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17577	wlarc=
17578      else
17579	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17580	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17581      fi
17582      ;;
17583
17584    solaris*)
17585      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17586	ld_shlibs_GCJ=no
17587	cat <<EOF 1>&2
17588
17589*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17590*** create shared libraries on Solaris systems.  Therefore, libtool
17591*** is disabling shared libraries support.  We urge you to upgrade GNU
17592*** binutils to release 2.9.1 or newer.  Another option is to modify
17593*** your PATH or compiler configuration so that the native linker is
17594*** used, and then restart.
17595
17596EOF
17597      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17598	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17599	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17600      else
17601	ld_shlibs_GCJ=no
17602      fi
17603      ;;
17604
17605    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17606      case `$LD -v 2>&1` in
17607        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17608	ld_shlibs_GCJ=no
17609	cat <<_LT_EOF 1>&2
17610
17611*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17612*** reliably create shared libraries on SCO systems.  Therefore, libtool
17613*** is disabling shared libraries support.  We urge you to upgrade GNU
17614*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17615*** your PATH or compiler configuration so that the native linker is
17616*** used, and then restart.
17617
17618_LT_EOF
17619	;;
17620	*)
17621	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17622	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17623	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17624	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17625	  else
17626	    ld_shlibs_GCJ=no
17627	  fi
17628	;;
17629      esac
17630      ;;
17631
17632    sunos4*)
17633      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17634      wlarc=
17635      hardcode_direct_GCJ=yes
17636      hardcode_shlibpath_var_GCJ=no
17637      ;;
17638
17639    *)
17640      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17641	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17642	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17643      else
17644	ld_shlibs_GCJ=no
17645      fi
17646      ;;
17647    esac
17648
17649    if test "$ld_shlibs_GCJ" = no; then
17650      runpath_var=
17651      hardcode_libdir_flag_spec_GCJ=
17652      export_dynamic_flag_spec_GCJ=
17653      whole_archive_flag_spec_GCJ=
17654    fi
17655  else
17656    # PORTME fill in a description of your system's linker (not GNU ld)
17657    case $host_os in
17658    aix3*)
17659      allow_undefined_flag_GCJ=unsupported
17660      always_export_symbols_GCJ=yes
17661      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'
17662      # Note: this linker hardcodes the directories in LIBPATH if there
17663      # are no directories specified by -L.
17664      hardcode_minus_L_GCJ=yes
17665      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17666	# Neither direct hardcoding nor static linking is supported with a
17667	# broken collect2.
17668	hardcode_direct_GCJ=unsupported
17669      fi
17670      ;;
17671
17672    aix[4-9]*)
17673      if test "$host_cpu" = ia64; then
17674	# On IA64, the linker does run time linking by default, so we don't
17675	# have to do anything special.
17676	aix_use_runtimelinking=no
17677	exp_sym_flag='-Bexport'
17678	no_entry_flag=""
17679      else
17680	# If we're using GNU nm, then we don't want the "-C" option.
17681	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17682	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17683	  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'
17684	else
17685	  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'
17686	fi
17687	aix_use_runtimelinking=no
17688
17689	# Test if we are trying to use run time linking or normal
17690	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17691	# need to do runtime linking.
17692	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17693	  for ld_flag in $LDFLAGS; do
17694  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17695  	    aix_use_runtimelinking=yes
17696  	    break
17697  	  fi
17698	  done
17699	  ;;
17700	esac
17701
17702	exp_sym_flag='-bexport'
17703	no_entry_flag='-bnoentry'
17704      fi
17705
17706      # When large executables or shared objects are built, AIX ld can
17707      # have problems creating the table of contents.  If linking a library
17708      # or program results in "error TOC overflow" add -mminimal-toc to
17709      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17710      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17711
17712      archive_cmds_GCJ=''
17713      hardcode_direct_GCJ=yes
17714      hardcode_libdir_separator_GCJ=':'
17715      link_all_deplibs_GCJ=yes
17716
17717      if test "$GCC" = yes; then
17718	case $host_os in aix4.[012]|aix4.[012].*)
17719	# We only want to do this on AIX 4.2 and lower, the check
17720	# below for broken collect2 doesn't work under 4.3+
17721	  collect2name=`${CC} -print-prog-name=collect2`
17722	  if test -f "$collect2name" && \
17723  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17724	  then
17725  	  # We have reworked collect2
17726  	  :
17727	  else
17728  	  # We have old collect2
17729  	  hardcode_direct_GCJ=unsupported
17730  	  # It fails to find uninstalled libraries when the uninstalled
17731  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17732  	  # to unsupported forces relinking
17733  	  hardcode_minus_L_GCJ=yes
17734  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17735  	  hardcode_libdir_separator_GCJ=
17736	  fi
17737	  ;;
17738	esac
17739	shared_flag='-shared'
17740	if test "$aix_use_runtimelinking" = yes; then
17741	  shared_flag="$shared_flag "'${wl}-G'
17742	fi
17743      else
17744	# not using gcc
17745	if test "$host_cpu" = ia64; then
17746  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17747  	# chokes on -Wl,-G. The following line is correct:
17748	  shared_flag='-G'
17749	else
17750	  if test "$aix_use_runtimelinking" = yes; then
17751	    shared_flag='${wl}-G'
17752	  else
17753	    shared_flag='${wl}-bM:SRE'
17754	  fi
17755	fi
17756      fi
17757
17758      # It seems that -bexpall does not export symbols beginning with
17759      # underscore (_), so it is better to generate a list of symbols to export.
17760      always_export_symbols_GCJ=yes
17761      if test "$aix_use_runtimelinking" = yes; then
17762	# Warning - without using the other runtime loading flags (-brtl),
17763	# -berok will link without error, but may produce a broken library.
17764	allow_undefined_flag_GCJ='-berok'
17765       # Determine the default libpath from the value encoded in an empty executable.
17766       cat >conftest.$ac_ext <<_ACEOF
17767/* confdefs.h.  */
17768_ACEOF
17769cat confdefs.h >>conftest.$ac_ext
17770cat >>conftest.$ac_ext <<_ACEOF
17771/* end confdefs.h.  */
17772
17773int
17774main ()
17775{
17776
17777  ;
17778  return 0;
17779}
17780_ACEOF
17781rm -f conftest.$ac_objext conftest$ac_exeext
17782if { (ac_try="$ac_link"
17783case "(($ac_try" in
17784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785  *) ac_try_echo=$ac_try;;
17786esac
17787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17788$as_echo "$ac_try_echo") >&5
17789  (eval "$ac_link") 2>conftest.er1
17790  ac_status=$?
17791  grep -v '^ *+' conftest.er1 >conftest.err
17792  rm -f conftest.er1
17793  cat conftest.err >&5
17794  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795  (exit $ac_status); } && {
17796	 test -z "$ac_c_werror_flag" ||
17797	 test ! -s conftest.err
17798       } && test -s conftest$ac_exeext && {
17799	 test "$cross_compiling" = yes ||
17800	 $as_test_x conftest$ac_exeext
17801       }; then
17802
17803lt_aix_libpath_sed='
17804    /Import File Strings/,/^$/ {
17805	/^0/ {
17806	    s/^0  *\(.*\)$/\1/
17807	    p
17808	}
17809    }'
17810aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17811# Check for a 64-bit object if we didn't find anything.
17812if test -z "$aix_libpath"; then
17813  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17814fi
17815else
17816  $as_echo "$as_me: failed program was:" >&5
17817sed 's/^/| /' conftest.$ac_ext >&5
17818
17819
17820fi
17821
17822rm -rf conftest.dSYM
17823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17824      conftest$ac_exeext conftest.$ac_ext
17825if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17826
17827       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17828	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"
17829       else
17830	if test "$host_cpu" = ia64; then
17831	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17832	  allow_undefined_flag_GCJ="-z nodefs"
17833	  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"
17834	else
17835	 # Determine the default libpath from the value encoded in an empty executable.
17836	 cat >conftest.$ac_ext <<_ACEOF
17837/* confdefs.h.  */
17838_ACEOF
17839cat confdefs.h >>conftest.$ac_ext
17840cat >>conftest.$ac_ext <<_ACEOF
17841/* end confdefs.h.  */
17842
17843int
17844main ()
17845{
17846
17847  ;
17848  return 0;
17849}
17850_ACEOF
17851rm -f conftest.$ac_objext conftest$ac_exeext
17852if { (ac_try="$ac_link"
17853case "(($ac_try" in
17854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17855  *) ac_try_echo=$ac_try;;
17856esac
17857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17858$as_echo "$ac_try_echo") >&5
17859  (eval "$ac_link") 2>conftest.er1
17860  ac_status=$?
17861  grep -v '^ *+' conftest.er1 >conftest.err
17862  rm -f conftest.er1
17863  cat conftest.err >&5
17864  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865  (exit $ac_status); } && {
17866	 test -z "$ac_c_werror_flag" ||
17867	 test ! -s conftest.err
17868       } && test -s conftest$ac_exeext && {
17869	 test "$cross_compiling" = yes ||
17870	 $as_test_x conftest$ac_exeext
17871       }; then
17872
17873lt_aix_libpath_sed='
17874    /Import File Strings/,/^$/ {
17875	/^0/ {
17876	    s/^0  *\(.*\)$/\1/
17877	    p
17878	}
17879    }'
17880aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17881# Check for a 64-bit object if we didn't find anything.
17882if test -z "$aix_libpath"; then
17883  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17884fi
17885else
17886  $as_echo "$as_me: failed program was:" >&5
17887sed 's/^/| /' conftest.$ac_ext >&5
17888
17889
17890fi
17891
17892rm -rf conftest.dSYM
17893rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17894      conftest$ac_exeext conftest.$ac_ext
17895if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17896
17897	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17898	  # Warning - without using the other run time loading flags,
17899	  # -berok will link without error, but may produce a broken library.
17900	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17901	  allow_undefined_flag_GCJ=' ${wl}-berok'
17902	  # Exported symbols can be pulled into shared objects from archives
17903	  whole_archive_flag_spec_GCJ='$convenience'
17904	  archive_cmds_need_lc_GCJ=yes
17905	  # This is similar to how AIX traditionally builds its shared libraries.
17906	  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'
17907	fi
17908      fi
17909      ;;
17910
17911    amigaos*)
17912      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)'
17913      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17914      hardcode_minus_L_GCJ=yes
17915      # see comment about different semantics on the GNU ld section
17916      ld_shlibs_GCJ=no
17917      ;;
17918
17919    bsdi[45]*)
17920      export_dynamic_flag_spec_GCJ=-rdynamic
17921      ;;
17922
17923    cygwin* | mingw* | pw32*)
17924      # When not using gcc, we currently assume that we are using
17925      # Microsoft Visual C++.
17926      # hardcode_libdir_flag_spec is actually meaningless, as there is
17927      # no search path for DLLs.
17928      hardcode_libdir_flag_spec_GCJ=' '
17929      allow_undefined_flag_GCJ=unsupported
17930      # Tell ltmain to make .lib files, not .a files.
17931      libext=lib
17932      # Tell ltmain to make .dll files, not .so files.
17933      shrext_cmds=".dll"
17934      # FIXME: Setting linknames here is a bad hack.
17935      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17936      # The linker will automatically build a .lib file if we build a DLL.
17937      old_archive_From_new_cmds_GCJ='true'
17938      # FIXME: Should let the user specify the lib program.
17939      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17940      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17941      enable_shared_with_static_runtimes_GCJ=yes
17942      ;;
17943
17944    darwin* | rhapsody*)
17945      case $host_os in
17946        rhapsody* | darwin1.[012])
17947         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17948         ;;
17949       *) # Darwin 1.3 on
17950         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17951           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17952         else
17953           case ${MACOSX_DEPLOYMENT_TARGET} in
17954             10.[012])
17955               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17956               ;;
17957             10.*)
17958               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17959               ;;
17960           esac
17961         fi
17962         ;;
17963      esac
17964      archive_cmds_need_lc_GCJ=no
17965      hardcode_direct_GCJ=no
17966      hardcode_automatic_GCJ=yes
17967      hardcode_shlibpath_var_GCJ=unsupported
17968      whole_archive_flag_spec_GCJ=''
17969      link_all_deplibs_GCJ=yes
17970    if test "$GCC" = yes ; then
17971    	output_verbose_link_cmd='echo'
17972        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}"
17973        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17974        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}"
17975        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}"
17976    else
17977      case $cc_basename in
17978        xlc*)
17979         output_verbose_link_cmd='echo'
17980         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17981         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17982          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17983         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}'
17984          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}'
17985          ;;
17986       *)
17987         ld_shlibs_GCJ=no
17988          ;;
17989      esac
17990    fi
17991      ;;
17992
17993    dgux*)
17994      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17995      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17996      hardcode_shlibpath_var_GCJ=no
17997      ;;
17998
17999    freebsd1*)
18000      ld_shlibs_GCJ=no
18001      ;;
18002
18003    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18004    # support.  Future versions do this automatically, but an explicit c++rt0.o
18005    # does not break anything, and helps significantly (at the cost of a little
18006    # extra space).
18007    freebsd2.2*)
18008      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18009      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18010      hardcode_direct_GCJ=yes
18011      hardcode_shlibpath_var_GCJ=no
18012      ;;
18013
18014    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18015    freebsd2*)
18016      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18017      hardcode_direct_GCJ=yes
18018      hardcode_minus_L_GCJ=yes
18019      hardcode_shlibpath_var_GCJ=no
18020      ;;
18021
18022    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18023    freebsd* | dragonfly*)
18024      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18025      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18026      hardcode_direct_GCJ=yes
18027      hardcode_shlibpath_var_GCJ=no
18028      ;;
18029
18030    hpux9*)
18031      if test "$GCC" = yes; then
18032	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'
18033      else
18034	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'
18035      fi
18036      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18037      hardcode_libdir_separator_GCJ=:
18038      hardcode_direct_GCJ=yes
18039
18040      # hardcode_minus_L: Not really in the search PATH,
18041      # but as the default location of the library.
18042      hardcode_minus_L_GCJ=yes
18043      export_dynamic_flag_spec_GCJ='${wl}-E'
18044      ;;
18045
18046    hpux10*)
18047      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18048	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18049      else
18050	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18051      fi
18052      if test "$with_gnu_ld" = no; then
18053	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18054	hardcode_libdir_separator_GCJ=:
18055
18056	hardcode_direct_GCJ=yes
18057	export_dynamic_flag_spec_GCJ='${wl}-E'
18058
18059	# hardcode_minus_L: Not really in the search PATH,
18060	# but as the default location of the library.
18061	hardcode_minus_L_GCJ=yes
18062      fi
18063      ;;
18064
18065    hpux11*)
18066      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18067	case $host_cpu in
18068	hppa*64*)
18069	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18070	  ;;
18071	ia64*)
18072	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18073	  ;;
18074	*)
18075	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18076	  ;;
18077	esac
18078      else
18079	case $host_cpu in
18080	hppa*64*)
18081	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18082	  ;;
18083	ia64*)
18084	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18085	  ;;
18086	*)
18087	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18088	  ;;
18089	esac
18090      fi
18091      if test "$with_gnu_ld" = no; then
18092	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18093	hardcode_libdir_separator_GCJ=:
18094
18095	case $host_cpu in
18096	hppa*64*|ia64*)
18097	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18098	  hardcode_direct_GCJ=no
18099	  hardcode_shlibpath_var_GCJ=no
18100	  ;;
18101	*)
18102	  hardcode_direct_GCJ=yes
18103	  export_dynamic_flag_spec_GCJ='${wl}-E'
18104
18105	  # hardcode_minus_L: Not really in the search PATH,
18106	  # but as the default location of the library.
18107	  hardcode_minus_L_GCJ=yes
18108	  ;;
18109	esac
18110      fi
18111      ;;
18112
18113    irix5* | irix6* | nonstopux*)
18114      if test "$GCC" = yes; then
18115	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'
18116      else
18117	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'
18118	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18119      fi
18120      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18121      hardcode_libdir_separator_GCJ=:
18122      link_all_deplibs_GCJ=yes
18123      ;;
18124
18125    netbsd*)
18126      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18127	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18128      else
18129	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18130      fi
18131      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18132      hardcode_direct_GCJ=yes
18133      hardcode_shlibpath_var_GCJ=no
18134      ;;
18135
18136    newsos6)
18137      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18138      hardcode_direct_GCJ=yes
18139      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18140      hardcode_libdir_separator_GCJ=:
18141      hardcode_shlibpath_var_GCJ=no
18142      ;;
18143
18144    openbsd*)
18145      if test -f /usr/libexec/ld.so; then
18146	hardcode_direct_GCJ=yes
18147	hardcode_shlibpath_var_GCJ=no
18148	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18149	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18150	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18151	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18152	  export_dynamic_flag_spec_GCJ='${wl}-E'
18153	else
18154	  case $host_os in
18155	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18156	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18157	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18158	     ;;
18159	   *)
18160	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18161	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18162	     ;;
18163	  esac
18164        fi
18165      else
18166	ld_shlibs_GCJ=no
18167      fi
18168      ;;
18169
18170    os2*)
18171      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18172      hardcode_minus_L_GCJ=yes
18173      allow_undefined_flag_GCJ=unsupported
18174      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'
18175      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18176      ;;
18177
18178    osf3*)
18179      if test "$GCC" = yes; then
18180	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18181	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'
18182      else
18183	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18184	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'
18185      fi
18186      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18187      hardcode_libdir_separator_GCJ=:
18188      ;;
18189
18190    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18191      if test "$GCC" = yes; then
18192	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18193	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'
18194	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18195      else
18196	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18197	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'
18198	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~
18199	$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'
18200
18201	# Both c and cxx compiler support -rpath directly
18202	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18203      fi
18204      hardcode_libdir_separator_GCJ=:
18205      ;;
18206
18207    solaris*)
18208      no_undefined_flag_GCJ=' -z text'
18209      if test "$GCC" = yes; then
18210	wlarc='${wl}'
18211	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18212	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18213	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18214      else
18215	wlarc=''
18216	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18217	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18218  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18219      fi
18220      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18221      hardcode_shlibpath_var_GCJ=no
18222      case $host_os in
18223      solaris2.[0-5] | solaris2.[0-5].*) ;;
18224      *)
18225	# The compiler driver will combine and reorder linker options,
18226	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18227	# but is careful enough not to reorder.
18228 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18229	if test "$GCC" = yes; then
18230	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18231	else
18232	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18233	fi
18234	;;
18235      esac
18236      link_all_deplibs_GCJ=yes
18237      ;;
18238
18239    sunos4*)
18240      if test "x$host_vendor" = xsequent; then
18241	# Use $CC to link under sequent, because it throws in some extra .o
18242	# files that make .init and .fini sections work.
18243	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18244      else
18245	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18246      fi
18247      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18248      hardcode_direct_GCJ=yes
18249      hardcode_minus_L_GCJ=yes
18250      hardcode_shlibpath_var_GCJ=no
18251      ;;
18252
18253    sysv4)
18254      case $host_vendor in
18255	sni)
18256	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18257	  hardcode_direct_GCJ=yes # is this really true???
18258	;;
18259	siemens)
18260	  ## LD is ld it makes a PLAMLIB
18261	  ## CC just makes a GrossModule.
18262	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18263	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18264	  hardcode_direct_GCJ=no
18265        ;;
18266	motorola)
18267	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18268	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18269	;;
18270      esac
18271      runpath_var='LD_RUN_PATH'
18272      hardcode_shlibpath_var_GCJ=no
18273      ;;
18274
18275    sysv4.3*)
18276      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18277      hardcode_shlibpath_var_GCJ=no
18278      export_dynamic_flag_spec_GCJ='-Bexport'
18279      ;;
18280
18281    sysv4*MP*)
18282      if test -d /usr/nec; then
18283	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18284	hardcode_shlibpath_var_GCJ=no
18285	runpath_var=LD_RUN_PATH
18286	hardcode_runpath_var=yes
18287	ld_shlibs_GCJ=yes
18288      fi
18289      ;;
18290
18291    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18292      no_undefined_flag_GCJ='${wl}-z,text'
18293      archive_cmds_need_lc_GCJ=no
18294      hardcode_shlibpath_var_GCJ=no
18295      runpath_var='LD_RUN_PATH'
18296
18297      if test "$GCC" = yes; then
18298	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18299	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18300      else
18301	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18302	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18303      fi
18304      ;;
18305
18306    sysv5* | sco3.2v5* | sco5v6*)
18307      # Note: We can NOT use -z defs as we might desire, because we do not
18308      # link with -lc, and that would cause any symbols used from libc to
18309      # always be unresolved, which means just about no library would
18310      # ever link correctly.  If we're not using GNU ld we use -z text
18311      # though, which does catch some bad symbols but isn't as heavy-handed
18312      # as -z defs.
18313      no_undefined_flag_GCJ='${wl}-z,text'
18314      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18315      archive_cmds_need_lc_GCJ=no
18316      hardcode_shlibpath_var_GCJ=no
18317      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18318      hardcode_libdir_separator_GCJ=':'
18319      link_all_deplibs_GCJ=yes
18320      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18321      runpath_var='LD_RUN_PATH'
18322
18323      if test "$GCC" = yes; then
18324	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18325	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18326      else
18327	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18328	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18329      fi
18330      ;;
18331
18332    uts4*)
18333      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18334      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18335      hardcode_shlibpath_var_GCJ=no
18336      ;;
18337
18338    *)
18339      ld_shlibs_GCJ=no
18340      ;;
18341    esac
18342  fi
18343
18344{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18345$as_echo "$ld_shlibs_GCJ" >&6; }
18346test "$ld_shlibs_GCJ" = no && can_build_shared=no
18347
18348#
18349# Do we need to explicitly link libc?
18350#
18351case "x$archive_cmds_need_lc_GCJ" in
18352x|xyes)
18353  # Assume -lc should be added
18354  archive_cmds_need_lc_GCJ=yes
18355
18356  if test "$enable_shared" = yes && test "$GCC" = yes; then
18357    case $archive_cmds_GCJ in
18358    *'~'*)
18359      # FIXME: we may have to deal with multi-command sequences.
18360      ;;
18361    '$CC '*)
18362      # Test whether the compiler implicitly links with -lc since on some
18363      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18364      # to ld, don't add -lc before -lgcc.
18365      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18366$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18367      $rm conftest*
18368      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18369
18370      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18371  (eval $ac_compile) 2>&5
18372  ac_status=$?
18373  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374  (exit $ac_status); } 2>conftest.err; then
18375        soname=conftest
18376        lib=conftest
18377        libobjs=conftest.$ac_objext
18378        deplibs=
18379        wl=$lt_prog_compiler_wl_GCJ
18380	pic_flag=$lt_prog_compiler_pic_GCJ
18381        compiler_flags=-v
18382        linker_flags=-v
18383        verstring=
18384        output_objdir=.
18385        libname=conftest
18386        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18387        allow_undefined_flag_GCJ=
18388        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18389  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18390  ac_status=$?
18391  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392  (exit $ac_status); }
18393        then
18394	  archive_cmds_need_lc_GCJ=no
18395        else
18396	  archive_cmds_need_lc_GCJ=yes
18397        fi
18398        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18399      else
18400        cat conftest.err 1>&5
18401      fi
18402      $rm conftest*
18403      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18404$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18405      ;;
18406    esac
18407  fi
18408  ;;
18409esac
18410
18411{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18412$as_echo_n "checking dynamic linker characteristics... " >&6; }
18413library_names_spec=
18414libname_spec='lib$name'
18415soname_spec=
18416shrext_cmds=".so"
18417postinstall_cmds=
18418postuninstall_cmds=
18419finish_cmds=
18420finish_eval=
18421shlibpath_var=
18422shlibpath_overrides_runpath=unknown
18423version_type=none
18424dynamic_linker="$host_os ld.so"
18425sys_lib_dlsearch_path_spec="/lib /usr/lib"
18426
18427need_lib_prefix=unknown
18428hardcode_into_libs=no
18429
18430# when you set need_version to no, make sure it does not cause -set_version
18431# flags to be left without arguments
18432need_version=unknown
18433
18434case $host_os in
18435aix3*)
18436  version_type=linux
18437  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18438  shlibpath_var=LIBPATH
18439
18440  # AIX 3 has no versioning support, so we append a major version to the name.
18441  soname_spec='${libname}${release}${shared_ext}$major'
18442  ;;
18443
18444aix[4-9]*)
18445  version_type=linux
18446  need_lib_prefix=no
18447  need_version=no
18448  hardcode_into_libs=yes
18449  if test "$host_cpu" = ia64; then
18450    # AIX 5 supports IA64
18451    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18452    shlibpath_var=LD_LIBRARY_PATH
18453  else
18454    # With GCC up to 2.95.x, collect2 would create an import file
18455    # for dependence libraries.  The import file would start with
18456    # the line `#! .'.  This would cause the generated library to
18457    # depend on `.', always an invalid library.  This was fixed in
18458    # development snapshots of GCC prior to 3.0.
18459    case $host_os in
18460      aix4 | aix4.[01] | aix4.[01].*)
18461      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18462	   echo ' yes '
18463	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18464	:
18465      else
18466	can_build_shared=no
18467      fi
18468      ;;
18469    esac
18470    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18471    # soname into executable. Probably we can add versioning support to
18472    # collect2, so additional links can be useful in future.
18473    if test "$aix_use_runtimelinking" = yes; then
18474      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18475      # instead of lib<name>.a to let people know that these are not
18476      # typical AIX shared libraries.
18477      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18478    else
18479      # We preserve .a as extension for shared libraries through AIX4.2
18480      # and later when we are not doing run time linking.
18481      library_names_spec='${libname}${release}.a $libname.a'
18482      soname_spec='${libname}${release}${shared_ext}$major'
18483    fi
18484    shlibpath_var=LIBPATH
18485  fi
18486  ;;
18487
18488amigaos*)
18489  library_names_spec='$libname.ixlibrary $libname.a'
18490  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18491  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'
18492  ;;
18493
18494beos*)
18495  library_names_spec='${libname}${shared_ext}'
18496  dynamic_linker="$host_os ld.so"
18497  shlibpath_var=LIBRARY_PATH
18498  ;;
18499
18500bsdi[45]*)
18501  version_type=linux
18502  need_version=no
18503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18504  soname_spec='${libname}${release}${shared_ext}$major'
18505  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18506  shlibpath_var=LD_LIBRARY_PATH
18507  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18508  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18509  # the default ld.so.conf also contains /usr/contrib/lib and
18510  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18511  # libtool to hard-code these into programs
18512  ;;
18513
18514cygwin* | mingw* | pw32*)
18515  version_type=windows
18516  shrext_cmds=".dll"
18517  need_version=no
18518  need_lib_prefix=no
18519
18520  case $GCC,$host_os in
18521  yes,cygwin* | yes,mingw* | yes,pw32*)
18522    library_names_spec='$libname.dll.a'
18523    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18524    postinstall_cmds='base_file=`basename \${file}`~
18525      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18526      dldir=$destdir/`dirname \$dlpath`~
18527      test -d \$dldir || mkdir -p \$dldir~
18528      $install_prog $dir/$dlname \$dldir/$dlname~
18529      chmod a+x \$dldir/$dlname'
18530    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18531      dlpath=$dir/\$dldll~
18532       $rm \$dlpath'
18533    shlibpath_overrides_runpath=yes
18534
18535    case $host_os in
18536    cygwin*)
18537      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18538      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18539      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18540      ;;
18541    mingw*)
18542      # MinGW DLLs use traditional 'lib' prefix
18543      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18544      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18545      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18546        # It is most probably a Windows format PATH printed by
18547        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18548        # path with ; separators, and with drive letters. We can handle the
18549        # drive letters (cygwin fileutils understands them), so leave them,
18550        # especially as we might pass files found there to a mingw objdump,
18551        # which wouldn't understand a cygwinified path. Ahh.
18552        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18553      else
18554        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18555      fi
18556      ;;
18557    pw32*)
18558      # pw32 DLLs use 'pw' prefix rather than 'lib'
18559      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18560      ;;
18561    esac
18562    ;;
18563
18564  *)
18565    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18566    ;;
18567  esac
18568  dynamic_linker='Win32 ld.exe'
18569  # FIXME: first we should search . and the directory the executable is in
18570  shlibpath_var=PATH
18571  ;;
18572
18573darwin* | rhapsody*)
18574  dynamic_linker="$host_os dyld"
18575  version_type=darwin
18576  need_lib_prefix=no
18577  need_version=no
18578  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18579  soname_spec='${libname}${release}${major}$shared_ext'
18580  shlibpath_overrides_runpath=yes
18581  shlibpath_var=DYLD_LIBRARY_PATH
18582  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18583
18584  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18585  ;;
18586
18587dgux*)
18588  version_type=linux
18589  need_lib_prefix=no
18590  need_version=no
18591  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18592  soname_spec='${libname}${release}${shared_ext}$major'
18593  shlibpath_var=LD_LIBRARY_PATH
18594  ;;
18595
18596freebsd1*)
18597  dynamic_linker=no
18598  ;;
18599
18600freebsd* | dragonfly*)
18601  # DragonFly does not have aout.  When/if they implement a new
18602  # versioning mechanism, adjust this.
18603  if test -x /usr/bin/objformat; then
18604    objformat=`/usr/bin/objformat`
18605  else
18606    case $host_os in
18607    freebsd[123]*) objformat=aout ;;
18608    *) objformat=elf ;;
18609    esac
18610  fi
18611  version_type=freebsd-$objformat
18612  case $version_type in
18613    freebsd-elf*)
18614      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18615      need_version=no
18616      need_lib_prefix=no
18617      ;;
18618    freebsd-*)
18619      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18620      need_version=yes
18621      ;;
18622  esac
18623  shlibpath_var=LD_LIBRARY_PATH
18624  case $host_os in
18625  freebsd2*)
18626    shlibpath_overrides_runpath=yes
18627    ;;
18628  freebsd3.[01]* | freebsdelf3.[01]*)
18629    shlibpath_overrides_runpath=yes
18630    hardcode_into_libs=yes
18631    ;;
18632  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18633  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18634    shlibpath_overrides_runpath=no
18635    hardcode_into_libs=yes
18636    ;;
18637  *) # from 4.6 on, and DragonFly
18638    shlibpath_overrides_runpath=yes
18639    hardcode_into_libs=yes
18640    ;;
18641  esac
18642  ;;
18643
18644gnu*)
18645  version_type=linux
18646  need_lib_prefix=no
18647  need_version=no
18648  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18649  soname_spec='${libname}${release}${shared_ext}$major'
18650  shlibpath_var=LD_LIBRARY_PATH
18651  hardcode_into_libs=yes
18652  ;;
18653
18654hpux9* | hpux10* | hpux11*)
18655  # Give a soname corresponding to the major version so that dld.sl refuses to
18656  # link against other versions.
18657  version_type=sunos
18658  need_lib_prefix=no
18659  need_version=no
18660  case $host_cpu in
18661  ia64*)
18662    shrext_cmds='.so'
18663    hardcode_into_libs=yes
18664    dynamic_linker="$host_os dld.so"
18665    shlibpath_var=LD_LIBRARY_PATH
18666    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18667    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18668    soname_spec='${libname}${release}${shared_ext}$major'
18669    if test "X$HPUX_IA64_MODE" = X32; then
18670      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18671    else
18672      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18673    fi
18674    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18675    ;;
18676   hppa*64*)
18677     shrext_cmds='.sl'
18678     hardcode_into_libs=yes
18679     dynamic_linker="$host_os dld.sl"
18680     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18681     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18682     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18683     soname_spec='${libname}${release}${shared_ext}$major'
18684     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18685     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18686     ;;
18687   *)
18688    shrext_cmds='.sl'
18689    dynamic_linker="$host_os dld.sl"
18690    shlibpath_var=SHLIB_PATH
18691    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18692    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18693    soname_spec='${libname}${release}${shared_ext}$major'
18694    ;;
18695  esac
18696  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18697  postinstall_cmds='chmod 555 $lib'
18698  ;;
18699
18700interix[3-9]*)
18701  version_type=linux
18702  need_lib_prefix=no
18703  need_version=no
18704  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18705  soname_spec='${libname}${release}${shared_ext}$major'
18706  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18707  shlibpath_var=LD_LIBRARY_PATH
18708  shlibpath_overrides_runpath=no
18709  hardcode_into_libs=yes
18710  ;;
18711
18712irix5* | irix6* | nonstopux*)
18713  case $host_os in
18714    nonstopux*) version_type=nonstopux ;;
18715    *)
18716	if test "$lt_cv_prog_gnu_ld" = yes; then
18717		version_type=linux
18718	else
18719		version_type=irix
18720	fi ;;
18721  esac
18722  need_lib_prefix=no
18723  need_version=no
18724  soname_spec='${libname}${release}${shared_ext}$major'
18725  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18726  case $host_os in
18727  irix5* | nonstopux*)
18728    libsuff= shlibsuff=
18729    ;;
18730  *)
18731    case $LD in # libtool.m4 will add one of these switches to LD
18732    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18733      libsuff= shlibsuff= libmagic=32-bit;;
18734    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18735      libsuff=32 shlibsuff=N32 libmagic=N32;;
18736    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18737      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18738    *) libsuff= shlibsuff= libmagic=never-match;;
18739    esac
18740    ;;
18741  esac
18742  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18743  shlibpath_overrides_runpath=no
18744  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18745  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18746  hardcode_into_libs=yes
18747  ;;
18748
18749# No shared lib support for Linux oldld, aout, or coff.
18750linux*oldld* | linux*aout* | linux*coff*)
18751  dynamic_linker=no
18752  ;;
18753
18754# This must be Linux ELF.
18755linux* | k*bsd*-gnu)
18756  version_type=linux
18757  need_lib_prefix=no
18758  need_version=no
18759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18760  soname_spec='${libname}${release}${shared_ext}$major'
18761  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18762  shlibpath_var=LD_LIBRARY_PATH
18763  shlibpath_overrides_runpath=no
18764  # This implies no fast_install, which is unacceptable.
18765  # Some rework will be needed to allow for fast_install
18766  # before this can be enabled.
18767  hardcode_into_libs=yes
18768  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18769  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18770
18771  # Append ld.so.conf contents to the search path
18772  if test -f /etc/ld.so.conf; then
18773    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' ' '`
18774    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18775  fi
18776
18777  # We used to test for /lib/ld.so.1 and disable shared libraries on
18778  # powerpc, because MkLinux only supported shared libraries with the
18779  # GNU dynamic linker.  Since this was broken with cross compilers,
18780  # most powerpc-linux boxes support dynamic linking these days and
18781  # people can always --disable-shared, the test was removed, and we
18782  # assume the GNU/Linux dynamic linker is in use.
18783  dynamic_linker='GNU/Linux ld.so'
18784  ;;
18785
18786netbsd*)
18787  version_type=sunos
18788  need_lib_prefix=no
18789  need_version=no
18790  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18791    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18792    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18793    dynamic_linker='NetBSD (a.out) ld.so'
18794  else
18795    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18796    soname_spec='${libname}${release}${shared_ext}$major'
18797    dynamic_linker='NetBSD ld.elf_so'
18798  fi
18799  shlibpath_var=LD_LIBRARY_PATH
18800  shlibpath_overrides_runpath=yes
18801  hardcode_into_libs=yes
18802  ;;
18803
18804newsos6)
18805  version_type=linux
18806  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18807  shlibpath_var=LD_LIBRARY_PATH
18808  shlibpath_overrides_runpath=yes
18809  ;;
18810
18811nto-qnx*)
18812  version_type=linux
18813  need_lib_prefix=no
18814  need_version=no
18815  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18816  soname_spec='${libname}${release}${shared_ext}$major'
18817  shlibpath_var=LD_LIBRARY_PATH
18818  shlibpath_overrides_runpath=yes
18819  ;;
18820
18821openbsd*)
18822  version_type=sunos
18823  sys_lib_dlsearch_path_spec="/usr/lib"
18824  need_lib_prefix=no
18825  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18826  case $host_os in
18827    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18828    *)                         need_version=no  ;;
18829  esac
18830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18831  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18832  shlibpath_var=LD_LIBRARY_PATH
18833  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18834    case $host_os in
18835      openbsd2.[89] | openbsd2.[89].*)
18836	shlibpath_overrides_runpath=no
18837	;;
18838      *)
18839	shlibpath_overrides_runpath=yes
18840	;;
18841      esac
18842  else
18843    shlibpath_overrides_runpath=yes
18844  fi
18845  ;;
18846
18847os2*)
18848  libname_spec='$name'
18849  shrext_cmds=".dll"
18850  need_lib_prefix=no
18851  library_names_spec='$libname${shared_ext} $libname.a'
18852  dynamic_linker='OS/2 ld.exe'
18853  shlibpath_var=LIBPATH
18854  ;;
18855
18856osf3* | osf4* | osf5*)
18857  version_type=osf
18858  need_lib_prefix=no
18859  need_version=no
18860  soname_spec='${libname}${release}${shared_ext}$major'
18861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18862  shlibpath_var=LD_LIBRARY_PATH
18863  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18864  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18865  ;;
18866
18867rdos*)
18868  dynamic_linker=no
18869  ;;
18870
18871solaris*)
18872  version_type=linux
18873  need_lib_prefix=no
18874  need_version=no
18875  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18876  soname_spec='${libname}${release}${shared_ext}$major'
18877  shlibpath_var=LD_LIBRARY_PATH
18878  shlibpath_overrides_runpath=yes
18879  hardcode_into_libs=yes
18880  # ldd complains unless libraries are executable
18881  postinstall_cmds='chmod +x $lib'
18882  ;;
18883
18884sunos4*)
18885  version_type=sunos
18886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18887  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18888  shlibpath_var=LD_LIBRARY_PATH
18889  shlibpath_overrides_runpath=yes
18890  if test "$with_gnu_ld" = yes; then
18891    need_lib_prefix=no
18892  fi
18893  need_version=yes
18894  ;;
18895
18896sysv4 | sysv4.3*)
18897  version_type=linux
18898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18899  soname_spec='${libname}${release}${shared_ext}$major'
18900  shlibpath_var=LD_LIBRARY_PATH
18901  case $host_vendor in
18902    sni)
18903      shlibpath_overrides_runpath=no
18904      need_lib_prefix=no
18905      export_dynamic_flag_spec='${wl}-Blargedynsym'
18906      runpath_var=LD_RUN_PATH
18907      ;;
18908    siemens)
18909      need_lib_prefix=no
18910      ;;
18911    motorola)
18912      need_lib_prefix=no
18913      need_version=no
18914      shlibpath_overrides_runpath=no
18915      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18916      ;;
18917  esac
18918  ;;
18919
18920sysv4*MP*)
18921  if test -d /usr/nec ;then
18922    version_type=linux
18923    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18924    soname_spec='$libname${shared_ext}.$major'
18925    shlibpath_var=LD_LIBRARY_PATH
18926  fi
18927  ;;
18928
18929sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18930  version_type=freebsd-elf
18931  need_lib_prefix=no
18932  need_version=no
18933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18934  soname_spec='${libname}${release}${shared_ext}$major'
18935  shlibpath_var=LD_LIBRARY_PATH
18936  hardcode_into_libs=yes
18937  if test "$with_gnu_ld" = yes; then
18938    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18939    shlibpath_overrides_runpath=no
18940  else
18941    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18942    shlibpath_overrides_runpath=yes
18943    case $host_os in
18944      sco3.2v5*)
18945        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18946	;;
18947    esac
18948  fi
18949  sys_lib_dlsearch_path_spec='/usr/lib'
18950  ;;
18951
18952uts4*)
18953  version_type=linux
18954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18955  soname_spec='${libname}${release}${shared_ext}$major'
18956  shlibpath_var=LD_LIBRARY_PATH
18957  ;;
18958
18959*)
18960  dynamic_linker=no
18961  ;;
18962esac
18963{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18964$as_echo "$dynamic_linker" >&6; }
18965test "$dynamic_linker" = no && can_build_shared=no
18966
18967if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18968  $as_echo_n "(cached) " >&6
18969else
18970  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18971fi
18972
18973sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18974if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18975  $as_echo_n "(cached) " >&6
18976else
18977  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18978fi
18979
18980sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18981
18982variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18983if test "$GCC" = yes; then
18984  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18985fi
18986
18987{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18988$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18989hardcode_action_GCJ=
18990if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18991   test -n "$runpath_var_GCJ" || \
18992   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18993
18994  # We can hardcode non-existant directories.
18995  if test "$hardcode_direct_GCJ" != no &&
18996     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18997     # have to relink, otherwise we might link with an installed library
18998     # when we should be linking with a yet-to-be-installed one
18999     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19000     test "$hardcode_minus_L_GCJ" != no; then
19001    # Linking always hardcodes the temporary library directory.
19002    hardcode_action_GCJ=relink
19003  else
19004    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19005    hardcode_action_GCJ=immediate
19006  fi
19007else
19008  # We cannot hardcode anything, or else we can only hardcode existing
19009  # directories.
19010  hardcode_action_GCJ=unsupported
19011fi
19012{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19013$as_echo "$hardcode_action_GCJ" >&6; }
19014
19015if test "$hardcode_action_GCJ" = relink; then
19016  # Fast installation is not supported
19017  enable_fast_install=no
19018elif test "$shlibpath_overrides_runpath" = yes ||
19019     test "$enable_shared" = no; then
19020  # Fast installation is not necessary
19021  enable_fast_install=needless
19022fi
19023
19024
19025# The else clause should only fire when bootstrapping the
19026# libtool distribution, otherwise you forgot to ship ltmain.sh
19027# with your package, and you will get complaints that there are
19028# no rules to generate ltmain.sh.
19029if test -f "$ltmain"; then
19030  # See if we are running on zsh, and set the options which allow our commands through
19031  # without removal of \ escapes.
19032  if test -n "${ZSH_VERSION+set}" ; then
19033    setopt NO_GLOB_SUBST
19034  fi
19035  # Now quote all the things that may contain metacharacters while being
19036  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19037  # variables and quote the copies for generation of the libtool script.
19038  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19039    SED SHELL STRIP \
19040    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19041    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19042    deplibs_check_method reload_flag reload_cmds need_locks \
19043    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19044    lt_cv_sys_global_symbol_to_c_name_address \
19045    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19046    old_postinstall_cmds old_postuninstall_cmds \
19047    compiler_GCJ \
19048    CC_GCJ \
19049    LD_GCJ \
19050    lt_prog_compiler_wl_GCJ \
19051    lt_prog_compiler_pic_GCJ \
19052    lt_prog_compiler_static_GCJ \
19053    lt_prog_compiler_no_builtin_flag_GCJ \
19054    export_dynamic_flag_spec_GCJ \
19055    thread_safe_flag_spec_GCJ \
19056    whole_archive_flag_spec_GCJ \
19057    enable_shared_with_static_runtimes_GCJ \
19058    old_archive_cmds_GCJ \
19059    old_archive_from_new_cmds_GCJ \
19060    predep_objects_GCJ \
19061    postdep_objects_GCJ \
19062    predeps_GCJ \
19063    postdeps_GCJ \
19064    compiler_lib_search_path_GCJ \
19065    compiler_lib_search_dirs_GCJ \
19066    archive_cmds_GCJ \
19067    archive_expsym_cmds_GCJ \
19068    postinstall_cmds_GCJ \
19069    postuninstall_cmds_GCJ \
19070    old_archive_from_expsyms_cmds_GCJ \
19071    allow_undefined_flag_GCJ \
19072    no_undefined_flag_GCJ \
19073    export_symbols_cmds_GCJ \
19074    hardcode_libdir_flag_spec_GCJ \
19075    hardcode_libdir_flag_spec_ld_GCJ \
19076    hardcode_libdir_separator_GCJ \
19077    hardcode_automatic_GCJ \
19078    module_cmds_GCJ \
19079    module_expsym_cmds_GCJ \
19080    lt_cv_prog_compiler_c_o_GCJ \
19081    fix_srcfile_path_GCJ \
19082    exclude_expsyms_GCJ \
19083    include_expsyms_GCJ; do
19084
19085    case $var in
19086    old_archive_cmds_GCJ | \
19087    old_archive_from_new_cmds_GCJ | \
19088    archive_cmds_GCJ | \
19089    archive_expsym_cmds_GCJ | \
19090    module_cmds_GCJ | \
19091    module_expsym_cmds_GCJ | \
19092    old_archive_from_expsyms_cmds_GCJ | \
19093    export_symbols_cmds_GCJ | \
19094    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19095    postinstall_cmds | postuninstall_cmds | \
19096    old_postinstall_cmds | old_postuninstall_cmds | \
19097    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19098      # Double-quote double-evaled strings.
19099      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19100      ;;
19101    *)
19102      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19103      ;;
19104    esac
19105  done
19106
19107  case $lt_echo in
19108  *'\$0 --fallback-echo"')
19109    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19110    ;;
19111  esac
19112
19113cfgfile="$ofile"
19114
19115  cat <<__EOF__ >> "$cfgfile"
19116# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19117
19118# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19119
19120# Shell to use when invoking shell scripts.
19121SHELL=$lt_SHELL
19122
19123# Whether or not to build shared libraries.
19124build_libtool_libs=$enable_shared
19125
19126# Whether or not to build static libraries.
19127build_old_libs=$enable_static
19128
19129# Whether or not to add -lc for building shared libraries.
19130build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19131
19132# Whether or not to disallow shared libs when runtime libs are static
19133allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19134
19135# Whether or not to optimize for fast installation.
19136fast_install=$enable_fast_install
19137
19138# The host system.
19139host_alias=$host_alias
19140host=$host
19141host_os=$host_os
19142
19143# The build system.
19144build_alias=$build_alias
19145build=$build
19146build_os=$build_os
19147
19148# An echo program that does not interpret backslashes.
19149echo=$lt_echo
19150
19151# The archiver.
19152AR=$lt_AR
19153AR_FLAGS=$lt_AR_FLAGS
19154
19155# A C compiler.
19156LTCC=$lt_LTCC
19157
19158# LTCC compiler flags.
19159LTCFLAGS=$lt_LTCFLAGS
19160
19161# A language-specific compiler.
19162CC=$lt_compiler_GCJ
19163
19164# Is the compiler the GNU C compiler?
19165with_gcc=$GCC_GCJ
19166
19167# An ERE matcher.
19168EGREP=$lt_EGREP
19169
19170# The linker used to build libraries.
19171LD=$lt_LD_GCJ
19172
19173# Whether we need hard or soft links.
19174LN_S=$lt_LN_S
19175
19176# A BSD-compatible nm program.
19177NM=$lt_NM
19178
19179# A symbol stripping program
19180STRIP=$lt_STRIP
19181
19182# Used to examine libraries when file_magic_cmd begins "file"
19183MAGIC_CMD=$MAGIC_CMD
19184
19185# Used on cygwin: DLL creation program.
19186DLLTOOL="$DLLTOOL"
19187
19188# Used on cygwin: object dumper.
19189OBJDUMP="$OBJDUMP"
19190
19191# Used on cygwin: assembler.
19192AS="$AS"
19193
19194# The name of the directory that contains temporary libtool files.
19195objdir=$objdir
19196
19197# How to create reloadable object files.
19198reload_flag=$lt_reload_flag
19199reload_cmds=$lt_reload_cmds
19200
19201# How to pass a linker flag through the compiler.
19202wl=$lt_lt_prog_compiler_wl_GCJ
19203
19204# Object file suffix (normally "o").
19205objext="$ac_objext"
19206
19207# Old archive suffix (normally "a").
19208libext="$libext"
19209
19210# Shared library suffix (normally ".so").
19211shrext_cmds='$shrext_cmds'
19212
19213# Executable file suffix (normally "").
19214exeext="$exeext"
19215
19216# Additional compiler flags for building library objects.
19217pic_flag=$lt_lt_prog_compiler_pic_GCJ
19218pic_mode=$pic_mode
19219
19220# What is the maximum length of a command?
19221max_cmd_len=$lt_cv_sys_max_cmd_len
19222
19223# Does compiler simultaneously support -c and -o options?
19224compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19225
19226# Must we lock files when doing compilation?
19227need_locks=$lt_need_locks
19228
19229# Do we need the lib prefix for modules?
19230need_lib_prefix=$need_lib_prefix
19231
19232# Do we need a version for libraries?
19233need_version=$need_version
19234
19235# Whether dlopen is supported.
19236dlopen_support=$enable_dlopen
19237
19238# Whether dlopen of programs is supported.
19239dlopen_self=$enable_dlopen_self
19240
19241# Whether dlopen of statically linked programs is supported.
19242dlopen_self_static=$enable_dlopen_self_static
19243
19244# Compiler flag to prevent dynamic linking.
19245link_static_flag=$lt_lt_prog_compiler_static_GCJ
19246
19247# Compiler flag to turn off builtin functions.
19248no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19249
19250# Compiler flag to allow reflexive dlopens.
19251export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19252
19253# Compiler flag to generate shared objects directly from archives.
19254whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19255
19256# Compiler flag to generate thread-safe objects.
19257thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19258
19259# Library versioning type.
19260version_type=$version_type
19261
19262# Format of library name prefix.
19263libname_spec=$lt_libname_spec
19264
19265# List of archive names.  First name is the real one, the rest are links.
19266# The last name is the one that the linker finds with -lNAME.
19267library_names_spec=$lt_library_names_spec
19268
19269# The coded name of the library, if different from the real name.
19270soname_spec=$lt_soname_spec
19271
19272# Commands used to build and install an old-style archive.
19273RANLIB=$lt_RANLIB
19274old_archive_cmds=$lt_old_archive_cmds_GCJ
19275old_postinstall_cmds=$lt_old_postinstall_cmds
19276old_postuninstall_cmds=$lt_old_postuninstall_cmds
19277
19278# Create an old-style archive from a shared archive.
19279old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19280
19281# Create a temporary old-style archive to link instead of a shared archive.
19282old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19283
19284# Commands used to build and install a shared archive.
19285archive_cmds=$lt_archive_cmds_GCJ
19286archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19287postinstall_cmds=$lt_postinstall_cmds
19288postuninstall_cmds=$lt_postuninstall_cmds
19289
19290# Commands used to build a loadable module (assumed same as above if empty)
19291module_cmds=$lt_module_cmds_GCJ
19292module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19293
19294# Commands to strip libraries.
19295old_striplib=$lt_old_striplib
19296striplib=$lt_striplib
19297
19298# Dependencies to place before the objects being linked to create a
19299# shared library.
19300predep_objects=$lt_predep_objects_GCJ
19301
19302# Dependencies to place after the objects being linked to create a
19303# shared library.
19304postdep_objects=$lt_postdep_objects_GCJ
19305
19306# Dependencies to place before the objects being linked to create a
19307# shared library.
19308predeps=$lt_predeps_GCJ
19309
19310# Dependencies to place after the objects being linked to create a
19311# shared library.
19312postdeps=$lt_postdeps_GCJ
19313
19314# The directories searched by this compiler when creating a shared
19315# library
19316compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19317
19318# The library search path used internally by the compiler when linking
19319# a shared library.
19320compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19321
19322# Method to check whether dependent libraries are shared objects.
19323deplibs_check_method=$lt_deplibs_check_method
19324
19325# Command to use when deplibs_check_method == file_magic.
19326file_magic_cmd=$lt_file_magic_cmd
19327
19328# Flag that allows shared libraries with undefined symbols to be built.
19329allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19330
19331# Flag that forces no undefined symbols.
19332no_undefined_flag=$lt_no_undefined_flag_GCJ
19333
19334# Commands used to finish a libtool library installation in a directory.
19335finish_cmds=$lt_finish_cmds
19336
19337# Same as above, but a single script fragment to be evaled but not shown.
19338finish_eval=$lt_finish_eval
19339
19340# Take the output of nm and produce a listing of raw symbols and C names.
19341global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19342
19343# Transform the output of nm in a proper C declaration
19344global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19345
19346# Transform the output of nm in a C name address pair
19347global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19348
19349# This is the shared library runtime path variable.
19350runpath_var=$runpath_var
19351
19352# This is the shared library path variable.
19353shlibpath_var=$shlibpath_var
19354
19355# Is shlibpath searched before the hard-coded library search path?
19356shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19357
19358# How to hardcode a shared library path into an executable.
19359hardcode_action=$hardcode_action_GCJ
19360
19361# Whether we should hardcode library paths into libraries.
19362hardcode_into_libs=$hardcode_into_libs
19363
19364# Flag to hardcode \$libdir into a binary during linking.
19365# This must work even if \$libdir does not exist.
19366hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19367
19368# If ld is used when linking, flag to hardcode \$libdir into
19369# a binary during linking. This must work even if \$libdir does
19370# not exist.
19371hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19372
19373# Whether we need a single -rpath flag with a separated argument.
19374hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19375
19376# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19377# resulting binary.
19378hardcode_direct=$hardcode_direct_GCJ
19379
19380# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19381# resulting binary.
19382hardcode_minus_L=$hardcode_minus_L_GCJ
19383
19384# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19385# the resulting binary.
19386hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19387
19388# Set to yes if building a shared library automatically hardcodes DIR into the library
19389# and all subsequent libraries and executables linked against it.
19390hardcode_automatic=$hardcode_automatic_GCJ
19391
19392# Variables whose values should be saved in libtool wrapper scripts and
19393# restored at relink time.
19394variables_saved_for_relink="$variables_saved_for_relink"
19395
19396# Whether libtool must link a program against all its dependency libraries.
19397link_all_deplibs=$link_all_deplibs_GCJ
19398
19399# Compile-time system search path for libraries
19400sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19401
19402# Run-time system search path for libraries
19403sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19404
19405# Fix the shell variable \$srcfile for the compiler.
19406fix_srcfile_path=$lt_fix_srcfile_path
19407
19408# Set to yes if exported symbols are required.
19409always_export_symbols=$always_export_symbols_GCJ
19410
19411# The commands to list exported symbols.
19412export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19413
19414# The commands to extract the exported symbol list from a shared archive.
19415extract_expsyms_cmds=$lt_extract_expsyms_cmds
19416
19417# Symbols that should not be listed in the preloaded symbols.
19418exclude_expsyms=$lt_exclude_expsyms_GCJ
19419
19420# Symbols that must always be exported.
19421include_expsyms=$lt_include_expsyms_GCJ
19422
19423# ### END LIBTOOL TAG CONFIG: $tagname
19424
19425__EOF__
19426
19427
19428else
19429  # If there is no Makefile yet, we rely on a make rule to execute
19430  # `config.status --recheck' to rerun these tests and create the
19431  # libtool script then.
19432  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19433  if test -f "$ltmain_in"; then
19434    test -f Makefile && make "$ltmain"
19435  fi
19436fi
19437
19438
19439ac_ext=c
19440ac_cpp='$CPP $CPPFLAGS'
19441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19443ac_compiler_gnu=$ac_cv_c_compiler_gnu
19444
19445CC="$lt_save_CC"
19446
19447	else
19448	  tagname=""
19449	fi
19450	;;
19451
19452      RC)
19453
19454
19455# Source file extension for RC test sources.
19456ac_ext=rc
19457
19458# Object file extension for compiled RC test sources.
19459objext=o
19460objext_RC=$objext
19461
19462# Code to be used in simple compile tests
19463lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19464
19465# Code to be used in simple link tests
19466lt_simple_link_test_code="$lt_simple_compile_test_code"
19467
19468# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19469
19470# If no C compiler was specified, use CC.
19471LTCC=${LTCC-"$CC"}
19472
19473# If no C compiler flags were specified, use CFLAGS.
19474LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19475
19476# Allow CC to be a program name with arguments.
19477compiler=$CC
19478
19479
19480# save warnings/boilerplate of simple test code
19481ac_outfile=conftest.$ac_objext
19482echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19483eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19484_lt_compiler_boilerplate=`cat conftest.err`
19485$rm conftest*
19486
19487ac_outfile=conftest.$ac_objext
19488echo "$lt_simple_link_test_code" >conftest.$ac_ext
19489eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19490_lt_linker_boilerplate=`cat conftest.err`
19491$rm -r conftest*
19492
19493
19494# Allow CC to be a program name with arguments.
19495lt_save_CC="$CC"
19496CC=${RC-"windres"}
19497compiler=$CC
19498compiler_RC=$CC
19499for cc_temp in $compiler""; do
19500  case $cc_temp in
19501    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19502    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19503    \-*) ;;
19504    *) break;;
19505  esac
19506done
19507cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19508
19509lt_cv_prog_compiler_c_o_RC=yes
19510
19511# The else clause should only fire when bootstrapping the
19512# libtool distribution, otherwise you forgot to ship ltmain.sh
19513# with your package, and you will get complaints that there are
19514# no rules to generate ltmain.sh.
19515if test -f "$ltmain"; then
19516  # See if we are running on zsh, and set the options which allow our commands through
19517  # without removal of \ escapes.
19518  if test -n "${ZSH_VERSION+set}" ; then
19519    setopt NO_GLOB_SUBST
19520  fi
19521  # Now quote all the things that may contain metacharacters while being
19522  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19523  # variables and quote the copies for generation of the libtool script.
19524  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19525    SED SHELL STRIP \
19526    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19527    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19528    deplibs_check_method reload_flag reload_cmds need_locks \
19529    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19530    lt_cv_sys_global_symbol_to_c_name_address \
19531    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19532    old_postinstall_cmds old_postuninstall_cmds \
19533    compiler_RC \
19534    CC_RC \
19535    LD_RC \
19536    lt_prog_compiler_wl_RC \
19537    lt_prog_compiler_pic_RC \
19538    lt_prog_compiler_static_RC \
19539    lt_prog_compiler_no_builtin_flag_RC \
19540    export_dynamic_flag_spec_RC \
19541    thread_safe_flag_spec_RC \
19542    whole_archive_flag_spec_RC \
19543    enable_shared_with_static_runtimes_RC \
19544    old_archive_cmds_RC \
19545    old_archive_from_new_cmds_RC \
19546    predep_objects_RC \
19547    postdep_objects_RC \
19548    predeps_RC \
19549    postdeps_RC \
19550    compiler_lib_search_path_RC \
19551    compiler_lib_search_dirs_RC \
19552    archive_cmds_RC \
19553    archive_expsym_cmds_RC \
19554    postinstall_cmds_RC \
19555    postuninstall_cmds_RC \
19556    old_archive_from_expsyms_cmds_RC \
19557    allow_undefined_flag_RC \
19558    no_undefined_flag_RC \
19559    export_symbols_cmds_RC \
19560    hardcode_libdir_flag_spec_RC \
19561    hardcode_libdir_flag_spec_ld_RC \
19562    hardcode_libdir_separator_RC \
19563    hardcode_automatic_RC \
19564    module_cmds_RC \
19565    module_expsym_cmds_RC \
19566    lt_cv_prog_compiler_c_o_RC \
19567    fix_srcfile_path_RC \
19568    exclude_expsyms_RC \
19569    include_expsyms_RC; do
19570
19571    case $var in
19572    old_archive_cmds_RC | \
19573    old_archive_from_new_cmds_RC | \
19574    archive_cmds_RC | \
19575    archive_expsym_cmds_RC | \
19576    module_cmds_RC | \
19577    module_expsym_cmds_RC | \
19578    old_archive_from_expsyms_cmds_RC | \
19579    export_symbols_cmds_RC | \
19580    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19581    postinstall_cmds | postuninstall_cmds | \
19582    old_postinstall_cmds | old_postuninstall_cmds | \
19583    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19584      # Double-quote double-evaled strings.
19585      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19586      ;;
19587    *)
19588      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19589      ;;
19590    esac
19591  done
19592
19593  case $lt_echo in
19594  *'\$0 --fallback-echo"')
19595    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19596    ;;
19597  esac
19598
19599cfgfile="$ofile"
19600
19601  cat <<__EOF__ >> "$cfgfile"
19602# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19603
19604# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19605
19606# Shell to use when invoking shell scripts.
19607SHELL=$lt_SHELL
19608
19609# Whether or not to build shared libraries.
19610build_libtool_libs=$enable_shared
19611
19612# Whether or not to build static libraries.
19613build_old_libs=$enable_static
19614
19615# Whether or not to add -lc for building shared libraries.
19616build_libtool_need_lc=$archive_cmds_need_lc_RC
19617
19618# Whether or not to disallow shared libs when runtime libs are static
19619allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19620
19621# Whether or not to optimize for fast installation.
19622fast_install=$enable_fast_install
19623
19624# The host system.
19625host_alias=$host_alias
19626host=$host
19627host_os=$host_os
19628
19629# The build system.
19630build_alias=$build_alias
19631build=$build
19632build_os=$build_os
19633
19634# An echo program that does not interpret backslashes.
19635echo=$lt_echo
19636
19637# The archiver.
19638AR=$lt_AR
19639AR_FLAGS=$lt_AR_FLAGS
19640
19641# A C compiler.
19642LTCC=$lt_LTCC
19643
19644# LTCC compiler flags.
19645LTCFLAGS=$lt_LTCFLAGS
19646
19647# A language-specific compiler.
19648CC=$lt_compiler_RC
19649
19650# Is the compiler the GNU C compiler?
19651with_gcc=$GCC_RC
19652
19653# An ERE matcher.
19654EGREP=$lt_EGREP
19655
19656# The linker used to build libraries.
19657LD=$lt_LD_RC
19658
19659# Whether we need hard or soft links.
19660LN_S=$lt_LN_S
19661
19662# A BSD-compatible nm program.
19663NM=$lt_NM
19664
19665# A symbol stripping program
19666STRIP=$lt_STRIP
19667
19668# Used to examine libraries when file_magic_cmd begins "file"
19669MAGIC_CMD=$MAGIC_CMD
19670
19671# Used on cygwin: DLL creation program.
19672DLLTOOL="$DLLTOOL"
19673
19674# Used on cygwin: object dumper.
19675OBJDUMP="$OBJDUMP"
19676
19677# Used on cygwin: assembler.
19678AS="$AS"
19679
19680# The name of the directory that contains temporary libtool files.
19681objdir=$objdir
19682
19683# How to create reloadable object files.
19684reload_flag=$lt_reload_flag
19685reload_cmds=$lt_reload_cmds
19686
19687# How to pass a linker flag through the compiler.
19688wl=$lt_lt_prog_compiler_wl_RC
19689
19690# Object file suffix (normally "o").
19691objext="$ac_objext"
19692
19693# Old archive suffix (normally "a").
19694libext="$libext"
19695
19696# Shared library suffix (normally ".so").
19697shrext_cmds='$shrext_cmds'
19698
19699# Executable file suffix (normally "").
19700exeext="$exeext"
19701
19702# Additional compiler flags for building library objects.
19703pic_flag=$lt_lt_prog_compiler_pic_RC
19704pic_mode=$pic_mode
19705
19706# What is the maximum length of a command?
19707max_cmd_len=$lt_cv_sys_max_cmd_len
19708
19709# Does compiler simultaneously support -c and -o options?
19710compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19711
19712# Must we lock files when doing compilation?
19713need_locks=$lt_need_locks
19714
19715# Do we need the lib prefix for modules?
19716need_lib_prefix=$need_lib_prefix
19717
19718# Do we need a version for libraries?
19719need_version=$need_version
19720
19721# Whether dlopen is supported.
19722dlopen_support=$enable_dlopen
19723
19724# Whether dlopen of programs is supported.
19725dlopen_self=$enable_dlopen_self
19726
19727# Whether dlopen of statically linked programs is supported.
19728dlopen_self_static=$enable_dlopen_self_static
19729
19730# Compiler flag to prevent dynamic linking.
19731link_static_flag=$lt_lt_prog_compiler_static_RC
19732
19733# Compiler flag to turn off builtin functions.
19734no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19735
19736# Compiler flag to allow reflexive dlopens.
19737export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19738
19739# Compiler flag to generate shared objects directly from archives.
19740whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19741
19742# Compiler flag to generate thread-safe objects.
19743thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19744
19745# Library versioning type.
19746version_type=$version_type
19747
19748# Format of library name prefix.
19749libname_spec=$lt_libname_spec
19750
19751# List of archive names.  First name is the real one, the rest are links.
19752# The last name is the one that the linker finds with -lNAME.
19753library_names_spec=$lt_library_names_spec
19754
19755# The coded name of the library, if different from the real name.
19756soname_spec=$lt_soname_spec
19757
19758# Commands used to build and install an old-style archive.
19759RANLIB=$lt_RANLIB
19760old_archive_cmds=$lt_old_archive_cmds_RC
19761old_postinstall_cmds=$lt_old_postinstall_cmds
19762old_postuninstall_cmds=$lt_old_postuninstall_cmds
19763
19764# Create an old-style archive from a shared archive.
19765old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19766
19767# Create a temporary old-style archive to link instead of a shared archive.
19768old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19769
19770# Commands used to build and install a shared archive.
19771archive_cmds=$lt_archive_cmds_RC
19772archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19773postinstall_cmds=$lt_postinstall_cmds
19774postuninstall_cmds=$lt_postuninstall_cmds
19775
19776# Commands used to build a loadable module (assumed same as above if empty)
19777module_cmds=$lt_module_cmds_RC
19778module_expsym_cmds=$lt_module_expsym_cmds_RC
19779
19780# Commands to strip libraries.
19781old_striplib=$lt_old_striplib
19782striplib=$lt_striplib
19783
19784# Dependencies to place before the objects being linked to create a
19785# shared library.
19786predep_objects=$lt_predep_objects_RC
19787
19788# Dependencies to place after the objects being linked to create a
19789# shared library.
19790postdep_objects=$lt_postdep_objects_RC
19791
19792# Dependencies to place before the objects being linked to create a
19793# shared library.
19794predeps=$lt_predeps_RC
19795
19796# Dependencies to place after the objects being linked to create a
19797# shared library.
19798postdeps=$lt_postdeps_RC
19799
19800# The directories searched by this compiler when creating a shared
19801# library
19802compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19803
19804# The library search path used internally by the compiler when linking
19805# a shared library.
19806compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19807
19808# Method to check whether dependent libraries are shared objects.
19809deplibs_check_method=$lt_deplibs_check_method
19810
19811# Command to use when deplibs_check_method == file_magic.
19812file_magic_cmd=$lt_file_magic_cmd
19813
19814# Flag that allows shared libraries with undefined symbols to be built.
19815allow_undefined_flag=$lt_allow_undefined_flag_RC
19816
19817# Flag that forces no undefined symbols.
19818no_undefined_flag=$lt_no_undefined_flag_RC
19819
19820# Commands used to finish a libtool library installation in a directory.
19821finish_cmds=$lt_finish_cmds
19822
19823# Same as above, but a single script fragment to be evaled but not shown.
19824finish_eval=$lt_finish_eval
19825
19826# Take the output of nm and produce a listing of raw symbols and C names.
19827global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19828
19829# Transform the output of nm in a proper C declaration
19830global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19831
19832# Transform the output of nm in a C name address pair
19833global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19834
19835# This is the shared library runtime path variable.
19836runpath_var=$runpath_var
19837
19838# This is the shared library path variable.
19839shlibpath_var=$shlibpath_var
19840
19841# Is shlibpath searched before the hard-coded library search path?
19842shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19843
19844# How to hardcode a shared library path into an executable.
19845hardcode_action=$hardcode_action_RC
19846
19847# Whether we should hardcode library paths into libraries.
19848hardcode_into_libs=$hardcode_into_libs
19849
19850# Flag to hardcode \$libdir into a binary during linking.
19851# This must work even if \$libdir does not exist.
19852hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19853
19854# If ld is used when linking, flag to hardcode \$libdir into
19855# a binary during linking. This must work even if \$libdir does
19856# not exist.
19857hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19858
19859# Whether we need a single -rpath flag with a separated argument.
19860hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19861
19862# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19863# resulting binary.
19864hardcode_direct=$hardcode_direct_RC
19865
19866# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19867# resulting binary.
19868hardcode_minus_L=$hardcode_minus_L_RC
19869
19870# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19871# the resulting binary.
19872hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19873
19874# Set to yes if building a shared library automatically hardcodes DIR into the library
19875# and all subsequent libraries and executables linked against it.
19876hardcode_automatic=$hardcode_automatic_RC
19877
19878# Variables whose values should be saved in libtool wrapper scripts and
19879# restored at relink time.
19880variables_saved_for_relink="$variables_saved_for_relink"
19881
19882# Whether libtool must link a program against all its dependency libraries.
19883link_all_deplibs=$link_all_deplibs_RC
19884
19885# Compile-time system search path for libraries
19886sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19887
19888# Run-time system search path for libraries
19889sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19890
19891# Fix the shell variable \$srcfile for the compiler.
19892fix_srcfile_path=$lt_fix_srcfile_path
19893
19894# Set to yes if exported symbols are required.
19895always_export_symbols=$always_export_symbols_RC
19896
19897# The commands to list exported symbols.
19898export_symbols_cmds=$lt_export_symbols_cmds_RC
19899
19900# The commands to extract the exported symbol list from a shared archive.
19901extract_expsyms_cmds=$lt_extract_expsyms_cmds
19902
19903# Symbols that should not be listed in the preloaded symbols.
19904exclude_expsyms=$lt_exclude_expsyms_RC
19905
19906# Symbols that must always be exported.
19907include_expsyms=$lt_include_expsyms_RC
19908
19909# ### END LIBTOOL TAG CONFIG: $tagname
19910
19911__EOF__
19912
19913
19914else
19915  # If there is no Makefile yet, we rely on a make rule to execute
19916  # `config.status --recheck' to rerun these tests and create the
19917  # libtool script then.
19918  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19919  if test -f "$ltmain_in"; then
19920    test -f Makefile && make "$ltmain"
19921  fi
19922fi
19923
19924
19925ac_ext=c
19926ac_cpp='$CPP $CPPFLAGS'
19927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19929ac_compiler_gnu=$ac_cv_c_compiler_gnu
19930
19931CC="$lt_save_CC"
19932
19933	;;
19934
19935      *)
19936	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19937$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19938   { (exit 1); exit 1; }; }
19939	;;
19940      esac
19941
19942      # Append the new tag name to the list of available tags.
19943      if test -n "$tagname" ; then
19944      available_tags="$available_tags $tagname"
19945    fi
19946    fi
19947  done
19948  IFS="$lt_save_ifs"
19949
19950  # Now substitute the updated list of available tags.
19951  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19952    mv "${ofile}T" "$ofile"
19953    chmod +x "$ofile"
19954  else
19955    rm -f "${ofile}T"
19956    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19957$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19958   { (exit 1); exit 1; }; }
19959  fi
19960fi
19961
19962
19963
19964# This can be used to rebuild libtool when needed
19965LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19966
19967# Always use our own libtool.
19968LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19969
19970# Prevent multiple expansion
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991ac_ext=c
19992ac_cpp='$CPP $CPPFLAGS'
19993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19995ac_compiler_gnu=$ac_cv_c_compiler_gnu
19996if test -n "$ac_tool_prefix"; then
19997  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19998set dummy ${ac_tool_prefix}gcc; ac_word=$2
19999{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20000$as_echo_n "checking for $ac_word... " >&6; }
20001if test "${ac_cv_prog_CC+set}" = set; then
20002  $as_echo_n "(cached) " >&6
20003else
20004  if test -n "$CC"; then
20005  ac_cv_prog_CC="$CC" # Let the user override the test.
20006else
20007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20008for as_dir in $PATH
20009do
20010  IFS=$as_save_IFS
20011  test -z "$as_dir" && as_dir=.
20012  for ac_exec_ext in '' $ac_executable_extensions; do
20013  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20014    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20015    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20016    break 2
20017  fi
20018done
20019done
20020IFS=$as_save_IFS
20021
20022fi
20023fi
20024CC=$ac_cv_prog_CC
20025if test -n "$CC"; then
20026  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20027$as_echo "$CC" >&6; }
20028else
20029  { $as_echo "$as_me:$LINENO: result: no" >&5
20030$as_echo "no" >&6; }
20031fi
20032
20033
20034fi
20035if test -z "$ac_cv_prog_CC"; then
20036  ac_ct_CC=$CC
20037  # Extract the first word of "gcc", so it can be a program name with args.
20038set dummy gcc; ac_word=$2
20039{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20040$as_echo_n "checking for $ac_word... " >&6; }
20041if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20042  $as_echo_n "(cached) " >&6
20043else
20044  if test -n "$ac_ct_CC"; then
20045  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20046else
20047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20048for as_dir in $PATH
20049do
20050  IFS=$as_save_IFS
20051  test -z "$as_dir" && as_dir=.
20052  for ac_exec_ext in '' $ac_executable_extensions; do
20053  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20054    ac_cv_prog_ac_ct_CC="gcc"
20055    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20056    break 2
20057  fi
20058done
20059done
20060IFS=$as_save_IFS
20061
20062fi
20063fi
20064ac_ct_CC=$ac_cv_prog_ac_ct_CC
20065if test -n "$ac_ct_CC"; then
20066  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20067$as_echo "$ac_ct_CC" >&6; }
20068else
20069  { $as_echo "$as_me:$LINENO: result: no" >&5
20070$as_echo "no" >&6; }
20071fi
20072
20073  if test "x$ac_ct_CC" = x; then
20074    CC=""
20075  else
20076    case $cross_compiling:$ac_tool_warned in
20077yes:)
20078{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20080ac_tool_warned=yes ;;
20081esac
20082    CC=$ac_ct_CC
20083  fi
20084else
20085  CC="$ac_cv_prog_CC"
20086fi
20087
20088if test -z "$CC"; then
20089          if test -n "$ac_tool_prefix"; then
20090    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20091set dummy ${ac_tool_prefix}cc; ac_word=$2
20092{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20093$as_echo_n "checking for $ac_word... " >&6; }
20094if test "${ac_cv_prog_CC+set}" = set; then
20095  $as_echo_n "(cached) " >&6
20096else
20097  if test -n "$CC"; then
20098  ac_cv_prog_CC="$CC" # Let the user override the test.
20099else
20100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20101for as_dir in $PATH
20102do
20103  IFS=$as_save_IFS
20104  test -z "$as_dir" && as_dir=.
20105  for ac_exec_ext in '' $ac_executable_extensions; do
20106  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20107    ac_cv_prog_CC="${ac_tool_prefix}cc"
20108    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20109    break 2
20110  fi
20111done
20112done
20113IFS=$as_save_IFS
20114
20115fi
20116fi
20117CC=$ac_cv_prog_CC
20118if test -n "$CC"; then
20119  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20120$as_echo "$CC" >&6; }
20121else
20122  { $as_echo "$as_me:$LINENO: result: no" >&5
20123$as_echo "no" >&6; }
20124fi
20125
20126
20127  fi
20128fi
20129if test -z "$CC"; then
20130  # Extract the first word of "cc", so it can be a program name with args.
20131set dummy cc; ac_word=$2
20132{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20133$as_echo_n "checking for $ac_word... " >&6; }
20134if test "${ac_cv_prog_CC+set}" = set; then
20135  $as_echo_n "(cached) " >&6
20136else
20137  if test -n "$CC"; then
20138  ac_cv_prog_CC="$CC" # Let the user override the test.
20139else
20140  ac_prog_rejected=no
20141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20142for as_dir in $PATH
20143do
20144  IFS=$as_save_IFS
20145  test -z "$as_dir" && as_dir=.
20146  for ac_exec_ext in '' $ac_executable_extensions; do
20147  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20148    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20149       ac_prog_rejected=yes
20150       continue
20151     fi
20152    ac_cv_prog_CC="cc"
20153    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20154    break 2
20155  fi
20156done
20157done
20158IFS=$as_save_IFS
20159
20160if test $ac_prog_rejected = yes; then
20161  # We found a bogon in the path, so make sure we never use it.
20162  set dummy $ac_cv_prog_CC
20163  shift
20164  if test $# != 0; then
20165    # We chose a different compiler from the bogus one.
20166    # However, it has the same basename, so the bogon will be chosen
20167    # first if we set CC to just the basename; use the full file name.
20168    shift
20169    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20170  fi
20171fi
20172fi
20173fi
20174CC=$ac_cv_prog_CC
20175if test -n "$CC"; then
20176  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20177$as_echo "$CC" >&6; }
20178else
20179  { $as_echo "$as_me:$LINENO: result: no" >&5
20180$as_echo "no" >&6; }
20181fi
20182
20183
20184fi
20185if test -z "$CC"; then
20186  if test -n "$ac_tool_prefix"; then
20187  for ac_prog in cl.exe
20188  do
20189    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20190set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20191{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20192$as_echo_n "checking for $ac_word... " >&6; }
20193if test "${ac_cv_prog_CC+set}" = set; then
20194  $as_echo_n "(cached) " >&6
20195else
20196  if test -n "$CC"; then
20197  ac_cv_prog_CC="$CC" # Let the user override the test.
20198else
20199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20200for as_dir in $PATH
20201do
20202  IFS=$as_save_IFS
20203  test -z "$as_dir" && as_dir=.
20204  for ac_exec_ext in '' $ac_executable_extensions; do
20205  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20206    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20207    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20208    break 2
20209  fi
20210done
20211done
20212IFS=$as_save_IFS
20213
20214fi
20215fi
20216CC=$ac_cv_prog_CC
20217if test -n "$CC"; then
20218  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20219$as_echo "$CC" >&6; }
20220else
20221  { $as_echo "$as_me:$LINENO: result: no" >&5
20222$as_echo "no" >&6; }
20223fi
20224
20225
20226    test -n "$CC" && break
20227  done
20228fi
20229if test -z "$CC"; then
20230  ac_ct_CC=$CC
20231  for ac_prog in cl.exe
20232do
20233  # Extract the first word of "$ac_prog", so it can be a program name with args.
20234set dummy $ac_prog; ac_word=$2
20235{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20236$as_echo_n "checking for $ac_word... " >&6; }
20237if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20238  $as_echo_n "(cached) " >&6
20239else
20240  if test -n "$ac_ct_CC"; then
20241  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20242else
20243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20244for as_dir in $PATH
20245do
20246  IFS=$as_save_IFS
20247  test -z "$as_dir" && as_dir=.
20248  for ac_exec_ext in '' $ac_executable_extensions; do
20249  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20250    ac_cv_prog_ac_ct_CC="$ac_prog"
20251    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20252    break 2
20253  fi
20254done
20255done
20256IFS=$as_save_IFS
20257
20258fi
20259fi
20260ac_ct_CC=$ac_cv_prog_ac_ct_CC
20261if test -n "$ac_ct_CC"; then
20262  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20263$as_echo "$ac_ct_CC" >&6; }
20264else
20265  { $as_echo "$as_me:$LINENO: result: no" >&5
20266$as_echo "no" >&6; }
20267fi
20268
20269
20270  test -n "$ac_ct_CC" && break
20271done
20272
20273  if test "x$ac_ct_CC" = x; then
20274    CC=""
20275  else
20276    case $cross_compiling:$ac_tool_warned in
20277yes:)
20278{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20280ac_tool_warned=yes ;;
20281esac
20282    CC=$ac_ct_CC
20283  fi
20284fi
20285
20286fi
20287
20288
20289test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20291{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20292See \`config.log' for more details." >&5
20293$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20294See \`config.log' for more details." >&2;}
20295   { (exit 1); exit 1; }; }; }
20296
20297# Provide some information about the compiler.
20298$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20299set X $ac_compile
20300ac_compiler=$2
20301{ (ac_try="$ac_compiler --version >&5"
20302case "(($ac_try" in
20303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20304  *) ac_try_echo=$ac_try;;
20305esac
20306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20307$as_echo "$ac_try_echo") >&5
20308  (eval "$ac_compiler --version >&5") 2>&5
20309  ac_status=$?
20310  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311  (exit $ac_status); }
20312{ (ac_try="$ac_compiler -v >&5"
20313case "(($ac_try" in
20314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315  *) ac_try_echo=$ac_try;;
20316esac
20317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20318$as_echo "$ac_try_echo") >&5
20319  (eval "$ac_compiler -v >&5") 2>&5
20320  ac_status=$?
20321  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322  (exit $ac_status); }
20323{ (ac_try="$ac_compiler -V >&5"
20324case "(($ac_try" in
20325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326  *) ac_try_echo=$ac_try;;
20327esac
20328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20329$as_echo "$ac_try_echo") >&5
20330  (eval "$ac_compiler -V >&5") 2>&5
20331  ac_status=$?
20332  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333  (exit $ac_status); }
20334
20335{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20336$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20337if test "${ac_cv_c_compiler_gnu+set}" = set; then
20338  $as_echo_n "(cached) " >&6
20339else
20340  cat >conftest.$ac_ext <<_ACEOF
20341/* confdefs.h.  */
20342_ACEOF
20343cat confdefs.h >>conftest.$ac_ext
20344cat >>conftest.$ac_ext <<_ACEOF
20345/* end confdefs.h.  */
20346
20347int
20348main ()
20349{
20350#ifndef __GNUC__
20351       choke me
20352#endif
20353
20354  ;
20355  return 0;
20356}
20357_ACEOF
20358rm -f conftest.$ac_objext
20359if { (ac_try="$ac_compile"
20360case "(($ac_try" in
20361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362  *) ac_try_echo=$ac_try;;
20363esac
20364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20365$as_echo "$ac_try_echo") >&5
20366  (eval "$ac_compile") 2>conftest.er1
20367  ac_status=$?
20368  grep -v '^ *+' conftest.er1 >conftest.err
20369  rm -f conftest.er1
20370  cat conftest.err >&5
20371  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372  (exit $ac_status); } && {
20373	 test -z "$ac_c_werror_flag" ||
20374	 test ! -s conftest.err
20375       } && test -s conftest.$ac_objext; then
20376  ac_compiler_gnu=yes
20377else
20378  $as_echo "$as_me: failed program was:" >&5
20379sed 's/^/| /' conftest.$ac_ext >&5
20380
20381	ac_compiler_gnu=no
20382fi
20383
20384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20385ac_cv_c_compiler_gnu=$ac_compiler_gnu
20386
20387fi
20388{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20389$as_echo "$ac_cv_c_compiler_gnu" >&6; }
20390if test $ac_compiler_gnu = yes; then
20391  GCC=yes
20392else
20393  GCC=
20394fi
20395ac_test_CFLAGS=${CFLAGS+set}
20396ac_save_CFLAGS=$CFLAGS
20397{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20398$as_echo_n "checking whether $CC accepts -g... " >&6; }
20399if test "${ac_cv_prog_cc_g+set}" = set; then
20400  $as_echo_n "(cached) " >&6
20401else
20402  ac_save_c_werror_flag=$ac_c_werror_flag
20403   ac_c_werror_flag=yes
20404   ac_cv_prog_cc_g=no
20405   CFLAGS="-g"
20406   cat >conftest.$ac_ext <<_ACEOF
20407/* confdefs.h.  */
20408_ACEOF
20409cat confdefs.h >>conftest.$ac_ext
20410cat >>conftest.$ac_ext <<_ACEOF
20411/* end confdefs.h.  */
20412
20413int
20414main ()
20415{
20416
20417  ;
20418  return 0;
20419}
20420_ACEOF
20421rm -f conftest.$ac_objext
20422if { (ac_try="$ac_compile"
20423case "(($ac_try" in
20424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425  *) ac_try_echo=$ac_try;;
20426esac
20427eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20428$as_echo "$ac_try_echo") >&5
20429  (eval "$ac_compile") 2>conftest.er1
20430  ac_status=$?
20431  grep -v '^ *+' conftest.er1 >conftest.err
20432  rm -f conftest.er1
20433  cat conftest.err >&5
20434  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435  (exit $ac_status); } && {
20436	 test -z "$ac_c_werror_flag" ||
20437	 test ! -s conftest.err
20438       } && test -s conftest.$ac_objext; then
20439  ac_cv_prog_cc_g=yes
20440else
20441  $as_echo "$as_me: failed program was:" >&5
20442sed 's/^/| /' conftest.$ac_ext >&5
20443
20444	CFLAGS=""
20445      cat >conftest.$ac_ext <<_ACEOF
20446/* confdefs.h.  */
20447_ACEOF
20448cat confdefs.h >>conftest.$ac_ext
20449cat >>conftest.$ac_ext <<_ACEOF
20450/* end confdefs.h.  */
20451
20452int
20453main ()
20454{
20455
20456  ;
20457  return 0;
20458}
20459_ACEOF
20460rm -f conftest.$ac_objext
20461if { (ac_try="$ac_compile"
20462case "(($ac_try" in
20463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464  *) ac_try_echo=$ac_try;;
20465esac
20466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20467$as_echo "$ac_try_echo") >&5
20468  (eval "$ac_compile") 2>conftest.er1
20469  ac_status=$?
20470  grep -v '^ *+' conftest.er1 >conftest.err
20471  rm -f conftest.er1
20472  cat conftest.err >&5
20473  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474  (exit $ac_status); } && {
20475	 test -z "$ac_c_werror_flag" ||
20476	 test ! -s conftest.err
20477       } && test -s conftest.$ac_objext; then
20478  :
20479else
20480  $as_echo "$as_me: failed program was:" >&5
20481sed 's/^/| /' conftest.$ac_ext >&5
20482
20483	ac_c_werror_flag=$ac_save_c_werror_flag
20484	 CFLAGS="-g"
20485	 cat >conftest.$ac_ext <<_ACEOF
20486/* confdefs.h.  */
20487_ACEOF
20488cat confdefs.h >>conftest.$ac_ext
20489cat >>conftest.$ac_ext <<_ACEOF
20490/* end confdefs.h.  */
20491
20492int
20493main ()
20494{
20495
20496  ;
20497  return 0;
20498}
20499_ACEOF
20500rm -f conftest.$ac_objext
20501if { (ac_try="$ac_compile"
20502case "(($ac_try" in
20503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504  *) ac_try_echo=$ac_try;;
20505esac
20506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20507$as_echo "$ac_try_echo") >&5
20508  (eval "$ac_compile") 2>conftest.er1
20509  ac_status=$?
20510  grep -v '^ *+' conftest.er1 >conftest.err
20511  rm -f conftest.er1
20512  cat conftest.err >&5
20513  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514  (exit $ac_status); } && {
20515	 test -z "$ac_c_werror_flag" ||
20516	 test ! -s conftest.err
20517       } && test -s conftest.$ac_objext; then
20518  ac_cv_prog_cc_g=yes
20519else
20520  $as_echo "$as_me: failed program was:" >&5
20521sed 's/^/| /' conftest.$ac_ext >&5
20522
20523
20524fi
20525
20526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20527fi
20528
20529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20530fi
20531
20532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20533   ac_c_werror_flag=$ac_save_c_werror_flag
20534fi
20535{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20536$as_echo "$ac_cv_prog_cc_g" >&6; }
20537if test "$ac_test_CFLAGS" = set; then
20538  CFLAGS=$ac_save_CFLAGS
20539elif test $ac_cv_prog_cc_g = yes; then
20540  if test "$GCC" = yes; then
20541    CFLAGS="-g -O2"
20542  else
20543    CFLAGS="-g"
20544  fi
20545else
20546  if test "$GCC" = yes; then
20547    CFLAGS="-O2"
20548  else
20549    CFLAGS=
20550  fi
20551fi
20552{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20553$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20554if test "${ac_cv_prog_cc_c89+set}" = set; then
20555  $as_echo_n "(cached) " >&6
20556else
20557  ac_cv_prog_cc_c89=no
20558ac_save_CC=$CC
20559cat >conftest.$ac_ext <<_ACEOF
20560/* confdefs.h.  */
20561_ACEOF
20562cat confdefs.h >>conftest.$ac_ext
20563cat >>conftest.$ac_ext <<_ACEOF
20564/* end confdefs.h.  */
20565#include <stdarg.h>
20566#include <stdio.h>
20567#include <sys/types.h>
20568#include <sys/stat.h>
20569/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20570struct buf { int x; };
20571FILE * (*rcsopen) (struct buf *, struct stat *, int);
20572static char *e (p, i)
20573     char **p;
20574     int i;
20575{
20576  return p[i];
20577}
20578static char *f (char * (*g) (char **, int), char **p, ...)
20579{
20580  char *s;
20581  va_list v;
20582  va_start (v,p);
20583  s = g (p, va_arg (v,int));
20584  va_end (v);
20585  return s;
20586}
20587
20588/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20589   function prototypes and stuff, but not '\xHH' hex character constants.
20590   These don't provoke an error unfortunately, instead are silently treated
20591   as 'x'.  The following induces an error, until -std is added to get
20592   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20593   array size at least.  It's necessary to write '\x00'==0 to get something
20594   that's true only with -std.  */
20595int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20596
20597/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20598   inside strings and character constants.  */
20599#define FOO(x) 'x'
20600int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20601
20602int test (int i, double x);
20603struct s1 {int (*f) (int a);};
20604struct s2 {int (*f) (double a);};
20605int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20606int argc;
20607char **argv;
20608int
20609main ()
20610{
20611return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20612  ;
20613  return 0;
20614}
20615_ACEOF
20616for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20617	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20618do
20619  CC="$ac_save_CC $ac_arg"
20620  rm -f conftest.$ac_objext
20621if { (ac_try="$ac_compile"
20622case "(($ac_try" in
20623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624  *) ac_try_echo=$ac_try;;
20625esac
20626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20627$as_echo "$ac_try_echo") >&5
20628  (eval "$ac_compile") 2>conftest.er1
20629  ac_status=$?
20630  grep -v '^ *+' conftest.er1 >conftest.err
20631  rm -f conftest.er1
20632  cat conftest.err >&5
20633  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634  (exit $ac_status); } && {
20635	 test -z "$ac_c_werror_flag" ||
20636	 test ! -s conftest.err
20637       } && test -s conftest.$ac_objext; then
20638  ac_cv_prog_cc_c89=$ac_arg
20639else
20640  $as_echo "$as_me: failed program was:" >&5
20641sed 's/^/| /' conftest.$ac_ext >&5
20642
20643
20644fi
20645
20646rm -f core conftest.err conftest.$ac_objext
20647  test "x$ac_cv_prog_cc_c89" != "xno" && break
20648done
20649rm -f conftest.$ac_ext
20650CC=$ac_save_CC
20651
20652fi
20653# AC_CACHE_VAL
20654case "x$ac_cv_prog_cc_c89" in
20655  x)
20656    { $as_echo "$as_me:$LINENO: result: none needed" >&5
20657$as_echo "none needed" >&6; } ;;
20658  xno)
20659    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20660$as_echo "unsupported" >&6; } ;;
20661  *)
20662    CC="$CC $ac_cv_prog_cc_c89"
20663    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20664$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20665esac
20666
20667
20668ac_ext=c
20669ac_cpp='$CPP $CPPFLAGS'
20670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20672ac_compiler_gnu=$ac_cv_c_compiler_gnu
20673
20674depcc="$CC"   am_compiler_list=
20675
20676{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20677$as_echo_n "checking dependency style of $depcc... " >&6; }
20678if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20679  $as_echo_n "(cached) " >&6
20680else
20681  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20682  # We make a subdir and do the tests there.  Otherwise we can end up
20683  # making bogus files that we don't know about and never remove.  For
20684  # instance it was reported that on HP-UX the gcc test will end up
20685  # making a dummy file named `D' -- because `-MD' means `put the output
20686  # in D'.
20687  mkdir conftest.dir
20688  # Copy depcomp to subdir because otherwise we won't find it if we're
20689  # using a relative directory.
20690  cp "$am_depcomp" conftest.dir
20691  cd conftest.dir
20692  # We will build objects and dependencies in a subdirectory because
20693  # it helps to detect inapplicable dependency modes.  For instance
20694  # both Tru64's cc and ICC support -MD to output dependencies as a
20695  # side effect of compilation, but ICC will put the dependencies in
20696  # the current directory while Tru64 will put them in the object
20697  # directory.
20698  mkdir sub
20699
20700  am_cv_CC_dependencies_compiler_type=none
20701  if test "$am_compiler_list" = ""; then
20702     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20703  fi
20704  for depmode in $am_compiler_list; do
20705    # Setup a source with many dependencies, because some compilers
20706    # like to wrap large dependency lists on column 80 (with \), and
20707    # we should not choose a depcomp mode which is confused by this.
20708    #
20709    # We need to recreate these files for each test, as the compiler may
20710    # overwrite some of them when testing with obscure command lines.
20711    # This happens at least with the AIX C compiler.
20712    : > sub/conftest.c
20713    for i in 1 2 3 4 5 6; do
20714      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20715      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20716      # Solaris 8's {/usr,}/bin/sh.
20717      touch sub/conftst$i.h
20718    done
20719    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20720
20721    case $depmode in
20722    nosideeffect)
20723      # after this tag, mechanisms are not by side-effect, so they'll
20724      # only be used when explicitly requested
20725      if test "x$enable_dependency_tracking" = xyes; then
20726	continue
20727      else
20728	break
20729      fi
20730      ;;
20731    none) break ;;
20732    esac
20733    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20734    # mode.  It turns out that the SunPro C++ compiler does not properly
20735    # handle `-M -o', and we need to detect this.
20736    if depmode=$depmode \
20737       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20738       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20739       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20740         >/dev/null 2>conftest.err &&
20741       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20742       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20743       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20744       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20745      # icc doesn't choke on unknown options, it will just issue warnings
20746      # or remarks (even with -Werror).  So we grep stderr for any message
20747      # that says an option was ignored or not supported.
20748      # When given -MP, icc 7.0 and 7.1 complain thusly:
20749      #   icc: Command line warning: ignoring option '-M'; no argument required
20750      # The diagnosis changed in icc 8.0:
20751      #   icc: Command line remark: option '-MP' not supported
20752      if (grep 'ignoring option' conftest.err ||
20753          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20754        am_cv_CC_dependencies_compiler_type=$depmode
20755        break
20756      fi
20757    fi
20758  done
20759
20760  cd ..
20761  rm -rf conftest.dir
20762else
20763  am_cv_CC_dependencies_compiler_type=none
20764fi
20765
20766fi
20767{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20768$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20769CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20770
20771 if
20772  test "x$enable_dependency_tracking" != xno \
20773  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20774  am__fastdepCC_TRUE=
20775  am__fastdepCC_FALSE='#'
20776else
20777  am__fastdepCC_TRUE='#'
20778  am__fastdepCC_FALSE=
20779fi
20780
20781
20782
20783
20784for ac_prog in cpp
20785do
20786  # Extract the first word of "$ac_prog", so it can be a program name with args.
20787set dummy $ac_prog; ac_word=$2
20788{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20789$as_echo_n "checking for $ac_word... " >&6; }
20790if test "${ac_cv_path_RAWCPP+set}" = set; then
20791  $as_echo_n "(cached) " >&6
20792else
20793  case $RAWCPP in
20794  [\\/]* | ?:[\\/]*)
20795  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
20796  ;;
20797  *)
20798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20799as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
20800for as_dir in $as_dummy
20801do
20802  IFS=$as_save_IFS
20803  test -z "$as_dir" && as_dir=.
20804  for ac_exec_ext in '' $ac_executable_extensions; do
20805  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20806    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
20807    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20808    break 2
20809  fi
20810done
20811done
20812IFS=$as_save_IFS
20813
20814  ;;
20815esac
20816fi
20817RAWCPP=$ac_cv_path_RAWCPP
20818if test -n "$RAWCPP"; then
20819  { $as_echo "$as_me:$LINENO: result: $RAWCPP" >&5
20820$as_echo "$RAWCPP" >&6; }
20821else
20822  { $as_echo "$as_me:$LINENO: result: no" >&5
20823$as_echo "no" >&6; }
20824fi
20825
20826
20827  test -n "$RAWCPP" && break
20828done
20829test -n "$RAWCPP" || RAWCPP="${CPP}"
20830
20831
20832# Check for flag to avoid builtin definitions - assumes unix is predefined,
20833# which is not the best choice for supporting other OS'es, but covers most
20834# of the ones we need for now.
20835{ $as_echo "$as_me:$LINENO: checking if $RAWCPP requires -undef" >&5
20836$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
20837cat >conftest.$ac_ext <<_ACEOF
20838Does cpp redefine unix ?
20839_ACEOF
20840if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20841	{ $as_echo "$as_me:$LINENO: result: no" >&5
20842$as_echo "no" >&6; }
20843else
20844	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20845		RAWCPPFLAGS=-undef
20846		{ $as_echo "$as_me:$LINENO: result: yes" >&5
20847$as_echo "yes" >&6; }
20848	else
20849		{ { $as_echo "$as_me:$LINENO: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&5
20850$as_echo "$as_me: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&2;}
20851   { (exit 1); exit 1; }; }
20852	fi
20853fi
20854rm -f conftest.$ac_ext
20855
20856{ $as_echo "$as_me:$LINENO: checking if $RAWCPP requires -traditional" >&5
20857$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
20858cat >conftest.$ac_ext <<_ACEOF
20859Does cpp preserve   "whitespace"?
20860_ACEOF
20861if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
20862	{ $as_echo "$as_me:$LINENO: result: no" >&5
20863$as_echo "no" >&6; }
20864else
20865	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
20866		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
20867		{ $as_echo "$as_me:$LINENO: result: yes" >&5
20868$as_echo "yes" >&6; }
20869	else
20870		{ { $as_echo "$as_me:$LINENO: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&5
20871$as_echo "$as_me: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&2;}
20872   { (exit 1); exit 1; }; }
20873	fi
20874fi
20875rm -f conftest.$ac_ext
20876
20877
20878
20879
20880
20881
20882
20883# Check whether --with-xorg-module-dir was given.
20884if test "${with_xorg_module_dir+set}" = set; then
20885  withval=$with_xorg_module_dir; moduledir="$withval"
20886else
20887  moduledir="$libdir/xorg/modules"
20888fi
20889
20890
20891# Check whether --enable-dri was given.
20892if test "${enable_dri+set}" = set; then
20893  enableval=$enable_dri; DRI="$enableval"
20894else
20895  DRI=auto
20896fi
20897
20898
20899# Checks for extensions
20900
20901	SAVE_CFLAGS="$CFLAGS"
20902	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20903	cat >conftest.$ac_ext <<_ACEOF
20904/* confdefs.h.  */
20905_ACEOF
20906cat confdefs.h >>conftest.$ac_ext
20907cat >>conftest.$ac_ext <<_ACEOF
20908/* end confdefs.h.  */
20909
20910#include "xorg-server.h"
20911#if !defined XINERAMA
20912#error XINERAMA not defined
20913#endif
20914
20915int
20916main ()
20917{
20918
20919  ;
20920  return 0;
20921}
20922_ACEOF
20923rm -f conftest.$ac_objext
20924if { (ac_try="$ac_compile"
20925case "(($ac_try" in
20926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20927  *) ac_try_echo=$ac_try;;
20928esac
20929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20930$as_echo "$ac_try_echo") >&5
20931  (eval "$ac_compile") 2>conftest.er1
20932  ac_status=$?
20933  grep -v '^ *+' conftest.er1 >conftest.err
20934  rm -f conftest.er1
20935  cat conftest.err >&5
20936  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937  (exit $ac_status); } && {
20938	 test -z "$ac_c_werror_flag" ||
20939	 test ! -s conftest.err
20940       } && test -s conftest.$ac_objext; then
20941  _EXT_CHECK=yes
20942else
20943  $as_echo "$as_me: failed program was:" >&5
20944sed 's/^/| /' conftest.$ac_ext >&5
20945
20946	_EXT_CHECK=no
20947fi
20948
20949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20950	CFLAGS="$SAVE_CFLAGS"
20951	{ $as_echo "$as_me:$LINENO: checking if XINERAMA is defined" >&5
20952$as_echo_n "checking if XINERAMA is defined... " >&6; }
20953	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20954$as_echo "$_EXT_CHECK" >&6; }
20955	if test "$_EXT_CHECK" != no; then
20956		REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
20957	fi
20958
20959
20960	SAVE_CFLAGS="$CFLAGS"
20961	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20962	cat >conftest.$ac_ext <<_ACEOF
20963/* confdefs.h.  */
20964_ACEOF
20965cat confdefs.h >>conftest.$ac_ext
20966cat >>conftest.$ac_ext <<_ACEOF
20967/* end confdefs.h.  */
20968
20969#include "xorg-server.h"
20970#if !defined RANDR
20971#error RANDR not defined
20972#endif
20973
20974int
20975main ()
20976{
20977
20978  ;
20979  return 0;
20980}
20981_ACEOF
20982rm -f conftest.$ac_objext
20983if { (ac_try="$ac_compile"
20984case "(($ac_try" in
20985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986  *) ac_try_echo=$ac_try;;
20987esac
20988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20989$as_echo "$ac_try_echo") >&5
20990  (eval "$ac_compile") 2>conftest.er1
20991  ac_status=$?
20992  grep -v '^ *+' conftest.er1 >conftest.err
20993  rm -f conftest.er1
20994  cat conftest.err >&5
20995  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996  (exit $ac_status); } && {
20997	 test -z "$ac_c_werror_flag" ||
20998	 test ! -s conftest.err
20999       } && test -s conftest.$ac_objext; then
21000  _EXT_CHECK=yes
21001else
21002  $as_echo "$as_me: failed program was:" >&5
21003sed 's/^/| /' conftest.$ac_ext >&5
21004
21005	_EXT_CHECK=no
21006fi
21007
21008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21009	CFLAGS="$SAVE_CFLAGS"
21010	{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
21011$as_echo_n "checking if RANDR is defined... " >&6; }
21012	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21013$as_echo "$_EXT_CHECK" >&6; }
21014	if test "$_EXT_CHECK" != no; then
21015		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
21016	fi
21017
21018
21019	SAVE_CFLAGS="$CFLAGS"
21020	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21021	cat >conftest.$ac_ext <<_ACEOF
21022/* confdefs.h.  */
21023_ACEOF
21024cat confdefs.h >>conftest.$ac_ext
21025cat >>conftest.$ac_ext <<_ACEOF
21026/* end confdefs.h.  */
21027
21028#include "xorg-server.h"
21029#if !defined RENDER
21030#error RENDER not defined
21031#endif
21032
21033int
21034main ()
21035{
21036
21037  ;
21038  return 0;
21039}
21040_ACEOF
21041rm -f conftest.$ac_objext
21042if { (ac_try="$ac_compile"
21043case "(($ac_try" in
21044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045  *) ac_try_echo=$ac_try;;
21046esac
21047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21048$as_echo "$ac_try_echo") >&5
21049  (eval "$ac_compile") 2>conftest.er1
21050  ac_status=$?
21051  grep -v '^ *+' conftest.er1 >conftest.err
21052  rm -f conftest.er1
21053  cat conftest.err >&5
21054  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055  (exit $ac_status); } && {
21056	 test -z "$ac_c_werror_flag" ||
21057	 test ! -s conftest.err
21058       } && test -s conftest.$ac_objext; then
21059  _EXT_CHECK=yes
21060else
21061  $as_echo "$as_me: failed program was:" >&5
21062sed 's/^/| /' conftest.$ac_ext >&5
21063
21064	_EXT_CHECK=no
21065fi
21066
21067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21068	CFLAGS="$SAVE_CFLAGS"
21069	{ $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
21070$as_echo_n "checking if RENDER is defined... " >&6; }
21071	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21072$as_echo "$_EXT_CHECK" >&6; }
21073	if test "$_EXT_CHECK" != no; then
21074		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
21075	fi
21076
21077
21078	SAVE_CFLAGS="$CFLAGS"
21079	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21080	cat >conftest.$ac_ext <<_ACEOF
21081/* confdefs.h.  */
21082_ACEOF
21083cat confdefs.h >>conftest.$ac_ext
21084cat >>conftest.$ac_ext <<_ACEOF
21085/* end confdefs.h.  */
21086
21087#include "xorg-server.h"
21088#if !defined XV
21089#error XV not defined
21090#endif
21091
21092int
21093main ()
21094{
21095
21096  ;
21097  return 0;
21098}
21099_ACEOF
21100rm -f conftest.$ac_objext
21101if { (ac_try="$ac_compile"
21102case "(($ac_try" in
21103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21104  *) ac_try_echo=$ac_try;;
21105esac
21106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21107$as_echo "$ac_try_echo") >&5
21108  (eval "$ac_compile") 2>conftest.er1
21109  ac_status=$?
21110  grep -v '^ *+' conftest.er1 >conftest.err
21111  rm -f conftest.er1
21112  cat conftest.err >&5
21113  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114  (exit $ac_status); } && {
21115	 test -z "$ac_c_werror_flag" ||
21116	 test ! -s conftest.err
21117       } && test -s conftest.$ac_objext; then
21118  _EXT_CHECK=yes
21119else
21120  $as_echo "$as_me: failed program was:" >&5
21121sed 's/^/| /' conftest.$ac_ext >&5
21122
21123	_EXT_CHECK=no
21124fi
21125
21126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21127	CFLAGS="$SAVE_CFLAGS"
21128	{ $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
21129$as_echo_n "checking if XV is defined... " >&6; }
21130	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21131$as_echo "$_EXT_CHECK" >&6; }
21132	if test "$_EXT_CHECK" != no; then
21133		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
21134	fi
21135
21136
21137	SAVE_CFLAGS="$CFLAGS"
21138	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21139	cat >conftest.$ac_ext <<_ACEOF
21140/* confdefs.h.  */
21141_ACEOF
21142cat confdefs.h >>conftest.$ac_ext
21143cat >>conftest.$ac_ext <<_ACEOF
21144/* end confdefs.h.  */
21145
21146#include "xorg-server.h"
21147#if !defined DPMSExtension
21148#error DPMSExtension not defined
21149#endif
21150
21151int
21152main ()
21153{
21154
21155  ;
21156  return 0;
21157}
21158_ACEOF
21159rm -f conftest.$ac_objext
21160if { (ac_try="$ac_compile"
21161case "(($ac_try" in
21162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163  *) ac_try_echo=$ac_try;;
21164esac
21165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21166$as_echo "$ac_try_echo") >&5
21167  (eval "$ac_compile") 2>conftest.er1
21168  ac_status=$?
21169  grep -v '^ *+' conftest.er1 >conftest.err
21170  rm -f conftest.er1
21171  cat conftest.err >&5
21172  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173  (exit $ac_status); } && {
21174	 test -z "$ac_c_werror_flag" ||
21175	 test ! -s conftest.err
21176       } && test -s conftest.$ac_objext; then
21177  _EXT_CHECK=yes
21178else
21179  $as_echo "$as_me: failed program was:" >&5
21180sed 's/^/| /' conftest.$ac_ext >&5
21181
21182	_EXT_CHECK=no
21183fi
21184
21185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21186	CFLAGS="$SAVE_CFLAGS"
21187	{ $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
21188$as_echo_n "checking if DPMSExtension is defined... " >&6; }
21189	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21190$as_echo "$_EXT_CHECK" >&6; }
21191	if test "$_EXT_CHECK" != no; then
21192		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
21193	fi
21194
21195
21196# Checks for pkg-config packages
21197
21198
21199if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21200	if test -n "$ac_tool_prefix"; then
21201  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21202set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21203{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21204$as_echo_n "checking for $ac_word... " >&6; }
21205if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21206  $as_echo_n "(cached) " >&6
21207else
21208  case $PKG_CONFIG in
21209  [\\/]* | ?:[\\/]*)
21210  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21211  ;;
21212  *)
21213  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21214for as_dir in $PATH
21215do
21216  IFS=$as_save_IFS
21217  test -z "$as_dir" && as_dir=.
21218  for ac_exec_ext in '' $ac_executable_extensions; do
21219  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21220    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21221    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21222    break 2
21223  fi
21224done
21225done
21226IFS=$as_save_IFS
21227
21228  ;;
21229esac
21230fi
21231PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21232if test -n "$PKG_CONFIG"; then
21233  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21234$as_echo "$PKG_CONFIG" >&6; }
21235else
21236  { $as_echo "$as_me:$LINENO: result: no" >&5
21237$as_echo "no" >&6; }
21238fi
21239
21240
21241fi
21242if test -z "$ac_cv_path_PKG_CONFIG"; then
21243  ac_pt_PKG_CONFIG=$PKG_CONFIG
21244  # Extract the first word of "pkg-config", so it can be a program name with args.
21245set dummy pkg-config; ac_word=$2
21246{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21247$as_echo_n "checking for $ac_word... " >&6; }
21248if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21249  $as_echo_n "(cached) " >&6
21250else
21251  case $ac_pt_PKG_CONFIG in
21252  [\\/]* | ?:[\\/]*)
21253  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21254  ;;
21255  *)
21256  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21257for as_dir in $PATH
21258do
21259  IFS=$as_save_IFS
21260  test -z "$as_dir" && as_dir=.
21261  for ac_exec_ext in '' $ac_executable_extensions; do
21262  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21263    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21264    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21265    break 2
21266  fi
21267done
21268done
21269IFS=$as_save_IFS
21270
21271  ;;
21272esac
21273fi
21274ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21275if test -n "$ac_pt_PKG_CONFIG"; then
21276  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21277$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21278else
21279  { $as_echo "$as_me:$LINENO: result: no" >&5
21280$as_echo "no" >&6; }
21281fi
21282
21283  if test "x$ac_pt_PKG_CONFIG" = x; then
21284    PKG_CONFIG=""
21285  else
21286    case $cross_compiling:$ac_tool_warned in
21287yes:)
21288{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21290ac_tool_warned=yes ;;
21291esac
21292    PKG_CONFIG=$ac_pt_PKG_CONFIG
21293  fi
21294else
21295  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21296fi
21297
21298fi
21299if test -n "$PKG_CONFIG"; then
21300	_pkg_min_version=0.9.0
21301	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21302$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21303	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21304		{ $as_echo "$as_me:$LINENO: result: yes" >&5
21305$as_echo "yes" >&6; }
21306	else
21307		{ $as_echo "$as_me:$LINENO: result: no" >&5
21308$as_echo "no" >&6; }
21309		PKG_CONFIG=""
21310	fi
21311
21312fi
21313
21314pkg_failed=no
21315{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
21316$as_echo_n "checking for XORG... " >&6; }
21317
21318if test -n "$XORG_CFLAGS"; then
21319    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21320 elif test -n "$PKG_CONFIG"; then
21321    if test -n "$PKG_CONFIG" && \
21322    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto \$REQUIRED_MODULES\"") >&5
21323  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto $REQUIRED_MODULES") 2>&5
21324  ac_status=$?
21325  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326  (exit $ac_status); }; then
21327  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto $REQUIRED_MODULES" 2>/dev/null`
21328else
21329  pkg_failed=yes
21330fi
21331 else
21332    pkg_failed=untried
21333fi
21334if test -n "$XORG_LIBS"; then
21335    pkg_cv_XORG_LIBS="$XORG_LIBS"
21336 elif test -n "$PKG_CONFIG"; then
21337    if test -n "$PKG_CONFIG" && \
21338    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto \$REQUIRED_MODULES\"") >&5
21339  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto $REQUIRED_MODULES") 2>&5
21340  ac_status=$?
21341  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342  (exit $ac_status); }; then
21343  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto $REQUIRED_MODULES" 2>/dev/null`
21344else
21345  pkg_failed=yes
21346fi
21347 else
21348    pkg_failed=untried
21349fi
21350
21351
21352
21353if test $pkg_failed = yes; then
21354
21355if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21356        _pkg_short_errors_supported=yes
21357else
21358        _pkg_short_errors_supported=no
21359fi
21360        if test $_pkg_short_errors_supported = yes; then
21361	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto $REQUIRED_MODULES" 2>&1`
21362        else
21363	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto $REQUIRED_MODULES" 2>&1`
21364        fi
21365	# Put the nasty error message in config.log where it belongs
21366	echo "$XORG_PKG_ERRORS" >&5
21367
21368	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto $REQUIRED_MODULES) were not met:
21369
21370$XORG_PKG_ERRORS
21371
21372Consider adjusting the PKG_CONFIG_PATH environment variable if you
21373installed software in a non-standard prefix.
21374
21375Alternatively, you may set the environment variables XORG_CFLAGS
21376and XORG_LIBS to avoid the need to call pkg-config.
21377See the pkg-config man page for more details.
21378" >&5
21379$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto $REQUIRED_MODULES) were not met:
21380
21381$XORG_PKG_ERRORS
21382
21383Consider adjusting the PKG_CONFIG_PATH environment variable if you
21384installed software in a non-standard prefix.
21385
21386Alternatively, you may set the environment variables XORG_CFLAGS
21387and XORG_LIBS to avoid the need to call pkg-config.
21388See the pkg-config man page for more details.
21389" >&2;}
21390   { (exit 1); exit 1; }; }
21391elif test $pkg_failed = untried; then
21392	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21394{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21395is in your PATH or set the PKG_CONFIG environment variable to the full
21396path to pkg-config.
21397
21398Alternatively, you may set the environment variables XORG_CFLAGS
21399and XORG_LIBS to avoid the need to call pkg-config.
21400See the pkg-config man page for more details.
21401
21402To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21403See \`config.log' for more details." >&5
21404$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21405is in your PATH or set the PKG_CONFIG environment variable to the full
21406path to pkg-config.
21407
21408Alternatively, you may set the environment variables XORG_CFLAGS
21409and XORG_LIBS to avoid the need to call pkg-config.
21410See the pkg-config man page for more details.
21411
21412To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21413See \`config.log' for more details." >&2;}
21414   { (exit 1); exit 1; }; }; }
21415else
21416	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21417	XORG_LIBS=$pkg_cv_XORG_LIBS
21418        { $as_echo "$as_me:$LINENO: result: yes" >&5
21419$as_echo "yes" >&6; }
21420	:
21421fi
21422sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21423
21424# Checks for libraries.
21425
21426# Checks for header files.
21427{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21428$as_echo_n "checking for ANSI C header files... " >&6; }
21429if test "${ac_cv_header_stdc+set}" = set; then
21430  $as_echo_n "(cached) " >&6
21431else
21432  cat >conftest.$ac_ext <<_ACEOF
21433/* confdefs.h.  */
21434_ACEOF
21435cat confdefs.h >>conftest.$ac_ext
21436cat >>conftest.$ac_ext <<_ACEOF
21437/* end confdefs.h.  */
21438#include <stdlib.h>
21439#include <stdarg.h>
21440#include <string.h>
21441#include <float.h>
21442
21443int
21444main ()
21445{
21446
21447  ;
21448  return 0;
21449}
21450_ACEOF
21451rm -f conftest.$ac_objext
21452if { (ac_try="$ac_compile"
21453case "(($ac_try" in
21454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21455  *) ac_try_echo=$ac_try;;
21456esac
21457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21458$as_echo "$ac_try_echo") >&5
21459  (eval "$ac_compile") 2>conftest.er1
21460  ac_status=$?
21461  grep -v '^ *+' conftest.er1 >conftest.err
21462  rm -f conftest.er1
21463  cat conftest.err >&5
21464  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465  (exit $ac_status); } && {
21466	 test -z "$ac_c_werror_flag" ||
21467	 test ! -s conftest.err
21468       } && test -s conftest.$ac_objext; then
21469  ac_cv_header_stdc=yes
21470else
21471  $as_echo "$as_me: failed program was:" >&5
21472sed 's/^/| /' conftest.$ac_ext >&5
21473
21474	ac_cv_header_stdc=no
21475fi
21476
21477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21478
21479if test $ac_cv_header_stdc = yes; then
21480  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21481  cat >conftest.$ac_ext <<_ACEOF
21482/* confdefs.h.  */
21483_ACEOF
21484cat confdefs.h >>conftest.$ac_ext
21485cat >>conftest.$ac_ext <<_ACEOF
21486/* end confdefs.h.  */
21487#include <string.h>
21488
21489_ACEOF
21490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21491  $EGREP "memchr" >/dev/null 2>&1; then
21492  :
21493else
21494  ac_cv_header_stdc=no
21495fi
21496rm -f conftest*
21497
21498fi
21499
21500if test $ac_cv_header_stdc = yes; then
21501  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21502  cat >conftest.$ac_ext <<_ACEOF
21503/* confdefs.h.  */
21504_ACEOF
21505cat confdefs.h >>conftest.$ac_ext
21506cat >>conftest.$ac_ext <<_ACEOF
21507/* end confdefs.h.  */
21508#include <stdlib.h>
21509
21510_ACEOF
21511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21512  $EGREP "free" >/dev/null 2>&1; then
21513  :
21514else
21515  ac_cv_header_stdc=no
21516fi
21517rm -f conftest*
21518
21519fi
21520
21521if test $ac_cv_header_stdc = yes; then
21522  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21523  if test "$cross_compiling" = yes; then
21524  :
21525else
21526  cat >conftest.$ac_ext <<_ACEOF
21527/* confdefs.h.  */
21528_ACEOF
21529cat confdefs.h >>conftest.$ac_ext
21530cat >>conftest.$ac_ext <<_ACEOF
21531/* end confdefs.h.  */
21532#include <ctype.h>
21533#include <stdlib.h>
21534#if ((' ' & 0x0FF) == 0x020)
21535# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21536# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21537#else
21538# define ISLOWER(c) \
21539		   (('a' <= (c) && (c) <= 'i') \
21540		     || ('j' <= (c) && (c) <= 'r') \
21541		     || ('s' <= (c) && (c) <= 'z'))
21542# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21543#endif
21544
21545#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21546int
21547main ()
21548{
21549  int i;
21550  for (i = 0; i < 256; i++)
21551    if (XOR (islower (i), ISLOWER (i))
21552	|| toupper (i) != TOUPPER (i))
21553      return 2;
21554  return 0;
21555}
21556_ACEOF
21557rm -f conftest$ac_exeext
21558if { (ac_try="$ac_link"
21559case "(($ac_try" in
21560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561  *) ac_try_echo=$ac_try;;
21562esac
21563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21564$as_echo "$ac_try_echo") >&5
21565  (eval "$ac_link") 2>&5
21566  ac_status=$?
21567  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21569  { (case "(($ac_try" in
21570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571  *) ac_try_echo=$ac_try;;
21572esac
21573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21574$as_echo "$ac_try_echo") >&5
21575  (eval "$ac_try") 2>&5
21576  ac_status=$?
21577  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578  (exit $ac_status); }; }; then
21579  :
21580else
21581  $as_echo "$as_me: program exited with status $ac_status" >&5
21582$as_echo "$as_me: failed program was:" >&5
21583sed 's/^/| /' conftest.$ac_ext >&5
21584
21585( exit $ac_status )
21586ac_cv_header_stdc=no
21587fi
21588rm -rf conftest.dSYM
21589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21590fi
21591
21592
21593fi
21594fi
21595{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21596$as_echo "$ac_cv_header_stdc" >&6; }
21597if test $ac_cv_header_stdc = yes; then
21598
21599cat >>confdefs.h <<\_ACEOF
21600#define STDC_HEADERS 1
21601_ACEOF
21602
21603fi
21604
21605
21606if test "$DRI" != no; then
21607        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
21608{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
21609$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
21610if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21611  $as_echo_n "(cached) " >&6
21612else
21613  test "$cross_compiling" = yes &&
21614  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21615$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21616   { (exit 1); exit 1; }; }
21617if test -r "${sdkdir}/dri.h"; then
21618  eval "$as_ac_File=yes"
21619else
21620  eval "$as_ac_File=no"
21621fi
21622fi
21623ac_res=`eval 'as_val=${'$as_ac_File'}
21624		 $as_echo "$as_val"'`
21625	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21626$as_echo "$ac_res" >&6; }
21627as_val=`eval 'as_val=${'$as_ac_File'}
21628		 $as_echo "$as_val"'`
21629   if test "x$as_val" = x""yes; then
21630  have_dri_h="yes"
21631else
21632  have_dri_h="no"
21633fi
21634
21635        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
21636{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
21637$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
21638if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21639  $as_echo_n "(cached) " >&6
21640else
21641  test "$cross_compiling" = yes &&
21642  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21643$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21644   { (exit 1); exit 1; }; }
21645if test -r "${sdkdir}/sarea.h"; then
21646  eval "$as_ac_File=yes"
21647else
21648  eval "$as_ac_File=no"
21649fi
21650fi
21651ac_res=`eval 'as_val=${'$as_ac_File'}
21652		 $as_echo "$as_val"'`
21653	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21654$as_echo "$ac_res" >&6; }
21655as_val=`eval 'as_val=${'$as_ac_File'}
21656		 $as_echo "$as_val"'`
21657   if test "x$as_val" = x""yes; then
21658  have_sarea_h="yes"
21659else
21660  have_sarea_h="no"
21661fi
21662
21663        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
21664{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
21665$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
21666if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21667  $as_echo_n "(cached) " >&6
21668else
21669  test "$cross_compiling" = yes &&
21670  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21671$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21672   { (exit 1); exit 1; }; }
21673if test -r "${sdkdir}/dristruct.h"; then
21674  eval "$as_ac_File=yes"
21675else
21676  eval "$as_ac_File=no"
21677fi
21678fi
21679ac_res=`eval 'as_val=${'$as_ac_File'}
21680		 $as_echo "$as_val"'`
21681	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21682$as_echo "$ac_res" >&6; }
21683as_val=`eval 'as_val=${'$as_ac_File'}
21684		 $as_echo "$as_val"'`
21685   if test "x$as_val" = x""yes; then
21686  have_dristruct_h="yes"
21687else
21688  have_dristruct_h="no"
21689fi
21690
21691fi
21692
21693{ $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5
21694$as_echo_n "checking whether to include DRI support... " >&6; }
21695if test x$DRI = xauto; then
21696        if test "$have_dri_h" = yes -a \
21697                "$have_sarea_h" = yes -a \
21698                "$have_dristruct_h" = yes; then
21699                DRI="yes"
21700        else
21701                DRI="no"
21702        fi
21703fi
21704{ $as_echo "$as_me:$LINENO: result: $DRI" >&5
21705$as_echo "$DRI" >&6; }
21706
21707 if test x$DRI = xyes; then
21708  DRI_TRUE=
21709  DRI_FALSE='#'
21710else
21711  DRI_TRUE='#'
21712  DRI_FALSE=
21713fi
21714
21715if test "$DRI" = yes; then
21716
21717pkg_failed=no
21718{ $as_echo "$as_me:$LINENO: checking for DRI" >&5
21719$as_echo_n "checking for DRI... " >&6; }
21720
21721if test -n "$DRI_CFLAGS"; then
21722    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
21723 elif test -n "$PKG_CONFIG"; then
21724    if test -n "$PKG_CONFIG" && \
21725    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
21726  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
21727  ac_status=$?
21728  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729  (exit $ac_status); }; then
21730  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
21731else
21732  pkg_failed=yes
21733fi
21734 else
21735    pkg_failed=untried
21736fi
21737if test -n "$DRI_LIBS"; then
21738    pkg_cv_DRI_LIBS="$DRI_LIBS"
21739 elif test -n "$PKG_CONFIG"; then
21740    if test -n "$PKG_CONFIG" && \
21741    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
21742  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
21743  ac_status=$?
21744  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745  (exit $ac_status); }; then
21746  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
21747else
21748  pkg_failed=yes
21749fi
21750 else
21751    pkg_failed=untried
21752fi
21753
21754
21755
21756if test $pkg_failed = yes; then
21757
21758if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21759        _pkg_short_errors_supported=yes
21760else
21761        _pkg_short_errors_supported=no
21762fi
21763        if test $_pkg_short_errors_supported = yes; then
21764	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
21765        else
21766	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
21767        fi
21768	# Put the nasty error message in config.log where it belongs
21769	echo "$DRI_PKG_ERRORS" >&5
21770
21771	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
21772
21773$DRI_PKG_ERRORS
21774
21775Consider adjusting the PKG_CONFIG_PATH environment variable if you
21776installed software in a non-standard prefix.
21777
21778Alternatively, you may set the environment variables DRI_CFLAGS
21779and DRI_LIBS to avoid the need to call pkg-config.
21780See the pkg-config man page for more details.
21781" >&5
21782$as_echo "$as_me: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
21783
21784$DRI_PKG_ERRORS
21785
21786Consider adjusting the PKG_CONFIG_PATH environment variable if you
21787installed software in a non-standard prefix.
21788
21789Alternatively, you may set the environment variables DRI_CFLAGS
21790and DRI_LIBS to avoid the need to call pkg-config.
21791See the pkg-config man page for more details.
21792" >&2;}
21793   { (exit 1); exit 1; }; }
21794elif test $pkg_failed = untried; then
21795	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21797{ { $as_echo "$as_me:$LINENO: 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 DRI_CFLAGS
21802and DRI_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." >&5
21807$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21808is in your PATH or set the PKG_CONFIG environment variable to the full
21809path to pkg-config.
21810
21811Alternatively, you may set the environment variables DRI_CFLAGS
21812and DRI_LIBS to avoid the need to call pkg-config.
21813See the pkg-config man page for more details.
21814
21815To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21816See \`config.log' for more details." >&2;}
21817   { (exit 1); exit 1; }; }; }
21818else
21819	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
21820	DRI_LIBS=$pkg_cv_DRI_LIBS
21821        { $as_echo "$as_me:$LINENO: result: yes" >&5
21822$as_echo "yes" >&6; }
21823	:
21824fi
21825
21826cat >>confdefs.h <<\_ACEOF
21827#define XF86DRI 1
21828_ACEOF
21829
21830
21831cat >>confdefs.h <<\_ACEOF
21832#define XF86DRI_DEVEL 1
21833_ACEOF
21834
21835fi
21836
21837# technically this should be a configure flag.  meh.
21838
21839cat >>confdefs.h <<\_ACEOF
21840#define XF86EXA 1
21841_ACEOF
21842
21843
21844SAVE_CPPFLAGS="$CPPFLAGS"
21845CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
21846{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
21847$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
21848if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
21849  $as_echo_n "(cached) " >&6
21850else
21851  cat >conftest.$ac_ext <<_ACEOF
21852/* confdefs.h.  */
21853_ACEOF
21854cat confdefs.h >>conftest.$ac_ext
21855cat >>conftest.$ac_ext <<_ACEOF
21856/* end confdefs.h.  */
21857#include "xorg-server.h"
21858
21859int
21860main ()
21861{
21862#ifndef XSERVER_LIBPCIACCESS
21863  (void) XSERVER_LIBPCIACCESS;
21864#endif
21865
21866  ;
21867  return 0;
21868}
21869_ACEOF
21870rm -f conftest.$ac_objext
21871if { (ac_try="$ac_compile"
21872case "(($ac_try" in
21873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874  *) ac_try_echo=$ac_try;;
21875esac
21876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21877$as_echo "$ac_try_echo") >&5
21878  (eval "$ac_compile") 2>conftest.er1
21879  ac_status=$?
21880  grep -v '^ *+' conftest.er1 >conftest.err
21881  rm -f conftest.er1
21882  cat conftest.err >&5
21883  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884  (exit $ac_status); } && {
21885	 test -z "$ac_c_werror_flag" ||
21886	 test ! -s conftest.err
21887       } && test -s conftest.$ac_objext; then
21888  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
21889else
21890  $as_echo "$as_me: failed program was:" >&5
21891sed 's/^/| /' conftest.$ac_ext >&5
21892
21893	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
21894fi
21895
21896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21897fi
21898{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
21899$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
21900if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
21901  XSERVER_LIBPCIACCESS=yes
21902else
21903  XSERVER_LIBPCIACCESS=no
21904fi
21905
21906CPPFLAGS="$SAVE_CPPFLAGS"
21907
21908if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21909
21910pkg_failed=no
21911{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
21912$as_echo_n "checking for PCIACCESS... " >&6; }
21913
21914if test -n "$PCIACCESS_CFLAGS"; then
21915    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
21916 elif test -n "$PKG_CONFIG"; then
21917    if test -n "$PKG_CONFIG" && \
21918    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5
21919  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
21920  ac_status=$?
21921  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922  (exit $ac_status); }; then
21923  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
21924else
21925  pkg_failed=yes
21926fi
21927 else
21928    pkg_failed=untried
21929fi
21930if test -n "$PCIACCESS_LIBS"; then
21931    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
21932 elif test -n "$PKG_CONFIG"; then
21933    if test -n "$PKG_CONFIG" && \
21934    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5
21935  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
21936  ac_status=$?
21937  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938  (exit $ac_status); }; then
21939  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
21940else
21941  pkg_failed=yes
21942fi
21943 else
21944    pkg_failed=untried
21945fi
21946
21947
21948
21949if test $pkg_failed = yes; then
21950
21951if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21952        _pkg_short_errors_supported=yes
21953else
21954        _pkg_short_errors_supported=no
21955fi
21956        if test $_pkg_short_errors_supported = yes; then
21957	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.10" 2>&1`
21958        else
21959	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.10" 2>&1`
21960        fi
21961	# Put the nasty error message in config.log where it belongs
21962	echo "$PCIACCESS_PKG_ERRORS" >&5
21963
21964	{ { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.10) were not met:
21965
21966$PCIACCESS_PKG_ERRORS
21967
21968Consider adjusting the PKG_CONFIG_PATH environment variable if you
21969installed software in a non-standard prefix.
21970
21971Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21972and PCIACCESS_LIBS to avoid the need to call pkg-config.
21973See the pkg-config man page for more details.
21974" >&5
21975$as_echo "$as_me: error: Package requirements (pciaccess >= 0.10) were not met:
21976
21977$PCIACCESS_PKG_ERRORS
21978
21979Consider adjusting the PKG_CONFIG_PATH environment variable if you
21980installed software in a non-standard prefix.
21981
21982Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21983and PCIACCESS_LIBS to avoid the need to call pkg-config.
21984See the pkg-config man page for more details.
21985" >&2;}
21986   { (exit 1); exit 1; }; }
21987elif test $pkg_failed = untried; then
21988	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21990{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21991is in your PATH or set the PKG_CONFIG environment variable to the full
21992path to pkg-config.
21993
21994Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21995and PCIACCESS_LIBS to avoid the need to call pkg-config.
21996See the pkg-config man page for more details.
21997
21998To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21999See \`config.log' for more details." >&5
22000$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22001is in your PATH or set the PKG_CONFIG environment variable to the full
22002path to pkg-config.
22003
22004Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22005and PCIACCESS_LIBS to avoid the need to call pkg-config.
22006See the pkg-config man page for more details.
22007
22008To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22009See \`config.log' for more details." >&2;}
22010   { (exit 1); exit 1; }; }; }
22011else
22012	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
22013	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
22014        { $as_echo "$as_me:$LINENO: result: yes" >&5
22015$as_echo "yes" >&6; }
22016	:
22017fi
22018    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
22019fi
22020 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
22021  XSERVER_LIBPCIACCESS_TRUE=
22022  XSERVER_LIBPCIACCESS_FALSE='#'
22023else
22024  XSERVER_LIBPCIACCESS_TRUE='#'
22025  XSERVER_LIBPCIACCESS_FALSE=
22026fi
22027
22028
22029
22030
22031
22032
22033DRIVER_NAME=sis
22034
22035
22036
22037
22038
22039if test x$APP_MAN_SUFFIX = x    ; then
22040    APP_MAN_SUFFIX=1
22041fi
22042if test x$APP_MAN_DIR = x    ; then
22043    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
22044fi
22045
22046if test x$LIB_MAN_SUFFIX = x    ; then
22047    LIB_MAN_SUFFIX=3
22048fi
22049if test x$LIB_MAN_DIR = x    ; then
22050    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
22051fi
22052
22053if test x$FILE_MAN_SUFFIX = x    ; then
22054    case $host_os in
22055	solaris*)	FILE_MAN_SUFFIX=4  ;;
22056	*)		FILE_MAN_SUFFIX=5  ;;
22057    esac
22058fi
22059if test x$FILE_MAN_DIR = x    ; then
22060    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
22061fi
22062
22063if test x$MISC_MAN_SUFFIX = x    ; then
22064    case $host_os in
22065	solaris*)	MISC_MAN_SUFFIX=5  ;;
22066	*)		MISC_MAN_SUFFIX=7  ;;
22067    esac
22068fi
22069if test x$MISC_MAN_DIR = x    ; then
22070    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
22071fi
22072
22073if test x$DRIVER_MAN_SUFFIX = x    ; then
22074    case $host_os in
22075	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
22076	*)		DRIVER_MAN_SUFFIX=4  ;;
22077    esac
22078fi
22079if test x$DRIVER_MAN_DIR = x    ; then
22080    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
22081fi
22082
22083if test x$ADMIN_MAN_SUFFIX = x    ; then
22084    case $host_os in
22085	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
22086	*)		ADMIN_MAN_SUFFIX=8  ;;
22087    esac
22088fi
22089if test x$ADMIN_MAN_DIR = x    ; then
22090    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
22091fi
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109# Check whether --with-release-version was given.
22110if test "${with_release_version+set}" = set; then
22111  withval=$with_release_version; RELEASE_VERSION="$withval"
22112else
22113  RELEASE_VERSION=""
22114fi
22115
22116	if test "x$RELEASE_VERSION" != "x"; then
22117		PACKAGE="$PACKAGE-$RELEASE_VERSION"
22118		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
22119		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
22120$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
22121	fi
22122
22123cat >>confdefs.h <<_ACEOF
22124#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
22125_ACEOF
22126
22127	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
22128	if test "x$PVM" = "x"; then
22129		PVM="0"
22130	fi
22131
22132cat >>confdefs.h <<_ACEOF
22133#define PACKAGE_VERSION_MINOR $PVM
22134_ACEOF
22135
22136	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
22137	if test "x$PVP" = "x"; then
22138		PVP="0"
22139	fi
22140
22141cat >>confdefs.h <<_ACEOF
22142#define PACKAGE_VERSION_PATCHLEVEL $PVP
22143_ACEOF
22144
22145
22146
22147
22148XORG_SGML_PATH=$prefix/share/sgml
22149HAVE_DEFS_ENT=
22150
22151if test x"$cross_compiling" = x"yes" ; then
22152  HAVE_DEFS_ENT=no
22153else
22154  as_ac_File=`$as_echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh`
22155{ $as_echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5
22156$as_echo_n "checking for $XORG_SGML_PATH/X11/defs.ent... " >&6; }
22157if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22158  $as_echo_n "(cached) " >&6
22159else
22160  test "$cross_compiling" = yes &&
22161  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22162$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22163   { (exit 1); exit 1; }; }
22164if test -r "$XORG_SGML_PATH/X11/defs.ent"; then
22165  eval "$as_ac_File=yes"
22166else
22167  eval "$as_ac_File=no"
22168fi
22169fi
22170ac_res=`eval 'as_val=${'$as_ac_File'}
22171		 $as_echo "$as_val"'`
22172	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22173$as_echo "$ac_res" >&6; }
22174as_val=`eval 'as_val=${'$as_ac_File'}
22175		 $as_echo "$as_val"'`
22176   if test "x$as_val" = x""yes; then
22177  HAVE_DEFS_ENT=yes
22178fi
22179
22180fi
22181
22182# Extract the first word of "linuxdoc", so it can be a program name with args.
22183set dummy linuxdoc; ac_word=$2
22184{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22185$as_echo_n "checking for $ac_word... " >&6; }
22186if test "${ac_cv_path_LINUXDOC+set}" = set; then
22187  $as_echo_n "(cached) " >&6
22188else
22189  case $LINUXDOC in
22190  [\\/]* | ?:[\\/]*)
22191  ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path.
22192  ;;
22193  *)
22194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22195for as_dir in $PATH
22196do
22197  IFS=$as_save_IFS
22198  test -z "$as_dir" && as_dir=.
22199  for ac_exec_ext in '' $ac_executable_extensions; do
22200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22201    ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext"
22202    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22203    break 2
22204  fi
22205done
22206done
22207IFS=$as_save_IFS
22208
22209  ;;
22210esac
22211fi
22212LINUXDOC=$ac_cv_path_LINUXDOC
22213if test -n "$LINUXDOC"; then
22214  { $as_echo "$as_me:$LINENO: result: $LINUXDOC" >&5
22215$as_echo "$LINUXDOC" >&6; }
22216else
22217  { $as_echo "$as_me:$LINENO: result: no" >&5
22218$as_echo "no" >&6; }
22219fi
22220
22221
22222# Extract the first word of "ps2pdf", so it can be a program name with args.
22223set dummy ps2pdf; ac_word=$2
22224{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22225$as_echo_n "checking for $ac_word... " >&6; }
22226if test "${ac_cv_path_PS2PDF+set}" = set; then
22227  $as_echo_n "(cached) " >&6
22228else
22229  case $PS2PDF in
22230  [\\/]* | ?:[\\/]*)
22231  ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
22232  ;;
22233  *)
22234  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22235for as_dir in $PATH
22236do
22237  IFS=$as_save_IFS
22238  test -z "$as_dir" && as_dir=.
22239  for ac_exec_ext in '' $ac_executable_extensions; do
22240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22241    ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
22242    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22243    break 2
22244  fi
22245done
22246done
22247IFS=$as_save_IFS
22248
22249  ;;
22250esac
22251fi
22252PS2PDF=$ac_cv_path_PS2PDF
22253if test -n "$PS2PDF"; then
22254  { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5
22255$as_echo "$PS2PDF" >&6; }
22256else
22257  { $as_echo "$as_me:$LINENO: result: no" >&5
22258$as_echo "no" >&6; }
22259fi
22260
22261
22262
22263{ $as_echo "$as_me:$LINENO: checking Whether to build documentation" >&5
22264$as_echo_n "checking Whether to build documentation... " >&6; }
22265
22266if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
22267   BUILDDOC=yes
22268else
22269   BUILDDOC=no
22270fi
22271
22272 if test x$BUILDDOC = xyes; then
22273  BUILD_LINUXDOC_TRUE=
22274  BUILD_LINUXDOC_FALSE='#'
22275else
22276  BUILD_LINUXDOC_TRUE='#'
22277  BUILD_LINUXDOC_FALSE=
22278fi
22279
22280
22281{ $as_echo "$as_me:$LINENO: result: $BUILDDOC" >&5
22282$as_echo "$BUILDDOC" >&6; }
22283
22284{ $as_echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5
22285$as_echo_n "checking Whether to build pdf documentation... " >&6; }
22286
22287if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
22288   BUILDPDFDOC=yes
22289else
22290   BUILDPDFDOC=no
22291fi
22292
22293 if test x$BUILDPDFDOC = xyes; then
22294  BUILD_PDFDOC_TRUE=
22295  BUILD_PDFDOC_FALSE='#'
22296else
22297  BUILD_PDFDOC_TRUE='#'
22298  BUILD_PDFDOC_FALSE=
22299fi
22300
22301
22302{ $as_echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5
22303$as_echo "$BUILDPDFDOC" >&6; }
22304
22305MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
22306MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
22307MAKE_PDF="$PS2PDF"
22308MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC  -B html --split=0"
22309
22310
22311
22312
22313
22314
22315
22316ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
22317
22318cat >confcache <<\_ACEOF
22319# This file is a shell script that caches the results of configure
22320# tests run on this system so they can be shared between configure
22321# scripts and configure runs, see configure's option --config-cache.
22322# It is not useful on other systems.  If it contains results you don't
22323# want to keep, you may remove or edit it.
22324#
22325# config.status only pays attention to the cache file if you give it
22326# the --recheck option to rerun configure.
22327#
22328# `ac_cv_env_foo' variables (set or unset) will be overridden when
22329# loading this file, other *unset* `ac_cv_foo' will be assigned the
22330# following values.
22331
22332_ACEOF
22333
22334# The following way of writing the cache mishandles newlines in values,
22335# but we know of no workaround that is simple, portable, and efficient.
22336# So, we kill variables containing newlines.
22337# Ultrix sh set writes to stderr and can't be redirected directly,
22338# and sets the high bit in the cache file unless we assign to the vars.
22339(
22340  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22341    eval ac_val=\$$ac_var
22342    case $ac_val in #(
22343    *${as_nl}*)
22344      case $ac_var in #(
22345      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22346$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22347      esac
22348      case $ac_var in #(
22349      _ | IFS | as_nl) ;; #(
22350      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22351      *) $as_unset $ac_var ;;
22352      esac ;;
22353    esac
22354  done
22355
22356  (set) 2>&1 |
22357    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22358    *${as_nl}ac_space=\ *)
22359      # `set' does not quote correctly, so add quotes (double-quote
22360      # substitution turns \\\\ into \\, and sed turns \\ into \).
22361      sed -n \
22362	"s/'/'\\\\''/g;
22363	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22364      ;; #(
22365    *)
22366      # `set' quotes correctly as required by POSIX, so do not add quotes.
22367      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22368      ;;
22369    esac |
22370    sort
22371) |
22372  sed '
22373     /^ac_cv_env_/b end
22374     t clear
22375     :clear
22376     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22377     t end
22378     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22379     :end' >>confcache
22380if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22381  if test -w "$cache_file"; then
22382    test "x$cache_file" != "x/dev/null" &&
22383      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22384$as_echo "$as_me: updating cache $cache_file" >&6;}
22385    cat confcache >$cache_file
22386  else
22387    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22388$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22389  fi
22390fi
22391rm -f confcache
22392
22393test "x$prefix" = xNONE && prefix=$ac_default_prefix
22394# Let make expand exec_prefix.
22395test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22396
22397DEFS=-DHAVE_CONFIG_H
22398
22399ac_libobjs=
22400ac_ltlibobjs=
22401for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22402  # 1. Remove the extension, and $U if already installed.
22403  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22404  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22405  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22406  #    will be set to the directory where LIBOBJS objects are built.
22407  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22408  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22409done
22410LIBOBJS=$ac_libobjs
22411
22412LTLIBOBJS=$ac_ltlibobjs
22413
22414
22415if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22416  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22417Usually this means the macro was only invoked conditionally." >&5
22418$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22419Usually this means the macro was only invoked conditionally." >&2;}
22420   { (exit 1); exit 1; }; }
22421fi
22422if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22423  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22424Usually this means the macro was only invoked conditionally." >&5
22425$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22426Usually this means the macro was only invoked conditionally." >&2;}
22427   { (exit 1); exit 1; }; }
22428fi
22429if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22430  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22431Usually this means the macro was only invoked conditionally." >&5
22432$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22433Usually this means the macro was only invoked conditionally." >&2;}
22434   { (exit 1); exit 1; }; }
22435fi
22436if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22437  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22438Usually this means the macro was only invoked conditionally." >&5
22439$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22440Usually this means the macro was only invoked conditionally." >&2;}
22441   { (exit 1); exit 1; }; }
22442fi
22443if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22444  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22445Usually this means the macro was only invoked conditionally." >&5
22446$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22447Usually this means the macro was only invoked conditionally." >&2;}
22448   { (exit 1); exit 1; }; }
22449fi
22450if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
22451  { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
22452Usually this means the macro was only invoked conditionally." >&5
22453$as_echo "$as_me: error: conditional \"DRI\" was never defined.
22454Usually this means the macro was only invoked conditionally." >&2;}
22455   { (exit 1); exit 1; }; }
22456fi
22457if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
22458  { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
22459Usually this means the macro was only invoked conditionally." >&5
22460$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
22461Usually this means the macro was only invoked conditionally." >&2;}
22462   { (exit 1); exit 1; }; }
22463fi
22464if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then
22465  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined.
22466Usually this means the macro was only invoked conditionally." >&5
22467$as_echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined.
22468Usually this means the macro was only invoked conditionally." >&2;}
22469   { (exit 1); exit 1; }; }
22470fi
22471if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
22472  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined.
22473Usually this means the macro was only invoked conditionally." >&5
22474$as_echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined.
22475Usually this means the macro was only invoked conditionally." >&2;}
22476   { (exit 1); exit 1; }; }
22477fi
22478
22479: ${CONFIG_STATUS=./config.status}
22480ac_write_fail=0
22481ac_clean_files_save=$ac_clean_files
22482ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22483{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22484$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22485cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22486#! $SHELL
22487# Generated by $as_me.
22488# Run this file to recreate the current configuration.
22489# Compiler output produced by configure, useful for debugging
22490# configure, is in config.log if it exists.
22491
22492debug=false
22493ac_cs_recheck=false
22494ac_cs_silent=false
22495SHELL=\${CONFIG_SHELL-$SHELL}
22496_ACEOF
22497
22498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22499## --------------------- ##
22500## M4sh Initialization.  ##
22501## --------------------- ##
22502
22503# Be more Bourne compatible
22504DUALCASE=1; export DUALCASE # for MKS sh
22505if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22506  emulate sh
22507  NULLCMD=:
22508  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22509  # is contrary to our usage.  Disable this feature.
22510  alias -g '${1+"$@"}'='"$@"'
22511  setopt NO_GLOB_SUBST
22512else
22513  case `(set -o) 2>/dev/null` in
22514  *posix*) set -o posix ;;
22515esac
22516
22517fi
22518
22519
22520
22521
22522# PATH needs CR
22523# Avoid depending upon Character Ranges.
22524as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22525as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22526as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22527as_cr_digits='0123456789'
22528as_cr_alnum=$as_cr_Letters$as_cr_digits
22529
22530as_nl='
22531'
22532export as_nl
22533# Printing a long string crashes Solaris 7 /usr/bin/printf.
22534as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22535as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22536as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22537if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22538  as_echo='printf %s\n'
22539  as_echo_n='printf %s'
22540else
22541  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22542    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22543    as_echo_n='/usr/ucb/echo -n'
22544  else
22545    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22546    as_echo_n_body='eval
22547      arg=$1;
22548      case $arg in
22549      *"$as_nl"*)
22550	expr "X$arg" : "X\\(.*\\)$as_nl";
22551	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22552      esac;
22553      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22554    '
22555    export as_echo_n_body
22556    as_echo_n='sh -c $as_echo_n_body as_echo'
22557  fi
22558  export as_echo_body
22559  as_echo='sh -c $as_echo_body as_echo'
22560fi
22561
22562# The user is always right.
22563if test "${PATH_SEPARATOR+set}" != set; then
22564  PATH_SEPARATOR=:
22565  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22566    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22567      PATH_SEPARATOR=';'
22568  }
22569fi
22570
22571# Support unset when possible.
22572if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22573  as_unset=unset
22574else
22575  as_unset=false
22576fi
22577
22578
22579# IFS
22580# We need space, tab and new line, in precisely that order.  Quoting is
22581# there to prevent editors from complaining about space-tab.
22582# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22583# splitting by setting IFS to empty value.)
22584IFS=" ""	$as_nl"
22585
22586# Find who we are.  Look in the path if we contain no directory separator.
22587case $0 in
22588  *[\\/]* ) as_myself=$0 ;;
22589  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22590for as_dir in $PATH
22591do
22592  IFS=$as_save_IFS
22593  test -z "$as_dir" && as_dir=.
22594  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22595done
22596IFS=$as_save_IFS
22597
22598     ;;
22599esac
22600# We did not find ourselves, most probably we were run as `sh COMMAND'
22601# in which case we are not to be found in the path.
22602if test "x$as_myself" = x; then
22603  as_myself=$0
22604fi
22605if test ! -f "$as_myself"; then
22606  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22607  { (exit 1); exit 1; }
22608fi
22609
22610# Work around bugs in pre-3.0 UWIN ksh.
22611for as_var in ENV MAIL MAILPATH
22612do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22613done
22614PS1='$ '
22615PS2='> '
22616PS4='+ '
22617
22618# NLS nuisances.
22619LC_ALL=C
22620export LC_ALL
22621LANGUAGE=C
22622export LANGUAGE
22623
22624# Required to use basename.
22625if expr a : '\(a\)' >/dev/null 2>&1 &&
22626   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22627  as_expr=expr
22628else
22629  as_expr=false
22630fi
22631
22632if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22633  as_basename=basename
22634else
22635  as_basename=false
22636fi
22637
22638
22639# Name of the executable.
22640as_me=`$as_basename -- "$0" ||
22641$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22642	 X"$0" : 'X\(//\)$' \| \
22643	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22644$as_echo X/"$0" |
22645    sed '/^.*\/\([^/][^/]*\)\/*$/{
22646	    s//\1/
22647	    q
22648	  }
22649	  /^X\/\(\/\/\)$/{
22650	    s//\1/
22651	    q
22652	  }
22653	  /^X\/\(\/\).*/{
22654	    s//\1/
22655	    q
22656	  }
22657	  s/.*/./; q'`
22658
22659# CDPATH.
22660$as_unset CDPATH
22661
22662
22663
22664  as_lineno_1=$LINENO
22665  as_lineno_2=$LINENO
22666  test "x$as_lineno_1" != "x$as_lineno_2" &&
22667  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22668
22669  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22670  # uniformly replaced by the line number.  The first 'sed' inserts a
22671  # line-number line after each line using $LINENO; the second 'sed'
22672  # does the real work.  The second script uses 'N' to pair each
22673  # line-number line with the line containing $LINENO, and appends
22674  # trailing '-' during substitution so that $LINENO is not a special
22675  # case at line end.
22676  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22677  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22678  # E. McMahon (1931-1989) for sed's syntax.  :-)
22679  sed -n '
22680    p
22681    /[$]LINENO/=
22682  ' <$as_myself |
22683    sed '
22684      s/[$]LINENO.*/&-/
22685      t lineno
22686      b
22687      :lineno
22688      N
22689      :loop
22690      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22691      t loop
22692      s/-\n.*//
22693    ' >$as_me.lineno &&
22694  chmod +x "$as_me.lineno" ||
22695    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22696   { (exit 1); exit 1; }; }
22697
22698  # Don't try to exec as it changes $[0], causing all sort of problems
22699  # (the dirname of $[0] is not the place where we might find the
22700  # original and so on.  Autoconf is especially sensitive to this).
22701  . "./$as_me.lineno"
22702  # Exit status is that of the last command.
22703  exit
22704}
22705
22706
22707if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22708  as_dirname=dirname
22709else
22710  as_dirname=false
22711fi
22712
22713ECHO_C= ECHO_N= ECHO_T=
22714case `echo -n x` in
22715-n*)
22716  case `echo 'x\c'` in
22717  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22718  *)   ECHO_C='\c';;
22719  esac;;
22720*)
22721  ECHO_N='-n';;
22722esac
22723if expr a : '\(a\)' >/dev/null 2>&1 &&
22724   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22725  as_expr=expr
22726else
22727  as_expr=false
22728fi
22729
22730rm -f conf$$ conf$$.exe conf$$.file
22731if test -d conf$$.dir; then
22732  rm -f conf$$.dir/conf$$.file
22733else
22734  rm -f conf$$.dir
22735  mkdir conf$$.dir 2>/dev/null
22736fi
22737if (echo >conf$$.file) 2>/dev/null; then
22738  if ln -s conf$$.file conf$$ 2>/dev/null; then
22739    as_ln_s='ln -s'
22740    # ... but there are two gotchas:
22741    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22742    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22743    # In both cases, we have to default to `cp -p'.
22744    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22745      as_ln_s='cp -p'
22746  elif ln conf$$.file conf$$ 2>/dev/null; then
22747    as_ln_s=ln
22748  else
22749    as_ln_s='cp -p'
22750  fi
22751else
22752  as_ln_s='cp -p'
22753fi
22754rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22755rmdir conf$$.dir 2>/dev/null
22756
22757if mkdir -p . 2>/dev/null; then
22758  as_mkdir_p=:
22759else
22760  test -d ./-p && rmdir ./-p
22761  as_mkdir_p=false
22762fi
22763
22764if test -x / >/dev/null 2>&1; then
22765  as_test_x='test -x'
22766else
22767  if ls -dL / >/dev/null 2>&1; then
22768    as_ls_L_option=L
22769  else
22770    as_ls_L_option=
22771  fi
22772  as_test_x='
22773    eval sh -c '\''
22774      if test -d "$1"; then
22775	test -d "$1/.";
22776      else
22777	case $1 in
22778	-*)set "./$1";;
22779	esac;
22780	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22781	???[sx]*):;;*)false;;esac;fi
22782    '\'' sh
22783  '
22784fi
22785as_executable_p=$as_test_x
22786
22787# Sed expression to map a string onto a valid CPP name.
22788as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22789
22790# Sed expression to map a string onto a valid variable name.
22791as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22792
22793
22794exec 6>&1
22795
22796# Save the log message, to keep $[0] and so on meaningful, and to
22797# report actual input values of CONFIG_FILES etc. instead of their
22798# values after options handling.
22799ac_log="
22800This file was extended by xf86-video-sis $as_me 0.10.1, which was
22801generated by GNU Autoconf 2.63.  Invocation command line was
22802
22803  CONFIG_FILES    = $CONFIG_FILES
22804  CONFIG_HEADERS  = $CONFIG_HEADERS
22805  CONFIG_LINKS    = $CONFIG_LINKS
22806  CONFIG_COMMANDS = $CONFIG_COMMANDS
22807  $ $0 $@
22808
22809on `(hostname || uname -n) 2>/dev/null | sed 1q`
22810"
22811
22812_ACEOF
22813
22814case $ac_config_files in *"
22815"*) set x $ac_config_files; shift; ac_config_files=$*;;
22816esac
22817
22818case $ac_config_headers in *"
22819"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22820esac
22821
22822
22823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22824# Files that config.status was made for.
22825config_files="$ac_config_files"
22826config_headers="$ac_config_headers"
22827config_commands="$ac_config_commands"
22828
22829_ACEOF
22830
22831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22832ac_cs_usage="\
22833\`$as_me' instantiates files from templates according to the
22834current configuration.
22835
22836Usage: $0 [OPTION]... [FILE]...
22837
22838  -h, --help       print this help, then exit
22839  -V, --version    print version number and configuration settings, then exit
22840  -q, --quiet, --silent
22841                   do not print progress messages
22842  -d, --debug      don't remove temporary files
22843      --recheck    update $as_me by reconfiguring in the same conditions
22844      --file=FILE[:TEMPLATE]
22845                   instantiate the configuration file FILE
22846      --header=FILE[:TEMPLATE]
22847                   instantiate the configuration header FILE
22848
22849Configuration files:
22850$config_files
22851
22852Configuration headers:
22853$config_headers
22854
22855Configuration commands:
22856$config_commands
22857
22858Report bugs to <bug-autoconf@gnu.org>."
22859
22860_ACEOF
22861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22862ac_cs_version="\\
22863xf86-video-sis config.status 0.10.1
22864configured by $0, generated by GNU Autoconf 2.63,
22865  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22866
22867Copyright (C) 2008 Free Software Foundation, Inc.
22868This config.status script is free software; the Free Software Foundation
22869gives unlimited permission to copy, distribute and modify it."
22870
22871ac_pwd='$ac_pwd'
22872srcdir='$srcdir'
22873INSTALL='$INSTALL'
22874MKDIR_P='$MKDIR_P'
22875AWK='$AWK'
22876test -n "\$AWK" || AWK=awk
22877_ACEOF
22878
22879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22880# The default lists apply if the user does not specify any file.
22881ac_need_defaults=:
22882while test $# != 0
22883do
22884  case $1 in
22885  --*=*)
22886    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22887    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22888    ac_shift=:
22889    ;;
22890  *)
22891    ac_option=$1
22892    ac_optarg=$2
22893    ac_shift=shift
22894    ;;
22895  esac
22896
22897  case $ac_option in
22898  # Handling of the options.
22899  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22900    ac_cs_recheck=: ;;
22901  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22902    $as_echo "$ac_cs_version"; exit ;;
22903  --debug | --debu | --deb | --de | --d | -d )
22904    debug=: ;;
22905  --file | --fil | --fi | --f )
22906    $ac_shift
22907    case $ac_optarg in
22908    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22909    esac
22910    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22911    ac_need_defaults=false;;
22912  --header | --heade | --head | --hea )
22913    $ac_shift
22914    case $ac_optarg in
22915    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22916    esac
22917    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22918    ac_need_defaults=false;;
22919  --he | --h)
22920    # Conflict between --help and --header
22921    { $as_echo "$as_me: error: ambiguous option: $1
22922Try \`$0 --help' for more information." >&2
22923   { (exit 1); exit 1; }; };;
22924  --help | --hel | -h )
22925    $as_echo "$ac_cs_usage"; exit ;;
22926  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22927  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22928    ac_cs_silent=: ;;
22929
22930  # This is an error.
22931  -*) { $as_echo "$as_me: error: unrecognized option: $1
22932Try \`$0 --help' for more information." >&2
22933   { (exit 1); exit 1; }; } ;;
22934
22935  *) ac_config_targets="$ac_config_targets $1"
22936     ac_need_defaults=false ;;
22937
22938  esac
22939  shift
22940done
22941
22942ac_configure_extra_args=
22943
22944if $ac_cs_silent; then
22945  exec 6>/dev/null
22946  ac_configure_extra_args="$ac_configure_extra_args --silent"
22947fi
22948
22949_ACEOF
22950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22951if \$ac_cs_recheck; then
22952  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22953  shift
22954  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22955  CONFIG_SHELL='$SHELL'
22956  export CONFIG_SHELL
22957  exec "\$@"
22958fi
22959
22960_ACEOF
22961cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22962exec 5>>config.log
22963{
22964  echo
22965  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22966## Running $as_me. ##
22967_ASBOX
22968  $as_echo "$ac_log"
22969} >&5
22970
22971_ACEOF
22972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22973#
22974# INIT-COMMANDS
22975#
22976AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22977
22978_ACEOF
22979
22980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22981
22982# Handling of arguments.
22983for ac_config_target in $ac_config_targets
22984do
22985  case $ac_config_target in
22986    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22987    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22988    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22989    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22990    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22991
22992  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22993$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22994   { (exit 1); exit 1; }; };;
22995  esac
22996done
22997
22998
22999# If the user did not use the arguments to specify the items to instantiate,
23000# then the envvar interface is used.  Set only those that are not.
23001# We use the long form for the default assignment because of an extremely
23002# bizarre bug on SunOS 4.1.3.
23003if $ac_need_defaults; then
23004  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23005  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23006  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23007fi
23008
23009# Have a temporary directory for convenience.  Make it in the build tree
23010# simply because there is no reason against having it here, and in addition,
23011# creating and moving files from /tmp can sometimes cause problems.
23012# Hook for its removal unless debugging.
23013# Note that there is a small window in which the directory will not be cleaned:
23014# after its creation but before its name has been assigned to `$tmp'.
23015$debug ||
23016{
23017  tmp=
23018  trap 'exit_status=$?
23019  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23020' 0
23021  trap '{ (exit 1); exit 1; }' 1 2 13 15
23022}
23023# Create a (secure) tmp directory for tmp files.
23024
23025{
23026  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23027  test -n "$tmp" && test -d "$tmp"
23028}  ||
23029{
23030  tmp=./conf$$-$RANDOM
23031  (umask 077 && mkdir "$tmp")
23032} ||
23033{
23034   $as_echo "$as_me: cannot create a temporary directory in ." >&2
23035   { (exit 1); exit 1; }
23036}
23037
23038# Set up the scripts for CONFIG_FILES section.
23039# No need to generate them if there are no CONFIG_FILES.
23040# This happens for instance with `./config.status config.h'.
23041if test -n "$CONFIG_FILES"; then
23042
23043
23044ac_cr='
23045'
23046ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23047if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23048  ac_cs_awk_cr='\\r'
23049else
23050  ac_cs_awk_cr=$ac_cr
23051fi
23052
23053echo 'BEGIN {' >"$tmp/subs1.awk" &&
23054_ACEOF
23055
23056
23057{
23058  echo "cat >conf$$subs.awk <<_ACEOF" &&
23059  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23060  echo "_ACEOF"
23061} >conf$$subs.sh ||
23062  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23063$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23064   { (exit 1); exit 1; }; }
23065ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23066ac_delim='%!_!# '
23067for ac_last_try in false false false false false :; do
23068  . ./conf$$subs.sh ||
23069    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23070$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23071   { (exit 1); exit 1; }; }
23072
23073  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23074  if test $ac_delim_n = $ac_delim_num; then
23075    break
23076  elif $ac_last_try; then
23077    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23078$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23079   { (exit 1); exit 1; }; }
23080  else
23081    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23082  fi
23083done
23084rm -f conf$$subs.sh
23085
23086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23087cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23088_ACEOF
23089sed -n '
23090h
23091s/^/S["/; s/!.*/"]=/
23092p
23093g
23094s/^[^!]*!//
23095:repl
23096t repl
23097s/'"$ac_delim"'$//
23098t delim
23099:nl
23100h
23101s/\(.\{148\}\).*/\1/
23102t more1
23103s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23104p
23105n
23106b repl
23107:more1
23108s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23109p
23110g
23111s/.\{148\}//
23112t nl
23113:delim
23114h
23115s/\(.\{148\}\).*/\1/
23116t more2
23117s/["\\]/\\&/g; s/^/"/; s/$/"/
23118p
23119b
23120:more2
23121s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23122p
23123g
23124s/.\{148\}//
23125t delim
23126' <conf$$subs.awk | sed '
23127/^[^""]/{
23128  N
23129  s/\n//
23130}
23131' >>$CONFIG_STATUS || ac_write_fail=1
23132rm -f conf$$subs.awk
23133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23134_ACAWK
23135cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23136  for (key in S) S_is_set[key] = 1
23137  FS = ""
23138
23139}
23140{
23141  line = $ 0
23142  nfields = split(line, field, "@")
23143  substed = 0
23144  len = length(field[1])
23145  for (i = 2; i < nfields; i++) {
23146    key = field[i]
23147    keylen = length(key)
23148    if (S_is_set[key]) {
23149      value = S[key]
23150      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23151      len += length(value) + length(field[++i])
23152      substed = 1
23153    } else
23154      len += 1 + keylen
23155  }
23156
23157  print line
23158}
23159
23160_ACAWK
23161_ACEOF
23162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23163if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23164  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23165else
23166  cat
23167fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23168  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23169$as_echo "$as_me: error: could not setup config files machinery" >&2;}
23170   { (exit 1); exit 1; }; }
23171_ACEOF
23172
23173# VPATH may cause trouble with some makes, so we remove $(srcdir),
23174# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23175# trailing colons and then remove the whole line if VPATH becomes empty
23176# (actually we leave an empty line to preserve line numbers).
23177if test "x$srcdir" = x.; then
23178  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23179s/:*\$(srcdir):*/:/
23180s/:*\${srcdir}:*/:/
23181s/:*@srcdir@:*/:/
23182s/^\([^=]*=[	 ]*\):*/\1/
23183s/:*$//
23184s/^[^=]*=[	 ]*$//
23185}'
23186fi
23187
23188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23189fi # test -n "$CONFIG_FILES"
23190
23191# Set up the scripts for CONFIG_HEADERS section.
23192# No need to generate them if there are no CONFIG_HEADERS.
23193# This happens for instance with `./config.status Makefile'.
23194if test -n "$CONFIG_HEADERS"; then
23195cat >"$tmp/defines.awk" <<\_ACAWK ||
23196BEGIN {
23197_ACEOF
23198
23199# Transform confdefs.h into an awk script `defines.awk', embedded as
23200# here-document in config.status, that substitutes the proper values into
23201# config.h.in to produce config.h.
23202
23203# Create a delimiter string that does not exist in confdefs.h, to ease
23204# handling of long lines.
23205ac_delim='%!_!# '
23206for ac_last_try in false false :; do
23207  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23208  if test -z "$ac_t"; then
23209    break
23210  elif $ac_last_try; then
23211    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23212$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23213   { (exit 1); exit 1; }; }
23214  else
23215    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23216  fi
23217done
23218
23219# For the awk script, D is an array of macro values keyed by name,
23220# likewise P contains macro parameters if any.  Preserve backslash
23221# newline sequences.
23222
23223ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23224sed -n '
23225s/.\{148\}/&'"$ac_delim"'/g
23226t rset
23227:rset
23228s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23229t def
23230d
23231:def
23232s/\\$//
23233t bsnl
23234s/["\\]/\\&/g
23235s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23236D["\1"]=" \3"/p
23237s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23238d
23239:bsnl
23240s/["\\]/\\&/g
23241s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23242D["\1"]=" \3\\\\\\n"\\/p
23243t cont
23244s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23245t cont
23246d
23247:cont
23248n
23249s/.\{148\}/&'"$ac_delim"'/g
23250t clear
23251:clear
23252s/\\$//
23253t bsnlc
23254s/["\\]/\\&/g; s/^/"/; s/$/"/p
23255d
23256:bsnlc
23257s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23258b cont
23259' <confdefs.h | sed '
23260s/'"$ac_delim"'/"\\\
23261"/g' >>$CONFIG_STATUS || ac_write_fail=1
23262
23263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23264  for (key in D) D_is_set[key] = 1
23265  FS = ""
23266}
23267/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23268  line = \$ 0
23269  split(line, arg, " ")
23270  if (arg[1] == "#") {
23271    defundef = arg[2]
23272    mac1 = arg[3]
23273  } else {
23274    defundef = substr(arg[1], 2)
23275    mac1 = arg[2]
23276  }
23277  split(mac1, mac2, "(") #)
23278  macro = mac2[1]
23279  prefix = substr(line, 1, index(line, defundef) - 1)
23280  if (D_is_set[macro]) {
23281    # Preserve the white space surrounding the "#".
23282    print prefix "define", macro P[macro] D[macro]
23283    next
23284  } else {
23285    # Replace #undef with comments.  This is necessary, for example,
23286    # in the case of _POSIX_SOURCE, which is predefined and required
23287    # on some systems where configure will not decide to define it.
23288    if (defundef == "undef") {
23289      print "/*", prefix defundef, macro, "*/"
23290      next
23291    }
23292  }
23293}
23294{ print }
23295_ACAWK
23296_ACEOF
23297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23298  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23299$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23300   { (exit 1); exit 1; }; }
23301fi # test -n "$CONFIG_HEADERS"
23302
23303
23304eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23305shift
23306for ac_tag
23307do
23308  case $ac_tag in
23309  :[FHLC]) ac_mode=$ac_tag; continue;;
23310  esac
23311  case $ac_mode$ac_tag in
23312  :[FHL]*:*);;
23313  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23314$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23315   { (exit 1); exit 1; }; };;
23316  :[FH]-) ac_tag=-:-;;
23317  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23318  esac
23319  ac_save_IFS=$IFS
23320  IFS=:
23321  set x $ac_tag
23322  IFS=$ac_save_IFS
23323  shift
23324  ac_file=$1
23325  shift
23326
23327  case $ac_mode in
23328  :L) ac_source=$1;;
23329  :[FH])
23330    ac_file_inputs=
23331    for ac_f
23332    do
23333      case $ac_f in
23334      -) ac_f="$tmp/stdin";;
23335      *) # Look for the file first in the build tree, then in the source tree
23336	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23337	 # because $ac_f cannot contain `:'.
23338	 test -f "$ac_f" ||
23339	   case $ac_f in
23340	   [\\/$]*) false;;
23341	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23342	   esac ||
23343	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23344$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23345   { (exit 1); exit 1; }; };;
23346      esac
23347      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23348      ac_file_inputs="$ac_file_inputs '$ac_f'"
23349    done
23350
23351    # Let's still pretend it is `configure' which instantiates (i.e., don't
23352    # use $as_me), people would be surprised to read:
23353    #    /* config.h.  Generated by config.status.  */
23354    configure_input='Generated from '`
23355	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23356	`' by configure.'
23357    if test x"$ac_file" != x-; then
23358      configure_input="$ac_file.  $configure_input"
23359      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23360$as_echo "$as_me: creating $ac_file" >&6;}
23361    fi
23362    # Neutralize special characters interpreted by sed in replacement strings.
23363    case $configure_input in #(
23364    *\&* | *\|* | *\\* )
23365       ac_sed_conf_input=`$as_echo "$configure_input" |
23366       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23367    *) ac_sed_conf_input=$configure_input;;
23368    esac
23369
23370    case $ac_tag in
23371    *:-:* | *:-) cat >"$tmp/stdin" \
23372      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23373$as_echo "$as_me: error: could not create $ac_file" >&2;}
23374   { (exit 1); exit 1; }; } ;;
23375    esac
23376    ;;
23377  esac
23378
23379  ac_dir=`$as_dirname -- "$ac_file" ||
23380$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23381	 X"$ac_file" : 'X\(//\)[^/]' \| \
23382	 X"$ac_file" : 'X\(//\)$' \| \
23383	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23384$as_echo X"$ac_file" |
23385    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23386	    s//\1/
23387	    q
23388	  }
23389	  /^X\(\/\/\)[^/].*/{
23390	    s//\1/
23391	    q
23392	  }
23393	  /^X\(\/\/\)$/{
23394	    s//\1/
23395	    q
23396	  }
23397	  /^X\(\/\).*/{
23398	    s//\1/
23399	    q
23400	  }
23401	  s/.*/./; q'`
23402  { as_dir="$ac_dir"
23403  case $as_dir in #(
23404  -*) as_dir=./$as_dir;;
23405  esac
23406  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23407    as_dirs=
23408    while :; do
23409      case $as_dir in #(
23410      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23411      *) as_qdir=$as_dir;;
23412      esac
23413      as_dirs="'$as_qdir' $as_dirs"
23414      as_dir=`$as_dirname -- "$as_dir" ||
23415$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23416	 X"$as_dir" : 'X\(//\)[^/]' \| \
23417	 X"$as_dir" : 'X\(//\)$' \| \
23418	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23419$as_echo X"$as_dir" |
23420    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23421	    s//\1/
23422	    q
23423	  }
23424	  /^X\(\/\/\)[^/].*/{
23425	    s//\1/
23426	    q
23427	  }
23428	  /^X\(\/\/\)$/{
23429	    s//\1/
23430	    q
23431	  }
23432	  /^X\(\/\).*/{
23433	    s//\1/
23434	    q
23435	  }
23436	  s/.*/./; q'`
23437      test -d "$as_dir" && break
23438    done
23439    test -z "$as_dirs" || eval "mkdir $as_dirs"
23440  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23441$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23442   { (exit 1); exit 1; }; }; }
23443  ac_builddir=.
23444
23445case "$ac_dir" in
23446.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23447*)
23448  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23449  # A ".." for each directory in $ac_dir_suffix.
23450  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23451  case $ac_top_builddir_sub in
23452  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23453  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23454  esac ;;
23455esac
23456ac_abs_top_builddir=$ac_pwd
23457ac_abs_builddir=$ac_pwd$ac_dir_suffix
23458# for backward compatibility:
23459ac_top_builddir=$ac_top_build_prefix
23460
23461case $srcdir in
23462  .)  # We are building in place.
23463    ac_srcdir=.
23464    ac_top_srcdir=$ac_top_builddir_sub
23465    ac_abs_top_srcdir=$ac_pwd ;;
23466  [\\/]* | ?:[\\/]* )  # Absolute name.
23467    ac_srcdir=$srcdir$ac_dir_suffix;
23468    ac_top_srcdir=$srcdir
23469    ac_abs_top_srcdir=$srcdir ;;
23470  *) # Relative name.
23471    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23472    ac_top_srcdir=$ac_top_build_prefix$srcdir
23473    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23474esac
23475ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23476
23477
23478  case $ac_mode in
23479  :F)
23480  #
23481  # CONFIG_FILE
23482  #
23483
23484  case $INSTALL in
23485  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23486  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23487  esac
23488  ac_MKDIR_P=$MKDIR_P
23489  case $MKDIR_P in
23490  [\\/$]* | ?:[\\/]* ) ;;
23491  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23492  esac
23493_ACEOF
23494
23495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23496# If the template does not know about datarootdir, expand it.
23497# FIXME: This hack should be removed a few years after 2.60.
23498ac_datarootdir_hack=; ac_datarootdir_seen=
23499
23500ac_sed_dataroot='
23501/datarootdir/ {
23502  p
23503  q
23504}
23505/@datadir@/p
23506/@docdir@/p
23507/@infodir@/p
23508/@localedir@/p
23509/@mandir@/p
23510'
23511case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23512*datarootdir*) ac_datarootdir_seen=yes;;
23513*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23514  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23515$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23516_ACEOF
23517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23518  ac_datarootdir_hack='
23519  s&@datadir@&$datadir&g
23520  s&@docdir@&$docdir&g
23521  s&@infodir@&$infodir&g
23522  s&@localedir@&$localedir&g
23523  s&@mandir@&$mandir&g
23524    s&\\\${datarootdir}&$datarootdir&g' ;;
23525esac
23526_ACEOF
23527
23528# Neutralize VPATH when `$srcdir' = `.'.
23529# Shell code in configure.ac might set extrasub.
23530# FIXME: do we really want to maintain this feature?
23531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23532ac_sed_extra="$ac_vpsub
23533$extrasub
23534_ACEOF
23535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23536:t
23537/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23538s|@configure_input@|$ac_sed_conf_input|;t t
23539s&@top_builddir@&$ac_top_builddir_sub&;t t
23540s&@top_build_prefix@&$ac_top_build_prefix&;t t
23541s&@srcdir@&$ac_srcdir&;t t
23542s&@abs_srcdir@&$ac_abs_srcdir&;t t
23543s&@top_srcdir@&$ac_top_srcdir&;t t
23544s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23545s&@builddir@&$ac_builddir&;t t
23546s&@abs_builddir@&$ac_abs_builddir&;t t
23547s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23548s&@INSTALL@&$ac_INSTALL&;t t
23549s&@MKDIR_P@&$ac_MKDIR_P&;t t
23550$ac_datarootdir_hack
23551"
23552eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23553  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23554$as_echo "$as_me: error: could not create $ac_file" >&2;}
23555   { (exit 1); exit 1; }; }
23556
23557test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23558  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23559  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23560  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23561which seems to be undefined.  Please make sure it is defined." >&5
23562$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23563which seems to be undefined.  Please make sure it is defined." >&2;}
23564
23565  rm -f "$tmp/stdin"
23566  case $ac_file in
23567  -) cat "$tmp/out" && rm -f "$tmp/out";;
23568  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23569  esac \
23570  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23571$as_echo "$as_me: error: could not create $ac_file" >&2;}
23572   { (exit 1); exit 1; }; }
23573 ;;
23574  :H)
23575  #
23576  # CONFIG_HEADER
23577  #
23578  if test x"$ac_file" != x-; then
23579    {
23580      $as_echo "/* $configure_input  */" \
23581      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23582    } >"$tmp/config.h" \
23583      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23584$as_echo "$as_me: error: could not create $ac_file" >&2;}
23585   { (exit 1); exit 1; }; }
23586    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23587      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23588$as_echo "$as_me: $ac_file is unchanged" >&6;}
23589    else
23590      rm -f "$ac_file"
23591      mv "$tmp/config.h" "$ac_file" \
23592	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23593$as_echo "$as_me: error: could not create $ac_file" >&2;}
23594   { (exit 1); exit 1; }; }
23595    fi
23596  else
23597    $as_echo "/* $configure_input  */" \
23598      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23599      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23600$as_echo "$as_me: error: could not create -" >&2;}
23601   { (exit 1); exit 1; }; }
23602  fi
23603# Compute "$ac_file"'s index in $config_headers.
23604_am_arg="$ac_file"
23605_am_stamp_count=1
23606for _am_header in $config_headers :; do
23607  case $_am_header in
23608    $_am_arg | $_am_arg:* )
23609      break ;;
23610    * )
23611      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23612  esac
23613done
23614echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23615$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23616	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23617	 X"$_am_arg" : 'X\(//\)$' \| \
23618	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23619$as_echo X"$_am_arg" |
23620    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23621	    s//\1/
23622	    q
23623	  }
23624	  /^X\(\/\/\)[^/].*/{
23625	    s//\1/
23626	    q
23627	  }
23628	  /^X\(\/\/\)$/{
23629	    s//\1/
23630	    q
23631	  }
23632	  /^X\(\/\).*/{
23633	    s//\1/
23634	    q
23635	  }
23636	  s/.*/./; q'`/stamp-h$_am_stamp_count
23637 ;;
23638
23639  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23640$as_echo "$as_me: executing $ac_file commands" >&6;}
23641 ;;
23642  esac
23643
23644
23645  case $ac_file$ac_mode in
23646    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23647  # Strip MF so we end up with the name of the file.
23648  mf=`echo "$mf" | sed -e 's/:.*$//'`
23649  # Check whether this is an Automake generated Makefile or not.
23650  # We used to match only the files named `Makefile.in', but
23651  # some people rename them; so instead we look at the file content.
23652  # Grep'ing the first line is not enough: some people post-process
23653  # each Makefile.in and add a new line on top of each file to say so.
23654  # Grep'ing the whole file is not good either: AIX grep has a line
23655  # limit of 2048, but all sed's we know have understand at least 4000.
23656  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23657    dirpart=`$as_dirname -- "$mf" ||
23658$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23659	 X"$mf" : 'X\(//\)[^/]' \| \
23660	 X"$mf" : 'X\(//\)$' \| \
23661	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23662$as_echo X"$mf" |
23663    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23664	    s//\1/
23665	    q
23666	  }
23667	  /^X\(\/\/\)[^/].*/{
23668	    s//\1/
23669	    q
23670	  }
23671	  /^X\(\/\/\)$/{
23672	    s//\1/
23673	    q
23674	  }
23675	  /^X\(\/\).*/{
23676	    s//\1/
23677	    q
23678	  }
23679	  s/.*/./; q'`
23680  else
23681    continue
23682  fi
23683  # Extract the definition of DEPDIR, am__include, and am__quote
23684  # from the Makefile without running `make'.
23685  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23686  test -z "$DEPDIR" && continue
23687  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23688  test -z "am__include" && continue
23689  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23690  # When using ansi2knr, U may be empty or an underscore; expand it
23691  U=`sed -n 's/^U = //p' < "$mf"`
23692  # Find all dependency output files, they are included files with
23693  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23694  # simplest approach to changing $(DEPDIR) to its actual value in the
23695  # expansion.
23696  for file in `sed -n "
23697    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23698       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23699    # Make sure the directory exists.
23700    test -f "$dirpart/$file" && continue
23701    fdir=`$as_dirname -- "$file" ||
23702$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23703	 X"$file" : 'X\(//\)[^/]' \| \
23704	 X"$file" : 'X\(//\)$' \| \
23705	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23706$as_echo X"$file" |
23707    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23708	    s//\1/
23709	    q
23710	  }
23711	  /^X\(\/\/\)[^/].*/{
23712	    s//\1/
23713	    q
23714	  }
23715	  /^X\(\/\/\)$/{
23716	    s//\1/
23717	    q
23718	  }
23719	  /^X\(\/\).*/{
23720	    s//\1/
23721	    q
23722	  }
23723	  s/.*/./; q'`
23724    { as_dir=$dirpart/$fdir
23725  case $as_dir in #(
23726  -*) as_dir=./$as_dir;;
23727  esac
23728  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23729    as_dirs=
23730    while :; do
23731      case $as_dir in #(
23732      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23733      *) as_qdir=$as_dir;;
23734      esac
23735      as_dirs="'$as_qdir' $as_dirs"
23736      as_dir=`$as_dirname -- "$as_dir" ||
23737$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23738	 X"$as_dir" : 'X\(//\)[^/]' \| \
23739	 X"$as_dir" : 'X\(//\)$' \| \
23740	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23741$as_echo X"$as_dir" |
23742    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23743	    s//\1/
23744	    q
23745	  }
23746	  /^X\(\/\/\)[^/].*/{
23747	    s//\1/
23748	    q
23749	  }
23750	  /^X\(\/\/\)$/{
23751	    s//\1/
23752	    q
23753	  }
23754	  /^X\(\/\).*/{
23755	    s//\1/
23756	    q
23757	  }
23758	  s/.*/./; q'`
23759      test -d "$as_dir" && break
23760    done
23761    test -z "$as_dirs" || eval "mkdir $as_dirs"
23762  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23763$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23764   { (exit 1); exit 1; }; }; }
23765    # echo "creating $dirpart/$file"
23766    echo '# dummy' > "$dirpart/$file"
23767  done
23768done
23769 ;;
23770
23771  esac
23772done # for ac_tag
23773
23774
23775{ (exit 0); exit 0; }
23776_ACEOF
23777chmod +x $CONFIG_STATUS
23778ac_clean_files=$ac_clean_files_save
23779
23780test $ac_write_fail = 0 ||
23781  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23782$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23783   { (exit 1); exit 1; }; }
23784
23785
23786# configure is writing to config.log, and then calls config.status.
23787# config.status does its own redirection, appending to config.log.
23788# Unfortunately, on DOS this fails, as config.log is still kept open
23789# by configure, so config.status won't be able to write to it; its
23790# output is simply discarded.  So we exec the FD to /dev/null,
23791# effectively closing config.log, so it can be properly (re)opened and
23792# appended to by config.status.  When coming back to configure, we
23793# need to make the FD available again.
23794if test "$no_create" != yes; then
23795  ac_cs_success=:
23796  ac_config_status_args=
23797  test "$silent" = yes &&
23798    ac_config_status_args="$ac_config_status_args --quiet"
23799  exec 5>/dev/null
23800  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23801  exec 5>>config.log
23802  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23803  # would make configure fail if this is the last instruction.
23804  $ac_cs_success || { (exit 1); exit 1; }
23805fi
23806if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23807  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23808$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23809fi
23810
23811