configure revision dbbd9e4b
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.62 for xf86-video-sunffb 1.2.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 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-sunffb'
752PACKAGE_TARNAME='xf86-video-sunffb'
753PACKAGE_VERSION='1.2.0'
754PACKAGE_STRING='xf86-video-sunffb 1.2.0'
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='SHELL
795PATH_SEPARATOR
796PACKAGE_NAME
797PACKAGE_TARNAME
798PACKAGE_VERSION
799PACKAGE_STRING
800PACKAGE_BUGREPORT
801exec_prefix
802prefix
803program_transform_name
804bindir
805sbindir
806libexecdir
807datarootdir
808datadir
809sysconfdir
810sharedstatedir
811localstatedir
812includedir
813oldincludedir
814docdir
815infodir
816htmldir
817dvidir
818pdfdir
819psdir
820libdir
821localedir
822mandir
823DEFS
824ECHO_C
825ECHO_N
826ECHO_T
827LIBS
828build_alias
829host_alias
830target_alias
831INSTALL_PROGRAM
832INSTALL_SCRIPT
833INSTALL_DATA
834am__isrc
835CYGPATH_W
836PACKAGE
837VERSION
838ACLOCAL
839AUTOCONF
840AUTOMAKE
841AUTOHEADER
842MAKEINFO
843install_sh
844STRIP
845INSTALL_STRIP_PROGRAM
846MKDIR_P
847mkdir_p
848AWK
849SET_MAKE
850am__leading_dot
851AMTAR
852am__tar
853am__untar
854MAINTAINER_MODE_TRUE
855MAINTAINER_MODE_FALSE
856MAINT
857build
858build_cpu
859build_vendor
860build_os
861host
862host_cpu
863host_vendor
864host_os
865CC
866CFLAGS
867LDFLAGS
868CPPFLAGS
869ac_ct_CC
870EXEEXT
871OBJEXT
872DEPDIR
873am__include
874am__quote
875AMDEP_TRUE
876AMDEP_FALSE
877AMDEPBACKSLASH
878CCDEPMODE
879am__fastdepCC_TRUE
880am__fastdepCC_FALSE
881SED
882GREP
883EGREP
884LN_S
885ECHO
886AR
887RANLIB
888DSYMUTIL
889NMEDIT
890CPP
891CXX
892CXXFLAGS
893ac_ct_CXX
894CXXDEPMODE
895am__fastdepCXX_TRUE
896am__fastdepCXX_FALSE
897CXXCPP
898F77
899FFLAGS
900ac_ct_F77
901LIBTOOL
902CCAS
903CCASFLAGS
904CCASDEPMODE
905am__fastdepCCAS_TRUE
906am__fastdepCCAS_FALSE
907PKG_CONFIG
908XORG_CFLAGS
909XORG_LIBS
910DRI_TRUE
911DRI_FALSE
912DRI_CFLAGS
913DRI_LIBS
914SPARC_TRUE
915SPARC_FALSE
916moduledir
917DRIVER_NAME
918APP_MAN_SUFFIX
919LIB_MAN_SUFFIX
920FILE_MAN_SUFFIX
921MISC_MAN_SUFFIX
922DRIVER_MAN_SUFFIX
923ADMIN_MAN_SUFFIX
924APP_MAN_DIR
925LIB_MAN_DIR
926FILE_MAN_DIR
927MISC_MAN_DIR
928DRIVER_MAN_DIR
929ADMIN_MAN_DIR
930LIBOBJS
931LTLIBOBJS'
932ac_subst_files=''
933ac_user_opts='
934enable_option_checking
935enable_maintainer_mode
936enable_static
937enable_shared
938enable_fast_install
939enable_dependency_tracking
940with_gnu_ld
941enable_libtool_lock
942with_pic
943with_tags
944with_xorg_module_dir
945enable_dri
946with_release_version
947'
948      ac_precious_vars='build_alias
949host_alias
950target_alias
951CC
952CFLAGS
953LDFLAGS
954LIBS
955CPPFLAGS
956CPP
957CXX
958CXXFLAGS
959CCC
960CXXCPP
961F77
962FFLAGS
963CCAS
964CCASFLAGS
965PKG_CONFIG
966XORG_CFLAGS
967XORG_LIBS
968DRI_CFLAGS
969DRI_LIBS'
970
971
972# Initialize some variables set by options.
973ac_init_help=
974ac_init_version=false
975ac_unrecognized_opts=
976ac_unrecognized_sep=
977# The variables have the same names as the options, with
978# dashes changed to underlines.
979cache_file=/dev/null
980exec_prefix=NONE
981no_create=
982no_recursion=
983prefix=NONE
984program_prefix=NONE
985program_suffix=NONE
986program_transform_name=s,x,x,
987silent=
988site=
989srcdir=
990verbose=
991x_includes=NONE
992x_libraries=NONE
993
994# Installation directory options.
995# These are left unexpanded so users can "make install exec_prefix=/foo"
996# and all the variables that are supposed to be based on exec_prefix
997# by default will actually change.
998# Use braces instead of parens because sh, perl, etc. also accept them.
999# (The list follows the same order as the GNU Coding Standards.)
1000bindir='${exec_prefix}/bin'
1001sbindir='${exec_prefix}/sbin'
1002libexecdir='${exec_prefix}/libexec'
1003datarootdir='${prefix}/share'
1004datadir='${datarootdir}'
1005sysconfdir='${prefix}/etc'
1006sharedstatedir='${prefix}/com'
1007localstatedir='${prefix}/var'
1008includedir='${prefix}/include'
1009oldincludedir='/usr/include'
1010docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1011infodir='${datarootdir}/info'
1012htmldir='${docdir}'
1013dvidir='${docdir}'
1014pdfdir='${docdir}'
1015psdir='${docdir}'
1016libdir='${exec_prefix}/lib'
1017localedir='${datarootdir}/locale'
1018mandir='${datarootdir}/man'
1019
1020ac_prev=
1021ac_dashdash=
1022for ac_option
1023do
1024  # If the previous option needs an argument, assign it.
1025  if test -n "$ac_prev"; then
1026    eval $ac_prev=\$ac_option
1027    ac_prev=
1028    continue
1029  fi
1030
1031  case $ac_option in
1032  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033  *)	ac_optarg=yes ;;
1034  esac
1035
1036  # Accept the important Cygnus configure options, so we can diagnose typos.
1037
1038  case $ac_dashdash$ac_option in
1039  --)
1040    ac_dashdash=yes ;;
1041
1042  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1043    ac_prev=bindir ;;
1044  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1045    bindir=$ac_optarg ;;
1046
1047  -build | --build | --buil | --bui | --bu)
1048    ac_prev=build_alias ;;
1049  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1050    build_alias=$ac_optarg ;;
1051
1052  -cache-file | --cache-file | --cache-fil | --cache-fi \
1053  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1054    ac_prev=cache_file ;;
1055  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1056  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1057    cache_file=$ac_optarg ;;
1058
1059  --config-cache | -C)
1060    cache_file=config.cache ;;
1061
1062  -datadir | --datadir | --datadi | --datad)
1063    ac_prev=datadir ;;
1064  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1065    datadir=$ac_optarg ;;
1066
1067  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1068  | --dataroo | --dataro | --datar)
1069    ac_prev=datarootdir ;;
1070  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1071  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1072    datarootdir=$ac_optarg ;;
1073
1074  -disable-* | --disable-*)
1075    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1076    # Reject names that are not valid shell variable names.
1077    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1079   { (exit 1); exit 1; }; }
1080    ac_useropt_orig=$ac_useropt
1081    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082    case $ac_user_opts in
1083      *"
1084"enable_$ac_useropt"
1085"*) ;;
1086      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1087	 ac_unrecognized_sep=', ';;
1088    esac
1089    eval enable_$ac_useropt=no ;;
1090
1091  -docdir | --docdir | --docdi | --doc | --do)
1092    ac_prev=docdir ;;
1093  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1094    docdir=$ac_optarg ;;
1095
1096  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1097    ac_prev=dvidir ;;
1098  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1099    dvidir=$ac_optarg ;;
1100
1101  -enable-* | --enable-*)
1102    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103    # Reject names that are not valid shell variable names.
1104    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1106   { (exit 1); exit 1; }; }
1107    ac_useropt_orig=$ac_useropt
1108    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109    case $ac_user_opts in
1110      *"
1111"enable_$ac_useropt"
1112"*) ;;
1113      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1114	 ac_unrecognized_sep=', ';;
1115    esac
1116    eval enable_$ac_useropt=\$ac_optarg ;;
1117
1118  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1119  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1120  | --exec | --exe | --ex)
1121    ac_prev=exec_prefix ;;
1122  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1123  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1124  | --exec=* | --exe=* | --ex=*)
1125    exec_prefix=$ac_optarg ;;
1126
1127  -gas | --gas | --ga | --g)
1128    # Obsolete; use --with-gas.
1129    with_gas=yes ;;
1130
1131  -help | --help | --hel | --he | -h)
1132    ac_init_help=long ;;
1133  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1134    ac_init_help=recursive ;;
1135  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1136    ac_init_help=short ;;
1137
1138  -host | --host | --hos | --ho)
1139    ac_prev=host_alias ;;
1140  -host=* | --host=* | --hos=* | --ho=*)
1141    host_alias=$ac_optarg ;;
1142
1143  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1144    ac_prev=htmldir ;;
1145  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1146  | --ht=*)
1147    htmldir=$ac_optarg ;;
1148
1149  -includedir | --includedir | --includedi | --included | --include \
1150  | --includ | --inclu | --incl | --inc)
1151    ac_prev=includedir ;;
1152  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1153  | --includ=* | --inclu=* | --incl=* | --inc=*)
1154    includedir=$ac_optarg ;;
1155
1156  -infodir | --infodir | --infodi | --infod | --info | --inf)
1157    ac_prev=infodir ;;
1158  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1159    infodir=$ac_optarg ;;
1160
1161  -libdir | --libdir | --libdi | --libd)
1162    ac_prev=libdir ;;
1163  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1164    libdir=$ac_optarg ;;
1165
1166  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1167  | --libexe | --libex | --libe)
1168    ac_prev=libexecdir ;;
1169  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1170  | --libexe=* | --libex=* | --libe=*)
1171    libexecdir=$ac_optarg ;;
1172
1173  -localedir | --localedir | --localedi | --localed | --locale)
1174    ac_prev=localedir ;;
1175  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1176    localedir=$ac_optarg ;;
1177
1178  -localstatedir | --localstatedir | --localstatedi | --localstated \
1179  | --localstate | --localstat | --localsta | --localst | --locals)
1180    ac_prev=localstatedir ;;
1181  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1182  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1183    localstatedir=$ac_optarg ;;
1184
1185  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1186    ac_prev=mandir ;;
1187  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1188    mandir=$ac_optarg ;;
1189
1190  -nfp | --nfp | --nf)
1191    # Obsolete; use --without-fp.
1192    with_fp=no ;;
1193
1194  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1195  | --no-cr | --no-c | -n)
1196    no_create=yes ;;
1197
1198  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1199  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1200    no_recursion=yes ;;
1201
1202  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1203  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1204  | --oldin | --oldi | --old | --ol | --o)
1205    ac_prev=oldincludedir ;;
1206  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1207  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1208  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1209    oldincludedir=$ac_optarg ;;
1210
1211  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1212    ac_prev=prefix ;;
1213  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1214    prefix=$ac_optarg ;;
1215
1216  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1217  | --program-pre | --program-pr | --program-p)
1218    ac_prev=program_prefix ;;
1219  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1220  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1221    program_prefix=$ac_optarg ;;
1222
1223  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1224  | --program-suf | --program-su | --program-s)
1225    ac_prev=program_suffix ;;
1226  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1227  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1228    program_suffix=$ac_optarg ;;
1229
1230  -program-transform-name | --program-transform-name \
1231  | --program-transform-nam | --program-transform-na \
1232  | --program-transform-n | --program-transform- \
1233  | --program-transform | --program-transfor \
1234  | --program-transfo | --program-transf \
1235  | --program-trans | --program-tran \
1236  | --progr-tra | --program-tr | --program-t)
1237    ac_prev=program_transform_name ;;
1238  -program-transform-name=* | --program-transform-name=* \
1239  | --program-transform-nam=* | --program-transform-na=* \
1240  | --program-transform-n=* | --program-transform-=* \
1241  | --program-transform=* | --program-transfor=* \
1242  | --program-transfo=* | --program-transf=* \
1243  | --program-trans=* | --program-tran=* \
1244  | --progr-tra=* | --program-tr=* | --program-t=*)
1245    program_transform_name=$ac_optarg ;;
1246
1247  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1248    ac_prev=pdfdir ;;
1249  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1250    pdfdir=$ac_optarg ;;
1251
1252  -psdir | --psdir | --psdi | --psd | --ps)
1253    ac_prev=psdir ;;
1254  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1255    psdir=$ac_optarg ;;
1256
1257  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258  | -silent | --silent | --silen | --sile | --sil)
1259    silent=yes ;;
1260
1261  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1262    ac_prev=sbindir ;;
1263  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1264  | --sbi=* | --sb=*)
1265    sbindir=$ac_optarg ;;
1266
1267  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1268  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1269  | --sharedst | --shareds | --shared | --share | --shar \
1270  | --sha | --sh)
1271    ac_prev=sharedstatedir ;;
1272  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1273  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1274  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1275  | --sha=* | --sh=*)
1276    sharedstatedir=$ac_optarg ;;
1277
1278  -site | --site | --sit)
1279    ac_prev=site ;;
1280  -site=* | --site=* | --sit=*)
1281    site=$ac_optarg ;;
1282
1283  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1284    ac_prev=srcdir ;;
1285  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1286    srcdir=$ac_optarg ;;
1287
1288  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1289  | --syscon | --sysco | --sysc | --sys | --sy)
1290    ac_prev=sysconfdir ;;
1291  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1292  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1293    sysconfdir=$ac_optarg ;;
1294
1295  -target | --target | --targe | --targ | --tar | --ta | --t)
1296    ac_prev=target_alias ;;
1297  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1298    target_alias=$ac_optarg ;;
1299
1300  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1301    verbose=yes ;;
1302
1303  -version | --version | --versio | --versi | --vers | -V)
1304    ac_init_version=: ;;
1305
1306  -with-* | --with-*)
1307    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1308    # Reject names that are not valid shell variable names.
1309    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1311   { (exit 1); exit 1; }; }
1312    ac_useropt_orig=$ac_useropt
1313    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314    case $ac_user_opts in
1315      *"
1316"with_$ac_useropt"
1317"*) ;;
1318      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1319	 ac_unrecognized_sep=', ';;
1320    esac
1321    eval with_$ac_useropt=\$ac_optarg ;;
1322
1323  -without-* | --without-*)
1324    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1325    # Reject names that are not valid shell variable names.
1326    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1327      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1328   { (exit 1); exit 1; }; }
1329    ac_useropt_orig=$ac_useropt
1330    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1331    case $ac_user_opts in
1332      *"
1333"with_$ac_useropt"
1334"*) ;;
1335      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1336	 ac_unrecognized_sep=', ';;
1337    esac
1338    eval with_$ac_useropt=no ;;
1339
1340  --x)
1341    # Obsolete; use --with-x.
1342    with_x=yes ;;
1343
1344  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1345  | --x-incl | --x-inc | --x-in | --x-i)
1346    ac_prev=x_includes ;;
1347  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1348  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1349    x_includes=$ac_optarg ;;
1350
1351  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1352  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1353    ac_prev=x_libraries ;;
1354  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1355  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1356    x_libraries=$ac_optarg ;;
1357
1358  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1359Try \`$0 --help' for more information." >&2
1360   { (exit 1); exit 1; }; }
1361    ;;
1362
1363  *=*)
1364    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1365    # Reject names that are not valid shell variable names.
1366    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1367      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1368   { (exit 1); exit 1; }; }
1369    eval $ac_envvar=\$ac_optarg
1370    export $ac_envvar ;;
1371
1372  *)
1373    # FIXME: should be removed in autoconf 3.0.
1374    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1375    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1376      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1377    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1378    ;;
1379
1380  esac
1381done
1382
1383if test -n "$ac_prev"; then
1384  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1385  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1386   { (exit 1); exit 1; }; }
1387fi
1388
1389if test -n "$ac_unrecognized_opts"; then
1390  case $enable_option_checking in
1391    no) ;;
1392    fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1393   { (exit 1); exit 1; }; } ;;
1394    *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1395  esac
1396fi
1397
1398# Check all directory arguments for consistency.
1399for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1400		datadir sysconfdir sharedstatedir localstatedir includedir \
1401		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1402		libdir localedir mandir
1403do
1404  eval ac_val=\$$ac_var
1405  # Remove trailing slashes.
1406  case $ac_val in
1407    */ )
1408      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1409      eval $ac_var=\$ac_val;;
1410  esac
1411  # Be sure to have absolute directory names.
1412  case $ac_val in
1413    [\\/$]* | ?:[\\/]* )  continue;;
1414    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1415  esac
1416  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1417   { (exit 1); exit 1; }; }
1418done
1419
1420# There might be people who depend on the old broken behavior: `$host'
1421# used to hold the argument of --host etc.
1422# FIXME: To remove some day.
1423build=$build_alias
1424host=$host_alias
1425target=$target_alias
1426
1427# FIXME: To remove some day.
1428if test "x$host_alias" != x; then
1429  if test "x$build_alias" = x; then
1430    cross_compiling=maybe
1431    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1432    If a cross compiler is detected then cross compile mode will be used." >&2
1433  elif test "x$build_alias" != "x$host_alias"; then
1434    cross_compiling=yes
1435  fi
1436fi
1437
1438ac_tool_prefix=
1439test -n "$host_alias" && ac_tool_prefix=$host_alias-
1440
1441test "$silent" = yes && exec 6>/dev/null
1442
1443
1444ac_pwd=`pwd` && test -n "$ac_pwd" &&
1445ac_ls_di=`ls -di .` &&
1446ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1447  { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1448   { (exit 1); exit 1; }; }
1449test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1450  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1451   { (exit 1); exit 1; }; }
1452
1453
1454# Find the source files, if location was not specified.
1455if test -z "$srcdir"; then
1456  ac_srcdir_defaulted=yes
1457  # Try the directory containing this script, then the parent directory.
1458  ac_confdir=`$as_dirname -- "$as_myself" ||
1459$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1460	 X"$as_myself" : 'X\(//\)[^/]' \| \
1461	 X"$as_myself" : 'X\(//\)$' \| \
1462	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1463$as_echo X"$as_myself" |
1464    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1465	    s//\1/
1466	    q
1467	  }
1468	  /^X\(\/\/\)[^/].*/{
1469	    s//\1/
1470	    q
1471	  }
1472	  /^X\(\/\/\)$/{
1473	    s//\1/
1474	    q
1475	  }
1476	  /^X\(\/\).*/{
1477	    s//\1/
1478	    q
1479	  }
1480	  s/.*/./; q'`
1481  srcdir=$ac_confdir
1482  if test ! -r "$srcdir/$ac_unique_file"; then
1483    srcdir=..
1484  fi
1485else
1486  ac_srcdir_defaulted=no
1487fi
1488if test ! -r "$srcdir/$ac_unique_file"; then
1489  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1490  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1491   { (exit 1); exit 1; }; }
1492fi
1493ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1494ac_abs_confdir=`(
1495	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1496   { (exit 1); exit 1; }; }
1497	pwd)`
1498# When building in place, set srcdir=.
1499if test "$ac_abs_confdir" = "$ac_pwd"; then
1500  srcdir=.
1501fi
1502# Remove unnecessary trailing slashes from srcdir.
1503# Double slashes in file names in object file debugging info
1504# mess up M-x gdb in Emacs.
1505case $srcdir in
1506*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1507esac
1508for ac_var in $ac_precious_vars; do
1509  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1510  eval ac_env_${ac_var}_value=\$${ac_var}
1511  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1512  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1513done
1514
1515#
1516# Report the --help message.
1517#
1518if test "$ac_init_help" = "long"; then
1519  # Omit some internal or obsolete options to make the list less imposing.
1520  # This message is too long to be a string in the A/UX 3.1 sh.
1521  cat <<_ACEOF
1522\`configure' configures xf86-video-sunffb 1.2.0 to adapt to many kinds of systems.
1523
1524Usage: $0 [OPTION]... [VAR=VALUE]...
1525
1526To assign environment variables (e.g., CC, CFLAGS...), specify them as
1527VAR=VALUE.  See below for descriptions of some of the useful variables.
1528
1529Defaults for the options are specified in brackets.
1530
1531Configuration:
1532  -h, --help              display this help and exit
1533      --help=short        display options specific to this package
1534      --help=recursive    display the short help of all the included packages
1535  -V, --version           display version information and exit
1536  -q, --quiet, --silent   do not print \`checking...' messages
1537      --cache-file=FILE   cache test results in FILE [disabled]
1538  -C, --config-cache      alias for \`--cache-file=config.cache'
1539  -n, --no-create         do not create output files
1540      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1541
1542Installation directories:
1543  --prefix=PREFIX         install architecture-independent files in PREFIX
1544                          [$ac_default_prefix]
1545  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1546                          [PREFIX]
1547
1548By default, \`make install' will install all the files in
1549\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1550an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1551for instance \`--prefix=\$HOME'.
1552
1553For better control, use the options below.
1554
1555Fine tuning of the installation directories:
1556  --bindir=DIR            user executables [EPREFIX/bin]
1557  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1558  --libexecdir=DIR        program executables [EPREFIX/libexec]
1559  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1560  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1561  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1562  --libdir=DIR            object code libraries [EPREFIX/lib]
1563  --includedir=DIR        C header files [PREFIX/include]
1564  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1565  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1566  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1567  --infodir=DIR           info documentation [DATAROOTDIR/info]
1568  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1569  --mandir=DIR            man documentation [DATAROOTDIR/man]
1570  --docdir=DIR            documentation root
1571                          [DATAROOTDIR/doc/xf86-video-sunffb]
1572  --htmldir=DIR           html documentation [DOCDIR]
1573  --dvidir=DIR            dvi documentation [DOCDIR]
1574  --pdfdir=DIR            pdf documentation [DOCDIR]
1575  --psdir=DIR             ps documentation [DOCDIR]
1576_ACEOF
1577
1578  cat <<\_ACEOF
1579
1580Program names:
1581  --program-prefix=PREFIX            prepend PREFIX to installed program names
1582  --program-suffix=SUFFIX            append SUFFIX to installed program names
1583  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1584
1585System types:
1586  --build=BUILD     configure for building on BUILD [guessed]
1587  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1588_ACEOF
1589fi
1590
1591if test -n "$ac_init_help"; then
1592  case $ac_init_help in
1593     short | recursive ) echo "Configuration of xf86-video-sunffb 1.2.0:";;
1594   esac
1595  cat <<\_ACEOF
1596
1597Optional Features:
1598  --disable-option-checking  ignore unrecognized --enable/--with options
1599  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1600  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1601  --enable-maintainer-mode  enable make rules and dependencies not useful
1602			  (and sometimes confusing) to the casual installer
1603  --enable-static[=PKGS]  build static libraries [default=no]
1604  --enable-shared[=PKGS]  build shared libraries [default=yes]
1605  --enable-fast-install[=PKGS]
1606                          optimize for fast installation [default=yes]
1607  --disable-dependency-tracking  speeds up one-time build
1608  --enable-dependency-tracking   do not reject slow dependency extractors
1609  --disable-libtool-lock  avoid locking (might break parallel builds)
1610  --disable-dri           Disable DRI support [default=auto]
1611
1612Optional Packages:
1613  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1614  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1615  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1616  --with-pic              try to use only PIC/non-PIC objects [default=use
1617                          both]
1618  --with-tags[=TAGS]      include additional configurations [automatic]
1619  --with-xorg-module-dir=DIR
1620                          Default xorg module directory
1621                          [default=$libdir/xorg/modules]
1622  --with-release-version=STRING
1623                          Use release version string in package name
1624
1625Some influential environment variables:
1626  CC          C compiler command
1627  CFLAGS      C compiler flags
1628  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1629              nonstandard directory <lib dir>
1630  LIBS        libraries to pass to the linker, e.g. -l<library>
1631  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1632              you have headers in a nonstandard directory <include dir>
1633  CPP         C preprocessor
1634  CXX         C++ compiler command
1635  CXXFLAGS    C++ compiler flags
1636  CXXCPP      C++ preprocessor
1637  F77         Fortran 77 compiler command
1638  FFLAGS      Fortran 77 compiler flags
1639  CCAS        assembler compiler command (defaults to CC)
1640  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1641  PKG_CONFIG  path to pkg-config utility
1642  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1643  XORG_LIBS   linker flags for XORG, overriding pkg-config
1644  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1645  DRI_LIBS    linker flags for DRI, overriding pkg-config
1646
1647Use these variables to override the choices made by `configure' or to help
1648it to find libraries and programs with nonstandard names/locations.
1649
1650Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1651_ACEOF
1652ac_status=$?
1653fi
1654
1655if test "$ac_init_help" = "recursive"; then
1656  # If there are subdirs, report their specific --help.
1657  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1658    test -d "$ac_dir" ||
1659      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1660      continue
1661    ac_builddir=.
1662
1663case "$ac_dir" in
1664.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1665*)
1666  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1667  # A ".." for each directory in $ac_dir_suffix.
1668  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1669  case $ac_top_builddir_sub in
1670  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1671  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1672  esac ;;
1673esac
1674ac_abs_top_builddir=$ac_pwd
1675ac_abs_builddir=$ac_pwd$ac_dir_suffix
1676# for backward compatibility:
1677ac_top_builddir=$ac_top_build_prefix
1678
1679case $srcdir in
1680  .)  # We are building in place.
1681    ac_srcdir=.
1682    ac_top_srcdir=$ac_top_builddir_sub
1683    ac_abs_top_srcdir=$ac_pwd ;;
1684  [\\/]* | ?:[\\/]* )  # Absolute name.
1685    ac_srcdir=$srcdir$ac_dir_suffix;
1686    ac_top_srcdir=$srcdir
1687    ac_abs_top_srcdir=$srcdir ;;
1688  *) # Relative name.
1689    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1690    ac_top_srcdir=$ac_top_build_prefix$srcdir
1691    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1692esac
1693ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1694
1695    cd "$ac_dir" || { ac_status=$?; continue; }
1696    # Check for guested configure.
1697    if test -f "$ac_srcdir/configure.gnu"; then
1698      echo &&
1699      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1700    elif test -f "$ac_srcdir/configure"; then
1701      echo &&
1702      $SHELL "$ac_srcdir/configure" --help=recursive
1703    else
1704      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1705    fi || ac_status=$?
1706    cd "$ac_pwd" || { ac_status=$?; break; }
1707  done
1708fi
1709
1710test -n "$ac_init_help" && exit $ac_status
1711if $ac_init_version; then
1712  cat <<\_ACEOF
1713xf86-video-sunffb configure 1.2.0
1714generated by GNU Autoconf 2.62
1715
1716Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17172002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1718This configure script is free software; the Free Software Foundation
1719gives unlimited permission to copy, distribute and modify it.
1720_ACEOF
1721  exit
1722fi
1723cat >config.log <<_ACEOF
1724This file contains any messages produced by compilers while
1725running configure, to aid debugging if configure makes a mistake.
1726
1727It was created by xf86-video-sunffb $as_me 1.2.0, which was
1728generated by GNU Autoconf 2.62.  Invocation command line was
1729
1730  $ $0 $@
1731
1732_ACEOF
1733exec 5>>config.log
1734{
1735cat <<_ASUNAME
1736## --------- ##
1737## Platform. ##
1738## --------- ##
1739
1740hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1741uname -m = `(uname -m) 2>/dev/null || echo unknown`
1742uname -r = `(uname -r) 2>/dev/null || echo unknown`
1743uname -s = `(uname -s) 2>/dev/null || echo unknown`
1744uname -v = `(uname -v) 2>/dev/null || echo unknown`
1745
1746/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1747/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1748
1749/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1750/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1751/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1752/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1753/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1754/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1755/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1756
1757_ASUNAME
1758
1759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760for as_dir in $PATH
1761do
1762  IFS=$as_save_IFS
1763  test -z "$as_dir" && as_dir=.
1764  $as_echo "PATH: $as_dir"
1765done
1766IFS=$as_save_IFS
1767
1768} >&5
1769
1770cat >&5 <<_ACEOF
1771
1772
1773## ----------- ##
1774## Core tests. ##
1775## ----------- ##
1776
1777_ACEOF
1778
1779
1780# Keep a trace of the command line.
1781# Strip out --no-create and --no-recursion so they do not pile up.
1782# Strip out --silent because we don't want to record it for future runs.
1783# Also quote any args containing shell meta-characters.
1784# Make two passes to allow for proper duplicate-argument suppression.
1785ac_configure_args=
1786ac_configure_args0=
1787ac_configure_args1=
1788ac_must_keep_next=false
1789for ac_pass in 1 2
1790do
1791  for ac_arg
1792  do
1793    case $ac_arg in
1794    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1795    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1796    | -silent | --silent | --silen | --sile | --sil)
1797      continue ;;
1798    *\'*)
1799      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1800    esac
1801    case $ac_pass in
1802    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1803    2)
1804      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1805      if test $ac_must_keep_next = true; then
1806	ac_must_keep_next=false # Got value, back to normal.
1807      else
1808	case $ac_arg in
1809	  *=* | --config-cache | -C | -disable-* | --disable-* \
1810	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1811	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1812	  | -with-* | --with-* | -without-* | --without-* | --x)
1813	    case "$ac_configure_args0 " in
1814	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1815	    esac
1816	    ;;
1817	  -* ) ac_must_keep_next=true ;;
1818	esac
1819      fi
1820      ac_configure_args="$ac_configure_args '$ac_arg'"
1821      ;;
1822    esac
1823  done
1824done
1825$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1826$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1827
1828# When interrupted or exit'd, cleanup temporary files, and complete
1829# config.log.  We remove comments because anyway the quotes in there
1830# would cause problems or look ugly.
1831# WARNING: Use '\'' to represent an apostrophe within the trap.
1832# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1833trap 'exit_status=$?
1834  # Save into config.log some information that might help in debugging.
1835  {
1836    echo
1837
1838    cat <<\_ASBOX
1839## ---------------- ##
1840## Cache variables. ##
1841## ---------------- ##
1842_ASBOX
1843    echo
1844    # The following way of writing the cache mishandles newlines in values,
1845(
1846  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1847    eval ac_val=\$$ac_var
1848    case $ac_val in #(
1849    *${as_nl}*)
1850      case $ac_var in #(
1851      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1852$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1853      esac
1854      case $ac_var in #(
1855      _ | IFS | as_nl) ;; #(
1856      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1857      *) $as_unset $ac_var ;;
1858      esac ;;
1859    esac
1860  done
1861  (set) 2>&1 |
1862    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1863    *${as_nl}ac_space=\ *)
1864      sed -n \
1865	"s/'\''/'\''\\\\'\'''\''/g;
1866	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1867      ;; #(
1868    *)
1869      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1870      ;;
1871    esac |
1872    sort
1873)
1874    echo
1875
1876    cat <<\_ASBOX
1877## ----------------- ##
1878## Output variables. ##
1879## ----------------- ##
1880_ASBOX
1881    echo
1882    for ac_var in $ac_subst_vars
1883    do
1884      eval ac_val=\$$ac_var
1885      case $ac_val in
1886      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1887      esac
1888      $as_echo "$ac_var='\''$ac_val'\''"
1889    done | sort
1890    echo
1891
1892    if test -n "$ac_subst_files"; then
1893      cat <<\_ASBOX
1894## ------------------- ##
1895## File substitutions. ##
1896## ------------------- ##
1897_ASBOX
1898      echo
1899      for ac_var in $ac_subst_files
1900      do
1901	eval ac_val=\$$ac_var
1902	case $ac_val in
1903	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1904	esac
1905	$as_echo "$ac_var='\''$ac_val'\''"
1906      done | sort
1907      echo
1908    fi
1909
1910    if test -s confdefs.h; then
1911      cat <<\_ASBOX
1912## ----------- ##
1913## confdefs.h. ##
1914## ----------- ##
1915_ASBOX
1916      echo
1917      cat confdefs.h
1918      echo
1919    fi
1920    test "$ac_signal" != 0 &&
1921      $as_echo "$as_me: caught signal $ac_signal"
1922    $as_echo "$as_me: exit $exit_status"
1923  } >&5
1924  rm -f core *.core core.conftest.* &&
1925    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1926    exit $exit_status
1927' 0
1928for ac_signal in 1 2 13 15; do
1929  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1930done
1931ac_signal=0
1932
1933# confdefs.h avoids OS command line length limits that DEFS can exceed.
1934rm -f -r conftest* confdefs.h
1935
1936# Predefined preprocessor variables.
1937
1938cat >>confdefs.h <<_ACEOF
1939#define PACKAGE_NAME "$PACKAGE_NAME"
1940_ACEOF
1941
1942
1943cat >>confdefs.h <<_ACEOF
1944#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1945_ACEOF
1946
1947
1948cat >>confdefs.h <<_ACEOF
1949#define PACKAGE_VERSION "$PACKAGE_VERSION"
1950_ACEOF
1951
1952
1953cat >>confdefs.h <<_ACEOF
1954#define PACKAGE_STRING "$PACKAGE_STRING"
1955_ACEOF
1956
1957
1958cat >>confdefs.h <<_ACEOF
1959#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1960_ACEOF
1961
1962
1963# Let the site file select an alternate cache file if it wants to.
1964# Prefer an explicitly selected file to automatically selected ones.
1965ac_site_file1=NONE
1966ac_site_file2=NONE
1967if test -n "$CONFIG_SITE"; then
1968  ac_site_file1=$CONFIG_SITE
1969elif test "x$prefix" != xNONE; then
1970  ac_site_file1=$prefix/share/config.site
1971  ac_site_file2=$prefix/etc/config.site
1972else
1973  ac_site_file1=$ac_default_prefix/share/config.site
1974  ac_site_file2=$ac_default_prefix/etc/config.site
1975fi
1976for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1977do
1978  test "x$ac_site_file" = xNONE && continue
1979  if test -r "$ac_site_file"; then
1980    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1981$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1982    sed 's/^/| /' "$ac_site_file" >&5
1983    . "$ac_site_file"
1984  fi
1985done
1986
1987if test -r "$cache_file"; then
1988  # Some versions of bash will fail to source /dev/null (special
1989  # files actually), so we avoid doing that.
1990  if test -f "$cache_file"; then
1991    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1992$as_echo "$as_me: loading cache $cache_file" >&6;}
1993    case $cache_file in
1994      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1995      *)                      . "./$cache_file";;
1996    esac
1997  fi
1998else
1999  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2000$as_echo "$as_me: creating cache $cache_file" >&6;}
2001  >$cache_file
2002fi
2003
2004# Check that the precious variables saved in the cache have kept the same
2005# value.
2006ac_cache_corrupted=false
2007for ac_var in $ac_precious_vars; do
2008  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2009  eval ac_new_set=\$ac_env_${ac_var}_set
2010  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2011  eval ac_new_val=\$ac_env_${ac_var}_value
2012  case $ac_old_set,$ac_new_set in
2013    set,)
2014      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2015$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2016      ac_cache_corrupted=: ;;
2017    ,set)
2018      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2019$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2020      ac_cache_corrupted=: ;;
2021    ,);;
2022    *)
2023      if test "x$ac_old_val" != "x$ac_new_val"; then
2024	# differences in whitespace do not lead to failure.
2025	ac_old_val_w=`echo x $ac_old_val`
2026	ac_new_val_w=`echo x $ac_new_val`
2027	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2028	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2029$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2030	  ac_cache_corrupted=:
2031	else
2032	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2033$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2034	  eval $ac_var=\$ac_old_val
2035	fi
2036	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2037$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2038	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2039$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2040      fi;;
2041  esac
2042  # Pass precious variables to config.status.
2043  if test "$ac_new_set" = set; then
2044    case $ac_new_val in
2045    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2046    *) ac_arg=$ac_var=$ac_new_val ;;
2047    esac
2048    case " $ac_configure_args " in
2049      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2050      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2051    esac
2052  fi
2053done
2054if $ac_cache_corrupted; then
2055  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2056$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2057  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2058$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2059   { (exit 1); exit 1; }; }
2060fi
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086ac_ext=c
2087ac_cpp='$CPP $CPPFLAGS'
2088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2090ac_compiler_gnu=$ac_cv_c_compiler_gnu
2091
2092
2093
2094
2095ac_config_headers="$ac_config_headers config.h"
2096
2097ac_aux_dir=
2098for ac_dir in . "$srcdir"/.; do
2099  if test -f "$ac_dir/install-sh"; then
2100    ac_aux_dir=$ac_dir
2101    ac_install_sh="$ac_aux_dir/install-sh -c"
2102    break
2103  elif test -f "$ac_dir/install.sh"; then
2104    ac_aux_dir=$ac_dir
2105    ac_install_sh="$ac_aux_dir/install.sh -c"
2106    break
2107  elif test -f "$ac_dir/shtool"; then
2108    ac_aux_dir=$ac_dir
2109    ac_install_sh="$ac_aux_dir/shtool install -c"
2110    break
2111  fi
2112done
2113if test -z "$ac_aux_dir"; then
2114  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2115$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2116   { (exit 1); exit 1; }; }
2117fi
2118
2119# These three variables are undocumented and unsupported,
2120# and are intended to be withdrawn in a future Autoconf release.
2121# They can cause serious problems if a builder's source tree is in a directory
2122# whose full name contains unusual characters.
2123ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2124ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2125ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2126
2127
2128
2129am__api_version='1.10'
2130
2131# Find a good install program.  We prefer a C program (faster),
2132# so one script is as good as another.  But avoid the broken or
2133# incompatible versions:
2134# SysV /etc/install, /usr/sbin/install
2135# SunOS /usr/etc/install
2136# IRIX /sbin/install
2137# AIX /bin/install
2138# AmigaOS /C/install, which installs bootblocks on floppy discs
2139# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2140# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2141# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2142# OS/2's system install, which has a completely different semantic
2143# ./install, which can be erroneously created by make from ./install.sh.
2144# Reject install programs that cannot install multiple files.
2145{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2146$as_echo_n "checking for a BSD-compatible install... " >&6; }
2147if test -z "$INSTALL"; then
2148if test "${ac_cv_path_install+set}" = set; then
2149  $as_echo_n "(cached) " >&6
2150else
2151  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152for as_dir in $PATH
2153do
2154  IFS=$as_save_IFS
2155  test -z "$as_dir" && as_dir=.
2156  # Account for people who put trailing slashes in PATH elements.
2157case $as_dir/ in
2158  ./ | .// | /cC/* | \
2159  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2160  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2161  /usr/ucb/* ) ;;
2162  *)
2163    # OSF1 and SCO ODT 3.0 have their own names for install.
2164    # Don't use installbsd from OSF since it installs stuff as root
2165    # by default.
2166    for ac_prog in ginstall scoinst install; do
2167      for ac_exec_ext in '' $ac_executable_extensions; do
2168	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2169	  if test $ac_prog = install &&
2170	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2171	    # AIX install.  It has an incompatible calling convention.
2172	    :
2173	  elif test $ac_prog = install &&
2174	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2175	    # program-specific install script used by HP pwplus--don't use.
2176	    :
2177	  else
2178	    rm -rf conftest.one conftest.two conftest.dir
2179	    echo one > conftest.one
2180	    echo two > conftest.two
2181	    mkdir conftest.dir
2182	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2183	      test -s conftest.one && test -s conftest.two &&
2184	      test -s conftest.dir/conftest.one &&
2185	      test -s conftest.dir/conftest.two
2186	    then
2187	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2188	      break 3
2189	    fi
2190	  fi
2191	fi
2192      done
2193    done
2194    ;;
2195esac
2196
2197done
2198IFS=$as_save_IFS
2199
2200rm -rf conftest.one conftest.two conftest.dir
2201
2202fi
2203  if test "${ac_cv_path_install+set}" = set; then
2204    INSTALL=$ac_cv_path_install
2205  else
2206    # As a last resort, use the slow shell script.  Don't cache a
2207    # value for INSTALL within a source directory, because that will
2208    # break other packages using the cache if that directory is
2209    # removed, or if the value is a relative name.
2210    INSTALL=$ac_install_sh
2211  fi
2212fi
2213{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2214$as_echo "$INSTALL" >&6; }
2215
2216# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2217# It thinks the first close brace ends the variable substitution.
2218test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2219
2220test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2221
2222test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2223
2224{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2225$as_echo_n "checking whether build environment is sane... " >&6; }
2226# Just in case
2227sleep 1
2228echo timestamp > conftest.file
2229# Do `set' in a subshell so we don't clobber the current shell's
2230# arguments.  Must try -L first in case configure is actually a
2231# symlink; some systems play weird games with the mod time of symlinks
2232# (eg FreeBSD returns the mod time of the symlink's containing
2233# directory).
2234if (
2235   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2236   if test "$*" = "X"; then
2237      # -L didn't work.
2238      set X `ls -t $srcdir/configure conftest.file`
2239   fi
2240   rm -f conftest.file
2241   if test "$*" != "X $srcdir/configure conftest.file" \
2242      && test "$*" != "X conftest.file $srcdir/configure"; then
2243
2244      # If neither matched, then we have a broken ls.  This can happen
2245      # if, for instance, CONFIG_SHELL is bash and it inherits a
2246      # broken ls alias from the environment.  This has actually
2247      # happened.  Such a system could not be considered "sane".
2248      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2249alias in your environment" >&5
2250$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2251alias in your environment" >&2;}
2252   { (exit 1); exit 1; }; }
2253   fi
2254
2255   test "$2" = conftest.file
2256   )
2257then
2258   # Ok.
2259   :
2260else
2261   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2262Check your system clock" >&5
2263$as_echo "$as_me: error: newly created file is older than distributed files!
2264Check your system clock" >&2;}
2265   { (exit 1); exit 1; }; }
2266fi
2267{ $as_echo "$as_me:$LINENO: result: yes" >&5
2268$as_echo "yes" >&6; }
2269test "$program_prefix" != NONE &&
2270  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2271# Use a double $ so make ignores it.
2272test "$program_suffix" != NONE &&
2273  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2274# Double any \ or $.
2275# By default was `s,x,x', remove it if useless.
2276ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2277program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2278
2279# expand $ac_aux_dir to an absolute path
2280am_aux_dir=`cd $ac_aux_dir && pwd`
2281
2282test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2283# Use eval to expand $SHELL
2284if eval "$MISSING --run true"; then
2285  am_missing_run="$MISSING --run "
2286else
2287  am_missing_run=
2288  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2289$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2290fi
2291
2292{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2293$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2294if test -z "$MKDIR_P"; then
2295  if test "${ac_cv_path_mkdir+set}" = set; then
2296  $as_echo_n "(cached) " >&6
2297else
2298  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2300do
2301  IFS=$as_save_IFS
2302  test -z "$as_dir" && as_dir=.
2303  for ac_prog in mkdir gmkdir; do
2304	 for ac_exec_ext in '' $ac_executable_extensions; do
2305	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2306	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2307	     'mkdir (GNU coreutils) '* | \
2308	     'mkdir (coreutils) '* | \
2309	     'mkdir (fileutils) '4.1*)
2310	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2311	       break 3;;
2312	   esac
2313	 done
2314       done
2315done
2316IFS=$as_save_IFS
2317
2318fi
2319
2320  if test "${ac_cv_path_mkdir+set}" = set; then
2321    MKDIR_P="$ac_cv_path_mkdir -p"
2322  else
2323    # As a last resort, use the slow shell script.  Don't cache a
2324    # value for MKDIR_P within a source directory, because that will
2325    # break other packages using the cache if that directory is
2326    # removed, or if the value is a relative name.
2327    test -d ./--version && rmdir ./--version
2328    MKDIR_P="$ac_install_sh -d"
2329  fi
2330fi
2331{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2332$as_echo "$MKDIR_P" >&6; }
2333
2334mkdir_p="$MKDIR_P"
2335case $mkdir_p in
2336  [\\/$]* | ?:[\\/]*) ;;
2337  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2338esac
2339
2340for ac_prog in gawk mawk nawk awk
2341do
2342  # Extract the first word of "$ac_prog", so it can be a program name with args.
2343set dummy $ac_prog; ac_word=$2
2344{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2345$as_echo_n "checking for $ac_word... " >&6; }
2346if test "${ac_cv_prog_AWK+set}" = set; then
2347  $as_echo_n "(cached) " >&6
2348else
2349  if test -n "$AWK"; then
2350  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2351else
2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353for as_dir in $PATH
2354do
2355  IFS=$as_save_IFS
2356  test -z "$as_dir" && as_dir=.
2357  for ac_exec_ext in '' $ac_executable_extensions; do
2358  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359    ac_cv_prog_AWK="$ac_prog"
2360    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361    break 2
2362  fi
2363done
2364done
2365IFS=$as_save_IFS
2366
2367fi
2368fi
2369AWK=$ac_cv_prog_AWK
2370if test -n "$AWK"; then
2371  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2372$as_echo "$AWK" >&6; }
2373else
2374  { $as_echo "$as_me:$LINENO: result: no" >&5
2375$as_echo "no" >&6; }
2376fi
2377
2378
2379  test -n "$AWK" && break
2380done
2381
2382{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2383$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2384set x ${MAKE-make}
2385ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2386if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2387  $as_echo_n "(cached) " >&6
2388else
2389  cat >conftest.make <<\_ACEOF
2390SHELL = /bin/sh
2391all:
2392	@echo '@@@%%%=$(MAKE)=@@@%%%'
2393_ACEOF
2394# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2395case `${MAKE-make} -f conftest.make 2>/dev/null` in
2396  *@@@%%%=?*=@@@%%%*)
2397    eval ac_cv_prog_make_${ac_make}_set=yes;;
2398  *)
2399    eval ac_cv_prog_make_${ac_make}_set=no;;
2400esac
2401rm -f conftest.make
2402fi
2403if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2404  { $as_echo "$as_me:$LINENO: result: yes" >&5
2405$as_echo "yes" >&6; }
2406  SET_MAKE=
2407else
2408  { $as_echo "$as_me:$LINENO: result: no" >&5
2409$as_echo "no" >&6; }
2410  SET_MAKE="MAKE=${MAKE-make}"
2411fi
2412
2413rm -rf .tst 2>/dev/null
2414mkdir .tst 2>/dev/null
2415if test -d .tst; then
2416  am__leading_dot=.
2417else
2418  am__leading_dot=_
2419fi
2420rmdir .tst 2>/dev/null
2421
2422if test "`cd $srcdir && pwd`" != "`pwd`"; then
2423  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2424  # is not polluted with repeated "-I."
2425  am__isrc=' -I$(srcdir)'
2426  # test to see if srcdir already configured
2427  if test -f $srcdir/config.status; then
2428    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2429$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2430   { (exit 1); exit 1; }; }
2431  fi
2432fi
2433
2434# test whether we have cygpath
2435if test -z "$CYGPATH_W"; then
2436  if (cygpath --version) >/dev/null 2>/dev/null; then
2437    CYGPATH_W='cygpath -w'
2438  else
2439    CYGPATH_W=echo
2440  fi
2441fi
2442
2443
2444# Define the identity of the package.
2445 PACKAGE='xf86-video-sunffb'
2446 VERSION='1.2.0'
2447
2448
2449cat >>confdefs.h <<_ACEOF
2450#define PACKAGE "$PACKAGE"
2451_ACEOF
2452
2453
2454cat >>confdefs.h <<_ACEOF
2455#define VERSION "$VERSION"
2456_ACEOF
2457
2458# Some tools Automake needs.
2459
2460ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2461
2462
2463AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2464
2465
2466AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2467
2468
2469AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2470
2471
2472MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2473
2474install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2475
2476# Installed binaries are usually stripped using `strip' when the user
2477# run `make install-strip'.  However `strip' might not be the right
2478# tool to use in cross-compilation environments, therefore Automake
2479# will honor the `STRIP' environment variable to overrule this program.
2480if test "$cross_compiling" != no; then
2481  if test -n "$ac_tool_prefix"; then
2482  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2483set dummy ${ac_tool_prefix}strip; ac_word=$2
2484{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2485$as_echo_n "checking for $ac_word... " >&6; }
2486if test "${ac_cv_prog_STRIP+set}" = set; then
2487  $as_echo_n "(cached) " >&6
2488else
2489  if test -n "$STRIP"; then
2490  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2491else
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495  IFS=$as_save_IFS
2496  test -z "$as_dir" && as_dir=.
2497  for ac_exec_ext in '' $ac_executable_extensions; do
2498  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2500    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501    break 2
2502  fi
2503done
2504done
2505IFS=$as_save_IFS
2506
2507fi
2508fi
2509STRIP=$ac_cv_prog_STRIP
2510if test -n "$STRIP"; then
2511  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2512$as_echo "$STRIP" >&6; }
2513else
2514  { $as_echo "$as_me:$LINENO: result: no" >&5
2515$as_echo "no" >&6; }
2516fi
2517
2518
2519fi
2520if test -z "$ac_cv_prog_STRIP"; then
2521  ac_ct_STRIP=$STRIP
2522  # Extract the first word of "strip", so it can be a program name with args.
2523set dummy strip; ac_word=$2
2524{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2525$as_echo_n "checking for $ac_word... " >&6; }
2526if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2527  $as_echo_n "(cached) " >&6
2528else
2529  if test -n "$ac_ct_STRIP"; then
2530  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2531else
2532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH
2534do
2535  IFS=$as_save_IFS
2536  test -z "$as_dir" && as_dir=.
2537  for ac_exec_ext in '' $ac_executable_extensions; do
2538  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2539    ac_cv_prog_ac_ct_STRIP="strip"
2540    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541    break 2
2542  fi
2543done
2544done
2545IFS=$as_save_IFS
2546
2547fi
2548fi
2549ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2550if test -n "$ac_ct_STRIP"; then
2551  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2552$as_echo "$ac_ct_STRIP" >&6; }
2553else
2554  { $as_echo "$as_me:$LINENO: result: no" >&5
2555$as_echo "no" >&6; }
2556fi
2557
2558  if test "x$ac_ct_STRIP" = x; then
2559    STRIP=":"
2560  else
2561    case $cross_compiling:$ac_tool_warned in
2562yes:)
2563{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2564whose name does not start with the host triplet.  If you think this
2565configuration is useful to you, please write to autoconf@gnu.org." >&5
2566$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2567whose name does not start with the host triplet.  If you think this
2568configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2569ac_tool_warned=yes ;;
2570esac
2571    STRIP=$ac_ct_STRIP
2572  fi
2573else
2574  STRIP="$ac_cv_prog_STRIP"
2575fi
2576
2577fi
2578INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2579
2580# We need awk for the "check" target.  The system "awk" is bad on
2581# some platforms.
2582# Always define AMTAR for backward compatibility.
2583
2584AMTAR=${AMTAR-"${am_missing_run}tar"}
2585
2586am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2587
2588
2589
2590
2591
2592
2593{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2594$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2595    # Check whether --enable-maintainer-mode was given.
2596if test "${enable_maintainer_mode+set}" = set; then
2597  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2598else
2599  USE_MAINTAINER_MODE=no
2600fi
2601
2602  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2603$as_echo "$USE_MAINTAINER_MODE" >&6; }
2604   if test $USE_MAINTAINER_MODE = yes; then
2605  MAINTAINER_MODE_TRUE=
2606  MAINTAINER_MODE_FALSE='#'
2607else
2608  MAINTAINER_MODE_TRUE='#'
2609  MAINTAINER_MODE_FALSE=
2610fi
2611
2612  MAINT=$MAINTAINER_MODE_TRUE
2613
2614
2615
2616# Checks for programs.
2617# Check whether --enable-static was given.
2618if test "${enable_static+set}" = set; then
2619  enableval=$enable_static; p=${PACKAGE-default}
2620    case $enableval in
2621    yes) enable_static=yes ;;
2622    no) enable_static=no ;;
2623    *)
2624     enable_static=no
2625      # Look at the argument we got.  We use all the common list separators.
2626      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2627      for pkg in $enableval; do
2628	IFS="$lt_save_ifs"
2629	if test "X$pkg" = "X$p"; then
2630	  enable_static=yes
2631	fi
2632      done
2633      IFS="$lt_save_ifs"
2634      ;;
2635    esac
2636else
2637  enable_static=no
2638fi
2639
2640
2641
2642# Check whether --enable-shared was given.
2643if test "${enable_shared+set}" = set; then
2644  enableval=$enable_shared; p=${PACKAGE-default}
2645    case $enableval in
2646    yes) enable_shared=yes ;;
2647    no) enable_shared=no ;;
2648    *)
2649      enable_shared=no
2650      # Look at the argument we got.  We use all the common list separators.
2651      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2652      for pkg in $enableval; do
2653	IFS="$lt_save_ifs"
2654	if test "X$pkg" = "X$p"; then
2655	  enable_shared=yes
2656	fi
2657      done
2658      IFS="$lt_save_ifs"
2659      ;;
2660    esac
2661else
2662  enable_shared=yes
2663fi
2664
2665
2666# Check whether --enable-fast-install was given.
2667if test "${enable_fast_install+set}" = set; then
2668  enableval=$enable_fast_install; p=${PACKAGE-default}
2669    case $enableval in
2670    yes) enable_fast_install=yes ;;
2671    no) enable_fast_install=no ;;
2672    *)
2673      enable_fast_install=no
2674      # Look at the argument we got.  We use all the common list separators.
2675      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2676      for pkg in $enableval; do
2677	IFS="$lt_save_ifs"
2678	if test "X$pkg" = "X$p"; then
2679	  enable_fast_install=yes
2680	fi
2681      done
2682      IFS="$lt_save_ifs"
2683      ;;
2684    esac
2685else
2686  enable_fast_install=yes
2687fi
2688
2689
2690# Make sure we can run config.sub.
2691$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2692  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2693$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2694   { (exit 1); exit 1; }; }
2695
2696{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2697$as_echo_n "checking build system type... " >&6; }
2698if test "${ac_cv_build+set}" = set; then
2699  $as_echo_n "(cached) " >&6
2700else
2701  ac_build_alias=$build_alias
2702test "x$ac_build_alias" = x &&
2703  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2704test "x$ac_build_alias" = x &&
2705  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2706$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2707   { (exit 1); exit 1; }; }
2708ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2709  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2710$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2711   { (exit 1); exit 1; }; }
2712
2713fi
2714{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2715$as_echo "$ac_cv_build" >&6; }
2716case $ac_cv_build in
2717*-*-*) ;;
2718*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2719$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2720   { (exit 1); exit 1; }; };;
2721esac
2722build=$ac_cv_build
2723ac_save_IFS=$IFS; IFS='-'
2724set x $ac_cv_build
2725shift
2726build_cpu=$1
2727build_vendor=$2
2728shift; shift
2729# Remember, the first character of IFS is used to create $*,
2730# except with old shells:
2731build_os=$*
2732IFS=$ac_save_IFS
2733case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2734
2735
2736{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2737$as_echo_n "checking host system type... " >&6; }
2738if test "${ac_cv_host+set}" = set; then
2739  $as_echo_n "(cached) " >&6
2740else
2741  if test "x$host_alias" = x; then
2742  ac_cv_host=$ac_cv_build
2743else
2744  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2745    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2746$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2747   { (exit 1); exit 1; }; }
2748fi
2749
2750fi
2751{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2752$as_echo "$ac_cv_host" >&6; }
2753case $ac_cv_host in
2754*-*-*) ;;
2755*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2756$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2757   { (exit 1); exit 1; }; };;
2758esac
2759host=$ac_cv_host
2760ac_save_IFS=$IFS; IFS='-'
2761set x $ac_cv_host
2762shift
2763host_cpu=$1
2764host_vendor=$2
2765shift; shift
2766# Remember, the first character of IFS is used to create $*,
2767# except with old shells:
2768host_os=$*
2769IFS=$ac_save_IFS
2770case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2771
2772
2773DEPDIR="${am__leading_dot}deps"
2774
2775ac_config_commands="$ac_config_commands depfiles"
2776
2777
2778am_make=${MAKE-make}
2779cat > confinc << 'END'
2780am__doit:
2781	@echo done
2782.PHONY: am__doit
2783END
2784# If we don't find an include directive, just comment out the code.
2785{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2786$as_echo_n "checking for style of include used by $am_make... " >&6; }
2787am__include="#"
2788am__quote=
2789_am_result=none
2790# First try GNU make style include.
2791echo "include confinc" > confmf
2792# We grep out `Entering directory' and `Leaving directory'
2793# messages which can occur if `w' ends up in MAKEFLAGS.
2794# In particular we don't look at `^make:' because GNU make might
2795# be invoked under some other name (usually "gmake"), in which
2796# case it prints its new name instead of `make'.
2797if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2798   am__include=include
2799   am__quote=
2800   _am_result=GNU
2801fi
2802# Now try BSD make style include.
2803if test "$am__include" = "#"; then
2804   echo '.include "confinc"' > confmf
2805   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2806      am__include=.include
2807      am__quote="\""
2808      _am_result=BSD
2809   fi
2810fi
2811
2812
2813{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2814$as_echo "$_am_result" >&6; }
2815rm -f confinc confmf
2816
2817# Check whether --enable-dependency-tracking was given.
2818if test "${enable_dependency_tracking+set}" = set; then
2819  enableval=$enable_dependency_tracking;
2820fi
2821
2822if test "x$enable_dependency_tracking" != xno; then
2823  am_depcomp="$ac_aux_dir/depcomp"
2824  AMDEPBACKSLASH='\'
2825fi
2826 if test "x$enable_dependency_tracking" != xno; then
2827  AMDEP_TRUE=
2828  AMDEP_FALSE='#'
2829else
2830  AMDEP_TRUE='#'
2831  AMDEP_FALSE=
2832fi
2833
2834
2835ac_ext=c
2836ac_cpp='$CPP $CPPFLAGS'
2837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2839ac_compiler_gnu=$ac_cv_c_compiler_gnu
2840if test -n "$ac_tool_prefix"; then
2841  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2842set dummy ${ac_tool_prefix}gcc; ac_word=$2
2843{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2844$as_echo_n "checking for $ac_word... " >&6; }
2845if test "${ac_cv_prog_CC+set}" = set; then
2846  $as_echo_n "(cached) " >&6
2847else
2848  if test -n "$CC"; then
2849  ac_cv_prog_CC="$CC" # Let the user override the test.
2850else
2851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH
2853do
2854  IFS=$as_save_IFS
2855  test -z "$as_dir" && as_dir=.
2856  for ac_exec_ext in '' $ac_executable_extensions; do
2857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2859    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860    break 2
2861  fi
2862done
2863done
2864IFS=$as_save_IFS
2865
2866fi
2867fi
2868CC=$ac_cv_prog_CC
2869if test -n "$CC"; then
2870  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2871$as_echo "$CC" >&6; }
2872else
2873  { $as_echo "$as_me:$LINENO: result: no" >&5
2874$as_echo "no" >&6; }
2875fi
2876
2877
2878fi
2879if test -z "$ac_cv_prog_CC"; then
2880  ac_ct_CC=$CC
2881  # Extract the first word of "gcc", so it can be a program name with args.
2882set dummy gcc; ac_word=$2
2883{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2884$as_echo_n "checking for $ac_word... " >&6; }
2885if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2886  $as_echo_n "(cached) " >&6
2887else
2888  if test -n "$ac_ct_CC"; then
2889  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2890else
2891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892for as_dir in $PATH
2893do
2894  IFS=$as_save_IFS
2895  test -z "$as_dir" && as_dir=.
2896  for ac_exec_ext in '' $ac_executable_extensions; do
2897  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898    ac_cv_prog_ac_ct_CC="gcc"
2899    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2900    break 2
2901  fi
2902done
2903done
2904IFS=$as_save_IFS
2905
2906fi
2907fi
2908ac_ct_CC=$ac_cv_prog_ac_ct_CC
2909if test -n "$ac_ct_CC"; then
2910  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2911$as_echo "$ac_ct_CC" >&6; }
2912else
2913  { $as_echo "$as_me:$LINENO: result: no" >&5
2914$as_echo "no" >&6; }
2915fi
2916
2917  if test "x$ac_ct_CC" = x; then
2918    CC=""
2919  else
2920    case $cross_compiling:$ac_tool_warned in
2921yes:)
2922{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2923whose name does not start with the host triplet.  If you think this
2924configuration is useful to you, please write to autoconf@gnu.org." >&5
2925$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2926whose name does not start with the host triplet.  If you think this
2927configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2928ac_tool_warned=yes ;;
2929esac
2930    CC=$ac_ct_CC
2931  fi
2932else
2933  CC="$ac_cv_prog_CC"
2934fi
2935
2936if test -z "$CC"; then
2937          if test -n "$ac_tool_prefix"; then
2938    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2939set dummy ${ac_tool_prefix}cc; ac_word=$2
2940{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2941$as_echo_n "checking for $ac_word... " >&6; }
2942if test "${ac_cv_prog_CC+set}" = set; then
2943  $as_echo_n "(cached) " >&6
2944else
2945  if test -n "$CC"; then
2946  ac_cv_prog_CC="$CC" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951  IFS=$as_save_IFS
2952  test -z "$as_dir" && as_dir=.
2953  for ac_exec_ext in '' $ac_executable_extensions; do
2954  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955    ac_cv_prog_CC="${ac_tool_prefix}cc"
2956    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957    break 2
2958  fi
2959done
2960done
2961IFS=$as_save_IFS
2962
2963fi
2964fi
2965CC=$ac_cv_prog_CC
2966if test -n "$CC"; then
2967  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2968$as_echo "$CC" >&6; }
2969else
2970  { $as_echo "$as_me:$LINENO: result: no" >&5
2971$as_echo "no" >&6; }
2972fi
2973
2974
2975  fi
2976fi
2977if test -z "$CC"; then
2978  # Extract the first word of "cc", so it can be a program name with args.
2979set dummy cc; ac_word=$2
2980{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2981$as_echo_n "checking for $ac_word... " >&6; }
2982if test "${ac_cv_prog_CC+set}" = set; then
2983  $as_echo_n "(cached) " >&6
2984else
2985  if test -n "$CC"; then
2986  ac_cv_prog_CC="$CC" # Let the user override the test.
2987else
2988  ac_prog_rejected=no
2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990for as_dir in $PATH
2991do
2992  IFS=$as_save_IFS
2993  test -z "$as_dir" && as_dir=.
2994  for ac_exec_ext in '' $ac_executable_extensions; do
2995  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2997       ac_prog_rejected=yes
2998       continue
2999     fi
3000    ac_cv_prog_CC="cc"
3001    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3002    break 2
3003  fi
3004done
3005done
3006IFS=$as_save_IFS
3007
3008if test $ac_prog_rejected = yes; then
3009  # We found a bogon in the path, so make sure we never use it.
3010  set dummy $ac_cv_prog_CC
3011  shift
3012  if test $# != 0; then
3013    # We chose a different compiler from the bogus one.
3014    # However, it has the same basename, so the bogon will be chosen
3015    # first if we set CC to just the basename; use the full file name.
3016    shift
3017    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3018  fi
3019fi
3020fi
3021fi
3022CC=$ac_cv_prog_CC
3023if test -n "$CC"; then
3024  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3025$as_echo "$CC" >&6; }
3026else
3027  { $as_echo "$as_me:$LINENO: result: no" >&5
3028$as_echo "no" >&6; }
3029fi
3030
3031
3032fi
3033if test -z "$CC"; then
3034  if test -n "$ac_tool_prefix"; then
3035  for ac_prog in cl.exe
3036  do
3037    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3038set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3039{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3040$as_echo_n "checking for $ac_word... " >&6; }
3041if test "${ac_cv_prog_CC+set}" = set; then
3042  $as_echo_n "(cached) " >&6
3043else
3044  if test -n "$CC"; then
3045  ac_cv_prog_CC="$CC" # Let the user override the test.
3046else
3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH
3049do
3050  IFS=$as_save_IFS
3051  test -z "$as_dir" && as_dir=.
3052  for ac_exec_ext in '' $ac_executable_extensions; do
3053  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3055    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056    break 2
3057  fi
3058done
3059done
3060IFS=$as_save_IFS
3061
3062fi
3063fi
3064CC=$ac_cv_prog_CC
3065if test -n "$CC"; then
3066  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3067$as_echo "$CC" >&6; }
3068else
3069  { $as_echo "$as_me:$LINENO: result: no" >&5
3070$as_echo "no" >&6; }
3071fi
3072
3073
3074    test -n "$CC" && break
3075  done
3076fi
3077if test -z "$CC"; then
3078  ac_ct_CC=$CC
3079  for ac_prog in cl.exe
3080do
3081  # Extract the first word of "$ac_prog", so it can be a program name with args.
3082set dummy $ac_prog; ac_word=$2
3083{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3084$as_echo_n "checking for $ac_word... " >&6; }
3085if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3086  $as_echo_n "(cached) " >&6
3087else
3088  if test -n "$ac_ct_CC"; then
3089  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3090else
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094  IFS=$as_save_IFS
3095  test -z "$as_dir" && as_dir=.
3096  for ac_exec_ext in '' $ac_executable_extensions; do
3097  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098    ac_cv_prog_ac_ct_CC="$ac_prog"
3099    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100    break 2
3101  fi
3102done
3103done
3104IFS=$as_save_IFS
3105
3106fi
3107fi
3108ac_ct_CC=$ac_cv_prog_ac_ct_CC
3109if test -n "$ac_ct_CC"; then
3110  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3111$as_echo "$ac_ct_CC" >&6; }
3112else
3113  { $as_echo "$as_me:$LINENO: result: no" >&5
3114$as_echo "no" >&6; }
3115fi
3116
3117
3118  test -n "$ac_ct_CC" && break
3119done
3120
3121  if test "x$ac_ct_CC" = x; then
3122    CC=""
3123  else
3124    case $cross_compiling:$ac_tool_warned in
3125yes:)
3126{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3127whose name does not start with the host triplet.  If you think this
3128configuration is useful to you, please write to autoconf@gnu.org." >&5
3129$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3130whose name does not start with the host triplet.  If you think this
3131configuration is useful to you, please write to autoconf@gnu.org." >&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: no acceptable C compiler found in \$PATH
3142See \`config.log' for more details." >&5
3143$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3144See \`config.log' for more details." >&2;}
3145   { (exit 1); exit 1; }; }
3146
3147# Provide some information about the compiler.
3148$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3149set X $ac_compile
3150ac_compiler=$2
3151{ (ac_try="$ac_compiler --version >&5"
3152case "(($ac_try" in
3153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154  *) ac_try_echo=$ac_try;;
3155esac
3156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3157$as_echo "$ac_try_echo") >&5
3158  (eval "$ac_compiler --version >&5") 2>&5
3159  ac_status=$?
3160  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); }
3162{ (ac_try="$ac_compiler -v >&5"
3163case "(($ac_try" in
3164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165  *) ac_try_echo=$ac_try;;
3166esac
3167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3168$as_echo "$ac_try_echo") >&5
3169  (eval "$ac_compiler -v >&5") 2>&5
3170  ac_status=$?
3171  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172  (exit $ac_status); }
3173{ (ac_try="$ac_compiler -V >&5"
3174case "(($ac_try" in
3175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176  *) ac_try_echo=$ac_try;;
3177esac
3178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3179$as_echo "$ac_try_echo") >&5
3180  (eval "$ac_compiler -V >&5") 2>&5
3181  ac_status=$?
3182  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183  (exit $ac_status); }
3184
3185cat >conftest.$ac_ext <<_ACEOF
3186/* confdefs.h.  */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h.  */
3191
3192int
3193main ()
3194{
3195
3196  ;
3197  return 0;
3198}
3199_ACEOF
3200ac_clean_files_save=$ac_clean_files
3201ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3202# Try to create an executable without -o first, disregard a.out.
3203# It will help us diagnose broken compilers, and finding out an intuition
3204# of exeext.
3205{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3206$as_echo_n "checking for C compiler default output file name... " >&6; }
3207ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3208
3209# The possible output files:
3210ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3211
3212ac_rmfiles=
3213for ac_file in $ac_files
3214do
3215  case $ac_file in
3216    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3217    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3218  esac
3219done
3220rm -f $ac_rmfiles
3221
3222if { (ac_try="$ac_link_default"
3223case "(($ac_try" in
3224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225  *) ac_try_echo=$ac_try;;
3226esac
3227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3228$as_echo "$ac_try_echo") >&5
3229  (eval "$ac_link_default") 2>&5
3230  ac_status=$?
3231  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232  (exit $ac_status); }; then
3233  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3234# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3235# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3236# so that the user can short-circuit this test for compilers unknown to
3237# Autoconf.
3238for ac_file in $ac_files ''
3239do
3240  test -f "$ac_file" || continue
3241  case $ac_file in
3242    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3243	;;
3244    [ab].out )
3245	# We found the default executable, but exeext='' is most
3246	# certainly right.
3247	break;;
3248    *.* )
3249        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3250	then :; else
3251	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3252	fi
3253	# We set ac_cv_exeext here because the later test for it is not
3254	# safe: cross compilers may not add the suffix if given an `-o'
3255	# argument, so we may need to know it at that point already.
3256	# Even if this section looks crufty: it has the advantage of
3257	# actually working.
3258	break;;
3259    * )
3260	break;;
3261  esac
3262done
3263test "$ac_cv_exeext" = no && ac_cv_exeext=
3264
3265else
3266  ac_file=''
3267fi
3268
3269{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3270$as_echo "$ac_file" >&6; }
3271if test -z "$ac_file"; then
3272  $as_echo "$as_me: failed program was:" >&5
3273sed 's/^/| /' conftest.$ac_ext >&5
3274
3275{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3276See \`config.log' for more details." >&5
3277$as_echo "$as_me: error: C compiler cannot create executables
3278See \`config.log' for more details." >&2;}
3279   { (exit 77); exit 77; }; }
3280fi
3281
3282ac_exeext=$ac_cv_exeext
3283
3284# Check that the compiler produces executables we can run.  If not, either
3285# the compiler is broken, or we cross compile.
3286{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3287$as_echo_n "checking whether the C compiler works... " >&6; }
3288# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3289# If not cross compiling, check that we can run a simple program.
3290if test "$cross_compiling" != yes; then
3291  if { ac_try='./$ac_file'
3292  { (case "(($ac_try" in
3293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294  *) ac_try_echo=$ac_try;;
3295esac
3296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3297$as_echo "$ac_try_echo") >&5
3298  (eval "$ac_try") 2>&5
3299  ac_status=$?
3300  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301  (exit $ac_status); }; }; then
3302    cross_compiling=no
3303  else
3304    if test "$cross_compiling" = maybe; then
3305	cross_compiling=yes
3306    else
3307	{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3308If you meant to cross compile, use \`--host'.
3309See \`config.log' for more details." >&5
3310$as_echo "$as_me: error: cannot run C compiled programs.
3311If you meant to cross compile, use \`--host'.
3312See \`config.log' for more details." >&2;}
3313   { (exit 1); exit 1; }; }
3314    fi
3315  fi
3316fi
3317{ $as_echo "$as_me:$LINENO: result: yes" >&5
3318$as_echo "yes" >&6; }
3319
3320rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3321ac_clean_files=$ac_clean_files_save
3322# Check that the compiler produces executables we can run.  If not, either
3323# the compiler is broken, or we cross compile.
3324{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3325$as_echo_n "checking whether we are cross compiling... " >&6; }
3326{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3327$as_echo "$cross_compiling" >&6; }
3328
3329{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3330$as_echo_n "checking for suffix of executables... " >&6; }
3331if { (ac_try="$ac_link"
3332case "(($ac_try" in
3333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334  *) ac_try_echo=$ac_try;;
3335esac
3336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3337$as_echo "$ac_try_echo") >&5
3338  (eval "$ac_link") 2>&5
3339  ac_status=$?
3340  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341  (exit $ac_status); }; then
3342  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3343# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3344# work properly (i.e., refer to `conftest.exe'), while it won't with
3345# `rm'.
3346for ac_file in conftest.exe conftest conftest.*; do
3347  test -f "$ac_file" || continue
3348  case $ac_file in
3349    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3350    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3351	  break;;
3352    * ) break;;
3353  esac
3354done
3355else
3356  { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3357See \`config.log' for more details." >&5
3358$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3359See \`config.log' for more details." >&2;}
3360   { (exit 1); exit 1; }; }
3361fi
3362
3363rm -f conftest$ac_cv_exeext
3364{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3365$as_echo "$ac_cv_exeext" >&6; }
3366
3367rm -f conftest.$ac_ext
3368EXEEXT=$ac_cv_exeext
3369ac_exeext=$EXEEXT
3370{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3371$as_echo_n "checking for suffix of object files... " >&6; }
3372if test "${ac_cv_objext+set}" = set; then
3373  $as_echo_n "(cached) " >&6
3374else
3375  cat >conftest.$ac_ext <<_ACEOF
3376/* confdefs.h.  */
3377_ACEOF
3378cat confdefs.h >>conftest.$ac_ext
3379cat >>conftest.$ac_ext <<_ACEOF
3380/* end confdefs.h.  */
3381
3382int
3383main ()
3384{
3385
3386  ;
3387  return 0;
3388}
3389_ACEOF
3390rm -f conftest.o conftest.obj
3391if { (ac_try="$ac_compile"
3392case "(($ac_try" in
3393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394  *) ac_try_echo=$ac_try;;
3395esac
3396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3397$as_echo "$ac_try_echo") >&5
3398  (eval "$ac_compile") 2>&5
3399  ac_status=$?
3400  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }; then
3402  for ac_file in conftest.o conftest.obj conftest.*; do
3403  test -f "$ac_file" || continue;
3404  case $ac_file in
3405    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3406    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3407       break;;
3408  esac
3409done
3410else
3411  $as_echo "$as_me: failed program was:" >&5
3412sed 's/^/| /' conftest.$ac_ext >&5
3413
3414{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3415See \`config.log' for more details." >&5
3416$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3417See \`config.log' for more details." >&2;}
3418   { (exit 1); exit 1; }; }
3419fi
3420
3421rm -f conftest.$ac_cv_objext conftest.$ac_ext
3422fi
3423{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3424$as_echo "$ac_cv_objext" >&6; }
3425OBJEXT=$ac_cv_objext
3426ac_objext=$OBJEXT
3427{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3428$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3429if test "${ac_cv_c_compiler_gnu+set}" = set; then
3430  $as_echo_n "(cached) " >&6
3431else
3432  cat >conftest.$ac_ext <<_ACEOF
3433/* confdefs.h.  */
3434_ACEOF
3435cat confdefs.h >>conftest.$ac_ext
3436cat >>conftest.$ac_ext <<_ACEOF
3437/* end confdefs.h.  */
3438
3439int
3440main ()
3441{
3442#ifndef __GNUC__
3443       choke me
3444#endif
3445
3446  ;
3447  return 0;
3448}
3449_ACEOF
3450rm -f conftest.$ac_objext
3451if { (ac_try="$ac_compile"
3452case "(($ac_try" in
3453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454  *) ac_try_echo=$ac_try;;
3455esac
3456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3457$as_echo "$ac_try_echo") >&5
3458  (eval "$ac_compile") 2>conftest.er1
3459  ac_status=$?
3460  grep -v '^ *+' conftest.er1 >conftest.err
3461  rm -f conftest.er1
3462  cat conftest.err >&5
3463  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464  (exit $ac_status); } && {
3465	 test -z "$ac_c_werror_flag" ||
3466	 test ! -s conftest.err
3467       } && test -s conftest.$ac_objext; then
3468  ac_compiler_gnu=yes
3469else
3470  $as_echo "$as_me: failed program was:" >&5
3471sed 's/^/| /' conftest.$ac_ext >&5
3472
3473	ac_compiler_gnu=no
3474fi
3475
3476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477ac_cv_c_compiler_gnu=$ac_compiler_gnu
3478
3479fi
3480{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3481$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3482if test $ac_compiler_gnu = yes; then
3483  GCC=yes
3484else
3485  GCC=
3486fi
3487ac_test_CFLAGS=${CFLAGS+set}
3488ac_save_CFLAGS=$CFLAGS
3489{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3490$as_echo_n "checking whether $CC accepts -g... " >&6; }
3491if test "${ac_cv_prog_cc_g+set}" = set; then
3492  $as_echo_n "(cached) " >&6
3493else
3494  ac_save_c_werror_flag=$ac_c_werror_flag
3495   ac_c_werror_flag=yes
3496   ac_cv_prog_cc_g=no
3497   CFLAGS="-g"
3498   cat >conftest.$ac_ext <<_ACEOF
3499/* confdefs.h.  */
3500_ACEOF
3501cat confdefs.h >>conftest.$ac_ext
3502cat >>conftest.$ac_ext <<_ACEOF
3503/* end confdefs.h.  */
3504
3505int
3506main ()
3507{
3508
3509  ;
3510  return 0;
3511}
3512_ACEOF
3513rm -f conftest.$ac_objext
3514if { (ac_try="$ac_compile"
3515case "(($ac_try" in
3516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517  *) ac_try_echo=$ac_try;;
3518esac
3519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3520$as_echo "$ac_try_echo") >&5
3521  (eval "$ac_compile") 2>conftest.er1
3522  ac_status=$?
3523  grep -v '^ *+' conftest.er1 >conftest.err
3524  rm -f conftest.er1
3525  cat conftest.err >&5
3526  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527  (exit $ac_status); } && {
3528	 test -z "$ac_c_werror_flag" ||
3529	 test ! -s conftest.err
3530       } && test -s conftest.$ac_objext; then
3531  ac_cv_prog_cc_g=yes
3532else
3533  $as_echo "$as_me: failed program was:" >&5
3534sed 's/^/| /' conftest.$ac_ext >&5
3535
3536	CFLAGS=""
3537      cat >conftest.$ac_ext <<_ACEOF
3538/* confdefs.h.  */
3539_ACEOF
3540cat confdefs.h >>conftest.$ac_ext
3541cat >>conftest.$ac_ext <<_ACEOF
3542/* end confdefs.h.  */
3543
3544int
3545main ()
3546{
3547
3548  ;
3549  return 0;
3550}
3551_ACEOF
3552rm -f conftest.$ac_objext
3553if { (ac_try="$ac_compile"
3554case "(($ac_try" in
3555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556  *) ac_try_echo=$ac_try;;
3557esac
3558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3559$as_echo "$ac_try_echo") >&5
3560  (eval "$ac_compile") 2>conftest.er1
3561  ac_status=$?
3562  grep -v '^ *+' conftest.er1 >conftest.err
3563  rm -f conftest.er1
3564  cat conftest.err >&5
3565  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566  (exit $ac_status); } && {
3567	 test -z "$ac_c_werror_flag" ||
3568	 test ! -s conftest.err
3569       } && test -s conftest.$ac_objext; then
3570  :
3571else
3572  $as_echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575	ac_c_werror_flag=$ac_save_c_werror_flag
3576	 CFLAGS="-g"
3577	 cat >conftest.$ac_ext <<_ACEOF
3578/* confdefs.h.  */
3579_ACEOF
3580cat confdefs.h >>conftest.$ac_ext
3581cat >>conftest.$ac_ext <<_ACEOF
3582/* end confdefs.h.  */
3583
3584int
3585main ()
3586{
3587
3588  ;
3589  return 0;
3590}
3591_ACEOF
3592rm -f conftest.$ac_objext
3593if { (ac_try="$ac_compile"
3594case "(($ac_try" in
3595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596  *) ac_try_echo=$ac_try;;
3597esac
3598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3599$as_echo "$ac_try_echo") >&5
3600  (eval "$ac_compile") 2>conftest.er1
3601  ac_status=$?
3602  grep -v '^ *+' conftest.er1 >conftest.err
3603  rm -f conftest.er1
3604  cat conftest.err >&5
3605  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606  (exit $ac_status); } && {
3607	 test -z "$ac_c_werror_flag" ||
3608	 test ! -s conftest.err
3609       } && test -s conftest.$ac_objext; then
3610  ac_cv_prog_cc_g=yes
3611else
3612  $as_echo "$as_me: failed program was:" >&5
3613sed 's/^/| /' conftest.$ac_ext >&5
3614
3615
3616fi
3617
3618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619fi
3620
3621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622fi
3623
3624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625   ac_c_werror_flag=$ac_save_c_werror_flag
3626fi
3627{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3628$as_echo "$ac_cv_prog_cc_g" >&6; }
3629if test "$ac_test_CFLAGS" = set; then
3630  CFLAGS=$ac_save_CFLAGS
3631elif test $ac_cv_prog_cc_g = yes; then
3632  if test "$GCC" = yes; then
3633    CFLAGS="-g -O2"
3634  else
3635    CFLAGS="-g"
3636  fi
3637else
3638  if test "$GCC" = yes; then
3639    CFLAGS="-O2"
3640  else
3641    CFLAGS=
3642  fi
3643fi
3644{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3645$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3646if test "${ac_cv_prog_cc_c89+set}" = set; then
3647  $as_echo_n "(cached) " >&6
3648else
3649  ac_cv_prog_cc_c89=no
3650ac_save_CC=$CC
3651cat >conftest.$ac_ext <<_ACEOF
3652/* confdefs.h.  */
3653_ACEOF
3654cat confdefs.h >>conftest.$ac_ext
3655cat >>conftest.$ac_ext <<_ACEOF
3656/* end confdefs.h.  */
3657#include <stdarg.h>
3658#include <stdio.h>
3659#include <sys/types.h>
3660#include <sys/stat.h>
3661/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3662struct buf { int x; };
3663FILE * (*rcsopen) (struct buf *, struct stat *, int);
3664static char *e (p, i)
3665     char **p;
3666     int i;
3667{
3668  return p[i];
3669}
3670static char *f (char * (*g) (char **, int), char **p, ...)
3671{
3672  char *s;
3673  va_list v;
3674  va_start (v,p);
3675  s = g (p, va_arg (v,int));
3676  va_end (v);
3677  return s;
3678}
3679
3680/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3681   function prototypes and stuff, but not '\xHH' hex character constants.
3682   These don't provoke an error unfortunately, instead are silently treated
3683   as 'x'.  The following induces an error, until -std is added to get
3684   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3685   array size at least.  It's necessary to write '\x00'==0 to get something
3686   that's true only with -std.  */
3687int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3688
3689/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3690   inside strings and character constants.  */
3691#define FOO(x) 'x'
3692int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3693
3694int test (int i, double x);
3695struct s1 {int (*f) (int a);};
3696struct s2 {int (*f) (double a);};
3697int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3698int argc;
3699char **argv;
3700int
3701main ()
3702{
3703return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3704  ;
3705  return 0;
3706}
3707_ACEOF
3708for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3709	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3710do
3711  CC="$ac_save_CC $ac_arg"
3712  rm -f conftest.$ac_objext
3713if { (ac_try="$ac_compile"
3714case "(($ac_try" in
3715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716  *) ac_try_echo=$ac_try;;
3717esac
3718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3719$as_echo "$ac_try_echo") >&5
3720  (eval "$ac_compile") 2>conftest.er1
3721  ac_status=$?
3722  grep -v '^ *+' conftest.er1 >conftest.err
3723  rm -f conftest.er1
3724  cat conftest.err >&5
3725  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726  (exit $ac_status); } && {
3727	 test -z "$ac_c_werror_flag" ||
3728	 test ! -s conftest.err
3729       } && test -s conftest.$ac_objext; then
3730  ac_cv_prog_cc_c89=$ac_arg
3731else
3732  $as_echo "$as_me: failed program was:" >&5
3733sed 's/^/| /' conftest.$ac_ext >&5
3734
3735
3736fi
3737
3738rm -f core conftest.err conftest.$ac_objext
3739  test "x$ac_cv_prog_cc_c89" != "xno" && break
3740done
3741rm -f conftest.$ac_ext
3742CC=$ac_save_CC
3743
3744fi
3745# AC_CACHE_VAL
3746case "x$ac_cv_prog_cc_c89" in
3747  x)
3748    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3749$as_echo "none needed" >&6; } ;;
3750  xno)
3751    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3752$as_echo "unsupported" >&6; } ;;
3753  *)
3754    CC="$CC $ac_cv_prog_cc_c89"
3755    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3756$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3757esac
3758
3759
3760ac_ext=c
3761ac_cpp='$CPP $CPPFLAGS'
3762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765
3766depcc="$CC"   am_compiler_list=
3767
3768{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3769$as_echo_n "checking dependency style of $depcc... " >&6; }
3770if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3771  $as_echo_n "(cached) " >&6
3772else
3773  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3774  # We make a subdir and do the tests there.  Otherwise we can end up
3775  # making bogus files that we don't know about and never remove.  For
3776  # instance it was reported that on HP-UX the gcc test will end up
3777  # making a dummy file named `D' -- because `-MD' means `put the output
3778  # in D'.
3779  mkdir conftest.dir
3780  # Copy depcomp to subdir because otherwise we won't find it if we're
3781  # using a relative directory.
3782  cp "$am_depcomp" conftest.dir
3783  cd conftest.dir
3784  # We will build objects and dependencies in a subdirectory because
3785  # it helps to detect inapplicable dependency modes.  For instance
3786  # both Tru64's cc and ICC support -MD to output dependencies as a
3787  # side effect of compilation, but ICC will put the dependencies in
3788  # the current directory while Tru64 will put them in the object
3789  # directory.
3790  mkdir sub
3791
3792  am_cv_CC_dependencies_compiler_type=none
3793  if test "$am_compiler_list" = ""; then
3794     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3795  fi
3796  for depmode in $am_compiler_list; do
3797    # Setup a source with many dependencies, because some compilers
3798    # like to wrap large dependency lists on column 80 (with \), and
3799    # we should not choose a depcomp mode which is confused by this.
3800    #
3801    # We need to recreate these files for each test, as the compiler may
3802    # overwrite some of them when testing with obscure command lines.
3803    # This happens at least with the AIX C compiler.
3804    : > sub/conftest.c
3805    for i in 1 2 3 4 5 6; do
3806      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3807      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3808      # Solaris 8's {/usr,}/bin/sh.
3809      touch sub/conftst$i.h
3810    done
3811    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3812
3813    case $depmode in
3814    nosideeffect)
3815      # after this tag, mechanisms are not by side-effect, so they'll
3816      # only be used when explicitly requested
3817      if test "x$enable_dependency_tracking" = xyes; then
3818	continue
3819      else
3820	break
3821      fi
3822      ;;
3823    none) break ;;
3824    esac
3825    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3826    # mode.  It turns out that the SunPro C++ compiler does not properly
3827    # handle `-M -o', and we need to detect this.
3828    if depmode=$depmode \
3829       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3830       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3831       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3832         >/dev/null 2>conftest.err &&
3833       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3834       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3835       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3836       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3837      # icc doesn't choke on unknown options, it will just issue warnings
3838      # or remarks (even with -Werror).  So we grep stderr for any message
3839      # that says an option was ignored or not supported.
3840      # When given -MP, icc 7.0 and 7.1 complain thusly:
3841      #   icc: Command line warning: ignoring option '-M'; no argument required
3842      # The diagnosis changed in icc 8.0:
3843      #   icc: Command line remark: option '-MP' not supported
3844      if (grep 'ignoring option' conftest.err ||
3845          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3846        am_cv_CC_dependencies_compiler_type=$depmode
3847        break
3848      fi
3849    fi
3850  done
3851
3852  cd ..
3853  rm -rf conftest.dir
3854else
3855  am_cv_CC_dependencies_compiler_type=none
3856fi
3857
3858fi
3859{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3860$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3861CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3862
3863 if
3864  test "x$enable_dependency_tracking" != xno \
3865  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3866  am__fastdepCC_TRUE=
3867  am__fastdepCC_FALSE='#'
3868else
3869  am__fastdepCC_TRUE='#'
3870  am__fastdepCC_FALSE=
3871fi
3872
3873
3874{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3875$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3876if test "${lt_cv_path_SED+set}" = set; then
3877  $as_echo_n "(cached) " >&6
3878else
3879  # Loop through the user's path and test for sed and gsed.
3880# Then use that list of sed's as ones to test for truncation.
3881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882for as_dir in $PATH
3883do
3884  IFS=$as_save_IFS
3885  test -z "$as_dir" && as_dir=.
3886  for lt_ac_prog in sed gsed; do
3887    for ac_exec_ext in '' $ac_executable_extensions; do
3888      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3889        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3890      fi
3891    done
3892  done
3893done
3894IFS=$as_save_IFS
3895lt_ac_max=0
3896lt_ac_count=0
3897# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3898# along with /bin/sed that truncates output.
3899for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3900  test ! -f $lt_ac_sed && continue
3901  cat /dev/null > conftest.in
3902  lt_ac_count=0
3903  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3904  # Check for GNU sed and select it if it is found.
3905  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3906    lt_cv_path_SED=$lt_ac_sed
3907    break
3908  fi
3909  while true; do
3910    cat conftest.in conftest.in >conftest.tmp
3911    mv conftest.tmp conftest.in
3912    cp conftest.in conftest.nl
3913    echo >>conftest.nl
3914    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3915    cmp -s conftest.out conftest.nl || break
3916    # 10000 chars as input seems more than enough
3917    test $lt_ac_count -gt 10 && break
3918    lt_ac_count=`expr $lt_ac_count + 1`
3919    if test $lt_ac_count -gt $lt_ac_max; then
3920      lt_ac_max=$lt_ac_count
3921      lt_cv_path_SED=$lt_ac_sed
3922    fi
3923  done
3924done
3925
3926fi
3927
3928SED=$lt_cv_path_SED
3929
3930{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3931$as_echo "$SED" >&6; }
3932
3933{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3934$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3935if test "${ac_cv_path_GREP+set}" = set; then
3936  $as_echo_n "(cached) " >&6
3937else
3938  if test -z "$GREP"; then
3939  ac_path_GREP_found=false
3940  # Loop through the user's path and test for each of PROGNAME-LIST
3941  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3943do
3944  IFS=$as_save_IFS
3945  test -z "$as_dir" && as_dir=.
3946  for ac_prog in grep ggrep; do
3947    for ac_exec_ext in '' $ac_executable_extensions; do
3948      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3949      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3950# Check for GNU ac_path_GREP and select it if it is found.
3951  # Check for GNU $ac_path_GREP
3952case `"$ac_path_GREP" --version 2>&1` in
3953*GNU*)
3954  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3955*)
3956  ac_count=0
3957  $as_echo_n 0123456789 >"conftest.in"
3958  while :
3959  do
3960    cat "conftest.in" "conftest.in" >"conftest.tmp"
3961    mv "conftest.tmp" "conftest.in"
3962    cp "conftest.in" "conftest.nl"
3963    $as_echo 'GREP' >> "conftest.nl"
3964    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3965    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3966    ac_count=`expr $ac_count + 1`
3967    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3968      # Best one so far, save it but keep looking for a better one
3969      ac_cv_path_GREP="$ac_path_GREP"
3970      ac_path_GREP_max=$ac_count
3971    fi
3972    # 10*(2^10) chars as input seems more than enough
3973    test $ac_count -gt 10 && break
3974  done
3975  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3976esac
3977
3978      $ac_path_GREP_found && break 3
3979    done
3980  done
3981done
3982IFS=$as_save_IFS
3983  if test -z "$ac_cv_path_GREP"; then
3984    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3985$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3986   { (exit 1); exit 1; }; }
3987  fi
3988else
3989  ac_cv_path_GREP=$GREP
3990fi
3991
3992fi
3993{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3994$as_echo "$ac_cv_path_GREP" >&6; }
3995 GREP="$ac_cv_path_GREP"
3996
3997
3998{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3999$as_echo_n "checking for egrep... " >&6; }
4000if test "${ac_cv_path_EGREP+set}" = set; then
4001  $as_echo_n "(cached) " >&6
4002else
4003  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4004   then ac_cv_path_EGREP="$GREP -E"
4005   else
4006     if test -z "$EGREP"; then
4007  ac_path_EGREP_found=false
4008  # Loop through the user's path and test for each of PROGNAME-LIST
4009  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4011do
4012  IFS=$as_save_IFS
4013  test -z "$as_dir" && as_dir=.
4014  for ac_prog in egrep; do
4015    for ac_exec_ext in '' $ac_executable_extensions; do
4016      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4017      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4018# Check for GNU ac_path_EGREP and select it if it is found.
4019  # Check for GNU $ac_path_EGREP
4020case `"$ac_path_EGREP" --version 2>&1` in
4021*GNU*)
4022  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4023*)
4024  ac_count=0
4025  $as_echo_n 0123456789 >"conftest.in"
4026  while :
4027  do
4028    cat "conftest.in" "conftest.in" >"conftest.tmp"
4029    mv "conftest.tmp" "conftest.in"
4030    cp "conftest.in" "conftest.nl"
4031    $as_echo 'EGREP' >> "conftest.nl"
4032    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4033    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4034    ac_count=`expr $ac_count + 1`
4035    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4036      # Best one so far, save it but keep looking for a better one
4037      ac_cv_path_EGREP="$ac_path_EGREP"
4038      ac_path_EGREP_max=$ac_count
4039    fi
4040    # 10*(2^10) chars as input seems more than enough
4041    test $ac_count -gt 10 && break
4042  done
4043  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4044esac
4045
4046      $ac_path_EGREP_found && break 3
4047    done
4048  done
4049done
4050IFS=$as_save_IFS
4051  if test -z "$ac_cv_path_EGREP"; then
4052    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4053$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4054   { (exit 1); exit 1; }; }
4055  fi
4056else
4057  ac_cv_path_EGREP=$EGREP
4058fi
4059
4060   fi
4061fi
4062{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4063$as_echo "$ac_cv_path_EGREP" >&6; }
4064 EGREP="$ac_cv_path_EGREP"
4065
4066
4067
4068# Check whether --with-gnu-ld was given.
4069if test "${with_gnu_ld+set}" = set; then
4070  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4071else
4072  with_gnu_ld=no
4073fi
4074
4075ac_prog=ld
4076if test "$GCC" = yes; then
4077  # Check if gcc -print-prog-name=ld gives a path.
4078  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4079$as_echo_n "checking for ld used by $CC... " >&6; }
4080  case $host in
4081  *-*-mingw*)
4082    # gcc leaves a trailing carriage return which upsets mingw
4083    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4084  *)
4085    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4086  esac
4087  case $ac_prog in
4088    # Accept absolute paths.
4089    [\\/]* | ?:[\\/]*)
4090      re_direlt='/[^/][^/]*/\.\./'
4091      # Canonicalize the pathname of ld
4092      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4093      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4094	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4095      done
4096      test -z "$LD" && LD="$ac_prog"
4097      ;;
4098  "")
4099    # If it fails, then pretend we aren't using GCC.
4100    ac_prog=ld
4101    ;;
4102  *)
4103    # If it is relative, then search for the first ld in PATH.
4104    with_gnu_ld=unknown
4105    ;;
4106  esac
4107elif test "$with_gnu_ld" = yes; then
4108  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4109$as_echo_n "checking for GNU ld... " >&6; }
4110else
4111  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4112$as_echo_n "checking for non-GNU ld... " >&6; }
4113fi
4114if test "${lt_cv_path_LD+set}" = set; then
4115  $as_echo_n "(cached) " >&6
4116else
4117  if test -z "$LD"; then
4118  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4119  for ac_dir in $PATH; do
4120    IFS="$lt_save_ifs"
4121    test -z "$ac_dir" && ac_dir=.
4122    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4123      lt_cv_path_LD="$ac_dir/$ac_prog"
4124      # Check to see if the program is GNU ld.  I'd rather use --version,
4125      # but apparently some variants of GNU ld only accept -v.
4126      # Break only if it was the GNU/non-GNU ld that we prefer.
4127      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4128      *GNU* | *'with BFD'*)
4129	test "$with_gnu_ld" != no && break
4130	;;
4131      *)
4132	test "$with_gnu_ld" != yes && break
4133	;;
4134      esac
4135    fi
4136  done
4137  IFS="$lt_save_ifs"
4138else
4139  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4140fi
4141fi
4142
4143LD="$lt_cv_path_LD"
4144if test -n "$LD"; then
4145  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4146$as_echo "$LD" >&6; }
4147else
4148  { $as_echo "$as_me:$LINENO: result: no" >&5
4149$as_echo "no" >&6; }
4150fi
4151test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4152$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4153   { (exit 1); exit 1; }; }
4154{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4155$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4156if test "${lt_cv_prog_gnu_ld+set}" = set; then
4157  $as_echo_n "(cached) " >&6
4158else
4159  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4160case `$LD -v 2>&1 </dev/null` in
4161*GNU* | *'with BFD'*)
4162  lt_cv_prog_gnu_ld=yes
4163  ;;
4164*)
4165  lt_cv_prog_gnu_ld=no
4166  ;;
4167esac
4168fi
4169{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4170$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4171with_gnu_ld=$lt_cv_prog_gnu_ld
4172
4173
4174{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4175$as_echo_n "checking for $LD option to reload object files... " >&6; }
4176if test "${lt_cv_ld_reload_flag+set}" = set; then
4177  $as_echo_n "(cached) " >&6
4178else
4179  lt_cv_ld_reload_flag='-r'
4180fi
4181{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4182$as_echo "$lt_cv_ld_reload_flag" >&6; }
4183reload_flag=$lt_cv_ld_reload_flag
4184case $reload_flag in
4185"" | " "*) ;;
4186*) reload_flag=" $reload_flag" ;;
4187esac
4188reload_cmds='$LD$reload_flag -o $output$reload_objs'
4189case $host_os in
4190  darwin*)
4191    if test "$GCC" = yes; then
4192      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4193    else
4194      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4195    fi
4196    ;;
4197esac
4198
4199{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4200$as_echo_n "checking for BSD-compatible nm... " >&6; }
4201if test "${lt_cv_path_NM+set}" = set; then
4202  $as_echo_n "(cached) " >&6
4203else
4204  if test -n "$NM"; then
4205  # Let the user override the test.
4206  lt_cv_path_NM="$NM"
4207else
4208  lt_nm_to_check="${ac_tool_prefix}nm"
4209  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4210    lt_nm_to_check="$lt_nm_to_check nm"
4211  fi
4212  for lt_tmp_nm in $lt_nm_to_check; do
4213    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4214    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4215      IFS="$lt_save_ifs"
4216      test -z "$ac_dir" && ac_dir=.
4217      tmp_nm="$ac_dir/$lt_tmp_nm"
4218      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4219	# Check to see if the nm accepts a BSD-compat flag.
4220	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4221	#   nm: unknown option "B" ignored
4222	# Tru64's nm complains that /dev/null is an invalid object file
4223	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4224	*/dev/null* | *'Invalid file or object type'*)
4225	  lt_cv_path_NM="$tmp_nm -B"
4226	  break
4227	  ;;
4228	*)
4229	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4230	  */dev/null*)
4231	    lt_cv_path_NM="$tmp_nm -p"
4232	    break
4233	    ;;
4234	  *)
4235	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4236	    continue # so that we can try to find one that supports BSD flags
4237	    ;;
4238	  esac
4239	  ;;
4240	esac
4241      fi
4242    done
4243    IFS="$lt_save_ifs"
4244  done
4245  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4246fi
4247fi
4248{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4249$as_echo "$lt_cv_path_NM" >&6; }
4250NM="$lt_cv_path_NM"
4251
4252{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4253$as_echo_n "checking whether ln -s works... " >&6; }
4254LN_S=$as_ln_s
4255if test "$LN_S" = "ln -s"; then
4256  { $as_echo "$as_me:$LINENO: result: yes" >&5
4257$as_echo "yes" >&6; }
4258else
4259  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4260$as_echo "no, using $LN_S" >&6; }
4261fi
4262
4263{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4264$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4265if test "${lt_cv_deplibs_check_method+set}" = set; then
4266  $as_echo_n "(cached) " >&6
4267else
4268  lt_cv_file_magic_cmd='$MAGIC_CMD'
4269lt_cv_file_magic_test_file=
4270lt_cv_deplibs_check_method='unknown'
4271# Need to set the preceding variable on all platforms that support
4272# interlibrary dependencies.
4273# 'none' -- dependencies not supported.
4274# `unknown' -- same as none, but documents that we really don't know.
4275# 'pass_all' -- all dependencies passed with no checks.
4276# 'test_compile' -- check by making test program.
4277# 'file_magic [[regex]]' -- check by looking for files in library path
4278# which responds to the $file_magic_cmd with a given extended regex.
4279# If you have `file' or equivalent on your system and you're not sure
4280# whether `pass_all' will *always* work, you probably want this one.
4281
4282case $host_os in
4283aix[4-9]*)
4284  lt_cv_deplibs_check_method=pass_all
4285  ;;
4286
4287beos*)
4288  lt_cv_deplibs_check_method=pass_all
4289  ;;
4290
4291bsdi[45]*)
4292  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4293  lt_cv_file_magic_cmd='/usr/bin/file -L'
4294  lt_cv_file_magic_test_file=/shlib/libc.so
4295  ;;
4296
4297cygwin*)
4298  # func_win32_libid is a shell function defined in ltmain.sh
4299  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4300  lt_cv_file_magic_cmd='func_win32_libid'
4301  ;;
4302
4303mingw* | pw32*)
4304  # Base MSYS/MinGW do not provide the 'file' command needed by
4305  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4306  # unless we find 'file', for example because we are cross-compiling.
4307  if ( file / ) >/dev/null 2>&1; then
4308    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4309    lt_cv_file_magic_cmd='func_win32_libid'
4310  else
4311    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4312    lt_cv_file_magic_cmd='$OBJDUMP -f'
4313  fi
4314  ;;
4315
4316darwin* | rhapsody*)
4317  lt_cv_deplibs_check_method=pass_all
4318  ;;
4319
4320freebsd* | dragonfly*)
4321  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4322    case $host_cpu in
4323    i*86 )
4324      # Not sure whether the presence of OpenBSD here was a mistake.
4325      # Let's accept both of them until this is cleared up.
4326      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4327      lt_cv_file_magic_cmd=/usr/bin/file
4328      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4329      ;;
4330    esac
4331  else
4332    lt_cv_deplibs_check_method=pass_all
4333  fi
4334  ;;
4335
4336gnu*)
4337  lt_cv_deplibs_check_method=pass_all
4338  ;;
4339
4340hpux10.20* | hpux11*)
4341  lt_cv_file_magic_cmd=/usr/bin/file
4342  case $host_cpu in
4343  ia64*)
4344    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4345    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4346    ;;
4347  hppa*64*)
4348    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]'
4349    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4350    ;;
4351  *)
4352    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4353    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4354    ;;
4355  esac
4356  ;;
4357
4358interix[3-9]*)
4359  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4360  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4361  ;;
4362
4363irix5* | irix6* | nonstopux*)
4364  case $LD in
4365  *-32|*"-32 ") libmagic=32-bit;;
4366  *-n32|*"-n32 ") libmagic=N32;;
4367  *-64|*"-64 ") libmagic=64-bit;;
4368  *) libmagic=never-match;;
4369  esac
4370  lt_cv_deplibs_check_method=pass_all
4371  ;;
4372
4373# This must be Linux ELF.
4374linux* | k*bsd*-gnu)
4375  lt_cv_deplibs_check_method=pass_all
4376  ;;
4377
4378netbsd*)
4379  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4380    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4381  else
4382    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4383  fi
4384  ;;
4385
4386newos6*)
4387  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4388  lt_cv_file_magic_cmd=/usr/bin/file
4389  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4390  ;;
4391
4392nto-qnx*)
4393  lt_cv_deplibs_check_method=unknown
4394  ;;
4395
4396openbsd*)
4397  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4398    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4399  else
4400    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4401  fi
4402  ;;
4403
4404osf3* | osf4* | osf5*)
4405  lt_cv_deplibs_check_method=pass_all
4406  ;;
4407
4408rdos*)
4409  lt_cv_deplibs_check_method=pass_all
4410  ;;
4411
4412solaris*)
4413  lt_cv_deplibs_check_method=pass_all
4414  ;;
4415
4416sysv4 | sysv4.3*)
4417  case $host_vendor in
4418  motorola)
4419    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]'
4420    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4421    ;;
4422  ncr)
4423    lt_cv_deplibs_check_method=pass_all
4424    ;;
4425  sequent)
4426    lt_cv_file_magic_cmd='/bin/file'
4427    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4428    ;;
4429  sni)
4430    lt_cv_file_magic_cmd='/bin/file'
4431    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4432    lt_cv_file_magic_test_file=/lib/libc.so
4433    ;;
4434  siemens)
4435    lt_cv_deplibs_check_method=pass_all
4436    ;;
4437  pc)
4438    lt_cv_deplibs_check_method=pass_all
4439    ;;
4440  esac
4441  ;;
4442
4443sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4444  lt_cv_deplibs_check_method=pass_all
4445  ;;
4446esac
4447
4448fi
4449{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4450$as_echo "$lt_cv_deplibs_check_method" >&6; }
4451file_magic_cmd=$lt_cv_file_magic_cmd
4452deplibs_check_method=$lt_cv_deplibs_check_method
4453test -z "$deplibs_check_method" && deplibs_check_method=unknown
4454
4455
4456
4457
4458# If no C compiler was specified, use CC.
4459LTCC=${LTCC-"$CC"}
4460
4461# If no C compiler flags were specified, use CFLAGS.
4462LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4463
4464# Allow CC to be a program name with arguments.
4465compiler=$CC
4466
4467
4468# Check whether --enable-libtool-lock was given.
4469if test "${enable_libtool_lock+set}" = set; then
4470  enableval=$enable_libtool_lock;
4471fi
4472
4473test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4474
4475# Some flags need to be propagated to the compiler or linker for good
4476# libtool support.
4477case $host in
4478ia64-*-hpux*)
4479  # Find out which ABI we are using.
4480  echo 'int i;' > conftest.$ac_ext
4481  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4482  (eval $ac_compile) 2>&5
4483  ac_status=$?
4484  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485  (exit $ac_status); }; then
4486    case `/usr/bin/file conftest.$ac_objext` in
4487    *ELF-32*)
4488      HPUX_IA64_MODE="32"
4489      ;;
4490    *ELF-64*)
4491      HPUX_IA64_MODE="64"
4492      ;;
4493    esac
4494  fi
4495  rm -rf conftest*
4496  ;;
4497*-*-irix6*)
4498  # Find out which ABI we are using.
4499  echo '#line 4499 "configure"' > conftest.$ac_ext
4500  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4501  (eval $ac_compile) 2>&5
4502  ac_status=$?
4503  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504  (exit $ac_status); }; then
4505   if test "$lt_cv_prog_gnu_ld" = yes; then
4506    case `/usr/bin/file conftest.$ac_objext` in
4507    *32-bit*)
4508      LD="${LD-ld} -melf32bsmip"
4509      ;;
4510    *N32*)
4511      LD="${LD-ld} -melf32bmipn32"
4512      ;;
4513    *64-bit*)
4514      LD="${LD-ld} -melf64bmip"
4515      ;;
4516    esac
4517   else
4518    case `/usr/bin/file conftest.$ac_objext` in
4519    *32-bit*)
4520      LD="${LD-ld} -32"
4521      ;;
4522    *N32*)
4523      LD="${LD-ld} -n32"
4524      ;;
4525    *64-bit*)
4526      LD="${LD-ld} -64"
4527      ;;
4528    esac
4529   fi
4530  fi
4531  rm -rf conftest*
4532  ;;
4533
4534x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4535s390*-*linux*|sparc*-*linux*)
4536  # Find out which ABI we are using.
4537  echo 'int i;' > conftest.$ac_ext
4538  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539  (eval $ac_compile) 2>&5
4540  ac_status=$?
4541  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542  (exit $ac_status); }; then
4543    case `/usr/bin/file conftest.o` in
4544    *32-bit*)
4545      case $host in
4546        x86_64-*kfreebsd*-gnu)
4547          LD="${LD-ld} -m elf_i386_fbsd"
4548          ;;
4549        x86_64-*linux*)
4550          LD="${LD-ld} -m elf_i386"
4551          ;;
4552        ppc64-*linux*|powerpc64-*linux*)
4553          LD="${LD-ld} -m elf32ppclinux"
4554          ;;
4555        s390x-*linux*)
4556          LD="${LD-ld} -m elf_s390"
4557          ;;
4558        sparc64-*linux*)
4559          LD="${LD-ld} -m elf32_sparc"
4560          ;;
4561      esac
4562      ;;
4563    *64-bit*)
4564      libsuff=64
4565      case $host in
4566        x86_64-*kfreebsd*-gnu)
4567          LD="${LD-ld} -m elf_x86_64_fbsd"
4568          ;;
4569        x86_64-*linux*)
4570          LD="${LD-ld} -m elf_x86_64"
4571          ;;
4572        ppc*-*linux*|powerpc*-*linux*)
4573          LD="${LD-ld} -m elf64ppc"
4574          ;;
4575        s390*-*linux*)
4576          LD="${LD-ld} -m elf64_s390"
4577          ;;
4578        sparc*-*linux*)
4579          LD="${LD-ld} -m elf64_sparc"
4580          ;;
4581      esac
4582      ;;
4583    esac
4584  fi
4585  rm -rf conftest*
4586  ;;
4587
4588*-*-sco3.2v5*)
4589  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4590  SAVE_CFLAGS="$CFLAGS"
4591  CFLAGS="$CFLAGS -belf"
4592  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4593$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4594if test "${lt_cv_cc_needs_belf+set}" = set; then
4595  $as_echo_n "(cached) " >&6
4596else
4597  ac_ext=c
4598ac_cpp='$CPP $CPPFLAGS'
4599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602
4603     cat >conftest.$ac_ext <<_ACEOF
4604/* confdefs.h.  */
4605_ACEOF
4606cat confdefs.h >>conftest.$ac_ext
4607cat >>conftest.$ac_ext <<_ACEOF
4608/* end confdefs.h.  */
4609
4610int
4611main ()
4612{
4613
4614  ;
4615  return 0;
4616}
4617_ACEOF
4618rm -f conftest.$ac_objext conftest$ac_exeext
4619if { (ac_try="$ac_link"
4620case "(($ac_try" in
4621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622  *) ac_try_echo=$ac_try;;
4623esac
4624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4625$as_echo "$ac_try_echo") >&5
4626  (eval "$ac_link") 2>conftest.er1
4627  ac_status=$?
4628  grep -v '^ *+' conftest.er1 >conftest.err
4629  rm -f conftest.er1
4630  cat conftest.err >&5
4631  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632  (exit $ac_status); } && {
4633	 test -z "$ac_c_werror_flag" ||
4634	 test ! -s conftest.err
4635       } && test -s conftest$ac_exeext && {
4636	 test "$cross_compiling" = yes ||
4637	 $as_test_x conftest$ac_exeext
4638       }; then
4639  lt_cv_cc_needs_belf=yes
4640else
4641  $as_echo "$as_me: failed program was:" >&5
4642sed 's/^/| /' conftest.$ac_ext >&5
4643
4644	lt_cv_cc_needs_belf=no
4645fi
4646
4647rm -rf conftest.dSYM
4648rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4649      conftest$ac_exeext conftest.$ac_ext
4650     ac_ext=c
4651ac_cpp='$CPP $CPPFLAGS'
4652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655
4656fi
4657{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4658$as_echo "$lt_cv_cc_needs_belf" >&6; }
4659  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4660    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4661    CFLAGS="$SAVE_CFLAGS"
4662  fi
4663  ;;
4664sparc*-*solaris*)
4665  # Find out which ABI we are using.
4666  echo 'int i;' > conftest.$ac_ext
4667  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668  (eval $ac_compile) 2>&5
4669  ac_status=$?
4670  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671  (exit $ac_status); }; then
4672    case `/usr/bin/file conftest.o` in
4673    *64-bit*)
4674      case $lt_cv_prog_gnu_ld in
4675      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4676      *)
4677        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4678	  LD="${LD-ld} -64"
4679	fi
4680	;;
4681      esac
4682      ;;
4683    esac
4684  fi
4685  rm -rf conftest*
4686  ;;
4687
4688
4689esac
4690
4691need_locks="$enable_libtool_lock"
4692
4693
4694ac_ext=c
4695ac_cpp='$CPP $CPPFLAGS'
4696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4698ac_compiler_gnu=$ac_cv_c_compiler_gnu
4699{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4700$as_echo_n "checking how to run the C preprocessor... " >&6; }
4701# On Suns, sometimes $CPP names a directory.
4702if test -n "$CPP" && test -d "$CPP"; then
4703  CPP=
4704fi
4705if test -z "$CPP"; then
4706  if test "${ac_cv_prog_CPP+set}" = set; then
4707  $as_echo_n "(cached) " >&6
4708else
4709      # Double quotes because CPP needs to be expanded
4710    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4711    do
4712      ac_preproc_ok=false
4713for ac_c_preproc_warn_flag in '' yes
4714do
4715  # Use a header file that comes with gcc, so configuring glibc
4716  # with a fresh cross-compiler works.
4717  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4718  # <limits.h> exists even on freestanding compilers.
4719  # On the NeXT, cc -E runs the code through the compiler's parser,
4720  # not just through cpp. "Syntax error" is here to catch this case.
4721  cat >conftest.$ac_ext <<_ACEOF
4722/* confdefs.h.  */
4723_ACEOF
4724cat confdefs.h >>conftest.$ac_ext
4725cat >>conftest.$ac_ext <<_ACEOF
4726/* end confdefs.h.  */
4727#ifdef __STDC__
4728# include <limits.h>
4729#else
4730# include <assert.h>
4731#endif
4732		     Syntax error
4733_ACEOF
4734if { (ac_try="$ac_cpp conftest.$ac_ext"
4735case "(($ac_try" in
4736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737  *) ac_try_echo=$ac_try;;
4738esac
4739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4740$as_echo "$ac_try_echo") >&5
4741  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4742  ac_status=$?
4743  grep -v '^ *+' conftest.er1 >conftest.err
4744  rm -f conftest.er1
4745  cat conftest.err >&5
4746  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747  (exit $ac_status); } >/dev/null && {
4748	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4749	 test ! -s conftest.err
4750       }; then
4751  :
4752else
4753  $as_echo "$as_me: failed program was:" >&5
4754sed 's/^/| /' conftest.$ac_ext >&5
4755
4756  # Broken: fails on valid input.
4757continue
4758fi
4759
4760rm -f conftest.err conftest.$ac_ext
4761
4762  # OK, works on sane cases.  Now check whether nonexistent headers
4763  # can be detected and how.
4764  cat >conftest.$ac_ext <<_ACEOF
4765/* confdefs.h.  */
4766_ACEOF
4767cat confdefs.h >>conftest.$ac_ext
4768cat >>conftest.$ac_ext <<_ACEOF
4769/* end confdefs.h.  */
4770#include <ac_nonexistent.h>
4771_ACEOF
4772if { (ac_try="$ac_cpp conftest.$ac_ext"
4773case "(($ac_try" in
4774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775  *) ac_try_echo=$ac_try;;
4776esac
4777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4778$as_echo "$ac_try_echo") >&5
4779  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4780  ac_status=$?
4781  grep -v '^ *+' conftest.er1 >conftest.err
4782  rm -f conftest.er1
4783  cat conftest.err >&5
4784  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785  (exit $ac_status); } >/dev/null && {
4786	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4787	 test ! -s conftest.err
4788       }; then
4789  # Broken: success on invalid input.
4790continue
4791else
4792  $as_echo "$as_me: failed program was:" >&5
4793sed 's/^/| /' conftest.$ac_ext >&5
4794
4795  # Passes both tests.
4796ac_preproc_ok=:
4797break
4798fi
4799
4800rm -f conftest.err conftest.$ac_ext
4801
4802done
4803# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4804rm -f conftest.err conftest.$ac_ext
4805if $ac_preproc_ok; then
4806  break
4807fi
4808
4809    done
4810    ac_cv_prog_CPP=$CPP
4811
4812fi
4813  CPP=$ac_cv_prog_CPP
4814else
4815  ac_cv_prog_CPP=$CPP
4816fi
4817{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4818$as_echo "$CPP" >&6; }
4819ac_preproc_ok=false
4820for ac_c_preproc_warn_flag in '' yes
4821do
4822  # Use a header file that comes with gcc, so configuring glibc
4823  # with a fresh cross-compiler works.
4824  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4825  # <limits.h> exists even on freestanding compilers.
4826  # On the NeXT, cc -E runs the code through the compiler's parser,
4827  # not just through cpp. "Syntax error" is here to catch this case.
4828  cat >conftest.$ac_ext <<_ACEOF
4829/* confdefs.h.  */
4830_ACEOF
4831cat confdefs.h >>conftest.$ac_ext
4832cat >>conftest.$ac_ext <<_ACEOF
4833/* end confdefs.h.  */
4834#ifdef __STDC__
4835# include <limits.h>
4836#else
4837# include <assert.h>
4838#endif
4839		     Syntax error
4840_ACEOF
4841if { (ac_try="$ac_cpp conftest.$ac_ext"
4842case "(($ac_try" in
4843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844  *) ac_try_echo=$ac_try;;
4845esac
4846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4847$as_echo "$ac_try_echo") >&5
4848  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4849  ac_status=$?
4850  grep -v '^ *+' conftest.er1 >conftest.err
4851  rm -f conftest.er1
4852  cat conftest.err >&5
4853  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854  (exit $ac_status); } >/dev/null && {
4855	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4856	 test ! -s conftest.err
4857       }; then
4858  :
4859else
4860  $as_echo "$as_me: failed program was:" >&5
4861sed 's/^/| /' conftest.$ac_ext >&5
4862
4863  # Broken: fails on valid input.
4864continue
4865fi
4866
4867rm -f conftest.err conftest.$ac_ext
4868
4869  # OK, works on sane cases.  Now check whether nonexistent headers
4870  # can be detected and how.
4871  cat >conftest.$ac_ext <<_ACEOF
4872/* confdefs.h.  */
4873_ACEOF
4874cat confdefs.h >>conftest.$ac_ext
4875cat >>conftest.$ac_ext <<_ACEOF
4876/* end confdefs.h.  */
4877#include <ac_nonexistent.h>
4878_ACEOF
4879if { (ac_try="$ac_cpp conftest.$ac_ext"
4880case "(($ac_try" in
4881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4882  *) ac_try_echo=$ac_try;;
4883esac
4884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4885$as_echo "$ac_try_echo") >&5
4886  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4887  ac_status=$?
4888  grep -v '^ *+' conftest.er1 >conftest.err
4889  rm -f conftest.er1
4890  cat conftest.err >&5
4891  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892  (exit $ac_status); } >/dev/null && {
4893	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4894	 test ! -s conftest.err
4895       }; then
4896  # Broken: success on invalid input.
4897continue
4898else
4899  $as_echo "$as_me: failed program was:" >&5
4900sed 's/^/| /' conftest.$ac_ext >&5
4901
4902  # Passes both tests.
4903ac_preproc_ok=:
4904break
4905fi
4906
4907rm -f conftest.err conftest.$ac_ext
4908
4909done
4910# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4911rm -f conftest.err conftest.$ac_ext
4912if $ac_preproc_ok; then
4913  :
4914else
4915  { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4916See \`config.log' for more details." >&5
4917$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4918See \`config.log' for more details." >&2;}
4919   { (exit 1); exit 1; }; }
4920fi
4921
4922ac_ext=c
4923ac_cpp='$CPP $CPPFLAGS'
4924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926ac_compiler_gnu=$ac_cv_c_compiler_gnu
4927
4928
4929{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4930$as_echo_n "checking for ANSI C header files... " >&6; }
4931if test "${ac_cv_header_stdc+set}" = set; then
4932  $as_echo_n "(cached) " >&6
4933else
4934  cat >conftest.$ac_ext <<_ACEOF
4935/* confdefs.h.  */
4936_ACEOF
4937cat confdefs.h >>conftest.$ac_ext
4938cat >>conftest.$ac_ext <<_ACEOF
4939/* end confdefs.h.  */
4940#include <stdlib.h>
4941#include <stdarg.h>
4942#include <string.h>
4943#include <float.h>
4944
4945int
4946main ()
4947{
4948
4949  ;
4950  return 0;
4951}
4952_ACEOF
4953rm -f conftest.$ac_objext
4954if { (ac_try="$ac_compile"
4955case "(($ac_try" in
4956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957  *) ac_try_echo=$ac_try;;
4958esac
4959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4960$as_echo "$ac_try_echo") >&5
4961  (eval "$ac_compile") 2>conftest.er1
4962  ac_status=$?
4963  grep -v '^ *+' conftest.er1 >conftest.err
4964  rm -f conftest.er1
4965  cat conftest.err >&5
4966  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967  (exit $ac_status); } && {
4968	 test -z "$ac_c_werror_flag" ||
4969	 test ! -s conftest.err
4970       } && test -s conftest.$ac_objext; then
4971  ac_cv_header_stdc=yes
4972else
4973  $as_echo "$as_me: failed program was:" >&5
4974sed 's/^/| /' conftest.$ac_ext >&5
4975
4976	ac_cv_header_stdc=no
4977fi
4978
4979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980
4981if test $ac_cv_header_stdc = yes; then
4982  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4983  cat >conftest.$ac_ext <<_ACEOF
4984/* confdefs.h.  */
4985_ACEOF
4986cat confdefs.h >>conftest.$ac_ext
4987cat >>conftest.$ac_ext <<_ACEOF
4988/* end confdefs.h.  */
4989#include <string.h>
4990
4991_ACEOF
4992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4993  $EGREP "memchr" >/dev/null 2>&1; then
4994  :
4995else
4996  ac_cv_header_stdc=no
4997fi
4998rm -f conftest*
4999
5000fi
5001
5002if test $ac_cv_header_stdc = yes; then
5003  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5004  cat >conftest.$ac_ext <<_ACEOF
5005/* confdefs.h.  */
5006_ACEOF
5007cat confdefs.h >>conftest.$ac_ext
5008cat >>conftest.$ac_ext <<_ACEOF
5009/* end confdefs.h.  */
5010#include <stdlib.h>
5011
5012_ACEOF
5013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5014  $EGREP "free" >/dev/null 2>&1; then
5015  :
5016else
5017  ac_cv_header_stdc=no
5018fi
5019rm -f conftest*
5020
5021fi
5022
5023if test $ac_cv_header_stdc = yes; then
5024  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5025  if test "$cross_compiling" = yes; then
5026  :
5027else
5028  cat >conftest.$ac_ext <<_ACEOF
5029/* confdefs.h.  */
5030_ACEOF
5031cat confdefs.h >>conftest.$ac_ext
5032cat >>conftest.$ac_ext <<_ACEOF
5033/* end confdefs.h.  */
5034#include <ctype.h>
5035#include <stdlib.h>
5036#if ((' ' & 0x0FF) == 0x020)
5037# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5038# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5039#else
5040# define ISLOWER(c) \
5041		   (('a' <= (c) && (c) <= 'i') \
5042		     || ('j' <= (c) && (c) <= 'r') \
5043		     || ('s' <= (c) && (c) <= 'z'))
5044# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5045#endif
5046
5047#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5048int
5049main ()
5050{
5051  int i;
5052  for (i = 0; i < 256; i++)
5053    if (XOR (islower (i), ISLOWER (i))
5054	|| toupper (i) != TOUPPER (i))
5055      return 2;
5056  return 0;
5057}
5058_ACEOF
5059rm -f conftest$ac_exeext
5060if { (ac_try="$ac_link"
5061case "(($ac_try" in
5062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063  *) ac_try_echo=$ac_try;;
5064esac
5065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5066$as_echo "$ac_try_echo") >&5
5067  (eval "$ac_link") 2>&5
5068  ac_status=$?
5069  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5071  { (case "(($ac_try" in
5072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073  *) ac_try_echo=$ac_try;;
5074esac
5075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5076$as_echo "$ac_try_echo") >&5
5077  (eval "$ac_try") 2>&5
5078  ac_status=$?
5079  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080  (exit $ac_status); }; }; then
5081  :
5082else
5083  $as_echo "$as_me: program exited with status $ac_status" >&5
5084$as_echo "$as_me: failed program was:" >&5
5085sed 's/^/| /' conftest.$ac_ext >&5
5086
5087( exit $ac_status )
5088ac_cv_header_stdc=no
5089fi
5090rm -rf conftest.dSYM
5091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5092fi
5093
5094
5095fi
5096fi
5097{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5098$as_echo "$ac_cv_header_stdc" >&6; }
5099if test $ac_cv_header_stdc = yes; then
5100
5101cat >>confdefs.h <<\_ACEOF
5102#define STDC_HEADERS 1
5103_ACEOF
5104
5105fi
5106
5107# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5118		  inttypes.h stdint.h unistd.h
5119do
5120as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5121{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5122$as_echo_n "checking for $ac_header... " >&6; }
5123if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5124  $as_echo_n "(cached) " >&6
5125else
5126  cat >conftest.$ac_ext <<_ACEOF
5127/* confdefs.h.  */
5128_ACEOF
5129cat confdefs.h >>conftest.$ac_ext
5130cat >>conftest.$ac_ext <<_ACEOF
5131/* end confdefs.h.  */
5132$ac_includes_default
5133
5134#include <$ac_header>
5135_ACEOF
5136rm -f conftest.$ac_objext
5137if { (ac_try="$ac_compile"
5138case "(($ac_try" in
5139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140  *) ac_try_echo=$ac_try;;
5141esac
5142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5143$as_echo "$ac_try_echo") >&5
5144  (eval "$ac_compile") 2>conftest.er1
5145  ac_status=$?
5146  grep -v '^ *+' conftest.er1 >conftest.err
5147  rm -f conftest.er1
5148  cat conftest.err >&5
5149  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150  (exit $ac_status); } && {
5151	 test -z "$ac_c_werror_flag" ||
5152	 test ! -s conftest.err
5153       } && test -s conftest.$ac_objext; then
5154  eval "$as_ac_Header=yes"
5155else
5156  $as_echo "$as_me: failed program was:" >&5
5157sed 's/^/| /' conftest.$ac_ext >&5
5158
5159	eval "$as_ac_Header=no"
5160fi
5161
5162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5163fi
5164ac_res=`eval 'as_val=${'$as_ac_Header'}
5165		 $as_echo "$as_val"'`
5166	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5167$as_echo "$ac_res" >&6; }
5168if test `eval 'as_val=${'$as_ac_Header'}
5169		 $as_echo "$as_val"'` = yes; then
5170  cat >>confdefs.h <<_ACEOF
5171#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5172_ACEOF
5173
5174fi
5175
5176done
5177
5178
5179
5180for ac_header in dlfcn.h
5181do
5182as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5183if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5184  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5185$as_echo_n "checking for $ac_header... " >&6; }
5186if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5187  $as_echo_n "(cached) " >&6
5188fi
5189ac_res=`eval 'as_val=${'$as_ac_Header'}
5190		 $as_echo "$as_val"'`
5191	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5192$as_echo "$ac_res" >&6; }
5193else
5194  # Is the header compilable?
5195{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5196$as_echo_n "checking $ac_header usability... " >&6; }
5197cat >conftest.$ac_ext <<_ACEOF
5198/* confdefs.h.  */
5199_ACEOF
5200cat confdefs.h >>conftest.$ac_ext
5201cat >>conftest.$ac_ext <<_ACEOF
5202/* end confdefs.h.  */
5203$ac_includes_default
5204#include <$ac_header>
5205_ACEOF
5206rm -f conftest.$ac_objext
5207if { (ac_try="$ac_compile"
5208case "(($ac_try" in
5209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210  *) ac_try_echo=$ac_try;;
5211esac
5212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5213$as_echo "$ac_try_echo") >&5
5214  (eval "$ac_compile") 2>conftest.er1
5215  ac_status=$?
5216  grep -v '^ *+' conftest.er1 >conftest.err
5217  rm -f conftest.er1
5218  cat conftest.err >&5
5219  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220  (exit $ac_status); } && {
5221	 test -z "$ac_c_werror_flag" ||
5222	 test ! -s conftest.err
5223       } && test -s conftest.$ac_objext; then
5224  ac_header_compiler=yes
5225else
5226  $as_echo "$as_me: failed program was:" >&5
5227sed 's/^/| /' conftest.$ac_ext >&5
5228
5229	ac_header_compiler=no
5230fi
5231
5232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5234$as_echo "$ac_header_compiler" >&6; }
5235
5236# Is the header present?
5237{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5238$as_echo_n "checking $ac_header presence... " >&6; }
5239cat >conftest.$ac_ext <<_ACEOF
5240/* confdefs.h.  */
5241_ACEOF
5242cat confdefs.h >>conftest.$ac_ext
5243cat >>conftest.$ac_ext <<_ACEOF
5244/* end confdefs.h.  */
5245#include <$ac_header>
5246_ACEOF
5247if { (ac_try="$ac_cpp conftest.$ac_ext"
5248case "(($ac_try" in
5249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250  *) ac_try_echo=$ac_try;;
5251esac
5252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5253$as_echo "$ac_try_echo") >&5
5254  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5255  ac_status=$?
5256  grep -v '^ *+' conftest.er1 >conftest.err
5257  rm -f conftest.er1
5258  cat conftest.err >&5
5259  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260  (exit $ac_status); } >/dev/null && {
5261	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5262	 test ! -s conftest.err
5263       }; then
5264  ac_header_preproc=yes
5265else
5266  $as_echo "$as_me: failed program was:" >&5
5267sed 's/^/| /' conftest.$ac_ext >&5
5268
5269  ac_header_preproc=no
5270fi
5271
5272rm -f conftest.err conftest.$ac_ext
5273{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5274$as_echo "$ac_header_preproc" >&6; }
5275
5276# So?  What about this header?
5277case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5278  yes:no: )
5279    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5280$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5281    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5282$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5283    ac_header_preproc=yes
5284    ;;
5285  no:yes:* )
5286    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5287$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5288    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5289$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5290    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5291$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5292    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5293$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5294    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5295$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5296    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5297$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5298    ( cat <<\_ASBOX
5299## ---------------------------------------------------------------------- ##
5300## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5301## ---------------------------------------------------------------------- ##
5302_ASBOX
5303     ) | sed "s/^/$as_me: WARNING:     /" >&2
5304    ;;
5305esac
5306{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5307$as_echo_n "checking for $ac_header... " >&6; }
5308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5309  $as_echo_n "(cached) " >&6
5310else
5311  eval "$as_ac_Header=\$ac_header_preproc"
5312fi
5313ac_res=`eval 'as_val=${'$as_ac_Header'}
5314		 $as_echo "$as_val"'`
5315	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5316$as_echo "$ac_res" >&6; }
5317
5318fi
5319if test `eval 'as_val=${'$as_ac_Header'}
5320		 $as_echo "$as_val"'` = yes; then
5321  cat >>confdefs.h <<_ACEOF
5322#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5323_ACEOF
5324
5325fi
5326
5327done
5328
5329ac_ext=cpp
5330ac_cpp='$CXXCPP $CPPFLAGS'
5331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5334if test -z "$CXX"; then
5335  if test -n "$CCC"; then
5336    CXX=$CCC
5337  else
5338    if test -n "$ac_tool_prefix"; then
5339  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5340  do
5341    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5342set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5343{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5344$as_echo_n "checking for $ac_word... " >&6; }
5345if test "${ac_cv_prog_CXX+set}" = set; then
5346  $as_echo_n "(cached) " >&6
5347else
5348  if test -n "$CXX"; then
5349  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5350else
5351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352for as_dir in $PATH
5353do
5354  IFS=$as_save_IFS
5355  test -z "$as_dir" && as_dir=.
5356  for ac_exec_ext in '' $ac_executable_extensions; do
5357  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5358    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5359    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360    break 2
5361  fi
5362done
5363done
5364IFS=$as_save_IFS
5365
5366fi
5367fi
5368CXX=$ac_cv_prog_CXX
5369if test -n "$CXX"; then
5370  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5371$as_echo "$CXX" >&6; }
5372else
5373  { $as_echo "$as_me:$LINENO: result: no" >&5
5374$as_echo "no" >&6; }
5375fi
5376
5377
5378    test -n "$CXX" && break
5379  done
5380fi
5381if test -z "$CXX"; then
5382  ac_ct_CXX=$CXX
5383  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5384do
5385  # Extract the first word of "$ac_prog", so it can be a program name with args.
5386set dummy $ac_prog; ac_word=$2
5387{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5388$as_echo_n "checking for $ac_word... " >&6; }
5389if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5390  $as_echo_n "(cached) " >&6
5391else
5392  if test -n "$ac_ct_CXX"; then
5393  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5394else
5395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396for as_dir in $PATH
5397do
5398  IFS=$as_save_IFS
5399  test -z "$as_dir" && as_dir=.
5400  for ac_exec_ext in '' $ac_executable_extensions; do
5401  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402    ac_cv_prog_ac_ct_CXX="$ac_prog"
5403    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404    break 2
5405  fi
5406done
5407done
5408IFS=$as_save_IFS
5409
5410fi
5411fi
5412ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5413if test -n "$ac_ct_CXX"; then
5414  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5415$as_echo "$ac_ct_CXX" >&6; }
5416else
5417  { $as_echo "$as_me:$LINENO: result: no" >&5
5418$as_echo "no" >&6; }
5419fi
5420
5421
5422  test -n "$ac_ct_CXX" && break
5423done
5424
5425  if test "x$ac_ct_CXX" = x; then
5426    CXX="g++"
5427  else
5428    case $cross_compiling:$ac_tool_warned in
5429yes:)
5430{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5431whose name does not start with the host triplet.  If you think this
5432configuration is useful to you, please write to autoconf@gnu.org." >&5
5433$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5434whose name does not start with the host triplet.  If you think this
5435configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5436ac_tool_warned=yes ;;
5437esac
5438    CXX=$ac_ct_CXX
5439  fi
5440fi
5441
5442  fi
5443fi
5444# Provide some information about the compiler.
5445$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5446set X $ac_compile
5447ac_compiler=$2
5448{ (ac_try="$ac_compiler --version >&5"
5449case "(($ac_try" in
5450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451  *) ac_try_echo=$ac_try;;
5452esac
5453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5454$as_echo "$ac_try_echo") >&5
5455  (eval "$ac_compiler --version >&5") 2>&5
5456  ac_status=$?
5457  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458  (exit $ac_status); }
5459{ (ac_try="$ac_compiler -v >&5"
5460case "(($ac_try" in
5461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462  *) ac_try_echo=$ac_try;;
5463esac
5464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5465$as_echo "$ac_try_echo") >&5
5466  (eval "$ac_compiler -v >&5") 2>&5
5467  ac_status=$?
5468  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469  (exit $ac_status); }
5470{ (ac_try="$ac_compiler -V >&5"
5471case "(($ac_try" in
5472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473  *) ac_try_echo=$ac_try;;
5474esac
5475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5476$as_echo "$ac_try_echo") >&5
5477  (eval "$ac_compiler -V >&5") 2>&5
5478  ac_status=$?
5479  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480  (exit $ac_status); }
5481
5482{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5483$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5484if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5485  $as_echo_n "(cached) " >&6
5486else
5487  cat >conftest.$ac_ext <<_ACEOF
5488/* confdefs.h.  */
5489_ACEOF
5490cat confdefs.h >>conftest.$ac_ext
5491cat >>conftest.$ac_ext <<_ACEOF
5492/* end confdefs.h.  */
5493
5494int
5495main ()
5496{
5497#ifndef __GNUC__
5498       choke me
5499#endif
5500
5501  ;
5502  return 0;
5503}
5504_ACEOF
5505rm -f conftest.$ac_objext
5506if { (ac_try="$ac_compile"
5507case "(($ac_try" in
5508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509  *) ac_try_echo=$ac_try;;
5510esac
5511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5512$as_echo "$ac_try_echo") >&5
5513  (eval "$ac_compile") 2>conftest.er1
5514  ac_status=$?
5515  grep -v '^ *+' conftest.er1 >conftest.err
5516  rm -f conftest.er1
5517  cat conftest.err >&5
5518  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519  (exit $ac_status); } && {
5520	 test -z "$ac_cxx_werror_flag" ||
5521	 test ! -s conftest.err
5522       } && test -s conftest.$ac_objext; then
5523  ac_compiler_gnu=yes
5524else
5525  $as_echo "$as_me: failed program was:" >&5
5526sed 's/^/| /' conftest.$ac_ext >&5
5527
5528	ac_compiler_gnu=no
5529fi
5530
5531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5532ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5533
5534fi
5535{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5536$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5537if test $ac_compiler_gnu = yes; then
5538  GXX=yes
5539else
5540  GXX=
5541fi
5542ac_test_CXXFLAGS=${CXXFLAGS+set}
5543ac_save_CXXFLAGS=$CXXFLAGS
5544{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5545$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5546if test "${ac_cv_prog_cxx_g+set}" = set; then
5547  $as_echo_n "(cached) " >&6
5548else
5549  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5550   ac_cxx_werror_flag=yes
5551   ac_cv_prog_cxx_g=no
5552   CXXFLAGS="-g"
5553   cat >conftest.$ac_ext <<_ACEOF
5554/* confdefs.h.  */
5555_ACEOF
5556cat confdefs.h >>conftest.$ac_ext
5557cat >>conftest.$ac_ext <<_ACEOF
5558/* end confdefs.h.  */
5559
5560int
5561main ()
5562{
5563
5564  ;
5565  return 0;
5566}
5567_ACEOF
5568rm -f conftest.$ac_objext
5569if { (ac_try="$ac_compile"
5570case "(($ac_try" in
5571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572  *) ac_try_echo=$ac_try;;
5573esac
5574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5575$as_echo "$ac_try_echo") >&5
5576  (eval "$ac_compile") 2>conftest.er1
5577  ac_status=$?
5578  grep -v '^ *+' conftest.er1 >conftest.err
5579  rm -f conftest.er1
5580  cat conftest.err >&5
5581  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582  (exit $ac_status); } && {
5583	 test -z "$ac_cxx_werror_flag" ||
5584	 test ! -s conftest.err
5585       } && test -s conftest.$ac_objext; then
5586  ac_cv_prog_cxx_g=yes
5587else
5588  $as_echo "$as_me: failed program was:" >&5
5589sed 's/^/| /' conftest.$ac_ext >&5
5590
5591	CXXFLAGS=""
5592      cat >conftest.$ac_ext <<_ACEOF
5593/* confdefs.h.  */
5594_ACEOF
5595cat confdefs.h >>conftest.$ac_ext
5596cat >>conftest.$ac_ext <<_ACEOF
5597/* end confdefs.h.  */
5598
5599int
5600main ()
5601{
5602
5603  ;
5604  return 0;
5605}
5606_ACEOF
5607rm -f conftest.$ac_objext
5608if { (ac_try="$ac_compile"
5609case "(($ac_try" in
5610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611  *) ac_try_echo=$ac_try;;
5612esac
5613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5614$as_echo "$ac_try_echo") >&5
5615  (eval "$ac_compile") 2>conftest.er1
5616  ac_status=$?
5617  grep -v '^ *+' conftest.er1 >conftest.err
5618  rm -f conftest.er1
5619  cat conftest.err >&5
5620  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621  (exit $ac_status); } && {
5622	 test -z "$ac_cxx_werror_flag" ||
5623	 test ! -s conftest.err
5624       } && test -s conftest.$ac_objext; then
5625  :
5626else
5627  $as_echo "$as_me: failed program was:" >&5
5628sed 's/^/| /' conftest.$ac_ext >&5
5629
5630	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5631	 CXXFLAGS="-g"
5632	 cat >conftest.$ac_ext <<_ACEOF
5633/* confdefs.h.  */
5634_ACEOF
5635cat confdefs.h >>conftest.$ac_ext
5636cat >>conftest.$ac_ext <<_ACEOF
5637/* end confdefs.h.  */
5638
5639int
5640main ()
5641{
5642
5643  ;
5644  return 0;
5645}
5646_ACEOF
5647rm -f conftest.$ac_objext
5648if { (ac_try="$ac_compile"
5649case "(($ac_try" in
5650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651  *) ac_try_echo=$ac_try;;
5652esac
5653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5654$as_echo "$ac_try_echo") >&5
5655  (eval "$ac_compile") 2>conftest.er1
5656  ac_status=$?
5657  grep -v '^ *+' conftest.er1 >conftest.err
5658  rm -f conftest.er1
5659  cat conftest.err >&5
5660  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661  (exit $ac_status); } && {
5662	 test -z "$ac_cxx_werror_flag" ||
5663	 test ! -s conftest.err
5664       } && test -s conftest.$ac_objext; then
5665  ac_cv_prog_cxx_g=yes
5666else
5667  $as_echo "$as_me: failed program was:" >&5
5668sed 's/^/| /' conftest.$ac_ext >&5
5669
5670
5671fi
5672
5673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674fi
5675
5676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677fi
5678
5679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5681fi
5682{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5683$as_echo "$ac_cv_prog_cxx_g" >&6; }
5684if test "$ac_test_CXXFLAGS" = set; then
5685  CXXFLAGS=$ac_save_CXXFLAGS
5686elif test $ac_cv_prog_cxx_g = yes; then
5687  if test "$GXX" = yes; then
5688    CXXFLAGS="-g -O2"
5689  else
5690    CXXFLAGS="-g"
5691  fi
5692else
5693  if test "$GXX" = yes; then
5694    CXXFLAGS="-O2"
5695  else
5696    CXXFLAGS=
5697  fi
5698fi
5699ac_ext=cpp
5700ac_cpp='$CXXCPP $CPPFLAGS'
5701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5704
5705depcc="$CXX"  am_compiler_list=
5706
5707{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5708$as_echo_n "checking dependency style of $depcc... " >&6; }
5709if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5710  $as_echo_n "(cached) " >&6
5711else
5712  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5713  # We make a subdir and do the tests there.  Otherwise we can end up
5714  # making bogus files that we don't know about and never remove.  For
5715  # instance it was reported that on HP-UX the gcc test will end up
5716  # making a dummy file named `D' -- because `-MD' means `put the output
5717  # in D'.
5718  mkdir conftest.dir
5719  # Copy depcomp to subdir because otherwise we won't find it if we're
5720  # using a relative directory.
5721  cp "$am_depcomp" conftest.dir
5722  cd conftest.dir
5723  # We will build objects and dependencies in a subdirectory because
5724  # it helps to detect inapplicable dependency modes.  For instance
5725  # both Tru64's cc and ICC support -MD to output dependencies as a
5726  # side effect of compilation, but ICC will put the dependencies in
5727  # the current directory while Tru64 will put them in the object
5728  # directory.
5729  mkdir sub
5730
5731  am_cv_CXX_dependencies_compiler_type=none
5732  if test "$am_compiler_list" = ""; then
5733     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5734  fi
5735  for depmode in $am_compiler_list; do
5736    # Setup a source with many dependencies, because some compilers
5737    # like to wrap large dependency lists on column 80 (with \), and
5738    # we should not choose a depcomp mode which is confused by this.
5739    #
5740    # We need to recreate these files for each test, as the compiler may
5741    # overwrite some of them when testing with obscure command lines.
5742    # This happens at least with the AIX C compiler.
5743    : > sub/conftest.c
5744    for i in 1 2 3 4 5 6; do
5745      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5746      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5747      # Solaris 8's {/usr,}/bin/sh.
5748      touch sub/conftst$i.h
5749    done
5750    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5751
5752    case $depmode in
5753    nosideeffect)
5754      # after this tag, mechanisms are not by side-effect, so they'll
5755      # only be used when explicitly requested
5756      if test "x$enable_dependency_tracking" = xyes; then
5757	continue
5758      else
5759	break
5760      fi
5761      ;;
5762    none) break ;;
5763    esac
5764    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5765    # mode.  It turns out that the SunPro C++ compiler does not properly
5766    # handle `-M -o', and we need to detect this.
5767    if depmode=$depmode \
5768       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5769       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5770       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5771         >/dev/null 2>conftest.err &&
5772       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5773       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5774       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5775       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5776      # icc doesn't choke on unknown options, it will just issue warnings
5777      # or remarks (even with -Werror).  So we grep stderr for any message
5778      # that says an option was ignored or not supported.
5779      # When given -MP, icc 7.0 and 7.1 complain thusly:
5780      #   icc: Command line warning: ignoring option '-M'; no argument required
5781      # The diagnosis changed in icc 8.0:
5782      #   icc: Command line remark: option '-MP' not supported
5783      if (grep 'ignoring option' conftest.err ||
5784          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5785        am_cv_CXX_dependencies_compiler_type=$depmode
5786        break
5787      fi
5788    fi
5789  done
5790
5791  cd ..
5792  rm -rf conftest.dir
5793else
5794  am_cv_CXX_dependencies_compiler_type=none
5795fi
5796
5797fi
5798{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5799$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5800CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5801
5802 if
5803  test "x$enable_dependency_tracking" != xno \
5804  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5805  am__fastdepCXX_TRUE=
5806  am__fastdepCXX_FALSE='#'
5807else
5808  am__fastdepCXX_TRUE='#'
5809  am__fastdepCXX_FALSE=
5810fi
5811
5812
5813
5814
5815if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5816    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5817    (test "X$CXX" != "Xg++"))) ; then
5818  ac_ext=cpp
5819ac_cpp='$CXXCPP $CPPFLAGS'
5820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5823{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5824$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5825if test -z "$CXXCPP"; then
5826  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5827  $as_echo_n "(cached) " >&6
5828else
5829      # Double quotes because CXXCPP needs to be expanded
5830    for CXXCPP in "$CXX -E" "/lib/cpp"
5831    do
5832      ac_preproc_ok=false
5833for ac_cxx_preproc_warn_flag in '' yes
5834do
5835  # Use a header file that comes with gcc, so configuring glibc
5836  # with a fresh cross-compiler works.
5837  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5838  # <limits.h> exists even on freestanding compilers.
5839  # On the NeXT, cc -E runs the code through the compiler's parser,
5840  # not just through cpp. "Syntax error" is here to catch this case.
5841  cat >conftest.$ac_ext <<_ACEOF
5842/* confdefs.h.  */
5843_ACEOF
5844cat confdefs.h >>conftest.$ac_ext
5845cat >>conftest.$ac_ext <<_ACEOF
5846/* end confdefs.h.  */
5847#ifdef __STDC__
5848# include <limits.h>
5849#else
5850# include <assert.h>
5851#endif
5852		     Syntax error
5853_ACEOF
5854if { (ac_try="$ac_cpp conftest.$ac_ext"
5855case "(($ac_try" in
5856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857  *) ac_try_echo=$ac_try;;
5858esac
5859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5860$as_echo "$ac_try_echo") >&5
5861  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5862  ac_status=$?
5863  grep -v '^ *+' conftest.er1 >conftest.err
5864  rm -f conftest.er1
5865  cat conftest.err >&5
5866  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867  (exit $ac_status); } >/dev/null && {
5868	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5869	 test ! -s conftest.err
5870       }; then
5871  :
5872else
5873  $as_echo "$as_me: failed program was:" >&5
5874sed 's/^/| /' conftest.$ac_ext >&5
5875
5876  # Broken: fails on valid input.
5877continue
5878fi
5879
5880rm -f conftest.err conftest.$ac_ext
5881
5882  # OK, works on sane cases.  Now check whether nonexistent headers
5883  # can be detected and how.
5884  cat >conftest.$ac_ext <<_ACEOF
5885/* confdefs.h.  */
5886_ACEOF
5887cat confdefs.h >>conftest.$ac_ext
5888cat >>conftest.$ac_ext <<_ACEOF
5889/* end confdefs.h.  */
5890#include <ac_nonexistent.h>
5891_ACEOF
5892if { (ac_try="$ac_cpp conftest.$ac_ext"
5893case "(($ac_try" in
5894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895  *) ac_try_echo=$ac_try;;
5896esac
5897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5898$as_echo "$ac_try_echo") >&5
5899  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5900  ac_status=$?
5901  grep -v '^ *+' conftest.er1 >conftest.err
5902  rm -f conftest.er1
5903  cat conftest.err >&5
5904  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905  (exit $ac_status); } >/dev/null && {
5906	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5907	 test ! -s conftest.err
5908       }; then
5909  # Broken: success on invalid input.
5910continue
5911else
5912  $as_echo "$as_me: failed program was:" >&5
5913sed 's/^/| /' conftest.$ac_ext >&5
5914
5915  # Passes both tests.
5916ac_preproc_ok=:
5917break
5918fi
5919
5920rm -f conftest.err conftest.$ac_ext
5921
5922done
5923# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5924rm -f conftest.err conftest.$ac_ext
5925if $ac_preproc_ok; then
5926  break
5927fi
5928
5929    done
5930    ac_cv_prog_CXXCPP=$CXXCPP
5931
5932fi
5933  CXXCPP=$ac_cv_prog_CXXCPP
5934else
5935  ac_cv_prog_CXXCPP=$CXXCPP
5936fi
5937{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5938$as_echo "$CXXCPP" >&6; }
5939ac_preproc_ok=false
5940for ac_cxx_preproc_warn_flag in '' yes
5941do
5942  # Use a header file that comes with gcc, so configuring glibc
5943  # with a fresh cross-compiler works.
5944  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5945  # <limits.h> exists even on freestanding compilers.
5946  # On the NeXT, cc -E runs the code through the compiler's parser,
5947  # not just through cpp. "Syntax error" is here to catch this case.
5948  cat >conftest.$ac_ext <<_ACEOF
5949/* confdefs.h.  */
5950_ACEOF
5951cat confdefs.h >>conftest.$ac_ext
5952cat >>conftest.$ac_ext <<_ACEOF
5953/* end confdefs.h.  */
5954#ifdef __STDC__
5955# include <limits.h>
5956#else
5957# include <assert.h>
5958#endif
5959		     Syntax error
5960_ACEOF
5961if { (ac_try="$ac_cpp conftest.$ac_ext"
5962case "(($ac_try" in
5963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964  *) ac_try_echo=$ac_try;;
5965esac
5966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5967$as_echo "$ac_try_echo") >&5
5968  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5969  ac_status=$?
5970  grep -v '^ *+' conftest.er1 >conftest.err
5971  rm -f conftest.er1
5972  cat conftest.err >&5
5973  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974  (exit $ac_status); } >/dev/null && {
5975	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5976	 test ! -s conftest.err
5977       }; then
5978  :
5979else
5980  $as_echo "$as_me: failed program was:" >&5
5981sed 's/^/| /' conftest.$ac_ext >&5
5982
5983  # Broken: fails on valid input.
5984continue
5985fi
5986
5987rm -f conftest.err conftest.$ac_ext
5988
5989  # OK, works on sane cases.  Now check whether nonexistent headers
5990  # can be detected and how.
5991  cat >conftest.$ac_ext <<_ACEOF
5992/* confdefs.h.  */
5993_ACEOF
5994cat confdefs.h >>conftest.$ac_ext
5995cat >>conftest.$ac_ext <<_ACEOF
5996/* end confdefs.h.  */
5997#include <ac_nonexistent.h>
5998_ACEOF
5999if { (ac_try="$ac_cpp conftest.$ac_ext"
6000case "(($ac_try" in
6001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002  *) ac_try_echo=$ac_try;;
6003esac
6004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6005$as_echo "$ac_try_echo") >&5
6006  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6007  ac_status=$?
6008  grep -v '^ *+' conftest.er1 >conftest.err
6009  rm -f conftest.er1
6010  cat conftest.err >&5
6011  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012  (exit $ac_status); } >/dev/null && {
6013	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6014	 test ! -s conftest.err
6015       }; then
6016  # Broken: success on invalid input.
6017continue
6018else
6019  $as_echo "$as_me: failed program was:" >&5
6020sed 's/^/| /' conftest.$ac_ext >&5
6021
6022  # Passes both tests.
6023ac_preproc_ok=:
6024break
6025fi
6026
6027rm -f conftest.err conftest.$ac_ext
6028
6029done
6030# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6031rm -f conftest.err conftest.$ac_ext
6032if $ac_preproc_ok; then
6033  :
6034else
6035  { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6036See \`config.log' for more details." >&5
6037$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6038See \`config.log' for more details." >&2;}
6039   { (exit 1); exit 1; }; }
6040fi
6041
6042ac_ext=cpp
6043ac_cpp='$CXXCPP $CPPFLAGS'
6044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6047
6048fi
6049
6050
6051ac_ext=f
6052ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6053ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6054ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6055if test -n "$ac_tool_prefix"; then
6056  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
6057  do
6058    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6059set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6060{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6061$as_echo_n "checking for $ac_word... " >&6; }
6062if test "${ac_cv_prog_F77+set}" = set; then
6063  $as_echo_n "(cached) " >&6
6064else
6065  if test -n "$F77"; then
6066  ac_cv_prog_F77="$F77" # Let the user override the test.
6067else
6068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069for as_dir in $PATH
6070do
6071  IFS=$as_save_IFS
6072  test -z "$as_dir" && as_dir=.
6073  for ac_exec_ext in '' $ac_executable_extensions; do
6074  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6075    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6076    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077    break 2
6078  fi
6079done
6080done
6081IFS=$as_save_IFS
6082
6083fi
6084fi
6085F77=$ac_cv_prog_F77
6086if test -n "$F77"; then
6087  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6088$as_echo "$F77" >&6; }
6089else
6090  { $as_echo "$as_me:$LINENO: result: no" >&5
6091$as_echo "no" >&6; }
6092fi
6093
6094
6095    test -n "$F77" && break
6096  done
6097fi
6098if test -z "$F77"; then
6099  ac_ct_F77=$F77
6100  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
6101do
6102  # Extract the first word of "$ac_prog", so it can be a program name with args.
6103set dummy $ac_prog; ac_word=$2
6104{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6105$as_echo_n "checking for $ac_word... " >&6; }
6106if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6107  $as_echo_n "(cached) " >&6
6108else
6109  if test -n "$ac_ct_F77"; then
6110  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6111else
6112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113for as_dir in $PATH
6114do
6115  IFS=$as_save_IFS
6116  test -z "$as_dir" && as_dir=.
6117  for ac_exec_ext in '' $ac_executable_extensions; do
6118  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119    ac_cv_prog_ac_ct_F77="$ac_prog"
6120    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121    break 2
6122  fi
6123done
6124done
6125IFS=$as_save_IFS
6126
6127fi
6128fi
6129ac_ct_F77=$ac_cv_prog_ac_ct_F77
6130if test -n "$ac_ct_F77"; then
6131  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6132$as_echo "$ac_ct_F77" >&6; }
6133else
6134  { $as_echo "$as_me:$LINENO: result: no" >&5
6135$as_echo "no" >&6; }
6136fi
6137
6138
6139  test -n "$ac_ct_F77" && break
6140done
6141
6142  if test "x$ac_ct_F77" = x; then
6143    F77=""
6144  else
6145    case $cross_compiling:$ac_tool_warned in
6146yes:)
6147{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6148whose name does not start with the host triplet.  If you think this
6149configuration is useful to you, please write to autoconf@gnu.org." >&5
6150$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6151whose name does not start with the host triplet.  If you think this
6152configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6153ac_tool_warned=yes ;;
6154esac
6155    F77=$ac_ct_F77
6156  fi
6157fi
6158
6159
6160# Provide some information about the compiler.
6161$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6162set X $ac_compile
6163ac_compiler=$2
6164{ (ac_try="$ac_compiler --version >&5"
6165case "(($ac_try" in
6166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6167  *) ac_try_echo=$ac_try;;
6168esac
6169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6170$as_echo "$ac_try_echo") >&5
6171  (eval "$ac_compiler --version >&5") 2>&5
6172  ac_status=$?
6173  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174  (exit $ac_status); }
6175{ (ac_try="$ac_compiler -v >&5"
6176case "(($ac_try" in
6177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178  *) ac_try_echo=$ac_try;;
6179esac
6180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6181$as_echo "$ac_try_echo") >&5
6182  (eval "$ac_compiler -v >&5") 2>&5
6183  ac_status=$?
6184  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185  (exit $ac_status); }
6186{ (ac_try="$ac_compiler -V >&5"
6187case "(($ac_try" in
6188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189  *) ac_try_echo=$ac_try;;
6190esac
6191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6192$as_echo "$ac_try_echo") >&5
6193  (eval "$ac_compiler -V >&5") 2>&5
6194  ac_status=$?
6195  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196  (exit $ac_status); }
6197rm -f a.out
6198
6199# If we don't use `.F' as extension, the preprocessor is not run on the
6200# input file.  (Note that this only needs to work for GNU compilers.)
6201ac_save_ext=$ac_ext
6202ac_ext=F
6203{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6204$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6205if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6206  $as_echo_n "(cached) " >&6
6207else
6208  cat >conftest.$ac_ext <<_ACEOF
6209      program main
6210#ifndef __GNUC__
6211       choke me
6212#endif
6213
6214      end
6215_ACEOF
6216rm -f conftest.$ac_objext
6217if { (ac_try="$ac_compile"
6218case "(($ac_try" in
6219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220  *) ac_try_echo=$ac_try;;
6221esac
6222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6223$as_echo "$ac_try_echo") >&5
6224  (eval "$ac_compile") 2>conftest.er1
6225  ac_status=$?
6226  grep -v '^ *+' conftest.er1 >conftest.err
6227  rm -f conftest.er1
6228  cat conftest.err >&5
6229  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230  (exit $ac_status); } && {
6231	 test -z "$ac_f77_werror_flag" ||
6232	 test ! -s conftest.err
6233       } && test -s conftest.$ac_objext; then
6234  ac_compiler_gnu=yes
6235else
6236  $as_echo "$as_me: failed program was:" >&5
6237sed 's/^/| /' conftest.$ac_ext >&5
6238
6239	ac_compiler_gnu=no
6240fi
6241
6242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6244
6245fi
6246{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6247$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6248ac_ext=$ac_save_ext
6249ac_test_FFLAGS=${FFLAGS+set}
6250ac_save_FFLAGS=$FFLAGS
6251FFLAGS=
6252{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6253$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6254if test "${ac_cv_prog_f77_g+set}" = set; then
6255  $as_echo_n "(cached) " >&6
6256else
6257  FFLAGS=-g
6258cat >conftest.$ac_ext <<_ACEOF
6259      program main
6260
6261      end
6262_ACEOF
6263rm -f conftest.$ac_objext
6264if { (ac_try="$ac_compile"
6265case "(($ac_try" in
6266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267  *) ac_try_echo=$ac_try;;
6268esac
6269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6270$as_echo "$ac_try_echo") >&5
6271  (eval "$ac_compile") 2>conftest.er1
6272  ac_status=$?
6273  grep -v '^ *+' conftest.er1 >conftest.err
6274  rm -f conftest.er1
6275  cat conftest.err >&5
6276  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277  (exit $ac_status); } && {
6278	 test -z "$ac_f77_werror_flag" ||
6279	 test ! -s conftest.err
6280       } && test -s conftest.$ac_objext; then
6281  ac_cv_prog_f77_g=yes
6282else
6283  $as_echo "$as_me: failed program was:" >&5
6284sed 's/^/| /' conftest.$ac_ext >&5
6285
6286	ac_cv_prog_f77_g=no
6287fi
6288
6289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290
6291fi
6292{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6293$as_echo "$ac_cv_prog_f77_g" >&6; }
6294if test "$ac_test_FFLAGS" = set; then
6295  FFLAGS=$ac_save_FFLAGS
6296elif test $ac_cv_prog_f77_g = yes; then
6297  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6298    FFLAGS="-g -O2"
6299  else
6300    FFLAGS="-g"
6301  fi
6302else
6303  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6304    FFLAGS="-O2"
6305  else
6306    FFLAGS=
6307  fi
6308fi
6309
6310if test $ac_compiler_gnu = yes; then
6311  G77=yes
6312else
6313  G77=
6314fi
6315ac_ext=c
6316ac_cpp='$CPP $CPPFLAGS'
6317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6319ac_compiler_gnu=$ac_cv_c_compiler_gnu
6320
6321
6322
6323# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6324# find the maximum length of command line arguments
6325{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6326$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6327if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6328  $as_echo_n "(cached) " >&6
6329else
6330    i=0
6331  teststring="ABCD"
6332
6333  case $build_os in
6334  msdosdjgpp*)
6335    # On DJGPP, this test can blow up pretty badly due to problems in libc
6336    # (any single argument exceeding 2000 bytes causes a buffer overrun
6337    # during glob expansion).  Even if it were fixed, the result of this
6338    # check would be larger than it should be.
6339    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6340    ;;
6341
6342  gnu*)
6343    # Under GNU Hurd, this test is not required because there is
6344    # no limit to the length of command line arguments.
6345    # Libtool will interpret -1 as no limit whatsoever
6346    lt_cv_sys_max_cmd_len=-1;
6347    ;;
6348
6349  cygwin* | mingw*)
6350    # On Win9x/ME, this test blows up -- it succeeds, but takes
6351    # about 5 minutes as the teststring grows exponentially.
6352    # Worse, since 9x/ME are not pre-emptively multitasking,
6353    # you end up with a "frozen" computer, even though with patience
6354    # the test eventually succeeds (with a max line length of 256k).
6355    # Instead, let's just punt: use the minimum linelength reported by
6356    # all of the supported platforms: 8192 (on NT/2K/XP).
6357    lt_cv_sys_max_cmd_len=8192;
6358    ;;
6359
6360  amigaos*)
6361    # On AmigaOS with pdksh, this test takes hours, literally.
6362    # So we just punt and use a minimum line length of 8192.
6363    lt_cv_sys_max_cmd_len=8192;
6364    ;;
6365
6366  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6367    # This has been around since 386BSD, at least.  Likely further.
6368    if test -x /sbin/sysctl; then
6369      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6370    elif test -x /usr/sbin/sysctl; then
6371      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6372    else
6373      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6374    fi
6375    # And add a safety zone
6376    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6377    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6378    ;;
6379
6380  interix*)
6381    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6382    lt_cv_sys_max_cmd_len=196608
6383    ;;
6384
6385  osf*)
6386    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6387    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6388    # nice to cause kernel panics so lets avoid the loop below.
6389    # First set a reasonable default.
6390    lt_cv_sys_max_cmd_len=16384
6391    #
6392    if test -x /sbin/sysconfig; then
6393      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6394        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6395      esac
6396    fi
6397    ;;
6398  sco3.2v5*)
6399    lt_cv_sys_max_cmd_len=102400
6400    ;;
6401  sysv5* | sco5v6* | sysv4.2uw2*)
6402    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6403    if test -n "$kargmax"; then
6404      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6405    else
6406      lt_cv_sys_max_cmd_len=32768
6407    fi
6408    ;;
6409  *)
6410    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6411    if test -n "$lt_cv_sys_max_cmd_len"; then
6412      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6413      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6414    else
6415      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6416      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6417	       = "XX$teststring") >/dev/null 2>&1 &&
6418	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6419	      lt_cv_sys_max_cmd_len=$new_result &&
6420	      test $i != 17 # 1/2 MB should be enough
6421      do
6422        i=`expr $i + 1`
6423        teststring=$teststring$teststring
6424      done
6425      teststring=
6426      # Add a significant safety factor because C++ compilers can tack on massive
6427      # amounts of additional arguments before passing them to the linker.
6428      # It appears as though 1/2 is a usable value.
6429      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6430    fi
6431    ;;
6432  esac
6433
6434fi
6435
6436if test -n $lt_cv_sys_max_cmd_len ; then
6437  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6438$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6439else
6440  { $as_echo "$as_me:$LINENO: result: none" >&5
6441$as_echo "none" >&6; }
6442fi
6443
6444
6445
6446
6447
6448# Check for command to grab the raw symbol name followed by C symbol from nm.
6449{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6450$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6451if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6452  $as_echo_n "(cached) " >&6
6453else
6454
6455# These are sane defaults that work on at least a few old systems.
6456# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6457
6458# Character class describing NM global symbol codes.
6459symcode='[BCDEGRST]'
6460
6461# Regexp to match symbols that can be accessed directly from C.
6462sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6463
6464# Transform an extracted symbol line into a proper C declaration
6465lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6466
6467# Transform an extracted symbol line into symbol name and symbol address
6468lt_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'"
6469
6470# Define system-specific variables.
6471case $host_os in
6472aix*)
6473  symcode='[BCDT]'
6474  ;;
6475cygwin* | mingw* | pw32*)
6476  symcode='[ABCDGISTW]'
6477  ;;
6478hpux*) # Its linker distinguishes data from code symbols
6479  if test "$host_cpu" = ia64; then
6480    symcode='[ABCDEGRST]'
6481  fi
6482  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6483  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'"
6484  ;;
6485linux* | k*bsd*-gnu)
6486  if test "$host_cpu" = ia64; then
6487    symcode='[ABCDGIRSTW]'
6488    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6489    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'"
6490  fi
6491  ;;
6492irix* | nonstopux*)
6493  symcode='[BCDEGRST]'
6494  ;;
6495osf*)
6496  symcode='[BCDEGQRST]'
6497  ;;
6498solaris*)
6499  symcode='[BDRT]'
6500  ;;
6501sco3.2v5*)
6502  symcode='[DT]'
6503  ;;
6504sysv4.2uw2*)
6505  symcode='[DT]'
6506  ;;
6507sysv5* | sco5v6* | unixware* | OpenUNIX*)
6508  symcode='[ABDT]'
6509  ;;
6510sysv4)
6511  symcode='[DFNSTU]'
6512  ;;
6513esac
6514
6515# Handle CRLF in mingw tool chain
6516opt_cr=
6517case $build_os in
6518mingw*)
6519  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6520  ;;
6521esac
6522
6523# If we're using GNU nm, then use its standard symbol codes.
6524case `$NM -V 2>&1` in
6525*GNU* | *'with BFD'*)
6526  symcode='[ABCDGIRSTW]' ;;
6527esac
6528
6529# Try without a prefix undercore, then with it.
6530for ac_symprfx in "" "_"; do
6531
6532  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6533  symxfrm="\\1 $ac_symprfx\\2 \\2"
6534
6535  # Write the raw and C identifiers.
6536  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6537
6538  # Check to see that the pipe works correctly.
6539  pipe_works=no
6540
6541  rm -f conftest*
6542  cat > conftest.$ac_ext <<EOF
6543#ifdef __cplusplus
6544extern "C" {
6545#endif
6546char nm_test_var;
6547void nm_test_func(){}
6548#ifdef __cplusplus
6549}
6550#endif
6551int main(){nm_test_var='a';nm_test_func();return(0);}
6552EOF
6553
6554  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555  (eval $ac_compile) 2>&5
6556  ac_status=$?
6557  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558  (exit $ac_status); }; then
6559    # Now try to grab the symbols.
6560    nlist=conftest.nm
6561    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6562  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6563  ac_status=$?
6564  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565  (exit $ac_status); } && test -s "$nlist"; then
6566      # Try sorting and uniquifying the output.
6567      if sort "$nlist" | uniq > "$nlist"T; then
6568	mv -f "$nlist"T "$nlist"
6569      else
6570	rm -f "$nlist"T
6571      fi
6572
6573      # Make sure that we snagged all the symbols we need.
6574      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6575	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6576	  cat <<EOF > conftest.$ac_ext
6577#ifdef __cplusplus
6578extern "C" {
6579#endif
6580
6581EOF
6582	  # Now generate the symbol file.
6583	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6584
6585	  cat <<EOF >> conftest.$ac_ext
6586#if defined (__STDC__) && __STDC__
6587# define lt_ptr_t void *
6588#else
6589# define lt_ptr_t char *
6590# define const
6591#endif
6592
6593/* The mapping between symbol names and symbols. */
6594const struct {
6595  const char *name;
6596  lt_ptr_t address;
6597}
6598lt_preloaded_symbols[] =
6599{
6600EOF
6601	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6602	  cat <<\EOF >> conftest.$ac_ext
6603  {0, (lt_ptr_t) 0}
6604};
6605
6606#ifdef __cplusplus
6607}
6608#endif
6609EOF
6610	  # Now try linking the two files.
6611	  mv conftest.$ac_objext conftstm.$ac_objext
6612	  lt_save_LIBS="$LIBS"
6613	  lt_save_CFLAGS="$CFLAGS"
6614	  LIBS="conftstm.$ac_objext"
6615	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6616	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6617  (eval $ac_link) 2>&5
6618  ac_status=$?
6619  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6621	    pipe_works=yes
6622	  fi
6623	  LIBS="$lt_save_LIBS"
6624	  CFLAGS="$lt_save_CFLAGS"
6625	else
6626	  echo "cannot find nm_test_func in $nlist" >&5
6627	fi
6628      else
6629	echo "cannot find nm_test_var in $nlist" >&5
6630      fi
6631    else
6632      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6633    fi
6634  else
6635    echo "$progname: failed program was:" >&5
6636    cat conftest.$ac_ext >&5
6637  fi
6638  rm -rf conftest* conftst*
6639
6640  # Do not use the global_symbol_pipe unless it works.
6641  if test "$pipe_works" = yes; then
6642    break
6643  else
6644    lt_cv_sys_global_symbol_pipe=
6645  fi
6646done
6647
6648fi
6649
6650if test -z "$lt_cv_sys_global_symbol_pipe"; then
6651  lt_cv_sys_global_symbol_to_cdecl=
6652fi
6653if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6654  { $as_echo "$as_me:$LINENO: result: failed" >&5
6655$as_echo "failed" >&6; }
6656else
6657  { $as_echo "$as_me:$LINENO: result: ok" >&5
6658$as_echo "ok" >&6; }
6659fi
6660
6661{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6662$as_echo_n "checking for objdir... " >&6; }
6663if test "${lt_cv_objdir+set}" = set; then
6664  $as_echo_n "(cached) " >&6
6665else
6666  rm -f .libs 2>/dev/null
6667mkdir .libs 2>/dev/null
6668if test -d .libs; then
6669  lt_cv_objdir=.libs
6670else
6671  # MS-DOS does not allow filenames that begin with a dot.
6672  lt_cv_objdir=_libs
6673fi
6674rmdir .libs 2>/dev/null
6675fi
6676{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6677$as_echo "$lt_cv_objdir" >&6; }
6678objdir=$lt_cv_objdir
6679
6680
6681
6682
6683
6684case $host_os in
6685aix3*)
6686  # AIX sometimes has problems with the GCC collect2 program.  For some
6687  # reason, if we set the COLLECT_NAMES environment variable, the problems
6688  # vanish in a puff of smoke.
6689  if test "X${COLLECT_NAMES+set}" != Xset; then
6690    COLLECT_NAMES=
6691    export COLLECT_NAMES
6692  fi
6693  ;;
6694esac
6695
6696# Sed substitution that helps us do robust quoting.  It backslashifies
6697# metacharacters that are still active within double-quoted strings.
6698Xsed='sed -e 1s/^X//'
6699sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6700
6701# Same as above, but do not quote variable references.
6702double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6703
6704# Sed substitution to delay expansion of an escaped shell variable in a
6705# double_quote_subst'ed string.
6706delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6707
6708# Sed substitution to avoid accidental globbing in evaled expressions
6709no_glob_subst='s/\*/\\\*/g'
6710
6711# Constants:
6712rm="rm -f"
6713
6714# Global variables:
6715default_ofile=libtool
6716can_build_shared=yes
6717
6718# All known linkers require a `.a' archive for static linking (except MSVC,
6719# which needs '.lib').
6720libext=a
6721ltmain="$ac_aux_dir/ltmain.sh"
6722ofile="$default_ofile"
6723with_gnu_ld="$lt_cv_prog_gnu_ld"
6724
6725if test -n "$ac_tool_prefix"; then
6726  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6727set dummy ${ac_tool_prefix}ar; ac_word=$2
6728{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6729$as_echo_n "checking for $ac_word... " >&6; }
6730if test "${ac_cv_prog_AR+set}" = set; then
6731  $as_echo_n "(cached) " >&6
6732else
6733  if test -n "$AR"; then
6734  ac_cv_prog_AR="$AR" # Let the user override the test.
6735else
6736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739  IFS=$as_save_IFS
6740  test -z "$as_dir" && as_dir=.
6741  for ac_exec_ext in '' $ac_executable_extensions; do
6742  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6743    ac_cv_prog_AR="${ac_tool_prefix}ar"
6744    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745    break 2
6746  fi
6747done
6748done
6749IFS=$as_save_IFS
6750
6751fi
6752fi
6753AR=$ac_cv_prog_AR
6754if test -n "$AR"; then
6755  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6756$as_echo "$AR" >&6; }
6757else
6758  { $as_echo "$as_me:$LINENO: result: no" >&5
6759$as_echo "no" >&6; }
6760fi
6761
6762
6763fi
6764if test -z "$ac_cv_prog_AR"; then
6765  ac_ct_AR=$AR
6766  # Extract the first word of "ar", so it can be a program name with args.
6767set dummy ar; ac_word=$2
6768{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6769$as_echo_n "checking for $ac_word... " >&6; }
6770if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6771  $as_echo_n "(cached) " >&6
6772else
6773  if test -n "$ac_ct_AR"; then
6774  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6775else
6776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777for as_dir in $PATH
6778do
6779  IFS=$as_save_IFS
6780  test -z "$as_dir" && as_dir=.
6781  for ac_exec_ext in '' $ac_executable_extensions; do
6782  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6783    ac_cv_prog_ac_ct_AR="ar"
6784    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785    break 2
6786  fi
6787done
6788done
6789IFS=$as_save_IFS
6790
6791fi
6792fi
6793ac_ct_AR=$ac_cv_prog_ac_ct_AR
6794if test -n "$ac_ct_AR"; then
6795  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6796$as_echo "$ac_ct_AR" >&6; }
6797else
6798  { $as_echo "$as_me:$LINENO: result: no" >&5
6799$as_echo "no" >&6; }
6800fi
6801
6802  if test "x$ac_ct_AR" = x; then
6803    AR="false"
6804  else
6805    case $cross_compiling:$ac_tool_warned in
6806yes:)
6807{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6808whose name does not start with the host triplet.  If you think this
6809configuration is useful to you, please write to autoconf@gnu.org." >&5
6810$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6811whose name does not start with the host triplet.  If you think this
6812configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6813ac_tool_warned=yes ;;
6814esac
6815    AR=$ac_ct_AR
6816  fi
6817else
6818  AR="$ac_cv_prog_AR"
6819fi
6820
6821if test -n "$ac_tool_prefix"; then
6822  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6823set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6824{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6825$as_echo_n "checking for $ac_word... " >&6; }
6826if test "${ac_cv_prog_RANLIB+set}" = set; then
6827  $as_echo_n "(cached) " >&6
6828else
6829  if test -n "$RANLIB"; then
6830  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6831else
6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835  IFS=$as_save_IFS
6836  test -z "$as_dir" && as_dir=.
6837  for ac_exec_ext in '' $ac_executable_extensions; do
6838  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6840    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841    break 2
6842  fi
6843done
6844done
6845IFS=$as_save_IFS
6846
6847fi
6848fi
6849RANLIB=$ac_cv_prog_RANLIB
6850if test -n "$RANLIB"; then
6851  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6852$as_echo "$RANLIB" >&6; }
6853else
6854  { $as_echo "$as_me:$LINENO: result: no" >&5
6855$as_echo "no" >&6; }
6856fi
6857
6858
6859fi
6860if test -z "$ac_cv_prog_RANLIB"; then
6861  ac_ct_RANLIB=$RANLIB
6862  # Extract the first word of "ranlib", so it can be a program name with args.
6863set dummy ranlib; ac_word=$2
6864{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6865$as_echo_n "checking for $ac_word... " >&6; }
6866if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6867  $as_echo_n "(cached) " >&6
6868else
6869  if test -n "$ac_ct_RANLIB"; then
6870  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6871else
6872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873for as_dir in $PATH
6874do
6875  IFS=$as_save_IFS
6876  test -z "$as_dir" && as_dir=.
6877  for ac_exec_ext in '' $ac_executable_extensions; do
6878  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6879    ac_cv_prog_ac_ct_RANLIB="ranlib"
6880    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881    break 2
6882  fi
6883done
6884done
6885IFS=$as_save_IFS
6886
6887fi
6888fi
6889ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6890if test -n "$ac_ct_RANLIB"; then
6891  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6892$as_echo "$ac_ct_RANLIB" >&6; }
6893else
6894  { $as_echo "$as_me:$LINENO: result: no" >&5
6895$as_echo "no" >&6; }
6896fi
6897
6898  if test "x$ac_ct_RANLIB" = x; then
6899    RANLIB=":"
6900  else
6901    case $cross_compiling:$ac_tool_warned in
6902yes:)
6903{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6904whose name does not start with the host triplet.  If you think this
6905configuration is useful to you, please write to autoconf@gnu.org." >&5
6906$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6907whose name does not start with the host triplet.  If you think this
6908configuration is useful to you, please write to autoconf@gnu.org." >&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: In the future, Autoconf will not detect cross-tools
7000whose name does not start with the host triplet.  If you think this
7001configuration is useful to you, please write to autoconf@gnu.org." >&5
7002$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7003whose name does not start with the host triplet.  If you think this
7004configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7005ac_tool_warned=yes ;;
7006esac
7007    STRIP=$ac_ct_STRIP
7008  fi
7009else
7010  STRIP="$ac_cv_prog_STRIP"
7011fi
7012
7013
7014old_CC="$CC"
7015old_CFLAGS="$CFLAGS"
7016
7017# Set sane defaults for various variables
7018test -z "$AR" && AR=ar
7019test -z "$AR_FLAGS" && AR_FLAGS=cru
7020test -z "$AS" && AS=as
7021test -z "$CC" && CC=cc
7022test -z "$LTCC" && LTCC=$CC
7023test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7024test -z "$DLLTOOL" && DLLTOOL=dlltool
7025test -z "$LD" && LD=ld
7026test -z "$LN_S" && LN_S="ln -s"
7027test -z "$MAGIC_CMD" && MAGIC_CMD=file
7028test -z "$NM" && NM=nm
7029test -z "$SED" && SED=sed
7030test -z "$OBJDUMP" && OBJDUMP=objdump
7031test -z "$RANLIB" && RANLIB=:
7032test -z "$STRIP" && STRIP=:
7033test -z "$ac_objext" && ac_objext=o
7034
7035# Determine commands to create old-style static archives.
7036old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7037old_postinstall_cmds='chmod 644 $oldlib'
7038old_postuninstall_cmds=
7039
7040if test -n "$RANLIB"; then
7041  case $host_os in
7042  openbsd*)
7043    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7044    ;;
7045  *)
7046    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7047    ;;
7048  esac
7049  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7050fi
7051
7052for cc_temp in $compiler""; do
7053  case $cc_temp in
7054    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7055    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7056    \-*) ;;
7057    *) break;;
7058  esac
7059done
7060cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7061
7062
7063# Only perform the check for file, if the check method requires it
7064case $deplibs_check_method in
7065file_magic*)
7066  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7067    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7068$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7069if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7070  $as_echo_n "(cached) " >&6
7071else
7072  case $MAGIC_CMD in
7073[\\/*] |  ?:[\\/]*)
7074  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7075  ;;
7076*)
7077  lt_save_MAGIC_CMD="$MAGIC_CMD"
7078  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7079  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7080  for ac_dir in $ac_dummy; do
7081    IFS="$lt_save_ifs"
7082    test -z "$ac_dir" && ac_dir=.
7083    if test -f $ac_dir/${ac_tool_prefix}file; then
7084      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7085      if test -n "$file_magic_test_file"; then
7086	case $deplibs_check_method in
7087	"file_magic "*)
7088	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7089	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7090	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7091	    $EGREP "$file_magic_regex" > /dev/null; then
7092	    :
7093	  else
7094	    cat <<EOF 1>&2
7095
7096*** Warning: the command libtool uses to detect shared libraries,
7097*** $file_magic_cmd, produces output that libtool cannot recognize.
7098*** The result is that libtool may fail to recognize shared libraries
7099*** as such.  This will affect the creation of libtool libraries that
7100*** depend on shared libraries, but programs linked with such libtool
7101*** libraries will work regardless of this problem.  Nevertheless, you
7102*** may want to report the problem to your system manager and/or to
7103*** bug-libtool@gnu.org
7104
7105EOF
7106	  fi ;;
7107	esac
7108      fi
7109      break
7110    fi
7111  done
7112  IFS="$lt_save_ifs"
7113  MAGIC_CMD="$lt_save_MAGIC_CMD"
7114  ;;
7115esac
7116fi
7117
7118MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7119if test -n "$MAGIC_CMD"; then
7120  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7121$as_echo "$MAGIC_CMD" >&6; }
7122else
7123  { $as_echo "$as_me:$LINENO: result: no" >&5
7124$as_echo "no" >&6; }
7125fi
7126
7127if test -z "$lt_cv_path_MAGIC_CMD"; then
7128  if test -n "$ac_tool_prefix"; then
7129    { $as_echo "$as_me:$LINENO: checking for file" >&5
7130$as_echo_n "checking for file... " >&6; }
7131if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7132  $as_echo_n "(cached) " >&6
7133else
7134  case $MAGIC_CMD in
7135[\\/*] |  ?:[\\/]*)
7136  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7137  ;;
7138*)
7139  lt_save_MAGIC_CMD="$MAGIC_CMD"
7140  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7141  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7142  for ac_dir in $ac_dummy; do
7143    IFS="$lt_save_ifs"
7144    test -z "$ac_dir" && ac_dir=.
7145    if test -f $ac_dir/file; then
7146      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7147      if test -n "$file_magic_test_file"; then
7148	case $deplibs_check_method in
7149	"file_magic "*)
7150	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7151	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7152	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7153	    $EGREP "$file_magic_regex" > /dev/null; then
7154	    :
7155	  else
7156	    cat <<EOF 1>&2
7157
7158*** Warning: the command libtool uses to detect shared libraries,
7159*** $file_magic_cmd, produces output that libtool cannot recognize.
7160*** The result is that libtool may fail to recognize shared libraries
7161*** as such.  This will affect the creation of libtool libraries that
7162*** depend on shared libraries, but programs linked with such libtool
7163*** libraries will work regardless of this problem.  Nevertheless, you
7164*** may want to report the problem to your system manager and/or to
7165*** bug-libtool@gnu.org
7166
7167EOF
7168	  fi ;;
7169	esac
7170      fi
7171      break
7172    fi
7173  done
7174  IFS="$lt_save_ifs"
7175  MAGIC_CMD="$lt_save_MAGIC_CMD"
7176  ;;
7177esac
7178fi
7179
7180MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7181if test -n "$MAGIC_CMD"; then
7182  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7183$as_echo "$MAGIC_CMD" >&6; }
7184else
7185  { $as_echo "$as_me:$LINENO: result: no" >&5
7186$as_echo "no" >&6; }
7187fi
7188
7189  else
7190    MAGIC_CMD=:
7191  fi
7192fi
7193
7194  fi
7195  ;;
7196esac
7197
7198
7199  case $host_os in
7200    rhapsody* | darwin*)
7201    if test -n "$ac_tool_prefix"; then
7202  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7203set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7204{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7205$as_echo_n "checking for $ac_word... " >&6; }
7206if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7207  $as_echo_n "(cached) " >&6
7208else
7209  if test -n "$DSYMUTIL"; then
7210  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7211else
7212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213for as_dir in $PATH
7214do
7215  IFS=$as_save_IFS
7216  test -z "$as_dir" && as_dir=.
7217  for ac_exec_ext in '' $ac_executable_extensions; do
7218  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7219    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7220    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221    break 2
7222  fi
7223done
7224done
7225IFS=$as_save_IFS
7226
7227fi
7228fi
7229DSYMUTIL=$ac_cv_prog_DSYMUTIL
7230if test -n "$DSYMUTIL"; then
7231  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7232$as_echo "$DSYMUTIL" >&6; }
7233else
7234  { $as_echo "$as_me:$LINENO: result: no" >&5
7235$as_echo "no" >&6; }
7236fi
7237
7238
7239fi
7240if test -z "$ac_cv_prog_DSYMUTIL"; then
7241  ac_ct_DSYMUTIL=$DSYMUTIL
7242  # Extract the first word of "dsymutil", so it can be a program name with args.
7243set dummy dsymutil; ac_word=$2
7244{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7245$as_echo_n "checking for $ac_word... " >&6; }
7246if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7247  $as_echo_n "(cached) " >&6
7248else
7249  if test -n "$ac_ct_DSYMUTIL"; then
7250  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7251else
7252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253for as_dir in $PATH
7254do
7255  IFS=$as_save_IFS
7256  test -z "$as_dir" && as_dir=.
7257  for ac_exec_ext in '' $ac_executable_extensions; do
7258  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7260    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261    break 2
7262  fi
7263done
7264done
7265IFS=$as_save_IFS
7266
7267fi
7268fi
7269ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7270if test -n "$ac_ct_DSYMUTIL"; then
7271  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7272$as_echo "$ac_ct_DSYMUTIL" >&6; }
7273else
7274  { $as_echo "$as_me:$LINENO: result: no" >&5
7275$as_echo "no" >&6; }
7276fi
7277
7278  if test "x$ac_ct_DSYMUTIL" = x; then
7279    DSYMUTIL=":"
7280  else
7281    case $cross_compiling:$ac_tool_warned in
7282yes:)
7283{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7284whose name does not start with the host triplet.  If you think this
7285configuration is useful to you, please write to autoconf@gnu.org." >&5
7286$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7287whose name does not start with the host triplet.  If you think this
7288configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7289ac_tool_warned=yes ;;
7290esac
7291    DSYMUTIL=$ac_ct_DSYMUTIL
7292  fi
7293else
7294  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7295fi
7296
7297    if test -n "$ac_tool_prefix"; then
7298  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7299set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7300{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7301$as_echo_n "checking for $ac_word... " >&6; }
7302if test "${ac_cv_prog_NMEDIT+set}" = set; then
7303  $as_echo_n "(cached) " >&6
7304else
7305  if test -n "$NMEDIT"; then
7306  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7307else
7308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311  IFS=$as_save_IFS
7312  test -z "$as_dir" && as_dir=.
7313  for ac_exec_ext in '' $ac_executable_extensions; do
7314  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7315    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7316    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317    break 2
7318  fi
7319done
7320done
7321IFS=$as_save_IFS
7322
7323fi
7324fi
7325NMEDIT=$ac_cv_prog_NMEDIT
7326if test -n "$NMEDIT"; then
7327  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7328$as_echo "$NMEDIT" >&6; }
7329else
7330  { $as_echo "$as_me:$LINENO: result: no" >&5
7331$as_echo "no" >&6; }
7332fi
7333
7334
7335fi
7336if test -z "$ac_cv_prog_NMEDIT"; then
7337  ac_ct_NMEDIT=$NMEDIT
7338  # Extract the first word of "nmedit", so it can be a program name with args.
7339set dummy nmedit; ac_word=$2
7340{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7341$as_echo_n "checking for $ac_word... " >&6; }
7342if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7343  $as_echo_n "(cached) " >&6
7344else
7345  if test -n "$ac_ct_NMEDIT"; then
7346  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7347else
7348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349for as_dir in $PATH
7350do
7351  IFS=$as_save_IFS
7352  test -z "$as_dir" && as_dir=.
7353  for ac_exec_ext in '' $ac_executable_extensions; do
7354  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7355    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7356    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7357    break 2
7358  fi
7359done
7360done
7361IFS=$as_save_IFS
7362
7363fi
7364fi
7365ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7366if test -n "$ac_ct_NMEDIT"; then
7367  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7368$as_echo "$ac_ct_NMEDIT" >&6; }
7369else
7370  { $as_echo "$as_me:$LINENO: result: no" >&5
7371$as_echo "no" >&6; }
7372fi
7373
7374  if test "x$ac_ct_NMEDIT" = x; then
7375    NMEDIT=":"
7376  else
7377    case $cross_compiling:$ac_tool_warned in
7378yes:)
7379{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7380whose name does not start with the host triplet.  If you think this
7381configuration is useful to you, please write to autoconf@gnu.org." >&5
7382$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7383whose name does not start with the host triplet.  If you think this
7384configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7385ac_tool_warned=yes ;;
7386esac
7387    NMEDIT=$ac_ct_NMEDIT
7388  fi
7389else
7390  NMEDIT="$ac_cv_prog_NMEDIT"
7391fi
7392
7393
7394    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7395$as_echo_n "checking for -single_module linker flag... " >&6; }
7396if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7397  $as_echo_n "(cached) " >&6
7398else
7399  lt_cv_apple_cc_single_mod=no
7400      if test -z "${LT_MULTI_MODULE}"; then
7401   # By default we will add the -single_module flag. You can override
7402   # by either setting the environment variable LT_MULTI_MODULE
7403   # non-empty at configure time, or by adding -multi_module to the
7404   # link flags.
7405   echo "int foo(void){return 1;}" > conftest.c
7406   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7407     -dynamiclib ${wl}-single_module conftest.c
7408   if test -f libconftest.dylib; then
7409     lt_cv_apple_cc_single_mod=yes
7410     rm -rf libconftest.dylib*
7411   fi
7412   rm conftest.c
7413      fi
7414fi
7415{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7416$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7417    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7418$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7419if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7420  $as_echo_n "(cached) " >&6
7421else
7422  lt_cv_ld_exported_symbols_list=no
7423      save_LDFLAGS=$LDFLAGS
7424      echo "_main" > conftest.sym
7425      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7426      cat >conftest.$ac_ext <<_ACEOF
7427/* confdefs.h.  */
7428_ACEOF
7429cat confdefs.h >>conftest.$ac_ext
7430cat >>conftest.$ac_ext <<_ACEOF
7431/* end confdefs.h.  */
7432
7433int
7434main ()
7435{
7436
7437  ;
7438  return 0;
7439}
7440_ACEOF
7441rm -f conftest.$ac_objext conftest$ac_exeext
7442if { (ac_try="$ac_link"
7443case "(($ac_try" in
7444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7445  *) ac_try_echo=$ac_try;;
7446esac
7447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7448$as_echo "$ac_try_echo") >&5
7449  (eval "$ac_link") 2>conftest.er1
7450  ac_status=$?
7451  grep -v '^ *+' conftest.er1 >conftest.err
7452  rm -f conftest.er1
7453  cat conftest.err >&5
7454  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455  (exit $ac_status); } && {
7456	 test -z "$ac_c_werror_flag" ||
7457	 test ! -s conftest.err
7458       } && test -s conftest$ac_exeext && {
7459	 test "$cross_compiling" = yes ||
7460	 $as_test_x conftest$ac_exeext
7461       }; then
7462  lt_cv_ld_exported_symbols_list=yes
7463else
7464  $as_echo "$as_me: failed program was:" >&5
7465sed 's/^/| /' conftest.$ac_ext >&5
7466
7467	lt_cv_ld_exported_symbols_list=no
7468fi
7469
7470rm -rf conftest.dSYM
7471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7472      conftest$ac_exeext conftest.$ac_ext
7473   LDFLAGS="$save_LDFLAGS"
7474
7475fi
7476{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7477$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7478    case $host_os in
7479    rhapsody* | darwin1.[0123])
7480      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7481    darwin1.*)
7482     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7483    darwin*)
7484      # if running on 10.5 or later, the deployment target defaults
7485      # to the OS version, if on x86, and 10.4, the deployment
7486      # target defaults to 10.4. Don't you love it?
7487      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7488   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7489     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7490   10.[012]*)
7491     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7492   10.*)
7493     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7494      esac
7495    ;;
7496  esac
7497    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7498      _lt_dar_single_mod='$single_module'
7499    fi
7500    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7501      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7502    else
7503      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7504    fi
7505    if test "$DSYMUTIL" != ":"; then
7506      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7507    else
7508      _lt_dsymutil=
7509    fi
7510    ;;
7511  esac
7512
7513
7514enable_dlopen=no
7515enable_win32_dll=no
7516
7517# Check whether --enable-libtool-lock was given.
7518if test "${enable_libtool_lock+set}" = set; then
7519  enableval=$enable_libtool_lock;
7520fi
7521
7522test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7523
7524
7525# Check whether --with-pic was given.
7526if test "${with_pic+set}" = set; then
7527  withval=$with_pic; pic_mode="$withval"
7528else
7529  pic_mode=default
7530fi
7531
7532test -z "$pic_mode" && pic_mode=default
7533
7534# Use C for the default configuration in the libtool script
7535tagname=
7536lt_save_CC="$CC"
7537ac_ext=c
7538ac_cpp='$CPP $CPPFLAGS'
7539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541ac_compiler_gnu=$ac_cv_c_compiler_gnu
7542
7543
7544# Source file extension for C test sources.
7545ac_ext=c
7546
7547# Object file extension for compiled C test sources.
7548objext=o
7549objext=$objext
7550
7551# Code to be used in simple compile tests
7552lt_simple_compile_test_code="int some_variable = 0;"
7553
7554# Code to be used in simple link tests
7555lt_simple_link_test_code='int main(){return(0);}'
7556
7557
7558# If no C compiler was specified, use CC.
7559LTCC=${LTCC-"$CC"}
7560
7561# If no C compiler flags were specified, use CFLAGS.
7562LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7563
7564# Allow CC to be a program name with arguments.
7565compiler=$CC
7566
7567
7568# save warnings/boilerplate of simple test code
7569ac_outfile=conftest.$ac_objext
7570echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7571eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7572_lt_compiler_boilerplate=`cat conftest.err`
7573$rm conftest*
7574
7575ac_outfile=conftest.$ac_objext
7576echo "$lt_simple_link_test_code" >conftest.$ac_ext
7577eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7578_lt_linker_boilerplate=`cat conftest.err`
7579$rm -r conftest*
7580
7581
7582
7583lt_prog_compiler_no_builtin_flag=
7584
7585if test "$GCC" = yes; then
7586  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7587
7588
7589{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7590$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7591if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7592  $as_echo_n "(cached) " >&6
7593else
7594  lt_cv_prog_compiler_rtti_exceptions=no
7595  ac_outfile=conftest.$ac_objext
7596   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7597   lt_compiler_flag="-fno-rtti -fno-exceptions"
7598   # Insert the option either (1) after the last *FLAGS variable, or
7599   # (2) before a word containing "conftest.", or (3) at the end.
7600   # Note that $ac_compile itself does not contain backslashes and begins
7601   # with a dollar sign (not a hyphen), so the echo should work correctly.
7602   # The option is referenced via a variable to avoid confusing sed.
7603   lt_compile=`echo "$ac_compile" | $SED \
7604   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7605   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7606   -e 's:$: $lt_compiler_flag:'`
7607   (eval echo "\"\$as_me:7607: $lt_compile\"" >&5)
7608   (eval "$lt_compile" 2>conftest.err)
7609   ac_status=$?
7610   cat conftest.err >&5
7611   echo "$as_me:7611: \$? = $ac_status" >&5
7612   if (exit $ac_status) && test -s "$ac_outfile"; then
7613     # The compiler can only warn and ignore the option if not recognized
7614     # So say no if there are warnings other than the usual output.
7615     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7616     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7617     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7618       lt_cv_prog_compiler_rtti_exceptions=yes
7619     fi
7620   fi
7621   $rm conftest*
7622
7623fi
7624{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7625$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7626
7627if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7628    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7629else
7630    :
7631fi
7632
7633fi
7634
7635lt_prog_compiler_wl=
7636lt_prog_compiler_pic=
7637lt_prog_compiler_static=
7638
7639{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7640$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7641
7642  if test "$GCC" = yes; then
7643    lt_prog_compiler_wl='-Wl,'
7644    lt_prog_compiler_static='-static'
7645
7646    case $host_os in
7647      aix*)
7648      # All AIX code is PIC.
7649      if test "$host_cpu" = ia64; then
7650	# AIX 5 now supports IA64 processor
7651	lt_prog_compiler_static='-Bstatic'
7652      fi
7653      ;;
7654
7655    amigaos*)
7656      # FIXME: we need at least 68020 code to build shared libraries, but
7657      # adding the `-m68020' flag to GCC prevents building anything better,
7658      # like `-m68040'.
7659      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7660      ;;
7661
7662    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7663      # PIC is the default for these OSes.
7664      ;;
7665
7666    mingw* | cygwin* | pw32* | os2*)
7667      # This hack is so that the source file can tell whether it is being
7668      # built for inclusion in a dll (and should export symbols for example).
7669      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7670      # (--disable-auto-import) libraries
7671      lt_prog_compiler_pic='-DDLL_EXPORT'
7672      ;;
7673
7674    darwin* | rhapsody*)
7675      # PIC is the default on this platform
7676      # Common symbols not allowed in MH_DYLIB files
7677      lt_prog_compiler_pic='-fno-common'
7678      ;;
7679
7680    interix[3-9]*)
7681      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7682      # Instead, we relocate shared libraries at runtime.
7683      ;;
7684
7685    msdosdjgpp*)
7686      # Just because we use GCC doesn't mean we suddenly get shared libraries
7687      # on systems that don't support them.
7688      lt_prog_compiler_can_build_shared=no
7689      enable_shared=no
7690      ;;
7691
7692    sysv4*MP*)
7693      if test -d /usr/nec; then
7694	lt_prog_compiler_pic=-Kconform_pic
7695      fi
7696      ;;
7697
7698    hpux*)
7699      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7700      # not for PA HP-UX.
7701      case $host_cpu in
7702      hppa*64*|ia64*)
7703	# +Z the default
7704	;;
7705      *)
7706	lt_prog_compiler_pic='-fPIC'
7707	;;
7708      esac
7709      ;;
7710
7711    *)
7712      lt_prog_compiler_pic='-fPIC'
7713      ;;
7714    esac
7715  else
7716    # PORTME Check for flag to pass linker flags through the system compiler.
7717    case $host_os in
7718    aix*)
7719      lt_prog_compiler_wl='-Wl,'
7720      if test "$host_cpu" = ia64; then
7721	# AIX 5 now supports IA64 processor
7722	lt_prog_compiler_static='-Bstatic'
7723      else
7724	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7725      fi
7726      ;;
7727      darwin*)
7728        # PIC is the default on this platform
7729        # Common symbols not allowed in MH_DYLIB files
7730       case $cc_basename in
7731         xlc*)
7732         lt_prog_compiler_pic='-qnocommon'
7733         lt_prog_compiler_wl='-Wl,'
7734         ;;
7735       esac
7736       ;;
7737
7738    mingw* | cygwin* | pw32* | os2*)
7739      # This hack is so that the source file can tell whether it is being
7740      # built for inclusion in a dll (and should export symbols for example).
7741      lt_prog_compiler_pic='-DDLL_EXPORT'
7742      ;;
7743
7744    hpux9* | hpux10* | hpux11*)
7745      lt_prog_compiler_wl='-Wl,'
7746      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7747      # not for PA HP-UX.
7748      case $host_cpu in
7749      hppa*64*|ia64*)
7750	# +Z the default
7751	;;
7752      *)
7753	lt_prog_compiler_pic='+Z'
7754	;;
7755      esac
7756      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7757      lt_prog_compiler_static='${wl}-a ${wl}archive'
7758      ;;
7759
7760    irix5* | irix6* | nonstopux*)
7761      lt_prog_compiler_wl='-Wl,'
7762      # PIC (with -KPIC) is the default.
7763      lt_prog_compiler_static='-non_shared'
7764      ;;
7765
7766    newsos6)
7767      lt_prog_compiler_pic='-KPIC'
7768      lt_prog_compiler_static='-Bstatic'
7769      ;;
7770
7771    linux* | k*bsd*-gnu)
7772      case $cc_basename in
7773      icc* | ecc*)
7774	lt_prog_compiler_wl='-Wl,'
7775	lt_prog_compiler_pic='-KPIC'
7776	lt_prog_compiler_static='-static'
7777        ;;
7778      pgcc* | pgf77* | pgf90* | pgf95*)
7779        # Portland Group compilers (*not* the Pentium gcc compiler,
7780	# which looks to be a dead project)
7781	lt_prog_compiler_wl='-Wl,'
7782	lt_prog_compiler_pic='-fpic'
7783	lt_prog_compiler_static='-Bstatic'
7784        ;;
7785      ccc*)
7786        lt_prog_compiler_wl='-Wl,'
7787        # All Alpha code is PIC.
7788        lt_prog_compiler_static='-non_shared'
7789        ;;
7790      *)
7791        case `$CC -V 2>&1 | sed 5q` in
7792	*Sun\ C*)
7793	  # Sun C 5.9
7794	  lt_prog_compiler_pic='-KPIC'
7795	  lt_prog_compiler_static='-Bstatic'
7796	  lt_prog_compiler_wl='-Wl,'
7797	  ;;
7798	*Sun\ F*)
7799	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7800	  lt_prog_compiler_pic='-KPIC'
7801	  lt_prog_compiler_static='-Bstatic'
7802	  lt_prog_compiler_wl=''
7803	  ;;
7804	esac
7805	;;
7806      esac
7807      ;;
7808
7809    osf3* | osf4* | osf5*)
7810      lt_prog_compiler_wl='-Wl,'
7811      # All OSF/1 code is PIC.
7812      lt_prog_compiler_static='-non_shared'
7813      ;;
7814
7815    rdos*)
7816      lt_prog_compiler_static='-non_shared'
7817      ;;
7818
7819    solaris*)
7820      lt_prog_compiler_pic='-KPIC'
7821      lt_prog_compiler_static='-Bstatic'
7822      case $cc_basename in
7823      f77* | f90* | f95*)
7824	lt_prog_compiler_wl='-Qoption ld ';;
7825      *)
7826	lt_prog_compiler_wl='-Wl,';;
7827      esac
7828      ;;
7829
7830    sunos4*)
7831      lt_prog_compiler_wl='-Qoption ld '
7832      lt_prog_compiler_pic='-PIC'
7833      lt_prog_compiler_static='-Bstatic'
7834      ;;
7835
7836    sysv4 | sysv4.2uw2* | sysv4.3*)
7837      lt_prog_compiler_wl='-Wl,'
7838      lt_prog_compiler_pic='-KPIC'
7839      lt_prog_compiler_static='-Bstatic'
7840      ;;
7841
7842    sysv4*MP*)
7843      if test -d /usr/nec ;then
7844	lt_prog_compiler_pic='-Kconform_pic'
7845	lt_prog_compiler_static='-Bstatic'
7846      fi
7847      ;;
7848
7849    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7850      lt_prog_compiler_wl='-Wl,'
7851      lt_prog_compiler_pic='-KPIC'
7852      lt_prog_compiler_static='-Bstatic'
7853      ;;
7854
7855    unicos*)
7856      lt_prog_compiler_wl='-Wl,'
7857      lt_prog_compiler_can_build_shared=no
7858      ;;
7859
7860    uts4*)
7861      lt_prog_compiler_pic='-pic'
7862      lt_prog_compiler_static='-Bstatic'
7863      ;;
7864
7865    *)
7866      lt_prog_compiler_can_build_shared=no
7867      ;;
7868    esac
7869  fi
7870
7871{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7872$as_echo "$lt_prog_compiler_pic" >&6; }
7873
7874#
7875# Check to make sure the PIC flag actually works.
7876#
7877if test -n "$lt_prog_compiler_pic"; then
7878
7879{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7880$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7881if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7882  $as_echo_n "(cached) " >&6
7883else
7884  lt_cv_prog_compiler_pic_works=no
7885  ac_outfile=conftest.$ac_objext
7886   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7887   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7888   # Insert the option either (1) after the last *FLAGS variable, or
7889   # (2) before a word containing "conftest.", or (3) at the end.
7890   # Note that $ac_compile itself does not contain backslashes and begins
7891   # with a dollar sign (not a hyphen), so the echo should work correctly.
7892   # The option is referenced via a variable to avoid confusing sed.
7893   lt_compile=`echo "$ac_compile" | $SED \
7894   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7895   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7896   -e 's:$: $lt_compiler_flag:'`
7897   (eval echo "\"\$as_me:7897: $lt_compile\"" >&5)
7898   (eval "$lt_compile" 2>conftest.err)
7899   ac_status=$?
7900   cat conftest.err >&5
7901   echo "$as_me:7901: \$? = $ac_status" >&5
7902   if (exit $ac_status) && test -s "$ac_outfile"; then
7903     # The compiler can only warn and ignore the option if not recognized
7904     # So say no if there are warnings other than the usual output.
7905     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7906     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7907     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7908       lt_cv_prog_compiler_pic_works=yes
7909     fi
7910   fi
7911   $rm conftest*
7912
7913fi
7914{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7915$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7916
7917if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7918    case $lt_prog_compiler_pic in
7919     "" | " "*) ;;
7920     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7921     esac
7922else
7923    lt_prog_compiler_pic=
7924     lt_prog_compiler_can_build_shared=no
7925fi
7926
7927fi
7928case $host_os in
7929  # For platforms which do not support PIC, -DPIC is meaningless:
7930  *djgpp*)
7931    lt_prog_compiler_pic=
7932    ;;
7933  *)
7934    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7935    ;;
7936esac
7937
7938#
7939# Check to make sure the static flag actually works.
7940#
7941wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7942{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7943$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7944if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7945  $as_echo_n "(cached) " >&6
7946else
7947  lt_cv_prog_compiler_static_works=no
7948   save_LDFLAGS="$LDFLAGS"
7949   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7950   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7951   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7952     # The linker can only warn and ignore the option if not recognized
7953     # So say no if there are warnings
7954     if test -s conftest.err; then
7955       # Append any errors to the config.log.
7956       cat conftest.err 1>&5
7957       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7958       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7959       if diff conftest.exp conftest.er2 >/dev/null; then
7960         lt_cv_prog_compiler_static_works=yes
7961       fi
7962     else
7963       lt_cv_prog_compiler_static_works=yes
7964     fi
7965   fi
7966   $rm -r conftest*
7967   LDFLAGS="$save_LDFLAGS"
7968
7969fi
7970{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7971$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7972
7973if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7974    :
7975else
7976    lt_prog_compiler_static=
7977fi
7978
7979
7980{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7981$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7982if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7983  $as_echo_n "(cached) " >&6
7984else
7985  lt_cv_prog_compiler_c_o=no
7986   $rm -r conftest 2>/dev/null
7987   mkdir conftest
7988   cd conftest
7989   mkdir out
7990   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7991
7992   lt_compiler_flag="-o out/conftest2.$ac_objext"
7993   # Insert the option either (1) after the last *FLAGS variable, or
7994   # (2) before a word containing "conftest.", or (3) at the end.
7995   # Note that $ac_compile itself does not contain backslashes and begins
7996   # with a dollar sign (not a hyphen), so the echo should work correctly.
7997   lt_compile=`echo "$ac_compile" | $SED \
7998   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7999   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8000   -e 's:$: $lt_compiler_flag:'`
8001   (eval echo "\"\$as_me:8001: $lt_compile\"" >&5)
8002   (eval "$lt_compile" 2>out/conftest.err)
8003   ac_status=$?
8004   cat out/conftest.err >&5
8005   echo "$as_me:8005: \$? = $ac_status" >&5
8006   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8007   then
8008     # The compiler can only warn and ignore the option if not recognized
8009     # So say no if there are warnings
8010     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8011     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8012     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8013       lt_cv_prog_compiler_c_o=yes
8014     fi
8015   fi
8016   chmod u+w . 2>&5
8017   $rm conftest*
8018   # SGI C++ compiler will create directory out/ii_files/ for
8019   # template instantiation
8020   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8021   $rm out/* && rmdir out
8022   cd ..
8023   rmdir conftest
8024   $rm conftest*
8025
8026fi
8027{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8028$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8029
8030
8031hard_links="nottested"
8032if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8033  # do not overwrite the value of need_locks provided by the user
8034  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8035$as_echo_n "checking if we can lock with hard links... " >&6; }
8036  hard_links=yes
8037  $rm conftest*
8038  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8039  touch conftest.a
8040  ln conftest.a conftest.b 2>&5 || hard_links=no
8041  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8042  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8043$as_echo "$hard_links" >&6; }
8044  if test "$hard_links" = no; then
8045    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8046$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8047    need_locks=warn
8048  fi
8049else
8050  need_locks=no
8051fi
8052
8053{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8054$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8055
8056  runpath_var=
8057  allow_undefined_flag=
8058  enable_shared_with_static_runtimes=no
8059  archive_cmds=
8060  archive_expsym_cmds=
8061  old_archive_From_new_cmds=
8062  old_archive_from_expsyms_cmds=
8063  export_dynamic_flag_spec=
8064  whole_archive_flag_spec=
8065  thread_safe_flag_spec=
8066  hardcode_libdir_flag_spec=
8067  hardcode_libdir_flag_spec_ld=
8068  hardcode_libdir_separator=
8069  hardcode_direct=no
8070  hardcode_minus_L=no
8071  hardcode_shlibpath_var=unsupported
8072  link_all_deplibs=unknown
8073  hardcode_automatic=no
8074  module_cmds=
8075  module_expsym_cmds=
8076  always_export_symbols=no
8077  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8078  # include_expsyms should be a list of space-separated symbols to be *always*
8079  # included in the symbol list
8080  include_expsyms=
8081  # exclude_expsyms can be an extended regexp of symbols to exclude
8082  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8083  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8084  # as well as any symbol that contains `d'.
8085  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8086  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8087  # platforms (ab)use it in PIC code, but their linkers get confused if
8088  # the symbol is explicitly referenced.  Since portable code cannot
8089  # rely on this symbol name, it's probably fine to never include it in
8090  # preloaded symbol tables.
8091  # Exclude shared library initialization/finalization symbols.
8092  extract_expsyms_cmds=
8093  # Just being paranoid about ensuring that cc_basename is set.
8094  for cc_temp in $compiler""; do
8095  case $cc_temp in
8096    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8097    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8098    \-*) ;;
8099    *) break;;
8100  esac
8101done
8102cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8103
8104  case $host_os in
8105  cygwin* | mingw* | pw32*)
8106    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8107    # When not using gcc, we currently assume that we are using
8108    # Microsoft Visual C++.
8109    if test "$GCC" != yes; then
8110      with_gnu_ld=no
8111    fi
8112    ;;
8113  interix*)
8114    # we just hope/assume this is gcc and not c89 (= MSVC++)
8115    with_gnu_ld=yes
8116    ;;
8117  openbsd*)
8118    with_gnu_ld=no
8119    ;;
8120  esac
8121
8122  ld_shlibs=yes
8123  if test "$with_gnu_ld" = yes; then
8124    # If archive_cmds runs LD, not CC, wlarc should be empty
8125    wlarc='${wl}'
8126
8127    # Set some defaults for GNU ld with shared library support. These
8128    # are reset later if shared libraries are not supported. Putting them
8129    # here allows them to be overridden if necessary.
8130    runpath_var=LD_RUN_PATH
8131    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8132    export_dynamic_flag_spec='${wl}--export-dynamic'
8133    # ancient GNU ld didn't support --whole-archive et. al.
8134    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8135	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8136      else
8137  	whole_archive_flag_spec=
8138    fi
8139    supports_anon_versioning=no
8140    case `$LD -v 2>/dev/null` in
8141      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8142      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8143      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8144      *\ 2.11.*) ;; # other 2.11 versions
8145      *) supports_anon_versioning=yes ;;
8146    esac
8147
8148    # See if GNU ld supports shared libraries.
8149    case $host_os in
8150    aix[3-9]*)
8151      # On AIX/PPC, the GNU linker is very broken
8152      if test "$host_cpu" != ia64; then
8153	ld_shlibs=no
8154	cat <<EOF 1>&2
8155
8156*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8157*** to be unable to reliably create shared libraries on AIX.
8158*** Therefore, libtool is disabling shared libraries support.  If you
8159*** really care for shared libraries, you may want to modify your PATH
8160*** so that a non-GNU linker is found, and then restart.
8161
8162EOF
8163      fi
8164      ;;
8165
8166    amigaos*)
8167      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)'
8168      hardcode_libdir_flag_spec='-L$libdir'
8169      hardcode_minus_L=yes
8170
8171      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8172      # that the semantics of dynamic libraries on AmigaOS, at least up
8173      # to version 4, is to share data among multiple programs linked
8174      # with the same dynamic library.  Since this doesn't match the
8175      # behavior of shared libraries on other platforms, we can't use
8176      # them.
8177      ld_shlibs=no
8178      ;;
8179
8180    beos*)
8181      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8182	allow_undefined_flag=unsupported
8183	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8184	# support --undefined.  This deserves some investigation.  FIXME
8185	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8186      else
8187	ld_shlibs=no
8188      fi
8189      ;;
8190
8191    cygwin* | mingw* | pw32*)
8192      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8193      # as there is no search path for DLLs.
8194      hardcode_libdir_flag_spec='-L$libdir'
8195      allow_undefined_flag=unsupported
8196      always_export_symbols=no
8197      enable_shared_with_static_runtimes=yes
8198      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8199
8200      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8201        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8202	# If the export-symbols file already is a .def file (1st line
8203	# is EXPORTS), use it as is; otherwise, prepend...
8204	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8205	  cp $export_symbols $output_objdir/$soname.def;
8206	else
8207	  echo EXPORTS > $output_objdir/$soname.def;
8208	  cat $export_symbols >> $output_objdir/$soname.def;
8209	fi~
8210	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8211      else
8212	ld_shlibs=no
8213      fi
8214      ;;
8215
8216    interix[3-9]*)
8217      hardcode_direct=no
8218      hardcode_shlibpath_var=no
8219      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8220      export_dynamic_flag_spec='${wl}-E'
8221      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8222      # Instead, shared libraries are loaded at an image base (0x10000000 by
8223      # default) and relocated if they conflict, which is a slow very memory
8224      # consuming and fragmenting process.  To avoid this, we pick a random,
8225      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8226      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8227      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8228      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'
8229      ;;
8230
8231    gnu* | linux* | k*bsd*-gnu)
8232      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8233	tmp_addflag=
8234	case $cc_basename,$host_cpu in
8235	pgcc*)				# Portland Group C compiler
8236	  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'
8237	  tmp_addflag=' $pic_flag'
8238	  ;;
8239	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8240	  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'
8241	  tmp_addflag=' $pic_flag -Mnomain' ;;
8242	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8243	  tmp_addflag=' -i_dynamic' ;;
8244	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8245	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8246	ifc* | ifort*)			# Intel Fortran compiler
8247	  tmp_addflag=' -nofor_main' ;;
8248	esac
8249	case `$CC -V 2>&1 | sed 5q` in
8250	*Sun\ C*)			# Sun C 5.9
8251	  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'
8252	  tmp_sharedflag='-G' ;;
8253	*Sun\ F*)			# Sun Fortran 8.3
8254	  tmp_sharedflag='-G' ;;
8255	*)
8256	  tmp_sharedflag='-shared' ;;
8257	esac
8258	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8259
8260	if test $supports_anon_versioning = yes; then
8261	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8262  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8263  $echo "local: *; };" >> $output_objdir/$libname.ver~
8264	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8265	fi
8266      else
8267	ld_shlibs=no
8268      fi
8269      ;;
8270
8271    netbsd*)
8272      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8273	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8274	wlarc=
8275      else
8276	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8277	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8278      fi
8279      ;;
8280
8281    solaris*)
8282      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8283	ld_shlibs=no
8284	cat <<EOF 1>&2
8285
8286*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8287*** create shared libraries on Solaris systems.  Therefore, libtool
8288*** is disabling shared libraries support.  We urge you to upgrade GNU
8289*** binutils to release 2.9.1 or newer.  Another option is to modify
8290*** your PATH or compiler configuration so that the native linker is
8291*** used, and then restart.
8292
8293EOF
8294      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8295	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8296	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8297      else
8298	ld_shlibs=no
8299      fi
8300      ;;
8301
8302    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8303      case `$LD -v 2>&1` in
8304        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8305	ld_shlibs=no
8306	cat <<_LT_EOF 1>&2
8307
8308*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8309*** reliably create shared libraries on SCO systems.  Therefore, libtool
8310*** is disabling shared libraries support.  We urge you to upgrade GNU
8311*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8312*** your PATH or compiler configuration so that the native linker is
8313*** used, and then restart.
8314
8315_LT_EOF
8316	;;
8317	*)
8318	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8319	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8320	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8321	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8322	  else
8323	    ld_shlibs=no
8324	  fi
8325	;;
8326      esac
8327      ;;
8328
8329    sunos4*)
8330      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8331      wlarc=
8332      hardcode_direct=yes
8333      hardcode_shlibpath_var=no
8334      ;;
8335
8336    *)
8337      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8338	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8339	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8340      else
8341	ld_shlibs=no
8342      fi
8343      ;;
8344    esac
8345
8346    if test "$ld_shlibs" = no; then
8347      runpath_var=
8348      hardcode_libdir_flag_spec=
8349      export_dynamic_flag_spec=
8350      whole_archive_flag_spec=
8351    fi
8352  else
8353    # PORTME fill in a description of your system's linker (not GNU ld)
8354    case $host_os in
8355    aix3*)
8356      allow_undefined_flag=unsupported
8357      always_export_symbols=yes
8358      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'
8359      # Note: this linker hardcodes the directories in LIBPATH if there
8360      # are no directories specified by -L.
8361      hardcode_minus_L=yes
8362      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8363	# Neither direct hardcoding nor static linking is supported with a
8364	# broken collect2.
8365	hardcode_direct=unsupported
8366      fi
8367      ;;
8368
8369    aix[4-9]*)
8370      if test "$host_cpu" = ia64; then
8371	# On IA64, the linker does run time linking by default, so we don't
8372	# have to do anything special.
8373	aix_use_runtimelinking=no
8374	exp_sym_flag='-Bexport'
8375	no_entry_flag=""
8376      else
8377	# If we're using GNU nm, then we don't want the "-C" option.
8378	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8379	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8380	  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'
8381	else
8382	  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'
8383	fi
8384	aix_use_runtimelinking=no
8385
8386	# Test if we are trying to use run time linking or normal
8387	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8388	# need to do runtime linking.
8389	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8390	  for ld_flag in $LDFLAGS; do
8391  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8392  	    aix_use_runtimelinking=yes
8393  	    break
8394  	  fi
8395	  done
8396	  ;;
8397	esac
8398
8399	exp_sym_flag='-bexport'
8400	no_entry_flag='-bnoentry'
8401      fi
8402
8403      # When large executables or shared objects are built, AIX ld can
8404      # have problems creating the table of contents.  If linking a library
8405      # or program results in "error TOC overflow" add -mminimal-toc to
8406      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8407      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8408
8409      archive_cmds=''
8410      hardcode_direct=yes
8411      hardcode_libdir_separator=':'
8412      link_all_deplibs=yes
8413
8414      if test "$GCC" = yes; then
8415	case $host_os in aix4.[012]|aix4.[012].*)
8416	# We only want to do this on AIX 4.2 and lower, the check
8417	# below for broken collect2 doesn't work under 4.3+
8418	  collect2name=`${CC} -print-prog-name=collect2`
8419	  if test -f "$collect2name" && \
8420  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8421	  then
8422  	  # We have reworked collect2
8423  	  :
8424	  else
8425  	  # We have old collect2
8426  	  hardcode_direct=unsupported
8427  	  # It fails to find uninstalled libraries when the uninstalled
8428  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8429  	  # to unsupported forces relinking
8430  	  hardcode_minus_L=yes
8431  	  hardcode_libdir_flag_spec='-L$libdir'
8432  	  hardcode_libdir_separator=
8433	  fi
8434	  ;;
8435	esac
8436	shared_flag='-shared'
8437	if test "$aix_use_runtimelinking" = yes; then
8438	  shared_flag="$shared_flag "'${wl}-G'
8439	fi
8440      else
8441	# not using gcc
8442	if test "$host_cpu" = ia64; then
8443  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8444  	# chokes on -Wl,-G. The following line is correct:
8445	  shared_flag='-G'
8446	else
8447	  if test "$aix_use_runtimelinking" = yes; then
8448	    shared_flag='${wl}-G'
8449	  else
8450	    shared_flag='${wl}-bM:SRE'
8451	  fi
8452	fi
8453      fi
8454
8455      # It seems that -bexpall does not export symbols beginning with
8456      # underscore (_), so it is better to generate a list of symbols to export.
8457      always_export_symbols=yes
8458      if test "$aix_use_runtimelinking" = yes; then
8459	# Warning - without using the other runtime loading flags (-brtl),
8460	# -berok will link without error, but may produce a broken library.
8461	allow_undefined_flag='-berok'
8462       # Determine the default libpath from the value encoded in an empty executable.
8463       cat >conftest.$ac_ext <<_ACEOF
8464/* confdefs.h.  */
8465_ACEOF
8466cat confdefs.h >>conftest.$ac_ext
8467cat >>conftest.$ac_ext <<_ACEOF
8468/* end confdefs.h.  */
8469
8470int
8471main ()
8472{
8473
8474  ;
8475  return 0;
8476}
8477_ACEOF
8478rm -f conftest.$ac_objext conftest$ac_exeext
8479if { (ac_try="$ac_link"
8480case "(($ac_try" in
8481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482  *) ac_try_echo=$ac_try;;
8483esac
8484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8485$as_echo "$ac_try_echo") >&5
8486  (eval "$ac_link") 2>conftest.er1
8487  ac_status=$?
8488  grep -v '^ *+' conftest.er1 >conftest.err
8489  rm -f conftest.er1
8490  cat conftest.err >&5
8491  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492  (exit $ac_status); } && {
8493	 test -z "$ac_c_werror_flag" ||
8494	 test ! -s conftest.err
8495       } && test -s conftest$ac_exeext && {
8496	 test "$cross_compiling" = yes ||
8497	 $as_test_x conftest$ac_exeext
8498       }; then
8499
8500lt_aix_libpath_sed='
8501    /Import File Strings/,/^$/ {
8502	/^0/ {
8503	    s/^0  *\(.*\)$/\1/
8504	    p
8505	}
8506    }'
8507aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8508# Check for a 64-bit object if we didn't find anything.
8509if test -z "$aix_libpath"; then
8510  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8511fi
8512else
8513  $as_echo "$as_me: failed program was:" >&5
8514sed 's/^/| /' conftest.$ac_ext >&5
8515
8516
8517fi
8518
8519rm -rf conftest.dSYM
8520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8521      conftest$ac_exeext conftest.$ac_ext
8522if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8523
8524       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8525	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"
8526       else
8527	if test "$host_cpu" = ia64; then
8528	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8529	  allow_undefined_flag="-z nodefs"
8530	  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"
8531	else
8532	 # Determine the default libpath from the value encoded in an empty executable.
8533	 cat >conftest.$ac_ext <<_ACEOF
8534/* confdefs.h.  */
8535_ACEOF
8536cat confdefs.h >>conftest.$ac_ext
8537cat >>conftest.$ac_ext <<_ACEOF
8538/* end confdefs.h.  */
8539
8540int
8541main ()
8542{
8543
8544  ;
8545  return 0;
8546}
8547_ACEOF
8548rm -f conftest.$ac_objext conftest$ac_exeext
8549if { (ac_try="$ac_link"
8550case "(($ac_try" in
8551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552  *) ac_try_echo=$ac_try;;
8553esac
8554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8555$as_echo "$ac_try_echo") >&5
8556  (eval "$ac_link") 2>conftest.er1
8557  ac_status=$?
8558  grep -v '^ *+' conftest.er1 >conftest.err
8559  rm -f conftest.er1
8560  cat conftest.err >&5
8561  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562  (exit $ac_status); } && {
8563	 test -z "$ac_c_werror_flag" ||
8564	 test ! -s conftest.err
8565       } && test -s conftest$ac_exeext && {
8566	 test "$cross_compiling" = yes ||
8567	 $as_test_x conftest$ac_exeext
8568       }; then
8569
8570lt_aix_libpath_sed='
8571    /Import File Strings/,/^$/ {
8572	/^0/ {
8573	    s/^0  *\(.*\)$/\1/
8574	    p
8575	}
8576    }'
8577aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8578# Check for a 64-bit object if we didn't find anything.
8579if test -z "$aix_libpath"; then
8580  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8581fi
8582else
8583  $as_echo "$as_me: failed program was:" >&5
8584sed 's/^/| /' conftest.$ac_ext >&5
8585
8586
8587fi
8588
8589rm -rf conftest.dSYM
8590rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8591      conftest$ac_exeext conftest.$ac_ext
8592if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8593
8594	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8595	  # Warning - without using the other run time loading flags,
8596	  # -berok will link without error, but may produce a broken library.
8597	  no_undefined_flag=' ${wl}-bernotok'
8598	  allow_undefined_flag=' ${wl}-berok'
8599	  # Exported symbols can be pulled into shared objects from archives
8600	  whole_archive_flag_spec='$convenience'
8601	  archive_cmds_need_lc=yes
8602	  # This is similar to how AIX traditionally builds its shared libraries.
8603	  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'
8604	fi
8605      fi
8606      ;;
8607
8608    amigaos*)
8609      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)'
8610      hardcode_libdir_flag_spec='-L$libdir'
8611      hardcode_minus_L=yes
8612      # see comment about different semantics on the GNU ld section
8613      ld_shlibs=no
8614      ;;
8615
8616    bsdi[45]*)
8617      export_dynamic_flag_spec=-rdynamic
8618      ;;
8619
8620    cygwin* | mingw* | pw32*)
8621      # When not using gcc, we currently assume that we are using
8622      # Microsoft Visual C++.
8623      # hardcode_libdir_flag_spec is actually meaningless, as there is
8624      # no search path for DLLs.
8625      hardcode_libdir_flag_spec=' '
8626      allow_undefined_flag=unsupported
8627      # Tell ltmain to make .lib files, not .a files.
8628      libext=lib
8629      # Tell ltmain to make .dll files, not .so files.
8630      shrext_cmds=".dll"
8631      # FIXME: Setting linknames here is a bad hack.
8632      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8633      # The linker will automatically build a .lib file if we build a DLL.
8634      old_archive_From_new_cmds='true'
8635      # FIXME: Should let the user specify the lib program.
8636      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8637      fix_srcfile_path='`cygpath -w "$srcfile"`'
8638      enable_shared_with_static_runtimes=yes
8639      ;;
8640
8641    darwin* | rhapsody*)
8642      case $host_os in
8643        rhapsody* | darwin1.[012])
8644         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8645         ;;
8646       *) # Darwin 1.3 on
8647         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8648           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8649         else
8650           case ${MACOSX_DEPLOYMENT_TARGET} in
8651             10.[012])
8652               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8653               ;;
8654             10.*)
8655               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8656               ;;
8657           esac
8658         fi
8659         ;;
8660      esac
8661      archive_cmds_need_lc=no
8662      hardcode_direct=no
8663      hardcode_automatic=yes
8664      hardcode_shlibpath_var=unsupported
8665      whole_archive_flag_spec=''
8666      link_all_deplibs=yes
8667    if test "$GCC" = yes ; then
8668    	output_verbose_link_cmd='echo'
8669        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8670        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8671        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}"
8672        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}"
8673    else
8674      case $cc_basename in
8675        xlc*)
8676         output_verbose_link_cmd='echo'
8677         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8678         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8679          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8680         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}'
8681          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}'
8682          ;;
8683       *)
8684         ld_shlibs=no
8685          ;;
8686      esac
8687    fi
8688      ;;
8689
8690    dgux*)
8691      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8692      hardcode_libdir_flag_spec='-L$libdir'
8693      hardcode_shlibpath_var=no
8694      ;;
8695
8696    freebsd1*)
8697      ld_shlibs=no
8698      ;;
8699
8700    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8701    # support.  Future versions do this automatically, but an explicit c++rt0.o
8702    # does not break anything, and helps significantly (at the cost of a little
8703    # extra space).
8704    freebsd2.2*)
8705      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8706      hardcode_libdir_flag_spec='-R$libdir'
8707      hardcode_direct=yes
8708      hardcode_shlibpath_var=no
8709      ;;
8710
8711    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8712    freebsd2*)
8713      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8714      hardcode_direct=yes
8715      hardcode_minus_L=yes
8716      hardcode_shlibpath_var=no
8717      ;;
8718
8719    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8720    freebsd* | dragonfly*)
8721      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8722      hardcode_libdir_flag_spec='-R$libdir'
8723      hardcode_direct=yes
8724      hardcode_shlibpath_var=no
8725      ;;
8726
8727    hpux9*)
8728      if test "$GCC" = yes; then
8729	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'
8730      else
8731	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'
8732      fi
8733      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8734      hardcode_libdir_separator=:
8735      hardcode_direct=yes
8736
8737      # hardcode_minus_L: Not really in the search PATH,
8738      # but as the default location of the library.
8739      hardcode_minus_L=yes
8740      export_dynamic_flag_spec='${wl}-E'
8741      ;;
8742
8743    hpux10*)
8744      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8745	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8746      else
8747	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8748      fi
8749      if test "$with_gnu_ld" = no; then
8750	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8751	hardcode_libdir_separator=:
8752
8753	hardcode_direct=yes
8754	export_dynamic_flag_spec='${wl}-E'
8755
8756	# hardcode_minus_L: Not really in the search PATH,
8757	# but as the default location of the library.
8758	hardcode_minus_L=yes
8759      fi
8760      ;;
8761
8762    hpux11*)
8763      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8764	case $host_cpu in
8765	hppa*64*)
8766	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8767	  ;;
8768	ia64*)
8769	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8770	  ;;
8771	*)
8772	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8773	  ;;
8774	esac
8775      else
8776	case $host_cpu in
8777	hppa*64*)
8778	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8779	  ;;
8780	ia64*)
8781	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8782	  ;;
8783	*)
8784	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8785	  ;;
8786	esac
8787      fi
8788      if test "$with_gnu_ld" = no; then
8789	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8790	hardcode_libdir_separator=:
8791
8792	case $host_cpu in
8793	hppa*64*|ia64*)
8794	  hardcode_libdir_flag_spec_ld='+b $libdir'
8795	  hardcode_direct=no
8796	  hardcode_shlibpath_var=no
8797	  ;;
8798	*)
8799	  hardcode_direct=yes
8800	  export_dynamic_flag_spec='${wl}-E'
8801
8802	  # hardcode_minus_L: Not really in the search PATH,
8803	  # but as the default location of the library.
8804	  hardcode_minus_L=yes
8805	  ;;
8806	esac
8807      fi
8808      ;;
8809
8810    irix5* | irix6* | nonstopux*)
8811      if test "$GCC" = yes; then
8812	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'
8813      else
8814	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'
8815	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8816      fi
8817      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8818      hardcode_libdir_separator=:
8819      link_all_deplibs=yes
8820      ;;
8821
8822    netbsd*)
8823      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8824	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8825      else
8826	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8827      fi
8828      hardcode_libdir_flag_spec='-R$libdir'
8829      hardcode_direct=yes
8830      hardcode_shlibpath_var=no
8831      ;;
8832
8833    newsos6)
8834      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8835      hardcode_direct=yes
8836      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8837      hardcode_libdir_separator=:
8838      hardcode_shlibpath_var=no
8839      ;;
8840
8841    openbsd*)
8842      if test -f /usr/libexec/ld.so; then
8843	hardcode_direct=yes
8844	hardcode_shlibpath_var=no
8845	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8846	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8847	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8848	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8849	  export_dynamic_flag_spec='${wl}-E'
8850	else
8851	  case $host_os in
8852	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8853	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8854	     hardcode_libdir_flag_spec='-R$libdir'
8855	     ;;
8856	   *)
8857	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8858	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8859	     ;;
8860	  esac
8861        fi
8862      else
8863	ld_shlibs=no
8864      fi
8865      ;;
8866
8867    os2*)
8868      hardcode_libdir_flag_spec='-L$libdir'
8869      hardcode_minus_L=yes
8870      allow_undefined_flag=unsupported
8871      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'
8872      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8873      ;;
8874
8875    osf3*)
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8879      else
8880	allow_undefined_flag=' -expect_unresolved \*'
8881	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'
8882      fi
8883      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8884      hardcode_libdir_separator=:
8885      ;;
8886
8887    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8888      if test "$GCC" = yes; then
8889	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8890	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'
8891	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8892      else
8893	allow_undefined_flag=' -expect_unresolved \*'
8894	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'
8895	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8896	$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'
8897
8898	# Both c and cxx compiler support -rpath directly
8899	hardcode_libdir_flag_spec='-rpath $libdir'
8900      fi
8901      hardcode_libdir_separator=:
8902      ;;
8903
8904    solaris*)
8905      no_undefined_flag=' -z text'
8906      if test "$GCC" = yes; then
8907	wlarc='${wl}'
8908	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8909	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8910	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8911      else
8912	wlarc=''
8913	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8914	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8915  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8916      fi
8917      hardcode_libdir_flag_spec='-R$libdir'
8918      hardcode_shlibpath_var=no
8919      case $host_os in
8920      solaris2.[0-5] | solaris2.[0-5].*) ;;
8921      *)
8922	# The compiler driver will combine and reorder linker options,
8923	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8924	# but is careful enough not to reorder.
8925 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8926	if test "$GCC" = yes; then
8927	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8928	else
8929	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8930	fi
8931	;;
8932      esac
8933      link_all_deplibs=yes
8934      ;;
8935
8936    sunos4*)
8937      if test "x$host_vendor" = xsequent; then
8938	# Use $CC to link under sequent, because it throws in some extra .o
8939	# files that make .init and .fini sections work.
8940	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8941      else
8942	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8943      fi
8944      hardcode_libdir_flag_spec='-L$libdir'
8945      hardcode_direct=yes
8946      hardcode_minus_L=yes
8947      hardcode_shlibpath_var=no
8948      ;;
8949
8950    sysv4)
8951      case $host_vendor in
8952	sni)
8953	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8954	  hardcode_direct=yes # is this really true???
8955	;;
8956	siemens)
8957	  ## LD is ld it makes a PLAMLIB
8958	  ## CC just makes a GrossModule.
8959	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8960	  reload_cmds='$CC -r -o $output$reload_objs'
8961	  hardcode_direct=no
8962        ;;
8963	motorola)
8964	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8965	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8966	;;
8967      esac
8968      runpath_var='LD_RUN_PATH'
8969      hardcode_shlibpath_var=no
8970      ;;
8971
8972    sysv4.3*)
8973      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8974      hardcode_shlibpath_var=no
8975      export_dynamic_flag_spec='-Bexport'
8976      ;;
8977
8978    sysv4*MP*)
8979      if test -d /usr/nec; then
8980	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8981	hardcode_shlibpath_var=no
8982	runpath_var=LD_RUN_PATH
8983	hardcode_runpath_var=yes
8984	ld_shlibs=yes
8985      fi
8986      ;;
8987
8988    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8989      no_undefined_flag='${wl}-z,text'
8990      archive_cmds_need_lc=no
8991      hardcode_shlibpath_var=no
8992      runpath_var='LD_RUN_PATH'
8993
8994      if test "$GCC" = yes; then
8995	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8996	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8997      else
8998	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8999	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9000      fi
9001      ;;
9002
9003    sysv5* | sco3.2v5* | sco5v6*)
9004      # Note: We can NOT use -z defs as we might desire, because we do not
9005      # link with -lc, and that would cause any symbols used from libc to
9006      # always be unresolved, which means just about no library would
9007      # ever link correctly.  If we're not using GNU ld we use -z text
9008      # though, which does catch some bad symbols but isn't as heavy-handed
9009      # as -z defs.
9010      no_undefined_flag='${wl}-z,text'
9011      allow_undefined_flag='${wl}-z,nodefs'
9012      archive_cmds_need_lc=no
9013      hardcode_shlibpath_var=no
9014      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9015      hardcode_libdir_separator=':'
9016      link_all_deplibs=yes
9017      export_dynamic_flag_spec='${wl}-Bexport'
9018      runpath_var='LD_RUN_PATH'
9019
9020      if test "$GCC" = yes; then
9021	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9022	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9023      else
9024	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9025	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9026      fi
9027      ;;
9028
9029    uts4*)
9030      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9031      hardcode_libdir_flag_spec='-L$libdir'
9032      hardcode_shlibpath_var=no
9033      ;;
9034
9035    *)
9036      ld_shlibs=no
9037      ;;
9038    esac
9039  fi
9040
9041{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9042$as_echo "$ld_shlibs" >&6; }
9043test "$ld_shlibs" = no && can_build_shared=no
9044
9045#
9046# Do we need to explicitly link libc?
9047#
9048case "x$archive_cmds_need_lc" in
9049x|xyes)
9050  # Assume -lc should be added
9051  archive_cmds_need_lc=yes
9052
9053  if test "$enable_shared" = yes && test "$GCC" = yes; then
9054    case $archive_cmds in
9055    *'~'*)
9056      # FIXME: we may have to deal with multi-command sequences.
9057      ;;
9058    '$CC '*)
9059      # Test whether the compiler implicitly links with -lc since on some
9060      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9061      # to ld, don't add -lc before -lgcc.
9062      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9063$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9064      $rm conftest*
9065      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9066
9067      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9068  (eval $ac_compile) 2>&5
9069  ac_status=$?
9070  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071  (exit $ac_status); } 2>conftest.err; then
9072        soname=conftest
9073        lib=conftest
9074        libobjs=conftest.$ac_objext
9075        deplibs=
9076        wl=$lt_prog_compiler_wl
9077	pic_flag=$lt_prog_compiler_pic
9078        compiler_flags=-v
9079        linker_flags=-v
9080        verstring=
9081        output_objdir=.
9082        libname=conftest
9083        lt_save_allow_undefined_flag=$allow_undefined_flag
9084        allow_undefined_flag=
9085        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9086  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9087  ac_status=$?
9088  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089  (exit $ac_status); }
9090        then
9091	  archive_cmds_need_lc=no
9092        else
9093	  archive_cmds_need_lc=yes
9094        fi
9095        allow_undefined_flag=$lt_save_allow_undefined_flag
9096      else
9097        cat conftest.err 1>&5
9098      fi
9099      $rm conftest*
9100      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9101$as_echo "$archive_cmds_need_lc" >&6; }
9102      ;;
9103    esac
9104  fi
9105  ;;
9106esac
9107
9108{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9109$as_echo_n "checking dynamic linker characteristics... " >&6; }
9110library_names_spec=
9111libname_spec='lib$name'
9112soname_spec=
9113shrext_cmds=".so"
9114postinstall_cmds=
9115postuninstall_cmds=
9116finish_cmds=
9117finish_eval=
9118shlibpath_var=
9119shlibpath_overrides_runpath=unknown
9120version_type=none
9121dynamic_linker="$host_os ld.so"
9122sys_lib_dlsearch_path_spec="/lib /usr/lib"
9123
9124if test "$GCC" = yes; then
9125  case $host_os in
9126    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9127    *) lt_awk_arg="/^libraries:/" ;;
9128  esac
9129  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9130  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9131    # if the path contains ";" then we assume it to be the separator
9132    # otherwise default to the standard path separator (i.e. ":") - it is
9133    # assumed that no part of a normal pathname contains ";" but that should
9134    # okay in the real world where ";" in dirpaths is itself problematic.
9135    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9136  else
9137    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9138  fi
9139  # Ok, now we have the path, separated by spaces, we can step through it
9140  # and add multilib dir if necessary.
9141  lt_tmp_lt_search_path_spec=
9142  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9143  for lt_sys_path in $lt_search_path_spec; do
9144    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9145      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9146    else
9147      test -d "$lt_sys_path" && \
9148	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9149    fi
9150  done
9151  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9152BEGIN {RS=" "; FS="/|\n";} {
9153  lt_foo="";
9154  lt_count=0;
9155  for (lt_i = NF; lt_i > 0; lt_i--) {
9156    if ($lt_i != "" && $lt_i != ".") {
9157      if ($lt_i == "..") {
9158        lt_count++;
9159      } else {
9160        if (lt_count == 0) {
9161          lt_foo="/" $lt_i lt_foo;
9162        } else {
9163          lt_count--;
9164        }
9165      }
9166    }
9167  }
9168  if (lt_foo != "") { lt_freq[lt_foo]++; }
9169  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9170}'`
9171  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9172else
9173  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9174fi
9175need_lib_prefix=unknown
9176hardcode_into_libs=no
9177
9178# when you set need_version to no, make sure it does not cause -set_version
9179# flags to be left without arguments
9180need_version=unknown
9181
9182case $host_os in
9183aix3*)
9184  version_type=linux
9185  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9186  shlibpath_var=LIBPATH
9187
9188  # AIX 3 has no versioning support, so we append a major version to the name.
9189  soname_spec='${libname}${release}${shared_ext}$major'
9190  ;;
9191
9192aix[4-9]*)
9193  version_type=linux
9194  need_lib_prefix=no
9195  need_version=no
9196  hardcode_into_libs=yes
9197  if test "$host_cpu" = ia64; then
9198    # AIX 5 supports IA64
9199    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9200    shlibpath_var=LD_LIBRARY_PATH
9201  else
9202    # With GCC up to 2.95.x, collect2 would create an import file
9203    # for dependence libraries.  The import file would start with
9204    # the line `#! .'.  This would cause the generated library to
9205    # depend on `.', always an invalid library.  This was fixed in
9206    # development snapshots of GCC prior to 3.0.
9207    case $host_os in
9208      aix4 | aix4.[01] | aix4.[01].*)
9209      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9210	   echo ' yes '
9211	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9212	:
9213      else
9214	can_build_shared=no
9215      fi
9216      ;;
9217    esac
9218    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9219    # soname into executable. Probably we can add versioning support to
9220    # collect2, so additional links can be useful in future.
9221    if test "$aix_use_runtimelinking" = yes; then
9222      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9223      # instead of lib<name>.a to let people know that these are not
9224      # typical AIX shared libraries.
9225      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226    else
9227      # We preserve .a as extension for shared libraries through AIX4.2
9228      # and later when we are not doing run time linking.
9229      library_names_spec='${libname}${release}.a $libname.a'
9230      soname_spec='${libname}${release}${shared_ext}$major'
9231    fi
9232    shlibpath_var=LIBPATH
9233  fi
9234  ;;
9235
9236amigaos*)
9237  library_names_spec='$libname.ixlibrary $libname.a'
9238  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9239  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'
9240  ;;
9241
9242beos*)
9243  library_names_spec='${libname}${shared_ext}'
9244  dynamic_linker="$host_os ld.so"
9245  shlibpath_var=LIBRARY_PATH
9246  ;;
9247
9248bsdi[45]*)
9249  version_type=linux
9250  need_version=no
9251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9252  soname_spec='${libname}${release}${shared_ext}$major'
9253  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9254  shlibpath_var=LD_LIBRARY_PATH
9255  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9256  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9257  # the default ld.so.conf also contains /usr/contrib/lib and
9258  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9259  # libtool to hard-code these into programs
9260  ;;
9261
9262cygwin* | mingw* | pw32*)
9263  version_type=windows
9264  shrext_cmds=".dll"
9265  need_version=no
9266  need_lib_prefix=no
9267
9268  case $GCC,$host_os in
9269  yes,cygwin* | yes,mingw* | yes,pw32*)
9270    library_names_spec='$libname.dll.a'
9271    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9272    postinstall_cmds='base_file=`basename \${file}`~
9273      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9274      dldir=$destdir/`dirname \$dlpath`~
9275      test -d \$dldir || mkdir -p \$dldir~
9276      $install_prog $dir/$dlname \$dldir/$dlname~
9277      chmod a+x \$dldir/$dlname'
9278    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9279      dlpath=$dir/\$dldll~
9280       $rm \$dlpath'
9281    shlibpath_overrides_runpath=yes
9282
9283    case $host_os in
9284    cygwin*)
9285      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9286      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9287      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9288      ;;
9289    mingw*)
9290      # MinGW DLLs use traditional 'lib' prefix
9291      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9292      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9293      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9294        # It is most probably a Windows format PATH printed by
9295        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9296        # path with ; separators, and with drive letters. We can handle the
9297        # drive letters (cygwin fileutils understands them), so leave them,
9298        # especially as we might pass files found there to a mingw objdump,
9299        # which wouldn't understand a cygwinified path. Ahh.
9300        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9301      else
9302        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9303      fi
9304      ;;
9305    pw32*)
9306      # pw32 DLLs use 'pw' prefix rather than 'lib'
9307      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9308      ;;
9309    esac
9310    ;;
9311
9312  *)
9313    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9314    ;;
9315  esac
9316  dynamic_linker='Win32 ld.exe'
9317  # FIXME: first we should search . and the directory the executable is in
9318  shlibpath_var=PATH
9319  ;;
9320
9321darwin* | rhapsody*)
9322  dynamic_linker="$host_os dyld"
9323  version_type=darwin
9324  need_lib_prefix=no
9325  need_version=no
9326  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9327  soname_spec='${libname}${release}${major}$shared_ext'
9328  shlibpath_overrides_runpath=yes
9329  shlibpath_var=DYLD_LIBRARY_PATH
9330  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9331
9332  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9333  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9334  ;;
9335
9336dgux*)
9337  version_type=linux
9338  need_lib_prefix=no
9339  need_version=no
9340  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9341  soname_spec='${libname}${release}${shared_ext}$major'
9342  shlibpath_var=LD_LIBRARY_PATH
9343  ;;
9344
9345freebsd1*)
9346  dynamic_linker=no
9347  ;;
9348
9349freebsd* | dragonfly*)
9350  # DragonFly does not have aout.  When/if they implement a new
9351  # versioning mechanism, adjust this.
9352  if test -x /usr/bin/objformat; then
9353    objformat=`/usr/bin/objformat`
9354  else
9355    case $host_os in
9356    freebsd[123]*) objformat=aout ;;
9357    *) objformat=elf ;;
9358    esac
9359  fi
9360  version_type=freebsd-$objformat
9361  case $version_type in
9362    freebsd-elf*)
9363      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9364      need_version=no
9365      need_lib_prefix=no
9366      ;;
9367    freebsd-*)
9368      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9369      need_version=yes
9370      ;;
9371  esac
9372  shlibpath_var=LD_LIBRARY_PATH
9373  case $host_os in
9374  freebsd2*)
9375    shlibpath_overrides_runpath=yes
9376    ;;
9377  freebsd3.[01]* | freebsdelf3.[01]*)
9378    shlibpath_overrides_runpath=yes
9379    hardcode_into_libs=yes
9380    ;;
9381  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9382  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9383    shlibpath_overrides_runpath=no
9384    hardcode_into_libs=yes
9385    ;;
9386  *) # from 4.6 on, and DragonFly
9387    shlibpath_overrides_runpath=yes
9388    hardcode_into_libs=yes
9389    ;;
9390  esac
9391  ;;
9392
9393gnu*)
9394  version_type=linux
9395  need_lib_prefix=no
9396  need_version=no
9397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9398  soname_spec='${libname}${release}${shared_ext}$major'
9399  shlibpath_var=LD_LIBRARY_PATH
9400  hardcode_into_libs=yes
9401  ;;
9402
9403hpux9* | hpux10* | hpux11*)
9404  # Give a soname corresponding to the major version so that dld.sl refuses to
9405  # link against other versions.
9406  version_type=sunos
9407  need_lib_prefix=no
9408  need_version=no
9409  case $host_cpu in
9410  ia64*)
9411    shrext_cmds='.so'
9412    hardcode_into_libs=yes
9413    dynamic_linker="$host_os dld.so"
9414    shlibpath_var=LD_LIBRARY_PATH
9415    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9416    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417    soname_spec='${libname}${release}${shared_ext}$major'
9418    if test "X$HPUX_IA64_MODE" = X32; then
9419      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9420    else
9421      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9422    fi
9423    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9424    ;;
9425   hppa*64*)
9426     shrext_cmds='.sl'
9427     hardcode_into_libs=yes
9428     dynamic_linker="$host_os dld.sl"
9429     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9430     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432     soname_spec='${libname}${release}${shared_ext}$major'
9433     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9434     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9435     ;;
9436   *)
9437    shrext_cmds='.sl'
9438    dynamic_linker="$host_os dld.sl"
9439    shlibpath_var=SHLIB_PATH
9440    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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    ;;
9444  esac
9445  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9446  postinstall_cmds='chmod 555 $lib'
9447  ;;
9448
9449interix[3-9]*)
9450  version_type=linux
9451  need_lib_prefix=no
9452  need_version=no
9453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9454  soname_spec='${libname}${release}${shared_ext}$major'
9455  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9456  shlibpath_var=LD_LIBRARY_PATH
9457  shlibpath_overrides_runpath=no
9458  hardcode_into_libs=yes
9459  ;;
9460
9461irix5* | irix6* | nonstopux*)
9462  case $host_os in
9463    nonstopux*) version_type=nonstopux ;;
9464    *)
9465	if test "$lt_cv_prog_gnu_ld" = yes; then
9466		version_type=linux
9467	else
9468		version_type=irix
9469	fi ;;
9470  esac
9471  need_lib_prefix=no
9472  need_version=no
9473  soname_spec='${libname}${release}${shared_ext}$major'
9474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9475  case $host_os in
9476  irix5* | nonstopux*)
9477    libsuff= shlibsuff=
9478    ;;
9479  *)
9480    case $LD in # libtool.m4 will add one of these switches to LD
9481    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9482      libsuff= shlibsuff= libmagic=32-bit;;
9483    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9484      libsuff=32 shlibsuff=N32 libmagic=N32;;
9485    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9486      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9487    *) libsuff= shlibsuff= libmagic=never-match;;
9488    esac
9489    ;;
9490  esac
9491  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9492  shlibpath_overrides_runpath=no
9493  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9494  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9495  hardcode_into_libs=yes
9496  ;;
9497
9498# No shared lib support for Linux oldld, aout, or coff.
9499linux*oldld* | linux*aout* | linux*coff*)
9500  dynamic_linker=no
9501  ;;
9502
9503# This must be Linux ELF.
9504linux* | k*bsd*-gnu)
9505  version_type=linux
9506  need_lib_prefix=no
9507  need_version=no
9508  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509  soname_spec='${libname}${release}${shared_ext}$major'
9510  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9511  shlibpath_var=LD_LIBRARY_PATH
9512  shlibpath_overrides_runpath=no
9513  # This implies no fast_install, which is unacceptable.
9514  # Some rework will be needed to allow for fast_install
9515  # before this can be enabled.
9516  hardcode_into_libs=yes
9517  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9518  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9519
9520  # Append ld.so.conf contents to the search path
9521  if test -f /etc/ld.so.conf; then
9522    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' ' '`
9523    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9524  fi
9525
9526  # We used to test for /lib/ld.so.1 and disable shared libraries on
9527  # powerpc, because MkLinux only supported shared libraries with the
9528  # GNU dynamic linker.  Since this was broken with cross compilers,
9529  # most powerpc-linux boxes support dynamic linking these days and
9530  # people can always --disable-shared, the test was removed, and we
9531  # assume the GNU/Linux dynamic linker is in use.
9532  dynamic_linker='GNU/Linux ld.so'
9533  ;;
9534
9535netbsd*)
9536  version_type=sunos
9537  need_lib_prefix=no
9538  need_version=no
9539  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9540    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9541    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9542    dynamic_linker='NetBSD (a.out) ld.so'
9543  else
9544    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9545    soname_spec='${libname}${release}${shared_ext}$major'
9546    dynamic_linker='NetBSD ld.elf_so'
9547  fi
9548  shlibpath_var=LD_LIBRARY_PATH
9549  shlibpath_overrides_runpath=yes
9550  hardcode_into_libs=yes
9551  ;;
9552
9553newsos6)
9554  version_type=linux
9555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9556  shlibpath_var=LD_LIBRARY_PATH
9557  shlibpath_overrides_runpath=yes
9558  ;;
9559
9560nto-qnx*)
9561  version_type=linux
9562  need_lib_prefix=no
9563  need_version=no
9564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9565  soname_spec='${libname}${release}${shared_ext}$major'
9566  shlibpath_var=LD_LIBRARY_PATH
9567  shlibpath_overrides_runpath=yes
9568  ;;
9569
9570openbsd*)
9571  version_type=sunos
9572  sys_lib_dlsearch_path_spec="/usr/lib"
9573  need_lib_prefix=no
9574  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9575  case $host_os in
9576    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9577    *)                         need_version=no  ;;
9578  esac
9579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9580  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9581  shlibpath_var=LD_LIBRARY_PATH
9582  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9583    case $host_os in
9584      openbsd2.[89] | openbsd2.[89].*)
9585	shlibpath_overrides_runpath=no
9586	;;
9587      *)
9588	shlibpath_overrides_runpath=yes
9589	;;
9590      esac
9591  else
9592    shlibpath_overrides_runpath=yes
9593  fi
9594  ;;
9595
9596os2*)
9597  libname_spec='$name'
9598  shrext_cmds=".dll"
9599  need_lib_prefix=no
9600  library_names_spec='$libname${shared_ext} $libname.a'
9601  dynamic_linker='OS/2 ld.exe'
9602  shlibpath_var=LIBPATH
9603  ;;
9604
9605osf3* | osf4* | osf5*)
9606  version_type=osf
9607  need_lib_prefix=no
9608  need_version=no
9609  soname_spec='${libname}${release}${shared_ext}$major'
9610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9611  shlibpath_var=LD_LIBRARY_PATH
9612  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9613  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9614  ;;
9615
9616rdos*)
9617  dynamic_linker=no
9618  ;;
9619
9620solaris*)
9621  version_type=linux
9622  need_lib_prefix=no
9623  need_version=no
9624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9625  soname_spec='${libname}${release}${shared_ext}$major'
9626  shlibpath_var=LD_LIBRARY_PATH
9627  shlibpath_overrides_runpath=yes
9628  hardcode_into_libs=yes
9629  # ldd complains unless libraries are executable
9630  postinstall_cmds='chmod +x $lib'
9631  ;;
9632
9633sunos4*)
9634  version_type=sunos
9635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9636  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9637  shlibpath_var=LD_LIBRARY_PATH
9638  shlibpath_overrides_runpath=yes
9639  if test "$with_gnu_ld" = yes; then
9640    need_lib_prefix=no
9641  fi
9642  need_version=yes
9643  ;;
9644
9645sysv4 | sysv4.3*)
9646  version_type=linux
9647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9648  soname_spec='${libname}${release}${shared_ext}$major'
9649  shlibpath_var=LD_LIBRARY_PATH
9650  case $host_vendor in
9651    sni)
9652      shlibpath_overrides_runpath=no
9653      need_lib_prefix=no
9654      export_dynamic_flag_spec='${wl}-Blargedynsym'
9655      runpath_var=LD_RUN_PATH
9656      ;;
9657    siemens)
9658      need_lib_prefix=no
9659      ;;
9660    motorola)
9661      need_lib_prefix=no
9662      need_version=no
9663      shlibpath_overrides_runpath=no
9664      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9665      ;;
9666  esac
9667  ;;
9668
9669sysv4*MP*)
9670  if test -d /usr/nec ;then
9671    version_type=linux
9672    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9673    soname_spec='$libname${shared_ext}.$major'
9674    shlibpath_var=LD_LIBRARY_PATH
9675  fi
9676  ;;
9677
9678sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9679  version_type=freebsd-elf
9680  need_lib_prefix=no
9681  need_version=no
9682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9683  soname_spec='${libname}${release}${shared_ext}$major'
9684  shlibpath_var=LD_LIBRARY_PATH
9685  hardcode_into_libs=yes
9686  if test "$with_gnu_ld" = yes; then
9687    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9688    shlibpath_overrides_runpath=no
9689  else
9690    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9691    shlibpath_overrides_runpath=yes
9692    case $host_os in
9693      sco3.2v5*)
9694        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9695	;;
9696    esac
9697  fi
9698  sys_lib_dlsearch_path_spec='/usr/lib'
9699  ;;
9700
9701uts4*)
9702  version_type=linux
9703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9704  soname_spec='${libname}${release}${shared_ext}$major'
9705  shlibpath_var=LD_LIBRARY_PATH
9706  ;;
9707
9708*)
9709  dynamic_linker=no
9710  ;;
9711esac
9712{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9713$as_echo "$dynamic_linker" >&6; }
9714test "$dynamic_linker" = no && can_build_shared=no
9715
9716if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9717  $as_echo_n "(cached) " >&6
9718else
9719  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9720fi
9721
9722sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9723if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9724  $as_echo_n "(cached) " >&6
9725else
9726  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9727fi
9728
9729sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9730
9731variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9732if test "$GCC" = yes; then
9733  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9734fi
9735
9736{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9737$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9738hardcode_action=
9739if test -n "$hardcode_libdir_flag_spec" || \
9740   test -n "$runpath_var" || \
9741   test "X$hardcode_automatic" = "Xyes" ; then
9742
9743  # We can hardcode non-existant directories.
9744  if test "$hardcode_direct" != no &&
9745     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9746     # have to relink, otherwise we might link with an installed library
9747     # when we should be linking with a yet-to-be-installed one
9748     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9749     test "$hardcode_minus_L" != no; then
9750    # Linking always hardcodes the temporary library directory.
9751    hardcode_action=relink
9752  else
9753    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9754    hardcode_action=immediate
9755  fi
9756else
9757  # We cannot hardcode anything, or else we can only hardcode existing
9758  # directories.
9759  hardcode_action=unsupported
9760fi
9761{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9762$as_echo "$hardcode_action" >&6; }
9763
9764if test "$hardcode_action" = relink; then
9765  # Fast installation is not supported
9766  enable_fast_install=no
9767elif test "$shlibpath_overrides_runpath" = yes ||
9768     test "$enable_shared" = no; then
9769  # Fast installation is not necessary
9770  enable_fast_install=needless
9771fi
9772
9773striplib=
9774old_striplib=
9775{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9776$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9777if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9778  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9779  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9780  { $as_echo "$as_me:$LINENO: result: yes" >&5
9781$as_echo "yes" >&6; }
9782else
9783# FIXME - insert some real tests, host_os isn't really good enough
9784  case $host_os in
9785   darwin*)
9786       if test -n "$STRIP" ; then
9787         striplib="$STRIP -x"
9788         old_striplib="$STRIP -S"
9789         { $as_echo "$as_me:$LINENO: result: yes" >&5
9790$as_echo "yes" >&6; }
9791       else
9792  { $as_echo "$as_me:$LINENO: result: no" >&5
9793$as_echo "no" >&6; }
9794fi
9795       ;;
9796   *)
9797  { $as_echo "$as_me:$LINENO: result: no" >&5
9798$as_echo "no" >&6; }
9799    ;;
9800  esac
9801fi
9802
9803if test "x$enable_dlopen" != xyes; then
9804  enable_dlopen=unknown
9805  enable_dlopen_self=unknown
9806  enable_dlopen_self_static=unknown
9807else
9808  lt_cv_dlopen=no
9809  lt_cv_dlopen_libs=
9810
9811  case $host_os in
9812  beos*)
9813    lt_cv_dlopen="load_add_on"
9814    lt_cv_dlopen_libs=
9815    lt_cv_dlopen_self=yes
9816    ;;
9817
9818  mingw* | pw32*)
9819    lt_cv_dlopen="LoadLibrary"
9820    lt_cv_dlopen_libs=
9821   ;;
9822
9823  cygwin*)
9824    lt_cv_dlopen="dlopen"
9825    lt_cv_dlopen_libs=
9826   ;;
9827
9828  darwin*)
9829  # if libdl is installed we need to link against it
9830    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9831$as_echo_n "checking for dlopen in -ldl... " >&6; }
9832if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9833  $as_echo_n "(cached) " >&6
9834else
9835  ac_check_lib_save_LIBS=$LIBS
9836LIBS="-ldl  $LIBS"
9837cat >conftest.$ac_ext <<_ACEOF
9838/* confdefs.h.  */
9839_ACEOF
9840cat confdefs.h >>conftest.$ac_ext
9841cat >>conftest.$ac_ext <<_ACEOF
9842/* end confdefs.h.  */
9843
9844/* Override any GCC internal prototype to avoid an error.
9845   Use char because int might match the return type of a GCC
9846   builtin and then its argument prototype would still apply.  */
9847#ifdef __cplusplus
9848extern "C"
9849#endif
9850char dlopen ();
9851int
9852main ()
9853{
9854return dlopen ();
9855  ;
9856  return 0;
9857}
9858_ACEOF
9859rm -f conftest.$ac_objext conftest$ac_exeext
9860if { (ac_try="$ac_link"
9861case "(($ac_try" in
9862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863  *) ac_try_echo=$ac_try;;
9864esac
9865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9866$as_echo "$ac_try_echo") >&5
9867  (eval "$ac_link") 2>conftest.er1
9868  ac_status=$?
9869  grep -v '^ *+' conftest.er1 >conftest.err
9870  rm -f conftest.er1
9871  cat conftest.err >&5
9872  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873  (exit $ac_status); } && {
9874	 test -z "$ac_c_werror_flag" ||
9875	 test ! -s conftest.err
9876       } && test -s conftest$ac_exeext && {
9877	 test "$cross_compiling" = yes ||
9878	 $as_test_x conftest$ac_exeext
9879       }; then
9880  ac_cv_lib_dl_dlopen=yes
9881else
9882  $as_echo "$as_me: failed program was:" >&5
9883sed 's/^/| /' conftest.$ac_ext >&5
9884
9885	ac_cv_lib_dl_dlopen=no
9886fi
9887
9888rm -rf conftest.dSYM
9889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9890      conftest$ac_exeext conftest.$ac_ext
9891LIBS=$ac_check_lib_save_LIBS
9892fi
9893{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9894$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9895if test $ac_cv_lib_dl_dlopen = yes; then
9896  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9897else
9898
9899    lt_cv_dlopen="dyld"
9900    lt_cv_dlopen_libs=
9901    lt_cv_dlopen_self=yes
9902
9903fi
9904
9905   ;;
9906
9907  *)
9908    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9909$as_echo_n "checking for shl_load... " >&6; }
9910if test "${ac_cv_func_shl_load+set}" = set; then
9911  $as_echo_n "(cached) " >&6
9912else
9913  cat >conftest.$ac_ext <<_ACEOF
9914/* confdefs.h.  */
9915_ACEOF
9916cat confdefs.h >>conftest.$ac_ext
9917cat >>conftest.$ac_ext <<_ACEOF
9918/* end confdefs.h.  */
9919/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9920   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9921#define shl_load innocuous_shl_load
9922
9923/* System header to define __stub macros and hopefully few prototypes,
9924    which can conflict with char shl_load (); below.
9925    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9926    <limits.h> exists even on freestanding compilers.  */
9927
9928#ifdef __STDC__
9929# include <limits.h>
9930#else
9931# include <assert.h>
9932#endif
9933
9934#undef shl_load
9935
9936/* Override any GCC internal prototype to avoid an error.
9937   Use char because int might match the return type of a GCC
9938   builtin and then its argument prototype would still apply.  */
9939#ifdef __cplusplus
9940extern "C"
9941#endif
9942char shl_load ();
9943/* The GNU C library defines this for functions which it implements
9944    to always fail with ENOSYS.  Some functions are actually named
9945    something starting with __ and the normal name is an alias.  */
9946#if defined __stub_shl_load || defined __stub___shl_load
9947choke me
9948#endif
9949
9950int
9951main ()
9952{
9953return shl_load ();
9954  ;
9955  return 0;
9956}
9957_ACEOF
9958rm -f conftest.$ac_objext conftest$ac_exeext
9959if { (ac_try="$ac_link"
9960case "(($ac_try" in
9961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962  *) ac_try_echo=$ac_try;;
9963esac
9964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9965$as_echo "$ac_try_echo") >&5
9966  (eval "$ac_link") 2>conftest.er1
9967  ac_status=$?
9968  grep -v '^ *+' conftest.er1 >conftest.err
9969  rm -f conftest.er1
9970  cat conftest.err >&5
9971  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972  (exit $ac_status); } && {
9973	 test -z "$ac_c_werror_flag" ||
9974	 test ! -s conftest.err
9975       } && test -s conftest$ac_exeext && {
9976	 test "$cross_compiling" = yes ||
9977	 $as_test_x conftest$ac_exeext
9978       }; then
9979  ac_cv_func_shl_load=yes
9980else
9981  $as_echo "$as_me: failed program was:" >&5
9982sed 's/^/| /' conftest.$ac_ext >&5
9983
9984	ac_cv_func_shl_load=no
9985fi
9986
9987rm -rf conftest.dSYM
9988rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9989      conftest$ac_exeext conftest.$ac_ext
9990fi
9991{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9992$as_echo "$ac_cv_func_shl_load" >&6; }
9993if test $ac_cv_func_shl_load = yes; then
9994  lt_cv_dlopen="shl_load"
9995else
9996  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9997$as_echo_n "checking for shl_load in -ldld... " >&6; }
9998if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9999  $as_echo_n "(cached) " >&6
10000else
10001  ac_check_lib_save_LIBS=$LIBS
10002LIBS="-ldld  $LIBS"
10003cat >conftest.$ac_ext <<_ACEOF
10004/* confdefs.h.  */
10005_ACEOF
10006cat confdefs.h >>conftest.$ac_ext
10007cat >>conftest.$ac_ext <<_ACEOF
10008/* end confdefs.h.  */
10009
10010/* Override any GCC internal prototype to avoid an error.
10011   Use char because int might match the return type of a GCC
10012   builtin and then its argument prototype would still apply.  */
10013#ifdef __cplusplus
10014extern "C"
10015#endif
10016char shl_load ();
10017int
10018main ()
10019{
10020return shl_load ();
10021  ;
10022  return 0;
10023}
10024_ACEOF
10025rm -f conftest.$ac_objext conftest$ac_exeext
10026if { (ac_try="$ac_link"
10027case "(($ac_try" in
10028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029  *) ac_try_echo=$ac_try;;
10030esac
10031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10032$as_echo "$ac_try_echo") >&5
10033  (eval "$ac_link") 2>conftest.er1
10034  ac_status=$?
10035  grep -v '^ *+' conftest.er1 >conftest.err
10036  rm -f conftest.er1
10037  cat conftest.err >&5
10038  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039  (exit $ac_status); } && {
10040	 test -z "$ac_c_werror_flag" ||
10041	 test ! -s conftest.err
10042       } && test -s conftest$ac_exeext && {
10043	 test "$cross_compiling" = yes ||
10044	 $as_test_x conftest$ac_exeext
10045       }; then
10046  ac_cv_lib_dld_shl_load=yes
10047else
10048  $as_echo "$as_me: failed program was:" >&5
10049sed 's/^/| /' conftest.$ac_ext >&5
10050
10051	ac_cv_lib_dld_shl_load=no
10052fi
10053
10054rm -rf conftest.dSYM
10055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10056      conftest$ac_exeext conftest.$ac_ext
10057LIBS=$ac_check_lib_save_LIBS
10058fi
10059{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10060$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10061if test $ac_cv_lib_dld_shl_load = yes; then
10062  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10063else
10064  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10065$as_echo_n "checking for dlopen... " >&6; }
10066if test "${ac_cv_func_dlopen+set}" = set; then
10067  $as_echo_n "(cached) " >&6
10068else
10069  cat >conftest.$ac_ext <<_ACEOF
10070/* confdefs.h.  */
10071_ACEOF
10072cat confdefs.h >>conftest.$ac_ext
10073cat >>conftest.$ac_ext <<_ACEOF
10074/* end confdefs.h.  */
10075/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10076   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10077#define dlopen innocuous_dlopen
10078
10079/* System header to define __stub macros and hopefully few prototypes,
10080    which can conflict with char dlopen (); below.
10081    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10082    <limits.h> exists even on freestanding compilers.  */
10083
10084#ifdef __STDC__
10085# include <limits.h>
10086#else
10087# include <assert.h>
10088#endif
10089
10090#undef dlopen
10091
10092/* Override any GCC internal prototype to avoid an error.
10093   Use char because int might match the return type of a GCC
10094   builtin and then its argument prototype would still apply.  */
10095#ifdef __cplusplus
10096extern "C"
10097#endif
10098char dlopen ();
10099/* The GNU C library defines this for functions which it implements
10100    to always fail with ENOSYS.  Some functions are actually named
10101    something starting with __ and the normal name is an alias.  */
10102#if defined __stub_dlopen || defined __stub___dlopen
10103choke me
10104#endif
10105
10106int
10107main ()
10108{
10109return dlopen ();
10110  ;
10111  return 0;
10112}
10113_ACEOF
10114rm -f conftest.$ac_objext conftest$ac_exeext
10115if { (ac_try="$ac_link"
10116case "(($ac_try" in
10117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118  *) ac_try_echo=$ac_try;;
10119esac
10120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10121$as_echo "$ac_try_echo") >&5
10122  (eval "$ac_link") 2>conftest.er1
10123  ac_status=$?
10124  grep -v '^ *+' conftest.er1 >conftest.err
10125  rm -f conftest.er1
10126  cat conftest.err >&5
10127  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128  (exit $ac_status); } && {
10129	 test -z "$ac_c_werror_flag" ||
10130	 test ! -s conftest.err
10131       } && test -s conftest$ac_exeext && {
10132	 test "$cross_compiling" = yes ||
10133	 $as_test_x conftest$ac_exeext
10134       }; then
10135  ac_cv_func_dlopen=yes
10136else
10137  $as_echo "$as_me: failed program was:" >&5
10138sed 's/^/| /' conftest.$ac_ext >&5
10139
10140	ac_cv_func_dlopen=no
10141fi
10142
10143rm -rf conftest.dSYM
10144rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10145      conftest$ac_exeext conftest.$ac_ext
10146fi
10147{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10148$as_echo "$ac_cv_func_dlopen" >&6; }
10149if test $ac_cv_func_dlopen = yes; then
10150  lt_cv_dlopen="dlopen"
10151else
10152  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10153$as_echo_n "checking for dlopen in -ldl... " >&6; }
10154if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10155  $as_echo_n "(cached) " >&6
10156else
10157  ac_check_lib_save_LIBS=$LIBS
10158LIBS="-ldl  $LIBS"
10159cat >conftest.$ac_ext <<_ACEOF
10160/* confdefs.h.  */
10161_ACEOF
10162cat confdefs.h >>conftest.$ac_ext
10163cat >>conftest.$ac_ext <<_ACEOF
10164/* end confdefs.h.  */
10165
10166/* Override any GCC internal prototype to avoid an error.
10167   Use char because int might match the return type of a GCC
10168   builtin and then its argument prototype would still apply.  */
10169#ifdef __cplusplus
10170extern "C"
10171#endif
10172char dlopen ();
10173int
10174main ()
10175{
10176return dlopen ();
10177  ;
10178  return 0;
10179}
10180_ACEOF
10181rm -f conftest.$ac_objext conftest$ac_exeext
10182if { (ac_try="$ac_link"
10183case "(($ac_try" in
10184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185  *) ac_try_echo=$ac_try;;
10186esac
10187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10188$as_echo "$ac_try_echo") >&5
10189  (eval "$ac_link") 2>conftest.er1
10190  ac_status=$?
10191  grep -v '^ *+' conftest.er1 >conftest.err
10192  rm -f conftest.er1
10193  cat conftest.err >&5
10194  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195  (exit $ac_status); } && {
10196	 test -z "$ac_c_werror_flag" ||
10197	 test ! -s conftest.err
10198       } && test -s conftest$ac_exeext && {
10199	 test "$cross_compiling" = yes ||
10200	 $as_test_x conftest$ac_exeext
10201       }; then
10202  ac_cv_lib_dl_dlopen=yes
10203else
10204  $as_echo "$as_me: failed program was:" >&5
10205sed 's/^/| /' conftest.$ac_ext >&5
10206
10207	ac_cv_lib_dl_dlopen=no
10208fi
10209
10210rm -rf conftest.dSYM
10211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10212      conftest$ac_exeext conftest.$ac_ext
10213LIBS=$ac_check_lib_save_LIBS
10214fi
10215{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10216$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10217if test $ac_cv_lib_dl_dlopen = yes; then
10218  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10219else
10220  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10221$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10222if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10223  $as_echo_n "(cached) " >&6
10224else
10225  ac_check_lib_save_LIBS=$LIBS
10226LIBS="-lsvld  $LIBS"
10227cat >conftest.$ac_ext <<_ACEOF
10228/* confdefs.h.  */
10229_ACEOF
10230cat confdefs.h >>conftest.$ac_ext
10231cat >>conftest.$ac_ext <<_ACEOF
10232/* end confdefs.h.  */
10233
10234/* Override any GCC internal prototype to avoid an error.
10235   Use char because int might match the return type of a GCC
10236   builtin and then its argument prototype would still apply.  */
10237#ifdef __cplusplus
10238extern "C"
10239#endif
10240char dlopen ();
10241int
10242main ()
10243{
10244return dlopen ();
10245  ;
10246  return 0;
10247}
10248_ACEOF
10249rm -f conftest.$ac_objext conftest$ac_exeext
10250if { (ac_try="$ac_link"
10251case "(($ac_try" in
10252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10253  *) ac_try_echo=$ac_try;;
10254esac
10255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10256$as_echo "$ac_try_echo") >&5
10257  (eval "$ac_link") 2>conftest.er1
10258  ac_status=$?
10259  grep -v '^ *+' conftest.er1 >conftest.err
10260  rm -f conftest.er1
10261  cat conftest.err >&5
10262  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263  (exit $ac_status); } && {
10264	 test -z "$ac_c_werror_flag" ||
10265	 test ! -s conftest.err
10266       } && test -s conftest$ac_exeext && {
10267	 test "$cross_compiling" = yes ||
10268	 $as_test_x conftest$ac_exeext
10269       }; then
10270  ac_cv_lib_svld_dlopen=yes
10271else
10272  $as_echo "$as_me: failed program was:" >&5
10273sed 's/^/| /' conftest.$ac_ext >&5
10274
10275	ac_cv_lib_svld_dlopen=no
10276fi
10277
10278rm -rf conftest.dSYM
10279rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10280      conftest$ac_exeext conftest.$ac_ext
10281LIBS=$ac_check_lib_save_LIBS
10282fi
10283{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10284$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10285if test $ac_cv_lib_svld_dlopen = yes; then
10286  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10287else
10288  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10289$as_echo_n "checking for dld_link in -ldld... " >&6; }
10290if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10291  $as_echo_n "(cached) " >&6
10292else
10293  ac_check_lib_save_LIBS=$LIBS
10294LIBS="-ldld  $LIBS"
10295cat >conftest.$ac_ext <<_ACEOF
10296/* confdefs.h.  */
10297_ACEOF
10298cat confdefs.h >>conftest.$ac_ext
10299cat >>conftest.$ac_ext <<_ACEOF
10300/* end confdefs.h.  */
10301
10302/* Override any GCC internal prototype to avoid an error.
10303   Use char because int might match the return type of a GCC
10304   builtin and then its argument prototype would still apply.  */
10305#ifdef __cplusplus
10306extern "C"
10307#endif
10308char dld_link ();
10309int
10310main ()
10311{
10312return dld_link ();
10313  ;
10314  return 0;
10315}
10316_ACEOF
10317rm -f conftest.$ac_objext conftest$ac_exeext
10318if { (ac_try="$ac_link"
10319case "(($ac_try" in
10320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321  *) ac_try_echo=$ac_try;;
10322esac
10323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10324$as_echo "$ac_try_echo") >&5
10325  (eval "$ac_link") 2>conftest.er1
10326  ac_status=$?
10327  grep -v '^ *+' conftest.er1 >conftest.err
10328  rm -f conftest.er1
10329  cat conftest.err >&5
10330  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331  (exit $ac_status); } && {
10332	 test -z "$ac_c_werror_flag" ||
10333	 test ! -s conftest.err
10334       } && test -s conftest$ac_exeext && {
10335	 test "$cross_compiling" = yes ||
10336	 $as_test_x conftest$ac_exeext
10337       }; then
10338  ac_cv_lib_dld_dld_link=yes
10339else
10340  $as_echo "$as_me: failed program was:" >&5
10341sed 's/^/| /' conftest.$ac_ext >&5
10342
10343	ac_cv_lib_dld_dld_link=no
10344fi
10345
10346rm -rf conftest.dSYM
10347rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10348      conftest$ac_exeext conftest.$ac_ext
10349LIBS=$ac_check_lib_save_LIBS
10350fi
10351{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10352$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10353if test $ac_cv_lib_dld_dld_link = yes; then
10354  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10355fi
10356
10357
10358fi
10359
10360
10361fi
10362
10363
10364fi
10365
10366
10367fi
10368
10369
10370fi
10371
10372    ;;
10373  esac
10374
10375  if test "x$lt_cv_dlopen" != xno; then
10376    enable_dlopen=yes
10377  else
10378    enable_dlopen=no
10379  fi
10380
10381  case $lt_cv_dlopen in
10382  dlopen)
10383    save_CPPFLAGS="$CPPFLAGS"
10384    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10385
10386    save_LDFLAGS="$LDFLAGS"
10387    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10388
10389    save_LIBS="$LIBS"
10390    LIBS="$lt_cv_dlopen_libs $LIBS"
10391
10392    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10393$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10394if test "${lt_cv_dlopen_self+set}" = set; then
10395  $as_echo_n "(cached) " >&6
10396else
10397  	  if test "$cross_compiling" = yes; then :
10398  lt_cv_dlopen_self=cross
10399else
10400  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10401  lt_status=$lt_dlunknown
10402  cat > conftest.$ac_ext <<EOF
10403#line 10403 "configure"
10404#include "confdefs.h"
10405
10406#if HAVE_DLFCN_H
10407#include <dlfcn.h>
10408#endif
10409
10410#include <stdio.h>
10411
10412#ifdef RTLD_GLOBAL
10413#  define LT_DLGLOBAL		RTLD_GLOBAL
10414#else
10415#  ifdef DL_GLOBAL
10416#    define LT_DLGLOBAL		DL_GLOBAL
10417#  else
10418#    define LT_DLGLOBAL		0
10419#  endif
10420#endif
10421
10422/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10423   find out it does not work in some platform. */
10424#ifndef LT_DLLAZY_OR_NOW
10425#  ifdef RTLD_LAZY
10426#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10427#  else
10428#    ifdef DL_LAZY
10429#      define LT_DLLAZY_OR_NOW		DL_LAZY
10430#    else
10431#      ifdef RTLD_NOW
10432#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10433#      else
10434#        ifdef DL_NOW
10435#          define LT_DLLAZY_OR_NOW	DL_NOW
10436#        else
10437#          define LT_DLLAZY_OR_NOW	0
10438#        endif
10439#      endif
10440#    endif
10441#  endif
10442#endif
10443
10444#ifdef __cplusplus
10445extern "C" void exit (int);
10446#endif
10447
10448void fnord() { int i=42;}
10449int main ()
10450{
10451  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10452  int status = $lt_dlunknown;
10453
10454  if (self)
10455    {
10456      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10457      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10458      /* dlclose (self); */
10459    }
10460  else
10461    puts (dlerror ());
10462
10463    exit (status);
10464}
10465EOF
10466  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10467  (eval $ac_link) 2>&5
10468  ac_status=$?
10469  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10471    (./conftest; exit; ) >&5 2>/dev/null
10472    lt_status=$?
10473    case x$lt_status in
10474      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10475      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10476      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10477    esac
10478  else :
10479    # compilation failed
10480    lt_cv_dlopen_self=no
10481  fi
10482fi
10483rm -fr conftest*
10484
10485
10486fi
10487{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10488$as_echo "$lt_cv_dlopen_self" >&6; }
10489
10490    if test "x$lt_cv_dlopen_self" = xyes; then
10491      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10492      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10493$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10494if test "${lt_cv_dlopen_self_static+set}" = set; then
10495  $as_echo_n "(cached) " >&6
10496else
10497  	  if test "$cross_compiling" = yes; then :
10498  lt_cv_dlopen_self_static=cross
10499else
10500  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10501  lt_status=$lt_dlunknown
10502  cat > conftest.$ac_ext <<EOF
10503#line 10503 "configure"
10504#include "confdefs.h"
10505
10506#if HAVE_DLFCN_H
10507#include <dlfcn.h>
10508#endif
10509
10510#include <stdio.h>
10511
10512#ifdef RTLD_GLOBAL
10513#  define LT_DLGLOBAL		RTLD_GLOBAL
10514#else
10515#  ifdef DL_GLOBAL
10516#    define LT_DLGLOBAL		DL_GLOBAL
10517#  else
10518#    define LT_DLGLOBAL		0
10519#  endif
10520#endif
10521
10522/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10523   find out it does not work in some platform. */
10524#ifndef LT_DLLAZY_OR_NOW
10525#  ifdef RTLD_LAZY
10526#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10527#  else
10528#    ifdef DL_LAZY
10529#      define LT_DLLAZY_OR_NOW		DL_LAZY
10530#    else
10531#      ifdef RTLD_NOW
10532#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10533#      else
10534#        ifdef DL_NOW
10535#          define LT_DLLAZY_OR_NOW	DL_NOW
10536#        else
10537#          define LT_DLLAZY_OR_NOW	0
10538#        endif
10539#      endif
10540#    endif
10541#  endif
10542#endif
10543
10544#ifdef __cplusplus
10545extern "C" void exit (int);
10546#endif
10547
10548void fnord() { int i=42;}
10549int main ()
10550{
10551  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10552  int status = $lt_dlunknown;
10553
10554  if (self)
10555    {
10556      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10557      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10558      /* dlclose (self); */
10559    }
10560  else
10561    puts (dlerror ());
10562
10563    exit (status);
10564}
10565EOF
10566  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10567  (eval $ac_link) 2>&5
10568  ac_status=$?
10569  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10571    (./conftest; exit; ) >&5 2>/dev/null
10572    lt_status=$?
10573    case x$lt_status in
10574      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10575      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10576      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10577    esac
10578  else :
10579    # compilation failed
10580    lt_cv_dlopen_self_static=no
10581  fi
10582fi
10583rm -fr conftest*
10584
10585
10586fi
10587{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10588$as_echo "$lt_cv_dlopen_self_static" >&6; }
10589    fi
10590
10591    CPPFLAGS="$save_CPPFLAGS"
10592    LDFLAGS="$save_LDFLAGS"
10593    LIBS="$save_LIBS"
10594    ;;
10595  esac
10596
10597  case $lt_cv_dlopen_self in
10598  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10599  *) enable_dlopen_self=unknown ;;
10600  esac
10601
10602  case $lt_cv_dlopen_self_static in
10603  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10604  *) enable_dlopen_self_static=unknown ;;
10605  esac
10606fi
10607
10608
10609# Report which library types will actually be built
10610{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10611$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10612{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10613$as_echo "$can_build_shared" >&6; }
10614
10615{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10616$as_echo_n "checking whether to build shared libraries... " >&6; }
10617test "$can_build_shared" = "no" && enable_shared=no
10618
10619# On AIX, shared libraries and static libraries use the same namespace, and
10620# are all built from PIC.
10621case $host_os in
10622aix3*)
10623  test "$enable_shared" = yes && enable_static=no
10624  if test -n "$RANLIB"; then
10625    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10626    postinstall_cmds='$RANLIB $lib'
10627  fi
10628  ;;
10629
10630aix[4-9]*)
10631  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10632    test "$enable_shared" = yes && enable_static=no
10633  fi
10634    ;;
10635esac
10636{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10637$as_echo "$enable_shared" >&6; }
10638
10639{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10640$as_echo_n "checking whether to build static libraries... " >&6; }
10641# Make sure either enable_shared or enable_static is yes.
10642test "$enable_shared" = yes || enable_static=yes
10643{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10644$as_echo "$enable_static" >&6; }
10645
10646# The else clause should only fire when bootstrapping the
10647# libtool distribution, otherwise you forgot to ship ltmain.sh
10648# with your package, and you will get complaints that there are
10649# no rules to generate ltmain.sh.
10650if test -f "$ltmain"; then
10651  # See if we are running on zsh, and set the options which allow our commands through
10652  # without removal of \ escapes.
10653  if test -n "${ZSH_VERSION+set}" ; then
10654    setopt NO_GLOB_SUBST
10655  fi
10656  # Now quote all the things that may contain metacharacters while being
10657  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10658  # variables and quote the copies for generation of the libtool script.
10659  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10660    SED SHELL STRIP \
10661    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10662    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10663    deplibs_check_method reload_flag reload_cmds need_locks \
10664    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10665    lt_cv_sys_global_symbol_to_c_name_address \
10666    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10667    old_postinstall_cmds old_postuninstall_cmds \
10668    compiler \
10669    CC \
10670    LD \
10671    lt_prog_compiler_wl \
10672    lt_prog_compiler_pic \
10673    lt_prog_compiler_static \
10674    lt_prog_compiler_no_builtin_flag \
10675    export_dynamic_flag_spec \
10676    thread_safe_flag_spec \
10677    whole_archive_flag_spec \
10678    enable_shared_with_static_runtimes \
10679    old_archive_cmds \
10680    old_archive_from_new_cmds \
10681    predep_objects \
10682    postdep_objects \
10683    predeps \
10684    postdeps \
10685    compiler_lib_search_path \
10686    compiler_lib_search_dirs \
10687    archive_cmds \
10688    archive_expsym_cmds \
10689    postinstall_cmds \
10690    postuninstall_cmds \
10691    old_archive_from_expsyms_cmds \
10692    allow_undefined_flag \
10693    no_undefined_flag \
10694    export_symbols_cmds \
10695    hardcode_libdir_flag_spec \
10696    hardcode_libdir_flag_spec_ld \
10697    hardcode_libdir_separator \
10698    hardcode_automatic \
10699    module_cmds \
10700    module_expsym_cmds \
10701    lt_cv_prog_compiler_c_o \
10702    fix_srcfile_path \
10703    exclude_expsyms \
10704    include_expsyms; do
10705
10706    case $var in
10707    old_archive_cmds | \
10708    old_archive_from_new_cmds | \
10709    archive_cmds | \
10710    archive_expsym_cmds | \
10711    module_cmds | \
10712    module_expsym_cmds | \
10713    old_archive_from_expsyms_cmds | \
10714    export_symbols_cmds | \
10715    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10716    postinstall_cmds | postuninstall_cmds | \
10717    old_postinstall_cmds | old_postuninstall_cmds | \
10718    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10719      # Double-quote double-evaled strings.
10720      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10721      ;;
10722    *)
10723      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10724      ;;
10725    esac
10726  done
10727
10728  case $lt_echo in
10729  *'\$0 --fallback-echo"')
10730    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10731    ;;
10732  esac
10733
10734cfgfile="${ofile}T"
10735  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10736  $rm -f "$cfgfile"
10737  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10738$as_echo "$as_me: creating $ofile" >&6;}
10739
10740  cat <<__EOF__ >> "$cfgfile"
10741#! $SHELL
10742
10743# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10744# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10745# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10746#
10747# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10748# Free Software Foundation, Inc.
10749#
10750# This file is part of GNU Libtool:
10751# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10752#
10753# This program is free software; you can redistribute it and/or modify
10754# it under the terms of the GNU General Public License as published by
10755# the Free Software Foundation; either version 2 of the License, or
10756# (at your option) any later version.
10757#
10758# This program is distributed in the hope that it will be useful, but
10759# WITHOUT ANY WARRANTY; without even the implied warranty of
10760# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10761# General Public License for more details.
10762#
10763# You should have received a copy of the GNU General Public License
10764# along with this program; if not, write to the Free Software
10765# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10766#
10767# As a special exception to the GNU General Public License, if you
10768# distribute this file as part of a program that contains a
10769# configuration script generated by Autoconf, you may include it under
10770# the same distribution terms that you use for the rest of that program.
10771
10772# A sed program that does not truncate output.
10773SED=$lt_SED
10774
10775# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10776Xsed="$SED -e 1s/^X//"
10777
10778# The HP-UX ksh and POSIX shell print the target directory to stdout
10779# if CDPATH is set.
10780(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10781
10782# The names of the tagged configurations supported by this script.
10783available_tags=
10784
10785# ### BEGIN LIBTOOL CONFIG
10786
10787# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10788
10789# Shell to use when invoking shell scripts.
10790SHELL=$lt_SHELL
10791
10792# Whether or not to build shared libraries.
10793build_libtool_libs=$enable_shared
10794
10795# Whether or not to build static libraries.
10796build_old_libs=$enable_static
10797
10798# Whether or not to add -lc for building shared libraries.
10799build_libtool_need_lc=$archive_cmds_need_lc
10800
10801# Whether or not to disallow shared libs when runtime libs are static
10802allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10803
10804# Whether or not to optimize for fast installation.
10805fast_install=$enable_fast_install
10806
10807# The host system.
10808host_alias=$host_alias
10809host=$host
10810host_os=$host_os
10811
10812# The build system.
10813build_alias=$build_alias
10814build=$build
10815build_os=$build_os
10816
10817# An echo program that does not interpret backslashes.
10818echo=$lt_echo
10819
10820# The archiver.
10821AR=$lt_AR
10822AR_FLAGS=$lt_AR_FLAGS
10823
10824# A C compiler.
10825LTCC=$lt_LTCC
10826
10827# LTCC compiler flags.
10828LTCFLAGS=$lt_LTCFLAGS
10829
10830# A language-specific compiler.
10831CC=$lt_compiler
10832
10833# Is the compiler the GNU C compiler?
10834with_gcc=$GCC
10835
10836# An ERE matcher.
10837EGREP=$lt_EGREP
10838
10839# The linker used to build libraries.
10840LD=$lt_LD
10841
10842# Whether we need hard or soft links.
10843LN_S=$lt_LN_S
10844
10845# A BSD-compatible nm program.
10846NM=$lt_NM
10847
10848# A symbol stripping program
10849STRIP=$lt_STRIP
10850
10851# Used to examine libraries when file_magic_cmd begins "file"
10852MAGIC_CMD=$MAGIC_CMD
10853
10854# Used on cygwin: DLL creation program.
10855DLLTOOL="$DLLTOOL"
10856
10857# Used on cygwin: object dumper.
10858OBJDUMP="$OBJDUMP"
10859
10860# Used on cygwin: assembler.
10861AS="$AS"
10862
10863# The name of the directory that contains temporary libtool files.
10864objdir=$objdir
10865
10866# How to create reloadable object files.
10867reload_flag=$lt_reload_flag
10868reload_cmds=$lt_reload_cmds
10869
10870# How to pass a linker flag through the compiler.
10871wl=$lt_lt_prog_compiler_wl
10872
10873# Object file suffix (normally "o").
10874objext="$ac_objext"
10875
10876# Old archive suffix (normally "a").
10877libext="$libext"
10878
10879# Shared library suffix (normally ".so").
10880shrext_cmds='$shrext_cmds'
10881
10882# Executable file suffix (normally "").
10883exeext="$exeext"
10884
10885# Additional compiler flags for building library objects.
10886pic_flag=$lt_lt_prog_compiler_pic
10887pic_mode=$pic_mode
10888
10889# What is the maximum length of a command?
10890max_cmd_len=$lt_cv_sys_max_cmd_len
10891
10892# Does compiler simultaneously support -c and -o options?
10893compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10894
10895# Must we lock files when doing compilation?
10896need_locks=$lt_need_locks
10897
10898# Do we need the lib prefix for modules?
10899need_lib_prefix=$need_lib_prefix
10900
10901# Do we need a version for libraries?
10902need_version=$need_version
10903
10904# Whether dlopen is supported.
10905dlopen_support=$enable_dlopen
10906
10907# Whether dlopen of programs is supported.
10908dlopen_self=$enable_dlopen_self
10909
10910# Whether dlopen of statically linked programs is supported.
10911dlopen_self_static=$enable_dlopen_self_static
10912
10913# Compiler flag to prevent dynamic linking.
10914link_static_flag=$lt_lt_prog_compiler_static
10915
10916# Compiler flag to turn off builtin functions.
10917no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10918
10919# Compiler flag to allow reflexive dlopens.
10920export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10921
10922# Compiler flag to generate shared objects directly from archives.
10923whole_archive_flag_spec=$lt_whole_archive_flag_spec
10924
10925# Compiler flag to generate thread-safe objects.
10926thread_safe_flag_spec=$lt_thread_safe_flag_spec
10927
10928# Library versioning type.
10929version_type=$version_type
10930
10931# Format of library name prefix.
10932libname_spec=$lt_libname_spec
10933
10934# List of archive names.  First name is the real one, the rest are links.
10935# The last name is the one that the linker finds with -lNAME.
10936library_names_spec=$lt_library_names_spec
10937
10938# The coded name of the library, if different from the real name.
10939soname_spec=$lt_soname_spec
10940
10941# Commands used to build and install an old-style archive.
10942RANLIB=$lt_RANLIB
10943old_archive_cmds=$lt_old_archive_cmds
10944old_postinstall_cmds=$lt_old_postinstall_cmds
10945old_postuninstall_cmds=$lt_old_postuninstall_cmds
10946
10947# Create an old-style archive from a shared archive.
10948old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10949
10950# Create a temporary old-style archive to link instead of a shared archive.
10951old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10952
10953# Commands used to build and install a shared archive.
10954archive_cmds=$lt_archive_cmds
10955archive_expsym_cmds=$lt_archive_expsym_cmds
10956postinstall_cmds=$lt_postinstall_cmds
10957postuninstall_cmds=$lt_postuninstall_cmds
10958
10959# Commands used to build a loadable module (assumed same as above if empty)
10960module_cmds=$lt_module_cmds
10961module_expsym_cmds=$lt_module_expsym_cmds
10962
10963# Commands to strip libraries.
10964old_striplib=$lt_old_striplib
10965striplib=$lt_striplib
10966
10967# Dependencies to place before the objects being linked to create a
10968# shared library.
10969predep_objects=$lt_predep_objects
10970
10971# Dependencies to place after the objects being linked to create a
10972# shared library.
10973postdep_objects=$lt_postdep_objects
10974
10975# Dependencies to place before the objects being linked to create a
10976# shared library.
10977predeps=$lt_predeps
10978
10979# Dependencies to place after the objects being linked to create a
10980# shared library.
10981postdeps=$lt_postdeps
10982
10983# The directories searched by this compiler when creating a shared
10984# library
10985compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10986
10987# The library search path used internally by the compiler when linking
10988# a shared library.
10989compiler_lib_search_path=$lt_compiler_lib_search_path
10990
10991# Method to check whether dependent libraries are shared objects.
10992deplibs_check_method=$lt_deplibs_check_method
10993
10994# Command to use when deplibs_check_method == file_magic.
10995file_magic_cmd=$lt_file_magic_cmd
10996
10997# Flag that allows shared libraries with undefined symbols to be built.
10998allow_undefined_flag=$lt_allow_undefined_flag
10999
11000# Flag that forces no undefined symbols.
11001no_undefined_flag=$lt_no_undefined_flag
11002
11003# Commands used to finish a libtool library installation in a directory.
11004finish_cmds=$lt_finish_cmds
11005
11006# Same as above, but a single script fragment to be evaled but not shown.
11007finish_eval=$lt_finish_eval
11008
11009# Take the output of nm and produce a listing of raw symbols and C names.
11010global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11011
11012# Transform the output of nm in a proper C declaration
11013global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11014
11015# Transform the output of nm in a C name address pair
11016global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11017
11018# This is the shared library runtime path variable.
11019runpath_var=$runpath_var
11020
11021# This is the shared library path variable.
11022shlibpath_var=$shlibpath_var
11023
11024# Is shlibpath searched before the hard-coded library search path?
11025shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11026
11027# How to hardcode a shared library path into an executable.
11028hardcode_action=$hardcode_action
11029
11030# Whether we should hardcode library paths into libraries.
11031hardcode_into_libs=$hardcode_into_libs
11032
11033# Flag to hardcode \$libdir into a binary during linking.
11034# This must work even if \$libdir does not exist.
11035hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11036
11037# If ld is used when linking, flag to hardcode \$libdir into
11038# a binary during linking. This must work even if \$libdir does
11039# not exist.
11040hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11041
11042# Whether we need a single -rpath flag with a separated argument.
11043hardcode_libdir_separator=$lt_hardcode_libdir_separator
11044
11045# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11046# resulting binary.
11047hardcode_direct=$hardcode_direct
11048
11049# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11050# resulting binary.
11051hardcode_minus_L=$hardcode_minus_L
11052
11053# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11054# the resulting binary.
11055hardcode_shlibpath_var=$hardcode_shlibpath_var
11056
11057# Set to yes if building a shared library automatically hardcodes DIR into the library
11058# and all subsequent libraries and executables linked against it.
11059hardcode_automatic=$hardcode_automatic
11060
11061# Variables whose values should be saved in libtool wrapper scripts and
11062# restored at relink time.
11063variables_saved_for_relink="$variables_saved_for_relink"
11064
11065# Whether libtool must link a program against all its dependency libraries.
11066link_all_deplibs=$link_all_deplibs
11067
11068# Compile-time system search path for libraries
11069sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11070
11071# Run-time system search path for libraries
11072sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11073
11074# Fix the shell variable \$srcfile for the compiler.
11075fix_srcfile_path=$lt_fix_srcfile_path
11076
11077# Set to yes if exported symbols are required.
11078always_export_symbols=$always_export_symbols
11079
11080# The commands to list exported symbols.
11081export_symbols_cmds=$lt_export_symbols_cmds
11082
11083# The commands to extract the exported symbol list from a shared archive.
11084extract_expsyms_cmds=$lt_extract_expsyms_cmds
11085
11086# Symbols that should not be listed in the preloaded symbols.
11087exclude_expsyms=$lt_exclude_expsyms
11088
11089# Symbols that must always be exported.
11090include_expsyms=$lt_include_expsyms
11091
11092# ### END LIBTOOL CONFIG
11093
11094__EOF__
11095
11096
11097  case $host_os in
11098  aix3*)
11099    cat <<\EOF >> "$cfgfile"
11100
11101# AIX sometimes has problems with the GCC collect2 program.  For some
11102# reason, if we set the COLLECT_NAMES environment variable, the problems
11103# vanish in a puff of smoke.
11104if test "X${COLLECT_NAMES+set}" != Xset; then
11105  COLLECT_NAMES=
11106  export COLLECT_NAMES
11107fi
11108EOF
11109    ;;
11110  esac
11111
11112  # We use sed instead of cat because bash on DJGPP gets confused if
11113  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11114  # text mode, it properly converts lines to CR/LF.  This bash problem
11115  # is reportedly fixed, but why not run on old versions too?
11116  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11117
11118  mv -f "$cfgfile" "$ofile" || \
11119    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11120  chmod +x "$ofile"
11121
11122else
11123  # If there is no Makefile yet, we rely on a make rule to execute
11124  # `config.status --recheck' to rerun these tests and create the
11125  # libtool script then.
11126  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11127  if test -f "$ltmain_in"; then
11128    test -f Makefile && make "$ltmain"
11129  fi
11130fi
11131
11132
11133ac_ext=c
11134ac_cpp='$CPP $CPPFLAGS'
11135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11137ac_compiler_gnu=$ac_cv_c_compiler_gnu
11138
11139CC="$lt_save_CC"
11140
11141
11142# Check whether --with-tags was given.
11143if test "${with_tags+set}" = set; then
11144  withval=$with_tags; tagnames="$withval"
11145fi
11146
11147
11148if test -f "$ltmain" && test -n "$tagnames"; then
11149  if test ! -f "${ofile}"; then
11150    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11151$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11152  fi
11153
11154  if test -z "$LTCC"; then
11155    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11156    if test -z "$LTCC"; then
11157      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11158$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11159    else
11160      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11161$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11162    fi
11163  fi
11164  if test -z "$LTCFLAGS"; then
11165    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11166  fi
11167
11168  # Extract list of available tagged configurations in $ofile.
11169  # Note that this assumes the entire list is on one line.
11170  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11171
11172  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11173  for tagname in $tagnames; do
11174    IFS="$lt_save_ifs"
11175    # Check whether tagname contains only valid characters
11176    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11177    "") ;;
11178    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11179$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11180   { (exit 1); exit 1; }; }
11181	;;
11182    esac
11183
11184    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11185    then
11186      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11187$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11188   { (exit 1); exit 1; }; }
11189    fi
11190
11191    # Update the list of available tags.
11192    if test -n "$tagname"; then
11193      echo appending configuration tag \"$tagname\" to $ofile
11194
11195      case $tagname in
11196      CXX)
11197	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11198	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11199	    (test "X$CXX" != "Xg++"))) ; then
11200	  ac_ext=cpp
11201ac_cpp='$CXXCPP $CPPFLAGS'
11202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11205
11206
11207
11208
11209archive_cmds_need_lc_CXX=no
11210allow_undefined_flag_CXX=
11211always_export_symbols_CXX=no
11212archive_expsym_cmds_CXX=
11213export_dynamic_flag_spec_CXX=
11214hardcode_direct_CXX=no
11215hardcode_libdir_flag_spec_CXX=
11216hardcode_libdir_flag_spec_ld_CXX=
11217hardcode_libdir_separator_CXX=
11218hardcode_minus_L_CXX=no
11219hardcode_shlibpath_var_CXX=unsupported
11220hardcode_automatic_CXX=no
11221module_cmds_CXX=
11222module_expsym_cmds_CXX=
11223link_all_deplibs_CXX=unknown
11224old_archive_cmds_CXX=$old_archive_cmds
11225no_undefined_flag_CXX=
11226whole_archive_flag_spec_CXX=
11227enable_shared_with_static_runtimes_CXX=no
11228
11229# Dependencies to place before and after the object being linked:
11230predep_objects_CXX=
11231postdep_objects_CXX=
11232predeps_CXX=
11233postdeps_CXX=
11234compiler_lib_search_path_CXX=
11235compiler_lib_search_dirs_CXX=
11236
11237# Source file extension for C++ test sources.
11238ac_ext=cpp
11239
11240# Object file extension for compiled C++ test sources.
11241objext=o
11242objext_CXX=$objext
11243
11244# Code to be used in simple compile tests
11245lt_simple_compile_test_code="int some_variable = 0;"
11246
11247# Code to be used in simple link tests
11248lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11249
11250# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11251
11252# If no C compiler was specified, use CC.
11253LTCC=${LTCC-"$CC"}
11254
11255# If no C compiler flags were specified, use CFLAGS.
11256LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11257
11258# Allow CC to be a program name with arguments.
11259compiler=$CC
11260
11261
11262# save warnings/boilerplate of simple test code
11263ac_outfile=conftest.$ac_objext
11264echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11265eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11266_lt_compiler_boilerplate=`cat conftest.err`
11267$rm conftest*
11268
11269ac_outfile=conftest.$ac_objext
11270echo "$lt_simple_link_test_code" >conftest.$ac_ext
11271eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11272_lt_linker_boilerplate=`cat conftest.err`
11273$rm -r conftest*
11274
11275
11276# Allow CC to be a program name with arguments.
11277lt_save_CC=$CC
11278lt_save_LD=$LD
11279lt_save_GCC=$GCC
11280GCC=$GXX
11281lt_save_with_gnu_ld=$with_gnu_ld
11282lt_save_path_LD=$lt_cv_path_LD
11283if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11284  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11285else
11286  $as_unset lt_cv_prog_gnu_ld
11287fi
11288if test -n "${lt_cv_path_LDCXX+set}"; then
11289  lt_cv_path_LD=$lt_cv_path_LDCXX
11290else
11291  $as_unset lt_cv_path_LD
11292fi
11293test -z "${LDCXX+set}" || LD=$LDCXX
11294CC=${CXX-"c++"}
11295compiler=$CC
11296compiler_CXX=$CC
11297for cc_temp in $compiler""; do
11298  case $cc_temp in
11299    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11300    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11301    \-*) ;;
11302    *) break;;
11303  esac
11304done
11305cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11306
11307
11308# We don't want -fno-exception wen compiling C++ code, so set the
11309# no_builtin_flag separately
11310if test "$GXX" = yes; then
11311  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11312else
11313  lt_prog_compiler_no_builtin_flag_CXX=
11314fi
11315
11316if test "$GXX" = yes; then
11317  # Set up default GNU C++ configuration
11318
11319
11320# Check whether --with-gnu-ld was given.
11321if test "${with_gnu_ld+set}" = set; then
11322  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11323else
11324  with_gnu_ld=no
11325fi
11326
11327ac_prog=ld
11328if test "$GCC" = yes; then
11329  # Check if gcc -print-prog-name=ld gives a path.
11330  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11331$as_echo_n "checking for ld used by $CC... " >&6; }
11332  case $host in
11333  *-*-mingw*)
11334    # gcc leaves a trailing carriage return which upsets mingw
11335    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11336  *)
11337    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11338  esac
11339  case $ac_prog in
11340    # Accept absolute paths.
11341    [\\/]* | ?:[\\/]*)
11342      re_direlt='/[^/][^/]*/\.\./'
11343      # Canonicalize the pathname of ld
11344      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11345      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11346	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11347      done
11348      test -z "$LD" && LD="$ac_prog"
11349      ;;
11350  "")
11351    # If it fails, then pretend we aren't using GCC.
11352    ac_prog=ld
11353    ;;
11354  *)
11355    # If it is relative, then search for the first ld in PATH.
11356    with_gnu_ld=unknown
11357    ;;
11358  esac
11359elif test "$with_gnu_ld" = yes; then
11360  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11361$as_echo_n "checking for GNU ld... " >&6; }
11362else
11363  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11364$as_echo_n "checking for non-GNU ld... " >&6; }
11365fi
11366if test "${lt_cv_path_LD+set}" = set; then
11367  $as_echo_n "(cached) " >&6
11368else
11369  if test -z "$LD"; then
11370  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11371  for ac_dir in $PATH; do
11372    IFS="$lt_save_ifs"
11373    test -z "$ac_dir" && ac_dir=.
11374    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11375      lt_cv_path_LD="$ac_dir/$ac_prog"
11376      # Check to see if the program is GNU ld.  I'd rather use --version,
11377      # but apparently some variants of GNU ld only accept -v.
11378      # Break only if it was the GNU/non-GNU ld that we prefer.
11379      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11380      *GNU* | *'with BFD'*)
11381	test "$with_gnu_ld" != no && break
11382	;;
11383      *)
11384	test "$with_gnu_ld" != yes && break
11385	;;
11386      esac
11387    fi
11388  done
11389  IFS="$lt_save_ifs"
11390else
11391  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11392fi
11393fi
11394
11395LD="$lt_cv_path_LD"
11396if test -n "$LD"; then
11397  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11398$as_echo "$LD" >&6; }
11399else
11400  { $as_echo "$as_me:$LINENO: result: no" >&5
11401$as_echo "no" >&6; }
11402fi
11403test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11404$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11405   { (exit 1); exit 1; }; }
11406{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11407$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11408if test "${lt_cv_prog_gnu_ld+set}" = set; then
11409  $as_echo_n "(cached) " >&6
11410else
11411  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11412case `$LD -v 2>&1 </dev/null` in
11413*GNU* | *'with BFD'*)
11414  lt_cv_prog_gnu_ld=yes
11415  ;;
11416*)
11417  lt_cv_prog_gnu_ld=no
11418  ;;
11419esac
11420fi
11421{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11422$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11423with_gnu_ld=$lt_cv_prog_gnu_ld
11424
11425
11426
11427  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11428  # archiving commands below assume that GNU ld is being used.
11429  if test "$with_gnu_ld" = yes; then
11430    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11431    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'
11432
11433    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11434    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11435
11436    # If archive_cmds runs LD, not CC, wlarc should be empty
11437    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11438    #     investigate it a little bit more. (MM)
11439    wlarc='${wl}'
11440
11441    # ancient GNU ld didn't support --whole-archive et. al.
11442    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11443	grep 'no-whole-archive' > /dev/null; then
11444      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11445    else
11446      whole_archive_flag_spec_CXX=
11447    fi
11448  else
11449    with_gnu_ld=no
11450    wlarc=
11451
11452    # A generic and very simple default shared library creation
11453    # command for GNU C++ for the case where it uses the native
11454    # linker, instead of GNU ld.  If possible, this setting should
11455    # overridden to take advantage of the native linker features on
11456    # the platform it is being used on.
11457    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11458  fi
11459
11460  # Commands to make compiler produce verbose output that lists
11461  # what "hidden" libraries, object files and flags are used when
11462  # linking a shared library.
11463  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11464
11465else
11466  GXX=no
11467  with_gnu_ld=no
11468  wlarc=
11469fi
11470
11471# PORTME: fill in a description of your system's C++ link characteristics
11472{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11473$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11474ld_shlibs_CXX=yes
11475case $host_os in
11476  aix3*)
11477    # FIXME: insert proper C++ library support
11478    ld_shlibs_CXX=no
11479    ;;
11480  aix[4-9]*)
11481    if test "$host_cpu" = ia64; then
11482      # On IA64, the linker does run time linking by default, so we don't
11483      # have to do anything special.
11484      aix_use_runtimelinking=no
11485      exp_sym_flag='-Bexport'
11486      no_entry_flag=""
11487    else
11488      aix_use_runtimelinking=no
11489
11490      # Test if we are trying to use run time linking or normal
11491      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11492      # need to do runtime linking.
11493      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11494	for ld_flag in $LDFLAGS; do
11495	  case $ld_flag in
11496	  *-brtl*)
11497	    aix_use_runtimelinking=yes
11498	    break
11499	    ;;
11500	  esac
11501	done
11502	;;
11503      esac
11504
11505      exp_sym_flag='-bexport'
11506      no_entry_flag='-bnoentry'
11507    fi
11508
11509    # When large executables or shared objects are built, AIX ld can
11510    # have problems creating the table of contents.  If linking a library
11511    # or program results in "error TOC overflow" add -mminimal-toc to
11512    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11513    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11514
11515    archive_cmds_CXX=''
11516    hardcode_direct_CXX=yes
11517    hardcode_libdir_separator_CXX=':'
11518    link_all_deplibs_CXX=yes
11519
11520    if test "$GXX" = yes; then
11521      case $host_os in aix4.[012]|aix4.[012].*)
11522      # We only want to do this on AIX 4.2 and lower, the check
11523      # below for broken collect2 doesn't work under 4.3+
11524	collect2name=`${CC} -print-prog-name=collect2`
11525	if test -f "$collect2name" && \
11526	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11527	then
11528	  # We have reworked collect2
11529	  :
11530	else
11531	  # We have old collect2
11532	  hardcode_direct_CXX=unsupported
11533	  # It fails to find uninstalled libraries when the uninstalled
11534	  # path is not listed in the libpath.  Setting hardcode_minus_L
11535	  # to unsupported forces relinking
11536	  hardcode_minus_L_CXX=yes
11537	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11538	  hardcode_libdir_separator_CXX=
11539	fi
11540	;;
11541      esac
11542      shared_flag='-shared'
11543      if test "$aix_use_runtimelinking" = yes; then
11544	shared_flag="$shared_flag "'${wl}-G'
11545      fi
11546    else
11547      # not using gcc
11548      if test "$host_cpu" = ia64; then
11549	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11550	# chokes on -Wl,-G. The following line is correct:
11551	shared_flag='-G'
11552      else
11553	if test "$aix_use_runtimelinking" = yes; then
11554	  shared_flag='${wl}-G'
11555	else
11556	  shared_flag='${wl}-bM:SRE'
11557	fi
11558      fi
11559    fi
11560
11561    # It seems that -bexpall does not export symbols beginning with
11562    # underscore (_), so it is better to generate a list of symbols to export.
11563    always_export_symbols_CXX=yes
11564    if test "$aix_use_runtimelinking" = yes; then
11565      # Warning - without using the other runtime loading flags (-brtl),
11566      # -berok will link without error, but may produce a broken library.
11567      allow_undefined_flag_CXX='-berok'
11568      # Determine the default libpath from the value encoded in an empty executable.
11569      cat >conftest.$ac_ext <<_ACEOF
11570/* confdefs.h.  */
11571_ACEOF
11572cat confdefs.h >>conftest.$ac_ext
11573cat >>conftest.$ac_ext <<_ACEOF
11574/* end confdefs.h.  */
11575
11576int
11577main ()
11578{
11579
11580  ;
11581  return 0;
11582}
11583_ACEOF
11584rm -f conftest.$ac_objext conftest$ac_exeext
11585if { (ac_try="$ac_link"
11586case "(($ac_try" in
11587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588  *) ac_try_echo=$ac_try;;
11589esac
11590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11591$as_echo "$ac_try_echo") >&5
11592  (eval "$ac_link") 2>conftest.er1
11593  ac_status=$?
11594  grep -v '^ *+' conftest.er1 >conftest.err
11595  rm -f conftest.er1
11596  cat conftest.err >&5
11597  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598  (exit $ac_status); } && {
11599	 test -z "$ac_cxx_werror_flag" ||
11600	 test ! -s conftest.err
11601       } && test -s conftest$ac_exeext && {
11602	 test "$cross_compiling" = yes ||
11603	 $as_test_x conftest$ac_exeext
11604       }; then
11605
11606lt_aix_libpath_sed='
11607    /Import File Strings/,/^$/ {
11608	/^0/ {
11609	    s/^0  *\(.*\)$/\1/
11610	    p
11611	}
11612    }'
11613aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11614# Check for a 64-bit object if we didn't find anything.
11615if test -z "$aix_libpath"; then
11616  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11617fi
11618else
11619  $as_echo "$as_me: failed program was:" >&5
11620sed 's/^/| /' conftest.$ac_ext >&5
11621
11622
11623fi
11624
11625rm -rf conftest.dSYM
11626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11627      conftest$ac_exeext conftest.$ac_ext
11628if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11629
11630      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11631
11632      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"
11633     else
11634      if test "$host_cpu" = ia64; then
11635	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11636	allow_undefined_flag_CXX="-z nodefs"
11637	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"
11638      else
11639	# Determine the default libpath from the value encoded in an empty executable.
11640	cat >conftest.$ac_ext <<_ACEOF
11641/* confdefs.h.  */
11642_ACEOF
11643cat confdefs.h >>conftest.$ac_ext
11644cat >>conftest.$ac_ext <<_ACEOF
11645/* end confdefs.h.  */
11646
11647int
11648main ()
11649{
11650
11651  ;
11652  return 0;
11653}
11654_ACEOF
11655rm -f conftest.$ac_objext conftest$ac_exeext
11656if { (ac_try="$ac_link"
11657case "(($ac_try" in
11658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659  *) ac_try_echo=$ac_try;;
11660esac
11661eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11662$as_echo "$ac_try_echo") >&5
11663  (eval "$ac_link") 2>conftest.er1
11664  ac_status=$?
11665  grep -v '^ *+' conftest.er1 >conftest.err
11666  rm -f conftest.er1
11667  cat conftest.err >&5
11668  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669  (exit $ac_status); } && {
11670	 test -z "$ac_cxx_werror_flag" ||
11671	 test ! -s conftest.err
11672       } && test -s conftest$ac_exeext && {
11673	 test "$cross_compiling" = yes ||
11674	 $as_test_x conftest$ac_exeext
11675       }; then
11676
11677lt_aix_libpath_sed='
11678    /Import File Strings/,/^$/ {
11679	/^0/ {
11680	    s/^0  *\(.*\)$/\1/
11681	    p
11682	}
11683    }'
11684aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11685# Check for a 64-bit object if we didn't find anything.
11686if test -z "$aix_libpath"; then
11687  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11688fi
11689else
11690  $as_echo "$as_me: failed program was:" >&5
11691sed 's/^/| /' conftest.$ac_ext >&5
11692
11693
11694fi
11695
11696rm -rf conftest.dSYM
11697rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11698      conftest$ac_exeext conftest.$ac_ext
11699if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11700
11701	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11702	# Warning - without using the other run time loading flags,
11703	# -berok will link without error, but may produce a broken library.
11704	no_undefined_flag_CXX=' ${wl}-bernotok'
11705	allow_undefined_flag_CXX=' ${wl}-berok'
11706	# Exported symbols can be pulled into shared objects from archives
11707	whole_archive_flag_spec_CXX='$convenience'
11708	archive_cmds_need_lc_CXX=yes
11709	# This is similar to how AIX traditionally builds its shared libraries.
11710	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'
11711      fi
11712    fi
11713    ;;
11714
11715  beos*)
11716    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11717      allow_undefined_flag_CXX=unsupported
11718      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11719      # support --undefined.  This deserves some investigation.  FIXME
11720      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11721    else
11722      ld_shlibs_CXX=no
11723    fi
11724    ;;
11725
11726  chorus*)
11727    case $cc_basename in
11728      *)
11729	# FIXME: insert proper C++ library support
11730	ld_shlibs_CXX=no
11731	;;
11732    esac
11733    ;;
11734
11735  cygwin* | mingw* | pw32*)
11736    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11737    # as there is no search path for DLLs.
11738    hardcode_libdir_flag_spec_CXX='-L$libdir'
11739    allow_undefined_flag_CXX=unsupported
11740    always_export_symbols_CXX=no
11741    enable_shared_with_static_runtimes_CXX=yes
11742
11743    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11744      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'
11745      # If the export-symbols file already is a .def file (1st line
11746      # is EXPORTS), use it as is; otherwise, prepend...
11747      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11748	cp $export_symbols $output_objdir/$soname.def;
11749      else
11750	echo EXPORTS > $output_objdir/$soname.def;
11751	cat $export_symbols >> $output_objdir/$soname.def;
11752      fi~
11753      $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'
11754    else
11755      ld_shlibs_CXX=no
11756    fi
11757  ;;
11758      darwin* | rhapsody*)
11759      archive_cmds_need_lc_CXX=no
11760      hardcode_direct_CXX=no
11761      hardcode_automatic_CXX=yes
11762      hardcode_shlibpath_var_CXX=unsupported
11763      whole_archive_flag_spec_CXX=''
11764      link_all_deplibs_CXX=yes
11765      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11766      if test "$GXX" = yes ; then
11767      output_verbose_link_cmd='echo'
11768      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}"
11769      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11770      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}"
11771      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}"
11772      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11773        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}"
11774        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}"
11775      fi
11776      else
11777      case $cc_basename in
11778        xlc*)
11779         output_verbose_link_cmd='echo'
11780          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'
11781          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11782          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11783          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}'
11784          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}'
11785          ;;
11786       *)
11787         ld_shlibs_CXX=no
11788          ;;
11789      esac
11790      fi
11791        ;;
11792
11793  dgux*)
11794    case $cc_basename in
11795      ec++*)
11796	# FIXME: insert proper C++ library support
11797	ld_shlibs_CXX=no
11798	;;
11799      ghcx*)
11800	# Green Hills C++ Compiler
11801	# FIXME: insert proper C++ library support
11802	ld_shlibs_CXX=no
11803	;;
11804      *)
11805	# FIXME: insert proper C++ library support
11806	ld_shlibs_CXX=no
11807	;;
11808    esac
11809    ;;
11810  freebsd[12]*)
11811    # C++ shared libraries reported to be fairly broken before switch to ELF
11812    ld_shlibs_CXX=no
11813    ;;
11814  freebsd-elf*)
11815    archive_cmds_need_lc_CXX=no
11816    ;;
11817  freebsd* | dragonfly*)
11818    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11819    # conventions
11820    ld_shlibs_CXX=yes
11821    ;;
11822  gnu*)
11823    ;;
11824  hpux9*)
11825    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11826    hardcode_libdir_separator_CXX=:
11827    export_dynamic_flag_spec_CXX='${wl}-E'
11828    hardcode_direct_CXX=yes
11829    hardcode_minus_L_CXX=yes # Not in the search PATH,
11830				# but as the default
11831				# location of the library.
11832
11833    case $cc_basename in
11834    CC*)
11835      # FIXME: insert proper C++ library support
11836      ld_shlibs_CXX=no
11837      ;;
11838    aCC*)
11839      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'
11840      # Commands to make compiler produce verbose output that lists
11841      # what "hidden" libraries, object files and flags are used when
11842      # linking a shared library.
11843      #
11844      # There doesn't appear to be a way to prevent this compiler from
11845      # explicitly linking system object files so we need to strip them
11846      # from the output so that they don't get included in the library
11847      # dependencies.
11848      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'
11849      ;;
11850    *)
11851      if test "$GXX" = yes; then
11852        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'
11853      else
11854        # FIXME: insert proper C++ library support
11855        ld_shlibs_CXX=no
11856      fi
11857      ;;
11858    esac
11859    ;;
11860  hpux10*|hpux11*)
11861    if test $with_gnu_ld = no; then
11862      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11863      hardcode_libdir_separator_CXX=:
11864
11865      case $host_cpu in
11866      hppa*64*|ia64*) ;;
11867      *)
11868	export_dynamic_flag_spec_CXX='${wl}-E'
11869        ;;
11870      esac
11871    fi
11872    case $host_cpu in
11873    hppa*64*|ia64*)
11874      hardcode_direct_CXX=no
11875      hardcode_shlibpath_var_CXX=no
11876      ;;
11877    *)
11878      hardcode_direct_CXX=yes
11879      hardcode_minus_L_CXX=yes # Not in the search PATH,
11880					      # but as the default
11881					      # location of the library.
11882      ;;
11883    esac
11884
11885    case $cc_basename in
11886      CC*)
11887	# FIXME: insert proper C++ library support
11888	ld_shlibs_CXX=no
11889	;;
11890      aCC*)
11891	case $host_cpu in
11892	hppa*64*)
11893	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11894	  ;;
11895	ia64*)
11896	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11897	  ;;
11898	*)
11899	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11900	  ;;
11901	esac
11902	# Commands to make compiler produce verbose output that lists
11903	# what "hidden" libraries, object files and flags are used when
11904	# linking a shared library.
11905	#
11906	# There doesn't appear to be a way to prevent this compiler from
11907	# explicitly linking system object files so we need to strip them
11908	# from the output so that they don't get included in the library
11909	# dependencies.
11910	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'
11911	;;
11912      *)
11913	if test "$GXX" = yes; then
11914	  if test $with_gnu_ld = no; then
11915	    case $host_cpu in
11916	    hppa*64*)
11917	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11918	      ;;
11919	    ia64*)
11920	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11921	      ;;
11922	    *)
11923	      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'
11924	      ;;
11925	    esac
11926	  fi
11927	else
11928	  # FIXME: insert proper C++ library support
11929	  ld_shlibs_CXX=no
11930	fi
11931	;;
11932    esac
11933    ;;
11934  interix[3-9]*)
11935    hardcode_direct_CXX=no
11936    hardcode_shlibpath_var_CXX=no
11937    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11938    export_dynamic_flag_spec_CXX='${wl}-E'
11939    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11940    # Instead, shared libraries are loaded at an image base (0x10000000 by
11941    # default) and relocated if they conflict, which is a slow very memory
11942    # consuming and fragmenting process.  To avoid this, we pick a random,
11943    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11944    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11945    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'
11946    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'
11947    ;;
11948  irix5* | irix6*)
11949    case $cc_basename in
11950      CC*)
11951	# SGI C++
11952	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'
11953
11954	# Archives containing C++ object files must be created using
11955	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11956	# necessary to make sure instantiated templates are included
11957	# in the archive.
11958	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11959	;;
11960      *)
11961	if test "$GXX" = yes; then
11962	  if test "$with_gnu_ld" = no; then
11963	    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'
11964	  else
11965	    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'
11966	  fi
11967	fi
11968	link_all_deplibs_CXX=yes
11969	;;
11970    esac
11971    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11972    hardcode_libdir_separator_CXX=:
11973    ;;
11974  linux* | k*bsd*-gnu)
11975    case $cc_basename in
11976      KCC*)
11977	# Kuck and Associates, Inc. (KAI) C++ Compiler
11978
11979	# KCC will only create a shared library if the output file
11980	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11981	# to its proper name (with version) after linking.
11982	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'
11983	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'
11984	# Commands to make compiler produce verbose output that lists
11985	# what "hidden" libraries, object files and flags are used when
11986	# linking a shared library.
11987	#
11988	# There doesn't appear to be a way to prevent this compiler from
11989	# explicitly linking system object files so we need to strip them
11990	# from the output so that they don't get included in the library
11991	# dependencies.
11992	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'
11993
11994	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11995	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11996
11997	# Archives containing C++ object files must be created using
11998	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11999	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12000	;;
12001      icpc*)
12002	# Intel C++
12003	with_gnu_ld=yes
12004	# version 8.0 and above of icpc choke on multiply defined symbols
12005	# if we add $predep_objects and $postdep_objects, however 7.1 and
12006	# earlier do not add the objects themselves.
12007	case `$CC -V 2>&1` in
12008	*"Version 7."*)
12009  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12010  	  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'
12011	  ;;
12012	*)  # Version 8.0 or newer
12013	  tmp_idyn=
12014	  case $host_cpu in
12015	    ia64*) tmp_idyn=' -i_dynamic';;
12016	  esac
12017  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12018	  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'
12019	  ;;
12020	esac
12021	archive_cmds_need_lc_CXX=no
12022	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12023	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12024	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12025	;;
12026      pgCC* | pgcpp*)
12027        # Portland Group C++ compiler
12028	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12029  	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'
12030
12031	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12032	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12033	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'
12034        ;;
12035      cxx*)
12036	# Compaq C++
12037	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12038	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'
12039
12040	runpath_var=LD_RUN_PATH
12041	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12042	hardcode_libdir_separator_CXX=:
12043
12044	# Commands to make compiler produce verbose output that lists
12045	# what "hidden" libraries, object files and flags are used when
12046	# linking a shared library.
12047	#
12048	# There doesn't appear to be a way to prevent this compiler from
12049	# explicitly linking system object files so we need to strip them
12050	# from the output so that they don't get included in the library
12051	# dependencies.
12052	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'
12053	;;
12054      *)
12055	case `$CC -V 2>&1 | sed 5q` in
12056	*Sun\ C*)
12057	  # Sun C++ 5.9
12058	  no_undefined_flag_CXX=' -zdefs'
12059	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12060	  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'
12061	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12062	  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'
12063
12064	  # Not sure whether something based on
12065	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12066	  # would be better.
12067	  output_verbose_link_cmd='echo'
12068
12069	  # Archives containing C++ object files must be created using
12070	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12071	  # necessary to make sure instantiated templates are included
12072	  # in the archive.
12073	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12074	  ;;
12075	esac
12076	;;
12077    esac
12078    ;;
12079  lynxos*)
12080    # FIXME: insert proper C++ library support
12081    ld_shlibs_CXX=no
12082    ;;
12083  m88k*)
12084    # FIXME: insert proper C++ library support
12085    ld_shlibs_CXX=no
12086    ;;
12087  mvs*)
12088    case $cc_basename in
12089      cxx*)
12090	# FIXME: insert proper C++ library support
12091	ld_shlibs_CXX=no
12092	;;
12093      *)
12094	# FIXME: insert proper C++ library support
12095	ld_shlibs_CXX=no
12096	;;
12097    esac
12098    ;;
12099  netbsd*)
12100    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12101      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12102      wlarc=
12103      hardcode_libdir_flag_spec_CXX='-R$libdir'
12104      hardcode_direct_CXX=yes
12105      hardcode_shlibpath_var_CXX=no
12106    fi
12107    # Workaround some broken pre-1.5 toolchains
12108    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12109    ;;
12110  openbsd2*)
12111    # C++ shared libraries are fairly broken
12112    ld_shlibs_CXX=no
12113    ;;
12114  openbsd*)
12115    if test -f /usr/libexec/ld.so; then
12116      hardcode_direct_CXX=yes
12117      hardcode_shlibpath_var_CXX=no
12118      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12119      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12120      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12121	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12122	export_dynamic_flag_spec_CXX='${wl}-E'
12123	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12124      fi
12125      output_verbose_link_cmd='echo'
12126    else
12127      ld_shlibs_CXX=no
12128    fi
12129    ;;
12130  osf3*)
12131    case $cc_basename in
12132      KCC*)
12133	# Kuck and Associates, Inc. (KAI) C++ Compiler
12134
12135	# KCC will only create a shared library if the output file
12136	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12137	# to its proper name (with version) after linking.
12138	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'
12139
12140	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12141	hardcode_libdir_separator_CXX=:
12142
12143	# Archives containing C++ object files must be created using
12144	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12145	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12146
12147	;;
12148      RCC*)
12149	# Rational C++ 2.4.1
12150	# FIXME: insert proper C++ library support
12151	ld_shlibs_CXX=no
12152	;;
12153      cxx*)
12154	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12155	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'
12156
12157	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12158	hardcode_libdir_separator_CXX=:
12159
12160	# Commands to make compiler produce verbose output that lists
12161	# what "hidden" libraries, object files and flags are used when
12162	# linking a shared library.
12163	#
12164	# There doesn't appear to be a way to prevent this compiler from
12165	# explicitly linking system object files so we need to strip them
12166	# from the output so that they don't get included in the library
12167	# dependencies.
12168	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'
12169	;;
12170      *)
12171	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12172	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12173	  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'
12174
12175	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12176	  hardcode_libdir_separator_CXX=:
12177
12178	  # Commands to make compiler produce verbose output that lists
12179	  # what "hidden" libraries, object files and flags are used when
12180	  # linking a shared library.
12181	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12182
12183	else
12184	  # FIXME: insert proper C++ library support
12185	  ld_shlibs_CXX=no
12186	fi
12187	;;
12188    esac
12189    ;;
12190  osf4* | osf5*)
12191    case $cc_basename in
12192      KCC*)
12193	# Kuck and Associates, Inc. (KAI) C++ Compiler
12194
12195	# KCC will only create a shared library if the output file
12196	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12197	# to its proper name (with version) after linking.
12198	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'
12199
12200	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12201	hardcode_libdir_separator_CXX=:
12202
12203	# Archives containing C++ object files must be created using
12204	# the KAI C++ compiler.
12205	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12206	;;
12207      RCC*)
12208	# Rational C++ 2.4.1
12209	# FIXME: insert proper C++ library support
12210	ld_shlibs_CXX=no
12211	;;
12212      cxx*)
12213	allow_undefined_flag_CXX=' -expect_unresolved \*'
12214	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'
12215	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12216	  echo "-hidden">> $lib.exp~
12217	  $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~
12218	  $rm $lib.exp'
12219
12220	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12221	hardcode_libdir_separator_CXX=:
12222
12223	# Commands to make compiler produce verbose output that lists
12224	# what "hidden" libraries, object files and flags are used when
12225	# linking a shared library.
12226	#
12227	# There doesn't appear to be a way to prevent this compiler from
12228	# explicitly linking system object files so we need to strip them
12229	# from the output so that they don't get included in the library
12230	# dependencies.
12231	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'
12232	;;
12233      *)
12234	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12235	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12236	 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'
12237
12238	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12239	  hardcode_libdir_separator_CXX=:
12240
12241	  # Commands to make compiler produce verbose output that lists
12242	  # what "hidden" libraries, object files and flags are used when
12243	  # linking a shared library.
12244	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12245
12246	else
12247	  # FIXME: insert proper C++ library support
12248	  ld_shlibs_CXX=no
12249	fi
12250	;;
12251    esac
12252    ;;
12253  psos*)
12254    # FIXME: insert proper C++ library support
12255    ld_shlibs_CXX=no
12256    ;;
12257  sunos4*)
12258    case $cc_basename in
12259      CC*)
12260	# Sun C++ 4.x
12261	# FIXME: insert proper C++ library support
12262	ld_shlibs_CXX=no
12263	;;
12264      lcc*)
12265	# Lucid
12266	# FIXME: insert proper C++ library support
12267	ld_shlibs_CXX=no
12268	;;
12269      *)
12270	# FIXME: insert proper C++ library support
12271	ld_shlibs_CXX=no
12272	;;
12273    esac
12274    ;;
12275  solaris*)
12276    case $cc_basename in
12277      CC*)
12278	# Sun C++ 4.2, 5.x and Centerline C++
12279        archive_cmds_need_lc_CXX=yes
12280	no_undefined_flag_CXX=' -zdefs'
12281	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12282	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12283	$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'
12284
12285	hardcode_libdir_flag_spec_CXX='-R$libdir'
12286	hardcode_shlibpath_var_CXX=no
12287	case $host_os in
12288	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12289	  *)
12290	    # The compiler driver will combine and reorder linker options,
12291	    # but understands `-z linker_flag'.
12292	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12293	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12294	    ;;
12295	esac
12296	link_all_deplibs_CXX=yes
12297
12298	output_verbose_link_cmd='echo'
12299
12300	# Archives containing C++ object files must be created using
12301	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12302	# necessary to make sure instantiated templates are included
12303	# in the archive.
12304	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12305	;;
12306      gcx*)
12307	# Green Hills C++ Compiler
12308	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12309
12310	# The C++ compiler must be used to create the archive.
12311	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12312	;;
12313      *)
12314	# GNU C++ compiler with Solaris linker
12315	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12316	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12317	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12318	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12319	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12320		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12321
12322	    # Commands to make compiler produce verbose output that lists
12323	    # what "hidden" libraries, object files and flags are used when
12324	    # linking a shared library.
12325	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12326	  else
12327	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12328	    # platform.
12329	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12330	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12331		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12332
12333	    # Commands to make compiler produce verbose output that lists
12334	    # what "hidden" libraries, object files and flags are used when
12335	    # linking a shared library.
12336	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12337	  fi
12338
12339	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12340	  case $host_os in
12341	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12342	  *)
12343	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12344	    ;;
12345	  esac
12346	fi
12347	;;
12348    esac
12349    ;;
12350  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12351    no_undefined_flag_CXX='${wl}-z,text'
12352    archive_cmds_need_lc_CXX=no
12353    hardcode_shlibpath_var_CXX=no
12354    runpath_var='LD_RUN_PATH'
12355
12356    case $cc_basename in
12357      CC*)
12358	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12359	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12360	;;
12361      *)
12362	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12363	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12364	;;
12365    esac
12366    ;;
12367  sysv5* | sco3.2v5* | sco5v6*)
12368    # Note: We can NOT use -z defs as we might desire, because we do not
12369    # link with -lc, and that would cause any symbols used from libc to
12370    # always be unresolved, which means just about no library would
12371    # ever link correctly.  If we're not using GNU ld we use -z text
12372    # though, which does catch some bad symbols but isn't as heavy-handed
12373    # as -z defs.
12374    # For security reasons, it is highly recommended that you always
12375    # use absolute paths for naming shared libraries, and exclude the
12376    # DT_RUNPATH tag from executables and libraries.  But doing so
12377    # requires that you compile everything twice, which is a pain.
12378    # So that behaviour is only enabled if SCOABSPATH is set to a
12379    # non-empty value in the environment.  Most likely only useful for
12380    # creating official distributions of packages.
12381    # This is a hack until libtool officially supports absolute path
12382    # names for shared libraries.
12383    no_undefined_flag_CXX='${wl}-z,text'
12384    allow_undefined_flag_CXX='${wl}-z,nodefs'
12385    archive_cmds_need_lc_CXX=no
12386    hardcode_shlibpath_var_CXX=no
12387    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12388    hardcode_libdir_separator_CXX=':'
12389    link_all_deplibs_CXX=yes
12390    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12391    runpath_var='LD_RUN_PATH'
12392
12393    case $cc_basename in
12394      CC*)
12395	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12396	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12397	;;
12398      *)
12399	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12400	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12401	;;
12402    esac
12403    ;;
12404  tandem*)
12405    case $cc_basename in
12406      NCC*)
12407	# NonStop-UX NCC 3.20
12408	# FIXME: insert proper C++ library support
12409	ld_shlibs_CXX=no
12410	;;
12411      *)
12412	# FIXME: insert proper C++ library support
12413	ld_shlibs_CXX=no
12414	;;
12415    esac
12416    ;;
12417  vxworks*)
12418    # FIXME: insert proper C++ library support
12419    ld_shlibs_CXX=no
12420    ;;
12421  *)
12422    # FIXME: insert proper C++ library support
12423    ld_shlibs_CXX=no
12424    ;;
12425esac
12426{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12427$as_echo "$ld_shlibs_CXX" >&6; }
12428test "$ld_shlibs_CXX" = no && can_build_shared=no
12429
12430GCC_CXX="$GXX"
12431LD_CXX="$LD"
12432
12433cat > conftest.$ac_ext <<EOF
12434class Foo
12435{
12436public:
12437  Foo (void) { a = 0; }
12438private:
12439  int a;
12440};
12441EOF
12442
12443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12444  (eval $ac_compile) 2>&5
12445  ac_status=$?
12446  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447  (exit $ac_status); }; then
12448  # Parse the compiler output and extract the necessary
12449  # objects, libraries and library flags.
12450
12451  # Sentinel used to keep track of whether or not we are before
12452  # the conftest object file.
12453  pre_test_object_deps_done=no
12454
12455  # The `*' in the case matches for architectures that use `case' in
12456  # $output_verbose_cmd can trigger glob expansion during the loop
12457  # eval without this substitution.
12458  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12459
12460  for p in `eval $output_verbose_link_cmd`; do
12461    case $p in
12462
12463    -L* | -R* | -l*)
12464       # Some compilers place space between "-{L,R}" and the path.
12465       # Remove the space.
12466       if test $p = "-L" \
12467	  || test $p = "-R"; then
12468	 prev=$p
12469	 continue
12470       else
12471	 prev=
12472       fi
12473
12474       if test "$pre_test_object_deps_done" = no; then
12475	 case $p in
12476	 -L* | -R*)
12477	   # Internal compiler library paths should come after those
12478	   # provided the user.  The postdeps already come after the
12479	   # user supplied libs so there is no need to process them.
12480	   if test -z "$compiler_lib_search_path_CXX"; then
12481	     compiler_lib_search_path_CXX="${prev}${p}"
12482	   else
12483	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12484	   fi
12485	   ;;
12486	 # The "-l" case would never come before the object being
12487	 # linked, so don't bother handling this case.
12488	 esac
12489       else
12490	 if test -z "$postdeps_CXX"; then
12491	   postdeps_CXX="${prev}${p}"
12492	 else
12493	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12494	 fi
12495       fi
12496       ;;
12497
12498    *.$objext)
12499       # This assumes that the test object file only shows up
12500       # once in the compiler output.
12501       if test "$p" = "conftest.$objext"; then
12502	 pre_test_object_deps_done=yes
12503	 continue
12504       fi
12505
12506       if test "$pre_test_object_deps_done" = no; then
12507	 if test -z "$predep_objects_CXX"; then
12508	   predep_objects_CXX="$p"
12509	 else
12510	   predep_objects_CXX="$predep_objects_CXX $p"
12511	 fi
12512       else
12513	 if test -z "$postdep_objects_CXX"; then
12514	   postdep_objects_CXX="$p"
12515	 else
12516	   postdep_objects_CXX="$postdep_objects_CXX $p"
12517	 fi
12518       fi
12519       ;;
12520
12521    *) ;; # Ignore the rest.
12522
12523    esac
12524  done
12525
12526  # Clean up.
12527  rm -f a.out a.exe
12528else
12529  echo "libtool.m4: error: problem compiling CXX test program"
12530fi
12531
12532$rm -f confest.$objext
12533
12534compiler_lib_search_dirs_CXX=
12535if test -n "$compiler_lib_search_path_CXX"; then
12536  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12537fi
12538
12539# PORTME: override above test on systems where it is broken
12540case $host_os in
12541interix[3-9]*)
12542  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12543  # hack all around it, let's just trust "g++" to DTRT.
12544  predep_objects_CXX=
12545  postdep_objects_CXX=
12546  postdeps_CXX=
12547  ;;
12548
12549linux*)
12550  case `$CC -V 2>&1 | sed 5q` in
12551  *Sun\ C*)
12552    # Sun C++ 5.9
12553    #
12554    # The more standards-conforming stlport4 library is
12555    # incompatible with the Cstd library. Avoid specifying
12556    # it if it's in CXXFLAGS. Ignore libCrun as
12557    # -library=stlport4 depends on it.
12558    case " $CXX $CXXFLAGS " in
12559    *" -library=stlport4 "*)
12560      solaris_use_stlport4=yes
12561      ;;
12562    esac
12563    if test "$solaris_use_stlport4" != yes; then
12564      postdeps_CXX='-library=Cstd -library=Crun'
12565    fi
12566    ;;
12567  esac
12568  ;;
12569
12570solaris*)
12571  case $cc_basename in
12572  CC*)
12573    # The more standards-conforming stlport4 library is
12574    # incompatible with the Cstd library. Avoid specifying
12575    # it if it's in CXXFLAGS. Ignore libCrun as
12576    # -library=stlport4 depends on it.
12577    case " $CXX $CXXFLAGS " in
12578    *" -library=stlport4 "*)
12579      solaris_use_stlport4=yes
12580      ;;
12581    esac
12582
12583    # Adding this requires a known-good setup of shared libraries for
12584    # Sun compiler versions before 5.6, else PIC objects from an old
12585    # archive will be linked into the output, leading to subtle bugs.
12586    if test "$solaris_use_stlport4" != yes; then
12587      postdeps_CXX='-library=Cstd -library=Crun'
12588    fi
12589    ;;
12590  esac
12591  ;;
12592esac
12593
12594case " $postdeps_CXX " in
12595*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12596esac
12597
12598lt_prog_compiler_wl_CXX=
12599lt_prog_compiler_pic_CXX=
12600lt_prog_compiler_static_CXX=
12601
12602{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12603$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12604
12605  # C++ specific cases for pic, static, wl, etc.
12606  if test "$GXX" = yes; then
12607    lt_prog_compiler_wl_CXX='-Wl,'
12608    lt_prog_compiler_static_CXX='-static'
12609
12610    case $host_os in
12611    aix*)
12612      # All AIX code is PIC.
12613      if test "$host_cpu" = ia64; then
12614	# AIX 5 now supports IA64 processor
12615	lt_prog_compiler_static_CXX='-Bstatic'
12616      fi
12617      ;;
12618    amigaos*)
12619      # FIXME: we need at least 68020 code to build shared libraries, but
12620      # adding the `-m68020' flag to GCC prevents building anything better,
12621      # like `-m68040'.
12622      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12623      ;;
12624    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12625      # PIC is the default for these OSes.
12626      ;;
12627    mingw* | cygwin* | os2* | pw32*)
12628      # This hack is so that the source file can tell whether it is being
12629      # built for inclusion in a dll (and should export symbols for example).
12630      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12631      # (--disable-auto-import) libraries
12632      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12633      ;;
12634    darwin* | rhapsody*)
12635      # PIC is the default on this platform
12636      # Common symbols not allowed in MH_DYLIB files
12637      lt_prog_compiler_pic_CXX='-fno-common'
12638      ;;
12639    *djgpp*)
12640      # DJGPP does not support shared libraries at all
12641      lt_prog_compiler_pic_CXX=
12642      ;;
12643    interix[3-9]*)
12644      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12645      # Instead, we relocate shared libraries at runtime.
12646      ;;
12647    sysv4*MP*)
12648      if test -d /usr/nec; then
12649	lt_prog_compiler_pic_CXX=-Kconform_pic
12650      fi
12651      ;;
12652    hpux*)
12653      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12654      # not for PA HP-UX.
12655      case $host_cpu in
12656      hppa*64*|ia64*)
12657	;;
12658      *)
12659	lt_prog_compiler_pic_CXX='-fPIC'
12660	;;
12661      esac
12662      ;;
12663    *)
12664      lt_prog_compiler_pic_CXX='-fPIC'
12665      ;;
12666    esac
12667  else
12668    case $host_os in
12669      aix[4-9]*)
12670	# All AIX code is PIC.
12671	if test "$host_cpu" = ia64; then
12672	  # AIX 5 now supports IA64 processor
12673	  lt_prog_compiler_static_CXX='-Bstatic'
12674	else
12675	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12676	fi
12677	;;
12678      chorus*)
12679	case $cc_basename in
12680	cxch68*)
12681	  # Green Hills C++ Compiler
12682	  # _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"
12683	  ;;
12684	esac
12685	;;
12686       darwin*)
12687         # PIC is the default on this platform
12688         # Common symbols not allowed in MH_DYLIB files
12689         case $cc_basename in
12690           xlc*)
12691           lt_prog_compiler_pic_CXX='-qnocommon'
12692           lt_prog_compiler_wl_CXX='-Wl,'
12693           ;;
12694         esac
12695       ;;
12696      dgux*)
12697	case $cc_basename in
12698	  ec++*)
12699	    lt_prog_compiler_pic_CXX='-KPIC'
12700	    ;;
12701	  ghcx*)
12702	    # Green Hills C++ Compiler
12703	    lt_prog_compiler_pic_CXX='-pic'
12704	    ;;
12705	  *)
12706	    ;;
12707	esac
12708	;;
12709      freebsd* | dragonfly*)
12710	# FreeBSD uses GNU C++
12711	;;
12712      hpux9* | hpux10* | hpux11*)
12713	case $cc_basename in
12714	  CC*)
12715	    lt_prog_compiler_wl_CXX='-Wl,'
12716	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12717	    if test "$host_cpu" != ia64; then
12718	      lt_prog_compiler_pic_CXX='+Z'
12719	    fi
12720	    ;;
12721	  aCC*)
12722	    lt_prog_compiler_wl_CXX='-Wl,'
12723	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12724	    case $host_cpu in
12725	    hppa*64*|ia64*)
12726	      # +Z the default
12727	      ;;
12728	    *)
12729	      lt_prog_compiler_pic_CXX='+Z'
12730	      ;;
12731	    esac
12732	    ;;
12733	  *)
12734	    ;;
12735	esac
12736	;;
12737      interix*)
12738	# This is c89, which is MS Visual C++ (no shared libs)
12739	# Anyone wants to do a port?
12740	;;
12741      irix5* | irix6* | nonstopux*)
12742	case $cc_basename in
12743	  CC*)
12744	    lt_prog_compiler_wl_CXX='-Wl,'
12745	    lt_prog_compiler_static_CXX='-non_shared'
12746	    # CC pic flag -KPIC is the default.
12747	    ;;
12748	  *)
12749	    ;;
12750	esac
12751	;;
12752      linux* | k*bsd*-gnu)
12753	case $cc_basename in
12754	  KCC*)
12755	    # KAI C++ Compiler
12756	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12757	    lt_prog_compiler_pic_CXX='-fPIC'
12758	    ;;
12759	  icpc* | ecpc*)
12760	    # Intel C++
12761	    lt_prog_compiler_wl_CXX='-Wl,'
12762	    lt_prog_compiler_pic_CXX='-KPIC'
12763	    lt_prog_compiler_static_CXX='-static'
12764	    ;;
12765	  pgCC* | pgcpp*)
12766	    # Portland Group C++ compiler.
12767	    lt_prog_compiler_wl_CXX='-Wl,'
12768	    lt_prog_compiler_pic_CXX='-fpic'
12769	    lt_prog_compiler_static_CXX='-Bstatic'
12770	    ;;
12771	  cxx*)
12772	    # Compaq C++
12773	    # Make sure the PIC flag is empty.  It appears that all Alpha
12774	    # Linux and Compaq Tru64 Unix objects are PIC.
12775	    lt_prog_compiler_pic_CXX=
12776	    lt_prog_compiler_static_CXX='-non_shared'
12777	    ;;
12778	  *)
12779	    case `$CC -V 2>&1 | sed 5q` in
12780	    *Sun\ C*)
12781	      # Sun C++ 5.9
12782	      lt_prog_compiler_pic_CXX='-KPIC'
12783	      lt_prog_compiler_static_CXX='-Bstatic'
12784	      lt_prog_compiler_wl_CXX='-Qoption ld '
12785	      ;;
12786	    esac
12787	    ;;
12788	esac
12789	;;
12790      lynxos*)
12791	;;
12792      m88k*)
12793	;;
12794      mvs*)
12795	case $cc_basename in
12796	  cxx*)
12797	    lt_prog_compiler_pic_CXX='-W c,exportall'
12798	    ;;
12799	  *)
12800	    ;;
12801	esac
12802	;;
12803      netbsd*)
12804	;;
12805      osf3* | osf4* | osf5*)
12806	case $cc_basename in
12807	  KCC*)
12808	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12809	    ;;
12810	  RCC*)
12811	    # Rational C++ 2.4.1
12812	    lt_prog_compiler_pic_CXX='-pic'
12813	    ;;
12814	  cxx*)
12815	    # Digital/Compaq C++
12816	    lt_prog_compiler_wl_CXX='-Wl,'
12817	    # Make sure the PIC flag is empty.  It appears that all Alpha
12818	    # Linux and Compaq Tru64 Unix objects are PIC.
12819	    lt_prog_compiler_pic_CXX=
12820	    lt_prog_compiler_static_CXX='-non_shared'
12821	    ;;
12822	  *)
12823	    ;;
12824	esac
12825	;;
12826      psos*)
12827	;;
12828      solaris*)
12829	case $cc_basename in
12830	  CC*)
12831	    # Sun C++ 4.2, 5.x and Centerline C++
12832	    lt_prog_compiler_pic_CXX='-KPIC'
12833	    lt_prog_compiler_static_CXX='-Bstatic'
12834	    lt_prog_compiler_wl_CXX='-Qoption ld '
12835	    ;;
12836	  gcx*)
12837	    # Green Hills C++ Compiler
12838	    lt_prog_compiler_pic_CXX='-PIC'
12839	    ;;
12840	  *)
12841	    ;;
12842	esac
12843	;;
12844      sunos4*)
12845	case $cc_basename in
12846	  CC*)
12847	    # Sun C++ 4.x
12848	    lt_prog_compiler_pic_CXX='-pic'
12849	    lt_prog_compiler_static_CXX='-Bstatic'
12850	    ;;
12851	  lcc*)
12852	    # Lucid
12853	    lt_prog_compiler_pic_CXX='-pic'
12854	    ;;
12855	  *)
12856	    ;;
12857	esac
12858	;;
12859      tandem*)
12860	case $cc_basename in
12861	  NCC*)
12862	    # NonStop-UX NCC 3.20
12863	    lt_prog_compiler_pic_CXX='-KPIC'
12864	    ;;
12865	  *)
12866	    ;;
12867	esac
12868	;;
12869      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12870	case $cc_basename in
12871	  CC*)
12872	    lt_prog_compiler_wl_CXX='-Wl,'
12873	    lt_prog_compiler_pic_CXX='-KPIC'
12874	    lt_prog_compiler_static_CXX='-Bstatic'
12875	    ;;
12876	esac
12877	;;
12878      vxworks*)
12879	;;
12880      *)
12881	lt_prog_compiler_can_build_shared_CXX=no
12882	;;
12883    esac
12884  fi
12885
12886{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12887$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12888
12889#
12890# Check to make sure the PIC flag actually works.
12891#
12892if test -n "$lt_prog_compiler_pic_CXX"; then
12893
12894{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12895$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12896if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12897  $as_echo_n "(cached) " >&6
12898else
12899  lt_cv_prog_compiler_pic_works_CXX=no
12900  ac_outfile=conftest.$ac_objext
12901   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12902   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12903   # Insert the option either (1) after the last *FLAGS variable, or
12904   # (2) before a word containing "conftest.", or (3) at the end.
12905   # Note that $ac_compile itself does not contain backslashes and begins
12906   # with a dollar sign (not a hyphen), so the echo should work correctly.
12907   # The option is referenced via a variable to avoid confusing sed.
12908   lt_compile=`echo "$ac_compile" | $SED \
12909   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12910   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12911   -e 's:$: $lt_compiler_flag:'`
12912   (eval echo "\"\$as_me:12912: $lt_compile\"" >&5)
12913   (eval "$lt_compile" 2>conftest.err)
12914   ac_status=$?
12915   cat conftest.err >&5
12916   echo "$as_me:12916: \$? = $ac_status" >&5
12917   if (exit $ac_status) && test -s "$ac_outfile"; then
12918     # The compiler can only warn and ignore the option if not recognized
12919     # So say no if there are warnings other than the usual output.
12920     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12921     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12922     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12923       lt_cv_prog_compiler_pic_works_CXX=yes
12924     fi
12925   fi
12926   $rm conftest*
12927
12928fi
12929{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12930$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12931
12932if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12933    case $lt_prog_compiler_pic_CXX in
12934     "" | " "*) ;;
12935     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12936     esac
12937else
12938    lt_prog_compiler_pic_CXX=
12939     lt_prog_compiler_can_build_shared_CXX=no
12940fi
12941
12942fi
12943case $host_os in
12944  # For platforms which do not support PIC, -DPIC is meaningless:
12945  *djgpp*)
12946    lt_prog_compiler_pic_CXX=
12947    ;;
12948  *)
12949    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12950    ;;
12951esac
12952
12953#
12954# Check to make sure the static flag actually works.
12955#
12956wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12957{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12958$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12959if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12960  $as_echo_n "(cached) " >&6
12961else
12962  lt_cv_prog_compiler_static_works_CXX=no
12963   save_LDFLAGS="$LDFLAGS"
12964   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12965   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12966   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12967     # The linker can only warn and ignore the option if not recognized
12968     # So say no if there are warnings
12969     if test -s conftest.err; then
12970       # Append any errors to the config.log.
12971       cat conftest.err 1>&5
12972       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12973       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12974       if diff conftest.exp conftest.er2 >/dev/null; then
12975         lt_cv_prog_compiler_static_works_CXX=yes
12976       fi
12977     else
12978       lt_cv_prog_compiler_static_works_CXX=yes
12979     fi
12980   fi
12981   $rm -r conftest*
12982   LDFLAGS="$save_LDFLAGS"
12983
12984fi
12985{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12986$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12987
12988if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12989    :
12990else
12991    lt_prog_compiler_static_CXX=
12992fi
12993
12994
12995{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12996$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12997if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12998  $as_echo_n "(cached) " >&6
12999else
13000  lt_cv_prog_compiler_c_o_CXX=no
13001   $rm -r conftest 2>/dev/null
13002   mkdir conftest
13003   cd conftest
13004   mkdir out
13005   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13006
13007   lt_compiler_flag="-o out/conftest2.$ac_objext"
13008   # Insert the option either (1) after the last *FLAGS variable, or
13009   # (2) before a word containing "conftest.", or (3) at the end.
13010   # Note that $ac_compile itself does not contain backslashes and begins
13011   # with a dollar sign (not a hyphen), so the echo should work correctly.
13012   lt_compile=`echo "$ac_compile" | $SED \
13013   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13014   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13015   -e 's:$: $lt_compiler_flag:'`
13016   (eval echo "\"\$as_me:13016: $lt_compile\"" >&5)
13017   (eval "$lt_compile" 2>out/conftest.err)
13018   ac_status=$?
13019   cat out/conftest.err >&5
13020   echo "$as_me:13020: \$? = $ac_status" >&5
13021   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13022   then
13023     # The compiler can only warn and ignore the option if not recognized
13024     # So say no if there are warnings
13025     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13026     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13027     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13028       lt_cv_prog_compiler_c_o_CXX=yes
13029     fi
13030   fi
13031   chmod u+w . 2>&5
13032   $rm conftest*
13033   # SGI C++ compiler will create directory out/ii_files/ for
13034   # template instantiation
13035   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13036   $rm out/* && rmdir out
13037   cd ..
13038   rmdir conftest
13039   $rm conftest*
13040
13041fi
13042{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13043$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13044
13045
13046hard_links="nottested"
13047if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13048  # do not overwrite the value of need_locks provided by the user
13049  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13050$as_echo_n "checking if we can lock with hard links... " >&6; }
13051  hard_links=yes
13052  $rm conftest*
13053  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13054  touch conftest.a
13055  ln conftest.a conftest.b 2>&5 || hard_links=no
13056  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13057  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13058$as_echo "$hard_links" >&6; }
13059  if test "$hard_links" = no; then
13060    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13061$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13062    need_locks=warn
13063  fi
13064else
13065  need_locks=no
13066fi
13067
13068{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13069$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13070
13071  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13072  case $host_os in
13073  aix[4-9]*)
13074    # If we're using GNU nm, then we don't want the "-C" option.
13075    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13076    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13077      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'
13078    else
13079      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'
13080    fi
13081    ;;
13082  pw32*)
13083    export_symbols_cmds_CXX="$ltdll_cmds"
13084  ;;
13085  cygwin* | mingw*)
13086    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'
13087  ;;
13088  *)
13089    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13090  ;;
13091  esac
13092  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13093
13094{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13095$as_echo "$ld_shlibs_CXX" >&6; }
13096test "$ld_shlibs_CXX" = no && can_build_shared=no
13097
13098#
13099# Do we need to explicitly link libc?
13100#
13101case "x$archive_cmds_need_lc_CXX" in
13102x|xyes)
13103  # Assume -lc should be added
13104  archive_cmds_need_lc_CXX=yes
13105
13106  if test "$enable_shared" = yes && test "$GCC" = yes; then
13107    case $archive_cmds_CXX in
13108    *'~'*)
13109      # FIXME: we may have to deal with multi-command sequences.
13110      ;;
13111    '$CC '*)
13112      # Test whether the compiler implicitly links with -lc since on some
13113      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13114      # to ld, don't add -lc before -lgcc.
13115      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13116$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13117      $rm conftest*
13118      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13119
13120      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13121  (eval $ac_compile) 2>&5
13122  ac_status=$?
13123  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124  (exit $ac_status); } 2>conftest.err; then
13125        soname=conftest
13126        lib=conftest
13127        libobjs=conftest.$ac_objext
13128        deplibs=
13129        wl=$lt_prog_compiler_wl_CXX
13130	pic_flag=$lt_prog_compiler_pic_CXX
13131        compiler_flags=-v
13132        linker_flags=-v
13133        verstring=
13134        output_objdir=.
13135        libname=conftest
13136        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13137        allow_undefined_flag_CXX=
13138        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13139  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13140  ac_status=$?
13141  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142  (exit $ac_status); }
13143        then
13144	  archive_cmds_need_lc_CXX=no
13145        else
13146	  archive_cmds_need_lc_CXX=yes
13147        fi
13148        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13149      else
13150        cat conftest.err 1>&5
13151      fi
13152      $rm conftest*
13153      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13154$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13155      ;;
13156    esac
13157  fi
13158  ;;
13159esac
13160
13161{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13162$as_echo_n "checking dynamic linker characteristics... " >&6; }
13163library_names_spec=
13164libname_spec='lib$name'
13165soname_spec=
13166shrext_cmds=".so"
13167postinstall_cmds=
13168postuninstall_cmds=
13169finish_cmds=
13170finish_eval=
13171shlibpath_var=
13172shlibpath_overrides_runpath=unknown
13173version_type=none
13174dynamic_linker="$host_os ld.so"
13175sys_lib_dlsearch_path_spec="/lib /usr/lib"
13176
13177need_lib_prefix=unknown
13178hardcode_into_libs=no
13179
13180# when you set need_version to no, make sure it does not cause -set_version
13181# flags to be left without arguments
13182need_version=unknown
13183
13184case $host_os in
13185aix3*)
13186  version_type=linux
13187  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13188  shlibpath_var=LIBPATH
13189
13190  # AIX 3 has no versioning support, so we append a major version to the name.
13191  soname_spec='${libname}${release}${shared_ext}$major'
13192  ;;
13193
13194aix[4-9]*)
13195  version_type=linux
13196  need_lib_prefix=no
13197  need_version=no
13198  hardcode_into_libs=yes
13199  if test "$host_cpu" = ia64; then
13200    # AIX 5 supports IA64
13201    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13202    shlibpath_var=LD_LIBRARY_PATH
13203  else
13204    # With GCC up to 2.95.x, collect2 would create an import file
13205    # for dependence libraries.  The import file would start with
13206    # the line `#! .'.  This would cause the generated library to
13207    # depend on `.', always an invalid library.  This was fixed in
13208    # development snapshots of GCC prior to 3.0.
13209    case $host_os in
13210      aix4 | aix4.[01] | aix4.[01].*)
13211      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13212	   echo ' yes '
13213	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13214	:
13215      else
13216	can_build_shared=no
13217      fi
13218      ;;
13219    esac
13220    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13221    # soname into executable. Probably we can add versioning support to
13222    # collect2, so additional links can be useful in future.
13223    if test "$aix_use_runtimelinking" = yes; then
13224      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13225      # instead of lib<name>.a to let people know that these are not
13226      # typical AIX shared libraries.
13227      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13228    else
13229      # We preserve .a as extension for shared libraries through AIX4.2
13230      # and later when we are not doing run time linking.
13231      library_names_spec='${libname}${release}.a $libname.a'
13232      soname_spec='${libname}${release}${shared_ext}$major'
13233    fi
13234    shlibpath_var=LIBPATH
13235  fi
13236  ;;
13237
13238amigaos*)
13239  library_names_spec='$libname.ixlibrary $libname.a'
13240  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13241  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'
13242  ;;
13243
13244beos*)
13245  library_names_spec='${libname}${shared_ext}'
13246  dynamic_linker="$host_os ld.so"
13247  shlibpath_var=LIBRARY_PATH
13248  ;;
13249
13250bsdi[45]*)
13251  version_type=linux
13252  need_version=no
13253  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13254  soname_spec='${libname}${release}${shared_ext}$major'
13255  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13256  shlibpath_var=LD_LIBRARY_PATH
13257  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13258  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13259  # the default ld.so.conf also contains /usr/contrib/lib and
13260  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13261  # libtool to hard-code these into programs
13262  ;;
13263
13264cygwin* | mingw* | pw32*)
13265  version_type=windows
13266  shrext_cmds=".dll"
13267  need_version=no
13268  need_lib_prefix=no
13269
13270  case $GCC,$host_os in
13271  yes,cygwin* | yes,mingw* | yes,pw32*)
13272    library_names_spec='$libname.dll.a'
13273    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13274    postinstall_cmds='base_file=`basename \${file}`~
13275      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13276      dldir=$destdir/`dirname \$dlpath`~
13277      test -d \$dldir || mkdir -p \$dldir~
13278      $install_prog $dir/$dlname \$dldir/$dlname~
13279      chmod a+x \$dldir/$dlname'
13280    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13281      dlpath=$dir/\$dldll~
13282       $rm \$dlpath'
13283    shlibpath_overrides_runpath=yes
13284
13285    case $host_os in
13286    cygwin*)
13287      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13288      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13289      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13290      ;;
13291    mingw*)
13292      # MinGW DLLs use traditional 'lib' prefix
13293      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13294      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13295      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13296        # It is most probably a Windows format PATH printed by
13297        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13298        # path with ; separators, and with drive letters. We can handle the
13299        # drive letters (cygwin fileutils understands them), so leave them,
13300        # especially as we might pass files found there to a mingw objdump,
13301        # which wouldn't understand a cygwinified path. Ahh.
13302        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13303      else
13304        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13305      fi
13306      ;;
13307    pw32*)
13308      # pw32 DLLs use 'pw' prefix rather than 'lib'
13309      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13310      ;;
13311    esac
13312    ;;
13313
13314  *)
13315    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13316    ;;
13317  esac
13318  dynamic_linker='Win32 ld.exe'
13319  # FIXME: first we should search . and the directory the executable is in
13320  shlibpath_var=PATH
13321  ;;
13322
13323darwin* | rhapsody*)
13324  dynamic_linker="$host_os dyld"
13325  version_type=darwin
13326  need_lib_prefix=no
13327  need_version=no
13328  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13329  soname_spec='${libname}${release}${major}$shared_ext'
13330  shlibpath_overrides_runpath=yes
13331  shlibpath_var=DYLD_LIBRARY_PATH
13332  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13333
13334  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13335  ;;
13336
13337dgux*)
13338  version_type=linux
13339  need_lib_prefix=no
13340  need_version=no
13341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13342  soname_spec='${libname}${release}${shared_ext}$major'
13343  shlibpath_var=LD_LIBRARY_PATH
13344  ;;
13345
13346freebsd1*)
13347  dynamic_linker=no
13348  ;;
13349
13350freebsd* | dragonfly*)
13351  # DragonFly does not have aout.  When/if they implement a new
13352  # versioning mechanism, adjust this.
13353  if test -x /usr/bin/objformat; then
13354    objformat=`/usr/bin/objformat`
13355  else
13356    case $host_os in
13357    freebsd[123]*) objformat=aout ;;
13358    *) objformat=elf ;;
13359    esac
13360  fi
13361  version_type=freebsd-$objformat
13362  case $version_type in
13363    freebsd-elf*)
13364      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13365      need_version=no
13366      need_lib_prefix=no
13367      ;;
13368    freebsd-*)
13369      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13370      need_version=yes
13371      ;;
13372  esac
13373  shlibpath_var=LD_LIBRARY_PATH
13374  case $host_os in
13375  freebsd2*)
13376    shlibpath_overrides_runpath=yes
13377    ;;
13378  freebsd3.[01]* | freebsdelf3.[01]*)
13379    shlibpath_overrides_runpath=yes
13380    hardcode_into_libs=yes
13381    ;;
13382  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13383  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13384    shlibpath_overrides_runpath=no
13385    hardcode_into_libs=yes
13386    ;;
13387  *) # from 4.6 on, and DragonFly
13388    shlibpath_overrides_runpath=yes
13389    hardcode_into_libs=yes
13390    ;;
13391  esac
13392  ;;
13393
13394gnu*)
13395  version_type=linux
13396  need_lib_prefix=no
13397  need_version=no
13398  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13399  soname_spec='${libname}${release}${shared_ext}$major'
13400  shlibpath_var=LD_LIBRARY_PATH
13401  hardcode_into_libs=yes
13402  ;;
13403
13404hpux9* | hpux10* | hpux11*)
13405  # Give a soname corresponding to the major version so that dld.sl refuses to
13406  # link against other versions.
13407  version_type=sunos
13408  need_lib_prefix=no
13409  need_version=no
13410  case $host_cpu in
13411  ia64*)
13412    shrext_cmds='.so'
13413    hardcode_into_libs=yes
13414    dynamic_linker="$host_os dld.so"
13415    shlibpath_var=LD_LIBRARY_PATH
13416    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13417    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13418    soname_spec='${libname}${release}${shared_ext}$major'
13419    if test "X$HPUX_IA64_MODE" = X32; then
13420      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13421    else
13422      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13423    fi
13424    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13425    ;;
13426   hppa*64*)
13427     shrext_cmds='.sl'
13428     hardcode_into_libs=yes
13429     dynamic_linker="$host_os dld.sl"
13430     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13431     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13432     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13433     soname_spec='${libname}${release}${shared_ext}$major'
13434     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13435     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13436     ;;
13437   *)
13438    shrext_cmds='.sl'
13439    dynamic_linker="$host_os dld.sl"
13440    shlibpath_var=SHLIB_PATH
13441    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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    ;;
13445  esac
13446  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13447  postinstall_cmds='chmod 555 $lib'
13448  ;;
13449
13450interix[3-9]*)
13451  version_type=linux
13452  need_lib_prefix=no
13453  need_version=no
13454  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13455  soname_spec='${libname}${release}${shared_ext}$major'
13456  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13457  shlibpath_var=LD_LIBRARY_PATH
13458  shlibpath_overrides_runpath=no
13459  hardcode_into_libs=yes
13460  ;;
13461
13462irix5* | irix6* | nonstopux*)
13463  case $host_os in
13464    nonstopux*) version_type=nonstopux ;;
13465    *)
13466	if test "$lt_cv_prog_gnu_ld" = yes; then
13467		version_type=linux
13468	else
13469		version_type=irix
13470	fi ;;
13471  esac
13472  need_lib_prefix=no
13473  need_version=no
13474  soname_spec='${libname}${release}${shared_ext}$major'
13475  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13476  case $host_os in
13477  irix5* | nonstopux*)
13478    libsuff= shlibsuff=
13479    ;;
13480  *)
13481    case $LD in # libtool.m4 will add one of these switches to LD
13482    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13483      libsuff= shlibsuff= libmagic=32-bit;;
13484    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13485      libsuff=32 shlibsuff=N32 libmagic=N32;;
13486    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13487      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13488    *) libsuff= shlibsuff= libmagic=never-match;;
13489    esac
13490    ;;
13491  esac
13492  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13493  shlibpath_overrides_runpath=no
13494  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13495  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13496  hardcode_into_libs=yes
13497  ;;
13498
13499# No shared lib support for Linux oldld, aout, or coff.
13500linux*oldld* | linux*aout* | linux*coff*)
13501  dynamic_linker=no
13502  ;;
13503
13504# This must be Linux ELF.
13505linux* | k*bsd*-gnu)
13506  version_type=linux
13507  need_lib_prefix=no
13508  need_version=no
13509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13510  soname_spec='${libname}${release}${shared_ext}$major'
13511  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13512  shlibpath_var=LD_LIBRARY_PATH
13513  shlibpath_overrides_runpath=no
13514  # This implies no fast_install, which is unacceptable.
13515  # Some rework will be needed to allow for fast_install
13516  # before this can be enabled.
13517  hardcode_into_libs=yes
13518  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13519  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13520
13521  # Append ld.so.conf contents to the search path
13522  if test -f /etc/ld.so.conf; then
13523    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' ' '`
13524    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13525  fi
13526
13527  # We used to test for /lib/ld.so.1 and disable shared libraries on
13528  # powerpc, because MkLinux only supported shared libraries with the
13529  # GNU dynamic linker.  Since this was broken with cross compilers,
13530  # most powerpc-linux boxes support dynamic linking these days and
13531  # people can always --disable-shared, the test was removed, and we
13532  # assume the GNU/Linux dynamic linker is in use.
13533  dynamic_linker='GNU/Linux ld.so'
13534  ;;
13535
13536netbsd*)
13537  version_type=sunos
13538  need_lib_prefix=no
13539  need_version=no
13540  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13541    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13542    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13543    dynamic_linker='NetBSD (a.out) ld.so'
13544  else
13545    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13546    soname_spec='${libname}${release}${shared_ext}$major'
13547    dynamic_linker='NetBSD ld.elf_so'
13548  fi
13549  shlibpath_var=LD_LIBRARY_PATH
13550  shlibpath_overrides_runpath=yes
13551  hardcode_into_libs=yes
13552  ;;
13553
13554newsos6)
13555  version_type=linux
13556  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13557  shlibpath_var=LD_LIBRARY_PATH
13558  shlibpath_overrides_runpath=yes
13559  ;;
13560
13561nto-qnx*)
13562  version_type=linux
13563  need_lib_prefix=no
13564  need_version=no
13565  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13566  soname_spec='${libname}${release}${shared_ext}$major'
13567  shlibpath_var=LD_LIBRARY_PATH
13568  shlibpath_overrides_runpath=yes
13569  ;;
13570
13571openbsd*)
13572  version_type=sunos
13573  sys_lib_dlsearch_path_spec="/usr/lib"
13574  need_lib_prefix=no
13575  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13576  case $host_os in
13577    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13578    *)                         need_version=no  ;;
13579  esac
13580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13581  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13582  shlibpath_var=LD_LIBRARY_PATH
13583  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13584    case $host_os in
13585      openbsd2.[89] | openbsd2.[89].*)
13586	shlibpath_overrides_runpath=no
13587	;;
13588      *)
13589	shlibpath_overrides_runpath=yes
13590	;;
13591      esac
13592  else
13593    shlibpath_overrides_runpath=yes
13594  fi
13595  ;;
13596
13597os2*)
13598  libname_spec='$name'
13599  shrext_cmds=".dll"
13600  need_lib_prefix=no
13601  library_names_spec='$libname${shared_ext} $libname.a'
13602  dynamic_linker='OS/2 ld.exe'
13603  shlibpath_var=LIBPATH
13604  ;;
13605
13606osf3* | osf4* | osf5*)
13607  version_type=osf
13608  need_lib_prefix=no
13609  need_version=no
13610  soname_spec='${libname}${release}${shared_ext}$major'
13611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13612  shlibpath_var=LD_LIBRARY_PATH
13613  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13614  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13615  ;;
13616
13617rdos*)
13618  dynamic_linker=no
13619  ;;
13620
13621solaris*)
13622  version_type=linux
13623  need_lib_prefix=no
13624  need_version=no
13625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13626  soname_spec='${libname}${release}${shared_ext}$major'
13627  shlibpath_var=LD_LIBRARY_PATH
13628  shlibpath_overrides_runpath=yes
13629  hardcode_into_libs=yes
13630  # ldd complains unless libraries are executable
13631  postinstall_cmds='chmod +x $lib'
13632  ;;
13633
13634sunos4*)
13635  version_type=sunos
13636  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13637  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13638  shlibpath_var=LD_LIBRARY_PATH
13639  shlibpath_overrides_runpath=yes
13640  if test "$with_gnu_ld" = yes; then
13641    need_lib_prefix=no
13642  fi
13643  need_version=yes
13644  ;;
13645
13646sysv4 | sysv4.3*)
13647  version_type=linux
13648  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13649  soname_spec='${libname}${release}${shared_ext}$major'
13650  shlibpath_var=LD_LIBRARY_PATH
13651  case $host_vendor in
13652    sni)
13653      shlibpath_overrides_runpath=no
13654      need_lib_prefix=no
13655      export_dynamic_flag_spec='${wl}-Blargedynsym'
13656      runpath_var=LD_RUN_PATH
13657      ;;
13658    siemens)
13659      need_lib_prefix=no
13660      ;;
13661    motorola)
13662      need_lib_prefix=no
13663      need_version=no
13664      shlibpath_overrides_runpath=no
13665      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13666      ;;
13667  esac
13668  ;;
13669
13670sysv4*MP*)
13671  if test -d /usr/nec ;then
13672    version_type=linux
13673    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13674    soname_spec='$libname${shared_ext}.$major'
13675    shlibpath_var=LD_LIBRARY_PATH
13676  fi
13677  ;;
13678
13679sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13680  version_type=freebsd-elf
13681  need_lib_prefix=no
13682  need_version=no
13683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13684  soname_spec='${libname}${release}${shared_ext}$major'
13685  shlibpath_var=LD_LIBRARY_PATH
13686  hardcode_into_libs=yes
13687  if test "$with_gnu_ld" = yes; then
13688    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13689    shlibpath_overrides_runpath=no
13690  else
13691    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13692    shlibpath_overrides_runpath=yes
13693    case $host_os in
13694      sco3.2v5*)
13695        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13696	;;
13697    esac
13698  fi
13699  sys_lib_dlsearch_path_spec='/usr/lib'
13700  ;;
13701
13702uts4*)
13703  version_type=linux
13704  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13705  soname_spec='${libname}${release}${shared_ext}$major'
13706  shlibpath_var=LD_LIBRARY_PATH
13707  ;;
13708
13709*)
13710  dynamic_linker=no
13711  ;;
13712esac
13713{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13714$as_echo "$dynamic_linker" >&6; }
13715test "$dynamic_linker" = no && can_build_shared=no
13716
13717if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13718  $as_echo_n "(cached) " >&6
13719else
13720  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13721fi
13722
13723sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13724if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13725  $as_echo_n "(cached) " >&6
13726else
13727  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13728fi
13729
13730sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13731
13732variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13733if test "$GCC" = yes; then
13734  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13735fi
13736
13737{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13738$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13739hardcode_action_CXX=
13740if test -n "$hardcode_libdir_flag_spec_CXX" || \
13741   test -n "$runpath_var_CXX" || \
13742   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13743
13744  # We can hardcode non-existant directories.
13745  if test "$hardcode_direct_CXX" != no &&
13746     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13747     # have to relink, otherwise we might link with an installed library
13748     # when we should be linking with a yet-to-be-installed one
13749     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13750     test "$hardcode_minus_L_CXX" != no; then
13751    # Linking always hardcodes the temporary library directory.
13752    hardcode_action_CXX=relink
13753  else
13754    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13755    hardcode_action_CXX=immediate
13756  fi
13757else
13758  # We cannot hardcode anything, or else we can only hardcode existing
13759  # directories.
13760  hardcode_action_CXX=unsupported
13761fi
13762{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13763$as_echo "$hardcode_action_CXX" >&6; }
13764
13765if test "$hardcode_action_CXX" = relink; then
13766  # Fast installation is not supported
13767  enable_fast_install=no
13768elif test "$shlibpath_overrides_runpath" = yes ||
13769     test "$enable_shared" = no; then
13770  # Fast installation is not necessary
13771  enable_fast_install=needless
13772fi
13773
13774
13775# The else clause should only fire when bootstrapping the
13776# libtool distribution, otherwise you forgot to ship ltmain.sh
13777# with your package, and you will get complaints that there are
13778# no rules to generate ltmain.sh.
13779if test -f "$ltmain"; then
13780  # See if we are running on zsh, and set the options which allow our commands through
13781  # without removal of \ escapes.
13782  if test -n "${ZSH_VERSION+set}" ; then
13783    setopt NO_GLOB_SUBST
13784  fi
13785  # Now quote all the things that may contain metacharacters while being
13786  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13787  # variables and quote the copies for generation of the libtool script.
13788  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13789    SED SHELL STRIP \
13790    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13791    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13792    deplibs_check_method reload_flag reload_cmds need_locks \
13793    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13794    lt_cv_sys_global_symbol_to_c_name_address \
13795    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13796    old_postinstall_cmds old_postuninstall_cmds \
13797    compiler_CXX \
13798    CC_CXX \
13799    LD_CXX \
13800    lt_prog_compiler_wl_CXX \
13801    lt_prog_compiler_pic_CXX \
13802    lt_prog_compiler_static_CXX \
13803    lt_prog_compiler_no_builtin_flag_CXX \
13804    export_dynamic_flag_spec_CXX \
13805    thread_safe_flag_spec_CXX \
13806    whole_archive_flag_spec_CXX \
13807    enable_shared_with_static_runtimes_CXX \
13808    old_archive_cmds_CXX \
13809    old_archive_from_new_cmds_CXX \
13810    predep_objects_CXX \
13811    postdep_objects_CXX \
13812    predeps_CXX \
13813    postdeps_CXX \
13814    compiler_lib_search_path_CXX \
13815    compiler_lib_search_dirs_CXX \
13816    archive_cmds_CXX \
13817    archive_expsym_cmds_CXX \
13818    postinstall_cmds_CXX \
13819    postuninstall_cmds_CXX \
13820    old_archive_from_expsyms_cmds_CXX \
13821    allow_undefined_flag_CXX \
13822    no_undefined_flag_CXX \
13823    export_symbols_cmds_CXX \
13824    hardcode_libdir_flag_spec_CXX \
13825    hardcode_libdir_flag_spec_ld_CXX \
13826    hardcode_libdir_separator_CXX \
13827    hardcode_automatic_CXX \
13828    module_cmds_CXX \
13829    module_expsym_cmds_CXX \
13830    lt_cv_prog_compiler_c_o_CXX \
13831    fix_srcfile_path_CXX \
13832    exclude_expsyms_CXX \
13833    include_expsyms_CXX; do
13834
13835    case $var in
13836    old_archive_cmds_CXX | \
13837    old_archive_from_new_cmds_CXX | \
13838    archive_cmds_CXX | \
13839    archive_expsym_cmds_CXX | \
13840    module_cmds_CXX | \
13841    module_expsym_cmds_CXX | \
13842    old_archive_from_expsyms_cmds_CXX | \
13843    export_symbols_cmds_CXX | \
13844    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13845    postinstall_cmds | postuninstall_cmds | \
13846    old_postinstall_cmds | old_postuninstall_cmds | \
13847    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13848      # Double-quote double-evaled strings.
13849      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13850      ;;
13851    *)
13852      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13853      ;;
13854    esac
13855  done
13856
13857  case $lt_echo in
13858  *'\$0 --fallback-echo"')
13859    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13860    ;;
13861  esac
13862
13863cfgfile="$ofile"
13864
13865  cat <<__EOF__ >> "$cfgfile"
13866# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13867
13868# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13869
13870# Shell to use when invoking shell scripts.
13871SHELL=$lt_SHELL
13872
13873# Whether or not to build shared libraries.
13874build_libtool_libs=$enable_shared
13875
13876# Whether or not to build static libraries.
13877build_old_libs=$enable_static
13878
13879# Whether or not to add -lc for building shared libraries.
13880build_libtool_need_lc=$archive_cmds_need_lc_CXX
13881
13882# Whether or not to disallow shared libs when runtime libs are static
13883allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13884
13885# Whether or not to optimize for fast installation.
13886fast_install=$enable_fast_install
13887
13888# The host system.
13889host_alias=$host_alias
13890host=$host
13891host_os=$host_os
13892
13893# The build system.
13894build_alias=$build_alias
13895build=$build
13896build_os=$build_os
13897
13898# An echo program that does not interpret backslashes.
13899echo=$lt_echo
13900
13901# The archiver.
13902AR=$lt_AR
13903AR_FLAGS=$lt_AR_FLAGS
13904
13905# A C compiler.
13906LTCC=$lt_LTCC
13907
13908# LTCC compiler flags.
13909LTCFLAGS=$lt_LTCFLAGS
13910
13911# A language-specific compiler.
13912CC=$lt_compiler_CXX
13913
13914# Is the compiler the GNU C compiler?
13915with_gcc=$GCC_CXX
13916
13917# An ERE matcher.
13918EGREP=$lt_EGREP
13919
13920# The linker used to build libraries.
13921LD=$lt_LD_CXX
13922
13923# Whether we need hard or soft links.
13924LN_S=$lt_LN_S
13925
13926# A BSD-compatible nm program.
13927NM=$lt_NM
13928
13929# A symbol stripping program
13930STRIP=$lt_STRIP
13931
13932# Used to examine libraries when file_magic_cmd begins "file"
13933MAGIC_CMD=$MAGIC_CMD
13934
13935# Used on cygwin: DLL creation program.
13936DLLTOOL="$DLLTOOL"
13937
13938# Used on cygwin: object dumper.
13939OBJDUMP="$OBJDUMP"
13940
13941# Used on cygwin: assembler.
13942AS="$AS"
13943
13944# The name of the directory that contains temporary libtool files.
13945objdir=$objdir
13946
13947# How to create reloadable object files.
13948reload_flag=$lt_reload_flag
13949reload_cmds=$lt_reload_cmds
13950
13951# How to pass a linker flag through the compiler.
13952wl=$lt_lt_prog_compiler_wl_CXX
13953
13954# Object file suffix (normally "o").
13955objext="$ac_objext"
13956
13957# Old archive suffix (normally "a").
13958libext="$libext"
13959
13960# Shared library suffix (normally ".so").
13961shrext_cmds='$shrext_cmds'
13962
13963# Executable file suffix (normally "").
13964exeext="$exeext"
13965
13966# Additional compiler flags for building library objects.
13967pic_flag=$lt_lt_prog_compiler_pic_CXX
13968pic_mode=$pic_mode
13969
13970# What is the maximum length of a command?
13971max_cmd_len=$lt_cv_sys_max_cmd_len
13972
13973# Does compiler simultaneously support -c and -o options?
13974compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13975
13976# Must we lock files when doing compilation?
13977need_locks=$lt_need_locks
13978
13979# Do we need the lib prefix for modules?
13980need_lib_prefix=$need_lib_prefix
13981
13982# Do we need a version for libraries?
13983need_version=$need_version
13984
13985# Whether dlopen is supported.
13986dlopen_support=$enable_dlopen
13987
13988# Whether dlopen of programs is supported.
13989dlopen_self=$enable_dlopen_self
13990
13991# Whether dlopen of statically linked programs is supported.
13992dlopen_self_static=$enable_dlopen_self_static
13993
13994# Compiler flag to prevent dynamic linking.
13995link_static_flag=$lt_lt_prog_compiler_static_CXX
13996
13997# Compiler flag to turn off builtin functions.
13998no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13999
14000# Compiler flag to allow reflexive dlopens.
14001export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14002
14003# Compiler flag to generate shared objects directly from archives.
14004whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14005
14006# Compiler flag to generate thread-safe objects.
14007thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14008
14009# Library versioning type.
14010version_type=$version_type
14011
14012# Format of library name prefix.
14013libname_spec=$lt_libname_spec
14014
14015# List of archive names.  First name is the real one, the rest are links.
14016# The last name is the one that the linker finds with -lNAME.
14017library_names_spec=$lt_library_names_spec
14018
14019# The coded name of the library, if different from the real name.
14020soname_spec=$lt_soname_spec
14021
14022# Commands used to build and install an old-style archive.
14023RANLIB=$lt_RANLIB
14024old_archive_cmds=$lt_old_archive_cmds_CXX
14025old_postinstall_cmds=$lt_old_postinstall_cmds
14026old_postuninstall_cmds=$lt_old_postuninstall_cmds
14027
14028# Create an old-style archive from a shared archive.
14029old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14030
14031# Create a temporary old-style archive to link instead of a shared archive.
14032old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14033
14034# Commands used to build and install a shared archive.
14035archive_cmds=$lt_archive_cmds_CXX
14036archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14037postinstall_cmds=$lt_postinstall_cmds
14038postuninstall_cmds=$lt_postuninstall_cmds
14039
14040# Commands used to build a loadable module (assumed same as above if empty)
14041module_cmds=$lt_module_cmds_CXX
14042module_expsym_cmds=$lt_module_expsym_cmds_CXX
14043
14044# Commands to strip libraries.
14045old_striplib=$lt_old_striplib
14046striplib=$lt_striplib
14047
14048# Dependencies to place before the objects being linked to create a
14049# shared library.
14050predep_objects=$lt_predep_objects_CXX
14051
14052# Dependencies to place after the objects being linked to create a
14053# shared library.
14054postdep_objects=$lt_postdep_objects_CXX
14055
14056# Dependencies to place before the objects being linked to create a
14057# shared library.
14058predeps=$lt_predeps_CXX
14059
14060# Dependencies to place after the objects being linked to create a
14061# shared library.
14062postdeps=$lt_postdeps_CXX
14063
14064# The directories searched by this compiler when creating a shared
14065# library
14066compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14067
14068# The library search path used internally by the compiler when linking
14069# a shared library.
14070compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14071
14072# Method to check whether dependent libraries are shared objects.
14073deplibs_check_method=$lt_deplibs_check_method
14074
14075# Command to use when deplibs_check_method == file_magic.
14076file_magic_cmd=$lt_file_magic_cmd
14077
14078# Flag that allows shared libraries with undefined symbols to be built.
14079allow_undefined_flag=$lt_allow_undefined_flag_CXX
14080
14081# Flag that forces no undefined symbols.
14082no_undefined_flag=$lt_no_undefined_flag_CXX
14083
14084# Commands used to finish a libtool library installation in a directory.
14085finish_cmds=$lt_finish_cmds
14086
14087# Same as above, but a single script fragment to be evaled but not shown.
14088finish_eval=$lt_finish_eval
14089
14090# Take the output of nm and produce a listing of raw symbols and C names.
14091global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14092
14093# Transform the output of nm in a proper C declaration
14094global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14095
14096# Transform the output of nm in a C name address pair
14097global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14098
14099# This is the shared library runtime path variable.
14100runpath_var=$runpath_var
14101
14102# This is the shared library path variable.
14103shlibpath_var=$shlibpath_var
14104
14105# Is shlibpath searched before the hard-coded library search path?
14106shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14107
14108# How to hardcode a shared library path into an executable.
14109hardcode_action=$hardcode_action_CXX
14110
14111# Whether we should hardcode library paths into libraries.
14112hardcode_into_libs=$hardcode_into_libs
14113
14114# Flag to hardcode \$libdir into a binary during linking.
14115# This must work even if \$libdir does not exist.
14116hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14117
14118# If ld is used when linking, flag to hardcode \$libdir into
14119# a binary during linking. This must work even if \$libdir does
14120# not exist.
14121hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14122
14123# Whether we need a single -rpath flag with a separated argument.
14124hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14125
14126# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14127# resulting binary.
14128hardcode_direct=$hardcode_direct_CXX
14129
14130# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14131# resulting binary.
14132hardcode_minus_L=$hardcode_minus_L_CXX
14133
14134# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14135# the resulting binary.
14136hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14137
14138# Set to yes if building a shared library automatically hardcodes DIR into the library
14139# and all subsequent libraries and executables linked against it.
14140hardcode_automatic=$hardcode_automatic_CXX
14141
14142# Variables whose values should be saved in libtool wrapper scripts and
14143# restored at relink time.
14144variables_saved_for_relink="$variables_saved_for_relink"
14145
14146# Whether libtool must link a program against all its dependency libraries.
14147link_all_deplibs=$link_all_deplibs_CXX
14148
14149# Compile-time system search path for libraries
14150sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14151
14152# Run-time system search path for libraries
14153sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14154
14155# Fix the shell variable \$srcfile for the compiler.
14156fix_srcfile_path=$lt_fix_srcfile_path
14157
14158# Set to yes if exported symbols are required.
14159always_export_symbols=$always_export_symbols_CXX
14160
14161# The commands to list exported symbols.
14162export_symbols_cmds=$lt_export_symbols_cmds_CXX
14163
14164# The commands to extract the exported symbol list from a shared archive.
14165extract_expsyms_cmds=$lt_extract_expsyms_cmds
14166
14167# Symbols that should not be listed in the preloaded symbols.
14168exclude_expsyms=$lt_exclude_expsyms_CXX
14169
14170# Symbols that must always be exported.
14171include_expsyms=$lt_include_expsyms_CXX
14172
14173# ### END LIBTOOL TAG CONFIG: $tagname
14174
14175__EOF__
14176
14177
14178else
14179  # If there is no Makefile yet, we rely on a make rule to execute
14180  # `config.status --recheck' to rerun these tests and create the
14181  # libtool script then.
14182  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14183  if test -f "$ltmain_in"; then
14184    test -f Makefile && make "$ltmain"
14185  fi
14186fi
14187
14188
14189ac_ext=c
14190ac_cpp='$CPP $CPPFLAGS'
14191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14193ac_compiler_gnu=$ac_cv_c_compiler_gnu
14194
14195CC=$lt_save_CC
14196LDCXX=$LD
14197LD=$lt_save_LD
14198GCC=$lt_save_GCC
14199with_gnu_ldcxx=$with_gnu_ld
14200with_gnu_ld=$lt_save_with_gnu_ld
14201lt_cv_path_LDCXX=$lt_cv_path_LD
14202lt_cv_path_LD=$lt_save_path_LD
14203lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14204lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14205
14206	else
14207	  tagname=""
14208	fi
14209	;;
14210
14211      F77)
14212	if test -n "$F77" && test "X$F77" != "Xno"; then
14213
14214ac_ext=f
14215ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14216ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14217ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14218
14219
14220archive_cmds_need_lc_F77=no
14221allow_undefined_flag_F77=
14222always_export_symbols_F77=no
14223archive_expsym_cmds_F77=
14224export_dynamic_flag_spec_F77=
14225hardcode_direct_F77=no
14226hardcode_libdir_flag_spec_F77=
14227hardcode_libdir_flag_spec_ld_F77=
14228hardcode_libdir_separator_F77=
14229hardcode_minus_L_F77=no
14230hardcode_automatic_F77=no
14231module_cmds_F77=
14232module_expsym_cmds_F77=
14233link_all_deplibs_F77=unknown
14234old_archive_cmds_F77=$old_archive_cmds
14235no_undefined_flag_F77=
14236whole_archive_flag_spec_F77=
14237enable_shared_with_static_runtimes_F77=no
14238
14239# Source file extension for f77 test sources.
14240ac_ext=f
14241
14242# Object file extension for compiled f77 test sources.
14243objext=o
14244objext_F77=$objext
14245
14246# Code to be used in simple compile tests
14247lt_simple_compile_test_code="\
14248      subroutine t
14249      return
14250      end
14251"
14252
14253# Code to be used in simple link tests
14254lt_simple_link_test_code="\
14255      program t
14256      end
14257"
14258
14259# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14260
14261# If no C compiler was specified, use CC.
14262LTCC=${LTCC-"$CC"}
14263
14264# If no C compiler flags were specified, use CFLAGS.
14265LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14266
14267# Allow CC to be a program name with arguments.
14268compiler=$CC
14269
14270
14271# save warnings/boilerplate of simple test code
14272ac_outfile=conftest.$ac_objext
14273echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14274eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14275_lt_compiler_boilerplate=`cat conftest.err`
14276$rm conftest*
14277
14278ac_outfile=conftest.$ac_objext
14279echo "$lt_simple_link_test_code" >conftest.$ac_ext
14280eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14281_lt_linker_boilerplate=`cat conftest.err`
14282$rm -r conftest*
14283
14284
14285# Allow CC to be a program name with arguments.
14286lt_save_CC="$CC"
14287CC=${F77-"f77"}
14288compiler=$CC
14289compiler_F77=$CC
14290for cc_temp in $compiler""; do
14291  case $cc_temp in
14292    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14293    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14294    \-*) ;;
14295    *) break;;
14296  esac
14297done
14298cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14299
14300
14301{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14302$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14303{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14304$as_echo "$can_build_shared" >&6; }
14305
14306{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14307$as_echo_n "checking whether to build shared libraries... " >&6; }
14308test "$can_build_shared" = "no" && enable_shared=no
14309
14310# On AIX, shared libraries and static libraries use the same namespace, and
14311# are all built from PIC.
14312case $host_os in
14313aix3*)
14314  test "$enable_shared" = yes && enable_static=no
14315  if test -n "$RANLIB"; then
14316    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14317    postinstall_cmds='$RANLIB $lib'
14318  fi
14319  ;;
14320aix[4-9]*)
14321  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14322    test "$enable_shared" = yes && enable_static=no
14323  fi
14324  ;;
14325esac
14326{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14327$as_echo "$enable_shared" >&6; }
14328
14329{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14330$as_echo_n "checking whether to build static libraries... " >&6; }
14331# Make sure either enable_shared or enable_static is yes.
14332test "$enable_shared" = yes || enable_static=yes
14333{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14334$as_echo "$enable_static" >&6; }
14335
14336GCC_F77="$G77"
14337LD_F77="$LD"
14338
14339lt_prog_compiler_wl_F77=
14340lt_prog_compiler_pic_F77=
14341lt_prog_compiler_static_F77=
14342
14343{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14344$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14345
14346  if test "$GCC" = yes; then
14347    lt_prog_compiler_wl_F77='-Wl,'
14348    lt_prog_compiler_static_F77='-static'
14349
14350    case $host_os in
14351      aix*)
14352      # All AIX code is PIC.
14353      if test "$host_cpu" = ia64; then
14354	# AIX 5 now supports IA64 processor
14355	lt_prog_compiler_static_F77='-Bstatic'
14356      fi
14357      ;;
14358
14359    amigaos*)
14360      # FIXME: we need at least 68020 code to build shared libraries, but
14361      # adding the `-m68020' flag to GCC prevents building anything better,
14362      # like `-m68040'.
14363      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14364      ;;
14365
14366    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14367      # PIC is the default for these OSes.
14368      ;;
14369
14370    mingw* | cygwin* | pw32* | os2*)
14371      # This hack is so that the source file can tell whether it is being
14372      # built for inclusion in a dll (and should export symbols for example).
14373      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14374      # (--disable-auto-import) libraries
14375      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14376      ;;
14377
14378    darwin* | rhapsody*)
14379      # PIC is the default on this platform
14380      # Common symbols not allowed in MH_DYLIB files
14381      lt_prog_compiler_pic_F77='-fno-common'
14382      ;;
14383
14384    interix[3-9]*)
14385      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14386      # Instead, we relocate shared libraries at runtime.
14387      ;;
14388
14389    msdosdjgpp*)
14390      # Just because we use GCC doesn't mean we suddenly get shared libraries
14391      # on systems that don't support them.
14392      lt_prog_compiler_can_build_shared_F77=no
14393      enable_shared=no
14394      ;;
14395
14396    sysv4*MP*)
14397      if test -d /usr/nec; then
14398	lt_prog_compiler_pic_F77=-Kconform_pic
14399      fi
14400      ;;
14401
14402    hpux*)
14403      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14404      # not for PA HP-UX.
14405      case $host_cpu in
14406      hppa*64*|ia64*)
14407	# +Z the default
14408	;;
14409      *)
14410	lt_prog_compiler_pic_F77='-fPIC'
14411	;;
14412      esac
14413      ;;
14414
14415    *)
14416      lt_prog_compiler_pic_F77='-fPIC'
14417      ;;
14418    esac
14419  else
14420    # PORTME Check for flag to pass linker flags through the system compiler.
14421    case $host_os in
14422    aix*)
14423      lt_prog_compiler_wl_F77='-Wl,'
14424      if test "$host_cpu" = ia64; then
14425	# AIX 5 now supports IA64 processor
14426	lt_prog_compiler_static_F77='-Bstatic'
14427      else
14428	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14429      fi
14430      ;;
14431      darwin*)
14432        # PIC is the default on this platform
14433        # Common symbols not allowed in MH_DYLIB files
14434       case $cc_basename in
14435         xlc*)
14436         lt_prog_compiler_pic_F77='-qnocommon'
14437         lt_prog_compiler_wl_F77='-Wl,'
14438         ;;
14439       esac
14440       ;;
14441
14442    mingw* | cygwin* | pw32* | os2*)
14443      # This hack is so that the source file can tell whether it is being
14444      # built for inclusion in a dll (and should export symbols for example).
14445      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14446      ;;
14447
14448    hpux9* | hpux10* | hpux11*)
14449      lt_prog_compiler_wl_F77='-Wl,'
14450      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14451      # not for PA HP-UX.
14452      case $host_cpu in
14453      hppa*64*|ia64*)
14454	# +Z the default
14455	;;
14456      *)
14457	lt_prog_compiler_pic_F77='+Z'
14458	;;
14459      esac
14460      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14461      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14462      ;;
14463
14464    irix5* | irix6* | nonstopux*)
14465      lt_prog_compiler_wl_F77='-Wl,'
14466      # PIC (with -KPIC) is the default.
14467      lt_prog_compiler_static_F77='-non_shared'
14468      ;;
14469
14470    newsos6)
14471      lt_prog_compiler_pic_F77='-KPIC'
14472      lt_prog_compiler_static_F77='-Bstatic'
14473      ;;
14474
14475    linux* | k*bsd*-gnu)
14476      case $cc_basename in
14477      icc* | ecc*)
14478	lt_prog_compiler_wl_F77='-Wl,'
14479	lt_prog_compiler_pic_F77='-KPIC'
14480	lt_prog_compiler_static_F77='-static'
14481        ;;
14482      pgcc* | pgf77* | pgf90* | pgf95*)
14483        # Portland Group compilers (*not* the Pentium gcc compiler,
14484	# which looks to be a dead project)
14485	lt_prog_compiler_wl_F77='-Wl,'
14486	lt_prog_compiler_pic_F77='-fpic'
14487	lt_prog_compiler_static_F77='-Bstatic'
14488        ;;
14489      ccc*)
14490        lt_prog_compiler_wl_F77='-Wl,'
14491        # All Alpha code is PIC.
14492        lt_prog_compiler_static_F77='-non_shared'
14493        ;;
14494      *)
14495        case `$CC -V 2>&1 | sed 5q` in
14496	*Sun\ C*)
14497	  # Sun C 5.9
14498	  lt_prog_compiler_pic_F77='-KPIC'
14499	  lt_prog_compiler_static_F77='-Bstatic'
14500	  lt_prog_compiler_wl_F77='-Wl,'
14501	  ;;
14502	*Sun\ F*)
14503	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14504	  lt_prog_compiler_pic_F77='-KPIC'
14505	  lt_prog_compiler_static_F77='-Bstatic'
14506	  lt_prog_compiler_wl_F77=''
14507	  ;;
14508	esac
14509	;;
14510      esac
14511      ;;
14512
14513    osf3* | osf4* | osf5*)
14514      lt_prog_compiler_wl_F77='-Wl,'
14515      # All OSF/1 code is PIC.
14516      lt_prog_compiler_static_F77='-non_shared'
14517      ;;
14518
14519    rdos*)
14520      lt_prog_compiler_static_F77='-non_shared'
14521      ;;
14522
14523    solaris*)
14524      lt_prog_compiler_pic_F77='-KPIC'
14525      lt_prog_compiler_static_F77='-Bstatic'
14526      case $cc_basename in
14527      f77* | f90* | f95*)
14528	lt_prog_compiler_wl_F77='-Qoption ld ';;
14529      *)
14530	lt_prog_compiler_wl_F77='-Wl,';;
14531      esac
14532      ;;
14533
14534    sunos4*)
14535      lt_prog_compiler_wl_F77='-Qoption ld '
14536      lt_prog_compiler_pic_F77='-PIC'
14537      lt_prog_compiler_static_F77='-Bstatic'
14538      ;;
14539
14540    sysv4 | sysv4.2uw2* | sysv4.3*)
14541      lt_prog_compiler_wl_F77='-Wl,'
14542      lt_prog_compiler_pic_F77='-KPIC'
14543      lt_prog_compiler_static_F77='-Bstatic'
14544      ;;
14545
14546    sysv4*MP*)
14547      if test -d /usr/nec ;then
14548	lt_prog_compiler_pic_F77='-Kconform_pic'
14549	lt_prog_compiler_static_F77='-Bstatic'
14550      fi
14551      ;;
14552
14553    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14554      lt_prog_compiler_wl_F77='-Wl,'
14555      lt_prog_compiler_pic_F77='-KPIC'
14556      lt_prog_compiler_static_F77='-Bstatic'
14557      ;;
14558
14559    unicos*)
14560      lt_prog_compiler_wl_F77='-Wl,'
14561      lt_prog_compiler_can_build_shared_F77=no
14562      ;;
14563
14564    uts4*)
14565      lt_prog_compiler_pic_F77='-pic'
14566      lt_prog_compiler_static_F77='-Bstatic'
14567      ;;
14568
14569    *)
14570      lt_prog_compiler_can_build_shared_F77=no
14571      ;;
14572    esac
14573  fi
14574
14575{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14576$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14577
14578#
14579# Check to make sure the PIC flag actually works.
14580#
14581if test -n "$lt_prog_compiler_pic_F77"; then
14582
14583{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14584$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14585if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14586  $as_echo_n "(cached) " >&6
14587else
14588  lt_cv_prog_compiler_pic_works_F77=no
14589  ac_outfile=conftest.$ac_objext
14590   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14591   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14592   # Insert the option either (1) after the last *FLAGS variable, or
14593   # (2) before a word containing "conftest.", or (3) at the end.
14594   # Note that $ac_compile itself does not contain backslashes and begins
14595   # with a dollar sign (not a hyphen), so the echo should work correctly.
14596   # The option is referenced via a variable to avoid confusing sed.
14597   lt_compile=`echo "$ac_compile" | $SED \
14598   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14599   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14600   -e 's:$: $lt_compiler_flag:'`
14601   (eval echo "\"\$as_me:14601: $lt_compile\"" >&5)
14602   (eval "$lt_compile" 2>conftest.err)
14603   ac_status=$?
14604   cat conftest.err >&5
14605   echo "$as_me:14605: \$? = $ac_status" >&5
14606   if (exit $ac_status) && test -s "$ac_outfile"; then
14607     # The compiler can only warn and ignore the option if not recognized
14608     # So say no if there are warnings other than the usual output.
14609     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14610     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14611     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14612       lt_cv_prog_compiler_pic_works_F77=yes
14613     fi
14614   fi
14615   $rm conftest*
14616
14617fi
14618{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14619$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14620
14621if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14622    case $lt_prog_compiler_pic_F77 in
14623     "" | " "*) ;;
14624     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14625     esac
14626else
14627    lt_prog_compiler_pic_F77=
14628     lt_prog_compiler_can_build_shared_F77=no
14629fi
14630
14631fi
14632case $host_os in
14633  # For platforms which do not support PIC, -DPIC is meaningless:
14634  *djgpp*)
14635    lt_prog_compiler_pic_F77=
14636    ;;
14637  *)
14638    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14639    ;;
14640esac
14641
14642#
14643# Check to make sure the static flag actually works.
14644#
14645wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14646{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14647$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14648if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14649  $as_echo_n "(cached) " >&6
14650else
14651  lt_cv_prog_compiler_static_works_F77=no
14652   save_LDFLAGS="$LDFLAGS"
14653   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14654   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14655   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14656     # The linker can only warn and ignore the option if not recognized
14657     # So say no if there are warnings
14658     if test -s conftest.err; then
14659       # Append any errors to the config.log.
14660       cat conftest.err 1>&5
14661       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14662       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14663       if diff conftest.exp conftest.er2 >/dev/null; then
14664         lt_cv_prog_compiler_static_works_F77=yes
14665       fi
14666     else
14667       lt_cv_prog_compiler_static_works_F77=yes
14668     fi
14669   fi
14670   $rm -r conftest*
14671   LDFLAGS="$save_LDFLAGS"
14672
14673fi
14674{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14675$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14676
14677if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14678    :
14679else
14680    lt_prog_compiler_static_F77=
14681fi
14682
14683
14684{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14685$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14686if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14687  $as_echo_n "(cached) " >&6
14688else
14689  lt_cv_prog_compiler_c_o_F77=no
14690   $rm -r conftest 2>/dev/null
14691   mkdir conftest
14692   cd conftest
14693   mkdir out
14694   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14695
14696   lt_compiler_flag="-o out/conftest2.$ac_objext"
14697   # Insert the option either (1) after the last *FLAGS variable, or
14698   # (2) before a word containing "conftest.", or (3) at the end.
14699   # Note that $ac_compile itself does not contain backslashes and begins
14700   # with a dollar sign (not a hyphen), so the echo should work correctly.
14701   lt_compile=`echo "$ac_compile" | $SED \
14702   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14703   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14704   -e 's:$: $lt_compiler_flag:'`
14705   (eval echo "\"\$as_me:14705: $lt_compile\"" >&5)
14706   (eval "$lt_compile" 2>out/conftest.err)
14707   ac_status=$?
14708   cat out/conftest.err >&5
14709   echo "$as_me:14709: \$? = $ac_status" >&5
14710   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14711   then
14712     # The compiler can only warn and ignore the option if not recognized
14713     # So say no if there are warnings
14714     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14715     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14716     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14717       lt_cv_prog_compiler_c_o_F77=yes
14718     fi
14719   fi
14720   chmod u+w . 2>&5
14721   $rm conftest*
14722   # SGI C++ compiler will create directory out/ii_files/ for
14723   # template instantiation
14724   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14725   $rm out/* && rmdir out
14726   cd ..
14727   rmdir conftest
14728   $rm conftest*
14729
14730fi
14731{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14732$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14733
14734
14735hard_links="nottested"
14736if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14737  # do not overwrite the value of need_locks provided by the user
14738  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14739$as_echo_n "checking if we can lock with hard links... " >&6; }
14740  hard_links=yes
14741  $rm conftest*
14742  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14743  touch conftest.a
14744  ln conftest.a conftest.b 2>&5 || hard_links=no
14745  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14746  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14747$as_echo "$hard_links" >&6; }
14748  if test "$hard_links" = no; then
14749    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14750$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14751    need_locks=warn
14752  fi
14753else
14754  need_locks=no
14755fi
14756
14757{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14758$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14759
14760  runpath_var=
14761  allow_undefined_flag_F77=
14762  enable_shared_with_static_runtimes_F77=no
14763  archive_cmds_F77=
14764  archive_expsym_cmds_F77=
14765  old_archive_From_new_cmds_F77=
14766  old_archive_from_expsyms_cmds_F77=
14767  export_dynamic_flag_spec_F77=
14768  whole_archive_flag_spec_F77=
14769  thread_safe_flag_spec_F77=
14770  hardcode_libdir_flag_spec_F77=
14771  hardcode_libdir_flag_spec_ld_F77=
14772  hardcode_libdir_separator_F77=
14773  hardcode_direct_F77=no
14774  hardcode_minus_L_F77=no
14775  hardcode_shlibpath_var_F77=unsupported
14776  link_all_deplibs_F77=unknown
14777  hardcode_automatic_F77=no
14778  module_cmds_F77=
14779  module_expsym_cmds_F77=
14780  always_export_symbols_F77=no
14781  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14782  # include_expsyms should be a list of space-separated symbols to be *always*
14783  # included in the symbol list
14784  include_expsyms_F77=
14785  # exclude_expsyms can be an extended regexp of symbols to exclude
14786  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14787  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14788  # as well as any symbol that contains `d'.
14789  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14790  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14791  # platforms (ab)use it in PIC code, but their linkers get confused if
14792  # the symbol is explicitly referenced.  Since portable code cannot
14793  # rely on this symbol name, it's probably fine to never include it in
14794  # preloaded symbol tables.
14795  # Exclude shared library initialization/finalization symbols.
14796  extract_expsyms_cmds=
14797  # Just being paranoid about ensuring that cc_basename is set.
14798  for cc_temp in $compiler""; do
14799  case $cc_temp in
14800    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14801    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14802    \-*) ;;
14803    *) break;;
14804  esac
14805done
14806cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14807
14808  case $host_os in
14809  cygwin* | mingw* | pw32*)
14810    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14811    # When not using gcc, we currently assume that we are using
14812    # Microsoft Visual C++.
14813    if test "$GCC" != yes; then
14814      with_gnu_ld=no
14815    fi
14816    ;;
14817  interix*)
14818    # we just hope/assume this is gcc and not c89 (= MSVC++)
14819    with_gnu_ld=yes
14820    ;;
14821  openbsd*)
14822    with_gnu_ld=no
14823    ;;
14824  esac
14825
14826  ld_shlibs_F77=yes
14827  if test "$with_gnu_ld" = yes; then
14828    # If archive_cmds runs LD, not CC, wlarc should be empty
14829    wlarc='${wl}'
14830
14831    # Set some defaults for GNU ld with shared library support. These
14832    # are reset later if shared libraries are not supported. Putting them
14833    # here allows them to be overridden if necessary.
14834    runpath_var=LD_RUN_PATH
14835    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14836    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14837    # ancient GNU ld didn't support --whole-archive et. al.
14838    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14839	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14840      else
14841  	whole_archive_flag_spec_F77=
14842    fi
14843    supports_anon_versioning=no
14844    case `$LD -v 2>/dev/null` in
14845      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14846      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14847      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14848      *\ 2.11.*) ;; # other 2.11 versions
14849      *) supports_anon_versioning=yes ;;
14850    esac
14851
14852    # See if GNU ld supports shared libraries.
14853    case $host_os in
14854    aix[3-9]*)
14855      # On AIX/PPC, the GNU linker is very broken
14856      if test "$host_cpu" != ia64; then
14857	ld_shlibs_F77=no
14858	cat <<EOF 1>&2
14859
14860*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14861*** to be unable to reliably create shared libraries on AIX.
14862*** Therefore, libtool is disabling shared libraries support.  If you
14863*** really care for shared libraries, you may want to modify your PATH
14864*** so that a non-GNU linker is found, and then restart.
14865
14866EOF
14867      fi
14868      ;;
14869
14870    amigaos*)
14871      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)'
14872      hardcode_libdir_flag_spec_F77='-L$libdir'
14873      hardcode_minus_L_F77=yes
14874
14875      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14876      # that the semantics of dynamic libraries on AmigaOS, at least up
14877      # to version 4, is to share data among multiple programs linked
14878      # with the same dynamic library.  Since this doesn't match the
14879      # behavior of shared libraries on other platforms, we can't use
14880      # them.
14881      ld_shlibs_F77=no
14882      ;;
14883
14884    beos*)
14885      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14886	allow_undefined_flag_F77=unsupported
14887	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14888	# support --undefined.  This deserves some investigation.  FIXME
14889	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14890      else
14891	ld_shlibs_F77=no
14892      fi
14893      ;;
14894
14895    cygwin* | mingw* | pw32*)
14896      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14897      # as there is no search path for DLLs.
14898      hardcode_libdir_flag_spec_F77='-L$libdir'
14899      allow_undefined_flag_F77=unsupported
14900      always_export_symbols_F77=no
14901      enable_shared_with_static_runtimes_F77=yes
14902      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14903
14904      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14905        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14906	# If the export-symbols file already is a .def file (1st line
14907	# is EXPORTS), use it as is; otherwise, prepend...
14908	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14909	  cp $export_symbols $output_objdir/$soname.def;
14910	else
14911	  echo EXPORTS > $output_objdir/$soname.def;
14912	  cat $export_symbols >> $output_objdir/$soname.def;
14913	fi~
14914	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14915      else
14916	ld_shlibs_F77=no
14917      fi
14918      ;;
14919
14920    interix[3-9]*)
14921      hardcode_direct_F77=no
14922      hardcode_shlibpath_var_F77=no
14923      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14924      export_dynamic_flag_spec_F77='${wl}-E'
14925      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14926      # Instead, shared libraries are loaded at an image base (0x10000000 by
14927      # default) and relocated if they conflict, which is a slow very memory
14928      # consuming and fragmenting process.  To avoid this, we pick a random,
14929      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14930      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14931      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'
14932      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'
14933      ;;
14934
14935    gnu* | linux* | k*bsd*-gnu)
14936      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14937	tmp_addflag=
14938	case $cc_basename,$host_cpu in
14939	pgcc*)				# Portland Group C compiler
14940	  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'
14941	  tmp_addflag=' $pic_flag'
14942	  ;;
14943	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14944	  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'
14945	  tmp_addflag=' $pic_flag -Mnomain' ;;
14946	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14947	  tmp_addflag=' -i_dynamic' ;;
14948	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14949	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14950	ifc* | ifort*)			# Intel Fortran compiler
14951	  tmp_addflag=' -nofor_main' ;;
14952	esac
14953	case `$CC -V 2>&1 | sed 5q` in
14954	*Sun\ C*)			# Sun C 5.9
14955	  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'
14956	  tmp_sharedflag='-G' ;;
14957	*Sun\ F*)			# Sun Fortran 8.3
14958	  tmp_sharedflag='-G' ;;
14959	*)
14960	  tmp_sharedflag='-shared' ;;
14961	esac
14962	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14963
14964	if test $supports_anon_versioning = yes; then
14965	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14966  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14967  $echo "local: *; };" >> $output_objdir/$libname.ver~
14968	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14969	fi
14970      else
14971	ld_shlibs_F77=no
14972      fi
14973      ;;
14974
14975    netbsd*)
14976      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14977	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14978	wlarc=
14979      else
14980	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14981	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14982      fi
14983      ;;
14984
14985    solaris*)
14986      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14987	ld_shlibs_F77=no
14988	cat <<EOF 1>&2
14989
14990*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14991*** create shared libraries on Solaris systems.  Therefore, libtool
14992*** is disabling shared libraries support.  We urge you to upgrade GNU
14993*** binutils to release 2.9.1 or newer.  Another option is to modify
14994*** your PATH or compiler configuration so that the native linker is
14995*** used, and then restart.
14996
14997EOF
14998      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14999	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15000	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15001      else
15002	ld_shlibs_F77=no
15003      fi
15004      ;;
15005
15006    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15007      case `$LD -v 2>&1` in
15008        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15009	ld_shlibs_F77=no
15010	cat <<_LT_EOF 1>&2
15011
15012*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15013*** reliably create shared libraries on SCO systems.  Therefore, libtool
15014*** is disabling shared libraries support.  We urge you to upgrade GNU
15015*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15016*** your PATH or compiler configuration so that the native linker is
15017*** used, and then restart.
15018
15019_LT_EOF
15020	;;
15021	*)
15022	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15023	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15024	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15025	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15026	  else
15027	    ld_shlibs_F77=no
15028	  fi
15029	;;
15030      esac
15031      ;;
15032
15033    sunos4*)
15034      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15035      wlarc=
15036      hardcode_direct_F77=yes
15037      hardcode_shlibpath_var_F77=no
15038      ;;
15039
15040    *)
15041      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15042	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15043	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15044      else
15045	ld_shlibs_F77=no
15046      fi
15047      ;;
15048    esac
15049
15050    if test "$ld_shlibs_F77" = no; then
15051      runpath_var=
15052      hardcode_libdir_flag_spec_F77=
15053      export_dynamic_flag_spec_F77=
15054      whole_archive_flag_spec_F77=
15055    fi
15056  else
15057    # PORTME fill in a description of your system's linker (not GNU ld)
15058    case $host_os in
15059    aix3*)
15060      allow_undefined_flag_F77=unsupported
15061      always_export_symbols_F77=yes
15062      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'
15063      # Note: this linker hardcodes the directories in LIBPATH if there
15064      # are no directories specified by -L.
15065      hardcode_minus_L_F77=yes
15066      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15067	# Neither direct hardcoding nor static linking is supported with a
15068	# broken collect2.
15069	hardcode_direct_F77=unsupported
15070      fi
15071      ;;
15072
15073    aix[4-9]*)
15074      if test "$host_cpu" = ia64; then
15075	# On IA64, the linker does run time linking by default, so we don't
15076	# have to do anything special.
15077	aix_use_runtimelinking=no
15078	exp_sym_flag='-Bexport'
15079	no_entry_flag=""
15080      else
15081	# If we're using GNU nm, then we don't want the "-C" option.
15082	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15083	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15084	  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'
15085	else
15086	  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'
15087	fi
15088	aix_use_runtimelinking=no
15089
15090	# Test if we are trying to use run time linking or normal
15091	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15092	# need to do runtime linking.
15093	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15094	  for ld_flag in $LDFLAGS; do
15095  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15096  	    aix_use_runtimelinking=yes
15097  	    break
15098  	  fi
15099	  done
15100	  ;;
15101	esac
15102
15103	exp_sym_flag='-bexport'
15104	no_entry_flag='-bnoentry'
15105      fi
15106
15107      # When large executables or shared objects are built, AIX ld can
15108      # have problems creating the table of contents.  If linking a library
15109      # or program results in "error TOC overflow" add -mminimal-toc to
15110      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15111      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15112
15113      archive_cmds_F77=''
15114      hardcode_direct_F77=yes
15115      hardcode_libdir_separator_F77=':'
15116      link_all_deplibs_F77=yes
15117
15118      if test "$GCC" = yes; then
15119	case $host_os in aix4.[012]|aix4.[012].*)
15120	# We only want to do this on AIX 4.2 and lower, the check
15121	# below for broken collect2 doesn't work under 4.3+
15122	  collect2name=`${CC} -print-prog-name=collect2`
15123	  if test -f "$collect2name" && \
15124  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15125	  then
15126  	  # We have reworked collect2
15127  	  :
15128	  else
15129  	  # We have old collect2
15130  	  hardcode_direct_F77=unsupported
15131  	  # It fails to find uninstalled libraries when the uninstalled
15132  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15133  	  # to unsupported forces relinking
15134  	  hardcode_minus_L_F77=yes
15135  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15136  	  hardcode_libdir_separator_F77=
15137	  fi
15138	  ;;
15139	esac
15140	shared_flag='-shared'
15141	if test "$aix_use_runtimelinking" = yes; then
15142	  shared_flag="$shared_flag "'${wl}-G'
15143	fi
15144      else
15145	# not using gcc
15146	if test "$host_cpu" = ia64; then
15147  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15148  	# chokes on -Wl,-G. The following line is correct:
15149	  shared_flag='-G'
15150	else
15151	  if test "$aix_use_runtimelinking" = yes; then
15152	    shared_flag='${wl}-G'
15153	  else
15154	    shared_flag='${wl}-bM:SRE'
15155	  fi
15156	fi
15157      fi
15158
15159      # It seems that -bexpall does not export symbols beginning with
15160      # underscore (_), so it is better to generate a list of symbols to export.
15161      always_export_symbols_F77=yes
15162      if test "$aix_use_runtimelinking" = yes; then
15163	# Warning - without using the other runtime loading flags (-brtl),
15164	# -berok will link without error, but may produce a broken library.
15165	allow_undefined_flag_F77='-berok'
15166       # Determine the default libpath from the value encoded in an empty executable.
15167       cat >conftest.$ac_ext <<_ACEOF
15168      program main
15169
15170      end
15171_ACEOF
15172rm -f conftest.$ac_objext conftest$ac_exeext
15173if { (ac_try="$ac_link"
15174case "(($ac_try" in
15175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15176  *) ac_try_echo=$ac_try;;
15177esac
15178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15179$as_echo "$ac_try_echo") >&5
15180  (eval "$ac_link") 2>conftest.er1
15181  ac_status=$?
15182  grep -v '^ *+' conftest.er1 >conftest.err
15183  rm -f conftest.er1
15184  cat conftest.err >&5
15185  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186  (exit $ac_status); } && {
15187	 test -z "$ac_f77_werror_flag" ||
15188	 test ! -s conftest.err
15189       } && test -s conftest$ac_exeext && {
15190	 test "$cross_compiling" = yes ||
15191	 $as_test_x conftest$ac_exeext
15192       }; then
15193
15194lt_aix_libpath_sed='
15195    /Import File Strings/,/^$/ {
15196	/^0/ {
15197	    s/^0  *\(.*\)$/\1/
15198	    p
15199	}
15200    }'
15201aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15202# Check for a 64-bit object if we didn't find anything.
15203if test -z "$aix_libpath"; then
15204  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15205fi
15206else
15207  $as_echo "$as_me: failed program was:" >&5
15208sed 's/^/| /' conftest.$ac_ext >&5
15209
15210
15211fi
15212
15213rm -rf conftest.dSYM
15214rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15215      conftest$ac_exeext conftest.$ac_ext
15216if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15217
15218       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15219	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"
15220       else
15221	if test "$host_cpu" = ia64; then
15222	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15223	  allow_undefined_flag_F77="-z nodefs"
15224	  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"
15225	else
15226	 # Determine the default libpath from the value encoded in an empty executable.
15227	 cat >conftest.$ac_ext <<_ACEOF
15228      program main
15229
15230      end
15231_ACEOF
15232rm -f conftest.$ac_objext conftest$ac_exeext
15233if { (ac_try="$ac_link"
15234case "(($ac_try" in
15235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236  *) ac_try_echo=$ac_try;;
15237esac
15238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15239$as_echo "$ac_try_echo") >&5
15240  (eval "$ac_link") 2>conftest.er1
15241  ac_status=$?
15242  grep -v '^ *+' conftest.er1 >conftest.err
15243  rm -f conftest.er1
15244  cat conftest.err >&5
15245  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246  (exit $ac_status); } && {
15247	 test -z "$ac_f77_werror_flag" ||
15248	 test ! -s conftest.err
15249       } && test -s conftest$ac_exeext && {
15250	 test "$cross_compiling" = yes ||
15251	 $as_test_x conftest$ac_exeext
15252       }; then
15253
15254lt_aix_libpath_sed='
15255    /Import File Strings/,/^$/ {
15256	/^0/ {
15257	    s/^0  *\(.*\)$/\1/
15258	    p
15259	}
15260    }'
15261aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15262# Check for a 64-bit object if we didn't find anything.
15263if test -z "$aix_libpath"; then
15264  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15265fi
15266else
15267  $as_echo "$as_me: failed program was:" >&5
15268sed 's/^/| /' conftest.$ac_ext >&5
15269
15270
15271fi
15272
15273rm -rf conftest.dSYM
15274rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15275      conftest$ac_exeext conftest.$ac_ext
15276if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15277
15278	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15279	  # Warning - without using the other run time loading flags,
15280	  # -berok will link without error, but may produce a broken library.
15281	  no_undefined_flag_F77=' ${wl}-bernotok'
15282	  allow_undefined_flag_F77=' ${wl}-berok'
15283	  # Exported symbols can be pulled into shared objects from archives
15284	  whole_archive_flag_spec_F77='$convenience'
15285	  archive_cmds_need_lc_F77=yes
15286	  # This is similar to how AIX traditionally builds its shared libraries.
15287	  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'
15288	fi
15289      fi
15290      ;;
15291
15292    amigaos*)
15293      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)'
15294      hardcode_libdir_flag_spec_F77='-L$libdir'
15295      hardcode_minus_L_F77=yes
15296      # see comment about different semantics on the GNU ld section
15297      ld_shlibs_F77=no
15298      ;;
15299
15300    bsdi[45]*)
15301      export_dynamic_flag_spec_F77=-rdynamic
15302      ;;
15303
15304    cygwin* | mingw* | pw32*)
15305      # When not using gcc, we currently assume that we are using
15306      # Microsoft Visual C++.
15307      # hardcode_libdir_flag_spec is actually meaningless, as there is
15308      # no search path for DLLs.
15309      hardcode_libdir_flag_spec_F77=' '
15310      allow_undefined_flag_F77=unsupported
15311      # Tell ltmain to make .lib files, not .a files.
15312      libext=lib
15313      # Tell ltmain to make .dll files, not .so files.
15314      shrext_cmds=".dll"
15315      # FIXME: Setting linknames here is a bad hack.
15316      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15317      # The linker will automatically build a .lib file if we build a DLL.
15318      old_archive_From_new_cmds_F77='true'
15319      # FIXME: Should let the user specify the lib program.
15320      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15321      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15322      enable_shared_with_static_runtimes_F77=yes
15323      ;;
15324
15325    darwin* | rhapsody*)
15326      case $host_os in
15327        rhapsody* | darwin1.[012])
15328         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15329         ;;
15330       *) # Darwin 1.3 on
15331         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15332           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15333         else
15334           case ${MACOSX_DEPLOYMENT_TARGET} in
15335             10.[012])
15336               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15337               ;;
15338             10.*)
15339               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15340               ;;
15341           esac
15342         fi
15343         ;;
15344      esac
15345      archive_cmds_need_lc_F77=no
15346      hardcode_direct_F77=no
15347      hardcode_automatic_F77=yes
15348      hardcode_shlibpath_var_F77=unsupported
15349      whole_archive_flag_spec_F77=''
15350      link_all_deplibs_F77=yes
15351    if test "$GCC" = yes ; then
15352    	output_verbose_link_cmd='echo'
15353        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}"
15354        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15355        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}"
15356        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}"
15357    else
15358      case $cc_basename in
15359        xlc*)
15360         output_verbose_link_cmd='echo'
15361         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15362         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15363          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15364         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}'
15365          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}'
15366          ;;
15367       *)
15368         ld_shlibs_F77=no
15369          ;;
15370      esac
15371    fi
15372      ;;
15373
15374    dgux*)
15375      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15376      hardcode_libdir_flag_spec_F77='-L$libdir'
15377      hardcode_shlibpath_var_F77=no
15378      ;;
15379
15380    freebsd1*)
15381      ld_shlibs_F77=no
15382      ;;
15383
15384    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15385    # support.  Future versions do this automatically, but an explicit c++rt0.o
15386    # does not break anything, and helps significantly (at the cost of a little
15387    # extra space).
15388    freebsd2.2*)
15389      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15390      hardcode_libdir_flag_spec_F77='-R$libdir'
15391      hardcode_direct_F77=yes
15392      hardcode_shlibpath_var_F77=no
15393      ;;
15394
15395    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15396    freebsd2*)
15397      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15398      hardcode_direct_F77=yes
15399      hardcode_minus_L_F77=yes
15400      hardcode_shlibpath_var_F77=no
15401      ;;
15402
15403    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15404    freebsd* | dragonfly*)
15405      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15406      hardcode_libdir_flag_spec_F77='-R$libdir'
15407      hardcode_direct_F77=yes
15408      hardcode_shlibpath_var_F77=no
15409      ;;
15410
15411    hpux9*)
15412      if test "$GCC" = yes; then
15413	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'
15414      else
15415	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'
15416      fi
15417      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15418      hardcode_libdir_separator_F77=:
15419      hardcode_direct_F77=yes
15420
15421      # hardcode_minus_L: Not really in the search PATH,
15422      # but as the default location of the library.
15423      hardcode_minus_L_F77=yes
15424      export_dynamic_flag_spec_F77='${wl}-E'
15425      ;;
15426
15427    hpux10*)
15428      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15429	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15430      else
15431	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15432      fi
15433      if test "$with_gnu_ld" = no; then
15434	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15435	hardcode_libdir_separator_F77=:
15436
15437	hardcode_direct_F77=yes
15438	export_dynamic_flag_spec_F77='${wl}-E'
15439
15440	# hardcode_minus_L: Not really in the search PATH,
15441	# but as the default location of the library.
15442	hardcode_minus_L_F77=yes
15443      fi
15444      ;;
15445
15446    hpux11*)
15447      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15448	case $host_cpu in
15449	hppa*64*)
15450	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15451	  ;;
15452	ia64*)
15453	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15454	  ;;
15455	*)
15456	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15457	  ;;
15458	esac
15459      else
15460	case $host_cpu in
15461	hppa*64*)
15462	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15463	  ;;
15464	ia64*)
15465	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15466	  ;;
15467	*)
15468	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15469	  ;;
15470	esac
15471      fi
15472      if test "$with_gnu_ld" = no; then
15473	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15474	hardcode_libdir_separator_F77=:
15475
15476	case $host_cpu in
15477	hppa*64*|ia64*)
15478	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15479	  hardcode_direct_F77=no
15480	  hardcode_shlibpath_var_F77=no
15481	  ;;
15482	*)
15483	  hardcode_direct_F77=yes
15484	  export_dynamic_flag_spec_F77='${wl}-E'
15485
15486	  # hardcode_minus_L: Not really in the search PATH,
15487	  # but as the default location of the library.
15488	  hardcode_minus_L_F77=yes
15489	  ;;
15490	esac
15491      fi
15492      ;;
15493
15494    irix5* | irix6* | nonstopux*)
15495      if test "$GCC" = yes; then
15496	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'
15497      else
15498	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'
15499	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15500      fi
15501      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15502      hardcode_libdir_separator_F77=:
15503      link_all_deplibs_F77=yes
15504      ;;
15505
15506    netbsd*)
15507      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15508	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15509      else
15510	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15511      fi
15512      hardcode_libdir_flag_spec_F77='-R$libdir'
15513      hardcode_direct_F77=yes
15514      hardcode_shlibpath_var_F77=no
15515      ;;
15516
15517    newsos6)
15518      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15519      hardcode_direct_F77=yes
15520      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15521      hardcode_libdir_separator_F77=:
15522      hardcode_shlibpath_var_F77=no
15523      ;;
15524
15525    openbsd*)
15526      if test -f /usr/libexec/ld.so; then
15527	hardcode_direct_F77=yes
15528	hardcode_shlibpath_var_F77=no
15529	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15530	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15531	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15532	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15533	  export_dynamic_flag_spec_F77='${wl}-E'
15534	else
15535	  case $host_os in
15536	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15537	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15538	     hardcode_libdir_flag_spec_F77='-R$libdir'
15539	     ;;
15540	   *)
15541	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15542	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15543	     ;;
15544	  esac
15545        fi
15546      else
15547	ld_shlibs_F77=no
15548      fi
15549      ;;
15550
15551    os2*)
15552      hardcode_libdir_flag_spec_F77='-L$libdir'
15553      hardcode_minus_L_F77=yes
15554      allow_undefined_flag_F77=unsupported
15555      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'
15556      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15557      ;;
15558
15559    osf3*)
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15563      else
15564	allow_undefined_flag_F77=' -expect_unresolved \*'
15565	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'
15566      fi
15567      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15568      hardcode_libdir_separator_F77=:
15569      ;;
15570
15571    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15572      if test "$GCC" = yes; then
15573	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15574	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'
15575	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15576      else
15577	allow_undefined_flag_F77=' -expect_unresolved \*'
15578	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'
15579	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~
15580	$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'
15581
15582	# Both c and cxx compiler support -rpath directly
15583	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15584      fi
15585      hardcode_libdir_separator_F77=:
15586      ;;
15587
15588    solaris*)
15589      no_undefined_flag_F77=' -z text'
15590      if test "$GCC" = yes; then
15591	wlarc='${wl}'
15592	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15593	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15594	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15595      else
15596	wlarc=''
15597	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15598	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15599  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15600      fi
15601      hardcode_libdir_flag_spec_F77='-R$libdir'
15602      hardcode_shlibpath_var_F77=no
15603      case $host_os in
15604      solaris2.[0-5] | solaris2.[0-5].*) ;;
15605      *)
15606	# The compiler driver will combine and reorder linker options,
15607	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15608	# but is careful enough not to reorder.
15609 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15610	if test "$GCC" = yes; then
15611	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15612	else
15613	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15614	fi
15615	;;
15616      esac
15617      link_all_deplibs_F77=yes
15618      ;;
15619
15620    sunos4*)
15621      if test "x$host_vendor" = xsequent; then
15622	# Use $CC to link under sequent, because it throws in some extra .o
15623	# files that make .init and .fini sections work.
15624	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15625      else
15626	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15627      fi
15628      hardcode_libdir_flag_spec_F77='-L$libdir'
15629      hardcode_direct_F77=yes
15630      hardcode_minus_L_F77=yes
15631      hardcode_shlibpath_var_F77=no
15632      ;;
15633
15634    sysv4)
15635      case $host_vendor in
15636	sni)
15637	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15638	  hardcode_direct_F77=yes # is this really true???
15639	;;
15640	siemens)
15641	  ## LD is ld it makes a PLAMLIB
15642	  ## CC just makes a GrossModule.
15643	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15644	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15645	  hardcode_direct_F77=no
15646        ;;
15647	motorola)
15648	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15649	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15650	;;
15651      esac
15652      runpath_var='LD_RUN_PATH'
15653      hardcode_shlibpath_var_F77=no
15654      ;;
15655
15656    sysv4.3*)
15657      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15658      hardcode_shlibpath_var_F77=no
15659      export_dynamic_flag_spec_F77='-Bexport'
15660      ;;
15661
15662    sysv4*MP*)
15663      if test -d /usr/nec; then
15664	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15665	hardcode_shlibpath_var_F77=no
15666	runpath_var=LD_RUN_PATH
15667	hardcode_runpath_var=yes
15668	ld_shlibs_F77=yes
15669      fi
15670      ;;
15671
15672    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15673      no_undefined_flag_F77='${wl}-z,text'
15674      archive_cmds_need_lc_F77=no
15675      hardcode_shlibpath_var_F77=no
15676      runpath_var='LD_RUN_PATH'
15677
15678      if test "$GCC" = yes; then
15679	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15680	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15681      else
15682	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15683	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15684      fi
15685      ;;
15686
15687    sysv5* | sco3.2v5* | sco5v6*)
15688      # Note: We can NOT use -z defs as we might desire, because we do not
15689      # link with -lc, and that would cause any symbols used from libc to
15690      # always be unresolved, which means just about no library would
15691      # ever link correctly.  If we're not using GNU ld we use -z text
15692      # though, which does catch some bad symbols but isn't as heavy-handed
15693      # as -z defs.
15694      no_undefined_flag_F77='${wl}-z,text'
15695      allow_undefined_flag_F77='${wl}-z,nodefs'
15696      archive_cmds_need_lc_F77=no
15697      hardcode_shlibpath_var_F77=no
15698      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15699      hardcode_libdir_separator_F77=':'
15700      link_all_deplibs_F77=yes
15701      export_dynamic_flag_spec_F77='${wl}-Bexport'
15702      runpath_var='LD_RUN_PATH'
15703
15704      if test "$GCC" = yes; then
15705	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15706	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15707      else
15708	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15709	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15710      fi
15711      ;;
15712
15713    uts4*)
15714      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15715      hardcode_libdir_flag_spec_F77='-L$libdir'
15716      hardcode_shlibpath_var_F77=no
15717      ;;
15718
15719    *)
15720      ld_shlibs_F77=no
15721      ;;
15722    esac
15723  fi
15724
15725{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15726$as_echo "$ld_shlibs_F77" >&6; }
15727test "$ld_shlibs_F77" = no && can_build_shared=no
15728
15729#
15730# Do we need to explicitly link libc?
15731#
15732case "x$archive_cmds_need_lc_F77" in
15733x|xyes)
15734  # Assume -lc should be added
15735  archive_cmds_need_lc_F77=yes
15736
15737  if test "$enable_shared" = yes && test "$GCC" = yes; then
15738    case $archive_cmds_F77 in
15739    *'~'*)
15740      # FIXME: we may have to deal with multi-command sequences.
15741      ;;
15742    '$CC '*)
15743      # Test whether the compiler implicitly links with -lc since on some
15744      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15745      # to ld, don't add -lc before -lgcc.
15746      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15747$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15748      $rm conftest*
15749      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15750
15751      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15752  (eval $ac_compile) 2>&5
15753  ac_status=$?
15754  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755  (exit $ac_status); } 2>conftest.err; then
15756        soname=conftest
15757        lib=conftest
15758        libobjs=conftest.$ac_objext
15759        deplibs=
15760        wl=$lt_prog_compiler_wl_F77
15761	pic_flag=$lt_prog_compiler_pic_F77
15762        compiler_flags=-v
15763        linker_flags=-v
15764        verstring=
15765        output_objdir=.
15766        libname=conftest
15767        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15768        allow_undefined_flag_F77=
15769        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15770  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15771  ac_status=$?
15772  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773  (exit $ac_status); }
15774        then
15775	  archive_cmds_need_lc_F77=no
15776        else
15777	  archive_cmds_need_lc_F77=yes
15778        fi
15779        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15780      else
15781        cat conftest.err 1>&5
15782      fi
15783      $rm conftest*
15784      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15785$as_echo "$archive_cmds_need_lc_F77" >&6; }
15786      ;;
15787    esac
15788  fi
15789  ;;
15790esac
15791
15792{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15793$as_echo_n "checking dynamic linker characteristics... " >&6; }
15794library_names_spec=
15795libname_spec='lib$name'
15796soname_spec=
15797shrext_cmds=".so"
15798postinstall_cmds=
15799postuninstall_cmds=
15800finish_cmds=
15801finish_eval=
15802shlibpath_var=
15803shlibpath_overrides_runpath=unknown
15804version_type=none
15805dynamic_linker="$host_os ld.so"
15806sys_lib_dlsearch_path_spec="/lib /usr/lib"
15807
15808need_lib_prefix=unknown
15809hardcode_into_libs=no
15810
15811# when you set need_version to no, make sure it does not cause -set_version
15812# flags to be left without arguments
15813need_version=unknown
15814
15815case $host_os in
15816aix3*)
15817  version_type=linux
15818  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15819  shlibpath_var=LIBPATH
15820
15821  # AIX 3 has no versioning support, so we append a major version to the name.
15822  soname_spec='${libname}${release}${shared_ext}$major'
15823  ;;
15824
15825aix[4-9]*)
15826  version_type=linux
15827  need_lib_prefix=no
15828  need_version=no
15829  hardcode_into_libs=yes
15830  if test "$host_cpu" = ia64; then
15831    # AIX 5 supports IA64
15832    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15833    shlibpath_var=LD_LIBRARY_PATH
15834  else
15835    # With GCC up to 2.95.x, collect2 would create an import file
15836    # for dependence libraries.  The import file would start with
15837    # the line `#! .'.  This would cause the generated library to
15838    # depend on `.', always an invalid library.  This was fixed in
15839    # development snapshots of GCC prior to 3.0.
15840    case $host_os in
15841      aix4 | aix4.[01] | aix4.[01].*)
15842      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15843	   echo ' yes '
15844	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15845	:
15846      else
15847	can_build_shared=no
15848      fi
15849      ;;
15850    esac
15851    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15852    # soname into executable. Probably we can add versioning support to
15853    # collect2, so additional links can be useful in future.
15854    if test "$aix_use_runtimelinking" = yes; then
15855      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15856      # instead of lib<name>.a to let people know that these are not
15857      # typical AIX shared libraries.
15858      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15859    else
15860      # We preserve .a as extension for shared libraries through AIX4.2
15861      # and later when we are not doing run time linking.
15862      library_names_spec='${libname}${release}.a $libname.a'
15863      soname_spec='${libname}${release}${shared_ext}$major'
15864    fi
15865    shlibpath_var=LIBPATH
15866  fi
15867  ;;
15868
15869amigaos*)
15870  library_names_spec='$libname.ixlibrary $libname.a'
15871  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15872  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'
15873  ;;
15874
15875beos*)
15876  library_names_spec='${libname}${shared_ext}'
15877  dynamic_linker="$host_os ld.so"
15878  shlibpath_var=LIBRARY_PATH
15879  ;;
15880
15881bsdi[45]*)
15882  version_type=linux
15883  need_version=no
15884  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15885  soname_spec='${libname}${release}${shared_ext}$major'
15886  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15887  shlibpath_var=LD_LIBRARY_PATH
15888  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15889  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15890  # the default ld.so.conf also contains /usr/contrib/lib and
15891  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15892  # libtool to hard-code these into programs
15893  ;;
15894
15895cygwin* | mingw* | pw32*)
15896  version_type=windows
15897  shrext_cmds=".dll"
15898  need_version=no
15899  need_lib_prefix=no
15900
15901  case $GCC,$host_os in
15902  yes,cygwin* | yes,mingw* | yes,pw32*)
15903    library_names_spec='$libname.dll.a'
15904    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15905    postinstall_cmds='base_file=`basename \${file}`~
15906      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15907      dldir=$destdir/`dirname \$dlpath`~
15908      test -d \$dldir || mkdir -p \$dldir~
15909      $install_prog $dir/$dlname \$dldir/$dlname~
15910      chmod a+x \$dldir/$dlname'
15911    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15912      dlpath=$dir/\$dldll~
15913       $rm \$dlpath'
15914    shlibpath_overrides_runpath=yes
15915
15916    case $host_os in
15917    cygwin*)
15918      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15919      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15920      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15921      ;;
15922    mingw*)
15923      # MinGW DLLs use traditional 'lib' prefix
15924      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15925      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15926      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15927        # It is most probably a Windows format PATH printed by
15928        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15929        # path with ; separators, and with drive letters. We can handle the
15930        # drive letters (cygwin fileutils understands them), so leave them,
15931        # especially as we might pass files found there to a mingw objdump,
15932        # which wouldn't understand a cygwinified path. Ahh.
15933        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15934      else
15935        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15936      fi
15937      ;;
15938    pw32*)
15939      # pw32 DLLs use 'pw' prefix rather than 'lib'
15940      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15941      ;;
15942    esac
15943    ;;
15944
15945  *)
15946    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15947    ;;
15948  esac
15949  dynamic_linker='Win32 ld.exe'
15950  # FIXME: first we should search . and the directory the executable is in
15951  shlibpath_var=PATH
15952  ;;
15953
15954darwin* | rhapsody*)
15955  dynamic_linker="$host_os dyld"
15956  version_type=darwin
15957  need_lib_prefix=no
15958  need_version=no
15959  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15960  soname_spec='${libname}${release}${major}$shared_ext'
15961  shlibpath_overrides_runpath=yes
15962  shlibpath_var=DYLD_LIBRARY_PATH
15963  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15964
15965  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15966  ;;
15967
15968dgux*)
15969  version_type=linux
15970  need_lib_prefix=no
15971  need_version=no
15972  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15973  soname_spec='${libname}${release}${shared_ext}$major'
15974  shlibpath_var=LD_LIBRARY_PATH
15975  ;;
15976
15977freebsd1*)
15978  dynamic_linker=no
15979  ;;
15980
15981freebsd* | dragonfly*)
15982  # DragonFly does not have aout.  When/if they implement a new
15983  # versioning mechanism, adjust this.
15984  if test -x /usr/bin/objformat; then
15985    objformat=`/usr/bin/objformat`
15986  else
15987    case $host_os in
15988    freebsd[123]*) objformat=aout ;;
15989    *) objformat=elf ;;
15990    esac
15991  fi
15992  version_type=freebsd-$objformat
15993  case $version_type in
15994    freebsd-elf*)
15995      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15996      need_version=no
15997      need_lib_prefix=no
15998      ;;
15999    freebsd-*)
16000      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16001      need_version=yes
16002      ;;
16003  esac
16004  shlibpath_var=LD_LIBRARY_PATH
16005  case $host_os in
16006  freebsd2*)
16007    shlibpath_overrides_runpath=yes
16008    ;;
16009  freebsd3.[01]* | freebsdelf3.[01]*)
16010    shlibpath_overrides_runpath=yes
16011    hardcode_into_libs=yes
16012    ;;
16013  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16014  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16015    shlibpath_overrides_runpath=no
16016    hardcode_into_libs=yes
16017    ;;
16018  *) # from 4.6 on, and DragonFly
16019    shlibpath_overrides_runpath=yes
16020    hardcode_into_libs=yes
16021    ;;
16022  esac
16023  ;;
16024
16025gnu*)
16026  version_type=linux
16027  need_lib_prefix=no
16028  need_version=no
16029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16030  soname_spec='${libname}${release}${shared_ext}$major'
16031  shlibpath_var=LD_LIBRARY_PATH
16032  hardcode_into_libs=yes
16033  ;;
16034
16035hpux9* | hpux10* | hpux11*)
16036  # Give a soname corresponding to the major version so that dld.sl refuses to
16037  # link against other versions.
16038  version_type=sunos
16039  need_lib_prefix=no
16040  need_version=no
16041  case $host_cpu in
16042  ia64*)
16043    shrext_cmds='.so'
16044    hardcode_into_libs=yes
16045    dynamic_linker="$host_os dld.so"
16046    shlibpath_var=LD_LIBRARY_PATH
16047    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16048    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16049    soname_spec='${libname}${release}${shared_ext}$major'
16050    if test "X$HPUX_IA64_MODE" = X32; then
16051      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16052    else
16053      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16054    fi
16055    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16056    ;;
16057   hppa*64*)
16058     shrext_cmds='.sl'
16059     hardcode_into_libs=yes
16060     dynamic_linker="$host_os dld.sl"
16061     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16062     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16063     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064     soname_spec='${libname}${release}${shared_ext}$major'
16065     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16066     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16067     ;;
16068   *)
16069    shrext_cmds='.sl'
16070    dynamic_linker="$host_os dld.sl"
16071    shlibpath_var=SHLIB_PATH
16072    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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    ;;
16076  esac
16077  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16078  postinstall_cmds='chmod 555 $lib'
16079  ;;
16080
16081interix[3-9]*)
16082  version_type=linux
16083  need_lib_prefix=no
16084  need_version=no
16085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16086  soname_spec='${libname}${release}${shared_ext}$major'
16087  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16088  shlibpath_var=LD_LIBRARY_PATH
16089  shlibpath_overrides_runpath=no
16090  hardcode_into_libs=yes
16091  ;;
16092
16093irix5* | irix6* | nonstopux*)
16094  case $host_os in
16095    nonstopux*) version_type=nonstopux ;;
16096    *)
16097	if test "$lt_cv_prog_gnu_ld" = yes; then
16098		version_type=linux
16099	else
16100		version_type=irix
16101	fi ;;
16102  esac
16103  need_lib_prefix=no
16104  need_version=no
16105  soname_spec='${libname}${release}${shared_ext}$major'
16106  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16107  case $host_os in
16108  irix5* | nonstopux*)
16109    libsuff= shlibsuff=
16110    ;;
16111  *)
16112    case $LD in # libtool.m4 will add one of these switches to LD
16113    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16114      libsuff= shlibsuff= libmagic=32-bit;;
16115    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16116      libsuff=32 shlibsuff=N32 libmagic=N32;;
16117    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16118      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16119    *) libsuff= shlibsuff= libmagic=never-match;;
16120    esac
16121    ;;
16122  esac
16123  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16124  shlibpath_overrides_runpath=no
16125  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16126  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16127  hardcode_into_libs=yes
16128  ;;
16129
16130# No shared lib support for Linux oldld, aout, or coff.
16131linux*oldld* | linux*aout* | linux*coff*)
16132  dynamic_linker=no
16133  ;;
16134
16135# This must be Linux ELF.
16136linux* | k*bsd*-gnu)
16137  version_type=linux
16138  need_lib_prefix=no
16139  need_version=no
16140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141  soname_spec='${libname}${release}${shared_ext}$major'
16142  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16143  shlibpath_var=LD_LIBRARY_PATH
16144  shlibpath_overrides_runpath=no
16145  # This implies no fast_install, which is unacceptable.
16146  # Some rework will be needed to allow for fast_install
16147  # before this can be enabled.
16148  hardcode_into_libs=yes
16149  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16150  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16151
16152  # Append ld.so.conf contents to the search path
16153  if test -f /etc/ld.so.conf; then
16154    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' ' '`
16155    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16156  fi
16157
16158  # We used to test for /lib/ld.so.1 and disable shared libraries on
16159  # powerpc, because MkLinux only supported shared libraries with the
16160  # GNU dynamic linker.  Since this was broken with cross compilers,
16161  # most powerpc-linux boxes support dynamic linking these days and
16162  # people can always --disable-shared, the test was removed, and we
16163  # assume the GNU/Linux dynamic linker is in use.
16164  dynamic_linker='GNU/Linux ld.so'
16165  ;;
16166
16167netbsd*)
16168  version_type=sunos
16169  need_lib_prefix=no
16170  need_version=no
16171  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16172    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16173    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16174    dynamic_linker='NetBSD (a.out) ld.so'
16175  else
16176    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16177    soname_spec='${libname}${release}${shared_ext}$major'
16178    dynamic_linker='NetBSD ld.elf_so'
16179  fi
16180  shlibpath_var=LD_LIBRARY_PATH
16181  shlibpath_overrides_runpath=yes
16182  hardcode_into_libs=yes
16183  ;;
16184
16185newsos6)
16186  version_type=linux
16187  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16188  shlibpath_var=LD_LIBRARY_PATH
16189  shlibpath_overrides_runpath=yes
16190  ;;
16191
16192nto-qnx*)
16193  version_type=linux
16194  need_lib_prefix=no
16195  need_version=no
16196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16197  soname_spec='${libname}${release}${shared_ext}$major'
16198  shlibpath_var=LD_LIBRARY_PATH
16199  shlibpath_overrides_runpath=yes
16200  ;;
16201
16202openbsd*)
16203  version_type=sunos
16204  sys_lib_dlsearch_path_spec="/usr/lib"
16205  need_lib_prefix=no
16206  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16207  case $host_os in
16208    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16209    *)                         need_version=no  ;;
16210  esac
16211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16212  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16213  shlibpath_var=LD_LIBRARY_PATH
16214  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16215    case $host_os in
16216      openbsd2.[89] | openbsd2.[89].*)
16217	shlibpath_overrides_runpath=no
16218	;;
16219      *)
16220	shlibpath_overrides_runpath=yes
16221	;;
16222      esac
16223  else
16224    shlibpath_overrides_runpath=yes
16225  fi
16226  ;;
16227
16228os2*)
16229  libname_spec='$name'
16230  shrext_cmds=".dll"
16231  need_lib_prefix=no
16232  library_names_spec='$libname${shared_ext} $libname.a'
16233  dynamic_linker='OS/2 ld.exe'
16234  shlibpath_var=LIBPATH
16235  ;;
16236
16237osf3* | osf4* | osf5*)
16238  version_type=osf
16239  need_lib_prefix=no
16240  need_version=no
16241  soname_spec='${libname}${release}${shared_ext}$major'
16242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16243  shlibpath_var=LD_LIBRARY_PATH
16244  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16245  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16246  ;;
16247
16248rdos*)
16249  dynamic_linker=no
16250  ;;
16251
16252solaris*)
16253  version_type=linux
16254  need_lib_prefix=no
16255  need_version=no
16256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16257  soname_spec='${libname}${release}${shared_ext}$major'
16258  shlibpath_var=LD_LIBRARY_PATH
16259  shlibpath_overrides_runpath=yes
16260  hardcode_into_libs=yes
16261  # ldd complains unless libraries are executable
16262  postinstall_cmds='chmod +x $lib'
16263  ;;
16264
16265sunos4*)
16266  version_type=sunos
16267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16268  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16269  shlibpath_var=LD_LIBRARY_PATH
16270  shlibpath_overrides_runpath=yes
16271  if test "$with_gnu_ld" = yes; then
16272    need_lib_prefix=no
16273  fi
16274  need_version=yes
16275  ;;
16276
16277sysv4 | sysv4.3*)
16278  version_type=linux
16279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16280  soname_spec='${libname}${release}${shared_ext}$major'
16281  shlibpath_var=LD_LIBRARY_PATH
16282  case $host_vendor in
16283    sni)
16284      shlibpath_overrides_runpath=no
16285      need_lib_prefix=no
16286      export_dynamic_flag_spec='${wl}-Blargedynsym'
16287      runpath_var=LD_RUN_PATH
16288      ;;
16289    siemens)
16290      need_lib_prefix=no
16291      ;;
16292    motorola)
16293      need_lib_prefix=no
16294      need_version=no
16295      shlibpath_overrides_runpath=no
16296      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16297      ;;
16298  esac
16299  ;;
16300
16301sysv4*MP*)
16302  if test -d /usr/nec ;then
16303    version_type=linux
16304    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16305    soname_spec='$libname${shared_ext}.$major'
16306    shlibpath_var=LD_LIBRARY_PATH
16307  fi
16308  ;;
16309
16310sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16311  version_type=freebsd-elf
16312  need_lib_prefix=no
16313  need_version=no
16314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16315  soname_spec='${libname}${release}${shared_ext}$major'
16316  shlibpath_var=LD_LIBRARY_PATH
16317  hardcode_into_libs=yes
16318  if test "$with_gnu_ld" = yes; then
16319    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16320    shlibpath_overrides_runpath=no
16321  else
16322    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16323    shlibpath_overrides_runpath=yes
16324    case $host_os in
16325      sco3.2v5*)
16326        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16327	;;
16328    esac
16329  fi
16330  sys_lib_dlsearch_path_spec='/usr/lib'
16331  ;;
16332
16333uts4*)
16334  version_type=linux
16335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16336  soname_spec='${libname}${release}${shared_ext}$major'
16337  shlibpath_var=LD_LIBRARY_PATH
16338  ;;
16339
16340*)
16341  dynamic_linker=no
16342  ;;
16343esac
16344{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16345$as_echo "$dynamic_linker" >&6; }
16346test "$dynamic_linker" = no && can_build_shared=no
16347
16348if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16349  $as_echo_n "(cached) " >&6
16350else
16351  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16352fi
16353
16354sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16355if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16356  $as_echo_n "(cached) " >&6
16357else
16358  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16359fi
16360
16361sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16362
16363variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16364if test "$GCC" = yes; then
16365  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16366fi
16367
16368{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16369$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16370hardcode_action_F77=
16371if test -n "$hardcode_libdir_flag_spec_F77" || \
16372   test -n "$runpath_var_F77" || \
16373   test "X$hardcode_automatic_F77" = "Xyes" ; then
16374
16375  # We can hardcode non-existant directories.
16376  if test "$hardcode_direct_F77" != no &&
16377     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16378     # have to relink, otherwise we might link with an installed library
16379     # when we should be linking with a yet-to-be-installed one
16380     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16381     test "$hardcode_minus_L_F77" != no; then
16382    # Linking always hardcodes the temporary library directory.
16383    hardcode_action_F77=relink
16384  else
16385    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16386    hardcode_action_F77=immediate
16387  fi
16388else
16389  # We cannot hardcode anything, or else we can only hardcode existing
16390  # directories.
16391  hardcode_action_F77=unsupported
16392fi
16393{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16394$as_echo "$hardcode_action_F77" >&6; }
16395
16396if test "$hardcode_action_F77" = relink; then
16397  # Fast installation is not supported
16398  enable_fast_install=no
16399elif test "$shlibpath_overrides_runpath" = yes ||
16400     test "$enable_shared" = no; then
16401  # Fast installation is not necessary
16402  enable_fast_install=needless
16403fi
16404
16405
16406# The else clause should only fire when bootstrapping the
16407# libtool distribution, otherwise you forgot to ship ltmain.sh
16408# with your package, and you will get complaints that there are
16409# no rules to generate ltmain.sh.
16410if test -f "$ltmain"; then
16411  # See if we are running on zsh, and set the options which allow our commands through
16412  # without removal of \ escapes.
16413  if test -n "${ZSH_VERSION+set}" ; then
16414    setopt NO_GLOB_SUBST
16415  fi
16416  # Now quote all the things that may contain metacharacters while being
16417  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16418  # variables and quote the copies for generation of the libtool script.
16419  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16420    SED SHELL STRIP \
16421    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16422    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16423    deplibs_check_method reload_flag reload_cmds need_locks \
16424    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16425    lt_cv_sys_global_symbol_to_c_name_address \
16426    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16427    old_postinstall_cmds old_postuninstall_cmds \
16428    compiler_F77 \
16429    CC_F77 \
16430    LD_F77 \
16431    lt_prog_compiler_wl_F77 \
16432    lt_prog_compiler_pic_F77 \
16433    lt_prog_compiler_static_F77 \
16434    lt_prog_compiler_no_builtin_flag_F77 \
16435    export_dynamic_flag_spec_F77 \
16436    thread_safe_flag_spec_F77 \
16437    whole_archive_flag_spec_F77 \
16438    enable_shared_with_static_runtimes_F77 \
16439    old_archive_cmds_F77 \
16440    old_archive_from_new_cmds_F77 \
16441    predep_objects_F77 \
16442    postdep_objects_F77 \
16443    predeps_F77 \
16444    postdeps_F77 \
16445    compiler_lib_search_path_F77 \
16446    compiler_lib_search_dirs_F77 \
16447    archive_cmds_F77 \
16448    archive_expsym_cmds_F77 \
16449    postinstall_cmds_F77 \
16450    postuninstall_cmds_F77 \
16451    old_archive_from_expsyms_cmds_F77 \
16452    allow_undefined_flag_F77 \
16453    no_undefined_flag_F77 \
16454    export_symbols_cmds_F77 \
16455    hardcode_libdir_flag_spec_F77 \
16456    hardcode_libdir_flag_spec_ld_F77 \
16457    hardcode_libdir_separator_F77 \
16458    hardcode_automatic_F77 \
16459    module_cmds_F77 \
16460    module_expsym_cmds_F77 \
16461    lt_cv_prog_compiler_c_o_F77 \
16462    fix_srcfile_path_F77 \
16463    exclude_expsyms_F77 \
16464    include_expsyms_F77; do
16465
16466    case $var in
16467    old_archive_cmds_F77 | \
16468    old_archive_from_new_cmds_F77 | \
16469    archive_cmds_F77 | \
16470    archive_expsym_cmds_F77 | \
16471    module_cmds_F77 | \
16472    module_expsym_cmds_F77 | \
16473    old_archive_from_expsyms_cmds_F77 | \
16474    export_symbols_cmds_F77 | \
16475    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16476    postinstall_cmds | postuninstall_cmds | \
16477    old_postinstall_cmds | old_postuninstall_cmds | \
16478    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16479      # Double-quote double-evaled strings.
16480      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16481      ;;
16482    *)
16483      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16484      ;;
16485    esac
16486  done
16487
16488  case $lt_echo in
16489  *'\$0 --fallback-echo"')
16490    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16491    ;;
16492  esac
16493
16494cfgfile="$ofile"
16495
16496  cat <<__EOF__ >> "$cfgfile"
16497# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16498
16499# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16500
16501# Shell to use when invoking shell scripts.
16502SHELL=$lt_SHELL
16503
16504# Whether or not to build shared libraries.
16505build_libtool_libs=$enable_shared
16506
16507# Whether or not to build static libraries.
16508build_old_libs=$enable_static
16509
16510# Whether or not to add -lc for building shared libraries.
16511build_libtool_need_lc=$archive_cmds_need_lc_F77
16512
16513# Whether or not to disallow shared libs when runtime libs are static
16514allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16515
16516# Whether or not to optimize for fast installation.
16517fast_install=$enable_fast_install
16518
16519# The host system.
16520host_alias=$host_alias
16521host=$host
16522host_os=$host_os
16523
16524# The build system.
16525build_alias=$build_alias
16526build=$build
16527build_os=$build_os
16528
16529# An echo program that does not interpret backslashes.
16530echo=$lt_echo
16531
16532# The archiver.
16533AR=$lt_AR
16534AR_FLAGS=$lt_AR_FLAGS
16535
16536# A C compiler.
16537LTCC=$lt_LTCC
16538
16539# LTCC compiler flags.
16540LTCFLAGS=$lt_LTCFLAGS
16541
16542# A language-specific compiler.
16543CC=$lt_compiler_F77
16544
16545# Is the compiler the GNU C compiler?
16546with_gcc=$GCC_F77
16547
16548# An ERE matcher.
16549EGREP=$lt_EGREP
16550
16551# The linker used to build libraries.
16552LD=$lt_LD_F77
16553
16554# Whether we need hard or soft links.
16555LN_S=$lt_LN_S
16556
16557# A BSD-compatible nm program.
16558NM=$lt_NM
16559
16560# A symbol stripping program
16561STRIP=$lt_STRIP
16562
16563# Used to examine libraries when file_magic_cmd begins "file"
16564MAGIC_CMD=$MAGIC_CMD
16565
16566# Used on cygwin: DLL creation program.
16567DLLTOOL="$DLLTOOL"
16568
16569# Used on cygwin: object dumper.
16570OBJDUMP="$OBJDUMP"
16571
16572# Used on cygwin: assembler.
16573AS="$AS"
16574
16575# The name of the directory that contains temporary libtool files.
16576objdir=$objdir
16577
16578# How to create reloadable object files.
16579reload_flag=$lt_reload_flag
16580reload_cmds=$lt_reload_cmds
16581
16582# How to pass a linker flag through the compiler.
16583wl=$lt_lt_prog_compiler_wl_F77
16584
16585# Object file suffix (normally "o").
16586objext="$ac_objext"
16587
16588# Old archive suffix (normally "a").
16589libext="$libext"
16590
16591# Shared library suffix (normally ".so").
16592shrext_cmds='$shrext_cmds'
16593
16594# Executable file suffix (normally "").
16595exeext="$exeext"
16596
16597# Additional compiler flags for building library objects.
16598pic_flag=$lt_lt_prog_compiler_pic_F77
16599pic_mode=$pic_mode
16600
16601# What is the maximum length of a command?
16602max_cmd_len=$lt_cv_sys_max_cmd_len
16603
16604# Does compiler simultaneously support -c and -o options?
16605compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16606
16607# Must we lock files when doing compilation?
16608need_locks=$lt_need_locks
16609
16610# Do we need the lib prefix for modules?
16611need_lib_prefix=$need_lib_prefix
16612
16613# Do we need a version for libraries?
16614need_version=$need_version
16615
16616# Whether dlopen is supported.
16617dlopen_support=$enable_dlopen
16618
16619# Whether dlopen of programs is supported.
16620dlopen_self=$enable_dlopen_self
16621
16622# Whether dlopen of statically linked programs is supported.
16623dlopen_self_static=$enable_dlopen_self_static
16624
16625# Compiler flag to prevent dynamic linking.
16626link_static_flag=$lt_lt_prog_compiler_static_F77
16627
16628# Compiler flag to turn off builtin functions.
16629no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16630
16631# Compiler flag to allow reflexive dlopens.
16632export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16633
16634# Compiler flag to generate shared objects directly from archives.
16635whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16636
16637# Compiler flag to generate thread-safe objects.
16638thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16639
16640# Library versioning type.
16641version_type=$version_type
16642
16643# Format of library name prefix.
16644libname_spec=$lt_libname_spec
16645
16646# List of archive names.  First name is the real one, the rest are links.
16647# The last name is the one that the linker finds with -lNAME.
16648library_names_spec=$lt_library_names_spec
16649
16650# The coded name of the library, if different from the real name.
16651soname_spec=$lt_soname_spec
16652
16653# Commands used to build and install an old-style archive.
16654RANLIB=$lt_RANLIB
16655old_archive_cmds=$lt_old_archive_cmds_F77
16656old_postinstall_cmds=$lt_old_postinstall_cmds
16657old_postuninstall_cmds=$lt_old_postuninstall_cmds
16658
16659# Create an old-style archive from a shared archive.
16660old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16661
16662# Create a temporary old-style archive to link instead of a shared archive.
16663old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16664
16665# Commands used to build and install a shared archive.
16666archive_cmds=$lt_archive_cmds_F77
16667archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16668postinstall_cmds=$lt_postinstall_cmds
16669postuninstall_cmds=$lt_postuninstall_cmds
16670
16671# Commands used to build a loadable module (assumed same as above if empty)
16672module_cmds=$lt_module_cmds_F77
16673module_expsym_cmds=$lt_module_expsym_cmds_F77
16674
16675# Commands to strip libraries.
16676old_striplib=$lt_old_striplib
16677striplib=$lt_striplib
16678
16679# Dependencies to place before the objects being linked to create a
16680# shared library.
16681predep_objects=$lt_predep_objects_F77
16682
16683# Dependencies to place after the objects being linked to create a
16684# shared library.
16685postdep_objects=$lt_postdep_objects_F77
16686
16687# Dependencies to place before the objects being linked to create a
16688# shared library.
16689predeps=$lt_predeps_F77
16690
16691# Dependencies to place after the objects being linked to create a
16692# shared library.
16693postdeps=$lt_postdeps_F77
16694
16695# The directories searched by this compiler when creating a shared
16696# library
16697compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16698
16699# The library search path used internally by the compiler when linking
16700# a shared library.
16701compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16702
16703# Method to check whether dependent libraries are shared objects.
16704deplibs_check_method=$lt_deplibs_check_method
16705
16706# Command to use when deplibs_check_method == file_magic.
16707file_magic_cmd=$lt_file_magic_cmd
16708
16709# Flag that allows shared libraries with undefined symbols to be built.
16710allow_undefined_flag=$lt_allow_undefined_flag_F77
16711
16712# Flag that forces no undefined symbols.
16713no_undefined_flag=$lt_no_undefined_flag_F77
16714
16715# Commands used to finish a libtool library installation in a directory.
16716finish_cmds=$lt_finish_cmds
16717
16718# Same as above, but a single script fragment to be evaled but not shown.
16719finish_eval=$lt_finish_eval
16720
16721# Take the output of nm and produce a listing of raw symbols and C names.
16722global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16723
16724# Transform the output of nm in a proper C declaration
16725global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16726
16727# Transform the output of nm in a C name address pair
16728global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16729
16730# This is the shared library runtime path variable.
16731runpath_var=$runpath_var
16732
16733# This is the shared library path variable.
16734shlibpath_var=$shlibpath_var
16735
16736# Is shlibpath searched before the hard-coded library search path?
16737shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16738
16739# How to hardcode a shared library path into an executable.
16740hardcode_action=$hardcode_action_F77
16741
16742# Whether we should hardcode library paths into libraries.
16743hardcode_into_libs=$hardcode_into_libs
16744
16745# Flag to hardcode \$libdir into a binary during linking.
16746# This must work even if \$libdir does not exist.
16747hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16748
16749# If ld is used when linking, flag to hardcode \$libdir into
16750# a binary during linking. This must work even if \$libdir does
16751# not exist.
16752hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16753
16754# Whether we need a single -rpath flag with a separated argument.
16755hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16756
16757# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16758# resulting binary.
16759hardcode_direct=$hardcode_direct_F77
16760
16761# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16762# resulting binary.
16763hardcode_minus_L=$hardcode_minus_L_F77
16764
16765# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16766# the resulting binary.
16767hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16768
16769# Set to yes if building a shared library automatically hardcodes DIR into the library
16770# and all subsequent libraries and executables linked against it.
16771hardcode_automatic=$hardcode_automatic_F77
16772
16773# Variables whose values should be saved in libtool wrapper scripts and
16774# restored at relink time.
16775variables_saved_for_relink="$variables_saved_for_relink"
16776
16777# Whether libtool must link a program against all its dependency libraries.
16778link_all_deplibs=$link_all_deplibs_F77
16779
16780# Compile-time system search path for libraries
16781sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16782
16783# Run-time system search path for libraries
16784sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16785
16786# Fix the shell variable \$srcfile for the compiler.
16787fix_srcfile_path=$lt_fix_srcfile_path
16788
16789# Set to yes if exported symbols are required.
16790always_export_symbols=$always_export_symbols_F77
16791
16792# The commands to list exported symbols.
16793export_symbols_cmds=$lt_export_symbols_cmds_F77
16794
16795# The commands to extract the exported symbol list from a shared archive.
16796extract_expsyms_cmds=$lt_extract_expsyms_cmds
16797
16798# Symbols that should not be listed in the preloaded symbols.
16799exclude_expsyms=$lt_exclude_expsyms_F77
16800
16801# Symbols that must always be exported.
16802include_expsyms=$lt_include_expsyms_F77
16803
16804# ### END LIBTOOL TAG CONFIG: $tagname
16805
16806__EOF__
16807
16808
16809else
16810  # If there is no Makefile yet, we rely on a make rule to execute
16811  # `config.status --recheck' to rerun these tests and create the
16812  # libtool script then.
16813  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16814  if test -f "$ltmain_in"; then
16815    test -f Makefile && make "$ltmain"
16816  fi
16817fi
16818
16819
16820ac_ext=c
16821ac_cpp='$CPP $CPPFLAGS'
16822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16824ac_compiler_gnu=$ac_cv_c_compiler_gnu
16825
16826CC="$lt_save_CC"
16827
16828	else
16829	  tagname=""
16830	fi
16831	;;
16832
16833      GCJ)
16834	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16835
16836
16837# Source file extension for Java test sources.
16838ac_ext=java
16839
16840# Object file extension for compiled Java test sources.
16841objext=o
16842objext_GCJ=$objext
16843
16844# Code to be used in simple compile tests
16845lt_simple_compile_test_code="class foo {}"
16846
16847# Code to be used in simple link tests
16848lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16849
16850# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16851
16852# If no C compiler was specified, use CC.
16853LTCC=${LTCC-"$CC"}
16854
16855# If no C compiler flags were specified, use CFLAGS.
16856LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16857
16858# Allow CC to be a program name with arguments.
16859compiler=$CC
16860
16861
16862# save warnings/boilerplate of simple test code
16863ac_outfile=conftest.$ac_objext
16864echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16865eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16866_lt_compiler_boilerplate=`cat conftest.err`
16867$rm conftest*
16868
16869ac_outfile=conftest.$ac_objext
16870echo "$lt_simple_link_test_code" >conftest.$ac_ext
16871eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16872_lt_linker_boilerplate=`cat conftest.err`
16873$rm -r conftest*
16874
16875
16876# Allow CC to be a program name with arguments.
16877lt_save_CC="$CC"
16878CC=${GCJ-"gcj"}
16879compiler=$CC
16880compiler_GCJ=$CC
16881for cc_temp in $compiler""; do
16882  case $cc_temp in
16883    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16884    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16885    \-*) ;;
16886    *) break;;
16887  esac
16888done
16889cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16890
16891
16892# GCJ did not exist at the time GCC didn't implicitly link libc in.
16893archive_cmds_need_lc_GCJ=no
16894
16895old_archive_cmds_GCJ=$old_archive_cmds
16896
16897
16898lt_prog_compiler_no_builtin_flag_GCJ=
16899
16900if test "$GCC" = yes; then
16901  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16902
16903
16904{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16905$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16906if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16907  $as_echo_n "(cached) " >&6
16908else
16909  lt_cv_prog_compiler_rtti_exceptions=no
16910  ac_outfile=conftest.$ac_objext
16911   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16912   lt_compiler_flag="-fno-rtti -fno-exceptions"
16913   # Insert the option either (1) after the last *FLAGS variable, or
16914   # (2) before a word containing "conftest.", or (3) at the end.
16915   # Note that $ac_compile itself does not contain backslashes and begins
16916   # with a dollar sign (not a hyphen), so the echo should work correctly.
16917   # The option is referenced via a variable to avoid confusing sed.
16918   lt_compile=`echo "$ac_compile" | $SED \
16919   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16920   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16921   -e 's:$: $lt_compiler_flag:'`
16922   (eval echo "\"\$as_me:16922: $lt_compile\"" >&5)
16923   (eval "$lt_compile" 2>conftest.err)
16924   ac_status=$?
16925   cat conftest.err >&5
16926   echo "$as_me:16926: \$? = $ac_status" >&5
16927   if (exit $ac_status) && test -s "$ac_outfile"; then
16928     # The compiler can only warn and ignore the option if not recognized
16929     # So say no if there are warnings other than the usual output.
16930     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16931     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16932     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16933       lt_cv_prog_compiler_rtti_exceptions=yes
16934     fi
16935   fi
16936   $rm conftest*
16937
16938fi
16939{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16940$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16941
16942if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16943    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16944else
16945    :
16946fi
16947
16948fi
16949
16950lt_prog_compiler_wl_GCJ=
16951lt_prog_compiler_pic_GCJ=
16952lt_prog_compiler_static_GCJ=
16953
16954{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16955$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16956
16957  if test "$GCC" = yes; then
16958    lt_prog_compiler_wl_GCJ='-Wl,'
16959    lt_prog_compiler_static_GCJ='-static'
16960
16961    case $host_os in
16962      aix*)
16963      # All AIX code is PIC.
16964      if test "$host_cpu" = ia64; then
16965	# AIX 5 now supports IA64 processor
16966	lt_prog_compiler_static_GCJ='-Bstatic'
16967      fi
16968      ;;
16969
16970    amigaos*)
16971      # FIXME: we need at least 68020 code to build shared libraries, but
16972      # adding the `-m68020' flag to GCC prevents building anything better,
16973      # like `-m68040'.
16974      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16975      ;;
16976
16977    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16978      # PIC is the default for these OSes.
16979      ;;
16980
16981    mingw* | cygwin* | pw32* | os2*)
16982      # This hack is so that the source file can tell whether it is being
16983      # built for inclusion in a dll (and should export symbols for example).
16984      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16985      # (--disable-auto-import) libraries
16986
16987      ;;
16988
16989    darwin* | rhapsody*)
16990      # PIC is the default on this platform
16991      # Common symbols not allowed in MH_DYLIB files
16992      lt_prog_compiler_pic_GCJ='-fno-common'
16993      ;;
16994
16995    interix[3-9]*)
16996      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16997      # Instead, we relocate shared libraries at runtime.
16998      ;;
16999
17000    msdosdjgpp*)
17001      # Just because we use GCC doesn't mean we suddenly get shared libraries
17002      # on systems that don't support them.
17003      lt_prog_compiler_can_build_shared_GCJ=no
17004      enable_shared=no
17005      ;;
17006
17007    sysv4*MP*)
17008      if test -d /usr/nec; then
17009	lt_prog_compiler_pic_GCJ=-Kconform_pic
17010      fi
17011      ;;
17012
17013    hpux*)
17014      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17015      # not for PA HP-UX.
17016      case $host_cpu in
17017      hppa*64*|ia64*)
17018	# +Z the default
17019	;;
17020      *)
17021	lt_prog_compiler_pic_GCJ='-fPIC'
17022	;;
17023      esac
17024      ;;
17025
17026    *)
17027      lt_prog_compiler_pic_GCJ='-fPIC'
17028      ;;
17029    esac
17030  else
17031    # PORTME Check for flag to pass linker flags through the system compiler.
17032    case $host_os in
17033    aix*)
17034      lt_prog_compiler_wl_GCJ='-Wl,'
17035      if test "$host_cpu" = ia64; then
17036	# AIX 5 now supports IA64 processor
17037	lt_prog_compiler_static_GCJ='-Bstatic'
17038      else
17039	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17040      fi
17041      ;;
17042      darwin*)
17043        # PIC is the default on this platform
17044        # Common symbols not allowed in MH_DYLIB files
17045       case $cc_basename in
17046         xlc*)
17047         lt_prog_compiler_pic_GCJ='-qnocommon'
17048         lt_prog_compiler_wl_GCJ='-Wl,'
17049         ;;
17050       esac
17051       ;;
17052
17053    mingw* | cygwin* | pw32* | os2*)
17054      # This hack is so that the source file can tell whether it is being
17055      # built for inclusion in a dll (and should export symbols for example).
17056
17057      ;;
17058
17059    hpux9* | hpux10* | hpux11*)
17060      lt_prog_compiler_wl_GCJ='-Wl,'
17061      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17062      # not for PA HP-UX.
17063      case $host_cpu in
17064      hppa*64*|ia64*)
17065	# +Z the default
17066	;;
17067      *)
17068	lt_prog_compiler_pic_GCJ='+Z'
17069	;;
17070      esac
17071      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17072      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17073      ;;
17074
17075    irix5* | irix6* | nonstopux*)
17076      lt_prog_compiler_wl_GCJ='-Wl,'
17077      # PIC (with -KPIC) is the default.
17078      lt_prog_compiler_static_GCJ='-non_shared'
17079      ;;
17080
17081    newsos6)
17082      lt_prog_compiler_pic_GCJ='-KPIC'
17083      lt_prog_compiler_static_GCJ='-Bstatic'
17084      ;;
17085
17086    linux* | k*bsd*-gnu)
17087      case $cc_basename in
17088      icc* | ecc*)
17089	lt_prog_compiler_wl_GCJ='-Wl,'
17090	lt_prog_compiler_pic_GCJ='-KPIC'
17091	lt_prog_compiler_static_GCJ='-static'
17092        ;;
17093      pgcc* | pgf77* | pgf90* | pgf95*)
17094        # Portland Group compilers (*not* the Pentium gcc compiler,
17095	# which looks to be a dead project)
17096	lt_prog_compiler_wl_GCJ='-Wl,'
17097	lt_prog_compiler_pic_GCJ='-fpic'
17098	lt_prog_compiler_static_GCJ='-Bstatic'
17099        ;;
17100      ccc*)
17101        lt_prog_compiler_wl_GCJ='-Wl,'
17102        # All Alpha code is PIC.
17103        lt_prog_compiler_static_GCJ='-non_shared'
17104        ;;
17105      *)
17106        case `$CC -V 2>&1 | sed 5q` in
17107	*Sun\ C*)
17108	  # Sun C 5.9
17109	  lt_prog_compiler_pic_GCJ='-KPIC'
17110	  lt_prog_compiler_static_GCJ='-Bstatic'
17111	  lt_prog_compiler_wl_GCJ='-Wl,'
17112	  ;;
17113	*Sun\ F*)
17114	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17115	  lt_prog_compiler_pic_GCJ='-KPIC'
17116	  lt_prog_compiler_static_GCJ='-Bstatic'
17117	  lt_prog_compiler_wl_GCJ=''
17118	  ;;
17119	esac
17120	;;
17121      esac
17122      ;;
17123
17124    osf3* | osf4* | osf5*)
17125      lt_prog_compiler_wl_GCJ='-Wl,'
17126      # All OSF/1 code is PIC.
17127      lt_prog_compiler_static_GCJ='-non_shared'
17128      ;;
17129
17130    rdos*)
17131      lt_prog_compiler_static_GCJ='-non_shared'
17132      ;;
17133
17134    solaris*)
17135      lt_prog_compiler_pic_GCJ='-KPIC'
17136      lt_prog_compiler_static_GCJ='-Bstatic'
17137      case $cc_basename in
17138      f77* | f90* | f95*)
17139	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17140      *)
17141	lt_prog_compiler_wl_GCJ='-Wl,';;
17142      esac
17143      ;;
17144
17145    sunos4*)
17146      lt_prog_compiler_wl_GCJ='-Qoption ld '
17147      lt_prog_compiler_pic_GCJ='-PIC'
17148      lt_prog_compiler_static_GCJ='-Bstatic'
17149      ;;
17150
17151    sysv4 | sysv4.2uw2* | sysv4.3*)
17152      lt_prog_compiler_wl_GCJ='-Wl,'
17153      lt_prog_compiler_pic_GCJ='-KPIC'
17154      lt_prog_compiler_static_GCJ='-Bstatic'
17155      ;;
17156
17157    sysv4*MP*)
17158      if test -d /usr/nec ;then
17159	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17160	lt_prog_compiler_static_GCJ='-Bstatic'
17161      fi
17162      ;;
17163
17164    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17165      lt_prog_compiler_wl_GCJ='-Wl,'
17166      lt_prog_compiler_pic_GCJ='-KPIC'
17167      lt_prog_compiler_static_GCJ='-Bstatic'
17168      ;;
17169
17170    unicos*)
17171      lt_prog_compiler_wl_GCJ='-Wl,'
17172      lt_prog_compiler_can_build_shared_GCJ=no
17173      ;;
17174
17175    uts4*)
17176      lt_prog_compiler_pic_GCJ='-pic'
17177      lt_prog_compiler_static_GCJ='-Bstatic'
17178      ;;
17179
17180    *)
17181      lt_prog_compiler_can_build_shared_GCJ=no
17182      ;;
17183    esac
17184  fi
17185
17186{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17187$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17188
17189#
17190# Check to make sure the PIC flag actually works.
17191#
17192if test -n "$lt_prog_compiler_pic_GCJ"; then
17193
17194{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17195$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17196if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17197  $as_echo_n "(cached) " >&6
17198else
17199  lt_cv_prog_compiler_pic_works_GCJ=no
17200  ac_outfile=conftest.$ac_objext
17201   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17202   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17203   # Insert the option either (1) after the last *FLAGS variable, or
17204   # (2) before a word containing "conftest.", or (3) at the end.
17205   # Note that $ac_compile itself does not contain backslashes and begins
17206   # with a dollar sign (not a hyphen), so the echo should work correctly.
17207   # The option is referenced via a variable to avoid confusing sed.
17208   lt_compile=`echo "$ac_compile" | $SED \
17209   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17210   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17211   -e 's:$: $lt_compiler_flag:'`
17212   (eval echo "\"\$as_me:17212: $lt_compile\"" >&5)
17213   (eval "$lt_compile" 2>conftest.err)
17214   ac_status=$?
17215   cat conftest.err >&5
17216   echo "$as_me:17216: \$? = $ac_status" >&5
17217   if (exit $ac_status) && test -s "$ac_outfile"; then
17218     # The compiler can only warn and ignore the option if not recognized
17219     # So say no if there are warnings other than the usual output.
17220     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17221     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17222     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17223       lt_cv_prog_compiler_pic_works_GCJ=yes
17224     fi
17225   fi
17226   $rm conftest*
17227
17228fi
17229{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17230$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17231
17232if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17233    case $lt_prog_compiler_pic_GCJ in
17234     "" | " "*) ;;
17235     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17236     esac
17237else
17238    lt_prog_compiler_pic_GCJ=
17239     lt_prog_compiler_can_build_shared_GCJ=no
17240fi
17241
17242fi
17243case $host_os in
17244  # For platforms which do not support PIC, -DPIC is meaningless:
17245  *djgpp*)
17246    lt_prog_compiler_pic_GCJ=
17247    ;;
17248  *)
17249    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17250    ;;
17251esac
17252
17253#
17254# Check to make sure the static flag actually works.
17255#
17256wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17257{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17258$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17259if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17260  $as_echo_n "(cached) " >&6
17261else
17262  lt_cv_prog_compiler_static_works_GCJ=no
17263   save_LDFLAGS="$LDFLAGS"
17264   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17265   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17266   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17267     # The linker can only warn and ignore the option if not recognized
17268     # So say no if there are warnings
17269     if test -s conftest.err; then
17270       # Append any errors to the config.log.
17271       cat conftest.err 1>&5
17272       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17273       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17274       if diff conftest.exp conftest.er2 >/dev/null; then
17275         lt_cv_prog_compiler_static_works_GCJ=yes
17276       fi
17277     else
17278       lt_cv_prog_compiler_static_works_GCJ=yes
17279     fi
17280   fi
17281   $rm -r conftest*
17282   LDFLAGS="$save_LDFLAGS"
17283
17284fi
17285{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17286$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17287
17288if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17289    :
17290else
17291    lt_prog_compiler_static_GCJ=
17292fi
17293
17294
17295{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17296$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17297if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17298  $as_echo_n "(cached) " >&6
17299else
17300  lt_cv_prog_compiler_c_o_GCJ=no
17301   $rm -r conftest 2>/dev/null
17302   mkdir conftest
17303   cd conftest
17304   mkdir out
17305   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17306
17307   lt_compiler_flag="-o out/conftest2.$ac_objext"
17308   # Insert the option either (1) after the last *FLAGS variable, or
17309   # (2) before a word containing "conftest.", or (3) at the end.
17310   # Note that $ac_compile itself does not contain backslashes and begins
17311   # with a dollar sign (not a hyphen), so the echo should work correctly.
17312   lt_compile=`echo "$ac_compile" | $SED \
17313   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17314   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17315   -e 's:$: $lt_compiler_flag:'`
17316   (eval echo "\"\$as_me:17316: $lt_compile\"" >&5)
17317   (eval "$lt_compile" 2>out/conftest.err)
17318   ac_status=$?
17319   cat out/conftest.err >&5
17320   echo "$as_me:17320: \$? = $ac_status" >&5
17321   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17322   then
17323     # The compiler can only warn and ignore the option if not recognized
17324     # So say no if there are warnings
17325     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17326     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17327     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17328       lt_cv_prog_compiler_c_o_GCJ=yes
17329     fi
17330   fi
17331   chmod u+w . 2>&5
17332   $rm conftest*
17333   # SGI C++ compiler will create directory out/ii_files/ for
17334   # template instantiation
17335   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17336   $rm out/* && rmdir out
17337   cd ..
17338   rmdir conftest
17339   $rm conftest*
17340
17341fi
17342{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17343$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17344
17345
17346hard_links="nottested"
17347if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17348  # do not overwrite the value of need_locks provided by the user
17349  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17350$as_echo_n "checking if we can lock with hard links... " >&6; }
17351  hard_links=yes
17352  $rm conftest*
17353  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17354  touch conftest.a
17355  ln conftest.a conftest.b 2>&5 || hard_links=no
17356  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17357  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17358$as_echo "$hard_links" >&6; }
17359  if test "$hard_links" = no; then
17360    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17361$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17362    need_locks=warn
17363  fi
17364else
17365  need_locks=no
17366fi
17367
17368{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17369$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17370
17371  runpath_var=
17372  allow_undefined_flag_GCJ=
17373  enable_shared_with_static_runtimes_GCJ=no
17374  archive_cmds_GCJ=
17375  archive_expsym_cmds_GCJ=
17376  old_archive_From_new_cmds_GCJ=
17377  old_archive_from_expsyms_cmds_GCJ=
17378  export_dynamic_flag_spec_GCJ=
17379  whole_archive_flag_spec_GCJ=
17380  thread_safe_flag_spec_GCJ=
17381  hardcode_libdir_flag_spec_GCJ=
17382  hardcode_libdir_flag_spec_ld_GCJ=
17383  hardcode_libdir_separator_GCJ=
17384  hardcode_direct_GCJ=no
17385  hardcode_minus_L_GCJ=no
17386  hardcode_shlibpath_var_GCJ=unsupported
17387  link_all_deplibs_GCJ=unknown
17388  hardcode_automatic_GCJ=no
17389  module_cmds_GCJ=
17390  module_expsym_cmds_GCJ=
17391  always_export_symbols_GCJ=no
17392  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17393  # include_expsyms should be a list of space-separated symbols to be *always*
17394  # included in the symbol list
17395  include_expsyms_GCJ=
17396  # exclude_expsyms can be an extended regexp of symbols to exclude
17397  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17398  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17399  # as well as any symbol that contains `d'.
17400  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17401  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17402  # platforms (ab)use it in PIC code, but their linkers get confused if
17403  # the symbol is explicitly referenced.  Since portable code cannot
17404  # rely on this symbol name, it's probably fine to never include it in
17405  # preloaded symbol tables.
17406  # Exclude shared library initialization/finalization symbols.
17407  extract_expsyms_cmds=
17408  # Just being paranoid about ensuring that cc_basename is set.
17409  for cc_temp in $compiler""; do
17410  case $cc_temp in
17411    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17412    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17413    \-*) ;;
17414    *) break;;
17415  esac
17416done
17417cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17418
17419  case $host_os in
17420  cygwin* | mingw* | pw32*)
17421    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17422    # When not using gcc, we currently assume that we are using
17423    # Microsoft Visual C++.
17424    if test "$GCC" != yes; then
17425      with_gnu_ld=no
17426    fi
17427    ;;
17428  interix*)
17429    # we just hope/assume this is gcc and not c89 (= MSVC++)
17430    with_gnu_ld=yes
17431    ;;
17432  openbsd*)
17433    with_gnu_ld=no
17434    ;;
17435  esac
17436
17437  ld_shlibs_GCJ=yes
17438  if test "$with_gnu_ld" = yes; then
17439    # If archive_cmds runs LD, not CC, wlarc should be empty
17440    wlarc='${wl}'
17441
17442    # Set some defaults for GNU ld with shared library support. These
17443    # are reset later if shared libraries are not supported. Putting them
17444    # here allows them to be overridden if necessary.
17445    runpath_var=LD_RUN_PATH
17446    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17447    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17448    # ancient GNU ld didn't support --whole-archive et. al.
17449    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17450	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17451      else
17452  	whole_archive_flag_spec_GCJ=
17453    fi
17454    supports_anon_versioning=no
17455    case `$LD -v 2>/dev/null` in
17456      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17457      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17458      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17459      *\ 2.11.*) ;; # other 2.11 versions
17460      *) supports_anon_versioning=yes ;;
17461    esac
17462
17463    # See if GNU ld supports shared libraries.
17464    case $host_os in
17465    aix[3-9]*)
17466      # On AIX/PPC, the GNU linker is very broken
17467      if test "$host_cpu" != ia64; then
17468	ld_shlibs_GCJ=no
17469	cat <<EOF 1>&2
17470
17471*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17472*** to be unable to reliably create shared libraries on AIX.
17473*** Therefore, libtool is disabling shared libraries support.  If you
17474*** really care for shared libraries, you may want to modify your PATH
17475*** so that a non-GNU linker is found, and then restart.
17476
17477EOF
17478      fi
17479      ;;
17480
17481    amigaos*)
17482      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)'
17483      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17484      hardcode_minus_L_GCJ=yes
17485
17486      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17487      # that the semantics of dynamic libraries on AmigaOS, at least up
17488      # to version 4, is to share data among multiple programs linked
17489      # with the same dynamic library.  Since this doesn't match the
17490      # behavior of shared libraries on other platforms, we can't use
17491      # them.
17492      ld_shlibs_GCJ=no
17493      ;;
17494
17495    beos*)
17496      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17497	allow_undefined_flag_GCJ=unsupported
17498	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17499	# support --undefined.  This deserves some investigation.  FIXME
17500	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17501      else
17502	ld_shlibs_GCJ=no
17503      fi
17504      ;;
17505
17506    cygwin* | mingw* | pw32*)
17507      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17508      # as there is no search path for DLLs.
17509      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17510      allow_undefined_flag_GCJ=unsupported
17511      always_export_symbols_GCJ=no
17512      enable_shared_with_static_runtimes_GCJ=yes
17513      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17514
17515      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17516        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17517	# If the export-symbols file already is a .def file (1st line
17518	# is EXPORTS), use it as is; otherwise, prepend...
17519	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17520	  cp $export_symbols $output_objdir/$soname.def;
17521	else
17522	  echo EXPORTS > $output_objdir/$soname.def;
17523	  cat $export_symbols >> $output_objdir/$soname.def;
17524	fi~
17525	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17526      else
17527	ld_shlibs_GCJ=no
17528      fi
17529      ;;
17530
17531    interix[3-9]*)
17532      hardcode_direct_GCJ=no
17533      hardcode_shlibpath_var_GCJ=no
17534      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17535      export_dynamic_flag_spec_GCJ='${wl}-E'
17536      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17537      # Instead, shared libraries are loaded at an image base (0x10000000 by
17538      # default) and relocated if they conflict, which is a slow very memory
17539      # consuming and fragmenting process.  To avoid this, we pick a random,
17540      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17541      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17542      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'
17543      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'
17544      ;;
17545
17546    gnu* | linux* | k*bsd*-gnu)
17547      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17548	tmp_addflag=
17549	case $cc_basename,$host_cpu in
17550	pgcc*)				# Portland Group C compiler
17551	  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'
17552	  tmp_addflag=' $pic_flag'
17553	  ;;
17554	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17555	  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'
17556	  tmp_addflag=' $pic_flag -Mnomain' ;;
17557	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17558	  tmp_addflag=' -i_dynamic' ;;
17559	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17560	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17561	ifc* | ifort*)			# Intel Fortran compiler
17562	  tmp_addflag=' -nofor_main' ;;
17563	esac
17564	case `$CC -V 2>&1 | sed 5q` in
17565	*Sun\ C*)			# Sun C 5.9
17566	  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'
17567	  tmp_sharedflag='-G' ;;
17568	*Sun\ F*)			# Sun Fortran 8.3
17569	  tmp_sharedflag='-G' ;;
17570	*)
17571	  tmp_sharedflag='-shared' ;;
17572	esac
17573	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17574
17575	if test $supports_anon_versioning = yes; then
17576	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17577  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17578  $echo "local: *; };" >> $output_objdir/$libname.ver~
17579	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17580	fi
17581      else
17582	ld_shlibs_GCJ=no
17583      fi
17584      ;;
17585
17586    netbsd*)
17587      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17588	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17589	wlarc=
17590      else
17591	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17592	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17593      fi
17594      ;;
17595
17596    solaris*)
17597      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17598	ld_shlibs_GCJ=no
17599	cat <<EOF 1>&2
17600
17601*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17602*** create shared libraries on Solaris systems.  Therefore, libtool
17603*** is disabling shared libraries support.  We urge you to upgrade GNU
17604*** binutils to release 2.9.1 or newer.  Another option is to modify
17605*** your PATH or compiler configuration so that the native linker is
17606*** used, and then restart.
17607
17608EOF
17609      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17610	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17611	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17612      else
17613	ld_shlibs_GCJ=no
17614      fi
17615      ;;
17616
17617    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17618      case `$LD -v 2>&1` in
17619        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17620	ld_shlibs_GCJ=no
17621	cat <<_LT_EOF 1>&2
17622
17623*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17624*** reliably create shared libraries on SCO systems.  Therefore, libtool
17625*** is disabling shared libraries support.  We urge you to upgrade GNU
17626*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17627*** your PATH or compiler configuration so that the native linker is
17628*** used, and then restart.
17629
17630_LT_EOF
17631	;;
17632	*)
17633	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17634	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17635	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17636	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17637	  else
17638	    ld_shlibs_GCJ=no
17639	  fi
17640	;;
17641      esac
17642      ;;
17643
17644    sunos4*)
17645      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17646      wlarc=
17647      hardcode_direct_GCJ=yes
17648      hardcode_shlibpath_var_GCJ=no
17649      ;;
17650
17651    *)
17652      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17653	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17654	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17655      else
17656	ld_shlibs_GCJ=no
17657      fi
17658      ;;
17659    esac
17660
17661    if test "$ld_shlibs_GCJ" = no; then
17662      runpath_var=
17663      hardcode_libdir_flag_spec_GCJ=
17664      export_dynamic_flag_spec_GCJ=
17665      whole_archive_flag_spec_GCJ=
17666    fi
17667  else
17668    # PORTME fill in a description of your system's linker (not GNU ld)
17669    case $host_os in
17670    aix3*)
17671      allow_undefined_flag_GCJ=unsupported
17672      always_export_symbols_GCJ=yes
17673      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'
17674      # Note: this linker hardcodes the directories in LIBPATH if there
17675      # are no directories specified by -L.
17676      hardcode_minus_L_GCJ=yes
17677      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17678	# Neither direct hardcoding nor static linking is supported with a
17679	# broken collect2.
17680	hardcode_direct_GCJ=unsupported
17681      fi
17682      ;;
17683
17684    aix[4-9]*)
17685      if test "$host_cpu" = ia64; then
17686	# On IA64, the linker does run time linking by default, so we don't
17687	# have to do anything special.
17688	aix_use_runtimelinking=no
17689	exp_sym_flag='-Bexport'
17690	no_entry_flag=""
17691      else
17692	# If we're using GNU nm, then we don't want the "-C" option.
17693	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17694	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17695	  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'
17696	else
17697	  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'
17698	fi
17699	aix_use_runtimelinking=no
17700
17701	# Test if we are trying to use run time linking or normal
17702	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17703	# need to do runtime linking.
17704	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17705	  for ld_flag in $LDFLAGS; do
17706  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17707  	    aix_use_runtimelinking=yes
17708  	    break
17709  	  fi
17710	  done
17711	  ;;
17712	esac
17713
17714	exp_sym_flag='-bexport'
17715	no_entry_flag='-bnoentry'
17716      fi
17717
17718      # When large executables or shared objects are built, AIX ld can
17719      # have problems creating the table of contents.  If linking a library
17720      # or program results in "error TOC overflow" add -mminimal-toc to
17721      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17722      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17723
17724      archive_cmds_GCJ=''
17725      hardcode_direct_GCJ=yes
17726      hardcode_libdir_separator_GCJ=':'
17727      link_all_deplibs_GCJ=yes
17728
17729      if test "$GCC" = yes; then
17730	case $host_os in aix4.[012]|aix4.[012].*)
17731	# We only want to do this on AIX 4.2 and lower, the check
17732	# below for broken collect2 doesn't work under 4.3+
17733	  collect2name=`${CC} -print-prog-name=collect2`
17734	  if test -f "$collect2name" && \
17735  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17736	  then
17737  	  # We have reworked collect2
17738  	  :
17739	  else
17740  	  # We have old collect2
17741  	  hardcode_direct_GCJ=unsupported
17742  	  # It fails to find uninstalled libraries when the uninstalled
17743  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17744  	  # to unsupported forces relinking
17745  	  hardcode_minus_L_GCJ=yes
17746  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17747  	  hardcode_libdir_separator_GCJ=
17748	  fi
17749	  ;;
17750	esac
17751	shared_flag='-shared'
17752	if test "$aix_use_runtimelinking" = yes; then
17753	  shared_flag="$shared_flag "'${wl}-G'
17754	fi
17755      else
17756	# not using gcc
17757	if test "$host_cpu" = ia64; then
17758  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17759  	# chokes on -Wl,-G. The following line is correct:
17760	  shared_flag='-G'
17761	else
17762	  if test "$aix_use_runtimelinking" = yes; then
17763	    shared_flag='${wl}-G'
17764	  else
17765	    shared_flag='${wl}-bM:SRE'
17766	  fi
17767	fi
17768      fi
17769
17770      # It seems that -bexpall does not export symbols beginning with
17771      # underscore (_), so it is better to generate a list of symbols to export.
17772      always_export_symbols_GCJ=yes
17773      if test "$aix_use_runtimelinking" = yes; then
17774	# Warning - without using the other runtime loading flags (-brtl),
17775	# -berok will link without error, but may produce a broken library.
17776	allow_undefined_flag_GCJ='-berok'
17777       # Determine the default libpath from the value encoded in an empty executable.
17778       cat >conftest.$ac_ext <<_ACEOF
17779/* confdefs.h.  */
17780_ACEOF
17781cat confdefs.h >>conftest.$ac_ext
17782cat >>conftest.$ac_ext <<_ACEOF
17783/* end confdefs.h.  */
17784
17785int
17786main ()
17787{
17788
17789  ;
17790  return 0;
17791}
17792_ACEOF
17793rm -f conftest.$ac_objext conftest$ac_exeext
17794if { (ac_try="$ac_link"
17795case "(($ac_try" in
17796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797  *) ac_try_echo=$ac_try;;
17798esac
17799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17800$as_echo "$ac_try_echo") >&5
17801  (eval "$ac_link") 2>conftest.er1
17802  ac_status=$?
17803  grep -v '^ *+' conftest.er1 >conftest.err
17804  rm -f conftest.er1
17805  cat conftest.err >&5
17806  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807  (exit $ac_status); } && {
17808	 test -z "$ac_c_werror_flag" ||
17809	 test ! -s conftest.err
17810       } && test -s conftest$ac_exeext && {
17811	 test "$cross_compiling" = yes ||
17812	 $as_test_x conftest$ac_exeext
17813       }; then
17814
17815lt_aix_libpath_sed='
17816    /Import File Strings/,/^$/ {
17817	/^0/ {
17818	    s/^0  *\(.*\)$/\1/
17819	    p
17820	}
17821    }'
17822aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17823# Check for a 64-bit object if we didn't find anything.
17824if test -z "$aix_libpath"; then
17825  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17826fi
17827else
17828  $as_echo "$as_me: failed program was:" >&5
17829sed 's/^/| /' conftest.$ac_ext >&5
17830
17831
17832fi
17833
17834rm -rf conftest.dSYM
17835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17836      conftest$ac_exeext conftest.$ac_ext
17837if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17838
17839       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17840	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"
17841       else
17842	if test "$host_cpu" = ia64; then
17843	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17844	  allow_undefined_flag_GCJ="-z nodefs"
17845	  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"
17846	else
17847	 # Determine the default libpath from the value encoded in an empty executable.
17848	 cat >conftest.$ac_ext <<_ACEOF
17849/* confdefs.h.  */
17850_ACEOF
17851cat confdefs.h >>conftest.$ac_ext
17852cat >>conftest.$ac_ext <<_ACEOF
17853/* end confdefs.h.  */
17854
17855int
17856main ()
17857{
17858
17859  ;
17860  return 0;
17861}
17862_ACEOF
17863rm -f conftest.$ac_objext conftest$ac_exeext
17864if { (ac_try="$ac_link"
17865case "(($ac_try" in
17866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867  *) ac_try_echo=$ac_try;;
17868esac
17869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17870$as_echo "$ac_try_echo") >&5
17871  (eval "$ac_link") 2>conftest.er1
17872  ac_status=$?
17873  grep -v '^ *+' conftest.er1 >conftest.err
17874  rm -f conftest.er1
17875  cat conftest.err >&5
17876  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877  (exit $ac_status); } && {
17878	 test -z "$ac_c_werror_flag" ||
17879	 test ! -s conftest.err
17880       } && test -s conftest$ac_exeext && {
17881	 test "$cross_compiling" = yes ||
17882	 $as_test_x conftest$ac_exeext
17883       }; then
17884
17885lt_aix_libpath_sed='
17886    /Import File Strings/,/^$/ {
17887	/^0/ {
17888	    s/^0  *\(.*\)$/\1/
17889	    p
17890	}
17891    }'
17892aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17893# Check for a 64-bit object if we didn't find anything.
17894if test -z "$aix_libpath"; then
17895  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17896fi
17897else
17898  $as_echo "$as_me: failed program was:" >&5
17899sed 's/^/| /' conftest.$ac_ext >&5
17900
17901
17902fi
17903
17904rm -rf conftest.dSYM
17905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17906      conftest$ac_exeext conftest.$ac_ext
17907if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17908
17909	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17910	  # Warning - without using the other run time loading flags,
17911	  # -berok will link without error, but may produce a broken library.
17912	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17913	  allow_undefined_flag_GCJ=' ${wl}-berok'
17914	  # Exported symbols can be pulled into shared objects from archives
17915	  whole_archive_flag_spec_GCJ='$convenience'
17916	  archive_cmds_need_lc_GCJ=yes
17917	  # This is similar to how AIX traditionally builds its shared libraries.
17918	  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'
17919	fi
17920      fi
17921      ;;
17922
17923    amigaos*)
17924      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)'
17925      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17926      hardcode_minus_L_GCJ=yes
17927      # see comment about different semantics on the GNU ld section
17928      ld_shlibs_GCJ=no
17929      ;;
17930
17931    bsdi[45]*)
17932      export_dynamic_flag_spec_GCJ=-rdynamic
17933      ;;
17934
17935    cygwin* | mingw* | pw32*)
17936      # When not using gcc, we currently assume that we are using
17937      # Microsoft Visual C++.
17938      # hardcode_libdir_flag_spec is actually meaningless, as there is
17939      # no search path for DLLs.
17940      hardcode_libdir_flag_spec_GCJ=' '
17941      allow_undefined_flag_GCJ=unsupported
17942      # Tell ltmain to make .lib files, not .a files.
17943      libext=lib
17944      # Tell ltmain to make .dll files, not .so files.
17945      shrext_cmds=".dll"
17946      # FIXME: Setting linknames here is a bad hack.
17947      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17948      # The linker will automatically build a .lib file if we build a DLL.
17949      old_archive_From_new_cmds_GCJ='true'
17950      # FIXME: Should let the user specify the lib program.
17951      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17952      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17953      enable_shared_with_static_runtimes_GCJ=yes
17954      ;;
17955
17956    darwin* | rhapsody*)
17957      case $host_os in
17958        rhapsody* | darwin1.[012])
17959         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17960         ;;
17961       *) # Darwin 1.3 on
17962         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17963           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17964         else
17965           case ${MACOSX_DEPLOYMENT_TARGET} in
17966             10.[012])
17967               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17968               ;;
17969             10.*)
17970               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17971               ;;
17972           esac
17973         fi
17974         ;;
17975      esac
17976      archive_cmds_need_lc_GCJ=no
17977      hardcode_direct_GCJ=no
17978      hardcode_automatic_GCJ=yes
17979      hardcode_shlibpath_var_GCJ=unsupported
17980      whole_archive_flag_spec_GCJ=''
17981      link_all_deplibs_GCJ=yes
17982    if test "$GCC" = yes ; then
17983    	output_verbose_link_cmd='echo'
17984        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}"
17985        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17986        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}"
17987        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}"
17988    else
17989      case $cc_basename in
17990        xlc*)
17991         output_verbose_link_cmd='echo'
17992         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17993         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17994          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17995         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}'
17996          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}'
17997          ;;
17998       *)
17999         ld_shlibs_GCJ=no
18000          ;;
18001      esac
18002    fi
18003      ;;
18004
18005    dgux*)
18006      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18007      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18008      hardcode_shlibpath_var_GCJ=no
18009      ;;
18010
18011    freebsd1*)
18012      ld_shlibs_GCJ=no
18013      ;;
18014
18015    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18016    # support.  Future versions do this automatically, but an explicit c++rt0.o
18017    # does not break anything, and helps significantly (at the cost of a little
18018    # extra space).
18019    freebsd2.2*)
18020      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18021      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18022      hardcode_direct_GCJ=yes
18023      hardcode_shlibpath_var_GCJ=no
18024      ;;
18025
18026    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18027    freebsd2*)
18028      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18029      hardcode_direct_GCJ=yes
18030      hardcode_minus_L_GCJ=yes
18031      hardcode_shlibpath_var_GCJ=no
18032      ;;
18033
18034    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18035    freebsd* | dragonfly*)
18036      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18037      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18038      hardcode_direct_GCJ=yes
18039      hardcode_shlibpath_var_GCJ=no
18040      ;;
18041
18042    hpux9*)
18043      if test "$GCC" = yes; then
18044	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'
18045      else
18046	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'
18047      fi
18048      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18049      hardcode_libdir_separator_GCJ=:
18050      hardcode_direct_GCJ=yes
18051
18052      # hardcode_minus_L: Not really in the search PATH,
18053      # but as the default location of the library.
18054      hardcode_minus_L_GCJ=yes
18055      export_dynamic_flag_spec_GCJ='${wl}-E'
18056      ;;
18057
18058    hpux10*)
18059      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18060	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18061      else
18062	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18063      fi
18064      if test "$with_gnu_ld" = no; then
18065	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18066	hardcode_libdir_separator_GCJ=:
18067
18068	hardcode_direct_GCJ=yes
18069	export_dynamic_flag_spec_GCJ='${wl}-E'
18070
18071	# hardcode_minus_L: Not really in the search PATH,
18072	# but as the default location of the library.
18073	hardcode_minus_L_GCJ=yes
18074      fi
18075      ;;
18076
18077    hpux11*)
18078      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18079	case $host_cpu in
18080	hppa*64*)
18081	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18082	  ;;
18083	ia64*)
18084	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18085	  ;;
18086	*)
18087	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18088	  ;;
18089	esac
18090      else
18091	case $host_cpu in
18092	hppa*64*)
18093	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18094	  ;;
18095	ia64*)
18096	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18097	  ;;
18098	*)
18099	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18100	  ;;
18101	esac
18102      fi
18103      if test "$with_gnu_ld" = no; then
18104	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18105	hardcode_libdir_separator_GCJ=:
18106
18107	case $host_cpu in
18108	hppa*64*|ia64*)
18109	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18110	  hardcode_direct_GCJ=no
18111	  hardcode_shlibpath_var_GCJ=no
18112	  ;;
18113	*)
18114	  hardcode_direct_GCJ=yes
18115	  export_dynamic_flag_spec_GCJ='${wl}-E'
18116
18117	  # hardcode_minus_L: Not really in the search PATH,
18118	  # but as the default location of the library.
18119	  hardcode_minus_L_GCJ=yes
18120	  ;;
18121	esac
18122      fi
18123      ;;
18124
18125    irix5* | irix6* | nonstopux*)
18126      if test "$GCC" = yes; then
18127	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'
18128      else
18129	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'
18130	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18131      fi
18132      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18133      hardcode_libdir_separator_GCJ=:
18134      link_all_deplibs_GCJ=yes
18135      ;;
18136
18137    netbsd*)
18138      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18139	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18140      else
18141	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18142      fi
18143      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18144      hardcode_direct_GCJ=yes
18145      hardcode_shlibpath_var_GCJ=no
18146      ;;
18147
18148    newsos6)
18149      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18150      hardcode_direct_GCJ=yes
18151      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18152      hardcode_libdir_separator_GCJ=:
18153      hardcode_shlibpath_var_GCJ=no
18154      ;;
18155
18156    openbsd*)
18157      if test -f /usr/libexec/ld.so; then
18158	hardcode_direct_GCJ=yes
18159	hardcode_shlibpath_var_GCJ=no
18160	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18161	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18162	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18163	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18164	  export_dynamic_flag_spec_GCJ='${wl}-E'
18165	else
18166	  case $host_os in
18167	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18168	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18169	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18170	     ;;
18171	   *)
18172	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18173	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18174	     ;;
18175	  esac
18176        fi
18177      else
18178	ld_shlibs_GCJ=no
18179      fi
18180      ;;
18181
18182    os2*)
18183      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18184      hardcode_minus_L_GCJ=yes
18185      allow_undefined_flag_GCJ=unsupported
18186      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'
18187      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18188      ;;
18189
18190    osf3*)
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18194      else
18195	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18196	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'
18197      fi
18198      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18199      hardcode_libdir_separator_GCJ=:
18200      ;;
18201
18202    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18203      if test "$GCC" = yes; then
18204	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18205	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'
18206	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18207      else
18208	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18209	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'
18210	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~
18211	$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'
18212
18213	# Both c and cxx compiler support -rpath directly
18214	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18215      fi
18216      hardcode_libdir_separator_GCJ=:
18217      ;;
18218
18219    solaris*)
18220      no_undefined_flag_GCJ=' -z text'
18221      if test "$GCC" = yes; then
18222	wlarc='${wl}'
18223	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18224	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18225	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18226      else
18227	wlarc=''
18228	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18229	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18230  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18231      fi
18232      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18233      hardcode_shlibpath_var_GCJ=no
18234      case $host_os in
18235      solaris2.[0-5] | solaris2.[0-5].*) ;;
18236      *)
18237	# The compiler driver will combine and reorder linker options,
18238	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18239	# but is careful enough not to reorder.
18240 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18241	if test "$GCC" = yes; then
18242	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18243	else
18244	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18245	fi
18246	;;
18247      esac
18248      link_all_deplibs_GCJ=yes
18249      ;;
18250
18251    sunos4*)
18252      if test "x$host_vendor" = xsequent; then
18253	# Use $CC to link under sequent, because it throws in some extra .o
18254	# files that make .init and .fini sections work.
18255	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18256      else
18257	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18258      fi
18259      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18260      hardcode_direct_GCJ=yes
18261      hardcode_minus_L_GCJ=yes
18262      hardcode_shlibpath_var_GCJ=no
18263      ;;
18264
18265    sysv4)
18266      case $host_vendor in
18267	sni)
18268	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18269	  hardcode_direct_GCJ=yes # is this really true???
18270	;;
18271	siemens)
18272	  ## LD is ld it makes a PLAMLIB
18273	  ## CC just makes a GrossModule.
18274	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18275	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18276	  hardcode_direct_GCJ=no
18277        ;;
18278	motorola)
18279	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18280	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18281	;;
18282      esac
18283      runpath_var='LD_RUN_PATH'
18284      hardcode_shlibpath_var_GCJ=no
18285      ;;
18286
18287    sysv4.3*)
18288      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18289      hardcode_shlibpath_var_GCJ=no
18290      export_dynamic_flag_spec_GCJ='-Bexport'
18291      ;;
18292
18293    sysv4*MP*)
18294      if test -d /usr/nec; then
18295	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18296	hardcode_shlibpath_var_GCJ=no
18297	runpath_var=LD_RUN_PATH
18298	hardcode_runpath_var=yes
18299	ld_shlibs_GCJ=yes
18300      fi
18301      ;;
18302
18303    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18304      no_undefined_flag_GCJ='${wl}-z,text'
18305      archive_cmds_need_lc_GCJ=no
18306      hardcode_shlibpath_var_GCJ=no
18307      runpath_var='LD_RUN_PATH'
18308
18309      if test "$GCC" = yes; then
18310	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18311	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18312      else
18313	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18314	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18315      fi
18316      ;;
18317
18318    sysv5* | sco3.2v5* | sco5v6*)
18319      # Note: We can NOT use -z defs as we might desire, because we do not
18320      # link with -lc, and that would cause any symbols used from libc to
18321      # always be unresolved, which means just about no library would
18322      # ever link correctly.  If we're not using GNU ld we use -z text
18323      # though, which does catch some bad symbols but isn't as heavy-handed
18324      # as -z defs.
18325      no_undefined_flag_GCJ='${wl}-z,text'
18326      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18327      archive_cmds_need_lc_GCJ=no
18328      hardcode_shlibpath_var_GCJ=no
18329      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18330      hardcode_libdir_separator_GCJ=':'
18331      link_all_deplibs_GCJ=yes
18332      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18333      runpath_var='LD_RUN_PATH'
18334
18335      if test "$GCC" = yes; then
18336	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18337	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18338      else
18339	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18340	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18341      fi
18342      ;;
18343
18344    uts4*)
18345      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18346      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18347      hardcode_shlibpath_var_GCJ=no
18348      ;;
18349
18350    *)
18351      ld_shlibs_GCJ=no
18352      ;;
18353    esac
18354  fi
18355
18356{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18357$as_echo "$ld_shlibs_GCJ" >&6; }
18358test "$ld_shlibs_GCJ" = no && can_build_shared=no
18359
18360#
18361# Do we need to explicitly link libc?
18362#
18363case "x$archive_cmds_need_lc_GCJ" in
18364x|xyes)
18365  # Assume -lc should be added
18366  archive_cmds_need_lc_GCJ=yes
18367
18368  if test "$enable_shared" = yes && test "$GCC" = yes; then
18369    case $archive_cmds_GCJ in
18370    *'~'*)
18371      # FIXME: we may have to deal with multi-command sequences.
18372      ;;
18373    '$CC '*)
18374      # Test whether the compiler implicitly links with -lc since on some
18375      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18376      # to ld, don't add -lc before -lgcc.
18377      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18378$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18379      $rm conftest*
18380      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18381
18382      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18383  (eval $ac_compile) 2>&5
18384  ac_status=$?
18385  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386  (exit $ac_status); } 2>conftest.err; then
18387        soname=conftest
18388        lib=conftest
18389        libobjs=conftest.$ac_objext
18390        deplibs=
18391        wl=$lt_prog_compiler_wl_GCJ
18392	pic_flag=$lt_prog_compiler_pic_GCJ
18393        compiler_flags=-v
18394        linker_flags=-v
18395        verstring=
18396        output_objdir=.
18397        libname=conftest
18398        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18399        allow_undefined_flag_GCJ=
18400        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18401  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18402  ac_status=$?
18403  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404  (exit $ac_status); }
18405        then
18406	  archive_cmds_need_lc_GCJ=no
18407        else
18408	  archive_cmds_need_lc_GCJ=yes
18409        fi
18410        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18411      else
18412        cat conftest.err 1>&5
18413      fi
18414      $rm conftest*
18415      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18416$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18417      ;;
18418    esac
18419  fi
18420  ;;
18421esac
18422
18423{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18424$as_echo_n "checking dynamic linker characteristics... " >&6; }
18425library_names_spec=
18426libname_spec='lib$name'
18427soname_spec=
18428shrext_cmds=".so"
18429postinstall_cmds=
18430postuninstall_cmds=
18431finish_cmds=
18432finish_eval=
18433shlibpath_var=
18434shlibpath_overrides_runpath=unknown
18435version_type=none
18436dynamic_linker="$host_os ld.so"
18437sys_lib_dlsearch_path_spec="/lib /usr/lib"
18438
18439need_lib_prefix=unknown
18440hardcode_into_libs=no
18441
18442# when you set need_version to no, make sure it does not cause -set_version
18443# flags to be left without arguments
18444need_version=unknown
18445
18446case $host_os in
18447aix3*)
18448  version_type=linux
18449  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18450  shlibpath_var=LIBPATH
18451
18452  # AIX 3 has no versioning support, so we append a major version to the name.
18453  soname_spec='${libname}${release}${shared_ext}$major'
18454  ;;
18455
18456aix[4-9]*)
18457  version_type=linux
18458  need_lib_prefix=no
18459  need_version=no
18460  hardcode_into_libs=yes
18461  if test "$host_cpu" = ia64; then
18462    # AIX 5 supports IA64
18463    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18464    shlibpath_var=LD_LIBRARY_PATH
18465  else
18466    # With GCC up to 2.95.x, collect2 would create an import file
18467    # for dependence libraries.  The import file would start with
18468    # the line `#! .'.  This would cause the generated library to
18469    # depend on `.', always an invalid library.  This was fixed in
18470    # development snapshots of GCC prior to 3.0.
18471    case $host_os in
18472      aix4 | aix4.[01] | aix4.[01].*)
18473      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18474	   echo ' yes '
18475	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18476	:
18477      else
18478	can_build_shared=no
18479      fi
18480      ;;
18481    esac
18482    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18483    # soname into executable. Probably we can add versioning support to
18484    # collect2, so additional links can be useful in future.
18485    if test "$aix_use_runtimelinking" = yes; then
18486      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18487      # instead of lib<name>.a to let people know that these are not
18488      # typical AIX shared libraries.
18489      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18490    else
18491      # We preserve .a as extension for shared libraries through AIX4.2
18492      # and later when we are not doing run time linking.
18493      library_names_spec='${libname}${release}.a $libname.a'
18494      soname_spec='${libname}${release}${shared_ext}$major'
18495    fi
18496    shlibpath_var=LIBPATH
18497  fi
18498  ;;
18499
18500amigaos*)
18501  library_names_spec='$libname.ixlibrary $libname.a'
18502  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18503  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'
18504  ;;
18505
18506beos*)
18507  library_names_spec='${libname}${shared_ext}'
18508  dynamic_linker="$host_os ld.so"
18509  shlibpath_var=LIBRARY_PATH
18510  ;;
18511
18512bsdi[45]*)
18513  version_type=linux
18514  need_version=no
18515  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18516  soname_spec='${libname}${release}${shared_ext}$major'
18517  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18518  shlibpath_var=LD_LIBRARY_PATH
18519  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18520  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18521  # the default ld.so.conf also contains /usr/contrib/lib and
18522  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18523  # libtool to hard-code these into programs
18524  ;;
18525
18526cygwin* | mingw* | pw32*)
18527  version_type=windows
18528  shrext_cmds=".dll"
18529  need_version=no
18530  need_lib_prefix=no
18531
18532  case $GCC,$host_os in
18533  yes,cygwin* | yes,mingw* | yes,pw32*)
18534    library_names_spec='$libname.dll.a'
18535    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18536    postinstall_cmds='base_file=`basename \${file}`~
18537      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18538      dldir=$destdir/`dirname \$dlpath`~
18539      test -d \$dldir || mkdir -p \$dldir~
18540      $install_prog $dir/$dlname \$dldir/$dlname~
18541      chmod a+x \$dldir/$dlname'
18542    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18543      dlpath=$dir/\$dldll~
18544       $rm \$dlpath'
18545    shlibpath_overrides_runpath=yes
18546
18547    case $host_os in
18548    cygwin*)
18549      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18550      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18551      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18552      ;;
18553    mingw*)
18554      # MinGW DLLs use traditional 'lib' prefix
18555      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18556      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18557      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18558        # It is most probably a Windows format PATH printed by
18559        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18560        # path with ; separators, and with drive letters. We can handle the
18561        # drive letters (cygwin fileutils understands them), so leave them,
18562        # especially as we might pass files found there to a mingw objdump,
18563        # which wouldn't understand a cygwinified path. Ahh.
18564        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18565      else
18566        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18567      fi
18568      ;;
18569    pw32*)
18570      # pw32 DLLs use 'pw' prefix rather than 'lib'
18571      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18572      ;;
18573    esac
18574    ;;
18575
18576  *)
18577    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18578    ;;
18579  esac
18580  dynamic_linker='Win32 ld.exe'
18581  # FIXME: first we should search . and the directory the executable is in
18582  shlibpath_var=PATH
18583  ;;
18584
18585darwin* | rhapsody*)
18586  dynamic_linker="$host_os dyld"
18587  version_type=darwin
18588  need_lib_prefix=no
18589  need_version=no
18590  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18591  soname_spec='${libname}${release}${major}$shared_ext'
18592  shlibpath_overrides_runpath=yes
18593  shlibpath_var=DYLD_LIBRARY_PATH
18594  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18595
18596  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18597  ;;
18598
18599dgux*)
18600  version_type=linux
18601  need_lib_prefix=no
18602  need_version=no
18603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18604  soname_spec='${libname}${release}${shared_ext}$major'
18605  shlibpath_var=LD_LIBRARY_PATH
18606  ;;
18607
18608freebsd1*)
18609  dynamic_linker=no
18610  ;;
18611
18612freebsd* | dragonfly*)
18613  # DragonFly does not have aout.  When/if they implement a new
18614  # versioning mechanism, adjust this.
18615  if test -x /usr/bin/objformat; then
18616    objformat=`/usr/bin/objformat`
18617  else
18618    case $host_os in
18619    freebsd[123]*) objformat=aout ;;
18620    *) objformat=elf ;;
18621    esac
18622  fi
18623  version_type=freebsd-$objformat
18624  case $version_type in
18625    freebsd-elf*)
18626      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18627      need_version=no
18628      need_lib_prefix=no
18629      ;;
18630    freebsd-*)
18631      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18632      need_version=yes
18633      ;;
18634  esac
18635  shlibpath_var=LD_LIBRARY_PATH
18636  case $host_os in
18637  freebsd2*)
18638    shlibpath_overrides_runpath=yes
18639    ;;
18640  freebsd3.[01]* | freebsdelf3.[01]*)
18641    shlibpath_overrides_runpath=yes
18642    hardcode_into_libs=yes
18643    ;;
18644  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18645  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18646    shlibpath_overrides_runpath=no
18647    hardcode_into_libs=yes
18648    ;;
18649  *) # from 4.6 on, and DragonFly
18650    shlibpath_overrides_runpath=yes
18651    hardcode_into_libs=yes
18652    ;;
18653  esac
18654  ;;
18655
18656gnu*)
18657  version_type=linux
18658  need_lib_prefix=no
18659  need_version=no
18660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18661  soname_spec='${libname}${release}${shared_ext}$major'
18662  shlibpath_var=LD_LIBRARY_PATH
18663  hardcode_into_libs=yes
18664  ;;
18665
18666hpux9* | hpux10* | hpux11*)
18667  # Give a soname corresponding to the major version so that dld.sl refuses to
18668  # link against other versions.
18669  version_type=sunos
18670  need_lib_prefix=no
18671  need_version=no
18672  case $host_cpu in
18673  ia64*)
18674    shrext_cmds='.so'
18675    hardcode_into_libs=yes
18676    dynamic_linker="$host_os dld.so"
18677    shlibpath_var=LD_LIBRARY_PATH
18678    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18679    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18680    soname_spec='${libname}${release}${shared_ext}$major'
18681    if test "X$HPUX_IA64_MODE" = X32; then
18682      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18683    else
18684      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18685    fi
18686    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18687    ;;
18688   hppa*64*)
18689     shrext_cmds='.sl'
18690     hardcode_into_libs=yes
18691     dynamic_linker="$host_os dld.sl"
18692     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18693     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18694     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18695     soname_spec='${libname}${release}${shared_ext}$major'
18696     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18697     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18698     ;;
18699   *)
18700    shrext_cmds='.sl'
18701    dynamic_linker="$host_os dld.sl"
18702    shlibpath_var=SHLIB_PATH
18703    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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    ;;
18707  esac
18708  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18709  postinstall_cmds='chmod 555 $lib'
18710  ;;
18711
18712interix[3-9]*)
18713  version_type=linux
18714  need_lib_prefix=no
18715  need_version=no
18716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18717  soname_spec='${libname}${release}${shared_ext}$major'
18718  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18719  shlibpath_var=LD_LIBRARY_PATH
18720  shlibpath_overrides_runpath=no
18721  hardcode_into_libs=yes
18722  ;;
18723
18724irix5* | irix6* | nonstopux*)
18725  case $host_os in
18726    nonstopux*) version_type=nonstopux ;;
18727    *)
18728	if test "$lt_cv_prog_gnu_ld" = yes; then
18729		version_type=linux
18730	else
18731		version_type=irix
18732	fi ;;
18733  esac
18734  need_lib_prefix=no
18735  need_version=no
18736  soname_spec='${libname}${release}${shared_ext}$major'
18737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18738  case $host_os in
18739  irix5* | nonstopux*)
18740    libsuff= shlibsuff=
18741    ;;
18742  *)
18743    case $LD in # libtool.m4 will add one of these switches to LD
18744    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18745      libsuff= shlibsuff= libmagic=32-bit;;
18746    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18747      libsuff=32 shlibsuff=N32 libmagic=N32;;
18748    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18749      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18750    *) libsuff= shlibsuff= libmagic=never-match;;
18751    esac
18752    ;;
18753  esac
18754  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18755  shlibpath_overrides_runpath=no
18756  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18757  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18758  hardcode_into_libs=yes
18759  ;;
18760
18761# No shared lib support for Linux oldld, aout, or coff.
18762linux*oldld* | linux*aout* | linux*coff*)
18763  dynamic_linker=no
18764  ;;
18765
18766# This must be Linux ELF.
18767linux* | k*bsd*-gnu)
18768  version_type=linux
18769  need_lib_prefix=no
18770  need_version=no
18771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18772  soname_spec='${libname}${release}${shared_ext}$major'
18773  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18774  shlibpath_var=LD_LIBRARY_PATH
18775  shlibpath_overrides_runpath=no
18776  # This implies no fast_install, which is unacceptable.
18777  # Some rework will be needed to allow for fast_install
18778  # before this can be enabled.
18779  hardcode_into_libs=yes
18780  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18781  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18782
18783  # Append ld.so.conf contents to the search path
18784  if test -f /etc/ld.so.conf; then
18785    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' ' '`
18786    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18787  fi
18788
18789  # We used to test for /lib/ld.so.1 and disable shared libraries on
18790  # powerpc, because MkLinux only supported shared libraries with the
18791  # GNU dynamic linker.  Since this was broken with cross compilers,
18792  # most powerpc-linux boxes support dynamic linking these days and
18793  # people can always --disable-shared, the test was removed, and we
18794  # assume the GNU/Linux dynamic linker is in use.
18795  dynamic_linker='GNU/Linux ld.so'
18796  ;;
18797
18798netbsd*)
18799  version_type=sunos
18800  need_lib_prefix=no
18801  need_version=no
18802  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18803    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18804    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18805    dynamic_linker='NetBSD (a.out) ld.so'
18806  else
18807    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18808    soname_spec='${libname}${release}${shared_ext}$major'
18809    dynamic_linker='NetBSD ld.elf_so'
18810  fi
18811  shlibpath_var=LD_LIBRARY_PATH
18812  shlibpath_overrides_runpath=yes
18813  hardcode_into_libs=yes
18814  ;;
18815
18816newsos6)
18817  version_type=linux
18818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18819  shlibpath_var=LD_LIBRARY_PATH
18820  shlibpath_overrides_runpath=yes
18821  ;;
18822
18823nto-qnx*)
18824  version_type=linux
18825  need_lib_prefix=no
18826  need_version=no
18827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18828  soname_spec='${libname}${release}${shared_ext}$major'
18829  shlibpath_var=LD_LIBRARY_PATH
18830  shlibpath_overrides_runpath=yes
18831  ;;
18832
18833openbsd*)
18834  version_type=sunos
18835  sys_lib_dlsearch_path_spec="/usr/lib"
18836  need_lib_prefix=no
18837  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18838  case $host_os in
18839    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18840    *)                         need_version=no  ;;
18841  esac
18842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18843  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18844  shlibpath_var=LD_LIBRARY_PATH
18845  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18846    case $host_os in
18847      openbsd2.[89] | openbsd2.[89].*)
18848	shlibpath_overrides_runpath=no
18849	;;
18850      *)
18851	shlibpath_overrides_runpath=yes
18852	;;
18853      esac
18854  else
18855    shlibpath_overrides_runpath=yes
18856  fi
18857  ;;
18858
18859os2*)
18860  libname_spec='$name'
18861  shrext_cmds=".dll"
18862  need_lib_prefix=no
18863  library_names_spec='$libname${shared_ext} $libname.a'
18864  dynamic_linker='OS/2 ld.exe'
18865  shlibpath_var=LIBPATH
18866  ;;
18867
18868osf3* | osf4* | osf5*)
18869  version_type=osf
18870  need_lib_prefix=no
18871  need_version=no
18872  soname_spec='${libname}${release}${shared_ext}$major'
18873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18874  shlibpath_var=LD_LIBRARY_PATH
18875  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18876  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18877  ;;
18878
18879rdos*)
18880  dynamic_linker=no
18881  ;;
18882
18883solaris*)
18884  version_type=linux
18885  need_lib_prefix=no
18886  need_version=no
18887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18888  soname_spec='${libname}${release}${shared_ext}$major'
18889  shlibpath_var=LD_LIBRARY_PATH
18890  shlibpath_overrides_runpath=yes
18891  hardcode_into_libs=yes
18892  # ldd complains unless libraries are executable
18893  postinstall_cmds='chmod +x $lib'
18894  ;;
18895
18896sunos4*)
18897  version_type=sunos
18898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18899  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18900  shlibpath_var=LD_LIBRARY_PATH
18901  shlibpath_overrides_runpath=yes
18902  if test "$with_gnu_ld" = yes; then
18903    need_lib_prefix=no
18904  fi
18905  need_version=yes
18906  ;;
18907
18908sysv4 | sysv4.3*)
18909  version_type=linux
18910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18911  soname_spec='${libname}${release}${shared_ext}$major'
18912  shlibpath_var=LD_LIBRARY_PATH
18913  case $host_vendor in
18914    sni)
18915      shlibpath_overrides_runpath=no
18916      need_lib_prefix=no
18917      export_dynamic_flag_spec='${wl}-Blargedynsym'
18918      runpath_var=LD_RUN_PATH
18919      ;;
18920    siemens)
18921      need_lib_prefix=no
18922      ;;
18923    motorola)
18924      need_lib_prefix=no
18925      need_version=no
18926      shlibpath_overrides_runpath=no
18927      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18928      ;;
18929  esac
18930  ;;
18931
18932sysv4*MP*)
18933  if test -d /usr/nec ;then
18934    version_type=linux
18935    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18936    soname_spec='$libname${shared_ext}.$major'
18937    shlibpath_var=LD_LIBRARY_PATH
18938  fi
18939  ;;
18940
18941sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18942  version_type=freebsd-elf
18943  need_lib_prefix=no
18944  need_version=no
18945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18946  soname_spec='${libname}${release}${shared_ext}$major'
18947  shlibpath_var=LD_LIBRARY_PATH
18948  hardcode_into_libs=yes
18949  if test "$with_gnu_ld" = yes; then
18950    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18951    shlibpath_overrides_runpath=no
18952  else
18953    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18954    shlibpath_overrides_runpath=yes
18955    case $host_os in
18956      sco3.2v5*)
18957        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18958	;;
18959    esac
18960  fi
18961  sys_lib_dlsearch_path_spec='/usr/lib'
18962  ;;
18963
18964uts4*)
18965  version_type=linux
18966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18967  soname_spec='${libname}${release}${shared_ext}$major'
18968  shlibpath_var=LD_LIBRARY_PATH
18969  ;;
18970
18971*)
18972  dynamic_linker=no
18973  ;;
18974esac
18975{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18976$as_echo "$dynamic_linker" >&6; }
18977test "$dynamic_linker" = no && can_build_shared=no
18978
18979if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18980  $as_echo_n "(cached) " >&6
18981else
18982  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18983fi
18984
18985sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18986if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18987  $as_echo_n "(cached) " >&6
18988else
18989  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18990fi
18991
18992sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18993
18994variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18995if test "$GCC" = yes; then
18996  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18997fi
18998
18999{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19000$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19001hardcode_action_GCJ=
19002if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19003   test -n "$runpath_var_GCJ" || \
19004   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19005
19006  # We can hardcode non-existant directories.
19007  if test "$hardcode_direct_GCJ" != no &&
19008     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19009     # have to relink, otherwise we might link with an installed library
19010     # when we should be linking with a yet-to-be-installed one
19011     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19012     test "$hardcode_minus_L_GCJ" != no; then
19013    # Linking always hardcodes the temporary library directory.
19014    hardcode_action_GCJ=relink
19015  else
19016    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19017    hardcode_action_GCJ=immediate
19018  fi
19019else
19020  # We cannot hardcode anything, or else we can only hardcode existing
19021  # directories.
19022  hardcode_action_GCJ=unsupported
19023fi
19024{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19025$as_echo "$hardcode_action_GCJ" >&6; }
19026
19027if test "$hardcode_action_GCJ" = relink; then
19028  # Fast installation is not supported
19029  enable_fast_install=no
19030elif test "$shlibpath_overrides_runpath" = yes ||
19031     test "$enable_shared" = no; then
19032  # Fast installation is not necessary
19033  enable_fast_install=needless
19034fi
19035
19036
19037# The else clause should only fire when bootstrapping the
19038# libtool distribution, otherwise you forgot to ship ltmain.sh
19039# with your package, and you will get complaints that there are
19040# no rules to generate ltmain.sh.
19041if test -f "$ltmain"; then
19042  # See if we are running on zsh, and set the options which allow our commands through
19043  # without removal of \ escapes.
19044  if test -n "${ZSH_VERSION+set}" ; then
19045    setopt NO_GLOB_SUBST
19046  fi
19047  # Now quote all the things that may contain metacharacters while being
19048  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19049  # variables and quote the copies for generation of the libtool script.
19050  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19051    SED SHELL STRIP \
19052    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19053    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19054    deplibs_check_method reload_flag reload_cmds need_locks \
19055    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19056    lt_cv_sys_global_symbol_to_c_name_address \
19057    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19058    old_postinstall_cmds old_postuninstall_cmds \
19059    compiler_GCJ \
19060    CC_GCJ \
19061    LD_GCJ \
19062    lt_prog_compiler_wl_GCJ \
19063    lt_prog_compiler_pic_GCJ \
19064    lt_prog_compiler_static_GCJ \
19065    lt_prog_compiler_no_builtin_flag_GCJ \
19066    export_dynamic_flag_spec_GCJ \
19067    thread_safe_flag_spec_GCJ \
19068    whole_archive_flag_spec_GCJ \
19069    enable_shared_with_static_runtimes_GCJ \
19070    old_archive_cmds_GCJ \
19071    old_archive_from_new_cmds_GCJ \
19072    predep_objects_GCJ \
19073    postdep_objects_GCJ \
19074    predeps_GCJ \
19075    postdeps_GCJ \
19076    compiler_lib_search_path_GCJ \
19077    compiler_lib_search_dirs_GCJ \
19078    archive_cmds_GCJ \
19079    archive_expsym_cmds_GCJ \
19080    postinstall_cmds_GCJ \
19081    postuninstall_cmds_GCJ \
19082    old_archive_from_expsyms_cmds_GCJ \
19083    allow_undefined_flag_GCJ \
19084    no_undefined_flag_GCJ \
19085    export_symbols_cmds_GCJ \
19086    hardcode_libdir_flag_spec_GCJ \
19087    hardcode_libdir_flag_spec_ld_GCJ \
19088    hardcode_libdir_separator_GCJ \
19089    hardcode_automatic_GCJ \
19090    module_cmds_GCJ \
19091    module_expsym_cmds_GCJ \
19092    lt_cv_prog_compiler_c_o_GCJ \
19093    fix_srcfile_path_GCJ \
19094    exclude_expsyms_GCJ \
19095    include_expsyms_GCJ; do
19096
19097    case $var in
19098    old_archive_cmds_GCJ | \
19099    old_archive_from_new_cmds_GCJ | \
19100    archive_cmds_GCJ | \
19101    archive_expsym_cmds_GCJ | \
19102    module_cmds_GCJ | \
19103    module_expsym_cmds_GCJ | \
19104    old_archive_from_expsyms_cmds_GCJ | \
19105    export_symbols_cmds_GCJ | \
19106    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19107    postinstall_cmds | postuninstall_cmds | \
19108    old_postinstall_cmds | old_postuninstall_cmds | \
19109    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19110      # Double-quote double-evaled strings.
19111      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19112      ;;
19113    *)
19114      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19115      ;;
19116    esac
19117  done
19118
19119  case $lt_echo in
19120  *'\$0 --fallback-echo"')
19121    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19122    ;;
19123  esac
19124
19125cfgfile="$ofile"
19126
19127  cat <<__EOF__ >> "$cfgfile"
19128# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19129
19130# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19131
19132# Shell to use when invoking shell scripts.
19133SHELL=$lt_SHELL
19134
19135# Whether or not to build shared libraries.
19136build_libtool_libs=$enable_shared
19137
19138# Whether or not to build static libraries.
19139build_old_libs=$enable_static
19140
19141# Whether or not to add -lc for building shared libraries.
19142build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19143
19144# Whether or not to disallow shared libs when runtime libs are static
19145allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19146
19147# Whether or not to optimize for fast installation.
19148fast_install=$enable_fast_install
19149
19150# The host system.
19151host_alias=$host_alias
19152host=$host
19153host_os=$host_os
19154
19155# The build system.
19156build_alias=$build_alias
19157build=$build
19158build_os=$build_os
19159
19160# An echo program that does not interpret backslashes.
19161echo=$lt_echo
19162
19163# The archiver.
19164AR=$lt_AR
19165AR_FLAGS=$lt_AR_FLAGS
19166
19167# A C compiler.
19168LTCC=$lt_LTCC
19169
19170# LTCC compiler flags.
19171LTCFLAGS=$lt_LTCFLAGS
19172
19173# A language-specific compiler.
19174CC=$lt_compiler_GCJ
19175
19176# Is the compiler the GNU C compiler?
19177with_gcc=$GCC_GCJ
19178
19179# An ERE matcher.
19180EGREP=$lt_EGREP
19181
19182# The linker used to build libraries.
19183LD=$lt_LD_GCJ
19184
19185# Whether we need hard or soft links.
19186LN_S=$lt_LN_S
19187
19188# A BSD-compatible nm program.
19189NM=$lt_NM
19190
19191# A symbol stripping program
19192STRIP=$lt_STRIP
19193
19194# Used to examine libraries when file_magic_cmd begins "file"
19195MAGIC_CMD=$MAGIC_CMD
19196
19197# Used on cygwin: DLL creation program.
19198DLLTOOL="$DLLTOOL"
19199
19200# Used on cygwin: object dumper.
19201OBJDUMP="$OBJDUMP"
19202
19203# Used on cygwin: assembler.
19204AS="$AS"
19205
19206# The name of the directory that contains temporary libtool files.
19207objdir=$objdir
19208
19209# How to create reloadable object files.
19210reload_flag=$lt_reload_flag
19211reload_cmds=$lt_reload_cmds
19212
19213# How to pass a linker flag through the compiler.
19214wl=$lt_lt_prog_compiler_wl_GCJ
19215
19216# Object file suffix (normally "o").
19217objext="$ac_objext"
19218
19219# Old archive suffix (normally "a").
19220libext="$libext"
19221
19222# Shared library suffix (normally ".so").
19223shrext_cmds='$shrext_cmds'
19224
19225# Executable file suffix (normally "").
19226exeext="$exeext"
19227
19228# Additional compiler flags for building library objects.
19229pic_flag=$lt_lt_prog_compiler_pic_GCJ
19230pic_mode=$pic_mode
19231
19232# What is the maximum length of a command?
19233max_cmd_len=$lt_cv_sys_max_cmd_len
19234
19235# Does compiler simultaneously support -c and -o options?
19236compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19237
19238# Must we lock files when doing compilation?
19239need_locks=$lt_need_locks
19240
19241# Do we need the lib prefix for modules?
19242need_lib_prefix=$need_lib_prefix
19243
19244# Do we need a version for libraries?
19245need_version=$need_version
19246
19247# Whether dlopen is supported.
19248dlopen_support=$enable_dlopen
19249
19250# Whether dlopen of programs is supported.
19251dlopen_self=$enable_dlopen_self
19252
19253# Whether dlopen of statically linked programs is supported.
19254dlopen_self_static=$enable_dlopen_self_static
19255
19256# Compiler flag to prevent dynamic linking.
19257link_static_flag=$lt_lt_prog_compiler_static_GCJ
19258
19259# Compiler flag to turn off builtin functions.
19260no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19261
19262# Compiler flag to allow reflexive dlopens.
19263export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19264
19265# Compiler flag to generate shared objects directly from archives.
19266whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19267
19268# Compiler flag to generate thread-safe objects.
19269thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19270
19271# Library versioning type.
19272version_type=$version_type
19273
19274# Format of library name prefix.
19275libname_spec=$lt_libname_spec
19276
19277# List of archive names.  First name is the real one, the rest are links.
19278# The last name is the one that the linker finds with -lNAME.
19279library_names_spec=$lt_library_names_spec
19280
19281# The coded name of the library, if different from the real name.
19282soname_spec=$lt_soname_spec
19283
19284# Commands used to build and install an old-style archive.
19285RANLIB=$lt_RANLIB
19286old_archive_cmds=$lt_old_archive_cmds_GCJ
19287old_postinstall_cmds=$lt_old_postinstall_cmds
19288old_postuninstall_cmds=$lt_old_postuninstall_cmds
19289
19290# Create an old-style archive from a shared archive.
19291old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19292
19293# Create a temporary old-style archive to link instead of a shared archive.
19294old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19295
19296# Commands used to build and install a shared archive.
19297archive_cmds=$lt_archive_cmds_GCJ
19298archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19299postinstall_cmds=$lt_postinstall_cmds
19300postuninstall_cmds=$lt_postuninstall_cmds
19301
19302# Commands used to build a loadable module (assumed same as above if empty)
19303module_cmds=$lt_module_cmds_GCJ
19304module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19305
19306# Commands to strip libraries.
19307old_striplib=$lt_old_striplib
19308striplib=$lt_striplib
19309
19310# Dependencies to place before the objects being linked to create a
19311# shared library.
19312predep_objects=$lt_predep_objects_GCJ
19313
19314# Dependencies to place after the objects being linked to create a
19315# shared library.
19316postdep_objects=$lt_postdep_objects_GCJ
19317
19318# Dependencies to place before the objects being linked to create a
19319# shared library.
19320predeps=$lt_predeps_GCJ
19321
19322# Dependencies to place after the objects being linked to create a
19323# shared library.
19324postdeps=$lt_postdeps_GCJ
19325
19326# The directories searched by this compiler when creating a shared
19327# library
19328compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19329
19330# The library search path used internally by the compiler when linking
19331# a shared library.
19332compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19333
19334# Method to check whether dependent libraries are shared objects.
19335deplibs_check_method=$lt_deplibs_check_method
19336
19337# Command to use when deplibs_check_method == file_magic.
19338file_magic_cmd=$lt_file_magic_cmd
19339
19340# Flag that allows shared libraries with undefined symbols to be built.
19341allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19342
19343# Flag that forces no undefined symbols.
19344no_undefined_flag=$lt_no_undefined_flag_GCJ
19345
19346# Commands used to finish a libtool library installation in a directory.
19347finish_cmds=$lt_finish_cmds
19348
19349# Same as above, but a single script fragment to be evaled but not shown.
19350finish_eval=$lt_finish_eval
19351
19352# Take the output of nm and produce a listing of raw symbols and C names.
19353global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19354
19355# Transform the output of nm in a proper C declaration
19356global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19357
19358# Transform the output of nm in a C name address pair
19359global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19360
19361# This is the shared library runtime path variable.
19362runpath_var=$runpath_var
19363
19364# This is the shared library path variable.
19365shlibpath_var=$shlibpath_var
19366
19367# Is shlibpath searched before the hard-coded library search path?
19368shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19369
19370# How to hardcode a shared library path into an executable.
19371hardcode_action=$hardcode_action_GCJ
19372
19373# Whether we should hardcode library paths into libraries.
19374hardcode_into_libs=$hardcode_into_libs
19375
19376# Flag to hardcode \$libdir into a binary during linking.
19377# This must work even if \$libdir does not exist.
19378hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19379
19380# If ld is used when linking, flag to hardcode \$libdir into
19381# a binary during linking. This must work even if \$libdir does
19382# not exist.
19383hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19384
19385# Whether we need a single -rpath flag with a separated argument.
19386hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19387
19388# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19389# resulting binary.
19390hardcode_direct=$hardcode_direct_GCJ
19391
19392# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19393# resulting binary.
19394hardcode_minus_L=$hardcode_minus_L_GCJ
19395
19396# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19397# the resulting binary.
19398hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19399
19400# Set to yes if building a shared library automatically hardcodes DIR into the library
19401# and all subsequent libraries and executables linked against it.
19402hardcode_automatic=$hardcode_automatic_GCJ
19403
19404# Variables whose values should be saved in libtool wrapper scripts and
19405# restored at relink time.
19406variables_saved_for_relink="$variables_saved_for_relink"
19407
19408# Whether libtool must link a program against all its dependency libraries.
19409link_all_deplibs=$link_all_deplibs_GCJ
19410
19411# Compile-time system search path for libraries
19412sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19413
19414# Run-time system search path for libraries
19415sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19416
19417# Fix the shell variable \$srcfile for the compiler.
19418fix_srcfile_path=$lt_fix_srcfile_path
19419
19420# Set to yes if exported symbols are required.
19421always_export_symbols=$always_export_symbols_GCJ
19422
19423# The commands to list exported symbols.
19424export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19425
19426# The commands to extract the exported symbol list from a shared archive.
19427extract_expsyms_cmds=$lt_extract_expsyms_cmds
19428
19429# Symbols that should not be listed in the preloaded symbols.
19430exclude_expsyms=$lt_exclude_expsyms_GCJ
19431
19432# Symbols that must always be exported.
19433include_expsyms=$lt_include_expsyms_GCJ
19434
19435# ### END LIBTOOL TAG CONFIG: $tagname
19436
19437__EOF__
19438
19439
19440else
19441  # If there is no Makefile yet, we rely on a make rule to execute
19442  # `config.status --recheck' to rerun these tests and create the
19443  # libtool script then.
19444  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19445  if test -f "$ltmain_in"; then
19446    test -f Makefile && make "$ltmain"
19447  fi
19448fi
19449
19450
19451ac_ext=c
19452ac_cpp='$CPP $CPPFLAGS'
19453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19455ac_compiler_gnu=$ac_cv_c_compiler_gnu
19456
19457CC="$lt_save_CC"
19458
19459	else
19460	  tagname=""
19461	fi
19462	;;
19463
19464      RC)
19465
19466
19467# Source file extension for RC test sources.
19468ac_ext=rc
19469
19470# Object file extension for compiled RC test sources.
19471objext=o
19472objext_RC=$objext
19473
19474# Code to be used in simple compile tests
19475lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19476
19477# Code to be used in simple link tests
19478lt_simple_link_test_code="$lt_simple_compile_test_code"
19479
19480# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19481
19482# If no C compiler was specified, use CC.
19483LTCC=${LTCC-"$CC"}
19484
19485# If no C compiler flags were specified, use CFLAGS.
19486LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19487
19488# Allow CC to be a program name with arguments.
19489compiler=$CC
19490
19491
19492# save warnings/boilerplate of simple test code
19493ac_outfile=conftest.$ac_objext
19494echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19495eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19496_lt_compiler_boilerplate=`cat conftest.err`
19497$rm conftest*
19498
19499ac_outfile=conftest.$ac_objext
19500echo "$lt_simple_link_test_code" >conftest.$ac_ext
19501eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19502_lt_linker_boilerplate=`cat conftest.err`
19503$rm -r conftest*
19504
19505
19506# Allow CC to be a program name with arguments.
19507lt_save_CC="$CC"
19508CC=${RC-"windres"}
19509compiler=$CC
19510compiler_RC=$CC
19511for cc_temp in $compiler""; do
19512  case $cc_temp in
19513    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19514    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19515    \-*) ;;
19516    *) break;;
19517  esac
19518done
19519cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19520
19521lt_cv_prog_compiler_c_o_RC=yes
19522
19523# The else clause should only fire when bootstrapping the
19524# libtool distribution, otherwise you forgot to ship ltmain.sh
19525# with your package, and you will get complaints that there are
19526# no rules to generate ltmain.sh.
19527if test -f "$ltmain"; then
19528  # See if we are running on zsh, and set the options which allow our commands through
19529  # without removal of \ escapes.
19530  if test -n "${ZSH_VERSION+set}" ; then
19531    setopt NO_GLOB_SUBST
19532  fi
19533  # Now quote all the things that may contain metacharacters while being
19534  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19535  # variables and quote the copies for generation of the libtool script.
19536  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19537    SED SHELL STRIP \
19538    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19539    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19540    deplibs_check_method reload_flag reload_cmds need_locks \
19541    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19542    lt_cv_sys_global_symbol_to_c_name_address \
19543    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19544    old_postinstall_cmds old_postuninstall_cmds \
19545    compiler_RC \
19546    CC_RC \
19547    LD_RC \
19548    lt_prog_compiler_wl_RC \
19549    lt_prog_compiler_pic_RC \
19550    lt_prog_compiler_static_RC \
19551    lt_prog_compiler_no_builtin_flag_RC \
19552    export_dynamic_flag_spec_RC \
19553    thread_safe_flag_spec_RC \
19554    whole_archive_flag_spec_RC \
19555    enable_shared_with_static_runtimes_RC \
19556    old_archive_cmds_RC \
19557    old_archive_from_new_cmds_RC \
19558    predep_objects_RC \
19559    postdep_objects_RC \
19560    predeps_RC \
19561    postdeps_RC \
19562    compiler_lib_search_path_RC \
19563    compiler_lib_search_dirs_RC \
19564    archive_cmds_RC \
19565    archive_expsym_cmds_RC \
19566    postinstall_cmds_RC \
19567    postuninstall_cmds_RC \
19568    old_archive_from_expsyms_cmds_RC \
19569    allow_undefined_flag_RC \
19570    no_undefined_flag_RC \
19571    export_symbols_cmds_RC \
19572    hardcode_libdir_flag_spec_RC \
19573    hardcode_libdir_flag_spec_ld_RC \
19574    hardcode_libdir_separator_RC \
19575    hardcode_automatic_RC \
19576    module_cmds_RC \
19577    module_expsym_cmds_RC \
19578    lt_cv_prog_compiler_c_o_RC \
19579    fix_srcfile_path_RC \
19580    exclude_expsyms_RC \
19581    include_expsyms_RC; do
19582
19583    case $var in
19584    old_archive_cmds_RC | \
19585    old_archive_from_new_cmds_RC | \
19586    archive_cmds_RC | \
19587    archive_expsym_cmds_RC | \
19588    module_cmds_RC | \
19589    module_expsym_cmds_RC | \
19590    old_archive_from_expsyms_cmds_RC | \
19591    export_symbols_cmds_RC | \
19592    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19593    postinstall_cmds | postuninstall_cmds | \
19594    old_postinstall_cmds | old_postuninstall_cmds | \
19595    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19596      # Double-quote double-evaled strings.
19597      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19598      ;;
19599    *)
19600      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19601      ;;
19602    esac
19603  done
19604
19605  case $lt_echo in
19606  *'\$0 --fallback-echo"')
19607    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19608    ;;
19609  esac
19610
19611cfgfile="$ofile"
19612
19613  cat <<__EOF__ >> "$cfgfile"
19614# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19615
19616# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19617
19618# Shell to use when invoking shell scripts.
19619SHELL=$lt_SHELL
19620
19621# Whether or not to build shared libraries.
19622build_libtool_libs=$enable_shared
19623
19624# Whether or not to build static libraries.
19625build_old_libs=$enable_static
19626
19627# Whether or not to add -lc for building shared libraries.
19628build_libtool_need_lc=$archive_cmds_need_lc_RC
19629
19630# Whether or not to disallow shared libs when runtime libs are static
19631allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19632
19633# Whether or not to optimize for fast installation.
19634fast_install=$enable_fast_install
19635
19636# The host system.
19637host_alias=$host_alias
19638host=$host
19639host_os=$host_os
19640
19641# The build system.
19642build_alias=$build_alias
19643build=$build
19644build_os=$build_os
19645
19646# An echo program that does not interpret backslashes.
19647echo=$lt_echo
19648
19649# The archiver.
19650AR=$lt_AR
19651AR_FLAGS=$lt_AR_FLAGS
19652
19653# A C compiler.
19654LTCC=$lt_LTCC
19655
19656# LTCC compiler flags.
19657LTCFLAGS=$lt_LTCFLAGS
19658
19659# A language-specific compiler.
19660CC=$lt_compiler_RC
19661
19662# Is the compiler the GNU C compiler?
19663with_gcc=$GCC_RC
19664
19665# An ERE matcher.
19666EGREP=$lt_EGREP
19667
19668# The linker used to build libraries.
19669LD=$lt_LD_RC
19670
19671# Whether we need hard or soft links.
19672LN_S=$lt_LN_S
19673
19674# A BSD-compatible nm program.
19675NM=$lt_NM
19676
19677# A symbol stripping program
19678STRIP=$lt_STRIP
19679
19680# Used to examine libraries when file_magic_cmd begins "file"
19681MAGIC_CMD=$MAGIC_CMD
19682
19683# Used on cygwin: DLL creation program.
19684DLLTOOL="$DLLTOOL"
19685
19686# Used on cygwin: object dumper.
19687OBJDUMP="$OBJDUMP"
19688
19689# Used on cygwin: assembler.
19690AS="$AS"
19691
19692# The name of the directory that contains temporary libtool files.
19693objdir=$objdir
19694
19695# How to create reloadable object files.
19696reload_flag=$lt_reload_flag
19697reload_cmds=$lt_reload_cmds
19698
19699# How to pass a linker flag through the compiler.
19700wl=$lt_lt_prog_compiler_wl_RC
19701
19702# Object file suffix (normally "o").
19703objext="$ac_objext"
19704
19705# Old archive suffix (normally "a").
19706libext="$libext"
19707
19708# Shared library suffix (normally ".so").
19709shrext_cmds='$shrext_cmds'
19710
19711# Executable file suffix (normally "").
19712exeext="$exeext"
19713
19714# Additional compiler flags for building library objects.
19715pic_flag=$lt_lt_prog_compiler_pic_RC
19716pic_mode=$pic_mode
19717
19718# What is the maximum length of a command?
19719max_cmd_len=$lt_cv_sys_max_cmd_len
19720
19721# Does compiler simultaneously support -c and -o options?
19722compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19723
19724# Must we lock files when doing compilation?
19725need_locks=$lt_need_locks
19726
19727# Do we need the lib prefix for modules?
19728need_lib_prefix=$need_lib_prefix
19729
19730# Do we need a version for libraries?
19731need_version=$need_version
19732
19733# Whether dlopen is supported.
19734dlopen_support=$enable_dlopen
19735
19736# Whether dlopen of programs is supported.
19737dlopen_self=$enable_dlopen_self
19738
19739# Whether dlopen of statically linked programs is supported.
19740dlopen_self_static=$enable_dlopen_self_static
19741
19742# Compiler flag to prevent dynamic linking.
19743link_static_flag=$lt_lt_prog_compiler_static_RC
19744
19745# Compiler flag to turn off builtin functions.
19746no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19747
19748# Compiler flag to allow reflexive dlopens.
19749export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19750
19751# Compiler flag to generate shared objects directly from archives.
19752whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19753
19754# Compiler flag to generate thread-safe objects.
19755thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19756
19757# Library versioning type.
19758version_type=$version_type
19759
19760# Format of library name prefix.
19761libname_spec=$lt_libname_spec
19762
19763# List of archive names.  First name is the real one, the rest are links.
19764# The last name is the one that the linker finds with -lNAME.
19765library_names_spec=$lt_library_names_spec
19766
19767# The coded name of the library, if different from the real name.
19768soname_spec=$lt_soname_spec
19769
19770# Commands used to build and install an old-style archive.
19771RANLIB=$lt_RANLIB
19772old_archive_cmds=$lt_old_archive_cmds_RC
19773old_postinstall_cmds=$lt_old_postinstall_cmds
19774old_postuninstall_cmds=$lt_old_postuninstall_cmds
19775
19776# Create an old-style archive from a shared archive.
19777old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19778
19779# Create a temporary old-style archive to link instead of a shared archive.
19780old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19781
19782# Commands used to build and install a shared archive.
19783archive_cmds=$lt_archive_cmds_RC
19784archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19785postinstall_cmds=$lt_postinstall_cmds
19786postuninstall_cmds=$lt_postuninstall_cmds
19787
19788# Commands used to build a loadable module (assumed same as above if empty)
19789module_cmds=$lt_module_cmds_RC
19790module_expsym_cmds=$lt_module_expsym_cmds_RC
19791
19792# Commands to strip libraries.
19793old_striplib=$lt_old_striplib
19794striplib=$lt_striplib
19795
19796# Dependencies to place before the objects being linked to create a
19797# shared library.
19798predep_objects=$lt_predep_objects_RC
19799
19800# Dependencies to place after the objects being linked to create a
19801# shared library.
19802postdep_objects=$lt_postdep_objects_RC
19803
19804# Dependencies to place before the objects being linked to create a
19805# shared library.
19806predeps=$lt_predeps_RC
19807
19808# Dependencies to place after the objects being linked to create a
19809# shared library.
19810postdeps=$lt_postdeps_RC
19811
19812# The directories searched by this compiler when creating a shared
19813# library
19814compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19815
19816# The library search path used internally by the compiler when linking
19817# a shared library.
19818compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19819
19820# Method to check whether dependent libraries are shared objects.
19821deplibs_check_method=$lt_deplibs_check_method
19822
19823# Command to use when deplibs_check_method == file_magic.
19824file_magic_cmd=$lt_file_magic_cmd
19825
19826# Flag that allows shared libraries with undefined symbols to be built.
19827allow_undefined_flag=$lt_allow_undefined_flag_RC
19828
19829# Flag that forces no undefined symbols.
19830no_undefined_flag=$lt_no_undefined_flag_RC
19831
19832# Commands used to finish a libtool library installation in a directory.
19833finish_cmds=$lt_finish_cmds
19834
19835# Same as above, but a single script fragment to be evaled but not shown.
19836finish_eval=$lt_finish_eval
19837
19838# Take the output of nm and produce a listing of raw symbols and C names.
19839global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19840
19841# Transform the output of nm in a proper C declaration
19842global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19843
19844# Transform the output of nm in a C name address pair
19845global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19846
19847# This is the shared library runtime path variable.
19848runpath_var=$runpath_var
19849
19850# This is the shared library path variable.
19851shlibpath_var=$shlibpath_var
19852
19853# Is shlibpath searched before the hard-coded library search path?
19854shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19855
19856# How to hardcode a shared library path into an executable.
19857hardcode_action=$hardcode_action_RC
19858
19859# Whether we should hardcode library paths into libraries.
19860hardcode_into_libs=$hardcode_into_libs
19861
19862# Flag to hardcode \$libdir into a binary during linking.
19863# This must work even if \$libdir does not exist.
19864hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19865
19866# If ld is used when linking, flag to hardcode \$libdir into
19867# a binary during linking. This must work even if \$libdir does
19868# not exist.
19869hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19870
19871# Whether we need a single -rpath flag with a separated argument.
19872hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19873
19874# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19875# resulting binary.
19876hardcode_direct=$hardcode_direct_RC
19877
19878# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19879# resulting binary.
19880hardcode_minus_L=$hardcode_minus_L_RC
19881
19882# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19883# the resulting binary.
19884hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19885
19886# Set to yes if building a shared library automatically hardcodes DIR into the library
19887# and all subsequent libraries and executables linked against it.
19888hardcode_automatic=$hardcode_automatic_RC
19889
19890# Variables whose values should be saved in libtool wrapper scripts and
19891# restored at relink time.
19892variables_saved_for_relink="$variables_saved_for_relink"
19893
19894# Whether libtool must link a program against all its dependency libraries.
19895link_all_deplibs=$link_all_deplibs_RC
19896
19897# Compile-time system search path for libraries
19898sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19899
19900# Run-time system search path for libraries
19901sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19902
19903# Fix the shell variable \$srcfile for the compiler.
19904fix_srcfile_path=$lt_fix_srcfile_path
19905
19906# Set to yes if exported symbols are required.
19907always_export_symbols=$always_export_symbols_RC
19908
19909# The commands to list exported symbols.
19910export_symbols_cmds=$lt_export_symbols_cmds_RC
19911
19912# The commands to extract the exported symbol list from a shared archive.
19913extract_expsyms_cmds=$lt_extract_expsyms_cmds
19914
19915# Symbols that should not be listed in the preloaded symbols.
19916exclude_expsyms=$lt_exclude_expsyms_RC
19917
19918# Symbols that must always be exported.
19919include_expsyms=$lt_include_expsyms_RC
19920
19921# ### END LIBTOOL TAG CONFIG: $tagname
19922
19923__EOF__
19924
19925
19926else
19927  # If there is no Makefile yet, we rely on a make rule to execute
19928  # `config.status --recheck' to rerun these tests and create the
19929  # libtool script then.
19930  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19931  if test -f "$ltmain_in"; then
19932    test -f Makefile && make "$ltmain"
19933  fi
19934fi
19935
19936
19937ac_ext=c
19938ac_cpp='$CPP $CPPFLAGS'
19939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19941ac_compiler_gnu=$ac_cv_c_compiler_gnu
19942
19943CC="$lt_save_CC"
19944
19945	;;
19946
19947      *)
19948	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19949$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19950   { (exit 1); exit 1; }; }
19951	;;
19952      esac
19953
19954      # Append the new tag name to the list of available tags.
19955      if test -n "$tagname" ; then
19956      available_tags="$available_tags $tagname"
19957    fi
19958    fi
19959  done
19960  IFS="$lt_save_ifs"
19961
19962  # Now substitute the updated list of available tags.
19963  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19964    mv "${ofile}T" "$ofile"
19965    chmod +x "$ofile"
19966  else
19967    rm -f "${ofile}T"
19968    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19969$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19970   { (exit 1); exit 1; }; }
19971  fi
19972fi
19973
19974
19975
19976# This can be used to rebuild libtool when needed
19977LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19978
19979# Always use our own libtool.
19980LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19981
19982# Prevent multiple expansion
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003case $host_cpu in
20004    sparc*)
20005        CCASFLAGS="-x assembler-with-cpp -Wa,-Av9a"
20006        SPARC=yes
20007esac
20008# By default we simply use the C compiler to build assembly code.
20009
20010test "${CCAS+set}" = set || CCAS=$CC
20011test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
20012
20013
20014
20015depcc="$CCAS"   am_compiler_list=
20016
20017{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20018$as_echo_n "checking dependency style of $depcc... " >&6; }
20019if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
20020  $as_echo_n "(cached) " >&6
20021else
20022  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20023  # We make a subdir and do the tests there.  Otherwise we can end up
20024  # making bogus files that we don't know about and never remove.  For
20025  # instance it was reported that on HP-UX the gcc test will end up
20026  # making a dummy file named `D' -- because `-MD' means `put the output
20027  # in D'.
20028  mkdir conftest.dir
20029  # Copy depcomp to subdir because otherwise we won't find it if we're
20030  # using a relative directory.
20031  cp "$am_depcomp" conftest.dir
20032  cd conftest.dir
20033  # We will build objects and dependencies in a subdirectory because
20034  # it helps to detect inapplicable dependency modes.  For instance
20035  # both Tru64's cc and ICC support -MD to output dependencies as a
20036  # side effect of compilation, but ICC will put the dependencies in
20037  # the current directory while Tru64 will put them in the object
20038  # directory.
20039  mkdir sub
20040
20041  am_cv_CCAS_dependencies_compiler_type=none
20042  if test "$am_compiler_list" = ""; then
20043     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20044  fi
20045  for depmode in $am_compiler_list; do
20046    # Setup a source with many dependencies, because some compilers
20047    # like to wrap large dependency lists on column 80 (with \), and
20048    # we should not choose a depcomp mode which is confused by this.
20049    #
20050    # We need to recreate these files for each test, as the compiler may
20051    # overwrite some of them when testing with obscure command lines.
20052    # This happens at least with the AIX C compiler.
20053    : > sub/conftest.c
20054    for i in 1 2 3 4 5 6; do
20055      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20056      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20057      # Solaris 8's {/usr,}/bin/sh.
20058      touch sub/conftst$i.h
20059    done
20060    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20061
20062    case $depmode in
20063    nosideeffect)
20064      # after this tag, mechanisms are not by side-effect, so they'll
20065      # only be used when explicitly requested
20066      if test "x$enable_dependency_tracking" = xyes; then
20067	continue
20068      else
20069	break
20070      fi
20071      ;;
20072    none) break ;;
20073    esac
20074    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20075    # mode.  It turns out that the SunPro C++ compiler does not properly
20076    # handle `-M -o', and we need to detect this.
20077    if depmode=$depmode \
20078       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20079       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20080       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20081         >/dev/null 2>conftest.err &&
20082       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20083       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20084       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20085       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20086      # icc doesn't choke on unknown options, it will just issue warnings
20087      # or remarks (even with -Werror).  So we grep stderr for any message
20088      # that says an option was ignored or not supported.
20089      # When given -MP, icc 7.0 and 7.1 complain thusly:
20090      #   icc: Command line warning: ignoring option '-M'; no argument required
20091      # The diagnosis changed in icc 8.0:
20092      #   icc: Command line remark: option '-MP' not supported
20093      if (grep 'ignoring option' conftest.err ||
20094          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20095        am_cv_CCAS_dependencies_compiler_type=$depmode
20096        break
20097      fi
20098    fi
20099  done
20100
20101  cd ..
20102  rm -rf conftest.dir
20103else
20104  am_cv_CCAS_dependencies_compiler_type=none
20105fi
20106
20107fi
20108{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
20109$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
20110CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
20111
20112 if
20113  test "x$enable_dependency_tracking" != xno \
20114  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
20115  am__fastdepCCAS_TRUE=
20116  am__fastdepCCAS_FALSE='#'
20117else
20118  am__fastdepCCAS_TRUE='#'
20119  am__fastdepCCAS_FALSE=
20120fi
20121
20122
20123ac_ext=c
20124ac_cpp='$CPP $CPPFLAGS'
20125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20127ac_compiler_gnu=$ac_cv_c_compiler_gnu
20128if test -n "$ac_tool_prefix"; then
20129  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20130set dummy ${ac_tool_prefix}gcc; ac_word=$2
20131{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20132$as_echo_n "checking for $ac_word... " >&6; }
20133if test "${ac_cv_prog_CC+set}" = set; then
20134  $as_echo_n "(cached) " >&6
20135else
20136  if test -n "$CC"; then
20137  ac_cv_prog_CC="$CC" # Let the user override the test.
20138else
20139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20140for as_dir in $PATH
20141do
20142  IFS=$as_save_IFS
20143  test -z "$as_dir" && as_dir=.
20144  for ac_exec_ext in '' $ac_executable_extensions; do
20145  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20146    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20147    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20148    break 2
20149  fi
20150done
20151done
20152IFS=$as_save_IFS
20153
20154fi
20155fi
20156CC=$ac_cv_prog_CC
20157if test -n "$CC"; then
20158  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20159$as_echo "$CC" >&6; }
20160else
20161  { $as_echo "$as_me:$LINENO: result: no" >&5
20162$as_echo "no" >&6; }
20163fi
20164
20165
20166fi
20167if test -z "$ac_cv_prog_CC"; then
20168  ac_ct_CC=$CC
20169  # Extract the first word of "gcc", so it can be a program name with args.
20170set dummy gcc; ac_word=$2
20171{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20172$as_echo_n "checking for $ac_word... " >&6; }
20173if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20174  $as_echo_n "(cached) " >&6
20175else
20176  if test -n "$ac_ct_CC"; then
20177  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20178else
20179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20180for as_dir in $PATH
20181do
20182  IFS=$as_save_IFS
20183  test -z "$as_dir" && as_dir=.
20184  for ac_exec_ext in '' $ac_executable_extensions; do
20185  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20186    ac_cv_prog_ac_ct_CC="gcc"
20187    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20188    break 2
20189  fi
20190done
20191done
20192IFS=$as_save_IFS
20193
20194fi
20195fi
20196ac_ct_CC=$ac_cv_prog_ac_ct_CC
20197if test -n "$ac_ct_CC"; then
20198  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20199$as_echo "$ac_ct_CC" >&6; }
20200else
20201  { $as_echo "$as_me:$LINENO: result: no" >&5
20202$as_echo "no" >&6; }
20203fi
20204
20205  if test "x$ac_ct_CC" = x; then
20206    CC=""
20207  else
20208    case $cross_compiling:$ac_tool_warned in
20209yes:)
20210{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20211whose name does not start with the host triplet.  If you think this
20212configuration is useful to you, please write to autoconf@gnu.org." >&5
20213$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20214whose name does not start with the host triplet.  If you think this
20215configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20216ac_tool_warned=yes ;;
20217esac
20218    CC=$ac_ct_CC
20219  fi
20220else
20221  CC="$ac_cv_prog_CC"
20222fi
20223
20224if test -z "$CC"; then
20225          if test -n "$ac_tool_prefix"; then
20226    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20227set dummy ${ac_tool_prefix}cc; ac_word=$2
20228{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20229$as_echo_n "checking for $ac_word... " >&6; }
20230if test "${ac_cv_prog_CC+set}" = set; then
20231  $as_echo_n "(cached) " >&6
20232else
20233  if test -n "$CC"; then
20234  ac_cv_prog_CC="$CC" # Let the user override the test.
20235else
20236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20237for as_dir in $PATH
20238do
20239  IFS=$as_save_IFS
20240  test -z "$as_dir" && as_dir=.
20241  for ac_exec_ext in '' $ac_executable_extensions; do
20242  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20243    ac_cv_prog_CC="${ac_tool_prefix}cc"
20244    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20245    break 2
20246  fi
20247done
20248done
20249IFS=$as_save_IFS
20250
20251fi
20252fi
20253CC=$ac_cv_prog_CC
20254if test -n "$CC"; then
20255  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20256$as_echo "$CC" >&6; }
20257else
20258  { $as_echo "$as_me:$LINENO: result: no" >&5
20259$as_echo "no" >&6; }
20260fi
20261
20262
20263  fi
20264fi
20265if test -z "$CC"; then
20266  # Extract the first word of "cc", so it can be a program name with args.
20267set dummy cc; ac_word=$2
20268{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20269$as_echo_n "checking for $ac_word... " >&6; }
20270if test "${ac_cv_prog_CC+set}" = set; then
20271  $as_echo_n "(cached) " >&6
20272else
20273  if test -n "$CC"; then
20274  ac_cv_prog_CC="$CC" # Let the user override the test.
20275else
20276  ac_prog_rejected=no
20277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20278for as_dir in $PATH
20279do
20280  IFS=$as_save_IFS
20281  test -z "$as_dir" && as_dir=.
20282  for ac_exec_ext in '' $ac_executable_extensions; do
20283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20284    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20285       ac_prog_rejected=yes
20286       continue
20287     fi
20288    ac_cv_prog_CC="cc"
20289    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20290    break 2
20291  fi
20292done
20293done
20294IFS=$as_save_IFS
20295
20296if test $ac_prog_rejected = yes; then
20297  # We found a bogon in the path, so make sure we never use it.
20298  set dummy $ac_cv_prog_CC
20299  shift
20300  if test $# != 0; then
20301    # We chose a different compiler from the bogus one.
20302    # However, it has the same basename, so the bogon will be chosen
20303    # first if we set CC to just the basename; use the full file name.
20304    shift
20305    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20306  fi
20307fi
20308fi
20309fi
20310CC=$ac_cv_prog_CC
20311if test -n "$CC"; then
20312  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20313$as_echo "$CC" >&6; }
20314else
20315  { $as_echo "$as_me:$LINENO: result: no" >&5
20316$as_echo "no" >&6; }
20317fi
20318
20319
20320fi
20321if test -z "$CC"; then
20322  if test -n "$ac_tool_prefix"; then
20323  for ac_prog in cl.exe
20324  do
20325    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20326set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20327{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20328$as_echo_n "checking for $ac_word... " >&6; }
20329if test "${ac_cv_prog_CC+set}" = set; then
20330  $as_echo_n "(cached) " >&6
20331else
20332  if test -n "$CC"; then
20333  ac_cv_prog_CC="$CC" # Let the user override the test.
20334else
20335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20336for as_dir in $PATH
20337do
20338  IFS=$as_save_IFS
20339  test -z "$as_dir" && as_dir=.
20340  for ac_exec_ext in '' $ac_executable_extensions; do
20341  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20342    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20343    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20344    break 2
20345  fi
20346done
20347done
20348IFS=$as_save_IFS
20349
20350fi
20351fi
20352CC=$ac_cv_prog_CC
20353if test -n "$CC"; then
20354  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20355$as_echo "$CC" >&6; }
20356else
20357  { $as_echo "$as_me:$LINENO: result: no" >&5
20358$as_echo "no" >&6; }
20359fi
20360
20361
20362    test -n "$CC" && break
20363  done
20364fi
20365if test -z "$CC"; then
20366  ac_ct_CC=$CC
20367  for ac_prog in cl.exe
20368do
20369  # Extract the first word of "$ac_prog", so it can be a program name with args.
20370set dummy $ac_prog; ac_word=$2
20371{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20372$as_echo_n "checking for $ac_word... " >&6; }
20373if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20374  $as_echo_n "(cached) " >&6
20375else
20376  if test -n "$ac_ct_CC"; then
20377  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20378else
20379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20380for as_dir in $PATH
20381do
20382  IFS=$as_save_IFS
20383  test -z "$as_dir" && as_dir=.
20384  for ac_exec_ext in '' $ac_executable_extensions; do
20385  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20386    ac_cv_prog_ac_ct_CC="$ac_prog"
20387    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20388    break 2
20389  fi
20390done
20391done
20392IFS=$as_save_IFS
20393
20394fi
20395fi
20396ac_ct_CC=$ac_cv_prog_ac_ct_CC
20397if test -n "$ac_ct_CC"; then
20398  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20399$as_echo "$ac_ct_CC" >&6; }
20400else
20401  { $as_echo "$as_me:$LINENO: result: no" >&5
20402$as_echo "no" >&6; }
20403fi
20404
20405
20406  test -n "$ac_ct_CC" && break
20407done
20408
20409  if test "x$ac_ct_CC" = x; then
20410    CC=""
20411  else
20412    case $cross_compiling:$ac_tool_warned in
20413yes:)
20414{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20415whose name does not start with the host triplet.  If you think this
20416configuration is useful to you, please write to autoconf@gnu.org." >&5
20417$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20418whose name does not start with the host triplet.  If you think this
20419configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20420ac_tool_warned=yes ;;
20421esac
20422    CC=$ac_ct_CC
20423  fi
20424fi
20425
20426fi
20427
20428
20429test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20430See \`config.log' for more details." >&5
20431$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20432See \`config.log' for more details." >&2;}
20433   { (exit 1); exit 1; }; }
20434
20435# Provide some information about the compiler.
20436$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20437set X $ac_compile
20438ac_compiler=$2
20439{ (ac_try="$ac_compiler --version >&5"
20440case "(($ac_try" in
20441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442  *) ac_try_echo=$ac_try;;
20443esac
20444eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20445$as_echo "$ac_try_echo") >&5
20446  (eval "$ac_compiler --version >&5") 2>&5
20447  ac_status=$?
20448  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449  (exit $ac_status); }
20450{ (ac_try="$ac_compiler -v >&5"
20451case "(($ac_try" in
20452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20453  *) ac_try_echo=$ac_try;;
20454esac
20455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20456$as_echo "$ac_try_echo") >&5
20457  (eval "$ac_compiler -v >&5") 2>&5
20458  ac_status=$?
20459  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460  (exit $ac_status); }
20461{ (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
20469  ac_status=$?
20470  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471  (exit $ac_status); }
20472
20473{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20474$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20475if test "${ac_cv_c_compiler_gnu+set}" = set; then
20476  $as_echo_n "(cached) " >&6
20477else
20478  cat >conftest.$ac_ext <<_ACEOF
20479/* confdefs.h.  */
20480_ACEOF
20481cat confdefs.h >>conftest.$ac_ext
20482cat >>conftest.$ac_ext <<_ACEOF
20483/* end confdefs.h.  */
20484
20485int
20486main ()
20487{
20488#ifndef __GNUC__
20489       choke me
20490#endif
20491
20492  ;
20493  return 0;
20494}
20495_ACEOF
20496rm -f conftest.$ac_objext
20497if { (ac_try="$ac_compile"
20498case "(($ac_try" in
20499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500  *) ac_try_echo=$ac_try;;
20501esac
20502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20503$as_echo "$ac_try_echo") >&5
20504  (eval "$ac_compile") 2>conftest.er1
20505  ac_status=$?
20506  grep -v '^ *+' conftest.er1 >conftest.err
20507  rm -f conftest.er1
20508  cat conftest.err >&5
20509  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510  (exit $ac_status); } && {
20511	 test -z "$ac_c_werror_flag" ||
20512	 test ! -s conftest.err
20513       } && test -s conftest.$ac_objext; then
20514  ac_compiler_gnu=yes
20515else
20516  $as_echo "$as_me: failed program was:" >&5
20517sed 's/^/| /' conftest.$ac_ext >&5
20518
20519	ac_compiler_gnu=no
20520fi
20521
20522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20523ac_cv_c_compiler_gnu=$ac_compiler_gnu
20524
20525fi
20526{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20527$as_echo "$ac_cv_c_compiler_gnu" >&6; }
20528if test $ac_compiler_gnu = yes; then
20529  GCC=yes
20530else
20531  GCC=
20532fi
20533ac_test_CFLAGS=${CFLAGS+set}
20534ac_save_CFLAGS=$CFLAGS
20535{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20536$as_echo_n "checking whether $CC accepts -g... " >&6; }
20537if test "${ac_cv_prog_cc_g+set}" = set; then
20538  $as_echo_n "(cached) " >&6
20539else
20540  ac_save_c_werror_flag=$ac_c_werror_flag
20541   ac_c_werror_flag=yes
20542   ac_cv_prog_cc_g=no
20543   CFLAGS="-g"
20544   cat >conftest.$ac_ext <<_ACEOF
20545/* confdefs.h.  */
20546_ACEOF
20547cat confdefs.h >>conftest.$ac_ext
20548cat >>conftest.$ac_ext <<_ACEOF
20549/* end confdefs.h.  */
20550
20551int
20552main ()
20553{
20554
20555  ;
20556  return 0;
20557}
20558_ACEOF
20559rm -f conftest.$ac_objext
20560if { (ac_try="$ac_compile"
20561case "(($ac_try" in
20562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563  *) ac_try_echo=$ac_try;;
20564esac
20565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20566$as_echo "$ac_try_echo") >&5
20567  (eval "$ac_compile") 2>conftest.er1
20568  ac_status=$?
20569  grep -v '^ *+' conftest.er1 >conftest.err
20570  rm -f conftest.er1
20571  cat conftest.err >&5
20572  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573  (exit $ac_status); } && {
20574	 test -z "$ac_c_werror_flag" ||
20575	 test ! -s conftest.err
20576       } && test -s conftest.$ac_objext; then
20577  ac_cv_prog_cc_g=yes
20578else
20579  $as_echo "$as_me: failed program was:" >&5
20580sed 's/^/| /' conftest.$ac_ext >&5
20581
20582	CFLAGS=""
20583      cat >conftest.$ac_ext <<_ACEOF
20584/* confdefs.h.  */
20585_ACEOF
20586cat confdefs.h >>conftest.$ac_ext
20587cat >>conftest.$ac_ext <<_ACEOF
20588/* end confdefs.h.  */
20589
20590int
20591main ()
20592{
20593
20594  ;
20595  return 0;
20596}
20597_ACEOF
20598rm -f conftest.$ac_objext
20599if { (ac_try="$ac_compile"
20600case "(($ac_try" in
20601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602  *) ac_try_echo=$ac_try;;
20603esac
20604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20605$as_echo "$ac_try_echo") >&5
20606  (eval "$ac_compile") 2>conftest.er1
20607  ac_status=$?
20608  grep -v '^ *+' conftest.er1 >conftest.err
20609  rm -f conftest.er1
20610  cat conftest.err >&5
20611  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612  (exit $ac_status); } && {
20613	 test -z "$ac_c_werror_flag" ||
20614	 test ! -s conftest.err
20615       } && test -s conftest.$ac_objext; then
20616  :
20617else
20618  $as_echo "$as_me: failed program was:" >&5
20619sed 's/^/| /' conftest.$ac_ext >&5
20620
20621	ac_c_werror_flag=$ac_save_c_werror_flag
20622	 CFLAGS="-g"
20623	 cat >conftest.$ac_ext <<_ACEOF
20624/* confdefs.h.  */
20625_ACEOF
20626cat confdefs.h >>conftest.$ac_ext
20627cat >>conftest.$ac_ext <<_ACEOF
20628/* end confdefs.h.  */
20629
20630int
20631main ()
20632{
20633
20634  ;
20635  return 0;
20636}
20637_ACEOF
20638rm -f conftest.$ac_objext
20639if { (ac_try="$ac_compile"
20640case "(($ac_try" in
20641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642  *) ac_try_echo=$ac_try;;
20643esac
20644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20645$as_echo "$ac_try_echo") >&5
20646  (eval "$ac_compile") 2>conftest.er1
20647  ac_status=$?
20648  grep -v '^ *+' conftest.er1 >conftest.err
20649  rm -f conftest.er1
20650  cat conftest.err >&5
20651  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652  (exit $ac_status); } && {
20653	 test -z "$ac_c_werror_flag" ||
20654	 test ! -s conftest.err
20655       } && test -s conftest.$ac_objext; then
20656  ac_cv_prog_cc_g=yes
20657else
20658  $as_echo "$as_me: failed program was:" >&5
20659sed 's/^/| /' conftest.$ac_ext >&5
20660
20661
20662fi
20663
20664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20665fi
20666
20667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20668fi
20669
20670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20671   ac_c_werror_flag=$ac_save_c_werror_flag
20672fi
20673{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20674$as_echo "$ac_cv_prog_cc_g" >&6; }
20675if test "$ac_test_CFLAGS" = set; then
20676  CFLAGS=$ac_save_CFLAGS
20677elif test $ac_cv_prog_cc_g = yes; then
20678  if test "$GCC" = yes; then
20679    CFLAGS="-g -O2"
20680  else
20681    CFLAGS="-g"
20682  fi
20683else
20684  if test "$GCC" = yes; then
20685    CFLAGS="-O2"
20686  else
20687    CFLAGS=
20688  fi
20689fi
20690{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20691$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20692if test "${ac_cv_prog_cc_c89+set}" = set; then
20693  $as_echo_n "(cached) " >&6
20694else
20695  ac_cv_prog_cc_c89=no
20696ac_save_CC=$CC
20697cat >conftest.$ac_ext <<_ACEOF
20698/* confdefs.h.  */
20699_ACEOF
20700cat confdefs.h >>conftest.$ac_ext
20701cat >>conftest.$ac_ext <<_ACEOF
20702/* end confdefs.h.  */
20703#include <stdarg.h>
20704#include <stdio.h>
20705#include <sys/types.h>
20706#include <sys/stat.h>
20707/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20708struct buf { int x; };
20709FILE * (*rcsopen) (struct buf *, struct stat *, int);
20710static char *e (p, i)
20711     char **p;
20712     int i;
20713{
20714  return p[i];
20715}
20716static char *f (char * (*g) (char **, int), char **p, ...)
20717{
20718  char *s;
20719  va_list v;
20720  va_start (v,p);
20721  s = g (p, va_arg (v,int));
20722  va_end (v);
20723  return s;
20724}
20725
20726/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20727   function prototypes and stuff, but not '\xHH' hex character constants.
20728   These don't provoke an error unfortunately, instead are silently treated
20729   as 'x'.  The following induces an error, until -std is added to get
20730   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20731   array size at least.  It's necessary to write '\x00'==0 to get something
20732   that's true only with -std.  */
20733int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20734
20735/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20736   inside strings and character constants.  */
20737#define FOO(x) 'x'
20738int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20739
20740int test (int i, double x);
20741struct s1 {int (*f) (int a);};
20742struct s2 {int (*f) (double a);};
20743int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20744int argc;
20745char **argv;
20746int
20747main ()
20748{
20749return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20750  ;
20751  return 0;
20752}
20753_ACEOF
20754for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20755	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20756do
20757  CC="$ac_save_CC $ac_arg"
20758  rm -f conftest.$ac_objext
20759if { (ac_try="$ac_compile"
20760case "(($ac_try" in
20761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762  *) ac_try_echo=$ac_try;;
20763esac
20764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20765$as_echo "$ac_try_echo") >&5
20766  (eval "$ac_compile") 2>conftest.er1
20767  ac_status=$?
20768  grep -v '^ *+' conftest.er1 >conftest.err
20769  rm -f conftest.er1
20770  cat conftest.err >&5
20771  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772  (exit $ac_status); } && {
20773	 test -z "$ac_c_werror_flag" ||
20774	 test ! -s conftest.err
20775       } && test -s conftest.$ac_objext; then
20776  ac_cv_prog_cc_c89=$ac_arg
20777else
20778  $as_echo "$as_me: failed program was:" >&5
20779sed 's/^/| /' conftest.$ac_ext >&5
20780
20781
20782fi
20783
20784rm -f core conftest.err conftest.$ac_objext
20785  test "x$ac_cv_prog_cc_c89" != "xno" && break
20786done
20787rm -f conftest.$ac_ext
20788CC=$ac_save_CC
20789
20790fi
20791# AC_CACHE_VAL
20792case "x$ac_cv_prog_cc_c89" in
20793  x)
20794    { $as_echo "$as_me:$LINENO: result: none needed" >&5
20795$as_echo "none needed" >&6; } ;;
20796  xno)
20797    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20798$as_echo "unsupported" >&6; } ;;
20799  *)
20800    CC="$CC $ac_cv_prog_cc_c89"
20801    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20802$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20803esac
20804
20805
20806ac_ext=c
20807ac_cpp='$CPP $CPPFLAGS'
20808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20810ac_compiler_gnu=$ac_cv_c_compiler_gnu
20811
20812depcc="$CC"   am_compiler_list=
20813
20814{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20815$as_echo_n "checking dependency style of $depcc... " >&6; }
20816if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20817  $as_echo_n "(cached) " >&6
20818else
20819  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20820  # We make a subdir and do the tests there.  Otherwise we can end up
20821  # making bogus files that we don't know about and never remove.  For
20822  # instance it was reported that on HP-UX the gcc test will end up
20823  # making a dummy file named `D' -- because `-MD' means `put the output
20824  # in D'.
20825  mkdir conftest.dir
20826  # Copy depcomp to subdir because otherwise we won't find it if we're
20827  # using a relative directory.
20828  cp "$am_depcomp" conftest.dir
20829  cd conftest.dir
20830  # We will build objects and dependencies in a subdirectory because
20831  # it helps to detect inapplicable dependency modes.  For instance
20832  # both Tru64's cc and ICC support -MD to output dependencies as a
20833  # side effect of compilation, but ICC will put the dependencies in
20834  # the current directory while Tru64 will put them in the object
20835  # directory.
20836  mkdir sub
20837
20838  am_cv_CC_dependencies_compiler_type=none
20839  if test "$am_compiler_list" = ""; then
20840     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20841  fi
20842  for depmode in $am_compiler_list; do
20843    # Setup a source with many dependencies, because some compilers
20844    # like to wrap large dependency lists on column 80 (with \), and
20845    # we should not choose a depcomp mode which is confused by this.
20846    #
20847    # We need to recreate these files for each test, as the compiler may
20848    # overwrite some of them when testing with obscure command lines.
20849    # This happens at least with the AIX C compiler.
20850    : > sub/conftest.c
20851    for i in 1 2 3 4 5 6; do
20852      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20853      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20854      # Solaris 8's {/usr,}/bin/sh.
20855      touch sub/conftst$i.h
20856    done
20857    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20858
20859    case $depmode in
20860    nosideeffect)
20861      # after this tag, mechanisms are not by side-effect, so they'll
20862      # only be used when explicitly requested
20863      if test "x$enable_dependency_tracking" = xyes; then
20864	continue
20865      else
20866	break
20867      fi
20868      ;;
20869    none) break ;;
20870    esac
20871    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20872    # mode.  It turns out that the SunPro C++ compiler does not properly
20873    # handle `-M -o', and we need to detect this.
20874    if depmode=$depmode \
20875       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20876       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20877       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20878         >/dev/null 2>conftest.err &&
20879       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20880       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20881       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20882       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20883      # icc doesn't choke on unknown options, it will just issue warnings
20884      # or remarks (even with -Werror).  So we grep stderr for any message
20885      # that says an option was ignored or not supported.
20886      # When given -MP, icc 7.0 and 7.1 complain thusly:
20887      #   icc: Command line warning: ignoring option '-M'; no argument required
20888      # The diagnosis changed in icc 8.0:
20889      #   icc: Command line remark: option '-MP' not supported
20890      if (grep 'ignoring option' conftest.err ||
20891          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20892        am_cv_CC_dependencies_compiler_type=$depmode
20893        break
20894      fi
20895    fi
20896  done
20897
20898  cd ..
20899  rm -rf conftest.dir
20900else
20901  am_cv_CC_dependencies_compiler_type=none
20902fi
20903
20904fi
20905{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20906$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20907CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20908
20909 if
20910  test "x$enable_dependency_tracking" != xno \
20911  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20912  am__fastdepCC_TRUE=
20913  am__fastdepCC_FALSE='#'
20914else
20915  am__fastdepCC_TRUE='#'
20916  am__fastdepCC_FALSE=
20917fi
20918
20919
20920
20921
20922
20923
20924
20925# Check whether --with-xorg-module-dir was given.
20926if test "${with_xorg_module_dir+set}" = set; then
20927  withval=$with_xorg_module_dir; moduledir="$withval"
20928else
20929  moduledir="$libdir/xorg/modules"
20930fi
20931
20932
20933# Check whether --enable-dri was given.
20934if test "${enable_dri+set}" = set; then
20935  enableval=$enable_dri; DRI="$enableval"
20936else
20937  DRI=auto
20938fi
20939
20940
20941# Checks for extensions
20942
20943	SAVE_CFLAGS="$CFLAGS"
20944	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20945	cat >conftest.$ac_ext <<_ACEOF
20946/* confdefs.h.  */
20947_ACEOF
20948cat confdefs.h >>conftest.$ac_ext
20949cat >>conftest.$ac_ext <<_ACEOF
20950/* end confdefs.h.  */
20951
20952#include "xorg-server.h"
20953#if !defined RANDR
20954#error RANDR not defined
20955#endif
20956
20957int
20958main ()
20959{
20960
20961  ;
20962  return 0;
20963}
20964_ACEOF
20965rm -f conftest.$ac_objext
20966if { (ac_try="$ac_compile"
20967case "(($ac_try" in
20968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20969  *) ac_try_echo=$ac_try;;
20970esac
20971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20972$as_echo "$ac_try_echo") >&5
20973  (eval "$ac_compile") 2>conftest.er1
20974  ac_status=$?
20975  grep -v '^ *+' conftest.er1 >conftest.err
20976  rm -f conftest.er1
20977  cat conftest.err >&5
20978  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979  (exit $ac_status); } && {
20980	 test -z "$ac_c_werror_flag" ||
20981	 test ! -s conftest.err
20982       } && test -s conftest.$ac_objext; then
20983  _EXT_CHECK=yes
20984else
20985  $as_echo "$as_me: failed program was:" >&5
20986sed 's/^/| /' conftest.$ac_ext >&5
20987
20988	_EXT_CHECK=no
20989fi
20990
20991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20992	CFLAGS="$SAVE_CFLAGS"
20993	{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20994$as_echo_n "checking if RANDR is defined... " >&6; }
20995	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20996$as_echo "$_EXT_CHECK" >&6; }
20997	if test "$_EXT_CHECK" != no; then
20998		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20999	fi
21000
21001
21002	SAVE_CFLAGS="$CFLAGS"
21003	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21004	cat >conftest.$ac_ext <<_ACEOF
21005/* confdefs.h.  */
21006_ACEOF
21007cat confdefs.h >>conftest.$ac_ext
21008cat >>conftest.$ac_ext <<_ACEOF
21009/* end confdefs.h.  */
21010
21011#include "xorg-server.h"
21012#if !defined RENDER
21013#error RENDER not defined
21014#endif
21015
21016int
21017main ()
21018{
21019
21020  ;
21021  return 0;
21022}
21023_ACEOF
21024rm -f conftest.$ac_objext
21025if { (ac_try="$ac_compile"
21026case "(($ac_try" in
21027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028  *) ac_try_echo=$ac_try;;
21029esac
21030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21031$as_echo "$ac_try_echo") >&5
21032  (eval "$ac_compile") 2>conftest.er1
21033  ac_status=$?
21034  grep -v '^ *+' conftest.er1 >conftest.err
21035  rm -f conftest.er1
21036  cat conftest.err >&5
21037  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038  (exit $ac_status); } && {
21039	 test -z "$ac_c_werror_flag" ||
21040	 test ! -s conftest.err
21041       } && test -s conftest.$ac_objext; then
21042  _EXT_CHECK=yes
21043else
21044  $as_echo "$as_me: failed program was:" >&5
21045sed 's/^/| /' conftest.$ac_ext >&5
21046
21047	_EXT_CHECK=no
21048fi
21049
21050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21051	CFLAGS="$SAVE_CFLAGS"
21052	{ $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
21053$as_echo_n "checking if RENDER is defined... " >&6; }
21054	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21055$as_echo "$_EXT_CHECK" >&6; }
21056	if test "$_EXT_CHECK" != no; then
21057		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
21058	fi
21059
21060
21061	SAVE_CFLAGS="$CFLAGS"
21062	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21063	cat >conftest.$ac_ext <<_ACEOF
21064/* confdefs.h.  */
21065_ACEOF
21066cat confdefs.h >>conftest.$ac_ext
21067cat >>conftest.$ac_ext <<_ACEOF
21068/* end confdefs.h.  */
21069
21070#include "xorg-server.h"
21071#if !defined DPMSExtension
21072#error DPMSExtension not defined
21073#endif
21074
21075int
21076main ()
21077{
21078
21079  ;
21080  return 0;
21081}
21082_ACEOF
21083rm -f conftest.$ac_objext
21084if { (ac_try="$ac_compile"
21085case "(($ac_try" in
21086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21087  *) ac_try_echo=$ac_try;;
21088esac
21089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21090$as_echo "$ac_try_echo") >&5
21091  (eval "$ac_compile") 2>conftest.er1
21092  ac_status=$?
21093  grep -v '^ *+' conftest.er1 >conftest.err
21094  rm -f conftest.er1
21095  cat conftest.err >&5
21096  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097  (exit $ac_status); } && {
21098	 test -z "$ac_c_werror_flag" ||
21099	 test ! -s conftest.err
21100       } && test -s conftest.$ac_objext; then
21101  _EXT_CHECK=yes
21102else
21103  $as_echo "$as_me: failed program was:" >&5
21104sed 's/^/| /' conftest.$ac_ext >&5
21105
21106	_EXT_CHECK=no
21107fi
21108
21109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110	CFLAGS="$SAVE_CFLAGS"
21111	{ $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
21112$as_echo_n "checking if DPMSExtension is defined... " >&6; }
21113	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21114$as_echo "$_EXT_CHECK" >&6; }
21115	if test "$_EXT_CHECK" != no; then
21116		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
21117	fi
21118
21119
21120# Checks for pkg-config packages
21121
21122
21123if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21124	if test -n "$ac_tool_prefix"; then
21125  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21126set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21127{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21128$as_echo_n "checking for $ac_word... " >&6; }
21129if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21130  $as_echo_n "(cached) " >&6
21131else
21132  case $PKG_CONFIG in
21133  [\\/]* | ?:[\\/]*)
21134  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21135  ;;
21136  *)
21137  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21138for as_dir in $PATH
21139do
21140  IFS=$as_save_IFS
21141  test -z "$as_dir" && as_dir=.
21142  for ac_exec_ext in '' $ac_executable_extensions; do
21143  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21144    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21145    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21146    break 2
21147  fi
21148done
21149done
21150IFS=$as_save_IFS
21151
21152  ;;
21153esac
21154fi
21155PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21156if test -n "$PKG_CONFIG"; then
21157  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21158$as_echo "$PKG_CONFIG" >&6; }
21159else
21160  { $as_echo "$as_me:$LINENO: result: no" >&5
21161$as_echo "no" >&6; }
21162fi
21163
21164
21165fi
21166if test -z "$ac_cv_path_PKG_CONFIG"; then
21167  ac_pt_PKG_CONFIG=$PKG_CONFIG
21168  # Extract the first word of "pkg-config", so it can be a program name with args.
21169set dummy pkg-config; ac_word=$2
21170{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21171$as_echo_n "checking for $ac_word... " >&6; }
21172if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21173  $as_echo_n "(cached) " >&6
21174else
21175  case $ac_pt_PKG_CONFIG in
21176  [\\/]* | ?:[\\/]*)
21177  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21178  ;;
21179  *)
21180  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21181for as_dir in $PATH
21182do
21183  IFS=$as_save_IFS
21184  test -z "$as_dir" && as_dir=.
21185  for ac_exec_ext in '' $ac_executable_extensions; do
21186  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21187    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21188    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21189    break 2
21190  fi
21191done
21192done
21193IFS=$as_save_IFS
21194
21195  ;;
21196esac
21197fi
21198ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21199if test -n "$ac_pt_PKG_CONFIG"; then
21200  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21201$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21202else
21203  { $as_echo "$as_me:$LINENO: result: no" >&5
21204$as_echo "no" >&6; }
21205fi
21206
21207  if test "x$ac_pt_PKG_CONFIG" = x; then
21208    PKG_CONFIG=""
21209  else
21210    case $cross_compiling:$ac_tool_warned in
21211yes:)
21212{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21213whose name does not start with the host triplet.  If you think this
21214configuration is useful to you, please write to autoconf@gnu.org." >&5
21215$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21216whose name does not start with the host triplet.  If you think this
21217configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21218ac_tool_warned=yes ;;
21219esac
21220    PKG_CONFIG=$ac_pt_PKG_CONFIG
21221  fi
21222else
21223  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21224fi
21225
21226fi
21227if test -n "$PKG_CONFIG"; then
21228	_pkg_min_version=0.9.0
21229	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21230$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21231	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21232		{ $as_echo "$as_me:$LINENO: result: yes" >&5
21233$as_echo "yes" >&6; }
21234	else
21235		{ $as_echo "$as_me:$LINENO: result: no" >&5
21236$as_echo "no" >&6; }
21237		PKG_CONFIG=""
21238	fi
21239
21240fi
21241
21242pkg_failed=no
21243{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
21244$as_echo_n "checking for XORG... " >&6; }
21245
21246if test -n "$XORG_CFLAGS"; then
21247    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21248 elif test -n "$PKG_CONFIG"; then
21249    if test -n "$PKG_CONFIG" && \
21250    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21251  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21252  ac_status=$?
21253  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254  (exit $ac_status); }; then
21255  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21256else
21257  pkg_failed=yes
21258fi
21259 else
21260    pkg_failed=untried
21261fi
21262if test -n "$XORG_LIBS"; then
21263    pkg_cv_XORG_LIBS="$XORG_LIBS"
21264 elif test -n "$PKG_CONFIG"; then
21265    if test -n "$PKG_CONFIG" && \
21266    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21267  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21268  ac_status=$?
21269  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270  (exit $ac_status); }; then
21271  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21272else
21273  pkg_failed=yes
21274fi
21275 else
21276    pkg_failed=untried
21277fi
21278
21279
21280
21281if test $pkg_failed = yes; then
21282
21283if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21284        _pkg_short_errors_supported=yes
21285else
21286        _pkg_short_errors_supported=no
21287fi
21288        if test $_pkg_short_errors_supported = yes; then
21289	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21290        else
21291	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21292        fi
21293	# Put the nasty error message in config.log where it belongs
21294	echo "$XORG_PKG_ERRORS" >&5
21295
21296	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21297
21298$XORG_PKG_ERRORS
21299
21300Consider adjusting the PKG_CONFIG_PATH environment variable if you
21301installed software in a non-standard prefix.
21302
21303Alternatively, you may set the environment variables XORG_CFLAGS
21304and XORG_LIBS to avoid the need to call pkg-config.
21305See the pkg-config man page for more details.
21306" >&5
21307$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21308
21309$XORG_PKG_ERRORS
21310
21311Consider adjusting the PKG_CONFIG_PATH environment variable if you
21312installed software in a non-standard prefix.
21313
21314Alternatively, you may set the environment variables XORG_CFLAGS
21315and XORG_LIBS to avoid the need to call pkg-config.
21316See the pkg-config man page for more details.
21317" >&2;}
21318   { (exit 1); exit 1; }; }
21319elif test $pkg_failed = untried; then
21320	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21321is in your PATH or set the PKG_CONFIG environment variable to the full
21322path to pkg-config.
21323
21324Alternatively, you may set the environment variables XORG_CFLAGS
21325and XORG_LIBS to avoid the need to call pkg-config.
21326See the pkg-config man page for more details.
21327
21328To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21329See \`config.log' for more details." >&5
21330$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21331is in your PATH or set the PKG_CONFIG environment variable to the full
21332path to pkg-config.
21333
21334Alternatively, you may set the environment variables XORG_CFLAGS
21335and XORG_LIBS to avoid the need to call pkg-config.
21336See the pkg-config man page for more details.
21337
21338To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21339See \`config.log' for more details." >&2;}
21340   { (exit 1); exit 1; }; }
21341else
21342	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21343	XORG_LIBS=$pkg_cv_XORG_LIBS
21344        { $as_echo "$as_me:$LINENO: result: yes" >&5
21345$as_echo "yes" >&6; }
21346	:
21347fi
21348sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21349
21350# Checks for libraries.
21351
21352# Checks for header files.
21353{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21354$as_echo_n "checking for ANSI C header files... " >&6; }
21355if test "${ac_cv_header_stdc+set}" = set; then
21356  $as_echo_n "(cached) " >&6
21357else
21358  cat >conftest.$ac_ext <<_ACEOF
21359/* confdefs.h.  */
21360_ACEOF
21361cat confdefs.h >>conftest.$ac_ext
21362cat >>conftest.$ac_ext <<_ACEOF
21363/* end confdefs.h.  */
21364#include <stdlib.h>
21365#include <stdarg.h>
21366#include <string.h>
21367#include <float.h>
21368
21369int
21370main ()
21371{
21372
21373  ;
21374  return 0;
21375}
21376_ACEOF
21377rm -f conftest.$ac_objext
21378if { (ac_try="$ac_compile"
21379case "(($ac_try" in
21380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21381  *) ac_try_echo=$ac_try;;
21382esac
21383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21384$as_echo "$ac_try_echo") >&5
21385  (eval "$ac_compile") 2>conftest.er1
21386  ac_status=$?
21387  grep -v '^ *+' conftest.er1 >conftest.err
21388  rm -f conftest.er1
21389  cat conftest.err >&5
21390  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391  (exit $ac_status); } && {
21392	 test -z "$ac_c_werror_flag" ||
21393	 test ! -s conftest.err
21394       } && test -s conftest.$ac_objext; then
21395  ac_cv_header_stdc=yes
21396else
21397  $as_echo "$as_me: failed program was:" >&5
21398sed 's/^/| /' conftest.$ac_ext >&5
21399
21400	ac_cv_header_stdc=no
21401fi
21402
21403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21404
21405if test $ac_cv_header_stdc = yes; then
21406  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21407  cat >conftest.$ac_ext <<_ACEOF
21408/* confdefs.h.  */
21409_ACEOF
21410cat confdefs.h >>conftest.$ac_ext
21411cat >>conftest.$ac_ext <<_ACEOF
21412/* end confdefs.h.  */
21413#include <string.h>
21414
21415_ACEOF
21416if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21417  $EGREP "memchr" >/dev/null 2>&1; then
21418  :
21419else
21420  ac_cv_header_stdc=no
21421fi
21422rm -f conftest*
21423
21424fi
21425
21426if test $ac_cv_header_stdc = yes; then
21427  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21428  cat >conftest.$ac_ext <<_ACEOF
21429/* confdefs.h.  */
21430_ACEOF
21431cat confdefs.h >>conftest.$ac_ext
21432cat >>conftest.$ac_ext <<_ACEOF
21433/* end confdefs.h.  */
21434#include <stdlib.h>
21435
21436_ACEOF
21437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21438  $EGREP "free" >/dev/null 2>&1; then
21439  :
21440else
21441  ac_cv_header_stdc=no
21442fi
21443rm -f conftest*
21444
21445fi
21446
21447if test $ac_cv_header_stdc = yes; then
21448  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21449  if test "$cross_compiling" = yes; then
21450  :
21451else
21452  cat >conftest.$ac_ext <<_ACEOF
21453/* confdefs.h.  */
21454_ACEOF
21455cat confdefs.h >>conftest.$ac_ext
21456cat >>conftest.$ac_ext <<_ACEOF
21457/* end confdefs.h.  */
21458#include <ctype.h>
21459#include <stdlib.h>
21460#if ((' ' & 0x0FF) == 0x020)
21461# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21462# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21463#else
21464# define ISLOWER(c) \
21465		   (('a' <= (c) && (c) <= 'i') \
21466		     || ('j' <= (c) && (c) <= 'r') \
21467		     || ('s' <= (c) && (c) <= 'z'))
21468# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21469#endif
21470
21471#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21472int
21473main ()
21474{
21475  int i;
21476  for (i = 0; i < 256; i++)
21477    if (XOR (islower (i), ISLOWER (i))
21478	|| toupper (i) != TOUPPER (i))
21479      return 2;
21480  return 0;
21481}
21482_ACEOF
21483rm -f conftest$ac_exeext
21484if { (ac_try="$ac_link"
21485case "(($ac_try" in
21486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487  *) ac_try_echo=$ac_try;;
21488esac
21489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21490$as_echo "$ac_try_echo") >&5
21491  (eval "$ac_link") 2>&5
21492  ac_status=$?
21493  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21495  { (case "(($ac_try" in
21496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21497  *) ac_try_echo=$ac_try;;
21498esac
21499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21500$as_echo "$ac_try_echo") >&5
21501  (eval "$ac_try") 2>&5
21502  ac_status=$?
21503  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504  (exit $ac_status); }; }; then
21505  :
21506else
21507  $as_echo "$as_me: program exited with status $ac_status" >&5
21508$as_echo "$as_me: failed program was:" >&5
21509sed 's/^/| /' conftest.$ac_ext >&5
21510
21511( exit $ac_status )
21512ac_cv_header_stdc=no
21513fi
21514rm -rf conftest.dSYM
21515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21516fi
21517
21518
21519fi
21520fi
21521{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21522$as_echo "$ac_cv_header_stdc" >&6; }
21523if test $ac_cv_header_stdc = yes; then
21524
21525cat >>confdefs.h <<\_ACEOF
21526#define STDC_HEADERS 1
21527_ACEOF
21528
21529fi
21530
21531
21532if test "$DRI" != no; then
21533        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
21534{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
21535$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
21536if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21537  $as_echo_n "(cached) " >&6
21538else
21539  test "$cross_compiling" = yes &&
21540  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21541$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21542   { (exit 1); exit 1; }; }
21543if test -r "${sdkdir}/dri.h"; then
21544  eval "$as_ac_File=yes"
21545else
21546  eval "$as_ac_File=no"
21547fi
21548fi
21549ac_res=`eval 'as_val=${'$as_ac_File'}
21550		 $as_echo "$as_val"'`
21551	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21552$as_echo "$ac_res" >&6; }
21553if test `eval 'as_val=${'$as_ac_File'}
21554		 $as_echo "$as_val"'` = yes; then
21555  have_dri_h="yes"
21556else
21557  have_dri_h="no"
21558fi
21559
21560        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
21561{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
21562$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
21563if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21564  $as_echo_n "(cached) " >&6
21565else
21566  test "$cross_compiling" = yes &&
21567  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21568$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21569   { (exit 1); exit 1; }; }
21570if test -r "${sdkdir}/sarea.h"; then
21571  eval "$as_ac_File=yes"
21572else
21573  eval "$as_ac_File=no"
21574fi
21575fi
21576ac_res=`eval 'as_val=${'$as_ac_File'}
21577		 $as_echo "$as_val"'`
21578	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21579$as_echo "$ac_res" >&6; }
21580if test `eval 'as_val=${'$as_ac_File'}
21581		 $as_echo "$as_val"'` = yes; then
21582  have_sarea_h="yes"
21583else
21584  have_sarea_h="no"
21585fi
21586
21587        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
21588{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
21589$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
21590if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21591  $as_echo_n "(cached) " >&6
21592else
21593  test "$cross_compiling" = yes &&
21594  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21595$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21596   { (exit 1); exit 1; }; }
21597if test -r "${sdkdir}/dristruct.h"; then
21598  eval "$as_ac_File=yes"
21599else
21600  eval "$as_ac_File=no"
21601fi
21602fi
21603ac_res=`eval 'as_val=${'$as_ac_File'}
21604		 $as_echo "$as_val"'`
21605	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21606$as_echo "$ac_res" >&6; }
21607if test `eval 'as_val=${'$as_ac_File'}
21608		 $as_echo "$as_val"'` = yes; then
21609  have_dristruct_h="yes"
21610else
21611  have_dristruct_h="no"
21612fi
21613
21614fi
21615
21616{ $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5
21617$as_echo_n "checking whether to include DRI support... " >&6; }
21618if test x$DRI = xauto; then
21619        if test "$have_dri_h" = yes -a \
21620                "$have_sarea_h" = yes -a \
21621                "$have_dristruct_h" = yes; then
21622                DRI="yes"
21623        else
21624                DRI="no"
21625        fi
21626fi
21627{ $as_echo "$as_me:$LINENO: result: $DRI" >&5
21628$as_echo "$DRI" >&6; }
21629
21630 if test x$DRI = xyes; then
21631  DRI_TRUE=
21632  DRI_FALSE='#'
21633else
21634  DRI_TRUE='#'
21635  DRI_FALSE=
21636fi
21637
21638if test "$DRI" = yes; then
21639
21640pkg_failed=no
21641{ $as_echo "$as_me:$LINENO: checking for DRI" >&5
21642$as_echo_n "checking for DRI... " >&6; }
21643
21644if test -n "$DRI_CFLAGS"; then
21645    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
21646 elif test -n "$PKG_CONFIG"; then
21647    if test -n "$PKG_CONFIG" && \
21648    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
21649  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
21650  ac_status=$?
21651  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652  (exit $ac_status); }; then
21653  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
21654else
21655  pkg_failed=yes
21656fi
21657 else
21658    pkg_failed=untried
21659fi
21660if test -n "$DRI_LIBS"; then
21661    pkg_cv_DRI_LIBS="$DRI_LIBS"
21662 elif test -n "$PKG_CONFIG"; then
21663    if test -n "$PKG_CONFIG" && \
21664    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
21665  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
21666  ac_status=$?
21667  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668  (exit $ac_status); }; then
21669  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
21670else
21671  pkg_failed=yes
21672fi
21673 else
21674    pkg_failed=untried
21675fi
21676
21677
21678
21679if test $pkg_failed = yes; then
21680
21681if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21682        _pkg_short_errors_supported=yes
21683else
21684        _pkg_short_errors_supported=no
21685fi
21686        if test $_pkg_short_errors_supported = yes; then
21687	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
21688        else
21689	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
21690        fi
21691	# Put the nasty error message in config.log where it belongs
21692	echo "$DRI_PKG_ERRORS" >&5
21693
21694	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
21695
21696$DRI_PKG_ERRORS
21697
21698Consider adjusting the PKG_CONFIG_PATH environment variable if you
21699installed software in a non-standard prefix.
21700
21701Alternatively, you may set the environment variables DRI_CFLAGS
21702and DRI_LIBS to avoid the need to call pkg-config.
21703See the pkg-config man page for more details.
21704" >&5
21705$as_echo "$as_me: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
21706
21707$DRI_PKG_ERRORS
21708
21709Consider adjusting the PKG_CONFIG_PATH environment variable if you
21710installed software in a non-standard prefix.
21711
21712Alternatively, you may set the environment variables DRI_CFLAGS
21713and DRI_LIBS to avoid the need to call pkg-config.
21714See the pkg-config man page for more details.
21715" >&2;}
21716   { (exit 1); exit 1; }; }
21717elif test $pkg_failed = untried; then
21718	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21719is in your PATH or set the PKG_CONFIG environment variable to the full
21720path to pkg-config.
21721
21722Alternatively, you may set the environment variables DRI_CFLAGS
21723and DRI_LIBS to avoid the need to call pkg-config.
21724See the pkg-config man page for more details.
21725
21726To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21727See \`config.log' for more details." >&5
21728$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21729is in your PATH or set the PKG_CONFIG environment variable to the full
21730path to pkg-config.
21731
21732Alternatively, you may set the environment variables DRI_CFLAGS
21733and DRI_LIBS to avoid the need to call pkg-config.
21734See the pkg-config man page for more details.
21735
21736To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21737See \`config.log' for more details." >&2;}
21738   { (exit 1); exit 1; }; }
21739else
21740	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
21741	DRI_LIBS=$pkg_cv_DRI_LIBS
21742        { $as_echo "$as_me:$LINENO: result: yes" >&5
21743$as_echo "yes" >&6; }
21744	:
21745fi
21746
21747cat >>confdefs.h <<\_ACEOF
21748#define XF86DRI 1
21749_ACEOF
21750
21751
21752cat >>confdefs.h <<\_ACEOF
21753#define XF86DRI_DEVEL 1
21754_ACEOF
21755
21756fi
21757
21758 if test x$SPARC = xyes; then
21759  SPARC_TRUE=
21760  SPARC_FALSE='#'
21761else
21762  SPARC_TRUE='#'
21763  SPARC_FALSE=
21764fi
21765
21766
21767
21768
21769
21770
21771DRIVER_NAME=sunffb
21772
21773
21774
21775
21776
21777if test x$APP_MAN_SUFFIX = x    ; then
21778    APP_MAN_SUFFIX=1
21779fi
21780if test x$APP_MAN_DIR = x    ; then
21781    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21782fi
21783
21784if test x$LIB_MAN_SUFFIX = x    ; then
21785    LIB_MAN_SUFFIX=3
21786fi
21787if test x$LIB_MAN_DIR = x    ; then
21788    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21789fi
21790
21791if test x$FILE_MAN_SUFFIX = x    ; then
21792    case $host_os in
21793	solaris*)	FILE_MAN_SUFFIX=4  ;;
21794	*)		FILE_MAN_SUFFIX=5  ;;
21795    esac
21796fi
21797if test x$FILE_MAN_DIR = x    ; then
21798    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21799fi
21800
21801if test x$MISC_MAN_SUFFIX = x    ; then
21802    case $host_os in
21803	solaris*)	MISC_MAN_SUFFIX=5  ;;
21804	*)		MISC_MAN_SUFFIX=7  ;;
21805    esac
21806fi
21807if test x$MISC_MAN_DIR = x    ; then
21808    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
21809fi
21810
21811if test x$DRIVER_MAN_SUFFIX = x    ; then
21812    case $host_os in
21813	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
21814	*)		DRIVER_MAN_SUFFIX=4  ;;
21815    esac
21816fi
21817if test x$DRIVER_MAN_DIR = x    ; then
21818    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
21819fi
21820
21821if test x$ADMIN_MAN_SUFFIX = x    ; then
21822    case $host_os in
21823	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
21824	*)		ADMIN_MAN_SUFFIX=8  ;;
21825    esac
21826fi
21827if test x$ADMIN_MAN_DIR = x    ; then
21828    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21829fi
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847# Check whether --with-release-version was given.
21848if test "${with_release_version+set}" = set; then
21849  withval=$with_release_version; RELEASE_VERSION="$withval"
21850else
21851  RELEASE_VERSION=""
21852fi
21853
21854	if test "x$RELEASE_VERSION" != "x"; then
21855		PACKAGE="$PACKAGE-$RELEASE_VERSION"
21856		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21857		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21858$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21859	fi
21860
21861cat >>confdefs.h <<_ACEOF
21862#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
21863_ACEOF
21864
21865	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
21866	if test "x$PVM" = "x"; then
21867		PVM="0"
21868	fi
21869
21870cat >>confdefs.h <<_ACEOF
21871#define PACKAGE_VERSION_MINOR $PVM
21872_ACEOF
21873
21874	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
21875	if test "x$PVP" = "x"; then
21876		PVP="0"
21877	fi
21878
21879cat >>confdefs.h <<_ACEOF
21880#define PACKAGE_VERSION_PATCHLEVEL $PVP
21881_ACEOF
21882
21883
21884
21885ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
21886
21887cat >confcache <<\_ACEOF
21888# This file is a shell script that caches the results of configure
21889# tests run on this system so they can be shared between configure
21890# scripts and configure runs, see configure's option --config-cache.
21891# It is not useful on other systems.  If it contains results you don't
21892# want to keep, you may remove or edit it.
21893#
21894# config.status only pays attention to the cache file if you give it
21895# the --recheck option to rerun configure.
21896#
21897# `ac_cv_env_foo' variables (set or unset) will be overridden when
21898# loading this file, other *unset* `ac_cv_foo' will be assigned the
21899# following values.
21900
21901_ACEOF
21902
21903# The following way of writing the cache mishandles newlines in values,
21904# but we know of no workaround that is simple, portable, and efficient.
21905# So, we kill variables containing newlines.
21906# Ultrix sh set writes to stderr and can't be redirected directly,
21907# and sets the high bit in the cache file unless we assign to the vars.
21908(
21909  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21910    eval ac_val=\$$ac_var
21911    case $ac_val in #(
21912    *${as_nl}*)
21913      case $ac_var in #(
21914      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21915$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21916      esac
21917      case $ac_var in #(
21918      _ | IFS | as_nl) ;; #(
21919      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21920      *) $as_unset $ac_var ;;
21921      esac ;;
21922    esac
21923  done
21924
21925  (set) 2>&1 |
21926    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21927    *${as_nl}ac_space=\ *)
21928      # `set' does not quote correctly, so add quotes (double-quote
21929      # substitution turns \\\\ into \\, and sed turns \\ into \).
21930      sed -n \
21931	"s/'/'\\\\''/g;
21932	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21933      ;; #(
21934    *)
21935      # `set' quotes correctly as required by POSIX, so do not add quotes.
21936      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21937      ;;
21938    esac |
21939    sort
21940) |
21941  sed '
21942     /^ac_cv_env_/b end
21943     t clear
21944     :clear
21945     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21946     t end
21947     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21948     :end' >>confcache
21949if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21950  if test -w "$cache_file"; then
21951    test "x$cache_file" != "x/dev/null" &&
21952      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21953$as_echo "$as_me: updating cache $cache_file" >&6;}
21954    cat confcache >$cache_file
21955  else
21956    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21957$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21958  fi
21959fi
21960rm -f confcache
21961
21962test "x$prefix" = xNONE && prefix=$ac_default_prefix
21963# Let make expand exec_prefix.
21964test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21965
21966DEFS=-DHAVE_CONFIG_H
21967
21968ac_libobjs=
21969ac_ltlibobjs=
21970for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21971  # 1. Remove the extension, and $U if already installed.
21972  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21973  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21974  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21975  #    will be set to the directory where LIBOBJS objects are built.
21976  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21977  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21978done
21979LIBOBJS=$ac_libobjs
21980
21981LTLIBOBJS=$ac_ltlibobjs
21982
21983
21984if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21985  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21986Usually this means the macro was only invoked conditionally." >&5
21987$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21988Usually this means the macro was only invoked conditionally." >&2;}
21989   { (exit 1); exit 1; }; }
21990fi
21991if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21992  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21993Usually this means the macro was only invoked conditionally." >&5
21994$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21995Usually this means the macro was only invoked conditionally." >&2;}
21996   { (exit 1); exit 1; }; }
21997fi
21998if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21999  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22000Usually this means the macro was only invoked conditionally." >&5
22001$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22002Usually this means the macro was only invoked conditionally." >&2;}
22003   { (exit 1); exit 1; }; }
22004fi
22005if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22006  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22007Usually this means the macro was only invoked conditionally." >&5
22008$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22009Usually this means the macro was only invoked conditionally." >&2;}
22010   { (exit 1); exit 1; }; }
22011fi
22012if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22013  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
22014Usually this means the macro was only invoked conditionally." >&5
22015$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
22016Usually this means the macro was only invoked conditionally." >&2;}
22017   { (exit 1); exit 1; }; }
22018fi
22019if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22020  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22021Usually this means the macro was only invoked conditionally." >&5
22022$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22023Usually this means the macro was only invoked conditionally." >&2;}
22024   { (exit 1); exit 1; }; }
22025fi
22026if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
22027  { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
22028Usually this means the macro was only invoked conditionally." >&5
22029$as_echo "$as_me: error: conditional \"DRI\" was never defined.
22030Usually this means the macro was only invoked conditionally." >&2;}
22031   { (exit 1); exit 1; }; }
22032fi
22033if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
22034  { { $as_echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
22035Usually this means the macro was only invoked conditionally." >&5
22036$as_echo "$as_me: error: conditional \"SPARC\" was never defined.
22037Usually this means the macro was only invoked conditionally." >&2;}
22038   { (exit 1); exit 1; }; }
22039fi
22040
22041: ${CONFIG_STATUS=./config.status}
22042ac_write_fail=0
22043ac_clean_files_save=$ac_clean_files
22044ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22045{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22046$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22047cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22048#! $SHELL
22049# Generated by $as_me.
22050# Run this file to recreate the current configuration.
22051# Compiler output produced by configure, useful for debugging
22052# configure, is in config.log if it exists.
22053
22054debug=false
22055ac_cs_recheck=false
22056ac_cs_silent=false
22057SHELL=\${CONFIG_SHELL-$SHELL}
22058_ACEOF
22059
22060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22061## --------------------- ##
22062## M4sh Initialization.  ##
22063## --------------------- ##
22064
22065# Be more Bourne compatible
22066DUALCASE=1; export DUALCASE # for MKS sh
22067if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22068  emulate sh
22069  NULLCMD=:
22070  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22071  # is contrary to our usage.  Disable this feature.
22072  alias -g '${1+"$@"}'='"$@"'
22073  setopt NO_GLOB_SUBST
22074else
22075  case `(set -o) 2>/dev/null` in
22076  *posix*) set -o posix ;;
22077esac
22078
22079fi
22080
22081
22082
22083
22084# PATH needs CR
22085# Avoid depending upon Character Ranges.
22086as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22087as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22088as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22089as_cr_digits='0123456789'
22090as_cr_alnum=$as_cr_Letters$as_cr_digits
22091
22092as_nl='
22093'
22094export as_nl
22095# Printing a long string crashes Solaris 7 /usr/bin/printf.
22096as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22097as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22098as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22099if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22100  as_echo='printf %s\n'
22101  as_echo_n='printf %s'
22102else
22103  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22104    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22105    as_echo_n='/usr/ucb/echo -n'
22106  else
22107    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22108    as_echo_n_body='eval
22109      arg=$1;
22110      case $arg in
22111      *"$as_nl"*)
22112	expr "X$arg" : "X\\(.*\\)$as_nl";
22113	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22114      esac;
22115      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22116    '
22117    export as_echo_n_body
22118    as_echo_n='sh -c $as_echo_n_body as_echo'
22119  fi
22120  export as_echo_body
22121  as_echo='sh -c $as_echo_body as_echo'
22122fi
22123
22124# The user is always right.
22125if test "${PATH_SEPARATOR+set}" != set; then
22126  PATH_SEPARATOR=:
22127  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22128    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22129      PATH_SEPARATOR=';'
22130  }
22131fi
22132
22133# Support unset when possible.
22134if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22135  as_unset=unset
22136else
22137  as_unset=false
22138fi
22139
22140
22141# IFS
22142# We need space, tab and new line, in precisely that order.  Quoting is
22143# there to prevent editors from complaining about space-tab.
22144# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22145# splitting by setting IFS to empty value.)
22146IFS=" ""	$as_nl"
22147
22148# Find who we are.  Look in the path if we contain no directory separator.
22149case $0 in
22150  *[\\/]* ) as_myself=$0 ;;
22151  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22152for as_dir in $PATH
22153do
22154  IFS=$as_save_IFS
22155  test -z "$as_dir" && as_dir=.
22156  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22157done
22158IFS=$as_save_IFS
22159
22160     ;;
22161esac
22162# We did not find ourselves, most probably we were run as `sh COMMAND'
22163# in which case we are not to be found in the path.
22164if test "x$as_myself" = x; then
22165  as_myself=$0
22166fi
22167if test ! -f "$as_myself"; then
22168  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22169  { (exit 1); exit 1; }
22170fi
22171
22172# Work around bugs in pre-3.0 UWIN ksh.
22173for as_var in ENV MAIL MAILPATH
22174do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22175done
22176PS1='$ '
22177PS2='> '
22178PS4='+ '
22179
22180# NLS nuisances.
22181LC_ALL=C
22182export LC_ALL
22183LANGUAGE=C
22184export LANGUAGE
22185
22186# Required to use basename.
22187if expr a : '\(a\)' >/dev/null 2>&1 &&
22188   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22189  as_expr=expr
22190else
22191  as_expr=false
22192fi
22193
22194if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22195  as_basename=basename
22196else
22197  as_basename=false
22198fi
22199
22200
22201# Name of the executable.
22202as_me=`$as_basename -- "$0" ||
22203$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22204	 X"$0" : 'X\(//\)$' \| \
22205	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22206$as_echo X/"$0" |
22207    sed '/^.*\/\([^/][^/]*\)\/*$/{
22208	    s//\1/
22209	    q
22210	  }
22211	  /^X\/\(\/\/\)$/{
22212	    s//\1/
22213	    q
22214	  }
22215	  /^X\/\(\/\).*/{
22216	    s//\1/
22217	    q
22218	  }
22219	  s/.*/./; q'`
22220
22221# CDPATH.
22222$as_unset CDPATH
22223
22224
22225
22226  as_lineno_1=$LINENO
22227  as_lineno_2=$LINENO
22228  test "x$as_lineno_1" != "x$as_lineno_2" &&
22229  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22230
22231  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22232  # uniformly replaced by the line number.  The first 'sed' inserts a
22233  # line-number line after each line using $LINENO; the second 'sed'
22234  # does the real work.  The second script uses 'N' to pair each
22235  # line-number line with the line containing $LINENO, and appends
22236  # trailing '-' during substitution so that $LINENO is not a special
22237  # case at line end.
22238  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22239  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22240  # E. McMahon (1931-1989) for sed's syntax.  :-)
22241  sed -n '
22242    p
22243    /[$]LINENO/=
22244  ' <$as_myself |
22245    sed '
22246      s/[$]LINENO.*/&-/
22247      t lineno
22248      b
22249      :lineno
22250      N
22251      :loop
22252      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22253      t loop
22254      s/-\n.*//
22255    ' >$as_me.lineno &&
22256  chmod +x "$as_me.lineno" ||
22257    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22258   { (exit 1); exit 1; }; }
22259
22260  # Don't try to exec as it changes $[0], causing all sort of problems
22261  # (the dirname of $[0] is not the place where we might find the
22262  # original and so on.  Autoconf is especially sensitive to this).
22263  . "./$as_me.lineno"
22264  # Exit status is that of the last command.
22265  exit
22266}
22267
22268
22269if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22270  as_dirname=dirname
22271else
22272  as_dirname=false
22273fi
22274
22275ECHO_C= ECHO_N= ECHO_T=
22276case `echo -n x` in
22277-n*)
22278  case `echo 'x\c'` in
22279  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22280  *)   ECHO_C='\c';;
22281  esac;;
22282*)
22283  ECHO_N='-n';;
22284esac
22285if expr a : '\(a\)' >/dev/null 2>&1 &&
22286   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22287  as_expr=expr
22288else
22289  as_expr=false
22290fi
22291
22292rm -f conf$$ conf$$.exe conf$$.file
22293if test -d conf$$.dir; then
22294  rm -f conf$$.dir/conf$$.file
22295else
22296  rm -f conf$$.dir
22297  mkdir conf$$.dir 2>/dev/null
22298fi
22299if (echo >conf$$.file) 2>/dev/null; then
22300  if ln -s conf$$.file conf$$ 2>/dev/null; then
22301    as_ln_s='ln -s'
22302    # ... but there are two gotchas:
22303    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22304    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22305    # In both cases, we have to default to `cp -p'.
22306    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22307      as_ln_s='cp -p'
22308  elif ln conf$$.file conf$$ 2>/dev/null; then
22309    as_ln_s=ln
22310  else
22311    as_ln_s='cp -p'
22312  fi
22313else
22314  as_ln_s='cp -p'
22315fi
22316rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22317rmdir conf$$.dir 2>/dev/null
22318
22319if mkdir -p . 2>/dev/null; then
22320  as_mkdir_p=:
22321else
22322  test -d ./-p && rmdir ./-p
22323  as_mkdir_p=false
22324fi
22325
22326if test -x / >/dev/null 2>&1; then
22327  as_test_x='test -x'
22328else
22329  if ls -dL / >/dev/null 2>&1; then
22330    as_ls_L_option=L
22331  else
22332    as_ls_L_option=
22333  fi
22334  as_test_x='
22335    eval sh -c '\''
22336      if test -d "$1"; then
22337	test -d "$1/.";
22338      else
22339	case $1 in
22340	-*)set "./$1";;
22341	esac;
22342	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22343	???[sx]*):;;*)false;;esac;fi
22344    '\'' sh
22345  '
22346fi
22347as_executable_p=$as_test_x
22348
22349# Sed expression to map a string onto a valid CPP name.
22350as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22351
22352# Sed expression to map a string onto a valid variable name.
22353as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22354
22355
22356exec 6>&1
22357
22358# Save the log message, to keep $[0] and so on meaningful, and to
22359# report actual input values of CONFIG_FILES etc. instead of their
22360# values after options handling.
22361ac_log="
22362This file was extended by xf86-video-sunffb $as_me 1.2.0, which was
22363generated by GNU Autoconf 2.62.  Invocation command line was
22364
22365  CONFIG_FILES    = $CONFIG_FILES
22366  CONFIG_HEADERS  = $CONFIG_HEADERS
22367  CONFIG_LINKS    = $CONFIG_LINKS
22368  CONFIG_COMMANDS = $CONFIG_COMMANDS
22369  $ $0 $@
22370
22371on `(hostname || uname -n) 2>/dev/null | sed 1q`
22372"
22373
22374_ACEOF
22375
22376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22377# Files that config.status was made for.
22378config_files="`echo $ac_config_files`"
22379config_headers="`echo $ac_config_headers`"
22380config_commands="`echo $ac_config_commands`"
22381
22382_ACEOF
22383
22384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22385ac_cs_usage="\
22386\`$as_me' instantiates files from templates according to the
22387current configuration.
22388
22389Usage: $0 [OPTIONS] [FILE]...
22390
22391  -h, --help       print this help, then exit
22392  -V, --version    print version number and configuration settings, then exit
22393  -q, --quiet      do not print progress messages
22394  -d, --debug      don't remove temporary files
22395      --recheck    update $as_me by reconfiguring in the same conditions
22396  --file=FILE[:TEMPLATE]
22397                   instantiate the configuration file FILE
22398  --header=FILE[:TEMPLATE]
22399                   instantiate the configuration header FILE
22400
22401Configuration files:
22402$config_files
22403
22404Configuration headers:
22405$config_headers
22406
22407Configuration commands:
22408$config_commands
22409
22410Report bugs to <bug-autoconf@gnu.org>."
22411
22412_ACEOF
22413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22414ac_cs_version="\\
22415xf86-video-sunffb config.status 1.2.0
22416configured by $0, generated by GNU Autoconf 2.62,
22417  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22418
22419Copyright (C) 2008 Free Software Foundation, Inc.
22420This config.status script is free software; the Free Software Foundation
22421gives unlimited permission to copy, distribute and modify it."
22422
22423ac_pwd='$ac_pwd'
22424srcdir='$srcdir'
22425INSTALL='$INSTALL'
22426MKDIR_P='$MKDIR_P'
22427AWK='$AWK'
22428test -n "\$AWK" || AWK=awk
22429_ACEOF
22430
22431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22432# The default lists apply if the user does not specify any file.
22433ac_need_defaults=:
22434while test $# != 0
22435do
22436  case $1 in
22437  --*=*)
22438    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22439    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22440    ac_shift=:
22441    ;;
22442  *)
22443    ac_option=$1
22444    ac_optarg=$2
22445    ac_shift=shift
22446    ;;
22447  esac
22448
22449  case $ac_option in
22450  # Handling of the options.
22451  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22452    ac_cs_recheck=: ;;
22453  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22454    $as_echo "$ac_cs_version"; exit ;;
22455  --debug | --debu | --deb | --de | --d | -d )
22456    debug=: ;;
22457  --file | --fil | --fi | --f )
22458    $ac_shift
22459    case $ac_optarg in
22460    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22461    esac
22462    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22463    ac_need_defaults=false;;
22464  --header | --heade | --head | --hea )
22465    $ac_shift
22466    case $ac_optarg in
22467    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22468    esac
22469    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22470    ac_need_defaults=false;;
22471  --he | --h)
22472    # Conflict between --help and --header
22473    { $as_echo "$as_me: error: ambiguous option: $1
22474Try \`$0 --help' for more information." >&2
22475   { (exit 1); exit 1; }; };;
22476  --help | --hel | -h )
22477    $as_echo "$ac_cs_usage"; exit ;;
22478  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22479  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22480    ac_cs_silent=: ;;
22481
22482  # This is an error.
22483  -*) { $as_echo "$as_me: error: unrecognized option: $1
22484Try \`$0 --help' for more information." >&2
22485   { (exit 1); exit 1; }; } ;;
22486
22487  *) ac_config_targets="$ac_config_targets $1"
22488     ac_need_defaults=false ;;
22489
22490  esac
22491  shift
22492done
22493
22494ac_configure_extra_args=
22495
22496if $ac_cs_silent; then
22497  exec 6>/dev/null
22498  ac_configure_extra_args="$ac_configure_extra_args --silent"
22499fi
22500
22501_ACEOF
22502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22503if \$ac_cs_recheck; then
22504  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22505  shift
22506  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22507  CONFIG_SHELL='$SHELL'
22508  export CONFIG_SHELL
22509  exec "\$@"
22510fi
22511
22512_ACEOF
22513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22514exec 5>>config.log
22515{
22516  echo
22517  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22518## Running $as_me. ##
22519_ASBOX
22520  $as_echo "$ac_log"
22521} >&5
22522
22523_ACEOF
22524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22525#
22526# INIT-COMMANDS
22527#
22528AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22529
22530_ACEOF
22531
22532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22533
22534# Handling of arguments.
22535for ac_config_target in $ac_config_targets
22536do
22537  case $ac_config_target in
22538    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22539    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22540    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22541    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22542    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22543
22544  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22545$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22546   { (exit 1); exit 1; }; };;
22547  esac
22548done
22549
22550
22551# If the user did not use the arguments to specify the items to instantiate,
22552# then the envvar interface is used.  Set only those that are not.
22553# We use the long form for the default assignment because of an extremely
22554# bizarre bug on SunOS 4.1.3.
22555if $ac_need_defaults; then
22556  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22557  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22558  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22559fi
22560
22561# Have a temporary directory for convenience.  Make it in the build tree
22562# simply because there is no reason against having it here, and in addition,
22563# creating and moving files from /tmp can sometimes cause problems.
22564# Hook for its removal unless debugging.
22565# Note that there is a small window in which the directory will not be cleaned:
22566# after its creation but before its name has been assigned to `$tmp'.
22567$debug ||
22568{
22569  tmp=
22570  trap 'exit_status=$?
22571  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22572' 0
22573  trap '{ (exit 1); exit 1; }' 1 2 13 15
22574}
22575# Create a (secure) tmp directory for tmp files.
22576
22577{
22578  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22579  test -n "$tmp" && test -d "$tmp"
22580}  ||
22581{
22582  tmp=./conf$$-$RANDOM
22583  (umask 077 && mkdir "$tmp")
22584} ||
22585{
22586   $as_echo "$as_me: cannot create a temporary directory in ." >&2
22587   { (exit 1); exit 1; }
22588}
22589
22590# Set up the scripts for CONFIG_FILES section.
22591# No need to generate them if there are no CONFIG_FILES.
22592# This happens for instance with `./config.status config.h'.
22593if test -n "$CONFIG_FILES"; then
22594
22595
22596ac_cr='
22597'
22598ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22599if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22600  ac_cs_awk_cr='\\r'
22601else
22602  ac_cs_awk_cr=$ac_cr
22603fi
22604
22605echo 'BEGIN {' >"$tmp/subs1.awk" &&
22606_ACEOF
22607
22608
22609{
22610  echo "cat >conf$$subs.awk <<_ACEOF" &&
22611  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22612  echo "_ACEOF"
22613} >conf$$subs.sh ||
22614  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22615$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22616   { (exit 1); exit 1; }; }
22617ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22618ac_delim='%!_!# '
22619for ac_last_try in false false false false false :; do
22620  . ./conf$$subs.sh ||
22621    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22622$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22623   { (exit 1); exit 1; }; }
22624
22625  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
22626    break
22627  elif $ac_last_try; then
22628    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22629$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22630   { (exit 1); exit 1; }; }
22631  else
22632    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22633  fi
22634done
22635rm -f conf$$subs.sh
22636
22637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22638cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22639_ACEOF
22640sed -n '
22641h
22642s/^/S["/; s/!.*/"]=/
22643p
22644g
22645s/^[^!]*!//
22646:repl
22647t repl
22648s/'"$ac_delim"'$//
22649t delim
22650:nl
22651h
22652s/\(.\{148\}\).*/\1/
22653t more1
22654s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22655p
22656n
22657b repl
22658:more1
22659s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22660p
22661g
22662s/.\{148\}//
22663t nl
22664:delim
22665h
22666s/\(.\{148\}\).*/\1/
22667t more2
22668s/["\\]/\\&/g; s/^/"/; s/$/"/
22669p
22670b
22671:more2
22672s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22673p
22674g
22675s/.\{148\}//
22676t delim
22677' <conf$$subs.awk | sed '
22678/^[^""]/{
22679  N
22680  s/\n//
22681}
22682' >>$CONFIG_STATUS || ac_write_fail=1
22683rm -f conf$$subs.awk
22684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22685_ACAWK
22686cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22687  for (key in S) S_is_set[key] = 1
22688  FS = ""
22689
22690}
22691{
22692  line = $ 0
22693  nfields = split(line, field, "@")
22694  substed = 0
22695  len = length(field[1])
22696  for (i = 2; i < nfields; i++) {
22697    key = field[i]
22698    keylen = length(key)
22699    if (S_is_set[key]) {
22700      value = S[key]
22701      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22702      len += length(value) + length(field[++i])
22703      substed = 1
22704    } else
22705      len += 1 + keylen
22706  }
22707
22708  print line
22709}
22710
22711_ACAWK
22712_ACEOF
22713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22714if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22715  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22716else
22717  cat
22718fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22719  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22720$as_echo "$as_me: error: could not setup config files machinery" >&2;}
22721   { (exit 1); exit 1; }; }
22722_ACEOF
22723
22724# VPATH may cause trouble with some makes, so we remove $(srcdir),
22725# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22726# trailing colons and then remove the whole line if VPATH becomes empty
22727# (actually we leave an empty line to preserve line numbers).
22728if test "x$srcdir" = x.; then
22729  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22730s/:*\$(srcdir):*/:/
22731s/:*\${srcdir}:*/:/
22732s/:*@srcdir@:*/:/
22733s/^\([^=]*=[	 ]*\):*/\1/
22734s/:*$//
22735s/^[^=]*=[	 ]*$//
22736}'
22737fi
22738
22739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22740fi # test -n "$CONFIG_FILES"
22741
22742# Set up the scripts for CONFIG_HEADERS section.
22743# No need to generate them if there are no CONFIG_HEADERS.
22744# This happens for instance with `./config.status Makefile'.
22745if test -n "$CONFIG_HEADERS"; then
22746cat >"$tmp/defines.awk" <<\_ACAWK ||
22747BEGIN {
22748_ACEOF
22749
22750# Transform confdefs.h into an awk script `defines.awk', embedded as
22751# here-document in config.status, that substitutes the proper values into
22752# config.h.in to produce config.h.
22753
22754# Create a delimiter string that does not exist in confdefs.h, to ease
22755# handling of long lines.
22756ac_delim='%!_!# '
22757for ac_last_try in false false :; do
22758  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22759  if test -z "$ac_t"; then
22760    break
22761  elif $ac_last_try; then
22762    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22763$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22764   { (exit 1); exit 1; }; }
22765  else
22766    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22767  fi
22768done
22769
22770# For the awk script, D is an array of macro values keyed by name,
22771# likewise P contains macro parameters if any.  Preserve backslash
22772# newline sequences.
22773
22774ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22775sed -n '
22776s/.\{148\}/&'"$ac_delim"'/g
22777t rset
22778:rset
22779s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22780t def
22781d
22782:def
22783s/\\$//
22784t bsnl
22785s/["\\]/\\&/g
22786s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22787D["\1"]=" \3"/p
22788s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22789d
22790:bsnl
22791s/["\\]/\\&/g
22792s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22793D["\1"]=" \3\\\\\\n"\\/p
22794t cont
22795s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22796t cont
22797d
22798:cont
22799n
22800s/.\{148\}/&'"$ac_delim"'/g
22801t clear
22802:clear
22803s/\\$//
22804t bsnlc
22805s/["\\]/\\&/g; s/^/"/; s/$/"/p
22806d
22807:bsnlc
22808s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22809b cont
22810' <confdefs.h | sed '
22811s/'"$ac_delim"'/"\\\
22812"/g' >>$CONFIG_STATUS || ac_write_fail=1
22813
22814cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22815  for (key in D) D_is_set[key] = 1
22816  FS = ""
22817}
22818/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22819  line = \$ 0
22820  split(line, arg, " ")
22821  if (arg[1] == "#") {
22822    defundef = arg[2]
22823    mac1 = arg[3]
22824  } else {
22825    defundef = substr(arg[1], 2)
22826    mac1 = arg[2]
22827  }
22828  split(mac1, mac2, "(") #)
22829  macro = mac2[1]
22830  prefix = substr(line, 1, index(line, defundef) - 1)
22831  if (D_is_set[macro]) {
22832    # Preserve the white space surrounding the "#".
22833    print prefix "define", macro P[macro] D[macro]
22834    next
22835  } else {
22836    # Replace #undef with comments.  This is necessary, for example,
22837    # in the case of _POSIX_SOURCE, which is predefined and required
22838    # on some systems where configure will not decide to define it.
22839    if (defundef == "undef") {
22840      print "/*", prefix defundef, macro, "*/"
22841      next
22842    }
22843  }
22844}
22845{ print }
22846_ACAWK
22847_ACEOF
22848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22849  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22850$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22851   { (exit 1); exit 1; }; }
22852fi # test -n "$CONFIG_HEADERS"
22853
22854
22855eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22856shift
22857for ac_tag
22858do
22859  case $ac_tag in
22860  :[FHLC]) ac_mode=$ac_tag; continue;;
22861  esac
22862  case $ac_mode$ac_tag in
22863  :[FHL]*:*);;
22864  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22865$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22866   { (exit 1); exit 1; }; };;
22867  :[FH]-) ac_tag=-:-;;
22868  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22869  esac
22870  ac_save_IFS=$IFS
22871  IFS=:
22872  set x $ac_tag
22873  IFS=$ac_save_IFS
22874  shift
22875  ac_file=$1
22876  shift
22877
22878  case $ac_mode in
22879  :L) ac_source=$1;;
22880  :[FH])
22881    ac_file_inputs=
22882    for ac_f
22883    do
22884      case $ac_f in
22885      -) ac_f="$tmp/stdin";;
22886      *) # Look for the file first in the build tree, then in the source tree
22887	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22888	 # because $ac_f cannot contain `:'.
22889	 test -f "$ac_f" ||
22890	   case $ac_f in
22891	   [\\/$]*) false;;
22892	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22893	   esac ||
22894	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22895$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22896   { (exit 1); exit 1; }; };;
22897      esac
22898      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22899      ac_file_inputs="$ac_file_inputs '$ac_f'"
22900    done
22901
22902    # Let's still pretend it is `configure' which instantiates (i.e., don't
22903    # use $as_me), people would be surprised to read:
22904    #    /* config.h.  Generated by config.status.  */
22905    configure_input='Generated from '`
22906	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22907	`' by configure.'
22908    if test x"$ac_file" != x-; then
22909      configure_input="$ac_file.  $configure_input"
22910      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22911$as_echo "$as_me: creating $ac_file" >&6;}
22912    fi
22913    # Neutralize special characters interpreted by sed in replacement strings.
22914    case $configure_input in #(
22915    *\&* | *\|* | *\\* )
22916       ac_sed_conf_input=`$as_echo "$configure_input" |
22917       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22918    *) ac_sed_conf_input=$configure_input;;
22919    esac
22920
22921    case $ac_tag in
22922    *:-:* | *:-) cat >"$tmp/stdin" \
22923      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22924$as_echo "$as_me: error: could not create $ac_file" >&2;}
22925   { (exit 1); exit 1; }; } ;;
22926    esac
22927    ;;
22928  esac
22929
22930  ac_dir=`$as_dirname -- "$ac_file" ||
22931$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22932	 X"$ac_file" : 'X\(//\)[^/]' \| \
22933	 X"$ac_file" : 'X\(//\)$' \| \
22934	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22935$as_echo X"$ac_file" |
22936    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22937	    s//\1/
22938	    q
22939	  }
22940	  /^X\(\/\/\)[^/].*/{
22941	    s//\1/
22942	    q
22943	  }
22944	  /^X\(\/\/\)$/{
22945	    s//\1/
22946	    q
22947	  }
22948	  /^X\(\/\).*/{
22949	    s//\1/
22950	    q
22951	  }
22952	  s/.*/./; q'`
22953  { as_dir="$ac_dir"
22954  case $as_dir in #(
22955  -*) as_dir=./$as_dir;;
22956  esac
22957  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22958    as_dirs=
22959    while :; do
22960      case $as_dir in #(
22961      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22962      *) as_qdir=$as_dir;;
22963      esac
22964      as_dirs="'$as_qdir' $as_dirs"
22965      as_dir=`$as_dirname -- "$as_dir" ||
22966$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22967	 X"$as_dir" : 'X\(//\)[^/]' \| \
22968	 X"$as_dir" : 'X\(//\)$' \| \
22969	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22970$as_echo X"$as_dir" |
22971    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22972	    s//\1/
22973	    q
22974	  }
22975	  /^X\(\/\/\)[^/].*/{
22976	    s//\1/
22977	    q
22978	  }
22979	  /^X\(\/\/\)$/{
22980	    s//\1/
22981	    q
22982	  }
22983	  /^X\(\/\).*/{
22984	    s//\1/
22985	    q
22986	  }
22987	  s/.*/./; q'`
22988      test -d "$as_dir" && break
22989    done
22990    test -z "$as_dirs" || eval "mkdir $as_dirs"
22991  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22992$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22993   { (exit 1); exit 1; }; }; }
22994  ac_builddir=.
22995
22996case "$ac_dir" in
22997.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22998*)
22999  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23000  # A ".." for each directory in $ac_dir_suffix.
23001  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23002  case $ac_top_builddir_sub in
23003  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23004  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23005  esac ;;
23006esac
23007ac_abs_top_builddir=$ac_pwd
23008ac_abs_builddir=$ac_pwd$ac_dir_suffix
23009# for backward compatibility:
23010ac_top_builddir=$ac_top_build_prefix
23011
23012case $srcdir in
23013  .)  # We are building in place.
23014    ac_srcdir=.
23015    ac_top_srcdir=$ac_top_builddir_sub
23016    ac_abs_top_srcdir=$ac_pwd ;;
23017  [\\/]* | ?:[\\/]* )  # Absolute name.
23018    ac_srcdir=$srcdir$ac_dir_suffix;
23019    ac_top_srcdir=$srcdir
23020    ac_abs_top_srcdir=$srcdir ;;
23021  *) # Relative name.
23022    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23023    ac_top_srcdir=$ac_top_build_prefix$srcdir
23024    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23025esac
23026ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23027
23028
23029  case $ac_mode in
23030  :F)
23031  #
23032  # CONFIG_FILE
23033  #
23034
23035  case $INSTALL in
23036  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23037  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23038  esac
23039  ac_MKDIR_P=$MKDIR_P
23040  case $MKDIR_P in
23041  [\\/$]* | ?:[\\/]* ) ;;
23042  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23043  esac
23044_ACEOF
23045
23046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23047# If the template does not know about datarootdir, expand it.
23048# FIXME: This hack should be removed a few years after 2.60.
23049ac_datarootdir_hack=; ac_datarootdir_seen=
23050
23051ac_sed_dataroot='
23052/datarootdir/ {
23053  p
23054  q
23055}
23056/@datadir@/p
23057/@docdir@/p
23058/@infodir@/p
23059/@localedir@/p
23060/@mandir@/p
23061'
23062case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23063*datarootdir*) ac_datarootdir_seen=yes;;
23064*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23065  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23066$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23067_ACEOF
23068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23069  ac_datarootdir_hack='
23070  s&@datadir@&$datadir&g
23071  s&@docdir@&$docdir&g
23072  s&@infodir@&$infodir&g
23073  s&@localedir@&$localedir&g
23074  s&@mandir@&$mandir&g
23075    s&\\\${datarootdir}&$datarootdir&g' ;;
23076esac
23077_ACEOF
23078
23079# Neutralize VPATH when `$srcdir' = `.'.
23080# Shell code in configure.ac might set extrasub.
23081# FIXME: do we really want to maintain this feature?
23082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23083ac_sed_extra="$ac_vpsub
23084$extrasub
23085_ACEOF
23086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23087:t
23088/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23089s|@configure_input@|$ac_sed_conf_input|;t t
23090s&@top_builddir@&$ac_top_builddir_sub&;t t
23091s&@top_build_prefix@&$ac_top_build_prefix&;t t
23092s&@srcdir@&$ac_srcdir&;t t
23093s&@abs_srcdir@&$ac_abs_srcdir&;t t
23094s&@top_srcdir@&$ac_top_srcdir&;t t
23095s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23096s&@builddir@&$ac_builddir&;t t
23097s&@abs_builddir@&$ac_abs_builddir&;t t
23098s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23099s&@INSTALL@&$ac_INSTALL&;t t
23100s&@MKDIR_P@&$ac_MKDIR_P&;t t
23101$ac_datarootdir_hack
23102"
23103eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23104  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23105$as_echo "$as_me: error: could not create $ac_file" >&2;}
23106   { (exit 1); exit 1; }; }
23107
23108test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23109  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23110  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23111  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23112which seems to be undefined.  Please make sure it is defined." >&5
23113$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23114which seems to be undefined.  Please make sure it is defined." >&2;}
23115
23116  rm -f "$tmp/stdin"
23117  case $ac_file in
23118  -) cat "$tmp/out" && rm -f "$tmp/out";;
23119  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23120  esac \
23121  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23122$as_echo "$as_me: error: could not create $ac_file" >&2;}
23123   { (exit 1); exit 1; }; }
23124 ;;
23125  :H)
23126  #
23127  # CONFIG_HEADER
23128  #
23129  if test x"$ac_file" != x-; then
23130    {
23131      $as_echo "/* $configure_input  */" \
23132      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23133    } >"$tmp/config.h" \
23134      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23135$as_echo "$as_me: error: could not create $ac_file" >&2;}
23136   { (exit 1); exit 1; }; }
23137    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23138      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23139$as_echo "$as_me: $ac_file is unchanged" >&6;}
23140    else
23141      rm -f "$ac_file"
23142      mv "$tmp/config.h" "$ac_file" \
23143	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23144$as_echo "$as_me: error: could not create $ac_file" >&2;}
23145   { (exit 1); exit 1; }; }
23146    fi
23147  else
23148    $as_echo "/* $configure_input  */" \
23149      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23150      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23151$as_echo "$as_me: error: could not create -" >&2;}
23152   { (exit 1); exit 1; }; }
23153  fi
23154# Compute "$ac_file"'s index in $config_headers.
23155_am_arg="$ac_file"
23156_am_stamp_count=1
23157for _am_header in $config_headers :; do
23158  case $_am_header in
23159    $_am_arg | $_am_arg:* )
23160      break ;;
23161    * )
23162      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23163  esac
23164done
23165echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23166$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23167	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23168	 X"$_am_arg" : 'X\(//\)$' \| \
23169	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23170$as_echo X"$_am_arg" |
23171    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23172	    s//\1/
23173	    q
23174	  }
23175	  /^X\(\/\/\)[^/].*/{
23176	    s//\1/
23177	    q
23178	  }
23179	  /^X\(\/\/\)$/{
23180	    s//\1/
23181	    q
23182	  }
23183	  /^X\(\/\).*/{
23184	    s//\1/
23185	    q
23186	  }
23187	  s/.*/./; q'`/stamp-h$_am_stamp_count
23188 ;;
23189
23190  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23191$as_echo "$as_me: executing $ac_file commands" >&6;}
23192 ;;
23193  esac
23194
23195
23196  case $ac_file$ac_mode in
23197    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23198  # Strip MF so we end up with the name of the file.
23199  mf=`echo "$mf" | sed -e 's/:.*$//'`
23200  # Check whether this is an Automake generated Makefile or not.
23201  # We used to match only the files named `Makefile.in', but
23202  # some people rename them; so instead we look at the file content.
23203  # Grep'ing the first line is not enough: some people post-process
23204  # each Makefile.in and add a new line on top of each file to say so.
23205  # Grep'ing the whole file is not good either: AIX grep has a line
23206  # limit of 2048, but all sed's we know have understand at least 4000.
23207  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23208    dirpart=`$as_dirname -- "$mf" ||
23209$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23210	 X"$mf" : 'X\(//\)[^/]' \| \
23211	 X"$mf" : 'X\(//\)$' \| \
23212	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23213$as_echo X"$mf" |
23214    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23215	    s//\1/
23216	    q
23217	  }
23218	  /^X\(\/\/\)[^/].*/{
23219	    s//\1/
23220	    q
23221	  }
23222	  /^X\(\/\/\)$/{
23223	    s//\1/
23224	    q
23225	  }
23226	  /^X\(\/\).*/{
23227	    s//\1/
23228	    q
23229	  }
23230	  s/.*/./; q'`
23231  else
23232    continue
23233  fi
23234  # Extract the definition of DEPDIR, am__include, and am__quote
23235  # from the Makefile without running `make'.
23236  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23237  test -z "$DEPDIR" && continue
23238  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23239  test -z "am__include" && continue
23240  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23241  # When using ansi2knr, U may be empty or an underscore; expand it
23242  U=`sed -n 's/^U = //p' < "$mf"`
23243  # Find all dependency output files, they are included files with
23244  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23245  # simplest approach to changing $(DEPDIR) to its actual value in the
23246  # expansion.
23247  for file in `sed -n "
23248    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23249       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23250    # Make sure the directory exists.
23251    test -f "$dirpart/$file" && continue
23252    fdir=`$as_dirname -- "$file" ||
23253$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23254	 X"$file" : 'X\(//\)[^/]' \| \
23255	 X"$file" : 'X\(//\)$' \| \
23256	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23257$as_echo X"$file" |
23258    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23259	    s//\1/
23260	    q
23261	  }
23262	  /^X\(\/\/\)[^/].*/{
23263	    s//\1/
23264	    q
23265	  }
23266	  /^X\(\/\/\)$/{
23267	    s//\1/
23268	    q
23269	  }
23270	  /^X\(\/\).*/{
23271	    s//\1/
23272	    q
23273	  }
23274	  s/.*/./; q'`
23275    { as_dir=$dirpart/$fdir
23276  case $as_dir in #(
23277  -*) as_dir=./$as_dir;;
23278  esac
23279  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23280    as_dirs=
23281    while :; do
23282      case $as_dir in #(
23283      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23284      *) as_qdir=$as_dir;;
23285      esac
23286      as_dirs="'$as_qdir' $as_dirs"
23287      as_dir=`$as_dirname -- "$as_dir" ||
23288$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23289	 X"$as_dir" : 'X\(//\)[^/]' \| \
23290	 X"$as_dir" : 'X\(//\)$' \| \
23291	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23292$as_echo X"$as_dir" |
23293    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23294	    s//\1/
23295	    q
23296	  }
23297	  /^X\(\/\/\)[^/].*/{
23298	    s//\1/
23299	    q
23300	  }
23301	  /^X\(\/\/\)$/{
23302	    s//\1/
23303	    q
23304	  }
23305	  /^X\(\/\).*/{
23306	    s//\1/
23307	    q
23308	  }
23309	  s/.*/./; q'`
23310      test -d "$as_dir" && break
23311    done
23312    test -z "$as_dirs" || eval "mkdir $as_dirs"
23313  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23314$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23315   { (exit 1); exit 1; }; }; }
23316    # echo "creating $dirpart/$file"
23317    echo '# dummy' > "$dirpart/$file"
23318  done
23319done
23320 ;;
23321
23322  esac
23323done # for ac_tag
23324
23325
23326{ (exit 0); exit 0; }
23327_ACEOF
23328chmod +x $CONFIG_STATUS
23329ac_clean_files=$ac_clean_files_save
23330
23331test $ac_write_fail = 0 ||
23332  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23333$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23334   { (exit 1); exit 1; }; }
23335
23336
23337# configure is writing to config.log, and then calls config.status.
23338# config.status does its own redirection, appending to config.log.
23339# Unfortunately, on DOS this fails, as config.log is still kept open
23340# by configure, so config.status won't be able to write to it; its
23341# output is simply discarded.  So we exec the FD to /dev/null,
23342# effectively closing config.log, so it can be properly (re)opened and
23343# appended to by config.status.  When coming back to configure, we
23344# need to make the FD available again.
23345if test "$no_create" != yes; then
23346  ac_cs_success=:
23347  ac_config_status_args=
23348  test "$silent" = yes &&
23349    ac_config_status_args="$ac_config_status_args --quiet"
23350  exec 5>/dev/null
23351  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23352  exec 5>>config.log
23353  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23354  # would make configure fail if this is the last instruction.
23355  $ac_cs_success || { (exit 1); exit 1; }
23356fi
23357if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23358  { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
23359$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
23360fi
23361
23362