configure revision a18ebfb2
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for xf86-video-i128 1.3.3.
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-i128'
752PACKAGE_TARNAME='xf86-video-i128'
753PACKAGE_VERSION='1.3.3'
754PACKAGE_STRING='xf86-video-i128 1.3.3'
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
798MAKE_HTML
799MAKE_PDF
800MAKE_PS
801MAKE_TEXT
802BUILD_PDFDOC_FALSE
803BUILD_PDFDOC_TRUE
804BUILD_LINUXDOC_FALSE
805BUILD_LINUXDOC_TRUE
806PS2PDF
807LINUXDOC
808ADMIN_MAN_DIR
809DRIVER_MAN_DIR
810MISC_MAN_DIR
811FILE_MAN_DIR
812LIB_MAN_DIR
813APP_MAN_DIR
814ADMIN_MAN_SUFFIX
815DRIVER_MAN_SUFFIX
816MISC_MAN_SUFFIX
817FILE_MAN_SUFFIX
818LIB_MAN_SUFFIX
819APP_MAN_SUFFIX
820DRIVER_NAME
821moduledir
822XSERVER_LIBPCIACCESS_FALSE
823XSERVER_LIBPCIACCESS_TRUE
824PCIACCESS_LIBS
825PCIACCESS_CFLAGS
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
940enable_maintainer_mode
941enable_static
942enable_shared
943enable_fast_install
944enable_dependency_tracking
945with_gnu_ld
946enable_libtool_lock
947with_pic
948with_tags
949with_xorg_module_dir
950with_release_version
951'
952      ac_precious_vars='build_alias
953host_alias
954target_alias
955CC
956CFLAGS
957LDFLAGS
958LIBS
959CPPFLAGS
960CPP
961CXX
962CXXFLAGS
963CCC
964CXXCPP
965F77
966FFLAGS
967PKG_CONFIG
968XORG_CFLAGS
969XORG_LIBS
970PCIACCESS_CFLAGS
971PCIACCESS_LIBS'
972
973
974# Initialize some variables set by options.
975ac_init_help=
976ac_init_version=false
977ac_unrecognized_opts=
978ac_unrecognized_sep=
979# The variables have the same names as the options, with
980# dashes changed to underlines.
981cache_file=/dev/null
982exec_prefix=NONE
983no_create=
984no_recursion=
985prefix=NONE
986program_prefix=NONE
987program_suffix=NONE
988program_transform_name=s,x,x,
989silent=
990site=
991srcdir=
992verbose=
993x_includes=NONE
994x_libraries=NONE
995
996# Installation directory options.
997# These are left unexpanded so users can "make install exec_prefix=/foo"
998# and all the variables that are supposed to be based on exec_prefix
999# by default will actually change.
1000# Use braces instead of parens because sh, perl, etc. also accept them.
1001# (The list follows the same order as the GNU Coding Standards.)
1002bindir='${exec_prefix}/bin'
1003sbindir='${exec_prefix}/sbin'
1004libexecdir='${exec_prefix}/libexec'
1005datarootdir='${prefix}/share'
1006datadir='${datarootdir}'
1007sysconfdir='${prefix}/etc'
1008sharedstatedir='${prefix}/com'
1009localstatedir='${prefix}/var'
1010includedir='${prefix}/include'
1011oldincludedir='/usr/include'
1012docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1013infodir='${datarootdir}/info'
1014htmldir='${docdir}'
1015dvidir='${docdir}'
1016pdfdir='${docdir}'
1017psdir='${docdir}'
1018libdir='${exec_prefix}/lib'
1019localedir='${datarootdir}/locale'
1020mandir='${datarootdir}/man'
1021
1022ac_prev=
1023ac_dashdash=
1024for ac_option
1025do
1026  # If the previous option needs an argument, assign it.
1027  if test -n "$ac_prev"; then
1028    eval $ac_prev=\$ac_option
1029    ac_prev=
1030    continue
1031  fi
1032
1033  case $ac_option in
1034  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035  *)	ac_optarg=yes ;;
1036  esac
1037
1038  # Accept the important Cygnus configure options, so we can diagnose typos.
1039
1040  case $ac_dashdash$ac_option in
1041  --)
1042    ac_dashdash=yes ;;
1043
1044  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045    ac_prev=bindir ;;
1046  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047    bindir=$ac_optarg ;;
1048
1049  -build | --build | --buil | --bui | --bu)
1050    ac_prev=build_alias ;;
1051  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052    build_alias=$ac_optarg ;;
1053
1054  -cache-file | --cache-file | --cache-fil | --cache-fi \
1055  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056    ac_prev=cache_file ;;
1057  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059    cache_file=$ac_optarg ;;
1060
1061  --config-cache | -C)
1062    cache_file=config.cache ;;
1063
1064  -datadir | --datadir | --datadi | --datad)
1065    ac_prev=datadir ;;
1066  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067    datadir=$ac_optarg ;;
1068
1069  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070  | --dataroo | --dataro | --datar)
1071    ac_prev=datarootdir ;;
1072  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074    datarootdir=$ac_optarg ;;
1075
1076  -disable-* | --disable-*)
1077    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078    # Reject names that are not valid shell variable names.
1079    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1081   { (exit 1); exit 1; }; }
1082    ac_useropt_orig=$ac_useropt
1083    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084    case $ac_user_opts in
1085      *"
1086"enable_$ac_useropt"
1087"*) ;;
1088      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1089	 ac_unrecognized_sep=', ';;
1090    esac
1091    eval enable_$ac_useropt=no ;;
1092
1093  -docdir | --docdir | --docdi | --doc | --do)
1094    ac_prev=docdir ;;
1095  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1096    docdir=$ac_optarg ;;
1097
1098  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1099    ac_prev=dvidir ;;
1100  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1101    dvidir=$ac_optarg ;;
1102
1103  -enable-* | --enable-*)
1104    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1105    # Reject names that are not valid shell variable names.
1106    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1108   { (exit 1); exit 1; }; }
1109    ac_useropt_orig=$ac_useropt
1110    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111    case $ac_user_opts in
1112      *"
1113"enable_$ac_useropt"
1114"*) ;;
1115      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1116	 ac_unrecognized_sep=', ';;
1117    esac
1118    eval enable_$ac_useropt=\$ac_optarg ;;
1119
1120  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1121  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1122  | --exec | --exe | --ex)
1123    ac_prev=exec_prefix ;;
1124  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1125  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1126  | --exec=* | --exe=* | --ex=*)
1127    exec_prefix=$ac_optarg ;;
1128
1129  -gas | --gas | --ga | --g)
1130    # Obsolete; use --with-gas.
1131    with_gas=yes ;;
1132
1133  -help | --help | --hel | --he | -h)
1134    ac_init_help=long ;;
1135  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1136    ac_init_help=recursive ;;
1137  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1138    ac_init_help=short ;;
1139
1140  -host | --host | --hos | --ho)
1141    ac_prev=host_alias ;;
1142  -host=* | --host=* | --hos=* | --ho=*)
1143    host_alias=$ac_optarg ;;
1144
1145  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1146    ac_prev=htmldir ;;
1147  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1148  | --ht=*)
1149    htmldir=$ac_optarg ;;
1150
1151  -includedir | --includedir | --includedi | --included | --include \
1152  | --includ | --inclu | --incl | --inc)
1153    ac_prev=includedir ;;
1154  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1155  | --includ=* | --inclu=* | --incl=* | --inc=*)
1156    includedir=$ac_optarg ;;
1157
1158  -infodir | --infodir | --infodi | --infod | --info | --inf)
1159    ac_prev=infodir ;;
1160  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1161    infodir=$ac_optarg ;;
1162
1163  -libdir | --libdir | --libdi | --libd)
1164    ac_prev=libdir ;;
1165  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1166    libdir=$ac_optarg ;;
1167
1168  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1169  | --libexe | --libex | --libe)
1170    ac_prev=libexecdir ;;
1171  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1172  | --libexe=* | --libex=* | --libe=*)
1173    libexecdir=$ac_optarg ;;
1174
1175  -localedir | --localedir | --localedi | --localed | --locale)
1176    ac_prev=localedir ;;
1177  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1178    localedir=$ac_optarg ;;
1179
1180  -localstatedir | --localstatedir | --localstatedi | --localstated \
1181  | --localstate | --localstat | --localsta | --localst | --locals)
1182    ac_prev=localstatedir ;;
1183  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1184  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1185    localstatedir=$ac_optarg ;;
1186
1187  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1188    ac_prev=mandir ;;
1189  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1190    mandir=$ac_optarg ;;
1191
1192  -nfp | --nfp | --nf)
1193    # Obsolete; use --without-fp.
1194    with_fp=no ;;
1195
1196  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1197  | --no-cr | --no-c | -n)
1198    no_create=yes ;;
1199
1200  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1201  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1202    no_recursion=yes ;;
1203
1204  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1205  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1206  | --oldin | --oldi | --old | --ol | --o)
1207    ac_prev=oldincludedir ;;
1208  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1209  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1210  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1211    oldincludedir=$ac_optarg ;;
1212
1213  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1214    ac_prev=prefix ;;
1215  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1216    prefix=$ac_optarg ;;
1217
1218  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1219  | --program-pre | --program-pr | --program-p)
1220    ac_prev=program_prefix ;;
1221  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1222  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1223    program_prefix=$ac_optarg ;;
1224
1225  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1226  | --program-suf | --program-su | --program-s)
1227    ac_prev=program_suffix ;;
1228  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1229  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1230    program_suffix=$ac_optarg ;;
1231
1232  -program-transform-name | --program-transform-name \
1233  | --program-transform-nam | --program-transform-na \
1234  | --program-transform-n | --program-transform- \
1235  | --program-transform | --program-transfor \
1236  | --program-transfo | --program-transf \
1237  | --program-trans | --program-tran \
1238  | --progr-tra | --program-tr | --program-t)
1239    ac_prev=program_transform_name ;;
1240  -program-transform-name=* | --program-transform-name=* \
1241  | --program-transform-nam=* | --program-transform-na=* \
1242  | --program-transform-n=* | --program-transform-=* \
1243  | --program-transform=* | --program-transfor=* \
1244  | --program-transfo=* | --program-transf=* \
1245  | --program-trans=* | --program-tran=* \
1246  | --progr-tra=* | --program-tr=* | --program-t=*)
1247    program_transform_name=$ac_optarg ;;
1248
1249  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1250    ac_prev=pdfdir ;;
1251  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1252    pdfdir=$ac_optarg ;;
1253
1254  -psdir | --psdir | --psdi | --psd | --ps)
1255    ac_prev=psdir ;;
1256  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1257    psdir=$ac_optarg ;;
1258
1259  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1260  | -silent | --silent | --silen | --sile | --sil)
1261    silent=yes ;;
1262
1263  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1264    ac_prev=sbindir ;;
1265  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1266  | --sbi=* | --sb=*)
1267    sbindir=$ac_optarg ;;
1268
1269  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1270  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1271  | --sharedst | --shareds | --shared | --share | --shar \
1272  | --sha | --sh)
1273    ac_prev=sharedstatedir ;;
1274  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1275  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1276  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1277  | --sha=* | --sh=*)
1278    sharedstatedir=$ac_optarg ;;
1279
1280  -site | --site | --sit)
1281    ac_prev=site ;;
1282  -site=* | --site=* | --sit=*)
1283    site=$ac_optarg ;;
1284
1285  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1286    ac_prev=srcdir ;;
1287  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1288    srcdir=$ac_optarg ;;
1289
1290  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1291  | --syscon | --sysco | --sysc | --sys | --sy)
1292    ac_prev=sysconfdir ;;
1293  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1294  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1295    sysconfdir=$ac_optarg ;;
1296
1297  -target | --target | --targe | --targ | --tar | --ta | --t)
1298    ac_prev=target_alias ;;
1299  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1300    target_alias=$ac_optarg ;;
1301
1302  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1303    verbose=yes ;;
1304
1305  -version | --version | --versio | --versi | --vers | -V)
1306    ac_init_version=: ;;
1307
1308  -with-* | --with-*)
1309    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1310    # Reject names that are not valid shell variable names.
1311    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1313   { (exit 1); exit 1; }; }
1314    ac_useropt_orig=$ac_useropt
1315    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316    case $ac_user_opts in
1317      *"
1318"with_$ac_useropt"
1319"*) ;;
1320      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1321	 ac_unrecognized_sep=', ';;
1322    esac
1323    eval with_$ac_useropt=\$ac_optarg ;;
1324
1325  -without-* | --without-*)
1326    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1327    # Reject names that are not valid shell variable names.
1328    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1330   { (exit 1); exit 1; }; }
1331    ac_useropt_orig=$ac_useropt
1332    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333    case $ac_user_opts in
1334      *"
1335"with_$ac_useropt"
1336"*) ;;
1337      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1338	 ac_unrecognized_sep=', ';;
1339    esac
1340    eval with_$ac_useropt=no ;;
1341
1342  --x)
1343    # Obsolete; use --with-x.
1344    with_x=yes ;;
1345
1346  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1347  | --x-incl | --x-inc | --x-in | --x-i)
1348    ac_prev=x_includes ;;
1349  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1350  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1351    x_includes=$ac_optarg ;;
1352
1353  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1354  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1355    ac_prev=x_libraries ;;
1356  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1357  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1358    x_libraries=$ac_optarg ;;
1359
1360  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1361Try \`$0 --help' for more information." >&2
1362   { (exit 1); exit 1; }; }
1363    ;;
1364
1365  *=*)
1366    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1367    # Reject names that are not valid shell variable names.
1368    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1369      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1370   { (exit 1); exit 1; }; }
1371    eval $ac_envvar=\$ac_optarg
1372    export $ac_envvar ;;
1373
1374  *)
1375    # FIXME: should be removed in autoconf 3.0.
1376    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1377    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1378      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1379    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1380    ;;
1381
1382  esac
1383done
1384
1385if test -n "$ac_prev"; then
1386  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1387  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1388   { (exit 1); exit 1; }; }
1389fi
1390
1391if test -n "$ac_unrecognized_opts"; then
1392  case $enable_option_checking in
1393    no) ;;
1394    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1395   { (exit 1); exit 1; }; } ;;
1396    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1397  esac
1398fi
1399
1400# Check all directory arguments for consistency.
1401for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1402		datadir sysconfdir sharedstatedir localstatedir includedir \
1403		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1404		libdir localedir mandir
1405do
1406  eval ac_val=\$$ac_var
1407  # Remove trailing slashes.
1408  case $ac_val in
1409    */ )
1410      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1411      eval $ac_var=\$ac_val;;
1412  esac
1413  # Be sure to have absolute directory names.
1414  case $ac_val in
1415    [\\/$]* | ?:[\\/]* )  continue;;
1416    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1417  esac
1418  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1419   { (exit 1); exit 1; }; }
1420done
1421
1422# There might be people who depend on the old broken behavior: `$host'
1423# used to hold the argument of --host etc.
1424# FIXME: To remove some day.
1425build=$build_alias
1426host=$host_alias
1427target=$target_alias
1428
1429# FIXME: To remove some day.
1430if test "x$host_alias" != x; then
1431  if test "x$build_alias" = x; then
1432    cross_compiling=maybe
1433    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1434    If a cross compiler is detected then cross compile mode will be used." >&2
1435  elif test "x$build_alias" != "x$host_alias"; then
1436    cross_compiling=yes
1437  fi
1438fi
1439
1440ac_tool_prefix=
1441test -n "$host_alias" && ac_tool_prefix=$host_alias-
1442
1443test "$silent" = yes && exec 6>/dev/null
1444
1445
1446ac_pwd=`pwd` && test -n "$ac_pwd" &&
1447ac_ls_di=`ls -di .` &&
1448ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1449  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1450   { (exit 1); exit 1; }; }
1451test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1452  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1453   { (exit 1); exit 1; }; }
1454
1455
1456# Find the source files, if location was not specified.
1457if test -z "$srcdir"; then
1458  ac_srcdir_defaulted=yes
1459  # Try the directory containing this script, then the parent directory.
1460  ac_confdir=`$as_dirname -- "$as_myself" ||
1461$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1462	 X"$as_myself" : 'X\(//\)[^/]' \| \
1463	 X"$as_myself" : 'X\(//\)$' \| \
1464	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1465$as_echo X"$as_myself" |
1466    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1467	    s//\1/
1468	    q
1469	  }
1470	  /^X\(\/\/\)[^/].*/{
1471	    s//\1/
1472	    q
1473	  }
1474	  /^X\(\/\/\)$/{
1475	    s//\1/
1476	    q
1477	  }
1478	  /^X\(\/\).*/{
1479	    s//\1/
1480	    q
1481	  }
1482	  s/.*/./; q'`
1483  srcdir=$ac_confdir
1484  if test ! -r "$srcdir/$ac_unique_file"; then
1485    srcdir=..
1486  fi
1487else
1488  ac_srcdir_defaulted=no
1489fi
1490if test ! -r "$srcdir/$ac_unique_file"; then
1491  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1492  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1493   { (exit 1); exit 1; }; }
1494fi
1495ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1496ac_abs_confdir=`(
1497	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1498   { (exit 1); exit 1; }; }
1499	pwd)`
1500# When building in place, set srcdir=.
1501if test "$ac_abs_confdir" = "$ac_pwd"; then
1502  srcdir=.
1503fi
1504# Remove unnecessary trailing slashes from srcdir.
1505# Double slashes in file names in object file debugging info
1506# mess up M-x gdb in Emacs.
1507case $srcdir in
1508*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1509esac
1510for ac_var in $ac_precious_vars; do
1511  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1512  eval ac_env_${ac_var}_value=\$${ac_var}
1513  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1514  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1515done
1516
1517#
1518# Report the --help message.
1519#
1520if test "$ac_init_help" = "long"; then
1521  # Omit some internal or obsolete options to make the list less imposing.
1522  # This message is too long to be a string in the A/UX 3.1 sh.
1523  cat <<_ACEOF
1524\`configure' configures xf86-video-i128 1.3.3 to adapt to many kinds of systems.
1525
1526Usage: $0 [OPTION]... [VAR=VALUE]...
1527
1528To assign environment variables (e.g., CC, CFLAGS...), specify them as
1529VAR=VALUE.  See below for descriptions of some of the useful variables.
1530
1531Defaults for the options are specified in brackets.
1532
1533Configuration:
1534  -h, --help              display this help and exit
1535      --help=short        display options specific to this package
1536      --help=recursive    display the short help of all the included packages
1537  -V, --version           display version information and exit
1538  -q, --quiet, --silent   do not print \`checking...' messages
1539      --cache-file=FILE   cache test results in FILE [disabled]
1540  -C, --config-cache      alias for \`--cache-file=config.cache'
1541  -n, --no-create         do not create output files
1542      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1543
1544Installation directories:
1545  --prefix=PREFIX         install architecture-independent files in PREFIX
1546                          [$ac_default_prefix]
1547  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1548                          [PREFIX]
1549
1550By default, \`make install' will install all the files in
1551\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1552an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1553for instance \`--prefix=\$HOME'.
1554
1555For better control, use the options below.
1556
1557Fine tuning of the installation directories:
1558  --bindir=DIR            user executables [EPREFIX/bin]
1559  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1560  --libexecdir=DIR        program executables [EPREFIX/libexec]
1561  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1562  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1563  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1564  --libdir=DIR            object code libraries [EPREFIX/lib]
1565  --includedir=DIR        C header files [PREFIX/include]
1566  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1567  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1568  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1569  --infodir=DIR           info documentation [DATAROOTDIR/info]
1570  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1571  --mandir=DIR            man documentation [DATAROOTDIR/man]
1572  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-i128]
1573  --htmldir=DIR           html documentation [DOCDIR]
1574  --dvidir=DIR            dvi documentation [DOCDIR]
1575  --pdfdir=DIR            pdf documentation [DOCDIR]
1576  --psdir=DIR             ps documentation [DOCDIR]
1577_ACEOF
1578
1579  cat <<\_ACEOF
1580
1581Program names:
1582  --program-prefix=PREFIX            prepend PREFIX to installed program names
1583  --program-suffix=SUFFIX            append SUFFIX to installed program names
1584  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1585
1586System types:
1587  --build=BUILD     configure for building on BUILD [guessed]
1588  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1589_ACEOF
1590fi
1591
1592if test -n "$ac_init_help"; then
1593  case $ac_init_help in
1594     short | recursive ) echo "Configuration of xf86-video-i128 1.3.3:";;
1595   esac
1596  cat <<\_ACEOF
1597
1598Optional Features:
1599  --disable-option-checking  ignore unrecognized --enable/--with options
1600  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1601  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1602  --enable-maintainer-mode  enable make rules and dependencies not useful
1603			  (and sometimes confusing) to the casual installer
1604  --enable-static[=PKGS]  build static libraries [default=no]
1605  --enable-shared[=PKGS]  build shared libraries [default=yes]
1606  --enable-fast-install[=PKGS]
1607                          optimize for fast installation [default=yes]
1608  --disable-dependency-tracking  speeds up one-time build
1609  --enable-dependency-tracking   do not reject slow dependency extractors
1610  --disable-libtool-lock  avoid locking (might break parallel builds)
1611
1612Optional Packages:
1613  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1614  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1615  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1616  --with-pic              try to use only PIC/non-PIC objects [default=use
1617                          both]
1618  --with-tags[=TAGS]      include additional configurations [automatic]
1619  --with-xorg-module-dir=DIR
1620                          Default xorg module directory
1621                          [default=$libdir/xorg/modules]
1622  --with-release-version=STRING
1623                          Use release version string in package name
1624
1625Some influential environment variables:
1626  CC          C compiler command
1627  CFLAGS      C compiler flags
1628  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1629              nonstandard directory <lib dir>
1630  LIBS        libraries to pass to the linker, e.g. -l<library>
1631  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1632              you have headers in a nonstandard directory <include dir>
1633  CPP         C preprocessor
1634  CXX         C++ compiler command
1635  CXXFLAGS    C++ compiler flags
1636  CXXCPP      C++ preprocessor
1637  F77         Fortran 77 compiler command
1638  FFLAGS      Fortran 77 compiler flags
1639  PKG_CONFIG  path to pkg-config utility
1640  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1641  XORG_LIBS   linker flags for XORG, overriding pkg-config
1642  PCIACCESS_CFLAGS
1643              C compiler flags for PCIACCESS, overriding pkg-config
1644  PCIACCESS_LIBS
1645              linker flags for PCIACCESS, overriding pkg-config
1646
1647Use these variables to override the choices made by `configure' or to help
1648it to find libraries and programs with nonstandard names/locations.
1649
1650Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1651_ACEOF
1652ac_status=$?
1653fi
1654
1655if test "$ac_init_help" = "recursive"; then
1656  # If there are subdirs, report their specific --help.
1657  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1658    test -d "$ac_dir" ||
1659      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1660      continue
1661    ac_builddir=.
1662
1663case "$ac_dir" in
1664.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1665*)
1666  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1667  # A ".." for each directory in $ac_dir_suffix.
1668  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1669  case $ac_top_builddir_sub in
1670  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1671  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1672  esac ;;
1673esac
1674ac_abs_top_builddir=$ac_pwd
1675ac_abs_builddir=$ac_pwd$ac_dir_suffix
1676# for backward compatibility:
1677ac_top_builddir=$ac_top_build_prefix
1678
1679case $srcdir in
1680  .)  # We are building in place.
1681    ac_srcdir=.
1682    ac_top_srcdir=$ac_top_builddir_sub
1683    ac_abs_top_srcdir=$ac_pwd ;;
1684  [\\/]* | ?:[\\/]* )  # Absolute name.
1685    ac_srcdir=$srcdir$ac_dir_suffix;
1686    ac_top_srcdir=$srcdir
1687    ac_abs_top_srcdir=$srcdir ;;
1688  *) # Relative name.
1689    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1690    ac_top_srcdir=$ac_top_build_prefix$srcdir
1691    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1692esac
1693ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1694
1695    cd "$ac_dir" || { ac_status=$?; continue; }
1696    # Check for guested configure.
1697    if test -f "$ac_srcdir/configure.gnu"; then
1698      echo &&
1699      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1700    elif test -f "$ac_srcdir/configure"; then
1701      echo &&
1702      $SHELL "$ac_srcdir/configure" --help=recursive
1703    else
1704      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1705    fi || ac_status=$?
1706    cd "$ac_pwd" || { ac_status=$?; break; }
1707  done
1708fi
1709
1710test -n "$ac_init_help" && exit $ac_status
1711if $ac_init_version; then
1712  cat <<\_ACEOF
1713xf86-video-i128 configure 1.3.3
1714generated by GNU Autoconf 2.63
1715
1716Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17172002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1718This configure script is free software; the Free Software Foundation
1719gives unlimited permission to copy, distribute and modify it.
1720_ACEOF
1721  exit
1722fi
1723cat >config.log <<_ACEOF
1724This file contains any messages produced by compilers while
1725running configure, to aid debugging if configure makes a mistake.
1726
1727It was created by xf86-video-i128 $as_me 1.3.3, which was
1728generated by GNU Autoconf 2.63.  Invocation command line was
1729
1730  $ $0 $@
1731
1732_ACEOF
1733exec 5>>config.log
1734{
1735cat <<_ASUNAME
1736## --------- ##
1737## Platform. ##
1738## --------- ##
1739
1740hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1741uname -m = `(uname -m) 2>/dev/null || echo unknown`
1742uname -r = `(uname -r) 2>/dev/null || echo unknown`
1743uname -s = `(uname -s) 2>/dev/null || echo unknown`
1744uname -v = `(uname -v) 2>/dev/null || echo unknown`
1745
1746/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1747/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1748
1749/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1750/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1751/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1752/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1753/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1754/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1755/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1756
1757_ASUNAME
1758
1759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760for as_dir in $PATH
1761do
1762  IFS=$as_save_IFS
1763  test -z "$as_dir" && as_dir=.
1764  $as_echo "PATH: $as_dir"
1765done
1766IFS=$as_save_IFS
1767
1768} >&5
1769
1770cat >&5 <<_ACEOF
1771
1772
1773## ----------- ##
1774## Core tests. ##
1775## ----------- ##
1776
1777_ACEOF
1778
1779
1780# Keep a trace of the command line.
1781# Strip out --no-create and --no-recursion so they do not pile up.
1782# Strip out --silent because we don't want to record it for future runs.
1783# Also quote any args containing shell meta-characters.
1784# Make two passes to allow for proper duplicate-argument suppression.
1785ac_configure_args=
1786ac_configure_args0=
1787ac_configure_args1=
1788ac_must_keep_next=false
1789for ac_pass in 1 2
1790do
1791  for ac_arg
1792  do
1793    case $ac_arg in
1794    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1795    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1796    | -silent | --silent | --silen | --sile | --sil)
1797      continue ;;
1798    *\'*)
1799      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1800    esac
1801    case $ac_pass in
1802    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1803    2)
1804      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1805      if test $ac_must_keep_next = true; then
1806	ac_must_keep_next=false # Got value, back to normal.
1807      else
1808	case $ac_arg in
1809	  *=* | --config-cache | -C | -disable-* | --disable-* \
1810	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1811	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1812	  | -with-* | --with-* | -without-* | --without-* | --x)
1813	    case "$ac_configure_args0 " in
1814	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1815	    esac
1816	    ;;
1817	  -* ) ac_must_keep_next=true ;;
1818	esac
1819      fi
1820      ac_configure_args="$ac_configure_args '$ac_arg'"
1821      ;;
1822    esac
1823  done
1824done
1825$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1826$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1827
1828# When interrupted or exit'd, cleanup temporary files, and complete
1829# config.log.  We remove comments because anyway the quotes in there
1830# would cause problems or look ugly.
1831# WARNING: Use '\'' to represent an apostrophe within the trap.
1832# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1833trap 'exit_status=$?
1834  # Save into config.log some information that might help in debugging.
1835  {
1836    echo
1837
1838    cat <<\_ASBOX
1839## ---------------- ##
1840## Cache variables. ##
1841## ---------------- ##
1842_ASBOX
1843    echo
1844    # The following way of writing the cache mishandles newlines in values,
1845(
1846  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1847    eval ac_val=\$$ac_var
1848    case $ac_val in #(
1849    *${as_nl}*)
1850      case $ac_var in #(
1851      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1852$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1853      esac
1854      case $ac_var in #(
1855      _ | IFS | as_nl) ;; #(
1856      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1857      *) $as_unset $ac_var ;;
1858      esac ;;
1859    esac
1860  done
1861  (set) 2>&1 |
1862    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1863    *${as_nl}ac_space=\ *)
1864      sed -n \
1865	"s/'\''/'\''\\\\'\'''\''/g;
1866	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1867      ;; #(
1868    *)
1869      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1870      ;;
1871    esac |
1872    sort
1873)
1874    echo
1875
1876    cat <<\_ASBOX
1877## ----------------- ##
1878## Output variables. ##
1879## ----------------- ##
1880_ASBOX
1881    echo
1882    for ac_var in $ac_subst_vars
1883    do
1884      eval ac_val=\$$ac_var
1885      case $ac_val in
1886      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1887      esac
1888      $as_echo "$ac_var='\''$ac_val'\''"
1889    done | sort
1890    echo
1891
1892    if test -n "$ac_subst_files"; then
1893      cat <<\_ASBOX
1894## ------------------- ##
1895## File substitutions. ##
1896## ------------------- ##
1897_ASBOX
1898      echo
1899      for ac_var in $ac_subst_files
1900      do
1901	eval ac_val=\$$ac_var
1902	case $ac_val in
1903	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1904	esac
1905	$as_echo "$ac_var='\''$ac_val'\''"
1906      done | sort
1907      echo
1908    fi
1909
1910    if test -s confdefs.h; then
1911      cat <<\_ASBOX
1912## ----------- ##
1913## confdefs.h. ##
1914## ----------- ##
1915_ASBOX
1916      echo
1917      cat confdefs.h
1918      echo
1919    fi
1920    test "$ac_signal" != 0 &&
1921      $as_echo "$as_me: caught signal $ac_signal"
1922    $as_echo "$as_me: exit $exit_status"
1923  } >&5
1924  rm -f core *.core core.conftest.* &&
1925    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1926    exit $exit_status
1927' 0
1928for ac_signal in 1 2 13 15; do
1929  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1930done
1931ac_signal=0
1932
1933# confdefs.h avoids OS command line length limits that DEFS can exceed.
1934rm -f -r conftest* confdefs.h
1935
1936# Predefined preprocessor variables.
1937
1938cat >>confdefs.h <<_ACEOF
1939#define PACKAGE_NAME "$PACKAGE_NAME"
1940_ACEOF
1941
1942
1943cat >>confdefs.h <<_ACEOF
1944#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1945_ACEOF
1946
1947
1948cat >>confdefs.h <<_ACEOF
1949#define PACKAGE_VERSION "$PACKAGE_VERSION"
1950_ACEOF
1951
1952
1953cat >>confdefs.h <<_ACEOF
1954#define PACKAGE_STRING "$PACKAGE_STRING"
1955_ACEOF
1956
1957
1958cat >>confdefs.h <<_ACEOF
1959#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1960_ACEOF
1961
1962
1963# Let the site file select an alternate cache file if it wants to.
1964# Prefer an explicitly selected file to automatically selected ones.
1965ac_site_file1=NONE
1966ac_site_file2=NONE
1967if test -n "$CONFIG_SITE"; then
1968  ac_site_file1=$CONFIG_SITE
1969elif test "x$prefix" != xNONE; then
1970  ac_site_file1=$prefix/share/config.site
1971  ac_site_file2=$prefix/etc/config.site
1972else
1973  ac_site_file1=$ac_default_prefix/share/config.site
1974  ac_site_file2=$ac_default_prefix/etc/config.site
1975fi
1976for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1977do
1978  test "x$ac_site_file" = xNONE && continue
1979  if test -r "$ac_site_file"; then
1980    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1981$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1982    sed 's/^/| /' "$ac_site_file" >&5
1983    . "$ac_site_file"
1984  fi
1985done
1986
1987if test -r "$cache_file"; then
1988  # Some versions of bash will fail to source /dev/null (special
1989  # files actually), so we avoid doing that.
1990  if test -f "$cache_file"; then
1991    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1992$as_echo "$as_me: loading cache $cache_file" >&6;}
1993    case $cache_file in
1994      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1995      *)                      . "./$cache_file";;
1996    esac
1997  fi
1998else
1999  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2000$as_echo "$as_me: creating cache $cache_file" >&6;}
2001  >$cache_file
2002fi
2003
2004# Check that the precious variables saved in the cache have kept the same
2005# value.
2006ac_cache_corrupted=false
2007for ac_var in $ac_precious_vars; do
2008  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2009  eval ac_new_set=\$ac_env_${ac_var}_set
2010  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2011  eval ac_new_val=\$ac_env_${ac_var}_value
2012  case $ac_old_set,$ac_new_set in
2013    set,)
2014      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2015$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2016      ac_cache_corrupted=: ;;
2017    ,set)
2018      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2019$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2020      ac_cache_corrupted=: ;;
2021    ,);;
2022    *)
2023      if test "x$ac_old_val" != "x$ac_new_val"; then
2024	# differences in whitespace do not lead to failure.
2025	ac_old_val_w=`echo x $ac_old_val`
2026	ac_new_val_w=`echo x $ac_new_val`
2027	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2028	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2029$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2030	  ac_cache_corrupted=:
2031	else
2032	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2033$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2034	  eval $ac_var=\$ac_old_val
2035	fi
2036	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2037$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2038	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2039$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2040      fi;;
2041  esac
2042  # Pass precious variables to config.status.
2043  if test "$ac_new_set" = set; then
2044    case $ac_new_val in
2045    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2046    *) ac_arg=$ac_var=$ac_new_val ;;
2047    esac
2048    case " $ac_configure_args " in
2049      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2050      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2051    esac
2052  fi
2053done
2054if $ac_cache_corrupted; then
2055  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2057  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2058$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2059  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2060$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2061   { (exit 1); exit 1; }; }
2062fi
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088ac_ext=c
2089ac_cpp='$CPP $CPPFLAGS'
2090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2092ac_compiler_gnu=$ac_cv_c_compiler_gnu
2093
2094
2095
2096
2097ac_config_headers="$ac_config_headers config.h"
2098
2099ac_aux_dir=
2100for ac_dir in . "$srcdir"/.; do
2101  if test -f "$ac_dir/install-sh"; then
2102    ac_aux_dir=$ac_dir
2103    ac_install_sh="$ac_aux_dir/install-sh -c"
2104    break
2105  elif test -f "$ac_dir/install.sh"; then
2106    ac_aux_dir=$ac_dir
2107    ac_install_sh="$ac_aux_dir/install.sh -c"
2108    break
2109  elif test -f "$ac_dir/shtool"; then
2110    ac_aux_dir=$ac_dir
2111    ac_install_sh="$ac_aux_dir/shtool install -c"
2112    break
2113  fi
2114done
2115if test -z "$ac_aux_dir"; then
2116  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2117$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2118   { (exit 1); exit 1; }; }
2119fi
2120
2121# These three variables are undocumented and unsupported,
2122# and are intended to be withdrawn in a future Autoconf release.
2123# They can cause serious problems if a builder's source tree is in a directory
2124# whose full name contains unusual characters.
2125ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2126ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2127ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2128
2129
2130
2131am__api_version='1.11'
2132
2133# Find a good install program.  We prefer a C program (faster),
2134# so one script is as good as another.  But avoid the broken or
2135# incompatible versions:
2136# SysV /etc/install, /usr/sbin/install
2137# SunOS /usr/etc/install
2138# IRIX /sbin/install
2139# AIX /bin/install
2140# AmigaOS /C/install, which installs bootblocks on floppy discs
2141# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2142# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2143# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2144# OS/2's system install, which has a completely different semantic
2145# ./install, which can be erroneously created by make from ./install.sh.
2146# Reject install programs that cannot install multiple files.
2147{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2148$as_echo_n "checking for a BSD-compatible install... " >&6; }
2149if test -z "$INSTALL"; then
2150if test "${ac_cv_path_install+set}" = set; then
2151  $as_echo_n "(cached) " >&6
2152else
2153  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154for as_dir in $PATH
2155do
2156  IFS=$as_save_IFS
2157  test -z "$as_dir" && as_dir=.
2158  # Account for people who put trailing slashes in PATH elements.
2159case $as_dir/ in
2160  ./ | .// | /cC/* | \
2161  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2162  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2163  /usr/ucb/* ) ;;
2164  *)
2165    # OSF1 and SCO ODT 3.0 have their own names for install.
2166    # Don't use installbsd from OSF since it installs stuff as root
2167    # by default.
2168    for ac_prog in ginstall scoinst install; do
2169      for ac_exec_ext in '' $ac_executable_extensions; do
2170	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2171	  if test $ac_prog = install &&
2172	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2173	    # AIX install.  It has an incompatible calling convention.
2174	    :
2175	  elif test $ac_prog = install &&
2176	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2177	    # program-specific install script used by HP pwplus--don't use.
2178	    :
2179	  else
2180	    rm -rf conftest.one conftest.two conftest.dir
2181	    echo one > conftest.one
2182	    echo two > conftest.two
2183	    mkdir conftest.dir
2184	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2185	      test -s conftest.one && test -s conftest.two &&
2186	      test -s conftest.dir/conftest.one &&
2187	      test -s conftest.dir/conftest.two
2188	    then
2189	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2190	      break 3
2191	    fi
2192	  fi
2193	fi
2194      done
2195    done
2196    ;;
2197esac
2198
2199done
2200IFS=$as_save_IFS
2201
2202rm -rf conftest.one conftest.two conftest.dir
2203
2204fi
2205  if test "${ac_cv_path_install+set}" = set; then
2206    INSTALL=$ac_cv_path_install
2207  else
2208    # As a last resort, use the slow shell script.  Don't cache a
2209    # value for INSTALL within a source directory, because that will
2210    # break other packages using the cache if that directory is
2211    # removed, or if the value is a relative name.
2212    INSTALL=$ac_install_sh
2213  fi
2214fi
2215{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2216$as_echo "$INSTALL" >&6; }
2217
2218# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2219# It thinks the first close brace ends the variable substitution.
2220test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2221
2222test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2223
2224test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2225
2226{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2227$as_echo_n "checking whether build environment is sane... " >&6; }
2228# Just in case
2229sleep 1
2230echo timestamp > conftest.file
2231# Reject unsafe characters in $srcdir or the absolute working directory
2232# name.  Accept space and tab only in the latter.
2233am_lf='
2234'
2235case `pwd` in
2236  *[\\\"\#\$\&\'\`$am_lf]*)
2237    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2238$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2239   { (exit 1); exit 1; }; };;
2240esac
2241case $srcdir in
2242  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2243    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2244$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2245   { (exit 1); exit 1; }; };;
2246esac
2247
2248# Do `set' in a subshell so we don't clobber the current shell's
2249# arguments.  Must try -L first in case configure is actually a
2250# symlink; some systems play weird games with the mod time of symlinks
2251# (eg FreeBSD returns the mod time of the symlink's containing
2252# directory).
2253if (
2254   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2255   if test "$*" = "X"; then
2256      # -L didn't work.
2257      set X `ls -t "$srcdir/configure" conftest.file`
2258   fi
2259   rm -f conftest.file
2260   if test "$*" != "X $srcdir/configure conftest.file" \
2261      && test "$*" != "X conftest.file $srcdir/configure"; then
2262
2263      # If neither matched, then we have a broken ls.  This can happen
2264      # if, for instance, CONFIG_SHELL is bash and it inherits a
2265      # broken ls alias from the environment.  This has actually
2266      # happened.  Such a system could not be considered "sane".
2267      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2268alias in your environment" >&5
2269$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2270alias in your environment" >&2;}
2271   { (exit 1); exit 1; }; }
2272   fi
2273
2274   test "$2" = conftest.file
2275   )
2276then
2277   # Ok.
2278   :
2279else
2280   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2281Check your system clock" >&5
2282$as_echo "$as_me: error: newly created file is older than distributed files!
2283Check your system clock" >&2;}
2284   { (exit 1); exit 1; }; }
2285fi
2286{ $as_echo "$as_me:$LINENO: result: yes" >&5
2287$as_echo "yes" >&6; }
2288test "$program_prefix" != NONE &&
2289  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2290# Use a double $ so make ignores it.
2291test "$program_suffix" != NONE &&
2292  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2293# Double any \ or $.
2294# By default was `s,x,x', remove it if useless.
2295ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2296program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2297
2298# expand $ac_aux_dir to an absolute path
2299am_aux_dir=`cd $ac_aux_dir && pwd`
2300
2301if test x"${MISSING+set}" != xset; then
2302  case $am_aux_dir in
2303  *\ * | *\	*)
2304    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2305  *)
2306    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2307  esac
2308fi
2309# Use eval to expand $SHELL
2310if eval "$MISSING --run true"; then
2311  am_missing_run="$MISSING --run "
2312else
2313  am_missing_run=
2314  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2315$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2316fi
2317
2318if test x"${install_sh}" != xset; then
2319  case $am_aux_dir in
2320  *\ * | *\	*)
2321    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2322  *)
2323    install_sh="\${SHELL} $am_aux_dir/install-sh"
2324  esac
2325fi
2326
2327# Installed binaries are usually stripped using `strip' when the user
2328# run `make install-strip'.  However `strip' might not be the right
2329# tool to use in cross-compilation environments, therefore Automake
2330# will honor the `STRIP' environment variable to overrule this program.
2331if test "$cross_compiling" != no; then
2332  if test -n "$ac_tool_prefix"; then
2333  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2334set dummy ${ac_tool_prefix}strip; ac_word=$2
2335{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2336$as_echo_n "checking for $ac_word... " >&6; }
2337if test "${ac_cv_prog_STRIP+set}" = set; then
2338  $as_echo_n "(cached) " >&6
2339else
2340  if test -n "$STRIP"; then
2341  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2342else
2343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344for as_dir in $PATH
2345do
2346  IFS=$as_save_IFS
2347  test -z "$as_dir" && as_dir=.
2348  for ac_exec_ext in '' $ac_executable_extensions; do
2349  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2351    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352    break 2
2353  fi
2354done
2355done
2356IFS=$as_save_IFS
2357
2358fi
2359fi
2360STRIP=$ac_cv_prog_STRIP
2361if test -n "$STRIP"; then
2362  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2363$as_echo "$STRIP" >&6; }
2364else
2365  { $as_echo "$as_me:$LINENO: result: no" >&5
2366$as_echo "no" >&6; }
2367fi
2368
2369
2370fi
2371if test -z "$ac_cv_prog_STRIP"; then
2372  ac_ct_STRIP=$STRIP
2373  # Extract the first word of "strip", so it can be a program name with args.
2374set dummy strip; ac_word=$2
2375{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2376$as_echo_n "checking for $ac_word... " >&6; }
2377if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2378  $as_echo_n "(cached) " >&6
2379else
2380  if test -n "$ac_ct_STRIP"; then
2381  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2382else
2383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384for as_dir in $PATH
2385do
2386  IFS=$as_save_IFS
2387  test -z "$as_dir" && as_dir=.
2388  for ac_exec_ext in '' $ac_executable_extensions; do
2389  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390    ac_cv_prog_ac_ct_STRIP="strip"
2391    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392    break 2
2393  fi
2394done
2395done
2396IFS=$as_save_IFS
2397
2398fi
2399fi
2400ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2401if test -n "$ac_ct_STRIP"; then
2402  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2403$as_echo "$ac_ct_STRIP" >&6; }
2404else
2405  { $as_echo "$as_me:$LINENO: result: no" >&5
2406$as_echo "no" >&6; }
2407fi
2408
2409  if test "x$ac_ct_STRIP" = x; then
2410    STRIP=":"
2411  else
2412    case $cross_compiling:$ac_tool_warned in
2413yes:)
2414{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2416ac_tool_warned=yes ;;
2417esac
2418    STRIP=$ac_ct_STRIP
2419  fi
2420else
2421  STRIP="$ac_cv_prog_STRIP"
2422fi
2423
2424fi
2425INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2426
2427{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2428$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2429if test -z "$MKDIR_P"; then
2430  if test "${ac_cv_path_mkdir+set}" = set; then
2431  $as_echo_n "(cached) " >&6
2432else
2433  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2435do
2436  IFS=$as_save_IFS
2437  test -z "$as_dir" && as_dir=.
2438  for ac_prog in mkdir gmkdir; do
2439	 for ac_exec_ext in '' $ac_executable_extensions; do
2440	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2441	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2442	     'mkdir (GNU coreutils) '* | \
2443	     'mkdir (coreutils) '* | \
2444	     'mkdir (fileutils) '4.1*)
2445	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2446	       break 3;;
2447	   esac
2448	 done
2449       done
2450done
2451IFS=$as_save_IFS
2452
2453fi
2454
2455  if test "${ac_cv_path_mkdir+set}" = set; then
2456    MKDIR_P="$ac_cv_path_mkdir -p"
2457  else
2458    # As a last resort, use the slow shell script.  Don't cache a
2459    # value for MKDIR_P within a source directory, because that will
2460    # break other packages using the cache if that directory is
2461    # removed, or if the value is a relative name.
2462    test -d ./--version && rmdir ./--version
2463    MKDIR_P="$ac_install_sh -d"
2464  fi
2465fi
2466{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2467$as_echo "$MKDIR_P" >&6; }
2468
2469mkdir_p="$MKDIR_P"
2470case $mkdir_p in
2471  [\\/$]* | ?:[\\/]*) ;;
2472  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2473esac
2474
2475for ac_prog in gawk mawk nawk awk
2476do
2477  # Extract the first word of "$ac_prog", so it can be a program name with args.
2478set dummy $ac_prog; ac_word=$2
2479{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2480$as_echo_n "checking for $ac_word... " >&6; }
2481if test "${ac_cv_prog_AWK+set}" = set; then
2482  $as_echo_n "(cached) " >&6
2483else
2484  if test -n "$AWK"; then
2485  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2486else
2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490  IFS=$as_save_IFS
2491  test -z "$as_dir" && as_dir=.
2492  for ac_exec_ext in '' $ac_executable_extensions; do
2493  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494    ac_cv_prog_AWK="$ac_prog"
2495    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496    break 2
2497  fi
2498done
2499done
2500IFS=$as_save_IFS
2501
2502fi
2503fi
2504AWK=$ac_cv_prog_AWK
2505if test -n "$AWK"; then
2506  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2507$as_echo "$AWK" >&6; }
2508else
2509  { $as_echo "$as_me:$LINENO: result: no" >&5
2510$as_echo "no" >&6; }
2511fi
2512
2513
2514  test -n "$AWK" && break
2515done
2516
2517{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2518$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2519set x ${MAKE-make}
2520ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2521if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2522  $as_echo_n "(cached) " >&6
2523else
2524  cat >conftest.make <<\_ACEOF
2525SHELL = /bin/sh
2526all:
2527	@echo '@@@%%%=$(MAKE)=@@@%%%'
2528_ACEOF
2529# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2530case `${MAKE-make} -f conftest.make 2>/dev/null` in
2531  *@@@%%%=?*=@@@%%%*)
2532    eval ac_cv_prog_make_${ac_make}_set=yes;;
2533  *)
2534    eval ac_cv_prog_make_${ac_make}_set=no;;
2535esac
2536rm -f conftest.make
2537fi
2538if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2539  { $as_echo "$as_me:$LINENO: result: yes" >&5
2540$as_echo "yes" >&6; }
2541  SET_MAKE=
2542else
2543  { $as_echo "$as_me:$LINENO: result: no" >&5
2544$as_echo "no" >&6; }
2545  SET_MAKE="MAKE=${MAKE-make}"
2546fi
2547
2548rm -rf .tst 2>/dev/null
2549mkdir .tst 2>/dev/null
2550if test -d .tst; then
2551  am__leading_dot=.
2552else
2553  am__leading_dot=_
2554fi
2555rmdir .tst 2>/dev/null
2556
2557if test "`cd $srcdir && pwd`" != "`pwd`"; then
2558  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2559  # is not polluted with repeated "-I."
2560  am__isrc=' -I$(srcdir)'
2561  # test to see if srcdir already configured
2562  if test -f $srcdir/config.status; then
2563    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2564$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2565   { (exit 1); exit 1; }; }
2566  fi
2567fi
2568
2569# test whether we have cygpath
2570if test -z "$CYGPATH_W"; then
2571  if (cygpath --version) >/dev/null 2>/dev/null; then
2572    CYGPATH_W='cygpath -w'
2573  else
2574    CYGPATH_W=echo
2575  fi
2576fi
2577
2578
2579# Define the identity of the package.
2580 PACKAGE='xf86-video-i128'
2581 VERSION='1.3.3'
2582
2583
2584cat >>confdefs.h <<_ACEOF
2585#define PACKAGE "$PACKAGE"
2586_ACEOF
2587
2588
2589cat >>confdefs.h <<_ACEOF
2590#define VERSION "$VERSION"
2591_ACEOF
2592
2593# Some tools Automake needs.
2594
2595ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2596
2597
2598AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2599
2600
2601AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2602
2603
2604AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2605
2606
2607MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2608
2609# We need awk for the "check" target.  The system "awk" is bad on
2610# some platforms.
2611# Always define AMTAR for backward compatibility.
2612
2613AMTAR=${AMTAR-"${am_missing_run}tar"}
2614
2615am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2616
2617
2618
2619
2620
2621
2622
2623{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2624$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2625    # Check whether --enable-maintainer-mode was given.
2626if test "${enable_maintainer_mode+set}" = set; then
2627  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2628else
2629  USE_MAINTAINER_MODE=no
2630fi
2631
2632  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2633$as_echo "$USE_MAINTAINER_MODE" >&6; }
2634   if test $USE_MAINTAINER_MODE = yes; then
2635  MAINTAINER_MODE_TRUE=
2636  MAINTAINER_MODE_FALSE='#'
2637else
2638  MAINTAINER_MODE_TRUE='#'
2639  MAINTAINER_MODE_FALSE=
2640fi
2641
2642  MAINT=$MAINTAINER_MODE_TRUE
2643
2644
2645
2646# Checks for programs.
2647# Check whether --enable-static was given.
2648if test "${enable_static+set}" = set; then
2649  enableval=$enable_static; p=${PACKAGE-default}
2650    case $enableval in
2651    yes) enable_static=yes ;;
2652    no) enable_static=no ;;
2653    *)
2654     enable_static=no
2655      # Look at the argument we got.  We use all the common list separators.
2656      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2657      for pkg in $enableval; do
2658	IFS="$lt_save_ifs"
2659	if test "X$pkg" = "X$p"; then
2660	  enable_static=yes
2661	fi
2662      done
2663      IFS="$lt_save_ifs"
2664      ;;
2665    esac
2666else
2667  enable_static=no
2668fi
2669
2670
2671
2672# Check whether --enable-shared was given.
2673if test "${enable_shared+set}" = set; then
2674  enableval=$enable_shared; p=${PACKAGE-default}
2675    case $enableval in
2676    yes) enable_shared=yes ;;
2677    no) enable_shared=no ;;
2678    *)
2679      enable_shared=no
2680      # Look at the argument we got.  We use all the common list separators.
2681      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2682      for pkg in $enableval; do
2683	IFS="$lt_save_ifs"
2684	if test "X$pkg" = "X$p"; then
2685	  enable_shared=yes
2686	fi
2687      done
2688      IFS="$lt_save_ifs"
2689      ;;
2690    esac
2691else
2692  enable_shared=yes
2693fi
2694
2695
2696# Check whether --enable-fast-install was given.
2697if test "${enable_fast_install+set}" = set; then
2698  enableval=$enable_fast_install; p=${PACKAGE-default}
2699    case $enableval in
2700    yes) enable_fast_install=yes ;;
2701    no) enable_fast_install=no ;;
2702    *)
2703      enable_fast_install=no
2704      # Look at the argument we got.  We use all the common list separators.
2705      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2706      for pkg in $enableval; do
2707	IFS="$lt_save_ifs"
2708	if test "X$pkg" = "X$p"; then
2709	  enable_fast_install=yes
2710	fi
2711      done
2712      IFS="$lt_save_ifs"
2713      ;;
2714    esac
2715else
2716  enable_fast_install=yes
2717fi
2718
2719
2720# Make sure we can run config.sub.
2721$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2722  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2723$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2724   { (exit 1); exit 1; }; }
2725
2726{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2727$as_echo_n "checking build system type... " >&6; }
2728if test "${ac_cv_build+set}" = set; then
2729  $as_echo_n "(cached) " >&6
2730else
2731  ac_build_alias=$build_alias
2732test "x$ac_build_alias" = x &&
2733  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2734test "x$ac_build_alias" = x &&
2735  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2736$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2737   { (exit 1); exit 1; }; }
2738ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2739  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2740$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2741   { (exit 1); exit 1; }; }
2742
2743fi
2744{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2745$as_echo "$ac_cv_build" >&6; }
2746case $ac_cv_build in
2747*-*-*) ;;
2748*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2749$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2750   { (exit 1); exit 1; }; };;
2751esac
2752build=$ac_cv_build
2753ac_save_IFS=$IFS; IFS='-'
2754set x $ac_cv_build
2755shift
2756build_cpu=$1
2757build_vendor=$2
2758shift; shift
2759# Remember, the first character of IFS is used to create $*,
2760# except with old shells:
2761build_os=$*
2762IFS=$ac_save_IFS
2763case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2764
2765
2766{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2767$as_echo_n "checking host system type... " >&6; }
2768if test "${ac_cv_host+set}" = set; then
2769  $as_echo_n "(cached) " >&6
2770else
2771  if test "x$host_alias" = x; then
2772  ac_cv_host=$ac_cv_build
2773else
2774  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2775    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2776$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2777   { (exit 1); exit 1; }; }
2778fi
2779
2780fi
2781{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2782$as_echo "$ac_cv_host" >&6; }
2783case $ac_cv_host in
2784*-*-*) ;;
2785*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2786$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2787   { (exit 1); exit 1; }; };;
2788esac
2789host=$ac_cv_host
2790ac_save_IFS=$IFS; IFS='-'
2791set x $ac_cv_host
2792shift
2793host_cpu=$1
2794host_vendor=$2
2795shift; shift
2796# Remember, the first character of IFS is used to create $*,
2797# except with old shells:
2798host_os=$*
2799IFS=$ac_save_IFS
2800case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2801
2802
2803DEPDIR="${am__leading_dot}deps"
2804
2805ac_config_commands="$ac_config_commands depfiles"
2806
2807
2808am_make=${MAKE-make}
2809cat > confinc << 'END'
2810am__doit:
2811	@echo this is the am__doit target
2812.PHONY: am__doit
2813END
2814# If we don't find an include directive, just comment out the code.
2815{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2816$as_echo_n "checking for style of include used by $am_make... " >&6; }
2817am__include="#"
2818am__quote=
2819_am_result=none
2820# First try GNU make style include.
2821echo "include confinc" > confmf
2822# Ignore all kinds of additional output from `make'.
2823case `$am_make -s -f confmf 2> /dev/null` in #(
2824*the\ am__doit\ target*)
2825  am__include=include
2826  am__quote=
2827  _am_result=GNU
2828  ;;
2829esac
2830# Now try BSD make style include.
2831if test "$am__include" = "#"; then
2832   echo '.include "confinc"' > confmf
2833   case `$am_make -s -f confmf 2> /dev/null` in #(
2834   *the\ am__doit\ target*)
2835     am__include=.include
2836     am__quote="\""
2837     _am_result=BSD
2838     ;;
2839   esac
2840fi
2841
2842
2843{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2844$as_echo "$_am_result" >&6; }
2845rm -f confinc confmf
2846
2847# Check whether --enable-dependency-tracking was given.
2848if test "${enable_dependency_tracking+set}" = set; then
2849  enableval=$enable_dependency_tracking;
2850fi
2851
2852if test "x$enable_dependency_tracking" != xno; then
2853  am_depcomp="$ac_aux_dir/depcomp"
2854  AMDEPBACKSLASH='\'
2855fi
2856 if test "x$enable_dependency_tracking" != xno; then
2857  AMDEP_TRUE=
2858  AMDEP_FALSE='#'
2859else
2860  AMDEP_TRUE='#'
2861  AMDEP_FALSE=
2862fi
2863
2864
2865ac_ext=c
2866ac_cpp='$CPP $CPPFLAGS'
2867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870if test -n "$ac_tool_prefix"; then
2871  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2872set dummy ${ac_tool_prefix}gcc; ac_word=$2
2873{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2874$as_echo_n "checking for $ac_word... " >&6; }
2875if test "${ac_cv_prog_CC+set}" = set; then
2876  $as_echo_n "(cached) " >&6
2877else
2878  if test -n "$CC"; then
2879  ac_cv_prog_CC="$CC" # Let the user override the test.
2880else
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884  IFS=$as_save_IFS
2885  test -z "$as_dir" && as_dir=.
2886  for ac_exec_ext in '' $ac_executable_extensions; do
2887  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2889    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890    break 2
2891  fi
2892done
2893done
2894IFS=$as_save_IFS
2895
2896fi
2897fi
2898CC=$ac_cv_prog_CC
2899if test -n "$CC"; then
2900  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2901$as_echo "$CC" >&6; }
2902else
2903  { $as_echo "$as_me:$LINENO: result: no" >&5
2904$as_echo "no" >&6; }
2905fi
2906
2907
2908fi
2909if test -z "$ac_cv_prog_CC"; then
2910  ac_ct_CC=$CC
2911  # Extract the first word of "gcc", so it can be a program name with args.
2912set dummy gcc; ac_word=$2
2913{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2914$as_echo_n "checking for $ac_word... " >&6; }
2915if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2916  $as_echo_n "(cached) " >&6
2917else
2918  if test -n "$ac_ct_CC"; then
2919  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2920else
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924  IFS=$as_save_IFS
2925  test -z "$as_dir" && as_dir=.
2926  for ac_exec_ext in '' $ac_executable_extensions; do
2927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928    ac_cv_prog_ac_ct_CC="gcc"
2929    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930    break 2
2931  fi
2932done
2933done
2934IFS=$as_save_IFS
2935
2936fi
2937fi
2938ac_ct_CC=$ac_cv_prog_ac_ct_CC
2939if test -n "$ac_ct_CC"; then
2940  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2941$as_echo "$ac_ct_CC" >&6; }
2942else
2943  { $as_echo "$as_me:$LINENO: result: no" >&5
2944$as_echo "no" >&6; }
2945fi
2946
2947  if test "x$ac_ct_CC" = x; then
2948    CC=""
2949  else
2950    case $cross_compiling:$ac_tool_warned in
2951yes:)
2952{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2954ac_tool_warned=yes ;;
2955esac
2956    CC=$ac_ct_CC
2957  fi
2958else
2959  CC="$ac_cv_prog_CC"
2960fi
2961
2962if test -z "$CC"; then
2963          if test -n "$ac_tool_prefix"; then
2964    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2965set dummy ${ac_tool_prefix}cc; ac_word=$2
2966{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2967$as_echo_n "checking for $ac_word... " >&6; }
2968if test "${ac_cv_prog_CC+set}" = set; then
2969  $as_echo_n "(cached) " >&6
2970else
2971  if test -n "$CC"; then
2972  ac_cv_prog_CC="$CC" # Let the user override the test.
2973else
2974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975for as_dir in $PATH
2976do
2977  IFS=$as_save_IFS
2978  test -z "$as_dir" && as_dir=.
2979  for ac_exec_ext in '' $ac_executable_extensions; do
2980  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981    ac_cv_prog_CC="${ac_tool_prefix}cc"
2982    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983    break 2
2984  fi
2985done
2986done
2987IFS=$as_save_IFS
2988
2989fi
2990fi
2991CC=$ac_cv_prog_CC
2992if test -n "$CC"; then
2993  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2994$as_echo "$CC" >&6; }
2995else
2996  { $as_echo "$as_me:$LINENO: result: no" >&5
2997$as_echo "no" >&6; }
2998fi
2999
3000
3001  fi
3002fi
3003if test -z "$CC"; then
3004  # Extract the first word of "cc", so it can be a program name with args.
3005set dummy cc; ac_word=$2
3006{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3007$as_echo_n "checking for $ac_word... " >&6; }
3008if test "${ac_cv_prog_CC+set}" = set; then
3009  $as_echo_n "(cached) " >&6
3010else
3011  if test -n "$CC"; then
3012  ac_cv_prog_CC="$CC" # Let the user override the test.
3013else
3014  ac_prog_rejected=no
3015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016for as_dir in $PATH
3017do
3018  IFS=$as_save_IFS
3019  test -z "$as_dir" && as_dir=.
3020  for ac_exec_ext in '' $ac_executable_extensions; do
3021  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3023       ac_prog_rejected=yes
3024       continue
3025     fi
3026    ac_cv_prog_CC="cc"
3027    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3028    break 2
3029  fi
3030done
3031done
3032IFS=$as_save_IFS
3033
3034if test $ac_prog_rejected = yes; then
3035  # We found a bogon in the path, so make sure we never use it.
3036  set dummy $ac_cv_prog_CC
3037  shift
3038  if test $# != 0; then
3039    # We chose a different compiler from the bogus one.
3040    # However, it has the same basename, so the bogon will be chosen
3041    # first if we set CC to just the basename; use the full file name.
3042    shift
3043    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3044  fi
3045fi
3046fi
3047fi
3048CC=$ac_cv_prog_CC
3049if test -n "$CC"; then
3050  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3051$as_echo "$CC" >&6; }
3052else
3053  { $as_echo "$as_me:$LINENO: result: no" >&5
3054$as_echo "no" >&6; }
3055fi
3056
3057
3058fi
3059if test -z "$CC"; then
3060  if test -n "$ac_tool_prefix"; then
3061  for ac_prog in cl.exe
3062  do
3063    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3064set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3065{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3066$as_echo_n "checking for $ac_word... " >&6; }
3067if test "${ac_cv_prog_CC+set}" = set; then
3068  $as_echo_n "(cached) " >&6
3069else
3070  if test -n "$CC"; then
3071  ac_cv_prog_CC="$CC" # Let the user override the test.
3072else
3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076  IFS=$as_save_IFS
3077  test -z "$as_dir" && as_dir=.
3078  for ac_exec_ext in '' $ac_executable_extensions; do
3079  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3081    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082    break 2
3083  fi
3084done
3085done
3086IFS=$as_save_IFS
3087
3088fi
3089fi
3090CC=$ac_cv_prog_CC
3091if test -n "$CC"; then
3092  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3093$as_echo "$CC" >&6; }
3094else
3095  { $as_echo "$as_me:$LINENO: result: no" >&5
3096$as_echo "no" >&6; }
3097fi
3098
3099
3100    test -n "$CC" && break
3101  done
3102fi
3103if test -z "$CC"; then
3104  ac_ct_CC=$CC
3105  for ac_prog in cl.exe
3106do
3107  # Extract the first word of "$ac_prog", so it can be a program name with args.
3108set dummy $ac_prog; ac_word=$2
3109{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3110$as_echo_n "checking for $ac_word... " >&6; }
3111if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3112  $as_echo_n "(cached) " >&6
3113else
3114  if test -n "$ac_ct_CC"; then
3115  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3116else
3117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118for as_dir in $PATH
3119do
3120  IFS=$as_save_IFS
3121  test -z "$as_dir" && as_dir=.
3122  for ac_exec_ext in '' $ac_executable_extensions; do
3123  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124    ac_cv_prog_ac_ct_CC="$ac_prog"
3125    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126    break 2
3127  fi
3128done
3129done
3130IFS=$as_save_IFS
3131
3132fi
3133fi
3134ac_ct_CC=$ac_cv_prog_ac_ct_CC
3135if test -n "$ac_ct_CC"; then
3136  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3137$as_echo "$ac_ct_CC" >&6; }
3138else
3139  { $as_echo "$as_me:$LINENO: result: no" >&5
3140$as_echo "no" >&6; }
3141fi
3142
3143
3144  test -n "$ac_ct_CC" && break
3145done
3146
3147  if test "x$ac_ct_CC" = x; then
3148    CC=""
3149  else
3150    case $cross_compiling:$ac_tool_warned in
3151yes:)
3152{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154ac_tool_warned=yes ;;
3155esac
3156    CC=$ac_ct_CC
3157  fi
3158fi
3159
3160fi
3161
3162
3163test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3166See \`config.log' for more details." >&5
3167$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3168See \`config.log' for more details." >&2;}
3169   { (exit 1); exit 1; }; }; }
3170
3171# Provide some information about the compiler.
3172$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3173set X $ac_compile
3174ac_compiler=$2
3175{ (ac_try="$ac_compiler --version >&5"
3176case "(($ac_try" in
3177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178  *) ac_try_echo=$ac_try;;
3179esac
3180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3181$as_echo "$ac_try_echo") >&5
3182  (eval "$ac_compiler --version >&5") 2>&5
3183  ac_status=$?
3184  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185  (exit $ac_status); }
3186{ (ac_try="$ac_compiler -v >&5"
3187case "(($ac_try" in
3188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189  *) ac_try_echo=$ac_try;;
3190esac
3191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3192$as_echo "$ac_try_echo") >&5
3193  (eval "$ac_compiler -v >&5") 2>&5
3194  ac_status=$?
3195  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196  (exit $ac_status); }
3197{ (ac_try="$ac_compiler -V >&5"
3198case "(($ac_try" in
3199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200  *) ac_try_echo=$ac_try;;
3201esac
3202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3203$as_echo "$ac_try_echo") >&5
3204  (eval "$ac_compiler -V >&5") 2>&5
3205  ac_status=$?
3206  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207  (exit $ac_status); }
3208
3209cat >conftest.$ac_ext <<_ACEOF
3210/* confdefs.h.  */
3211_ACEOF
3212cat confdefs.h >>conftest.$ac_ext
3213cat >>conftest.$ac_ext <<_ACEOF
3214/* end confdefs.h.  */
3215
3216int
3217main ()
3218{
3219
3220  ;
3221  return 0;
3222}
3223_ACEOF
3224ac_clean_files_save=$ac_clean_files
3225ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3226# Try to create an executable without -o first, disregard a.out.
3227# It will help us diagnose broken compilers, and finding out an intuition
3228# of exeext.
3229{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3230$as_echo_n "checking for C compiler default output file name... " >&6; }
3231ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3232
3233# The possible output files:
3234ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3235
3236ac_rmfiles=
3237for ac_file in $ac_files
3238do
3239  case $ac_file in
3240    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3241    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3242  esac
3243done
3244rm -f $ac_rmfiles
3245
3246if { (ac_try="$ac_link_default"
3247case "(($ac_try" in
3248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249  *) ac_try_echo=$ac_try;;
3250esac
3251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3252$as_echo "$ac_try_echo") >&5
3253  (eval "$ac_link_default") 2>&5
3254  ac_status=$?
3255  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256  (exit $ac_status); }; then
3257  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3258# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3259# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3260# so that the user can short-circuit this test for compilers unknown to
3261# Autoconf.
3262for ac_file in $ac_files ''
3263do
3264  test -f "$ac_file" || continue
3265  case $ac_file in
3266    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3267	;;
3268    [ab].out )
3269	# We found the default executable, but exeext='' is most
3270	# certainly right.
3271	break;;
3272    *.* )
3273        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3274	then :; else
3275	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3276	fi
3277	# We set ac_cv_exeext here because the later test for it is not
3278	# safe: cross compilers may not add the suffix if given an `-o'
3279	# argument, so we may need to know it at that point already.
3280	# Even if this section looks crufty: it has the advantage of
3281	# actually working.
3282	break;;
3283    * )
3284	break;;
3285  esac
3286done
3287test "$ac_cv_exeext" = no && ac_cv_exeext=
3288
3289else
3290  ac_file=''
3291fi
3292
3293{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3294$as_echo "$ac_file" >&6; }
3295if test -z "$ac_file"; then
3296  $as_echo "$as_me: failed program was:" >&5
3297sed 's/^/| /' conftest.$ac_ext >&5
3298
3299{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3302See \`config.log' for more details." >&5
3303$as_echo "$as_me: error: C compiler cannot create executables
3304See \`config.log' for more details." >&2;}
3305   { (exit 77); exit 77; }; }; }
3306fi
3307
3308ac_exeext=$ac_cv_exeext
3309
3310# Check that the compiler produces executables we can run.  If not, either
3311# the compiler is broken, or we cross compile.
3312{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3313$as_echo_n "checking whether the C compiler works... " >&6; }
3314# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3315# If not cross compiling, check that we can run a simple program.
3316if test "$cross_compiling" != yes; then
3317  if { ac_try='./$ac_file'
3318  { (case "(($ac_try" in
3319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320  *) ac_try_echo=$ac_try;;
3321esac
3322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3323$as_echo "$ac_try_echo") >&5
3324  (eval "$ac_try") 2>&5
3325  ac_status=$?
3326  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327  (exit $ac_status); }; }; then
3328    cross_compiling=no
3329  else
3330    if test "$cross_compiling" = maybe; then
3331	cross_compiling=yes
3332    else
3333	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3336If you meant to cross compile, use \`--host'.
3337See \`config.log' for more details." >&5
3338$as_echo "$as_me: error: cannot run C compiled programs.
3339If you meant to cross compile, use \`--host'.
3340See \`config.log' for more details." >&2;}
3341   { (exit 1); exit 1; }; }; }
3342    fi
3343  fi
3344fi
3345{ $as_echo "$as_me:$LINENO: result: yes" >&5
3346$as_echo "yes" >&6; }
3347
3348rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3349ac_clean_files=$ac_clean_files_save
3350# Check that the compiler produces executables we can run.  If not, either
3351# the compiler is broken, or we cross compile.
3352{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3353$as_echo_n "checking whether we are cross compiling... " >&6; }
3354{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3355$as_echo "$cross_compiling" >&6; }
3356
3357{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3358$as_echo_n "checking for suffix of executables... " >&6; }
3359if { (ac_try="$ac_link"
3360case "(($ac_try" in
3361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362  *) ac_try_echo=$ac_try;;
3363esac
3364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3365$as_echo "$ac_try_echo") >&5
3366  (eval "$ac_link") 2>&5
3367  ac_status=$?
3368  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369  (exit $ac_status); }; then
3370  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3371# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3372# work properly (i.e., refer to `conftest.exe'), while it won't with
3373# `rm'.
3374for ac_file in conftest.exe conftest conftest.*; do
3375  test -f "$ac_file" || continue
3376  case $ac_file in
3377    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3378    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3379	  break;;
3380    * ) break;;
3381  esac
3382done
3383else
3384  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3387See \`config.log' for more details." >&5
3388$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3389See \`config.log' for more details." >&2;}
3390   { (exit 1); exit 1; }; }; }
3391fi
3392
3393rm -f conftest$ac_cv_exeext
3394{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3395$as_echo "$ac_cv_exeext" >&6; }
3396
3397rm -f conftest.$ac_ext
3398EXEEXT=$ac_cv_exeext
3399ac_exeext=$EXEEXT
3400{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3401$as_echo_n "checking for suffix of object files... " >&6; }
3402if test "${ac_cv_objext+set}" = set; then
3403  $as_echo_n "(cached) " >&6
3404else
3405  cat >conftest.$ac_ext <<_ACEOF
3406/* confdefs.h.  */
3407_ACEOF
3408cat confdefs.h >>conftest.$ac_ext
3409cat >>conftest.$ac_ext <<_ACEOF
3410/* end confdefs.h.  */
3411
3412int
3413main ()
3414{
3415
3416  ;
3417  return 0;
3418}
3419_ACEOF
3420rm -f conftest.o conftest.obj
3421if { (ac_try="$ac_compile"
3422case "(($ac_try" in
3423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424  *) ac_try_echo=$ac_try;;
3425esac
3426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3427$as_echo "$ac_try_echo") >&5
3428  (eval "$ac_compile") 2>&5
3429  ac_status=$?
3430  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431  (exit $ac_status); }; then
3432  for ac_file in conftest.o conftest.obj conftest.*; do
3433  test -f "$ac_file" || continue;
3434  case $ac_file in
3435    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3436    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3437       break;;
3438  esac
3439done
3440else
3441  $as_echo "$as_me: failed program was:" >&5
3442sed 's/^/| /' conftest.$ac_ext >&5
3443
3444{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3447See \`config.log' for more details." >&5
3448$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3449See \`config.log' for more details." >&2;}
3450   { (exit 1); exit 1; }; }; }
3451fi
3452
3453rm -f conftest.$ac_cv_objext conftest.$ac_ext
3454fi
3455{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3456$as_echo "$ac_cv_objext" >&6; }
3457OBJEXT=$ac_cv_objext
3458ac_objext=$OBJEXT
3459{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3460$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3461if test "${ac_cv_c_compiler_gnu+set}" = set; then
3462  $as_echo_n "(cached) " >&6
3463else
3464  cat >conftest.$ac_ext <<_ACEOF
3465/* confdefs.h.  */
3466_ACEOF
3467cat confdefs.h >>conftest.$ac_ext
3468cat >>conftest.$ac_ext <<_ACEOF
3469/* end confdefs.h.  */
3470
3471int
3472main ()
3473{
3474#ifndef __GNUC__
3475       choke me
3476#endif
3477
3478  ;
3479  return 0;
3480}
3481_ACEOF
3482rm -f conftest.$ac_objext
3483if { (ac_try="$ac_compile"
3484case "(($ac_try" in
3485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486  *) ac_try_echo=$ac_try;;
3487esac
3488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3489$as_echo "$ac_try_echo") >&5
3490  (eval "$ac_compile") 2>conftest.er1
3491  ac_status=$?
3492  grep -v '^ *+' conftest.er1 >conftest.err
3493  rm -f conftest.er1
3494  cat conftest.err >&5
3495  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496  (exit $ac_status); } && {
3497	 test -z "$ac_c_werror_flag" ||
3498	 test ! -s conftest.err
3499       } && test -s conftest.$ac_objext; then
3500  ac_compiler_gnu=yes
3501else
3502  $as_echo "$as_me: failed program was:" >&5
3503sed 's/^/| /' conftest.$ac_ext >&5
3504
3505	ac_compiler_gnu=no
3506fi
3507
3508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509ac_cv_c_compiler_gnu=$ac_compiler_gnu
3510
3511fi
3512{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3513$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3514if test $ac_compiler_gnu = yes; then
3515  GCC=yes
3516else
3517  GCC=
3518fi
3519ac_test_CFLAGS=${CFLAGS+set}
3520ac_save_CFLAGS=$CFLAGS
3521{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3522$as_echo_n "checking whether $CC accepts -g... " >&6; }
3523if test "${ac_cv_prog_cc_g+set}" = set; then
3524  $as_echo_n "(cached) " >&6
3525else
3526  ac_save_c_werror_flag=$ac_c_werror_flag
3527   ac_c_werror_flag=yes
3528   ac_cv_prog_cc_g=no
3529   CFLAGS="-g"
3530   cat >conftest.$ac_ext <<_ACEOF
3531/* confdefs.h.  */
3532_ACEOF
3533cat confdefs.h >>conftest.$ac_ext
3534cat >>conftest.$ac_ext <<_ACEOF
3535/* end confdefs.h.  */
3536
3537int
3538main ()
3539{
3540
3541  ;
3542  return 0;
3543}
3544_ACEOF
3545rm -f conftest.$ac_objext
3546if { (ac_try="$ac_compile"
3547case "(($ac_try" in
3548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549  *) ac_try_echo=$ac_try;;
3550esac
3551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3552$as_echo "$ac_try_echo") >&5
3553  (eval "$ac_compile") 2>conftest.er1
3554  ac_status=$?
3555  grep -v '^ *+' conftest.er1 >conftest.err
3556  rm -f conftest.er1
3557  cat conftest.err >&5
3558  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559  (exit $ac_status); } && {
3560	 test -z "$ac_c_werror_flag" ||
3561	 test ! -s conftest.err
3562       } && test -s conftest.$ac_objext; then
3563  ac_cv_prog_cc_g=yes
3564else
3565  $as_echo "$as_me: failed program was:" >&5
3566sed 's/^/| /' conftest.$ac_ext >&5
3567
3568	CFLAGS=""
3569      cat >conftest.$ac_ext <<_ACEOF
3570/* confdefs.h.  */
3571_ACEOF
3572cat confdefs.h >>conftest.$ac_ext
3573cat >>conftest.$ac_ext <<_ACEOF
3574/* end confdefs.h.  */
3575
3576int
3577main ()
3578{
3579
3580  ;
3581  return 0;
3582}
3583_ACEOF
3584rm -f conftest.$ac_objext
3585if { (ac_try="$ac_compile"
3586case "(($ac_try" in
3587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588  *) ac_try_echo=$ac_try;;
3589esac
3590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3591$as_echo "$ac_try_echo") >&5
3592  (eval "$ac_compile") 2>conftest.er1
3593  ac_status=$?
3594  grep -v '^ *+' conftest.er1 >conftest.err
3595  rm -f conftest.er1
3596  cat conftest.err >&5
3597  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598  (exit $ac_status); } && {
3599	 test -z "$ac_c_werror_flag" ||
3600	 test ! -s conftest.err
3601       } && test -s conftest.$ac_objext; then
3602  :
3603else
3604  $as_echo "$as_me: failed program was:" >&5
3605sed 's/^/| /' conftest.$ac_ext >&5
3606
3607	ac_c_werror_flag=$ac_save_c_werror_flag
3608	 CFLAGS="-g"
3609	 cat >conftest.$ac_ext <<_ACEOF
3610/* confdefs.h.  */
3611_ACEOF
3612cat confdefs.h >>conftest.$ac_ext
3613cat >>conftest.$ac_ext <<_ACEOF
3614/* end confdefs.h.  */
3615
3616int
3617main ()
3618{
3619
3620  ;
3621  return 0;
3622}
3623_ACEOF
3624rm -f conftest.$ac_objext
3625if { (ac_try="$ac_compile"
3626case "(($ac_try" in
3627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628  *) ac_try_echo=$ac_try;;
3629esac
3630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3631$as_echo "$ac_try_echo") >&5
3632  (eval "$ac_compile") 2>conftest.er1
3633  ac_status=$?
3634  grep -v '^ *+' conftest.er1 >conftest.err
3635  rm -f conftest.er1
3636  cat conftest.err >&5
3637  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638  (exit $ac_status); } && {
3639	 test -z "$ac_c_werror_flag" ||
3640	 test ! -s conftest.err
3641       } && test -s conftest.$ac_objext; then
3642  ac_cv_prog_cc_g=yes
3643else
3644  $as_echo "$as_me: failed program was:" >&5
3645sed 's/^/| /' conftest.$ac_ext >&5
3646
3647
3648fi
3649
3650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651fi
3652
3653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654fi
3655
3656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657   ac_c_werror_flag=$ac_save_c_werror_flag
3658fi
3659{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3660$as_echo "$ac_cv_prog_cc_g" >&6; }
3661if test "$ac_test_CFLAGS" = set; then
3662  CFLAGS=$ac_save_CFLAGS
3663elif test $ac_cv_prog_cc_g = yes; then
3664  if test "$GCC" = yes; then
3665    CFLAGS="-g -O2"
3666  else
3667    CFLAGS="-g"
3668  fi
3669else
3670  if test "$GCC" = yes; then
3671    CFLAGS="-O2"
3672  else
3673    CFLAGS=
3674  fi
3675fi
3676{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3677$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3678if test "${ac_cv_prog_cc_c89+set}" = set; then
3679  $as_echo_n "(cached) " >&6
3680else
3681  ac_cv_prog_cc_c89=no
3682ac_save_CC=$CC
3683cat >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#include <stdarg.h>
3690#include <stdio.h>
3691#include <sys/types.h>
3692#include <sys/stat.h>
3693/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3694struct buf { int x; };
3695FILE * (*rcsopen) (struct buf *, struct stat *, int);
3696static char *e (p, i)
3697     char **p;
3698     int i;
3699{
3700  return p[i];
3701}
3702static char *f (char * (*g) (char **, int), char **p, ...)
3703{
3704  char *s;
3705  va_list v;
3706  va_start (v,p);
3707  s = g (p, va_arg (v,int));
3708  va_end (v);
3709  return s;
3710}
3711
3712/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3713   function prototypes and stuff, but not '\xHH' hex character constants.
3714   These don't provoke an error unfortunately, instead are silently treated
3715   as 'x'.  The following induces an error, until -std is added to get
3716   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3717   array size at least.  It's necessary to write '\x00'==0 to get something
3718   that's true only with -std.  */
3719int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3720
3721/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3722   inside strings and character constants.  */
3723#define FOO(x) 'x'
3724int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3725
3726int test (int i, double x);
3727struct s1 {int (*f) (int a);};
3728struct s2 {int (*f) (double a);};
3729int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3730int argc;
3731char **argv;
3732int
3733main ()
3734{
3735return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3736  ;
3737  return 0;
3738}
3739_ACEOF
3740for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3741	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3742do
3743  CC="$ac_save_CC $ac_arg"
3744  rm -f conftest.$ac_objext
3745if { (ac_try="$ac_compile"
3746case "(($ac_try" in
3747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748  *) ac_try_echo=$ac_try;;
3749esac
3750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3751$as_echo "$ac_try_echo") >&5
3752  (eval "$ac_compile") 2>conftest.er1
3753  ac_status=$?
3754  grep -v '^ *+' conftest.er1 >conftest.err
3755  rm -f conftest.er1
3756  cat conftest.err >&5
3757  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758  (exit $ac_status); } && {
3759	 test -z "$ac_c_werror_flag" ||
3760	 test ! -s conftest.err
3761       } && test -s conftest.$ac_objext; then
3762  ac_cv_prog_cc_c89=$ac_arg
3763else
3764  $as_echo "$as_me: failed program was:" >&5
3765sed 's/^/| /' conftest.$ac_ext >&5
3766
3767
3768fi
3769
3770rm -f core conftest.err conftest.$ac_objext
3771  test "x$ac_cv_prog_cc_c89" != "xno" && break
3772done
3773rm -f conftest.$ac_ext
3774CC=$ac_save_CC
3775
3776fi
3777# AC_CACHE_VAL
3778case "x$ac_cv_prog_cc_c89" in
3779  x)
3780    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3781$as_echo "none needed" >&6; } ;;
3782  xno)
3783    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3784$as_echo "unsupported" >&6; } ;;
3785  *)
3786    CC="$CC $ac_cv_prog_cc_c89"
3787    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3788$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3789esac
3790
3791
3792ac_ext=c
3793ac_cpp='$CPP $CPPFLAGS'
3794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797
3798depcc="$CC"   am_compiler_list=
3799
3800{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3801$as_echo_n "checking dependency style of $depcc... " >&6; }
3802if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3803  $as_echo_n "(cached) " >&6
3804else
3805  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3806  # We make a subdir and do the tests there.  Otherwise we can end up
3807  # making bogus files that we don't know about and never remove.  For
3808  # instance it was reported that on HP-UX the gcc test will end up
3809  # making a dummy file named `D' -- because `-MD' means `put the output
3810  # in D'.
3811  mkdir conftest.dir
3812  # Copy depcomp to subdir because otherwise we won't find it if we're
3813  # using a relative directory.
3814  cp "$am_depcomp" conftest.dir
3815  cd conftest.dir
3816  # We will build objects and dependencies in a subdirectory because
3817  # it helps to detect inapplicable dependency modes.  For instance
3818  # both Tru64's cc and ICC support -MD to output dependencies as a
3819  # side effect of compilation, but ICC will put the dependencies in
3820  # the current directory while Tru64 will put them in the object
3821  # directory.
3822  mkdir sub
3823
3824  am_cv_CC_dependencies_compiler_type=none
3825  if test "$am_compiler_list" = ""; then
3826     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3827  fi
3828  am__universal=false
3829  case " $depcc " in #(
3830     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3831     esac
3832
3833  for depmode in $am_compiler_list; do
3834    # Setup a source with many dependencies, because some compilers
3835    # like to wrap large dependency lists on column 80 (with \), and
3836    # we should not choose a depcomp mode which is confused by this.
3837    #
3838    # We need to recreate these files for each test, as the compiler may
3839    # overwrite some of them when testing with obscure command lines.
3840    # This happens at least with the AIX C compiler.
3841    : > sub/conftest.c
3842    for i in 1 2 3 4 5 6; do
3843      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3844      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3845      # Solaris 8's {/usr,}/bin/sh.
3846      touch sub/conftst$i.h
3847    done
3848    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3849
3850    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3851    # mode.  It turns out that the SunPro C++ compiler does not properly
3852    # handle `-M -o', and we need to detect this.  Also, some Intel
3853    # versions had trouble with output in subdirs
3854    am__obj=sub/conftest.${OBJEXT-o}
3855    am__minus_obj="-o $am__obj"
3856    case $depmode in
3857    gcc)
3858      # This depmode causes a compiler race in universal mode.
3859      test "$am__universal" = false || continue
3860      ;;
3861    nosideeffect)
3862      # after this tag, mechanisms are not by side-effect, so they'll
3863      # only be used when explicitly requested
3864      if test "x$enable_dependency_tracking" = xyes; then
3865	continue
3866      else
3867	break
3868      fi
3869      ;;
3870    msvisualcpp | msvcmsys)
3871      # This compiler won't grok `-c -o', but also, the minuso test has
3872      # not run yet.  These depmodes are late enough in the game, and
3873      # so weak that their functioning should not be impacted.
3874      am__obj=conftest.${OBJEXT-o}
3875      am__minus_obj=
3876      ;;
3877    none) break ;;
3878    esac
3879    if depmode=$depmode \
3880       source=sub/conftest.c object=$am__obj \
3881       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3882       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3883         >/dev/null 2>conftest.err &&
3884       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3885       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3886       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3887       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3888      # icc doesn't choke on unknown options, it will just issue warnings
3889      # or remarks (even with -Werror).  So we grep stderr for any message
3890      # that says an option was ignored or not supported.
3891      # When given -MP, icc 7.0 and 7.1 complain thusly:
3892      #   icc: Command line warning: ignoring option '-M'; no argument required
3893      # The diagnosis changed in icc 8.0:
3894      #   icc: Command line remark: option '-MP' not supported
3895      if (grep 'ignoring option' conftest.err ||
3896          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3897        am_cv_CC_dependencies_compiler_type=$depmode
3898        break
3899      fi
3900    fi
3901  done
3902
3903  cd ..
3904  rm -rf conftest.dir
3905else
3906  am_cv_CC_dependencies_compiler_type=none
3907fi
3908
3909fi
3910{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3911$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3912CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3913
3914 if
3915  test "x$enable_dependency_tracking" != xno \
3916  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3917  am__fastdepCC_TRUE=
3918  am__fastdepCC_FALSE='#'
3919else
3920  am__fastdepCC_TRUE='#'
3921  am__fastdepCC_FALSE=
3922fi
3923
3924
3925{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3926$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3927if test "${lt_cv_path_SED+set}" = set; then
3928  $as_echo_n "(cached) " >&6
3929else
3930  # Loop through the user's path and test for sed and gsed.
3931# Then use that list of sed's as ones to test for truncation.
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935  IFS=$as_save_IFS
3936  test -z "$as_dir" && as_dir=.
3937  for lt_ac_prog in sed gsed; do
3938    for ac_exec_ext in '' $ac_executable_extensions; do
3939      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3940        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3941      fi
3942    done
3943  done
3944done
3945IFS=$as_save_IFS
3946lt_ac_max=0
3947lt_ac_count=0
3948# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3949# along with /bin/sed that truncates output.
3950for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3951  test ! -f $lt_ac_sed && continue
3952  cat /dev/null > conftest.in
3953  lt_ac_count=0
3954  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3955  # Check for GNU sed and select it if it is found.
3956  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3957    lt_cv_path_SED=$lt_ac_sed
3958    break
3959  fi
3960  while true; do
3961    cat conftest.in conftest.in >conftest.tmp
3962    mv conftest.tmp conftest.in
3963    cp conftest.in conftest.nl
3964    echo >>conftest.nl
3965    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3966    cmp -s conftest.out conftest.nl || break
3967    # 10000 chars as input seems more than enough
3968    test $lt_ac_count -gt 10 && break
3969    lt_ac_count=`expr $lt_ac_count + 1`
3970    if test $lt_ac_count -gt $lt_ac_max; then
3971      lt_ac_max=$lt_ac_count
3972      lt_cv_path_SED=$lt_ac_sed
3973    fi
3974  done
3975done
3976
3977fi
3978
3979SED=$lt_cv_path_SED
3980
3981{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3982$as_echo "$SED" >&6; }
3983
3984{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3985$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3986if test "${ac_cv_path_GREP+set}" = set; then
3987  $as_echo_n "(cached) " >&6
3988else
3989  if test -z "$GREP"; then
3990  ac_path_GREP_found=false
3991  # Loop through the user's path and test for each of PROGNAME-LIST
3992  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3994do
3995  IFS=$as_save_IFS
3996  test -z "$as_dir" && as_dir=.
3997  for ac_prog in grep ggrep; do
3998    for ac_exec_ext in '' $ac_executable_extensions; do
3999      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4000      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4001# Check for GNU ac_path_GREP and select it if it is found.
4002  # Check for GNU $ac_path_GREP
4003case `"$ac_path_GREP" --version 2>&1` in
4004*GNU*)
4005  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4006*)
4007  ac_count=0
4008  $as_echo_n 0123456789 >"conftest.in"
4009  while :
4010  do
4011    cat "conftest.in" "conftest.in" >"conftest.tmp"
4012    mv "conftest.tmp" "conftest.in"
4013    cp "conftest.in" "conftest.nl"
4014    $as_echo 'GREP' >> "conftest.nl"
4015    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4016    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4017    ac_count=`expr $ac_count + 1`
4018    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4019      # Best one so far, save it but keep looking for a better one
4020      ac_cv_path_GREP="$ac_path_GREP"
4021      ac_path_GREP_max=$ac_count
4022    fi
4023    # 10*(2^10) chars as input seems more than enough
4024    test $ac_count -gt 10 && break
4025  done
4026  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4027esac
4028
4029      $ac_path_GREP_found && break 3
4030    done
4031  done
4032done
4033IFS=$as_save_IFS
4034  if test -z "$ac_cv_path_GREP"; then
4035    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4036$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4037   { (exit 1); exit 1; }; }
4038  fi
4039else
4040  ac_cv_path_GREP=$GREP
4041fi
4042
4043fi
4044{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4045$as_echo "$ac_cv_path_GREP" >&6; }
4046 GREP="$ac_cv_path_GREP"
4047
4048
4049{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4050$as_echo_n "checking for egrep... " >&6; }
4051if test "${ac_cv_path_EGREP+set}" = set; then
4052  $as_echo_n "(cached) " >&6
4053else
4054  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4055   then ac_cv_path_EGREP="$GREP -E"
4056   else
4057     if test -z "$EGREP"; then
4058  ac_path_EGREP_found=false
4059  # Loop through the user's path and test for each of PROGNAME-LIST
4060  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4062do
4063  IFS=$as_save_IFS
4064  test -z "$as_dir" && as_dir=.
4065  for ac_prog in egrep; do
4066    for ac_exec_ext in '' $ac_executable_extensions; do
4067      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4068      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4069# Check for GNU ac_path_EGREP and select it if it is found.
4070  # Check for GNU $ac_path_EGREP
4071case `"$ac_path_EGREP" --version 2>&1` in
4072*GNU*)
4073  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4074*)
4075  ac_count=0
4076  $as_echo_n 0123456789 >"conftest.in"
4077  while :
4078  do
4079    cat "conftest.in" "conftest.in" >"conftest.tmp"
4080    mv "conftest.tmp" "conftest.in"
4081    cp "conftest.in" "conftest.nl"
4082    $as_echo 'EGREP' >> "conftest.nl"
4083    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4084    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4085    ac_count=`expr $ac_count + 1`
4086    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4087      # Best one so far, save it but keep looking for a better one
4088      ac_cv_path_EGREP="$ac_path_EGREP"
4089      ac_path_EGREP_max=$ac_count
4090    fi
4091    # 10*(2^10) chars as input seems more than enough
4092    test $ac_count -gt 10 && break
4093  done
4094  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4095esac
4096
4097      $ac_path_EGREP_found && break 3
4098    done
4099  done
4100done
4101IFS=$as_save_IFS
4102  if test -z "$ac_cv_path_EGREP"; then
4103    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4104$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4105   { (exit 1); exit 1; }; }
4106  fi
4107else
4108  ac_cv_path_EGREP=$EGREP
4109fi
4110
4111   fi
4112fi
4113{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4114$as_echo "$ac_cv_path_EGREP" >&6; }
4115 EGREP="$ac_cv_path_EGREP"
4116
4117
4118
4119# Check whether --with-gnu-ld was given.
4120if test "${with_gnu_ld+set}" = set; then
4121  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4122else
4123  with_gnu_ld=no
4124fi
4125
4126ac_prog=ld
4127if test "$GCC" = yes; then
4128  # Check if gcc -print-prog-name=ld gives a path.
4129  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4130$as_echo_n "checking for ld used by $CC... " >&6; }
4131  case $host in
4132  *-*-mingw*)
4133    # gcc leaves a trailing carriage return which upsets mingw
4134    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4135  *)
4136    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4137  esac
4138  case $ac_prog in
4139    # Accept absolute paths.
4140    [\\/]* | ?:[\\/]*)
4141      re_direlt='/[^/][^/]*/\.\./'
4142      # Canonicalize the pathname of ld
4143      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4144      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4145	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4146      done
4147      test -z "$LD" && LD="$ac_prog"
4148      ;;
4149  "")
4150    # If it fails, then pretend we aren't using GCC.
4151    ac_prog=ld
4152    ;;
4153  *)
4154    # If it is relative, then search for the first ld in PATH.
4155    with_gnu_ld=unknown
4156    ;;
4157  esac
4158elif test "$with_gnu_ld" = yes; then
4159  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4160$as_echo_n "checking for GNU ld... " >&6; }
4161else
4162  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4163$as_echo_n "checking for non-GNU ld... " >&6; }
4164fi
4165if test "${lt_cv_path_LD+set}" = set; then
4166  $as_echo_n "(cached) " >&6
4167else
4168  if test -z "$LD"; then
4169  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4170  for ac_dir in $PATH; do
4171    IFS="$lt_save_ifs"
4172    test -z "$ac_dir" && ac_dir=.
4173    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4174      lt_cv_path_LD="$ac_dir/$ac_prog"
4175      # Check to see if the program is GNU ld.  I'd rather use --version,
4176      # but apparently some variants of GNU ld only accept -v.
4177      # Break only if it was the GNU/non-GNU ld that we prefer.
4178      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4179      *GNU* | *'with BFD'*)
4180	test "$with_gnu_ld" != no && break
4181	;;
4182      *)
4183	test "$with_gnu_ld" != yes && break
4184	;;
4185      esac
4186    fi
4187  done
4188  IFS="$lt_save_ifs"
4189else
4190  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4191fi
4192fi
4193
4194LD="$lt_cv_path_LD"
4195if test -n "$LD"; then
4196  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4197$as_echo "$LD" >&6; }
4198else
4199  { $as_echo "$as_me:$LINENO: result: no" >&5
4200$as_echo "no" >&6; }
4201fi
4202test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4203$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4204   { (exit 1); exit 1; }; }
4205{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4206$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4207if test "${lt_cv_prog_gnu_ld+set}" = set; then
4208  $as_echo_n "(cached) " >&6
4209else
4210  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4211case `$LD -v 2>&1 </dev/null` in
4212*GNU* | *'with BFD'*)
4213  lt_cv_prog_gnu_ld=yes
4214  ;;
4215*)
4216  lt_cv_prog_gnu_ld=no
4217  ;;
4218esac
4219fi
4220{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4221$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4222with_gnu_ld=$lt_cv_prog_gnu_ld
4223
4224
4225{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4226$as_echo_n "checking for $LD option to reload object files... " >&6; }
4227if test "${lt_cv_ld_reload_flag+set}" = set; then
4228  $as_echo_n "(cached) " >&6
4229else
4230  lt_cv_ld_reload_flag='-r'
4231fi
4232{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4233$as_echo "$lt_cv_ld_reload_flag" >&6; }
4234reload_flag=$lt_cv_ld_reload_flag
4235case $reload_flag in
4236"" | " "*) ;;
4237*) reload_flag=" $reload_flag" ;;
4238esac
4239reload_cmds='$LD$reload_flag -o $output$reload_objs'
4240case $host_os in
4241  darwin*)
4242    if test "$GCC" = yes; then
4243      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4244    else
4245      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4246    fi
4247    ;;
4248esac
4249
4250{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4251$as_echo_n "checking for BSD-compatible nm... " >&6; }
4252if test "${lt_cv_path_NM+set}" = set; then
4253  $as_echo_n "(cached) " >&6
4254else
4255  if test -n "$NM"; then
4256  # Let the user override the test.
4257  lt_cv_path_NM="$NM"
4258else
4259  lt_nm_to_check="${ac_tool_prefix}nm"
4260  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4261    lt_nm_to_check="$lt_nm_to_check nm"
4262  fi
4263  for lt_tmp_nm in $lt_nm_to_check; do
4264    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4265    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4266      IFS="$lt_save_ifs"
4267      test -z "$ac_dir" && ac_dir=.
4268      tmp_nm="$ac_dir/$lt_tmp_nm"
4269      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4270	# Check to see if the nm accepts a BSD-compat flag.
4271	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4272	#   nm: unknown option "B" ignored
4273	# Tru64's nm complains that /dev/null is an invalid object file
4274	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4275	*/dev/null* | *'Invalid file or object type'*)
4276	  lt_cv_path_NM="$tmp_nm -B"
4277	  break
4278	  ;;
4279	*)
4280	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4281	  */dev/null*)
4282	    lt_cv_path_NM="$tmp_nm -p"
4283	    break
4284	    ;;
4285	  *)
4286	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4287	    continue # so that we can try to find one that supports BSD flags
4288	    ;;
4289	  esac
4290	  ;;
4291	esac
4292      fi
4293    done
4294    IFS="$lt_save_ifs"
4295  done
4296  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4297fi
4298fi
4299{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4300$as_echo "$lt_cv_path_NM" >&6; }
4301NM="$lt_cv_path_NM"
4302
4303{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4304$as_echo_n "checking whether ln -s works... " >&6; }
4305LN_S=$as_ln_s
4306if test "$LN_S" = "ln -s"; then
4307  { $as_echo "$as_me:$LINENO: result: yes" >&5
4308$as_echo "yes" >&6; }
4309else
4310  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4311$as_echo "no, using $LN_S" >&6; }
4312fi
4313
4314{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4315$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4316if test "${lt_cv_deplibs_check_method+set}" = set; then
4317  $as_echo_n "(cached) " >&6
4318else
4319  lt_cv_file_magic_cmd='$MAGIC_CMD'
4320lt_cv_file_magic_test_file=
4321lt_cv_deplibs_check_method='unknown'
4322# Need to set the preceding variable on all platforms that support
4323# interlibrary dependencies.
4324# 'none' -- dependencies not supported.
4325# `unknown' -- same as none, but documents that we really don't know.
4326# 'pass_all' -- all dependencies passed with no checks.
4327# 'test_compile' -- check by making test program.
4328# 'file_magic [[regex]]' -- check by looking for files in library path
4329# which responds to the $file_magic_cmd with a given extended regex.
4330# If you have `file' or equivalent on your system and you're not sure
4331# whether `pass_all' will *always* work, you probably want this one.
4332
4333case $host_os in
4334aix[4-9]*)
4335  lt_cv_deplibs_check_method=pass_all
4336  ;;
4337
4338beos*)
4339  lt_cv_deplibs_check_method=pass_all
4340  ;;
4341
4342bsdi[45]*)
4343  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4344  lt_cv_file_magic_cmd='/usr/bin/file -L'
4345  lt_cv_file_magic_test_file=/shlib/libc.so
4346  ;;
4347
4348cygwin*)
4349  # func_win32_libid is a shell function defined in ltmain.sh
4350  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4351  lt_cv_file_magic_cmd='func_win32_libid'
4352  ;;
4353
4354mingw* | pw32*)
4355  # Base MSYS/MinGW do not provide the 'file' command needed by
4356  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4357  # unless we find 'file', for example because we are cross-compiling.
4358  if ( file / ) >/dev/null 2>&1; then
4359    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4360    lt_cv_file_magic_cmd='func_win32_libid'
4361  else
4362    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4363    lt_cv_file_magic_cmd='$OBJDUMP -f'
4364  fi
4365  ;;
4366
4367darwin* | rhapsody*)
4368  lt_cv_deplibs_check_method=pass_all
4369  ;;
4370
4371freebsd* | dragonfly*)
4372  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4373    case $host_cpu in
4374    i*86 )
4375      # Not sure whether the presence of OpenBSD here was a mistake.
4376      # Let's accept both of them until this is cleared up.
4377      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4378      lt_cv_file_magic_cmd=/usr/bin/file
4379      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4380      ;;
4381    esac
4382  else
4383    lt_cv_deplibs_check_method=pass_all
4384  fi
4385  ;;
4386
4387gnu*)
4388  lt_cv_deplibs_check_method=pass_all
4389  ;;
4390
4391hpux10.20* | hpux11*)
4392  lt_cv_file_magic_cmd=/usr/bin/file
4393  case $host_cpu in
4394  ia64*)
4395    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4396    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4397    ;;
4398  hppa*64*)
4399    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]'
4400    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4401    ;;
4402  *)
4403    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4404    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4405    ;;
4406  esac
4407  ;;
4408
4409interix[3-9]*)
4410  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4411  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4412  ;;
4413
4414irix5* | irix6* | nonstopux*)
4415  case $LD in
4416  *-32|*"-32 ") libmagic=32-bit;;
4417  *-n32|*"-n32 ") libmagic=N32;;
4418  *-64|*"-64 ") libmagic=64-bit;;
4419  *) libmagic=never-match;;
4420  esac
4421  lt_cv_deplibs_check_method=pass_all
4422  ;;
4423
4424# This must be Linux ELF.
4425linux* | k*bsd*-gnu)
4426  lt_cv_deplibs_check_method=pass_all
4427  ;;
4428
4429netbsd*)
4430  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4431    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4432  else
4433    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4434  fi
4435  ;;
4436
4437newos6*)
4438  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4439  lt_cv_file_magic_cmd=/usr/bin/file
4440  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4441  ;;
4442
4443nto-qnx*)
4444  lt_cv_deplibs_check_method=unknown
4445  ;;
4446
4447openbsd*)
4448  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4449    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4450  else
4451    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4452  fi
4453  ;;
4454
4455osf3* | osf4* | osf5*)
4456  lt_cv_deplibs_check_method=pass_all
4457  ;;
4458
4459rdos*)
4460  lt_cv_deplibs_check_method=pass_all
4461  ;;
4462
4463solaris*)
4464  lt_cv_deplibs_check_method=pass_all
4465  ;;
4466
4467sysv4 | sysv4.3*)
4468  case $host_vendor in
4469  motorola)
4470    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]'
4471    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4472    ;;
4473  ncr)
4474    lt_cv_deplibs_check_method=pass_all
4475    ;;
4476  sequent)
4477    lt_cv_file_magic_cmd='/bin/file'
4478    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4479    ;;
4480  sni)
4481    lt_cv_file_magic_cmd='/bin/file'
4482    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4483    lt_cv_file_magic_test_file=/lib/libc.so
4484    ;;
4485  siemens)
4486    lt_cv_deplibs_check_method=pass_all
4487    ;;
4488  pc)
4489    lt_cv_deplibs_check_method=pass_all
4490    ;;
4491  esac
4492  ;;
4493
4494sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4495  lt_cv_deplibs_check_method=pass_all
4496  ;;
4497esac
4498
4499fi
4500{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4501$as_echo "$lt_cv_deplibs_check_method" >&6; }
4502file_magic_cmd=$lt_cv_file_magic_cmd
4503deplibs_check_method=$lt_cv_deplibs_check_method
4504test -z "$deplibs_check_method" && deplibs_check_method=unknown
4505
4506
4507
4508
4509# If no C compiler was specified, use CC.
4510LTCC=${LTCC-"$CC"}
4511
4512# If no C compiler flags were specified, use CFLAGS.
4513LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4514
4515# Allow CC to be a program name with arguments.
4516compiler=$CC
4517
4518
4519# Check whether --enable-libtool-lock was given.
4520if test "${enable_libtool_lock+set}" = set; then
4521  enableval=$enable_libtool_lock;
4522fi
4523
4524test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4525
4526# Some flags need to be propagated to the compiler or linker for good
4527# libtool support.
4528case $host in
4529ia64-*-hpux*)
4530  # Find out which ABI we are using.
4531  echo 'int i;' > conftest.$ac_ext
4532  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533  (eval $ac_compile) 2>&5
4534  ac_status=$?
4535  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536  (exit $ac_status); }; then
4537    case `/usr/bin/file conftest.$ac_objext` in
4538    *ELF-32*)
4539      HPUX_IA64_MODE="32"
4540      ;;
4541    *ELF-64*)
4542      HPUX_IA64_MODE="64"
4543      ;;
4544    esac
4545  fi
4546  rm -rf conftest*
4547  ;;
4548*-*-irix6*)
4549  # Find out which ABI we are using.
4550  echo '#line 4550 "configure"' > conftest.$ac_ext
4551  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4552  (eval $ac_compile) 2>&5
4553  ac_status=$?
4554  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555  (exit $ac_status); }; then
4556   if test "$lt_cv_prog_gnu_ld" = yes; then
4557    case `/usr/bin/file conftest.$ac_objext` in
4558    *32-bit*)
4559      LD="${LD-ld} -melf32bsmip"
4560      ;;
4561    *N32*)
4562      LD="${LD-ld} -melf32bmipn32"
4563      ;;
4564    *64-bit*)
4565      LD="${LD-ld} -melf64bmip"
4566      ;;
4567    esac
4568   else
4569    case `/usr/bin/file conftest.$ac_objext` in
4570    *32-bit*)
4571      LD="${LD-ld} -32"
4572      ;;
4573    *N32*)
4574      LD="${LD-ld} -n32"
4575      ;;
4576    *64-bit*)
4577      LD="${LD-ld} -64"
4578      ;;
4579    esac
4580   fi
4581  fi
4582  rm -rf conftest*
4583  ;;
4584
4585x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4586s390*-*linux*|sparc*-*linux*)
4587  # Find out which ABI we are using.
4588  echo 'int i;' > conftest.$ac_ext
4589  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590  (eval $ac_compile) 2>&5
4591  ac_status=$?
4592  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593  (exit $ac_status); }; then
4594    case `/usr/bin/file conftest.o` in
4595    *32-bit*)
4596      case $host in
4597        x86_64-*kfreebsd*-gnu)
4598          LD="${LD-ld} -m elf_i386_fbsd"
4599          ;;
4600        x86_64-*linux*)
4601          LD="${LD-ld} -m elf_i386"
4602          ;;
4603        ppc64-*linux*|powerpc64-*linux*)
4604          LD="${LD-ld} -m elf32ppclinux"
4605          ;;
4606        s390x-*linux*)
4607          LD="${LD-ld} -m elf_s390"
4608          ;;
4609        sparc64-*linux*)
4610          LD="${LD-ld} -m elf32_sparc"
4611          ;;
4612      esac
4613      ;;
4614    *64-bit*)
4615      libsuff=64
4616      case $host in
4617        x86_64-*kfreebsd*-gnu)
4618          LD="${LD-ld} -m elf_x86_64_fbsd"
4619          ;;
4620        x86_64-*linux*)
4621          LD="${LD-ld} -m elf_x86_64"
4622          ;;
4623        ppc*-*linux*|powerpc*-*linux*)
4624          LD="${LD-ld} -m elf64ppc"
4625          ;;
4626        s390*-*linux*)
4627          LD="${LD-ld} -m elf64_s390"
4628          ;;
4629        sparc*-*linux*)
4630          LD="${LD-ld} -m elf64_sparc"
4631          ;;
4632      esac
4633      ;;
4634    esac
4635  fi
4636  rm -rf conftest*
4637  ;;
4638
4639*-*-sco3.2v5*)
4640  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4641  SAVE_CFLAGS="$CFLAGS"
4642  CFLAGS="$CFLAGS -belf"
4643  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4644$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4645if test "${lt_cv_cc_needs_belf+set}" = set; then
4646  $as_echo_n "(cached) " >&6
4647else
4648  ac_ext=c
4649ac_cpp='$CPP $CPPFLAGS'
4650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652ac_compiler_gnu=$ac_cv_c_compiler_gnu
4653
4654     cat >conftest.$ac_ext <<_ACEOF
4655/* confdefs.h.  */
4656_ACEOF
4657cat confdefs.h >>conftest.$ac_ext
4658cat >>conftest.$ac_ext <<_ACEOF
4659/* end confdefs.h.  */
4660
4661int
4662main ()
4663{
4664
4665  ;
4666  return 0;
4667}
4668_ACEOF
4669rm -f conftest.$ac_objext conftest$ac_exeext
4670if { (ac_try="$ac_link"
4671case "(($ac_try" in
4672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673  *) ac_try_echo=$ac_try;;
4674esac
4675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4676$as_echo "$ac_try_echo") >&5
4677  (eval "$ac_link") 2>conftest.er1
4678  ac_status=$?
4679  grep -v '^ *+' conftest.er1 >conftest.err
4680  rm -f conftest.er1
4681  cat conftest.err >&5
4682  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683  (exit $ac_status); } && {
4684	 test -z "$ac_c_werror_flag" ||
4685	 test ! -s conftest.err
4686       } && test -s conftest$ac_exeext && {
4687	 test "$cross_compiling" = yes ||
4688	 $as_test_x conftest$ac_exeext
4689       }; then
4690  lt_cv_cc_needs_belf=yes
4691else
4692  $as_echo "$as_me: failed program was:" >&5
4693sed 's/^/| /' conftest.$ac_ext >&5
4694
4695	lt_cv_cc_needs_belf=no
4696fi
4697
4698rm -rf conftest.dSYM
4699rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4700      conftest$ac_exeext conftest.$ac_ext
4701     ac_ext=c
4702ac_cpp='$CPP $CPPFLAGS'
4703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4705ac_compiler_gnu=$ac_cv_c_compiler_gnu
4706
4707fi
4708{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4709$as_echo "$lt_cv_cc_needs_belf" >&6; }
4710  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4711    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4712    CFLAGS="$SAVE_CFLAGS"
4713  fi
4714  ;;
4715sparc*-*solaris*)
4716  # Find out which ABI we are using.
4717  echo 'int i;' > conftest.$ac_ext
4718  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719  (eval $ac_compile) 2>&5
4720  ac_status=$?
4721  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722  (exit $ac_status); }; then
4723    case `/usr/bin/file conftest.o` in
4724    *64-bit*)
4725      case $lt_cv_prog_gnu_ld in
4726      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4727      *)
4728        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4729	  LD="${LD-ld} -64"
4730	fi
4731	;;
4732      esac
4733      ;;
4734    esac
4735  fi
4736  rm -rf conftest*
4737  ;;
4738
4739
4740esac
4741
4742need_locks="$enable_libtool_lock"
4743
4744
4745ac_ext=c
4746ac_cpp='$CPP $CPPFLAGS'
4747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4749ac_compiler_gnu=$ac_cv_c_compiler_gnu
4750{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4751$as_echo_n "checking how to run the C preprocessor... " >&6; }
4752# On Suns, sometimes $CPP names a directory.
4753if test -n "$CPP" && test -d "$CPP"; then
4754  CPP=
4755fi
4756if test -z "$CPP"; then
4757  if test "${ac_cv_prog_CPP+set}" = set; then
4758  $as_echo_n "(cached) " >&6
4759else
4760      # Double quotes because CPP needs to be expanded
4761    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4762    do
4763      ac_preproc_ok=false
4764for ac_c_preproc_warn_flag in '' yes
4765do
4766  # Use a header file that comes with gcc, so configuring glibc
4767  # with a fresh cross-compiler works.
4768  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4769  # <limits.h> exists even on freestanding compilers.
4770  # On the NeXT, cc -E runs the code through the compiler's parser,
4771  # not just through cpp. "Syntax error" is here to catch this case.
4772  cat >conftest.$ac_ext <<_ACEOF
4773/* confdefs.h.  */
4774_ACEOF
4775cat confdefs.h >>conftest.$ac_ext
4776cat >>conftest.$ac_ext <<_ACEOF
4777/* end confdefs.h.  */
4778#ifdef __STDC__
4779# include <limits.h>
4780#else
4781# include <assert.h>
4782#endif
4783		     Syntax error
4784_ACEOF
4785if { (ac_try="$ac_cpp conftest.$ac_ext"
4786case "(($ac_try" in
4787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788  *) ac_try_echo=$ac_try;;
4789esac
4790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4791$as_echo "$ac_try_echo") >&5
4792  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4793  ac_status=$?
4794  grep -v '^ *+' conftest.er1 >conftest.err
4795  rm -f conftest.er1
4796  cat conftest.err >&5
4797  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798  (exit $ac_status); } >/dev/null && {
4799	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4800	 test ! -s conftest.err
4801       }; then
4802  :
4803else
4804  $as_echo "$as_me: failed program was:" >&5
4805sed 's/^/| /' conftest.$ac_ext >&5
4806
4807  # Broken: fails on valid input.
4808continue
4809fi
4810
4811rm -f conftest.err conftest.$ac_ext
4812
4813  # OK, works on sane cases.  Now check whether nonexistent headers
4814  # can be detected and how.
4815  cat >conftest.$ac_ext <<_ACEOF
4816/* confdefs.h.  */
4817_ACEOF
4818cat confdefs.h >>conftest.$ac_ext
4819cat >>conftest.$ac_ext <<_ACEOF
4820/* end confdefs.h.  */
4821#include <ac_nonexistent.h>
4822_ACEOF
4823if { (ac_try="$ac_cpp conftest.$ac_ext"
4824case "(($ac_try" in
4825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826  *) ac_try_echo=$ac_try;;
4827esac
4828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4829$as_echo "$ac_try_echo") >&5
4830  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4831  ac_status=$?
4832  grep -v '^ *+' conftest.er1 >conftest.err
4833  rm -f conftest.er1
4834  cat conftest.err >&5
4835  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836  (exit $ac_status); } >/dev/null && {
4837	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4838	 test ! -s conftest.err
4839       }; then
4840  # Broken: success on invalid input.
4841continue
4842else
4843  $as_echo "$as_me: failed program was:" >&5
4844sed 's/^/| /' conftest.$ac_ext >&5
4845
4846  # Passes both tests.
4847ac_preproc_ok=:
4848break
4849fi
4850
4851rm -f conftest.err conftest.$ac_ext
4852
4853done
4854# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4855rm -f conftest.err conftest.$ac_ext
4856if $ac_preproc_ok; then
4857  break
4858fi
4859
4860    done
4861    ac_cv_prog_CPP=$CPP
4862
4863fi
4864  CPP=$ac_cv_prog_CPP
4865else
4866  ac_cv_prog_CPP=$CPP
4867fi
4868{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4869$as_echo "$CPP" >&6; }
4870ac_preproc_ok=false
4871for ac_c_preproc_warn_flag in '' yes
4872do
4873  # Use a header file that comes with gcc, so configuring glibc
4874  # with a fresh cross-compiler works.
4875  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4876  # <limits.h> exists even on freestanding compilers.
4877  # On the NeXT, cc -E runs the code through the compiler's parser,
4878  # not just through cpp. "Syntax error" is here to catch this case.
4879  cat >conftest.$ac_ext <<_ACEOF
4880/* confdefs.h.  */
4881_ACEOF
4882cat confdefs.h >>conftest.$ac_ext
4883cat >>conftest.$ac_ext <<_ACEOF
4884/* end confdefs.h.  */
4885#ifdef __STDC__
4886# include <limits.h>
4887#else
4888# include <assert.h>
4889#endif
4890		     Syntax error
4891_ACEOF
4892if { (ac_try="$ac_cpp conftest.$ac_ext"
4893case "(($ac_try" in
4894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895  *) ac_try_echo=$ac_try;;
4896esac
4897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4898$as_echo "$ac_try_echo") >&5
4899  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4900  ac_status=$?
4901  grep -v '^ *+' conftest.er1 >conftest.err
4902  rm -f conftest.er1
4903  cat conftest.err >&5
4904  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905  (exit $ac_status); } >/dev/null && {
4906	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4907	 test ! -s conftest.err
4908       }; then
4909  :
4910else
4911  $as_echo "$as_me: failed program was:" >&5
4912sed 's/^/| /' conftest.$ac_ext >&5
4913
4914  # Broken: fails on valid input.
4915continue
4916fi
4917
4918rm -f conftest.err conftest.$ac_ext
4919
4920  # OK, works on sane cases.  Now check whether nonexistent headers
4921  # can be detected and how.
4922  cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h.  */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h.  */
4928#include <ac_nonexistent.h>
4929_ACEOF
4930if { (ac_try="$ac_cpp conftest.$ac_ext"
4931case "(($ac_try" in
4932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933  *) ac_try_echo=$ac_try;;
4934esac
4935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4936$as_echo "$ac_try_echo") >&5
4937  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4938  ac_status=$?
4939  grep -v '^ *+' conftest.er1 >conftest.err
4940  rm -f conftest.er1
4941  cat conftest.err >&5
4942  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943  (exit $ac_status); } >/dev/null && {
4944	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4945	 test ! -s conftest.err
4946       }; then
4947  # Broken: success on invalid input.
4948continue
4949else
4950  $as_echo "$as_me: failed program was:" >&5
4951sed 's/^/| /' conftest.$ac_ext >&5
4952
4953  # Passes both tests.
4954ac_preproc_ok=:
4955break
4956fi
4957
4958rm -f conftest.err conftest.$ac_ext
4959
4960done
4961# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4962rm -f conftest.err conftest.$ac_ext
4963if $ac_preproc_ok; then
4964  :
4965else
4966  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4968{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4969See \`config.log' for more details." >&5
4970$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4971See \`config.log' for more details." >&2;}
4972   { (exit 1); exit 1; }; }; }
4973fi
4974
4975ac_ext=c
4976ac_cpp='$CPP $CPPFLAGS'
4977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980
4981
4982{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4983$as_echo_n "checking for ANSI C header files... " >&6; }
4984if test "${ac_cv_header_stdc+set}" = set; then
4985  $as_echo_n "(cached) " >&6
4986else
4987  cat >conftest.$ac_ext <<_ACEOF
4988/* confdefs.h.  */
4989_ACEOF
4990cat confdefs.h >>conftest.$ac_ext
4991cat >>conftest.$ac_ext <<_ACEOF
4992/* end confdefs.h.  */
4993#include <stdlib.h>
4994#include <stdarg.h>
4995#include <string.h>
4996#include <float.h>
4997
4998int
4999main ()
5000{
5001
5002  ;
5003  return 0;
5004}
5005_ACEOF
5006rm -f conftest.$ac_objext
5007if { (ac_try="$ac_compile"
5008case "(($ac_try" in
5009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5010  *) ac_try_echo=$ac_try;;
5011esac
5012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5013$as_echo "$ac_try_echo") >&5
5014  (eval "$ac_compile") 2>conftest.er1
5015  ac_status=$?
5016  grep -v '^ *+' conftest.er1 >conftest.err
5017  rm -f conftest.er1
5018  cat conftest.err >&5
5019  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020  (exit $ac_status); } && {
5021	 test -z "$ac_c_werror_flag" ||
5022	 test ! -s conftest.err
5023       } && test -s conftest.$ac_objext; then
5024  ac_cv_header_stdc=yes
5025else
5026  $as_echo "$as_me: failed program was:" >&5
5027sed 's/^/| /' conftest.$ac_ext >&5
5028
5029	ac_cv_header_stdc=no
5030fi
5031
5032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033
5034if test $ac_cv_header_stdc = yes; then
5035  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5036  cat >conftest.$ac_ext <<_ACEOF
5037/* confdefs.h.  */
5038_ACEOF
5039cat confdefs.h >>conftest.$ac_ext
5040cat >>conftest.$ac_ext <<_ACEOF
5041/* end confdefs.h.  */
5042#include <string.h>
5043
5044_ACEOF
5045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5046  $EGREP "memchr" >/dev/null 2>&1; then
5047  :
5048else
5049  ac_cv_header_stdc=no
5050fi
5051rm -f conftest*
5052
5053fi
5054
5055if test $ac_cv_header_stdc = yes; then
5056  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5057  cat >conftest.$ac_ext <<_ACEOF
5058/* confdefs.h.  */
5059_ACEOF
5060cat confdefs.h >>conftest.$ac_ext
5061cat >>conftest.$ac_ext <<_ACEOF
5062/* end confdefs.h.  */
5063#include <stdlib.h>
5064
5065_ACEOF
5066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5067  $EGREP "free" >/dev/null 2>&1; then
5068  :
5069else
5070  ac_cv_header_stdc=no
5071fi
5072rm -f conftest*
5073
5074fi
5075
5076if test $ac_cv_header_stdc = yes; then
5077  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5078  if test "$cross_compiling" = yes; then
5079  :
5080else
5081  cat >conftest.$ac_ext <<_ACEOF
5082/* confdefs.h.  */
5083_ACEOF
5084cat confdefs.h >>conftest.$ac_ext
5085cat >>conftest.$ac_ext <<_ACEOF
5086/* end confdefs.h.  */
5087#include <ctype.h>
5088#include <stdlib.h>
5089#if ((' ' & 0x0FF) == 0x020)
5090# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5091# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5092#else
5093# define ISLOWER(c) \
5094		   (('a' <= (c) && (c) <= 'i') \
5095		     || ('j' <= (c) && (c) <= 'r') \
5096		     || ('s' <= (c) && (c) <= 'z'))
5097# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5098#endif
5099
5100#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5101int
5102main ()
5103{
5104  int i;
5105  for (i = 0; i < 256; i++)
5106    if (XOR (islower (i), ISLOWER (i))
5107	|| toupper (i) != TOUPPER (i))
5108      return 2;
5109  return 0;
5110}
5111_ACEOF
5112rm -f conftest$ac_exeext
5113if { (ac_try="$ac_link"
5114case "(($ac_try" in
5115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116  *) ac_try_echo=$ac_try;;
5117esac
5118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5119$as_echo "$ac_try_echo") >&5
5120  (eval "$ac_link") 2>&5
5121  ac_status=$?
5122  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5124  { (case "(($ac_try" in
5125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126  *) ac_try_echo=$ac_try;;
5127esac
5128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5129$as_echo "$ac_try_echo") >&5
5130  (eval "$ac_try") 2>&5
5131  ac_status=$?
5132  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133  (exit $ac_status); }; }; then
5134  :
5135else
5136  $as_echo "$as_me: program exited with status $ac_status" >&5
5137$as_echo "$as_me: failed program was:" >&5
5138sed 's/^/| /' conftest.$ac_ext >&5
5139
5140( exit $ac_status )
5141ac_cv_header_stdc=no
5142fi
5143rm -rf conftest.dSYM
5144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5145fi
5146
5147
5148fi
5149fi
5150{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5151$as_echo "$ac_cv_header_stdc" >&6; }
5152if test $ac_cv_header_stdc = yes; then
5153
5154cat >>confdefs.h <<\_ACEOF
5155#define STDC_HEADERS 1
5156_ACEOF
5157
5158fi
5159
5160# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5171		  inttypes.h stdint.h unistd.h
5172do
5173as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5174{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5175$as_echo_n "checking for $ac_header... " >&6; }
5176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5177  $as_echo_n "(cached) " >&6
5178else
5179  cat >conftest.$ac_ext <<_ACEOF
5180/* confdefs.h.  */
5181_ACEOF
5182cat confdefs.h >>conftest.$ac_ext
5183cat >>conftest.$ac_ext <<_ACEOF
5184/* end confdefs.h.  */
5185$ac_includes_default
5186
5187#include <$ac_header>
5188_ACEOF
5189rm -f conftest.$ac_objext
5190if { (ac_try="$ac_compile"
5191case "(($ac_try" in
5192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193  *) ac_try_echo=$ac_try;;
5194esac
5195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5196$as_echo "$ac_try_echo") >&5
5197  (eval "$ac_compile") 2>conftest.er1
5198  ac_status=$?
5199  grep -v '^ *+' conftest.er1 >conftest.err
5200  rm -f conftest.er1
5201  cat conftest.err >&5
5202  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203  (exit $ac_status); } && {
5204	 test -z "$ac_c_werror_flag" ||
5205	 test ! -s conftest.err
5206       } && test -s conftest.$ac_objext; then
5207  eval "$as_ac_Header=yes"
5208else
5209  $as_echo "$as_me: failed program was:" >&5
5210sed 's/^/| /' conftest.$ac_ext >&5
5211
5212	eval "$as_ac_Header=no"
5213fi
5214
5215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216fi
5217ac_res=`eval 'as_val=${'$as_ac_Header'}
5218		 $as_echo "$as_val"'`
5219	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5220$as_echo "$ac_res" >&6; }
5221as_val=`eval 'as_val=${'$as_ac_Header'}
5222		 $as_echo "$as_val"'`
5223   if test "x$as_val" = x""yes; then
5224  cat >>confdefs.h <<_ACEOF
5225#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5226_ACEOF
5227
5228fi
5229
5230done
5231
5232
5233
5234for ac_header in dlfcn.h
5235do
5236as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5238  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5239$as_echo_n "checking for $ac_header... " >&6; }
5240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5241  $as_echo_n "(cached) " >&6
5242fi
5243ac_res=`eval 'as_val=${'$as_ac_Header'}
5244		 $as_echo "$as_val"'`
5245	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5246$as_echo "$ac_res" >&6; }
5247else
5248  # Is the header compilable?
5249{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5250$as_echo_n "checking $ac_header usability... " >&6; }
5251cat >conftest.$ac_ext <<_ACEOF
5252/* confdefs.h.  */
5253_ACEOF
5254cat confdefs.h >>conftest.$ac_ext
5255cat >>conftest.$ac_ext <<_ACEOF
5256/* end confdefs.h.  */
5257$ac_includes_default
5258#include <$ac_header>
5259_ACEOF
5260rm -f conftest.$ac_objext
5261if { (ac_try="$ac_compile"
5262case "(($ac_try" in
5263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264  *) ac_try_echo=$ac_try;;
5265esac
5266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5267$as_echo "$ac_try_echo") >&5
5268  (eval "$ac_compile") 2>conftest.er1
5269  ac_status=$?
5270  grep -v '^ *+' conftest.er1 >conftest.err
5271  rm -f conftest.er1
5272  cat conftest.err >&5
5273  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274  (exit $ac_status); } && {
5275	 test -z "$ac_c_werror_flag" ||
5276	 test ! -s conftest.err
5277       } && test -s conftest.$ac_objext; then
5278  ac_header_compiler=yes
5279else
5280  $as_echo "$as_me: failed program was:" >&5
5281sed 's/^/| /' conftest.$ac_ext >&5
5282
5283	ac_header_compiler=no
5284fi
5285
5286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5288$as_echo "$ac_header_compiler" >&6; }
5289
5290# Is the header present?
5291{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5292$as_echo_n "checking $ac_header presence... " >&6; }
5293cat >conftest.$ac_ext <<_ACEOF
5294/* confdefs.h.  */
5295_ACEOF
5296cat confdefs.h >>conftest.$ac_ext
5297cat >>conftest.$ac_ext <<_ACEOF
5298/* end confdefs.h.  */
5299#include <$ac_header>
5300_ACEOF
5301if { (ac_try="$ac_cpp conftest.$ac_ext"
5302case "(($ac_try" in
5303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304  *) ac_try_echo=$ac_try;;
5305esac
5306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5307$as_echo "$ac_try_echo") >&5
5308  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5309  ac_status=$?
5310  grep -v '^ *+' conftest.er1 >conftest.err
5311  rm -f conftest.er1
5312  cat conftest.err >&5
5313  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314  (exit $ac_status); } >/dev/null && {
5315	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5316	 test ! -s conftest.err
5317       }; then
5318  ac_header_preproc=yes
5319else
5320  $as_echo "$as_me: failed program was:" >&5
5321sed 's/^/| /' conftest.$ac_ext >&5
5322
5323  ac_header_preproc=no
5324fi
5325
5326rm -f conftest.err conftest.$ac_ext
5327{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5328$as_echo "$ac_header_preproc" >&6; }
5329
5330# So?  What about this header?
5331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5332  yes:no: )
5333    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5334$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5335    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5336$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5337    ac_header_preproc=yes
5338    ;;
5339  no:yes:* )
5340    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5341$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5342    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5343$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5344    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5345$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5346    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5347$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5348    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5349$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5350    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5351$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5352    ( cat <<\_ASBOX
5353## ---------------------------------------------------------------------- ##
5354## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5355## ---------------------------------------------------------------------- ##
5356_ASBOX
5357     ) | sed "s/^/$as_me: WARNING:     /" >&2
5358    ;;
5359esac
5360{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5361$as_echo_n "checking for $ac_header... " >&6; }
5362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5363  $as_echo_n "(cached) " >&6
5364else
5365  eval "$as_ac_Header=\$ac_header_preproc"
5366fi
5367ac_res=`eval 'as_val=${'$as_ac_Header'}
5368		 $as_echo "$as_val"'`
5369	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5370$as_echo "$ac_res" >&6; }
5371
5372fi
5373as_val=`eval 'as_val=${'$as_ac_Header'}
5374		 $as_echo "$as_val"'`
5375   if test "x$as_val" = x""yes; then
5376  cat >>confdefs.h <<_ACEOF
5377#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5378_ACEOF
5379
5380fi
5381
5382done
5383
5384ac_ext=cpp
5385ac_cpp='$CXXCPP $CPPFLAGS'
5386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5389if test -z "$CXX"; then
5390  if test -n "$CCC"; then
5391    CXX=$CCC
5392  else
5393    if test -n "$ac_tool_prefix"; then
5394  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5395  do
5396    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5397set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5398{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5399$as_echo_n "checking for $ac_word... " >&6; }
5400if test "${ac_cv_prog_CXX+set}" = set; then
5401  $as_echo_n "(cached) " >&6
5402else
5403  if test -n "$CXX"; then
5404  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5405else
5406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH
5408do
5409  IFS=$as_save_IFS
5410  test -z "$as_dir" && as_dir=.
5411  for ac_exec_ext in '' $ac_executable_extensions; do
5412  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5413    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5414    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5415    break 2
5416  fi
5417done
5418done
5419IFS=$as_save_IFS
5420
5421fi
5422fi
5423CXX=$ac_cv_prog_CXX
5424if test -n "$CXX"; then
5425  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5426$as_echo "$CXX" >&6; }
5427else
5428  { $as_echo "$as_me:$LINENO: result: no" >&5
5429$as_echo "no" >&6; }
5430fi
5431
5432
5433    test -n "$CXX" && break
5434  done
5435fi
5436if test -z "$CXX"; then
5437  ac_ct_CXX=$CXX
5438  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5439do
5440  # Extract the first word of "$ac_prog", so it can be a program name with args.
5441set dummy $ac_prog; ac_word=$2
5442{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5443$as_echo_n "checking for $ac_word... " >&6; }
5444if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5445  $as_echo_n "(cached) " >&6
5446else
5447  if test -n "$ac_ct_CXX"; then
5448  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5449else
5450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451for as_dir in $PATH
5452do
5453  IFS=$as_save_IFS
5454  test -z "$as_dir" && as_dir=.
5455  for ac_exec_ext in '' $ac_executable_extensions; do
5456  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457    ac_cv_prog_ac_ct_CXX="$ac_prog"
5458    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5459    break 2
5460  fi
5461done
5462done
5463IFS=$as_save_IFS
5464
5465fi
5466fi
5467ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5468if test -n "$ac_ct_CXX"; then
5469  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5470$as_echo "$ac_ct_CXX" >&6; }
5471else
5472  { $as_echo "$as_me:$LINENO: result: no" >&5
5473$as_echo "no" >&6; }
5474fi
5475
5476
5477  test -n "$ac_ct_CXX" && break
5478done
5479
5480  if test "x$ac_ct_CXX" = x; then
5481    CXX="g++"
5482  else
5483    case $cross_compiling:$ac_tool_warned in
5484yes:)
5485{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5487ac_tool_warned=yes ;;
5488esac
5489    CXX=$ac_ct_CXX
5490  fi
5491fi
5492
5493  fi
5494fi
5495# Provide some information about the compiler.
5496$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5497set X $ac_compile
5498ac_compiler=$2
5499{ (ac_try="$ac_compiler --version >&5"
5500case "(($ac_try" in
5501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502  *) ac_try_echo=$ac_try;;
5503esac
5504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5505$as_echo "$ac_try_echo") >&5
5506  (eval "$ac_compiler --version >&5") 2>&5
5507  ac_status=$?
5508  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509  (exit $ac_status); }
5510{ (ac_try="$ac_compiler -v >&5"
5511case "(($ac_try" in
5512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513  *) ac_try_echo=$ac_try;;
5514esac
5515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5516$as_echo "$ac_try_echo") >&5
5517  (eval "$ac_compiler -v >&5") 2>&5
5518  ac_status=$?
5519  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520  (exit $ac_status); }
5521{ (ac_try="$ac_compiler -V >&5"
5522case "(($ac_try" in
5523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524  *) ac_try_echo=$ac_try;;
5525esac
5526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5527$as_echo "$ac_try_echo") >&5
5528  (eval "$ac_compiler -V >&5") 2>&5
5529  ac_status=$?
5530  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531  (exit $ac_status); }
5532
5533{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5534$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5535if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5536  $as_echo_n "(cached) " >&6
5537else
5538  cat >conftest.$ac_ext <<_ACEOF
5539/* confdefs.h.  */
5540_ACEOF
5541cat confdefs.h >>conftest.$ac_ext
5542cat >>conftest.$ac_ext <<_ACEOF
5543/* end confdefs.h.  */
5544
5545int
5546main ()
5547{
5548#ifndef __GNUC__
5549       choke me
5550#endif
5551
5552  ;
5553  return 0;
5554}
5555_ACEOF
5556rm -f conftest.$ac_objext
5557if { (ac_try="$ac_compile"
5558case "(($ac_try" in
5559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560  *) ac_try_echo=$ac_try;;
5561esac
5562eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5563$as_echo "$ac_try_echo") >&5
5564  (eval "$ac_compile") 2>conftest.er1
5565  ac_status=$?
5566  grep -v '^ *+' conftest.er1 >conftest.err
5567  rm -f conftest.er1
5568  cat conftest.err >&5
5569  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570  (exit $ac_status); } && {
5571	 test -z "$ac_cxx_werror_flag" ||
5572	 test ! -s conftest.err
5573       } && test -s conftest.$ac_objext; then
5574  ac_compiler_gnu=yes
5575else
5576  $as_echo "$as_me: failed program was:" >&5
5577sed 's/^/| /' conftest.$ac_ext >&5
5578
5579	ac_compiler_gnu=no
5580fi
5581
5582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5584
5585fi
5586{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5587$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5588if test $ac_compiler_gnu = yes; then
5589  GXX=yes
5590else
5591  GXX=
5592fi
5593ac_test_CXXFLAGS=${CXXFLAGS+set}
5594ac_save_CXXFLAGS=$CXXFLAGS
5595{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5596$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5597if test "${ac_cv_prog_cxx_g+set}" = set; then
5598  $as_echo_n "(cached) " >&6
5599else
5600  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5601   ac_cxx_werror_flag=yes
5602   ac_cv_prog_cxx_g=no
5603   CXXFLAGS="-g"
5604   cat >conftest.$ac_ext <<_ACEOF
5605/* confdefs.h.  */
5606_ACEOF
5607cat confdefs.h >>conftest.$ac_ext
5608cat >>conftest.$ac_ext <<_ACEOF
5609/* end confdefs.h.  */
5610
5611int
5612main ()
5613{
5614
5615  ;
5616  return 0;
5617}
5618_ACEOF
5619rm -f conftest.$ac_objext
5620if { (ac_try="$ac_compile"
5621case "(($ac_try" in
5622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623  *) ac_try_echo=$ac_try;;
5624esac
5625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5626$as_echo "$ac_try_echo") >&5
5627  (eval "$ac_compile") 2>conftest.er1
5628  ac_status=$?
5629  grep -v '^ *+' conftest.er1 >conftest.err
5630  rm -f conftest.er1
5631  cat conftest.err >&5
5632  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633  (exit $ac_status); } && {
5634	 test -z "$ac_cxx_werror_flag" ||
5635	 test ! -s conftest.err
5636       } && test -s conftest.$ac_objext; then
5637  ac_cv_prog_cxx_g=yes
5638else
5639  $as_echo "$as_me: failed program was:" >&5
5640sed 's/^/| /' conftest.$ac_ext >&5
5641
5642	CXXFLAGS=""
5643      cat >conftest.$ac_ext <<_ACEOF
5644/* confdefs.h.  */
5645_ACEOF
5646cat confdefs.h >>conftest.$ac_ext
5647cat >>conftest.$ac_ext <<_ACEOF
5648/* end confdefs.h.  */
5649
5650int
5651main ()
5652{
5653
5654  ;
5655  return 0;
5656}
5657_ACEOF
5658rm -f conftest.$ac_objext
5659if { (ac_try="$ac_compile"
5660case "(($ac_try" in
5661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662  *) ac_try_echo=$ac_try;;
5663esac
5664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5665$as_echo "$ac_try_echo") >&5
5666  (eval "$ac_compile") 2>conftest.er1
5667  ac_status=$?
5668  grep -v '^ *+' conftest.er1 >conftest.err
5669  rm -f conftest.er1
5670  cat conftest.err >&5
5671  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672  (exit $ac_status); } && {
5673	 test -z "$ac_cxx_werror_flag" ||
5674	 test ! -s conftest.err
5675       } && test -s conftest.$ac_objext; then
5676  :
5677else
5678  $as_echo "$as_me: failed program was:" >&5
5679sed 's/^/| /' conftest.$ac_ext >&5
5680
5681	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5682	 CXXFLAGS="-g"
5683	 cat >conftest.$ac_ext <<_ACEOF
5684/* confdefs.h.  */
5685_ACEOF
5686cat confdefs.h >>conftest.$ac_ext
5687cat >>conftest.$ac_ext <<_ACEOF
5688/* end confdefs.h.  */
5689
5690int
5691main ()
5692{
5693
5694  ;
5695  return 0;
5696}
5697_ACEOF
5698rm -f conftest.$ac_objext
5699if { (ac_try="$ac_compile"
5700case "(($ac_try" in
5701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702  *) ac_try_echo=$ac_try;;
5703esac
5704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5705$as_echo "$ac_try_echo") >&5
5706  (eval "$ac_compile") 2>conftest.er1
5707  ac_status=$?
5708  grep -v '^ *+' conftest.er1 >conftest.err
5709  rm -f conftest.er1
5710  cat conftest.err >&5
5711  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712  (exit $ac_status); } && {
5713	 test -z "$ac_cxx_werror_flag" ||
5714	 test ! -s conftest.err
5715       } && test -s conftest.$ac_objext; then
5716  ac_cv_prog_cxx_g=yes
5717else
5718  $as_echo "$as_me: failed program was:" >&5
5719sed 's/^/| /' conftest.$ac_ext >&5
5720
5721
5722fi
5723
5724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725fi
5726
5727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5728fi
5729
5730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5731   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5732fi
5733{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5734$as_echo "$ac_cv_prog_cxx_g" >&6; }
5735if test "$ac_test_CXXFLAGS" = set; then
5736  CXXFLAGS=$ac_save_CXXFLAGS
5737elif test $ac_cv_prog_cxx_g = yes; then
5738  if test "$GXX" = yes; then
5739    CXXFLAGS="-g -O2"
5740  else
5741    CXXFLAGS="-g"
5742  fi
5743else
5744  if test "$GXX" = yes; then
5745    CXXFLAGS="-O2"
5746  else
5747    CXXFLAGS=
5748  fi
5749fi
5750ac_ext=cpp
5751ac_cpp='$CXXCPP $CPPFLAGS'
5752ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5753ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5754ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5755
5756depcc="$CXX"  am_compiler_list=
5757
5758{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5759$as_echo_n "checking dependency style of $depcc... " >&6; }
5760if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5761  $as_echo_n "(cached) " >&6
5762else
5763  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5764  # We make a subdir and do the tests there.  Otherwise we can end up
5765  # making bogus files that we don't know about and never remove.  For
5766  # instance it was reported that on HP-UX the gcc test will end up
5767  # making a dummy file named `D' -- because `-MD' means `put the output
5768  # in D'.
5769  mkdir conftest.dir
5770  # Copy depcomp to subdir because otherwise we won't find it if we're
5771  # using a relative directory.
5772  cp "$am_depcomp" conftest.dir
5773  cd conftest.dir
5774  # We will build objects and dependencies in a subdirectory because
5775  # it helps to detect inapplicable dependency modes.  For instance
5776  # both Tru64's cc and ICC support -MD to output dependencies as a
5777  # side effect of compilation, but ICC will put the dependencies in
5778  # the current directory while Tru64 will put them in the object
5779  # directory.
5780  mkdir sub
5781
5782  am_cv_CXX_dependencies_compiler_type=none
5783  if test "$am_compiler_list" = ""; then
5784     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5785  fi
5786  am__universal=false
5787  case " $depcc " in #(
5788     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5789     esac
5790
5791  for depmode in $am_compiler_list; do
5792    # Setup a source with many dependencies, because some compilers
5793    # like to wrap large dependency lists on column 80 (with \), and
5794    # we should not choose a depcomp mode which is confused by this.
5795    #
5796    # We need to recreate these files for each test, as the compiler may
5797    # overwrite some of them when testing with obscure command lines.
5798    # This happens at least with the AIX C compiler.
5799    : > sub/conftest.c
5800    for i in 1 2 3 4 5 6; do
5801      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5802      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5803      # Solaris 8's {/usr,}/bin/sh.
5804      touch sub/conftst$i.h
5805    done
5806    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5807
5808    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5809    # mode.  It turns out that the SunPro C++ compiler does not properly
5810    # handle `-M -o', and we need to detect this.  Also, some Intel
5811    # versions had trouble with output in subdirs
5812    am__obj=sub/conftest.${OBJEXT-o}
5813    am__minus_obj="-o $am__obj"
5814    case $depmode in
5815    gcc)
5816      # This depmode causes a compiler race in universal mode.
5817      test "$am__universal" = false || continue
5818      ;;
5819    nosideeffect)
5820      # after this tag, mechanisms are not by side-effect, so they'll
5821      # only be used when explicitly requested
5822      if test "x$enable_dependency_tracking" = xyes; then
5823	continue
5824      else
5825	break
5826      fi
5827      ;;
5828    msvisualcpp | msvcmsys)
5829      # This compiler won't grok `-c -o', but also, the minuso test has
5830      # not run yet.  These depmodes are late enough in the game, and
5831      # so weak that their functioning should not be impacted.
5832      am__obj=conftest.${OBJEXT-o}
5833      am__minus_obj=
5834      ;;
5835    none) break ;;
5836    esac
5837    if depmode=$depmode \
5838       source=sub/conftest.c object=$am__obj \
5839       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5840       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5841         >/dev/null 2>conftest.err &&
5842       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5843       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5844       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5845       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5846      # icc doesn't choke on unknown options, it will just issue warnings
5847      # or remarks (even with -Werror).  So we grep stderr for any message
5848      # that says an option was ignored or not supported.
5849      # When given -MP, icc 7.0 and 7.1 complain thusly:
5850      #   icc: Command line warning: ignoring option '-M'; no argument required
5851      # The diagnosis changed in icc 8.0:
5852      #   icc: Command line remark: option '-MP' not supported
5853      if (grep 'ignoring option' conftest.err ||
5854          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5855        am_cv_CXX_dependencies_compiler_type=$depmode
5856        break
5857      fi
5858    fi
5859  done
5860
5861  cd ..
5862  rm -rf conftest.dir
5863else
5864  am_cv_CXX_dependencies_compiler_type=none
5865fi
5866
5867fi
5868{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5869$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5870CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5871
5872 if
5873  test "x$enable_dependency_tracking" != xno \
5874  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5875  am__fastdepCXX_TRUE=
5876  am__fastdepCXX_FALSE='#'
5877else
5878  am__fastdepCXX_TRUE='#'
5879  am__fastdepCXX_FALSE=
5880fi
5881
5882
5883
5884
5885if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5886    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5887    (test "X$CXX" != "Xg++"))) ; then
5888  ac_ext=cpp
5889ac_cpp='$CXXCPP $CPPFLAGS'
5890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5893{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5894$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5895if test -z "$CXXCPP"; then
5896  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5897  $as_echo_n "(cached) " >&6
5898else
5899      # Double quotes because CXXCPP needs to be expanded
5900    for CXXCPP in "$CXX -E" "/lib/cpp"
5901    do
5902      ac_preproc_ok=false
5903for ac_cxx_preproc_warn_flag in '' yes
5904do
5905  # Use a header file that comes with gcc, so configuring glibc
5906  # with a fresh cross-compiler works.
5907  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5908  # <limits.h> exists even on freestanding compilers.
5909  # On the NeXT, cc -E runs the code through the compiler's parser,
5910  # not just through cpp. "Syntax error" is here to catch this case.
5911  cat >conftest.$ac_ext <<_ACEOF
5912/* confdefs.h.  */
5913_ACEOF
5914cat confdefs.h >>conftest.$ac_ext
5915cat >>conftest.$ac_ext <<_ACEOF
5916/* end confdefs.h.  */
5917#ifdef __STDC__
5918# include <limits.h>
5919#else
5920# include <assert.h>
5921#endif
5922		     Syntax error
5923_ACEOF
5924if { (ac_try="$ac_cpp conftest.$ac_ext"
5925case "(($ac_try" in
5926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927  *) ac_try_echo=$ac_try;;
5928esac
5929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5930$as_echo "$ac_try_echo") >&5
5931  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5932  ac_status=$?
5933  grep -v '^ *+' conftest.er1 >conftest.err
5934  rm -f conftest.er1
5935  cat conftest.err >&5
5936  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937  (exit $ac_status); } >/dev/null && {
5938	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5939	 test ! -s conftest.err
5940       }; then
5941  :
5942else
5943  $as_echo "$as_me: failed program was:" >&5
5944sed 's/^/| /' conftest.$ac_ext >&5
5945
5946  # Broken: fails on valid input.
5947continue
5948fi
5949
5950rm -f conftest.err conftest.$ac_ext
5951
5952  # OK, works on sane cases.  Now check whether nonexistent headers
5953  # can be detected and how.
5954  cat >conftest.$ac_ext <<_ACEOF
5955/* confdefs.h.  */
5956_ACEOF
5957cat confdefs.h >>conftest.$ac_ext
5958cat >>conftest.$ac_ext <<_ACEOF
5959/* end confdefs.h.  */
5960#include <ac_nonexistent.h>
5961_ACEOF
5962if { (ac_try="$ac_cpp conftest.$ac_ext"
5963case "(($ac_try" in
5964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965  *) ac_try_echo=$ac_try;;
5966esac
5967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5968$as_echo "$ac_try_echo") >&5
5969  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5970  ac_status=$?
5971  grep -v '^ *+' conftest.er1 >conftest.err
5972  rm -f conftest.er1
5973  cat conftest.err >&5
5974  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975  (exit $ac_status); } >/dev/null && {
5976	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5977	 test ! -s conftest.err
5978       }; then
5979  # Broken: success on invalid input.
5980continue
5981else
5982  $as_echo "$as_me: failed program was:" >&5
5983sed 's/^/| /' conftest.$ac_ext >&5
5984
5985  # Passes both tests.
5986ac_preproc_ok=:
5987break
5988fi
5989
5990rm -f conftest.err conftest.$ac_ext
5991
5992done
5993# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5994rm -f conftest.err conftest.$ac_ext
5995if $ac_preproc_ok; then
5996  break
5997fi
5998
5999    done
6000    ac_cv_prog_CXXCPP=$CXXCPP
6001
6002fi
6003  CXXCPP=$ac_cv_prog_CXXCPP
6004else
6005  ac_cv_prog_CXXCPP=$CXXCPP
6006fi
6007{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6008$as_echo "$CXXCPP" >&6; }
6009ac_preproc_ok=false
6010for ac_cxx_preproc_warn_flag in '' yes
6011do
6012  # Use a header file that comes with gcc, so configuring glibc
6013  # with a fresh cross-compiler works.
6014  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6015  # <limits.h> exists even on freestanding compilers.
6016  # On the NeXT, cc -E runs the code through the compiler's parser,
6017  # not just through cpp. "Syntax error" is here to catch this case.
6018  cat >conftest.$ac_ext <<_ACEOF
6019/* confdefs.h.  */
6020_ACEOF
6021cat confdefs.h >>conftest.$ac_ext
6022cat >>conftest.$ac_ext <<_ACEOF
6023/* end confdefs.h.  */
6024#ifdef __STDC__
6025# include <limits.h>
6026#else
6027# include <assert.h>
6028#endif
6029		     Syntax error
6030_ACEOF
6031if { (ac_try="$ac_cpp conftest.$ac_ext"
6032case "(($ac_try" in
6033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034  *) ac_try_echo=$ac_try;;
6035esac
6036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6037$as_echo "$ac_try_echo") >&5
6038  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6039  ac_status=$?
6040  grep -v '^ *+' conftest.er1 >conftest.err
6041  rm -f conftest.er1
6042  cat conftest.err >&5
6043  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044  (exit $ac_status); } >/dev/null && {
6045	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6046	 test ! -s conftest.err
6047       }; then
6048  :
6049else
6050  $as_echo "$as_me: failed program was:" >&5
6051sed 's/^/| /' conftest.$ac_ext >&5
6052
6053  # Broken: fails on valid input.
6054continue
6055fi
6056
6057rm -f conftest.err conftest.$ac_ext
6058
6059  # OK, works on sane cases.  Now check whether nonexistent headers
6060  # can be detected and how.
6061  cat >conftest.$ac_ext <<_ACEOF
6062/* confdefs.h.  */
6063_ACEOF
6064cat confdefs.h >>conftest.$ac_ext
6065cat >>conftest.$ac_ext <<_ACEOF
6066/* end confdefs.h.  */
6067#include <ac_nonexistent.h>
6068_ACEOF
6069if { (ac_try="$ac_cpp conftest.$ac_ext"
6070case "(($ac_try" in
6071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072  *) ac_try_echo=$ac_try;;
6073esac
6074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6075$as_echo "$ac_try_echo") >&5
6076  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6077  ac_status=$?
6078  grep -v '^ *+' conftest.er1 >conftest.err
6079  rm -f conftest.er1
6080  cat conftest.err >&5
6081  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082  (exit $ac_status); } >/dev/null && {
6083	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6084	 test ! -s conftest.err
6085       }; then
6086  # Broken: success on invalid input.
6087continue
6088else
6089  $as_echo "$as_me: failed program was:" >&5
6090sed 's/^/| /' conftest.$ac_ext >&5
6091
6092  # Passes both tests.
6093ac_preproc_ok=:
6094break
6095fi
6096
6097rm -f conftest.err conftest.$ac_ext
6098
6099done
6100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6101rm -f conftest.err conftest.$ac_ext
6102if $ac_preproc_ok; then
6103  :
6104else
6105  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6107{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6108See \`config.log' for more details." >&5
6109$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6110See \`config.log' for more details." >&2;}
6111   { (exit 1); exit 1; }; }; }
6112fi
6113
6114ac_ext=cpp
6115ac_cpp='$CXXCPP $CPPFLAGS'
6116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6119
6120fi
6121
6122
6123ac_ext=f
6124ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6125ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6126ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6127if test -n "$ac_tool_prefix"; then
6128  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
6129  do
6130    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6131set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6132{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6133$as_echo_n "checking for $ac_word... " >&6; }
6134if test "${ac_cv_prog_F77+set}" = set; then
6135  $as_echo_n "(cached) " >&6
6136else
6137  if test -n "$F77"; then
6138  ac_cv_prog_F77="$F77" # Let the user override the test.
6139else
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143  IFS=$as_save_IFS
6144  test -z "$as_dir" && as_dir=.
6145  for ac_exec_ext in '' $ac_executable_extensions; do
6146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6147    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6148    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6149    break 2
6150  fi
6151done
6152done
6153IFS=$as_save_IFS
6154
6155fi
6156fi
6157F77=$ac_cv_prog_F77
6158if test -n "$F77"; then
6159  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6160$as_echo "$F77" >&6; }
6161else
6162  { $as_echo "$as_me:$LINENO: result: no" >&5
6163$as_echo "no" >&6; }
6164fi
6165
6166
6167    test -n "$F77" && break
6168  done
6169fi
6170if test -z "$F77"; then
6171  ac_ct_F77=$F77
6172  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
6173do
6174  # Extract the first word of "$ac_prog", so it can be a program name with args.
6175set dummy $ac_prog; ac_word=$2
6176{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6177$as_echo_n "checking for $ac_word... " >&6; }
6178if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6179  $as_echo_n "(cached) " >&6
6180else
6181  if test -n "$ac_ct_F77"; then
6182  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187  IFS=$as_save_IFS
6188  test -z "$as_dir" && as_dir=.
6189  for ac_exec_ext in '' $ac_executable_extensions; do
6190  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6191    ac_cv_prog_ac_ct_F77="$ac_prog"
6192    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193    break 2
6194  fi
6195done
6196done
6197IFS=$as_save_IFS
6198
6199fi
6200fi
6201ac_ct_F77=$ac_cv_prog_ac_ct_F77
6202if test -n "$ac_ct_F77"; then
6203  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6204$as_echo "$ac_ct_F77" >&6; }
6205else
6206  { $as_echo "$as_me:$LINENO: result: no" >&5
6207$as_echo "no" >&6; }
6208fi
6209
6210
6211  test -n "$ac_ct_F77" && break
6212done
6213
6214  if test "x$ac_ct_F77" = x; then
6215    F77=""
6216  else
6217    case $cross_compiling:$ac_tool_warned in
6218yes:)
6219{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221ac_tool_warned=yes ;;
6222esac
6223    F77=$ac_ct_F77
6224  fi
6225fi
6226
6227
6228# Provide some information about the compiler.
6229$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6230set X $ac_compile
6231ac_compiler=$2
6232{ (ac_try="$ac_compiler --version >&5"
6233case "(($ac_try" in
6234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235  *) ac_try_echo=$ac_try;;
6236esac
6237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6238$as_echo "$ac_try_echo") >&5
6239  (eval "$ac_compiler --version >&5") 2>&5
6240  ac_status=$?
6241  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242  (exit $ac_status); }
6243{ (ac_try="$ac_compiler -v >&5"
6244case "(($ac_try" in
6245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246  *) ac_try_echo=$ac_try;;
6247esac
6248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6249$as_echo "$ac_try_echo") >&5
6250  (eval "$ac_compiler -v >&5") 2>&5
6251  ac_status=$?
6252  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253  (exit $ac_status); }
6254{ (ac_try="$ac_compiler -V >&5"
6255case "(($ac_try" in
6256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257  *) ac_try_echo=$ac_try;;
6258esac
6259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6260$as_echo "$ac_try_echo") >&5
6261  (eval "$ac_compiler -V >&5") 2>&5
6262  ac_status=$?
6263  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264  (exit $ac_status); }
6265rm -f a.out
6266
6267# If we don't use `.F' as extension, the preprocessor is not run on the
6268# input file.  (Note that this only needs to work for GNU compilers.)
6269ac_save_ext=$ac_ext
6270ac_ext=F
6271{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6272$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6273if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6274  $as_echo_n "(cached) " >&6
6275else
6276  cat >conftest.$ac_ext <<_ACEOF
6277      program main
6278#ifndef __GNUC__
6279       choke me
6280#endif
6281
6282      end
6283_ACEOF
6284rm -f conftest.$ac_objext
6285if { (ac_try="$ac_compile"
6286case "(($ac_try" in
6287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288  *) ac_try_echo=$ac_try;;
6289esac
6290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6291$as_echo "$ac_try_echo") >&5
6292  (eval "$ac_compile") 2>conftest.er1
6293  ac_status=$?
6294  grep -v '^ *+' conftest.er1 >conftest.err
6295  rm -f conftest.er1
6296  cat conftest.err >&5
6297  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298  (exit $ac_status); } && {
6299	 test -z "$ac_f77_werror_flag" ||
6300	 test ! -s conftest.err
6301       } && test -s conftest.$ac_objext; then
6302  ac_compiler_gnu=yes
6303else
6304  $as_echo "$as_me: failed program was:" >&5
6305sed 's/^/| /' conftest.$ac_ext >&5
6306
6307	ac_compiler_gnu=no
6308fi
6309
6310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6312
6313fi
6314{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6315$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6316ac_ext=$ac_save_ext
6317ac_test_FFLAGS=${FFLAGS+set}
6318ac_save_FFLAGS=$FFLAGS
6319FFLAGS=
6320{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6321$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6322if test "${ac_cv_prog_f77_g+set}" = set; then
6323  $as_echo_n "(cached) " >&6
6324else
6325  FFLAGS=-g
6326cat >conftest.$ac_ext <<_ACEOF
6327      program main
6328
6329      end
6330_ACEOF
6331rm -f conftest.$ac_objext
6332if { (ac_try="$ac_compile"
6333case "(($ac_try" in
6334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335  *) ac_try_echo=$ac_try;;
6336esac
6337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6338$as_echo "$ac_try_echo") >&5
6339  (eval "$ac_compile") 2>conftest.er1
6340  ac_status=$?
6341  grep -v '^ *+' conftest.er1 >conftest.err
6342  rm -f conftest.er1
6343  cat conftest.err >&5
6344  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345  (exit $ac_status); } && {
6346	 test -z "$ac_f77_werror_flag" ||
6347	 test ! -s conftest.err
6348       } && test -s conftest.$ac_objext; then
6349  ac_cv_prog_f77_g=yes
6350else
6351  $as_echo "$as_me: failed program was:" >&5
6352sed 's/^/| /' conftest.$ac_ext >&5
6353
6354	ac_cv_prog_f77_g=no
6355fi
6356
6357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358
6359fi
6360{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6361$as_echo "$ac_cv_prog_f77_g" >&6; }
6362if test "$ac_test_FFLAGS" = set; then
6363  FFLAGS=$ac_save_FFLAGS
6364elif test $ac_cv_prog_f77_g = yes; then
6365  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6366    FFLAGS="-g -O2"
6367  else
6368    FFLAGS="-g"
6369  fi
6370else
6371  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6372    FFLAGS="-O2"
6373  else
6374    FFLAGS=
6375  fi
6376fi
6377
6378if test $ac_compiler_gnu = yes; then
6379  G77=yes
6380else
6381  G77=
6382fi
6383ac_ext=c
6384ac_cpp='$CPP $CPPFLAGS'
6385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387ac_compiler_gnu=$ac_cv_c_compiler_gnu
6388
6389
6390
6391# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6392# find the maximum length of command line arguments
6393{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6394$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6395if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6396  $as_echo_n "(cached) " >&6
6397else
6398    i=0
6399  teststring="ABCD"
6400
6401  case $build_os in
6402  msdosdjgpp*)
6403    # On DJGPP, this test can blow up pretty badly due to problems in libc
6404    # (any single argument exceeding 2000 bytes causes a buffer overrun
6405    # during glob expansion).  Even if it were fixed, the result of this
6406    # check would be larger than it should be.
6407    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6408    ;;
6409
6410  gnu*)
6411    # Under GNU Hurd, this test is not required because there is
6412    # no limit to the length of command line arguments.
6413    # Libtool will interpret -1 as no limit whatsoever
6414    lt_cv_sys_max_cmd_len=-1;
6415    ;;
6416
6417  cygwin* | mingw*)
6418    # On Win9x/ME, this test blows up -- it succeeds, but takes
6419    # about 5 minutes as the teststring grows exponentially.
6420    # Worse, since 9x/ME are not pre-emptively multitasking,
6421    # you end up with a "frozen" computer, even though with patience
6422    # the test eventually succeeds (with a max line length of 256k).
6423    # Instead, let's just punt: use the minimum linelength reported by
6424    # all of the supported platforms: 8192 (on NT/2K/XP).
6425    lt_cv_sys_max_cmd_len=8192;
6426    ;;
6427
6428  amigaos*)
6429    # On AmigaOS with pdksh, this test takes hours, literally.
6430    # So we just punt and use a minimum line length of 8192.
6431    lt_cv_sys_max_cmd_len=8192;
6432    ;;
6433
6434  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6435    # This has been around since 386BSD, at least.  Likely further.
6436    if test -x /sbin/sysctl; then
6437      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6438    elif test -x /usr/sbin/sysctl; then
6439      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6440    else
6441      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6442    fi
6443    # And add a safety zone
6444    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6445    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6446    ;;
6447
6448  interix*)
6449    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6450    lt_cv_sys_max_cmd_len=196608
6451    ;;
6452
6453  osf*)
6454    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6455    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6456    # nice to cause kernel panics so lets avoid the loop below.
6457    # First set a reasonable default.
6458    lt_cv_sys_max_cmd_len=16384
6459    #
6460    if test -x /sbin/sysconfig; then
6461      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6462        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6463      esac
6464    fi
6465    ;;
6466  sco3.2v5*)
6467    lt_cv_sys_max_cmd_len=102400
6468    ;;
6469  sysv5* | sco5v6* | sysv4.2uw2*)
6470    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6471    if test -n "$kargmax"; then
6472      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6473    else
6474      lt_cv_sys_max_cmd_len=32768
6475    fi
6476    ;;
6477  *)
6478    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6479    if test -n "$lt_cv_sys_max_cmd_len"; then
6480      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6481      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6482    else
6483      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6484      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6485	       = "XX$teststring") >/dev/null 2>&1 &&
6486	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6487	      lt_cv_sys_max_cmd_len=$new_result &&
6488	      test $i != 17 # 1/2 MB should be enough
6489      do
6490        i=`expr $i + 1`
6491        teststring=$teststring$teststring
6492      done
6493      teststring=
6494      # Add a significant safety factor because C++ compilers can tack on massive
6495      # amounts of additional arguments before passing them to the linker.
6496      # It appears as though 1/2 is a usable value.
6497      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6498    fi
6499    ;;
6500  esac
6501
6502fi
6503
6504if test -n $lt_cv_sys_max_cmd_len ; then
6505  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6506$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6507else
6508  { $as_echo "$as_me:$LINENO: result: none" >&5
6509$as_echo "none" >&6; }
6510fi
6511
6512
6513
6514
6515
6516# Check for command to grab the raw symbol name followed by C symbol from nm.
6517{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6518$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6519if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6520  $as_echo_n "(cached) " >&6
6521else
6522
6523# These are sane defaults that work on at least a few old systems.
6524# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6525
6526# Character class describing NM global symbol codes.
6527symcode='[BCDEGRST]'
6528
6529# Regexp to match symbols that can be accessed directly from C.
6530sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6531
6532# Transform an extracted symbol line into a proper C declaration
6533lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6534
6535# Transform an extracted symbol line into symbol name and symbol address
6536lt_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'"
6537
6538# Define system-specific variables.
6539case $host_os in
6540aix*)
6541  symcode='[BCDT]'
6542  ;;
6543cygwin* | mingw* | pw32*)
6544  symcode='[ABCDGISTW]'
6545  ;;
6546hpux*) # Its linker distinguishes data from code symbols
6547  if test "$host_cpu" = ia64; then
6548    symcode='[ABCDEGRST]'
6549  fi
6550  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6551  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'"
6552  ;;
6553linux* | k*bsd*-gnu)
6554  if test "$host_cpu" = ia64; then
6555    symcode='[ABCDGIRSTW]'
6556    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6557    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'"
6558  fi
6559  ;;
6560irix* | nonstopux*)
6561  symcode='[BCDEGRST]'
6562  ;;
6563osf*)
6564  symcode='[BCDEGQRST]'
6565  ;;
6566solaris*)
6567  symcode='[BDRT]'
6568  ;;
6569sco3.2v5*)
6570  symcode='[DT]'
6571  ;;
6572sysv4.2uw2*)
6573  symcode='[DT]'
6574  ;;
6575sysv5* | sco5v6* | unixware* | OpenUNIX*)
6576  symcode='[ABDT]'
6577  ;;
6578sysv4)
6579  symcode='[DFNSTU]'
6580  ;;
6581esac
6582
6583# Handle CRLF in mingw tool chain
6584opt_cr=
6585case $build_os in
6586mingw*)
6587  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6588  ;;
6589esac
6590
6591# If we're using GNU nm, then use its standard symbol codes.
6592case `$NM -V 2>&1` in
6593*GNU* | *'with BFD'*)
6594  symcode='[ABCDGIRSTW]' ;;
6595esac
6596
6597# Try without a prefix undercore, then with it.
6598for ac_symprfx in "" "_"; do
6599
6600  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6601  symxfrm="\\1 $ac_symprfx\\2 \\2"
6602
6603  # Write the raw and C identifiers.
6604  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6605
6606  # Check to see that the pipe works correctly.
6607  pipe_works=no
6608
6609  rm -f conftest*
6610  cat > conftest.$ac_ext <<EOF
6611#ifdef __cplusplus
6612extern "C" {
6613#endif
6614char nm_test_var;
6615void nm_test_func(){}
6616#ifdef __cplusplus
6617}
6618#endif
6619int main(){nm_test_var='a';nm_test_func();return(0);}
6620EOF
6621
6622  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6623  (eval $ac_compile) 2>&5
6624  ac_status=$?
6625  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626  (exit $ac_status); }; then
6627    # Now try to grab the symbols.
6628    nlist=conftest.nm
6629    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6630  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6631  ac_status=$?
6632  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633  (exit $ac_status); } && test -s "$nlist"; then
6634      # Try sorting and uniquifying the output.
6635      if sort "$nlist" | uniq > "$nlist"T; then
6636	mv -f "$nlist"T "$nlist"
6637      else
6638	rm -f "$nlist"T
6639      fi
6640
6641      # Make sure that we snagged all the symbols we need.
6642      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6643	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6644	  cat <<EOF > conftest.$ac_ext
6645#ifdef __cplusplus
6646extern "C" {
6647#endif
6648
6649EOF
6650	  # Now generate the symbol file.
6651	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6652
6653	  cat <<EOF >> conftest.$ac_ext
6654#if defined (__STDC__) && __STDC__
6655# define lt_ptr_t void *
6656#else
6657# define lt_ptr_t char *
6658# define const
6659#endif
6660
6661/* The mapping between symbol names and symbols. */
6662const struct {
6663  const char *name;
6664  lt_ptr_t address;
6665}
6666lt_preloaded_symbols[] =
6667{
6668EOF
6669	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6670	  cat <<\EOF >> conftest.$ac_ext
6671  {0, (lt_ptr_t) 0}
6672};
6673
6674#ifdef __cplusplus
6675}
6676#endif
6677EOF
6678	  # Now try linking the two files.
6679	  mv conftest.$ac_objext conftstm.$ac_objext
6680	  lt_save_LIBS="$LIBS"
6681	  lt_save_CFLAGS="$CFLAGS"
6682	  LIBS="conftstm.$ac_objext"
6683	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6684	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6685  (eval $ac_link) 2>&5
6686  ac_status=$?
6687  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6689	    pipe_works=yes
6690	  fi
6691	  LIBS="$lt_save_LIBS"
6692	  CFLAGS="$lt_save_CFLAGS"
6693	else
6694	  echo "cannot find nm_test_func in $nlist" >&5
6695	fi
6696      else
6697	echo "cannot find nm_test_var in $nlist" >&5
6698      fi
6699    else
6700      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6701    fi
6702  else
6703    echo "$progname: failed program was:" >&5
6704    cat conftest.$ac_ext >&5
6705  fi
6706  rm -rf conftest* conftst*
6707
6708  # Do not use the global_symbol_pipe unless it works.
6709  if test "$pipe_works" = yes; then
6710    break
6711  else
6712    lt_cv_sys_global_symbol_pipe=
6713  fi
6714done
6715
6716fi
6717
6718if test -z "$lt_cv_sys_global_symbol_pipe"; then
6719  lt_cv_sys_global_symbol_to_cdecl=
6720fi
6721if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6722  { $as_echo "$as_me:$LINENO: result: failed" >&5
6723$as_echo "failed" >&6; }
6724else
6725  { $as_echo "$as_me:$LINENO: result: ok" >&5
6726$as_echo "ok" >&6; }
6727fi
6728
6729{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6730$as_echo_n "checking for objdir... " >&6; }
6731if test "${lt_cv_objdir+set}" = set; then
6732  $as_echo_n "(cached) " >&6
6733else
6734  rm -f .libs 2>/dev/null
6735mkdir .libs 2>/dev/null
6736if test -d .libs; then
6737  lt_cv_objdir=.libs
6738else
6739  # MS-DOS does not allow filenames that begin with a dot.
6740  lt_cv_objdir=_libs
6741fi
6742rmdir .libs 2>/dev/null
6743fi
6744{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6745$as_echo "$lt_cv_objdir" >&6; }
6746objdir=$lt_cv_objdir
6747
6748
6749
6750
6751
6752case $host_os in
6753aix3*)
6754  # AIX sometimes has problems with the GCC collect2 program.  For some
6755  # reason, if we set the COLLECT_NAMES environment variable, the problems
6756  # vanish in a puff of smoke.
6757  if test "X${COLLECT_NAMES+set}" != Xset; then
6758    COLLECT_NAMES=
6759    export COLLECT_NAMES
6760  fi
6761  ;;
6762esac
6763
6764# Sed substitution that helps us do robust quoting.  It backslashifies
6765# metacharacters that are still active within double-quoted strings.
6766Xsed='sed -e 1s/^X//'
6767sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6768
6769# Same as above, but do not quote variable references.
6770double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6771
6772# Sed substitution to delay expansion of an escaped shell variable in a
6773# double_quote_subst'ed string.
6774delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6775
6776# Sed substitution to avoid accidental globbing in evaled expressions
6777no_glob_subst='s/\*/\\\*/g'
6778
6779# Constants:
6780rm="rm -f"
6781
6782# Global variables:
6783default_ofile=libtool
6784can_build_shared=yes
6785
6786# All known linkers require a `.a' archive for static linking (except MSVC,
6787# which needs '.lib').
6788libext=a
6789ltmain="$ac_aux_dir/ltmain.sh"
6790ofile="$default_ofile"
6791with_gnu_ld="$lt_cv_prog_gnu_ld"
6792
6793if test -n "$ac_tool_prefix"; then
6794  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6795set dummy ${ac_tool_prefix}ar; ac_word=$2
6796{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6797$as_echo_n "checking for $ac_word... " >&6; }
6798if test "${ac_cv_prog_AR+set}" = set; then
6799  $as_echo_n "(cached) " >&6
6800else
6801  if test -n "$AR"; then
6802  ac_cv_prog_AR="$AR" # Let the user override the test.
6803else
6804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805for as_dir in $PATH
6806do
6807  IFS=$as_save_IFS
6808  test -z "$as_dir" && as_dir=.
6809  for ac_exec_ext in '' $ac_executable_extensions; do
6810  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6811    ac_cv_prog_AR="${ac_tool_prefix}ar"
6812    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813    break 2
6814  fi
6815done
6816done
6817IFS=$as_save_IFS
6818
6819fi
6820fi
6821AR=$ac_cv_prog_AR
6822if test -n "$AR"; then
6823  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6824$as_echo "$AR" >&6; }
6825else
6826  { $as_echo "$as_me:$LINENO: result: no" >&5
6827$as_echo "no" >&6; }
6828fi
6829
6830
6831fi
6832if test -z "$ac_cv_prog_AR"; then
6833  ac_ct_AR=$AR
6834  # Extract the first word of "ar", so it can be a program name with args.
6835set dummy ar; ac_word=$2
6836{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6837$as_echo_n "checking for $ac_word... " >&6; }
6838if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6839  $as_echo_n "(cached) " >&6
6840else
6841  if test -n "$ac_ct_AR"; then
6842  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6843else
6844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845for as_dir in $PATH
6846do
6847  IFS=$as_save_IFS
6848  test -z "$as_dir" && as_dir=.
6849  for ac_exec_ext in '' $ac_executable_extensions; do
6850  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6851    ac_cv_prog_ac_ct_AR="ar"
6852    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853    break 2
6854  fi
6855done
6856done
6857IFS=$as_save_IFS
6858
6859fi
6860fi
6861ac_ct_AR=$ac_cv_prog_ac_ct_AR
6862if test -n "$ac_ct_AR"; then
6863  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6864$as_echo "$ac_ct_AR" >&6; }
6865else
6866  { $as_echo "$as_me:$LINENO: result: no" >&5
6867$as_echo "no" >&6; }
6868fi
6869
6870  if test "x$ac_ct_AR" = x; then
6871    AR="false"
6872  else
6873    case $cross_compiling:$ac_tool_warned in
6874yes:)
6875{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6877ac_tool_warned=yes ;;
6878esac
6879    AR=$ac_ct_AR
6880  fi
6881else
6882  AR="$ac_cv_prog_AR"
6883fi
6884
6885if test -n "$ac_tool_prefix"; then
6886  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6887set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6888{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6889$as_echo_n "checking for $ac_word... " >&6; }
6890if test "${ac_cv_prog_RANLIB+set}" = set; then
6891  $as_echo_n "(cached) " >&6
6892else
6893  if test -n "$RANLIB"; then
6894  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6895else
6896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897for as_dir in $PATH
6898do
6899  IFS=$as_save_IFS
6900  test -z "$as_dir" && as_dir=.
6901  for ac_exec_ext in '' $ac_executable_extensions; do
6902  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6903    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6904    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905    break 2
6906  fi
6907done
6908done
6909IFS=$as_save_IFS
6910
6911fi
6912fi
6913RANLIB=$ac_cv_prog_RANLIB
6914if test -n "$RANLIB"; then
6915  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6916$as_echo "$RANLIB" >&6; }
6917else
6918  { $as_echo "$as_me:$LINENO: result: no" >&5
6919$as_echo "no" >&6; }
6920fi
6921
6922
6923fi
6924if test -z "$ac_cv_prog_RANLIB"; then
6925  ac_ct_RANLIB=$RANLIB
6926  # Extract the first word of "ranlib", so it can be a program name with args.
6927set dummy ranlib; ac_word=$2
6928{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6929$as_echo_n "checking for $ac_word... " >&6; }
6930if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6931  $as_echo_n "(cached) " >&6
6932else
6933  if test -n "$ac_ct_RANLIB"; then
6934  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6935else
6936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937for as_dir in $PATH
6938do
6939  IFS=$as_save_IFS
6940  test -z "$as_dir" && as_dir=.
6941  for ac_exec_ext in '' $ac_executable_extensions; do
6942  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6943    ac_cv_prog_ac_ct_RANLIB="ranlib"
6944    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945    break 2
6946  fi
6947done
6948done
6949IFS=$as_save_IFS
6950
6951fi
6952fi
6953ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6954if test -n "$ac_ct_RANLIB"; then
6955  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6956$as_echo "$ac_ct_RANLIB" >&6; }
6957else
6958  { $as_echo "$as_me:$LINENO: result: no" >&5
6959$as_echo "no" >&6; }
6960fi
6961
6962  if test "x$ac_ct_RANLIB" = x; then
6963    RANLIB=":"
6964  else
6965    case $cross_compiling:$ac_tool_warned in
6966yes:)
6967{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6969ac_tool_warned=yes ;;
6970esac
6971    RANLIB=$ac_ct_RANLIB
6972  fi
6973else
6974  RANLIB="$ac_cv_prog_RANLIB"
6975fi
6976
6977if test -n "$ac_tool_prefix"; then
6978  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6979set dummy ${ac_tool_prefix}strip; ac_word=$2
6980{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6981$as_echo_n "checking for $ac_word... " >&6; }
6982if test "${ac_cv_prog_STRIP+set}" = set; then
6983  $as_echo_n "(cached) " >&6
6984else
6985  if test -n "$STRIP"; then
6986  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6987else
6988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991  IFS=$as_save_IFS
6992  test -z "$as_dir" && as_dir=.
6993  for ac_exec_ext in '' $ac_executable_extensions; do
6994  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6995    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6996    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997    break 2
6998  fi
6999done
7000done
7001IFS=$as_save_IFS
7002
7003fi
7004fi
7005STRIP=$ac_cv_prog_STRIP
7006if test -n "$STRIP"; then
7007  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7008$as_echo "$STRIP" >&6; }
7009else
7010  { $as_echo "$as_me:$LINENO: result: no" >&5
7011$as_echo "no" >&6; }
7012fi
7013
7014
7015fi
7016if test -z "$ac_cv_prog_STRIP"; then
7017  ac_ct_STRIP=$STRIP
7018  # Extract the first word of "strip", so it can be a program name with args.
7019set dummy strip; ac_word=$2
7020{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7021$as_echo_n "checking for $ac_word... " >&6; }
7022if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7023  $as_echo_n "(cached) " >&6
7024else
7025  if test -n "$ac_ct_STRIP"; then
7026  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7027else
7028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029for as_dir in $PATH
7030do
7031  IFS=$as_save_IFS
7032  test -z "$as_dir" && as_dir=.
7033  for ac_exec_ext in '' $ac_executable_extensions; do
7034  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7035    ac_cv_prog_ac_ct_STRIP="strip"
7036    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7037    break 2
7038  fi
7039done
7040done
7041IFS=$as_save_IFS
7042
7043fi
7044fi
7045ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7046if test -n "$ac_ct_STRIP"; then
7047  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7048$as_echo "$ac_ct_STRIP" >&6; }
7049else
7050  { $as_echo "$as_me:$LINENO: result: no" >&5
7051$as_echo "no" >&6; }
7052fi
7053
7054  if test "x$ac_ct_STRIP" = x; then
7055    STRIP=":"
7056  else
7057    case $cross_compiling:$ac_tool_warned in
7058yes:)
7059{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7061ac_tool_warned=yes ;;
7062esac
7063    STRIP=$ac_ct_STRIP
7064  fi
7065else
7066  STRIP="$ac_cv_prog_STRIP"
7067fi
7068
7069
7070old_CC="$CC"
7071old_CFLAGS="$CFLAGS"
7072
7073# Set sane defaults for various variables
7074test -z "$AR" && AR=ar
7075test -z "$AR_FLAGS" && AR_FLAGS=cru
7076test -z "$AS" && AS=as
7077test -z "$CC" && CC=cc
7078test -z "$LTCC" && LTCC=$CC
7079test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7080test -z "$DLLTOOL" && DLLTOOL=dlltool
7081test -z "$LD" && LD=ld
7082test -z "$LN_S" && LN_S="ln -s"
7083test -z "$MAGIC_CMD" && MAGIC_CMD=file
7084test -z "$NM" && NM=nm
7085test -z "$SED" && SED=sed
7086test -z "$OBJDUMP" && OBJDUMP=objdump
7087test -z "$RANLIB" && RANLIB=:
7088test -z "$STRIP" && STRIP=:
7089test -z "$ac_objext" && ac_objext=o
7090
7091# Determine commands to create old-style static archives.
7092old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7093old_postinstall_cmds='chmod 644 $oldlib'
7094old_postuninstall_cmds=
7095
7096if test -n "$RANLIB"; then
7097  case $host_os in
7098  openbsd*)
7099    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7100    ;;
7101  *)
7102    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7103    ;;
7104  esac
7105  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7106fi
7107
7108for cc_temp in $compiler""; do
7109  case $cc_temp in
7110    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7111    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7112    \-*) ;;
7113    *) break;;
7114  esac
7115done
7116cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7117
7118
7119# Only perform the check for file, if the check method requires it
7120case $deplibs_check_method in
7121file_magic*)
7122  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7123    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7124$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7125if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7126  $as_echo_n "(cached) " >&6
7127else
7128  case $MAGIC_CMD in
7129[\\/*] |  ?:[\\/]*)
7130  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7131  ;;
7132*)
7133  lt_save_MAGIC_CMD="$MAGIC_CMD"
7134  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7135  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7136  for ac_dir in $ac_dummy; do
7137    IFS="$lt_save_ifs"
7138    test -z "$ac_dir" && ac_dir=.
7139    if test -f $ac_dir/${ac_tool_prefix}file; then
7140      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7141      if test -n "$file_magic_test_file"; then
7142	case $deplibs_check_method in
7143	"file_magic "*)
7144	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7145	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7146	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7147	    $EGREP "$file_magic_regex" > /dev/null; then
7148	    :
7149	  else
7150	    cat <<EOF 1>&2
7151
7152*** Warning: the command libtool uses to detect shared libraries,
7153*** $file_magic_cmd, produces output that libtool cannot recognize.
7154*** The result is that libtool may fail to recognize shared libraries
7155*** as such.  This will affect the creation of libtool libraries that
7156*** depend on shared libraries, but programs linked with such libtool
7157*** libraries will work regardless of this problem.  Nevertheless, you
7158*** may want to report the problem to your system manager and/or to
7159*** bug-libtool@gnu.org
7160
7161EOF
7162	  fi ;;
7163	esac
7164      fi
7165      break
7166    fi
7167  done
7168  IFS="$lt_save_ifs"
7169  MAGIC_CMD="$lt_save_MAGIC_CMD"
7170  ;;
7171esac
7172fi
7173
7174MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7175if test -n "$MAGIC_CMD"; then
7176  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7177$as_echo "$MAGIC_CMD" >&6; }
7178else
7179  { $as_echo "$as_me:$LINENO: result: no" >&5
7180$as_echo "no" >&6; }
7181fi
7182
7183if test -z "$lt_cv_path_MAGIC_CMD"; then
7184  if test -n "$ac_tool_prefix"; then
7185    { $as_echo "$as_me:$LINENO: checking for file" >&5
7186$as_echo_n "checking for file... " >&6; }
7187if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7188  $as_echo_n "(cached) " >&6
7189else
7190  case $MAGIC_CMD in
7191[\\/*] |  ?:[\\/]*)
7192  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7193  ;;
7194*)
7195  lt_save_MAGIC_CMD="$MAGIC_CMD"
7196  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7197  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7198  for ac_dir in $ac_dummy; do
7199    IFS="$lt_save_ifs"
7200    test -z "$ac_dir" && ac_dir=.
7201    if test -f $ac_dir/file; then
7202      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7203      if test -n "$file_magic_test_file"; then
7204	case $deplibs_check_method in
7205	"file_magic "*)
7206	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7207	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7208	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7209	    $EGREP "$file_magic_regex" > /dev/null; then
7210	    :
7211	  else
7212	    cat <<EOF 1>&2
7213
7214*** Warning: the command libtool uses to detect shared libraries,
7215*** $file_magic_cmd, produces output that libtool cannot recognize.
7216*** The result is that libtool may fail to recognize shared libraries
7217*** as such.  This will affect the creation of libtool libraries that
7218*** depend on shared libraries, but programs linked with such libtool
7219*** libraries will work regardless of this problem.  Nevertheless, you
7220*** may want to report the problem to your system manager and/or to
7221*** bug-libtool@gnu.org
7222
7223EOF
7224	  fi ;;
7225	esac
7226      fi
7227      break
7228    fi
7229  done
7230  IFS="$lt_save_ifs"
7231  MAGIC_CMD="$lt_save_MAGIC_CMD"
7232  ;;
7233esac
7234fi
7235
7236MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7237if test -n "$MAGIC_CMD"; then
7238  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7239$as_echo "$MAGIC_CMD" >&6; }
7240else
7241  { $as_echo "$as_me:$LINENO: result: no" >&5
7242$as_echo "no" >&6; }
7243fi
7244
7245  else
7246    MAGIC_CMD=:
7247  fi
7248fi
7249
7250  fi
7251  ;;
7252esac
7253
7254
7255  case $host_os in
7256    rhapsody* | darwin*)
7257    if test -n "$ac_tool_prefix"; then
7258  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7259set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7260{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7261$as_echo_n "checking for $ac_word... " >&6; }
7262if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7263  $as_echo_n "(cached) " >&6
7264else
7265  if test -n "$DSYMUTIL"; then
7266  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7267else
7268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269for as_dir in $PATH
7270do
7271  IFS=$as_save_IFS
7272  test -z "$as_dir" && as_dir=.
7273  for ac_exec_ext in '' $ac_executable_extensions; do
7274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7275    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7276    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277    break 2
7278  fi
7279done
7280done
7281IFS=$as_save_IFS
7282
7283fi
7284fi
7285DSYMUTIL=$ac_cv_prog_DSYMUTIL
7286if test -n "$DSYMUTIL"; then
7287  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7288$as_echo "$DSYMUTIL" >&6; }
7289else
7290  { $as_echo "$as_me:$LINENO: result: no" >&5
7291$as_echo "no" >&6; }
7292fi
7293
7294
7295fi
7296if test -z "$ac_cv_prog_DSYMUTIL"; then
7297  ac_ct_DSYMUTIL=$DSYMUTIL
7298  # Extract the first word of "dsymutil", so it can be a program name with args.
7299set dummy dsymutil; ac_word=$2
7300{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7301$as_echo_n "checking for $ac_word... " >&6; }
7302if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7303  $as_echo_n "(cached) " >&6
7304else
7305  if test -n "$ac_ct_DSYMUTIL"; then
7306  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7307else
7308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311  IFS=$as_save_IFS
7312  test -z "$as_dir" && as_dir=.
7313  for ac_exec_ext in '' $ac_executable_extensions; do
7314  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7315    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7316    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317    break 2
7318  fi
7319done
7320done
7321IFS=$as_save_IFS
7322
7323fi
7324fi
7325ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7326if test -n "$ac_ct_DSYMUTIL"; then
7327  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7328$as_echo "$ac_ct_DSYMUTIL" >&6; }
7329else
7330  { $as_echo "$as_me:$LINENO: result: no" >&5
7331$as_echo "no" >&6; }
7332fi
7333
7334  if test "x$ac_ct_DSYMUTIL" = x; then
7335    DSYMUTIL=":"
7336  else
7337    case $cross_compiling:$ac_tool_warned in
7338yes:)
7339{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7341ac_tool_warned=yes ;;
7342esac
7343    DSYMUTIL=$ac_ct_DSYMUTIL
7344  fi
7345else
7346  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7347fi
7348
7349    if test -n "$ac_tool_prefix"; then
7350  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7351set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7352{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7353$as_echo_n "checking for $ac_word... " >&6; }
7354if test "${ac_cv_prog_NMEDIT+set}" = set; then
7355  $as_echo_n "(cached) " >&6
7356else
7357  if test -n "$NMEDIT"; then
7358  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7359else
7360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361for as_dir in $PATH
7362do
7363  IFS=$as_save_IFS
7364  test -z "$as_dir" && as_dir=.
7365  for ac_exec_ext in '' $ac_executable_extensions; do
7366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7368    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369    break 2
7370  fi
7371done
7372done
7373IFS=$as_save_IFS
7374
7375fi
7376fi
7377NMEDIT=$ac_cv_prog_NMEDIT
7378if test -n "$NMEDIT"; then
7379  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7380$as_echo "$NMEDIT" >&6; }
7381else
7382  { $as_echo "$as_me:$LINENO: result: no" >&5
7383$as_echo "no" >&6; }
7384fi
7385
7386
7387fi
7388if test -z "$ac_cv_prog_NMEDIT"; then
7389  ac_ct_NMEDIT=$NMEDIT
7390  # Extract the first word of "nmedit", so it can be a program name with args.
7391set dummy nmedit; ac_word=$2
7392{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7393$as_echo_n "checking for $ac_word... " >&6; }
7394if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7395  $as_echo_n "(cached) " >&6
7396else
7397  if test -n "$ac_ct_NMEDIT"; then
7398  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7399else
7400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403  IFS=$as_save_IFS
7404  test -z "$as_dir" && as_dir=.
7405  for ac_exec_ext in '' $ac_executable_extensions; do
7406  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7408    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409    break 2
7410  fi
7411done
7412done
7413IFS=$as_save_IFS
7414
7415fi
7416fi
7417ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7418if test -n "$ac_ct_NMEDIT"; then
7419  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7420$as_echo "$ac_ct_NMEDIT" >&6; }
7421else
7422  { $as_echo "$as_me:$LINENO: result: no" >&5
7423$as_echo "no" >&6; }
7424fi
7425
7426  if test "x$ac_ct_NMEDIT" = x; then
7427    NMEDIT=":"
7428  else
7429    case $cross_compiling:$ac_tool_warned in
7430yes:)
7431{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7433ac_tool_warned=yes ;;
7434esac
7435    NMEDIT=$ac_ct_NMEDIT
7436  fi
7437else
7438  NMEDIT="$ac_cv_prog_NMEDIT"
7439fi
7440
7441
7442    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7443$as_echo_n "checking for -single_module linker flag... " >&6; }
7444if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7445  $as_echo_n "(cached) " >&6
7446else
7447  lt_cv_apple_cc_single_mod=no
7448      if test -z "${LT_MULTI_MODULE}"; then
7449   # By default we will add the -single_module flag. You can override
7450   # by either setting the environment variable LT_MULTI_MODULE
7451   # non-empty at configure time, or by adding -multi_module to the
7452   # link flags.
7453   echo "int foo(void){return 1;}" > conftest.c
7454   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7455     -dynamiclib ${wl}-single_module conftest.c
7456   if test -f libconftest.dylib; then
7457     lt_cv_apple_cc_single_mod=yes
7458     rm -rf libconftest.dylib*
7459   fi
7460   rm conftest.c
7461      fi
7462fi
7463{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7464$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7465    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7466$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7467if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7468  $as_echo_n "(cached) " >&6
7469else
7470  lt_cv_ld_exported_symbols_list=no
7471      save_LDFLAGS=$LDFLAGS
7472      echo "_main" > conftest.sym
7473      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7474      cat >conftest.$ac_ext <<_ACEOF
7475/* confdefs.h.  */
7476_ACEOF
7477cat confdefs.h >>conftest.$ac_ext
7478cat >>conftest.$ac_ext <<_ACEOF
7479/* end confdefs.h.  */
7480
7481int
7482main ()
7483{
7484
7485  ;
7486  return 0;
7487}
7488_ACEOF
7489rm -f conftest.$ac_objext conftest$ac_exeext
7490if { (ac_try="$ac_link"
7491case "(($ac_try" in
7492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7493  *) ac_try_echo=$ac_try;;
7494esac
7495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7496$as_echo "$ac_try_echo") >&5
7497  (eval "$ac_link") 2>conftest.er1
7498  ac_status=$?
7499  grep -v '^ *+' conftest.er1 >conftest.err
7500  rm -f conftest.er1
7501  cat conftest.err >&5
7502  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503  (exit $ac_status); } && {
7504	 test -z "$ac_c_werror_flag" ||
7505	 test ! -s conftest.err
7506       } && test -s conftest$ac_exeext && {
7507	 test "$cross_compiling" = yes ||
7508	 $as_test_x conftest$ac_exeext
7509       }; then
7510  lt_cv_ld_exported_symbols_list=yes
7511else
7512  $as_echo "$as_me: failed program was:" >&5
7513sed 's/^/| /' conftest.$ac_ext >&5
7514
7515	lt_cv_ld_exported_symbols_list=no
7516fi
7517
7518rm -rf conftest.dSYM
7519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7520      conftest$ac_exeext conftest.$ac_ext
7521   LDFLAGS="$save_LDFLAGS"
7522
7523fi
7524{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7525$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7526    case $host_os in
7527    rhapsody* | darwin1.[0123])
7528      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7529    darwin1.*)
7530     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7531    darwin*)
7532      # if running on 10.5 or later, the deployment target defaults
7533      # to the OS version, if on x86, and 10.4, the deployment
7534      # target defaults to 10.4. Don't you love it?
7535      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7536   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7537     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7538   10.[012]*)
7539     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7540   10.*)
7541     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7542      esac
7543    ;;
7544  esac
7545    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7546      _lt_dar_single_mod='$single_module'
7547    fi
7548    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7549      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7550    else
7551      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7552    fi
7553    if test "$DSYMUTIL" != ":"; then
7554      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7555    else
7556      _lt_dsymutil=
7557    fi
7558    ;;
7559  esac
7560
7561
7562enable_dlopen=no
7563enable_win32_dll=no
7564
7565# Check whether --enable-libtool-lock was given.
7566if test "${enable_libtool_lock+set}" = set; then
7567  enableval=$enable_libtool_lock;
7568fi
7569
7570test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7571
7572
7573# Check whether --with-pic was given.
7574if test "${with_pic+set}" = set; then
7575  withval=$with_pic; pic_mode="$withval"
7576else
7577  pic_mode=default
7578fi
7579
7580test -z "$pic_mode" && pic_mode=default
7581
7582# Use C for the default configuration in the libtool script
7583tagname=
7584lt_save_CC="$CC"
7585ac_ext=c
7586ac_cpp='$CPP $CPPFLAGS'
7587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7589ac_compiler_gnu=$ac_cv_c_compiler_gnu
7590
7591
7592# Source file extension for C test sources.
7593ac_ext=c
7594
7595# Object file extension for compiled C test sources.
7596objext=o
7597objext=$objext
7598
7599# Code to be used in simple compile tests
7600lt_simple_compile_test_code="int some_variable = 0;"
7601
7602# Code to be used in simple link tests
7603lt_simple_link_test_code='int main(){return(0);}'
7604
7605
7606# If no C compiler was specified, use CC.
7607LTCC=${LTCC-"$CC"}
7608
7609# If no C compiler flags were specified, use CFLAGS.
7610LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7611
7612# Allow CC to be a program name with arguments.
7613compiler=$CC
7614
7615
7616# save warnings/boilerplate of simple test code
7617ac_outfile=conftest.$ac_objext
7618echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7619eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7620_lt_compiler_boilerplate=`cat conftest.err`
7621$rm conftest*
7622
7623ac_outfile=conftest.$ac_objext
7624echo "$lt_simple_link_test_code" >conftest.$ac_ext
7625eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7626_lt_linker_boilerplate=`cat conftest.err`
7627$rm -r conftest*
7628
7629
7630
7631lt_prog_compiler_no_builtin_flag=
7632
7633if test "$GCC" = yes; then
7634  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7635
7636
7637{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7638$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7639if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7640  $as_echo_n "(cached) " >&6
7641else
7642  lt_cv_prog_compiler_rtti_exceptions=no
7643  ac_outfile=conftest.$ac_objext
7644   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7645   lt_compiler_flag="-fno-rtti -fno-exceptions"
7646   # Insert the option either (1) after the last *FLAGS variable, or
7647   # (2) before a word containing "conftest.", or (3) at the end.
7648   # Note that $ac_compile itself does not contain backslashes and begins
7649   # with a dollar sign (not a hyphen), so the echo should work correctly.
7650   # The option is referenced via a variable to avoid confusing sed.
7651   lt_compile=`echo "$ac_compile" | $SED \
7652   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7653   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7654   -e 's:$: $lt_compiler_flag:'`
7655   (eval echo "\"\$as_me:7655: $lt_compile\"" >&5)
7656   (eval "$lt_compile" 2>conftest.err)
7657   ac_status=$?
7658   cat conftest.err >&5
7659   echo "$as_me:7659: \$? = $ac_status" >&5
7660   if (exit $ac_status) && test -s "$ac_outfile"; then
7661     # The compiler can only warn and ignore the option if not recognized
7662     # So say no if there are warnings other than the usual output.
7663     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7664     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7665     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7666       lt_cv_prog_compiler_rtti_exceptions=yes
7667     fi
7668   fi
7669   $rm conftest*
7670
7671fi
7672{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7673$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7674
7675if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7676    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7677else
7678    :
7679fi
7680
7681fi
7682
7683lt_prog_compiler_wl=
7684lt_prog_compiler_pic=
7685lt_prog_compiler_static=
7686
7687{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7688$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7689
7690  if test "$GCC" = yes; then
7691    lt_prog_compiler_wl='-Wl,'
7692    lt_prog_compiler_static='-static'
7693
7694    case $host_os in
7695      aix*)
7696      # All AIX code is PIC.
7697      if test "$host_cpu" = ia64; then
7698	# AIX 5 now supports IA64 processor
7699	lt_prog_compiler_static='-Bstatic'
7700      fi
7701      ;;
7702
7703    amigaos*)
7704      # FIXME: we need at least 68020 code to build shared libraries, but
7705      # adding the `-m68020' flag to GCC prevents building anything better,
7706      # like `-m68040'.
7707      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7708      ;;
7709
7710    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7711      # PIC is the default for these OSes.
7712      ;;
7713
7714    mingw* | cygwin* | pw32* | os2*)
7715      # This hack is so that the source file can tell whether it is being
7716      # built for inclusion in a dll (and should export symbols for example).
7717      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7718      # (--disable-auto-import) libraries
7719      lt_prog_compiler_pic='-DDLL_EXPORT'
7720      ;;
7721
7722    darwin* | rhapsody*)
7723      # PIC is the default on this platform
7724      # Common symbols not allowed in MH_DYLIB files
7725      lt_prog_compiler_pic='-fno-common'
7726      ;;
7727
7728    interix[3-9]*)
7729      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7730      # Instead, we relocate shared libraries at runtime.
7731      ;;
7732
7733    msdosdjgpp*)
7734      # Just because we use GCC doesn't mean we suddenly get shared libraries
7735      # on systems that don't support them.
7736      lt_prog_compiler_can_build_shared=no
7737      enable_shared=no
7738      ;;
7739
7740    sysv4*MP*)
7741      if test -d /usr/nec; then
7742	lt_prog_compiler_pic=-Kconform_pic
7743      fi
7744      ;;
7745
7746    hpux*)
7747      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7748      # not for PA HP-UX.
7749      case $host_cpu in
7750      hppa*64*|ia64*)
7751	# +Z the default
7752	;;
7753      *)
7754	lt_prog_compiler_pic='-fPIC'
7755	;;
7756      esac
7757      ;;
7758
7759    *)
7760      lt_prog_compiler_pic='-fPIC'
7761      ;;
7762    esac
7763  else
7764    # PORTME Check for flag to pass linker flags through the system compiler.
7765    case $host_os in
7766    aix*)
7767      lt_prog_compiler_wl='-Wl,'
7768      if test "$host_cpu" = ia64; then
7769	# AIX 5 now supports IA64 processor
7770	lt_prog_compiler_static='-Bstatic'
7771      else
7772	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7773      fi
7774      ;;
7775      darwin*)
7776        # PIC is the default on this platform
7777        # Common symbols not allowed in MH_DYLIB files
7778       case $cc_basename in
7779         xlc*)
7780         lt_prog_compiler_pic='-qnocommon'
7781         lt_prog_compiler_wl='-Wl,'
7782         ;;
7783       esac
7784       ;;
7785
7786    mingw* | cygwin* | pw32* | os2*)
7787      # This hack is so that the source file can tell whether it is being
7788      # built for inclusion in a dll (and should export symbols for example).
7789      lt_prog_compiler_pic='-DDLL_EXPORT'
7790      ;;
7791
7792    hpux9* | hpux10* | hpux11*)
7793      lt_prog_compiler_wl='-Wl,'
7794      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7795      # not for PA HP-UX.
7796      case $host_cpu in
7797      hppa*64*|ia64*)
7798	# +Z the default
7799	;;
7800      *)
7801	lt_prog_compiler_pic='+Z'
7802	;;
7803      esac
7804      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7805      lt_prog_compiler_static='${wl}-a ${wl}archive'
7806      ;;
7807
7808    irix5* | irix6* | nonstopux*)
7809      lt_prog_compiler_wl='-Wl,'
7810      # PIC (with -KPIC) is the default.
7811      lt_prog_compiler_static='-non_shared'
7812      ;;
7813
7814    newsos6)
7815      lt_prog_compiler_pic='-KPIC'
7816      lt_prog_compiler_static='-Bstatic'
7817      ;;
7818
7819    linux* | k*bsd*-gnu)
7820      case $cc_basename in
7821      icc* | ecc*)
7822	lt_prog_compiler_wl='-Wl,'
7823	lt_prog_compiler_pic='-KPIC'
7824	lt_prog_compiler_static='-static'
7825        ;;
7826      pgcc* | pgf77* | pgf90* | pgf95*)
7827        # Portland Group compilers (*not* the Pentium gcc compiler,
7828	# which looks to be a dead project)
7829	lt_prog_compiler_wl='-Wl,'
7830	lt_prog_compiler_pic='-fpic'
7831	lt_prog_compiler_static='-Bstatic'
7832        ;;
7833      ccc*)
7834        lt_prog_compiler_wl='-Wl,'
7835        # All Alpha code is PIC.
7836        lt_prog_compiler_static='-non_shared'
7837        ;;
7838      *)
7839        case `$CC -V 2>&1 | sed 5q` in
7840	*Sun\ C*)
7841	  # Sun C 5.9
7842	  lt_prog_compiler_pic='-KPIC'
7843	  lt_prog_compiler_static='-Bstatic'
7844	  lt_prog_compiler_wl='-Wl,'
7845	  ;;
7846	*Sun\ F*)
7847	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7848	  lt_prog_compiler_pic='-KPIC'
7849	  lt_prog_compiler_static='-Bstatic'
7850	  lt_prog_compiler_wl=''
7851	  ;;
7852	esac
7853	;;
7854      esac
7855      ;;
7856
7857    osf3* | osf4* | osf5*)
7858      lt_prog_compiler_wl='-Wl,'
7859      # All OSF/1 code is PIC.
7860      lt_prog_compiler_static='-non_shared'
7861      ;;
7862
7863    rdos*)
7864      lt_prog_compiler_static='-non_shared'
7865      ;;
7866
7867    solaris*)
7868      lt_prog_compiler_pic='-KPIC'
7869      lt_prog_compiler_static='-Bstatic'
7870      case $cc_basename in
7871      f77* | f90* | f95*)
7872	lt_prog_compiler_wl='-Qoption ld ';;
7873      *)
7874	lt_prog_compiler_wl='-Wl,';;
7875      esac
7876      ;;
7877
7878    sunos4*)
7879      lt_prog_compiler_wl='-Qoption ld '
7880      lt_prog_compiler_pic='-PIC'
7881      lt_prog_compiler_static='-Bstatic'
7882      ;;
7883
7884    sysv4 | sysv4.2uw2* | sysv4.3*)
7885      lt_prog_compiler_wl='-Wl,'
7886      lt_prog_compiler_pic='-KPIC'
7887      lt_prog_compiler_static='-Bstatic'
7888      ;;
7889
7890    sysv4*MP*)
7891      if test -d /usr/nec ;then
7892	lt_prog_compiler_pic='-Kconform_pic'
7893	lt_prog_compiler_static='-Bstatic'
7894      fi
7895      ;;
7896
7897    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7898      lt_prog_compiler_wl='-Wl,'
7899      lt_prog_compiler_pic='-KPIC'
7900      lt_prog_compiler_static='-Bstatic'
7901      ;;
7902
7903    unicos*)
7904      lt_prog_compiler_wl='-Wl,'
7905      lt_prog_compiler_can_build_shared=no
7906      ;;
7907
7908    uts4*)
7909      lt_prog_compiler_pic='-pic'
7910      lt_prog_compiler_static='-Bstatic'
7911      ;;
7912
7913    *)
7914      lt_prog_compiler_can_build_shared=no
7915      ;;
7916    esac
7917  fi
7918
7919{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7920$as_echo "$lt_prog_compiler_pic" >&6; }
7921
7922#
7923# Check to make sure the PIC flag actually works.
7924#
7925if test -n "$lt_prog_compiler_pic"; then
7926
7927{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7928$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7929if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7930  $as_echo_n "(cached) " >&6
7931else
7932  lt_cv_prog_compiler_pic_works=no
7933  ac_outfile=conftest.$ac_objext
7934   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7935   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7936   # Insert the option either (1) after the last *FLAGS variable, or
7937   # (2) before a word containing "conftest.", or (3) at the end.
7938   # Note that $ac_compile itself does not contain backslashes and begins
7939   # with a dollar sign (not a hyphen), so the echo should work correctly.
7940   # The option is referenced via a variable to avoid confusing sed.
7941   lt_compile=`echo "$ac_compile" | $SED \
7942   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7943   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7944   -e 's:$: $lt_compiler_flag:'`
7945   (eval echo "\"\$as_me:7945: $lt_compile\"" >&5)
7946   (eval "$lt_compile" 2>conftest.err)
7947   ac_status=$?
7948   cat conftest.err >&5
7949   echo "$as_me:7949: \$? = $ac_status" >&5
7950   if (exit $ac_status) && test -s "$ac_outfile"; then
7951     # The compiler can only warn and ignore the option if not recognized
7952     # So say no if there are warnings other than the usual output.
7953     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7954     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7955     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7956       lt_cv_prog_compiler_pic_works=yes
7957     fi
7958   fi
7959   $rm conftest*
7960
7961fi
7962{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7963$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7964
7965if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7966    case $lt_prog_compiler_pic in
7967     "" | " "*) ;;
7968     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7969     esac
7970else
7971    lt_prog_compiler_pic=
7972     lt_prog_compiler_can_build_shared=no
7973fi
7974
7975fi
7976case $host_os in
7977  # For platforms which do not support PIC, -DPIC is meaningless:
7978  *djgpp*)
7979    lt_prog_compiler_pic=
7980    ;;
7981  *)
7982    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7983    ;;
7984esac
7985
7986#
7987# Check to make sure the static flag actually works.
7988#
7989wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7990{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7991$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7992if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7993  $as_echo_n "(cached) " >&6
7994else
7995  lt_cv_prog_compiler_static_works=no
7996   save_LDFLAGS="$LDFLAGS"
7997   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7998   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7999   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8000     # The linker can only warn and ignore the option if not recognized
8001     # So say no if there are warnings
8002     if test -s conftest.err; then
8003       # Append any errors to the config.log.
8004       cat conftest.err 1>&5
8005       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8006       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8007       if diff conftest.exp conftest.er2 >/dev/null; then
8008         lt_cv_prog_compiler_static_works=yes
8009       fi
8010     else
8011       lt_cv_prog_compiler_static_works=yes
8012     fi
8013   fi
8014   $rm -r conftest*
8015   LDFLAGS="$save_LDFLAGS"
8016
8017fi
8018{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8019$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8020
8021if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8022    :
8023else
8024    lt_prog_compiler_static=
8025fi
8026
8027
8028{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8029$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8030if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8031  $as_echo_n "(cached) " >&6
8032else
8033  lt_cv_prog_compiler_c_o=no
8034   $rm -r conftest 2>/dev/null
8035   mkdir conftest
8036   cd conftest
8037   mkdir out
8038   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8039
8040   lt_compiler_flag="-o out/conftest2.$ac_objext"
8041   # Insert the option either (1) after the last *FLAGS variable, or
8042   # (2) before a word containing "conftest.", or (3) at the end.
8043   # Note that $ac_compile itself does not contain backslashes and begins
8044   # with a dollar sign (not a hyphen), so the echo should work correctly.
8045   lt_compile=`echo "$ac_compile" | $SED \
8046   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8047   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8048   -e 's:$: $lt_compiler_flag:'`
8049   (eval echo "\"\$as_me:8049: $lt_compile\"" >&5)
8050   (eval "$lt_compile" 2>out/conftest.err)
8051   ac_status=$?
8052   cat out/conftest.err >&5
8053   echo "$as_me:8053: \$? = $ac_status" >&5
8054   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8055   then
8056     # The compiler can only warn and ignore the option if not recognized
8057     # So say no if there are warnings
8058     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8059     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8060     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8061       lt_cv_prog_compiler_c_o=yes
8062     fi
8063   fi
8064   chmod u+w . 2>&5
8065   $rm conftest*
8066   # SGI C++ compiler will create directory out/ii_files/ for
8067   # template instantiation
8068   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8069   $rm out/* && rmdir out
8070   cd ..
8071   rmdir conftest
8072   $rm conftest*
8073
8074fi
8075{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8076$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8077
8078
8079hard_links="nottested"
8080if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8081  # do not overwrite the value of need_locks provided by the user
8082  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8083$as_echo_n "checking if we can lock with hard links... " >&6; }
8084  hard_links=yes
8085  $rm conftest*
8086  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8087  touch conftest.a
8088  ln conftest.a conftest.b 2>&5 || hard_links=no
8089  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8090  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8091$as_echo "$hard_links" >&6; }
8092  if test "$hard_links" = no; then
8093    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8094$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8095    need_locks=warn
8096  fi
8097else
8098  need_locks=no
8099fi
8100
8101{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8102$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8103
8104  runpath_var=
8105  allow_undefined_flag=
8106  enable_shared_with_static_runtimes=no
8107  archive_cmds=
8108  archive_expsym_cmds=
8109  old_archive_From_new_cmds=
8110  old_archive_from_expsyms_cmds=
8111  export_dynamic_flag_spec=
8112  whole_archive_flag_spec=
8113  thread_safe_flag_spec=
8114  hardcode_libdir_flag_spec=
8115  hardcode_libdir_flag_spec_ld=
8116  hardcode_libdir_separator=
8117  hardcode_direct=no
8118  hardcode_minus_L=no
8119  hardcode_shlibpath_var=unsupported
8120  link_all_deplibs=unknown
8121  hardcode_automatic=no
8122  module_cmds=
8123  module_expsym_cmds=
8124  always_export_symbols=no
8125  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8126  # include_expsyms should be a list of space-separated symbols to be *always*
8127  # included in the symbol list
8128  include_expsyms=
8129  # exclude_expsyms can be an extended regexp of symbols to exclude
8130  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8131  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8132  # as well as any symbol that contains `d'.
8133  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8134  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8135  # platforms (ab)use it in PIC code, but their linkers get confused if
8136  # the symbol is explicitly referenced.  Since portable code cannot
8137  # rely on this symbol name, it's probably fine to never include it in
8138  # preloaded symbol tables.
8139  # Exclude shared library initialization/finalization symbols.
8140  extract_expsyms_cmds=
8141  # Just being paranoid about ensuring that cc_basename is set.
8142  for cc_temp in $compiler""; do
8143  case $cc_temp in
8144    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8145    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8146    \-*) ;;
8147    *) break;;
8148  esac
8149done
8150cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8151
8152  case $host_os in
8153  cygwin* | mingw* | pw32*)
8154    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8155    # When not using gcc, we currently assume that we are using
8156    # Microsoft Visual C++.
8157    if test "$GCC" != yes; then
8158      with_gnu_ld=no
8159    fi
8160    ;;
8161  interix*)
8162    # we just hope/assume this is gcc and not c89 (= MSVC++)
8163    with_gnu_ld=yes
8164    ;;
8165  openbsd*)
8166    with_gnu_ld=no
8167    ;;
8168  esac
8169
8170  ld_shlibs=yes
8171  if test "$with_gnu_ld" = yes; then
8172    # If archive_cmds runs LD, not CC, wlarc should be empty
8173    wlarc='${wl}'
8174
8175    # Set some defaults for GNU ld with shared library support. These
8176    # are reset later if shared libraries are not supported. Putting them
8177    # here allows them to be overridden if necessary.
8178    runpath_var=LD_RUN_PATH
8179    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8180    export_dynamic_flag_spec='${wl}--export-dynamic'
8181    # ancient GNU ld didn't support --whole-archive et. al.
8182    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8183	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8184      else
8185  	whole_archive_flag_spec=
8186    fi
8187    supports_anon_versioning=no
8188    case `$LD -v 2>/dev/null` in
8189      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8190      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8191      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8192      *\ 2.11.*) ;; # other 2.11 versions
8193      *) supports_anon_versioning=yes ;;
8194    esac
8195
8196    # See if GNU ld supports shared libraries.
8197    case $host_os in
8198    aix[3-9]*)
8199      # On AIX/PPC, the GNU linker is very broken
8200      if test "$host_cpu" != ia64; then
8201	ld_shlibs=no
8202	cat <<EOF 1>&2
8203
8204*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8205*** to be unable to reliably create shared libraries on AIX.
8206*** Therefore, libtool is disabling shared libraries support.  If you
8207*** really care for shared libraries, you may want to modify your PATH
8208*** so that a non-GNU linker is found, and then restart.
8209
8210EOF
8211      fi
8212      ;;
8213
8214    amigaos*)
8215      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)'
8216      hardcode_libdir_flag_spec='-L$libdir'
8217      hardcode_minus_L=yes
8218
8219      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8220      # that the semantics of dynamic libraries on AmigaOS, at least up
8221      # to version 4, is to share data among multiple programs linked
8222      # with the same dynamic library.  Since this doesn't match the
8223      # behavior of shared libraries on other platforms, we can't use
8224      # them.
8225      ld_shlibs=no
8226      ;;
8227
8228    beos*)
8229      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8230	allow_undefined_flag=unsupported
8231	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8232	# support --undefined.  This deserves some investigation.  FIXME
8233	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8234      else
8235	ld_shlibs=no
8236      fi
8237      ;;
8238
8239    cygwin* | mingw* | pw32*)
8240      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8241      # as there is no search path for DLLs.
8242      hardcode_libdir_flag_spec='-L$libdir'
8243      allow_undefined_flag=unsupported
8244      always_export_symbols=no
8245      enable_shared_with_static_runtimes=yes
8246      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8247
8248      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8249        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8250	# If the export-symbols file already is a .def file (1st line
8251	# is EXPORTS), use it as is; otherwise, prepend...
8252	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8253	  cp $export_symbols $output_objdir/$soname.def;
8254	else
8255	  echo EXPORTS > $output_objdir/$soname.def;
8256	  cat $export_symbols >> $output_objdir/$soname.def;
8257	fi~
8258	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8259      else
8260	ld_shlibs=no
8261      fi
8262      ;;
8263
8264    interix[3-9]*)
8265      hardcode_direct=no
8266      hardcode_shlibpath_var=no
8267      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8268      export_dynamic_flag_spec='${wl}-E'
8269      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8270      # Instead, shared libraries are loaded at an image base (0x10000000 by
8271      # default) and relocated if they conflict, which is a slow very memory
8272      # consuming and fragmenting process.  To avoid this, we pick a random,
8273      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8274      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8275      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8276      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'
8277      ;;
8278
8279    gnu* | linux* | k*bsd*-gnu)
8280      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8281	tmp_addflag=
8282	case $cc_basename,$host_cpu in
8283	pgcc*)				# Portland Group C compiler
8284	  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'
8285	  tmp_addflag=' $pic_flag'
8286	  ;;
8287	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8288	  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'
8289	  tmp_addflag=' $pic_flag -Mnomain' ;;
8290	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8291	  tmp_addflag=' -i_dynamic' ;;
8292	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8293	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8294	ifc* | ifort*)			# Intel Fortran compiler
8295	  tmp_addflag=' -nofor_main' ;;
8296	esac
8297	case `$CC -V 2>&1 | sed 5q` in
8298	*Sun\ C*)			# Sun C 5.9
8299	  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'
8300	  tmp_sharedflag='-G' ;;
8301	*Sun\ F*)			# Sun Fortran 8.3
8302	  tmp_sharedflag='-G' ;;
8303	*)
8304	  tmp_sharedflag='-shared' ;;
8305	esac
8306	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8307
8308	if test $supports_anon_versioning = yes; then
8309	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8310  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8311  $echo "local: *; };" >> $output_objdir/$libname.ver~
8312	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8313	fi
8314      else
8315	ld_shlibs=no
8316      fi
8317      ;;
8318
8319    netbsd*)
8320      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8321	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8322	wlarc=
8323      else
8324	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8325	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8326      fi
8327      ;;
8328
8329    solaris*)
8330      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8331	ld_shlibs=no
8332	cat <<EOF 1>&2
8333
8334*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8335*** create shared libraries on Solaris systems.  Therefore, libtool
8336*** is disabling shared libraries support.  We urge you to upgrade GNU
8337*** binutils to release 2.9.1 or newer.  Another option is to modify
8338*** your PATH or compiler configuration so that the native linker is
8339*** used, and then restart.
8340
8341EOF
8342      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8343	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8344	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8345      else
8346	ld_shlibs=no
8347      fi
8348      ;;
8349
8350    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8351      case `$LD -v 2>&1` in
8352        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8353	ld_shlibs=no
8354	cat <<_LT_EOF 1>&2
8355
8356*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8357*** reliably create shared libraries on SCO systems.  Therefore, libtool
8358*** is disabling shared libraries support.  We urge you to upgrade GNU
8359*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8360*** your PATH or compiler configuration so that the native linker is
8361*** used, and then restart.
8362
8363_LT_EOF
8364	;;
8365	*)
8366	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8367	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8368	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8369	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8370	  else
8371	    ld_shlibs=no
8372	  fi
8373	;;
8374      esac
8375      ;;
8376
8377    sunos4*)
8378      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8379      wlarc=
8380      hardcode_direct=yes
8381      hardcode_shlibpath_var=no
8382      ;;
8383
8384    *)
8385      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8386	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8387	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8388      else
8389	ld_shlibs=no
8390      fi
8391      ;;
8392    esac
8393
8394    if test "$ld_shlibs" = no; then
8395      runpath_var=
8396      hardcode_libdir_flag_spec=
8397      export_dynamic_flag_spec=
8398      whole_archive_flag_spec=
8399    fi
8400  else
8401    # PORTME fill in a description of your system's linker (not GNU ld)
8402    case $host_os in
8403    aix3*)
8404      allow_undefined_flag=unsupported
8405      always_export_symbols=yes
8406      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'
8407      # Note: this linker hardcodes the directories in LIBPATH if there
8408      # are no directories specified by -L.
8409      hardcode_minus_L=yes
8410      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8411	# Neither direct hardcoding nor static linking is supported with a
8412	# broken collect2.
8413	hardcode_direct=unsupported
8414      fi
8415      ;;
8416
8417    aix[4-9]*)
8418      if test "$host_cpu" = ia64; then
8419	# On IA64, the linker does run time linking by default, so we don't
8420	# have to do anything special.
8421	aix_use_runtimelinking=no
8422	exp_sym_flag='-Bexport'
8423	no_entry_flag=""
8424      else
8425	# If we're using GNU nm, then we don't want the "-C" option.
8426	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8427	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8428	  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'
8429	else
8430	  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'
8431	fi
8432	aix_use_runtimelinking=no
8433
8434	# Test if we are trying to use run time linking or normal
8435	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8436	# need to do runtime linking.
8437	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8438	  for ld_flag in $LDFLAGS; do
8439  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8440  	    aix_use_runtimelinking=yes
8441  	    break
8442  	  fi
8443	  done
8444	  ;;
8445	esac
8446
8447	exp_sym_flag='-bexport'
8448	no_entry_flag='-bnoentry'
8449      fi
8450
8451      # When large executables or shared objects are built, AIX ld can
8452      # have problems creating the table of contents.  If linking a library
8453      # or program results in "error TOC overflow" add -mminimal-toc to
8454      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8455      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8456
8457      archive_cmds=''
8458      hardcode_direct=yes
8459      hardcode_libdir_separator=':'
8460      link_all_deplibs=yes
8461
8462      if test "$GCC" = yes; then
8463	case $host_os in aix4.[012]|aix4.[012].*)
8464	# We only want to do this on AIX 4.2 and lower, the check
8465	# below for broken collect2 doesn't work under 4.3+
8466	  collect2name=`${CC} -print-prog-name=collect2`
8467	  if test -f "$collect2name" && \
8468  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8469	  then
8470  	  # We have reworked collect2
8471  	  :
8472	  else
8473  	  # We have old collect2
8474  	  hardcode_direct=unsupported
8475  	  # It fails to find uninstalled libraries when the uninstalled
8476  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8477  	  # to unsupported forces relinking
8478  	  hardcode_minus_L=yes
8479  	  hardcode_libdir_flag_spec='-L$libdir'
8480  	  hardcode_libdir_separator=
8481	  fi
8482	  ;;
8483	esac
8484	shared_flag='-shared'
8485	if test "$aix_use_runtimelinking" = yes; then
8486	  shared_flag="$shared_flag "'${wl}-G'
8487	fi
8488      else
8489	# not using gcc
8490	if test "$host_cpu" = ia64; then
8491  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8492  	# chokes on -Wl,-G. The following line is correct:
8493	  shared_flag='-G'
8494	else
8495	  if test "$aix_use_runtimelinking" = yes; then
8496	    shared_flag='${wl}-G'
8497	  else
8498	    shared_flag='${wl}-bM:SRE'
8499	  fi
8500	fi
8501      fi
8502
8503      # It seems that -bexpall does not export symbols beginning with
8504      # underscore (_), so it is better to generate a list of symbols to export.
8505      always_export_symbols=yes
8506      if test "$aix_use_runtimelinking" = yes; then
8507	# Warning - without using the other runtime loading flags (-brtl),
8508	# -berok will link without error, but may produce a broken library.
8509	allow_undefined_flag='-berok'
8510       # Determine the default libpath from the value encoded in an empty executable.
8511       cat >conftest.$ac_ext <<_ACEOF
8512/* confdefs.h.  */
8513_ACEOF
8514cat confdefs.h >>conftest.$ac_ext
8515cat >>conftest.$ac_ext <<_ACEOF
8516/* end confdefs.h.  */
8517
8518int
8519main ()
8520{
8521
8522  ;
8523  return 0;
8524}
8525_ACEOF
8526rm -f conftest.$ac_objext conftest$ac_exeext
8527if { (ac_try="$ac_link"
8528case "(($ac_try" in
8529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530  *) ac_try_echo=$ac_try;;
8531esac
8532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8533$as_echo "$ac_try_echo") >&5
8534  (eval "$ac_link") 2>conftest.er1
8535  ac_status=$?
8536  grep -v '^ *+' conftest.er1 >conftest.err
8537  rm -f conftest.er1
8538  cat conftest.err >&5
8539  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540  (exit $ac_status); } && {
8541	 test -z "$ac_c_werror_flag" ||
8542	 test ! -s conftest.err
8543       } && test -s conftest$ac_exeext && {
8544	 test "$cross_compiling" = yes ||
8545	 $as_test_x conftest$ac_exeext
8546       }; then
8547
8548lt_aix_libpath_sed='
8549    /Import File Strings/,/^$/ {
8550	/^0/ {
8551	    s/^0  *\(.*\)$/\1/
8552	    p
8553	}
8554    }'
8555aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8556# Check for a 64-bit object if we didn't find anything.
8557if test -z "$aix_libpath"; then
8558  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8559fi
8560else
8561  $as_echo "$as_me: failed program was:" >&5
8562sed 's/^/| /' conftest.$ac_ext >&5
8563
8564
8565fi
8566
8567rm -rf conftest.dSYM
8568rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8569      conftest$ac_exeext conftest.$ac_ext
8570if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8571
8572       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8573	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"
8574       else
8575	if test "$host_cpu" = ia64; then
8576	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8577	  allow_undefined_flag="-z nodefs"
8578	  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"
8579	else
8580	 # Determine the default libpath from the value encoded in an empty executable.
8581	 cat >conftest.$ac_ext <<_ACEOF
8582/* confdefs.h.  */
8583_ACEOF
8584cat confdefs.h >>conftest.$ac_ext
8585cat >>conftest.$ac_ext <<_ACEOF
8586/* end confdefs.h.  */
8587
8588int
8589main ()
8590{
8591
8592  ;
8593  return 0;
8594}
8595_ACEOF
8596rm -f conftest.$ac_objext conftest$ac_exeext
8597if { (ac_try="$ac_link"
8598case "(($ac_try" in
8599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600  *) ac_try_echo=$ac_try;;
8601esac
8602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8603$as_echo "$ac_try_echo") >&5
8604  (eval "$ac_link") 2>conftest.er1
8605  ac_status=$?
8606  grep -v '^ *+' conftest.er1 >conftest.err
8607  rm -f conftest.er1
8608  cat conftest.err >&5
8609  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610  (exit $ac_status); } && {
8611	 test -z "$ac_c_werror_flag" ||
8612	 test ! -s conftest.err
8613       } && test -s conftest$ac_exeext && {
8614	 test "$cross_compiling" = yes ||
8615	 $as_test_x conftest$ac_exeext
8616       }; then
8617
8618lt_aix_libpath_sed='
8619    /Import File Strings/,/^$/ {
8620	/^0/ {
8621	    s/^0  *\(.*\)$/\1/
8622	    p
8623	}
8624    }'
8625aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8626# Check for a 64-bit object if we didn't find anything.
8627if test -z "$aix_libpath"; then
8628  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8629fi
8630else
8631  $as_echo "$as_me: failed program was:" >&5
8632sed 's/^/| /' conftest.$ac_ext >&5
8633
8634
8635fi
8636
8637rm -rf conftest.dSYM
8638rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8639      conftest$ac_exeext conftest.$ac_ext
8640if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8641
8642	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8643	  # Warning - without using the other run time loading flags,
8644	  # -berok will link without error, but may produce a broken library.
8645	  no_undefined_flag=' ${wl}-bernotok'
8646	  allow_undefined_flag=' ${wl}-berok'
8647	  # Exported symbols can be pulled into shared objects from archives
8648	  whole_archive_flag_spec='$convenience'
8649	  archive_cmds_need_lc=yes
8650	  # This is similar to how AIX traditionally builds its shared libraries.
8651	  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'
8652	fi
8653      fi
8654      ;;
8655
8656    amigaos*)
8657      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)'
8658      hardcode_libdir_flag_spec='-L$libdir'
8659      hardcode_minus_L=yes
8660      # see comment about different semantics on the GNU ld section
8661      ld_shlibs=no
8662      ;;
8663
8664    bsdi[45]*)
8665      export_dynamic_flag_spec=-rdynamic
8666      ;;
8667
8668    cygwin* | mingw* | pw32*)
8669      # When not using gcc, we currently assume that we are using
8670      # Microsoft Visual C++.
8671      # hardcode_libdir_flag_spec is actually meaningless, as there is
8672      # no search path for DLLs.
8673      hardcode_libdir_flag_spec=' '
8674      allow_undefined_flag=unsupported
8675      # Tell ltmain to make .lib files, not .a files.
8676      libext=lib
8677      # Tell ltmain to make .dll files, not .so files.
8678      shrext_cmds=".dll"
8679      # FIXME: Setting linknames here is a bad hack.
8680      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8681      # The linker will automatically build a .lib file if we build a DLL.
8682      old_archive_From_new_cmds='true'
8683      # FIXME: Should let the user specify the lib program.
8684      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8685      fix_srcfile_path='`cygpath -w "$srcfile"`'
8686      enable_shared_with_static_runtimes=yes
8687      ;;
8688
8689    darwin* | rhapsody*)
8690      case $host_os in
8691        rhapsody* | darwin1.[012])
8692         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8693         ;;
8694       *) # Darwin 1.3 on
8695         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8696           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8697         else
8698           case ${MACOSX_DEPLOYMENT_TARGET} in
8699             10.[012])
8700               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8701               ;;
8702             10.*)
8703               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8704               ;;
8705           esac
8706         fi
8707         ;;
8708      esac
8709      archive_cmds_need_lc=no
8710      hardcode_direct=no
8711      hardcode_automatic=yes
8712      hardcode_shlibpath_var=unsupported
8713      whole_archive_flag_spec=''
8714      link_all_deplibs=yes
8715    if test "$GCC" = yes ; then
8716    	output_verbose_link_cmd='echo'
8717        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8718        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8719        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}"
8720        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}"
8721    else
8722      case $cc_basename in
8723        xlc*)
8724         output_verbose_link_cmd='echo'
8725         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8726         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8727          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8728         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}'
8729          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}'
8730          ;;
8731       *)
8732         ld_shlibs=no
8733          ;;
8734      esac
8735    fi
8736      ;;
8737
8738    dgux*)
8739      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740      hardcode_libdir_flag_spec='-L$libdir'
8741      hardcode_shlibpath_var=no
8742      ;;
8743
8744    freebsd1*)
8745      ld_shlibs=no
8746      ;;
8747
8748    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8749    # support.  Future versions do this automatically, but an explicit c++rt0.o
8750    # does not break anything, and helps significantly (at the cost of a little
8751    # extra space).
8752    freebsd2.2*)
8753      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8754      hardcode_libdir_flag_spec='-R$libdir'
8755      hardcode_direct=yes
8756      hardcode_shlibpath_var=no
8757      ;;
8758
8759    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8760    freebsd2*)
8761      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8762      hardcode_direct=yes
8763      hardcode_minus_L=yes
8764      hardcode_shlibpath_var=no
8765      ;;
8766
8767    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8768    freebsd* | dragonfly*)
8769      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8770      hardcode_libdir_flag_spec='-R$libdir'
8771      hardcode_direct=yes
8772      hardcode_shlibpath_var=no
8773      ;;
8774
8775    hpux9*)
8776      if test "$GCC" = yes; then
8777	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'
8778      else
8779	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'
8780      fi
8781      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8782      hardcode_libdir_separator=:
8783      hardcode_direct=yes
8784
8785      # hardcode_minus_L: Not really in the search PATH,
8786      # but as the default location of the library.
8787      hardcode_minus_L=yes
8788      export_dynamic_flag_spec='${wl}-E'
8789      ;;
8790
8791    hpux10*)
8792      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8793	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8794      else
8795	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8796      fi
8797      if test "$with_gnu_ld" = no; then
8798	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8799	hardcode_libdir_separator=:
8800
8801	hardcode_direct=yes
8802	export_dynamic_flag_spec='${wl}-E'
8803
8804	# hardcode_minus_L: Not really in the search PATH,
8805	# but as the default location of the library.
8806	hardcode_minus_L=yes
8807      fi
8808      ;;
8809
8810    hpux11*)
8811      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8812	case $host_cpu in
8813	hppa*64*)
8814	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8815	  ;;
8816	ia64*)
8817	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8818	  ;;
8819	*)
8820	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8821	  ;;
8822	esac
8823      else
8824	case $host_cpu in
8825	hppa*64*)
8826	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8827	  ;;
8828	ia64*)
8829	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8830	  ;;
8831	*)
8832	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8833	  ;;
8834	esac
8835      fi
8836      if test "$with_gnu_ld" = no; then
8837	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8838	hardcode_libdir_separator=:
8839
8840	case $host_cpu in
8841	hppa*64*|ia64*)
8842	  hardcode_libdir_flag_spec_ld='+b $libdir'
8843	  hardcode_direct=no
8844	  hardcode_shlibpath_var=no
8845	  ;;
8846	*)
8847	  hardcode_direct=yes
8848	  export_dynamic_flag_spec='${wl}-E'
8849
8850	  # hardcode_minus_L: Not really in the search PATH,
8851	  # but as the default location of the library.
8852	  hardcode_minus_L=yes
8853	  ;;
8854	esac
8855      fi
8856      ;;
8857
8858    irix5* | irix6* | nonstopux*)
8859      if test "$GCC" = yes; then
8860	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'
8861      else
8862	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'
8863	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8864      fi
8865      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8866      hardcode_libdir_separator=:
8867      link_all_deplibs=yes
8868      ;;
8869
8870    netbsd*)
8871      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8872	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8873      else
8874	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8875      fi
8876      hardcode_libdir_flag_spec='-R$libdir'
8877      hardcode_direct=yes
8878      hardcode_shlibpath_var=no
8879      ;;
8880
8881    newsos6)
8882      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883      hardcode_direct=yes
8884      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8885      hardcode_libdir_separator=:
8886      hardcode_shlibpath_var=no
8887      ;;
8888
8889    openbsd*)
8890      if test -f /usr/libexec/ld.so; then
8891	hardcode_direct=yes
8892	hardcode_shlibpath_var=no
8893	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8894	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8895	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8896	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8897	  export_dynamic_flag_spec='${wl}-E'
8898	else
8899	  case $host_os in
8900	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8901	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8902	     hardcode_libdir_flag_spec='-R$libdir'
8903	     ;;
8904	   *)
8905	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8906	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8907	     ;;
8908	  esac
8909        fi
8910      else
8911	ld_shlibs=no
8912      fi
8913      ;;
8914
8915    os2*)
8916      hardcode_libdir_flag_spec='-L$libdir'
8917      hardcode_minus_L=yes
8918      allow_undefined_flag=unsupported
8919      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'
8920      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8921      ;;
8922
8923    osf3*)
8924      if test "$GCC" = yes; then
8925	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8926	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'
8927      else
8928	allow_undefined_flag=' -expect_unresolved \*'
8929	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'
8930      fi
8931      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8932      hardcode_libdir_separator=:
8933      ;;
8934
8935    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8936      if test "$GCC" = yes; then
8937	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8938	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'
8939	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8940      else
8941	allow_undefined_flag=' -expect_unresolved \*'
8942	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'
8943	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8944	$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'
8945
8946	# Both c and cxx compiler support -rpath directly
8947	hardcode_libdir_flag_spec='-rpath $libdir'
8948      fi
8949      hardcode_libdir_separator=:
8950      ;;
8951
8952    solaris*)
8953      no_undefined_flag=' -z text'
8954      if test "$GCC" = yes; then
8955	wlarc='${wl}'
8956	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8957	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8958	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8959      else
8960	wlarc=''
8961	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8963  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8964      fi
8965      hardcode_libdir_flag_spec='-R$libdir'
8966      hardcode_shlibpath_var=no
8967      case $host_os in
8968      solaris2.[0-5] | solaris2.[0-5].*) ;;
8969      *)
8970	# The compiler driver will combine and reorder linker options,
8971	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8972	# but is careful enough not to reorder.
8973 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8974	if test "$GCC" = yes; then
8975	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8976	else
8977	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8978	fi
8979	;;
8980      esac
8981      link_all_deplibs=yes
8982      ;;
8983
8984    sunos4*)
8985      if test "x$host_vendor" = xsequent; then
8986	# Use $CC to link under sequent, because it throws in some extra .o
8987	# files that make .init and .fini sections work.
8988	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8989      else
8990	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8991      fi
8992      hardcode_libdir_flag_spec='-L$libdir'
8993      hardcode_direct=yes
8994      hardcode_minus_L=yes
8995      hardcode_shlibpath_var=no
8996      ;;
8997
8998    sysv4)
8999      case $host_vendor in
9000	sni)
9001	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9002	  hardcode_direct=yes # is this really true???
9003	;;
9004	siemens)
9005	  ## LD is ld it makes a PLAMLIB
9006	  ## CC just makes a GrossModule.
9007	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9008	  reload_cmds='$CC -r -o $output$reload_objs'
9009	  hardcode_direct=no
9010        ;;
9011	motorola)
9012	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9014	;;
9015      esac
9016      runpath_var='LD_RUN_PATH'
9017      hardcode_shlibpath_var=no
9018      ;;
9019
9020    sysv4.3*)
9021      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9022      hardcode_shlibpath_var=no
9023      export_dynamic_flag_spec='-Bexport'
9024      ;;
9025
9026    sysv4*MP*)
9027      if test -d /usr/nec; then
9028	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9029	hardcode_shlibpath_var=no
9030	runpath_var=LD_RUN_PATH
9031	hardcode_runpath_var=yes
9032	ld_shlibs=yes
9033      fi
9034      ;;
9035
9036    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9037      no_undefined_flag='${wl}-z,text'
9038      archive_cmds_need_lc=no
9039      hardcode_shlibpath_var=no
9040      runpath_var='LD_RUN_PATH'
9041
9042      if test "$GCC" = yes; then
9043	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9044	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9045      else
9046	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9047	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9048      fi
9049      ;;
9050
9051    sysv5* | sco3.2v5* | sco5v6*)
9052      # Note: We can NOT use -z defs as we might desire, because we do not
9053      # link with -lc, and that would cause any symbols used from libc to
9054      # always be unresolved, which means just about no library would
9055      # ever link correctly.  If we're not using GNU ld we use -z text
9056      # though, which does catch some bad symbols but isn't as heavy-handed
9057      # as -z defs.
9058      no_undefined_flag='${wl}-z,text'
9059      allow_undefined_flag='${wl}-z,nodefs'
9060      archive_cmds_need_lc=no
9061      hardcode_shlibpath_var=no
9062      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9063      hardcode_libdir_separator=':'
9064      link_all_deplibs=yes
9065      export_dynamic_flag_spec='${wl}-Bexport'
9066      runpath_var='LD_RUN_PATH'
9067
9068      if test "$GCC" = yes; then
9069	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9070	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9071      else
9072	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9073	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9074      fi
9075      ;;
9076
9077    uts4*)
9078      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079      hardcode_libdir_flag_spec='-L$libdir'
9080      hardcode_shlibpath_var=no
9081      ;;
9082
9083    *)
9084      ld_shlibs=no
9085      ;;
9086    esac
9087  fi
9088
9089{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9090$as_echo "$ld_shlibs" >&6; }
9091test "$ld_shlibs" = no && can_build_shared=no
9092
9093#
9094# Do we need to explicitly link libc?
9095#
9096case "x$archive_cmds_need_lc" in
9097x|xyes)
9098  # Assume -lc should be added
9099  archive_cmds_need_lc=yes
9100
9101  if test "$enable_shared" = yes && test "$GCC" = yes; then
9102    case $archive_cmds in
9103    *'~'*)
9104      # FIXME: we may have to deal with multi-command sequences.
9105      ;;
9106    '$CC '*)
9107      # Test whether the compiler implicitly links with -lc since on some
9108      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9109      # to ld, don't add -lc before -lgcc.
9110      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9111$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9112      $rm conftest*
9113      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9114
9115      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9116  (eval $ac_compile) 2>&5
9117  ac_status=$?
9118  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119  (exit $ac_status); } 2>conftest.err; then
9120        soname=conftest
9121        lib=conftest
9122        libobjs=conftest.$ac_objext
9123        deplibs=
9124        wl=$lt_prog_compiler_wl
9125	pic_flag=$lt_prog_compiler_pic
9126        compiler_flags=-v
9127        linker_flags=-v
9128        verstring=
9129        output_objdir=.
9130        libname=conftest
9131        lt_save_allow_undefined_flag=$allow_undefined_flag
9132        allow_undefined_flag=
9133        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9134  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9135  ac_status=$?
9136  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137  (exit $ac_status); }
9138        then
9139	  archive_cmds_need_lc=no
9140        else
9141	  archive_cmds_need_lc=yes
9142        fi
9143        allow_undefined_flag=$lt_save_allow_undefined_flag
9144      else
9145        cat conftest.err 1>&5
9146      fi
9147      $rm conftest*
9148      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9149$as_echo "$archive_cmds_need_lc" >&6; }
9150      ;;
9151    esac
9152  fi
9153  ;;
9154esac
9155
9156{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9157$as_echo_n "checking dynamic linker characteristics... " >&6; }
9158library_names_spec=
9159libname_spec='lib$name'
9160soname_spec=
9161shrext_cmds=".so"
9162postinstall_cmds=
9163postuninstall_cmds=
9164finish_cmds=
9165finish_eval=
9166shlibpath_var=
9167shlibpath_overrides_runpath=unknown
9168version_type=none
9169dynamic_linker="$host_os ld.so"
9170sys_lib_dlsearch_path_spec="/lib /usr/lib"
9171
9172if test "$GCC" = yes; then
9173  case $host_os in
9174    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9175    *) lt_awk_arg="/^libraries:/" ;;
9176  esac
9177  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9178  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9179    # if the path contains ";" then we assume it to be the separator
9180    # otherwise default to the standard path separator (i.e. ":") - it is
9181    # assumed that no part of a normal pathname contains ";" but that should
9182    # okay in the real world where ";" in dirpaths is itself problematic.
9183    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9184  else
9185    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9186  fi
9187  # Ok, now we have the path, separated by spaces, we can step through it
9188  # and add multilib dir if necessary.
9189  lt_tmp_lt_search_path_spec=
9190  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9191  for lt_sys_path in $lt_search_path_spec; do
9192    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9193      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9194    else
9195      test -d "$lt_sys_path" && \
9196	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9197    fi
9198  done
9199  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9200BEGIN {RS=" "; FS="/|\n";} {
9201  lt_foo="";
9202  lt_count=0;
9203  for (lt_i = NF; lt_i > 0; lt_i--) {
9204    if ($lt_i != "" && $lt_i != ".") {
9205      if ($lt_i == "..") {
9206        lt_count++;
9207      } else {
9208        if (lt_count == 0) {
9209          lt_foo="/" $lt_i lt_foo;
9210        } else {
9211          lt_count--;
9212        }
9213      }
9214    }
9215  }
9216  if (lt_foo != "") { lt_freq[lt_foo]++; }
9217  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9218}'`
9219  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9220else
9221  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9222fi
9223need_lib_prefix=unknown
9224hardcode_into_libs=no
9225
9226# when you set need_version to no, make sure it does not cause -set_version
9227# flags to be left without arguments
9228need_version=unknown
9229
9230case $host_os in
9231aix3*)
9232  version_type=linux
9233  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9234  shlibpath_var=LIBPATH
9235
9236  # AIX 3 has no versioning support, so we append a major version to the name.
9237  soname_spec='${libname}${release}${shared_ext}$major'
9238  ;;
9239
9240aix[4-9]*)
9241  version_type=linux
9242  need_lib_prefix=no
9243  need_version=no
9244  hardcode_into_libs=yes
9245  if test "$host_cpu" = ia64; then
9246    # AIX 5 supports IA64
9247    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9248    shlibpath_var=LD_LIBRARY_PATH
9249  else
9250    # With GCC up to 2.95.x, collect2 would create an import file
9251    # for dependence libraries.  The import file would start with
9252    # the line `#! .'.  This would cause the generated library to
9253    # depend on `.', always an invalid library.  This was fixed in
9254    # development snapshots of GCC prior to 3.0.
9255    case $host_os in
9256      aix4 | aix4.[01] | aix4.[01].*)
9257      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9258	   echo ' yes '
9259	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9260	:
9261      else
9262	can_build_shared=no
9263      fi
9264      ;;
9265    esac
9266    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9267    # soname into executable. Probably we can add versioning support to
9268    # collect2, so additional links can be useful in future.
9269    if test "$aix_use_runtimelinking" = yes; then
9270      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9271      # instead of lib<name>.a to let people know that these are not
9272      # typical AIX shared libraries.
9273      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274    else
9275      # We preserve .a as extension for shared libraries through AIX4.2
9276      # and later when we are not doing run time linking.
9277      library_names_spec='${libname}${release}.a $libname.a'
9278      soname_spec='${libname}${release}${shared_ext}$major'
9279    fi
9280    shlibpath_var=LIBPATH
9281  fi
9282  ;;
9283
9284amigaos*)
9285  library_names_spec='$libname.ixlibrary $libname.a'
9286  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9287  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'
9288  ;;
9289
9290beos*)
9291  library_names_spec='${libname}${shared_ext}'
9292  dynamic_linker="$host_os ld.so"
9293  shlibpath_var=LIBRARY_PATH
9294  ;;
9295
9296bsdi[45]*)
9297  version_type=linux
9298  need_version=no
9299  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9300  soname_spec='${libname}${release}${shared_ext}$major'
9301  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9302  shlibpath_var=LD_LIBRARY_PATH
9303  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9304  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9305  # the default ld.so.conf also contains /usr/contrib/lib and
9306  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9307  # libtool to hard-code these into programs
9308  ;;
9309
9310cygwin* | mingw* | pw32*)
9311  version_type=windows
9312  shrext_cmds=".dll"
9313  need_version=no
9314  need_lib_prefix=no
9315
9316  case $GCC,$host_os in
9317  yes,cygwin* | yes,mingw* | yes,pw32*)
9318    library_names_spec='$libname.dll.a'
9319    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9320    postinstall_cmds='base_file=`basename \${file}`~
9321      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9322      dldir=$destdir/`dirname \$dlpath`~
9323      test -d \$dldir || mkdir -p \$dldir~
9324      $install_prog $dir/$dlname \$dldir/$dlname~
9325      chmod a+x \$dldir/$dlname'
9326    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9327      dlpath=$dir/\$dldll~
9328       $rm \$dlpath'
9329    shlibpath_overrides_runpath=yes
9330
9331    case $host_os in
9332    cygwin*)
9333      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9334      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9335      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9336      ;;
9337    mingw*)
9338      # MinGW DLLs use traditional 'lib' prefix
9339      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9340      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9341      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9342        # It is most probably a Windows format PATH printed by
9343        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9344        # path with ; separators, and with drive letters. We can handle the
9345        # drive letters (cygwin fileutils understands them), so leave them,
9346        # especially as we might pass files found there to a mingw objdump,
9347        # which wouldn't understand a cygwinified path. Ahh.
9348        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9349      else
9350        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9351      fi
9352      ;;
9353    pw32*)
9354      # pw32 DLLs use 'pw' prefix rather than 'lib'
9355      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9356      ;;
9357    esac
9358    ;;
9359
9360  *)
9361    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9362    ;;
9363  esac
9364  dynamic_linker='Win32 ld.exe'
9365  # FIXME: first we should search . and the directory the executable is in
9366  shlibpath_var=PATH
9367  ;;
9368
9369darwin* | rhapsody*)
9370  dynamic_linker="$host_os dyld"
9371  version_type=darwin
9372  need_lib_prefix=no
9373  need_version=no
9374  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9375  soname_spec='${libname}${release}${major}$shared_ext'
9376  shlibpath_overrides_runpath=yes
9377  shlibpath_var=DYLD_LIBRARY_PATH
9378  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9379
9380  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9381  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9382  ;;
9383
9384dgux*)
9385  version_type=linux
9386  need_lib_prefix=no
9387  need_version=no
9388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9389  soname_spec='${libname}${release}${shared_ext}$major'
9390  shlibpath_var=LD_LIBRARY_PATH
9391  ;;
9392
9393freebsd1*)
9394  dynamic_linker=no
9395  ;;
9396
9397freebsd* | dragonfly*)
9398  # DragonFly does not have aout.  When/if they implement a new
9399  # versioning mechanism, adjust this.
9400  if test -x /usr/bin/objformat; then
9401    objformat=`/usr/bin/objformat`
9402  else
9403    case $host_os in
9404    freebsd[123]*) objformat=aout ;;
9405    *) objformat=elf ;;
9406    esac
9407  fi
9408  version_type=freebsd-$objformat
9409  case $version_type in
9410    freebsd-elf*)
9411      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9412      need_version=no
9413      need_lib_prefix=no
9414      ;;
9415    freebsd-*)
9416      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9417      need_version=yes
9418      ;;
9419  esac
9420  shlibpath_var=LD_LIBRARY_PATH
9421  case $host_os in
9422  freebsd2*)
9423    shlibpath_overrides_runpath=yes
9424    ;;
9425  freebsd3.[01]* | freebsdelf3.[01]*)
9426    shlibpath_overrides_runpath=yes
9427    hardcode_into_libs=yes
9428    ;;
9429  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9430  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9431    shlibpath_overrides_runpath=no
9432    hardcode_into_libs=yes
9433    ;;
9434  *) # from 4.6 on, and DragonFly
9435    shlibpath_overrides_runpath=yes
9436    hardcode_into_libs=yes
9437    ;;
9438  esac
9439  ;;
9440
9441gnu*)
9442  version_type=linux
9443  need_lib_prefix=no
9444  need_version=no
9445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9446  soname_spec='${libname}${release}${shared_ext}$major'
9447  shlibpath_var=LD_LIBRARY_PATH
9448  hardcode_into_libs=yes
9449  ;;
9450
9451hpux9* | hpux10* | hpux11*)
9452  # Give a soname corresponding to the major version so that dld.sl refuses to
9453  # link against other versions.
9454  version_type=sunos
9455  need_lib_prefix=no
9456  need_version=no
9457  case $host_cpu in
9458  ia64*)
9459    shrext_cmds='.so'
9460    hardcode_into_libs=yes
9461    dynamic_linker="$host_os dld.so"
9462    shlibpath_var=LD_LIBRARY_PATH
9463    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9464    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465    soname_spec='${libname}${release}${shared_ext}$major'
9466    if test "X$HPUX_IA64_MODE" = X32; then
9467      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9468    else
9469      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9470    fi
9471    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9472    ;;
9473   hppa*64*)
9474     shrext_cmds='.sl'
9475     hardcode_into_libs=yes
9476     dynamic_linker="$host_os dld.sl"
9477     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9478     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9479     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9480     soname_spec='${libname}${release}${shared_ext}$major'
9481     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9482     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9483     ;;
9484   *)
9485    shrext_cmds='.sl'
9486    dynamic_linker="$host_os dld.sl"
9487    shlibpath_var=SHLIB_PATH
9488    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9489    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9490    soname_spec='${libname}${release}${shared_ext}$major'
9491    ;;
9492  esac
9493  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9494  postinstall_cmds='chmod 555 $lib'
9495  ;;
9496
9497interix[3-9]*)
9498  version_type=linux
9499  need_lib_prefix=no
9500  need_version=no
9501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9502  soname_spec='${libname}${release}${shared_ext}$major'
9503  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9504  shlibpath_var=LD_LIBRARY_PATH
9505  shlibpath_overrides_runpath=no
9506  hardcode_into_libs=yes
9507  ;;
9508
9509irix5* | irix6* | nonstopux*)
9510  case $host_os in
9511    nonstopux*) version_type=nonstopux ;;
9512    *)
9513	if test "$lt_cv_prog_gnu_ld" = yes; then
9514		version_type=linux
9515	else
9516		version_type=irix
9517	fi ;;
9518  esac
9519  need_lib_prefix=no
9520  need_version=no
9521  soname_spec='${libname}${release}${shared_ext}$major'
9522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9523  case $host_os in
9524  irix5* | nonstopux*)
9525    libsuff= shlibsuff=
9526    ;;
9527  *)
9528    case $LD in # libtool.m4 will add one of these switches to LD
9529    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9530      libsuff= shlibsuff= libmagic=32-bit;;
9531    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9532      libsuff=32 shlibsuff=N32 libmagic=N32;;
9533    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9534      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9535    *) libsuff= shlibsuff= libmagic=never-match;;
9536    esac
9537    ;;
9538  esac
9539  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9540  shlibpath_overrides_runpath=no
9541  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9542  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9543  hardcode_into_libs=yes
9544  ;;
9545
9546# No shared lib support for Linux oldld, aout, or coff.
9547linux*oldld* | linux*aout* | linux*coff*)
9548  dynamic_linker=no
9549  ;;
9550
9551# This must be Linux ELF.
9552linux* | k*bsd*-gnu)
9553  version_type=linux
9554  need_lib_prefix=no
9555  need_version=no
9556  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9557  soname_spec='${libname}${release}${shared_ext}$major'
9558  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9559  shlibpath_var=LD_LIBRARY_PATH
9560  shlibpath_overrides_runpath=no
9561  # This implies no fast_install, which is unacceptable.
9562  # Some rework will be needed to allow for fast_install
9563  # before this can be enabled.
9564  hardcode_into_libs=yes
9565  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9566  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9567
9568  # Append ld.so.conf contents to the search path
9569  if test -f /etc/ld.so.conf; then
9570    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' ' '`
9571    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9572  fi
9573
9574  # We used to test for /lib/ld.so.1 and disable shared libraries on
9575  # powerpc, because MkLinux only supported shared libraries with the
9576  # GNU dynamic linker.  Since this was broken with cross compilers,
9577  # most powerpc-linux boxes support dynamic linking these days and
9578  # people can always --disable-shared, the test was removed, and we
9579  # assume the GNU/Linux dynamic linker is in use.
9580  dynamic_linker='GNU/Linux ld.so'
9581  ;;
9582
9583netbsd*)
9584  version_type=sunos
9585  need_lib_prefix=no
9586  need_version=no
9587  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9588    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9589    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9590    dynamic_linker='NetBSD (a.out) ld.so'
9591  else
9592    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9593    soname_spec='${libname}${release}${shared_ext}$major'
9594    dynamic_linker='NetBSD ld.elf_so'
9595  fi
9596  shlibpath_var=LD_LIBRARY_PATH
9597  shlibpath_overrides_runpath=yes
9598  hardcode_into_libs=yes
9599  ;;
9600
9601newsos6)
9602  version_type=linux
9603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9604  shlibpath_var=LD_LIBRARY_PATH
9605  shlibpath_overrides_runpath=yes
9606  ;;
9607
9608nto-qnx*)
9609  version_type=linux
9610  need_lib_prefix=no
9611  need_version=no
9612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9613  soname_spec='${libname}${release}${shared_ext}$major'
9614  shlibpath_var=LD_LIBRARY_PATH
9615  shlibpath_overrides_runpath=yes
9616  ;;
9617
9618openbsd*)
9619  version_type=sunos
9620  sys_lib_dlsearch_path_spec="/usr/lib"
9621  need_lib_prefix=no
9622  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9623  case $host_os in
9624    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9625    *)                         need_version=no  ;;
9626  esac
9627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9628  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9629  shlibpath_var=LD_LIBRARY_PATH
9630  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9631    case $host_os in
9632      openbsd2.[89] | openbsd2.[89].*)
9633	shlibpath_overrides_runpath=no
9634	;;
9635      *)
9636	shlibpath_overrides_runpath=yes
9637	;;
9638      esac
9639  else
9640    shlibpath_overrides_runpath=yes
9641  fi
9642  ;;
9643
9644os2*)
9645  libname_spec='$name'
9646  shrext_cmds=".dll"
9647  need_lib_prefix=no
9648  library_names_spec='$libname${shared_ext} $libname.a'
9649  dynamic_linker='OS/2 ld.exe'
9650  shlibpath_var=LIBPATH
9651  ;;
9652
9653osf3* | osf4* | osf5*)
9654  version_type=osf
9655  need_lib_prefix=no
9656  need_version=no
9657  soname_spec='${libname}${release}${shared_ext}$major'
9658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9659  shlibpath_var=LD_LIBRARY_PATH
9660  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9661  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9662  ;;
9663
9664rdos*)
9665  dynamic_linker=no
9666  ;;
9667
9668solaris*)
9669  version_type=linux
9670  need_lib_prefix=no
9671  need_version=no
9672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9673  soname_spec='${libname}${release}${shared_ext}$major'
9674  shlibpath_var=LD_LIBRARY_PATH
9675  shlibpath_overrides_runpath=yes
9676  hardcode_into_libs=yes
9677  # ldd complains unless libraries are executable
9678  postinstall_cmds='chmod +x $lib'
9679  ;;
9680
9681sunos4*)
9682  version_type=sunos
9683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9684  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9685  shlibpath_var=LD_LIBRARY_PATH
9686  shlibpath_overrides_runpath=yes
9687  if test "$with_gnu_ld" = yes; then
9688    need_lib_prefix=no
9689  fi
9690  need_version=yes
9691  ;;
9692
9693sysv4 | sysv4.3*)
9694  version_type=linux
9695  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9696  soname_spec='${libname}${release}${shared_ext}$major'
9697  shlibpath_var=LD_LIBRARY_PATH
9698  case $host_vendor in
9699    sni)
9700      shlibpath_overrides_runpath=no
9701      need_lib_prefix=no
9702      export_dynamic_flag_spec='${wl}-Blargedynsym'
9703      runpath_var=LD_RUN_PATH
9704      ;;
9705    siemens)
9706      need_lib_prefix=no
9707      ;;
9708    motorola)
9709      need_lib_prefix=no
9710      need_version=no
9711      shlibpath_overrides_runpath=no
9712      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9713      ;;
9714  esac
9715  ;;
9716
9717sysv4*MP*)
9718  if test -d /usr/nec ;then
9719    version_type=linux
9720    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9721    soname_spec='$libname${shared_ext}.$major'
9722    shlibpath_var=LD_LIBRARY_PATH
9723  fi
9724  ;;
9725
9726sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9727  version_type=freebsd-elf
9728  need_lib_prefix=no
9729  need_version=no
9730  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9731  soname_spec='${libname}${release}${shared_ext}$major'
9732  shlibpath_var=LD_LIBRARY_PATH
9733  hardcode_into_libs=yes
9734  if test "$with_gnu_ld" = yes; then
9735    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9736    shlibpath_overrides_runpath=no
9737  else
9738    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9739    shlibpath_overrides_runpath=yes
9740    case $host_os in
9741      sco3.2v5*)
9742        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9743	;;
9744    esac
9745  fi
9746  sys_lib_dlsearch_path_spec='/usr/lib'
9747  ;;
9748
9749uts4*)
9750  version_type=linux
9751  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9752  soname_spec='${libname}${release}${shared_ext}$major'
9753  shlibpath_var=LD_LIBRARY_PATH
9754  ;;
9755
9756*)
9757  dynamic_linker=no
9758  ;;
9759esac
9760{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9761$as_echo "$dynamic_linker" >&6; }
9762test "$dynamic_linker" = no && can_build_shared=no
9763
9764if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9765  $as_echo_n "(cached) " >&6
9766else
9767  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9768fi
9769
9770sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9771if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9772  $as_echo_n "(cached) " >&6
9773else
9774  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9775fi
9776
9777sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9778
9779variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9780if test "$GCC" = yes; then
9781  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9782fi
9783
9784{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9785$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9786hardcode_action=
9787if test -n "$hardcode_libdir_flag_spec" || \
9788   test -n "$runpath_var" || \
9789   test "X$hardcode_automatic" = "Xyes" ; then
9790
9791  # We can hardcode non-existant directories.
9792  if test "$hardcode_direct" != no &&
9793     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9794     # have to relink, otherwise we might link with an installed library
9795     # when we should be linking with a yet-to-be-installed one
9796     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9797     test "$hardcode_minus_L" != no; then
9798    # Linking always hardcodes the temporary library directory.
9799    hardcode_action=relink
9800  else
9801    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9802    hardcode_action=immediate
9803  fi
9804else
9805  # We cannot hardcode anything, or else we can only hardcode existing
9806  # directories.
9807  hardcode_action=unsupported
9808fi
9809{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9810$as_echo "$hardcode_action" >&6; }
9811
9812if test "$hardcode_action" = relink; then
9813  # Fast installation is not supported
9814  enable_fast_install=no
9815elif test "$shlibpath_overrides_runpath" = yes ||
9816     test "$enable_shared" = no; then
9817  # Fast installation is not necessary
9818  enable_fast_install=needless
9819fi
9820
9821striplib=
9822old_striplib=
9823{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9824$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9825if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9826  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9827  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9828  { $as_echo "$as_me:$LINENO: result: yes" >&5
9829$as_echo "yes" >&6; }
9830else
9831# FIXME - insert some real tests, host_os isn't really good enough
9832  case $host_os in
9833   darwin*)
9834       if test -n "$STRIP" ; then
9835         striplib="$STRIP -x"
9836         old_striplib="$STRIP -S"
9837         { $as_echo "$as_me:$LINENO: result: yes" >&5
9838$as_echo "yes" >&6; }
9839       else
9840  { $as_echo "$as_me:$LINENO: result: no" >&5
9841$as_echo "no" >&6; }
9842fi
9843       ;;
9844   *)
9845  { $as_echo "$as_me:$LINENO: result: no" >&5
9846$as_echo "no" >&6; }
9847    ;;
9848  esac
9849fi
9850
9851if test "x$enable_dlopen" != xyes; then
9852  enable_dlopen=unknown
9853  enable_dlopen_self=unknown
9854  enable_dlopen_self_static=unknown
9855else
9856  lt_cv_dlopen=no
9857  lt_cv_dlopen_libs=
9858
9859  case $host_os in
9860  beos*)
9861    lt_cv_dlopen="load_add_on"
9862    lt_cv_dlopen_libs=
9863    lt_cv_dlopen_self=yes
9864    ;;
9865
9866  mingw* | pw32*)
9867    lt_cv_dlopen="LoadLibrary"
9868    lt_cv_dlopen_libs=
9869   ;;
9870
9871  cygwin*)
9872    lt_cv_dlopen="dlopen"
9873    lt_cv_dlopen_libs=
9874   ;;
9875
9876  darwin*)
9877  # if libdl is installed we need to link against it
9878    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9879$as_echo_n "checking for dlopen in -ldl... " >&6; }
9880if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9881  $as_echo_n "(cached) " >&6
9882else
9883  ac_check_lib_save_LIBS=$LIBS
9884LIBS="-ldl  $LIBS"
9885cat >conftest.$ac_ext <<_ACEOF
9886/* confdefs.h.  */
9887_ACEOF
9888cat confdefs.h >>conftest.$ac_ext
9889cat >>conftest.$ac_ext <<_ACEOF
9890/* end confdefs.h.  */
9891
9892/* Override any GCC internal prototype to avoid an error.
9893   Use char because int might match the return type of a GCC
9894   builtin and then its argument prototype would still apply.  */
9895#ifdef __cplusplus
9896extern "C"
9897#endif
9898char dlopen ();
9899int
9900main ()
9901{
9902return dlopen ();
9903  ;
9904  return 0;
9905}
9906_ACEOF
9907rm -f conftest.$ac_objext conftest$ac_exeext
9908if { (ac_try="$ac_link"
9909case "(($ac_try" in
9910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9911  *) ac_try_echo=$ac_try;;
9912esac
9913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9914$as_echo "$ac_try_echo") >&5
9915  (eval "$ac_link") 2>conftest.er1
9916  ac_status=$?
9917  grep -v '^ *+' conftest.er1 >conftest.err
9918  rm -f conftest.er1
9919  cat conftest.err >&5
9920  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921  (exit $ac_status); } && {
9922	 test -z "$ac_c_werror_flag" ||
9923	 test ! -s conftest.err
9924       } && test -s conftest$ac_exeext && {
9925	 test "$cross_compiling" = yes ||
9926	 $as_test_x conftest$ac_exeext
9927       }; then
9928  ac_cv_lib_dl_dlopen=yes
9929else
9930  $as_echo "$as_me: failed program was:" >&5
9931sed 's/^/| /' conftest.$ac_ext >&5
9932
9933	ac_cv_lib_dl_dlopen=no
9934fi
9935
9936rm -rf conftest.dSYM
9937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9938      conftest$ac_exeext conftest.$ac_ext
9939LIBS=$ac_check_lib_save_LIBS
9940fi
9941{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9942$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9943if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9944  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9945else
9946
9947    lt_cv_dlopen="dyld"
9948    lt_cv_dlopen_libs=
9949    lt_cv_dlopen_self=yes
9950
9951fi
9952
9953   ;;
9954
9955  *)
9956    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9957$as_echo_n "checking for shl_load... " >&6; }
9958if test "${ac_cv_func_shl_load+set}" = set; then
9959  $as_echo_n "(cached) " >&6
9960else
9961  cat >conftest.$ac_ext <<_ACEOF
9962/* confdefs.h.  */
9963_ACEOF
9964cat confdefs.h >>conftest.$ac_ext
9965cat >>conftest.$ac_ext <<_ACEOF
9966/* end confdefs.h.  */
9967/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9968   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9969#define shl_load innocuous_shl_load
9970
9971/* System header to define __stub macros and hopefully few prototypes,
9972    which can conflict with char shl_load (); below.
9973    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9974    <limits.h> exists even on freestanding compilers.  */
9975
9976#ifdef __STDC__
9977# include <limits.h>
9978#else
9979# include <assert.h>
9980#endif
9981
9982#undef shl_load
9983
9984/* Override any GCC internal prototype to avoid an error.
9985   Use char because int might match the return type of a GCC
9986   builtin and then its argument prototype would still apply.  */
9987#ifdef __cplusplus
9988extern "C"
9989#endif
9990char shl_load ();
9991/* The GNU C library defines this for functions which it implements
9992    to always fail with ENOSYS.  Some functions are actually named
9993    something starting with __ and the normal name is an alias.  */
9994#if defined __stub_shl_load || defined __stub___shl_load
9995choke me
9996#endif
9997
9998int
9999main ()
10000{
10001return shl_load ();
10002  ;
10003  return 0;
10004}
10005_ACEOF
10006rm -f conftest.$ac_objext conftest$ac_exeext
10007if { (ac_try="$ac_link"
10008case "(($ac_try" in
10009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10010  *) ac_try_echo=$ac_try;;
10011esac
10012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10013$as_echo "$ac_try_echo") >&5
10014  (eval "$ac_link") 2>conftest.er1
10015  ac_status=$?
10016  grep -v '^ *+' conftest.er1 >conftest.err
10017  rm -f conftest.er1
10018  cat conftest.err >&5
10019  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020  (exit $ac_status); } && {
10021	 test -z "$ac_c_werror_flag" ||
10022	 test ! -s conftest.err
10023       } && test -s conftest$ac_exeext && {
10024	 test "$cross_compiling" = yes ||
10025	 $as_test_x conftest$ac_exeext
10026       }; then
10027  ac_cv_func_shl_load=yes
10028else
10029  $as_echo "$as_me: failed program was:" >&5
10030sed 's/^/| /' conftest.$ac_ext >&5
10031
10032	ac_cv_func_shl_load=no
10033fi
10034
10035rm -rf conftest.dSYM
10036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10037      conftest$ac_exeext conftest.$ac_ext
10038fi
10039{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10040$as_echo "$ac_cv_func_shl_load" >&6; }
10041if test "x$ac_cv_func_shl_load" = x""yes; then
10042  lt_cv_dlopen="shl_load"
10043else
10044  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10045$as_echo_n "checking for shl_load in -ldld... " >&6; }
10046if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10047  $as_echo_n "(cached) " >&6
10048else
10049  ac_check_lib_save_LIBS=$LIBS
10050LIBS="-ldld  $LIBS"
10051cat >conftest.$ac_ext <<_ACEOF
10052/* confdefs.h.  */
10053_ACEOF
10054cat confdefs.h >>conftest.$ac_ext
10055cat >>conftest.$ac_ext <<_ACEOF
10056/* end confdefs.h.  */
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 ();
10065int
10066main ()
10067{
10068return shl_load ();
10069  ;
10070  return 0;
10071}
10072_ACEOF
10073rm -f conftest.$ac_objext conftest$ac_exeext
10074if { (ac_try="$ac_link"
10075case "(($ac_try" in
10076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077  *) ac_try_echo=$ac_try;;
10078esac
10079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10080$as_echo "$ac_try_echo") >&5
10081  (eval "$ac_link") 2>conftest.er1
10082  ac_status=$?
10083  grep -v '^ *+' conftest.er1 >conftest.err
10084  rm -f conftest.er1
10085  cat conftest.err >&5
10086  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087  (exit $ac_status); } && {
10088	 test -z "$ac_c_werror_flag" ||
10089	 test ! -s conftest.err
10090       } && test -s conftest$ac_exeext && {
10091	 test "$cross_compiling" = yes ||
10092	 $as_test_x conftest$ac_exeext
10093       }; then
10094  ac_cv_lib_dld_shl_load=yes
10095else
10096  $as_echo "$as_me: failed program was:" >&5
10097sed 's/^/| /' conftest.$ac_ext >&5
10098
10099	ac_cv_lib_dld_shl_load=no
10100fi
10101
10102rm -rf conftest.dSYM
10103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10104      conftest$ac_exeext conftest.$ac_ext
10105LIBS=$ac_check_lib_save_LIBS
10106fi
10107{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10108$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10109if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10110  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10111else
10112  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10113$as_echo_n "checking for dlopen... " >&6; }
10114if test "${ac_cv_func_dlopen+set}" = set; then
10115  $as_echo_n "(cached) " >&6
10116else
10117  cat >conftest.$ac_ext <<_ACEOF
10118/* confdefs.h.  */
10119_ACEOF
10120cat confdefs.h >>conftest.$ac_ext
10121cat >>conftest.$ac_ext <<_ACEOF
10122/* end confdefs.h.  */
10123/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10124   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10125#define dlopen innocuous_dlopen
10126
10127/* System header to define __stub macros and hopefully few prototypes,
10128    which can conflict with char dlopen (); below.
10129    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10130    <limits.h> exists even on freestanding compilers.  */
10131
10132#ifdef __STDC__
10133# include <limits.h>
10134#else
10135# include <assert.h>
10136#endif
10137
10138#undef dlopen
10139
10140/* Override any GCC internal prototype to avoid an error.
10141   Use char because int might match the return type of a GCC
10142   builtin and then its argument prototype would still apply.  */
10143#ifdef __cplusplus
10144extern "C"
10145#endif
10146char dlopen ();
10147/* The GNU C library defines this for functions which it implements
10148    to always fail with ENOSYS.  Some functions are actually named
10149    something starting with __ and the normal name is an alias.  */
10150#if defined __stub_dlopen || defined __stub___dlopen
10151choke me
10152#endif
10153
10154int
10155main ()
10156{
10157return dlopen ();
10158  ;
10159  return 0;
10160}
10161_ACEOF
10162rm -f conftest.$ac_objext conftest$ac_exeext
10163if { (ac_try="$ac_link"
10164case "(($ac_try" in
10165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166  *) ac_try_echo=$ac_try;;
10167esac
10168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10169$as_echo "$ac_try_echo") >&5
10170  (eval "$ac_link") 2>conftest.er1
10171  ac_status=$?
10172  grep -v '^ *+' conftest.er1 >conftest.err
10173  rm -f conftest.er1
10174  cat conftest.err >&5
10175  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176  (exit $ac_status); } && {
10177	 test -z "$ac_c_werror_flag" ||
10178	 test ! -s conftest.err
10179       } && test -s conftest$ac_exeext && {
10180	 test "$cross_compiling" = yes ||
10181	 $as_test_x conftest$ac_exeext
10182       }; then
10183  ac_cv_func_dlopen=yes
10184else
10185  $as_echo "$as_me: failed program was:" >&5
10186sed 's/^/| /' conftest.$ac_ext >&5
10187
10188	ac_cv_func_dlopen=no
10189fi
10190
10191rm -rf conftest.dSYM
10192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10193      conftest$ac_exeext conftest.$ac_ext
10194fi
10195{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10196$as_echo "$ac_cv_func_dlopen" >&6; }
10197if test "x$ac_cv_func_dlopen" = x""yes; then
10198  lt_cv_dlopen="dlopen"
10199else
10200  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10201$as_echo_n "checking for dlopen in -ldl... " >&6; }
10202if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10203  $as_echo_n "(cached) " >&6
10204else
10205  ac_check_lib_save_LIBS=$LIBS
10206LIBS="-ldl  $LIBS"
10207cat >conftest.$ac_ext <<_ACEOF
10208/* confdefs.h.  */
10209_ACEOF
10210cat confdefs.h >>conftest.$ac_ext
10211cat >>conftest.$ac_ext <<_ACEOF
10212/* end confdefs.h.  */
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 ();
10221int
10222main ()
10223{
10224return dlopen ();
10225  ;
10226  return 0;
10227}
10228_ACEOF
10229rm -f conftest.$ac_objext conftest$ac_exeext
10230if { (ac_try="$ac_link"
10231case "(($ac_try" in
10232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233  *) ac_try_echo=$ac_try;;
10234esac
10235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10236$as_echo "$ac_try_echo") >&5
10237  (eval "$ac_link") 2>conftest.er1
10238  ac_status=$?
10239  grep -v '^ *+' conftest.er1 >conftest.err
10240  rm -f conftest.er1
10241  cat conftest.err >&5
10242  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243  (exit $ac_status); } && {
10244	 test -z "$ac_c_werror_flag" ||
10245	 test ! -s conftest.err
10246       } && test -s conftest$ac_exeext && {
10247	 test "$cross_compiling" = yes ||
10248	 $as_test_x conftest$ac_exeext
10249       }; then
10250  ac_cv_lib_dl_dlopen=yes
10251else
10252  $as_echo "$as_me: failed program was:" >&5
10253sed 's/^/| /' conftest.$ac_ext >&5
10254
10255	ac_cv_lib_dl_dlopen=no
10256fi
10257
10258rm -rf conftest.dSYM
10259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10260      conftest$ac_exeext conftest.$ac_ext
10261LIBS=$ac_check_lib_save_LIBS
10262fi
10263{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10264$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10265if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10266  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10267else
10268  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10269$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10270if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10271  $as_echo_n "(cached) " >&6
10272else
10273  ac_check_lib_save_LIBS=$LIBS
10274LIBS="-lsvld  $LIBS"
10275cat >conftest.$ac_ext <<_ACEOF
10276/* confdefs.h.  */
10277_ACEOF
10278cat confdefs.h >>conftest.$ac_ext
10279cat >>conftest.$ac_ext <<_ACEOF
10280/* end confdefs.h.  */
10281
10282/* Override any GCC internal prototype to avoid an error.
10283   Use char because int might match the return type of a GCC
10284   builtin and then its argument prototype would still apply.  */
10285#ifdef __cplusplus
10286extern "C"
10287#endif
10288char dlopen ();
10289int
10290main ()
10291{
10292return dlopen ();
10293  ;
10294  return 0;
10295}
10296_ACEOF
10297rm -f conftest.$ac_objext conftest$ac_exeext
10298if { (ac_try="$ac_link"
10299case "(($ac_try" in
10300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301  *) ac_try_echo=$ac_try;;
10302esac
10303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10304$as_echo "$ac_try_echo") >&5
10305  (eval "$ac_link") 2>conftest.er1
10306  ac_status=$?
10307  grep -v '^ *+' conftest.er1 >conftest.err
10308  rm -f conftest.er1
10309  cat conftest.err >&5
10310  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311  (exit $ac_status); } && {
10312	 test -z "$ac_c_werror_flag" ||
10313	 test ! -s conftest.err
10314       } && test -s conftest$ac_exeext && {
10315	 test "$cross_compiling" = yes ||
10316	 $as_test_x conftest$ac_exeext
10317       }; then
10318  ac_cv_lib_svld_dlopen=yes
10319else
10320  $as_echo "$as_me: failed program was:" >&5
10321sed 's/^/| /' conftest.$ac_ext >&5
10322
10323	ac_cv_lib_svld_dlopen=no
10324fi
10325
10326rm -rf conftest.dSYM
10327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10328      conftest$ac_exeext conftest.$ac_ext
10329LIBS=$ac_check_lib_save_LIBS
10330fi
10331{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10332$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10333if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10334  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10335else
10336  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10337$as_echo_n "checking for dld_link in -ldld... " >&6; }
10338if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10339  $as_echo_n "(cached) " >&6
10340else
10341  ac_check_lib_save_LIBS=$LIBS
10342LIBS="-ldld  $LIBS"
10343cat >conftest.$ac_ext <<_ACEOF
10344/* confdefs.h.  */
10345_ACEOF
10346cat confdefs.h >>conftest.$ac_ext
10347cat >>conftest.$ac_ext <<_ACEOF
10348/* end confdefs.h.  */
10349
10350/* Override any GCC internal prototype to avoid an error.
10351   Use char because int might match the return type of a GCC
10352   builtin and then its argument prototype would still apply.  */
10353#ifdef __cplusplus
10354extern "C"
10355#endif
10356char dld_link ();
10357int
10358main ()
10359{
10360return dld_link ();
10361  ;
10362  return 0;
10363}
10364_ACEOF
10365rm -f conftest.$ac_objext conftest$ac_exeext
10366if { (ac_try="$ac_link"
10367case "(($ac_try" in
10368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10369  *) ac_try_echo=$ac_try;;
10370esac
10371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10372$as_echo "$ac_try_echo") >&5
10373  (eval "$ac_link") 2>conftest.er1
10374  ac_status=$?
10375  grep -v '^ *+' conftest.er1 >conftest.err
10376  rm -f conftest.er1
10377  cat conftest.err >&5
10378  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379  (exit $ac_status); } && {
10380	 test -z "$ac_c_werror_flag" ||
10381	 test ! -s conftest.err
10382       } && test -s conftest$ac_exeext && {
10383	 test "$cross_compiling" = yes ||
10384	 $as_test_x conftest$ac_exeext
10385       }; then
10386  ac_cv_lib_dld_dld_link=yes
10387else
10388  $as_echo "$as_me: failed program was:" >&5
10389sed 's/^/| /' conftest.$ac_ext >&5
10390
10391	ac_cv_lib_dld_dld_link=no
10392fi
10393
10394rm -rf conftest.dSYM
10395rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10396      conftest$ac_exeext conftest.$ac_ext
10397LIBS=$ac_check_lib_save_LIBS
10398fi
10399{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10400$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10401if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10402  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10403fi
10404
10405
10406fi
10407
10408
10409fi
10410
10411
10412fi
10413
10414
10415fi
10416
10417
10418fi
10419
10420    ;;
10421  esac
10422
10423  if test "x$lt_cv_dlopen" != xno; then
10424    enable_dlopen=yes
10425  else
10426    enable_dlopen=no
10427  fi
10428
10429  case $lt_cv_dlopen in
10430  dlopen)
10431    save_CPPFLAGS="$CPPFLAGS"
10432    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10433
10434    save_LDFLAGS="$LDFLAGS"
10435    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10436
10437    save_LIBS="$LIBS"
10438    LIBS="$lt_cv_dlopen_libs $LIBS"
10439
10440    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10441$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10442if test "${lt_cv_dlopen_self+set}" = set; then
10443  $as_echo_n "(cached) " >&6
10444else
10445  	  if test "$cross_compiling" = yes; then :
10446  lt_cv_dlopen_self=cross
10447else
10448  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10449  lt_status=$lt_dlunknown
10450  cat > conftest.$ac_ext <<EOF
10451#line 10451 "configure"
10452#include "confdefs.h"
10453
10454#if HAVE_DLFCN_H
10455#include <dlfcn.h>
10456#endif
10457
10458#include <stdio.h>
10459
10460#ifdef RTLD_GLOBAL
10461#  define LT_DLGLOBAL		RTLD_GLOBAL
10462#else
10463#  ifdef DL_GLOBAL
10464#    define LT_DLGLOBAL		DL_GLOBAL
10465#  else
10466#    define LT_DLGLOBAL		0
10467#  endif
10468#endif
10469
10470/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10471   find out it does not work in some platform. */
10472#ifndef LT_DLLAZY_OR_NOW
10473#  ifdef RTLD_LAZY
10474#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10475#  else
10476#    ifdef DL_LAZY
10477#      define LT_DLLAZY_OR_NOW		DL_LAZY
10478#    else
10479#      ifdef RTLD_NOW
10480#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10481#      else
10482#        ifdef DL_NOW
10483#          define LT_DLLAZY_OR_NOW	DL_NOW
10484#        else
10485#          define LT_DLLAZY_OR_NOW	0
10486#        endif
10487#      endif
10488#    endif
10489#  endif
10490#endif
10491
10492#ifdef __cplusplus
10493extern "C" void exit (int);
10494#endif
10495
10496void fnord() { int i=42;}
10497int main ()
10498{
10499  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10500  int status = $lt_dlunknown;
10501
10502  if (self)
10503    {
10504      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10505      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10506      /* dlclose (self); */
10507    }
10508  else
10509    puts (dlerror ());
10510
10511    exit (status);
10512}
10513EOF
10514  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10515  (eval $ac_link) 2>&5
10516  ac_status=$?
10517  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10519    (./conftest; exit; ) >&5 2>/dev/null
10520    lt_status=$?
10521    case x$lt_status in
10522      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10523      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10524      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10525    esac
10526  else :
10527    # compilation failed
10528    lt_cv_dlopen_self=no
10529  fi
10530fi
10531rm -fr conftest*
10532
10533
10534fi
10535{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10536$as_echo "$lt_cv_dlopen_self" >&6; }
10537
10538    if test "x$lt_cv_dlopen_self" = xyes; then
10539      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10540      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10541$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10542if test "${lt_cv_dlopen_self_static+set}" = set; then
10543  $as_echo_n "(cached) " >&6
10544else
10545  	  if test "$cross_compiling" = yes; then :
10546  lt_cv_dlopen_self_static=cross
10547else
10548  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10549  lt_status=$lt_dlunknown
10550  cat > conftest.$ac_ext <<EOF
10551#line 10551 "configure"
10552#include "confdefs.h"
10553
10554#if HAVE_DLFCN_H
10555#include <dlfcn.h>
10556#endif
10557
10558#include <stdio.h>
10559
10560#ifdef RTLD_GLOBAL
10561#  define LT_DLGLOBAL		RTLD_GLOBAL
10562#else
10563#  ifdef DL_GLOBAL
10564#    define LT_DLGLOBAL		DL_GLOBAL
10565#  else
10566#    define LT_DLGLOBAL		0
10567#  endif
10568#endif
10569
10570/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10571   find out it does not work in some platform. */
10572#ifndef LT_DLLAZY_OR_NOW
10573#  ifdef RTLD_LAZY
10574#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10575#  else
10576#    ifdef DL_LAZY
10577#      define LT_DLLAZY_OR_NOW		DL_LAZY
10578#    else
10579#      ifdef RTLD_NOW
10580#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10581#      else
10582#        ifdef DL_NOW
10583#          define LT_DLLAZY_OR_NOW	DL_NOW
10584#        else
10585#          define LT_DLLAZY_OR_NOW	0
10586#        endif
10587#      endif
10588#    endif
10589#  endif
10590#endif
10591
10592#ifdef __cplusplus
10593extern "C" void exit (int);
10594#endif
10595
10596void fnord() { int i=42;}
10597int main ()
10598{
10599  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10600  int status = $lt_dlunknown;
10601
10602  if (self)
10603    {
10604      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10605      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10606      /* dlclose (self); */
10607    }
10608  else
10609    puts (dlerror ());
10610
10611    exit (status);
10612}
10613EOF
10614  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10615  (eval $ac_link) 2>&5
10616  ac_status=$?
10617  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10619    (./conftest; exit; ) >&5 2>/dev/null
10620    lt_status=$?
10621    case x$lt_status in
10622      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10623      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10624      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10625    esac
10626  else :
10627    # compilation failed
10628    lt_cv_dlopen_self_static=no
10629  fi
10630fi
10631rm -fr conftest*
10632
10633
10634fi
10635{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10636$as_echo "$lt_cv_dlopen_self_static" >&6; }
10637    fi
10638
10639    CPPFLAGS="$save_CPPFLAGS"
10640    LDFLAGS="$save_LDFLAGS"
10641    LIBS="$save_LIBS"
10642    ;;
10643  esac
10644
10645  case $lt_cv_dlopen_self in
10646  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10647  *) enable_dlopen_self=unknown ;;
10648  esac
10649
10650  case $lt_cv_dlopen_self_static in
10651  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10652  *) enable_dlopen_self_static=unknown ;;
10653  esac
10654fi
10655
10656
10657# Report which library types will actually be built
10658{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10659$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10660{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10661$as_echo "$can_build_shared" >&6; }
10662
10663{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10664$as_echo_n "checking whether to build shared libraries... " >&6; }
10665test "$can_build_shared" = "no" && enable_shared=no
10666
10667# On AIX, shared libraries and static libraries use the same namespace, and
10668# are all built from PIC.
10669case $host_os in
10670aix3*)
10671  test "$enable_shared" = yes && enable_static=no
10672  if test -n "$RANLIB"; then
10673    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10674    postinstall_cmds='$RANLIB $lib'
10675  fi
10676  ;;
10677
10678aix[4-9]*)
10679  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10680    test "$enable_shared" = yes && enable_static=no
10681  fi
10682    ;;
10683esac
10684{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10685$as_echo "$enable_shared" >&6; }
10686
10687{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10688$as_echo_n "checking whether to build static libraries... " >&6; }
10689# Make sure either enable_shared or enable_static is yes.
10690test "$enable_shared" = yes || enable_static=yes
10691{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10692$as_echo "$enable_static" >&6; }
10693
10694# The else clause should only fire when bootstrapping the
10695# libtool distribution, otherwise you forgot to ship ltmain.sh
10696# with your package, and you will get complaints that there are
10697# no rules to generate ltmain.sh.
10698if test -f "$ltmain"; then
10699  # See if we are running on zsh, and set the options which allow our commands through
10700  # without removal of \ escapes.
10701  if test -n "${ZSH_VERSION+set}" ; then
10702    setopt NO_GLOB_SUBST
10703  fi
10704  # Now quote all the things that may contain metacharacters while being
10705  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10706  # variables and quote the copies for generation of the libtool script.
10707  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10708    SED SHELL STRIP \
10709    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10710    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10711    deplibs_check_method reload_flag reload_cmds need_locks \
10712    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10713    lt_cv_sys_global_symbol_to_c_name_address \
10714    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10715    old_postinstall_cmds old_postuninstall_cmds \
10716    compiler \
10717    CC \
10718    LD \
10719    lt_prog_compiler_wl \
10720    lt_prog_compiler_pic \
10721    lt_prog_compiler_static \
10722    lt_prog_compiler_no_builtin_flag \
10723    export_dynamic_flag_spec \
10724    thread_safe_flag_spec \
10725    whole_archive_flag_spec \
10726    enable_shared_with_static_runtimes \
10727    old_archive_cmds \
10728    old_archive_from_new_cmds \
10729    predep_objects \
10730    postdep_objects \
10731    predeps \
10732    postdeps \
10733    compiler_lib_search_path \
10734    compiler_lib_search_dirs \
10735    archive_cmds \
10736    archive_expsym_cmds \
10737    postinstall_cmds \
10738    postuninstall_cmds \
10739    old_archive_from_expsyms_cmds \
10740    allow_undefined_flag \
10741    no_undefined_flag \
10742    export_symbols_cmds \
10743    hardcode_libdir_flag_spec \
10744    hardcode_libdir_flag_spec_ld \
10745    hardcode_libdir_separator \
10746    hardcode_automatic \
10747    module_cmds \
10748    module_expsym_cmds \
10749    lt_cv_prog_compiler_c_o \
10750    fix_srcfile_path \
10751    exclude_expsyms \
10752    include_expsyms; do
10753
10754    case $var in
10755    old_archive_cmds | \
10756    old_archive_from_new_cmds | \
10757    archive_cmds | \
10758    archive_expsym_cmds | \
10759    module_cmds | \
10760    module_expsym_cmds | \
10761    old_archive_from_expsyms_cmds | \
10762    export_symbols_cmds | \
10763    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10764    postinstall_cmds | postuninstall_cmds | \
10765    old_postinstall_cmds | old_postuninstall_cmds | \
10766    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10767      # Double-quote double-evaled strings.
10768      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10769      ;;
10770    *)
10771      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10772      ;;
10773    esac
10774  done
10775
10776  case $lt_echo in
10777  *'\$0 --fallback-echo"')
10778    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10779    ;;
10780  esac
10781
10782cfgfile="${ofile}T"
10783  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10784  $rm -f "$cfgfile"
10785  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10786$as_echo "$as_me: creating $ofile" >&6;}
10787
10788  cat <<__EOF__ >> "$cfgfile"
10789#! $SHELL
10790
10791# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10792# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10793# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10794#
10795# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10796# Free Software Foundation, Inc.
10797#
10798# This file is part of GNU Libtool:
10799# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10800#
10801# This program is free software; you can redistribute it and/or modify
10802# it under the terms of the GNU General Public License as published by
10803# the Free Software Foundation; either version 2 of the License, or
10804# (at your option) any later version.
10805#
10806# This program is distributed in the hope that it will be useful, but
10807# WITHOUT ANY WARRANTY; without even the implied warranty of
10808# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10809# General Public License for more details.
10810#
10811# You should have received a copy of the GNU General Public License
10812# along with this program; if not, write to the Free Software
10813# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10814#
10815# As a special exception to the GNU General Public License, if you
10816# distribute this file as part of a program that contains a
10817# configuration script generated by Autoconf, you may include it under
10818# the same distribution terms that you use for the rest of that program.
10819
10820# A sed program that does not truncate output.
10821SED=$lt_SED
10822
10823# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10824Xsed="$SED -e 1s/^X//"
10825
10826# The HP-UX ksh and POSIX shell print the target directory to stdout
10827# if CDPATH is set.
10828(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10829
10830# The names of the tagged configurations supported by this script.
10831available_tags=
10832
10833# ### BEGIN LIBTOOL CONFIG
10834
10835# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10836
10837# Shell to use when invoking shell scripts.
10838SHELL=$lt_SHELL
10839
10840# Whether or not to build shared libraries.
10841build_libtool_libs=$enable_shared
10842
10843# Whether or not to build static libraries.
10844build_old_libs=$enable_static
10845
10846# Whether or not to add -lc for building shared libraries.
10847build_libtool_need_lc=$archive_cmds_need_lc
10848
10849# Whether or not to disallow shared libs when runtime libs are static
10850allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10851
10852# Whether or not to optimize for fast installation.
10853fast_install=$enable_fast_install
10854
10855# The host system.
10856host_alias=$host_alias
10857host=$host
10858host_os=$host_os
10859
10860# The build system.
10861build_alias=$build_alias
10862build=$build
10863build_os=$build_os
10864
10865# An echo program that does not interpret backslashes.
10866echo=$lt_echo
10867
10868# The archiver.
10869AR=$lt_AR
10870AR_FLAGS=$lt_AR_FLAGS
10871
10872# A C compiler.
10873LTCC=$lt_LTCC
10874
10875# LTCC compiler flags.
10876LTCFLAGS=$lt_LTCFLAGS
10877
10878# A language-specific compiler.
10879CC=$lt_compiler
10880
10881# Is the compiler the GNU C compiler?
10882with_gcc=$GCC
10883
10884# An ERE matcher.
10885EGREP=$lt_EGREP
10886
10887# The linker used to build libraries.
10888LD=$lt_LD
10889
10890# Whether we need hard or soft links.
10891LN_S=$lt_LN_S
10892
10893# A BSD-compatible nm program.
10894NM=$lt_NM
10895
10896# A symbol stripping program
10897STRIP=$lt_STRIP
10898
10899# Used to examine libraries when file_magic_cmd begins "file"
10900MAGIC_CMD=$MAGIC_CMD
10901
10902# Used on cygwin: DLL creation program.
10903DLLTOOL="$DLLTOOL"
10904
10905# Used on cygwin: object dumper.
10906OBJDUMP="$OBJDUMP"
10907
10908# Used on cygwin: assembler.
10909AS="$AS"
10910
10911# The name of the directory that contains temporary libtool files.
10912objdir=$objdir
10913
10914# How to create reloadable object files.
10915reload_flag=$lt_reload_flag
10916reload_cmds=$lt_reload_cmds
10917
10918# How to pass a linker flag through the compiler.
10919wl=$lt_lt_prog_compiler_wl
10920
10921# Object file suffix (normally "o").
10922objext="$ac_objext"
10923
10924# Old archive suffix (normally "a").
10925libext="$libext"
10926
10927# Shared library suffix (normally ".so").
10928shrext_cmds='$shrext_cmds'
10929
10930# Executable file suffix (normally "").
10931exeext="$exeext"
10932
10933# Additional compiler flags for building library objects.
10934pic_flag=$lt_lt_prog_compiler_pic
10935pic_mode=$pic_mode
10936
10937# What is the maximum length of a command?
10938max_cmd_len=$lt_cv_sys_max_cmd_len
10939
10940# Does compiler simultaneously support -c and -o options?
10941compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10942
10943# Must we lock files when doing compilation?
10944need_locks=$lt_need_locks
10945
10946# Do we need the lib prefix for modules?
10947need_lib_prefix=$need_lib_prefix
10948
10949# Do we need a version for libraries?
10950need_version=$need_version
10951
10952# Whether dlopen is supported.
10953dlopen_support=$enable_dlopen
10954
10955# Whether dlopen of programs is supported.
10956dlopen_self=$enable_dlopen_self
10957
10958# Whether dlopen of statically linked programs is supported.
10959dlopen_self_static=$enable_dlopen_self_static
10960
10961# Compiler flag to prevent dynamic linking.
10962link_static_flag=$lt_lt_prog_compiler_static
10963
10964# Compiler flag to turn off builtin functions.
10965no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10966
10967# Compiler flag to allow reflexive dlopens.
10968export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10969
10970# Compiler flag to generate shared objects directly from archives.
10971whole_archive_flag_spec=$lt_whole_archive_flag_spec
10972
10973# Compiler flag to generate thread-safe objects.
10974thread_safe_flag_spec=$lt_thread_safe_flag_spec
10975
10976# Library versioning type.
10977version_type=$version_type
10978
10979# Format of library name prefix.
10980libname_spec=$lt_libname_spec
10981
10982# List of archive names.  First name is the real one, the rest are links.
10983# The last name is the one that the linker finds with -lNAME.
10984library_names_spec=$lt_library_names_spec
10985
10986# The coded name of the library, if different from the real name.
10987soname_spec=$lt_soname_spec
10988
10989# Commands used to build and install an old-style archive.
10990RANLIB=$lt_RANLIB
10991old_archive_cmds=$lt_old_archive_cmds
10992old_postinstall_cmds=$lt_old_postinstall_cmds
10993old_postuninstall_cmds=$lt_old_postuninstall_cmds
10994
10995# Create an old-style archive from a shared archive.
10996old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10997
10998# Create a temporary old-style archive to link instead of a shared archive.
10999old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11000
11001# Commands used to build and install a shared archive.
11002archive_cmds=$lt_archive_cmds
11003archive_expsym_cmds=$lt_archive_expsym_cmds
11004postinstall_cmds=$lt_postinstall_cmds
11005postuninstall_cmds=$lt_postuninstall_cmds
11006
11007# Commands used to build a loadable module (assumed same as above if empty)
11008module_cmds=$lt_module_cmds
11009module_expsym_cmds=$lt_module_expsym_cmds
11010
11011# Commands to strip libraries.
11012old_striplib=$lt_old_striplib
11013striplib=$lt_striplib
11014
11015# Dependencies to place before the objects being linked to create a
11016# shared library.
11017predep_objects=$lt_predep_objects
11018
11019# Dependencies to place after the objects being linked to create a
11020# shared library.
11021postdep_objects=$lt_postdep_objects
11022
11023# Dependencies to place before the objects being linked to create a
11024# shared library.
11025predeps=$lt_predeps
11026
11027# Dependencies to place after the objects being linked to create a
11028# shared library.
11029postdeps=$lt_postdeps
11030
11031# The directories searched by this compiler when creating a shared
11032# library
11033compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11034
11035# The library search path used internally by the compiler when linking
11036# a shared library.
11037compiler_lib_search_path=$lt_compiler_lib_search_path
11038
11039# Method to check whether dependent libraries are shared objects.
11040deplibs_check_method=$lt_deplibs_check_method
11041
11042# Command to use when deplibs_check_method == file_magic.
11043file_magic_cmd=$lt_file_magic_cmd
11044
11045# Flag that allows shared libraries with undefined symbols to be built.
11046allow_undefined_flag=$lt_allow_undefined_flag
11047
11048# Flag that forces no undefined symbols.
11049no_undefined_flag=$lt_no_undefined_flag
11050
11051# Commands used to finish a libtool library installation in a directory.
11052finish_cmds=$lt_finish_cmds
11053
11054# Same as above, but a single script fragment to be evaled but not shown.
11055finish_eval=$lt_finish_eval
11056
11057# Take the output of nm and produce a listing of raw symbols and C names.
11058global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11059
11060# Transform the output of nm in a proper C declaration
11061global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11062
11063# Transform the output of nm in a C name address pair
11064global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11065
11066# This is the shared library runtime path variable.
11067runpath_var=$runpath_var
11068
11069# This is the shared library path variable.
11070shlibpath_var=$shlibpath_var
11071
11072# Is shlibpath searched before the hard-coded library search path?
11073shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11074
11075# How to hardcode a shared library path into an executable.
11076hardcode_action=$hardcode_action
11077
11078# Whether we should hardcode library paths into libraries.
11079hardcode_into_libs=$hardcode_into_libs
11080
11081# Flag to hardcode \$libdir into a binary during linking.
11082# This must work even if \$libdir does not exist.
11083hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11084
11085# If ld is used when linking, flag to hardcode \$libdir into
11086# a binary during linking. This must work even if \$libdir does
11087# not exist.
11088hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11089
11090# Whether we need a single -rpath flag with a separated argument.
11091hardcode_libdir_separator=$lt_hardcode_libdir_separator
11092
11093# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11094# resulting binary.
11095hardcode_direct=$hardcode_direct
11096
11097# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11098# resulting binary.
11099hardcode_minus_L=$hardcode_minus_L
11100
11101# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11102# the resulting binary.
11103hardcode_shlibpath_var=$hardcode_shlibpath_var
11104
11105# Set to yes if building a shared library automatically hardcodes DIR into the library
11106# and all subsequent libraries and executables linked against it.
11107hardcode_automatic=$hardcode_automatic
11108
11109# Variables whose values should be saved in libtool wrapper scripts and
11110# restored at relink time.
11111variables_saved_for_relink="$variables_saved_for_relink"
11112
11113# Whether libtool must link a program against all its dependency libraries.
11114link_all_deplibs=$link_all_deplibs
11115
11116# Compile-time system search path for libraries
11117sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11118
11119# Run-time system search path for libraries
11120sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11121
11122# Fix the shell variable \$srcfile for the compiler.
11123fix_srcfile_path=$lt_fix_srcfile_path
11124
11125# Set to yes if exported symbols are required.
11126always_export_symbols=$always_export_symbols
11127
11128# The commands to list exported symbols.
11129export_symbols_cmds=$lt_export_symbols_cmds
11130
11131# The commands to extract the exported symbol list from a shared archive.
11132extract_expsyms_cmds=$lt_extract_expsyms_cmds
11133
11134# Symbols that should not be listed in the preloaded symbols.
11135exclude_expsyms=$lt_exclude_expsyms
11136
11137# Symbols that must always be exported.
11138include_expsyms=$lt_include_expsyms
11139
11140# ### END LIBTOOL CONFIG
11141
11142__EOF__
11143
11144
11145  case $host_os in
11146  aix3*)
11147    cat <<\EOF >> "$cfgfile"
11148
11149# AIX sometimes has problems with the GCC collect2 program.  For some
11150# reason, if we set the COLLECT_NAMES environment variable, the problems
11151# vanish in a puff of smoke.
11152if test "X${COLLECT_NAMES+set}" != Xset; then
11153  COLLECT_NAMES=
11154  export COLLECT_NAMES
11155fi
11156EOF
11157    ;;
11158  esac
11159
11160  # We use sed instead of cat because bash on DJGPP gets confused if
11161  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11162  # text mode, it properly converts lines to CR/LF.  This bash problem
11163  # is reportedly fixed, but why not run on old versions too?
11164  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11165
11166  mv -f "$cfgfile" "$ofile" || \
11167    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11168  chmod +x "$ofile"
11169
11170else
11171  # If there is no Makefile yet, we rely on a make rule to execute
11172  # `config.status --recheck' to rerun these tests and create the
11173  # libtool script then.
11174  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11175  if test -f "$ltmain_in"; then
11176    test -f Makefile && make "$ltmain"
11177  fi
11178fi
11179
11180
11181ac_ext=c
11182ac_cpp='$CPP $CPPFLAGS'
11183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11185ac_compiler_gnu=$ac_cv_c_compiler_gnu
11186
11187CC="$lt_save_CC"
11188
11189
11190# Check whether --with-tags was given.
11191if test "${with_tags+set}" = set; then
11192  withval=$with_tags; tagnames="$withval"
11193fi
11194
11195
11196if test -f "$ltmain" && test -n "$tagnames"; then
11197  if test ! -f "${ofile}"; then
11198    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11199$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11200  fi
11201
11202  if test -z "$LTCC"; then
11203    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11204    if test -z "$LTCC"; then
11205      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11206$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11207    else
11208      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11209$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11210    fi
11211  fi
11212  if test -z "$LTCFLAGS"; then
11213    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11214  fi
11215
11216  # Extract list of available tagged configurations in $ofile.
11217  # Note that this assumes the entire list is on one line.
11218  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11219
11220  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11221  for tagname in $tagnames; do
11222    IFS="$lt_save_ifs"
11223    # Check whether tagname contains only valid characters
11224    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11225    "") ;;
11226    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11227$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11228   { (exit 1); exit 1; }; }
11229	;;
11230    esac
11231
11232    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11233    then
11234      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11235$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11236   { (exit 1); exit 1; }; }
11237    fi
11238
11239    # Update the list of available tags.
11240    if test -n "$tagname"; then
11241      echo appending configuration tag \"$tagname\" to $ofile
11242
11243      case $tagname in
11244      CXX)
11245	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11246	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11247	    (test "X$CXX" != "Xg++"))) ; then
11248	  ac_ext=cpp
11249ac_cpp='$CXXCPP $CPPFLAGS'
11250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11253
11254
11255
11256
11257archive_cmds_need_lc_CXX=no
11258allow_undefined_flag_CXX=
11259always_export_symbols_CXX=no
11260archive_expsym_cmds_CXX=
11261export_dynamic_flag_spec_CXX=
11262hardcode_direct_CXX=no
11263hardcode_libdir_flag_spec_CXX=
11264hardcode_libdir_flag_spec_ld_CXX=
11265hardcode_libdir_separator_CXX=
11266hardcode_minus_L_CXX=no
11267hardcode_shlibpath_var_CXX=unsupported
11268hardcode_automatic_CXX=no
11269module_cmds_CXX=
11270module_expsym_cmds_CXX=
11271link_all_deplibs_CXX=unknown
11272old_archive_cmds_CXX=$old_archive_cmds
11273no_undefined_flag_CXX=
11274whole_archive_flag_spec_CXX=
11275enable_shared_with_static_runtimes_CXX=no
11276
11277# Dependencies to place before and after the object being linked:
11278predep_objects_CXX=
11279postdep_objects_CXX=
11280predeps_CXX=
11281postdeps_CXX=
11282compiler_lib_search_path_CXX=
11283compiler_lib_search_dirs_CXX=
11284
11285# Source file extension for C++ test sources.
11286ac_ext=cpp
11287
11288# Object file extension for compiled C++ test sources.
11289objext=o
11290objext_CXX=$objext
11291
11292# Code to be used in simple compile tests
11293lt_simple_compile_test_code="int some_variable = 0;"
11294
11295# Code to be used in simple link tests
11296lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11297
11298# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11299
11300# If no C compiler was specified, use CC.
11301LTCC=${LTCC-"$CC"}
11302
11303# If no C compiler flags were specified, use CFLAGS.
11304LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11305
11306# Allow CC to be a program name with arguments.
11307compiler=$CC
11308
11309
11310# save warnings/boilerplate of simple test code
11311ac_outfile=conftest.$ac_objext
11312echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11313eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11314_lt_compiler_boilerplate=`cat conftest.err`
11315$rm conftest*
11316
11317ac_outfile=conftest.$ac_objext
11318echo "$lt_simple_link_test_code" >conftest.$ac_ext
11319eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11320_lt_linker_boilerplate=`cat conftest.err`
11321$rm -r conftest*
11322
11323
11324# Allow CC to be a program name with arguments.
11325lt_save_CC=$CC
11326lt_save_LD=$LD
11327lt_save_GCC=$GCC
11328GCC=$GXX
11329lt_save_with_gnu_ld=$with_gnu_ld
11330lt_save_path_LD=$lt_cv_path_LD
11331if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11332  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11333else
11334  $as_unset lt_cv_prog_gnu_ld
11335fi
11336if test -n "${lt_cv_path_LDCXX+set}"; then
11337  lt_cv_path_LD=$lt_cv_path_LDCXX
11338else
11339  $as_unset lt_cv_path_LD
11340fi
11341test -z "${LDCXX+set}" || LD=$LDCXX
11342CC=${CXX-"c++"}
11343compiler=$CC
11344compiler_CXX=$CC
11345for cc_temp in $compiler""; do
11346  case $cc_temp in
11347    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11348    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11349    \-*) ;;
11350    *) break;;
11351  esac
11352done
11353cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11354
11355
11356# We don't want -fno-exception wen compiling C++ code, so set the
11357# no_builtin_flag separately
11358if test "$GXX" = yes; then
11359  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11360else
11361  lt_prog_compiler_no_builtin_flag_CXX=
11362fi
11363
11364if test "$GXX" = yes; then
11365  # Set up default GNU C++ configuration
11366
11367
11368# Check whether --with-gnu-ld was given.
11369if test "${with_gnu_ld+set}" = set; then
11370  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11371else
11372  with_gnu_ld=no
11373fi
11374
11375ac_prog=ld
11376if test "$GCC" = yes; then
11377  # Check if gcc -print-prog-name=ld gives a path.
11378  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11379$as_echo_n "checking for ld used by $CC... " >&6; }
11380  case $host in
11381  *-*-mingw*)
11382    # gcc leaves a trailing carriage return which upsets mingw
11383    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11384  *)
11385    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11386  esac
11387  case $ac_prog in
11388    # Accept absolute paths.
11389    [\\/]* | ?:[\\/]*)
11390      re_direlt='/[^/][^/]*/\.\./'
11391      # Canonicalize the pathname of ld
11392      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11393      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11394	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11395      done
11396      test -z "$LD" && LD="$ac_prog"
11397      ;;
11398  "")
11399    # If it fails, then pretend we aren't using GCC.
11400    ac_prog=ld
11401    ;;
11402  *)
11403    # If it is relative, then search for the first ld in PATH.
11404    with_gnu_ld=unknown
11405    ;;
11406  esac
11407elif test "$with_gnu_ld" = yes; then
11408  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11409$as_echo_n "checking for GNU ld... " >&6; }
11410else
11411  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11412$as_echo_n "checking for non-GNU ld... " >&6; }
11413fi
11414if test "${lt_cv_path_LD+set}" = set; then
11415  $as_echo_n "(cached) " >&6
11416else
11417  if test -z "$LD"; then
11418  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11419  for ac_dir in $PATH; do
11420    IFS="$lt_save_ifs"
11421    test -z "$ac_dir" && ac_dir=.
11422    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11423      lt_cv_path_LD="$ac_dir/$ac_prog"
11424      # Check to see if the program is GNU ld.  I'd rather use --version,
11425      # but apparently some variants of GNU ld only accept -v.
11426      # Break only if it was the GNU/non-GNU ld that we prefer.
11427      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11428      *GNU* | *'with BFD'*)
11429	test "$with_gnu_ld" != no && break
11430	;;
11431      *)
11432	test "$with_gnu_ld" != yes && break
11433	;;
11434      esac
11435    fi
11436  done
11437  IFS="$lt_save_ifs"
11438else
11439  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11440fi
11441fi
11442
11443LD="$lt_cv_path_LD"
11444if test -n "$LD"; then
11445  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11446$as_echo "$LD" >&6; }
11447else
11448  { $as_echo "$as_me:$LINENO: result: no" >&5
11449$as_echo "no" >&6; }
11450fi
11451test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11452$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11453   { (exit 1); exit 1; }; }
11454{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11455$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11456if test "${lt_cv_prog_gnu_ld+set}" = set; then
11457  $as_echo_n "(cached) " >&6
11458else
11459  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11460case `$LD -v 2>&1 </dev/null` in
11461*GNU* | *'with BFD'*)
11462  lt_cv_prog_gnu_ld=yes
11463  ;;
11464*)
11465  lt_cv_prog_gnu_ld=no
11466  ;;
11467esac
11468fi
11469{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11470$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11471with_gnu_ld=$lt_cv_prog_gnu_ld
11472
11473
11474
11475  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11476  # archiving commands below assume that GNU ld is being used.
11477  if test "$with_gnu_ld" = yes; then
11478    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11479    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'
11480
11481    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11482    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11483
11484    # If archive_cmds runs LD, not CC, wlarc should be empty
11485    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11486    #     investigate it a little bit more. (MM)
11487    wlarc='${wl}'
11488
11489    # ancient GNU ld didn't support --whole-archive et. al.
11490    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11491	grep 'no-whole-archive' > /dev/null; then
11492      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11493    else
11494      whole_archive_flag_spec_CXX=
11495    fi
11496  else
11497    with_gnu_ld=no
11498    wlarc=
11499
11500    # A generic and very simple default shared library creation
11501    # command for GNU C++ for the case where it uses the native
11502    # linker, instead of GNU ld.  If possible, this setting should
11503    # overridden to take advantage of the native linker features on
11504    # the platform it is being used on.
11505    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11506  fi
11507
11508  # Commands to make compiler produce verbose output that lists
11509  # what "hidden" libraries, object files and flags are used when
11510  # linking a shared library.
11511  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11512
11513else
11514  GXX=no
11515  with_gnu_ld=no
11516  wlarc=
11517fi
11518
11519# PORTME: fill in a description of your system's C++ link characteristics
11520{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11521$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11522ld_shlibs_CXX=yes
11523case $host_os in
11524  aix3*)
11525    # FIXME: insert proper C++ library support
11526    ld_shlibs_CXX=no
11527    ;;
11528  aix[4-9]*)
11529    if test "$host_cpu" = ia64; then
11530      # On IA64, the linker does run time linking by default, so we don't
11531      # have to do anything special.
11532      aix_use_runtimelinking=no
11533      exp_sym_flag='-Bexport'
11534      no_entry_flag=""
11535    else
11536      aix_use_runtimelinking=no
11537
11538      # Test if we are trying to use run time linking or normal
11539      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11540      # need to do runtime linking.
11541      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11542	for ld_flag in $LDFLAGS; do
11543	  case $ld_flag in
11544	  *-brtl*)
11545	    aix_use_runtimelinking=yes
11546	    break
11547	    ;;
11548	  esac
11549	done
11550	;;
11551      esac
11552
11553      exp_sym_flag='-bexport'
11554      no_entry_flag='-bnoentry'
11555    fi
11556
11557    # When large executables or shared objects are built, AIX ld can
11558    # have problems creating the table of contents.  If linking a library
11559    # or program results in "error TOC overflow" add -mminimal-toc to
11560    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11561    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11562
11563    archive_cmds_CXX=''
11564    hardcode_direct_CXX=yes
11565    hardcode_libdir_separator_CXX=':'
11566    link_all_deplibs_CXX=yes
11567
11568    if test "$GXX" = yes; then
11569      case $host_os in aix4.[012]|aix4.[012].*)
11570      # We only want to do this on AIX 4.2 and lower, the check
11571      # below for broken collect2 doesn't work under 4.3+
11572	collect2name=`${CC} -print-prog-name=collect2`
11573	if test -f "$collect2name" && \
11574	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11575	then
11576	  # We have reworked collect2
11577	  :
11578	else
11579	  # We have old collect2
11580	  hardcode_direct_CXX=unsupported
11581	  # It fails to find uninstalled libraries when the uninstalled
11582	  # path is not listed in the libpath.  Setting hardcode_minus_L
11583	  # to unsupported forces relinking
11584	  hardcode_minus_L_CXX=yes
11585	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11586	  hardcode_libdir_separator_CXX=
11587	fi
11588	;;
11589      esac
11590      shared_flag='-shared'
11591      if test "$aix_use_runtimelinking" = yes; then
11592	shared_flag="$shared_flag "'${wl}-G'
11593      fi
11594    else
11595      # not using gcc
11596      if test "$host_cpu" = ia64; then
11597	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11598	# chokes on -Wl,-G. The following line is correct:
11599	shared_flag='-G'
11600      else
11601	if test "$aix_use_runtimelinking" = yes; then
11602	  shared_flag='${wl}-G'
11603	else
11604	  shared_flag='${wl}-bM:SRE'
11605	fi
11606      fi
11607    fi
11608
11609    # It seems that -bexpall does not export symbols beginning with
11610    # underscore (_), so it is better to generate a list of symbols to export.
11611    always_export_symbols_CXX=yes
11612    if test "$aix_use_runtimelinking" = yes; then
11613      # Warning - without using the other runtime loading flags (-brtl),
11614      # -berok will link without error, but may produce a broken library.
11615      allow_undefined_flag_CXX='-berok'
11616      # Determine the default libpath from the value encoded in an empty executable.
11617      cat >conftest.$ac_ext <<_ACEOF
11618/* confdefs.h.  */
11619_ACEOF
11620cat confdefs.h >>conftest.$ac_ext
11621cat >>conftest.$ac_ext <<_ACEOF
11622/* end confdefs.h.  */
11623
11624int
11625main ()
11626{
11627
11628  ;
11629  return 0;
11630}
11631_ACEOF
11632rm -f conftest.$ac_objext conftest$ac_exeext
11633if { (ac_try="$ac_link"
11634case "(($ac_try" in
11635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11636  *) ac_try_echo=$ac_try;;
11637esac
11638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11639$as_echo "$ac_try_echo") >&5
11640  (eval "$ac_link") 2>conftest.er1
11641  ac_status=$?
11642  grep -v '^ *+' conftest.er1 >conftest.err
11643  rm -f conftest.er1
11644  cat conftest.err >&5
11645  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646  (exit $ac_status); } && {
11647	 test -z "$ac_cxx_werror_flag" ||
11648	 test ! -s conftest.err
11649       } && test -s conftest$ac_exeext && {
11650	 test "$cross_compiling" = yes ||
11651	 $as_test_x conftest$ac_exeext
11652       }; then
11653
11654lt_aix_libpath_sed='
11655    /Import File Strings/,/^$/ {
11656	/^0/ {
11657	    s/^0  *\(.*\)$/\1/
11658	    p
11659	}
11660    }'
11661aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11662# Check for a 64-bit object if we didn't find anything.
11663if test -z "$aix_libpath"; then
11664  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11665fi
11666else
11667  $as_echo "$as_me: failed program was:" >&5
11668sed 's/^/| /' conftest.$ac_ext >&5
11669
11670
11671fi
11672
11673rm -rf conftest.dSYM
11674rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11675      conftest$ac_exeext conftest.$ac_ext
11676if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11677
11678      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11679
11680      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"
11681     else
11682      if test "$host_cpu" = ia64; then
11683	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11684	allow_undefined_flag_CXX="-z nodefs"
11685	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"
11686      else
11687	# Determine the default libpath from the value encoded in an empty executable.
11688	cat >conftest.$ac_ext <<_ACEOF
11689/* confdefs.h.  */
11690_ACEOF
11691cat confdefs.h >>conftest.$ac_ext
11692cat >>conftest.$ac_ext <<_ACEOF
11693/* end confdefs.h.  */
11694
11695int
11696main ()
11697{
11698
11699  ;
11700  return 0;
11701}
11702_ACEOF
11703rm -f conftest.$ac_objext conftest$ac_exeext
11704if { (ac_try="$ac_link"
11705case "(($ac_try" in
11706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707  *) ac_try_echo=$ac_try;;
11708esac
11709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11710$as_echo "$ac_try_echo") >&5
11711  (eval "$ac_link") 2>conftest.er1
11712  ac_status=$?
11713  grep -v '^ *+' conftest.er1 >conftest.err
11714  rm -f conftest.er1
11715  cat conftest.err >&5
11716  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717  (exit $ac_status); } && {
11718	 test -z "$ac_cxx_werror_flag" ||
11719	 test ! -s conftest.err
11720       } && test -s conftest$ac_exeext && {
11721	 test "$cross_compiling" = yes ||
11722	 $as_test_x conftest$ac_exeext
11723       }; then
11724
11725lt_aix_libpath_sed='
11726    /Import File Strings/,/^$/ {
11727	/^0/ {
11728	    s/^0  *\(.*\)$/\1/
11729	    p
11730	}
11731    }'
11732aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11733# Check for a 64-bit object if we didn't find anything.
11734if test -z "$aix_libpath"; then
11735  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11736fi
11737else
11738  $as_echo "$as_me: failed program was:" >&5
11739sed 's/^/| /' conftest.$ac_ext >&5
11740
11741
11742fi
11743
11744rm -rf conftest.dSYM
11745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11746      conftest$ac_exeext conftest.$ac_ext
11747if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11748
11749	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11750	# Warning - without using the other run time loading flags,
11751	# -berok will link without error, but may produce a broken library.
11752	no_undefined_flag_CXX=' ${wl}-bernotok'
11753	allow_undefined_flag_CXX=' ${wl}-berok'
11754	# Exported symbols can be pulled into shared objects from archives
11755	whole_archive_flag_spec_CXX='$convenience'
11756	archive_cmds_need_lc_CXX=yes
11757	# This is similar to how AIX traditionally builds its shared libraries.
11758	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'
11759      fi
11760    fi
11761    ;;
11762
11763  beos*)
11764    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11765      allow_undefined_flag_CXX=unsupported
11766      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11767      # support --undefined.  This deserves some investigation.  FIXME
11768      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11769    else
11770      ld_shlibs_CXX=no
11771    fi
11772    ;;
11773
11774  chorus*)
11775    case $cc_basename in
11776      *)
11777	# FIXME: insert proper C++ library support
11778	ld_shlibs_CXX=no
11779	;;
11780    esac
11781    ;;
11782
11783  cygwin* | mingw* | pw32*)
11784    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11785    # as there is no search path for DLLs.
11786    hardcode_libdir_flag_spec_CXX='-L$libdir'
11787    allow_undefined_flag_CXX=unsupported
11788    always_export_symbols_CXX=no
11789    enable_shared_with_static_runtimes_CXX=yes
11790
11791    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11792      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'
11793      # If the export-symbols file already is a .def file (1st line
11794      # is EXPORTS), use it as is; otherwise, prepend...
11795      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11796	cp $export_symbols $output_objdir/$soname.def;
11797      else
11798	echo EXPORTS > $output_objdir/$soname.def;
11799	cat $export_symbols >> $output_objdir/$soname.def;
11800      fi~
11801      $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'
11802    else
11803      ld_shlibs_CXX=no
11804    fi
11805  ;;
11806      darwin* | rhapsody*)
11807      archive_cmds_need_lc_CXX=no
11808      hardcode_direct_CXX=no
11809      hardcode_automatic_CXX=yes
11810      hardcode_shlibpath_var_CXX=unsupported
11811      whole_archive_flag_spec_CXX=''
11812      link_all_deplibs_CXX=yes
11813      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11814      if test "$GXX" = yes ; then
11815      output_verbose_link_cmd='echo'
11816      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}"
11817      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11818      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}"
11819      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}"
11820      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11821        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}"
11822        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}"
11823      fi
11824      else
11825      case $cc_basename in
11826        xlc*)
11827         output_verbose_link_cmd='echo'
11828          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'
11829          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11830          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11831          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}'
11832          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}'
11833          ;;
11834       *)
11835         ld_shlibs_CXX=no
11836          ;;
11837      esac
11838      fi
11839        ;;
11840
11841  dgux*)
11842    case $cc_basename in
11843      ec++*)
11844	# FIXME: insert proper C++ library support
11845	ld_shlibs_CXX=no
11846	;;
11847      ghcx*)
11848	# Green Hills C++ Compiler
11849	# FIXME: insert proper C++ library support
11850	ld_shlibs_CXX=no
11851	;;
11852      *)
11853	# FIXME: insert proper C++ library support
11854	ld_shlibs_CXX=no
11855	;;
11856    esac
11857    ;;
11858  freebsd[12]*)
11859    # C++ shared libraries reported to be fairly broken before switch to ELF
11860    ld_shlibs_CXX=no
11861    ;;
11862  freebsd-elf*)
11863    archive_cmds_need_lc_CXX=no
11864    ;;
11865  freebsd* | dragonfly*)
11866    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11867    # conventions
11868    ld_shlibs_CXX=yes
11869    ;;
11870  gnu*)
11871    ;;
11872  hpux9*)
11873    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11874    hardcode_libdir_separator_CXX=:
11875    export_dynamic_flag_spec_CXX='${wl}-E'
11876    hardcode_direct_CXX=yes
11877    hardcode_minus_L_CXX=yes # Not in the search PATH,
11878				# but as the default
11879				# location of the library.
11880
11881    case $cc_basename in
11882    CC*)
11883      # FIXME: insert proper C++ library support
11884      ld_shlibs_CXX=no
11885      ;;
11886    aCC*)
11887      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'
11888      # Commands to make compiler produce verbose output that lists
11889      # what "hidden" libraries, object files and flags are used when
11890      # linking a shared library.
11891      #
11892      # There doesn't appear to be a way to prevent this compiler from
11893      # explicitly linking system object files so we need to strip them
11894      # from the output so that they don't get included in the library
11895      # dependencies.
11896      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'
11897      ;;
11898    *)
11899      if test "$GXX" = yes; then
11900        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'
11901      else
11902        # FIXME: insert proper C++ library support
11903        ld_shlibs_CXX=no
11904      fi
11905      ;;
11906    esac
11907    ;;
11908  hpux10*|hpux11*)
11909    if test $with_gnu_ld = no; then
11910      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11911      hardcode_libdir_separator_CXX=:
11912
11913      case $host_cpu in
11914      hppa*64*|ia64*) ;;
11915      *)
11916	export_dynamic_flag_spec_CXX='${wl}-E'
11917        ;;
11918      esac
11919    fi
11920    case $host_cpu in
11921    hppa*64*|ia64*)
11922      hardcode_direct_CXX=no
11923      hardcode_shlibpath_var_CXX=no
11924      ;;
11925    *)
11926      hardcode_direct_CXX=yes
11927      hardcode_minus_L_CXX=yes # Not in the search PATH,
11928					      # but as the default
11929					      # location of the library.
11930      ;;
11931    esac
11932
11933    case $cc_basename in
11934      CC*)
11935	# FIXME: insert proper C++ library support
11936	ld_shlibs_CXX=no
11937	;;
11938      aCC*)
11939	case $host_cpu in
11940	hppa*64*)
11941	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11942	  ;;
11943	ia64*)
11944	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11945	  ;;
11946	*)
11947	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11948	  ;;
11949	esac
11950	# Commands to make compiler produce verbose output that lists
11951	# what "hidden" libraries, object files and flags are used when
11952	# linking a shared library.
11953	#
11954	# There doesn't appear to be a way to prevent this compiler from
11955	# explicitly linking system object files so we need to strip them
11956	# from the output so that they don't get included in the library
11957	# dependencies.
11958	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'
11959	;;
11960      *)
11961	if test "$GXX" = yes; then
11962	  if test $with_gnu_ld = no; then
11963	    case $host_cpu in
11964	    hppa*64*)
11965	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11966	      ;;
11967	    ia64*)
11968	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11969	      ;;
11970	    *)
11971	      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'
11972	      ;;
11973	    esac
11974	  fi
11975	else
11976	  # FIXME: insert proper C++ library support
11977	  ld_shlibs_CXX=no
11978	fi
11979	;;
11980    esac
11981    ;;
11982  interix[3-9]*)
11983    hardcode_direct_CXX=no
11984    hardcode_shlibpath_var_CXX=no
11985    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11986    export_dynamic_flag_spec_CXX='${wl}-E'
11987    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11988    # Instead, shared libraries are loaded at an image base (0x10000000 by
11989    # default) and relocated if they conflict, which is a slow very memory
11990    # consuming and fragmenting process.  To avoid this, we pick a random,
11991    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11992    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11993    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'
11994    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'
11995    ;;
11996  irix5* | irix6*)
11997    case $cc_basename in
11998      CC*)
11999	# SGI C++
12000	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'
12001
12002	# Archives containing C++ object files must be created using
12003	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12004	# necessary to make sure instantiated templates are included
12005	# in the archive.
12006	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12007	;;
12008      *)
12009	if test "$GXX" = yes; then
12010	  if test "$with_gnu_ld" = no; then
12011	    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'
12012	  else
12013	    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'
12014	  fi
12015	fi
12016	link_all_deplibs_CXX=yes
12017	;;
12018    esac
12019    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12020    hardcode_libdir_separator_CXX=:
12021    ;;
12022  linux* | k*bsd*-gnu)
12023    case $cc_basename in
12024      KCC*)
12025	# Kuck and Associates, Inc. (KAI) C++ Compiler
12026
12027	# KCC will only create a shared library if the output file
12028	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12029	# to its proper name (with version) after linking.
12030	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'
12031	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'
12032	# Commands to make compiler produce verbose output that lists
12033	# what "hidden" libraries, object files and flags are used when
12034	# linking a shared library.
12035	#
12036	# There doesn't appear to be a way to prevent this compiler from
12037	# explicitly linking system object files so we need to strip them
12038	# from the output so that they don't get included in the library
12039	# dependencies.
12040	output_verbose_link_cmd='templist=`$CC $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'
12041
12042	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12043	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12044
12045	# Archives containing C++ object files must be created using
12046	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12047	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12048	;;
12049      icpc*)
12050	# Intel C++
12051	with_gnu_ld=yes
12052	# version 8.0 and above of icpc choke on multiply defined symbols
12053	# if we add $predep_objects and $postdep_objects, however 7.1 and
12054	# earlier do not add the objects themselves.
12055	case `$CC -V 2>&1` in
12056	*"Version 7."*)
12057  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12058  	  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'
12059	  ;;
12060	*)  # Version 8.0 or newer
12061	  tmp_idyn=
12062	  case $host_cpu in
12063	    ia64*) tmp_idyn=' -i_dynamic';;
12064	  esac
12065  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12066	  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'
12067	  ;;
12068	esac
12069	archive_cmds_need_lc_CXX=no
12070	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12071	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12072	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12073	;;
12074      pgCC* | pgcpp*)
12075        # Portland Group C++ compiler
12076	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12077  	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'
12078
12079	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12080	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12081	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'
12082        ;;
12083      cxx*)
12084	# Compaq C++
12085	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12086	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'
12087
12088	runpath_var=LD_RUN_PATH
12089	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12090	hardcode_libdir_separator_CXX=:
12091
12092	# Commands to make compiler produce verbose output that lists
12093	# what "hidden" libraries, object files and flags are used when
12094	# linking a shared library.
12095	#
12096	# There doesn't appear to be a way to prevent this compiler from
12097	# explicitly linking system object files so we need to strip them
12098	# from the output so that they don't get included in the library
12099	# dependencies.
12100	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'
12101	;;
12102      *)
12103	case `$CC -V 2>&1 | sed 5q` in
12104	*Sun\ C*)
12105	  # Sun C++ 5.9
12106	  no_undefined_flag_CXX=' -zdefs'
12107	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12108	  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'
12109	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12110	  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'
12111
12112	  # Not sure whether something based on
12113	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12114	  # would be better.
12115	  output_verbose_link_cmd='echo'
12116
12117	  # Archives containing C++ object files must be created using
12118	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12119	  # necessary to make sure instantiated templates are included
12120	  # in the archive.
12121	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12122	  ;;
12123	esac
12124	;;
12125    esac
12126    ;;
12127  lynxos*)
12128    # FIXME: insert proper C++ library support
12129    ld_shlibs_CXX=no
12130    ;;
12131  m88k*)
12132    # FIXME: insert proper C++ library support
12133    ld_shlibs_CXX=no
12134    ;;
12135  mvs*)
12136    case $cc_basename in
12137      cxx*)
12138	# FIXME: insert proper C++ library support
12139	ld_shlibs_CXX=no
12140	;;
12141      *)
12142	# FIXME: insert proper C++ library support
12143	ld_shlibs_CXX=no
12144	;;
12145    esac
12146    ;;
12147  netbsd*)
12148    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12149      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12150      wlarc=
12151      hardcode_libdir_flag_spec_CXX='-R$libdir'
12152      hardcode_direct_CXX=yes
12153      hardcode_shlibpath_var_CXX=no
12154    fi
12155    # Workaround some broken pre-1.5 toolchains
12156    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12157    ;;
12158  openbsd2*)
12159    # C++ shared libraries are fairly broken
12160    ld_shlibs_CXX=no
12161    ;;
12162  openbsd*)
12163    if test -f /usr/libexec/ld.so; then
12164      hardcode_direct_CXX=yes
12165      hardcode_shlibpath_var_CXX=no
12166      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12167      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12168      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12169	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12170	export_dynamic_flag_spec_CXX='${wl}-E'
12171	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12172      fi
12173      output_verbose_link_cmd='echo'
12174    else
12175      ld_shlibs_CXX=no
12176    fi
12177    ;;
12178  osf3*)
12179    case $cc_basename in
12180      KCC*)
12181	# Kuck and Associates, Inc. (KAI) C++ Compiler
12182
12183	# KCC will only create a shared library if the output file
12184	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12185	# to its proper name (with version) after linking.
12186	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12187
12188	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12189	hardcode_libdir_separator_CXX=:
12190
12191	# Archives containing C++ object files must be created using
12192	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12193	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12194
12195	;;
12196      RCC*)
12197	# Rational C++ 2.4.1
12198	# FIXME: insert proper C++ library support
12199	ld_shlibs_CXX=no
12200	;;
12201      cxx*)
12202	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12203	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'
12204
12205	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12206	hardcode_libdir_separator_CXX=:
12207
12208	# Commands to make compiler produce verbose output that lists
12209	# what "hidden" libraries, object files and flags are used when
12210	# linking a shared library.
12211	#
12212	# There doesn't appear to be a way to prevent this compiler from
12213	# explicitly linking system object files so we need to strip them
12214	# from the output so that they don't get included in the library
12215	# dependencies.
12216	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'
12217	;;
12218      *)
12219	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12220	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12221	  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'
12222
12223	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12224	  hardcode_libdir_separator_CXX=:
12225
12226	  # Commands to make compiler produce verbose output that lists
12227	  # what "hidden" libraries, object files and flags are used when
12228	  # linking a shared library.
12229	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12230
12231	else
12232	  # FIXME: insert proper C++ library support
12233	  ld_shlibs_CXX=no
12234	fi
12235	;;
12236    esac
12237    ;;
12238  osf4* | osf5*)
12239    case $cc_basename in
12240      KCC*)
12241	# Kuck and Associates, Inc. (KAI) C++ Compiler
12242
12243	# KCC will only create a shared library if the output file
12244	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12245	# to its proper name (with version) after linking.
12246	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'
12247
12248	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12249	hardcode_libdir_separator_CXX=:
12250
12251	# Archives containing C++ object files must be created using
12252	# the KAI C++ compiler.
12253	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12254	;;
12255      RCC*)
12256	# Rational C++ 2.4.1
12257	# FIXME: insert proper C++ library support
12258	ld_shlibs_CXX=no
12259	;;
12260      cxx*)
12261	allow_undefined_flag_CXX=' -expect_unresolved \*'
12262	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'
12263	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12264	  echo "-hidden">> $lib.exp~
12265	  $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~
12266	  $rm $lib.exp'
12267
12268	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12269	hardcode_libdir_separator_CXX=:
12270
12271	# Commands to make compiler produce verbose output that lists
12272	# what "hidden" libraries, object files and flags are used when
12273	# linking a shared library.
12274	#
12275	# There doesn't appear to be a way to prevent this compiler from
12276	# explicitly linking system object files so we need to strip them
12277	# from the output so that they don't get included in the library
12278	# dependencies.
12279	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'
12280	;;
12281      *)
12282	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12283	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12284	 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'
12285
12286	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12287	  hardcode_libdir_separator_CXX=:
12288
12289	  # Commands to make compiler produce verbose output that lists
12290	  # what "hidden" libraries, object files and flags are used when
12291	  # linking a shared library.
12292	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12293
12294	else
12295	  # FIXME: insert proper C++ library support
12296	  ld_shlibs_CXX=no
12297	fi
12298	;;
12299    esac
12300    ;;
12301  psos*)
12302    # FIXME: insert proper C++ library support
12303    ld_shlibs_CXX=no
12304    ;;
12305  sunos4*)
12306    case $cc_basename in
12307      CC*)
12308	# Sun C++ 4.x
12309	# FIXME: insert proper C++ library support
12310	ld_shlibs_CXX=no
12311	;;
12312      lcc*)
12313	# Lucid
12314	# FIXME: insert proper C++ library support
12315	ld_shlibs_CXX=no
12316	;;
12317      *)
12318	# FIXME: insert proper C++ library support
12319	ld_shlibs_CXX=no
12320	;;
12321    esac
12322    ;;
12323  solaris*)
12324    case $cc_basename in
12325      CC*)
12326	# Sun C++ 4.2, 5.x and Centerline C++
12327        archive_cmds_need_lc_CXX=yes
12328	no_undefined_flag_CXX=' -zdefs'
12329	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12330	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12331	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12332
12333	hardcode_libdir_flag_spec_CXX='-R$libdir'
12334	hardcode_shlibpath_var_CXX=no
12335	case $host_os in
12336	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12337	  *)
12338	    # The compiler driver will combine and reorder linker options,
12339	    # but understands `-z linker_flag'.
12340	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12341	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12342	    ;;
12343	esac
12344	link_all_deplibs_CXX=yes
12345
12346	output_verbose_link_cmd='echo'
12347
12348	# Archives containing C++ object files must be created using
12349	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12350	# necessary to make sure instantiated templates are included
12351	# in the archive.
12352	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12353	;;
12354      gcx*)
12355	# Green Hills C++ Compiler
12356	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12357
12358	# The C++ compiler must be used to create the archive.
12359	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12360	;;
12361      *)
12362	# GNU C++ compiler with Solaris linker
12363	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12364	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12365	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12366	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12367	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12368		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12369
12370	    # Commands to make compiler produce verbose output that lists
12371	    # what "hidden" libraries, object files and flags are used when
12372	    # linking a shared library.
12373	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12374	  else
12375	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12376	    # platform.
12377	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12378	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12379		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12380
12381	    # Commands to make compiler produce verbose output that lists
12382	    # what "hidden" libraries, object files and flags are used when
12383	    # linking a shared library.
12384	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12385	  fi
12386
12387	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12388	  case $host_os in
12389	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12390	  *)
12391	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12392	    ;;
12393	  esac
12394	fi
12395	;;
12396    esac
12397    ;;
12398  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12399    no_undefined_flag_CXX='${wl}-z,text'
12400    archive_cmds_need_lc_CXX=no
12401    hardcode_shlibpath_var_CXX=no
12402    runpath_var='LD_RUN_PATH'
12403
12404    case $cc_basename in
12405      CC*)
12406	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12407	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12408	;;
12409      *)
12410	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12411	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12412	;;
12413    esac
12414    ;;
12415  sysv5* | sco3.2v5* | sco5v6*)
12416    # Note: We can NOT use -z defs as we might desire, because we do not
12417    # link with -lc, and that would cause any symbols used from libc to
12418    # always be unresolved, which means just about no library would
12419    # ever link correctly.  If we're not using GNU ld we use -z text
12420    # though, which does catch some bad symbols but isn't as heavy-handed
12421    # as -z defs.
12422    # For security reasons, it is highly recommended that you always
12423    # use absolute paths for naming shared libraries, and exclude the
12424    # DT_RUNPATH tag from executables and libraries.  But doing so
12425    # requires that you compile everything twice, which is a pain.
12426    # So that behaviour is only enabled if SCOABSPATH is set to a
12427    # non-empty value in the environment.  Most likely only useful for
12428    # creating official distributions of packages.
12429    # This is a hack until libtool officially supports absolute path
12430    # names for shared libraries.
12431    no_undefined_flag_CXX='${wl}-z,text'
12432    allow_undefined_flag_CXX='${wl}-z,nodefs'
12433    archive_cmds_need_lc_CXX=no
12434    hardcode_shlibpath_var_CXX=no
12435    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12436    hardcode_libdir_separator_CXX=':'
12437    link_all_deplibs_CXX=yes
12438    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12439    runpath_var='LD_RUN_PATH'
12440
12441    case $cc_basename in
12442      CC*)
12443	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12444	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12445	;;
12446      *)
12447	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12448	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12449	;;
12450    esac
12451    ;;
12452  tandem*)
12453    case $cc_basename in
12454      NCC*)
12455	# NonStop-UX NCC 3.20
12456	# FIXME: insert proper C++ library support
12457	ld_shlibs_CXX=no
12458	;;
12459      *)
12460	# FIXME: insert proper C++ library support
12461	ld_shlibs_CXX=no
12462	;;
12463    esac
12464    ;;
12465  vxworks*)
12466    # FIXME: insert proper C++ library support
12467    ld_shlibs_CXX=no
12468    ;;
12469  *)
12470    # FIXME: insert proper C++ library support
12471    ld_shlibs_CXX=no
12472    ;;
12473esac
12474{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12475$as_echo "$ld_shlibs_CXX" >&6; }
12476test "$ld_shlibs_CXX" = no && can_build_shared=no
12477
12478GCC_CXX="$GXX"
12479LD_CXX="$LD"
12480
12481cat > conftest.$ac_ext <<EOF
12482class Foo
12483{
12484public:
12485  Foo (void) { a = 0; }
12486private:
12487  int a;
12488};
12489EOF
12490
12491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12492  (eval $ac_compile) 2>&5
12493  ac_status=$?
12494  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495  (exit $ac_status); }; then
12496  # Parse the compiler output and extract the necessary
12497  # objects, libraries and library flags.
12498
12499  # Sentinel used to keep track of whether or not we are before
12500  # the conftest object file.
12501  pre_test_object_deps_done=no
12502
12503  # The `*' in the case matches for architectures that use `case' in
12504  # $output_verbose_cmd can trigger glob expansion during the loop
12505  # eval without this substitution.
12506  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12507
12508  for p in `eval $output_verbose_link_cmd`; do
12509    case $p in
12510
12511    -L* | -R* | -l*)
12512       # Some compilers place space between "-{L,R}" and the path.
12513       # Remove the space.
12514       if test $p = "-L" \
12515	  || test $p = "-R"; then
12516	 prev=$p
12517	 continue
12518       else
12519	 prev=
12520       fi
12521
12522       if test "$pre_test_object_deps_done" = no; then
12523	 case $p in
12524	 -L* | -R*)
12525	   # Internal compiler library paths should come after those
12526	   # provided the user.  The postdeps already come after the
12527	   # user supplied libs so there is no need to process them.
12528	   if test -z "$compiler_lib_search_path_CXX"; then
12529	     compiler_lib_search_path_CXX="${prev}${p}"
12530	   else
12531	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12532	   fi
12533	   ;;
12534	 # The "-l" case would never come before the object being
12535	 # linked, so don't bother handling this case.
12536	 esac
12537       else
12538	 if test -z "$postdeps_CXX"; then
12539	   postdeps_CXX="${prev}${p}"
12540	 else
12541	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12542	 fi
12543       fi
12544       ;;
12545
12546    *.$objext)
12547       # This assumes that the test object file only shows up
12548       # once in the compiler output.
12549       if test "$p" = "conftest.$objext"; then
12550	 pre_test_object_deps_done=yes
12551	 continue
12552       fi
12553
12554       if test "$pre_test_object_deps_done" = no; then
12555	 if test -z "$predep_objects_CXX"; then
12556	   predep_objects_CXX="$p"
12557	 else
12558	   predep_objects_CXX="$predep_objects_CXX $p"
12559	 fi
12560       else
12561	 if test -z "$postdep_objects_CXX"; then
12562	   postdep_objects_CXX="$p"
12563	 else
12564	   postdep_objects_CXX="$postdep_objects_CXX $p"
12565	 fi
12566       fi
12567       ;;
12568
12569    *) ;; # Ignore the rest.
12570
12571    esac
12572  done
12573
12574  # Clean up.
12575  rm -f a.out a.exe
12576else
12577  echo "libtool.m4: error: problem compiling CXX test program"
12578fi
12579
12580$rm -f confest.$objext
12581
12582compiler_lib_search_dirs_CXX=
12583if test -n "$compiler_lib_search_path_CXX"; then
12584  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12585fi
12586
12587# PORTME: override above test on systems where it is broken
12588case $host_os in
12589interix[3-9]*)
12590  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12591  # hack all around it, let's just trust "g++" to DTRT.
12592  predep_objects_CXX=
12593  postdep_objects_CXX=
12594  postdeps_CXX=
12595  ;;
12596
12597linux*)
12598  case `$CC -V 2>&1 | sed 5q` in
12599  *Sun\ C*)
12600    # Sun C++ 5.9
12601    #
12602    # The more standards-conforming stlport4 library is
12603    # incompatible with the Cstd library. Avoid specifying
12604    # it if it's in CXXFLAGS. Ignore libCrun as
12605    # -library=stlport4 depends on it.
12606    case " $CXX $CXXFLAGS " in
12607    *" -library=stlport4 "*)
12608      solaris_use_stlport4=yes
12609      ;;
12610    esac
12611    if test "$solaris_use_stlport4" != yes; then
12612      postdeps_CXX='-library=Cstd -library=Crun'
12613    fi
12614    ;;
12615  esac
12616  ;;
12617
12618solaris*)
12619  case $cc_basename in
12620  CC*)
12621    # The more standards-conforming stlport4 library is
12622    # incompatible with the Cstd library. Avoid specifying
12623    # it if it's in CXXFLAGS. Ignore libCrun as
12624    # -library=stlport4 depends on it.
12625    case " $CXX $CXXFLAGS " in
12626    *" -library=stlport4 "*)
12627      solaris_use_stlport4=yes
12628      ;;
12629    esac
12630
12631    # Adding this requires a known-good setup of shared libraries for
12632    # Sun compiler versions before 5.6, else PIC objects from an old
12633    # archive will be linked into the output, leading to subtle bugs.
12634    if test "$solaris_use_stlport4" != yes; then
12635      postdeps_CXX='-library=Cstd -library=Crun'
12636    fi
12637    ;;
12638  esac
12639  ;;
12640esac
12641
12642case " $postdeps_CXX " in
12643*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12644esac
12645
12646lt_prog_compiler_wl_CXX=
12647lt_prog_compiler_pic_CXX=
12648lt_prog_compiler_static_CXX=
12649
12650{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12651$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12652
12653  # C++ specific cases for pic, static, wl, etc.
12654  if test "$GXX" = yes; then
12655    lt_prog_compiler_wl_CXX='-Wl,'
12656    lt_prog_compiler_static_CXX='-static'
12657
12658    case $host_os in
12659    aix*)
12660      # All AIX code is PIC.
12661      if test "$host_cpu" = ia64; then
12662	# AIX 5 now supports IA64 processor
12663	lt_prog_compiler_static_CXX='-Bstatic'
12664      fi
12665      ;;
12666    amigaos*)
12667      # FIXME: we need at least 68020 code to build shared libraries, but
12668      # adding the `-m68020' flag to GCC prevents building anything better,
12669      # like `-m68040'.
12670      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12671      ;;
12672    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12673      # PIC is the default for these OSes.
12674      ;;
12675    mingw* | cygwin* | os2* | pw32*)
12676      # This hack is so that the source file can tell whether it is being
12677      # built for inclusion in a dll (and should export symbols for example).
12678      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12679      # (--disable-auto-import) libraries
12680      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12681      ;;
12682    darwin* | rhapsody*)
12683      # PIC is the default on this platform
12684      # Common symbols not allowed in MH_DYLIB files
12685      lt_prog_compiler_pic_CXX='-fno-common'
12686      ;;
12687    *djgpp*)
12688      # DJGPP does not support shared libraries at all
12689      lt_prog_compiler_pic_CXX=
12690      ;;
12691    interix[3-9]*)
12692      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12693      # Instead, we relocate shared libraries at runtime.
12694      ;;
12695    sysv4*MP*)
12696      if test -d /usr/nec; then
12697	lt_prog_compiler_pic_CXX=-Kconform_pic
12698      fi
12699      ;;
12700    hpux*)
12701      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12702      # not for PA HP-UX.
12703      case $host_cpu in
12704      hppa*64*|ia64*)
12705	;;
12706      *)
12707	lt_prog_compiler_pic_CXX='-fPIC'
12708	;;
12709      esac
12710      ;;
12711    *)
12712      lt_prog_compiler_pic_CXX='-fPIC'
12713      ;;
12714    esac
12715  else
12716    case $host_os in
12717      aix[4-9]*)
12718	# All AIX code is PIC.
12719	if test "$host_cpu" = ia64; then
12720	  # AIX 5 now supports IA64 processor
12721	  lt_prog_compiler_static_CXX='-Bstatic'
12722	else
12723	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12724	fi
12725	;;
12726      chorus*)
12727	case $cc_basename in
12728	cxch68*)
12729	  # Green Hills C++ Compiler
12730	  # _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"
12731	  ;;
12732	esac
12733	;;
12734       darwin*)
12735         # PIC is the default on this platform
12736         # Common symbols not allowed in MH_DYLIB files
12737         case $cc_basename in
12738           xlc*)
12739           lt_prog_compiler_pic_CXX='-qnocommon'
12740           lt_prog_compiler_wl_CXX='-Wl,'
12741           ;;
12742         esac
12743       ;;
12744      dgux*)
12745	case $cc_basename in
12746	  ec++*)
12747	    lt_prog_compiler_pic_CXX='-KPIC'
12748	    ;;
12749	  ghcx*)
12750	    # Green Hills C++ Compiler
12751	    lt_prog_compiler_pic_CXX='-pic'
12752	    ;;
12753	  *)
12754	    ;;
12755	esac
12756	;;
12757      freebsd* | dragonfly*)
12758	# FreeBSD uses GNU C++
12759	;;
12760      hpux9* | hpux10* | hpux11*)
12761	case $cc_basename in
12762	  CC*)
12763	    lt_prog_compiler_wl_CXX='-Wl,'
12764	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12765	    if test "$host_cpu" != ia64; then
12766	      lt_prog_compiler_pic_CXX='+Z'
12767	    fi
12768	    ;;
12769	  aCC*)
12770	    lt_prog_compiler_wl_CXX='-Wl,'
12771	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12772	    case $host_cpu in
12773	    hppa*64*|ia64*)
12774	      # +Z the default
12775	      ;;
12776	    *)
12777	      lt_prog_compiler_pic_CXX='+Z'
12778	      ;;
12779	    esac
12780	    ;;
12781	  *)
12782	    ;;
12783	esac
12784	;;
12785      interix*)
12786	# This is c89, which is MS Visual C++ (no shared libs)
12787	# Anyone wants to do a port?
12788	;;
12789      irix5* | irix6* | nonstopux*)
12790	case $cc_basename in
12791	  CC*)
12792	    lt_prog_compiler_wl_CXX='-Wl,'
12793	    lt_prog_compiler_static_CXX='-non_shared'
12794	    # CC pic flag -KPIC is the default.
12795	    ;;
12796	  *)
12797	    ;;
12798	esac
12799	;;
12800      linux* | k*bsd*-gnu)
12801	case $cc_basename in
12802	  KCC*)
12803	    # KAI C++ Compiler
12804	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12805	    lt_prog_compiler_pic_CXX='-fPIC'
12806	    ;;
12807	  icpc* | ecpc*)
12808	    # Intel C++
12809	    lt_prog_compiler_wl_CXX='-Wl,'
12810	    lt_prog_compiler_pic_CXX='-KPIC'
12811	    lt_prog_compiler_static_CXX='-static'
12812	    ;;
12813	  pgCC* | pgcpp*)
12814	    # Portland Group C++ compiler.
12815	    lt_prog_compiler_wl_CXX='-Wl,'
12816	    lt_prog_compiler_pic_CXX='-fpic'
12817	    lt_prog_compiler_static_CXX='-Bstatic'
12818	    ;;
12819	  cxx*)
12820	    # Compaq C++
12821	    # Make sure the PIC flag is empty.  It appears that all Alpha
12822	    # Linux and Compaq Tru64 Unix objects are PIC.
12823	    lt_prog_compiler_pic_CXX=
12824	    lt_prog_compiler_static_CXX='-non_shared'
12825	    ;;
12826	  *)
12827	    case `$CC -V 2>&1 | sed 5q` in
12828	    *Sun\ C*)
12829	      # Sun C++ 5.9
12830	      lt_prog_compiler_pic_CXX='-KPIC'
12831	      lt_prog_compiler_static_CXX='-Bstatic'
12832	      lt_prog_compiler_wl_CXX='-Qoption ld '
12833	      ;;
12834	    esac
12835	    ;;
12836	esac
12837	;;
12838      lynxos*)
12839	;;
12840      m88k*)
12841	;;
12842      mvs*)
12843	case $cc_basename in
12844	  cxx*)
12845	    lt_prog_compiler_pic_CXX='-W c,exportall'
12846	    ;;
12847	  *)
12848	    ;;
12849	esac
12850	;;
12851      netbsd*)
12852	;;
12853      osf3* | osf4* | osf5*)
12854	case $cc_basename in
12855	  KCC*)
12856	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12857	    ;;
12858	  RCC*)
12859	    # Rational C++ 2.4.1
12860	    lt_prog_compiler_pic_CXX='-pic'
12861	    ;;
12862	  cxx*)
12863	    # Digital/Compaq C++
12864	    lt_prog_compiler_wl_CXX='-Wl,'
12865	    # Make sure the PIC flag is empty.  It appears that all Alpha
12866	    # Linux and Compaq Tru64 Unix objects are PIC.
12867	    lt_prog_compiler_pic_CXX=
12868	    lt_prog_compiler_static_CXX='-non_shared'
12869	    ;;
12870	  *)
12871	    ;;
12872	esac
12873	;;
12874      psos*)
12875	;;
12876      solaris*)
12877	case $cc_basename in
12878	  CC*)
12879	    # Sun C++ 4.2, 5.x and Centerline C++
12880	    lt_prog_compiler_pic_CXX='-KPIC'
12881	    lt_prog_compiler_static_CXX='-Bstatic'
12882	    lt_prog_compiler_wl_CXX='-Qoption ld '
12883	    ;;
12884	  gcx*)
12885	    # Green Hills C++ Compiler
12886	    lt_prog_compiler_pic_CXX='-PIC'
12887	    ;;
12888	  *)
12889	    ;;
12890	esac
12891	;;
12892      sunos4*)
12893	case $cc_basename in
12894	  CC*)
12895	    # Sun C++ 4.x
12896	    lt_prog_compiler_pic_CXX='-pic'
12897	    lt_prog_compiler_static_CXX='-Bstatic'
12898	    ;;
12899	  lcc*)
12900	    # Lucid
12901	    lt_prog_compiler_pic_CXX='-pic'
12902	    ;;
12903	  *)
12904	    ;;
12905	esac
12906	;;
12907      tandem*)
12908	case $cc_basename in
12909	  NCC*)
12910	    # NonStop-UX NCC 3.20
12911	    lt_prog_compiler_pic_CXX='-KPIC'
12912	    ;;
12913	  *)
12914	    ;;
12915	esac
12916	;;
12917      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12918	case $cc_basename in
12919	  CC*)
12920	    lt_prog_compiler_wl_CXX='-Wl,'
12921	    lt_prog_compiler_pic_CXX='-KPIC'
12922	    lt_prog_compiler_static_CXX='-Bstatic'
12923	    ;;
12924	esac
12925	;;
12926      vxworks*)
12927	;;
12928      *)
12929	lt_prog_compiler_can_build_shared_CXX=no
12930	;;
12931    esac
12932  fi
12933
12934{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12935$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12936
12937#
12938# Check to make sure the PIC flag actually works.
12939#
12940if test -n "$lt_prog_compiler_pic_CXX"; then
12941
12942{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12943$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12944if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12945  $as_echo_n "(cached) " >&6
12946else
12947  lt_cv_prog_compiler_pic_works_CXX=no
12948  ac_outfile=conftest.$ac_objext
12949   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12950   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12951   # Insert the option either (1) after the last *FLAGS variable, or
12952   # (2) before a word containing "conftest.", or (3) at the end.
12953   # Note that $ac_compile itself does not contain backslashes and begins
12954   # with a dollar sign (not a hyphen), so the echo should work correctly.
12955   # The option is referenced via a variable to avoid confusing sed.
12956   lt_compile=`echo "$ac_compile" | $SED \
12957   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12958   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12959   -e 's:$: $lt_compiler_flag:'`
12960   (eval echo "\"\$as_me:12960: $lt_compile\"" >&5)
12961   (eval "$lt_compile" 2>conftest.err)
12962   ac_status=$?
12963   cat conftest.err >&5
12964   echo "$as_me:12964: \$? = $ac_status" >&5
12965   if (exit $ac_status) && test -s "$ac_outfile"; then
12966     # The compiler can only warn and ignore the option if not recognized
12967     # So say no if there are warnings other than the usual output.
12968     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12969     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12970     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12971       lt_cv_prog_compiler_pic_works_CXX=yes
12972     fi
12973   fi
12974   $rm conftest*
12975
12976fi
12977{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12978$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12979
12980if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12981    case $lt_prog_compiler_pic_CXX in
12982     "" | " "*) ;;
12983     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12984     esac
12985else
12986    lt_prog_compiler_pic_CXX=
12987     lt_prog_compiler_can_build_shared_CXX=no
12988fi
12989
12990fi
12991case $host_os in
12992  # For platforms which do not support PIC, -DPIC is meaningless:
12993  *djgpp*)
12994    lt_prog_compiler_pic_CXX=
12995    ;;
12996  *)
12997    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12998    ;;
12999esac
13000
13001#
13002# Check to make sure the static flag actually works.
13003#
13004wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13005{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13006$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13007if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13008  $as_echo_n "(cached) " >&6
13009else
13010  lt_cv_prog_compiler_static_works_CXX=no
13011   save_LDFLAGS="$LDFLAGS"
13012   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13013   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13014   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13015     # The linker can only warn and ignore the option if not recognized
13016     # So say no if there are warnings
13017     if test -s conftest.err; then
13018       # Append any errors to the config.log.
13019       cat conftest.err 1>&5
13020       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13021       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13022       if diff conftest.exp conftest.er2 >/dev/null; then
13023         lt_cv_prog_compiler_static_works_CXX=yes
13024       fi
13025     else
13026       lt_cv_prog_compiler_static_works_CXX=yes
13027     fi
13028   fi
13029   $rm -r conftest*
13030   LDFLAGS="$save_LDFLAGS"
13031
13032fi
13033{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13034$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13035
13036if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13037    :
13038else
13039    lt_prog_compiler_static_CXX=
13040fi
13041
13042
13043{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13044$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13045if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13046  $as_echo_n "(cached) " >&6
13047else
13048  lt_cv_prog_compiler_c_o_CXX=no
13049   $rm -r conftest 2>/dev/null
13050   mkdir conftest
13051   cd conftest
13052   mkdir out
13053   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13054
13055   lt_compiler_flag="-o out/conftest2.$ac_objext"
13056   # Insert the option either (1) after the last *FLAGS variable, or
13057   # (2) before a word containing "conftest.", or (3) at the end.
13058   # Note that $ac_compile itself does not contain backslashes and begins
13059   # with a dollar sign (not a hyphen), so the echo should work correctly.
13060   lt_compile=`echo "$ac_compile" | $SED \
13061   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13062   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13063   -e 's:$: $lt_compiler_flag:'`
13064   (eval echo "\"\$as_me:13064: $lt_compile\"" >&5)
13065   (eval "$lt_compile" 2>out/conftest.err)
13066   ac_status=$?
13067   cat out/conftest.err >&5
13068   echo "$as_me:13068: \$? = $ac_status" >&5
13069   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13070   then
13071     # The compiler can only warn and ignore the option if not recognized
13072     # So say no if there are warnings
13073     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13074     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13075     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13076       lt_cv_prog_compiler_c_o_CXX=yes
13077     fi
13078   fi
13079   chmod u+w . 2>&5
13080   $rm conftest*
13081   # SGI C++ compiler will create directory out/ii_files/ for
13082   # template instantiation
13083   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13084   $rm out/* && rmdir out
13085   cd ..
13086   rmdir conftest
13087   $rm conftest*
13088
13089fi
13090{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13091$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13092
13093
13094hard_links="nottested"
13095if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13096  # do not overwrite the value of need_locks provided by the user
13097  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13098$as_echo_n "checking if we can lock with hard links... " >&6; }
13099  hard_links=yes
13100  $rm conftest*
13101  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13102  touch conftest.a
13103  ln conftest.a conftest.b 2>&5 || hard_links=no
13104  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13105  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13106$as_echo "$hard_links" >&6; }
13107  if test "$hard_links" = no; then
13108    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13109$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13110    need_locks=warn
13111  fi
13112else
13113  need_locks=no
13114fi
13115
13116{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13117$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13118
13119  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13120  case $host_os in
13121  aix[4-9]*)
13122    # If we're using GNU nm, then we don't want the "-C" option.
13123    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13124    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13125      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'
13126    else
13127      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'
13128    fi
13129    ;;
13130  pw32*)
13131    export_symbols_cmds_CXX="$ltdll_cmds"
13132  ;;
13133  cygwin* | mingw*)
13134    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'
13135  ;;
13136  *)
13137    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13138  ;;
13139  esac
13140  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13141
13142{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13143$as_echo "$ld_shlibs_CXX" >&6; }
13144test "$ld_shlibs_CXX" = no && can_build_shared=no
13145
13146#
13147# Do we need to explicitly link libc?
13148#
13149case "x$archive_cmds_need_lc_CXX" in
13150x|xyes)
13151  # Assume -lc should be added
13152  archive_cmds_need_lc_CXX=yes
13153
13154  if test "$enable_shared" = yes && test "$GCC" = yes; then
13155    case $archive_cmds_CXX in
13156    *'~'*)
13157      # FIXME: we may have to deal with multi-command sequences.
13158      ;;
13159    '$CC '*)
13160      # Test whether the compiler implicitly links with -lc since on some
13161      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13162      # to ld, don't add -lc before -lgcc.
13163      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13164$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13165      $rm conftest*
13166      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13167
13168      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13169  (eval $ac_compile) 2>&5
13170  ac_status=$?
13171  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172  (exit $ac_status); } 2>conftest.err; then
13173        soname=conftest
13174        lib=conftest
13175        libobjs=conftest.$ac_objext
13176        deplibs=
13177        wl=$lt_prog_compiler_wl_CXX
13178	pic_flag=$lt_prog_compiler_pic_CXX
13179        compiler_flags=-v
13180        linker_flags=-v
13181        verstring=
13182        output_objdir=.
13183        libname=conftest
13184        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13185        allow_undefined_flag_CXX=
13186        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13187  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13188  ac_status=$?
13189  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190  (exit $ac_status); }
13191        then
13192	  archive_cmds_need_lc_CXX=no
13193        else
13194	  archive_cmds_need_lc_CXX=yes
13195        fi
13196        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13197      else
13198        cat conftest.err 1>&5
13199      fi
13200      $rm conftest*
13201      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13202$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13203      ;;
13204    esac
13205  fi
13206  ;;
13207esac
13208
13209{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13210$as_echo_n "checking dynamic linker characteristics... " >&6; }
13211library_names_spec=
13212libname_spec='lib$name'
13213soname_spec=
13214shrext_cmds=".so"
13215postinstall_cmds=
13216postuninstall_cmds=
13217finish_cmds=
13218finish_eval=
13219shlibpath_var=
13220shlibpath_overrides_runpath=unknown
13221version_type=none
13222dynamic_linker="$host_os ld.so"
13223sys_lib_dlsearch_path_spec="/lib /usr/lib"
13224
13225need_lib_prefix=unknown
13226hardcode_into_libs=no
13227
13228# when you set need_version to no, make sure it does not cause -set_version
13229# flags to be left without arguments
13230need_version=unknown
13231
13232case $host_os in
13233aix3*)
13234  version_type=linux
13235  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13236  shlibpath_var=LIBPATH
13237
13238  # AIX 3 has no versioning support, so we append a major version to the name.
13239  soname_spec='${libname}${release}${shared_ext}$major'
13240  ;;
13241
13242aix[4-9]*)
13243  version_type=linux
13244  need_lib_prefix=no
13245  need_version=no
13246  hardcode_into_libs=yes
13247  if test "$host_cpu" = ia64; then
13248    # AIX 5 supports IA64
13249    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13250    shlibpath_var=LD_LIBRARY_PATH
13251  else
13252    # With GCC up to 2.95.x, collect2 would create an import file
13253    # for dependence libraries.  The import file would start with
13254    # the line `#! .'.  This would cause the generated library to
13255    # depend on `.', always an invalid library.  This was fixed in
13256    # development snapshots of GCC prior to 3.0.
13257    case $host_os in
13258      aix4 | aix4.[01] | aix4.[01].*)
13259      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13260	   echo ' yes '
13261	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13262	:
13263      else
13264	can_build_shared=no
13265      fi
13266      ;;
13267    esac
13268    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13269    # soname into executable. Probably we can add versioning support to
13270    # collect2, so additional links can be useful in future.
13271    if test "$aix_use_runtimelinking" = yes; then
13272      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13273      # instead of lib<name>.a to let people know that these are not
13274      # typical AIX shared libraries.
13275      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13276    else
13277      # We preserve .a as extension for shared libraries through AIX4.2
13278      # and later when we are not doing run time linking.
13279      library_names_spec='${libname}${release}.a $libname.a'
13280      soname_spec='${libname}${release}${shared_ext}$major'
13281    fi
13282    shlibpath_var=LIBPATH
13283  fi
13284  ;;
13285
13286amigaos*)
13287  library_names_spec='$libname.ixlibrary $libname.a'
13288  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13289  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'
13290  ;;
13291
13292beos*)
13293  library_names_spec='${libname}${shared_ext}'
13294  dynamic_linker="$host_os ld.so"
13295  shlibpath_var=LIBRARY_PATH
13296  ;;
13297
13298bsdi[45]*)
13299  version_type=linux
13300  need_version=no
13301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13302  soname_spec='${libname}${release}${shared_ext}$major'
13303  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13304  shlibpath_var=LD_LIBRARY_PATH
13305  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13306  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13307  # the default ld.so.conf also contains /usr/contrib/lib and
13308  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13309  # libtool to hard-code these into programs
13310  ;;
13311
13312cygwin* | mingw* | pw32*)
13313  version_type=windows
13314  shrext_cmds=".dll"
13315  need_version=no
13316  need_lib_prefix=no
13317
13318  case $GCC,$host_os in
13319  yes,cygwin* | yes,mingw* | yes,pw32*)
13320    library_names_spec='$libname.dll.a'
13321    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13322    postinstall_cmds='base_file=`basename \${file}`~
13323      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13324      dldir=$destdir/`dirname \$dlpath`~
13325      test -d \$dldir || mkdir -p \$dldir~
13326      $install_prog $dir/$dlname \$dldir/$dlname~
13327      chmod a+x \$dldir/$dlname'
13328    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13329      dlpath=$dir/\$dldll~
13330       $rm \$dlpath'
13331    shlibpath_overrides_runpath=yes
13332
13333    case $host_os in
13334    cygwin*)
13335      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13336      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13337      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13338      ;;
13339    mingw*)
13340      # MinGW DLLs use traditional 'lib' prefix
13341      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13342      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13343      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13344        # It is most probably a Windows format PATH printed by
13345        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13346        # path with ; separators, and with drive letters. We can handle the
13347        # drive letters (cygwin fileutils understands them), so leave them,
13348        # especially as we might pass files found there to a mingw objdump,
13349        # which wouldn't understand a cygwinified path. Ahh.
13350        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13351      else
13352        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13353      fi
13354      ;;
13355    pw32*)
13356      # pw32 DLLs use 'pw' prefix rather than 'lib'
13357      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13358      ;;
13359    esac
13360    ;;
13361
13362  *)
13363    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13364    ;;
13365  esac
13366  dynamic_linker='Win32 ld.exe'
13367  # FIXME: first we should search . and the directory the executable is in
13368  shlibpath_var=PATH
13369  ;;
13370
13371darwin* | rhapsody*)
13372  dynamic_linker="$host_os dyld"
13373  version_type=darwin
13374  need_lib_prefix=no
13375  need_version=no
13376  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13377  soname_spec='${libname}${release}${major}$shared_ext'
13378  shlibpath_overrides_runpath=yes
13379  shlibpath_var=DYLD_LIBRARY_PATH
13380  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13381
13382  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13383  ;;
13384
13385dgux*)
13386  version_type=linux
13387  need_lib_prefix=no
13388  need_version=no
13389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13390  soname_spec='${libname}${release}${shared_ext}$major'
13391  shlibpath_var=LD_LIBRARY_PATH
13392  ;;
13393
13394freebsd1*)
13395  dynamic_linker=no
13396  ;;
13397
13398freebsd* | dragonfly*)
13399  # DragonFly does not have aout.  When/if they implement a new
13400  # versioning mechanism, adjust this.
13401  if test -x /usr/bin/objformat; then
13402    objformat=`/usr/bin/objformat`
13403  else
13404    case $host_os in
13405    freebsd[123]*) objformat=aout ;;
13406    *) objformat=elf ;;
13407    esac
13408  fi
13409  version_type=freebsd-$objformat
13410  case $version_type in
13411    freebsd-elf*)
13412      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13413      need_version=no
13414      need_lib_prefix=no
13415      ;;
13416    freebsd-*)
13417      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13418      need_version=yes
13419      ;;
13420  esac
13421  shlibpath_var=LD_LIBRARY_PATH
13422  case $host_os in
13423  freebsd2*)
13424    shlibpath_overrides_runpath=yes
13425    ;;
13426  freebsd3.[01]* | freebsdelf3.[01]*)
13427    shlibpath_overrides_runpath=yes
13428    hardcode_into_libs=yes
13429    ;;
13430  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13431  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13432    shlibpath_overrides_runpath=no
13433    hardcode_into_libs=yes
13434    ;;
13435  *) # from 4.6 on, and DragonFly
13436    shlibpath_overrides_runpath=yes
13437    hardcode_into_libs=yes
13438    ;;
13439  esac
13440  ;;
13441
13442gnu*)
13443  version_type=linux
13444  need_lib_prefix=no
13445  need_version=no
13446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13447  soname_spec='${libname}${release}${shared_ext}$major'
13448  shlibpath_var=LD_LIBRARY_PATH
13449  hardcode_into_libs=yes
13450  ;;
13451
13452hpux9* | hpux10* | hpux11*)
13453  # Give a soname corresponding to the major version so that dld.sl refuses to
13454  # link against other versions.
13455  version_type=sunos
13456  need_lib_prefix=no
13457  need_version=no
13458  case $host_cpu in
13459  ia64*)
13460    shrext_cmds='.so'
13461    hardcode_into_libs=yes
13462    dynamic_linker="$host_os dld.so"
13463    shlibpath_var=LD_LIBRARY_PATH
13464    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13465    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13466    soname_spec='${libname}${release}${shared_ext}$major'
13467    if test "X$HPUX_IA64_MODE" = X32; then
13468      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13469    else
13470      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13471    fi
13472    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13473    ;;
13474   hppa*64*)
13475     shrext_cmds='.sl'
13476     hardcode_into_libs=yes
13477     dynamic_linker="$host_os dld.sl"
13478     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13479     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13480     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13481     soname_spec='${libname}${release}${shared_ext}$major'
13482     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13483     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13484     ;;
13485   *)
13486    shrext_cmds='.sl'
13487    dynamic_linker="$host_os dld.sl"
13488    shlibpath_var=SHLIB_PATH
13489    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13490    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13491    soname_spec='${libname}${release}${shared_ext}$major'
13492    ;;
13493  esac
13494  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13495  postinstall_cmds='chmod 555 $lib'
13496  ;;
13497
13498interix[3-9]*)
13499  version_type=linux
13500  need_lib_prefix=no
13501  need_version=no
13502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13503  soname_spec='${libname}${release}${shared_ext}$major'
13504  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13505  shlibpath_var=LD_LIBRARY_PATH
13506  shlibpath_overrides_runpath=no
13507  hardcode_into_libs=yes
13508  ;;
13509
13510irix5* | irix6* | nonstopux*)
13511  case $host_os in
13512    nonstopux*) version_type=nonstopux ;;
13513    *)
13514	if test "$lt_cv_prog_gnu_ld" = yes; then
13515		version_type=linux
13516	else
13517		version_type=irix
13518	fi ;;
13519  esac
13520  need_lib_prefix=no
13521  need_version=no
13522  soname_spec='${libname}${release}${shared_ext}$major'
13523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13524  case $host_os in
13525  irix5* | nonstopux*)
13526    libsuff= shlibsuff=
13527    ;;
13528  *)
13529    case $LD in # libtool.m4 will add one of these switches to LD
13530    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13531      libsuff= shlibsuff= libmagic=32-bit;;
13532    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13533      libsuff=32 shlibsuff=N32 libmagic=N32;;
13534    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13535      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13536    *) libsuff= shlibsuff= libmagic=never-match;;
13537    esac
13538    ;;
13539  esac
13540  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13541  shlibpath_overrides_runpath=no
13542  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13543  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13544  hardcode_into_libs=yes
13545  ;;
13546
13547# No shared lib support for Linux oldld, aout, or coff.
13548linux*oldld* | linux*aout* | linux*coff*)
13549  dynamic_linker=no
13550  ;;
13551
13552# This must be Linux ELF.
13553linux* | k*bsd*-gnu)
13554  version_type=linux
13555  need_lib_prefix=no
13556  need_version=no
13557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13558  soname_spec='${libname}${release}${shared_ext}$major'
13559  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13560  shlibpath_var=LD_LIBRARY_PATH
13561  shlibpath_overrides_runpath=no
13562  # This implies no fast_install, which is unacceptable.
13563  # Some rework will be needed to allow for fast_install
13564  # before this can be enabled.
13565  hardcode_into_libs=yes
13566  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13567  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13568
13569  # Append ld.so.conf contents to the search path
13570  if test -f /etc/ld.so.conf; then
13571    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' ' '`
13572    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13573  fi
13574
13575  # We used to test for /lib/ld.so.1 and disable shared libraries on
13576  # powerpc, because MkLinux only supported shared libraries with the
13577  # GNU dynamic linker.  Since this was broken with cross compilers,
13578  # most powerpc-linux boxes support dynamic linking these days and
13579  # people can always --disable-shared, the test was removed, and we
13580  # assume the GNU/Linux dynamic linker is in use.
13581  dynamic_linker='GNU/Linux ld.so'
13582  ;;
13583
13584netbsd*)
13585  version_type=sunos
13586  need_lib_prefix=no
13587  need_version=no
13588  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13589    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13590    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13591    dynamic_linker='NetBSD (a.out) ld.so'
13592  else
13593    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13594    soname_spec='${libname}${release}${shared_ext}$major'
13595    dynamic_linker='NetBSD ld.elf_so'
13596  fi
13597  shlibpath_var=LD_LIBRARY_PATH
13598  shlibpath_overrides_runpath=yes
13599  hardcode_into_libs=yes
13600  ;;
13601
13602newsos6)
13603  version_type=linux
13604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13605  shlibpath_var=LD_LIBRARY_PATH
13606  shlibpath_overrides_runpath=yes
13607  ;;
13608
13609nto-qnx*)
13610  version_type=linux
13611  need_lib_prefix=no
13612  need_version=no
13613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13614  soname_spec='${libname}${release}${shared_ext}$major'
13615  shlibpath_var=LD_LIBRARY_PATH
13616  shlibpath_overrides_runpath=yes
13617  ;;
13618
13619openbsd*)
13620  version_type=sunos
13621  sys_lib_dlsearch_path_spec="/usr/lib"
13622  need_lib_prefix=no
13623  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13624  case $host_os in
13625    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13626    *)                         need_version=no  ;;
13627  esac
13628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13629  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13630  shlibpath_var=LD_LIBRARY_PATH
13631  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13632    case $host_os in
13633      openbsd2.[89] | openbsd2.[89].*)
13634	shlibpath_overrides_runpath=no
13635	;;
13636      *)
13637	shlibpath_overrides_runpath=yes
13638	;;
13639      esac
13640  else
13641    shlibpath_overrides_runpath=yes
13642  fi
13643  ;;
13644
13645os2*)
13646  libname_spec='$name'
13647  shrext_cmds=".dll"
13648  need_lib_prefix=no
13649  library_names_spec='$libname${shared_ext} $libname.a'
13650  dynamic_linker='OS/2 ld.exe'
13651  shlibpath_var=LIBPATH
13652  ;;
13653
13654osf3* | osf4* | osf5*)
13655  version_type=osf
13656  need_lib_prefix=no
13657  need_version=no
13658  soname_spec='${libname}${release}${shared_ext}$major'
13659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13660  shlibpath_var=LD_LIBRARY_PATH
13661  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13662  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13663  ;;
13664
13665rdos*)
13666  dynamic_linker=no
13667  ;;
13668
13669solaris*)
13670  version_type=linux
13671  need_lib_prefix=no
13672  need_version=no
13673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13674  soname_spec='${libname}${release}${shared_ext}$major'
13675  shlibpath_var=LD_LIBRARY_PATH
13676  shlibpath_overrides_runpath=yes
13677  hardcode_into_libs=yes
13678  # ldd complains unless libraries are executable
13679  postinstall_cmds='chmod +x $lib'
13680  ;;
13681
13682sunos4*)
13683  version_type=sunos
13684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13685  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13686  shlibpath_var=LD_LIBRARY_PATH
13687  shlibpath_overrides_runpath=yes
13688  if test "$with_gnu_ld" = yes; then
13689    need_lib_prefix=no
13690  fi
13691  need_version=yes
13692  ;;
13693
13694sysv4 | sysv4.3*)
13695  version_type=linux
13696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13697  soname_spec='${libname}${release}${shared_ext}$major'
13698  shlibpath_var=LD_LIBRARY_PATH
13699  case $host_vendor in
13700    sni)
13701      shlibpath_overrides_runpath=no
13702      need_lib_prefix=no
13703      export_dynamic_flag_spec='${wl}-Blargedynsym'
13704      runpath_var=LD_RUN_PATH
13705      ;;
13706    siemens)
13707      need_lib_prefix=no
13708      ;;
13709    motorola)
13710      need_lib_prefix=no
13711      need_version=no
13712      shlibpath_overrides_runpath=no
13713      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13714      ;;
13715  esac
13716  ;;
13717
13718sysv4*MP*)
13719  if test -d /usr/nec ;then
13720    version_type=linux
13721    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13722    soname_spec='$libname${shared_ext}.$major'
13723    shlibpath_var=LD_LIBRARY_PATH
13724  fi
13725  ;;
13726
13727sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13728  version_type=freebsd-elf
13729  need_lib_prefix=no
13730  need_version=no
13731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13732  soname_spec='${libname}${release}${shared_ext}$major'
13733  shlibpath_var=LD_LIBRARY_PATH
13734  hardcode_into_libs=yes
13735  if test "$with_gnu_ld" = yes; then
13736    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13737    shlibpath_overrides_runpath=no
13738  else
13739    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13740    shlibpath_overrides_runpath=yes
13741    case $host_os in
13742      sco3.2v5*)
13743        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13744	;;
13745    esac
13746  fi
13747  sys_lib_dlsearch_path_spec='/usr/lib'
13748  ;;
13749
13750uts4*)
13751  version_type=linux
13752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13753  soname_spec='${libname}${release}${shared_ext}$major'
13754  shlibpath_var=LD_LIBRARY_PATH
13755  ;;
13756
13757*)
13758  dynamic_linker=no
13759  ;;
13760esac
13761{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13762$as_echo "$dynamic_linker" >&6; }
13763test "$dynamic_linker" = no && can_build_shared=no
13764
13765if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13766  $as_echo_n "(cached) " >&6
13767else
13768  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13769fi
13770
13771sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13772if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13773  $as_echo_n "(cached) " >&6
13774else
13775  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13776fi
13777
13778sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13779
13780variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13781if test "$GCC" = yes; then
13782  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13783fi
13784
13785{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13786$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13787hardcode_action_CXX=
13788if test -n "$hardcode_libdir_flag_spec_CXX" || \
13789   test -n "$runpath_var_CXX" || \
13790   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13791
13792  # We can hardcode non-existant directories.
13793  if test "$hardcode_direct_CXX" != no &&
13794     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13795     # have to relink, otherwise we might link with an installed library
13796     # when we should be linking with a yet-to-be-installed one
13797     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13798     test "$hardcode_minus_L_CXX" != no; then
13799    # Linking always hardcodes the temporary library directory.
13800    hardcode_action_CXX=relink
13801  else
13802    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13803    hardcode_action_CXX=immediate
13804  fi
13805else
13806  # We cannot hardcode anything, or else we can only hardcode existing
13807  # directories.
13808  hardcode_action_CXX=unsupported
13809fi
13810{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13811$as_echo "$hardcode_action_CXX" >&6; }
13812
13813if test "$hardcode_action_CXX" = relink; then
13814  # Fast installation is not supported
13815  enable_fast_install=no
13816elif test "$shlibpath_overrides_runpath" = yes ||
13817     test "$enable_shared" = no; then
13818  # Fast installation is not necessary
13819  enable_fast_install=needless
13820fi
13821
13822
13823# The else clause should only fire when bootstrapping the
13824# libtool distribution, otherwise you forgot to ship ltmain.sh
13825# with your package, and you will get complaints that there are
13826# no rules to generate ltmain.sh.
13827if test -f "$ltmain"; then
13828  # See if we are running on zsh, and set the options which allow our commands through
13829  # without removal of \ escapes.
13830  if test -n "${ZSH_VERSION+set}" ; then
13831    setopt NO_GLOB_SUBST
13832  fi
13833  # Now quote all the things that may contain metacharacters while being
13834  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13835  # variables and quote the copies for generation of the libtool script.
13836  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13837    SED SHELL STRIP \
13838    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13839    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13840    deplibs_check_method reload_flag reload_cmds need_locks \
13841    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13842    lt_cv_sys_global_symbol_to_c_name_address \
13843    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13844    old_postinstall_cmds old_postuninstall_cmds \
13845    compiler_CXX \
13846    CC_CXX \
13847    LD_CXX \
13848    lt_prog_compiler_wl_CXX \
13849    lt_prog_compiler_pic_CXX \
13850    lt_prog_compiler_static_CXX \
13851    lt_prog_compiler_no_builtin_flag_CXX \
13852    export_dynamic_flag_spec_CXX \
13853    thread_safe_flag_spec_CXX \
13854    whole_archive_flag_spec_CXX \
13855    enable_shared_with_static_runtimes_CXX \
13856    old_archive_cmds_CXX \
13857    old_archive_from_new_cmds_CXX \
13858    predep_objects_CXX \
13859    postdep_objects_CXX \
13860    predeps_CXX \
13861    postdeps_CXX \
13862    compiler_lib_search_path_CXX \
13863    compiler_lib_search_dirs_CXX \
13864    archive_cmds_CXX \
13865    archive_expsym_cmds_CXX \
13866    postinstall_cmds_CXX \
13867    postuninstall_cmds_CXX \
13868    old_archive_from_expsyms_cmds_CXX \
13869    allow_undefined_flag_CXX \
13870    no_undefined_flag_CXX \
13871    export_symbols_cmds_CXX \
13872    hardcode_libdir_flag_spec_CXX \
13873    hardcode_libdir_flag_spec_ld_CXX \
13874    hardcode_libdir_separator_CXX \
13875    hardcode_automatic_CXX \
13876    module_cmds_CXX \
13877    module_expsym_cmds_CXX \
13878    lt_cv_prog_compiler_c_o_CXX \
13879    fix_srcfile_path_CXX \
13880    exclude_expsyms_CXX \
13881    include_expsyms_CXX; do
13882
13883    case $var in
13884    old_archive_cmds_CXX | \
13885    old_archive_from_new_cmds_CXX | \
13886    archive_cmds_CXX | \
13887    archive_expsym_cmds_CXX | \
13888    module_cmds_CXX | \
13889    module_expsym_cmds_CXX | \
13890    old_archive_from_expsyms_cmds_CXX | \
13891    export_symbols_cmds_CXX | \
13892    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13893    postinstall_cmds | postuninstall_cmds | \
13894    old_postinstall_cmds | old_postuninstall_cmds | \
13895    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13896      # Double-quote double-evaled strings.
13897      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13898      ;;
13899    *)
13900      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13901      ;;
13902    esac
13903  done
13904
13905  case $lt_echo in
13906  *'\$0 --fallback-echo"')
13907    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13908    ;;
13909  esac
13910
13911cfgfile="$ofile"
13912
13913  cat <<__EOF__ >> "$cfgfile"
13914# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13915
13916# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13917
13918# Shell to use when invoking shell scripts.
13919SHELL=$lt_SHELL
13920
13921# Whether or not to build shared libraries.
13922build_libtool_libs=$enable_shared
13923
13924# Whether or not to build static libraries.
13925build_old_libs=$enable_static
13926
13927# Whether or not to add -lc for building shared libraries.
13928build_libtool_need_lc=$archive_cmds_need_lc_CXX
13929
13930# Whether or not to disallow shared libs when runtime libs are static
13931allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13932
13933# Whether or not to optimize for fast installation.
13934fast_install=$enable_fast_install
13935
13936# The host system.
13937host_alias=$host_alias
13938host=$host
13939host_os=$host_os
13940
13941# The build system.
13942build_alias=$build_alias
13943build=$build
13944build_os=$build_os
13945
13946# An echo program that does not interpret backslashes.
13947echo=$lt_echo
13948
13949# The archiver.
13950AR=$lt_AR
13951AR_FLAGS=$lt_AR_FLAGS
13952
13953# A C compiler.
13954LTCC=$lt_LTCC
13955
13956# LTCC compiler flags.
13957LTCFLAGS=$lt_LTCFLAGS
13958
13959# A language-specific compiler.
13960CC=$lt_compiler_CXX
13961
13962# Is the compiler the GNU C compiler?
13963with_gcc=$GCC_CXX
13964
13965# An ERE matcher.
13966EGREP=$lt_EGREP
13967
13968# The linker used to build libraries.
13969LD=$lt_LD_CXX
13970
13971# Whether we need hard or soft links.
13972LN_S=$lt_LN_S
13973
13974# A BSD-compatible nm program.
13975NM=$lt_NM
13976
13977# A symbol stripping program
13978STRIP=$lt_STRIP
13979
13980# Used to examine libraries when file_magic_cmd begins "file"
13981MAGIC_CMD=$MAGIC_CMD
13982
13983# Used on cygwin: DLL creation program.
13984DLLTOOL="$DLLTOOL"
13985
13986# Used on cygwin: object dumper.
13987OBJDUMP="$OBJDUMP"
13988
13989# Used on cygwin: assembler.
13990AS="$AS"
13991
13992# The name of the directory that contains temporary libtool files.
13993objdir=$objdir
13994
13995# How to create reloadable object files.
13996reload_flag=$lt_reload_flag
13997reload_cmds=$lt_reload_cmds
13998
13999# How to pass a linker flag through the compiler.
14000wl=$lt_lt_prog_compiler_wl_CXX
14001
14002# Object file suffix (normally "o").
14003objext="$ac_objext"
14004
14005# Old archive suffix (normally "a").
14006libext="$libext"
14007
14008# Shared library suffix (normally ".so").
14009shrext_cmds='$shrext_cmds'
14010
14011# Executable file suffix (normally "").
14012exeext="$exeext"
14013
14014# Additional compiler flags for building library objects.
14015pic_flag=$lt_lt_prog_compiler_pic_CXX
14016pic_mode=$pic_mode
14017
14018# What is the maximum length of a command?
14019max_cmd_len=$lt_cv_sys_max_cmd_len
14020
14021# Does compiler simultaneously support -c and -o options?
14022compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14023
14024# Must we lock files when doing compilation?
14025need_locks=$lt_need_locks
14026
14027# Do we need the lib prefix for modules?
14028need_lib_prefix=$need_lib_prefix
14029
14030# Do we need a version for libraries?
14031need_version=$need_version
14032
14033# Whether dlopen is supported.
14034dlopen_support=$enable_dlopen
14035
14036# Whether dlopen of programs is supported.
14037dlopen_self=$enable_dlopen_self
14038
14039# Whether dlopen of statically linked programs is supported.
14040dlopen_self_static=$enable_dlopen_self_static
14041
14042# Compiler flag to prevent dynamic linking.
14043link_static_flag=$lt_lt_prog_compiler_static_CXX
14044
14045# Compiler flag to turn off builtin functions.
14046no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14047
14048# Compiler flag to allow reflexive dlopens.
14049export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14050
14051# Compiler flag to generate shared objects directly from archives.
14052whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14053
14054# Compiler flag to generate thread-safe objects.
14055thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14056
14057# Library versioning type.
14058version_type=$version_type
14059
14060# Format of library name prefix.
14061libname_spec=$lt_libname_spec
14062
14063# List of archive names.  First name is the real one, the rest are links.
14064# The last name is the one that the linker finds with -lNAME.
14065library_names_spec=$lt_library_names_spec
14066
14067# The coded name of the library, if different from the real name.
14068soname_spec=$lt_soname_spec
14069
14070# Commands used to build and install an old-style archive.
14071RANLIB=$lt_RANLIB
14072old_archive_cmds=$lt_old_archive_cmds_CXX
14073old_postinstall_cmds=$lt_old_postinstall_cmds
14074old_postuninstall_cmds=$lt_old_postuninstall_cmds
14075
14076# Create an old-style archive from a shared archive.
14077old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14078
14079# Create a temporary old-style archive to link instead of a shared archive.
14080old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14081
14082# Commands used to build and install a shared archive.
14083archive_cmds=$lt_archive_cmds_CXX
14084archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14085postinstall_cmds=$lt_postinstall_cmds
14086postuninstall_cmds=$lt_postuninstall_cmds
14087
14088# Commands used to build a loadable module (assumed same as above if empty)
14089module_cmds=$lt_module_cmds_CXX
14090module_expsym_cmds=$lt_module_expsym_cmds_CXX
14091
14092# Commands to strip libraries.
14093old_striplib=$lt_old_striplib
14094striplib=$lt_striplib
14095
14096# Dependencies to place before the objects being linked to create a
14097# shared library.
14098predep_objects=$lt_predep_objects_CXX
14099
14100# Dependencies to place after the objects being linked to create a
14101# shared library.
14102postdep_objects=$lt_postdep_objects_CXX
14103
14104# Dependencies to place before the objects being linked to create a
14105# shared library.
14106predeps=$lt_predeps_CXX
14107
14108# Dependencies to place after the objects being linked to create a
14109# shared library.
14110postdeps=$lt_postdeps_CXX
14111
14112# The directories searched by this compiler when creating a shared
14113# library
14114compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14115
14116# The library search path used internally by the compiler when linking
14117# a shared library.
14118compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14119
14120# Method to check whether dependent libraries are shared objects.
14121deplibs_check_method=$lt_deplibs_check_method
14122
14123# Command to use when deplibs_check_method == file_magic.
14124file_magic_cmd=$lt_file_magic_cmd
14125
14126# Flag that allows shared libraries with undefined symbols to be built.
14127allow_undefined_flag=$lt_allow_undefined_flag_CXX
14128
14129# Flag that forces no undefined symbols.
14130no_undefined_flag=$lt_no_undefined_flag_CXX
14131
14132# Commands used to finish a libtool library installation in a directory.
14133finish_cmds=$lt_finish_cmds
14134
14135# Same as above, but a single script fragment to be evaled but not shown.
14136finish_eval=$lt_finish_eval
14137
14138# Take the output of nm and produce a listing of raw symbols and C names.
14139global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14140
14141# Transform the output of nm in a proper C declaration
14142global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14143
14144# Transform the output of nm in a C name address pair
14145global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14146
14147# This is the shared library runtime path variable.
14148runpath_var=$runpath_var
14149
14150# This is the shared library path variable.
14151shlibpath_var=$shlibpath_var
14152
14153# Is shlibpath searched before the hard-coded library search path?
14154shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14155
14156# How to hardcode a shared library path into an executable.
14157hardcode_action=$hardcode_action_CXX
14158
14159# Whether we should hardcode library paths into libraries.
14160hardcode_into_libs=$hardcode_into_libs
14161
14162# Flag to hardcode \$libdir into a binary during linking.
14163# This must work even if \$libdir does not exist.
14164hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14165
14166# If ld is used when linking, flag to hardcode \$libdir into
14167# a binary during linking. This must work even if \$libdir does
14168# not exist.
14169hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14170
14171# Whether we need a single -rpath flag with a separated argument.
14172hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14173
14174# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14175# resulting binary.
14176hardcode_direct=$hardcode_direct_CXX
14177
14178# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14179# resulting binary.
14180hardcode_minus_L=$hardcode_minus_L_CXX
14181
14182# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14183# the resulting binary.
14184hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14185
14186# Set to yes if building a shared library automatically hardcodes DIR into the library
14187# and all subsequent libraries and executables linked against it.
14188hardcode_automatic=$hardcode_automatic_CXX
14189
14190# Variables whose values should be saved in libtool wrapper scripts and
14191# restored at relink time.
14192variables_saved_for_relink="$variables_saved_for_relink"
14193
14194# Whether libtool must link a program against all its dependency libraries.
14195link_all_deplibs=$link_all_deplibs_CXX
14196
14197# Compile-time system search path for libraries
14198sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14199
14200# Run-time system search path for libraries
14201sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14202
14203# Fix the shell variable \$srcfile for the compiler.
14204fix_srcfile_path=$lt_fix_srcfile_path
14205
14206# Set to yes if exported symbols are required.
14207always_export_symbols=$always_export_symbols_CXX
14208
14209# The commands to list exported symbols.
14210export_symbols_cmds=$lt_export_symbols_cmds_CXX
14211
14212# The commands to extract the exported symbol list from a shared archive.
14213extract_expsyms_cmds=$lt_extract_expsyms_cmds
14214
14215# Symbols that should not be listed in the preloaded symbols.
14216exclude_expsyms=$lt_exclude_expsyms_CXX
14217
14218# Symbols that must always be exported.
14219include_expsyms=$lt_include_expsyms_CXX
14220
14221# ### END LIBTOOL TAG CONFIG: $tagname
14222
14223__EOF__
14224
14225
14226else
14227  # If there is no Makefile yet, we rely on a make rule to execute
14228  # `config.status --recheck' to rerun these tests and create the
14229  # libtool script then.
14230  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14231  if test -f "$ltmain_in"; then
14232    test -f Makefile && make "$ltmain"
14233  fi
14234fi
14235
14236
14237ac_ext=c
14238ac_cpp='$CPP $CPPFLAGS'
14239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14241ac_compiler_gnu=$ac_cv_c_compiler_gnu
14242
14243CC=$lt_save_CC
14244LDCXX=$LD
14245LD=$lt_save_LD
14246GCC=$lt_save_GCC
14247with_gnu_ldcxx=$with_gnu_ld
14248with_gnu_ld=$lt_save_with_gnu_ld
14249lt_cv_path_LDCXX=$lt_cv_path_LD
14250lt_cv_path_LD=$lt_save_path_LD
14251lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14252lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14253
14254	else
14255	  tagname=""
14256	fi
14257	;;
14258
14259      F77)
14260	if test -n "$F77" && test "X$F77" != "Xno"; then
14261
14262ac_ext=f
14263ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14264ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14265ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14266
14267
14268archive_cmds_need_lc_F77=no
14269allow_undefined_flag_F77=
14270always_export_symbols_F77=no
14271archive_expsym_cmds_F77=
14272export_dynamic_flag_spec_F77=
14273hardcode_direct_F77=no
14274hardcode_libdir_flag_spec_F77=
14275hardcode_libdir_flag_spec_ld_F77=
14276hardcode_libdir_separator_F77=
14277hardcode_minus_L_F77=no
14278hardcode_automatic_F77=no
14279module_cmds_F77=
14280module_expsym_cmds_F77=
14281link_all_deplibs_F77=unknown
14282old_archive_cmds_F77=$old_archive_cmds
14283no_undefined_flag_F77=
14284whole_archive_flag_spec_F77=
14285enable_shared_with_static_runtimes_F77=no
14286
14287# Source file extension for f77 test sources.
14288ac_ext=f
14289
14290# Object file extension for compiled f77 test sources.
14291objext=o
14292objext_F77=$objext
14293
14294# Code to be used in simple compile tests
14295lt_simple_compile_test_code="\
14296      subroutine t
14297      return
14298      end
14299"
14300
14301# Code to be used in simple link tests
14302lt_simple_link_test_code="\
14303      program t
14304      end
14305"
14306
14307# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14308
14309# If no C compiler was specified, use CC.
14310LTCC=${LTCC-"$CC"}
14311
14312# If no C compiler flags were specified, use CFLAGS.
14313LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14314
14315# Allow CC to be a program name with arguments.
14316compiler=$CC
14317
14318
14319# save warnings/boilerplate of simple test code
14320ac_outfile=conftest.$ac_objext
14321echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14322eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14323_lt_compiler_boilerplate=`cat conftest.err`
14324$rm conftest*
14325
14326ac_outfile=conftest.$ac_objext
14327echo "$lt_simple_link_test_code" >conftest.$ac_ext
14328eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14329_lt_linker_boilerplate=`cat conftest.err`
14330$rm -r conftest*
14331
14332
14333# Allow CC to be a program name with arguments.
14334lt_save_CC="$CC"
14335CC=${F77-"f77"}
14336compiler=$CC
14337compiler_F77=$CC
14338for cc_temp in $compiler""; do
14339  case $cc_temp in
14340    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14341    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14342    \-*) ;;
14343    *) break;;
14344  esac
14345done
14346cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14347
14348
14349{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14350$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14351{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14352$as_echo "$can_build_shared" >&6; }
14353
14354{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14355$as_echo_n "checking whether to build shared libraries... " >&6; }
14356test "$can_build_shared" = "no" && enable_shared=no
14357
14358# On AIX, shared libraries and static libraries use the same namespace, and
14359# are all built from PIC.
14360case $host_os in
14361aix3*)
14362  test "$enable_shared" = yes && enable_static=no
14363  if test -n "$RANLIB"; then
14364    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14365    postinstall_cmds='$RANLIB $lib'
14366  fi
14367  ;;
14368aix[4-9]*)
14369  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14370    test "$enable_shared" = yes && enable_static=no
14371  fi
14372  ;;
14373esac
14374{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14375$as_echo "$enable_shared" >&6; }
14376
14377{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14378$as_echo_n "checking whether to build static libraries... " >&6; }
14379# Make sure either enable_shared or enable_static is yes.
14380test "$enable_shared" = yes || enable_static=yes
14381{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14382$as_echo "$enable_static" >&6; }
14383
14384GCC_F77="$G77"
14385LD_F77="$LD"
14386
14387lt_prog_compiler_wl_F77=
14388lt_prog_compiler_pic_F77=
14389lt_prog_compiler_static_F77=
14390
14391{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14392$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14393
14394  if test "$GCC" = yes; then
14395    lt_prog_compiler_wl_F77='-Wl,'
14396    lt_prog_compiler_static_F77='-static'
14397
14398    case $host_os in
14399      aix*)
14400      # All AIX code is PIC.
14401      if test "$host_cpu" = ia64; then
14402	# AIX 5 now supports IA64 processor
14403	lt_prog_compiler_static_F77='-Bstatic'
14404      fi
14405      ;;
14406
14407    amigaos*)
14408      # FIXME: we need at least 68020 code to build shared libraries, but
14409      # adding the `-m68020' flag to GCC prevents building anything better,
14410      # like `-m68040'.
14411      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14412      ;;
14413
14414    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14415      # PIC is the default for these OSes.
14416      ;;
14417
14418    mingw* | cygwin* | pw32* | os2*)
14419      # This hack is so that the source file can tell whether it is being
14420      # built for inclusion in a dll (and should export symbols for example).
14421      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14422      # (--disable-auto-import) libraries
14423      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14424      ;;
14425
14426    darwin* | rhapsody*)
14427      # PIC is the default on this platform
14428      # Common symbols not allowed in MH_DYLIB files
14429      lt_prog_compiler_pic_F77='-fno-common'
14430      ;;
14431
14432    interix[3-9]*)
14433      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14434      # Instead, we relocate shared libraries at runtime.
14435      ;;
14436
14437    msdosdjgpp*)
14438      # Just because we use GCC doesn't mean we suddenly get shared libraries
14439      # on systems that don't support them.
14440      lt_prog_compiler_can_build_shared_F77=no
14441      enable_shared=no
14442      ;;
14443
14444    sysv4*MP*)
14445      if test -d /usr/nec; then
14446	lt_prog_compiler_pic_F77=-Kconform_pic
14447      fi
14448      ;;
14449
14450    hpux*)
14451      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14452      # not for PA HP-UX.
14453      case $host_cpu in
14454      hppa*64*|ia64*)
14455	# +Z the default
14456	;;
14457      *)
14458	lt_prog_compiler_pic_F77='-fPIC'
14459	;;
14460      esac
14461      ;;
14462
14463    *)
14464      lt_prog_compiler_pic_F77='-fPIC'
14465      ;;
14466    esac
14467  else
14468    # PORTME Check for flag to pass linker flags through the system compiler.
14469    case $host_os in
14470    aix*)
14471      lt_prog_compiler_wl_F77='-Wl,'
14472      if test "$host_cpu" = ia64; then
14473	# AIX 5 now supports IA64 processor
14474	lt_prog_compiler_static_F77='-Bstatic'
14475      else
14476	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14477      fi
14478      ;;
14479      darwin*)
14480        # PIC is the default on this platform
14481        # Common symbols not allowed in MH_DYLIB files
14482       case $cc_basename in
14483         xlc*)
14484         lt_prog_compiler_pic_F77='-qnocommon'
14485         lt_prog_compiler_wl_F77='-Wl,'
14486         ;;
14487       esac
14488       ;;
14489
14490    mingw* | cygwin* | pw32* | os2*)
14491      # This hack is so that the source file can tell whether it is being
14492      # built for inclusion in a dll (and should export symbols for example).
14493      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14494      ;;
14495
14496    hpux9* | hpux10* | hpux11*)
14497      lt_prog_compiler_wl_F77='-Wl,'
14498      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14499      # not for PA HP-UX.
14500      case $host_cpu in
14501      hppa*64*|ia64*)
14502	# +Z the default
14503	;;
14504      *)
14505	lt_prog_compiler_pic_F77='+Z'
14506	;;
14507      esac
14508      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14509      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14510      ;;
14511
14512    irix5* | irix6* | nonstopux*)
14513      lt_prog_compiler_wl_F77='-Wl,'
14514      # PIC (with -KPIC) is the default.
14515      lt_prog_compiler_static_F77='-non_shared'
14516      ;;
14517
14518    newsos6)
14519      lt_prog_compiler_pic_F77='-KPIC'
14520      lt_prog_compiler_static_F77='-Bstatic'
14521      ;;
14522
14523    linux* | k*bsd*-gnu)
14524      case $cc_basename in
14525      icc* | ecc*)
14526	lt_prog_compiler_wl_F77='-Wl,'
14527	lt_prog_compiler_pic_F77='-KPIC'
14528	lt_prog_compiler_static_F77='-static'
14529        ;;
14530      pgcc* | pgf77* | pgf90* | pgf95*)
14531        # Portland Group compilers (*not* the Pentium gcc compiler,
14532	# which looks to be a dead project)
14533	lt_prog_compiler_wl_F77='-Wl,'
14534	lt_prog_compiler_pic_F77='-fpic'
14535	lt_prog_compiler_static_F77='-Bstatic'
14536        ;;
14537      ccc*)
14538        lt_prog_compiler_wl_F77='-Wl,'
14539        # All Alpha code is PIC.
14540        lt_prog_compiler_static_F77='-non_shared'
14541        ;;
14542      *)
14543        case `$CC -V 2>&1 | sed 5q` in
14544	*Sun\ C*)
14545	  # Sun C 5.9
14546	  lt_prog_compiler_pic_F77='-KPIC'
14547	  lt_prog_compiler_static_F77='-Bstatic'
14548	  lt_prog_compiler_wl_F77='-Wl,'
14549	  ;;
14550	*Sun\ F*)
14551	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14552	  lt_prog_compiler_pic_F77='-KPIC'
14553	  lt_prog_compiler_static_F77='-Bstatic'
14554	  lt_prog_compiler_wl_F77=''
14555	  ;;
14556	esac
14557	;;
14558      esac
14559      ;;
14560
14561    osf3* | osf4* | osf5*)
14562      lt_prog_compiler_wl_F77='-Wl,'
14563      # All OSF/1 code is PIC.
14564      lt_prog_compiler_static_F77='-non_shared'
14565      ;;
14566
14567    rdos*)
14568      lt_prog_compiler_static_F77='-non_shared'
14569      ;;
14570
14571    solaris*)
14572      lt_prog_compiler_pic_F77='-KPIC'
14573      lt_prog_compiler_static_F77='-Bstatic'
14574      case $cc_basename in
14575      f77* | f90* | f95*)
14576	lt_prog_compiler_wl_F77='-Qoption ld ';;
14577      *)
14578	lt_prog_compiler_wl_F77='-Wl,';;
14579      esac
14580      ;;
14581
14582    sunos4*)
14583      lt_prog_compiler_wl_F77='-Qoption ld '
14584      lt_prog_compiler_pic_F77='-PIC'
14585      lt_prog_compiler_static_F77='-Bstatic'
14586      ;;
14587
14588    sysv4 | sysv4.2uw2* | sysv4.3*)
14589      lt_prog_compiler_wl_F77='-Wl,'
14590      lt_prog_compiler_pic_F77='-KPIC'
14591      lt_prog_compiler_static_F77='-Bstatic'
14592      ;;
14593
14594    sysv4*MP*)
14595      if test -d /usr/nec ;then
14596	lt_prog_compiler_pic_F77='-Kconform_pic'
14597	lt_prog_compiler_static_F77='-Bstatic'
14598      fi
14599      ;;
14600
14601    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14602      lt_prog_compiler_wl_F77='-Wl,'
14603      lt_prog_compiler_pic_F77='-KPIC'
14604      lt_prog_compiler_static_F77='-Bstatic'
14605      ;;
14606
14607    unicos*)
14608      lt_prog_compiler_wl_F77='-Wl,'
14609      lt_prog_compiler_can_build_shared_F77=no
14610      ;;
14611
14612    uts4*)
14613      lt_prog_compiler_pic_F77='-pic'
14614      lt_prog_compiler_static_F77='-Bstatic'
14615      ;;
14616
14617    *)
14618      lt_prog_compiler_can_build_shared_F77=no
14619      ;;
14620    esac
14621  fi
14622
14623{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14624$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14625
14626#
14627# Check to make sure the PIC flag actually works.
14628#
14629if test -n "$lt_prog_compiler_pic_F77"; then
14630
14631{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14632$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14633if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14634  $as_echo_n "(cached) " >&6
14635else
14636  lt_cv_prog_compiler_pic_works_F77=no
14637  ac_outfile=conftest.$ac_objext
14638   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14639   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14640   # Insert the option either (1) after the last *FLAGS variable, or
14641   # (2) before a word containing "conftest.", or (3) at the end.
14642   # Note that $ac_compile itself does not contain backslashes and begins
14643   # with a dollar sign (not a hyphen), so the echo should work correctly.
14644   # The option is referenced via a variable to avoid confusing sed.
14645   lt_compile=`echo "$ac_compile" | $SED \
14646   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14647   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14648   -e 's:$: $lt_compiler_flag:'`
14649   (eval echo "\"\$as_me:14649: $lt_compile\"" >&5)
14650   (eval "$lt_compile" 2>conftest.err)
14651   ac_status=$?
14652   cat conftest.err >&5
14653   echo "$as_me:14653: \$? = $ac_status" >&5
14654   if (exit $ac_status) && test -s "$ac_outfile"; then
14655     # The compiler can only warn and ignore the option if not recognized
14656     # So say no if there are warnings other than the usual output.
14657     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14658     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14659     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14660       lt_cv_prog_compiler_pic_works_F77=yes
14661     fi
14662   fi
14663   $rm conftest*
14664
14665fi
14666{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14667$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14668
14669if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14670    case $lt_prog_compiler_pic_F77 in
14671     "" | " "*) ;;
14672     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14673     esac
14674else
14675    lt_prog_compiler_pic_F77=
14676     lt_prog_compiler_can_build_shared_F77=no
14677fi
14678
14679fi
14680case $host_os in
14681  # For platforms which do not support PIC, -DPIC is meaningless:
14682  *djgpp*)
14683    lt_prog_compiler_pic_F77=
14684    ;;
14685  *)
14686    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14687    ;;
14688esac
14689
14690#
14691# Check to make sure the static flag actually works.
14692#
14693wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14694{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14695$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14696if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14697  $as_echo_n "(cached) " >&6
14698else
14699  lt_cv_prog_compiler_static_works_F77=no
14700   save_LDFLAGS="$LDFLAGS"
14701   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14702   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14703   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14704     # The linker can only warn and ignore the option if not recognized
14705     # So say no if there are warnings
14706     if test -s conftest.err; then
14707       # Append any errors to the config.log.
14708       cat conftest.err 1>&5
14709       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14710       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14711       if diff conftest.exp conftest.er2 >/dev/null; then
14712         lt_cv_prog_compiler_static_works_F77=yes
14713       fi
14714     else
14715       lt_cv_prog_compiler_static_works_F77=yes
14716     fi
14717   fi
14718   $rm -r conftest*
14719   LDFLAGS="$save_LDFLAGS"
14720
14721fi
14722{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14723$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14724
14725if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14726    :
14727else
14728    lt_prog_compiler_static_F77=
14729fi
14730
14731
14732{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14733$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14734if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14735  $as_echo_n "(cached) " >&6
14736else
14737  lt_cv_prog_compiler_c_o_F77=no
14738   $rm -r conftest 2>/dev/null
14739   mkdir conftest
14740   cd conftest
14741   mkdir out
14742   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14743
14744   lt_compiler_flag="-o out/conftest2.$ac_objext"
14745   # Insert the option either (1) after the last *FLAGS variable, or
14746   # (2) before a word containing "conftest.", or (3) at the end.
14747   # Note that $ac_compile itself does not contain backslashes and begins
14748   # with a dollar sign (not a hyphen), so the echo should work correctly.
14749   lt_compile=`echo "$ac_compile" | $SED \
14750   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14751   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14752   -e 's:$: $lt_compiler_flag:'`
14753   (eval echo "\"\$as_me:14753: $lt_compile\"" >&5)
14754   (eval "$lt_compile" 2>out/conftest.err)
14755   ac_status=$?
14756   cat out/conftest.err >&5
14757   echo "$as_me:14757: \$? = $ac_status" >&5
14758   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14759   then
14760     # The compiler can only warn and ignore the option if not recognized
14761     # So say no if there are warnings
14762     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14763     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14764     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14765       lt_cv_prog_compiler_c_o_F77=yes
14766     fi
14767   fi
14768   chmod u+w . 2>&5
14769   $rm conftest*
14770   # SGI C++ compiler will create directory out/ii_files/ for
14771   # template instantiation
14772   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14773   $rm out/* && rmdir out
14774   cd ..
14775   rmdir conftest
14776   $rm conftest*
14777
14778fi
14779{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14780$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14781
14782
14783hard_links="nottested"
14784if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14785  # do not overwrite the value of need_locks provided by the user
14786  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14787$as_echo_n "checking if we can lock with hard links... " >&6; }
14788  hard_links=yes
14789  $rm conftest*
14790  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14791  touch conftest.a
14792  ln conftest.a conftest.b 2>&5 || hard_links=no
14793  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14794  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14795$as_echo "$hard_links" >&6; }
14796  if test "$hard_links" = no; then
14797    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14798$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14799    need_locks=warn
14800  fi
14801else
14802  need_locks=no
14803fi
14804
14805{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14806$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14807
14808  runpath_var=
14809  allow_undefined_flag_F77=
14810  enable_shared_with_static_runtimes_F77=no
14811  archive_cmds_F77=
14812  archive_expsym_cmds_F77=
14813  old_archive_From_new_cmds_F77=
14814  old_archive_from_expsyms_cmds_F77=
14815  export_dynamic_flag_spec_F77=
14816  whole_archive_flag_spec_F77=
14817  thread_safe_flag_spec_F77=
14818  hardcode_libdir_flag_spec_F77=
14819  hardcode_libdir_flag_spec_ld_F77=
14820  hardcode_libdir_separator_F77=
14821  hardcode_direct_F77=no
14822  hardcode_minus_L_F77=no
14823  hardcode_shlibpath_var_F77=unsupported
14824  link_all_deplibs_F77=unknown
14825  hardcode_automatic_F77=no
14826  module_cmds_F77=
14827  module_expsym_cmds_F77=
14828  always_export_symbols_F77=no
14829  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14830  # include_expsyms should be a list of space-separated symbols to be *always*
14831  # included in the symbol list
14832  include_expsyms_F77=
14833  # exclude_expsyms can be an extended regexp of symbols to exclude
14834  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14835  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14836  # as well as any symbol that contains `d'.
14837  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14838  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14839  # platforms (ab)use it in PIC code, but their linkers get confused if
14840  # the symbol is explicitly referenced.  Since portable code cannot
14841  # rely on this symbol name, it's probably fine to never include it in
14842  # preloaded symbol tables.
14843  # Exclude shared library initialization/finalization symbols.
14844  extract_expsyms_cmds=
14845  # Just being paranoid about ensuring that cc_basename is set.
14846  for cc_temp in $compiler""; do
14847  case $cc_temp in
14848    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14849    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14850    \-*) ;;
14851    *) break;;
14852  esac
14853done
14854cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14855
14856  case $host_os in
14857  cygwin* | mingw* | pw32*)
14858    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14859    # When not using gcc, we currently assume that we are using
14860    # Microsoft Visual C++.
14861    if test "$GCC" != yes; then
14862      with_gnu_ld=no
14863    fi
14864    ;;
14865  interix*)
14866    # we just hope/assume this is gcc and not c89 (= MSVC++)
14867    with_gnu_ld=yes
14868    ;;
14869  openbsd*)
14870    with_gnu_ld=no
14871    ;;
14872  esac
14873
14874  ld_shlibs_F77=yes
14875  if test "$with_gnu_ld" = yes; then
14876    # If archive_cmds runs LD, not CC, wlarc should be empty
14877    wlarc='${wl}'
14878
14879    # Set some defaults for GNU ld with shared library support. These
14880    # are reset later if shared libraries are not supported. Putting them
14881    # here allows them to be overridden if necessary.
14882    runpath_var=LD_RUN_PATH
14883    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14884    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14885    # ancient GNU ld didn't support --whole-archive et. al.
14886    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14887	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14888      else
14889  	whole_archive_flag_spec_F77=
14890    fi
14891    supports_anon_versioning=no
14892    case `$LD -v 2>/dev/null` in
14893      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14894      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14895      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14896      *\ 2.11.*) ;; # other 2.11 versions
14897      *) supports_anon_versioning=yes ;;
14898    esac
14899
14900    # See if GNU ld supports shared libraries.
14901    case $host_os in
14902    aix[3-9]*)
14903      # On AIX/PPC, the GNU linker is very broken
14904      if test "$host_cpu" != ia64; then
14905	ld_shlibs_F77=no
14906	cat <<EOF 1>&2
14907
14908*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14909*** to be unable to reliably create shared libraries on AIX.
14910*** Therefore, libtool is disabling shared libraries support.  If you
14911*** really care for shared libraries, you may want to modify your PATH
14912*** so that a non-GNU linker is found, and then restart.
14913
14914EOF
14915      fi
14916      ;;
14917
14918    amigaos*)
14919      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)'
14920      hardcode_libdir_flag_spec_F77='-L$libdir'
14921      hardcode_minus_L_F77=yes
14922
14923      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14924      # that the semantics of dynamic libraries on AmigaOS, at least up
14925      # to version 4, is to share data among multiple programs linked
14926      # with the same dynamic library.  Since this doesn't match the
14927      # behavior of shared libraries on other platforms, we can't use
14928      # them.
14929      ld_shlibs_F77=no
14930      ;;
14931
14932    beos*)
14933      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14934	allow_undefined_flag_F77=unsupported
14935	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14936	# support --undefined.  This deserves some investigation.  FIXME
14937	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14938      else
14939	ld_shlibs_F77=no
14940      fi
14941      ;;
14942
14943    cygwin* | mingw* | pw32*)
14944      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14945      # as there is no search path for DLLs.
14946      hardcode_libdir_flag_spec_F77='-L$libdir'
14947      allow_undefined_flag_F77=unsupported
14948      always_export_symbols_F77=no
14949      enable_shared_with_static_runtimes_F77=yes
14950      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14951
14952      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14953        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14954	# If the export-symbols file already is a .def file (1st line
14955	# is EXPORTS), use it as is; otherwise, prepend...
14956	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14957	  cp $export_symbols $output_objdir/$soname.def;
14958	else
14959	  echo EXPORTS > $output_objdir/$soname.def;
14960	  cat $export_symbols >> $output_objdir/$soname.def;
14961	fi~
14962	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14963      else
14964	ld_shlibs_F77=no
14965      fi
14966      ;;
14967
14968    interix[3-9]*)
14969      hardcode_direct_F77=no
14970      hardcode_shlibpath_var_F77=no
14971      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14972      export_dynamic_flag_spec_F77='${wl}-E'
14973      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14974      # Instead, shared libraries are loaded at an image base (0x10000000 by
14975      # default) and relocated if they conflict, which is a slow very memory
14976      # consuming and fragmenting process.  To avoid this, we pick a random,
14977      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14978      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14979      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'
14980      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'
14981      ;;
14982
14983    gnu* | linux* | k*bsd*-gnu)
14984      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14985	tmp_addflag=
14986	case $cc_basename,$host_cpu in
14987	pgcc*)				# Portland Group C compiler
14988	  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'
14989	  tmp_addflag=' $pic_flag'
14990	  ;;
14991	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14992	  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'
14993	  tmp_addflag=' $pic_flag -Mnomain' ;;
14994	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14995	  tmp_addflag=' -i_dynamic' ;;
14996	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14997	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14998	ifc* | ifort*)			# Intel Fortran compiler
14999	  tmp_addflag=' -nofor_main' ;;
15000	esac
15001	case `$CC -V 2>&1 | sed 5q` in
15002	*Sun\ C*)			# Sun C 5.9
15003	  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'
15004	  tmp_sharedflag='-G' ;;
15005	*Sun\ F*)			# Sun Fortran 8.3
15006	  tmp_sharedflag='-G' ;;
15007	*)
15008	  tmp_sharedflag='-shared' ;;
15009	esac
15010	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15011
15012	if test $supports_anon_versioning = yes; then
15013	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15014  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15015  $echo "local: *; };" >> $output_objdir/$libname.ver~
15016	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15017	fi
15018      else
15019	ld_shlibs_F77=no
15020      fi
15021      ;;
15022
15023    netbsd*)
15024      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15025	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15026	wlarc=
15027      else
15028	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15029	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15030      fi
15031      ;;
15032
15033    solaris*)
15034      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15035	ld_shlibs_F77=no
15036	cat <<EOF 1>&2
15037
15038*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15039*** create shared libraries on Solaris systems.  Therefore, libtool
15040*** is disabling shared libraries support.  We urge you to upgrade GNU
15041*** binutils to release 2.9.1 or newer.  Another option is to modify
15042*** your PATH or compiler configuration so that the native linker is
15043*** used, and then restart.
15044
15045EOF
15046      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15047	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15048	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15049      else
15050	ld_shlibs_F77=no
15051      fi
15052      ;;
15053
15054    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15055      case `$LD -v 2>&1` in
15056        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15057	ld_shlibs_F77=no
15058	cat <<_LT_EOF 1>&2
15059
15060*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15061*** reliably create shared libraries on SCO systems.  Therefore, libtool
15062*** is disabling shared libraries support.  We urge you to upgrade GNU
15063*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15064*** your PATH or compiler configuration so that the native linker is
15065*** used, and then restart.
15066
15067_LT_EOF
15068	;;
15069	*)
15070	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15071	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15072	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15073	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15074	  else
15075	    ld_shlibs_F77=no
15076	  fi
15077	;;
15078      esac
15079      ;;
15080
15081    sunos4*)
15082      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15083      wlarc=
15084      hardcode_direct_F77=yes
15085      hardcode_shlibpath_var_F77=no
15086      ;;
15087
15088    *)
15089      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15090	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15091	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15092      else
15093	ld_shlibs_F77=no
15094      fi
15095      ;;
15096    esac
15097
15098    if test "$ld_shlibs_F77" = no; then
15099      runpath_var=
15100      hardcode_libdir_flag_spec_F77=
15101      export_dynamic_flag_spec_F77=
15102      whole_archive_flag_spec_F77=
15103    fi
15104  else
15105    # PORTME fill in a description of your system's linker (not GNU ld)
15106    case $host_os in
15107    aix3*)
15108      allow_undefined_flag_F77=unsupported
15109      always_export_symbols_F77=yes
15110      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'
15111      # Note: this linker hardcodes the directories in LIBPATH if there
15112      # are no directories specified by -L.
15113      hardcode_minus_L_F77=yes
15114      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15115	# Neither direct hardcoding nor static linking is supported with a
15116	# broken collect2.
15117	hardcode_direct_F77=unsupported
15118      fi
15119      ;;
15120
15121    aix[4-9]*)
15122      if test "$host_cpu" = ia64; then
15123	# On IA64, the linker does run time linking by default, so we don't
15124	# have to do anything special.
15125	aix_use_runtimelinking=no
15126	exp_sym_flag='-Bexport'
15127	no_entry_flag=""
15128      else
15129	# If we're using GNU nm, then we don't want the "-C" option.
15130	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15131	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15132	  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'
15133	else
15134	  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'
15135	fi
15136	aix_use_runtimelinking=no
15137
15138	# Test if we are trying to use run time linking or normal
15139	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15140	# need to do runtime linking.
15141	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15142	  for ld_flag in $LDFLAGS; do
15143  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15144  	    aix_use_runtimelinking=yes
15145  	    break
15146  	  fi
15147	  done
15148	  ;;
15149	esac
15150
15151	exp_sym_flag='-bexport'
15152	no_entry_flag='-bnoentry'
15153      fi
15154
15155      # When large executables or shared objects are built, AIX ld can
15156      # have problems creating the table of contents.  If linking a library
15157      # or program results in "error TOC overflow" add -mminimal-toc to
15158      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15159      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15160
15161      archive_cmds_F77=''
15162      hardcode_direct_F77=yes
15163      hardcode_libdir_separator_F77=':'
15164      link_all_deplibs_F77=yes
15165
15166      if test "$GCC" = yes; then
15167	case $host_os in aix4.[012]|aix4.[012].*)
15168	# We only want to do this on AIX 4.2 and lower, the check
15169	# below for broken collect2 doesn't work under 4.3+
15170	  collect2name=`${CC} -print-prog-name=collect2`
15171	  if test -f "$collect2name" && \
15172  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15173	  then
15174  	  # We have reworked collect2
15175  	  :
15176	  else
15177  	  # We have old collect2
15178  	  hardcode_direct_F77=unsupported
15179  	  # It fails to find uninstalled libraries when the uninstalled
15180  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15181  	  # to unsupported forces relinking
15182  	  hardcode_minus_L_F77=yes
15183  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15184  	  hardcode_libdir_separator_F77=
15185	  fi
15186	  ;;
15187	esac
15188	shared_flag='-shared'
15189	if test "$aix_use_runtimelinking" = yes; then
15190	  shared_flag="$shared_flag "'${wl}-G'
15191	fi
15192      else
15193	# not using gcc
15194	if test "$host_cpu" = ia64; then
15195  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15196  	# chokes on -Wl,-G. The following line is correct:
15197	  shared_flag='-G'
15198	else
15199	  if test "$aix_use_runtimelinking" = yes; then
15200	    shared_flag='${wl}-G'
15201	  else
15202	    shared_flag='${wl}-bM:SRE'
15203	  fi
15204	fi
15205      fi
15206
15207      # It seems that -bexpall does not export symbols beginning with
15208      # underscore (_), so it is better to generate a list of symbols to export.
15209      always_export_symbols_F77=yes
15210      if test "$aix_use_runtimelinking" = yes; then
15211	# Warning - without using the other runtime loading flags (-brtl),
15212	# -berok will link without error, but may produce a broken library.
15213	allow_undefined_flag_F77='-berok'
15214       # Determine the default libpath from the value encoded in an empty executable.
15215       cat >conftest.$ac_ext <<_ACEOF
15216      program main
15217
15218      end
15219_ACEOF
15220rm -f conftest.$ac_objext conftest$ac_exeext
15221if { (ac_try="$ac_link"
15222case "(($ac_try" in
15223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224  *) ac_try_echo=$ac_try;;
15225esac
15226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15227$as_echo "$ac_try_echo") >&5
15228  (eval "$ac_link") 2>conftest.er1
15229  ac_status=$?
15230  grep -v '^ *+' conftest.er1 >conftest.err
15231  rm -f conftest.er1
15232  cat conftest.err >&5
15233  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234  (exit $ac_status); } && {
15235	 test -z "$ac_f77_werror_flag" ||
15236	 test ! -s conftest.err
15237       } && test -s conftest$ac_exeext && {
15238	 test "$cross_compiling" = yes ||
15239	 $as_test_x conftest$ac_exeext
15240       }; then
15241
15242lt_aix_libpath_sed='
15243    /Import File Strings/,/^$/ {
15244	/^0/ {
15245	    s/^0  *\(.*\)$/\1/
15246	    p
15247	}
15248    }'
15249aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15250# Check for a 64-bit object if we didn't find anything.
15251if test -z "$aix_libpath"; then
15252  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15253fi
15254else
15255  $as_echo "$as_me: failed program was:" >&5
15256sed 's/^/| /' conftest.$ac_ext >&5
15257
15258
15259fi
15260
15261rm -rf conftest.dSYM
15262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15263      conftest$ac_exeext conftest.$ac_ext
15264if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15265
15266       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15267	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"
15268       else
15269	if test "$host_cpu" = ia64; then
15270	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15271	  allow_undefined_flag_F77="-z nodefs"
15272	  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"
15273	else
15274	 # Determine the default libpath from the value encoded in an empty executable.
15275	 cat >conftest.$ac_ext <<_ACEOF
15276      program main
15277
15278      end
15279_ACEOF
15280rm -f conftest.$ac_objext conftest$ac_exeext
15281if { (ac_try="$ac_link"
15282case "(($ac_try" in
15283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15284  *) ac_try_echo=$ac_try;;
15285esac
15286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15287$as_echo "$ac_try_echo") >&5
15288  (eval "$ac_link") 2>conftest.er1
15289  ac_status=$?
15290  grep -v '^ *+' conftest.er1 >conftest.err
15291  rm -f conftest.er1
15292  cat conftest.err >&5
15293  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294  (exit $ac_status); } && {
15295	 test -z "$ac_f77_werror_flag" ||
15296	 test ! -s conftest.err
15297       } && test -s conftest$ac_exeext && {
15298	 test "$cross_compiling" = yes ||
15299	 $as_test_x conftest$ac_exeext
15300       }; then
15301
15302lt_aix_libpath_sed='
15303    /Import File Strings/,/^$/ {
15304	/^0/ {
15305	    s/^0  *\(.*\)$/\1/
15306	    p
15307	}
15308    }'
15309aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15310# Check for a 64-bit object if we didn't find anything.
15311if test -z "$aix_libpath"; then
15312  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15313fi
15314else
15315  $as_echo "$as_me: failed program was:" >&5
15316sed 's/^/| /' conftest.$ac_ext >&5
15317
15318
15319fi
15320
15321rm -rf conftest.dSYM
15322rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15323      conftest$ac_exeext conftest.$ac_ext
15324if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15325
15326	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15327	  # Warning - without using the other run time loading flags,
15328	  # -berok will link without error, but may produce a broken library.
15329	  no_undefined_flag_F77=' ${wl}-bernotok'
15330	  allow_undefined_flag_F77=' ${wl}-berok'
15331	  # Exported symbols can be pulled into shared objects from archives
15332	  whole_archive_flag_spec_F77='$convenience'
15333	  archive_cmds_need_lc_F77=yes
15334	  # This is similar to how AIX traditionally builds its shared libraries.
15335	  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'
15336	fi
15337      fi
15338      ;;
15339
15340    amigaos*)
15341      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)'
15342      hardcode_libdir_flag_spec_F77='-L$libdir'
15343      hardcode_minus_L_F77=yes
15344      # see comment about different semantics on the GNU ld section
15345      ld_shlibs_F77=no
15346      ;;
15347
15348    bsdi[45]*)
15349      export_dynamic_flag_spec_F77=-rdynamic
15350      ;;
15351
15352    cygwin* | mingw* | pw32*)
15353      # When not using gcc, we currently assume that we are using
15354      # Microsoft Visual C++.
15355      # hardcode_libdir_flag_spec is actually meaningless, as there is
15356      # no search path for DLLs.
15357      hardcode_libdir_flag_spec_F77=' '
15358      allow_undefined_flag_F77=unsupported
15359      # Tell ltmain to make .lib files, not .a files.
15360      libext=lib
15361      # Tell ltmain to make .dll files, not .so files.
15362      shrext_cmds=".dll"
15363      # FIXME: Setting linknames here is a bad hack.
15364      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15365      # The linker will automatically build a .lib file if we build a DLL.
15366      old_archive_From_new_cmds_F77='true'
15367      # FIXME: Should let the user specify the lib program.
15368      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15369      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15370      enable_shared_with_static_runtimes_F77=yes
15371      ;;
15372
15373    darwin* | rhapsody*)
15374      case $host_os in
15375        rhapsody* | darwin1.[012])
15376         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15377         ;;
15378       *) # Darwin 1.3 on
15379         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15380           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15381         else
15382           case ${MACOSX_DEPLOYMENT_TARGET} in
15383             10.[012])
15384               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15385               ;;
15386             10.*)
15387               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15388               ;;
15389           esac
15390         fi
15391         ;;
15392      esac
15393      archive_cmds_need_lc_F77=no
15394      hardcode_direct_F77=no
15395      hardcode_automatic_F77=yes
15396      hardcode_shlibpath_var_F77=unsupported
15397      whole_archive_flag_spec_F77=''
15398      link_all_deplibs_F77=yes
15399    if test "$GCC" = yes ; then
15400    	output_verbose_link_cmd='echo'
15401        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}"
15402        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15403        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}"
15404        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}"
15405    else
15406      case $cc_basename in
15407        xlc*)
15408         output_verbose_link_cmd='echo'
15409         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15410         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15411          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15412         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}'
15413          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}'
15414          ;;
15415       *)
15416         ld_shlibs_F77=no
15417          ;;
15418      esac
15419    fi
15420      ;;
15421
15422    dgux*)
15423      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15424      hardcode_libdir_flag_spec_F77='-L$libdir'
15425      hardcode_shlibpath_var_F77=no
15426      ;;
15427
15428    freebsd1*)
15429      ld_shlibs_F77=no
15430      ;;
15431
15432    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15433    # support.  Future versions do this automatically, but an explicit c++rt0.o
15434    # does not break anything, and helps significantly (at the cost of a little
15435    # extra space).
15436    freebsd2.2*)
15437      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15438      hardcode_libdir_flag_spec_F77='-R$libdir'
15439      hardcode_direct_F77=yes
15440      hardcode_shlibpath_var_F77=no
15441      ;;
15442
15443    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15444    freebsd2*)
15445      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15446      hardcode_direct_F77=yes
15447      hardcode_minus_L_F77=yes
15448      hardcode_shlibpath_var_F77=no
15449      ;;
15450
15451    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15452    freebsd* | dragonfly*)
15453      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15454      hardcode_libdir_flag_spec_F77='-R$libdir'
15455      hardcode_direct_F77=yes
15456      hardcode_shlibpath_var_F77=no
15457      ;;
15458
15459    hpux9*)
15460      if test "$GCC" = yes; then
15461	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'
15462      else
15463	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'
15464      fi
15465      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15466      hardcode_libdir_separator_F77=:
15467      hardcode_direct_F77=yes
15468
15469      # hardcode_minus_L: Not really in the search PATH,
15470      # but as the default location of the library.
15471      hardcode_minus_L_F77=yes
15472      export_dynamic_flag_spec_F77='${wl}-E'
15473      ;;
15474
15475    hpux10*)
15476      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15477	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15478      else
15479	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15480      fi
15481      if test "$with_gnu_ld" = no; then
15482	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15483	hardcode_libdir_separator_F77=:
15484
15485	hardcode_direct_F77=yes
15486	export_dynamic_flag_spec_F77='${wl}-E'
15487
15488	# hardcode_minus_L: Not really in the search PATH,
15489	# but as the default location of the library.
15490	hardcode_minus_L_F77=yes
15491      fi
15492      ;;
15493
15494    hpux11*)
15495      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15496	case $host_cpu in
15497	hppa*64*)
15498	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15499	  ;;
15500	ia64*)
15501	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15502	  ;;
15503	*)
15504	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15505	  ;;
15506	esac
15507      else
15508	case $host_cpu in
15509	hppa*64*)
15510	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15511	  ;;
15512	ia64*)
15513	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15514	  ;;
15515	*)
15516	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15517	  ;;
15518	esac
15519      fi
15520      if test "$with_gnu_ld" = no; then
15521	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15522	hardcode_libdir_separator_F77=:
15523
15524	case $host_cpu in
15525	hppa*64*|ia64*)
15526	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15527	  hardcode_direct_F77=no
15528	  hardcode_shlibpath_var_F77=no
15529	  ;;
15530	*)
15531	  hardcode_direct_F77=yes
15532	  export_dynamic_flag_spec_F77='${wl}-E'
15533
15534	  # hardcode_minus_L: Not really in the search PATH,
15535	  # but as the default location of the library.
15536	  hardcode_minus_L_F77=yes
15537	  ;;
15538	esac
15539      fi
15540      ;;
15541
15542    irix5* | irix6* | nonstopux*)
15543      if test "$GCC" = yes; then
15544	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'
15545      else
15546	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'
15547	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15548      fi
15549      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15550      hardcode_libdir_separator_F77=:
15551      link_all_deplibs_F77=yes
15552      ;;
15553
15554    netbsd*)
15555      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15556	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15557      else
15558	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15559      fi
15560      hardcode_libdir_flag_spec_F77='-R$libdir'
15561      hardcode_direct_F77=yes
15562      hardcode_shlibpath_var_F77=no
15563      ;;
15564
15565    newsos6)
15566      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15567      hardcode_direct_F77=yes
15568      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15569      hardcode_libdir_separator_F77=:
15570      hardcode_shlibpath_var_F77=no
15571      ;;
15572
15573    openbsd*)
15574      if test -f /usr/libexec/ld.so; then
15575	hardcode_direct_F77=yes
15576	hardcode_shlibpath_var_F77=no
15577	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15578	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15579	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15580	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15581	  export_dynamic_flag_spec_F77='${wl}-E'
15582	else
15583	  case $host_os in
15584	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15585	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15586	     hardcode_libdir_flag_spec_F77='-R$libdir'
15587	     ;;
15588	   *)
15589	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15590	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15591	     ;;
15592	  esac
15593        fi
15594      else
15595	ld_shlibs_F77=no
15596      fi
15597      ;;
15598
15599    os2*)
15600      hardcode_libdir_flag_spec_F77='-L$libdir'
15601      hardcode_minus_L_F77=yes
15602      allow_undefined_flag_F77=unsupported
15603      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'
15604      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15605      ;;
15606
15607    osf3*)
15608      if test "$GCC" = yes; then
15609	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15610	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'
15611      else
15612	allow_undefined_flag_F77=' -expect_unresolved \*'
15613	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'
15614      fi
15615      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15616      hardcode_libdir_separator_F77=:
15617      ;;
15618
15619    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15620      if test "$GCC" = yes; then
15621	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15622	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'
15623	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15624      else
15625	allow_undefined_flag_F77=' -expect_unresolved \*'
15626	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'
15627	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~
15628	$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'
15629
15630	# Both c and cxx compiler support -rpath directly
15631	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15632      fi
15633      hardcode_libdir_separator_F77=:
15634      ;;
15635
15636    solaris*)
15637      no_undefined_flag_F77=' -z text'
15638      if test "$GCC" = yes; then
15639	wlarc='${wl}'
15640	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15641	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15642	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15643      else
15644	wlarc=''
15645	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15646	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15647  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15648      fi
15649      hardcode_libdir_flag_spec_F77='-R$libdir'
15650      hardcode_shlibpath_var_F77=no
15651      case $host_os in
15652      solaris2.[0-5] | solaris2.[0-5].*) ;;
15653      *)
15654	# The compiler driver will combine and reorder linker options,
15655	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15656	# but is careful enough not to reorder.
15657 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15658	if test "$GCC" = yes; then
15659	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15660	else
15661	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15662	fi
15663	;;
15664      esac
15665      link_all_deplibs_F77=yes
15666      ;;
15667
15668    sunos4*)
15669      if test "x$host_vendor" = xsequent; then
15670	# Use $CC to link under sequent, because it throws in some extra .o
15671	# files that make .init and .fini sections work.
15672	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15673      else
15674	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15675      fi
15676      hardcode_libdir_flag_spec_F77='-L$libdir'
15677      hardcode_direct_F77=yes
15678      hardcode_minus_L_F77=yes
15679      hardcode_shlibpath_var_F77=no
15680      ;;
15681
15682    sysv4)
15683      case $host_vendor in
15684	sni)
15685	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15686	  hardcode_direct_F77=yes # is this really true???
15687	;;
15688	siemens)
15689	  ## LD is ld it makes a PLAMLIB
15690	  ## CC just makes a GrossModule.
15691	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15692	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15693	  hardcode_direct_F77=no
15694        ;;
15695	motorola)
15696	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15697	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15698	;;
15699      esac
15700      runpath_var='LD_RUN_PATH'
15701      hardcode_shlibpath_var_F77=no
15702      ;;
15703
15704    sysv4.3*)
15705      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15706      hardcode_shlibpath_var_F77=no
15707      export_dynamic_flag_spec_F77='-Bexport'
15708      ;;
15709
15710    sysv4*MP*)
15711      if test -d /usr/nec; then
15712	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15713	hardcode_shlibpath_var_F77=no
15714	runpath_var=LD_RUN_PATH
15715	hardcode_runpath_var=yes
15716	ld_shlibs_F77=yes
15717      fi
15718      ;;
15719
15720    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15721      no_undefined_flag_F77='${wl}-z,text'
15722      archive_cmds_need_lc_F77=no
15723      hardcode_shlibpath_var_F77=no
15724      runpath_var='LD_RUN_PATH'
15725
15726      if test "$GCC" = yes; then
15727	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15728	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15729      else
15730	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15731	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15732      fi
15733      ;;
15734
15735    sysv5* | sco3.2v5* | sco5v6*)
15736      # Note: We can NOT use -z defs as we might desire, because we do not
15737      # link with -lc, and that would cause any symbols used from libc to
15738      # always be unresolved, which means just about no library would
15739      # ever link correctly.  If we're not using GNU ld we use -z text
15740      # though, which does catch some bad symbols but isn't as heavy-handed
15741      # as -z defs.
15742      no_undefined_flag_F77='${wl}-z,text'
15743      allow_undefined_flag_F77='${wl}-z,nodefs'
15744      archive_cmds_need_lc_F77=no
15745      hardcode_shlibpath_var_F77=no
15746      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15747      hardcode_libdir_separator_F77=':'
15748      link_all_deplibs_F77=yes
15749      export_dynamic_flag_spec_F77='${wl}-Bexport'
15750      runpath_var='LD_RUN_PATH'
15751
15752      if test "$GCC" = yes; then
15753	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15754	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15755      else
15756	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15757	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15758      fi
15759      ;;
15760
15761    uts4*)
15762      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15763      hardcode_libdir_flag_spec_F77='-L$libdir'
15764      hardcode_shlibpath_var_F77=no
15765      ;;
15766
15767    *)
15768      ld_shlibs_F77=no
15769      ;;
15770    esac
15771  fi
15772
15773{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15774$as_echo "$ld_shlibs_F77" >&6; }
15775test "$ld_shlibs_F77" = no && can_build_shared=no
15776
15777#
15778# Do we need to explicitly link libc?
15779#
15780case "x$archive_cmds_need_lc_F77" in
15781x|xyes)
15782  # Assume -lc should be added
15783  archive_cmds_need_lc_F77=yes
15784
15785  if test "$enable_shared" = yes && test "$GCC" = yes; then
15786    case $archive_cmds_F77 in
15787    *'~'*)
15788      # FIXME: we may have to deal with multi-command sequences.
15789      ;;
15790    '$CC '*)
15791      # Test whether the compiler implicitly links with -lc since on some
15792      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15793      # to ld, don't add -lc before -lgcc.
15794      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15795$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15796      $rm conftest*
15797      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15798
15799      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15800  (eval $ac_compile) 2>&5
15801  ac_status=$?
15802  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803  (exit $ac_status); } 2>conftest.err; then
15804        soname=conftest
15805        lib=conftest
15806        libobjs=conftest.$ac_objext
15807        deplibs=
15808        wl=$lt_prog_compiler_wl_F77
15809	pic_flag=$lt_prog_compiler_pic_F77
15810        compiler_flags=-v
15811        linker_flags=-v
15812        verstring=
15813        output_objdir=.
15814        libname=conftest
15815        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15816        allow_undefined_flag_F77=
15817        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15818  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15819  ac_status=$?
15820  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821  (exit $ac_status); }
15822        then
15823	  archive_cmds_need_lc_F77=no
15824        else
15825	  archive_cmds_need_lc_F77=yes
15826        fi
15827        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15828      else
15829        cat conftest.err 1>&5
15830      fi
15831      $rm conftest*
15832      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15833$as_echo "$archive_cmds_need_lc_F77" >&6; }
15834      ;;
15835    esac
15836  fi
15837  ;;
15838esac
15839
15840{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15841$as_echo_n "checking dynamic linker characteristics... " >&6; }
15842library_names_spec=
15843libname_spec='lib$name'
15844soname_spec=
15845shrext_cmds=".so"
15846postinstall_cmds=
15847postuninstall_cmds=
15848finish_cmds=
15849finish_eval=
15850shlibpath_var=
15851shlibpath_overrides_runpath=unknown
15852version_type=none
15853dynamic_linker="$host_os ld.so"
15854sys_lib_dlsearch_path_spec="/lib /usr/lib"
15855
15856need_lib_prefix=unknown
15857hardcode_into_libs=no
15858
15859# when you set need_version to no, make sure it does not cause -set_version
15860# flags to be left without arguments
15861need_version=unknown
15862
15863case $host_os in
15864aix3*)
15865  version_type=linux
15866  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15867  shlibpath_var=LIBPATH
15868
15869  # AIX 3 has no versioning support, so we append a major version to the name.
15870  soname_spec='${libname}${release}${shared_ext}$major'
15871  ;;
15872
15873aix[4-9]*)
15874  version_type=linux
15875  need_lib_prefix=no
15876  need_version=no
15877  hardcode_into_libs=yes
15878  if test "$host_cpu" = ia64; then
15879    # AIX 5 supports IA64
15880    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15881    shlibpath_var=LD_LIBRARY_PATH
15882  else
15883    # With GCC up to 2.95.x, collect2 would create an import file
15884    # for dependence libraries.  The import file would start with
15885    # the line `#! .'.  This would cause the generated library to
15886    # depend on `.', always an invalid library.  This was fixed in
15887    # development snapshots of GCC prior to 3.0.
15888    case $host_os in
15889      aix4 | aix4.[01] | aix4.[01].*)
15890      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15891	   echo ' yes '
15892	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15893	:
15894      else
15895	can_build_shared=no
15896      fi
15897      ;;
15898    esac
15899    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15900    # soname into executable. Probably we can add versioning support to
15901    # collect2, so additional links can be useful in future.
15902    if test "$aix_use_runtimelinking" = yes; then
15903      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15904      # instead of lib<name>.a to let people know that these are not
15905      # typical AIX shared libraries.
15906      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15907    else
15908      # We preserve .a as extension for shared libraries through AIX4.2
15909      # and later when we are not doing run time linking.
15910      library_names_spec='${libname}${release}.a $libname.a'
15911      soname_spec='${libname}${release}${shared_ext}$major'
15912    fi
15913    shlibpath_var=LIBPATH
15914  fi
15915  ;;
15916
15917amigaos*)
15918  library_names_spec='$libname.ixlibrary $libname.a'
15919  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15920  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'
15921  ;;
15922
15923beos*)
15924  library_names_spec='${libname}${shared_ext}'
15925  dynamic_linker="$host_os ld.so"
15926  shlibpath_var=LIBRARY_PATH
15927  ;;
15928
15929bsdi[45]*)
15930  version_type=linux
15931  need_version=no
15932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15933  soname_spec='${libname}${release}${shared_ext}$major'
15934  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15935  shlibpath_var=LD_LIBRARY_PATH
15936  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15937  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15938  # the default ld.so.conf also contains /usr/contrib/lib and
15939  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15940  # libtool to hard-code these into programs
15941  ;;
15942
15943cygwin* | mingw* | pw32*)
15944  version_type=windows
15945  shrext_cmds=".dll"
15946  need_version=no
15947  need_lib_prefix=no
15948
15949  case $GCC,$host_os in
15950  yes,cygwin* | yes,mingw* | yes,pw32*)
15951    library_names_spec='$libname.dll.a'
15952    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15953    postinstall_cmds='base_file=`basename \${file}`~
15954      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15955      dldir=$destdir/`dirname \$dlpath`~
15956      test -d \$dldir || mkdir -p \$dldir~
15957      $install_prog $dir/$dlname \$dldir/$dlname~
15958      chmod a+x \$dldir/$dlname'
15959    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15960      dlpath=$dir/\$dldll~
15961       $rm \$dlpath'
15962    shlibpath_overrides_runpath=yes
15963
15964    case $host_os in
15965    cygwin*)
15966      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15967      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15968      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15969      ;;
15970    mingw*)
15971      # MinGW DLLs use traditional 'lib' prefix
15972      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15973      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15974      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15975        # It is most probably a Windows format PATH printed by
15976        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15977        # path with ; separators, and with drive letters. We can handle the
15978        # drive letters (cygwin fileutils understands them), so leave them,
15979        # especially as we might pass files found there to a mingw objdump,
15980        # which wouldn't understand a cygwinified path. Ahh.
15981        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15982      else
15983        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15984      fi
15985      ;;
15986    pw32*)
15987      # pw32 DLLs use 'pw' prefix rather than 'lib'
15988      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15989      ;;
15990    esac
15991    ;;
15992
15993  *)
15994    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15995    ;;
15996  esac
15997  dynamic_linker='Win32 ld.exe'
15998  # FIXME: first we should search . and the directory the executable is in
15999  shlibpath_var=PATH
16000  ;;
16001
16002darwin* | rhapsody*)
16003  dynamic_linker="$host_os dyld"
16004  version_type=darwin
16005  need_lib_prefix=no
16006  need_version=no
16007  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16008  soname_spec='${libname}${release}${major}$shared_ext'
16009  shlibpath_overrides_runpath=yes
16010  shlibpath_var=DYLD_LIBRARY_PATH
16011  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16012
16013  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16014  ;;
16015
16016dgux*)
16017  version_type=linux
16018  need_lib_prefix=no
16019  need_version=no
16020  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16021  soname_spec='${libname}${release}${shared_ext}$major'
16022  shlibpath_var=LD_LIBRARY_PATH
16023  ;;
16024
16025freebsd1*)
16026  dynamic_linker=no
16027  ;;
16028
16029freebsd* | dragonfly*)
16030  # DragonFly does not have aout.  When/if they implement a new
16031  # versioning mechanism, adjust this.
16032  if test -x /usr/bin/objformat; then
16033    objformat=`/usr/bin/objformat`
16034  else
16035    case $host_os in
16036    freebsd[123]*) objformat=aout ;;
16037    *) objformat=elf ;;
16038    esac
16039  fi
16040  version_type=freebsd-$objformat
16041  case $version_type in
16042    freebsd-elf*)
16043      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16044      need_version=no
16045      need_lib_prefix=no
16046      ;;
16047    freebsd-*)
16048      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16049      need_version=yes
16050      ;;
16051  esac
16052  shlibpath_var=LD_LIBRARY_PATH
16053  case $host_os in
16054  freebsd2*)
16055    shlibpath_overrides_runpath=yes
16056    ;;
16057  freebsd3.[01]* | freebsdelf3.[01]*)
16058    shlibpath_overrides_runpath=yes
16059    hardcode_into_libs=yes
16060    ;;
16061  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16062  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16063    shlibpath_overrides_runpath=no
16064    hardcode_into_libs=yes
16065    ;;
16066  *) # from 4.6 on, and DragonFly
16067    shlibpath_overrides_runpath=yes
16068    hardcode_into_libs=yes
16069    ;;
16070  esac
16071  ;;
16072
16073gnu*)
16074  version_type=linux
16075  need_lib_prefix=no
16076  need_version=no
16077  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16078  soname_spec='${libname}${release}${shared_ext}$major'
16079  shlibpath_var=LD_LIBRARY_PATH
16080  hardcode_into_libs=yes
16081  ;;
16082
16083hpux9* | hpux10* | hpux11*)
16084  # Give a soname corresponding to the major version so that dld.sl refuses to
16085  # link against other versions.
16086  version_type=sunos
16087  need_lib_prefix=no
16088  need_version=no
16089  case $host_cpu in
16090  ia64*)
16091    shrext_cmds='.so'
16092    hardcode_into_libs=yes
16093    dynamic_linker="$host_os dld.so"
16094    shlibpath_var=LD_LIBRARY_PATH
16095    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16096    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16097    soname_spec='${libname}${release}${shared_ext}$major'
16098    if test "X$HPUX_IA64_MODE" = X32; then
16099      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16100    else
16101      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16102    fi
16103    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16104    ;;
16105   hppa*64*)
16106     shrext_cmds='.sl'
16107     hardcode_into_libs=yes
16108     dynamic_linker="$host_os dld.sl"
16109     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16110     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16111     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112     soname_spec='${libname}${release}${shared_ext}$major'
16113     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16114     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16115     ;;
16116   *)
16117    shrext_cmds='.sl'
16118    dynamic_linker="$host_os dld.sl"
16119    shlibpath_var=SHLIB_PATH
16120    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16121    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16122    soname_spec='${libname}${release}${shared_ext}$major'
16123    ;;
16124  esac
16125  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16126  postinstall_cmds='chmod 555 $lib'
16127  ;;
16128
16129interix[3-9]*)
16130  version_type=linux
16131  need_lib_prefix=no
16132  need_version=no
16133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16134  soname_spec='${libname}${release}${shared_ext}$major'
16135  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16136  shlibpath_var=LD_LIBRARY_PATH
16137  shlibpath_overrides_runpath=no
16138  hardcode_into_libs=yes
16139  ;;
16140
16141irix5* | irix6* | nonstopux*)
16142  case $host_os in
16143    nonstopux*) version_type=nonstopux ;;
16144    *)
16145	if test "$lt_cv_prog_gnu_ld" = yes; then
16146		version_type=linux
16147	else
16148		version_type=irix
16149	fi ;;
16150  esac
16151  need_lib_prefix=no
16152  need_version=no
16153  soname_spec='${libname}${release}${shared_ext}$major'
16154  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16155  case $host_os in
16156  irix5* | nonstopux*)
16157    libsuff= shlibsuff=
16158    ;;
16159  *)
16160    case $LD in # libtool.m4 will add one of these switches to LD
16161    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16162      libsuff= shlibsuff= libmagic=32-bit;;
16163    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16164      libsuff=32 shlibsuff=N32 libmagic=N32;;
16165    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16166      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16167    *) libsuff= shlibsuff= libmagic=never-match;;
16168    esac
16169    ;;
16170  esac
16171  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16172  shlibpath_overrides_runpath=no
16173  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16174  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16175  hardcode_into_libs=yes
16176  ;;
16177
16178# No shared lib support for Linux oldld, aout, or coff.
16179linux*oldld* | linux*aout* | linux*coff*)
16180  dynamic_linker=no
16181  ;;
16182
16183# This must be Linux ELF.
16184linux* | k*bsd*-gnu)
16185  version_type=linux
16186  need_lib_prefix=no
16187  need_version=no
16188  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16189  soname_spec='${libname}${release}${shared_ext}$major'
16190  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16191  shlibpath_var=LD_LIBRARY_PATH
16192  shlibpath_overrides_runpath=no
16193  # This implies no fast_install, which is unacceptable.
16194  # Some rework will be needed to allow for fast_install
16195  # before this can be enabled.
16196  hardcode_into_libs=yes
16197  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16198  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16199
16200  # Append ld.so.conf contents to the search path
16201  if test -f /etc/ld.so.conf; then
16202    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' ' '`
16203    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16204  fi
16205
16206  # We used to test for /lib/ld.so.1 and disable shared libraries on
16207  # powerpc, because MkLinux only supported shared libraries with the
16208  # GNU dynamic linker.  Since this was broken with cross compilers,
16209  # most powerpc-linux boxes support dynamic linking these days and
16210  # people can always --disable-shared, the test was removed, and we
16211  # assume the GNU/Linux dynamic linker is in use.
16212  dynamic_linker='GNU/Linux ld.so'
16213  ;;
16214
16215netbsd*)
16216  version_type=sunos
16217  need_lib_prefix=no
16218  need_version=no
16219  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16220    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16221    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16222    dynamic_linker='NetBSD (a.out) ld.so'
16223  else
16224    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16225    soname_spec='${libname}${release}${shared_ext}$major'
16226    dynamic_linker='NetBSD ld.elf_so'
16227  fi
16228  shlibpath_var=LD_LIBRARY_PATH
16229  shlibpath_overrides_runpath=yes
16230  hardcode_into_libs=yes
16231  ;;
16232
16233newsos6)
16234  version_type=linux
16235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16236  shlibpath_var=LD_LIBRARY_PATH
16237  shlibpath_overrides_runpath=yes
16238  ;;
16239
16240nto-qnx*)
16241  version_type=linux
16242  need_lib_prefix=no
16243  need_version=no
16244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245  soname_spec='${libname}${release}${shared_ext}$major'
16246  shlibpath_var=LD_LIBRARY_PATH
16247  shlibpath_overrides_runpath=yes
16248  ;;
16249
16250openbsd*)
16251  version_type=sunos
16252  sys_lib_dlsearch_path_spec="/usr/lib"
16253  need_lib_prefix=no
16254  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16255  case $host_os in
16256    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16257    *)                         need_version=no  ;;
16258  esac
16259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16260  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16261  shlibpath_var=LD_LIBRARY_PATH
16262  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16263    case $host_os in
16264      openbsd2.[89] | openbsd2.[89].*)
16265	shlibpath_overrides_runpath=no
16266	;;
16267      *)
16268	shlibpath_overrides_runpath=yes
16269	;;
16270      esac
16271  else
16272    shlibpath_overrides_runpath=yes
16273  fi
16274  ;;
16275
16276os2*)
16277  libname_spec='$name'
16278  shrext_cmds=".dll"
16279  need_lib_prefix=no
16280  library_names_spec='$libname${shared_ext} $libname.a'
16281  dynamic_linker='OS/2 ld.exe'
16282  shlibpath_var=LIBPATH
16283  ;;
16284
16285osf3* | osf4* | osf5*)
16286  version_type=osf
16287  need_lib_prefix=no
16288  need_version=no
16289  soname_spec='${libname}${release}${shared_ext}$major'
16290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16291  shlibpath_var=LD_LIBRARY_PATH
16292  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16293  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16294  ;;
16295
16296rdos*)
16297  dynamic_linker=no
16298  ;;
16299
16300solaris*)
16301  version_type=linux
16302  need_lib_prefix=no
16303  need_version=no
16304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16305  soname_spec='${libname}${release}${shared_ext}$major'
16306  shlibpath_var=LD_LIBRARY_PATH
16307  shlibpath_overrides_runpath=yes
16308  hardcode_into_libs=yes
16309  # ldd complains unless libraries are executable
16310  postinstall_cmds='chmod +x $lib'
16311  ;;
16312
16313sunos4*)
16314  version_type=sunos
16315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16316  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16317  shlibpath_var=LD_LIBRARY_PATH
16318  shlibpath_overrides_runpath=yes
16319  if test "$with_gnu_ld" = yes; then
16320    need_lib_prefix=no
16321  fi
16322  need_version=yes
16323  ;;
16324
16325sysv4 | sysv4.3*)
16326  version_type=linux
16327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16328  soname_spec='${libname}${release}${shared_ext}$major'
16329  shlibpath_var=LD_LIBRARY_PATH
16330  case $host_vendor in
16331    sni)
16332      shlibpath_overrides_runpath=no
16333      need_lib_prefix=no
16334      export_dynamic_flag_spec='${wl}-Blargedynsym'
16335      runpath_var=LD_RUN_PATH
16336      ;;
16337    siemens)
16338      need_lib_prefix=no
16339      ;;
16340    motorola)
16341      need_lib_prefix=no
16342      need_version=no
16343      shlibpath_overrides_runpath=no
16344      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16345      ;;
16346  esac
16347  ;;
16348
16349sysv4*MP*)
16350  if test -d /usr/nec ;then
16351    version_type=linux
16352    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16353    soname_spec='$libname${shared_ext}.$major'
16354    shlibpath_var=LD_LIBRARY_PATH
16355  fi
16356  ;;
16357
16358sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16359  version_type=freebsd-elf
16360  need_lib_prefix=no
16361  need_version=no
16362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16363  soname_spec='${libname}${release}${shared_ext}$major'
16364  shlibpath_var=LD_LIBRARY_PATH
16365  hardcode_into_libs=yes
16366  if test "$with_gnu_ld" = yes; then
16367    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16368    shlibpath_overrides_runpath=no
16369  else
16370    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16371    shlibpath_overrides_runpath=yes
16372    case $host_os in
16373      sco3.2v5*)
16374        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16375	;;
16376    esac
16377  fi
16378  sys_lib_dlsearch_path_spec='/usr/lib'
16379  ;;
16380
16381uts4*)
16382  version_type=linux
16383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16384  soname_spec='${libname}${release}${shared_ext}$major'
16385  shlibpath_var=LD_LIBRARY_PATH
16386  ;;
16387
16388*)
16389  dynamic_linker=no
16390  ;;
16391esac
16392{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16393$as_echo "$dynamic_linker" >&6; }
16394test "$dynamic_linker" = no && can_build_shared=no
16395
16396if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16397  $as_echo_n "(cached) " >&6
16398else
16399  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16400fi
16401
16402sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16403if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16404  $as_echo_n "(cached) " >&6
16405else
16406  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16407fi
16408
16409sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16410
16411variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16412if test "$GCC" = yes; then
16413  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16414fi
16415
16416{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16417$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16418hardcode_action_F77=
16419if test -n "$hardcode_libdir_flag_spec_F77" || \
16420   test -n "$runpath_var_F77" || \
16421   test "X$hardcode_automatic_F77" = "Xyes" ; then
16422
16423  # We can hardcode non-existant directories.
16424  if test "$hardcode_direct_F77" != no &&
16425     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16426     # have to relink, otherwise we might link with an installed library
16427     # when we should be linking with a yet-to-be-installed one
16428     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16429     test "$hardcode_minus_L_F77" != no; then
16430    # Linking always hardcodes the temporary library directory.
16431    hardcode_action_F77=relink
16432  else
16433    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16434    hardcode_action_F77=immediate
16435  fi
16436else
16437  # We cannot hardcode anything, or else we can only hardcode existing
16438  # directories.
16439  hardcode_action_F77=unsupported
16440fi
16441{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16442$as_echo "$hardcode_action_F77" >&6; }
16443
16444if test "$hardcode_action_F77" = relink; then
16445  # Fast installation is not supported
16446  enable_fast_install=no
16447elif test "$shlibpath_overrides_runpath" = yes ||
16448     test "$enable_shared" = no; then
16449  # Fast installation is not necessary
16450  enable_fast_install=needless
16451fi
16452
16453
16454# The else clause should only fire when bootstrapping the
16455# libtool distribution, otherwise you forgot to ship ltmain.sh
16456# with your package, and you will get complaints that there are
16457# no rules to generate ltmain.sh.
16458if test -f "$ltmain"; then
16459  # See if we are running on zsh, and set the options which allow our commands through
16460  # without removal of \ escapes.
16461  if test -n "${ZSH_VERSION+set}" ; then
16462    setopt NO_GLOB_SUBST
16463  fi
16464  # Now quote all the things that may contain metacharacters while being
16465  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16466  # variables and quote the copies for generation of the libtool script.
16467  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16468    SED SHELL STRIP \
16469    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16470    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16471    deplibs_check_method reload_flag reload_cmds need_locks \
16472    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16473    lt_cv_sys_global_symbol_to_c_name_address \
16474    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16475    old_postinstall_cmds old_postuninstall_cmds \
16476    compiler_F77 \
16477    CC_F77 \
16478    LD_F77 \
16479    lt_prog_compiler_wl_F77 \
16480    lt_prog_compiler_pic_F77 \
16481    lt_prog_compiler_static_F77 \
16482    lt_prog_compiler_no_builtin_flag_F77 \
16483    export_dynamic_flag_spec_F77 \
16484    thread_safe_flag_spec_F77 \
16485    whole_archive_flag_spec_F77 \
16486    enable_shared_with_static_runtimes_F77 \
16487    old_archive_cmds_F77 \
16488    old_archive_from_new_cmds_F77 \
16489    predep_objects_F77 \
16490    postdep_objects_F77 \
16491    predeps_F77 \
16492    postdeps_F77 \
16493    compiler_lib_search_path_F77 \
16494    compiler_lib_search_dirs_F77 \
16495    archive_cmds_F77 \
16496    archive_expsym_cmds_F77 \
16497    postinstall_cmds_F77 \
16498    postuninstall_cmds_F77 \
16499    old_archive_from_expsyms_cmds_F77 \
16500    allow_undefined_flag_F77 \
16501    no_undefined_flag_F77 \
16502    export_symbols_cmds_F77 \
16503    hardcode_libdir_flag_spec_F77 \
16504    hardcode_libdir_flag_spec_ld_F77 \
16505    hardcode_libdir_separator_F77 \
16506    hardcode_automatic_F77 \
16507    module_cmds_F77 \
16508    module_expsym_cmds_F77 \
16509    lt_cv_prog_compiler_c_o_F77 \
16510    fix_srcfile_path_F77 \
16511    exclude_expsyms_F77 \
16512    include_expsyms_F77; do
16513
16514    case $var in
16515    old_archive_cmds_F77 | \
16516    old_archive_from_new_cmds_F77 | \
16517    archive_cmds_F77 | \
16518    archive_expsym_cmds_F77 | \
16519    module_cmds_F77 | \
16520    module_expsym_cmds_F77 | \
16521    old_archive_from_expsyms_cmds_F77 | \
16522    export_symbols_cmds_F77 | \
16523    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16524    postinstall_cmds | postuninstall_cmds | \
16525    old_postinstall_cmds | old_postuninstall_cmds | \
16526    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16527      # Double-quote double-evaled strings.
16528      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16529      ;;
16530    *)
16531      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16532      ;;
16533    esac
16534  done
16535
16536  case $lt_echo in
16537  *'\$0 --fallback-echo"')
16538    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16539    ;;
16540  esac
16541
16542cfgfile="$ofile"
16543
16544  cat <<__EOF__ >> "$cfgfile"
16545# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16546
16547# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16548
16549# Shell to use when invoking shell scripts.
16550SHELL=$lt_SHELL
16551
16552# Whether or not to build shared libraries.
16553build_libtool_libs=$enable_shared
16554
16555# Whether or not to build static libraries.
16556build_old_libs=$enable_static
16557
16558# Whether or not to add -lc for building shared libraries.
16559build_libtool_need_lc=$archive_cmds_need_lc_F77
16560
16561# Whether or not to disallow shared libs when runtime libs are static
16562allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16563
16564# Whether or not to optimize for fast installation.
16565fast_install=$enable_fast_install
16566
16567# The host system.
16568host_alias=$host_alias
16569host=$host
16570host_os=$host_os
16571
16572# The build system.
16573build_alias=$build_alias
16574build=$build
16575build_os=$build_os
16576
16577# An echo program that does not interpret backslashes.
16578echo=$lt_echo
16579
16580# The archiver.
16581AR=$lt_AR
16582AR_FLAGS=$lt_AR_FLAGS
16583
16584# A C compiler.
16585LTCC=$lt_LTCC
16586
16587# LTCC compiler flags.
16588LTCFLAGS=$lt_LTCFLAGS
16589
16590# A language-specific compiler.
16591CC=$lt_compiler_F77
16592
16593# Is the compiler the GNU C compiler?
16594with_gcc=$GCC_F77
16595
16596# An ERE matcher.
16597EGREP=$lt_EGREP
16598
16599# The linker used to build libraries.
16600LD=$lt_LD_F77
16601
16602# Whether we need hard or soft links.
16603LN_S=$lt_LN_S
16604
16605# A BSD-compatible nm program.
16606NM=$lt_NM
16607
16608# A symbol stripping program
16609STRIP=$lt_STRIP
16610
16611# Used to examine libraries when file_magic_cmd begins "file"
16612MAGIC_CMD=$MAGIC_CMD
16613
16614# Used on cygwin: DLL creation program.
16615DLLTOOL="$DLLTOOL"
16616
16617# Used on cygwin: object dumper.
16618OBJDUMP="$OBJDUMP"
16619
16620# Used on cygwin: assembler.
16621AS="$AS"
16622
16623# The name of the directory that contains temporary libtool files.
16624objdir=$objdir
16625
16626# How to create reloadable object files.
16627reload_flag=$lt_reload_flag
16628reload_cmds=$lt_reload_cmds
16629
16630# How to pass a linker flag through the compiler.
16631wl=$lt_lt_prog_compiler_wl_F77
16632
16633# Object file suffix (normally "o").
16634objext="$ac_objext"
16635
16636# Old archive suffix (normally "a").
16637libext="$libext"
16638
16639# Shared library suffix (normally ".so").
16640shrext_cmds='$shrext_cmds'
16641
16642# Executable file suffix (normally "").
16643exeext="$exeext"
16644
16645# Additional compiler flags for building library objects.
16646pic_flag=$lt_lt_prog_compiler_pic_F77
16647pic_mode=$pic_mode
16648
16649# What is the maximum length of a command?
16650max_cmd_len=$lt_cv_sys_max_cmd_len
16651
16652# Does compiler simultaneously support -c and -o options?
16653compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16654
16655# Must we lock files when doing compilation?
16656need_locks=$lt_need_locks
16657
16658# Do we need the lib prefix for modules?
16659need_lib_prefix=$need_lib_prefix
16660
16661# Do we need a version for libraries?
16662need_version=$need_version
16663
16664# Whether dlopen is supported.
16665dlopen_support=$enable_dlopen
16666
16667# Whether dlopen of programs is supported.
16668dlopen_self=$enable_dlopen_self
16669
16670# Whether dlopen of statically linked programs is supported.
16671dlopen_self_static=$enable_dlopen_self_static
16672
16673# Compiler flag to prevent dynamic linking.
16674link_static_flag=$lt_lt_prog_compiler_static_F77
16675
16676# Compiler flag to turn off builtin functions.
16677no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16678
16679# Compiler flag to allow reflexive dlopens.
16680export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16681
16682# Compiler flag to generate shared objects directly from archives.
16683whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16684
16685# Compiler flag to generate thread-safe objects.
16686thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16687
16688# Library versioning type.
16689version_type=$version_type
16690
16691# Format of library name prefix.
16692libname_spec=$lt_libname_spec
16693
16694# List of archive names.  First name is the real one, the rest are links.
16695# The last name is the one that the linker finds with -lNAME.
16696library_names_spec=$lt_library_names_spec
16697
16698# The coded name of the library, if different from the real name.
16699soname_spec=$lt_soname_spec
16700
16701# Commands used to build and install an old-style archive.
16702RANLIB=$lt_RANLIB
16703old_archive_cmds=$lt_old_archive_cmds_F77
16704old_postinstall_cmds=$lt_old_postinstall_cmds
16705old_postuninstall_cmds=$lt_old_postuninstall_cmds
16706
16707# Create an old-style archive from a shared archive.
16708old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16709
16710# Create a temporary old-style archive to link instead of a shared archive.
16711old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16712
16713# Commands used to build and install a shared archive.
16714archive_cmds=$lt_archive_cmds_F77
16715archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16716postinstall_cmds=$lt_postinstall_cmds
16717postuninstall_cmds=$lt_postuninstall_cmds
16718
16719# Commands used to build a loadable module (assumed same as above if empty)
16720module_cmds=$lt_module_cmds_F77
16721module_expsym_cmds=$lt_module_expsym_cmds_F77
16722
16723# Commands to strip libraries.
16724old_striplib=$lt_old_striplib
16725striplib=$lt_striplib
16726
16727# Dependencies to place before the objects being linked to create a
16728# shared library.
16729predep_objects=$lt_predep_objects_F77
16730
16731# Dependencies to place after the objects being linked to create a
16732# shared library.
16733postdep_objects=$lt_postdep_objects_F77
16734
16735# Dependencies to place before the objects being linked to create a
16736# shared library.
16737predeps=$lt_predeps_F77
16738
16739# Dependencies to place after the objects being linked to create a
16740# shared library.
16741postdeps=$lt_postdeps_F77
16742
16743# The directories searched by this compiler when creating a shared
16744# library
16745compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16746
16747# The library search path used internally by the compiler when linking
16748# a shared library.
16749compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16750
16751# Method to check whether dependent libraries are shared objects.
16752deplibs_check_method=$lt_deplibs_check_method
16753
16754# Command to use when deplibs_check_method == file_magic.
16755file_magic_cmd=$lt_file_magic_cmd
16756
16757# Flag that allows shared libraries with undefined symbols to be built.
16758allow_undefined_flag=$lt_allow_undefined_flag_F77
16759
16760# Flag that forces no undefined symbols.
16761no_undefined_flag=$lt_no_undefined_flag_F77
16762
16763# Commands used to finish a libtool library installation in a directory.
16764finish_cmds=$lt_finish_cmds
16765
16766# Same as above, but a single script fragment to be evaled but not shown.
16767finish_eval=$lt_finish_eval
16768
16769# Take the output of nm and produce a listing of raw symbols and C names.
16770global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16771
16772# Transform the output of nm in a proper C declaration
16773global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16774
16775# Transform the output of nm in a C name address pair
16776global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16777
16778# This is the shared library runtime path variable.
16779runpath_var=$runpath_var
16780
16781# This is the shared library path variable.
16782shlibpath_var=$shlibpath_var
16783
16784# Is shlibpath searched before the hard-coded library search path?
16785shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16786
16787# How to hardcode a shared library path into an executable.
16788hardcode_action=$hardcode_action_F77
16789
16790# Whether we should hardcode library paths into libraries.
16791hardcode_into_libs=$hardcode_into_libs
16792
16793# Flag to hardcode \$libdir into a binary during linking.
16794# This must work even if \$libdir does not exist.
16795hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16796
16797# If ld is used when linking, flag to hardcode \$libdir into
16798# a binary during linking. This must work even if \$libdir does
16799# not exist.
16800hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16801
16802# Whether we need a single -rpath flag with a separated argument.
16803hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16804
16805# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16806# resulting binary.
16807hardcode_direct=$hardcode_direct_F77
16808
16809# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16810# resulting binary.
16811hardcode_minus_L=$hardcode_minus_L_F77
16812
16813# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16814# the resulting binary.
16815hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16816
16817# Set to yes if building a shared library automatically hardcodes DIR into the library
16818# and all subsequent libraries and executables linked against it.
16819hardcode_automatic=$hardcode_automatic_F77
16820
16821# Variables whose values should be saved in libtool wrapper scripts and
16822# restored at relink time.
16823variables_saved_for_relink="$variables_saved_for_relink"
16824
16825# Whether libtool must link a program against all its dependency libraries.
16826link_all_deplibs=$link_all_deplibs_F77
16827
16828# Compile-time system search path for libraries
16829sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16830
16831# Run-time system search path for libraries
16832sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16833
16834# Fix the shell variable \$srcfile for the compiler.
16835fix_srcfile_path=$lt_fix_srcfile_path
16836
16837# Set to yes if exported symbols are required.
16838always_export_symbols=$always_export_symbols_F77
16839
16840# The commands to list exported symbols.
16841export_symbols_cmds=$lt_export_symbols_cmds_F77
16842
16843# The commands to extract the exported symbol list from a shared archive.
16844extract_expsyms_cmds=$lt_extract_expsyms_cmds
16845
16846# Symbols that should not be listed in the preloaded symbols.
16847exclude_expsyms=$lt_exclude_expsyms_F77
16848
16849# Symbols that must always be exported.
16850include_expsyms=$lt_include_expsyms_F77
16851
16852# ### END LIBTOOL TAG CONFIG: $tagname
16853
16854__EOF__
16855
16856
16857else
16858  # If there is no Makefile yet, we rely on a make rule to execute
16859  # `config.status --recheck' to rerun these tests and create the
16860  # libtool script then.
16861  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16862  if test -f "$ltmain_in"; then
16863    test -f Makefile && make "$ltmain"
16864  fi
16865fi
16866
16867
16868ac_ext=c
16869ac_cpp='$CPP $CPPFLAGS'
16870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16872ac_compiler_gnu=$ac_cv_c_compiler_gnu
16873
16874CC="$lt_save_CC"
16875
16876	else
16877	  tagname=""
16878	fi
16879	;;
16880
16881      GCJ)
16882	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16883
16884
16885# Source file extension for Java test sources.
16886ac_ext=java
16887
16888# Object file extension for compiled Java test sources.
16889objext=o
16890objext_GCJ=$objext
16891
16892# Code to be used in simple compile tests
16893lt_simple_compile_test_code="class foo {}"
16894
16895# Code to be used in simple link tests
16896lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16897
16898# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16899
16900# If no C compiler was specified, use CC.
16901LTCC=${LTCC-"$CC"}
16902
16903# If no C compiler flags were specified, use CFLAGS.
16904LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16905
16906# Allow CC to be a program name with arguments.
16907compiler=$CC
16908
16909
16910# save warnings/boilerplate of simple test code
16911ac_outfile=conftest.$ac_objext
16912echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16913eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16914_lt_compiler_boilerplate=`cat conftest.err`
16915$rm conftest*
16916
16917ac_outfile=conftest.$ac_objext
16918echo "$lt_simple_link_test_code" >conftest.$ac_ext
16919eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16920_lt_linker_boilerplate=`cat conftest.err`
16921$rm -r conftest*
16922
16923
16924# Allow CC to be a program name with arguments.
16925lt_save_CC="$CC"
16926CC=${GCJ-"gcj"}
16927compiler=$CC
16928compiler_GCJ=$CC
16929for cc_temp in $compiler""; do
16930  case $cc_temp in
16931    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16932    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16933    \-*) ;;
16934    *) break;;
16935  esac
16936done
16937cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16938
16939
16940# GCJ did not exist at the time GCC didn't implicitly link libc in.
16941archive_cmds_need_lc_GCJ=no
16942
16943old_archive_cmds_GCJ=$old_archive_cmds
16944
16945
16946lt_prog_compiler_no_builtin_flag_GCJ=
16947
16948if test "$GCC" = yes; then
16949  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16950
16951
16952{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16953$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16954if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16955  $as_echo_n "(cached) " >&6
16956else
16957  lt_cv_prog_compiler_rtti_exceptions=no
16958  ac_outfile=conftest.$ac_objext
16959   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16960   lt_compiler_flag="-fno-rtti -fno-exceptions"
16961   # Insert the option either (1) after the last *FLAGS variable, or
16962   # (2) before a word containing "conftest.", or (3) at the end.
16963   # Note that $ac_compile itself does not contain backslashes and begins
16964   # with a dollar sign (not a hyphen), so the echo should work correctly.
16965   # The option is referenced via a variable to avoid confusing sed.
16966   lt_compile=`echo "$ac_compile" | $SED \
16967   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16968   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16969   -e 's:$: $lt_compiler_flag:'`
16970   (eval echo "\"\$as_me:16970: $lt_compile\"" >&5)
16971   (eval "$lt_compile" 2>conftest.err)
16972   ac_status=$?
16973   cat conftest.err >&5
16974   echo "$as_me:16974: \$? = $ac_status" >&5
16975   if (exit $ac_status) && test -s "$ac_outfile"; then
16976     # The compiler can only warn and ignore the option if not recognized
16977     # So say no if there are warnings other than the usual output.
16978     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16979     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16980     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16981       lt_cv_prog_compiler_rtti_exceptions=yes
16982     fi
16983   fi
16984   $rm conftest*
16985
16986fi
16987{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16988$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16989
16990if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16991    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16992else
16993    :
16994fi
16995
16996fi
16997
16998lt_prog_compiler_wl_GCJ=
16999lt_prog_compiler_pic_GCJ=
17000lt_prog_compiler_static_GCJ=
17001
17002{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17003$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17004
17005  if test "$GCC" = yes; then
17006    lt_prog_compiler_wl_GCJ='-Wl,'
17007    lt_prog_compiler_static_GCJ='-static'
17008
17009    case $host_os in
17010      aix*)
17011      # All AIX code is PIC.
17012      if test "$host_cpu" = ia64; then
17013	# AIX 5 now supports IA64 processor
17014	lt_prog_compiler_static_GCJ='-Bstatic'
17015      fi
17016      ;;
17017
17018    amigaos*)
17019      # FIXME: we need at least 68020 code to build shared libraries, but
17020      # adding the `-m68020' flag to GCC prevents building anything better,
17021      # like `-m68040'.
17022      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17023      ;;
17024
17025    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17026      # PIC is the default for these OSes.
17027      ;;
17028
17029    mingw* | cygwin* | pw32* | os2*)
17030      # This hack is so that the source file can tell whether it is being
17031      # built for inclusion in a dll (and should export symbols for example).
17032      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17033      # (--disable-auto-import) libraries
17034
17035      ;;
17036
17037    darwin* | rhapsody*)
17038      # PIC is the default on this platform
17039      # Common symbols not allowed in MH_DYLIB files
17040      lt_prog_compiler_pic_GCJ='-fno-common'
17041      ;;
17042
17043    interix[3-9]*)
17044      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17045      # Instead, we relocate shared libraries at runtime.
17046      ;;
17047
17048    msdosdjgpp*)
17049      # Just because we use GCC doesn't mean we suddenly get shared libraries
17050      # on systems that don't support them.
17051      lt_prog_compiler_can_build_shared_GCJ=no
17052      enable_shared=no
17053      ;;
17054
17055    sysv4*MP*)
17056      if test -d /usr/nec; then
17057	lt_prog_compiler_pic_GCJ=-Kconform_pic
17058      fi
17059      ;;
17060
17061    hpux*)
17062      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17063      # not for PA HP-UX.
17064      case $host_cpu in
17065      hppa*64*|ia64*)
17066	# +Z the default
17067	;;
17068      *)
17069	lt_prog_compiler_pic_GCJ='-fPIC'
17070	;;
17071      esac
17072      ;;
17073
17074    *)
17075      lt_prog_compiler_pic_GCJ='-fPIC'
17076      ;;
17077    esac
17078  else
17079    # PORTME Check for flag to pass linker flags through the system compiler.
17080    case $host_os in
17081    aix*)
17082      lt_prog_compiler_wl_GCJ='-Wl,'
17083      if test "$host_cpu" = ia64; then
17084	# AIX 5 now supports IA64 processor
17085	lt_prog_compiler_static_GCJ='-Bstatic'
17086      else
17087	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17088      fi
17089      ;;
17090      darwin*)
17091        # PIC is the default on this platform
17092        # Common symbols not allowed in MH_DYLIB files
17093       case $cc_basename in
17094         xlc*)
17095         lt_prog_compiler_pic_GCJ='-qnocommon'
17096         lt_prog_compiler_wl_GCJ='-Wl,'
17097         ;;
17098       esac
17099       ;;
17100
17101    mingw* | cygwin* | pw32* | os2*)
17102      # This hack is so that the source file can tell whether it is being
17103      # built for inclusion in a dll (and should export symbols for example).
17104
17105      ;;
17106
17107    hpux9* | hpux10* | hpux11*)
17108      lt_prog_compiler_wl_GCJ='-Wl,'
17109      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17110      # not for PA HP-UX.
17111      case $host_cpu in
17112      hppa*64*|ia64*)
17113	# +Z the default
17114	;;
17115      *)
17116	lt_prog_compiler_pic_GCJ='+Z'
17117	;;
17118      esac
17119      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17120      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17121      ;;
17122
17123    irix5* | irix6* | nonstopux*)
17124      lt_prog_compiler_wl_GCJ='-Wl,'
17125      # PIC (with -KPIC) is the default.
17126      lt_prog_compiler_static_GCJ='-non_shared'
17127      ;;
17128
17129    newsos6)
17130      lt_prog_compiler_pic_GCJ='-KPIC'
17131      lt_prog_compiler_static_GCJ='-Bstatic'
17132      ;;
17133
17134    linux* | k*bsd*-gnu)
17135      case $cc_basename in
17136      icc* | ecc*)
17137	lt_prog_compiler_wl_GCJ='-Wl,'
17138	lt_prog_compiler_pic_GCJ='-KPIC'
17139	lt_prog_compiler_static_GCJ='-static'
17140        ;;
17141      pgcc* | pgf77* | pgf90* | pgf95*)
17142        # Portland Group compilers (*not* the Pentium gcc compiler,
17143	# which looks to be a dead project)
17144	lt_prog_compiler_wl_GCJ='-Wl,'
17145	lt_prog_compiler_pic_GCJ='-fpic'
17146	lt_prog_compiler_static_GCJ='-Bstatic'
17147        ;;
17148      ccc*)
17149        lt_prog_compiler_wl_GCJ='-Wl,'
17150        # All Alpha code is PIC.
17151        lt_prog_compiler_static_GCJ='-non_shared'
17152        ;;
17153      *)
17154        case `$CC -V 2>&1 | sed 5q` in
17155	*Sun\ C*)
17156	  # Sun C 5.9
17157	  lt_prog_compiler_pic_GCJ='-KPIC'
17158	  lt_prog_compiler_static_GCJ='-Bstatic'
17159	  lt_prog_compiler_wl_GCJ='-Wl,'
17160	  ;;
17161	*Sun\ F*)
17162	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17163	  lt_prog_compiler_pic_GCJ='-KPIC'
17164	  lt_prog_compiler_static_GCJ='-Bstatic'
17165	  lt_prog_compiler_wl_GCJ=''
17166	  ;;
17167	esac
17168	;;
17169      esac
17170      ;;
17171
17172    osf3* | osf4* | osf5*)
17173      lt_prog_compiler_wl_GCJ='-Wl,'
17174      # All OSF/1 code is PIC.
17175      lt_prog_compiler_static_GCJ='-non_shared'
17176      ;;
17177
17178    rdos*)
17179      lt_prog_compiler_static_GCJ='-non_shared'
17180      ;;
17181
17182    solaris*)
17183      lt_prog_compiler_pic_GCJ='-KPIC'
17184      lt_prog_compiler_static_GCJ='-Bstatic'
17185      case $cc_basename in
17186      f77* | f90* | f95*)
17187	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17188      *)
17189	lt_prog_compiler_wl_GCJ='-Wl,';;
17190      esac
17191      ;;
17192
17193    sunos4*)
17194      lt_prog_compiler_wl_GCJ='-Qoption ld '
17195      lt_prog_compiler_pic_GCJ='-PIC'
17196      lt_prog_compiler_static_GCJ='-Bstatic'
17197      ;;
17198
17199    sysv4 | sysv4.2uw2* | sysv4.3*)
17200      lt_prog_compiler_wl_GCJ='-Wl,'
17201      lt_prog_compiler_pic_GCJ='-KPIC'
17202      lt_prog_compiler_static_GCJ='-Bstatic'
17203      ;;
17204
17205    sysv4*MP*)
17206      if test -d /usr/nec ;then
17207	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17208	lt_prog_compiler_static_GCJ='-Bstatic'
17209      fi
17210      ;;
17211
17212    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17213      lt_prog_compiler_wl_GCJ='-Wl,'
17214      lt_prog_compiler_pic_GCJ='-KPIC'
17215      lt_prog_compiler_static_GCJ='-Bstatic'
17216      ;;
17217
17218    unicos*)
17219      lt_prog_compiler_wl_GCJ='-Wl,'
17220      lt_prog_compiler_can_build_shared_GCJ=no
17221      ;;
17222
17223    uts4*)
17224      lt_prog_compiler_pic_GCJ='-pic'
17225      lt_prog_compiler_static_GCJ='-Bstatic'
17226      ;;
17227
17228    *)
17229      lt_prog_compiler_can_build_shared_GCJ=no
17230      ;;
17231    esac
17232  fi
17233
17234{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17235$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17236
17237#
17238# Check to make sure the PIC flag actually works.
17239#
17240if test -n "$lt_prog_compiler_pic_GCJ"; then
17241
17242{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17243$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17244if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17245  $as_echo_n "(cached) " >&6
17246else
17247  lt_cv_prog_compiler_pic_works_GCJ=no
17248  ac_outfile=conftest.$ac_objext
17249   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17250   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17251   # Insert the option either (1) after the last *FLAGS variable, or
17252   # (2) before a word containing "conftest.", or (3) at the end.
17253   # Note that $ac_compile itself does not contain backslashes and begins
17254   # with a dollar sign (not a hyphen), so the echo should work correctly.
17255   # The option is referenced via a variable to avoid confusing sed.
17256   lt_compile=`echo "$ac_compile" | $SED \
17257   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17258   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17259   -e 's:$: $lt_compiler_flag:'`
17260   (eval echo "\"\$as_me:17260: $lt_compile\"" >&5)
17261   (eval "$lt_compile" 2>conftest.err)
17262   ac_status=$?
17263   cat conftest.err >&5
17264   echo "$as_me:17264: \$? = $ac_status" >&5
17265   if (exit $ac_status) && test -s "$ac_outfile"; then
17266     # The compiler can only warn and ignore the option if not recognized
17267     # So say no if there are warnings other than the usual output.
17268     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17269     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17270     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17271       lt_cv_prog_compiler_pic_works_GCJ=yes
17272     fi
17273   fi
17274   $rm conftest*
17275
17276fi
17277{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17278$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17279
17280if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17281    case $lt_prog_compiler_pic_GCJ in
17282     "" | " "*) ;;
17283     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17284     esac
17285else
17286    lt_prog_compiler_pic_GCJ=
17287     lt_prog_compiler_can_build_shared_GCJ=no
17288fi
17289
17290fi
17291case $host_os in
17292  # For platforms which do not support PIC, -DPIC is meaningless:
17293  *djgpp*)
17294    lt_prog_compiler_pic_GCJ=
17295    ;;
17296  *)
17297    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17298    ;;
17299esac
17300
17301#
17302# Check to make sure the static flag actually works.
17303#
17304wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17305{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17306$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17307if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17308  $as_echo_n "(cached) " >&6
17309else
17310  lt_cv_prog_compiler_static_works_GCJ=no
17311   save_LDFLAGS="$LDFLAGS"
17312   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17313   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17314   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17315     # The linker can only warn and ignore the option if not recognized
17316     # So say no if there are warnings
17317     if test -s conftest.err; then
17318       # Append any errors to the config.log.
17319       cat conftest.err 1>&5
17320       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17321       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17322       if diff conftest.exp conftest.er2 >/dev/null; then
17323         lt_cv_prog_compiler_static_works_GCJ=yes
17324       fi
17325     else
17326       lt_cv_prog_compiler_static_works_GCJ=yes
17327     fi
17328   fi
17329   $rm -r conftest*
17330   LDFLAGS="$save_LDFLAGS"
17331
17332fi
17333{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17334$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17335
17336if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17337    :
17338else
17339    lt_prog_compiler_static_GCJ=
17340fi
17341
17342
17343{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17344$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17345if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17346  $as_echo_n "(cached) " >&6
17347else
17348  lt_cv_prog_compiler_c_o_GCJ=no
17349   $rm -r conftest 2>/dev/null
17350   mkdir conftest
17351   cd conftest
17352   mkdir out
17353   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17354
17355   lt_compiler_flag="-o out/conftest2.$ac_objext"
17356   # Insert the option either (1) after the last *FLAGS variable, or
17357   # (2) before a word containing "conftest.", or (3) at the end.
17358   # Note that $ac_compile itself does not contain backslashes and begins
17359   # with a dollar sign (not a hyphen), so the echo should work correctly.
17360   lt_compile=`echo "$ac_compile" | $SED \
17361   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17362   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17363   -e 's:$: $lt_compiler_flag:'`
17364   (eval echo "\"\$as_me:17364: $lt_compile\"" >&5)
17365   (eval "$lt_compile" 2>out/conftest.err)
17366   ac_status=$?
17367   cat out/conftest.err >&5
17368   echo "$as_me:17368: \$? = $ac_status" >&5
17369   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17370   then
17371     # The compiler can only warn and ignore the option if not recognized
17372     # So say no if there are warnings
17373     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17374     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17375     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17376       lt_cv_prog_compiler_c_o_GCJ=yes
17377     fi
17378   fi
17379   chmod u+w . 2>&5
17380   $rm conftest*
17381   # SGI C++ compiler will create directory out/ii_files/ for
17382   # template instantiation
17383   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17384   $rm out/* && rmdir out
17385   cd ..
17386   rmdir conftest
17387   $rm conftest*
17388
17389fi
17390{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17391$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17392
17393
17394hard_links="nottested"
17395if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17396  # do not overwrite the value of need_locks provided by the user
17397  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17398$as_echo_n "checking if we can lock with hard links... " >&6; }
17399  hard_links=yes
17400  $rm conftest*
17401  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17402  touch conftest.a
17403  ln conftest.a conftest.b 2>&5 || hard_links=no
17404  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17405  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17406$as_echo "$hard_links" >&6; }
17407  if test "$hard_links" = no; then
17408    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17409$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17410    need_locks=warn
17411  fi
17412else
17413  need_locks=no
17414fi
17415
17416{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17417$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17418
17419  runpath_var=
17420  allow_undefined_flag_GCJ=
17421  enable_shared_with_static_runtimes_GCJ=no
17422  archive_cmds_GCJ=
17423  archive_expsym_cmds_GCJ=
17424  old_archive_From_new_cmds_GCJ=
17425  old_archive_from_expsyms_cmds_GCJ=
17426  export_dynamic_flag_spec_GCJ=
17427  whole_archive_flag_spec_GCJ=
17428  thread_safe_flag_spec_GCJ=
17429  hardcode_libdir_flag_spec_GCJ=
17430  hardcode_libdir_flag_spec_ld_GCJ=
17431  hardcode_libdir_separator_GCJ=
17432  hardcode_direct_GCJ=no
17433  hardcode_minus_L_GCJ=no
17434  hardcode_shlibpath_var_GCJ=unsupported
17435  link_all_deplibs_GCJ=unknown
17436  hardcode_automatic_GCJ=no
17437  module_cmds_GCJ=
17438  module_expsym_cmds_GCJ=
17439  always_export_symbols_GCJ=no
17440  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17441  # include_expsyms should be a list of space-separated symbols to be *always*
17442  # included in the symbol list
17443  include_expsyms_GCJ=
17444  # exclude_expsyms can be an extended regexp of symbols to exclude
17445  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17446  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17447  # as well as any symbol that contains `d'.
17448  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17449  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17450  # platforms (ab)use it in PIC code, but their linkers get confused if
17451  # the symbol is explicitly referenced.  Since portable code cannot
17452  # rely on this symbol name, it's probably fine to never include it in
17453  # preloaded symbol tables.
17454  # Exclude shared library initialization/finalization symbols.
17455  extract_expsyms_cmds=
17456  # Just being paranoid about ensuring that cc_basename is set.
17457  for cc_temp in $compiler""; do
17458  case $cc_temp in
17459    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17460    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17461    \-*) ;;
17462    *) break;;
17463  esac
17464done
17465cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17466
17467  case $host_os in
17468  cygwin* | mingw* | pw32*)
17469    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17470    # When not using gcc, we currently assume that we are using
17471    # Microsoft Visual C++.
17472    if test "$GCC" != yes; then
17473      with_gnu_ld=no
17474    fi
17475    ;;
17476  interix*)
17477    # we just hope/assume this is gcc and not c89 (= MSVC++)
17478    with_gnu_ld=yes
17479    ;;
17480  openbsd*)
17481    with_gnu_ld=no
17482    ;;
17483  esac
17484
17485  ld_shlibs_GCJ=yes
17486  if test "$with_gnu_ld" = yes; then
17487    # If archive_cmds runs LD, not CC, wlarc should be empty
17488    wlarc='${wl}'
17489
17490    # Set some defaults for GNU ld with shared library support. These
17491    # are reset later if shared libraries are not supported. Putting them
17492    # here allows them to be overridden if necessary.
17493    runpath_var=LD_RUN_PATH
17494    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17495    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17496    # ancient GNU ld didn't support --whole-archive et. al.
17497    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17498	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17499      else
17500  	whole_archive_flag_spec_GCJ=
17501    fi
17502    supports_anon_versioning=no
17503    case `$LD -v 2>/dev/null` in
17504      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17505      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17506      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17507      *\ 2.11.*) ;; # other 2.11 versions
17508      *) supports_anon_versioning=yes ;;
17509    esac
17510
17511    # See if GNU ld supports shared libraries.
17512    case $host_os in
17513    aix[3-9]*)
17514      # On AIX/PPC, the GNU linker is very broken
17515      if test "$host_cpu" != ia64; then
17516	ld_shlibs_GCJ=no
17517	cat <<EOF 1>&2
17518
17519*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17520*** to be unable to reliably create shared libraries on AIX.
17521*** Therefore, libtool is disabling shared libraries support.  If you
17522*** really care for shared libraries, you may want to modify your PATH
17523*** so that a non-GNU linker is found, and then restart.
17524
17525EOF
17526      fi
17527      ;;
17528
17529    amigaos*)
17530      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)'
17531      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17532      hardcode_minus_L_GCJ=yes
17533
17534      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17535      # that the semantics of dynamic libraries on AmigaOS, at least up
17536      # to version 4, is to share data among multiple programs linked
17537      # with the same dynamic library.  Since this doesn't match the
17538      # behavior of shared libraries on other platforms, we can't use
17539      # them.
17540      ld_shlibs_GCJ=no
17541      ;;
17542
17543    beos*)
17544      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17545	allow_undefined_flag_GCJ=unsupported
17546	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17547	# support --undefined.  This deserves some investigation.  FIXME
17548	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17549      else
17550	ld_shlibs_GCJ=no
17551      fi
17552      ;;
17553
17554    cygwin* | mingw* | pw32*)
17555      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17556      # as there is no search path for DLLs.
17557      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17558      allow_undefined_flag_GCJ=unsupported
17559      always_export_symbols_GCJ=no
17560      enable_shared_with_static_runtimes_GCJ=yes
17561      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17562
17563      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17564        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17565	# If the export-symbols file already is a .def file (1st line
17566	# is EXPORTS), use it as is; otherwise, prepend...
17567	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17568	  cp $export_symbols $output_objdir/$soname.def;
17569	else
17570	  echo EXPORTS > $output_objdir/$soname.def;
17571	  cat $export_symbols >> $output_objdir/$soname.def;
17572	fi~
17573	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17574      else
17575	ld_shlibs_GCJ=no
17576      fi
17577      ;;
17578
17579    interix[3-9]*)
17580      hardcode_direct_GCJ=no
17581      hardcode_shlibpath_var_GCJ=no
17582      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17583      export_dynamic_flag_spec_GCJ='${wl}-E'
17584      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17585      # Instead, shared libraries are loaded at an image base (0x10000000 by
17586      # default) and relocated if they conflict, which is a slow very memory
17587      # consuming and fragmenting process.  To avoid this, we pick a random,
17588      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17589      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17590      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'
17591      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'
17592      ;;
17593
17594    gnu* | linux* | k*bsd*-gnu)
17595      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17596	tmp_addflag=
17597	case $cc_basename,$host_cpu in
17598	pgcc*)				# Portland Group C compiler
17599	  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'
17600	  tmp_addflag=' $pic_flag'
17601	  ;;
17602	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17603	  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'
17604	  tmp_addflag=' $pic_flag -Mnomain' ;;
17605	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17606	  tmp_addflag=' -i_dynamic' ;;
17607	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17608	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17609	ifc* | ifort*)			# Intel Fortran compiler
17610	  tmp_addflag=' -nofor_main' ;;
17611	esac
17612	case `$CC -V 2>&1 | sed 5q` in
17613	*Sun\ C*)			# Sun C 5.9
17614	  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'
17615	  tmp_sharedflag='-G' ;;
17616	*Sun\ F*)			# Sun Fortran 8.3
17617	  tmp_sharedflag='-G' ;;
17618	*)
17619	  tmp_sharedflag='-shared' ;;
17620	esac
17621	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17622
17623	if test $supports_anon_versioning = yes; then
17624	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17625  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17626  $echo "local: *; };" >> $output_objdir/$libname.ver~
17627	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17628	fi
17629      else
17630	ld_shlibs_GCJ=no
17631      fi
17632      ;;
17633
17634    netbsd*)
17635      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17636	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17637	wlarc=
17638      else
17639	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17640	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17641      fi
17642      ;;
17643
17644    solaris*)
17645      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17646	ld_shlibs_GCJ=no
17647	cat <<EOF 1>&2
17648
17649*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17650*** create shared libraries on Solaris systems.  Therefore, libtool
17651*** is disabling shared libraries support.  We urge you to upgrade GNU
17652*** binutils to release 2.9.1 or newer.  Another option is to modify
17653*** your PATH or compiler configuration so that the native linker is
17654*** used, and then restart.
17655
17656EOF
17657      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17658	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17659	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17660      else
17661	ld_shlibs_GCJ=no
17662      fi
17663      ;;
17664
17665    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17666      case `$LD -v 2>&1` in
17667        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17668	ld_shlibs_GCJ=no
17669	cat <<_LT_EOF 1>&2
17670
17671*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17672*** reliably create shared libraries on SCO systems.  Therefore, libtool
17673*** is disabling shared libraries support.  We urge you to upgrade GNU
17674*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17675*** your PATH or compiler configuration so that the native linker is
17676*** used, and then restart.
17677
17678_LT_EOF
17679	;;
17680	*)
17681	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17682	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17683	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17684	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17685	  else
17686	    ld_shlibs_GCJ=no
17687	  fi
17688	;;
17689      esac
17690      ;;
17691
17692    sunos4*)
17693      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17694      wlarc=
17695      hardcode_direct_GCJ=yes
17696      hardcode_shlibpath_var_GCJ=no
17697      ;;
17698
17699    *)
17700      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17701	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17702	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17703      else
17704	ld_shlibs_GCJ=no
17705      fi
17706      ;;
17707    esac
17708
17709    if test "$ld_shlibs_GCJ" = no; then
17710      runpath_var=
17711      hardcode_libdir_flag_spec_GCJ=
17712      export_dynamic_flag_spec_GCJ=
17713      whole_archive_flag_spec_GCJ=
17714    fi
17715  else
17716    # PORTME fill in a description of your system's linker (not GNU ld)
17717    case $host_os in
17718    aix3*)
17719      allow_undefined_flag_GCJ=unsupported
17720      always_export_symbols_GCJ=yes
17721      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'
17722      # Note: this linker hardcodes the directories in LIBPATH if there
17723      # are no directories specified by -L.
17724      hardcode_minus_L_GCJ=yes
17725      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17726	# Neither direct hardcoding nor static linking is supported with a
17727	# broken collect2.
17728	hardcode_direct_GCJ=unsupported
17729      fi
17730      ;;
17731
17732    aix[4-9]*)
17733      if test "$host_cpu" = ia64; then
17734	# On IA64, the linker does run time linking by default, so we don't
17735	# have to do anything special.
17736	aix_use_runtimelinking=no
17737	exp_sym_flag='-Bexport'
17738	no_entry_flag=""
17739      else
17740	# If we're using GNU nm, then we don't want the "-C" option.
17741	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17742	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17743	  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'
17744	else
17745	  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'
17746	fi
17747	aix_use_runtimelinking=no
17748
17749	# Test if we are trying to use run time linking or normal
17750	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17751	# need to do runtime linking.
17752	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17753	  for ld_flag in $LDFLAGS; do
17754  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17755  	    aix_use_runtimelinking=yes
17756  	    break
17757  	  fi
17758	  done
17759	  ;;
17760	esac
17761
17762	exp_sym_flag='-bexport'
17763	no_entry_flag='-bnoentry'
17764      fi
17765
17766      # When large executables or shared objects are built, AIX ld can
17767      # have problems creating the table of contents.  If linking a library
17768      # or program results in "error TOC overflow" add -mminimal-toc to
17769      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17770      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17771
17772      archive_cmds_GCJ=''
17773      hardcode_direct_GCJ=yes
17774      hardcode_libdir_separator_GCJ=':'
17775      link_all_deplibs_GCJ=yes
17776
17777      if test "$GCC" = yes; then
17778	case $host_os in aix4.[012]|aix4.[012].*)
17779	# We only want to do this on AIX 4.2 and lower, the check
17780	# below for broken collect2 doesn't work under 4.3+
17781	  collect2name=`${CC} -print-prog-name=collect2`
17782	  if test -f "$collect2name" && \
17783  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17784	  then
17785  	  # We have reworked collect2
17786  	  :
17787	  else
17788  	  # We have old collect2
17789  	  hardcode_direct_GCJ=unsupported
17790  	  # It fails to find uninstalled libraries when the uninstalled
17791  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17792  	  # to unsupported forces relinking
17793  	  hardcode_minus_L_GCJ=yes
17794  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17795  	  hardcode_libdir_separator_GCJ=
17796	  fi
17797	  ;;
17798	esac
17799	shared_flag='-shared'
17800	if test "$aix_use_runtimelinking" = yes; then
17801	  shared_flag="$shared_flag "'${wl}-G'
17802	fi
17803      else
17804	# not using gcc
17805	if test "$host_cpu" = ia64; then
17806  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17807  	# chokes on -Wl,-G. The following line is correct:
17808	  shared_flag='-G'
17809	else
17810	  if test "$aix_use_runtimelinking" = yes; then
17811	    shared_flag='${wl}-G'
17812	  else
17813	    shared_flag='${wl}-bM:SRE'
17814	  fi
17815	fi
17816      fi
17817
17818      # It seems that -bexpall does not export symbols beginning with
17819      # underscore (_), so it is better to generate a list of symbols to export.
17820      always_export_symbols_GCJ=yes
17821      if test "$aix_use_runtimelinking" = yes; then
17822	# Warning - without using the other runtime loading flags (-brtl),
17823	# -berok will link without error, but may produce a broken library.
17824	allow_undefined_flag_GCJ='-berok'
17825       # Determine the default libpath from the value encoded in an empty executable.
17826       cat >conftest.$ac_ext <<_ACEOF
17827/* confdefs.h.  */
17828_ACEOF
17829cat confdefs.h >>conftest.$ac_ext
17830cat >>conftest.$ac_ext <<_ACEOF
17831/* end confdefs.h.  */
17832
17833int
17834main ()
17835{
17836
17837  ;
17838  return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext conftest$ac_exeext
17842if { (ac_try="$ac_link"
17843case "(($ac_try" in
17844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845  *) ac_try_echo=$ac_try;;
17846esac
17847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17848$as_echo "$ac_try_echo") >&5
17849  (eval "$ac_link") 2>conftest.er1
17850  ac_status=$?
17851  grep -v '^ *+' conftest.er1 >conftest.err
17852  rm -f conftest.er1
17853  cat conftest.err >&5
17854  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855  (exit $ac_status); } && {
17856	 test -z "$ac_c_werror_flag" ||
17857	 test ! -s conftest.err
17858       } && test -s conftest$ac_exeext && {
17859	 test "$cross_compiling" = yes ||
17860	 $as_test_x conftest$ac_exeext
17861       }; then
17862
17863lt_aix_libpath_sed='
17864    /Import File Strings/,/^$/ {
17865	/^0/ {
17866	    s/^0  *\(.*\)$/\1/
17867	    p
17868	}
17869    }'
17870aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17871# Check for a 64-bit object if we didn't find anything.
17872if test -z "$aix_libpath"; then
17873  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17874fi
17875else
17876  $as_echo "$as_me: failed program was:" >&5
17877sed 's/^/| /' conftest.$ac_ext >&5
17878
17879
17880fi
17881
17882rm -rf conftest.dSYM
17883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17884      conftest$ac_exeext conftest.$ac_ext
17885if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17886
17887       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17888	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"
17889       else
17890	if test "$host_cpu" = ia64; then
17891	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17892	  allow_undefined_flag_GCJ="-z nodefs"
17893	  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"
17894	else
17895	 # Determine the default libpath from the value encoded in an empty executable.
17896	 cat >conftest.$ac_ext <<_ACEOF
17897/* confdefs.h.  */
17898_ACEOF
17899cat confdefs.h >>conftest.$ac_ext
17900cat >>conftest.$ac_ext <<_ACEOF
17901/* end confdefs.h.  */
17902
17903int
17904main ()
17905{
17906
17907  ;
17908  return 0;
17909}
17910_ACEOF
17911rm -f conftest.$ac_objext conftest$ac_exeext
17912if { (ac_try="$ac_link"
17913case "(($ac_try" in
17914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915  *) ac_try_echo=$ac_try;;
17916esac
17917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17918$as_echo "$ac_try_echo") >&5
17919  (eval "$ac_link") 2>conftest.er1
17920  ac_status=$?
17921  grep -v '^ *+' conftest.er1 >conftest.err
17922  rm -f conftest.er1
17923  cat conftest.err >&5
17924  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925  (exit $ac_status); } && {
17926	 test -z "$ac_c_werror_flag" ||
17927	 test ! -s conftest.err
17928       } && test -s conftest$ac_exeext && {
17929	 test "$cross_compiling" = yes ||
17930	 $as_test_x conftest$ac_exeext
17931       }; then
17932
17933lt_aix_libpath_sed='
17934    /Import File Strings/,/^$/ {
17935	/^0/ {
17936	    s/^0  *\(.*\)$/\1/
17937	    p
17938	}
17939    }'
17940aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17941# Check for a 64-bit object if we didn't find anything.
17942if test -z "$aix_libpath"; then
17943  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17944fi
17945else
17946  $as_echo "$as_me: failed program was:" >&5
17947sed 's/^/| /' conftest.$ac_ext >&5
17948
17949
17950fi
17951
17952rm -rf conftest.dSYM
17953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17954      conftest$ac_exeext conftest.$ac_ext
17955if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17956
17957	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17958	  # Warning - without using the other run time loading flags,
17959	  # -berok will link without error, but may produce a broken library.
17960	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17961	  allow_undefined_flag_GCJ=' ${wl}-berok'
17962	  # Exported symbols can be pulled into shared objects from archives
17963	  whole_archive_flag_spec_GCJ='$convenience'
17964	  archive_cmds_need_lc_GCJ=yes
17965	  # This is similar to how AIX traditionally builds its shared libraries.
17966	  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'
17967	fi
17968      fi
17969      ;;
17970
17971    amigaos*)
17972      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)'
17973      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17974      hardcode_minus_L_GCJ=yes
17975      # see comment about different semantics on the GNU ld section
17976      ld_shlibs_GCJ=no
17977      ;;
17978
17979    bsdi[45]*)
17980      export_dynamic_flag_spec_GCJ=-rdynamic
17981      ;;
17982
17983    cygwin* | mingw* | pw32*)
17984      # When not using gcc, we currently assume that we are using
17985      # Microsoft Visual C++.
17986      # hardcode_libdir_flag_spec is actually meaningless, as there is
17987      # no search path for DLLs.
17988      hardcode_libdir_flag_spec_GCJ=' '
17989      allow_undefined_flag_GCJ=unsupported
17990      # Tell ltmain to make .lib files, not .a files.
17991      libext=lib
17992      # Tell ltmain to make .dll files, not .so files.
17993      shrext_cmds=".dll"
17994      # FIXME: Setting linknames here is a bad hack.
17995      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17996      # The linker will automatically build a .lib file if we build a DLL.
17997      old_archive_From_new_cmds_GCJ='true'
17998      # FIXME: Should let the user specify the lib program.
17999      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18000      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18001      enable_shared_with_static_runtimes_GCJ=yes
18002      ;;
18003
18004    darwin* | rhapsody*)
18005      case $host_os in
18006        rhapsody* | darwin1.[012])
18007         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18008         ;;
18009       *) # Darwin 1.3 on
18010         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18011           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18012         else
18013           case ${MACOSX_DEPLOYMENT_TARGET} in
18014             10.[012])
18015               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18016               ;;
18017             10.*)
18018               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18019               ;;
18020           esac
18021         fi
18022         ;;
18023      esac
18024      archive_cmds_need_lc_GCJ=no
18025      hardcode_direct_GCJ=no
18026      hardcode_automatic_GCJ=yes
18027      hardcode_shlibpath_var_GCJ=unsupported
18028      whole_archive_flag_spec_GCJ=''
18029      link_all_deplibs_GCJ=yes
18030    if test "$GCC" = yes ; then
18031    	output_verbose_link_cmd='echo'
18032        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}"
18033        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18034        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}"
18035        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}"
18036    else
18037      case $cc_basename in
18038        xlc*)
18039         output_verbose_link_cmd='echo'
18040         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18041         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18042          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18043         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}'
18044          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}'
18045          ;;
18046       *)
18047         ld_shlibs_GCJ=no
18048          ;;
18049      esac
18050    fi
18051      ;;
18052
18053    dgux*)
18054      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18055      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18056      hardcode_shlibpath_var_GCJ=no
18057      ;;
18058
18059    freebsd1*)
18060      ld_shlibs_GCJ=no
18061      ;;
18062
18063    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18064    # support.  Future versions do this automatically, but an explicit c++rt0.o
18065    # does not break anything, and helps significantly (at the cost of a little
18066    # extra space).
18067    freebsd2.2*)
18068      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18069      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18070      hardcode_direct_GCJ=yes
18071      hardcode_shlibpath_var_GCJ=no
18072      ;;
18073
18074    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18075    freebsd2*)
18076      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18077      hardcode_direct_GCJ=yes
18078      hardcode_minus_L_GCJ=yes
18079      hardcode_shlibpath_var_GCJ=no
18080      ;;
18081
18082    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18083    freebsd* | dragonfly*)
18084      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18085      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18086      hardcode_direct_GCJ=yes
18087      hardcode_shlibpath_var_GCJ=no
18088      ;;
18089
18090    hpux9*)
18091      if test "$GCC" = yes; then
18092	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'
18093      else
18094	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'
18095      fi
18096      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18097      hardcode_libdir_separator_GCJ=:
18098      hardcode_direct_GCJ=yes
18099
18100      # hardcode_minus_L: Not really in the search PATH,
18101      # but as the default location of the library.
18102      hardcode_minus_L_GCJ=yes
18103      export_dynamic_flag_spec_GCJ='${wl}-E'
18104      ;;
18105
18106    hpux10*)
18107      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18108	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18109      else
18110	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18111      fi
18112      if test "$with_gnu_ld" = no; then
18113	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18114	hardcode_libdir_separator_GCJ=:
18115
18116	hardcode_direct_GCJ=yes
18117	export_dynamic_flag_spec_GCJ='${wl}-E'
18118
18119	# hardcode_minus_L: Not really in the search PATH,
18120	# but as the default location of the library.
18121	hardcode_minus_L_GCJ=yes
18122      fi
18123      ;;
18124
18125    hpux11*)
18126      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18127	case $host_cpu in
18128	hppa*64*)
18129	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18130	  ;;
18131	ia64*)
18132	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18133	  ;;
18134	*)
18135	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18136	  ;;
18137	esac
18138      else
18139	case $host_cpu in
18140	hppa*64*)
18141	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18142	  ;;
18143	ia64*)
18144	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18145	  ;;
18146	*)
18147	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18148	  ;;
18149	esac
18150      fi
18151      if test "$with_gnu_ld" = no; then
18152	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18153	hardcode_libdir_separator_GCJ=:
18154
18155	case $host_cpu in
18156	hppa*64*|ia64*)
18157	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18158	  hardcode_direct_GCJ=no
18159	  hardcode_shlibpath_var_GCJ=no
18160	  ;;
18161	*)
18162	  hardcode_direct_GCJ=yes
18163	  export_dynamic_flag_spec_GCJ='${wl}-E'
18164
18165	  # hardcode_minus_L: Not really in the search PATH,
18166	  # but as the default location of the library.
18167	  hardcode_minus_L_GCJ=yes
18168	  ;;
18169	esac
18170      fi
18171      ;;
18172
18173    irix5* | irix6* | nonstopux*)
18174      if test "$GCC" = yes; then
18175	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'
18176      else
18177	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'
18178	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18179      fi
18180      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18181      hardcode_libdir_separator_GCJ=:
18182      link_all_deplibs_GCJ=yes
18183      ;;
18184
18185    netbsd*)
18186      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18187	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18188      else
18189	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18190      fi
18191      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18192      hardcode_direct_GCJ=yes
18193      hardcode_shlibpath_var_GCJ=no
18194      ;;
18195
18196    newsos6)
18197      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18198      hardcode_direct_GCJ=yes
18199      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18200      hardcode_libdir_separator_GCJ=:
18201      hardcode_shlibpath_var_GCJ=no
18202      ;;
18203
18204    openbsd*)
18205      if test -f /usr/libexec/ld.so; then
18206	hardcode_direct_GCJ=yes
18207	hardcode_shlibpath_var_GCJ=no
18208	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18209	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18210	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18211	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18212	  export_dynamic_flag_spec_GCJ='${wl}-E'
18213	else
18214	  case $host_os in
18215	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18216	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18217	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18218	     ;;
18219	   *)
18220	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18221	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18222	     ;;
18223	  esac
18224        fi
18225      else
18226	ld_shlibs_GCJ=no
18227      fi
18228      ;;
18229
18230    os2*)
18231      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18232      hardcode_minus_L_GCJ=yes
18233      allow_undefined_flag_GCJ=unsupported
18234      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'
18235      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18236      ;;
18237
18238    osf3*)
18239      if test "$GCC" = yes; then
18240	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18241	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'
18242      else
18243	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18244	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'
18245      fi
18246      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18247      hardcode_libdir_separator_GCJ=:
18248      ;;
18249
18250    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18251      if test "$GCC" = yes; then
18252	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18253	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'
18254	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18255      else
18256	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18257	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'
18258	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~
18259	$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'
18260
18261	# Both c and cxx compiler support -rpath directly
18262	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18263      fi
18264      hardcode_libdir_separator_GCJ=:
18265      ;;
18266
18267    solaris*)
18268      no_undefined_flag_GCJ=' -z text'
18269      if test "$GCC" = yes; then
18270	wlarc='${wl}'
18271	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18272	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18273	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18274      else
18275	wlarc=''
18276	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18277	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18278  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18279      fi
18280      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18281      hardcode_shlibpath_var_GCJ=no
18282      case $host_os in
18283      solaris2.[0-5] | solaris2.[0-5].*) ;;
18284      *)
18285	# The compiler driver will combine and reorder linker options,
18286	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18287	# but is careful enough not to reorder.
18288 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18289	if test "$GCC" = yes; then
18290	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18291	else
18292	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18293	fi
18294	;;
18295      esac
18296      link_all_deplibs_GCJ=yes
18297      ;;
18298
18299    sunos4*)
18300      if test "x$host_vendor" = xsequent; then
18301	# Use $CC to link under sequent, because it throws in some extra .o
18302	# files that make .init and .fini sections work.
18303	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18304      else
18305	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18306      fi
18307      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18308      hardcode_direct_GCJ=yes
18309      hardcode_minus_L_GCJ=yes
18310      hardcode_shlibpath_var_GCJ=no
18311      ;;
18312
18313    sysv4)
18314      case $host_vendor in
18315	sni)
18316	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18317	  hardcode_direct_GCJ=yes # is this really true???
18318	;;
18319	siemens)
18320	  ## LD is ld it makes a PLAMLIB
18321	  ## CC just makes a GrossModule.
18322	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18323	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18324	  hardcode_direct_GCJ=no
18325        ;;
18326	motorola)
18327	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18328	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18329	;;
18330      esac
18331      runpath_var='LD_RUN_PATH'
18332      hardcode_shlibpath_var_GCJ=no
18333      ;;
18334
18335    sysv4.3*)
18336      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18337      hardcode_shlibpath_var_GCJ=no
18338      export_dynamic_flag_spec_GCJ='-Bexport'
18339      ;;
18340
18341    sysv4*MP*)
18342      if test -d /usr/nec; then
18343	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18344	hardcode_shlibpath_var_GCJ=no
18345	runpath_var=LD_RUN_PATH
18346	hardcode_runpath_var=yes
18347	ld_shlibs_GCJ=yes
18348      fi
18349      ;;
18350
18351    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18352      no_undefined_flag_GCJ='${wl}-z,text'
18353      archive_cmds_need_lc_GCJ=no
18354      hardcode_shlibpath_var_GCJ=no
18355      runpath_var='LD_RUN_PATH'
18356
18357      if test "$GCC" = yes; then
18358	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18359	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18360      else
18361	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18362	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18363      fi
18364      ;;
18365
18366    sysv5* | sco3.2v5* | sco5v6*)
18367      # Note: We can NOT use -z defs as we might desire, because we do not
18368      # link with -lc, and that would cause any symbols used from libc to
18369      # always be unresolved, which means just about no library would
18370      # ever link correctly.  If we're not using GNU ld we use -z text
18371      # though, which does catch some bad symbols but isn't as heavy-handed
18372      # as -z defs.
18373      no_undefined_flag_GCJ='${wl}-z,text'
18374      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18375      archive_cmds_need_lc_GCJ=no
18376      hardcode_shlibpath_var_GCJ=no
18377      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18378      hardcode_libdir_separator_GCJ=':'
18379      link_all_deplibs_GCJ=yes
18380      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18381      runpath_var='LD_RUN_PATH'
18382
18383      if test "$GCC" = yes; then
18384	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18385	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18386      else
18387	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18388	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18389      fi
18390      ;;
18391
18392    uts4*)
18393      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18394      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18395      hardcode_shlibpath_var_GCJ=no
18396      ;;
18397
18398    *)
18399      ld_shlibs_GCJ=no
18400      ;;
18401    esac
18402  fi
18403
18404{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18405$as_echo "$ld_shlibs_GCJ" >&6; }
18406test "$ld_shlibs_GCJ" = no && can_build_shared=no
18407
18408#
18409# Do we need to explicitly link libc?
18410#
18411case "x$archive_cmds_need_lc_GCJ" in
18412x|xyes)
18413  # Assume -lc should be added
18414  archive_cmds_need_lc_GCJ=yes
18415
18416  if test "$enable_shared" = yes && test "$GCC" = yes; then
18417    case $archive_cmds_GCJ in
18418    *'~'*)
18419      # FIXME: we may have to deal with multi-command sequences.
18420      ;;
18421    '$CC '*)
18422      # Test whether the compiler implicitly links with -lc since on some
18423      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18424      # to ld, don't add -lc before -lgcc.
18425      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18426$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18427      $rm conftest*
18428      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18429
18430      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18431  (eval $ac_compile) 2>&5
18432  ac_status=$?
18433  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434  (exit $ac_status); } 2>conftest.err; then
18435        soname=conftest
18436        lib=conftest
18437        libobjs=conftest.$ac_objext
18438        deplibs=
18439        wl=$lt_prog_compiler_wl_GCJ
18440	pic_flag=$lt_prog_compiler_pic_GCJ
18441        compiler_flags=-v
18442        linker_flags=-v
18443        verstring=
18444        output_objdir=.
18445        libname=conftest
18446        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18447        allow_undefined_flag_GCJ=
18448        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18449  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18450  ac_status=$?
18451  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452  (exit $ac_status); }
18453        then
18454	  archive_cmds_need_lc_GCJ=no
18455        else
18456	  archive_cmds_need_lc_GCJ=yes
18457        fi
18458        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18459      else
18460        cat conftest.err 1>&5
18461      fi
18462      $rm conftest*
18463      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18464$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18465      ;;
18466    esac
18467  fi
18468  ;;
18469esac
18470
18471{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18472$as_echo_n "checking dynamic linker characteristics... " >&6; }
18473library_names_spec=
18474libname_spec='lib$name'
18475soname_spec=
18476shrext_cmds=".so"
18477postinstall_cmds=
18478postuninstall_cmds=
18479finish_cmds=
18480finish_eval=
18481shlibpath_var=
18482shlibpath_overrides_runpath=unknown
18483version_type=none
18484dynamic_linker="$host_os ld.so"
18485sys_lib_dlsearch_path_spec="/lib /usr/lib"
18486
18487need_lib_prefix=unknown
18488hardcode_into_libs=no
18489
18490# when you set need_version to no, make sure it does not cause -set_version
18491# flags to be left without arguments
18492need_version=unknown
18493
18494case $host_os in
18495aix3*)
18496  version_type=linux
18497  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18498  shlibpath_var=LIBPATH
18499
18500  # AIX 3 has no versioning support, so we append a major version to the name.
18501  soname_spec='${libname}${release}${shared_ext}$major'
18502  ;;
18503
18504aix[4-9]*)
18505  version_type=linux
18506  need_lib_prefix=no
18507  need_version=no
18508  hardcode_into_libs=yes
18509  if test "$host_cpu" = ia64; then
18510    # AIX 5 supports IA64
18511    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18512    shlibpath_var=LD_LIBRARY_PATH
18513  else
18514    # With GCC up to 2.95.x, collect2 would create an import file
18515    # for dependence libraries.  The import file would start with
18516    # the line `#! .'.  This would cause the generated library to
18517    # depend on `.', always an invalid library.  This was fixed in
18518    # development snapshots of GCC prior to 3.0.
18519    case $host_os in
18520      aix4 | aix4.[01] | aix4.[01].*)
18521      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18522	   echo ' yes '
18523	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18524	:
18525      else
18526	can_build_shared=no
18527      fi
18528      ;;
18529    esac
18530    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18531    # soname into executable. Probably we can add versioning support to
18532    # collect2, so additional links can be useful in future.
18533    if test "$aix_use_runtimelinking" = yes; then
18534      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18535      # instead of lib<name>.a to let people know that these are not
18536      # typical AIX shared libraries.
18537      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18538    else
18539      # We preserve .a as extension for shared libraries through AIX4.2
18540      # and later when we are not doing run time linking.
18541      library_names_spec='${libname}${release}.a $libname.a'
18542      soname_spec='${libname}${release}${shared_ext}$major'
18543    fi
18544    shlibpath_var=LIBPATH
18545  fi
18546  ;;
18547
18548amigaos*)
18549  library_names_spec='$libname.ixlibrary $libname.a'
18550  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18551  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'
18552  ;;
18553
18554beos*)
18555  library_names_spec='${libname}${shared_ext}'
18556  dynamic_linker="$host_os ld.so"
18557  shlibpath_var=LIBRARY_PATH
18558  ;;
18559
18560bsdi[45]*)
18561  version_type=linux
18562  need_version=no
18563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18564  soname_spec='${libname}${release}${shared_ext}$major'
18565  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18566  shlibpath_var=LD_LIBRARY_PATH
18567  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18568  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18569  # the default ld.so.conf also contains /usr/contrib/lib and
18570  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18571  # libtool to hard-code these into programs
18572  ;;
18573
18574cygwin* | mingw* | pw32*)
18575  version_type=windows
18576  shrext_cmds=".dll"
18577  need_version=no
18578  need_lib_prefix=no
18579
18580  case $GCC,$host_os in
18581  yes,cygwin* | yes,mingw* | yes,pw32*)
18582    library_names_spec='$libname.dll.a'
18583    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18584    postinstall_cmds='base_file=`basename \${file}`~
18585      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18586      dldir=$destdir/`dirname \$dlpath`~
18587      test -d \$dldir || mkdir -p \$dldir~
18588      $install_prog $dir/$dlname \$dldir/$dlname~
18589      chmod a+x \$dldir/$dlname'
18590    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18591      dlpath=$dir/\$dldll~
18592       $rm \$dlpath'
18593    shlibpath_overrides_runpath=yes
18594
18595    case $host_os in
18596    cygwin*)
18597      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18598      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18599      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18600      ;;
18601    mingw*)
18602      # MinGW DLLs use traditional 'lib' prefix
18603      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18604      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18605      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18606        # It is most probably a Windows format PATH printed by
18607        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18608        # path with ; separators, and with drive letters. We can handle the
18609        # drive letters (cygwin fileutils understands them), so leave them,
18610        # especially as we might pass files found there to a mingw objdump,
18611        # which wouldn't understand a cygwinified path. Ahh.
18612        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18613      else
18614        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18615      fi
18616      ;;
18617    pw32*)
18618      # pw32 DLLs use 'pw' prefix rather than 'lib'
18619      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18620      ;;
18621    esac
18622    ;;
18623
18624  *)
18625    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18626    ;;
18627  esac
18628  dynamic_linker='Win32 ld.exe'
18629  # FIXME: first we should search . and the directory the executable is in
18630  shlibpath_var=PATH
18631  ;;
18632
18633darwin* | rhapsody*)
18634  dynamic_linker="$host_os dyld"
18635  version_type=darwin
18636  need_lib_prefix=no
18637  need_version=no
18638  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18639  soname_spec='${libname}${release}${major}$shared_ext'
18640  shlibpath_overrides_runpath=yes
18641  shlibpath_var=DYLD_LIBRARY_PATH
18642  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18643
18644  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18645  ;;
18646
18647dgux*)
18648  version_type=linux
18649  need_lib_prefix=no
18650  need_version=no
18651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18652  soname_spec='${libname}${release}${shared_ext}$major'
18653  shlibpath_var=LD_LIBRARY_PATH
18654  ;;
18655
18656freebsd1*)
18657  dynamic_linker=no
18658  ;;
18659
18660freebsd* | dragonfly*)
18661  # DragonFly does not have aout.  When/if they implement a new
18662  # versioning mechanism, adjust this.
18663  if test -x /usr/bin/objformat; then
18664    objformat=`/usr/bin/objformat`
18665  else
18666    case $host_os in
18667    freebsd[123]*) objformat=aout ;;
18668    *) objformat=elf ;;
18669    esac
18670  fi
18671  version_type=freebsd-$objformat
18672  case $version_type in
18673    freebsd-elf*)
18674      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18675      need_version=no
18676      need_lib_prefix=no
18677      ;;
18678    freebsd-*)
18679      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18680      need_version=yes
18681      ;;
18682  esac
18683  shlibpath_var=LD_LIBRARY_PATH
18684  case $host_os in
18685  freebsd2*)
18686    shlibpath_overrides_runpath=yes
18687    ;;
18688  freebsd3.[01]* | freebsdelf3.[01]*)
18689    shlibpath_overrides_runpath=yes
18690    hardcode_into_libs=yes
18691    ;;
18692  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18693  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18694    shlibpath_overrides_runpath=no
18695    hardcode_into_libs=yes
18696    ;;
18697  *) # from 4.6 on, and DragonFly
18698    shlibpath_overrides_runpath=yes
18699    hardcode_into_libs=yes
18700    ;;
18701  esac
18702  ;;
18703
18704gnu*)
18705  version_type=linux
18706  need_lib_prefix=no
18707  need_version=no
18708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18709  soname_spec='${libname}${release}${shared_ext}$major'
18710  shlibpath_var=LD_LIBRARY_PATH
18711  hardcode_into_libs=yes
18712  ;;
18713
18714hpux9* | hpux10* | hpux11*)
18715  # Give a soname corresponding to the major version so that dld.sl refuses to
18716  # link against other versions.
18717  version_type=sunos
18718  need_lib_prefix=no
18719  need_version=no
18720  case $host_cpu in
18721  ia64*)
18722    shrext_cmds='.so'
18723    hardcode_into_libs=yes
18724    dynamic_linker="$host_os dld.so"
18725    shlibpath_var=LD_LIBRARY_PATH
18726    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18727    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18728    soname_spec='${libname}${release}${shared_ext}$major'
18729    if test "X$HPUX_IA64_MODE" = X32; then
18730      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18731    else
18732      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18733    fi
18734    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18735    ;;
18736   hppa*64*)
18737     shrext_cmds='.sl'
18738     hardcode_into_libs=yes
18739     dynamic_linker="$host_os dld.sl"
18740     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18741     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18743     soname_spec='${libname}${release}${shared_ext}$major'
18744     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18745     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18746     ;;
18747   *)
18748    shrext_cmds='.sl'
18749    dynamic_linker="$host_os dld.sl"
18750    shlibpath_var=SHLIB_PATH
18751    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18752    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18753    soname_spec='${libname}${release}${shared_ext}$major'
18754    ;;
18755  esac
18756  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18757  postinstall_cmds='chmod 555 $lib'
18758  ;;
18759
18760interix[3-9]*)
18761  version_type=linux
18762  need_lib_prefix=no
18763  need_version=no
18764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18765  soname_spec='${libname}${release}${shared_ext}$major'
18766  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18767  shlibpath_var=LD_LIBRARY_PATH
18768  shlibpath_overrides_runpath=no
18769  hardcode_into_libs=yes
18770  ;;
18771
18772irix5* | irix6* | nonstopux*)
18773  case $host_os in
18774    nonstopux*) version_type=nonstopux ;;
18775    *)
18776	if test "$lt_cv_prog_gnu_ld" = yes; then
18777		version_type=linux
18778	else
18779		version_type=irix
18780	fi ;;
18781  esac
18782  need_lib_prefix=no
18783  need_version=no
18784  soname_spec='${libname}${release}${shared_ext}$major'
18785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18786  case $host_os in
18787  irix5* | nonstopux*)
18788    libsuff= shlibsuff=
18789    ;;
18790  *)
18791    case $LD in # libtool.m4 will add one of these switches to LD
18792    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18793      libsuff= shlibsuff= libmagic=32-bit;;
18794    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18795      libsuff=32 shlibsuff=N32 libmagic=N32;;
18796    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18797      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18798    *) libsuff= shlibsuff= libmagic=never-match;;
18799    esac
18800    ;;
18801  esac
18802  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18803  shlibpath_overrides_runpath=no
18804  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18805  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18806  hardcode_into_libs=yes
18807  ;;
18808
18809# No shared lib support for Linux oldld, aout, or coff.
18810linux*oldld* | linux*aout* | linux*coff*)
18811  dynamic_linker=no
18812  ;;
18813
18814# This must be Linux ELF.
18815linux* | k*bsd*-gnu)
18816  version_type=linux
18817  need_lib_prefix=no
18818  need_version=no
18819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18820  soname_spec='${libname}${release}${shared_ext}$major'
18821  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18822  shlibpath_var=LD_LIBRARY_PATH
18823  shlibpath_overrides_runpath=no
18824  # This implies no fast_install, which is unacceptable.
18825  # Some rework will be needed to allow for fast_install
18826  # before this can be enabled.
18827  hardcode_into_libs=yes
18828  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18829  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18830
18831  # Append ld.so.conf contents to the search path
18832  if test -f /etc/ld.so.conf; then
18833    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' ' '`
18834    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18835  fi
18836
18837  # We used to test for /lib/ld.so.1 and disable shared libraries on
18838  # powerpc, because MkLinux only supported shared libraries with the
18839  # GNU dynamic linker.  Since this was broken with cross compilers,
18840  # most powerpc-linux boxes support dynamic linking these days and
18841  # people can always --disable-shared, the test was removed, and we
18842  # assume the GNU/Linux dynamic linker is in use.
18843  dynamic_linker='GNU/Linux ld.so'
18844  ;;
18845
18846netbsd*)
18847  version_type=sunos
18848  need_lib_prefix=no
18849  need_version=no
18850  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18851    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18852    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18853    dynamic_linker='NetBSD (a.out) ld.so'
18854  else
18855    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18856    soname_spec='${libname}${release}${shared_ext}$major'
18857    dynamic_linker='NetBSD ld.elf_so'
18858  fi
18859  shlibpath_var=LD_LIBRARY_PATH
18860  shlibpath_overrides_runpath=yes
18861  hardcode_into_libs=yes
18862  ;;
18863
18864newsos6)
18865  version_type=linux
18866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18867  shlibpath_var=LD_LIBRARY_PATH
18868  shlibpath_overrides_runpath=yes
18869  ;;
18870
18871nto-qnx*)
18872  version_type=linux
18873  need_lib_prefix=no
18874  need_version=no
18875  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18876  soname_spec='${libname}${release}${shared_ext}$major'
18877  shlibpath_var=LD_LIBRARY_PATH
18878  shlibpath_overrides_runpath=yes
18879  ;;
18880
18881openbsd*)
18882  version_type=sunos
18883  sys_lib_dlsearch_path_spec="/usr/lib"
18884  need_lib_prefix=no
18885  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18886  case $host_os in
18887    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18888    *)                         need_version=no  ;;
18889  esac
18890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18891  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18892  shlibpath_var=LD_LIBRARY_PATH
18893  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18894    case $host_os in
18895      openbsd2.[89] | openbsd2.[89].*)
18896	shlibpath_overrides_runpath=no
18897	;;
18898      *)
18899	shlibpath_overrides_runpath=yes
18900	;;
18901      esac
18902  else
18903    shlibpath_overrides_runpath=yes
18904  fi
18905  ;;
18906
18907os2*)
18908  libname_spec='$name'
18909  shrext_cmds=".dll"
18910  need_lib_prefix=no
18911  library_names_spec='$libname${shared_ext} $libname.a'
18912  dynamic_linker='OS/2 ld.exe'
18913  shlibpath_var=LIBPATH
18914  ;;
18915
18916osf3* | osf4* | osf5*)
18917  version_type=osf
18918  need_lib_prefix=no
18919  need_version=no
18920  soname_spec='${libname}${release}${shared_ext}$major'
18921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18922  shlibpath_var=LD_LIBRARY_PATH
18923  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18924  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18925  ;;
18926
18927rdos*)
18928  dynamic_linker=no
18929  ;;
18930
18931solaris*)
18932  version_type=linux
18933  need_lib_prefix=no
18934  need_version=no
18935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18936  soname_spec='${libname}${release}${shared_ext}$major'
18937  shlibpath_var=LD_LIBRARY_PATH
18938  shlibpath_overrides_runpath=yes
18939  hardcode_into_libs=yes
18940  # ldd complains unless libraries are executable
18941  postinstall_cmds='chmod +x $lib'
18942  ;;
18943
18944sunos4*)
18945  version_type=sunos
18946  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18947  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18948  shlibpath_var=LD_LIBRARY_PATH
18949  shlibpath_overrides_runpath=yes
18950  if test "$with_gnu_ld" = yes; then
18951    need_lib_prefix=no
18952  fi
18953  need_version=yes
18954  ;;
18955
18956sysv4 | sysv4.3*)
18957  version_type=linux
18958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18959  soname_spec='${libname}${release}${shared_ext}$major'
18960  shlibpath_var=LD_LIBRARY_PATH
18961  case $host_vendor in
18962    sni)
18963      shlibpath_overrides_runpath=no
18964      need_lib_prefix=no
18965      export_dynamic_flag_spec='${wl}-Blargedynsym'
18966      runpath_var=LD_RUN_PATH
18967      ;;
18968    siemens)
18969      need_lib_prefix=no
18970      ;;
18971    motorola)
18972      need_lib_prefix=no
18973      need_version=no
18974      shlibpath_overrides_runpath=no
18975      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18976      ;;
18977  esac
18978  ;;
18979
18980sysv4*MP*)
18981  if test -d /usr/nec ;then
18982    version_type=linux
18983    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18984    soname_spec='$libname${shared_ext}.$major'
18985    shlibpath_var=LD_LIBRARY_PATH
18986  fi
18987  ;;
18988
18989sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18990  version_type=freebsd-elf
18991  need_lib_prefix=no
18992  need_version=no
18993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18994  soname_spec='${libname}${release}${shared_ext}$major'
18995  shlibpath_var=LD_LIBRARY_PATH
18996  hardcode_into_libs=yes
18997  if test "$with_gnu_ld" = yes; then
18998    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18999    shlibpath_overrides_runpath=no
19000  else
19001    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19002    shlibpath_overrides_runpath=yes
19003    case $host_os in
19004      sco3.2v5*)
19005        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19006	;;
19007    esac
19008  fi
19009  sys_lib_dlsearch_path_spec='/usr/lib'
19010  ;;
19011
19012uts4*)
19013  version_type=linux
19014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19015  soname_spec='${libname}${release}${shared_ext}$major'
19016  shlibpath_var=LD_LIBRARY_PATH
19017  ;;
19018
19019*)
19020  dynamic_linker=no
19021  ;;
19022esac
19023{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19024$as_echo "$dynamic_linker" >&6; }
19025test "$dynamic_linker" = no && can_build_shared=no
19026
19027if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19028  $as_echo_n "(cached) " >&6
19029else
19030  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19031fi
19032
19033sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19034if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19035  $as_echo_n "(cached) " >&6
19036else
19037  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19038fi
19039
19040sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19041
19042variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19043if test "$GCC" = yes; then
19044  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19045fi
19046
19047{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19048$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19049hardcode_action_GCJ=
19050if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19051   test -n "$runpath_var_GCJ" || \
19052   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19053
19054  # We can hardcode non-existant directories.
19055  if test "$hardcode_direct_GCJ" != no &&
19056     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19057     # have to relink, otherwise we might link with an installed library
19058     # when we should be linking with a yet-to-be-installed one
19059     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19060     test "$hardcode_minus_L_GCJ" != no; then
19061    # Linking always hardcodes the temporary library directory.
19062    hardcode_action_GCJ=relink
19063  else
19064    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19065    hardcode_action_GCJ=immediate
19066  fi
19067else
19068  # We cannot hardcode anything, or else we can only hardcode existing
19069  # directories.
19070  hardcode_action_GCJ=unsupported
19071fi
19072{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19073$as_echo "$hardcode_action_GCJ" >&6; }
19074
19075if test "$hardcode_action_GCJ" = relink; then
19076  # Fast installation is not supported
19077  enable_fast_install=no
19078elif test "$shlibpath_overrides_runpath" = yes ||
19079     test "$enable_shared" = no; then
19080  # Fast installation is not necessary
19081  enable_fast_install=needless
19082fi
19083
19084
19085# The else clause should only fire when bootstrapping the
19086# libtool distribution, otherwise you forgot to ship ltmain.sh
19087# with your package, and you will get complaints that there are
19088# no rules to generate ltmain.sh.
19089if test -f "$ltmain"; then
19090  # See if we are running on zsh, and set the options which allow our commands through
19091  # without removal of \ escapes.
19092  if test -n "${ZSH_VERSION+set}" ; then
19093    setopt NO_GLOB_SUBST
19094  fi
19095  # Now quote all the things that may contain metacharacters while being
19096  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19097  # variables and quote the copies for generation of the libtool script.
19098  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19099    SED SHELL STRIP \
19100    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19101    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19102    deplibs_check_method reload_flag reload_cmds need_locks \
19103    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19104    lt_cv_sys_global_symbol_to_c_name_address \
19105    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19106    old_postinstall_cmds old_postuninstall_cmds \
19107    compiler_GCJ \
19108    CC_GCJ \
19109    LD_GCJ \
19110    lt_prog_compiler_wl_GCJ \
19111    lt_prog_compiler_pic_GCJ \
19112    lt_prog_compiler_static_GCJ \
19113    lt_prog_compiler_no_builtin_flag_GCJ \
19114    export_dynamic_flag_spec_GCJ \
19115    thread_safe_flag_spec_GCJ \
19116    whole_archive_flag_spec_GCJ \
19117    enable_shared_with_static_runtimes_GCJ \
19118    old_archive_cmds_GCJ \
19119    old_archive_from_new_cmds_GCJ \
19120    predep_objects_GCJ \
19121    postdep_objects_GCJ \
19122    predeps_GCJ \
19123    postdeps_GCJ \
19124    compiler_lib_search_path_GCJ \
19125    compiler_lib_search_dirs_GCJ \
19126    archive_cmds_GCJ \
19127    archive_expsym_cmds_GCJ \
19128    postinstall_cmds_GCJ \
19129    postuninstall_cmds_GCJ \
19130    old_archive_from_expsyms_cmds_GCJ \
19131    allow_undefined_flag_GCJ \
19132    no_undefined_flag_GCJ \
19133    export_symbols_cmds_GCJ \
19134    hardcode_libdir_flag_spec_GCJ \
19135    hardcode_libdir_flag_spec_ld_GCJ \
19136    hardcode_libdir_separator_GCJ \
19137    hardcode_automatic_GCJ \
19138    module_cmds_GCJ \
19139    module_expsym_cmds_GCJ \
19140    lt_cv_prog_compiler_c_o_GCJ \
19141    fix_srcfile_path_GCJ \
19142    exclude_expsyms_GCJ \
19143    include_expsyms_GCJ; do
19144
19145    case $var in
19146    old_archive_cmds_GCJ | \
19147    old_archive_from_new_cmds_GCJ | \
19148    archive_cmds_GCJ | \
19149    archive_expsym_cmds_GCJ | \
19150    module_cmds_GCJ | \
19151    module_expsym_cmds_GCJ | \
19152    old_archive_from_expsyms_cmds_GCJ | \
19153    export_symbols_cmds_GCJ | \
19154    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19155    postinstall_cmds | postuninstall_cmds | \
19156    old_postinstall_cmds | old_postuninstall_cmds | \
19157    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19158      # Double-quote double-evaled strings.
19159      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19160      ;;
19161    *)
19162      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19163      ;;
19164    esac
19165  done
19166
19167  case $lt_echo in
19168  *'\$0 --fallback-echo"')
19169    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19170    ;;
19171  esac
19172
19173cfgfile="$ofile"
19174
19175  cat <<__EOF__ >> "$cfgfile"
19176# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19177
19178# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19179
19180# Shell to use when invoking shell scripts.
19181SHELL=$lt_SHELL
19182
19183# Whether or not to build shared libraries.
19184build_libtool_libs=$enable_shared
19185
19186# Whether or not to build static libraries.
19187build_old_libs=$enable_static
19188
19189# Whether or not to add -lc for building shared libraries.
19190build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19191
19192# Whether or not to disallow shared libs when runtime libs are static
19193allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19194
19195# Whether or not to optimize for fast installation.
19196fast_install=$enable_fast_install
19197
19198# The host system.
19199host_alias=$host_alias
19200host=$host
19201host_os=$host_os
19202
19203# The build system.
19204build_alias=$build_alias
19205build=$build
19206build_os=$build_os
19207
19208# An echo program that does not interpret backslashes.
19209echo=$lt_echo
19210
19211# The archiver.
19212AR=$lt_AR
19213AR_FLAGS=$lt_AR_FLAGS
19214
19215# A C compiler.
19216LTCC=$lt_LTCC
19217
19218# LTCC compiler flags.
19219LTCFLAGS=$lt_LTCFLAGS
19220
19221# A language-specific compiler.
19222CC=$lt_compiler_GCJ
19223
19224# Is the compiler the GNU C compiler?
19225with_gcc=$GCC_GCJ
19226
19227# An ERE matcher.
19228EGREP=$lt_EGREP
19229
19230# The linker used to build libraries.
19231LD=$lt_LD_GCJ
19232
19233# Whether we need hard or soft links.
19234LN_S=$lt_LN_S
19235
19236# A BSD-compatible nm program.
19237NM=$lt_NM
19238
19239# A symbol stripping program
19240STRIP=$lt_STRIP
19241
19242# Used to examine libraries when file_magic_cmd begins "file"
19243MAGIC_CMD=$MAGIC_CMD
19244
19245# Used on cygwin: DLL creation program.
19246DLLTOOL="$DLLTOOL"
19247
19248# Used on cygwin: object dumper.
19249OBJDUMP="$OBJDUMP"
19250
19251# Used on cygwin: assembler.
19252AS="$AS"
19253
19254# The name of the directory that contains temporary libtool files.
19255objdir=$objdir
19256
19257# How to create reloadable object files.
19258reload_flag=$lt_reload_flag
19259reload_cmds=$lt_reload_cmds
19260
19261# How to pass a linker flag through the compiler.
19262wl=$lt_lt_prog_compiler_wl_GCJ
19263
19264# Object file suffix (normally "o").
19265objext="$ac_objext"
19266
19267# Old archive suffix (normally "a").
19268libext="$libext"
19269
19270# Shared library suffix (normally ".so").
19271shrext_cmds='$shrext_cmds'
19272
19273# Executable file suffix (normally "").
19274exeext="$exeext"
19275
19276# Additional compiler flags for building library objects.
19277pic_flag=$lt_lt_prog_compiler_pic_GCJ
19278pic_mode=$pic_mode
19279
19280# What is the maximum length of a command?
19281max_cmd_len=$lt_cv_sys_max_cmd_len
19282
19283# Does compiler simultaneously support -c and -o options?
19284compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19285
19286# Must we lock files when doing compilation?
19287need_locks=$lt_need_locks
19288
19289# Do we need the lib prefix for modules?
19290need_lib_prefix=$need_lib_prefix
19291
19292# Do we need a version for libraries?
19293need_version=$need_version
19294
19295# Whether dlopen is supported.
19296dlopen_support=$enable_dlopen
19297
19298# Whether dlopen of programs is supported.
19299dlopen_self=$enable_dlopen_self
19300
19301# Whether dlopen of statically linked programs is supported.
19302dlopen_self_static=$enable_dlopen_self_static
19303
19304# Compiler flag to prevent dynamic linking.
19305link_static_flag=$lt_lt_prog_compiler_static_GCJ
19306
19307# Compiler flag to turn off builtin functions.
19308no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19309
19310# Compiler flag to allow reflexive dlopens.
19311export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19312
19313# Compiler flag to generate shared objects directly from archives.
19314whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19315
19316# Compiler flag to generate thread-safe objects.
19317thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19318
19319# Library versioning type.
19320version_type=$version_type
19321
19322# Format of library name prefix.
19323libname_spec=$lt_libname_spec
19324
19325# List of archive names.  First name is the real one, the rest are links.
19326# The last name is the one that the linker finds with -lNAME.
19327library_names_spec=$lt_library_names_spec
19328
19329# The coded name of the library, if different from the real name.
19330soname_spec=$lt_soname_spec
19331
19332# Commands used to build and install an old-style archive.
19333RANLIB=$lt_RANLIB
19334old_archive_cmds=$lt_old_archive_cmds_GCJ
19335old_postinstall_cmds=$lt_old_postinstall_cmds
19336old_postuninstall_cmds=$lt_old_postuninstall_cmds
19337
19338# Create an old-style archive from a shared archive.
19339old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19340
19341# Create a temporary old-style archive to link instead of a shared archive.
19342old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19343
19344# Commands used to build and install a shared archive.
19345archive_cmds=$lt_archive_cmds_GCJ
19346archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19347postinstall_cmds=$lt_postinstall_cmds
19348postuninstall_cmds=$lt_postuninstall_cmds
19349
19350# Commands used to build a loadable module (assumed same as above if empty)
19351module_cmds=$lt_module_cmds_GCJ
19352module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19353
19354# Commands to strip libraries.
19355old_striplib=$lt_old_striplib
19356striplib=$lt_striplib
19357
19358# Dependencies to place before the objects being linked to create a
19359# shared library.
19360predep_objects=$lt_predep_objects_GCJ
19361
19362# Dependencies to place after the objects being linked to create a
19363# shared library.
19364postdep_objects=$lt_postdep_objects_GCJ
19365
19366# Dependencies to place before the objects being linked to create a
19367# shared library.
19368predeps=$lt_predeps_GCJ
19369
19370# Dependencies to place after the objects being linked to create a
19371# shared library.
19372postdeps=$lt_postdeps_GCJ
19373
19374# The directories searched by this compiler when creating a shared
19375# library
19376compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19377
19378# The library search path used internally by the compiler when linking
19379# a shared library.
19380compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19381
19382# Method to check whether dependent libraries are shared objects.
19383deplibs_check_method=$lt_deplibs_check_method
19384
19385# Command to use when deplibs_check_method == file_magic.
19386file_magic_cmd=$lt_file_magic_cmd
19387
19388# Flag that allows shared libraries with undefined symbols to be built.
19389allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19390
19391# Flag that forces no undefined symbols.
19392no_undefined_flag=$lt_no_undefined_flag_GCJ
19393
19394# Commands used to finish a libtool library installation in a directory.
19395finish_cmds=$lt_finish_cmds
19396
19397# Same as above, but a single script fragment to be evaled but not shown.
19398finish_eval=$lt_finish_eval
19399
19400# Take the output of nm and produce a listing of raw symbols and C names.
19401global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19402
19403# Transform the output of nm in a proper C declaration
19404global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19405
19406# Transform the output of nm in a C name address pair
19407global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19408
19409# This is the shared library runtime path variable.
19410runpath_var=$runpath_var
19411
19412# This is the shared library path variable.
19413shlibpath_var=$shlibpath_var
19414
19415# Is shlibpath searched before the hard-coded library search path?
19416shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19417
19418# How to hardcode a shared library path into an executable.
19419hardcode_action=$hardcode_action_GCJ
19420
19421# Whether we should hardcode library paths into libraries.
19422hardcode_into_libs=$hardcode_into_libs
19423
19424# Flag to hardcode \$libdir into a binary during linking.
19425# This must work even if \$libdir does not exist.
19426hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19427
19428# If ld is used when linking, flag to hardcode \$libdir into
19429# a binary during linking. This must work even if \$libdir does
19430# not exist.
19431hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19432
19433# Whether we need a single -rpath flag with a separated argument.
19434hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19435
19436# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19437# resulting binary.
19438hardcode_direct=$hardcode_direct_GCJ
19439
19440# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19441# resulting binary.
19442hardcode_minus_L=$hardcode_minus_L_GCJ
19443
19444# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19445# the resulting binary.
19446hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19447
19448# Set to yes if building a shared library automatically hardcodes DIR into the library
19449# and all subsequent libraries and executables linked against it.
19450hardcode_automatic=$hardcode_automatic_GCJ
19451
19452# Variables whose values should be saved in libtool wrapper scripts and
19453# restored at relink time.
19454variables_saved_for_relink="$variables_saved_for_relink"
19455
19456# Whether libtool must link a program against all its dependency libraries.
19457link_all_deplibs=$link_all_deplibs_GCJ
19458
19459# Compile-time system search path for libraries
19460sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19461
19462# Run-time system search path for libraries
19463sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19464
19465# Fix the shell variable \$srcfile for the compiler.
19466fix_srcfile_path=$lt_fix_srcfile_path
19467
19468# Set to yes if exported symbols are required.
19469always_export_symbols=$always_export_symbols_GCJ
19470
19471# The commands to list exported symbols.
19472export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19473
19474# The commands to extract the exported symbol list from a shared archive.
19475extract_expsyms_cmds=$lt_extract_expsyms_cmds
19476
19477# Symbols that should not be listed in the preloaded symbols.
19478exclude_expsyms=$lt_exclude_expsyms_GCJ
19479
19480# Symbols that must always be exported.
19481include_expsyms=$lt_include_expsyms_GCJ
19482
19483# ### END LIBTOOL TAG CONFIG: $tagname
19484
19485__EOF__
19486
19487
19488else
19489  # If there is no Makefile yet, we rely on a make rule to execute
19490  # `config.status --recheck' to rerun these tests and create the
19491  # libtool script then.
19492  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19493  if test -f "$ltmain_in"; then
19494    test -f Makefile && make "$ltmain"
19495  fi
19496fi
19497
19498
19499ac_ext=c
19500ac_cpp='$CPP $CPPFLAGS'
19501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19503ac_compiler_gnu=$ac_cv_c_compiler_gnu
19504
19505CC="$lt_save_CC"
19506
19507	else
19508	  tagname=""
19509	fi
19510	;;
19511
19512      RC)
19513
19514
19515# Source file extension for RC test sources.
19516ac_ext=rc
19517
19518# Object file extension for compiled RC test sources.
19519objext=o
19520objext_RC=$objext
19521
19522# Code to be used in simple compile tests
19523lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19524
19525# Code to be used in simple link tests
19526lt_simple_link_test_code="$lt_simple_compile_test_code"
19527
19528# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19529
19530# If no C compiler was specified, use CC.
19531LTCC=${LTCC-"$CC"}
19532
19533# If no C compiler flags were specified, use CFLAGS.
19534LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19535
19536# Allow CC to be a program name with arguments.
19537compiler=$CC
19538
19539
19540# save warnings/boilerplate of simple test code
19541ac_outfile=conftest.$ac_objext
19542echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19543eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19544_lt_compiler_boilerplate=`cat conftest.err`
19545$rm conftest*
19546
19547ac_outfile=conftest.$ac_objext
19548echo "$lt_simple_link_test_code" >conftest.$ac_ext
19549eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19550_lt_linker_boilerplate=`cat conftest.err`
19551$rm -r conftest*
19552
19553
19554# Allow CC to be a program name with arguments.
19555lt_save_CC="$CC"
19556CC=${RC-"windres"}
19557compiler=$CC
19558compiler_RC=$CC
19559for cc_temp in $compiler""; do
19560  case $cc_temp in
19561    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19562    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19563    \-*) ;;
19564    *) break;;
19565  esac
19566done
19567cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19568
19569lt_cv_prog_compiler_c_o_RC=yes
19570
19571# The else clause should only fire when bootstrapping the
19572# libtool distribution, otherwise you forgot to ship ltmain.sh
19573# with your package, and you will get complaints that there are
19574# no rules to generate ltmain.sh.
19575if test -f "$ltmain"; then
19576  # See if we are running on zsh, and set the options which allow our commands through
19577  # without removal of \ escapes.
19578  if test -n "${ZSH_VERSION+set}" ; then
19579    setopt NO_GLOB_SUBST
19580  fi
19581  # Now quote all the things that may contain metacharacters while being
19582  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19583  # variables and quote the copies for generation of the libtool script.
19584  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19585    SED SHELL STRIP \
19586    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19587    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19588    deplibs_check_method reload_flag reload_cmds need_locks \
19589    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19590    lt_cv_sys_global_symbol_to_c_name_address \
19591    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19592    old_postinstall_cmds old_postuninstall_cmds \
19593    compiler_RC \
19594    CC_RC \
19595    LD_RC \
19596    lt_prog_compiler_wl_RC \
19597    lt_prog_compiler_pic_RC \
19598    lt_prog_compiler_static_RC \
19599    lt_prog_compiler_no_builtin_flag_RC \
19600    export_dynamic_flag_spec_RC \
19601    thread_safe_flag_spec_RC \
19602    whole_archive_flag_spec_RC \
19603    enable_shared_with_static_runtimes_RC \
19604    old_archive_cmds_RC \
19605    old_archive_from_new_cmds_RC \
19606    predep_objects_RC \
19607    postdep_objects_RC \
19608    predeps_RC \
19609    postdeps_RC \
19610    compiler_lib_search_path_RC \
19611    compiler_lib_search_dirs_RC \
19612    archive_cmds_RC \
19613    archive_expsym_cmds_RC \
19614    postinstall_cmds_RC \
19615    postuninstall_cmds_RC \
19616    old_archive_from_expsyms_cmds_RC \
19617    allow_undefined_flag_RC \
19618    no_undefined_flag_RC \
19619    export_symbols_cmds_RC \
19620    hardcode_libdir_flag_spec_RC \
19621    hardcode_libdir_flag_spec_ld_RC \
19622    hardcode_libdir_separator_RC \
19623    hardcode_automatic_RC \
19624    module_cmds_RC \
19625    module_expsym_cmds_RC \
19626    lt_cv_prog_compiler_c_o_RC \
19627    fix_srcfile_path_RC \
19628    exclude_expsyms_RC \
19629    include_expsyms_RC; do
19630
19631    case $var in
19632    old_archive_cmds_RC | \
19633    old_archive_from_new_cmds_RC | \
19634    archive_cmds_RC | \
19635    archive_expsym_cmds_RC | \
19636    module_cmds_RC | \
19637    module_expsym_cmds_RC | \
19638    old_archive_from_expsyms_cmds_RC | \
19639    export_symbols_cmds_RC | \
19640    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19641    postinstall_cmds | postuninstall_cmds | \
19642    old_postinstall_cmds | old_postuninstall_cmds | \
19643    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19644      # Double-quote double-evaled strings.
19645      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19646      ;;
19647    *)
19648      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19649      ;;
19650    esac
19651  done
19652
19653  case $lt_echo in
19654  *'\$0 --fallback-echo"')
19655    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19656    ;;
19657  esac
19658
19659cfgfile="$ofile"
19660
19661  cat <<__EOF__ >> "$cfgfile"
19662# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19663
19664# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19665
19666# Shell to use when invoking shell scripts.
19667SHELL=$lt_SHELL
19668
19669# Whether or not to build shared libraries.
19670build_libtool_libs=$enable_shared
19671
19672# Whether or not to build static libraries.
19673build_old_libs=$enable_static
19674
19675# Whether or not to add -lc for building shared libraries.
19676build_libtool_need_lc=$archive_cmds_need_lc_RC
19677
19678# Whether or not to disallow shared libs when runtime libs are static
19679allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19680
19681# Whether or not to optimize for fast installation.
19682fast_install=$enable_fast_install
19683
19684# The host system.
19685host_alias=$host_alias
19686host=$host
19687host_os=$host_os
19688
19689# The build system.
19690build_alias=$build_alias
19691build=$build
19692build_os=$build_os
19693
19694# An echo program that does not interpret backslashes.
19695echo=$lt_echo
19696
19697# The archiver.
19698AR=$lt_AR
19699AR_FLAGS=$lt_AR_FLAGS
19700
19701# A C compiler.
19702LTCC=$lt_LTCC
19703
19704# LTCC compiler flags.
19705LTCFLAGS=$lt_LTCFLAGS
19706
19707# A language-specific compiler.
19708CC=$lt_compiler_RC
19709
19710# Is the compiler the GNU C compiler?
19711with_gcc=$GCC_RC
19712
19713# An ERE matcher.
19714EGREP=$lt_EGREP
19715
19716# The linker used to build libraries.
19717LD=$lt_LD_RC
19718
19719# Whether we need hard or soft links.
19720LN_S=$lt_LN_S
19721
19722# A BSD-compatible nm program.
19723NM=$lt_NM
19724
19725# A symbol stripping program
19726STRIP=$lt_STRIP
19727
19728# Used to examine libraries when file_magic_cmd begins "file"
19729MAGIC_CMD=$MAGIC_CMD
19730
19731# Used on cygwin: DLL creation program.
19732DLLTOOL="$DLLTOOL"
19733
19734# Used on cygwin: object dumper.
19735OBJDUMP="$OBJDUMP"
19736
19737# Used on cygwin: assembler.
19738AS="$AS"
19739
19740# The name of the directory that contains temporary libtool files.
19741objdir=$objdir
19742
19743# How to create reloadable object files.
19744reload_flag=$lt_reload_flag
19745reload_cmds=$lt_reload_cmds
19746
19747# How to pass a linker flag through the compiler.
19748wl=$lt_lt_prog_compiler_wl_RC
19749
19750# Object file suffix (normally "o").
19751objext="$ac_objext"
19752
19753# Old archive suffix (normally "a").
19754libext="$libext"
19755
19756# Shared library suffix (normally ".so").
19757shrext_cmds='$shrext_cmds'
19758
19759# Executable file suffix (normally "").
19760exeext="$exeext"
19761
19762# Additional compiler flags for building library objects.
19763pic_flag=$lt_lt_prog_compiler_pic_RC
19764pic_mode=$pic_mode
19765
19766# What is the maximum length of a command?
19767max_cmd_len=$lt_cv_sys_max_cmd_len
19768
19769# Does compiler simultaneously support -c and -o options?
19770compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19771
19772# Must we lock files when doing compilation?
19773need_locks=$lt_need_locks
19774
19775# Do we need the lib prefix for modules?
19776need_lib_prefix=$need_lib_prefix
19777
19778# Do we need a version for libraries?
19779need_version=$need_version
19780
19781# Whether dlopen is supported.
19782dlopen_support=$enable_dlopen
19783
19784# Whether dlopen of programs is supported.
19785dlopen_self=$enable_dlopen_self
19786
19787# Whether dlopen of statically linked programs is supported.
19788dlopen_self_static=$enable_dlopen_self_static
19789
19790# Compiler flag to prevent dynamic linking.
19791link_static_flag=$lt_lt_prog_compiler_static_RC
19792
19793# Compiler flag to turn off builtin functions.
19794no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19795
19796# Compiler flag to allow reflexive dlopens.
19797export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19798
19799# Compiler flag to generate shared objects directly from archives.
19800whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19801
19802# Compiler flag to generate thread-safe objects.
19803thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19804
19805# Library versioning type.
19806version_type=$version_type
19807
19808# Format of library name prefix.
19809libname_spec=$lt_libname_spec
19810
19811# List of archive names.  First name is the real one, the rest are links.
19812# The last name is the one that the linker finds with -lNAME.
19813library_names_spec=$lt_library_names_spec
19814
19815# The coded name of the library, if different from the real name.
19816soname_spec=$lt_soname_spec
19817
19818# Commands used to build and install an old-style archive.
19819RANLIB=$lt_RANLIB
19820old_archive_cmds=$lt_old_archive_cmds_RC
19821old_postinstall_cmds=$lt_old_postinstall_cmds
19822old_postuninstall_cmds=$lt_old_postuninstall_cmds
19823
19824# Create an old-style archive from a shared archive.
19825old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19826
19827# Create a temporary old-style archive to link instead of a shared archive.
19828old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19829
19830# Commands used to build and install a shared archive.
19831archive_cmds=$lt_archive_cmds_RC
19832archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19833postinstall_cmds=$lt_postinstall_cmds
19834postuninstall_cmds=$lt_postuninstall_cmds
19835
19836# Commands used to build a loadable module (assumed same as above if empty)
19837module_cmds=$lt_module_cmds_RC
19838module_expsym_cmds=$lt_module_expsym_cmds_RC
19839
19840# Commands to strip libraries.
19841old_striplib=$lt_old_striplib
19842striplib=$lt_striplib
19843
19844# Dependencies to place before the objects being linked to create a
19845# shared library.
19846predep_objects=$lt_predep_objects_RC
19847
19848# Dependencies to place after the objects being linked to create a
19849# shared library.
19850postdep_objects=$lt_postdep_objects_RC
19851
19852# Dependencies to place before the objects being linked to create a
19853# shared library.
19854predeps=$lt_predeps_RC
19855
19856# Dependencies to place after the objects being linked to create a
19857# shared library.
19858postdeps=$lt_postdeps_RC
19859
19860# The directories searched by this compiler when creating a shared
19861# library
19862compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19863
19864# The library search path used internally by the compiler when linking
19865# a shared library.
19866compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19867
19868# Method to check whether dependent libraries are shared objects.
19869deplibs_check_method=$lt_deplibs_check_method
19870
19871# Command to use when deplibs_check_method == file_magic.
19872file_magic_cmd=$lt_file_magic_cmd
19873
19874# Flag that allows shared libraries with undefined symbols to be built.
19875allow_undefined_flag=$lt_allow_undefined_flag_RC
19876
19877# Flag that forces no undefined symbols.
19878no_undefined_flag=$lt_no_undefined_flag_RC
19879
19880# Commands used to finish a libtool library installation in a directory.
19881finish_cmds=$lt_finish_cmds
19882
19883# Same as above, but a single script fragment to be evaled but not shown.
19884finish_eval=$lt_finish_eval
19885
19886# Take the output of nm and produce a listing of raw symbols and C names.
19887global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19888
19889# Transform the output of nm in a proper C declaration
19890global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19891
19892# Transform the output of nm in a C name address pair
19893global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19894
19895# This is the shared library runtime path variable.
19896runpath_var=$runpath_var
19897
19898# This is the shared library path variable.
19899shlibpath_var=$shlibpath_var
19900
19901# Is shlibpath searched before the hard-coded library search path?
19902shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19903
19904# How to hardcode a shared library path into an executable.
19905hardcode_action=$hardcode_action_RC
19906
19907# Whether we should hardcode library paths into libraries.
19908hardcode_into_libs=$hardcode_into_libs
19909
19910# Flag to hardcode \$libdir into a binary during linking.
19911# This must work even if \$libdir does not exist.
19912hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19913
19914# If ld is used when linking, flag to hardcode \$libdir into
19915# a binary during linking. This must work even if \$libdir does
19916# not exist.
19917hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19918
19919# Whether we need a single -rpath flag with a separated argument.
19920hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19921
19922# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19923# resulting binary.
19924hardcode_direct=$hardcode_direct_RC
19925
19926# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19927# resulting binary.
19928hardcode_minus_L=$hardcode_minus_L_RC
19929
19930# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19931# the resulting binary.
19932hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19933
19934# Set to yes if building a shared library automatically hardcodes DIR into the library
19935# and all subsequent libraries and executables linked against it.
19936hardcode_automatic=$hardcode_automatic_RC
19937
19938# Variables whose values should be saved in libtool wrapper scripts and
19939# restored at relink time.
19940variables_saved_for_relink="$variables_saved_for_relink"
19941
19942# Whether libtool must link a program against all its dependency libraries.
19943link_all_deplibs=$link_all_deplibs_RC
19944
19945# Compile-time system search path for libraries
19946sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19947
19948# Run-time system search path for libraries
19949sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19950
19951# Fix the shell variable \$srcfile for the compiler.
19952fix_srcfile_path=$lt_fix_srcfile_path
19953
19954# Set to yes if exported symbols are required.
19955always_export_symbols=$always_export_symbols_RC
19956
19957# The commands to list exported symbols.
19958export_symbols_cmds=$lt_export_symbols_cmds_RC
19959
19960# The commands to extract the exported symbol list from a shared archive.
19961extract_expsyms_cmds=$lt_extract_expsyms_cmds
19962
19963# Symbols that should not be listed in the preloaded symbols.
19964exclude_expsyms=$lt_exclude_expsyms_RC
19965
19966# Symbols that must always be exported.
19967include_expsyms=$lt_include_expsyms_RC
19968
19969# ### END LIBTOOL TAG CONFIG: $tagname
19970
19971__EOF__
19972
19973
19974else
19975  # If there is no Makefile yet, we rely on a make rule to execute
19976  # `config.status --recheck' to rerun these tests and create the
19977  # libtool script then.
19978  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19979  if test -f "$ltmain_in"; then
19980    test -f Makefile && make "$ltmain"
19981  fi
19982fi
19983
19984
19985ac_ext=c
19986ac_cpp='$CPP $CPPFLAGS'
19987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19989ac_compiler_gnu=$ac_cv_c_compiler_gnu
19990
19991CC="$lt_save_CC"
19992
19993	;;
19994
19995      *)
19996	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19997$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19998   { (exit 1); exit 1; }; }
19999	;;
20000      esac
20001
20002      # Append the new tag name to the list of available tags.
20003      if test -n "$tagname" ; then
20004      available_tags="$available_tags $tagname"
20005    fi
20006    fi
20007  done
20008  IFS="$lt_save_ifs"
20009
20010  # Now substitute the updated list of available tags.
20011  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20012    mv "${ofile}T" "$ofile"
20013    chmod +x "$ofile"
20014  else
20015    rm -f "${ofile}T"
20016    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20017$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20018   { (exit 1); exit 1; }; }
20019  fi
20020fi
20021
20022
20023
20024# This can be used to rebuild libtool when needed
20025LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20026
20027# Always use our own libtool.
20028LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20029
20030# Prevent multiple expansion
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051ac_ext=c
20052ac_cpp='$CPP $CPPFLAGS'
20053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20055ac_compiler_gnu=$ac_cv_c_compiler_gnu
20056if test -n "$ac_tool_prefix"; then
20057  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20058set dummy ${ac_tool_prefix}gcc; ac_word=$2
20059{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20060$as_echo_n "checking for $ac_word... " >&6; }
20061if test "${ac_cv_prog_CC+set}" = set; then
20062  $as_echo_n "(cached) " >&6
20063else
20064  if test -n "$CC"; then
20065  ac_cv_prog_CC="$CC" # Let the user override the test.
20066else
20067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20068for as_dir in $PATH
20069do
20070  IFS=$as_save_IFS
20071  test -z "$as_dir" && as_dir=.
20072  for ac_exec_ext in '' $ac_executable_extensions; do
20073  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20074    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20075    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20076    break 2
20077  fi
20078done
20079done
20080IFS=$as_save_IFS
20081
20082fi
20083fi
20084CC=$ac_cv_prog_CC
20085if test -n "$CC"; then
20086  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20087$as_echo "$CC" >&6; }
20088else
20089  { $as_echo "$as_me:$LINENO: result: no" >&5
20090$as_echo "no" >&6; }
20091fi
20092
20093
20094fi
20095if test -z "$ac_cv_prog_CC"; then
20096  ac_ct_CC=$CC
20097  # Extract the first word of "gcc", so it can be a program name with args.
20098set dummy gcc; ac_word=$2
20099{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20100$as_echo_n "checking for $ac_word... " >&6; }
20101if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20102  $as_echo_n "(cached) " >&6
20103else
20104  if test -n "$ac_ct_CC"; then
20105  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20106else
20107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20108for as_dir in $PATH
20109do
20110  IFS=$as_save_IFS
20111  test -z "$as_dir" && as_dir=.
20112  for ac_exec_ext in '' $ac_executable_extensions; do
20113  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20114    ac_cv_prog_ac_ct_CC="gcc"
20115    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20116    break 2
20117  fi
20118done
20119done
20120IFS=$as_save_IFS
20121
20122fi
20123fi
20124ac_ct_CC=$ac_cv_prog_ac_ct_CC
20125if test -n "$ac_ct_CC"; then
20126  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20127$as_echo "$ac_ct_CC" >&6; }
20128else
20129  { $as_echo "$as_me:$LINENO: result: no" >&5
20130$as_echo "no" >&6; }
20131fi
20132
20133  if test "x$ac_ct_CC" = x; then
20134    CC=""
20135  else
20136    case $cross_compiling:$ac_tool_warned in
20137yes:)
20138{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20140ac_tool_warned=yes ;;
20141esac
20142    CC=$ac_ct_CC
20143  fi
20144else
20145  CC="$ac_cv_prog_CC"
20146fi
20147
20148if test -z "$CC"; then
20149          if test -n "$ac_tool_prefix"; then
20150    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20151set dummy ${ac_tool_prefix}cc; ac_word=$2
20152{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20153$as_echo_n "checking for $ac_word... " >&6; }
20154if test "${ac_cv_prog_CC+set}" = set; then
20155  $as_echo_n "(cached) " >&6
20156else
20157  if test -n "$CC"; then
20158  ac_cv_prog_CC="$CC" # Let the user override the test.
20159else
20160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20161for as_dir in $PATH
20162do
20163  IFS=$as_save_IFS
20164  test -z "$as_dir" && as_dir=.
20165  for ac_exec_ext in '' $ac_executable_extensions; do
20166  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20167    ac_cv_prog_CC="${ac_tool_prefix}cc"
20168    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20169    break 2
20170  fi
20171done
20172done
20173IFS=$as_save_IFS
20174
20175fi
20176fi
20177CC=$ac_cv_prog_CC
20178if test -n "$CC"; then
20179  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20180$as_echo "$CC" >&6; }
20181else
20182  { $as_echo "$as_me:$LINENO: result: no" >&5
20183$as_echo "no" >&6; }
20184fi
20185
20186
20187  fi
20188fi
20189if test -z "$CC"; then
20190  # Extract the first word of "cc", so it can be a program name with args.
20191set dummy cc; ac_word=$2
20192{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20193$as_echo_n "checking for $ac_word... " >&6; }
20194if test "${ac_cv_prog_CC+set}" = set; then
20195  $as_echo_n "(cached) " >&6
20196else
20197  if test -n "$CC"; then
20198  ac_cv_prog_CC="$CC" # Let the user override the test.
20199else
20200  ac_prog_rejected=no
20201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20202for as_dir in $PATH
20203do
20204  IFS=$as_save_IFS
20205  test -z "$as_dir" && as_dir=.
20206  for ac_exec_ext in '' $ac_executable_extensions; do
20207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20208    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20209       ac_prog_rejected=yes
20210       continue
20211     fi
20212    ac_cv_prog_CC="cc"
20213    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20214    break 2
20215  fi
20216done
20217done
20218IFS=$as_save_IFS
20219
20220if test $ac_prog_rejected = yes; then
20221  # We found a bogon in the path, so make sure we never use it.
20222  set dummy $ac_cv_prog_CC
20223  shift
20224  if test $# != 0; then
20225    # We chose a different compiler from the bogus one.
20226    # However, it has the same basename, so the bogon will be chosen
20227    # first if we set CC to just the basename; use the full file name.
20228    shift
20229    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20230  fi
20231fi
20232fi
20233fi
20234CC=$ac_cv_prog_CC
20235if test -n "$CC"; then
20236  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20237$as_echo "$CC" >&6; }
20238else
20239  { $as_echo "$as_me:$LINENO: result: no" >&5
20240$as_echo "no" >&6; }
20241fi
20242
20243
20244fi
20245if test -z "$CC"; then
20246  if test -n "$ac_tool_prefix"; then
20247  for ac_prog in cl.exe
20248  do
20249    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20250set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20251{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20252$as_echo_n "checking for $ac_word... " >&6; }
20253if test "${ac_cv_prog_CC+set}" = set; then
20254  $as_echo_n "(cached) " >&6
20255else
20256  if test -n "$CC"; then
20257  ac_cv_prog_CC="$CC" # Let the user override the test.
20258else
20259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20260for as_dir in $PATH
20261do
20262  IFS=$as_save_IFS
20263  test -z "$as_dir" && as_dir=.
20264  for ac_exec_ext in '' $ac_executable_extensions; do
20265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20266    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20267    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20268    break 2
20269  fi
20270done
20271done
20272IFS=$as_save_IFS
20273
20274fi
20275fi
20276CC=$ac_cv_prog_CC
20277if test -n "$CC"; then
20278  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20279$as_echo "$CC" >&6; }
20280else
20281  { $as_echo "$as_me:$LINENO: result: no" >&5
20282$as_echo "no" >&6; }
20283fi
20284
20285
20286    test -n "$CC" && break
20287  done
20288fi
20289if test -z "$CC"; then
20290  ac_ct_CC=$CC
20291  for ac_prog in cl.exe
20292do
20293  # Extract the first word of "$ac_prog", so it can be a program name with args.
20294set dummy $ac_prog; ac_word=$2
20295{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20296$as_echo_n "checking for $ac_word... " >&6; }
20297if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20298  $as_echo_n "(cached) " >&6
20299else
20300  if test -n "$ac_ct_CC"; then
20301  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20302else
20303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20304for as_dir in $PATH
20305do
20306  IFS=$as_save_IFS
20307  test -z "$as_dir" && as_dir=.
20308  for ac_exec_ext in '' $ac_executable_extensions; do
20309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20310    ac_cv_prog_ac_ct_CC="$ac_prog"
20311    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20312    break 2
20313  fi
20314done
20315done
20316IFS=$as_save_IFS
20317
20318fi
20319fi
20320ac_ct_CC=$ac_cv_prog_ac_ct_CC
20321if test -n "$ac_ct_CC"; then
20322  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20323$as_echo "$ac_ct_CC" >&6; }
20324else
20325  { $as_echo "$as_me:$LINENO: result: no" >&5
20326$as_echo "no" >&6; }
20327fi
20328
20329
20330  test -n "$ac_ct_CC" && break
20331done
20332
20333  if test "x$ac_ct_CC" = x; then
20334    CC=""
20335  else
20336    case $cross_compiling:$ac_tool_warned in
20337yes:)
20338{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20340ac_tool_warned=yes ;;
20341esac
20342    CC=$ac_ct_CC
20343  fi
20344fi
20345
20346fi
20347
20348
20349test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20351{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20352See \`config.log' for more details." >&5
20353$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20354See \`config.log' for more details." >&2;}
20355   { (exit 1); exit 1; }; }; }
20356
20357# Provide some information about the compiler.
20358$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20359set X $ac_compile
20360ac_compiler=$2
20361{ (ac_try="$ac_compiler --version >&5"
20362case "(($ac_try" in
20363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20364  *) ac_try_echo=$ac_try;;
20365esac
20366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20367$as_echo "$ac_try_echo") >&5
20368  (eval "$ac_compiler --version >&5") 2>&5
20369  ac_status=$?
20370  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371  (exit $ac_status); }
20372{ (ac_try="$ac_compiler -v >&5"
20373case "(($ac_try" in
20374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375  *) ac_try_echo=$ac_try;;
20376esac
20377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20378$as_echo "$ac_try_echo") >&5
20379  (eval "$ac_compiler -v >&5") 2>&5
20380  ac_status=$?
20381  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382  (exit $ac_status); }
20383{ (ac_try="$ac_compiler -V >&5"
20384case "(($ac_try" in
20385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386  *) ac_try_echo=$ac_try;;
20387esac
20388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20389$as_echo "$ac_try_echo") >&5
20390  (eval "$ac_compiler -V >&5") 2>&5
20391  ac_status=$?
20392  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393  (exit $ac_status); }
20394
20395{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20396$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20397if test "${ac_cv_c_compiler_gnu+set}" = set; then
20398  $as_echo_n "(cached) " >&6
20399else
20400  cat >conftest.$ac_ext <<_ACEOF
20401/* confdefs.h.  */
20402_ACEOF
20403cat confdefs.h >>conftest.$ac_ext
20404cat >>conftest.$ac_ext <<_ACEOF
20405/* end confdefs.h.  */
20406
20407int
20408main ()
20409{
20410#ifndef __GNUC__
20411       choke me
20412#endif
20413
20414  ;
20415  return 0;
20416}
20417_ACEOF
20418rm -f conftest.$ac_objext
20419if { (ac_try="$ac_compile"
20420case "(($ac_try" in
20421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422  *) ac_try_echo=$ac_try;;
20423esac
20424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20425$as_echo "$ac_try_echo") >&5
20426  (eval "$ac_compile") 2>conftest.er1
20427  ac_status=$?
20428  grep -v '^ *+' conftest.er1 >conftest.err
20429  rm -f conftest.er1
20430  cat conftest.err >&5
20431  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432  (exit $ac_status); } && {
20433	 test -z "$ac_c_werror_flag" ||
20434	 test ! -s conftest.err
20435       } && test -s conftest.$ac_objext; then
20436  ac_compiler_gnu=yes
20437else
20438  $as_echo "$as_me: failed program was:" >&5
20439sed 's/^/| /' conftest.$ac_ext >&5
20440
20441	ac_compiler_gnu=no
20442fi
20443
20444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20445ac_cv_c_compiler_gnu=$ac_compiler_gnu
20446
20447fi
20448{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20449$as_echo "$ac_cv_c_compiler_gnu" >&6; }
20450if test $ac_compiler_gnu = yes; then
20451  GCC=yes
20452else
20453  GCC=
20454fi
20455ac_test_CFLAGS=${CFLAGS+set}
20456ac_save_CFLAGS=$CFLAGS
20457{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20458$as_echo_n "checking whether $CC accepts -g... " >&6; }
20459if test "${ac_cv_prog_cc_g+set}" = set; then
20460  $as_echo_n "(cached) " >&6
20461else
20462  ac_save_c_werror_flag=$ac_c_werror_flag
20463   ac_c_werror_flag=yes
20464   ac_cv_prog_cc_g=no
20465   CFLAGS="-g"
20466   cat >conftest.$ac_ext <<_ACEOF
20467/* confdefs.h.  */
20468_ACEOF
20469cat confdefs.h >>conftest.$ac_ext
20470cat >>conftest.$ac_ext <<_ACEOF
20471/* end confdefs.h.  */
20472
20473int
20474main ()
20475{
20476
20477  ;
20478  return 0;
20479}
20480_ACEOF
20481rm -f conftest.$ac_objext
20482if { (ac_try="$ac_compile"
20483case "(($ac_try" in
20484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485  *) ac_try_echo=$ac_try;;
20486esac
20487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20488$as_echo "$ac_try_echo") >&5
20489  (eval "$ac_compile") 2>conftest.er1
20490  ac_status=$?
20491  grep -v '^ *+' conftest.er1 >conftest.err
20492  rm -f conftest.er1
20493  cat conftest.err >&5
20494  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495  (exit $ac_status); } && {
20496	 test -z "$ac_c_werror_flag" ||
20497	 test ! -s conftest.err
20498       } && test -s conftest.$ac_objext; then
20499  ac_cv_prog_cc_g=yes
20500else
20501  $as_echo "$as_me: failed program was:" >&5
20502sed 's/^/| /' conftest.$ac_ext >&5
20503
20504	CFLAGS=""
20505      cat >conftest.$ac_ext <<_ACEOF
20506/* confdefs.h.  */
20507_ACEOF
20508cat confdefs.h >>conftest.$ac_ext
20509cat >>conftest.$ac_ext <<_ACEOF
20510/* end confdefs.h.  */
20511
20512int
20513main ()
20514{
20515
20516  ;
20517  return 0;
20518}
20519_ACEOF
20520rm -f conftest.$ac_objext
20521if { (ac_try="$ac_compile"
20522case "(($ac_try" in
20523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524  *) ac_try_echo=$ac_try;;
20525esac
20526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20527$as_echo "$ac_try_echo") >&5
20528  (eval "$ac_compile") 2>conftest.er1
20529  ac_status=$?
20530  grep -v '^ *+' conftest.er1 >conftest.err
20531  rm -f conftest.er1
20532  cat conftest.err >&5
20533  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534  (exit $ac_status); } && {
20535	 test -z "$ac_c_werror_flag" ||
20536	 test ! -s conftest.err
20537       } && test -s conftest.$ac_objext; then
20538  :
20539else
20540  $as_echo "$as_me: failed program was:" >&5
20541sed 's/^/| /' conftest.$ac_ext >&5
20542
20543	ac_c_werror_flag=$ac_save_c_werror_flag
20544	 CFLAGS="-g"
20545	 cat >conftest.$ac_ext <<_ACEOF
20546/* confdefs.h.  */
20547_ACEOF
20548cat confdefs.h >>conftest.$ac_ext
20549cat >>conftest.$ac_ext <<_ACEOF
20550/* end confdefs.h.  */
20551
20552int
20553main ()
20554{
20555
20556  ;
20557  return 0;
20558}
20559_ACEOF
20560rm -f conftest.$ac_objext
20561if { (ac_try="$ac_compile"
20562case "(($ac_try" in
20563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564  *) ac_try_echo=$ac_try;;
20565esac
20566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20567$as_echo "$ac_try_echo") >&5
20568  (eval "$ac_compile") 2>conftest.er1
20569  ac_status=$?
20570  grep -v '^ *+' conftest.er1 >conftest.err
20571  rm -f conftest.er1
20572  cat conftest.err >&5
20573  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574  (exit $ac_status); } && {
20575	 test -z "$ac_c_werror_flag" ||
20576	 test ! -s conftest.err
20577       } && test -s conftest.$ac_objext; then
20578  ac_cv_prog_cc_g=yes
20579else
20580  $as_echo "$as_me: failed program was:" >&5
20581sed 's/^/| /' conftest.$ac_ext >&5
20582
20583
20584fi
20585
20586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20587fi
20588
20589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20590fi
20591
20592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20593   ac_c_werror_flag=$ac_save_c_werror_flag
20594fi
20595{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20596$as_echo "$ac_cv_prog_cc_g" >&6; }
20597if test "$ac_test_CFLAGS" = set; then
20598  CFLAGS=$ac_save_CFLAGS
20599elif test $ac_cv_prog_cc_g = yes; then
20600  if test "$GCC" = yes; then
20601    CFLAGS="-g -O2"
20602  else
20603    CFLAGS="-g"
20604  fi
20605else
20606  if test "$GCC" = yes; then
20607    CFLAGS="-O2"
20608  else
20609    CFLAGS=
20610  fi
20611fi
20612{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20613$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20614if test "${ac_cv_prog_cc_c89+set}" = set; then
20615  $as_echo_n "(cached) " >&6
20616else
20617  ac_cv_prog_cc_c89=no
20618ac_save_CC=$CC
20619cat >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#include <stdarg.h>
20626#include <stdio.h>
20627#include <sys/types.h>
20628#include <sys/stat.h>
20629/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20630struct buf { int x; };
20631FILE * (*rcsopen) (struct buf *, struct stat *, int);
20632static char *e (p, i)
20633     char **p;
20634     int i;
20635{
20636  return p[i];
20637}
20638static char *f (char * (*g) (char **, int), char **p, ...)
20639{
20640  char *s;
20641  va_list v;
20642  va_start (v,p);
20643  s = g (p, va_arg (v,int));
20644  va_end (v);
20645  return s;
20646}
20647
20648/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20649   function prototypes and stuff, but not '\xHH' hex character constants.
20650   These don't provoke an error unfortunately, instead are silently treated
20651   as 'x'.  The following induces an error, until -std is added to get
20652   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20653   array size at least.  It's necessary to write '\x00'==0 to get something
20654   that's true only with -std.  */
20655int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20656
20657/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20658   inside strings and character constants.  */
20659#define FOO(x) 'x'
20660int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20661
20662int test (int i, double x);
20663struct s1 {int (*f) (int a);};
20664struct s2 {int (*f) (double a);};
20665int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20666int argc;
20667char **argv;
20668int
20669main ()
20670{
20671return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20672  ;
20673  return 0;
20674}
20675_ACEOF
20676for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20677	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20678do
20679  CC="$ac_save_CC $ac_arg"
20680  rm -f conftest.$ac_objext
20681if { (ac_try="$ac_compile"
20682case "(($ac_try" in
20683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684  *) ac_try_echo=$ac_try;;
20685esac
20686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20687$as_echo "$ac_try_echo") >&5
20688  (eval "$ac_compile") 2>conftest.er1
20689  ac_status=$?
20690  grep -v '^ *+' conftest.er1 >conftest.err
20691  rm -f conftest.er1
20692  cat conftest.err >&5
20693  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694  (exit $ac_status); } && {
20695	 test -z "$ac_c_werror_flag" ||
20696	 test ! -s conftest.err
20697       } && test -s conftest.$ac_objext; then
20698  ac_cv_prog_cc_c89=$ac_arg
20699else
20700  $as_echo "$as_me: failed program was:" >&5
20701sed 's/^/| /' conftest.$ac_ext >&5
20702
20703
20704fi
20705
20706rm -f core conftest.err conftest.$ac_objext
20707  test "x$ac_cv_prog_cc_c89" != "xno" && break
20708done
20709rm -f conftest.$ac_ext
20710CC=$ac_save_CC
20711
20712fi
20713# AC_CACHE_VAL
20714case "x$ac_cv_prog_cc_c89" in
20715  x)
20716    { $as_echo "$as_me:$LINENO: result: none needed" >&5
20717$as_echo "none needed" >&6; } ;;
20718  xno)
20719    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20720$as_echo "unsupported" >&6; } ;;
20721  *)
20722    CC="$CC $ac_cv_prog_cc_c89"
20723    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20724$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20725esac
20726
20727
20728ac_ext=c
20729ac_cpp='$CPP $CPPFLAGS'
20730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20732ac_compiler_gnu=$ac_cv_c_compiler_gnu
20733
20734depcc="$CC"   am_compiler_list=
20735
20736{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20737$as_echo_n "checking dependency style of $depcc... " >&6; }
20738if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20739  $as_echo_n "(cached) " >&6
20740else
20741  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20742  # We make a subdir and do the tests there.  Otherwise we can end up
20743  # making bogus files that we don't know about and never remove.  For
20744  # instance it was reported that on HP-UX the gcc test will end up
20745  # making a dummy file named `D' -- because `-MD' means `put the output
20746  # in D'.
20747  mkdir conftest.dir
20748  # Copy depcomp to subdir because otherwise we won't find it if we're
20749  # using a relative directory.
20750  cp "$am_depcomp" conftest.dir
20751  cd conftest.dir
20752  # We will build objects and dependencies in a subdirectory because
20753  # it helps to detect inapplicable dependency modes.  For instance
20754  # both Tru64's cc and ICC support -MD to output dependencies as a
20755  # side effect of compilation, but ICC will put the dependencies in
20756  # the current directory while Tru64 will put them in the object
20757  # directory.
20758  mkdir sub
20759
20760  am_cv_CC_dependencies_compiler_type=none
20761  if test "$am_compiler_list" = ""; then
20762     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20763  fi
20764  am__universal=false
20765  case " $depcc " in #(
20766     *\ -arch\ *\ -arch\ *) am__universal=true ;;
20767     esac
20768
20769  for depmode in $am_compiler_list; do
20770    # Setup a source with many dependencies, because some compilers
20771    # like to wrap large dependency lists on column 80 (with \), and
20772    # we should not choose a depcomp mode which is confused by this.
20773    #
20774    # We need to recreate these files for each test, as the compiler may
20775    # overwrite some of them when testing with obscure command lines.
20776    # This happens at least with the AIX C compiler.
20777    : > sub/conftest.c
20778    for i in 1 2 3 4 5 6; do
20779      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20780      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20781      # Solaris 8's {/usr,}/bin/sh.
20782      touch sub/conftst$i.h
20783    done
20784    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20785
20786    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20787    # mode.  It turns out that the SunPro C++ compiler does not properly
20788    # handle `-M -o', and we need to detect this.  Also, some Intel
20789    # versions had trouble with output in subdirs
20790    am__obj=sub/conftest.${OBJEXT-o}
20791    am__minus_obj="-o $am__obj"
20792    case $depmode in
20793    gcc)
20794      # This depmode causes a compiler race in universal mode.
20795      test "$am__universal" = false || continue
20796      ;;
20797    nosideeffect)
20798      # after this tag, mechanisms are not by side-effect, so they'll
20799      # only be used when explicitly requested
20800      if test "x$enable_dependency_tracking" = xyes; then
20801	continue
20802      else
20803	break
20804      fi
20805      ;;
20806    msvisualcpp | msvcmsys)
20807      # This compiler won't grok `-c -o', but also, the minuso test has
20808      # not run yet.  These depmodes are late enough in the game, and
20809      # so weak that their functioning should not be impacted.
20810      am__obj=conftest.${OBJEXT-o}
20811      am__minus_obj=
20812      ;;
20813    none) break ;;
20814    esac
20815    if depmode=$depmode \
20816       source=sub/conftest.c object=$am__obj \
20817       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20818       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
20819         >/dev/null 2>conftest.err &&
20820       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20821       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20822       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
20823       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20824      # icc doesn't choke on unknown options, it will just issue warnings
20825      # or remarks (even with -Werror).  So we grep stderr for any message
20826      # that says an option was ignored or not supported.
20827      # When given -MP, icc 7.0 and 7.1 complain thusly:
20828      #   icc: Command line warning: ignoring option '-M'; no argument required
20829      # The diagnosis changed in icc 8.0:
20830      #   icc: Command line remark: option '-MP' not supported
20831      if (grep 'ignoring option' conftest.err ||
20832          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20833        am_cv_CC_dependencies_compiler_type=$depmode
20834        break
20835      fi
20836    fi
20837  done
20838
20839  cd ..
20840  rm -rf conftest.dir
20841else
20842  am_cv_CC_dependencies_compiler_type=none
20843fi
20844
20845fi
20846{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20847$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20848CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20849
20850 if
20851  test "x$enable_dependency_tracking" != xno \
20852  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20853  am__fastdepCC_TRUE=
20854  am__fastdepCC_FALSE='#'
20855else
20856  am__fastdepCC_TRUE='#'
20857  am__fastdepCC_FALSE=
20858fi
20859
20860
20861
20862
20863
20864
20865
20866# Check whether --with-xorg-module-dir was given.
20867if test "${with_xorg_module_dir+set}" = set; then
20868  withval=$with_xorg_module_dir; moduledir="$withval"
20869else
20870  moduledir="$libdir/xorg/modules"
20871fi
20872
20873
20874# Checks for extensions
20875
20876	SAVE_CFLAGS="$CFLAGS"
20877	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20878	cat >conftest.$ac_ext <<_ACEOF
20879/* confdefs.h.  */
20880_ACEOF
20881cat confdefs.h >>conftest.$ac_ext
20882cat >>conftest.$ac_ext <<_ACEOF
20883/* end confdefs.h.  */
20884
20885#include "xorg-server.h"
20886#if !defined RANDR
20887#error RANDR not defined
20888#endif
20889
20890int
20891main ()
20892{
20893
20894  ;
20895  return 0;
20896}
20897_ACEOF
20898rm -f conftest.$ac_objext
20899if { (ac_try="$ac_compile"
20900case "(($ac_try" in
20901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902  *) ac_try_echo=$ac_try;;
20903esac
20904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20905$as_echo "$ac_try_echo") >&5
20906  (eval "$ac_compile") 2>conftest.er1
20907  ac_status=$?
20908  grep -v '^ *+' conftest.er1 >conftest.err
20909  rm -f conftest.er1
20910  cat conftest.err >&5
20911  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912  (exit $ac_status); } && {
20913	 test -z "$ac_c_werror_flag" ||
20914	 test ! -s conftest.err
20915       } && test -s conftest.$ac_objext; then
20916  _EXT_CHECK=yes
20917else
20918  $as_echo "$as_me: failed program was:" >&5
20919sed 's/^/| /' conftest.$ac_ext >&5
20920
20921	_EXT_CHECK=no
20922fi
20923
20924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20925	CFLAGS="$SAVE_CFLAGS"
20926	{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20927$as_echo_n "checking if RANDR is defined... " >&6; }
20928	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20929$as_echo "$_EXT_CHECK" >&6; }
20930	if test "$_EXT_CHECK" != no; then
20931		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20932	fi
20933
20934
20935	SAVE_CFLAGS="$CFLAGS"
20936	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20937	cat >conftest.$ac_ext <<_ACEOF
20938/* confdefs.h.  */
20939_ACEOF
20940cat confdefs.h >>conftest.$ac_ext
20941cat >>conftest.$ac_ext <<_ACEOF
20942/* end confdefs.h.  */
20943
20944#include "xorg-server.h"
20945#if !defined RENDER
20946#error RENDER not defined
20947#endif
20948
20949int
20950main ()
20951{
20952
20953  ;
20954  return 0;
20955}
20956_ACEOF
20957rm -f conftest.$ac_objext
20958if { (ac_try="$ac_compile"
20959case "(($ac_try" in
20960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961  *) ac_try_echo=$ac_try;;
20962esac
20963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20964$as_echo "$ac_try_echo") >&5
20965  (eval "$ac_compile") 2>conftest.er1
20966  ac_status=$?
20967  grep -v '^ *+' conftest.er1 >conftest.err
20968  rm -f conftest.er1
20969  cat conftest.err >&5
20970  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971  (exit $ac_status); } && {
20972	 test -z "$ac_c_werror_flag" ||
20973	 test ! -s conftest.err
20974       } && test -s conftest.$ac_objext; then
20975  _EXT_CHECK=yes
20976else
20977  $as_echo "$as_me: failed program was:" >&5
20978sed 's/^/| /' conftest.$ac_ext >&5
20979
20980	_EXT_CHECK=no
20981fi
20982
20983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20984	CFLAGS="$SAVE_CFLAGS"
20985	{ $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20986$as_echo_n "checking if RENDER is defined... " >&6; }
20987	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20988$as_echo "$_EXT_CHECK" >&6; }
20989	if test "$_EXT_CHECK" != no; then
20990		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20991	fi
20992
20993
20994	SAVE_CFLAGS="$CFLAGS"
20995	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20996	cat >conftest.$ac_ext <<_ACEOF
20997/* confdefs.h.  */
20998_ACEOF
20999cat confdefs.h >>conftest.$ac_ext
21000cat >>conftest.$ac_ext <<_ACEOF
21001/* end confdefs.h.  */
21002
21003#include "xorg-server.h"
21004#if !defined XV
21005#error XV not defined
21006#endif
21007
21008int
21009main ()
21010{
21011
21012  ;
21013  return 0;
21014}
21015_ACEOF
21016rm -f conftest.$ac_objext
21017if { (ac_try="$ac_compile"
21018case "(($ac_try" in
21019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020  *) ac_try_echo=$ac_try;;
21021esac
21022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21023$as_echo "$ac_try_echo") >&5
21024  (eval "$ac_compile") 2>conftest.er1
21025  ac_status=$?
21026  grep -v '^ *+' conftest.er1 >conftest.err
21027  rm -f conftest.er1
21028  cat conftest.err >&5
21029  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030  (exit $ac_status); } && {
21031	 test -z "$ac_c_werror_flag" ||
21032	 test ! -s conftest.err
21033       } && test -s conftest.$ac_objext; then
21034  _EXT_CHECK=yes
21035else
21036  $as_echo "$as_me: failed program was:" >&5
21037sed 's/^/| /' conftest.$ac_ext >&5
21038
21039	_EXT_CHECK=no
21040fi
21041
21042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21043	CFLAGS="$SAVE_CFLAGS"
21044	{ $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
21045$as_echo_n "checking if XV is defined... " >&6; }
21046	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21047$as_echo "$_EXT_CHECK" >&6; }
21048	if test "$_EXT_CHECK" != no; then
21049		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
21050	fi
21051
21052
21053	SAVE_CFLAGS="$CFLAGS"
21054	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21055	cat >conftest.$ac_ext <<_ACEOF
21056/* confdefs.h.  */
21057_ACEOF
21058cat confdefs.h >>conftest.$ac_ext
21059cat >>conftest.$ac_ext <<_ACEOF
21060/* end confdefs.h.  */
21061
21062#include "xorg-server.h"
21063#if !defined DPMSExtension
21064#error DPMSExtension not defined
21065#endif
21066
21067int
21068main ()
21069{
21070
21071  ;
21072  return 0;
21073}
21074_ACEOF
21075rm -f conftest.$ac_objext
21076if { (ac_try="$ac_compile"
21077case "(($ac_try" in
21078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079  *) ac_try_echo=$ac_try;;
21080esac
21081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21082$as_echo "$ac_try_echo") >&5
21083  (eval "$ac_compile") 2>conftest.er1
21084  ac_status=$?
21085  grep -v '^ *+' conftest.er1 >conftest.err
21086  rm -f conftest.er1
21087  cat conftest.err >&5
21088  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089  (exit $ac_status); } && {
21090	 test -z "$ac_c_werror_flag" ||
21091	 test ! -s conftest.err
21092       } && test -s conftest.$ac_objext; then
21093  _EXT_CHECK=yes
21094else
21095  $as_echo "$as_me: failed program was:" >&5
21096sed 's/^/| /' conftest.$ac_ext >&5
21097
21098	_EXT_CHECK=no
21099fi
21100
21101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21102	CFLAGS="$SAVE_CFLAGS"
21103	{ $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
21104$as_echo_n "checking if DPMSExtension is defined... " >&6; }
21105	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21106$as_echo "$_EXT_CHECK" >&6; }
21107	if test "$_EXT_CHECK" != no; then
21108		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
21109	fi
21110
21111
21112# Checks for pkg-config packages
21113
21114
21115if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21116	if test -n "$ac_tool_prefix"; then
21117  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21118set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21119{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21120$as_echo_n "checking for $ac_word... " >&6; }
21121if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21122  $as_echo_n "(cached) " >&6
21123else
21124  case $PKG_CONFIG in
21125  [\\/]* | ?:[\\/]*)
21126  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21127  ;;
21128  *)
21129  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21130for as_dir in $PATH
21131do
21132  IFS=$as_save_IFS
21133  test -z "$as_dir" && as_dir=.
21134  for ac_exec_ext in '' $ac_executable_extensions; do
21135  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21136    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21137    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21138    break 2
21139  fi
21140done
21141done
21142IFS=$as_save_IFS
21143
21144  ;;
21145esac
21146fi
21147PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21148if test -n "$PKG_CONFIG"; then
21149  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21150$as_echo "$PKG_CONFIG" >&6; }
21151else
21152  { $as_echo "$as_me:$LINENO: result: no" >&5
21153$as_echo "no" >&6; }
21154fi
21155
21156
21157fi
21158if test -z "$ac_cv_path_PKG_CONFIG"; then
21159  ac_pt_PKG_CONFIG=$PKG_CONFIG
21160  # Extract the first word of "pkg-config", so it can be a program name with args.
21161set dummy pkg-config; ac_word=$2
21162{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21163$as_echo_n "checking for $ac_word... " >&6; }
21164if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21165  $as_echo_n "(cached) " >&6
21166else
21167  case $ac_pt_PKG_CONFIG in
21168  [\\/]* | ?:[\\/]*)
21169  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21170  ;;
21171  *)
21172  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21173for as_dir in $PATH
21174do
21175  IFS=$as_save_IFS
21176  test -z "$as_dir" && as_dir=.
21177  for ac_exec_ext in '' $ac_executable_extensions; do
21178  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21179    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21180    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21181    break 2
21182  fi
21183done
21184done
21185IFS=$as_save_IFS
21186
21187  ;;
21188esac
21189fi
21190ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21191if test -n "$ac_pt_PKG_CONFIG"; then
21192  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21193$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21194else
21195  { $as_echo "$as_me:$LINENO: result: no" >&5
21196$as_echo "no" >&6; }
21197fi
21198
21199  if test "x$ac_pt_PKG_CONFIG" = x; then
21200    PKG_CONFIG=""
21201  else
21202    case $cross_compiling:$ac_tool_warned in
21203yes:)
21204{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21206ac_tool_warned=yes ;;
21207esac
21208    PKG_CONFIG=$ac_pt_PKG_CONFIG
21209  fi
21210else
21211  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21212fi
21213
21214fi
21215if test -n "$PKG_CONFIG"; then
21216	_pkg_min_version=0.9.0
21217	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21218$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21219	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21220		{ $as_echo "$as_me:$LINENO: result: yes" >&5
21221$as_echo "yes" >&6; }
21222	else
21223		{ $as_echo "$as_me:$LINENO: result: no" >&5
21224$as_echo "no" >&6; }
21225		PKG_CONFIG=""
21226	fi
21227
21228fi
21229
21230pkg_failed=no
21231{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
21232$as_echo_n "checking for XORG... " >&6; }
21233
21234if test -n "$XORG_CFLAGS"; then
21235    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21236 elif test -n "$PKG_CONFIG"; then
21237    if test -n "$PKG_CONFIG" && \
21238    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\"") >&5
21239  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
21240  ac_status=$?
21241  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242  (exit $ac_status); }; then
21243  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21244else
21245  pkg_failed=yes
21246fi
21247 else
21248    pkg_failed=untried
21249fi
21250if test -n "$XORG_LIBS"; then
21251    pkg_cv_XORG_LIBS="$XORG_LIBS"
21252 elif test -n "$PKG_CONFIG"; then
21253    if test -n "$PKG_CONFIG" && \
21254    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\"") >&5
21255  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
21256  ac_status=$?
21257  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258  (exit $ac_status); }; then
21259  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21260else
21261  pkg_failed=yes
21262fi
21263 else
21264    pkg_failed=untried
21265fi
21266
21267
21268
21269if test $pkg_failed = yes; then
21270
21271if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21272        _pkg_short_errors_supported=yes
21273else
21274        _pkg_short_errors_supported=no
21275fi
21276        if test $_pkg_short_errors_supported = yes; then
21277	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1`
21278        else
21279	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1`
21280        fi
21281	# Put the nasty error message in config.log where it belongs
21282	echo "$XORG_PKG_ERRORS" >&5
21283
21284	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met:
21285
21286$XORG_PKG_ERRORS
21287
21288Consider adjusting the PKG_CONFIG_PATH environment variable if you
21289installed software in a non-standard prefix.
21290
21291Alternatively, you may set the environment variables XORG_CFLAGS
21292and XORG_LIBS to avoid the need to call pkg-config.
21293See the pkg-config man page for more details.
21294" >&5
21295$as_echo "$as_me: error: Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met:
21296
21297$XORG_PKG_ERRORS
21298
21299Consider adjusting the PKG_CONFIG_PATH environment variable if you
21300installed software in a non-standard prefix.
21301
21302Alternatively, you may set the environment variables XORG_CFLAGS
21303and XORG_LIBS to avoid the need to call pkg-config.
21304See the pkg-config man page for more details.
21305" >&2;}
21306   { (exit 1); exit 1; }; }
21307elif test $pkg_failed = untried; then
21308	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21310{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21311is in your PATH or set the PKG_CONFIG environment variable to the full
21312path to pkg-config.
21313
21314Alternatively, you may set the environment variables XORG_CFLAGS
21315and XORG_LIBS to avoid the need to call pkg-config.
21316See the pkg-config man page for more details.
21317
21318To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21319See \`config.log' for more details." >&5
21320$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21321is in your PATH or set the PKG_CONFIG environment variable to the full
21322path to pkg-config.
21323
21324Alternatively, you may set the environment variables XORG_CFLAGS
21325and XORG_LIBS to avoid the need to call pkg-config.
21326See the pkg-config man page for more details.
21327
21328To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21329See \`config.log' for more details." >&2;}
21330   { (exit 1); exit 1; }; }; }
21331else
21332	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21333	XORG_LIBS=$pkg_cv_XORG_LIBS
21334        { $as_echo "$as_me:$LINENO: result: yes" >&5
21335$as_echo "yes" >&6; }
21336	:
21337fi
21338sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21339
21340# Checks for libraries.
21341SAVE_CPPFLAGS="$CPPFLAGS"
21342CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
21343{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
21344$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
21345if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
21346  $as_echo_n "(cached) " >&6
21347else
21348  cat >conftest.$ac_ext <<_ACEOF
21349/* confdefs.h.  */
21350_ACEOF
21351cat confdefs.h >>conftest.$ac_ext
21352cat >>conftest.$ac_ext <<_ACEOF
21353/* end confdefs.h.  */
21354#include "xorg-server.h"
21355
21356int
21357main ()
21358{
21359#ifndef XSERVER_LIBPCIACCESS
21360  (void) XSERVER_LIBPCIACCESS;
21361#endif
21362
21363  ;
21364  return 0;
21365}
21366_ACEOF
21367rm -f conftest.$ac_objext
21368if { (ac_try="$ac_compile"
21369case "(($ac_try" in
21370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371  *) ac_try_echo=$ac_try;;
21372esac
21373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21374$as_echo "$ac_try_echo") >&5
21375  (eval "$ac_compile") 2>conftest.er1
21376  ac_status=$?
21377  grep -v '^ *+' conftest.er1 >conftest.err
21378  rm -f conftest.er1
21379  cat conftest.err >&5
21380  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381  (exit $ac_status); } && {
21382	 test -z "$ac_c_werror_flag" ||
21383	 test ! -s conftest.err
21384       } && test -s conftest.$ac_objext; then
21385  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
21386else
21387  $as_echo "$as_me: failed program was:" >&5
21388sed 's/^/| /' conftest.$ac_ext >&5
21389
21390	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
21391fi
21392
21393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21394fi
21395{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
21396$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
21397if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
21398  XSERVER_LIBPCIACCESS=yes
21399else
21400  XSERVER_LIBPCIACCESS=no
21401fi
21402
21403if test "${ac_cv_header_xf1bpp_h+set}" = set; then
21404  { $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
21405$as_echo_n "checking for xf1bpp.h... " >&6; }
21406if test "${ac_cv_header_xf1bpp_h+set}" = set; then
21407  $as_echo_n "(cached) " >&6
21408fi
21409{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
21410$as_echo "$ac_cv_header_xf1bpp_h" >&6; }
21411else
21412  # Is the header compilable?
21413{ $as_echo "$as_me:$LINENO: checking xf1bpp.h usability" >&5
21414$as_echo_n "checking xf1bpp.h usability... " >&6; }
21415cat >conftest.$ac_ext <<_ACEOF
21416/* confdefs.h.  */
21417_ACEOF
21418cat confdefs.h >>conftest.$ac_ext
21419cat >>conftest.$ac_ext <<_ACEOF
21420/* end confdefs.h.  */
21421$ac_includes_default
21422#include <xf1bpp.h>
21423_ACEOF
21424rm -f conftest.$ac_objext
21425if { (ac_try="$ac_compile"
21426case "(($ac_try" in
21427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21428  *) ac_try_echo=$ac_try;;
21429esac
21430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21431$as_echo "$ac_try_echo") >&5
21432  (eval "$ac_compile") 2>conftest.er1
21433  ac_status=$?
21434  grep -v '^ *+' conftest.er1 >conftest.err
21435  rm -f conftest.er1
21436  cat conftest.err >&5
21437  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438  (exit $ac_status); } && {
21439	 test -z "$ac_c_werror_flag" ||
21440	 test ! -s conftest.err
21441       } && test -s conftest.$ac_objext; then
21442  ac_header_compiler=yes
21443else
21444  $as_echo "$as_me: failed program was:" >&5
21445sed 's/^/| /' conftest.$ac_ext >&5
21446
21447	ac_header_compiler=no
21448fi
21449
21450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21451{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21452$as_echo "$ac_header_compiler" >&6; }
21453
21454# Is the header present?
21455{ $as_echo "$as_me:$LINENO: checking xf1bpp.h presence" >&5
21456$as_echo_n "checking xf1bpp.h presence... " >&6; }
21457cat >conftest.$ac_ext <<_ACEOF
21458/* confdefs.h.  */
21459_ACEOF
21460cat confdefs.h >>conftest.$ac_ext
21461cat >>conftest.$ac_ext <<_ACEOF
21462/* end confdefs.h.  */
21463#include <xf1bpp.h>
21464_ACEOF
21465if { (ac_try="$ac_cpp conftest.$ac_ext"
21466case "(($ac_try" in
21467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21468  *) ac_try_echo=$ac_try;;
21469esac
21470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21471$as_echo "$ac_try_echo") >&5
21472  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21473  ac_status=$?
21474  grep -v '^ *+' conftest.er1 >conftest.err
21475  rm -f conftest.er1
21476  cat conftest.err >&5
21477  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478  (exit $ac_status); } >/dev/null && {
21479	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21480	 test ! -s conftest.err
21481       }; then
21482  ac_header_preproc=yes
21483else
21484  $as_echo "$as_me: failed program was:" >&5
21485sed 's/^/| /' conftest.$ac_ext >&5
21486
21487  ac_header_preproc=no
21488fi
21489
21490rm -f conftest.err conftest.$ac_ext
21491{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21492$as_echo "$ac_header_preproc" >&6; }
21493
21494# So?  What about this header?
21495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21496  yes:no: )
21497    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21498$as_echo "$as_me: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21499    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the compiler's result" >&5
21500$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the compiler's result" >&2;}
21501    ac_header_preproc=yes
21502    ;;
21503  no:yes:* )
21504    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: present but cannot be compiled" >&5
21505$as_echo "$as_me: WARNING: xf1bpp.h: present but cannot be compiled" >&2;}
21506    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h:     check for missing prerequisite headers?" >&5
21507$as_echo "$as_me: WARNING: xf1bpp.h:     check for missing prerequisite headers?" >&2;}
21508    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: see the Autoconf documentation" >&5
21509$as_echo "$as_me: WARNING: xf1bpp.h: see the Autoconf documentation" >&2;}
21510    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h:     section \"Present But Cannot Be Compiled\"" >&5
21511$as_echo "$as_me: WARNING: xf1bpp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21512    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&5
21513$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&2;}
21514    { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&5
21515$as_echo "$as_me: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&2;}
21516    ( cat <<\_ASBOX
21517## ---------------------------------------------------------------------- ##
21518## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
21519## ---------------------------------------------------------------------- ##
21520_ASBOX
21521     ) | sed "s/^/$as_me: WARNING:     /" >&2
21522    ;;
21523esac
21524{ $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
21525$as_echo_n "checking for xf1bpp.h... " >&6; }
21526if test "${ac_cv_header_xf1bpp_h+set}" = set; then
21527  $as_echo_n "(cached) " >&6
21528else
21529  ac_cv_header_xf1bpp_h=$ac_header_preproc
21530fi
21531{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
21532$as_echo "$ac_cv_header_xf1bpp_h" >&6; }
21533
21534fi
21535if test "x$ac_cv_header_xf1bpp_h" = x""yes; then
21536
21537cat >>confdefs.h <<\_ACEOF
21538#define HAVE_XF1BPP 1
21539_ACEOF
21540
21541fi
21542
21543
21544if test "${ac_cv_header_xf4bpp_h+set}" = set; then
21545  { $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
21546$as_echo_n "checking for xf4bpp.h... " >&6; }
21547if test "${ac_cv_header_xf4bpp_h+set}" = set; then
21548  $as_echo_n "(cached) " >&6
21549fi
21550{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
21551$as_echo "$ac_cv_header_xf4bpp_h" >&6; }
21552else
21553  # Is the header compilable?
21554{ $as_echo "$as_me:$LINENO: checking xf4bpp.h usability" >&5
21555$as_echo_n "checking xf4bpp.h usability... " >&6; }
21556cat >conftest.$ac_ext <<_ACEOF
21557/* confdefs.h.  */
21558_ACEOF
21559cat confdefs.h >>conftest.$ac_ext
21560cat >>conftest.$ac_ext <<_ACEOF
21561/* end confdefs.h.  */
21562$ac_includes_default
21563#include <xf4bpp.h>
21564_ACEOF
21565rm -f conftest.$ac_objext
21566if { (ac_try="$ac_compile"
21567case "(($ac_try" in
21568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21569  *) ac_try_echo=$ac_try;;
21570esac
21571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21572$as_echo "$ac_try_echo") >&5
21573  (eval "$ac_compile") 2>conftest.er1
21574  ac_status=$?
21575  grep -v '^ *+' conftest.er1 >conftest.err
21576  rm -f conftest.er1
21577  cat conftest.err >&5
21578  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579  (exit $ac_status); } && {
21580	 test -z "$ac_c_werror_flag" ||
21581	 test ! -s conftest.err
21582       } && test -s conftest.$ac_objext; then
21583  ac_header_compiler=yes
21584else
21585  $as_echo "$as_me: failed program was:" >&5
21586sed 's/^/| /' conftest.$ac_ext >&5
21587
21588	ac_header_compiler=no
21589fi
21590
21591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21592{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21593$as_echo "$ac_header_compiler" >&6; }
21594
21595# Is the header present?
21596{ $as_echo "$as_me:$LINENO: checking xf4bpp.h presence" >&5
21597$as_echo_n "checking xf4bpp.h presence... " >&6; }
21598cat >conftest.$ac_ext <<_ACEOF
21599/* confdefs.h.  */
21600_ACEOF
21601cat confdefs.h >>conftest.$ac_ext
21602cat >>conftest.$ac_ext <<_ACEOF
21603/* end confdefs.h.  */
21604#include <xf4bpp.h>
21605_ACEOF
21606if { (ac_try="$ac_cpp conftest.$ac_ext"
21607case "(($ac_try" in
21608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609  *) ac_try_echo=$ac_try;;
21610esac
21611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21612$as_echo "$ac_try_echo") >&5
21613  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21614  ac_status=$?
21615  grep -v '^ *+' conftest.er1 >conftest.err
21616  rm -f conftest.er1
21617  cat conftest.err >&5
21618  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619  (exit $ac_status); } >/dev/null && {
21620	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21621	 test ! -s conftest.err
21622       }; then
21623  ac_header_preproc=yes
21624else
21625  $as_echo "$as_me: failed program was:" >&5
21626sed 's/^/| /' conftest.$ac_ext >&5
21627
21628  ac_header_preproc=no
21629fi
21630
21631rm -f conftest.err conftest.$ac_ext
21632{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21633$as_echo "$ac_header_preproc" >&6; }
21634
21635# So?  What about this header?
21636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21637  yes:no: )
21638    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
21639$as_echo "$as_me: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21640    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the compiler's result" >&5
21641$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the compiler's result" >&2;}
21642    ac_header_preproc=yes
21643    ;;
21644  no:yes:* )
21645    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: present but cannot be compiled" >&5
21646$as_echo "$as_me: WARNING: xf4bpp.h: present but cannot be compiled" >&2;}
21647    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h:     check for missing prerequisite headers?" >&5
21648$as_echo "$as_me: WARNING: xf4bpp.h:     check for missing prerequisite headers?" >&2;}
21649    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: see the Autoconf documentation" >&5
21650$as_echo "$as_me: WARNING: xf4bpp.h: see the Autoconf documentation" >&2;}
21651    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h:     section \"Present But Cannot Be Compiled\"" >&5
21652$as_echo "$as_me: WARNING: xf4bpp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21653    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&5
21654$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&2;}
21655    { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&5
21656$as_echo "$as_me: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&2;}
21657    ( cat <<\_ASBOX
21658## ---------------------------------------------------------------------- ##
21659## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
21660## ---------------------------------------------------------------------- ##
21661_ASBOX
21662     ) | sed "s/^/$as_me: WARNING:     /" >&2
21663    ;;
21664esac
21665{ $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
21666$as_echo_n "checking for xf4bpp.h... " >&6; }
21667if test "${ac_cv_header_xf4bpp_h+set}" = set; then
21668  $as_echo_n "(cached) " >&6
21669else
21670  ac_cv_header_xf4bpp_h=$ac_header_preproc
21671fi
21672{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
21673$as_echo "$ac_cv_header_xf4bpp_h" >&6; }
21674
21675fi
21676if test "x$ac_cv_header_xf4bpp_h" = x""yes; then
21677
21678cat >>confdefs.h <<\_ACEOF
21679#define HAVE_XF4BPP 1
21680_ACEOF
21681
21682fi
21683
21684
21685CPPFLAGS="$SAVE_CPPFLAGS"
21686
21687if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21688
21689pkg_failed=no
21690{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
21691$as_echo_n "checking for PCIACCESS... " >&6; }
21692
21693if test -n "$PCIACCESS_CFLAGS"; then
21694    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
21695 elif test -n "$PKG_CONFIG"; then
21696    if test -n "$PKG_CONFIG" && \
21697    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21698  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21699  ac_status=$?
21700  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701  (exit $ac_status); }; then
21702  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
21703else
21704  pkg_failed=yes
21705fi
21706 else
21707    pkg_failed=untried
21708fi
21709if test -n "$PCIACCESS_LIBS"; then
21710    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
21711 elif test -n "$PKG_CONFIG"; then
21712    if test -n "$PKG_CONFIG" && \
21713    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21714  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21715  ac_status=$?
21716  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717  (exit $ac_status); }; then
21718  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
21719else
21720  pkg_failed=yes
21721fi
21722 else
21723    pkg_failed=untried
21724fi
21725
21726
21727
21728if test $pkg_failed = yes; then
21729
21730if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21731        _pkg_short_errors_supported=yes
21732else
21733        _pkg_short_errors_supported=no
21734fi
21735        if test $_pkg_short_errors_supported = yes; then
21736	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
21737        else
21738	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
21739        fi
21740	# Put the nasty error message in config.log where it belongs
21741	echo "$PCIACCESS_PKG_ERRORS" >&5
21742
21743	{ { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
21744
21745$PCIACCESS_PKG_ERRORS
21746
21747Consider adjusting the PKG_CONFIG_PATH environment variable if you
21748installed software in a non-standard prefix.
21749
21750Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21751and PCIACCESS_LIBS to avoid the need to call pkg-config.
21752See the pkg-config man page for more details.
21753" >&5
21754$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
21755
21756$PCIACCESS_PKG_ERRORS
21757
21758Consider adjusting the PKG_CONFIG_PATH environment variable if you
21759installed software in a non-standard prefix.
21760
21761Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21762and PCIACCESS_LIBS to avoid the need to call pkg-config.
21763See the pkg-config man page for more details.
21764" >&2;}
21765   { (exit 1); exit 1; }; }
21766elif test $pkg_failed = untried; then
21767	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21769{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21770is in your PATH or set the PKG_CONFIG environment variable to the full
21771path to pkg-config.
21772
21773Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21774and PCIACCESS_LIBS to avoid the need to call pkg-config.
21775See the pkg-config man page for more details.
21776
21777To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21778See \`config.log' for more details." >&5
21779$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21780is in your PATH or set the PKG_CONFIG environment variable to the full
21781path to pkg-config.
21782
21783Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21784and PCIACCESS_LIBS to avoid the need to call pkg-config.
21785See the pkg-config man page for more details.
21786
21787To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21788See \`config.log' for more details." >&2;}
21789   { (exit 1); exit 1; }; }; }
21790else
21791	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
21792	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
21793        { $as_echo "$as_me:$LINENO: result: yes" >&5
21794$as_echo "yes" >&6; }
21795	:
21796fi
21797    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
21798fi
21799 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21800  XSERVER_LIBPCIACCESS_TRUE=
21801  XSERVER_LIBPCIACCESS_FALSE='#'
21802else
21803  XSERVER_LIBPCIACCESS_TRUE='#'
21804  XSERVER_LIBPCIACCESS_FALSE=
21805fi
21806
21807
21808# Required by exa.h
21809
21810cat >>confdefs.h <<\_ACEOF
21811#define EXA_DRIVER_KNOWN_MAJOR 3
21812_ACEOF
21813
21814
21815# Checks for header files.
21816{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21817$as_echo_n "checking for ANSI C header files... " >&6; }
21818if test "${ac_cv_header_stdc+set}" = set; then
21819  $as_echo_n "(cached) " >&6
21820else
21821  cat >conftest.$ac_ext <<_ACEOF
21822/* confdefs.h.  */
21823_ACEOF
21824cat confdefs.h >>conftest.$ac_ext
21825cat >>conftest.$ac_ext <<_ACEOF
21826/* end confdefs.h.  */
21827#include <stdlib.h>
21828#include <stdarg.h>
21829#include <string.h>
21830#include <float.h>
21831
21832int
21833main ()
21834{
21835
21836  ;
21837  return 0;
21838}
21839_ACEOF
21840rm -f conftest.$ac_objext
21841if { (ac_try="$ac_compile"
21842case "(($ac_try" in
21843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844  *) ac_try_echo=$ac_try;;
21845esac
21846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21847$as_echo "$ac_try_echo") >&5
21848  (eval "$ac_compile") 2>conftest.er1
21849  ac_status=$?
21850  grep -v '^ *+' conftest.er1 >conftest.err
21851  rm -f conftest.er1
21852  cat conftest.err >&5
21853  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854  (exit $ac_status); } && {
21855	 test -z "$ac_c_werror_flag" ||
21856	 test ! -s conftest.err
21857       } && test -s conftest.$ac_objext; then
21858  ac_cv_header_stdc=yes
21859else
21860  $as_echo "$as_me: failed program was:" >&5
21861sed 's/^/| /' conftest.$ac_ext >&5
21862
21863	ac_cv_header_stdc=no
21864fi
21865
21866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21867
21868if test $ac_cv_header_stdc = yes; then
21869  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21870  cat >conftest.$ac_ext <<_ACEOF
21871/* confdefs.h.  */
21872_ACEOF
21873cat confdefs.h >>conftest.$ac_ext
21874cat >>conftest.$ac_ext <<_ACEOF
21875/* end confdefs.h.  */
21876#include <string.h>
21877
21878_ACEOF
21879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21880  $EGREP "memchr" >/dev/null 2>&1; then
21881  :
21882else
21883  ac_cv_header_stdc=no
21884fi
21885rm -f conftest*
21886
21887fi
21888
21889if test $ac_cv_header_stdc = yes; then
21890  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21891  cat >conftest.$ac_ext <<_ACEOF
21892/* confdefs.h.  */
21893_ACEOF
21894cat confdefs.h >>conftest.$ac_ext
21895cat >>conftest.$ac_ext <<_ACEOF
21896/* end confdefs.h.  */
21897#include <stdlib.h>
21898
21899_ACEOF
21900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21901  $EGREP "free" >/dev/null 2>&1; then
21902  :
21903else
21904  ac_cv_header_stdc=no
21905fi
21906rm -f conftest*
21907
21908fi
21909
21910if test $ac_cv_header_stdc = yes; then
21911  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21912  if test "$cross_compiling" = yes; then
21913  :
21914else
21915  cat >conftest.$ac_ext <<_ACEOF
21916/* confdefs.h.  */
21917_ACEOF
21918cat confdefs.h >>conftest.$ac_ext
21919cat >>conftest.$ac_ext <<_ACEOF
21920/* end confdefs.h.  */
21921#include <ctype.h>
21922#include <stdlib.h>
21923#if ((' ' & 0x0FF) == 0x020)
21924# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21925# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21926#else
21927# define ISLOWER(c) \
21928		   (('a' <= (c) && (c) <= 'i') \
21929		     || ('j' <= (c) && (c) <= 'r') \
21930		     || ('s' <= (c) && (c) <= 'z'))
21931# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21932#endif
21933
21934#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21935int
21936main ()
21937{
21938  int i;
21939  for (i = 0; i < 256; i++)
21940    if (XOR (islower (i), ISLOWER (i))
21941	|| toupper (i) != TOUPPER (i))
21942      return 2;
21943  return 0;
21944}
21945_ACEOF
21946rm -f conftest$ac_exeext
21947if { (ac_try="$ac_link"
21948case "(($ac_try" in
21949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21950  *) ac_try_echo=$ac_try;;
21951esac
21952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21953$as_echo "$ac_try_echo") >&5
21954  (eval "$ac_link") 2>&5
21955  ac_status=$?
21956  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21958  { (case "(($ac_try" in
21959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21960  *) ac_try_echo=$ac_try;;
21961esac
21962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21963$as_echo "$ac_try_echo") >&5
21964  (eval "$ac_try") 2>&5
21965  ac_status=$?
21966  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967  (exit $ac_status); }; }; then
21968  :
21969else
21970  $as_echo "$as_me: program exited with status $ac_status" >&5
21971$as_echo "$as_me: failed program was:" >&5
21972sed 's/^/| /' conftest.$ac_ext >&5
21973
21974( exit $ac_status )
21975ac_cv_header_stdc=no
21976fi
21977rm -rf conftest.dSYM
21978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21979fi
21980
21981
21982fi
21983fi
21984{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21985$as_echo "$ac_cv_header_stdc" >&6; }
21986if test $ac_cv_header_stdc = yes; then
21987
21988cat >>confdefs.h <<\_ACEOF
21989#define STDC_HEADERS 1
21990_ACEOF
21991
21992fi
21993
21994
21995
21996
21997
21998DRIVER_NAME=i128
21999
22000
22001
22002
22003
22004if test x$APP_MAN_SUFFIX = x    ; then
22005    APP_MAN_SUFFIX=1
22006fi
22007if test x$APP_MAN_DIR = x    ; then
22008    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
22009fi
22010
22011if test x$LIB_MAN_SUFFIX = x    ; then
22012    LIB_MAN_SUFFIX=3
22013fi
22014if test x$LIB_MAN_DIR = x    ; then
22015    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
22016fi
22017
22018if test x$FILE_MAN_SUFFIX = x    ; then
22019    case $host_os in
22020	solaris*)	FILE_MAN_SUFFIX=4  ;;
22021	*)		FILE_MAN_SUFFIX=5  ;;
22022    esac
22023fi
22024if test x$FILE_MAN_DIR = x    ; then
22025    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
22026fi
22027
22028if test x$MISC_MAN_SUFFIX = x    ; then
22029    case $host_os in
22030	solaris*)	MISC_MAN_SUFFIX=5  ;;
22031	*)		MISC_MAN_SUFFIX=7  ;;
22032    esac
22033fi
22034if test x$MISC_MAN_DIR = x    ; then
22035    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
22036fi
22037
22038if test x$DRIVER_MAN_SUFFIX = x    ; then
22039    case $host_os in
22040	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
22041	*)		DRIVER_MAN_SUFFIX=4  ;;
22042    esac
22043fi
22044if test x$DRIVER_MAN_DIR = x    ; then
22045    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
22046fi
22047
22048if test x$ADMIN_MAN_SUFFIX = x    ; then
22049    case $host_os in
22050	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
22051	*)		ADMIN_MAN_SUFFIX=8  ;;
22052    esac
22053fi
22054if test x$ADMIN_MAN_DIR = x    ; then
22055    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
22056fi
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074# Check whether --with-release-version was given.
22075if test "${with_release_version+set}" = set; then
22076  withval=$with_release_version; RELEASE_VERSION="$withval"
22077else
22078  RELEASE_VERSION=""
22079fi
22080
22081	if test "x$RELEASE_VERSION" != "x"; then
22082		PACKAGE="$PACKAGE-$RELEASE_VERSION"
22083		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
22084		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
22085$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
22086	fi
22087
22088cat >>confdefs.h <<_ACEOF
22089#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
22090_ACEOF
22091
22092	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
22093	if test "x$PVM" = "x"; then
22094		PVM="0"
22095	fi
22096
22097cat >>confdefs.h <<_ACEOF
22098#define PACKAGE_VERSION_MINOR $PVM
22099_ACEOF
22100
22101	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
22102	if test "x$PVP" = "x"; then
22103		PVP="0"
22104	fi
22105
22106cat >>confdefs.h <<_ACEOF
22107#define PACKAGE_VERSION_PATCHLEVEL $PVP
22108_ACEOF
22109
22110
22111
22112
22113if test x$XORG_SGML_PATH = x ; then
22114    XORG_SGML_PATH=$prefix/share/sgml
22115fi
22116HAVE_DEFS_ENT=
22117
22118if test x"$cross_compiling" = x"yes" ; then
22119  HAVE_DEFS_ENT=no
22120else
22121  as_ac_File=`$as_echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh`
22122{ $as_echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5
22123$as_echo_n "checking for $XORG_SGML_PATH/X11/defs.ent... " >&6; }
22124if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22125  $as_echo_n "(cached) " >&6
22126else
22127  test "$cross_compiling" = yes &&
22128  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22129$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22130   { (exit 1); exit 1; }; }
22131if test -r "$XORG_SGML_PATH/X11/defs.ent"; then
22132  eval "$as_ac_File=yes"
22133else
22134  eval "$as_ac_File=no"
22135fi
22136fi
22137ac_res=`eval 'as_val=${'$as_ac_File'}
22138		 $as_echo "$as_val"'`
22139	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22140$as_echo "$ac_res" >&6; }
22141as_val=`eval 'as_val=${'$as_ac_File'}
22142		 $as_echo "$as_val"'`
22143   if test "x$as_val" = x""yes; then
22144  HAVE_DEFS_ENT=yes
22145fi
22146
22147fi
22148
22149# Extract the first word of "linuxdoc", so it can be a program name with args.
22150set dummy linuxdoc; ac_word=$2
22151{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22152$as_echo_n "checking for $ac_word... " >&6; }
22153if test "${ac_cv_path_LINUXDOC+set}" = set; then
22154  $as_echo_n "(cached) " >&6
22155else
22156  case $LINUXDOC in
22157  [\\/]* | ?:[\\/]*)
22158  ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path.
22159  ;;
22160  *)
22161  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22162for as_dir in $PATH
22163do
22164  IFS=$as_save_IFS
22165  test -z "$as_dir" && as_dir=.
22166  for ac_exec_ext in '' $ac_executable_extensions; do
22167  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22168    ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext"
22169    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22170    break 2
22171  fi
22172done
22173done
22174IFS=$as_save_IFS
22175
22176  ;;
22177esac
22178fi
22179LINUXDOC=$ac_cv_path_LINUXDOC
22180if test -n "$LINUXDOC"; then
22181  { $as_echo "$as_me:$LINENO: result: $LINUXDOC" >&5
22182$as_echo "$LINUXDOC" >&6; }
22183else
22184  { $as_echo "$as_me:$LINENO: result: no" >&5
22185$as_echo "no" >&6; }
22186fi
22187
22188
22189# Extract the first word of "ps2pdf", so it can be a program name with args.
22190set dummy ps2pdf; ac_word=$2
22191{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22192$as_echo_n "checking for $ac_word... " >&6; }
22193if test "${ac_cv_path_PS2PDF+set}" = set; then
22194  $as_echo_n "(cached) " >&6
22195else
22196  case $PS2PDF in
22197  [\\/]* | ?:[\\/]*)
22198  ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
22199  ;;
22200  *)
22201  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22202for as_dir in $PATH
22203do
22204  IFS=$as_save_IFS
22205  test -z "$as_dir" && as_dir=.
22206  for ac_exec_ext in '' $ac_executable_extensions; do
22207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22208    ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
22209    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22210    break 2
22211  fi
22212done
22213done
22214IFS=$as_save_IFS
22215
22216  ;;
22217esac
22218fi
22219PS2PDF=$ac_cv_path_PS2PDF
22220if test -n "$PS2PDF"; then
22221  { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5
22222$as_echo "$PS2PDF" >&6; }
22223else
22224  { $as_echo "$as_me:$LINENO: result: no" >&5
22225$as_echo "no" >&6; }
22226fi
22227
22228
22229
22230{ $as_echo "$as_me:$LINENO: checking Whether to build documentation" >&5
22231$as_echo_n "checking Whether to build documentation... " >&6; }
22232
22233if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
22234   BUILDDOC=yes
22235else
22236   BUILDDOC=no
22237fi
22238
22239 if test x$BUILDDOC = xyes; then
22240  BUILD_LINUXDOC_TRUE=
22241  BUILD_LINUXDOC_FALSE='#'
22242else
22243  BUILD_LINUXDOC_TRUE='#'
22244  BUILD_LINUXDOC_FALSE=
22245fi
22246
22247
22248{ $as_echo "$as_me:$LINENO: result: $BUILDDOC" >&5
22249$as_echo "$BUILDDOC" >&6; }
22250
22251{ $as_echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5
22252$as_echo_n "checking Whether to build pdf documentation... " >&6; }
22253
22254if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
22255   BUILDPDFDOC=yes
22256else
22257   BUILDPDFDOC=no
22258fi
22259
22260 if test x$BUILDPDFDOC = xyes; then
22261  BUILD_PDFDOC_TRUE=
22262  BUILD_PDFDOC_FALSE='#'
22263else
22264  BUILD_PDFDOC_TRUE='#'
22265  BUILD_PDFDOC_FALSE=
22266fi
22267
22268
22269{ $as_echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5
22270$as_echo "$BUILDPDFDOC" >&6; }
22271
22272MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
22273MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
22274MAKE_PDF="$PS2PDF"
22275MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC  -B html --split=0"
22276
22277
22278
22279
22280
22281
22282
22283ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
22284
22285cat >confcache <<\_ACEOF
22286# This file is a shell script that caches the results of configure
22287# tests run on this system so they can be shared between configure
22288# scripts and configure runs, see configure's option --config-cache.
22289# It is not useful on other systems.  If it contains results you don't
22290# want to keep, you may remove or edit it.
22291#
22292# config.status only pays attention to the cache file if you give it
22293# the --recheck option to rerun configure.
22294#
22295# `ac_cv_env_foo' variables (set or unset) will be overridden when
22296# loading this file, other *unset* `ac_cv_foo' will be assigned the
22297# following values.
22298
22299_ACEOF
22300
22301# The following way of writing the cache mishandles newlines in values,
22302# but we know of no workaround that is simple, portable, and efficient.
22303# So, we kill variables containing newlines.
22304# Ultrix sh set writes to stderr and can't be redirected directly,
22305# and sets the high bit in the cache file unless we assign to the vars.
22306(
22307  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22308    eval ac_val=\$$ac_var
22309    case $ac_val in #(
22310    *${as_nl}*)
22311      case $ac_var in #(
22312      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22313$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22314      esac
22315      case $ac_var in #(
22316      _ | IFS | as_nl) ;; #(
22317      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22318      *) $as_unset $ac_var ;;
22319      esac ;;
22320    esac
22321  done
22322
22323  (set) 2>&1 |
22324    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22325    *${as_nl}ac_space=\ *)
22326      # `set' does not quote correctly, so add quotes (double-quote
22327      # substitution turns \\\\ into \\, and sed turns \\ into \).
22328      sed -n \
22329	"s/'/'\\\\''/g;
22330	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22331      ;; #(
22332    *)
22333      # `set' quotes correctly as required by POSIX, so do not add quotes.
22334      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22335      ;;
22336    esac |
22337    sort
22338) |
22339  sed '
22340     /^ac_cv_env_/b end
22341     t clear
22342     :clear
22343     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22344     t end
22345     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22346     :end' >>confcache
22347if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22348  if test -w "$cache_file"; then
22349    test "x$cache_file" != "x/dev/null" &&
22350      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22351$as_echo "$as_me: updating cache $cache_file" >&6;}
22352    cat confcache >$cache_file
22353  else
22354    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22355$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22356  fi
22357fi
22358rm -f confcache
22359
22360test "x$prefix" = xNONE && prefix=$ac_default_prefix
22361# Let make expand exec_prefix.
22362test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22363
22364DEFS=-DHAVE_CONFIG_H
22365
22366ac_libobjs=
22367ac_ltlibobjs=
22368for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22369  # 1. Remove the extension, and $U if already installed.
22370  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22371  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22372  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22373  #    will be set to the directory where LIBOBJS objects are built.
22374  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22375  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22376done
22377LIBOBJS=$ac_libobjs
22378
22379LTLIBOBJS=$ac_ltlibobjs
22380
22381
22382 if test -n "$EXEEXT"; then
22383  am__EXEEXT_TRUE=
22384  am__EXEEXT_FALSE='#'
22385else
22386  am__EXEEXT_TRUE='#'
22387  am__EXEEXT_FALSE=
22388fi
22389
22390if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22391  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22392Usually this means the macro was only invoked conditionally." >&5
22393$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22394Usually this means the macro was only invoked conditionally." >&2;}
22395   { (exit 1); exit 1; }; }
22396fi
22397if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22398  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22399Usually this means the macro was only invoked conditionally." >&5
22400$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22401Usually this means the macro was only invoked conditionally." >&2;}
22402   { (exit 1); exit 1; }; }
22403fi
22404if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22405  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22406Usually this means the macro was only invoked conditionally." >&5
22407$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22408Usually this means the macro was only invoked conditionally." >&2;}
22409   { (exit 1); exit 1; }; }
22410fi
22411if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22412  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22413Usually this means the macro was only invoked conditionally." >&5
22414$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22415Usually this means the macro was only invoked conditionally." >&2;}
22416   { (exit 1); exit 1; }; }
22417fi
22418if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22419  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22420Usually this means the macro was only invoked conditionally." >&5
22421$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22422Usually this means the macro was only invoked conditionally." >&2;}
22423   { (exit 1); exit 1; }; }
22424fi
22425if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
22426  { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
22427Usually this means the macro was only invoked conditionally." >&5
22428$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
22429Usually this means the macro was only invoked conditionally." >&2;}
22430   { (exit 1); exit 1; }; }
22431fi
22432if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then
22433  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined.
22434Usually this means the macro was only invoked conditionally." >&5
22435$as_echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined.
22436Usually this means the macro was only invoked conditionally." >&2;}
22437   { (exit 1); exit 1; }; }
22438fi
22439if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
22440  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined.
22441Usually this means the macro was only invoked conditionally." >&5
22442$as_echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined.
22443Usually this means the macro was only invoked conditionally." >&2;}
22444   { (exit 1); exit 1; }; }
22445fi
22446
22447: ${CONFIG_STATUS=./config.status}
22448ac_write_fail=0
22449ac_clean_files_save=$ac_clean_files
22450ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22451{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22452$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22453cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22454#! $SHELL
22455# Generated by $as_me.
22456# Run this file to recreate the current configuration.
22457# Compiler output produced by configure, useful for debugging
22458# configure, is in config.log if it exists.
22459
22460debug=false
22461ac_cs_recheck=false
22462ac_cs_silent=false
22463SHELL=\${CONFIG_SHELL-$SHELL}
22464_ACEOF
22465
22466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22467## --------------------- ##
22468## M4sh Initialization.  ##
22469## --------------------- ##
22470
22471# Be more Bourne compatible
22472DUALCASE=1; export DUALCASE # for MKS sh
22473if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22474  emulate sh
22475  NULLCMD=:
22476  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22477  # is contrary to our usage.  Disable this feature.
22478  alias -g '${1+"$@"}'='"$@"'
22479  setopt NO_GLOB_SUBST
22480else
22481  case `(set -o) 2>/dev/null` in
22482  *posix*) set -o posix ;;
22483esac
22484
22485fi
22486
22487
22488
22489
22490# PATH needs CR
22491# Avoid depending upon Character Ranges.
22492as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22493as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22494as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22495as_cr_digits='0123456789'
22496as_cr_alnum=$as_cr_Letters$as_cr_digits
22497
22498as_nl='
22499'
22500export as_nl
22501# Printing a long string crashes Solaris 7 /usr/bin/printf.
22502as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22503as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22504as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22505if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22506  as_echo='printf %s\n'
22507  as_echo_n='printf %s'
22508else
22509  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22510    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22511    as_echo_n='/usr/ucb/echo -n'
22512  else
22513    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22514    as_echo_n_body='eval
22515      arg=$1;
22516      case $arg in
22517      *"$as_nl"*)
22518	expr "X$arg" : "X\\(.*\\)$as_nl";
22519	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22520      esac;
22521      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22522    '
22523    export as_echo_n_body
22524    as_echo_n='sh -c $as_echo_n_body as_echo'
22525  fi
22526  export as_echo_body
22527  as_echo='sh -c $as_echo_body as_echo'
22528fi
22529
22530# The user is always right.
22531if test "${PATH_SEPARATOR+set}" != set; then
22532  PATH_SEPARATOR=:
22533  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22534    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22535      PATH_SEPARATOR=';'
22536  }
22537fi
22538
22539# Support unset when possible.
22540if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22541  as_unset=unset
22542else
22543  as_unset=false
22544fi
22545
22546
22547# IFS
22548# We need space, tab and new line, in precisely that order.  Quoting is
22549# there to prevent editors from complaining about space-tab.
22550# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22551# splitting by setting IFS to empty value.)
22552IFS=" ""	$as_nl"
22553
22554# Find who we are.  Look in the path if we contain no directory separator.
22555case $0 in
22556  *[\\/]* ) as_myself=$0 ;;
22557  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22558for as_dir in $PATH
22559do
22560  IFS=$as_save_IFS
22561  test -z "$as_dir" && as_dir=.
22562  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22563done
22564IFS=$as_save_IFS
22565
22566     ;;
22567esac
22568# We did not find ourselves, most probably we were run as `sh COMMAND'
22569# in which case we are not to be found in the path.
22570if test "x$as_myself" = x; then
22571  as_myself=$0
22572fi
22573if test ! -f "$as_myself"; then
22574  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22575  { (exit 1); exit 1; }
22576fi
22577
22578# Work around bugs in pre-3.0 UWIN ksh.
22579for as_var in ENV MAIL MAILPATH
22580do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22581done
22582PS1='$ '
22583PS2='> '
22584PS4='+ '
22585
22586# NLS nuisances.
22587LC_ALL=C
22588export LC_ALL
22589LANGUAGE=C
22590export LANGUAGE
22591
22592# Required to use basename.
22593if expr a : '\(a\)' >/dev/null 2>&1 &&
22594   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22595  as_expr=expr
22596else
22597  as_expr=false
22598fi
22599
22600if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22601  as_basename=basename
22602else
22603  as_basename=false
22604fi
22605
22606
22607# Name of the executable.
22608as_me=`$as_basename -- "$0" ||
22609$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22610	 X"$0" : 'X\(//\)$' \| \
22611	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22612$as_echo X/"$0" |
22613    sed '/^.*\/\([^/][^/]*\)\/*$/{
22614	    s//\1/
22615	    q
22616	  }
22617	  /^X\/\(\/\/\)$/{
22618	    s//\1/
22619	    q
22620	  }
22621	  /^X\/\(\/\).*/{
22622	    s//\1/
22623	    q
22624	  }
22625	  s/.*/./; q'`
22626
22627# CDPATH.
22628$as_unset CDPATH
22629
22630
22631
22632  as_lineno_1=$LINENO
22633  as_lineno_2=$LINENO
22634  test "x$as_lineno_1" != "x$as_lineno_2" &&
22635  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22636
22637  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22638  # uniformly replaced by the line number.  The first 'sed' inserts a
22639  # line-number line after each line using $LINENO; the second 'sed'
22640  # does the real work.  The second script uses 'N' to pair each
22641  # line-number line with the line containing $LINENO, and appends
22642  # trailing '-' during substitution so that $LINENO is not a special
22643  # case at line end.
22644  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22645  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22646  # E. McMahon (1931-1989) for sed's syntax.  :-)
22647  sed -n '
22648    p
22649    /[$]LINENO/=
22650  ' <$as_myself |
22651    sed '
22652      s/[$]LINENO.*/&-/
22653      t lineno
22654      b
22655      :lineno
22656      N
22657      :loop
22658      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22659      t loop
22660      s/-\n.*//
22661    ' >$as_me.lineno &&
22662  chmod +x "$as_me.lineno" ||
22663    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22664   { (exit 1); exit 1; }; }
22665
22666  # Don't try to exec as it changes $[0], causing all sort of problems
22667  # (the dirname of $[0] is not the place where we might find the
22668  # original and so on.  Autoconf is especially sensitive to this).
22669  . "./$as_me.lineno"
22670  # Exit status is that of the last command.
22671  exit
22672}
22673
22674
22675if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22676  as_dirname=dirname
22677else
22678  as_dirname=false
22679fi
22680
22681ECHO_C= ECHO_N= ECHO_T=
22682case `echo -n x` in
22683-n*)
22684  case `echo 'x\c'` in
22685  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22686  *)   ECHO_C='\c';;
22687  esac;;
22688*)
22689  ECHO_N='-n';;
22690esac
22691if expr a : '\(a\)' >/dev/null 2>&1 &&
22692   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22693  as_expr=expr
22694else
22695  as_expr=false
22696fi
22697
22698rm -f conf$$ conf$$.exe conf$$.file
22699if test -d conf$$.dir; then
22700  rm -f conf$$.dir/conf$$.file
22701else
22702  rm -f conf$$.dir
22703  mkdir conf$$.dir 2>/dev/null
22704fi
22705if (echo >conf$$.file) 2>/dev/null; then
22706  if ln -s conf$$.file conf$$ 2>/dev/null; then
22707    as_ln_s='ln -s'
22708    # ... but there are two gotchas:
22709    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22710    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22711    # In both cases, we have to default to `cp -p'.
22712    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22713      as_ln_s='cp -p'
22714  elif ln conf$$.file conf$$ 2>/dev/null; then
22715    as_ln_s=ln
22716  else
22717    as_ln_s='cp -p'
22718  fi
22719else
22720  as_ln_s='cp -p'
22721fi
22722rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22723rmdir conf$$.dir 2>/dev/null
22724
22725if mkdir -p . 2>/dev/null; then
22726  as_mkdir_p=:
22727else
22728  test -d ./-p && rmdir ./-p
22729  as_mkdir_p=false
22730fi
22731
22732if test -x / >/dev/null 2>&1; then
22733  as_test_x='test -x'
22734else
22735  if ls -dL / >/dev/null 2>&1; then
22736    as_ls_L_option=L
22737  else
22738    as_ls_L_option=
22739  fi
22740  as_test_x='
22741    eval sh -c '\''
22742      if test -d "$1"; then
22743	test -d "$1/.";
22744      else
22745	case $1 in
22746	-*)set "./$1";;
22747	esac;
22748	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22749	???[sx]*):;;*)false;;esac;fi
22750    '\'' sh
22751  '
22752fi
22753as_executable_p=$as_test_x
22754
22755# Sed expression to map a string onto a valid CPP name.
22756as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22757
22758# Sed expression to map a string onto a valid variable name.
22759as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22760
22761
22762exec 6>&1
22763
22764# Save the log message, to keep $[0] and so on meaningful, and to
22765# report actual input values of CONFIG_FILES etc. instead of their
22766# values after options handling.
22767ac_log="
22768This file was extended by xf86-video-i128 $as_me 1.3.3, which was
22769generated by GNU Autoconf 2.63.  Invocation command line was
22770
22771  CONFIG_FILES    = $CONFIG_FILES
22772  CONFIG_HEADERS  = $CONFIG_HEADERS
22773  CONFIG_LINKS    = $CONFIG_LINKS
22774  CONFIG_COMMANDS = $CONFIG_COMMANDS
22775  $ $0 $@
22776
22777on `(hostname || uname -n) 2>/dev/null | sed 1q`
22778"
22779
22780_ACEOF
22781
22782case $ac_config_files in *"
22783"*) set x $ac_config_files; shift; ac_config_files=$*;;
22784esac
22785
22786case $ac_config_headers in *"
22787"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22788esac
22789
22790
22791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22792# Files that config.status was made for.
22793config_files="$ac_config_files"
22794config_headers="$ac_config_headers"
22795config_commands="$ac_config_commands"
22796
22797_ACEOF
22798
22799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22800ac_cs_usage="\
22801\`$as_me' instantiates files from templates according to the
22802current configuration.
22803
22804Usage: $0 [OPTION]... [FILE]...
22805
22806  -h, --help       print this help, then exit
22807  -V, --version    print version number and configuration settings, then exit
22808  -q, --quiet, --silent
22809                   do not print progress messages
22810  -d, --debug      don't remove temporary files
22811      --recheck    update $as_me by reconfiguring in the same conditions
22812      --file=FILE[:TEMPLATE]
22813                   instantiate the configuration file FILE
22814      --header=FILE[:TEMPLATE]
22815                   instantiate the configuration header FILE
22816
22817Configuration files:
22818$config_files
22819
22820Configuration headers:
22821$config_headers
22822
22823Configuration commands:
22824$config_commands
22825
22826Report bugs to <bug-autoconf@gnu.org>."
22827
22828_ACEOF
22829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22830ac_cs_version="\\
22831xf86-video-i128 config.status 1.3.3
22832configured by $0, generated by GNU Autoconf 2.63,
22833  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22834
22835Copyright (C) 2008 Free Software Foundation, Inc.
22836This config.status script is free software; the Free Software Foundation
22837gives unlimited permission to copy, distribute and modify it."
22838
22839ac_pwd='$ac_pwd'
22840srcdir='$srcdir'
22841INSTALL='$INSTALL'
22842MKDIR_P='$MKDIR_P'
22843AWK='$AWK'
22844test -n "\$AWK" || AWK=awk
22845_ACEOF
22846
22847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22848# The default lists apply if the user does not specify any file.
22849ac_need_defaults=:
22850while test $# != 0
22851do
22852  case $1 in
22853  --*=*)
22854    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22855    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22856    ac_shift=:
22857    ;;
22858  *)
22859    ac_option=$1
22860    ac_optarg=$2
22861    ac_shift=shift
22862    ;;
22863  esac
22864
22865  case $ac_option in
22866  # Handling of the options.
22867  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22868    ac_cs_recheck=: ;;
22869  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22870    $as_echo "$ac_cs_version"; exit ;;
22871  --debug | --debu | --deb | --de | --d | -d )
22872    debug=: ;;
22873  --file | --fil | --fi | --f )
22874    $ac_shift
22875    case $ac_optarg in
22876    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22877    esac
22878    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22879    ac_need_defaults=false;;
22880  --header | --heade | --head | --hea )
22881    $ac_shift
22882    case $ac_optarg in
22883    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22884    esac
22885    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22886    ac_need_defaults=false;;
22887  --he | --h)
22888    # Conflict between --help and --header
22889    { $as_echo "$as_me: error: ambiguous option: $1
22890Try \`$0 --help' for more information." >&2
22891   { (exit 1); exit 1; }; };;
22892  --help | --hel | -h )
22893    $as_echo "$ac_cs_usage"; exit ;;
22894  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22895  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22896    ac_cs_silent=: ;;
22897
22898  # This is an error.
22899  -*) { $as_echo "$as_me: error: unrecognized option: $1
22900Try \`$0 --help' for more information." >&2
22901   { (exit 1); exit 1; }; } ;;
22902
22903  *) ac_config_targets="$ac_config_targets $1"
22904     ac_need_defaults=false ;;
22905
22906  esac
22907  shift
22908done
22909
22910ac_configure_extra_args=
22911
22912if $ac_cs_silent; then
22913  exec 6>/dev/null
22914  ac_configure_extra_args="$ac_configure_extra_args --silent"
22915fi
22916
22917_ACEOF
22918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22919if \$ac_cs_recheck; then
22920  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22921  shift
22922  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22923  CONFIG_SHELL='$SHELL'
22924  export CONFIG_SHELL
22925  exec "\$@"
22926fi
22927
22928_ACEOF
22929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22930exec 5>>config.log
22931{
22932  echo
22933  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22934## Running $as_me. ##
22935_ASBOX
22936  $as_echo "$ac_log"
22937} >&5
22938
22939_ACEOF
22940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22941#
22942# INIT-COMMANDS
22943#
22944AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22945
22946_ACEOF
22947
22948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22949
22950# Handling of arguments.
22951for ac_config_target in $ac_config_targets
22952do
22953  case $ac_config_target in
22954    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22955    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22956    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22957    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22958    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22959
22960  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22961$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22962   { (exit 1); exit 1; }; };;
22963  esac
22964done
22965
22966
22967# If the user did not use the arguments to specify the items to instantiate,
22968# then the envvar interface is used.  Set only those that are not.
22969# We use the long form for the default assignment because of an extremely
22970# bizarre bug on SunOS 4.1.3.
22971if $ac_need_defaults; then
22972  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22973  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22974  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22975fi
22976
22977# Have a temporary directory for convenience.  Make it in the build tree
22978# simply because there is no reason against having it here, and in addition,
22979# creating and moving files from /tmp can sometimes cause problems.
22980# Hook for its removal unless debugging.
22981# Note that there is a small window in which the directory will not be cleaned:
22982# after its creation but before its name has been assigned to `$tmp'.
22983$debug ||
22984{
22985  tmp=
22986  trap 'exit_status=$?
22987  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22988' 0
22989  trap '{ (exit 1); exit 1; }' 1 2 13 15
22990}
22991# Create a (secure) tmp directory for tmp files.
22992
22993{
22994  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22995  test -n "$tmp" && test -d "$tmp"
22996}  ||
22997{
22998  tmp=./conf$$-$RANDOM
22999  (umask 077 && mkdir "$tmp")
23000} ||
23001{
23002   $as_echo "$as_me: cannot create a temporary directory in ." >&2
23003   { (exit 1); exit 1; }
23004}
23005
23006# Set up the scripts for CONFIG_FILES section.
23007# No need to generate them if there are no CONFIG_FILES.
23008# This happens for instance with `./config.status config.h'.
23009if test -n "$CONFIG_FILES"; then
23010
23011
23012ac_cr='
23013'
23014ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23015if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23016  ac_cs_awk_cr='\\r'
23017else
23018  ac_cs_awk_cr=$ac_cr
23019fi
23020
23021echo 'BEGIN {' >"$tmp/subs1.awk" &&
23022_ACEOF
23023
23024
23025{
23026  echo "cat >conf$$subs.awk <<_ACEOF" &&
23027  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23028  echo "_ACEOF"
23029} >conf$$subs.sh ||
23030  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23031$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23032   { (exit 1); exit 1; }; }
23033ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23034ac_delim='%!_!# '
23035for ac_last_try in false false false false false :; do
23036  . ./conf$$subs.sh ||
23037    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23038$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23039   { (exit 1); exit 1; }; }
23040
23041  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23042  if test $ac_delim_n = $ac_delim_num; then
23043    break
23044  elif $ac_last_try; then
23045    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23046$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23047   { (exit 1); exit 1; }; }
23048  else
23049    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23050  fi
23051done
23052rm -f conf$$subs.sh
23053
23054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23055cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23056_ACEOF
23057sed -n '
23058h
23059s/^/S["/; s/!.*/"]=/
23060p
23061g
23062s/^[^!]*!//
23063:repl
23064t repl
23065s/'"$ac_delim"'$//
23066t delim
23067:nl
23068h
23069s/\(.\{148\}\).*/\1/
23070t more1
23071s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23072p
23073n
23074b repl
23075:more1
23076s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23077p
23078g
23079s/.\{148\}//
23080t nl
23081:delim
23082h
23083s/\(.\{148\}\).*/\1/
23084t more2
23085s/["\\]/\\&/g; s/^/"/; s/$/"/
23086p
23087b
23088:more2
23089s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23090p
23091g
23092s/.\{148\}//
23093t delim
23094' <conf$$subs.awk | sed '
23095/^[^""]/{
23096  N
23097  s/\n//
23098}
23099' >>$CONFIG_STATUS || ac_write_fail=1
23100rm -f conf$$subs.awk
23101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23102_ACAWK
23103cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23104  for (key in S) S_is_set[key] = 1
23105  FS = ""
23106
23107}
23108{
23109  line = $ 0
23110  nfields = split(line, field, "@")
23111  substed = 0
23112  len = length(field[1])
23113  for (i = 2; i < nfields; i++) {
23114    key = field[i]
23115    keylen = length(key)
23116    if (S_is_set[key]) {
23117      value = S[key]
23118      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23119      len += length(value) + length(field[++i])
23120      substed = 1
23121    } else
23122      len += 1 + keylen
23123  }
23124
23125  print line
23126}
23127
23128_ACAWK
23129_ACEOF
23130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23131if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23132  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23133else
23134  cat
23135fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23136  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23137$as_echo "$as_me: error: could not setup config files machinery" >&2;}
23138   { (exit 1); exit 1; }; }
23139_ACEOF
23140
23141# VPATH may cause trouble with some makes, so we remove $(srcdir),
23142# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23143# trailing colons and then remove the whole line if VPATH becomes empty
23144# (actually we leave an empty line to preserve line numbers).
23145if test "x$srcdir" = x.; then
23146  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23147s/:*\$(srcdir):*/:/
23148s/:*\${srcdir}:*/:/
23149s/:*@srcdir@:*/:/
23150s/^\([^=]*=[	 ]*\):*/\1/
23151s/:*$//
23152s/^[^=]*=[	 ]*$//
23153}'
23154fi
23155
23156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23157fi # test -n "$CONFIG_FILES"
23158
23159# Set up the scripts for CONFIG_HEADERS section.
23160# No need to generate them if there are no CONFIG_HEADERS.
23161# This happens for instance with `./config.status Makefile'.
23162if test -n "$CONFIG_HEADERS"; then
23163cat >"$tmp/defines.awk" <<\_ACAWK ||
23164BEGIN {
23165_ACEOF
23166
23167# Transform confdefs.h into an awk script `defines.awk', embedded as
23168# here-document in config.status, that substitutes the proper values into
23169# config.h.in to produce config.h.
23170
23171# Create a delimiter string that does not exist in confdefs.h, to ease
23172# handling of long lines.
23173ac_delim='%!_!# '
23174for ac_last_try in false false :; do
23175  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23176  if test -z "$ac_t"; then
23177    break
23178  elif $ac_last_try; then
23179    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23180$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23181   { (exit 1); exit 1; }; }
23182  else
23183    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23184  fi
23185done
23186
23187# For the awk script, D is an array of macro values keyed by name,
23188# likewise P contains macro parameters if any.  Preserve backslash
23189# newline sequences.
23190
23191ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23192sed -n '
23193s/.\{148\}/&'"$ac_delim"'/g
23194t rset
23195:rset
23196s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23197t def
23198d
23199:def
23200s/\\$//
23201t bsnl
23202s/["\\]/\\&/g
23203s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23204D["\1"]=" \3"/p
23205s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23206d
23207:bsnl
23208s/["\\]/\\&/g
23209s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23210D["\1"]=" \3\\\\\\n"\\/p
23211t cont
23212s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23213t cont
23214d
23215:cont
23216n
23217s/.\{148\}/&'"$ac_delim"'/g
23218t clear
23219:clear
23220s/\\$//
23221t bsnlc
23222s/["\\]/\\&/g; s/^/"/; s/$/"/p
23223d
23224:bsnlc
23225s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23226b cont
23227' <confdefs.h | sed '
23228s/'"$ac_delim"'/"\\\
23229"/g' >>$CONFIG_STATUS || ac_write_fail=1
23230
23231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23232  for (key in D) D_is_set[key] = 1
23233  FS = ""
23234}
23235/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23236  line = \$ 0
23237  split(line, arg, " ")
23238  if (arg[1] == "#") {
23239    defundef = arg[2]
23240    mac1 = arg[3]
23241  } else {
23242    defundef = substr(arg[1], 2)
23243    mac1 = arg[2]
23244  }
23245  split(mac1, mac2, "(") #)
23246  macro = mac2[1]
23247  prefix = substr(line, 1, index(line, defundef) - 1)
23248  if (D_is_set[macro]) {
23249    # Preserve the white space surrounding the "#".
23250    print prefix "define", macro P[macro] D[macro]
23251    next
23252  } else {
23253    # Replace #undef with comments.  This is necessary, for example,
23254    # in the case of _POSIX_SOURCE, which is predefined and required
23255    # on some systems where configure will not decide to define it.
23256    if (defundef == "undef") {
23257      print "/*", prefix defundef, macro, "*/"
23258      next
23259    }
23260  }
23261}
23262{ print }
23263_ACAWK
23264_ACEOF
23265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23266  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23267$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23268   { (exit 1); exit 1; }; }
23269fi # test -n "$CONFIG_HEADERS"
23270
23271
23272eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23273shift
23274for ac_tag
23275do
23276  case $ac_tag in
23277  :[FHLC]) ac_mode=$ac_tag; continue;;
23278  esac
23279  case $ac_mode$ac_tag in
23280  :[FHL]*:*);;
23281  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23282$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23283   { (exit 1); exit 1; }; };;
23284  :[FH]-) ac_tag=-:-;;
23285  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23286  esac
23287  ac_save_IFS=$IFS
23288  IFS=:
23289  set x $ac_tag
23290  IFS=$ac_save_IFS
23291  shift
23292  ac_file=$1
23293  shift
23294
23295  case $ac_mode in
23296  :L) ac_source=$1;;
23297  :[FH])
23298    ac_file_inputs=
23299    for ac_f
23300    do
23301      case $ac_f in
23302      -) ac_f="$tmp/stdin";;
23303      *) # Look for the file first in the build tree, then in the source tree
23304	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23305	 # because $ac_f cannot contain `:'.
23306	 test -f "$ac_f" ||
23307	   case $ac_f in
23308	   [\\/$]*) false;;
23309	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23310	   esac ||
23311	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23312$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23313   { (exit 1); exit 1; }; };;
23314      esac
23315      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23316      ac_file_inputs="$ac_file_inputs '$ac_f'"
23317    done
23318
23319    # Let's still pretend it is `configure' which instantiates (i.e., don't
23320    # use $as_me), people would be surprised to read:
23321    #    /* config.h.  Generated by config.status.  */
23322    configure_input='Generated from '`
23323	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23324	`' by configure.'
23325    if test x"$ac_file" != x-; then
23326      configure_input="$ac_file.  $configure_input"
23327      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23328$as_echo "$as_me: creating $ac_file" >&6;}
23329    fi
23330    # Neutralize special characters interpreted by sed in replacement strings.
23331    case $configure_input in #(
23332    *\&* | *\|* | *\\* )
23333       ac_sed_conf_input=`$as_echo "$configure_input" |
23334       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23335    *) ac_sed_conf_input=$configure_input;;
23336    esac
23337
23338    case $ac_tag in
23339    *:-:* | *:-) cat >"$tmp/stdin" \
23340      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23341$as_echo "$as_me: error: could not create $ac_file" >&2;}
23342   { (exit 1); exit 1; }; } ;;
23343    esac
23344    ;;
23345  esac
23346
23347  ac_dir=`$as_dirname -- "$ac_file" ||
23348$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23349	 X"$ac_file" : 'X\(//\)[^/]' \| \
23350	 X"$ac_file" : 'X\(//\)$' \| \
23351	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23352$as_echo X"$ac_file" |
23353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23354	    s//\1/
23355	    q
23356	  }
23357	  /^X\(\/\/\)[^/].*/{
23358	    s//\1/
23359	    q
23360	  }
23361	  /^X\(\/\/\)$/{
23362	    s//\1/
23363	    q
23364	  }
23365	  /^X\(\/\).*/{
23366	    s//\1/
23367	    q
23368	  }
23369	  s/.*/./; q'`
23370  { as_dir="$ac_dir"
23371  case $as_dir in #(
23372  -*) as_dir=./$as_dir;;
23373  esac
23374  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23375    as_dirs=
23376    while :; do
23377      case $as_dir in #(
23378      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23379      *) as_qdir=$as_dir;;
23380      esac
23381      as_dirs="'$as_qdir' $as_dirs"
23382      as_dir=`$as_dirname -- "$as_dir" ||
23383$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23384	 X"$as_dir" : 'X\(//\)[^/]' \| \
23385	 X"$as_dir" : 'X\(//\)$' \| \
23386	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23387$as_echo X"$as_dir" |
23388    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23389	    s//\1/
23390	    q
23391	  }
23392	  /^X\(\/\/\)[^/].*/{
23393	    s//\1/
23394	    q
23395	  }
23396	  /^X\(\/\/\)$/{
23397	    s//\1/
23398	    q
23399	  }
23400	  /^X\(\/\).*/{
23401	    s//\1/
23402	    q
23403	  }
23404	  s/.*/./; q'`
23405      test -d "$as_dir" && break
23406    done
23407    test -z "$as_dirs" || eval "mkdir $as_dirs"
23408  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23409$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23410   { (exit 1); exit 1; }; }; }
23411  ac_builddir=.
23412
23413case "$ac_dir" in
23414.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23415*)
23416  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23417  # A ".." for each directory in $ac_dir_suffix.
23418  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23419  case $ac_top_builddir_sub in
23420  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23421  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23422  esac ;;
23423esac
23424ac_abs_top_builddir=$ac_pwd
23425ac_abs_builddir=$ac_pwd$ac_dir_suffix
23426# for backward compatibility:
23427ac_top_builddir=$ac_top_build_prefix
23428
23429case $srcdir in
23430  .)  # We are building in place.
23431    ac_srcdir=.
23432    ac_top_srcdir=$ac_top_builddir_sub
23433    ac_abs_top_srcdir=$ac_pwd ;;
23434  [\\/]* | ?:[\\/]* )  # Absolute name.
23435    ac_srcdir=$srcdir$ac_dir_suffix;
23436    ac_top_srcdir=$srcdir
23437    ac_abs_top_srcdir=$srcdir ;;
23438  *) # Relative name.
23439    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23440    ac_top_srcdir=$ac_top_build_prefix$srcdir
23441    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23442esac
23443ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23444
23445
23446  case $ac_mode in
23447  :F)
23448  #
23449  # CONFIG_FILE
23450  #
23451
23452  case $INSTALL in
23453  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23454  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23455  esac
23456  ac_MKDIR_P=$MKDIR_P
23457  case $MKDIR_P in
23458  [\\/$]* | ?:[\\/]* ) ;;
23459  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23460  esac
23461_ACEOF
23462
23463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23464# If the template does not know about datarootdir, expand it.
23465# FIXME: This hack should be removed a few years after 2.60.
23466ac_datarootdir_hack=; ac_datarootdir_seen=
23467
23468ac_sed_dataroot='
23469/datarootdir/ {
23470  p
23471  q
23472}
23473/@datadir@/p
23474/@docdir@/p
23475/@infodir@/p
23476/@localedir@/p
23477/@mandir@/p
23478'
23479case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23480*datarootdir*) ac_datarootdir_seen=yes;;
23481*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23482  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23483$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23484_ACEOF
23485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23486  ac_datarootdir_hack='
23487  s&@datadir@&$datadir&g
23488  s&@docdir@&$docdir&g
23489  s&@infodir@&$infodir&g
23490  s&@localedir@&$localedir&g
23491  s&@mandir@&$mandir&g
23492    s&\\\${datarootdir}&$datarootdir&g' ;;
23493esac
23494_ACEOF
23495
23496# Neutralize VPATH when `$srcdir' = `.'.
23497# Shell code in configure.ac might set extrasub.
23498# FIXME: do we really want to maintain this feature?
23499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23500ac_sed_extra="$ac_vpsub
23501$extrasub
23502_ACEOF
23503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23504:t
23505/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23506s|@configure_input@|$ac_sed_conf_input|;t t
23507s&@top_builddir@&$ac_top_builddir_sub&;t t
23508s&@top_build_prefix@&$ac_top_build_prefix&;t t
23509s&@srcdir@&$ac_srcdir&;t t
23510s&@abs_srcdir@&$ac_abs_srcdir&;t t
23511s&@top_srcdir@&$ac_top_srcdir&;t t
23512s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23513s&@builddir@&$ac_builddir&;t t
23514s&@abs_builddir@&$ac_abs_builddir&;t t
23515s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23516s&@INSTALL@&$ac_INSTALL&;t t
23517s&@MKDIR_P@&$ac_MKDIR_P&;t t
23518$ac_datarootdir_hack
23519"
23520eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23521  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23522$as_echo "$as_me: error: could not create $ac_file" >&2;}
23523   { (exit 1); exit 1; }; }
23524
23525test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23526  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23527  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23528  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23529which seems to be undefined.  Please make sure it is defined." >&5
23530$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23531which seems to be undefined.  Please make sure it is defined." >&2;}
23532
23533  rm -f "$tmp/stdin"
23534  case $ac_file in
23535  -) cat "$tmp/out" && rm -f "$tmp/out";;
23536  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23537  esac \
23538  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23539$as_echo "$as_me: error: could not create $ac_file" >&2;}
23540   { (exit 1); exit 1; }; }
23541 ;;
23542  :H)
23543  #
23544  # CONFIG_HEADER
23545  #
23546  if test x"$ac_file" != x-; then
23547    {
23548      $as_echo "/* $configure_input  */" \
23549      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23550    } >"$tmp/config.h" \
23551      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23552$as_echo "$as_me: error: could not create $ac_file" >&2;}
23553   { (exit 1); exit 1; }; }
23554    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23555      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23556$as_echo "$as_me: $ac_file is unchanged" >&6;}
23557    else
23558      rm -f "$ac_file"
23559      mv "$tmp/config.h" "$ac_file" \
23560	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23561$as_echo "$as_me: error: could not create $ac_file" >&2;}
23562   { (exit 1); exit 1; }; }
23563    fi
23564  else
23565    $as_echo "/* $configure_input  */" \
23566      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23567      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23568$as_echo "$as_me: error: could not create -" >&2;}
23569   { (exit 1); exit 1; }; }
23570  fi
23571# Compute "$ac_file"'s index in $config_headers.
23572_am_arg="$ac_file"
23573_am_stamp_count=1
23574for _am_header in $config_headers :; do
23575  case $_am_header in
23576    $_am_arg | $_am_arg:* )
23577      break ;;
23578    * )
23579      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23580  esac
23581done
23582echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23583$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23584	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23585	 X"$_am_arg" : 'X\(//\)$' \| \
23586	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23587$as_echo X"$_am_arg" |
23588    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23589	    s//\1/
23590	    q
23591	  }
23592	  /^X\(\/\/\)[^/].*/{
23593	    s//\1/
23594	    q
23595	  }
23596	  /^X\(\/\/\)$/{
23597	    s//\1/
23598	    q
23599	  }
23600	  /^X\(\/\).*/{
23601	    s//\1/
23602	    q
23603	  }
23604	  s/.*/./; q'`/stamp-h$_am_stamp_count
23605 ;;
23606
23607  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23608$as_echo "$as_me: executing $ac_file commands" >&6;}
23609 ;;
23610  esac
23611
23612
23613  case $ac_file$ac_mode in
23614    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23615  # Autoconf 2.62 quotes --file arguments for eval, but not when files
23616  # are listed without --file.  Let's play safe and only enable the eval
23617  # if we detect the quoting.
23618  case $CONFIG_FILES in
23619  *\'*) eval set x "$CONFIG_FILES" ;;
23620  *)   set x $CONFIG_FILES ;;
23621  esac
23622  shift
23623  for mf
23624  do
23625    # Strip MF so we end up with the name of the file.
23626    mf=`echo "$mf" | sed -e 's/:.*$//'`
23627    # Check whether this is an Automake generated Makefile or not.
23628    # We used to match only the files named `Makefile.in', but
23629    # some people rename them; so instead we look at the file content.
23630    # Grep'ing the first line is not enough: some people post-process
23631    # each Makefile.in and add a new line on top of each file to say so.
23632    # Grep'ing the whole file is not good either: AIX grep has a line
23633    # limit of 2048, but all sed's we know have understand at least 4000.
23634    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23635      dirpart=`$as_dirname -- "$mf" ||
23636$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23637	 X"$mf" : 'X\(//\)[^/]' \| \
23638	 X"$mf" : 'X\(//\)$' \| \
23639	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23640$as_echo X"$mf" |
23641    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23642	    s//\1/
23643	    q
23644	  }
23645	  /^X\(\/\/\)[^/].*/{
23646	    s//\1/
23647	    q
23648	  }
23649	  /^X\(\/\/\)$/{
23650	    s//\1/
23651	    q
23652	  }
23653	  /^X\(\/\).*/{
23654	    s//\1/
23655	    q
23656	  }
23657	  s/.*/./; q'`
23658    else
23659      continue
23660    fi
23661    # Extract the definition of DEPDIR, am__include, and am__quote
23662    # from the Makefile without running `make'.
23663    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23664    test -z "$DEPDIR" && continue
23665    am__include=`sed -n 's/^am__include = //p' < "$mf"`
23666    test -z "am__include" && continue
23667    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23668    # When using ansi2knr, U may be empty or an underscore; expand it
23669    U=`sed -n 's/^U = //p' < "$mf"`
23670    # Find all dependency output files, they are included files with
23671    # $(DEPDIR) in their names.  We invoke sed twice because it is the
23672    # simplest approach to changing $(DEPDIR) to its actual value in the
23673    # expansion.
23674    for file in `sed -n "
23675      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23676	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23677      # Make sure the directory exists.
23678      test -f "$dirpart/$file" && continue
23679      fdir=`$as_dirname -- "$file" ||
23680$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23681	 X"$file" : 'X\(//\)[^/]' \| \
23682	 X"$file" : 'X\(//\)$' \| \
23683	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23684$as_echo X"$file" |
23685    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23686	    s//\1/
23687	    q
23688	  }
23689	  /^X\(\/\/\)[^/].*/{
23690	    s//\1/
23691	    q
23692	  }
23693	  /^X\(\/\/\)$/{
23694	    s//\1/
23695	    q
23696	  }
23697	  /^X\(\/\).*/{
23698	    s//\1/
23699	    q
23700	  }
23701	  s/.*/./; q'`
23702      { as_dir=$dirpart/$fdir
23703  case $as_dir in #(
23704  -*) as_dir=./$as_dir;;
23705  esac
23706  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23707    as_dirs=
23708    while :; do
23709      case $as_dir in #(
23710      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23711      *) as_qdir=$as_dir;;
23712      esac
23713      as_dirs="'$as_qdir' $as_dirs"
23714      as_dir=`$as_dirname -- "$as_dir" ||
23715$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23716	 X"$as_dir" : 'X\(//\)[^/]' \| \
23717	 X"$as_dir" : 'X\(//\)$' \| \
23718	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23719$as_echo X"$as_dir" |
23720    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23721	    s//\1/
23722	    q
23723	  }
23724	  /^X\(\/\/\)[^/].*/{
23725	    s//\1/
23726	    q
23727	  }
23728	  /^X\(\/\/\)$/{
23729	    s//\1/
23730	    q
23731	  }
23732	  /^X\(\/\).*/{
23733	    s//\1/
23734	    q
23735	  }
23736	  s/.*/./; q'`
23737      test -d "$as_dir" && break
23738    done
23739    test -z "$as_dirs" || eval "mkdir $as_dirs"
23740  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23741$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23742   { (exit 1); exit 1; }; }; }
23743      # echo "creating $dirpart/$file"
23744      echo '# dummy' > "$dirpart/$file"
23745    done
23746  done
23747}
23748 ;;
23749
23750  esac
23751done # for ac_tag
23752
23753
23754{ (exit 0); exit 0; }
23755_ACEOF
23756chmod +x $CONFIG_STATUS
23757ac_clean_files=$ac_clean_files_save
23758
23759test $ac_write_fail = 0 ||
23760  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23761$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23762   { (exit 1); exit 1; }; }
23763
23764
23765# configure is writing to config.log, and then calls config.status.
23766# config.status does its own redirection, appending to config.log.
23767# Unfortunately, on DOS this fails, as config.log is still kept open
23768# by configure, so config.status won't be able to write to it; its
23769# output is simply discarded.  So we exec the FD to /dev/null,
23770# effectively closing config.log, so it can be properly (re)opened and
23771# appended to by config.status.  When coming back to configure, we
23772# need to make the FD available again.
23773if test "$no_create" != yes; then
23774  ac_cs_success=:
23775  ac_config_status_args=
23776  test "$silent" = yes &&
23777    ac_config_status_args="$ac_config_status_args --quiet"
23778  exec 5>/dev/null
23779  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23780  exec 5>>config.log
23781  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23782  # would make configure fail if this is the last instruction.
23783  $ac_cs_success || { (exit 1); exit 1; }
23784fi
23785if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23786  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23787$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23788fi
23789
23790