configure revision f67b85aa
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for xf86-video-ark 0.7.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587echo=${ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $echo works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<EOF
606$*
607EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$ECHO"; then
616if test "X${echo_test_string+set}" != Xset; then
617# find a string as large as possible, as long as the shell can cope with it
618  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621       echo_test_string=`eval $cmd` &&
622       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623    then
624      break
625    fi
626  done
627fi
628
629if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631   test "X$echo_testing_string" = "X$echo_test_string"; then
632  :
633else
634  # The Solaris, AIX, and Digital Unix default echo programs unquote
635  # backslashes.  This makes it impossible to quote backslashes using
636  #   echo "$something" | sed 's/\\/\\\\/g'
637  #
638  # So, first we look for a working echo in the user's PATH.
639
640  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641  for dir in $PATH /usr/ucb; do
642    IFS="$lt_save_ifs"
643    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646       test "X$echo_testing_string" = "X$echo_test_string"; then
647      echo="$dir/echo"
648      break
649    fi
650  done
651  IFS="$lt_save_ifs"
652
653  if test "X$echo" = Xecho; then
654    # We didn't find a better echo, so look for alternatives.
655    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657       test "X$echo_testing_string" = "X$echo_test_string"; then
658      # This shell has a builtin print -r that does the trick.
659      echo='print -r'
660    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661	 test "X$CONFIG_SHELL" != X/bin/ksh; then
662      # If we have ksh, try running configure again with it.
663      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664      export ORIGINAL_CONFIG_SHELL
665      CONFIG_SHELL=/bin/ksh
666      export CONFIG_SHELL
667      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668    else
669      # Try using printf.
670      echo='printf %s\n'
671      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673	 test "X$echo_testing_string" = "X$echo_test_string"; then
674	# Cool, printf works
675	:
676      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677	   test "X$echo_testing_string" = 'X\t' &&
678	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679	   test "X$echo_testing_string" = "X$echo_test_string"; then
680	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681	export CONFIG_SHELL
682	SHELL="$CONFIG_SHELL"
683	export SHELL
684	echo="$CONFIG_SHELL $0 --fallback-echo"
685      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686	   test "X$echo_testing_string" = 'X\t' &&
687	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688	   test "X$echo_testing_string" = "X$echo_test_string"; then
689	echo="$CONFIG_SHELL $0 --fallback-echo"
690      else
691	# maybe with a smaller string...
692	prev=:
693
694	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696	  then
697	    break
698	  fi
699	  prev="$cmd"
700	done
701
702	if test "$prev" != 'sed 50q "$0"'; then
703	  echo_test_string=`eval $prev`
704	  export echo_test_string
705	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706	else
707	  # Oops.  We lost completely, so just stick with echo.
708	  echo=echo
709	fi
710      fi
711    fi
712  fi
713fi
714fi
715
716# Copy echo and quote the copy suitably for passing to libtool from
717# the Makefile, instead of quoting the original, which is used later.
718ECHO=$echo
719if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721fi
722
723
724
725
726tagnames=${tagnames+${tagnames},}CXX
727
728tagnames=${tagnames+${tagnames},}F77
729
730exec 7<&0 </dev/null 6>&1
731
732# Name of the host.
733# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734# so uname gets run too.
735ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737#
738# Initializations.
739#
740ac_default_prefix=/usr/local
741ac_clean_files=
742ac_config_libobj_dir=.
743LIBOBJS=
744cross_compiling=no
745subdirs=
746MFLAGS=
747MAKEFLAGS=
748SHELL=${CONFIG_SHELL-/bin/sh}
749
750# Identity of this package.
751PACKAGE_NAME='xf86-video-ark'
752PACKAGE_TARNAME='xf86-video-ark'
753PACKAGE_VERSION='0.7.1'
754PACKAGE_STRING='xf86-video-ark 0.7.1'
755PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
756
757ac_unique_file="Makefile.am"
758# Factoring default headers for most tests.
759ac_includes_default="\
760#include <stdio.h>
761#ifdef HAVE_SYS_TYPES_H
762# include <sys/types.h>
763#endif
764#ifdef HAVE_SYS_STAT_H
765# include <sys/stat.h>
766#endif
767#ifdef STDC_HEADERS
768# include <stdlib.h>
769# include <stddef.h>
770#else
771# ifdef HAVE_STDLIB_H
772#  include <stdlib.h>
773# endif
774#endif
775#ifdef HAVE_STRING_H
776# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777#  include <memory.h>
778# endif
779# include <string.h>
780#endif
781#ifdef HAVE_STRINGS_H
782# include <strings.h>
783#endif
784#ifdef HAVE_INTTYPES_H
785# include <inttypes.h>
786#endif
787#ifdef HAVE_STDINT_H
788# include <stdint.h>
789#endif
790#ifdef HAVE_UNISTD_H
791# include <unistd.h>
792#endif"
793
794ac_subst_vars='LTLIBOBJS
795LIBOBJS
796ADMIN_MAN_DIR
797DRIVER_MAN_DIR
798MISC_MAN_DIR
799FILE_MAN_DIR
800LIB_MAN_DIR
801APP_MAN_DIR
802ADMIN_MAN_SUFFIX
803DRIVER_MAN_SUFFIX
804MISC_MAN_SUFFIX
805FILE_MAN_SUFFIX
806LIB_MAN_SUFFIX
807APP_MAN_SUFFIX
808DRIVER_NAME
809XSERVER_LIBPCIACCESS_FALSE
810XSERVER_LIBPCIACCESS_TRUE
811PCIACCESS_LIBS
812PCIACCESS_CFLAGS
813INCLUDES
814XORG_LIBS
815XORG_CFLAGS
816PKG_CONFIG
817moduledir
818LIBTOOL
819ac_ct_F77
820FFLAGS
821F77
822CXXCPP
823am__fastdepCXX_FALSE
824am__fastdepCXX_TRUE
825CXXDEPMODE
826ac_ct_CXX
827CXXFLAGS
828CXX
829CPP
830NMEDIT
831DSYMUTIL
832RANLIB
833AR
834ECHO
835LN_S
836EGREP
837GREP
838SED
839am__fastdepCC_FALSE
840am__fastdepCC_TRUE
841CCDEPMODE
842AMDEPBACKSLASH
843AMDEP_FALSE
844AMDEP_TRUE
845am__quote
846am__include
847DEPDIR
848OBJEXT
849EXEEXT
850ac_ct_CC
851CPPFLAGS
852LDFLAGS
853CFLAGS
854CC
855host_os
856host_vendor
857host_cpu
858host
859build_os
860build_vendor
861build_cpu
862build
863MAINT
864MAINTAINER_MODE_FALSE
865MAINTAINER_MODE_TRUE
866am__untar
867am__tar
868AMTAR
869am__leading_dot
870SET_MAKE
871AWK
872mkdir_p
873MKDIR_P
874INSTALL_STRIP_PROGRAM
875STRIP
876install_sh
877MAKEINFO
878AUTOHEADER
879AUTOMAKE
880AUTOCONF
881ACLOCAL
882VERSION
883PACKAGE
884CYGPATH_W
885am__isrc
886INSTALL_DATA
887INSTALL_SCRIPT
888INSTALL_PROGRAM
889target_alias
890host_alias
891build_alias
892LIBS
893ECHO_T
894ECHO_N
895ECHO_C
896DEFS
897mandir
898localedir
899libdir
900psdir
901pdfdir
902dvidir
903htmldir
904infodir
905docdir
906oldincludedir
907includedir
908localstatedir
909sharedstatedir
910sysconfdir
911datadir
912datarootdir
913libexecdir
914sbindir
915bindir
916program_transform_name
917prefix
918exec_prefix
919PACKAGE_BUGREPORT
920PACKAGE_STRING
921PACKAGE_VERSION
922PACKAGE_TARNAME
923PACKAGE_NAME
924PATH_SEPARATOR
925SHELL'
926ac_subst_files=''
927ac_user_opts='
928enable_option_checking
929enable_maintainer_mode
930enable_static
931enable_shared
932enable_fast_install
933enable_dependency_tracking
934with_gnu_ld
935enable_libtool_lock
936with_pic
937with_tags
938with_xorg_module_dir
939with_release_version
940'
941      ac_precious_vars='build_alias
942host_alias
943target_alias
944CC
945CFLAGS
946LDFLAGS
947LIBS
948CPPFLAGS
949CPP
950CXX
951CXXFLAGS
952CCC
953CXXCPP
954F77
955FFLAGS
956PKG_CONFIG
957XORG_CFLAGS
958XORG_LIBS
959PCIACCESS_CFLAGS
960PCIACCESS_LIBS'
961
962
963# Initialize some variables set by options.
964ac_init_help=
965ac_init_version=false
966ac_unrecognized_opts=
967ac_unrecognized_sep=
968# The variables have the same names as the options, with
969# dashes changed to underlines.
970cache_file=/dev/null
971exec_prefix=NONE
972no_create=
973no_recursion=
974prefix=NONE
975program_prefix=NONE
976program_suffix=NONE
977program_transform_name=s,x,x,
978silent=
979site=
980srcdir=
981verbose=
982x_includes=NONE
983x_libraries=NONE
984
985# Installation directory options.
986# These are left unexpanded so users can "make install exec_prefix=/foo"
987# and all the variables that are supposed to be based on exec_prefix
988# by default will actually change.
989# Use braces instead of parens because sh, perl, etc. also accept them.
990# (The list follows the same order as the GNU Coding Standards.)
991bindir='${exec_prefix}/bin'
992sbindir='${exec_prefix}/sbin'
993libexecdir='${exec_prefix}/libexec'
994datarootdir='${prefix}/share'
995datadir='${datarootdir}'
996sysconfdir='${prefix}/etc'
997sharedstatedir='${prefix}/com'
998localstatedir='${prefix}/var'
999includedir='${prefix}/include'
1000oldincludedir='/usr/include'
1001docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1002infodir='${datarootdir}/info'
1003htmldir='${docdir}'
1004dvidir='${docdir}'
1005pdfdir='${docdir}'
1006psdir='${docdir}'
1007libdir='${exec_prefix}/lib'
1008localedir='${datarootdir}/locale'
1009mandir='${datarootdir}/man'
1010
1011ac_prev=
1012ac_dashdash=
1013for ac_option
1014do
1015  # If the previous option needs an argument, assign it.
1016  if test -n "$ac_prev"; then
1017    eval $ac_prev=\$ac_option
1018    ac_prev=
1019    continue
1020  fi
1021
1022  case $ac_option in
1023  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024  *)	ac_optarg=yes ;;
1025  esac
1026
1027  # Accept the important Cygnus configure options, so we can diagnose typos.
1028
1029  case $ac_dashdash$ac_option in
1030  --)
1031    ac_dashdash=yes ;;
1032
1033  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034    ac_prev=bindir ;;
1035  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036    bindir=$ac_optarg ;;
1037
1038  -build | --build | --buil | --bui | --bu)
1039    ac_prev=build_alias ;;
1040  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041    build_alias=$ac_optarg ;;
1042
1043  -cache-file | --cache-file | --cache-fil | --cache-fi \
1044  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045    ac_prev=cache_file ;;
1046  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048    cache_file=$ac_optarg ;;
1049
1050  --config-cache | -C)
1051    cache_file=config.cache ;;
1052
1053  -datadir | --datadir | --datadi | --datad)
1054    ac_prev=datadir ;;
1055  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056    datadir=$ac_optarg ;;
1057
1058  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059  | --dataroo | --dataro | --datar)
1060    ac_prev=datarootdir ;;
1061  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063    datarootdir=$ac_optarg ;;
1064
1065  -disable-* | --disable-*)
1066    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067    # Reject names that are not valid shell variable names.
1068    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1070   { (exit 1); exit 1; }; }
1071    ac_useropt_orig=$ac_useropt
1072    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073    case $ac_user_opts in
1074      *"
1075"enable_$ac_useropt"
1076"*) ;;
1077      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1078	 ac_unrecognized_sep=', ';;
1079    esac
1080    eval enable_$ac_useropt=no ;;
1081
1082  -docdir | --docdir | --docdi | --doc | --do)
1083    ac_prev=docdir ;;
1084  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085    docdir=$ac_optarg ;;
1086
1087  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088    ac_prev=dvidir ;;
1089  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090    dvidir=$ac_optarg ;;
1091
1092  -enable-* | --enable-*)
1093    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094    # Reject names that are not valid shell variable names.
1095    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1097   { (exit 1); exit 1; }; }
1098    ac_useropt_orig=$ac_useropt
1099    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100    case $ac_user_opts in
1101      *"
1102"enable_$ac_useropt"
1103"*) ;;
1104      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1105	 ac_unrecognized_sep=', ';;
1106    esac
1107    eval enable_$ac_useropt=\$ac_optarg ;;
1108
1109  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1110  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1111  | --exec | --exe | --ex)
1112    ac_prev=exec_prefix ;;
1113  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1114  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1115  | --exec=* | --exe=* | --ex=*)
1116    exec_prefix=$ac_optarg ;;
1117
1118  -gas | --gas | --ga | --g)
1119    # Obsolete; use --with-gas.
1120    with_gas=yes ;;
1121
1122  -help | --help | --hel | --he | -h)
1123    ac_init_help=long ;;
1124  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1125    ac_init_help=recursive ;;
1126  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1127    ac_init_help=short ;;
1128
1129  -host | --host | --hos | --ho)
1130    ac_prev=host_alias ;;
1131  -host=* | --host=* | --hos=* | --ho=*)
1132    host_alias=$ac_optarg ;;
1133
1134  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135    ac_prev=htmldir ;;
1136  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137  | --ht=*)
1138    htmldir=$ac_optarg ;;
1139
1140  -includedir | --includedir | --includedi | --included | --include \
1141  | --includ | --inclu | --incl | --inc)
1142    ac_prev=includedir ;;
1143  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1144  | --includ=* | --inclu=* | --incl=* | --inc=*)
1145    includedir=$ac_optarg ;;
1146
1147  -infodir | --infodir | --infodi | --infod | --info | --inf)
1148    ac_prev=infodir ;;
1149  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1150    infodir=$ac_optarg ;;
1151
1152  -libdir | --libdir | --libdi | --libd)
1153    ac_prev=libdir ;;
1154  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1155    libdir=$ac_optarg ;;
1156
1157  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1158  | --libexe | --libex | --libe)
1159    ac_prev=libexecdir ;;
1160  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1161  | --libexe=* | --libex=* | --libe=*)
1162    libexecdir=$ac_optarg ;;
1163
1164  -localedir | --localedir | --localedi | --localed | --locale)
1165    ac_prev=localedir ;;
1166  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1167    localedir=$ac_optarg ;;
1168
1169  -localstatedir | --localstatedir | --localstatedi | --localstated \
1170  | --localstate | --localstat | --localsta | --localst | --locals)
1171    ac_prev=localstatedir ;;
1172  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1173  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1174    localstatedir=$ac_optarg ;;
1175
1176  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177    ac_prev=mandir ;;
1178  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1179    mandir=$ac_optarg ;;
1180
1181  -nfp | --nfp | --nf)
1182    # Obsolete; use --without-fp.
1183    with_fp=no ;;
1184
1185  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1186  | --no-cr | --no-c | -n)
1187    no_create=yes ;;
1188
1189  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1190  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191    no_recursion=yes ;;
1192
1193  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1194  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1195  | --oldin | --oldi | --old | --ol | --o)
1196    ac_prev=oldincludedir ;;
1197  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1198  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1199  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1200    oldincludedir=$ac_optarg ;;
1201
1202  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203    ac_prev=prefix ;;
1204  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1205    prefix=$ac_optarg ;;
1206
1207  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1208  | --program-pre | --program-pr | --program-p)
1209    ac_prev=program_prefix ;;
1210  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1211  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1212    program_prefix=$ac_optarg ;;
1213
1214  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1215  | --program-suf | --program-su | --program-s)
1216    ac_prev=program_suffix ;;
1217  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1218  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1219    program_suffix=$ac_optarg ;;
1220
1221  -program-transform-name | --program-transform-name \
1222  | --program-transform-nam | --program-transform-na \
1223  | --program-transform-n | --program-transform- \
1224  | --program-transform | --program-transfor \
1225  | --program-transfo | --program-transf \
1226  | --program-trans | --program-tran \
1227  | --progr-tra | --program-tr | --program-t)
1228    ac_prev=program_transform_name ;;
1229  -program-transform-name=* | --program-transform-name=* \
1230  | --program-transform-nam=* | --program-transform-na=* \
1231  | --program-transform-n=* | --program-transform-=* \
1232  | --program-transform=* | --program-transfor=* \
1233  | --program-transfo=* | --program-transf=* \
1234  | --program-trans=* | --program-tran=* \
1235  | --progr-tra=* | --program-tr=* | --program-t=*)
1236    program_transform_name=$ac_optarg ;;
1237
1238  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239    ac_prev=pdfdir ;;
1240  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1241    pdfdir=$ac_optarg ;;
1242
1243  -psdir | --psdir | --psdi | --psd | --ps)
1244    ac_prev=psdir ;;
1245  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246    psdir=$ac_optarg ;;
1247
1248  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249  | -silent | --silent | --silen | --sile | --sil)
1250    silent=yes ;;
1251
1252  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1253    ac_prev=sbindir ;;
1254  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1255  | --sbi=* | --sb=*)
1256    sbindir=$ac_optarg ;;
1257
1258  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1259  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1260  | --sharedst | --shareds | --shared | --share | --shar \
1261  | --sha | --sh)
1262    ac_prev=sharedstatedir ;;
1263  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1264  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1265  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1266  | --sha=* | --sh=*)
1267    sharedstatedir=$ac_optarg ;;
1268
1269  -site | --site | --sit)
1270    ac_prev=site ;;
1271  -site=* | --site=* | --sit=*)
1272    site=$ac_optarg ;;
1273
1274  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1275    ac_prev=srcdir ;;
1276  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1277    srcdir=$ac_optarg ;;
1278
1279  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1280  | --syscon | --sysco | --sysc | --sys | --sy)
1281    ac_prev=sysconfdir ;;
1282  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1283  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1284    sysconfdir=$ac_optarg ;;
1285
1286  -target | --target | --targe | --targ | --tar | --ta | --t)
1287    ac_prev=target_alias ;;
1288  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1289    target_alias=$ac_optarg ;;
1290
1291  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292    verbose=yes ;;
1293
1294  -version | --version | --versio | --versi | --vers | -V)
1295    ac_init_version=: ;;
1296
1297  -with-* | --with-*)
1298    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1299    # Reject names that are not valid shell variable names.
1300    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1302   { (exit 1); exit 1; }; }
1303    ac_useropt_orig=$ac_useropt
1304    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305    case $ac_user_opts in
1306      *"
1307"with_$ac_useropt"
1308"*) ;;
1309      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1310	 ac_unrecognized_sep=', ';;
1311    esac
1312    eval with_$ac_useropt=\$ac_optarg ;;
1313
1314  -without-* | --without-*)
1315    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1316    # Reject names that are not valid shell variable names.
1317    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1319   { (exit 1); exit 1; }; }
1320    ac_useropt_orig=$ac_useropt
1321    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322    case $ac_user_opts in
1323      *"
1324"with_$ac_useropt"
1325"*) ;;
1326      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1327	 ac_unrecognized_sep=', ';;
1328    esac
1329    eval with_$ac_useropt=no ;;
1330
1331  --x)
1332    # Obsolete; use --with-x.
1333    with_x=yes ;;
1334
1335  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1336  | --x-incl | --x-inc | --x-in | --x-i)
1337    ac_prev=x_includes ;;
1338  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1339  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1340    x_includes=$ac_optarg ;;
1341
1342  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1343  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1344    ac_prev=x_libraries ;;
1345  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1346  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1347    x_libraries=$ac_optarg ;;
1348
1349  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1350Try \`$0 --help' for more information." >&2
1351   { (exit 1); exit 1; }; }
1352    ;;
1353
1354  *=*)
1355    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1356    # Reject names that are not valid shell variable names.
1357    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1358      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1359   { (exit 1); exit 1; }; }
1360    eval $ac_envvar=\$ac_optarg
1361    export $ac_envvar ;;
1362
1363  *)
1364    # FIXME: should be removed in autoconf 3.0.
1365    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1366    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1367      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1368    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1369    ;;
1370
1371  esac
1372done
1373
1374if test -n "$ac_prev"; then
1375  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1376  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1377   { (exit 1); exit 1; }; }
1378fi
1379
1380if test -n "$ac_unrecognized_opts"; then
1381  case $enable_option_checking in
1382    no) ;;
1383    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1384   { (exit 1); exit 1; }; } ;;
1385    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1386  esac
1387fi
1388
1389# Check all directory arguments for consistency.
1390for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1391		datadir sysconfdir sharedstatedir localstatedir includedir \
1392		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1393		libdir localedir mandir
1394do
1395  eval ac_val=\$$ac_var
1396  # Remove trailing slashes.
1397  case $ac_val in
1398    */ )
1399      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1400      eval $ac_var=\$ac_val;;
1401  esac
1402  # Be sure to have absolute directory names.
1403  case $ac_val in
1404    [\\/$]* | ?:[\\/]* )  continue;;
1405    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1406  esac
1407  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1408   { (exit 1); exit 1; }; }
1409done
1410
1411# There might be people who depend on the old broken behavior: `$host'
1412# used to hold the argument of --host etc.
1413# FIXME: To remove some day.
1414build=$build_alias
1415host=$host_alias
1416target=$target_alias
1417
1418# FIXME: To remove some day.
1419if test "x$host_alias" != x; then
1420  if test "x$build_alias" = x; then
1421    cross_compiling=maybe
1422    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1423    If a cross compiler is detected then cross compile mode will be used." >&2
1424  elif test "x$build_alias" != "x$host_alias"; then
1425    cross_compiling=yes
1426  fi
1427fi
1428
1429ac_tool_prefix=
1430test -n "$host_alias" && ac_tool_prefix=$host_alias-
1431
1432test "$silent" = yes && exec 6>/dev/null
1433
1434
1435ac_pwd=`pwd` && test -n "$ac_pwd" &&
1436ac_ls_di=`ls -di .` &&
1437ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1438  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1439   { (exit 1); exit 1; }; }
1440test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1442   { (exit 1); exit 1; }; }
1443
1444
1445# Find the source files, if location was not specified.
1446if test -z "$srcdir"; then
1447  ac_srcdir_defaulted=yes
1448  # Try the directory containing this script, then the parent directory.
1449  ac_confdir=`$as_dirname -- "$as_myself" ||
1450$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1451	 X"$as_myself" : 'X\(//\)[^/]' \| \
1452	 X"$as_myself" : 'X\(//\)$' \| \
1453	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1454$as_echo X"$as_myself" |
1455    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1456	    s//\1/
1457	    q
1458	  }
1459	  /^X\(\/\/\)[^/].*/{
1460	    s//\1/
1461	    q
1462	  }
1463	  /^X\(\/\/\)$/{
1464	    s//\1/
1465	    q
1466	  }
1467	  /^X\(\/\).*/{
1468	    s//\1/
1469	    q
1470	  }
1471	  s/.*/./; q'`
1472  srcdir=$ac_confdir
1473  if test ! -r "$srcdir/$ac_unique_file"; then
1474    srcdir=..
1475  fi
1476else
1477  ac_srcdir_defaulted=no
1478fi
1479if test ! -r "$srcdir/$ac_unique_file"; then
1480  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1481  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1482   { (exit 1); exit 1; }; }
1483fi
1484ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1485ac_abs_confdir=`(
1486	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1487   { (exit 1); exit 1; }; }
1488	pwd)`
1489# When building in place, set srcdir=.
1490if test "$ac_abs_confdir" = "$ac_pwd"; then
1491  srcdir=.
1492fi
1493# Remove unnecessary trailing slashes from srcdir.
1494# Double slashes in file names in object file debugging info
1495# mess up M-x gdb in Emacs.
1496case $srcdir in
1497*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498esac
1499for ac_var in $ac_precious_vars; do
1500  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1501  eval ac_env_${ac_var}_value=\$${ac_var}
1502  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1503  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1504done
1505
1506#
1507# Report the --help message.
1508#
1509if test "$ac_init_help" = "long"; then
1510  # Omit some internal or obsolete options to make the list less imposing.
1511  # This message is too long to be a string in the A/UX 3.1 sh.
1512  cat <<_ACEOF
1513\`configure' configures xf86-video-ark 0.7.1 to adapt to many kinds of systems.
1514
1515Usage: $0 [OPTION]... [VAR=VALUE]...
1516
1517To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518VAR=VALUE.  See below for descriptions of some of the useful variables.
1519
1520Defaults for the options are specified in brackets.
1521
1522Configuration:
1523  -h, --help              display this help and exit
1524      --help=short        display options specific to this package
1525      --help=recursive    display the short help of all the included packages
1526  -V, --version           display version information and exit
1527  -q, --quiet, --silent   do not print \`checking...' messages
1528      --cache-file=FILE   cache test results in FILE [disabled]
1529  -C, --config-cache      alias for \`--cache-file=config.cache'
1530  -n, --no-create         do not create output files
1531      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1532
1533Installation directories:
1534  --prefix=PREFIX         install architecture-independent files in PREFIX
1535                          [$ac_default_prefix]
1536  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1537                          [PREFIX]
1538
1539By default, \`make install' will install all the files in
1540\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1541an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542for instance \`--prefix=\$HOME'.
1543
1544For better control, use the options below.
1545
1546Fine tuning of the installation directories:
1547  --bindir=DIR            user executables [EPREFIX/bin]
1548  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1549  --libexecdir=DIR        program executables [EPREFIX/libexec]
1550  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1551  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1552  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1553  --libdir=DIR            object code libraries [EPREFIX/lib]
1554  --includedir=DIR        C header files [PREFIX/include]
1555  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1556  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1557  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1558  --infodir=DIR           info documentation [DATAROOTDIR/info]
1559  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1560  --mandir=DIR            man documentation [DATAROOTDIR/man]
1561  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-ark]
1562  --htmldir=DIR           html documentation [DOCDIR]
1563  --dvidir=DIR            dvi documentation [DOCDIR]
1564  --pdfdir=DIR            pdf documentation [DOCDIR]
1565  --psdir=DIR             ps documentation [DOCDIR]
1566_ACEOF
1567
1568  cat <<\_ACEOF
1569
1570Program names:
1571  --program-prefix=PREFIX            prepend PREFIX to installed program names
1572  --program-suffix=SUFFIX            append SUFFIX to installed program names
1573  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1574
1575System types:
1576  --build=BUILD     configure for building on BUILD [guessed]
1577  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1578_ACEOF
1579fi
1580
1581if test -n "$ac_init_help"; then
1582  case $ac_init_help in
1583     short | recursive ) echo "Configuration of xf86-video-ark 0.7.1:";;
1584   esac
1585  cat <<\_ACEOF
1586
1587Optional Features:
1588  --disable-option-checking  ignore unrecognized --enable/--with options
1589  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1590  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1591  --enable-maintainer-mode  enable make rules and dependencies not useful
1592			  (and sometimes confusing) to the casual installer
1593  --enable-static[=PKGS]  build static libraries [default=no]
1594  --enable-shared[=PKGS]  build shared libraries [default=yes]
1595  --enable-fast-install[=PKGS]
1596                          optimize for fast installation [default=yes]
1597  --disable-dependency-tracking  speeds up one-time build
1598  --enable-dependency-tracking   do not reject slow dependency extractors
1599  --disable-libtool-lock  avoid locking (might break parallel builds)
1600
1601Optional Packages:
1602  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1603  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1604  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1605  --with-pic              try to use only PIC/non-PIC objects [default=use
1606                          both]
1607  --with-tags[=TAGS]      include additional configurations [automatic]
1608  --with-xorg-module-dir=DIR
1609  --with-release-version=STRING
1610                          Use release version string in package name
1611
1612Some influential environment variables:
1613  CC          C compiler command
1614  CFLAGS      C compiler flags
1615  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1616              nonstandard directory <lib dir>
1617  LIBS        libraries to pass to the linker, e.g. -l<library>
1618  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1619              you have headers in a nonstandard directory <include dir>
1620  CPP         C preprocessor
1621  CXX         C++ compiler command
1622  CXXFLAGS    C++ compiler flags
1623  CXXCPP      C++ preprocessor
1624  F77         Fortran 77 compiler command
1625  FFLAGS      Fortran 77 compiler flags
1626  PKG_CONFIG  path to pkg-config utility
1627  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1628  XORG_LIBS   linker flags for XORG, overriding pkg-config
1629  PCIACCESS_CFLAGS
1630              C compiler flags for PCIACCESS, overriding pkg-config
1631  PCIACCESS_LIBS
1632              linker flags for PCIACCESS, overriding pkg-config
1633
1634Use these variables to override the choices made by `configure' or to help
1635it to find libraries and programs with nonstandard names/locations.
1636
1637Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1638_ACEOF
1639ac_status=$?
1640fi
1641
1642if test "$ac_init_help" = "recursive"; then
1643  # If there are subdirs, report their specific --help.
1644  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1645    test -d "$ac_dir" ||
1646      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1647      continue
1648    ac_builddir=.
1649
1650case "$ac_dir" in
1651.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652*)
1653  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1654  # A ".." for each directory in $ac_dir_suffix.
1655  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1656  case $ac_top_builddir_sub in
1657  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1659  esac ;;
1660esac
1661ac_abs_top_builddir=$ac_pwd
1662ac_abs_builddir=$ac_pwd$ac_dir_suffix
1663# for backward compatibility:
1664ac_top_builddir=$ac_top_build_prefix
1665
1666case $srcdir in
1667  .)  # We are building in place.
1668    ac_srcdir=.
1669    ac_top_srcdir=$ac_top_builddir_sub
1670    ac_abs_top_srcdir=$ac_pwd ;;
1671  [\\/]* | ?:[\\/]* )  # Absolute name.
1672    ac_srcdir=$srcdir$ac_dir_suffix;
1673    ac_top_srcdir=$srcdir
1674    ac_abs_top_srcdir=$srcdir ;;
1675  *) # Relative name.
1676    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1677    ac_top_srcdir=$ac_top_build_prefix$srcdir
1678    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1679esac
1680ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1681
1682    cd "$ac_dir" || { ac_status=$?; continue; }
1683    # Check for guested configure.
1684    if test -f "$ac_srcdir/configure.gnu"; then
1685      echo &&
1686      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1687    elif test -f "$ac_srcdir/configure"; then
1688      echo &&
1689      $SHELL "$ac_srcdir/configure" --help=recursive
1690    else
1691      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1692    fi || ac_status=$?
1693    cd "$ac_pwd" || { ac_status=$?; break; }
1694  done
1695fi
1696
1697test -n "$ac_init_help" && exit $ac_status
1698if $ac_init_version; then
1699  cat <<\_ACEOF
1700xf86-video-ark configure 0.7.1
1701generated by GNU Autoconf 2.63
1702
1703Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17042002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1705This configure script is free software; the Free Software Foundation
1706gives unlimited permission to copy, distribute and modify it.
1707_ACEOF
1708  exit
1709fi
1710cat >config.log <<_ACEOF
1711This file contains any messages produced by compilers while
1712running configure, to aid debugging if configure makes a mistake.
1713
1714It was created by xf86-video-ark $as_me 0.7.1, which was
1715generated by GNU Autoconf 2.63.  Invocation command line was
1716
1717  $ $0 $@
1718
1719_ACEOF
1720exec 5>>config.log
1721{
1722cat <<_ASUNAME
1723## --------- ##
1724## Platform. ##
1725## --------- ##
1726
1727hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1728uname -m = `(uname -m) 2>/dev/null || echo unknown`
1729uname -r = `(uname -r) 2>/dev/null || echo unknown`
1730uname -s = `(uname -s) 2>/dev/null || echo unknown`
1731uname -v = `(uname -v) 2>/dev/null || echo unknown`
1732
1733/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1734/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1735
1736/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1737/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1738/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1739/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1740/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1741/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1742/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1743
1744_ASUNAME
1745
1746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747for as_dir in $PATH
1748do
1749  IFS=$as_save_IFS
1750  test -z "$as_dir" && as_dir=.
1751  $as_echo "PATH: $as_dir"
1752done
1753IFS=$as_save_IFS
1754
1755} >&5
1756
1757cat >&5 <<_ACEOF
1758
1759
1760## ----------- ##
1761## Core tests. ##
1762## ----------- ##
1763
1764_ACEOF
1765
1766
1767# Keep a trace of the command line.
1768# Strip out --no-create and --no-recursion so they do not pile up.
1769# Strip out --silent because we don't want to record it for future runs.
1770# Also quote any args containing shell meta-characters.
1771# Make two passes to allow for proper duplicate-argument suppression.
1772ac_configure_args=
1773ac_configure_args0=
1774ac_configure_args1=
1775ac_must_keep_next=false
1776for ac_pass in 1 2
1777do
1778  for ac_arg
1779  do
1780    case $ac_arg in
1781    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1782    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1783    | -silent | --silent | --silen | --sile | --sil)
1784      continue ;;
1785    *\'*)
1786      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1787    esac
1788    case $ac_pass in
1789    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1790    2)
1791      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1792      if test $ac_must_keep_next = true; then
1793	ac_must_keep_next=false # Got value, back to normal.
1794      else
1795	case $ac_arg in
1796	  *=* | --config-cache | -C | -disable-* | --disable-* \
1797	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1798	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1799	  | -with-* | --with-* | -without-* | --without-* | --x)
1800	    case "$ac_configure_args0 " in
1801	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1802	    esac
1803	    ;;
1804	  -* ) ac_must_keep_next=true ;;
1805	esac
1806      fi
1807      ac_configure_args="$ac_configure_args '$ac_arg'"
1808      ;;
1809    esac
1810  done
1811done
1812$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1813$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1814
1815# When interrupted or exit'd, cleanup temporary files, and complete
1816# config.log.  We remove comments because anyway the quotes in there
1817# would cause problems or look ugly.
1818# WARNING: Use '\'' to represent an apostrophe within the trap.
1819# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1820trap 'exit_status=$?
1821  # Save into config.log some information that might help in debugging.
1822  {
1823    echo
1824
1825    cat <<\_ASBOX
1826## ---------------- ##
1827## Cache variables. ##
1828## ---------------- ##
1829_ASBOX
1830    echo
1831    # The following way of writing the cache mishandles newlines in values,
1832(
1833  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1834    eval ac_val=\$$ac_var
1835    case $ac_val in #(
1836    *${as_nl}*)
1837      case $ac_var in #(
1838      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1839$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1840      esac
1841      case $ac_var in #(
1842      _ | IFS | as_nl) ;; #(
1843      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1844      *) $as_unset $ac_var ;;
1845      esac ;;
1846    esac
1847  done
1848  (set) 2>&1 |
1849    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1850    *${as_nl}ac_space=\ *)
1851      sed -n \
1852	"s/'\''/'\''\\\\'\'''\''/g;
1853	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1854      ;; #(
1855    *)
1856      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1857      ;;
1858    esac |
1859    sort
1860)
1861    echo
1862
1863    cat <<\_ASBOX
1864## ----------------- ##
1865## Output variables. ##
1866## ----------------- ##
1867_ASBOX
1868    echo
1869    for ac_var in $ac_subst_vars
1870    do
1871      eval ac_val=\$$ac_var
1872      case $ac_val in
1873      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1874      esac
1875      $as_echo "$ac_var='\''$ac_val'\''"
1876    done | sort
1877    echo
1878
1879    if test -n "$ac_subst_files"; then
1880      cat <<\_ASBOX
1881## ------------------- ##
1882## File substitutions. ##
1883## ------------------- ##
1884_ASBOX
1885      echo
1886      for ac_var in $ac_subst_files
1887      do
1888	eval ac_val=\$$ac_var
1889	case $ac_val in
1890	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1891	esac
1892	$as_echo "$ac_var='\''$ac_val'\''"
1893      done | sort
1894      echo
1895    fi
1896
1897    if test -s confdefs.h; then
1898      cat <<\_ASBOX
1899## ----------- ##
1900## confdefs.h. ##
1901## ----------- ##
1902_ASBOX
1903      echo
1904      cat confdefs.h
1905      echo
1906    fi
1907    test "$ac_signal" != 0 &&
1908      $as_echo "$as_me: caught signal $ac_signal"
1909    $as_echo "$as_me: exit $exit_status"
1910  } >&5
1911  rm -f core *.core core.conftest.* &&
1912    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1913    exit $exit_status
1914' 0
1915for ac_signal in 1 2 13 15; do
1916  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1917done
1918ac_signal=0
1919
1920# confdefs.h avoids OS command line length limits that DEFS can exceed.
1921rm -f -r conftest* confdefs.h
1922
1923# Predefined preprocessor variables.
1924
1925cat >>confdefs.h <<_ACEOF
1926#define PACKAGE_NAME "$PACKAGE_NAME"
1927_ACEOF
1928
1929
1930cat >>confdefs.h <<_ACEOF
1931#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1932_ACEOF
1933
1934
1935cat >>confdefs.h <<_ACEOF
1936#define PACKAGE_VERSION "$PACKAGE_VERSION"
1937_ACEOF
1938
1939
1940cat >>confdefs.h <<_ACEOF
1941#define PACKAGE_STRING "$PACKAGE_STRING"
1942_ACEOF
1943
1944
1945cat >>confdefs.h <<_ACEOF
1946#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1947_ACEOF
1948
1949
1950# Let the site file select an alternate cache file if it wants to.
1951# Prefer an explicitly selected file to automatically selected ones.
1952ac_site_file1=NONE
1953ac_site_file2=NONE
1954if test -n "$CONFIG_SITE"; then
1955  ac_site_file1=$CONFIG_SITE
1956elif test "x$prefix" != xNONE; then
1957  ac_site_file1=$prefix/share/config.site
1958  ac_site_file2=$prefix/etc/config.site
1959else
1960  ac_site_file1=$ac_default_prefix/share/config.site
1961  ac_site_file2=$ac_default_prefix/etc/config.site
1962fi
1963for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1964do
1965  test "x$ac_site_file" = xNONE && continue
1966  if test -r "$ac_site_file"; then
1967    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1968$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1969    sed 's/^/| /' "$ac_site_file" >&5
1970    . "$ac_site_file"
1971  fi
1972done
1973
1974if test -r "$cache_file"; then
1975  # Some versions of bash will fail to source /dev/null (special
1976  # files actually), so we avoid doing that.
1977  if test -f "$cache_file"; then
1978    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1979$as_echo "$as_me: loading cache $cache_file" >&6;}
1980    case $cache_file in
1981      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1982      *)                      . "./$cache_file";;
1983    esac
1984  fi
1985else
1986  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1987$as_echo "$as_me: creating cache $cache_file" >&6;}
1988  >$cache_file
1989fi
1990
1991# Check that the precious variables saved in the cache have kept the same
1992# value.
1993ac_cache_corrupted=false
1994for ac_var in $ac_precious_vars; do
1995  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1996  eval ac_new_set=\$ac_env_${ac_var}_set
1997  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1998  eval ac_new_val=\$ac_env_${ac_var}_value
1999  case $ac_old_set,$ac_new_set in
2000    set,)
2001      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2002$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2003      ac_cache_corrupted=: ;;
2004    ,set)
2005      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2006$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2007      ac_cache_corrupted=: ;;
2008    ,);;
2009    *)
2010      if test "x$ac_old_val" != "x$ac_new_val"; then
2011	# differences in whitespace do not lead to failure.
2012	ac_old_val_w=`echo x $ac_old_val`
2013	ac_new_val_w=`echo x $ac_new_val`
2014	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2015	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2016$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2017	  ac_cache_corrupted=:
2018	else
2019	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2020$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2021	  eval $ac_var=\$ac_old_val
2022	fi
2023	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2024$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2025	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2026$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2027      fi;;
2028  esac
2029  # Pass precious variables to config.status.
2030  if test "$ac_new_set" = set; then
2031    case $ac_new_val in
2032    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2033    *) ac_arg=$ac_var=$ac_new_val ;;
2034    esac
2035    case " $ac_configure_args " in
2036      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2037      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2038    esac
2039  fi
2040done
2041if $ac_cache_corrupted; then
2042  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2044  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2045$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2046  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2047$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2048   { (exit 1); exit 1; }; }
2049fi
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075ac_ext=c
2076ac_cpp='$CPP $CPPFLAGS'
2077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2079ac_compiler_gnu=$ac_cv_c_compiler_gnu
2080
2081
2082
2083
2084ac_config_headers="$ac_config_headers config.h"
2085
2086ac_aux_dir=
2087for ac_dir in . "$srcdir"/.; do
2088  if test -f "$ac_dir/install-sh"; then
2089    ac_aux_dir=$ac_dir
2090    ac_install_sh="$ac_aux_dir/install-sh -c"
2091    break
2092  elif test -f "$ac_dir/install.sh"; then
2093    ac_aux_dir=$ac_dir
2094    ac_install_sh="$ac_aux_dir/install.sh -c"
2095    break
2096  elif test -f "$ac_dir/shtool"; then
2097    ac_aux_dir=$ac_dir
2098    ac_install_sh="$ac_aux_dir/shtool install -c"
2099    break
2100  fi
2101done
2102if test -z "$ac_aux_dir"; then
2103  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2104$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2105   { (exit 1); exit 1; }; }
2106fi
2107
2108# These three variables are undocumented and unsupported,
2109# and are intended to be withdrawn in a future Autoconf release.
2110# They can cause serious problems if a builder's source tree is in a directory
2111# whose full name contains unusual characters.
2112ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2113ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2114ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2115
2116
2117
2118am__api_version='1.10'
2119
2120# Find a good install program.  We prefer a C program (faster),
2121# so one script is as good as another.  But avoid the broken or
2122# incompatible versions:
2123# SysV /etc/install, /usr/sbin/install
2124# SunOS /usr/etc/install
2125# IRIX /sbin/install
2126# AIX /bin/install
2127# AmigaOS /C/install, which installs bootblocks on floppy discs
2128# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2129# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2130# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2131# OS/2's system install, which has a completely different semantic
2132# ./install, which can be erroneously created by make from ./install.sh.
2133# Reject install programs that cannot install multiple files.
2134{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2135$as_echo_n "checking for a BSD-compatible install... " >&6; }
2136if test -z "$INSTALL"; then
2137if test "${ac_cv_path_install+set}" = set; then
2138  $as_echo_n "(cached) " >&6
2139else
2140  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141for as_dir in $PATH
2142do
2143  IFS=$as_save_IFS
2144  test -z "$as_dir" && as_dir=.
2145  # Account for people who put trailing slashes in PATH elements.
2146case $as_dir/ in
2147  ./ | .// | /cC/* | \
2148  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2149  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2150  /usr/ucb/* ) ;;
2151  *)
2152    # OSF1 and SCO ODT 3.0 have their own names for install.
2153    # Don't use installbsd from OSF since it installs stuff as root
2154    # by default.
2155    for ac_prog in ginstall scoinst install; do
2156      for ac_exec_ext in '' $ac_executable_extensions; do
2157	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2158	  if test $ac_prog = install &&
2159	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2160	    # AIX install.  It has an incompatible calling convention.
2161	    :
2162	  elif test $ac_prog = install &&
2163	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2164	    # program-specific install script used by HP pwplus--don't use.
2165	    :
2166	  else
2167	    rm -rf conftest.one conftest.two conftest.dir
2168	    echo one > conftest.one
2169	    echo two > conftest.two
2170	    mkdir conftest.dir
2171	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2172	      test -s conftest.one && test -s conftest.two &&
2173	      test -s conftest.dir/conftest.one &&
2174	      test -s conftest.dir/conftest.two
2175	    then
2176	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2177	      break 3
2178	    fi
2179	  fi
2180	fi
2181      done
2182    done
2183    ;;
2184esac
2185
2186done
2187IFS=$as_save_IFS
2188
2189rm -rf conftest.one conftest.two conftest.dir
2190
2191fi
2192  if test "${ac_cv_path_install+set}" = set; then
2193    INSTALL=$ac_cv_path_install
2194  else
2195    # As a last resort, use the slow shell script.  Don't cache a
2196    # value for INSTALL within a source directory, because that will
2197    # break other packages using the cache if that directory is
2198    # removed, or if the value is a relative name.
2199    INSTALL=$ac_install_sh
2200  fi
2201fi
2202{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2203$as_echo "$INSTALL" >&6; }
2204
2205# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2206# It thinks the first close brace ends the variable substitution.
2207test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2208
2209test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2210
2211test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2212
2213{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2214$as_echo_n "checking whether build environment is sane... " >&6; }
2215# Just in case
2216sleep 1
2217echo timestamp > conftest.file
2218# Do `set' in a subshell so we don't clobber the current shell's
2219# arguments.  Must try -L first in case configure is actually a
2220# symlink; some systems play weird games with the mod time of symlinks
2221# (eg FreeBSD returns the mod time of the symlink's containing
2222# directory).
2223if (
2224   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2225   if test "$*" = "X"; then
2226      # -L didn't work.
2227      set X `ls -t $srcdir/configure conftest.file`
2228   fi
2229   rm -f conftest.file
2230   if test "$*" != "X $srcdir/configure conftest.file" \
2231      && test "$*" != "X conftest.file $srcdir/configure"; then
2232
2233      # If neither matched, then we have a broken ls.  This can happen
2234      # if, for instance, CONFIG_SHELL is bash and it inherits a
2235      # broken ls alias from the environment.  This has actually
2236      # happened.  Such a system could not be considered "sane".
2237      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2238alias in your environment" >&5
2239$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2240alias in your environment" >&2;}
2241   { (exit 1); exit 1; }; }
2242   fi
2243
2244   test "$2" = conftest.file
2245   )
2246then
2247   # Ok.
2248   :
2249else
2250   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2251Check your system clock" >&5
2252$as_echo "$as_me: error: newly created file is older than distributed files!
2253Check your system clock" >&2;}
2254   { (exit 1); exit 1; }; }
2255fi
2256{ $as_echo "$as_me:$LINENO: result: yes" >&5
2257$as_echo "yes" >&6; }
2258test "$program_prefix" != NONE &&
2259  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2260# Use a double $ so make ignores it.
2261test "$program_suffix" != NONE &&
2262  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2263# Double any \ or $.
2264# By default was `s,x,x', remove it if useless.
2265ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2266program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2267
2268# expand $ac_aux_dir to an absolute path
2269am_aux_dir=`cd $ac_aux_dir && pwd`
2270
2271test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2272# Use eval to expand $SHELL
2273if eval "$MISSING --run true"; then
2274  am_missing_run="$MISSING --run "
2275else
2276  am_missing_run=
2277  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2278$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2279fi
2280
2281{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2282$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2283if test -z "$MKDIR_P"; then
2284  if test "${ac_cv_path_mkdir+set}" = set; then
2285  $as_echo_n "(cached) " >&6
2286else
2287  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2289do
2290  IFS=$as_save_IFS
2291  test -z "$as_dir" && as_dir=.
2292  for ac_prog in mkdir gmkdir; do
2293	 for ac_exec_ext in '' $ac_executable_extensions; do
2294	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2295	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2296	     'mkdir (GNU coreutils) '* | \
2297	     'mkdir (coreutils) '* | \
2298	     'mkdir (fileutils) '4.1*)
2299	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2300	       break 3;;
2301	   esac
2302	 done
2303       done
2304done
2305IFS=$as_save_IFS
2306
2307fi
2308
2309  if test "${ac_cv_path_mkdir+set}" = set; then
2310    MKDIR_P="$ac_cv_path_mkdir -p"
2311  else
2312    # As a last resort, use the slow shell script.  Don't cache a
2313    # value for MKDIR_P within a source directory, because that will
2314    # break other packages using the cache if that directory is
2315    # removed, or if the value is a relative name.
2316    test -d ./--version && rmdir ./--version
2317    MKDIR_P="$ac_install_sh -d"
2318  fi
2319fi
2320{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2321$as_echo "$MKDIR_P" >&6; }
2322
2323mkdir_p="$MKDIR_P"
2324case $mkdir_p in
2325  [\\/$]* | ?:[\\/]*) ;;
2326  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2327esac
2328
2329for ac_prog in gawk mawk nawk awk
2330do
2331  # Extract the first word of "$ac_prog", so it can be a program name with args.
2332set dummy $ac_prog; ac_word=$2
2333{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2334$as_echo_n "checking for $ac_word... " >&6; }
2335if test "${ac_cv_prog_AWK+set}" = set; then
2336  $as_echo_n "(cached) " >&6
2337else
2338  if test -n "$AWK"; then
2339  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2340else
2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342for as_dir in $PATH
2343do
2344  IFS=$as_save_IFS
2345  test -z "$as_dir" && as_dir=.
2346  for ac_exec_ext in '' $ac_executable_extensions; do
2347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348    ac_cv_prog_AWK="$ac_prog"
2349    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350    break 2
2351  fi
2352done
2353done
2354IFS=$as_save_IFS
2355
2356fi
2357fi
2358AWK=$ac_cv_prog_AWK
2359if test -n "$AWK"; then
2360  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2361$as_echo "$AWK" >&6; }
2362else
2363  { $as_echo "$as_me:$LINENO: result: no" >&5
2364$as_echo "no" >&6; }
2365fi
2366
2367
2368  test -n "$AWK" && break
2369done
2370
2371{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2372$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2373set x ${MAKE-make}
2374ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2375if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2376  $as_echo_n "(cached) " >&6
2377else
2378  cat >conftest.make <<\_ACEOF
2379SHELL = /bin/sh
2380all:
2381	@echo '@@@%%%=$(MAKE)=@@@%%%'
2382_ACEOF
2383# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2384case `${MAKE-make} -f conftest.make 2>/dev/null` in
2385  *@@@%%%=?*=@@@%%%*)
2386    eval ac_cv_prog_make_${ac_make}_set=yes;;
2387  *)
2388    eval ac_cv_prog_make_${ac_make}_set=no;;
2389esac
2390rm -f conftest.make
2391fi
2392if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2393  { $as_echo "$as_me:$LINENO: result: yes" >&5
2394$as_echo "yes" >&6; }
2395  SET_MAKE=
2396else
2397  { $as_echo "$as_me:$LINENO: result: no" >&5
2398$as_echo "no" >&6; }
2399  SET_MAKE="MAKE=${MAKE-make}"
2400fi
2401
2402rm -rf .tst 2>/dev/null
2403mkdir .tst 2>/dev/null
2404if test -d .tst; then
2405  am__leading_dot=.
2406else
2407  am__leading_dot=_
2408fi
2409rmdir .tst 2>/dev/null
2410
2411if test "`cd $srcdir && pwd`" != "`pwd`"; then
2412  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2413  # is not polluted with repeated "-I."
2414  am__isrc=' -I$(srcdir)'
2415  # test to see if srcdir already configured
2416  if test -f $srcdir/config.status; then
2417    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2418$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2419   { (exit 1); exit 1; }; }
2420  fi
2421fi
2422
2423# test whether we have cygpath
2424if test -z "$CYGPATH_W"; then
2425  if (cygpath --version) >/dev/null 2>/dev/null; then
2426    CYGPATH_W='cygpath -w'
2427  else
2428    CYGPATH_W=echo
2429  fi
2430fi
2431
2432
2433# Define the identity of the package.
2434 PACKAGE='xf86-video-ark'
2435 VERSION='0.7.1'
2436
2437
2438cat >>confdefs.h <<_ACEOF
2439#define PACKAGE "$PACKAGE"
2440_ACEOF
2441
2442
2443cat >>confdefs.h <<_ACEOF
2444#define VERSION "$VERSION"
2445_ACEOF
2446
2447# Some tools Automake needs.
2448
2449ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2450
2451
2452AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2453
2454
2455AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2456
2457
2458AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2459
2460
2461MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2462
2463install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2464
2465# Installed binaries are usually stripped using `strip' when the user
2466# run `make install-strip'.  However `strip' might not be the right
2467# tool to use in cross-compilation environments, therefore Automake
2468# will honor the `STRIP' environment variable to overrule this program.
2469if test "$cross_compiling" != no; then
2470  if test -n "$ac_tool_prefix"; then
2471  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2472set dummy ${ac_tool_prefix}strip; ac_word=$2
2473{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2474$as_echo_n "checking for $ac_word... " >&6; }
2475if test "${ac_cv_prog_STRIP+set}" = set; then
2476  $as_echo_n "(cached) " >&6
2477else
2478  if test -n "$STRIP"; then
2479  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2480else
2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484  IFS=$as_save_IFS
2485  test -z "$as_dir" && as_dir=.
2486  for ac_exec_ext in '' $ac_executable_extensions; do
2487  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2489    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490    break 2
2491  fi
2492done
2493done
2494IFS=$as_save_IFS
2495
2496fi
2497fi
2498STRIP=$ac_cv_prog_STRIP
2499if test -n "$STRIP"; then
2500  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2501$as_echo "$STRIP" >&6; }
2502else
2503  { $as_echo "$as_me:$LINENO: result: no" >&5
2504$as_echo "no" >&6; }
2505fi
2506
2507
2508fi
2509if test -z "$ac_cv_prog_STRIP"; then
2510  ac_ct_STRIP=$STRIP
2511  # Extract the first word of "strip", so it can be a program name with args.
2512set dummy strip; ac_word=$2
2513{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2514$as_echo_n "checking for $ac_word... " >&6; }
2515if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2516  $as_echo_n "(cached) " >&6
2517else
2518  if test -n "$ac_ct_STRIP"; then
2519  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2520else
2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524  IFS=$as_save_IFS
2525  test -z "$as_dir" && as_dir=.
2526  for ac_exec_ext in '' $ac_executable_extensions; do
2527  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528    ac_cv_prog_ac_ct_STRIP="strip"
2529    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530    break 2
2531  fi
2532done
2533done
2534IFS=$as_save_IFS
2535
2536fi
2537fi
2538ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2539if test -n "$ac_ct_STRIP"; then
2540  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2541$as_echo "$ac_ct_STRIP" >&6; }
2542else
2543  { $as_echo "$as_me:$LINENO: result: no" >&5
2544$as_echo "no" >&6; }
2545fi
2546
2547  if test "x$ac_ct_STRIP" = x; then
2548    STRIP=":"
2549  else
2550    case $cross_compiling:$ac_tool_warned in
2551yes:)
2552{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2554ac_tool_warned=yes ;;
2555esac
2556    STRIP=$ac_ct_STRIP
2557  fi
2558else
2559  STRIP="$ac_cv_prog_STRIP"
2560fi
2561
2562fi
2563INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2564
2565# We need awk for the "check" target.  The system "awk" is bad on
2566# some platforms.
2567# Always define AMTAR for backward compatibility.
2568
2569AMTAR=${AMTAR-"${am_missing_run}tar"}
2570
2571am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2572
2573
2574
2575
2576
2577
2578{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2579$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2580    # Check whether --enable-maintainer-mode was given.
2581if test "${enable_maintainer_mode+set}" = set; then
2582  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2583else
2584  USE_MAINTAINER_MODE=no
2585fi
2586
2587  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2588$as_echo "$USE_MAINTAINER_MODE" >&6; }
2589   if test $USE_MAINTAINER_MODE = yes; then
2590  MAINTAINER_MODE_TRUE=
2591  MAINTAINER_MODE_FALSE='#'
2592else
2593  MAINTAINER_MODE_TRUE='#'
2594  MAINTAINER_MODE_FALSE=
2595fi
2596
2597  MAINT=$MAINTAINER_MODE_TRUE
2598
2599
2600
2601# Checks for programs.
2602# Check whether --enable-static was given.
2603if test "${enable_static+set}" = set; then
2604  enableval=$enable_static; p=${PACKAGE-default}
2605    case $enableval in
2606    yes) enable_static=yes ;;
2607    no) enable_static=no ;;
2608    *)
2609     enable_static=no
2610      # Look at the argument we got.  We use all the common list separators.
2611      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2612      for pkg in $enableval; do
2613	IFS="$lt_save_ifs"
2614	if test "X$pkg" = "X$p"; then
2615	  enable_static=yes
2616	fi
2617      done
2618      IFS="$lt_save_ifs"
2619      ;;
2620    esac
2621else
2622  enable_static=no
2623fi
2624
2625
2626
2627# Check whether --enable-shared was given.
2628if test "${enable_shared+set}" = set; then
2629  enableval=$enable_shared; p=${PACKAGE-default}
2630    case $enableval in
2631    yes) enable_shared=yes ;;
2632    no) enable_shared=no ;;
2633    *)
2634      enable_shared=no
2635      # Look at the argument we got.  We use all the common list separators.
2636      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2637      for pkg in $enableval; do
2638	IFS="$lt_save_ifs"
2639	if test "X$pkg" = "X$p"; then
2640	  enable_shared=yes
2641	fi
2642      done
2643      IFS="$lt_save_ifs"
2644      ;;
2645    esac
2646else
2647  enable_shared=yes
2648fi
2649
2650
2651# Check whether --enable-fast-install was given.
2652if test "${enable_fast_install+set}" = set; then
2653  enableval=$enable_fast_install; p=${PACKAGE-default}
2654    case $enableval in
2655    yes) enable_fast_install=yes ;;
2656    no) enable_fast_install=no ;;
2657    *)
2658      enable_fast_install=no
2659      # Look at the argument we got.  We use all the common list separators.
2660      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2661      for pkg in $enableval; do
2662	IFS="$lt_save_ifs"
2663	if test "X$pkg" = "X$p"; then
2664	  enable_fast_install=yes
2665	fi
2666      done
2667      IFS="$lt_save_ifs"
2668      ;;
2669    esac
2670else
2671  enable_fast_install=yes
2672fi
2673
2674
2675# Make sure we can run config.sub.
2676$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2677  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2678$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2679   { (exit 1); exit 1; }; }
2680
2681{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2682$as_echo_n "checking build system type... " >&6; }
2683if test "${ac_cv_build+set}" = set; then
2684  $as_echo_n "(cached) " >&6
2685else
2686  ac_build_alias=$build_alias
2687test "x$ac_build_alias" = x &&
2688  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2689test "x$ac_build_alias" = x &&
2690  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2691$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2692   { (exit 1); exit 1; }; }
2693ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2694  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2695$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2696   { (exit 1); exit 1; }; }
2697
2698fi
2699{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2700$as_echo "$ac_cv_build" >&6; }
2701case $ac_cv_build in
2702*-*-*) ;;
2703*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2704$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2705   { (exit 1); exit 1; }; };;
2706esac
2707build=$ac_cv_build
2708ac_save_IFS=$IFS; IFS='-'
2709set x $ac_cv_build
2710shift
2711build_cpu=$1
2712build_vendor=$2
2713shift; shift
2714# Remember, the first character of IFS is used to create $*,
2715# except with old shells:
2716build_os=$*
2717IFS=$ac_save_IFS
2718case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2719
2720
2721{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2722$as_echo_n "checking host system type... " >&6; }
2723if test "${ac_cv_host+set}" = set; then
2724  $as_echo_n "(cached) " >&6
2725else
2726  if test "x$host_alias" = x; then
2727  ac_cv_host=$ac_cv_build
2728else
2729  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2730    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2731$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2732   { (exit 1); exit 1; }; }
2733fi
2734
2735fi
2736{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2737$as_echo "$ac_cv_host" >&6; }
2738case $ac_cv_host in
2739*-*-*) ;;
2740*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2741$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2742   { (exit 1); exit 1; }; };;
2743esac
2744host=$ac_cv_host
2745ac_save_IFS=$IFS; IFS='-'
2746set x $ac_cv_host
2747shift
2748host_cpu=$1
2749host_vendor=$2
2750shift; shift
2751# Remember, the first character of IFS is used to create $*,
2752# except with old shells:
2753host_os=$*
2754IFS=$ac_save_IFS
2755case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2756
2757
2758DEPDIR="${am__leading_dot}deps"
2759
2760ac_config_commands="$ac_config_commands depfiles"
2761
2762
2763am_make=${MAKE-make}
2764cat > confinc << 'END'
2765am__doit:
2766	@echo done
2767.PHONY: am__doit
2768END
2769# If we don't find an include directive, just comment out the code.
2770{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2771$as_echo_n "checking for style of include used by $am_make... " >&6; }
2772am__include="#"
2773am__quote=
2774_am_result=none
2775# First try GNU make style include.
2776echo "include confinc" > confmf
2777# We grep out `Entering directory' and `Leaving directory'
2778# messages which can occur if `w' ends up in MAKEFLAGS.
2779# In particular we don't look at `^make:' because GNU make might
2780# be invoked under some other name (usually "gmake"), in which
2781# case it prints its new name instead of `make'.
2782if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2783   am__include=include
2784   am__quote=
2785   _am_result=GNU
2786fi
2787# Now try BSD make style include.
2788if test "$am__include" = "#"; then
2789   echo '.include "confinc"' > confmf
2790   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2791      am__include=.include
2792      am__quote="\""
2793      _am_result=BSD
2794   fi
2795fi
2796
2797
2798{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2799$as_echo "$_am_result" >&6; }
2800rm -f confinc confmf
2801
2802# Check whether --enable-dependency-tracking was given.
2803if test "${enable_dependency_tracking+set}" = set; then
2804  enableval=$enable_dependency_tracking;
2805fi
2806
2807if test "x$enable_dependency_tracking" != xno; then
2808  am_depcomp="$ac_aux_dir/depcomp"
2809  AMDEPBACKSLASH='\'
2810fi
2811 if test "x$enable_dependency_tracking" != xno; then
2812  AMDEP_TRUE=
2813  AMDEP_FALSE='#'
2814else
2815  AMDEP_TRUE='#'
2816  AMDEP_FALSE=
2817fi
2818
2819
2820ac_ext=c
2821ac_cpp='$CPP $CPPFLAGS'
2822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825if test -n "$ac_tool_prefix"; then
2826  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2827set dummy ${ac_tool_prefix}gcc; ac_word=$2
2828{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2829$as_echo_n "checking for $ac_word... " >&6; }
2830if test "${ac_cv_prog_CC+set}" = set; then
2831  $as_echo_n "(cached) " >&6
2832else
2833  if test -n "$CC"; then
2834  ac_cv_prog_CC="$CC" # Let the user override the test.
2835else
2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839  IFS=$as_save_IFS
2840  test -z "$as_dir" && as_dir=.
2841  for ac_exec_ext in '' $ac_executable_extensions; do
2842  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2844    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845    break 2
2846  fi
2847done
2848done
2849IFS=$as_save_IFS
2850
2851fi
2852fi
2853CC=$ac_cv_prog_CC
2854if test -n "$CC"; then
2855  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2856$as_echo "$CC" >&6; }
2857else
2858  { $as_echo "$as_me:$LINENO: result: no" >&5
2859$as_echo "no" >&6; }
2860fi
2861
2862
2863fi
2864if test -z "$ac_cv_prog_CC"; then
2865  ac_ct_CC=$CC
2866  # Extract the first word of "gcc", so it can be a program name with args.
2867set dummy gcc; ac_word=$2
2868{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2869$as_echo_n "checking for $ac_word... " >&6; }
2870if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2871  $as_echo_n "(cached) " >&6
2872else
2873  if test -n "$ac_ct_CC"; then
2874  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2875else
2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877for as_dir in $PATH
2878do
2879  IFS=$as_save_IFS
2880  test -z "$as_dir" && as_dir=.
2881  for ac_exec_ext in '' $ac_executable_extensions; do
2882  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883    ac_cv_prog_ac_ct_CC="gcc"
2884    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885    break 2
2886  fi
2887done
2888done
2889IFS=$as_save_IFS
2890
2891fi
2892fi
2893ac_ct_CC=$ac_cv_prog_ac_ct_CC
2894if test -n "$ac_ct_CC"; then
2895  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2896$as_echo "$ac_ct_CC" >&6; }
2897else
2898  { $as_echo "$as_me:$LINENO: result: no" >&5
2899$as_echo "no" >&6; }
2900fi
2901
2902  if test "x$ac_ct_CC" = x; then
2903    CC=""
2904  else
2905    case $cross_compiling:$ac_tool_warned in
2906yes:)
2907{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2909ac_tool_warned=yes ;;
2910esac
2911    CC=$ac_ct_CC
2912  fi
2913else
2914  CC="$ac_cv_prog_CC"
2915fi
2916
2917if test -z "$CC"; then
2918          if test -n "$ac_tool_prefix"; then
2919    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2920set dummy ${ac_tool_prefix}cc; ac_word=$2
2921{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2922$as_echo_n "checking for $ac_word... " >&6; }
2923if test "${ac_cv_prog_CC+set}" = set; then
2924  $as_echo_n "(cached) " >&6
2925else
2926  if test -n "$CC"; then
2927  ac_cv_prog_CC="$CC" # Let the user override the test.
2928else
2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930for as_dir in $PATH
2931do
2932  IFS=$as_save_IFS
2933  test -z "$as_dir" && as_dir=.
2934  for ac_exec_ext in '' $ac_executable_extensions; do
2935  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936    ac_cv_prog_CC="${ac_tool_prefix}cc"
2937    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938    break 2
2939  fi
2940done
2941done
2942IFS=$as_save_IFS
2943
2944fi
2945fi
2946CC=$ac_cv_prog_CC
2947if test -n "$CC"; then
2948  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2949$as_echo "$CC" >&6; }
2950else
2951  { $as_echo "$as_me:$LINENO: result: no" >&5
2952$as_echo "no" >&6; }
2953fi
2954
2955
2956  fi
2957fi
2958if test -z "$CC"; then
2959  # Extract the first word of "cc", so it can be a program name with args.
2960set dummy cc; ac_word=$2
2961{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2962$as_echo_n "checking for $ac_word... " >&6; }
2963if test "${ac_cv_prog_CC+set}" = set; then
2964  $as_echo_n "(cached) " >&6
2965else
2966  if test -n "$CC"; then
2967  ac_cv_prog_CC="$CC" # Let the user override the test.
2968else
2969  ac_prog_rejected=no
2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971for as_dir in $PATH
2972do
2973  IFS=$as_save_IFS
2974  test -z "$as_dir" && as_dir=.
2975  for ac_exec_ext in '' $ac_executable_extensions; do
2976  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2978       ac_prog_rejected=yes
2979       continue
2980     fi
2981    ac_cv_prog_CC="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
2989if test $ac_prog_rejected = yes; then
2990  # We found a bogon in the path, so make sure we never use it.
2991  set dummy $ac_cv_prog_CC
2992  shift
2993  if test $# != 0; then
2994    # We chose a different compiler from the bogus one.
2995    # However, it has the same basename, so the bogon will be chosen
2996    # first if we set CC to just the basename; use the full file name.
2997    shift
2998    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2999  fi
3000fi
3001fi
3002fi
3003CC=$ac_cv_prog_CC
3004if test -n "$CC"; then
3005  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3006$as_echo "$CC" >&6; }
3007else
3008  { $as_echo "$as_me:$LINENO: result: no" >&5
3009$as_echo "no" >&6; }
3010fi
3011
3012
3013fi
3014if test -z "$CC"; then
3015  if test -n "$ac_tool_prefix"; then
3016  for ac_prog in cl.exe
3017  do
3018    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3019set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3020{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3021$as_echo_n "checking for $ac_word... " >&6; }
3022if test "${ac_cv_prog_CC+set}" = set; then
3023  $as_echo_n "(cached) " >&6
3024else
3025  if test -n "$CC"; then
3026  ac_cv_prog_CC="$CC" # Let the user override the test.
3027else
3028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029for as_dir in $PATH
3030do
3031  IFS=$as_save_IFS
3032  test -z "$as_dir" && as_dir=.
3033  for ac_exec_ext in '' $ac_executable_extensions; do
3034  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3036    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3037    break 2
3038  fi
3039done
3040done
3041IFS=$as_save_IFS
3042
3043fi
3044fi
3045CC=$ac_cv_prog_CC
3046if test -n "$CC"; then
3047  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3048$as_echo "$CC" >&6; }
3049else
3050  { $as_echo "$as_me:$LINENO: result: no" >&5
3051$as_echo "no" >&6; }
3052fi
3053
3054
3055    test -n "$CC" && break
3056  done
3057fi
3058if test -z "$CC"; then
3059  ac_ct_CC=$CC
3060  for ac_prog in cl.exe
3061do
3062  # Extract the first word of "$ac_prog", so it can be a program name with args.
3063set dummy $ac_prog; ac_word=$2
3064{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3065$as_echo_n "checking for $ac_word... " >&6; }
3066if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3067  $as_echo_n "(cached) " >&6
3068else
3069  if test -n "$ac_ct_CC"; then
3070  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3071else
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075  IFS=$as_save_IFS
3076  test -z "$as_dir" && as_dir=.
3077  for ac_exec_ext in '' $ac_executable_extensions; do
3078  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3079    ac_cv_prog_ac_ct_CC="$ac_prog"
3080    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081    break 2
3082  fi
3083done
3084done
3085IFS=$as_save_IFS
3086
3087fi
3088fi
3089ac_ct_CC=$ac_cv_prog_ac_ct_CC
3090if test -n "$ac_ct_CC"; then
3091  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3092$as_echo "$ac_ct_CC" >&6; }
3093else
3094  { $as_echo "$as_me:$LINENO: result: no" >&5
3095$as_echo "no" >&6; }
3096fi
3097
3098
3099  test -n "$ac_ct_CC" && break
3100done
3101
3102  if test "x$ac_ct_CC" = x; then
3103    CC=""
3104  else
3105    case $cross_compiling:$ac_tool_warned in
3106yes:)
3107{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3109ac_tool_warned=yes ;;
3110esac
3111    CC=$ac_ct_CC
3112  fi
3113fi
3114
3115fi
3116
3117
3118test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3120{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3121See \`config.log' for more details." >&5
3122$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3123See \`config.log' for more details." >&2;}
3124   { (exit 1); exit 1; }; }; }
3125
3126# Provide some information about the compiler.
3127$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3128set X $ac_compile
3129ac_compiler=$2
3130{ (ac_try="$ac_compiler --version >&5"
3131case "(($ac_try" in
3132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133  *) ac_try_echo=$ac_try;;
3134esac
3135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3136$as_echo "$ac_try_echo") >&5
3137  (eval "$ac_compiler --version >&5") 2>&5
3138  ac_status=$?
3139  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140  (exit $ac_status); }
3141{ (ac_try="$ac_compiler -v >&5"
3142case "(($ac_try" in
3143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144  *) ac_try_echo=$ac_try;;
3145esac
3146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3147$as_echo "$ac_try_echo") >&5
3148  (eval "$ac_compiler -v >&5") 2>&5
3149  ac_status=$?
3150  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151  (exit $ac_status); }
3152{ (ac_try="$ac_compiler -V >&5"
3153case "(($ac_try" in
3154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155  *) ac_try_echo=$ac_try;;
3156esac
3157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3158$as_echo "$ac_try_echo") >&5
3159  (eval "$ac_compiler -V >&5") 2>&5
3160  ac_status=$?
3161  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162  (exit $ac_status); }
3163
3164cat >conftest.$ac_ext <<_ACEOF
3165/* confdefs.h.  */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
3169/* end confdefs.h.  */
3170
3171int
3172main ()
3173{
3174
3175  ;
3176  return 0;
3177}
3178_ACEOF
3179ac_clean_files_save=$ac_clean_files
3180ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3181# Try to create an executable without -o first, disregard a.out.
3182# It will help us diagnose broken compilers, and finding out an intuition
3183# of exeext.
3184{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3185$as_echo_n "checking for C compiler default output file name... " >&6; }
3186ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3187
3188# The possible output files:
3189ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3190
3191ac_rmfiles=
3192for ac_file in $ac_files
3193do
3194  case $ac_file in
3195    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3196    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3197  esac
3198done
3199rm -f $ac_rmfiles
3200
3201if { (ac_try="$ac_link_default"
3202case "(($ac_try" in
3203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204  *) ac_try_echo=$ac_try;;
3205esac
3206eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3207$as_echo "$ac_try_echo") >&5
3208  (eval "$ac_link_default") 2>&5
3209  ac_status=$?
3210  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211  (exit $ac_status); }; then
3212  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3213# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3214# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3215# so that the user can short-circuit this test for compilers unknown to
3216# Autoconf.
3217for ac_file in $ac_files ''
3218do
3219  test -f "$ac_file" || continue
3220  case $ac_file in
3221    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3222	;;
3223    [ab].out )
3224	# We found the default executable, but exeext='' is most
3225	# certainly right.
3226	break;;
3227    *.* )
3228        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3229	then :; else
3230	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3231	fi
3232	# We set ac_cv_exeext here because the later test for it is not
3233	# safe: cross compilers may not add the suffix if given an `-o'
3234	# argument, so we may need to know it at that point already.
3235	# Even if this section looks crufty: it has the advantage of
3236	# actually working.
3237	break;;
3238    * )
3239	break;;
3240  esac
3241done
3242test "$ac_cv_exeext" = no && ac_cv_exeext=
3243
3244else
3245  ac_file=''
3246fi
3247
3248{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3249$as_echo "$ac_file" >&6; }
3250if test -z "$ac_file"; then
3251  $as_echo "$as_me: failed program was:" >&5
3252sed 's/^/| /' conftest.$ac_ext >&5
3253
3254{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3257See \`config.log' for more details." >&5
3258$as_echo "$as_me: error: C compiler cannot create executables
3259See \`config.log' for more details." >&2;}
3260   { (exit 77); exit 77; }; }; }
3261fi
3262
3263ac_exeext=$ac_cv_exeext
3264
3265# Check that the compiler produces executables we can run.  If not, either
3266# the compiler is broken, or we cross compile.
3267{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3268$as_echo_n "checking whether the C compiler works... " >&6; }
3269# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3270# If not cross compiling, check that we can run a simple program.
3271if test "$cross_compiling" != yes; then
3272  if { ac_try='./$ac_file'
3273  { (case "(($ac_try" in
3274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275  *) ac_try_echo=$ac_try;;
3276esac
3277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3278$as_echo "$ac_try_echo") >&5
3279  (eval "$ac_try") 2>&5
3280  ac_status=$?
3281  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282  (exit $ac_status); }; }; then
3283    cross_compiling=no
3284  else
3285    if test "$cross_compiling" = maybe; then
3286	cross_compiling=yes
3287    else
3288	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3291If you meant to cross compile, use \`--host'.
3292See \`config.log' for more details." >&5
3293$as_echo "$as_me: error: cannot run C compiled programs.
3294If you meant to cross compile, use \`--host'.
3295See \`config.log' for more details." >&2;}
3296   { (exit 1); exit 1; }; }; }
3297    fi
3298  fi
3299fi
3300{ $as_echo "$as_me:$LINENO: result: yes" >&5
3301$as_echo "yes" >&6; }
3302
3303rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3304ac_clean_files=$ac_clean_files_save
3305# Check that the compiler produces executables we can run.  If not, either
3306# the compiler is broken, or we cross compile.
3307{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3308$as_echo_n "checking whether we are cross compiling... " >&6; }
3309{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3310$as_echo "$cross_compiling" >&6; }
3311
3312{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3313$as_echo_n "checking for suffix of executables... " >&6; }
3314if { (ac_try="$ac_link"
3315case "(($ac_try" in
3316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317  *) ac_try_echo=$ac_try;;
3318esac
3319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3320$as_echo "$ac_try_echo") >&5
3321  (eval "$ac_link") 2>&5
3322  ac_status=$?
3323  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324  (exit $ac_status); }; then
3325  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3326# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3327# work properly (i.e., refer to `conftest.exe'), while it won't with
3328# `rm'.
3329for ac_file in conftest.exe conftest conftest.*; do
3330  test -f "$ac_file" || continue
3331  case $ac_file in
3332    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3333    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3334	  break;;
3335    * ) break;;
3336  esac
3337done
3338else
3339  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3342See \`config.log' for more details." >&5
3343$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3344See \`config.log' for more details." >&2;}
3345   { (exit 1); exit 1; }; }; }
3346fi
3347
3348rm -f conftest$ac_cv_exeext
3349{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3350$as_echo "$ac_cv_exeext" >&6; }
3351
3352rm -f conftest.$ac_ext
3353EXEEXT=$ac_cv_exeext
3354ac_exeext=$EXEEXT
3355{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3356$as_echo_n "checking for suffix of object files... " >&6; }
3357if test "${ac_cv_objext+set}" = set; then
3358  $as_echo_n "(cached) " >&6
3359else
3360  cat >conftest.$ac_ext <<_ACEOF
3361/* confdefs.h.  */
3362_ACEOF
3363cat confdefs.h >>conftest.$ac_ext
3364cat >>conftest.$ac_ext <<_ACEOF
3365/* end confdefs.h.  */
3366
3367int
3368main ()
3369{
3370
3371  ;
3372  return 0;
3373}
3374_ACEOF
3375rm -f conftest.o conftest.obj
3376if { (ac_try="$ac_compile"
3377case "(($ac_try" in
3378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379  *) ac_try_echo=$ac_try;;
3380esac
3381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3382$as_echo "$ac_try_echo") >&5
3383  (eval "$ac_compile") 2>&5
3384  ac_status=$?
3385  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386  (exit $ac_status); }; then
3387  for ac_file in conftest.o conftest.obj conftest.*; do
3388  test -f "$ac_file" || continue;
3389  case $ac_file in
3390    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3391    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3392       break;;
3393  esac
3394done
3395else
3396  $as_echo "$as_me: failed program was:" >&5
3397sed 's/^/| /' conftest.$ac_ext >&5
3398
3399{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3402See \`config.log' for more details." >&5
3403$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3404See \`config.log' for more details." >&2;}
3405   { (exit 1); exit 1; }; }; }
3406fi
3407
3408rm -f conftest.$ac_cv_objext conftest.$ac_ext
3409fi
3410{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3411$as_echo "$ac_cv_objext" >&6; }
3412OBJEXT=$ac_cv_objext
3413ac_objext=$OBJEXT
3414{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3415$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3416if test "${ac_cv_c_compiler_gnu+set}" = set; then
3417  $as_echo_n "(cached) " >&6
3418else
3419  cat >conftest.$ac_ext <<_ACEOF
3420/* confdefs.h.  */
3421_ACEOF
3422cat confdefs.h >>conftest.$ac_ext
3423cat >>conftest.$ac_ext <<_ACEOF
3424/* end confdefs.h.  */
3425
3426int
3427main ()
3428{
3429#ifndef __GNUC__
3430       choke me
3431#endif
3432
3433  ;
3434  return 0;
3435}
3436_ACEOF
3437rm -f conftest.$ac_objext
3438if { (ac_try="$ac_compile"
3439case "(($ac_try" in
3440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441  *) ac_try_echo=$ac_try;;
3442esac
3443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3444$as_echo "$ac_try_echo") >&5
3445  (eval "$ac_compile") 2>conftest.er1
3446  ac_status=$?
3447  grep -v '^ *+' conftest.er1 >conftest.err
3448  rm -f conftest.er1
3449  cat conftest.err >&5
3450  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451  (exit $ac_status); } && {
3452	 test -z "$ac_c_werror_flag" ||
3453	 test ! -s conftest.err
3454       } && test -s conftest.$ac_objext; then
3455  ac_compiler_gnu=yes
3456else
3457  $as_echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
3460	ac_compiler_gnu=no
3461fi
3462
3463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464ac_cv_c_compiler_gnu=$ac_compiler_gnu
3465
3466fi
3467{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3468$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3469if test $ac_compiler_gnu = yes; then
3470  GCC=yes
3471else
3472  GCC=
3473fi
3474ac_test_CFLAGS=${CFLAGS+set}
3475ac_save_CFLAGS=$CFLAGS
3476{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3477$as_echo_n "checking whether $CC accepts -g... " >&6; }
3478if test "${ac_cv_prog_cc_g+set}" = set; then
3479  $as_echo_n "(cached) " >&6
3480else
3481  ac_save_c_werror_flag=$ac_c_werror_flag
3482   ac_c_werror_flag=yes
3483   ac_cv_prog_cc_g=no
3484   CFLAGS="-g"
3485   cat >conftest.$ac_ext <<_ACEOF
3486/* confdefs.h.  */
3487_ACEOF
3488cat confdefs.h >>conftest.$ac_ext
3489cat >>conftest.$ac_ext <<_ACEOF
3490/* end confdefs.h.  */
3491
3492int
3493main ()
3494{
3495
3496  ;
3497  return 0;
3498}
3499_ACEOF
3500rm -f conftest.$ac_objext
3501if { (ac_try="$ac_compile"
3502case "(($ac_try" in
3503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504  *) ac_try_echo=$ac_try;;
3505esac
3506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3507$as_echo "$ac_try_echo") >&5
3508  (eval "$ac_compile") 2>conftest.er1
3509  ac_status=$?
3510  grep -v '^ *+' conftest.er1 >conftest.err
3511  rm -f conftest.er1
3512  cat conftest.err >&5
3513  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514  (exit $ac_status); } && {
3515	 test -z "$ac_c_werror_flag" ||
3516	 test ! -s conftest.err
3517       } && test -s conftest.$ac_objext; then
3518  ac_cv_prog_cc_g=yes
3519else
3520  $as_echo "$as_me: failed program was:" >&5
3521sed 's/^/| /' conftest.$ac_ext >&5
3522
3523	CFLAGS=""
3524      cat >conftest.$ac_ext <<_ACEOF
3525/* confdefs.h.  */
3526_ACEOF
3527cat confdefs.h >>conftest.$ac_ext
3528cat >>conftest.$ac_ext <<_ACEOF
3529/* end confdefs.h.  */
3530
3531int
3532main ()
3533{
3534
3535  ;
3536  return 0;
3537}
3538_ACEOF
3539rm -f conftest.$ac_objext
3540if { (ac_try="$ac_compile"
3541case "(($ac_try" in
3542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543  *) ac_try_echo=$ac_try;;
3544esac
3545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3546$as_echo "$ac_try_echo") >&5
3547  (eval "$ac_compile") 2>conftest.er1
3548  ac_status=$?
3549  grep -v '^ *+' conftest.er1 >conftest.err
3550  rm -f conftest.er1
3551  cat conftest.err >&5
3552  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553  (exit $ac_status); } && {
3554	 test -z "$ac_c_werror_flag" ||
3555	 test ! -s conftest.err
3556       } && test -s conftest.$ac_objext; then
3557  :
3558else
3559  $as_echo "$as_me: failed program was:" >&5
3560sed 's/^/| /' conftest.$ac_ext >&5
3561
3562	ac_c_werror_flag=$ac_save_c_werror_flag
3563	 CFLAGS="-g"
3564	 cat >conftest.$ac_ext <<_ACEOF
3565/* confdefs.h.  */
3566_ACEOF
3567cat confdefs.h >>conftest.$ac_ext
3568cat >>conftest.$ac_ext <<_ACEOF
3569/* end confdefs.h.  */
3570
3571int
3572main ()
3573{
3574
3575  ;
3576  return 0;
3577}
3578_ACEOF
3579rm -f conftest.$ac_objext
3580if { (ac_try="$ac_compile"
3581case "(($ac_try" in
3582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583  *) ac_try_echo=$ac_try;;
3584esac
3585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3586$as_echo "$ac_try_echo") >&5
3587  (eval "$ac_compile") 2>conftest.er1
3588  ac_status=$?
3589  grep -v '^ *+' conftest.er1 >conftest.err
3590  rm -f conftest.er1
3591  cat conftest.err >&5
3592  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593  (exit $ac_status); } && {
3594	 test -z "$ac_c_werror_flag" ||
3595	 test ! -s conftest.err
3596       } && test -s conftest.$ac_objext; then
3597  ac_cv_prog_cc_g=yes
3598else
3599  $as_echo "$as_me: failed program was:" >&5
3600sed 's/^/| /' conftest.$ac_ext >&5
3601
3602
3603fi
3604
3605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606fi
3607
3608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609fi
3610
3611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612   ac_c_werror_flag=$ac_save_c_werror_flag
3613fi
3614{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3615$as_echo "$ac_cv_prog_cc_g" >&6; }
3616if test "$ac_test_CFLAGS" = set; then
3617  CFLAGS=$ac_save_CFLAGS
3618elif test $ac_cv_prog_cc_g = yes; then
3619  if test "$GCC" = yes; then
3620    CFLAGS="-g -O2"
3621  else
3622    CFLAGS="-g"
3623  fi
3624else
3625  if test "$GCC" = yes; then
3626    CFLAGS="-O2"
3627  else
3628    CFLAGS=
3629  fi
3630fi
3631{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3632$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3633if test "${ac_cv_prog_cc_c89+set}" = set; then
3634  $as_echo_n "(cached) " >&6
3635else
3636  ac_cv_prog_cc_c89=no
3637ac_save_CC=$CC
3638cat >conftest.$ac_ext <<_ACEOF
3639/* confdefs.h.  */
3640_ACEOF
3641cat confdefs.h >>conftest.$ac_ext
3642cat >>conftest.$ac_ext <<_ACEOF
3643/* end confdefs.h.  */
3644#include <stdarg.h>
3645#include <stdio.h>
3646#include <sys/types.h>
3647#include <sys/stat.h>
3648/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3649struct buf { int x; };
3650FILE * (*rcsopen) (struct buf *, struct stat *, int);
3651static char *e (p, i)
3652     char **p;
3653     int i;
3654{
3655  return p[i];
3656}
3657static char *f (char * (*g) (char **, int), char **p, ...)
3658{
3659  char *s;
3660  va_list v;
3661  va_start (v,p);
3662  s = g (p, va_arg (v,int));
3663  va_end (v);
3664  return s;
3665}
3666
3667/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3668   function prototypes and stuff, but not '\xHH' hex character constants.
3669   These don't provoke an error unfortunately, instead are silently treated
3670   as 'x'.  The following induces an error, until -std is added to get
3671   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3672   array size at least.  It's necessary to write '\x00'==0 to get something
3673   that's true only with -std.  */
3674int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3675
3676/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3677   inside strings and character constants.  */
3678#define FOO(x) 'x'
3679int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3680
3681int test (int i, double x);
3682struct s1 {int (*f) (int a);};
3683struct s2 {int (*f) (double a);};
3684int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3685int argc;
3686char **argv;
3687int
3688main ()
3689{
3690return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3691  ;
3692  return 0;
3693}
3694_ACEOF
3695for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3696	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3697do
3698  CC="$ac_save_CC $ac_arg"
3699  rm -f conftest.$ac_objext
3700if { (ac_try="$ac_compile"
3701case "(($ac_try" in
3702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703  *) ac_try_echo=$ac_try;;
3704esac
3705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706$as_echo "$ac_try_echo") >&5
3707  (eval "$ac_compile") 2>conftest.er1
3708  ac_status=$?
3709  grep -v '^ *+' conftest.er1 >conftest.err
3710  rm -f conftest.er1
3711  cat conftest.err >&5
3712  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713  (exit $ac_status); } && {
3714	 test -z "$ac_c_werror_flag" ||
3715	 test ! -s conftest.err
3716       } && test -s conftest.$ac_objext; then
3717  ac_cv_prog_cc_c89=$ac_arg
3718else
3719  $as_echo "$as_me: failed program was:" >&5
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
3722
3723fi
3724
3725rm -f core conftest.err conftest.$ac_objext
3726  test "x$ac_cv_prog_cc_c89" != "xno" && break
3727done
3728rm -f conftest.$ac_ext
3729CC=$ac_save_CC
3730
3731fi
3732# AC_CACHE_VAL
3733case "x$ac_cv_prog_cc_c89" in
3734  x)
3735    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3736$as_echo "none needed" >&6; } ;;
3737  xno)
3738    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3739$as_echo "unsupported" >&6; } ;;
3740  *)
3741    CC="$CC $ac_cv_prog_cc_c89"
3742    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3743$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3744esac
3745
3746
3747ac_ext=c
3748ac_cpp='$CPP $CPPFLAGS'
3749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752
3753depcc="$CC"   am_compiler_list=
3754
3755{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3756$as_echo_n "checking dependency style of $depcc... " >&6; }
3757if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3758  $as_echo_n "(cached) " >&6
3759else
3760  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3761  # We make a subdir and do the tests there.  Otherwise we can end up
3762  # making bogus files that we don't know about and never remove.  For
3763  # instance it was reported that on HP-UX the gcc test will end up
3764  # making a dummy file named `D' -- because `-MD' means `put the output
3765  # in D'.
3766  mkdir conftest.dir
3767  # Copy depcomp to subdir because otherwise we won't find it if we're
3768  # using a relative directory.
3769  cp "$am_depcomp" conftest.dir
3770  cd conftest.dir
3771  # We will build objects and dependencies in a subdirectory because
3772  # it helps to detect inapplicable dependency modes.  For instance
3773  # both Tru64's cc and ICC support -MD to output dependencies as a
3774  # side effect of compilation, but ICC will put the dependencies in
3775  # the current directory while Tru64 will put them in the object
3776  # directory.
3777  mkdir sub
3778
3779  am_cv_CC_dependencies_compiler_type=none
3780  if test "$am_compiler_list" = ""; then
3781     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3782  fi
3783  for depmode in $am_compiler_list; do
3784    # Setup a source with many dependencies, because some compilers
3785    # like to wrap large dependency lists on column 80 (with \), and
3786    # we should not choose a depcomp mode which is confused by this.
3787    #
3788    # We need to recreate these files for each test, as the compiler may
3789    # overwrite some of them when testing with obscure command lines.
3790    # This happens at least with the AIX C compiler.
3791    : > sub/conftest.c
3792    for i in 1 2 3 4 5 6; do
3793      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3794      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3795      # Solaris 8's {/usr,}/bin/sh.
3796      touch sub/conftst$i.h
3797    done
3798    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3799
3800    case $depmode in
3801    nosideeffect)
3802      # after this tag, mechanisms are not by side-effect, so they'll
3803      # only be used when explicitly requested
3804      if test "x$enable_dependency_tracking" = xyes; then
3805	continue
3806      else
3807	break
3808      fi
3809      ;;
3810    none) break ;;
3811    esac
3812    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3813    # mode.  It turns out that the SunPro C++ compiler does not properly
3814    # handle `-M -o', and we need to detect this.
3815    if depmode=$depmode \
3816       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3817       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3818       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3819         >/dev/null 2>conftest.err &&
3820       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3821       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3822       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3823       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3824      # icc doesn't choke on unknown options, it will just issue warnings
3825      # or remarks (even with -Werror).  So we grep stderr for any message
3826      # that says an option was ignored or not supported.
3827      # When given -MP, icc 7.0 and 7.1 complain thusly:
3828      #   icc: Command line warning: ignoring option '-M'; no argument required
3829      # The diagnosis changed in icc 8.0:
3830      #   icc: Command line remark: option '-MP' not supported
3831      if (grep 'ignoring option' conftest.err ||
3832          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3833        am_cv_CC_dependencies_compiler_type=$depmode
3834        break
3835      fi
3836    fi
3837  done
3838
3839  cd ..
3840  rm -rf conftest.dir
3841else
3842  am_cv_CC_dependencies_compiler_type=none
3843fi
3844
3845fi
3846{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3847$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3848CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3849
3850 if
3851  test "x$enable_dependency_tracking" != xno \
3852  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3853  am__fastdepCC_TRUE=
3854  am__fastdepCC_FALSE='#'
3855else
3856  am__fastdepCC_TRUE='#'
3857  am__fastdepCC_FALSE=
3858fi
3859
3860
3861{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3862$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3863if test "${lt_cv_path_SED+set}" = set; then
3864  $as_echo_n "(cached) " >&6
3865else
3866  # Loop through the user's path and test for sed and gsed.
3867# Then use that list of sed's as ones to test for truncation.
3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869for as_dir in $PATH
3870do
3871  IFS=$as_save_IFS
3872  test -z "$as_dir" && as_dir=.
3873  for lt_ac_prog in sed gsed; do
3874    for ac_exec_ext in '' $ac_executable_extensions; do
3875      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3876        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3877      fi
3878    done
3879  done
3880done
3881IFS=$as_save_IFS
3882lt_ac_max=0
3883lt_ac_count=0
3884# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3885# along with /bin/sed that truncates output.
3886for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3887  test ! -f $lt_ac_sed && continue
3888  cat /dev/null > conftest.in
3889  lt_ac_count=0
3890  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3891  # Check for GNU sed and select it if it is found.
3892  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3893    lt_cv_path_SED=$lt_ac_sed
3894    break
3895  fi
3896  while true; do
3897    cat conftest.in conftest.in >conftest.tmp
3898    mv conftest.tmp conftest.in
3899    cp conftest.in conftest.nl
3900    echo >>conftest.nl
3901    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3902    cmp -s conftest.out conftest.nl || break
3903    # 10000 chars as input seems more than enough
3904    test $lt_ac_count -gt 10 && break
3905    lt_ac_count=`expr $lt_ac_count + 1`
3906    if test $lt_ac_count -gt $lt_ac_max; then
3907      lt_ac_max=$lt_ac_count
3908      lt_cv_path_SED=$lt_ac_sed
3909    fi
3910  done
3911done
3912
3913fi
3914
3915SED=$lt_cv_path_SED
3916
3917{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3918$as_echo "$SED" >&6; }
3919
3920{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3921$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3922if test "${ac_cv_path_GREP+set}" = set; then
3923  $as_echo_n "(cached) " >&6
3924else
3925  if test -z "$GREP"; then
3926  ac_path_GREP_found=false
3927  # Loop through the user's path and test for each of PROGNAME-LIST
3928  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3930do
3931  IFS=$as_save_IFS
3932  test -z "$as_dir" && as_dir=.
3933  for ac_prog in grep ggrep; do
3934    for ac_exec_ext in '' $ac_executable_extensions; do
3935      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3936      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3937# Check for GNU ac_path_GREP and select it if it is found.
3938  # Check for GNU $ac_path_GREP
3939case `"$ac_path_GREP" --version 2>&1` in
3940*GNU*)
3941  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3942*)
3943  ac_count=0
3944  $as_echo_n 0123456789 >"conftest.in"
3945  while :
3946  do
3947    cat "conftest.in" "conftest.in" >"conftest.tmp"
3948    mv "conftest.tmp" "conftest.in"
3949    cp "conftest.in" "conftest.nl"
3950    $as_echo 'GREP' >> "conftest.nl"
3951    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3952    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3953    ac_count=`expr $ac_count + 1`
3954    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3955      # Best one so far, save it but keep looking for a better one
3956      ac_cv_path_GREP="$ac_path_GREP"
3957      ac_path_GREP_max=$ac_count
3958    fi
3959    # 10*(2^10) chars as input seems more than enough
3960    test $ac_count -gt 10 && break
3961  done
3962  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3963esac
3964
3965      $ac_path_GREP_found && break 3
3966    done
3967  done
3968done
3969IFS=$as_save_IFS
3970  if test -z "$ac_cv_path_GREP"; then
3971    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3972$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3973   { (exit 1); exit 1; }; }
3974  fi
3975else
3976  ac_cv_path_GREP=$GREP
3977fi
3978
3979fi
3980{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3981$as_echo "$ac_cv_path_GREP" >&6; }
3982 GREP="$ac_cv_path_GREP"
3983
3984
3985{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3986$as_echo_n "checking for egrep... " >&6; }
3987if test "${ac_cv_path_EGREP+set}" = set; then
3988  $as_echo_n "(cached) " >&6
3989else
3990  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3991   then ac_cv_path_EGREP="$GREP -E"
3992   else
3993     if test -z "$EGREP"; then
3994  ac_path_EGREP_found=false
3995  # Loop through the user's path and test for each of PROGNAME-LIST
3996  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3998do
3999  IFS=$as_save_IFS
4000  test -z "$as_dir" && as_dir=.
4001  for ac_prog in egrep; do
4002    for ac_exec_ext in '' $ac_executable_extensions; do
4003      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4004      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4005# Check for GNU ac_path_EGREP and select it if it is found.
4006  # Check for GNU $ac_path_EGREP
4007case `"$ac_path_EGREP" --version 2>&1` in
4008*GNU*)
4009  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4010*)
4011  ac_count=0
4012  $as_echo_n 0123456789 >"conftest.in"
4013  while :
4014  do
4015    cat "conftest.in" "conftest.in" >"conftest.tmp"
4016    mv "conftest.tmp" "conftest.in"
4017    cp "conftest.in" "conftest.nl"
4018    $as_echo 'EGREP' >> "conftest.nl"
4019    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4020    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4021    ac_count=`expr $ac_count + 1`
4022    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4023      # Best one so far, save it but keep looking for a better one
4024      ac_cv_path_EGREP="$ac_path_EGREP"
4025      ac_path_EGREP_max=$ac_count
4026    fi
4027    # 10*(2^10) chars as input seems more than enough
4028    test $ac_count -gt 10 && break
4029  done
4030  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4031esac
4032
4033      $ac_path_EGREP_found && break 3
4034    done
4035  done
4036done
4037IFS=$as_save_IFS
4038  if test -z "$ac_cv_path_EGREP"; then
4039    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4040$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4041   { (exit 1); exit 1; }; }
4042  fi
4043else
4044  ac_cv_path_EGREP=$EGREP
4045fi
4046
4047   fi
4048fi
4049{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4050$as_echo "$ac_cv_path_EGREP" >&6; }
4051 EGREP="$ac_cv_path_EGREP"
4052
4053
4054
4055# Check whether --with-gnu-ld was given.
4056if test "${with_gnu_ld+set}" = set; then
4057  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4058else
4059  with_gnu_ld=no
4060fi
4061
4062ac_prog=ld
4063if test "$GCC" = yes; then
4064  # Check if gcc -print-prog-name=ld gives a path.
4065  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4066$as_echo_n "checking for ld used by $CC... " >&6; }
4067  case $host in
4068  *-*-mingw*)
4069    # gcc leaves a trailing carriage return which upsets mingw
4070    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4071  *)
4072    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4073  esac
4074  case $ac_prog in
4075    # Accept absolute paths.
4076    [\\/]* | ?:[\\/]*)
4077      re_direlt='/[^/][^/]*/\.\./'
4078      # Canonicalize the pathname of ld
4079      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4080      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4081	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4082      done
4083      test -z "$LD" && LD="$ac_prog"
4084      ;;
4085  "")
4086    # If it fails, then pretend we aren't using GCC.
4087    ac_prog=ld
4088    ;;
4089  *)
4090    # If it is relative, then search for the first ld in PATH.
4091    with_gnu_ld=unknown
4092    ;;
4093  esac
4094elif test "$with_gnu_ld" = yes; then
4095  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4096$as_echo_n "checking for GNU ld... " >&6; }
4097else
4098  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4099$as_echo_n "checking for non-GNU ld... " >&6; }
4100fi
4101if test "${lt_cv_path_LD+set}" = set; then
4102  $as_echo_n "(cached) " >&6
4103else
4104  if test -z "$LD"; then
4105  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4106  for ac_dir in $PATH; do
4107    IFS="$lt_save_ifs"
4108    test -z "$ac_dir" && ac_dir=.
4109    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4110      lt_cv_path_LD="$ac_dir/$ac_prog"
4111      # Check to see if the program is GNU ld.  I'd rather use --version,
4112      # but apparently some variants of GNU ld only accept -v.
4113      # Break only if it was the GNU/non-GNU ld that we prefer.
4114      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4115      *GNU* | *'with BFD'*)
4116	test "$with_gnu_ld" != no && break
4117	;;
4118      *)
4119	test "$with_gnu_ld" != yes && break
4120	;;
4121      esac
4122    fi
4123  done
4124  IFS="$lt_save_ifs"
4125else
4126  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4127fi
4128fi
4129
4130LD="$lt_cv_path_LD"
4131if test -n "$LD"; then
4132  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4133$as_echo "$LD" >&6; }
4134else
4135  { $as_echo "$as_me:$LINENO: result: no" >&5
4136$as_echo "no" >&6; }
4137fi
4138test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4139$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4140   { (exit 1); exit 1; }; }
4141{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4142$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4143if test "${lt_cv_prog_gnu_ld+set}" = set; then
4144  $as_echo_n "(cached) " >&6
4145else
4146  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4147case `$LD -v 2>&1 </dev/null` in
4148*GNU* | *'with BFD'*)
4149  lt_cv_prog_gnu_ld=yes
4150  ;;
4151*)
4152  lt_cv_prog_gnu_ld=no
4153  ;;
4154esac
4155fi
4156{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4157$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4158with_gnu_ld=$lt_cv_prog_gnu_ld
4159
4160
4161{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4162$as_echo_n "checking for $LD option to reload object files... " >&6; }
4163if test "${lt_cv_ld_reload_flag+set}" = set; then
4164  $as_echo_n "(cached) " >&6
4165else
4166  lt_cv_ld_reload_flag='-r'
4167fi
4168{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4169$as_echo "$lt_cv_ld_reload_flag" >&6; }
4170reload_flag=$lt_cv_ld_reload_flag
4171case $reload_flag in
4172"" | " "*) ;;
4173*) reload_flag=" $reload_flag" ;;
4174esac
4175reload_cmds='$LD$reload_flag -o $output$reload_objs'
4176case $host_os in
4177  darwin*)
4178    if test "$GCC" = yes; then
4179      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4180    else
4181      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4182    fi
4183    ;;
4184esac
4185
4186{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4187$as_echo_n "checking for BSD-compatible nm... " >&6; }
4188if test "${lt_cv_path_NM+set}" = set; then
4189  $as_echo_n "(cached) " >&6
4190else
4191  if test -n "$NM"; then
4192  # Let the user override the test.
4193  lt_cv_path_NM="$NM"
4194else
4195  lt_nm_to_check="${ac_tool_prefix}nm"
4196  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4197    lt_nm_to_check="$lt_nm_to_check nm"
4198  fi
4199  for lt_tmp_nm in $lt_nm_to_check; do
4200    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4201    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4202      IFS="$lt_save_ifs"
4203      test -z "$ac_dir" && ac_dir=.
4204      tmp_nm="$ac_dir/$lt_tmp_nm"
4205      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4206	# Check to see if the nm accepts a BSD-compat flag.
4207	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4208	#   nm: unknown option "B" ignored
4209	# Tru64's nm complains that /dev/null is an invalid object file
4210	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4211	*/dev/null* | *'Invalid file or object type'*)
4212	  lt_cv_path_NM="$tmp_nm -B"
4213	  break
4214	  ;;
4215	*)
4216	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4217	  */dev/null*)
4218	    lt_cv_path_NM="$tmp_nm -p"
4219	    break
4220	    ;;
4221	  *)
4222	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4223	    continue # so that we can try to find one that supports BSD flags
4224	    ;;
4225	  esac
4226	  ;;
4227	esac
4228      fi
4229    done
4230    IFS="$lt_save_ifs"
4231  done
4232  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4233fi
4234fi
4235{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4236$as_echo "$lt_cv_path_NM" >&6; }
4237NM="$lt_cv_path_NM"
4238
4239{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4240$as_echo_n "checking whether ln -s works... " >&6; }
4241LN_S=$as_ln_s
4242if test "$LN_S" = "ln -s"; then
4243  { $as_echo "$as_me:$LINENO: result: yes" >&5
4244$as_echo "yes" >&6; }
4245else
4246  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4247$as_echo "no, using $LN_S" >&6; }
4248fi
4249
4250{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4251$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4252if test "${lt_cv_deplibs_check_method+set}" = set; then
4253  $as_echo_n "(cached) " >&6
4254else
4255  lt_cv_file_magic_cmd='$MAGIC_CMD'
4256lt_cv_file_magic_test_file=
4257lt_cv_deplibs_check_method='unknown'
4258# Need to set the preceding variable on all platforms that support
4259# interlibrary dependencies.
4260# 'none' -- dependencies not supported.
4261# `unknown' -- same as none, but documents that we really don't know.
4262# 'pass_all' -- all dependencies passed with no checks.
4263# 'test_compile' -- check by making test program.
4264# 'file_magic [[regex]]' -- check by looking for files in library path
4265# which responds to the $file_magic_cmd with a given extended regex.
4266# If you have `file' or equivalent on your system and you're not sure
4267# whether `pass_all' will *always* work, you probably want this one.
4268
4269case $host_os in
4270aix[4-9]*)
4271  lt_cv_deplibs_check_method=pass_all
4272  ;;
4273
4274beos*)
4275  lt_cv_deplibs_check_method=pass_all
4276  ;;
4277
4278bsdi[45]*)
4279  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4280  lt_cv_file_magic_cmd='/usr/bin/file -L'
4281  lt_cv_file_magic_test_file=/shlib/libc.so
4282  ;;
4283
4284cygwin*)
4285  # func_win32_libid is a shell function defined in ltmain.sh
4286  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4287  lt_cv_file_magic_cmd='func_win32_libid'
4288  ;;
4289
4290mingw* | pw32*)
4291  # Base MSYS/MinGW do not provide the 'file' command needed by
4292  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4293  # unless we find 'file', for example because we are cross-compiling.
4294  if ( file / ) >/dev/null 2>&1; then
4295    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4296    lt_cv_file_magic_cmd='func_win32_libid'
4297  else
4298    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4299    lt_cv_file_magic_cmd='$OBJDUMP -f'
4300  fi
4301  ;;
4302
4303darwin* | rhapsody*)
4304  lt_cv_deplibs_check_method=pass_all
4305  ;;
4306
4307freebsd* | dragonfly*)
4308  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4309    case $host_cpu in
4310    i*86 )
4311      # Not sure whether the presence of OpenBSD here was a mistake.
4312      # Let's accept both of them until this is cleared up.
4313      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4314      lt_cv_file_magic_cmd=/usr/bin/file
4315      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4316      ;;
4317    esac
4318  else
4319    lt_cv_deplibs_check_method=pass_all
4320  fi
4321  ;;
4322
4323gnu*)
4324  lt_cv_deplibs_check_method=pass_all
4325  ;;
4326
4327hpux10.20* | hpux11*)
4328  lt_cv_file_magic_cmd=/usr/bin/file
4329  case $host_cpu in
4330  ia64*)
4331    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4332    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4333    ;;
4334  hppa*64*)
4335    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]'
4336    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4337    ;;
4338  *)
4339    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4340    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4341    ;;
4342  esac
4343  ;;
4344
4345interix[3-9]*)
4346  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4347  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4348  ;;
4349
4350irix5* | irix6* | nonstopux*)
4351  case $LD in
4352  *-32|*"-32 ") libmagic=32-bit;;
4353  *-n32|*"-n32 ") libmagic=N32;;
4354  *-64|*"-64 ") libmagic=64-bit;;
4355  *) libmagic=never-match;;
4356  esac
4357  lt_cv_deplibs_check_method=pass_all
4358  ;;
4359
4360# This must be Linux ELF.
4361linux* | k*bsd*-gnu)
4362  lt_cv_deplibs_check_method=pass_all
4363  ;;
4364
4365netbsd*)
4366  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4367    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4368  else
4369    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4370  fi
4371  ;;
4372
4373newos6*)
4374  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4375  lt_cv_file_magic_cmd=/usr/bin/file
4376  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4377  ;;
4378
4379nto-qnx*)
4380  lt_cv_deplibs_check_method=unknown
4381  ;;
4382
4383openbsd*)
4384  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4385    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4386  else
4387    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4388  fi
4389  ;;
4390
4391osf3* | osf4* | osf5*)
4392  lt_cv_deplibs_check_method=pass_all
4393  ;;
4394
4395rdos*)
4396  lt_cv_deplibs_check_method=pass_all
4397  ;;
4398
4399solaris*)
4400  lt_cv_deplibs_check_method=pass_all
4401  ;;
4402
4403sysv4 | sysv4.3*)
4404  case $host_vendor in
4405  motorola)
4406    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]'
4407    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4408    ;;
4409  ncr)
4410    lt_cv_deplibs_check_method=pass_all
4411    ;;
4412  sequent)
4413    lt_cv_file_magic_cmd='/bin/file'
4414    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4415    ;;
4416  sni)
4417    lt_cv_file_magic_cmd='/bin/file'
4418    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4419    lt_cv_file_magic_test_file=/lib/libc.so
4420    ;;
4421  siemens)
4422    lt_cv_deplibs_check_method=pass_all
4423    ;;
4424  pc)
4425    lt_cv_deplibs_check_method=pass_all
4426    ;;
4427  esac
4428  ;;
4429
4430sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4431  lt_cv_deplibs_check_method=pass_all
4432  ;;
4433esac
4434
4435fi
4436{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4437$as_echo "$lt_cv_deplibs_check_method" >&6; }
4438file_magic_cmd=$lt_cv_file_magic_cmd
4439deplibs_check_method=$lt_cv_deplibs_check_method
4440test -z "$deplibs_check_method" && deplibs_check_method=unknown
4441
4442
4443
4444
4445# If no C compiler was specified, use CC.
4446LTCC=${LTCC-"$CC"}
4447
4448# If no C compiler flags were specified, use CFLAGS.
4449LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4450
4451# Allow CC to be a program name with arguments.
4452compiler=$CC
4453
4454
4455# Check whether --enable-libtool-lock was given.
4456if test "${enable_libtool_lock+set}" = set; then
4457  enableval=$enable_libtool_lock;
4458fi
4459
4460test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4461
4462# Some flags need to be propagated to the compiler or linker for good
4463# libtool support.
4464case $host in
4465ia64-*-hpux*)
4466  # Find out which ABI we are using.
4467  echo 'int i;' > conftest.$ac_ext
4468  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4469  (eval $ac_compile) 2>&5
4470  ac_status=$?
4471  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472  (exit $ac_status); }; then
4473    case `/usr/bin/file conftest.$ac_objext` in
4474    *ELF-32*)
4475      HPUX_IA64_MODE="32"
4476      ;;
4477    *ELF-64*)
4478      HPUX_IA64_MODE="64"
4479      ;;
4480    esac
4481  fi
4482  rm -rf conftest*
4483  ;;
4484*-*-irix6*)
4485  # Find out which ABI we are using.
4486  echo '#line 4486 "configure"' > conftest.$ac_ext
4487  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488  (eval $ac_compile) 2>&5
4489  ac_status=$?
4490  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491  (exit $ac_status); }; then
4492   if test "$lt_cv_prog_gnu_ld" = yes; then
4493    case `/usr/bin/file conftest.$ac_objext` in
4494    *32-bit*)
4495      LD="${LD-ld} -melf32bsmip"
4496      ;;
4497    *N32*)
4498      LD="${LD-ld} -melf32bmipn32"
4499      ;;
4500    *64-bit*)
4501      LD="${LD-ld} -melf64bmip"
4502      ;;
4503    esac
4504   else
4505    case `/usr/bin/file conftest.$ac_objext` in
4506    *32-bit*)
4507      LD="${LD-ld} -32"
4508      ;;
4509    *N32*)
4510      LD="${LD-ld} -n32"
4511      ;;
4512    *64-bit*)
4513      LD="${LD-ld} -64"
4514      ;;
4515    esac
4516   fi
4517  fi
4518  rm -rf conftest*
4519  ;;
4520
4521x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4522s390*-*linux*|sparc*-*linux*)
4523  # Find out which ABI we are using.
4524  echo 'int i;' > conftest.$ac_ext
4525  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526  (eval $ac_compile) 2>&5
4527  ac_status=$?
4528  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529  (exit $ac_status); }; then
4530    case `/usr/bin/file conftest.o` in
4531    *32-bit*)
4532      case $host in
4533        x86_64-*kfreebsd*-gnu)
4534          LD="${LD-ld} -m elf_i386_fbsd"
4535          ;;
4536        x86_64-*linux*)
4537          LD="${LD-ld} -m elf_i386"
4538          ;;
4539        ppc64-*linux*|powerpc64-*linux*)
4540          LD="${LD-ld} -m elf32ppclinux"
4541          ;;
4542        s390x-*linux*)
4543          LD="${LD-ld} -m elf_s390"
4544          ;;
4545        sparc64-*linux*)
4546          LD="${LD-ld} -m elf32_sparc"
4547          ;;
4548      esac
4549      ;;
4550    *64-bit*)
4551      libsuff=64
4552      case $host in
4553        x86_64-*kfreebsd*-gnu)
4554          LD="${LD-ld} -m elf_x86_64_fbsd"
4555          ;;
4556        x86_64-*linux*)
4557          LD="${LD-ld} -m elf_x86_64"
4558          ;;
4559        ppc*-*linux*|powerpc*-*linux*)
4560          LD="${LD-ld} -m elf64ppc"
4561          ;;
4562        s390*-*linux*)
4563          LD="${LD-ld} -m elf64_s390"
4564          ;;
4565        sparc*-*linux*)
4566          LD="${LD-ld} -m elf64_sparc"
4567          ;;
4568      esac
4569      ;;
4570    esac
4571  fi
4572  rm -rf conftest*
4573  ;;
4574
4575*-*-sco3.2v5*)
4576  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4577  SAVE_CFLAGS="$CFLAGS"
4578  CFLAGS="$CFLAGS -belf"
4579  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4580$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4581if test "${lt_cv_cc_needs_belf+set}" = set; then
4582  $as_echo_n "(cached) " >&6
4583else
4584  ac_ext=c
4585ac_cpp='$CPP $CPPFLAGS'
4586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589
4590     cat >conftest.$ac_ext <<_ACEOF
4591/* confdefs.h.  */
4592_ACEOF
4593cat confdefs.h >>conftest.$ac_ext
4594cat >>conftest.$ac_ext <<_ACEOF
4595/* end confdefs.h.  */
4596
4597int
4598main ()
4599{
4600
4601  ;
4602  return 0;
4603}
4604_ACEOF
4605rm -f conftest.$ac_objext conftest$ac_exeext
4606if { (ac_try="$ac_link"
4607case "(($ac_try" in
4608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609  *) ac_try_echo=$ac_try;;
4610esac
4611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4612$as_echo "$ac_try_echo") >&5
4613  (eval "$ac_link") 2>conftest.er1
4614  ac_status=$?
4615  grep -v '^ *+' conftest.er1 >conftest.err
4616  rm -f conftest.er1
4617  cat conftest.err >&5
4618  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619  (exit $ac_status); } && {
4620	 test -z "$ac_c_werror_flag" ||
4621	 test ! -s conftest.err
4622       } && test -s conftest$ac_exeext && {
4623	 test "$cross_compiling" = yes ||
4624	 $as_test_x conftest$ac_exeext
4625       }; then
4626  lt_cv_cc_needs_belf=yes
4627else
4628  $as_echo "$as_me: failed program was:" >&5
4629sed 's/^/| /' conftest.$ac_ext >&5
4630
4631	lt_cv_cc_needs_belf=no
4632fi
4633
4634rm -rf conftest.dSYM
4635rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4636      conftest$ac_exeext conftest.$ac_ext
4637     ac_ext=c
4638ac_cpp='$CPP $CPPFLAGS'
4639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641ac_compiler_gnu=$ac_cv_c_compiler_gnu
4642
4643fi
4644{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4645$as_echo "$lt_cv_cc_needs_belf" >&6; }
4646  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4647    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4648    CFLAGS="$SAVE_CFLAGS"
4649  fi
4650  ;;
4651sparc*-*solaris*)
4652  # Find out which ABI we are using.
4653  echo 'int i;' > conftest.$ac_ext
4654  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4655  (eval $ac_compile) 2>&5
4656  ac_status=$?
4657  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658  (exit $ac_status); }; then
4659    case `/usr/bin/file conftest.o` in
4660    *64-bit*)
4661      case $lt_cv_prog_gnu_ld in
4662      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4663      *)
4664        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4665	  LD="${LD-ld} -64"
4666	fi
4667	;;
4668      esac
4669      ;;
4670    esac
4671  fi
4672  rm -rf conftest*
4673  ;;
4674
4675
4676esac
4677
4678need_locks="$enable_libtool_lock"
4679
4680
4681ac_ext=c
4682ac_cpp='$CPP $CPPFLAGS'
4683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4685ac_compiler_gnu=$ac_cv_c_compiler_gnu
4686{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4687$as_echo_n "checking how to run the C preprocessor... " >&6; }
4688# On Suns, sometimes $CPP names a directory.
4689if test -n "$CPP" && test -d "$CPP"; then
4690  CPP=
4691fi
4692if test -z "$CPP"; then
4693  if test "${ac_cv_prog_CPP+set}" = set; then
4694  $as_echo_n "(cached) " >&6
4695else
4696      # Double quotes because CPP needs to be expanded
4697    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4698    do
4699      ac_preproc_ok=false
4700for ac_c_preproc_warn_flag in '' yes
4701do
4702  # Use a header file that comes with gcc, so configuring glibc
4703  # with a fresh cross-compiler works.
4704  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4705  # <limits.h> exists even on freestanding compilers.
4706  # On the NeXT, cc -E runs the code through the compiler's parser,
4707  # not just through cpp. "Syntax error" is here to catch this case.
4708  cat >conftest.$ac_ext <<_ACEOF
4709/* confdefs.h.  */
4710_ACEOF
4711cat confdefs.h >>conftest.$ac_ext
4712cat >>conftest.$ac_ext <<_ACEOF
4713/* end confdefs.h.  */
4714#ifdef __STDC__
4715# include <limits.h>
4716#else
4717# include <assert.h>
4718#endif
4719		     Syntax error
4720_ACEOF
4721if { (ac_try="$ac_cpp conftest.$ac_ext"
4722case "(($ac_try" in
4723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724  *) ac_try_echo=$ac_try;;
4725esac
4726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4727$as_echo "$ac_try_echo") >&5
4728  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4729  ac_status=$?
4730  grep -v '^ *+' conftest.er1 >conftest.err
4731  rm -f conftest.er1
4732  cat conftest.err >&5
4733  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734  (exit $ac_status); } >/dev/null && {
4735	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4736	 test ! -s conftest.err
4737       }; then
4738  :
4739else
4740  $as_echo "$as_me: failed program was:" >&5
4741sed 's/^/| /' conftest.$ac_ext >&5
4742
4743  # Broken: fails on valid input.
4744continue
4745fi
4746
4747rm -f conftest.err conftest.$ac_ext
4748
4749  # OK, works on sane cases.  Now check whether nonexistent headers
4750  # can be detected and how.
4751  cat >conftest.$ac_ext <<_ACEOF
4752/* confdefs.h.  */
4753_ACEOF
4754cat confdefs.h >>conftest.$ac_ext
4755cat >>conftest.$ac_ext <<_ACEOF
4756/* end confdefs.h.  */
4757#include <ac_nonexistent.h>
4758_ACEOF
4759if { (ac_try="$ac_cpp conftest.$ac_ext"
4760case "(($ac_try" in
4761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762  *) ac_try_echo=$ac_try;;
4763esac
4764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4765$as_echo "$ac_try_echo") >&5
4766  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4767  ac_status=$?
4768  grep -v '^ *+' conftest.er1 >conftest.err
4769  rm -f conftest.er1
4770  cat conftest.err >&5
4771  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772  (exit $ac_status); } >/dev/null && {
4773	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4774	 test ! -s conftest.err
4775       }; then
4776  # Broken: success on invalid input.
4777continue
4778else
4779  $as_echo "$as_me: failed program was:" >&5
4780sed 's/^/| /' conftest.$ac_ext >&5
4781
4782  # Passes both tests.
4783ac_preproc_ok=:
4784break
4785fi
4786
4787rm -f conftest.err conftest.$ac_ext
4788
4789done
4790# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4791rm -f conftest.err conftest.$ac_ext
4792if $ac_preproc_ok; then
4793  break
4794fi
4795
4796    done
4797    ac_cv_prog_CPP=$CPP
4798
4799fi
4800  CPP=$ac_cv_prog_CPP
4801else
4802  ac_cv_prog_CPP=$CPP
4803fi
4804{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4805$as_echo "$CPP" >&6; }
4806ac_preproc_ok=false
4807for ac_c_preproc_warn_flag in '' yes
4808do
4809  # Use a header file that comes with gcc, so configuring glibc
4810  # with a fresh cross-compiler works.
4811  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4812  # <limits.h> exists even on freestanding compilers.
4813  # On the NeXT, cc -E runs the code through the compiler's parser,
4814  # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
4822# include <limits.h>
4823#else
4824# include <assert.h>
4825#endif
4826		     Syntax error
4827_ACEOF
4828if { (ac_try="$ac_cpp conftest.$ac_ext"
4829case "(($ac_try" in
4830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831  *) ac_try_echo=$ac_try;;
4832esac
4833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4834$as_echo "$ac_try_echo") >&5
4835  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4836  ac_status=$?
4837  grep -v '^ *+' conftest.er1 >conftest.err
4838  rm -f conftest.er1
4839  cat conftest.err >&5
4840  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841  (exit $ac_status); } >/dev/null && {
4842	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4843	 test ! -s conftest.err
4844       }; then
4845  :
4846else
4847  $as_echo "$as_me: failed program was:" >&5
4848sed 's/^/| /' conftest.$ac_ext >&5
4849
4850  # Broken: fails on valid input.
4851continue
4852fi
4853
4854rm -f conftest.err conftest.$ac_ext
4855
4856  # OK, works on sane cases.  Now check whether nonexistent headers
4857  # can be detected and how.
4858  cat >conftest.$ac_ext <<_ACEOF
4859/* confdefs.h.  */
4860_ACEOF
4861cat confdefs.h >>conftest.$ac_ext
4862cat >>conftest.$ac_ext <<_ACEOF
4863/* end confdefs.h.  */
4864#include <ac_nonexistent.h>
4865_ACEOF
4866if { (ac_try="$ac_cpp conftest.$ac_ext"
4867case "(($ac_try" in
4868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869  *) ac_try_echo=$ac_try;;
4870esac
4871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4872$as_echo "$ac_try_echo") >&5
4873  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4874  ac_status=$?
4875  grep -v '^ *+' conftest.er1 >conftest.err
4876  rm -f conftest.er1
4877  cat conftest.err >&5
4878  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879  (exit $ac_status); } >/dev/null && {
4880	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4881	 test ! -s conftest.err
4882       }; then
4883  # Broken: success on invalid input.
4884continue
4885else
4886  $as_echo "$as_me: failed program was:" >&5
4887sed 's/^/| /' conftest.$ac_ext >&5
4888
4889  # Passes both tests.
4890ac_preproc_ok=:
4891break
4892fi
4893
4894rm -f conftest.err conftest.$ac_ext
4895
4896done
4897# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4898rm -f conftest.err conftest.$ac_ext
4899if $ac_preproc_ok; then
4900  :
4901else
4902  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4904{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4905See \`config.log' for more details." >&5
4906$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4907See \`config.log' for more details." >&2;}
4908   { (exit 1); exit 1; }; }; }
4909fi
4910
4911ac_ext=c
4912ac_cpp='$CPP $CPPFLAGS'
4913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915ac_compiler_gnu=$ac_cv_c_compiler_gnu
4916
4917
4918{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4919$as_echo_n "checking for ANSI C header files... " >&6; }
4920if test "${ac_cv_header_stdc+set}" = set; then
4921  $as_echo_n "(cached) " >&6
4922else
4923  cat >conftest.$ac_ext <<_ACEOF
4924/* confdefs.h.  */
4925_ACEOF
4926cat confdefs.h >>conftest.$ac_ext
4927cat >>conftest.$ac_ext <<_ACEOF
4928/* end confdefs.h.  */
4929#include <stdlib.h>
4930#include <stdarg.h>
4931#include <string.h>
4932#include <float.h>
4933
4934int
4935main ()
4936{
4937
4938  ;
4939  return 0;
4940}
4941_ACEOF
4942rm -f conftest.$ac_objext
4943if { (ac_try="$ac_compile"
4944case "(($ac_try" in
4945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946  *) ac_try_echo=$ac_try;;
4947esac
4948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4949$as_echo "$ac_try_echo") >&5
4950  (eval "$ac_compile") 2>conftest.er1
4951  ac_status=$?
4952  grep -v '^ *+' conftest.er1 >conftest.err
4953  rm -f conftest.er1
4954  cat conftest.err >&5
4955  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956  (exit $ac_status); } && {
4957	 test -z "$ac_c_werror_flag" ||
4958	 test ! -s conftest.err
4959       } && test -s conftest.$ac_objext; then
4960  ac_cv_header_stdc=yes
4961else
4962  $as_echo "$as_me: failed program was:" >&5
4963sed 's/^/| /' conftest.$ac_ext >&5
4964
4965	ac_cv_header_stdc=no
4966fi
4967
4968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4969
4970if test $ac_cv_header_stdc = yes; then
4971  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4972  cat >conftest.$ac_ext <<_ACEOF
4973/* confdefs.h.  */
4974_ACEOF
4975cat confdefs.h >>conftest.$ac_ext
4976cat >>conftest.$ac_ext <<_ACEOF
4977/* end confdefs.h.  */
4978#include <string.h>
4979
4980_ACEOF
4981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4982  $EGREP "memchr" >/dev/null 2>&1; then
4983  :
4984else
4985  ac_cv_header_stdc=no
4986fi
4987rm -f conftest*
4988
4989fi
4990
4991if test $ac_cv_header_stdc = yes; then
4992  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4993  cat >conftest.$ac_ext <<_ACEOF
4994/* confdefs.h.  */
4995_ACEOF
4996cat confdefs.h >>conftest.$ac_ext
4997cat >>conftest.$ac_ext <<_ACEOF
4998/* end confdefs.h.  */
4999#include <stdlib.h>
5000
5001_ACEOF
5002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5003  $EGREP "free" >/dev/null 2>&1; then
5004  :
5005else
5006  ac_cv_header_stdc=no
5007fi
5008rm -f conftest*
5009
5010fi
5011
5012if test $ac_cv_header_stdc = yes; then
5013  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5014  if test "$cross_compiling" = yes; then
5015  :
5016else
5017  cat >conftest.$ac_ext <<_ACEOF
5018/* confdefs.h.  */
5019_ACEOF
5020cat confdefs.h >>conftest.$ac_ext
5021cat >>conftest.$ac_ext <<_ACEOF
5022/* end confdefs.h.  */
5023#include <ctype.h>
5024#include <stdlib.h>
5025#if ((' ' & 0x0FF) == 0x020)
5026# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5027# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5028#else
5029# define ISLOWER(c) \
5030		   (('a' <= (c) && (c) <= 'i') \
5031		     || ('j' <= (c) && (c) <= 'r') \
5032		     || ('s' <= (c) && (c) <= 'z'))
5033# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5034#endif
5035
5036#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5037int
5038main ()
5039{
5040  int i;
5041  for (i = 0; i < 256; i++)
5042    if (XOR (islower (i), ISLOWER (i))
5043	|| toupper (i) != TOUPPER (i))
5044      return 2;
5045  return 0;
5046}
5047_ACEOF
5048rm -f conftest$ac_exeext
5049if { (ac_try="$ac_link"
5050case "(($ac_try" in
5051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052  *) ac_try_echo=$ac_try;;
5053esac
5054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5055$as_echo "$ac_try_echo") >&5
5056  (eval "$ac_link") 2>&5
5057  ac_status=$?
5058  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5060  { (case "(($ac_try" in
5061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062  *) ac_try_echo=$ac_try;;
5063esac
5064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5065$as_echo "$ac_try_echo") >&5
5066  (eval "$ac_try") 2>&5
5067  ac_status=$?
5068  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069  (exit $ac_status); }; }; then
5070  :
5071else
5072  $as_echo "$as_me: program exited with status $ac_status" >&5
5073$as_echo "$as_me: failed program was:" >&5
5074sed 's/^/| /' conftest.$ac_ext >&5
5075
5076( exit $ac_status )
5077ac_cv_header_stdc=no
5078fi
5079rm -rf conftest.dSYM
5080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5081fi
5082
5083
5084fi
5085fi
5086{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5087$as_echo "$ac_cv_header_stdc" >&6; }
5088if test $ac_cv_header_stdc = yes; then
5089
5090cat >>confdefs.h <<\_ACEOF
5091#define STDC_HEADERS 1
5092_ACEOF
5093
5094fi
5095
5096# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5107		  inttypes.h stdint.h unistd.h
5108do
5109as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5110{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5111$as_echo_n "checking for $ac_header... " >&6; }
5112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5113  $as_echo_n "(cached) " >&6
5114else
5115  cat >conftest.$ac_ext <<_ACEOF
5116/* confdefs.h.  */
5117_ACEOF
5118cat confdefs.h >>conftest.$ac_ext
5119cat >>conftest.$ac_ext <<_ACEOF
5120/* end confdefs.h.  */
5121$ac_includes_default
5122
5123#include <$ac_header>
5124_ACEOF
5125rm -f conftest.$ac_objext
5126if { (ac_try="$ac_compile"
5127case "(($ac_try" in
5128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129  *) ac_try_echo=$ac_try;;
5130esac
5131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5132$as_echo "$ac_try_echo") >&5
5133  (eval "$ac_compile") 2>conftest.er1
5134  ac_status=$?
5135  grep -v '^ *+' conftest.er1 >conftest.err
5136  rm -f conftest.er1
5137  cat conftest.err >&5
5138  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139  (exit $ac_status); } && {
5140	 test -z "$ac_c_werror_flag" ||
5141	 test ! -s conftest.err
5142       } && test -s conftest.$ac_objext; then
5143  eval "$as_ac_Header=yes"
5144else
5145  $as_echo "$as_me: failed program was:" >&5
5146sed 's/^/| /' conftest.$ac_ext >&5
5147
5148	eval "$as_ac_Header=no"
5149fi
5150
5151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152fi
5153ac_res=`eval 'as_val=${'$as_ac_Header'}
5154		 $as_echo "$as_val"'`
5155	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5156$as_echo "$ac_res" >&6; }
5157as_val=`eval 'as_val=${'$as_ac_Header'}
5158		 $as_echo "$as_val"'`
5159   if test "x$as_val" = x""yes; then
5160  cat >>confdefs.h <<_ACEOF
5161#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5162_ACEOF
5163
5164fi
5165
5166done
5167
5168
5169
5170for ac_header in dlfcn.h
5171do
5172as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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
5178fi
5179ac_res=`eval 'as_val=${'$as_ac_Header'}
5180		 $as_echo "$as_val"'`
5181	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5182$as_echo "$ac_res" >&6; }
5183else
5184  # Is the header compilable?
5185{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5186$as_echo_n "checking $ac_header usability... " >&6; }
5187cat >conftest.$ac_ext <<_ACEOF
5188/* confdefs.h.  */
5189_ACEOF
5190cat confdefs.h >>conftest.$ac_ext
5191cat >>conftest.$ac_ext <<_ACEOF
5192/* end confdefs.h.  */
5193$ac_includes_default
5194#include <$ac_header>
5195_ACEOF
5196rm -f conftest.$ac_objext
5197if { (ac_try="$ac_compile"
5198case "(($ac_try" in
5199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200  *) ac_try_echo=$ac_try;;
5201esac
5202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5203$as_echo "$ac_try_echo") >&5
5204  (eval "$ac_compile") 2>conftest.er1
5205  ac_status=$?
5206  grep -v '^ *+' conftest.er1 >conftest.err
5207  rm -f conftest.er1
5208  cat conftest.err >&5
5209  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210  (exit $ac_status); } && {
5211	 test -z "$ac_c_werror_flag" ||
5212	 test ! -s conftest.err
5213       } && test -s conftest.$ac_objext; then
5214  ac_header_compiler=yes
5215else
5216  $as_echo "$as_me: failed program was:" >&5
5217sed 's/^/| /' conftest.$ac_ext >&5
5218
5219	ac_header_compiler=no
5220fi
5221
5222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5224$as_echo "$ac_header_compiler" >&6; }
5225
5226# Is the header present?
5227{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5228$as_echo_n "checking $ac_header presence... " >&6; }
5229cat >conftest.$ac_ext <<_ACEOF
5230/* confdefs.h.  */
5231_ACEOF
5232cat confdefs.h >>conftest.$ac_ext
5233cat >>conftest.$ac_ext <<_ACEOF
5234/* end confdefs.h.  */
5235#include <$ac_header>
5236_ACEOF
5237if { (ac_try="$ac_cpp conftest.$ac_ext"
5238case "(($ac_try" in
5239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5240  *) ac_try_echo=$ac_try;;
5241esac
5242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5243$as_echo "$ac_try_echo") >&5
5244  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5245  ac_status=$?
5246  grep -v '^ *+' conftest.er1 >conftest.err
5247  rm -f conftest.er1
5248  cat conftest.err >&5
5249  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250  (exit $ac_status); } >/dev/null && {
5251	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5252	 test ! -s conftest.err
5253       }; then
5254  ac_header_preproc=yes
5255else
5256  $as_echo "$as_me: failed program was:" >&5
5257sed 's/^/| /' conftest.$ac_ext >&5
5258
5259  ac_header_preproc=no
5260fi
5261
5262rm -f conftest.err conftest.$ac_ext
5263{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5264$as_echo "$ac_header_preproc" >&6; }
5265
5266# So?  What about this header?
5267case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5268  yes:no: )
5269    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5270$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5271    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5272$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5273    ac_header_preproc=yes
5274    ;;
5275  no:yes:* )
5276    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5277$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5278    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5279$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5280    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5281$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5282    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5283$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5284    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5285$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5286    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5287$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5288    ( cat <<\_ASBOX
5289## ---------------------------------------------------------------------- ##
5290## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5291## ---------------------------------------------------------------------- ##
5292_ASBOX
5293     ) | sed "s/^/$as_me: WARNING:     /" >&2
5294    ;;
5295esac
5296{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5297$as_echo_n "checking for $ac_header... " >&6; }
5298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5299  $as_echo_n "(cached) " >&6
5300else
5301  eval "$as_ac_Header=\$ac_header_preproc"
5302fi
5303ac_res=`eval 'as_val=${'$as_ac_Header'}
5304		 $as_echo "$as_val"'`
5305	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5306$as_echo "$ac_res" >&6; }
5307
5308fi
5309as_val=`eval 'as_val=${'$as_ac_Header'}
5310		 $as_echo "$as_val"'`
5311   if test "x$as_val" = x""yes; then
5312  cat >>confdefs.h <<_ACEOF
5313#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5314_ACEOF
5315
5316fi
5317
5318done
5319
5320ac_ext=cpp
5321ac_cpp='$CXXCPP $CPPFLAGS'
5322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5325if test -z "$CXX"; then
5326  if test -n "$CCC"; then
5327    CXX=$CCC
5328  else
5329    if test -n "$ac_tool_prefix"; then
5330  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5331  do
5332    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5333set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5334{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5335$as_echo_n "checking for $ac_word... " >&6; }
5336if test "${ac_cv_prog_CXX+set}" = set; then
5337  $as_echo_n "(cached) " >&6
5338else
5339  if test -n "$CXX"; then
5340  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5341else
5342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343for as_dir in $PATH
5344do
5345  IFS=$as_save_IFS
5346  test -z "$as_dir" && as_dir=.
5347  for ac_exec_ext in '' $ac_executable_extensions; do
5348  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5350    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5351    break 2
5352  fi
5353done
5354done
5355IFS=$as_save_IFS
5356
5357fi
5358fi
5359CXX=$ac_cv_prog_CXX
5360if test -n "$CXX"; then
5361  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5362$as_echo "$CXX" >&6; }
5363else
5364  { $as_echo "$as_me:$LINENO: result: no" >&5
5365$as_echo "no" >&6; }
5366fi
5367
5368
5369    test -n "$CXX" && break
5370  done
5371fi
5372if test -z "$CXX"; then
5373  ac_ct_CXX=$CXX
5374  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5375do
5376  # Extract the first word of "$ac_prog", so it can be a program name with args.
5377set dummy $ac_prog; ac_word=$2
5378{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5379$as_echo_n "checking for $ac_word... " >&6; }
5380if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5381  $as_echo_n "(cached) " >&6
5382else
5383  if test -n "$ac_ct_CXX"; then
5384  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5385else
5386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387for as_dir in $PATH
5388do
5389  IFS=$as_save_IFS
5390  test -z "$as_dir" && as_dir=.
5391  for ac_exec_ext in '' $ac_executable_extensions; do
5392  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393    ac_cv_prog_ac_ct_CXX="$ac_prog"
5394    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395    break 2
5396  fi
5397done
5398done
5399IFS=$as_save_IFS
5400
5401fi
5402fi
5403ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5404if test -n "$ac_ct_CXX"; then
5405  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5406$as_echo "$ac_ct_CXX" >&6; }
5407else
5408  { $as_echo "$as_me:$LINENO: result: no" >&5
5409$as_echo "no" >&6; }
5410fi
5411
5412
5413  test -n "$ac_ct_CXX" && break
5414done
5415
5416  if test "x$ac_ct_CXX" = x; then
5417    CXX="g++"
5418  else
5419    case $cross_compiling:$ac_tool_warned in
5420yes:)
5421{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5423ac_tool_warned=yes ;;
5424esac
5425    CXX=$ac_ct_CXX
5426  fi
5427fi
5428
5429  fi
5430fi
5431# Provide some information about the compiler.
5432$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5433set X $ac_compile
5434ac_compiler=$2
5435{ (ac_try="$ac_compiler --version >&5"
5436case "(($ac_try" in
5437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438  *) ac_try_echo=$ac_try;;
5439esac
5440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5441$as_echo "$ac_try_echo") >&5
5442  (eval "$ac_compiler --version >&5") 2>&5
5443  ac_status=$?
5444  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445  (exit $ac_status); }
5446{ (ac_try="$ac_compiler -v >&5"
5447case "(($ac_try" in
5448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449  *) ac_try_echo=$ac_try;;
5450esac
5451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5452$as_echo "$ac_try_echo") >&5
5453  (eval "$ac_compiler -v >&5") 2>&5
5454  ac_status=$?
5455  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456  (exit $ac_status); }
5457{ (ac_try="$ac_compiler -V >&5"
5458case "(($ac_try" in
5459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460  *) ac_try_echo=$ac_try;;
5461esac
5462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5463$as_echo "$ac_try_echo") >&5
5464  (eval "$ac_compiler -V >&5") 2>&5
5465  ac_status=$?
5466  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467  (exit $ac_status); }
5468
5469{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5470$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5471if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5472  $as_echo_n "(cached) " >&6
5473else
5474  cat >conftest.$ac_ext <<_ACEOF
5475/* confdefs.h.  */
5476_ACEOF
5477cat confdefs.h >>conftest.$ac_ext
5478cat >>conftest.$ac_ext <<_ACEOF
5479/* end confdefs.h.  */
5480
5481int
5482main ()
5483{
5484#ifndef __GNUC__
5485       choke me
5486#endif
5487
5488  ;
5489  return 0;
5490}
5491_ACEOF
5492rm -f conftest.$ac_objext
5493if { (ac_try="$ac_compile"
5494case "(($ac_try" in
5495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496  *) ac_try_echo=$ac_try;;
5497esac
5498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5499$as_echo "$ac_try_echo") >&5
5500  (eval "$ac_compile") 2>conftest.er1
5501  ac_status=$?
5502  grep -v '^ *+' conftest.er1 >conftest.err
5503  rm -f conftest.er1
5504  cat conftest.err >&5
5505  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506  (exit $ac_status); } && {
5507	 test -z "$ac_cxx_werror_flag" ||
5508	 test ! -s conftest.err
5509       } && test -s conftest.$ac_objext; then
5510  ac_compiler_gnu=yes
5511else
5512  $as_echo "$as_me: failed program was:" >&5
5513sed 's/^/| /' conftest.$ac_ext >&5
5514
5515	ac_compiler_gnu=no
5516fi
5517
5518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5520
5521fi
5522{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5523$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5524if test $ac_compiler_gnu = yes; then
5525  GXX=yes
5526else
5527  GXX=
5528fi
5529ac_test_CXXFLAGS=${CXXFLAGS+set}
5530ac_save_CXXFLAGS=$CXXFLAGS
5531{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5532$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5533if test "${ac_cv_prog_cxx_g+set}" = set; then
5534  $as_echo_n "(cached) " >&6
5535else
5536  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5537   ac_cxx_werror_flag=yes
5538   ac_cv_prog_cxx_g=no
5539   CXXFLAGS="-g"
5540   cat >conftest.$ac_ext <<_ACEOF
5541/* confdefs.h.  */
5542_ACEOF
5543cat confdefs.h >>conftest.$ac_ext
5544cat >>conftest.$ac_ext <<_ACEOF
5545/* end confdefs.h.  */
5546
5547int
5548main ()
5549{
5550
5551  ;
5552  return 0;
5553}
5554_ACEOF
5555rm -f conftest.$ac_objext
5556if { (ac_try="$ac_compile"
5557case "(($ac_try" in
5558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559  *) ac_try_echo=$ac_try;;
5560esac
5561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5562$as_echo "$ac_try_echo") >&5
5563  (eval "$ac_compile") 2>conftest.er1
5564  ac_status=$?
5565  grep -v '^ *+' conftest.er1 >conftest.err
5566  rm -f conftest.er1
5567  cat conftest.err >&5
5568  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569  (exit $ac_status); } && {
5570	 test -z "$ac_cxx_werror_flag" ||
5571	 test ! -s conftest.err
5572       } && test -s conftest.$ac_objext; then
5573  ac_cv_prog_cxx_g=yes
5574else
5575  $as_echo "$as_me: failed program was:" >&5
5576sed 's/^/| /' conftest.$ac_ext >&5
5577
5578	CXXFLAGS=""
5579      cat >conftest.$ac_ext <<_ACEOF
5580/* confdefs.h.  */
5581_ACEOF
5582cat confdefs.h >>conftest.$ac_ext
5583cat >>conftest.$ac_ext <<_ACEOF
5584/* end confdefs.h.  */
5585
5586int
5587main ()
5588{
5589
5590  ;
5591  return 0;
5592}
5593_ACEOF
5594rm -f conftest.$ac_objext
5595if { (ac_try="$ac_compile"
5596case "(($ac_try" in
5597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598  *) ac_try_echo=$ac_try;;
5599esac
5600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5601$as_echo "$ac_try_echo") >&5
5602  (eval "$ac_compile") 2>conftest.er1
5603  ac_status=$?
5604  grep -v '^ *+' conftest.er1 >conftest.err
5605  rm -f conftest.er1
5606  cat conftest.err >&5
5607  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608  (exit $ac_status); } && {
5609	 test -z "$ac_cxx_werror_flag" ||
5610	 test ! -s conftest.err
5611       } && test -s conftest.$ac_objext; then
5612  :
5613else
5614  $as_echo "$as_me: failed program was:" >&5
5615sed 's/^/| /' conftest.$ac_ext >&5
5616
5617	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5618	 CXXFLAGS="-g"
5619	 cat >conftest.$ac_ext <<_ACEOF
5620/* confdefs.h.  */
5621_ACEOF
5622cat confdefs.h >>conftest.$ac_ext
5623cat >>conftest.$ac_ext <<_ACEOF
5624/* end confdefs.h.  */
5625
5626int
5627main ()
5628{
5629
5630  ;
5631  return 0;
5632}
5633_ACEOF
5634rm -f conftest.$ac_objext
5635if { (ac_try="$ac_compile"
5636case "(($ac_try" in
5637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638  *) ac_try_echo=$ac_try;;
5639esac
5640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5641$as_echo "$ac_try_echo") >&5
5642  (eval "$ac_compile") 2>conftest.er1
5643  ac_status=$?
5644  grep -v '^ *+' conftest.er1 >conftest.err
5645  rm -f conftest.er1
5646  cat conftest.err >&5
5647  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648  (exit $ac_status); } && {
5649	 test -z "$ac_cxx_werror_flag" ||
5650	 test ! -s conftest.err
5651       } && test -s conftest.$ac_objext; then
5652  ac_cv_prog_cxx_g=yes
5653else
5654  $as_echo "$as_me: failed program was:" >&5
5655sed 's/^/| /' conftest.$ac_ext >&5
5656
5657
5658fi
5659
5660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661fi
5662
5663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664fi
5665
5666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5668fi
5669{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5670$as_echo "$ac_cv_prog_cxx_g" >&6; }
5671if test "$ac_test_CXXFLAGS" = set; then
5672  CXXFLAGS=$ac_save_CXXFLAGS
5673elif test $ac_cv_prog_cxx_g = yes; then
5674  if test "$GXX" = yes; then
5675    CXXFLAGS="-g -O2"
5676  else
5677    CXXFLAGS="-g"
5678  fi
5679else
5680  if test "$GXX" = yes; then
5681    CXXFLAGS="-O2"
5682  else
5683    CXXFLAGS=
5684  fi
5685fi
5686ac_ext=cpp
5687ac_cpp='$CXXCPP $CPPFLAGS'
5688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5691
5692depcc="$CXX"  am_compiler_list=
5693
5694{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5695$as_echo_n "checking dependency style of $depcc... " >&6; }
5696if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5697  $as_echo_n "(cached) " >&6
5698else
5699  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5700  # We make a subdir and do the tests there.  Otherwise we can end up
5701  # making bogus files that we don't know about and never remove.  For
5702  # instance it was reported that on HP-UX the gcc test will end up
5703  # making a dummy file named `D' -- because `-MD' means `put the output
5704  # in D'.
5705  mkdir conftest.dir
5706  # Copy depcomp to subdir because otherwise we won't find it if we're
5707  # using a relative directory.
5708  cp "$am_depcomp" conftest.dir
5709  cd conftest.dir
5710  # We will build objects and dependencies in a subdirectory because
5711  # it helps to detect inapplicable dependency modes.  For instance
5712  # both Tru64's cc and ICC support -MD to output dependencies as a
5713  # side effect of compilation, but ICC will put the dependencies in
5714  # the current directory while Tru64 will put them in the object
5715  # directory.
5716  mkdir sub
5717
5718  am_cv_CXX_dependencies_compiler_type=none
5719  if test "$am_compiler_list" = ""; then
5720     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5721  fi
5722  for depmode in $am_compiler_list; do
5723    # Setup a source with many dependencies, because some compilers
5724    # like to wrap large dependency lists on column 80 (with \), and
5725    # we should not choose a depcomp mode which is confused by this.
5726    #
5727    # We need to recreate these files for each test, as the compiler may
5728    # overwrite some of them when testing with obscure command lines.
5729    # This happens at least with the AIX C compiler.
5730    : > sub/conftest.c
5731    for i in 1 2 3 4 5 6; do
5732      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5733      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5734      # Solaris 8's {/usr,}/bin/sh.
5735      touch sub/conftst$i.h
5736    done
5737    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5738
5739    case $depmode in
5740    nosideeffect)
5741      # after this tag, mechanisms are not by side-effect, so they'll
5742      # only be used when explicitly requested
5743      if test "x$enable_dependency_tracking" = xyes; then
5744	continue
5745      else
5746	break
5747      fi
5748      ;;
5749    none) break ;;
5750    esac
5751    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5752    # mode.  It turns out that the SunPro C++ compiler does not properly
5753    # handle `-M -o', and we need to detect this.
5754    if depmode=$depmode \
5755       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5756       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5757       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5758         >/dev/null 2>conftest.err &&
5759       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5760       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5761       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5762       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5763      # icc doesn't choke on unknown options, it will just issue warnings
5764      # or remarks (even with -Werror).  So we grep stderr for any message
5765      # that says an option was ignored or not supported.
5766      # When given -MP, icc 7.0 and 7.1 complain thusly:
5767      #   icc: Command line warning: ignoring option '-M'; no argument required
5768      # The diagnosis changed in icc 8.0:
5769      #   icc: Command line remark: option '-MP' not supported
5770      if (grep 'ignoring option' conftest.err ||
5771          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5772        am_cv_CXX_dependencies_compiler_type=$depmode
5773        break
5774      fi
5775    fi
5776  done
5777
5778  cd ..
5779  rm -rf conftest.dir
5780else
5781  am_cv_CXX_dependencies_compiler_type=none
5782fi
5783
5784fi
5785{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5786$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5787CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5788
5789 if
5790  test "x$enable_dependency_tracking" != xno \
5791  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5792  am__fastdepCXX_TRUE=
5793  am__fastdepCXX_FALSE='#'
5794else
5795  am__fastdepCXX_TRUE='#'
5796  am__fastdepCXX_FALSE=
5797fi
5798
5799
5800
5801
5802if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5803    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5804    (test "X$CXX" != "Xg++"))) ; then
5805  ac_ext=cpp
5806ac_cpp='$CXXCPP $CPPFLAGS'
5807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5810{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5811$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5812if test -z "$CXXCPP"; then
5813  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5814  $as_echo_n "(cached) " >&6
5815else
5816      # Double quotes because CXXCPP needs to be expanded
5817    for CXXCPP in "$CXX -E" "/lib/cpp"
5818    do
5819      ac_preproc_ok=false
5820for ac_cxx_preproc_warn_flag in '' yes
5821do
5822  # Use a header file that comes with gcc, so configuring glibc
5823  # with a fresh cross-compiler works.
5824  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5825  # <limits.h> exists even on freestanding compilers.
5826  # On the NeXT, cc -E runs the code through the compiler's parser,
5827  # not just through cpp. "Syntax error" is here to catch this case.
5828  cat >conftest.$ac_ext <<_ACEOF
5829/* confdefs.h.  */
5830_ACEOF
5831cat confdefs.h >>conftest.$ac_ext
5832cat >>conftest.$ac_ext <<_ACEOF
5833/* end confdefs.h.  */
5834#ifdef __STDC__
5835# include <limits.h>
5836#else
5837# include <assert.h>
5838#endif
5839		     Syntax error
5840_ACEOF
5841if { (ac_try="$ac_cpp conftest.$ac_ext"
5842case "(($ac_try" in
5843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844  *) ac_try_echo=$ac_try;;
5845esac
5846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5847$as_echo "$ac_try_echo") >&5
5848  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5849  ac_status=$?
5850  grep -v '^ *+' conftest.er1 >conftest.err
5851  rm -f conftest.er1
5852  cat conftest.err >&5
5853  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854  (exit $ac_status); } >/dev/null && {
5855	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5856	 test ! -s conftest.err
5857       }; then
5858  :
5859else
5860  $as_echo "$as_me: failed program was:" >&5
5861sed 's/^/| /' conftest.$ac_ext >&5
5862
5863  # Broken: fails on valid input.
5864continue
5865fi
5866
5867rm -f conftest.err conftest.$ac_ext
5868
5869  # OK, works on sane cases.  Now check whether nonexistent headers
5870  # can be detected and how.
5871  cat >conftest.$ac_ext <<_ACEOF
5872/* confdefs.h.  */
5873_ACEOF
5874cat confdefs.h >>conftest.$ac_ext
5875cat >>conftest.$ac_ext <<_ACEOF
5876/* end confdefs.h.  */
5877#include <ac_nonexistent.h>
5878_ACEOF
5879if { (ac_try="$ac_cpp conftest.$ac_ext"
5880case "(($ac_try" in
5881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882  *) ac_try_echo=$ac_try;;
5883esac
5884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5885$as_echo "$ac_try_echo") >&5
5886  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5887  ac_status=$?
5888  grep -v '^ *+' conftest.er1 >conftest.err
5889  rm -f conftest.er1
5890  cat conftest.err >&5
5891  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892  (exit $ac_status); } >/dev/null && {
5893	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5894	 test ! -s conftest.err
5895       }; then
5896  # Broken: success on invalid input.
5897continue
5898else
5899  $as_echo "$as_me: failed program was:" >&5
5900sed 's/^/| /' conftest.$ac_ext >&5
5901
5902  # Passes both tests.
5903ac_preproc_ok=:
5904break
5905fi
5906
5907rm -f conftest.err conftest.$ac_ext
5908
5909done
5910# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5911rm -f conftest.err conftest.$ac_ext
5912if $ac_preproc_ok; then
5913  break
5914fi
5915
5916    done
5917    ac_cv_prog_CXXCPP=$CXXCPP
5918
5919fi
5920  CXXCPP=$ac_cv_prog_CXXCPP
5921else
5922  ac_cv_prog_CXXCPP=$CXXCPP
5923fi
5924{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5925$as_echo "$CXXCPP" >&6; }
5926ac_preproc_ok=false
5927for ac_cxx_preproc_warn_flag in '' yes
5928do
5929  # Use a header file that comes with gcc, so configuring glibc
5930  # with a fresh cross-compiler works.
5931  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5932  # <limits.h> exists even on freestanding compilers.
5933  # On the NeXT, cc -E runs the code through the compiler's parser,
5934  # not just through cpp. "Syntax error" is here to catch this case.
5935  cat >conftest.$ac_ext <<_ACEOF
5936/* confdefs.h.  */
5937_ACEOF
5938cat confdefs.h >>conftest.$ac_ext
5939cat >>conftest.$ac_ext <<_ACEOF
5940/* end confdefs.h.  */
5941#ifdef __STDC__
5942# include <limits.h>
5943#else
5944# include <assert.h>
5945#endif
5946		     Syntax error
5947_ACEOF
5948if { (ac_try="$ac_cpp conftest.$ac_ext"
5949case "(($ac_try" in
5950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951  *) ac_try_echo=$ac_try;;
5952esac
5953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5954$as_echo "$ac_try_echo") >&5
5955  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5956  ac_status=$?
5957  grep -v '^ *+' conftest.er1 >conftest.err
5958  rm -f conftest.er1
5959  cat conftest.err >&5
5960  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961  (exit $ac_status); } >/dev/null && {
5962	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5963	 test ! -s conftest.err
5964       }; then
5965  :
5966else
5967  $as_echo "$as_me: failed program was:" >&5
5968sed 's/^/| /' conftest.$ac_ext >&5
5969
5970  # Broken: fails on valid input.
5971continue
5972fi
5973
5974rm -f conftest.err conftest.$ac_ext
5975
5976  # OK, works on sane cases.  Now check whether nonexistent headers
5977  # can be detected and how.
5978  cat >conftest.$ac_ext <<_ACEOF
5979/* confdefs.h.  */
5980_ACEOF
5981cat confdefs.h >>conftest.$ac_ext
5982cat >>conftest.$ac_ext <<_ACEOF
5983/* end confdefs.h.  */
5984#include <ac_nonexistent.h>
5985_ACEOF
5986if { (ac_try="$ac_cpp conftest.$ac_ext"
5987case "(($ac_try" in
5988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989  *) ac_try_echo=$ac_try;;
5990esac
5991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5992$as_echo "$ac_try_echo") >&5
5993  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5994  ac_status=$?
5995  grep -v '^ *+' conftest.er1 >conftest.err
5996  rm -f conftest.er1
5997  cat conftest.err >&5
5998  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999  (exit $ac_status); } >/dev/null && {
6000	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6001	 test ! -s conftest.err
6002       }; then
6003  # Broken: success on invalid input.
6004continue
6005else
6006  $as_echo "$as_me: failed program was:" >&5
6007sed 's/^/| /' conftest.$ac_ext >&5
6008
6009  # Passes both tests.
6010ac_preproc_ok=:
6011break
6012fi
6013
6014rm -f conftest.err conftest.$ac_ext
6015
6016done
6017# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6018rm -f conftest.err conftest.$ac_ext
6019if $ac_preproc_ok; then
6020  :
6021else
6022  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6024{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6025See \`config.log' for more details." >&5
6026$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6027See \`config.log' for more details." >&2;}
6028   { (exit 1); exit 1; }; }; }
6029fi
6030
6031ac_ext=cpp
6032ac_cpp='$CXXCPP $CPPFLAGS'
6033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6036
6037fi
6038
6039
6040ac_ext=f
6041ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6042ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6044if test -n "$ac_tool_prefix"; then
6045  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
6046  do
6047    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6048set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6049{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6050$as_echo_n "checking for $ac_word... " >&6; }
6051if test "${ac_cv_prog_F77+set}" = set; then
6052  $as_echo_n "(cached) " >&6
6053else
6054  if test -n "$F77"; then
6055  ac_cv_prog_F77="$F77" # Let the user override the test.
6056else
6057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058for as_dir in $PATH
6059do
6060  IFS=$as_save_IFS
6061  test -z "$as_dir" && as_dir=.
6062  for ac_exec_ext in '' $ac_executable_extensions; do
6063  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6064    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6065    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066    break 2
6067  fi
6068done
6069done
6070IFS=$as_save_IFS
6071
6072fi
6073fi
6074F77=$ac_cv_prog_F77
6075if test -n "$F77"; then
6076  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6077$as_echo "$F77" >&6; }
6078else
6079  { $as_echo "$as_me:$LINENO: result: no" >&5
6080$as_echo "no" >&6; }
6081fi
6082
6083
6084    test -n "$F77" && break
6085  done
6086fi
6087if test -z "$F77"; then
6088  ac_ct_F77=$F77
6089  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
6090do
6091  # Extract the first word of "$ac_prog", so it can be a program name with args.
6092set dummy $ac_prog; ac_word=$2
6093{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6094$as_echo_n "checking for $ac_word... " >&6; }
6095if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6096  $as_echo_n "(cached) " >&6
6097else
6098  if test -n "$ac_ct_F77"; then
6099  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6100else
6101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102for as_dir in $PATH
6103do
6104  IFS=$as_save_IFS
6105  test -z "$as_dir" && as_dir=.
6106  for ac_exec_ext in '' $ac_executable_extensions; do
6107  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6108    ac_cv_prog_ac_ct_F77="$ac_prog"
6109    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110    break 2
6111  fi
6112done
6113done
6114IFS=$as_save_IFS
6115
6116fi
6117fi
6118ac_ct_F77=$ac_cv_prog_ac_ct_F77
6119if test -n "$ac_ct_F77"; then
6120  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6121$as_echo "$ac_ct_F77" >&6; }
6122else
6123  { $as_echo "$as_me:$LINENO: result: no" >&5
6124$as_echo "no" >&6; }
6125fi
6126
6127
6128  test -n "$ac_ct_F77" && break
6129done
6130
6131  if test "x$ac_ct_F77" = x; then
6132    F77=""
6133  else
6134    case $cross_compiling:$ac_tool_warned in
6135yes:)
6136{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6138ac_tool_warned=yes ;;
6139esac
6140    F77=$ac_ct_F77
6141  fi
6142fi
6143
6144
6145# Provide some information about the compiler.
6146$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6147set X $ac_compile
6148ac_compiler=$2
6149{ (ac_try="$ac_compiler --version >&5"
6150case "(($ac_try" in
6151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152  *) ac_try_echo=$ac_try;;
6153esac
6154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6155$as_echo "$ac_try_echo") >&5
6156  (eval "$ac_compiler --version >&5") 2>&5
6157  ac_status=$?
6158  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159  (exit $ac_status); }
6160{ (ac_try="$ac_compiler -v >&5"
6161case "(($ac_try" in
6162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163  *) ac_try_echo=$ac_try;;
6164esac
6165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6166$as_echo "$ac_try_echo") >&5
6167  (eval "$ac_compiler -v >&5") 2>&5
6168  ac_status=$?
6169  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170  (exit $ac_status); }
6171{ (ac_try="$ac_compiler -V >&5"
6172case "(($ac_try" in
6173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174  *) ac_try_echo=$ac_try;;
6175esac
6176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6177$as_echo "$ac_try_echo") >&5
6178  (eval "$ac_compiler -V >&5") 2>&5
6179  ac_status=$?
6180  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181  (exit $ac_status); }
6182rm -f a.out
6183
6184# If we don't use `.F' as extension, the preprocessor is not run on the
6185# input file.  (Note that this only needs to work for GNU compilers.)
6186ac_save_ext=$ac_ext
6187ac_ext=F
6188{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6189$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6190if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6191  $as_echo_n "(cached) " >&6
6192else
6193  cat >conftest.$ac_ext <<_ACEOF
6194      program main
6195#ifndef __GNUC__
6196       choke me
6197#endif
6198
6199      end
6200_ACEOF
6201rm -f conftest.$ac_objext
6202if { (ac_try="$ac_compile"
6203case "(($ac_try" in
6204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205  *) ac_try_echo=$ac_try;;
6206esac
6207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6208$as_echo "$ac_try_echo") >&5
6209  (eval "$ac_compile") 2>conftest.er1
6210  ac_status=$?
6211  grep -v '^ *+' conftest.er1 >conftest.err
6212  rm -f conftest.er1
6213  cat conftest.err >&5
6214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215  (exit $ac_status); } && {
6216	 test -z "$ac_f77_werror_flag" ||
6217	 test ! -s conftest.err
6218       } && test -s conftest.$ac_objext; then
6219  ac_compiler_gnu=yes
6220else
6221  $as_echo "$as_me: failed program was:" >&5
6222sed 's/^/| /' conftest.$ac_ext >&5
6223
6224	ac_compiler_gnu=no
6225fi
6226
6227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6229
6230fi
6231{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6232$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6233ac_ext=$ac_save_ext
6234ac_test_FFLAGS=${FFLAGS+set}
6235ac_save_FFLAGS=$FFLAGS
6236FFLAGS=
6237{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6238$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6239if test "${ac_cv_prog_f77_g+set}" = set; then
6240  $as_echo_n "(cached) " >&6
6241else
6242  FFLAGS=-g
6243cat >conftest.$ac_ext <<_ACEOF
6244      program main
6245
6246      end
6247_ACEOF
6248rm -f conftest.$ac_objext
6249if { (ac_try="$ac_compile"
6250case "(($ac_try" in
6251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252  *) ac_try_echo=$ac_try;;
6253esac
6254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6255$as_echo "$ac_try_echo") >&5
6256  (eval "$ac_compile") 2>conftest.er1
6257  ac_status=$?
6258  grep -v '^ *+' conftest.er1 >conftest.err
6259  rm -f conftest.er1
6260  cat conftest.err >&5
6261  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262  (exit $ac_status); } && {
6263	 test -z "$ac_f77_werror_flag" ||
6264	 test ! -s conftest.err
6265       } && test -s conftest.$ac_objext; then
6266  ac_cv_prog_f77_g=yes
6267else
6268  $as_echo "$as_me: failed program was:" >&5
6269sed 's/^/| /' conftest.$ac_ext >&5
6270
6271	ac_cv_prog_f77_g=no
6272fi
6273
6274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275
6276fi
6277{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6278$as_echo "$ac_cv_prog_f77_g" >&6; }
6279if test "$ac_test_FFLAGS" = set; then
6280  FFLAGS=$ac_save_FFLAGS
6281elif test $ac_cv_prog_f77_g = yes; then
6282  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6283    FFLAGS="-g -O2"
6284  else
6285    FFLAGS="-g"
6286  fi
6287else
6288  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6289    FFLAGS="-O2"
6290  else
6291    FFLAGS=
6292  fi
6293fi
6294
6295if test $ac_compiler_gnu = yes; then
6296  G77=yes
6297else
6298  G77=
6299fi
6300ac_ext=c
6301ac_cpp='$CPP $CPPFLAGS'
6302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6304ac_compiler_gnu=$ac_cv_c_compiler_gnu
6305
6306
6307
6308# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6309# find the maximum length of command line arguments
6310{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6311$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6312if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6313  $as_echo_n "(cached) " >&6
6314else
6315    i=0
6316  teststring="ABCD"
6317
6318  case $build_os in
6319  msdosdjgpp*)
6320    # On DJGPP, this test can blow up pretty badly due to problems in libc
6321    # (any single argument exceeding 2000 bytes causes a buffer overrun
6322    # during glob expansion).  Even if it were fixed, the result of this
6323    # check would be larger than it should be.
6324    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6325    ;;
6326
6327  gnu*)
6328    # Under GNU Hurd, this test is not required because there is
6329    # no limit to the length of command line arguments.
6330    # Libtool will interpret -1 as no limit whatsoever
6331    lt_cv_sys_max_cmd_len=-1;
6332    ;;
6333
6334  cygwin* | mingw*)
6335    # On Win9x/ME, this test blows up -- it succeeds, but takes
6336    # about 5 minutes as the teststring grows exponentially.
6337    # Worse, since 9x/ME are not pre-emptively multitasking,
6338    # you end up with a "frozen" computer, even though with patience
6339    # the test eventually succeeds (with a max line length of 256k).
6340    # Instead, let's just punt: use the minimum linelength reported by
6341    # all of the supported platforms: 8192 (on NT/2K/XP).
6342    lt_cv_sys_max_cmd_len=8192;
6343    ;;
6344
6345  amigaos*)
6346    # On AmigaOS with pdksh, this test takes hours, literally.
6347    # So we just punt and use a minimum line length of 8192.
6348    lt_cv_sys_max_cmd_len=8192;
6349    ;;
6350
6351  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6352    # This has been around since 386BSD, at least.  Likely further.
6353    if test -x /sbin/sysctl; then
6354      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6355    elif test -x /usr/sbin/sysctl; then
6356      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6357    else
6358      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6359    fi
6360    # And add a safety zone
6361    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6362    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6363    ;;
6364
6365  interix*)
6366    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6367    lt_cv_sys_max_cmd_len=196608
6368    ;;
6369
6370  osf*)
6371    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6372    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6373    # nice to cause kernel panics so lets avoid the loop below.
6374    # First set a reasonable default.
6375    lt_cv_sys_max_cmd_len=16384
6376    #
6377    if test -x /sbin/sysconfig; then
6378      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6379        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6380      esac
6381    fi
6382    ;;
6383  sco3.2v5*)
6384    lt_cv_sys_max_cmd_len=102400
6385    ;;
6386  sysv5* | sco5v6* | sysv4.2uw2*)
6387    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6388    if test -n "$kargmax"; then
6389      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6390    else
6391      lt_cv_sys_max_cmd_len=32768
6392    fi
6393    ;;
6394  *)
6395    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6396    if test -n "$lt_cv_sys_max_cmd_len"; then
6397      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6398      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6399    else
6400      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6401      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6402	       = "XX$teststring") >/dev/null 2>&1 &&
6403	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6404	      lt_cv_sys_max_cmd_len=$new_result &&
6405	      test $i != 17 # 1/2 MB should be enough
6406      do
6407        i=`expr $i + 1`
6408        teststring=$teststring$teststring
6409      done
6410      teststring=
6411      # Add a significant safety factor because C++ compilers can tack on massive
6412      # amounts of additional arguments before passing them to the linker.
6413      # It appears as though 1/2 is a usable value.
6414      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6415    fi
6416    ;;
6417  esac
6418
6419fi
6420
6421if test -n $lt_cv_sys_max_cmd_len ; then
6422  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6423$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6424else
6425  { $as_echo "$as_me:$LINENO: result: none" >&5
6426$as_echo "none" >&6; }
6427fi
6428
6429
6430
6431
6432
6433# Check for command to grab the raw symbol name followed by C symbol from nm.
6434{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6435$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6436if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6437  $as_echo_n "(cached) " >&6
6438else
6439
6440# These are sane defaults that work on at least a few old systems.
6441# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6442
6443# Character class describing NM global symbol codes.
6444symcode='[BCDEGRST]'
6445
6446# Regexp to match symbols that can be accessed directly from C.
6447sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6448
6449# Transform an extracted symbol line into a proper C declaration
6450lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6451
6452# Transform an extracted symbol line into symbol name and symbol address
6453lt_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'"
6454
6455# Define system-specific variables.
6456case $host_os in
6457aix*)
6458  symcode='[BCDT]'
6459  ;;
6460cygwin* | mingw* | pw32*)
6461  symcode='[ABCDGISTW]'
6462  ;;
6463hpux*) # Its linker distinguishes data from code symbols
6464  if test "$host_cpu" = ia64; then
6465    symcode='[ABCDEGRST]'
6466  fi
6467  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6468  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'"
6469  ;;
6470linux* | k*bsd*-gnu)
6471  if test "$host_cpu" = ia64; then
6472    symcode='[ABCDGIRSTW]'
6473    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6474    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'"
6475  fi
6476  ;;
6477irix* | nonstopux*)
6478  symcode='[BCDEGRST]'
6479  ;;
6480osf*)
6481  symcode='[BCDEGQRST]'
6482  ;;
6483solaris*)
6484  symcode='[BDRT]'
6485  ;;
6486sco3.2v5*)
6487  symcode='[DT]'
6488  ;;
6489sysv4.2uw2*)
6490  symcode='[DT]'
6491  ;;
6492sysv5* | sco5v6* | unixware* | OpenUNIX*)
6493  symcode='[ABDT]'
6494  ;;
6495sysv4)
6496  symcode='[DFNSTU]'
6497  ;;
6498esac
6499
6500# Handle CRLF in mingw tool chain
6501opt_cr=
6502case $build_os in
6503mingw*)
6504  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6505  ;;
6506esac
6507
6508# If we're using GNU nm, then use its standard symbol codes.
6509case `$NM -V 2>&1` in
6510*GNU* | *'with BFD'*)
6511  symcode='[ABCDGIRSTW]' ;;
6512esac
6513
6514# Try without a prefix undercore, then with it.
6515for ac_symprfx in "" "_"; do
6516
6517  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6518  symxfrm="\\1 $ac_symprfx\\2 \\2"
6519
6520  # Write the raw and C identifiers.
6521  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6522
6523  # Check to see that the pipe works correctly.
6524  pipe_works=no
6525
6526  rm -f conftest*
6527  cat > conftest.$ac_ext <<EOF
6528#ifdef __cplusplus
6529extern "C" {
6530#endif
6531char nm_test_var;
6532void nm_test_func(){}
6533#ifdef __cplusplus
6534}
6535#endif
6536int main(){nm_test_var='a';nm_test_func();return(0);}
6537EOF
6538
6539  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6540  (eval $ac_compile) 2>&5
6541  ac_status=$?
6542  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543  (exit $ac_status); }; then
6544    # Now try to grab the symbols.
6545    nlist=conftest.nm
6546    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6547  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6548  ac_status=$?
6549  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550  (exit $ac_status); } && test -s "$nlist"; then
6551      # Try sorting and uniquifying the output.
6552      if sort "$nlist" | uniq > "$nlist"T; then
6553	mv -f "$nlist"T "$nlist"
6554      else
6555	rm -f "$nlist"T
6556      fi
6557
6558      # Make sure that we snagged all the symbols we need.
6559      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6560	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6561	  cat <<EOF > conftest.$ac_ext
6562#ifdef __cplusplus
6563extern "C" {
6564#endif
6565
6566EOF
6567	  # Now generate the symbol file.
6568	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6569
6570	  cat <<EOF >> conftest.$ac_ext
6571#if defined (__STDC__) && __STDC__
6572# define lt_ptr_t void *
6573#else
6574# define lt_ptr_t char *
6575# define const
6576#endif
6577
6578/* The mapping between symbol names and symbols. */
6579const struct {
6580  const char *name;
6581  lt_ptr_t address;
6582}
6583lt_preloaded_symbols[] =
6584{
6585EOF
6586	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6587	  cat <<\EOF >> conftest.$ac_ext
6588  {0, (lt_ptr_t) 0}
6589};
6590
6591#ifdef __cplusplus
6592}
6593#endif
6594EOF
6595	  # Now try linking the two files.
6596	  mv conftest.$ac_objext conftstm.$ac_objext
6597	  lt_save_LIBS="$LIBS"
6598	  lt_save_CFLAGS="$CFLAGS"
6599	  LIBS="conftstm.$ac_objext"
6600	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6601	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602  (eval $ac_link) 2>&5
6603  ac_status=$?
6604  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6606	    pipe_works=yes
6607	  fi
6608	  LIBS="$lt_save_LIBS"
6609	  CFLAGS="$lt_save_CFLAGS"
6610	else
6611	  echo "cannot find nm_test_func in $nlist" >&5
6612	fi
6613      else
6614	echo "cannot find nm_test_var in $nlist" >&5
6615      fi
6616    else
6617      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6618    fi
6619  else
6620    echo "$progname: failed program was:" >&5
6621    cat conftest.$ac_ext >&5
6622  fi
6623  rm -rf conftest* conftst*
6624
6625  # Do not use the global_symbol_pipe unless it works.
6626  if test "$pipe_works" = yes; then
6627    break
6628  else
6629    lt_cv_sys_global_symbol_pipe=
6630  fi
6631done
6632
6633fi
6634
6635if test -z "$lt_cv_sys_global_symbol_pipe"; then
6636  lt_cv_sys_global_symbol_to_cdecl=
6637fi
6638if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6639  { $as_echo "$as_me:$LINENO: result: failed" >&5
6640$as_echo "failed" >&6; }
6641else
6642  { $as_echo "$as_me:$LINENO: result: ok" >&5
6643$as_echo "ok" >&6; }
6644fi
6645
6646{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6647$as_echo_n "checking for objdir... " >&6; }
6648if test "${lt_cv_objdir+set}" = set; then
6649  $as_echo_n "(cached) " >&6
6650else
6651  rm -f .libs 2>/dev/null
6652mkdir .libs 2>/dev/null
6653if test -d .libs; then
6654  lt_cv_objdir=.libs
6655else
6656  # MS-DOS does not allow filenames that begin with a dot.
6657  lt_cv_objdir=_libs
6658fi
6659rmdir .libs 2>/dev/null
6660fi
6661{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6662$as_echo "$lt_cv_objdir" >&6; }
6663objdir=$lt_cv_objdir
6664
6665
6666
6667
6668
6669case $host_os in
6670aix3*)
6671  # AIX sometimes has problems with the GCC collect2 program.  For some
6672  # reason, if we set the COLLECT_NAMES environment variable, the problems
6673  # vanish in a puff of smoke.
6674  if test "X${COLLECT_NAMES+set}" != Xset; then
6675    COLLECT_NAMES=
6676    export COLLECT_NAMES
6677  fi
6678  ;;
6679esac
6680
6681# Sed substitution that helps us do robust quoting.  It backslashifies
6682# metacharacters that are still active within double-quoted strings.
6683Xsed='sed -e 1s/^X//'
6684sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6685
6686# Same as above, but do not quote variable references.
6687double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6688
6689# Sed substitution to delay expansion of an escaped shell variable in a
6690# double_quote_subst'ed string.
6691delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6692
6693# Sed substitution to avoid accidental globbing in evaled expressions
6694no_glob_subst='s/\*/\\\*/g'
6695
6696# Constants:
6697rm="rm -f"
6698
6699# Global variables:
6700default_ofile=libtool
6701can_build_shared=yes
6702
6703# All known linkers require a `.a' archive for static linking (except MSVC,
6704# which needs '.lib').
6705libext=a
6706ltmain="$ac_aux_dir/ltmain.sh"
6707ofile="$default_ofile"
6708with_gnu_ld="$lt_cv_prog_gnu_ld"
6709
6710if test -n "$ac_tool_prefix"; then
6711  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6712set dummy ${ac_tool_prefix}ar; ac_word=$2
6713{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6714$as_echo_n "checking for $ac_word... " >&6; }
6715if test "${ac_cv_prog_AR+set}" = set; then
6716  $as_echo_n "(cached) " >&6
6717else
6718  if test -n "$AR"; then
6719  ac_cv_prog_AR="$AR" # Let the user override the test.
6720else
6721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724  IFS=$as_save_IFS
6725  test -z "$as_dir" && as_dir=.
6726  for ac_exec_ext in '' $ac_executable_extensions; do
6727  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6728    ac_cv_prog_AR="${ac_tool_prefix}ar"
6729    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730    break 2
6731  fi
6732done
6733done
6734IFS=$as_save_IFS
6735
6736fi
6737fi
6738AR=$ac_cv_prog_AR
6739if test -n "$AR"; then
6740  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6741$as_echo "$AR" >&6; }
6742else
6743  { $as_echo "$as_me:$LINENO: result: no" >&5
6744$as_echo "no" >&6; }
6745fi
6746
6747
6748fi
6749if test -z "$ac_cv_prog_AR"; then
6750  ac_ct_AR=$AR
6751  # Extract the first word of "ar", so it can be a program name with args.
6752set dummy ar; ac_word=$2
6753{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6754$as_echo_n "checking for $ac_word... " >&6; }
6755if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6756  $as_echo_n "(cached) " >&6
6757else
6758  if test -n "$ac_ct_AR"; then
6759  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6760else
6761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764  IFS=$as_save_IFS
6765  test -z "$as_dir" && as_dir=.
6766  for ac_exec_ext in '' $ac_executable_extensions; do
6767  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6768    ac_cv_prog_ac_ct_AR="ar"
6769    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770    break 2
6771  fi
6772done
6773done
6774IFS=$as_save_IFS
6775
6776fi
6777fi
6778ac_ct_AR=$ac_cv_prog_ac_ct_AR
6779if test -n "$ac_ct_AR"; then
6780  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6781$as_echo "$ac_ct_AR" >&6; }
6782else
6783  { $as_echo "$as_me:$LINENO: result: no" >&5
6784$as_echo "no" >&6; }
6785fi
6786
6787  if test "x$ac_ct_AR" = x; then
6788    AR="false"
6789  else
6790    case $cross_compiling:$ac_tool_warned in
6791yes:)
6792{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6794ac_tool_warned=yes ;;
6795esac
6796    AR=$ac_ct_AR
6797  fi
6798else
6799  AR="$ac_cv_prog_AR"
6800fi
6801
6802if test -n "$ac_tool_prefix"; then
6803  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6804set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6805{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6806$as_echo_n "checking for $ac_word... " >&6; }
6807if test "${ac_cv_prog_RANLIB+set}" = set; then
6808  $as_echo_n "(cached) " >&6
6809else
6810  if test -n "$RANLIB"; then
6811  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6812else
6813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814for as_dir in $PATH
6815do
6816  IFS=$as_save_IFS
6817  test -z "$as_dir" && as_dir=.
6818  for ac_exec_ext in '' $ac_executable_extensions; do
6819  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6820    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6821    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6822    break 2
6823  fi
6824done
6825done
6826IFS=$as_save_IFS
6827
6828fi
6829fi
6830RANLIB=$ac_cv_prog_RANLIB
6831if test -n "$RANLIB"; then
6832  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6833$as_echo "$RANLIB" >&6; }
6834else
6835  { $as_echo "$as_me:$LINENO: result: no" >&5
6836$as_echo "no" >&6; }
6837fi
6838
6839
6840fi
6841if test -z "$ac_cv_prog_RANLIB"; then
6842  ac_ct_RANLIB=$RANLIB
6843  # Extract the first word of "ranlib", so it can be a program name with args.
6844set dummy ranlib; ac_word=$2
6845{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6846$as_echo_n "checking for $ac_word... " >&6; }
6847if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6848  $as_echo_n "(cached) " >&6
6849else
6850  if test -n "$ac_ct_RANLIB"; then
6851  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6852else
6853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856  IFS=$as_save_IFS
6857  test -z "$as_dir" && as_dir=.
6858  for ac_exec_ext in '' $ac_executable_extensions; do
6859  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6860    ac_cv_prog_ac_ct_RANLIB="ranlib"
6861    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862    break 2
6863  fi
6864done
6865done
6866IFS=$as_save_IFS
6867
6868fi
6869fi
6870ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6871if test -n "$ac_ct_RANLIB"; then
6872  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6873$as_echo "$ac_ct_RANLIB" >&6; }
6874else
6875  { $as_echo "$as_me:$LINENO: result: no" >&5
6876$as_echo "no" >&6; }
6877fi
6878
6879  if test "x$ac_ct_RANLIB" = x; then
6880    RANLIB=":"
6881  else
6882    case $cross_compiling:$ac_tool_warned in
6883yes:)
6884{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6886ac_tool_warned=yes ;;
6887esac
6888    RANLIB=$ac_ct_RANLIB
6889  fi
6890else
6891  RANLIB="$ac_cv_prog_RANLIB"
6892fi
6893
6894if test -n "$ac_tool_prefix"; then
6895  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6896set dummy ${ac_tool_prefix}strip; ac_word=$2
6897{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6898$as_echo_n "checking for $ac_word... " >&6; }
6899if test "${ac_cv_prog_STRIP+set}" = set; then
6900  $as_echo_n "(cached) " >&6
6901else
6902  if test -n "$STRIP"; then
6903  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6904else
6905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906for as_dir in $PATH
6907do
6908  IFS=$as_save_IFS
6909  test -z "$as_dir" && as_dir=.
6910  for ac_exec_ext in '' $ac_executable_extensions; do
6911  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6912    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6913    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914    break 2
6915  fi
6916done
6917done
6918IFS=$as_save_IFS
6919
6920fi
6921fi
6922STRIP=$ac_cv_prog_STRIP
6923if test -n "$STRIP"; then
6924  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6925$as_echo "$STRIP" >&6; }
6926else
6927  { $as_echo "$as_me:$LINENO: result: no" >&5
6928$as_echo "no" >&6; }
6929fi
6930
6931
6932fi
6933if test -z "$ac_cv_prog_STRIP"; then
6934  ac_ct_STRIP=$STRIP
6935  # Extract the first word of "strip", so it can be a program name with args.
6936set dummy strip; ac_word=$2
6937{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6938$as_echo_n "checking for $ac_word... " >&6; }
6939if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6940  $as_echo_n "(cached) " >&6
6941else
6942  if test -n "$ac_ct_STRIP"; then
6943  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6944else
6945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948  IFS=$as_save_IFS
6949  test -z "$as_dir" && as_dir=.
6950  for ac_exec_ext in '' $ac_executable_extensions; do
6951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6952    ac_cv_prog_ac_ct_STRIP="strip"
6953    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954    break 2
6955  fi
6956done
6957done
6958IFS=$as_save_IFS
6959
6960fi
6961fi
6962ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6963if test -n "$ac_ct_STRIP"; then
6964  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6965$as_echo "$ac_ct_STRIP" >&6; }
6966else
6967  { $as_echo "$as_me:$LINENO: result: no" >&5
6968$as_echo "no" >&6; }
6969fi
6970
6971  if test "x$ac_ct_STRIP" = x; then
6972    STRIP=":"
6973  else
6974    case $cross_compiling:$ac_tool_warned in
6975yes:)
6976{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6978ac_tool_warned=yes ;;
6979esac
6980    STRIP=$ac_ct_STRIP
6981  fi
6982else
6983  STRIP="$ac_cv_prog_STRIP"
6984fi
6985
6986
6987old_CC="$CC"
6988old_CFLAGS="$CFLAGS"
6989
6990# Set sane defaults for various variables
6991test -z "$AR" && AR=ar
6992test -z "$AR_FLAGS" && AR_FLAGS=cru
6993test -z "$AS" && AS=as
6994test -z "$CC" && CC=cc
6995test -z "$LTCC" && LTCC=$CC
6996test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6997test -z "$DLLTOOL" && DLLTOOL=dlltool
6998test -z "$LD" && LD=ld
6999test -z "$LN_S" && LN_S="ln -s"
7000test -z "$MAGIC_CMD" && MAGIC_CMD=file
7001test -z "$NM" && NM=nm
7002test -z "$SED" && SED=sed
7003test -z "$OBJDUMP" && OBJDUMP=objdump
7004test -z "$RANLIB" && RANLIB=:
7005test -z "$STRIP" && STRIP=:
7006test -z "$ac_objext" && ac_objext=o
7007
7008# Determine commands to create old-style static archives.
7009old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7010old_postinstall_cmds='chmod 644 $oldlib'
7011old_postuninstall_cmds=
7012
7013if test -n "$RANLIB"; then
7014  case $host_os in
7015  openbsd*)
7016    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7017    ;;
7018  *)
7019    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7020    ;;
7021  esac
7022  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7023fi
7024
7025for cc_temp in $compiler""; do
7026  case $cc_temp in
7027    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7028    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7029    \-*) ;;
7030    *) break;;
7031  esac
7032done
7033cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7034
7035
7036# Only perform the check for file, if the check method requires it
7037case $deplibs_check_method in
7038file_magic*)
7039  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7040    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7041$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7042if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7043  $as_echo_n "(cached) " >&6
7044else
7045  case $MAGIC_CMD in
7046[\\/*] |  ?:[\\/]*)
7047  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7048  ;;
7049*)
7050  lt_save_MAGIC_CMD="$MAGIC_CMD"
7051  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7052  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7053  for ac_dir in $ac_dummy; do
7054    IFS="$lt_save_ifs"
7055    test -z "$ac_dir" && ac_dir=.
7056    if test -f $ac_dir/${ac_tool_prefix}file; then
7057      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7058      if test -n "$file_magic_test_file"; then
7059	case $deplibs_check_method in
7060	"file_magic "*)
7061	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7062	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7063	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7064	    $EGREP "$file_magic_regex" > /dev/null; then
7065	    :
7066	  else
7067	    cat <<EOF 1>&2
7068
7069*** Warning: the command libtool uses to detect shared libraries,
7070*** $file_magic_cmd, produces output that libtool cannot recognize.
7071*** The result is that libtool may fail to recognize shared libraries
7072*** as such.  This will affect the creation of libtool libraries that
7073*** depend on shared libraries, but programs linked with such libtool
7074*** libraries will work regardless of this problem.  Nevertheless, you
7075*** may want to report the problem to your system manager and/or to
7076*** bug-libtool@gnu.org
7077
7078EOF
7079	  fi ;;
7080	esac
7081      fi
7082      break
7083    fi
7084  done
7085  IFS="$lt_save_ifs"
7086  MAGIC_CMD="$lt_save_MAGIC_CMD"
7087  ;;
7088esac
7089fi
7090
7091MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7092if test -n "$MAGIC_CMD"; then
7093  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7094$as_echo "$MAGIC_CMD" >&6; }
7095else
7096  { $as_echo "$as_me:$LINENO: result: no" >&5
7097$as_echo "no" >&6; }
7098fi
7099
7100if test -z "$lt_cv_path_MAGIC_CMD"; then
7101  if test -n "$ac_tool_prefix"; then
7102    { $as_echo "$as_me:$LINENO: checking for file" >&5
7103$as_echo_n "checking for file... " >&6; }
7104if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7105  $as_echo_n "(cached) " >&6
7106else
7107  case $MAGIC_CMD in
7108[\\/*] |  ?:[\\/]*)
7109  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7110  ;;
7111*)
7112  lt_save_MAGIC_CMD="$MAGIC_CMD"
7113  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7114  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7115  for ac_dir in $ac_dummy; do
7116    IFS="$lt_save_ifs"
7117    test -z "$ac_dir" && ac_dir=.
7118    if test -f $ac_dir/file; then
7119      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7120      if test -n "$file_magic_test_file"; then
7121	case $deplibs_check_method in
7122	"file_magic "*)
7123	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7124	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7125	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7126	    $EGREP "$file_magic_regex" > /dev/null; then
7127	    :
7128	  else
7129	    cat <<EOF 1>&2
7130
7131*** Warning: the command libtool uses to detect shared libraries,
7132*** $file_magic_cmd, produces output that libtool cannot recognize.
7133*** The result is that libtool may fail to recognize shared libraries
7134*** as such.  This will affect the creation of libtool libraries that
7135*** depend on shared libraries, but programs linked with such libtool
7136*** libraries will work regardless of this problem.  Nevertheless, you
7137*** may want to report the problem to your system manager and/or to
7138*** bug-libtool@gnu.org
7139
7140EOF
7141	  fi ;;
7142	esac
7143      fi
7144      break
7145    fi
7146  done
7147  IFS="$lt_save_ifs"
7148  MAGIC_CMD="$lt_save_MAGIC_CMD"
7149  ;;
7150esac
7151fi
7152
7153MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7154if test -n "$MAGIC_CMD"; then
7155  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7156$as_echo "$MAGIC_CMD" >&6; }
7157else
7158  { $as_echo "$as_me:$LINENO: result: no" >&5
7159$as_echo "no" >&6; }
7160fi
7161
7162  else
7163    MAGIC_CMD=:
7164  fi
7165fi
7166
7167  fi
7168  ;;
7169esac
7170
7171
7172  case $host_os in
7173    rhapsody* | darwin*)
7174    if test -n "$ac_tool_prefix"; then
7175  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7176set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7177{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7178$as_echo_n "checking for $ac_word... " >&6; }
7179if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7180  $as_echo_n "(cached) " >&6
7181else
7182  if test -n "$DSYMUTIL"; then
7183  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7184else
7185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188  IFS=$as_save_IFS
7189  test -z "$as_dir" && as_dir=.
7190  for ac_exec_ext in '' $ac_executable_extensions; do
7191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7192    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7193    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194    break 2
7195  fi
7196done
7197done
7198IFS=$as_save_IFS
7199
7200fi
7201fi
7202DSYMUTIL=$ac_cv_prog_DSYMUTIL
7203if test -n "$DSYMUTIL"; then
7204  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7205$as_echo "$DSYMUTIL" >&6; }
7206else
7207  { $as_echo "$as_me:$LINENO: result: no" >&5
7208$as_echo "no" >&6; }
7209fi
7210
7211
7212fi
7213if test -z "$ac_cv_prog_DSYMUTIL"; then
7214  ac_ct_DSYMUTIL=$DSYMUTIL
7215  # Extract the first word of "dsymutil", so it can be a program name with args.
7216set dummy dsymutil; ac_word=$2
7217{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7218$as_echo_n "checking for $ac_word... " >&6; }
7219if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7220  $as_echo_n "(cached) " >&6
7221else
7222  if test -n "$ac_ct_DSYMUTIL"; then
7223  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7224else
7225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226for as_dir in $PATH
7227do
7228  IFS=$as_save_IFS
7229  test -z "$as_dir" && as_dir=.
7230  for ac_exec_ext in '' $ac_executable_extensions; do
7231  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7232    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7233    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234    break 2
7235  fi
7236done
7237done
7238IFS=$as_save_IFS
7239
7240fi
7241fi
7242ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7243if test -n "$ac_ct_DSYMUTIL"; then
7244  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7245$as_echo "$ac_ct_DSYMUTIL" >&6; }
7246else
7247  { $as_echo "$as_me:$LINENO: result: no" >&5
7248$as_echo "no" >&6; }
7249fi
7250
7251  if test "x$ac_ct_DSYMUTIL" = x; then
7252    DSYMUTIL=":"
7253  else
7254    case $cross_compiling:$ac_tool_warned in
7255yes:)
7256{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7258ac_tool_warned=yes ;;
7259esac
7260    DSYMUTIL=$ac_ct_DSYMUTIL
7261  fi
7262else
7263  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7264fi
7265
7266    if test -n "$ac_tool_prefix"; then
7267  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7268set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7269{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7270$as_echo_n "checking for $ac_word... " >&6; }
7271if test "${ac_cv_prog_NMEDIT+set}" = set; then
7272  $as_echo_n "(cached) " >&6
7273else
7274  if test -n "$NMEDIT"; then
7275  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7276else
7277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278for as_dir in $PATH
7279do
7280  IFS=$as_save_IFS
7281  test -z "$as_dir" && as_dir=.
7282  for ac_exec_ext in '' $ac_executable_extensions; do
7283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7284    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7285    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286    break 2
7287  fi
7288done
7289done
7290IFS=$as_save_IFS
7291
7292fi
7293fi
7294NMEDIT=$ac_cv_prog_NMEDIT
7295if test -n "$NMEDIT"; then
7296  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7297$as_echo "$NMEDIT" >&6; }
7298else
7299  { $as_echo "$as_me:$LINENO: result: no" >&5
7300$as_echo "no" >&6; }
7301fi
7302
7303
7304fi
7305if test -z "$ac_cv_prog_NMEDIT"; then
7306  ac_ct_NMEDIT=$NMEDIT
7307  # Extract the first word of "nmedit", so it can be a program name with args.
7308set dummy nmedit; ac_word=$2
7309{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7310$as_echo_n "checking for $ac_word... " >&6; }
7311if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7312  $as_echo_n "(cached) " >&6
7313else
7314  if test -n "$ac_ct_NMEDIT"; then
7315  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7316else
7317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318for as_dir in $PATH
7319do
7320  IFS=$as_save_IFS
7321  test -z "$as_dir" && as_dir=.
7322  for ac_exec_ext in '' $ac_executable_extensions; do
7323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7324    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7325    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326    break 2
7327  fi
7328done
7329done
7330IFS=$as_save_IFS
7331
7332fi
7333fi
7334ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7335if test -n "$ac_ct_NMEDIT"; then
7336  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7337$as_echo "$ac_ct_NMEDIT" >&6; }
7338else
7339  { $as_echo "$as_me:$LINENO: result: no" >&5
7340$as_echo "no" >&6; }
7341fi
7342
7343  if test "x$ac_ct_NMEDIT" = x; then
7344    NMEDIT=":"
7345  else
7346    case $cross_compiling:$ac_tool_warned in
7347yes:)
7348{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7350ac_tool_warned=yes ;;
7351esac
7352    NMEDIT=$ac_ct_NMEDIT
7353  fi
7354else
7355  NMEDIT="$ac_cv_prog_NMEDIT"
7356fi
7357
7358
7359    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7360$as_echo_n "checking for -single_module linker flag... " >&6; }
7361if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7362  $as_echo_n "(cached) " >&6
7363else
7364  lt_cv_apple_cc_single_mod=no
7365      if test -z "${LT_MULTI_MODULE}"; then
7366   # By default we will add the -single_module flag. You can override
7367   # by either setting the environment variable LT_MULTI_MODULE
7368   # non-empty at configure time, or by adding -multi_module to the
7369   # link flags.
7370   echo "int foo(void){return 1;}" > conftest.c
7371   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7372     -dynamiclib ${wl}-single_module conftest.c
7373   if test -f libconftest.dylib; then
7374     lt_cv_apple_cc_single_mod=yes
7375     rm -rf libconftest.dylib*
7376   fi
7377   rm conftest.c
7378      fi
7379fi
7380{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7381$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7382    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7383$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7384if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7385  $as_echo_n "(cached) " >&6
7386else
7387  lt_cv_ld_exported_symbols_list=no
7388      save_LDFLAGS=$LDFLAGS
7389      echo "_main" > conftest.sym
7390      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7391      cat >conftest.$ac_ext <<_ACEOF
7392/* confdefs.h.  */
7393_ACEOF
7394cat confdefs.h >>conftest.$ac_ext
7395cat >>conftest.$ac_ext <<_ACEOF
7396/* end confdefs.h.  */
7397
7398int
7399main ()
7400{
7401
7402  ;
7403  return 0;
7404}
7405_ACEOF
7406rm -f conftest.$ac_objext conftest$ac_exeext
7407if { (ac_try="$ac_link"
7408case "(($ac_try" in
7409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7410  *) ac_try_echo=$ac_try;;
7411esac
7412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7413$as_echo "$ac_try_echo") >&5
7414  (eval "$ac_link") 2>conftest.er1
7415  ac_status=$?
7416  grep -v '^ *+' conftest.er1 >conftest.err
7417  rm -f conftest.er1
7418  cat conftest.err >&5
7419  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420  (exit $ac_status); } && {
7421	 test -z "$ac_c_werror_flag" ||
7422	 test ! -s conftest.err
7423       } && test -s conftest$ac_exeext && {
7424	 test "$cross_compiling" = yes ||
7425	 $as_test_x conftest$ac_exeext
7426       }; then
7427  lt_cv_ld_exported_symbols_list=yes
7428else
7429  $as_echo "$as_me: failed program was:" >&5
7430sed 's/^/| /' conftest.$ac_ext >&5
7431
7432	lt_cv_ld_exported_symbols_list=no
7433fi
7434
7435rm -rf conftest.dSYM
7436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7437      conftest$ac_exeext conftest.$ac_ext
7438   LDFLAGS="$save_LDFLAGS"
7439
7440fi
7441{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7442$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7443    case $host_os in
7444    rhapsody* | darwin1.[0123])
7445      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7446    darwin1.*)
7447     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7448    darwin*)
7449      # if running on 10.5 or later, the deployment target defaults
7450      # to the OS version, if on x86, and 10.4, the deployment
7451      # target defaults to 10.4. Don't you love it?
7452      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7453   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7454     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7455   10.[012]*)
7456     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7457   10.*)
7458     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7459      esac
7460    ;;
7461  esac
7462    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7463      _lt_dar_single_mod='$single_module'
7464    fi
7465    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7466      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7467    else
7468      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7469    fi
7470    if test "$DSYMUTIL" != ":"; then
7471      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7472    else
7473      _lt_dsymutil=
7474    fi
7475    ;;
7476  esac
7477
7478
7479enable_dlopen=no
7480enable_win32_dll=no
7481
7482# Check whether --enable-libtool-lock was given.
7483if test "${enable_libtool_lock+set}" = set; then
7484  enableval=$enable_libtool_lock;
7485fi
7486
7487test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7488
7489
7490# Check whether --with-pic was given.
7491if test "${with_pic+set}" = set; then
7492  withval=$with_pic; pic_mode="$withval"
7493else
7494  pic_mode=default
7495fi
7496
7497test -z "$pic_mode" && pic_mode=default
7498
7499# Use C for the default configuration in the libtool script
7500tagname=
7501lt_save_CC="$CC"
7502ac_ext=c
7503ac_cpp='$CPP $CPPFLAGS'
7504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7506ac_compiler_gnu=$ac_cv_c_compiler_gnu
7507
7508
7509# Source file extension for C test sources.
7510ac_ext=c
7511
7512# Object file extension for compiled C test sources.
7513objext=o
7514objext=$objext
7515
7516# Code to be used in simple compile tests
7517lt_simple_compile_test_code="int some_variable = 0;"
7518
7519# Code to be used in simple link tests
7520lt_simple_link_test_code='int main(){return(0);}'
7521
7522
7523# If no C compiler was specified, use CC.
7524LTCC=${LTCC-"$CC"}
7525
7526# If no C compiler flags were specified, use CFLAGS.
7527LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7528
7529# Allow CC to be a program name with arguments.
7530compiler=$CC
7531
7532
7533# save warnings/boilerplate of simple test code
7534ac_outfile=conftest.$ac_objext
7535echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7536eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7537_lt_compiler_boilerplate=`cat conftest.err`
7538$rm conftest*
7539
7540ac_outfile=conftest.$ac_objext
7541echo "$lt_simple_link_test_code" >conftest.$ac_ext
7542eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7543_lt_linker_boilerplate=`cat conftest.err`
7544$rm -r conftest*
7545
7546
7547
7548lt_prog_compiler_no_builtin_flag=
7549
7550if test "$GCC" = yes; then
7551  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7552
7553
7554{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7555$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7556if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7557  $as_echo_n "(cached) " >&6
7558else
7559  lt_cv_prog_compiler_rtti_exceptions=no
7560  ac_outfile=conftest.$ac_objext
7561   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7562   lt_compiler_flag="-fno-rtti -fno-exceptions"
7563   # Insert the option either (1) after the last *FLAGS variable, or
7564   # (2) before a word containing "conftest.", or (3) at the end.
7565   # Note that $ac_compile itself does not contain backslashes and begins
7566   # with a dollar sign (not a hyphen), so the echo should work correctly.
7567   # The option is referenced via a variable to avoid confusing sed.
7568   lt_compile=`echo "$ac_compile" | $SED \
7569   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7570   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7571   -e 's:$: $lt_compiler_flag:'`
7572   (eval echo "\"\$as_me:7572: $lt_compile\"" >&5)
7573   (eval "$lt_compile" 2>conftest.err)
7574   ac_status=$?
7575   cat conftest.err >&5
7576   echo "$as_me:7576: \$? = $ac_status" >&5
7577   if (exit $ac_status) && test -s "$ac_outfile"; then
7578     # The compiler can only warn and ignore the option if not recognized
7579     # So say no if there are warnings other than the usual output.
7580     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7581     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7582     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7583       lt_cv_prog_compiler_rtti_exceptions=yes
7584     fi
7585   fi
7586   $rm conftest*
7587
7588fi
7589{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7590$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7591
7592if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7593    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7594else
7595    :
7596fi
7597
7598fi
7599
7600lt_prog_compiler_wl=
7601lt_prog_compiler_pic=
7602lt_prog_compiler_static=
7603
7604{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7605$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7606
7607  if test "$GCC" = yes; then
7608    lt_prog_compiler_wl='-Wl,'
7609    lt_prog_compiler_static='-static'
7610
7611    case $host_os in
7612      aix*)
7613      # All AIX code is PIC.
7614      if test "$host_cpu" = ia64; then
7615	# AIX 5 now supports IA64 processor
7616	lt_prog_compiler_static='-Bstatic'
7617      fi
7618      ;;
7619
7620    amigaos*)
7621      # FIXME: we need at least 68020 code to build shared libraries, but
7622      # adding the `-m68020' flag to GCC prevents building anything better,
7623      # like `-m68040'.
7624      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7625      ;;
7626
7627    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7628      # PIC is the default for these OSes.
7629      ;;
7630
7631    mingw* | cygwin* | pw32* | os2*)
7632      # This hack is so that the source file can tell whether it is being
7633      # built for inclusion in a dll (and should export symbols for example).
7634      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7635      # (--disable-auto-import) libraries
7636      lt_prog_compiler_pic='-DDLL_EXPORT'
7637      ;;
7638
7639    darwin* | rhapsody*)
7640      # PIC is the default on this platform
7641      # Common symbols not allowed in MH_DYLIB files
7642      lt_prog_compiler_pic='-fno-common'
7643      ;;
7644
7645    interix[3-9]*)
7646      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7647      # Instead, we relocate shared libraries at runtime.
7648      ;;
7649
7650    msdosdjgpp*)
7651      # Just because we use GCC doesn't mean we suddenly get shared libraries
7652      # on systems that don't support them.
7653      lt_prog_compiler_can_build_shared=no
7654      enable_shared=no
7655      ;;
7656
7657    sysv4*MP*)
7658      if test -d /usr/nec; then
7659	lt_prog_compiler_pic=-Kconform_pic
7660      fi
7661      ;;
7662
7663    hpux*)
7664      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7665      # not for PA HP-UX.
7666      case $host_cpu in
7667      hppa*64*|ia64*)
7668	# +Z the default
7669	;;
7670      *)
7671	lt_prog_compiler_pic='-fPIC'
7672	;;
7673      esac
7674      ;;
7675
7676    *)
7677      lt_prog_compiler_pic='-fPIC'
7678      ;;
7679    esac
7680  else
7681    # PORTME Check for flag to pass linker flags through the system compiler.
7682    case $host_os in
7683    aix*)
7684      lt_prog_compiler_wl='-Wl,'
7685      if test "$host_cpu" = ia64; then
7686	# AIX 5 now supports IA64 processor
7687	lt_prog_compiler_static='-Bstatic'
7688      else
7689	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7690      fi
7691      ;;
7692      darwin*)
7693        # PIC is the default on this platform
7694        # Common symbols not allowed in MH_DYLIB files
7695       case $cc_basename in
7696         xlc*)
7697         lt_prog_compiler_pic='-qnocommon'
7698         lt_prog_compiler_wl='-Wl,'
7699         ;;
7700       esac
7701       ;;
7702
7703    mingw* | cygwin* | pw32* | os2*)
7704      # This hack is so that the source file can tell whether it is being
7705      # built for inclusion in a dll (and should export symbols for example).
7706      lt_prog_compiler_pic='-DDLL_EXPORT'
7707      ;;
7708
7709    hpux9* | hpux10* | hpux11*)
7710      lt_prog_compiler_wl='-Wl,'
7711      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7712      # not for PA HP-UX.
7713      case $host_cpu in
7714      hppa*64*|ia64*)
7715	# +Z the default
7716	;;
7717      *)
7718	lt_prog_compiler_pic='+Z'
7719	;;
7720      esac
7721      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7722      lt_prog_compiler_static='${wl}-a ${wl}archive'
7723      ;;
7724
7725    irix5* | irix6* | nonstopux*)
7726      lt_prog_compiler_wl='-Wl,'
7727      # PIC (with -KPIC) is the default.
7728      lt_prog_compiler_static='-non_shared'
7729      ;;
7730
7731    newsos6)
7732      lt_prog_compiler_pic='-KPIC'
7733      lt_prog_compiler_static='-Bstatic'
7734      ;;
7735
7736    linux* | k*bsd*-gnu)
7737      case $cc_basename in
7738      icc* | ecc*)
7739	lt_prog_compiler_wl='-Wl,'
7740	lt_prog_compiler_pic='-KPIC'
7741	lt_prog_compiler_static='-static'
7742        ;;
7743      pgcc* | pgf77* | pgf90* | pgf95*)
7744        # Portland Group compilers (*not* the Pentium gcc compiler,
7745	# which looks to be a dead project)
7746	lt_prog_compiler_wl='-Wl,'
7747	lt_prog_compiler_pic='-fpic'
7748	lt_prog_compiler_static='-Bstatic'
7749        ;;
7750      ccc*)
7751        lt_prog_compiler_wl='-Wl,'
7752        # All Alpha code is PIC.
7753        lt_prog_compiler_static='-non_shared'
7754        ;;
7755      *)
7756        case `$CC -V 2>&1 | sed 5q` in
7757	*Sun\ C*)
7758	  # Sun C 5.9
7759	  lt_prog_compiler_pic='-KPIC'
7760	  lt_prog_compiler_static='-Bstatic'
7761	  lt_prog_compiler_wl='-Wl,'
7762	  ;;
7763	*Sun\ F*)
7764	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7765	  lt_prog_compiler_pic='-KPIC'
7766	  lt_prog_compiler_static='-Bstatic'
7767	  lt_prog_compiler_wl=''
7768	  ;;
7769	esac
7770	;;
7771      esac
7772      ;;
7773
7774    osf3* | osf4* | osf5*)
7775      lt_prog_compiler_wl='-Wl,'
7776      # All OSF/1 code is PIC.
7777      lt_prog_compiler_static='-non_shared'
7778      ;;
7779
7780    rdos*)
7781      lt_prog_compiler_static='-non_shared'
7782      ;;
7783
7784    solaris*)
7785      lt_prog_compiler_pic='-KPIC'
7786      lt_prog_compiler_static='-Bstatic'
7787      case $cc_basename in
7788      f77* | f90* | f95*)
7789	lt_prog_compiler_wl='-Qoption ld ';;
7790      *)
7791	lt_prog_compiler_wl='-Wl,';;
7792      esac
7793      ;;
7794
7795    sunos4*)
7796      lt_prog_compiler_wl='-Qoption ld '
7797      lt_prog_compiler_pic='-PIC'
7798      lt_prog_compiler_static='-Bstatic'
7799      ;;
7800
7801    sysv4 | sysv4.2uw2* | sysv4.3*)
7802      lt_prog_compiler_wl='-Wl,'
7803      lt_prog_compiler_pic='-KPIC'
7804      lt_prog_compiler_static='-Bstatic'
7805      ;;
7806
7807    sysv4*MP*)
7808      if test -d /usr/nec ;then
7809	lt_prog_compiler_pic='-Kconform_pic'
7810	lt_prog_compiler_static='-Bstatic'
7811      fi
7812      ;;
7813
7814    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7815      lt_prog_compiler_wl='-Wl,'
7816      lt_prog_compiler_pic='-KPIC'
7817      lt_prog_compiler_static='-Bstatic'
7818      ;;
7819
7820    unicos*)
7821      lt_prog_compiler_wl='-Wl,'
7822      lt_prog_compiler_can_build_shared=no
7823      ;;
7824
7825    uts4*)
7826      lt_prog_compiler_pic='-pic'
7827      lt_prog_compiler_static='-Bstatic'
7828      ;;
7829
7830    *)
7831      lt_prog_compiler_can_build_shared=no
7832      ;;
7833    esac
7834  fi
7835
7836{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7837$as_echo "$lt_prog_compiler_pic" >&6; }
7838
7839#
7840# Check to make sure the PIC flag actually works.
7841#
7842if test -n "$lt_prog_compiler_pic"; then
7843
7844{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7845$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7846if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7847  $as_echo_n "(cached) " >&6
7848else
7849  lt_cv_prog_compiler_pic_works=no
7850  ac_outfile=conftest.$ac_objext
7851   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7852   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7853   # Insert the option either (1) after the last *FLAGS variable, or
7854   # (2) before a word containing "conftest.", or (3) at the end.
7855   # Note that $ac_compile itself does not contain backslashes and begins
7856   # with a dollar sign (not a hyphen), so the echo should work correctly.
7857   # The option is referenced via a variable to avoid confusing sed.
7858   lt_compile=`echo "$ac_compile" | $SED \
7859   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7860   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7861   -e 's:$: $lt_compiler_flag:'`
7862   (eval echo "\"\$as_me:7862: $lt_compile\"" >&5)
7863   (eval "$lt_compile" 2>conftest.err)
7864   ac_status=$?
7865   cat conftest.err >&5
7866   echo "$as_me:7866: \$? = $ac_status" >&5
7867   if (exit $ac_status) && test -s "$ac_outfile"; then
7868     # The compiler can only warn and ignore the option if not recognized
7869     # So say no if there are warnings other than the usual output.
7870     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7871     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7872     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7873       lt_cv_prog_compiler_pic_works=yes
7874     fi
7875   fi
7876   $rm conftest*
7877
7878fi
7879{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7880$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7881
7882if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7883    case $lt_prog_compiler_pic in
7884     "" | " "*) ;;
7885     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7886     esac
7887else
7888    lt_prog_compiler_pic=
7889     lt_prog_compiler_can_build_shared=no
7890fi
7891
7892fi
7893case $host_os in
7894  # For platforms which do not support PIC, -DPIC is meaningless:
7895  *djgpp*)
7896    lt_prog_compiler_pic=
7897    ;;
7898  *)
7899    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7900    ;;
7901esac
7902
7903#
7904# Check to make sure the static flag actually works.
7905#
7906wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7907{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7908$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7909if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7910  $as_echo_n "(cached) " >&6
7911else
7912  lt_cv_prog_compiler_static_works=no
7913   save_LDFLAGS="$LDFLAGS"
7914   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7915   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7916   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7917     # The linker can only warn and ignore the option if not recognized
7918     # So say no if there are warnings
7919     if test -s conftest.err; then
7920       # Append any errors to the config.log.
7921       cat conftest.err 1>&5
7922       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7923       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7924       if diff conftest.exp conftest.er2 >/dev/null; then
7925         lt_cv_prog_compiler_static_works=yes
7926       fi
7927     else
7928       lt_cv_prog_compiler_static_works=yes
7929     fi
7930   fi
7931   $rm -r conftest*
7932   LDFLAGS="$save_LDFLAGS"
7933
7934fi
7935{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7936$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7937
7938if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7939    :
7940else
7941    lt_prog_compiler_static=
7942fi
7943
7944
7945{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7946$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7947if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7948  $as_echo_n "(cached) " >&6
7949else
7950  lt_cv_prog_compiler_c_o=no
7951   $rm -r conftest 2>/dev/null
7952   mkdir conftest
7953   cd conftest
7954   mkdir out
7955   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7956
7957   lt_compiler_flag="-o out/conftest2.$ac_objext"
7958   # Insert the option either (1) after the last *FLAGS variable, or
7959   # (2) before a word containing "conftest.", or (3) at the end.
7960   # Note that $ac_compile itself does not contain backslashes and begins
7961   # with a dollar sign (not a hyphen), so the echo should work correctly.
7962   lt_compile=`echo "$ac_compile" | $SED \
7963   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7964   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7965   -e 's:$: $lt_compiler_flag:'`
7966   (eval echo "\"\$as_me:7966: $lt_compile\"" >&5)
7967   (eval "$lt_compile" 2>out/conftest.err)
7968   ac_status=$?
7969   cat out/conftest.err >&5
7970   echo "$as_me:7970: \$? = $ac_status" >&5
7971   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7972   then
7973     # The compiler can only warn and ignore the option if not recognized
7974     # So say no if there are warnings
7975     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7976     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7977     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7978       lt_cv_prog_compiler_c_o=yes
7979     fi
7980   fi
7981   chmod u+w . 2>&5
7982   $rm conftest*
7983   # SGI C++ compiler will create directory out/ii_files/ for
7984   # template instantiation
7985   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7986   $rm out/* && rmdir out
7987   cd ..
7988   rmdir conftest
7989   $rm conftest*
7990
7991fi
7992{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7993$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7994
7995
7996hard_links="nottested"
7997if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7998  # do not overwrite the value of need_locks provided by the user
7999  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8000$as_echo_n "checking if we can lock with hard links... " >&6; }
8001  hard_links=yes
8002  $rm conftest*
8003  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8004  touch conftest.a
8005  ln conftest.a conftest.b 2>&5 || hard_links=no
8006  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8007  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8008$as_echo "$hard_links" >&6; }
8009  if test "$hard_links" = no; then
8010    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8011$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8012    need_locks=warn
8013  fi
8014else
8015  need_locks=no
8016fi
8017
8018{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8019$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8020
8021  runpath_var=
8022  allow_undefined_flag=
8023  enable_shared_with_static_runtimes=no
8024  archive_cmds=
8025  archive_expsym_cmds=
8026  old_archive_From_new_cmds=
8027  old_archive_from_expsyms_cmds=
8028  export_dynamic_flag_spec=
8029  whole_archive_flag_spec=
8030  thread_safe_flag_spec=
8031  hardcode_libdir_flag_spec=
8032  hardcode_libdir_flag_spec_ld=
8033  hardcode_libdir_separator=
8034  hardcode_direct=no
8035  hardcode_minus_L=no
8036  hardcode_shlibpath_var=unsupported
8037  link_all_deplibs=unknown
8038  hardcode_automatic=no
8039  module_cmds=
8040  module_expsym_cmds=
8041  always_export_symbols=no
8042  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8043  # include_expsyms should be a list of space-separated symbols to be *always*
8044  # included in the symbol list
8045  include_expsyms=
8046  # exclude_expsyms can be an extended regexp of symbols to exclude
8047  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8048  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8049  # as well as any symbol that contains `d'.
8050  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8051  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8052  # platforms (ab)use it in PIC code, but their linkers get confused if
8053  # the symbol is explicitly referenced.  Since portable code cannot
8054  # rely on this symbol name, it's probably fine to never include it in
8055  # preloaded symbol tables.
8056  # Exclude shared library initialization/finalization symbols.
8057  extract_expsyms_cmds=
8058  # Just being paranoid about ensuring that cc_basename is set.
8059  for cc_temp in $compiler""; do
8060  case $cc_temp in
8061    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8062    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8063    \-*) ;;
8064    *) break;;
8065  esac
8066done
8067cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8068
8069  case $host_os in
8070  cygwin* | mingw* | pw32*)
8071    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8072    # When not using gcc, we currently assume that we are using
8073    # Microsoft Visual C++.
8074    if test "$GCC" != yes; then
8075      with_gnu_ld=no
8076    fi
8077    ;;
8078  interix*)
8079    # we just hope/assume this is gcc and not c89 (= MSVC++)
8080    with_gnu_ld=yes
8081    ;;
8082  openbsd*)
8083    with_gnu_ld=no
8084    ;;
8085  esac
8086
8087  ld_shlibs=yes
8088  if test "$with_gnu_ld" = yes; then
8089    # If archive_cmds runs LD, not CC, wlarc should be empty
8090    wlarc='${wl}'
8091
8092    # Set some defaults for GNU ld with shared library support. These
8093    # are reset later if shared libraries are not supported. Putting them
8094    # here allows them to be overridden if necessary.
8095    runpath_var=LD_RUN_PATH
8096    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8097    export_dynamic_flag_spec='${wl}--export-dynamic'
8098    # ancient GNU ld didn't support --whole-archive et. al.
8099    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8100	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8101      else
8102  	whole_archive_flag_spec=
8103    fi
8104    supports_anon_versioning=no
8105    case `$LD -v 2>/dev/null` in
8106      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8107      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8108      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8109      *\ 2.11.*) ;; # other 2.11 versions
8110      *) supports_anon_versioning=yes ;;
8111    esac
8112
8113    # See if GNU ld supports shared libraries.
8114    case $host_os in
8115    aix[3-9]*)
8116      # On AIX/PPC, the GNU linker is very broken
8117      if test "$host_cpu" != ia64; then
8118	ld_shlibs=no
8119	cat <<EOF 1>&2
8120
8121*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8122*** to be unable to reliably create shared libraries on AIX.
8123*** Therefore, libtool is disabling shared libraries support.  If you
8124*** really care for shared libraries, you may want to modify your PATH
8125*** so that a non-GNU linker is found, and then restart.
8126
8127EOF
8128      fi
8129      ;;
8130
8131    amigaos*)
8132      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)'
8133      hardcode_libdir_flag_spec='-L$libdir'
8134      hardcode_minus_L=yes
8135
8136      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8137      # that the semantics of dynamic libraries on AmigaOS, at least up
8138      # to version 4, is to share data among multiple programs linked
8139      # with the same dynamic library.  Since this doesn't match the
8140      # behavior of shared libraries on other platforms, we can't use
8141      # them.
8142      ld_shlibs=no
8143      ;;
8144
8145    beos*)
8146      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8147	allow_undefined_flag=unsupported
8148	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8149	# support --undefined.  This deserves some investigation.  FIXME
8150	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8151      else
8152	ld_shlibs=no
8153      fi
8154      ;;
8155
8156    cygwin* | mingw* | pw32*)
8157      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8158      # as there is no search path for DLLs.
8159      hardcode_libdir_flag_spec='-L$libdir'
8160      allow_undefined_flag=unsupported
8161      always_export_symbols=no
8162      enable_shared_with_static_runtimes=yes
8163      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8164
8165      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8166        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8167	# If the export-symbols file already is a .def file (1st line
8168	# is EXPORTS), use it as is; otherwise, prepend...
8169	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8170	  cp $export_symbols $output_objdir/$soname.def;
8171	else
8172	  echo EXPORTS > $output_objdir/$soname.def;
8173	  cat $export_symbols >> $output_objdir/$soname.def;
8174	fi~
8175	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8176      else
8177	ld_shlibs=no
8178      fi
8179      ;;
8180
8181    interix[3-9]*)
8182      hardcode_direct=no
8183      hardcode_shlibpath_var=no
8184      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8185      export_dynamic_flag_spec='${wl}-E'
8186      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8187      # Instead, shared libraries are loaded at an image base (0x10000000 by
8188      # default) and relocated if they conflict, which is a slow very memory
8189      # consuming and fragmenting process.  To avoid this, we pick a random,
8190      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8191      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8192      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8193      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'
8194      ;;
8195
8196    gnu* | linux* | k*bsd*-gnu)
8197      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8198	tmp_addflag=
8199	case $cc_basename,$host_cpu in
8200	pgcc*)				# Portland Group C compiler
8201	  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'
8202	  tmp_addflag=' $pic_flag'
8203	  ;;
8204	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8205	  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'
8206	  tmp_addflag=' $pic_flag -Mnomain' ;;
8207	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8208	  tmp_addflag=' -i_dynamic' ;;
8209	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8210	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8211	ifc* | ifort*)			# Intel Fortran compiler
8212	  tmp_addflag=' -nofor_main' ;;
8213	esac
8214	case `$CC -V 2>&1 | sed 5q` in
8215	*Sun\ C*)			# Sun C 5.9
8216	  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'
8217	  tmp_sharedflag='-G' ;;
8218	*Sun\ F*)			# Sun Fortran 8.3
8219	  tmp_sharedflag='-G' ;;
8220	*)
8221	  tmp_sharedflag='-shared' ;;
8222	esac
8223	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8224
8225	if test $supports_anon_versioning = yes; then
8226	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8227  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8228  $echo "local: *; };" >> $output_objdir/$libname.ver~
8229	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8230	fi
8231      else
8232	ld_shlibs=no
8233      fi
8234      ;;
8235
8236    netbsd*)
8237      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8238	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8239	wlarc=
8240      else
8241	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8242	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8243      fi
8244      ;;
8245
8246    solaris*)
8247      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8248	ld_shlibs=no
8249	cat <<EOF 1>&2
8250
8251*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8252*** create shared libraries on Solaris systems.  Therefore, libtool
8253*** is disabling shared libraries support.  We urge you to upgrade GNU
8254*** binutils to release 2.9.1 or newer.  Another option is to modify
8255*** your PATH or compiler configuration so that the native linker is
8256*** used, and then restart.
8257
8258EOF
8259      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8260	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8261	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8262      else
8263	ld_shlibs=no
8264      fi
8265      ;;
8266
8267    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8268      case `$LD -v 2>&1` in
8269        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8270	ld_shlibs=no
8271	cat <<_LT_EOF 1>&2
8272
8273*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8274*** reliably create shared libraries on SCO systems.  Therefore, libtool
8275*** is disabling shared libraries support.  We urge you to upgrade GNU
8276*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8277*** your PATH or compiler configuration so that the native linker is
8278*** used, and then restart.
8279
8280_LT_EOF
8281	;;
8282	*)
8283	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8284	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8285	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8286	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8287	  else
8288	    ld_shlibs=no
8289	  fi
8290	;;
8291      esac
8292      ;;
8293
8294    sunos4*)
8295      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8296      wlarc=
8297      hardcode_direct=yes
8298      hardcode_shlibpath_var=no
8299      ;;
8300
8301    *)
8302      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8303	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8304	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8305      else
8306	ld_shlibs=no
8307      fi
8308      ;;
8309    esac
8310
8311    if test "$ld_shlibs" = no; then
8312      runpath_var=
8313      hardcode_libdir_flag_spec=
8314      export_dynamic_flag_spec=
8315      whole_archive_flag_spec=
8316    fi
8317  else
8318    # PORTME fill in a description of your system's linker (not GNU ld)
8319    case $host_os in
8320    aix3*)
8321      allow_undefined_flag=unsupported
8322      always_export_symbols=yes
8323      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'
8324      # Note: this linker hardcodes the directories in LIBPATH if there
8325      # are no directories specified by -L.
8326      hardcode_minus_L=yes
8327      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8328	# Neither direct hardcoding nor static linking is supported with a
8329	# broken collect2.
8330	hardcode_direct=unsupported
8331      fi
8332      ;;
8333
8334    aix[4-9]*)
8335      if test "$host_cpu" = ia64; then
8336	# On IA64, the linker does run time linking by default, so we don't
8337	# have to do anything special.
8338	aix_use_runtimelinking=no
8339	exp_sym_flag='-Bexport'
8340	no_entry_flag=""
8341      else
8342	# If we're using GNU nm, then we don't want the "-C" option.
8343	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8344	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8345	  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'
8346	else
8347	  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'
8348	fi
8349	aix_use_runtimelinking=no
8350
8351	# Test if we are trying to use run time linking or normal
8352	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8353	# need to do runtime linking.
8354	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8355	  for ld_flag in $LDFLAGS; do
8356  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8357  	    aix_use_runtimelinking=yes
8358  	    break
8359  	  fi
8360	  done
8361	  ;;
8362	esac
8363
8364	exp_sym_flag='-bexport'
8365	no_entry_flag='-bnoentry'
8366      fi
8367
8368      # When large executables or shared objects are built, AIX ld can
8369      # have problems creating the table of contents.  If linking a library
8370      # or program results in "error TOC overflow" add -mminimal-toc to
8371      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8372      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8373
8374      archive_cmds=''
8375      hardcode_direct=yes
8376      hardcode_libdir_separator=':'
8377      link_all_deplibs=yes
8378
8379      if test "$GCC" = yes; then
8380	case $host_os in aix4.[012]|aix4.[012].*)
8381	# We only want to do this on AIX 4.2 and lower, the check
8382	# below for broken collect2 doesn't work under 4.3+
8383	  collect2name=`${CC} -print-prog-name=collect2`
8384	  if test -f "$collect2name" && \
8385  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8386	  then
8387  	  # We have reworked collect2
8388  	  :
8389	  else
8390  	  # We have old collect2
8391  	  hardcode_direct=unsupported
8392  	  # It fails to find uninstalled libraries when the uninstalled
8393  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8394  	  # to unsupported forces relinking
8395  	  hardcode_minus_L=yes
8396  	  hardcode_libdir_flag_spec='-L$libdir'
8397  	  hardcode_libdir_separator=
8398	  fi
8399	  ;;
8400	esac
8401	shared_flag='-shared'
8402	if test "$aix_use_runtimelinking" = yes; then
8403	  shared_flag="$shared_flag "'${wl}-G'
8404	fi
8405      else
8406	# not using gcc
8407	if test "$host_cpu" = ia64; then
8408  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8409  	# chokes on -Wl,-G. The following line is correct:
8410	  shared_flag='-G'
8411	else
8412	  if test "$aix_use_runtimelinking" = yes; then
8413	    shared_flag='${wl}-G'
8414	  else
8415	    shared_flag='${wl}-bM:SRE'
8416	  fi
8417	fi
8418      fi
8419
8420      # It seems that -bexpall does not export symbols beginning with
8421      # underscore (_), so it is better to generate a list of symbols to export.
8422      always_export_symbols=yes
8423      if test "$aix_use_runtimelinking" = yes; then
8424	# Warning - without using the other runtime loading flags (-brtl),
8425	# -berok will link without error, but may produce a broken library.
8426	allow_undefined_flag='-berok'
8427       # Determine the default libpath from the value encoded in an empty executable.
8428       cat >conftest.$ac_ext <<_ACEOF
8429/* confdefs.h.  */
8430_ACEOF
8431cat confdefs.h >>conftest.$ac_ext
8432cat >>conftest.$ac_ext <<_ACEOF
8433/* end confdefs.h.  */
8434
8435int
8436main ()
8437{
8438
8439  ;
8440  return 0;
8441}
8442_ACEOF
8443rm -f conftest.$ac_objext conftest$ac_exeext
8444if { (ac_try="$ac_link"
8445case "(($ac_try" in
8446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447  *) ac_try_echo=$ac_try;;
8448esac
8449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8450$as_echo "$ac_try_echo") >&5
8451  (eval "$ac_link") 2>conftest.er1
8452  ac_status=$?
8453  grep -v '^ *+' conftest.er1 >conftest.err
8454  rm -f conftest.er1
8455  cat conftest.err >&5
8456  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457  (exit $ac_status); } && {
8458	 test -z "$ac_c_werror_flag" ||
8459	 test ! -s conftest.err
8460       } && test -s conftest$ac_exeext && {
8461	 test "$cross_compiling" = yes ||
8462	 $as_test_x conftest$ac_exeext
8463       }; then
8464
8465lt_aix_libpath_sed='
8466    /Import File Strings/,/^$/ {
8467	/^0/ {
8468	    s/^0  *\(.*\)$/\1/
8469	    p
8470	}
8471    }'
8472aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8473# Check for a 64-bit object if we didn't find anything.
8474if test -z "$aix_libpath"; then
8475  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8476fi
8477else
8478  $as_echo "$as_me: failed program was:" >&5
8479sed 's/^/| /' conftest.$ac_ext >&5
8480
8481
8482fi
8483
8484rm -rf conftest.dSYM
8485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8486      conftest$ac_exeext conftest.$ac_ext
8487if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8488
8489       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8490	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"
8491       else
8492	if test "$host_cpu" = ia64; then
8493	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8494	  allow_undefined_flag="-z nodefs"
8495	  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"
8496	else
8497	 # Determine the default libpath from the value encoded in an empty executable.
8498	 cat >conftest.$ac_ext <<_ACEOF
8499/* confdefs.h.  */
8500_ACEOF
8501cat confdefs.h >>conftest.$ac_ext
8502cat >>conftest.$ac_ext <<_ACEOF
8503/* end confdefs.h.  */
8504
8505int
8506main ()
8507{
8508
8509  ;
8510  return 0;
8511}
8512_ACEOF
8513rm -f conftest.$ac_objext conftest$ac_exeext
8514if { (ac_try="$ac_link"
8515case "(($ac_try" in
8516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517  *) ac_try_echo=$ac_try;;
8518esac
8519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8520$as_echo "$ac_try_echo") >&5
8521  (eval "$ac_link") 2>conftest.er1
8522  ac_status=$?
8523  grep -v '^ *+' conftest.er1 >conftest.err
8524  rm -f conftest.er1
8525  cat conftest.err >&5
8526  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527  (exit $ac_status); } && {
8528	 test -z "$ac_c_werror_flag" ||
8529	 test ! -s conftest.err
8530       } && test -s conftest$ac_exeext && {
8531	 test "$cross_compiling" = yes ||
8532	 $as_test_x conftest$ac_exeext
8533       }; then
8534
8535lt_aix_libpath_sed='
8536    /Import File Strings/,/^$/ {
8537	/^0/ {
8538	    s/^0  *\(.*\)$/\1/
8539	    p
8540	}
8541    }'
8542aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8543# Check for a 64-bit object if we didn't find anything.
8544if test -z "$aix_libpath"; then
8545  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8546fi
8547else
8548  $as_echo "$as_me: failed program was:" >&5
8549sed 's/^/| /' conftest.$ac_ext >&5
8550
8551
8552fi
8553
8554rm -rf conftest.dSYM
8555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8556      conftest$ac_exeext conftest.$ac_ext
8557if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8558
8559	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8560	  # Warning - without using the other run time loading flags,
8561	  # -berok will link without error, but may produce a broken library.
8562	  no_undefined_flag=' ${wl}-bernotok'
8563	  allow_undefined_flag=' ${wl}-berok'
8564	  # Exported symbols can be pulled into shared objects from archives
8565	  whole_archive_flag_spec='$convenience'
8566	  archive_cmds_need_lc=yes
8567	  # This is similar to how AIX traditionally builds its shared libraries.
8568	  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'
8569	fi
8570      fi
8571      ;;
8572
8573    amigaos*)
8574      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)'
8575      hardcode_libdir_flag_spec='-L$libdir'
8576      hardcode_minus_L=yes
8577      # see comment about different semantics on the GNU ld section
8578      ld_shlibs=no
8579      ;;
8580
8581    bsdi[45]*)
8582      export_dynamic_flag_spec=-rdynamic
8583      ;;
8584
8585    cygwin* | mingw* | pw32*)
8586      # When not using gcc, we currently assume that we are using
8587      # Microsoft Visual C++.
8588      # hardcode_libdir_flag_spec is actually meaningless, as there is
8589      # no search path for DLLs.
8590      hardcode_libdir_flag_spec=' '
8591      allow_undefined_flag=unsupported
8592      # Tell ltmain to make .lib files, not .a files.
8593      libext=lib
8594      # Tell ltmain to make .dll files, not .so files.
8595      shrext_cmds=".dll"
8596      # FIXME: Setting linknames here is a bad hack.
8597      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8598      # The linker will automatically build a .lib file if we build a DLL.
8599      old_archive_From_new_cmds='true'
8600      # FIXME: Should let the user specify the lib program.
8601      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8602      fix_srcfile_path='`cygpath -w "$srcfile"`'
8603      enable_shared_with_static_runtimes=yes
8604      ;;
8605
8606    darwin* | rhapsody*)
8607      case $host_os in
8608        rhapsody* | darwin1.[012])
8609         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8610         ;;
8611       *) # Darwin 1.3 on
8612         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8613           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8614         else
8615           case ${MACOSX_DEPLOYMENT_TARGET} in
8616             10.[012])
8617               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8618               ;;
8619             10.*)
8620               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8621               ;;
8622           esac
8623         fi
8624         ;;
8625      esac
8626      archive_cmds_need_lc=no
8627      hardcode_direct=no
8628      hardcode_automatic=yes
8629      hardcode_shlibpath_var=unsupported
8630      whole_archive_flag_spec=''
8631      link_all_deplibs=yes
8632    if test "$GCC" = yes ; then
8633    	output_verbose_link_cmd='echo'
8634        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8635        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8636        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}"
8637        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}"
8638    else
8639      case $cc_basename in
8640        xlc*)
8641         output_verbose_link_cmd='echo'
8642         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8643         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8644          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8645         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}'
8646          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}'
8647          ;;
8648       *)
8649         ld_shlibs=no
8650          ;;
8651      esac
8652    fi
8653      ;;
8654
8655    dgux*)
8656      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8657      hardcode_libdir_flag_spec='-L$libdir'
8658      hardcode_shlibpath_var=no
8659      ;;
8660
8661    freebsd1*)
8662      ld_shlibs=no
8663      ;;
8664
8665    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8666    # support.  Future versions do this automatically, but an explicit c++rt0.o
8667    # does not break anything, and helps significantly (at the cost of a little
8668    # extra space).
8669    freebsd2.2*)
8670      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8671      hardcode_libdir_flag_spec='-R$libdir'
8672      hardcode_direct=yes
8673      hardcode_shlibpath_var=no
8674      ;;
8675
8676    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8677    freebsd2*)
8678      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8679      hardcode_direct=yes
8680      hardcode_minus_L=yes
8681      hardcode_shlibpath_var=no
8682      ;;
8683
8684    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8685    freebsd* | dragonfly*)
8686      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8687      hardcode_libdir_flag_spec='-R$libdir'
8688      hardcode_direct=yes
8689      hardcode_shlibpath_var=no
8690      ;;
8691
8692    hpux9*)
8693      if test "$GCC" = yes; then
8694	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'
8695      else
8696	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'
8697      fi
8698      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8699      hardcode_libdir_separator=:
8700      hardcode_direct=yes
8701
8702      # hardcode_minus_L: Not really in the search PATH,
8703      # but as the default location of the library.
8704      hardcode_minus_L=yes
8705      export_dynamic_flag_spec='${wl}-E'
8706      ;;
8707
8708    hpux10*)
8709      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8710	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8711      else
8712	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8713      fi
8714      if test "$with_gnu_ld" = no; then
8715	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8716	hardcode_libdir_separator=:
8717
8718	hardcode_direct=yes
8719	export_dynamic_flag_spec='${wl}-E'
8720
8721	# hardcode_minus_L: Not really in the search PATH,
8722	# but as the default location of the library.
8723	hardcode_minus_L=yes
8724      fi
8725      ;;
8726
8727    hpux11*)
8728      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8729	case $host_cpu in
8730	hppa*64*)
8731	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8732	  ;;
8733	ia64*)
8734	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8735	  ;;
8736	*)
8737	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8738	  ;;
8739	esac
8740      else
8741	case $host_cpu in
8742	hppa*64*)
8743	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8744	  ;;
8745	ia64*)
8746	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8747	  ;;
8748	*)
8749	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8750	  ;;
8751	esac
8752      fi
8753      if test "$with_gnu_ld" = no; then
8754	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8755	hardcode_libdir_separator=:
8756
8757	case $host_cpu in
8758	hppa*64*|ia64*)
8759	  hardcode_libdir_flag_spec_ld='+b $libdir'
8760	  hardcode_direct=no
8761	  hardcode_shlibpath_var=no
8762	  ;;
8763	*)
8764	  hardcode_direct=yes
8765	  export_dynamic_flag_spec='${wl}-E'
8766
8767	  # hardcode_minus_L: Not really in the search PATH,
8768	  # but as the default location of the library.
8769	  hardcode_minus_L=yes
8770	  ;;
8771	esac
8772      fi
8773      ;;
8774
8775    irix5* | irix6* | nonstopux*)
8776      if test "$GCC" = yes; then
8777	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'
8778      else
8779	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'
8780	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8781      fi
8782      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8783      hardcode_libdir_separator=:
8784      link_all_deplibs=yes
8785      ;;
8786
8787    netbsd*)
8788      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8789	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8790      else
8791	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8792      fi
8793      hardcode_libdir_flag_spec='-R$libdir'
8794      hardcode_direct=yes
8795      hardcode_shlibpath_var=no
8796      ;;
8797
8798    newsos6)
8799      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8800      hardcode_direct=yes
8801      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8802      hardcode_libdir_separator=:
8803      hardcode_shlibpath_var=no
8804      ;;
8805
8806    openbsd*)
8807      if test -f /usr/libexec/ld.so; then
8808	hardcode_direct=yes
8809	hardcode_shlibpath_var=no
8810	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8811	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8812	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8813	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8814	  export_dynamic_flag_spec='${wl}-E'
8815	else
8816	  case $host_os in
8817	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8818	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8819	     hardcode_libdir_flag_spec='-R$libdir'
8820	     ;;
8821	   *)
8822	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8823	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8824	     ;;
8825	  esac
8826        fi
8827      else
8828	ld_shlibs=no
8829      fi
8830      ;;
8831
8832    os2*)
8833      hardcode_libdir_flag_spec='-L$libdir'
8834      hardcode_minus_L=yes
8835      allow_undefined_flag=unsupported
8836      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'
8837      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8838      ;;
8839
8840    osf3*)
8841      if test "$GCC" = yes; then
8842	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8843	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'
8844      else
8845	allow_undefined_flag=' -expect_unresolved \*'
8846	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'
8847      fi
8848      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8849      hardcode_libdir_separator=:
8850      ;;
8851
8852    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8853      if test "$GCC" = yes; then
8854	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8855	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'
8856	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8857      else
8858	allow_undefined_flag=' -expect_unresolved \*'
8859	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'
8860	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8861	$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'
8862
8863	# Both c and cxx compiler support -rpath directly
8864	hardcode_libdir_flag_spec='-rpath $libdir'
8865      fi
8866      hardcode_libdir_separator=:
8867      ;;
8868
8869    solaris*)
8870      no_undefined_flag=' -z text'
8871      if test "$GCC" = yes; then
8872	wlarc='${wl}'
8873	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8874	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8875	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8876      else
8877	wlarc=''
8878	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8879	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8880  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8881      fi
8882      hardcode_libdir_flag_spec='-R$libdir'
8883      hardcode_shlibpath_var=no
8884      case $host_os in
8885      solaris2.[0-5] | solaris2.[0-5].*) ;;
8886      *)
8887	# The compiler driver will combine and reorder linker options,
8888	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8889	# but is careful enough not to reorder.
8890 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8891	if test "$GCC" = yes; then
8892	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8893	else
8894	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8895	fi
8896	;;
8897      esac
8898      link_all_deplibs=yes
8899      ;;
8900
8901    sunos4*)
8902      if test "x$host_vendor" = xsequent; then
8903	# Use $CC to link under sequent, because it throws in some extra .o
8904	# files that make .init and .fini sections work.
8905	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8906      else
8907	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8908      fi
8909      hardcode_libdir_flag_spec='-L$libdir'
8910      hardcode_direct=yes
8911      hardcode_minus_L=yes
8912      hardcode_shlibpath_var=no
8913      ;;
8914
8915    sysv4)
8916      case $host_vendor in
8917	sni)
8918	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8919	  hardcode_direct=yes # is this really true???
8920	;;
8921	siemens)
8922	  ## LD is ld it makes a PLAMLIB
8923	  ## CC just makes a GrossModule.
8924	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8925	  reload_cmds='$CC -r -o $output$reload_objs'
8926	  hardcode_direct=no
8927        ;;
8928	motorola)
8929	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8930	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8931	;;
8932      esac
8933      runpath_var='LD_RUN_PATH'
8934      hardcode_shlibpath_var=no
8935      ;;
8936
8937    sysv4.3*)
8938      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8939      hardcode_shlibpath_var=no
8940      export_dynamic_flag_spec='-Bexport'
8941      ;;
8942
8943    sysv4*MP*)
8944      if test -d /usr/nec; then
8945	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8946	hardcode_shlibpath_var=no
8947	runpath_var=LD_RUN_PATH
8948	hardcode_runpath_var=yes
8949	ld_shlibs=yes
8950      fi
8951      ;;
8952
8953    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8954      no_undefined_flag='${wl}-z,text'
8955      archive_cmds_need_lc=no
8956      hardcode_shlibpath_var=no
8957      runpath_var='LD_RUN_PATH'
8958
8959      if test "$GCC" = yes; then
8960	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8961	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8962      else
8963	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8964	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8965      fi
8966      ;;
8967
8968    sysv5* | sco3.2v5* | sco5v6*)
8969      # Note: We can NOT use -z defs as we might desire, because we do not
8970      # link with -lc, and that would cause any symbols used from libc to
8971      # always be unresolved, which means just about no library would
8972      # ever link correctly.  If we're not using GNU ld we use -z text
8973      # though, which does catch some bad symbols but isn't as heavy-handed
8974      # as -z defs.
8975      no_undefined_flag='${wl}-z,text'
8976      allow_undefined_flag='${wl}-z,nodefs'
8977      archive_cmds_need_lc=no
8978      hardcode_shlibpath_var=no
8979      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8980      hardcode_libdir_separator=':'
8981      link_all_deplibs=yes
8982      export_dynamic_flag_spec='${wl}-Bexport'
8983      runpath_var='LD_RUN_PATH'
8984
8985      if test "$GCC" = yes; then
8986	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8987	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8988      else
8989	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8990	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8991      fi
8992      ;;
8993
8994    uts4*)
8995      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8996      hardcode_libdir_flag_spec='-L$libdir'
8997      hardcode_shlibpath_var=no
8998      ;;
8999
9000    *)
9001      ld_shlibs=no
9002      ;;
9003    esac
9004  fi
9005
9006{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9007$as_echo "$ld_shlibs" >&6; }
9008test "$ld_shlibs" = no && can_build_shared=no
9009
9010#
9011# Do we need to explicitly link libc?
9012#
9013case "x$archive_cmds_need_lc" in
9014x|xyes)
9015  # Assume -lc should be added
9016  archive_cmds_need_lc=yes
9017
9018  if test "$enable_shared" = yes && test "$GCC" = yes; then
9019    case $archive_cmds in
9020    *'~'*)
9021      # FIXME: we may have to deal with multi-command sequences.
9022      ;;
9023    '$CC '*)
9024      # Test whether the compiler implicitly links with -lc since on some
9025      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9026      # to ld, don't add -lc before -lgcc.
9027      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9028$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9029      $rm conftest*
9030      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9031
9032      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9033  (eval $ac_compile) 2>&5
9034  ac_status=$?
9035  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036  (exit $ac_status); } 2>conftest.err; then
9037        soname=conftest
9038        lib=conftest
9039        libobjs=conftest.$ac_objext
9040        deplibs=
9041        wl=$lt_prog_compiler_wl
9042	pic_flag=$lt_prog_compiler_pic
9043        compiler_flags=-v
9044        linker_flags=-v
9045        verstring=
9046        output_objdir=.
9047        libname=conftest
9048        lt_save_allow_undefined_flag=$allow_undefined_flag
9049        allow_undefined_flag=
9050        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9051  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9052  ac_status=$?
9053  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054  (exit $ac_status); }
9055        then
9056	  archive_cmds_need_lc=no
9057        else
9058	  archive_cmds_need_lc=yes
9059        fi
9060        allow_undefined_flag=$lt_save_allow_undefined_flag
9061      else
9062        cat conftest.err 1>&5
9063      fi
9064      $rm conftest*
9065      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9066$as_echo "$archive_cmds_need_lc" >&6; }
9067      ;;
9068    esac
9069  fi
9070  ;;
9071esac
9072
9073{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9074$as_echo_n "checking dynamic linker characteristics... " >&6; }
9075library_names_spec=
9076libname_spec='lib$name'
9077soname_spec=
9078shrext_cmds=".so"
9079postinstall_cmds=
9080postuninstall_cmds=
9081finish_cmds=
9082finish_eval=
9083shlibpath_var=
9084shlibpath_overrides_runpath=unknown
9085version_type=none
9086dynamic_linker="$host_os ld.so"
9087sys_lib_dlsearch_path_spec="/lib /usr/lib"
9088
9089if test "$GCC" = yes; then
9090  case $host_os in
9091    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9092    *) lt_awk_arg="/^libraries:/" ;;
9093  esac
9094  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9095  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9096    # if the path contains ";" then we assume it to be the separator
9097    # otherwise default to the standard path separator (i.e. ":") - it is
9098    # assumed that no part of a normal pathname contains ";" but that should
9099    # okay in the real world where ";" in dirpaths is itself problematic.
9100    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9101  else
9102    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9103  fi
9104  # Ok, now we have the path, separated by spaces, we can step through it
9105  # and add multilib dir if necessary.
9106  lt_tmp_lt_search_path_spec=
9107  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9108  for lt_sys_path in $lt_search_path_spec; do
9109    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9110      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9111    else
9112      test -d "$lt_sys_path" && \
9113	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9114    fi
9115  done
9116  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9117BEGIN {RS=" "; FS="/|\n";} {
9118  lt_foo="";
9119  lt_count=0;
9120  for (lt_i = NF; lt_i > 0; lt_i--) {
9121    if ($lt_i != "" && $lt_i != ".") {
9122      if ($lt_i == "..") {
9123        lt_count++;
9124      } else {
9125        if (lt_count == 0) {
9126          lt_foo="/" $lt_i lt_foo;
9127        } else {
9128          lt_count--;
9129        }
9130      }
9131    }
9132  }
9133  if (lt_foo != "") { lt_freq[lt_foo]++; }
9134  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9135}'`
9136  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9137else
9138  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9139fi
9140need_lib_prefix=unknown
9141hardcode_into_libs=no
9142
9143# when you set need_version to no, make sure it does not cause -set_version
9144# flags to be left without arguments
9145need_version=unknown
9146
9147case $host_os in
9148aix3*)
9149  version_type=linux
9150  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9151  shlibpath_var=LIBPATH
9152
9153  # AIX 3 has no versioning support, so we append a major version to the name.
9154  soname_spec='${libname}${release}${shared_ext}$major'
9155  ;;
9156
9157aix[4-9]*)
9158  version_type=linux
9159  need_lib_prefix=no
9160  need_version=no
9161  hardcode_into_libs=yes
9162  if test "$host_cpu" = ia64; then
9163    # AIX 5 supports IA64
9164    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9165    shlibpath_var=LD_LIBRARY_PATH
9166  else
9167    # With GCC up to 2.95.x, collect2 would create an import file
9168    # for dependence libraries.  The import file would start with
9169    # the line `#! .'.  This would cause the generated library to
9170    # depend on `.', always an invalid library.  This was fixed in
9171    # development snapshots of GCC prior to 3.0.
9172    case $host_os in
9173      aix4 | aix4.[01] | aix4.[01].*)
9174      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9175	   echo ' yes '
9176	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9177	:
9178      else
9179	can_build_shared=no
9180      fi
9181      ;;
9182    esac
9183    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9184    # soname into executable. Probably we can add versioning support to
9185    # collect2, so additional links can be useful in future.
9186    if test "$aix_use_runtimelinking" = yes; then
9187      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9188      # instead of lib<name>.a to let people know that these are not
9189      # typical AIX shared libraries.
9190      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191    else
9192      # We preserve .a as extension for shared libraries through AIX4.2
9193      # and later when we are not doing run time linking.
9194      library_names_spec='${libname}${release}.a $libname.a'
9195      soname_spec='${libname}${release}${shared_ext}$major'
9196    fi
9197    shlibpath_var=LIBPATH
9198  fi
9199  ;;
9200
9201amigaos*)
9202  library_names_spec='$libname.ixlibrary $libname.a'
9203  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9204  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'
9205  ;;
9206
9207beos*)
9208  library_names_spec='${libname}${shared_ext}'
9209  dynamic_linker="$host_os ld.so"
9210  shlibpath_var=LIBRARY_PATH
9211  ;;
9212
9213bsdi[45]*)
9214  version_type=linux
9215  need_version=no
9216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9217  soname_spec='${libname}${release}${shared_ext}$major'
9218  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9219  shlibpath_var=LD_LIBRARY_PATH
9220  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9221  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9222  # the default ld.so.conf also contains /usr/contrib/lib and
9223  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9224  # libtool to hard-code these into programs
9225  ;;
9226
9227cygwin* | mingw* | pw32*)
9228  version_type=windows
9229  shrext_cmds=".dll"
9230  need_version=no
9231  need_lib_prefix=no
9232
9233  case $GCC,$host_os in
9234  yes,cygwin* | yes,mingw* | yes,pw32*)
9235    library_names_spec='$libname.dll.a'
9236    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9237    postinstall_cmds='base_file=`basename \${file}`~
9238      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9239      dldir=$destdir/`dirname \$dlpath`~
9240      test -d \$dldir || mkdir -p \$dldir~
9241      $install_prog $dir/$dlname \$dldir/$dlname~
9242      chmod a+x \$dldir/$dlname'
9243    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9244      dlpath=$dir/\$dldll~
9245       $rm \$dlpath'
9246    shlibpath_overrides_runpath=yes
9247
9248    case $host_os in
9249    cygwin*)
9250      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9251      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9252      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9253      ;;
9254    mingw*)
9255      # MinGW DLLs use traditional 'lib' prefix
9256      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9257      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9258      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9259        # It is most probably a Windows format PATH printed by
9260        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9261        # path with ; separators, and with drive letters. We can handle the
9262        # drive letters (cygwin fileutils understands them), so leave them,
9263        # especially as we might pass files found there to a mingw objdump,
9264        # which wouldn't understand a cygwinified path. Ahh.
9265        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9266      else
9267        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9268      fi
9269      ;;
9270    pw32*)
9271      # pw32 DLLs use 'pw' prefix rather than 'lib'
9272      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9273      ;;
9274    esac
9275    ;;
9276
9277  *)
9278    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9279    ;;
9280  esac
9281  dynamic_linker='Win32 ld.exe'
9282  # FIXME: first we should search . and the directory the executable is in
9283  shlibpath_var=PATH
9284  ;;
9285
9286darwin* | rhapsody*)
9287  dynamic_linker="$host_os dyld"
9288  version_type=darwin
9289  need_lib_prefix=no
9290  need_version=no
9291  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9292  soname_spec='${libname}${release}${major}$shared_ext'
9293  shlibpath_overrides_runpath=yes
9294  shlibpath_var=DYLD_LIBRARY_PATH
9295  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9296
9297  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9298  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9299  ;;
9300
9301dgux*)
9302  version_type=linux
9303  need_lib_prefix=no
9304  need_version=no
9305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9306  soname_spec='${libname}${release}${shared_ext}$major'
9307  shlibpath_var=LD_LIBRARY_PATH
9308  ;;
9309
9310freebsd1*)
9311  dynamic_linker=no
9312  ;;
9313
9314freebsd* | dragonfly*)
9315  # DragonFly does not have aout.  When/if they implement a new
9316  # versioning mechanism, adjust this.
9317  if test -x /usr/bin/objformat; then
9318    objformat=`/usr/bin/objformat`
9319  else
9320    case $host_os in
9321    freebsd[123]*) objformat=aout ;;
9322    *) objformat=elf ;;
9323    esac
9324  fi
9325  version_type=freebsd-$objformat
9326  case $version_type in
9327    freebsd-elf*)
9328      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9329      need_version=no
9330      need_lib_prefix=no
9331      ;;
9332    freebsd-*)
9333      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9334      need_version=yes
9335      ;;
9336  esac
9337  shlibpath_var=LD_LIBRARY_PATH
9338  case $host_os in
9339  freebsd2*)
9340    shlibpath_overrides_runpath=yes
9341    ;;
9342  freebsd3.[01]* | freebsdelf3.[01]*)
9343    shlibpath_overrides_runpath=yes
9344    hardcode_into_libs=yes
9345    ;;
9346  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9347  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9348    shlibpath_overrides_runpath=no
9349    hardcode_into_libs=yes
9350    ;;
9351  *) # from 4.6 on, and DragonFly
9352    shlibpath_overrides_runpath=yes
9353    hardcode_into_libs=yes
9354    ;;
9355  esac
9356  ;;
9357
9358gnu*)
9359  version_type=linux
9360  need_lib_prefix=no
9361  need_version=no
9362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9363  soname_spec='${libname}${release}${shared_ext}$major'
9364  shlibpath_var=LD_LIBRARY_PATH
9365  hardcode_into_libs=yes
9366  ;;
9367
9368hpux9* | hpux10* | hpux11*)
9369  # Give a soname corresponding to the major version so that dld.sl refuses to
9370  # link against other versions.
9371  version_type=sunos
9372  need_lib_prefix=no
9373  need_version=no
9374  case $host_cpu in
9375  ia64*)
9376    shrext_cmds='.so'
9377    hardcode_into_libs=yes
9378    dynamic_linker="$host_os dld.so"
9379    shlibpath_var=LD_LIBRARY_PATH
9380    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9381    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382    soname_spec='${libname}${release}${shared_ext}$major'
9383    if test "X$HPUX_IA64_MODE" = X32; then
9384      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9385    else
9386      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9387    fi
9388    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9389    ;;
9390   hppa*64*)
9391     shrext_cmds='.sl'
9392     hardcode_into_libs=yes
9393     dynamic_linker="$host_os dld.sl"
9394     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9395     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9396     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9397     soname_spec='${libname}${release}${shared_ext}$major'
9398     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9399     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9400     ;;
9401   *)
9402    shrext_cmds='.sl'
9403    dynamic_linker="$host_os dld.sl"
9404    shlibpath_var=SHLIB_PATH
9405    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9406    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9407    soname_spec='${libname}${release}${shared_ext}$major'
9408    ;;
9409  esac
9410  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9411  postinstall_cmds='chmod 555 $lib'
9412  ;;
9413
9414interix[3-9]*)
9415  version_type=linux
9416  need_lib_prefix=no
9417  need_version=no
9418  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9419  soname_spec='${libname}${release}${shared_ext}$major'
9420  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9421  shlibpath_var=LD_LIBRARY_PATH
9422  shlibpath_overrides_runpath=no
9423  hardcode_into_libs=yes
9424  ;;
9425
9426irix5* | irix6* | nonstopux*)
9427  case $host_os in
9428    nonstopux*) version_type=nonstopux ;;
9429    *)
9430	if test "$lt_cv_prog_gnu_ld" = yes; then
9431		version_type=linux
9432	else
9433		version_type=irix
9434	fi ;;
9435  esac
9436  need_lib_prefix=no
9437  need_version=no
9438  soname_spec='${libname}${release}${shared_ext}$major'
9439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9440  case $host_os in
9441  irix5* | nonstopux*)
9442    libsuff= shlibsuff=
9443    ;;
9444  *)
9445    case $LD in # libtool.m4 will add one of these switches to LD
9446    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9447      libsuff= shlibsuff= libmagic=32-bit;;
9448    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9449      libsuff=32 shlibsuff=N32 libmagic=N32;;
9450    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9451      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9452    *) libsuff= shlibsuff= libmagic=never-match;;
9453    esac
9454    ;;
9455  esac
9456  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9457  shlibpath_overrides_runpath=no
9458  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9459  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9460  hardcode_into_libs=yes
9461  ;;
9462
9463# No shared lib support for Linux oldld, aout, or coff.
9464linux*oldld* | linux*aout* | linux*coff*)
9465  dynamic_linker=no
9466  ;;
9467
9468# This must be Linux ELF.
9469linux* | k*bsd*-gnu)
9470  version_type=linux
9471  need_lib_prefix=no
9472  need_version=no
9473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474  soname_spec='${libname}${release}${shared_ext}$major'
9475  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9476  shlibpath_var=LD_LIBRARY_PATH
9477  shlibpath_overrides_runpath=no
9478  # This implies no fast_install, which is unacceptable.
9479  # Some rework will be needed to allow for fast_install
9480  # before this can be enabled.
9481  hardcode_into_libs=yes
9482  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9483  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9484
9485  # Append ld.so.conf contents to the search path
9486  if test -f /etc/ld.so.conf; then
9487    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' ' '`
9488    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9489  fi
9490
9491  # We used to test for /lib/ld.so.1 and disable shared libraries on
9492  # powerpc, because MkLinux only supported shared libraries with the
9493  # GNU dynamic linker.  Since this was broken with cross compilers,
9494  # most powerpc-linux boxes support dynamic linking these days and
9495  # people can always --disable-shared, the test was removed, and we
9496  # assume the GNU/Linux dynamic linker is in use.
9497  dynamic_linker='GNU/Linux ld.so'
9498  ;;
9499
9500netbsd*)
9501  version_type=sunos
9502  need_lib_prefix=no
9503  need_version=no
9504  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9505    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9506    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9507    dynamic_linker='NetBSD (a.out) ld.so'
9508  else
9509    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9510    soname_spec='${libname}${release}${shared_ext}$major'
9511    dynamic_linker='NetBSD ld.elf_so'
9512  fi
9513  shlibpath_var=LD_LIBRARY_PATH
9514  shlibpath_overrides_runpath=yes
9515  hardcode_into_libs=yes
9516  ;;
9517
9518newsos6)
9519  version_type=linux
9520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521  shlibpath_var=LD_LIBRARY_PATH
9522  shlibpath_overrides_runpath=yes
9523  ;;
9524
9525nto-qnx*)
9526  version_type=linux
9527  need_lib_prefix=no
9528  need_version=no
9529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9530  soname_spec='${libname}${release}${shared_ext}$major'
9531  shlibpath_var=LD_LIBRARY_PATH
9532  shlibpath_overrides_runpath=yes
9533  ;;
9534
9535openbsd*)
9536  version_type=sunos
9537  sys_lib_dlsearch_path_spec="/usr/lib"
9538  need_lib_prefix=no
9539  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9540  case $host_os in
9541    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9542    *)                         need_version=no  ;;
9543  esac
9544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9545  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9546  shlibpath_var=LD_LIBRARY_PATH
9547  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9548    case $host_os in
9549      openbsd2.[89] | openbsd2.[89].*)
9550	shlibpath_overrides_runpath=no
9551	;;
9552      *)
9553	shlibpath_overrides_runpath=yes
9554	;;
9555      esac
9556  else
9557    shlibpath_overrides_runpath=yes
9558  fi
9559  ;;
9560
9561os2*)
9562  libname_spec='$name'
9563  shrext_cmds=".dll"
9564  need_lib_prefix=no
9565  library_names_spec='$libname${shared_ext} $libname.a'
9566  dynamic_linker='OS/2 ld.exe'
9567  shlibpath_var=LIBPATH
9568  ;;
9569
9570osf3* | osf4* | osf5*)
9571  version_type=osf
9572  need_lib_prefix=no
9573  need_version=no
9574  soname_spec='${libname}${release}${shared_ext}$major'
9575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576  shlibpath_var=LD_LIBRARY_PATH
9577  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9578  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9579  ;;
9580
9581rdos*)
9582  dynamic_linker=no
9583  ;;
9584
9585solaris*)
9586  version_type=linux
9587  need_lib_prefix=no
9588  need_version=no
9589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9590  soname_spec='${libname}${release}${shared_ext}$major'
9591  shlibpath_var=LD_LIBRARY_PATH
9592  shlibpath_overrides_runpath=yes
9593  hardcode_into_libs=yes
9594  # ldd complains unless libraries are executable
9595  postinstall_cmds='chmod +x $lib'
9596  ;;
9597
9598sunos4*)
9599  version_type=sunos
9600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9601  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9602  shlibpath_var=LD_LIBRARY_PATH
9603  shlibpath_overrides_runpath=yes
9604  if test "$with_gnu_ld" = yes; then
9605    need_lib_prefix=no
9606  fi
9607  need_version=yes
9608  ;;
9609
9610sysv4 | sysv4.3*)
9611  version_type=linux
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  case $host_vendor in
9616    sni)
9617      shlibpath_overrides_runpath=no
9618      need_lib_prefix=no
9619      export_dynamic_flag_spec='${wl}-Blargedynsym'
9620      runpath_var=LD_RUN_PATH
9621      ;;
9622    siemens)
9623      need_lib_prefix=no
9624      ;;
9625    motorola)
9626      need_lib_prefix=no
9627      need_version=no
9628      shlibpath_overrides_runpath=no
9629      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9630      ;;
9631  esac
9632  ;;
9633
9634sysv4*MP*)
9635  if test -d /usr/nec ;then
9636    version_type=linux
9637    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9638    soname_spec='$libname${shared_ext}.$major'
9639    shlibpath_var=LD_LIBRARY_PATH
9640  fi
9641  ;;
9642
9643sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9644  version_type=freebsd-elf
9645  need_lib_prefix=no
9646  need_version=no
9647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9648  soname_spec='${libname}${release}${shared_ext}$major'
9649  shlibpath_var=LD_LIBRARY_PATH
9650  hardcode_into_libs=yes
9651  if test "$with_gnu_ld" = yes; then
9652    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9653    shlibpath_overrides_runpath=no
9654  else
9655    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9656    shlibpath_overrides_runpath=yes
9657    case $host_os in
9658      sco3.2v5*)
9659        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9660	;;
9661    esac
9662  fi
9663  sys_lib_dlsearch_path_spec='/usr/lib'
9664  ;;
9665
9666uts4*)
9667  version_type=linux
9668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669  soname_spec='${libname}${release}${shared_ext}$major'
9670  shlibpath_var=LD_LIBRARY_PATH
9671  ;;
9672
9673*)
9674  dynamic_linker=no
9675  ;;
9676esac
9677{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9678$as_echo "$dynamic_linker" >&6; }
9679test "$dynamic_linker" = no && can_build_shared=no
9680
9681if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9682  $as_echo_n "(cached) " >&6
9683else
9684  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9685fi
9686
9687sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9688if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9689  $as_echo_n "(cached) " >&6
9690else
9691  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9692fi
9693
9694sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9695
9696variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9697if test "$GCC" = yes; then
9698  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9699fi
9700
9701{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9702$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9703hardcode_action=
9704if test -n "$hardcode_libdir_flag_spec" || \
9705   test -n "$runpath_var" || \
9706   test "X$hardcode_automatic" = "Xyes" ; then
9707
9708  # We can hardcode non-existant directories.
9709  if test "$hardcode_direct" != no &&
9710     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9711     # have to relink, otherwise we might link with an installed library
9712     # when we should be linking with a yet-to-be-installed one
9713     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9714     test "$hardcode_minus_L" != no; then
9715    # Linking always hardcodes the temporary library directory.
9716    hardcode_action=relink
9717  else
9718    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9719    hardcode_action=immediate
9720  fi
9721else
9722  # We cannot hardcode anything, or else we can only hardcode existing
9723  # directories.
9724  hardcode_action=unsupported
9725fi
9726{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9727$as_echo "$hardcode_action" >&6; }
9728
9729if test "$hardcode_action" = relink; then
9730  # Fast installation is not supported
9731  enable_fast_install=no
9732elif test "$shlibpath_overrides_runpath" = yes ||
9733     test "$enable_shared" = no; then
9734  # Fast installation is not necessary
9735  enable_fast_install=needless
9736fi
9737
9738striplib=
9739old_striplib=
9740{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9741$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9742if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9743  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9744  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9745  { $as_echo "$as_me:$LINENO: result: yes" >&5
9746$as_echo "yes" >&6; }
9747else
9748# FIXME - insert some real tests, host_os isn't really good enough
9749  case $host_os in
9750   darwin*)
9751       if test -n "$STRIP" ; then
9752         striplib="$STRIP -x"
9753         old_striplib="$STRIP -S"
9754         { $as_echo "$as_me:$LINENO: result: yes" >&5
9755$as_echo "yes" >&6; }
9756       else
9757  { $as_echo "$as_me:$LINENO: result: no" >&5
9758$as_echo "no" >&6; }
9759fi
9760       ;;
9761   *)
9762  { $as_echo "$as_me:$LINENO: result: no" >&5
9763$as_echo "no" >&6; }
9764    ;;
9765  esac
9766fi
9767
9768if test "x$enable_dlopen" != xyes; then
9769  enable_dlopen=unknown
9770  enable_dlopen_self=unknown
9771  enable_dlopen_self_static=unknown
9772else
9773  lt_cv_dlopen=no
9774  lt_cv_dlopen_libs=
9775
9776  case $host_os in
9777  beos*)
9778    lt_cv_dlopen="load_add_on"
9779    lt_cv_dlopen_libs=
9780    lt_cv_dlopen_self=yes
9781    ;;
9782
9783  mingw* | pw32*)
9784    lt_cv_dlopen="LoadLibrary"
9785    lt_cv_dlopen_libs=
9786   ;;
9787
9788  cygwin*)
9789    lt_cv_dlopen="dlopen"
9790    lt_cv_dlopen_libs=
9791   ;;
9792
9793  darwin*)
9794  # if libdl is installed we need to link against it
9795    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9796$as_echo_n "checking for dlopen in -ldl... " >&6; }
9797if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9798  $as_echo_n "(cached) " >&6
9799else
9800  ac_check_lib_save_LIBS=$LIBS
9801LIBS="-ldl  $LIBS"
9802cat >conftest.$ac_ext <<_ACEOF
9803/* confdefs.h.  */
9804_ACEOF
9805cat confdefs.h >>conftest.$ac_ext
9806cat >>conftest.$ac_ext <<_ACEOF
9807/* end confdefs.h.  */
9808
9809/* Override any GCC internal prototype to avoid an error.
9810   Use char because int might match the return type of a GCC
9811   builtin and then its argument prototype would still apply.  */
9812#ifdef __cplusplus
9813extern "C"
9814#endif
9815char dlopen ();
9816int
9817main ()
9818{
9819return dlopen ();
9820  ;
9821  return 0;
9822}
9823_ACEOF
9824rm -f conftest.$ac_objext conftest$ac_exeext
9825if { (ac_try="$ac_link"
9826case "(($ac_try" in
9827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828  *) ac_try_echo=$ac_try;;
9829esac
9830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9831$as_echo "$ac_try_echo") >&5
9832  (eval "$ac_link") 2>conftest.er1
9833  ac_status=$?
9834  grep -v '^ *+' conftest.er1 >conftest.err
9835  rm -f conftest.er1
9836  cat conftest.err >&5
9837  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838  (exit $ac_status); } && {
9839	 test -z "$ac_c_werror_flag" ||
9840	 test ! -s conftest.err
9841       } && test -s conftest$ac_exeext && {
9842	 test "$cross_compiling" = yes ||
9843	 $as_test_x conftest$ac_exeext
9844       }; then
9845  ac_cv_lib_dl_dlopen=yes
9846else
9847  $as_echo "$as_me: failed program was:" >&5
9848sed 's/^/| /' conftest.$ac_ext >&5
9849
9850	ac_cv_lib_dl_dlopen=no
9851fi
9852
9853rm -rf conftest.dSYM
9854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9855      conftest$ac_exeext conftest.$ac_ext
9856LIBS=$ac_check_lib_save_LIBS
9857fi
9858{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9859$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9860if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9861  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9862else
9863
9864    lt_cv_dlopen="dyld"
9865    lt_cv_dlopen_libs=
9866    lt_cv_dlopen_self=yes
9867
9868fi
9869
9870   ;;
9871
9872  *)
9873    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9874$as_echo_n "checking for shl_load... " >&6; }
9875if test "${ac_cv_func_shl_load+set}" = set; then
9876  $as_echo_n "(cached) " >&6
9877else
9878  cat >conftest.$ac_ext <<_ACEOF
9879/* confdefs.h.  */
9880_ACEOF
9881cat confdefs.h >>conftest.$ac_ext
9882cat >>conftest.$ac_ext <<_ACEOF
9883/* end confdefs.h.  */
9884/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9885   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9886#define shl_load innocuous_shl_load
9887
9888/* System header to define __stub macros and hopefully few prototypes,
9889    which can conflict with char shl_load (); below.
9890    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9891    <limits.h> exists even on freestanding compilers.  */
9892
9893#ifdef __STDC__
9894# include <limits.h>
9895#else
9896# include <assert.h>
9897#endif
9898
9899#undef shl_load
9900
9901/* Override any GCC internal prototype to avoid an error.
9902   Use char because int might match the return type of a GCC
9903   builtin and then its argument prototype would still apply.  */
9904#ifdef __cplusplus
9905extern "C"
9906#endif
9907char shl_load ();
9908/* The GNU C library defines this for functions which it implements
9909    to always fail with ENOSYS.  Some functions are actually named
9910    something starting with __ and the normal name is an alias.  */
9911#if defined __stub_shl_load || defined __stub___shl_load
9912choke me
9913#endif
9914
9915int
9916main ()
9917{
9918return shl_load ();
9919  ;
9920  return 0;
9921}
9922_ACEOF
9923rm -f conftest.$ac_objext conftest$ac_exeext
9924if { (ac_try="$ac_link"
9925case "(($ac_try" in
9926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927  *) ac_try_echo=$ac_try;;
9928esac
9929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9930$as_echo "$ac_try_echo") >&5
9931  (eval "$ac_link") 2>conftest.er1
9932  ac_status=$?
9933  grep -v '^ *+' conftest.er1 >conftest.err
9934  rm -f conftest.er1
9935  cat conftest.err >&5
9936  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937  (exit $ac_status); } && {
9938	 test -z "$ac_c_werror_flag" ||
9939	 test ! -s conftest.err
9940       } && test -s conftest$ac_exeext && {
9941	 test "$cross_compiling" = yes ||
9942	 $as_test_x conftest$ac_exeext
9943       }; then
9944  ac_cv_func_shl_load=yes
9945else
9946  $as_echo "$as_me: failed program was:" >&5
9947sed 's/^/| /' conftest.$ac_ext >&5
9948
9949	ac_cv_func_shl_load=no
9950fi
9951
9952rm -rf conftest.dSYM
9953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9954      conftest$ac_exeext conftest.$ac_ext
9955fi
9956{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9957$as_echo "$ac_cv_func_shl_load" >&6; }
9958if test "x$ac_cv_func_shl_load" = x""yes; then
9959  lt_cv_dlopen="shl_load"
9960else
9961  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9962$as_echo_n "checking for shl_load in -ldld... " >&6; }
9963if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9964  $as_echo_n "(cached) " >&6
9965else
9966  ac_check_lib_save_LIBS=$LIBS
9967LIBS="-ldld  $LIBS"
9968cat >conftest.$ac_ext <<_ACEOF
9969/* confdefs.h.  */
9970_ACEOF
9971cat confdefs.h >>conftest.$ac_ext
9972cat >>conftest.$ac_ext <<_ACEOF
9973/* end confdefs.h.  */
9974
9975/* Override any GCC internal prototype to avoid an error.
9976   Use char because int might match the return type of a GCC
9977   builtin and then its argument prototype would still apply.  */
9978#ifdef __cplusplus
9979extern "C"
9980#endif
9981char shl_load ();
9982int
9983main ()
9984{
9985return shl_load ();
9986  ;
9987  return 0;
9988}
9989_ACEOF
9990rm -f conftest.$ac_objext conftest$ac_exeext
9991if { (ac_try="$ac_link"
9992case "(($ac_try" in
9993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994  *) ac_try_echo=$ac_try;;
9995esac
9996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9997$as_echo "$ac_try_echo") >&5
9998  (eval "$ac_link") 2>conftest.er1
9999  ac_status=$?
10000  grep -v '^ *+' conftest.er1 >conftest.err
10001  rm -f conftest.er1
10002  cat conftest.err >&5
10003  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004  (exit $ac_status); } && {
10005	 test -z "$ac_c_werror_flag" ||
10006	 test ! -s conftest.err
10007       } && test -s conftest$ac_exeext && {
10008	 test "$cross_compiling" = yes ||
10009	 $as_test_x conftest$ac_exeext
10010       }; then
10011  ac_cv_lib_dld_shl_load=yes
10012else
10013  $as_echo "$as_me: failed program was:" >&5
10014sed 's/^/| /' conftest.$ac_ext >&5
10015
10016	ac_cv_lib_dld_shl_load=no
10017fi
10018
10019rm -rf conftest.dSYM
10020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10021      conftest$ac_exeext conftest.$ac_ext
10022LIBS=$ac_check_lib_save_LIBS
10023fi
10024{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10025$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10026if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10027  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10028else
10029  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10030$as_echo_n "checking for dlopen... " >&6; }
10031if test "${ac_cv_func_dlopen+set}" = set; then
10032  $as_echo_n "(cached) " >&6
10033else
10034  cat >conftest.$ac_ext <<_ACEOF
10035/* confdefs.h.  */
10036_ACEOF
10037cat confdefs.h >>conftest.$ac_ext
10038cat >>conftest.$ac_ext <<_ACEOF
10039/* end confdefs.h.  */
10040/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10041   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10042#define dlopen innocuous_dlopen
10043
10044/* System header to define __stub macros and hopefully few prototypes,
10045    which can conflict with char dlopen (); below.
10046    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10047    <limits.h> exists even on freestanding compilers.  */
10048
10049#ifdef __STDC__
10050# include <limits.h>
10051#else
10052# include <assert.h>
10053#endif
10054
10055#undef dlopen
10056
10057/* Override any GCC internal prototype to avoid an error.
10058   Use char because int might match the return type of a GCC
10059   builtin and then its argument prototype would still apply.  */
10060#ifdef __cplusplus
10061extern "C"
10062#endif
10063char dlopen ();
10064/* The GNU C library defines this for functions which it implements
10065    to always fail with ENOSYS.  Some functions are actually named
10066    something starting with __ and the normal name is an alias.  */
10067#if defined __stub_dlopen || defined __stub___dlopen
10068choke me
10069#endif
10070
10071int
10072main ()
10073{
10074return dlopen ();
10075  ;
10076  return 0;
10077}
10078_ACEOF
10079rm -f conftest.$ac_objext conftest$ac_exeext
10080if { (ac_try="$ac_link"
10081case "(($ac_try" in
10082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083  *) ac_try_echo=$ac_try;;
10084esac
10085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10086$as_echo "$ac_try_echo") >&5
10087  (eval "$ac_link") 2>conftest.er1
10088  ac_status=$?
10089  grep -v '^ *+' conftest.er1 >conftest.err
10090  rm -f conftest.er1
10091  cat conftest.err >&5
10092  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093  (exit $ac_status); } && {
10094	 test -z "$ac_c_werror_flag" ||
10095	 test ! -s conftest.err
10096       } && test -s conftest$ac_exeext && {
10097	 test "$cross_compiling" = yes ||
10098	 $as_test_x conftest$ac_exeext
10099       }; then
10100  ac_cv_func_dlopen=yes
10101else
10102  $as_echo "$as_me: failed program was:" >&5
10103sed 's/^/| /' conftest.$ac_ext >&5
10104
10105	ac_cv_func_dlopen=no
10106fi
10107
10108rm -rf conftest.dSYM
10109rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10110      conftest$ac_exeext conftest.$ac_ext
10111fi
10112{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10113$as_echo "$ac_cv_func_dlopen" >&6; }
10114if test "x$ac_cv_func_dlopen" = x""yes; then
10115  lt_cv_dlopen="dlopen"
10116else
10117  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10118$as_echo_n "checking for dlopen in -ldl... " >&6; }
10119if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10120  $as_echo_n "(cached) " >&6
10121else
10122  ac_check_lib_save_LIBS=$LIBS
10123LIBS="-ldl  $LIBS"
10124cat >conftest.$ac_ext <<_ACEOF
10125/* confdefs.h.  */
10126_ACEOF
10127cat confdefs.h >>conftest.$ac_ext
10128cat >>conftest.$ac_ext <<_ACEOF
10129/* end confdefs.h.  */
10130
10131/* Override any GCC internal prototype to avoid an error.
10132   Use char because int might match the return type of a GCC
10133   builtin and then its argument prototype would still apply.  */
10134#ifdef __cplusplus
10135extern "C"
10136#endif
10137char dlopen ();
10138int
10139main ()
10140{
10141return dlopen ();
10142  ;
10143  return 0;
10144}
10145_ACEOF
10146rm -f conftest.$ac_objext conftest$ac_exeext
10147if { (ac_try="$ac_link"
10148case "(($ac_try" in
10149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150  *) ac_try_echo=$ac_try;;
10151esac
10152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10153$as_echo "$ac_try_echo") >&5
10154  (eval "$ac_link") 2>conftest.er1
10155  ac_status=$?
10156  grep -v '^ *+' conftest.er1 >conftest.err
10157  rm -f conftest.er1
10158  cat conftest.err >&5
10159  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160  (exit $ac_status); } && {
10161	 test -z "$ac_c_werror_flag" ||
10162	 test ! -s conftest.err
10163       } && test -s conftest$ac_exeext && {
10164	 test "$cross_compiling" = yes ||
10165	 $as_test_x conftest$ac_exeext
10166       }; then
10167  ac_cv_lib_dl_dlopen=yes
10168else
10169  $as_echo "$as_me: failed program was:" >&5
10170sed 's/^/| /' conftest.$ac_ext >&5
10171
10172	ac_cv_lib_dl_dlopen=no
10173fi
10174
10175rm -rf conftest.dSYM
10176rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10177      conftest$ac_exeext conftest.$ac_ext
10178LIBS=$ac_check_lib_save_LIBS
10179fi
10180{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10181$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10182if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10183  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10184else
10185  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10186$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10187if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10188  $as_echo_n "(cached) " >&6
10189else
10190  ac_check_lib_save_LIBS=$LIBS
10191LIBS="-lsvld  $LIBS"
10192cat >conftest.$ac_ext <<_ACEOF
10193/* confdefs.h.  */
10194_ACEOF
10195cat confdefs.h >>conftest.$ac_ext
10196cat >>conftest.$ac_ext <<_ACEOF
10197/* end confdefs.h.  */
10198
10199/* Override any GCC internal prototype to avoid an error.
10200   Use char because int might match the return type of a GCC
10201   builtin and then its argument prototype would still apply.  */
10202#ifdef __cplusplus
10203extern "C"
10204#endif
10205char dlopen ();
10206int
10207main ()
10208{
10209return dlopen ();
10210  ;
10211  return 0;
10212}
10213_ACEOF
10214rm -f conftest.$ac_objext conftest$ac_exeext
10215if { (ac_try="$ac_link"
10216case "(($ac_try" in
10217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218  *) ac_try_echo=$ac_try;;
10219esac
10220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10221$as_echo "$ac_try_echo") >&5
10222  (eval "$ac_link") 2>conftest.er1
10223  ac_status=$?
10224  grep -v '^ *+' conftest.er1 >conftest.err
10225  rm -f conftest.er1
10226  cat conftest.err >&5
10227  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228  (exit $ac_status); } && {
10229	 test -z "$ac_c_werror_flag" ||
10230	 test ! -s conftest.err
10231       } && test -s conftest$ac_exeext && {
10232	 test "$cross_compiling" = yes ||
10233	 $as_test_x conftest$ac_exeext
10234       }; then
10235  ac_cv_lib_svld_dlopen=yes
10236else
10237  $as_echo "$as_me: failed program was:" >&5
10238sed 's/^/| /' conftest.$ac_ext >&5
10239
10240	ac_cv_lib_svld_dlopen=no
10241fi
10242
10243rm -rf conftest.dSYM
10244rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10245      conftest$ac_exeext conftest.$ac_ext
10246LIBS=$ac_check_lib_save_LIBS
10247fi
10248{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10249$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10250if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10251  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10252else
10253  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10254$as_echo_n "checking for dld_link in -ldld... " >&6; }
10255if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10256  $as_echo_n "(cached) " >&6
10257else
10258  ac_check_lib_save_LIBS=$LIBS
10259LIBS="-ldld  $LIBS"
10260cat >conftest.$ac_ext <<_ACEOF
10261/* confdefs.h.  */
10262_ACEOF
10263cat confdefs.h >>conftest.$ac_ext
10264cat >>conftest.$ac_ext <<_ACEOF
10265/* end confdefs.h.  */
10266
10267/* Override any GCC internal prototype to avoid an error.
10268   Use char because int might match the return type of a GCC
10269   builtin and then its argument prototype would still apply.  */
10270#ifdef __cplusplus
10271extern "C"
10272#endif
10273char dld_link ();
10274int
10275main ()
10276{
10277return dld_link ();
10278  ;
10279  return 0;
10280}
10281_ACEOF
10282rm -f conftest.$ac_objext conftest$ac_exeext
10283if { (ac_try="$ac_link"
10284case "(($ac_try" in
10285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286  *) ac_try_echo=$ac_try;;
10287esac
10288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10289$as_echo "$ac_try_echo") >&5
10290  (eval "$ac_link") 2>conftest.er1
10291  ac_status=$?
10292  grep -v '^ *+' conftest.er1 >conftest.err
10293  rm -f conftest.er1
10294  cat conftest.err >&5
10295  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296  (exit $ac_status); } && {
10297	 test -z "$ac_c_werror_flag" ||
10298	 test ! -s conftest.err
10299       } && test -s conftest$ac_exeext && {
10300	 test "$cross_compiling" = yes ||
10301	 $as_test_x conftest$ac_exeext
10302       }; then
10303  ac_cv_lib_dld_dld_link=yes
10304else
10305  $as_echo "$as_me: failed program was:" >&5
10306sed 's/^/| /' conftest.$ac_ext >&5
10307
10308	ac_cv_lib_dld_dld_link=no
10309fi
10310
10311rm -rf conftest.dSYM
10312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10313      conftest$ac_exeext conftest.$ac_ext
10314LIBS=$ac_check_lib_save_LIBS
10315fi
10316{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10317$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10318if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10319  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10320fi
10321
10322
10323fi
10324
10325
10326fi
10327
10328
10329fi
10330
10331
10332fi
10333
10334
10335fi
10336
10337    ;;
10338  esac
10339
10340  if test "x$lt_cv_dlopen" != xno; then
10341    enable_dlopen=yes
10342  else
10343    enable_dlopen=no
10344  fi
10345
10346  case $lt_cv_dlopen in
10347  dlopen)
10348    save_CPPFLAGS="$CPPFLAGS"
10349    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10350
10351    save_LDFLAGS="$LDFLAGS"
10352    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10353
10354    save_LIBS="$LIBS"
10355    LIBS="$lt_cv_dlopen_libs $LIBS"
10356
10357    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10358$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10359if test "${lt_cv_dlopen_self+set}" = set; then
10360  $as_echo_n "(cached) " >&6
10361else
10362  	  if test "$cross_compiling" = yes; then :
10363  lt_cv_dlopen_self=cross
10364else
10365  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10366  lt_status=$lt_dlunknown
10367  cat > conftest.$ac_ext <<EOF
10368#line 10368 "configure"
10369#include "confdefs.h"
10370
10371#if HAVE_DLFCN_H
10372#include <dlfcn.h>
10373#endif
10374
10375#include <stdio.h>
10376
10377#ifdef RTLD_GLOBAL
10378#  define LT_DLGLOBAL		RTLD_GLOBAL
10379#else
10380#  ifdef DL_GLOBAL
10381#    define LT_DLGLOBAL		DL_GLOBAL
10382#  else
10383#    define LT_DLGLOBAL		0
10384#  endif
10385#endif
10386
10387/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10388   find out it does not work in some platform. */
10389#ifndef LT_DLLAZY_OR_NOW
10390#  ifdef RTLD_LAZY
10391#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10392#  else
10393#    ifdef DL_LAZY
10394#      define LT_DLLAZY_OR_NOW		DL_LAZY
10395#    else
10396#      ifdef RTLD_NOW
10397#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10398#      else
10399#        ifdef DL_NOW
10400#          define LT_DLLAZY_OR_NOW	DL_NOW
10401#        else
10402#          define LT_DLLAZY_OR_NOW	0
10403#        endif
10404#      endif
10405#    endif
10406#  endif
10407#endif
10408
10409#ifdef __cplusplus
10410extern "C" void exit (int);
10411#endif
10412
10413void fnord() { int i=42;}
10414int main ()
10415{
10416  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10417  int status = $lt_dlunknown;
10418
10419  if (self)
10420    {
10421      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10422      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10423      /* dlclose (self); */
10424    }
10425  else
10426    puts (dlerror ());
10427
10428    exit (status);
10429}
10430EOF
10431  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10432  (eval $ac_link) 2>&5
10433  ac_status=$?
10434  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10436    (./conftest; exit; ) >&5 2>/dev/null
10437    lt_status=$?
10438    case x$lt_status in
10439      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10440      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10441      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10442    esac
10443  else :
10444    # compilation failed
10445    lt_cv_dlopen_self=no
10446  fi
10447fi
10448rm -fr conftest*
10449
10450
10451fi
10452{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10453$as_echo "$lt_cv_dlopen_self" >&6; }
10454
10455    if test "x$lt_cv_dlopen_self" = xyes; then
10456      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10457      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10458$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10459if test "${lt_cv_dlopen_self_static+set}" = set; then
10460  $as_echo_n "(cached) " >&6
10461else
10462  	  if test "$cross_compiling" = yes; then :
10463  lt_cv_dlopen_self_static=cross
10464else
10465  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10466  lt_status=$lt_dlunknown
10467  cat > conftest.$ac_ext <<EOF
10468#line 10468 "configure"
10469#include "confdefs.h"
10470
10471#if HAVE_DLFCN_H
10472#include <dlfcn.h>
10473#endif
10474
10475#include <stdio.h>
10476
10477#ifdef RTLD_GLOBAL
10478#  define LT_DLGLOBAL		RTLD_GLOBAL
10479#else
10480#  ifdef DL_GLOBAL
10481#    define LT_DLGLOBAL		DL_GLOBAL
10482#  else
10483#    define LT_DLGLOBAL		0
10484#  endif
10485#endif
10486
10487/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10488   find out it does not work in some platform. */
10489#ifndef LT_DLLAZY_OR_NOW
10490#  ifdef RTLD_LAZY
10491#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10492#  else
10493#    ifdef DL_LAZY
10494#      define LT_DLLAZY_OR_NOW		DL_LAZY
10495#    else
10496#      ifdef RTLD_NOW
10497#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10498#      else
10499#        ifdef DL_NOW
10500#          define LT_DLLAZY_OR_NOW	DL_NOW
10501#        else
10502#          define LT_DLLAZY_OR_NOW	0
10503#        endif
10504#      endif
10505#    endif
10506#  endif
10507#endif
10508
10509#ifdef __cplusplus
10510extern "C" void exit (int);
10511#endif
10512
10513void fnord() { int i=42;}
10514int main ()
10515{
10516  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10517  int status = $lt_dlunknown;
10518
10519  if (self)
10520    {
10521      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10522      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10523      /* dlclose (self); */
10524    }
10525  else
10526    puts (dlerror ());
10527
10528    exit (status);
10529}
10530EOF
10531  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10532  (eval $ac_link) 2>&5
10533  ac_status=$?
10534  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10536    (./conftest; exit; ) >&5 2>/dev/null
10537    lt_status=$?
10538    case x$lt_status in
10539      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10540      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10541      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10542    esac
10543  else :
10544    # compilation failed
10545    lt_cv_dlopen_self_static=no
10546  fi
10547fi
10548rm -fr conftest*
10549
10550
10551fi
10552{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10553$as_echo "$lt_cv_dlopen_self_static" >&6; }
10554    fi
10555
10556    CPPFLAGS="$save_CPPFLAGS"
10557    LDFLAGS="$save_LDFLAGS"
10558    LIBS="$save_LIBS"
10559    ;;
10560  esac
10561
10562  case $lt_cv_dlopen_self in
10563  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10564  *) enable_dlopen_self=unknown ;;
10565  esac
10566
10567  case $lt_cv_dlopen_self_static in
10568  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10569  *) enable_dlopen_self_static=unknown ;;
10570  esac
10571fi
10572
10573
10574# Report which library types will actually be built
10575{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10576$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10577{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10578$as_echo "$can_build_shared" >&6; }
10579
10580{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10581$as_echo_n "checking whether to build shared libraries... " >&6; }
10582test "$can_build_shared" = "no" && enable_shared=no
10583
10584# On AIX, shared libraries and static libraries use the same namespace, and
10585# are all built from PIC.
10586case $host_os in
10587aix3*)
10588  test "$enable_shared" = yes && enable_static=no
10589  if test -n "$RANLIB"; then
10590    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10591    postinstall_cmds='$RANLIB $lib'
10592  fi
10593  ;;
10594
10595aix[4-9]*)
10596  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10597    test "$enable_shared" = yes && enable_static=no
10598  fi
10599    ;;
10600esac
10601{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10602$as_echo "$enable_shared" >&6; }
10603
10604{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10605$as_echo_n "checking whether to build static libraries... " >&6; }
10606# Make sure either enable_shared or enable_static is yes.
10607test "$enable_shared" = yes || enable_static=yes
10608{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10609$as_echo "$enable_static" >&6; }
10610
10611# The else clause should only fire when bootstrapping the
10612# libtool distribution, otherwise you forgot to ship ltmain.sh
10613# with your package, and you will get complaints that there are
10614# no rules to generate ltmain.sh.
10615if test -f "$ltmain"; then
10616  # See if we are running on zsh, and set the options which allow our commands through
10617  # without removal of \ escapes.
10618  if test -n "${ZSH_VERSION+set}" ; then
10619    setopt NO_GLOB_SUBST
10620  fi
10621  # Now quote all the things that may contain metacharacters while being
10622  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10623  # variables and quote the copies for generation of the libtool script.
10624  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10625    SED SHELL STRIP \
10626    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10627    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10628    deplibs_check_method reload_flag reload_cmds need_locks \
10629    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10630    lt_cv_sys_global_symbol_to_c_name_address \
10631    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10632    old_postinstall_cmds old_postuninstall_cmds \
10633    compiler \
10634    CC \
10635    LD \
10636    lt_prog_compiler_wl \
10637    lt_prog_compiler_pic \
10638    lt_prog_compiler_static \
10639    lt_prog_compiler_no_builtin_flag \
10640    export_dynamic_flag_spec \
10641    thread_safe_flag_spec \
10642    whole_archive_flag_spec \
10643    enable_shared_with_static_runtimes \
10644    old_archive_cmds \
10645    old_archive_from_new_cmds \
10646    predep_objects \
10647    postdep_objects \
10648    predeps \
10649    postdeps \
10650    compiler_lib_search_path \
10651    compiler_lib_search_dirs \
10652    archive_cmds \
10653    archive_expsym_cmds \
10654    postinstall_cmds \
10655    postuninstall_cmds \
10656    old_archive_from_expsyms_cmds \
10657    allow_undefined_flag \
10658    no_undefined_flag \
10659    export_symbols_cmds \
10660    hardcode_libdir_flag_spec \
10661    hardcode_libdir_flag_spec_ld \
10662    hardcode_libdir_separator \
10663    hardcode_automatic \
10664    module_cmds \
10665    module_expsym_cmds \
10666    lt_cv_prog_compiler_c_o \
10667    fix_srcfile_path \
10668    exclude_expsyms \
10669    include_expsyms; do
10670
10671    case $var in
10672    old_archive_cmds | \
10673    old_archive_from_new_cmds | \
10674    archive_cmds | \
10675    archive_expsym_cmds | \
10676    module_cmds | \
10677    module_expsym_cmds | \
10678    old_archive_from_expsyms_cmds | \
10679    export_symbols_cmds | \
10680    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10681    postinstall_cmds | postuninstall_cmds | \
10682    old_postinstall_cmds | old_postuninstall_cmds | \
10683    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10684      # Double-quote double-evaled strings.
10685      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10686      ;;
10687    *)
10688      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10689      ;;
10690    esac
10691  done
10692
10693  case $lt_echo in
10694  *'\$0 --fallback-echo"')
10695    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10696    ;;
10697  esac
10698
10699cfgfile="${ofile}T"
10700  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10701  $rm -f "$cfgfile"
10702  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10703$as_echo "$as_me: creating $ofile" >&6;}
10704
10705  cat <<__EOF__ >> "$cfgfile"
10706#! $SHELL
10707
10708# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10709# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10710# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10711#
10712# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10713# Free Software Foundation, Inc.
10714#
10715# This file is part of GNU Libtool:
10716# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10717#
10718# This program is free software; you can redistribute it and/or modify
10719# it under the terms of the GNU General Public License as published by
10720# the Free Software Foundation; either version 2 of the License, or
10721# (at your option) any later version.
10722#
10723# This program is distributed in the hope that it will be useful, but
10724# WITHOUT ANY WARRANTY; without even the implied warranty of
10725# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10726# General Public License for more details.
10727#
10728# You should have received a copy of the GNU General Public License
10729# along with this program; if not, write to the Free Software
10730# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10731#
10732# As a special exception to the GNU General Public License, if you
10733# distribute this file as part of a program that contains a
10734# configuration script generated by Autoconf, you may include it under
10735# the same distribution terms that you use for the rest of that program.
10736
10737# A sed program that does not truncate output.
10738SED=$lt_SED
10739
10740# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10741Xsed="$SED -e 1s/^X//"
10742
10743# The HP-UX ksh and POSIX shell print the target directory to stdout
10744# if CDPATH is set.
10745(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10746
10747# The names of the tagged configurations supported by this script.
10748available_tags=
10749
10750# ### BEGIN LIBTOOL CONFIG
10751
10752# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10753
10754# Shell to use when invoking shell scripts.
10755SHELL=$lt_SHELL
10756
10757# Whether or not to build shared libraries.
10758build_libtool_libs=$enable_shared
10759
10760# Whether or not to build static libraries.
10761build_old_libs=$enable_static
10762
10763# Whether or not to add -lc for building shared libraries.
10764build_libtool_need_lc=$archive_cmds_need_lc
10765
10766# Whether or not to disallow shared libs when runtime libs are static
10767allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10768
10769# Whether or not to optimize for fast installation.
10770fast_install=$enable_fast_install
10771
10772# The host system.
10773host_alias=$host_alias
10774host=$host
10775host_os=$host_os
10776
10777# The build system.
10778build_alias=$build_alias
10779build=$build
10780build_os=$build_os
10781
10782# An echo program that does not interpret backslashes.
10783echo=$lt_echo
10784
10785# The archiver.
10786AR=$lt_AR
10787AR_FLAGS=$lt_AR_FLAGS
10788
10789# A C compiler.
10790LTCC=$lt_LTCC
10791
10792# LTCC compiler flags.
10793LTCFLAGS=$lt_LTCFLAGS
10794
10795# A language-specific compiler.
10796CC=$lt_compiler
10797
10798# Is the compiler the GNU C compiler?
10799with_gcc=$GCC
10800
10801# An ERE matcher.
10802EGREP=$lt_EGREP
10803
10804# The linker used to build libraries.
10805LD=$lt_LD
10806
10807# Whether we need hard or soft links.
10808LN_S=$lt_LN_S
10809
10810# A BSD-compatible nm program.
10811NM=$lt_NM
10812
10813# A symbol stripping program
10814STRIP=$lt_STRIP
10815
10816# Used to examine libraries when file_magic_cmd begins "file"
10817MAGIC_CMD=$MAGIC_CMD
10818
10819# Used on cygwin: DLL creation program.
10820DLLTOOL="$DLLTOOL"
10821
10822# Used on cygwin: object dumper.
10823OBJDUMP="$OBJDUMP"
10824
10825# Used on cygwin: assembler.
10826AS="$AS"
10827
10828# The name of the directory that contains temporary libtool files.
10829objdir=$objdir
10830
10831# How to create reloadable object files.
10832reload_flag=$lt_reload_flag
10833reload_cmds=$lt_reload_cmds
10834
10835# How to pass a linker flag through the compiler.
10836wl=$lt_lt_prog_compiler_wl
10837
10838# Object file suffix (normally "o").
10839objext="$ac_objext"
10840
10841# Old archive suffix (normally "a").
10842libext="$libext"
10843
10844# Shared library suffix (normally ".so").
10845shrext_cmds='$shrext_cmds'
10846
10847# Executable file suffix (normally "").
10848exeext="$exeext"
10849
10850# Additional compiler flags for building library objects.
10851pic_flag=$lt_lt_prog_compiler_pic
10852pic_mode=$pic_mode
10853
10854# What is the maximum length of a command?
10855max_cmd_len=$lt_cv_sys_max_cmd_len
10856
10857# Does compiler simultaneously support -c and -o options?
10858compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10859
10860# Must we lock files when doing compilation?
10861need_locks=$lt_need_locks
10862
10863# Do we need the lib prefix for modules?
10864need_lib_prefix=$need_lib_prefix
10865
10866# Do we need a version for libraries?
10867need_version=$need_version
10868
10869# Whether dlopen is supported.
10870dlopen_support=$enable_dlopen
10871
10872# Whether dlopen of programs is supported.
10873dlopen_self=$enable_dlopen_self
10874
10875# Whether dlopen of statically linked programs is supported.
10876dlopen_self_static=$enable_dlopen_self_static
10877
10878# Compiler flag to prevent dynamic linking.
10879link_static_flag=$lt_lt_prog_compiler_static
10880
10881# Compiler flag to turn off builtin functions.
10882no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10883
10884# Compiler flag to allow reflexive dlopens.
10885export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10886
10887# Compiler flag to generate shared objects directly from archives.
10888whole_archive_flag_spec=$lt_whole_archive_flag_spec
10889
10890# Compiler flag to generate thread-safe objects.
10891thread_safe_flag_spec=$lt_thread_safe_flag_spec
10892
10893# Library versioning type.
10894version_type=$version_type
10895
10896# Format of library name prefix.
10897libname_spec=$lt_libname_spec
10898
10899# List of archive names.  First name is the real one, the rest are links.
10900# The last name is the one that the linker finds with -lNAME.
10901library_names_spec=$lt_library_names_spec
10902
10903# The coded name of the library, if different from the real name.
10904soname_spec=$lt_soname_spec
10905
10906# Commands used to build and install an old-style archive.
10907RANLIB=$lt_RANLIB
10908old_archive_cmds=$lt_old_archive_cmds
10909old_postinstall_cmds=$lt_old_postinstall_cmds
10910old_postuninstall_cmds=$lt_old_postuninstall_cmds
10911
10912# Create an old-style archive from a shared archive.
10913old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10914
10915# Create a temporary old-style archive to link instead of a shared archive.
10916old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10917
10918# Commands used to build and install a shared archive.
10919archive_cmds=$lt_archive_cmds
10920archive_expsym_cmds=$lt_archive_expsym_cmds
10921postinstall_cmds=$lt_postinstall_cmds
10922postuninstall_cmds=$lt_postuninstall_cmds
10923
10924# Commands used to build a loadable module (assumed same as above if empty)
10925module_cmds=$lt_module_cmds
10926module_expsym_cmds=$lt_module_expsym_cmds
10927
10928# Commands to strip libraries.
10929old_striplib=$lt_old_striplib
10930striplib=$lt_striplib
10931
10932# Dependencies to place before the objects being linked to create a
10933# shared library.
10934predep_objects=$lt_predep_objects
10935
10936# Dependencies to place after the objects being linked to create a
10937# shared library.
10938postdep_objects=$lt_postdep_objects
10939
10940# Dependencies to place before the objects being linked to create a
10941# shared library.
10942predeps=$lt_predeps
10943
10944# Dependencies to place after the objects being linked to create a
10945# shared library.
10946postdeps=$lt_postdeps
10947
10948# The directories searched by this compiler when creating a shared
10949# library
10950compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10951
10952# The library search path used internally by the compiler when linking
10953# a shared library.
10954compiler_lib_search_path=$lt_compiler_lib_search_path
10955
10956# Method to check whether dependent libraries are shared objects.
10957deplibs_check_method=$lt_deplibs_check_method
10958
10959# Command to use when deplibs_check_method == file_magic.
10960file_magic_cmd=$lt_file_magic_cmd
10961
10962# Flag that allows shared libraries with undefined symbols to be built.
10963allow_undefined_flag=$lt_allow_undefined_flag
10964
10965# Flag that forces no undefined symbols.
10966no_undefined_flag=$lt_no_undefined_flag
10967
10968# Commands used to finish a libtool library installation in a directory.
10969finish_cmds=$lt_finish_cmds
10970
10971# Same as above, but a single script fragment to be evaled but not shown.
10972finish_eval=$lt_finish_eval
10973
10974# Take the output of nm and produce a listing of raw symbols and C names.
10975global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10976
10977# Transform the output of nm in a proper C declaration
10978global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10979
10980# Transform the output of nm in a C name address pair
10981global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10982
10983# This is the shared library runtime path variable.
10984runpath_var=$runpath_var
10985
10986# This is the shared library path variable.
10987shlibpath_var=$shlibpath_var
10988
10989# Is shlibpath searched before the hard-coded library search path?
10990shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10991
10992# How to hardcode a shared library path into an executable.
10993hardcode_action=$hardcode_action
10994
10995# Whether we should hardcode library paths into libraries.
10996hardcode_into_libs=$hardcode_into_libs
10997
10998# Flag to hardcode \$libdir into a binary during linking.
10999# This must work even if \$libdir does not exist.
11000hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11001
11002# If ld is used when linking, flag to hardcode \$libdir into
11003# a binary during linking. This must work even if \$libdir does
11004# not exist.
11005hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11006
11007# Whether we need a single -rpath flag with a separated argument.
11008hardcode_libdir_separator=$lt_hardcode_libdir_separator
11009
11010# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11011# resulting binary.
11012hardcode_direct=$hardcode_direct
11013
11014# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11015# resulting binary.
11016hardcode_minus_L=$hardcode_minus_L
11017
11018# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11019# the resulting binary.
11020hardcode_shlibpath_var=$hardcode_shlibpath_var
11021
11022# Set to yes if building a shared library automatically hardcodes DIR into the library
11023# and all subsequent libraries and executables linked against it.
11024hardcode_automatic=$hardcode_automatic
11025
11026# Variables whose values should be saved in libtool wrapper scripts and
11027# restored at relink time.
11028variables_saved_for_relink="$variables_saved_for_relink"
11029
11030# Whether libtool must link a program against all its dependency libraries.
11031link_all_deplibs=$link_all_deplibs
11032
11033# Compile-time system search path for libraries
11034sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11035
11036# Run-time system search path for libraries
11037sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11038
11039# Fix the shell variable \$srcfile for the compiler.
11040fix_srcfile_path=$lt_fix_srcfile_path
11041
11042# Set to yes if exported symbols are required.
11043always_export_symbols=$always_export_symbols
11044
11045# The commands to list exported symbols.
11046export_symbols_cmds=$lt_export_symbols_cmds
11047
11048# The commands to extract the exported symbol list from a shared archive.
11049extract_expsyms_cmds=$lt_extract_expsyms_cmds
11050
11051# Symbols that should not be listed in the preloaded symbols.
11052exclude_expsyms=$lt_exclude_expsyms
11053
11054# Symbols that must always be exported.
11055include_expsyms=$lt_include_expsyms
11056
11057# ### END LIBTOOL CONFIG
11058
11059__EOF__
11060
11061
11062  case $host_os in
11063  aix3*)
11064    cat <<\EOF >> "$cfgfile"
11065
11066# AIX sometimes has problems with the GCC collect2 program.  For some
11067# reason, if we set the COLLECT_NAMES environment variable, the problems
11068# vanish in a puff of smoke.
11069if test "X${COLLECT_NAMES+set}" != Xset; then
11070  COLLECT_NAMES=
11071  export COLLECT_NAMES
11072fi
11073EOF
11074    ;;
11075  esac
11076
11077  # We use sed instead of cat because bash on DJGPP gets confused if
11078  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11079  # text mode, it properly converts lines to CR/LF.  This bash problem
11080  # is reportedly fixed, but why not run on old versions too?
11081  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11082
11083  mv -f "$cfgfile" "$ofile" || \
11084    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11085  chmod +x "$ofile"
11086
11087else
11088  # If there is no Makefile yet, we rely on a make rule to execute
11089  # `config.status --recheck' to rerun these tests and create the
11090  # libtool script then.
11091  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11092  if test -f "$ltmain_in"; then
11093    test -f Makefile && make "$ltmain"
11094  fi
11095fi
11096
11097
11098ac_ext=c
11099ac_cpp='$CPP $CPPFLAGS'
11100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11102ac_compiler_gnu=$ac_cv_c_compiler_gnu
11103
11104CC="$lt_save_CC"
11105
11106
11107# Check whether --with-tags was given.
11108if test "${with_tags+set}" = set; then
11109  withval=$with_tags; tagnames="$withval"
11110fi
11111
11112
11113if test -f "$ltmain" && test -n "$tagnames"; then
11114  if test ! -f "${ofile}"; then
11115    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11116$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11117  fi
11118
11119  if test -z "$LTCC"; then
11120    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11121    if test -z "$LTCC"; then
11122      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11123$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11124    else
11125      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11126$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11127    fi
11128  fi
11129  if test -z "$LTCFLAGS"; then
11130    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11131  fi
11132
11133  # Extract list of available tagged configurations in $ofile.
11134  # Note that this assumes the entire list is on one line.
11135  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11136
11137  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11138  for tagname in $tagnames; do
11139    IFS="$lt_save_ifs"
11140    # Check whether tagname contains only valid characters
11141    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11142    "") ;;
11143    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11144$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11145   { (exit 1); exit 1; }; }
11146	;;
11147    esac
11148
11149    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11150    then
11151      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11152$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11153   { (exit 1); exit 1; }; }
11154    fi
11155
11156    # Update the list of available tags.
11157    if test -n "$tagname"; then
11158      echo appending configuration tag \"$tagname\" to $ofile
11159
11160      case $tagname in
11161      CXX)
11162	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11163	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11164	    (test "X$CXX" != "Xg++"))) ; then
11165	  ac_ext=cpp
11166ac_cpp='$CXXCPP $CPPFLAGS'
11167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11170
11171
11172
11173
11174archive_cmds_need_lc_CXX=no
11175allow_undefined_flag_CXX=
11176always_export_symbols_CXX=no
11177archive_expsym_cmds_CXX=
11178export_dynamic_flag_spec_CXX=
11179hardcode_direct_CXX=no
11180hardcode_libdir_flag_spec_CXX=
11181hardcode_libdir_flag_spec_ld_CXX=
11182hardcode_libdir_separator_CXX=
11183hardcode_minus_L_CXX=no
11184hardcode_shlibpath_var_CXX=unsupported
11185hardcode_automatic_CXX=no
11186module_cmds_CXX=
11187module_expsym_cmds_CXX=
11188link_all_deplibs_CXX=unknown
11189old_archive_cmds_CXX=$old_archive_cmds
11190no_undefined_flag_CXX=
11191whole_archive_flag_spec_CXX=
11192enable_shared_with_static_runtimes_CXX=no
11193
11194# Dependencies to place before and after the object being linked:
11195predep_objects_CXX=
11196postdep_objects_CXX=
11197predeps_CXX=
11198postdeps_CXX=
11199compiler_lib_search_path_CXX=
11200compiler_lib_search_dirs_CXX=
11201
11202# Source file extension for C++ test sources.
11203ac_ext=cpp
11204
11205# Object file extension for compiled C++ test sources.
11206objext=o
11207objext_CXX=$objext
11208
11209# Code to be used in simple compile tests
11210lt_simple_compile_test_code="int some_variable = 0;"
11211
11212# Code to be used in simple link tests
11213lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11214
11215# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11216
11217# If no C compiler was specified, use CC.
11218LTCC=${LTCC-"$CC"}
11219
11220# If no C compiler flags were specified, use CFLAGS.
11221LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11222
11223# Allow CC to be a program name with arguments.
11224compiler=$CC
11225
11226
11227# save warnings/boilerplate of simple test code
11228ac_outfile=conftest.$ac_objext
11229echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11230eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11231_lt_compiler_boilerplate=`cat conftest.err`
11232$rm conftest*
11233
11234ac_outfile=conftest.$ac_objext
11235echo "$lt_simple_link_test_code" >conftest.$ac_ext
11236eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11237_lt_linker_boilerplate=`cat conftest.err`
11238$rm -r conftest*
11239
11240
11241# Allow CC to be a program name with arguments.
11242lt_save_CC=$CC
11243lt_save_LD=$LD
11244lt_save_GCC=$GCC
11245GCC=$GXX
11246lt_save_with_gnu_ld=$with_gnu_ld
11247lt_save_path_LD=$lt_cv_path_LD
11248if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11249  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11250else
11251  $as_unset lt_cv_prog_gnu_ld
11252fi
11253if test -n "${lt_cv_path_LDCXX+set}"; then
11254  lt_cv_path_LD=$lt_cv_path_LDCXX
11255else
11256  $as_unset lt_cv_path_LD
11257fi
11258test -z "${LDCXX+set}" || LD=$LDCXX
11259CC=${CXX-"c++"}
11260compiler=$CC
11261compiler_CXX=$CC
11262for cc_temp in $compiler""; do
11263  case $cc_temp in
11264    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11265    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11266    \-*) ;;
11267    *) break;;
11268  esac
11269done
11270cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11271
11272
11273# We don't want -fno-exception wen compiling C++ code, so set the
11274# no_builtin_flag separately
11275if test "$GXX" = yes; then
11276  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11277else
11278  lt_prog_compiler_no_builtin_flag_CXX=
11279fi
11280
11281if test "$GXX" = yes; then
11282  # Set up default GNU C++ configuration
11283
11284
11285# Check whether --with-gnu-ld was given.
11286if test "${with_gnu_ld+set}" = set; then
11287  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11288else
11289  with_gnu_ld=no
11290fi
11291
11292ac_prog=ld
11293if test "$GCC" = yes; then
11294  # Check if gcc -print-prog-name=ld gives a path.
11295  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11296$as_echo_n "checking for ld used by $CC... " >&6; }
11297  case $host in
11298  *-*-mingw*)
11299    # gcc leaves a trailing carriage return which upsets mingw
11300    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11301  *)
11302    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11303  esac
11304  case $ac_prog in
11305    # Accept absolute paths.
11306    [\\/]* | ?:[\\/]*)
11307      re_direlt='/[^/][^/]*/\.\./'
11308      # Canonicalize the pathname of ld
11309      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11310      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11311	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11312      done
11313      test -z "$LD" && LD="$ac_prog"
11314      ;;
11315  "")
11316    # If it fails, then pretend we aren't using GCC.
11317    ac_prog=ld
11318    ;;
11319  *)
11320    # If it is relative, then search for the first ld in PATH.
11321    with_gnu_ld=unknown
11322    ;;
11323  esac
11324elif test "$with_gnu_ld" = yes; then
11325  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11326$as_echo_n "checking for GNU ld... " >&6; }
11327else
11328  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11329$as_echo_n "checking for non-GNU ld... " >&6; }
11330fi
11331if test "${lt_cv_path_LD+set}" = set; then
11332  $as_echo_n "(cached) " >&6
11333else
11334  if test -z "$LD"; then
11335  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11336  for ac_dir in $PATH; do
11337    IFS="$lt_save_ifs"
11338    test -z "$ac_dir" && ac_dir=.
11339    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11340      lt_cv_path_LD="$ac_dir/$ac_prog"
11341      # Check to see if the program is GNU ld.  I'd rather use --version,
11342      # but apparently some variants of GNU ld only accept -v.
11343      # Break only if it was the GNU/non-GNU ld that we prefer.
11344      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11345      *GNU* | *'with BFD'*)
11346	test "$with_gnu_ld" != no && break
11347	;;
11348      *)
11349	test "$with_gnu_ld" != yes && break
11350	;;
11351      esac
11352    fi
11353  done
11354  IFS="$lt_save_ifs"
11355else
11356  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11357fi
11358fi
11359
11360LD="$lt_cv_path_LD"
11361if test -n "$LD"; then
11362  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11363$as_echo "$LD" >&6; }
11364else
11365  { $as_echo "$as_me:$LINENO: result: no" >&5
11366$as_echo "no" >&6; }
11367fi
11368test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11369$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11370   { (exit 1); exit 1; }; }
11371{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11372$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11373if test "${lt_cv_prog_gnu_ld+set}" = set; then
11374  $as_echo_n "(cached) " >&6
11375else
11376  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11377case `$LD -v 2>&1 </dev/null` in
11378*GNU* | *'with BFD'*)
11379  lt_cv_prog_gnu_ld=yes
11380  ;;
11381*)
11382  lt_cv_prog_gnu_ld=no
11383  ;;
11384esac
11385fi
11386{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11387$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11388with_gnu_ld=$lt_cv_prog_gnu_ld
11389
11390
11391
11392  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11393  # archiving commands below assume that GNU ld is being used.
11394  if test "$with_gnu_ld" = yes; then
11395    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11396    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'
11397
11398    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11399    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11400
11401    # If archive_cmds runs LD, not CC, wlarc should be empty
11402    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11403    #     investigate it a little bit more. (MM)
11404    wlarc='${wl}'
11405
11406    # ancient GNU ld didn't support --whole-archive et. al.
11407    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11408	grep 'no-whole-archive' > /dev/null; then
11409      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11410    else
11411      whole_archive_flag_spec_CXX=
11412    fi
11413  else
11414    with_gnu_ld=no
11415    wlarc=
11416
11417    # A generic and very simple default shared library creation
11418    # command for GNU C++ for the case where it uses the native
11419    # linker, instead of GNU ld.  If possible, this setting should
11420    # overridden to take advantage of the native linker features on
11421    # the platform it is being used on.
11422    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11423  fi
11424
11425  # Commands to make compiler produce verbose output that lists
11426  # what "hidden" libraries, object files and flags are used when
11427  # linking a shared library.
11428  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11429
11430else
11431  GXX=no
11432  with_gnu_ld=no
11433  wlarc=
11434fi
11435
11436# PORTME: fill in a description of your system's C++ link characteristics
11437{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11438$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11439ld_shlibs_CXX=yes
11440case $host_os in
11441  aix3*)
11442    # FIXME: insert proper C++ library support
11443    ld_shlibs_CXX=no
11444    ;;
11445  aix[4-9]*)
11446    if test "$host_cpu" = ia64; then
11447      # On IA64, the linker does run time linking by default, so we don't
11448      # have to do anything special.
11449      aix_use_runtimelinking=no
11450      exp_sym_flag='-Bexport'
11451      no_entry_flag=""
11452    else
11453      aix_use_runtimelinking=no
11454
11455      # Test if we are trying to use run time linking or normal
11456      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11457      # need to do runtime linking.
11458      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11459	for ld_flag in $LDFLAGS; do
11460	  case $ld_flag in
11461	  *-brtl*)
11462	    aix_use_runtimelinking=yes
11463	    break
11464	    ;;
11465	  esac
11466	done
11467	;;
11468      esac
11469
11470      exp_sym_flag='-bexport'
11471      no_entry_flag='-bnoentry'
11472    fi
11473
11474    # When large executables or shared objects are built, AIX ld can
11475    # have problems creating the table of contents.  If linking a library
11476    # or program results in "error TOC overflow" add -mminimal-toc to
11477    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11478    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11479
11480    archive_cmds_CXX=''
11481    hardcode_direct_CXX=yes
11482    hardcode_libdir_separator_CXX=':'
11483    link_all_deplibs_CXX=yes
11484
11485    if test "$GXX" = yes; then
11486      case $host_os in aix4.[012]|aix4.[012].*)
11487      # We only want to do this on AIX 4.2 and lower, the check
11488      # below for broken collect2 doesn't work under 4.3+
11489	collect2name=`${CC} -print-prog-name=collect2`
11490	if test -f "$collect2name" && \
11491	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11492	then
11493	  # We have reworked collect2
11494	  :
11495	else
11496	  # We have old collect2
11497	  hardcode_direct_CXX=unsupported
11498	  # It fails to find uninstalled libraries when the uninstalled
11499	  # path is not listed in the libpath.  Setting hardcode_minus_L
11500	  # to unsupported forces relinking
11501	  hardcode_minus_L_CXX=yes
11502	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11503	  hardcode_libdir_separator_CXX=
11504	fi
11505	;;
11506      esac
11507      shared_flag='-shared'
11508      if test "$aix_use_runtimelinking" = yes; then
11509	shared_flag="$shared_flag "'${wl}-G'
11510      fi
11511    else
11512      # not using gcc
11513      if test "$host_cpu" = ia64; then
11514	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11515	# chokes on -Wl,-G. The following line is correct:
11516	shared_flag='-G'
11517      else
11518	if test "$aix_use_runtimelinking" = yes; then
11519	  shared_flag='${wl}-G'
11520	else
11521	  shared_flag='${wl}-bM:SRE'
11522	fi
11523      fi
11524    fi
11525
11526    # It seems that -bexpall does not export symbols beginning with
11527    # underscore (_), so it is better to generate a list of symbols to export.
11528    always_export_symbols_CXX=yes
11529    if test "$aix_use_runtimelinking" = yes; then
11530      # Warning - without using the other runtime loading flags (-brtl),
11531      # -berok will link without error, but may produce a broken library.
11532      allow_undefined_flag_CXX='-berok'
11533      # Determine the default libpath from the value encoded in an empty executable.
11534      cat >conftest.$ac_ext <<_ACEOF
11535/* confdefs.h.  */
11536_ACEOF
11537cat confdefs.h >>conftest.$ac_ext
11538cat >>conftest.$ac_ext <<_ACEOF
11539/* end confdefs.h.  */
11540
11541int
11542main ()
11543{
11544
11545  ;
11546  return 0;
11547}
11548_ACEOF
11549rm -f conftest.$ac_objext conftest$ac_exeext
11550if { (ac_try="$ac_link"
11551case "(($ac_try" in
11552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553  *) ac_try_echo=$ac_try;;
11554esac
11555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11556$as_echo "$ac_try_echo") >&5
11557  (eval "$ac_link") 2>conftest.er1
11558  ac_status=$?
11559  grep -v '^ *+' conftest.er1 >conftest.err
11560  rm -f conftest.er1
11561  cat conftest.err >&5
11562  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563  (exit $ac_status); } && {
11564	 test -z "$ac_cxx_werror_flag" ||
11565	 test ! -s conftest.err
11566       } && test -s conftest$ac_exeext && {
11567	 test "$cross_compiling" = yes ||
11568	 $as_test_x conftest$ac_exeext
11569       }; then
11570
11571lt_aix_libpath_sed='
11572    /Import File Strings/,/^$/ {
11573	/^0/ {
11574	    s/^0  *\(.*\)$/\1/
11575	    p
11576	}
11577    }'
11578aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11579# Check for a 64-bit object if we didn't find anything.
11580if test -z "$aix_libpath"; then
11581  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11582fi
11583else
11584  $as_echo "$as_me: failed program was:" >&5
11585sed 's/^/| /' conftest.$ac_ext >&5
11586
11587
11588fi
11589
11590rm -rf conftest.dSYM
11591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11592      conftest$ac_exeext conftest.$ac_ext
11593if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11594
11595      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11596
11597      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"
11598     else
11599      if test "$host_cpu" = ia64; then
11600	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11601	allow_undefined_flag_CXX="-z nodefs"
11602	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"
11603      else
11604	# Determine the default libpath from the value encoded in an empty executable.
11605	cat >conftest.$ac_ext <<_ACEOF
11606/* confdefs.h.  */
11607_ACEOF
11608cat confdefs.h >>conftest.$ac_ext
11609cat >>conftest.$ac_ext <<_ACEOF
11610/* end confdefs.h.  */
11611
11612int
11613main ()
11614{
11615
11616  ;
11617  return 0;
11618}
11619_ACEOF
11620rm -f conftest.$ac_objext conftest$ac_exeext
11621if { (ac_try="$ac_link"
11622case "(($ac_try" in
11623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624  *) ac_try_echo=$ac_try;;
11625esac
11626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11627$as_echo "$ac_try_echo") >&5
11628  (eval "$ac_link") 2>conftest.er1
11629  ac_status=$?
11630  grep -v '^ *+' conftest.er1 >conftest.err
11631  rm -f conftest.er1
11632  cat conftest.err >&5
11633  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634  (exit $ac_status); } && {
11635	 test -z "$ac_cxx_werror_flag" ||
11636	 test ! -s conftest.err
11637       } && test -s conftest$ac_exeext && {
11638	 test "$cross_compiling" = yes ||
11639	 $as_test_x conftest$ac_exeext
11640       }; then
11641
11642lt_aix_libpath_sed='
11643    /Import File Strings/,/^$/ {
11644	/^0/ {
11645	    s/^0  *\(.*\)$/\1/
11646	    p
11647	}
11648    }'
11649aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11650# Check for a 64-bit object if we didn't find anything.
11651if test -z "$aix_libpath"; then
11652  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11653fi
11654else
11655  $as_echo "$as_me: failed program was:" >&5
11656sed 's/^/| /' conftest.$ac_ext >&5
11657
11658
11659fi
11660
11661rm -rf conftest.dSYM
11662rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11663      conftest$ac_exeext conftest.$ac_ext
11664if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11665
11666	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11667	# Warning - without using the other run time loading flags,
11668	# -berok will link without error, but may produce a broken library.
11669	no_undefined_flag_CXX=' ${wl}-bernotok'
11670	allow_undefined_flag_CXX=' ${wl}-berok'
11671	# Exported symbols can be pulled into shared objects from archives
11672	whole_archive_flag_spec_CXX='$convenience'
11673	archive_cmds_need_lc_CXX=yes
11674	# This is similar to how AIX traditionally builds its shared libraries.
11675	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'
11676      fi
11677    fi
11678    ;;
11679
11680  beos*)
11681    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11682      allow_undefined_flag_CXX=unsupported
11683      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11684      # support --undefined.  This deserves some investigation.  FIXME
11685      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11686    else
11687      ld_shlibs_CXX=no
11688    fi
11689    ;;
11690
11691  chorus*)
11692    case $cc_basename in
11693      *)
11694	# FIXME: insert proper C++ library support
11695	ld_shlibs_CXX=no
11696	;;
11697    esac
11698    ;;
11699
11700  cygwin* | mingw* | pw32*)
11701    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11702    # as there is no search path for DLLs.
11703    hardcode_libdir_flag_spec_CXX='-L$libdir'
11704    allow_undefined_flag_CXX=unsupported
11705    always_export_symbols_CXX=no
11706    enable_shared_with_static_runtimes_CXX=yes
11707
11708    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11709      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'
11710      # If the export-symbols file already is a .def file (1st line
11711      # is EXPORTS), use it as is; otherwise, prepend...
11712      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11713	cp $export_symbols $output_objdir/$soname.def;
11714      else
11715	echo EXPORTS > $output_objdir/$soname.def;
11716	cat $export_symbols >> $output_objdir/$soname.def;
11717      fi~
11718      $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'
11719    else
11720      ld_shlibs_CXX=no
11721    fi
11722  ;;
11723      darwin* | rhapsody*)
11724      archive_cmds_need_lc_CXX=no
11725      hardcode_direct_CXX=no
11726      hardcode_automatic_CXX=yes
11727      hardcode_shlibpath_var_CXX=unsupported
11728      whole_archive_flag_spec_CXX=''
11729      link_all_deplibs_CXX=yes
11730      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11731      if test "$GXX" = yes ; then
11732      output_verbose_link_cmd='echo'
11733      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}"
11734      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11735      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}"
11736      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}"
11737      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11738        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}"
11739        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}"
11740      fi
11741      else
11742      case $cc_basename in
11743        xlc*)
11744         output_verbose_link_cmd='echo'
11745          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'
11746          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11747          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11748          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}'
11749          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}'
11750          ;;
11751       *)
11752         ld_shlibs_CXX=no
11753          ;;
11754      esac
11755      fi
11756        ;;
11757
11758  dgux*)
11759    case $cc_basename in
11760      ec++*)
11761	# FIXME: insert proper C++ library support
11762	ld_shlibs_CXX=no
11763	;;
11764      ghcx*)
11765	# Green Hills C++ Compiler
11766	# FIXME: insert proper C++ library support
11767	ld_shlibs_CXX=no
11768	;;
11769      *)
11770	# FIXME: insert proper C++ library support
11771	ld_shlibs_CXX=no
11772	;;
11773    esac
11774    ;;
11775  freebsd[12]*)
11776    # C++ shared libraries reported to be fairly broken before switch to ELF
11777    ld_shlibs_CXX=no
11778    ;;
11779  freebsd-elf*)
11780    archive_cmds_need_lc_CXX=no
11781    ;;
11782  freebsd* | dragonfly*)
11783    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11784    # conventions
11785    ld_shlibs_CXX=yes
11786    ;;
11787  gnu*)
11788    ;;
11789  hpux9*)
11790    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11791    hardcode_libdir_separator_CXX=:
11792    export_dynamic_flag_spec_CXX='${wl}-E'
11793    hardcode_direct_CXX=yes
11794    hardcode_minus_L_CXX=yes # Not in the search PATH,
11795				# but as the default
11796				# location of the library.
11797
11798    case $cc_basename in
11799    CC*)
11800      # FIXME: insert proper C++ library support
11801      ld_shlibs_CXX=no
11802      ;;
11803    aCC*)
11804      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'
11805      # Commands to make compiler produce verbose output that lists
11806      # what "hidden" libraries, object files and flags are used when
11807      # linking a shared library.
11808      #
11809      # There doesn't appear to be a way to prevent this compiler from
11810      # explicitly linking system object files so we need to strip them
11811      # from the output so that they don't get included in the library
11812      # dependencies.
11813      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'
11814      ;;
11815    *)
11816      if test "$GXX" = yes; then
11817        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'
11818      else
11819        # FIXME: insert proper C++ library support
11820        ld_shlibs_CXX=no
11821      fi
11822      ;;
11823    esac
11824    ;;
11825  hpux10*|hpux11*)
11826    if test $with_gnu_ld = no; then
11827      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11828      hardcode_libdir_separator_CXX=:
11829
11830      case $host_cpu in
11831      hppa*64*|ia64*) ;;
11832      *)
11833	export_dynamic_flag_spec_CXX='${wl}-E'
11834        ;;
11835      esac
11836    fi
11837    case $host_cpu in
11838    hppa*64*|ia64*)
11839      hardcode_direct_CXX=no
11840      hardcode_shlibpath_var_CXX=no
11841      ;;
11842    *)
11843      hardcode_direct_CXX=yes
11844      hardcode_minus_L_CXX=yes # Not in the search PATH,
11845					      # but as the default
11846					      # location of the library.
11847      ;;
11848    esac
11849
11850    case $cc_basename in
11851      CC*)
11852	# FIXME: insert proper C++ library support
11853	ld_shlibs_CXX=no
11854	;;
11855      aCC*)
11856	case $host_cpu in
11857	hppa*64*)
11858	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11859	  ;;
11860	ia64*)
11861	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11862	  ;;
11863	*)
11864	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11865	  ;;
11866	esac
11867	# Commands to make compiler produce verbose output that lists
11868	# what "hidden" libraries, object files and flags are used when
11869	# linking a shared library.
11870	#
11871	# There doesn't appear to be a way to prevent this compiler from
11872	# explicitly linking system object files so we need to strip them
11873	# from the output so that they don't get included in the library
11874	# dependencies.
11875	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'
11876	;;
11877      *)
11878	if test "$GXX" = yes; then
11879	  if test $with_gnu_ld = no; then
11880	    case $host_cpu in
11881	    hppa*64*)
11882	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11883	      ;;
11884	    ia64*)
11885	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11886	      ;;
11887	    *)
11888	      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'
11889	      ;;
11890	    esac
11891	  fi
11892	else
11893	  # FIXME: insert proper C++ library support
11894	  ld_shlibs_CXX=no
11895	fi
11896	;;
11897    esac
11898    ;;
11899  interix[3-9]*)
11900    hardcode_direct_CXX=no
11901    hardcode_shlibpath_var_CXX=no
11902    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11903    export_dynamic_flag_spec_CXX='${wl}-E'
11904    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11905    # Instead, shared libraries are loaded at an image base (0x10000000 by
11906    # default) and relocated if they conflict, which is a slow very memory
11907    # consuming and fragmenting process.  To avoid this, we pick a random,
11908    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11909    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11910    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'
11911    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'
11912    ;;
11913  irix5* | irix6*)
11914    case $cc_basename in
11915      CC*)
11916	# SGI C++
11917	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'
11918
11919	# Archives containing C++ object files must be created using
11920	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11921	# necessary to make sure instantiated templates are included
11922	# in the archive.
11923	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11924	;;
11925      *)
11926	if test "$GXX" = yes; then
11927	  if test "$with_gnu_ld" = no; then
11928	    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'
11929	  else
11930	    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'
11931	  fi
11932	fi
11933	link_all_deplibs_CXX=yes
11934	;;
11935    esac
11936    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11937    hardcode_libdir_separator_CXX=:
11938    ;;
11939  linux* | k*bsd*-gnu)
11940    case $cc_basename in
11941      KCC*)
11942	# Kuck and Associates, Inc. (KAI) C++ Compiler
11943
11944	# KCC will only create a shared library if the output file
11945	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11946	# to its proper name (with version) after linking.
11947	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'
11948	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'
11949	# Commands to make compiler produce verbose output that lists
11950	# what "hidden" libraries, object files and flags are used when
11951	# linking a shared library.
11952	#
11953	# There doesn't appear to be a way to prevent this compiler from
11954	# explicitly linking system object files so we need to strip them
11955	# from the output so that they don't get included in the library
11956	# dependencies.
11957	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'
11958
11959	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11960	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11961
11962	# Archives containing C++ object files must be created using
11963	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11964	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11965	;;
11966      icpc*)
11967	# Intel C++
11968	with_gnu_ld=yes
11969	# version 8.0 and above of icpc choke on multiply defined symbols
11970	# if we add $predep_objects and $postdep_objects, however 7.1 and
11971	# earlier do not add the objects themselves.
11972	case `$CC -V 2>&1` in
11973	*"Version 7."*)
11974  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11975  	  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'
11976	  ;;
11977	*)  # Version 8.0 or newer
11978	  tmp_idyn=
11979	  case $host_cpu in
11980	    ia64*) tmp_idyn=' -i_dynamic';;
11981	  esac
11982  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11983	  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'
11984	  ;;
11985	esac
11986	archive_cmds_need_lc_CXX=no
11987	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11988	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11989	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11990	;;
11991      pgCC* | pgcpp*)
11992        # Portland Group C++ compiler
11993	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11994  	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'
11995
11996	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11997	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11998	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'
11999        ;;
12000      cxx*)
12001	# Compaq C++
12002	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12003	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'
12004
12005	runpath_var=LD_RUN_PATH
12006	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12007	hardcode_libdir_separator_CXX=:
12008
12009	# Commands to make compiler produce verbose output that lists
12010	# what "hidden" libraries, object files and flags are used when
12011	# linking a shared library.
12012	#
12013	# There doesn't appear to be a way to prevent this compiler from
12014	# explicitly linking system object files so we need to strip them
12015	# from the output so that they don't get included in the library
12016	# dependencies.
12017	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'
12018	;;
12019      *)
12020	case `$CC -V 2>&1 | sed 5q` in
12021	*Sun\ C*)
12022	  # Sun C++ 5.9
12023	  no_undefined_flag_CXX=' -zdefs'
12024	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12025	  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'
12026	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12027	  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'
12028
12029	  # Not sure whether something based on
12030	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12031	  # would be better.
12032	  output_verbose_link_cmd='echo'
12033
12034	  # Archives containing C++ object files must be created using
12035	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12036	  # necessary to make sure instantiated templates are included
12037	  # in the archive.
12038	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12039	  ;;
12040	esac
12041	;;
12042    esac
12043    ;;
12044  lynxos*)
12045    # FIXME: insert proper C++ library support
12046    ld_shlibs_CXX=no
12047    ;;
12048  m88k*)
12049    # FIXME: insert proper C++ library support
12050    ld_shlibs_CXX=no
12051    ;;
12052  mvs*)
12053    case $cc_basename in
12054      cxx*)
12055	# FIXME: insert proper C++ library support
12056	ld_shlibs_CXX=no
12057	;;
12058      *)
12059	# FIXME: insert proper C++ library support
12060	ld_shlibs_CXX=no
12061	;;
12062    esac
12063    ;;
12064  netbsd*)
12065    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12066      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12067      wlarc=
12068      hardcode_libdir_flag_spec_CXX='-R$libdir'
12069      hardcode_direct_CXX=yes
12070      hardcode_shlibpath_var_CXX=no
12071    fi
12072    # Workaround some broken pre-1.5 toolchains
12073    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12074    ;;
12075  openbsd2*)
12076    # C++ shared libraries are fairly broken
12077    ld_shlibs_CXX=no
12078    ;;
12079  openbsd*)
12080    if test -f /usr/libexec/ld.so; then
12081      hardcode_direct_CXX=yes
12082      hardcode_shlibpath_var_CXX=no
12083      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12084      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12085      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12086	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12087	export_dynamic_flag_spec_CXX='${wl}-E'
12088	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12089      fi
12090      output_verbose_link_cmd='echo'
12091    else
12092      ld_shlibs_CXX=no
12093    fi
12094    ;;
12095  osf3*)
12096    case $cc_basename in
12097      KCC*)
12098	# Kuck and Associates, Inc. (KAI) C++ Compiler
12099
12100	# KCC will only create a shared library if the output file
12101	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12102	# to its proper name (with version) after linking.
12103	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'
12104
12105	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12106	hardcode_libdir_separator_CXX=:
12107
12108	# Archives containing C++ object files must be created using
12109	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12110	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12111
12112	;;
12113      RCC*)
12114	# Rational C++ 2.4.1
12115	# FIXME: insert proper C++ library support
12116	ld_shlibs_CXX=no
12117	;;
12118      cxx*)
12119	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12120	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'
12121
12122	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12123	hardcode_libdir_separator_CXX=:
12124
12125	# Commands to make compiler produce verbose output that lists
12126	# what "hidden" libraries, object files and flags are used when
12127	# linking a shared library.
12128	#
12129	# There doesn't appear to be a way to prevent this compiler from
12130	# explicitly linking system object files so we need to strip them
12131	# from the output so that they don't get included in the library
12132	# dependencies.
12133	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'
12134	;;
12135      *)
12136	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12137	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12138	  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'
12139
12140	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12141	  hardcode_libdir_separator_CXX=:
12142
12143	  # Commands to make compiler produce verbose output that lists
12144	  # what "hidden" libraries, object files and flags are used when
12145	  # linking a shared library.
12146	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12147
12148	else
12149	  # FIXME: insert proper C++ library support
12150	  ld_shlibs_CXX=no
12151	fi
12152	;;
12153    esac
12154    ;;
12155  osf4* | osf5*)
12156    case $cc_basename in
12157      KCC*)
12158	# Kuck and Associates, Inc. (KAI) C++ Compiler
12159
12160	# KCC will only create a shared library if the output file
12161	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12162	# to its proper name (with version) after linking.
12163	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'
12164
12165	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12166	hardcode_libdir_separator_CXX=:
12167
12168	# Archives containing C++ object files must be created using
12169	# the KAI C++ compiler.
12170	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12171	;;
12172      RCC*)
12173	# Rational C++ 2.4.1
12174	# FIXME: insert proper C++ library support
12175	ld_shlibs_CXX=no
12176	;;
12177      cxx*)
12178	allow_undefined_flag_CXX=' -expect_unresolved \*'
12179	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'
12180	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12181	  echo "-hidden">> $lib.exp~
12182	  $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~
12183	  $rm $lib.exp'
12184
12185	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12186	hardcode_libdir_separator_CXX=:
12187
12188	# Commands to make compiler produce verbose output that lists
12189	# what "hidden" libraries, object files and flags are used when
12190	# linking a shared library.
12191	#
12192	# There doesn't appear to be a way to prevent this compiler from
12193	# explicitly linking system object files so we need to strip them
12194	# from the output so that they don't get included in the library
12195	# dependencies.
12196	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'
12197	;;
12198      *)
12199	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12200	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12201	 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'
12202
12203	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12204	  hardcode_libdir_separator_CXX=:
12205
12206	  # Commands to make compiler produce verbose output that lists
12207	  # what "hidden" libraries, object files and flags are used when
12208	  # linking a shared library.
12209	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12210
12211	else
12212	  # FIXME: insert proper C++ library support
12213	  ld_shlibs_CXX=no
12214	fi
12215	;;
12216    esac
12217    ;;
12218  psos*)
12219    # FIXME: insert proper C++ library support
12220    ld_shlibs_CXX=no
12221    ;;
12222  sunos4*)
12223    case $cc_basename in
12224      CC*)
12225	# Sun C++ 4.x
12226	# FIXME: insert proper C++ library support
12227	ld_shlibs_CXX=no
12228	;;
12229      lcc*)
12230	# Lucid
12231	# FIXME: insert proper C++ library support
12232	ld_shlibs_CXX=no
12233	;;
12234      *)
12235	# FIXME: insert proper C++ library support
12236	ld_shlibs_CXX=no
12237	;;
12238    esac
12239    ;;
12240  solaris*)
12241    case $cc_basename in
12242      CC*)
12243	# Sun C++ 4.2, 5.x and Centerline C++
12244        archive_cmds_need_lc_CXX=yes
12245	no_undefined_flag_CXX=' -zdefs'
12246	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12247	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12248	$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'
12249
12250	hardcode_libdir_flag_spec_CXX='-R$libdir'
12251	hardcode_shlibpath_var_CXX=no
12252	case $host_os in
12253	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12254	  *)
12255	    # The compiler driver will combine and reorder linker options,
12256	    # but understands `-z linker_flag'.
12257	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12258	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12259	    ;;
12260	esac
12261	link_all_deplibs_CXX=yes
12262
12263	output_verbose_link_cmd='echo'
12264
12265	# Archives containing C++ object files must be created using
12266	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12267	# necessary to make sure instantiated templates are included
12268	# in the archive.
12269	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12270	;;
12271      gcx*)
12272	# Green Hills C++ Compiler
12273	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12274
12275	# The C++ compiler must be used to create the archive.
12276	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12277	;;
12278      *)
12279	# GNU C++ compiler with Solaris linker
12280	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12281	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12282	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12283	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12284	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12285		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12286
12287	    # Commands to make compiler produce verbose output that lists
12288	    # what "hidden" libraries, object files and flags are used when
12289	    # linking a shared library.
12290	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12291	  else
12292	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12293	    # platform.
12294	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12295	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12296		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12297
12298	    # Commands to make compiler produce verbose output that lists
12299	    # what "hidden" libraries, object files and flags are used when
12300	    # linking a shared library.
12301	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12302	  fi
12303
12304	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12305	  case $host_os in
12306	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12307	  *)
12308	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12309	    ;;
12310	  esac
12311	fi
12312	;;
12313    esac
12314    ;;
12315  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12316    no_undefined_flag_CXX='${wl}-z,text'
12317    archive_cmds_need_lc_CXX=no
12318    hardcode_shlibpath_var_CXX=no
12319    runpath_var='LD_RUN_PATH'
12320
12321    case $cc_basename in
12322      CC*)
12323	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12324	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12325	;;
12326      *)
12327	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12328	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12329	;;
12330    esac
12331    ;;
12332  sysv5* | sco3.2v5* | sco5v6*)
12333    # Note: We can NOT use -z defs as we might desire, because we do not
12334    # link with -lc, and that would cause any symbols used from libc to
12335    # always be unresolved, which means just about no library would
12336    # ever link correctly.  If we're not using GNU ld we use -z text
12337    # though, which does catch some bad symbols but isn't as heavy-handed
12338    # as -z defs.
12339    # For security reasons, it is highly recommended that you always
12340    # use absolute paths for naming shared libraries, and exclude the
12341    # DT_RUNPATH tag from executables and libraries.  But doing so
12342    # requires that you compile everything twice, which is a pain.
12343    # So that behaviour is only enabled if SCOABSPATH is set to a
12344    # non-empty value in the environment.  Most likely only useful for
12345    # creating official distributions of packages.
12346    # This is a hack until libtool officially supports absolute path
12347    # names for shared libraries.
12348    no_undefined_flag_CXX='${wl}-z,text'
12349    allow_undefined_flag_CXX='${wl}-z,nodefs'
12350    archive_cmds_need_lc_CXX=no
12351    hardcode_shlibpath_var_CXX=no
12352    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12353    hardcode_libdir_separator_CXX=':'
12354    link_all_deplibs_CXX=yes
12355    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12356    runpath_var='LD_RUN_PATH'
12357
12358    case $cc_basename in
12359      CC*)
12360	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12361	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12362	;;
12363      *)
12364	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12365	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12366	;;
12367    esac
12368    ;;
12369  tandem*)
12370    case $cc_basename in
12371      NCC*)
12372	# NonStop-UX NCC 3.20
12373	# FIXME: insert proper C++ library support
12374	ld_shlibs_CXX=no
12375	;;
12376      *)
12377	# FIXME: insert proper C++ library support
12378	ld_shlibs_CXX=no
12379	;;
12380    esac
12381    ;;
12382  vxworks*)
12383    # FIXME: insert proper C++ library support
12384    ld_shlibs_CXX=no
12385    ;;
12386  *)
12387    # FIXME: insert proper C++ library support
12388    ld_shlibs_CXX=no
12389    ;;
12390esac
12391{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12392$as_echo "$ld_shlibs_CXX" >&6; }
12393test "$ld_shlibs_CXX" = no && can_build_shared=no
12394
12395GCC_CXX="$GXX"
12396LD_CXX="$LD"
12397
12398cat > conftest.$ac_ext <<EOF
12399class Foo
12400{
12401public:
12402  Foo (void) { a = 0; }
12403private:
12404  int a;
12405};
12406EOF
12407
12408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12409  (eval $ac_compile) 2>&5
12410  ac_status=$?
12411  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412  (exit $ac_status); }; then
12413  # Parse the compiler output and extract the necessary
12414  # objects, libraries and library flags.
12415
12416  # Sentinel used to keep track of whether or not we are before
12417  # the conftest object file.
12418  pre_test_object_deps_done=no
12419
12420  # The `*' in the case matches for architectures that use `case' in
12421  # $output_verbose_cmd can trigger glob expansion during the loop
12422  # eval without this substitution.
12423  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12424
12425  for p in `eval $output_verbose_link_cmd`; do
12426    case $p in
12427
12428    -L* | -R* | -l*)
12429       # Some compilers place space between "-{L,R}" and the path.
12430       # Remove the space.
12431       if test $p = "-L" \
12432	  || test $p = "-R"; then
12433	 prev=$p
12434	 continue
12435       else
12436	 prev=
12437       fi
12438
12439       if test "$pre_test_object_deps_done" = no; then
12440	 case $p in
12441	 -L* | -R*)
12442	   # Internal compiler library paths should come after those
12443	   # provided the user.  The postdeps already come after the
12444	   # user supplied libs so there is no need to process them.
12445	   if test -z "$compiler_lib_search_path_CXX"; then
12446	     compiler_lib_search_path_CXX="${prev}${p}"
12447	   else
12448	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12449	   fi
12450	   ;;
12451	 # The "-l" case would never come before the object being
12452	 # linked, so don't bother handling this case.
12453	 esac
12454       else
12455	 if test -z "$postdeps_CXX"; then
12456	   postdeps_CXX="${prev}${p}"
12457	 else
12458	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12459	 fi
12460       fi
12461       ;;
12462
12463    *.$objext)
12464       # This assumes that the test object file only shows up
12465       # once in the compiler output.
12466       if test "$p" = "conftest.$objext"; then
12467	 pre_test_object_deps_done=yes
12468	 continue
12469       fi
12470
12471       if test "$pre_test_object_deps_done" = no; then
12472	 if test -z "$predep_objects_CXX"; then
12473	   predep_objects_CXX="$p"
12474	 else
12475	   predep_objects_CXX="$predep_objects_CXX $p"
12476	 fi
12477       else
12478	 if test -z "$postdep_objects_CXX"; then
12479	   postdep_objects_CXX="$p"
12480	 else
12481	   postdep_objects_CXX="$postdep_objects_CXX $p"
12482	 fi
12483       fi
12484       ;;
12485
12486    *) ;; # Ignore the rest.
12487
12488    esac
12489  done
12490
12491  # Clean up.
12492  rm -f a.out a.exe
12493else
12494  echo "libtool.m4: error: problem compiling CXX test program"
12495fi
12496
12497$rm -f confest.$objext
12498
12499compiler_lib_search_dirs_CXX=
12500if test -n "$compiler_lib_search_path_CXX"; then
12501  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12502fi
12503
12504# PORTME: override above test on systems where it is broken
12505case $host_os in
12506interix[3-9]*)
12507  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12508  # hack all around it, let's just trust "g++" to DTRT.
12509  predep_objects_CXX=
12510  postdep_objects_CXX=
12511  postdeps_CXX=
12512  ;;
12513
12514linux*)
12515  case `$CC -V 2>&1 | sed 5q` in
12516  *Sun\ C*)
12517    # Sun C++ 5.9
12518    #
12519    # The more standards-conforming stlport4 library is
12520    # incompatible with the Cstd library. Avoid specifying
12521    # it if it's in CXXFLAGS. Ignore libCrun as
12522    # -library=stlport4 depends on it.
12523    case " $CXX $CXXFLAGS " in
12524    *" -library=stlport4 "*)
12525      solaris_use_stlport4=yes
12526      ;;
12527    esac
12528    if test "$solaris_use_stlport4" != yes; then
12529      postdeps_CXX='-library=Cstd -library=Crun'
12530    fi
12531    ;;
12532  esac
12533  ;;
12534
12535solaris*)
12536  case $cc_basename in
12537  CC*)
12538    # The more standards-conforming stlport4 library is
12539    # incompatible with the Cstd library. Avoid specifying
12540    # it if it's in CXXFLAGS. Ignore libCrun as
12541    # -library=stlport4 depends on it.
12542    case " $CXX $CXXFLAGS " in
12543    *" -library=stlport4 "*)
12544      solaris_use_stlport4=yes
12545      ;;
12546    esac
12547
12548    # Adding this requires a known-good setup of shared libraries for
12549    # Sun compiler versions before 5.6, else PIC objects from an old
12550    # archive will be linked into the output, leading to subtle bugs.
12551    if test "$solaris_use_stlport4" != yes; then
12552      postdeps_CXX='-library=Cstd -library=Crun'
12553    fi
12554    ;;
12555  esac
12556  ;;
12557esac
12558
12559case " $postdeps_CXX " in
12560*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12561esac
12562
12563lt_prog_compiler_wl_CXX=
12564lt_prog_compiler_pic_CXX=
12565lt_prog_compiler_static_CXX=
12566
12567{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12568$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12569
12570  # C++ specific cases for pic, static, wl, etc.
12571  if test "$GXX" = yes; then
12572    lt_prog_compiler_wl_CXX='-Wl,'
12573    lt_prog_compiler_static_CXX='-static'
12574
12575    case $host_os in
12576    aix*)
12577      # All AIX code is PIC.
12578      if test "$host_cpu" = ia64; then
12579	# AIX 5 now supports IA64 processor
12580	lt_prog_compiler_static_CXX='-Bstatic'
12581      fi
12582      ;;
12583    amigaos*)
12584      # FIXME: we need at least 68020 code to build shared libraries, but
12585      # adding the `-m68020' flag to GCC prevents building anything better,
12586      # like `-m68040'.
12587      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12588      ;;
12589    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12590      # PIC is the default for these OSes.
12591      ;;
12592    mingw* | cygwin* | os2* | pw32*)
12593      # This hack is so that the source file can tell whether it is being
12594      # built for inclusion in a dll (and should export symbols for example).
12595      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12596      # (--disable-auto-import) libraries
12597      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12598      ;;
12599    darwin* | rhapsody*)
12600      # PIC is the default on this platform
12601      # Common symbols not allowed in MH_DYLIB files
12602      lt_prog_compiler_pic_CXX='-fno-common'
12603      ;;
12604    *djgpp*)
12605      # DJGPP does not support shared libraries at all
12606      lt_prog_compiler_pic_CXX=
12607      ;;
12608    interix[3-9]*)
12609      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12610      # Instead, we relocate shared libraries at runtime.
12611      ;;
12612    sysv4*MP*)
12613      if test -d /usr/nec; then
12614	lt_prog_compiler_pic_CXX=-Kconform_pic
12615      fi
12616      ;;
12617    hpux*)
12618      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12619      # not for PA HP-UX.
12620      case $host_cpu in
12621      hppa*64*|ia64*)
12622	;;
12623      *)
12624	lt_prog_compiler_pic_CXX='-fPIC'
12625	;;
12626      esac
12627      ;;
12628    *)
12629      lt_prog_compiler_pic_CXX='-fPIC'
12630      ;;
12631    esac
12632  else
12633    case $host_os in
12634      aix[4-9]*)
12635	# All AIX code is PIC.
12636	if test "$host_cpu" = ia64; then
12637	  # AIX 5 now supports IA64 processor
12638	  lt_prog_compiler_static_CXX='-Bstatic'
12639	else
12640	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12641	fi
12642	;;
12643      chorus*)
12644	case $cc_basename in
12645	cxch68*)
12646	  # Green Hills C++ Compiler
12647	  # _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"
12648	  ;;
12649	esac
12650	;;
12651       darwin*)
12652         # PIC is the default on this platform
12653         # Common symbols not allowed in MH_DYLIB files
12654         case $cc_basename in
12655           xlc*)
12656           lt_prog_compiler_pic_CXX='-qnocommon'
12657           lt_prog_compiler_wl_CXX='-Wl,'
12658           ;;
12659         esac
12660       ;;
12661      dgux*)
12662	case $cc_basename in
12663	  ec++*)
12664	    lt_prog_compiler_pic_CXX='-KPIC'
12665	    ;;
12666	  ghcx*)
12667	    # Green Hills C++ Compiler
12668	    lt_prog_compiler_pic_CXX='-pic'
12669	    ;;
12670	  *)
12671	    ;;
12672	esac
12673	;;
12674      freebsd* | dragonfly*)
12675	# FreeBSD uses GNU C++
12676	;;
12677      hpux9* | hpux10* | hpux11*)
12678	case $cc_basename in
12679	  CC*)
12680	    lt_prog_compiler_wl_CXX='-Wl,'
12681	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12682	    if test "$host_cpu" != ia64; then
12683	      lt_prog_compiler_pic_CXX='+Z'
12684	    fi
12685	    ;;
12686	  aCC*)
12687	    lt_prog_compiler_wl_CXX='-Wl,'
12688	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12689	    case $host_cpu in
12690	    hppa*64*|ia64*)
12691	      # +Z the default
12692	      ;;
12693	    *)
12694	      lt_prog_compiler_pic_CXX='+Z'
12695	      ;;
12696	    esac
12697	    ;;
12698	  *)
12699	    ;;
12700	esac
12701	;;
12702      interix*)
12703	# This is c89, which is MS Visual C++ (no shared libs)
12704	# Anyone wants to do a port?
12705	;;
12706      irix5* | irix6* | nonstopux*)
12707	case $cc_basename in
12708	  CC*)
12709	    lt_prog_compiler_wl_CXX='-Wl,'
12710	    lt_prog_compiler_static_CXX='-non_shared'
12711	    # CC pic flag -KPIC is the default.
12712	    ;;
12713	  *)
12714	    ;;
12715	esac
12716	;;
12717      linux* | k*bsd*-gnu)
12718	case $cc_basename in
12719	  KCC*)
12720	    # KAI C++ Compiler
12721	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12722	    lt_prog_compiler_pic_CXX='-fPIC'
12723	    ;;
12724	  icpc* | ecpc*)
12725	    # Intel C++
12726	    lt_prog_compiler_wl_CXX='-Wl,'
12727	    lt_prog_compiler_pic_CXX='-KPIC'
12728	    lt_prog_compiler_static_CXX='-static'
12729	    ;;
12730	  pgCC* | pgcpp*)
12731	    # Portland Group C++ compiler.
12732	    lt_prog_compiler_wl_CXX='-Wl,'
12733	    lt_prog_compiler_pic_CXX='-fpic'
12734	    lt_prog_compiler_static_CXX='-Bstatic'
12735	    ;;
12736	  cxx*)
12737	    # Compaq C++
12738	    # Make sure the PIC flag is empty.  It appears that all Alpha
12739	    # Linux and Compaq Tru64 Unix objects are PIC.
12740	    lt_prog_compiler_pic_CXX=
12741	    lt_prog_compiler_static_CXX='-non_shared'
12742	    ;;
12743	  *)
12744	    case `$CC -V 2>&1 | sed 5q` in
12745	    *Sun\ C*)
12746	      # Sun C++ 5.9
12747	      lt_prog_compiler_pic_CXX='-KPIC'
12748	      lt_prog_compiler_static_CXX='-Bstatic'
12749	      lt_prog_compiler_wl_CXX='-Qoption ld '
12750	      ;;
12751	    esac
12752	    ;;
12753	esac
12754	;;
12755      lynxos*)
12756	;;
12757      m88k*)
12758	;;
12759      mvs*)
12760	case $cc_basename in
12761	  cxx*)
12762	    lt_prog_compiler_pic_CXX='-W c,exportall'
12763	    ;;
12764	  *)
12765	    ;;
12766	esac
12767	;;
12768      netbsd*)
12769	;;
12770      osf3* | osf4* | osf5*)
12771	case $cc_basename in
12772	  KCC*)
12773	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12774	    ;;
12775	  RCC*)
12776	    # Rational C++ 2.4.1
12777	    lt_prog_compiler_pic_CXX='-pic'
12778	    ;;
12779	  cxx*)
12780	    # Digital/Compaq C++
12781	    lt_prog_compiler_wl_CXX='-Wl,'
12782	    # Make sure the PIC flag is empty.  It appears that all Alpha
12783	    # Linux and Compaq Tru64 Unix objects are PIC.
12784	    lt_prog_compiler_pic_CXX=
12785	    lt_prog_compiler_static_CXX='-non_shared'
12786	    ;;
12787	  *)
12788	    ;;
12789	esac
12790	;;
12791      psos*)
12792	;;
12793      solaris*)
12794	case $cc_basename in
12795	  CC*)
12796	    # Sun C++ 4.2, 5.x and Centerline C++
12797	    lt_prog_compiler_pic_CXX='-KPIC'
12798	    lt_prog_compiler_static_CXX='-Bstatic'
12799	    lt_prog_compiler_wl_CXX='-Qoption ld '
12800	    ;;
12801	  gcx*)
12802	    # Green Hills C++ Compiler
12803	    lt_prog_compiler_pic_CXX='-PIC'
12804	    ;;
12805	  *)
12806	    ;;
12807	esac
12808	;;
12809      sunos4*)
12810	case $cc_basename in
12811	  CC*)
12812	    # Sun C++ 4.x
12813	    lt_prog_compiler_pic_CXX='-pic'
12814	    lt_prog_compiler_static_CXX='-Bstatic'
12815	    ;;
12816	  lcc*)
12817	    # Lucid
12818	    lt_prog_compiler_pic_CXX='-pic'
12819	    ;;
12820	  *)
12821	    ;;
12822	esac
12823	;;
12824      tandem*)
12825	case $cc_basename in
12826	  NCC*)
12827	    # NonStop-UX NCC 3.20
12828	    lt_prog_compiler_pic_CXX='-KPIC'
12829	    ;;
12830	  *)
12831	    ;;
12832	esac
12833	;;
12834      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12835	case $cc_basename in
12836	  CC*)
12837	    lt_prog_compiler_wl_CXX='-Wl,'
12838	    lt_prog_compiler_pic_CXX='-KPIC'
12839	    lt_prog_compiler_static_CXX='-Bstatic'
12840	    ;;
12841	esac
12842	;;
12843      vxworks*)
12844	;;
12845      *)
12846	lt_prog_compiler_can_build_shared_CXX=no
12847	;;
12848    esac
12849  fi
12850
12851{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12852$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12853
12854#
12855# Check to make sure the PIC flag actually works.
12856#
12857if test -n "$lt_prog_compiler_pic_CXX"; then
12858
12859{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12860$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12861if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12862  $as_echo_n "(cached) " >&6
12863else
12864  lt_cv_prog_compiler_pic_works_CXX=no
12865  ac_outfile=conftest.$ac_objext
12866   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12867   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12868   # Insert the option either (1) after the last *FLAGS variable, or
12869   # (2) before a word containing "conftest.", or (3) at the end.
12870   # Note that $ac_compile itself does not contain backslashes and begins
12871   # with a dollar sign (not a hyphen), so the echo should work correctly.
12872   # The option is referenced via a variable to avoid confusing sed.
12873   lt_compile=`echo "$ac_compile" | $SED \
12874   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12875   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12876   -e 's:$: $lt_compiler_flag:'`
12877   (eval echo "\"\$as_me:12877: $lt_compile\"" >&5)
12878   (eval "$lt_compile" 2>conftest.err)
12879   ac_status=$?
12880   cat conftest.err >&5
12881   echo "$as_me:12881: \$? = $ac_status" >&5
12882   if (exit $ac_status) && test -s "$ac_outfile"; then
12883     # The compiler can only warn and ignore the option if not recognized
12884     # So say no if there are warnings other than the usual output.
12885     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12886     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12887     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12888       lt_cv_prog_compiler_pic_works_CXX=yes
12889     fi
12890   fi
12891   $rm conftest*
12892
12893fi
12894{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12895$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12896
12897if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12898    case $lt_prog_compiler_pic_CXX in
12899     "" | " "*) ;;
12900     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12901     esac
12902else
12903    lt_prog_compiler_pic_CXX=
12904     lt_prog_compiler_can_build_shared_CXX=no
12905fi
12906
12907fi
12908case $host_os in
12909  # For platforms which do not support PIC, -DPIC is meaningless:
12910  *djgpp*)
12911    lt_prog_compiler_pic_CXX=
12912    ;;
12913  *)
12914    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12915    ;;
12916esac
12917
12918#
12919# Check to make sure the static flag actually works.
12920#
12921wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12922{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12923$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12924if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12925  $as_echo_n "(cached) " >&6
12926else
12927  lt_cv_prog_compiler_static_works_CXX=no
12928   save_LDFLAGS="$LDFLAGS"
12929   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12930   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12931   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12932     # The linker can only warn and ignore the option if not recognized
12933     # So say no if there are warnings
12934     if test -s conftest.err; then
12935       # Append any errors to the config.log.
12936       cat conftest.err 1>&5
12937       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12938       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12939       if diff conftest.exp conftest.er2 >/dev/null; then
12940         lt_cv_prog_compiler_static_works_CXX=yes
12941       fi
12942     else
12943       lt_cv_prog_compiler_static_works_CXX=yes
12944     fi
12945   fi
12946   $rm -r conftest*
12947   LDFLAGS="$save_LDFLAGS"
12948
12949fi
12950{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12951$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12952
12953if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12954    :
12955else
12956    lt_prog_compiler_static_CXX=
12957fi
12958
12959
12960{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12961$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12962if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12963  $as_echo_n "(cached) " >&6
12964else
12965  lt_cv_prog_compiler_c_o_CXX=no
12966   $rm -r conftest 2>/dev/null
12967   mkdir conftest
12968   cd conftest
12969   mkdir out
12970   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12971
12972   lt_compiler_flag="-o out/conftest2.$ac_objext"
12973   # Insert the option either (1) after the last *FLAGS variable, or
12974   # (2) before a word containing "conftest.", or (3) at the end.
12975   # Note that $ac_compile itself does not contain backslashes and begins
12976   # with a dollar sign (not a hyphen), so the echo should work correctly.
12977   lt_compile=`echo "$ac_compile" | $SED \
12978   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12979   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12980   -e 's:$: $lt_compiler_flag:'`
12981   (eval echo "\"\$as_me:12981: $lt_compile\"" >&5)
12982   (eval "$lt_compile" 2>out/conftest.err)
12983   ac_status=$?
12984   cat out/conftest.err >&5
12985   echo "$as_me:12985: \$? = $ac_status" >&5
12986   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12987   then
12988     # The compiler can only warn and ignore the option if not recognized
12989     # So say no if there are warnings
12990     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12991     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12992     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12993       lt_cv_prog_compiler_c_o_CXX=yes
12994     fi
12995   fi
12996   chmod u+w . 2>&5
12997   $rm conftest*
12998   # SGI C++ compiler will create directory out/ii_files/ for
12999   # template instantiation
13000   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13001   $rm out/* && rmdir out
13002   cd ..
13003   rmdir conftest
13004   $rm conftest*
13005
13006fi
13007{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13008$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13009
13010
13011hard_links="nottested"
13012if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13013  # do not overwrite the value of need_locks provided by the user
13014  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13015$as_echo_n "checking if we can lock with hard links... " >&6; }
13016  hard_links=yes
13017  $rm conftest*
13018  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13019  touch conftest.a
13020  ln conftest.a conftest.b 2>&5 || hard_links=no
13021  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13022  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13023$as_echo "$hard_links" >&6; }
13024  if test "$hard_links" = no; then
13025    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13026$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13027    need_locks=warn
13028  fi
13029else
13030  need_locks=no
13031fi
13032
13033{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13034$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13035
13036  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13037  case $host_os in
13038  aix[4-9]*)
13039    # If we're using GNU nm, then we don't want the "-C" option.
13040    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13041    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13042      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'
13043    else
13044      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'
13045    fi
13046    ;;
13047  pw32*)
13048    export_symbols_cmds_CXX="$ltdll_cmds"
13049  ;;
13050  cygwin* | mingw*)
13051    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'
13052  ;;
13053  *)
13054    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13055  ;;
13056  esac
13057  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13058
13059{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13060$as_echo "$ld_shlibs_CXX" >&6; }
13061test "$ld_shlibs_CXX" = no && can_build_shared=no
13062
13063#
13064# Do we need to explicitly link libc?
13065#
13066case "x$archive_cmds_need_lc_CXX" in
13067x|xyes)
13068  # Assume -lc should be added
13069  archive_cmds_need_lc_CXX=yes
13070
13071  if test "$enable_shared" = yes && test "$GCC" = yes; then
13072    case $archive_cmds_CXX in
13073    *'~'*)
13074      # FIXME: we may have to deal with multi-command sequences.
13075      ;;
13076    '$CC '*)
13077      # Test whether the compiler implicitly links with -lc since on some
13078      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13079      # to ld, don't add -lc before -lgcc.
13080      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13081$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13082      $rm conftest*
13083      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13084
13085      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13086  (eval $ac_compile) 2>&5
13087  ac_status=$?
13088  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089  (exit $ac_status); } 2>conftest.err; then
13090        soname=conftest
13091        lib=conftest
13092        libobjs=conftest.$ac_objext
13093        deplibs=
13094        wl=$lt_prog_compiler_wl_CXX
13095	pic_flag=$lt_prog_compiler_pic_CXX
13096        compiler_flags=-v
13097        linker_flags=-v
13098        verstring=
13099        output_objdir=.
13100        libname=conftest
13101        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13102        allow_undefined_flag_CXX=
13103        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13104  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13105  ac_status=$?
13106  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107  (exit $ac_status); }
13108        then
13109	  archive_cmds_need_lc_CXX=no
13110        else
13111	  archive_cmds_need_lc_CXX=yes
13112        fi
13113        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13114      else
13115        cat conftest.err 1>&5
13116      fi
13117      $rm conftest*
13118      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13119$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13120      ;;
13121    esac
13122  fi
13123  ;;
13124esac
13125
13126{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13127$as_echo_n "checking dynamic linker characteristics... " >&6; }
13128library_names_spec=
13129libname_spec='lib$name'
13130soname_spec=
13131shrext_cmds=".so"
13132postinstall_cmds=
13133postuninstall_cmds=
13134finish_cmds=
13135finish_eval=
13136shlibpath_var=
13137shlibpath_overrides_runpath=unknown
13138version_type=none
13139dynamic_linker="$host_os ld.so"
13140sys_lib_dlsearch_path_spec="/lib /usr/lib"
13141
13142need_lib_prefix=unknown
13143hardcode_into_libs=no
13144
13145# when you set need_version to no, make sure it does not cause -set_version
13146# flags to be left without arguments
13147need_version=unknown
13148
13149case $host_os in
13150aix3*)
13151  version_type=linux
13152  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13153  shlibpath_var=LIBPATH
13154
13155  # AIX 3 has no versioning support, so we append a major version to the name.
13156  soname_spec='${libname}${release}${shared_ext}$major'
13157  ;;
13158
13159aix[4-9]*)
13160  version_type=linux
13161  need_lib_prefix=no
13162  need_version=no
13163  hardcode_into_libs=yes
13164  if test "$host_cpu" = ia64; then
13165    # AIX 5 supports IA64
13166    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13167    shlibpath_var=LD_LIBRARY_PATH
13168  else
13169    # With GCC up to 2.95.x, collect2 would create an import file
13170    # for dependence libraries.  The import file would start with
13171    # the line `#! .'.  This would cause the generated library to
13172    # depend on `.', always an invalid library.  This was fixed in
13173    # development snapshots of GCC prior to 3.0.
13174    case $host_os in
13175      aix4 | aix4.[01] | aix4.[01].*)
13176      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13177	   echo ' yes '
13178	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13179	:
13180      else
13181	can_build_shared=no
13182      fi
13183      ;;
13184    esac
13185    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13186    # soname into executable. Probably we can add versioning support to
13187    # collect2, so additional links can be useful in future.
13188    if test "$aix_use_runtimelinking" = yes; then
13189      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13190      # instead of lib<name>.a to let people know that these are not
13191      # typical AIX shared libraries.
13192      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13193    else
13194      # We preserve .a as extension for shared libraries through AIX4.2
13195      # and later when we are not doing run time linking.
13196      library_names_spec='${libname}${release}.a $libname.a'
13197      soname_spec='${libname}${release}${shared_ext}$major'
13198    fi
13199    shlibpath_var=LIBPATH
13200  fi
13201  ;;
13202
13203amigaos*)
13204  library_names_spec='$libname.ixlibrary $libname.a'
13205  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13206  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'
13207  ;;
13208
13209beos*)
13210  library_names_spec='${libname}${shared_ext}'
13211  dynamic_linker="$host_os ld.so"
13212  shlibpath_var=LIBRARY_PATH
13213  ;;
13214
13215bsdi[45]*)
13216  version_type=linux
13217  need_version=no
13218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13219  soname_spec='${libname}${release}${shared_ext}$major'
13220  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13221  shlibpath_var=LD_LIBRARY_PATH
13222  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13223  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13224  # the default ld.so.conf also contains /usr/contrib/lib and
13225  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13226  # libtool to hard-code these into programs
13227  ;;
13228
13229cygwin* | mingw* | pw32*)
13230  version_type=windows
13231  shrext_cmds=".dll"
13232  need_version=no
13233  need_lib_prefix=no
13234
13235  case $GCC,$host_os in
13236  yes,cygwin* | yes,mingw* | yes,pw32*)
13237    library_names_spec='$libname.dll.a'
13238    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13239    postinstall_cmds='base_file=`basename \${file}`~
13240      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13241      dldir=$destdir/`dirname \$dlpath`~
13242      test -d \$dldir || mkdir -p \$dldir~
13243      $install_prog $dir/$dlname \$dldir/$dlname~
13244      chmod a+x \$dldir/$dlname'
13245    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13246      dlpath=$dir/\$dldll~
13247       $rm \$dlpath'
13248    shlibpath_overrides_runpath=yes
13249
13250    case $host_os in
13251    cygwin*)
13252      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13253      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13254      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13255      ;;
13256    mingw*)
13257      # MinGW DLLs use traditional 'lib' prefix
13258      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13259      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13260      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13261        # It is most probably a Windows format PATH printed by
13262        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13263        # path with ; separators, and with drive letters. We can handle the
13264        # drive letters (cygwin fileutils understands them), so leave them,
13265        # especially as we might pass files found there to a mingw objdump,
13266        # which wouldn't understand a cygwinified path. Ahh.
13267        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13268      else
13269        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13270      fi
13271      ;;
13272    pw32*)
13273      # pw32 DLLs use 'pw' prefix rather than 'lib'
13274      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13275      ;;
13276    esac
13277    ;;
13278
13279  *)
13280    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13281    ;;
13282  esac
13283  dynamic_linker='Win32 ld.exe'
13284  # FIXME: first we should search . and the directory the executable is in
13285  shlibpath_var=PATH
13286  ;;
13287
13288darwin* | rhapsody*)
13289  dynamic_linker="$host_os dyld"
13290  version_type=darwin
13291  need_lib_prefix=no
13292  need_version=no
13293  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13294  soname_spec='${libname}${release}${major}$shared_ext'
13295  shlibpath_overrides_runpath=yes
13296  shlibpath_var=DYLD_LIBRARY_PATH
13297  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13298
13299  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13300  ;;
13301
13302dgux*)
13303  version_type=linux
13304  need_lib_prefix=no
13305  need_version=no
13306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13307  soname_spec='${libname}${release}${shared_ext}$major'
13308  shlibpath_var=LD_LIBRARY_PATH
13309  ;;
13310
13311freebsd1*)
13312  dynamic_linker=no
13313  ;;
13314
13315freebsd* | dragonfly*)
13316  # DragonFly does not have aout.  When/if they implement a new
13317  # versioning mechanism, adjust this.
13318  if test -x /usr/bin/objformat; then
13319    objformat=`/usr/bin/objformat`
13320  else
13321    case $host_os in
13322    freebsd[123]*) objformat=aout ;;
13323    *) objformat=elf ;;
13324    esac
13325  fi
13326  version_type=freebsd-$objformat
13327  case $version_type in
13328    freebsd-elf*)
13329      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13330      need_version=no
13331      need_lib_prefix=no
13332      ;;
13333    freebsd-*)
13334      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13335      need_version=yes
13336      ;;
13337  esac
13338  shlibpath_var=LD_LIBRARY_PATH
13339  case $host_os in
13340  freebsd2*)
13341    shlibpath_overrides_runpath=yes
13342    ;;
13343  freebsd3.[01]* | freebsdelf3.[01]*)
13344    shlibpath_overrides_runpath=yes
13345    hardcode_into_libs=yes
13346    ;;
13347  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13348  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13349    shlibpath_overrides_runpath=no
13350    hardcode_into_libs=yes
13351    ;;
13352  *) # from 4.6 on, and DragonFly
13353    shlibpath_overrides_runpath=yes
13354    hardcode_into_libs=yes
13355    ;;
13356  esac
13357  ;;
13358
13359gnu*)
13360  version_type=linux
13361  need_lib_prefix=no
13362  need_version=no
13363  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13364  soname_spec='${libname}${release}${shared_ext}$major'
13365  shlibpath_var=LD_LIBRARY_PATH
13366  hardcode_into_libs=yes
13367  ;;
13368
13369hpux9* | hpux10* | hpux11*)
13370  # Give a soname corresponding to the major version so that dld.sl refuses to
13371  # link against other versions.
13372  version_type=sunos
13373  need_lib_prefix=no
13374  need_version=no
13375  case $host_cpu in
13376  ia64*)
13377    shrext_cmds='.so'
13378    hardcode_into_libs=yes
13379    dynamic_linker="$host_os dld.so"
13380    shlibpath_var=LD_LIBRARY_PATH
13381    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13382    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13383    soname_spec='${libname}${release}${shared_ext}$major'
13384    if test "X$HPUX_IA64_MODE" = X32; then
13385      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13386    else
13387      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13388    fi
13389    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13390    ;;
13391   hppa*64*)
13392     shrext_cmds='.sl'
13393     hardcode_into_libs=yes
13394     dynamic_linker="$host_os dld.sl"
13395     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13396     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13397     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13398     soname_spec='${libname}${release}${shared_ext}$major'
13399     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13400     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13401     ;;
13402   *)
13403    shrext_cmds='.sl'
13404    dynamic_linker="$host_os dld.sl"
13405    shlibpath_var=SHLIB_PATH
13406    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13407    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13408    soname_spec='${libname}${release}${shared_ext}$major'
13409    ;;
13410  esac
13411  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13412  postinstall_cmds='chmod 555 $lib'
13413  ;;
13414
13415interix[3-9]*)
13416  version_type=linux
13417  need_lib_prefix=no
13418  need_version=no
13419  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13420  soname_spec='${libname}${release}${shared_ext}$major'
13421  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13422  shlibpath_var=LD_LIBRARY_PATH
13423  shlibpath_overrides_runpath=no
13424  hardcode_into_libs=yes
13425  ;;
13426
13427irix5* | irix6* | nonstopux*)
13428  case $host_os in
13429    nonstopux*) version_type=nonstopux ;;
13430    *)
13431	if test "$lt_cv_prog_gnu_ld" = yes; then
13432		version_type=linux
13433	else
13434		version_type=irix
13435	fi ;;
13436  esac
13437  need_lib_prefix=no
13438  need_version=no
13439  soname_spec='${libname}${release}${shared_ext}$major'
13440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13441  case $host_os in
13442  irix5* | nonstopux*)
13443    libsuff= shlibsuff=
13444    ;;
13445  *)
13446    case $LD in # libtool.m4 will add one of these switches to LD
13447    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13448      libsuff= shlibsuff= libmagic=32-bit;;
13449    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13450      libsuff=32 shlibsuff=N32 libmagic=N32;;
13451    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13452      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13453    *) libsuff= shlibsuff= libmagic=never-match;;
13454    esac
13455    ;;
13456  esac
13457  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13458  shlibpath_overrides_runpath=no
13459  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13460  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13461  hardcode_into_libs=yes
13462  ;;
13463
13464# No shared lib support for Linux oldld, aout, or coff.
13465linux*oldld* | linux*aout* | linux*coff*)
13466  dynamic_linker=no
13467  ;;
13468
13469# This must be Linux ELF.
13470linux* | k*bsd*-gnu)
13471  version_type=linux
13472  need_lib_prefix=no
13473  need_version=no
13474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13475  soname_spec='${libname}${release}${shared_ext}$major'
13476  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13477  shlibpath_var=LD_LIBRARY_PATH
13478  shlibpath_overrides_runpath=no
13479  # This implies no fast_install, which is unacceptable.
13480  # Some rework will be needed to allow for fast_install
13481  # before this can be enabled.
13482  hardcode_into_libs=yes
13483  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13484  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13485
13486  # Append ld.so.conf contents to the search path
13487  if test -f /etc/ld.so.conf; then
13488    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' ' '`
13489    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13490  fi
13491
13492  # We used to test for /lib/ld.so.1 and disable shared libraries on
13493  # powerpc, because MkLinux only supported shared libraries with the
13494  # GNU dynamic linker.  Since this was broken with cross compilers,
13495  # most powerpc-linux boxes support dynamic linking these days and
13496  # people can always --disable-shared, the test was removed, and we
13497  # assume the GNU/Linux dynamic linker is in use.
13498  dynamic_linker='GNU/Linux ld.so'
13499  ;;
13500
13501netbsd*)
13502  version_type=sunos
13503  need_lib_prefix=no
13504  need_version=no
13505  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13506    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13507    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13508    dynamic_linker='NetBSD (a.out) ld.so'
13509  else
13510    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13511    soname_spec='${libname}${release}${shared_ext}$major'
13512    dynamic_linker='NetBSD ld.elf_so'
13513  fi
13514  shlibpath_var=LD_LIBRARY_PATH
13515  shlibpath_overrides_runpath=yes
13516  hardcode_into_libs=yes
13517  ;;
13518
13519newsos6)
13520  version_type=linux
13521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13522  shlibpath_var=LD_LIBRARY_PATH
13523  shlibpath_overrides_runpath=yes
13524  ;;
13525
13526nto-qnx*)
13527  version_type=linux
13528  need_lib_prefix=no
13529  need_version=no
13530  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13531  soname_spec='${libname}${release}${shared_ext}$major'
13532  shlibpath_var=LD_LIBRARY_PATH
13533  shlibpath_overrides_runpath=yes
13534  ;;
13535
13536openbsd*)
13537  version_type=sunos
13538  sys_lib_dlsearch_path_spec="/usr/lib"
13539  need_lib_prefix=no
13540  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13541  case $host_os in
13542    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13543    *)                         need_version=no  ;;
13544  esac
13545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13546  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13547  shlibpath_var=LD_LIBRARY_PATH
13548  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13549    case $host_os in
13550      openbsd2.[89] | openbsd2.[89].*)
13551	shlibpath_overrides_runpath=no
13552	;;
13553      *)
13554	shlibpath_overrides_runpath=yes
13555	;;
13556      esac
13557  else
13558    shlibpath_overrides_runpath=yes
13559  fi
13560  ;;
13561
13562os2*)
13563  libname_spec='$name'
13564  shrext_cmds=".dll"
13565  need_lib_prefix=no
13566  library_names_spec='$libname${shared_ext} $libname.a'
13567  dynamic_linker='OS/2 ld.exe'
13568  shlibpath_var=LIBPATH
13569  ;;
13570
13571osf3* | osf4* | osf5*)
13572  version_type=osf
13573  need_lib_prefix=no
13574  need_version=no
13575  soname_spec='${libname}${release}${shared_ext}$major'
13576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577  shlibpath_var=LD_LIBRARY_PATH
13578  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13579  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13580  ;;
13581
13582rdos*)
13583  dynamic_linker=no
13584  ;;
13585
13586solaris*)
13587  version_type=linux
13588  need_lib_prefix=no
13589  need_version=no
13590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13591  soname_spec='${libname}${release}${shared_ext}$major'
13592  shlibpath_var=LD_LIBRARY_PATH
13593  shlibpath_overrides_runpath=yes
13594  hardcode_into_libs=yes
13595  # ldd complains unless libraries are executable
13596  postinstall_cmds='chmod +x $lib'
13597  ;;
13598
13599sunos4*)
13600  version_type=sunos
13601  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13602  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13603  shlibpath_var=LD_LIBRARY_PATH
13604  shlibpath_overrides_runpath=yes
13605  if test "$with_gnu_ld" = yes; then
13606    need_lib_prefix=no
13607  fi
13608  need_version=yes
13609  ;;
13610
13611sysv4 | sysv4.3*)
13612  version_type=linux
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  case $host_vendor in
13617    sni)
13618      shlibpath_overrides_runpath=no
13619      need_lib_prefix=no
13620      export_dynamic_flag_spec='${wl}-Blargedynsym'
13621      runpath_var=LD_RUN_PATH
13622      ;;
13623    siemens)
13624      need_lib_prefix=no
13625      ;;
13626    motorola)
13627      need_lib_prefix=no
13628      need_version=no
13629      shlibpath_overrides_runpath=no
13630      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13631      ;;
13632  esac
13633  ;;
13634
13635sysv4*MP*)
13636  if test -d /usr/nec ;then
13637    version_type=linux
13638    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13639    soname_spec='$libname${shared_ext}.$major'
13640    shlibpath_var=LD_LIBRARY_PATH
13641  fi
13642  ;;
13643
13644sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13645  version_type=freebsd-elf
13646  need_lib_prefix=no
13647  need_version=no
13648  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13649  soname_spec='${libname}${release}${shared_ext}$major'
13650  shlibpath_var=LD_LIBRARY_PATH
13651  hardcode_into_libs=yes
13652  if test "$with_gnu_ld" = yes; then
13653    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13654    shlibpath_overrides_runpath=no
13655  else
13656    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13657    shlibpath_overrides_runpath=yes
13658    case $host_os in
13659      sco3.2v5*)
13660        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13661	;;
13662    esac
13663  fi
13664  sys_lib_dlsearch_path_spec='/usr/lib'
13665  ;;
13666
13667uts4*)
13668  version_type=linux
13669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13670  soname_spec='${libname}${release}${shared_ext}$major'
13671  shlibpath_var=LD_LIBRARY_PATH
13672  ;;
13673
13674*)
13675  dynamic_linker=no
13676  ;;
13677esac
13678{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13679$as_echo "$dynamic_linker" >&6; }
13680test "$dynamic_linker" = no && can_build_shared=no
13681
13682if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13683  $as_echo_n "(cached) " >&6
13684else
13685  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13686fi
13687
13688sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13689if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13690  $as_echo_n "(cached) " >&6
13691else
13692  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13693fi
13694
13695sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13696
13697variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13698if test "$GCC" = yes; then
13699  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13700fi
13701
13702{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13703$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13704hardcode_action_CXX=
13705if test -n "$hardcode_libdir_flag_spec_CXX" || \
13706   test -n "$runpath_var_CXX" || \
13707   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13708
13709  # We can hardcode non-existant directories.
13710  if test "$hardcode_direct_CXX" != no &&
13711     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13712     # have to relink, otherwise we might link with an installed library
13713     # when we should be linking with a yet-to-be-installed one
13714     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13715     test "$hardcode_minus_L_CXX" != no; then
13716    # Linking always hardcodes the temporary library directory.
13717    hardcode_action_CXX=relink
13718  else
13719    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13720    hardcode_action_CXX=immediate
13721  fi
13722else
13723  # We cannot hardcode anything, or else we can only hardcode existing
13724  # directories.
13725  hardcode_action_CXX=unsupported
13726fi
13727{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13728$as_echo "$hardcode_action_CXX" >&6; }
13729
13730if test "$hardcode_action_CXX" = relink; then
13731  # Fast installation is not supported
13732  enable_fast_install=no
13733elif test "$shlibpath_overrides_runpath" = yes ||
13734     test "$enable_shared" = no; then
13735  # Fast installation is not necessary
13736  enable_fast_install=needless
13737fi
13738
13739
13740# The else clause should only fire when bootstrapping the
13741# libtool distribution, otherwise you forgot to ship ltmain.sh
13742# with your package, and you will get complaints that there are
13743# no rules to generate ltmain.sh.
13744if test -f "$ltmain"; then
13745  # See if we are running on zsh, and set the options which allow our commands through
13746  # without removal of \ escapes.
13747  if test -n "${ZSH_VERSION+set}" ; then
13748    setopt NO_GLOB_SUBST
13749  fi
13750  # Now quote all the things that may contain metacharacters while being
13751  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13752  # variables and quote the copies for generation of the libtool script.
13753  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13754    SED SHELL STRIP \
13755    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13756    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13757    deplibs_check_method reload_flag reload_cmds need_locks \
13758    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13759    lt_cv_sys_global_symbol_to_c_name_address \
13760    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13761    old_postinstall_cmds old_postuninstall_cmds \
13762    compiler_CXX \
13763    CC_CXX \
13764    LD_CXX \
13765    lt_prog_compiler_wl_CXX \
13766    lt_prog_compiler_pic_CXX \
13767    lt_prog_compiler_static_CXX \
13768    lt_prog_compiler_no_builtin_flag_CXX \
13769    export_dynamic_flag_spec_CXX \
13770    thread_safe_flag_spec_CXX \
13771    whole_archive_flag_spec_CXX \
13772    enable_shared_with_static_runtimes_CXX \
13773    old_archive_cmds_CXX \
13774    old_archive_from_new_cmds_CXX \
13775    predep_objects_CXX \
13776    postdep_objects_CXX \
13777    predeps_CXX \
13778    postdeps_CXX \
13779    compiler_lib_search_path_CXX \
13780    compiler_lib_search_dirs_CXX \
13781    archive_cmds_CXX \
13782    archive_expsym_cmds_CXX \
13783    postinstall_cmds_CXX \
13784    postuninstall_cmds_CXX \
13785    old_archive_from_expsyms_cmds_CXX \
13786    allow_undefined_flag_CXX \
13787    no_undefined_flag_CXX \
13788    export_symbols_cmds_CXX \
13789    hardcode_libdir_flag_spec_CXX \
13790    hardcode_libdir_flag_spec_ld_CXX \
13791    hardcode_libdir_separator_CXX \
13792    hardcode_automatic_CXX \
13793    module_cmds_CXX \
13794    module_expsym_cmds_CXX \
13795    lt_cv_prog_compiler_c_o_CXX \
13796    fix_srcfile_path_CXX \
13797    exclude_expsyms_CXX \
13798    include_expsyms_CXX; do
13799
13800    case $var in
13801    old_archive_cmds_CXX | \
13802    old_archive_from_new_cmds_CXX | \
13803    archive_cmds_CXX | \
13804    archive_expsym_cmds_CXX | \
13805    module_cmds_CXX | \
13806    module_expsym_cmds_CXX | \
13807    old_archive_from_expsyms_cmds_CXX | \
13808    export_symbols_cmds_CXX | \
13809    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13810    postinstall_cmds | postuninstall_cmds | \
13811    old_postinstall_cmds | old_postuninstall_cmds | \
13812    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13813      # Double-quote double-evaled strings.
13814      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13815      ;;
13816    *)
13817      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13818      ;;
13819    esac
13820  done
13821
13822  case $lt_echo in
13823  *'\$0 --fallback-echo"')
13824    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13825    ;;
13826  esac
13827
13828cfgfile="$ofile"
13829
13830  cat <<__EOF__ >> "$cfgfile"
13831# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13832
13833# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13834
13835# Shell to use when invoking shell scripts.
13836SHELL=$lt_SHELL
13837
13838# Whether or not to build shared libraries.
13839build_libtool_libs=$enable_shared
13840
13841# Whether or not to build static libraries.
13842build_old_libs=$enable_static
13843
13844# Whether or not to add -lc for building shared libraries.
13845build_libtool_need_lc=$archive_cmds_need_lc_CXX
13846
13847# Whether or not to disallow shared libs when runtime libs are static
13848allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13849
13850# Whether or not to optimize for fast installation.
13851fast_install=$enable_fast_install
13852
13853# The host system.
13854host_alias=$host_alias
13855host=$host
13856host_os=$host_os
13857
13858# The build system.
13859build_alias=$build_alias
13860build=$build
13861build_os=$build_os
13862
13863# An echo program that does not interpret backslashes.
13864echo=$lt_echo
13865
13866# The archiver.
13867AR=$lt_AR
13868AR_FLAGS=$lt_AR_FLAGS
13869
13870# A C compiler.
13871LTCC=$lt_LTCC
13872
13873# LTCC compiler flags.
13874LTCFLAGS=$lt_LTCFLAGS
13875
13876# A language-specific compiler.
13877CC=$lt_compiler_CXX
13878
13879# Is the compiler the GNU C compiler?
13880with_gcc=$GCC_CXX
13881
13882# An ERE matcher.
13883EGREP=$lt_EGREP
13884
13885# The linker used to build libraries.
13886LD=$lt_LD_CXX
13887
13888# Whether we need hard or soft links.
13889LN_S=$lt_LN_S
13890
13891# A BSD-compatible nm program.
13892NM=$lt_NM
13893
13894# A symbol stripping program
13895STRIP=$lt_STRIP
13896
13897# Used to examine libraries when file_magic_cmd begins "file"
13898MAGIC_CMD=$MAGIC_CMD
13899
13900# Used on cygwin: DLL creation program.
13901DLLTOOL="$DLLTOOL"
13902
13903# Used on cygwin: object dumper.
13904OBJDUMP="$OBJDUMP"
13905
13906# Used on cygwin: assembler.
13907AS="$AS"
13908
13909# The name of the directory that contains temporary libtool files.
13910objdir=$objdir
13911
13912# How to create reloadable object files.
13913reload_flag=$lt_reload_flag
13914reload_cmds=$lt_reload_cmds
13915
13916# How to pass a linker flag through the compiler.
13917wl=$lt_lt_prog_compiler_wl_CXX
13918
13919# Object file suffix (normally "o").
13920objext="$ac_objext"
13921
13922# Old archive suffix (normally "a").
13923libext="$libext"
13924
13925# Shared library suffix (normally ".so").
13926shrext_cmds='$shrext_cmds'
13927
13928# Executable file suffix (normally "").
13929exeext="$exeext"
13930
13931# Additional compiler flags for building library objects.
13932pic_flag=$lt_lt_prog_compiler_pic_CXX
13933pic_mode=$pic_mode
13934
13935# What is the maximum length of a command?
13936max_cmd_len=$lt_cv_sys_max_cmd_len
13937
13938# Does compiler simultaneously support -c and -o options?
13939compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13940
13941# Must we lock files when doing compilation?
13942need_locks=$lt_need_locks
13943
13944# Do we need the lib prefix for modules?
13945need_lib_prefix=$need_lib_prefix
13946
13947# Do we need a version for libraries?
13948need_version=$need_version
13949
13950# Whether dlopen is supported.
13951dlopen_support=$enable_dlopen
13952
13953# Whether dlopen of programs is supported.
13954dlopen_self=$enable_dlopen_self
13955
13956# Whether dlopen of statically linked programs is supported.
13957dlopen_self_static=$enable_dlopen_self_static
13958
13959# Compiler flag to prevent dynamic linking.
13960link_static_flag=$lt_lt_prog_compiler_static_CXX
13961
13962# Compiler flag to turn off builtin functions.
13963no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13964
13965# Compiler flag to allow reflexive dlopens.
13966export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13967
13968# Compiler flag to generate shared objects directly from archives.
13969whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13970
13971# Compiler flag to generate thread-safe objects.
13972thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13973
13974# Library versioning type.
13975version_type=$version_type
13976
13977# Format of library name prefix.
13978libname_spec=$lt_libname_spec
13979
13980# List of archive names.  First name is the real one, the rest are links.
13981# The last name is the one that the linker finds with -lNAME.
13982library_names_spec=$lt_library_names_spec
13983
13984# The coded name of the library, if different from the real name.
13985soname_spec=$lt_soname_spec
13986
13987# Commands used to build and install an old-style archive.
13988RANLIB=$lt_RANLIB
13989old_archive_cmds=$lt_old_archive_cmds_CXX
13990old_postinstall_cmds=$lt_old_postinstall_cmds
13991old_postuninstall_cmds=$lt_old_postuninstall_cmds
13992
13993# Create an old-style archive from a shared archive.
13994old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13995
13996# Create a temporary old-style archive to link instead of a shared archive.
13997old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13998
13999# Commands used to build and install a shared archive.
14000archive_cmds=$lt_archive_cmds_CXX
14001archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14002postinstall_cmds=$lt_postinstall_cmds
14003postuninstall_cmds=$lt_postuninstall_cmds
14004
14005# Commands used to build a loadable module (assumed same as above if empty)
14006module_cmds=$lt_module_cmds_CXX
14007module_expsym_cmds=$lt_module_expsym_cmds_CXX
14008
14009# Commands to strip libraries.
14010old_striplib=$lt_old_striplib
14011striplib=$lt_striplib
14012
14013# Dependencies to place before the objects being linked to create a
14014# shared library.
14015predep_objects=$lt_predep_objects_CXX
14016
14017# Dependencies to place after the objects being linked to create a
14018# shared library.
14019postdep_objects=$lt_postdep_objects_CXX
14020
14021# Dependencies to place before the objects being linked to create a
14022# shared library.
14023predeps=$lt_predeps_CXX
14024
14025# Dependencies to place after the objects being linked to create a
14026# shared library.
14027postdeps=$lt_postdeps_CXX
14028
14029# The directories searched by this compiler when creating a shared
14030# library
14031compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14032
14033# The library search path used internally by the compiler when linking
14034# a shared library.
14035compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14036
14037# Method to check whether dependent libraries are shared objects.
14038deplibs_check_method=$lt_deplibs_check_method
14039
14040# Command to use when deplibs_check_method == file_magic.
14041file_magic_cmd=$lt_file_magic_cmd
14042
14043# Flag that allows shared libraries with undefined symbols to be built.
14044allow_undefined_flag=$lt_allow_undefined_flag_CXX
14045
14046# Flag that forces no undefined symbols.
14047no_undefined_flag=$lt_no_undefined_flag_CXX
14048
14049# Commands used to finish a libtool library installation in a directory.
14050finish_cmds=$lt_finish_cmds
14051
14052# Same as above, but a single script fragment to be evaled but not shown.
14053finish_eval=$lt_finish_eval
14054
14055# Take the output of nm and produce a listing of raw symbols and C names.
14056global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14057
14058# Transform the output of nm in a proper C declaration
14059global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14060
14061# Transform the output of nm in a C name address pair
14062global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14063
14064# This is the shared library runtime path variable.
14065runpath_var=$runpath_var
14066
14067# This is the shared library path variable.
14068shlibpath_var=$shlibpath_var
14069
14070# Is shlibpath searched before the hard-coded library search path?
14071shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14072
14073# How to hardcode a shared library path into an executable.
14074hardcode_action=$hardcode_action_CXX
14075
14076# Whether we should hardcode library paths into libraries.
14077hardcode_into_libs=$hardcode_into_libs
14078
14079# Flag to hardcode \$libdir into a binary during linking.
14080# This must work even if \$libdir does not exist.
14081hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14082
14083# If ld is used when linking, flag to hardcode \$libdir into
14084# a binary during linking. This must work even if \$libdir does
14085# not exist.
14086hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14087
14088# Whether we need a single -rpath flag with a separated argument.
14089hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14090
14091# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14092# resulting binary.
14093hardcode_direct=$hardcode_direct_CXX
14094
14095# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14096# resulting binary.
14097hardcode_minus_L=$hardcode_minus_L_CXX
14098
14099# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14100# the resulting binary.
14101hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14102
14103# Set to yes if building a shared library automatically hardcodes DIR into the library
14104# and all subsequent libraries and executables linked against it.
14105hardcode_automatic=$hardcode_automatic_CXX
14106
14107# Variables whose values should be saved in libtool wrapper scripts and
14108# restored at relink time.
14109variables_saved_for_relink="$variables_saved_for_relink"
14110
14111# Whether libtool must link a program against all its dependency libraries.
14112link_all_deplibs=$link_all_deplibs_CXX
14113
14114# Compile-time system search path for libraries
14115sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14116
14117# Run-time system search path for libraries
14118sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14119
14120# Fix the shell variable \$srcfile for the compiler.
14121fix_srcfile_path=$lt_fix_srcfile_path
14122
14123# Set to yes if exported symbols are required.
14124always_export_symbols=$always_export_symbols_CXX
14125
14126# The commands to list exported symbols.
14127export_symbols_cmds=$lt_export_symbols_cmds_CXX
14128
14129# The commands to extract the exported symbol list from a shared archive.
14130extract_expsyms_cmds=$lt_extract_expsyms_cmds
14131
14132# Symbols that should not be listed in the preloaded symbols.
14133exclude_expsyms=$lt_exclude_expsyms_CXX
14134
14135# Symbols that must always be exported.
14136include_expsyms=$lt_include_expsyms_CXX
14137
14138# ### END LIBTOOL TAG CONFIG: $tagname
14139
14140__EOF__
14141
14142
14143else
14144  # If there is no Makefile yet, we rely on a make rule to execute
14145  # `config.status --recheck' to rerun these tests and create the
14146  # libtool script then.
14147  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14148  if test -f "$ltmain_in"; then
14149    test -f Makefile && make "$ltmain"
14150  fi
14151fi
14152
14153
14154ac_ext=c
14155ac_cpp='$CPP $CPPFLAGS'
14156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14158ac_compiler_gnu=$ac_cv_c_compiler_gnu
14159
14160CC=$lt_save_CC
14161LDCXX=$LD
14162LD=$lt_save_LD
14163GCC=$lt_save_GCC
14164with_gnu_ldcxx=$with_gnu_ld
14165with_gnu_ld=$lt_save_with_gnu_ld
14166lt_cv_path_LDCXX=$lt_cv_path_LD
14167lt_cv_path_LD=$lt_save_path_LD
14168lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14169lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14170
14171	else
14172	  tagname=""
14173	fi
14174	;;
14175
14176      F77)
14177	if test -n "$F77" && test "X$F77" != "Xno"; then
14178
14179ac_ext=f
14180ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14181ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14182ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14183
14184
14185archive_cmds_need_lc_F77=no
14186allow_undefined_flag_F77=
14187always_export_symbols_F77=no
14188archive_expsym_cmds_F77=
14189export_dynamic_flag_spec_F77=
14190hardcode_direct_F77=no
14191hardcode_libdir_flag_spec_F77=
14192hardcode_libdir_flag_spec_ld_F77=
14193hardcode_libdir_separator_F77=
14194hardcode_minus_L_F77=no
14195hardcode_automatic_F77=no
14196module_cmds_F77=
14197module_expsym_cmds_F77=
14198link_all_deplibs_F77=unknown
14199old_archive_cmds_F77=$old_archive_cmds
14200no_undefined_flag_F77=
14201whole_archive_flag_spec_F77=
14202enable_shared_with_static_runtimes_F77=no
14203
14204# Source file extension for f77 test sources.
14205ac_ext=f
14206
14207# Object file extension for compiled f77 test sources.
14208objext=o
14209objext_F77=$objext
14210
14211# Code to be used in simple compile tests
14212lt_simple_compile_test_code="\
14213      subroutine t
14214      return
14215      end
14216"
14217
14218# Code to be used in simple link tests
14219lt_simple_link_test_code="\
14220      program t
14221      end
14222"
14223
14224# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14225
14226# If no C compiler was specified, use CC.
14227LTCC=${LTCC-"$CC"}
14228
14229# If no C compiler flags were specified, use CFLAGS.
14230LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14231
14232# Allow CC to be a program name with arguments.
14233compiler=$CC
14234
14235
14236# save warnings/boilerplate of simple test code
14237ac_outfile=conftest.$ac_objext
14238echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14239eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14240_lt_compiler_boilerplate=`cat conftest.err`
14241$rm conftest*
14242
14243ac_outfile=conftest.$ac_objext
14244echo "$lt_simple_link_test_code" >conftest.$ac_ext
14245eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14246_lt_linker_boilerplate=`cat conftest.err`
14247$rm -r conftest*
14248
14249
14250# Allow CC to be a program name with arguments.
14251lt_save_CC="$CC"
14252CC=${F77-"f77"}
14253compiler=$CC
14254compiler_F77=$CC
14255for cc_temp in $compiler""; do
14256  case $cc_temp in
14257    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14258    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14259    \-*) ;;
14260    *) break;;
14261  esac
14262done
14263cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14264
14265
14266{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14267$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14268{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14269$as_echo "$can_build_shared" >&6; }
14270
14271{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14272$as_echo_n "checking whether to build shared libraries... " >&6; }
14273test "$can_build_shared" = "no" && enable_shared=no
14274
14275# On AIX, shared libraries and static libraries use the same namespace, and
14276# are all built from PIC.
14277case $host_os in
14278aix3*)
14279  test "$enable_shared" = yes && enable_static=no
14280  if test -n "$RANLIB"; then
14281    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14282    postinstall_cmds='$RANLIB $lib'
14283  fi
14284  ;;
14285aix[4-9]*)
14286  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14287    test "$enable_shared" = yes && enable_static=no
14288  fi
14289  ;;
14290esac
14291{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14292$as_echo "$enable_shared" >&6; }
14293
14294{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14295$as_echo_n "checking whether to build static libraries... " >&6; }
14296# Make sure either enable_shared or enable_static is yes.
14297test "$enable_shared" = yes || enable_static=yes
14298{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14299$as_echo "$enable_static" >&6; }
14300
14301GCC_F77="$G77"
14302LD_F77="$LD"
14303
14304lt_prog_compiler_wl_F77=
14305lt_prog_compiler_pic_F77=
14306lt_prog_compiler_static_F77=
14307
14308{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14309$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14310
14311  if test "$GCC" = yes; then
14312    lt_prog_compiler_wl_F77='-Wl,'
14313    lt_prog_compiler_static_F77='-static'
14314
14315    case $host_os in
14316      aix*)
14317      # All AIX code is PIC.
14318      if test "$host_cpu" = ia64; then
14319	# AIX 5 now supports IA64 processor
14320	lt_prog_compiler_static_F77='-Bstatic'
14321      fi
14322      ;;
14323
14324    amigaos*)
14325      # FIXME: we need at least 68020 code to build shared libraries, but
14326      # adding the `-m68020' flag to GCC prevents building anything better,
14327      # like `-m68040'.
14328      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14329      ;;
14330
14331    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14332      # PIC is the default for these OSes.
14333      ;;
14334
14335    mingw* | cygwin* | pw32* | os2*)
14336      # This hack is so that the source file can tell whether it is being
14337      # built for inclusion in a dll (and should export symbols for example).
14338      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14339      # (--disable-auto-import) libraries
14340      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14341      ;;
14342
14343    darwin* | rhapsody*)
14344      # PIC is the default on this platform
14345      # Common symbols not allowed in MH_DYLIB files
14346      lt_prog_compiler_pic_F77='-fno-common'
14347      ;;
14348
14349    interix[3-9]*)
14350      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14351      # Instead, we relocate shared libraries at runtime.
14352      ;;
14353
14354    msdosdjgpp*)
14355      # Just because we use GCC doesn't mean we suddenly get shared libraries
14356      # on systems that don't support them.
14357      lt_prog_compiler_can_build_shared_F77=no
14358      enable_shared=no
14359      ;;
14360
14361    sysv4*MP*)
14362      if test -d /usr/nec; then
14363	lt_prog_compiler_pic_F77=-Kconform_pic
14364      fi
14365      ;;
14366
14367    hpux*)
14368      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14369      # not for PA HP-UX.
14370      case $host_cpu in
14371      hppa*64*|ia64*)
14372	# +Z the default
14373	;;
14374      *)
14375	lt_prog_compiler_pic_F77='-fPIC'
14376	;;
14377      esac
14378      ;;
14379
14380    *)
14381      lt_prog_compiler_pic_F77='-fPIC'
14382      ;;
14383    esac
14384  else
14385    # PORTME Check for flag to pass linker flags through the system compiler.
14386    case $host_os in
14387    aix*)
14388      lt_prog_compiler_wl_F77='-Wl,'
14389      if test "$host_cpu" = ia64; then
14390	# AIX 5 now supports IA64 processor
14391	lt_prog_compiler_static_F77='-Bstatic'
14392      else
14393	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14394      fi
14395      ;;
14396      darwin*)
14397        # PIC is the default on this platform
14398        # Common symbols not allowed in MH_DYLIB files
14399       case $cc_basename in
14400         xlc*)
14401         lt_prog_compiler_pic_F77='-qnocommon'
14402         lt_prog_compiler_wl_F77='-Wl,'
14403         ;;
14404       esac
14405       ;;
14406
14407    mingw* | cygwin* | pw32* | os2*)
14408      # This hack is so that the source file can tell whether it is being
14409      # built for inclusion in a dll (and should export symbols for example).
14410      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14411      ;;
14412
14413    hpux9* | hpux10* | hpux11*)
14414      lt_prog_compiler_wl_F77='-Wl,'
14415      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14416      # not for PA HP-UX.
14417      case $host_cpu in
14418      hppa*64*|ia64*)
14419	# +Z the default
14420	;;
14421      *)
14422	lt_prog_compiler_pic_F77='+Z'
14423	;;
14424      esac
14425      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14426      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14427      ;;
14428
14429    irix5* | irix6* | nonstopux*)
14430      lt_prog_compiler_wl_F77='-Wl,'
14431      # PIC (with -KPIC) is the default.
14432      lt_prog_compiler_static_F77='-non_shared'
14433      ;;
14434
14435    newsos6)
14436      lt_prog_compiler_pic_F77='-KPIC'
14437      lt_prog_compiler_static_F77='-Bstatic'
14438      ;;
14439
14440    linux* | k*bsd*-gnu)
14441      case $cc_basename in
14442      icc* | ecc*)
14443	lt_prog_compiler_wl_F77='-Wl,'
14444	lt_prog_compiler_pic_F77='-KPIC'
14445	lt_prog_compiler_static_F77='-static'
14446        ;;
14447      pgcc* | pgf77* | pgf90* | pgf95*)
14448        # Portland Group compilers (*not* the Pentium gcc compiler,
14449	# which looks to be a dead project)
14450	lt_prog_compiler_wl_F77='-Wl,'
14451	lt_prog_compiler_pic_F77='-fpic'
14452	lt_prog_compiler_static_F77='-Bstatic'
14453        ;;
14454      ccc*)
14455        lt_prog_compiler_wl_F77='-Wl,'
14456        # All Alpha code is PIC.
14457        lt_prog_compiler_static_F77='-non_shared'
14458        ;;
14459      *)
14460        case `$CC -V 2>&1 | sed 5q` in
14461	*Sun\ C*)
14462	  # Sun C 5.9
14463	  lt_prog_compiler_pic_F77='-KPIC'
14464	  lt_prog_compiler_static_F77='-Bstatic'
14465	  lt_prog_compiler_wl_F77='-Wl,'
14466	  ;;
14467	*Sun\ F*)
14468	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14469	  lt_prog_compiler_pic_F77='-KPIC'
14470	  lt_prog_compiler_static_F77='-Bstatic'
14471	  lt_prog_compiler_wl_F77=''
14472	  ;;
14473	esac
14474	;;
14475      esac
14476      ;;
14477
14478    osf3* | osf4* | osf5*)
14479      lt_prog_compiler_wl_F77='-Wl,'
14480      # All OSF/1 code is PIC.
14481      lt_prog_compiler_static_F77='-non_shared'
14482      ;;
14483
14484    rdos*)
14485      lt_prog_compiler_static_F77='-non_shared'
14486      ;;
14487
14488    solaris*)
14489      lt_prog_compiler_pic_F77='-KPIC'
14490      lt_prog_compiler_static_F77='-Bstatic'
14491      case $cc_basename in
14492      f77* | f90* | f95*)
14493	lt_prog_compiler_wl_F77='-Qoption ld ';;
14494      *)
14495	lt_prog_compiler_wl_F77='-Wl,';;
14496      esac
14497      ;;
14498
14499    sunos4*)
14500      lt_prog_compiler_wl_F77='-Qoption ld '
14501      lt_prog_compiler_pic_F77='-PIC'
14502      lt_prog_compiler_static_F77='-Bstatic'
14503      ;;
14504
14505    sysv4 | sysv4.2uw2* | sysv4.3*)
14506      lt_prog_compiler_wl_F77='-Wl,'
14507      lt_prog_compiler_pic_F77='-KPIC'
14508      lt_prog_compiler_static_F77='-Bstatic'
14509      ;;
14510
14511    sysv4*MP*)
14512      if test -d /usr/nec ;then
14513	lt_prog_compiler_pic_F77='-Kconform_pic'
14514	lt_prog_compiler_static_F77='-Bstatic'
14515      fi
14516      ;;
14517
14518    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14519      lt_prog_compiler_wl_F77='-Wl,'
14520      lt_prog_compiler_pic_F77='-KPIC'
14521      lt_prog_compiler_static_F77='-Bstatic'
14522      ;;
14523
14524    unicos*)
14525      lt_prog_compiler_wl_F77='-Wl,'
14526      lt_prog_compiler_can_build_shared_F77=no
14527      ;;
14528
14529    uts4*)
14530      lt_prog_compiler_pic_F77='-pic'
14531      lt_prog_compiler_static_F77='-Bstatic'
14532      ;;
14533
14534    *)
14535      lt_prog_compiler_can_build_shared_F77=no
14536      ;;
14537    esac
14538  fi
14539
14540{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14541$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14542
14543#
14544# Check to make sure the PIC flag actually works.
14545#
14546if test -n "$lt_prog_compiler_pic_F77"; then
14547
14548{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14549$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14550if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14551  $as_echo_n "(cached) " >&6
14552else
14553  lt_cv_prog_compiler_pic_works_F77=no
14554  ac_outfile=conftest.$ac_objext
14555   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14556   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14557   # Insert the option either (1) after the last *FLAGS variable, or
14558   # (2) before a word containing "conftest.", or (3) at the end.
14559   # Note that $ac_compile itself does not contain backslashes and begins
14560   # with a dollar sign (not a hyphen), so the echo should work correctly.
14561   # The option is referenced via a variable to avoid confusing sed.
14562   lt_compile=`echo "$ac_compile" | $SED \
14563   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14564   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14565   -e 's:$: $lt_compiler_flag:'`
14566   (eval echo "\"\$as_me:14566: $lt_compile\"" >&5)
14567   (eval "$lt_compile" 2>conftest.err)
14568   ac_status=$?
14569   cat conftest.err >&5
14570   echo "$as_me:14570: \$? = $ac_status" >&5
14571   if (exit $ac_status) && test -s "$ac_outfile"; then
14572     # The compiler can only warn and ignore the option if not recognized
14573     # So say no if there are warnings other than the usual output.
14574     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14575     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14576     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14577       lt_cv_prog_compiler_pic_works_F77=yes
14578     fi
14579   fi
14580   $rm conftest*
14581
14582fi
14583{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14584$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14585
14586if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14587    case $lt_prog_compiler_pic_F77 in
14588     "" | " "*) ;;
14589     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14590     esac
14591else
14592    lt_prog_compiler_pic_F77=
14593     lt_prog_compiler_can_build_shared_F77=no
14594fi
14595
14596fi
14597case $host_os in
14598  # For platforms which do not support PIC, -DPIC is meaningless:
14599  *djgpp*)
14600    lt_prog_compiler_pic_F77=
14601    ;;
14602  *)
14603    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14604    ;;
14605esac
14606
14607#
14608# Check to make sure the static flag actually works.
14609#
14610wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14611{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14612$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14613if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14614  $as_echo_n "(cached) " >&6
14615else
14616  lt_cv_prog_compiler_static_works_F77=no
14617   save_LDFLAGS="$LDFLAGS"
14618   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14619   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14620   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14621     # The linker can only warn and ignore the option if not recognized
14622     # So say no if there are warnings
14623     if test -s conftest.err; then
14624       # Append any errors to the config.log.
14625       cat conftest.err 1>&5
14626       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14627       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14628       if diff conftest.exp conftest.er2 >/dev/null; then
14629         lt_cv_prog_compiler_static_works_F77=yes
14630       fi
14631     else
14632       lt_cv_prog_compiler_static_works_F77=yes
14633     fi
14634   fi
14635   $rm -r conftest*
14636   LDFLAGS="$save_LDFLAGS"
14637
14638fi
14639{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14640$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14641
14642if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14643    :
14644else
14645    lt_prog_compiler_static_F77=
14646fi
14647
14648
14649{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14650$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14651if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14652  $as_echo_n "(cached) " >&6
14653else
14654  lt_cv_prog_compiler_c_o_F77=no
14655   $rm -r conftest 2>/dev/null
14656   mkdir conftest
14657   cd conftest
14658   mkdir out
14659   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14660
14661   lt_compiler_flag="-o out/conftest2.$ac_objext"
14662   # Insert the option either (1) after the last *FLAGS variable, or
14663   # (2) before a word containing "conftest.", or (3) at the end.
14664   # Note that $ac_compile itself does not contain backslashes and begins
14665   # with a dollar sign (not a hyphen), so the echo should work correctly.
14666   lt_compile=`echo "$ac_compile" | $SED \
14667   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14668   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14669   -e 's:$: $lt_compiler_flag:'`
14670   (eval echo "\"\$as_me:14670: $lt_compile\"" >&5)
14671   (eval "$lt_compile" 2>out/conftest.err)
14672   ac_status=$?
14673   cat out/conftest.err >&5
14674   echo "$as_me:14674: \$? = $ac_status" >&5
14675   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14676   then
14677     # The compiler can only warn and ignore the option if not recognized
14678     # So say no if there are warnings
14679     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14680     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14681     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14682       lt_cv_prog_compiler_c_o_F77=yes
14683     fi
14684   fi
14685   chmod u+w . 2>&5
14686   $rm conftest*
14687   # SGI C++ compiler will create directory out/ii_files/ for
14688   # template instantiation
14689   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14690   $rm out/* && rmdir out
14691   cd ..
14692   rmdir conftest
14693   $rm conftest*
14694
14695fi
14696{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14697$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14698
14699
14700hard_links="nottested"
14701if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14702  # do not overwrite the value of need_locks provided by the user
14703  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14704$as_echo_n "checking if we can lock with hard links... " >&6; }
14705  hard_links=yes
14706  $rm conftest*
14707  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14708  touch conftest.a
14709  ln conftest.a conftest.b 2>&5 || hard_links=no
14710  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14711  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14712$as_echo "$hard_links" >&6; }
14713  if test "$hard_links" = no; then
14714    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14715$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14716    need_locks=warn
14717  fi
14718else
14719  need_locks=no
14720fi
14721
14722{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14723$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14724
14725  runpath_var=
14726  allow_undefined_flag_F77=
14727  enable_shared_with_static_runtimes_F77=no
14728  archive_cmds_F77=
14729  archive_expsym_cmds_F77=
14730  old_archive_From_new_cmds_F77=
14731  old_archive_from_expsyms_cmds_F77=
14732  export_dynamic_flag_spec_F77=
14733  whole_archive_flag_spec_F77=
14734  thread_safe_flag_spec_F77=
14735  hardcode_libdir_flag_spec_F77=
14736  hardcode_libdir_flag_spec_ld_F77=
14737  hardcode_libdir_separator_F77=
14738  hardcode_direct_F77=no
14739  hardcode_minus_L_F77=no
14740  hardcode_shlibpath_var_F77=unsupported
14741  link_all_deplibs_F77=unknown
14742  hardcode_automatic_F77=no
14743  module_cmds_F77=
14744  module_expsym_cmds_F77=
14745  always_export_symbols_F77=no
14746  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14747  # include_expsyms should be a list of space-separated symbols to be *always*
14748  # included in the symbol list
14749  include_expsyms_F77=
14750  # exclude_expsyms can be an extended regexp of symbols to exclude
14751  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14752  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14753  # as well as any symbol that contains `d'.
14754  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14755  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14756  # platforms (ab)use it in PIC code, but their linkers get confused if
14757  # the symbol is explicitly referenced.  Since portable code cannot
14758  # rely on this symbol name, it's probably fine to never include it in
14759  # preloaded symbol tables.
14760  # Exclude shared library initialization/finalization symbols.
14761  extract_expsyms_cmds=
14762  # Just being paranoid about ensuring that cc_basename is set.
14763  for cc_temp in $compiler""; do
14764  case $cc_temp in
14765    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14766    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14767    \-*) ;;
14768    *) break;;
14769  esac
14770done
14771cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14772
14773  case $host_os in
14774  cygwin* | mingw* | pw32*)
14775    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14776    # When not using gcc, we currently assume that we are using
14777    # Microsoft Visual C++.
14778    if test "$GCC" != yes; then
14779      with_gnu_ld=no
14780    fi
14781    ;;
14782  interix*)
14783    # we just hope/assume this is gcc and not c89 (= MSVC++)
14784    with_gnu_ld=yes
14785    ;;
14786  openbsd*)
14787    with_gnu_ld=no
14788    ;;
14789  esac
14790
14791  ld_shlibs_F77=yes
14792  if test "$with_gnu_ld" = yes; then
14793    # If archive_cmds runs LD, not CC, wlarc should be empty
14794    wlarc='${wl}'
14795
14796    # Set some defaults for GNU ld with shared library support. These
14797    # are reset later if shared libraries are not supported. Putting them
14798    # here allows them to be overridden if necessary.
14799    runpath_var=LD_RUN_PATH
14800    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14801    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14802    # ancient GNU ld didn't support --whole-archive et. al.
14803    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14804	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14805      else
14806  	whole_archive_flag_spec_F77=
14807    fi
14808    supports_anon_versioning=no
14809    case `$LD -v 2>/dev/null` in
14810      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14811      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14812      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14813      *\ 2.11.*) ;; # other 2.11 versions
14814      *) supports_anon_versioning=yes ;;
14815    esac
14816
14817    # See if GNU ld supports shared libraries.
14818    case $host_os in
14819    aix[3-9]*)
14820      # On AIX/PPC, the GNU linker is very broken
14821      if test "$host_cpu" != ia64; then
14822	ld_shlibs_F77=no
14823	cat <<EOF 1>&2
14824
14825*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14826*** to be unable to reliably create shared libraries on AIX.
14827*** Therefore, libtool is disabling shared libraries support.  If you
14828*** really care for shared libraries, you may want to modify your PATH
14829*** so that a non-GNU linker is found, and then restart.
14830
14831EOF
14832      fi
14833      ;;
14834
14835    amigaos*)
14836      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)'
14837      hardcode_libdir_flag_spec_F77='-L$libdir'
14838      hardcode_minus_L_F77=yes
14839
14840      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14841      # that the semantics of dynamic libraries on AmigaOS, at least up
14842      # to version 4, is to share data among multiple programs linked
14843      # with the same dynamic library.  Since this doesn't match the
14844      # behavior of shared libraries on other platforms, we can't use
14845      # them.
14846      ld_shlibs_F77=no
14847      ;;
14848
14849    beos*)
14850      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14851	allow_undefined_flag_F77=unsupported
14852	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14853	# support --undefined.  This deserves some investigation.  FIXME
14854	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14855      else
14856	ld_shlibs_F77=no
14857      fi
14858      ;;
14859
14860    cygwin* | mingw* | pw32*)
14861      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14862      # as there is no search path for DLLs.
14863      hardcode_libdir_flag_spec_F77='-L$libdir'
14864      allow_undefined_flag_F77=unsupported
14865      always_export_symbols_F77=no
14866      enable_shared_with_static_runtimes_F77=yes
14867      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14868
14869      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14870        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14871	# If the export-symbols file already is a .def file (1st line
14872	# is EXPORTS), use it as is; otherwise, prepend...
14873	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14874	  cp $export_symbols $output_objdir/$soname.def;
14875	else
14876	  echo EXPORTS > $output_objdir/$soname.def;
14877	  cat $export_symbols >> $output_objdir/$soname.def;
14878	fi~
14879	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14880      else
14881	ld_shlibs_F77=no
14882      fi
14883      ;;
14884
14885    interix[3-9]*)
14886      hardcode_direct_F77=no
14887      hardcode_shlibpath_var_F77=no
14888      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14889      export_dynamic_flag_spec_F77='${wl}-E'
14890      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14891      # Instead, shared libraries are loaded at an image base (0x10000000 by
14892      # default) and relocated if they conflict, which is a slow very memory
14893      # consuming and fragmenting process.  To avoid this, we pick a random,
14894      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14895      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14896      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'
14897      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'
14898      ;;
14899
14900    gnu* | linux* | k*bsd*-gnu)
14901      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14902	tmp_addflag=
14903	case $cc_basename,$host_cpu in
14904	pgcc*)				# Portland Group C compiler
14905	  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'
14906	  tmp_addflag=' $pic_flag'
14907	  ;;
14908	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14909	  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'
14910	  tmp_addflag=' $pic_flag -Mnomain' ;;
14911	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14912	  tmp_addflag=' -i_dynamic' ;;
14913	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14914	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14915	ifc* | ifort*)			# Intel Fortran compiler
14916	  tmp_addflag=' -nofor_main' ;;
14917	esac
14918	case `$CC -V 2>&1 | sed 5q` in
14919	*Sun\ C*)			# Sun C 5.9
14920	  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'
14921	  tmp_sharedflag='-G' ;;
14922	*Sun\ F*)			# Sun Fortran 8.3
14923	  tmp_sharedflag='-G' ;;
14924	*)
14925	  tmp_sharedflag='-shared' ;;
14926	esac
14927	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14928
14929	if test $supports_anon_versioning = yes; then
14930	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14931  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14932  $echo "local: *; };" >> $output_objdir/$libname.ver~
14933	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14934	fi
14935      else
14936	ld_shlibs_F77=no
14937      fi
14938      ;;
14939
14940    netbsd*)
14941      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14942	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14943	wlarc=
14944      else
14945	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14946	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14947      fi
14948      ;;
14949
14950    solaris*)
14951      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14952	ld_shlibs_F77=no
14953	cat <<EOF 1>&2
14954
14955*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14956*** create shared libraries on Solaris systems.  Therefore, libtool
14957*** is disabling shared libraries support.  We urge you to upgrade GNU
14958*** binutils to release 2.9.1 or newer.  Another option is to modify
14959*** your PATH or compiler configuration so that the native linker is
14960*** used, and then restart.
14961
14962EOF
14963      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14964	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14965	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14966      else
14967	ld_shlibs_F77=no
14968      fi
14969      ;;
14970
14971    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14972      case `$LD -v 2>&1` in
14973        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14974	ld_shlibs_F77=no
14975	cat <<_LT_EOF 1>&2
14976
14977*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14978*** reliably create shared libraries on SCO systems.  Therefore, libtool
14979*** is disabling shared libraries support.  We urge you to upgrade GNU
14980*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14981*** your PATH or compiler configuration so that the native linker is
14982*** used, and then restart.
14983
14984_LT_EOF
14985	;;
14986	*)
14987	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14988	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14989	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14990	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14991	  else
14992	    ld_shlibs_F77=no
14993	  fi
14994	;;
14995      esac
14996      ;;
14997
14998    sunos4*)
14999      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15000      wlarc=
15001      hardcode_direct_F77=yes
15002      hardcode_shlibpath_var_F77=no
15003      ;;
15004
15005    *)
15006      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15007	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15008	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15009      else
15010	ld_shlibs_F77=no
15011      fi
15012      ;;
15013    esac
15014
15015    if test "$ld_shlibs_F77" = no; then
15016      runpath_var=
15017      hardcode_libdir_flag_spec_F77=
15018      export_dynamic_flag_spec_F77=
15019      whole_archive_flag_spec_F77=
15020    fi
15021  else
15022    # PORTME fill in a description of your system's linker (not GNU ld)
15023    case $host_os in
15024    aix3*)
15025      allow_undefined_flag_F77=unsupported
15026      always_export_symbols_F77=yes
15027      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'
15028      # Note: this linker hardcodes the directories in LIBPATH if there
15029      # are no directories specified by -L.
15030      hardcode_minus_L_F77=yes
15031      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15032	# Neither direct hardcoding nor static linking is supported with a
15033	# broken collect2.
15034	hardcode_direct_F77=unsupported
15035      fi
15036      ;;
15037
15038    aix[4-9]*)
15039      if test "$host_cpu" = ia64; then
15040	# On IA64, the linker does run time linking by default, so we don't
15041	# have to do anything special.
15042	aix_use_runtimelinking=no
15043	exp_sym_flag='-Bexport'
15044	no_entry_flag=""
15045      else
15046	# If we're using GNU nm, then we don't want the "-C" option.
15047	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15048	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15049	  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'
15050	else
15051	  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'
15052	fi
15053	aix_use_runtimelinking=no
15054
15055	# Test if we are trying to use run time linking or normal
15056	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15057	# need to do runtime linking.
15058	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15059	  for ld_flag in $LDFLAGS; do
15060  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15061  	    aix_use_runtimelinking=yes
15062  	    break
15063  	  fi
15064	  done
15065	  ;;
15066	esac
15067
15068	exp_sym_flag='-bexport'
15069	no_entry_flag='-bnoentry'
15070      fi
15071
15072      # When large executables or shared objects are built, AIX ld can
15073      # have problems creating the table of contents.  If linking a library
15074      # or program results in "error TOC overflow" add -mminimal-toc to
15075      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15076      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15077
15078      archive_cmds_F77=''
15079      hardcode_direct_F77=yes
15080      hardcode_libdir_separator_F77=':'
15081      link_all_deplibs_F77=yes
15082
15083      if test "$GCC" = yes; then
15084	case $host_os in aix4.[012]|aix4.[012].*)
15085	# We only want to do this on AIX 4.2 and lower, the check
15086	# below for broken collect2 doesn't work under 4.3+
15087	  collect2name=`${CC} -print-prog-name=collect2`
15088	  if test -f "$collect2name" && \
15089  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15090	  then
15091  	  # We have reworked collect2
15092  	  :
15093	  else
15094  	  # We have old collect2
15095  	  hardcode_direct_F77=unsupported
15096  	  # It fails to find uninstalled libraries when the uninstalled
15097  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15098  	  # to unsupported forces relinking
15099  	  hardcode_minus_L_F77=yes
15100  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15101  	  hardcode_libdir_separator_F77=
15102	  fi
15103	  ;;
15104	esac
15105	shared_flag='-shared'
15106	if test "$aix_use_runtimelinking" = yes; then
15107	  shared_flag="$shared_flag "'${wl}-G'
15108	fi
15109      else
15110	# not using gcc
15111	if test "$host_cpu" = ia64; then
15112  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15113  	# chokes on -Wl,-G. The following line is correct:
15114	  shared_flag='-G'
15115	else
15116	  if test "$aix_use_runtimelinking" = yes; then
15117	    shared_flag='${wl}-G'
15118	  else
15119	    shared_flag='${wl}-bM:SRE'
15120	  fi
15121	fi
15122      fi
15123
15124      # It seems that -bexpall does not export symbols beginning with
15125      # underscore (_), so it is better to generate a list of symbols to export.
15126      always_export_symbols_F77=yes
15127      if test "$aix_use_runtimelinking" = yes; then
15128	# Warning - without using the other runtime loading flags (-brtl),
15129	# -berok will link without error, but may produce a broken library.
15130	allow_undefined_flag_F77='-berok'
15131       # Determine the default libpath from the value encoded in an empty executable.
15132       cat >conftest.$ac_ext <<_ACEOF
15133      program main
15134
15135      end
15136_ACEOF
15137rm -f conftest.$ac_objext conftest$ac_exeext
15138if { (ac_try="$ac_link"
15139case "(($ac_try" in
15140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141  *) ac_try_echo=$ac_try;;
15142esac
15143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15144$as_echo "$ac_try_echo") >&5
15145  (eval "$ac_link") 2>conftest.er1
15146  ac_status=$?
15147  grep -v '^ *+' conftest.er1 >conftest.err
15148  rm -f conftest.er1
15149  cat conftest.err >&5
15150  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151  (exit $ac_status); } && {
15152	 test -z "$ac_f77_werror_flag" ||
15153	 test ! -s conftest.err
15154       } && test -s conftest$ac_exeext && {
15155	 test "$cross_compiling" = yes ||
15156	 $as_test_x conftest$ac_exeext
15157       }; then
15158
15159lt_aix_libpath_sed='
15160    /Import File Strings/,/^$/ {
15161	/^0/ {
15162	    s/^0  *\(.*\)$/\1/
15163	    p
15164	}
15165    }'
15166aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15167# Check for a 64-bit object if we didn't find anything.
15168if test -z "$aix_libpath"; then
15169  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15170fi
15171else
15172  $as_echo "$as_me: failed program was:" >&5
15173sed 's/^/| /' conftest.$ac_ext >&5
15174
15175
15176fi
15177
15178rm -rf conftest.dSYM
15179rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15180      conftest$ac_exeext conftest.$ac_ext
15181if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15182
15183       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15184	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"
15185       else
15186	if test "$host_cpu" = ia64; then
15187	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15188	  allow_undefined_flag_F77="-z nodefs"
15189	  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"
15190	else
15191	 # Determine the default libpath from the value encoded in an empty executable.
15192	 cat >conftest.$ac_ext <<_ACEOF
15193      program main
15194
15195      end
15196_ACEOF
15197rm -f conftest.$ac_objext conftest$ac_exeext
15198if { (ac_try="$ac_link"
15199case "(($ac_try" in
15200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15201  *) ac_try_echo=$ac_try;;
15202esac
15203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15204$as_echo "$ac_try_echo") >&5
15205  (eval "$ac_link") 2>conftest.er1
15206  ac_status=$?
15207  grep -v '^ *+' conftest.er1 >conftest.err
15208  rm -f conftest.er1
15209  cat conftest.err >&5
15210  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211  (exit $ac_status); } && {
15212	 test -z "$ac_f77_werror_flag" ||
15213	 test ! -s conftest.err
15214       } && test -s conftest$ac_exeext && {
15215	 test "$cross_compiling" = yes ||
15216	 $as_test_x conftest$ac_exeext
15217       }; then
15218
15219lt_aix_libpath_sed='
15220    /Import File Strings/,/^$/ {
15221	/^0/ {
15222	    s/^0  *\(.*\)$/\1/
15223	    p
15224	}
15225    }'
15226aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15227# Check for a 64-bit object if we didn't find anything.
15228if test -z "$aix_libpath"; then
15229  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15230fi
15231else
15232  $as_echo "$as_me: failed program was:" >&5
15233sed 's/^/| /' conftest.$ac_ext >&5
15234
15235
15236fi
15237
15238rm -rf conftest.dSYM
15239rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15240      conftest$ac_exeext conftest.$ac_ext
15241if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15242
15243	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15244	  # Warning - without using the other run time loading flags,
15245	  # -berok will link without error, but may produce a broken library.
15246	  no_undefined_flag_F77=' ${wl}-bernotok'
15247	  allow_undefined_flag_F77=' ${wl}-berok'
15248	  # Exported symbols can be pulled into shared objects from archives
15249	  whole_archive_flag_spec_F77='$convenience'
15250	  archive_cmds_need_lc_F77=yes
15251	  # This is similar to how AIX traditionally builds its shared libraries.
15252	  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'
15253	fi
15254      fi
15255      ;;
15256
15257    amigaos*)
15258      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)'
15259      hardcode_libdir_flag_spec_F77='-L$libdir'
15260      hardcode_minus_L_F77=yes
15261      # see comment about different semantics on the GNU ld section
15262      ld_shlibs_F77=no
15263      ;;
15264
15265    bsdi[45]*)
15266      export_dynamic_flag_spec_F77=-rdynamic
15267      ;;
15268
15269    cygwin* | mingw* | pw32*)
15270      # When not using gcc, we currently assume that we are using
15271      # Microsoft Visual C++.
15272      # hardcode_libdir_flag_spec is actually meaningless, as there is
15273      # no search path for DLLs.
15274      hardcode_libdir_flag_spec_F77=' '
15275      allow_undefined_flag_F77=unsupported
15276      # Tell ltmain to make .lib files, not .a files.
15277      libext=lib
15278      # Tell ltmain to make .dll files, not .so files.
15279      shrext_cmds=".dll"
15280      # FIXME: Setting linknames here is a bad hack.
15281      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15282      # The linker will automatically build a .lib file if we build a DLL.
15283      old_archive_From_new_cmds_F77='true'
15284      # FIXME: Should let the user specify the lib program.
15285      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15286      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15287      enable_shared_with_static_runtimes_F77=yes
15288      ;;
15289
15290    darwin* | rhapsody*)
15291      case $host_os in
15292        rhapsody* | darwin1.[012])
15293         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15294         ;;
15295       *) # Darwin 1.3 on
15296         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15297           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15298         else
15299           case ${MACOSX_DEPLOYMENT_TARGET} in
15300             10.[012])
15301               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15302               ;;
15303             10.*)
15304               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15305               ;;
15306           esac
15307         fi
15308         ;;
15309      esac
15310      archive_cmds_need_lc_F77=no
15311      hardcode_direct_F77=no
15312      hardcode_automatic_F77=yes
15313      hardcode_shlibpath_var_F77=unsupported
15314      whole_archive_flag_spec_F77=''
15315      link_all_deplibs_F77=yes
15316    if test "$GCC" = yes ; then
15317    	output_verbose_link_cmd='echo'
15318        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}"
15319        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15320        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}"
15321        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}"
15322    else
15323      case $cc_basename in
15324        xlc*)
15325         output_verbose_link_cmd='echo'
15326         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15327         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15328          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15329         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}'
15330          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}'
15331          ;;
15332       *)
15333         ld_shlibs_F77=no
15334          ;;
15335      esac
15336    fi
15337      ;;
15338
15339    dgux*)
15340      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15341      hardcode_libdir_flag_spec_F77='-L$libdir'
15342      hardcode_shlibpath_var_F77=no
15343      ;;
15344
15345    freebsd1*)
15346      ld_shlibs_F77=no
15347      ;;
15348
15349    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15350    # support.  Future versions do this automatically, but an explicit c++rt0.o
15351    # does not break anything, and helps significantly (at the cost of a little
15352    # extra space).
15353    freebsd2.2*)
15354      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15355      hardcode_libdir_flag_spec_F77='-R$libdir'
15356      hardcode_direct_F77=yes
15357      hardcode_shlibpath_var_F77=no
15358      ;;
15359
15360    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15361    freebsd2*)
15362      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15363      hardcode_direct_F77=yes
15364      hardcode_minus_L_F77=yes
15365      hardcode_shlibpath_var_F77=no
15366      ;;
15367
15368    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15369    freebsd* | dragonfly*)
15370      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15371      hardcode_libdir_flag_spec_F77='-R$libdir'
15372      hardcode_direct_F77=yes
15373      hardcode_shlibpath_var_F77=no
15374      ;;
15375
15376    hpux9*)
15377      if test "$GCC" = yes; then
15378	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'
15379      else
15380	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'
15381      fi
15382      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15383      hardcode_libdir_separator_F77=:
15384      hardcode_direct_F77=yes
15385
15386      # hardcode_minus_L: Not really in the search PATH,
15387      # but as the default location of the library.
15388      hardcode_minus_L_F77=yes
15389      export_dynamic_flag_spec_F77='${wl}-E'
15390      ;;
15391
15392    hpux10*)
15393      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15394	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15395      else
15396	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15397      fi
15398      if test "$with_gnu_ld" = no; then
15399	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15400	hardcode_libdir_separator_F77=:
15401
15402	hardcode_direct_F77=yes
15403	export_dynamic_flag_spec_F77='${wl}-E'
15404
15405	# hardcode_minus_L: Not really in the search PATH,
15406	# but as the default location of the library.
15407	hardcode_minus_L_F77=yes
15408      fi
15409      ;;
15410
15411    hpux11*)
15412      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15413	case $host_cpu in
15414	hppa*64*)
15415	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15416	  ;;
15417	ia64*)
15418	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15419	  ;;
15420	*)
15421	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15422	  ;;
15423	esac
15424      else
15425	case $host_cpu in
15426	hppa*64*)
15427	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15428	  ;;
15429	ia64*)
15430	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15431	  ;;
15432	*)
15433	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15434	  ;;
15435	esac
15436      fi
15437      if test "$with_gnu_ld" = no; then
15438	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15439	hardcode_libdir_separator_F77=:
15440
15441	case $host_cpu in
15442	hppa*64*|ia64*)
15443	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15444	  hardcode_direct_F77=no
15445	  hardcode_shlibpath_var_F77=no
15446	  ;;
15447	*)
15448	  hardcode_direct_F77=yes
15449	  export_dynamic_flag_spec_F77='${wl}-E'
15450
15451	  # hardcode_minus_L: Not really in the search PATH,
15452	  # but as the default location of the library.
15453	  hardcode_minus_L_F77=yes
15454	  ;;
15455	esac
15456      fi
15457      ;;
15458
15459    irix5* | irix6* | nonstopux*)
15460      if test "$GCC" = yes; then
15461	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'
15462      else
15463	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'
15464	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15465      fi
15466      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15467      hardcode_libdir_separator_F77=:
15468      link_all_deplibs_F77=yes
15469      ;;
15470
15471    netbsd*)
15472      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15473	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15474      else
15475	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15476      fi
15477      hardcode_libdir_flag_spec_F77='-R$libdir'
15478      hardcode_direct_F77=yes
15479      hardcode_shlibpath_var_F77=no
15480      ;;
15481
15482    newsos6)
15483      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15484      hardcode_direct_F77=yes
15485      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15486      hardcode_libdir_separator_F77=:
15487      hardcode_shlibpath_var_F77=no
15488      ;;
15489
15490    openbsd*)
15491      if test -f /usr/libexec/ld.so; then
15492	hardcode_direct_F77=yes
15493	hardcode_shlibpath_var_F77=no
15494	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15495	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15496	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15497	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15498	  export_dynamic_flag_spec_F77='${wl}-E'
15499	else
15500	  case $host_os in
15501	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15502	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15503	     hardcode_libdir_flag_spec_F77='-R$libdir'
15504	     ;;
15505	   *)
15506	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15507	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15508	     ;;
15509	  esac
15510        fi
15511      else
15512	ld_shlibs_F77=no
15513      fi
15514      ;;
15515
15516    os2*)
15517      hardcode_libdir_flag_spec_F77='-L$libdir'
15518      hardcode_minus_L_F77=yes
15519      allow_undefined_flag_F77=unsupported
15520      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'
15521      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15522      ;;
15523
15524    osf3*)
15525      if test "$GCC" = yes; then
15526	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15527	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'
15528      else
15529	allow_undefined_flag_F77=' -expect_unresolved \*'
15530	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'
15531      fi
15532      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15533      hardcode_libdir_separator_F77=:
15534      ;;
15535
15536    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15537      if test "$GCC" = yes; then
15538	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15539	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'
15540	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15541      else
15542	allow_undefined_flag_F77=' -expect_unresolved \*'
15543	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'
15544	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~
15545	$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'
15546
15547	# Both c and cxx compiler support -rpath directly
15548	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15549      fi
15550      hardcode_libdir_separator_F77=:
15551      ;;
15552
15553    solaris*)
15554      no_undefined_flag_F77=' -z text'
15555      if test "$GCC" = yes; then
15556	wlarc='${wl}'
15557	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15558	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15559	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15560      else
15561	wlarc=''
15562	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15563	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15564  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15565      fi
15566      hardcode_libdir_flag_spec_F77='-R$libdir'
15567      hardcode_shlibpath_var_F77=no
15568      case $host_os in
15569      solaris2.[0-5] | solaris2.[0-5].*) ;;
15570      *)
15571	# The compiler driver will combine and reorder linker options,
15572	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15573	# but is careful enough not to reorder.
15574 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15575	if test "$GCC" = yes; then
15576	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15577	else
15578	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15579	fi
15580	;;
15581      esac
15582      link_all_deplibs_F77=yes
15583      ;;
15584
15585    sunos4*)
15586      if test "x$host_vendor" = xsequent; then
15587	# Use $CC to link under sequent, because it throws in some extra .o
15588	# files that make .init and .fini sections work.
15589	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15590      else
15591	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15592      fi
15593      hardcode_libdir_flag_spec_F77='-L$libdir'
15594      hardcode_direct_F77=yes
15595      hardcode_minus_L_F77=yes
15596      hardcode_shlibpath_var_F77=no
15597      ;;
15598
15599    sysv4)
15600      case $host_vendor in
15601	sni)
15602	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15603	  hardcode_direct_F77=yes # is this really true???
15604	;;
15605	siemens)
15606	  ## LD is ld it makes a PLAMLIB
15607	  ## CC just makes a GrossModule.
15608	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15609	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15610	  hardcode_direct_F77=no
15611        ;;
15612	motorola)
15613	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15614	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15615	;;
15616      esac
15617      runpath_var='LD_RUN_PATH'
15618      hardcode_shlibpath_var_F77=no
15619      ;;
15620
15621    sysv4.3*)
15622      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15623      hardcode_shlibpath_var_F77=no
15624      export_dynamic_flag_spec_F77='-Bexport'
15625      ;;
15626
15627    sysv4*MP*)
15628      if test -d /usr/nec; then
15629	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15630	hardcode_shlibpath_var_F77=no
15631	runpath_var=LD_RUN_PATH
15632	hardcode_runpath_var=yes
15633	ld_shlibs_F77=yes
15634      fi
15635      ;;
15636
15637    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15638      no_undefined_flag_F77='${wl}-z,text'
15639      archive_cmds_need_lc_F77=no
15640      hardcode_shlibpath_var_F77=no
15641      runpath_var='LD_RUN_PATH'
15642
15643      if test "$GCC" = yes; then
15644	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15645	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15646      else
15647	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15648	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15649      fi
15650      ;;
15651
15652    sysv5* | sco3.2v5* | sco5v6*)
15653      # Note: We can NOT use -z defs as we might desire, because we do not
15654      # link with -lc, and that would cause any symbols used from libc to
15655      # always be unresolved, which means just about no library would
15656      # ever link correctly.  If we're not using GNU ld we use -z text
15657      # though, which does catch some bad symbols but isn't as heavy-handed
15658      # as -z defs.
15659      no_undefined_flag_F77='${wl}-z,text'
15660      allow_undefined_flag_F77='${wl}-z,nodefs'
15661      archive_cmds_need_lc_F77=no
15662      hardcode_shlibpath_var_F77=no
15663      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15664      hardcode_libdir_separator_F77=':'
15665      link_all_deplibs_F77=yes
15666      export_dynamic_flag_spec_F77='${wl}-Bexport'
15667      runpath_var='LD_RUN_PATH'
15668
15669      if test "$GCC" = yes; then
15670	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15671	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15672      else
15673	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15674	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15675      fi
15676      ;;
15677
15678    uts4*)
15679      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15680      hardcode_libdir_flag_spec_F77='-L$libdir'
15681      hardcode_shlibpath_var_F77=no
15682      ;;
15683
15684    *)
15685      ld_shlibs_F77=no
15686      ;;
15687    esac
15688  fi
15689
15690{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15691$as_echo "$ld_shlibs_F77" >&6; }
15692test "$ld_shlibs_F77" = no && can_build_shared=no
15693
15694#
15695# Do we need to explicitly link libc?
15696#
15697case "x$archive_cmds_need_lc_F77" in
15698x|xyes)
15699  # Assume -lc should be added
15700  archive_cmds_need_lc_F77=yes
15701
15702  if test "$enable_shared" = yes && test "$GCC" = yes; then
15703    case $archive_cmds_F77 in
15704    *'~'*)
15705      # FIXME: we may have to deal with multi-command sequences.
15706      ;;
15707    '$CC '*)
15708      # Test whether the compiler implicitly links with -lc since on some
15709      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15710      # to ld, don't add -lc before -lgcc.
15711      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15712$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15713      $rm conftest*
15714      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15715
15716      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15717  (eval $ac_compile) 2>&5
15718  ac_status=$?
15719  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720  (exit $ac_status); } 2>conftest.err; then
15721        soname=conftest
15722        lib=conftest
15723        libobjs=conftest.$ac_objext
15724        deplibs=
15725        wl=$lt_prog_compiler_wl_F77
15726	pic_flag=$lt_prog_compiler_pic_F77
15727        compiler_flags=-v
15728        linker_flags=-v
15729        verstring=
15730        output_objdir=.
15731        libname=conftest
15732        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15733        allow_undefined_flag_F77=
15734        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15735  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15736  ac_status=$?
15737  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738  (exit $ac_status); }
15739        then
15740	  archive_cmds_need_lc_F77=no
15741        else
15742	  archive_cmds_need_lc_F77=yes
15743        fi
15744        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15745      else
15746        cat conftest.err 1>&5
15747      fi
15748      $rm conftest*
15749      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15750$as_echo "$archive_cmds_need_lc_F77" >&6; }
15751      ;;
15752    esac
15753  fi
15754  ;;
15755esac
15756
15757{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15758$as_echo_n "checking dynamic linker characteristics... " >&6; }
15759library_names_spec=
15760libname_spec='lib$name'
15761soname_spec=
15762shrext_cmds=".so"
15763postinstall_cmds=
15764postuninstall_cmds=
15765finish_cmds=
15766finish_eval=
15767shlibpath_var=
15768shlibpath_overrides_runpath=unknown
15769version_type=none
15770dynamic_linker="$host_os ld.so"
15771sys_lib_dlsearch_path_spec="/lib /usr/lib"
15772
15773need_lib_prefix=unknown
15774hardcode_into_libs=no
15775
15776# when you set need_version to no, make sure it does not cause -set_version
15777# flags to be left without arguments
15778need_version=unknown
15779
15780case $host_os in
15781aix3*)
15782  version_type=linux
15783  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15784  shlibpath_var=LIBPATH
15785
15786  # AIX 3 has no versioning support, so we append a major version to the name.
15787  soname_spec='${libname}${release}${shared_ext}$major'
15788  ;;
15789
15790aix[4-9]*)
15791  version_type=linux
15792  need_lib_prefix=no
15793  need_version=no
15794  hardcode_into_libs=yes
15795  if test "$host_cpu" = ia64; then
15796    # AIX 5 supports IA64
15797    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15798    shlibpath_var=LD_LIBRARY_PATH
15799  else
15800    # With GCC up to 2.95.x, collect2 would create an import file
15801    # for dependence libraries.  The import file would start with
15802    # the line `#! .'.  This would cause the generated library to
15803    # depend on `.', always an invalid library.  This was fixed in
15804    # development snapshots of GCC prior to 3.0.
15805    case $host_os in
15806      aix4 | aix4.[01] | aix4.[01].*)
15807      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15808	   echo ' yes '
15809	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15810	:
15811      else
15812	can_build_shared=no
15813      fi
15814      ;;
15815    esac
15816    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15817    # soname into executable. Probably we can add versioning support to
15818    # collect2, so additional links can be useful in future.
15819    if test "$aix_use_runtimelinking" = yes; then
15820      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15821      # instead of lib<name>.a to let people know that these are not
15822      # typical AIX shared libraries.
15823      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15824    else
15825      # We preserve .a as extension for shared libraries through AIX4.2
15826      # and later when we are not doing run time linking.
15827      library_names_spec='${libname}${release}.a $libname.a'
15828      soname_spec='${libname}${release}${shared_ext}$major'
15829    fi
15830    shlibpath_var=LIBPATH
15831  fi
15832  ;;
15833
15834amigaos*)
15835  library_names_spec='$libname.ixlibrary $libname.a'
15836  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15837  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'
15838  ;;
15839
15840beos*)
15841  library_names_spec='${libname}${shared_ext}'
15842  dynamic_linker="$host_os ld.so"
15843  shlibpath_var=LIBRARY_PATH
15844  ;;
15845
15846bsdi[45]*)
15847  version_type=linux
15848  need_version=no
15849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15850  soname_spec='${libname}${release}${shared_ext}$major'
15851  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15852  shlibpath_var=LD_LIBRARY_PATH
15853  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15854  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15855  # the default ld.so.conf also contains /usr/contrib/lib and
15856  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15857  # libtool to hard-code these into programs
15858  ;;
15859
15860cygwin* | mingw* | pw32*)
15861  version_type=windows
15862  shrext_cmds=".dll"
15863  need_version=no
15864  need_lib_prefix=no
15865
15866  case $GCC,$host_os in
15867  yes,cygwin* | yes,mingw* | yes,pw32*)
15868    library_names_spec='$libname.dll.a'
15869    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15870    postinstall_cmds='base_file=`basename \${file}`~
15871      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15872      dldir=$destdir/`dirname \$dlpath`~
15873      test -d \$dldir || mkdir -p \$dldir~
15874      $install_prog $dir/$dlname \$dldir/$dlname~
15875      chmod a+x \$dldir/$dlname'
15876    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15877      dlpath=$dir/\$dldll~
15878       $rm \$dlpath'
15879    shlibpath_overrides_runpath=yes
15880
15881    case $host_os in
15882    cygwin*)
15883      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15884      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15885      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15886      ;;
15887    mingw*)
15888      # MinGW DLLs use traditional 'lib' prefix
15889      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15890      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15891      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15892        # It is most probably a Windows format PATH printed by
15893        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15894        # path with ; separators, and with drive letters. We can handle the
15895        # drive letters (cygwin fileutils understands them), so leave them,
15896        # especially as we might pass files found there to a mingw objdump,
15897        # which wouldn't understand a cygwinified path. Ahh.
15898        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15899      else
15900        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15901      fi
15902      ;;
15903    pw32*)
15904      # pw32 DLLs use 'pw' prefix rather than 'lib'
15905      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15906      ;;
15907    esac
15908    ;;
15909
15910  *)
15911    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15912    ;;
15913  esac
15914  dynamic_linker='Win32 ld.exe'
15915  # FIXME: first we should search . and the directory the executable is in
15916  shlibpath_var=PATH
15917  ;;
15918
15919darwin* | rhapsody*)
15920  dynamic_linker="$host_os dyld"
15921  version_type=darwin
15922  need_lib_prefix=no
15923  need_version=no
15924  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15925  soname_spec='${libname}${release}${major}$shared_ext'
15926  shlibpath_overrides_runpath=yes
15927  shlibpath_var=DYLD_LIBRARY_PATH
15928  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15929
15930  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15931  ;;
15932
15933dgux*)
15934  version_type=linux
15935  need_lib_prefix=no
15936  need_version=no
15937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15938  soname_spec='${libname}${release}${shared_ext}$major'
15939  shlibpath_var=LD_LIBRARY_PATH
15940  ;;
15941
15942freebsd1*)
15943  dynamic_linker=no
15944  ;;
15945
15946freebsd* | dragonfly*)
15947  # DragonFly does not have aout.  When/if they implement a new
15948  # versioning mechanism, adjust this.
15949  if test -x /usr/bin/objformat; then
15950    objformat=`/usr/bin/objformat`
15951  else
15952    case $host_os in
15953    freebsd[123]*) objformat=aout ;;
15954    *) objformat=elf ;;
15955    esac
15956  fi
15957  version_type=freebsd-$objformat
15958  case $version_type in
15959    freebsd-elf*)
15960      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15961      need_version=no
15962      need_lib_prefix=no
15963      ;;
15964    freebsd-*)
15965      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15966      need_version=yes
15967      ;;
15968  esac
15969  shlibpath_var=LD_LIBRARY_PATH
15970  case $host_os in
15971  freebsd2*)
15972    shlibpath_overrides_runpath=yes
15973    ;;
15974  freebsd3.[01]* | freebsdelf3.[01]*)
15975    shlibpath_overrides_runpath=yes
15976    hardcode_into_libs=yes
15977    ;;
15978  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15979  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15980    shlibpath_overrides_runpath=no
15981    hardcode_into_libs=yes
15982    ;;
15983  *) # from 4.6 on, and DragonFly
15984    shlibpath_overrides_runpath=yes
15985    hardcode_into_libs=yes
15986    ;;
15987  esac
15988  ;;
15989
15990gnu*)
15991  version_type=linux
15992  need_lib_prefix=no
15993  need_version=no
15994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15995  soname_spec='${libname}${release}${shared_ext}$major'
15996  shlibpath_var=LD_LIBRARY_PATH
15997  hardcode_into_libs=yes
15998  ;;
15999
16000hpux9* | hpux10* | hpux11*)
16001  # Give a soname corresponding to the major version so that dld.sl refuses to
16002  # link against other versions.
16003  version_type=sunos
16004  need_lib_prefix=no
16005  need_version=no
16006  case $host_cpu in
16007  ia64*)
16008    shrext_cmds='.so'
16009    hardcode_into_libs=yes
16010    dynamic_linker="$host_os dld.so"
16011    shlibpath_var=LD_LIBRARY_PATH
16012    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16013    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16014    soname_spec='${libname}${release}${shared_ext}$major'
16015    if test "X$HPUX_IA64_MODE" = X32; then
16016      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16017    else
16018      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16019    fi
16020    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16021    ;;
16022   hppa*64*)
16023     shrext_cmds='.sl'
16024     hardcode_into_libs=yes
16025     dynamic_linker="$host_os dld.sl"
16026     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16027     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16028     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029     soname_spec='${libname}${release}${shared_ext}$major'
16030     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16031     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16032     ;;
16033   *)
16034    shrext_cmds='.sl'
16035    dynamic_linker="$host_os dld.sl"
16036    shlibpath_var=SHLIB_PATH
16037    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16038    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16039    soname_spec='${libname}${release}${shared_ext}$major'
16040    ;;
16041  esac
16042  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16043  postinstall_cmds='chmod 555 $lib'
16044  ;;
16045
16046interix[3-9]*)
16047  version_type=linux
16048  need_lib_prefix=no
16049  need_version=no
16050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16051  soname_spec='${libname}${release}${shared_ext}$major'
16052  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16053  shlibpath_var=LD_LIBRARY_PATH
16054  shlibpath_overrides_runpath=no
16055  hardcode_into_libs=yes
16056  ;;
16057
16058irix5* | irix6* | nonstopux*)
16059  case $host_os in
16060    nonstopux*) version_type=nonstopux ;;
16061    *)
16062	if test "$lt_cv_prog_gnu_ld" = yes; then
16063		version_type=linux
16064	else
16065		version_type=irix
16066	fi ;;
16067  esac
16068  need_lib_prefix=no
16069  need_version=no
16070  soname_spec='${libname}${release}${shared_ext}$major'
16071  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16072  case $host_os in
16073  irix5* | nonstopux*)
16074    libsuff= shlibsuff=
16075    ;;
16076  *)
16077    case $LD in # libtool.m4 will add one of these switches to LD
16078    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16079      libsuff= shlibsuff= libmagic=32-bit;;
16080    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16081      libsuff=32 shlibsuff=N32 libmagic=N32;;
16082    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16083      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16084    *) libsuff= shlibsuff= libmagic=never-match;;
16085    esac
16086    ;;
16087  esac
16088  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16089  shlibpath_overrides_runpath=no
16090  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16091  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16092  hardcode_into_libs=yes
16093  ;;
16094
16095# No shared lib support for Linux oldld, aout, or coff.
16096linux*oldld* | linux*aout* | linux*coff*)
16097  dynamic_linker=no
16098  ;;
16099
16100# This must be Linux ELF.
16101linux* | k*bsd*-gnu)
16102  version_type=linux
16103  need_lib_prefix=no
16104  need_version=no
16105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16106  soname_spec='${libname}${release}${shared_ext}$major'
16107  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16108  shlibpath_var=LD_LIBRARY_PATH
16109  shlibpath_overrides_runpath=no
16110  # This implies no fast_install, which is unacceptable.
16111  # Some rework will be needed to allow for fast_install
16112  # before this can be enabled.
16113  hardcode_into_libs=yes
16114  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16115  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16116
16117  # Append ld.so.conf contents to the search path
16118  if test -f /etc/ld.so.conf; then
16119    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' ' '`
16120    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16121  fi
16122
16123  # We used to test for /lib/ld.so.1 and disable shared libraries on
16124  # powerpc, because MkLinux only supported shared libraries with the
16125  # GNU dynamic linker.  Since this was broken with cross compilers,
16126  # most powerpc-linux boxes support dynamic linking these days and
16127  # people can always --disable-shared, the test was removed, and we
16128  # assume the GNU/Linux dynamic linker is in use.
16129  dynamic_linker='GNU/Linux ld.so'
16130  ;;
16131
16132netbsd*)
16133  version_type=sunos
16134  need_lib_prefix=no
16135  need_version=no
16136  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16137    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16138    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16139    dynamic_linker='NetBSD (a.out) ld.so'
16140  else
16141    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16142    soname_spec='${libname}${release}${shared_ext}$major'
16143    dynamic_linker='NetBSD ld.elf_so'
16144  fi
16145  shlibpath_var=LD_LIBRARY_PATH
16146  shlibpath_overrides_runpath=yes
16147  hardcode_into_libs=yes
16148  ;;
16149
16150newsos6)
16151  version_type=linux
16152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153  shlibpath_var=LD_LIBRARY_PATH
16154  shlibpath_overrides_runpath=yes
16155  ;;
16156
16157nto-qnx*)
16158  version_type=linux
16159  need_lib_prefix=no
16160  need_version=no
16161  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16162  soname_spec='${libname}${release}${shared_ext}$major'
16163  shlibpath_var=LD_LIBRARY_PATH
16164  shlibpath_overrides_runpath=yes
16165  ;;
16166
16167openbsd*)
16168  version_type=sunos
16169  sys_lib_dlsearch_path_spec="/usr/lib"
16170  need_lib_prefix=no
16171  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16172  case $host_os in
16173    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16174    *)                         need_version=no  ;;
16175  esac
16176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16177  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16178  shlibpath_var=LD_LIBRARY_PATH
16179  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16180    case $host_os in
16181      openbsd2.[89] | openbsd2.[89].*)
16182	shlibpath_overrides_runpath=no
16183	;;
16184      *)
16185	shlibpath_overrides_runpath=yes
16186	;;
16187      esac
16188  else
16189    shlibpath_overrides_runpath=yes
16190  fi
16191  ;;
16192
16193os2*)
16194  libname_spec='$name'
16195  shrext_cmds=".dll"
16196  need_lib_prefix=no
16197  library_names_spec='$libname${shared_ext} $libname.a'
16198  dynamic_linker='OS/2 ld.exe'
16199  shlibpath_var=LIBPATH
16200  ;;
16201
16202osf3* | osf4* | osf5*)
16203  version_type=osf
16204  need_lib_prefix=no
16205  need_version=no
16206  soname_spec='${libname}${release}${shared_ext}$major'
16207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16208  shlibpath_var=LD_LIBRARY_PATH
16209  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16210  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16211  ;;
16212
16213rdos*)
16214  dynamic_linker=no
16215  ;;
16216
16217solaris*)
16218  version_type=linux
16219  need_lib_prefix=no
16220  need_version=no
16221  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16222  soname_spec='${libname}${release}${shared_ext}$major'
16223  shlibpath_var=LD_LIBRARY_PATH
16224  shlibpath_overrides_runpath=yes
16225  hardcode_into_libs=yes
16226  # ldd complains unless libraries are executable
16227  postinstall_cmds='chmod +x $lib'
16228  ;;
16229
16230sunos4*)
16231  version_type=sunos
16232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16233  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16234  shlibpath_var=LD_LIBRARY_PATH
16235  shlibpath_overrides_runpath=yes
16236  if test "$with_gnu_ld" = yes; then
16237    need_lib_prefix=no
16238  fi
16239  need_version=yes
16240  ;;
16241
16242sysv4 | sysv4.3*)
16243  version_type=linux
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  case $host_vendor in
16248    sni)
16249      shlibpath_overrides_runpath=no
16250      need_lib_prefix=no
16251      export_dynamic_flag_spec='${wl}-Blargedynsym'
16252      runpath_var=LD_RUN_PATH
16253      ;;
16254    siemens)
16255      need_lib_prefix=no
16256      ;;
16257    motorola)
16258      need_lib_prefix=no
16259      need_version=no
16260      shlibpath_overrides_runpath=no
16261      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16262      ;;
16263  esac
16264  ;;
16265
16266sysv4*MP*)
16267  if test -d /usr/nec ;then
16268    version_type=linux
16269    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16270    soname_spec='$libname${shared_ext}.$major'
16271    shlibpath_var=LD_LIBRARY_PATH
16272  fi
16273  ;;
16274
16275sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16276  version_type=freebsd-elf
16277  need_lib_prefix=no
16278  need_version=no
16279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16280  soname_spec='${libname}${release}${shared_ext}$major'
16281  shlibpath_var=LD_LIBRARY_PATH
16282  hardcode_into_libs=yes
16283  if test "$with_gnu_ld" = yes; then
16284    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16285    shlibpath_overrides_runpath=no
16286  else
16287    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16288    shlibpath_overrides_runpath=yes
16289    case $host_os in
16290      sco3.2v5*)
16291        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16292	;;
16293    esac
16294  fi
16295  sys_lib_dlsearch_path_spec='/usr/lib'
16296  ;;
16297
16298uts4*)
16299  version_type=linux
16300  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16301  soname_spec='${libname}${release}${shared_ext}$major'
16302  shlibpath_var=LD_LIBRARY_PATH
16303  ;;
16304
16305*)
16306  dynamic_linker=no
16307  ;;
16308esac
16309{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16310$as_echo "$dynamic_linker" >&6; }
16311test "$dynamic_linker" = no && can_build_shared=no
16312
16313if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16314  $as_echo_n "(cached) " >&6
16315else
16316  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16317fi
16318
16319sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16320if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16321  $as_echo_n "(cached) " >&6
16322else
16323  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16324fi
16325
16326sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16327
16328variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16329if test "$GCC" = yes; then
16330  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16331fi
16332
16333{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16334$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16335hardcode_action_F77=
16336if test -n "$hardcode_libdir_flag_spec_F77" || \
16337   test -n "$runpath_var_F77" || \
16338   test "X$hardcode_automatic_F77" = "Xyes" ; then
16339
16340  # We can hardcode non-existant directories.
16341  if test "$hardcode_direct_F77" != no &&
16342     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16343     # have to relink, otherwise we might link with an installed library
16344     # when we should be linking with a yet-to-be-installed one
16345     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16346     test "$hardcode_minus_L_F77" != no; then
16347    # Linking always hardcodes the temporary library directory.
16348    hardcode_action_F77=relink
16349  else
16350    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16351    hardcode_action_F77=immediate
16352  fi
16353else
16354  # We cannot hardcode anything, or else we can only hardcode existing
16355  # directories.
16356  hardcode_action_F77=unsupported
16357fi
16358{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16359$as_echo "$hardcode_action_F77" >&6; }
16360
16361if test "$hardcode_action_F77" = relink; then
16362  # Fast installation is not supported
16363  enable_fast_install=no
16364elif test "$shlibpath_overrides_runpath" = yes ||
16365     test "$enable_shared" = no; then
16366  # Fast installation is not necessary
16367  enable_fast_install=needless
16368fi
16369
16370
16371# The else clause should only fire when bootstrapping the
16372# libtool distribution, otherwise you forgot to ship ltmain.sh
16373# with your package, and you will get complaints that there are
16374# no rules to generate ltmain.sh.
16375if test -f "$ltmain"; then
16376  # See if we are running on zsh, and set the options which allow our commands through
16377  # without removal of \ escapes.
16378  if test -n "${ZSH_VERSION+set}" ; then
16379    setopt NO_GLOB_SUBST
16380  fi
16381  # Now quote all the things that may contain metacharacters while being
16382  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16383  # variables and quote the copies for generation of the libtool script.
16384  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16385    SED SHELL STRIP \
16386    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16387    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16388    deplibs_check_method reload_flag reload_cmds need_locks \
16389    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16390    lt_cv_sys_global_symbol_to_c_name_address \
16391    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16392    old_postinstall_cmds old_postuninstall_cmds \
16393    compiler_F77 \
16394    CC_F77 \
16395    LD_F77 \
16396    lt_prog_compiler_wl_F77 \
16397    lt_prog_compiler_pic_F77 \
16398    lt_prog_compiler_static_F77 \
16399    lt_prog_compiler_no_builtin_flag_F77 \
16400    export_dynamic_flag_spec_F77 \
16401    thread_safe_flag_spec_F77 \
16402    whole_archive_flag_spec_F77 \
16403    enable_shared_with_static_runtimes_F77 \
16404    old_archive_cmds_F77 \
16405    old_archive_from_new_cmds_F77 \
16406    predep_objects_F77 \
16407    postdep_objects_F77 \
16408    predeps_F77 \
16409    postdeps_F77 \
16410    compiler_lib_search_path_F77 \
16411    compiler_lib_search_dirs_F77 \
16412    archive_cmds_F77 \
16413    archive_expsym_cmds_F77 \
16414    postinstall_cmds_F77 \
16415    postuninstall_cmds_F77 \
16416    old_archive_from_expsyms_cmds_F77 \
16417    allow_undefined_flag_F77 \
16418    no_undefined_flag_F77 \
16419    export_symbols_cmds_F77 \
16420    hardcode_libdir_flag_spec_F77 \
16421    hardcode_libdir_flag_spec_ld_F77 \
16422    hardcode_libdir_separator_F77 \
16423    hardcode_automatic_F77 \
16424    module_cmds_F77 \
16425    module_expsym_cmds_F77 \
16426    lt_cv_prog_compiler_c_o_F77 \
16427    fix_srcfile_path_F77 \
16428    exclude_expsyms_F77 \
16429    include_expsyms_F77; do
16430
16431    case $var in
16432    old_archive_cmds_F77 | \
16433    old_archive_from_new_cmds_F77 | \
16434    archive_cmds_F77 | \
16435    archive_expsym_cmds_F77 | \
16436    module_cmds_F77 | \
16437    module_expsym_cmds_F77 | \
16438    old_archive_from_expsyms_cmds_F77 | \
16439    export_symbols_cmds_F77 | \
16440    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16441    postinstall_cmds | postuninstall_cmds | \
16442    old_postinstall_cmds | old_postuninstall_cmds | \
16443    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16444      # Double-quote double-evaled strings.
16445      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16446      ;;
16447    *)
16448      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16449      ;;
16450    esac
16451  done
16452
16453  case $lt_echo in
16454  *'\$0 --fallback-echo"')
16455    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16456    ;;
16457  esac
16458
16459cfgfile="$ofile"
16460
16461  cat <<__EOF__ >> "$cfgfile"
16462# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16463
16464# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16465
16466# Shell to use when invoking shell scripts.
16467SHELL=$lt_SHELL
16468
16469# Whether or not to build shared libraries.
16470build_libtool_libs=$enable_shared
16471
16472# Whether or not to build static libraries.
16473build_old_libs=$enable_static
16474
16475# Whether or not to add -lc for building shared libraries.
16476build_libtool_need_lc=$archive_cmds_need_lc_F77
16477
16478# Whether or not to disallow shared libs when runtime libs are static
16479allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16480
16481# Whether or not to optimize for fast installation.
16482fast_install=$enable_fast_install
16483
16484# The host system.
16485host_alias=$host_alias
16486host=$host
16487host_os=$host_os
16488
16489# The build system.
16490build_alias=$build_alias
16491build=$build
16492build_os=$build_os
16493
16494# An echo program that does not interpret backslashes.
16495echo=$lt_echo
16496
16497# The archiver.
16498AR=$lt_AR
16499AR_FLAGS=$lt_AR_FLAGS
16500
16501# A C compiler.
16502LTCC=$lt_LTCC
16503
16504# LTCC compiler flags.
16505LTCFLAGS=$lt_LTCFLAGS
16506
16507# A language-specific compiler.
16508CC=$lt_compiler_F77
16509
16510# Is the compiler the GNU C compiler?
16511with_gcc=$GCC_F77
16512
16513# An ERE matcher.
16514EGREP=$lt_EGREP
16515
16516# The linker used to build libraries.
16517LD=$lt_LD_F77
16518
16519# Whether we need hard or soft links.
16520LN_S=$lt_LN_S
16521
16522# A BSD-compatible nm program.
16523NM=$lt_NM
16524
16525# A symbol stripping program
16526STRIP=$lt_STRIP
16527
16528# Used to examine libraries when file_magic_cmd begins "file"
16529MAGIC_CMD=$MAGIC_CMD
16530
16531# Used on cygwin: DLL creation program.
16532DLLTOOL="$DLLTOOL"
16533
16534# Used on cygwin: object dumper.
16535OBJDUMP="$OBJDUMP"
16536
16537# Used on cygwin: assembler.
16538AS="$AS"
16539
16540# The name of the directory that contains temporary libtool files.
16541objdir=$objdir
16542
16543# How to create reloadable object files.
16544reload_flag=$lt_reload_flag
16545reload_cmds=$lt_reload_cmds
16546
16547# How to pass a linker flag through the compiler.
16548wl=$lt_lt_prog_compiler_wl_F77
16549
16550# Object file suffix (normally "o").
16551objext="$ac_objext"
16552
16553# Old archive suffix (normally "a").
16554libext="$libext"
16555
16556# Shared library suffix (normally ".so").
16557shrext_cmds='$shrext_cmds'
16558
16559# Executable file suffix (normally "").
16560exeext="$exeext"
16561
16562# Additional compiler flags for building library objects.
16563pic_flag=$lt_lt_prog_compiler_pic_F77
16564pic_mode=$pic_mode
16565
16566# What is the maximum length of a command?
16567max_cmd_len=$lt_cv_sys_max_cmd_len
16568
16569# Does compiler simultaneously support -c and -o options?
16570compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16571
16572# Must we lock files when doing compilation?
16573need_locks=$lt_need_locks
16574
16575# Do we need the lib prefix for modules?
16576need_lib_prefix=$need_lib_prefix
16577
16578# Do we need a version for libraries?
16579need_version=$need_version
16580
16581# Whether dlopen is supported.
16582dlopen_support=$enable_dlopen
16583
16584# Whether dlopen of programs is supported.
16585dlopen_self=$enable_dlopen_self
16586
16587# Whether dlopen of statically linked programs is supported.
16588dlopen_self_static=$enable_dlopen_self_static
16589
16590# Compiler flag to prevent dynamic linking.
16591link_static_flag=$lt_lt_prog_compiler_static_F77
16592
16593# Compiler flag to turn off builtin functions.
16594no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16595
16596# Compiler flag to allow reflexive dlopens.
16597export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16598
16599# Compiler flag to generate shared objects directly from archives.
16600whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16601
16602# Compiler flag to generate thread-safe objects.
16603thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16604
16605# Library versioning type.
16606version_type=$version_type
16607
16608# Format of library name prefix.
16609libname_spec=$lt_libname_spec
16610
16611# List of archive names.  First name is the real one, the rest are links.
16612# The last name is the one that the linker finds with -lNAME.
16613library_names_spec=$lt_library_names_spec
16614
16615# The coded name of the library, if different from the real name.
16616soname_spec=$lt_soname_spec
16617
16618# Commands used to build and install an old-style archive.
16619RANLIB=$lt_RANLIB
16620old_archive_cmds=$lt_old_archive_cmds_F77
16621old_postinstall_cmds=$lt_old_postinstall_cmds
16622old_postuninstall_cmds=$lt_old_postuninstall_cmds
16623
16624# Create an old-style archive from a shared archive.
16625old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16626
16627# Create a temporary old-style archive to link instead of a shared archive.
16628old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16629
16630# Commands used to build and install a shared archive.
16631archive_cmds=$lt_archive_cmds_F77
16632archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16633postinstall_cmds=$lt_postinstall_cmds
16634postuninstall_cmds=$lt_postuninstall_cmds
16635
16636# Commands used to build a loadable module (assumed same as above if empty)
16637module_cmds=$lt_module_cmds_F77
16638module_expsym_cmds=$lt_module_expsym_cmds_F77
16639
16640# Commands to strip libraries.
16641old_striplib=$lt_old_striplib
16642striplib=$lt_striplib
16643
16644# Dependencies to place before the objects being linked to create a
16645# shared library.
16646predep_objects=$lt_predep_objects_F77
16647
16648# Dependencies to place after the objects being linked to create a
16649# shared library.
16650postdep_objects=$lt_postdep_objects_F77
16651
16652# Dependencies to place before the objects being linked to create a
16653# shared library.
16654predeps=$lt_predeps_F77
16655
16656# Dependencies to place after the objects being linked to create a
16657# shared library.
16658postdeps=$lt_postdeps_F77
16659
16660# The directories searched by this compiler when creating a shared
16661# library
16662compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16663
16664# The library search path used internally by the compiler when linking
16665# a shared library.
16666compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16667
16668# Method to check whether dependent libraries are shared objects.
16669deplibs_check_method=$lt_deplibs_check_method
16670
16671# Command to use when deplibs_check_method == file_magic.
16672file_magic_cmd=$lt_file_magic_cmd
16673
16674# Flag that allows shared libraries with undefined symbols to be built.
16675allow_undefined_flag=$lt_allow_undefined_flag_F77
16676
16677# Flag that forces no undefined symbols.
16678no_undefined_flag=$lt_no_undefined_flag_F77
16679
16680# Commands used to finish a libtool library installation in a directory.
16681finish_cmds=$lt_finish_cmds
16682
16683# Same as above, but a single script fragment to be evaled but not shown.
16684finish_eval=$lt_finish_eval
16685
16686# Take the output of nm and produce a listing of raw symbols and C names.
16687global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16688
16689# Transform the output of nm in a proper C declaration
16690global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16691
16692# Transform the output of nm in a C name address pair
16693global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16694
16695# This is the shared library runtime path variable.
16696runpath_var=$runpath_var
16697
16698# This is the shared library path variable.
16699shlibpath_var=$shlibpath_var
16700
16701# Is shlibpath searched before the hard-coded library search path?
16702shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16703
16704# How to hardcode a shared library path into an executable.
16705hardcode_action=$hardcode_action_F77
16706
16707# Whether we should hardcode library paths into libraries.
16708hardcode_into_libs=$hardcode_into_libs
16709
16710# Flag to hardcode \$libdir into a binary during linking.
16711# This must work even if \$libdir does not exist.
16712hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16713
16714# If ld is used when linking, flag to hardcode \$libdir into
16715# a binary during linking. This must work even if \$libdir does
16716# not exist.
16717hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16718
16719# Whether we need a single -rpath flag with a separated argument.
16720hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16721
16722# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16723# resulting binary.
16724hardcode_direct=$hardcode_direct_F77
16725
16726# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16727# resulting binary.
16728hardcode_minus_L=$hardcode_minus_L_F77
16729
16730# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16731# the resulting binary.
16732hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16733
16734# Set to yes if building a shared library automatically hardcodes DIR into the library
16735# and all subsequent libraries and executables linked against it.
16736hardcode_automatic=$hardcode_automatic_F77
16737
16738# Variables whose values should be saved in libtool wrapper scripts and
16739# restored at relink time.
16740variables_saved_for_relink="$variables_saved_for_relink"
16741
16742# Whether libtool must link a program against all its dependency libraries.
16743link_all_deplibs=$link_all_deplibs_F77
16744
16745# Compile-time system search path for libraries
16746sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16747
16748# Run-time system search path for libraries
16749sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16750
16751# Fix the shell variable \$srcfile for the compiler.
16752fix_srcfile_path=$lt_fix_srcfile_path
16753
16754# Set to yes if exported symbols are required.
16755always_export_symbols=$always_export_symbols_F77
16756
16757# The commands to list exported symbols.
16758export_symbols_cmds=$lt_export_symbols_cmds_F77
16759
16760# The commands to extract the exported symbol list from a shared archive.
16761extract_expsyms_cmds=$lt_extract_expsyms_cmds
16762
16763# Symbols that should not be listed in the preloaded symbols.
16764exclude_expsyms=$lt_exclude_expsyms_F77
16765
16766# Symbols that must always be exported.
16767include_expsyms=$lt_include_expsyms_F77
16768
16769# ### END LIBTOOL TAG CONFIG: $tagname
16770
16771__EOF__
16772
16773
16774else
16775  # If there is no Makefile yet, we rely on a make rule to execute
16776  # `config.status --recheck' to rerun these tests and create the
16777  # libtool script then.
16778  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16779  if test -f "$ltmain_in"; then
16780    test -f Makefile && make "$ltmain"
16781  fi
16782fi
16783
16784
16785ac_ext=c
16786ac_cpp='$CPP $CPPFLAGS'
16787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16789ac_compiler_gnu=$ac_cv_c_compiler_gnu
16790
16791CC="$lt_save_CC"
16792
16793	else
16794	  tagname=""
16795	fi
16796	;;
16797
16798      GCJ)
16799	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16800
16801
16802# Source file extension for Java test sources.
16803ac_ext=java
16804
16805# Object file extension for compiled Java test sources.
16806objext=o
16807objext_GCJ=$objext
16808
16809# Code to be used in simple compile tests
16810lt_simple_compile_test_code="class foo {}"
16811
16812# Code to be used in simple link tests
16813lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16814
16815# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16816
16817# If no C compiler was specified, use CC.
16818LTCC=${LTCC-"$CC"}
16819
16820# If no C compiler flags were specified, use CFLAGS.
16821LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16822
16823# Allow CC to be a program name with arguments.
16824compiler=$CC
16825
16826
16827# save warnings/boilerplate of simple test code
16828ac_outfile=conftest.$ac_objext
16829echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16830eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16831_lt_compiler_boilerplate=`cat conftest.err`
16832$rm conftest*
16833
16834ac_outfile=conftest.$ac_objext
16835echo "$lt_simple_link_test_code" >conftest.$ac_ext
16836eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16837_lt_linker_boilerplate=`cat conftest.err`
16838$rm -r conftest*
16839
16840
16841# Allow CC to be a program name with arguments.
16842lt_save_CC="$CC"
16843CC=${GCJ-"gcj"}
16844compiler=$CC
16845compiler_GCJ=$CC
16846for cc_temp in $compiler""; do
16847  case $cc_temp in
16848    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16849    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16850    \-*) ;;
16851    *) break;;
16852  esac
16853done
16854cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16855
16856
16857# GCJ did not exist at the time GCC didn't implicitly link libc in.
16858archive_cmds_need_lc_GCJ=no
16859
16860old_archive_cmds_GCJ=$old_archive_cmds
16861
16862
16863lt_prog_compiler_no_builtin_flag_GCJ=
16864
16865if test "$GCC" = yes; then
16866  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16867
16868
16869{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16870$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16871if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16872  $as_echo_n "(cached) " >&6
16873else
16874  lt_cv_prog_compiler_rtti_exceptions=no
16875  ac_outfile=conftest.$ac_objext
16876   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16877   lt_compiler_flag="-fno-rtti -fno-exceptions"
16878   # Insert the option either (1) after the last *FLAGS variable, or
16879   # (2) before a word containing "conftest.", or (3) at the end.
16880   # Note that $ac_compile itself does not contain backslashes and begins
16881   # with a dollar sign (not a hyphen), so the echo should work correctly.
16882   # The option is referenced via a variable to avoid confusing sed.
16883   lt_compile=`echo "$ac_compile" | $SED \
16884   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16885   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16886   -e 's:$: $lt_compiler_flag:'`
16887   (eval echo "\"\$as_me:16887: $lt_compile\"" >&5)
16888   (eval "$lt_compile" 2>conftest.err)
16889   ac_status=$?
16890   cat conftest.err >&5
16891   echo "$as_me:16891: \$? = $ac_status" >&5
16892   if (exit $ac_status) && test -s "$ac_outfile"; then
16893     # The compiler can only warn and ignore the option if not recognized
16894     # So say no if there are warnings other than the usual output.
16895     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16896     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16897     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16898       lt_cv_prog_compiler_rtti_exceptions=yes
16899     fi
16900   fi
16901   $rm conftest*
16902
16903fi
16904{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16905$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16906
16907if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16908    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16909else
16910    :
16911fi
16912
16913fi
16914
16915lt_prog_compiler_wl_GCJ=
16916lt_prog_compiler_pic_GCJ=
16917lt_prog_compiler_static_GCJ=
16918
16919{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16920$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16921
16922  if test "$GCC" = yes; then
16923    lt_prog_compiler_wl_GCJ='-Wl,'
16924    lt_prog_compiler_static_GCJ='-static'
16925
16926    case $host_os in
16927      aix*)
16928      # All AIX code is PIC.
16929      if test "$host_cpu" = ia64; then
16930	# AIX 5 now supports IA64 processor
16931	lt_prog_compiler_static_GCJ='-Bstatic'
16932      fi
16933      ;;
16934
16935    amigaos*)
16936      # FIXME: we need at least 68020 code to build shared libraries, but
16937      # adding the `-m68020' flag to GCC prevents building anything better,
16938      # like `-m68040'.
16939      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16940      ;;
16941
16942    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16943      # PIC is the default for these OSes.
16944      ;;
16945
16946    mingw* | cygwin* | pw32* | os2*)
16947      # This hack is so that the source file can tell whether it is being
16948      # built for inclusion in a dll (and should export symbols for example).
16949      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16950      # (--disable-auto-import) libraries
16951
16952      ;;
16953
16954    darwin* | rhapsody*)
16955      # PIC is the default on this platform
16956      # Common symbols not allowed in MH_DYLIB files
16957      lt_prog_compiler_pic_GCJ='-fno-common'
16958      ;;
16959
16960    interix[3-9]*)
16961      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16962      # Instead, we relocate shared libraries at runtime.
16963      ;;
16964
16965    msdosdjgpp*)
16966      # Just because we use GCC doesn't mean we suddenly get shared libraries
16967      # on systems that don't support them.
16968      lt_prog_compiler_can_build_shared_GCJ=no
16969      enable_shared=no
16970      ;;
16971
16972    sysv4*MP*)
16973      if test -d /usr/nec; then
16974	lt_prog_compiler_pic_GCJ=-Kconform_pic
16975      fi
16976      ;;
16977
16978    hpux*)
16979      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16980      # not for PA HP-UX.
16981      case $host_cpu in
16982      hppa*64*|ia64*)
16983	# +Z the default
16984	;;
16985      *)
16986	lt_prog_compiler_pic_GCJ='-fPIC'
16987	;;
16988      esac
16989      ;;
16990
16991    *)
16992      lt_prog_compiler_pic_GCJ='-fPIC'
16993      ;;
16994    esac
16995  else
16996    # PORTME Check for flag to pass linker flags through the system compiler.
16997    case $host_os in
16998    aix*)
16999      lt_prog_compiler_wl_GCJ='-Wl,'
17000      if test "$host_cpu" = ia64; then
17001	# AIX 5 now supports IA64 processor
17002	lt_prog_compiler_static_GCJ='-Bstatic'
17003      else
17004	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17005      fi
17006      ;;
17007      darwin*)
17008        # PIC is the default on this platform
17009        # Common symbols not allowed in MH_DYLIB files
17010       case $cc_basename in
17011         xlc*)
17012         lt_prog_compiler_pic_GCJ='-qnocommon'
17013         lt_prog_compiler_wl_GCJ='-Wl,'
17014         ;;
17015       esac
17016       ;;
17017
17018    mingw* | cygwin* | pw32* | os2*)
17019      # This hack is so that the source file can tell whether it is being
17020      # built for inclusion in a dll (and should export symbols for example).
17021
17022      ;;
17023
17024    hpux9* | hpux10* | hpux11*)
17025      lt_prog_compiler_wl_GCJ='-Wl,'
17026      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17027      # not for PA HP-UX.
17028      case $host_cpu in
17029      hppa*64*|ia64*)
17030	# +Z the default
17031	;;
17032      *)
17033	lt_prog_compiler_pic_GCJ='+Z'
17034	;;
17035      esac
17036      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17037      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17038      ;;
17039
17040    irix5* | irix6* | nonstopux*)
17041      lt_prog_compiler_wl_GCJ='-Wl,'
17042      # PIC (with -KPIC) is the default.
17043      lt_prog_compiler_static_GCJ='-non_shared'
17044      ;;
17045
17046    newsos6)
17047      lt_prog_compiler_pic_GCJ='-KPIC'
17048      lt_prog_compiler_static_GCJ='-Bstatic'
17049      ;;
17050
17051    linux* | k*bsd*-gnu)
17052      case $cc_basename in
17053      icc* | ecc*)
17054	lt_prog_compiler_wl_GCJ='-Wl,'
17055	lt_prog_compiler_pic_GCJ='-KPIC'
17056	lt_prog_compiler_static_GCJ='-static'
17057        ;;
17058      pgcc* | pgf77* | pgf90* | pgf95*)
17059        # Portland Group compilers (*not* the Pentium gcc compiler,
17060	# which looks to be a dead project)
17061	lt_prog_compiler_wl_GCJ='-Wl,'
17062	lt_prog_compiler_pic_GCJ='-fpic'
17063	lt_prog_compiler_static_GCJ='-Bstatic'
17064        ;;
17065      ccc*)
17066        lt_prog_compiler_wl_GCJ='-Wl,'
17067        # All Alpha code is PIC.
17068        lt_prog_compiler_static_GCJ='-non_shared'
17069        ;;
17070      *)
17071        case `$CC -V 2>&1 | sed 5q` in
17072	*Sun\ C*)
17073	  # Sun C 5.9
17074	  lt_prog_compiler_pic_GCJ='-KPIC'
17075	  lt_prog_compiler_static_GCJ='-Bstatic'
17076	  lt_prog_compiler_wl_GCJ='-Wl,'
17077	  ;;
17078	*Sun\ F*)
17079	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17080	  lt_prog_compiler_pic_GCJ='-KPIC'
17081	  lt_prog_compiler_static_GCJ='-Bstatic'
17082	  lt_prog_compiler_wl_GCJ=''
17083	  ;;
17084	esac
17085	;;
17086      esac
17087      ;;
17088
17089    osf3* | osf4* | osf5*)
17090      lt_prog_compiler_wl_GCJ='-Wl,'
17091      # All OSF/1 code is PIC.
17092      lt_prog_compiler_static_GCJ='-non_shared'
17093      ;;
17094
17095    rdos*)
17096      lt_prog_compiler_static_GCJ='-non_shared'
17097      ;;
17098
17099    solaris*)
17100      lt_prog_compiler_pic_GCJ='-KPIC'
17101      lt_prog_compiler_static_GCJ='-Bstatic'
17102      case $cc_basename in
17103      f77* | f90* | f95*)
17104	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17105      *)
17106	lt_prog_compiler_wl_GCJ='-Wl,';;
17107      esac
17108      ;;
17109
17110    sunos4*)
17111      lt_prog_compiler_wl_GCJ='-Qoption ld '
17112      lt_prog_compiler_pic_GCJ='-PIC'
17113      lt_prog_compiler_static_GCJ='-Bstatic'
17114      ;;
17115
17116    sysv4 | sysv4.2uw2* | sysv4.3*)
17117      lt_prog_compiler_wl_GCJ='-Wl,'
17118      lt_prog_compiler_pic_GCJ='-KPIC'
17119      lt_prog_compiler_static_GCJ='-Bstatic'
17120      ;;
17121
17122    sysv4*MP*)
17123      if test -d /usr/nec ;then
17124	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17125	lt_prog_compiler_static_GCJ='-Bstatic'
17126      fi
17127      ;;
17128
17129    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17130      lt_prog_compiler_wl_GCJ='-Wl,'
17131      lt_prog_compiler_pic_GCJ='-KPIC'
17132      lt_prog_compiler_static_GCJ='-Bstatic'
17133      ;;
17134
17135    unicos*)
17136      lt_prog_compiler_wl_GCJ='-Wl,'
17137      lt_prog_compiler_can_build_shared_GCJ=no
17138      ;;
17139
17140    uts4*)
17141      lt_prog_compiler_pic_GCJ='-pic'
17142      lt_prog_compiler_static_GCJ='-Bstatic'
17143      ;;
17144
17145    *)
17146      lt_prog_compiler_can_build_shared_GCJ=no
17147      ;;
17148    esac
17149  fi
17150
17151{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17152$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17153
17154#
17155# Check to make sure the PIC flag actually works.
17156#
17157if test -n "$lt_prog_compiler_pic_GCJ"; then
17158
17159{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17160$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17161if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17162  $as_echo_n "(cached) " >&6
17163else
17164  lt_cv_prog_compiler_pic_works_GCJ=no
17165  ac_outfile=conftest.$ac_objext
17166   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17167   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17168   # Insert the option either (1) after the last *FLAGS variable, or
17169   # (2) before a word containing "conftest.", or (3) at the end.
17170   # Note that $ac_compile itself does not contain backslashes and begins
17171   # with a dollar sign (not a hyphen), so the echo should work correctly.
17172   # The option is referenced via a variable to avoid confusing sed.
17173   lt_compile=`echo "$ac_compile" | $SED \
17174   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17175   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17176   -e 's:$: $lt_compiler_flag:'`
17177   (eval echo "\"\$as_me:17177: $lt_compile\"" >&5)
17178   (eval "$lt_compile" 2>conftest.err)
17179   ac_status=$?
17180   cat conftest.err >&5
17181   echo "$as_me:17181: \$? = $ac_status" >&5
17182   if (exit $ac_status) && test -s "$ac_outfile"; then
17183     # The compiler can only warn and ignore the option if not recognized
17184     # So say no if there are warnings other than the usual output.
17185     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17186     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17187     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17188       lt_cv_prog_compiler_pic_works_GCJ=yes
17189     fi
17190   fi
17191   $rm conftest*
17192
17193fi
17194{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17195$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17196
17197if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17198    case $lt_prog_compiler_pic_GCJ in
17199     "" | " "*) ;;
17200     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17201     esac
17202else
17203    lt_prog_compiler_pic_GCJ=
17204     lt_prog_compiler_can_build_shared_GCJ=no
17205fi
17206
17207fi
17208case $host_os in
17209  # For platforms which do not support PIC, -DPIC is meaningless:
17210  *djgpp*)
17211    lt_prog_compiler_pic_GCJ=
17212    ;;
17213  *)
17214    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17215    ;;
17216esac
17217
17218#
17219# Check to make sure the static flag actually works.
17220#
17221wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17222{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17223$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17224if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17225  $as_echo_n "(cached) " >&6
17226else
17227  lt_cv_prog_compiler_static_works_GCJ=no
17228   save_LDFLAGS="$LDFLAGS"
17229   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17230   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17231   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17232     # The linker can only warn and ignore the option if not recognized
17233     # So say no if there are warnings
17234     if test -s conftest.err; then
17235       # Append any errors to the config.log.
17236       cat conftest.err 1>&5
17237       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17238       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17239       if diff conftest.exp conftest.er2 >/dev/null; then
17240         lt_cv_prog_compiler_static_works_GCJ=yes
17241       fi
17242     else
17243       lt_cv_prog_compiler_static_works_GCJ=yes
17244     fi
17245   fi
17246   $rm -r conftest*
17247   LDFLAGS="$save_LDFLAGS"
17248
17249fi
17250{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17251$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17252
17253if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17254    :
17255else
17256    lt_prog_compiler_static_GCJ=
17257fi
17258
17259
17260{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17261$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17262if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17263  $as_echo_n "(cached) " >&6
17264else
17265  lt_cv_prog_compiler_c_o_GCJ=no
17266   $rm -r conftest 2>/dev/null
17267   mkdir conftest
17268   cd conftest
17269   mkdir out
17270   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17271
17272   lt_compiler_flag="-o out/conftest2.$ac_objext"
17273   # Insert the option either (1) after the last *FLAGS variable, or
17274   # (2) before a word containing "conftest.", or (3) at the end.
17275   # Note that $ac_compile itself does not contain backslashes and begins
17276   # with a dollar sign (not a hyphen), so the echo should work correctly.
17277   lt_compile=`echo "$ac_compile" | $SED \
17278   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17279   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17280   -e 's:$: $lt_compiler_flag:'`
17281   (eval echo "\"\$as_me:17281: $lt_compile\"" >&5)
17282   (eval "$lt_compile" 2>out/conftest.err)
17283   ac_status=$?
17284   cat out/conftest.err >&5
17285   echo "$as_me:17285: \$? = $ac_status" >&5
17286   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17287   then
17288     # The compiler can only warn and ignore the option if not recognized
17289     # So say no if there are warnings
17290     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17291     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17292     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17293       lt_cv_prog_compiler_c_o_GCJ=yes
17294     fi
17295   fi
17296   chmod u+w . 2>&5
17297   $rm conftest*
17298   # SGI C++ compiler will create directory out/ii_files/ for
17299   # template instantiation
17300   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17301   $rm out/* && rmdir out
17302   cd ..
17303   rmdir conftest
17304   $rm conftest*
17305
17306fi
17307{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17308$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17309
17310
17311hard_links="nottested"
17312if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17313  # do not overwrite the value of need_locks provided by the user
17314  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17315$as_echo_n "checking if we can lock with hard links... " >&6; }
17316  hard_links=yes
17317  $rm conftest*
17318  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17319  touch conftest.a
17320  ln conftest.a conftest.b 2>&5 || hard_links=no
17321  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17322  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17323$as_echo "$hard_links" >&6; }
17324  if test "$hard_links" = no; then
17325    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17326$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17327    need_locks=warn
17328  fi
17329else
17330  need_locks=no
17331fi
17332
17333{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17334$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17335
17336  runpath_var=
17337  allow_undefined_flag_GCJ=
17338  enable_shared_with_static_runtimes_GCJ=no
17339  archive_cmds_GCJ=
17340  archive_expsym_cmds_GCJ=
17341  old_archive_From_new_cmds_GCJ=
17342  old_archive_from_expsyms_cmds_GCJ=
17343  export_dynamic_flag_spec_GCJ=
17344  whole_archive_flag_spec_GCJ=
17345  thread_safe_flag_spec_GCJ=
17346  hardcode_libdir_flag_spec_GCJ=
17347  hardcode_libdir_flag_spec_ld_GCJ=
17348  hardcode_libdir_separator_GCJ=
17349  hardcode_direct_GCJ=no
17350  hardcode_minus_L_GCJ=no
17351  hardcode_shlibpath_var_GCJ=unsupported
17352  link_all_deplibs_GCJ=unknown
17353  hardcode_automatic_GCJ=no
17354  module_cmds_GCJ=
17355  module_expsym_cmds_GCJ=
17356  always_export_symbols_GCJ=no
17357  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17358  # include_expsyms should be a list of space-separated symbols to be *always*
17359  # included in the symbol list
17360  include_expsyms_GCJ=
17361  # exclude_expsyms can be an extended regexp of symbols to exclude
17362  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17363  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17364  # as well as any symbol that contains `d'.
17365  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17366  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17367  # platforms (ab)use it in PIC code, but their linkers get confused if
17368  # the symbol is explicitly referenced.  Since portable code cannot
17369  # rely on this symbol name, it's probably fine to never include it in
17370  # preloaded symbol tables.
17371  # Exclude shared library initialization/finalization symbols.
17372  extract_expsyms_cmds=
17373  # Just being paranoid about ensuring that cc_basename is set.
17374  for cc_temp in $compiler""; do
17375  case $cc_temp in
17376    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17377    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17378    \-*) ;;
17379    *) break;;
17380  esac
17381done
17382cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17383
17384  case $host_os in
17385  cygwin* | mingw* | pw32*)
17386    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17387    # When not using gcc, we currently assume that we are using
17388    # Microsoft Visual C++.
17389    if test "$GCC" != yes; then
17390      with_gnu_ld=no
17391    fi
17392    ;;
17393  interix*)
17394    # we just hope/assume this is gcc and not c89 (= MSVC++)
17395    with_gnu_ld=yes
17396    ;;
17397  openbsd*)
17398    with_gnu_ld=no
17399    ;;
17400  esac
17401
17402  ld_shlibs_GCJ=yes
17403  if test "$with_gnu_ld" = yes; then
17404    # If archive_cmds runs LD, not CC, wlarc should be empty
17405    wlarc='${wl}'
17406
17407    # Set some defaults for GNU ld with shared library support. These
17408    # are reset later if shared libraries are not supported. Putting them
17409    # here allows them to be overridden if necessary.
17410    runpath_var=LD_RUN_PATH
17411    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17412    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17413    # ancient GNU ld didn't support --whole-archive et. al.
17414    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17415	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17416      else
17417  	whole_archive_flag_spec_GCJ=
17418    fi
17419    supports_anon_versioning=no
17420    case `$LD -v 2>/dev/null` in
17421      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17422      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17423      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17424      *\ 2.11.*) ;; # other 2.11 versions
17425      *) supports_anon_versioning=yes ;;
17426    esac
17427
17428    # See if GNU ld supports shared libraries.
17429    case $host_os in
17430    aix[3-9]*)
17431      # On AIX/PPC, the GNU linker is very broken
17432      if test "$host_cpu" != ia64; then
17433	ld_shlibs_GCJ=no
17434	cat <<EOF 1>&2
17435
17436*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17437*** to be unable to reliably create shared libraries on AIX.
17438*** Therefore, libtool is disabling shared libraries support.  If you
17439*** really care for shared libraries, you may want to modify your PATH
17440*** so that a non-GNU linker is found, and then restart.
17441
17442EOF
17443      fi
17444      ;;
17445
17446    amigaos*)
17447      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)'
17448      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17449      hardcode_minus_L_GCJ=yes
17450
17451      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17452      # that the semantics of dynamic libraries on AmigaOS, at least up
17453      # to version 4, is to share data among multiple programs linked
17454      # with the same dynamic library.  Since this doesn't match the
17455      # behavior of shared libraries on other platforms, we can't use
17456      # them.
17457      ld_shlibs_GCJ=no
17458      ;;
17459
17460    beos*)
17461      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17462	allow_undefined_flag_GCJ=unsupported
17463	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17464	# support --undefined.  This deserves some investigation.  FIXME
17465	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17466      else
17467	ld_shlibs_GCJ=no
17468      fi
17469      ;;
17470
17471    cygwin* | mingw* | pw32*)
17472      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17473      # as there is no search path for DLLs.
17474      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17475      allow_undefined_flag_GCJ=unsupported
17476      always_export_symbols_GCJ=no
17477      enable_shared_with_static_runtimes_GCJ=yes
17478      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17479
17480      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17481        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17482	# If the export-symbols file already is a .def file (1st line
17483	# is EXPORTS), use it as is; otherwise, prepend...
17484	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17485	  cp $export_symbols $output_objdir/$soname.def;
17486	else
17487	  echo EXPORTS > $output_objdir/$soname.def;
17488	  cat $export_symbols >> $output_objdir/$soname.def;
17489	fi~
17490	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17491      else
17492	ld_shlibs_GCJ=no
17493      fi
17494      ;;
17495
17496    interix[3-9]*)
17497      hardcode_direct_GCJ=no
17498      hardcode_shlibpath_var_GCJ=no
17499      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17500      export_dynamic_flag_spec_GCJ='${wl}-E'
17501      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17502      # Instead, shared libraries are loaded at an image base (0x10000000 by
17503      # default) and relocated if they conflict, which is a slow very memory
17504      # consuming and fragmenting process.  To avoid this, we pick a random,
17505      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17506      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17507      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'
17508      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'
17509      ;;
17510
17511    gnu* | linux* | k*bsd*-gnu)
17512      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17513	tmp_addflag=
17514	case $cc_basename,$host_cpu in
17515	pgcc*)				# Portland Group C compiler
17516	  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'
17517	  tmp_addflag=' $pic_flag'
17518	  ;;
17519	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17520	  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'
17521	  tmp_addflag=' $pic_flag -Mnomain' ;;
17522	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17523	  tmp_addflag=' -i_dynamic' ;;
17524	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17525	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17526	ifc* | ifort*)			# Intel Fortran compiler
17527	  tmp_addflag=' -nofor_main' ;;
17528	esac
17529	case `$CC -V 2>&1 | sed 5q` in
17530	*Sun\ C*)			# Sun C 5.9
17531	  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'
17532	  tmp_sharedflag='-G' ;;
17533	*Sun\ F*)			# Sun Fortran 8.3
17534	  tmp_sharedflag='-G' ;;
17535	*)
17536	  tmp_sharedflag='-shared' ;;
17537	esac
17538	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17539
17540	if test $supports_anon_versioning = yes; then
17541	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17542  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17543  $echo "local: *; };" >> $output_objdir/$libname.ver~
17544	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17545	fi
17546      else
17547	ld_shlibs_GCJ=no
17548      fi
17549      ;;
17550
17551    netbsd*)
17552      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17553	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17554	wlarc=
17555      else
17556	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17557	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17558      fi
17559      ;;
17560
17561    solaris*)
17562      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17563	ld_shlibs_GCJ=no
17564	cat <<EOF 1>&2
17565
17566*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17567*** create shared libraries on Solaris systems.  Therefore, libtool
17568*** is disabling shared libraries support.  We urge you to upgrade GNU
17569*** binutils to release 2.9.1 or newer.  Another option is to modify
17570*** your PATH or compiler configuration so that the native linker is
17571*** used, and then restart.
17572
17573EOF
17574      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17575	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17576	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17577      else
17578	ld_shlibs_GCJ=no
17579      fi
17580      ;;
17581
17582    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17583      case `$LD -v 2>&1` in
17584        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17585	ld_shlibs_GCJ=no
17586	cat <<_LT_EOF 1>&2
17587
17588*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17589*** reliably create shared libraries on SCO systems.  Therefore, libtool
17590*** is disabling shared libraries support.  We urge you to upgrade GNU
17591*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17592*** your PATH or compiler configuration so that the native linker is
17593*** used, and then restart.
17594
17595_LT_EOF
17596	;;
17597	*)
17598	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17599	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17600	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17601	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17602	  else
17603	    ld_shlibs_GCJ=no
17604	  fi
17605	;;
17606      esac
17607      ;;
17608
17609    sunos4*)
17610      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17611      wlarc=
17612      hardcode_direct_GCJ=yes
17613      hardcode_shlibpath_var_GCJ=no
17614      ;;
17615
17616    *)
17617      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17618	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17619	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17620      else
17621	ld_shlibs_GCJ=no
17622      fi
17623      ;;
17624    esac
17625
17626    if test "$ld_shlibs_GCJ" = no; then
17627      runpath_var=
17628      hardcode_libdir_flag_spec_GCJ=
17629      export_dynamic_flag_spec_GCJ=
17630      whole_archive_flag_spec_GCJ=
17631    fi
17632  else
17633    # PORTME fill in a description of your system's linker (not GNU ld)
17634    case $host_os in
17635    aix3*)
17636      allow_undefined_flag_GCJ=unsupported
17637      always_export_symbols_GCJ=yes
17638      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'
17639      # Note: this linker hardcodes the directories in LIBPATH if there
17640      # are no directories specified by -L.
17641      hardcode_minus_L_GCJ=yes
17642      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17643	# Neither direct hardcoding nor static linking is supported with a
17644	# broken collect2.
17645	hardcode_direct_GCJ=unsupported
17646      fi
17647      ;;
17648
17649    aix[4-9]*)
17650      if test "$host_cpu" = ia64; then
17651	# On IA64, the linker does run time linking by default, so we don't
17652	# have to do anything special.
17653	aix_use_runtimelinking=no
17654	exp_sym_flag='-Bexport'
17655	no_entry_flag=""
17656      else
17657	# If we're using GNU nm, then we don't want the "-C" option.
17658	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17659	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17660	  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'
17661	else
17662	  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'
17663	fi
17664	aix_use_runtimelinking=no
17665
17666	# Test if we are trying to use run time linking or normal
17667	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17668	# need to do runtime linking.
17669	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17670	  for ld_flag in $LDFLAGS; do
17671  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17672  	    aix_use_runtimelinking=yes
17673  	    break
17674  	  fi
17675	  done
17676	  ;;
17677	esac
17678
17679	exp_sym_flag='-bexport'
17680	no_entry_flag='-bnoentry'
17681      fi
17682
17683      # When large executables or shared objects are built, AIX ld can
17684      # have problems creating the table of contents.  If linking a library
17685      # or program results in "error TOC overflow" add -mminimal-toc to
17686      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17687      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17688
17689      archive_cmds_GCJ=''
17690      hardcode_direct_GCJ=yes
17691      hardcode_libdir_separator_GCJ=':'
17692      link_all_deplibs_GCJ=yes
17693
17694      if test "$GCC" = yes; then
17695	case $host_os in aix4.[012]|aix4.[012].*)
17696	# We only want to do this on AIX 4.2 and lower, the check
17697	# below for broken collect2 doesn't work under 4.3+
17698	  collect2name=`${CC} -print-prog-name=collect2`
17699	  if test -f "$collect2name" && \
17700  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17701	  then
17702  	  # We have reworked collect2
17703  	  :
17704	  else
17705  	  # We have old collect2
17706  	  hardcode_direct_GCJ=unsupported
17707  	  # It fails to find uninstalled libraries when the uninstalled
17708  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17709  	  # to unsupported forces relinking
17710  	  hardcode_minus_L_GCJ=yes
17711  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17712  	  hardcode_libdir_separator_GCJ=
17713	  fi
17714	  ;;
17715	esac
17716	shared_flag='-shared'
17717	if test "$aix_use_runtimelinking" = yes; then
17718	  shared_flag="$shared_flag "'${wl}-G'
17719	fi
17720      else
17721	# not using gcc
17722	if test "$host_cpu" = ia64; then
17723  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17724  	# chokes on -Wl,-G. The following line is correct:
17725	  shared_flag='-G'
17726	else
17727	  if test "$aix_use_runtimelinking" = yes; then
17728	    shared_flag='${wl}-G'
17729	  else
17730	    shared_flag='${wl}-bM:SRE'
17731	  fi
17732	fi
17733      fi
17734
17735      # It seems that -bexpall does not export symbols beginning with
17736      # underscore (_), so it is better to generate a list of symbols to export.
17737      always_export_symbols_GCJ=yes
17738      if test "$aix_use_runtimelinking" = yes; then
17739	# Warning - without using the other runtime loading flags (-brtl),
17740	# -berok will link without error, but may produce a broken library.
17741	allow_undefined_flag_GCJ='-berok'
17742       # Determine the default libpath from the value encoded in an empty executable.
17743       cat >conftest.$ac_ext <<_ACEOF
17744/* confdefs.h.  */
17745_ACEOF
17746cat confdefs.h >>conftest.$ac_ext
17747cat >>conftest.$ac_ext <<_ACEOF
17748/* end confdefs.h.  */
17749
17750int
17751main ()
17752{
17753
17754  ;
17755  return 0;
17756}
17757_ACEOF
17758rm -f conftest.$ac_objext conftest$ac_exeext
17759if { (ac_try="$ac_link"
17760case "(($ac_try" in
17761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762  *) ac_try_echo=$ac_try;;
17763esac
17764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17765$as_echo "$ac_try_echo") >&5
17766  (eval "$ac_link") 2>conftest.er1
17767  ac_status=$?
17768  grep -v '^ *+' conftest.er1 >conftest.err
17769  rm -f conftest.er1
17770  cat conftest.err >&5
17771  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772  (exit $ac_status); } && {
17773	 test -z "$ac_c_werror_flag" ||
17774	 test ! -s conftest.err
17775       } && test -s conftest$ac_exeext && {
17776	 test "$cross_compiling" = yes ||
17777	 $as_test_x conftest$ac_exeext
17778       }; then
17779
17780lt_aix_libpath_sed='
17781    /Import File Strings/,/^$/ {
17782	/^0/ {
17783	    s/^0  *\(.*\)$/\1/
17784	    p
17785	}
17786    }'
17787aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17788# Check for a 64-bit object if we didn't find anything.
17789if test -z "$aix_libpath"; then
17790  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17791fi
17792else
17793  $as_echo "$as_me: failed program was:" >&5
17794sed 's/^/| /' conftest.$ac_ext >&5
17795
17796
17797fi
17798
17799rm -rf conftest.dSYM
17800rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17801      conftest$ac_exeext conftest.$ac_ext
17802if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17803
17804       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17805	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"
17806       else
17807	if test "$host_cpu" = ia64; then
17808	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17809	  allow_undefined_flag_GCJ="-z nodefs"
17810	  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"
17811	else
17812	 # Determine the default libpath from the value encoded in an empty executable.
17813	 cat >conftest.$ac_ext <<_ACEOF
17814/* confdefs.h.  */
17815_ACEOF
17816cat confdefs.h >>conftest.$ac_ext
17817cat >>conftest.$ac_ext <<_ACEOF
17818/* end confdefs.h.  */
17819
17820int
17821main ()
17822{
17823
17824  ;
17825  return 0;
17826}
17827_ACEOF
17828rm -f conftest.$ac_objext conftest$ac_exeext
17829if { (ac_try="$ac_link"
17830case "(($ac_try" in
17831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832  *) ac_try_echo=$ac_try;;
17833esac
17834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17835$as_echo "$ac_try_echo") >&5
17836  (eval "$ac_link") 2>conftest.er1
17837  ac_status=$?
17838  grep -v '^ *+' conftest.er1 >conftest.err
17839  rm -f conftest.er1
17840  cat conftest.err >&5
17841  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842  (exit $ac_status); } && {
17843	 test -z "$ac_c_werror_flag" ||
17844	 test ! -s conftest.err
17845       } && test -s conftest$ac_exeext && {
17846	 test "$cross_compiling" = yes ||
17847	 $as_test_x conftest$ac_exeext
17848       }; then
17849
17850lt_aix_libpath_sed='
17851    /Import File Strings/,/^$/ {
17852	/^0/ {
17853	    s/^0  *\(.*\)$/\1/
17854	    p
17855	}
17856    }'
17857aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17858# Check for a 64-bit object if we didn't find anything.
17859if test -z "$aix_libpath"; then
17860  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17861fi
17862else
17863  $as_echo "$as_me: failed program was:" >&5
17864sed 's/^/| /' conftest.$ac_ext >&5
17865
17866
17867fi
17868
17869rm -rf conftest.dSYM
17870rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17871      conftest$ac_exeext conftest.$ac_ext
17872if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17873
17874	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17875	  # Warning - without using the other run time loading flags,
17876	  # -berok will link without error, but may produce a broken library.
17877	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17878	  allow_undefined_flag_GCJ=' ${wl}-berok'
17879	  # Exported symbols can be pulled into shared objects from archives
17880	  whole_archive_flag_spec_GCJ='$convenience'
17881	  archive_cmds_need_lc_GCJ=yes
17882	  # This is similar to how AIX traditionally builds its shared libraries.
17883	  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'
17884	fi
17885      fi
17886      ;;
17887
17888    amigaos*)
17889      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)'
17890      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17891      hardcode_minus_L_GCJ=yes
17892      # see comment about different semantics on the GNU ld section
17893      ld_shlibs_GCJ=no
17894      ;;
17895
17896    bsdi[45]*)
17897      export_dynamic_flag_spec_GCJ=-rdynamic
17898      ;;
17899
17900    cygwin* | mingw* | pw32*)
17901      # When not using gcc, we currently assume that we are using
17902      # Microsoft Visual C++.
17903      # hardcode_libdir_flag_spec is actually meaningless, as there is
17904      # no search path for DLLs.
17905      hardcode_libdir_flag_spec_GCJ=' '
17906      allow_undefined_flag_GCJ=unsupported
17907      # Tell ltmain to make .lib files, not .a files.
17908      libext=lib
17909      # Tell ltmain to make .dll files, not .so files.
17910      shrext_cmds=".dll"
17911      # FIXME: Setting linknames here is a bad hack.
17912      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17913      # The linker will automatically build a .lib file if we build a DLL.
17914      old_archive_From_new_cmds_GCJ='true'
17915      # FIXME: Should let the user specify the lib program.
17916      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17917      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17918      enable_shared_with_static_runtimes_GCJ=yes
17919      ;;
17920
17921    darwin* | rhapsody*)
17922      case $host_os in
17923        rhapsody* | darwin1.[012])
17924         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17925         ;;
17926       *) # Darwin 1.3 on
17927         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17928           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17929         else
17930           case ${MACOSX_DEPLOYMENT_TARGET} in
17931             10.[012])
17932               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17933               ;;
17934             10.*)
17935               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17936               ;;
17937           esac
17938         fi
17939         ;;
17940      esac
17941      archive_cmds_need_lc_GCJ=no
17942      hardcode_direct_GCJ=no
17943      hardcode_automatic_GCJ=yes
17944      hardcode_shlibpath_var_GCJ=unsupported
17945      whole_archive_flag_spec_GCJ=''
17946      link_all_deplibs_GCJ=yes
17947    if test "$GCC" = yes ; then
17948    	output_verbose_link_cmd='echo'
17949        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}"
17950        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17951        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}"
17952        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}"
17953    else
17954      case $cc_basename in
17955        xlc*)
17956         output_verbose_link_cmd='echo'
17957         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17958         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17959          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17960         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}'
17961          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}'
17962          ;;
17963       *)
17964         ld_shlibs_GCJ=no
17965          ;;
17966      esac
17967    fi
17968      ;;
17969
17970    dgux*)
17971      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17972      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17973      hardcode_shlibpath_var_GCJ=no
17974      ;;
17975
17976    freebsd1*)
17977      ld_shlibs_GCJ=no
17978      ;;
17979
17980    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17981    # support.  Future versions do this automatically, but an explicit c++rt0.o
17982    # does not break anything, and helps significantly (at the cost of a little
17983    # extra space).
17984    freebsd2.2*)
17985      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17986      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17987      hardcode_direct_GCJ=yes
17988      hardcode_shlibpath_var_GCJ=no
17989      ;;
17990
17991    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17992    freebsd2*)
17993      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17994      hardcode_direct_GCJ=yes
17995      hardcode_minus_L_GCJ=yes
17996      hardcode_shlibpath_var_GCJ=no
17997      ;;
17998
17999    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18000    freebsd* | dragonfly*)
18001      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18002      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18003      hardcode_direct_GCJ=yes
18004      hardcode_shlibpath_var_GCJ=no
18005      ;;
18006
18007    hpux9*)
18008      if test "$GCC" = yes; then
18009	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'
18010      else
18011	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'
18012      fi
18013      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18014      hardcode_libdir_separator_GCJ=:
18015      hardcode_direct_GCJ=yes
18016
18017      # hardcode_minus_L: Not really in the search PATH,
18018      # but as the default location of the library.
18019      hardcode_minus_L_GCJ=yes
18020      export_dynamic_flag_spec_GCJ='${wl}-E'
18021      ;;
18022
18023    hpux10*)
18024      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18025	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18026      else
18027	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18028      fi
18029      if test "$with_gnu_ld" = no; then
18030	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18031	hardcode_libdir_separator_GCJ=:
18032
18033	hardcode_direct_GCJ=yes
18034	export_dynamic_flag_spec_GCJ='${wl}-E'
18035
18036	# hardcode_minus_L: Not really in the search PATH,
18037	# but as the default location of the library.
18038	hardcode_minus_L_GCJ=yes
18039      fi
18040      ;;
18041
18042    hpux11*)
18043      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18044	case $host_cpu in
18045	hppa*64*)
18046	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18047	  ;;
18048	ia64*)
18049	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18050	  ;;
18051	*)
18052	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18053	  ;;
18054	esac
18055      else
18056	case $host_cpu in
18057	hppa*64*)
18058	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18059	  ;;
18060	ia64*)
18061	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18062	  ;;
18063	*)
18064	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18065	  ;;
18066	esac
18067      fi
18068      if test "$with_gnu_ld" = no; then
18069	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18070	hardcode_libdir_separator_GCJ=:
18071
18072	case $host_cpu in
18073	hppa*64*|ia64*)
18074	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18075	  hardcode_direct_GCJ=no
18076	  hardcode_shlibpath_var_GCJ=no
18077	  ;;
18078	*)
18079	  hardcode_direct_GCJ=yes
18080	  export_dynamic_flag_spec_GCJ='${wl}-E'
18081
18082	  # hardcode_minus_L: Not really in the search PATH,
18083	  # but as the default location of the library.
18084	  hardcode_minus_L_GCJ=yes
18085	  ;;
18086	esac
18087      fi
18088      ;;
18089
18090    irix5* | irix6* | nonstopux*)
18091      if test "$GCC" = yes; then
18092	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'
18093      else
18094	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'
18095	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18096      fi
18097      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18098      hardcode_libdir_separator_GCJ=:
18099      link_all_deplibs_GCJ=yes
18100      ;;
18101
18102    netbsd*)
18103      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18104	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18105      else
18106	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18107      fi
18108      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18109      hardcode_direct_GCJ=yes
18110      hardcode_shlibpath_var_GCJ=no
18111      ;;
18112
18113    newsos6)
18114      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18115      hardcode_direct_GCJ=yes
18116      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18117      hardcode_libdir_separator_GCJ=:
18118      hardcode_shlibpath_var_GCJ=no
18119      ;;
18120
18121    openbsd*)
18122      if test -f /usr/libexec/ld.so; then
18123	hardcode_direct_GCJ=yes
18124	hardcode_shlibpath_var_GCJ=no
18125	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18126	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18127	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18128	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18129	  export_dynamic_flag_spec_GCJ='${wl}-E'
18130	else
18131	  case $host_os in
18132	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18133	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18134	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18135	     ;;
18136	   *)
18137	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18138	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18139	     ;;
18140	  esac
18141        fi
18142      else
18143	ld_shlibs_GCJ=no
18144      fi
18145      ;;
18146
18147    os2*)
18148      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18149      hardcode_minus_L_GCJ=yes
18150      allow_undefined_flag_GCJ=unsupported
18151      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'
18152      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18153      ;;
18154
18155    osf3*)
18156      if test "$GCC" = yes; then
18157	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18158	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'
18159      else
18160	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18161	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'
18162      fi
18163      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18164      hardcode_libdir_separator_GCJ=:
18165      ;;
18166
18167    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18168      if test "$GCC" = yes; then
18169	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18170	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'
18171	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18172      else
18173	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18174	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'
18175	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~
18176	$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'
18177
18178	# Both c and cxx compiler support -rpath directly
18179	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18180      fi
18181      hardcode_libdir_separator_GCJ=:
18182      ;;
18183
18184    solaris*)
18185      no_undefined_flag_GCJ=' -z text'
18186      if test "$GCC" = yes; then
18187	wlarc='${wl}'
18188	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18189	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18190	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18191      else
18192	wlarc=''
18193	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18194	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18195  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18196      fi
18197      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18198      hardcode_shlibpath_var_GCJ=no
18199      case $host_os in
18200      solaris2.[0-5] | solaris2.[0-5].*) ;;
18201      *)
18202	# The compiler driver will combine and reorder linker options,
18203	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18204	# but is careful enough not to reorder.
18205 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18206	if test "$GCC" = yes; then
18207	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18208	else
18209	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18210	fi
18211	;;
18212      esac
18213      link_all_deplibs_GCJ=yes
18214      ;;
18215
18216    sunos4*)
18217      if test "x$host_vendor" = xsequent; then
18218	# Use $CC to link under sequent, because it throws in some extra .o
18219	# files that make .init and .fini sections work.
18220	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18221      else
18222	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18223      fi
18224      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18225      hardcode_direct_GCJ=yes
18226      hardcode_minus_L_GCJ=yes
18227      hardcode_shlibpath_var_GCJ=no
18228      ;;
18229
18230    sysv4)
18231      case $host_vendor in
18232	sni)
18233	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18234	  hardcode_direct_GCJ=yes # is this really true???
18235	;;
18236	siemens)
18237	  ## LD is ld it makes a PLAMLIB
18238	  ## CC just makes a GrossModule.
18239	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18240	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18241	  hardcode_direct_GCJ=no
18242        ;;
18243	motorola)
18244	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18245	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18246	;;
18247      esac
18248      runpath_var='LD_RUN_PATH'
18249      hardcode_shlibpath_var_GCJ=no
18250      ;;
18251
18252    sysv4.3*)
18253      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18254      hardcode_shlibpath_var_GCJ=no
18255      export_dynamic_flag_spec_GCJ='-Bexport'
18256      ;;
18257
18258    sysv4*MP*)
18259      if test -d /usr/nec; then
18260	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18261	hardcode_shlibpath_var_GCJ=no
18262	runpath_var=LD_RUN_PATH
18263	hardcode_runpath_var=yes
18264	ld_shlibs_GCJ=yes
18265      fi
18266      ;;
18267
18268    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18269      no_undefined_flag_GCJ='${wl}-z,text'
18270      archive_cmds_need_lc_GCJ=no
18271      hardcode_shlibpath_var_GCJ=no
18272      runpath_var='LD_RUN_PATH'
18273
18274      if test "$GCC" = yes; then
18275	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18276	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18277      else
18278	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18279	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18280      fi
18281      ;;
18282
18283    sysv5* | sco3.2v5* | sco5v6*)
18284      # Note: We can NOT use -z defs as we might desire, because we do not
18285      # link with -lc, and that would cause any symbols used from libc to
18286      # always be unresolved, which means just about no library would
18287      # ever link correctly.  If we're not using GNU ld we use -z text
18288      # though, which does catch some bad symbols but isn't as heavy-handed
18289      # as -z defs.
18290      no_undefined_flag_GCJ='${wl}-z,text'
18291      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18292      archive_cmds_need_lc_GCJ=no
18293      hardcode_shlibpath_var_GCJ=no
18294      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18295      hardcode_libdir_separator_GCJ=':'
18296      link_all_deplibs_GCJ=yes
18297      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18298      runpath_var='LD_RUN_PATH'
18299
18300      if test "$GCC" = yes; then
18301	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18302	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18303      else
18304	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18305	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18306      fi
18307      ;;
18308
18309    uts4*)
18310      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18311      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18312      hardcode_shlibpath_var_GCJ=no
18313      ;;
18314
18315    *)
18316      ld_shlibs_GCJ=no
18317      ;;
18318    esac
18319  fi
18320
18321{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18322$as_echo "$ld_shlibs_GCJ" >&6; }
18323test "$ld_shlibs_GCJ" = no && can_build_shared=no
18324
18325#
18326# Do we need to explicitly link libc?
18327#
18328case "x$archive_cmds_need_lc_GCJ" in
18329x|xyes)
18330  # Assume -lc should be added
18331  archive_cmds_need_lc_GCJ=yes
18332
18333  if test "$enable_shared" = yes && test "$GCC" = yes; then
18334    case $archive_cmds_GCJ in
18335    *'~'*)
18336      # FIXME: we may have to deal with multi-command sequences.
18337      ;;
18338    '$CC '*)
18339      # Test whether the compiler implicitly links with -lc since on some
18340      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18341      # to ld, don't add -lc before -lgcc.
18342      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18343$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18344      $rm conftest*
18345      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18346
18347      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18348  (eval $ac_compile) 2>&5
18349  ac_status=$?
18350  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351  (exit $ac_status); } 2>conftest.err; then
18352        soname=conftest
18353        lib=conftest
18354        libobjs=conftest.$ac_objext
18355        deplibs=
18356        wl=$lt_prog_compiler_wl_GCJ
18357	pic_flag=$lt_prog_compiler_pic_GCJ
18358        compiler_flags=-v
18359        linker_flags=-v
18360        verstring=
18361        output_objdir=.
18362        libname=conftest
18363        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18364        allow_undefined_flag_GCJ=
18365        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18366  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18367  ac_status=$?
18368  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369  (exit $ac_status); }
18370        then
18371	  archive_cmds_need_lc_GCJ=no
18372        else
18373	  archive_cmds_need_lc_GCJ=yes
18374        fi
18375        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18376      else
18377        cat conftest.err 1>&5
18378      fi
18379      $rm conftest*
18380      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18381$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18382      ;;
18383    esac
18384  fi
18385  ;;
18386esac
18387
18388{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18389$as_echo_n "checking dynamic linker characteristics... " >&6; }
18390library_names_spec=
18391libname_spec='lib$name'
18392soname_spec=
18393shrext_cmds=".so"
18394postinstall_cmds=
18395postuninstall_cmds=
18396finish_cmds=
18397finish_eval=
18398shlibpath_var=
18399shlibpath_overrides_runpath=unknown
18400version_type=none
18401dynamic_linker="$host_os ld.so"
18402sys_lib_dlsearch_path_spec="/lib /usr/lib"
18403
18404need_lib_prefix=unknown
18405hardcode_into_libs=no
18406
18407# when you set need_version to no, make sure it does not cause -set_version
18408# flags to be left without arguments
18409need_version=unknown
18410
18411case $host_os in
18412aix3*)
18413  version_type=linux
18414  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18415  shlibpath_var=LIBPATH
18416
18417  # AIX 3 has no versioning support, so we append a major version to the name.
18418  soname_spec='${libname}${release}${shared_ext}$major'
18419  ;;
18420
18421aix[4-9]*)
18422  version_type=linux
18423  need_lib_prefix=no
18424  need_version=no
18425  hardcode_into_libs=yes
18426  if test "$host_cpu" = ia64; then
18427    # AIX 5 supports IA64
18428    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18429    shlibpath_var=LD_LIBRARY_PATH
18430  else
18431    # With GCC up to 2.95.x, collect2 would create an import file
18432    # for dependence libraries.  The import file would start with
18433    # the line `#! .'.  This would cause the generated library to
18434    # depend on `.', always an invalid library.  This was fixed in
18435    # development snapshots of GCC prior to 3.0.
18436    case $host_os in
18437      aix4 | aix4.[01] | aix4.[01].*)
18438      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18439	   echo ' yes '
18440	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18441	:
18442      else
18443	can_build_shared=no
18444      fi
18445      ;;
18446    esac
18447    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18448    # soname into executable. Probably we can add versioning support to
18449    # collect2, so additional links can be useful in future.
18450    if test "$aix_use_runtimelinking" = yes; then
18451      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18452      # instead of lib<name>.a to let people know that these are not
18453      # typical AIX shared libraries.
18454      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18455    else
18456      # We preserve .a as extension for shared libraries through AIX4.2
18457      # and later when we are not doing run time linking.
18458      library_names_spec='${libname}${release}.a $libname.a'
18459      soname_spec='${libname}${release}${shared_ext}$major'
18460    fi
18461    shlibpath_var=LIBPATH
18462  fi
18463  ;;
18464
18465amigaos*)
18466  library_names_spec='$libname.ixlibrary $libname.a'
18467  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18468  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'
18469  ;;
18470
18471beos*)
18472  library_names_spec='${libname}${shared_ext}'
18473  dynamic_linker="$host_os ld.so"
18474  shlibpath_var=LIBRARY_PATH
18475  ;;
18476
18477bsdi[45]*)
18478  version_type=linux
18479  need_version=no
18480  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18481  soname_spec='${libname}${release}${shared_ext}$major'
18482  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18483  shlibpath_var=LD_LIBRARY_PATH
18484  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18485  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18486  # the default ld.so.conf also contains /usr/contrib/lib and
18487  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18488  # libtool to hard-code these into programs
18489  ;;
18490
18491cygwin* | mingw* | pw32*)
18492  version_type=windows
18493  shrext_cmds=".dll"
18494  need_version=no
18495  need_lib_prefix=no
18496
18497  case $GCC,$host_os in
18498  yes,cygwin* | yes,mingw* | yes,pw32*)
18499    library_names_spec='$libname.dll.a'
18500    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18501    postinstall_cmds='base_file=`basename \${file}`~
18502      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18503      dldir=$destdir/`dirname \$dlpath`~
18504      test -d \$dldir || mkdir -p \$dldir~
18505      $install_prog $dir/$dlname \$dldir/$dlname~
18506      chmod a+x \$dldir/$dlname'
18507    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18508      dlpath=$dir/\$dldll~
18509       $rm \$dlpath'
18510    shlibpath_overrides_runpath=yes
18511
18512    case $host_os in
18513    cygwin*)
18514      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18515      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18516      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18517      ;;
18518    mingw*)
18519      # MinGW DLLs use traditional 'lib' prefix
18520      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18521      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18522      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18523        # It is most probably a Windows format PATH printed by
18524        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18525        # path with ; separators, and with drive letters. We can handle the
18526        # drive letters (cygwin fileutils understands them), so leave them,
18527        # especially as we might pass files found there to a mingw objdump,
18528        # which wouldn't understand a cygwinified path. Ahh.
18529        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18530      else
18531        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18532      fi
18533      ;;
18534    pw32*)
18535      # pw32 DLLs use 'pw' prefix rather than 'lib'
18536      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18537      ;;
18538    esac
18539    ;;
18540
18541  *)
18542    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18543    ;;
18544  esac
18545  dynamic_linker='Win32 ld.exe'
18546  # FIXME: first we should search . and the directory the executable is in
18547  shlibpath_var=PATH
18548  ;;
18549
18550darwin* | rhapsody*)
18551  dynamic_linker="$host_os dyld"
18552  version_type=darwin
18553  need_lib_prefix=no
18554  need_version=no
18555  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18556  soname_spec='${libname}${release}${major}$shared_ext'
18557  shlibpath_overrides_runpath=yes
18558  shlibpath_var=DYLD_LIBRARY_PATH
18559  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18560
18561  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18562  ;;
18563
18564dgux*)
18565  version_type=linux
18566  need_lib_prefix=no
18567  need_version=no
18568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18569  soname_spec='${libname}${release}${shared_ext}$major'
18570  shlibpath_var=LD_LIBRARY_PATH
18571  ;;
18572
18573freebsd1*)
18574  dynamic_linker=no
18575  ;;
18576
18577freebsd* | dragonfly*)
18578  # DragonFly does not have aout.  When/if they implement a new
18579  # versioning mechanism, adjust this.
18580  if test -x /usr/bin/objformat; then
18581    objformat=`/usr/bin/objformat`
18582  else
18583    case $host_os in
18584    freebsd[123]*) objformat=aout ;;
18585    *) objformat=elf ;;
18586    esac
18587  fi
18588  version_type=freebsd-$objformat
18589  case $version_type in
18590    freebsd-elf*)
18591      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18592      need_version=no
18593      need_lib_prefix=no
18594      ;;
18595    freebsd-*)
18596      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18597      need_version=yes
18598      ;;
18599  esac
18600  shlibpath_var=LD_LIBRARY_PATH
18601  case $host_os in
18602  freebsd2*)
18603    shlibpath_overrides_runpath=yes
18604    ;;
18605  freebsd3.[01]* | freebsdelf3.[01]*)
18606    shlibpath_overrides_runpath=yes
18607    hardcode_into_libs=yes
18608    ;;
18609  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18610  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18611    shlibpath_overrides_runpath=no
18612    hardcode_into_libs=yes
18613    ;;
18614  *) # from 4.6 on, and DragonFly
18615    shlibpath_overrides_runpath=yes
18616    hardcode_into_libs=yes
18617    ;;
18618  esac
18619  ;;
18620
18621gnu*)
18622  version_type=linux
18623  need_lib_prefix=no
18624  need_version=no
18625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18626  soname_spec='${libname}${release}${shared_ext}$major'
18627  shlibpath_var=LD_LIBRARY_PATH
18628  hardcode_into_libs=yes
18629  ;;
18630
18631hpux9* | hpux10* | hpux11*)
18632  # Give a soname corresponding to the major version so that dld.sl refuses to
18633  # link against other versions.
18634  version_type=sunos
18635  need_lib_prefix=no
18636  need_version=no
18637  case $host_cpu in
18638  ia64*)
18639    shrext_cmds='.so'
18640    hardcode_into_libs=yes
18641    dynamic_linker="$host_os dld.so"
18642    shlibpath_var=LD_LIBRARY_PATH
18643    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18644    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18645    soname_spec='${libname}${release}${shared_ext}$major'
18646    if test "X$HPUX_IA64_MODE" = X32; then
18647      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18648    else
18649      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18650    fi
18651    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18652    ;;
18653   hppa*64*)
18654     shrext_cmds='.sl'
18655     hardcode_into_libs=yes
18656     dynamic_linker="$host_os dld.sl"
18657     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18658     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18659     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18660     soname_spec='${libname}${release}${shared_ext}$major'
18661     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18662     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18663     ;;
18664   *)
18665    shrext_cmds='.sl'
18666    dynamic_linker="$host_os dld.sl"
18667    shlibpath_var=SHLIB_PATH
18668    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18669    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18670    soname_spec='${libname}${release}${shared_ext}$major'
18671    ;;
18672  esac
18673  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18674  postinstall_cmds='chmod 555 $lib'
18675  ;;
18676
18677interix[3-9]*)
18678  version_type=linux
18679  need_lib_prefix=no
18680  need_version=no
18681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18682  soname_spec='${libname}${release}${shared_ext}$major'
18683  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18684  shlibpath_var=LD_LIBRARY_PATH
18685  shlibpath_overrides_runpath=no
18686  hardcode_into_libs=yes
18687  ;;
18688
18689irix5* | irix6* | nonstopux*)
18690  case $host_os in
18691    nonstopux*) version_type=nonstopux ;;
18692    *)
18693	if test "$lt_cv_prog_gnu_ld" = yes; then
18694		version_type=linux
18695	else
18696		version_type=irix
18697	fi ;;
18698  esac
18699  need_lib_prefix=no
18700  need_version=no
18701  soname_spec='${libname}${release}${shared_ext}$major'
18702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18703  case $host_os in
18704  irix5* | nonstopux*)
18705    libsuff= shlibsuff=
18706    ;;
18707  *)
18708    case $LD in # libtool.m4 will add one of these switches to LD
18709    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18710      libsuff= shlibsuff= libmagic=32-bit;;
18711    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18712      libsuff=32 shlibsuff=N32 libmagic=N32;;
18713    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18714      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18715    *) libsuff= shlibsuff= libmagic=never-match;;
18716    esac
18717    ;;
18718  esac
18719  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18720  shlibpath_overrides_runpath=no
18721  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18722  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18723  hardcode_into_libs=yes
18724  ;;
18725
18726# No shared lib support for Linux oldld, aout, or coff.
18727linux*oldld* | linux*aout* | linux*coff*)
18728  dynamic_linker=no
18729  ;;
18730
18731# This must be Linux ELF.
18732linux* | k*bsd*-gnu)
18733  version_type=linux
18734  need_lib_prefix=no
18735  need_version=no
18736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18737  soname_spec='${libname}${release}${shared_ext}$major'
18738  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18739  shlibpath_var=LD_LIBRARY_PATH
18740  shlibpath_overrides_runpath=no
18741  # This implies no fast_install, which is unacceptable.
18742  # Some rework will be needed to allow for fast_install
18743  # before this can be enabled.
18744  hardcode_into_libs=yes
18745  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18746  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18747
18748  # Append ld.so.conf contents to the search path
18749  if test -f /etc/ld.so.conf; then
18750    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' ' '`
18751    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18752  fi
18753
18754  # We used to test for /lib/ld.so.1 and disable shared libraries on
18755  # powerpc, because MkLinux only supported shared libraries with the
18756  # GNU dynamic linker.  Since this was broken with cross compilers,
18757  # most powerpc-linux boxes support dynamic linking these days and
18758  # people can always --disable-shared, the test was removed, and we
18759  # assume the GNU/Linux dynamic linker is in use.
18760  dynamic_linker='GNU/Linux ld.so'
18761  ;;
18762
18763netbsd*)
18764  version_type=sunos
18765  need_lib_prefix=no
18766  need_version=no
18767  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18768    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18769    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18770    dynamic_linker='NetBSD (a.out) ld.so'
18771  else
18772    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18773    soname_spec='${libname}${release}${shared_ext}$major'
18774    dynamic_linker='NetBSD ld.elf_so'
18775  fi
18776  shlibpath_var=LD_LIBRARY_PATH
18777  shlibpath_overrides_runpath=yes
18778  hardcode_into_libs=yes
18779  ;;
18780
18781newsos6)
18782  version_type=linux
18783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18784  shlibpath_var=LD_LIBRARY_PATH
18785  shlibpath_overrides_runpath=yes
18786  ;;
18787
18788nto-qnx*)
18789  version_type=linux
18790  need_lib_prefix=no
18791  need_version=no
18792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18793  soname_spec='${libname}${release}${shared_ext}$major'
18794  shlibpath_var=LD_LIBRARY_PATH
18795  shlibpath_overrides_runpath=yes
18796  ;;
18797
18798openbsd*)
18799  version_type=sunos
18800  sys_lib_dlsearch_path_spec="/usr/lib"
18801  need_lib_prefix=no
18802  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18803  case $host_os in
18804    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18805    *)                         need_version=no  ;;
18806  esac
18807  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18808  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18809  shlibpath_var=LD_LIBRARY_PATH
18810  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18811    case $host_os in
18812      openbsd2.[89] | openbsd2.[89].*)
18813	shlibpath_overrides_runpath=no
18814	;;
18815      *)
18816	shlibpath_overrides_runpath=yes
18817	;;
18818      esac
18819  else
18820    shlibpath_overrides_runpath=yes
18821  fi
18822  ;;
18823
18824os2*)
18825  libname_spec='$name'
18826  shrext_cmds=".dll"
18827  need_lib_prefix=no
18828  library_names_spec='$libname${shared_ext} $libname.a'
18829  dynamic_linker='OS/2 ld.exe'
18830  shlibpath_var=LIBPATH
18831  ;;
18832
18833osf3* | osf4* | osf5*)
18834  version_type=osf
18835  need_lib_prefix=no
18836  need_version=no
18837  soname_spec='${libname}${release}${shared_ext}$major'
18838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839  shlibpath_var=LD_LIBRARY_PATH
18840  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18841  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18842  ;;
18843
18844rdos*)
18845  dynamic_linker=no
18846  ;;
18847
18848solaris*)
18849  version_type=linux
18850  need_lib_prefix=no
18851  need_version=no
18852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18853  soname_spec='${libname}${release}${shared_ext}$major'
18854  shlibpath_var=LD_LIBRARY_PATH
18855  shlibpath_overrides_runpath=yes
18856  hardcode_into_libs=yes
18857  # ldd complains unless libraries are executable
18858  postinstall_cmds='chmod +x $lib'
18859  ;;
18860
18861sunos4*)
18862  version_type=sunos
18863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18864  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18865  shlibpath_var=LD_LIBRARY_PATH
18866  shlibpath_overrides_runpath=yes
18867  if test "$with_gnu_ld" = yes; then
18868    need_lib_prefix=no
18869  fi
18870  need_version=yes
18871  ;;
18872
18873sysv4 | sysv4.3*)
18874  version_type=linux
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  case $host_vendor in
18879    sni)
18880      shlibpath_overrides_runpath=no
18881      need_lib_prefix=no
18882      export_dynamic_flag_spec='${wl}-Blargedynsym'
18883      runpath_var=LD_RUN_PATH
18884      ;;
18885    siemens)
18886      need_lib_prefix=no
18887      ;;
18888    motorola)
18889      need_lib_prefix=no
18890      need_version=no
18891      shlibpath_overrides_runpath=no
18892      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18893      ;;
18894  esac
18895  ;;
18896
18897sysv4*MP*)
18898  if test -d /usr/nec ;then
18899    version_type=linux
18900    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18901    soname_spec='$libname${shared_ext}.$major'
18902    shlibpath_var=LD_LIBRARY_PATH
18903  fi
18904  ;;
18905
18906sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18907  version_type=freebsd-elf
18908  need_lib_prefix=no
18909  need_version=no
18910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18911  soname_spec='${libname}${release}${shared_ext}$major'
18912  shlibpath_var=LD_LIBRARY_PATH
18913  hardcode_into_libs=yes
18914  if test "$with_gnu_ld" = yes; then
18915    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18916    shlibpath_overrides_runpath=no
18917  else
18918    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18919    shlibpath_overrides_runpath=yes
18920    case $host_os in
18921      sco3.2v5*)
18922        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18923	;;
18924    esac
18925  fi
18926  sys_lib_dlsearch_path_spec='/usr/lib'
18927  ;;
18928
18929uts4*)
18930  version_type=linux
18931  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18932  soname_spec='${libname}${release}${shared_ext}$major'
18933  shlibpath_var=LD_LIBRARY_PATH
18934  ;;
18935
18936*)
18937  dynamic_linker=no
18938  ;;
18939esac
18940{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18941$as_echo "$dynamic_linker" >&6; }
18942test "$dynamic_linker" = no && can_build_shared=no
18943
18944if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18945  $as_echo_n "(cached) " >&6
18946else
18947  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18948fi
18949
18950sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18951if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18952  $as_echo_n "(cached) " >&6
18953else
18954  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18955fi
18956
18957sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18958
18959variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18960if test "$GCC" = yes; then
18961  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18962fi
18963
18964{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18965$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18966hardcode_action_GCJ=
18967if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18968   test -n "$runpath_var_GCJ" || \
18969   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18970
18971  # We can hardcode non-existant directories.
18972  if test "$hardcode_direct_GCJ" != no &&
18973     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18974     # have to relink, otherwise we might link with an installed library
18975     # when we should be linking with a yet-to-be-installed one
18976     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18977     test "$hardcode_minus_L_GCJ" != no; then
18978    # Linking always hardcodes the temporary library directory.
18979    hardcode_action_GCJ=relink
18980  else
18981    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18982    hardcode_action_GCJ=immediate
18983  fi
18984else
18985  # We cannot hardcode anything, or else we can only hardcode existing
18986  # directories.
18987  hardcode_action_GCJ=unsupported
18988fi
18989{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18990$as_echo "$hardcode_action_GCJ" >&6; }
18991
18992if test "$hardcode_action_GCJ" = relink; then
18993  # Fast installation is not supported
18994  enable_fast_install=no
18995elif test "$shlibpath_overrides_runpath" = yes ||
18996     test "$enable_shared" = no; then
18997  # Fast installation is not necessary
18998  enable_fast_install=needless
18999fi
19000
19001
19002# The else clause should only fire when bootstrapping the
19003# libtool distribution, otherwise you forgot to ship ltmain.sh
19004# with your package, and you will get complaints that there are
19005# no rules to generate ltmain.sh.
19006if test -f "$ltmain"; then
19007  # See if we are running on zsh, and set the options which allow our commands through
19008  # without removal of \ escapes.
19009  if test -n "${ZSH_VERSION+set}" ; then
19010    setopt NO_GLOB_SUBST
19011  fi
19012  # Now quote all the things that may contain metacharacters while being
19013  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19014  # variables and quote the copies for generation of the libtool script.
19015  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19016    SED SHELL STRIP \
19017    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19018    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19019    deplibs_check_method reload_flag reload_cmds need_locks \
19020    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19021    lt_cv_sys_global_symbol_to_c_name_address \
19022    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19023    old_postinstall_cmds old_postuninstall_cmds \
19024    compiler_GCJ \
19025    CC_GCJ \
19026    LD_GCJ \
19027    lt_prog_compiler_wl_GCJ \
19028    lt_prog_compiler_pic_GCJ \
19029    lt_prog_compiler_static_GCJ \
19030    lt_prog_compiler_no_builtin_flag_GCJ \
19031    export_dynamic_flag_spec_GCJ \
19032    thread_safe_flag_spec_GCJ \
19033    whole_archive_flag_spec_GCJ \
19034    enable_shared_with_static_runtimes_GCJ \
19035    old_archive_cmds_GCJ \
19036    old_archive_from_new_cmds_GCJ \
19037    predep_objects_GCJ \
19038    postdep_objects_GCJ \
19039    predeps_GCJ \
19040    postdeps_GCJ \
19041    compiler_lib_search_path_GCJ \
19042    compiler_lib_search_dirs_GCJ \
19043    archive_cmds_GCJ \
19044    archive_expsym_cmds_GCJ \
19045    postinstall_cmds_GCJ \
19046    postuninstall_cmds_GCJ \
19047    old_archive_from_expsyms_cmds_GCJ \
19048    allow_undefined_flag_GCJ \
19049    no_undefined_flag_GCJ \
19050    export_symbols_cmds_GCJ \
19051    hardcode_libdir_flag_spec_GCJ \
19052    hardcode_libdir_flag_spec_ld_GCJ \
19053    hardcode_libdir_separator_GCJ \
19054    hardcode_automatic_GCJ \
19055    module_cmds_GCJ \
19056    module_expsym_cmds_GCJ \
19057    lt_cv_prog_compiler_c_o_GCJ \
19058    fix_srcfile_path_GCJ \
19059    exclude_expsyms_GCJ \
19060    include_expsyms_GCJ; do
19061
19062    case $var in
19063    old_archive_cmds_GCJ | \
19064    old_archive_from_new_cmds_GCJ | \
19065    archive_cmds_GCJ | \
19066    archive_expsym_cmds_GCJ | \
19067    module_cmds_GCJ | \
19068    module_expsym_cmds_GCJ | \
19069    old_archive_from_expsyms_cmds_GCJ | \
19070    export_symbols_cmds_GCJ | \
19071    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19072    postinstall_cmds | postuninstall_cmds | \
19073    old_postinstall_cmds | old_postuninstall_cmds | \
19074    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19075      # Double-quote double-evaled strings.
19076      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19077      ;;
19078    *)
19079      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19080      ;;
19081    esac
19082  done
19083
19084  case $lt_echo in
19085  *'\$0 --fallback-echo"')
19086    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19087    ;;
19088  esac
19089
19090cfgfile="$ofile"
19091
19092  cat <<__EOF__ >> "$cfgfile"
19093# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19094
19095# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19096
19097# Shell to use when invoking shell scripts.
19098SHELL=$lt_SHELL
19099
19100# Whether or not to build shared libraries.
19101build_libtool_libs=$enable_shared
19102
19103# Whether or not to build static libraries.
19104build_old_libs=$enable_static
19105
19106# Whether or not to add -lc for building shared libraries.
19107build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19108
19109# Whether or not to disallow shared libs when runtime libs are static
19110allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19111
19112# Whether or not to optimize for fast installation.
19113fast_install=$enable_fast_install
19114
19115# The host system.
19116host_alias=$host_alias
19117host=$host
19118host_os=$host_os
19119
19120# The build system.
19121build_alias=$build_alias
19122build=$build
19123build_os=$build_os
19124
19125# An echo program that does not interpret backslashes.
19126echo=$lt_echo
19127
19128# The archiver.
19129AR=$lt_AR
19130AR_FLAGS=$lt_AR_FLAGS
19131
19132# A C compiler.
19133LTCC=$lt_LTCC
19134
19135# LTCC compiler flags.
19136LTCFLAGS=$lt_LTCFLAGS
19137
19138# A language-specific compiler.
19139CC=$lt_compiler_GCJ
19140
19141# Is the compiler the GNU C compiler?
19142with_gcc=$GCC_GCJ
19143
19144# An ERE matcher.
19145EGREP=$lt_EGREP
19146
19147# The linker used to build libraries.
19148LD=$lt_LD_GCJ
19149
19150# Whether we need hard or soft links.
19151LN_S=$lt_LN_S
19152
19153# A BSD-compatible nm program.
19154NM=$lt_NM
19155
19156# A symbol stripping program
19157STRIP=$lt_STRIP
19158
19159# Used to examine libraries when file_magic_cmd begins "file"
19160MAGIC_CMD=$MAGIC_CMD
19161
19162# Used on cygwin: DLL creation program.
19163DLLTOOL="$DLLTOOL"
19164
19165# Used on cygwin: object dumper.
19166OBJDUMP="$OBJDUMP"
19167
19168# Used on cygwin: assembler.
19169AS="$AS"
19170
19171# The name of the directory that contains temporary libtool files.
19172objdir=$objdir
19173
19174# How to create reloadable object files.
19175reload_flag=$lt_reload_flag
19176reload_cmds=$lt_reload_cmds
19177
19178# How to pass a linker flag through the compiler.
19179wl=$lt_lt_prog_compiler_wl_GCJ
19180
19181# Object file suffix (normally "o").
19182objext="$ac_objext"
19183
19184# Old archive suffix (normally "a").
19185libext="$libext"
19186
19187# Shared library suffix (normally ".so").
19188shrext_cmds='$shrext_cmds'
19189
19190# Executable file suffix (normally "").
19191exeext="$exeext"
19192
19193# Additional compiler flags for building library objects.
19194pic_flag=$lt_lt_prog_compiler_pic_GCJ
19195pic_mode=$pic_mode
19196
19197# What is the maximum length of a command?
19198max_cmd_len=$lt_cv_sys_max_cmd_len
19199
19200# Does compiler simultaneously support -c and -o options?
19201compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19202
19203# Must we lock files when doing compilation?
19204need_locks=$lt_need_locks
19205
19206# Do we need the lib prefix for modules?
19207need_lib_prefix=$need_lib_prefix
19208
19209# Do we need a version for libraries?
19210need_version=$need_version
19211
19212# Whether dlopen is supported.
19213dlopen_support=$enable_dlopen
19214
19215# Whether dlopen of programs is supported.
19216dlopen_self=$enable_dlopen_self
19217
19218# Whether dlopen of statically linked programs is supported.
19219dlopen_self_static=$enable_dlopen_self_static
19220
19221# Compiler flag to prevent dynamic linking.
19222link_static_flag=$lt_lt_prog_compiler_static_GCJ
19223
19224# Compiler flag to turn off builtin functions.
19225no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19226
19227# Compiler flag to allow reflexive dlopens.
19228export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19229
19230# Compiler flag to generate shared objects directly from archives.
19231whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19232
19233# Compiler flag to generate thread-safe objects.
19234thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19235
19236# Library versioning type.
19237version_type=$version_type
19238
19239# Format of library name prefix.
19240libname_spec=$lt_libname_spec
19241
19242# List of archive names.  First name is the real one, the rest are links.
19243# The last name is the one that the linker finds with -lNAME.
19244library_names_spec=$lt_library_names_spec
19245
19246# The coded name of the library, if different from the real name.
19247soname_spec=$lt_soname_spec
19248
19249# Commands used to build and install an old-style archive.
19250RANLIB=$lt_RANLIB
19251old_archive_cmds=$lt_old_archive_cmds_GCJ
19252old_postinstall_cmds=$lt_old_postinstall_cmds
19253old_postuninstall_cmds=$lt_old_postuninstall_cmds
19254
19255# Create an old-style archive from a shared archive.
19256old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19257
19258# Create a temporary old-style archive to link instead of a shared archive.
19259old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19260
19261# Commands used to build and install a shared archive.
19262archive_cmds=$lt_archive_cmds_GCJ
19263archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19264postinstall_cmds=$lt_postinstall_cmds
19265postuninstall_cmds=$lt_postuninstall_cmds
19266
19267# Commands used to build a loadable module (assumed same as above if empty)
19268module_cmds=$lt_module_cmds_GCJ
19269module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19270
19271# Commands to strip libraries.
19272old_striplib=$lt_old_striplib
19273striplib=$lt_striplib
19274
19275# Dependencies to place before the objects being linked to create a
19276# shared library.
19277predep_objects=$lt_predep_objects_GCJ
19278
19279# Dependencies to place after the objects being linked to create a
19280# shared library.
19281postdep_objects=$lt_postdep_objects_GCJ
19282
19283# Dependencies to place before the objects being linked to create a
19284# shared library.
19285predeps=$lt_predeps_GCJ
19286
19287# Dependencies to place after the objects being linked to create a
19288# shared library.
19289postdeps=$lt_postdeps_GCJ
19290
19291# The directories searched by this compiler when creating a shared
19292# library
19293compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19294
19295# The library search path used internally by the compiler when linking
19296# a shared library.
19297compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19298
19299# Method to check whether dependent libraries are shared objects.
19300deplibs_check_method=$lt_deplibs_check_method
19301
19302# Command to use when deplibs_check_method == file_magic.
19303file_magic_cmd=$lt_file_magic_cmd
19304
19305# Flag that allows shared libraries with undefined symbols to be built.
19306allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19307
19308# Flag that forces no undefined symbols.
19309no_undefined_flag=$lt_no_undefined_flag_GCJ
19310
19311# Commands used to finish a libtool library installation in a directory.
19312finish_cmds=$lt_finish_cmds
19313
19314# Same as above, but a single script fragment to be evaled but not shown.
19315finish_eval=$lt_finish_eval
19316
19317# Take the output of nm and produce a listing of raw symbols and C names.
19318global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19319
19320# Transform the output of nm in a proper C declaration
19321global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19322
19323# Transform the output of nm in a C name address pair
19324global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19325
19326# This is the shared library runtime path variable.
19327runpath_var=$runpath_var
19328
19329# This is the shared library path variable.
19330shlibpath_var=$shlibpath_var
19331
19332# Is shlibpath searched before the hard-coded library search path?
19333shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19334
19335# How to hardcode a shared library path into an executable.
19336hardcode_action=$hardcode_action_GCJ
19337
19338# Whether we should hardcode library paths into libraries.
19339hardcode_into_libs=$hardcode_into_libs
19340
19341# Flag to hardcode \$libdir into a binary during linking.
19342# This must work even if \$libdir does not exist.
19343hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19344
19345# If ld is used when linking, flag to hardcode \$libdir into
19346# a binary during linking. This must work even if \$libdir does
19347# not exist.
19348hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19349
19350# Whether we need a single -rpath flag with a separated argument.
19351hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19352
19353# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19354# resulting binary.
19355hardcode_direct=$hardcode_direct_GCJ
19356
19357# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19358# resulting binary.
19359hardcode_minus_L=$hardcode_minus_L_GCJ
19360
19361# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19362# the resulting binary.
19363hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19364
19365# Set to yes if building a shared library automatically hardcodes DIR into the library
19366# and all subsequent libraries and executables linked against it.
19367hardcode_automatic=$hardcode_automatic_GCJ
19368
19369# Variables whose values should be saved in libtool wrapper scripts and
19370# restored at relink time.
19371variables_saved_for_relink="$variables_saved_for_relink"
19372
19373# Whether libtool must link a program against all its dependency libraries.
19374link_all_deplibs=$link_all_deplibs_GCJ
19375
19376# Compile-time system search path for libraries
19377sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19378
19379# Run-time system search path for libraries
19380sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19381
19382# Fix the shell variable \$srcfile for the compiler.
19383fix_srcfile_path=$lt_fix_srcfile_path
19384
19385# Set to yes if exported symbols are required.
19386always_export_symbols=$always_export_symbols_GCJ
19387
19388# The commands to list exported symbols.
19389export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19390
19391# The commands to extract the exported symbol list from a shared archive.
19392extract_expsyms_cmds=$lt_extract_expsyms_cmds
19393
19394# Symbols that should not be listed in the preloaded symbols.
19395exclude_expsyms=$lt_exclude_expsyms_GCJ
19396
19397# Symbols that must always be exported.
19398include_expsyms=$lt_include_expsyms_GCJ
19399
19400# ### END LIBTOOL TAG CONFIG: $tagname
19401
19402__EOF__
19403
19404
19405else
19406  # If there is no Makefile yet, we rely on a make rule to execute
19407  # `config.status --recheck' to rerun these tests and create the
19408  # libtool script then.
19409  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19410  if test -f "$ltmain_in"; then
19411    test -f Makefile && make "$ltmain"
19412  fi
19413fi
19414
19415
19416ac_ext=c
19417ac_cpp='$CPP $CPPFLAGS'
19418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19420ac_compiler_gnu=$ac_cv_c_compiler_gnu
19421
19422CC="$lt_save_CC"
19423
19424	else
19425	  tagname=""
19426	fi
19427	;;
19428
19429      RC)
19430
19431
19432# Source file extension for RC test sources.
19433ac_ext=rc
19434
19435# Object file extension for compiled RC test sources.
19436objext=o
19437objext_RC=$objext
19438
19439# Code to be used in simple compile tests
19440lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19441
19442# Code to be used in simple link tests
19443lt_simple_link_test_code="$lt_simple_compile_test_code"
19444
19445# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19446
19447# If no C compiler was specified, use CC.
19448LTCC=${LTCC-"$CC"}
19449
19450# If no C compiler flags were specified, use CFLAGS.
19451LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19452
19453# Allow CC to be a program name with arguments.
19454compiler=$CC
19455
19456
19457# save warnings/boilerplate of simple test code
19458ac_outfile=conftest.$ac_objext
19459echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19460eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19461_lt_compiler_boilerplate=`cat conftest.err`
19462$rm conftest*
19463
19464ac_outfile=conftest.$ac_objext
19465echo "$lt_simple_link_test_code" >conftest.$ac_ext
19466eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19467_lt_linker_boilerplate=`cat conftest.err`
19468$rm -r conftest*
19469
19470
19471# Allow CC to be a program name with arguments.
19472lt_save_CC="$CC"
19473CC=${RC-"windres"}
19474compiler=$CC
19475compiler_RC=$CC
19476for cc_temp in $compiler""; do
19477  case $cc_temp in
19478    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19479    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19480    \-*) ;;
19481    *) break;;
19482  esac
19483done
19484cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19485
19486lt_cv_prog_compiler_c_o_RC=yes
19487
19488# The else clause should only fire when bootstrapping the
19489# libtool distribution, otherwise you forgot to ship ltmain.sh
19490# with your package, and you will get complaints that there are
19491# no rules to generate ltmain.sh.
19492if test -f "$ltmain"; then
19493  # See if we are running on zsh, and set the options which allow our commands through
19494  # without removal of \ escapes.
19495  if test -n "${ZSH_VERSION+set}" ; then
19496    setopt NO_GLOB_SUBST
19497  fi
19498  # Now quote all the things that may contain metacharacters while being
19499  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19500  # variables and quote the copies for generation of the libtool script.
19501  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19502    SED SHELL STRIP \
19503    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19504    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19505    deplibs_check_method reload_flag reload_cmds need_locks \
19506    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19507    lt_cv_sys_global_symbol_to_c_name_address \
19508    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19509    old_postinstall_cmds old_postuninstall_cmds \
19510    compiler_RC \
19511    CC_RC \
19512    LD_RC \
19513    lt_prog_compiler_wl_RC \
19514    lt_prog_compiler_pic_RC \
19515    lt_prog_compiler_static_RC \
19516    lt_prog_compiler_no_builtin_flag_RC \
19517    export_dynamic_flag_spec_RC \
19518    thread_safe_flag_spec_RC \
19519    whole_archive_flag_spec_RC \
19520    enable_shared_with_static_runtimes_RC \
19521    old_archive_cmds_RC \
19522    old_archive_from_new_cmds_RC \
19523    predep_objects_RC \
19524    postdep_objects_RC \
19525    predeps_RC \
19526    postdeps_RC \
19527    compiler_lib_search_path_RC \
19528    compiler_lib_search_dirs_RC \
19529    archive_cmds_RC \
19530    archive_expsym_cmds_RC \
19531    postinstall_cmds_RC \
19532    postuninstall_cmds_RC \
19533    old_archive_from_expsyms_cmds_RC \
19534    allow_undefined_flag_RC \
19535    no_undefined_flag_RC \
19536    export_symbols_cmds_RC \
19537    hardcode_libdir_flag_spec_RC \
19538    hardcode_libdir_flag_spec_ld_RC \
19539    hardcode_libdir_separator_RC \
19540    hardcode_automatic_RC \
19541    module_cmds_RC \
19542    module_expsym_cmds_RC \
19543    lt_cv_prog_compiler_c_o_RC \
19544    fix_srcfile_path_RC \
19545    exclude_expsyms_RC \
19546    include_expsyms_RC; do
19547
19548    case $var in
19549    old_archive_cmds_RC | \
19550    old_archive_from_new_cmds_RC | \
19551    archive_cmds_RC | \
19552    archive_expsym_cmds_RC | \
19553    module_cmds_RC | \
19554    module_expsym_cmds_RC | \
19555    old_archive_from_expsyms_cmds_RC | \
19556    export_symbols_cmds_RC | \
19557    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19558    postinstall_cmds | postuninstall_cmds | \
19559    old_postinstall_cmds | old_postuninstall_cmds | \
19560    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19561      # Double-quote double-evaled strings.
19562      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19563      ;;
19564    *)
19565      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19566      ;;
19567    esac
19568  done
19569
19570  case $lt_echo in
19571  *'\$0 --fallback-echo"')
19572    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19573    ;;
19574  esac
19575
19576cfgfile="$ofile"
19577
19578  cat <<__EOF__ >> "$cfgfile"
19579# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19580
19581# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19582
19583# Shell to use when invoking shell scripts.
19584SHELL=$lt_SHELL
19585
19586# Whether or not to build shared libraries.
19587build_libtool_libs=$enable_shared
19588
19589# Whether or not to build static libraries.
19590build_old_libs=$enable_static
19591
19592# Whether or not to add -lc for building shared libraries.
19593build_libtool_need_lc=$archive_cmds_need_lc_RC
19594
19595# Whether or not to disallow shared libs when runtime libs are static
19596allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19597
19598# Whether or not to optimize for fast installation.
19599fast_install=$enable_fast_install
19600
19601# The host system.
19602host_alias=$host_alias
19603host=$host
19604host_os=$host_os
19605
19606# The build system.
19607build_alias=$build_alias
19608build=$build
19609build_os=$build_os
19610
19611# An echo program that does not interpret backslashes.
19612echo=$lt_echo
19613
19614# The archiver.
19615AR=$lt_AR
19616AR_FLAGS=$lt_AR_FLAGS
19617
19618# A C compiler.
19619LTCC=$lt_LTCC
19620
19621# LTCC compiler flags.
19622LTCFLAGS=$lt_LTCFLAGS
19623
19624# A language-specific compiler.
19625CC=$lt_compiler_RC
19626
19627# Is the compiler the GNU C compiler?
19628with_gcc=$GCC_RC
19629
19630# An ERE matcher.
19631EGREP=$lt_EGREP
19632
19633# The linker used to build libraries.
19634LD=$lt_LD_RC
19635
19636# Whether we need hard or soft links.
19637LN_S=$lt_LN_S
19638
19639# A BSD-compatible nm program.
19640NM=$lt_NM
19641
19642# A symbol stripping program
19643STRIP=$lt_STRIP
19644
19645# Used to examine libraries when file_magic_cmd begins "file"
19646MAGIC_CMD=$MAGIC_CMD
19647
19648# Used on cygwin: DLL creation program.
19649DLLTOOL="$DLLTOOL"
19650
19651# Used on cygwin: object dumper.
19652OBJDUMP="$OBJDUMP"
19653
19654# Used on cygwin: assembler.
19655AS="$AS"
19656
19657# The name of the directory that contains temporary libtool files.
19658objdir=$objdir
19659
19660# How to create reloadable object files.
19661reload_flag=$lt_reload_flag
19662reload_cmds=$lt_reload_cmds
19663
19664# How to pass a linker flag through the compiler.
19665wl=$lt_lt_prog_compiler_wl_RC
19666
19667# Object file suffix (normally "o").
19668objext="$ac_objext"
19669
19670# Old archive suffix (normally "a").
19671libext="$libext"
19672
19673# Shared library suffix (normally ".so").
19674shrext_cmds='$shrext_cmds'
19675
19676# Executable file suffix (normally "").
19677exeext="$exeext"
19678
19679# Additional compiler flags for building library objects.
19680pic_flag=$lt_lt_prog_compiler_pic_RC
19681pic_mode=$pic_mode
19682
19683# What is the maximum length of a command?
19684max_cmd_len=$lt_cv_sys_max_cmd_len
19685
19686# Does compiler simultaneously support -c and -o options?
19687compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19688
19689# Must we lock files when doing compilation?
19690need_locks=$lt_need_locks
19691
19692# Do we need the lib prefix for modules?
19693need_lib_prefix=$need_lib_prefix
19694
19695# Do we need a version for libraries?
19696need_version=$need_version
19697
19698# Whether dlopen is supported.
19699dlopen_support=$enable_dlopen
19700
19701# Whether dlopen of programs is supported.
19702dlopen_self=$enable_dlopen_self
19703
19704# Whether dlopen of statically linked programs is supported.
19705dlopen_self_static=$enable_dlopen_self_static
19706
19707# Compiler flag to prevent dynamic linking.
19708link_static_flag=$lt_lt_prog_compiler_static_RC
19709
19710# Compiler flag to turn off builtin functions.
19711no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19712
19713# Compiler flag to allow reflexive dlopens.
19714export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19715
19716# Compiler flag to generate shared objects directly from archives.
19717whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19718
19719# Compiler flag to generate thread-safe objects.
19720thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19721
19722# Library versioning type.
19723version_type=$version_type
19724
19725# Format of library name prefix.
19726libname_spec=$lt_libname_spec
19727
19728# List of archive names.  First name is the real one, the rest are links.
19729# The last name is the one that the linker finds with -lNAME.
19730library_names_spec=$lt_library_names_spec
19731
19732# The coded name of the library, if different from the real name.
19733soname_spec=$lt_soname_spec
19734
19735# Commands used to build and install an old-style archive.
19736RANLIB=$lt_RANLIB
19737old_archive_cmds=$lt_old_archive_cmds_RC
19738old_postinstall_cmds=$lt_old_postinstall_cmds
19739old_postuninstall_cmds=$lt_old_postuninstall_cmds
19740
19741# Create an old-style archive from a shared archive.
19742old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19743
19744# Create a temporary old-style archive to link instead of a shared archive.
19745old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19746
19747# Commands used to build and install a shared archive.
19748archive_cmds=$lt_archive_cmds_RC
19749archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19750postinstall_cmds=$lt_postinstall_cmds
19751postuninstall_cmds=$lt_postuninstall_cmds
19752
19753# Commands used to build a loadable module (assumed same as above if empty)
19754module_cmds=$lt_module_cmds_RC
19755module_expsym_cmds=$lt_module_expsym_cmds_RC
19756
19757# Commands to strip libraries.
19758old_striplib=$lt_old_striplib
19759striplib=$lt_striplib
19760
19761# Dependencies to place before the objects being linked to create a
19762# shared library.
19763predep_objects=$lt_predep_objects_RC
19764
19765# Dependencies to place after the objects being linked to create a
19766# shared library.
19767postdep_objects=$lt_postdep_objects_RC
19768
19769# Dependencies to place before the objects being linked to create a
19770# shared library.
19771predeps=$lt_predeps_RC
19772
19773# Dependencies to place after the objects being linked to create a
19774# shared library.
19775postdeps=$lt_postdeps_RC
19776
19777# The directories searched by this compiler when creating a shared
19778# library
19779compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19780
19781# The library search path used internally by the compiler when linking
19782# a shared library.
19783compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19784
19785# Method to check whether dependent libraries are shared objects.
19786deplibs_check_method=$lt_deplibs_check_method
19787
19788# Command to use when deplibs_check_method == file_magic.
19789file_magic_cmd=$lt_file_magic_cmd
19790
19791# Flag that allows shared libraries with undefined symbols to be built.
19792allow_undefined_flag=$lt_allow_undefined_flag_RC
19793
19794# Flag that forces no undefined symbols.
19795no_undefined_flag=$lt_no_undefined_flag_RC
19796
19797# Commands used to finish a libtool library installation in a directory.
19798finish_cmds=$lt_finish_cmds
19799
19800# Same as above, but a single script fragment to be evaled but not shown.
19801finish_eval=$lt_finish_eval
19802
19803# Take the output of nm and produce a listing of raw symbols and C names.
19804global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19805
19806# Transform the output of nm in a proper C declaration
19807global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19808
19809# Transform the output of nm in a C name address pair
19810global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19811
19812# This is the shared library runtime path variable.
19813runpath_var=$runpath_var
19814
19815# This is the shared library path variable.
19816shlibpath_var=$shlibpath_var
19817
19818# Is shlibpath searched before the hard-coded library search path?
19819shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19820
19821# How to hardcode a shared library path into an executable.
19822hardcode_action=$hardcode_action_RC
19823
19824# Whether we should hardcode library paths into libraries.
19825hardcode_into_libs=$hardcode_into_libs
19826
19827# Flag to hardcode \$libdir into a binary during linking.
19828# This must work even if \$libdir does not exist.
19829hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19830
19831# If ld is used when linking, flag to hardcode \$libdir into
19832# a binary during linking. This must work even if \$libdir does
19833# not exist.
19834hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19835
19836# Whether we need a single -rpath flag with a separated argument.
19837hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19838
19839# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19840# resulting binary.
19841hardcode_direct=$hardcode_direct_RC
19842
19843# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19844# resulting binary.
19845hardcode_minus_L=$hardcode_minus_L_RC
19846
19847# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19848# the resulting binary.
19849hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19850
19851# Set to yes if building a shared library automatically hardcodes DIR into the library
19852# and all subsequent libraries and executables linked against it.
19853hardcode_automatic=$hardcode_automatic_RC
19854
19855# Variables whose values should be saved in libtool wrapper scripts and
19856# restored at relink time.
19857variables_saved_for_relink="$variables_saved_for_relink"
19858
19859# Whether libtool must link a program against all its dependency libraries.
19860link_all_deplibs=$link_all_deplibs_RC
19861
19862# Compile-time system search path for libraries
19863sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19864
19865# Run-time system search path for libraries
19866sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19867
19868# Fix the shell variable \$srcfile for the compiler.
19869fix_srcfile_path=$lt_fix_srcfile_path
19870
19871# Set to yes if exported symbols are required.
19872always_export_symbols=$always_export_symbols_RC
19873
19874# The commands to list exported symbols.
19875export_symbols_cmds=$lt_export_symbols_cmds_RC
19876
19877# The commands to extract the exported symbol list from a shared archive.
19878extract_expsyms_cmds=$lt_extract_expsyms_cmds
19879
19880# Symbols that should not be listed in the preloaded symbols.
19881exclude_expsyms=$lt_exclude_expsyms_RC
19882
19883# Symbols that must always be exported.
19884include_expsyms=$lt_include_expsyms_RC
19885
19886# ### END LIBTOOL TAG CONFIG: $tagname
19887
19888__EOF__
19889
19890
19891else
19892  # If there is no Makefile yet, we rely on a make rule to execute
19893  # `config.status --recheck' to rerun these tests and create the
19894  # libtool script then.
19895  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19896  if test -f "$ltmain_in"; then
19897    test -f Makefile && make "$ltmain"
19898  fi
19899fi
19900
19901
19902ac_ext=c
19903ac_cpp='$CPP $CPPFLAGS'
19904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19906ac_compiler_gnu=$ac_cv_c_compiler_gnu
19907
19908CC="$lt_save_CC"
19909
19910	;;
19911
19912      *)
19913	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19914$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19915   { (exit 1); exit 1; }; }
19916	;;
19917      esac
19918
19919      # Append the new tag name to the list of available tags.
19920      if test -n "$tagname" ; then
19921      available_tags="$available_tags $tagname"
19922    fi
19923    fi
19924  done
19925  IFS="$lt_save_ifs"
19926
19927  # Now substitute the updated list of available tags.
19928  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19929    mv "${ofile}T" "$ofile"
19930    chmod +x "$ofile"
19931  else
19932    rm -f "${ofile}T"
19933    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19934$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19935   { (exit 1); exit 1; }; }
19936  fi
19937fi
19938
19939
19940
19941# This can be used to rebuild libtool when needed
19942LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19943
19944# Always use our own libtool.
19945LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19946
19947# Prevent multiple expansion
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968ac_ext=c
19969ac_cpp='$CPP $CPPFLAGS'
19970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19972ac_compiler_gnu=$ac_cv_c_compiler_gnu
19973if test -n "$ac_tool_prefix"; then
19974  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19975set dummy ${ac_tool_prefix}gcc; ac_word=$2
19976{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19977$as_echo_n "checking for $ac_word... " >&6; }
19978if test "${ac_cv_prog_CC+set}" = set; then
19979  $as_echo_n "(cached) " >&6
19980else
19981  if test -n "$CC"; then
19982  ac_cv_prog_CC="$CC" # Let the user override the test.
19983else
19984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19985for as_dir in $PATH
19986do
19987  IFS=$as_save_IFS
19988  test -z "$as_dir" && as_dir=.
19989  for ac_exec_ext in '' $ac_executable_extensions; do
19990  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19991    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19992    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19993    break 2
19994  fi
19995done
19996done
19997IFS=$as_save_IFS
19998
19999fi
20000fi
20001CC=$ac_cv_prog_CC
20002if test -n "$CC"; then
20003  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20004$as_echo "$CC" >&6; }
20005else
20006  { $as_echo "$as_me:$LINENO: result: no" >&5
20007$as_echo "no" >&6; }
20008fi
20009
20010
20011fi
20012if test -z "$ac_cv_prog_CC"; then
20013  ac_ct_CC=$CC
20014  # Extract the first word of "gcc", so it can be a program name with args.
20015set dummy gcc; ac_word=$2
20016{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20017$as_echo_n "checking for $ac_word... " >&6; }
20018if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20019  $as_echo_n "(cached) " >&6
20020else
20021  if test -n "$ac_ct_CC"; then
20022  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20023else
20024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20025for as_dir in $PATH
20026do
20027  IFS=$as_save_IFS
20028  test -z "$as_dir" && as_dir=.
20029  for ac_exec_ext in '' $ac_executable_extensions; do
20030  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20031    ac_cv_prog_ac_ct_CC="gcc"
20032    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20033    break 2
20034  fi
20035done
20036done
20037IFS=$as_save_IFS
20038
20039fi
20040fi
20041ac_ct_CC=$ac_cv_prog_ac_ct_CC
20042if test -n "$ac_ct_CC"; then
20043  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20044$as_echo "$ac_ct_CC" >&6; }
20045else
20046  { $as_echo "$as_me:$LINENO: result: no" >&5
20047$as_echo "no" >&6; }
20048fi
20049
20050  if test "x$ac_ct_CC" = x; then
20051    CC=""
20052  else
20053    case $cross_compiling:$ac_tool_warned in
20054yes:)
20055{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20057ac_tool_warned=yes ;;
20058esac
20059    CC=$ac_ct_CC
20060  fi
20061else
20062  CC="$ac_cv_prog_CC"
20063fi
20064
20065if test -z "$CC"; then
20066          if test -n "$ac_tool_prefix"; then
20067    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20068set dummy ${ac_tool_prefix}cc; ac_word=$2
20069{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20070$as_echo_n "checking for $ac_word... " >&6; }
20071if test "${ac_cv_prog_CC+set}" = set; then
20072  $as_echo_n "(cached) " >&6
20073else
20074  if test -n "$CC"; then
20075  ac_cv_prog_CC="$CC" # Let the user override the test.
20076else
20077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20078for as_dir in $PATH
20079do
20080  IFS=$as_save_IFS
20081  test -z "$as_dir" && as_dir=.
20082  for ac_exec_ext in '' $ac_executable_extensions; do
20083  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20084    ac_cv_prog_CC="${ac_tool_prefix}cc"
20085    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20086    break 2
20087  fi
20088done
20089done
20090IFS=$as_save_IFS
20091
20092fi
20093fi
20094CC=$ac_cv_prog_CC
20095if test -n "$CC"; then
20096  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20097$as_echo "$CC" >&6; }
20098else
20099  { $as_echo "$as_me:$LINENO: result: no" >&5
20100$as_echo "no" >&6; }
20101fi
20102
20103
20104  fi
20105fi
20106if test -z "$CC"; then
20107  # Extract the first word of "cc", so it can be a program name with args.
20108set dummy cc; ac_word=$2
20109{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20110$as_echo_n "checking for $ac_word... " >&6; }
20111if test "${ac_cv_prog_CC+set}" = set; then
20112  $as_echo_n "(cached) " >&6
20113else
20114  if test -n "$CC"; then
20115  ac_cv_prog_CC="$CC" # Let the user override the test.
20116else
20117  ac_prog_rejected=no
20118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20119for as_dir in $PATH
20120do
20121  IFS=$as_save_IFS
20122  test -z "$as_dir" && as_dir=.
20123  for ac_exec_ext in '' $ac_executable_extensions; do
20124  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20125    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20126       ac_prog_rejected=yes
20127       continue
20128     fi
20129    ac_cv_prog_CC="cc"
20130    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20131    break 2
20132  fi
20133done
20134done
20135IFS=$as_save_IFS
20136
20137if test $ac_prog_rejected = yes; then
20138  # We found a bogon in the path, so make sure we never use it.
20139  set dummy $ac_cv_prog_CC
20140  shift
20141  if test $# != 0; then
20142    # We chose a different compiler from the bogus one.
20143    # However, it has the same basename, so the bogon will be chosen
20144    # first if we set CC to just the basename; use the full file name.
20145    shift
20146    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20147  fi
20148fi
20149fi
20150fi
20151CC=$ac_cv_prog_CC
20152if test -n "$CC"; then
20153  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20154$as_echo "$CC" >&6; }
20155else
20156  { $as_echo "$as_me:$LINENO: result: no" >&5
20157$as_echo "no" >&6; }
20158fi
20159
20160
20161fi
20162if test -z "$CC"; then
20163  if test -n "$ac_tool_prefix"; then
20164  for ac_prog in cl.exe
20165  do
20166    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20167set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20168{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20169$as_echo_n "checking for $ac_word... " >&6; }
20170if test "${ac_cv_prog_CC+set}" = set; then
20171  $as_echo_n "(cached) " >&6
20172else
20173  if test -n "$CC"; then
20174  ac_cv_prog_CC="$CC" # Let the user override the test.
20175else
20176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20177for as_dir in $PATH
20178do
20179  IFS=$as_save_IFS
20180  test -z "$as_dir" && as_dir=.
20181  for ac_exec_ext in '' $ac_executable_extensions; do
20182  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20183    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20184    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20185    break 2
20186  fi
20187done
20188done
20189IFS=$as_save_IFS
20190
20191fi
20192fi
20193CC=$ac_cv_prog_CC
20194if test -n "$CC"; then
20195  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20196$as_echo "$CC" >&6; }
20197else
20198  { $as_echo "$as_me:$LINENO: result: no" >&5
20199$as_echo "no" >&6; }
20200fi
20201
20202
20203    test -n "$CC" && break
20204  done
20205fi
20206if test -z "$CC"; then
20207  ac_ct_CC=$CC
20208  for ac_prog in cl.exe
20209do
20210  # Extract the first word of "$ac_prog", so it can be a program name with args.
20211set dummy $ac_prog; ac_word=$2
20212{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20213$as_echo_n "checking for $ac_word... " >&6; }
20214if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20215  $as_echo_n "(cached) " >&6
20216else
20217  if test -n "$ac_ct_CC"; then
20218  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20219else
20220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20221for as_dir in $PATH
20222do
20223  IFS=$as_save_IFS
20224  test -z "$as_dir" && as_dir=.
20225  for ac_exec_ext in '' $ac_executable_extensions; do
20226  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20227    ac_cv_prog_ac_ct_CC="$ac_prog"
20228    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20229    break 2
20230  fi
20231done
20232done
20233IFS=$as_save_IFS
20234
20235fi
20236fi
20237ac_ct_CC=$ac_cv_prog_ac_ct_CC
20238if test -n "$ac_ct_CC"; then
20239  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20240$as_echo "$ac_ct_CC" >&6; }
20241else
20242  { $as_echo "$as_me:$LINENO: result: no" >&5
20243$as_echo "no" >&6; }
20244fi
20245
20246
20247  test -n "$ac_ct_CC" && break
20248done
20249
20250  if test "x$ac_ct_CC" = x; then
20251    CC=""
20252  else
20253    case $cross_compiling:$ac_tool_warned in
20254yes:)
20255{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20257ac_tool_warned=yes ;;
20258esac
20259    CC=$ac_ct_CC
20260  fi
20261fi
20262
20263fi
20264
20265
20266test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20268{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20269See \`config.log' for more details." >&5
20270$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20271See \`config.log' for more details." >&2;}
20272   { (exit 1); exit 1; }; }; }
20273
20274# Provide some information about the compiler.
20275$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20276set X $ac_compile
20277ac_compiler=$2
20278{ (ac_try="$ac_compiler --version >&5"
20279case "(($ac_try" in
20280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281  *) ac_try_echo=$ac_try;;
20282esac
20283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20284$as_echo "$ac_try_echo") >&5
20285  (eval "$ac_compiler --version >&5") 2>&5
20286  ac_status=$?
20287  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288  (exit $ac_status); }
20289{ (ac_try="$ac_compiler -v >&5"
20290case "(($ac_try" in
20291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292  *) ac_try_echo=$ac_try;;
20293esac
20294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20295$as_echo "$ac_try_echo") >&5
20296  (eval "$ac_compiler -v >&5") 2>&5
20297  ac_status=$?
20298  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299  (exit $ac_status); }
20300{ (ac_try="$ac_compiler -V >&5"
20301case "(($ac_try" in
20302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303  *) ac_try_echo=$ac_try;;
20304esac
20305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20306$as_echo "$ac_try_echo") >&5
20307  (eval "$ac_compiler -V >&5") 2>&5
20308  ac_status=$?
20309  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310  (exit $ac_status); }
20311
20312{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20313$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20314if test "${ac_cv_c_compiler_gnu+set}" = set; then
20315  $as_echo_n "(cached) " >&6
20316else
20317  cat >conftest.$ac_ext <<_ACEOF
20318/* confdefs.h.  */
20319_ACEOF
20320cat confdefs.h >>conftest.$ac_ext
20321cat >>conftest.$ac_ext <<_ACEOF
20322/* end confdefs.h.  */
20323
20324int
20325main ()
20326{
20327#ifndef __GNUC__
20328       choke me
20329#endif
20330
20331  ;
20332  return 0;
20333}
20334_ACEOF
20335rm -f conftest.$ac_objext
20336if { (ac_try="$ac_compile"
20337case "(($ac_try" in
20338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20339  *) ac_try_echo=$ac_try;;
20340esac
20341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20342$as_echo "$ac_try_echo") >&5
20343  (eval "$ac_compile") 2>conftest.er1
20344  ac_status=$?
20345  grep -v '^ *+' conftest.er1 >conftest.err
20346  rm -f conftest.er1
20347  cat conftest.err >&5
20348  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349  (exit $ac_status); } && {
20350	 test -z "$ac_c_werror_flag" ||
20351	 test ! -s conftest.err
20352       } && test -s conftest.$ac_objext; then
20353  ac_compiler_gnu=yes
20354else
20355  $as_echo "$as_me: failed program was:" >&5
20356sed 's/^/| /' conftest.$ac_ext >&5
20357
20358	ac_compiler_gnu=no
20359fi
20360
20361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20362ac_cv_c_compiler_gnu=$ac_compiler_gnu
20363
20364fi
20365{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20366$as_echo "$ac_cv_c_compiler_gnu" >&6; }
20367if test $ac_compiler_gnu = yes; then
20368  GCC=yes
20369else
20370  GCC=
20371fi
20372ac_test_CFLAGS=${CFLAGS+set}
20373ac_save_CFLAGS=$CFLAGS
20374{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20375$as_echo_n "checking whether $CC accepts -g... " >&6; }
20376if test "${ac_cv_prog_cc_g+set}" = set; then
20377  $as_echo_n "(cached) " >&6
20378else
20379  ac_save_c_werror_flag=$ac_c_werror_flag
20380   ac_c_werror_flag=yes
20381   ac_cv_prog_cc_g=no
20382   CFLAGS="-g"
20383   cat >conftest.$ac_ext <<_ACEOF
20384/* confdefs.h.  */
20385_ACEOF
20386cat confdefs.h >>conftest.$ac_ext
20387cat >>conftest.$ac_ext <<_ACEOF
20388/* end confdefs.h.  */
20389
20390int
20391main ()
20392{
20393
20394  ;
20395  return 0;
20396}
20397_ACEOF
20398rm -f conftest.$ac_objext
20399if { (ac_try="$ac_compile"
20400case "(($ac_try" in
20401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20402  *) ac_try_echo=$ac_try;;
20403esac
20404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20405$as_echo "$ac_try_echo") >&5
20406  (eval "$ac_compile") 2>conftest.er1
20407  ac_status=$?
20408  grep -v '^ *+' conftest.er1 >conftest.err
20409  rm -f conftest.er1
20410  cat conftest.err >&5
20411  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412  (exit $ac_status); } && {
20413	 test -z "$ac_c_werror_flag" ||
20414	 test ! -s conftest.err
20415       } && test -s conftest.$ac_objext; then
20416  ac_cv_prog_cc_g=yes
20417else
20418  $as_echo "$as_me: failed program was:" >&5
20419sed 's/^/| /' conftest.$ac_ext >&5
20420
20421	CFLAGS=""
20422      cat >conftest.$ac_ext <<_ACEOF
20423/* confdefs.h.  */
20424_ACEOF
20425cat confdefs.h >>conftest.$ac_ext
20426cat >>conftest.$ac_ext <<_ACEOF
20427/* end confdefs.h.  */
20428
20429int
20430main ()
20431{
20432
20433  ;
20434  return 0;
20435}
20436_ACEOF
20437rm -f conftest.$ac_objext
20438if { (ac_try="$ac_compile"
20439case "(($ac_try" in
20440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441  *) ac_try_echo=$ac_try;;
20442esac
20443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20444$as_echo "$ac_try_echo") >&5
20445  (eval "$ac_compile") 2>conftest.er1
20446  ac_status=$?
20447  grep -v '^ *+' conftest.er1 >conftest.err
20448  rm -f conftest.er1
20449  cat conftest.err >&5
20450  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451  (exit $ac_status); } && {
20452	 test -z "$ac_c_werror_flag" ||
20453	 test ! -s conftest.err
20454       } && test -s conftest.$ac_objext; then
20455  :
20456else
20457  $as_echo "$as_me: failed program was:" >&5
20458sed 's/^/| /' conftest.$ac_ext >&5
20459
20460	ac_c_werror_flag=$ac_save_c_werror_flag
20461	 CFLAGS="-g"
20462	 cat >conftest.$ac_ext <<_ACEOF
20463/* confdefs.h.  */
20464_ACEOF
20465cat confdefs.h >>conftest.$ac_ext
20466cat >>conftest.$ac_ext <<_ACEOF
20467/* end confdefs.h.  */
20468
20469int
20470main ()
20471{
20472
20473  ;
20474  return 0;
20475}
20476_ACEOF
20477rm -f conftest.$ac_objext
20478if { (ac_try="$ac_compile"
20479case "(($ac_try" in
20480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481  *) ac_try_echo=$ac_try;;
20482esac
20483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20484$as_echo "$ac_try_echo") >&5
20485  (eval "$ac_compile") 2>conftest.er1
20486  ac_status=$?
20487  grep -v '^ *+' conftest.er1 >conftest.err
20488  rm -f conftest.er1
20489  cat conftest.err >&5
20490  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491  (exit $ac_status); } && {
20492	 test -z "$ac_c_werror_flag" ||
20493	 test ! -s conftest.err
20494       } && test -s conftest.$ac_objext; then
20495  ac_cv_prog_cc_g=yes
20496else
20497  $as_echo "$as_me: failed program was:" >&5
20498sed 's/^/| /' conftest.$ac_ext >&5
20499
20500
20501fi
20502
20503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20504fi
20505
20506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20507fi
20508
20509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20510   ac_c_werror_flag=$ac_save_c_werror_flag
20511fi
20512{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20513$as_echo "$ac_cv_prog_cc_g" >&6; }
20514if test "$ac_test_CFLAGS" = set; then
20515  CFLAGS=$ac_save_CFLAGS
20516elif test $ac_cv_prog_cc_g = yes; then
20517  if test "$GCC" = yes; then
20518    CFLAGS="-g -O2"
20519  else
20520    CFLAGS="-g"
20521  fi
20522else
20523  if test "$GCC" = yes; then
20524    CFLAGS="-O2"
20525  else
20526    CFLAGS=
20527  fi
20528fi
20529{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20530$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20531if test "${ac_cv_prog_cc_c89+set}" = set; then
20532  $as_echo_n "(cached) " >&6
20533else
20534  ac_cv_prog_cc_c89=no
20535ac_save_CC=$CC
20536cat >conftest.$ac_ext <<_ACEOF
20537/* confdefs.h.  */
20538_ACEOF
20539cat confdefs.h >>conftest.$ac_ext
20540cat >>conftest.$ac_ext <<_ACEOF
20541/* end confdefs.h.  */
20542#include <stdarg.h>
20543#include <stdio.h>
20544#include <sys/types.h>
20545#include <sys/stat.h>
20546/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20547struct buf { int x; };
20548FILE * (*rcsopen) (struct buf *, struct stat *, int);
20549static char *e (p, i)
20550     char **p;
20551     int i;
20552{
20553  return p[i];
20554}
20555static char *f (char * (*g) (char **, int), char **p, ...)
20556{
20557  char *s;
20558  va_list v;
20559  va_start (v,p);
20560  s = g (p, va_arg (v,int));
20561  va_end (v);
20562  return s;
20563}
20564
20565/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20566   function prototypes and stuff, but not '\xHH' hex character constants.
20567   These don't provoke an error unfortunately, instead are silently treated
20568   as 'x'.  The following induces an error, until -std is added to get
20569   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20570   array size at least.  It's necessary to write '\x00'==0 to get something
20571   that's true only with -std.  */
20572int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20573
20574/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20575   inside strings and character constants.  */
20576#define FOO(x) 'x'
20577int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20578
20579int test (int i, double x);
20580struct s1 {int (*f) (int a);};
20581struct s2 {int (*f) (double a);};
20582int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20583int argc;
20584char **argv;
20585int
20586main ()
20587{
20588return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20589  ;
20590  return 0;
20591}
20592_ACEOF
20593for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20594	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20595do
20596  CC="$ac_save_CC $ac_arg"
20597  rm -f conftest.$ac_objext
20598if { (ac_try="$ac_compile"
20599case "(($ac_try" in
20600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601  *) ac_try_echo=$ac_try;;
20602esac
20603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20604$as_echo "$ac_try_echo") >&5
20605  (eval "$ac_compile") 2>conftest.er1
20606  ac_status=$?
20607  grep -v '^ *+' conftest.er1 >conftest.err
20608  rm -f conftest.er1
20609  cat conftest.err >&5
20610  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611  (exit $ac_status); } && {
20612	 test -z "$ac_c_werror_flag" ||
20613	 test ! -s conftest.err
20614       } && test -s conftest.$ac_objext; then
20615  ac_cv_prog_cc_c89=$ac_arg
20616else
20617  $as_echo "$as_me: failed program was:" >&5
20618sed 's/^/| /' conftest.$ac_ext >&5
20619
20620
20621fi
20622
20623rm -f core conftest.err conftest.$ac_objext
20624  test "x$ac_cv_prog_cc_c89" != "xno" && break
20625done
20626rm -f conftest.$ac_ext
20627CC=$ac_save_CC
20628
20629fi
20630# AC_CACHE_VAL
20631case "x$ac_cv_prog_cc_c89" in
20632  x)
20633    { $as_echo "$as_me:$LINENO: result: none needed" >&5
20634$as_echo "none needed" >&6; } ;;
20635  xno)
20636    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20637$as_echo "unsupported" >&6; } ;;
20638  *)
20639    CC="$CC $ac_cv_prog_cc_c89"
20640    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20641$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20642esac
20643
20644
20645ac_ext=c
20646ac_cpp='$CPP $CPPFLAGS'
20647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20649ac_compiler_gnu=$ac_cv_c_compiler_gnu
20650
20651depcc="$CC"   am_compiler_list=
20652
20653{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20654$as_echo_n "checking dependency style of $depcc... " >&6; }
20655if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20656  $as_echo_n "(cached) " >&6
20657else
20658  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20659  # We make a subdir and do the tests there.  Otherwise we can end up
20660  # making bogus files that we don't know about and never remove.  For
20661  # instance it was reported that on HP-UX the gcc test will end up
20662  # making a dummy file named `D' -- because `-MD' means `put the output
20663  # in D'.
20664  mkdir conftest.dir
20665  # Copy depcomp to subdir because otherwise we won't find it if we're
20666  # using a relative directory.
20667  cp "$am_depcomp" conftest.dir
20668  cd conftest.dir
20669  # We will build objects and dependencies in a subdirectory because
20670  # it helps to detect inapplicable dependency modes.  For instance
20671  # both Tru64's cc and ICC support -MD to output dependencies as a
20672  # side effect of compilation, but ICC will put the dependencies in
20673  # the current directory while Tru64 will put them in the object
20674  # directory.
20675  mkdir sub
20676
20677  am_cv_CC_dependencies_compiler_type=none
20678  if test "$am_compiler_list" = ""; then
20679     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20680  fi
20681  for depmode in $am_compiler_list; do
20682    # Setup a source with many dependencies, because some compilers
20683    # like to wrap large dependency lists on column 80 (with \), and
20684    # we should not choose a depcomp mode which is confused by this.
20685    #
20686    # We need to recreate these files for each test, as the compiler may
20687    # overwrite some of them when testing with obscure command lines.
20688    # This happens at least with the AIX C compiler.
20689    : > sub/conftest.c
20690    for i in 1 2 3 4 5 6; do
20691      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20692      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20693      # Solaris 8's {/usr,}/bin/sh.
20694      touch sub/conftst$i.h
20695    done
20696    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20697
20698    case $depmode in
20699    nosideeffect)
20700      # after this tag, mechanisms are not by side-effect, so they'll
20701      # only be used when explicitly requested
20702      if test "x$enable_dependency_tracking" = xyes; then
20703	continue
20704      else
20705	break
20706      fi
20707      ;;
20708    none) break ;;
20709    esac
20710    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20711    # mode.  It turns out that the SunPro C++ compiler does not properly
20712    # handle `-M -o', and we need to detect this.
20713    if depmode=$depmode \
20714       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20715       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20716       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20717         >/dev/null 2>conftest.err &&
20718       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20719       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20720       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20721       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20722      # icc doesn't choke on unknown options, it will just issue warnings
20723      # or remarks (even with -Werror).  So we grep stderr for any message
20724      # that says an option was ignored or not supported.
20725      # When given -MP, icc 7.0 and 7.1 complain thusly:
20726      #   icc: Command line warning: ignoring option '-M'; no argument required
20727      # The diagnosis changed in icc 8.0:
20728      #   icc: Command line remark: option '-MP' not supported
20729      if (grep 'ignoring option' conftest.err ||
20730          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20731        am_cv_CC_dependencies_compiler_type=$depmode
20732        break
20733      fi
20734    fi
20735  done
20736
20737  cd ..
20738  rm -rf conftest.dir
20739else
20740  am_cv_CC_dependencies_compiler_type=none
20741fi
20742
20743fi
20744{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20745$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20746CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20747
20748 if
20749  test "x$enable_dependency_tracking" != xno \
20750  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20751  am__fastdepCC_TRUE=
20752  am__fastdepCC_FALSE='#'
20753else
20754  am__fastdepCC_TRUE='#'
20755  am__fastdepCC_FALSE=
20756fi
20757
20758
20759
20760
20761
20762
20763
20764# Check whether --with-xorg-module-dir was given.
20765if test "${with_xorg_module_dir+set}" = set; then
20766  withval=$with_xorg_module_dir;  moduledir="$withval"
20767else
20768   moduledir="$libdir/xorg/modules"
20769fi
20770
20771
20772
20773
20774# Checks for extensions
20775
20776	SAVE_CFLAGS="$CFLAGS"
20777	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20778	cat >conftest.$ac_ext <<_ACEOF
20779/* confdefs.h.  */
20780_ACEOF
20781cat confdefs.h >>conftest.$ac_ext
20782cat >>conftest.$ac_ext <<_ACEOF
20783/* end confdefs.h.  */
20784
20785#include "xorg-server.h"
20786#if !defined RANDR
20787#error RANDR not defined
20788#endif
20789
20790int
20791main ()
20792{
20793
20794  ;
20795  return 0;
20796}
20797_ACEOF
20798rm -f conftest.$ac_objext
20799if { (ac_try="$ac_compile"
20800case "(($ac_try" in
20801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802  *) ac_try_echo=$ac_try;;
20803esac
20804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20805$as_echo "$ac_try_echo") >&5
20806  (eval "$ac_compile") 2>conftest.er1
20807  ac_status=$?
20808  grep -v '^ *+' conftest.er1 >conftest.err
20809  rm -f conftest.er1
20810  cat conftest.err >&5
20811  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812  (exit $ac_status); } && {
20813	 test -z "$ac_c_werror_flag" ||
20814	 test ! -s conftest.err
20815       } && test -s conftest.$ac_objext; then
20816  _EXT_CHECK=yes
20817else
20818  $as_echo "$as_me: failed program was:" >&5
20819sed 's/^/| /' conftest.$ac_ext >&5
20820
20821	_EXT_CHECK=no
20822fi
20823
20824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20825	CFLAGS="$SAVE_CFLAGS"
20826	{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20827$as_echo_n "checking if RANDR is defined... " >&6; }
20828	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20829$as_echo "$_EXT_CHECK" >&6; }
20830	if test "$_EXT_CHECK" != no; then
20831		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20832	fi
20833
20834
20835	SAVE_CFLAGS="$CFLAGS"
20836	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20837	cat >conftest.$ac_ext <<_ACEOF
20838/* confdefs.h.  */
20839_ACEOF
20840cat confdefs.h >>conftest.$ac_ext
20841cat >>conftest.$ac_ext <<_ACEOF
20842/* end confdefs.h.  */
20843
20844#include "xorg-server.h"
20845#if !defined RENDER
20846#error RENDER not defined
20847#endif
20848
20849int
20850main ()
20851{
20852
20853  ;
20854  return 0;
20855}
20856_ACEOF
20857rm -f conftest.$ac_objext
20858if { (ac_try="$ac_compile"
20859case "(($ac_try" in
20860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861  *) ac_try_echo=$ac_try;;
20862esac
20863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20864$as_echo "$ac_try_echo") >&5
20865  (eval "$ac_compile") 2>conftest.er1
20866  ac_status=$?
20867  grep -v '^ *+' conftest.er1 >conftest.err
20868  rm -f conftest.er1
20869  cat conftest.err >&5
20870  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871  (exit $ac_status); } && {
20872	 test -z "$ac_c_werror_flag" ||
20873	 test ! -s conftest.err
20874       } && test -s conftest.$ac_objext; then
20875  _EXT_CHECK=yes
20876else
20877  $as_echo "$as_me: failed program was:" >&5
20878sed 's/^/| /' conftest.$ac_ext >&5
20879
20880	_EXT_CHECK=no
20881fi
20882
20883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20884	CFLAGS="$SAVE_CFLAGS"
20885	{ $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20886$as_echo_n "checking if RENDER is defined... " >&6; }
20887	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20888$as_echo "$_EXT_CHECK" >&6; }
20889	if test "$_EXT_CHECK" != no; then
20890		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20891	fi
20892
20893
20894	SAVE_CFLAGS="$CFLAGS"
20895	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20896	cat >conftest.$ac_ext <<_ACEOF
20897/* confdefs.h.  */
20898_ACEOF
20899cat confdefs.h >>conftest.$ac_ext
20900cat >>conftest.$ac_ext <<_ACEOF
20901/* end confdefs.h.  */
20902
20903#include "xorg-server.h"
20904#if !defined DPMSExtension
20905#error DPMSExtension not defined
20906#endif
20907
20908int
20909main ()
20910{
20911
20912  ;
20913  return 0;
20914}
20915_ACEOF
20916rm -f conftest.$ac_objext
20917if { (ac_try="$ac_compile"
20918case "(($ac_try" in
20919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920  *) ac_try_echo=$ac_try;;
20921esac
20922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20923$as_echo "$ac_try_echo") >&5
20924  (eval "$ac_compile") 2>conftest.er1
20925  ac_status=$?
20926  grep -v '^ *+' conftest.er1 >conftest.err
20927  rm -f conftest.er1
20928  cat conftest.err >&5
20929  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930  (exit $ac_status); } && {
20931	 test -z "$ac_c_werror_flag" ||
20932	 test ! -s conftest.err
20933       } && test -s conftest.$ac_objext; then
20934  _EXT_CHECK=yes
20935else
20936  $as_echo "$as_me: failed program was:" >&5
20937sed 's/^/| /' conftest.$ac_ext >&5
20938
20939	_EXT_CHECK=no
20940fi
20941
20942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20943	CFLAGS="$SAVE_CFLAGS"
20944	{ $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
20945$as_echo_n "checking if DPMSExtension is defined... " >&6; }
20946	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20947$as_echo "$_EXT_CHECK" >&6; }
20948	if test "$_EXT_CHECK" != no; then
20949		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
20950	fi
20951
20952
20953# Checks for pkg-config packages
20954
20955
20956if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20957	if test -n "$ac_tool_prefix"; then
20958  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20959set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20960{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20961$as_echo_n "checking for $ac_word... " >&6; }
20962if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20963  $as_echo_n "(cached) " >&6
20964else
20965  case $PKG_CONFIG in
20966  [\\/]* | ?:[\\/]*)
20967  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20968  ;;
20969  *)
20970  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20971for as_dir in $PATH
20972do
20973  IFS=$as_save_IFS
20974  test -z "$as_dir" && as_dir=.
20975  for ac_exec_ext in '' $ac_executable_extensions; do
20976  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20977    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20978    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20979    break 2
20980  fi
20981done
20982done
20983IFS=$as_save_IFS
20984
20985  ;;
20986esac
20987fi
20988PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20989if test -n "$PKG_CONFIG"; then
20990  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20991$as_echo "$PKG_CONFIG" >&6; }
20992else
20993  { $as_echo "$as_me:$LINENO: result: no" >&5
20994$as_echo "no" >&6; }
20995fi
20996
20997
20998fi
20999if test -z "$ac_cv_path_PKG_CONFIG"; then
21000  ac_pt_PKG_CONFIG=$PKG_CONFIG
21001  # Extract the first word of "pkg-config", so it can be a program name with args.
21002set dummy pkg-config; ac_word=$2
21003{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21004$as_echo_n "checking for $ac_word... " >&6; }
21005if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21006  $as_echo_n "(cached) " >&6
21007else
21008  case $ac_pt_PKG_CONFIG in
21009  [\\/]* | ?:[\\/]*)
21010  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21011  ;;
21012  *)
21013  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21014for as_dir in $PATH
21015do
21016  IFS=$as_save_IFS
21017  test -z "$as_dir" && as_dir=.
21018  for ac_exec_ext in '' $ac_executable_extensions; do
21019  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21020    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21021    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21022    break 2
21023  fi
21024done
21025done
21026IFS=$as_save_IFS
21027
21028  ;;
21029esac
21030fi
21031ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21032if test -n "$ac_pt_PKG_CONFIG"; then
21033  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21034$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21035else
21036  { $as_echo "$as_me:$LINENO: result: no" >&5
21037$as_echo "no" >&6; }
21038fi
21039
21040  if test "x$ac_pt_PKG_CONFIG" = x; then
21041    PKG_CONFIG=""
21042  else
21043    case $cross_compiling:$ac_tool_warned in
21044yes:)
21045{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21047ac_tool_warned=yes ;;
21048esac
21049    PKG_CONFIG=$ac_pt_PKG_CONFIG
21050  fi
21051else
21052  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21053fi
21054
21055fi
21056if test -n "$PKG_CONFIG"; then
21057	_pkg_min_version=0.9.0
21058	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21059$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21060	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21061		{ $as_echo "$as_me:$LINENO: result: yes" >&5
21062$as_echo "yes" >&6; }
21063	else
21064		{ $as_echo "$as_me:$LINENO: result: no" >&5
21065$as_echo "no" >&6; }
21066		PKG_CONFIG=""
21067	fi
21068
21069fi
21070
21071pkg_failed=no
21072{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
21073$as_echo_n "checking for XORG... " >&6; }
21074
21075if test -n "$XORG_CFLAGS"; then
21076    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21077 elif test -n "$PKG_CONFIG"; then
21078    if test -n "$PKG_CONFIG" && \
21079    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21080  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21081  ac_status=$?
21082  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083  (exit $ac_status); }; then
21084  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21085else
21086  pkg_failed=yes
21087fi
21088 else
21089    pkg_failed=untried
21090fi
21091if test -n "$XORG_LIBS"; then
21092    pkg_cv_XORG_LIBS="$XORG_LIBS"
21093 elif test -n "$PKG_CONFIG"; then
21094    if test -n "$PKG_CONFIG" && \
21095    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21096  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21097  ac_status=$?
21098  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099  (exit $ac_status); }; then
21100  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21101else
21102  pkg_failed=yes
21103fi
21104 else
21105    pkg_failed=untried
21106fi
21107
21108
21109
21110if test $pkg_failed = yes; then
21111
21112if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21113        _pkg_short_errors_supported=yes
21114else
21115        _pkg_short_errors_supported=no
21116fi
21117        if test $_pkg_short_errors_supported = yes; then
21118	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21119        else
21120	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21121        fi
21122	# Put the nasty error message in config.log where it belongs
21123	echo "$XORG_PKG_ERRORS" >&5
21124
21125	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21126
21127$XORG_PKG_ERRORS
21128
21129Consider adjusting the PKG_CONFIG_PATH environment variable if you
21130installed software in a non-standard prefix.
21131
21132Alternatively, you may set the environment variables XORG_CFLAGS
21133and XORG_LIBS to avoid the need to call pkg-config.
21134See the pkg-config man page for more details.
21135" >&5
21136$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21137
21138$XORG_PKG_ERRORS
21139
21140Consider adjusting the PKG_CONFIG_PATH environment variable if you
21141installed software in a non-standard prefix.
21142
21143Alternatively, you may set the environment variables XORG_CFLAGS
21144and XORG_LIBS to avoid the need to call pkg-config.
21145See the pkg-config man page for more details.
21146" >&2;}
21147   { (exit 1); exit 1; }; }
21148elif test $pkg_failed = untried; then
21149	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21151{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21152is in your PATH or set the PKG_CONFIG environment variable to the full
21153path to pkg-config.
21154
21155Alternatively, you may set the environment variables XORG_CFLAGS
21156and XORG_LIBS to avoid the need to call pkg-config.
21157See the pkg-config man page for more details.
21158
21159To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21160See \`config.log' for more details." >&5
21161$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21162is in your PATH or set the PKG_CONFIG environment variable to the full
21163path to pkg-config.
21164
21165Alternatively, you may set the environment variables XORG_CFLAGS
21166and XORG_LIBS to avoid the need to call pkg-config.
21167See the pkg-config man page for more details.
21168
21169To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21170See \`config.log' for more details." >&2;}
21171   { (exit 1); exit 1; }; }; }
21172else
21173	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21174	XORG_LIBS=$pkg_cv_XORG_LIBS
21175        { $as_echo "$as_me:$LINENO: result: yes" >&5
21176$as_echo "yes" >&6; }
21177	:
21178fi
21179sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21180
21181CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src'
21182INCLUDES="$XORG_INCS -I${sdkdir} "'-I$(top_srcdir)/src -I$(prefix)/include'
21183
21184
21185
21186# Checks for libraries.
21187SAVE_CPPFLAGS="$CPPFLAGS"
21188CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
21189{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
21190$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
21191if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
21192  $as_echo_n "(cached) " >&6
21193else
21194  cat >conftest.$ac_ext <<_ACEOF
21195/* confdefs.h.  */
21196_ACEOF
21197cat confdefs.h >>conftest.$ac_ext
21198cat >>conftest.$ac_ext <<_ACEOF
21199/* end confdefs.h.  */
21200#include "xorg-server.h"
21201
21202int
21203main ()
21204{
21205#ifndef XSERVER_LIBPCIACCESS
21206  (void) XSERVER_LIBPCIACCESS;
21207#endif
21208
21209  ;
21210  return 0;
21211}
21212_ACEOF
21213rm -f conftest.$ac_objext
21214if { (ac_try="$ac_compile"
21215case "(($ac_try" in
21216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217  *) ac_try_echo=$ac_try;;
21218esac
21219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21220$as_echo "$ac_try_echo") >&5
21221  (eval "$ac_compile") 2>conftest.er1
21222  ac_status=$?
21223  grep -v '^ *+' conftest.er1 >conftest.err
21224  rm -f conftest.er1
21225  cat conftest.err >&5
21226  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227  (exit $ac_status); } && {
21228	 test -z "$ac_c_werror_flag" ||
21229	 test ! -s conftest.err
21230       } && test -s conftest.$ac_objext; then
21231  ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
21232else
21233  $as_echo "$as_me: failed program was:" >&5
21234sed 's/^/| /' conftest.$ac_ext >&5
21235
21236	ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
21237fi
21238
21239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21240fi
21241{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
21242$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
21243if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
21244  XSERVER_LIBPCIACCESS=yes
21245else
21246  XSERVER_LIBPCIACCESS=no
21247fi
21248
21249CPPFLAGS="$SAVE_CPPFLAGS"
21250
21251# Checks for header files.
21252{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21253$as_echo_n "checking for ANSI C header files... " >&6; }
21254if test "${ac_cv_header_stdc+set}" = set; then
21255  $as_echo_n "(cached) " >&6
21256else
21257  cat >conftest.$ac_ext <<_ACEOF
21258/* confdefs.h.  */
21259_ACEOF
21260cat confdefs.h >>conftest.$ac_ext
21261cat >>conftest.$ac_ext <<_ACEOF
21262/* end confdefs.h.  */
21263#include <stdlib.h>
21264#include <stdarg.h>
21265#include <string.h>
21266#include <float.h>
21267
21268int
21269main ()
21270{
21271
21272  ;
21273  return 0;
21274}
21275_ACEOF
21276rm -f conftest.$ac_objext
21277if { (ac_try="$ac_compile"
21278case "(($ac_try" in
21279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280  *) ac_try_echo=$ac_try;;
21281esac
21282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21283$as_echo "$ac_try_echo") >&5
21284  (eval "$ac_compile") 2>conftest.er1
21285  ac_status=$?
21286  grep -v '^ *+' conftest.er1 >conftest.err
21287  rm -f conftest.er1
21288  cat conftest.err >&5
21289  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290  (exit $ac_status); } && {
21291	 test -z "$ac_c_werror_flag" ||
21292	 test ! -s conftest.err
21293       } && test -s conftest.$ac_objext; then
21294  ac_cv_header_stdc=yes
21295else
21296  $as_echo "$as_me: failed program was:" >&5
21297sed 's/^/| /' conftest.$ac_ext >&5
21298
21299	ac_cv_header_stdc=no
21300fi
21301
21302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21303
21304if test $ac_cv_header_stdc = yes; then
21305  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21306  cat >conftest.$ac_ext <<_ACEOF
21307/* confdefs.h.  */
21308_ACEOF
21309cat confdefs.h >>conftest.$ac_ext
21310cat >>conftest.$ac_ext <<_ACEOF
21311/* end confdefs.h.  */
21312#include <string.h>
21313
21314_ACEOF
21315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21316  $EGREP "memchr" >/dev/null 2>&1; then
21317  :
21318else
21319  ac_cv_header_stdc=no
21320fi
21321rm -f conftest*
21322
21323fi
21324
21325if test $ac_cv_header_stdc = yes; then
21326  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21327  cat >conftest.$ac_ext <<_ACEOF
21328/* confdefs.h.  */
21329_ACEOF
21330cat confdefs.h >>conftest.$ac_ext
21331cat >>conftest.$ac_ext <<_ACEOF
21332/* end confdefs.h.  */
21333#include <stdlib.h>
21334
21335_ACEOF
21336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21337  $EGREP "free" >/dev/null 2>&1; then
21338  :
21339else
21340  ac_cv_header_stdc=no
21341fi
21342rm -f conftest*
21343
21344fi
21345
21346if test $ac_cv_header_stdc = yes; then
21347  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21348  if test "$cross_compiling" = yes; then
21349  :
21350else
21351  cat >conftest.$ac_ext <<_ACEOF
21352/* confdefs.h.  */
21353_ACEOF
21354cat confdefs.h >>conftest.$ac_ext
21355cat >>conftest.$ac_ext <<_ACEOF
21356/* end confdefs.h.  */
21357#include <ctype.h>
21358#include <stdlib.h>
21359#if ((' ' & 0x0FF) == 0x020)
21360# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21361# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21362#else
21363# define ISLOWER(c) \
21364		   (('a' <= (c) && (c) <= 'i') \
21365		     || ('j' <= (c) && (c) <= 'r') \
21366		     || ('s' <= (c) && (c) <= 'z'))
21367# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21368#endif
21369
21370#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21371int
21372main ()
21373{
21374  int i;
21375  for (i = 0; i < 256; i++)
21376    if (XOR (islower (i), ISLOWER (i))
21377	|| toupper (i) != TOUPPER (i))
21378      return 2;
21379  return 0;
21380}
21381_ACEOF
21382rm -f conftest$ac_exeext
21383if { (ac_try="$ac_link"
21384case "(($ac_try" in
21385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21386  *) ac_try_echo=$ac_try;;
21387esac
21388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21389$as_echo "$ac_try_echo") >&5
21390  (eval "$ac_link") 2>&5
21391  ac_status=$?
21392  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21394  { (case "(($ac_try" in
21395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396  *) ac_try_echo=$ac_try;;
21397esac
21398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21399$as_echo "$ac_try_echo") >&5
21400  (eval "$ac_try") 2>&5
21401  ac_status=$?
21402  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403  (exit $ac_status); }; }; then
21404  :
21405else
21406  $as_echo "$as_me: program exited with status $ac_status" >&5
21407$as_echo "$as_me: failed program was:" >&5
21408sed 's/^/| /' conftest.$ac_ext >&5
21409
21410( exit $ac_status )
21411ac_cv_header_stdc=no
21412fi
21413rm -rf conftest.dSYM
21414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21415fi
21416
21417
21418fi
21419fi
21420{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21421$as_echo "$ac_cv_header_stdc" >&6; }
21422if test $ac_cv_header_stdc = yes; then
21423
21424cat >>confdefs.h <<\_ACEOF
21425#define STDC_HEADERS 1
21426_ACEOF
21427
21428fi
21429
21430
21431if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21432
21433pkg_failed=no
21434{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
21435$as_echo_n "checking for PCIACCESS... " >&6; }
21436
21437if test -n "$PCIACCESS_CFLAGS"; then
21438    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
21439 elif test -n "$PKG_CONFIG"; then
21440    if test -n "$PKG_CONFIG" && \
21441    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21442  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21443  ac_status=$?
21444  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445  (exit $ac_status); }; then
21446  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
21447else
21448  pkg_failed=yes
21449fi
21450 else
21451    pkg_failed=untried
21452fi
21453if test -n "$PCIACCESS_LIBS"; then
21454    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
21455 elif test -n "$PKG_CONFIG"; then
21456    if test -n "$PKG_CONFIG" && \
21457    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21458  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21459  ac_status=$?
21460  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461  (exit $ac_status); }; then
21462  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
21463else
21464  pkg_failed=yes
21465fi
21466 else
21467    pkg_failed=untried
21468fi
21469
21470
21471
21472if test $pkg_failed = yes; then
21473
21474if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21475        _pkg_short_errors_supported=yes
21476else
21477        _pkg_short_errors_supported=no
21478fi
21479        if test $_pkg_short_errors_supported = yes; then
21480	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
21481        else
21482	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
21483        fi
21484	# Put the nasty error message in config.log where it belongs
21485	echo "$PCIACCESS_PKG_ERRORS" >&5
21486
21487	{ { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
21488
21489$PCIACCESS_PKG_ERRORS
21490
21491Consider adjusting the PKG_CONFIG_PATH environment variable if you
21492installed software in a non-standard prefix.
21493
21494Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21495and PCIACCESS_LIBS to avoid the need to call pkg-config.
21496See the pkg-config man page for more details.
21497" >&5
21498$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
21499
21500$PCIACCESS_PKG_ERRORS
21501
21502Consider adjusting the PKG_CONFIG_PATH environment variable if you
21503installed software in a non-standard prefix.
21504
21505Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21506and PCIACCESS_LIBS to avoid the need to call pkg-config.
21507See the pkg-config man page for more details.
21508" >&2;}
21509   { (exit 1); exit 1; }; }
21510elif test $pkg_failed = untried; then
21511	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21513{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21514is in your PATH or set the PKG_CONFIG environment variable to the full
21515path to pkg-config.
21516
21517Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21518and PCIACCESS_LIBS to avoid the need to call pkg-config.
21519See the pkg-config man page for more details.
21520
21521To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21522See \`config.log' for more details." >&5
21523$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21524is in your PATH or set the PKG_CONFIG environment variable to the full
21525path to pkg-config.
21526
21527Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21528and PCIACCESS_LIBS to avoid the need to call pkg-config.
21529See the pkg-config man page for more details.
21530
21531To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21532See \`config.log' for more details." >&2;}
21533   { (exit 1); exit 1; }; }; }
21534else
21535	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
21536	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
21537        { $as_echo "$as_me:$LINENO: result: yes" >&5
21538$as_echo "yes" >&6; }
21539	:
21540fi
21541    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
21542fi
21543 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21544  XSERVER_LIBPCIACCESS_TRUE=
21545  XSERVER_LIBPCIACCESS_FALSE='#'
21546else
21547  XSERVER_LIBPCIACCESS_TRUE='#'
21548  XSERVER_LIBPCIACCESS_FALSE=
21549fi
21550
21551
21552
21553DRIVER_NAME=ark
21554
21555
21556
21557
21558
21559if test x$APP_MAN_SUFFIX = x    ; then
21560    APP_MAN_SUFFIX=1
21561fi
21562if test x$APP_MAN_DIR = x    ; then
21563    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21564fi
21565
21566if test x$LIB_MAN_SUFFIX = x    ; then
21567    LIB_MAN_SUFFIX=3
21568fi
21569if test x$LIB_MAN_DIR = x    ; then
21570    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21571fi
21572
21573if test x$FILE_MAN_SUFFIX = x    ; then
21574    case $host_os in
21575	solaris*)	FILE_MAN_SUFFIX=4  ;;
21576	*)		FILE_MAN_SUFFIX=5  ;;
21577    esac
21578fi
21579if test x$FILE_MAN_DIR = x    ; then
21580    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21581fi
21582
21583if test x$MISC_MAN_SUFFIX = x    ; then
21584    case $host_os in
21585	solaris*)	MISC_MAN_SUFFIX=5  ;;
21586	*)		MISC_MAN_SUFFIX=7  ;;
21587    esac
21588fi
21589if test x$MISC_MAN_DIR = x    ; then
21590    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
21591fi
21592
21593if test x$DRIVER_MAN_SUFFIX = x    ; then
21594    case $host_os in
21595	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
21596	*)		DRIVER_MAN_SUFFIX=4  ;;
21597    esac
21598fi
21599if test x$DRIVER_MAN_DIR = x    ; then
21600    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
21601fi
21602
21603if test x$ADMIN_MAN_SUFFIX = x    ; then
21604    case $host_os in
21605	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
21606	*)		ADMIN_MAN_SUFFIX=8  ;;
21607    esac
21608fi
21609if test x$ADMIN_MAN_DIR = x    ; then
21610    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21611fi
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629# Check whether --with-release-version was given.
21630if test "${with_release_version+set}" = set; then
21631  withval=$with_release_version; RELEASE_VERSION="$withval"
21632else
21633  RELEASE_VERSION=""
21634fi
21635
21636	if test "x$RELEASE_VERSION" != "x"; then
21637		PACKAGE="$PACKAGE-$RELEASE_VERSION"
21638		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21639		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21640$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21641	fi
21642
21643cat >>confdefs.h <<_ACEOF
21644#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
21645_ACEOF
21646
21647	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
21648	if test "x$PVM" = "x"; then
21649		PVM="0"
21650	fi
21651
21652cat >>confdefs.h <<_ACEOF
21653#define PACKAGE_VERSION_MINOR $PVM
21654_ACEOF
21655
21656	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
21657	if test "x$PVP" = "x"; then
21658		PVP="0"
21659	fi
21660
21661cat >>confdefs.h <<_ACEOF
21662#define PACKAGE_VERSION_PATCHLEVEL $PVP
21663_ACEOF
21664
21665
21666
21667ac_config_files="$ac_config_files Makefile src/Makefile"
21668
21669cat >confcache <<\_ACEOF
21670# This file is a shell script that caches the results of configure
21671# tests run on this system so they can be shared between configure
21672# scripts and configure runs, see configure's option --config-cache.
21673# It is not useful on other systems.  If it contains results you don't
21674# want to keep, you may remove or edit it.
21675#
21676# config.status only pays attention to the cache file if you give it
21677# the --recheck option to rerun configure.
21678#
21679# `ac_cv_env_foo' variables (set or unset) will be overridden when
21680# loading this file, other *unset* `ac_cv_foo' will be assigned the
21681# following values.
21682
21683_ACEOF
21684
21685# The following way of writing the cache mishandles newlines in values,
21686# but we know of no workaround that is simple, portable, and efficient.
21687# So, we kill variables containing newlines.
21688# Ultrix sh set writes to stderr and can't be redirected directly,
21689# and sets the high bit in the cache file unless we assign to the vars.
21690(
21691  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21692    eval ac_val=\$$ac_var
21693    case $ac_val in #(
21694    *${as_nl}*)
21695      case $ac_var in #(
21696      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21697$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21698      esac
21699      case $ac_var in #(
21700      _ | IFS | as_nl) ;; #(
21701      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21702      *) $as_unset $ac_var ;;
21703      esac ;;
21704    esac
21705  done
21706
21707  (set) 2>&1 |
21708    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21709    *${as_nl}ac_space=\ *)
21710      # `set' does not quote correctly, so add quotes (double-quote
21711      # substitution turns \\\\ into \\, and sed turns \\ into \).
21712      sed -n \
21713	"s/'/'\\\\''/g;
21714	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21715      ;; #(
21716    *)
21717      # `set' quotes correctly as required by POSIX, so do not add quotes.
21718      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21719      ;;
21720    esac |
21721    sort
21722) |
21723  sed '
21724     /^ac_cv_env_/b end
21725     t clear
21726     :clear
21727     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21728     t end
21729     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21730     :end' >>confcache
21731if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21732  if test -w "$cache_file"; then
21733    test "x$cache_file" != "x/dev/null" &&
21734      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21735$as_echo "$as_me: updating cache $cache_file" >&6;}
21736    cat confcache >$cache_file
21737  else
21738    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21739$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21740  fi
21741fi
21742rm -f confcache
21743
21744test "x$prefix" = xNONE && prefix=$ac_default_prefix
21745# Let make expand exec_prefix.
21746test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21747
21748DEFS=-DHAVE_CONFIG_H
21749
21750ac_libobjs=
21751ac_ltlibobjs=
21752for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21753  # 1. Remove the extension, and $U if already installed.
21754  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21755  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21756  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21757  #    will be set to the directory where LIBOBJS objects are built.
21758  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21759  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21760done
21761LIBOBJS=$ac_libobjs
21762
21763LTLIBOBJS=$ac_ltlibobjs
21764
21765
21766if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21767  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21768Usually this means the macro was only invoked conditionally." >&5
21769$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21770Usually this means the macro was only invoked conditionally." >&2;}
21771   { (exit 1); exit 1; }; }
21772fi
21773if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21774  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21775Usually this means the macro was only invoked conditionally." >&5
21776$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21777Usually this means the macro was only invoked conditionally." >&2;}
21778   { (exit 1); exit 1; }; }
21779fi
21780if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21781  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21782Usually this means the macro was only invoked conditionally." >&5
21783$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21784Usually this means the macro was only invoked conditionally." >&2;}
21785   { (exit 1); exit 1; }; }
21786fi
21787if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21788  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21789Usually this means the macro was only invoked conditionally." >&5
21790$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21791Usually this means the macro was only invoked conditionally." >&2;}
21792   { (exit 1); exit 1; }; }
21793fi
21794if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21795  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21796Usually this means the macro was only invoked conditionally." >&5
21797$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21798Usually this means the macro was only invoked conditionally." >&2;}
21799   { (exit 1); exit 1; }; }
21800fi
21801if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
21802  { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
21803Usually this means the macro was only invoked conditionally." >&5
21804$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
21805Usually this means the macro was only invoked conditionally." >&2;}
21806   { (exit 1); exit 1; }; }
21807fi
21808
21809: ${CONFIG_STATUS=./config.status}
21810ac_write_fail=0
21811ac_clean_files_save=$ac_clean_files
21812ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21813{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21814$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21815cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21816#! $SHELL
21817# Generated by $as_me.
21818# Run this file to recreate the current configuration.
21819# Compiler output produced by configure, useful for debugging
21820# configure, is in config.log if it exists.
21821
21822debug=false
21823ac_cs_recheck=false
21824ac_cs_silent=false
21825SHELL=\${CONFIG_SHELL-$SHELL}
21826_ACEOF
21827
21828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21829## --------------------- ##
21830## M4sh Initialization.  ##
21831## --------------------- ##
21832
21833# Be more Bourne compatible
21834DUALCASE=1; export DUALCASE # for MKS sh
21835if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21836  emulate sh
21837  NULLCMD=:
21838  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21839  # is contrary to our usage.  Disable this feature.
21840  alias -g '${1+"$@"}'='"$@"'
21841  setopt NO_GLOB_SUBST
21842else
21843  case `(set -o) 2>/dev/null` in
21844  *posix*) set -o posix ;;
21845esac
21846
21847fi
21848
21849
21850
21851
21852# PATH needs CR
21853# Avoid depending upon Character Ranges.
21854as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21855as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21856as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21857as_cr_digits='0123456789'
21858as_cr_alnum=$as_cr_Letters$as_cr_digits
21859
21860as_nl='
21861'
21862export as_nl
21863# Printing a long string crashes Solaris 7 /usr/bin/printf.
21864as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21865as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21866as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21867if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21868  as_echo='printf %s\n'
21869  as_echo_n='printf %s'
21870else
21871  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21872    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21873    as_echo_n='/usr/ucb/echo -n'
21874  else
21875    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21876    as_echo_n_body='eval
21877      arg=$1;
21878      case $arg in
21879      *"$as_nl"*)
21880	expr "X$arg" : "X\\(.*\\)$as_nl";
21881	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21882      esac;
21883      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21884    '
21885    export as_echo_n_body
21886    as_echo_n='sh -c $as_echo_n_body as_echo'
21887  fi
21888  export as_echo_body
21889  as_echo='sh -c $as_echo_body as_echo'
21890fi
21891
21892# The user is always right.
21893if test "${PATH_SEPARATOR+set}" != set; then
21894  PATH_SEPARATOR=:
21895  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21896    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21897      PATH_SEPARATOR=';'
21898  }
21899fi
21900
21901# Support unset when possible.
21902if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21903  as_unset=unset
21904else
21905  as_unset=false
21906fi
21907
21908
21909# IFS
21910# We need space, tab and new line, in precisely that order.  Quoting is
21911# there to prevent editors from complaining about space-tab.
21912# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21913# splitting by setting IFS to empty value.)
21914IFS=" ""	$as_nl"
21915
21916# Find who we are.  Look in the path if we contain no directory separator.
21917case $0 in
21918  *[\\/]* ) as_myself=$0 ;;
21919  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21920for as_dir in $PATH
21921do
21922  IFS=$as_save_IFS
21923  test -z "$as_dir" && as_dir=.
21924  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21925done
21926IFS=$as_save_IFS
21927
21928     ;;
21929esac
21930# We did not find ourselves, most probably we were run as `sh COMMAND'
21931# in which case we are not to be found in the path.
21932if test "x$as_myself" = x; then
21933  as_myself=$0
21934fi
21935if test ! -f "$as_myself"; then
21936  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21937  { (exit 1); exit 1; }
21938fi
21939
21940# Work around bugs in pre-3.0 UWIN ksh.
21941for as_var in ENV MAIL MAILPATH
21942do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21943done
21944PS1='$ '
21945PS2='> '
21946PS4='+ '
21947
21948# NLS nuisances.
21949LC_ALL=C
21950export LC_ALL
21951LANGUAGE=C
21952export LANGUAGE
21953
21954# Required to use basename.
21955if expr a : '\(a\)' >/dev/null 2>&1 &&
21956   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21957  as_expr=expr
21958else
21959  as_expr=false
21960fi
21961
21962if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21963  as_basename=basename
21964else
21965  as_basename=false
21966fi
21967
21968
21969# Name of the executable.
21970as_me=`$as_basename -- "$0" ||
21971$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21972	 X"$0" : 'X\(//\)$' \| \
21973	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21974$as_echo X/"$0" |
21975    sed '/^.*\/\([^/][^/]*\)\/*$/{
21976	    s//\1/
21977	    q
21978	  }
21979	  /^X\/\(\/\/\)$/{
21980	    s//\1/
21981	    q
21982	  }
21983	  /^X\/\(\/\).*/{
21984	    s//\1/
21985	    q
21986	  }
21987	  s/.*/./; q'`
21988
21989# CDPATH.
21990$as_unset CDPATH
21991
21992
21993
21994  as_lineno_1=$LINENO
21995  as_lineno_2=$LINENO
21996  test "x$as_lineno_1" != "x$as_lineno_2" &&
21997  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21998
21999  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22000  # uniformly replaced by the line number.  The first 'sed' inserts a
22001  # line-number line after each line using $LINENO; the second 'sed'
22002  # does the real work.  The second script uses 'N' to pair each
22003  # line-number line with the line containing $LINENO, and appends
22004  # trailing '-' during substitution so that $LINENO is not a special
22005  # case at line end.
22006  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22007  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22008  # E. McMahon (1931-1989) for sed's syntax.  :-)
22009  sed -n '
22010    p
22011    /[$]LINENO/=
22012  ' <$as_myself |
22013    sed '
22014      s/[$]LINENO.*/&-/
22015      t lineno
22016      b
22017      :lineno
22018      N
22019      :loop
22020      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22021      t loop
22022      s/-\n.*//
22023    ' >$as_me.lineno &&
22024  chmod +x "$as_me.lineno" ||
22025    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22026   { (exit 1); exit 1; }; }
22027
22028  # Don't try to exec as it changes $[0], causing all sort of problems
22029  # (the dirname of $[0] is not the place where we might find the
22030  # original and so on.  Autoconf is especially sensitive to this).
22031  . "./$as_me.lineno"
22032  # Exit status is that of the last command.
22033  exit
22034}
22035
22036
22037if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22038  as_dirname=dirname
22039else
22040  as_dirname=false
22041fi
22042
22043ECHO_C= ECHO_N= ECHO_T=
22044case `echo -n x` in
22045-n*)
22046  case `echo 'x\c'` in
22047  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22048  *)   ECHO_C='\c';;
22049  esac;;
22050*)
22051  ECHO_N='-n';;
22052esac
22053if expr a : '\(a\)' >/dev/null 2>&1 &&
22054   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22055  as_expr=expr
22056else
22057  as_expr=false
22058fi
22059
22060rm -f conf$$ conf$$.exe conf$$.file
22061if test -d conf$$.dir; then
22062  rm -f conf$$.dir/conf$$.file
22063else
22064  rm -f conf$$.dir
22065  mkdir conf$$.dir 2>/dev/null
22066fi
22067if (echo >conf$$.file) 2>/dev/null; then
22068  if ln -s conf$$.file conf$$ 2>/dev/null; then
22069    as_ln_s='ln -s'
22070    # ... but there are two gotchas:
22071    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22072    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22073    # In both cases, we have to default to `cp -p'.
22074    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22075      as_ln_s='cp -p'
22076  elif ln conf$$.file conf$$ 2>/dev/null; then
22077    as_ln_s=ln
22078  else
22079    as_ln_s='cp -p'
22080  fi
22081else
22082  as_ln_s='cp -p'
22083fi
22084rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22085rmdir conf$$.dir 2>/dev/null
22086
22087if mkdir -p . 2>/dev/null; then
22088  as_mkdir_p=:
22089else
22090  test -d ./-p && rmdir ./-p
22091  as_mkdir_p=false
22092fi
22093
22094if test -x / >/dev/null 2>&1; then
22095  as_test_x='test -x'
22096else
22097  if ls -dL / >/dev/null 2>&1; then
22098    as_ls_L_option=L
22099  else
22100    as_ls_L_option=
22101  fi
22102  as_test_x='
22103    eval sh -c '\''
22104      if test -d "$1"; then
22105	test -d "$1/.";
22106      else
22107	case $1 in
22108	-*)set "./$1";;
22109	esac;
22110	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22111	???[sx]*):;;*)false;;esac;fi
22112    '\'' sh
22113  '
22114fi
22115as_executable_p=$as_test_x
22116
22117# Sed expression to map a string onto a valid CPP name.
22118as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22119
22120# Sed expression to map a string onto a valid variable name.
22121as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22122
22123
22124exec 6>&1
22125
22126# Save the log message, to keep $[0] and so on meaningful, and to
22127# report actual input values of CONFIG_FILES etc. instead of their
22128# values after options handling.
22129ac_log="
22130This file was extended by xf86-video-ark $as_me 0.7.1, which was
22131generated by GNU Autoconf 2.63.  Invocation command line was
22132
22133  CONFIG_FILES    = $CONFIG_FILES
22134  CONFIG_HEADERS  = $CONFIG_HEADERS
22135  CONFIG_LINKS    = $CONFIG_LINKS
22136  CONFIG_COMMANDS = $CONFIG_COMMANDS
22137  $ $0 $@
22138
22139on `(hostname || uname -n) 2>/dev/null | sed 1q`
22140"
22141
22142_ACEOF
22143
22144case $ac_config_files in *"
22145"*) set x $ac_config_files; shift; ac_config_files=$*;;
22146esac
22147
22148case $ac_config_headers in *"
22149"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22150esac
22151
22152
22153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22154# Files that config.status was made for.
22155config_files="$ac_config_files"
22156config_headers="$ac_config_headers"
22157config_commands="$ac_config_commands"
22158
22159_ACEOF
22160
22161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22162ac_cs_usage="\
22163\`$as_me' instantiates files from templates according to the
22164current configuration.
22165
22166Usage: $0 [OPTION]... [FILE]...
22167
22168  -h, --help       print this help, then exit
22169  -V, --version    print version number and configuration settings, then exit
22170  -q, --quiet, --silent
22171                   do not print progress messages
22172  -d, --debug      don't remove temporary files
22173      --recheck    update $as_me by reconfiguring in the same conditions
22174      --file=FILE[:TEMPLATE]
22175                   instantiate the configuration file FILE
22176      --header=FILE[:TEMPLATE]
22177                   instantiate the configuration header FILE
22178
22179Configuration files:
22180$config_files
22181
22182Configuration headers:
22183$config_headers
22184
22185Configuration commands:
22186$config_commands
22187
22188Report bugs to <bug-autoconf@gnu.org>."
22189
22190_ACEOF
22191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22192ac_cs_version="\\
22193xf86-video-ark config.status 0.7.1
22194configured by $0, generated by GNU Autoconf 2.63,
22195  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22196
22197Copyright (C) 2008 Free Software Foundation, Inc.
22198This config.status script is free software; the Free Software Foundation
22199gives unlimited permission to copy, distribute and modify it."
22200
22201ac_pwd='$ac_pwd'
22202srcdir='$srcdir'
22203INSTALL='$INSTALL'
22204MKDIR_P='$MKDIR_P'
22205AWK='$AWK'
22206test -n "\$AWK" || AWK=awk
22207_ACEOF
22208
22209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22210# The default lists apply if the user does not specify any file.
22211ac_need_defaults=:
22212while test $# != 0
22213do
22214  case $1 in
22215  --*=*)
22216    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22217    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22218    ac_shift=:
22219    ;;
22220  *)
22221    ac_option=$1
22222    ac_optarg=$2
22223    ac_shift=shift
22224    ;;
22225  esac
22226
22227  case $ac_option in
22228  # Handling of the options.
22229  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22230    ac_cs_recheck=: ;;
22231  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22232    $as_echo "$ac_cs_version"; exit ;;
22233  --debug | --debu | --deb | --de | --d | -d )
22234    debug=: ;;
22235  --file | --fil | --fi | --f )
22236    $ac_shift
22237    case $ac_optarg in
22238    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22239    esac
22240    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22241    ac_need_defaults=false;;
22242  --header | --heade | --head | --hea )
22243    $ac_shift
22244    case $ac_optarg in
22245    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22246    esac
22247    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22248    ac_need_defaults=false;;
22249  --he | --h)
22250    # Conflict between --help and --header
22251    { $as_echo "$as_me: error: ambiguous option: $1
22252Try \`$0 --help' for more information." >&2
22253   { (exit 1); exit 1; }; };;
22254  --help | --hel | -h )
22255    $as_echo "$ac_cs_usage"; exit ;;
22256  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22257  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22258    ac_cs_silent=: ;;
22259
22260  # This is an error.
22261  -*) { $as_echo "$as_me: error: unrecognized option: $1
22262Try \`$0 --help' for more information." >&2
22263   { (exit 1); exit 1; }; } ;;
22264
22265  *) ac_config_targets="$ac_config_targets $1"
22266     ac_need_defaults=false ;;
22267
22268  esac
22269  shift
22270done
22271
22272ac_configure_extra_args=
22273
22274if $ac_cs_silent; then
22275  exec 6>/dev/null
22276  ac_configure_extra_args="$ac_configure_extra_args --silent"
22277fi
22278
22279_ACEOF
22280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22281if \$ac_cs_recheck; then
22282  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22283  shift
22284  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22285  CONFIG_SHELL='$SHELL'
22286  export CONFIG_SHELL
22287  exec "\$@"
22288fi
22289
22290_ACEOF
22291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22292exec 5>>config.log
22293{
22294  echo
22295  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22296## Running $as_me. ##
22297_ASBOX
22298  $as_echo "$ac_log"
22299} >&5
22300
22301_ACEOF
22302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22303#
22304# INIT-COMMANDS
22305#
22306AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22307
22308_ACEOF
22309
22310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22311
22312# Handling of arguments.
22313for ac_config_target in $ac_config_targets
22314do
22315  case $ac_config_target in
22316    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22317    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22318    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22319    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22320
22321  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22322$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22323   { (exit 1); exit 1; }; };;
22324  esac
22325done
22326
22327
22328# If the user did not use the arguments to specify the items to instantiate,
22329# then the envvar interface is used.  Set only those that are not.
22330# We use the long form for the default assignment because of an extremely
22331# bizarre bug on SunOS 4.1.3.
22332if $ac_need_defaults; then
22333  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22334  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22335  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22336fi
22337
22338# Have a temporary directory for convenience.  Make it in the build tree
22339# simply because there is no reason against having it here, and in addition,
22340# creating and moving files from /tmp can sometimes cause problems.
22341# Hook for its removal unless debugging.
22342# Note that there is a small window in which the directory will not be cleaned:
22343# after its creation but before its name has been assigned to `$tmp'.
22344$debug ||
22345{
22346  tmp=
22347  trap 'exit_status=$?
22348  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22349' 0
22350  trap '{ (exit 1); exit 1; }' 1 2 13 15
22351}
22352# Create a (secure) tmp directory for tmp files.
22353
22354{
22355  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22356  test -n "$tmp" && test -d "$tmp"
22357}  ||
22358{
22359  tmp=./conf$$-$RANDOM
22360  (umask 077 && mkdir "$tmp")
22361} ||
22362{
22363   $as_echo "$as_me: cannot create a temporary directory in ." >&2
22364   { (exit 1); exit 1; }
22365}
22366
22367# Set up the scripts for CONFIG_FILES section.
22368# No need to generate them if there are no CONFIG_FILES.
22369# This happens for instance with `./config.status config.h'.
22370if test -n "$CONFIG_FILES"; then
22371
22372
22373ac_cr='
22374'
22375ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22376if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22377  ac_cs_awk_cr='\\r'
22378else
22379  ac_cs_awk_cr=$ac_cr
22380fi
22381
22382echo 'BEGIN {' >"$tmp/subs1.awk" &&
22383_ACEOF
22384
22385
22386{
22387  echo "cat >conf$$subs.awk <<_ACEOF" &&
22388  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22389  echo "_ACEOF"
22390} >conf$$subs.sh ||
22391  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22392$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22393   { (exit 1); exit 1; }; }
22394ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22395ac_delim='%!_!# '
22396for ac_last_try in false false false false false :; do
22397  . ./conf$$subs.sh ||
22398    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22399$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22400   { (exit 1); exit 1; }; }
22401
22402  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22403  if test $ac_delim_n = $ac_delim_num; then
22404    break
22405  elif $ac_last_try; then
22406    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22407$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22408   { (exit 1); exit 1; }; }
22409  else
22410    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22411  fi
22412done
22413rm -f conf$$subs.sh
22414
22415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22416cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22417_ACEOF
22418sed -n '
22419h
22420s/^/S["/; s/!.*/"]=/
22421p
22422g
22423s/^[^!]*!//
22424:repl
22425t repl
22426s/'"$ac_delim"'$//
22427t delim
22428:nl
22429h
22430s/\(.\{148\}\).*/\1/
22431t more1
22432s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22433p
22434n
22435b repl
22436:more1
22437s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22438p
22439g
22440s/.\{148\}//
22441t nl
22442:delim
22443h
22444s/\(.\{148\}\).*/\1/
22445t more2
22446s/["\\]/\\&/g; s/^/"/; s/$/"/
22447p
22448b
22449:more2
22450s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22451p
22452g
22453s/.\{148\}//
22454t delim
22455' <conf$$subs.awk | sed '
22456/^[^""]/{
22457  N
22458  s/\n//
22459}
22460' >>$CONFIG_STATUS || ac_write_fail=1
22461rm -f conf$$subs.awk
22462cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22463_ACAWK
22464cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22465  for (key in S) S_is_set[key] = 1
22466  FS = ""
22467
22468}
22469{
22470  line = $ 0
22471  nfields = split(line, field, "@")
22472  substed = 0
22473  len = length(field[1])
22474  for (i = 2; i < nfields; i++) {
22475    key = field[i]
22476    keylen = length(key)
22477    if (S_is_set[key]) {
22478      value = S[key]
22479      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22480      len += length(value) + length(field[++i])
22481      substed = 1
22482    } else
22483      len += 1 + keylen
22484  }
22485
22486  print line
22487}
22488
22489_ACAWK
22490_ACEOF
22491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22492if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22493  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22494else
22495  cat
22496fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22497  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22498$as_echo "$as_me: error: could not setup config files machinery" >&2;}
22499   { (exit 1); exit 1; }; }
22500_ACEOF
22501
22502# VPATH may cause trouble with some makes, so we remove $(srcdir),
22503# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22504# trailing colons and then remove the whole line if VPATH becomes empty
22505# (actually we leave an empty line to preserve line numbers).
22506if test "x$srcdir" = x.; then
22507  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22508s/:*\$(srcdir):*/:/
22509s/:*\${srcdir}:*/:/
22510s/:*@srcdir@:*/:/
22511s/^\([^=]*=[	 ]*\):*/\1/
22512s/:*$//
22513s/^[^=]*=[	 ]*$//
22514}'
22515fi
22516
22517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22518fi # test -n "$CONFIG_FILES"
22519
22520# Set up the scripts for CONFIG_HEADERS section.
22521# No need to generate them if there are no CONFIG_HEADERS.
22522# This happens for instance with `./config.status Makefile'.
22523if test -n "$CONFIG_HEADERS"; then
22524cat >"$tmp/defines.awk" <<\_ACAWK ||
22525BEGIN {
22526_ACEOF
22527
22528# Transform confdefs.h into an awk script `defines.awk', embedded as
22529# here-document in config.status, that substitutes the proper values into
22530# config.h.in to produce config.h.
22531
22532# Create a delimiter string that does not exist in confdefs.h, to ease
22533# handling of long lines.
22534ac_delim='%!_!# '
22535for ac_last_try in false false :; do
22536  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22537  if test -z "$ac_t"; then
22538    break
22539  elif $ac_last_try; then
22540    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22541$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22542   { (exit 1); exit 1; }; }
22543  else
22544    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22545  fi
22546done
22547
22548# For the awk script, D is an array of macro values keyed by name,
22549# likewise P contains macro parameters if any.  Preserve backslash
22550# newline sequences.
22551
22552ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22553sed -n '
22554s/.\{148\}/&'"$ac_delim"'/g
22555t rset
22556:rset
22557s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22558t def
22559d
22560:def
22561s/\\$//
22562t bsnl
22563s/["\\]/\\&/g
22564s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22565D["\1"]=" \3"/p
22566s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22567d
22568:bsnl
22569s/["\\]/\\&/g
22570s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22571D["\1"]=" \3\\\\\\n"\\/p
22572t cont
22573s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22574t cont
22575d
22576:cont
22577n
22578s/.\{148\}/&'"$ac_delim"'/g
22579t clear
22580:clear
22581s/\\$//
22582t bsnlc
22583s/["\\]/\\&/g; s/^/"/; s/$/"/p
22584d
22585:bsnlc
22586s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22587b cont
22588' <confdefs.h | sed '
22589s/'"$ac_delim"'/"\\\
22590"/g' >>$CONFIG_STATUS || ac_write_fail=1
22591
22592cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22593  for (key in D) D_is_set[key] = 1
22594  FS = ""
22595}
22596/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22597  line = \$ 0
22598  split(line, arg, " ")
22599  if (arg[1] == "#") {
22600    defundef = arg[2]
22601    mac1 = arg[3]
22602  } else {
22603    defundef = substr(arg[1], 2)
22604    mac1 = arg[2]
22605  }
22606  split(mac1, mac2, "(") #)
22607  macro = mac2[1]
22608  prefix = substr(line, 1, index(line, defundef) - 1)
22609  if (D_is_set[macro]) {
22610    # Preserve the white space surrounding the "#".
22611    print prefix "define", macro P[macro] D[macro]
22612    next
22613  } else {
22614    # Replace #undef with comments.  This is necessary, for example,
22615    # in the case of _POSIX_SOURCE, which is predefined and required
22616    # on some systems where configure will not decide to define it.
22617    if (defundef == "undef") {
22618      print "/*", prefix defundef, macro, "*/"
22619      next
22620    }
22621  }
22622}
22623{ print }
22624_ACAWK
22625_ACEOF
22626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22627  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22628$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22629   { (exit 1); exit 1; }; }
22630fi # test -n "$CONFIG_HEADERS"
22631
22632
22633eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22634shift
22635for ac_tag
22636do
22637  case $ac_tag in
22638  :[FHLC]) ac_mode=$ac_tag; continue;;
22639  esac
22640  case $ac_mode$ac_tag in
22641  :[FHL]*:*);;
22642  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22643$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22644   { (exit 1); exit 1; }; };;
22645  :[FH]-) ac_tag=-:-;;
22646  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22647  esac
22648  ac_save_IFS=$IFS
22649  IFS=:
22650  set x $ac_tag
22651  IFS=$ac_save_IFS
22652  shift
22653  ac_file=$1
22654  shift
22655
22656  case $ac_mode in
22657  :L) ac_source=$1;;
22658  :[FH])
22659    ac_file_inputs=
22660    for ac_f
22661    do
22662      case $ac_f in
22663      -) ac_f="$tmp/stdin";;
22664      *) # Look for the file first in the build tree, then in the source tree
22665	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22666	 # because $ac_f cannot contain `:'.
22667	 test -f "$ac_f" ||
22668	   case $ac_f in
22669	   [\\/$]*) false;;
22670	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22671	   esac ||
22672	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22673$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22674   { (exit 1); exit 1; }; };;
22675      esac
22676      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22677      ac_file_inputs="$ac_file_inputs '$ac_f'"
22678    done
22679
22680    # Let's still pretend it is `configure' which instantiates (i.e., don't
22681    # use $as_me), people would be surprised to read:
22682    #    /* config.h.  Generated by config.status.  */
22683    configure_input='Generated from '`
22684	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22685	`' by configure.'
22686    if test x"$ac_file" != x-; then
22687      configure_input="$ac_file.  $configure_input"
22688      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22689$as_echo "$as_me: creating $ac_file" >&6;}
22690    fi
22691    # Neutralize special characters interpreted by sed in replacement strings.
22692    case $configure_input in #(
22693    *\&* | *\|* | *\\* )
22694       ac_sed_conf_input=`$as_echo "$configure_input" |
22695       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22696    *) ac_sed_conf_input=$configure_input;;
22697    esac
22698
22699    case $ac_tag in
22700    *:-:* | *:-) cat >"$tmp/stdin" \
22701      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22702$as_echo "$as_me: error: could not create $ac_file" >&2;}
22703   { (exit 1); exit 1; }; } ;;
22704    esac
22705    ;;
22706  esac
22707
22708  ac_dir=`$as_dirname -- "$ac_file" ||
22709$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22710	 X"$ac_file" : 'X\(//\)[^/]' \| \
22711	 X"$ac_file" : 'X\(//\)$' \| \
22712	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22713$as_echo X"$ac_file" |
22714    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22715	    s//\1/
22716	    q
22717	  }
22718	  /^X\(\/\/\)[^/].*/{
22719	    s//\1/
22720	    q
22721	  }
22722	  /^X\(\/\/\)$/{
22723	    s//\1/
22724	    q
22725	  }
22726	  /^X\(\/\).*/{
22727	    s//\1/
22728	    q
22729	  }
22730	  s/.*/./; q'`
22731  { as_dir="$ac_dir"
22732  case $as_dir in #(
22733  -*) as_dir=./$as_dir;;
22734  esac
22735  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22736    as_dirs=
22737    while :; do
22738      case $as_dir in #(
22739      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22740      *) as_qdir=$as_dir;;
22741      esac
22742      as_dirs="'$as_qdir' $as_dirs"
22743      as_dir=`$as_dirname -- "$as_dir" ||
22744$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22745	 X"$as_dir" : 'X\(//\)[^/]' \| \
22746	 X"$as_dir" : 'X\(//\)$' \| \
22747	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22748$as_echo X"$as_dir" |
22749    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22750	    s//\1/
22751	    q
22752	  }
22753	  /^X\(\/\/\)[^/].*/{
22754	    s//\1/
22755	    q
22756	  }
22757	  /^X\(\/\/\)$/{
22758	    s//\1/
22759	    q
22760	  }
22761	  /^X\(\/\).*/{
22762	    s//\1/
22763	    q
22764	  }
22765	  s/.*/./; q'`
22766      test -d "$as_dir" && break
22767    done
22768    test -z "$as_dirs" || eval "mkdir $as_dirs"
22769  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22770$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22771   { (exit 1); exit 1; }; }; }
22772  ac_builddir=.
22773
22774case "$ac_dir" in
22775.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22776*)
22777  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22778  # A ".." for each directory in $ac_dir_suffix.
22779  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22780  case $ac_top_builddir_sub in
22781  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22782  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22783  esac ;;
22784esac
22785ac_abs_top_builddir=$ac_pwd
22786ac_abs_builddir=$ac_pwd$ac_dir_suffix
22787# for backward compatibility:
22788ac_top_builddir=$ac_top_build_prefix
22789
22790case $srcdir in
22791  .)  # We are building in place.
22792    ac_srcdir=.
22793    ac_top_srcdir=$ac_top_builddir_sub
22794    ac_abs_top_srcdir=$ac_pwd ;;
22795  [\\/]* | ?:[\\/]* )  # Absolute name.
22796    ac_srcdir=$srcdir$ac_dir_suffix;
22797    ac_top_srcdir=$srcdir
22798    ac_abs_top_srcdir=$srcdir ;;
22799  *) # Relative name.
22800    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22801    ac_top_srcdir=$ac_top_build_prefix$srcdir
22802    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22803esac
22804ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22805
22806
22807  case $ac_mode in
22808  :F)
22809  #
22810  # CONFIG_FILE
22811  #
22812
22813  case $INSTALL in
22814  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22815  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22816  esac
22817  ac_MKDIR_P=$MKDIR_P
22818  case $MKDIR_P in
22819  [\\/$]* | ?:[\\/]* ) ;;
22820  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22821  esac
22822_ACEOF
22823
22824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22825# If the template does not know about datarootdir, expand it.
22826# FIXME: This hack should be removed a few years after 2.60.
22827ac_datarootdir_hack=; ac_datarootdir_seen=
22828
22829ac_sed_dataroot='
22830/datarootdir/ {
22831  p
22832  q
22833}
22834/@datadir@/p
22835/@docdir@/p
22836/@infodir@/p
22837/@localedir@/p
22838/@mandir@/p
22839'
22840case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22841*datarootdir*) ac_datarootdir_seen=yes;;
22842*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22843  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22844$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22845_ACEOF
22846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22847  ac_datarootdir_hack='
22848  s&@datadir@&$datadir&g
22849  s&@docdir@&$docdir&g
22850  s&@infodir@&$infodir&g
22851  s&@localedir@&$localedir&g
22852  s&@mandir@&$mandir&g
22853    s&\\\${datarootdir}&$datarootdir&g' ;;
22854esac
22855_ACEOF
22856
22857# Neutralize VPATH when `$srcdir' = `.'.
22858# Shell code in configure.ac might set extrasub.
22859# FIXME: do we really want to maintain this feature?
22860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22861ac_sed_extra="$ac_vpsub
22862$extrasub
22863_ACEOF
22864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22865:t
22866/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22867s|@configure_input@|$ac_sed_conf_input|;t t
22868s&@top_builddir@&$ac_top_builddir_sub&;t t
22869s&@top_build_prefix@&$ac_top_build_prefix&;t t
22870s&@srcdir@&$ac_srcdir&;t t
22871s&@abs_srcdir@&$ac_abs_srcdir&;t t
22872s&@top_srcdir@&$ac_top_srcdir&;t t
22873s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22874s&@builddir@&$ac_builddir&;t t
22875s&@abs_builddir@&$ac_abs_builddir&;t t
22876s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22877s&@INSTALL@&$ac_INSTALL&;t t
22878s&@MKDIR_P@&$ac_MKDIR_P&;t t
22879$ac_datarootdir_hack
22880"
22881eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22882  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22883$as_echo "$as_me: error: could not create $ac_file" >&2;}
22884   { (exit 1); exit 1; }; }
22885
22886test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22887  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22888  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22889  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22890which seems to be undefined.  Please make sure it is defined." >&5
22891$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22892which seems to be undefined.  Please make sure it is defined." >&2;}
22893
22894  rm -f "$tmp/stdin"
22895  case $ac_file in
22896  -) cat "$tmp/out" && rm -f "$tmp/out";;
22897  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22898  esac \
22899  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22900$as_echo "$as_me: error: could not create $ac_file" >&2;}
22901   { (exit 1); exit 1; }; }
22902 ;;
22903  :H)
22904  #
22905  # CONFIG_HEADER
22906  #
22907  if test x"$ac_file" != x-; then
22908    {
22909      $as_echo "/* $configure_input  */" \
22910      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22911    } >"$tmp/config.h" \
22912      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22913$as_echo "$as_me: error: could not create $ac_file" >&2;}
22914   { (exit 1); exit 1; }; }
22915    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22916      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22917$as_echo "$as_me: $ac_file is unchanged" >&6;}
22918    else
22919      rm -f "$ac_file"
22920      mv "$tmp/config.h" "$ac_file" \
22921	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22922$as_echo "$as_me: error: could not create $ac_file" >&2;}
22923   { (exit 1); exit 1; }; }
22924    fi
22925  else
22926    $as_echo "/* $configure_input  */" \
22927      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22928      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22929$as_echo "$as_me: error: could not create -" >&2;}
22930   { (exit 1); exit 1; }; }
22931  fi
22932# Compute "$ac_file"'s index in $config_headers.
22933_am_arg="$ac_file"
22934_am_stamp_count=1
22935for _am_header in $config_headers :; do
22936  case $_am_header in
22937    $_am_arg | $_am_arg:* )
22938      break ;;
22939    * )
22940      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22941  esac
22942done
22943echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22944$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22945	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22946	 X"$_am_arg" : 'X\(//\)$' \| \
22947	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22948$as_echo X"$_am_arg" |
22949    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22950	    s//\1/
22951	    q
22952	  }
22953	  /^X\(\/\/\)[^/].*/{
22954	    s//\1/
22955	    q
22956	  }
22957	  /^X\(\/\/\)$/{
22958	    s//\1/
22959	    q
22960	  }
22961	  /^X\(\/\).*/{
22962	    s//\1/
22963	    q
22964	  }
22965	  s/.*/./; q'`/stamp-h$_am_stamp_count
22966 ;;
22967
22968  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22969$as_echo "$as_me: executing $ac_file commands" >&6;}
22970 ;;
22971  esac
22972
22973
22974  case $ac_file$ac_mode in
22975    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22976  # Strip MF so we end up with the name of the file.
22977  mf=`echo "$mf" | sed -e 's/:.*$//'`
22978  # Check whether this is an Automake generated Makefile or not.
22979  # We used to match only the files named `Makefile.in', but
22980  # some people rename them; so instead we look at the file content.
22981  # Grep'ing the first line is not enough: some people post-process
22982  # each Makefile.in and add a new line on top of each file to say so.
22983  # Grep'ing the whole file is not good either: AIX grep has a line
22984  # limit of 2048, but all sed's we know have understand at least 4000.
22985  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22986    dirpart=`$as_dirname -- "$mf" ||
22987$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22988	 X"$mf" : 'X\(//\)[^/]' \| \
22989	 X"$mf" : 'X\(//\)$' \| \
22990	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22991$as_echo X"$mf" |
22992    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22993	    s//\1/
22994	    q
22995	  }
22996	  /^X\(\/\/\)[^/].*/{
22997	    s//\1/
22998	    q
22999	  }
23000	  /^X\(\/\/\)$/{
23001	    s//\1/
23002	    q
23003	  }
23004	  /^X\(\/\).*/{
23005	    s//\1/
23006	    q
23007	  }
23008	  s/.*/./; q'`
23009  else
23010    continue
23011  fi
23012  # Extract the definition of DEPDIR, am__include, and am__quote
23013  # from the Makefile without running `make'.
23014  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23015  test -z "$DEPDIR" && continue
23016  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23017  test -z "am__include" && continue
23018  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23019  # When using ansi2knr, U may be empty or an underscore; expand it
23020  U=`sed -n 's/^U = //p' < "$mf"`
23021  # Find all dependency output files, they are included files with
23022  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23023  # simplest approach to changing $(DEPDIR) to its actual value in the
23024  # expansion.
23025  for file in `sed -n "
23026    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23027       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23028    # Make sure the directory exists.
23029    test -f "$dirpart/$file" && continue
23030    fdir=`$as_dirname -- "$file" ||
23031$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23032	 X"$file" : 'X\(//\)[^/]' \| \
23033	 X"$file" : 'X\(//\)$' \| \
23034	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23035$as_echo X"$file" |
23036    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23037	    s//\1/
23038	    q
23039	  }
23040	  /^X\(\/\/\)[^/].*/{
23041	    s//\1/
23042	    q
23043	  }
23044	  /^X\(\/\/\)$/{
23045	    s//\1/
23046	    q
23047	  }
23048	  /^X\(\/\).*/{
23049	    s//\1/
23050	    q
23051	  }
23052	  s/.*/./; q'`
23053    { as_dir=$dirpart/$fdir
23054  case $as_dir in #(
23055  -*) as_dir=./$as_dir;;
23056  esac
23057  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23058    as_dirs=
23059    while :; do
23060      case $as_dir in #(
23061      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23062      *) as_qdir=$as_dir;;
23063      esac
23064      as_dirs="'$as_qdir' $as_dirs"
23065      as_dir=`$as_dirname -- "$as_dir" ||
23066$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23067	 X"$as_dir" : 'X\(//\)[^/]' \| \
23068	 X"$as_dir" : 'X\(//\)$' \| \
23069	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23070$as_echo X"$as_dir" |
23071    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23072	    s//\1/
23073	    q
23074	  }
23075	  /^X\(\/\/\)[^/].*/{
23076	    s//\1/
23077	    q
23078	  }
23079	  /^X\(\/\/\)$/{
23080	    s//\1/
23081	    q
23082	  }
23083	  /^X\(\/\).*/{
23084	    s//\1/
23085	    q
23086	  }
23087	  s/.*/./; q'`
23088      test -d "$as_dir" && break
23089    done
23090    test -z "$as_dirs" || eval "mkdir $as_dirs"
23091  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23092$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23093   { (exit 1); exit 1; }; }; }
23094    # echo "creating $dirpart/$file"
23095    echo '# dummy' > "$dirpart/$file"
23096  done
23097done
23098 ;;
23099
23100  esac
23101done # for ac_tag
23102
23103
23104{ (exit 0); exit 0; }
23105_ACEOF
23106chmod +x $CONFIG_STATUS
23107ac_clean_files=$ac_clean_files_save
23108
23109test $ac_write_fail = 0 ||
23110  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23111$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23112   { (exit 1); exit 1; }; }
23113
23114
23115# configure is writing to config.log, and then calls config.status.
23116# config.status does its own redirection, appending to config.log.
23117# Unfortunately, on DOS this fails, as config.log is still kept open
23118# by configure, so config.status won't be able to write to it; its
23119# output is simply discarded.  So we exec the FD to /dev/null,
23120# effectively closing config.log, so it can be properly (re)opened and
23121# appended to by config.status.  When coming back to configure, we
23122# need to make the FD available again.
23123if test "$no_create" != yes; then
23124  ac_cs_success=:
23125  ac_config_status_args=
23126  test "$silent" = yes &&
23127    ac_config_status_args="$ac_config_status_args --quiet"
23128  exec 5>/dev/null
23129  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23130  exec 5>>config.log
23131  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23132  # would make configure fail if this is the last instruction.
23133  $ac_cs_success || { (exit 1); exit 1; }
23134fi
23135if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23136  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23137$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23138fi
23139
23140