configure revision 643b027f
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for xf86-video-mga 1.4.11.
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-mga'
752PACKAGE_TARNAME='xf86-video-mga'
753PACKAGE_VERSION='1.4.11'
754PACKAGE_STRING='xf86-video-mga 1.4.11'
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='am__EXEEXT_FALSE
795am__EXEEXT_TRUE
796LTLIBOBJS
797LIBOBJS
798distcleancheck_listfiles
799CHANGELOG_CMD
800ADMIN_MAN_DIR
801DRIVER_MAN_DIR
802MISC_MAN_DIR
803FILE_MAN_DIR
804LIB_MAN_DIR
805APP_MAN_DIR
806ADMIN_MAN_SUFFIX
807DRIVER_MAN_SUFFIX
808MISC_MAN_SUFFIX
809FILE_MAN_SUFFIX
810LIB_MAN_SUFFIX
811APP_MAN_SUFFIX
812DRIVER_NAME
813moduledir
814USE_EXA_FALSE
815USE_EXA_TRUE
816USE_XAA_FALSE
817USE_XAA_TRUE
818XSERVER_LIBPCIACCESS_FALSE
819XSERVER_LIBPCIACCESS_TRUE
820PCIACCESS_LIBS
821PCIACCESS_CFLAGS
822DRI_LIBS
823DRI_CFLAGS
824DRI_FALSE
825DRI_TRUE
826XORG_LIBS
827XORG_CFLAGS
828PKG_CONFIG
829LIBTOOL
830ac_ct_F77
831FFLAGS
832F77
833CXXCPP
834am__fastdepCXX_FALSE
835am__fastdepCXX_TRUE
836CXXDEPMODE
837ac_ct_CXX
838CXXFLAGS
839CXX
840CPP
841NMEDIT
842DSYMUTIL
843RANLIB
844AR
845ECHO
846LN_S
847EGREP
848GREP
849SED
850am__fastdepCC_FALSE
851am__fastdepCC_TRUE
852CCDEPMODE
853AMDEPBACKSLASH
854AMDEP_FALSE
855AMDEP_TRUE
856am__quote
857am__include
858DEPDIR
859OBJEXT
860EXEEXT
861ac_ct_CC
862CPPFLAGS
863LDFLAGS
864CFLAGS
865CC
866host_os
867host_vendor
868host_cpu
869host
870build_os
871build_vendor
872build_cpu
873build
874MAINT
875MAINTAINER_MODE_FALSE
876MAINTAINER_MODE_TRUE
877am__untar
878am__tar
879AMTAR
880am__leading_dot
881SET_MAKE
882AWK
883mkdir_p
884MKDIR_P
885INSTALL_STRIP_PROGRAM
886STRIP
887install_sh
888MAKEINFO
889AUTOHEADER
890AUTOMAKE
891AUTOCONF
892ACLOCAL
893VERSION
894PACKAGE
895CYGPATH_W
896am__isrc
897INSTALL_DATA
898INSTALL_SCRIPT
899INSTALL_PROGRAM
900target_alias
901host_alias
902build_alias
903LIBS
904ECHO_T
905ECHO_N
906ECHO_C
907DEFS
908mandir
909localedir
910libdir
911psdir
912pdfdir
913dvidir
914htmldir
915infodir
916docdir
917oldincludedir
918includedir
919localstatedir
920sharedstatedir
921sysconfdir
922datadir
923datarootdir
924libexecdir
925sbindir
926bindir
927program_transform_name
928prefix
929exec_prefix
930PACKAGE_BUGREPORT
931PACKAGE_STRING
932PACKAGE_VERSION
933PACKAGE_TARNAME
934PACKAGE_NAME
935PATH_SEPARATOR
936SHELL'
937ac_subst_files=''
938ac_user_opts='
939enable_option_checking
940with_release_version
941enable_maintainer_mode
942enable_static
943enable_shared
944enable_fast_install
945enable_dependency_tracking
946with_gnu_ld
947enable_libtool_lock
948with_pic
949with_tags
950with_xorg_module_dir
951enable_dri
952enable_exa
953'
954      ac_precious_vars='build_alias
955host_alias
956target_alias
957CC
958CFLAGS
959LDFLAGS
960LIBS
961CPPFLAGS
962CPP
963CXX
964CXXFLAGS
965CCC
966CXXCPP
967F77
968FFLAGS
969PKG_CONFIG
970XORG_CFLAGS
971XORG_LIBS
972DRI_CFLAGS
973DRI_LIBS
974PCIACCESS_CFLAGS
975PCIACCESS_LIBS'
976
977
978# Initialize some variables set by options.
979ac_init_help=
980ac_init_version=false
981ac_unrecognized_opts=
982ac_unrecognized_sep=
983# The variables have the same names as the options, with
984# dashes changed to underlines.
985cache_file=/dev/null
986exec_prefix=NONE
987no_create=
988no_recursion=
989prefix=NONE
990program_prefix=NONE
991program_suffix=NONE
992program_transform_name=s,x,x,
993silent=
994site=
995srcdir=
996verbose=
997x_includes=NONE
998x_libraries=NONE
999
1000# Installation directory options.
1001# These are left unexpanded so users can "make install exec_prefix=/foo"
1002# and all the variables that are supposed to be based on exec_prefix
1003# by default will actually change.
1004# Use braces instead of parens because sh, perl, etc. also accept them.
1005# (The list follows the same order as the GNU Coding Standards.)
1006bindir='${exec_prefix}/bin'
1007sbindir='${exec_prefix}/sbin'
1008libexecdir='${exec_prefix}/libexec'
1009datarootdir='${prefix}/share'
1010datadir='${datarootdir}'
1011sysconfdir='${prefix}/etc'
1012sharedstatedir='${prefix}/com'
1013localstatedir='${prefix}/var'
1014includedir='${prefix}/include'
1015oldincludedir='/usr/include'
1016docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1017infodir='${datarootdir}/info'
1018htmldir='${docdir}'
1019dvidir='${docdir}'
1020pdfdir='${docdir}'
1021psdir='${docdir}'
1022libdir='${exec_prefix}/lib'
1023localedir='${datarootdir}/locale'
1024mandir='${datarootdir}/man'
1025
1026ac_prev=
1027ac_dashdash=
1028for ac_option
1029do
1030  # If the previous option needs an argument, assign it.
1031  if test -n "$ac_prev"; then
1032    eval $ac_prev=\$ac_option
1033    ac_prev=
1034    continue
1035  fi
1036
1037  case $ac_option in
1038  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1039  *)	ac_optarg=yes ;;
1040  esac
1041
1042  # Accept the important Cygnus configure options, so we can diagnose typos.
1043
1044  case $ac_dashdash$ac_option in
1045  --)
1046    ac_dashdash=yes ;;
1047
1048  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1049    ac_prev=bindir ;;
1050  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1051    bindir=$ac_optarg ;;
1052
1053  -build | --build | --buil | --bui | --bu)
1054    ac_prev=build_alias ;;
1055  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1056    build_alias=$ac_optarg ;;
1057
1058  -cache-file | --cache-file | --cache-fil | --cache-fi \
1059  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1060    ac_prev=cache_file ;;
1061  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1062  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1063    cache_file=$ac_optarg ;;
1064
1065  --config-cache | -C)
1066    cache_file=config.cache ;;
1067
1068  -datadir | --datadir | --datadi | --datad)
1069    ac_prev=datadir ;;
1070  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1071    datadir=$ac_optarg ;;
1072
1073  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1074  | --dataroo | --dataro | --datar)
1075    ac_prev=datarootdir ;;
1076  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1077  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1078    datarootdir=$ac_optarg ;;
1079
1080  -disable-* | --disable-*)
1081    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1082    # Reject names that are not valid shell variable names.
1083    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1085   { (exit 1); exit 1; }; }
1086    ac_useropt_orig=$ac_useropt
1087    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088    case $ac_user_opts in
1089      *"
1090"enable_$ac_useropt"
1091"*) ;;
1092      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1093	 ac_unrecognized_sep=', ';;
1094    esac
1095    eval enable_$ac_useropt=no ;;
1096
1097  -docdir | --docdir | --docdi | --doc | --do)
1098    ac_prev=docdir ;;
1099  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1100    docdir=$ac_optarg ;;
1101
1102  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1103    ac_prev=dvidir ;;
1104  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1105    dvidir=$ac_optarg ;;
1106
1107  -enable-* | --enable-*)
1108    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1109    # Reject names that are not valid shell variable names.
1110    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1112   { (exit 1); exit 1; }; }
1113    ac_useropt_orig=$ac_useropt
1114    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115    case $ac_user_opts in
1116      *"
1117"enable_$ac_useropt"
1118"*) ;;
1119      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1120	 ac_unrecognized_sep=', ';;
1121    esac
1122    eval enable_$ac_useropt=\$ac_optarg ;;
1123
1124  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1125  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1126  | --exec | --exe | --ex)
1127    ac_prev=exec_prefix ;;
1128  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1129  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1130  | --exec=* | --exe=* | --ex=*)
1131    exec_prefix=$ac_optarg ;;
1132
1133  -gas | --gas | --ga | --g)
1134    # Obsolete; use --with-gas.
1135    with_gas=yes ;;
1136
1137  -help | --help | --hel | --he | -h)
1138    ac_init_help=long ;;
1139  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1140    ac_init_help=recursive ;;
1141  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1142    ac_init_help=short ;;
1143
1144  -host | --host | --hos | --ho)
1145    ac_prev=host_alias ;;
1146  -host=* | --host=* | --hos=* | --ho=*)
1147    host_alias=$ac_optarg ;;
1148
1149  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1150    ac_prev=htmldir ;;
1151  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1152  | --ht=*)
1153    htmldir=$ac_optarg ;;
1154
1155  -includedir | --includedir | --includedi | --included | --include \
1156  | --includ | --inclu | --incl | --inc)
1157    ac_prev=includedir ;;
1158  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1159  | --includ=* | --inclu=* | --incl=* | --inc=*)
1160    includedir=$ac_optarg ;;
1161
1162  -infodir | --infodir | --infodi | --infod | --info | --inf)
1163    ac_prev=infodir ;;
1164  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1165    infodir=$ac_optarg ;;
1166
1167  -libdir | --libdir | --libdi | --libd)
1168    ac_prev=libdir ;;
1169  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1170    libdir=$ac_optarg ;;
1171
1172  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1173  | --libexe | --libex | --libe)
1174    ac_prev=libexecdir ;;
1175  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1176  | --libexe=* | --libex=* | --libe=*)
1177    libexecdir=$ac_optarg ;;
1178
1179  -localedir | --localedir | --localedi | --localed | --locale)
1180    ac_prev=localedir ;;
1181  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1182    localedir=$ac_optarg ;;
1183
1184  -localstatedir | --localstatedir | --localstatedi | --localstated \
1185  | --localstate | --localstat | --localsta | --localst | --locals)
1186    ac_prev=localstatedir ;;
1187  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1188  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1189    localstatedir=$ac_optarg ;;
1190
1191  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1192    ac_prev=mandir ;;
1193  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1194    mandir=$ac_optarg ;;
1195
1196  -nfp | --nfp | --nf)
1197    # Obsolete; use --without-fp.
1198    with_fp=no ;;
1199
1200  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1201  | --no-cr | --no-c | -n)
1202    no_create=yes ;;
1203
1204  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1205  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1206    no_recursion=yes ;;
1207
1208  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1209  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1210  | --oldin | --oldi | --old | --ol | --o)
1211    ac_prev=oldincludedir ;;
1212  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1213  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1214  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1215    oldincludedir=$ac_optarg ;;
1216
1217  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1218    ac_prev=prefix ;;
1219  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1220    prefix=$ac_optarg ;;
1221
1222  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1223  | --program-pre | --program-pr | --program-p)
1224    ac_prev=program_prefix ;;
1225  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1226  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1227    program_prefix=$ac_optarg ;;
1228
1229  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1230  | --program-suf | --program-su | --program-s)
1231    ac_prev=program_suffix ;;
1232  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1233  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1234    program_suffix=$ac_optarg ;;
1235
1236  -program-transform-name | --program-transform-name \
1237  | --program-transform-nam | --program-transform-na \
1238  | --program-transform-n | --program-transform- \
1239  | --program-transform | --program-transfor \
1240  | --program-transfo | --program-transf \
1241  | --program-trans | --program-tran \
1242  | --progr-tra | --program-tr | --program-t)
1243    ac_prev=program_transform_name ;;
1244  -program-transform-name=* | --program-transform-name=* \
1245  | --program-transform-nam=* | --program-transform-na=* \
1246  | --program-transform-n=* | --program-transform-=* \
1247  | --program-transform=* | --program-transfor=* \
1248  | --program-transfo=* | --program-transf=* \
1249  | --program-trans=* | --program-tran=* \
1250  | --progr-tra=* | --program-tr=* | --program-t=*)
1251    program_transform_name=$ac_optarg ;;
1252
1253  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1254    ac_prev=pdfdir ;;
1255  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1256    pdfdir=$ac_optarg ;;
1257
1258  -psdir | --psdir | --psdi | --psd | --ps)
1259    ac_prev=psdir ;;
1260  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1261    psdir=$ac_optarg ;;
1262
1263  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1264  | -silent | --silent | --silen | --sile | --sil)
1265    silent=yes ;;
1266
1267  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1268    ac_prev=sbindir ;;
1269  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1270  | --sbi=* | --sb=*)
1271    sbindir=$ac_optarg ;;
1272
1273  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1274  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1275  | --sharedst | --shareds | --shared | --share | --shar \
1276  | --sha | --sh)
1277    ac_prev=sharedstatedir ;;
1278  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1279  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1280  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1281  | --sha=* | --sh=*)
1282    sharedstatedir=$ac_optarg ;;
1283
1284  -site | --site | --sit)
1285    ac_prev=site ;;
1286  -site=* | --site=* | --sit=*)
1287    site=$ac_optarg ;;
1288
1289  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1290    ac_prev=srcdir ;;
1291  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1292    srcdir=$ac_optarg ;;
1293
1294  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1295  | --syscon | --sysco | --sysc | --sys | --sy)
1296    ac_prev=sysconfdir ;;
1297  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1298  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1299    sysconfdir=$ac_optarg ;;
1300
1301  -target | --target | --targe | --targ | --tar | --ta | --t)
1302    ac_prev=target_alias ;;
1303  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1304    target_alias=$ac_optarg ;;
1305
1306  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1307    verbose=yes ;;
1308
1309  -version | --version | --versio | --versi | --vers | -V)
1310    ac_init_version=: ;;
1311
1312  -with-* | --with-*)
1313    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1314    # Reject names that are not valid shell variable names.
1315    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1317   { (exit 1); exit 1; }; }
1318    ac_useropt_orig=$ac_useropt
1319    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320    case $ac_user_opts in
1321      *"
1322"with_$ac_useropt"
1323"*) ;;
1324      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1325	 ac_unrecognized_sep=', ';;
1326    esac
1327    eval with_$ac_useropt=\$ac_optarg ;;
1328
1329  -without-* | --without-*)
1330    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1331    # Reject names that are not valid shell variable names.
1332    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1333      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1334   { (exit 1); exit 1; }; }
1335    ac_useropt_orig=$ac_useropt
1336    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337    case $ac_user_opts in
1338      *"
1339"with_$ac_useropt"
1340"*) ;;
1341      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1342	 ac_unrecognized_sep=', ';;
1343    esac
1344    eval with_$ac_useropt=no ;;
1345
1346  --x)
1347    # Obsolete; use --with-x.
1348    with_x=yes ;;
1349
1350  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1351  | --x-incl | --x-inc | --x-in | --x-i)
1352    ac_prev=x_includes ;;
1353  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1354  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1355    x_includes=$ac_optarg ;;
1356
1357  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1358  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1359    ac_prev=x_libraries ;;
1360  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1361  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1362    x_libraries=$ac_optarg ;;
1363
1364  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1365Try \`$0 --help' for more information." >&2
1366   { (exit 1); exit 1; }; }
1367    ;;
1368
1369  *=*)
1370    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1371    # Reject names that are not valid shell variable names.
1372    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1373      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1374   { (exit 1); exit 1; }; }
1375    eval $ac_envvar=\$ac_optarg
1376    export $ac_envvar ;;
1377
1378  *)
1379    # FIXME: should be removed in autoconf 3.0.
1380    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1381    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1382      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1383    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1384    ;;
1385
1386  esac
1387done
1388
1389if test -n "$ac_prev"; then
1390  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1391  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1392   { (exit 1); exit 1; }; }
1393fi
1394
1395if test -n "$ac_unrecognized_opts"; then
1396  case $enable_option_checking in
1397    no) ;;
1398    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1399   { (exit 1); exit 1; }; } ;;
1400    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1401  esac
1402fi
1403
1404# Check all directory arguments for consistency.
1405for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1406		datadir sysconfdir sharedstatedir localstatedir includedir \
1407		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1408		libdir localedir mandir
1409do
1410  eval ac_val=\$$ac_var
1411  # Remove trailing slashes.
1412  case $ac_val in
1413    */ )
1414      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1415      eval $ac_var=\$ac_val;;
1416  esac
1417  # Be sure to have absolute directory names.
1418  case $ac_val in
1419    [\\/$]* | ?:[\\/]* )  continue;;
1420    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1421  esac
1422  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1423   { (exit 1); exit 1; }; }
1424done
1425
1426# There might be people who depend on the old broken behavior: `$host'
1427# used to hold the argument of --host etc.
1428# FIXME: To remove some day.
1429build=$build_alias
1430host=$host_alias
1431target=$target_alias
1432
1433# FIXME: To remove some day.
1434if test "x$host_alias" != x; then
1435  if test "x$build_alias" = x; then
1436    cross_compiling=maybe
1437    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1438    If a cross compiler is detected then cross compile mode will be used." >&2
1439  elif test "x$build_alias" != "x$host_alias"; then
1440    cross_compiling=yes
1441  fi
1442fi
1443
1444ac_tool_prefix=
1445test -n "$host_alias" && ac_tool_prefix=$host_alias-
1446
1447test "$silent" = yes && exec 6>/dev/null
1448
1449
1450ac_pwd=`pwd` && test -n "$ac_pwd" &&
1451ac_ls_di=`ls -di .` &&
1452ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1453  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1454   { (exit 1); exit 1; }; }
1455test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1456  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1457   { (exit 1); exit 1; }; }
1458
1459
1460# Find the source files, if location was not specified.
1461if test -z "$srcdir"; then
1462  ac_srcdir_defaulted=yes
1463  # Try the directory containing this script, then the parent directory.
1464  ac_confdir=`$as_dirname -- "$as_myself" ||
1465$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1466	 X"$as_myself" : 'X\(//\)[^/]' \| \
1467	 X"$as_myself" : 'X\(//\)$' \| \
1468	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1469$as_echo X"$as_myself" |
1470    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1471	    s//\1/
1472	    q
1473	  }
1474	  /^X\(\/\/\)[^/].*/{
1475	    s//\1/
1476	    q
1477	  }
1478	  /^X\(\/\/\)$/{
1479	    s//\1/
1480	    q
1481	  }
1482	  /^X\(\/\).*/{
1483	    s//\1/
1484	    q
1485	  }
1486	  s/.*/./; q'`
1487  srcdir=$ac_confdir
1488  if test ! -r "$srcdir/$ac_unique_file"; then
1489    srcdir=..
1490  fi
1491else
1492  ac_srcdir_defaulted=no
1493fi
1494if test ! -r "$srcdir/$ac_unique_file"; then
1495  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1496  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1497   { (exit 1); exit 1; }; }
1498fi
1499ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1500ac_abs_confdir=`(
1501	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1502   { (exit 1); exit 1; }; }
1503	pwd)`
1504# When building in place, set srcdir=.
1505if test "$ac_abs_confdir" = "$ac_pwd"; then
1506  srcdir=.
1507fi
1508# Remove unnecessary trailing slashes from srcdir.
1509# Double slashes in file names in object file debugging info
1510# mess up M-x gdb in Emacs.
1511case $srcdir in
1512*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1513esac
1514for ac_var in $ac_precious_vars; do
1515  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1516  eval ac_env_${ac_var}_value=\$${ac_var}
1517  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1518  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1519done
1520
1521#
1522# Report the --help message.
1523#
1524if test "$ac_init_help" = "long"; then
1525  # Omit some internal or obsolete options to make the list less imposing.
1526  # This message is too long to be a string in the A/UX 3.1 sh.
1527  cat <<_ACEOF
1528\`configure' configures xf86-video-mga 1.4.11 to adapt to many kinds of systems.
1529
1530Usage: $0 [OPTION]... [VAR=VALUE]...
1531
1532To assign environment variables (e.g., CC, CFLAGS...), specify them as
1533VAR=VALUE.  See below for descriptions of some of the useful variables.
1534
1535Defaults for the options are specified in brackets.
1536
1537Configuration:
1538  -h, --help              display this help and exit
1539      --help=short        display options specific to this package
1540      --help=recursive    display the short help of all the included packages
1541  -V, --version           display version information and exit
1542  -q, --quiet, --silent   do not print \`checking...' messages
1543      --cache-file=FILE   cache test results in FILE [disabled]
1544  -C, --config-cache      alias for \`--cache-file=config.cache'
1545  -n, --no-create         do not create output files
1546      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1547
1548Installation directories:
1549  --prefix=PREFIX         install architecture-independent files in PREFIX
1550                          [$ac_default_prefix]
1551  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1552                          [PREFIX]
1553
1554By default, \`make install' will install all the files in
1555\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1556an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1557for instance \`--prefix=\$HOME'.
1558
1559For better control, use the options below.
1560
1561Fine tuning of the installation directories:
1562  --bindir=DIR            user executables [EPREFIX/bin]
1563  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1564  --libexecdir=DIR        program executables [EPREFIX/libexec]
1565  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1566  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1567  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1568  --libdir=DIR            object code libraries [EPREFIX/lib]
1569  --includedir=DIR        C header files [PREFIX/include]
1570  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1571  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1572  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1573  --infodir=DIR           info documentation [DATAROOTDIR/info]
1574  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1575  --mandir=DIR            man documentation [DATAROOTDIR/man]
1576  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-mga]
1577  --htmldir=DIR           html documentation [DOCDIR]
1578  --dvidir=DIR            dvi documentation [DOCDIR]
1579  --pdfdir=DIR            pdf documentation [DOCDIR]
1580  --psdir=DIR             ps documentation [DOCDIR]
1581_ACEOF
1582
1583  cat <<\_ACEOF
1584
1585Program names:
1586  --program-prefix=PREFIX            prepend PREFIX to installed program names
1587  --program-suffix=SUFFIX            append SUFFIX to installed program names
1588  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1589
1590System types:
1591  --build=BUILD     configure for building on BUILD [guessed]
1592  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1593_ACEOF
1594fi
1595
1596if test -n "$ac_init_help"; then
1597  case $ac_init_help in
1598     short | recursive ) echo "Configuration of xf86-video-mga 1.4.11:";;
1599   esac
1600  cat <<\_ACEOF
1601
1602Optional Features:
1603  --disable-option-checking  ignore unrecognized --enable/--with options
1604  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1605  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1606  --enable-maintainer-mode  enable make rules and dependencies not useful
1607			  (and sometimes confusing) to the casual installer
1608  --enable-static[=PKGS]  build static libraries [default=no]
1609  --enable-shared[=PKGS]  build shared libraries [default=yes]
1610  --enable-fast-install[=PKGS]
1611                          optimize for fast installation [default=yes]
1612  --disable-dependency-tracking  speeds up one-time build
1613  --enable-dependency-tracking   do not reject slow dependency extractors
1614  --disable-libtool-lock  avoid locking (might break parallel builds)
1615  --disable-dri           Disable DRI support [default=auto]
1616  --disable-exa           Disable EXA support [default=enabled]
1617
1618Optional Packages:
1619  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1620  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1621  --with-release-version=STRING
1622                          Use release version string in package name
1623  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1624  --with-pic              try to use only PIC/non-PIC objects [default=use
1625                          both]
1626  --with-tags[=TAGS]      include additional configurations [automatic]
1627  --with-xorg-module-dir=DIR
1628                          Default xorg module directory
1629                          [default=$libdir/xorg/modules]
1630
1631Some influential environment variables:
1632  CC          C compiler command
1633  CFLAGS      C compiler flags
1634  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1635              nonstandard directory <lib dir>
1636  LIBS        libraries to pass to the linker, e.g. -l<library>
1637  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1638              you have headers in a nonstandard directory <include dir>
1639  CPP         C preprocessor
1640  CXX         C++ compiler command
1641  CXXFLAGS    C++ compiler flags
1642  CXXCPP      C++ preprocessor
1643  F77         Fortran 77 compiler command
1644  FFLAGS      Fortran 77 compiler flags
1645  PKG_CONFIG  path to pkg-config utility
1646  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1647  XORG_LIBS   linker flags for XORG, overriding pkg-config
1648  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1649  DRI_LIBS    linker flags for DRI, overriding pkg-config
1650  PCIACCESS_CFLAGS
1651              C compiler flags for PCIACCESS, overriding pkg-config
1652  PCIACCESS_LIBS
1653              linker flags for PCIACCESS, overriding pkg-config
1654
1655Use these variables to override the choices made by `configure' or to help
1656it to find libraries and programs with nonstandard names/locations.
1657
1658Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1659_ACEOF
1660ac_status=$?
1661fi
1662
1663if test "$ac_init_help" = "recursive"; then
1664  # If there are subdirs, report their specific --help.
1665  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1666    test -d "$ac_dir" ||
1667      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1668      continue
1669    ac_builddir=.
1670
1671case "$ac_dir" in
1672.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673*)
1674  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1675  # A ".." for each directory in $ac_dir_suffix.
1676  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1677  case $ac_top_builddir_sub in
1678  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1679  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1680  esac ;;
1681esac
1682ac_abs_top_builddir=$ac_pwd
1683ac_abs_builddir=$ac_pwd$ac_dir_suffix
1684# for backward compatibility:
1685ac_top_builddir=$ac_top_build_prefix
1686
1687case $srcdir in
1688  .)  # We are building in place.
1689    ac_srcdir=.
1690    ac_top_srcdir=$ac_top_builddir_sub
1691    ac_abs_top_srcdir=$ac_pwd ;;
1692  [\\/]* | ?:[\\/]* )  # Absolute name.
1693    ac_srcdir=$srcdir$ac_dir_suffix;
1694    ac_top_srcdir=$srcdir
1695    ac_abs_top_srcdir=$srcdir ;;
1696  *) # Relative name.
1697    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1698    ac_top_srcdir=$ac_top_build_prefix$srcdir
1699    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1700esac
1701ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1702
1703    cd "$ac_dir" || { ac_status=$?; continue; }
1704    # Check for guested configure.
1705    if test -f "$ac_srcdir/configure.gnu"; then
1706      echo &&
1707      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1708    elif test -f "$ac_srcdir/configure"; then
1709      echo &&
1710      $SHELL "$ac_srcdir/configure" --help=recursive
1711    else
1712      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1713    fi || ac_status=$?
1714    cd "$ac_pwd" || { ac_status=$?; break; }
1715  done
1716fi
1717
1718test -n "$ac_init_help" && exit $ac_status
1719if $ac_init_version; then
1720  cat <<\_ACEOF
1721xf86-video-mga configure 1.4.11
1722generated by GNU Autoconf 2.63
1723
1724Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17252002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1726This configure script is free software; the Free Software Foundation
1727gives unlimited permission to copy, distribute and modify it.
1728_ACEOF
1729  exit
1730fi
1731cat >config.log <<_ACEOF
1732This file contains any messages produced by compilers while
1733running configure, to aid debugging if configure makes a mistake.
1734
1735It was created by xf86-video-mga $as_me 1.4.11, which was
1736generated by GNU Autoconf 2.63.  Invocation command line was
1737
1738  $ $0 $@
1739
1740_ACEOF
1741exec 5>>config.log
1742{
1743cat <<_ASUNAME
1744## --------- ##
1745## Platform. ##
1746## --------- ##
1747
1748hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1749uname -m = `(uname -m) 2>/dev/null || echo unknown`
1750uname -r = `(uname -r) 2>/dev/null || echo unknown`
1751uname -s = `(uname -s) 2>/dev/null || echo unknown`
1752uname -v = `(uname -v) 2>/dev/null || echo unknown`
1753
1754/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1755/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1756
1757/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1758/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1759/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1760/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1761/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1762/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1763/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1764
1765_ASUNAME
1766
1767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768for as_dir in $PATH
1769do
1770  IFS=$as_save_IFS
1771  test -z "$as_dir" && as_dir=.
1772  $as_echo "PATH: $as_dir"
1773done
1774IFS=$as_save_IFS
1775
1776} >&5
1777
1778cat >&5 <<_ACEOF
1779
1780
1781## ----------- ##
1782## Core tests. ##
1783## ----------- ##
1784
1785_ACEOF
1786
1787
1788# Keep a trace of the command line.
1789# Strip out --no-create and --no-recursion so they do not pile up.
1790# Strip out --silent because we don't want to record it for future runs.
1791# Also quote any args containing shell meta-characters.
1792# Make two passes to allow for proper duplicate-argument suppression.
1793ac_configure_args=
1794ac_configure_args0=
1795ac_configure_args1=
1796ac_must_keep_next=false
1797for ac_pass in 1 2
1798do
1799  for ac_arg
1800  do
1801    case $ac_arg in
1802    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1803    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1804    | -silent | --silent | --silen | --sile | --sil)
1805      continue ;;
1806    *\'*)
1807      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1808    esac
1809    case $ac_pass in
1810    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1811    2)
1812      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1813      if test $ac_must_keep_next = true; then
1814	ac_must_keep_next=false # Got value, back to normal.
1815      else
1816	case $ac_arg in
1817	  *=* | --config-cache | -C | -disable-* | --disable-* \
1818	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1819	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1820	  | -with-* | --with-* | -without-* | --without-* | --x)
1821	    case "$ac_configure_args0 " in
1822	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1823	    esac
1824	    ;;
1825	  -* ) ac_must_keep_next=true ;;
1826	esac
1827      fi
1828      ac_configure_args="$ac_configure_args '$ac_arg'"
1829      ;;
1830    esac
1831  done
1832done
1833$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1834$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1835
1836# When interrupted or exit'd, cleanup temporary files, and complete
1837# config.log.  We remove comments because anyway the quotes in there
1838# would cause problems or look ugly.
1839# WARNING: Use '\'' to represent an apostrophe within the trap.
1840# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1841trap 'exit_status=$?
1842  # Save into config.log some information that might help in debugging.
1843  {
1844    echo
1845
1846    cat <<\_ASBOX
1847## ---------------- ##
1848## Cache variables. ##
1849## ---------------- ##
1850_ASBOX
1851    echo
1852    # The following way of writing the cache mishandles newlines in values,
1853(
1854  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1855    eval ac_val=\$$ac_var
1856    case $ac_val in #(
1857    *${as_nl}*)
1858      case $ac_var in #(
1859      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1860$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1861      esac
1862      case $ac_var in #(
1863      _ | IFS | as_nl) ;; #(
1864      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1865      *) $as_unset $ac_var ;;
1866      esac ;;
1867    esac
1868  done
1869  (set) 2>&1 |
1870    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1871    *${as_nl}ac_space=\ *)
1872      sed -n \
1873	"s/'\''/'\''\\\\'\'''\''/g;
1874	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1875      ;; #(
1876    *)
1877      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1878      ;;
1879    esac |
1880    sort
1881)
1882    echo
1883
1884    cat <<\_ASBOX
1885## ----------------- ##
1886## Output variables. ##
1887## ----------------- ##
1888_ASBOX
1889    echo
1890    for ac_var in $ac_subst_vars
1891    do
1892      eval ac_val=\$$ac_var
1893      case $ac_val in
1894      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1895      esac
1896      $as_echo "$ac_var='\''$ac_val'\''"
1897    done | sort
1898    echo
1899
1900    if test -n "$ac_subst_files"; then
1901      cat <<\_ASBOX
1902## ------------------- ##
1903## File substitutions. ##
1904## ------------------- ##
1905_ASBOX
1906      echo
1907      for ac_var in $ac_subst_files
1908      do
1909	eval ac_val=\$$ac_var
1910	case $ac_val in
1911	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1912	esac
1913	$as_echo "$ac_var='\''$ac_val'\''"
1914      done | sort
1915      echo
1916    fi
1917
1918    if test -s confdefs.h; then
1919      cat <<\_ASBOX
1920## ----------- ##
1921## confdefs.h. ##
1922## ----------- ##
1923_ASBOX
1924      echo
1925      cat confdefs.h
1926      echo
1927    fi
1928    test "$ac_signal" != 0 &&
1929      $as_echo "$as_me: caught signal $ac_signal"
1930    $as_echo "$as_me: exit $exit_status"
1931  } >&5
1932  rm -f core *.core core.conftest.* &&
1933    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1934    exit $exit_status
1935' 0
1936for ac_signal in 1 2 13 15; do
1937  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1938done
1939ac_signal=0
1940
1941# confdefs.h avoids OS command line length limits that DEFS can exceed.
1942rm -f -r conftest* confdefs.h
1943
1944# Predefined preprocessor variables.
1945
1946cat >>confdefs.h <<_ACEOF
1947#define PACKAGE_NAME "$PACKAGE_NAME"
1948_ACEOF
1949
1950
1951cat >>confdefs.h <<_ACEOF
1952#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1953_ACEOF
1954
1955
1956cat >>confdefs.h <<_ACEOF
1957#define PACKAGE_VERSION "$PACKAGE_VERSION"
1958_ACEOF
1959
1960
1961cat >>confdefs.h <<_ACEOF
1962#define PACKAGE_STRING "$PACKAGE_STRING"
1963_ACEOF
1964
1965
1966cat >>confdefs.h <<_ACEOF
1967#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1968_ACEOF
1969
1970
1971# Let the site file select an alternate cache file if it wants to.
1972# Prefer an explicitly selected file to automatically selected ones.
1973ac_site_file1=NONE
1974ac_site_file2=NONE
1975if test -n "$CONFIG_SITE"; then
1976  ac_site_file1=$CONFIG_SITE
1977elif test "x$prefix" != xNONE; then
1978  ac_site_file1=$prefix/share/config.site
1979  ac_site_file2=$prefix/etc/config.site
1980else
1981  ac_site_file1=$ac_default_prefix/share/config.site
1982  ac_site_file2=$ac_default_prefix/etc/config.site
1983fi
1984for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1985do
1986  test "x$ac_site_file" = xNONE && continue
1987  if test -r "$ac_site_file"; then
1988    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1989$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1990    sed 's/^/| /' "$ac_site_file" >&5
1991    . "$ac_site_file"
1992  fi
1993done
1994
1995if test -r "$cache_file"; then
1996  # Some versions of bash will fail to source /dev/null (special
1997  # files actually), so we avoid doing that.
1998  if test -f "$cache_file"; then
1999    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2000$as_echo "$as_me: loading cache $cache_file" >&6;}
2001    case $cache_file in
2002      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2003      *)                      . "./$cache_file";;
2004    esac
2005  fi
2006else
2007  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2008$as_echo "$as_me: creating cache $cache_file" >&6;}
2009  >$cache_file
2010fi
2011
2012# Check that the precious variables saved in the cache have kept the same
2013# value.
2014ac_cache_corrupted=false
2015for ac_var in $ac_precious_vars; do
2016  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2017  eval ac_new_set=\$ac_env_${ac_var}_set
2018  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2019  eval ac_new_val=\$ac_env_${ac_var}_value
2020  case $ac_old_set,$ac_new_set in
2021    set,)
2022      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2023$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2024      ac_cache_corrupted=: ;;
2025    ,set)
2026      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2027$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2028      ac_cache_corrupted=: ;;
2029    ,);;
2030    *)
2031      if test "x$ac_old_val" != "x$ac_new_val"; then
2032	# differences in whitespace do not lead to failure.
2033	ac_old_val_w=`echo x $ac_old_val`
2034	ac_new_val_w=`echo x $ac_new_val`
2035	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2036	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2037$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2038	  ac_cache_corrupted=:
2039	else
2040	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2041$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2042	  eval $ac_var=\$ac_old_val
2043	fi
2044	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2045$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2046	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2047$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2048      fi;;
2049  esac
2050  # Pass precious variables to config.status.
2051  if test "$ac_new_set" = set; then
2052    case $ac_new_val in
2053    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2054    *) ac_arg=$ac_var=$ac_new_val ;;
2055    esac
2056    case " $ac_configure_args " in
2057      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2058      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2059    esac
2060  fi
2061done
2062if $ac_cache_corrupted; then
2063  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2065  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2066$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2067  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2068$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2069   { (exit 1); exit 1; }; }
2070fi
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096ac_ext=c
2097ac_cpp='$CPP $CPPFLAGS'
2098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2100ac_compiler_gnu=$ac_cv_c_compiler_gnu
2101
2102
2103
2104
2105
2106# Check whether --with-release-version was given.
2107if test "${with_release_version+set}" = set; then
2108  withval=$with_release_version; RELEASE_VERSION="$withval"
2109else
2110  RELEASE_VERSION=""
2111fi
2112
2113	if test "x$RELEASE_VERSION" != "x"; then
2114		PACKAGE="$PACKAGE-$RELEASE_VERSION"
2115		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
2116		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
2117$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
2118	fi
2119
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
2122_ACEOF
2123
2124	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
2125	if test "x$PVM" = "x"; then
2126		PVM="0"
2127	fi
2128
2129cat >>confdefs.h <<_ACEOF
2130#define PACKAGE_VERSION_MINOR $PVM
2131_ACEOF
2132
2133	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
2134	if test "x$PVP" = "x"; then
2135		PVP="0"
2136	fi
2137
2138cat >>confdefs.h <<_ACEOF
2139#define PACKAGE_VERSION_PATCHLEVEL $PVP
2140_ACEOF
2141
2142
2143
2144
2145ac_config_headers="$ac_config_headers config.h"
2146
2147
2148# Require xorg-macros: XORG_RELEASE_VERSION XORG_CHANGELOG
2149
2150
2151	XORG_MACROS_needed_version=1.2
2152	XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
2153	XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2154	{ $as_echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5
2155$as_echo_n "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... " >&6; }
2156	XORG_MACROS_version=1.2.1
2157	XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
2158	XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2159	if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
2160		{ { $as_echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5
2161$as_echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;}
2162   { (exit 1); exit 1; }; }
2163	fi
2164	if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
2165		{ { $as_echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5
2166$as_echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;}
2167   { (exit 1); exit 1; }; }
2168	fi
2169	{ $as_echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
2170$as_echo "yes, $XORG_MACROS_version" >&6; }
2171
2172
2173ac_aux_dir=
2174for ac_dir in . "$srcdir"/.; do
2175  if test -f "$ac_dir/install-sh"; then
2176    ac_aux_dir=$ac_dir
2177    ac_install_sh="$ac_aux_dir/install-sh -c"
2178    break
2179  elif test -f "$ac_dir/install.sh"; then
2180    ac_aux_dir=$ac_dir
2181    ac_install_sh="$ac_aux_dir/install.sh -c"
2182    break
2183  elif test -f "$ac_dir/shtool"; then
2184    ac_aux_dir=$ac_dir
2185    ac_install_sh="$ac_aux_dir/shtool install -c"
2186    break
2187  fi
2188done
2189if test -z "$ac_aux_dir"; then
2190  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2191$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2192   { (exit 1); exit 1; }; }
2193fi
2194
2195# These three variables are undocumented and unsupported,
2196# and are intended to be withdrawn in a future Autoconf release.
2197# They can cause serious problems if a builder's source tree is in a directory
2198# whose full name contains unusual characters.
2199ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2200ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2201ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2202
2203
2204
2205am__api_version='1.11'
2206
2207# Find a good install program.  We prefer a C program (faster),
2208# so one script is as good as another.  But avoid the broken or
2209# incompatible versions:
2210# SysV /etc/install, /usr/sbin/install
2211# SunOS /usr/etc/install
2212# IRIX /sbin/install
2213# AIX /bin/install
2214# AmigaOS /C/install, which installs bootblocks on floppy discs
2215# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2216# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2217# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2218# OS/2's system install, which has a completely different semantic
2219# ./install, which can be erroneously created by make from ./install.sh.
2220# Reject install programs that cannot install multiple files.
2221{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2222$as_echo_n "checking for a BSD-compatible install... " >&6; }
2223if test -z "$INSTALL"; then
2224if test "${ac_cv_path_install+set}" = set; then
2225  $as_echo_n "(cached) " >&6
2226else
2227  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228for as_dir in $PATH
2229do
2230  IFS=$as_save_IFS
2231  test -z "$as_dir" && as_dir=.
2232  # Account for people who put trailing slashes in PATH elements.
2233case $as_dir/ in
2234  ./ | .// | /cC/* | \
2235  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2236  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2237  /usr/ucb/* ) ;;
2238  *)
2239    # OSF1 and SCO ODT 3.0 have their own names for install.
2240    # Don't use installbsd from OSF since it installs stuff as root
2241    # by default.
2242    for ac_prog in ginstall scoinst install; do
2243      for ac_exec_ext in '' $ac_executable_extensions; do
2244	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2245	  if test $ac_prog = install &&
2246	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2247	    # AIX install.  It has an incompatible calling convention.
2248	    :
2249	  elif test $ac_prog = install &&
2250	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2251	    # program-specific install script used by HP pwplus--don't use.
2252	    :
2253	  else
2254	    rm -rf conftest.one conftest.two conftest.dir
2255	    echo one > conftest.one
2256	    echo two > conftest.two
2257	    mkdir conftest.dir
2258	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2259	      test -s conftest.one && test -s conftest.two &&
2260	      test -s conftest.dir/conftest.one &&
2261	      test -s conftest.dir/conftest.two
2262	    then
2263	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2264	      break 3
2265	    fi
2266	  fi
2267	fi
2268      done
2269    done
2270    ;;
2271esac
2272
2273done
2274IFS=$as_save_IFS
2275
2276rm -rf conftest.one conftest.two conftest.dir
2277
2278fi
2279  if test "${ac_cv_path_install+set}" = set; then
2280    INSTALL=$ac_cv_path_install
2281  else
2282    # As a last resort, use the slow shell script.  Don't cache a
2283    # value for INSTALL within a source directory, because that will
2284    # break other packages using the cache if that directory is
2285    # removed, or if the value is a relative name.
2286    INSTALL=$ac_install_sh
2287  fi
2288fi
2289{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2290$as_echo "$INSTALL" >&6; }
2291
2292# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2293# It thinks the first close brace ends the variable substitution.
2294test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2295
2296test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2297
2298test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2299
2300{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2301$as_echo_n "checking whether build environment is sane... " >&6; }
2302# Just in case
2303sleep 1
2304echo timestamp > conftest.file
2305# Reject unsafe characters in $srcdir or the absolute working directory
2306# name.  Accept space and tab only in the latter.
2307am_lf='
2308'
2309case `pwd` in
2310  *[\\\"\#\$\&\'\`$am_lf]*)
2311    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2312$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2313   { (exit 1); exit 1; }; };;
2314esac
2315case $srcdir in
2316  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2317    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2318$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2319   { (exit 1); exit 1; }; };;
2320esac
2321
2322# Do `set' in a subshell so we don't clobber the current shell's
2323# arguments.  Must try -L first in case configure is actually a
2324# symlink; some systems play weird games with the mod time of symlinks
2325# (eg FreeBSD returns the mod time of the symlink's containing
2326# directory).
2327if (
2328   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2329   if test "$*" = "X"; then
2330      # -L didn't work.
2331      set X `ls -t "$srcdir/configure" conftest.file`
2332   fi
2333   rm -f conftest.file
2334   if test "$*" != "X $srcdir/configure conftest.file" \
2335      && test "$*" != "X conftest.file $srcdir/configure"; then
2336
2337      # If neither matched, then we have a broken ls.  This can happen
2338      # if, for instance, CONFIG_SHELL is bash and it inherits a
2339      # broken ls alias from the environment.  This has actually
2340      # happened.  Such a system could not be considered "sane".
2341      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2342alias in your environment" >&5
2343$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2344alias in your environment" >&2;}
2345   { (exit 1); exit 1; }; }
2346   fi
2347
2348   test "$2" = conftest.file
2349   )
2350then
2351   # Ok.
2352   :
2353else
2354   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2355Check your system clock" >&5
2356$as_echo "$as_me: error: newly created file is older than distributed files!
2357Check your system clock" >&2;}
2358   { (exit 1); exit 1; }; }
2359fi
2360{ $as_echo "$as_me:$LINENO: result: yes" >&5
2361$as_echo "yes" >&6; }
2362test "$program_prefix" != NONE &&
2363  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2364# Use a double $ so make ignores it.
2365test "$program_suffix" != NONE &&
2366  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2367# Double any \ or $.
2368# By default was `s,x,x', remove it if useless.
2369ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2370program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2371
2372# expand $ac_aux_dir to an absolute path
2373am_aux_dir=`cd $ac_aux_dir && pwd`
2374
2375if test x"${MISSING+set}" != xset; then
2376  case $am_aux_dir in
2377  *\ * | *\	*)
2378    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2379  *)
2380    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2381  esac
2382fi
2383# Use eval to expand $SHELL
2384if eval "$MISSING --run true"; then
2385  am_missing_run="$MISSING --run "
2386else
2387  am_missing_run=
2388  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2389$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2390fi
2391
2392if test x"${install_sh}" != xset; then
2393  case $am_aux_dir in
2394  *\ * | *\	*)
2395    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2396  *)
2397    install_sh="\${SHELL} $am_aux_dir/install-sh"
2398  esac
2399fi
2400
2401# Installed binaries are usually stripped using `strip' when the user
2402# run `make install-strip'.  However `strip' might not be the right
2403# tool to use in cross-compilation environments, therefore Automake
2404# will honor the `STRIP' environment variable to overrule this program.
2405if test "$cross_compiling" != no; then
2406  if test -n "$ac_tool_prefix"; then
2407  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2408set dummy ${ac_tool_prefix}strip; ac_word=$2
2409{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2410$as_echo_n "checking for $ac_word... " >&6; }
2411if test "${ac_cv_prog_STRIP+set}" = set; then
2412  $as_echo_n "(cached) " >&6
2413else
2414  if test -n "$STRIP"; then
2415  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2416else
2417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418for as_dir in $PATH
2419do
2420  IFS=$as_save_IFS
2421  test -z "$as_dir" && as_dir=.
2422  for ac_exec_ext in '' $ac_executable_extensions; do
2423  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2424    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2425    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426    break 2
2427  fi
2428done
2429done
2430IFS=$as_save_IFS
2431
2432fi
2433fi
2434STRIP=$ac_cv_prog_STRIP
2435if test -n "$STRIP"; then
2436  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2437$as_echo "$STRIP" >&6; }
2438else
2439  { $as_echo "$as_me:$LINENO: result: no" >&5
2440$as_echo "no" >&6; }
2441fi
2442
2443
2444fi
2445if test -z "$ac_cv_prog_STRIP"; then
2446  ac_ct_STRIP=$STRIP
2447  # Extract the first word of "strip", so it can be a program name with args.
2448set dummy strip; ac_word=$2
2449{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2450$as_echo_n "checking for $ac_word... " >&6; }
2451if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2452  $as_echo_n "(cached) " >&6
2453else
2454  if test -n "$ac_ct_STRIP"; then
2455  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2456else
2457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458for as_dir in $PATH
2459do
2460  IFS=$as_save_IFS
2461  test -z "$as_dir" && as_dir=.
2462  for ac_exec_ext in '' $ac_executable_extensions; do
2463  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2464    ac_cv_prog_ac_ct_STRIP="strip"
2465    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466    break 2
2467  fi
2468done
2469done
2470IFS=$as_save_IFS
2471
2472fi
2473fi
2474ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2475if test -n "$ac_ct_STRIP"; then
2476  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2477$as_echo "$ac_ct_STRIP" >&6; }
2478else
2479  { $as_echo "$as_me:$LINENO: result: no" >&5
2480$as_echo "no" >&6; }
2481fi
2482
2483  if test "x$ac_ct_STRIP" = x; then
2484    STRIP=":"
2485  else
2486    case $cross_compiling:$ac_tool_warned in
2487yes:)
2488{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2490ac_tool_warned=yes ;;
2491esac
2492    STRIP=$ac_ct_STRIP
2493  fi
2494else
2495  STRIP="$ac_cv_prog_STRIP"
2496fi
2497
2498fi
2499INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2500
2501{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2502$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2503if test -z "$MKDIR_P"; then
2504  if test "${ac_cv_path_mkdir+set}" = set; then
2505  $as_echo_n "(cached) " >&6
2506else
2507  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2509do
2510  IFS=$as_save_IFS
2511  test -z "$as_dir" && as_dir=.
2512  for ac_prog in mkdir gmkdir; do
2513	 for ac_exec_ext in '' $ac_executable_extensions; do
2514	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2515	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2516	     'mkdir (GNU coreutils) '* | \
2517	     'mkdir (coreutils) '* | \
2518	     'mkdir (fileutils) '4.1*)
2519	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2520	       break 3;;
2521	   esac
2522	 done
2523       done
2524done
2525IFS=$as_save_IFS
2526
2527fi
2528
2529  if test "${ac_cv_path_mkdir+set}" = set; then
2530    MKDIR_P="$ac_cv_path_mkdir -p"
2531  else
2532    # As a last resort, use the slow shell script.  Don't cache a
2533    # value for MKDIR_P within a source directory, because that will
2534    # break other packages using the cache if that directory is
2535    # removed, or if the value is a relative name.
2536    test -d ./--version && rmdir ./--version
2537    MKDIR_P="$ac_install_sh -d"
2538  fi
2539fi
2540{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2541$as_echo "$MKDIR_P" >&6; }
2542
2543mkdir_p="$MKDIR_P"
2544case $mkdir_p in
2545  [\\/$]* | ?:[\\/]*) ;;
2546  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2547esac
2548
2549for ac_prog in gawk mawk nawk awk
2550do
2551  # Extract the first word of "$ac_prog", so it can be a program name with args.
2552set dummy $ac_prog; ac_word=$2
2553{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554$as_echo_n "checking for $ac_word... " >&6; }
2555if test "${ac_cv_prog_AWK+set}" = set; then
2556  $as_echo_n "(cached) " >&6
2557else
2558  if test -n "$AWK"; then
2559  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2560else
2561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564  IFS=$as_save_IFS
2565  test -z "$as_dir" && as_dir=.
2566  for ac_exec_ext in '' $ac_executable_extensions; do
2567  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568    ac_cv_prog_AWK="$ac_prog"
2569    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570    break 2
2571  fi
2572done
2573done
2574IFS=$as_save_IFS
2575
2576fi
2577fi
2578AWK=$ac_cv_prog_AWK
2579if test -n "$AWK"; then
2580  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2581$as_echo "$AWK" >&6; }
2582else
2583  { $as_echo "$as_me:$LINENO: result: no" >&5
2584$as_echo "no" >&6; }
2585fi
2586
2587
2588  test -n "$AWK" && break
2589done
2590
2591{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2592$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2593set x ${MAKE-make}
2594ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2595if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2596  $as_echo_n "(cached) " >&6
2597else
2598  cat >conftest.make <<\_ACEOF
2599SHELL = /bin/sh
2600all:
2601	@echo '@@@%%%=$(MAKE)=@@@%%%'
2602_ACEOF
2603# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2604case `${MAKE-make} -f conftest.make 2>/dev/null` in
2605  *@@@%%%=?*=@@@%%%*)
2606    eval ac_cv_prog_make_${ac_make}_set=yes;;
2607  *)
2608    eval ac_cv_prog_make_${ac_make}_set=no;;
2609esac
2610rm -f conftest.make
2611fi
2612if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2613  { $as_echo "$as_me:$LINENO: result: yes" >&5
2614$as_echo "yes" >&6; }
2615  SET_MAKE=
2616else
2617  { $as_echo "$as_me:$LINENO: result: no" >&5
2618$as_echo "no" >&6; }
2619  SET_MAKE="MAKE=${MAKE-make}"
2620fi
2621
2622rm -rf .tst 2>/dev/null
2623mkdir .tst 2>/dev/null
2624if test -d .tst; then
2625  am__leading_dot=.
2626else
2627  am__leading_dot=_
2628fi
2629rmdir .tst 2>/dev/null
2630
2631if test "`cd $srcdir && pwd`" != "`pwd`"; then
2632  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2633  # is not polluted with repeated "-I."
2634  am__isrc=' -I$(srcdir)'
2635  # test to see if srcdir already configured
2636  if test -f $srcdir/config.status; then
2637    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2638$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2639   { (exit 1); exit 1; }; }
2640  fi
2641fi
2642
2643# test whether we have cygpath
2644if test -z "$CYGPATH_W"; then
2645  if (cygpath --version) >/dev/null 2>/dev/null; then
2646    CYGPATH_W='cygpath -w'
2647  else
2648    CYGPATH_W=echo
2649  fi
2650fi
2651
2652
2653# Define the identity of the package.
2654 PACKAGE='xf86-video-mga'
2655 VERSION='1.4.11'
2656
2657
2658cat >>confdefs.h <<_ACEOF
2659#define PACKAGE "$PACKAGE"
2660_ACEOF
2661
2662
2663cat >>confdefs.h <<_ACEOF
2664#define VERSION "$VERSION"
2665_ACEOF
2666
2667# Some tools Automake needs.
2668
2669ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2670
2671
2672AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2673
2674
2675AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2676
2677
2678AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2679
2680
2681MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2682
2683# We need awk for the "check" target.  The system "awk" is bad on
2684# some platforms.
2685# Always define AMTAR for backward compatibility.
2686
2687AMTAR=${AMTAR-"${am_missing_run}tar"}
2688
2689am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2690
2691
2692
2693
2694
2695
2696
2697{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2698$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2699    # Check whether --enable-maintainer-mode was given.
2700if test "${enable_maintainer_mode+set}" = set; then
2701  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2702else
2703  USE_MAINTAINER_MODE=no
2704fi
2705
2706  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2707$as_echo "$USE_MAINTAINER_MODE" >&6; }
2708   if test $USE_MAINTAINER_MODE = yes; then
2709  MAINTAINER_MODE_TRUE=
2710  MAINTAINER_MODE_FALSE='#'
2711else
2712  MAINTAINER_MODE_TRUE='#'
2713  MAINTAINER_MODE_FALSE=
2714fi
2715
2716  MAINT=$MAINTAINER_MODE_TRUE
2717
2718
2719
2720# Checks for programs.
2721# Check whether --enable-static was given.
2722if test "${enable_static+set}" = set; then
2723  enableval=$enable_static; p=${PACKAGE-default}
2724    case $enableval in
2725    yes) enable_static=yes ;;
2726    no) enable_static=no ;;
2727    *)
2728     enable_static=no
2729      # Look at the argument we got.  We use all the common list separators.
2730      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2731      for pkg in $enableval; do
2732	IFS="$lt_save_ifs"
2733	if test "X$pkg" = "X$p"; then
2734	  enable_static=yes
2735	fi
2736      done
2737      IFS="$lt_save_ifs"
2738      ;;
2739    esac
2740else
2741  enable_static=no
2742fi
2743
2744
2745
2746# Check whether --enable-shared was given.
2747if test "${enable_shared+set}" = set; then
2748  enableval=$enable_shared; p=${PACKAGE-default}
2749    case $enableval in
2750    yes) enable_shared=yes ;;
2751    no) enable_shared=no ;;
2752    *)
2753      enable_shared=no
2754      # Look at the argument we got.  We use all the common list separators.
2755      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2756      for pkg in $enableval; do
2757	IFS="$lt_save_ifs"
2758	if test "X$pkg" = "X$p"; then
2759	  enable_shared=yes
2760	fi
2761      done
2762      IFS="$lt_save_ifs"
2763      ;;
2764    esac
2765else
2766  enable_shared=yes
2767fi
2768
2769
2770# Check whether --enable-fast-install was given.
2771if test "${enable_fast_install+set}" = set; then
2772  enableval=$enable_fast_install; p=${PACKAGE-default}
2773    case $enableval in
2774    yes) enable_fast_install=yes ;;
2775    no) enable_fast_install=no ;;
2776    *)
2777      enable_fast_install=no
2778      # Look at the argument we got.  We use all the common list separators.
2779      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2780      for pkg in $enableval; do
2781	IFS="$lt_save_ifs"
2782	if test "X$pkg" = "X$p"; then
2783	  enable_fast_install=yes
2784	fi
2785      done
2786      IFS="$lt_save_ifs"
2787      ;;
2788    esac
2789else
2790  enable_fast_install=yes
2791fi
2792
2793
2794# Make sure we can run config.sub.
2795$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2796  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2797$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2798   { (exit 1); exit 1; }; }
2799
2800{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2801$as_echo_n "checking build system type... " >&6; }
2802if test "${ac_cv_build+set}" = set; then
2803  $as_echo_n "(cached) " >&6
2804else
2805  ac_build_alias=$build_alias
2806test "x$ac_build_alias" = x &&
2807  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2808test "x$ac_build_alias" = x &&
2809  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2810$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2811   { (exit 1); exit 1; }; }
2812ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2813  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2814$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2815   { (exit 1); exit 1; }; }
2816
2817fi
2818{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2819$as_echo "$ac_cv_build" >&6; }
2820case $ac_cv_build in
2821*-*-*) ;;
2822*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2823$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2824   { (exit 1); exit 1; }; };;
2825esac
2826build=$ac_cv_build
2827ac_save_IFS=$IFS; IFS='-'
2828set x $ac_cv_build
2829shift
2830build_cpu=$1
2831build_vendor=$2
2832shift; shift
2833# Remember, the first character of IFS is used to create $*,
2834# except with old shells:
2835build_os=$*
2836IFS=$ac_save_IFS
2837case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2838
2839
2840{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2841$as_echo_n "checking host system type... " >&6; }
2842if test "${ac_cv_host+set}" = set; then
2843  $as_echo_n "(cached) " >&6
2844else
2845  if test "x$host_alias" = x; then
2846  ac_cv_host=$ac_cv_build
2847else
2848  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2849    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2850$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2851   { (exit 1); exit 1; }; }
2852fi
2853
2854fi
2855{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2856$as_echo "$ac_cv_host" >&6; }
2857case $ac_cv_host in
2858*-*-*) ;;
2859*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2860$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2861   { (exit 1); exit 1; }; };;
2862esac
2863host=$ac_cv_host
2864ac_save_IFS=$IFS; IFS='-'
2865set x $ac_cv_host
2866shift
2867host_cpu=$1
2868host_vendor=$2
2869shift; shift
2870# Remember, the first character of IFS is used to create $*,
2871# except with old shells:
2872host_os=$*
2873IFS=$ac_save_IFS
2874case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2875
2876
2877DEPDIR="${am__leading_dot}deps"
2878
2879ac_config_commands="$ac_config_commands depfiles"
2880
2881
2882am_make=${MAKE-make}
2883cat > confinc << 'END'
2884am__doit:
2885	@echo this is the am__doit target
2886.PHONY: am__doit
2887END
2888# If we don't find an include directive, just comment out the code.
2889{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2890$as_echo_n "checking for style of include used by $am_make... " >&6; }
2891am__include="#"
2892am__quote=
2893_am_result=none
2894# First try GNU make style include.
2895echo "include confinc" > confmf
2896# Ignore all kinds of additional output from `make'.
2897case `$am_make -s -f confmf 2> /dev/null` in #(
2898*the\ am__doit\ target*)
2899  am__include=include
2900  am__quote=
2901  _am_result=GNU
2902  ;;
2903esac
2904# Now try BSD make style include.
2905if test "$am__include" = "#"; then
2906   echo '.include "confinc"' > confmf
2907   case `$am_make -s -f confmf 2> /dev/null` in #(
2908   *the\ am__doit\ target*)
2909     am__include=.include
2910     am__quote="\""
2911     _am_result=BSD
2912     ;;
2913   esac
2914fi
2915
2916
2917{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2918$as_echo "$_am_result" >&6; }
2919rm -f confinc confmf
2920
2921# Check whether --enable-dependency-tracking was given.
2922if test "${enable_dependency_tracking+set}" = set; then
2923  enableval=$enable_dependency_tracking;
2924fi
2925
2926if test "x$enable_dependency_tracking" != xno; then
2927  am_depcomp="$ac_aux_dir/depcomp"
2928  AMDEPBACKSLASH='\'
2929fi
2930 if test "x$enable_dependency_tracking" != xno; then
2931  AMDEP_TRUE=
2932  AMDEP_FALSE='#'
2933else
2934  AMDEP_TRUE='#'
2935  AMDEP_FALSE=
2936fi
2937
2938
2939ac_ext=c
2940ac_cpp='$CPP $CPPFLAGS'
2941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944if test -n "$ac_tool_prefix"; then
2945  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2946set dummy ${ac_tool_prefix}gcc; ac_word=$2
2947{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2948$as_echo_n "checking for $ac_word... " >&6; }
2949if test "${ac_cv_prog_CC+set}" = set; then
2950  $as_echo_n "(cached) " >&6
2951else
2952  if test -n "$CC"; then
2953  ac_cv_prog_CC="$CC" # Let the user override the test.
2954else
2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956for as_dir in $PATH
2957do
2958  IFS=$as_save_IFS
2959  test -z "$as_dir" && as_dir=.
2960  for ac_exec_ext in '' $ac_executable_extensions; do
2961  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2963    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2964    break 2
2965  fi
2966done
2967done
2968IFS=$as_save_IFS
2969
2970fi
2971fi
2972CC=$ac_cv_prog_CC
2973if test -n "$CC"; then
2974  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2975$as_echo "$CC" >&6; }
2976else
2977  { $as_echo "$as_me:$LINENO: result: no" >&5
2978$as_echo "no" >&6; }
2979fi
2980
2981
2982fi
2983if test -z "$ac_cv_prog_CC"; then
2984  ac_ct_CC=$CC
2985  # Extract the first word of "gcc", so it can be a program name with args.
2986set dummy gcc; ac_word=$2
2987{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2988$as_echo_n "checking for $ac_word... " >&6; }
2989if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2990  $as_echo_n "(cached) " >&6
2991else
2992  if test -n "$ac_ct_CC"; then
2993  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2994else
2995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996for as_dir in $PATH
2997do
2998  IFS=$as_save_IFS
2999  test -z "$as_dir" && as_dir=.
3000  for ac_exec_ext in '' $ac_executable_extensions; do
3001  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002    ac_cv_prog_ac_ct_CC="gcc"
3003    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004    break 2
3005  fi
3006done
3007done
3008IFS=$as_save_IFS
3009
3010fi
3011fi
3012ac_ct_CC=$ac_cv_prog_ac_ct_CC
3013if test -n "$ac_ct_CC"; then
3014  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3015$as_echo "$ac_ct_CC" >&6; }
3016else
3017  { $as_echo "$as_me:$LINENO: result: no" >&5
3018$as_echo "no" >&6; }
3019fi
3020
3021  if test "x$ac_ct_CC" = x; then
3022    CC=""
3023  else
3024    case $cross_compiling:$ac_tool_warned in
3025yes:)
3026{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3027$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3028ac_tool_warned=yes ;;
3029esac
3030    CC=$ac_ct_CC
3031  fi
3032else
3033  CC="$ac_cv_prog_CC"
3034fi
3035
3036if test -z "$CC"; then
3037          if test -n "$ac_tool_prefix"; then
3038    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3039set dummy ${ac_tool_prefix}cc; ac_word=$2
3040{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3041$as_echo_n "checking for $ac_word... " >&6; }
3042if test "${ac_cv_prog_CC+set}" = set; then
3043  $as_echo_n "(cached) " >&6
3044else
3045  if test -n "$CC"; then
3046  ac_cv_prog_CC="$CC" # Let the user override the test.
3047else
3048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049for as_dir in $PATH
3050do
3051  IFS=$as_save_IFS
3052  test -z "$as_dir" && as_dir=.
3053  for ac_exec_ext in '' $ac_executable_extensions; do
3054  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3055    ac_cv_prog_CC="${ac_tool_prefix}cc"
3056    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3057    break 2
3058  fi
3059done
3060done
3061IFS=$as_save_IFS
3062
3063fi
3064fi
3065CC=$ac_cv_prog_CC
3066if test -n "$CC"; then
3067  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3068$as_echo "$CC" >&6; }
3069else
3070  { $as_echo "$as_me:$LINENO: result: no" >&5
3071$as_echo "no" >&6; }
3072fi
3073
3074
3075  fi
3076fi
3077if test -z "$CC"; then
3078  # Extract the first word of "cc", so it can be a program name with args.
3079set dummy cc; ac_word=$2
3080{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3081$as_echo_n "checking for $ac_word... " >&6; }
3082if test "${ac_cv_prog_CC+set}" = set; then
3083  $as_echo_n "(cached) " >&6
3084else
3085  if test -n "$CC"; then
3086  ac_cv_prog_CC="$CC" # Let the user override the test.
3087else
3088  ac_prog_rejected=no
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092  IFS=$as_save_IFS
3093  test -z "$as_dir" && as_dir=.
3094  for ac_exec_ext in '' $ac_executable_extensions; do
3095  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3097       ac_prog_rejected=yes
3098       continue
3099     fi
3100    ac_cv_prog_CC="cc"
3101    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3102    break 2
3103  fi
3104done
3105done
3106IFS=$as_save_IFS
3107
3108if test $ac_prog_rejected = yes; then
3109  # We found a bogon in the path, so make sure we never use it.
3110  set dummy $ac_cv_prog_CC
3111  shift
3112  if test $# != 0; then
3113    # We chose a different compiler from the bogus one.
3114    # However, it has the same basename, so the bogon will be chosen
3115    # first if we set CC to just the basename; use the full file name.
3116    shift
3117    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3118  fi
3119fi
3120fi
3121fi
3122CC=$ac_cv_prog_CC
3123if test -n "$CC"; then
3124  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3125$as_echo "$CC" >&6; }
3126else
3127  { $as_echo "$as_me:$LINENO: result: no" >&5
3128$as_echo "no" >&6; }
3129fi
3130
3131
3132fi
3133if test -z "$CC"; then
3134  if test -n "$ac_tool_prefix"; then
3135  for ac_prog in cl.exe
3136  do
3137    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3138set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3139{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140$as_echo_n "checking for $ac_word... " >&6; }
3141if test "${ac_cv_prog_CC+set}" = set; then
3142  $as_echo_n "(cached) " >&6
3143else
3144  if test -n "$CC"; then
3145  ac_cv_prog_CC="$CC" # Let the user override the test.
3146else
3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148for as_dir in $PATH
3149do
3150  IFS=$as_save_IFS
3151  test -z "$as_dir" && as_dir=.
3152  for ac_exec_ext in '' $ac_executable_extensions; do
3153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3155    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3156    break 2
3157  fi
3158done
3159done
3160IFS=$as_save_IFS
3161
3162fi
3163fi
3164CC=$ac_cv_prog_CC
3165if test -n "$CC"; then
3166  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3167$as_echo "$CC" >&6; }
3168else
3169  { $as_echo "$as_me:$LINENO: result: no" >&5
3170$as_echo "no" >&6; }
3171fi
3172
3173
3174    test -n "$CC" && break
3175  done
3176fi
3177if test -z "$CC"; then
3178  ac_ct_CC=$CC
3179  for ac_prog in cl.exe
3180do
3181  # Extract the first word of "$ac_prog", so it can be a program name with args.
3182set dummy $ac_prog; ac_word=$2
3183{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3184$as_echo_n "checking for $ac_word... " >&6; }
3185if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3186  $as_echo_n "(cached) " >&6
3187else
3188  if test -n "$ac_ct_CC"; then
3189  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3190else
3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192for as_dir in $PATH
3193do
3194  IFS=$as_save_IFS
3195  test -z "$as_dir" && as_dir=.
3196  for ac_exec_ext in '' $ac_executable_extensions; do
3197  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198    ac_cv_prog_ac_ct_CC="$ac_prog"
3199    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3200    break 2
3201  fi
3202done
3203done
3204IFS=$as_save_IFS
3205
3206fi
3207fi
3208ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209if test -n "$ac_ct_CC"; then
3210  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3211$as_echo "$ac_ct_CC" >&6; }
3212else
3213  { $as_echo "$as_me:$LINENO: result: no" >&5
3214$as_echo "no" >&6; }
3215fi
3216
3217
3218  test -n "$ac_ct_CC" && break
3219done
3220
3221  if test "x$ac_ct_CC" = x; then
3222    CC=""
3223  else
3224    case $cross_compiling:$ac_tool_warned in
3225yes:)
3226{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3228ac_tool_warned=yes ;;
3229esac
3230    CC=$ac_ct_CC
3231  fi
3232fi
3233
3234fi
3235
3236
3237test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3240See \`config.log' for more details." >&5
3241$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3242See \`config.log' for more details." >&2;}
3243   { (exit 1); exit 1; }; }; }
3244
3245# Provide some information about the compiler.
3246$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3247set X $ac_compile
3248ac_compiler=$2
3249{ (ac_try="$ac_compiler --version >&5"
3250case "(($ac_try" in
3251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252  *) ac_try_echo=$ac_try;;
3253esac
3254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3255$as_echo "$ac_try_echo") >&5
3256  (eval "$ac_compiler --version >&5") 2>&5
3257  ac_status=$?
3258  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259  (exit $ac_status); }
3260{ (ac_try="$ac_compiler -v >&5"
3261case "(($ac_try" in
3262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263  *) ac_try_echo=$ac_try;;
3264esac
3265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3266$as_echo "$ac_try_echo") >&5
3267  (eval "$ac_compiler -v >&5") 2>&5
3268  ac_status=$?
3269  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270  (exit $ac_status); }
3271{ (ac_try="$ac_compiler -V >&5"
3272case "(($ac_try" in
3273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274  *) ac_try_echo=$ac_try;;
3275esac
3276eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3277$as_echo "$ac_try_echo") >&5
3278  (eval "$ac_compiler -V >&5") 2>&5
3279  ac_status=$?
3280  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281  (exit $ac_status); }
3282
3283cat >conftest.$ac_ext <<_ACEOF
3284/* confdefs.h.  */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
3288/* end confdefs.h.  */
3289
3290int
3291main ()
3292{
3293
3294  ;
3295  return 0;
3296}
3297_ACEOF
3298ac_clean_files_save=$ac_clean_files
3299ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3300# Try to create an executable without -o first, disregard a.out.
3301# It will help us diagnose broken compilers, and finding out an intuition
3302# of exeext.
3303{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3304$as_echo_n "checking for C compiler default output file name... " >&6; }
3305ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3306
3307# The possible output files:
3308ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3309
3310ac_rmfiles=
3311for ac_file in $ac_files
3312do
3313  case $ac_file in
3314    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3315    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3316  esac
3317done
3318rm -f $ac_rmfiles
3319
3320if { (ac_try="$ac_link_default"
3321case "(($ac_try" in
3322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323  *) ac_try_echo=$ac_try;;
3324esac
3325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3326$as_echo "$ac_try_echo") >&5
3327  (eval "$ac_link_default") 2>&5
3328  ac_status=$?
3329  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330  (exit $ac_status); }; then
3331  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3332# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3333# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3334# so that the user can short-circuit this test for compilers unknown to
3335# Autoconf.
3336for ac_file in $ac_files ''
3337do
3338  test -f "$ac_file" || continue
3339  case $ac_file in
3340    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3341	;;
3342    [ab].out )
3343	# We found the default executable, but exeext='' is most
3344	# certainly right.
3345	break;;
3346    *.* )
3347        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3348	then :; else
3349	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3350	fi
3351	# We set ac_cv_exeext here because the later test for it is not
3352	# safe: cross compilers may not add the suffix if given an `-o'
3353	# argument, so we may need to know it at that point already.
3354	# Even if this section looks crufty: it has the advantage of
3355	# actually working.
3356	break;;
3357    * )
3358	break;;
3359  esac
3360done
3361test "$ac_cv_exeext" = no && ac_cv_exeext=
3362
3363else
3364  ac_file=''
3365fi
3366
3367{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3368$as_echo "$ac_file" >&6; }
3369if test -z "$ac_file"; then
3370  $as_echo "$as_me: failed program was:" >&5
3371sed 's/^/| /' conftest.$ac_ext >&5
3372
3373{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3376See \`config.log' for more details." >&5
3377$as_echo "$as_me: error: C compiler cannot create executables
3378See \`config.log' for more details." >&2;}
3379   { (exit 77); exit 77; }; }; }
3380fi
3381
3382ac_exeext=$ac_cv_exeext
3383
3384# Check that the compiler produces executables we can run.  If not, either
3385# the compiler is broken, or we cross compile.
3386{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3387$as_echo_n "checking whether the C compiler works... " >&6; }
3388# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3389# If not cross compiling, check that we can run a simple program.
3390if test "$cross_compiling" != yes; then
3391  if { ac_try='./$ac_file'
3392  { (case "(($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_try") 2>&5
3399  ac_status=$?
3400  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }; }; then
3402    cross_compiling=no
3403  else
3404    if test "$cross_compiling" = maybe; then
3405	cross_compiling=yes
3406    else
3407	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3410If you meant to cross compile, use \`--host'.
3411See \`config.log' for more details." >&5
3412$as_echo "$as_me: error: cannot run C compiled programs.
3413If you meant to cross compile, use \`--host'.
3414See \`config.log' for more details." >&2;}
3415   { (exit 1); exit 1; }; }; }
3416    fi
3417  fi
3418fi
3419{ $as_echo "$as_me:$LINENO: result: yes" >&5
3420$as_echo "yes" >&6; }
3421
3422rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3423ac_clean_files=$ac_clean_files_save
3424# Check that the compiler produces executables we can run.  If not, either
3425# the compiler is broken, or we cross compile.
3426{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3427$as_echo_n "checking whether we are cross compiling... " >&6; }
3428{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3429$as_echo "$cross_compiling" >&6; }
3430
3431{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3432$as_echo_n "checking for suffix of executables... " >&6; }
3433if { (ac_try="$ac_link"
3434case "(($ac_try" in
3435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436  *) ac_try_echo=$ac_try;;
3437esac
3438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3439$as_echo "$ac_try_echo") >&5
3440  (eval "$ac_link") 2>&5
3441  ac_status=$?
3442  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443  (exit $ac_status); }; then
3444  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3445# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3446# work properly (i.e., refer to `conftest.exe'), while it won't with
3447# `rm'.
3448for ac_file in conftest.exe conftest conftest.*; do
3449  test -f "$ac_file" || continue
3450  case $ac_file in
3451    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3452    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3453	  break;;
3454    * ) break;;
3455  esac
3456done
3457else
3458  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3461See \`config.log' for more details." >&5
3462$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3463See \`config.log' for more details." >&2;}
3464   { (exit 1); exit 1; }; }; }
3465fi
3466
3467rm -f conftest$ac_cv_exeext
3468{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3469$as_echo "$ac_cv_exeext" >&6; }
3470
3471rm -f conftest.$ac_ext
3472EXEEXT=$ac_cv_exeext
3473ac_exeext=$EXEEXT
3474{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3475$as_echo_n "checking for suffix of object files... " >&6; }
3476if test "${ac_cv_objext+set}" = set; then
3477  $as_echo_n "(cached) " >&6
3478else
3479  cat >conftest.$ac_ext <<_ACEOF
3480/* confdefs.h.  */
3481_ACEOF
3482cat confdefs.h >>conftest.$ac_ext
3483cat >>conftest.$ac_ext <<_ACEOF
3484/* end confdefs.h.  */
3485
3486int
3487main ()
3488{
3489
3490  ;
3491  return 0;
3492}
3493_ACEOF
3494rm -f conftest.o conftest.obj
3495if { (ac_try="$ac_compile"
3496case "(($ac_try" in
3497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498  *) ac_try_echo=$ac_try;;
3499esac
3500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3501$as_echo "$ac_try_echo") >&5
3502  (eval "$ac_compile") 2>&5
3503  ac_status=$?
3504  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); }; then
3506  for ac_file in conftest.o conftest.obj conftest.*; do
3507  test -f "$ac_file" || continue;
3508  case $ac_file in
3509    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3510    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3511       break;;
3512  esac
3513done
3514else
3515  $as_echo "$as_me: failed program was:" >&5
3516sed 's/^/| /' conftest.$ac_ext >&5
3517
3518{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3521See \`config.log' for more details." >&5
3522$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3523See \`config.log' for more details." >&2;}
3524   { (exit 1); exit 1; }; }; }
3525fi
3526
3527rm -f conftest.$ac_cv_objext conftest.$ac_ext
3528fi
3529{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3530$as_echo "$ac_cv_objext" >&6; }
3531OBJEXT=$ac_cv_objext
3532ac_objext=$OBJEXT
3533{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3534$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3535if test "${ac_cv_c_compiler_gnu+set}" = set; then
3536  $as_echo_n "(cached) " >&6
3537else
3538  cat >conftest.$ac_ext <<_ACEOF
3539/* confdefs.h.  */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
3543/* end confdefs.h.  */
3544
3545int
3546main ()
3547{
3548#ifndef __GNUC__
3549       choke me
3550#endif
3551
3552  ;
3553  return 0;
3554}
3555_ACEOF
3556rm -f conftest.$ac_objext
3557if { (ac_try="$ac_compile"
3558case "(($ac_try" in
3559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560  *) ac_try_echo=$ac_try;;
3561esac
3562eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3563$as_echo "$ac_try_echo") >&5
3564  (eval "$ac_compile") 2>conftest.er1
3565  ac_status=$?
3566  grep -v '^ *+' conftest.er1 >conftest.err
3567  rm -f conftest.er1
3568  cat conftest.err >&5
3569  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570  (exit $ac_status); } && {
3571	 test -z "$ac_c_werror_flag" ||
3572	 test ! -s conftest.err
3573       } && test -s conftest.$ac_objext; then
3574  ac_compiler_gnu=yes
3575else
3576  $as_echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579	ac_compiler_gnu=no
3580fi
3581
3582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583ac_cv_c_compiler_gnu=$ac_compiler_gnu
3584
3585fi
3586{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3587$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3588if test $ac_compiler_gnu = yes; then
3589  GCC=yes
3590else
3591  GCC=
3592fi
3593ac_test_CFLAGS=${CFLAGS+set}
3594ac_save_CFLAGS=$CFLAGS
3595{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3596$as_echo_n "checking whether $CC accepts -g... " >&6; }
3597if test "${ac_cv_prog_cc_g+set}" = set; then
3598  $as_echo_n "(cached) " >&6
3599else
3600  ac_save_c_werror_flag=$ac_c_werror_flag
3601   ac_c_werror_flag=yes
3602   ac_cv_prog_cc_g=no
3603   CFLAGS="-g"
3604   cat >conftest.$ac_ext <<_ACEOF
3605/* confdefs.h.  */
3606_ACEOF
3607cat confdefs.h >>conftest.$ac_ext
3608cat >>conftest.$ac_ext <<_ACEOF
3609/* end confdefs.h.  */
3610
3611int
3612main ()
3613{
3614
3615  ;
3616  return 0;
3617}
3618_ACEOF
3619rm -f conftest.$ac_objext
3620if { (ac_try="$ac_compile"
3621case "(($ac_try" in
3622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623  *) ac_try_echo=$ac_try;;
3624esac
3625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3626$as_echo "$ac_try_echo") >&5
3627  (eval "$ac_compile") 2>conftest.er1
3628  ac_status=$?
3629  grep -v '^ *+' conftest.er1 >conftest.err
3630  rm -f conftest.er1
3631  cat conftest.err >&5
3632  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633  (exit $ac_status); } && {
3634	 test -z "$ac_c_werror_flag" ||
3635	 test ! -s conftest.err
3636       } && test -s conftest.$ac_objext; then
3637  ac_cv_prog_cc_g=yes
3638else
3639  $as_echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642	CFLAGS=""
3643      cat >conftest.$ac_ext <<_ACEOF
3644/* confdefs.h.  */
3645_ACEOF
3646cat confdefs.h >>conftest.$ac_ext
3647cat >>conftest.$ac_ext <<_ACEOF
3648/* end confdefs.h.  */
3649
3650int
3651main ()
3652{
3653
3654  ;
3655  return 0;
3656}
3657_ACEOF
3658rm -f conftest.$ac_objext
3659if { (ac_try="$ac_compile"
3660case "(($ac_try" in
3661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662  *) ac_try_echo=$ac_try;;
3663esac
3664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3665$as_echo "$ac_try_echo") >&5
3666  (eval "$ac_compile") 2>conftest.er1
3667  ac_status=$?
3668  grep -v '^ *+' conftest.er1 >conftest.err
3669  rm -f conftest.er1
3670  cat conftest.err >&5
3671  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672  (exit $ac_status); } && {
3673	 test -z "$ac_c_werror_flag" ||
3674	 test ! -s conftest.err
3675       } && test -s conftest.$ac_objext; then
3676  :
3677else
3678  $as_echo "$as_me: failed program was:" >&5
3679sed 's/^/| /' conftest.$ac_ext >&5
3680
3681	ac_c_werror_flag=$ac_save_c_werror_flag
3682	 CFLAGS="-g"
3683	 cat >conftest.$ac_ext <<_ACEOF
3684/* confdefs.h.  */
3685_ACEOF
3686cat confdefs.h >>conftest.$ac_ext
3687cat >>conftest.$ac_ext <<_ACEOF
3688/* end confdefs.h.  */
3689
3690int
3691main ()
3692{
3693
3694  ;
3695  return 0;
3696}
3697_ACEOF
3698rm -f conftest.$ac_objext
3699if { (ac_try="$ac_compile"
3700case "(($ac_try" in
3701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702  *) ac_try_echo=$ac_try;;
3703esac
3704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3705$as_echo "$ac_try_echo") >&5
3706  (eval "$ac_compile") 2>conftest.er1
3707  ac_status=$?
3708  grep -v '^ *+' conftest.er1 >conftest.err
3709  rm -f conftest.er1
3710  cat conftest.err >&5
3711  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712  (exit $ac_status); } && {
3713	 test -z "$ac_c_werror_flag" ||
3714	 test ! -s conftest.err
3715       } && test -s conftest.$ac_objext; then
3716  ac_cv_prog_cc_g=yes
3717else
3718  $as_echo "$as_me: failed program was:" >&5
3719sed 's/^/| /' conftest.$ac_ext >&5
3720
3721
3722fi
3723
3724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725fi
3726
3727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728fi
3729
3730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731   ac_c_werror_flag=$ac_save_c_werror_flag
3732fi
3733{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3734$as_echo "$ac_cv_prog_cc_g" >&6; }
3735if test "$ac_test_CFLAGS" = set; then
3736  CFLAGS=$ac_save_CFLAGS
3737elif test $ac_cv_prog_cc_g = yes; then
3738  if test "$GCC" = yes; then
3739    CFLAGS="-g -O2"
3740  else
3741    CFLAGS="-g"
3742  fi
3743else
3744  if test "$GCC" = yes; then
3745    CFLAGS="-O2"
3746  else
3747    CFLAGS=
3748  fi
3749fi
3750{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3751$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3752if test "${ac_cv_prog_cc_c89+set}" = set; then
3753  $as_echo_n "(cached) " >&6
3754else
3755  ac_cv_prog_cc_c89=no
3756ac_save_CC=$CC
3757cat >conftest.$ac_ext <<_ACEOF
3758/* confdefs.h.  */
3759_ACEOF
3760cat confdefs.h >>conftest.$ac_ext
3761cat >>conftest.$ac_ext <<_ACEOF
3762/* end confdefs.h.  */
3763#include <stdarg.h>
3764#include <stdio.h>
3765#include <sys/types.h>
3766#include <sys/stat.h>
3767/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3768struct buf { int x; };
3769FILE * (*rcsopen) (struct buf *, struct stat *, int);
3770static char *e (p, i)
3771     char **p;
3772     int i;
3773{
3774  return p[i];
3775}
3776static char *f (char * (*g) (char **, int), char **p, ...)
3777{
3778  char *s;
3779  va_list v;
3780  va_start (v,p);
3781  s = g (p, va_arg (v,int));
3782  va_end (v);
3783  return s;
3784}
3785
3786/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3787   function prototypes and stuff, but not '\xHH' hex character constants.
3788   These don't provoke an error unfortunately, instead are silently treated
3789   as 'x'.  The following induces an error, until -std is added to get
3790   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3791   array size at least.  It's necessary to write '\x00'==0 to get something
3792   that's true only with -std.  */
3793int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3794
3795/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3796   inside strings and character constants.  */
3797#define FOO(x) 'x'
3798int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3799
3800int test (int i, double x);
3801struct s1 {int (*f) (int a);};
3802struct s2 {int (*f) (double a);};
3803int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3804int argc;
3805char **argv;
3806int
3807main ()
3808{
3809return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3810  ;
3811  return 0;
3812}
3813_ACEOF
3814for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3815	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3816do
3817  CC="$ac_save_CC $ac_arg"
3818  rm -f conftest.$ac_objext
3819if { (ac_try="$ac_compile"
3820case "(($ac_try" in
3821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822  *) ac_try_echo=$ac_try;;
3823esac
3824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3825$as_echo "$ac_try_echo") >&5
3826  (eval "$ac_compile") 2>conftest.er1
3827  ac_status=$?
3828  grep -v '^ *+' conftest.er1 >conftest.err
3829  rm -f conftest.er1
3830  cat conftest.err >&5
3831  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832  (exit $ac_status); } && {
3833	 test -z "$ac_c_werror_flag" ||
3834	 test ! -s conftest.err
3835       } && test -s conftest.$ac_objext; then
3836  ac_cv_prog_cc_c89=$ac_arg
3837else
3838  $as_echo "$as_me: failed program was:" >&5
3839sed 's/^/| /' conftest.$ac_ext >&5
3840
3841
3842fi
3843
3844rm -f core conftest.err conftest.$ac_objext
3845  test "x$ac_cv_prog_cc_c89" != "xno" && break
3846done
3847rm -f conftest.$ac_ext
3848CC=$ac_save_CC
3849
3850fi
3851# AC_CACHE_VAL
3852case "x$ac_cv_prog_cc_c89" in
3853  x)
3854    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3855$as_echo "none needed" >&6; } ;;
3856  xno)
3857    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3858$as_echo "unsupported" >&6; } ;;
3859  *)
3860    CC="$CC $ac_cv_prog_cc_c89"
3861    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3862$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3863esac
3864
3865
3866ac_ext=c
3867ac_cpp='$CPP $CPPFLAGS'
3868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3870ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871
3872depcc="$CC"   am_compiler_list=
3873
3874{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3875$as_echo_n "checking dependency style of $depcc... " >&6; }
3876if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3877  $as_echo_n "(cached) " >&6
3878else
3879  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3880  # We make a subdir and do the tests there.  Otherwise we can end up
3881  # making bogus files that we don't know about and never remove.  For
3882  # instance it was reported that on HP-UX the gcc test will end up
3883  # making a dummy file named `D' -- because `-MD' means `put the output
3884  # in D'.
3885  mkdir conftest.dir
3886  # Copy depcomp to subdir because otherwise we won't find it if we're
3887  # using a relative directory.
3888  cp "$am_depcomp" conftest.dir
3889  cd conftest.dir
3890  # We will build objects and dependencies in a subdirectory because
3891  # it helps to detect inapplicable dependency modes.  For instance
3892  # both Tru64's cc and ICC support -MD to output dependencies as a
3893  # side effect of compilation, but ICC will put the dependencies in
3894  # the current directory while Tru64 will put them in the object
3895  # directory.
3896  mkdir sub
3897
3898  am_cv_CC_dependencies_compiler_type=none
3899  if test "$am_compiler_list" = ""; then
3900     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3901  fi
3902  am__universal=false
3903  case " $depcc " in #(
3904     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3905     esac
3906
3907  for depmode in $am_compiler_list; do
3908    # Setup a source with many dependencies, because some compilers
3909    # like to wrap large dependency lists on column 80 (with \), and
3910    # we should not choose a depcomp mode which is confused by this.
3911    #
3912    # We need to recreate these files for each test, as the compiler may
3913    # overwrite some of them when testing with obscure command lines.
3914    # This happens at least with the AIX C compiler.
3915    : > sub/conftest.c
3916    for i in 1 2 3 4 5 6; do
3917      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3918      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3919      # Solaris 8's {/usr,}/bin/sh.
3920      touch sub/conftst$i.h
3921    done
3922    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3923
3924    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3925    # mode.  It turns out that the SunPro C++ compiler does not properly
3926    # handle `-M -o', and we need to detect this.  Also, some Intel
3927    # versions had trouble with output in subdirs
3928    am__obj=sub/conftest.${OBJEXT-o}
3929    am__minus_obj="-o $am__obj"
3930    case $depmode in
3931    gcc)
3932      # This depmode causes a compiler race in universal mode.
3933      test "$am__universal" = false || continue
3934      ;;
3935    nosideeffect)
3936      # after this tag, mechanisms are not by side-effect, so they'll
3937      # only be used when explicitly requested
3938      if test "x$enable_dependency_tracking" = xyes; then
3939	continue
3940      else
3941	break
3942      fi
3943      ;;
3944    msvisualcpp | msvcmsys)
3945      # This compiler won't grok `-c -o', but also, the minuso test has
3946      # not run yet.  These depmodes are late enough in the game, and
3947      # so weak that their functioning should not be impacted.
3948      am__obj=conftest.${OBJEXT-o}
3949      am__minus_obj=
3950      ;;
3951    none) break ;;
3952    esac
3953    if depmode=$depmode \
3954       source=sub/conftest.c object=$am__obj \
3955       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3956       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3957         >/dev/null 2>conftest.err &&
3958       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3959       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3960       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3961       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3962      # icc doesn't choke on unknown options, it will just issue warnings
3963      # or remarks (even with -Werror).  So we grep stderr for any message
3964      # that says an option was ignored or not supported.
3965      # When given -MP, icc 7.0 and 7.1 complain thusly:
3966      #   icc: Command line warning: ignoring option '-M'; no argument required
3967      # The diagnosis changed in icc 8.0:
3968      #   icc: Command line remark: option '-MP' not supported
3969      if (grep 'ignoring option' conftest.err ||
3970          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3971        am_cv_CC_dependencies_compiler_type=$depmode
3972        break
3973      fi
3974    fi
3975  done
3976
3977  cd ..
3978  rm -rf conftest.dir
3979else
3980  am_cv_CC_dependencies_compiler_type=none
3981fi
3982
3983fi
3984{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3985$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3986CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3987
3988 if
3989  test "x$enable_dependency_tracking" != xno \
3990  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3991  am__fastdepCC_TRUE=
3992  am__fastdepCC_FALSE='#'
3993else
3994  am__fastdepCC_TRUE='#'
3995  am__fastdepCC_FALSE=
3996fi
3997
3998
3999{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4000$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4001if test "${lt_cv_path_SED+set}" = set; then
4002  $as_echo_n "(cached) " >&6
4003else
4004  # Loop through the user's path and test for sed and gsed.
4005# Then use that list of sed's as ones to test for truncation.
4006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007for as_dir in $PATH
4008do
4009  IFS=$as_save_IFS
4010  test -z "$as_dir" && as_dir=.
4011  for lt_ac_prog in sed gsed; do
4012    for ac_exec_ext in '' $ac_executable_extensions; do
4013      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4014        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4015      fi
4016    done
4017  done
4018done
4019IFS=$as_save_IFS
4020lt_ac_max=0
4021lt_ac_count=0
4022# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4023# along with /bin/sed that truncates output.
4024for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4025  test ! -f $lt_ac_sed && continue
4026  cat /dev/null > conftest.in
4027  lt_ac_count=0
4028  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4029  # Check for GNU sed and select it if it is found.
4030  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4031    lt_cv_path_SED=$lt_ac_sed
4032    break
4033  fi
4034  while true; do
4035    cat conftest.in conftest.in >conftest.tmp
4036    mv conftest.tmp conftest.in
4037    cp conftest.in conftest.nl
4038    echo >>conftest.nl
4039    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4040    cmp -s conftest.out conftest.nl || break
4041    # 10000 chars as input seems more than enough
4042    test $lt_ac_count -gt 10 && break
4043    lt_ac_count=`expr $lt_ac_count + 1`
4044    if test $lt_ac_count -gt $lt_ac_max; then
4045      lt_ac_max=$lt_ac_count
4046      lt_cv_path_SED=$lt_ac_sed
4047    fi
4048  done
4049done
4050
4051fi
4052
4053SED=$lt_cv_path_SED
4054
4055{ $as_echo "$as_me:$LINENO: result: $SED" >&5
4056$as_echo "$SED" >&6; }
4057
4058{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4059$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4060if test "${ac_cv_path_GREP+set}" = set; then
4061  $as_echo_n "(cached) " >&6
4062else
4063  if test -z "$GREP"; then
4064  ac_path_GREP_found=false
4065  # Loop through the user's path and test for each of PROGNAME-LIST
4066  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4068do
4069  IFS=$as_save_IFS
4070  test -z "$as_dir" && as_dir=.
4071  for ac_prog in grep ggrep; do
4072    for ac_exec_ext in '' $ac_executable_extensions; do
4073      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4074      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4075# Check for GNU ac_path_GREP and select it if it is found.
4076  # Check for GNU $ac_path_GREP
4077case `"$ac_path_GREP" --version 2>&1` in
4078*GNU*)
4079  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4080*)
4081  ac_count=0
4082  $as_echo_n 0123456789 >"conftest.in"
4083  while :
4084  do
4085    cat "conftest.in" "conftest.in" >"conftest.tmp"
4086    mv "conftest.tmp" "conftest.in"
4087    cp "conftest.in" "conftest.nl"
4088    $as_echo 'GREP' >> "conftest.nl"
4089    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4090    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4091    ac_count=`expr $ac_count + 1`
4092    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4093      # Best one so far, save it but keep looking for a better one
4094      ac_cv_path_GREP="$ac_path_GREP"
4095      ac_path_GREP_max=$ac_count
4096    fi
4097    # 10*(2^10) chars as input seems more than enough
4098    test $ac_count -gt 10 && break
4099  done
4100  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4101esac
4102
4103      $ac_path_GREP_found && break 3
4104    done
4105  done
4106done
4107IFS=$as_save_IFS
4108  if test -z "$ac_cv_path_GREP"; then
4109    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4110$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4111   { (exit 1); exit 1; }; }
4112  fi
4113else
4114  ac_cv_path_GREP=$GREP
4115fi
4116
4117fi
4118{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4119$as_echo "$ac_cv_path_GREP" >&6; }
4120 GREP="$ac_cv_path_GREP"
4121
4122
4123{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4124$as_echo_n "checking for egrep... " >&6; }
4125if test "${ac_cv_path_EGREP+set}" = set; then
4126  $as_echo_n "(cached) " >&6
4127else
4128  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4129   then ac_cv_path_EGREP="$GREP -E"
4130   else
4131     if test -z "$EGREP"; then
4132  ac_path_EGREP_found=false
4133  # Loop through the user's path and test for each of PROGNAME-LIST
4134  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4136do
4137  IFS=$as_save_IFS
4138  test -z "$as_dir" && as_dir=.
4139  for ac_prog in egrep; do
4140    for ac_exec_ext in '' $ac_executable_extensions; do
4141      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4142      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4143# Check for GNU ac_path_EGREP and select it if it is found.
4144  # Check for GNU $ac_path_EGREP
4145case `"$ac_path_EGREP" --version 2>&1` in
4146*GNU*)
4147  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4148*)
4149  ac_count=0
4150  $as_echo_n 0123456789 >"conftest.in"
4151  while :
4152  do
4153    cat "conftest.in" "conftest.in" >"conftest.tmp"
4154    mv "conftest.tmp" "conftest.in"
4155    cp "conftest.in" "conftest.nl"
4156    $as_echo 'EGREP' >> "conftest.nl"
4157    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4158    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4159    ac_count=`expr $ac_count + 1`
4160    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4161      # Best one so far, save it but keep looking for a better one
4162      ac_cv_path_EGREP="$ac_path_EGREP"
4163      ac_path_EGREP_max=$ac_count
4164    fi
4165    # 10*(2^10) chars as input seems more than enough
4166    test $ac_count -gt 10 && break
4167  done
4168  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4169esac
4170
4171      $ac_path_EGREP_found && break 3
4172    done
4173  done
4174done
4175IFS=$as_save_IFS
4176  if test -z "$ac_cv_path_EGREP"; then
4177    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4178$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4179   { (exit 1); exit 1; }; }
4180  fi
4181else
4182  ac_cv_path_EGREP=$EGREP
4183fi
4184
4185   fi
4186fi
4187{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4188$as_echo "$ac_cv_path_EGREP" >&6; }
4189 EGREP="$ac_cv_path_EGREP"
4190
4191
4192
4193# Check whether --with-gnu-ld was given.
4194if test "${with_gnu_ld+set}" = set; then
4195  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4196else
4197  with_gnu_ld=no
4198fi
4199
4200ac_prog=ld
4201if test "$GCC" = yes; then
4202  # Check if gcc -print-prog-name=ld gives a path.
4203  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4204$as_echo_n "checking for ld used by $CC... " >&6; }
4205  case $host in
4206  *-*-mingw*)
4207    # gcc leaves a trailing carriage return which upsets mingw
4208    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4209  *)
4210    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4211  esac
4212  case $ac_prog in
4213    # Accept absolute paths.
4214    [\\/]* | ?:[\\/]*)
4215      re_direlt='/[^/][^/]*/\.\./'
4216      # Canonicalize the pathname of ld
4217      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4218      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4219	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4220      done
4221      test -z "$LD" && LD="$ac_prog"
4222      ;;
4223  "")
4224    # If it fails, then pretend we aren't using GCC.
4225    ac_prog=ld
4226    ;;
4227  *)
4228    # If it is relative, then search for the first ld in PATH.
4229    with_gnu_ld=unknown
4230    ;;
4231  esac
4232elif test "$with_gnu_ld" = yes; then
4233  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4234$as_echo_n "checking for GNU ld... " >&6; }
4235else
4236  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4237$as_echo_n "checking for non-GNU ld... " >&6; }
4238fi
4239if test "${lt_cv_path_LD+set}" = set; then
4240  $as_echo_n "(cached) " >&6
4241else
4242  if test -z "$LD"; then
4243  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4244  for ac_dir in $PATH; do
4245    IFS="$lt_save_ifs"
4246    test -z "$ac_dir" && ac_dir=.
4247    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4248      lt_cv_path_LD="$ac_dir/$ac_prog"
4249      # Check to see if the program is GNU ld.  I'd rather use --version,
4250      # but apparently some variants of GNU ld only accept -v.
4251      # Break only if it was the GNU/non-GNU ld that we prefer.
4252      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4253      *GNU* | *'with BFD'*)
4254	test "$with_gnu_ld" != no && break
4255	;;
4256      *)
4257	test "$with_gnu_ld" != yes && break
4258	;;
4259      esac
4260    fi
4261  done
4262  IFS="$lt_save_ifs"
4263else
4264  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4265fi
4266fi
4267
4268LD="$lt_cv_path_LD"
4269if test -n "$LD"; then
4270  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4271$as_echo "$LD" >&6; }
4272else
4273  { $as_echo "$as_me:$LINENO: result: no" >&5
4274$as_echo "no" >&6; }
4275fi
4276test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4277$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4278   { (exit 1); exit 1; }; }
4279{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4280$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4281if test "${lt_cv_prog_gnu_ld+set}" = set; then
4282  $as_echo_n "(cached) " >&6
4283else
4284  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4285case `$LD -v 2>&1 </dev/null` in
4286*GNU* | *'with BFD'*)
4287  lt_cv_prog_gnu_ld=yes
4288  ;;
4289*)
4290  lt_cv_prog_gnu_ld=no
4291  ;;
4292esac
4293fi
4294{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4295$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4296with_gnu_ld=$lt_cv_prog_gnu_ld
4297
4298
4299{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4300$as_echo_n "checking for $LD option to reload object files... " >&6; }
4301if test "${lt_cv_ld_reload_flag+set}" = set; then
4302  $as_echo_n "(cached) " >&6
4303else
4304  lt_cv_ld_reload_flag='-r'
4305fi
4306{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4307$as_echo "$lt_cv_ld_reload_flag" >&6; }
4308reload_flag=$lt_cv_ld_reload_flag
4309case $reload_flag in
4310"" | " "*) ;;
4311*) reload_flag=" $reload_flag" ;;
4312esac
4313reload_cmds='$LD$reload_flag -o $output$reload_objs'
4314case $host_os in
4315  darwin*)
4316    if test "$GCC" = yes; then
4317      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4318    else
4319      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4320    fi
4321    ;;
4322esac
4323
4324{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4325$as_echo_n "checking for BSD-compatible nm... " >&6; }
4326if test "${lt_cv_path_NM+set}" = set; then
4327  $as_echo_n "(cached) " >&6
4328else
4329  if test -n "$NM"; then
4330  # Let the user override the test.
4331  lt_cv_path_NM="$NM"
4332else
4333  lt_nm_to_check="${ac_tool_prefix}nm"
4334  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4335    lt_nm_to_check="$lt_nm_to_check nm"
4336  fi
4337  for lt_tmp_nm in $lt_nm_to_check; do
4338    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4339    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4340      IFS="$lt_save_ifs"
4341      test -z "$ac_dir" && ac_dir=.
4342      tmp_nm="$ac_dir/$lt_tmp_nm"
4343      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4344	# Check to see if the nm accepts a BSD-compat flag.
4345	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4346	#   nm: unknown option "B" ignored
4347	# Tru64's nm complains that /dev/null is an invalid object file
4348	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4349	*/dev/null* | *'Invalid file or object type'*)
4350	  lt_cv_path_NM="$tmp_nm -B"
4351	  break
4352	  ;;
4353	*)
4354	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4355	  */dev/null*)
4356	    lt_cv_path_NM="$tmp_nm -p"
4357	    break
4358	    ;;
4359	  *)
4360	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4361	    continue # so that we can try to find one that supports BSD flags
4362	    ;;
4363	  esac
4364	  ;;
4365	esac
4366      fi
4367    done
4368    IFS="$lt_save_ifs"
4369  done
4370  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4371fi
4372fi
4373{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4374$as_echo "$lt_cv_path_NM" >&6; }
4375NM="$lt_cv_path_NM"
4376
4377{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4378$as_echo_n "checking whether ln -s works... " >&6; }
4379LN_S=$as_ln_s
4380if test "$LN_S" = "ln -s"; then
4381  { $as_echo "$as_me:$LINENO: result: yes" >&5
4382$as_echo "yes" >&6; }
4383else
4384  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4385$as_echo "no, using $LN_S" >&6; }
4386fi
4387
4388{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4389$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4390if test "${lt_cv_deplibs_check_method+set}" = set; then
4391  $as_echo_n "(cached) " >&6
4392else
4393  lt_cv_file_magic_cmd='$MAGIC_CMD'
4394lt_cv_file_magic_test_file=
4395lt_cv_deplibs_check_method='unknown'
4396# Need to set the preceding variable on all platforms that support
4397# interlibrary dependencies.
4398# 'none' -- dependencies not supported.
4399# `unknown' -- same as none, but documents that we really don't know.
4400# 'pass_all' -- all dependencies passed with no checks.
4401# 'test_compile' -- check by making test program.
4402# 'file_magic [[regex]]' -- check by looking for files in library path
4403# which responds to the $file_magic_cmd with a given extended regex.
4404# If you have `file' or equivalent on your system and you're not sure
4405# whether `pass_all' will *always* work, you probably want this one.
4406
4407case $host_os in
4408aix[4-9]*)
4409  lt_cv_deplibs_check_method=pass_all
4410  ;;
4411
4412beos*)
4413  lt_cv_deplibs_check_method=pass_all
4414  ;;
4415
4416bsdi[45]*)
4417  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4418  lt_cv_file_magic_cmd='/usr/bin/file -L'
4419  lt_cv_file_magic_test_file=/shlib/libc.so
4420  ;;
4421
4422cygwin*)
4423  # func_win32_libid is a shell function defined in ltmain.sh
4424  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4425  lt_cv_file_magic_cmd='func_win32_libid'
4426  ;;
4427
4428mingw* | pw32*)
4429  # Base MSYS/MinGW do not provide the 'file' command needed by
4430  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4431  # unless we find 'file', for example because we are cross-compiling.
4432  if ( file / ) >/dev/null 2>&1; then
4433    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4434    lt_cv_file_magic_cmd='func_win32_libid'
4435  else
4436    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4437    lt_cv_file_magic_cmd='$OBJDUMP -f'
4438  fi
4439  ;;
4440
4441darwin* | rhapsody*)
4442  lt_cv_deplibs_check_method=pass_all
4443  ;;
4444
4445freebsd* | dragonfly*)
4446  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4447    case $host_cpu in
4448    i*86 )
4449      # Not sure whether the presence of OpenBSD here was a mistake.
4450      # Let's accept both of them until this is cleared up.
4451      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4452      lt_cv_file_magic_cmd=/usr/bin/file
4453      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4454      ;;
4455    esac
4456  else
4457    lt_cv_deplibs_check_method=pass_all
4458  fi
4459  ;;
4460
4461gnu*)
4462  lt_cv_deplibs_check_method=pass_all
4463  ;;
4464
4465hpux10.20* | hpux11*)
4466  lt_cv_file_magic_cmd=/usr/bin/file
4467  case $host_cpu in
4468  ia64*)
4469    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4470    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4471    ;;
4472  hppa*64*)
4473    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]'
4474    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4475    ;;
4476  *)
4477    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4478    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4479    ;;
4480  esac
4481  ;;
4482
4483interix[3-9]*)
4484  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4485  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4486  ;;
4487
4488irix5* | irix6* | nonstopux*)
4489  case $LD in
4490  *-32|*"-32 ") libmagic=32-bit;;
4491  *-n32|*"-n32 ") libmagic=N32;;
4492  *-64|*"-64 ") libmagic=64-bit;;
4493  *) libmagic=never-match;;
4494  esac
4495  lt_cv_deplibs_check_method=pass_all
4496  ;;
4497
4498# This must be Linux ELF.
4499linux* | k*bsd*-gnu)
4500  lt_cv_deplibs_check_method=pass_all
4501  ;;
4502
4503netbsd*)
4504  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4505    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4506  else
4507    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4508  fi
4509  ;;
4510
4511newos6*)
4512  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4513  lt_cv_file_magic_cmd=/usr/bin/file
4514  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4515  ;;
4516
4517nto-qnx*)
4518  lt_cv_deplibs_check_method=unknown
4519  ;;
4520
4521openbsd*)
4522  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4523    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4524  else
4525    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4526  fi
4527  ;;
4528
4529osf3* | osf4* | osf5*)
4530  lt_cv_deplibs_check_method=pass_all
4531  ;;
4532
4533rdos*)
4534  lt_cv_deplibs_check_method=pass_all
4535  ;;
4536
4537solaris*)
4538  lt_cv_deplibs_check_method=pass_all
4539  ;;
4540
4541sysv4 | sysv4.3*)
4542  case $host_vendor in
4543  motorola)
4544    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]'
4545    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4546    ;;
4547  ncr)
4548    lt_cv_deplibs_check_method=pass_all
4549    ;;
4550  sequent)
4551    lt_cv_file_magic_cmd='/bin/file'
4552    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4553    ;;
4554  sni)
4555    lt_cv_file_magic_cmd='/bin/file'
4556    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4557    lt_cv_file_magic_test_file=/lib/libc.so
4558    ;;
4559  siemens)
4560    lt_cv_deplibs_check_method=pass_all
4561    ;;
4562  pc)
4563    lt_cv_deplibs_check_method=pass_all
4564    ;;
4565  esac
4566  ;;
4567
4568sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4569  lt_cv_deplibs_check_method=pass_all
4570  ;;
4571esac
4572
4573fi
4574{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4575$as_echo "$lt_cv_deplibs_check_method" >&6; }
4576file_magic_cmd=$lt_cv_file_magic_cmd
4577deplibs_check_method=$lt_cv_deplibs_check_method
4578test -z "$deplibs_check_method" && deplibs_check_method=unknown
4579
4580
4581
4582
4583# If no C compiler was specified, use CC.
4584LTCC=${LTCC-"$CC"}
4585
4586# If no C compiler flags were specified, use CFLAGS.
4587LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4588
4589# Allow CC to be a program name with arguments.
4590compiler=$CC
4591
4592
4593# Check whether --enable-libtool-lock was given.
4594if test "${enable_libtool_lock+set}" = set; then
4595  enableval=$enable_libtool_lock;
4596fi
4597
4598test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4599
4600# Some flags need to be propagated to the compiler or linker for good
4601# libtool support.
4602case $host in
4603ia64-*-hpux*)
4604  # Find out which ABI we are using.
4605  echo 'int i;' > conftest.$ac_ext
4606  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607  (eval $ac_compile) 2>&5
4608  ac_status=$?
4609  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610  (exit $ac_status); }; then
4611    case `/usr/bin/file conftest.$ac_objext` in
4612    *ELF-32*)
4613      HPUX_IA64_MODE="32"
4614      ;;
4615    *ELF-64*)
4616      HPUX_IA64_MODE="64"
4617      ;;
4618    esac
4619  fi
4620  rm -rf conftest*
4621  ;;
4622*-*-irix6*)
4623  # Find out which ABI we are using.
4624  echo '#line 4624 "configure"' > conftest.$ac_ext
4625  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626  (eval $ac_compile) 2>&5
4627  ac_status=$?
4628  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629  (exit $ac_status); }; then
4630   if test "$lt_cv_prog_gnu_ld" = yes; then
4631    case `/usr/bin/file conftest.$ac_objext` in
4632    *32-bit*)
4633      LD="${LD-ld} -melf32bsmip"
4634      ;;
4635    *N32*)
4636      LD="${LD-ld} -melf32bmipn32"
4637      ;;
4638    *64-bit*)
4639      LD="${LD-ld} -melf64bmip"
4640      ;;
4641    esac
4642   else
4643    case `/usr/bin/file conftest.$ac_objext` in
4644    *32-bit*)
4645      LD="${LD-ld} -32"
4646      ;;
4647    *N32*)
4648      LD="${LD-ld} -n32"
4649      ;;
4650    *64-bit*)
4651      LD="${LD-ld} -64"
4652      ;;
4653    esac
4654   fi
4655  fi
4656  rm -rf conftest*
4657  ;;
4658
4659x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4660s390*-*linux*|sparc*-*linux*)
4661  # Find out which ABI we are using.
4662  echo 'int i;' > conftest.$ac_ext
4663  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664  (eval $ac_compile) 2>&5
4665  ac_status=$?
4666  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667  (exit $ac_status); }; then
4668    case `/usr/bin/file conftest.o` in
4669    *32-bit*)
4670      case $host in
4671        x86_64-*kfreebsd*-gnu)
4672          LD="${LD-ld} -m elf_i386_fbsd"
4673          ;;
4674        x86_64-*linux*)
4675          LD="${LD-ld} -m elf_i386"
4676          ;;
4677        ppc64-*linux*|powerpc64-*linux*)
4678          LD="${LD-ld} -m elf32ppclinux"
4679          ;;
4680        s390x-*linux*)
4681          LD="${LD-ld} -m elf_s390"
4682          ;;
4683        sparc64-*linux*)
4684          LD="${LD-ld} -m elf32_sparc"
4685          ;;
4686      esac
4687      ;;
4688    *64-bit*)
4689      libsuff=64
4690      case $host in
4691        x86_64-*kfreebsd*-gnu)
4692          LD="${LD-ld} -m elf_x86_64_fbsd"
4693          ;;
4694        x86_64-*linux*)
4695          LD="${LD-ld} -m elf_x86_64"
4696          ;;
4697        ppc*-*linux*|powerpc*-*linux*)
4698          LD="${LD-ld} -m elf64ppc"
4699          ;;
4700        s390*-*linux*)
4701          LD="${LD-ld} -m elf64_s390"
4702          ;;
4703        sparc*-*linux*)
4704          LD="${LD-ld} -m elf64_sparc"
4705          ;;
4706      esac
4707      ;;
4708    esac
4709  fi
4710  rm -rf conftest*
4711  ;;
4712
4713*-*-sco3.2v5*)
4714  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4715  SAVE_CFLAGS="$CFLAGS"
4716  CFLAGS="$CFLAGS -belf"
4717  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4718$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4719if test "${lt_cv_cc_needs_belf+set}" = set; then
4720  $as_echo_n "(cached) " >&6
4721else
4722  ac_ext=c
4723ac_cpp='$CPP $CPPFLAGS'
4724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4726ac_compiler_gnu=$ac_cv_c_compiler_gnu
4727
4728     cat >conftest.$ac_ext <<_ACEOF
4729/* confdefs.h.  */
4730_ACEOF
4731cat confdefs.h >>conftest.$ac_ext
4732cat >>conftest.$ac_ext <<_ACEOF
4733/* end confdefs.h.  */
4734
4735int
4736main ()
4737{
4738
4739  ;
4740  return 0;
4741}
4742_ACEOF
4743rm -f conftest.$ac_objext conftest$ac_exeext
4744if { (ac_try="$ac_link"
4745case "(($ac_try" in
4746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747  *) ac_try_echo=$ac_try;;
4748esac
4749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4750$as_echo "$ac_try_echo") >&5
4751  (eval "$ac_link") 2>conftest.er1
4752  ac_status=$?
4753  grep -v '^ *+' conftest.er1 >conftest.err
4754  rm -f conftest.er1
4755  cat conftest.err >&5
4756  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757  (exit $ac_status); } && {
4758	 test -z "$ac_c_werror_flag" ||
4759	 test ! -s conftest.err
4760       } && test -s conftest$ac_exeext && {
4761	 test "$cross_compiling" = yes ||
4762	 $as_test_x conftest$ac_exeext
4763       }; then
4764  lt_cv_cc_needs_belf=yes
4765else
4766  $as_echo "$as_me: failed program was:" >&5
4767sed 's/^/| /' conftest.$ac_ext >&5
4768
4769	lt_cv_cc_needs_belf=no
4770fi
4771
4772rm -rf conftest.dSYM
4773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4774      conftest$ac_exeext conftest.$ac_ext
4775     ac_ext=c
4776ac_cpp='$CPP $CPPFLAGS'
4777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4779ac_compiler_gnu=$ac_cv_c_compiler_gnu
4780
4781fi
4782{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4783$as_echo "$lt_cv_cc_needs_belf" >&6; }
4784  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4785    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4786    CFLAGS="$SAVE_CFLAGS"
4787  fi
4788  ;;
4789sparc*-*solaris*)
4790  # Find out which ABI we are using.
4791  echo 'int i;' > conftest.$ac_ext
4792  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793  (eval $ac_compile) 2>&5
4794  ac_status=$?
4795  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796  (exit $ac_status); }; then
4797    case `/usr/bin/file conftest.o` in
4798    *64-bit*)
4799      case $lt_cv_prog_gnu_ld in
4800      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4801      *)
4802        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4803	  LD="${LD-ld} -64"
4804	fi
4805	;;
4806      esac
4807      ;;
4808    esac
4809  fi
4810  rm -rf conftest*
4811  ;;
4812
4813
4814esac
4815
4816need_locks="$enable_libtool_lock"
4817
4818
4819ac_ext=c
4820ac_cpp='$CPP $CPPFLAGS'
4821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823ac_compiler_gnu=$ac_cv_c_compiler_gnu
4824{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4825$as_echo_n "checking how to run the C preprocessor... " >&6; }
4826# On Suns, sometimes $CPP names a directory.
4827if test -n "$CPP" && test -d "$CPP"; then
4828  CPP=
4829fi
4830if test -z "$CPP"; then
4831  if test "${ac_cv_prog_CPP+set}" = set; then
4832  $as_echo_n "(cached) " >&6
4833else
4834      # Double quotes because CPP needs to be expanded
4835    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4836    do
4837      ac_preproc_ok=false
4838for ac_c_preproc_warn_flag in '' yes
4839do
4840  # Use a header file that comes with gcc, so configuring glibc
4841  # with a fresh cross-compiler works.
4842  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4843  # <limits.h> exists even on freestanding compilers.
4844  # On the NeXT, cc -E runs the code through the compiler's parser,
4845  # not just through cpp. "Syntax error" is here to catch this case.
4846  cat >conftest.$ac_ext <<_ACEOF
4847/* confdefs.h.  */
4848_ACEOF
4849cat confdefs.h >>conftest.$ac_ext
4850cat >>conftest.$ac_ext <<_ACEOF
4851/* end confdefs.h.  */
4852#ifdef __STDC__
4853# include <limits.h>
4854#else
4855# include <assert.h>
4856#endif
4857		     Syntax error
4858_ACEOF
4859if { (ac_try="$ac_cpp conftest.$ac_ext"
4860case "(($ac_try" in
4861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862  *) ac_try_echo=$ac_try;;
4863esac
4864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4865$as_echo "$ac_try_echo") >&5
4866  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4867  ac_status=$?
4868  grep -v '^ *+' conftest.er1 >conftest.err
4869  rm -f conftest.er1
4870  cat conftest.err >&5
4871  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872  (exit $ac_status); } >/dev/null && {
4873	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4874	 test ! -s conftest.err
4875       }; then
4876  :
4877else
4878  $as_echo "$as_me: failed program was:" >&5
4879sed 's/^/| /' conftest.$ac_ext >&5
4880
4881  # Broken: fails on valid input.
4882continue
4883fi
4884
4885rm -f conftest.err conftest.$ac_ext
4886
4887  # OK, works on sane cases.  Now check whether nonexistent headers
4888  # can be detected and how.
4889  cat >conftest.$ac_ext <<_ACEOF
4890/* confdefs.h.  */
4891_ACEOF
4892cat confdefs.h >>conftest.$ac_ext
4893cat >>conftest.$ac_ext <<_ACEOF
4894/* end confdefs.h.  */
4895#include <ac_nonexistent.h>
4896_ACEOF
4897if { (ac_try="$ac_cpp conftest.$ac_ext"
4898case "(($ac_try" in
4899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900  *) ac_try_echo=$ac_try;;
4901esac
4902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4903$as_echo "$ac_try_echo") >&5
4904  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4905  ac_status=$?
4906  grep -v '^ *+' conftest.er1 >conftest.err
4907  rm -f conftest.er1
4908  cat conftest.err >&5
4909  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910  (exit $ac_status); } >/dev/null && {
4911	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4912	 test ! -s conftest.err
4913       }; then
4914  # Broken: success on invalid input.
4915continue
4916else
4917  $as_echo "$as_me: failed program was:" >&5
4918sed 's/^/| /' conftest.$ac_ext >&5
4919
4920  # Passes both tests.
4921ac_preproc_ok=:
4922break
4923fi
4924
4925rm -f conftest.err conftest.$ac_ext
4926
4927done
4928# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4929rm -f conftest.err conftest.$ac_ext
4930if $ac_preproc_ok; then
4931  break
4932fi
4933
4934    done
4935    ac_cv_prog_CPP=$CPP
4936
4937fi
4938  CPP=$ac_cv_prog_CPP
4939else
4940  ac_cv_prog_CPP=$CPP
4941fi
4942{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4943$as_echo "$CPP" >&6; }
4944ac_preproc_ok=false
4945for ac_c_preproc_warn_flag in '' yes
4946do
4947  # Use a header file that comes with gcc, so configuring glibc
4948  # with a fresh cross-compiler works.
4949  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4950  # <limits.h> exists even on freestanding compilers.
4951  # On the NeXT, cc -E runs the code through the compiler's parser,
4952  # not just through cpp. "Syntax error" is here to catch this case.
4953  cat >conftest.$ac_ext <<_ACEOF
4954/* confdefs.h.  */
4955_ACEOF
4956cat confdefs.h >>conftest.$ac_ext
4957cat >>conftest.$ac_ext <<_ACEOF
4958/* end confdefs.h.  */
4959#ifdef __STDC__
4960# include <limits.h>
4961#else
4962# include <assert.h>
4963#endif
4964		     Syntax error
4965_ACEOF
4966if { (ac_try="$ac_cpp conftest.$ac_ext"
4967case "(($ac_try" in
4968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969  *) ac_try_echo=$ac_try;;
4970esac
4971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4972$as_echo "$ac_try_echo") >&5
4973  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4974  ac_status=$?
4975  grep -v '^ *+' conftest.er1 >conftest.err
4976  rm -f conftest.er1
4977  cat conftest.err >&5
4978  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979  (exit $ac_status); } >/dev/null && {
4980	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4981	 test ! -s conftest.err
4982       }; then
4983  :
4984else
4985  $as_echo "$as_me: failed program was:" >&5
4986sed 's/^/| /' conftest.$ac_ext >&5
4987
4988  # Broken: fails on valid input.
4989continue
4990fi
4991
4992rm -f conftest.err conftest.$ac_ext
4993
4994  # OK, works on sane cases.  Now check whether nonexistent headers
4995  # can be detected and how.
4996  cat >conftest.$ac_ext <<_ACEOF
4997/* confdefs.h.  */
4998_ACEOF
4999cat confdefs.h >>conftest.$ac_ext
5000cat >>conftest.$ac_ext <<_ACEOF
5001/* end confdefs.h.  */
5002#include <ac_nonexistent.h>
5003_ACEOF
5004if { (ac_try="$ac_cpp conftest.$ac_ext"
5005case "(($ac_try" in
5006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007  *) ac_try_echo=$ac_try;;
5008esac
5009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5010$as_echo "$ac_try_echo") >&5
5011  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5012  ac_status=$?
5013  grep -v '^ *+' conftest.er1 >conftest.err
5014  rm -f conftest.er1
5015  cat conftest.err >&5
5016  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017  (exit $ac_status); } >/dev/null && {
5018	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5019	 test ! -s conftest.err
5020       }; then
5021  # Broken: success on invalid input.
5022continue
5023else
5024  $as_echo "$as_me: failed program was:" >&5
5025sed 's/^/| /' conftest.$ac_ext >&5
5026
5027  # Passes both tests.
5028ac_preproc_ok=:
5029break
5030fi
5031
5032rm -f conftest.err conftest.$ac_ext
5033
5034done
5035# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5036rm -f conftest.err conftest.$ac_ext
5037if $ac_preproc_ok; then
5038  :
5039else
5040  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5042{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5043See \`config.log' for more details." >&5
5044$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5045See \`config.log' for more details." >&2;}
5046   { (exit 1); exit 1; }; }; }
5047fi
5048
5049ac_ext=c
5050ac_cpp='$CPP $CPPFLAGS'
5051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053ac_compiler_gnu=$ac_cv_c_compiler_gnu
5054
5055
5056{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5057$as_echo_n "checking for ANSI C header files... " >&6; }
5058if test "${ac_cv_header_stdc+set}" = set; then
5059  $as_echo_n "(cached) " >&6
5060else
5061  cat >conftest.$ac_ext <<_ACEOF
5062/* confdefs.h.  */
5063_ACEOF
5064cat confdefs.h >>conftest.$ac_ext
5065cat >>conftest.$ac_ext <<_ACEOF
5066/* end confdefs.h.  */
5067#include <stdlib.h>
5068#include <stdarg.h>
5069#include <string.h>
5070#include <float.h>
5071
5072int
5073main ()
5074{
5075
5076  ;
5077  return 0;
5078}
5079_ACEOF
5080rm -f conftest.$ac_objext
5081if { (ac_try="$ac_compile"
5082case "(($ac_try" in
5083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084  *) ac_try_echo=$ac_try;;
5085esac
5086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5087$as_echo "$ac_try_echo") >&5
5088  (eval "$ac_compile") 2>conftest.er1
5089  ac_status=$?
5090  grep -v '^ *+' conftest.er1 >conftest.err
5091  rm -f conftest.er1
5092  cat conftest.err >&5
5093  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094  (exit $ac_status); } && {
5095	 test -z "$ac_c_werror_flag" ||
5096	 test ! -s conftest.err
5097       } && test -s conftest.$ac_objext; then
5098  ac_cv_header_stdc=yes
5099else
5100  $as_echo "$as_me: failed program was:" >&5
5101sed 's/^/| /' conftest.$ac_ext >&5
5102
5103	ac_cv_header_stdc=no
5104fi
5105
5106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107
5108if test $ac_cv_header_stdc = yes; then
5109  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5110  cat >conftest.$ac_ext <<_ACEOF
5111/* confdefs.h.  */
5112_ACEOF
5113cat confdefs.h >>conftest.$ac_ext
5114cat >>conftest.$ac_ext <<_ACEOF
5115/* end confdefs.h.  */
5116#include <string.h>
5117
5118_ACEOF
5119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5120  $EGREP "memchr" >/dev/null 2>&1; then
5121  :
5122else
5123  ac_cv_header_stdc=no
5124fi
5125rm -f conftest*
5126
5127fi
5128
5129if test $ac_cv_header_stdc = yes; then
5130  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5131  cat >conftest.$ac_ext <<_ACEOF
5132/* confdefs.h.  */
5133_ACEOF
5134cat confdefs.h >>conftest.$ac_ext
5135cat >>conftest.$ac_ext <<_ACEOF
5136/* end confdefs.h.  */
5137#include <stdlib.h>
5138
5139_ACEOF
5140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5141  $EGREP "free" >/dev/null 2>&1; then
5142  :
5143else
5144  ac_cv_header_stdc=no
5145fi
5146rm -f conftest*
5147
5148fi
5149
5150if test $ac_cv_header_stdc = yes; then
5151  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5152  if test "$cross_compiling" = yes; then
5153  :
5154else
5155  cat >conftest.$ac_ext <<_ACEOF
5156/* confdefs.h.  */
5157_ACEOF
5158cat confdefs.h >>conftest.$ac_ext
5159cat >>conftest.$ac_ext <<_ACEOF
5160/* end confdefs.h.  */
5161#include <ctype.h>
5162#include <stdlib.h>
5163#if ((' ' & 0x0FF) == 0x020)
5164# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5165# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5166#else
5167# define ISLOWER(c) \
5168		   (('a' <= (c) && (c) <= 'i') \
5169		     || ('j' <= (c) && (c) <= 'r') \
5170		     || ('s' <= (c) && (c) <= 'z'))
5171# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5172#endif
5173
5174#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5175int
5176main ()
5177{
5178  int i;
5179  for (i = 0; i < 256; i++)
5180    if (XOR (islower (i), ISLOWER (i))
5181	|| toupper (i) != TOUPPER (i))
5182      return 2;
5183  return 0;
5184}
5185_ACEOF
5186rm -f conftest$ac_exeext
5187if { (ac_try="$ac_link"
5188case "(($ac_try" in
5189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5190  *) ac_try_echo=$ac_try;;
5191esac
5192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5193$as_echo "$ac_try_echo") >&5
5194  (eval "$ac_link") 2>&5
5195  ac_status=$?
5196  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5198  { (case "(($ac_try" in
5199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200  *) ac_try_echo=$ac_try;;
5201esac
5202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5203$as_echo "$ac_try_echo") >&5
5204  (eval "$ac_try") 2>&5
5205  ac_status=$?
5206  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207  (exit $ac_status); }; }; then
5208  :
5209else
5210  $as_echo "$as_me: program exited with status $ac_status" >&5
5211$as_echo "$as_me: failed program was:" >&5
5212sed 's/^/| /' conftest.$ac_ext >&5
5213
5214( exit $ac_status )
5215ac_cv_header_stdc=no
5216fi
5217rm -rf conftest.dSYM
5218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5219fi
5220
5221
5222fi
5223fi
5224{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5225$as_echo "$ac_cv_header_stdc" >&6; }
5226if test $ac_cv_header_stdc = yes; then
5227
5228cat >>confdefs.h <<\_ACEOF
5229#define STDC_HEADERS 1
5230_ACEOF
5231
5232fi
5233
5234# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5245		  inttypes.h stdint.h unistd.h
5246do
5247as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5248{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5249$as_echo_n "checking for $ac_header... " >&6; }
5250if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5251  $as_echo_n "(cached) " >&6
5252else
5253  cat >conftest.$ac_ext <<_ACEOF
5254/* confdefs.h.  */
5255_ACEOF
5256cat confdefs.h >>conftest.$ac_ext
5257cat >>conftest.$ac_ext <<_ACEOF
5258/* end confdefs.h.  */
5259$ac_includes_default
5260
5261#include <$ac_header>
5262_ACEOF
5263rm -f conftest.$ac_objext
5264if { (ac_try="$ac_compile"
5265case "(($ac_try" in
5266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267  *) ac_try_echo=$ac_try;;
5268esac
5269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5270$as_echo "$ac_try_echo") >&5
5271  (eval "$ac_compile") 2>conftest.er1
5272  ac_status=$?
5273  grep -v '^ *+' conftest.er1 >conftest.err
5274  rm -f conftest.er1
5275  cat conftest.err >&5
5276  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277  (exit $ac_status); } && {
5278	 test -z "$ac_c_werror_flag" ||
5279	 test ! -s conftest.err
5280       } && test -s conftest.$ac_objext; then
5281  eval "$as_ac_Header=yes"
5282else
5283  $as_echo "$as_me: failed program was:" >&5
5284sed 's/^/| /' conftest.$ac_ext >&5
5285
5286	eval "$as_ac_Header=no"
5287fi
5288
5289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290fi
5291ac_res=`eval 'as_val=${'$as_ac_Header'}
5292		 $as_echo "$as_val"'`
5293	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5294$as_echo "$ac_res" >&6; }
5295as_val=`eval 'as_val=${'$as_ac_Header'}
5296		 $as_echo "$as_val"'`
5297   if test "x$as_val" = x""yes; then
5298  cat >>confdefs.h <<_ACEOF
5299#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5300_ACEOF
5301
5302fi
5303
5304done
5305
5306
5307
5308for ac_header in dlfcn.h
5309do
5310as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5312  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5313$as_echo_n "checking for $ac_header... " >&6; }
5314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5315  $as_echo_n "(cached) " >&6
5316fi
5317ac_res=`eval 'as_val=${'$as_ac_Header'}
5318		 $as_echo "$as_val"'`
5319	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5320$as_echo "$ac_res" >&6; }
5321else
5322  # Is the header compilable?
5323{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5324$as_echo_n "checking $ac_header usability... " >&6; }
5325cat >conftest.$ac_ext <<_ACEOF
5326/* confdefs.h.  */
5327_ACEOF
5328cat confdefs.h >>conftest.$ac_ext
5329cat >>conftest.$ac_ext <<_ACEOF
5330/* end confdefs.h.  */
5331$ac_includes_default
5332#include <$ac_header>
5333_ACEOF
5334rm -f conftest.$ac_objext
5335if { (ac_try="$ac_compile"
5336case "(($ac_try" in
5337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338  *) ac_try_echo=$ac_try;;
5339esac
5340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5341$as_echo "$ac_try_echo") >&5
5342  (eval "$ac_compile") 2>conftest.er1
5343  ac_status=$?
5344  grep -v '^ *+' conftest.er1 >conftest.err
5345  rm -f conftest.er1
5346  cat conftest.err >&5
5347  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348  (exit $ac_status); } && {
5349	 test -z "$ac_c_werror_flag" ||
5350	 test ! -s conftest.err
5351       } && test -s conftest.$ac_objext; then
5352  ac_header_compiler=yes
5353else
5354  $as_echo "$as_me: failed program was:" >&5
5355sed 's/^/| /' conftest.$ac_ext >&5
5356
5357	ac_header_compiler=no
5358fi
5359
5360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5362$as_echo "$ac_header_compiler" >&6; }
5363
5364# Is the header present?
5365{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5366$as_echo_n "checking $ac_header presence... " >&6; }
5367cat >conftest.$ac_ext <<_ACEOF
5368/* confdefs.h.  */
5369_ACEOF
5370cat confdefs.h >>conftest.$ac_ext
5371cat >>conftest.$ac_ext <<_ACEOF
5372/* end confdefs.h.  */
5373#include <$ac_header>
5374_ACEOF
5375if { (ac_try="$ac_cpp conftest.$ac_ext"
5376case "(($ac_try" in
5377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378  *) ac_try_echo=$ac_try;;
5379esac
5380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5381$as_echo "$ac_try_echo") >&5
5382  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5383  ac_status=$?
5384  grep -v '^ *+' conftest.er1 >conftest.err
5385  rm -f conftest.er1
5386  cat conftest.err >&5
5387  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388  (exit $ac_status); } >/dev/null && {
5389	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5390	 test ! -s conftest.err
5391       }; then
5392  ac_header_preproc=yes
5393else
5394  $as_echo "$as_me: failed program was:" >&5
5395sed 's/^/| /' conftest.$ac_ext >&5
5396
5397  ac_header_preproc=no
5398fi
5399
5400rm -f conftest.err conftest.$ac_ext
5401{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5402$as_echo "$ac_header_preproc" >&6; }
5403
5404# So?  What about this header?
5405case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5406  yes:no: )
5407    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5408$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5409    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5410$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5411    ac_header_preproc=yes
5412    ;;
5413  no:yes:* )
5414    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5415$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5416    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5417$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5418    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5419$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5420    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5421$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5422    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5423$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5424    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5425$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5426    ( cat <<\_ASBOX
5427## ---------------------------------------------------------------------- ##
5428## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5429## ---------------------------------------------------------------------- ##
5430_ASBOX
5431     ) | sed "s/^/$as_me: WARNING:     /" >&2
5432    ;;
5433esac
5434{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5435$as_echo_n "checking for $ac_header... " >&6; }
5436if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5437  $as_echo_n "(cached) " >&6
5438else
5439  eval "$as_ac_Header=\$ac_header_preproc"
5440fi
5441ac_res=`eval 'as_val=${'$as_ac_Header'}
5442		 $as_echo "$as_val"'`
5443	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5444$as_echo "$ac_res" >&6; }
5445
5446fi
5447as_val=`eval 'as_val=${'$as_ac_Header'}
5448		 $as_echo "$as_val"'`
5449   if test "x$as_val" = x""yes; then
5450  cat >>confdefs.h <<_ACEOF
5451#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5452_ACEOF
5453
5454fi
5455
5456done
5457
5458ac_ext=cpp
5459ac_cpp='$CXXCPP $CPPFLAGS'
5460ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5461ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5463if test -z "$CXX"; then
5464  if test -n "$CCC"; then
5465    CXX=$CCC
5466  else
5467    if test -n "$ac_tool_prefix"; then
5468  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5469  do
5470    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5471set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5472{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5473$as_echo_n "checking for $ac_word... " >&6; }
5474if test "${ac_cv_prog_CXX+set}" = set; then
5475  $as_echo_n "(cached) " >&6
5476else
5477  if test -n "$CXX"; then
5478  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5479else
5480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481for as_dir in $PATH
5482do
5483  IFS=$as_save_IFS
5484  test -z "$as_dir" && as_dir=.
5485  for ac_exec_ext in '' $ac_executable_extensions; do
5486  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5487    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5488    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5489    break 2
5490  fi
5491done
5492done
5493IFS=$as_save_IFS
5494
5495fi
5496fi
5497CXX=$ac_cv_prog_CXX
5498if test -n "$CXX"; then
5499  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5500$as_echo "$CXX" >&6; }
5501else
5502  { $as_echo "$as_me:$LINENO: result: no" >&5
5503$as_echo "no" >&6; }
5504fi
5505
5506
5507    test -n "$CXX" && break
5508  done
5509fi
5510if test -z "$CXX"; then
5511  ac_ct_CXX=$CXX
5512  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5513do
5514  # Extract the first word of "$ac_prog", so it can be a program name with args.
5515set dummy $ac_prog; ac_word=$2
5516{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5517$as_echo_n "checking for $ac_word... " >&6; }
5518if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5519  $as_echo_n "(cached) " >&6
5520else
5521  if test -n "$ac_ct_CXX"; then
5522  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5523else
5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH
5526do
5527  IFS=$as_save_IFS
5528  test -z "$as_dir" && as_dir=.
5529  for ac_exec_ext in '' $ac_executable_extensions; do
5530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531    ac_cv_prog_ac_ct_CXX="$ac_prog"
5532    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5533    break 2
5534  fi
5535done
5536done
5537IFS=$as_save_IFS
5538
5539fi
5540fi
5541ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5542if test -n "$ac_ct_CXX"; then
5543  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5544$as_echo "$ac_ct_CXX" >&6; }
5545else
5546  { $as_echo "$as_me:$LINENO: result: no" >&5
5547$as_echo "no" >&6; }
5548fi
5549
5550
5551  test -n "$ac_ct_CXX" && break
5552done
5553
5554  if test "x$ac_ct_CXX" = x; then
5555    CXX="g++"
5556  else
5557    case $cross_compiling:$ac_tool_warned in
5558yes:)
5559{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5561ac_tool_warned=yes ;;
5562esac
5563    CXX=$ac_ct_CXX
5564  fi
5565fi
5566
5567  fi
5568fi
5569# Provide some information about the compiler.
5570$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5571set X $ac_compile
5572ac_compiler=$2
5573{ (ac_try="$ac_compiler --version >&5"
5574case "(($ac_try" in
5575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576  *) ac_try_echo=$ac_try;;
5577esac
5578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5579$as_echo "$ac_try_echo") >&5
5580  (eval "$ac_compiler --version >&5") 2>&5
5581  ac_status=$?
5582  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583  (exit $ac_status); }
5584{ (ac_try="$ac_compiler -v >&5"
5585case "(($ac_try" in
5586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587  *) ac_try_echo=$ac_try;;
5588esac
5589eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5590$as_echo "$ac_try_echo") >&5
5591  (eval "$ac_compiler -v >&5") 2>&5
5592  ac_status=$?
5593  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594  (exit $ac_status); }
5595{ (ac_try="$ac_compiler -V >&5"
5596case "(($ac_try" in
5597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598  *) ac_try_echo=$ac_try;;
5599esac
5600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5601$as_echo "$ac_try_echo") >&5
5602  (eval "$ac_compiler -V >&5") 2>&5
5603  ac_status=$?
5604  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605  (exit $ac_status); }
5606
5607{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5608$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5609if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5610  $as_echo_n "(cached) " >&6
5611else
5612  cat >conftest.$ac_ext <<_ACEOF
5613/* confdefs.h.  */
5614_ACEOF
5615cat confdefs.h >>conftest.$ac_ext
5616cat >>conftest.$ac_ext <<_ACEOF
5617/* end confdefs.h.  */
5618
5619int
5620main ()
5621{
5622#ifndef __GNUC__
5623       choke me
5624#endif
5625
5626  ;
5627  return 0;
5628}
5629_ACEOF
5630rm -f conftest.$ac_objext
5631if { (ac_try="$ac_compile"
5632case "(($ac_try" in
5633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634  *) ac_try_echo=$ac_try;;
5635esac
5636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5637$as_echo "$ac_try_echo") >&5
5638  (eval "$ac_compile") 2>conftest.er1
5639  ac_status=$?
5640  grep -v '^ *+' conftest.er1 >conftest.err
5641  rm -f conftest.er1
5642  cat conftest.err >&5
5643  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644  (exit $ac_status); } && {
5645	 test -z "$ac_cxx_werror_flag" ||
5646	 test ! -s conftest.err
5647       } && test -s conftest.$ac_objext; then
5648  ac_compiler_gnu=yes
5649else
5650  $as_echo "$as_me: failed program was:" >&5
5651sed 's/^/| /' conftest.$ac_ext >&5
5652
5653	ac_compiler_gnu=no
5654fi
5655
5656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5658
5659fi
5660{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5661$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5662if test $ac_compiler_gnu = yes; then
5663  GXX=yes
5664else
5665  GXX=
5666fi
5667ac_test_CXXFLAGS=${CXXFLAGS+set}
5668ac_save_CXXFLAGS=$CXXFLAGS
5669{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5670$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5671if test "${ac_cv_prog_cxx_g+set}" = set; then
5672  $as_echo_n "(cached) " >&6
5673else
5674  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5675   ac_cxx_werror_flag=yes
5676   ac_cv_prog_cxx_g=no
5677   CXXFLAGS="-g"
5678   cat >conftest.$ac_ext <<_ACEOF
5679/* confdefs.h.  */
5680_ACEOF
5681cat confdefs.h >>conftest.$ac_ext
5682cat >>conftest.$ac_ext <<_ACEOF
5683/* end confdefs.h.  */
5684
5685int
5686main ()
5687{
5688
5689  ;
5690  return 0;
5691}
5692_ACEOF
5693rm -f conftest.$ac_objext
5694if { (ac_try="$ac_compile"
5695case "(($ac_try" in
5696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697  *) ac_try_echo=$ac_try;;
5698esac
5699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5700$as_echo "$ac_try_echo") >&5
5701  (eval "$ac_compile") 2>conftest.er1
5702  ac_status=$?
5703  grep -v '^ *+' conftest.er1 >conftest.err
5704  rm -f conftest.er1
5705  cat conftest.err >&5
5706  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707  (exit $ac_status); } && {
5708	 test -z "$ac_cxx_werror_flag" ||
5709	 test ! -s conftest.err
5710       } && test -s conftest.$ac_objext; then
5711  ac_cv_prog_cxx_g=yes
5712else
5713  $as_echo "$as_me: failed program was:" >&5
5714sed 's/^/| /' conftest.$ac_ext >&5
5715
5716	CXXFLAGS=""
5717      cat >conftest.$ac_ext <<_ACEOF
5718/* confdefs.h.  */
5719_ACEOF
5720cat confdefs.h >>conftest.$ac_ext
5721cat >>conftest.$ac_ext <<_ACEOF
5722/* end confdefs.h.  */
5723
5724int
5725main ()
5726{
5727
5728  ;
5729  return 0;
5730}
5731_ACEOF
5732rm -f conftest.$ac_objext
5733if { (ac_try="$ac_compile"
5734case "(($ac_try" in
5735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736  *) ac_try_echo=$ac_try;;
5737esac
5738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5739$as_echo "$ac_try_echo") >&5
5740  (eval "$ac_compile") 2>conftest.er1
5741  ac_status=$?
5742  grep -v '^ *+' conftest.er1 >conftest.err
5743  rm -f conftest.er1
5744  cat conftest.err >&5
5745  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746  (exit $ac_status); } && {
5747	 test -z "$ac_cxx_werror_flag" ||
5748	 test ! -s conftest.err
5749       } && test -s conftest.$ac_objext; then
5750  :
5751else
5752  $as_echo "$as_me: failed program was:" >&5
5753sed 's/^/| /' conftest.$ac_ext >&5
5754
5755	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5756	 CXXFLAGS="-g"
5757	 cat >conftest.$ac_ext <<_ACEOF
5758/* confdefs.h.  */
5759_ACEOF
5760cat confdefs.h >>conftest.$ac_ext
5761cat >>conftest.$ac_ext <<_ACEOF
5762/* end confdefs.h.  */
5763
5764int
5765main ()
5766{
5767
5768  ;
5769  return 0;
5770}
5771_ACEOF
5772rm -f conftest.$ac_objext
5773if { (ac_try="$ac_compile"
5774case "(($ac_try" in
5775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776  *) ac_try_echo=$ac_try;;
5777esac
5778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5779$as_echo "$ac_try_echo") >&5
5780  (eval "$ac_compile") 2>conftest.er1
5781  ac_status=$?
5782  grep -v '^ *+' conftest.er1 >conftest.err
5783  rm -f conftest.er1
5784  cat conftest.err >&5
5785  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786  (exit $ac_status); } && {
5787	 test -z "$ac_cxx_werror_flag" ||
5788	 test ! -s conftest.err
5789       } && test -s conftest.$ac_objext; then
5790  ac_cv_prog_cxx_g=yes
5791else
5792  $as_echo "$as_me: failed program was:" >&5
5793sed 's/^/| /' conftest.$ac_ext >&5
5794
5795
5796fi
5797
5798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799fi
5800
5801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5802fi
5803
5804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5806fi
5807{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5808$as_echo "$ac_cv_prog_cxx_g" >&6; }
5809if test "$ac_test_CXXFLAGS" = set; then
5810  CXXFLAGS=$ac_save_CXXFLAGS
5811elif test $ac_cv_prog_cxx_g = yes; then
5812  if test "$GXX" = yes; then
5813    CXXFLAGS="-g -O2"
5814  else
5815    CXXFLAGS="-g"
5816  fi
5817else
5818  if test "$GXX" = yes; then
5819    CXXFLAGS="-O2"
5820  else
5821    CXXFLAGS=
5822  fi
5823fi
5824ac_ext=cpp
5825ac_cpp='$CXXCPP $CPPFLAGS'
5826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5829
5830depcc="$CXX"  am_compiler_list=
5831
5832{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5833$as_echo_n "checking dependency style of $depcc... " >&6; }
5834if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5835  $as_echo_n "(cached) " >&6
5836else
5837  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5838  # We make a subdir and do the tests there.  Otherwise we can end up
5839  # making bogus files that we don't know about and never remove.  For
5840  # instance it was reported that on HP-UX the gcc test will end up
5841  # making a dummy file named `D' -- because `-MD' means `put the output
5842  # in D'.
5843  mkdir conftest.dir
5844  # Copy depcomp to subdir because otherwise we won't find it if we're
5845  # using a relative directory.
5846  cp "$am_depcomp" conftest.dir
5847  cd conftest.dir
5848  # We will build objects and dependencies in a subdirectory because
5849  # it helps to detect inapplicable dependency modes.  For instance
5850  # both Tru64's cc and ICC support -MD to output dependencies as a
5851  # side effect of compilation, but ICC will put the dependencies in
5852  # the current directory while Tru64 will put them in the object
5853  # directory.
5854  mkdir sub
5855
5856  am_cv_CXX_dependencies_compiler_type=none
5857  if test "$am_compiler_list" = ""; then
5858     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5859  fi
5860  am__universal=false
5861  case " $depcc " in #(
5862     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5863     esac
5864
5865  for depmode in $am_compiler_list; do
5866    # Setup a source with many dependencies, because some compilers
5867    # like to wrap large dependency lists on column 80 (with \), and
5868    # we should not choose a depcomp mode which is confused by this.
5869    #
5870    # We need to recreate these files for each test, as the compiler may
5871    # overwrite some of them when testing with obscure command lines.
5872    # This happens at least with the AIX C compiler.
5873    : > sub/conftest.c
5874    for i in 1 2 3 4 5 6; do
5875      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5876      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5877      # Solaris 8's {/usr,}/bin/sh.
5878      touch sub/conftst$i.h
5879    done
5880    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5881
5882    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5883    # mode.  It turns out that the SunPro C++ compiler does not properly
5884    # handle `-M -o', and we need to detect this.  Also, some Intel
5885    # versions had trouble with output in subdirs
5886    am__obj=sub/conftest.${OBJEXT-o}
5887    am__minus_obj="-o $am__obj"
5888    case $depmode in
5889    gcc)
5890      # This depmode causes a compiler race in universal mode.
5891      test "$am__universal" = false || continue
5892      ;;
5893    nosideeffect)
5894      # after this tag, mechanisms are not by side-effect, so they'll
5895      # only be used when explicitly requested
5896      if test "x$enable_dependency_tracking" = xyes; then
5897	continue
5898      else
5899	break
5900      fi
5901      ;;
5902    msvisualcpp | msvcmsys)
5903      # This compiler won't grok `-c -o', but also, the minuso test has
5904      # not run yet.  These depmodes are late enough in the game, and
5905      # so weak that their functioning should not be impacted.
5906      am__obj=conftest.${OBJEXT-o}
5907      am__minus_obj=
5908      ;;
5909    none) break ;;
5910    esac
5911    if depmode=$depmode \
5912       source=sub/conftest.c object=$am__obj \
5913       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5914       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5915         >/dev/null 2>conftest.err &&
5916       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5917       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5918       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5919       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5920      # icc doesn't choke on unknown options, it will just issue warnings
5921      # or remarks (even with -Werror).  So we grep stderr for any message
5922      # that says an option was ignored or not supported.
5923      # When given -MP, icc 7.0 and 7.1 complain thusly:
5924      #   icc: Command line warning: ignoring option '-M'; no argument required
5925      # The diagnosis changed in icc 8.0:
5926      #   icc: Command line remark: option '-MP' not supported
5927      if (grep 'ignoring option' conftest.err ||
5928          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5929        am_cv_CXX_dependencies_compiler_type=$depmode
5930        break
5931      fi
5932    fi
5933  done
5934
5935  cd ..
5936  rm -rf conftest.dir
5937else
5938  am_cv_CXX_dependencies_compiler_type=none
5939fi
5940
5941fi
5942{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5943$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5944CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5945
5946 if
5947  test "x$enable_dependency_tracking" != xno \
5948  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5949  am__fastdepCXX_TRUE=
5950  am__fastdepCXX_FALSE='#'
5951else
5952  am__fastdepCXX_TRUE='#'
5953  am__fastdepCXX_FALSE=
5954fi
5955
5956
5957
5958
5959if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5960    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5961    (test "X$CXX" != "Xg++"))) ; then
5962  ac_ext=cpp
5963ac_cpp='$CXXCPP $CPPFLAGS'
5964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5967{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5968$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5969if test -z "$CXXCPP"; then
5970  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5971  $as_echo_n "(cached) " >&6
5972else
5973      # Double quotes because CXXCPP needs to be expanded
5974    for CXXCPP in "$CXX -E" "/lib/cpp"
5975    do
5976      ac_preproc_ok=false
5977for ac_cxx_preproc_warn_flag in '' yes
5978do
5979  # Use a header file that comes with gcc, so configuring glibc
5980  # with a fresh cross-compiler works.
5981  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5982  # <limits.h> exists even on freestanding compilers.
5983  # On the NeXT, cc -E runs the code through the compiler's parser,
5984  # not just through cpp. "Syntax error" is here to catch this case.
5985  cat >conftest.$ac_ext <<_ACEOF
5986/* confdefs.h.  */
5987_ACEOF
5988cat confdefs.h >>conftest.$ac_ext
5989cat >>conftest.$ac_ext <<_ACEOF
5990/* end confdefs.h.  */
5991#ifdef __STDC__
5992# include <limits.h>
5993#else
5994# include <assert.h>
5995#endif
5996		     Syntax error
5997_ACEOF
5998if { (ac_try="$ac_cpp conftest.$ac_ext"
5999case "(($ac_try" in
6000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001  *) ac_try_echo=$ac_try;;
6002esac
6003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6004$as_echo "$ac_try_echo") >&5
6005  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6006  ac_status=$?
6007  grep -v '^ *+' conftest.er1 >conftest.err
6008  rm -f conftest.er1
6009  cat conftest.err >&5
6010  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011  (exit $ac_status); } >/dev/null && {
6012	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6013	 test ! -s conftest.err
6014       }; then
6015  :
6016else
6017  $as_echo "$as_me: failed program was:" >&5
6018sed 's/^/| /' conftest.$ac_ext >&5
6019
6020  # Broken: fails on valid input.
6021continue
6022fi
6023
6024rm -f conftest.err conftest.$ac_ext
6025
6026  # OK, works on sane cases.  Now check whether nonexistent headers
6027  # can be detected and how.
6028  cat >conftest.$ac_ext <<_ACEOF
6029/* confdefs.h.  */
6030_ACEOF
6031cat confdefs.h >>conftest.$ac_ext
6032cat >>conftest.$ac_ext <<_ACEOF
6033/* end confdefs.h.  */
6034#include <ac_nonexistent.h>
6035_ACEOF
6036if { (ac_try="$ac_cpp conftest.$ac_ext"
6037case "(($ac_try" in
6038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039  *) ac_try_echo=$ac_try;;
6040esac
6041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6042$as_echo "$ac_try_echo") >&5
6043  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6044  ac_status=$?
6045  grep -v '^ *+' conftest.er1 >conftest.err
6046  rm -f conftest.er1
6047  cat conftest.err >&5
6048  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049  (exit $ac_status); } >/dev/null && {
6050	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6051	 test ! -s conftest.err
6052       }; then
6053  # Broken: success on invalid input.
6054continue
6055else
6056  $as_echo "$as_me: failed program was:" >&5
6057sed 's/^/| /' conftest.$ac_ext >&5
6058
6059  # Passes both tests.
6060ac_preproc_ok=:
6061break
6062fi
6063
6064rm -f conftest.err conftest.$ac_ext
6065
6066done
6067# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6068rm -f conftest.err conftest.$ac_ext
6069if $ac_preproc_ok; then
6070  break
6071fi
6072
6073    done
6074    ac_cv_prog_CXXCPP=$CXXCPP
6075
6076fi
6077  CXXCPP=$ac_cv_prog_CXXCPP
6078else
6079  ac_cv_prog_CXXCPP=$CXXCPP
6080fi
6081{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6082$as_echo "$CXXCPP" >&6; }
6083ac_preproc_ok=false
6084for ac_cxx_preproc_warn_flag in '' yes
6085do
6086  # Use a header file that comes with gcc, so configuring glibc
6087  # with a fresh cross-compiler works.
6088  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6089  # <limits.h> exists even on freestanding compilers.
6090  # On the NeXT, cc -E runs the code through the compiler's parser,
6091  # not just through cpp. "Syntax error" is here to catch this case.
6092  cat >conftest.$ac_ext <<_ACEOF
6093/* confdefs.h.  */
6094_ACEOF
6095cat confdefs.h >>conftest.$ac_ext
6096cat >>conftest.$ac_ext <<_ACEOF
6097/* end confdefs.h.  */
6098#ifdef __STDC__
6099# include <limits.h>
6100#else
6101# include <assert.h>
6102#endif
6103		     Syntax error
6104_ACEOF
6105if { (ac_try="$ac_cpp conftest.$ac_ext"
6106case "(($ac_try" in
6107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108  *) ac_try_echo=$ac_try;;
6109esac
6110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6111$as_echo "$ac_try_echo") >&5
6112  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6113  ac_status=$?
6114  grep -v '^ *+' conftest.er1 >conftest.err
6115  rm -f conftest.er1
6116  cat conftest.err >&5
6117  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118  (exit $ac_status); } >/dev/null && {
6119	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6120	 test ! -s conftest.err
6121       }; then
6122  :
6123else
6124  $as_echo "$as_me: failed program was:" >&5
6125sed 's/^/| /' conftest.$ac_ext >&5
6126
6127  # Broken: fails on valid input.
6128continue
6129fi
6130
6131rm -f conftest.err conftest.$ac_ext
6132
6133  # OK, works on sane cases.  Now check whether nonexistent headers
6134  # can be detected and how.
6135  cat >conftest.$ac_ext <<_ACEOF
6136/* confdefs.h.  */
6137_ACEOF
6138cat confdefs.h >>conftest.$ac_ext
6139cat >>conftest.$ac_ext <<_ACEOF
6140/* end confdefs.h.  */
6141#include <ac_nonexistent.h>
6142_ACEOF
6143if { (ac_try="$ac_cpp conftest.$ac_ext"
6144case "(($ac_try" in
6145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146  *) ac_try_echo=$ac_try;;
6147esac
6148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6149$as_echo "$ac_try_echo") >&5
6150  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6151  ac_status=$?
6152  grep -v '^ *+' conftest.er1 >conftest.err
6153  rm -f conftest.er1
6154  cat conftest.err >&5
6155  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156  (exit $ac_status); } >/dev/null && {
6157	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6158	 test ! -s conftest.err
6159       }; then
6160  # Broken: success on invalid input.
6161continue
6162else
6163  $as_echo "$as_me: failed program was:" >&5
6164sed 's/^/| /' conftest.$ac_ext >&5
6165
6166  # Passes both tests.
6167ac_preproc_ok=:
6168break
6169fi
6170
6171rm -f conftest.err conftest.$ac_ext
6172
6173done
6174# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6175rm -f conftest.err conftest.$ac_ext
6176if $ac_preproc_ok; then
6177  :
6178else
6179  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6181{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6182See \`config.log' for more details." >&5
6183$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6184See \`config.log' for more details." >&2;}
6185   { (exit 1); exit 1; }; }; }
6186fi
6187
6188ac_ext=cpp
6189ac_cpp='$CXXCPP $CPPFLAGS'
6190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6193
6194fi
6195
6196
6197ac_ext=f
6198ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6199ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6200ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6201if test -n "$ac_tool_prefix"; then
6202  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
6203  do
6204    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6205set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6206{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6207$as_echo_n "checking for $ac_word... " >&6; }
6208if test "${ac_cv_prog_F77+set}" = set; then
6209  $as_echo_n "(cached) " >&6
6210else
6211  if test -n "$F77"; then
6212  ac_cv_prog_F77="$F77" # Let the user override the test.
6213else
6214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215for as_dir in $PATH
6216do
6217  IFS=$as_save_IFS
6218  test -z "$as_dir" && as_dir=.
6219  for ac_exec_ext in '' $ac_executable_extensions; do
6220  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6222    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6223    break 2
6224  fi
6225done
6226done
6227IFS=$as_save_IFS
6228
6229fi
6230fi
6231F77=$ac_cv_prog_F77
6232if test -n "$F77"; then
6233  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6234$as_echo "$F77" >&6; }
6235else
6236  { $as_echo "$as_me:$LINENO: result: no" >&5
6237$as_echo "no" >&6; }
6238fi
6239
6240
6241    test -n "$F77" && break
6242  done
6243fi
6244if test -z "$F77"; then
6245  ac_ct_F77=$F77
6246  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
6247do
6248  # Extract the first word of "$ac_prog", so it can be a program name with args.
6249set dummy $ac_prog; ac_word=$2
6250{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6251$as_echo_n "checking for $ac_word... " >&6; }
6252if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6253  $as_echo_n "(cached) " >&6
6254else
6255  if test -n "$ac_ct_F77"; then
6256  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6257else
6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259for as_dir in $PATH
6260do
6261  IFS=$as_save_IFS
6262  test -z "$as_dir" && as_dir=.
6263  for ac_exec_ext in '' $ac_executable_extensions; do
6264  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265    ac_cv_prog_ac_ct_F77="$ac_prog"
6266    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267    break 2
6268  fi
6269done
6270done
6271IFS=$as_save_IFS
6272
6273fi
6274fi
6275ac_ct_F77=$ac_cv_prog_ac_ct_F77
6276if test -n "$ac_ct_F77"; then
6277  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6278$as_echo "$ac_ct_F77" >&6; }
6279else
6280  { $as_echo "$as_me:$LINENO: result: no" >&5
6281$as_echo "no" >&6; }
6282fi
6283
6284
6285  test -n "$ac_ct_F77" && break
6286done
6287
6288  if test "x$ac_ct_F77" = x; then
6289    F77=""
6290  else
6291    case $cross_compiling:$ac_tool_warned in
6292yes:)
6293{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6295ac_tool_warned=yes ;;
6296esac
6297    F77=$ac_ct_F77
6298  fi
6299fi
6300
6301
6302# Provide some information about the compiler.
6303$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6304set X $ac_compile
6305ac_compiler=$2
6306{ (ac_try="$ac_compiler --version >&5"
6307case "(($ac_try" in
6308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309  *) ac_try_echo=$ac_try;;
6310esac
6311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6312$as_echo "$ac_try_echo") >&5
6313  (eval "$ac_compiler --version >&5") 2>&5
6314  ac_status=$?
6315  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316  (exit $ac_status); }
6317{ (ac_try="$ac_compiler -v >&5"
6318case "(($ac_try" in
6319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320  *) ac_try_echo=$ac_try;;
6321esac
6322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6323$as_echo "$ac_try_echo") >&5
6324  (eval "$ac_compiler -v >&5") 2>&5
6325  ac_status=$?
6326  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327  (exit $ac_status); }
6328{ (ac_try="$ac_compiler -V >&5"
6329case "(($ac_try" in
6330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331  *) ac_try_echo=$ac_try;;
6332esac
6333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6334$as_echo "$ac_try_echo") >&5
6335  (eval "$ac_compiler -V >&5") 2>&5
6336  ac_status=$?
6337  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338  (exit $ac_status); }
6339rm -f a.out
6340
6341# If we don't use `.F' as extension, the preprocessor is not run on the
6342# input file.  (Note that this only needs to work for GNU compilers.)
6343ac_save_ext=$ac_ext
6344ac_ext=F
6345{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6346$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6347if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6348  $as_echo_n "(cached) " >&6
6349else
6350  cat >conftest.$ac_ext <<_ACEOF
6351      program main
6352#ifndef __GNUC__
6353       choke me
6354#endif
6355
6356      end
6357_ACEOF
6358rm -f conftest.$ac_objext
6359if { (ac_try="$ac_compile"
6360case "(($ac_try" in
6361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362  *) ac_try_echo=$ac_try;;
6363esac
6364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6365$as_echo "$ac_try_echo") >&5
6366  (eval "$ac_compile") 2>conftest.er1
6367  ac_status=$?
6368  grep -v '^ *+' conftest.er1 >conftest.err
6369  rm -f conftest.er1
6370  cat conftest.err >&5
6371  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372  (exit $ac_status); } && {
6373	 test -z "$ac_f77_werror_flag" ||
6374	 test ! -s conftest.err
6375       } && test -s conftest.$ac_objext; then
6376  ac_compiler_gnu=yes
6377else
6378  $as_echo "$as_me: failed program was:" >&5
6379sed 's/^/| /' conftest.$ac_ext >&5
6380
6381	ac_compiler_gnu=no
6382fi
6383
6384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6386
6387fi
6388{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6389$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6390ac_ext=$ac_save_ext
6391ac_test_FFLAGS=${FFLAGS+set}
6392ac_save_FFLAGS=$FFLAGS
6393FFLAGS=
6394{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6395$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6396if test "${ac_cv_prog_f77_g+set}" = set; then
6397  $as_echo_n "(cached) " >&6
6398else
6399  FFLAGS=-g
6400cat >conftest.$ac_ext <<_ACEOF
6401      program main
6402
6403      end
6404_ACEOF
6405rm -f conftest.$ac_objext
6406if { (ac_try="$ac_compile"
6407case "(($ac_try" in
6408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409  *) ac_try_echo=$ac_try;;
6410esac
6411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6412$as_echo "$ac_try_echo") >&5
6413  (eval "$ac_compile") 2>conftest.er1
6414  ac_status=$?
6415  grep -v '^ *+' conftest.er1 >conftest.err
6416  rm -f conftest.er1
6417  cat conftest.err >&5
6418  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419  (exit $ac_status); } && {
6420	 test -z "$ac_f77_werror_flag" ||
6421	 test ! -s conftest.err
6422       } && test -s conftest.$ac_objext; then
6423  ac_cv_prog_f77_g=yes
6424else
6425  $as_echo "$as_me: failed program was:" >&5
6426sed 's/^/| /' conftest.$ac_ext >&5
6427
6428	ac_cv_prog_f77_g=no
6429fi
6430
6431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432
6433fi
6434{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6435$as_echo "$ac_cv_prog_f77_g" >&6; }
6436if test "$ac_test_FFLAGS" = set; then
6437  FFLAGS=$ac_save_FFLAGS
6438elif test $ac_cv_prog_f77_g = yes; then
6439  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6440    FFLAGS="-g -O2"
6441  else
6442    FFLAGS="-g"
6443  fi
6444else
6445  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6446    FFLAGS="-O2"
6447  else
6448    FFLAGS=
6449  fi
6450fi
6451
6452if test $ac_compiler_gnu = yes; then
6453  G77=yes
6454else
6455  G77=
6456fi
6457ac_ext=c
6458ac_cpp='$CPP $CPPFLAGS'
6459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6461ac_compiler_gnu=$ac_cv_c_compiler_gnu
6462
6463
6464
6465# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6466# find the maximum length of command line arguments
6467{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6468$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6469if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6470  $as_echo_n "(cached) " >&6
6471else
6472    i=0
6473  teststring="ABCD"
6474
6475  case $build_os in
6476  msdosdjgpp*)
6477    # On DJGPP, this test can blow up pretty badly due to problems in libc
6478    # (any single argument exceeding 2000 bytes causes a buffer overrun
6479    # during glob expansion).  Even if it were fixed, the result of this
6480    # check would be larger than it should be.
6481    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6482    ;;
6483
6484  gnu*)
6485    # Under GNU Hurd, this test is not required because there is
6486    # no limit to the length of command line arguments.
6487    # Libtool will interpret -1 as no limit whatsoever
6488    lt_cv_sys_max_cmd_len=-1;
6489    ;;
6490
6491  cygwin* | mingw*)
6492    # On Win9x/ME, this test blows up -- it succeeds, but takes
6493    # about 5 minutes as the teststring grows exponentially.
6494    # Worse, since 9x/ME are not pre-emptively multitasking,
6495    # you end up with a "frozen" computer, even though with patience
6496    # the test eventually succeeds (with a max line length of 256k).
6497    # Instead, let's just punt: use the minimum linelength reported by
6498    # all of the supported platforms: 8192 (on NT/2K/XP).
6499    lt_cv_sys_max_cmd_len=8192;
6500    ;;
6501
6502  amigaos*)
6503    # On AmigaOS with pdksh, this test takes hours, literally.
6504    # So we just punt and use a minimum line length of 8192.
6505    lt_cv_sys_max_cmd_len=8192;
6506    ;;
6507
6508  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6509    # This has been around since 386BSD, at least.  Likely further.
6510    if test -x /sbin/sysctl; then
6511      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6512    elif test -x /usr/sbin/sysctl; then
6513      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6514    else
6515      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6516    fi
6517    # And add a safety zone
6518    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6519    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6520    ;;
6521
6522  interix*)
6523    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6524    lt_cv_sys_max_cmd_len=196608
6525    ;;
6526
6527  osf*)
6528    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6529    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6530    # nice to cause kernel panics so lets avoid the loop below.
6531    # First set a reasonable default.
6532    lt_cv_sys_max_cmd_len=16384
6533    #
6534    if test -x /sbin/sysconfig; then
6535      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6536        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6537      esac
6538    fi
6539    ;;
6540  sco3.2v5*)
6541    lt_cv_sys_max_cmd_len=102400
6542    ;;
6543  sysv5* | sco5v6* | sysv4.2uw2*)
6544    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6545    if test -n "$kargmax"; then
6546      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6547    else
6548      lt_cv_sys_max_cmd_len=32768
6549    fi
6550    ;;
6551  *)
6552    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6553    if test -n "$lt_cv_sys_max_cmd_len"; then
6554      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6555      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6556    else
6557      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6558      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6559	       = "XX$teststring") >/dev/null 2>&1 &&
6560	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6561	      lt_cv_sys_max_cmd_len=$new_result &&
6562	      test $i != 17 # 1/2 MB should be enough
6563      do
6564        i=`expr $i + 1`
6565        teststring=$teststring$teststring
6566      done
6567      teststring=
6568      # Add a significant safety factor because C++ compilers can tack on massive
6569      # amounts of additional arguments before passing them to the linker.
6570      # It appears as though 1/2 is a usable value.
6571      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6572    fi
6573    ;;
6574  esac
6575
6576fi
6577
6578if test -n $lt_cv_sys_max_cmd_len ; then
6579  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6580$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6581else
6582  { $as_echo "$as_me:$LINENO: result: none" >&5
6583$as_echo "none" >&6; }
6584fi
6585
6586
6587
6588
6589
6590# Check for command to grab the raw symbol name followed by C symbol from nm.
6591{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6592$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6593if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6594  $as_echo_n "(cached) " >&6
6595else
6596
6597# These are sane defaults that work on at least a few old systems.
6598# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6599
6600# Character class describing NM global symbol codes.
6601symcode='[BCDEGRST]'
6602
6603# Regexp to match symbols that can be accessed directly from C.
6604sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6605
6606# Transform an extracted symbol line into a proper C declaration
6607lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6608
6609# Transform an extracted symbol line into symbol name and symbol address
6610lt_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'"
6611
6612# Define system-specific variables.
6613case $host_os in
6614aix*)
6615  symcode='[BCDT]'
6616  ;;
6617cygwin* | mingw* | pw32*)
6618  symcode='[ABCDGISTW]'
6619  ;;
6620hpux*) # Its linker distinguishes data from code symbols
6621  if test "$host_cpu" = ia64; then
6622    symcode='[ABCDEGRST]'
6623  fi
6624  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6625  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'"
6626  ;;
6627linux* | k*bsd*-gnu)
6628  if test "$host_cpu" = ia64; then
6629    symcode='[ABCDGIRSTW]'
6630    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6631    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'"
6632  fi
6633  ;;
6634irix* | nonstopux*)
6635  symcode='[BCDEGRST]'
6636  ;;
6637osf*)
6638  symcode='[BCDEGQRST]'
6639  ;;
6640solaris*)
6641  symcode='[BDRT]'
6642  ;;
6643sco3.2v5*)
6644  symcode='[DT]'
6645  ;;
6646sysv4.2uw2*)
6647  symcode='[DT]'
6648  ;;
6649sysv5* | sco5v6* | unixware* | OpenUNIX*)
6650  symcode='[ABDT]'
6651  ;;
6652sysv4)
6653  symcode='[DFNSTU]'
6654  ;;
6655esac
6656
6657# Handle CRLF in mingw tool chain
6658opt_cr=
6659case $build_os in
6660mingw*)
6661  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6662  ;;
6663esac
6664
6665# If we're using GNU nm, then use its standard symbol codes.
6666case `$NM -V 2>&1` in
6667*GNU* | *'with BFD'*)
6668  symcode='[ABCDGIRSTW]' ;;
6669esac
6670
6671# Try without a prefix undercore, then with it.
6672for ac_symprfx in "" "_"; do
6673
6674  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6675  symxfrm="\\1 $ac_symprfx\\2 \\2"
6676
6677  # Write the raw and C identifiers.
6678  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6679
6680  # Check to see that the pipe works correctly.
6681  pipe_works=no
6682
6683  rm -f conftest*
6684  cat > conftest.$ac_ext <<EOF
6685#ifdef __cplusplus
6686extern "C" {
6687#endif
6688char nm_test_var;
6689void nm_test_func(){}
6690#ifdef __cplusplus
6691}
6692#endif
6693int main(){nm_test_var='a';nm_test_func();return(0);}
6694EOF
6695
6696  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6697  (eval $ac_compile) 2>&5
6698  ac_status=$?
6699  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700  (exit $ac_status); }; then
6701    # Now try to grab the symbols.
6702    nlist=conftest.nm
6703    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6704  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6705  ac_status=$?
6706  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707  (exit $ac_status); } && test -s "$nlist"; then
6708      # Try sorting and uniquifying the output.
6709      if sort "$nlist" | uniq > "$nlist"T; then
6710	mv -f "$nlist"T "$nlist"
6711      else
6712	rm -f "$nlist"T
6713      fi
6714
6715      # Make sure that we snagged all the symbols we need.
6716      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6717	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6718	  cat <<EOF > conftest.$ac_ext
6719#ifdef __cplusplus
6720extern "C" {
6721#endif
6722
6723EOF
6724	  # Now generate the symbol file.
6725	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6726
6727	  cat <<EOF >> conftest.$ac_ext
6728#if defined (__STDC__) && __STDC__
6729# define lt_ptr_t void *
6730#else
6731# define lt_ptr_t char *
6732# define const
6733#endif
6734
6735/* The mapping between symbol names and symbols. */
6736const struct {
6737  const char *name;
6738  lt_ptr_t address;
6739}
6740lt_preloaded_symbols[] =
6741{
6742EOF
6743	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6744	  cat <<\EOF >> conftest.$ac_ext
6745  {0, (lt_ptr_t) 0}
6746};
6747
6748#ifdef __cplusplus
6749}
6750#endif
6751EOF
6752	  # Now try linking the two files.
6753	  mv conftest.$ac_objext conftstm.$ac_objext
6754	  lt_save_LIBS="$LIBS"
6755	  lt_save_CFLAGS="$CFLAGS"
6756	  LIBS="conftstm.$ac_objext"
6757	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6758	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6759  (eval $ac_link) 2>&5
6760  ac_status=$?
6761  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6763	    pipe_works=yes
6764	  fi
6765	  LIBS="$lt_save_LIBS"
6766	  CFLAGS="$lt_save_CFLAGS"
6767	else
6768	  echo "cannot find nm_test_func in $nlist" >&5
6769	fi
6770      else
6771	echo "cannot find nm_test_var in $nlist" >&5
6772      fi
6773    else
6774      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6775    fi
6776  else
6777    echo "$progname: failed program was:" >&5
6778    cat conftest.$ac_ext >&5
6779  fi
6780  rm -rf conftest* conftst*
6781
6782  # Do not use the global_symbol_pipe unless it works.
6783  if test "$pipe_works" = yes; then
6784    break
6785  else
6786    lt_cv_sys_global_symbol_pipe=
6787  fi
6788done
6789
6790fi
6791
6792if test -z "$lt_cv_sys_global_symbol_pipe"; then
6793  lt_cv_sys_global_symbol_to_cdecl=
6794fi
6795if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6796  { $as_echo "$as_me:$LINENO: result: failed" >&5
6797$as_echo "failed" >&6; }
6798else
6799  { $as_echo "$as_me:$LINENO: result: ok" >&5
6800$as_echo "ok" >&6; }
6801fi
6802
6803{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6804$as_echo_n "checking for objdir... " >&6; }
6805if test "${lt_cv_objdir+set}" = set; then
6806  $as_echo_n "(cached) " >&6
6807else
6808  rm -f .libs 2>/dev/null
6809mkdir .libs 2>/dev/null
6810if test -d .libs; then
6811  lt_cv_objdir=.libs
6812else
6813  # MS-DOS does not allow filenames that begin with a dot.
6814  lt_cv_objdir=_libs
6815fi
6816rmdir .libs 2>/dev/null
6817fi
6818{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6819$as_echo "$lt_cv_objdir" >&6; }
6820objdir=$lt_cv_objdir
6821
6822
6823
6824
6825
6826case $host_os in
6827aix3*)
6828  # AIX sometimes has problems with the GCC collect2 program.  For some
6829  # reason, if we set the COLLECT_NAMES environment variable, the problems
6830  # vanish in a puff of smoke.
6831  if test "X${COLLECT_NAMES+set}" != Xset; then
6832    COLLECT_NAMES=
6833    export COLLECT_NAMES
6834  fi
6835  ;;
6836esac
6837
6838# Sed substitution that helps us do robust quoting.  It backslashifies
6839# metacharacters that are still active within double-quoted strings.
6840Xsed='sed -e 1s/^X//'
6841sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6842
6843# Same as above, but do not quote variable references.
6844double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6845
6846# Sed substitution to delay expansion of an escaped shell variable in a
6847# double_quote_subst'ed string.
6848delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6849
6850# Sed substitution to avoid accidental globbing in evaled expressions
6851no_glob_subst='s/\*/\\\*/g'
6852
6853# Constants:
6854rm="rm -f"
6855
6856# Global variables:
6857default_ofile=libtool
6858can_build_shared=yes
6859
6860# All known linkers require a `.a' archive for static linking (except MSVC,
6861# which needs '.lib').
6862libext=a
6863ltmain="$ac_aux_dir/ltmain.sh"
6864ofile="$default_ofile"
6865with_gnu_ld="$lt_cv_prog_gnu_ld"
6866
6867if test -n "$ac_tool_prefix"; then
6868  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6869set dummy ${ac_tool_prefix}ar; ac_word=$2
6870{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6871$as_echo_n "checking for $ac_word... " >&6; }
6872if test "${ac_cv_prog_AR+set}" = set; then
6873  $as_echo_n "(cached) " >&6
6874else
6875  if test -n "$AR"; then
6876  ac_cv_prog_AR="$AR" # Let the user override the test.
6877else
6878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879for as_dir in $PATH
6880do
6881  IFS=$as_save_IFS
6882  test -z "$as_dir" && as_dir=.
6883  for ac_exec_ext in '' $ac_executable_extensions; do
6884  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6885    ac_cv_prog_AR="${ac_tool_prefix}ar"
6886    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887    break 2
6888  fi
6889done
6890done
6891IFS=$as_save_IFS
6892
6893fi
6894fi
6895AR=$ac_cv_prog_AR
6896if test -n "$AR"; then
6897  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6898$as_echo "$AR" >&6; }
6899else
6900  { $as_echo "$as_me:$LINENO: result: no" >&5
6901$as_echo "no" >&6; }
6902fi
6903
6904
6905fi
6906if test -z "$ac_cv_prog_AR"; then
6907  ac_ct_AR=$AR
6908  # Extract the first word of "ar", so it can be a program name with args.
6909set dummy ar; ac_word=$2
6910{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6911$as_echo_n "checking for $ac_word... " >&6; }
6912if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6913  $as_echo_n "(cached) " >&6
6914else
6915  if test -n "$ac_ct_AR"; then
6916  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6917else
6918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919for as_dir in $PATH
6920do
6921  IFS=$as_save_IFS
6922  test -z "$as_dir" && as_dir=.
6923  for ac_exec_ext in '' $ac_executable_extensions; do
6924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925    ac_cv_prog_ac_ct_AR="ar"
6926    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927    break 2
6928  fi
6929done
6930done
6931IFS=$as_save_IFS
6932
6933fi
6934fi
6935ac_ct_AR=$ac_cv_prog_ac_ct_AR
6936if test -n "$ac_ct_AR"; then
6937  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6938$as_echo "$ac_ct_AR" >&6; }
6939else
6940  { $as_echo "$as_me:$LINENO: result: no" >&5
6941$as_echo "no" >&6; }
6942fi
6943
6944  if test "x$ac_ct_AR" = x; then
6945    AR="false"
6946  else
6947    case $cross_compiling:$ac_tool_warned in
6948yes:)
6949{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6951ac_tool_warned=yes ;;
6952esac
6953    AR=$ac_ct_AR
6954  fi
6955else
6956  AR="$ac_cv_prog_AR"
6957fi
6958
6959if test -n "$ac_tool_prefix"; then
6960  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6961set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6962{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6963$as_echo_n "checking for $ac_word... " >&6; }
6964if test "${ac_cv_prog_RANLIB+set}" = set; then
6965  $as_echo_n "(cached) " >&6
6966else
6967  if test -n "$RANLIB"; then
6968  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6969else
6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971for as_dir in $PATH
6972do
6973  IFS=$as_save_IFS
6974  test -z "$as_dir" && as_dir=.
6975  for ac_exec_ext in '' $ac_executable_extensions; do
6976  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6977    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6978    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979    break 2
6980  fi
6981done
6982done
6983IFS=$as_save_IFS
6984
6985fi
6986fi
6987RANLIB=$ac_cv_prog_RANLIB
6988if test -n "$RANLIB"; then
6989  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6990$as_echo "$RANLIB" >&6; }
6991else
6992  { $as_echo "$as_me:$LINENO: result: no" >&5
6993$as_echo "no" >&6; }
6994fi
6995
6996
6997fi
6998if test -z "$ac_cv_prog_RANLIB"; then
6999  ac_ct_RANLIB=$RANLIB
7000  # Extract the first word of "ranlib", so it can be a program name with args.
7001set dummy ranlib; ac_word=$2
7002{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7003$as_echo_n "checking for $ac_word... " >&6; }
7004if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7005  $as_echo_n "(cached) " >&6
7006else
7007  if test -n "$ac_ct_RANLIB"; then
7008  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7009else
7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011for as_dir in $PATH
7012do
7013  IFS=$as_save_IFS
7014  test -z "$as_dir" && as_dir=.
7015  for ac_exec_ext in '' $ac_executable_extensions; do
7016  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017    ac_cv_prog_ac_ct_RANLIB="ranlib"
7018    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019    break 2
7020  fi
7021done
7022done
7023IFS=$as_save_IFS
7024
7025fi
7026fi
7027ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7028if test -n "$ac_ct_RANLIB"; then
7029  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7030$as_echo "$ac_ct_RANLIB" >&6; }
7031else
7032  { $as_echo "$as_me:$LINENO: result: no" >&5
7033$as_echo "no" >&6; }
7034fi
7035
7036  if test "x$ac_ct_RANLIB" = x; then
7037    RANLIB=":"
7038  else
7039    case $cross_compiling:$ac_tool_warned in
7040yes:)
7041{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7043ac_tool_warned=yes ;;
7044esac
7045    RANLIB=$ac_ct_RANLIB
7046  fi
7047else
7048  RANLIB="$ac_cv_prog_RANLIB"
7049fi
7050
7051if test -n "$ac_tool_prefix"; then
7052  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7053set dummy ${ac_tool_prefix}strip; ac_word=$2
7054{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7055$as_echo_n "checking for $ac_word... " >&6; }
7056if test "${ac_cv_prog_STRIP+set}" = set; then
7057  $as_echo_n "(cached) " >&6
7058else
7059  if test -n "$STRIP"; then
7060  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7061else
7062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063for as_dir in $PATH
7064do
7065  IFS=$as_save_IFS
7066  test -z "$as_dir" && as_dir=.
7067  for ac_exec_ext in '' $ac_executable_extensions; do
7068  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7069    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7070    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071    break 2
7072  fi
7073done
7074done
7075IFS=$as_save_IFS
7076
7077fi
7078fi
7079STRIP=$ac_cv_prog_STRIP
7080if test -n "$STRIP"; then
7081  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7082$as_echo "$STRIP" >&6; }
7083else
7084  { $as_echo "$as_me:$LINENO: result: no" >&5
7085$as_echo "no" >&6; }
7086fi
7087
7088
7089fi
7090if test -z "$ac_cv_prog_STRIP"; then
7091  ac_ct_STRIP=$STRIP
7092  # Extract the first word of "strip", so it can be a program name with args.
7093set dummy strip; ac_word=$2
7094{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7095$as_echo_n "checking for $ac_word... " >&6; }
7096if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7097  $as_echo_n "(cached) " >&6
7098else
7099  if test -n "$ac_ct_STRIP"; then
7100  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7101else
7102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103for as_dir in $PATH
7104do
7105  IFS=$as_save_IFS
7106  test -z "$as_dir" && as_dir=.
7107  for ac_exec_ext in '' $ac_executable_extensions; do
7108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109    ac_cv_prog_ac_ct_STRIP="strip"
7110    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111    break 2
7112  fi
7113done
7114done
7115IFS=$as_save_IFS
7116
7117fi
7118fi
7119ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7120if test -n "$ac_ct_STRIP"; then
7121  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7122$as_echo "$ac_ct_STRIP" >&6; }
7123else
7124  { $as_echo "$as_me:$LINENO: result: no" >&5
7125$as_echo "no" >&6; }
7126fi
7127
7128  if test "x$ac_ct_STRIP" = x; then
7129    STRIP=":"
7130  else
7131    case $cross_compiling:$ac_tool_warned in
7132yes:)
7133{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7135ac_tool_warned=yes ;;
7136esac
7137    STRIP=$ac_ct_STRIP
7138  fi
7139else
7140  STRIP="$ac_cv_prog_STRIP"
7141fi
7142
7143
7144old_CC="$CC"
7145old_CFLAGS="$CFLAGS"
7146
7147# Set sane defaults for various variables
7148test -z "$AR" && AR=ar
7149test -z "$AR_FLAGS" && AR_FLAGS=cru
7150test -z "$AS" && AS=as
7151test -z "$CC" && CC=cc
7152test -z "$LTCC" && LTCC=$CC
7153test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7154test -z "$DLLTOOL" && DLLTOOL=dlltool
7155test -z "$LD" && LD=ld
7156test -z "$LN_S" && LN_S="ln -s"
7157test -z "$MAGIC_CMD" && MAGIC_CMD=file
7158test -z "$NM" && NM=nm
7159test -z "$SED" && SED=sed
7160test -z "$OBJDUMP" && OBJDUMP=objdump
7161test -z "$RANLIB" && RANLIB=:
7162test -z "$STRIP" && STRIP=:
7163test -z "$ac_objext" && ac_objext=o
7164
7165# Determine commands to create old-style static archives.
7166old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7167old_postinstall_cmds='chmod 644 $oldlib'
7168old_postuninstall_cmds=
7169
7170if test -n "$RANLIB"; then
7171  case $host_os in
7172  openbsd*)
7173    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7174    ;;
7175  *)
7176    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7177    ;;
7178  esac
7179  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7180fi
7181
7182for cc_temp in $compiler""; do
7183  case $cc_temp in
7184    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7185    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7186    \-*) ;;
7187    *) break;;
7188  esac
7189done
7190cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7191
7192
7193# Only perform the check for file, if the check method requires it
7194case $deplibs_check_method in
7195file_magic*)
7196  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7197    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7198$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7199if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7200  $as_echo_n "(cached) " >&6
7201else
7202  case $MAGIC_CMD in
7203[\\/*] |  ?:[\\/]*)
7204  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7205  ;;
7206*)
7207  lt_save_MAGIC_CMD="$MAGIC_CMD"
7208  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7209  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7210  for ac_dir in $ac_dummy; do
7211    IFS="$lt_save_ifs"
7212    test -z "$ac_dir" && ac_dir=.
7213    if test -f $ac_dir/${ac_tool_prefix}file; then
7214      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7215      if test -n "$file_magic_test_file"; then
7216	case $deplibs_check_method in
7217	"file_magic "*)
7218	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7219	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7220	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7221	    $EGREP "$file_magic_regex" > /dev/null; then
7222	    :
7223	  else
7224	    cat <<EOF 1>&2
7225
7226*** Warning: the command libtool uses to detect shared libraries,
7227*** $file_magic_cmd, produces output that libtool cannot recognize.
7228*** The result is that libtool may fail to recognize shared libraries
7229*** as such.  This will affect the creation of libtool libraries that
7230*** depend on shared libraries, but programs linked with such libtool
7231*** libraries will work regardless of this problem.  Nevertheless, you
7232*** may want to report the problem to your system manager and/or to
7233*** bug-libtool@gnu.org
7234
7235EOF
7236	  fi ;;
7237	esac
7238      fi
7239      break
7240    fi
7241  done
7242  IFS="$lt_save_ifs"
7243  MAGIC_CMD="$lt_save_MAGIC_CMD"
7244  ;;
7245esac
7246fi
7247
7248MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7249if test -n "$MAGIC_CMD"; then
7250  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7251$as_echo "$MAGIC_CMD" >&6; }
7252else
7253  { $as_echo "$as_me:$LINENO: result: no" >&5
7254$as_echo "no" >&6; }
7255fi
7256
7257if test -z "$lt_cv_path_MAGIC_CMD"; then
7258  if test -n "$ac_tool_prefix"; then
7259    { $as_echo "$as_me:$LINENO: checking for file" >&5
7260$as_echo_n "checking for file... " >&6; }
7261if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7262  $as_echo_n "(cached) " >&6
7263else
7264  case $MAGIC_CMD in
7265[\\/*] |  ?:[\\/]*)
7266  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7267  ;;
7268*)
7269  lt_save_MAGIC_CMD="$MAGIC_CMD"
7270  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7271  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7272  for ac_dir in $ac_dummy; do
7273    IFS="$lt_save_ifs"
7274    test -z "$ac_dir" && ac_dir=.
7275    if test -f $ac_dir/file; then
7276      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7277      if test -n "$file_magic_test_file"; then
7278	case $deplibs_check_method in
7279	"file_magic "*)
7280	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7281	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7282	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7283	    $EGREP "$file_magic_regex" > /dev/null; then
7284	    :
7285	  else
7286	    cat <<EOF 1>&2
7287
7288*** Warning: the command libtool uses to detect shared libraries,
7289*** $file_magic_cmd, produces output that libtool cannot recognize.
7290*** The result is that libtool may fail to recognize shared libraries
7291*** as such.  This will affect the creation of libtool libraries that
7292*** depend on shared libraries, but programs linked with such libtool
7293*** libraries will work regardless of this problem.  Nevertheless, you
7294*** may want to report the problem to your system manager and/or to
7295*** bug-libtool@gnu.org
7296
7297EOF
7298	  fi ;;
7299	esac
7300      fi
7301      break
7302    fi
7303  done
7304  IFS="$lt_save_ifs"
7305  MAGIC_CMD="$lt_save_MAGIC_CMD"
7306  ;;
7307esac
7308fi
7309
7310MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7311if test -n "$MAGIC_CMD"; then
7312  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7313$as_echo "$MAGIC_CMD" >&6; }
7314else
7315  { $as_echo "$as_me:$LINENO: result: no" >&5
7316$as_echo "no" >&6; }
7317fi
7318
7319  else
7320    MAGIC_CMD=:
7321  fi
7322fi
7323
7324  fi
7325  ;;
7326esac
7327
7328
7329  case $host_os in
7330    rhapsody* | darwin*)
7331    if test -n "$ac_tool_prefix"; then
7332  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7333set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7334{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7335$as_echo_n "checking for $ac_word... " >&6; }
7336if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7337  $as_echo_n "(cached) " >&6
7338else
7339  if test -n "$DSYMUTIL"; then
7340  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7341else
7342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345  IFS=$as_save_IFS
7346  test -z "$as_dir" && as_dir=.
7347  for ac_exec_ext in '' $ac_executable_extensions; do
7348  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7350    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7351    break 2
7352  fi
7353done
7354done
7355IFS=$as_save_IFS
7356
7357fi
7358fi
7359DSYMUTIL=$ac_cv_prog_DSYMUTIL
7360if test -n "$DSYMUTIL"; then
7361  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7362$as_echo "$DSYMUTIL" >&6; }
7363else
7364  { $as_echo "$as_me:$LINENO: result: no" >&5
7365$as_echo "no" >&6; }
7366fi
7367
7368
7369fi
7370if test -z "$ac_cv_prog_DSYMUTIL"; then
7371  ac_ct_DSYMUTIL=$DSYMUTIL
7372  # Extract the first word of "dsymutil", so it can be a program name with args.
7373set dummy dsymutil; ac_word=$2
7374{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7375$as_echo_n "checking for $ac_word... " >&6; }
7376if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7377  $as_echo_n "(cached) " >&6
7378else
7379  if test -n "$ac_ct_DSYMUTIL"; then
7380  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7381else
7382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH
7384do
7385  IFS=$as_save_IFS
7386  test -z "$as_dir" && as_dir=.
7387  for ac_exec_ext in '' $ac_executable_extensions; do
7388  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7390    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391    break 2
7392  fi
7393done
7394done
7395IFS=$as_save_IFS
7396
7397fi
7398fi
7399ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7400if test -n "$ac_ct_DSYMUTIL"; then
7401  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7402$as_echo "$ac_ct_DSYMUTIL" >&6; }
7403else
7404  { $as_echo "$as_me:$LINENO: result: no" >&5
7405$as_echo "no" >&6; }
7406fi
7407
7408  if test "x$ac_ct_DSYMUTIL" = x; then
7409    DSYMUTIL=":"
7410  else
7411    case $cross_compiling:$ac_tool_warned in
7412yes:)
7413{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7415ac_tool_warned=yes ;;
7416esac
7417    DSYMUTIL=$ac_ct_DSYMUTIL
7418  fi
7419else
7420  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7421fi
7422
7423    if test -n "$ac_tool_prefix"; then
7424  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7425set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7426{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7427$as_echo_n "checking for $ac_word... " >&6; }
7428if test "${ac_cv_prog_NMEDIT+set}" = set; then
7429  $as_echo_n "(cached) " >&6
7430else
7431  if test -n "$NMEDIT"; then
7432  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7433else
7434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435for as_dir in $PATH
7436do
7437  IFS=$as_save_IFS
7438  test -z "$as_dir" && as_dir=.
7439  for ac_exec_ext in '' $ac_executable_extensions; do
7440  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7441    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7442    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443    break 2
7444  fi
7445done
7446done
7447IFS=$as_save_IFS
7448
7449fi
7450fi
7451NMEDIT=$ac_cv_prog_NMEDIT
7452if test -n "$NMEDIT"; then
7453  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7454$as_echo "$NMEDIT" >&6; }
7455else
7456  { $as_echo "$as_me:$LINENO: result: no" >&5
7457$as_echo "no" >&6; }
7458fi
7459
7460
7461fi
7462if test -z "$ac_cv_prog_NMEDIT"; then
7463  ac_ct_NMEDIT=$NMEDIT
7464  # Extract the first word of "nmedit", so it can be a program name with args.
7465set dummy nmedit; ac_word=$2
7466{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7467$as_echo_n "checking for $ac_word... " >&6; }
7468if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7469  $as_echo_n "(cached) " >&6
7470else
7471  if test -n "$ac_ct_NMEDIT"; then
7472  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7473else
7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477  IFS=$as_save_IFS
7478  test -z "$as_dir" && as_dir=.
7479  for ac_exec_ext in '' $ac_executable_extensions; do
7480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7481    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7482    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483    break 2
7484  fi
7485done
7486done
7487IFS=$as_save_IFS
7488
7489fi
7490fi
7491ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7492if test -n "$ac_ct_NMEDIT"; then
7493  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7494$as_echo "$ac_ct_NMEDIT" >&6; }
7495else
7496  { $as_echo "$as_me:$LINENO: result: no" >&5
7497$as_echo "no" >&6; }
7498fi
7499
7500  if test "x$ac_ct_NMEDIT" = x; then
7501    NMEDIT=":"
7502  else
7503    case $cross_compiling:$ac_tool_warned in
7504yes:)
7505{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7507ac_tool_warned=yes ;;
7508esac
7509    NMEDIT=$ac_ct_NMEDIT
7510  fi
7511else
7512  NMEDIT="$ac_cv_prog_NMEDIT"
7513fi
7514
7515
7516    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7517$as_echo_n "checking for -single_module linker flag... " >&6; }
7518if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7519  $as_echo_n "(cached) " >&6
7520else
7521  lt_cv_apple_cc_single_mod=no
7522      if test -z "${LT_MULTI_MODULE}"; then
7523   # By default we will add the -single_module flag. You can override
7524   # by either setting the environment variable LT_MULTI_MODULE
7525   # non-empty at configure time, or by adding -multi_module to the
7526   # link flags.
7527   echo "int foo(void){return 1;}" > conftest.c
7528   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7529     -dynamiclib ${wl}-single_module conftest.c
7530   if test -f libconftest.dylib; then
7531     lt_cv_apple_cc_single_mod=yes
7532     rm -rf libconftest.dylib*
7533   fi
7534   rm conftest.c
7535      fi
7536fi
7537{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7538$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7539    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7540$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7541if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7542  $as_echo_n "(cached) " >&6
7543else
7544  lt_cv_ld_exported_symbols_list=no
7545      save_LDFLAGS=$LDFLAGS
7546      echo "_main" > conftest.sym
7547      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7548      cat >conftest.$ac_ext <<_ACEOF
7549/* confdefs.h.  */
7550_ACEOF
7551cat confdefs.h >>conftest.$ac_ext
7552cat >>conftest.$ac_ext <<_ACEOF
7553/* end confdefs.h.  */
7554
7555int
7556main ()
7557{
7558
7559  ;
7560  return 0;
7561}
7562_ACEOF
7563rm -f conftest.$ac_objext conftest$ac_exeext
7564if { (ac_try="$ac_link"
7565case "(($ac_try" in
7566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567  *) ac_try_echo=$ac_try;;
7568esac
7569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7570$as_echo "$ac_try_echo") >&5
7571  (eval "$ac_link") 2>conftest.er1
7572  ac_status=$?
7573  grep -v '^ *+' conftest.er1 >conftest.err
7574  rm -f conftest.er1
7575  cat conftest.err >&5
7576  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577  (exit $ac_status); } && {
7578	 test -z "$ac_c_werror_flag" ||
7579	 test ! -s conftest.err
7580       } && test -s conftest$ac_exeext && {
7581	 test "$cross_compiling" = yes ||
7582	 $as_test_x conftest$ac_exeext
7583       }; then
7584  lt_cv_ld_exported_symbols_list=yes
7585else
7586  $as_echo "$as_me: failed program was:" >&5
7587sed 's/^/| /' conftest.$ac_ext >&5
7588
7589	lt_cv_ld_exported_symbols_list=no
7590fi
7591
7592rm -rf conftest.dSYM
7593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7594      conftest$ac_exeext conftest.$ac_ext
7595   LDFLAGS="$save_LDFLAGS"
7596
7597fi
7598{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7599$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7600    case $host_os in
7601    rhapsody* | darwin1.[0123])
7602      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7603    darwin1.*)
7604     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7605    darwin*)
7606      # if running on 10.5 or later, the deployment target defaults
7607      # to the OS version, if on x86, and 10.4, the deployment
7608      # target defaults to 10.4. Don't you love it?
7609      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7610   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7611     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7612   10.[012]*)
7613     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7614   10.*)
7615     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7616      esac
7617    ;;
7618  esac
7619    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7620      _lt_dar_single_mod='$single_module'
7621    fi
7622    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7623      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7624    else
7625      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7626    fi
7627    if test "$DSYMUTIL" != ":"; then
7628      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7629    else
7630      _lt_dsymutil=
7631    fi
7632    ;;
7633  esac
7634
7635
7636enable_dlopen=no
7637enable_win32_dll=no
7638
7639# Check whether --enable-libtool-lock was given.
7640if test "${enable_libtool_lock+set}" = set; then
7641  enableval=$enable_libtool_lock;
7642fi
7643
7644test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7645
7646
7647# Check whether --with-pic was given.
7648if test "${with_pic+set}" = set; then
7649  withval=$with_pic; pic_mode="$withval"
7650else
7651  pic_mode=default
7652fi
7653
7654test -z "$pic_mode" && pic_mode=default
7655
7656# Use C for the default configuration in the libtool script
7657tagname=
7658lt_save_CC="$CC"
7659ac_ext=c
7660ac_cpp='$CPP $CPPFLAGS'
7661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7663ac_compiler_gnu=$ac_cv_c_compiler_gnu
7664
7665
7666# Source file extension for C test sources.
7667ac_ext=c
7668
7669# Object file extension for compiled C test sources.
7670objext=o
7671objext=$objext
7672
7673# Code to be used in simple compile tests
7674lt_simple_compile_test_code="int some_variable = 0;"
7675
7676# Code to be used in simple link tests
7677lt_simple_link_test_code='int main(){return(0);}'
7678
7679
7680# If no C compiler was specified, use CC.
7681LTCC=${LTCC-"$CC"}
7682
7683# If no C compiler flags were specified, use CFLAGS.
7684LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7685
7686# Allow CC to be a program name with arguments.
7687compiler=$CC
7688
7689
7690# save warnings/boilerplate of simple test code
7691ac_outfile=conftest.$ac_objext
7692echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7693eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7694_lt_compiler_boilerplate=`cat conftest.err`
7695$rm conftest*
7696
7697ac_outfile=conftest.$ac_objext
7698echo "$lt_simple_link_test_code" >conftest.$ac_ext
7699eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7700_lt_linker_boilerplate=`cat conftest.err`
7701$rm -r conftest*
7702
7703
7704
7705lt_prog_compiler_no_builtin_flag=
7706
7707if test "$GCC" = yes; then
7708  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7709
7710
7711{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7712$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7713if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7714  $as_echo_n "(cached) " >&6
7715else
7716  lt_cv_prog_compiler_rtti_exceptions=no
7717  ac_outfile=conftest.$ac_objext
7718   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7719   lt_compiler_flag="-fno-rtti -fno-exceptions"
7720   # Insert the option either (1) after the last *FLAGS variable, or
7721   # (2) before a word containing "conftest.", or (3) at the end.
7722   # Note that $ac_compile itself does not contain backslashes and begins
7723   # with a dollar sign (not a hyphen), so the echo should work correctly.
7724   # The option is referenced via a variable to avoid confusing sed.
7725   lt_compile=`echo "$ac_compile" | $SED \
7726   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7727   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7728   -e 's:$: $lt_compiler_flag:'`
7729   (eval echo "\"\$as_me:7729: $lt_compile\"" >&5)
7730   (eval "$lt_compile" 2>conftest.err)
7731   ac_status=$?
7732   cat conftest.err >&5
7733   echo "$as_me:7733: \$? = $ac_status" >&5
7734   if (exit $ac_status) && test -s "$ac_outfile"; then
7735     # The compiler can only warn and ignore the option if not recognized
7736     # So say no if there are warnings other than the usual output.
7737     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7738     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7739     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7740       lt_cv_prog_compiler_rtti_exceptions=yes
7741     fi
7742   fi
7743   $rm conftest*
7744
7745fi
7746{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7747$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7748
7749if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7750    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7751else
7752    :
7753fi
7754
7755fi
7756
7757lt_prog_compiler_wl=
7758lt_prog_compiler_pic=
7759lt_prog_compiler_static=
7760
7761{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7762$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7763
7764  if test "$GCC" = yes; then
7765    lt_prog_compiler_wl='-Wl,'
7766    lt_prog_compiler_static='-static'
7767
7768    case $host_os in
7769      aix*)
7770      # All AIX code is PIC.
7771      if test "$host_cpu" = ia64; then
7772	# AIX 5 now supports IA64 processor
7773	lt_prog_compiler_static='-Bstatic'
7774      fi
7775      ;;
7776
7777    amigaos*)
7778      # FIXME: we need at least 68020 code to build shared libraries, but
7779      # adding the `-m68020' flag to GCC prevents building anything better,
7780      # like `-m68040'.
7781      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7782      ;;
7783
7784    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7785      # PIC is the default for these OSes.
7786      ;;
7787
7788    mingw* | cygwin* | pw32* | os2*)
7789      # This hack is so that the source file can tell whether it is being
7790      # built for inclusion in a dll (and should export symbols for example).
7791      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7792      # (--disable-auto-import) libraries
7793      lt_prog_compiler_pic='-DDLL_EXPORT'
7794      ;;
7795
7796    darwin* | rhapsody*)
7797      # PIC is the default on this platform
7798      # Common symbols not allowed in MH_DYLIB files
7799      lt_prog_compiler_pic='-fno-common'
7800      ;;
7801
7802    interix[3-9]*)
7803      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7804      # Instead, we relocate shared libraries at runtime.
7805      ;;
7806
7807    msdosdjgpp*)
7808      # Just because we use GCC doesn't mean we suddenly get shared libraries
7809      # on systems that don't support them.
7810      lt_prog_compiler_can_build_shared=no
7811      enable_shared=no
7812      ;;
7813
7814    sysv4*MP*)
7815      if test -d /usr/nec; then
7816	lt_prog_compiler_pic=-Kconform_pic
7817      fi
7818      ;;
7819
7820    hpux*)
7821      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7822      # not for PA HP-UX.
7823      case $host_cpu in
7824      hppa*64*|ia64*)
7825	# +Z the default
7826	;;
7827      *)
7828	lt_prog_compiler_pic='-fPIC'
7829	;;
7830      esac
7831      ;;
7832
7833    *)
7834      lt_prog_compiler_pic='-fPIC'
7835      ;;
7836    esac
7837  else
7838    # PORTME Check for flag to pass linker flags through the system compiler.
7839    case $host_os in
7840    aix*)
7841      lt_prog_compiler_wl='-Wl,'
7842      if test "$host_cpu" = ia64; then
7843	# AIX 5 now supports IA64 processor
7844	lt_prog_compiler_static='-Bstatic'
7845      else
7846	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7847      fi
7848      ;;
7849      darwin*)
7850        # PIC is the default on this platform
7851        # Common symbols not allowed in MH_DYLIB files
7852       case $cc_basename in
7853         xlc*)
7854         lt_prog_compiler_pic='-qnocommon'
7855         lt_prog_compiler_wl='-Wl,'
7856         ;;
7857       esac
7858       ;;
7859
7860    mingw* | cygwin* | pw32* | os2*)
7861      # This hack is so that the source file can tell whether it is being
7862      # built for inclusion in a dll (and should export symbols for example).
7863      lt_prog_compiler_pic='-DDLL_EXPORT'
7864      ;;
7865
7866    hpux9* | hpux10* | hpux11*)
7867      lt_prog_compiler_wl='-Wl,'
7868      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7869      # not for PA HP-UX.
7870      case $host_cpu in
7871      hppa*64*|ia64*)
7872	# +Z the default
7873	;;
7874      *)
7875	lt_prog_compiler_pic='+Z'
7876	;;
7877      esac
7878      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7879      lt_prog_compiler_static='${wl}-a ${wl}archive'
7880      ;;
7881
7882    irix5* | irix6* | nonstopux*)
7883      lt_prog_compiler_wl='-Wl,'
7884      # PIC (with -KPIC) is the default.
7885      lt_prog_compiler_static='-non_shared'
7886      ;;
7887
7888    newsos6)
7889      lt_prog_compiler_pic='-KPIC'
7890      lt_prog_compiler_static='-Bstatic'
7891      ;;
7892
7893    linux* | k*bsd*-gnu)
7894      case $cc_basename in
7895      icc* | ecc*)
7896	lt_prog_compiler_wl='-Wl,'
7897	lt_prog_compiler_pic='-KPIC'
7898	lt_prog_compiler_static='-static'
7899        ;;
7900      pgcc* | pgf77* | pgf90* | pgf95*)
7901        # Portland Group compilers (*not* the Pentium gcc compiler,
7902	# which looks to be a dead project)
7903	lt_prog_compiler_wl='-Wl,'
7904	lt_prog_compiler_pic='-fpic'
7905	lt_prog_compiler_static='-Bstatic'
7906        ;;
7907      ccc*)
7908        lt_prog_compiler_wl='-Wl,'
7909        # All Alpha code is PIC.
7910        lt_prog_compiler_static='-non_shared'
7911        ;;
7912      *)
7913        case `$CC -V 2>&1 | sed 5q` in
7914	*Sun\ C*)
7915	  # Sun C 5.9
7916	  lt_prog_compiler_pic='-KPIC'
7917	  lt_prog_compiler_static='-Bstatic'
7918	  lt_prog_compiler_wl='-Wl,'
7919	  ;;
7920	*Sun\ F*)
7921	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7922	  lt_prog_compiler_pic='-KPIC'
7923	  lt_prog_compiler_static='-Bstatic'
7924	  lt_prog_compiler_wl=''
7925	  ;;
7926	esac
7927	;;
7928      esac
7929      ;;
7930
7931    osf3* | osf4* | osf5*)
7932      lt_prog_compiler_wl='-Wl,'
7933      # All OSF/1 code is PIC.
7934      lt_prog_compiler_static='-non_shared'
7935      ;;
7936
7937    rdos*)
7938      lt_prog_compiler_static='-non_shared'
7939      ;;
7940
7941    solaris*)
7942      lt_prog_compiler_pic='-KPIC'
7943      lt_prog_compiler_static='-Bstatic'
7944      case $cc_basename in
7945      f77* | f90* | f95*)
7946	lt_prog_compiler_wl='-Qoption ld ';;
7947      *)
7948	lt_prog_compiler_wl='-Wl,';;
7949      esac
7950      ;;
7951
7952    sunos4*)
7953      lt_prog_compiler_wl='-Qoption ld '
7954      lt_prog_compiler_pic='-PIC'
7955      lt_prog_compiler_static='-Bstatic'
7956      ;;
7957
7958    sysv4 | sysv4.2uw2* | sysv4.3*)
7959      lt_prog_compiler_wl='-Wl,'
7960      lt_prog_compiler_pic='-KPIC'
7961      lt_prog_compiler_static='-Bstatic'
7962      ;;
7963
7964    sysv4*MP*)
7965      if test -d /usr/nec ;then
7966	lt_prog_compiler_pic='-Kconform_pic'
7967	lt_prog_compiler_static='-Bstatic'
7968      fi
7969      ;;
7970
7971    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7972      lt_prog_compiler_wl='-Wl,'
7973      lt_prog_compiler_pic='-KPIC'
7974      lt_prog_compiler_static='-Bstatic'
7975      ;;
7976
7977    unicos*)
7978      lt_prog_compiler_wl='-Wl,'
7979      lt_prog_compiler_can_build_shared=no
7980      ;;
7981
7982    uts4*)
7983      lt_prog_compiler_pic='-pic'
7984      lt_prog_compiler_static='-Bstatic'
7985      ;;
7986
7987    *)
7988      lt_prog_compiler_can_build_shared=no
7989      ;;
7990    esac
7991  fi
7992
7993{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7994$as_echo "$lt_prog_compiler_pic" >&6; }
7995
7996#
7997# Check to make sure the PIC flag actually works.
7998#
7999if test -n "$lt_prog_compiler_pic"; then
8000
8001{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8002$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8003if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8004  $as_echo_n "(cached) " >&6
8005else
8006  lt_cv_prog_compiler_pic_works=no
8007  ac_outfile=conftest.$ac_objext
8008   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8009   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8010   # Insert the option either (1) after the last *FLAGS variable, or
8011   # (2) before a word containing "conftest.", or (3) at the end.
8012   # Note that $ac_compile itself does not contain backslashes and begins
8013   # with a dollar sign (not a hyphen), so the echo should work correctly.
8014   # The option is referenced via a variable to avoid confusing sed.
8015   lt_compile=`echo "$ac_compile" | $SED \
8016   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8017   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8018   -e 's:$: $lt_compiler_flag:'`
8019   (eval echo "\"\$as_me:8019: $lt_compile\"" >&5)
8020   (eval "$lt_compile" 2>conftest.err)
8021   ac_status=$?
8022   cat conftest.err >&5
8023   echo "$as_me:8023: \$? = $ac_status" >&5
8024   if (exit $ac_status) && test -s "$ac_outfile"; then
8025     # The compiler can only warn and ignore the option if not recognized
8026     # So say no if there are warnings other than the usual output.
8027     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8028     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8029     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8030       lt_cv_prog_compiler_pic_works=yes
8031     fi
8032   fi
8033   $rm conftest*
8034
8035fi
8036{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8037$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8038
8039if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8040    case $lt_prog_compiler_pic in
8041     "" | " "*) ;;
8042     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8043     esac
8044else
8045    lt_prog_compiler_pic=
8046     lt_prog_compiler_can_build_shared=no
8047fi
8048
8049fi
8050case $host_os in
8051  # For platforms which do not support PIC, -DPIC is meaningless:
8052  *djgpp*)
8053    lt_prog_compiler_pic=
8054    ;;
8055  *)
8056    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8057    ;;
8058esac
8059
8060#
8061# Check to make sure the static flag actually works.
8062#
8063wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8064{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8065$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8066if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8067  $as_echo_n "(cached) " >&6
8068else
8069  lt_cv_prog_compiler_static_works=no
8070   save_LDFLAGS="$LDFLAGS"
8071   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8072   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8073   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8074     # The linker can only warn and ignore the option if not recognized
8075     # So say no if there are warnings
8076     if test -s conftest.err; then
8077       # Append any errors to the config.log.
8078       cat conftest.err 1>&5
8079       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8080       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8081       if diff conftest.exp conftest.er2 >/dev/null; then
8082         lt_cv_prog_compiler_static_works=yes
8083       fi
8084     else
8085       lt_cv_prog_compiler_static_works=yes
8086     fi
8087   fi
8088   $rm -r conftest*
8089   LDFLAGS="$save_LDFLAGS"
8090
8091fi
8092{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8093$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8094
8095if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8096    :
8097else
8098    lt_prog_compiler_static=
8099fi
8100
8101
8102{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8103$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8104if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8105  $as_echo_n "(cached) " >&6
8106else
8107  lt_cv_prog_compiler_c_o=no
8108   $rm -r conftest 2>/dev/null
8109   mkdir conftest
8110   cd conftest
8111   mkdir out
8112   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8113
8114   lt_compiler_flag="-o out/conftest2.$ac_objext"
8115   # Insert the option either (1) after the last *FLAGS variable, or
8116   # (2) before a word containing "conftest.", or (3) at the end.
8117   # Note that $ac_compile itself does not contain backslashes and begins
8118   # with a dollar sign (not a hyphen), so the echo should work correctly.
8119   lt_compile=`echo "$ac_compile" | $SED \
8120   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8121   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8122   -e 's:$: $lt_compiler_flag:'`
8123   (eval echo "\"\$as_me:8123: $lt_compile\"" >&5)
8124   (eval "$lt_compile" 2>out/conftest.err)
8125   ac_status=$?
8126   cat out/conftest.err >&5
8127   echo "$as_me:8127: \$? = $ac_status" >&5
8128   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8129   then
8130     # The compiler can only warn and ignore the option if not recognized
8131     # So say no if there are warnings
8132     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8133     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8134     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8135       lt_cv_prog_compiler_c_o=yes
8136     fi
8137   fi
8138   chmod u+w . 2>&5
8139   $rm conftest*
8140   # SGI C++ compiler will create directory out/ii_files/ for
8141   # template instantiation
8142   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8143   $rm out/* && rmdir out
8144   cd ..
8145   rmdir conftest
8146   $rm conftest*
8147
8148fi
8149{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8150$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8151
8152
8153hard_links="nottested"
8154if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8155  # do not overwrite the value of need_locks provided by the user
8156  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8157$as_echo_n "checking if we can lock with hard links... " >&6; }
8158  hard_links=yes
8159  $rm conftest*
8160  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8161  touch conftest.a
8162  ln conftest.a conftest.b 2>&5 || hard_links=no
8163  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8164  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8165$as_echo "$hard_links" >&6; }
8166  if test "$hard_links" = no; then
8167    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8168$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8169    need_locks=warn
8170  fi
8171else
8172  need_locks=no
8173fi
8174
8175{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8176$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8177
8178  runpath_var=
8179  allow_undefined_flag=
8180  enable_shared_with_static_runtimes=no
8181  archive_cmds=
8182  archive_expsym_cmds=
8183  old_archive_From_new_cmds=
8184  old_archive_from_expsyms_cmds=
8185  export_dynamic_flag_spec=
8186  whole_archive_flag_spec=
8187  thread_safe_flag_spec=
8188  hardcode_libdir_flag_spec=
8189  hardcode_libdir_flag_spec_ld=
8190  hardcode_libdir_separator=
8191  hardcode_direct=no
8192  hardcode_minus_L=no
8193  hardcode_shlibpath_var=unsupported
8194  link_all_deplibs=unknown
8195  hardcode_automatic=no
8196  module_cmds=
8197  module_expsym_cmds=
8198  always_export_symbols=no
8199  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8200  # include_expsyms should be a list of space-separated symbols to be *always*
8201  # included in the symbol list
8202  include_expsyms=
8203  # exclude_expsyms can be an extended regexp of symbols to exclude
8204  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8205  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8206  # as well as any symbol that contains `d'.
8207  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8208  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8209  # platforms (ab)use it in PIC code, but their linkers get confused if
8210  # the symbol is explicitly referenced.  Since portable code cannot
8211  # rely on this symbol name, it's probably fine to never include it in
8212  # preloaded symbol tables.
8213  # Exclude shared library initialization/finalization symbols.
8214  extract_expsyms_cmds=
8215  # Just being paranoid about ensuring that cc_basename is set.
8216  for cc_temp in $compiler""; do
8217  case $cc_temp in
8218    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8219    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8220    \-*) ;;
8221    *) break;;
8222  esac
8223done
8224cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8225
8226  case $host_os in
8227  cygwin* | mingw* | pw32*)
8228    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8229    # When not using gcc, we currently assume that we are using
8230    # Microsoft Visual C++.
8231    if test "$GCC" != yes; then
8232      with_gnu_ld=no
8233    fi
8234    ;;
8235  interix*)
8236    # we just hope/assume this is gcc and not c89 (= MSVC++)
8237    with_gnu_ld=yes
8238    ;;
8239  openbsd*)
8240    with_gnu_ld=no
8241    ;;
8242  esac
8243
8244  ld_shlibs=yes
8245  if test "$with_gnu_ld" = yes; then
8246    # If archive_cmds runs LD, not CC, wlarc should be empty
8247    wlarc='${wl}'
8248
8249    # Set some defaults for GNU ld with shared library support. These
8250    # are reset later if shared libraries are not supported. Putting them
8251    # here allows them to be overridden if necessary.
8252    runpath_var=LD_RUN_PATH
8253    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8254    export_dynamic_flag_spec='${wl}--export-dynamic'
8255    # ancient GNU ld didn't support --whole-archive et. al.
8256    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8257	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8258      else
8259  	whole_archive_flag_spec=
8260    fi
8261    supports_anon_versioning=no
8262    case `$LD -v 2>/dev/null` in
8263      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8264      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8265      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8266      *\ 2.11.*) ;; # other 2.11 versions
8267      *) supports_anon_versioning=yes ;;
8268    esac
8269
8270    # See if GNU ld supports shared libraries.
8271    case $host_os in
8272    aix[3-9]*)
8273      # On AIX/PPC, the GNU linker is very broken
8274      if test "$host_cpu" != ia64; then
8275	ld_shlibs=no
8276	cat <<EOF 1>&2
8277
8278*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8279*** to be unable to reliably create shared libraries on AIX.
8280*** Therefore, libtool is disabling shared libraries support.  If you
8281*** really care for shared libraries, you may want to modify your PATH
8282*** so that a non-GNU linker is found, and then restart.
8283
8284EOF
8285      fi
8286      ;;
8287
8288    amigaos*)
8289      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)'
8290      hardcode_libdir_flag_spec='-L$libdir'
8291      hardcode_minus_L=yes
8292
8293      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8294      # that the semantics of dynamic libraries on AmigaOS, at least up
8295      # to version 4, is to share data among multiple programs linked
8296      # with the same dynamic library.  Since this doesn't match the
8297      # behavior of shared libraries on other platforms, we can't use
8298      # them.
8299      ld_shlibs=no
8300      ;;
8301
8302    beos*)
8303      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8304	allow_undefined_flag=unsupported
8305	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8306	# support --undefined.  This deserves some investigation.  FIXME
8307	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8308      else
8309	ld_shlibs=no
8310      fi
8311      ;;
8312
8313    cygwin* | mingw* | pw32*)
8314      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8315      # as there is no search path for DLLs.
8316      hardcode_libdir_flag_spec='-L$libdir'
8317      allow_undefined_flag=unsupported
8318      always_export_symbols=no
8319      enable_shared_with_static_runtimes=yes
8320      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8321
8322      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8323        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8324	# If the export-symbols file already is a .def file (1st line
8325	# is EXPORTS), use it as is; otherwise, prepend...
8326	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8327	  cp $export_symbols $output_objdir/$soname.def;
8328	else
8329	  echo EXPORTS > $output_objdir/$soname.def;
8330	  cat $export_symbols >> $output_objdir/$soname.def;
8331	fi~
8332	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8333      else
8334	ld_shlibs=no
8335      fi
8336      ;;
8337
8338    interix[3-9]*)
8339      hardcode_direct=no
8340      hardcode_shlibpath_var=no
8341      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8342      export_dynamic_flag_spec='${wl}-E'
8343      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8344      # Instead, shared libraries are loaded at an image base (0x10000000 by
8345      # default) and relocated if they conflict, which is a slow very memory
8346      # consuming and fragmenting process.  To avoid this, we pick a random,
8347      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8348      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8349      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8350      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'
8351      ;;
8352
8353    gnu* | linux* | k*bsd*-gnu)
8354      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8355	tmp_addflag=
8356	case $cc_basename,$host_cpu in
8357	pgcc*)				# Portland Group C compiler
8358	  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'
8359	  tmp_addflag=' $pic_flag'
8360	  ;;
8361	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8362	  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'
8363	  tmp_addflag=' $pic_flag -Mnomain' ;;
8364	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8365	  tmp_addflag=' -i_dynamic' ;;
8366	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8367	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8368	ifc* | ifort*)			# Intel Fortran compiler
8369	  tmp_addflag=' -nofor_main' ;;
8370	esac
8371	case `$CC -V 2>&1 | sed 5q` in
8372	*Sun\ C*)			# Sun C 5.9
8373	  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'
8374	  tmp_sharedflag='-G' ;;
8375	*Sun\ F*)			# Sun Fortran 8.3
8376	  tmp_sharedflag='-G' ;;
8377	*)
8378	  tmp_sharedflag='-shared' ;;
8379	esac
8380	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8381
8382	if test $supports_anon_versioning = yes; then
8383	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8384  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8385  $echo "local: *; };" >> $output_objdir/$libname.ver~
8386	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8387	fi
8388      else
8389	ld_shlibs=no
8390      fi
8391      ;;
8392
8393    netbsd*)
8394      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8395	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8396	wlarc=
8397      else
8398	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8399	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8400      fi
8401      ;;
8402
8403    solaris*)
8404      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8405	ld_shlibs=no
8406	cat <<EOF 1>&2
8407
8408*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8409*** create shared libraries on Solaris systems.  Therefore, libtool
8410*** is disabling shared libraries support.  We urge you to upgrade GNU
8411*** binutils to release 2.9.1 or newer.  Another option is to modify
8412*** your PATH or compiler configuration so that the native linker is
8413*** used, and then restart.
8414
8415EOF
8416      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8417	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8418	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8419      else
8420	ld_shlibs=no
8421      fi
8422      ;;
8423
8424    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8425      case `$LD -v 2>&1` in
8426        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8427	ld_shlibs=no
8428	cat <<_LT_EOF 1>&2
8429
8430*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8431*** reliably create shared libraries on SCO systems.  Therefore, libtool
8432*** is disabling shared libraries support.  We urge you to upgrade GNU
8433*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8434*** your PATH or compiler configuration so that the native linker is
8435*** used, and then restart.
8436
8437_LT_EOF
8438	;;
8439	*)
8440	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8441	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8442	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8443	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8444	  else
8445	    ld_shlibs=no
8446	  fi
8447	;;
8448      esac
8449      ;;
8450
8451    sunos4*)
8452      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8453      wlarc=
8454      hardcode_direct=yes
8455      hardcode_shlibpath_var=no
8456      ;;
8457
8458    *)
8459      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8460	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8461	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8462      else
8463	ld_shlibs=no
8464      fi
8465      ;;
8466    esac
8467
8468    if test "$ld_shlibs" = no; then
8469      runpath_var=
8470      hardcode_libdir_flag_spec=
8471      export_dynamic_flag_spec=
8472      whole_archive_flag_spec=
8473    fi
8474  else
8475    # PORTME fill in a description of your system's linker (not GNU ld)
8476    case $host_os in
8477    aix3*)
8478      allow_undefined_flag=unsupported
8479      always_export_symbols=yes
8480      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'
8481      # Note: this linker hardcodes the directories in LIBPATH if there
8482      # are no directories specified by -L.
8483      hardcode_minus_L=yes
8484      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8485	# Neither direct hardcoding nor static linking is supported with a
8486	# broken collect2.
8487	hardcode_direct=unsupported
8488      fi
8489      ;;
8490
8491    aix[4-9]*)
8492      if test "$host_cpu" = ia64; then
8493	# On IA64, the linker does run time linking by default, so we don't
8494	# have to do anything special.
8495	aix_use_runtimelinking=no
8496	exp_sym_flag='-Bexport'
8497	no_entry_flag=""
8498      else
8499	# If we're using GNU nm, then we don't want the "-C" option.
8500	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8501	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8502	  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'
8503	else
8504	  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'
8505	fi
8506	aix_use_runtimelinking=no
8507
8508	# Test if we are trying to use run time linking or normal
8509	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8510	# need to do runtime linking.
8511	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8512	  for ld_flag in $LDFLAGS; do
8513  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8514  	    aix_use_runtimelinking=yes
8515  	    break
8516  	  fi
8517	  done
8518	  ;;
8519	esac
8520
8521	exp_sym_flag='-bexport'
8522	no_entry_flag='-bnoentry'
8523      fi
8524
8525      # When large executables or shared objects are built, AIX ld can
8526      # have problems creating the table of contents.  If linking a library
8527      # or program results in "error TOC overflow" add -mminimal-toc to
8528      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8529      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8530
8531      archive_cmds=''
8532      hardcode_direct=yes
8533      hardcode_libdir_separator=':'
8534      link_all_deplibs=yes
8535
8536      if test "$GCC" = yes; then
8537	case $host_os in aix4.[012]|aix4.[012].*)
8538	# We only want to do this on AIX 4.2 and lower, the check
8539	# below for broken collect2 doesn't work under 4.3+
8540	  collect2name=`${CC} -print-prog-name=collect2`
8541	  if test -f "$collect2name" && \
8542  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8543	  then
8544  	  # We have reworked collect2
8545  	  :
8546	  else
8547  	  # We have old collect2
8548  	  hardcode_direct=unsupported
8549  	  # It fails to find uninstalled libraries when the uninstalled
8550  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8551  	  # to unsupported forces relinking
8552  	  hardcode_minus_L=yes
8553  	  hardcode_libdir_flag_spec='-L$libdir'
8554  	  hardcode_libdir_separator=
8555	  fi
8556	  ;;
8557	esac
8558	shared_flag='-shared'
8559	if test "$aix_use_runtimelinking" = yes; then
8560	  shared_flag="$shared_flag "'${wl}-G'
8561	fi
8562      else
8563	# not using gcc
8564	if test "$host_cpu" = ia64; then
8565  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8566  	# chokes on -Wl,-G. The following line is correct:
8567	  shared_flag='-G'
8568	else
8569	  if test "$aix_use_runtimelinking" = yes; then
8570	    shared_flag='${wl}-G'
8571	  else
8572	    shared_flag='${wl}-bM:SRE'
8573	  fi
8574	fi
8575      fi
8576
8577      # It seems that -bexpall does not export symbols beginning with
8578      # underscore (_), so it is better to generate a list of symbols to export.
8579      always_export_symbols=yes
8580      if test "$aix_use_runtimelinking" = yes; then
8581	# Warning - without using the other runtime loading flags (-brtl),
8582	# -berok will link without error, but may produce a broken library.
8583	allow_undefined_flag='-berok'
8584       # Determine the default libpath from the value encoded in an empty executable.
8585       cat >conftest.$ac_ext <<_ACEOF
8586/* confdefs.h.  */
8587_ACEOF
8588cat confdefs.h >>conftest.$ac_ext
8589cat >>conftest.$ac_ext <<_ACEOF
8590/* end confdefs.h.  */
8591
8592int
8593main ()
8594{
8595
8596  ;
8597  return 0;
8598}
8599_ACEOF
8600rm -f conftest.$ac_objext conftest$ac_exeext
8601if { (ac_try="$ac_link"
8602case "(($ac_try" in
8603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604  *) ac_try_echo=$ac_try;;
8605esac
8606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8607$as_echo "$ac_try_echo") >&5
8608  (eval "$ac_link") 2>conftest.er1
8609  ac_status=$?
8610  grep -v '^ *+' conftest.er1 >conftest.err
8611  rm -f conftest.er1
8612  cat conftest.err >&5
8613  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614  (exit $ac_status); } && {
8615	 test -z "$ac_c_werror_flag" ||
8616	 test ! -s conftest.err
8617       } && test -s conftest$ac_exeext && {
8618	 test "$cross_compiling" = yes ||
8619	 $as_test_x conftest$ac_exeext
8620       }; then
8621
8622lt_aix_libpath_sed='
8623    /Import File Strings/,/^$/ {
8624	/^0/ {
8625	    s/^0  *\(.*\)$/\1/
8626	    p
8627	}
8628    }'
8629aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8630# Check for a 64-bit object if we didn't find anything.
8631if test -z "$aix_libpath"; then
8632  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8633fi
8634else
8635  $as_echo "$as_me: failed program was:" >&5
8636sed 's/^/| /' conftest.$ac_ext >&5
8637
8638
8639fi
8640
8641rm -rf conftest.dSYM
8642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8643      conftest$ac_exeext conftest.$ac_ext
8644if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8645
8646       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8647	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"
8648       else
8649	if test "$host_cpu" = ia64; then
8650	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8651	  allow_undefined_flag="-z nodefs"
8652	  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"
8653	else
8654	 # Determine the default libpath from the value encoded in an empty executable.
8655	 cat >conftest.$ac_ext <<_ACEOF
8656/* confdefs.h.  */
8657_ACEOF
8658cat confdefs.h >>conftest.$ac_ext
8659cat >>conftest.$ac_ext <<_ACEOF
8660/* end confdefs.h.  */
8661
8662int
8663main ()
8664{
8665
8666  ;
8667  return 0;
8668}
8669_ACEOF
8670rm -f conftest.$ac_objext conftest$ac_exeext
8671if { (ac_try="$ac_link"
8672case "(($ac_try" in
8673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674  *) ac_try_echo=$ac_try;;
8675esac
8676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8677$as_echo "$ac_try_echo") >&5
8678  (eval "$ac_link") 2>conftest.er1
8679  ac_status=$?
8680  grep -v '^ *+' conftest.er1 >conftest.err
8681  rm -f conftest.er1
8682  cat conftest.err >&5
8683  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684  (exit $ac_status); } && {
8685	 test -z "$ac_c_werror_flag" ||
8686	 test ! -s conftest.err
8687       } && test -s conftest$ac_exeext && {
8688	 test "$cross_compiling" = yes ||
8689	 $as_test_x conftest$ac_exeext
8690       }; then
8691
8692lt_aix_libpath_sed='
8693    /Import File Strings/,/^$/ {
8694	/^0/ {
8695	    s/^0  *\(.*\)$/\1/
8696	    p
8697	}
8698    }'
8699aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8700# Check for a 64-bit object if we didn't find anything.
8701if test -z "$aix_libpath"; then
8702  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8703fi
8704else
8705  $as_echo "$as_me: failed program was:" >&5
8706sed 's/^/| /' conftest.$ac_ext >&5
8707
8708
8709fi
8710
8711rm -rf conftest.dSYM
8712rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8713      conftest$ac_exeext conftest.$ac_ext
8714if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8715
8716	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8717	  # Warning - without using the other run time loading flags,
8718	  # -berok will link without error, but may produce a broken library.
8719	  no_undefined_flag=' ${wl}-bernotok'
8720	  allow_undefined_flag=' ${wl}-berok'
8721	  # Exported symbols can be pulled into shared objects from archives
8722	  whole_archive_flag_spec='$convenience'
8723	  archive_cmds_need_lc=yes
8724	  # This is similar to how AIX traditionally builds its shared libraries.
8725	  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'
8726	fi
8727      fi
8728      ;;
8729
8730    amigaos*)
8731      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)'
8732      hardcode_libdir_flag_spec='-L$libdir'
8733      hardcode_minus_L=yes
8734      # see comment about different semantics on the GNU ld section
8735      ld_shlibs=no
8736      ;;
8737
8738    bsdi[45]*)
8739      export_dynamic_flag_spec=-rdynamic
8740      ;;
8741
8742    cygwin* | mingw* | pw32*)
8743      # When not using gcc, we currently assume that we are using
8744      # Microsoft Visual C++.
8745      # hardcode_libdir_flag_spec is actually meaningless, as there is
8746      # no search path for DLLs.
8747      hardcode_libdir_flag_spec=' '
8748      allow_undefined_flag=unsupported
8749      # Tell ltmain to make .lib files, not .a files.
8750      libext=lib
8751      # Tell ltmain to make .dll files, not .so files.
8752      shrext_cmds=".dll"
8753      # FIXME: Setting linknames here is a bad hack.
8754      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8755      # The linker will automatically build a .lib file if we build a DLL.
8756      old_archive_From_new_cmds='true'
8757      # FIXME: Should let the user specify the lib program.
8758      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8759      fix_srcfile_path='`cygpath -w "$srcfile"`'
8760      enable_shared_with_static_runtimes=yes
8761      ;;
8762
8763    darwin* | rhapsody*)
8764      case $host_os in
8765        rhapsody* | darwin1.[012])
8766         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8767         ;;
8768       *) # Darwin 1.3 on
8769         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8770           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8771         else
8772           case ${MACOSX_DEPLOYMENT_TARGET} in
8773             10.[012])
8774               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8775               ;;
8776             10.*)
8777               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8778               ;;
8779           esac
8780         fi
8781         ;;
8782      esac
8783      archive_cmds_need_lc=no
8784      hardcode_direct=no
8785      hardcode_automatic=yes
8786      hardcode_shlibpath_var=unsupported
8787      whole_archive_flag_spec=''
8788      link_all_deplibs=yes
8789    if test "$GCC" = yes ; then
8790    	output_verbose_link_cmd='echo'
8791        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8792        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8793        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}"
8794        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}"
8795    else
8796      case $cc_basename in
8797        xlc*)
8798         output_verbose_link_cmd='echo'
8799         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8800         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8801          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8802         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}'
8803          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}'
8804          ;;
8805       *)
8806         ld_shlibs=no
8807          ;;
8808      esac
8809    fi
8810      ;;
8811
8812    dgux*)
8813      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8814      hardcode_libdir_flag_spec='-L$libdir'
8815      hardcode_shlibpath_var=no
8816      ;;
8817
8818    freebsd1*)
8819      ld_shlibs=no
8820      ;;
8821
8822    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8823    # support.  Future versions do this automatically, but an explicit c++rt0.o
8824    # does not break anything, and helps significantly (at the cost of a little
8825    # extra space).
8826    freebsd2.2*)
8827      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8828      hardcode_libdir_flag_spec='-R$libdir'
8829      hardcode_direct=yes
8830      hardcode_shlibpath_var=no
8831      ;;
8832
8833    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8834    freebsd2*)
8835      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8836      hardcode_direct=yes
8837      hardcode_minus_L=yes
8838      hardcode_shlibpath_var=no
8839      ;;
8840
8841    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8842    freebsd* | dragonfly*)
8843      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8844      hardcode_libdir_flag_spec='-R$libdir'
8845      hardcode_direct=yes
8846      hardcode_shlibpath_var=no
8847      ;;
8848
8849    hpux9*)
8850      if test "$GCC" = yes; then
8851	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'
8852      else
8853	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'
8854      fi
8855      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8856      hardcode_libdir_separator=:
8857      hardcode_direct=yes
8858
8859      # hardcode_minus_L: Not really in the search PATH,
8860      # but as the default location of the library.
8861      hardcode_minus_L=yes
8862      export_dynamic_flag_spec='${wl}-E'
8863      ;;
8864
8865    hpux10*)
8866      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8867	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8868      else
8869	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8870      fi
8871      if test "$with_gnu_ld" = no; then
8872	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8873	hardcode_libdir_separator=:
8874
8875	hardcode_direct=yes
8876	export_dynamic_flag_spec='${wl}-E'
8877
8878	# hardcode_minus_L: Not really in the search PATH,
8879	# but as the default location of the library.
8880	hardcode_minus_L=yes
8881      fi
8882      ;;
8883
8884    hpux11*)
8885      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8886	case $host_cpu in
8887	hppa*64*)
8888	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8889	  ;;
8890	ia64*)
8891	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8892	  ;;
8893	*)
8894	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8895	  ;;
8896	esac
8897      else
8898	case $host_cpu in
8899	hppa*64*)
8900	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8901	  ;;
8902	ia64*)
8903	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8904	  ;;
8905	*)
8906	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8907	  ;;
8908	esac
8909      fi
8910      if test "$with_gnu_ld" = no; then
8911	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8912	hardcode_libdir_separator=:
8913
8914	case $host_cpu in
8915	hppa*64*|ia64*)
8916	  hardcode_libdir_flag_spec_ld='+b $libdir'
8917	  hardcode_direct=no
8918	  hardcode_shlibpath_var=no
8919	  ;;
8920	*)
8921	  hardcode_direct=yes
8922	  export_dynamic_flag_spec='${wl}-E'
8923
8924	  # hardcode_minus_L: Not really in the search PATH,
8925	  # but as the default location of the library.
8926	  hardcode_minus_L=yes
8927	  ;;
8928	esac
8929      fi
8930      ;;
8931
8932    irix5* | irix6* | nonstopux*)
8933      if test "$GCC" = yes; then
8934	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'
8935      else
8936	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'
8937	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8938      fi
8939      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8940      hardcode_libdir_separator=:
8941      link_all_deplibs=yes
8942      ;;
8943
8944    netbsd*)
8945      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8946	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8947      else
8948	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8949      fi
8950      hardcode_libdir_flag_spec='-R$libdir'
8951      hardcode_direct=yes
8952      hardcode_shlibpath_var=no
8953      ;;
8954
8955    newsos6)
8956      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8957      hardcode_direct=yes
8958      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8959      hardcode_libdir_separator=:
8960      hardcode_shlibpath_var=no
8961      ;;
8962
8963    openbsd*)
8964      if test -f /usr/libexec/ld.so; then
8965	hardcode_direct=yes
8966	hardcode_shlibpath_var=no
8967	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8968	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8969	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8970	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8971	  export_dynamic_flag_spec='${wl}-E'
8972	else
8973	  case $host_os in
8974	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8975	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8976	     hardcode_libdir_flag_spec='-R$libdir'
8977	     ;;
8978	   *)
8979	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8980	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8981	     ;;
8982	  esac
8983        fi
8984      else
8985	ld_shlibs=no
8986      fi
8987      ;;
8988
8989    os2*)
8990      hardcode_libdir_flag_spec='-L$libdir'
8991      hardcode_minus_L=yes
8992      allow_undefined_flag=unsupported
8993      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'
8994      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8995      ;;
8996
8997    osf3*)
8998      if test "$GCC" = yes; then
8999	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9000	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'
9001      else
9002	allow_undefined_flag=' -expect_unresolved \*'
9003	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'
9004      fi
9005      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9006      hardcode_libdir_separator=:
9007      ;;
9008
9009    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9010      if test "$GCC" = yes; then
9011	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9012	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'
9013	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9014      else
9015	allow_undefined_flag=' -expect_unresolved \*'
9016	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'
9017	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9018	$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'
9019
9020	# Both c and cxx compiler support -rpath directly
9021	hardcode_libdir_flag_spec='-rpath $libdir'
9022      fi
9023      hardcode_libdir_separator=:
9024      ;;
9025
9026    solaris*)
9027      no_undefined_flag=' -z text'
9028      if test "$GCC" = yes; then
9029	wlarc='${wl}'
9030	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9031	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9032	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9033      else
9034	wlarc=''
9035	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9036	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9037  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9038      fi
9039      hardcode_libdir_flag_spec='-R$libdir'
9040      hardcode_shlibpath_var=no
9041      case $host_os in
9042      solaris2.[0-5] | solaris2.[0-5].*) ;;
9043      *)
9044	# The compiler driver will combine and reorder linker options,
9045	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9046	# but is careful enough not to reorder.
9047 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9048	if test "$GCC" = yes; then
9049	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9050	else
9051	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9052	fi
9053	;;
9054      esac
9055      link_all_deplibs=yes
9056      ;;
9057
9058    sunos4*)
9059      if test "x$host_vendor" = xsequent; then
9060	# Use $CC to link under sequent, because it throws in some extra .o
9061	# files that make .init and .fini sections work.
9062	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9063      else
9064	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9065      fi
9066      hardcode_libdir_flag_spec='-L$libdir'
9067      hardcode_direct=yes
9068      hardcode_minus_L=yes
9069      hardcode_shlibpath_var=no
9070      ;;
9071
9072    sysv4)
9073      case $host_vendor in
9074	sni)
9075	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9076	  hardcode_direct=yes # is this really true???
9077	;;
9078	siemens)
9079	  ## LD is ld it makes a PLAMLIB
9080	  ## CC just makes a GrossModule.
9081	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9082	  reload_cmds='$CC -r -o $output$reload_objs'
9083	  hardcode_direct=no
9084        ;;
9085	motorola)
9086	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9087	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9088	;;
9089      esac
9090      runpath_var='LD_RUN_PATH'
9091      hardcode_shlibpath_var=no
9092      ;;
9093
9094    sysv4.3*)
9095      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9096      hardcode_shlibpath_var=no
9097      export_dynamic_flag_spec='-Bexport'
9098      ;;
9099
9100    sysv4*MP*)
9101      if test -d /usr/nec; then
9102	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9103	hardcode_shlibpath_var=no
9104	runpath_var=LD_RUN_PATH
9105	hardcode_runpath_var=yes
9106	ld_shlibs=yes
9107      fi
9108      ;;
9109
9110    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9111      no_undefined_flag='${wl}-z,text'
9112      archive_cmds_need_lc=no
9113      hardcode_shlibpath_var=no
9114      runpath_var='LD_RUN_PATH'
9115
9116      if test "$GCC" = yes; then
9117	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9118	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9119      else
9120	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9121	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9122      fi
9123      ;;
9124
9125    sysv5* | sco3.2v5* | sco5v6*)
9126      # Note: We can NOT use -z defs as we might desire, because we do not
9127      # link with -lc, and that would cause any symbols used from libc to
9128      # always be unresolved, which means just about no library would
9129      # ever link correctly.  If we're not using GNU ld we use -z text
9130      # though, which does catch some bad symbols but isn't as heavy-handed
9131      # as -z defs.
9132      no_undefined_flag='${wl}-z,text'
9133      allow_undefined_flag='${wl}-z,nodefs'
9134      archive_cmds_need_lc=no
9135      hardcode_shlibpath_var=no
9136      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9137      hardcode_libdir_separator=':'
9138      link_all_deplibs=yes
9139      export_dynamic_flag_spec='${wl}-Bexport'
9140      runpath_var='LD_RUN_PATH'
9141
9142      if test "$GCC" = yes; then
9143	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9144	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9145      else
9146	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9147	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9148      fi
9149      ;;
9150
9151    uts4*)
9152      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9153      hardcode_libdir_flag_spec='-L$libdir'
9154      hardcode_shlibpath_var=no
9155      ;;
9156
9157    *)
9158      ld_shlibs=no
9159      ;;
9160    esac
9161  fi
9162
9163{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9164$as_echo "$ld_shlibs" >&6; }
9165test "$ld_shlibs" = no && can_build_shared=no
9166
9167#
9168# Do we need to explicitly link libc?
9169#
9170case "x$archive_cmds_need_lc" in
9171x|xyes)
9172  # Assume -lc should be added
9173  archive_cmds_need_lc=yes
9174
9175  if test "$enable_shared" = yes && test "$GCC" = yes; then
9176    case $archive_cmds in
9177    *'~'*)
9178      # FIXME: we may have to deal with multi-command sequences.
9179      ;;
9180    '$CC '*)
9181      # Test whether the compiler implicitly links with -lc since on some
9182      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9183      # to ld, don't add -lc before -lgcc.
9184      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9185$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9186      $rm conftest*
9187      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9188
9189      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9190  (eval $ac_compile) 2>&5
9191  ac_status=$?
9192  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193  (exit $ac_status); } 2>conftest.err; then
9194        soname=conftest
9195        lib=conftest
9196        libobjs=conftest.$ac_objext
9197        deplibs=
9198        wl=$lt_prog_compiler_wl
9199	pic_flag=$lt_prog_compiler_pic
9200        compiler_flags=-v
9201        linker_flags=-v
9202        verstring=
9203        output_objdir=.
9204        libname=conftest
9205        lt_save_allow_undefined_flag=$allow_undefined_flag
9206        allow_undefined_flag=
9207        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9208  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9209  ac_status=$?
9210  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211  (exit $ac_status); }
9212        then
9213	  archive_cmds_need_lc=no
9214        else
9215	  archive_cmds_need_lc=yes
9216        fi
9217        allow_undefined_flag=$lt_save_allow_undefined_flag
9218      else
9219        cat conftest.err 1>&5
9220      fi
9221      $rm conftest*
9222      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9223$as_echo "$archive_cmds_need_lc" >&6; }
9224      ;;
9225    esac
9226  fi
9227  ;;
9228esac
9229
9230{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9231$as_echo_n "checking dynamic linker characteristics... " >&6; }
9232library_names_spec=
9233libname_spec='lib$name'
9234soname_spec=
9235shrext_cmds=".so"
9236postinstall_cmds=
9237postuninstall_cmds=
9238finish_cmds=
9239finish_eval=
9240shlibpath_var=
9241shlibpath_overrides_runpath=unknown
9242version_type=none
9243dynamic_linker="$host_os ld.so"
9244sys_lib_dlsearch_path_spec="/lib /usr/lib"
9245
9246if test "$GCC" = yes; then
9247  case $host_os in
9248    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9249    *) lt_awk_arg="/^libraries:/" ;;
9250  esac
9251  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9252  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9253    # if the path contains ";" then we assume it to be the separator
9254    # otherwise default to the standard path separator (i.e. ":") - it is
9255    # assumed that no part of a normal pathname contains ";" but that should
9256    # okay in the real world where ";" in dirpaths is itself problematic.
9257    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9258  else
9259    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9260  fi
9261  # Ok, now we have the path, separated by spaces, we can step through it
9262  # and add multilib dir if necessary.
9263  lt_tmp_lt_search_path_spec=
9264  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9265  for lt_sys_path in $lt_search_path_spec; do
9266    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9267      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9268    else
9269      test -d "$lt_sys_path" && \
9270	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9271    fi
9272  done
9273  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9274BEGIN {RS=" "; FS="/|\n";} {
9275  lt_foo="";
9276  lt_count=0;
9277  for (lt_i = NF; lt_i > 0; lt_i--) {
9278    if ($lt_i != "" && $lt_i != ".") {
9279      if ($lt_i == "..") {
9280        lt_count++;
9281      } else {
9282        if (lt_count == 0) {
9283          lt_foo="/" $lt_i lt_foo;
9284        } else {
9285          lt_count--;
9286        }
9287      }
9288    }
9289  }
9290  if (lt_foo != "") { lt_freq[lt_foo]++; }
9291  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9292}'`
9293  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9294else
9295  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9296fi
9297need_lib_prefix=unknown
9298hardcode_into_libs=no
9299
9300# when you set need_version to no, make sure it does not cause -set_version
9301# flags to be left without arguments
9302need_version=unknown
9303
9304case $host_os in
9305aix3*)
9306  version_type=linux
9307  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9308  shlibpath_var=LIBPATH
9309
9310  # AIX 3 has no versioning support, so we append a major version to the name.
9311  soname_spec='${libname}${release}${shared_ext}$major'
9312  ;;
9313
9314aix[4-9]*)
9315  version_type=linux
9316  need_lib_prefix=no
9317  need_version=no
9318  hardcode_into_libs=yes
9319  if test "$host_cpu" = ia64; then
9320    # AIX 5 supports IA64
9321    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9322    shlibpath_var=LD_LIBRARY_PATH
9323  else
9324    # With GCC up to 2.95.x, collect2 would create an import file
9325    # for dependence libraries.  The import file would start with
9326    # the line `#! .'.  This would cause the generated library to
9327    # depend on `.', always an invalid library.  This was fixed in
9328    # development snapshots of GCC prior to 3.0.
9329    case $host_os in
9330      aix4 | aix4.[01] | aix4.[01].*)
9331      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9332	   echo ' yes '
9333	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9334	:
9335      else
9336	can_build_shared=no
9337      fi
9338      ;;
9339    esac
9340    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9341    # soname into executable. Probably we can add versioning support to
9342    # collect2, so additional links can be useful in future.
9343    if test "$aix_use_runtimelinking" = yes; then
9344      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9345      # instead of lib<name>.a to let people know that these are not
9346      # typical AIX shared libraries.
9347      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348    else
9349      # We preserve .a as extension for shared libraries through AIX4.2
9350      # and later when we are not doing run time linking.
9351      library_names_spec='${libname}${release}.a $libname.a'
9352      soname_spec='${libname}${release}${shared_ext}$major'
9353    fi
9354    shlibpath_var=LIBPATH
9355  fi
9356  ;;
9357
9358amigaos*)
9359  library_names_spec='$libname.ixlibrary $libname.a'
9360  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9361  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'
9362  ;;
9363
9364beos*)
9365  library_names_spec='${libname}${shared_ext}'
9366  dynamic_linker="$host_os ld.so"
9367  shlibpath_var=LIBRARY_PATH
9368  ;;
9369
9370bsdi[45]*)
9371  version_type=linux
9372  need_version=no
9373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374  soname_spec='${libname}${release}${shared_ext}$major'
9375  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9376  shlibpath_var=LD_LIBRARY_PATH
9377  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9378  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9379  # the default ld.so.conf also contains /usr/contrib/lib and
9380  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9381  # libtool to hard-code these into programs
9382  ;;
9383
9384cygwin* | mingw* | pw32*)
9385  version_type=windows
9386  shrext_cmds=".dll"
9387  need_version=no
9388  need_lib_prefix=no
9389
9390  case $GCC,$host_os in
9391  yes,cygwin* | yes,mingw* | yes,pw32*)
9392    library_names_spec='$libname.dll.a'
9393    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9394    postinstall_cmds='base_file=`basename \${file}`~
9395      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9396      dldir=$destdir/`dirname \$dlpath`~
9397      test -d \$dldir || mkdir -p \$dldir~
9398      $install_prog $dir/$dlname \$dldir/$dlname~
9399      chmod a+x \$dldir/$dlname'
9400    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9401      dlpath=$dir/\$dldll~
9402       $rm \$dlpath'
9403    shlibpath_overrides_runpath=yes
9404
9405    case $host_os in
9406    cygwin*)
9407      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9408      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9409      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9410      ;;
9411    mingw*)
9412      # MinGW DLLs use traditional 'lib' prefix
9413      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9414      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9415      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9416        # It is most probably a Windows format PATH printed by
9417        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9418        # path with ; separators, and with drive letters. We can handle the
9419        # drive letters (cygwin fileutils understands them), so leave them,
9420        # especially as we might pass files found there to a mingw objdump,
9421        # which wouldn't understand a cygwinified path. Ahh.
9422        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9423      else
9424        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9425      fi
9426      ;;
9427    pw32*)
9428      # pw32 DLLs use 'pw' prefix rather than 'lib'
9429      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9430      ;;
9431    esac
9432    ;;
9433
9434  *)
9435    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9436    ;;
9437  esac
9438  dynamic_linker='Win32 ld.exe'
9439  # FIXME: first we should search . and the directory the executable is in
9440  shlibpath_var=PATH
9441  ;;
9442
9443darwin* | rhapsody*)
9444  dynamic_linker="$host_os dyld"
9445  version_type=darwin
9446  need_lib_prefix=no
9447  need_version=no
9448  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9449  soname_spec='${libname}${release}${major}$shared_ext'
9450  shlibpath_overrides_runpath=yes
9451  shlibpath_var=DYLD_LIBRARY_PATH
9452  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9453
9454  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9455  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9456  ;;
9457
9458dgux*)
9459  version_type=linux
9460  need_lib_prefix=no
9461  need_version=no
9462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9463  soname_spec='${libname}${release}${shared_ext}$major'
9464  shlibpath_var=LD_LIBRARY_PATH
9465  ;;
9466
9467freebsd1*)
9468  dynamic_linker=no
9469  ;;
9470
9471freebsd* | dragonfly*)
9472  # DragonFly does not have aout.  When/if they implement a new
9473  # versioning mechanism, adjust this.
9474  if test -x /usr/bin/objformat; then
9475    objformat=`/usr/bin/objformat`
9476  else
9477    case $host_os in
9478    freebsd[123]*) objformat=aout ;;
9479    *) objformat=elf ;;
9480    esac
9481  fi
9482  version_type=freebsd-$objformat
9483  case $version_type in
9484    freebsd-elf*)
9485      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9486      need_version=no
9487      need_lib_prefix=no
9488      ;;
9489    freebsd-*)
9490      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9491      need_version=yes
9492      ;;
9493  esac
9494  shlibpath_var=LD_LIBRARY_PATH
9495  case $host_os in
9496  freebsd2*)
9497    shlibpath_overrides_runpath=yes
9498    ;;
9499  freebsd3.[01]* | freebsdelf3.[01]*)
9500    shlibpath_overrides_runpath=yes
9501    hardcode_into_libs=yes
9502    ;;
9503  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9504  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9505    shlibpath_overrides_runpath=no
9506    hardcode_into_libs=yes
9507    ;;
9508  *) # from 4.6 on, and DragonFly
9509    shlibpath_overrides_runpath=yes
9510    hardcode_into_libs=yes
9511    ;;
9512  esac
9513  ;;
9514
9515gnu*)
9516  version_type=linux
9517  need_lib_prefix=no
9518  need_version=no
9519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9520  soname_spec='${libname}${release}${shared_ext}$major'
9521  shlibpath_var=LD_LIBRARY_PATH
9522  hardcode_into_libs=yes
9523  ;;
9524
9525hpux9* | hpux10* | hpux11*)
9526  # Give a soname corresponding to the major version so that dld.sl refuses to
9527  # link against other versions.
9528  version_type=sunos
9529  need_lib_prefix=no
9530  need_version=no
9531  case $host_cpu in
9532  ia64*)
9533    shrext_cmds='.so'
9534    hardcode_into_libs=yes
9535    dynamic_linker="$host_os dld.so"
9536    shlibpath_var=LD_LIBRARY_PATH
9537    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9538    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9539    soname_spec='${libname}${release}${shared_ext}$major'
9540    if test "X$HPUX_IA64_MODE" = X32; then
9541      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9542    else
9543      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9544    fi
9545    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9546    ;;
9547   hppa*64*)
9548     shrext_cmds='.sl'
9549     hardcode_into_libs=yes
9550     dynamic_linker="$host_os dld.sl"
9551     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9552     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9553     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9554     soname_spec='${libname}${release}${shared_ext}$major'
9555     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9556     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9557     ;;
9558   *)
9559    shrext_cmds='.sl'
9560    dynamic_linker="$host_os dld.sl"
9561    shlibpath_var=SHLIB_PATH
9562    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9563    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9564    soname_spec='${libname}${release}${shared_ext}$major'
9565    ;;
9566  esac
9567  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9568  postinstall_cmds='chmod 555 $lib'
9569  ;;
9570
9571interix[3-9]*)
9572  version_type=linux
9573  need_lib_prefix=no
9574  need_version=no
9575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9576  soname_spec='${libname}${release}${shared_ext}$major'
9577  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9578  shlibpath_var=LD_LIBRARY_PATH
9579  shlibpath_overrides_runpath=no
9580  hardcode_into_libs=yes
9581  ;;
9582
9583irix5* | irix6* | nonstopux*)
9584  case $host_os in
9585    nonstopux*) version_type=nonstopux ;;
9586    *)
9587	if test "$lt_cv_prog_gnu_ld" = yes; then
9588		version_type=linux
9589	else
9590		version_type=irix
9591	fi ;;
9592  esac
9593  need_lib_prefix=no
9594  need_version=no
9595  soname_spec='${libname}${release}${shared_ext}$major'
9596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9597  case $host_os in
9598  irix5* | nonstopux*)
9599    libsuff= shlibsuff=
9600    ;;
9601  *)
9602    case $LD in # libtool.m4 will add one of these switches to LD
9603    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9604      libsuff= shlibsuff= libmagic=32-bit;;
9605    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9606      libsuff=32 shlibsuff=N32 libmagic=N32;;
9607    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9608      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9609    *) libsuff= shlibsuff= libmagic=never-match;;
9610    esac
9611    ;;
9612  esac
9613  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9614  shlibpath_overrides_runpath=no
9615  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9616  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9617  hardcode_into_libs=yes
9618  ;;
9619
9620# No shared lib support for Linux oldld, aout, or coff.
9621linux*oldld* | linux*aout* | linux*coff*)
9622  dynamic_linker=no
9623  ;;
9624
9625# This must be Linux ELF.
9626linux* | k*bsd*-gnu)
9627  version_type=linux
9628  need_lib_prefix=no
9629  need_version=no
9630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9631  soname_spec='${libname}${release}${shared_ext}$major'
9632  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9633  shlibpath_var=LD_LIBRARY_PATH
9634  shlibpath_overrides_runpath=no
9635  # This implies no fast_install, which is unacceptable.
9636  # Some rework will be needed to allow for fast_install
9637  # before this can be enabled.
9638  hardcode_into_libs=yes
9639  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9640  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9641
9642  # Append ld.so.conf contents to the search path
9643  if test -f /etc/ld.so.conf; then
9644    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' ' '`
9645    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9646  fi
9647
9648  # We used to test for /lib/ld.so.1 and disable shared libraries on
9649  # powerpc, because MkLinux only supported shared libraries with the
9650  # GNU dynamic linker.  Since this was broken with cross compilers,
9651  # most powerpc-linux boxes support dynamic linking these days and
9652  # people can always --disable-shared, the test was removed, and we
9653  # assume the GNU/Linux dynamic linker is in use.
9654  dynamic_linker='GNU/Linux ld.so'
9655  ;;
9656
9657netbsd*)
9658  version_type=sunos
9659  need_lib_prefix=no
9660  need_version=no
9661  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9662    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9663    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9664    dynamic_linker='NetBSD (a.out) ld.so'
9665  else
9666    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9667    soname_spec='${libname}${release}${shared_ext}$major'
9668    dynamic_linker='NetBSD ld.elf_so'
9669  fi
9670  shlibpath_var=LD_LIBRARY_PATH
9671  shlibpath_overrides_runpath=yes
9672  hardcode_into_libs=yes
9673  ;;
9674
9675newsos6)
9676  version_type=linux
9677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678  shlibpath_var=LD_LIBRARY_PATH
9679  shlibpath_overrides_runpath=yes
9680  ;;
9681
9682nto-qnx*)
9683  version_type=linux
9684  need_lib_prefix=no
9685  need_version=no
9686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687  soname_spec='${libname}${release}${shared_ext}$major'
9688  shlibpath_var=LD_LIBRARY_PATH
9689  shlibpath_overrides_runpath=yes
9690  ;;
9691
9692openbsd*)
9693  version_type=sunos
9694  sys_lib_dlsearch_path_spec="/usr/lib"
9695  need_lib_prefix=no
9696  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9697  case $host_os in
9698    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9699    *)                         need_version=no  ;;
9700  esac
9701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9702  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9703  shlibpath_var=LD_LIBRARY_PATH
9704  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9705    case $host_os in
9706      openbsd2.[89] | openbsd2.[89].*)
9707	shlibpath_overrides_runpath=no
9708	;;
9709      *)
9710	shlibpath_overrides_runpath=yes
9711	;;
9712      esac
9713  else
9714    shlibpath_overrides_runpath=yes
9715  fi
9716  ;;
9717
9718os2*)
9719  libname_spec='$name'
9720  shrext_cmds=".dll"
9721  need_lib_prefix=no
9722  library_names_spec='$libname${shared_ext} $libname.a'
9723  dynamic_linker='OS/2 ld.exe'
9724  shlibpath_var=LIBPATH
9725  ;;
9726
9727osf3* | osf4* | osf5*)
9728  version_type=osf
9729  need_lib_prefix=no
9730  need_version=no
9731  soname_spec='${libname}${release}${shared_ext}$major'
9732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9733  shlibpath_var=LD_LIBRARY_PATH
9734  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9735  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9736  ;;
9737
9738rdos*)
9739  dynamic_linker=no
9740  ;;
9741
9742solaris*)
9743  version_type=linux
9744  need_lib_prefix=no
9745  need_version=no
9746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9747  soname_spec='${libname}${release}${shared_ext}$major'
9748  shlibpath_var=LD_LIBRARY_PATH
9749  shlibpath_overrides_runpath=yes
9750  hardcode_into_libs=yes
9751  # ldd complains unless libraries are executable
9752  postinstall_cmds='chmod +x $lib'
9753  ;;
9754
9755sunos4*)
9756  version_type=sunos
9757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9758  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9759  shlibpath_var=LD_LIBRARY_PATH
9760  shlibpath_overrides_runpath=yes
9761  if test "$with_gnu_ld" = yes; then
9762    need_lib_prefix=no
9763  fi
9764  need_version=yes
9765  ;;
9766
9767sysv4 | sysv4.3*)
9768  version_type=linux
9769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9770  soname_spec='${libname}${release}${shared_ext}$major'
9771  shlibpath_var=LD_LIBRARY_PATH
9772  case $host_vendor in
9773    sni)
9774      shlibpath_overrides_runpath=no
9775      need_lib_prefix=no
9776      export_dynamic_flag_spec='${wl}-Blargedynsym'
9777      runpath_var=LD_RUN_PATH
9778      ;;
9779    siemens)
9780      need_lib_prefix=no
9781      ;;
9782    motorola)
9783      need_lib_prefix=no
9784      need_version=no
9785      shlibpath_overrides_runpath=no
9786      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9787      ;;
9788  esac
9789  ;;
9790
9791sysv4*MP*)
9792  if test -d /usr/nec ;then
9793    version_type=linux
9794    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9795    soname_spec='$libname${shared_ext}.$major'
9796    shlibpath_var=LD_LIBRARY_PATH
9797  fi
9798  ;;
9799
9800sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9801  version_type=freebsd-elf
9802  need_lib_prefix=no
9803  need_version=no
9804  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9805  soname_spec='${libname}${release}${shared_ext}$major'
9806  shlibpath_var=LD_LIBRARY_PATH
9807  hardcode_into_libs=yes
9808  if test "$with_gnu_ld" = yes; then
9809    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9810    shlibpath_overrides_runpath=no
9811  else
9812    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9813    shlibpath_overrides_runpath=yes
9814    case $host_os in
9815      sco3.2v5*)
9816        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9817	;;
9818    esac
9819  fi
9820  sys_lib_dlsearch_path_spec='/usr/lib'
9821  ;;
9822
9823uts4*)
9824  version_type=linux
9825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826  soname_spec='${libname}${release}${shared_ext}$major'
9827  shlibpath_var=LD_LIBRARY_PATH
9828  ;;
9829
9830*)
9831  dynamic_linker=no
9832  ;;
9833esac
9834{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9835$as_echo "$dynamic_linker" >&6; }
9836test "$dynamic_linker" = no && can_build_shared=no
9837
9838if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9839  $as_echo_n "(cached) " >&6
9840else
9841  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9842fi
9843
9844sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9845if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9846  $as_echo_n "(cached) " >&6
9847else
9848  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9849fi
9850
9851sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9852
9853variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9854if test "$GCC" = yes; then
9855  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9856fi
9857
9858{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9859$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9860hardcode_action=
9861if test -n "$hardcode_libdir_flag_spec" || \
9862   test -n "$runpath_var" || \
9863   test "X$hardcode_automatic" = "Xyes" ; then
9864
9865  # We can hardcode non-existant directories.
9866  if test "$hardcode_direct" != no &&
9867     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9868     # have to relink, otherwise we might link with an installed library
9869     # when we should be linking with a yet-to-be-installed one
9870     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9871     test "$hardcode_minus_L" != no; then
9872    # Linking always hardcodes the temporary library directory.
9873    hardcode_action=relink
9874  else
9875    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9876    hardcode_action=immediate
9877  fi
9878else
9879  # We cannot hardcode anything, or else we can only hardcode existing
9880  # directories.
9881  hardcode_action=unsupported
9882fi
9883{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9884$as_echo "$hardcode_action" >&6; }
9885
9886if test "$hardcode_action" = relink; then
9887  # Fast installation is not supported
9888  enable_fast_install=no
9889elif test "$shlibpath_overrides_runpath" = yes ||
9890     test "$enable_shared" = no; then
9891  # Fast installation is not necessary
9892  enable_fast_install=needless
9893fi
9894
9895striplib=
9896old_striplib=
9897{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9898$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9899if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9900  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9901  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9902  { $as_echo "$as_me:$LINENO: result: yes" >&5
9903$as_echo "yes" >&6; }
9904else
9905# FIXME - insert some real tests, host_os isn't really good enough
9906  case $host_os in
9907   darwin*)
9908       if test -n "$STRIP" ; then
9909         striplib="$STRIP -x"
9910         old_striplib="$STRIP -S"
9911         { $as_echo "$as_me:$LINENO: result: yes" >&5
9912$as_echo "yes" >&6; }
9913       else
9914  { $as_echo "$as_me:$LINENO: result: no" >&5
9915$as_echo "no" >&6; }
9916fi
9917       ;;
9918   *)
9919  { $as_echo "$as_me:$LINENO: result: no" >&5
9920$as_echo "no" >&6; }
9921    ;;
9922  esac
9923fi
9924
9925if test "x$enable_dlopen" != xyes; then
9926  enable_dlopen=unknown
9927  enable_dlopen_self=unknown
9928  enable_dlopen_self_static=unknown
9929else
9930  lt_cv_dlopen=no
9931  lt_cv_dlopen_libs=
9932
9933  case $host_os in
9934  beos*)
9935    lt_cv_dlopen="load_add_on"
9936    lt_cv_dlopen_libs=
9937    lt_cv_dlopen_self=yes
9938    ;;
9939
9940  mingw* | pw32*)
9941    lt_cv_dlopen="LoadLibrary"
9942    lt_cv_dlopen_libs=
9943   ;;
9944
9945  cygwin*)
9946    lt_cv_dlopen="dlopen"
9947    lt_cv_dlopen_libs=
9948   ;;
9949
9950  darwin*)
9951  # if libdl is installed we need to link against it
9952    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9953$as_echo_n "checking for dlopen in -ldl... " >&6; }
9954if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9955  $as_echo_n "(cached) " >&6
9956else
9957  ac_check_lib_save_LIBS=$LIBS
9958LIBS="-ldl  $LIBS"
9959cat >conftest.$ac_ext <<_ACEOF
9960/* confdefs.h.  */
9961_ACEOF
9962cat confdefs.h >>conftest.$ac_ext
9963cat >>conftest.$ac_ext <<_ACEOF
9964/* end confdefs.h.  */
9965
9966/* Override any GCC internal prototype to avoid an error.
9967   Use char because int might match the return type of a GCC
9968   builtin and then its argument prototype would still apply.  */
9969#ifdef __cplusplus
9970extern "C"
9971#endif
9972char dlopen ();
9973int
9974main ()
9975{
9976return dlopen ();
9977  ;
9978  return 0;
9979}
9980_ACEOF
9981rm -f conftest.$ac_objext conftest$ac_exeext
9982if { (ac_try="$ac_link"
9983case "(($ac_try" in
9984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985  *) ac_try_echo=$ac_try;;
9986esac
9987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9988$as_echo "$ac_try_echo") >&5
9989  (eval "$ac_link") 2>conftest.er1
9990  ac_status=$?
9991  grep -v '^ *+' conftest.er1 >conftest.err
9992  rm -f conftest.er1
9993  cat conftest.err >&5
9994  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995  (exit $ac_status); } && {
9996	 test -z "$ac_c_werror_flag" ||
9997	 test ! -s conftest.err
9998       } && test -s conftest$ac_exeext && {
9999	 test "$cross_compiling" = yes ||
10000	 $as_test_x conftest$ac_exeext
10001       }; then
10002  ac_cv_lib_dl_dlopen=yes
10003else
10004  $as_echo "$as_me: failed program was:" >&5
10005sed 's/^/| /' conftest.$ac_ext >&5
10006
10007	ac_cv_lib_dl_dlopen=no
10008fi
10009
10010rm -rf conftest.dSYM
10011rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10012      conftest$ac_exeext conftest.$ac_ext
10013LIBS=$ac_check_lib_save_LIBS
10014fi
10015{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10016$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10017if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10018  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10019else
10020
10021    lt_cv_dlopen="dyld"
10022    lt_cv_dlopen_libs=
10023    lt_cv_dlopen_self=yes
10024
10025fi
10026
10027   ;;
10028
10029  *)
10030    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10031$as_echo_n "checking for shl_load... " >&6; }
10032if test "${ac_cv_func_shl_load+set}" = set; then
10033  $as_echo_n "(cached) " >&6
10034else
10035  cat >conftest.$ac_ext <<_ACEOF
10036/* confdefs.h.  */
10037_ACEOF
10038cat confdefs.h >>conftest.$ac_ext
10039cat >>conftest.$ac_ext <<_ACEOF
10040/* end confdefs.h.  */
10041/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10042   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10043#define shl_load innocuous_shl_load
10044
10045/* System header to define __stub macros and hopefully few prototypes,
10046    which can conflict with char shl_load (); below.
10047    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10048    <limits.h> exists even on freestanding compilers.  */
10049
10050#ifdef __STDC__
10051# include <limits.h>
10052#else
10053# include <assert.h>
10054#endif
10055
10056#undef shl_load
10057
10058/* Override any GCC internal prototype to avoid an error.
10059   Use char because int might match the return type of a GCC
10060   builtin and then its argument prototype would still apply.  */
10061#ifdef __cplusplus
10062extern "C"
10063#endif
10064char shl_load ();
10065/* The GNU C library defines this for functions which it implements
10066    to always fail with ENOSYS.  Some functions are actually named
10067    something starting with __ and the normal name is an alias.  */
10068#if defined __stub_shl_load || defined __stub___shl_load
10069choke me
10070#endif
10071
10072int
10073main ()
10074{
10075return shl_load ();
10076  ;
10077  return 0;
10078}
10079_ACEOF
10080rm -f conftest.$ac_objext conftest$ac_exeext
10081if { (ac_try="$ac_link"
10082case "(($ac_try" in
10083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084  *) ac_try_echo=$ac_try;;
10085esac
10086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10087$as_echo "$ac_try_echo") >&5
10088  (eval "$ac_link") 2>conftest.er1
10089  ac_status=$?
10090  grep -v '^ *+' conftest.er1 >conftest.err
10091  rm -f conftest.er1
10092  cat conftest.err >&5
10093  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094  (exit $ac_status); } && {
10095	 test -z "$ac_c_werror_flag" ||
10096	 test ! -s conftest.err
10097       } && test -s conftest$ac_exeext && {
10098	 test "$cross_compiling" = yes ||
10099	 $as_test_x conftest$ac_exeext
10100       }; then
10101  ac_cv_func_shl_load=yes
10102else
10103  $as_echo "$as_me: failed program was:" >&5
10104sed 's/^/| /' conftest.$ac_ext >&5
10105
10106	ac_cv_func_shl_load=no
10107fi
10108
10109rm -rf conftest.dSYM
10110rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10111      conftest$ac_exeext conftest.$ac_ext
10112fi
10113{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10114$as_echo "$ac_cv_func_shl_load" >&6; }
10115if test "x$ac_cv_func_shl_load" = x""yes; then
10116  lt_cv_dlopen="shl_load"
10117else
10118  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10119$as_echo_n "checking for shl_load in -ldld... " >&6; }
10120if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10121  $as_echo_n "(cached) " >&6
10122else
10123  ac_check_lib_save_LIBS=$LIBS
10124LIBS="-ldld  $LIBS"
10125cat >conftest.$ac_ext <<_ACEOF
10126/* confdefs.h.  */
10127_ACEOF
10128cat confdefs.h >>conftest.$ac_ext
10129cat >>conftest.$ac_ext <<_ACEOF
10130/* end confdefs.h.  */
10131
10132/* Override any GCC internal prototype to avoid an error.
10133   Use char because int might match the return type of a GCC
10134   builtin and then its argument prototype would still apply.  */
10135#ifdef __cplusplus
10136extern "C"
10137#endif
10138char shl_load ();
10139int
10140main ()
10141{
10142return shl_load ();
10143  ;
10144  return 0;
10145}
10146_ACEOF
10147rm -f conftest.$ac_objext conftest$ac_exeext
10148if { (ac_try="$ac_link"
10149case "(($ac_try" in
10150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151  *) ac_try_echo=$ac_try;;
10152esac
10153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10154$as_echo "$ac_try_echo") >&5
10155  (eval "$ac_link") 2>conftest.er1
10156  ac_status=$?
10157  grep -v '^ *+' conftest.er1 >conftest.err
10158  rm -f conftest.er1
10159  cat conftest.err >&5
10160  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161  (exit $ac_status); } && {
10162	 test -z "$ac_c_werror_flag" ||
10163	 test ! -s conftest.err
10164       } && test -s conftest$ac_exeext && {
10165	 test "$cross_compiling" = yes ||
10166	 $as_test_x conftest$ac_exeext
10167       }; then
10168  ac_cv_lib_dld_shl_load=yes
10169else
10170  $as_echo "$as_me: failed program was:" >&5
10171sed 's/^/| /' conftest.$ac_ext >&5
10172
10173	ac_cv_lib_dld_shl_load=no
10174fi
10175
10176rm -rf conftest.dSYM
10177rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10178      conftest$ac_exeext conftest.$ac_ext
10179LIBS=$ac_check_lib_save_LIBS
10180fi
10181{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10182$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10183if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10184  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10185else
10186  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10187$as_echo_n "checking for dlopen... " >&6; }
10188if test "${ac_cv_func_dlopen+set}" = set; then
10189  $as_echo_n "(cached) " >&6
10190else
10191  cat >conftest.$ac_ext <<_ACEOF
10192/* confdefs.h.  */
10193_ACEOF
10194cat confdefs.h >>conftest.$ac_ext
10195cat >>conftest.$ac_ext <<_ACEOF
10196/* end confdefs.h.  */
10197/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10198   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10199#define dlopen innocuous_dlopen
10200
10201/* System header to define __stub macros and hopefully few prototypes,
10202    which can conflict with char dlopen (); below.
10203    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10204    <limits.h> exists even on freestanding compilers.  */
10205
10206#ifdef __STDC__
10207# include <limits.h>
10208#else
10209# include <assert.h>
10210#endif
10211
10212#undef dlopen
10213
10214/* Override any GCC internal prototype to avoid an error.
10215   Use char because int might match the return type of a GCC
10216   builtin and then its argument prototype would still apply.  */
10217#ifdef __cplusplus
10218extern "C"
10219#endif
10220char dlopen ();
10221/* The GNU C library defines this for functions which it implements
10222    to always fail with ENOSYS.  Some functions are actually named
10223    something starting with __ and the normal name is an alias.  */
10224#if defined __stub_dlopen || defined __stub___dlopen
10225choke me
10226#endif
10227
10228int
10229main ()
10230{
10231return dlopen ();
10232  ;
10233  return 0;
10234}
10235_ACEOF
10236rm -f conftest.$ac_objext conftest$ac_exeext
10237if { (ac_try="$ac_link"
10238case "(($ac_try" in
10239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240  *) ac_try_echo=$ac_try;;
10241esac
10242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10243$as_echo "$ac_try_echo") >&5
10244  (eval "$ac_link") 2>conftest.er1
10245  ac_status=$?
10246  grep -v '^ *+' conftest.er1 >conftest.err
10247  rm -f conftest.er1
10248  cat conftest.err >&5
10249  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250  (exit $ac_status); } && {
10251	 test -z "$ac_c_werror_flag" ||
10252	 test ! -s conftest.err
10253       } && test -s conftest$ac_exeext && {
10254	 test "$cross_compiling" = yes ||
10255	 $as_test_x conftest$ac_exeext
10256       }; then
10257  ac_cv_func_dlopen=yes
10258else
10259  $as_echo "$as_me: failed program was:" >&5
10260sed 's/^/| /' conftest.$ac_ext >&5
10261
10262	ac_cv_func_dlopen=no
10263fi
10264
10265rm -rf conftest.dSYM
10266rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10267      conftest$ac_exeext conftest.$ac_ext
10268fi
10269{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10270$as_echo "$ac_cv_func_dlopen" >&6; }
10271if test "x$ac_cv_func_dlopen" = x""yes; then
10272  lt_cv_dlopen="dlopen"
10273else
10274  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10275$as_echo_n "checking for dlopen in -ldl... " >&6; }
10276if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10277  $as_echo_n "(cached) " >&6
10278else
10279  ac_check_lib_save_LIBS=$LIBS
10280LIBS="-ldl  $LIBS"
10281cat >conftest.$ac_ext <<_ACEOF
10282/* confdefs.h.  */
10283_ACEOF
10284cat confdefs.h >>conftest.$ac_ext
10285cat >>conftest.$ac_ext <<_ACEOF
10286/* end confdefs.h.  */
10287
10288/* Override any GCC internal prototype to avoid an error.
10289   Use char because int might match the return type of a GCC
10290   builtin and then its argument prototype would still apply.  */
10291#ifdef __cplusplus
10292extern "C"
10293#endif
10294char dlopen ();
10295int
10296main ()
10297{
10298return dlopen ();
10299  ;
10300  return 0;
10301}
10302_ACEOF
10303rm -f conftest.$ac_objext conftest$ac_exeext
10304if { (ac_try="$ac_link"
10305case "(($ac_try" in
10306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307  *) ac_try_echo=$ac_try;;
10308esac
10309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10310$as_echo "$ac_try_echo") >&5
10311  (eval "$ac_link") 2>conftest.er1
10312  ac_status=$?
10313  grep -v '^ *+' conftest.er1 >conftest.err
10314  rm -f conftest.er1
10315  cat conftest.err >&5
10316  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317  (exit $ac_status); } && {
10318	 test -z "$ac_c_werror_flag" ||
10319	 test ! -s conftest.err
10320       } && test -s conftest$ac_exeext && {
10321	 test "$cross_compiling" = yes ||
10322	 $as_test_x conftest$ac_exeext
10323       }; then
10324  ac_cv_lib_dl_dlopen=yes
10325else
10326  $as_echo "$as_me: failed program was:" >&5
10327sed 's/^/| /' conftest.$ac_ext >&5
10328
10329	ac_cv_lib_dl_dlopen=no
10330fi
10331
10332rm -rf conftest.dSYM
10333rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10334      conftest$ac_exeext conftest.$ac_ext
10335LIBS=$ac_check_lib_save_LIBS
10336fi
10337{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10338$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10339if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10340  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10341else
10342  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10343$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10344if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10345  $as_echo_n "(cached) " >&6
10346else
10347  ac_check_lib_save_LIBS=$LIBS
10348LIBS="-lsvld  $LIBS"
10349cat >conftest.$ac_ext <<_ACEOF
10350/* confdefs.h.  */
10351_ACEOF
10352cat confdefs.h >>conftest.$ac_ext
10353cat >>conftest.$ac_ext <<_ACEOF
10354/* end confdefs.h.  */
10355
10356/* Override any GCC internal prototype to avoid an error.
10357   Use char because int might match the return type of a GCC
10358   builtin and then its argument prototype would still apply.  */
10359#ifdef __cplusplus
10360extern "C"
10361#endif
10362char dlopen ();
10363int
10364main ()
10365{
10366return dlopen ();
10367  ;
10368  return 0;
10369}
10370_ACEOF
10371rm -f conftest.$ac_objext conftest$ac_exeext
10372if { (ac_try="$ac_link"
10373case "(($ac_try" in
10374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375  *) ac_try_echo=$ac_try;;
10376esac
10377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10378$as_echo "$ac_try_echo") >&5
10379  (eval "$ac_link") 2>conftest.er1
10380  ac_status=$?
10381  grep -v '^ *+' conftest.er1 >conftest.err
10382  rm -f conftest.er1
10383  cat conftest.err >&5
10384  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385  (exit $ac_status); } && {
10386	 test -z "$ac_c_werror_flag" ||
10387	 test ! -s conftest.err
10388       } && test -s conftest$ac_exeext && {
10389	 test "$cross_compiling" = yes ||
10390	 $as_test_x conftest$ac_exeext
10391       }; then
10392  ac_cv_lib_svld_dlopen=yes
10393else
10394  $as_echo "$as_me: failed program was:" >&5
10395sed 's/^/| /' conftest.$ac_ext >&5
10396
10397	ac_cv_lib_svld_dlopen=no
10398fi
10399
10400rm -rf conftest.dSYM
10401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10402      conftest$ac_exeext conftest.$ac_ext
10403LIBS=$ac_check_lib_save_LIBS
10404fi
10405{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10406$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10407if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10408  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10409else
10410  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10411$as_echo_n "checking for dld_link in -ldld... " >&6; }
10412if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10413  $as_echo_n "(cached) " >&6
10414else
10415  ac_check_lib_save_LIBS=$LIBS
10416LIBS="-ldld  $LIBS"
10417cat >conftest.$ac_ext <<_ACEOF
10418/* confdefs.h.  */
10419_ACEOF
10420cat confdefs.h >>conftest.$ac_ext
10421cat >>conftest.$ac_ext <<_ACEOF
10422/* end confdefs.h.  */
10423
10424/* Override any GCC internal prototype to avoid an error.
10425   Use char because int might match the return type of a GCC
10426   builtin and then its argument prototype would still apply.  */
10427#ifdef __cplusplus
10428extern "C"
10429#endif
10430char dld_link ();
10431int
10432main ()
10433{
10434return dld_link ();
10435  ;
10436  return 0;
10437}
10438_ACEOF
10439rm -f conftest.$ac_objext conftest$ac_exeext
10440if { (ac_try="$ac_link"
10441case "(($ac_try" in
10442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443  *) ac_try_echo=$ac_try;;
10444esac
10445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10446$as_echo "$ac_try_echo") >&5
10447  (eval "$ac_link") 2>conftest.er1
10448  ac_status=$?
10449  grep -v '^ *+' conftest.er1 >conftest.err
10450  rm -f conftest.er1
10451  cat conftest.err >&5
10452  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453  (exit $ac_status); } && {
10454	 test -z "$ac_c_werror_flag" ||
10455	 test ! -s conftest.err
10456       } && test -s conftest$ac_exeext && {
10457	 test "$cross_compiling" = yes ||
10458	 $as_test_x conftest$ac_exeext
10459       }; then
10460  ac_cv_lib_dld_dld_link=yes
10461else
10462  $as_echo "$as_me: failed program was:" >&5
10463sed 's/^/| /' conftest.$ac_ext >&5
10464
10465	ac_cv_lib_dld_dld_link=no
10466fi
10467
10468rm -rf conftest.dSYM
10469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10470      conftest$ac_exeext conftest.$ac_ext
10471LIBS=$ac_check_lib_save_LIBS
10472fi
10473{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10474$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10475if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10476  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10477fi
10478
10479
10480fi
10481
10482
10483fi
10484
10485
10486fi
10487
10488
10489fi
10490
10491
10492fi
10493
10494    ;;
10495  esac
10496
10497  if test "x$lt_cv_dlopen" != xno; then
10498    enable_dlopen=yes
10499  else
10500    enable_dlopen=no
10501  fi
10502
10503  case $lt_cv_dlopen in
10504  dlopen)
10505    save_CPPFLAGS="$CPPFLAGS"
10506    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10507
10508    save_LDFLAGS="$LDFLAGS"
10509    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10510
10511    save_LIBS="$LIBS"
10512    LIBS="$lt_cv_dlopen_libs $LIBS"
10513
10514    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10515$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10516if test "${lt_cv_dlopen_self+set}" = set; then
10517  $as_echo_n "(cached) " >&6
10518else
10519  	  if test "$cross_compiling" = yes; then :
10520  lt_cv_dlopen_self=cross
10521else
10522  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10523  lt_status=$lt_dlunknown
10524  cat > conftest.$ac_ext <<EOF
10525#line 10525 "configure"
10526#include "confdefs.h"
10527
10528#if HAVE_DLFCN_H
10529#include <dlfcn.h>
10530#endif
10531
10532#include <stdio.h>
10533
10534#ifdef RTLD_GLOBAL
10535#  define LT_DLGLOBAL		RTLD_GLOBAL
10536#else
10537#  ifdef DL_GLOBAL
10538#    define LT_DLGLOBAL		DL_GLOBAL
10539#  else
10540#    define LT_DLGLOBAL		0
10541#  endif
10542#endif
10543
10544/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10545   find out it does not work in some platform. */
10546#ifndef LT_DLLAZY_OR_NOW
10547#  ifdef RTLD_LAZY
10548#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10549#  else
10550#    ifdef DL_LAZY
10551#      define LT_DLLAZY_OR_NOW		DL_LAZY
10552#    else
10553#      ifdef RTLD_NOW
10554#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10555#      else
10556#        ifdef DL_NOW
10557#          define LT_DLLAZY_OR_NOW	DL_NOW
10558#        else
10559#          define LT_DLLAZY_OR_NOW	0
10560#        endif
10561#      endif
10562#    endif
10563#  endif
10564#endif
10565
10566#ifdef __cplusplus
10567extern "C" void exit (int);
10568#endif
10569
10570void fnord() { int i=42;}
10571int main ()
10572{
10573  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10574  int status = $lt_dlunknown;
10575
10576  if (self)
10577    {
10578      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10579      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10580      /* dlclose (self); */
10581    }
10582  else
10583    puts (dlerror ());
10584
10585    exit (status);
10586}
10587EOF
10588  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10589  (eval $ac_link) 2>&5
10590  ac_status=$?
10591  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10593    (./conftest; exit; ) >&5 2>/dev/null
10594    lt_status=$?
10595    case x$lt_status in
10596      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10597      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10598      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10599    esac
10600  else :
10601    # compilation failed
10602    lt_cv_dlopen_self=no
10603  fi
10604fi
10605rm -fr conftest*
10606
10607
10608fi
10609{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10610$as_echo "$lt_cv_dlopen_self" >&6; }
10611
10612    if test "x$lt_cv_dlopen_self" = xyes; then
10613      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10614      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10615$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10616if test "${lt_cv_dlopen_self_static+set}" = set; then
10617  $as_echo_n "(cached) " >&6
10618else
10619  	  if test "$cross_compiling" = yes; then :
10620  lt_cv_dlopen_self_static=cross
10621else
10622  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10623  lt_status=$lt_dlunknown
10624  cat > conftest.$ac_ext <<EOF
10625#line 10625 "configure"
10626#include "confdefs.h"
10627
10628#if HAVE_DLFCN_H
10629#include <dlfcn.h>
10630#endif
10631
10632#include <stdio.h>
10633
10634#ifdef RTLD_GLOBAL
10635#  define LT_DLGLOBAL		RTLD_GLOBAL
10636#else
10637#  ifdef DL_GLOBAL
10638#    define LT_DLGLOBAL		DL_GLOBAL
10639#  else
10640#    define LT_DLGLOBAL		0
10641#  endif
10642#endif
10643
10644/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10645   find out it does not work in some platform. */
10646#ifndef LT_DLLAZY_OR_NOW
10647#  ifdef RTLD_LAZY
10648#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10649#  else
10650#    ifdef DL_LAZY
10651#      define LT_DLLAZY_OR_NOW		DL_LAZY
10652#    else
10653#      ifdef RTLD_NOW
10654#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10655#      else
10656#        ifdef DL_NOW
10657#          define LT_DLLAZY_OR_NOW	DL_NOW
10658#        else
10659#          define LT_DLLAZY_OR_NOW	0
10660#        endif
10661#      endif
10662#    endif
10663#  endif
10664#endif
10665
10666#ifdef __cplusplus
10667extern "C" void exit (int);
10668#endif
10669
10670void fnord() { int i=42;}
10671int main ()
10672{
10673  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10674  int status = $lt_dlunknown;
10675
10676  if (self)
10677    {
10678      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10679      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10680      /* dlclose (self); */
10681    }
10682  else
10683    puts (dlerror ());
10684
10685    exit (status);
10686}
10687EOF
10688  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10689  (eval $ac_link) 2>&5
10690  ac_status=$?
10691  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10693    (./conftest; exit; ) >&5 2>/dev/null
10694    lt_status=$?
10695    case x$lt_status in
10696      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10697      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10698      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10699    esac
10700  else :
10701    # compilation failed
10702    lt_cv_dlopen_self_static=no
10703  fi
10704fi
10705rm -fr conftest*
10706
10707
10708fi
10709{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10710$as_echo "$lt_cv_dlopen_self_static" >&6; }
10711    fi
10712
10713    CPPFLAGS="$save_CPPFLAGS"
10714    LDFLAGS="$save_LDFLAGS"
10715    LIBS="$save_LIBS"
10716    ;;
10717  esac
10718
10719  case $lt_cv_dlopen_self in
10720  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10721  *) enable_dlopen_self=unknown ;;
10722  esac
10723
10724  case $lt_cv_dlopen_self_static in
10725  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10726  *) enable_dlopen_self_static=unknown ;;
10727  esac
10728fi
10729
10730
10731# Report which library types will actually be built
10732{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10733$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10734{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10735$as_echo "$can_build_shared" >&6; }
10736
10737{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10738$as_echo_n "checking whether to build shared libraries... " >&6; }
10739test "$can_build_shared" = "no" && enable_shared=no
10740
10741# On AIX, shared libraries and static libraries use the same namespace, and
10742# are all built from PIC.
10743case $host_os in
10744aix3*)
10745  test "$enable_shared" = yes && enable_static=no
10746  if test -n "$RANLIB"; then
10747    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10748    postinstall_cmds='$RANLIB $lib'
10749  fi
10750  ;;
10751
10752aix[4-9]*)
10753  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10754    test "$enable_shared" = yes && enable_static=no
10755  fi
10756    ;;
10757esac
10758{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10759$as_echo "$enable_shared" >&6; }
10760
10761{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10762$as_echo_n "checking whether to build static libraries... " >&6; }
10763# Make sure either enable_shared or enable_static is yes.
10764test "$enable_shared" = yes || enable_static=yes
10765{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10766$as_echo "$enable_static" >&6; }
10767
10768# The else clause should only fire when bootstrapping the
10769# libtool distribution, otherwise you forgot to ship ltmain.sh
10770# with your package, and you will get complaints that there are
10771# no rules to generate ltmain.sh.
10772if test -f "$ltmain"; then
10773  # See if we are running on zsh, and set the options which allow our commands through
10774  # without removal of \ escapes.
10775  if test -n "${ZSH_VERSION+set}" ; then
10776    setopt NO_GLOB_SUBST
10777  fi
10778  # Now quote all the things that may contain metacharacters while being
10779  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10780  # variables and quote the copies for generation of the libtool script.
10781  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10782    SED SHELL STRIP \
10783    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10784    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10785    deplibs_check_method reload_flag reload_cmds need_locks \
10786    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10787    lt_cv_sys_global_symbol_to_c_name_address \
10788    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10789    old_postinstall_cmds old_postuninstall_cmds \
10790    compiler \
10791    CC \
10792    LD \
10793    lt_prog_compiler_wl \
10794    lt_prog_compiler_pic \
10795    lt_prog_compiler_static \
10796    lt_prog_compiler_no_builtin_flag \
10797    export_dynamic_flag_spec \
10798    thread_safe_flag_spec \
10799    whole_archive_flag_spec \
10800    enable_shared_with_static_runtimes \
10801    old_archive_cmds \
10802    old_archive_from_new_cmds \
10803    predep_objects \
10804    postdep_objects \
10805    predeps \
10806    postdeps \
10807    compiler_lib_search_path \
10808    compiler_lib_search_dirs \
10809    archive_cmds \
10810    archive_expsym_cmds \
10811    postinstall_cmds \
10812    postuninstall_cmds \
10813    old_archive_from_expsyms_cmds \
10814    allow_undefined_flag \
10815    no_undefined_flag \
10816    export_symbols_cmds \
10817    hardcode_libdir_flag_spec \
10818    hardcode_libdir_flag_spec_ld \
10819    hardcode_libdir_separator \
10820    hardcode_automatic \
10821    module_cmds \
10822    module_expsym_cmds \
10823    lt_cv_prog_compiler_c_o \
10824    fix_srcfile_path \
10825    exclude_expsyms \
10826    include_expsyms; do
10827
10828    case $var in
10829    old_archive_cmds | \
10830    old_archive_from_new_cmds | \
10831    archive_cmds | \
10832    archive_expsym_cmds | \
10833    module_cmds | \
10834    module_expsym_cmds | \
10835    old_archive_from_expsyms_cmds | \
10836    export_symbols_cmds | \
10837    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10838    postinstall_cmds | postuninstall_cmds | \
10839    old_postinstall_cmds | old_postuninstall_cmds | \
10840    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10841      # Double-quote double-evaled strings.
10842      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10843      ;;
10844    *)
10845      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10846      ;;
10847    esac
10848  done
10849
10850  case $lt_echo in
10851  *'\$0 --fallback-echo"')
10852    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10853    ;;
10854  esac
10855
10856cfgfile="${ofile}T"
10857  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10858  $rm -f "$cfgfile"
10859  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10860$as_echo "$as_me: creating $ofile" >&6;}
10861
10862  cat <<__EOF__ >> "$cfgfile"
10863#! $SHELL
10864
10865# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10866# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10867# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10868#
10869# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10870# Free Software Foundation, Inc.
10871#
10872# This file is part of GNU Libtool:
10873# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10874#
10875# This program is free software; you can redistribute it and/or modify
10876# it under the terms of the GNU General Public License as published by
10877# the Free Software Foundation; either version 2 of the License, or
10878# (at your option) any later version.
10879#
10880# This program is distributed in the hope that it will be useful, but
10881# WITHOUT ANY WARRANTY; without even the implied warranty of
10882# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10883# General Public License for more details.
10884#
10885# You should have received a copy of the GNU General Public License
10886# along with this program; if not, write to the Free Software
10887# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10888#
10889# As a special exception to the GNU General Public License, if you
10890# distribute this file as part of a program that contains a
10891# configuration script generated by Autoconf, you may include it under
10892# the same distribution terms that you use for the rest of that program.
10893
10894# A sed program that does not truncate output.
10895SED=$lt_SED
10896
10897# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10898Xsed="$SED -e 1s/^X//"
10899
10900# The HP-UX ksh and POSIX shell print the target directory to stdout
10901# if CDPATH is set.
10902(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10903
10904# The names of the tagged configurations supported by this script.
10905available_tags=
10906
10907# ### BEGIN LIBTOOL CONFIG
10908
10909# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10910
10911# Shell to use when invoking shell scripts.
10912SHELL=$lt_SHELL
10913
10914# Whether or not to build shared libraries.
10915build_libtool_libs=$enable_shared
10916
10917# Whether or not to build static libraries.
10918build_old_libs=$enable_static
10919
10920# Whether or not to add -lc for building shared libraries.
10921build_libtool_need_lc=$archive_cmds_need_lc
10922
10923# Whether or not to disallow shared libs when runtime libs are static
10924allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10925
10926# Whether or not to optimize for fast installation.
10927fast_install=$enable_fast_install
10928
10929# The host system.
10930host_alias=$host_alias
10931host=$host
10932host_os=$host_os
10933
10934# The build system.
10935build_alias=$build_alias
10936build=$build
10937build_os=$build_os
10938
10939# An echo program that does not interpret backslashes.
10940echo=$lt_echo
10941
10942# The archiver.
10943AR=$lt_AR
10944AR_FLAGS=$lt_AR_FLAGS
10945
10946# A C compiler.
10947LTCC=$lt_LTCC
10948
10949# LTCC compiler flags.
10950LTCFLAGS=$lt_LTCFLAGS
10951
10952# A language-specific compiler.
10953CC=$lt_compiler
10954
10955# Is the compiler the GNU C compiler?
10956with_gcc=$GCC
10957
10958# An ERE matcher.
10959EGREP=$lt_EGREP
10960
10961# The linker used to build libraries.
10962LD=$lt_LD
10963
10964# Whether we need hard or soft links.
10965LN_S=$lt_LN_S
10966
10967# A BSD-compatible nm program.
10968NM=$lt_NM
10969
10970# A symbol stripping program
10971STRIP=$lt_STRIP
10972
10973# Used to examine libraries when file_magic_cmd begins "file"
10974MAGIC_CMD=$MAGIC_CMD
10975
10976# Used on cygwin: DLL creation program.
10977DLLTOOL="$DLLTOOL"
10978
10979# Used on cygwin: object dumper.
10980OBJDUMP="$OBJDUMP"
10981
10982# Used on cygwin: assembler.
10983AS="$AS"
10984
10985# The name of the directory that contains temporary libtool files.
10986objdir=$objdir
10987
10988# How to create reloadable object files.
10989reload_flag=$lt_reload_flag
10990reload_cmds=$lt_reload_cmds
10991
10992# How to pass a linker flag through the compiler.
10993wl=$lt_lt_prog_compiler_wl
10994
10995# Object file suffix (normally "o").
10996objext="$ac_objext"
10997
10998# Old archive suffix (normally "a").
10999libext="$libext"
11000
11001# Shared library suffix (normally ".so").
11002shrext_cmds='$shrext_cmds'
11003
11004# Executable file suffix (normally "").
11005exeext="$exeext"
11006
11007# Additional compiler flags for building library objects.
11008pic_flag=$lt_lt_prog_compiler_pic
11009pic_mode=$pic_mode
11010
11011# What is the maximum length of a command?
11012max_cmd_len=$lt_cv_sys_max_cmd_len
11013
11014# Does compiler simultaneously support -c and -o options?
11015compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11016
11017# Must we lock files when doing compilation?
11018need_locks=$lt_need_locks
11019
11020# Do we need the lib prefix for modules?
11021need_lib_prefix=$need_lib_prefix
11022
11023# Do we need a version for libraries?
11024need_version=$need_version
11025
11026# Whether dlopen is supported.
11027dlopen_support=$enable_dlopen
11028
11029# Whether dlopen of programs is supported.
11030dlopen_self=$enable_dlopen_self
11031
11032# Whether dlopen of statically linked programs is supported.
11033dlopen_self_static=$enable_dlopen_self_static
11034
11035# Compiler flag to prevent dynamic linking.
11036link_static_flag=$lt_lt_prog_compiler_static
11037
11038# Compiler flag to turn off builtin functions.
11039no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11040
11041# Compiler flag to allow reflexive dlopens.
11042export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11043
11044# Compiler flag to generate shared objects directly from archives.
11045whole_archive_flag_spec=$lt_whole_archive_flag_spec
11046
11047# Compiler flag to generate thread-safe objects.
11048thread_safe_flag_spec=$lt_thread_safe_flag_spec
11049
11050# Library versioning type.
11051version_type=$version_type
11052
11053# Format of library name prefix.
11054libname_spec=$lt_libname_spec
11055
11056# List of archive names.  First name is the real one, the rest are links.
11057# The last name is the one that the linker finds with -lNAME.
11058library_names_spec=$lt_library_names_spec
11059
11060# The coded name of the library, if different from the real name.
11061soname_spec=$lt_soname_spec
11062
11063# Commands used to build and install an old-style archive.
11064RANLIB=$lt_RANLIB
11065old_archive_cmds=$lt_old_archive_cmds
11066old_postinstall_cmds=$lt_old_postinstall_cmds
11067old_postuninstall_cmds=$lt_old_postuninstall_cmds
11068
11069# Create an old-style archive from a shared archive.
11070old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11071
11072# Create a temporary old-style archive to link instead of a shared archive.
11073old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11074
11075# Commands used to build and install a shared archive.
11076archive_cmds=$lt_archive_cmds
11077archive_expsym_cmds=$lt_archive_expsym_cmds
11078postinstall_cmds=$lt_postinstall_cmds
11079postuninstall_cmds=$lt_postuninstall_cmds
11080
11081# Commands used to build a loadable module (assumed same as above if empty)
11082module_cmds=$lt_module_cmds
11083module_expsym_cmds=$lt_module_expsym_cmds
11084
11085# Commands to strip libraries.
11086old_striplib=$lt_old_striplib
11087striplib=$lt_striplib
11088
11089# Dependencies to place before the objects being linked to create a
11090# shared library.
11091predep_objects=$lt_predep_objects
11092
11093# Dependencies to place after the objects being linked to create a
11094# shared library.
11095postdep_objects=$lt_postdep_objects
11096
11097# Dependencies to place before the objects being linked to create a
11098# shared library.
11099predeps=$lt_predeps
11100
11101# Dependencies to place after the objects being linked to create a
11102# shared library.
11103postdeps=$lt_postdeps
11104
11105# The directories searched by this compiler when creating a shared
11106# library
11107compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11108
11109# The library search path used internally by the compiler when linking
11110# a shared library.
11111compiler_lib_search_path=$lt_compiler_lib_search_path
11112
11113# Method to check whether dependent libraries are shared objects.
11114deplibs_check_method=$lt_deplibs_check_method
11115
11116# Command to use when deplibs_check_method == file_magic.
11117file_magic_cmd=$lt_file_magic_cmd
11118
11119# Flag that allows shared libraries with undefined symbols to be built.
11120allow_undefined_flag=$lt_allow_undefined_flag
11121
11122# Flag that forces no undefined symbols.
11123no_undefined_flag=$lt_no_undefined_flag
11124
11125# Commands used to finish a libtool library installation in a directory.
11126finish_cmds=$lt_finish_cmds
11127
11128# Same as above, but a single script fragment to be evaled but not shown.
11129finish_eval=$lt_finish_eval
11130
11131# Take the output of nm and produce a listing of raw symbols and C names.
11132global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11133
11134# Transform the output of nm in a proper C declaration
11135global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11136
11137# Transform the output of nm in a C name address pair
11138global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11139
11140# This is the shared library runtime path variable.
11141runpath_var=$runpath_var
11142
11143# This is the shared library path variable.
11144shlibpath_var=$shlibpath_var
11145
11146# Is shlibpath searched before the hard-coded library search path?
11147shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11148
11149# How to hardcode a shared library path into an executable.
11150hardcode_action=$hardcode_action
11151
11152# Whether we should hardcode library paths into libraries.
11153hardcode_into_libs=$hardcode_into_libs
11154
11155# Flag to hardcode \$libdir into a binary during linking.
11156# This must work even if \$libdir does not exist.
11157hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11158
11159# If ld is used when linking, flag to hardcode \$libdir into
11160# a binary during linking. This must work even if \$libdir does
11161# not exist.
11162hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11163
11164# Whether we need a single -rpath flag with a separated argument.
11165hardcode_libdir_separator=$lt_hardcode_libdir_separator
11166
11167# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11168# resulting binary.
11169hardcode_direct=$hardcode_direct
11170
11171# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11172# resulting binary.
11173hardcode_minus_L=$hardcode_minus_L
11174
11175# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11176# the resulting binary.
11177hardcode_shlibpath_var=$hardcode_shlibpath_var
11178
11179# Set to yes if building a shared library automatically hardcodes DIR into the library
11180# and all subsequent libraries and executables linked against it.
11181hardcode_automatic=$hardcode_automatic
11182
11183# Variables whose values should be saved in libtool wrapper scripts and
11184# restored at relink time.
11185variables_saved_for_relink="$variables_saved_for_relink"
11186
11187# Whether libtool must link a program against all its dependency libraries.
11188link_all_deplibs=$link_all_deplibs
11189
11190# Compile-time system search path for libraries
11191sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11192
11193# Run-time system search path for libraries
11194sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11195
11196# Fix the shell variable \$srcfile for the compiler.
11197fix_srcfile_path=$lt_fix_srcfile_path
11198
11199# Set to yes if exported symbols are required.
11200always_export_symbols=$always_export_symbols
11201
11202# The commands to list exported symbols.
11203export_symbols_cmds=$lt_export_symbols_cmds
11204
11205# The commands to extract the exported symbol list from a shared archive.
11206extract_expsyms_cmds=$lt_extract_expsyms_cmds
11207
11208# Symbols that should not be listed in the preloaded symbols.
11209exclude_expsyms=$lt_exclude_expsyms
11210
11211# Symbols that must always be exported.
11212include_expsyms=$lt_include_expsyms
11213
11214# ### END LIBTOOL CONFIG
11215
11216__EOF__
11217
11218
11219  case $host_os in
11220  aix3*)
11221    cat <<\EOF >> "$cfgfile"
11222
11223# AIX sometimes has problems with the GCC collect2 program.  For some
11224# reason, if we set the COLLECT_NAMES environment variable, the problems
11225# vanish in a puff of smoke.
11226if test "X${COLLECT_NAMES+set}" != Xset; then
11227  COLLECT_NAMES=
11228  export COLLECT_NAMES
11229fi
11230EOF
11231    ;;
11232  esac
11233
11234  # We use sed instead of cat because bash on DJGPP gets confused if
11235  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11236  # text mode, it properly converts lines to CR/LF.  This bash problem
11237  # is reportedly fixed, but why not run on old versions too?
11238  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11239
11240  mv -f "$cfgfile" "$ofile" || \
11241    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11242  chmod +x "$ofile"
11243
11244else
11245  # If there is no Makefile yet, we rely on a make rule to execute
11246  # `config.status --recheck' to rerun these tests and create the
11247  # libtool script then.
11248  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11249  if test -f "$ltmain_in"; then
11250    test -f Makefile && make "$ltmain"
11251  fi
11252fi
11253
11254
11255ac_ext=c
11256ac_cpp='$CPP $CPPFLAGS'
11257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11259ac_compiler_gnu=$ac_cv_c_compiler_gnu
11260
11261CC="$lt_save_CC"
11262
11263
11264# Check whether --with-tags was given.
11265if test "${with_tags+set}" = set; then
11266  withval=$with_tags; tagnames="$withval"
11267fi
11268
11269
11270if test -f "$ltmain" && test -n "$tagnames"; then
11271  if test ! -f "${ofile}"; then
11272    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11273$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11274  fi
11275
11276  if test -z "$LTCC"; then
11277    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11278    if test -z "$LTCC"; then
11279      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11280$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11281    else
11282      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11283$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11284    fi
11285  fi
11286  if test -z "$LTCFLAGS"; then
11287    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11288  fi
11289
11290  # Extract list of available tagged configurations in $ofile.
11291  # Note that this assumes the entire list is on one line.
11292  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11293
11294  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11295  for tagname in $tagnames; do
11296    IFS="$lt_save_ifs"
11297    # Check whether tagname contains only valid characters
11298    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11299    "") ;;
11300    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11301$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11302   { (exit 1); exit 1; }; }
11303	;;
11304    esac
11305
11306    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11307    then
11308      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11309$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11310   { (exit 1); exit 1; }; }
11311    fi
11312
11313    # Update the list of available tags.
11314    if test -n "$tagname"; then
11315      echo appending configuration tag \"$tagname\" to $ofile
11316
11317      case $tagname in
11318      CXX)
11319	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11320	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11321	    (test "X$CXX" != "Xg++"))) ; then
11322	  ac_ext=cpp
11323ac_cpp='$CXXCPP $CPPFLAGS'
11324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11327
11328
11329
11330
11331archive_cmds_need_lc_CXX=no
11332allow_undefined_flag_CXX=
11333always_export_symbols_CXX=no
11334archive_expsym_cmds_CXX=
11335export_dynamic_flag_spec_CXX=
11336hardcode_direct_CXX=no
11337hardcode_libdir_flag_spec_CXX=
11338hardcode_libdir_flag_spec_ld_CXX=
11339hardcode_libdir_separator_CXX=
11340hardcode_minus_L_CXX=no
11341hardcode_shlibpath_var_CXX=unsupported
11342hardcode_automatic_CXX=no
11343module_cmds_CXX=
11344module_expsym_cmds_CXX=
11345link_all_deplibs_CXX=unknown
11346old_archive_cmds_CXX=$old_archive_cmds
11347no_undefined_flag_CXX=
11348whole_archive_flag_spec_CXX=
11349enable_shared_with_static_runtimes_CXX=no
11350
11351# Dependencies to place before and after the object being linked:
11352predep_objects_CXX=
11353postdep_objects_CXX=
11354predeps_CXX=
11355postdeps_CXX=
11356compiler_lib_search_path_CXX=
11357compiler_lib_search_dirs_CXX=
11358
11359# Source file extension for C++ test sources.
11360ac_ext=cpp
11361
11362# Object file extension for compiled C++ test sources.
11363objext=o
11364objext_CXX=$objext
11365
11366# Code to be used in simple compile tests
11367lt_simple_compile_test_code="int some_variable = 0;"
11368
11369# Code to be used in simple link tests
11370lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11371
11372# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11373
11374# If no C compiler was specified, use CC.
11375LTCC=${LTCC-"$CC"}
11376
11377# If no C compiler flags were specified, use CFLAGS.
11378LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11379
11380# Allow CC to be a program name with arguments.
11381compiler=$CC
11382
11383
11384# save warnings/boilerplate of simple test code
11385ac_outfile=conftest.$ac_objext
11386echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11387eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11388_lt_compiler_boilerplate=`cat conftest.err`
11389$rm conftest*
11390
11391ac_outfile=conftest.$ac_objext
11392echo "$lt_simple_link_test_code" >conftest.$ac_ext
11393eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11394_lt_linker_boilerplate=`cat conftest.err`
11395$rm -r conftest*
11396
11397
11398# Allow CC to be a program name with arguments.
11399lt_save_CC=$CC
11400lt_save_LD=$LD
11401lt_save_GCC=$GCC
11402GCC=$GXX
11403lt_save_with_gnu_ld=$with_gnu_ld
11404lt_save_path_LD=$lt_cv_path_LD
11405if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11406  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11407else
11408  $as_unset lt_cv_prog_gnu_ld
11409fi
11410if test -n "${lt_cv_path_LDCXX+set}"; then
11411  lt_cv_path_LD=$lt_cv_path_LDCXX
11412else
11413  $as_unset lt_cv_path_LD
11414fi
11415test -z "${LDCXX+set}" || LD=$LDCXX
11416CC=${CXX-"c++"}
11417compiler=$CC
11418compiler_CXX=$CC
11419for cc_temp in $compiler""; do
11420  case $cc_temp in
11421    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11422    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11423    \-*) ;;
11424    *) break;;
11425  esac
11426done
11427cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11428
11429
11430# We don't want -fno-exception wen compiling C++ code, so set the
11431# no_builtin_flag separately
11432if test "$GXX" = yes; then
11433  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11434else
11435  lt_prog_compiler_no_builtin_flag_CXX=
11436fi
11437
11438if test "$GXX" = yes; then
11439  # Set up default GNU C++ configuration
11440
11441
11442# Check whether --with-gnu-ld was given.
11443if test "${with_gnu_ld+set}" = set; then
11444  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11445else
11446  with_gnu_ld=no
11447fi
11448
11449ac_prog=ld
11450if test "$GCC" = yes; then
11451  # Check if gcc -print-prog-name=ld gives a path.
11452  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11453$as_echo_n "checking for ld used by $CC... " >&6; }
11454  case $host in
11455  *-*-mingw*)
11456    # gcc leaves a trailing carriage return which upsets mingw
11457    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11458  *)
11459    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11460  esac
11461  case $ac_prog in
11462    # Accept absolute paths.
11463    [\\/]* | ?:[\\/]*)
11464      re_direlt='/[^/][^/]*/\.\./'
11465      # Canonicalize the pathname of ld
11466      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11467      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11468	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11469      done
11470      test -z "$LD" && LD="$ac_prog"
11471      ;;
11472  "")
11473    # If it fails, then pretend we aren't using GCC.
11474    ac_prog=ld
11475    ;;
11476  *)
11477    # If it is relative, then search for the first ld in PATH.
11478    with_gnu_ld=unknown
11479    ;;
11480  esac
11481elif test "$with_gnu_ld" = yes; then
11482  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11483$as_echo_n "checking for GNU ld... " >&6; }
11484else
11485  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11486$as_echo_n "checking for non-GNU ld... " >&6; }
11487fi
11488if test "${lt_cv_path_LD+set}" = set; then
11489  $as_echo_n "(cached) " >&6
11490else
11491  if test -z "$LD"; then
11492  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11493  for ac_dir in $PATH; do
11494    IFS="$lt_save_ifs"
11495    test -z "$ac_dir" && ac_dir=.
11496    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11497      lt_cv_path_LD="$ac_dir/$ac_prog"
11498      # Check to see if the program is GNU ld.  I'd rather use --version,
11499      # but apparently some variants of GNU ld only accept -v.
11500      # Break only if it was the GNU/non-GNU ld that we prefer.
11501      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11502      *GNU* | *'with BFD'*)
11503	test "$with_gnu_ld" != no && break
11504	;;
11505      *)
11506	test "$with_gnu_ld" != yes && break
11507	;;
11508      esac
11509    fi
11510  done
11511  IFS="$lt_save_ifs"
11512else
11513  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11514fi
11515fi
11516
11517LD="$lt_cv_path_LD"
11518if test -n "$LD"; then
11519  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11520$as_echo "$LD" >&6; }
11521else
11522  { $as_echo "$as_me:$LINENO: result: no" >&5
11523$as_echo "no" >&6; }
11524fi
11525test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11526$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11527   { (exit 1); exit 1; }; }
11528{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11529$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11530if test "${lt_cv_prog_gnu_ld+set}" = set; then
11531  $as_echo_n "(cached) " >&6
11532else
11533  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11534case `$LD -v 2>&1 </dev/null` in
11535*GNU* | *'with BFD'*)
11536  lt_cv_prog_gnu_ld=yes
11537  ;;
11538*)
11539  lt_cv_prog_gnu_ld=no
11540  ;;
11541esac
11542fi
11543{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11544$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11545with_gnu_ld=$lt_cv_prog_gnu_ld
11546
11547
11548
11549  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11550  # archiving commands below assume that GNU ld is being used.
11551  if test "$with_gnu_ld" = yes; then
11552    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11553    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'
11554
11555    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11556    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11557
11558    # If archive_cmds runs LD, not CC, wlarc should be empty
11559    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11560    #     investigate it a little bit more. (MM)
11561    wlarc='${wl}'
11562
11563    # ancient GNU ld didn't support --whole-archive et. al.
11564    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11565	grep 'no-whole-archive' > /dev/null; then
11566      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11567    else
11568      whole_archive_flag_spec_CXX=
11569    fi
11570  else
11571    with_gnu_ld=no
11572    wlarc=
11573
11574    # A generic and very simple default shared library creation
11575    # command for GNU C++ for the case where it uses the native
11576    # linker, instead of GNU ld.  If possible, this setting should
11577    # overridden to take advantage of the native linker features on
11578    # the platform it is being used on.
11579    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11580  fi
11581
11582  # Commands to make compiler produce verbose output that lists
11583  # what "hidden" libraries, object files and flags are used when
11584  # linking a shared library.
11585  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11586
11587else
11588  GXX=no
11589  with_gnu_ld=no
11590  wlarc=
11591fi
11592
11593# PORTME: fill in a description of your system's C++ link characteristics
11594{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11595$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11596ld_shlibs_CXX=yes
11597case $host_os in
11598  aix3*)
11599    # FIXME: insert proper C++ library support
11600    ld_shlibs_CXX=no
11601    ;;
11602  aix[4-9]*)
11603    if test "$host_cpu" = ia64; then
11604      # On IA64, the linker does run time linking by default, so we don't
11605      # have to do anything special.
11606      aix_use_runtimelinking=no
11607      exp_sym_flag='-Bexport'
11608      no_entry_flag=""
11609    else
11610      aix_use_runtimelinking=no
11611
11612      # Test if we are trying to use run time linking or normal
11613      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11614      # need to do runtime linking.
11615      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11616	for ld_flag in $LDFLAGS; do
11617	  case $ld_flag in
11618	  *-brtl*)
11619	    aix_use_runtimelinking=yes
11620	    break
11621	    ;;
11622	  esac
11623	done
11624	;;
11625      esac
11626
11627      exp_sym_flag='-bexport'
11628      no_entry_flag='-bnoentry'
11629    fi
11630
11631    # When large executables or shared objects are built, AIX ld can
11632    # have problems creating the table of contents.  If linking a library
11633    # or program results in "error TOC overflow" add -mminimal-toc to
11634    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11635    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11636
11637    archive_cmds_CXX=''
11638    hardcode_direct_CXX=yes
11639    hardcode_libdir_separator_CXX=':'
11640    link_all_deplibs_CXX=yes
11641
11642    if test "$GXX" = yes; then
11643      case $host_os in aix4.[012]|aix4.[012].*)
11644      # We only want to do this on AIX 4.2 and lower, the check
11645      # below for broken collect2 doesn't work under 4.3+
11646	collect2name=`${CC} -print-prog-name=collect2`
11647	if test -f "$collect2name" && \
11648	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11649	then
11650	  # We have reworked collect2
11651	  :
11652	else
11653	  # We have old collect2
11654	  hardcode_direct_CXX=unsupported
11655	  # It fails to find uninstalled libraries when the uninstalled
11656	  # path is not listed in the libpath.  Setting hardcode_minus_L
11657	  # to unsupported forces relinking
11658	  hardcode_minus_L_CXX=yes
11659	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11660	  hardcode_libdir_separator_CXX=
11661	fi
11662	;;
11663      esac
11664      shared_flag='-shared'
11665      if test "$aix_use_runtimelinking" = yes; then
11666	shared_flag="$shared_flag "'${wl}-G'
11667      fi
11668    else
11669      # not using gcc
11670      if test "$host_cpu" = ia64; then
11671	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11672	# chokes on -Wl,-G. The following line is correct:
11673	shared_flag='-G'
11674      else
11675	if test "$aix_use_runtimelinking" = yes; then
11676	  shared_flag='${wl}-G'
11677	else
11678	  shared_flag='${wl}-bM:SRE'
11679	fi
11680      fi
11681    fi
11682
11683    # It seems that -bexpall does not export symbols beginning with
11684    # underscore (_), so it is better to generate a list of symbols to export.
11685    always_export_symbols_CXX=yes
11686    if test "$aix_use_runtimelinking" = yes; then
11687      # Warning - without using the other runtime loading flags (-brtl),
11688      # -berok will link without error, but may produce a broken library.
11689      allow_undefined_flag_CXX='-berok'
11690      # Determine the default libpath from the value encoded in an empty executable.
11691      cat >conftest.$ac_ext <<_ACEOF
11692/* confdefs.h.  */
11693_ACEOF
11694cat confdefs.h >>conftest.$ac_ext
11695cat >>conftest.$ac_ext <<_ACEOF
11696/* end confdefs.h.  */
11697
11698int
11699main ()
11700{
11701
11702  ;
11703  return 0;
11704}
11705_ACEOF
11706rm -f conftest.$ac_objext conftest$ac_exeext
11707if { (ac_try="$ac_link"
11708case "(($ac_try" in
11709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710  *) ac_try_echo=$ac_try;;
11711esac
11712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11713$as_echo "$ac_try_echo") >&5
11714  (eval "$ac_link") 2>conftest.er1
11715  ac_status=$?
11716  grep -v '^ *+' conftest.er1 >conftest.err
11717  rm -f conftest.er1
11718  cat conftest.err >&5
11719  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720  (exit $ac_status); } && {
11721	 test -z "$ac_cxx_werror_flag" ||
11722	 test ! -s conftest.err
11723       } && test -s conftest$ac_exeext && {
11724	 test "$cross_compiling" = yes ||
11725	 $as_test_x conftest$ac_exeext
11726       }; then
11727
11728lt_aix_libpath_sed='
11729    /Import File Strings/,/^$/ {
11730	/^0/ {
11731	    s/^0  *\(.*\)$/\1/
11732	    p
11733	}
11734    }'
11735aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11736# Check for a 64-bit object if we didn't find anything.
11737if test -z "$aix_libpath"; then
11738  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11739fi
11740else
11741  $as_echo "$as_me: failed program was:" >&5
11742sed 's/^/| /' conftest.$ac_ext >&5
11743
11744
11745fi
11746
11747rm -rf conftest.dSYM
11748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11749      conftest$ac_exeext conftest.$ac_ext
11750if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11751
11752      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11753
11754      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"
11755     else
11756      if test "$host_cpu" = ia64; then
11757	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11758	allow_undefined_flag_CXX="-z nodefs"
11759	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"
11760      else
11761	# Determine the default libpath from the value encoded in an empty executable.
11762	cat >conftest.$ac_ext <<_ACEOF
11763/* confdefs.h.  */
11764_ACEOF
11765cat confdefs.h >>conftest.$ac_ext
11766cat >>conftest.$ac_ext <<_ACEOF
11767/* end confdefs.h.  */
11768
11769int
11770main ()
11771{
11772
11773  ;
11774  return 0;
11775}
11776_ACEOF
11777rm -f conftest.$ac_objext conftest$ac_exeext
11778if { (ac_try="$ac_link"
11779case "(($ac_try" in
11780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781  *) ac_try_echo=$ac_try;;
11782esac
11783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11784$as_echo "$ac_try_echo") >&5
11785  (eval "$ac_link") 2>conftest.er1
11786  ac_status=$?
11787  grep -v '^ *+' conftest.er1 >conftest.err
11788  rm -f conftest.er1
11789  cat conftest.err >&5
11790  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791  (exit $ac_status); } && {
11792	 test -z "$ac_cxx_werror_flag" ||
11793	 test ! -s conftest.err
11794       } && test -s conftest$ac_exeext && {
11795	 test "$cross_compiling" = yes ||
11796	 $as_test_x conftest$ac_exeext
11797       }; then
11798
11799lt_aix_libpath_sed='
11800    /Import File Strings/,/^$/ {
11801	/^0/ {
11802	    s/^0  *\(.*\)$/\1/
11803	    p
11804	}
11805    }'
11806aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11807# Check for a 64-bit object if we didn't find anything.
11808if test -z "$aix_libpath"; then
11809  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11810fi
11811else
11812  $as_echo "$as_me: failed program was:" >&5
11813sed 's/^/| /' conftest.$ac_ext >&5
11814
11815
11816fi
11817
11818rm -rf conftest.dSYM
11819rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11820      conftest$ac_exeext conftest.$ac_ext
11821if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11822
11823	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11824	# Warning - without using the other run time loading flags,
11825	# -berok will link without error, but may produce a broken library.
11826	no_undefined_flag_CXX=' ${wl}-bernotok'
11827	allow_undefined_flag_CXX=' ${wl}-berok'
11828	# Exported symbols can be pulled into shared objects from archives
11829	whole_archive_flag_spec_CXX='$convenience'
11830	archive_cmds_need_lc_CXX=yes
11831	# This is similar to how AIX traditionally builds its shared libraries.
11832	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'
11833      fi
11834    fi
11835    ;;
11836
11837  beos*)
11838    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11839      allow_undefined_flag_CXX=unsupported
11840      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11841      # support --undefined.  This deserves some investigation.  FIXME
11842      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11843    else
11844      ld_shlibs_CXX=no
11845    fi
11846    ;;
11847
11848  chorus*)
11849    case $cc_basename in
11850      *)
11851	# FIXME: insert proper C++ library support
11852	ld_shlibs_CXX=no
11853	;;
11854    esac
11855    ;;
11856
11857  cygwin* | mingw* | pw32*)
11858    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11859    # as there is no search path for DLLs.
11860    hardcode_libdir_flag_spec_CXX='-L$libdir'
11861    allow_undefined_flag_CXX=unsupported
11862    always_export_symbols_CXX=no
11863    enable_shared_with_static_runtimes_CXX=yes
11864
11865    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11866      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'
11867      # If the export-symbols file already is a .def file (1st line
11868      # is EXPORTS), use it as is; otherwise, prepend...
11869      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11870	cp $export_symbols $output_objdir/$soname.def;
11871      else
11872	echo EXPORTS > $output_objdir/$soname.def;
11873	cat $export_symbols >> $output_objdir/$soname.def;
11874      fi~
11875      $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'
11876    else
11877      ld_shlibs_CXX=no
11878    fi
11879  ;;
11880      darwin* | rhapsody*)
11881      archive_cmds_need_lc_CXX=no
11882      hardcode_direct_CXX=no
11883      hardcode_automatic_CXX=yes
11884      hardcode_shlibpath_var_CXX=unsupported
11885      whole_archive_flag_spec_CXX=''
11886      link_all_deplibs_CXX=yes
11887      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11888      if test "$GXX" = yes ; then
11889      output_verbose_link_cmd='echo'
11890      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}"
11891      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11892      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}"
11893      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}"
11894      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11895        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}"
11896        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}"
11897      fi
11898      else
11899      case $cc_basename in
11900        xlc*)
11901         output_verbose_link_cmd='echo'
11902          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'
11903          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11904          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11905          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}'
11906          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}'
11907          ;;
11908       *)
11909         ld_shlibs_CXX=no
11910          ;;
11911      esac
11912      fi
11913        ;;
11914
11915  dgux*)
11916    case $cc_basename in
11917      ec++*)
11918	# FIXME: insert proper C++ library support
11919	ld_shlibs_CXX=no
11920	;;
11921      ghcx*)
11922	# Green Hills C++ Compiler
11923	# FIXME: insert proper C++ library support
11924	ld_shlibs_CXX=no
11925	;;
11926      *)
11927	# FIXME: insert proper C++ library support
11928	ld_shlibs_CXX=no
11929	;;
11930    esac
11931    ;;
11932  freebsd[12]*)
11933    # C++ shared libraries reported to be fairly broken before switch to ELF
11934    ld_shlibs_CXX=no
11935    ;;
11936  freebsd-elf*)
11937    archive_cmds_need_lc_CXX=no
11938    ;;
11939  freebsd* | dragonfly*)
11940    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11941    # conventions
11942    ld_shlibs_CXX=yes
11943    ;;
11944  gnu*)
11945    ;;
11946  hpux9*)
11947    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11948    hardcode_libdir_separator_CXX=:
11949    export_dynamic_flag_spec_CXX='${wl}-E'
11950    hardcode_direct_CXX=yes
11951    hardcode_minus_L_CXX=yes # Not in the search PATH,
11952				# but as the default
11953				# location of the library.
11954
11955    case $cc_basename in
11956    CC*)
11957      # FIXME: insert proper C++ library support
11958      ld_shlibs_CXX=no
11959      ;;
11960    aCC*)
11961      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'
11962      # Commands to make compiler produce verbose output that lists
11963      # what "hidden" libraries, object files and flags are used when
11964      # linking a shared library.
11965      #
11966      # There doesn't appear to be a way to prevent this compiler from
11967      # explicitly linking system object files so we need to strip them
11968      # from the output so that they don't get included in the library
11969      # dependencies.
11970      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'
11971      ;;
11972    *)
11973      if test "$GXX" = yes; then
11974        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'
11975      else
11976        # FIXME: insert proper C++ library support
11977        ld_shlibs_CXX=no
11978      fi
11979      ;;
11980    esac
11981    ;;
11982  hpux10*|hpux11*)
11983    if test $with_gnu_ld = no; then
11984      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11985      hardcode_libdir_separator_CXX=:
11986
11987      case $host_cpu in
11988      hppa*64*|ia64*) ;;
11989      *)
11990	export_dynamic_flag_spec_CXX='${wl}-E'
11991        ;;
11992      esac
11993    fi
11994    case $host_cpu in
11995    hppa*64*|ia64*)
11996      hardcode_direct_CXX=no
11997      hardcode_shlibpath_var_CXX=no
11998      ;;
11999    *)
12000      hardcode_direct_CXX=yes
12001      hardcode_minus_L_CXX=yes # Not in the search PATH,
12002					      # but as the default
12003					      # location of the library.
12004      ;;
12005    esac
12006
12007    case $cc_basename in
12008      CC*)
12009	# FIXME: insert proper C++ library support
12010	ld_shlibs_CXX=no
12011	;;
12012      aCC*)
12013	case $host_cpu in
12014	hppa*64*)
12015	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12016	  ;;
12017	ia64*)
12018	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12019	  ;;
12020	*)
12021	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12022	  ;;
12023	esac
12024	# Commands to make compiler produce verbose output that lists
12025	# what "hidden" libraries, object files and flags are used when
12026	# linking a shared library.
12027	#
12028	# There doesn't appear to be a way to prevent this compiler from
12029	# explicitly linking system object files so we need to strip them
12030	# from the output so that they don't get included in the library
12031	# dependencies.
12032	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'
12033	;;
12034      *)
12035	if test "$GXX" = yes; then
12036	  if test $with_gnu_ld = no; then
12037	    case $host_cpu in
12038	    hppa*64*)
12039	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12040	      ;;
12041	    ia64*)
12042	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12043	      ;;
12044	    *)
12045	      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'
12046	      ;;
12047	    esac
12048	  fi
12049	else
12050	  # FIXME: insert proper C++ library support
12051	  ld_shlibs_CXX=no
12052	fi
12053	;;
12054    esac
12055    ;;
12056  interix[3-9]*)
12057    hardcode_direct_CXX=no
12058    hardcode_shlibpath_var_CXX=no
12059    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12060    export_dynamic_flag_spec_CXX='${wl}-E'
12061    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12062    # Instead, shared libraries are loaded at an image base (0x10000000 by
12063    # default) and relocated if they conflict, which is a slow very memory
12064    # consuming and fragmenting process.  To avoid this, we pick a random,
12065    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12066    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12067    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'
12068    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'
12069    ;;
12070  irix5* | irix6*)
12071    case $cc_basename in
12072      CC*)
12073	# SGI C++
12074	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'
12075
12076	# Archives containing C++ object files must be created using
12077	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12078	# necessary to make sure instantiated templates are included
12079	# in the archive.
12080	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12081	;;
12082      *)
12083	if test "$GXX" = yes; then
12084	  if test "$with_gnu_ld" = no; then
12085	    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'
12086	  else
12087	    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'
12088	  fi
12089	fi
12090	link_all_deplibs_CXX=yes
12091	;;
12092    esac
12093    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12094    hardcode_libdir_separator_CXX=:
12095    ;;
12096  linux* | k*bsd*-gnu)
12097    case $cc_basename in
12098      KCC*)
12099	# Kuck and Associates, Inc. (KAI) C++ Compiler
12100
12101	# KCC will only create a shared library if the output file
12102	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12103	# to its proper name (with version) after linking.
12104	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'
12105	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'
12106	# Commands to make compiler produce verbose output that lists
12107	# what "hidden" libraries, object files and flags are used when
12108	# linking a shared library.
12109	#
12110	# There doesn't appear to be a way to prevent this compiler from
12111	# explicitly linking system object files so we need to strip them
12112	# from the output so that they don't get included in the library
12113	# dependencies.
12114	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'
12115
12116	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12117	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12118
12119	# Archives containing C++ object files must be created using
12120	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12121	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12122	;;
12123      icpc*)
12124	# Intel C++
12125	with_gnu_ld=yes
12126	# version 8.0 and above of icpc choke on multiply defined symbols
12127	# if we add $predep_objects and $postdep_objects, however 7.1 and
12128	# earlier do not add the objects themselves.
12129	case `$CC -V 2>&1` in
12130	*"Version 7."*)
12131  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12132  	  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'
12133	  ;;
12134	*)  # Version 8.0 or newer
12135	  tmp_idyn=
12136	  case $host_cpu in
12137	    ia64*) tmp_idyn=' -i_dynamic';;
12138	  esac
12139  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12140	  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'
12141	  ;;
12142	esac
12143	archive_cmds_need_lc_CXX=no
12144	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12145	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12146	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12147	;;
12148      pgCC* | pgcpp*)
12149        # Portland Group C++ compiler
12150	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12151  	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'
12152
12153	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12154	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12155	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'
12156        ;;
12157      cxx*)
12158	# Compaq C++
12159	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12160	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'
12161
12162	runpath_var=LD_RUN_PATH
12163	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12164	hardcode_libdir_separator_CXX=:
12165
12166	# Commands to make compiler produce verbose output that lists
12167	# what "hidden" libraries, object files and flags are used when
12168	# linking a shared library.
12169	#
12170	# There doesn't appear to be a way to prevent this compiler from
12171	# explicitly linking system object files so we need to strip them
12172	# from the output so that they don't get included in the library
12173	# dependencies.
12174	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'
12175	;;
12176      *)
12177	case `$CC -V 2>&1 | sed 5q` in
12178	*Sun\ C*)
12179	  # Sun C++ 5.9
12180	  no_undefined_flag_CXX=' -zdefs'
12181	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12182	  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'
12183	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12184	  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'
12185
12186	  # Not sure whether something based on
12187	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12188	  # would be better.
12189	  output_verbose_link_cmd='echo'
12190
12191	  # Archives containing C++ object files must be created using
12192	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12193	  # necessary to make sure instantiated templates are included
12194	  # in the archive.
12195	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12196	  ;;
12197	esac
12198	;;
12199    esac
12200    ;;
12201  lynxos*)
12202    # FIXME: insert proper C++ library support
12203    ld_shlibs_CXX=no
12204    ;;
12205  m88k*)
12206    # FIXME: insert proper C++ library support
12207    ld_shlibs_CXX=no
12208    ;;
12209  mvs*)
12210    case $cc_basename in
12211      cxx*)
12212	# FIXME: insert proper C++ library support
12213	ld_shlibs_CXX=no
12214	;;
12215      *)
12216	# FIXME: insert proper C++ library support
12217	ld_shlibs_CXX=no
12218	;;
12219    esac
12220    ;;
12221  netbsd*)
12222    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12223      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12224      wlarc=
12225      hardcode_libdir_flag_spec_CXX='-R$libdir'
12226      hardcode_direct_CXX=yes
12227      hardcode_shlibpath_var_CXX=no
12228    fi
12229    # Workaround some broken pre-1.5 toolchains
12230    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12231    ;;
12232  openbsd2*)
12233    # C++ shared libraries are fairly broken
12234    ld_shlibs_CXX=no
12235    ;;
12236  openbsd*)
12237    if test -f /usr/libexec/ld.so; then
12238      hardcode_direct_CXX=yes
12239      hardcode_shlibpath_var_CXX=no
12240      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12241      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12242      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12243	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12244	export_dynamic_flag_spec_CXX='${wl}-E'
12245	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12246      fi
12247      output_verbose_link_cmd='echo'
12248    else
12249      ld_shlibs_CXX=no
12250    fi
12251    ;;
12252  osf3*)
12253    case $cc_basename in
12254      KCC*)
12255	# Kuck and Associates, Inc. (KAI) C++ Compiler
12256
12257	# KCC will only create a shared library if the output file
12258	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12259	# to its proper name (with version) after linking.
12260	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'
12261
12262	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12263	hardcode_libdir_separator_CXX=:
12264
12265	# Archives containing C++ object files must be created using
12266	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12267	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12268
12269	;;
12270      RCC*)
12271	# Rational C++ 2.4.1
12272	# FIXME: insert proper C++ library support
12273	ld_shlibs_CXX=no
12274	;;
12275      cxx*)
12276	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12277	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'
12278
12279	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12280	hardcode_libdir_separator_CXX=:
12281
12282	# Commands to make compiler produce verbose output that lists
12283	# what "hidden" libraries, object files and flags are used when
12284	# linking a shared library.
12285	#
12286	# There doesn't appear to be a way to prevent this compiler from
12287	# explicitly linking system object files so we need to strip them
12288	# from the output so that they don't get included in the library
12289	# dependencies.
12290	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'
12291	;;
12292      *)
12293	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12294	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12295	  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'
12296
12297	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12298	  hardcode_libdir_separator_CXX=:
12299
12300	  # Commands to make compiler produce verbose output that lists
12301	  # what "hidden" libraries, object files and flags are used when
12302	  # linking a shared library.
12303	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12304
12305	else
12306	  # FIXME: insert proper C++ library support
12307	  ld_shlibs_CXX=no
12308	fi
12309	;;
12310    esac
12311    ;;
12312  osf4* | osf5*)
12313    case $cc_basename in
12314      KCC*)
12315	# Kuck and Associates, Inc. (KAI) C++ Compiler
12316
12317	# KCC will only create a shared library if the output file
12318	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12319	# to its proper name (with version) after linking.
12320	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'
12321
12322	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12323	hardcode_libdir_separator_CXX=:
12324
12325	# Archives containing C++ object files must be created using
12326	# the KAI C++ compiler.
12327	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12328	;;
12329      RCC*)
12330	# Rational C++ 2.4.1
12331	# FIXME: insert proper C++ library support
12332	ld_shlibs_CXX=no
12333	;;
12334      cxx*)
12335	allow_undefined_flag_CXX=' -expect_unresolved \*'
12336	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'
12337	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12338	  echo "-hidden">> $lib.exp~
12339	  $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~
12340	  $rm $lib.exp'
12341
12342	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12343	hardcode_libdir_separator_CXX=:
12344
12345	# Commands to make compiler produce verbose output that lists
12346	# what "hidden" libraries, object files and flags are used when
12347	# linking a shared library.
12348	#
12349	# There doesn't appear to be a way to prevent this compiler from
12350	# explicitly linking system object files so we need to strip them
12351	# from the output so that they don't get included in the library
12352	# dependencies.
12353	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'
12354	;;
12355      *)
12356	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12357	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12358	 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'
12359
12360	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12361	  hardcode_libdir_separator_CXX=:
12362
12363	  # Commands to make compiler produce verbose output that lists
12364	  # what "hidden" libraries, object files and flags are used when
12365	  # linking a shared library.
12366	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12367
12368	else
12369	  # FIXME: insert proper C++ library support
12370	  ld_shlibs_CXX=no
12371	fi
12372	;;
12373    esac
12374    ;;
12375  psos*)
12376    # FIXME: insert proper C++ library support
12377    ld_shlibs_CXX=no
12378    ;;
12379  sunos4*)
12380    case $cc_basename in
12381      CC*)
12382	# Sun C++ 4.x
12383	# FIXME: insert proper C++ library support
12384	ld_shlibs_CXX=no
12385	;;
12386      lcc*)
12387	# Lucid
12388	# FIXME: insert proper C++ library support
12389	ld_shlibs_CXX=no
12390	;;
12391      *)
12392	# FIXME: insert proper C++ library support
12393	ld_shlibs_CXX=no
12394	;;
12395    esac
12396    ;;
12397  solaris*)
12398    case $cc_basename in
12399      CC*)
12400	# Sun C++ 4.2, 5.x and Centerline C++
12401        archive_cmds_need_lc_CXX=yes
12402	no_undefined_flag_CXX=' -zdefs'
12403	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12404	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12405	$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'
12406
12407	hardcode_libdir_flag_spec_CXX='-R$libdir'
12408	hardcode_shlibpath_var_CXX=no
12409	case $host_os in
12410	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12411	  *)
12412	    # The compiler driver will combine and reorder linker options,
12413	    # but understands `-z linker_flag'.
12414	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12415	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12416	    ;;
12417	esac
12418	link_all_deplibs_CXX=yes
12419
12420	output_verbose_link_cmd='echo'
12421
12422	# Archives containing C++ object files must be created using
12423	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12424	# necessary to make sure instantiated templates are included
12425	# in the archive.
12426	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12427	;;
12428      gcx*)
12429	# Green Hills C++ Compiler
12430	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12431
12432	# The C++ compiler must be used to create the archive.
12433	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12434	;;
12435      *)
12436	# GNU C++ compiler with Solaris linker
12437	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12438	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12439	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12440	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12441	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12442		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12443
12444	    # Commands to make compiler produce verbose output that lists
12445	    # what "hidden" libraries, object files and flags are used when
12446	    # linking a shared library.
12447	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12448	  else
12449	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12450	    # platform.
12451	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12452	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12453		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12454
12455	    # Commands to make compiler produce verbose output that lists
12456	    # what "hidden" libraries, object files and flags are used when
12457	    # linking a shared library.
12458	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12459	  fi
12460
12461	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12462	  case $host_os in
12463	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12464	  *)
12465	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12466	    ;;
12467	  esac
12468	fi
12469	;;
12470    esac
12471    ;;
12472  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12473    no_undefined_flag_CXX='${wl}-z,text'
12474    archive_cmds_need_lc_CXX=no
12475    hardcode_shlibpath_var_CXX=no
12476    runpath_var='LD_RUN_PATH'
12477
12478    case $cc_basename in
12479      CC*)
12480	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12481	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12482	;;
12483      *)
12484	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12485	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12486	;;
12487    esac
12488    ;;
12489  sysv5* | sco3.2v5* | sco5v6*)
12490    # Note: We can NOT use -z defs as we might desire, because we do not
12491    # link with -lc, and that would cause any symbols used from libc to
12492    # always be unresolved, which means just about no library would
12493    # ever link correctly.  If we're not using GNU ld we use -z text
12494    # though, which does catch some bad symbols but isn't as heavy-handed
12495    # as -z defs.
12496    # For security reasons, it is highly recommended that you always
12497    # use absolute paths for naming shared libraries, and exclude the
12498    # DT_RUNPATH tag from executables and libraries.  But doing so
12499    # requires that you compile everything twice, which is a pain.
12500    # So that behaviour is only enabled if SCOABSPATH is set to a
12501    # non-empty value in the environment.  Most likely only useful for
12502    # creating official distributions of packages.
12503    # This is a hack until libtool officially supports absolute path
12504    # names for shared libraries.
12505    no_undefined_flag_CXX='${wl}-z,text'
12506    allow_undefined_flag_CXX='${wl}-z,nodefs'
12507    archive_cmds_need_lc_CXX=no
12508    hardcode_shlibpath_var_CXX=no
12509    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12510    hardcode_libdir_separator_CXX=':'
12511    link_all_deplibs_CXX=yes
12512    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12513    runpath_var='LD_RUN_PATH'
12514
12515    case $cc_basename in
12516      CC*)
12517	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12518	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12519	;;
12520      *)
12521	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12522	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12523	;;
12524    esac
12525    ;;
12526  tandem*)
12527    case $cc_basename in
12528      NCC*)
12529	# NonStop-UX NCC 3.20
12530	# FIXME: insert proper C++ library support
12531	ld_shlibs_CXX=no
12532	;;
12533      *)
12534	# FIXME: insert proper C++ library support
12535	ld_shlibs_CXX=no
12536	;;
12537    esac
12538    ;;
12539  vxworks*)
12540    # FIXME: insert proper C++ library support
12541    ld_shlibs_CXX=no
12542    ;;
12543  *)
12544    # FIXME: insert proper C++ library support
12545    ld_shlibs_CXX=no
12546    ;;
12547esac
12548{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12549$as_echo "$ld_shlibs_CXX" >&6; }
12550test "$ld_shlibs_CXX" = no && can_build_shared=no
12551
12552GCC_CXX="$GXX"
12553LD_CXX="$LD"
12554
12555cat > conftest.$ac_ext <<EOF
12556class Foo
12557{
12558public:
12559  Foo (void) { a = 0; }
12560private:
12561  int a;
12562};
12563EOF
12564
12565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12566  (eval $ac_compile) 2>&5
12567  ac_status=$?
12568  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569  (exit $ac_status); }; then
12570  # Parse the compiler output and extract the necessary
12571  # objects, libraries and library flags.
12572
12573  # Sentinel used to keep track of whether or not we are before
12574  # the conftest object file.
12575  pre_test_object_deps_done=no
12576
12577  # The `*' in the case matches for architectures that use `case' in
12578  # $output_verbose_cmd can trigger glob expansion during the loop
12579  # eval without this substitution.
12580  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12581
12582  for p in `eval $output_verbose_link_cmd`; do
12583    case $p in
12584
12585    -L* | -R* | -l*)
12586       # Some compilers place space between "-{L,R}" and the path.
12587       # Remove the space.
12588       if test $p = "-L" \
12589	  || test $p = "-R"; then
12590	 prev=$p
12591	 continue
12592       else
12593	 prev=
12594       fi
12595
12596       if test "$pre_test_object_deps_done" = no; then
12597	 case $p in
12598	 -L* | -R*)
12599	   # Internal compiler library paths should come after those
12600	   # provided the user.  The postdeps already come after the
12601	   # user supplied libs so there is no need to process them.
12602	   if test -z "$compiler_lib_search_path_CXX"; then
12603	     compiler_lib_search_path_CXX="${prev}${p}"
12604	   else
12605	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12606	   fi
12607	   ;;
12608	 # The "-l" case would never come before the object being
12609	 # linked, so don't bother handling this case.
12610	 esac
12611       else
12612	 if test -z "$postdeps_CXX"; then
12613	   postdeps_CXX="${prev}${p}"
12614	 else
12615	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12616	 fi
12617       fi
12618       ;;
12619
12620    *.$objext)
12621       # This assumes that the test object file only shows up
12622       # once in the compiler output.
12623       if test "$p" = "conftest.$objext"; then
12624	 pre_test_object_deps_done=yes
12625	 continue
12626       fi
12627
12628       if test "$pre_test_object_deps_done" = no; then
12629	 if test -z "$predep_objects_CXX"; then
12630	   predep_objects_CXX="$p"
12631	 else
12632	   predep_objects_CXX="$predep_objects_CXX $p"
12633	 fi
12634       else
12635	 if test -z "$postdep_objects_CXX"; then
12636	   postdep_objects_CXX="$p"
12637	 else
12638	   postdep_objects_CXX="$postdep_objects_CXX $p"
12639	 fi
12640       fi
12641       ;;
12642
12643    *) ;; # Ignore the rest.
12644
12645    esac
12646  done
12647
12648  # Clean up.
12649  rm -f a.out a.exe
12650else
12651  echo "libtool.m4: error: problem compiling CXX test program"
12652fi
12653
12654$rm -f confest.$objext
12655
12656compiler_lib_search_dirs_CXX=
12657if test -n "$compiler_lib_search_path_CXX"; then
12658  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12659fi
12660
12661# PORTME: override above test on systems where it is broken
12662case $host_os in
12663interix[3-9]*)
12664  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12665  # hack all around it, let's just trust "g++" to DTRT.
12666  predep_objects_CXX=
12667  postdep_objects_CXX=
12668  postdeps_CXX=
12669  ;;
12670
12671linux*)
12672  case `$CC -V 2>&1 | sed 5q` in
12673  *Sun\ C*)
12674    # Sun C++ 5.9
12675    #
12676    # The more standards-conforming stlport4 library is
12677    # incompatible with the Cstd library. Avoid specifying
12678    # it if it's in CXXFLAGS. Ignore libCrun as
12679    # -library=stlport4 depends on it.
12680    case " $CXX $CXXFLAGS " in
12681    *" -library=stlport4 "*)
12682      solaris_use_stlport4=yes
12683      ;;
12684    esac
12685    if test "$solaris_use_stlport4" != yes; then
12686      postdeps_CXX='-library=Cstd -library=Crun'
12687    fi
12688    ;;
12689  esac
12690  ;;
12691
12692solaris*)
12693  case $cc_basename in
12694  CC*)
12695    # The more standards-conforming stlport4 library is
12696    # incompatible with the Cstd library. Avoid specifying
12697    # it if it's in CXXFLAGS. Ignore libCrun as
12698    # -library=stlport4 depends on it.
12699    case " $CXX $CXXFLAGS " in
12700    *" -library=stlport4 "*)
12701      solaris_use_stlport4=yes
12702      ;;
12703    esac
12704
12705    # Adding this requires a known-good setup of shared libraries for
12706    # Sun compiler versions before 5.6, else PIC objects from an old
12707    # archive will be linked into the output, leading to subtle bugs.
12708    if test "$solaris_use_stlport4" != yes; then
12709      postdeps_CXX='-library=Cstd -library=Crun'
12710    fi
12711    ;;
12712  esac
12713  ;;
12714esac
12715
12716case " $postdeps_CXX " in
12717*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12718esac
12719
12720lt_prog_compiler_wl_CXX=
12721lt_prog_compiler_pic_CXX=
12722lt_prog_compiler_static_CXX=
12723
12724{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12725$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12726
12727  # C++ specific cases for pic, static, wl, etc.
12728  if test "$GXX" = yes; then
12729    lt_prog_compiler_wl_CXX='-Wl,'
12730    lt_prog_compiler_static_CXX='-static'
12731
12732    case $host_os in
12733    aix*)
12734      # All AIX code is PIC.
12735      if test "$host_cpu" = ia64; then
12736	# AIX 5 now supports IA64 processor
12737	lt_prog_compiler_static_CXX='-Bstatic'
12738      fi
12739      ;;
12740    amigaos*)
12741      # FIXME: we need at least 68020 code to build shared libraries, but
12742      # adding the `-m68020' flag to GCC prevents building anything better,
12743      # like `-m68040'.
12744      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12745      ;;
12746    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12747      # PIC is the default for these OSes.
12748      ;;
12749    mingw* | cygwin* | os2* | pw32*)
12750      # This hack is so that the source file can tell whether it is being
12751      # built for inclusion in a dll (and should export symbols for example).
12752      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12753      # (--disable-auto-import) libraries
12754      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12755      ;;
12756    darwin* | rhapsody*)
12757      # PIC is the default on this platform
12758      # Common symbols not allowed in MH_DYLIB files
12759      lt_prog_compiler_pic_CXX='-fno-common'
12760      ;;
12761    *djgpp*)
12762      # DJGPP does not support shared libraries at all
12763      lt_prog_compiler_pic_CXX=
12764      ;;
12765    interix[3-9]*)
12766      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12767      # Instead, we relocate shared libraries at runtime.
12768      ;;
12769    sysv4*MP*)
12770      if test -d /usr/nec; then
12771	lt_prog_compiler_pic_CXX=-Kconform_pic
12772      fi
12773      ;;
12774    hpux*)
12775      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12776      # not for PA HP-UX.
12777      case $host_cpu in
12778      hppa*64*|ia64*)
12779	;;
12780      *)
12781	lt_prog_compiler_pic_CXX='-fPIC'
12782	;;
12783      esac
12784      ;;
12785    *)
12786      lt_prog_compiler_pic_CXX='-fPIC'
12787      ;;
12788    esac
12789  else
12790    case $host_os in
12791      aix[4-9]*)
12792	# All AIX code is PIC.
12793	if test "$host_cpu" = ia64; then
12794	  # AIX 5 now supports IA64 processor
12795	  lt_prog_compiler_static_CXX='-Bstatic'
12796	else
12797	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12798	fi
12799	;;
12800      chorus*)
12801	case $cc_basename in
12802	cxch68*)
12803	  # Green Hills C++ Compiler
12804	  # _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"
12805	  ;;
12806	esac
12807	;;
12808       darwin*)
12809         # PIC is the default on this platform
12810         # Common symbols not allowed in MH_DYLIB files
12811         case $cc_basename in
12812           xlc*)
12813           lt_prog_compiler_pic_CXX='-qnocommon'
12814           lt_prog_compiler_wl_CXX='-Wl,'
12815           ;;
12816         esac
12817       ;;
12818      dgux*)
12819	case $cc_basename in
12820	  ec++*)
12821	    lt_prog_compiler_pic_CXX='-KPIC'
12822	    ;;
12823	  ghcx*)
12824	    # Green Hills C++ Compiler
12825	    lt_prog_compiler_pic_CXX='-pic'
12826	    ;;
12827	  *)
12828	    ;;
12829	esac
12830	;;
12831      freebsd* | dragonfly*)
12832	# FreeBSD uses GNU C++
12833	;;
12834      hpux9* | hpux10* | hpux11*)
12835	case $cc_basename in
12836	  CC*)
12837	    lt_prog_compiler_wl_CXX='-Wl,'
12838	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12839	    if test "$host_cpu" != ia64; then
12840	      lt_prog_compiler_pic_CXX='+Z'
12841	    fi
12842	    ;;
12843	  aCC*)
12844	    lt_prog_compiler_wl_CXX='-Wl,'
12845	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12846	    case $host_cpu in
12847	    hppa*64*|ia64*)
12848	      # +Z the default
12849	      ;;
12850	    *)
12851	      lt_prog_compiler_pic_CXX='+Z'
12852	      ;;
12853	    esac
12854	    ;;
12855	  *)
12856	    ;;
12857	esac
12858	;;
12859      interix*)
12860	# This is c89, which is MS Visual C++ (no shared libs)
12861	# Anyone wants to do a port?
12862	;;
12863      irix5* | irix6* | nonstopux*)
12864	case $cc_basename in
12865	  CC*)
12866	    lt_prog_compiler_wl_CXX='-Wl,'
12867	    lt_prog_compiler_static_CXX='-non_shared'
12868	    # CC pic flag -KPIC is the default.
12869	    ;;
12870	  *)
12871	    ;;
12872	esac
12873	;;
12874      linux* | k*bsd*-gnu)
12875	case $cc_basename in
12876	  KCC*)
12877	    # KAI C++ Compiler
12878	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12879	    lt_prog_compiler_pic_CXX='-fPIC'
12880	    ;;
12881	  icpc* | ecpc*)
12882	    # Intel C++
12883	    lt_prog_compiler_wl_CXX='-Wl,'
12884	    lt_prog_compiler_pic_CXX='-KPIC'
12885	    lt_prog_compiler_static_CXX='-static'
12886	    ;;
12887	  pgCC* | pgcpp*)
12888	    # Portland Group C++ compiler.
12889	    lt_prog_compiler_wl_CXX='-Wl,'
12890	    lt_prog_compiler_pic_CXX='-fpic'
12891	    lt_prog_compiler_static_CXX='-Bstatic'
12892	    ;;
12893	  cxx*)
12894	    # Compaq C++
12895	    # Make sure the PIC flag is empty.  It appears that all Alpha
12896	    # Linux and Compaq Tru64 Unix objects are PIC.
12897	    lt_prog_compiler_pic_CXX=
12898	    lt_prog_compiler_static_CXX='-non_shared'
12899	    ;;
12900	  *)
12901	    case `$CC -V 2>&1 | sed 5q` in
12902	    *Sun\ C*)
12903	      # Sun C++ 5.9
12904	      lt_prog_compiler_pic_CXX='-KPIC'
12905	      lt_prog_compiler_static_CXX='-Bstatic'
12906	      lt_prog_compiler_wl_CXX='-Qoption ld '
12907	      ;;
12908	    esac
12909	    ;;
12910	esac
12911	;;
12912      lynxos*)
12913	;;
12914      m88k*)
12915	;;
12916      mvs*)
12917	case $cc_basename in
12918	  cxx*)
12919	    lt_prog_compiler_pic_CXX='-W c,exportall'
12920	    ;;
12921	  *)
12922	    ;;
12923	esac
12924	;;
12925      netbsd*)
12926	;;
12927      osf3* | osf4* | osf5*)
12928	case $cc_basename in
12929	  KCC*)
12930	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12931	    ;;
12932	  RCC*)
12933	    # Rational C++ 2.4.1
12934	    lt_prog_compiler_pic_CXX='-pic'
12935	    ;;
12936	  cxx*)
12937	    # Digital/Compaq C++
12938	    lt_prog_compiler_wl_CXX='-Wl,'
12939	    # Make sure the PIC flag is empty.  It appears that all Alpha
12940	    # Linux and Compaq Tru64 Unix objects are PIC.
12941	    lt_prog_compiler_pic_CXX=
12942	    lt_prog_compiler_static_CXX='-non_shared'
12943	    ;;
12944	  *)
12945	    ;;
12946	esac
12947	;;
12948      psos*)
12949	;;
12950      solaris*)
12951	case $cc_basename in
12952	  CC*)
12953	    # Sun C++ 4.2, 5.x and Centerline C++
12954	    lt_prog_compiler_pic_CXX='-KPIC'
12955	    lt_prog_compiler_static_CXX='-Bstatic'
12956	    lt_prog_compiler_wl_CXX='-Qoption ld '
12957	    ;;
12958	  gcx*)
12959	    # Green Hills C++ Compiler
12960	    lt_prog_compiler_pic_CXX='-PIC'
12961	    ;;
12962	  *)
12963	    ;;
12964	esac
12965	;;
12966      sunos4*)
12967	case $cc_basename in
12968	  CC*)
12969	    # Sun C++ 4.x
12970	    lt_prog_compiler_pic_CXX='-pic'
12971	    lt_prog_compiler_static_CXX='-Bstatic'
12972	    ;;
12973	  lcc*)
12974	    # Lucid
12975	    lt_prog_compiler_pic_CXX='-pic'
12976	    ;;
12977	  *)
12978	    ;;
12979	esac
12980	;;
12981      tandem*)
12982	case $cc_basename in
12983	  NCC*)
12984	    # NonStop-UX NCC 3.20
12985	    lt_prog_compiler_pic_CXX='-KPIC'
12986	    ;;
12987	  *)
12988	    ;;
12989	esac
12990	;;
12991      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12992	case $cc_basename in
12993	  CC*)
12994	    lt_prog_compiler_wl_CXX='-Wl,'
12995	    lt_prog_compiler_pic_CXX='-KPIC'
12996	    lt_prog_compiler_static_CXX='-Bstatic'
12997	    ;;
12998	esac
12999	;;
13000      vxworks*)
13001	;;
13002      *)
13003	lt_prog_compiler_can_build_shared_CXX=no
13004	;;
13005    esac
13006  fi
13007
13008{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13009$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13010
13011#
13012# Check to make sure the PIC flag actually works.
13013#
13014if test -n "$lt_prog_compiler_pic_CXX"; then
13015
13016{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13017$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13018if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13019  $as_echo_n "(cached) " >&6
13020else
13021  lt_cv_prog_compiler_pic_works_CXX=no
13022  ac_outfile=conftest.$ac_objext
13023   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13024   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13025   # Insert the option either (1) after the last *FLAGS variable, or
13026   # (2) before a word containing "conftest.", or (3) at the end.
13027   # Note that $ac_compile itself does not contain backslashes and begins
13028   # with a dollar sign (not a hyphen), so the echo should work correctly.
13029   # The option is referenced via a variable to avoid confusing sed.
13030   lt_compile=`echo "$ac_compile" | $SED \
13031   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13032   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13033   -e 's:$: $lt_compiler_flag:'`
13034   (eval echo "\"\$as_me:13034: $lt_compile\"" >&5)
13035   (eval "$lt_compile" 2>conftest.err)
13036   ac_status=$?
13037   cat conftest.err >&5
13038   echo "$as_me:13038: \$? = $ac_status" >&5
13039   if (exit $ac_status) && test -s "$ac_outfile"; then
13040     # The compiler can only warn and ignore the option if not recognized
13041     # So say no if there are warnings other than the usual output.
13042     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13043     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13044     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13045       lt_cv_prog_compiler_pic_works_CXX=yes
13046     fi
13047   fi
13048   $rm conftest*
13049
13050fi
13051{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13052$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13053
13054if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13055    case $lt_prog_compiler_pic_CXX in
13056     "" | " "*) ;;
13057     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13058     esac
13059else
13060    lt_prog_compiler_pic_CXX=
13061     lt_prog_compiler_can_build_shared_CXX=no
13062fi
13063
13064fi
13065case $host_os in
13066  # For platforms which do not support PIC, -DPIC is meaningless:
13067  *djgpp*)
13068    lt_prog_compiler_pic_CXX=
13069    ;;
13070  *)
13071    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13072    ;;
13073esac
13074
13075#
13076# Check to make sure the static flag actually works.
13077#
13078wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13079{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13080$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13081if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13082  $as_echo_n "(cached) " >&6
13083else
13084  lt_cv_prog_compiler_static_works_CXX=no
13085   save_LDFLAGS="$LDFLAGS"
13086   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13087   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13088   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13089     # The linker can only warn and ignore the option if not recognized
13090     # So say no if there are warnings
13091     if test -s conftest.err; then
13092       # Append any errors to the config.log.
13093       cat conftest.err 1>&5
13094       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13095       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13096       if diff conftest.exp conftest.er2 >/dev/null; then
13097         lt_cv_prog_compiler_static_works_CXX=yes
13098       fi
13099     else
13100       lt_cv_prog_compiler_static_works_CXX=yes
13101     fi
13102   fi
13103   $rm -r conftest*
13104   LDFLAGS="$save_LDFLAGS"
13105
13106fi
13107{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13108$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13109
13110if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13111    :
13112else
13113    lt_prog_compiler_static_CXX=
13114fi
13115
13116
13117{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13118$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13119if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13120  $as_echo_n "(cached) " >&6
13121else
13122  lt_cv_prog_compiler_c_o_CXX=no
13123   $rm -r conftest 2>/dev/null
13124   mkdir conftest
13125   cd conftest
13126   mkdir out
13127   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13128
13129   lt_compiler_flag="-o out/conftest2.$ac_objext"
13130   # Insert the option either (1) after the last *FLAGS variable, or
13131   # (2) before a word containing "conftest.", or (3) at the end.
13132   # Note that $ac_compile itself does not contain backslashes and begins
13133   # with a dollar sign (not a hyphen), so the echo should work correctly.
13134   lt_compile=`echo "$ac_compile" | $SED \
13135   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13136   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13137   -e 's:$: $lt_compiler_flag:'`
13138   (eval echo "\"\$as_me:13138: $lt_compile\"" >&5)
13139   (eval "$lt_compile" 2>out/conftest.err)
13140   ac_status=$?
13141   cat out/conftest.err >&5
13142   echo "$as_me:13142: \$? = $ac_status" >&5
13143   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13144   then
13145     # The compiler can only warn and ignore the option if not recognized
13146     # So say no if there are warnings
13147     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13148     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13149     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13150       lt_cv_prog_compiler_c_o_CXX=yes
13151     fi
13152   fi
13153   chmod u+w . 2>&5
13154   $rm conftest*
13155   # SGI C++ compiler will create directory out/ii_files/ for
13156   # template instantiation
13157   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13158   $rm out/* && rmdir out
13159   cd ..
13160   rmdir conftest
13161   $rm conftest*
13162
13163fi
13164{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13165$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13166
13167
13168hard_links="nottested"
13169if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13170  # do not overwrite the value of need_locks provided by the user
13171  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13172$as_echo_n "checking if we can lock with hard links... " >&6; }
13173  hard_links=yes
13174  $rm conftest*
13175  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13176  touch conftest.a
13177  ln conftest.a conftest.b 2>&5 || hard_links=no
13178  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13179  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13180$as_echo "$hard_links" >&6; }
13181  if test "$hard_links" = no; then
13182    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13183$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13184    need_locks=warn
13185  fi
13186else
13187  need_locks=no
13188fi
13189
13190{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13191$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13192
13193  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13194  case $host_os in
13195  aix[4-9]*)
13196    # If we're using GNU nm, then we don't want the "-C" option.
13197    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13198    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13199      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'
13200    else
13201      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'
13202    fi
13203    ;;
13204  pw32*)
13205    export_symbols_cmds_CXX="$ltdll_cmds"
13206  ;;
13207  cygwin* | mingw*)
13208    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'
13209  ;;
13210  *)
13211    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13212  ;;
13213  esac
13214  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13215
13216{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13217$as_echo "$ld_shlibs_CXX" >&6; }
13218test "$ld_shlibs_CXX" = no && can_build_shared=no
13219
13220#
13221# Do we need to explicitly link libc?
13222#
13223case "x$archive_cmds_need_lc_CXX" in
13224x|xyes)
13225  # Assume -lc should be added
13226  archive_cmds_need_lc_CXX=yes
13227
13228  if test "$enable_shared" = yes && test "$GCC" = yes; then
13229    case $archive_cmds_CXX in
13230    *'~'*)
13231      # FIXME: we may have to deal with multi-command sequences.
13232      ;;
13233    '$CC '*)
13234      # Test whether the compiler implicitly links with -lc since on some
13235      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13236      # to ld, don't add -lc before -lgcc.
13237      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13238$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13239      $rm conftest*
13240      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13241
13242      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13243  (eval $ac_compile) 2>&5
13244  ac_status=$?
13245  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246  (exit $ac_status); } 2>conftest.err; then
13247        soname=conftest
13248        lib=conftest
13249        libobjs=conftest.$ac_objext
13250        deplibs=
13251        wl=$lt_prog_compiler_wl_CXX
13252	pic_flag=$lt_prog_compiler_pic_CXX
13253        compiler_flags=-v
13254        linker_flags=-v
13255        verstring=
13256        output_objdir=.
13257        libname=conftest
13258        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13259        allow_undefined_flag_CXX=
13260        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13261  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13262  ac_status=$?
13263  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264  (exit $ac_status); }
13265        then
13266	  archive_cmds_need_lc_CXX=no
13267        else
13268	  archive_cmds_need_lc_CXX=yes
13269        fi
13270        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13271      else
13272        cat conftest.err 1>&5
13273      fi
13274      $rm conftest*
13275      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13276$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13277      ;;
13278    esac
13279  fi
13280  ;;
13281esac
13282
13283{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13284$as_echo_n "checking dynamic linker characteristics... " >&6; }
13285library_names_spec=
13286libname_spec='lib$name'
13287soname_spec=
13288shrext_cmds=".so"
13289postinstall_cmds=
13290postuninstall_cmds=
13291finish_cmds=
13292finish_eval=
13293shlibpath_var=
13294shlibpath_overrides_runpath=unknown
13295version_type=none
13296dynamic_linker="$host_os ld.so"
13297sys_lib_dlsearch_path_spec="/lib /usr/lib"
13298
13299need_lib_prefix=unknown
13300hardcode_into_libs=no
13301
13302# when you set need_version to no, make sure it does not cause -set_version
13303# flags to be left without arguments
13304need_version=unknown
13305
13306case $host_os in
13307aix3*)
13308  version_type=linux
13309  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13310  shlibpath_var=LIBPATH
13311
13312  # AIX 3 has no versioning support, so we append a major version to the name.
13313  soname_spec='${libname}${release}${shared_ext}$major'
13314  ;;
13315
13316aix[4-9]*)
13317  version_type=linux
13318  need_lib_prefix=no
13319  need_version=no
13320  hardcode_into_libs=yes
13321  if test "$host_cpu" = ia64; then
13322    # AIX 5 supports IA64
13323    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13324    shlibpath_var=LD_LIBRARY_PATH
13325  else
13326    # With GCC up to 2.95.x, collect2 would create an import file
13327    # for dependence libraries.  The import file would start with
13328    # the line `#! .'.  This would cause the generated library to
13329    # depend on `.', always an invalid library.  This was fixed in
13330    # development snapshots of GCC prior to 3.0.
13331    case $host_os in
13332      aix4 | aix4.[01] | aix4.[01].*)
13333      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13334	   echo ' yes '
13335	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13336	:
13337      else
13338	can_build_shared=no
13339      fi
13340      ;;
13341    esac
13342    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13343    # soname into executable. Probably we can add versioning support to
13344    # collect2, so additional links can be useful in future.
13345    if test "$aix_use_runtimelinking" = yes; then
13346      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13347      # instead of lib<name>.a to let people know that these are not
13348      # typical AIX shared libraries.
13349      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13350    else
13351      # We preserve .a as extension for shared libraries through AIX4.2
13352      # and later when we are not doing run time linking.
13353      library_names_spec='${libname}${release}.a $libname.a'
13354      soname_spec='${libname}${release}${shared_ext}$major'
13355    fi
13356    shlibpath_var=LIBPATH
13357  fi
13358  ;;
13359
13360amigaos*)
13361  library_names_spec='$libname.ixlibrary $libname.a'
13362  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13363  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'
13364  ;;
13365
13366beos*)
13367  library_names_spec='${libname}${shared_ext}'
13368  dynamic_linker="$host_os ld.so"
13369  shlibpath_var=LIBRARY_PATH
13370  ;;
13371
13372bsdi[45]*)
13373  version_type=linux
13374  need_version=no
13375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13376  soname_spec='${libname}${release}${shared_ext}$major'
13377  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13378  shlibpath_var=LD_LIBRARY_PATH
13379  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13380  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13381  # the default ld.so.conf also contains /usr/contrib/lib and
13382  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13383  # libtool to hard-code these into programs
13384  ;;
13385
13386cygwin* | mingw* | pw32*)
13387  version_type=windows
13388  shrext_cmds=".dll"
13389  need_version=no
13390  need_lib_prefix=no
13391
13392  case $GCC,$host_os in
13393  yes,cygwin* | yes,mingw* | yes,pw32*)
13394    library_names_spec='$libname.dll.a'
13395    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13396    postinstall_cmds='base_file=`basename \${file}`~
13397      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13398      dldir=$destdir/`dirname \$dlpath`~
13399      test -d \$dldir || mkdir -p \$dldir~
13400      $install_prog $dir/$dlname \$dldir/$dlname~
13401      chmod a+x \$dldir/$dlname'
13402    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13403      dlpath=$dir/\$dldll~
13404       $rm \$dlpath'
13405    shlibpath_overrides_runpath=yes
13406
13407    case $host_os in
13408    cygwin*)
13409      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13410      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13411      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13412      ;;
13413    mingw*)
13414      # MinGW DLLs use traditional 'lib' prefix
13415      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13416      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13417      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13418        # It is most probably a Windows format PATH printed by
13419        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13420        # path with ; separators, and with drive letters. We can handle the
13421        # drive letters (cygwin fileutils understands them), so leave them,
13422        # especially as we might pass files found there to a mingw objdump,
13423        # which wouldn't understand a cygwinified path. Ahh.
13424        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13425      else
13426        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13427      fi
13428      ;;
13429    pw32*)
13430      # pw32 DLLs use 'pw' prefix rather than 'lib'
13431      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13432      ;;
13433    esac
13434    ;;
13435
13436  *)
13437    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13438    ;;
13439  esac
13440  dynamic_linker='Win32 ld.exe'
13441  # FIXME: first we should search . and the directory the executable is in
13442  shlibpath_var=PATH
13443  ;;
13444
13445darwin* | rhapsody*)
13446  dynamic_linker="$host_os dyld"
13447  version_type=darwin
13448  need_lib_prefix=no
13449  need_version=no
13450  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13451  soname_spec='${libname}${release}${major}$shared_ext'
13452  shlibpath_overrides_runpath=yes
13453  shlibpath_var=DYLD_LIBRARY_PATH
13454  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13455
13456  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13457  ;;
13458
13459dgux*)
13460  version_type=linux
13461  need_lib_prefix=no
13462  need_version=no
13463  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13464  soname_spec='${libname}${release}${shared_ext}$major'
13465  shlibpath_var=LD_LIBRARY_PATH
13466  ;;
13467
13468freebsd1*)
13469  dynamic_linker=no
13470  ;;
13471
13472freebsd* | dragonfly*)
13473  # DragonFly does not have aout.  When/if they implement a new
13474  # versioning mechanism, adjust this.
13475  if test -x /usr/bin/objformat; then
13476    objformat=`/usr/bin/objformat`
13477  else
13478    case $host_os in
13479    freebsd[123]*) objformat=aout ;;
13480    *) objformat=elf ;;
13481    esac
13482  fi
13483  version_type=freebsd-$objformat
13484  case $version_type in
13485    freebsd-elf*)
13486      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13487      need_version=no
13488      need_lib_prefix=no
13489      ;;
13490    freebsd-*)
13491      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13492      need_version=yes
13493      ;;
13494  esac
13495  shlibpath_var=LD_LIBRARY_PATH
13496  case $host_os in
13497  freebsd2*)
13498    shlibpath_overrides_runpath=yes
13499    ;;
13500  freebsd3.[01]* | freebsdelf3.[01]*)
13501    shlibpath_overrides_runpath=yes
13502    hardcode_into_libs=yes
13503    ;;
13504  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13505  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13506    shlibpath_overrides_runpath=no
13507    hardcode_into_libs=yes
13508    ;;
13509  *) # from 4.6 on, and DragonFly
13510    shlibpath_overrides_runpath=yes
13511    hardcode_into_libs=yes
13512    ;;
13513  esac
13514  ;;
13515
13516gnu*)
13517  version_type=linux
13518  need_lib_prefix=no
13519  need_version=no
13520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13521  soname_spec='${libname}${release}${shared_ext}$major'
13522  shlibpath_var=LD_LIBRARY_PATH
13523  hardcode_into_libs=yes
13524  ;;
13525
13526hpux9* | hpux10* | hpux11*)
13527  # Give a soname corresponding to the major version so that dld.sl refuses to
13528  # link against other versions.
13529  version_type=sunos
13530  need_lib_prefix=no
13531  need_version=no
13532  case $host_cpu in
13533  ia64*)
13534    shrext_cmds='.so'
13535    hardcode_into_libs=yes
13536    dynamic_linker="$host_os dld.so"
13537    shlibpath_var=LD_LIBRARY_PATH
13538    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13539    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13540    soname_spec='${libname}${release}${shared_ext}$major'
13541    if test "X$HPUX_IA64_MODE" = X32; then
13542      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13543    else
13544      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13545    fi
13546    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13547    ;;
13548   hppa*64*)
13549     shrext_cmds='.sl'
13550     hardcode_into_libs=yes
13551     dynamic_linker="$host_os dld.sl"
13552     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13553     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13554     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13555     soname_spec='${libname}${release}${shared_ext}$major'
13556     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13557     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13558     ;;
13559   *)
13560    shrext_cmds='.sl'
13561    dynamic_linker="$host_os dld.sl"
13562    shlibpath_var=SHLIB_PATH
13563    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13564    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13565    soname_spec='${libname}${release}${shared_ext}$major'
13566    ;;
13567  esac
13568  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13569  postinstall_cmds='chmod 555 $lib'
13570  ;;
13571
13572interix[3-9]*)
13573  version_type=linux
13574  need_lib_prefix=no
13575  need_version=no
13576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13577  soname_spec='${libname}${release}${shared_ext}$major'
13578  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13579  shlibpath_var=LD_LIBRARY_PATH
13580  shlibpath_overrides_runpath=no
13581  hardcode_into_libs=yes
13582  ;;
13583
13584irix5* | irix6* | nonstopux*)
13585  case $host_os in
13586    nonstopux*) version_type=nonstopux ;;
13587    *)
13588	if test "$lt_cv_prog_gnu_ld" = yes; then
13589		version_type=linux
13590	else
13591		version_type=irix
13592	fi ;;
13593  esac
13594  need_lib_prefix=no
13595  need_version=no
13596  soname_spec='${libname}${release}${shared_ext}$major'
13597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13598  case $host_os in
13599  irix5* | nonstopux*)
13600    libsuff= shlibsuff=
13601    ;;
13602  *)
13603    case $LD in # libtool.m4 will add one of these switches to LD
13604    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13605      libsuff= shlibsuff= libmagic=32-bit;;
13606    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13607      libsuff=32 shlibsuff=N32 libmagic=N32;;
13608    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13609      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13610    *) libsuff= shlibsuff= libmagic=never-match;;
13611    esac
13612    ;;
13613  esac
13614  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13615  shlibpath_overrides_runpath=no
13616  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13617  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13618  hardcode_into_libs=yes
13619  ;;
13620
13621# No shared lib support for Linux oldld, aout, or coff.
13622linux*oldld* | linux*aout* | linux*coff*)
13623  dynamic_linker=no
13624  ;;
13625
13626# This must be Linux ELF.
13627linux* | k*bsd*-gnu)
13628  version_type=linux
13629  need_lib_prefix=no
13630  need_version=no
13631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13632  soname_spec='${libname}${release}${shared_ext}$major'
13633  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13634  shlibpath_var=LD_LIBRARY_PATH
13635  shlibpath_overrides_runpath=no
13636  # This implies no fast_install, which is unacceptable.
13637  # Some rework will be needed to allow for fast_install
13638  # before this can be enabled.
13639  hardcode_into_libs=yes
13640  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13641  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13642
13643  # Append ld.so.conf contents to the search path
13644  if test -f /etc/ld.so.conf; then
13645    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' ' '`
13646    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13647  fi
13648
13649  # We used to test for /lib/ld.so.1 and disable shared libraries on
13650  # powerpc, because MkLinux only supported shared libraries with the
13651  # GNU dynamic linker.  Since this was broken with cross compilers,
13652  # most powerpc-linux boxes support dynamic linking these days and
13653  # people can always --disable-shared, the test was removed, and we
13654  # assume the GNU/Linux dynamic linker is in use.
13655  dynamic_linker='GNU/Linux ld.so'
13656  ;;
13657
13658netbsd*)
13659  version_type=sunos
13660  need_lib_prefix=no
13661  need_version=no
13662  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13663    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13664    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13665    dynamic_linker='NetBSD (a.out) ld.so'
13666  else
13667    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13668    soname_spec='${libname}${release}${shared_ext}$major'
13669    dynamic_linker='NetBSD ld.elf_so'
13670  fi
13671  shlibpath_var=LD_LIBRARY_PATH
13672  shlibpath_overrides_runpath=yes
13673  hardcode_into_libs=yes
13674  ;;
13675
13676newsos6)
13677  version_type=linux
13678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13679  shlibpath_var=LD_LIBRARY_PATH
13680  shlibpath_overrides_runpath=yes
13681  ;;
13682
13683nto-qnx*)
13684  version_type=linux
13685  need_lib_prefix=no
13686  need_version=no
13687  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13688  soname_spec='${libname}${release}${shared_ext}$major'
13689  shlibpath_var=LD_LIBRARY_PATH
13690  shlibpath_overrides_runpath=yes
13691  ;;
13692
13693openbsd*)
13694  version_type=sunos
13695  sys_lib_dlsearch_path_spec="/usr/lib"
13696  need_lib_prefix=no
13697  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13698  case $host_os in
13699    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13700    *)                         need_version=no  ;;
13701  esac
13702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13703  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13704  shlibpath_var=LD_LIBRARY_PATH
13705  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13706    case $host_os in
13707      openbsd2.[89] | openbsd2.[89].*)
13708	shlibpath_overrides_runpath=no
13709	;;
13710      *)
13711	shlibpath_overrides_runpath=yes
13712	;;
13713      esac
13714  else
13715    shlibpath_overrides_runpath=yes
13716  fi
13717  ;;
13718
13719os2*)
13720  libname_spec='$name'
13721  shrext_cmds=".dll"
13722  need_lib_prefix=no
13723  library_names_spec='$libname${shared_ext} $libname.a'
13724  dynamic_linker='OS/2 ld.exe'
13725  shlibpath_var=LIBPATH
13726  ;;
13727
13728osf3* | osf4* | osf5*)
13729  version_type=osf
13730  need_lib_prefix=no
13731  need_version=no
13732  soname_spec='${libname}${release}${shared_ext}$major'
13733  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13734  shlibpath_var=LD_LIBRARY_PATH
13735  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13736  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13737  ;;
13738
13739rdos*)
13740  dynamic_linker=no
13741  ;;
13742
13743solaris*)
13744  version_type=linux
13745  need_lib_prefix=no
13746  need_version=no
13747  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13748  soname_spec='${libname}${release}${shared_ext}$major'
13749  shlibpath_var=LD_LIBRARY_PATH
13750  shlibpath_overrides_runpath=yes
13751  hardcode_into_libs=yes
13752  # ldd complains unless libraries are executable
13753  postinstall_cmds='chmod +x $lib'
13754  ;;
13755
13756sunos4*)
13757  version_type=sunos
13758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13759  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13760  shlibpath_var=LD_LIBRARY_PATH
13761  shlibpath_overrides_runpath=yes
13762  if test "$with_gnu_ld" = yes; then
13763    need_lib_prefix=no
13764  fi
13765  need_version=yes
13766  ;;
13767
13768sysv4 | sysv4.3*)
13769  version_type=linux
13770  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13771  soname_spec='${libname}${release}${shared_ext}$major'
13772  shlibpath_var=LD_LIBRARY_PATH
13773  case $host_vendor in
13774    sni)
13775      shlibpath_overrides_runpath=no
13776      need_lib_prefix=no
13777      export_dynamic_flag_spec='${wl}-Blargedynsym'
13778      runpath_var=LD_RUN_PATH
13779      ;;
13780    siemens)
13781      need_lib_prefix=no
13782      ;;
13783    motorola)
13784      need_lib_prefix=no
13785      need_version=no
13786      shlibpath_overrides_runpath=no
13787      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13788      ;;
13789  esac
13790  ;;
13791
13792sysv4*MP*)
13793  if test -d /usr/nec ;then
13794    version_type=linux
13795    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13796    soname_spec='$libname${shared_ext}.$major'
13797    shlibpath_var=LD_LIBRARY_PATH
13798  fi
13799  ;;
13800
13801sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13802  version_type=freebsd-elf
13803  need_lib_prefix=no
13804  need_version=no
13805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13806  soname_spec='${libname}${release}${shared_ext}$major'
13807  shlibpath_var=LD_LIBRARY_PATH
13808  hardcode_into_libs=yes
13809  if test "$with_gnu_ld" = yes; then
13810    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13811    shlibpath_overrides_runpath=no
13812  else
13813    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13814    shlibpath_overrides_runpath=yes
13815    case $host_os in
13816      sco3.2v5*)
13817        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13818	;;
13819    esac
13820  fi
13821  sys_lib_dlsearch_path_spec='/usr/lib'
13822  ;;
13823
13824uts4*)
13825  version_type=linux
13826  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13827  soname_spec='${libname}${release}${shared_ext}$major'
13828  shlibpath_var=LD_LIBRARY_PATH
13829  ;;
13830
13831*)
13832  dynamic_linker=no
13833  ;;
13834esac
13835{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13836$as_echo "$dynamic_linker" >&6; }
13837test "$dynamic_linker" = no && can_build_shared=no
13838
13839if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13840  $as_echo_n "(cached) " >&6
13841else
13842  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13843fi
13844
13845sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13846if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13847  $as_echo_n "(cached) " >&6
13848else
13849  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13850fi
13851
13852sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13853
13854variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13855if test "$GCC" = yes; then
13856  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13857fi
13858
13859{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13860$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13861hardcode_action_CXX=
13862if test -n "$hardcode_libdir_flag_spec_CXX" || \
13863   test -n "$runpath_var_CXX" || \
13864   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13865
13866  # We can hardcode non-existant directories.
13867  if test "$hardcode_direct_CXX" != no &&
13868     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13869     # have to relink, otherwise we might link with an installed library
13870     # when we should be linking with a yet-to-be-installed one
13871     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13872     test "$hardcode_minus_L_CXX" != no; then
13873    # Linking always hardcodes the temporary library directory.
13874    hardcode_action_CXX=relink
13875  else
13876    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13877    hardcode_action_CXX=immediate
13878  fi
13879else
13880  # We cannot hardcode anything, or else we can only hardcode existing
13881  # directories.
13882  hardcode_action_CXX=unsupported
13883fi
13884{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13885$as_echo "$hardcode_action_CXX" >&6; }
13886
13887if test "$hardcode_action_CXX" = relink; then
13888  # Fast installation is not supported
13889  enable_fast_install=no
13890elif test "$shlibpath_overrides_runpath" = yes ||
13891     test "$enable_shared" = no; then
13892  # Fast installation is not necessary
13893  enable_fast_install=needless
13894fi
13895
13896
13897# The else clause should only fire when bootstrapping the
13898# libtool distribution, otherwise you forgot to ship ltmain.sh
13899# with your package, and you will get complaints that there are
13900# no rules to generate ltmain.sh.
13901if test -f "$ltmain"; then
13902  # See if we are running on zsh, and set the options which allow our commands through
13903  # without removal of \ escapes.
13904  if test -n "${ZSH_VERSION+set}" ; then
13905    setopt NO_GLOB_SUBST
13906  fi
13907  # Now quote all the things that may contain metacharacters while being
13908  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13909  # variables and quote the copies for generation of the libtool script.
13910  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13911    SED SHELL STRIP \
13912    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13913    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13914    deplibs_check_method reload_flag reload_cmds need_locks \
13915    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13916    lt_cv_sys_global_symbol_to_c_name_address \
13917    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13918    old_postinstall_cmds old_postuninstall_cmds \
13919    compiler_CXX \
13920    CC_CXX \
13921    LD_CXX \
13922    lt_prog_compiler_wl_CXX \
13923    lt_prog_compiler_pic_CXX \
13924    lt_prog_compiler_static_CXX \
13925    lt_prog_compiler_no_builtin_flag_CXX \
13926    export_dynamic_flag_spec_CXX \
13927    thread_safe_flag_spec_CXX \
13928    whole_archive_flag_spec_CXX \
13929    enable_shared_with_static_runtimes_CXX \
13930    old_archive_cmds_CXX \
13931    old_archive_from_new_cmds_CXX \
13932    predep_objects_CXX \
13933    postdep_objects_CXX \
13934    predeps_CXX \
13935    postdeps_CXX \
13936    compiler_lib_search_path_CXX \
13937    compiler_lib_search_dirs_CXX \
13938    archive_cmds_CXX \
13939    archive_expsym_cmds_CXX \
13940    postinstall_cmds_CXX \
13941    postuninstall_cmds_CXX \
13942    old_archive_from_expsyms_cmds_CXX \
13943    allow_undefined_flag_CXX \
13944    no_undefined_flag_CXX \
13945    export_symbols_cmds_CXX \
13946    hardcode_libdir_flag_spec_CXX \
13947    hardcode_libdir_flag_spec_ld_CXX \
13948    hardcode_libdir_separator_CXX \
13949    hardcode_automatic_CXX \
13950    module_cmds_CXX \
13951    module_expsym_cmds_CXX \
13952    lt_cv_prog_compiler_c_o_CXX \
13953    fix_srcfile_path_CXX \
13954    exclude_expsyms_CXX \
13955    include_expsyms_CXX; do
13956
13957    case $var in
13958    old_archive_cmds_CXX | \
13959    old_archive_from_new_cmds_CXX | \
13960    archive_cmds_CXX | \
13961    archive_expsym_cmds_CXX | \
13962    module_cmds_CXX | \
13963    module_expsym_cmds_CXX | \
13964    old_archive_from_expsyms_cmds_CXX | \
13965    export_symbols_cmds_CXX | \
13966    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13967    postinstall_cmds | postuninstall_cmds | \
13968    old_postinstall_cmds | old_postuninstall_cmds | \
13969    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13970      # Double-quote double-evaled strings.
13971      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13972      ;;
13973    *)
13974      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13975      ;;
13976    esac
13977  done
13978
13979  case $lt_echo in
13980  *'\$0 --fallback-echo"')
13981    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13982    ;;
13983  esac
13984
13985cfgfile="$ofile"
13986
13987  cat <<__EOF__ >> "$cfgfile"
13988# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13989
13990# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13991
13992# Shell to use when invoking shell scripts.
13993SHELL=$lt_SHELL
13994
13995# Whether or not to build shared libraries.
13996build_libtool_libs=$enable_shared
13997
13998# Whether or not to build static libraries.
13999build_old_libs=$enable_static
14000
14001# Whether or not to add -lc for building shared libraries.
14002build_libtool_need_lc=$archive_cmds_need_lc_CXX
14003
14004# Whether or not to disallow shared libs when runtime libs are static
14005allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14006
14007# Whether or not to optimize for fast installation.
14008fast_install=$enable_fast_install
14009
14010# The host system.
14011host_alias=$host_alias
14012host=$host
14013host_os=$host_os
14014
14015# The build system.
14016build_alias=$build_alias
14017build=$build
14018build_os=$build_os
14019
14020# An echo program that does not interpret backslashes.
14021echo=$lt_echo
14022
14023# The archiver.
14024AR=$lt_AR
14025AR_FLAGS=$lt_AR_FLAGS
14026
14027# A C compiler.
14028LTCC=$lt_LTCC
14029
14030# LTCC compiler flags.
14031LTCFLAGS=$lt_LTCFLAGS
14032
14033# A language-specific compiler.
14034CC=$lt_compiler_CXX
14035
14036# Is the compiler the GNU C compiler?
14037with_gcc=$GCC_CXX
14038
14039# An ERE matcher.
14040EGREP=$lt_EGREP
14041
14042# The linker used to build libraries.
14043LD=$lt_LD_CXX
14044
14045# Whether we need hard or soft links.
14046LN_S=$lt_LN_S
14047
14048# A BSD-compatible nm program.
14049NM=$lt_NM
14050
14051# A symbol stripping program
14052STRIP=$lt_STRIP
14053
14054# Used to examine libraries when file_magic_cmd begins "file"
14055MAGIC_CMD=$MAGIC_CMD
14056
14057# Used on cygwin: DLL creation program.
14058DLLTOOL="$DLLTOOL"
14059
14060# Used on cygwin: object dumper.
14061OBJDUMP="$OBJDUMP"
14062
14063# Used on cygwin: assembler.
14064AS="$AS"
14065
14066# The name of the directory that contains temporary libtool files.
14067objdir=$objdir
14068
14069# How to create reloadable object files.
14070reload_flag=$lt_reload_flag
14071reload_cmds=$lt_reload_cmds
14072
14073# How to pass a linker flag through the compiler.
14074wl=$lt_lt_prog_compiler_wl_CXX
14075
14076# Object file suffix (normally "o").
14077objext="$ac_objext"
14078
14079# Old archive suffix (normally "a").
14080libext="$libext"
14081
14082# Shared library suffix (normally ".so").
14083shrext_cmds='$shrext_cmds'
14084
14085# Executable file suffix (normally "").
14086exeext="$exeext"
14087
14088# Additional compiler flags for building library objects.
14089pic_flag=$lt_lt_prog_compiler_pic_CXX
14090pic_mode=$pic_mode
14091
14092# What is the maximum length of a command?
14093max_cmd_len=$lt_cv_sys_max_cmd_len
14094
14095# Does compiler simultaneously support -c and -o options?
14096compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14097
14098# Must we lock files when doing compilation?
14099need_locks=$lt_need_locks
14100
14101# Do we need the lib prefix for modules?
14102need_lib_prefix=$need_lib_prefix
14103
14104# Do we need a version for libraries?
14105need_version=$need_version
14106
14107# Whether dlopen is supported.
14108dlopen_support=$enable_dlopen
14109
14110# Whether dlopen of programs is supported.
14111dlopen_self=$enable_dlopen_self
14112
14113# Whether dlopen of statically linked programs is supported.
14114dlopen_self_static=$enable_dlopen_self_static
14115
14116# Compiler flag to prevent dynamic linking.
14117link_static_flag=$lt_lt_prog_compiler_static_CXX
14118
14119# Compiler flag to turn off builtin functions.
14120no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14121
14122# Compiler flag to allow reflexive dlopens.
14123export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14124
14125# Compiler flag to generate shared objects directly from archives.
14126whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14127
14128# Compiler flag to generate thread-safe objects.
14129thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14130
14131# Library versioning type.
14132version_type=$version_type
14133
14134# Format of library name prefix.
14135libname_spec=$lt_libname_spec
14136
14137# List of archive names.  First name is the real one, the rest are links.
14138# The last name is the one that the linker finds with -lNAME.
14139library_names_spec=$lt_library_names_spec
14140
14141# The coded name of the library, if different from the real name.
14142soname_spec=$lt_soname_spec
14143
14144# Commands used to build and install an old-style archive.
14145RANLIB=$lt_RANLIB
14146old_archive_cmds=$lt_old_archive_cmds_CXX
14147old_postinstall_cmds=$lt_old_postinstall_cmds
14148old_postuninstall_cmds=$lt_old_postuninstall_cmds
14149
14150# Create an old-style archive from a shared archive.
14151old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14152
14153# Create a temporary old-style archive to link instead of a shared archive.
14154old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14155
14156# Commands used to build and install a shared archive.
14157archive_cmds=$lt_archive_cmds_CXX
14158archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14159postinstall_cmds=$lt_postinstall_cmds
14160postuninstall_cmds=$lt_postuninstall_cmds
14161
14162# Commands used to build a loadable module (assumed same as above if empty)
14163module_cmds=$lt_module_cmds_CXX
14164module_expsym_cmds=$lt_module_expsym_cmds_CXX
14165
14166# Commands to strip libraries.
14167old_striplib=$lt_old_striplib
14168striplib=$lt_striplib
14169
14170# Dependencies to place before the objects being linked to create a
14171# shared library.
14172predep_objects=$lt_predep_objects_CXX
14173
14174# Dependencies to place after the objects being linked to create a
14175# shared library.
14176postdep_objects=$lt_postdep_objects_CXX
14177
14178# Dependencies to place before the objects being linked to create a
14179# shared library.
14180predeps=$lt_predeps_CXX
14181
14182# Dependencies to place after the objects being linked to create a
14183# shared library.
14184postdeps=$lt_postdeps_CXX
14185
14186# The directories searched by this compiler when creating a shared
14187# library
14188compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14189
14190# The library search path used internally by the compiler when linking
14191# a shared library.
14192compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14193
14194# Method to check whether dependent libraries are shared objects.
14195deplibs_check_method=$lt_deplibs_check_method
14196
14197# Command to use when deplibs_check_method == file_magic.
14198file_magic_cmd=$lt_file_magic_cmd
14199
14200# Flag that allows shared libraries with undefined symbols to be built.
14201allow_undefined_flag=$lt_allow_undefined_flag_CXX
14202
14203# Flag that forces no undefined symbols.
14204no_undefined_flag=$lt_no_undefined_flag_CXX
14205
14206# Commands used to finish a libtool library installation in a directory.
14207finish_cmds=$lt_finish_cmds
14208
14209# Same as above, but a single script fragment to be evaled but not shown.
14210finish_eval=$lt_finish_eval
14211
14212# Take the output of nm and produce a listing of raw symbols and C names.
14213global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14214
14215# Transform the output of nm in a proper C declaration
14216global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14217
14218# Transform the output of nm in a C name address pair
14219global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14220
14221# This is the shared library runtime path variable.
14222runpath_var=$runpath_var
14223
14224# This is the shared library path variable.
14225shlibpath_var=$shlibpath_var
14226
14227# Is shlibpath searched before the hard-coded library search path?
14228shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14229
14230# How to hardcode a shared library path into an executable.
14231hardcode_action=$hardcode_action_CXX
14232
14233# Whether we should hardcode library paths into libraries.
14234hardcode_into_libs=$hardcode_into_libs
14235
14236# Flag to hardcode \$libdir into a binary during linking.
14237# This must work even if \$libdir does not exist.
14238hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14239
14240# If ld is used when linking, flag to hardcode \$libdir into
14241# a binary during linking. This must work even if \$libdir does
14242# not exist.
14243hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14244
14245# Whether we need a single -rpath flag with a separated argument.
14246hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14247
14248# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14249# resulting binary.
14250hardcode_direct=$hardcode_direct_CXX
14251
14252# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14253# resulting binary.
14254hardcode_minus_L=$hardcode_minus_L_CXX
14255
14256# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14257# the resulting binary.
14258hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14259
14260# Set to yes if building a shared library automatically hardcodes DIR into the library
14261# and all subsequent libraries and executables linked against it.
14262hardcode_automatic=$hardcode_automatic_CXX
14263
14264# Variables whose values should be saved in libtool wrapper scripts and
14265# restored at relink time.
14266variables_saved_for_relink="$variables_saved_for_relink"
14267
14268# Whether libtool must link a program against all its dependency libraries.
14269link_all_deplibs=$link_all_deplibs_CXX
14270
14271# Compile-time system search path for libraries
14272sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14273
14274# Run-time system search path for libraries
14275sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14276
14277# Fix the shell variable \$srcfile for the compiler.
14278fix_srcfile_path=$lt_fix_srcfile_path
14279
14280# Set to yes if exported symbols are required.
14281always_export_symbols=$always_export_symbols_CXX
14282
14283# The commands to list exported symbols.
14284export_symbols_cmds=$lt_export_symbols_cmds_CXX
14285
14286# The commands to extract the exported symbol list from a shared archive.
14287extract_expsyms_cmds=$lt_extract_expsyms_cmds
14288
14289# Symbols that should not be listed in the preloaded symbols.
14290exclude_expsyms=$lt_exclude_expsyms_CXX
14291
14292# Symbols that must always be exported.
14293include_expsyms=$lt_include_expsyms_CXX
14294
14295# ### END LIBTOOL TAG CONFIG: $tagname
14296
14297__EOF__
14298
14299
14300else
14301  # If there is no Makefile yet, we rely on a make rule to execute
14302  # `config.status --recheck' to rerun these tests and create the
14303  # libtool script then.
14304  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14305  if test -f "$ltmain_in"; then
14306    test -f Makefile && make "$ltmain"
14307  fi
14308fi
14309
14310
14311ac_ext=c
14312ac_cpp='$CPP $CPPFLAGS'
14313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14315ac_compiler_gnu=$ac_cv_c_compiler_gnu
14316
14317CC=$lt_save_CC
14318LDCXX=$LD
14319LD=$lt_save_LD
14320GCC=$lt_save_GCC
14321with_gnu_ldcxx=$with_gnu_ld
14322with_gnu_ld=$lt_save_with_gnu_ld
14323lt_cv_path_LDCXX=$lt_cv_path_LD
14324lt_cv_path_LD=$lt_save_path_LD
14325lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14326lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14327
14328	else
14329	  tagname=""
14330	fi
14331	;;
14332
14333      F77)
14334	if test -n "$F77" && test "X$F77" != "Xno"; then
14335
14336ac_ext=f
14337ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14338ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14339ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14340
14341
14342archive_cmds_need_lc_F77=no
14343allow_undefined_flag_F77=
14344always_export_symbols_F77=no
14345archive_expsym_cmds_F77=
14346export_dynamic_flag_spec_F77=
14347hardcode_direct_F77=no
14348hardcode_libdir_flag_spec_F77=
14349hardcode_libdir_flag_spec_ld_F77=
14350hardcode_libdir_separator_F77=
14351hardcode_minus_L_F77=no
14352hardcode_automatic_F77=no
14353module_cmds_F77=
14354module_expsym_cmds_F77=
14355link_all_deplibs_F77=unknown
14356old_archive_cmds_F77=$old_archive_cmds
14357no_undefined_flag_F77=
14358whole_archive_flag_spec_F77=
14359enable_shared_with_static_runtimes_F77=no
14360
14361# Source file extension for f77 test sources.
14362ac_ext=f
14363
14364# Object file extension for compiled f77 test sources.
14365objext=o
14366objext_F77=$objext
14367
14368# Code to be used in simple compile tests
14369lt_simple_compile_test_code="\
14370      subroutine t
14371      return
14372      end
14373"
14374
14375# Code to be used in simple link tests
14376lt_simple_link_test_code="\
14377      program t
14378      end
14379"
14380
14381# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14382
14383# If no C compiler was specified, use CC.
14384LTCC=${LTCC-"$CC"}
14385
14386# If no C compiler flags were specified, use CFLAGS.
14387LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14388
14389# Allow CC to be a program name with arguments.
14390compiler=$CC
14391
14392
14393# save warnings/boilerplate of simple test code
14394ac_outfile=conftest.$ac_objext
14395echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14396eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14397_lt_compiler_boilerplate=`cat conftest.err`
14398$rm conftest*
14399
14400ac_outfile=conftest.$ac_objext
14401echo "$lt_simple_link_test_code" >conftest.$ac_ext
14402eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14403_lt_linker_boilerplate=`cat conftest.err`
14404$rm -r conftest*
14405
14406
14407# Allow CC to be a program name with arguments.
14408lt_save_CC="$CC"
14409CC=${F77-"f77"}
14410compiler=$CC
14411compiler_F77=$CC
14412for cc_temp in $compiler""; do
14413  case $cc_temp in
14414    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14415    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14416    \-*) ;;
14417    *) break;;
14418  esac
14419done
14420cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14421
14422
14423{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14424$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14425{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14426$as_echo "$can_build_shared" >&6; }
14427
14428{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14429$as_echo_n "checking whether to build shared libraries... " >&6; }
14430test "$can_build_shared" = "no" && enable_shared=no
14431
14432# On AIX, shared libraries and static libraries use the same namespace, and
14433# are all built from PIC.
14434case $host_os in
14435aix3*)
14436  test "$enable_shared" = yes && enable_static=no
14437  if test -n "$RANLIB"; then
14438    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14439    postinstall_cmds='$RANLIB $lib'
14440  fi
14441  ;;
14442aix[4-9]*)
14443  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14444    test "$enable_shared" = yes && enable_static=no
14445  fi
14446  ;;
14447esac
14448{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14449$as_echo "$enable_shared" >&6; }
14450
14451{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14452$as_echo_n "checking whether to build static libraries... " >&6; }
14453# Make sure either enable_shared or enable_static is yes.
14454test "$enable_shared" = yes || enable_static=yes
14455{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14456$as_echo "$enable_static" >&6; }
14457
14458GCC_F77="$G77"
14459LD_F77="$LD"
14460
14461lt_prog_compiler_wl_F77=
14462lt_prog_compiler_pic_F77=
14463lt_prog_compiler_static_F77=
14464
14465{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14466$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14467
14468  if test "$GCC" = yes; then
14469    lt_prog_compiler_wl_F77='-Wl,'
14470    lt_prog_compiler_static_F77='-static'
14471
14472    case $host_os in
14473      aix*)
14474      # All AIX code is PIC.
14475      if test "$host_cpu" = ia64; then
14476	# AIX 5 now supports IA64 processor
14477	lt_prog_compiler_static_F77='-Bstatic'
14478      fi
14479      ;;
14480
14481    amigaos*)
14482      # FIXME: we need at least 68020 code to build shared libraries, but
14483      # adding the `-m68020' flag to GCC prevents building anything better,
14484      # like `-m68040'.
14485      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14486      ;;
14487
14488    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14489      # PIC is the default for these OSes.
14490      ;;
14491
14492    mingw* | cygwin* | pw32* | os2*)
14493      # This hack is so that the source file can tell whether it is being
14494      # built for inclusion in a dll (and should export symbols for example).
14495      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14496      # (--disable-auto-import) libraries
14497      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14498      ;;
14499
14500    darwin* | rhapsody*)
14501      # PIC is the default on this platform
14502      # Common symbols not allowed in MH_DYLIB files
14503      lt_prog_compiler_pic_F77='-fno-common'
14504      ;;
14505
14506    interix[3-9]*)
14507      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14508      # Instead, we relocate shared libraries at runtime.
14509      ;;
14510
14511    msdosdjgpp*)
14512      # Just because we use GCC doesn't mean we suddenly get shared libraries
14513      # on systems that don't support them.
14514      lt_prog_compiler_can_build_shared_F77=no
14515      enable_shared=no
14516      ;;
14517
14518    sysv4*MP*)
14519      if test -d /usr/nec; then
14520	lt_prog_compiler_pic_F77=-Kconform_pic
14521      fi
14522      ;;
14523
14524    hpux*)
14525      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14526      # not for PA HP-UX.
14527      case $host_cpu in
14528      hppa*64*|ia64*)
14529	# +Z the default
14530	;;
14531      *)
14532	lt_prog_compiler_pic_F77='-fPIC'
14533	;;
14534      esac
14535      ;;
14536
14537    *)
14538      lt_prog_compiler_pic_F77='-fPIC'
14539      ;;
14540    esac
14541  else
14542    # PORTME Check for flag to pass linker flags through the system compiler.
14543    case $host_os in
14544    aix*)
14545      lt_prog_compiler_wl_F77='-Wl,'
14546      if test "$host_cpu" = ia64; then
14547	# AIX 5 now supports IA64 processor
14548	lt_prog_compiler_static_F77='-Bstatic'
14549      else
14550	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14551      fi
14552      ;;
14553      darwin*)
14554        # PIC is the default on this platform
14555        # Common symbols not allowed in MH_DYLIB files
14556       case $cc_basename in
14557         xlc*)
14558         lt_prog_compiler_pic_F77='-qnocommon'
14559         lt_prog_compiler_wl_F77='-Wl,'
14560         ;;
14561       esac
14562       ;;
14563
14564    mingw* | cygwin* | pw32* | os2*)
14565      # This hack is so that the source file can tell whether it is being
14566      # built for inclusion in a dll (and should export symbols for example).
14567      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14568      ;;
14569
14570    hpux9* | hpux10* | hpux11*)
14571      lt_prog_compiler_wl_F77='-Wl,'
14572      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14573      # not for PA HP-UX.
14574      case $host_cpu in
14575      hppa*64*|ia64*)
14576	# +Z the default
14577	;;
14578      *)
14579	lt_prog_compiler_pic_F77='+Z'
14580	;;
14581      esac
14582      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14583      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14584      ;;
14585
14586    irix5* | irix6* | nonstopux*)
14587      lt_prog_compiler_wl_F77='-Wl,'
14588      # PIC (with -KPIC) is the default.
14589      lt_prog_compiler_static_F77='-non_shared'
14590      ;;
14591
14592    newsos6)
14593      lt_prog_compiler_pic_F77='-KPIC'
14594      lt_prog_compiler_static_F77='-Bstatic'
14595      ;;
14596
14597    linux* | k*bsd*-gnu)
14598      case $cc_basename in
14599      icc* | ecc*)
14600	lt_prog_compiler_wl_F77='-Wl,'
14601	lt_prog_compiler_pic_F77='-KPIC'
14602	lt_prog_compiler_static_F77='-static'
14603        ;;
14604      pgcc* | pgf77* | pgf90* | pgf95*)
14605        # Portland Group compilers (*not* the Pentium gcc compiler,
14606	# which looks to be a dead project)
14607	lt_prog_compiler_wl_F77='-Wl,'
14608	lt_prog_compiler_pic_F77='-fpic'
14609	lt_prog_compiler_static_F77='-Bstatic'
14610        ;;
14611      ccc*)
14612        lt_prog_compiler_wl_F77='-Wl,'
14613        # All Alpha code is PIC.
14614        lt_prog_compiler_static_F77='-non_shared'
14615        ;;
14616      *)
14617        case `$CC -V 2>&1 | sed 5q` in
14618	*Sun\ C*)
14619	  # Sun C 5.9
14620	  lt_prog_compiler_pic_F77='-KPIC'
14621	  lt_prog_compiler_static_F77='-Bstatic'
14622	  lt_prog_compiler_wl_F77='-Wl,'
14623	  ;;
14624	*Sun\ F*)
14625	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14626	  lt_prog_compiler_pic_F77='-KPIC'
14627	  lt_prog_compiler_static_F77='-Bstatic'
14628	  lt_prog_compiler_wl_F77=''
14629	  ;;
14630	esac
14631	;;
14632      esac
14633      ;;
14634
14635    osf3* | osf4* | osf5*)
14636      lt_prog_compiler_wl_F77='-Wl,'
14637      # All OSF/1 code is PIC.
14638      lt_prog_compiler_static_F77='-non_shared'
14639      ;;
14640
14641    rdos*)
14642      lt_prog_compiler_static_F77='-non_shared'
14643      ;;
14644
14645    solaris*)
14646      lt_prog_compiler_pic_F77='-KPIC'
14647      lt_prog_compiler_static_F77='-Bstatic'
14648      case $cc_basename in
14649      f77* | f90* | f95*)
14650	lt_prog_compiler_wl_F77='-Qoption ld ';;
14651      *)
14652	lt_prog_compiler_wl_F77='-Wl,';;
14653      esac
14654      ;;
14655
14656    sunos4*)
14657      lt_prog_compiler_wl_F77='-Qoption ld '
14658      lt_prog_compiler_pic_F77='-PIC'
14659      lt_prog_compiler_static_F77='-Bstatic'
14660      ;;
14661
14662    sysv4 | sysv4.2uw2* | sysv4.3*)
14663      lt_prog_compiler_wl_F77='-Wl,'
14664      lt_prog_compiler_pic_F77='-KPIC'
14665      lt_prog_compiler_static_F77='-Bstatic'
14666      ;;
14667
14668    sysv4*MP*)
14669      if test -d /usr/nec ;then
14670	lt_prog_compiler_pic_F77='-Kconform_pic'
14671	lt_prog_compiler_static_F77='-Bstatic'
14672      fi
14673      ;;
14674
14675    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14676      lt_prog_compiler_wl_F77='-Wl,'
14677      lt_prog_compiler_pic_F77='-KPIC'
14678      lt_prog_compiler_static_F77='-Bstatic'
14679      ;;
14680
14681    unicos*)
14682      lt_prog_compiler_wl_F77='-Wl,'
14683      lt_prog_compiler_can_build_shared_F77=no
14684      ;;
14685
14686    uts4*)
14687      lt_prog_compiler_pic_F77='-pic'
14688      lt_prog_compiler_static_F77='-Bstatic'
14689      ;;
14690
14691    *)
14692      lt_prog_compiler_can_build_shared_F77=no
14693      ;;
14694    esac
14695  fi
14696
14697{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14698$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14699
14700#
14701# Check to make sure the PIC flag actually works.
14702#
14703if test -n "$lt_prog_compiler_pic_F77"; then
14704
14705{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14706$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14707if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14708  $as_echo_n "(cached) " >&6
14709else
14710  lt_cv_prog_compiler_pic_works_F77=no
14711  ac_outfile=conftest.$ac_objext
14712   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14713   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14714   # Insert the option either (1) after the last *FLAGS variable, or
14715   # (2) before a word containing "conftest.", or (3) at the end.
14716   # Note that $ac_compile itself does not contain backslashes and begins
14717   # with a dollar sign (not a hyphen), so the echo should work correctly.
14718   # The option is referenced via a variable to avoid confusing sed.
14719   lt_compile=`echo "$ac_compile" | $SED \
14720   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14721   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14722   -e 's:$: $lt_compiler_flag:'`
14723   (eval echo "\"\$as_me:14723: $lt_compile\"" >&5)
14724   (eval "$lt_compile" 2>conftest.err)
14725   ac_status=$?
14726   cat conftest.err >&5
14727   echo "$as_me:14727: \$? = $ac_status" >&5
14728   if (exit $ac_status) && test -s "$ac_outfile"; then
14729     # The compiler can only warn and ignore the option if not recognized
14730     # So say no if there are warnings other than the usual output.
14731     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14732     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14733     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14734       lt_cv_prog_compiler_pic_works_F77=yes
14735     fi
14736   fi
14737   $rm conftest*
14738
14739fi
14740{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14741$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14742
14743if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14744    case $lt_prog_compiler_pic_F77 in
14745     "" | " "*) ;;
14746     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14747     esac
14748else
14749    lt_prog_compiler_pic_F77=
14750     lt_prog_compiler_can_build_shared_F77=no
14751fi
14752
14753fi
14754case $host_os in
14755  # For platforms which do not support PIC, -DPIC is meaningless:
14756  *djgpp*)
14757    lt_prog_compiler_pic_F77=
14758    ;;
14759  *)
14760    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14761    ;;
14762esac
14763
14764#
14765# Check to make sure the static flag actually works.
14766#
14767wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14768{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14769$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14770if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14771  $as_echo_n "(cached) " >&6
14772else
14773  lt_cv_prog_compiler_static_works_F77=no
14774   save_LDFLAGS="$LDFLAGS"
14775   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14776   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14777   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14778     # The linker can only warn and ignore the option if not recognized
14779     # So say no if there are warnings
14780     if test -s conftest.err; then
14781       # Append any errors to the config.log.
14782       cat conftest.err 1>&5
14783       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14784       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14785       if diff conftest.exp conftest.er2 >/dev/null; then
14786         lt_cv_prog_compiler_static_works_F77=yes
14787       fi
14788     else
14789       lt_cv_prog_compiler_static_works_F77=yes
14790     fi
14791   fi
14792   $rm -r conftest*
14793   LDFLAGS="$save_LDFLAGS"
14794
14795fi
14796{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14797$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14798
14799if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14800    :
14801else
14802    lt_prog_compiler_static_F77=
14803fi
14804
14805
14806{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14807$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14808if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14809  $as_echo_n "(cached) " >&6
14810else
14811  lt_cv_prog_compiler_c_o_F77=no
14812   $rm -r conftest 2>/dev/null
14813   mkdir conftest
14814   cd conftest
14815   mkdir out
14816   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14817
14818   lt_compiler_flag="-o out/conftest2.$ac_objext"
14819   # Insert the option either (1) after the last *FLAGS variable, or
14820   # (2) before a word containing "conftest.", or (3) at the end.
14821   # Note that $ac_compile itself does not contain backslashes and begins
14822   # with a dollar sign (not a hyphen), so the echo should work correctly.
14823   lt_compile=`echo "$ac_compile" | $SED \
14824   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14825   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14826   -e 's:$: $lt_compiler_flag:'`
14827   (eval echo "\"\$as_me:14827: $lt_compile\"" >&5)
14828   (eval "$lt_compile" 2>out/conftest.err)
14829   ac_status=$?
14830   cat out/conftest.err >&5
14831   echo "$as_me:14831: \$? = $ac_status" >&5
14832   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14833   then
14834     # The compiler can only warn and ignore the option if not recognized
14835     # So say no if there are warnings
14836     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14837     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14838     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14839       lt_cv_prog_compiler_c_o_F77=yes
14840     fi
14841   fi
14842   chmod u+w . 2>&5
14843   $rm conftest*
14844   # SGI C++ compiler will create directory out/ii_files/ for
14845   # template instantiation
14846   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14847   $rm out/* && rmdir out
14848   cd ..
14849   rmdir conftest
14850   $rm conftest*
14851
14852fi
14853{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14854$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14855
14856
14857hard_links="nottested"
14858if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14859  # do not overwrite the value of need_locks provided by the user
14860  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14861$as_echo_n "checking if we can lock with hard links... " >&6; }
14862  hard_links=yes
14863  $rm conftest*
14864  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14865  touch conftest.a
14866  ln conftest.a conftest.b 2>&5 || hard_links=no
14867  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14868  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14869$as_echo "$hard_links" >&6; }
14870  if test "$hard_links" = no; then
14871    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14872$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14873    need_locks=warn
14874  fi
14875else
14876  need_locks=no
14877fi
14878
14879{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14880$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14881
14882  runpath_var=
14883  allow_undefined_flag_F77=
14884  enable_shared_with_static_runtimes_F77=no
14885  archive_cmds_F77=
14886  archive_expsym_cmds_F77=
14887  old_archive_From_new_cmds_F77=
14888  old_archive_from_expsyms_cmds_F77=
14889  export_dynamic_flag_spec_F77=
14890  whole_archive_flag_spec_F77=
14891  thread_safe_flag_spec_F77=
14892  hardcode_libdir_flag_spec_F77=
14893  hardcode_libdir_flag_spec_ld_F77=
14894  hardcode_libdir_separator_F77=
14895  hardcode_direct_F77=no
14896  hardcode_minus_L_F77=no
14897  hardcode_shlibpath_var_F77=unsupported
14898  link_all_deplibs_F77=unknown
14899  hardcode_automatic_F77=no
14900  module_cmds_F77=
14901  module_expsym_cmds_F77=
14902  always_export_symbols_F77=no
14903  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14904  # include_expsyms should be a list of space-separated symbols to be *always*
14905  # included in the symbol list
14906  include_expsyms_F77=
14907  # exclude_expsyms can be an extended regexp of symbols to exclude
14908  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14909  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14910  # as well as any symbol that contains `d'.
14911  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14912  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14913  # platforms (ab)use it in PIC code, but their linkers get confused if
14914  # the symbol is explicitly referenced.  Since portable code cannot
14915  # rely on this symbol name, it's probably fine to never include it in
14916  # preloaded symbol tables.
14917  # Exclude shared library initialization/finalization symbols.
14918  extract_expsyms_cmds=
14919  # Just being paranoid about ensuring that cc_basename is set.
14920  for cc_temp in $compiler""; do
14921  case $cc_temp in
14922    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14923    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14924    \-*) ;;
14925    *) break;;
14926  esac
14927done
14928cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14929
14930  case $host_os in
14931  cygwin* | mingw* | pw32*)
14932    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14933    # When not using gcc, we currently assume that we are using
14934    # Microsoft Visual C++.
14935    if test "$GCC" != yes; then
14936      with_gnu_ld=no
14937    fi
14938    ;;
14939  interix*)
14940    # we just hope/assume this is gcc and not c89 (= MSVC++)
14941    with_gnu_ld=yes
14942    ;;
14943  openbsd*)
14944    with_gnu_ld=no
14945    ;;
14946  esac
14947
14948  ld_shlibs_F77=yes
14949  if test "$with_gnu_ld" = yes; then
14950    # If archive_cmds runs LD, not CC, wlarc should be empty
14951    wlarc='${wl}'
14952
14953    # Set some defaults for GNU ld with shared library support. These
14954    # are reset later if shared libraries are not supported. Putting them
14955    # here allows them to be overridden if necessary.
14956    runpath_var=LD_RUN_PATH
14957    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14958    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14959    # ancient GNU ld didn't support --whole-archive et. al.
14960    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14961	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14962      else
14963  	whole_archive_flag_spec_F77=
14964    fi
14965    supports_anon_versioning=no
14966    case `$LD -v 2>/dev/null` in
14967      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14968      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14969      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14970      *\ 2.11.*) ;; # other 2.11 versions
14971      *) supports_anon_versioning=yes ;;
14972    esac
14973
14974    # See if GNU ld supports shared libraries.
14975    case $host_os in
14976    aix[3-9]*)
14977      # On AIX/PPC, the GNU linker is very broken
14978      if test "$host_cpu" != ia64; then
14979	ld_shlibs_F77=no
14980	cat <<EOF 1>&2
14981
14982*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14983*** to be unable to reliably create shared libraries on AIX.
14984*** Therefore, libtool is disabling shared libraries support.  If you
14985*** really care for shared libraries, you may want to modify your PATH
14986*** so that a non-GNU linker is found, and then restart.
14987
14988EOF
14989      fi
14990      ;;
14991
14992    amigaos*)
14993      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)'
14994      hardcode_libdir_flag_spec_F77='-L$libdir'
14995      hardcode_minus_L_F77=yes
14996
14997      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14998      # that the semantics of dynamic libraries on AmigaOS, at least up
14999      # to version 4, is to share data among multiple programs linked
15000      # with the same dynamic library.  Since this doesn't match the
15001      # behavior of shared libraries on other platforms, we can't use
15002      # them.
15003      ld_shlibs_F77=no
15004      ;;
15005
15006    beos*)
15007      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15008	allow_undefined_flag_F77=unsupported
15009	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15010	# support --undefined.  This deserves some investigation.  FIXME
15011	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012      else
15013	ld_shlibs_F77=no
15014      fi
15015      ;;
15016
15017    cygwin* | mingw* | pw32*)
15018      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15019      # as there is no search path for DLLs.
15020      hardcode_libdir_flag_spec_F77='-L$libdir'
15021      allow_undefined_flag_F77=unsupported
15022      always_export_symbols_F77=no
15023      enable_shared_with_static_runtimes_F77=yes
15024      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15025
15026      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15027        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15028	# If the export-symbols file already is a .def file (1st line
15029	# is EXPORTS), use it as is; otherwise, prepend...
15030	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15031	  cp $export_symbols $output_objdir/$soname.def;
15032	else
15033	  echo EXPORTS > $output_objdir/$soname.def;
15034	  cat $export_symbols >> $output_objdir/$soname.def;
15035	fi~
15036	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15037      else
15038	ld_shlibs_F77=no
15039      fi
15040      ;;
15041
15042    interix[3-9]*)
15043      hardcode_direct_F77=no
15044      hardcode_shlibpath_var_F77=no
15045      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15046      export_dynamic_flag_spec_F77='${wl}-E'
15047      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15048      # Instead, shared libraries are loaded at an image base (0x10000000 by
15049      # default) and relocated if they conflict, which is a slow very memory
15050      # consuming and fragmenting process.  To avoid this, we pick a random,
15051      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15052      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15053      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'
15054      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'
15055      ;;
15056
15057    gnu* | linux* | k*bsd*-gnu)
15058      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15059	tmp_addflag=
15060	case $cc_basename,$host_cpu in
15061	pgcc*)				# Portland Group C compiler
15062	  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'
15063	  tmp_addflag=' $pic_flag'
15064	  ;;
15065	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15066	  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'
15067	  tmp_addflag=' $pic_flag -Mnomain' ;;
15068	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15069	  tmp_addflag=' -i_dynamic' ;;
15070	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15071	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15072	ifc* | ifort*)			# Intel Fortran compiler
15073	  tmp_addflag=' -nofor_main' ;;
15074	esac
15075	case `$CC -V 2>&1 | sed 5q` in
15076	*Sun\ C*)			# Sun C 5.9
15077	  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'
15078	  tmp_sharedflag='-G' ;;
15079	*Sun\ F*)			# Sun Fortran 8.3
15080	  tmp_sharedflag='-G' ;;
15081	*)
15082	  tmp_sharedflag='-shared' ;;
15083	esac
15084	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15085
15086	if test $supports_anon_versioning = yes; then
15087	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15088  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15089  $echo "local: *; };" >> $output_objdir/$libname.ver~
15090	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15091	fi
15092      else
15093	ld_shlibs_F77=no
15094      fi
15095      ;;
15096
15097    netbsd*)
15098      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15099	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15100	wlarc=
15101      else
15102	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15103	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15104      fi
15105      ;;
15106
15107    solaris*)
15108      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15109	ld_shlibs_F77=no
15110	cat <<EOF 1>&2
15111
15112*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15113*** create shared libraries on Solaris systems.  Therefore, libtool
15114*** is disabling shared libraries support.  We urge you to upgrade GNU
15115*** binutils to release 2.9.1 or newer.  Another option is to modify
15116*** your PATH or compiler configuration so that the native linker is
15117*** used, and then restart.
15118
15119EOF
15120      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15121	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15122	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15123      else
15124	ld_shlibs_F77=no
15125      fi
15126      ;;
15127
15128    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15129      case `$LD -v 2>&1` in
15130        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15131	ld_shlibs_F77=no
15132	cat <<_LT_EOF 1>&2
15133
15134*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15135*** reliably create shared libraries on SCO systems.  Therefore, libtool
15136*** is disabling shared libraries support.  We urge you to upgrade GNU
15137*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15138*** your PATH or compiler configuration so that the native linker is
15139*** used, and then restart.
15140
15141_LT_EOF
15142	;;
15143	*)
15144	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15145	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15146	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15147	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15148	  else
15149	    ld_shlibs_F77=no
15150	  fi
15151	;;
15152      esac
15153      ;;
15154
15155    sunos4*)
15156      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15157      wlarc=
15158      hardcode_direct_F77=yes
15159      hardcode_shlibpath_var_F77=no
15160      ;;
15161
15162    *)
15163      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15164	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15165	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15166      else
15167	ld_shlibs_F77=no
15168      fi
15169      ;;
15170    esac
15171
15172    if test "$ld_shlibs_F77" = no; then
15173      runpath_var=
15174      hardcode_libdir_flag_spec_F77=
15175      export_dynamic_flag_spec_F77=
15176      whole_archive_flag_spec_F77=
15177    fi
15178  else
15179    # PORTME fill in a description of your system's linker (not GNU ld)
15180    case $host_os in
15181    aix3*)
15182      allow_undefined_flag_F77=unsupported
15183      always_export_symbols_F77=yes
15184      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'
15185      # Note: this linker hardcodes the directories in LIBPATH if there
15186      # are no directories specified by -L.
15187      hardcode_minus_L_F77=yes
15188      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15189	# Neither direct hardcoding nor static linking is supported with a
15190	# broken collect2.
15191	hardcode_direct_F77=unsupported
15192      fi
15193      ;;
15194
15195    aix[4-9]*)
15196      if test "$host_cpu" = ia64; then
15197	# On IA64, the linker does run time linking by default, so we don't
15198	# have to do anything special.
15199	aix_use_runtimelinking=no
15200	exp_sym_flag='-Bexport'
15201	no_entry_flag=""
15202      else
15203	# If we're using GNU nm, then we don't want the "-C" option.
15204	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15205	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15206	  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'
15207	else
15208	  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'
15209	fi
15210	aix_use_runtimelinking=no
15211
15212	# Test if we are trying to use run time linking or normal
15213	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15214	# need to do runtime linking.
15215	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15216	  for ld_flag in $LDFLAGS; do
15217  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15218  	    aix_use_runtimelinking=yes
15219  	    break
15220  	  fi
15221	  done
15222	  ;;
15223	esac
15224
15225	exp_sym_flag='-bexport'
15226	no_entry_flag='-bnoentry'
15227      fi
15228
15229      # When large executables or shared objects are built, AIX ld can
15230      # have problems creating the table of contents.  If linking a library
15231      # or program results in "error TOC overflow" add -mminimal-toc to
15232      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15233      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15234
15235      archive_cmds_F77=''
15236      hardcode_direct_F77=yes
15237      hardcode_libdir_separator_F77=':'
15238      link_all_deplibs_F77=yes
15239
15240      if test "$GCC" = yes; then
15241	case $host_os in aix4.[012]|aix4.[012].*)
15242	# We only want to do this on AIX 4.2 and lower, the check
15243	# below for broken collect2 doesn't work under 4.3+
15244	  collect2name=`${CC} -print-prog-name=collect2`
15245	  if test -f "$collect2name" && \
15246  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15247	  then
15248  	  # We have reworked collect2
15249  	  :
15250	  else
15251  	  # We have old collect2
15252  	  hardcode_direct_F77=unsupported
15253  	  # It fails to find uninstalled libraries when the uninstalled
15254  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15255  	  # to unsupported forces relinking
15256  	  hardcode_minus_L_F77=yes
15257  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15258  	  hardcode_libdir_separator_F77=
15259	  fi
15260	  ;;
15261	esac
15262	shared_flag='-shared'
15263	if test "$aix_use_runtimelinking" = yes; then
15264	  shared_flag="$shared_flag "'${wl}-G'
15265	fi
15266      else
15267	# not using gcc
15268	if test "$host_cpu" = ia64; then
15269  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15270  	# chokes on -Wl,-G. The following line is correct:
15271	  shared_flag='-G'
15272	else
15273	  if test "$aix_use_runtimelinking" = yes; then
15274	    shared_flag='${wl}-G'
15275	  else
15276	    shared_flag='${wl}-bM:SRE'
15277	  fi
15278	fi
15279      fi
15280
15281      # It seems that -bexpall does not export symbols beginning with
15282      # underscore (_), so it is better to generate a list of symbols to export.
15283      always_export_symbols_F77=yes
15284      if test "$aix_use_runtimelinking" = yes; then
15285	# Warning - without using the other runtime loading flags (-brtl),
15286	# -berok will link without error, but may produce a broken library.
15287	allow_undefined_flag_F77='-berok'
15288       # Determine the default libpath from the value encoded in an empty executable.
15289       cat >conftest.$ac_ext <<_ACEOF
15290      program main
15291
15292      end
15293_ACEOF
15294rm -f conftest.$ac_objext conftest$ac_exeext
15295if { (ac_try="$ac_link"
15296case "(($ac_try" in
15297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298  *) ac_try_echo=$ac_try;;
15299esac
15300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15301$as_echo "$ac_try_echo") >&5
15302  (eval "$ac_link") 2>conftest.er1
15303  ac_status=$?
15304  grep -v '^ *+' conftest.er1 >conftest.err
15305  rm -f conftest.er1
15306  cat conftest.err >&5
15307  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308  (exit $ac_status); } && {
15309	 test -z "$ac_f77_werror_flag" ||
15310	 test ! -s conftest.err
15311       } && test -s conftest$ac_exeext && {
15312	 test "$cross_compiling" = yes ||
15313	 $as_test_x conftest$ac_exeext
15314       }; then
15315
15316lt_aix_libpath_sed='
15317    /Import File Strings/,/^$/ {
15318	/^0/ {
15319	    s/^0  *\(.*\)$/\1/
15320	    p
15321	}
15322    }'
15323aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15324# Check for a 64-bit object if we didn't find anything.
15325if test -z "$aix_libpath"; then
15326  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15327fi
15328else
15329  $as_echo "$as_me: failed program was:" >&5
15330sed 's/^/| /' conftest.$ac_ext >&5
15331
15332
15333fi
15334
15335rm -rf conftest.dSYM
15336rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15337      conftest$ac_exeext conftest.$ac_ext
15338if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15339
15340       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15341	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"
15342       else
15343	if test "$host_cpu" = ia64; then
15344	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15345	  allow_undefined_flag_F77="-z nodefs"
15346	  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"
15347	else
15348	 # Determine the default libpath from the value encoded in an empty executable.
15349	 cat >conftest.$ac_ext <<_ACEOF
15350      program main
15351
15352      end
15353_ACEOF
15354rm -f conftest.$ac_objext conftest$ac_exeext
15355if { (ac_try="$ac_link"
15356case "(($ac_try" in
15357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358  *) ac_try_echo=$ac_try;;
15359esac
15360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15361$as_echo "$ac_try_echo") >&5
15362  (eval "$ac_link") 2>conftest.er1
15363  ac_status=$?
15364  grep -v '^ *+' conftest.er1 >conftest.err
15365  rm -f conftest.er1
15366  cat conftest.err >&5
15367  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368  (exit $ac_status); } && {
15369	 test -z "$ac_f77_werror_flag" ||
15370	 test ! -s conftest.err
15371       } && test -s conftest$ac_exeext && {
15372	 test "$cross_compiling" = yes ||
15373	 $as_test_x conftest$ac_exeext
15374       }; then
15375
15376lt_aix_libpath_sed='
15377    /Import File Strings/,/^$/ {
15378	/^0/ {
15379	    s/^0  *\(.*\)$/\1/
15380	    p
15381	}
15382    }'
15383aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15384# Check for a 64-bit object if we didn't find anything.
15385if test -z "$aix_libpath"; then
15386  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15387fi
15388else
15389  $as_echo "$as_me: failed program was:" >&5
15390sed 's/^/| /' conftest.$ac_ext >&5
15391
15392
15393fi
15394
15395rm -rf conftest.dSYM
15396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15397      conftest$ac_exeext conftest.$ac_ext
15398if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15399
15400	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15401	  # Warning - without using the other run time loading flags,
15402	  # -berok will link without error, but may produce a broken library.
15403	  no_undefined_flag_F77=' ${wl}-bernotok'
15404	  allow_undefined_flag_F77=' ${wl}-berok'
15405	  # Exported symbols can be pulled into shared objects from archives
15406	  whole_archive_flag_spec_F77='$convenience'
15407	  archive_cmds_need_lc_F77=yes
15408	  # This is similar to how AIX traditionally builds its shared libraries.
15409	  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'
15410	fi
15411      fi
15412      ;;
15413
15414    amigaos*)
15415      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)'
15416      hardcode_libdir_flag_spec_F77='-L$libdir'
15417      hardcode_minus_L_F77=yes
15418      # see comment about different semantics on the GNU ld section
15419      ld_shlibs_F77=no
15420      ;;
15421
15422    bsdi[45]*)
15423      export_dynamic_flag_spec_F77=-rdynamic
15424      ;;
15425
15426    cygwin* | mingw* | pw32*)
15427      # When not using gcc, we currently assume that we are using
15428      # Microsoft Visual C++.
15429      # hardcode_libdir_flag_spec is actually meaningless, as there is
15430      # no search path for DLLs.
15431      hardcode_libdir_flag_spec_F77=' '
15432      allow_undefined_flag_F77=unsupported
15433      # Tell ltmain to make .lib files, not .a files.
15434      libext=lib
15435      # Tell ltmain to make .dll files, not .so files.
15436      shrext_cmds=".dll"
15437      # FIXME: Setting linknames here is a bad hack.
15438      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15439      # The linker will automatically build a .lib file if we build a DLL.
15440      old_archive_From_new_cmds_F77='true'
15441      # FIXME: Should let the user specify the lib program.
15442      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15443      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15444      enable_shared_with_static_runtimes_F77=yes
15445      ;;
15446
15447    darwin* | rhapsody*)
15448      case $host_os in
15449        rhapsody* | darwin1.[012])
15450         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15451         ;;
15452       *) # Darwin 1.3 on
15453         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15454           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15455         else
15456           case ${MACOSX_DEPLOYMENT_TARGET} in
15457             10.[012])
15458               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15459               ;;
15460             10.*)
15461               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15462               ;;
15463           esac
15464         fi
15465         ;;
15466      esac
15467      archive_cmds_need_lc_F77=no
15468      hardcode_direct_F77=no
15469      hardcode_automatic_F77=yes
15470      hardcode_shlibpath_var_F77=unsupported
15471      whole_archive_flag_spec_F77=''
15472      link_all_deplibs_F77=yes
15473    if test "$GCC" = yes ; then
15474    	output_verbose_link_cmd='echo'
15475        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}"
15476        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15477        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}"
15478        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}"
15479    else
15480      case $cc_basename in
15481        xlc*)
15482         output_verbose_link_cmd='echo'
15483         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15484         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15485          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15486         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}'
15487          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}'
15488          ;;
15489       *)
15490         ld_shlibs_F77=no
15491          ;;
15492      esac
15493    fi
15494      ;;
15495
15496    dgux*)
15497      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15498      hardcode_libdir_flag_spec_F77='-L$libdir'
15499      hardcode_shlibpath_var_F77=no
15500      ;;
15501
15502    freebsd1*)
15503      ld_shlibs_F77=no
15504      ;;
15505
15506    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15507    # support.  Future versions do this automatically, but an explicit c++rt0.o
15508    # does not break anything, and helps significantly (at the cost of a little
15509    # extra space).
15510    freebsd2.2*)
15511      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15512      hardcode_libdir_flag_spec_F77='-R$libdir'
15513      hardcode_direct_F77=yes
15514      hardcode_shlibpath_var_F77=no
15515      ;;
15516
15517    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15518    freebsd2*)
15519      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15520      hardcode_direct_F77=yes
15521      hardcode_minus_L_F77=yes
15522      hardcode_shlibpath_var_F77=no
15523      ;;
15524
15525    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15526    freebsd* | dragonfly*)
15527      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15528      hardcode_libdir_flag_spec_F77='-R$libdir'
15529      hardcode_direct_F77=yes
15530      hardcode_shlibpath_var_F77=no
15531      ;;
15532
15533    hpux9*)
15534      if test "$GCC" = yes; then
15535	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'
15536      else
15537	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'
15538      fi
15539      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15540      hardcode_libdir_separator_F77=:
15541      hardcode_direct_F77=yes
15542
15543      # hardcode_minus_L: Not really in the search PATH,
15544      # but as the default location of the library.
15545      hardcode_minus_L_F77=yes
15546      export_dynamic_flag_spec_F77='${wl}-E'
15547      ;;
15548
15549    hpux10*)
15550      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15551	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15552      else
15553	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15554      fi
15555      if test "$with_gnu_ld" = no; then
15556	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15557	hardcode_libdir_separator_F77=:
15558
15559	hardcode_direct_F77=yes
15560	export_dynamic_flag_spec_F77='${wl}-E'
15561
15562	# hardcode_minus_L: Not really in the search PATH,
15563	# but as the default location of the library.
15564	hardcode_minus_L_F77=yes
15565      fi
15566      ;;
15567
15568    hpux11*)
15569      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15570	case $host_cpu in
15571	hppa*64*)
15572	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15573	  ;;
15574	ia64*)
15575	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15576	  ;;
15577	*)
15578	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15579	  ;;
15580	esac
15581      else
15582	case $host_cpu in
15583	hppa*64*)
15584	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15585	  ;;
15586	ia64*)
15587	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15588	  ;;
15589	*)
15590	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15591	  ;;
15592	esac
15593      fi
15594      if test "$with_gnu_ld" = no; then
15595	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15596	hardcode_libdir_separator_F77=:
15597
15598	case $host_cpu in
15599	hppa*64*|ia64*)
15600	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15601	  hardcode_direct_F77=no
15602	  hardcode_shlibpath_var_F77=no
15603	  ;;
15604	*)
15605	  hardcode_direct_F77=yes
15606	  export_dynamic_flag_spec_F77='${wl}-E'
15607
15608	  # hardcode_minus_L: Not really in the search PATH,
15609	  # but as the default location of the library.
15610	  hardcode_minus_L_F77=yes
15611	  ;;
15612	esac
15613      fi
15614      ;;
15615
15616    irix5* | irix6* | nonstopux*)
15617      if test "$GCC" = yes; then
15618	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'
15619      else
15620	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'
15621	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15622      fi
15623      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15624      hardcode_libdir_separator_F77=:
15625      link_all_deplibs_F77=yes
15626      ;;
15627
15628    netbsd*)
15629      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15630	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15631      else
15632	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15633      fi
15634      hardcode_libdir_flag_spec_F77='-R$libdir'
15635      hardcode_direct_F77=yes
15636      hardcode_shlibpath_var_F77=no
15637      ;;
15638
15639    newsos6)
15640      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15641      hardcode_direct_F77=yes
15642      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15643      hardcode_libdir_separator_F77=:
15644      hardcode_shlibpath_var_F77=no
15645      ;;
15646
15647    openbsd*)
15648      if test -f /usr/libexec/ld.so; then
15649	hardcode_direct_F77=yes
15650	hardcode_shlibpath_var_F77=no
15651	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15652	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15653	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15654	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15655	  export_dynamic_flag_spec_F77='${wl}-E'
15656	else
15657	  case $host_os in
15658	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15659	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15660	     hardcode_libdir_flag_spec_F77='-R$libdir'
15661	     ;;
15662	   *)
15663	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15664	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15665	     ;;
15666	  esac
15667        fi
15668      else
15669	ld_shlibs_F77=no
15670      fi
15671      ;;
15672
15673    os2*)
15674      hardcode_libdir_flag_spec_F77='-L$libdir'
15675      hardcode_minus_L_F77=yes
15676      allow_undefined_flag_F77=unsupported
15677      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'
15678      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15679      ;;
15680
15681    osf3*)
15682      if test "$GCC" = yes; then
15683	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15684	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'
15685      else
15686	allow_undefined_flag_F77=' -expect_unresolved \*'
15687	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'
15688      fi
15689      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15690      hardcode_libdir_separator_F77=:
15691      ;;
15692
15693    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15694      if test "$GCC" = yes; then
15695	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15696	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'
15697	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15698      else
15699	allow_undefined_flag_F77=' -expect_unresolved \*'
15700	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'
15701	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~
15702	$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'
15703
15704	# Both c and cxx compiler support -rpath directly
15705	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15706      fi
15707      hardcode_libdir_separator_F77=:
15708      ;;
15709
15710    solaris*)
15711      no_undefined_flag_F77=' -z text'
15712      if test "$GCC" = yes; then
15713	wlarc='${wl}'
15714	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15715	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15716	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15717      else
15718	wlarc=''
15719	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15720	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15721  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15722      fi
15723      hardcode_libdir_flag_spec_F77='-R$libdir'
15724      hardcode_shlibpath_var_F77=no
15725      case $host_os in
15726      solaris2.[0-5] | solaris2.[0-5].*) ;;
15727      *)
15728	# The compiler driver will combine and reorder linker options,
15729	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15730	# but is careful enough not to reorder.
15731 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15732	if test "$GCC" = yes; then
15733	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15734	else
15735	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15736	fi
15737	;;
15738      esac
15739      link_all_deplibs_F77=yes
15740      ;;
15741
15742    sunos4*)
15743      if test "x$host_vendor" = xsequent; then
15744	# Use $CC to link under sequent, because it throws in some extra .o
15745	# files that make .init and .fini sections work.
15746	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15747      else
15748	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15749      fi
15750      hardcode_libdir_flag_spec_F77='-L$libdir'
15751      hardcode_direct_F77=yes
15752      hardcode_minus_L_F77=yes
15753      hardcode_shlibpath_var_F77=no
15754      ;;
15755
15756    sysv4)
15757      case $host_vendor in
15758	sni)
15759	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15760	  hardcode_direct_F77=yes # is this really true???
15761	;;
15762	siemens)
15763	  ## LD is ld it makes a PLAMLIB
15764	  ## CC just makes a GrossModule.
15765	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15766	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15767	  hardcode_direct_F77=no
15768        ;;
15769	motorola)
15770	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15771	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15772	;;
15773      esac
15774      runpath_var='LD_RUN_PATH'
15775      hardcode_shlibpath_var_F77=no
15776      ;;
15777
15778    sysv4.3*)
15779      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15780      hardcode_shlibpath_var_F77=no
15781      export_dynamic_flag_spec_F77='-Bexport'
15782      ;;
15783
15784    sysv4*MP*)
15785      if test -d /usr/nec; then
15786	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15787	hardcode_shlibpath_var_F77=no
15788	runpath_var=LD_RUN_PATH
15789	hardcode_runpath_var=yes
15790	ld_shlibs_F77=yes
15791      fi
15792      ;;
15793
15794    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15795      no_undefined_flag_F77='${wl}-z,text'
15796      archive_cmds_need_lc_F77=no
15797      hardcode_shlibpath_var_F77=no
15798      runpath_var='LD_RUN_PATH'
15799
15800      if test "$GCC" = yes; then
15801	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15802	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15803      else
15804	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15805	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15806      fi
15807      ;;
15808
15809    sysv5* | sco3.2v5* | sco5v6*)
15810      # Note: We can NOT use -z defs as we might desire, because we do not
15811      # link with -lc, and that would cause any symbols used from libc to
15812      # always be unresolved, which means just about no library would
15813      # ever link correctly.  If we're not using GNU ld we use -z text
15814      # though, which does catch some bad symbols but isn't as heavy-handed
15815      # as -z defs.
15816      no_undefined_flag_F77='${wl}-z,text'
15817      allow_undefined_flag_F77='${wl}-z,nodefs'
15818      archive_cmds_need_lc_F77=no
15819      hardcode_shlibpath_var_F77=no
15820      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15821      hardcode_libdir_separator_F77=':'
15822      link_all_deplibs_F77=yes
15823      export_dynamic_flag_spec_F77='${wl}-Bexport'
15824      runpath_var='LD_RUN_PATH'
15825
15826      if test "$GCC" = yes; then
15827	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15828	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15829      else
15830	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15831	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15832      fi
15833      ;;
15834
15835    uts4*)
15836      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15837      hardcode_libdir_flag_spec_F77='-L$libdir'
15838      hardcode_shlibpath_var_F77=no
15839      ;;
15840
15841    *)
15842      ld_shlibs_F77=no
15843      ;;
15844    esac
15845  fi
15846
15847{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15848$as_echo "$ld_shlibs_F77" >&6; }
15849test "$ld_shlibs_F77" = no && can_build_shared=no
15850
15851#
15852# Do we need to explicitly link libc?
15853#
15854case "x$archive_cmds_need_lc_F77" in
15855x|xyes)
15856  # Assume -lc should be added
15857  archive_cmds_need_lc_F77=yes
15858
15859  if test "$enable_shared" = yes && test "$GCC" = yes; then
15860    case $archive_cmds_F77 in
15861    *'~'*)
15862      # FIXME: we may have to deal with multi-command sequences.
15863      ;;
15864    '$CC '*)
15865      # Test whether the compiler implicitly links with -lc since on some
15866      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15867      # to ld, don't add -lc before -lgcc.
15868      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15869$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15870      $rm conftest*
15871      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15872
15873      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15874  (eval $ac_compile) 2>&5
15875  ac_status=$?
15876  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877  (exit $ac_status); } 2>conftest.err; then
15878        soname=conftest
15879        lib=conftest
15880        libobjs=conftest.$ac_objext
15881        deplibs=
15882        wl=$lt_prog_compiler_wl_F77
15883	pic_flag=$lt_prog_compiler_pic_F77
15884        compiler_flags=-v
15885        linker_flags=-v
15886        verstring=
15887        output_objdir=.
15888        libname=conftest
15889        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15890        allow_undefined_flag_F77=
15891        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15892  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15893  ac_status=$?
15894  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895  (exit $ac_status); }
15896        then
15897	  archive_cmds_need_lc_F77=no
15898        else
15899	  archive_cmds_need_lc_F77=yes
15900        fi
15901        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15902      else
15903        cat conftest.err 1>&5
15904      fi
15905      $rm conftest*
15906      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15907$as_echo "$archive_cmds_need_lc_F77" >&6; }
15908      ;;
15909    esac
15910  fi
15911  ;;
15912esac
15913
15914{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15915$as_echo_n "checking dynamic linker characteristics... " >&6; }
15916library_names_spec=
15917libname_spec='lib$name'
15918soname_spec=
15919shrext_cmds=".so"
15920postinstall_cmds=
15921postuninstall_cmds=
15922finish_cmds=
15923finish_eval=
15924shlibpath_var=
15925shlibpath_overrides_runpath=unknown
15926version_type=none
15927dynamic_linker="$host_os ld.so"
15928sys_lib_dlsearch_path_spec="/lib /usr/lib"
15929
15930need_lib_prefix=unknown
15931hardcode_into_libs=no
15932
15933# when you set need_version to no, make sure it does not cause -set_version
15934# flags to be left without arguments
15935need_version=unknown
15936
15937case $host_os in
15938aix3*)
15939  version_type=linux
15940  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15941  shlibpath_var=LIBPATH
15942
15943  # AIX 3 has no versioning support, so we append a major version to the name.
15944  soname_spec='${libname}${release}${shared_ext}$major'
15945  ;;
15946
15947aix[4-9]*)
15948  version_type=linux
15949  need_lib_prefix=no
15950  need_version=no
15951  hardcode_into_libs=yes
15952  if test "$host_cpu" = ia64; then
15953    # AIX 5 supports IA64
15954    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15955    shlibpath_var=LD_LIBRARY_PATH
15956  else
15957    # With GCC up to 2.95.x, collect2 would create an import file
15958    # for dependence libraries.  The import file would start with
15959    # the line `#! .'.  This would cause the generated library to
15960    # depend on `.', always an invalid library.  This was fixed in
15961    # development snapshots of GCC prior to 3.0.
15962    case $host_os in
15963      aix4 | aix4.[01] | aix4.[01].*)
15964      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15965	   echo ' yes '
15966	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15967	:
15968      else
15969	can_build_shared=no
15970      fi
15971      ;;
15972    esac
15973    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15974    # soname into executable. Probably we can add versioning support to
15975    # collect2, so additional links can be useful in future.
15976    if test "$aix_use_runtimelinking" = yes; then
15977      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15978      # instead of lib<name>.a to let people know that these are not
15979      # typical AIX shared libraries.
15980      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15981    else
15982      # We preserve .a as extension for shared libraries through AIX4.2
15983      # and later when we are not doing run time linking.
15984      library_names_spec='${libname}${release}.a $libname.a'
15985      soname_spec='${libname}${release}${shared_ext}$major'
15986    fi
15987    shlibpath_var=LIBPATH
15988  fi
15989  ;;
15990
15991amigaos*)
15992  library_names_spec='$libname.ixlibrary $libname.a'
15993  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15994  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'
15995  ;;
15996
15997beos*)
15998  library_names_spec='${libname}${shared_ext}'
15999  dynamic_linker="$host_os ld.so"
16000  shlibpath_var=LIBRARY_PATH
16001  ;;
16002
16003bsdi[45]*)
16004  version_type=linux
16005  need_version=no
16006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16007  soname_spec='${libname}${release}${shared_ext}$major'
16008  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16009  shlibpath_var=LD_LIBRARY_PATH
16010  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16011  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16012  # the default ld.so.conf also contains /usr/contrib/lib and
16013  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16014  # libtool to hard-code these into programs
16015  ;;
16016
16017cygwin* | mingw* | pw32*)
16018  version_type=windows
16019  shrext_cmds=".dll"
16020  need_version=no
16021  need_lib_prefix=no
16022
16023  case $GCC,$host_os in
16024  yes,cygwin* | yes,mingw* | yes,pw32*)
16025    library_names_spec='$libname.dll.a'
16026    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16027    postinstall_cmds='base_file=`basename \${file}`~
16028      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16029      dldir=$destdir/`dirname \$dlpath`~
16030      test -d \$dldir || mkdir -p \$dldir~
16031      $install_prog $dir/$dlname \$dldir/$dlname~
16032      chmod a+x \$dldir/$dlname'
16033    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16034      dlpath=$dir/\$dldll~
16035       $rm \$dlpath'
16036    shlibpath_overrides_runpath=yes
16037
16038    case $host_os in
16039    cygwin*)
16040      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16041      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16042      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16043      ;;
16044    mingw*)
16045      # MinGW DLLs use traditional 'lib' prefix
16046      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16047      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16048      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16049        # It is most probably a Windows format PATH printed by
16050        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16051        # path with ; separators, and with drive letters. We can handle the
16052        # drive letters (cygwin fileutils understands them), so leave them,
16053        # especially as we might pass files found there to a mingw objdump,
16054        # which wouldn't understand a cygwinified path. Ahh.
16055        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16056      else
16057        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16058      fi
16059      ;;
16060    pw32*)
16061      # pw32 DLLs use 'pw' prefix rather than 'lib'
16062      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16063      ;;
16064    esac
16065    ;;
16066
16067  *)
16068    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16069    ;;
16070  esac
16071  dynamic_linker='Win32 ld.exe'
16072  # FIXME: first we should search . and the directory the executable is in
16073  shlibpath_var=PATH
16074  ;;
16075
16076darwin* | rhapsody*)
16077  dynamic_linker="$host_os dyld"
16078  version_type=darwin
16079  need_lib_prefix=no
16080  need_version=no
16081  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16082  soname_spec='${libname}${release}${major}$shared_ext'
16083  shlibpath_overrides_runpath=yes
16084  shlibpath_var=DYLD_LIBRARY_PATH
16085  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16086
16087  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16088  ;;
16089
16090dgux*)
16091  version_type=linux
16092  need_lib_prefix=no
16093  need_version=no
16094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16095  soname_spec='${libname}${release}${shared_ext}$major'
16096  shlibpath_var=LD_LIBRARY_PATH
16097  ;;
16098
16099freebsd1*)
16100  dynamic_linker=no
16101  ;;
16102
16103freebsd* | dragonfly*)
16104  # DragonFly does not have aout.  When/if they implement a new
16105  # versioning mechanism, adjust this.
16106  if test -x /usr/bin/objformat; then
16107    objformat=`/usr/bin/objformat`
16108  else
16109    case $host_os in
16110    freebsd[123]*) objformat=aout ;;
16111    *) objformat=elf ;;
16112    esac
16113  fi
16114  version_type=freebsd-$objformat
16115  case $version_type in
16116    freebsd-elf*)
16117      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16118      need_version=no
16119      need_lib_prefix=no
16120      ;;
16121    freebsd-*)
16122      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16123      need_version=yes
16124      ;;
16125  esac
16126  shlibpath_var=LD_LIBRARY_PATH
16127  case $host_os in
16128  freebsd2*)
16129    shlibpath_overrides_runpath=yes
16130    ;;
16131  freebsd3.[01]* | freebsdelf3.[01]*)
16132    shlibpath_overrides_runpath=yes
16133    hardcode_into_libs=yes
16134    ;;
16135  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16136  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16137    shlibpath_overrides_runpath=no
16138    hardcode_into_libs=yes
16139    ;;
16140  *) # from 4.6 on, and DragonFly
16141    shlibpath_overrides_runpath=yes
16142    hardcode_into_libs=yes
16143    ;;
16144  esac
16145  ;;
16146
16147gnu*)
16148  version_type=linux
16149  need_lib_prefix=no
16150  need_version=no
16151  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16152  soname_spec='${libname}${release}${shared_ext}$major'
16153  shlibpath_var=LD_LIBRARY_PATH
16154  hardcode_into_libs=yes
16155  ;;
16156
16157hpux9* | hpux10* | hpux11*)
16158  # Give a soname corresponding to the major version so that dld.sl refuses to
16159  # link against other versions.
16160  version_type=sunos
16161  need_lib_prefix=no
16162  need_version=no
16163  case $host_cpu in
16164  ia64*)
16165    shrext_cmds='.so'
16166    hardcode_into_libs=yes
16167    dynamic_linker="$host_os dld.so"
16168    shlibpath_var=LD_LIBRARY_PATH
16169    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16170    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16171    soname_spec='${libname}${release}${shared_ext}$major'
16172    if test "X$HPUX_IA64_MODE" = X32; then
16173      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16174    else
16175      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16176    fi
16177    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16178    ;;
16179   hppa*64*)
16180     shrext_cmds='.sl'
16181     hardcode_into_libs=yes
16182     dynamic_linker="$host_os dld.sl"
16183     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16184     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16185     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16186     soname_spec='${libname}${release}${shared_ext}$major'
16187     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16188     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16189     ;;
16190   *)
16191    shrext_cmds='.sl'
16192    dynamic_linker="$host_os dld.sl"
16193    shlibpath_var=SHLIB_PATH
16194    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16195    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16196    soname_spec='${libname}${release}${shared_ext}$major'
16197    ;;
16198  esac
16199  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16200  postinstall_cmds='chmod 555 $lib'
16201  ;;
16202
16203interix[3-9]*)
16204  version_type=linux
16205  need_lib_prefix=no
16206  need_version=no
16207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16208  soname_spec='${libname}${release}${shared_ext}$major'
16209  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16210  shlibpath_var=LD_LIBRARY_PATH
16211  shlibpath_overrides_runpath=no
16212  hardcode_into_libs=yes
16213  ;;
16214
16215irix5* | irix6* | nonstopux*)
16216  case $host_os in
16217    nonstopux*) version_type=nonstopux ;;
16218    *)
16219	if test "$lt_cv_prog_gnu_ld" = yes; then
16220		version_type=linux
16221	else
16222		version_type=irix
16223	fi ;;
16224  esac
16225  need_lib_prefix=no
16226  need_version=no
16227  soname_spec='${libname}${release}${shared_ext}$major'
16228  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16229  case $host_os in
16230  irix5* | nonstopux*)
16231    libsuff= shlibsuff=
16232    ;;
16233  *)
16234    case $LD in # libtool.m4 will add one of these switches to LD
16235    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16236      libsuff= shlibsuff= libmagic=32-bit;;
16237    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16238      libsuff=32 shlibsuff=N32 libmagic=N32;;
16239    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16240      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16241    *) libsuff= shlibsuff= libmagic=never-match;;
16242    esac
16243    ;;
16244  esac
16245  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16246  shlibpath_overrides_runpath=no
16247  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16248  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16249  hardcode_into_libs=yes
16250  ;;
16251
16252# No shared lib support for Linux oldld, aout, or coff.
16253linux*oldld* | linux*aout* | linux*coff*)
16254  dynamic_linker=no
16255  ;;
16256
16257# This must be Linux ELF.
16258linux* | k*bsd*-gnu)
16259  version_type=linux
16260  need_lib_prefix=no
16261  need_version=no
16262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16263  soname_spec='${libname}${release}${shared_ext}$major'
16264  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16265  shlibpath_var=LD_LIBRARY_PATH
16266  shlibpath_overrides_runpath=no
16267  # This implies no fast_install, which is unacceptable.
16268  # Some rework will be needed to allow for fast_install
16269  # before this can be enabled.
16270  hardcode_into_libs=yes
16271  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16272  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16273
16274  # Append ld.so.conf contents to the search path
16275  if test -f /etc/ld.so.conf; then
16276    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' ' '`
16277    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16278  fi
16279
16280  # We used to test for /lib/ld.so.1 and disable shared libraries on
16281  # powerpc, because MkLinux only supported shared libraries with the
16282  # GNU dynamic linker.  Since this was broken with cross compilers,
16283  # most powerpc-linux boxes support dynamic linking these days and
16284  # people can always --disable-shared, the test was removed, and we
16285  # assume the GNU/Linux dynamic linker is in use.
16286  dynamic_linker='GNU/Linux ld.so'
16287  ;;
16288
16289netbsd*)
16290  version_type=sunos
16291  need_lib_prefix=no
16292  need_version=no
16293  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16294    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16295    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16296    dynamic_linker='NetBSD (a.out) ld.so'
16297  else
16298    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16299    soname_spec='${libname}${release}${shared_ext}$major'
16300    dynamic_linker='NetBSD ld.elf_so'
16301  fi
16302  shlibpath_var=LD_LIBRARY_PATH
16303  shlibpath_overrides_runpath=yes
16304  hardcode_into_libs=yes
16305  ;;
16306
16307newsos6)
16308  version_type=linux
16309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16310  shlibpath_var=LD_LIBRARY_PATH
16311  shlibpath_overrides_runpath=yes
16312  ;;
16313
16314nto-qnx*)
16315  version_type=linux
16316  need_lib_prefix=no
16317  need_version=no
16318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16319  soname_spec='${libname}${release}${shared_ext}$major'
16320  shlibpath_var=LD_LIBRARY_PATH
16321  shlibpath_overrides_runpath=yes
16322  ;;
16323
16324openbsd*)
16325  version_type=sunos
16326  sys_lib_dlsearch_path_spec="/usr/lib"
16327  need_lib_prefix=no
16328  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16329  case $host_os in
16330    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16331    *)                         need_version=no  ;;
16332  esac
16333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16334  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16335  shlibpath_var=LD_LIBRARY_PATH
16336  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16337    case $host_os in
16338      openbsd2.[89] | openbsd2.[89].*)
16339	shlibpath_overrides_runpath=no
16340	;;
16341      *)
16342	shlibpath_overrides_runpath=yes
16343	;;
16344      esac
16345  else
16346    shlibpath_overrides_runpath=yes
16347  fi
16348  ;;
16349
16350os2*)
16351  libname_spec='$name'
16352  shrext_cmds=".dll"
16353  need_lib_prefix=no
16354  library_names_spec='$libname${shared_ext} $libname.a'
16355  dynamic_linker='OS/2 ld.exe'
16356  shlibpath_var=LIBPATH
16357  ;;
16358
16359osf3* | osf4* | osf5*)
16360  version_type=osf
16361  need_lib_prefix=no
16362  need_version=no
16363  soname_spec='${libname}${release}${shared_ext}$major'
16364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16365  shlibpath_var=LD_LIBRARY_PATH
16366  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16367  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16368  ;;
16369
16370rdos*)
16371  dynamic_linker=no
16372  ;;
16373
16374solaris*)
16375  version_type=linux
16376  need_lib_prefix=no
16377  need_version=no
16378  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379  soname_spec='${libname}${release}${shared_ext}$major'
16380  shlibpath_var=LD_LIBRARY_PATH
16381  shlibpath_overrides_runpath=yes
16382  hardcode_into_libs=yes
16383  # ldd complains unless libraries are executable
16384  postinstall_cmds='chmod +x $lib'
16385  ;;
16386
16387sunos4*)
16388  version_type=sunos
16389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16390  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16391  shlibpath_var=LD_LIBRARY_PATH
16392  shlibpath_overrides_runpath=yes
16393  if test "$with_gnu_ld" = yes; then
16394    need_lib_prefix=no
16395  fi
16396  need_version=yes
16397  ;;
16398
16399sysv4 | sysv4.3*)
16400  version_type=linux
16401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16402  soname_spec='${libname}${release}${shared_ext}$major'
16403  shlibpath_var=LD_LIBRARY_PATH
16404  case $host_vendor in
16405    sni)
16406      shlibpath_overrides_runpath=no
16407      need_lib_prefix=no
16408      export_dynamic_flag_spec='${wl}-Blargedynsym'
16409      runpath_var=LD_RUN_PATH
16410      ;;
16411    siemens)
16412      need_lib_prefix=no
16413      ;;
16414    motorola)
16415      need_lib_prefix=no
16416      need_version=no
16417      shlibpath_overrides_runpath=no
16418      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16419      ;;
16420  esac
16421  ;;
16422
16423sysv4*MP*)
16424  if test -d /usr/nec ;then
16425    version_type=linux
16426    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16427    soname_spec='$libname${shared_ext}.$major'
16428    shlibpath_var=LD_LIBRARY_PATH
16429  fi
16430  ;;
16431
16432sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16433  version_type=freebsd-elf
16434  need_lib_prefix=no
16435  need_version=no
16436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16437  soname_spec='${libname}${release}${shared_ext}$major'
16438  shlibpath_var=LD_LIBRARY_PATH
16439  hardcode_into_libs=yes
16440  if test "$with_gnu_ld" = yes; then
16441    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16442    shlibpath_overrides_runpath=no
16443  else
16444    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16445    shlibpath_overrides_runpath=yes
16446    case $host_os in
16447      sco3.2v5*)
16448        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16449	;;
16450    esac
16451  fi
16452  sys_lib_dlsearch_path_spec='/usr/lib'
16453  ;;
16454
16455uts4*)
16456  version_type=linux
16457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16458  soname_spec='${libname}${release}${shared_ext}$major'
16459  shlibpath_var=LD_LIBRARY_PATH
16460  ;;
16461
16462*)
16463  dynamic_linker=no
16464  ;;
16465esac
16466{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16467$as_echo "$dynamic_linker" >&6; }
16468test "$dynamic_linker" = no && can_build_shared=no
16469
16470if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16471  $as_echo_n "(cached) " >&6
16472else
16473  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16474fi
16475
16476sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16477if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16478  $as_echo_n "(cached) " >&6
16479else
16480  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16481fi
16482
16483sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16484
16485variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16486if test "$GCC" = yes; then
16487  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16488fi
16489
16490{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16491$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16492hardcode_action_F77=
16493if test -n "$hardcode_libdir_flag_spec_F77" || \
16494   test -n "$runpath_var_F77" || \
16495   test "X$hardcode_automatic_F77" = "Xyes" ; then
16496
16497  # We can hardcode non-existant directories.
16498  if test "$hardcode_direct_F77" != no &&
16499     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16500     # have to relink, otherwise we might link with an installed library
16501     # when we should be linking with a yet-to-be-installed one
16502     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16503     test "$hardcode_minus_L_F77" != no; then
16504    # Linking always hardcodes the temporary library directory.
16505    hardcode_action_F77=relink
16506  else
16507    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16508    hardcode_action_F77=immediate
16509  fi
16510else
16511  # We cannot hardcode anything, or else we can only hardcode existing
16512  # directories.
16513  hardcode_action_F77=unsupported
16514fi
16515{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16516$as_echo "$hardcode_action_F77" >&6; }
16517
16518if test "$hardcode_action_F77" = relink; then
16519  # Fast installation is not supported
16520  enable_fast_install=no
16521elif test "$shlibpath_overrides_runpath" = yes ||
16522     test "$enable_shared" = no; then
16523  # Fast installation is not necessary
16524  enable_fast_install=needless
16525fi
16526
16527
16528# The else clause should only fire when bootstrapping the
16529# libtool distribution, otherwise you forgot to ship ltmain.sh
16530# with your package, and you will get complaints that there are
16531# no rules to generate ltmain.sh.
16532if test -f "$ltmain"; then
16533  # See if we are running on zsh, and set the options which allow our commands through
16534  # without removal of \ escapes.
16535  if test -n "${ZSH_VERSION+set}" ; then
16536    setopt NO_GLOB_SUBST
16537  fi
16538  # Now quote all the things that may contain metacharacters while being
16539  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16540  # variables and quote the copies for generation of the libtool script.
16541  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16542    SED SHELL STRIP \
16543    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16544    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16545    deplibs_check_method reload_flag reload_cmds need_locks \
16546    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16547    lt_cv_sys_global_symbol_to_c_name_address \
16548    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16549    old_postinstall_cmds old_postuninstall_cmds \
16550    compiler_F77 \
16551    CC_F77 \
16552    LD_F77 \
16553    lt_prog_compiler_wl_F77 \
16554    lt_prog_compiler_pic_F77 \
16555    lt_prog_compiler_static_F77 \
16556    lt_prog_compiler_no_builtin_flag_F77 \
16557    export_dynamic_flag_spec_F77 \
16558    thread_safe_flag_spec_F77 \
16559    whole_archive_flag_spec_F77 \
16560    enable_shared_with_static_runtimes_F77 \
16561    old_archive_cmds_F77 \
16562    old_archive_from_new_cmds_F77 \
16563    predep_objects_F77 \
16564    postdep_objects_F77 \
16565    predeps_F77 \
16566    postdeps_F77 \
16567    compiler_lib_search_path_F77 \
16568    compiler_lib_search_dirs_F77 \
16569    archive_cmds_F77 \
16570    archive_expsym_cmds_F77 \
16571    postinstall_cmds_F77 \
16572    postuninstall_cmds_F77 \
16573    old_archive_from_expsyms_cmds_F77 \
16574    allow_undefined_flag_F77 \
16575    no_undefined_flag_F77 \
16576    export_symbols_cmds_F77 \
16577    hardcode_libdir_flag_spec_F77 \
16578    hardcode_libdir_flag_spec_ld_F77 \
16579    hardcode_libdir_separator_F77 \
16580    hardcode_automatic_F77 \
16581    module_cmds_F77 \
16582    module_expsym_cmds_F77 \
16583    lt_cv_prog_compiler_c_o_F77 \
16584    fix_srcfile_path_F77 \
16585    exclude_expsyms_F77 \
16586    include_expsyms_F77; do
16587
16588    case $var in
16589    old_archive_cmds_F77 | \
16590    old_archive_from_new_cmds_F77 | \
16591    archive_cmds_F77 | \
16592    archive_expsym_cmds_F77 | \
16593    module_cmds_F77 | \
16594    module_expsym_cmds_F77 | \
16595    old_archive_from_expsyms_cmds_F77 | \
16596    export_symbols_cmds_F77 | \
16597    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16598    postinstall_cmds | postuninstall_cmds | \
16599    old_postinstall_cmds | old_postuninstall_cmds | \
16600    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16601      # Double-quote double-evaled strings.
16602      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16603      ;;
16604    *)
16605      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16606      ;;
16607    esac
16608  done
16609
16610  case $lt_echo in
16611  *'\$0 --fallback-echo"')
16612    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16613    ;;
16614  esac
16615
16616cfgfile="$ofile"
16617
16618  cat <<__EOF__ >> "$cfgfile"
16619# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16620
16621# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16622
16623# Shell to use when invoking shell scripts.
16624SHELL=$lt_SHELL
16625
16626# Whether or not to build shared libraries.
16627build_libtool_libs=$enable_shared
16628
16629# Whether or not to build static libraries.
16630build_old_libs=$enable_static
16631
16632# Whether or not to add -lc for building shared libraries.
16633build_libtool_need_lc=$archive_cmds_need_lc_F77
16634
16635# Whether or not to disallow shared libs when runtime libs are static
16636allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16637
16638# Whether or not to optimize for fast installation.
16639fast_install=$enable_fast_install
16640
16641# The host system.
16642host_alias=$host_alias
16643host=$host
16644host_os=$host_os
16645
16646# The build system.
16647build_alias=$build_alias
16648build=$build
16649build_os=$build_os
16650
16651# An echo program that does not interpret backslashes.
16652echo=$lt_echo
16653
16654# The archiver.
16655AR=$lt_AR
16656AR_FLAGS=$lt_AR_FLAGS
16657
16658# A C compiler.
16659LTCC=$lt_LTCC
16660
16661# LTCC compiler flags.
16662LTCFLAGS=$lt_LTCFLAGS
16663
16664# A language-specific compiler.
16665CC=$lt_compiler_F77
16666
16667# Is the compiler the GNU C compiler?
16668with_gcc=$GCC_F77
16669
16670# An ERE matcher.
16671EGREP=$lt_EGREP
16672
16673# The linker used to build libraries.
16674LD=$lt_LD_F77
16675
16676# Whether we need hard or soft links.
16677LN_S=$lt_LN_S
16678
16679# A BSD-compatible nm program.
16680NM=$lt_NM
16681
16682# A symbol stripping program
16683STRIP=$lt_STRIP
16684
16685# Used to examine libraries when file_magic_cmd begins "file"
16686MAGIC_CMD=$MAGIC_CMD
16687
16688# Used on cygwin: DLL creation program.
16689DLLTOOL="$DLLTOOL"
16690
16691# Used on cygwin: object dumper.
16692OBJDUMP="$OBJDUMP"
16693
16694# Used on cygwin: assembler.
16695AS="$AS"
16696
16697# The name of the directory that contains temporary libtool files.
16698objdir=$objdir
16699
16700# How to create reloadable object files.
16701reload_flag=$lt_reload_flag
16702reload_cmds=$lt_reload_cmds
16703
16704# How to pass a linker flag through the compiler.
16705wl=$lt_lt_prog_compiler_wl_F77
16706
16707# Object file suffix (normally "o").
16708objext="$ac_objext"
16709
16710# Old archive suffix (normally "a").
16711libext="$libext"
16712
16713# Shared library suffix (normally ".so").
16714shrext_cmds='$shrext_cmds'
16715
16716# Executable file suffix (normally "").
16717exeext="$exeext"
16718
16719# Additional compiler flags for building library objects.
16720pic_flag=$lt_lt_prog_compiler_pic_F77
16721pic_mode=$pic_mode
16722
16723# What is the maximum length of a command?
16724max_cmd_len=$lt_cv_sys_max_cmd_len
16725
16726# Does compiler simultaneously support -c and -o options?
16727compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16728
16729# Must we lock files when doing compilation?
16730need_locks=$lt_need_locks
16731
16732# Do we need the lib prefix for modules?
16733need_lib_prefix=$need_lib_prefix
16734
16735# Do we need a version for libraries?
16736need_version=$need_version
16737
16738# Whether dlopen is supported.
16739dlopen_support=$enable_dlopen
16740
16741# Whether dlopen of programs is supported.
16742dlopen_self=$enable_dlopen_self
16743
16744# Whether dlopen of statically linked programs is supported.
16745dlopen_self_static=$enable_dlopen_self_static
16746
16747# Compiler flag to prevent dynamic linking.
16748link_static_flag=$lt_lt_prog_compiler_static_F77
16749
16750# Compiler flag to turn off builtin functions.
16751no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16752
16753# Compiler flag to allow reflexive dlopens.
16754export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16755
16756# Compiler flag to generate shared objects directly from archives.
16757whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16758
16759# Compiler flag to generate thread-safe objects.
16760thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16761
16762# Library versioning type.
16763version_type=$version_type
16764
16765# Format of library name prefix.
16766libname_spec=$lt_libname_spec
16767
16768# List of archive names.  First name is the real one, the rest are links.
16769# The last name is the one that the linker finds with -lNAME.
16770library_names_spec=$lt_library_names_spec
16771
16772# The coded name of the library, if different from the real name.
16773soname_spec=$lt_soname_spec
16774
16775# Commands used to build and install an old-style archive.
16776RANLIB=$lt_RANLIB
16777old_archive_cmds=$lt_old_archive_cmds_F77
16778old_postinstall_cmds=$lt_old_postinstall_cmds
16779old_postuninstall_cmds=$lt_old_postuninstall_cmds
16780
16781# Create an old-style archive from a shared archive.
16782old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16783
16784# Create a temporary old-style archive to link instead of a shared archive.
16785old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16786
16787# Commands used to build and install a shared archive.
16788archive_cmds=$lt_archive_cmds_F77
16789archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16790postinstall_cmds=$lt_postinstall_cmds
16791postuninstall_cmds=$lt_postuninstall_cmds
16792
16793# Commands used to build a loadable module (assumed same as above if empty)
16794module_cmds=$lt_module_cmds_F77
16795module_expsym_cmds=$lt_module_expsym_cmds_F77
16796
16797# Commands to strip libraries.
16798old_striplib=$lt_old_striplib
16799striplib=$lt_striplib
16800
16801# Dependencies to place before the objects being linked to create a
16802# shared library.
16803predep_objects=$lt_predep_objects_F77
16804
16805# Dependencies to place after the objects being linked to create a
16806# shared library.
16807postdep_objects=$lt_postdep_objects_F77
16808
16809# Dependencies to place before the objects being linked to create a
16810# shared library.
16811predeps=$lt_predeps_F77
16812
16813# Dependencies to place after the objects being linked to create a
16814# shared library.
16815postdeps=$lt_postdeps_F77
16816
16817# The directories searched by this compiler when creating a shared
16818# library
16819compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16820
16821# The library search path used internally by the compiler when linking
16822# a shared library.
16823compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16824
16825# Method to check whether dependent libraries are shared objects.
16826deplibs_check_method=$lt_deplibs_check_method
16827
16828# Command to use when deplibs_check_method == file_magic.
16829file_magic_cmd=$lt_file_magic_cmd
16830
16831# Flag that allows shared libraries with undefined symbols to be built.
16832allow_undefined_flag=$lt_allow_undefined_flag_F77
16833
16834# Flag that forces no undefined symbols.
16835no_undefined_flag=$lt_no_undefined_flag_F77
16836
16837# Commands used to finish a libtool library installation in a directory.
16838finish_cmds=$lt_finish_cmds
16839
16840# Same as above, but a single script fragment to be evaled but not shown.
16841finish_eval=$lt_finish_eval
16842
16843# Take the output of nm and produce a listing of raw symbols and C names.
16844global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16845
16846# Transform the output of nm in a proper C declaration
16847global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16848
16849# Transform the output of nm in a C name address pair
16850global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16851
16852# This is the shared library runtime path variable.
16853runpath_var=$runpath_var
16854
16855# This is the shared library path variable.
16856shlibpath_var=$shlibpath_var
16857
16858# Is shlibpath searched before the hard-coded library search path?
16859shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16860
16861# How to hardcode a shared library path into an executable.
16862hardcode_action=$hardcode_action_F77
16863
16864# Whether we should hardcode library paths into libraries.
16865hardcode_into_libs=$hardcode_into_libs
16866
16867# Flag to hardcode \$libdir into a binary during linking.
16868# This must work even if \$libdir does not exist.
16869hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16870
16871# If ld is used when linking, flag to hardcode \$libdir into
16872# a binary during linking. This must work even if \$libdir does
16873# not exist.
16874hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16875
16876# Whether we need a single -rpath flag with a separated argument.
16877hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16878
16879# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16880# resulting binary.
16881hardcode_direct=$hardcode_direct_F77
16882
16883# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16884# resulting binary.
16885hardcode_minus_L=$hardcode_minus_L_F77
16886
16887# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16888# the resulting binary.
16889hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16890
16891# Set to yes if building a shared library automatically hardcodes DIR into the library
16892# and all subsequent libraries and executables linked against it.
16893hardcode_automatic=$hardcode_automatic_F77
16894
16895# Variables whose values should be saved in libtool wrapper scripts and
16896# restored at relink time.
16897variables_saved_for_relink="$variables_saved_for_relink"
16898
16899# Whether libtool must link a program against all its dependency libraries.
16900link_all_deplibs=$link_all_deplibs_F77
16901
16902# Compile-time system search path for libraries
16903sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16904
16905# Run-time system search path for libraries
16906sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16907
16908# Fix the shell variable \$srcfile for the compiler.
16909fix_srcfile_path=$lt_fix_srcfile_path
16910
16911# Set to yes if exported symbols are required.
16912always_export_symbols=$always_export_symbols_F77
16913
16914# The commands to list exported symbols.
16915export_symbols_cmds=$lt_export_symbols_cmds_F77
16916
16917# The commands to extract the exported symbol list from a shared archive.
16918extract_expsyms_cmds=$lt_extract_expsyms_cmds
16919
16920# Symbols that should not be listed in the preloaded symbols.
16921exclude_expsyms=$lt_exclude_expsyms_F77
16922
16923# Symbols that must always be exported.
16924include_expsyms=$lt_include_expsyms_F77
16925
16926# ### END LIBTOOL TAG CONFIG: $tagname
16927
16928__EOF__
16929
16930
16931else
16932  # If there is no Makefile yet, we rely on a make rule to execute
16933  # `config.status --recheck' to rerun these tests and create the
16934  # libtool script then.
16935  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16936  if test -f "$ltmain_in"; then
16937    test -f Makefile && make "$ltmain"
16938  fi
16939fi
16940
16941
16942ac_ext=c
16943ac_cpp='$CPP $CPPFLAGS'
16944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16946ac_compiler_gnu=$ac_cv_c_compiler_gnu
16947
16948CC="$lt_save_CC"
16949
16950	else
16951	  tagname=""
16952	fi
16953	;;
16954
16955      GCJ)
16956	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16957
16958
16959# Source file extension for Java test sources.
16960ac_ext=java
16961
16962# Object file extension for compiled Java test sources.
16963objext=o
16964objext_GCJ=$objext
16965
16966# Code to be used in simple compile tests
16967lt_simple_compile_test_code="class foo {}"
16968
16969# Code to be used in simple link tests
16970lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16971
16972# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16973
16974# If no C compiler was specified, use CC.
16975LTCC=${LTCC-"$CC"}
16976
16977# If no C compiler flags were specified, use CFLAGS.
16978LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16979
16980# Allow CC to be a program name with arguments.
16981compiler=$CC
16982
16983
16984# save warnings/boilerplate of simple test code
16985ac_outfile=conftest.$ac_objext
16986echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16987eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16988_lt_compiler_boilerplate=`cat conftest.err`
16989$rm conftest*
16990
16991ac_outfile=conftest.$ac_objext
16992echo "$lt_simple_link_test_code" >conftest.$ac_ext
16993eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16994_lt_linker_boilerplate=`cat conftest.err`
16995$rm -r conftest*
16996
16997
16998# Allow CC to be a program name with arguments.
16999lt_save_CC="$CC"
17000CC=${GCJ-"gcj"}
17001compiler=$CC
17002compiler_GCJ=$CC
17003for cc_temp in $compiler""; do
17004  case $cc_temp in
17005    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17006    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17007    \-*) ;;
17008    *) break;;
17009  esac
17010done
17011cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17012
17013
17014# GCJ did not exist at the time GCC didn't implicitly link libc in.
17015archive_cmds_need_lc_GCJ=no
17016
17017old_archive_cmds_GCJ=$old_archive_cmds
17018
17019
17020lt_prog_compiler_no_builtin_flag_GCJ=
17021
17022if test "$GCC" = yes; then
17023  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17024
17025
17026{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17027$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17028if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17029  $as_echo_n "(cached) " >&6
17030else
17031  lt_cv_prog_compiler_rtti_exceptions=no
17032  ac_outfile=conftest.$ac_objext
17033   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17034   lt_compiler_flag="-fno-rtti -fno-exceptions"
17035   # Insert the option either (1) after the last *FLAGS variable, or
17036   # (2) before a word containing "conftest.", or (3) at the end.
17037   # Note that $ac_compile itself does not contain backslashes and begins
17038   # with a dollar sign (not a hyphen), so the echo should work correctly.
17039   # The option is referenced via a variable to avoid confusing sed.
17040   lt_compile=`echo "$ac_compile" | $SED \
17041   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17042   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17043   -e 's:$: $lt_compiler_flag:'`
17044   (eval echo "\"\$as_me:17044: $lt_compile\"" >&5)
17045   (eval "$lt_compile" 2>conftest.err)
17046   ac_status=$?
17047   cat conftest.err >&5
17048   echo "$as_me:17048: \$? = $ac_status" >&5
17049   if (exit $ac_status) && test -s "$ac_outfile"; then
17050     # The compiler can only warn and ignore the option if not recognized
17051     # So say no if there are warnings other than the usual output.
17052     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17053     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17054     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17055       lt_cv_prog_compiler_rtti_exceptions=yes
17056     fi
17057   fi
17058   $rm conftest*
17059
17060fi
17061{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17062$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17063
17064if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17065    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17066else
17067    :
17068fi
17069
17070fi
17071
17072lt_prog_compiler_wl_GCJ=
17073lt_prog_compiler_pic_GCJ=
17074lt_prog_compiler_static_GCJ=
17075
17076{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17077$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17078
17079  if test "$GCC" = yes; then
17080    lt_prog_compiler_wl_GCJ='-Wl,'
17081    lt_prog_compiler_static_GCJ='-static'
17082
17083    case $host_os in
17084      aix*)
17085      # All AIX code is PIC.
17086      if test "$host_cpu" = ia64; then
17087	# AIX 5 now supports IA64 processor
17088	lt_prog_compiler_static_GCJ='-Bstatic'
17089      fi
17090      ;;
17091
17092    amigaos*)
17093      # FIXME: we need at least 68020 code to build shared libraries, but
17094      # adding the `-m68020' flag to GCC prevents building anything better,
17095      # like `-m68040'.
17096      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17097      ;;
17098
17099    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17100      # PIC is the default for these OSes.
17101      ;;
17102
17103    mingw* | cygwin* | pw32* | os2*)
17104      # This hack is so that the source file can tell whether it is being
17105      # built for inclusion in a dll (and should export symbols for example).
17106      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17107      # (--disable-auto-import) libraries
17108
17109      ;;
17110
17111    darwin* | rhapsody*)
17112      # PIC is the default on this platform
17113      # Common symbols not allowed in MH_DYLIB files
17114      lt_prog_compiler_pic_GCJ='-fno-common'
17115      ;;
17116
17117    interix[3-9]*)
17118      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17119      # Instead, we relocate shared libraries at runtime.
17120      ;;
17121
17122    msdosdjgpp*)
17123      # Just because we use GCC doesn't mean we suddenly get shared libraries
17124      # on systems that don't support them.
17125      lt_prog_compiler_can_build_shared_GCJ=no
17126      enable_shared=no
17127      ;;
17128
17129    sysv4*MP*)
17130      if test -d /usr/nec; then
17131	lt_prog_compiler_pic_GCJ=-Kconform_pic
17132      fi
17133      ;;
17134
17135    hpux*)
17136      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17137      # not for PA HP-UX.
17138      case $host_cpu in
17139      hppa*64*|ia64*)
17140	# +Z the default
17141	;;
17142      *)
17143	lt_prog_compiler_pic_GCJ='-fPIC'
17144	;;
17145      esac
17146      ;;
17147
17148    *)
17149      lt_prog_compiler_pic_GCJ='-fPIC'
17150      ;;
17151    esac
17152  else
17153    # PORTME Check for flag to pass linker flags through the system compiler.
17154    case $host_os in
17155    aix*)
17156      lt_prog_compiler_wl_GCJ='-Wl,'
17157      if test "$host_cpu" = ia64; then
17158	# AIX 5 now supports IA64 processor
17159	lt_prog_compiler_static_GCJ='-Bstatic'
17160      else
17161	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17162      fi
17163      ;;
17164      darwin*)
17165        # PIC is the default on this platform
17166        # Common symbols not allowed in MH_DYLIB files
17167       case $cc_basename in
17168         xlc*)
17169         lt_prog_compiler_pic_GCJ='-qnocommon'
17170         lt_prog_compiler_wl_GCJ='-Wl,'
17171         ;;
17172       esac
17173       ;;
17174
17175    mingw* | cygwin* | pw32* | os2*)
17176      # This hack is so that the source file can tell whether it is being
17177      # built for inclusion in a dll (and should export symbols for example).
17178
17179      ;;
17180
17181    hpux9* | hpux10* | hpux11*)
17182      lt_prog_compiler_wl_GCJ='-Wl,'
17183      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17184      # not for PA HP-UX.
17185      case $host_cpu in
17186      hppa*64*|ia64*)
17187	# +Z the default
17188	;;
17189      *)
17190	lt_prog_compiler_pic_GCJ='+Z'
17191	;;
17192      esac
17193      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17194      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17195      ;;
17196
17197    irix5* | irix6* | nonstopux*)
17198      lt_prog_compiler_wl_GCJ='-Wl,'
17199      # PIC (with -KPIC) is the default.
17200      lt_prog_compiler_static_GCJ='-non_shared'
17201      ;;
17202
17203    newsos6)
17204      lt_prog_compiler_pic_GCJ='-KPIC'
17205      lt_prog_compiler_static_GCJ='-Bstatic'
17206      ;;
17207
17208    linux* | k*bsd*-gnu)
17209      case $cc_basename in
17210      icc* | ecc*)
17211	lt_prog_compiler_wl_GCJ='-Wl,'
17212	lt_prog_compiler_pic_GCJ='-KPIC'
17213	lt_prog_compiler_static_GCJ='-static'
17214        ;;
17215      pgcc* | pgf77* | pgf90* | pgf95*)
17216        # Portland Group compilers (*not* the Pentium gcc compiler,
17217	# which looks to be a dead project)
17218	lt_prog_compiler_wl_GCJ='-Wl,'
17219	lt_prog_compiler_pic_GCJ='-fpic'
17220	lt_prog_compiler_static_GCJ='-Bstatic'
17221        ;;
17222      ccc*)
17223        lt_prog_compiler_wl_GCJ='-Wl,'
17224        # All Alpha code is PIC.
17225        lt_prog_compiler_static_GCJ='-non_shared'
17226        ;;
17227      *)
17228        case `$CC -V 2>&1 | sed 5q` in
17229	*Sun\ C*)
17230	  # Sun C 5.9
17231	  lt_prog_compiler_pic_GCJ='-KPIC'
17232	  lt_prog_compiler_static_GCJ='-Bstatic'
17233	  lt_prog_compiler_wl_GCJ='-Wl,'
17234	  ;;
17235	*Sun\ F*)
17236	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17237	  lt_prog_compiler_pic_GCJ='-KPIC'
17238	  lt_prog_compiler_static_GCJ='-Bstatic'
17239	  lt_prog_compiler_wl_GCJ=''
17240	  ;;
17241	esac
17242	;;
17243      esac
17244      ;;
17245
17246    osf3* | osf4* | osf5*)
17247      lt_prog_compiler_wl_GCJ='-Wl,'
17248      # All OSF/1 code is PIC.
17249      lt_prog_compiler_static_GCJ='-non_shared'
17250      ;;
17251
17252    rdos*)
17253      lt_prog_compiler_static_GCJ='-non_shared'
17254      ;;
17255
17256    solaris*)
17257      lt_prog_compiler_pic_GCJ='-KPIC'
17258      lt_prog_compiler_static_GCJ='-Bstatic'
17259      case $cc_basename in
17260      f77* | f90* | f95*)
17261	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17262      *)
17263	lt_prog_compiler_wl_GCJ='-Wl,';;
17264      esac
17265      ;;
17266
17267    sunos4*)
17268      lt_prog_compiler_wl_GCJ='-Qoption ld '
17269      lt_prog_compiler_pic_GCJ='-PIC'
17270      lt_prog_compiler_static_GCJ='-Bstatic'
17271      ;;
17272
17273    sysv4 | sysv4.2uw2* | sysv4.3*)
17274      lt_prog_compiler_wl_GCJ='-Wl,'
17275      lt_prog_compiler_pic_GCJ='-KPIC'
17276      lt_prog_compiler_static_GCJ='-Bstatic'
17277      ;;
17278
17279    sysv4*MP*)
17280      if test -d /usr/nec ;then
17281	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17282	lt_prog_compiler_static_GCJ='-Bstatic'
17283      fi
17284      ;;
17285
17286    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17287      lt_prog_compiler_wl_GCJ='-Wl,'
17288      lt_prog_compiler_pic_GCJ='-KPIC'
17289      lt_prog_compiler_static_GCJ='-Bstatic'
17290      ;;
17291
17292    unicos*)
17293      lt_prog_compiler_wl_GCJ='-Wl,'
17294      lt_prog_compiler_can_build_shared_GCJ=no
17295      ;;
17296
17297    uts4*)
17298      lt_prog_compiler_pic_GCJ='-pic'
17299      lt_prog_compiler_static_GCJ='-Bstatic'
17300      ;;
17301
17302    *)
17303      lt_prog_compiler_can_build_shared_GCJ=no
17304      ;;
17305    esac
17306  fi
17307
17308{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17309$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17310
17311#
17312# Check to make sure the PIC flag actually works.
17313#
17314if test -n "$lt_prog_compiler_pic_GCJ"; then
17315
17316{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17317$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17318if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17319  $as_echo_n "(cached) " >&6
17320else
17321  lt_cv_prog_compiler_pic_works_GCJ=no
17322  ac_outfile=conftest.$ac_objext
17323   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17324   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17325   # Insert the option either (1) after the last *FLAGS variable, or
17326   # (2) before a word containing "conftest.", or (3) at the end.
17327   # Note that $ac_compile itself does not contain backslashes and begins
17328   # with a dollar sign (not a hyphen), so the echo should work correctly.
17329   # The option is referenced via a variable to avoid confusing sed.
17330   lt_compile=`echo "$ac_compile" | $SED \
17331   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17332   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17333   -e 's:$: $lt_compiler_flag:'`
17334   (eval echo "\"\$as_me:17334: $lt_compile\"" >&5)
17335   (eval "$lt_compile" 2>conftest.err)
17336   ac_status=$?
17337   cat conftest.err >&5
17338   echo "$as_me:17338: \$? = $ac_status" >&5
17339   if (exit $ac_status) && test -s "$ac_outfile"; then
17340     # The compiler can only warn and ignore the option if not recognized
17341     # So say no if there are warnings other than the usual output.
17342     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17343     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17344     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17345       lt_cv_prog_compiler_pic_works_GCJ=yes
17346     fi
17347   fi
17348   $rm conftest*
17349
17350fi
17351{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17352$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17353
17354if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17355    case $lt_prog_compiler_pic_GCJ in
17356     "" | " "*) ;;
17357     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17358     esac
17359else
17360    lt_prog_compiler_pic_GCJ=
17361     lt_prog_compiler_can_build_shared_GCJ=no
17362fi
17363
17364fi
17365case $host_os in
17366  # For platforms which do not support PIC, -DPIC is meaningless:
17367  *djgpp*)
17368    lt_prog_compiler_pic_GCJ=
17369    ;;
17370  *)
17371    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17372    ;;
17373esac
17374
17375#
17376# Check to make sure the static flag actually works.
17377#
17378wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17379{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17380$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17381if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17382  $as_echo_n "(cached) " >&6
17383else
17384  lt_cv_prog_compiler_static_works_GCJ=no
17385   save_LDFLAGS="$LDFLAGS"
17386   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17387   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17388   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17389     # The linker can only warn and ignore the option if not recognized
17390     # So say no if there are warnings
17391     if test -s conftest.err; then
17392       # Append any errors to the config.log.
17393       cat conftest.err 1>&5
17394       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17395       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17396       if diff conftest.exp conftest.er2 >/dev/null; then
17397         lt_cv_prog_compiler_static_works_GCJ=yes
17398       fi
17399     else
17400       lt_cv_prog_compiler_static_works_GCJ=yes
17401     fi
17402   fi
17403   $rm -r conftest*
17404   LDFLAGS="$save_LDFLAGS"
17405
17406fi
17407{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17408$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17409
17410if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17411    :
17412else
17413    lt_prog_compiler_static_GCJ=
17414fi
17415
17416
17417{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17418$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17419if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17420  $as_echo_n "(cached) " >&6
17421else
17422  lt_cv_prog_compiler_c_o_GCJ=no
17423   $rm -r conftest 2>/dev/null
17424   mkdir conftest
17425   cd conftest
17426   mkdir out
17427   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17428
17429   lt_compiler_flag="-o out/conftest2.$ac_objext"
17430   # Insert the option either (1) after the last *FLAGS variable, or
17431   # (2) before a word containing "conftest.", or (3) at the end.
17432   # Note that $ac_compile itself does not contain backslashes and begins
17433   # with a dollar sign (not a hyphen), so the echo should work correctly.
17434   lt_compile=`echo "$ac_compile" | $SED \
17435   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17436   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17437   -e 's:$: $lt_compiler_flag:'`
17438   (eval echo "\"\$as_me:17438: $lt_compile\"" >&5)
17439   (eval "$lt_compile" 2>out/conftest.err)
17440   ac_status=$?
17441   cat out/conftest.err >&5
17442   echo "$as_me:17442: \$? = $ac_status" >&5
17443   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17444   then
17445     # The compiler can only warn and ignore the option if not recognized
17446     # So say no if there are warnings
17447     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17448     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17449     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17450       lt_cv_prog_compiler_c_o_GCJ=yes
17451     fi
17452   fi
17453   chmod u+w . 2>&5
17454   $rm conftest*
17455   # SGI C++ compiler will create directory out/ii_files/ for
17456   # template instantiation
17457   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17458   $rm out/* && rmdir out
17459   cd ..
17460   rmdir conftest
17461   $rm conftest*
17462
17463fi
17464{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17465$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17466
17467
17468hard_links="nottested"
17469if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17470  # do not overwrite the value of need_locks provided by the user
17471  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17472$as_echo_n "checking if we can lock with hard links... " >&6; }
17473  hard_links=yes
17474  $rm conftest*
17475  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17476  touch conftest.a
17477  ln conftest.a conftest.b 2>&5 || hard_links=no
17478  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17479  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17480$as_echo "$hard_links" >&6; }
17481  if test "$hard_links" = no; then
17482    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17483$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17484    need_locks=warn
17485  fi
17486else
17487  need_locks=no
17488fi
17489
17490{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17491$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17492
17493  runpath_var=
17494  allow_undefined_flag_GCJ=
17495  enable_shared_with_static_runtimes_GCJ=no
17496  archive_cmds_GCJ=
17497  archive_expsym_cmds_GCJ=
17498  old_archive_From_new_cmds_GCJ=
17499  old_archive_from_expsyms_cmds_GCJ=
17500  export_dynamic_flag_spec_GCJ=
17501  whole_archive_flag_spec_GCJ=
17502  thread_safe_flag_spec_GCJ=
17503  hardcode_libdir_flag_spec_GCJ=
17504  hardcode_libdir_flag_spec_ld_GCJ=
17505  hardcode_libdir_separator_GCJ=
17506  hardcode_direct_GCJ=no
17507  hardcode_minus_L_GCJ=no
17508  hardcode_shlibpath_var_GCJ=unsupported
17509  link_all_deplibs_GCJ=unknown
17510  hardcode_automatic_GCJ=no
17511  module_cmds_GCJ=
17512  module_expsym_cmds_GCJ=
17513  always_export_symbols_GCJ=no
17514  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17515  # include_expsyms should be a list of space-separated symbols to be *always*
17516  # included in the symbol list
17517  include_expsyms_GCJ=
17518  # exclude_expsyms can be an extended regexp of symbols to exclude
17519  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17520  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17521  # as well as any symbol that contains `d'.
17522  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17523  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17524  # platforms (ab)use it in PIC code, but their linkers get confused if
17525  # the symbol is explicitly referenced.  Since portable code cannot
17526  # rely on this symbol name, it's probably fine to never include it in
17527  # preloaded symbol tables.
17528  # Exclude shared library initialization/finalization symbols.
17529  extract_expsyms_cmds=
17530  # Just being paranoid about ensuring that cc_basename is set.
17531  for cc_temp in $compiler""; do
17532  case $cc_temp in
17533    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17534    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17535    \-*) ;;
17536    *) break;;
17537  esac
17538done
17539cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17540
17541  case $host_os in
17542  cygwin* | mingw* | pw32*)
17543    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17544    # When not using gcc, we currently assume that we are using
17545    # Microsoft Visual C++.
17546    if test "$GCC" != yes; then
17547      with_gnu_ld=no
17548    fi
17549    ;;
17550  interix*)
17551    # we just hope/assume this is gcc and not c89 (= MSVC++)
17552    with_gnu_ld=yes
17553    ;;
17554  openbsd*)
17555    with_gnu_ld=no
17556    ;;
17557  esac
17558
17559  ld_shlibs_GCJ=yes
17560  if test "$with_gnu_ld" = yes; then
17561    # If archive_cmds runs LD, not CC, wlarc should be empty
17562    wlarc='${wl}'
17563
17564    # Set some defaults for GNU ld with shared library support. These
17565    # are reset later if shared libraries are not supported. Putting them
17566    # here allows them to be overridden if necessary.
17567    runpath_var=LD_RUN_PATH
17568    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17569    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17570    # ancient GNU ld didn't support --whole-archive et. al.
17571    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17572	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17573      else
17574  	whole_archive_flag_spec_GCJ=
17575    fi
17576    supports_anon_versioning=no
17577    case `$LD -v 2>/dev/null` in
17578      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17579      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17580      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17581      *\ 2.11.*) ;; # other 2.11 versions
17582      *) supports_anon_versioning=yes ;;
17583    esac
17584
17585    # See if GNU ld supports shared libraries.
17586    case $host_os in
17587    aix[3-9]*)
17588      # On AIX/PPC, the GNU linker is very broken
17589      if test "$host_cpu" != ia64; then
17590	ld_shlibs_GCJ=no
17591	cat <<EOF 1>&2
17592
17593*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17594*** to be unable to reliably create shared libraries on AIX.
17595*** Therefore, libtool is disabling shared libraries support.  If you
17596*** really care for shared libraries, you may want to modify your PATH
17597*** so that a non-GNU linker is found, and then restart.
17598
17599EOF
17600      fi
17601      ;;
17602
17603    amigaos*)
17604      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)'
17605      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17606      hardcode_minus_L_GCJ=yes
17607
17608      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17609      # that the semantics of dynamic libraries on AmigaOS, at least up
17610      # to version 4, is to share data among multiple programs linked
17611      # with the same dynamic library.  Since this doesn't match the
17612      # behavior of shared libraries on other platforms, we can't use
17613      # them.
17614      ld_shlibs_GCJ=no
17615      ;;
17616
17617    beos*)
17618      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17619	allow_undefined_flag_GCJ=unsupported
17620	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17621	# support --undefined.  This deserves some investigation.  FIXME
17622	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17623      else
17624	ld_shlibs_GCJ=no
17625      fi
17626      ;;
17627
17628    cygwin* | mingw* | pw32*)
17629      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17630      # as there is no search path for DLLs.
17631      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17632      allow_undefined_flag_GCJ=unsupported
17633      always_export_symbols_GCJ=no
17634      enable_shared_with_static_runtimes_GCJ=yes
17635      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17636
17637      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17638        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17639	# If the export-symbols file already is a .def file (1st line
17640	# is EXPORTS), use it as is; otherwise, prepend...
17641	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17642	  cp $export_symbols $output_objdir/$soname.def;
17643	else
17644	  echo EXPORTS > $output_objdir/$soname.def;
17645	  cat $export_symbols >> $output_objdir/$soname.def;
17646	fi~
17647	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17648      else
17649	ld_shlibs_GCJ=no
17650      fi
17651      ;;
17652
17653    interix[3-9]*)
17654      hardcode_direct_GCJ=no
17655      hardcode_shlibpath_var_GCJ=no
17656      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17657      export_dynamic_flag_spec_GCJ='${wl}-E'
17658      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17659      # Instead, shared libraries are loaded at an image base (0x10000000 by
17660      # default) and relocated if they conflict, which is a slow very memory
17661      # consuming and fragmenting process.  To avoid this, we pick a random,
17662      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17663      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17664      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'
17665      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'
17666      ;;
17667
17668    gnu* | linux* | k*bsd*-gnu)
17669      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17670	tmp_addflag=
17671	case $cc_basename,$host_cpu in
17672	pgcc*)				# Portland Group C compiler
17673	  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'
17674	  tmp_addflag=' $pic_flag'
17675	  ;;
17676	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17677	  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'
17678	  tmp_addflag=' $pic_flag -Mnomain' ;;
17679	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17680	  tmp_addflag=' -i_dynamic' ;;
17681	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17682	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17683	ifc* | ifort*)			# Intel Fortran compiler
17684	  tmp_addflag=' -nofor_main' ;;
17685	esac
17686	case `$CC -V 2>&1 | sed 5q` in
17687	*Sun\ C*)			# Sun C 5.9
17688	  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'
17689	  tmp_sharedflag='-G' ;;
17690	*Sun\ F*)			# Sun Fortran 8.3
17691	  tmp_sharedflag='-G' ;;
17692	*)
17693	  tmp_sharedflag='-shared' ;;
17694	esac
17695	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17696
17697	if test $supports_anon_versioning = yes; then
17698	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17699  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17700  $echo "local: *; };" >> $output_objdir/$libname.ver~
17701	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17702	fi
17703      else
17704	ld_shlibs_GCJ=no
17705      fi
17706      ;;
17707
17708    netbsd*)
17709      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17710	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17711	wlarc=
17712      else
17713	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17714	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17715      fi
17716      ;;
17717
17718    solaris*)
17719      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17720	ld_shlibs_GCJ=no
17721	cat <<EOF 1>&2
17722
17723*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17724*** create shared libraries on Solaris systems.  Therefore, libtool
17725*** is disabling shared libraries support.  We urge you to upgrade GNU
17726*** binutils to release 2.9.1 or newer.  Another option is to modify
17727*** your PATH or compiler configuration so that the native linker is
17728*** used, and then restart.
17729
17730EOF
17731      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17732	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17733	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17734      else
17735	ld_shlibs_GCJ=no
17736      fi
17737      ;;
17738
17739    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17740      case `$LD -v 2>&1` in
17741        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17742	ld_shlibs_GCJ=no
17743	cat <<_LT_EOF 1>&2
17744
17745*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17746*** reliably create shared libraries on SCO systems.  Therefore, libtool
17747*** is disabling shared libraries support.  We urge you to upgrade GNU
17748*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17749*** your PATH or compiler configuration so that the native linker is
17750*** used, and then restart.
17751
17752_LT_EOF
17753	;;
17754	*)
17755	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17756	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17757	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17758	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17759	  else
17760	    ld_shlibs_GCJ=no
17761	  fi
17762	;;
17763      esac
17764      ;;
17765
17766    sunos4*)
17767      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17768      wlarc=
17769      hardcode_direct_GCJ=yes
17770      hardcode_shlibpath_var_GCJ=no
17771      ;;
17772
17773    *)
17774      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17775	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17776	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17777      else
17778	ld_shlibs_GCJ=no
17779      fi
17780      ;;
17781    esac
17782
17783    if test "$ld_shlibs_GCJ" = no; then
17784      runpath_var=
17785      hardcode_libdir_flag_spec_GCJ=
17786      export_dynamic_flag_spec_GCJ=
17787      whole_archive_flag_spec_GCJ=
17788    fi
17789  else
17790    # PORTME fill in a description of your system's linker (not GNU ld)
17791    case $host_os in
17792    aix3*)
17793      allow_undefined_flag_GCJ=unsupported
17794      always_export_symbols_GCJ=yes
17795      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'
17796      # Note: this linker hardcodes the directories in LIBPATH if there
17797      # are no directories specified by -L.
17798      hardcode_minus_L_GCJ=yes
17799      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17800	# Neither direct hardcoding nor static linking is supported with a
17801	# broken collect2.
17802	hardcode_direct_GCJ=unsupported
17803      fi
17804      ;;
17805
17806    aix[4-9]*)
17807      if test "$host_cpu" = ia64; then
17808	# On IA64, the linker does run time linking by default, so we don't
17809	# have to do anything special.
17810	aix_use_runtimelinking=no
17811	exp_sym_flag='-Bexport'
17812	no_entry_flag=""
17813      else
17814	# If we're using GNU nm, then we don't want the "-C" option.
17815	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17816	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17817	  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'
17818	else
17819	  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'
17820	fi
17821	aix_use_runtimelinking=no
17822
17823	# Test if we are trying to use run time linking or normal
17824	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17825	# need to do runtime linking.
17826	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17827	  for ld_flag in $LDFLAGS; do
17828  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17829  	    aix_use_runtimelinking=yes
17830  	    break
17831  	  fi
17832	  done
17833	  ;;
17834	esac
17835
17836	exp_sym_flag='-bexport'
17837	no_entry_flag='-bnoentry'
17838      fi
17839
17840      # When large executables or shared objects are built, AIX ld can
17841      # have problems creating the table of contents.  If linking a library
17842      # or program results in "error TOC overflow" add -mminimal-toc to
17843      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17844      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17845
17846      archive_cmds_GCJ=''
17847      hardcode_direct_GCJ=yes
17848      hardcode_libdir_separator_GCJ=':'
17849      link_all_deplibs_GCJ=yes
17850
17851      if test "$GCC" = yes; then
17852	case $host_os in aix4.[012]|aix4.[012].*)
17853	# We only want to do this on AIX 4.2 and lower, the check
17854	# below for broken collect2 doesn't work under 4.3+
17855	  collect2name=`${CC} -print-prog-name=collect2`
17856	  if test -f "$collect2name" && \
17857  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17858	  then
17859  	  # We have reworked collect2
17860  	  :
17861	  else
17862  	  # We have old collect2
17863  	  hardcode_direct_GCJ=unsupported
17864  	  # It fails to find uninstalled libraries when the uninstalled
17865  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17866  	  # to unsupported forces relinking
17867  	  hardcode_minus_L_GCJ=yes
17868  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17869  	  hardcode_libdir_separator_GCJ=
17870	  fi
17871	  ;;
17872	esac
17873	shared_flag='-shared'
17874	if test "$aix_use_runtimelinking" = yes; then
17875	  shared_flag="$shared_flag "'${wl}-G'
17876	fi
17877      else
17878	# not using gcc
17879	if test "$host_cpu" = ia64; then
17880  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17881  	# chokes on -Wl,-G. The following line is correct:
17882	  shared_flag='-G'
17883	else
17884	  if test "$aix_use_runtimelinking" = yes; then
17885	    shared_flag='${wl}-G'
17886	  else
17887	    shared_flag='${wl}-bM:SRE'
17888	  fi
17889	fi
17890      fi
17891
17892      # It seems that -bexpall does not export symbols beginning with
17893      # underscore (_), so it is better to generate a list of symbols to export.
17894      always_export_symbols_GCJ=yes
17895      if test "$aix_use_runtimelinking" = yes; then
17896	# Warning - without using the other runtime loading flags (-brtl),
17897	# -berok will link without error, but may produce a broken library.
17898	allow_undefined_flag_GCJ='-berok'
17899       # Determine the default libpath from the value encoded in an empty executable.
17900       cat >conftest.$ac_ext <<_ACEOF
17901/* confdefs.h.  */
17902_ACEOF
17903cat confdefs.h >>conftest.$ac_ext
17904cat >>conftest.$ac_ext <<_ACEOF
17905/* end confdefs.h.  */
17906
17907int
17908main ()
17909{
17910
17911  ;
17912  return 0;
17913}
17914_ACEOF
17915rm -f conftest.$ac_objext conftest$ac_exeext
17916if { (ac_try="$ac_link"
17917case "(($ac_try" in
17918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919  *) ac_try_echo=$ac_try;;
17920esac
17921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17922$as_echo "$ac_try_echo") >&5
17923  (eval "$ac_link") 2>conftest.er1
17924  ac_status=$?
17925  grep -v '^ *+' conftest.er1 >conftest.err
17926  rm -f conftest.er1
17927  cat conftest.err >&5
17928  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929  (exit $ac_status); } && {
17930	 test -z "$ac_c_werror_flag" ||
17931	 test ! -s conftest.err
17932       } && test -s conftest$ac_exeext && {
17933	 test "$cross_compiling" = yes ||
17934	 $as_test_x conftest$ac_exeext
17935       }; then
17936
17937lt_aix_libpath_sed='
17938    /Import File Strings/,/^$/ {
17939	/^0/ {
17940	    s/^0  *\(.*\)$/\1/
17941	    p
17942	}
17943    }'
17944aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17945# Check for a 64-bit object if we didn't find anything.
17946if test -z "$aix_libpath"; then
17947  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17948fi
17949else
17950  $as_echo "$as_me: failed program was:" >&5
17951sed 's/^/| /' conftest.$ac_ext >&5
17952
17953
17954fi
17955
17956rm -rf conftest.dSYM
17957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17958      conftest$ac_exeext conftest.$ac_ext
17959if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17960
17961       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17962	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"
17963       else
17964	if test "$host_cpu" = ia64; then
17965	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17966	  allow_undefined_flag_GCJ="-z nodefs"
17967	  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"
17968	else
17969	 # Determine the default libpath from the value encoded in an empty executable.
17970	 cat >conftest.$ac_ext <<_ACEOF
17971/* confdefs.h.  */
17972_ACEOF
17973cat confdefs.h >>conftest.$ac_ext
17974cat >>conftest.$ac_ext <<_ACEOF
17975/* end confdefs.h.  */
17976
17977int
17978main ()
17979{
17980
17981  ;
17982  return 0;
17983}
17984_ACEOF
17985rm -f conftest.$ac_objext conftest$ac_exeext
17986if { (ac_try="$ac_link"
17987case "(($ac_try" in
17988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989  *) ac_try_echo=$ac_try;;
17990esac
17991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17992$as_echo "$ac_try_echo") >&5
17993  (eval "$ac_link") 2>conftest.er1
17994  ac_status=$?
17995  grep -v '^ *+' conftest.er1 >conftest.err
17996  rm -f conftest.er1
17997  cat conftest.err >&5
17998  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999  (exit $ac_status); } && {
18000	 test -z "$ac_c_werror_flag" ||
18001	 test ! -s conftest.err
18002       } && test -s conftest$ac_exeext && {
18003	 test "$cross_compiling" = yes ||
18004	 $as_test_x conftest$ac_exeext
18005       }; then
18006
18007lt_aix_libpath_sed='
18008    /Import File Strings/,/^$/ {
18009	/^0/ {
18010	    s/^0  *\(.*\)$/\1/
18011	    p
18012	}
18013    }'
18014aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18015# Check for a 64-bit object if we didn't find anything.
18016if test -z "$aix_libpath"; then
18017  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18018fi
18019else
18020  $as_echo "$as_me: failed program was:" >&5
18021sed 's/^/| /' conftest.$ac_ext >&5
18022
18023
18024fi
18025
18026rm -rf conftest.dSYM
18027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18028      conftest$ac_exeext conftest.$ac_ext
18029if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18030
18031	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18032	  # Warning - without using the other run time loading flags,
18033	  # -berok will link without error, but may produce a broken library.
18034	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18035	  allow_undefined_flag_GCJ=' ${wl}-berok'
18036	  # Exported symbols can be pulled into shared objects from archives
18037	  whole_archive_flag_spec_GCJ='$convenience'
18038	  archive_cmds_need_lc_GCJ=yes
18039	  # This is similar to how AIX traditionally builds its shared libraries.
18040	  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'
18041	fi
18042      fi
18043      ;;
18044
18045    amigaos*)
18046      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)'
18047      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18048      hardcode_minus_L_GCJ=yes
18049      # see comment about different semantics on the GNU ld section
18050      ld_shlibs_GCJ=no
18051      ;;
18052
18053    bsdi[45]*)
18054      export_dynamic_flag_spec_GCJ=-rdynamic
18055      ;;
18056
18057    cygwin* | mingw* | pw32*)
18058      # When not using gcc, we currently assume that we are using
18059      # Microsoft Visual C++.
18060      # hardcode_libdir_flag_spec is actually meaningless, as there is
18061      # no search path for DLLs.
18062      hardcode_libdir_flag_spec_GCJ=' '
18063      allow_undefined_flag_GCJ=unsupported
18064      # Tell ltmain to make .lib files, not .a files.
18065      libext=lib
18066      # Tell ltmain to make .dll files, not .so files.
18067      shrext_cmds=".dll"
18068      # FIXME: Setting linknames here is a bad hack.
18069      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18070      # The linker will automatically build a .lib file if we build a DLL.
18071      old_archive_From_new_cmds_GCJ='true'
18072      # FIXME: Should let the user specify the lib program.
18073      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18074      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18075      enable_shared_with_static_runtimes_GCJ=yes
18076      ;;
18077
18078    darwin* | rhapsody*)
18079      case $host_os in
18080        rhapsody* | darwin1.[012])
18081         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18082         ;;
18083       *) # Darwin 1.3 on
18084         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18085           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18086         else
18087           case ${MACOSX_DEPLOYMENT_TARGET} in
18088             10.[012])
18089               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18090               ;;
18091             10.*)
18092               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18093               ;;
18094           esac
18095         fi
18096         ;;
18097      esac
18098      archive_cmds_need_lc_GCJ=no
18099      hardcode_direct_GCJ=no
18100      hardcode_automatic_GCJ=yes
18101      hardcode_shlibpath_var_GCJ=unsupported
18102      whole_archive_flag_spec_GCJ=''
18103      link_all_deplibs_GCJ=yes
18104    if test "$GCC" = yes ; then
18105    	output_verbose_link_cmd='echo'
18106        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}"
18107        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18108        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}"
18109        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}"
18110    else
18111      case $cc_basename in
18112        xlc*)
18113         output_verbose_link_cmd='echo'
18114         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18115         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18116          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18117         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}'
18118          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}'
18119          ;;
18120       *)
18121         ld_shlibs_GCJ=no
18122          ;;
18123      esac
18124    fi
18125      ;;
18126
18127    dgux*)
18128      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18129      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18130      hardcode_shlibpath_var_GCJ=no
18131      ;;
18132
18133    freebsd1*)
18134      ld_shlibs_GCJ=no
18135      ;;
18136
18137    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18138    # support.  Future versions do this automatically, but an explicit c++rt0.o
18139    # does not break anything, and helps significantly (at the cost of a little
18140    # extra space).
18141    freebsd2.2*)
18142      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18143      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18144      hardcode_direct_GCJ=yes
18145      hardcode_shlibpath_var_GCJ=no
18146      ;;
18147
18148    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18149    freebsd2*)
18150      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18151      hardcode_direct_GCJ=yes
18152      hardcode_minus_L_GCJ=yes
18153      hardcode_shlibpath_var_GCJ=no
18154      ;;
18155
18156    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18157    freebsd* | dragonfly*)
18158      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18159      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18160      hardcode_direct_GCJ=yes
18161      hardcode_shlibpath_var_GCJ=no
18162      ;;
18163
18164    hpux9*)
18165      if test "$GCC" = yes; then
18166	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'
18167      else
18168	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'
18169      fi
18170      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18171      hardcode_libdir_separator_GCJ=:
18172      hardcode_direct_GCJ=yes
18173
18174      # hardcode_minus_L: Not really in the search PATH,
18175      # but as the default location of the library.
18176      hardcode_minus_L_GCJ=yes
18177      export_dynamic_flag_spec_GCJ='${wl}-E'
18178      ;;
18179
18180    hpux10*)
18181      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18182	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18183      else
18184	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18185      fi
18186      if test "$with_gnu_ld" = no; then
18187	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18188	hardcode_libdir_separator_GCJ=:
18189
18190	hardcode_direct_GCJ=yes
18191	export_dynamic_flag_spec_GCJ='${wl}-E'
18192
18193	# hardcode_minus_L: Not really in the search PATH,
18194	# but as the default location of the library.
18195	hardcode_minus_L_GCJ=yes
18196      fi
18197      ;;
18198
18199    hpux11*)
18200      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18201	case $host_cpu in
18202	hppa*64*)
18203	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18204	  ;;
18205	ia64*)
18206	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18207	  ;;
18208	*)
18209	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18210	  ;;
18211	esac
18212      else
18213	case $host_cpu in
18214	hppa*64*)
18215	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18216	  ;;
18217	ia64*)
18218	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18219	  ;;
18220	*)
18221	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18222	  ;;
18223	esac
18224      fi
18225      if test "$with_gnu_ld" = no; then
18226	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18227	hardcode_libdir_separator_GCJ=:
18228
18229	case $host_cpu in
18230	hppa*64*|ia64*)
18231	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18232	  hardcode_direct_GCJ=no
18233	  hardcode_shlibpath_var_GCJ=no
18234	  ;;
18235	*)
18236	  hardcode_direct_GCJ=yes
18237	  export_dynamic_flag_spec_GCJ='${wl}-E'
18238
18239	  # hardcode_minus_L: Not really in the search PATH,
18240	  # but as the default location of the library.
18241	  hardcode_minus_L_GCJ=yes
18242	  ;;
18243	esac
18244      fi
18245      ;;
18246
18247    irix5* | irix6* | nonstopux*)
18248      if test "$GCC" = yes; then
18249	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'
18250      else
18251	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'
18252	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18253      fi
18254      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18255      hardcode_libdir_separator_GCJ=:
18256      link_all_deplibs_GCJ=yes
18257      ;;
18258
18259    netbsd*)
18260      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18261	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18262      else
18263	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18264      fi
18265      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18266      hardcode_direct_GCJ=yes
18267      hardcode_shlibpath_var_GCJ=no
18268      ;;
18269
18270    newsos6)
18271      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18272      hardcode_direct_GCJ=yes
18273      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18274      hardcode_libdir_separator_GCJ=:
18275      hardcode_shlibpath_var_GCJ=no
18276      ;;
18277
18278    openbsd*)
18279      if test -f /usr/libexec/ld.so; then
18280	hardcode_direct_GCJ=yes
18281	hardcode_shlibpath_var_GCJ=no
18282	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18283	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18284	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18285	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18286	  export_dynamic_flag_spec_GCJ='${wl}-E'
18287	else
18288	  case $host_os in
18289	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18290	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18291	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18292	     ;;
18293	   *)
18294	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18295	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18296	     ;;
18297	  esac
18298        fi
18299      else
18300	ld_shlibs_GCJ=no
18301      fi
18302      ;;
18303
18304    os2*)
18305      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18306      hardcode_minus_L_GCJ=yes
18307      allow_undefined_flag_GCJ=unsupported
18308      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'
18309      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18310      ;;
18311
18312    osf3*)
18313      if test "$GCC" = yes; then
18314	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18315	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'
18316      else
18317	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18318	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'
18319      fi
18320      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18321      hardcode_libdir_separator_GCJ=:
18322      ;;
18323
18324    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18325      if test "$GCC" = yes; then
18326	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18327	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'
18328	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18329      else
18330	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18331	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'
18332	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~
18333	$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'
18334
18335	# Both c and cxx compiler support -rpath directly
18336	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18337      fi
18338      hardcode_libdir_separator_GCJ=:
18339      ;;
18340
18341    solaris*)
18342      no_undefined_flag_GCJ=' -z text'
18343      if test "$GCC" = yes; then
18344	wlarc='${wl}'
18345	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18346	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18347	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18348      else
18349	wlarc=''
18350	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18351	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18352  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18353      fi
18354      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18355      hardcode_shlibpath_var_GCJ=no
18356      case $host_os in
18357      solaris2.[0-5] | solaris2.[0-5].*) ;;
18358      *)
18359	# The compiler driver will combine and reorder linker options,
18360	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18361	# but is careful enough not to reorder.
18362 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18363	if test "$GCC" = yes; then
18364	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18365	else
18366	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18367	fi
18368	;;
18369      esac
18370      link_all_deplibs_GCJ=yes
18371      ;;
18372
18373    sunos4*)
18374      if test "x$host_vendor" = xsequent; then
18375	# Use $CC to link under sequent, because it throws in some extra .o
18376	# files that make .init and .fini sections work.
18377	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18378      else
18379	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18380      fi
18381      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18382      hardcode_direct_GCJ=yes
18383      hardcode_minus_L_GCJ=yes
18384      hardcode_shlibpath_var_GCJ=no
18385      ;;
18386
18387    sysv4)
18388      case $host_vendor in
18389	sni)
18390	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18391	  hardcode_direct_GCJ=yes # is this really true???
18392	;;
18393	siemens)
18394	  ## LD is ld it makes a PLAMLIB
18395	  ## CC just makes a GrossModule.
18396	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18397	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18398	  hardcode_direct_GCJ=no
18399        ;;
18400	motorola)
18401	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18402	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18403	;;
18404      esac
18405      runpath_var='LD_RUN_PATH'
18406      hardcode_shlibpath_var_GCJ=no
18407      ;;
18408
18409    sysv4.3*)
18410      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18411      hardcode_shlibpath_var_GCJ=no
18412      export_dynamic_flag_spec_GCJ='-Bexport'
18413      ;;
18414
18415    sysv4*MP*)
18416      if test -d /usr/nec; then
18417	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18418	hardcode_shlibpath_var_GCJ=no
18419	runpath_var=LD_RUN_PATH
18420	hardcode_runpath_var=yes
18421	ld_shlibs_GCJ=yes
18422      fi
18423      ;;
18424
18425    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18426      no_undefined_flag_GCJ='${wl}-z,text'
18427      archive_cmds_need_lc_GCJ=no
18428      hardcode_shlibpath_var_GCJ=no
18429      runpath_var='LD_RUN_PATH'
18430
18431      if test "$GCC" = yes; then
18432	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18433	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18434      else
18435	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18436	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18437      fi
18438      ;;
18439
18440    sysv5* | sco3.2v5* | sco5v6*)
18441      # Note: We can NOT use -z defs as we might desire, because we do not
18442      # link with -lc, and that would cause any symbols used from libc to
18443      # always be unresolved, which means just about no library would
18444      # ever link correctly.  If we're not using GNU ld we use -z text
18445      # though, which does catch some bad symbols but isn't as heavy-handed
18446      # as -z defs.
18447      no_undefined_flag_GCJ='${wl}-z,text'
18448      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18449      archive_cmds_need_lc_GCJ=no
18450      hardcode_shlibpath_var_GCJ=no
18451      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18452      hardcode_libdir_separator_GCJ=':'
18453      link_all_deplibs_GCJ=yes
18454      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18455      runpath_var='LD_RUN_PATH'
18456
18457      if test "$GCC" = yes; then
18458	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18459	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18460      else
18461	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18462	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18463      fi
18464      ;;
18465
18466    uts4*)
18467      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18468      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18469      hardcode_shlibpath_var_GCJ=no
18470      ;;
18471
18472    *)
18473      ld_shlibs_GCJ=no
18474      ;;
18475    esac
18476  fi
18477
18478{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18479$as_echo "$ld_shlibs_GCJ" >&6; }
18480test "$ld_shlibs_GCJ" = no && can_build_shared=no
18481
18482#
18483# Do we need to explicitly link libc?
18484#
18485case "x$archive_cmds_need_lc_GCJ" in
18486x|xyes)
18487  # Assume -lc should be added
18488  archive_cmds_need_lc_GCJ=yes
18489
18490  if test "$enable_shared" = yes && test "$GCC" = yes; then
18491    case $archive_cmds_GCJ in
18492    *'~'*)
18493      # FIXME: we may have to deal with multi-command sequences.
18494      ;;
18495    '$CC '*)
18496      # Test whether the compiler implicitly links with -lc since on some
18497      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18498      # to ld, don't add -lc before -lgcc.
18499      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18500$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18501      $rm conftest*
18502      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18503
18504      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18505  (eval $ac_compile) 2>&5
18506  ac_status=$?
18507  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508  (exit $ac_status); } 2>conftest.err; then
18509        soname=conftest
18510        lib=conftest
18511        libobjs=conftest.$ac_objext
18512        deplibs=
18513        wl=$lt_prog_compiler_wl_GCJ
18514	pic_flag=$lt_prog_compiler_pic_GCJ
18515        compiler_flags=-v
18516        linker_flags=-v
18517        verstring=
18518        output_objdir=.
18519        libname=conftest
18520        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18521        allow_undefined_flag_GCJ=
18522        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18523  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18524  ac_status=$?
18525  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526  (exit $ac_status); }
18527        then
18528	  archive_cmds_need_lc_GCJ=no
18529        else
18530	  archive_cmds_need_lc_GCJ=yes
18531        fi
18532        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18533      else
18534        cat conftest.err 1>&5
18535      fi
18536      $rm conftest*
18537      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18538$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18539      ;;
18540    esac
18541  fi
18542  ;;
18543esac
18544
18545{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18546$as_echo_n "checking dynamic linker characteristics... " >&6; }
18547library_names_spec=
18548libname_spec='lib$name'
18549soname_spec=
18550shrext_cmds=".so"
18551postinstall_cmds=
18552postuninstall_cmds=
18553finish_cmds=
18554finish_eval=
18555shlibpath_var=
18556shlibpath_overrides_runpath=unknown
18557version_type=none
18558dynamic_linker="$host_os ld.so"
18559sys_lib_dlsearch_path_spec="/lib /usr/lib"
18560
18561need_lib_prefix=unknown
18562hardcode_into_libs=no
18563
18564# when you set need_version to no, make sure it does not cause -set_version
18565# flags to be left without arguments
18566need_version=unknown
18567
18568case $host_os in
18569aix3*)
18570  version_type=linux
18571  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18572  shlibpath_var=LIBPATH
18573
18574  # AIX 3 has no versioning support, so we append a major version to the name.
18575  soname_spec='${libname}${release}${shared_ext}$major'
18576  ;;
18577
18578aix[4-9]*)
18579  version_type=linux
18580  need_lib_prefix=no
18581  need_version=no
18582  hardcode_into_libs=yes
18583  if test "$host_cpu" = ia64; then
18584    # AIX 5 supports IA64
18585    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18586    shlibpath_var=LD_LIBRARY_PATH
18587  else
18588    # With GCC up to 2.95.x, collect2 would create an import file
18589    # for dependence libraries.  The import file would start with
18590    # the line `#! .'.  This would cause the generated library to
18591    # depend on `.', always an invalid library.  This was fixed in
18592    # development snapshots of GCC prior to 3.0.
18593    case $host_os in
18594      aix4 | aix4.[01] | aix4.[01].*)
18595      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18596	   echo ' yes '
18597	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18598	:
18599      else
18600	can_build_shared=no
18601      fi
18602      ;;
18603    esac
18604    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18605    # soname into executable. Probably we can add versioning support to
18606    # collect2, so additional links can be useful in future.
18607    if test "$aix_use_runtimelinking" = yes; then
18608      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18609      # instead of lib<name>.a to let people know that these are not
18610      # typical AIX shared libraries.
18611      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18612    else
18613      # We preserve .a as extension for shared libraries through AIX4.2
18614      # and later when we are not doing run time linking.
18615      library_names_spec='${libname}${release}.a $libname.a'
18616      soname_spec='${libname}${release}${shared_ext}$major'
18617    fi
18618    shlibpath_var=LIBPATH
18619  fi
18620  ;;
18621
18622amigaos*)
18623  library_names_spec='$libname.ixlibrary $libname.a'
18624  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18625  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'
18626  ;;
18627
18628beos*)
18629  library_names_spec='${libname}${shared_ext}'
18630  dynamic_linker="$host_os ld.so"
18631  shlibpath_var=LIBRARY_PATH
18632  ;;
18633
18634bsdi[45]*)
18635  version_type=linux
18636  need_version=no
18637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18638  soname_spec='${libname}${release}${shared_ext}$major'
18639  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18640  shlibpath_var=LD_LIBRARY_PATH
18641  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18642  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18643  # the default ld.so.conf also contains /usr/contrib/lib and
18644  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18645  # libtool to hard-code these into programs
18646  ;;
18647
18648cygwin* | mingw* | pw32*)
18649  version_type=windows
18650  shrext_cmds=".dll"
18651  need_version=no
18652  need_lib_prefix=no
18653
18654  case $GCC,$host_os in
18655  yes,cygwin* | yes,mingw* | yes,pw32*)
18656    library_names_spec='$libname.dll.a'
18657    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18658    postinstall_cmds='base_file=`basename \${file}`~
18659      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18660      dldir=$destdir/`dirname \$dlpath`~
18661      test -d \$dldir || mkdir -p \$dldir~
18662      $install_prog $dir/$dlname \$dldir/$dlname~
18663      chmod a+x \$dldir/$dlname'
18664    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18665      dlpath=$dir/\$dldll~
18666       $rm \$dlpath'
18667    shlibpath_overrides_runpath=yes
18668
18669    case $host_os in
18670    cygwin*)
18671      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18672      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18673      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18674      ;;
18675    mingw*)
18676      # MinGW DLLs use traditional 'lib' prefix
18677      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18678      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18679      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18680        # It is most probably a Windows format PATH printed by
18681        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18682        # path with ; separators, and with drive letters. We can handle the
18683        # drive letters (cygwin fileutils understands them), so leave them,
18684        # especially as we might pass files found there to a mingw objdump,
18685        # which wouldn't understand a cygwinified path. Ahh.
18686        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18687      else
18688        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18689      fi
18690      ;;
18691    pw32*)
18692      # pw32 DLLs use 'pw' prefix rather than 'lib'
18693      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18694      ;;
18695    esac
18696    ;;
18697
18698  *)
18699    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18700    ;;
18701  esac
18702  dynamic_linker='Win32 ld.exe'
18703  # FIXME: first we should search . and the directory the executable is in
18704  shlibpath_var=PATH
18705  ;;
18706
18707darwin* | rhapsody*)
18708  dynamic_linker="$host_os dyld"
18709  version_type=darwin
18710  need_lib_prefix=no
18711  need_version=no
18712  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18713  soname_spec='${libname}${release}${major}$shared_ext'
18714  shlibpath_overrides_runpath=yes
18715  shlibpath_var=DYLD_LIBRARY_PATH
18716  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18717
18718  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18719  ;;
18720
18721dgux*)
18722  version_type=linux
18723  need_lib_prefix=no
18724  need_version=no
18725  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18726  soname_spec='${libname}${release}${shared_ext}$major'
18727  shlibpath_var=LD_LIBRARY_PATH
18728  ;;
18729
18730freebsd1*)
18731  dynamic_linker=no
18732  ;;
18733
18734freebsd* | dragonfly*)
18735  # DragonFly does not have aout.  When/if they implement a new
18736  # versioning mechanism, adjust this.
18737  if test -x /usr/bin/objformat; then
18738    objformat=`/usr/bin/objformat`
18739  else
18740    case $host_os in
18741    freebsd[123]*) objformat=aout ;;
18742    *) objformat=elf ;;
18743    esac
18744  fi
18745  version_type=freebsd-$objformat
18746  case $version_type in
18747    freebsd-elf*)
18748      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18749      need_version=no
18750      need_lib_prefix=no
18751      ;;
18752    freebsd-*)
18753      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18754      need_version=yes
18755      ;;
18756  esac
18757  shlibpath_var=LD_LIBRARY_PATH
18758  case $host_os in
18759  freebsd2*)
18760    shlibpath_overrides_runpath=yes
18761    ;;
18762  freebsd3.[01]* | freebsdelf3.[01]*)
18763    shlibpath_overrides_runpath=yes
18764    hardcode_into_libs=yes
18765    ;;
18766  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18767  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18768    shlibpath_overrides_runpath=no
18769    hardcode_into_libs=yes
18770    ;;
18771  *) # from 4.6 on, and DragonFly
18772    shlibpath_overrides_runpath=yes
18773    hardcode_into_libs=yes
18774    ;;
18775  esac
18776  ;;
18777
18778gnu*)
18779  version_type=linux
18780  need_lib_prefix=no
18781  need_version=no
18782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18783  soname_spec='${libname}${release}${shared_ext}$major'
18784  shlibpath_var=LD_LIBRARY_PATH
18785  hardcode_into_libs=yes
18786  ;;
18787
18788hpux9* | hpux10* | hpux11*)
18789  # Give a soname corresponding to the major version so that dld.sl refuses to
18790  # link against other versions.
18791  version_type=sunos
18792  need_lib_prefix=no
18793  need_version=no
18794  case $host_cpu in
18795  ia64*)
18796    shrext_cmds='.so'
18797    hardcode_into_libs=yes
18798    dynamic_linker="$host_os dld.so"
18799    shlibpath_var=LD_LIBRARY_PATH
18800    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18801    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18802    soname_spec='${libname}${release}${shared_ext}$major'
18803    if test "X$HPUX_IA64_MODE" = X32; then
18804      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18805    else
18806      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18807    fi
18808    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18809    ;;
18810   hppa*64*)
18811     shrext_cmds='.sl'
18812     hardcode_into_libs=yes
18813     dynamic_linker="$host_os dld.sl"
18814     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18815     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18817     soname_spec='${libname}${release}${shared_ext}$major'
18818     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18819     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18820     ;;
18821   *)
18822    shrext_cmds='.sl'
18823    dynamic_linker="$host_os dld.sl"
18824    shlibpath_var=SHLIB_PATH
18825    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18826    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18827    soname_spec='${libname}${release}${shared_ext}$major'
18828    ;;
18829  esac
18830  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18831  postinstall_cmds='chmod 555 $lib'
18832  ;;
18833
18834interix[3-9]*)
18835  version_type=linux
18836  need_lib_prefix=no
18837  need_version=no
18838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18839  soname_spec='${libname}${release}${shared_ext}$major'
18840  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18841  shlibpath_var=LD_LIBRARY_PATH
18842  shlibpath_overrides_runpath=no
18843  hardcode_into_libs=yes
18844  ;;
18845
18846irix5* | irix6* | nonstopux*)
18847  case $host_os in
18848    nonstopux*) version_type=nonstopux ;;
18849    *)
18850	if test "$lt_cv_prog_gnu_ld" = yes; then
18851		version_type=linux
18852	else
18853		version_type=irix
18854	fi ;;
18855  esac
18856  need_lib_prefix=no
18857  need_version=no
18858  soname_spec='${libname}${release}${shared_ext}$major'
18859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18860  case $host_os in
18861  irix5* | nonstopux*)
18862    libsuff= shlibsuff=
18863    ;;
18864  *)
18865    case $LD in # libtool.m4 will add one of these switches to LD
18866    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18867      libsuff= shlibsuff= libmagic=32-bit;;
18868    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18869      libsuff=32 shlibsuff=N32 libmagic=N32;;
18870    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18871      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18872    *) libsuff= shlibsuff= libmagic=never-match;;
18873    esac
18874    ;;
18875  esac
18876  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18877  shlibpath_overrides_runpath=no
18878  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18879  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18880  hardcode_into_libs=yes
18881  ;;
18882
18883# No shared lib support for Linux oldld, aout, or coff.
18884linux*oldld* | linux*aout* | linux*coff*)
18885  dynamic_linker=no
18886  ;;
18887
18888# This must be Linux ELF.
18889linux* | k*bsd*-gnu)
18890  version_type=linux
18891  need_lib_prefix=no
18892  need_version=no
18893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18894  soname_spec='${libname}${release}${shared_ext}$major'
18895  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18896  shlibpath_var=LD_LIBRARY_PATH
18897  shlibpath_overrides_runpath=no
18898  # This implies no fast_install, which is unacceptable.
18899  # Some rework will be needed to allow for fast_install
18900  # before this can be enabled.
18901  hardcode_into_libs=yes
18902  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18903  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18904
18905  # Append ld.so.conf contents to the search path
18906  if test -f /etc/ld.so.conf; then
18907    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' ' '`
18908    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18909  fi
18910
18911  # We used to test for /lib/ld.so.1 and disable shared libraries on
18912  # powerpc, because MkLinux only supported shared libraries with the
18913  # GNU dynamic linker.  Since this was broken with cross compilers,
18914  # most powerpc-linux boxes support dynamic linking these days and
18915  # people can always --disable-shared, the test was removed, and we
18916  # assume the GNU/Linux dynamic linker is in use.
18917  dynamic_linker='GNU/Linux ld.so'
18918  ;;
18919
18920netbsd*)
18921  version_type=sunos
18922  need_lib_prefix=no
18923  need_version=no
18924  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18925    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18926    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18927    dynamic_linker='NetBSD (a.out) ld.so'
18928  else
18929    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18930    soname_spec='${libname}${release}${shared_ext}$major'
18931    dynamic_linker='NetBSD ld.elf_so'
18932  fi
18933  shlibpath_var=LD_LIBRARY_PATH
18934  shlibpath_overrides_runpath=yes
18935  hardcode_into_libs=yes
18936  ;;
18937
18938newsos6)
18939  version_type=linux
18940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18941  shlibpath_var=LD_LIBRARY_PATH
18942  shlibpath_overrides_runpath=yes
18943  ;;
18944
18945nto-qnx*)
18946  version_type=linux
18947  need_lib_prefix=no
18948  need_version=no
18949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18950  soname_spec='${libname}${release}${shared_ext}$major'
18951  shlibpath_var=LD_LIBRARY_PATH
18952  shlibpath_overrides_runpath=yes
18953  ;;
18954
18955openbsd*)
18956  version_type=sunos
18957  sys_lib_dlsearch_path_spec="/usr/lib"
18958  need_lib_prefix=no
18959  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18960  case $host_os in
18961    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18962    *)                         need_version=no  ;;
18963  esac
18964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18965  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18966  shlibpath_var=LD_LIBRARY_PATH
18967  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18968    case $host_os in
18969      openbsd2.[89] | openbsd2.[89].*)
18970	shlibpath_overrides_runpath=no
18971	;;
18972      *)
18973	shlibpath_overrides_runpath=yes
18974	;;
18975      esac
18976  else
18977    shlibpath_overrides_runpath=yes
18978  fi
18979  ;;
18980
18981os2*)
18982  libname_spec='$name'
18983  shrext_cmds=".dll"
18984  need_lib_prefix=no
18985  library_names_spec='$libname${shared_ext} $libname.a'
18986  dynamic_linker='OS/2 ld.exe'
18987  shlibpath_var=LIBPATH
18988  ;;
18989
18990osf3* | osf4* | osf5*)
18991  version_type=osf
18992  need_lib_prefix=no
18993  need_version=no
18994  soname_spec='${libname}${release}${shared_ext}$major'
18995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18996  shlibpath_var=LD_LIBRARY_PATH
18997  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18998  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18999  ;;
19000
19001rdos*)
19002  dynamic_linker=no
19003  ;;
19004
19005solaris*)
19006  version_type=linux
19007  need_lib_prefix=no
19008  need_version=no
19009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19010  soname_spec='${libname}${release}${shared_ext}$major'
19011  shlibpath_var=LD_LIBRARY_PATH
19012  shlibpath_overrides_runpath=yes
19013  hardcode_into_libs=yes
19014  # ldd complains unless libraries are executable
19015  postinstall_cmds='chmod +x $lib'
19016  ;;
19017
19018sunos4*)
19019  version_type=sunos
19020  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19021  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19022  shlibpath_var=LD_LIBRARY_PATH
19023  shlibpath_overrides_runpath=yes
19024  if test "$with_gnu_ld" = yes; then
19025    need_lib_prefix=no
19026  fi
19027  need_version=yes
19028  ;;
19029
19030sysv4 | sysv4.3*)
19031  version_type=linux
19032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19033  soname_spec='${libname}${release}${shared_ext}$major'
19034  shlibpath_var=LD_LIBRARY_PATH
19035  case $host_vendor in
19036    sni)
19037      shlibpath_overrides_runpath=no
19038      need_lib_prefix=no
19039      export_dynamic_flag_spec='${wl}-Blargedynsym'
19040      runpath_var=LD_RUN_PATH
19041      ;;
19042    siemens)
19043      need_lib_prefix=no
19044      ;;
19045    motorola)
19046      need_lib_prefix=no
19047      need_version=no
19048      shlibpath_overrides_runpath=no
19049      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19050      ;;
19051  esac
19052  ;;
19053
19054sysv4*MP*)
19055  if test -d /usr/nec ;then
19056    version_type=linux
19057    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19058    soname_spec='$libname${shared_ext}.$major'
19059    shlibpath_var=LD_LIBRARY_PATH
19060  fi
19061  ;;
19062
19063sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19064  version_type=freebsd-elf
19065  need_lib_prefix=no
19066  need_version=no
19067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19068  soname_spec='${libname}${release}${shared_ext}$major'
19069  shlibpath_var=LD_LIBRARY_PATH
19070  hardcode_into_libs=yes
19071  if test "$with_gnu_ld" = yes; then
19072    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19073    shlibpath_overrides_runpath=no
19074  else
19075    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19076    shlibpath_overrides_runpath=yes
19077    case $host_os in
19078      sco3.2v5*)
19079        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19080	;;
19081    esac
19082  fi
19083  sys_lib_dlsearch_path_spec='/usr/lib'
19084  ;;
19085
19086uts4*)
19087  version_type=linux
19088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19089  soname_spec='${libname}${release}${shared_ext}$major'
19090  shlibpath_var=LD_LIBRARY_PATH
19091  ;;
19092
19093*)
19094  dynamic_linker=no
19095  ;;
19096esac
19097{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19098$as_echo "$dynamic_linker" >&6; }
19099test "$dynamic_linker" = no && can_build_shared=no
19100
19101if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19102  $as_echo_n "(cached) " >&6
19103else
19104  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19105fi
19106
19107sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19108if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19109  $as_echo_n "(cached) " >&6
19110else
19111  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19112fi
19113
19114sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19115
19116variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19117if test "$GCC" = yes; then
19118  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19119fi
19120
19121{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19122$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19123hardcode_action_GCJ=
19124if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19125   test -n "$runpath_var_GCJ" || \
19126   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19127
19128  # We can hardcode non-existant directories.
19129  if test "$hardcode_direct_GCJ" != no &&
19130     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19131     # have to relink, otherwise we might link with an installed library
19132     # when we should be linking with a yet-to-be-installed one
19133     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19134     test "$hardcode_minus_L_GCJ" != no; then
19135    # Linking always hardcodes the temporary library directory.
19136    hardcode_action_GCJ=relink
19137  else
19138    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19139    hardcode_action_GCJ=immediate
19140  fi
19141else
19142  # We cannot hardcode anything, or else we can only hardcode existing
19143  # directories.
19144  hardcode_action_GCJ=unsupported
19145fi
19146{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19147$as_echo "$hardcode_action_GCJ" >&6; }
19148
19149if test "$hardcode_action_GCJ" = relink; then
19150  # Fast installation is not supported
19151  enable_fast_install=no
19152elif test "$shlibpath_overrides_runpath" = yes ||
19153     test "$enable_shared" = no; then
19154  # Fast installation is not necessary
19155  enable_fast_install=needless
19156fi
19157
19158
19159# The else clause should only fire when bootstrapping the
19160# libtool distribution, otherwise you forgot to ship ltmain.sh
19161# with your package, and you will get complaints that there are
19162# no rules to generate ltmain.sh.
19163if test -f "$ltmain"; then
19164  # See if we are running on zsh, and set the options which allow our commands through
19165  # without removal of \ escapes.
19166  if test -n "${ZSH_VERSION+set}" ; then
19167    setopt NO_GLOB_SUBST
19168  fi
19169  # Now quote all the things that may contain metacharacters while being
19170  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19171  # variables and quote the copies for generation of the libtool script.
19172  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19173    SED SHELL STRIP \
19174    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19175    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19176    deplibs_check_method reload_flag reload_cmds need_locks \
19177    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19178    lt_cv_sys_global_symbol_to_c_name_address \
19179    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19180    old_postinstall_cmds old_postuninstall_cmds \
19181    compiler_GCJ \
19182    CC_GCJ \
19183    LD_GCJ \
19184    lt_prog_compiler_wl_GCJ \
19185    lt_prog_compiler_pic_GCJ \
19186    lt_prog_compiler_static_GCJ \
19187    lt_prog_compiler_no_builtin_flag_GCJ \
19188    export_dynamic_flag_spec_GCJ \
19189    thread_safe_flag_spec_GCJ \
19190    whole_archive_flag_spec_GCJ \
19191    enable_shared_with_static_runtimes_GCJ \
19192    old_archive_cmds_GCJ \
19193    old_archive_from_new_cmds_GCJ \
19194    predep_objects_GCJ \
19195    postdep_objects_GCJ \
19196    predeps_GCJ \
19197    postdeps_GCJ \
19198    compiler_lib_search_path_GCJ \
19199    compiler_lib_search_dirs_GCJ \
19200    archive_cmds_GCJ \
19201    archive_expsym_cmds_GCJ \
19202    postinstall_cmds_GCJ \
19203    postuninstall_cmds_GCJ \
19204    old_archive_from_expsyms_cmds_GCJ \
19205    allow_undefined_flag_GCJ \
19206    no_undefined_flag_GCJ \
19207    export_symbols_cmds_GCJ \
19208    hardcode_libdir_flag_spec_GCJ \
19209    hardcode_libdir_flag_spec_ld_GCJ \
19210    hardcode_libdir_separator_GCJ \
19211    hardcode_automatic_GCJ \
19212    module_cmds_GCJ \
19213    module_expsym_cmds_GCJ \
19214    lt_cv_prog_compiler_c_o_GCJ \
19215    fix_srcfile_path_GCJ \
19216    exclude_expsyms_GCJ \
19217    include_expsyms_GCJ; do
19218
19219    case $var in
19220    old_archive_cmds_GCJ | \
19221    old_archive_from_new_cmds_GCJ | \
19222    archive_cmds_GCJ | \
19223    archive_expsym_cmds_GCJ | \
19224    module_cmds_GCJ | \
19225    module_expsym_cmds_GCJ | \
19226    old_archive_from_expsyms_cmds_GCJ | \
19227    export_symbols_cmds_GCJ | \
19228    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19229    postinstall_cmds | postuninstall_cmds | \
19230    old_postinstall_cmds | old_postuninstall_cmds | \
19231    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19232      # Double-quote double-evaled strings.
19233      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19234      ;;
19235    *)
19236      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19237      ;;
19238    esac
19239  done
19240
19241  case $lt_echo in
19242  *'\$0 --fallback-echo"')
19243    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19244    ;;
19245  esac
19246
19247cfgfile="$ofile"
19248
19249  cat <<__EOF__ >> "$cfgfile"
19250# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19251
19252# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19253
19254# Shell to use when invoking shell scripts.
19255SHELL=$lt_SHELL
19256
19257# Whether or not to build shared libraries.
19258build_libtool_libs=$enable_shared
19259
19260# Whether or not to build static libraries.
19261build_old_libs=$enable_static
19262
19263# Whether or not to add -lc for building shared libraries.
19264build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19265
19266# Whether or not to disallow shared libs when runtime libs are static
19267allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19268
19269# Whether or not to optimize for fast installation.
19270fast_install=$enable_fast_install
19271
19272# The host system.
19273host_alias=$host_alias
19274host=$host
19275host_os=$host_os
19276
19277# The build system.
19278build_alias=$build_alias
19279build=$build
19280build_os=$build_os
19281
19282# An echo program that does not interpret backslashes.
19283echo=$lt_echo
19284
19285# The archiver.
19286AR=$lt_AR
19287AR_FLAGS=$lt_AR_FLAGS
19288
19289# A C compiler.
19290LTCC=$lt_LTCC
19291
19292# LTCC compiler flags.
19293LTCFLAGS=$lt_LTCFLAGS
19294
19295# A language-specific compiler.
19296CC=$lt_compiler_GCJ
19297
19298# Is the compiler the GNU C compiler?
19299with_gcc=$GCC_GCJ
19300
19301# An ERE matcher.
19302EGREP=$lt_EGREP
19303
19304# The linker used to build libraries.
19305LD=$lt_LD_GCJ
19306
19307# Whether we need hard or soft links.
19308LN_S=$lt_LN_S
19309
19310# A BSD-compatible nm program.
19311NM=$lt_NM
19312
19313# A symbol stripping program
19314STRIP=$lt_STRIP
19315
19316# Used to examine libraries when file_magic_cmd begins "file"
19317MAGIC_CMD=$MAGIC_CMD
19318
19319# Used on cygwin: DLL creation program.
19320DLLTOOL="$DLLTOOL"
19321
19322# Used on cygwin: object dumper.
19323OBJDUMP="$OBJDUMP"
19324
19325# Used on cygwin: assembler.
19326AS="$AS"
19327
19328# The name of the directory that contains temporary libtool files.
19329objdir=$objdir
19330
19331# How to create reloadable object files.
19332reload_flag=$lt_reload_flag
19333reload_cmds=$lt_reload_cmds
19334
19335# How to pass a linker flag through the compiler.
19336wl=$lt_lt_prog_compiler_wl_GCJ
19337
19338# Object file suffix (normally "o").
19339objext="$ac_objext"
19340
19341# Old archive suffix (normally "a").
19342libext="$libext"
19343
19344# Shared library suffix (normally ".so").
19345shrext_cmds='$shrext_cmds'
19346
19347# Executable file suffix (normally "").
19348exeext="$exeext"
19349
19350# Additional compiler flags for building library objects.
19351pic_flag=$lt_lt_prog_compiler_pic_GCJ
19352pic_mode=$pic_mode
19353
19354# What is the maximum length of a command?
19355max_cmd_len=$lt_cv_sys_max_cmd_len
19356
19357# Does compiler simultaneously support -c and -o options?
19358compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19359
19360# Must we lock files when doing compilation?
19361need_locks=$lt_need_locks
19362
19363# Do we need the lib prefix for modules?
19364need_lib_prefix=$need_lib_prefix
19365
19366# Do we need a version for libraries?
19367need_version=$need_version
19368
19369# Whether dlopen is supported.
19370dlopen_support=$enable_dlopen
19371
19372# Whether dlopen of programs is supported.
19373dlopen_self=$enable_dlopen_self
19374
19375# Whether dlopen of statically linked programs is supported.
19376dlopen_self_static=$enable_dlopen_self_static
19377
19378# Compiler flag to prevent dynamic linking.
19379link_static_flag=$lt_lt_prog_compiler_static_GCJ
19380
19381# Compiler flag to turn off builtin functions.
19382no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19383
19384# Compiler flag to allow reflexive dlopens.
19385export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19386
19387# Compiler flag to generate shared objects directly from archives.
19388whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19389
19390# Compiler flag to generate thread-safe objects.
19391thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19392
19393# Library versioning type.
19394version_type=$version_type
19395
19396# Format of library name prefix.
19397libname_spec=$lt_libname_spec
19398
19399# List of archive names.  First name is the real one, the rest are links.
19400# The last name is the one that the linker finds with -lNAME.
19401library_names_spec=$lt_library_names_spec
19402
19403# The coded name of the library, if different from the real name.
19404soname_spec=$lt_soname_spec
19405
19406# Commands used to build and install an old-style archive.
19407RANLIB=$lt_RANLIB
19408old_archive_cmds=$lt_old_archive_cmds_GCJ
19409old_postinstall_cmds=$lt_old_postinstall_cmds
19410old_postuninstall_cmds=$lt_old_postuninstall_cmds
19411
19412# Create an old-style archive from a shared archive.
19413old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19414
19415# Create a temporary old-style archive to link instead of a shared archive.
19416old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19417
19418# Commands used to build and install a shared archive.
19419archive_cmds=$lt_archive_cmds_GCJ
19420archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19421postinstall_cmds=$lt_postinstall_cmds
19422postuninstall_cmds=$lt_postuninstall_cmds
19423
19424# Commands used to build a loadable module (assumed same as above if empty)
19425module_cmds=$lt_module_cmds_GCJ
19426module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19427
19428# Commands to strip libraries.
19429old_striplib=$lt_old_striplib
19430striplib=$lt_striplib
19431
19432# Dependencies to place before the objects being linked to create a
19433# shared library.
19434predep_objects=$lt_predep_objects_GCJ
19435
19436# Dependencies to place after the objects being linked to create a
19437# shared library.
19438postdep_objects=$lt_postdep_objects_GCJ
19439
19440# Dependencies to place before the objects being linked to create a
19441# shared library.
19442predeps=$lt_predeps_GCJ
19443
19444# Dependencies to place after the objects being linked to create a
19445# shared library.
19446postdeps=$lt_postdeps_GCJ
19447
19448# The directories searched by this compiler when creating a shared
19449# library
19450compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19451
19452# The library search path used internally by the compiler when linking
19453# a shared library.
19454compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19455
19456# Method to check whether dependent libraries are shared objects.
19457deplibs_check_method=$lt_deplibs_check_method
19458
19459# Command to use when deplibs_check_method == file_magic.
19460file_magic_cmd=$lt_file_magic_cmd
19461
19462# Flag that allows shared libraries with undefined symbols to be built.
19463allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19464
19465# Flag that forces no undefined symbols.
19466no_undefined_flag=$lt_no_undefined_flag_GCJ
19467
19468# Commands used to finish a libtool library installation in a directory.
19469finish_cmds=$lt_finish_cmds
19470
19471# Same as above, but a single script fragment to be evaled but not shown.
19472finish_eval=$lt_finish_eval
19473
19474# Take the output of nm and produce a listing of raw symbols and C names.
19475global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19476
19477# Transform the output of nm in a proper C declaration
19478global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19479
19480# Transform the output of nm in a C name address pair
19481global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19482
19483# This is the shared library runtime path variable.
19484runpath_var=$runpath_var
19485
19486# This is the shared library path variable.
19487shlibpath_var=$shlibpath_var
19488
19489# Is shlibpath searched before the hard-coded library search path?
19490shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19491
19492# How to hardcode a shared library path into an executable.
19493hardcode_action=$hardcode_action_GCJ
19494
19495# Whether we should hardcode library paths into libraries.
19496hardcode_into_libs=$hardcode_into_libs
19497
19498# Flag to hardcode \$libdir into a binary during linking.
19499# This must work even if \$libdir does not exist.
19500hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19501
19502# If ld is used when linking, flag to hardcode \$libdir into
19503# a binary during linking. This must work even if \$libdir does
19504# not exist.
19505hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19506
19507# Whether we need a single -rpath flag with a separated argument.
19508hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19509
19510# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19511# resulting binary.
19512hardcode_direct=$hardcode_direct_GCJ
19513
19514# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19515# resulting binary.
19516hardcode_minus_L=$hardcode_minus_L_GCJ
19517
19518# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19519# the resulting binary.
19520hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19521
19522# Set to yes if building a shared library automatically hardcodes DIR into the library
19523# and all subsequent libraries and executables linked against it.
19524hardcode_automatic=$hardcode_automatic_GCJ
19525
19526# Variables whose values should be saved in libtool wrapper scripts and
19527# restored at relink time.
19528variables_saved_for_relink="$variables_saved_for_relink"
19529
19530# Whether libtool must link a program against all its dependency libraries.
19531link_all_deplibs=$link_all_deplibs_GCJ
19532
19533# Compile-time system search path for libraries
19534sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19535
19536# Run-time system search path for libraries
19537sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19538
19539# Fix the shell variable \$srcfile for the compiler.
19540fix_srcfile_path=$lt_fix_srcfile_path
19541
19542# Set to yes if exported symbols are required.
19543always_export_symbols=$always_export_symbols_GCJ
19544
19545# The commands to list exported symbols.
19546export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19547
19548# The commands to extract the exported symbol list from a shared archive.
19549extract_expsyms_cmds=$lt_extract_expsyms_cmds
19550
19551# Symbols that should not be listed in the preloaded symbols.
19552exclude_expsyms=$lt_exclude_expsyms_GCJ
19553
19554# Symbols that must always be exported.
19555include_expsyms=$lt_include_expsyms_GCJ
19556
19557# ### END LIBTOOL TAG CONFIG: $tagname
19558
19559__EOF__
19560
19561
19562else
19563  # If there is no Makefile yet, we rely on a make rule to execute
19564  # `config.status --recheck' to rerun these tests and create the
19565  # libtool script then.
19566  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19567  if test -f "$ltmain_in"; then
19568    test -f Makefile && make "$ltmain"
19569  fi
19570fi
19571
19572
19573ac_ext=c
19574ac_cpp='$CPP $CPPFLAGS'
19575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19577ac_compiler_gnu=$ac_cv_c_compiler_gnu
19578
19579CC="$lt_save_CC"
19580
19581	else
19582	  tagname=""
19583	fi
19584	;;
19585
19586      RC)
19587
19588
19589# Source file extension for RC test sources.
19590ac_ext=rc
19591
19592# Object file extension for compiled RC test sources.
19593objext=o
19594objext_RC=$objext
19595
19596# Code to be used in simple compile tests
19597lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19598
19599# Code to be used in simple link tests
19600lt_simple_link_test_code="$lt_simple_compile_test_code"
19601
19602# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19603
19604# If no C compiler was specified, use CC.
19605LTCC=${LTCC-"$CC"}
19606
19607# If no C compiler flags were specified, use CFLAGS.
19608LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19609
19610# Allow CC to be a program name with arguments.
19611compiler=$CC
19612
19613
19614# save warnings/boilerplate of simple test code
19615ac_outfile=conftest.$ac_objext
19616echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19617eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19618_lt_compiler_boilerplate=`cat conftest.err`
19619$rm conftest*
19620
19621ac_outfile=conftest.$ac_objext
19622echo "$lt_simple_link_test_code" >conftest.$ac_ext
19623eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19624_lt_linker_boilerplate=`cat conftest.err`
19625$rm -r conftest*
19626
19627
19628# Allow CC to be a program name with arguments.
19629lt_save_CC="$CC"
19630CC=${RC-"windres"}
19631compiler=$CC
19632compiler_RC=$CC
19633for cc_temp in $compiler""; do
19634  case $cc_temp in
19635    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19636    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19637    \-*) ;;
19638    *) break;;
19639  esac
19640done
19641cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19642
19643lt_cv_prog_compiler_c_o_RC=yes
19644
19645# The else clause should only fire when bootstrapping the
19646# libtool distribution, otherwise you forgot to ship ltmain.sh
19647# with your package, and you will get complaints that there are
19648# no rules to generate ltmain.sh.
19649if test -f "$ltmain"; then
19650  # See if we are running on zsh, and set the options which allow our commands through
19651  # without removal of \ escapes.
19652  if test -n "${ZSH_VERSION+set}" ; then
19653    setopt NO_GLOB_SUBST
19654  fi
19655  # Now quote all the things that may contain metacharacters while being
19656  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19657  # variables and quote the copies for generation of the libtool script.
19658  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19659    SED SHELL STRIP \
19660    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19661    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19662    deplibs_check_method reload_flag reload_cmds need_locks \
19663    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19664    lt_cv_sys_global_symbol_to_c_name_address \
19665    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19666    old_postinstall_cmds old_postuninstall_cmds \
19667    compiler_RC \
19668    CC_RC \
19669    LD_RC \
19670    lt_prog_compiler_wl_RC \
19671    lt_prog_compiler_pic_RC \
19672    lt_prog_compiler_static_RC \
19673    lt_prog_compiler_no_builtin_flag_RC \
19674    export_dynamic_flag_spec_RC \
19675    thread_safe_flag_spec_RC \
19676    whole_archive_flag_spec_RC \
19677    enable_shared_with_static_runtimes_RC \
19678    old_archive_cmds_RC \
19679    old_archive_from_new_cmds_RC \
19680    predep_objects_RC \
19681    postdep_objects_RC \
19682    predeps_RC \
19683    postdeps_RC \
19684    compiler_lib_search_path_RC \
19685    compiler_lib_search_dirs_RC \
19686    archive_cmds_RC \
19687    archive_expsym_cmds_RC \
19688    postinstall_cmds_RC \
19689    postuninstall_cmds_RC \
19690    old_archive_from_expsyms_cmds_RC \
19691    allow_undefined_flag_RC \
19692    no_undefined_flag_RC \
19693    export_symbols_cmds_RC \
19694    hardcode_libdir_flag_spec_RC \
19695    hardcode_libdir_flag_spec_ld_RC \
19696    hardcode_libdir_separator_RC \
19697    hardcode_automatic_RC \
19698    module_cmds_RC \
19699    module_expsym_cmds_RC \
19700    lt_cv_prog_compiler_c_o_RC \
19701    fix_srcfile_path_RC \
19702    exclude_expsyms_RC \
19703    include_expsyms_RC; do
19704
19705    case $var in
19706    old_archive_cmds_RC | \
19707    old_archive_from_new_cmds_RC | \
19708    archive_cmds_RC | \
19709    archive_expsym_cmds_RC | \
19710    module_cmds_RC | \
19711    module_expsym_cmds_RC | \
19712    old_archive_from_expsyms_cmds_RC | \
19713    export_symbols_cmds_RC | \
19714    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19715    postinstall_cmds | postuninstall_cmds | \
19716    old_postinstall_cmds | old_postuninstall_cmds | \
19717    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19718      # Double-quote double-evaled strings.
19719      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19720      ;;
19721    *)
19722      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19723      ;;
19724    esac
19725  done
19726
19727  case $lt_echo in
19728  *'\$0 --fallback-echo"')
19729    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19730    ;;
19731  esac
19732
19733cfgfile="$ofile"
19734
19735  cat <<__EOF__ >> "$cfgfile"
19736# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19737
19738# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19739
19740# Shell to use when invoking shell scripts.
19741SHELL=$lt_SHELL
19742
19743# Whether or not to build shared libraries.
19744build_libtool_libs=$enable_shared
19745
19746# Whether or not to build static libraries.
19747build_old_libs=$enable_static
19748
19749# Whether or not to add -lc for building shared libraries.
19750build_libtool_need_lc=$archive_cmds_need_lc_RC
19751
19752# Whether or not to disallow shared libs when runtime libs are static
19753allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19754
19755# Whether or not to optimize for fast installation.
19756fast_install=$enable_fast_install
19757
19758# The host system.
19759host_alias=$host_alias
19760host=$host
19761host_os=$host_os
19762
19763# The build system.
19764build_alias=$build_alias
19765build=$build
19766build_os=$build_os
19767
19768# An echo program that does not interpret backslashes.
19769echo=$lt_echo
19770
19771# The archiver.
19772AR=$lt_AR
19773AR_FLAGS=$lt_AR_FLAGS
19774
19775# A C compiler.
19776LTCC=$lt_LTCC
19777
19778# LTCC compiler flags.
19779LTCFLAGS=$lt_LTCFLAGS
19780
19781# A language-specific compiler.
19782CC=$lt_compiler_RC
19783
19784# Is the compiler the GNU C compiler?
19785with_gcc=$GCC_RC
19786
19787# An ERE matcher.
19788EGREP=$lt_EGREP
19789
19790# The linker used to build libraries.
19791LD=$lt_LD_RC
19792
19793# Whether we need hard or soft links.
19794LN_S=$lt_LN_S
19795
19796# A BSD-compatible nm program.
19797NM=$lt_NM
19798
19799# A symbol stripping program
19800STRIP=$lt_STRIP
19801
19802# Used to examine libraries when file_magic_cmd begins "file"
19803MAGIC_CMD=$MAGIC_CMD
19804
19805# Used on cygwin: DLL creation program.
19806DLLTOOL="$DLLTOOL"
19807
19808# Used on cygwin: object dumper.
19809OBJDUMP="$OBJDUMP"
19810
19811# Used on cygwin: assembler.
19812AS="$AS"
19813
19814# The name of the directory that contains temporary libtool files.
19815objdir=$objdir
19816
19817# How to create reloadable object files.
19818reload_flag=$lt_reload_flag
19819reload_cmds=$lt_reload_cmds
19820
19821# How to pass a linker flag through the compiler.
19822wl=$lt_lt_prog_compiler_wl_RC
19823
19824# Object file suffix (normally "o").
19825objext="$ac_objext"
19826
19827# Old archive suffix (normally "a").
19828libext="$libext"
19829
19830# Shared library suffix (normally ".so").
19831shrext_cmds='$shrext_cmds'
19832
19833# Executable file suffix (normally "").
19834exeext="$exeext"
19835
19836# Additional compiler flags for building library objects.
19837pic_flag=$lt_lt_prog_compiler_pic_RC
19838pic_mode=$pic_mode
19839
19840# What is the maximum length of a command?
19841max_cmd_len=$lt_cv_sys_max_cmd_len
19842
19843# Does compiler simultaneously support -c and -o options?
19844compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19845
19846# Must we lock files when doing compilation?
19847need_locks=$lt_need_locks
19848
19849# Do we need the lib prefix for modules?
19850need_lib_prefix=$need_lib_prefix
19851
19852# Do we need a version for libraries?
19853need_version=$need_version
19854
19855# Whether dlopen is supported.
19856dlopen_support=$enable_dlopen
19857
19858# Whether dlopen of programs is supported.
19859dlopen_self=$enable_dlopen_self
19860
19861# Whether dlopen of statically linked programs is supported.
19862dlopen_self_static=$enable_dlopen_self_static
19863
19864# Compiler flag to prevent dynamic linking.
19865link_static_flag=$lt_lt_prog_compiler_static_RC
19866
19867# Compiler flag to turn off builtin functions.
19868no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19869
19870# Compiler flag to allow reflexive dlopens.
19871export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19872
19873# Compiler flag to generate shared objects directly from archives.
19874whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19875
19876# Compiler flag to generate thread-safe objects.
19877thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19878
19879# Library versioning type.
19880version_type=$version_type
19881
19882# Format of library name prefix.
19883libname_spec=$lt_libname_spec
19884
19885# List of archive names.  First name is the real one, the rest are links.
19886# The last name is the one that the linker finds with -lNAME.
19887library_names_spec=$lt_library_names_spec
19888
19889# The coded name of the library, if different from the real name.
19890soname_spec=$lt_soname_spec
19891
19892# Commands used to build and install an old-style archive.
19893RANLIB=$lt_RANLIB
19894old_archive_cmds=$lt_old_archive_cmds_RC
19895old_postinstall_cmds=$lt_old_postinstall_cmds
19896old_postuninstall_cmds=$lt_old_postuninstall_cmds
19897
19898# Create an old-style archive from a shared archive.
19899old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19900
19901# Create a temporary old-style archive to link instead of a shared archive.
19902old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19903
19904# Commands used to build and install a shared archive.
19905archive_cmds=$lt_archive_cmds_RC
19906archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19907postinstall_cmds=$lt_postinstall_cmds
19908postuninstall_cmds=$lt_postuninstall_cmds
19909
19910# Commands used to build a loadable module (assumed same as above if empty)
19911module_cmds=$lt_module_cmds_RC
19912module_expsym_cmds=$lt_module_expsym_cmds_RC
19913
19914# Commands to strip libraries.
19915old_striplib=$lt_old_striplib
19916striplib=$lt_striplib
19917
19918# Dependencies to place before the objects being linked to create a
19919# shared library.
19920predep_objects=$lt_predep_objects_RC
19921
19922# Dependencies to place after the objects being linked to create a
19923# shared library.
19924postdep_objects=$lt_postdep_objects_RC
19925
19926# Dependencies to place before the objects being linked to create a
19927# shared library.
19928predeps=$lt_predeps_RC
19929
19930# Dependencies to place after the objects being linked to create a
19931# shared library.
19932postdeps=$lt_postdeps_RC
19933
19934# The directories searched by this compiler when creating a shared
19935# library
19936compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19937
19938# The library search path used internally by the compiler when linking
19939# a shared library.
19940compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19941
19942# Method to check whether dependent libraries are shared objects.
19943deplibs_check_method=$lt_deplibs_check_method
19944
19945# Command to use when deplibs_check_method == file_magic.
19946file_magic_cmd=$lt_file_magic_cmd
19947
19948# Flag that allows shared libraries with undefined symbols to be built.
19949allow_undefined_flag=$lt_allow_undefined_flag_RC
19950
19951# Flag that forces no undefined symbols.
19952no_undefined_flag=$lt_no_undefined_flag_RC
19953
19954# Commands used to finish a libtool library installation in a directory.
19955finish_cmds=$lt_finish_cmds
19956
19957# Same as above, but a single script fragment to be evaled but not shown.
19958finish_eval=$lt_finish_eval
19959
19960# Take the output of nm and produce a listing of raw symbols and C names.
19961global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19962
19963# Transform the output of nm in a proper C declaration
19964global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19965
19966# Transform the output of nm in a C name address pair
19967global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19968
19969# This is the shared library runtime path variable.
19970runpath_var=$runpath_var
19971
19972# This is the shared library path variable.
19973shlibpath_var=$shlibpath_var
19974
19975# Is shlibpath searched before the hard-coded library search path?
19976shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19977
19978# How to hardcode a shared library path into an executable.
19979hardcode_action=$hardcode_action_RC
19980
19981# Whether we should hardcode library paths into libraries.
19982hardcode_into_libs=$hardcode_into_libs
19983
19984# Flag to hardcode \$libdir into a binary during linking.
19985# This must work even if \$libdir does not exist.
19986hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19987
19988# If ld is used when linking, flag to hardcode \$libdir into
19989# a binary during linking. This must work even if \$libdir does
19990# not exist.
19991hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19992
19993# Whether we need a single -rpath flag with a separated argument.
19994hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19995
19996# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19997# resulting binary.
19998hardcode_direct=$hardcode_direct_RC
19999
20000# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20001# resulting binary.
20002hardcode_minus_L=$hardcode_minus_L_RC
20003
20004# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20005# the resulting binary.
20006hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20007
20008# Set to yes if building a shared library automatically hardcodes DIR into the library
20009# and all subsequent libraries and executables linked against it.
20010hardcode_automatic=$hardcode_automatic_RC
20011
20012# Variables whose values should be saved in libtool wrapper scripts and
20013# restored at relink time.
20014variables_saved_for_relink="$variables_saved_for_relink"
20015
20016# Whether libtool must link a program against all its dependency libraries.
20017link_all_deplibs=$link_all_deplibs_RC
20018
20019# Compile-time system search path for libraries
20020sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20021
20022# Run-time system search path for libraries
20023sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20024
20025# Fix the shell variable \$srcfile for the compiler.
20026fix_srcfile_path=$lt_fix_srcfile_path
20027
20028# Set to yes if exported symbols are required.
20029always_export_symbols=$always_export_symbols_RC
20030
20031# The commands to list exported symbols.
20032export_symbols_cmds=$lt_export_symbols_cmds_RC
20033
20034# The commands to extract the exported symbol list from a shared archive.
20035extract_expsyms_cmds=$lt_extract_expsyms_cmds
20036
20037# Symbols that should not be listed in the preloaded symbols.
20038exclude_expsyms=$lt_exclude_expsyms_RC
20039
20040# Symbols that must always be exported.
20041include_expsyms=$lt_include_expsyms_RC
20042
20043# ### END LIBTOOL TAG CONFIG: $tagname
20044
20045__EOF__
20046
20047
20048else
20049  # If there is no Makefile yet, we rely on a make rule to execute
20050  # `config.status --recheck' to rerun these tests and create the
20051  # libtool script then.
20052  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20053  if test -f "$ltmain_in"; then
20054    test -f Makefile && make "$ltmain"
20055  fi
20056fi
20057
20058
20059ac_ext=c
20060ac_cpp='$CPP $CPPFLAGS'
20061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20063ac_compiler_gnu=$ac_cv_c_compiler_gnu
20064
20065CC="$lt_save_CC"
20066
20067	;;
20068
20069      *)
20070	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20071$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20072   { (exit 1); exit 1; }; }
20073	;;
20074      esac
20075
20076      # Append the new tag name to the list of available tags.
20077      if test -n "$tagname" ; then
20078      available_tags="$available_tags $tagname"
20079    fi
20080    fi
20081  done
20082  IFS="$lt_save_ifs"
20083
20084  # Now substitute the updated list of available tags.
20085  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20086    mv "${ofile}T" "$ofile"
20087    chmod +x "$ofile"
20088  else
20089    rm -f "${ofile}T"
20090    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20091$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20092   { (exit 1); exit 1; }; }
20093  fi
20094fi
20095
20096
20097
20098# This can be used to rebuild libtool when needed
20099LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20100
20101# Always use our own libtool.
20102LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20103
20104# Prevent multiple expansion
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125ac_ext=c
20126ac_cpp='$CPP $CPPFLAGS'
20127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20129ac_compiler_gnu=$ac_cv_c_compiler_gnu
20130if test -n "$ac_tool_prefix"; then
20131  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20132set dummy ${ac_tool_prefix}gcc; ac_word=$2
20133{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20134$as_echo_n "checking for $ac_word... " >&6; }
20135if test "${ac_cv_prog_CC+set}" = set; then
20136  $as_echo_n "(cached) " >&6
20137else
20138  if test -n "$CC"; then
20139  ac_cv_prog_CC="$CC" # Let the user override the test.
20140else
20141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20142for as_dir in $PATH
20143do
20144  IFS=$as_save_IFS
20145  test -z "$as_dir" && as_dir=.
20146  for ac_exec_ext in '' $ac_executable_extensions; do
20147  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20148    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20149    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20150    break 2
20151  fi
20152done
20153done
20154IFS=$as_save_IFS
20155
20156fi
20157fi
20158CC=$ac_cv_prog_CC
20159if test -n "$CC"; then
20160  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20161$as_echo "$CC" >&6; }
20162else
20163  { $as_echo "$as_me:$LINENO: result: no" >&5
20164$as_echo "no" >&6; }
20165fi
20166
20167
20168fi
20169if test -z "$ac_cv_prog_CC"; then
20170  ac_ct_CC=$CC
20171  # Extract the first word of "gcc", so it can be a program name with args.
20172set dummy gcc; ac_word=$2
20173{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20174$as_echo_n "checking for $ac_word... " >&6; }
20175if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20176  $as_echo_n "(cached) " >&6
20177else
20178  if test -n "$ac_ct_CC"; then
20179  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20180else
20181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20182for as_dir in $PATH
20183do
20184  IFS=$as_save_IFS
20185  test -z "$as_dir" && as_dir=.
20186  for ac_exec_ext in '' $ac_executable_extensions; do
20187  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20188    ac_cv_prog_ac_ct_CC="gcc"
20189    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20190    break 2
20191  fi
20192done
20193done
20194IFS=$as_save_IFS
20195
20196fi
20197fi
20198ac_ct_CC=$ac_cv_prog_ac_ct_CC
20199if test -n "$ac_ct_CC"; then
20200  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20201$as_echo "$ac_ct_CC" >&6; }
20202else
20203  { $as_echo "$as_me:$LINENO: result: no" >&5
20204$as_echo "no" >&6; }
20205fi
20206
20207  if test "x$ac_ct_CC" = x; then
20208    CC=""
20209  else
20210    case $cross_compiling:$ac_tool_warned in
20211yes:)
20212{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20214ac_tool_warned=yes ;;
20215esac
20216    CC=$ac_ct_CC
20217  fi
20218else
20219  CC="$ac_cv_prog_CC"
20220fi
20221
20222if test -z "$CC"; then
20223          if test -n "$ac_tool_prefix"; then
20224    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20225set dummy ${ac_tool_prefix}cc; ac_word=$2
20226{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20227$as_echo_n "checking for $ac_word... " >&6; }
20228if test "${ac_cv_prog_CC+set}" = set; then
20229  $as_echo_n "(cached) " >&6
20230else
20231  if test -n "$CC"; then
20232  ac_cv_prog_CC="$CC" # Let the user override the test.
20233else
20234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20235for as_dir in $PATH
20236do
20237  IFS=$as_save_IFS
20238  test -z "$as_dir" && as_dir=.
20239  for ac_exec_ext in '' $ac_executable_extensions; do
20240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20241    ac_cv_prog_CC="${ac_tool_prefix}cc"
20242    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20243    break 2
20244  fi
20245done
20246done
20247IFS=$as_save_IFS
20248
20249fi
20250fi
20251CC=$ac_cv_prog_CC
20252if test -n "$CC"; then
20253  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20254$as_echo "$CC" >&6; }
20255else
20256  { $as_echo "$as_me:$LINENO: result: no" >&5
20257$as_echo "no" >&6; }
20258fi
20259
20260
20261  fi
20262fi
20263if test -z "$CC"; then
20264  # Extract the first word of "cc", so it can be a program name with args.
20265set dummy cc; ac_word=$2
20266{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20267$as_echo_n "checking for $ac_word... " >&6; }
20268if test "${ac_cv_prog_CC+set}" = set; then
20269  $as_echo_n "(cached) " >&6
20270else
20271  if test -n "$CC"; then
20272  ac_cv_prog_CC="$CC" # Let the user override the test.
20273else
20274  ac_prog_rejected=no
20275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20276for as_dir in $PATH
20277do
20278  IFS=$as_save_IFS
20279  test -z "$as_dir" && as_dir=.
20280  for ac_exec_ext in '' $ac_executable_extensions; do
20281  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20282    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20283       ac_prog_rejected=yes
20284       continue
20285     fi
20286    ac_cv_prog_CC="cc"
20287    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20288    break 2
20289  fi
20290done
20291done
20292IFS=$as_save_IFS
20293
20294if test $ac_prog_rejected = yes; then
20295  # We found a bogon in the path, so make sure we never use it.
20296  set dummy $ac_cv_prog_CC
20297  shift
20298  if test $# != 0; then
20299    # We chose a different compiler from the bogus one.
20300    # However, it has the same basename, so the bogon will be chosen
20301    # first if we set CC to just the basename; use the full file name.
20302    shift
20303    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20304  fi
20305fi
20306fi
20307fi
20308CC=$ac_cv_prog_CC
20309if test -n "$CC"; then
20310  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20311$as_echo "$CC" >&6; }
20312else
20313  { $as_echo "$as_me:$LINENO: result: no" >&5
20314$as_echo "no" >&6; }
20315fi
20316
20317
20318fi
20319if test -z "$CC"; then
20320  if test -n "$ac_tool_prefix"; then
20321  for ac_prog in cl.exe
20322  do
20323    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20324set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20325{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20326$as_echo_n "checking for $ac_word... " >&6; }
20327if test "${ac_cv_prog_CC+set}" = set; then
20328  $as_echo_n "(cached) " >&6
20329else
20330  if test -n "$CC"; then
20331  ac_cv_prog_CC="$CC" # Let the user override the test.
20332else
20333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20334for as_dir in $PATH
20335do
20336  IFS=$as_save_IFS
20337  test -z "$as_dir" && as_dir=.
20338  for ac_exec_ext in '' $ac_executable_extensions; do
20339  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20340    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20341    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20342    break 2
20343  fi
20344done
20345done
20346IFS=$as_save_IFS
20347
20348fi
20349fi
20350CC=$ac_cv_prog_CC
20351if test -n "$CC"; then
20352  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20353$as_echo "$CC" >&6; }
20354else
20355  { $as_echo "$as_me:$LINENO: result: no" >&5
20356$as_echo "no" >&6; }
20357fi
20358
20359
20360    test -n "$CC" && break
20361  done
20362fi
20363if test -z "$CC"; then
20364  ac_ct_CC=$CC
20365  for ac_prog in cl.exe
20366do
20367  # Extract the first word of "$ac_prog", so it can be a program name with args.
20368set dummy $ac_prog; ac_word=$2
20369{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20370$as_echo_n "checking for $ac_word... " >&6; }
20371if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20372  $as_echo_n "(cached) " >&6
20373else
20374  if test -n "$ac_ct_CC"; then
20375  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20376else
20377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20378for as_dir in $PATH
20379do
20380  IFS=$as_save_IFS
20381  test -z "$as_dir" && as_dir=.
20382  for ac_exec_ext in '' $ac_executable_extensions; do
20383  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20384    ac_cv_prog_ac_ct_CC="$ac_prog"
20385    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20386    break 2
20387  fi
20388done
20389done
20390IFS=$as_save_IFS
20391
20392fi
20393fi
20394ac_ct_CC=$ac_cv_prog_ac_ct_CC
20395if test -n "$ac_ct_CC"; then
20396  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20397$as_echo "$ac_ct_CC" >&6; }
20398else
20399  { $as_echo "$as_me:$LINENO: result: no" >&5
20400$as_echo "no" >&6; }
20401fi
20402
20403
20404  test -n "$ac_ct_CC" && break
20405done
20406
20407  if test "x$ac_ct_CC" = x; then
20408    CC=""
20409  else
20410    case $cross_compiling:$ac_tool_warned in
20411yes:)
20412{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20414ac_tool_warned=yes ;;
20415esac
20416    CC=$ac_ct_CC
20417  fi
20418fi
20419
20420fi
20421
20422
20423test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20425{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20426See \`config.log' for more details." >&5
20427$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20428See \`config.log' for more details." >&2;}
20429   { (exit 1); exit 1; }; }; }
20430
20431# Provide some information about the compiler.
20432$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20433set X $ac_compile
20434ac_compiler=$2
20435{ (ac_try="$ac_compiler --version >&5"
20436case "(($ac_try" in
20437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438  *) ac_try_echo=$ac_try;;
20439esac
20440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20441$as_echo "$ac_try_echo") >&5
20442  (eval "$ac_compiler --version >&5") 2>&5
20443  ac_status=$?
20444  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445  (exit $ac_status); }
20446{ (ac_try="$ac_compiler -v >&5"
20447case "(($ac_try" in
20448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449  *) ac_try_echo=$ac_try;;
20450esac
20451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20452$as_echo "$ac_try_echo") >&5
20453  (eval "$ac_compiler -v >&5") 2>&5
20454  ac_status=$?
20455  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456  (exit $ac_status); }
20457{ (ac_try="$ac_compiler -V >&5"
20458case "(($ac_try" in
20459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460  *) ac_try_echo=$ac_try;;
20461esac
20462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20463$as_echo "$ac_try_echo") >&5
20464  (eval "$ac_compiler -V >&5") 2>&5
20465  ac_status=$?
20466  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467  (exit $ac_status); }
20468
20469{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20470$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20471if test "${ac_cv_c_compiler_gnu+set}" = set; then
20472  $as_echo_n "(cached) " >&6
20473else
20474  cat >conftest.$ac_ext <<_ACEOF
20475/* confdefs.h.  */
20476_ACEOF
20477cat confdefs.h >>conftest.$ac_ext
20478cat >>conftest.$ac_ext <<_ACEOF
20479/* end confdefs.h.  */
20480
20481int
20482main ()
20483{
20484#ifndef __GNUC__
20485       choke me
20486#endif
20487
20488  ;
20489  return 0;
20490}
20491_ACEOF
20492rm -f conftest.$ac_objext
20493if { (ac_try="$ac_compile"
20494case "(($ac_try" in
20495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496  *) ac_try_echo=$ac_try;;
20497esac
20498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20499$as_echo "$ac_try_echo") >&5
20500  (eval "$ac_compile") 2>conftest.er1
20501  ac_status=$?
20502  grep -v '^ *+' conftest.er1 >conftest.err
20503  rm -f conftest.er1
20504  cat conftest.err >&5
20505  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506  (exit $ac_status); } && {
20507	 test -z "$ac_c_werror_flag" ||
20508	 test ! -s conftest.err
20509       } && test -s conftest.$ac_objext; then
20510  ac_compiler_gnu=yes
20511else
20512  $as_echo "$as_me: failed program was:" >&5
20513sed 's/^/| /' conftest.$ac_ext >&5
20514
20515	ac_compiler_gnu=no
20516fi
20517
20518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20519ac_cv_c_compiler_gnu=$ac_compiler_gnu
20520
20521fi
20522{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20523$as_echo "$ac_cv_c_compiler_gnu" >&6; }
20524if test $ac_compiler_gnu = yes; then
20525  GCC=yes
20526else
20527  GCC=
20528fi
20529ac_test_CFLAGS=${CFLAGS+set}
20530ac_save_CFLAGS=$CFLAGS
20531{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20532$as_echo_n "checking whether $CC accepts -g... " >&6; }
20533if test "${ac_cv_prog_cc_g+set}" = set; then
20534  $as_echo_n "(cached) " >&6
20535else
20536  ac_save_c_werror_flag=$ac_c_werror_flag
20537   ac_c_werror_flag=yes
20538   ac_cv_prog_cc_g=no
20539   CFLAGS="-g"
20540   cat >conftest.$ac_ext <<_ACEOF
20541/* confdefs.h.  */
20542_ACEOF
20543cat confdefs.h >>conftest.$ac_ext
20544cat >>conftest.$ac_ext <<_ACEOF
20545/* end confdefs.h.  */
20546
20547int
20548main ()
20549{
20550
20551  ;
20552  return 0;
20553}
20554_ACEOF
20555rm -f conftest.$ac_objext
20556if { (ac_try="$ac_compile"
20557case "(($ac_try" in
20558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559  *) ac_try_echo=$ac_try;;
20560esac
20561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20562$as_echo "$ac_try_echo") >&5
20563  (eval "$ac_compile") 2>conftest.er1
20564  ac_status=$?
20565  grep -v '^ *+' conftest.er1 >conftest.err
20566  rm -f conftest.er1
20567  cat conftest.err >&5
20568  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569  (exit $ac_status); } && {
20570	 test -z "$ac_c_werror_flag" ||
20571	 test ! -s conftest.err
20572       } && test -s conftest.$ac_objext; then
20573  ac_cv_prog_cc_g=yes
20574else
20575  $as_echo "$as_me: failed program was:" >&5
20576sed 's/^/| /' conftest.$ac_ext >&5
20577
20578	CFLAGS=""
20579      cat >conftest.$ac_ext <<_ACEOF
20580/* confdefs.h.  */
20581_ACEOF
20582cat confdefs.h >>conftest.$ac_ext
20583cat >>conftest.$ac_ext <<_ACEOF
20584/* end confdefs.h.  */
20585
20586int
20587main ()
20588{
20589
20590  ;
20591  return 0;
20592}
20593_ACEOF
20594rm -f conftest.$ac_objext
20595if { (ac_try="$ac_compile"
20596case "(($ac_try" in
20597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598  *) ac_try_echo=$ac_try;;
20599esac
20600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20601$as_echo "$ac_try_echo") >&5
20602  (eval "$ac_compile") 2>conftest.er1
20603  ac_status=$?
20604  grep -v '^ *+' conftest.er1 >conftest.err
20605  rm -f conftest.er1
20606  cat conftest.err >&5
20607  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608  (exit $ac_status); } && {
20609	 test -z "$ac_c_werror_flag" ||
20610	 test ! -s conftest.err
20611       } && test -s conftest.$ac_objext; then
20612  :
20613else
20614  $as_echo "$as_me: failed program was:" >&5
20615sed 's/^/| /' conftest.$ac_ext >&5
20616
20617	ac_c_werror_flag=$ac_save_c_werror_flag
20618	 CFLAGS="-g"
20619	 cat >conftest.$ac_ext <<_ACEOF
20620/* confdefs.h.  */
20621_ACEOF
20622cat confdefs.h >>conftest.$ac_ext
20623cat >>conftest.$ac_ext <<_ACEOF
20624/* end confdefs.h.  */
20625
20626int
20627main ()
20628{
20629
20630  ;
20631  return 0;
20632}
20633_ACEOF
20634rm -f conftest.$ac_objext
20635if { (ac_try="$ac_compile"
20636case "(($ac_try" in
20637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638  *) ac_try_echo=$ac_try;;
20639esac
20640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20641$as_echo "$ac_try_echo") >&5
20642  (eval "$ac_compile") 2>conftest.er1
20643  ac_status=$?
20644  grep -v '^ *+' conftest.er1 >conftest.err
20645  rm -f conftest.er1
20646  cat conftest.err >&5
20647  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648  (exit $ac_status); } && {
20649	 test -z "$ac_c_werror_flag" ||
20650	 test ! -s conftest.err
20651       } && test -s conftest.$ac_objext; then
20652  ac_cv_prog_cc_g=yes
20653else
20654  $as_echo "$as_me: failed program was:" >&5
20655sed 's/^/| /' conftest.$ac_ext >&5
20656
20657
20658fi
20659
20660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20661fi
20662
20663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20664fi
20665
20666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20667   ac_c_werror_flag=$ac_save_c_werror_flag
20668fi
20669{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20670$as_echo "$ac_cv_prog_cc_g" >&6; }
20671if test "$ac_test_CFLAGS" = set; then
20672  CFLAGS=$ac_save_CFLAGS
20673elif test $ac_cv_prog_cc_g = yes; then
20674  if test "$GCC" = yes; then
20675    CFLAGS="-g -O2"
20676  else
20677    CFLAGS="-g"
20678  fi
20679else
20680  if test "$GCC" = yes; then
20681    CFLAGS="-O2"
20682  else
20683    CFLAGS=
20684  fi
20685fi
20686{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20687$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20688if test "${ac_cv_prog_cc_c89+set}" = set; then
20689  $as_echo_n "(cached) " >&6
20690else
20691  ac_cv_prog_cc_c89=no
20692ac_save_CC=$CC
20693cat >conftest.$ac_ext <<_ACEOF
20694/* confdefs.h.  */
20695_ACEOF
20696cat confdefs.h >>conftest.$ac_ext
20697cat >>conftest.$ac_ext <<_ACEOF
20698/* end confdefs.h.  */
20699#include <stdarg.h>
20700#include <stdio.h>
20701#include <sys/types.h>
20702#include <sys/stat.h>
20703/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20704struct buf { int x; };
20705FILE * (*rcsopen) (struct buf *, struct stat *, int);
20706static char *e (p, i)
20707     char **p;
20708     int i;
20709{
20710  return p[i];
20711}
20712static char *f (char * (*g) (char **, int), char **p, ...)
20713{
20714  char *s;
20715  va_list v;
20716  va_start (v,p);
20717  s = g (p, va_arg (v,int));
20718  va_end (v);
20719  return s;
20720}
20721
20722/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20723   function prototypes and stuff, but not '\xHH' hex character constants.
20724   These don't provoke an error unfortunately, instead are silently treated
20725   as 'x'.  The following induces an error, until -std is added to get
20726   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20727   array size at least.  It's necessary to write '\x00'==0 to get something
20728   that's true only with -std.  */
20729int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20730
20731/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20732   inside strings and character constants.  */
20733#define FOO(x) 'x'
20734int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20735
20736int test (int i, double x);
20737struct s1 {int (*f) (int a);};
20738struct s2 {int (*f) (double a);};
20739int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20740int argc;
20741char **argv;
20742int
20743main ()
20744{
20745return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20746  ;
20747  return 0;
20748}
20749_ACEOF
20750for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20751	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20752do
20753  CC="$ac_save_CC $ac_arg"
20754  rm -f conftest.$ac_objext
20755if { (ac_try="$ac_compile"
20756case "(($ac_try" in
20757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20758  *) ac_try_echo=$ac_try;;
20759esac
20760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20761$as_echo "$ac_try_echo") >&5
20762  (eval "$ac_compile") 2>conftest.er1
20763  ac_status=$?
20764  grep -v '^ *+' conftest.er1 >conftest.err
20765  rm -f conftest.er1
20766  cat conftest.err >&5
20767  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768  (exit $ac_status); } && {
20769	 test -z "$ac_c_werror_flag" ||
20770	 test ! -s conftest.err
20771       } && test -s conftest.$ac_objext; then
20772  ac_cv_prog_cc_c89=$ac_arg
20773else
20774  $as_echo "$as_me: failed program was:" >&5
20775sed 's/^/| /' conftest.$ac_ext >&5
20776
20777
20778fi
20779
20780rm -f core conftest.err conftest.$ac_objext
20781  test "x$ac_cv_prog_cc_c89" != "xno" && break
20782done
20783rm -f conftest.$ac_ext
20784CC=$ac_save_CC
20785
20786fi
20787# AC_CACHE_VAL
20788case "x$ac_cv_prog_cc_c89" in
20789  x)
20790    { $as_echo "$as_me:$LINENO: result: none needed" >&5
20791$as_echo "none needed" >&6; } ;;
20792  xno)
20793    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20794$as_echo "unsupported" >&6; } ;;
20795  *)
20796    CC="$CC $ac_cv_prog_cc_c89"
20797    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20798$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20799esac
20800
20801
20802ac_ext=c
20803ac_cpp='$CPP $CPPFLAGS'
20804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20806ac_compiler_gnu=$ac_cv_c_compiler_gnu
20807
20808depcc="$CC"   am_compiler_list=
20809
20810{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20811$as_echo_n "checking dependency style of $depcc... " >&6; }
20812if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20813  $as_echo_n "(cached) " >&6
20814else
20815  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20816  # We make a subdir and do the tests there.  Otherwise we can end up
20817  # making bogus files that we don't know about and never remove.  For
20818  # instance it was reported that on HP-UX the gcc test will end up
20819  # making a dummy file named `D' -- because `-MD' means `put the output
20820  # in D'.
20821  mkdir conftest.dir
20822  # Copy depcomp to subdir because otherwise we won't find it if we're
20823  # using a relative directory.
20824  cp "$am_depcomp" conftest.dir
20825  cd conftest.dir
20826  # We will build objects and dependencies in a subdirectory because
20827  # it helps to detect inapplicable dependency modes.  For instance
20828  # both Tru64's cc and ICC support -MD to output dependencies as a
20829  # side effect of compilation, but ICC will put the dependencies in
20830  # the current directory while Tru64 will put them in the object
20831  # directory.
20832  mkdir sub
20833
20834  am_cv_CC_dependencies_compiler_type=none
20835  if test "$am_compiler_list" = ""; then
20836     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20837  fi
20838  am__universal=false
20839  case " $depcc " in #(
20840     *\ -arch\ *\ -arch\ *) am__universal=true ;;
20841     esac
20842
20843  for depmode in $am_compiler_list; do
20844    # Setup a source with many dependencies, because some compilers
20845    # like to wrap large dependency lists on column 80 (with \), and
20846    # we should not choose a depcomp mode which is confused by this.
20847    #
20848    # We need to recreate these files for each test, as the compiler may
20849    # overwrite some of them when testing with obscure command lines.
20850    # This happens at least with the AIX C compiler.
20851    : > sub/conftest.c
20852    for i in 1 2 3 4 5 6; do
20853      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20854      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20855      # Solaris 8's {/usr,}/bin/sh.
20856      touch sub/conftst$i.h
20857    done
20858    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20859
20860    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20861    # mode.  It turns out that the SunPro C++ compiler does not properly
20862    # handle `-M -o', and we need to detect this.  Also, some Intel
20863    # versions had trouble with output in subdirs
20864    am__obj=sub/conftest.${OBJEXT-o}
20865    am__minus_obj="-o $am__obj"
20866    case $depmode in
20867    gcc)
20868      # This depmode causes a compiler race in universal mode.
20869      test "$am__universal" = false || continue
20870      ;;
20871    nosideeffect)
20872      # after this tag, mechanisms are not by side-effect, so they'll
20873      # only be used when explicitly requested
20874      if test "x$enable_dependency_tracking" = xyes; then
20875	continue
20876      else
20877	break
20878      fi
20879      ;;
20880    msvisualcpp | msvcmsys)
20881      # This compiler won't grok `-c -o', but also, the minuso test has
20882      # not run yet.  These depmodes are late enough in the game, and
20883      # so weak that their functioning should not be impacted.
20884      am__obj=conftest.${OBJEXT-o}
20885      am__minus_obj=
20886      ;;
20887    none) break ;;
20888    esac
20889    if depmode=$depmode \
20890       source=sub/conftest.c object=$am__obj \
20891       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20892       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
20893         >/dev/null 2>conftest.err &&
20894       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20895       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20896       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
20897       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20898      # icc doesn't choke on unknown options, it will just issue warnings
20899      # or remarks (even with -Werror).  So we grep stderr for any message
20900      # that says an option was ignored or not supported.
20901      # When given -MP, icc 7.0 and 7.1 complain thusly:
20902      #   icc: Command line warning: ignoring option '-M'; no argument required
20903      # The diagnosis changed in icc 8.0:
20904      #   icc: Command line remark: option '-MP' not supported
20905      if (grep 'ignoring option' conftest.err ||
20906          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20907        am_cv_CC_dependencies_compiler_type=$depmode
20908        break
20909      fi
20910    fi
20911  done
20912
20913  cd ..
20914  rm -rf conftest.dir
20915else
20916  am_cv_CC_dependencies_compiler_type=none
20917fi
20918
20919fi
20920{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20921$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20922CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20923
20924 if
20925  test "x$enable_dependency_tracking" != xno \
20926  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20927  am__fastdepCC_TRUE=
20928  am__fastdepCC_FALSE='#'
20929else
20930  am__fastdepCC_TRUE='#'
20931  am__fastdepCC_FALSE=
20932fi
20933
20934
20935
20936
20937
20938
20939
20940# Check whether --with-xorg-module-dir was given.
20941if test "${with_xorg_module_dir+set}" = set; then
20942  withval=$with_xorg_module_dir; moduledir="$withval"
20943else
20944  moduledir="$libdir/xorg/modules"
20945fi
20946
20947
20948# Check whether --enable-dri was given.
20949if test "${enable_dri+set}" = set; then
20950  enableval=$enable_dri; DRI="$enableval"
20951else
20952  DRI=auto
20953fi
20954
20955# Check whether --enable-exa was given.
20956if test "${enable_exa+set}" = set; then
20957  enableval=$enable_exa; EXA="$enableval"
20958else
20959  EXA=yes
20960fi
20961
20962
20963# Checks for extensions
20964
20965	SAVE_CFLAGS="$CFLAGS"
20966	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20967	cat >conftest.$ac_ext <<_ACEOF
20968/* confdefs.h.  */
20969_ACEOF
20970cat confdefs.h >>conftest.$ac_ext
20971cat >>conftest.$ac_ext <<_ACEOF
20972/* end confdefs.h.  */
20973
20974#include "xorg-server.h"
20975#if !defined RANDR
20976#error RANDR not defined
20977#endif
20978
20979int
20980main ()
20981{
20982
20983  ;
20984  return 0;
20985}
20986_ACEOF
20987rm -f conftest.$ac_objext
20988if { (ac_try="$ac_compile"
20989case "(($ac_try" in
20990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991  *) ac_try_echo=$ac_try;;
20992esac
20993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20994$as_echo "$ac_try_echo") >&5
20995  (eval "$ac_compile") 2>conftest.er1
20996  ac_status=$?
20997  grep -v '^ *+' conftest.er1 >conftest.err
20998  rm -f conftest.er1
20999  cat conftest.err >&5
21000  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001  (exit $ac_status); } && {
21002	 test -z "$ac_c_werror_flag" ||
21003	 test ! -s conftest.err
21004       } && test -s conftest.$ac_objext; then
21005  _EXT_CHECK=yes
21006else
21007  $as_echo "$as_me: failed program was:" >&5
21008sed 's/^/| /' conftest.$ac_ext >&5
21009
21010	_EXT_CHECK=no
21011fi
21012
21013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21014	CFLAGS="$SAVE_CFLAGS"
21015	{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
21016$as_echo_n "checking if RANDR is defined... " >&6; }
21017	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21018$as_echo "$_EXT_CHECK" >&6; }
21019	if test "$_EXT_CHECK" != no; then
21020		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
21021	fi
21022
21023
21024	SAVE_CFLAGS="$CFLAGS"
21025	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21026	cat >conftest.$ac_ext <<_ACEOF
21027/* confdefs.h.  */
21028_ACEOF
21029cat confdefs.h >>conftest.$ac_ext
21030cat >>conftest.$ac_ext <<_ACEOF
21031/* end confdefs.h.  */
21032
21033#include "xorg-server.h"
21034#if !defined RENDER
21035#error RENDER not defined
21036#endif
21037
21038int
21039main ()
21040{
21041
21042  ;
21043  return 0;
21044}
21045_ACEOF
21046rm -f conftest.$ac_objext
21047if { (ac_try="$ac_compile"
21048case "(($ac_try" in
21049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050  *) ac_try_echo=$ac_try;;
21051esac
21052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21053$as_echo "$ac_try_echo") >&5
21054  (eval "$ac_compile") 2>conftest.er1
21055  ac_status=$?
21056  grep -v '^ *+' conftest.er1 >conftest.err
21057  rm -f conftest.er1
21058  cat conftest.err >&5
21059  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060  (exit $ac_status); } && {
21061	 test -z "$ac_c_werror_flag" ||
21062	 test ! -s conftest.err
21063       } && test -s conftest.$ac_objext; then
21064  _EXT_CHECK=yes
21065else
21066  $as_echo "$as_me: failed program was:" >&5
21067sed 's/^/| /' conftest.$ac_ext >&5
21068
21069	_EXT_CHECK=no
21070fi
21071
21072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21073	CFLAGS="$SAVE_CFLAGS"
21074	{ $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
21075$as_echo_n "checking if RENDER is defined... " >&6; }
21076	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21077$as_echo "$_EXT_CHECK" >&6; }
21078	if test "$_EXT_CHECK" != no; then
21079		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
21080	fi
21081
21082
21083	SAVE_CFLAGS="$CFLAGS"
21084	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21085	cat >conftest.$ac_ext <<_ACEOF
21086/* confdefs.h.  */
21087_ACEOF
21088cat confdefs.h >>conftest.$ac_ext
21089cat >>conftest.$ac_ext <<_ACEOF
21090/* end confdefs.h.  */
21091
21092#include "xorg-server.h"
21093#if !defined XV
21094#error XV not defined
21095#endif
21096
21097int
21098main ()
21099{
21100
21101  ;
21102  return 0;
21103}
21104_ACEOF
21105rm -f conftest.$ac_objext
21106if { (ac_try="$ac_compile"
21107case "(($ac_try" in
21108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109  *) ac_try_echo=$ac_try;;
21110esac
21111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21112$as_echo "$ac_try_echo") >&5
21113  (eval "$ac_compile") 2>conftest.er1
21114  ac_status=$?
21115  grep -v '^ *+' conftest.er1 >conftest.err
21116  rm -f conftest.er1
21117  cat conftest.err >&5
21118  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119  (exit $ac_status); } && {
21120	 test -z "$ac_c_werror_flag" ||
21121	 test ! -s conftest.err
21122       } && test -s conftest.$ac_objext; then
21123  _EXT_CHECK=yes
21124else
21125  $as_echo "$as_me: failed program was:" >&5
21126sed 's/^/| /' conftest.$ac_ext >&5
21127
21128	_EXT_CHECK=no
21129fi
21130
21131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21132	CFLAGS="$SAVE_CFLAGS"
21133	{ $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
21134$as_echo_n "checking if XV is defined... " >&6; }
21135	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21136$as_echo "$_EXT_CHECK" >&6; }
21137	if test "$_EXT_CHECK" != no; then
21138		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
21139	fi
21140
21141
21142	SAVE_CFLAGS="$CFLAGS"
21143	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21144	cat >conftest.$ac_ext <<_ACEOF
21145/* confdefs.h.  */
21146_ACEOF
21147cat confdefs.h >>conftest.$ac_ext
21148cat >>conftest.$ac_ext <<_ACEOF
21149/* end confdefs.h.  */
21150
21151#include "xorg-server.h"
21152#if !defined DPMSExtension
21153#error DPMSExtension not defined
21154#endif
21155
21156int
21157main ()
21158{
21159
21160  ;
21161  return 0;
21162}
21163_ACEOF
21164rm -f conftest.$ac_objext
21165if { (ac_try="$ac_compile"
21166case "(($ac_try" in
21167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21168  *) ac_try_echo=$ac_try;;
21169esac
21170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21171$as_echo "$ac_try_echo") >&5
21172  (eval "$ac_compile") 2>conftest.er1
21173  ac_status=$?
21174  grep -v '^ *+' conftest.er1 >conftest.err
21175  rm -f conftest.er1
21176  cat conftest.err >&5
21177  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178  (exit $ac_status); } && {
21179	 test -z "$ac_c_werror_flag" ||
21180	 test ! -s conftest.err
21181       } && test -s conftest.$ac_objext; then
21182  _EXT_CHECK=yes
21183else
21184  $as_echo "$as_me: failed program was:" >&5
21185sed 's/^/| /' conftest.$ac_ext >&5
21186
21187	_EXT_CHECK=no
21188fi
21189
21190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21191	CFLAGS="$SAVE_CFLAGS"
21192	{ $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
21193$as_echo_n "checking if DPMSExtension is defined... " >&6; }
21194	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21195$as_echo "$_EXT_CHECK" >&6; }
21196	if test "$_EXT_CHECK" != no; then
21197		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
21198	fi
21199
21200
21201# Checks for pkg-config packages
21202
21203
21204if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21205	if test -n "$ac_tool_prefix"; then
21206  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21207set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21208{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21209$as_echo_n "checking for $ac_word... " >&6; }
21210if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21211  $as_echo_n "(cached) " >&6
21212else
21213  case $PKG_CONFIG in
21214  [\\/]* | ?:[\\/]*)
21215  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21216  ;;
21217  *)
21218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21219for as_dir in $PATH
21220do
21221  IFS=$as_save_IFS
21222  test -z "$as_dir" && as_dir=.
21223  for ac_exec_ext in '' $ac_executable_extensions; do
21224  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21225    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21226    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21227    break 2
21228  fi
21229done
21230done
21231IFS=$as_save_IFS
21232
21233  ;;
21234esac
21235fi
21236PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21237if test -n "$PKG_CONFIG"; then
21238  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21239$as_echo "$PKG_CONFIG" >&6; }
21240else
21241  { $as_echo "$as_me:$LINENO: result: no" >&5
21242$as_echo "no" >&6; }
21243fi
21244
21245
21246fi
21247if test -z "$ac_cv_path_PKG_CONFIG"; then
21248  ac_pt_PKG_CONFIG=$PKG_CONFIG
21249  # Extract the first word of "pkg-config", so it can be a program name with args.
21250set dummy pkg-config; ac_word=$2
21251{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21252$as_echo_n "checking for $ac_word... " >&6; }
21253if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21254  $as_echo_n "(cached) " >&6
21255else
21256  case $ac_pt_PKG_CONFIG in
21257  [\\/]* | ?:[\\/]*)
21258  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21259  ;;
21260  *)
21261  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21262for as_dir in $PATH
21263do
21264  IFS=$as_save_IFS
21265  test -z "$as_dir" && as_dir=.
21266  for ac_exec_ext in '' $ac_executable_extensions; do
21267  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21268    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21269    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21270    break 2
21271  fi
21272done
21273done
21274IFS=$as_save_IFS
21275
21276  ;;
21277esac
21278fi
21279ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21280if test -n "$ac_pt_PKG_CONFIG"; then
21281  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21282$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21283else
21284  { $as_echo "$as_me:$LINENO: result: no" >&5
21285$as_echo "no" >&6; }
21286fi
21287
21288  if test "x$ac_pt_PKG_CONFIG" = x; then
21289    PKG_CONFIG=""
21290  else
21291    case $cross_compiling:$ac_tool_warned in
21292yes:)
21293{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21295ac_tool_warned=yes ;;
21296esac
21297    PKG_CONFIG=$ac_pt_PKG_CONFIG
21298  fi
21299else
21300  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21301fi
21302
21303fi
21304if test -n "$PKG_CONFIG"; then
21305	_pkg_min_version=0.9.0
21306	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21307$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21308	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21309		{ $as_echo "$as_me:$LINENO: result: yes" >&5
21310$as_echo "yes" >&6; }
21311	else
21312		{ $as_echo "$as_me:$LINENO: result: no" >&5
21313$as_echo "no" >&6; }
21314		PKG_CONFIG=""
21315	fi
21316
21317fi
21318
21319pkg_failed=no
21320{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
21321$as_echo_n "checking for XORG... " >&6; }
21322
21323if test -n "$XORG_CFLAGS"; then
21324    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21325 elif test -n "$PKG_CONFIG"; then
21326    if test -n "$PKG_CONFIG" && \
21327    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21328  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
21329  ac_status=$?
21330  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331  (exit $ac_status); }; then
21332  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21333else
21334  pkg_failed=yes
21335fi
21336 else
21337    pkg_failed=untried
21338fi
21339if test -n "$XORG_LIBS"; then
21340    pkg_cv_XORG_LIBS="$XORG_LIBS"
21341 elif test -n "$PKG_CONFIG"; then
21342    if test -n "$PKG_CONFIG" && \
21343    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21344  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
21345  ac_status=$?
21346  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347  (exit $ac_status); }; then
21348  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21349else
21350  pkg_failed=yes
21351fi
21352 else
21353    pkg_failed=untried
21354fi
21355
21356
21357
21358if test $pkg_failed = yes; then
21359
21360if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21361        _pkg_short_errors_supported=yes
21362else
21363        _pkg_short_errors_supported=no
21364fi
21365        if test $_pkg_short_errors_supported = yes; then
21366	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21367        else
21368	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21369        fi
21370	# Put the nasty error message in config.log where it belongs
21371	echo "$XORG_PKG_ERRORS" >&5
21372
21373	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
21374
21375$XORG_PKG_ERRORS
21376
21377Consider adjusting the PKG_CONFIG_PATH environment variable if you
21378installed software in a non-standard prefix.
21379
21380Alternatively, you may set the environment variables XORG_CFLAGS
21381and XORG_LIBS to avoid the need to call pkg-config.
21382See the pkg-config man page for more details.
21383" >&5
21384$as_echo "$as_me: error: Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
21385
21386$XORG_PKG_ERRORS
21387
21388Consider adjusting the PKG_CONFIG_PATH environment variable if you
21389installed software in a non-standard prefix.
21390
21391Alternatively, you may set the environment variables XORG_CFLAGS
21392and XORG_LIBS to avoid the need to call pkg-config.
21393See the pkg-config man page for more details.
21394" >&2;}
21395   { (exit 1); exit 1; }; }
21396elif test $pkg_failed = untried; then
21397	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21399{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21400is in your PATH or set the PKG_CONFIG environment variable to the full
21401path to pkg-config.
21402
21403Alternatively, you may set the environment variables XORG_CFLAGS
21404and XORG_LIBS to avoid the need to call pkg-config.
21405See the pkg-config man page for more details.
21406
21407To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21408See \`config.log' for more details." >&5
21409$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21410is in your PATH or set the PKG_CONFIG environment variable to the full
21411path to pkg-config.
21412
21413Alternatively, you may set the environment variables XORG_CFLAGS
21414and XORG_LIBS to avoid the need to call pkg-config.
21415See the pkg-config man page for more details.
21416
21417To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21418See \`config.log' for more details." >&2;}
21419   { (exit 1); exit 1; }; }; }
21420else
21421	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21422	XORG_LIBS=$pkg_cv_XORG_LIBS
21423        { $as_echo "$as_me:$LINENO: result: yes" >&5
21424$as_echo "yes" >&6; }
21425	:
21426fi
21427sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21428
21429# Checks for libraries.
21430
21431# Checks for header files.
21432{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21433$as_echo_n "checking for ANSI C header files... " >&6; }
21434if test "${ac_cv_header_stdc+set}" = set; then
21435  $as_echo_n "(cached) " >&6
21436else
21437  cat >conftest.$ac_ext <<_ACEOF
21438/* confdefs.h.  */
21439_ACEOF
21440cat confdefs.h >>conftest.$ac_ext
21441cat >>conftest.$ac_ext <<_ACEOF
21442/* end confdefs.h.  */
21443#include <stdlib.h>
21444#include <stdarg.h>
21445#include <string.h>
21446#include <float.h>
21447
21448int
21449main ()
21450{
21451
21452  ;
21453  return 0;
21454}
21455_ACEOF
21456rm -f conftest.$ac_objext
21457if { (ac_try="$ac_compile"
21458case "(($ac_try" in
21459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21460  *) ac_try_echo=$ac_try;;
21461esac
21462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21463$as_echo "$ac_try_echo") >&5
21464  (eval "$ac_compile") 2>conftest.er1
21465  ac_status=$?
21466  grep -v '^ *+' conftest.er1 >conftest.err
21467  rm -f conftest.er1
21468  cat conftest.err >&5
21469  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470  (exit $ac_status); } && {
21471	 test -z "$ac_c_werror_flag" ||
21472	 test ! -s conftest.err
21473       } && test -s conftest.$ac_objext; then
21474  ac_cv_header_stdc=yes
21475else
21476  $as_echo "$as_me: failed program was:" >&5
21477sed 's/^/| /' conftest.$ac_ext >&5
21478
21479	ac_cv_header_stdc=no
21480fi
21481
21482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21483
21484if test $ac_cv_header_stdc = yes; then
21485  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21486  cat >conftest.$ac_ext <<_ACEOF
21487/* confdefs.h.  */
21488_ACEOF
21489cat confdefs.h >>conftest.$ac_ext
21490cat >>conftest.$ac_ext <<_ACEOF
21491/* end confdefs.h.  */
21492#include <string.h>
21493
21494_ACEOF
21495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21496  $EGREP "memchr" >/dev/null 2>&1; then
21497  :
21498else
21499  ac_cv_header_stdc=no
21500fi
21501rm -f conftest*
21502
21503fi
21504
21505if test $ac_cv_header_stdc = yes; then
21506  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21507  cat >conftest.$ac_ext <<_ACEOF
21508/* confdefs.h.  */
21509_ACEOF
21510cat confdefs.h >>conftest.$ac_ext
21511cat >>conftest.$ac_ext <<_ACEOF
21512/* end confdefs.h.  */
21513#include <stdlib.h>
21514
21515_ACEOF
21516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21517  $EGREP "free" >/dev/null 2>&1; then
21518  :
21519else
21520  ac_cv_header_stdc=no
21521fi
21522rm -f conftest*
21523
21524fi
21525
21526if test $ac_cv_header_stdc = yes; then
21527  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21528  if test "$cross_compiling" = yes; then
21529  :
21530else
21531  cat >conftest.$ac_ext <<_ACEOF
21532/* confdefs.h.  */
21533_ACEOF
21534cat confdefs.h >>conftest.$ac_ext
21535cat >>conftest.$ac_ext <<_ACEOF
21536/* end confdefs.h.  */
21537#include <ctype.h>
21538#include <stdlib.h>
21539#if ((' ' & 0x0FF) == 0x020)
21540# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21541# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21542#else
21543# define ISLOWER(c) \
21544		   (('a' <= (c) && (c) <= 'i') \
21545		     || ('j' <= (c) && (c) <= 'r') \
21546		     || ('s' <= (c) && (c) <= 'z'))
21547# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21548#endif
21549
21550#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21551int
21552main ()
21553{
21554  int i;
21555  for (i = 0; i < 256; i++)
21556    if (XOR (islower (i), ISLOWER (i))
21557	|| toupper (i) != TOUPPER (i))
21558      return 2;
21559  return 0;
21560}
21561_ACEOF
21562rm -f conftest$ac_exeext
21563if { (ac_try="$ac_link"
21564case "(($ac_try" in
21565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21566  *) ac_try_echo=$ac_try;;
21567esac
21568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21569$as_echo "$ac_try_echo") >&5
21570  (eval "$ac_link") 2>&5
21571  ac_status=$?
21572  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21574  { (case "(($ac_try" in
21575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576  *) ac_try_echo=$ac_try;;
21577esac
21578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21579$as_echo "$ac_try_echo") >&5
21580  (eval "$ac_try") 2>&5
21581  ac_status=$?
21582  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583  (exit $ac_status); }; }; then
21584  :
21585else
21586  $as_echo "$as_me: program exited with status $ac_status" >&5
21587$as_echo "$as_me: failed program was:" >&5
21588sed 's/^/| /' conftest.$ac_ext >&5
21589
21590( exit $ac_status )
21591ac_cv_header_stdc=no
21592fi
21593rm -rf conftest.dSYM
21594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21595fi
21596
21597
21598fi
21599fi
21600{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21601$as_echo "$ac_cv_header_stdc" >&6; }
21602if test $ac_cv_header_stdc = yes; then
21603
21604cat >>confdefs.h <<\_ACEOF
21605#define STDC_HEADERS 1
21606_ACEOF
21607
21608fi
21609
21610
21611if test "x$DRI" != xno; then
21612        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
21613{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
21614$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
21615if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21616  $as_echo_n "(cached) " >&6
21617else
21618  test "$cross_compiling" = yes &&
21619  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21620$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21621   { (exit 1); exit 1; }; }
21622if test -r "${sdkdir}/dri.h"; then
21623  eval "$as_ac_File=yes"
21624else
21625  eval "$as_ac_File=no"
21626fi
21627fi
21628ac_res=`eval 'as_val=${'$as_ac_File'}
21629		 $as_echo "$as_val"'`
21630	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21631$as_echo "$ac_res" >&6; }
21632as_val=`eval 'as_val=${'$as_ac_File'}
21633		 $as_echo "$as_val"'`
21634   if test "x$as_val" = x""yes; then
21635  have_dri_h="yes"
21636else
21637  have_dri_h="no"
21638fi
21639
21640        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
21641{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
21642$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
21643if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21644  $as_echo_n "(cached) " >&6
21645else
21646  test "$cross_compiling" = yes &&
21647  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21648$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21649   { (exit 1); exit 1; }; }
21650if test -r "${sdkdir}/sarea.h"; then
21651  eval "$as_ac_File=yes"
21652else
21653  eval "$as_ac_File=no"
21654fi
21655fi
21656ac_res=`eval 'as_val=${'$as_ac_File'}
21657		 $as_echo "$as_val"'`
21658	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21659$as_echo "$ac_res" >&6; }
21660as_val=`eval 'as_val=${'$as_ac_File'}
21661		 $as_echo "$as_val"'`
21662   if test "x$as_val" = x""yes; then
21663  have_sarea_h="yes"
21664else
21665  have_sarea_h="no"
21666fi
21667
21668        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
21669{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
21670$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
21671if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21672  $as_echo_n "(cached) " >&6
21673else
21674  test "$cross_compiling" = yes &&
21675  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21676$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21677   { (exit 1); exit 1; }; }
21678if test -r "${sdkdir}/dristruct.h"; then
21679  eval "$as_ac_File=yes"
21680else
21681  eval "$as_ac_File=no"
21682fi
21683fi
21684ac_res=`eval 'as_val=${'$as_ac_File'}
21685		 $as_echo "$as_val"'`
21686	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21687$as_echo "$ac_res" >&6; }
21688as_val=`eval 'as_val=${'$as_ac_File'}
21689		 $as_echo "$as_val"'`
21690   if test "x$as_val" = x""yes; then
21691  have_dristruct_h="yes"
21692else
21693  have_dristruct_h="no"
21694fi
21695
21696fi
21697
21698{ $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5
21699$as_echo_n "checking whether to include DRI support... " >&6; }
21700if test "x$DRI" = xauto; then
21701        if test "x$have_dri_h" = xyes && \
21702           test "x$have_sarea_h" = xyes && \
21703           test "x$have_dristruct_h" = xyes; then
21704                DRI="yes"
21705        else
21706                DRI="no"
21707        fi
21708fi
21709{ $as_echo "$as_me:$LINENO: result: $DRI" >&5
21710$as_echo "$DRI" >&6; }
21711
21712 if test "x$DRI" = xyes; then
21713  DRI_TRUE=
21714  DRI_FALSE='#'
21715else
21716  DRI_TRUE='#'
21717  DRI_FALSE=
21718fi
21719
21720if test "x$DRI" = xyes; then
21721
21722pkg_failed=no
21723{ $as_echo "$as_me:$LINENO: checking for DRI" >&5
21724$as_echo_n "checking for DRI... " >&6; }
21725
21726if test -n "$DRI_CFLAGS"; then
21727    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
21728 elif test -n "$PKG_CONFIG"; then
21729    if test -n "$PKG_CONFIG" && \
21730    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
21731  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
21732  ac_status=$?
21733  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734  (exit $ac_status); }; then
21735  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
21736else
21737  pkg_failed=yes
21738fi
21739 else
21740    pkg_failed=untried
21741fi
21742if test -n "$DRI_LIBS"; then
21743    pkg_cv_DRI_LIBS="$DRI_LIBS"
21744 elif test -n "$PKG_CONFIG"; then
21745    if test -n "$PKG_CONFIG" && \
21746    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
21747  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
21748  ac_status=$?
21749  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750  (exit $ac_status); }; then
21751  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
21752else
21753  pkg_failed=yes
21754fi
21755 else
21756    pkg_failed=untried
21757fi
21758
21759
21760
21761if test $pkg_failed = yes; then
21762
21763if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21764        _pkg_short_errors_supported=yes
21765else
21766        _pkg_short_errors_supported=no
21767fi
21768        if test $_pkg_short_errors_supported = yes; then
21769	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
21770        else
21771	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
21772        fi
21773	# Put the nasty error message in config.log where it belongs
21774	echo "$DRI_PKG_ERRORS" >&5
21775
21776	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
21777
21778$DRI_PKG_ERRORS
21779
21780Consider adjusting the PKG_CONFIG_PATH environment variable if you
21781installed software in a non-standard prefix.
21782
21783Alternatively, you may set the environment variables DRI_CFLAGS
21784and DRI_LIBS to avoid the need to call pkg-config.
21785See the pkg-config man page for more details.
21786" >&5
21787$as_echo "$as_me: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
21788
21789$DRI_PKG_ERRORS
21790
21791Consider adjusting the PKG_CONFIG_PATH environment variable if you
21792installed software in a non-standard prefix.
21793
21794Alternatively, you may set the environment variables DRI_CFLAGS
21795and DRI_LIBS to avoid the need to call pkg-config.
21796See the pkg-config man page for more details.
21797" >&2;}
21798   { (exit 1); exit 1; }; }
21799elif test $pkg_failed = untried; then
21800	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21802{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21803is in your PATH or set the PKG_CONFIG environment variable to the full
21804path to pkg-config.
21805
21806Alternatively, you may set the environment variables DRI_CFLAGS
21807and DRI_LIBS to avoid the need to call pkg-config.
21808See the pkg-config man page for more details.
21809
21810To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21811See \`config.log' for more details." >&5
21812$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21813is in your PATH or set the PKG_CONFIG environment variable to the full
21814path to pkg-config.
21815
21816Alternatively, you may set the environment variables DRI_CFLAGS
21817and DRI_LIBS to avoid the need to call pkg-config.
21818See the pkg-config man page for more details.
21819
21820To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21821See \`config.log' for more details." >&2;}
21822   { (exit 1); exit 1; }; }; }
21823else
21824	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
21825	DRI_LIBS=$pkg_cv_DRI_LIBS
21826        { $as_echo "$as_me:$LINENO: result: yes" >&5
21827$as_echo "yes" >&6; }
21828	:
21829fi
21830
21831cat >>confdefs.h <<\_ACEOF
21832#define XF86DRI 1
21833_ACEOF
21834
21835
21836cat >>confdefs.h <<\_ACEOF
21837#define XF86DRI_DEVEL 1
21838_ACEOF
21839
21840fi
21841
21842save_CFLAGS="$CFLAGS"
21843CFLAGS="$XORG_CFLAGS"
21844{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
21845$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
21846if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
21847  $as_echo_n "(cached) " >&6
21848else
21849  cat >conftest.$ac_ext <<_ACEOF
21850/* confdefs.h.  */
21851_ACEOF
21852cat confdefs.h >>conftest.$ac_ext
21853cat >>conftest.$ac_ext <<_ACEOF
21854/* end confdefs.h.  */
21855#include "xorg-server.h"
21856
21857int
21858main ()
21859{
21860#ifndef XSERVER_LIBPCIACCESS
21861  (void) XSERVER_LIBPCIACCESS;
21862#endif
21863
21864  ;
21865  return 0;
21866}
21867_ACEOF
21868rm -f conftest.$ac_objext
21869if { (ac_try="$ac_compile"
21870case "(($ac_try" in
21871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21872  *) ac_try_echo=$ac_try;;
21873esac
21874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21875$as_echo "$ac_try_echo") >&5
21876  (eval "$ac_compile") 2>conftest.er1
21877  ac_status=$?
21878  grep -v '^ *+' conftest.er1 >conftest.err
21879  rm -f conftest.er1
21880  cat conftest.err >&5
21881  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882  (exit $ac_status); } && {
21883	 test -z "$ac_c_werror_flag" ||
21884	 test ! -s conftest.err
21885       } && test -s conftest.$ac_objext; then
21886  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
21887else
21888  $as_echo "$as_me: failed program was:" >&5
21889sed 's/^/| /' conftest.$ac_ext >&5
21890
21891	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
21892fi
21893
21894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21895fi
21896{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
21897$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
21898if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
21899  XSERVER_LIBPCIACCESS=yes
21900else
21901  XSERVER_LIBPCIACCESS=no
21902fi
21903
21904CFLAGS="$save_CFLAGS"
21905
21906save_CFLAGS="$CFLAGS"
21907CFLAGS="$XORG_CFLAGS"
21908{ $as_echo "$as_me:$LINENO: checking whether xf86ModeBandwidth is declared" >&5
21909$as_echo_n "checking whether xf86ModeBandwidth is declared... " >&6; }
21910if test "${ac_cv_have_decl_xf86ModeBandwidth+set}" = set; then
21911  $as_echo_n "(cached) " >&6
21912else
21913  cat >conftest.$ac_ext <<_ACEOF
21914/* confdefs.h.  */
21915_ACEOF
21916cat confdefs.h >>conftest.$ac_ext
21917cat >>conftest.$ac_ext <<_ACEOF
21918/* end confdefs.h.  */
21919#include <X11/extensions/randr.h>
21920	       #include "xorg-server.h"
21921	       #include "xf86Modes.h"
21922
21923int
21924main ()
21925{
21926#ifndef xf86ModeBandwidth
21927  (void) xf86ModeBandwidth;
21928#endif
21929
21930  ;
21931  return 0;
21932}
21933_ACEOF
21934rm -f conftest.$ac_objext
21935if { (ac_try="$ac_compile"
21936case "(($ac_try" in
21937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938  *) ac_try_echo=$ac_try;;
21939esac
21940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21941$as_echo "$ac_try_echo") >&5
21942  (eval "$ac_compile") 2>conftest.er1
21943  ac_status=$?
21944  grep -v '^ *+' conftest.er1 >conftest.err
21945  rm -f conftest.er1
21946  cat conftest.err >&5
21947  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948  (exit $ac_status); } && {
21949	 test -z "$ac_c_werror_flag" ||
21950	 test ! -s conftest.err
21951       } && test -s conftest.$ac_objext; then
21952  ac_cv_have_decl_xf86ModeBandwidth=yes
21953else
21954  $as_echo "$as_me: failed program was:" >&5
21955sed 's/^/| /' conftest.$ac_ext >&5
21956
21957	ac_cv_have_decl_xf86ModeBandwidth=no
21958fi
21959
21960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21961fi
21962{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86ModeBandwidth" >&5
21963$as_echo "$ac_cv_have_decl_xf86ModeBandwidth" >&6; }
21964if test "x$ac_cv_have_decl_xf86ModeBandwidth" = x""yes; then
21965
21966cat >>confdefs.h <<\_ACEOF
21967#define HAVE_XF86MODEBANDWIDTH 1
21968_ACEOF
21969
21970fi
21971
21972CFLAGS="$save_CFLAGS"
21973
21974if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21975
21976pkg_failed=no
21977{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
21978$as_echo_n "checking for PCIACCESS... " >&6; }
21979
21980if test -n "$PCIACCESS_CFLAGS"; then
21981    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
21982 elif test -n "$PKG_CONFIG"; then
21983    if test -n "$PKG_CONFIG" && \
21984    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21985  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21986  ac_status=$?
21987  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988  (exit $ac_status); }; then
21989  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
21990else
21991  pkg_failed=yes
21992fi
21993 else
21994    pkg_failed=untried
21995fi
21996if test -n "$PCIACCESS_LIBS"; then
21997    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
21998 elif test -n "$PKG_CONFIG"; then
21999    if test -n "$PKG_CONFIG" && \
22000    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
22001  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
22002  ac_status=$?
22003  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004  (exit $ac_status); }; then
22005  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
22006else
22007  pkg_failed=yes
22008fi
22009 else
22010    pkg_failed=untried
22011fi
22012
22013
22014
22015if test $pkg_failed = yes; then
22016
22017if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22018        _pkg_short_errors_supported=yes
22019else
22020        _pkg_short_errors_supported=no
22021fi
22022        if test $_pkg_short_errors_supported = yes; then
22023	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
22024        else
22025	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
22026        fi
22027	# Put the nasty error message in config.log where it belongs
22028	echo "$PCIACCESS_PKG_ERRORS" >&5
22029
22030	{ { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
22031
22032$PCIACCESS_PKG_ERRORS
22033
22034Consider adjusting the PKG_CONFIG_PATH environment variable if you
22035installed software in a non-standard prefix.
22036
22037Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22038and PCIACCESS_LIBS to avoid the need to call pkg-config.
22039See the pkg-config man page for more details.
22040" >&5
22041$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
22042
22043$PCIACCESS_PKG_ERRORS
22044
22045Consider adjusting the PKG_CONFIG_PATH environment variable if you
22046installed software in a non-standard prefix.
22047
22048Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22049and PCIACCESS_LIBS to avoid the need to call pkg-config.
22050See the pkg-config man page for more details.
22051" >&2;}
22052   { (exit 1); exit 1; }; }
22053elif test $pkg_failed = untried; then
22054	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22056{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22057is in your PATH or set the PKG_CONFIG environment variable to the full
22058path to pkg-config.
22059
22060Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22061and PCIACCESS_LIBS to avoid the need to call pkg-config.
22062See the pkg-config man page for more details.
22063
22064To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22065See \`config.log' for more details." >&5
22066$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22067is in your PATH or set the PKG_CONFIG environment variable to the full
22068path to pkg-config.
22069
22070Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22071and PCIACCESS_LIBS to avoid the need to call pkg-config.
22072See the pkg-config man page for more details.
22073
22074To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22075See \`config.log' for more details." >&2;}
22076   { (exit 1); exit 1; }; }; }
22077else
22078	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
22079	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
22080        { $as_echo "$as_me:$LINENO: result: yes" >&5
22081$as_echo "yes" >&6; }
22082	:
22083fi
22084fi
22085 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
22086  XSERVER_LIBPCIACCESS_TRUE=
22087  XSERVER_LIBPCIACCESS_FALSE='#'
22088else
22089  XSERVER_LIBPCIACCESS_TRUE='#'
22090  XSERVER_LIBPCIACCESS_FALSE=
22091fi
22092
22093
22094 if true; then
22095  USE_XAA_TRUE=
22096  USE_XAA_FALSE='#'
22097else
22098  USE_XAA_TRUE='#'
22099  USE_XAA_FALSE=
22100fi
22101
22102
22103cat >>confdefs.h <<\_ACEOF
22104#define USE_XAA 1
22105_ACEOF
22106
22107
22108# Properly handle EXA.
22109{ $as_echo "$as_me:$LINENO: checking whether to enable EXA support" >&5
22110$as_echo_n "checking whether to enable EXA support... " >&6; }
22111if test "x$EXA" = xyes; then
22112    { $as_echo "$as_me:$LINENO: result: yes" >&5
22113$as_echo "yes" >&6; }
22114
22115    SAVE_CPPFLAGS="$CPPFLAGS"
22116    CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
22117    if test "${ac_cv_header_exa_h+set}" = set; then
22118  { $as_echo "$as_me:$LINENO: checking for exa.h" >&5
22119$as_echo_n "checking for exa.h... " >&6; }
22120if test "${ac_cv_header_exa_h+set}" = set; then
22121  $as_echo_n "(cached) " >&6
22122fi
22123{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5
22124$as_echo "$ac_cv_header_exa_h" >&6; }
22125else
22126  # Is the header compilable?
22127{ $as_echo "$as_me:$LINENO: checking exa.h usability" >&5
22128$as_echo_n "checking exa.h usability... " >&6; }
22129cat >conftest.$ac_ext <<_ACEOF
22130/* confdefs.h.  */
22131_ACEOF
22132cat confdefs.h >>conftest.$ac_ext
22133cat >>conftest.$ac_ext <<_ACEOF
22134/* end confdefs.h.  */
22135$ac_includes_default
22136#include <exa.h>
22137_ACEOF
22138rm -f conftest.$ac_objext
22139if { (ac_try="$ac_compile"
22140case "(($ac_try" in
22141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22142  *) ac_try_echo=$ac_try;;
22143esac
22144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22145$as_echo "$ac_try_echo") >&5
22146  (eval "$ac_compile") 2>conftest.er1
22147  ac_status=$?
22148  grep -v '^ *+' conftest.er1 >conftest.err
22149  rm -f conftest.er1
22150  cat conftest.err >&5
22151  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152  (exit $ac_status); } && {
22153	 test -z "$ac_c_werror_flag" ||
22154	 test ! -s conftest.err
22155       } && test -s conftest.$ac_objext; then
22156  ac_header_compiler=yes
22157else
22158  $as_echo "$as_me: failed program was:" >&5
22159sed 's/^/| /' conftest.$ac_ext >&5
22160
22161	ac_header_compiler=no
22162fi
22163
22164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22165{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22166$as_echo "$ac_header_compiler" >&6; }
22167
22168# Is the header present?
22169{ $as_echo "$as_me:$LINENO: checking exa.h presence" >&5
22170$as_echo_n "checking exa.h presence... " >&6; }
22171cat >conftest.$ac_ext <<_ACEOF
22172/* confdefs.h.  */
22173_ACEOF
22174cat confdefs.h >>conftest.$ac_ext
22175cat >>conftest.$ac_ext <<_ACEOF
22176/* end confdefs.h.  */
22177#include <exa.h>
22178_ACEOF
22179if { (ac_try="$ac_cpp conftest.$ac_ext"
22180case "(($ac_try" in
22181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22182  *) ac_try_echo=$ac_try;;
22183esac
22184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22185$as_echo "$ac_try_echo") >&5
22186  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22187  ac_status=$?
22188  grep -v '^ *+' conftest.er1 >conftest.err
22189  rm -f conftest.er1
22190  cat conftest.err >&5
22191  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192  (exit $ac_status); } >/dev/null && {
22193	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22194	 test ! -s conftest.err
22195       }; then
22196  ac_header_preproc=yes
22197else
22198  $as_echo "$as_me: failed program was:" >&5
22199sed 's/^/| /' conftest.$ac_ext >&5
22200
22201  ac_header_preproc=no
22202fi
22203
22204rm -f conftest.err conftest.$ac_ext
22205{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22206$as_echo "$ac_header_preproc" >&6; }
22207
22208# So?  What about this header?
22209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22210  yes:no: )
22211    { $as_echo "$as_me:$LINENO: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&5
22212$as_echo "$as_me: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22213    { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the compiler's result" >&5
22214$as_echo "$as_me: WARNING: exa.h: proceeding with the compiler's result" >&2;}
22215    ac_header_preproc=yes
22216    ;;
22217  no:yes:* )
22218    { $as_echo "$as_me:$LINENO: WARNING: exa.h: present but cannot be compiled" >&5
22219$as_echo "$as_me: WARNING: exa.h: present but cannot be compiled" >&2;}
22220    { $as_echo "$as_me:$LINENO: WARNING: exa.h:     check for missing prerequisite headers?" >&5
22221$as_echo "$as_me: WARNING: exa.h:     check for missing prerequisite headers?" >&2;}
22222    { $as_echo "$as_me:$LINENO: WARNING: exa.h: see the Autoconf documentation" >&5
22223$as_echo "$as_me: WARNING: exa.h: see the Autoconf documentation" >&2;}
22224    { $as_echo "$as_me:$LINENO: WARNING: exa.h:     section \"Present But Cannot Be Compiled\"" >&5
22225$as_echo "$as_me: WARNING: exa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22226    { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the preprocessor's result" >&5
22227$as_echo "$as_me: WARNING: exa.h: proceeding with the preprocessor's result" >&2;}
22228    { $as_echo "$as_me:$LINENO: WARNING: exa.h: in the future, the compiler will take precedence" >&5
22229$as_echo "$as_me: WARNING: exa.h: in the future, the compiler will take precedence" >&2;}
22230    ( cat <<\_ASBOX
22231## ---------------------------------------------------------------------- ##
22232## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
22233## ---------------------------------------------------------------------- ##
22234_ASBOX
22235     ) | sed "s/^/$as_me: WARNING:     /" >&2
22236    ;;
22237esac
22238{ $as_echo "$as_me:$LINENO: checking for exa.h" >&5
22239$as_echo_n "checking for exa.h... " >&6; }
22240if test "${ac_cv_header_exa_h+set}" = set; then
22241  $as_echo_n "(cached) " >&6
22242else
22243  ac_cv_header_exa_h=$ac_header_preproc
22244fi
22245{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5
22246$as_echo "$ac_cv_header_exa_h" >&6; }
22247
22248fi
22249if test "x$ac_cv_header_exa_h" = x""yes; then
22250  have_exa_h="yes"
22251else
22252  have_exa_h="no"
22253fi
22254
22255
22256    CPPFLAGS="$SAVE_CPPFLAGS"
22257else
22258    { $as_echo "$as_me:$LINENO: result: no" >&5
22259$as_echo "no" >&6; }
22260fi
22261
22262SAVE_CPPFLAGS="$CPPFLAGS"
22263CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
22264if test "x$have_exa_h" = xyes; then
22265    { $as_echo "$as_me:$LINENO: checking whether EXA version is at least 2.0.0" >&5
22266$as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
22267    cat >conftest.$ac_ext <<_ACEOF
22268/* confdefs.h.  */
22269_ACEOF
22270cat confdefs.h >>conftest.$ac_ext
22271cat >>conftest.$ac_ext <<_ACEOF
22272/* end confdefs.h.  */
22273
22274#include "exa.h"
22275#if EXA_VERSION_MAJOR < 2
22276#error OLD EXA!
22277#endif
22278
22279int
22280main ()
22281{
22282
22283  ;
22284  return 0;
22285}
22286_ACEOF
22287if { (ac_try="$ac_cpp conftest.$ac_ext"
22288case "(($ac_try" in
22289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22290  *) ac_try_echo=$ac_try;;
22291esac
22292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22293$as_echo "$ac_try_echo") >&5
22294  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22295  ac_status=$?
22296  grep -v '^ *+' conftest.er1 >conftest.err
22297  rm -f conftest.er1
22298  cat conftest.err >&5
22299  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300  (exit $ac_status); } >/dev/null && {
22301	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22302	 test ! -s conftest.err
22303       }; then
22304  USE_EXA=yes
22305else
22306  $as_echo "$as_me: failed program was:" >&5
22307sed 's/^/| /' conftest.$ac_ext >&5
22308
22309  USE_EXA=no
22310fi
22311
22312rm -f conftest.err conftest.$ac_ext
22313    { $as_echo "$as_me:$LINENO: result: $USE_EXA" >&5
22314$as_echo "$USE_EXA" >&6; }
22315
22316    if test "x$USE_EXA" = xyes; then
22317
22318cat >>confdefs.h <<\_ACEOF
22319#define USE_EXA 1
22320_ACEOF
22321
22322    fi
22323fi
22324CPPFLAGS="$SAVE_CPPFLAGS"
22325
22326 if test "x$USE_EXA" = xyes; then
22327  USE_EXA_TRUE=
22328  USE_EXA_FALSE='#'
22329else
22330  USE_EXA_TRUE='#'
22331  USE_EXA_FALSE=
22332fi
22333
22334
22335
22336
22337
22338
22339DRIVER_NAME=mga
22340
22341
22342
22343
22344
22345if test x$APP_MAN_SUFFIX = x    ; then
22346    APP_MAN_SUFFIX=1
22347fi
22348if test x$APP_MAN_DIR = x    ; then
22349    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
22350fi
22351
22352if test x$LIB_MAN_SUFFIX = x    ; then
22353    LIB_MAN_SUFFIX=3
22354fi
22355if test x$LIB_MAN_DIR = x    ; then
22356    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
22357fi
22358
22359if test x$FILE_MAN_SUFFIX = x    ; then
22360    case $host_os in
22361	solaris*)	FILE_MAN_SUFFIX=4  ;;
22362	*)		FILE_MAN_SUFFIX=5  ;;
22363    esac
22364fi
22365if test x$FILE_MAN_DIR = x    ; then
22366    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
22367fi
22368
22369if test x$MISC_MAN_SUFFIX = x    ; then
22370    case $host_os in
22371	solaris*)	MISC_MAN_SUFFIX=5  ;;
22372	*)		MISC_MAN_SUFFIX=7  ;;
22373    esac
22374fi
22375if test x$MISC_MAN_DIR = x    ; then
22376    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
22377fi
22378
22379if test x$DRIVER_MAN_SUFFIX = x    ; then
22380    case $host_os in
22381	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
22382	*)		DRIVER_MAN_SUFFIX=4  ;;
22383    esac
22384fi
22385if test x$DRIVER_MAN_DIR = x    ; then
22386    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
22387fi
22388
22389if test x$ADMIN_MAN_SUFFIX = x    ; then
22390    case $host_os in
22391	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
22392	*)		ADMIN_MAN_SUFFIX=8  ;;
22393    esac
22394fi
22395if test x$ADMIN_MAN_DIR = x    ; then
22396    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
22397fi
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415# Check whether --with-release-version was given.
22416if test "${with_release_version+set}" = set; then
22417  withval=$with_release_version; RELEASE_VERSION="$withval"
22418else
22419  RELEASE_VERSION=""
22420fi
22421
22422	if test "x$RELEASE_VERSION" != "x"; then
22423		PACKAGE="$PACKAGE-$RELEASE_VERSION"
22424		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
22425		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
22426$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
22427	fi
22428
22429cat >>confdefs.h <<_ACEOF
22430#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
22431_ACEOF
22432
22433	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
22434	if test "x$PVM" = "x"; then
22435		PVM="0"
22436	fi
22437
22438cat >>confdefs.h <<_ACEOF
22439#define PACKAGE_VERSION_MINOR $PVM
22440_ACEOF
22441
22442	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
22443	if test "x$PVP" = "x"; then
22444		PVP="0"
22445	fi
22446
22447cat >>confdefs.h <<_ACEOF
22448#define PACKAGE_VERSION_PATCHLEVEL $PVP
22449_ACEOF
22450
22451
22452
22453CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
22454mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
22455echo 'git directory not found: installing possibly empty changelog.' >&2)"
22456
22457distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
22458
22459
22460
22461ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile"
22462
22463cat >confcache <<\_ACEOF
22464# This file is a shell script that caches the results of configure
22465# tests run on this system so they can be shared between configure
22466# scripts and configure runs, see configure's option --config-cache.
22467# It is not useful on other systems.  If it contains results you don't
22468# want to keep, you may remove or edit it.
22469#
22470# config.status only pays attention to the cache file if you give it
22471# the --recheck option to rerun configure.
22472#
22473# `ac_cv_env_foo' variables (set or unset) will be overridden when
22474# loading this file, other *unset* `ac_cv_foo' will be assigned the
22475# following values.
22476
22477_ACEOF
22478
22479# The following way of writing the cache mishandles newlines in values,
22480# but we know of no workaround that is simple, portable, and efficient.
22481# So, we kill variables containing newlines.
22482# Ultrix sh set writes to stderr and can't be redirected directly,
22483# and sets the high bit in the cache file unless we assign to the vars.
22484(
22485  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22486    eval ac_val=\$$ac_var
22487    case $ac_val in #(
22488    *${as_nl}*)
22489      case $ac_var in #(
22490      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22491$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22492      esac
22493      case $ac_var in #(
22494      _ | IFS | as_nl) ;; #(
22495      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22496      *) $as_unset $ac_var ;;
22497      esac ;;
22498    esac
22499  done
22500
22501  (set) 2>&1 |
22502    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22503    *${as_nl}ac_space=\ *)
22504      # `set' does not quote correctly, so add quotes (double-quote
22505      # substitution turns \\\\ into \\, and sed turns \\ into \).
22506      sed -n \
22507	"s/'/'\\\\''/g;
22508	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22509      ;; #(
22510    *)
22511      # `set' quotes correctly as required by POSIX, so do not add quotes.
22512      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22513      ;;
22514    esac |
22515    sort
22516) |
22517  sed '
22518     /^ac_cv_env_/b end
22519     t clear
22520     :clear
22521     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22522     t end
22523     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22524     :end' >>confcache
22525if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22526  if test -w "$cache_file"; then
22527    test "x$cache_file" != "x/dev/null" &&
22528      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22529$as_echo "$as_me: updating cache $cache_file" >&6;}
22530    cat confcache >$cache_file
22531  else
22532    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22533$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22534  fi
22535fi
22536rm -f confcache
22537
22538test "x$prefix" = xNONE && prefix=$ac_default_prefix
22539# Let make expand exec_prefix.
22540test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22541
22542DEFS=-DHAVE_CONFIG_H
22543
22544ac_libobjs=
22545ac_ltlibobjs=
22546for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22547  # 1. Remove the extension, and $U if already installed.
22548  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22549  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22550  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22551  #    will be set to the directory where LIBOBJS objects are built.
22552  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22553  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22554done
22555LIBOBJS=$ac_libobjs
22556
22557LTLIBOBJS=$ac_ltlibobjs
22558
22559
22560 if test -n "$EXEEXT"; then
22561  am__EXEEXT_TRUE=
22562  am__EXEEXT_FALSE='#'
22563else
22564  am__EXEEXT_TRUE='#'
22565  am__EXEEXT_FALSE=
22566fi
22567
22568if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22569  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22570Usually this means the macro was only invoked conditionally." >&5
22571$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22572Usually this means the macro was only invoked conditionally." >&2;}
22573   { (exit 1); exit 1; }; }
22574fi
22575if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22576  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22577Usually this means the macro was only invoked conditionally." >&5
22578$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22579Usually this means the macro was only invoked conditionally." >&2;}
22580   { (exit 1); exit 1; }; }
22581fi
22582if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22583  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22584Usually this means the macro was only invoked conditionally." >&5
22585$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22586Usually this means the macro was only invoked conditionally." >&2;}
22587   { (exit 1); exit 1; }; }
22588fi
22589if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22590  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22591Usually this means the macro was only invoked conditionally." >&5
22592$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22593Usually this means the macro was only invoked conditionally." >&2;}
22594   { (exit 1); exit 1; }; }
22595fi
22596if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22597  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22598Usually this means the macro was only invoked conditionally." >&5
22599$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22600Usually this means the macro was only invoked conditionally." >&2;}
22601   { (exit 1); exit 1; }; }
22602fi
22603if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
22604  { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
22605Usually this means the macro was only invoked conditionally." >&5
22606$as_echo "$as_me: error: conditional \"DRI\" was never defined.
22607Usually this means the macro was only invoked conditionally." >&2;}
22608   { (exit 1); exit 1; }; }
22609fi
22610if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
22611  { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
22612Usually this means the macro was only invoked conditionally." >&5
22613$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
22614Usually this means the macro was only invoked conditionally." >&2;}
22615   { (exit 1); exit 1; }; }
22616fi
22617if test -z "${USE_XAA_TRUE}" && test -z "${USE_XAA_FALSE}"; then
22618  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_XAA\" was never defined.
22619Usually this means the macro was only invoked conditionally." >&5
22620$as_echo "$as_me: error: conditional \"USE_XAA\" was never defined.
22621Usually this means the macro was only invoked conditionally." >&2;}
22622   { (exit 1); exit 1; }; }
22623fi
22624if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
22625  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_EXA\" was never defined.
22626Usually this means the macro was only invoked conditionally." >&5
22627$as_echo "$as_me: error: conditional \"USE_EXA\" was never defined.
22628Usually this means the macro was only invoked conditionally." >&2;}
22629   { (exit 1); exit 1; }; }
22630fi
22631
22632: ${CONFIG_STATUS=./config.status}
22633ac_write_fail=0
22634ac_clean_files_save=$ac_clean_files
22635ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22636{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22637$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22638cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22639#! $SHELL
22640# Generated by $as_me.
22641# Run this file to recreate the current configuration.
22642# Compiler output produced by configure, useful for debugging
22643# configure, is in config.log if it exists.
22644
22645debug=false
22646ac_cs_recheck=false
22647ac_cs_silent=false
22648SHELL=\${CONFIG_SHELL-$SHELL}
22649_ACEOF
22650
22651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22652## --------------------- ##
22653## M4sh Initialization.  ##
22654## --------------------- ##
22655
22656# Be more Bourne compatible
22657DUALCASE=1; export DUALCASE # for MKS sh
22658if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22659  emulate sh
22660  NULLCMD=:
22661  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22662  # is contrary to our usage.  Disable this feature.
22663  alias -g '${1+"$@"}'='"$@"'
22664  setopt NO_GLOB_SUBST
22665else
22666  case `(set -o) 2>/dev/null` in
22667  *posix*) set -o posix ;;
22668esac
22669
22670fi
22671
22672
22673
22674
22675# PATH needs CR
22676# Avoid depending upon Character Ranges.
22677as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22678as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22679as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22680as_cr_digits='0123456789'
22681as_cr_alnum=$as_cr_Letters$as_cr_digits
22682
22683as_nl='
22684'
22685export as_nl
22686# Printing a long string crashes Solaris 7 /usr/bin/printf.
22687as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22688as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22689as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22690if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22691  as_echo='printf %s\n'
22692  as_echo_n='printf %s'
22693else
22694  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22695    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22696    as_echo_n='/usr/ucb/echo -n'
22697  else
22698    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22699    as_echo_n_body='eval
22700      arg=$1;
22701      case $arg in
22702      *"$as_nl"*)
22703	expr "X$arg" : "X\\(.*\\)$as_nl";
22704	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22705      esac;
22706      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22707    '
22708    export as_echo_n_body
22709    as_echo_n='sh -c $as_echo_n_body as_echo'
22710  fi
22711  export as_echo_body
22712  as_echo='sh -c $as_echo_body as_echo'
22713fi
22714
22715# The user is always right.
22716if test "${PATH_SEPARATOR+set}" != set; then
22717  PATH_SEPARATOR=:
22718  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22719    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22720      PATH_SEPARATOR=';'
22721  }
22722fi
22723
22724# Support unset when possible.
22725if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22726  as_unset=unset
22727else
22728  as_unset=false
22729fi
22730
22731
22732# IFS
22733# We need space, tab and new line, in precisely that order.  Quoting is
22734# there to prevent editors from complaining about space-tab.
22735# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22736# splitting by setting IFS to empty value.)
22737IFS=" ""	$as_nl"
22738
22739# Find who we are.  Look in the path if we contain no directory separator.
22740case $0 in
22741  *[\\/]* ) as_myself=$0 ;;
22742  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22743for as_dir in $PATH
22744do
22745  IFS=$as_save_IFS
22746  test -z "$as_dir" && as_dir=.
22747  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22748done
22749IFS=$as_save_IFS
22750
22751     ;;
22752esac
22753# We did not find ourselves, most probably we were run as `sh COMMAND'
22754# in which case we are not to be found in the path.
22755if test "x$as_myself" = x; then
22756  as_myself=$0
22757fi
22758if test ! -f "$as_myself"; then
22759  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22760  { (exit 1); exit 1; }
22761fi
22762
22763# Work around bugs in pre-3.0 UWIN ksh.
22764for as_var in ENV MAIL MAILPATH
22765do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22766done
22767PS1='$ '
22768PS2='> '
22769PS4='+ '
22770
22771# NLS nuisances.
22772LC_ALL=C
22773export LC_ALL
22774LANGUAGE=C
22775export LANGUAGE
22776
22777# Required to use basename.
22778if expr a : '\(a\)' >/dev/null 2>&1 &&
22779   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22780  as_expr=expr
22781else
22782  as_expr=false
22783fi
22784
22785if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22786  as_basename=basename
22787else
22788  as_basename=false
22789fi
22790
22791
22792# Name of the executable.
22793as_me=`$as_basename -- "$0" ||
22794$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22795	 X"$0" : 'X\(//\)$' \| \
22796	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22797$as_echo X/"$0" |
22798    sed '/^.*\/\([^/][^/]*\)\/*$/{
22799	    s//\1/
22800	    q
22801	  }
22802	  /^X\/\(\/\/\)$/{
22803	    s//\1/
22804	    q
22805	  }
22806	  /^X\/\(\/\).*/{
22807	    s//\1/
22808	    q
22809	  }
22810	  s/.*/./; q'`
22811
22812# CDPATH.
22813$as_unset CDPATH
22814
22815
22816
22817  as_lineno_1=$LINENO
22818  as_lineno_2=$LINENO
22819  test "x$as_lineno_1" != "x$as_lineno_2" &&
22820  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22821
22822  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22823  # uniformly replaced by the line number.  The first 'sed' inserts a
22824  # line-number line after each line using $LINENO; the second 'sed'
22825  # does the real work.  The second script uses 'N' to pair each
22826  # line-number line with the line containing $LINENO, and appends
22827  # trailing '-' during substitution so that $LINENO is not a special
22828  # case at line end.
22829  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22830  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22831  # E. McMahon (1931-1989) for sed's syntax.  :-)
22832  sed -n '
22833    p
22834    /[$]LINENO/=
22835  ' <$as_myself |
22836    sed '
22837      s/[$]LINENO.*/&-/
22838      t lineno
22839      b
22840      :lineno
22841      N
22842      :loop
22843      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22844      t loop
22845      s/-\n.*//
22846    ' >$as_me.lineno &&
22847  chmod +x "$as_me.lineno" ||
22848    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22849   { (exit 1); exit 1; }; }
22850
22851  # Don't try to exec as it changes $[0], causing all sort of problems
22852  # (the dirname of $[0] is not the place where we might find the
22853  # original and so on.  Autoconf is especially sensitive to this).
22854  . "./$as_me.lineno"
22855  # Exit status is that of the last command.
22856  exit
22857}
22858
22859
22860if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22861  as_dirname=dirname
22862else
22863  as_dirname=false
22864fi
22865
22866ECHO_C= ECHO_N= ECHO_T=
22867case `echo -n x` in
22868-n*)
22869  case `echo 'x\c'` in
22870  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22871  *)   ECHO_C='\c';;
22872  esac;;
22873*)
22874  ECHO_N='-n';;
22875esac
22876if expr a : '\(a\)' >/dev/null 2>&1 &&
22877   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22878  as_expr=expr
22879else
22880  as_expr=false
22881fi
22882
22883rm -f conf$$ conf$$.exe conf$$.file
22884if test -d conf$$.dir; then
22885  rm -f conf$$.dir/conf$$.file
22886else
22887  rm -f conf$$.dir
22888  mkdir conf$$.dir 2>/dev/null
22889fi
22890if (echo >conf$$.file) 2>/dev/null; then
22891  if ln -s conf$$.file conf$$ 2>/dev/null; then
22892    as_ln_s='ln -s'
22893    # ... but there are two gotchas:
22894    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22895    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22896    # In both cases, we have to default to `cp -p'.
22897    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22898      as_ln_s='cp -p'
22899  elif ln conf$$.file conf$$ 2>/dev/null; then
22900    as_ln_s=ln
22901  else
22902    as_ln_s='cp -p'
22903  fi
22904else
22905  as_ln_s='cp -p'
22906fi
22907rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22908rmdir conf$$.dir 2>/dev/null
22909
22910if mkdir -p . 2>/dev/null; then
22911  as_mkdir_p=:
22912else
22913  test -d ./-p && rmdir ./-p
22914  as_mkdir_p=false
22915fi
22916
22917if test -x / >/dev/null 2>&1; then
22918  as_test_x='test -x'
22919else
22920  if ls -dL / >/dev/null 2>&1; then
22921    as_ls_L_option=L
22922  else
22923    as_ls_L_option=
22924  fi
22925  as_test_x='
22926    eval sh -c '\''
22927      if test -d "$1"; then
22928	test -d "$1/.";
22929      else
22930	case $1 in
22931	-*)set "./$1";;
22932	esac;
22933	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22934	???[sx]*):;;*)false;;esac;fi
22935    '\'' sh
22936  '
22937fi
22938as_executable_p=$as_test_x
22939
22940# Sed expression to map a string onto a valid CPP name.
22941as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22942
22943# Sed expression to map a string onto a valid variable name.
22944as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22945
22946
22947exec 6>&1
22948
22949# Save the log message, to keep $[0] and so on meaningful, and to
22950# report actual input values of CONFIG_FILES etc. instead of their
22951# values after options handling.
22952ac_log="
22953This file was extended by xf86-video-mga $as_me 1.4.11, which was
22954generated by GNU Autoconf 2.63.  Invocation command line was
22955
22956  CONFIG_FILES    = $CONFIG_FILES
22957  CONFIG_HEADERS  = $CONFIG_HEADERS
22958  CONFIG_LINKS    = $CONFIG_LINKS
22959  CONFIG_COMMANDS = $CONFIG_COMMANDS
22960  $ $0 $@
22961
22962on `(hostname || uname -n) 2>/dev/null | sed 1q`
22963"
22964
22965_ACEOF
22966
22967case $ac_config_files in *"
22968"*) set x $ac_config_files; shift; ac_config_files=$*;;
22969esac
22970
22971case $ac_config_headers in *"
22972"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22973esac
22974
22975
22976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22977# Files that config.status was made for.
22978config_files="$ac_config_files"
22979config_headers="$ac_config_headers"
22980config_commands="$ac_config_commands"
22981
22982_ACEOF
22983
22984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22985ac_cs_usage="\
22986\`$as_me' instantiates files from templates according to the
22987current configuration.
22988
22989Usage: $0 [OPTION]... [FILE]...
22990
22991  -h, --help       print this help, then exit
22992  -V, --version    print version number and configuration settings, then exit
22993  -q, --quiet, --silent
22994                   do not print progress messages
22995  -d, --debug      don't remove temporary files
22996      --recheck    update $as_me by reconfiguring in the same conditions
22997      --file=FILE[:TEMPLATE]
22998                   instantiate the configuration file FILE
22999      --header=FILE[:TEMPLATE]
23000                   instantiate the configuration header FILE
23001
23002Configuration files:
23003$config_files
23004
23005Configuration headers:
23006$config_headers
23007
23008Configuration commands:
23009$config_commands
23010
23011Report bugs to <bug-autoconf@gnu.org>."
23012
23013_ACEOF
23014cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23015ac_cs_version="\\
23016xf86-video-mga config.status 1.4.11
23017configured by $0, generated by GNU Autoconf 2.63,
23018  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23019
23020Copyright (C) 2008 Free Software Foundation, Inc.
23021This config.status script is free software; the Free Software Foundation
23022gives unlimited permission to copy, distribute and modify it."
23023
23024ac_pwd='$ac_pwd'
23025srcdir='$srcdir'
23026INSTALL='$INSTALL'
23027MKDIR_P='$MKDIR_P'
23028AWK='$AWK'
23029test -n "\$AWK" || AWK=awk
23030_ACEOF
23031
23032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23033# The default lists apply if the user does not specify any file.
23034ac_need_defaults=:
23035while test $# != 0
23036do
23037  case $1 in
23038  --*=*)
23039    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23040    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23041    ac_shift=:
23042    ;;
23043  *)
23044    ac_option=$1
23045    ac_optarg=$2
23046    ac_shift=shift
23047    ;;
23048  esac
23049
23050  case $ac_option in
23051  # Handling of the options.
23052  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23053    ac_cs_recheck=: ;;
23054  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23055    $as_echo "$ac_cs_version"; exit ;;
23056  --debug | --debu | --deb | --de | --d | -d )
23057    debug=: ;;
23058  --file | --fil | --fi | --f )
23059    $ac_shift
23060    case $ac_optarg in
23061    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23062    esac
23063    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
23064    ac_need_defaults=false;;
23065  --header | --heade | --head | --hea )
23066    $ac_shift
23067    case $ac_optarg in
23068    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23069    esac
23070    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
23071    ac_need_defaults=false;;
23072  --he | --h)
23073    # Conflict between --help and --header
23074    { $as_echo "$as_me: error: ambiguous option: $1
23075Try \`$0 --help' for more information." >&2
23076   { (exit 1); exit 1; }; };;
23077  --help | --hel | -h )
23078    $as_echo "$ac_cs_usage"; exit ;;
23079  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23080  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23081    ac_cs_silent=: ;;
23082
23083  # This is an error.
23084  -*) { $as_echo "$as_me: error: unrecognized option: $1
23085Try \`$0 --help' for more information." >&2
23086   { (exit 1); exit 1; }; } ;;
23087
23088  *) ac_config_targets="$ac_config_targets $1"
23089     ac_need_defaults=false ;;
23090
23091  esac
23092  shift
23093done
23094
23095ac_configure_extra_args=
23096
23097if $ac_cs_silent; then
23098  exec 6>/dev/null
23099  ac_configure_extra_args="$ac_configure_extra_args --silent"
23100fi
23101
23102_ACEOF
23103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23104if \$ac_cs_recheck; then
23105  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23106  shift
23107  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23108  CONFIG_SHELL='$SHELL'
23109  export CONFIG_SHELL
23110  exec "\$@"
23111fi
23112
23113_ACEOF
23114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23115exec 5>>config.log
23116{
23117  echo
23118  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23119## Running $as_me. ##
23120_ASBOX
23121  $as_echo "$ac_log"
23122} >&5
23123
23124_ACEOF
23125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23126#
23127# INIT-COMMANDS
23128#
23129AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23130
23131_ACEOF
23132
23133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23134
23135# Handling of arguments.
23136for ac_config_target in $ac_config_targets
23137do
23138  case $ac_config_target in
23139    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23140    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23141    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23142    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23143    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23144    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
23145
23146  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23147$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23148   { (exit 1); exit 1; }; };;
23149  esac
23150done
23151
23152
23153# If the user did not use the arguments to specify the items to instantiate,
23154# then the envvar interface is used.  Set only those that are not.
23155# We use the long form for the default assignment because of an extremely
23156# bizarre bug on SunOS 4.1.3.
23157if $ac_need_defaults; then
23158  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23159  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23160  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23161fi
23162
23163# Have a temporary directory for convenience.  Make it in the build tree
23164# simply because there is no reason against having it here, and in addition,
23165# creating and moving files from /tmp can sometimes cause problems.
23166# Hook for its removal unless debugging.
23167# Note that there is a small window in which the directory will not be cleaned:
23168# after its creation but before its name has been assigned to `$tmp'.
23169$debug ||
23170{
23171  tmp=
23172  trap 'exit_status=$?
23173  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23174' 0
23175  trap '{ (exit 1); exit 1; }' 1 2 13 15
23176}
23177# Create a (secure) tmp directory for tmp files.
23178
23179{
23180  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23181  test -n "$tmp" && test -d "$tmp"
23182}  ||
23183{
23184  tmp=./conf$$-$RANDOM
23185  (umask 077 && mkdir "$tmp")
23186} ||
23187{
23188   $as_echo "$as_me: cannot create a temporary directory in ." >&2
23189   { (exit 1); exit 1; }
23190}
23191
23192# Set up the scripts for CONFIG_FILES section.
23193# No need to generate them if there are no CONFIG_FILES.
23194# This happens for instance with `./config.status config.h'.
23195if test -n "$CONFIG_FILES"; then
23196
23197
23198ac_cr='
23199'
23200ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23201if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23202  ac_cs_awk_cr='\\r'
23203else
23204  ac_cs_awk_cr=$ac_cr
23205fi
23206
23207echo 'BEGIN {' >"$tmp/subs1.awk" &&
23208_ACEOF
23209
23210
23211{
23212  echo "cat >conf$$subs.awk <<_ACEOF" &&
23213  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23214  echo "_ACEOF"
23215} >conf$$subs.sh ||
23216  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23217$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23218   { (exit 1); exit 1; }; }
23219ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23220ac_delim='%!_!# '
23221for ac_last_try in false false false false false :; do
23222  . ./conf$$subs.sh ||
23223    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23224$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23225   { (exit 1); exit 1; }; }
23226
23227  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23228  if test $ac_delim_n = $ac_delim_num; then
23229    break
23230  elif $ac_last_try; then
23231    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23232$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23233   { (exit 1); exit 1; }; }
23234  else
23235    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23236  fi
23237done
23238rm -f conf$$subs.sh
23239
23240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23241cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23242_ACEOF
23243sed -n '
23244h
23245s/^/S["/; s/!.*/"]=/
23246p
23247g
23248s/^[^!]*!//
23249:repl
23250t repl
23251s/'"$ac_delim"'$//
23252t delim
23253:nl
23254h
23255s/\(.\{148\}\).*/\1/
23256t more1
23257s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23258p
23259n
23260b repl
23261:more1
23262s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23263p
23264g
23265s/.\{148\}//
23266t nl
23267:delim
23268h
23269s/\(.\{148\}\).*/\1/
23270t more2
23271s/["\\]/\\&/g; s/^/"/; s/$/"/
23272p
23273b
23274:more2
23275s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23276p
23277g
23278s/.\{148\}//
23279t delim
23280' <conf$$subs.awk | sed '
23281/^[^""]/{
23282  N
23283  s/\n//
23284}
23285' >>$CONFIG_STATUS || ac_write_fail=1
23286rm -f conf$$subs.awk
23287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23288_ACAWK
23289cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23290  for (key in S) S_is_set[key] = 1
23291  FS = ""
23292
23293}
23294{
23295  line = $ 0
23296  nfields = split(line, field, "@")
23297  substed = 0
23298  len = length(field[1])
23299  for (i = 2; i < nfields; i++) {
23300    key = field[i]
23301    keylen = length(key)
23302    if (S_is_set[key]) {
23303      value = S[key]
23304      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23305      len += length(value) + length(field[++i])
23306      substed = 1
23307    } else
23308      len += 1 + keylen
23309  }
23310
23311  print line
23312}
23313
23314_ACAWK
23315_ACEOF
23316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23317if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23318  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23319else
23320  cat
23321fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23322  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23323$as_echo "$as_me: error: could not setup config files machinery" >&2;}
23324   { (exit 1); exit 1; }; }
23325_ACEOF
23326
23327# VPATH may cause trouble with some makes, so we remove $(srcdir),
23328# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23329# trailing colons and then remove the whole line if VPATH becomes empty
23330# (actually we leave an empty line to preserve line numbers).
23331if test "x$srcdir" = x.; then
23332  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23333s/:*\$(srcdir):*/:/
23334s/:*\${srcdir}:*/:/
23335s/:*@srcdir@:*/:/
23336s/^\([^=]*=[	 ]*\):*/\1/
23337s/:*$//
23338s/^[^=]*=[	 ]*$//
23339}'
23340fi
23341
23342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23343fi # test -n "$CONFIG_FILES"
23344
23345# Set up the scripts for CONFIG_HEADERS section.
23346# No need to generate them if there are no CONFIG_HEADERS.
23347# This happens for instance with `./config.status Makefile'.
23348if test -n "$CONFIG_HEADERS"; then
23349cat >"$tmp/defines.awk" <<\_ACAWK ||
23350BEGIN {
23351_ACEOF
23352
23353# Transform confdefs.h into an awk script `defines.awk', embedded as
23354# here-document in config.status, that substitutes the proper values into
23355# config.h.in to produce config.h.
23356
23357# Create a delimiter string that does not exist in confdefs.h, to ease
23358# handling of long lines.
23359ac_delim='%!_!# '
23360for ac_last_try in false false :; do
23361  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23362  if test -z "$ac_t"; then
23363    break
23364  elif $ac_last_try; then
23365    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23366$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23367   { (exit 1); exit 1; }; }
23368  else
23369    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23370  fi
23371done
23372
23373# For the awk script, D is an array of macro values keyed by name,
23374# likewise P contains macro parameters if any.  Preserve backslash
23375# newline sequences.
23376
23377ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23378sed -n '
23379s/.\{148\}/&'"$ac_delim"'/g
23380t rset
23381:rset
23382s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23383t def
23384d
23385:def
23386s/\\$//
23387t bsnl
23388s/["\\]/\\&/g
23389s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23390D["\1"]=" \3"/p
23391s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23392d
23393:bsnl
23394s/["\\]/\\&/g
23395s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23396D["\1"]=" \3\\\\\\n"\\/p
23397t cont
23398s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23399t cont
23400d
23401:cont
23402n
23403s/.\{148\}/&'"$ac_delim"'/g
23404t clear
23405:clear
23406s/\\$//
23407t bsnlc
23408s/["\\]/\\&/g; s/^/"/; s/$/"/p
23409d
23410:bsnlc
23411s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23412b cont
23413' <confdefs.h | sed '
23414s/'"$ac_delim"'/"\\\
23415"/g' >>$CONFIG_STATUS || ac_write_fail=1
23416
23417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23418  for (key in D) D_is_set[key] = 1
23419  FS = ""
23420}
23421/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23422  line = \$ 0
23423  split(line, arg, " ")
23424  if (arg[1] == "#") {
23425    defundef = arg[2]
23426    mac1 = arg[3]
23427  } else {
23428    defundef = substr(arg[1], 2)
23429    mac1 = arg[2]
23430  }
23431  split(mac1, mac2, "(") #)
23432  macro = mac2[1]
23433  prefix = substr(line, 1, index(line, defundef) - 1)
23434  if (D_is_set[macro]) {
23435    # Preserve the white space surrounding the "#".
23436    print prefix "define", macro P[macro] D[macro]
23437    next
23438  } else {
23439    # Replace #undef with comments.  This is necessary, for example,
23440    # in the case of _POSIX_SOURCE, which is predefined and required
23441    # on some systems where configure will not decide to define it.
23442    if (defundef == "undef") {
23443      print "/*", prefix defundef, macro, "*/"
23444      next
23445    }
23446  }
23447}
23448{ print }
23449_ACAWK
23450_ACEOF
23451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23452  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23453$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23454   { (exit 1); exit 1; }; }
23455fi # test -n "$CONFIG_HEADERS"
23456
23457
23458eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23459shift
23460for ac_tag
23461do
23462  case $ac_tag in
23463  :[FHLC]) ac_mode=$ac_tag; continue;;
23464  esac
23465  case $ac_mode$ac_tag in
23466  :[FHL]*:*);;
23467  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23468$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23469   { (exit 1); exit 1; }; };;
23470  :[FH]-) ac_tag=-:-;;
23471  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23472  esac
23473  ac_save_IFS=$IFS
23474  IFS=:
23475  set x $ac_tag
23476  IFS=$ac_save_IFS
23477  shift
23478  ac_file=$1
23479  shift
23480
23481  case $ac_mode in
23482  :L) ac_source=$1;;
23483  :[FH])
23484    ac_file_inputs=
23485    for ac_f
23486    do
23487      case $ac_f in
23488      -) ac_f="$tmp/stdin";;
23489      *) # Look for the file first in the build tree, then in the source tree
23490	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23491	 # because $ac_f cannot contain `:'.
23492	 test -f "$ac_f" ||
23493	   case $ac_f in
23494	   [\\/$]*) false;;
23495	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23496	   esac ||
23497	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23498$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23499   { (exit 1); exit 1; }; };;
23500      esac
23501      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23502      ac_file_inputs="$ac_file_inputs '$ac_f'"
23503    done
23504
23505    # Let's still pretend it is `configure' which instantiates (i.e., don't
23506    # use $as_me), people would be surprised to read:
23507    #    /* config.h.  Generated by config.status.  */
23508    configure_input='Generated from '`
23509	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23510	`' by configure.'
23511    if test x"$ac_file" != x-; then
23512      configure_input="$ac_file.  $configure_input"
23513      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23514$as_echo "$as_me: creating $ac_file" >&6;}
23515    fi
23516    # Neutralize special characters interpreted by sed in replacement strings.
23517    case $configure_input in #(
23518    *\&* | *\|* | *\\* )
23519       ac_sed_conf_input=`$as_echo "$configure_input" |
23520       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23521    *) ac_sed_conf_input=$configure_input;;
23522    esac
23523
23524    case $ac_tag in
23525    *:-:* | *:-) cat >"$tmp/stdin" \
23526      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23527$as_echo "$as_me: error: could not create $ac_file" >&2;}
23528   { (exit 1); exit 1; }; } ;;
23529    esac
23530    ;;
23531  esac
23532
23533  ac_dir=`$as_dirname -- "$ac_file" ||
23534$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23535	 X"$ac_file" : 'X\(//\)[^/]' \| \
23536	 X"$ac_file" : 'X\(//\)$' \| \
23537	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23538$as_echo X"$ac_file" |
23539    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23540	    s//\1/
23541	    q
23542	  }
23543	  /^X\(\/\/\)[^/].*/{
23544	    s//\1/
23545	    q
23546	  }
23547	  /^X\(\/\/\)$/{
23548	    s//\1/
23549	    q
23550	  }
23551	  /^X\(\/\).*/{
23552	    s//\1/
23553	    q
23554	  }
23555	  s/.*/./; q'`
23556  { as_dir="$ac_dir"
23557  case $as_dir in #(
23558  -*) as_dir=./$as_dir;;
23559  esac
23560  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23561    as_dirs=
23562    while :; do
23563      case $as_dir in #(
23564      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23565      *) as_qdir=$as_dir;;
23566      esac
23567      as_dirs="'$as_qdir' $as_dirs"
23568      as_dir=`$as_dirname -- "$as_dir" ||
23569$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23570	 X"$as_dir" : 'X\(//\)[^/]' \| \
23571	 X"$as_dir" : 'X\(//\)$' \| \
23572	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23573$as_echo X"$as_dir" |
23574    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23575	    s//\1/
23576	    q
23577	  }
23578	  /^X\(\/\/\)[^/].*/{
23579	    s//\1/
23580	    q
23581	  }
23582	  /^X\(\/\/\)$/{
23583	    s//\1/
23584	    q
23585	  }
23586	  /^X\(\/\).*/{
23587	    s//\1/
23588	    q
23589	  }
23590	  s/.*/./; q'`
23591      test -d "$as_dir" && break
23592    done
23593    test -z "$as_dirs" || eval "mkdir $as_dirs"
23594  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23595$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23596   { (exit 1); exit 1; }; }; }
23597  ac_builddir=.
23598
23599case "$ac_dir" in
23600.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23601*)
23602  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23603  # A ".." for each directory in $ac_dir_suffix.
23604  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23605  case $ac_top_builddir_sub in
23606  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23607  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23608  esac ;;
23609esac
23610ac_abs_top_builddir=$ac_pwd
23611ac_abs_builddir=$ac_pwd$ac_dir_suffix
23612# for backward compatibility:
23613ac_top_builddir=$ac_top_build_prefix
23614
23615case $srcdir in
23616  .)  # We are building in place.
23617    ac_srcdir=.
23618    ac_top_srcdir=$ac_top_builddir_sub
23619    ac_abs_top_srcdir=$ac_pwd ;;
23620  [\\/]* | ?:[\\/]* )  # Absolute name.
23621    ac_srcdir=$srcdir$ac_dir_suffix;
23622    ac_top_srcdir=$srcdir
23623    ac_abs_top_srcdir=$srcdir ;;
23624  *) # Relative name.
23625    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23626    ac_top_srcdir=$ac_top_build_prefix$srcdir
23627    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23628esac
23629ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23630
23631
23632  case $ac_mode in
23633  :F)
23634  #
23635  # CONFIG_FILE
23636  #
23637
23638  case $INSTALL in
23639  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23640  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23641  esac
23642  ac_MKDIR_P=$MKDIR_P
23643  case $MKDIR_P in
23644  [\\/$]* | ?:[\\/]* ) ;;
23645  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23646  esac
23647_ACEOF
23648
23649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23650# If the template does not know about datarootdir, expand it.
23651# FIXME: This hack should be removed a few years after 2.60.
23652ac_datarootdir_hack=; ac_datarootdir_seen=
23653
23654ac_sed_dataroot='
23655/datarootdir/ {
23656  p
23657  q
23658}
23659/@datadir@/p
23660/@docdir@/p
23661/@infodir@/p
23662/@localedir@/p
23663/@mandir@/p
23664'
23665case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23666*datarootdir*) ac_datarootdir_seen=yes;;
23667*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23668  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23669$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23670_ACEOF
23671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23672  ac_datarootdir_hack='
23673  s&@datadir@&$datadir&g
23674  s&@docdir@&$docdir&g
23675  s&@infodir@&$infodir&g
23676  s&@localedir@&$localedir&g
23677  s&@mandir@&$mandir&g
23678    s&\\\${datarootdir}&$datarootdir&g' ;;
23679esac
23680_ACEOF
23681
23682# Neutralize VPATH when `$srcdir' = `.'.
23683# Shell code in configure.ac might set extrasub.
23684# FIXME: do we really want to maintain this feature?
23685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23686ac_sed_extra="$ac_vpsub
23687$extrasub
23688_ACEOF
23689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23690:t
23691/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23692s|@configure_input@|$ac_sed_conf_input|;t t
23693s&@top_builddir@&$ac_top_builddir_sub&;t t
23694s&@top_build_prefix@&$ac_top_build_prefix&;t t
23695s&@srcdir@&$ac_srcdir&;t t
23696s&@abs_srcdir@&$ac_abs_srcdir&;t t
23697s&@top_srcdir@&$ac_top_srcdir&;t t
23698s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23699s&@builddir@&$ac_builddir&;t t
23700s&@abs_builddir@&$ac_abs_builddir&;t t
23701s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23702s&@INSTALL@&$ac_INSTALL&;t t
23703s&@MKDIR_P@&$ac_MKDIR_P&;t t
23704$ac_datarootdir_hack
23705"
23706eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23707  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23708$as_echo "$as_me: error: could not create $ac_file" >&2;}
23709   { (exit 1); exit 1; }; }
23710
23711test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23712  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23713  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23714  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23715which seems to be undefined.  Please make sure it is defined." >&5
23716$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23717which seems to be undefined.  Please make sure it is defined." >&2;}
23718
23719  rm -f "$tmp/stdin"
23720  case $ac_file in
23721  -) cat "$tmp/out" && rm -f "$tmp/out";;
23722  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23723  esac \
23724  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23725$as_echo "$as_me: error: could not create $ac_file" >&2;}
23726   { (exit 1); exit 1; }; }
23727 ;;
23728  :H)
23729  #
23730  # CONFIG_HEADER
23731  #
23732  if test x"$ac_file" != x-; then
23733    {
23734      $as_echo "/* $configure_input  */" \
23735      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23736    } >"$tmp/config.h" \
23737      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23738$as_echo "$as_me: error: could not create $ac_file" >&2;}
23739   { (exit 1); exit 1; }; }
23740    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23741      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23742$as_echo "$as_me: $ac_file is unchanged" >&6;}
23743    else
23744      rm -f "$ac_file"
23745      mv "$tmp/config.h" "$ac_file" \
23746	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23747$as_echo "$as_me: error: could not create $ac_file" >&2;}
23748   { (exit 1); exit 1; }; }
23749    fi
23750  else
23751    $as_echo "/* $configure_input  */" \
23752      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23753      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23754$as_echo "$as_me: error: could not create -" >&2;}
23755   { (exit 1); exit 1; }; }
23756  fi
23757# Compute "$ac_file"'s index in $config_headers.
23758_am_arg="$ac_file"
23759_am_stamp_count=1
23760for _am_header in $config_headers :; do
23761  case $_am_header in
23762    $_am_arg | $_am_arg:* )
23763      break ;;
23764    * )
23765      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23766  esac
23767done
23768echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23769$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23770	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23771	 X"$_am_arg" : 'X\(//\)$' \| \
23772	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23773$as_echo X"$_am_arg" |
23774    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23775	    s//\1/
23776	    q
23777	  }
23778	  /^X\(\/\/\)[^/].*/{
23779	    s//\1/
23780	    q
23781	  }
23782	  /^X\(\/\/\)$/{
23783	    s//\1/
23784	    q
23785	  }
23786	  /^X\(\/\).*/{
23787	    s//\1/
23788	    q
23789	  }
23790	  s/.*/./; q'`/stamp-h$_am_stamp_count
23791 ;;
23792
23793  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23794$as_echo "$as_me: executing $ac_file commands" >&6;}
23795 ;;
23796  esac
23797
23798
23799  case $ac_file$ac_mode in
23800    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23801  # Autoconf 2.62 quotes --file arguments for eval, but not when files
23802  # are listed without --file.  Let's play safe and only enable the eval
23803  # if we detect the quoting.
23804  case $CONFIG_FILES in
23805  *\'*) eval set x "$CONFIG_FILES" ;;
23806  *)   set x $CONFIG_FILES ;;
23807  esac
23808  shift
23809  for mf
23810  do
23811    # Strip MF so we end up with the name of the file.
23812    mf=`echo "$mf" | sed -e 's/:.*$//'`
23813    # Check whether this is an Automake generated Makefile or not.
23814    # We used to match only the files named `Makefile.in', but
23815    # some people rename them; so instead we look at the file content.
23816    # Grep'ing the first line is not enough: some people post-process
23817    # each Makefile.in and add a new line on top of each file to say so.
23818    # Grep'ing the whole file is not good either: AIX grep has a line
23819    # limit of 2048, but all sed's we know have understand at least 4000.
23820    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23821      dirpart=`$as_dirname -- "$mf" ||
23822$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23823	 X"$mf" : 'X\(//\)[^/]' \| \
23824	 X"$mf" : 'X\(//\)$' \| \
23825	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23826$as_echo X"$mf" |
23827    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23828	    s//\1/
23829	    q
23830	  }
23831	  /^X\(\/\/\)[^/].*/{
23832	    s//\1/
23833	    q
23834	  }
23835	  /^X\(\/\/\)$/{
23836	    s//\1/
23837	    q
23838	  }
23839	  /^X\(\/\).*/{
23840	    s//\1/
23841	    q
23842	  }
23843	  s/.*/./; q'`
23844    else
23845      continue
23846    fi
23847    # Extract the definition of DEPDIR, am__include, and am__quote
23848    # from the Makefile without running `make'.
23849    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23850    test -z "$DEPDIR" && continue
23851    am__include=`sed -n 's/^am__include = //p' < "$mf"`
23852    test -z "am__include" && continue
23853    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23854    # When using ansi2knr, U may be empty or an underscore; expand it
23855    U=`sed -n 's/^U = //p' < "$mf"`
23856    # Find all dependency output files, they are included files with
23857    # $(DEPDIR) in their names.  We invoke sed twice because it is the
23858    # simplest approach to changing $(DEPDIR) to its actual value in the
23859    # expansion.
23860    for file in `sed -n "
23861      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23862	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23863      # Make sure the directory exists.
23864      test -f "$dirpart/$file" && continue
23865      fdir=`$as_dirname -- "$file" ||
23866$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23867	 X"$file" : 'X\(//\)[^/]' \| \
23868	 X"$file" : 'X\(//\)$' \| \
23869	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23870$as_echo X"$file" |
23871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23872	    s//\1/
23873	    q
23874	  }
23875	  /^X\(\/\/\)[^/].*/{
23876	    s//\1/
23877	    q
23878	  }
23879	  /^X\(\/\/\)$/{
23880	    s//\1/
23881	    q
23882	  }
23883	  /^X\(\/\).*/{
23884	    s//\1/
23885	    q
23886	  }
23887	  s/.*/./; q'`
23888      { as_dir=$dirpart/$fdir
23889  case $as_dir in #(
23890  -*) as_dir=./$as_dir;;
23891  esac
23892  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23893    as_dirs=
23894    while :; do
23895      case $as_dir in #(
23896      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23897      *) as_qdir=$as_dir;;
23898      esac
23899      as_dirs="'$as_qdir' $as_dirs"
23900      as_dir=`$as_dirname -- "$as_dir" ||
23901$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23902	 X"$as_dir" : 'X\(//\)[^/]' \| \
23903	 X"$as_dir" : 'X\(//\)$' \| \
23904	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23905$as_echo X"$as_dir" |
23906    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23907	    s//\1/
23908	    q
23909	  }
23910	  /^X\(\/\/\)[^/].*/{
23911	    s//\1/
23912	    q
23913	  }
23914	  /^X\(\/\/\)$/{
23915	    s//\1/
23916	    q
23917	  }
23918	  /^X\(\/\).*/{
23919	    s//\1/
23920	    q
23921	  }
23922	  s/.*/./; q'`
23923      test -d "$as_dir" && break
23924    done
23925    test -z "$as_dirs" || eval "mkdir $as_dirs"
23926  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23927$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23928   { (exit 1); exit 1; }; }; }
23929      # echo "creating $dirpart/$file"
23930      echo '# dummy' > "$dirpart/$file"
23931    done
23932  done
23933}
23934 ;;
23935
23936  esac
23937done # for ac_tag
23938
23939
23940{ (exit 0); exit 0; }
23941_ACEOF
23942chmod +x $CONFIG_STATUS
23943ac_clean_files=$ac_clean_files_save
23944
23945test $ac_write_fail = 0 ||
23946  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23947$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23948   { (exit 1); exit 1; }; }
23949
23950
23951# configure is writing to config.log, and then calls config.status.
23952# config.status does its own redirection, appending to config.log.
23953# Unfortunately, on DOS this fails, as config.log is still kept open
23954# by configure, so config.status won't be able to write to it; its
23955# output is simply discarded.  So we exec the FD to /dev/null,
23956# effectively closing config.log, so it can be properly (re)opened and
23957# appended to by config.status.  When coming back to configure, we
23958# need to make the FD available again.
23959if test "$no_create" != yes; then
23960  ac_cs_success=:
23961  ac_config_status_args=
23962  test "$silent" = yes &&
23963    ac_config_status_args="$ac_config_status_args --quiet"
23964  exec 5>/dev/null
23965  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23966  exec 5>>config.log
23967  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23968  # would make configure fail if this is the last instruction.
23969  $ac_cs_success || { (exit 1); exit 1; }
23970fi
23971if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23972  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23973$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23974fi
23975
23976