configure revision 4a041c5b
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.62 for xf86-video-sunleo 1.2.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587echo=${ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $echo works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<EOF
606$*
607EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$ECHO"; then
616if test "X${echo_test_string+set}" != Xset; then
617# find a string as large as possible, as long as the shell can cope with it
618  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621       echo_test_string=`eval $cmd` &&
622       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623    then
624      break
625    fi
626  done
627fi
628
629if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631   test "X$echo_testing_string" = "X$echo_test_string"; then
632  :
633else
634  # The Solaris, AIX, and Digital Unix default echo programs unquote
635  # backslashes.  This makes it impossible to quote backslashes using
636  #   echo "$something" | sed 's/\\/\\\\/g'
637  #
638  # So, first we look for a working echo in the user's PATH.
639
640  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641  for dir in $PATH /usr/ucb; do
642    IFS="$lt_save_ifs"
643    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646       test "X$echo_testing_string" = "X$echo_test_string"; then
647      echo="$dir/echo"
648      break
649    fi
650  done
651  IFS="$lt_save_ifs"
652
653  if test "X$echo" = Xecho; then
654    # We didn't find a better echo, so look for alternatives.
655    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657       test "X$echo_testing_string" = "X$echo_test_string"; then
658      # This shell has a builtin print -r that does the trick.
659      echo='print -r'
660    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661	 test "X$CONFIG_SHELL" != X/bin/ksh; then
662      # If we have ksh, try running configure again with it.
663      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664      export ORIGINAL_CONFIG_SHELL
665      CONFIG_SHELL=/bin/ksh
666      export CONFIG_SHELL
667      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668    else
669      # Try using printf.
670      echo='printf %s\n'
671      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673	 test "X$echo_testing_string" = "X$echo_test_string"; then
674	# Cool, printf works
675	:
676      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677	   test "X$echo_testing_string" = 'X\t' &&
678	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679	   test "X$echo_testing_string" = "X$echo_test_string"; then
680	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681	export CONFIG_SHELL
682	SHELL="$CONFIG_SHELL"
683	export SHELL
684	echo="$CONFIG_SHELL $0 --fallback-echo"
685      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686	   test "X$echo_testing_string" = 'X\t' &&
687	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688	   test "X$echo_testing_string" = "X$echo_test_string"; then
689	echo="$CONFIG_SHELL $0 --fallback-echo"
690      else
691	# maybe with a smaller string...
692	prev=:
693
694	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696	  then
697	    break
698	  fi
699	  prev="$cmd"
700	done
701
702	if test "$prev" != 'sed 50q "$0"'; then
703	  echo_test_string=`eval $prev`
704	  export echo_test_string
705	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706	else
707	  # Oops.  We lost completely, so just stick with echo.
708	  echo=echo
709	fi
710      fi
711    fi
712  fi
713fi
714fi
715
716# Copy echo and quote the copy suitably for passing to libtool from
717# the Makefile, instead of quoting the original, which is used later.
718ECHO=$echo
719if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721fi
722
723
724
725
726tagnames=${tagnames+${tagnames},}CXX
727
728tagnames=${tagnames+${tagnames},}F77
729
730exec 7<&0 </dev/null 6>&1
731
732# Name of the host.
733# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734# so uname gets run too.
735ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737#
738# Initializations.
739#
740ac_default_prefix=/usr/local
741ac_clean_files=
742ac_config_libobj_dir=.
743LIBOBJS=
744cross_compiling=no
745subdirs=
746MFLAGS=
747MAKEFLAGS=
748SHELL=${CONFIG_SHELL-/bin/sh}
749
750# Identity of this package.
751PACKAGE_NAME='xf86-video-sunleo'
752PACKAGE_TARNAME='xf86-video-sunleo'
753PACKAGE_VERSION='1.2.0'
754PACKAGE_STRING='xf86-video-sunleo 1.2.0'
755PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
756
757ac_unique_file="Makefile.am"
758# Factoring default headers for most tests.
759ac_includes_default="\
760#include <stdio.h>
761#ifdef HAVE_SYS_TYPES_H
762# include <sys/types.h>
763#endif
764#ifdef HAVE_SYS_STAT_H
765# include <sys/stat.h>
766#endif
767#ifdef STDC_HEADERS
768# include <stdlib.h>
769# include <stddef.h>
770#else
771# ifdef HAVE_STDLIB_H
772#  include <stdlib.h>
773# endif
774#endif
775#ifdef HAVE_STRING_H
776# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777#  include <memory.h>
778# endif
779# include <string.h>
780#endif
781#ifdef HAVE_STRINGS_H
782# include <strings.h>
783#endif
784#ifdef HAVE_INTTYPES_H
785# include <inttypes.h>
786#endif
787#ifdef HAVE_STDINT_H
788# include <stdint.h>
789#endif
790#ifdef HAVE_UNISTD_H
791# include <unistd.h>
792#endif"
793
794ac_subst_vars='SHELL
795PATH_SEPARATOR
796PACKAGE_NAME
797PACKAGE_TARNAME
798PACKAGE_VERSION
799PACKAGE_STRING
800PACKAGE_BUGREPORT
801exec_prefix
802prefix
803program_transform_name
804bindir
805sbindir
806libexecdir
807datarootdir
808datadir
809sysconfdir
810sharedstatedir
811localstatedir
812includedir
813oldincludedir
814docdir
815infodir
816htmldir
817dvidir
818pdfdir
819psdir
820libdir
821localedir
822mandir
823DEFS
824ECHO_C
825ECHO_N
826ECHO_T
827LIBS
828build_alias
829host_alias
830target_alias
831INSTALL_PROGRAM
832INSTALL_SCRIPT
833INSTALL_DATA
834am__isrc
835CYGPATH_W
836PACKAGE
837VERSION
838ACLOCAL
839AUTOCONF
840AUTOMAKE
841AUTOHEADER
842MAKEINFO
843install_sh
844STRIP
845INSTALL_STRIP_PROGRAM
846MKDIR_P
847mkdir_p
848AWK
849SET_MAKE
850am__leading_dot
851AMTAR
852am__tar
853am__untar
854MAINTAINER_MODE_TRUE
855MAINTAINER_MODE_FALSE
856MAINT
857build
858build_cpu
859build_vendor
860build_os
861host
862host_cpu
863host_vendor
864host_os
865CC
866CFLAGS
867LDFLAGS
868CPPFLAGS
869ac_ct_CC
870EXEEXT
871OBJEXT
872DEPDIR
873am__include
874am__quote
875AMDEP_TRUE
876AMDEP_FALSE
877AMDEPBACKSLASH
878CCDEPMODE
879am__fastdepCC_TRUE
880am__fastdepCC_FALSE
881SED
882GREP
883EGREP
884LN_S
885ECHO
886AR
887RANLIB
888DSYMUTIL
889NMEDIT
890CPP
891CXX
892CXXFLAGS
893ac_ct_CXX
894CXXDEPMODE
895am__fastdepCXX_TRUE
896am__fastdepCXX_FALSE
897CXXCPP
898F77
899FFLAGS
900ac_ct_F77
901LIBTOOL
902PKG_CONFIG
903XORG_CFLAGS
904XORG_LIBS
905moduledir
906DRIVER_NAME
907APP_MAN_SUFFIX
908LIB_MAN_SUFFIX
909FILE_MAN_SUFFIX
910MISC_MAN_SUFFIX
911DRIVER_MAN_SUFFIX
912ADMIN_MAN_SUFFIX
913APP_MAN_DIR
914LIB_MAN_DIR
915FILE_MAN_DIR
916MISC_MAN_DIR
917DRIVER_MAN_DIR
918ADMIN_MAN_DIR
919LIBOBJS
920LTLIBOBJS'
921ac_subst_files=''
922ac_user_opts='
923enable_option_checking
924enable_maintainer_mode
925enable_static
926enable_shared
927enable_fast_install
928enable_dependency_tracking
929with_gnu_ld
930enable_libtool_lock
931with_pic
932with_tags
933with_xorg_module_dir
934with_release_version
935'
936      ac_precious_vars='build_alias
937host_alias
938target_alias
939CC
940CFLAGS
941LDFLAGS
942LIBS
943CPPFLAGS
944CPP
945CXX
946CXXFLAGS
947CCC
948CXXCPP
949F77
950FFLAGS
951PKG_CONFIG
952XORG_CFLAGS
953XORG_LIBS'
954
955
956# Initialize some variables set by options.
957ac_init_help=
958ac_init_version=false
959ac_unrecognized_opts=
960ac_unrecognized_sep=
961# The variables have the same names as the options, with
962# dashes changed to underlines.
963cache_file=/dev/null
964exec_prefix=NONE
965no_create=
966no_recursion=
967prefix=NONE
968program_prefix=NONE
969program_suffix=NONE
970program_transform_name=s,x,x,
971silent=
972site=
973srcdir=
974verbose=
975x_includes=NONE
976x_libraries=NONE
977
978# Installation directory options.
979# These are left unexpanded so users can "make install exec_prefix=/foo"
980# and all the variables that are supposed to be based on exec_prefix
981# by default will actually change.
982# Use braces instead of parens because sh, perl, etc. also accept them.
983# (The list follows the same order as the GNU Coding Standards.)
984bindir='${exec_prefix}/bin'
985sbindir='${exec_prefix}/sbin'
986libexecdir='${exec_prefix}/libexec'
987datarootdir='${prefix}/share'
988datadir='${datarootdir}'
989sysconfdir='${prefix}/etc'
990sharedstatedir='${prefix}/com'
991localstatedir='${prefix}/var'
992includedir='${prefix}/include'
993oldincludedir='/usr/include'
994docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
995infodir='${datarootdir}/info'
996htmldir='${docdir}'
997dvidir='${docdir}'
998pdfdir='${docdir}'
999psdir='${docdir}'
1000libdir='${exec_prefix}/lib'
1001localedir='${datarootdir}/locale'
1002mandir='${datarootdir}/man'
1003
1004ac_prev=
1005ac_dashdash=
1006for ac_option
1007do
1008  # If the previous option needs an argument, assign it.
1009  if test -n "$ac_prev"; then
1010    eval $ac_prev=\$ac_option
1011    ac_prev=
1012    continue
1013  fi
1014
1015  case $ac_option in
1016  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017  *)	ac_optarg=yes ;;
1018  esac
1019
1020  # Accept the important Cygnus configure options, so we can diagnose typos.
1021
1022  case $ac_dashdash$ac_option in
1023  --)
1024    ac_dashdash=yes ;;
1025
1026  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1027    ac_prev=bindir ;;
1028  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1029    bindir=$ac_optarg ;;
1030
1031  -build | --build | --buil | --bui | --bu)
1032    ac_prev=build_alias ;;
1033  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1034    build_alias=$ac_optarg ;;
1035
1036  -cache-file | --cache-file | --cache-fil | --cache-fi \
1037  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1038    ac_prev=cache_file ;;
1039  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1040  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1041    cache_file=$ac_optarg ;;
1042
1043  --config-cache | -C)
1044    cache_file=config.cache ;;
1045
1046  -datadir | --datadir | --datadi | --datad)
1047    ac_prev=datadir ;;
1048  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1049    datadir=$ac_optarg ;;
1050
1051  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1052  | --dataroo | --dataro | --datar)
1053    ac_prev=datarootdir ;;
1054  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1055  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1056    datarootdir=$ac_optarg ;;
1057
1058  -disable-* | --disable-*)
1059    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1060    # Reject names that are not valid shell variable names.
1061    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1063   { (exit 1); exit 1; }; }
1064    ac_useropt_orig=$ac_useropt
1065    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066    case $ac_user_opts in
1067      *"
1068"enable_$ac_useropt"
1069"*) ;;
1070      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071	 ac_unrecognized_sep=', ';;
1072    esac
1073    eval enable_$ac_useropt=no ;;
1074
1075  -docdir | --docdir | --docdi | --doc | --do)
1076    ac_prev=docdir ;;
1077  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078    docdir=$ac_optarg ;;
1079
1080  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081    ac_prev=dvidir ;;
1082  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083    dvidir=$ac_optarg ;;
1084
1085  -enable-* | --enable-*)
1086    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087    # Reject names that are not valid shell variable names.
1088    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1090   { (exit 1); exit 1; }; }
1091    ac_useropt_orig=$ac_useropt
1092    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093    case $ac_user_opts in
1094      *"
1095"enable_$ac_useropt"
1096"*) ;;
1097      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1098	 ac_unrecognized_sep=', ';;
1099    esac
1100    eval enable_$ac_useropt=\$ac_optarg ;;
1101
1102  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104  | --exec | --exe | --ex)
1105    ac_prev=exec_prefix ;;
1106  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108  | --exec=* | --exe=* | --ex=*)
1109    exec_prefix=$ac_optarg ;;
1110
1111  -gas | --gas | --ga | --g)
1112    # Obsolete; use --with-gas.
1113    with_gas=yes ;;
1114
1115  -help | --help | --hel | --he | -h)
1116    ac_init_help=long ;;
1117  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118    ac_init_help=recursive ;;
1119  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120    ac_init_help=short ;;
1121
1122  -host | --host | --hos | --ho)
1123    ac_prev=host_alias ;;
1124  -host=* | --host=* | --hos=* | --ho=*)
1125    host_alias=$ac_optarg ;;
1126
1127  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128    ac_prev=htmldir ;;
1129  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130  | --ht=*)
1131    htmldir=$ac_optarg ;;
1132
1133  -includedir | --includedir | --includedi | --included | --include \
1134  | --includ | --inclu | --incl | --inc)
1135    ac_prev=includedir ;;
1136  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137  | --includ=* | --inclu=* | --incl=* | --inc=*)
1138    includedir=$ac_optarg ;;
1139
1140  -infodir | --infodir | --infodi | --infod | --info | --inf)
1141    ac_prev=infodir ;;
1142  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143    infodir=$ac_optarg ;;
1144
1145  -libdir | --libdir | --libdi | --libd)
1146    ac_prev=libdir ;;
1147  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148    libdir=$ac_optarg ;;
1149
1150  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151  | --libexe | --libex | --libe)
1152    ac_prev=libexecdir ;;
1153  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154  | --libexe=* | --libex=* | --libe=*)
1155    libexecdir=$ac_optarg ;;
1156
1157  -localedir | --localedir | --localedi | --localed | --locale)
1158    ac_prev=localedir ;;
1159  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160    localedir=$ac_optarg ;;
1161
1162  -localstatedir | --localstatedir | --localstatedi | --localstated \
1163  | --localstate | --localstat | --localsta | --localst | --locals)
1164    ac_prev=localstatedir ;;
1165  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1166  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1167    localstatedir=$ac_optarg ;;
1168
1169  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170    ac_prev=mandir ;;
1171  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172    mandir=$ac_optarg ;;
1173
1174  -nfp | --nfp | --nf)
1175    # Obsolete; use --without-fp.
1176    with_fp=no ;;
1177
1178  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179  | --no-cr | --no-c | -n)
1180    no_create=yes ;;
1181
1182  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184    no_recursion=yes ;;
1185
1186  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188  | --oldin | --oldi | --old | --ol | --o)
1189    ac_prev=oldincludedir ;;
1190  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193    oldincludedir=$ac_optarg ;;
1194
1195  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196    ac_prev=prefix ;;
1197  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198    prefix=$ac_optarg ;;
1199
1200  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201  | --program-pre | --program-pr | --program-p)
1202    ac_prev=program_prefix ;;
1203  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205    program_prefix=$ac_optarg ;;
1206
1207  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208  | --program-suf | --program-su | --program-s)
1209    ac_prev=program_suffix ;;
1210  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212    program_suffix=$ac_optarg ;;
1213
1214  -program-transform-name | --program-transform-name \
1215  | --program-transform-nam | --program-transform-na \
1216  | --program-transform-n | --program-transform- \
1217  | --program-transform | --program-transfor \
1218  | --program-transfo | --program-transf \
1219  | --program-trans | --program-tran \
1220  | --progr-tra | --program-tr | --program-t)
1221    ac_prev=program_transform_name ;;
1222  -program-transform-name=* | --program-transform-name=* \
1223  | --program-transform-nam=* | --program-transform-na=* \
1224  | --program-transform-n=* | --program-transform-=* \
1225  | --program-transform=* | --program-transfor=* \
1226  | --program-transfo=* | --program-transf=* \
1227  | --program-trans=* | --program-tran=* \
1228  | --progr-tra=* | --program-tr=* | --program-t=*)
1229    program_transform_name=$ac_optarg ;;
1230
1231  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232    ac_prev=pdfdir ;;
1233  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234    pdfdir=$ac_optarg ;;
1235
1236  -psdir | --psdir | --psdi | --psd | --ps)
1237    ac_prev=psdir ;;
1238  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239    psdir=$ac_optarg ;;
1240
1241  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242  | -silent | --silent | --silen | --sile | --sil)
1243    silent=yes ;;
1244
1245  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246    ac_prev=sbindir ;;
1247  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248  | --sbi=* | --sb=*)
1249    sbindir=$ac_optarg ;;
1250
1251  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253  | --sharedst | --shareds | --shared | --share | --shar \
1254  | --sha | --sh)
1255    ac_prev=sharedstatedir ;;
1256  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259  | --sha=* | --sh=*)
1260    sharedstatedir=$ac_optarg ;;
1261
1262  -site | --site | --sit)
1263    ac_prev=site ;;
1264  -site=* | --site=* | --sit=*)
1265    site=$ac_optarg ;;
1266
1267  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268    ac_prev=srcdir ;;
1269  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270    srcdir=$ac_optarg ;;
1271
1272  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273  | --syscon | --sysco | --sysc | --sys | --sy)
1274    ac_prev=sysconfdir ;;
1275  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277    sysconfdir=$ac_optarg ;;
1278
1279  -target | --target | --targe | --targ | --tar | --ta | --t)
1280    ac_prev=target_alias ;;
1281  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282    target_alias=$ac_optarg ;;
1283
1284  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285    verbose=yes ;;
1286
1287  -version | --version | --versio | --versi | --vers | -V)
1288    ac_init_version=: ;;
1289
1290  -with-* | --with-*)
1291    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292    # Reject names that are not valid shell variable names.
1293    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1295   { (exit 1); exit 1; }; }
1296    ac_useropt_orig=$ac_useropt
1297    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298    case $ac_user_opts in
1299      *"
1300"with_$ac_useropt"
1301"*) ;;
1302      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303	 ac_unrecognized_sep=', ';;
1304    esac
1305    eval with_$ac_useropt=\$ac_optarg ;;
1306
1307  -without-* | --without-*)
1308    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309    # Reject names that are not valid shell variable names.
1310    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1312   { (exit 1); exit 1; }; }
1313    ac_useropt_orig=$ac_useropt
1314    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315    case $ac_user_opts in
1316      *"
1317"with_$ac_useropt"
1318"*) ;;
1319      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320	 ac_unrecognized_sep=', ';;
1321    esac
1322    eval with_$ac_useropt=no ;;
1323
1324  --x)
1325    # Obsolete; use --with-x.
1326    with_x=yes ;;
1327
1328  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329  | --x-incl | --x-inc | --x-in | --x-i)
1330    ac_prev=x_includes ;;
1331  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333    x_includes=$ac_optarg ;;
1334
1335  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337    ac_prev=x_libraries ;;
1338  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340    x_libraries=$ac_optarg ;;
1341
1342  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1343Try \`$0 --help' for more information." >&2
1344   { (exit 1); exit 1; }; }
1345    ;;
1346
1347  *=*)
1348    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1349    # Reject names that are not valid shell variable names.
1350    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1351      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1352   { (exit 1); exit 1; }; }
1353    eval $ac_envvar=\$ac_optarg
1354    export $ac_envvar ;;
1355
1356  *)
1357    # FIXME: should be removed in autoconf 3.0.
1358    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1359    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1361    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1362    ;;
1363
1364  esac
1365done
1366
1367if test -n "$ac_prev"; then
1368  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1369  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1370   { (exit 1); exit 1; }; }
1371fi
1372
1373if test -n "$ac_unrecognized_opts"; then
1374  case $enable_option_checking in
1375    no) ;;
1376    fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1377   { (exit 1); exit 1; }; } ;;
1378    *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379  esac
1380fi
1381
1382# Check all directory arguments for consistency.
1383for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384		datadir sysconfdir sharedstatedir localstatedir includedir \
1385		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386		libdir localedir mandir
1387do
1388  eval ac_val=\$$ac_var
1389  # Remove trailing slashes.
1390  case $ac_val in
1391    */ )
1392      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393      eval $ac_var=\$ac_val;;
1394  esac
1395  # Be sure to have absolute directory names.
1396  case $ac_val in
1397    [\\/$]* | ?:[\\/]* )  continue;;
1398    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1399  esac
1400  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1401   { (exit 1); exit 1; }; }
1402done
1403
1404# There might be people who depend on the old broken behavior: `$host'
1405# used to hold the argument of --host etc.
1406# FIXME: To remove some day.
1407build=$build_alias
1408host=$host_alias
1409target=$target_alias
1410
1411# FIXME: To remove some day.
1412if test "x$host_alias" != x; then
1413  if test "x$build_alias" = x; then
1414    cross_compiling=maybe
1415    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1416    If a cross compiler is detected then cross compile mode will be used." >&2
1417  elif test "x$build_alias" != "x$host_alias"; then
1418    cross_compiling=yes
1419  fi
1420fi
1421
1422ac_tool_prefix=
1423test -n "$host_alias" && ac_tool_prefix=$host_alias-
1424
1425test "$silent" = yes && exec 6>/dev/null
1426
1427
1428ac_pwd=`pwd` && test -n "$ac_pwd" &&
1429ac_ls_di=`ls -di .` &&
1430ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1431  { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1432   { (exit 1); exit 1; }; }
1433test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1434  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1435   { (exit 1); exit 1; }; }
1436
1437
1438# Find the source files, if location was not specified.
1439if test -z "$srcdir"; then
1440  ac_srcdir_defaulted=yes
1441  # Try the directory containing this script, then the parent directory.
1442  ac_confdir=`$as_dirname -- "$as_myself" ||
1443$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444	 X"$as_myself" : 'X\(//\)[^/]' \| \
1445	 X"$as_myself" : 'X\(//\)$' \| \
1446	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447$as_echo X"$as_myself" |
1448    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449	    s//\1/
1450	    q
1451	  }
1452	  /^X\(\/\/\)[^/].*/{
1453	    s//\1/
1454	    q
1455	  }
1456	  /^X\(\/\/\)$/{
1457	    s//\1/
1458	    q
1459	  }
1460	  /^X\(\/\).*/{
1461	    s//\1/
1462	    q
1463	  }
1464	  s/.*/./; q'`
1465  srcdir=$ac_confdir
1466  if test ! -r "$srcdir/$ac_unique_file"; then
1467    srcdir=..
1468  fi
1469else
1470  ac_srcdir_defaulted=no
1471fi
1472if test ! -r "$srcdir/$ac_unique_file"; then
1473  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1474  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1475   { (exit 1); exit 1; }; }
1476fi
1477ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1478ac_abs_confdir=`(
1479	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1480   { (exit 1); exit 1; }; }
1481	pwd)`
1482# When building in place, set srcdir=.
1483if test "$ac_abs_confdir" = "$ac_pwd"; then
1484  srcdir=.
1485fi
1486# Remove unnecessary trailing slashes from srcdir.
1487# Double slashes in file names in object file debugging info
1488# mess up M-x gdb in Emacs.
1489case $srcdir in
1490*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1491esac
1492for ac_var in $ac_precious_vars; do
1493  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1494  eval ac_env_${ac_var}_value=\$${ac_var}
1495  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1496  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1497done
1498
1499#
1500# Report the --help message.
1501#
1502if test "$ac_init_help" = "long"; then
1503  # Omit some internal or obsolete options to make the list less imposing.
1504  # This message is too long to be a string in the A/UX 3.1 sh.
1505  cat <<_ACEOF
1506\`configure' configures xf86-video-sunleo 1.2.0 to adapt to many kinds of systems.
1507
1508Usage: $0 [OPTION]... [VAR=VALUE]...
1509
1510To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511VAR=VALUE.  See below for descriptions of some of the useful variables.
1512
1513Defaults for the options are specified in brackets.
1514
1515Configuration:
1516  -h, --help              display this help and exit
1517      --help=short        display options specific to this package
1518      --help=recursive    display the short help of all the included packages
1519  -V, --version           display version information and exit
1520  -q, --quiet, --silent   do not print \`checking...' messages
1521      --cache-file=FILE   cache test results in FILE [disabled]
1522  -C, --config-cache      alias for \`--cache-file=config.cache'
1523  -n, --no-create         do not create output files
1524      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1525
1526Installation directories:
1527  --prefix=PREFIX         install architecture-independent files in PREFIX
1528                          [$ac_default_prefix]
1529  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1530                          [PREFIX]
1531
1532By default, \`make install' will install all the files in
1533\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1534an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535for instance \`--prefix=\$HOME'.
1536
1537For better control, use the options below.
1538
1539Fine tuning of the installation directories:
1540  --bindir=DIR            user executables [EPREFIX/bin]
1541  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1542  --libexecdir=DIR        program executables [EPREFIX/libexec]
1543  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1544  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1545  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1546  --libdir=DIR            object code libraries [EPREFIX/lib]
1547  --includedir=DIR        C header files [PREFIX/include]
1548  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1549  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1550  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1551  --infodir=DIR           info documentation [DATAROOTDIR/info]
1552  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1553  --mandir=DIR            man documentation [DATAROOTDIR/man]
1554  --docdir=DIR            documentation root
1555                          [DATAROOTDIR/doc/xf86-video-sunleo]
1556  --htmldir=DIR           html documentation [DOCDIR]
1557  --dvidir=DIR            dvi documentation [DOCDIR]
1558  --pdfdir=DIR            pdf documentation [DOCDIR]
1559  --psdir=DIR             ps documentation [DOCDIR]
1560_ACEOF
1561
1562  cat <<\_ACEOF
1563
1564Program names:
1565  --program-prefix=PREFIX            prepend PREFIX to installed program names
1566  --program-suffix=SUFFIX            append SUFFIX to installed program names
1567  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1568
1569System types:
1570  --build=BUILD     configure for building on BUILD [guessed]
1571  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1572_ACEOF
1573fi
1574
1575if test -n "$ac_init_help"; then
1576  case $ac_init_help in
1577     short | recursive ) echo "Configuration of xf86-video-sunleo 1.2.0:";;
1578   esac
1579  cat <<\_ACEOF
1580
1581Optional Features:
1582  --disable-option-checking  ignore unrecognized --enable/--with options
1583  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1584  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1585  --enable-maintainer-mode  enable make rules and dependencies not useful
1586			  (and sometimes confusing) to the casual installer
1587  --enable-static[=PKGS]  build static libraries [default=no]
1588  --enable-shared[=PKGS]  build shared libraries [default=yes]
1589  --enable-fast-install[=PKGS]
1590                          optimize for fast installation [default=yes]
1591  --disable-dependency-tracking  speeds up one-time build
1592  --enable-dependency-tracking   do not reject slow dependency extractors
1593  --disable-libtool-lock  avoid locking (might break parallel builds)
1594
1595Optional Packages:
1596  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1597  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1598  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1599  --with-pic              try to use only PIC/non-PIC objects [default=use
1600                          both]
1601  --with-tags[=TAGS]      include additional configurations [automatic]
1602  --with-xorg-module-dir=DIR
1603                          Default xorg module directory
1604                          [default=$libdir/xorg/modules]
1605  --with-release-version=STRING
1606                          Use release version string in package name
1607
1608Some influential environment variables:
1609  CC          C compiler command
1610  CFLAGS      C compiler flags
1611  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1612              nonstandard directory <lib dir>
1613  LIBS        libraries to pass to the linker, e.g. -l<library>
1614  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1615              you have headers in a nonstandard directory <include dir>
1616  CPP         C preprocessor
1617  CXX         C++ compiler command
1618  CXXFLAGS    C++ compiler flags
1619  CXXCPP      C++ preprocessor
1620  F77         Fortran 77 compiler command
1621  FFLAGS      Fortran 77 compiler flags
1622  PKG_CONFIG  path to pkg-config utility
1623  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1624  XORG_LIBS   linker flags for XORG, overriding pkg-config
1625
1626Use these variables to override the choices made by `configure' or to help
1627it to find libraries and programs with nonstandard names/locations.
1628
1629Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1630_ACEOF
1631ac_status=$?
1632fi
1633
1634if test "$ac_init_help" = "recursive"; then
1635  # If there are subdirs, report their specific --help.
1636  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637    test -d "$ac_dir" ||
1638      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1639      continue
1640    ac_builddir=.
1641
1642case "$ac_dir" in
1643.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644*)
1645  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1646  # A ".." for each directory in $ac_dir_suffix.
1647  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1648  case $ac_top_builddir_sub in
1649  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651  esac ;;
1652esac
1653ac_abs_top_builddir=$ac_pwd
1654ac_abs_builddir=$ac_pwd$ac_dir_suffix
1655# for backward compatibility:
1656ac_top_builddir=$ac_top_build_prefix
1657
1658case $srcdir in
1659  .)  # We are building in place.
1660    ac_srcdir=.
1661    ac_top_srcdir=$ac_top_builddir_sub
1662    ac_abs_top_srcdir=$ac_pwd ;;
1663  [\\/]* | ?:[\\/]* )  # Absolute name.
1664    ac_srcdir=$srcdir$ac_dir_suffix;
1665    ac_top_srcdir=$srcdir
1666    ac_abs_top_srcdir=$srcdir ;;
1667  *) # Relative name.
1668    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1669    ac_top_srcdir=$ac_top_build_prefix$srcdir
1670    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1671esac
1672ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1673
1674    cd "$ac_dir" || { ac_status=$?; continue; }
1675    # Check for guested configure.
1676    if test -f "$ac_srcdir/configure.gnu"; then
1677      echo &&
1678      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679    elif test -f "$ac_srcdir/configure"; then
1680      echo &&
1681      $SHELL "$ac_srcdir/configure" --help=recursive
1682    else
1683      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1684    fi || ac_status=$?
1685    cd "$ac_pwd" || { ac_status=$?; break; }
1686  done
1687fi
1688
1689test -n "$ac_init_help" && exit $ac_status
1690if $ac_init_version; then
1691  cat <<\_ACEOF
1692xf86-video-sunleo configure 1.2.0
1693generated by GNU Autoconf 2.62
1694
1695Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16962002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1697This configure script is free software; the Free Software Foundation
1698gives unlimited permission to copy, distribute and modify it.
1699_ACEOF
1700  exit
1701fi
1702cat >config.log <<_ACEOF
1703This file contains any messages produced by compilers while
1704running configure, to aid debugging if configure makes a mistake.
1705
1706It was created by xf86-video-sunleo $as_me 1.2.0, which was
1707generated by GNU Autoconf 2.62.  Invocation command line was
1708
1709  $ $0 $@
1710
1711_ACEOF
1712exec 5>>config.log
1713{
1714cat <<_ASUNAME
1715## --------- ##
1716## Platform. ##
1717## --------- ##
1718
1719hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1720uname -m = `(uname -m) 2>/dev/null || echo unknown`
1721uname -r = `(uname -r) 2>/dev/null || echo unknown`
1722uname -s = `(uname -s) 2>/dev/null || echo unknown`
1723uname -v = `(uname -v) 2>/dev/null || echo unknown`
1724
1725/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1726/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1727
1728/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1729/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1730/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1731/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1732/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1733/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1734/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1735
1736_ASUNAME
1737
1738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739for as_dir in $PATH
1740do
1741  IFS=$as_save_IFS
1742  test -z "$as_dir" && as_dir=.
1743  $as_echo "PATH: $as_dir"
1744done
1745IFS=$as_save_IFS
1746
1747} >&5
1748
1749cat >&5 <<_ACEOF
1750
1751
1752## ----------- ##
1753## Core tests. ##
1754## ----------- ##
1755
1756_ACEOF
1757
1758
1759# Keep a trace of the command line.
1760# Strip out --no-create and --no-recursion so they do not pile up.
1761# Strip out --silent because we don't want to record it for future runs.
1762# Also quote any args containing shell meta-characters.
1763# Make two passes to allow for proper duplicate-argument suppression.
1764ac_configure_args=
1765ac_configure_args0=
1766ac_configure_args1=
1767ac_must_keep_next=false
1768for ac_pass in 1 2
1769do
1770  for ac_arg
1771  do
1772    case $ac_arg in
1773    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775    | -silent | --silent | --silen | --sile | --sil)
1776      continue ;;
1777    *\'*)
1778      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1779    esac
1780    case $ac_pass in
1781    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1782    2)
1783      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1784      if test $ac_must_keep_next = true; then
1785	ac_must_keep_next=false # Got value, back to normal.
1786      else
1787	case $ac_arg in
1788	  *=* | --config-cache | -C | -disable-* | --disable-* \
1789	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791	  | -with-* | --with-* | -without-* | --without-* | --x)
1792	    case "$ac_configure_args0 " in
1793	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1794	    esac
1795	    ;;
1796	  -* ) ac_must_keep_next=true ;;
1797	esac
1798      fi
1799      ac_configure_args="$ac_configure_args '$ac_arg'"
1800      ;;
1801    esac
1802  done
1803done
1804$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1805$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1806
1807# When interrupted or exit'd, cleanup temporary files, and complete
1808# config.log.  We remove comments because anyway the quotes in there
1809# would cause problems or look ugly.
1810# WARNING: Use '\'' to represent an apostrophe within the trap.
1811# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1812trap 'exit_status=$?
1813  # Save into config.log some information that might help in debugging.
1814  {
1815    echo
1816
1817    cat <<\_ASBOX
1818## ---------------- ##
1819## Cache variables. ##
1820## ---------------- ##
1821_ASBOX
1822    echo
1823    # The following way of writing the cache mishandles newlines in values,
1824(
1825  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826    eval ac_val=\$$ac_var
1827    case $ac_val in #(
1828    *${as_nl}*)
1829      case $ac_var in #(
1830      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1831$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1832      esac
1833      case $ac_var in #(
1834      _ | IFS | as_nl) ;; #(
1835      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1836      *) $as_unset $ac_var ;;
1837      esac ;;
1838    esac
1839  done
1840  (set) 2>&1 |
1841    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1842    *${as_nl}ac_space=\ *)
1843      sed -n \
1844	"s/'\''/'\''\\\\'\'''\''/g;
1845	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1846      ;; #(
1847    *)
1848      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1849      ;;
1850    esac |
1851    sort
1852)
1853    echo
1854
1855    cat <<\_ASBOX
1856## ----------------- ##
1857## Output variables. ##
1858## ----------------- ##
1859_ASBOX
1860    echo
1861    for ac_var in $ac_subst_vars
1862    do
1863      eval ac_val=\$$ac_var
1864      case $ac_val in
1865      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866      esac
1867      $as_echo "$ac_var='\''$ac_val'\''"
1868    done | sort
1869    echo
1870
1871    if test -n "$ac_subst_files"; then
1872      cat <<\_ASBOX
1873## ------------------- ##
1874## File substitutions. ##
1875## ------------------- ##
1876_ASBOX
1877      echo
1878      for ac_var in $ac_subst_files
1879      do
1880	eval ac_val=\$$ac_var
1881	case $ac_val in
1882	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1883	esac
1884	$as_echo "$ac_var='\''$ac_val'\''"
1885      done | sort
1886      echo
1887    fi
1888
1889    if test -s confdefs.h; then
1890      cat <<\_ASBOX
1891## ----------- ##
1892## confdefs.h. ##
1893## ----------- ##
1894_ASBOX
1895      echo
1896      cat confdefs.h
1897      echo
1898    fi
1899    test "$ac_signal" != 0 &&
1900      $as_echo "$as_me: caught signal $ac_signal"
1901    $as_echo "$as_me: exit $exit_status"
1902  } >&5
1903  rm -f core *.core core.conftest.* &&
1904    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1905    exit $exit_status
1906' 0
1907for ac_signal in 1 2 13 15; do
1908  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1909done
1910ac_signal=0
1911
1912# confdefs.h avoids OS command line length limits that DEFS can exceed.
1913rm -f -r conftest* confdefs.h
1914
1915# Predefined preprocessor variables.
1916
1917cat >>confdefs.h <<_ACEOF
1918#define PACKAGE_NAME "$PACKAGE_NAME"
1919_ACEOF
1920
1921
1922cat >>confdefs.h <<_ACEOF
1923#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1924_ACEOF
1925
1926
1927cat >>confdefs.h <<_ACEOF
1928#define PACKAGE_VERSION "$PACKAGE_VERSION"
1929_ACEOF
1930
1931
1932cat >>confdefs.h <<_ACEOF
1933#define PACKAGE_STRING "$PACKAGE_STRING"
1934_ACEOF
1935
1936
1937cat >>confdefs.h <<_ACEOF
1938#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1939_ACEOF
1940
1941
1942# Let the site file select an alternate cache file if it wants to.
1943# Prefer an explicitly selected file to automatically selected ones.
1944ac_site_file1=NONE
1945ac_site_file2=NONE
1946if test -n "$CONFIG_SITE"; then
1947  ac_site_file1=$CONFIG_SITE
1948elif test "x$prefix" != xNONE; then
1949  ac_site_file1=$prefix/share/config.site
1950  ac_site_file2=$prefix/etc/config.site
1951else
1952  ac_site_file1=$ac_default_prefix/share/config.site
1953  ac_site_file2=$ac_default_prefix/etc/config.site
1954fi
1955for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1956do
1957  test "x$ac_site_file" = xNONE && continue
1958  if test -r "$ac_site_file"; then
1959    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1960$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1961    sed 's/^/| /' "$ac_site_file" >&5
1962    . "$ac_site_file"
1963  fi
1964done
1965
1966if test -r "$cache_file"; then
1967  # Some versions of bash will fail to source /dev/null (special
1968  # files actually), so we avoid doing that.
1969  if test -f "$cache_file"; then
1970    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1971$as_echo "$as_me: loading cache $cache_file" >&6;}
1972    case $cache_file in
1973      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1974      *)                      . "./$cache_file";;
1975    esac
1976  fi
1977else
1978  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1979$as_echo "$as_me: creating cache $cache_file" >&6;}
1980  >$cache_file
1981fi
1982
1983# Check that the precious variables saved in the cache have kept the same
1984# value.
1985ac_cache_corrupted=false
1986for ac_var in $ac_precious_vars; do
1987  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1988  eval ac_new_set=\$ac_env_${ac_var}_set
1989  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1990  eval ac_new_val=\$ac_env_${ac_var}_value
1991  case $ac_old_set,$ac_new_set in
1992    set,)
1993      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1994$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1995      ac_cache_corrupted=: ;;
1996    ,set)
1997      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1998$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1999      ac_cache_corrupted=: ;;
2000    ,);;
2001    *)
2002      if test "x$ac_old_val" != "x$ac_new_val"; then
2003	# differences in whitespace do not lead to failure.
2004	ac_old_val_w=`echo x $ac_old_val`
2005	ac_new_val_w=`echo x $ac_new_val`
2006	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2007	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2008$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2009	  ac_cache_corrupted=:
2010	else
2011	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2012$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2013	  eval $ac_var=\$ac_old_val
2014	fi
2015	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2016$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2017	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2018$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2019      fi;;
2020  esac
2021  # Pass precious variables to config.status.
2022  if test "$ac_new_set" = set; then
2023    case $ac_new_val in
2024    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2025    *) ac_arg=$ac_var=$ac_new_val ;;
2026    esac
2027    case " $ac_configure_args " in
2028      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2029      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2030    esac
2031  fi
2032done
2033if $ac_cache_corrupted; then
2034  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2035$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2036  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2037$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2038   { (exit 1); exit 1; }; }
2039fi
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065ac_ext=c
2066ac_cpp='$CPP $CPPFLAGS'
2067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2069ac_compiler_gnu=$ac_cv_c_compiler_gnu
2070
2071
2072
2073
2074ac_config_headers="$ac_config_headers config.h"
2075
2076ac_aux_dir=
2077for ac_dir in . "$srcdir"/.; do
2078  if test -f "$ac_dir/install-sh"; then
2079    ac_aux_dir=$ac_dir
2080    ac_install_sh="$ac_aux_dir/install-sh -c"
2081    break
2082  elif test -f "$ac_dir/install.sh"; then
2083    ac_aux_dir=$ac_dir
2084    ac_install_sh="$ac_aux_dir/install.sh -c"
2085    break
2086  elif test -f "$ac_dir/shtool"; then
2087    ac_aux_dir=$ac_dir
2088    ac_install_sh="$ac_aux_dir/shtool install -c"
2089    break
2090  fi
2091done
2092if test -z "$ac_aux_dir"; then
2093  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2094$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2095   { (exit 1); exit 1; }; }
2096fi
2097
2098# These three variables are undocumented and unsupported,
2099# and are intended to be withdrawn in a future Autoconf release.
2100# They can cause serious problems if a builder's source tree is in a directory
2101# whose full name contains unusual characters.
2102ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2103ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2104ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2105
2106
2107
2108am__api_version='1.10'
2109
2110# Find a good install program.  We prefer a C program (faster),
2111# so one script is as good as another.  But avoid the broken or
2112# incompatible versions:
2113# SysV /etc/install, /usr/sbin/install
2114# SunOS /usr/etc/install
2115# IRIX /sbin/install
2116# AIX /bin/install
2117# AmigaOS /C/install, which installs bootblocks on floppy discs
2118# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2119# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2120# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2121# OS/2's system install, which has a completely different semantic
2122# ./install, which can be erroneously created by make from ./install.sh.
2123# Reject install programs that cannot install multiple files.
2124{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2125$as_echo_n "checking for a BSD-compatible install... " >&6; }
2126if test -z "$INSTALL"; then
2127if test "${ac_cv_path_install+set}" = set; then
2128  $as_echo_n "(cached) " >&6
2129else
2130  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131for as_dir in $PATH
2132do
2133  IFS=$as_save_IFS
2134  test -z "$as_dir" && as_dir=.
2135  # Account for people who put trailing slashes in PATH elements.
2136case $as_dir/ in
2137  ./ | .// | /cC/* | \
2138  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2139  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2140  /usr/ucb/* ) ;;
2141  *)
2142    # OSF1 and SCO ODT 3.0 have their own names for install.
2143    # Don't use installbsd from OSF since it installs stuff as root
2144    # by default.
2145    for ac_prog in ginstall scoinst install; do
2146      for ac_exec_ext in '' $ac_executable_extensions; do
2147	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2148	  if test $ac_prog = install &&
2149	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2150	    # AIX install.  It has an incompatible calling convention.
2151	    :
2152	  elif test $ac_prog = install &&
2153	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2154	    # program-specific install script used by HP pwplus--don't use.
2155	    :
2156	  else
2157	    rm -rf conftest.one conftest.two conftest.dir
2158	    echo one > conftest.one
2159	    echo two > conftest.two
2160	    mkdir conftest.dir
2161	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2162	      test -s conftest.one && test -s conftest.two &&
2163	      test -s conftest.dir/conftest.one &&
2164	      test -s conftest.dir/conftest.two
2165	    then
2166	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2167	      break 3
2168	    fi
2169	  fi
2170	fi
2171      done
2172    done
2173    ;;
2174esac
2175
2176done
2177IFS=$as_save_IFS
2178
2179rm -rf conftest.one conftest.two conftest.dir
2180
2181fi
2182  if test "${ac_cv_path_install+set}" = set; then
2183    INSTALL=$ac_cv_path_install
2184  else
2185    # As a last resort, use the slow shell script.  Don't cache a
2186    # value for INSTALL within a source directory, because that will
2187    # break other packages using the cache if that directory is
2188    # removed, or if the value is a relative name.
2189    INSTALL=$ac_install_sh
2190  fi
2191fi
2192{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2193$as_echo "$INSTALL" >&6; }
2194
2195# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2196# It thinks the first close brace ends the variable substitution.
2197test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2198
2199test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2200
2201test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2202
2203{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2204$as_echo_n "checking whether build environment is sane... " >&6; }
2205# Just in case
2206sleep 1
2207echo timestamp > conftest.file
2208# Do `set' in a subshell so we don't clobber the current shell's
2209# arguments.  Must try -L first in case configure is actually a
2210# symlink; some systems play weird games with the mod time of symlinks
2211# (eg FreeBSD returns the mod time of the symlink's containing
2212# directory).
2213if (
2214   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2215   if test "$*" = "X"; then
2216      # -L didn't work.
2217      set X `ls -t $srcdir/configure conftest.file`
2218   fi
2219   rm -f conftest.file
2220   if test "$*" != "X $srcdir/configure conftest.file" \
2221      && test "$*" != "X conftest.file $srcdir/configure"; then
2222
2223      # If neither matched, then we have a broken ls.  This can happen
2224      # if, for instance, CONFIG_SHELL is bash and it inherits a
2225      # broken ls alias from the environment.  This has actually
2226      # happened.  Such a system could not be considered "sane".
2227      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2228alias in your environment" >&5
2229$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2230alias in your environment" >&2;}
2231   { (exit 1); exit 1; }; }
2232   fi
2233
2234   test "$2" = conftest.file
2235   )
2236then
2237   # Ok.
2238   :
2239else
2240   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2241Check your system clock" >&5
2242$as_echo "$as_me: error: newly created file is older than distributed files!
2243Check your system clock" >&2;}
2244   { (exit 1); exit 1; }; }
2245fi
2246{ $as_echo "$as_me:$LINENO: result: yes" >&5
2247$as_echo "yes" >&6; }
2248test "$program_prefix" != NONE &&
2249  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2250# Use a double $ so make ignores it.
2251test "$program_suffix" != NONE &&
2252  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2253# Double any \ or $.
2254# By default was `s,x,x', remove it if useless.
2255ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2256program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2257
2258# expand $ac_aux_dir to an absolute path
2259am_aux_dir=`cd $ac_aux_dir && pwd`
2260
2261test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2262# Use eval to expand $SHELL
2263if eval "$MISSING --run true"; then
2264  am_missing_run="$MISSING --run "
2265else
2266  am_missing_run=
2267  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2268$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2269fi
2270
2271{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2272$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2273if test -z "$MKDIR_P"; then
2274  if test "${ac_cv_path_mkdir+set}" = set; then
2275  $as_echo_n "(cached) " >&6
2276else
2277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2279do
2280  IFS=$as_save_IFS
2281  test -z "$as_dir" && as_dir=.
2282  for ac_prog in mkdir gmkdir; do
2283	 for ac_exec_ext in '' $ac_executable_extensions; do
2284	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2285	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2286	     'mkdir (GNU coreutils) '* | \
2287	     'mkdir (coreutils) '* | \
2288	     'mkdir (fileutils) '4.1*)
2289	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2290	       break 3;;
2291	   esac
2292	 done
2293       done
2294done
2295IFS=$as_save_IFS
2296
2297fi
2298
2299  if test "${ac_cv_path_mkdir+set}" = set; then
2300    MKDIR_P="$ac_cv_path_mkdir -p"
2301  else
2302    # As a last resort, use the slow shell script.  Don't cache a
2303    # value for MKDIR_P within a source directory, because that will
2304    # break other packages using the cache if that directory is
2305    # removed, or if the value is a relative name.
2306    test -d ./--version && rmdir ./--version
2307    MKDIR_P="$ac_install_sh -d"
2308  fi
2309fi
2310{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2311$as_echo "$MKDIR_P" >&6; }
2312
2313mkdir_p="$MKDIR_P"
2314case $mkdir_p in
2315  [\\/$]* | ?:[\\/]*) ;;
2316  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2317esac
2318
2319for ac_prog in gawk mawk nawk awk
2320do
2321  # Extract the first word of "$ac_prog", so it can be a program name with args.
2322set dummy $ac_prog; ac_word=$2
2323{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2324$as_echo_n "checking for $ac_word... " >&6; }
2325if test "${ac_cv_prog_AWK+set}" = set; then
2326  $as_echo_n "(cached) " >&6
2327else
2328  if test -n "$AWK"; then
2329  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2330else
2331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332for as_dir in $PATH
2333do
2334  IFS=$as_save_IFS
2335  test -z "$as_dir" && as_dir=.
2336  for ac_exec_ext in '' $ac_executable_extensions; do
2337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2338    ac_cv_prog_AWK="$ac_prog"
2339    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340    break 2
2341  fi
2342done
2343done
2344IFS=$as_save_IFS
2345
2346fi
2347fi
2348AWK=$ac_cv_prog_AWK
2349if test -n "$AWK"; then
2350  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2351$as_echo "$AWK" >&6; }
2352else
2353  { $as_echo "$as_me:$LINENO: result: no" >&5
2354$as_echo "no" >&6; }
2355fi
2356
2357
2358  test -n "$AWK" && break
2359done
2360
2361{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2362$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2363set x ${MAKE-make}
2364ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2365if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2366  $as_echo_n "(cached) " >&6
2367else
2368  cat >conftest.make <<\_ACEOF
2369SHELL = /bin/sh
2370all:
2371	@echo '@@@%%%=$(MAKE)=@@@%%%'
2372_ACEOF
2373# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2374case `${MAKE-make} -f conftest.make 2>/dev/null` in
2375  *@@@%%%=?*=@@@%%%*)
2376    eval ac_cv_prog_make_${ac_make}_set=yes;;
2377  *)
2378    eval ac_cv_prog_make_${ac_make}_set=no;;
2379esac
2380rm -f conftest.make
2381fi
2382if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2383  { $as_echo "$as_me:$LINENO: result: yes" >&5
2384$as_echo "yes" >&6; }
2385  SET_MAKE=
2386else
2387  { $as_echo "$as_me:$LINENO: result: no" >&5
2388$as_echo "no" >&6; }
2389  SET_MAKE="MAKE=${MAKE-make}"
2390fi
2391
2392rm -rf .tst 2>/dev/null
2393mkdir .tst 2>/dev/null
2394if test -d .tst; then
2395  am__leading_dot=.
2396else
2397  am__leading_dot=_
2398fi
2399rmdir .tst 2>/dev/null
2400
2401if test "`cd $srcdir && pwd`" != "`pwd`"; then
2402  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2403  # is not polluted with repeated "-I."
2404  am__isrc=' -I$(srcdir)'
2405  # test to see if srcdir already configured
2406  if test -f $srcdir/config.status; then
2407    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2408$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2409   { (exit 1); exit 1; }; }
2410  fi
2411fi
2412
2413# test whether we have cygpath
2414if test -z "$CYGPATH_W"; then
2415  if (cygpath --version) >/dev/null 2>/dev/null; then
2416    CYGPATH_W='cygpath -w'
2417  else
2418    CYGPATH_W=echo
2419  fi
2420fi
2421
2422
2423# Define the identity of the package.
2424 PACKAGE='xf86-video-sunleo'
2425 VERSION='1.2.0'
2426
2427
2428cat >>confdefs.h <<_ACEOF
2429#define PACKAGE "$PACKAGE"
2430_ACEOF
2431
2432
2433cat >>confdefs.h <<_ACEOF
2434#define VERSION "$VERSION"
2435_ACEOF
2436
2437# Some tools Automake needs.
2438
2439ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2440
2441
2442AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2443
2444
2445AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2446
2447
2448AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2449
2450
2451MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2452
2453install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2454
2455# Installed binaries are usually stripped using `strip' when the user
2456# run `make install-strip'.  However `strip' might not be the right
2457# tool to use in cross-compilation environments, therefore Automake
2458# will honor the `STRIP' environment variable to overrule this program.
2459if test "$cross_compiling" != no; then
2460  if test -n "$ac_tool_prefix"; then
2461  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2462set dummy ${ac_tool_prefix}strip; ac_word=$2
2463{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2464$as_echo_n "checking for $ac_word... " >&6; }
2465if test "${ac_cv_prog_STRIP+set}" = set; then
2466  $as_echo_n "(cached) " >&6
2467else
2468  if test -n "$STRIP"; then
2469  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2470else
2471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472for as_dir in $PATH
2473do
2474  IFS=$as_save_IFS
2475  test -z "$as_dir" && as_dir=.
2476  for ac_exec_ext in '' $ac_executable_extensions; do
2477  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2479    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480    break 2
2481  fi
2482done
2483done
2484IFS=$as_save_IFS
2485
2486fi
2487fi
2488STRIP=$ac_cv_prog_STRIP
2489if test -n "$STRIP"; then
2490  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2491$as_echo "$STRIP" >&6; }
2492else
2493  { $as_echo "$as_me:$LINENO: result: no" >&5
2494$as_echo "no" >&6; }
2495fi
2496
2497
2498fi
2499if test -z "$ac_cv_prog_STRIP"; then
2500  ac_ct_STRIP=$STRIP
2501  # Extract the first word of "strip", so it can be a program name with args.
2502set dummy strip; ac_word=$2
2503{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2504$as_echo_n "checking for $ac_word... " >&6; }
2505if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2506  $as_echo_n "(cached) " >&6
2507else
2508  if test -n "$ac_ct_STRIP"; then
2509  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2510else
2511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514  IFS=$as_save_IFS
2515  test -z "$as_dir" && as_dir=.
2516  for ac_exec_ext in '' $ac_executable_extensions; do
2517  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2518    ac_cv_prog_ac_ct_STRIP="strip"
2519    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520    break 2
2521  fi
2522done
2523done
2524IFS=$as_save_IFS
2525
2526fi
2527fi
2528ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2529if test -n "$ac_ct_STRIP"; then
2530  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2531$as_echo "$ac_ct_STRIP" >&6; }
2532else
2533  { $as_echo "$as_me:$LINENO: result: no" >&5
2534$as_echo "no" >&6; }
2535fi
2536
2537  if test "x$ac_ct_STRIP" = x; then
2538    STRIP=":"
2539  else
2540    case $cross_compiling:$ac_tool_warned in
2541yes:)
2542{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2543whose name does not start with the host triplet.  If you think this
2544configuration is useful to you, please write to autoconf@gnu.org." >&5
2545$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2546whose name does not start with the host triplet.  If you think this
2547configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2548ac_tool_warned=yes ;;
2549esac
2550    STRIP=$ac_ct_STRIP
2551  fi
2552else
2553  STRIP="$ac_cv_prog_STRIP"
2554fi
2555
2556fi
2557INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2558
2559# We need awk for the "check" target.  The system "awk" is bad on
2560# some platforms.
2561# Always define AMTAR for backward compatibility.
2562
2563AMTAR=${AMTAR-"${am_missing_run}tar"}
2564
2565am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2566
2567
2568
2569
2570
2571
2572{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2573$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2574    # Check whether --enable-maintainer-mode was given.
2575if test "${enable_maintainer_mode+set}" = set; then
2576  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2577else
2578  USE_MAINTAINER_MODE=no
2579fi
2580
2581  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2582$as_echo "$USE_MAINTAINER_MODE" >&6; }
2583   if test $USE_MAINTAINER_MODE = yes; then
2584  MAINTAINER_MODE_TRUE=
2585  MAINTAINER_MODE_FALSE='#'
2586else
2587  MAINTAINER_MODE_TRUE='#'
2588  MAINTAINER_MODE_FALSE=
2589fi
2590
2591  MAINT=$MAINTAINER_MODE_TRUE
2592
2593
2594
2595# Checks for programs.
2596# Check whether --enable-static was given.
2597if test "${enable_static+set}" = set; then
2598  enableval=$enable_static; p=${PACKAGE-default}
2599    case $enableval in
2600    yes) enable_static=yes ;;
2601    no) enable_static=no ;;
2602    *)
2603     enable_static=no
2604      # Look at the argument we got.  We use all the common list separators.
2605      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2606      for pkg in $enableval; do
2607	IFS="$lt_save_ifs"
2608	if test "X$pkg" = "X$p"; then
2609	  enable_static=yes
2610	fi
2611      done
2612      IFS="$lt_save_ifs"
2613      ;;
2614    esac
2615else
2616  enable_static=no
2617fi
2618
2619
2620
2621# Check whether --enable-shared was given.
2622if test "${enable_shared+set}" = set; then
2623  enableval=$enable_shared; p=${PACKAGE-default}
2624    case $enableval in
2625    yes) enable_shared=yes ;;
2626    no) enable_shared=no ;;
2627    *)
2628      enable_shared=no
2629      # Look at the argument we got.  We use all the common list separators.
2630      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2631      for pkg in $enableval; do
2632	IFS="$lt_save_ifs"
2633	if test "X$pkg" = "X$p"; then
2634	  enable_shared=yes
2635	fi
2636      done
2637      IFS="$lt_save_ifs"
2638      ;;
2639    esac
2640else
2641  enable_shared=yes
2642fi
2643
2644
2645# Check whether --enable-fast-install was given.
2646if test "${enable_fast_install+set}" = set; then
2647  enableval=$enable_fast_install; p=${PACKAGE-default}
2648    case $enableval in
2649    yes) enable_fast_install=yes ;;
2650    no) enable_fast_install=no ;;
2651    *)
2652      enable_fast_install=no
2653      # Look at the argument we got.  We use all the common list separators.
2654      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2655      for pkg in $enableval; do
2656	IFS="$lt_save_ifs"
2657	if test "X$pkg" = "X$p"; then
2658	  enable_fast_install=yes
2659	fi
2660      done
2661      IFS="$lt_save_ifs"
2662      ;;
2663    esac
2664else
2665  enable_fast_install=yes
2666fi
2667
2668
2669# Make sure we can run config.sub.
2670$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2671  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2672$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2673   { (exit 1); exit 1; }; }
2674
2675{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2676$as_echo_n "checking build system type... " >&6; }
2677if test "${ac_cv_build+set}" = set; then
2678  $as_echo_n "(cached) " >&6
2679else
2680  ac_build_alias=$build_alias
2681test "x$ac_build_alias" = x &&
2682  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2683test "x$ac_build_alias" = x &&
2684  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2685$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2686   { (exit 1); exit 1; }; }
2687ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2688  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2689$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2690   { (exit 1); exit 1; }; }
2691
2692fi
2693{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2694$as_echo "$ac_cv_build" >&6; }
2695case $ac_cv_build in
2696*-*-*) ;;
2697*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2698$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2699   { (exit 1); exit 1; }; };;
2700esac
2701build=$ac_cv_build
2702ac_save_IFS=$IFS; IFS='-'
2703set x $ac_cv_build
2704shift
2705build_cpu=$1
2706build_vendor=$2
2707shift; shift
2708# Remember, the first character of IFS is used to create $*,
2709# except with old shells:
2710build_os=$*
2711IFS=$ac_save_IFS
2712case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2713
2714
2715{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2716$as_echo_n "checking host system type... " >&6; }
2717if test "${ac_cv_host+set}" = set; then
2718  $as_echo_n "(cached) " >&6
2719else
2720  if test "x$host_alias" = x; then
2721  ac_cv_host=$ac_cv_build
2722else
2723  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2724    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2725$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2726   { (exit 1); exit 1; }; }
2727fi
2728
2729fi
2730{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2731$as_echo "$ac_cv_host" >&6; }
2732case $ac_cv_host in
2733*-*-*) ;;
2734*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2735$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2736   { (exit 1); exit 1; }; };;
2737esac
2738host=$ac_cv_host
2739ac_save_IFS=$IFS; IFS='-'
2740set x $ac_cv_host
2741shift
2742host_cpu=$1
2743host_vendor=$2
2744shift; shift
2745# Remember, the first character of IFS is used to create $*,
2746# except with old shells:
2747host_os=$*
2748IFS=$ac_save_IFS
2749case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2750
2751
2752DEPDIR="${am__leading_dot}deps"
2753
2754ac_config_commands="$ac_config_commands depfiles"
2755
2756
2757am_make=${MAKE-make}
2758cat > confinc << 'END'
2759am__doit:
2760	@echo done
2761.PHONY: am__doit
2762END
2763# If we don't find an include directive, just comment out the code.
2764{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2765$as_echo_n "checking for style of include used by $am_make... " >&6; }
2766am__include="#"
2767am__quote=
2768_am_result=none
2769# First try GNU make style include.
2770echo "include confinc" > confmf
2771# We grep out `Entering directory' and `Leaving directory'
2772# messages which can occur if `w' ends up in MAKEFLAGS.
2773# In particular we don't look at `^make:' because GNU make might
2774# be invoked under some other name (usually "gmake"), in which
2775# case it prints its new name instead of `make'.
2776if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2777   am__include=include
2778   am__quote=
2779   _am_result=GNU
2780fi
2781# Now try BSD make style include.
2782if test "$am__include" = "#"; then
2783   echo '.include "confinc"' > confmf
2784   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2785      am__include=.include
2786      am__quote="\""
2787      _am_result=BSD
2788   fi
2789fi
2790
2791
2792{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2793$as_echo "$_am_result" >&6; }
2794rm -f confinc confmf
2795
2796# Check whether --enable-dependency-tracking was given.
2797if test "${enable_dependency_tracking+set}" = set; then
2798  enableval=$enable_dependency_tracking;
2799fi
2800
2801if test "x$enable_dependency_tracking" != xno; then
2802  am_depcomp="$ac_aux_dir/depcomp"
2803  AMDEPBACKSLASH='\'
2804fi
2805 if test "x$enable_dependency_tracking" != xno; then
2806  AMDEP_TRUE=
2807  AMDEP_FALSE='#'
2808else
2809  AMDEP_TRUE='#'
2810  AMDEP_FALSE=
2811fi
2812
2813
2814ac_ext=c
2815ac_cpp='$CPP $CPPFLAGS'
2816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819if test -n "$ac_tool_prefix"; then
2820  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2821set dummy ${ac_tool_prefix}gcc; ac_word=$2
2822{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2823$as_echo_n "checking for $ac_word... " >&6; }
2824if test "${ac_cv_prog_CC+set}" = set; then
2825  $as_echo_n "(cached) " >&6
2826else
2827  if test -n "$CC"; then
2828  ac_cv_prog_CC="$CC" # Let the user override the test.
2829else
2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833  IFS=$as_save_IFS
2834  test -z "$as_dir" && as_dir=.
2835  for ac_exec_ext in '' $ac_executable_extensions; do
2836  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2837    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2838    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839    break 2
2840  fi
2841done
2842done
2843IFS=$as_save_IFS
2844
2845fi
2846fi
2847CC=$ac_cv_prog_CC
2848if test -n "$CC"; then
2849  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2850$as_echo "$CC" >&6; }
2851else
2852  { $as_echo "$as_me:$LINENO: result: no" >&5
2853$as_echo "no" >&6; }
2854fi
2855
2856
2857fi
2858if test -z "$ac_cv_prog_CC"; then
2859  ac_ct_CC=$CC
2860  # Extract the first word of "gcc", so it can be a program name with args.
2861set dummy gcc; ac_word=$2
2862{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2863$as_echo_n "checking for $ac_word... " >&6; }
2864if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2865  $as_echo_n "(cached) " >&6
2866else
2867  if test -n "$ac_ct_CC"; then
2868  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2869else
2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871for as_dir in $PATH
2872do
2873  IFS=$as_save_IFS
2874  test -z "$as_dir" && as_dir=.
2875  for ac_exec_ext in '' $ac_executable_extensions; do
2876  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877    ac_cv_prog_ac_ct_CC="gcc"
2878    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879    break 2
2880  fi
2881done
2882done
2883IFS=$as_save_IFS
2884
2885fi
2886fi
2887ac_ct_CC=$ac_cv_prog_ac_ct_CC
2888if test -n "$ac_ct_CC"; then
2889  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2890$as_echo "$ac_ct_CC" >&6; }
2891else
2892  { $as_echo "$as_me:$LINENO: result: no" >&5
2893$as_echo "no" >&6; }
2894fi
2895
2896  if test "x$ac_ct_CC" = x; then
2897    CC=""
2898  else
2899    case $cross_compiling:$ac_tool_warned in
2900yes:)
2901{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2902whose name does not start with the host triplet.  If you think this
2903configuration is useful to you, please write to autoconf@gnu.org." >&5
2904$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2905whose name does not start with the host triplet.  If you think this
2906configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2907ac_tool_warned=yes ;;
2908esac
2909    CC=$ac_ct_CC
2910  fi
2911else
2912  CC="$ac_cv_prog_CC"
2913fi
2914
2915if test -z "$CC"; then
2916          if test -n "$ac_tool_prefix"; then
2917    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2918set dummy ${ac_tool_prefix}cc; ac_word=$2
2919{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2920$as_echo_n "checking for $ac_word... " >&6; }
2921if test "${ac_cv_prog_CC+set}" = set; then
2922  $as_echo_n "(cached) " >&6
2923else
2924  if test -n "$CC"; then
2925  ac_cv_prog_CC="$CC" # Let the user override the test.
2926else
2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928for as_dir in $PATH
2929do
2930  IFS=$as_save_IFS
2931  test -z "$as_dir" && as_dir=.
2932  for ac_exec_ext in '' $ac_executable_extensions; do
2933  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2934    ac_cv_prog_CC="${ac_tool_prefix}cc"
2935    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936    break 2
2937  fi
2938done
2939done
2940IFS=$as_save_IFS
2941
2942fi
2943fi
2944CC=$ac_cv_prog_CC
2945if test -n "$CC"; then
2946  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2947$as_echo "$CC" >&6; }
2948else
2949  { $as_echo "$as_me:$LINENO: result: no" >&5
2950$as_echo "no" >&6; }
2951fi
2952
2953
2954  fi
2955fi
2956if test -z "$CC"; then
2957  # Extract the first word of "cc", so it can be a program name with args.
2958set dummy cc; ac_word=$2
2959{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2960$as_echo_n "checking for $ac_word... " >&6; }
2961if test "${ac_cv_prog_CC+set}" = set; then
2962  $as_echo_n "(cached) " >&6
2963else
2964  if test -n "$CC"; then
2965  ac_cv_prog_CC="$CC" # Let the user override the test.
2966else
2967  ac_prog_rejected=no
2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969for as_dir in $PATH
2970do
2971  IFS=$as_save_IFS
2972  test -z "$as_dir" && as_dir=.
2973  for ac_exec_ext in '' $ac_executable_extensions; do
2974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2976       ac_prog_rejected=yes
2977       continue
2978     fi
2979    ac_cv_prog_CC="cc"
2980    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2981    break 2
2982  fi
2983done
2984done
2985IFS=$as_save_IFS
2986
2987if test $ac_prog_rejected = yes; then
2988  # We found a bogon in the path, so make sure we never use it.
2989  set dummy $ac_cv_prog_CC
2990  shift
2991  if test $# != 0; then
2992    # We chose a different compiler from the bogus one.
2993    # However, it has the same basename, so the bogon will be chosen
2994    # first if we set CC to just the basename; use the full file name.
2995    shift
2996    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2997  fi
2998fi
2999fi
3000fi
3001CC=$ac_cv_prog_CC
3002if test -n "$CC"; then
3003  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3004$as_echo "$CC" >&6; }
3005else
3006  { $as_echo "$as_me:$LINENO: result: no" >&5
3007$as_echo "no" >&6; }
3008fi
3009
3010
3011fi
3012if test -z "$CC"; then
3013  if test -n "$ac_tool_prefix"; then
3014  for ac_prog in cl.exe
3015  do
3016    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3017set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3018{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3019$as_echo_n "checking for $ac_word... " >&6; }
3020if test "${ac_cv_prog_CC+set}" = set; then
3021  $as_echo_n "(cached) " >&6
3022else
3023  if test -n "$CC"; then
3024  ac_cv_prog_CC="$CC" # Let the user override the test.
3025else
3026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027for as_dir in $PATH
3028do
3029  IFS=$as_save_IFS
3030  test -z "$as_dir" && as_dir=.
3031  for ac_exec_ext in '' $ac_executable_extensions; do
3032  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3034    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035    break 2
3036  fi
3037done
3038done
3039IFS=$as_save_IFS
3040
3041fi
3042fi
3043CC=$ac_cv_prog_CC
3044if test -n "$CC"; then
3045  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3046$as_echo "$CC" >&6; }
3047else
3048  { $as_echo "$as_me:$LINENO: result: no" >&5
3049$as_echo "no" >&6; }
3050fi
3051
3052
3053    test -n "$CC" && break
3054  done
3055fi
3056if test -z "$CC"; then
3057  ac_ct_CC=$CC
3058  for ac_prog in cl.exe
3059do
3060  # Extract the first word of "$ac_prog", so it can be a program name with args.
3061set dummy $ac_prog; ac_word=$2
3062{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3063$as_echo_n "checking for $ac_word... " >&6; }
3064if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3065  $as_echo_n "(cached) " >&6
3066else
3067  if test -n "$ac_ct_CC"; then
3068  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3069else
3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071for as_dir in $PATH
3072do
3073  IFS=$as_save_IFS
3074  test -z "$as_dir" && as_dir=.
3075  for ac_exec_ext in '' $ac_executable_extensions; do
3076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077    ac_cv_prog_ac_ct_CC="$ac_prog"
3078    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079    break 2
3080  fi
3081done
3082done
3083IFS=$as_save_IFS
3084
3085fi
3086fi
3087ac_ct_CC=$ac_cv_prog_ac_ct_CC
3088if test -n "$ac_ct_CC"; then
3089  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3090$as_echo "$ac_ct_CC" >&6; }
3091else
3092  { $as_echo "$as_me:$LINENO: result: no" >&5
3093$as_echo "no" >&6; }
3094fi
3095
3096
3097  test -n "$ac_ct_CC" && break
3098done
3099
3100  if test "x$ac_ct_CC" = x; then
3101    CC=""
3102  else
3103    case $cross_compiling:$ac_tool_warned in
3104yes:)
3105{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3106whose name does not start with the host triplet.  If you think this
3107configuration is useful to you, please write to autoconf@gnu.org." >&5
3108$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3109whose name does not start with the host triplet.  If you think this
3110configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3111ac_tool_warned=yes ;;
3112esac
3113    CC=$ac_ct_CC
3114  fi
3115fi
3116
3117fi
3118
3119
3120test -z "$CC" && { { $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: C compiler cannot create executables
3255See \`config.log' for more details." >&5
3256$as_echo "$as_me: error: C compiler cannot create executables
3257See \`config.log' for more details." >&2;}
3258   { (exit 77); exit 77; }; }
3259fi
3260
3261ac_exeext=$ac_cv_exeext
3262
3263# Check that the compiler produces executables we can run.  If not, either
3264# the compiler is broken, or we cross compile.
3265{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3266$as_echo_n "checking whether the C compiler works... " >&6; }
3267# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3268# If not cross compiling, check that we can run a simple program.
3269if test "$cross_compiling" != yes; then
3270  if { ac_try='./$ac_file'
3271  { (case "(($ac_try" in
3272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273  *) ac_try_echo=$ac_try;;
3274esac
3275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3276$as_echo "$ac_try_echo") >&5
3277  (eval "$ac_try") 2>&5
3278  ac_status=$?
3279  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280  (exit $ac_status); }; }; then
3281    cross_compiling=no
3282  else
3283    if test "$cross_compiling" = maybe; then
3284	cross_compiling=yes
3285    else
3286	{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3287If you meant to cross compile, use \`--host'.
3288See \`config.log' for more details." >&5
3289$as_echo "$as_me: error: cannot run C compiled programs.
3290If you meant to cross compile, use \`--host'.
3291See \`config.log' for more details." >&2;}
3292   { (exit 1); exit 1; }; }
3293    fi
3294  fi
3295fi
3296{ $as_echo "$as_me:$LINENO: result: yes" >&5
3297$as_echo "yes" >&6; }
3298
3299rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3300ac_clean_files=$ac_clean_files_save
3301# Check that the compiler produces executables we can run.  If not, either
3302# the compiler is broken, or we cross compile.
3303{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3304$as_echo_n "checking whether we are cross compiling... " >&6; }
3305{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3306$as_echo "$cross_compiling" >&6; }
3307
3308{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3309$as_echo_n "checking for suffix of executables... " >&6; }
3310if { (ac_try="$ac_link"
3311case "(($ac_try" in
3312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313  *) ac_try_echo=$ac_try;;
3314esac
3315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3316$as_echo "$ac_try_echo") >&5
3317  (eval "$ac_link") 2>&5
3318  ac_status=$?
3319  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320  (exit $ac_status); }; then
3321  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3322# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3323# work properly (i.e., refer to `conftest.exe'), while it won't with
3324# `rm'.
3325for ac_file in conftest.exe conftest conftest.*; do
3326  test -f "$ac_file" || continue
3327  case $ac_file in
3328    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3329    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3330	  break;;
3331    * ) break;;
3332  esac
3333done
3334else
3335  { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3336See \`config.log' for more details." >&5
3337$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3338See \`config.log' for more details." >&2;}
3339   { (exit 1); exit 1; }; }
3340fi
3341
3342rm -f conftest$ac_cv_exeext
3343{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3344$as_echo "$ac_cv_exeext" >&6; }
3345
3346rm -f conftest.$ac_ext
3347EXEEXT=$ac_cv_exeext
3348ac_exeext=$EXEEXT
3349{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3350$as_echo_n "checking for suffix of object files... " >&6; }
3351if test "${ac_cv_objext+set}" = set; then
3352  $as_echo_n "(cached) " >&6
3353else
3354  cat >conftest.$ac_ext <<_ACEOF
3355/* confdefs.h.  */
3356_ACEOF
3357cat confdefs.h >>conftest.$ac_ext
3358cat >>conftest.$ac_ext <<_ACEOF
3359/* end confdefs.h.  */
3360
3361int
3362main ()
3363{
3364
3365  ;
3366  return 0;
3367}
3368_ACEOF
3369rm -f conftest.o conftest.obj
3370if { (ac_try="$ac_compile"
3371case "(($ac_try" in
3372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373  *) ac_try_echo=$ac_try;;
3374esac
3375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3376$as_echo "$ac_try_echo") >&5
3377  (eval "$ac_compile") 2>&5
3378  ac_status=$?
3379  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380  (exit $ac_status); }; then
3381  for ac_file in conftest.o conftest.obj conftest.*; do
3382  test -f "$ac_file" || continue;
3383  case $ac_file in
3384    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3385    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3386       break;;
3387  esac
3388done
3389else
3390  $as_echo "$as_me: failed program was:" >&5
3391sed 's/^/| /' conftest.$ac_ext >&5
3392
3393{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3394See \`config.log' for more details." >&5
3395$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3396See \`config.log' for more details." >&2;}
3397   { (exit 1); exit 1; }; }
3398fi
3399
3400rm -f conftest.$ac_cv_objext conftest.$ac_ext
3401fi
3402{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3403$as_echo "$ac_cv_objext" >&6; }
3404OBJEXT=$ac_cv_objext
3405ac_objext=$OBJEXT
3406{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3407$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3408if test "${ac_cv_c_compiler_gnu+set}" = set; then
3409  $as_echo_n "(cached) " >&6
3410else
3411  cat >conftest.$ac_ext <<_ACEOF
3412/* confdefs.h.  */
3413_ACEOF
3414cat confdefs.h >>conftest.$ac_ext
3415cat >>conftest.$ac_ext <<_ACEOF
3416/* end confdefs.h.  */
3417
3418int
3419main ()
3420{
3421#ifndef __GNUC__
3422       choke me
3423#endif
3424
3425  ;
3426  return 0;
3427}
3428_ACEOF
3429rm -f conftest.$ac_objext
3430if { (ac_try="$ac_compile"
3431case "(($ac_try" in
3432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433  *) ac_try_echo=$ac_try;;
3434esac
3435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3436$as_echo "$ac_try_echo") >&5
3437  (eval "$ac_compile") 2>conftest.er1
3438  ac_status=$?
3439  grep -v '^ *+' conftest.er1 >conftest.err
3440  rm -f conftest.er1
3441  cat conftest.err >&5
3442  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443  (exit $ac_status); } && {
3444	 test -z "$ac_c_werror_flag" ||
3445	 test ! -s conftest.err
3446       } && test -s conftest.$ac_objext; then
3447  ac_compiler_gnu=yes
3448else
3449  $as_echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
3451
3452	ac_compiler_gnu=no
3453fi
3454
3455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456ac_cv_c_compiler_gnu=$ac_compiler_gnu
3457
3458fi
3459{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3460$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3461if test $ac_compiler_gnu = yes; then
3462  GCC=yes
3463else
3464  GCC=
3465fi
3466ac_test_CFLAGS=${CFLAGS+set}
3467ac_save_CFLAGS=$CFLAGS
3468{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3469$as_echo_n "checking whether $CC accepts -g... " >&6; }
3470if test "${ac_cv_prog_cc_g+set}" = set; then
3471  $as_echo_n "(cached) " >&6
3472else
3473  ac_save_c_werror_flag=$ac_c_werror_flag
3474   ac_c_werror_flag=yes
3475   ac_cv_prog_cc_g=no
3476   CFLAGS="-g"
3477   cat >conftest.$ac_ext <<_ACEOF
3478/* confdefs.h.  */
3479_ACEOF
3480cat confdefs.h >>conftest.$ac_ext
3481cat >>conftest.$ac_ext <<_ACEOF
3482/* end confdefs.h.  */
3483
3484int
3485main ()
3486{
3487
3488  ;
3489  return 0;
3490}
3491_ACEOF
3492rm -f conftest.$ac_objext
3493if { (ac_try="$ac_compile"
3494case "(($ac_try" in
3495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496  *) ac_try_echo=$ac_try;;
3497esac
3498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3499$as_echo "$ac_try_echo") >&5
3500  (eval "$ac_compile") 2>conftest.er1
3501  ac_status=$?
3502  grep -v '^ *+' conftest.er1 >conftest.err
3503  rm -f conftest.er1
3504  cat conftest.err >&5
3505  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506  (exit $ac_status); } && {
3507	 test -z "$ac_c_werror_flag" ||
3508	 test ! -s conftest.err
3509       } && test -s conftest.$ac_objext; then
3510  ac_cv_prog_cc_g=yes
3511else
3512  $as_echo "$as_me: failed program was:" >&5
3513sed 's/^/| /' conftest.$ac_ext >&5
3514
3515	CFLAGS=""
3516      cat >conftest.$ac_ext <<_ACEOF
3517/* confdefs.h.  */
3518_ACEOF
3519cat confdefs.h >>conftest.$ac_ext
3520cat >>conftest.$ac_ext <<_ACEOF
3521/* end confdefs.h.  */
3522
3523int
3524main ()
3525{
3526
3527  ;
3528  return 0;
3529}
3530_ACEOF
3531rm -f conftest.$ac_objext
3532if { (ac_try="$ac_compile"
3533case "(($ac_try" in
3534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535  *) ac_try_echo=$ac_try;;
3536esac
3537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3538$as_echo "$ac_try_echo") >&5
3539  (eval "$ac_compile") 2>conftest.er1
3540  ac_status=$?
3541  grep -v '^ *+' conftest.er1 >conftest.err
3542  rm -f conftest.er1
3543  cat conftest.err >&5
3544  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545  (exit $ac_status); } && {
3546	 test -z "$ac_c_werror_flag" ||
3547	 test ! -s conftest.err
3548       } && test -s conftest.$ac_objext; then
3549  :
3550else
3551  $as_echo "$as_me: failed program was:" >&5
3552sed 's/^/| /' conftest.$ac_ext >&5
3553
3554	ac_c_werror_flag=$ac_save_c_werror_flag
3555	 CFLAGS="-g"
3556	 cat >conftest.$ac_ext <<_ACEOF
3557/* confdefs.h.  */
3558_ACEOF
3559cat confdefs.h >>conftest.$ac_ext
3560cat >>conftest.$ac_ext <<_ACEOF
3561/* end confdefs.h.  */
3562
3563int
3564main ()
3565{
3566
3567  ;
3568  return 0;
3569}
3570_ACEOF
3571rm -f conftest.$ac_objext
3572if { (ac_try="$ac_compile"
3573case "(($ac_try" in
3574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575  *) ac_try_echo=$ac_try;;
3576esac
3577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3578$as_echo "$ac_try_echo") >&5
3579  (eval "$ac_compile") 2>conftest.er1
3580  ac_status=$?
3581  grep -v '^ *+' conftest.er1 >conftest.err
3582  rm -f conftest.er1
3583  cat conftest.err >&5
3584  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585  (exit $ac_status); } && {
3586	 test -z "$ac_c_werror_flag" ||
3587	 test ! -s conftest.err
3588       } && test -s conftest.$ac_objext; then
3589  ac_cv_prog_cc_g=yes
3590else
3591  $as_echo "$as_me: failed program was:" >&5
3592sed 's/^/| /' conftest.$ac_ext >&5
3593
3594
3595fi
3596
3597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598fi
3599
3600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601fi
3602
3603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604   ac_c_werror_flag=$ac_save_c_werror_flag
3605fi
3606{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3607$as_echo "$ac_cv_prog_cc_g" >&6; }
3608if test "$ac_test_CFLAGS" = set; then
3609  CFLAGS=$ac_save_CFLAGS
3610elif test $ac_cv_prog_cc_g = yes; then
3611  if test "$GCC" = yes; then
3612    CFLAGS="-g -O2"
3613  else
3614    CFLAGS="-g"
3615  fi
3616else
3617  if test "$GCC" = yes; then
3618    CFLAGS="-O2"
3619  else
3620    CFLAGS=
3621  fi
3622fi
3623{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3624$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3625if test "${ac_cv_prog_cc_c89+set}" = set; then
3626  $as_echo_n "(cached) " >&6
3627else
3628  ac_cv_prog_cc_c89=no
3629ac_save_CC=$CC
3630cat >conftest.$ac_ext <<_ACEOF
3631/* confdefs.h.  */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
3635/* end confdefs.h.  */
3636#include <stdarg.h>
3637#include <stdio.h>
3638#include <sys/types.h>
3639#include <sys/stat.h>
3640/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3641struct buf { int x; };
3642FILE * (*rcsopen) (struct buf *, struct stat *, int);
3643static char *e (p, i)
3644     char **p;
3645     int i;
3646{
3647  return p[i];
3648}
3649static char *f (char * (*g) (char **, int), char **p, ...)
3650{
3651  char *s;
3652  va_list v;
3653  va_start (v,p);
3654  s = g (p, va_arg (v,int));
3655  va_end (v);
3656  return s;
3657}
3658
3659/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3660   function prototypes and stuff, but not '\xHH' hex character constants.
3661   These don't provoke an error unfortunately, instead are silently treated
3662   as 'x'.  The following induces an error, until -std is added to get
3663   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3664   array size at least.  It's necessary to write '\x00'==0 to get something
3665   that's true only with -std.  */
3666int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3667
3668/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3669   inside strings and character constants.  */
3670#define FOO(x) 'x'
3671int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3672
3673int test (int i, double x);
3674struct s1 {int (*f) (int a);};
3675struct s2 {int (*f) (double a);};
3676int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3677int argc;
3678char **argv;
3679int
3680main ()
3681{
3682return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3683  ;
3684  return 0;
3685}
3686_ACEOF
3687for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3688	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3689do
3690  CC="$ac_save_CC $ac_arg"
3691  rm -f conftest.$ac_objext
3692if { (ac_try="$ac_compile"
3693case "(($ac_try" in
3694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695  *) ac_try_echo=$ac_try;;
3696esac
3697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3698$as_echo "$ac_try_echo") >&5
3699  (eval "$ac_compile") 2>conftest.er1
3700  ac_status=$?
3701  grep -v '^ *+' conftest.er1 >conftest.err
3702  rm -f conftest.er1
3703  cat conftest.err >&5
3704  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705  (exit $ac_status); } && {
3706	 test -z "$ac_c_werror_flag" ||
3707	 test ! -s conftest.err
3708       } && test -s conftest.$ac_objext; then
3709  ac_cv_prog_cc_c89=$ac_arg
3710else
3711  $as_echo "$as_me: failed program was:" >&5
3712sed 's/^/| /' conftest.$ac_ext >&5
3713
3714
3715fi
3716
3717rm -f core conftest.err conftest.$ac_objext
3718  test "x$ac_cv_prog_cc_c89" != "xno" && break
3719done
3720rm -f conftest.$ac_ext
3721CC=$ac_save_CC
3722
3723fi
3724# AC_CACHE_VAL
3725case "x$ac_cv_prog_cc_c89" in
3726  x)
3727    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3728$as_echo "none needed" >&6; } ;;
3729  xno)
3730    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3731$as_echo "unsupported" >&6; } ;;
3732  *)
3733    CC="$CC $ac_cv_prog_cc_c89"
3734    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3735$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3736esac
3737
3738
3739ac_ext=c
3740ac_cpp='$CPP $CPPFLAGS'
3741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744
3745depcc="$CC"   am_compiler_list=
3746
3747{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3748$as_echo_n "checking dependency style of $depcc... " >&6; }
3749if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3750  $as_echo_n "(cached) " >&6
3751else
3752  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3753  # We make a subdir and do the tests there.  Otherwise we can end up
3754  # making bogus files that we don't know about and never remove.  For
3755  # instance it was reported that on HP-UX the gcc test will end up
3756  # making a dummy file named `D' -- because `-MD' means `put the output
3757  # in D'.
3758  mkdir conftest.dir
3759  # Copy depcomp to subdir because otherwise we won't find it if we're
3760  # using a relative directory.
3761  cp "$am_depcomp" conftest.dir
3762  cd conftest.dir
3763  # We will build objects and dependencies in a subdirectory because
3764  # it helps to detect inapplicable dependency modes.  For instance
3765  # both Tru64's cc and ICC support -MD to output dependencies as a
3766  # side effect of compilation, but ICC will put the dependencies in
3767  # the current directory while Tru64 will put them in the object
3768  # directory.
3769  mkdir sub
3770
3771  am_cv_CC_dependencies_compiler_type=none
3772  if test "$am_compiler_list" = ""; then
3773     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3774  fi
3775  for depmode in $am_compiler_list; do
3776    # Setup a source with many dependencies, because some compilers
3777    # like to wrap large dependency lists on column 80 (with \), and
3778    # we should not choose a depcomp mode which is confused by this.
3779    #
3780    # We need to recreate these files for each test, as the compiler may
3781    # overwrite some of them when testing with obscure command lines.
3782    # This happens at least with the AIX C compiler.
3783    : > sub/conftest.c
3784    for i in 1 2 3 4 5 6; do
3785      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3786      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3787      # Solaris 8's {/usr,}/bin/sh.
3788      touch sub/conftst$i.h
3789    done
3790    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3791
3792    case $depmode in
3793    nosideeffect)
3794      # after this tag, mechanisms are not by side-effect, so they'll
3795      # only be used when explicitly requested
3796      if test "x$enable_dependency_tracking" = xyes; then
3797	continue
3798      else
3799	break
3800      fi
3801      ;;
3802    none) break ;;
3803    esac
3804    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3805    # mode.  It turns out that the SunPro C++ compiler does not properly
3806    # handle `-M -o', and we need to detect this.
3807    if depmode=$depmode \
3808       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3809       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3810       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3811         >/dev/null 2>conftest.err &&
3812       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3813       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3814       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3815       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3816      # icc doesn't choke on unknown options, it will just issue warnings
3817      # or remarks (even with -Werror).  So we grep stderr for any message
3818      # that says an option was ignored or not supported.
3819      # When given -MP, icc 7.0 and 7.1 complain thusly:
3820      #   icc: Command line warning: ignoring option '-M'; no argument required
3821      # The diagnosis changed in icc 8.0:
3822      #   icc: Command line remark: option '-MP' not supported
3823      if (grep 'ignoring option' conftest.err ||
3824          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3825        am_cv_CC_dependencies_compiler_type=$depmode
3826        break
3827      fi
3828    fi
3829  done
3830
3831  cd ..
3832  rm -rf conftest.dir
3833else
3834  am_cv_CC_dependencies_compiler_type=none
3835fi
3836
3837fi
3838{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3839$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3840CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3841
3842 if
3843  test "x$enable_dependency_tracking" != xno \
3844  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3845  am__fastdepCC_TRUE=
3846  am__fastdepCC_FALSE='#'
3847else
3848  am__fastdepCC_TRUE='#'
3849  am__fastdepCC_FALSE=
3850fi
3851
3852
3853{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3854$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3855if test "${lt_cv_path_SED+set}" = set; then
3856  $as_echo_n "(cached) " >&6
3857else
3858  # Loop through the user's path and test for sed and gsed.
3859# Then use that list of sed's as ones to test for truncation.
3860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861for as_dir in $PATH
3862do
3863  IFS=$as_save_IFS
3864  test -z "$as_dir" && as_dir=.
3865  for lt_ac_prog in sed gsed; do
3866    for ac_exec_ext in '' $ac_executable_extensions; do
3867      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3868        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3869      fi
3870    done
3871  done
3872done
3873IFS=$as_save_IFS
3874lt_ac_max=0
3875lt_ac_count=0
3876# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3877# along with /bin/sed that truncates output.
3878for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3879  test ! -f $lt_ac_sed && continue
3880  cat /dev/null > conftest.in
3881  lt_ac_count=0
3882  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3883  # Check for GNU sed and select it if it is found.
3884  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3885    lt_cv_path_SED=$lt_ac_sed
3886    break
3887  fi
3888  while true; do
3889    cat conftest.in conftest.in >conftest.tmp
3890    mv conftest.tmp conftest.in
3891    cp conftest.in conftest.nl
3892    echo >>conftest.nl
3893    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3894    cmp -s conftest.out conftest.nl || break
3895    # 10000 chars as input seems more than enough
3896    test $lt_ac_count -gt 10 && break
3897    lt_ac_count=`expr $lt_ac_count + 1`
3898    if test $lt_ac_count -gt $lt_ac_max; then
3899      lt_ac_max=$lt_ac_count
3900      lt_cv_path_SED=$lt_ac_sed
3901    fi
3902  done
3903done
3904
3905fi
3906
3907SED=$lt_cv_path_SED
3908
3909{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3910$as_echo "$SED" >&6; }
3911
3912{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3913$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3914if test "${ac_cv_path_GREP+set}" = set; then
3915  $as_echo_n "(cached) " >&6
3916else
3917  if test -z "$GREP"; then
3918  ac_path_GREP_found=false
3919  # Loop through the user's path and test for each of PROGNAME-LIST
3920  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3922do
3923  IFS=$as_save_IFS
3924  test -z "$as_dir" && as_dir=.
3925  for ac_prog in grep ggrep; do
3926    for ac_exec_ext in '' $ac_executable_extensions; do
3927      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3928      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3929# Check for GNU ac_path_GREP and select it if it is found.
3930  # Check for GNU $ac_path_GREP
3931case `"$ac_path_GREP" --version 2>&1` in
3932*GNU*)
3933  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3934*)
3935  ac_count=0
3936  $as_echo_n 0123456789 >"conftest.in"
3937  while :
3938  do
3939    cat "conftest.in" "conftest.in" >"conftest.tmp"
3940    mv "conftest.tmp" "conftest.in"
3941    cp "conftest.in" "conftest.nl"
3942    $as_echo 'GREP' >> "conftest.nl"
3943    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3944    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3945    ac_count=`expr $ac_count + 1`
3946    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3947      # Best one so far, save it but keep looking for a better one
3948      ac_cv_path_GREP="$ac_path_GREP"
3949      ac_path_GREP_max=$ac_count
3950    fi
3951    # 10*(2^10) chars as input seems more than enough
3952    test $ac_count -gt 10 && break
3953  done
3954  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3955esac
3956
3957      $ac_path_GREP_found && break 3
3958    done
3959  done
3960done
3961IFS=$as_save_IFS
3962  if test -z "$ac_cv_path_GREP"; then
3963    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3964$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3965   { (exit 1); exit 1; }; }
3966  fi
3967else
3968  ac_cv_path_GREP=$GREP
3969fi
3970
3971fi
3972{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3973$as_echo "$ac_cv_path_GREP" >&6; }
3974 GREP="$ac_cv_path_GREP"
3975
3976
3977{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3978$as_echo_n "checking for egrep... " >&6; }
3979if test "${ac_cv_path_EGREP+set}" = set; then
3980  $as_echo_n "(cached) " >&6
3981else
3982  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3983   then ac_cv_path_EGREP="$GREP -E"
3984   else
3985     if test -z "$EGREP"; then
3986  ac_path_EGREP_found=false
3987  # Loop through the user's path and test for each of PROGNAME-LIST
3988  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3990do
3991  IFS=$as_save_IFS
3992  test -z "$as_dir" && as_dir=.
3993  for ac_prog in egrep; do
3994    for ac_exec_ext in '' $ac_executable_extensions; do
3995      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3996      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3997# Check for GNU ac_path_EGREP and select it if it is found.
3998  # Check for GNU $ac_path_EGREP
3999case `"$ac_path_EGREP" --version 2>&1` in
4000*GNU*)
4001  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4002*)
4003  ac_count=0
4004  $as_echo_n 0123456789 >"conftest.in"
4005  while :
4006  do
4007    cat "conftest.in" "conftest.in" >"conftest.tmp"
4008    mv "conftest.tmp" "conftest.in"
4009    cp "conftest.in" "conftest.nl"
4010    $as_echo 'EGREP' >> "conftest.nl"
4011    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4012    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4013    ac_count=`expr $ac_count + 1`
4014    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4015      # Best one so far, save it but keep looking for a better one
4016      ac_cv_path_EGREP="$ac_path_EGREP"
4017      ac_path_EGREP_max=$ac_count
4018    fi
4019    # 10*(2^10) chars as input seems more than enough
4020    test $ac_count -gt 10 && break
4021  done
4022  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4023esac
4024
4025      $ac_path_EGREP_found && break 3
4026    done
4027  done
4028done
4029IFS=$as_save_IFS
4030  if test -z "$ac_cv_path_EGREP"; then
4031    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4032$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4033   { (exit 1); exit 1; }; }
4034  fi
4035else
4036  ac_cv_path_EGREP=$EGREP
4037fi
4038
4039   fi
4040fi
4041{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4042$as_echo "$ac_cv_path_EGREP" >&6; }
4043 EGREP="$ac_cv_path_EGREP"
4044
4045
4046
4047# Check whether --with-gnu-ld was given.
4048if test "${with_gnu_ld+set}" = set; then
4049  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4050else
4051  with_gnu_ld=no
4052fi
4053
4054ac_prog=ld
4055if test "$GCC" = yes; then
4056  # Check if gcc -print-prog-name=ld gives a path.
4057  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4058$as_echo_n "checking for ld used by $CC... " >&6; }
4059  case $host in
4060  *-*-mingw*)
4061    # gcc leaves a trailing carriage return which upsets mingw
4062    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4063  *)
4064    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4065  esac
4066  case $ac_prog in
4067    # Accept absolute paths.
4068    [\\/]* | ?:[\\/]*)
4069      re_direlt='/[^/][^/]*/\.\./'
4070      # Canonicalize the pathname of ld
4071      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4072      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4073	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4074      done
4075      test -z "$LD" && LD="$ac_prog"
4076      ;;
4077  "")
4078    # If it fails, then pretend we aren't using GCC.
4079    ac_prog=ld
4080    ;;
4081  *)
4082    # If it is relative, then search for the first ld in PATH.
4083    with_gnu_ld=unknown
4084    ;;
4085  esac
4086elif test "$with_gnu_ld" = yes; then
4087  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4088$as_echo_n "checking for GNU ld... " >&6; }
4089else
4090  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4091$as_echo_n "checking for non-GNU ld... " >&6; }
4092fi
4093if test "${lt_cv_path_LD+set}" = set; then
4094  $as_echo_n "(cached) " >&6
4095else
4096  if test -z "$LD"; then
4097  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4098  for ac_dir in $PATH; do
4099    IFS="$lt_save_ifs"
4100    test -z "$ac_dir" && ac_dir=.
4101    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4102      lt_cv_path_LD="$ac_dir/$ac_prog"
4103      # Check to see if the program is GNU ld.  I'd rather use --version,
4104      # but apparently some variants of GNU ld only accept -v.
4105      # Break only if it was the GNU/non-GNU ld that we prefer.
4106      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4107      *GNU* | *'with BFD'*)
4108	test "$with_gnu_ld" != no && break
4109	;;
4110      *)
4111	test "$with_gnu_ld" != yes && break
4112	;;
4113      esac
4114    fi
4115  done
4116  IFS="$lt_save_ifs"
4117else
4118  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4119fi
4120fi
4121
4122LD="$lt_cv_path_LD"
4123if test -n "$LD"; then
4124  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4125$as_echo "$LD" >&6; }
4126else
4127  { $as_echo "$as_me:$LINENO: result: no" >&5
4128$as_echo "no" >&6; }
4129fi
4130test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4131$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4132   { (exit 1); exit 1; }; }
4133{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4134$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4135if test "${lt_cv_prog_gnu_ld+set}" = set; then
4136  $as_echo_n "(cached) " >&6
4137else
4138  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4139case `$LD -v 2>&1 </dev/null` in
4140*GNU* | *'with BFD'*)
4141  lt_cv_prog_gnu_ld=yes
4142  ;;
4143*)
4144  lt_cv_prog_gnu_ld=no
4145  ;;
4146esac
4147fi
4148{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4149$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4150with_gnu_ld=$lt_cv_prog_gnu_ld
4151
4152
4153{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4154$as_echo_n "checking for $LD option to reload object files... " >&6; }
4155if test "${lt_cv_ld_reload_flag+set}" = set; then
4156  $as_echo_n "(cached) " >&6
4157else
4158  lt_cv_ld_reload_flag='-r'
4159fi
4160{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4161$as_echo "$lt_cv_ld_reload_flag" >&6; }
4162reload_flag=$lt_cv_ld_reload_flag
4163case $reload_flag in
4164"" | " "*) ;;
4165*) reload_flag=" $reload_flag" ;;
4166esac
4167reload_cmds='$LD$reload_flag -o $output$reload_objs'
4168case $host_os in
4169  darwin*)
4170    if test "$GCC" = yes; then
4171      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4172    else
4173      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4174    fi
4175    ;;
4176esac
4177
4178{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4179$as_echo_n "checking for BSD-compatible nm... " >&6; }
4180if test "${lt_cv_path_NM+set}" = set; then
4181  $as_echo_n "(cached) " >&6
4182else
4183  if test -n "$NM"; then
4184  # Let the user override the test.
4185  lt_cv_path_NM="$NM"
4186else
4187  lt_nm_to_check="${ac_tool_prefix}nm"
4188  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4189    lt_nm_to_check="$lt_nm_to_check nm"
4190  fi
4191  for lt_tmp_nm in $lt_nm_to_check; do
4192    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4193    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4194      IFS="$lt_save_ifs"
4195      test -z "$ac_dir" && ac_dir=.
4196      tmp_nm="$ac_dir/$lt_tmp_nm"
4197      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4198	# Check to see if the nm accepts a BSD-compat flag.
4199	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4200	#   nm: unknown option "B" ignored
4201	# Tru64's nm complains that /dev/null is an invalid object file
4202	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4203	*/dev/null* | *'Invalid file or object type'*)
4204	  lt_cv_path_NM="$tmp_nm -B"
4205	  break
4206	  ;;
4207	*)
4208	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4209	  */dev/null*)
4210	    lt_cv_path_NM="$tmp_nm -p"
4211	    break
4212	    ;;
4213	  *)
4214	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4215	    continue # so that we can try to find one that supports BSD flags
4216	    ;;
4217	  esac
4218	  ;;
4219	esac
4220      fi
4221    done
4222    IFS="$lt_save_ifs"
4223  done
4224  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4225fi
4226fi
4227{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4228$as_echo "$lt_cv_path_NM" >&6; }
4229NM="$lt_cv_path_NM"
4230
4231{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4232$as_echo_n "checking whether ln -s works... " >&6; }
4233LN_S=$as_ln_s
4234if test "$LN_S" = "ln -s"; then
4235  { $as_echo "$as_me:$LINENO: result: yes" >&5
4236$as_echo "yes" >&6; }
4237else
4238  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4239$as_echo "no, using $LN_S" >&6; }
4240fi
4241
4242{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4243$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4244if test "${lt_cv_deplibs_check_method+set}" = set; then
4245  $as_echo_n "(cached) " >&6
4246else
4247  lt_cv_file_magic_cmd='$MAGIC_CMD'
4248lt_cv_file_magic_test_file=
4249lt_cv_deplibs_check_method='unknown'
4250# Need to set the preceding variable on all platforms that support
4251# interlibrary dependencies.
4252# 'none' -- dependencies not supported.
4253# `unknown' -- same as none, but documents that we really don't know.
4254# 'pass_all' -- all dependencies passed with no checks.
4255# 'test_compile' -- check by making test program.
4256# 'file_magic [[regex]]' -- check by looking for files in library path
4257# which responds to the $file_magic_cmd with a given extended regex.
4258# If you have `file' or equivalent on your system and you're not sure
4259# whether `pass_all' will *always* work, you probably want this one.
4260
4261case $host_os in
4262aix[4-9]*)
4263  lt_cv_deplibs_check_method=pass_all
4264  ;;
4265
4266beos*)
4267  lt_cv_deplibs_check_method=pass_all
4268  ;;
4269
4270bsdi[45]*)
4271  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4272  lt_cv_file_magic_cmd='/usr/bin/file -L'
4273  lt_cv_file_magic_test_file=/shlib/libc.so
4274  ;;
4275
4276cygwin*)
4277  # func_win32_libid is a shell function defined in ltmain.sh
4278  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4279  lt_cv_file_magic_cmd='func_win32_libid'
4280  ;;
4281
4282mingw* | pw32*)
4283  # Base MSYS/MinGW do not provide the 'file' command needed by
4284  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4285  # unless we find 'file', for example because we are cross-compiling.
4286  if ( file / ) >/dev/null 2>&1; then
4287    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4288    lt_cv_file_magic_cmd='func_win32_libid'
4289  else
4290    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4291    lt_cv_file_magic_cmd='$OBJDUMP -f'
4292  fi
4293  ;;
4294
4295darwin* | rhapsody*)
4296  lt_cv_deplibs_check_method=pass_all
4297  ;;
4298
4299freebsd* | dragonfly*)
4300  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4301    case $host_cpu in
4302    i*86 )
4303      # Not sure whether the presence of OpenBSD here was a mistake.
4304      # Let's accept both of them until this is cleared up.
4305      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4306      lt_cv_file_magic_cmd=/usr/bin/file
4307      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4308      ;;
4309    esac
4310  else
4311    lt_cv_deplibs_check_method=pass_all
4312  fi
4313  ;;
4314
4315gnu*)
4316  lt_cv_deplibs_check_method=pass_all
4317  ;;
4318
4319hpux10.20* | hpux11*)
4320  lt_cv_file_magic_cmd=/usr/bin/file
4321  case $host_cpu in
4322  ia64*)
4323    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4324    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4325    ;;
4326  hppa*64*)
4327    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]'
4328    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4329    ;;
4330  *)
4331    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4332    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4333    ;;
4334  esac
4335  ;;
4336
4337interix[3-9]*)
4338  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4339  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4340  ;;
4341
4342irix5* | irix6* | nonstopux*)
4343  case $LD in
4344  *-32|*"-32 ") libmagic=32-bit;;
4345  *-n32|*"-n32 ") libmagic=N32;;
4346  *-64|*"-64 ") libmagic=64-bit;;
4347  *) libmagic=never-match;;
4348  esac
4349  lt_cv_deplibs_check_method=pass_all
4350  ;;
4351
4352# This must be Linux ELF.
4353linux* | k*bsd*-gnu)
4354  lt_cv_deplibs_check_method=pass_all
4355  ;;
4356
4357netbsd*)
4358  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4359    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4360  else
4361    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4362  fi
4363  ;;
4364
4365newos6*)
4366  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4367  lt_cv_file_magic_cmd=/usr/bin/file
4368  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4369  ;;
4370
4371nto-qnx*)
4372  lt_cv_deplibs_check_method=unknown
4373  ;;
4374
4375openbsd*)
4376  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4377    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4378  else
4379    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4380  fi
4381  ;;
4382
4383osf3* | osf4* | osf5*)
4384  lt_cv_deplibs_check_method=pass_all
4385  ;;
4386
4387rdos*)
4388  lt_cv_deplibs_check_method=pass_all
4389  ;;
4390
4391solaris*)
4392  lt_cv_deplibs_check_method=pass_all
4393  ;;
4394
4395sysv4 | sysv4.3*)
4396  case $host_vendor in
4397  motorola)
4398    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]'
4399    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4400    ;;
4401  ncr)
4402    lt_cv_deplibs_check_method=pass_all
4403    ;;
4404  sequent)
4405    lt_cv_file_magic_cmd='/bin/file'
4406    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4407    ;;
4408  sni)
4409    lt_cv_file_magic_cmd='/bin/file'
4410    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4411    lt_cv_file_magic_test_file=/lib/libc.so
4412    ;;
4413  siemens)
4414    lt_cv_deplibs_check_method=pass_all
4415    ;;
4416  pc)
4417    lt_cv_deplibs_check_method=pass_all
4418    ;;
4419  esac
4420  ;;
4421
4422sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4423  lt_cv_deplibs_check_method=pass_all
4424  ;;
4425esac
4426
4427fi
4428{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4429$as_echo "$lt_cv_deplibs_check_method" >&6; }
4430file_magic_cmd=$lt_cv_file_magic_cmd
4431deplibs_check_method=$lt_cv_deplibs_check_method
4432test -z "$deplibs_check_method" && deplibs_check_method=unknown
4433
4434
4435
4436
4437# If no C compiler was specified, use CC.
4438LTCC=${LTCC-"$CC"}
4439
4440# If no C compiler flags were specified, use CFLAGS.
4441LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4442
4443# Allow CC to be a program name with arguments.
4444compiler=$CC
4445
4446
4447# Check whether --enable-libtool-lock was given.
4448if test "${enable_libtool_lock+set}" = set; then
4449  enableval=$enable_libtool_lock;
4450fi
4451
4452test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4453
4454# Some flags need to be propagated to the compiler or linker for good
4455# libtool support.
4456case $host in
4457ia64-*-hpux*)
4458  # Find out which ABI we are using.
4459  echo 'int i;' > conftest.$ac_ext
4460  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4461  (eval $ac_compile) 2>&5
4462  ac_status=$?
4463  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464  (exit $ac_status); }; then
4465    case `/usr/bin/file conftest.$ac_objext` in
4466    *ELF-32*)
4467      HPUX_IA64_MODE="32"
4468      ;;
4469    *ELF-64*)
4470      HPUX_IA64_MODE="64"
4471      ;;
4472    esac
4473  fi
4474  rm -rf conftest*
4475  ;;
4476*-*-irix6*)
4477  # Find out which ABI we are using.
4478  echo '#line 4478 "configure"' > conftest.$ac_ext
4479  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4480  (eval $ac_compile) 2>&5
4481  ac_status=$?
4482  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483  (exit $ac_status); }; then
4484   if test "$lt_cv_prog_gnu_ld" = yes; then
4485    case `/usr/bin/file conftest.$ac_objext` in
4486    *32-bit*)
4487      LD="${LD-ld} -melf32bsmip"
4488      ;;
4489    *N32*)
4490      LD="${LD-ld} -melf32bmipn32"
4491      ;;
4492    *64-bit*)
4493      LD="${LD-ld} -melf64bmip"
4494      ;;
4495    esac
4496   else
4497    case `/usr/bin/file conftest.$ac_objext` in
4498    *32-bit*)
4499      LD="${LD-ld} -32"
4500      ;;
4501    *N32*)
4502      LD="${LD-ld} -n32"
4503      ;;
4504    *64-bit*)
4505      LD="${LD-ld} -64"
4506      ;;
4507    esac
4508   fi
4509  fi
4510  rm -rf conftest*
4511  ;;
4512
4513x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4514s390*-*linux*|sparc*-*linux*)
4515  # Find out which ABI we are using.
4516  echo 'int i;' > conftest.$ac_ext
4517  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518  (eval $ac_compile) 2>&5
4519  ac_status=$?
4520  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521  (exit $ac_status); }; then
4522    case `/usr/bin/file conftest.o` in
4523    *32-bit*)
4524      case $host in
4525        x86_64-*kfreebsd*-gnu)
4526          LD="${LD-ld} -m elf_i386_fbsd"
4527          ;;
4528        x86_64-*linux*)
4529          LD="${LD-ld} -m elf_i386"
4530          ;;
4531        ppc64-*linux*|powerpc64-*linux*)
4532          LD="${LD-ld} -m elf32ppclinux"
4533          ;;
4534        s390x-*linux*)
4535          LD="${LD-ld} -m elf_s390"
4536          ;;
4537        sparc64-*linux*)
4538          LD="${LD-ld} -m elf32_sparc"
4539          ;;
4540      esac
4541      ;;
4542    *64-bit*)
4543      libsuff=64
4544      case $host in
4545        x86_64-*kfreebsd*-gnu)
4546          LD="${LD-ld} -m elf_x86_64_fbsd"
4547          ;;
4548        x86_64-*linux*)
4549          LD="${LD-ld} -m elf_x86_64"
4550          ;;
4551        ppc*-*linux*|powerpc*-*linux*)
4552          LD="${LD-ld} -m elf64ppc"
4553          ;;
4554        s390*-*linux*)
4555          LD="${LD-ld} -m elf64_s390"
4556          ;;
4557        sparc*-*linux*)
4558          LD="${LD-ld} -m elf64_sparc"
4559          ;;
4560      esac
4561      ;;
4562    esac
4563  fi
4564  rm -rf conftest*
4565  ;;
4566
4567*-*-sco3.2v5*)
4568  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4569  SAVE_CFLAGS="$CFLAGS"
4570  CFLAGS="$CFLAGS -belf"
4571  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4572$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4573if test "${lt_cv_cc_needs_belf+set}" = set; then
4574  $as_echo_n "(cached) " >&6
4575else
4576  ac_ext=c
4577ac_cpp='$CPP $CPPFLAGS'
4578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581
4582     cat >conftest.$ac_ext <<_ACEOF
4583/* confdefs.h.  */
4584_ACEOF
4585cat confdefs.h >>conftest.$ac_ext
4586cat >>conftest.$ac_ext <<_ACEOF
4587/* end confdefs.h.  */
4588
4589int
4590main ()
4591{
4592
4593  ;
4594  return 0;
4595}
4596_ACEOF
4597rm -f conftest.$ac_objext conftest$ac_exeext
4598if { (ac_try="$ac_link"
4599case "(($ac_try" in
4600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601  *) ac_try_echo=$ac_try;;
4602esac
4603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4604$as_echo "$ac_try_echo") >&5
4605  (eval "$ac_link") 2>conftest.er1
4606  ac_status=$?
4607  grep -v '^ *+' conftest.er1 >conftest.err
4608  rm -f conftest.er1
4609  cat conftest.err >&5
4610  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611  (exit $ac_status); } && {
4612	 test -z "$ac_c_werror_flag" ||
4613	 test ! -s conftest.err
4614       } && test -s conftest$ac_exeext && {
4615	 test "$cross_compiling" = yes ||
4616	 $as_test_x conftest$ac_exeext
4617       }; then
4618  lt_cv_cc_needs_belf=yes
4619else
4620  $as_echo "$as_me: failed program was:" >&5
4621sed 's/^/| /' conftest.$ac_ext >&5
4622
4623	lt_cv_cc_needs_belf=no
4624fi
4625
4626rm -rf conftest.dSYM
4627rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4628      conftest$ac_exeext conftest.$ac_ext
4629     ac_ext=c
4630ac_cpp='$CPP $CPPFLAGS'
4631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634
4635fi
4636{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4637$as_echo "$lt_cv_cc_needs_belf" >&6; }
4638  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4639    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4640    CFLAGS="$SAVE_CFLAGS"
4641  fi
4642  ;;
4643sparc*-*solaris*)
4644  # Find out which ABI we are using.
4645  echo 'int i;' > conftest.$ac_ext
4646  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647  (eval $ac_compile) 2>&5
4648  ac_status=$?
4649  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650  (exit $ac_status); }; then
4651    case `/usr/bin/file conftest.o` in
4652    *64-bit*)
4653      case $lt_cv_prog_gnu_ld in
4654      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4655      *)
4656        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4657	  LD="${LD-ld} -64"
4658	fi
4659	;;
4660      esac
4661      ;;
4662    esac
4663  fi
4664  rm -rf conftest*
4665  ;;
4666
4667
4668esac
4669
4670need_locks="$enable_libtool_lock"
4671
4672
4673ac_ext=c
4674ac_cpp='$CPP $CPPFLAGS'
4675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4677ac_compiler_gnu=$ac_cv_c_compiler_gnu
4678{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4679$as_echo_n "checking how to run the C preprocessor... " >&6; }
4680# On Suns, sometimes $CPP names a directory.
4681if test -n "$CPP" && test -d "$CPP"; then
4682  CPP=
4683fi
4684if test -z "$CPP"; then
4685  if test "${ac_cv_prog_CPP+set}" = set; then
4686  $as_echo_n "(cached) " >&6
4687else
4688      # Double quotes because CPP needs to be expanded
4689    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4690    do
4691      ac_preproc_ok=false
4692for ac_c_preproc_warn_flag in '' yes
4693do
4694  # Use a header file that comes with gcc, so configuring glibc
4695  # with a fresh cross-compiler works.
4696  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4697  # <limits.h> exists even on freestanding compilers.
4698  # On the NeXT, cc -E runs the code through the compiler's parser,
4699  # not just through cpp. "Syntax error" is here to catch this case.
4700  cat >conftest.$ac_ext <<_ACEOF
4701/* confdefs.h.  */
4702_ACEOF
4703cat confdefs.h >>conftest.$ac_ext
4704cat >>conftest.$ac_ext <<_ACEOF
4705/* end confdefs.h.  */
4706#ifdef __STDC__
4707# include <limits.h>
4708#else
4709# include <assert.h>
4710#endif
4711		     Syntax error
4712_ACEOF
4713if { (ac_try="$ac_cpp conftest.$ac_ext"
4714case "(($ac_try" in
4715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716  *) ac_try_echo=$ac_try;;
4717esac
4718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4719$as_echo "$ac_try_echo") >&5
4720  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4721  ac_status=$?
4722  grep -v '^ *+' conftest.er1 >conftest.err
4723  rm -f conftest.er1
4724  cat conftest.err >&5
4725  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726  (exit $ac_status); } >/dev/null && {
4727	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4728	 test ! -s conftest.err
4729       }; then
4730  :
4731else
4732  $as_echo "$as_me: failed program was:" >&5
4733sed 's/^/| /' conftest.$ac_ext >&5
4734
4735  # Broken: fails on valid input.
4736continue
4737fi
4738
4739rm -f conftest.err conftest.$ac_ext
4740
4741  # OK, works on sane cases.  Now check whether nonexistent headers
4742  # can be detected and how.
4743  cat >conftest.$ac_ext <<_ACEOF
4744/* confdefs.h.  */
4745_ACEOF
4746cat confdefs.h >>conftest.$ac_ext
4747cat >>conftest.$ac_ext <<_ACEOF
4748/* end confdefs.h.  */
4749#include <ac_nonexistent.h>
4750_ACEOF
4751if { (ac_try="$ac_cpp conftest.$ac_ext"
4752case "(($ac_try" in
4753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754  *) ac_try_echo=$ac_try;;
4755esac
4756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4757$as_echo "$ac_try_echo") >&5
4758  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4759  ac_status=$?
4760  grep -v '^ *+' conftest.er1 >conftest.err
4761  rm -f conftest.er1
4762  cat conftest.err >&5
4763  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764  (exit $ac_status); } >/dev/null && {
4765	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4766	 test ! -s conftest.err
4767       }; then
4768  # Broken: success on invalid input.
4769continue
4770else
4771  $as_echo "$as_me: failed program was:" >&5
4772sed 's/^/| /' conftest.$ac_ext >&5
4773
4774  # Passes both tests.
4775ac_preproc_ok=:
4776break
4777fi
4778
4779rm -f conftest.err conftest.$ac_ext
4780
4781done
4782# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4783rm -f conftest.err conftest.$ac_ext
4784if $ac_preproc_ok; then
4785  break
4786fi
4787
4788    done
4789    ac_cv_prog_CPP=$CPP
4790
4791fi
4792  CPP=$ac_cv_prog_CPP
4793else
4794  ac_cv_prog_CPP=$CPP
4795fi
4796{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4797$as_echo "$CPP" >&6; }
4798ac_preproc_ok=false
4799for ac_c_preproc_warn_flag in '' yes
4800do
4801  # Use a header file that comes with gcc, so configuring glibc
4802  # with a fresh cross-compiler works.
4803  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4804  # <limits.h> exists even on freestanding compilers.
4805  # On the NeXT, cc -E runs the code through the compiler's parser,
4806  # not just through cpp. "Syntax error" is here to catch this case.
4807  cat >conftest.$ac_ext <<_ACEOF
4808/* confdefs.h.  */
4809_ACEOF
4810cat confdefs.h >>conftest.$ac_ext
4811cat >>conftest.$ac_ext <<_ACEOF
4812/* end confdefs.h.  */
4813#ifdef __STDC__
4814# include <limits.h>
4815#else
4816# include <assert.h>
4817#endif
4818		     Syntax error
4819_ACEOF
4820if { (ac_try="$ac_cpp conftest.$ac_ext"
4821case "(($ac_try" in
4822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823  *) ac_try_echo=$ac_try;;
4824esac
4825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4826$as_echo "$ac_try_echo") >&5
4827  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4828  ac_status=$?
4829  grep -v '^ *+' conftest.er1 >conftest.err
4830  rm -f conftest.er1
4831  cat conftest.err >&5
4832  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833  (exit $ac_status); } >/dev/null && {
4834	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4835	 test ! -s conftest.err
4836       }; then
4837  :
4838else
4839  $as_echo "$as_me: failed program was:" >&5
4840sed 's/^/| /' conftest.$ac_ext >&5
4841
4842  # Broken: fails on valid input.
4843continue
4844fi
4845
4846rm -f conftest.err conftest.$ac_ext
4847
4848  # OK, works on sane cases.  Now check whether nonexistent headers
4849  # can be detected and how.
4850  cat >conftest.$ac_ext <<_ACEOF
4851/* confdefs.h.  */
4852_ACEOF
4853cat confdefs.h >>conftest.$ac_ext
4854cat >>conftest.$ac_ext <<_ACEOF
4855/* end confdefs.h.  */
4856#include <ac_nonexistent.h>
4857_ACEOF
4858if { (ac_try="$ac_cpp conftest.$ac_ext"
4859case "(($ac_try" in
4860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861  *) ac_try_echo=$ac_try;;
4862esac
4863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4864$as_echo "$ac_try_echo") >&5
4865  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4866  ac_status=$?
4867  grep -v '^ *+' conftest.er1 >conftest.err
4868  rm -f conftest.er1
4869  cat conftest.err >&5
4870  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871  (exit $ac_status); } >/dev/null && {
4872	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4873	 test ! -s conftest.err
4874       }; then
4875  # Broken: success on invalid input.
4876continue
4877else
4878  $as_echo "$as_me: failed program was:" >&5
4879sed 's/^/| /' conftest.$ac_ext >&5
4880
4881  # Passes both tests.
4882ac_preproc_ok=:
4883break
4884fi
4885
4886rm -f conftest.err conftest.$ac_ext
4887
4888done
4889# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4890rm -f conftest.err conftest.$ac_ext
4891if $ac_preproc_ok; then
4892  :
4893else
4894  { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4895See \`config.log' for more details." >&5
4896$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4897See \`config.log' for more details." >&2;}
4898   { (exit 1); exit 1; }; }
4899fi
4900
4901ac_ext=c
4902ac_cpp='$CPP $CPPFLAGS'
4903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4905ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906
4907
4908{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4909$as_echo_n "checking for ANSI C header files... " >&6; }
4910if test "${ac_cv_header_stdc+set}" = set; then
4911  $as_echo_n "(cached) " >&6
4912else
4913  cat >conftest.$ac_ext <<_ACEOF
4914/* confdefs.h.  */
4915_ACEOF
4916cat confdefs.h >>conftest.$ac_ext
4917cat >>conftest.$ac_ext <<_ACEOF
4918/* end confdefs.h.  */
4919#include <stdlib.h>
4920#include <stdarg.h>
4921#include <string.h>
4922#include <float.h>
4923
4924int
4925main ()
4926{
4927
4928  ;
4929  return 0;
4930}
4931_ACEOF
4932rm -f conftest.$ac_objext
4933if { (ac_try="$ac_compile"
4934case "(($ac_try" in
4935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936  *) ac_try_echo=$ac_try;;
4937esac
4938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4939$as_echo "$ac_try_echo") >&5
4940  (eval "$ac_compile") 2>conftest.er1
4941  ac_status=$?
4942  grep -v '^ *+' conftest.er1 >conftest.err
4943  rm -f conftest.er1
4944  cat conftest.err >&5
4945  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946  (exit $ac_status); } && {
4947	 test -z "$ac_c_werror_flag" ||
4948	 test ! -s conftest.err
4949       } && test -s conftest.$ac_objext; then
4950  ac_cv_header_stdc=yes
4951else
4952  $as_echo "$as_me: failed program was:" >&5
4953sed 's/^/| /' conftest.$ac_ext >&5
4954
4955	ac_cv_header_stdc=no
4956fi
4957
4958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959
4960if test $ac_cv_header_stdc = yes; then
4961  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4962  cat >conftest.$ac_ext <<_ACEOF
4963/* confdefs.h.  */
4964_ACEOF
4965cat confdefs.h >>conftest.$ac_ext
4966cat >>conftest.$ac_ext <<_ACEOF
4967/* end confdefs.h.  */
4968#include <string.h>
4969
4970_ACEOF
4971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4972  $EGREP "memchr" >/dev/null 2>&1; then
4973  :
4974else
4975  ac_cv_header_stdc=no
4976fi
4977rm -f conftest*
4978
4979fi
4980
4981if test $ac_cv_header_stdc = yes; then
4982  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4983  cat >conftest.$ac_ext <<_ACEOF
4984/* confdefs.h.  */
4985_ACEOF
4986cat confdefs.h >>conftest.$ac_ext
4987cat >>conftest.$ac_ext <<_ACEOF
4988/* end confdefs.h.  */
4989#include <stdlib.h>
4990
4991_ACEOF
4992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4993  $EGREP "free" >/dev/null 2>&1; then
4994  :
4995else
4996  ac_cv_header_stdc=no
4997fi
4998rm -f conftest*
4999
5000fi
5001
5002if test $ac_cv_header_stdc = yes; then
5003  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5004  if test "$cross_compiling" = yes; then
5005  :
5006else
5007  cat >conftest.$ac_ext <<_ACEOF
5008/* confdefs.h.  */
5009_ACEOF
5010cat confdefs.h >>conftest.$ac_ext
5011cat >>conftest.$ac_ext <<_ACEOF
5012/* end confdefs.h.  */
5013#include <ctype.h>
5014#include <stdlib.h>
5015#if ((' ' & 0x0FF) == 0x020)
5016# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5017# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5018#else
5019# define ISLOWER(c) \
5020		   (('a' <= (c) && (c) <= 'i') \
5021		     || ('j' <= (c) && (c) <= 'r') \
5022		     || ('s' <= (c) && (c) <= 'z'))
5023# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5024#endif
5025
5026#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5027int
5028main ()
5029{
5030  int i;
5031  for (i = 0; i < 256; i++)
5032    if (XOR (islower (i), ISLOWER (i))
5033	|| toupper (i) != TOUPPER (i))
5034      return 2;
5035  return 0;
5036}
5037_ACEOF
5038rm -f conftest$ac_exeext
5039if { (ac_try="$ac_link"
5040case "(($ac_try" in
5041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042  *) ac_try_echo=$ac_try;;
5043esac
5044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5045$as_echo "$ac_try_echo") >&5
5046  (eval "$ac_link") 2>&5
5047  ac_status=$?
5048  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5050  { (case "(($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_try") 2>&5
5057  ac_status=$?
5058  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059  (exit $ac_status); }; }; then
5060  :
5061else
5062  $as_echo "$as_me: program exited with status $ac_status" >&5
5063$as_echo "$as_me: failed program was:" >&5
5064sed 's/^/| /' conftest.$ac_ext >&5
5065
5066( exit $ac_status )
5067ac_cv_header_stdc=no
5068fi
5069rm -rf conftest.dSYM
5070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5071fi
5072
5073
5074fi
5075fi
5076{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5077$as_echo "$ac_cv_header_stdc" >&6; }
5078if test $ac_cv_header_stdc = yes; then
5079
5080cat >>confdefs.h <<\_ACEOF
5081#define STDC_HEADERS 1
5082_ACEOF
5083
5084fi
5085
5086# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5097		  inttypes.h stdint.h unistd.h
5098do
5099as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5100{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5101$as_echo_n "checking for $ac_header... " >&6; }
5102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5103  $as_echo_n "(cached) " >&6
5104else
5105  cat >conftest.$ac_ext <<_ACEOF
5106/* confdefs.h.  */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5110/* end confdefs.h.  */
5111$ac_includes_default
5112
5113#include <$ac_header>
5114_ACEOF
5115rm -f conftest.$ac_objext
5116if { (ac_try="$ac_compile"
5117case "(($ac_try" in
5118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119  *) ac_try_echo=$ac_try;;
5120esac
5121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5122$as_echo "$ac_try_echo") >&5
5123  (eval "$ac_compile") 2>conftest.er1
5124  ac_status=$?
5125  grep -v '^ *+' conftest.er1 >conftest.err
5126  rm -f conftest.er1
5127  cat conftest.err >&5
5128  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129  (exit $ac_status); } && {
5130	 test -z "$ac_c_werror_flag" ||
5131	 test ! -s conftest.err
5132       } && test -s conftest.$ac_objext; then
5133  eval "$as_ac_Header=yes"
5134else
5135  $as_echo "$as_me: failed program was:" >&5
5136sed 's/^/| /' conftest.$ac_ext >&5
5137
5138	eval "$as_ac_Header=no"
5139fi
5140
5141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142fi
5143ac_res=`eval 'as_val=${'$as_ac_Header'}
5144		 $as_echo "$as_val"'`
5145	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5146$as_echo "$ac_res" >&6; }
5147if test `eval 'as_val=${'$as_ac_Header'}
5148		 $as_echo "$as_val"'` = yes; then
5149  cat >>confdefs.h <<_ACEOF
5150#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5151_ACEOF
5152
5153fi
5154
5155done
5156
5157
5158
5159for ac_header in dlfcn.h
5160do
5161as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5163  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5164$as_echo_n "checking for $ac_header... " >&6; }
5165if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5166  $as_echo_n "(cached) " >&6
5167fi
5168ac_res=`eval 'as_val=${'$as_ac_Header'}
5169		 $as_echo "$as_val"'`
5170	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5171$as_echo "$ac_res" >&6; }
5172else
5173  # Is the header compilable?
5174{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5175$as_echo_n "checking $ac_header usability... " >&6; }
5176cat >conftest.$ac_ext <<_ACEOF
5177/* confdefs.h.  */
5178_ACEOF
5179cat confdefs.h >>conftest.$ac_ext
5180cat >>conftest.$ac_ext <<_ACEOF
5181/* end confdefs.h.  */
5182$ac_includes_default
5183#include <$ac_header>
5184_ACEOF
5185rm -f conftest.$ac_objext
5186if { (ac_try="$ac_compile"
5187case "(($ac_try" in
5188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189  *) ac_try_echo=$ac_try;;
5190esac
5191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5192$as_echo "$ac_try_echo") >&5
5193  (eval "$ac_compile") 2>conftest.er1
5194  ac_status=$?
5195  grep -v '^ *+' conftest.er1 >conftest.err
5196  rm -f conftest.er1
5197  cat conftest.err >&5
5198  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199  (exit $ac_status); } && {
5200	 test -z "$ac_c_werror_flag" ||
5201	 test ! -s conftest.err
5202       } && test -s conftest.$ac_objext; then
5203  ac_header_compiler=yes
5204else
5205  $as_echo "$as_me: failed program was:" >&5
5206sed 's/^/| /' conftest.$ac_ext >&5
5207
5208	ac_header_compiler=no
5209fi
5210
5211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5213$as_echo "$ac_header_compiler" >&6; }
5214
5215# Is the header present?
5216{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5217$as_echo_n "checking $ac_header presence... " >&6; }
5218cat >conftest.$ac_ext <<_ACEOF
5219/* confdefs.h.  */
5220_ACEOF
5221cat confdefs.h >>conftest.$ac_ext
5222cat >>conftest.$ac_ext <<_ACEOF
5223/* end confdefs.h.  */
5224#include <$ac_header>
5225_ACEOF
5226if { (ac_try="$ac_cpp conftest.$ac_ext"
5227case "(($ac_try" in
5228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229  *) ac_try_echo=$ac_try;;
5230esac
5231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5232$as_echo "$ac_try_echo") >&5
5233  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5234  ac_status=$?
5235  grep -v '^ *+' conftest.er1 >conftest.err
5236  rm -f conftest.er1
5237  cat conftest.err >&5
5238  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239  (exit $ac_status); } >/dev/null && {
5240	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5241	 test ! -s conftest.err
5242       }; then
5243  ac_header_preproc=yes
5244else
5245  $as_echo "$as_me: failed program was:" >&5
5246sed 's/^/| /' conftest.$ac_ext >&5
5247
5248  ac_header_preproc=no
5249fi
5250
5251rm -f conftest.err conftest.$ac_ext
5252{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5253$as_echo "$ac_header_preproc" >&6; }
5254
5255# So?  What about this header?
5256case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5257  yes:no: )
5258    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5259$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5260    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5261$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5262    ac_header_preproc=yes
5263    ;;
5264  no:yes:* )
5265    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5266$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5267    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5268$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5269    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5270$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5271    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5272$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5273    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5274$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5275    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5276$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5277    ( cat <<\_ASBOX
5278## ---------------------------------------------------------------------- ##
5279## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5280## ---------------------------------------------------------------------- ##
5281_ASBOX
5282     ) | sed "s/^/$as_me: WARNING:     /" >&2
5283    ;;
5284esac
5285{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5286$as_echo_n "checking for $ac_header... " >&6; }
5287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5288  $as_echo_n "(cached) " >&6
5289else
5290  eval "$as_ac_Header=\$ac_header_preproc"
5291fi
5292ac_res=`eval 'as_val=${'$as_ac_Header'}
5293		 $as_echo "$as_val"'`
5294	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5295$as_echo "$ac_res" >&6; }
5296
5297fi
5298if test `eval 'as_val=${'$as_ac_Header'}
5299		 $as_echo "$as_val"'` = yes; then
5300  cat >>confdefs.h <<_ACEOF
5301#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5302_ACEOF
5303
5304fi
5305
5306done
5307
5308ac_ext=cpp
5309ac_cpp='$CXXCPP $CPPFLAGS'
5310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5313if test -z "$CXX"; then
5314  if test -n "$CCC"; then
5315    CXX=$CCC
5316  else
5317    if test -n "$ac_tool_prefix"; then
5318  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5319  do
5320    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5321set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5322{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5323$as_echo_n "checking for $ac_word... " >&6; }
5324if test "${ac_cv_prog_CXX+set}" = set; then
5325  $as_echo_n "(cached) " >&6
5326else
5327  if test -n "$CXX"; then
5328  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5329else
5330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331for as_dir in $PATH
5332do
5333  IFS=$as_save_IFS
5334  test -z "$as_dir" && as_dir=.
5335  for ac_exec_ext in '' $ac_executable_extensions; do
5336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5337    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5338    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5339    break 2
5340  fi
5341done
5342done
5343IFS=$as_save_IFS
5344
5345fi
5346fi
5347CXX=$ac_cv_prog_CXX
5348if test -n "$CXX"; then
5349  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5350$as_echo "$CXX" >&6; }
5351else
5352  { $as_echo "$as_me:$LINENO: result: no" >&5
5353$as_echo "no" >&6; }
5354fi
5355
5356
5357    test -n "$CXX" && break
5358  done
5359fi
5360if test -z "$CXX"; then
5361  ac_ct_CXX=$CXX
5362  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5363do
5364  # Extract the first word of "$ac_prog", so it can be a program name with args.
5365set dummy $ac_prog; ac_word=$2
5366{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5367$as_echo_n "checking for $ac_word... " >&6; }
5368if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5369  $as_echo_n "(cached) " >&6
5370else
5371  if test -n "$ac_ct_CXX"; then
5372  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5373else
5374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375for as_dir in $PATH
5376do
5377  IFS=$as_save_IFS
5378  test -z "$as_dir" && as_dir=.
5379  for ac_exec_ext in '' $ac_executable_extensions; do
5380  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381    ac_cv_prog_ac_ct_CXX="$ac_prog"
5382    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5383    break 2
5384  fi
5385done
5386done
5387IFS=$as_save_IFS
5388
5389fi
5390fi
5391ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5392if test -n "$ac_ct_CXX"; then
5393  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5394$as_echo "$ac_ct_CXX" >&6; }
5395else
5396  { $as_echo "$as_me:$LINENO: result: no" >&5
5397$as_echo "no" >&6; }
5398fi
5399
5400
5401  test -n "$ac_ct_CXX" && break
5402done
5403
5404  if test "x$ac_ct_CXX" = x; then
5405    CXX="g++"
5406  else
5407    case $cross_compiling:$ac_tool_warned in
5408yes:)
5409{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5410whose name does not start with the host triplet.  If you think this
5411configuration is useful to you, please write to autoconf@gnu.org." >&5
5412$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5413whose name does not start with the host triplet.  If you think this
5414configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5415ac_tool_warned=yes ;;
5416esac
5417    CXX=$ac_ct_CXX
5418  fi
5419fi
5420
5421  fi
5422fi
5423# Provide some information about the compiler.
5424$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5425set X $ac_compile
5426ac_compiler=$2
5427{ (ac_try="$ac_compiler --version >&5"
5428case "(($ac_try" in
5429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430  *) ac_try_echo=$ac_try;;
5431esac
5432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5433$as_echo "$ac_try_echo") >&5
5434  (eval "$ac_compiler --version >&5") 2>&5
5435  ac_status=$?
5436  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437  (exit $ac_status); }
5438{ (ac_try="$ac_compiler -v >&5"
5439case "(($ac_try" in
5440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441  *) ac_try_echo=$ac_try;;
5442esac
5443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5444$as_echo "$ac_try_echo") >&5
5445  (eval "$ac_compiler -v >&5") 2>&5
5446  ac_status=$?
5447  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448  (exit $ac_status); }
5449{ (ac_try="$ac_compiler -V >&5"
5450case "(($ac_try" in
5451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5452  *) ac_try_echo=$ac_try;;
5453esac
5454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5455$as_echo "$ac_try_echo") >&5
5456  (eval "$ac_compiler -V >&5") 2>&5
5457  ac_status=$?
5458  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459  (exit $ac_status); }
5460
5461{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5462$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5463if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5464  $as_echo_n "(cached) " >&6
5465else
5466  cat >conftest.$ac_ext <<_ACEOF
5467/* confdefs.h.  */
5468_ACEOF
5469cat confdefs.h >>conftest.$ac_ext
5470cat >>conftest.$ac_ext <<_ACEOF
5471/* end confdefs.h.  */
5472
5473int
5474main ()
5475{
5476#ifndef __GNUC__
5477       choke me
5478#endif
5479
5480  ;
5481  return 0;
5482}
5483_ACEOF
5484rm -f conftest.$ac_objext
5485if { (ac_try="$ac_compile"
5486case "(($ac_try" in
5487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488  *) ac_try_echo=$ac_try;;
5489esac
5490eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5491$as_echo "$ac_try_echo") >&5
5492  (eval "$ac_compile") 2>conftest.er1
5493  ac_status=$?
5494  grep -v '^ *+' conftest.er1 >conftest.err
5495  rm -f conftest.er1
5496  cat conftest.err >&5
5497  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498  (exit $ac_status); } && {
5499	 test -z "$ac_cxx_werror_flag" ||
5500	 test ! -s conftest.err
5501       } && test -s conftest.$ac_objext; then
5502  ac_compiler_gnu=yes
5503else
5504  $as_echo "$as_me: failed program was:" >&5
5505sed 's/^/| /' conftest.$ac_ext >&5
5506
5507	ac_compiler_gnu=no
5508fi
5509
5510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5512
5513fi
5514{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5515$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5516if test $ac_compiler_gnu = yes; then
5517  GXX=yes
5518else
5519  GXX=
5520fi
5521ac_test_CXXFLAGS=${CXXFLAGS+set}
5522ac_save_CXXFLAGS=$CXXFLAGS
5523{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5524$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5525if test "${ac_cv_prog_cxx_g+set}" = set; then
5526  $as_echo_n "(cached) " >&6
5527else
5528  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5529   ac_cxx_werror_flag=yes
5530   ac_cv_prog_cxx_g=no
5531   CXXFLAGS="-g"
5532   cat >conftest.$ac_ext <<_ACEOF
5533/* confdefs.h.  */
5534_ACEOF
5535cat confdefs.h >>conftest.$ac_ext
5536cat >>conftest.$ac_ext <<_ACEOF
5537/* end confdefs.h.  */
5538
5539int
5540main ()
5541{
5542
5543  ;
5544  return 0;
5545}
5546_ACEOF
5547rm -f conftest.$ac_objext
5548if { (ac_try="$ac_compile"
5549case "(($ac_try" in
5550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551  *) ac_try_echo=$ac_try;;
5552esac
5553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5554$as_echo "$ac_try_echo") >&5
5555  (eval "$ac_compile") 2>conftest.er1
5556  ac_status=$?
5557  grep -v '^ *+' conftest.er1 >conftest.err
5558  rm -f conftest.er1
5559  cat conftest.err >&5
5560  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561  (exit $ac_status); } && {
5562	 test -z "$ac_cxx_werror_flag" ||
5563	 test ! -s conftest.err
5564       } && test -s conftest.$ac_objext; then
5565  ac_cv_prog_cxx_g=yes
5566else
5567  $as_echo "$as_me: failed program was:" >&5
5568sed 's/^/| /' conftest.$ac_ext >&5
5569
5570	CXXFLAGS=""
5571      cat >conftest.$ac_ext <<_ACEOF
5572/* confdefs.h.  */
5573_ACEOF
5574cat confdefs.h >>conftest.$ac_ext
5575cat >>conftest.$ac_ext <<_ACEOF
5576/* end confdefs.h.  */
5577
5578int
5579main ()
5580{
5581
5582  ;
5583  return 0;
5584}
5585_ACEOF
5586rm -f conftest.$ac_objext
5587if { (ac_try="$ac_compile"
5588case "(($ac_try" in
5589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590  *) ac_try_echo=$ac_try;;
5591esac
5592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5593$as_echo "$ac_try_echo") >&5
5594  (eval "$ac_compile") 2>conftest.er1
5595  ac_status=$?
5596  grep -v '^ *+' conftest.er1 >conftest.err
5597  rm -f conftest.er1
5598  cat conftest.err >&5
5599  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600  (exit $ac_status); } && {
5601	 test -z "$ac_cxx_werror_flag" ||
5602	 test ! -s conftest.err
5603       } && test -s conftest.$ac_objext; then
5604  :
5605else
5606  $as_echo "$as_me: failed program was:" >&5
5607sed 's/^/| /' conftest.$ac_ext >&5
5608
5609	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5610	 CXXFLAGS="-g"
5611	 cat >conftest.$ac_ext <<_ACEOF
5612/* confdefs.h.  */
5613_ACEOF
5614cat confdefs.h >>conftest.$ac_ext
5615cat >>conftest.$ac_ext <<_ACEOF
5616/* end confdefs.h.  */
5617
5618int
5619main ()
5620{
5621
5622  ;
5623  return 0;
5624}
5625_ACEOF
5626rm -f conftest.$ac_objext
5627if { (ac_try="$ac_compile"
5628case "(($ac_try" in
5629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630  *) ac_try_echo=$ac_try;;
5631esac
5632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5633$as_echo "$ac_try_echo") >&5
5634  (eval "$ac_compile") 2>conftest.er1
5635  ac_status=$?
5636  grep -v '^ *+' conftest.er1 >conftest.err
5637  rm -f conftest.er1
5638  cat conftest.err >&5
5639  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640  (exit $ac_status); } && {
5641	 test -z "$ac_cxx_werror_flag" ||
5642	 test ! -s conftest.err
5643       } && test -s conftest.$ac_objext; then
5644  ac_cv_prog_cxx_g=yes
5645else
5646  $as_echo "$as_me: failed program was:" >&5
5647sed 's/^/| /' conftest.$ac_ext >&5
5648
5649
5650fi
5651
5652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653fi
5654
5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656fi
5657
5658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5660fi
5661{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5662$as_echo "$ac_cv_prog_cxx_g" >&6; }
5663if test "$ac_test_CXXFLAGS" = set; then
5664  CXXFLAGS=$ac_save_CXXFLAGS
5665elif test $ac_cv_prog_cxx_g = yes; then
5666  if test "$GXX" = yes; then
5667    CXXFLAGS="-g -O2"
5668  else
5669    CXXFLAGS="-g"
5670  fi
5671else
5672  if test "$GXX" = yes; then
5673    CXXFLAGS="-O2"
5674  else
5675    CXXFLAGS=
5676  fi
5677fi
5678ac_ext=cpp
5679ac_cpp='$CXXCPP $CPPFLAGS'
5680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5683
5684depcc="$CXX"  am_compiler_list=
5685
5686{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5687$as_echo_n "checking dependency style of $depcc... " >&6; }
5688if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5689  $as_echo_n "(cached) " >&6
5690else
5691  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5692  # We make a subdir and do the tests there.  Otherwise we can end up
5693  # making bogus files that we don't know about and never remove.  For
5694  # instance it was reported that on HP-UX the gcc test will end up
5695  # making a dummy file named `D' -- because `-MD' means `put the output
5696  # in D'.
5697  mkdir conftest.dir
5698  # Copy depcomp to subdir because otherwise we won't find it if we're
5699  # using a relative directory.
5700  cp "$am_depcomp" conftest.dir
5701  cd conftest.dir
5702  # We will build objects and dependencies in a subdirectory because
5703  # it helps to detect inapplicable dependency modes.  For instance
5704  # both Tru64's cc and ICC support -MD to output dependencies as a
5705  # side effect of compilation, but ICC will put the dependencies in
5706  # the current directory while Tru64 will put them in the object
5707  # directory.
5708  mkdir sub
5709
5710  am_cv_CXX_dependencies_compiler_type=none
5711  if test "$am_compiler_list" = ""; then
5712     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5713  fi
5714  for depmode in $am_compiler_list; do
5715    # Setup a source with many dependencies, because some compilers
5716    # like to wrap large dependency lists on column 80 (with \), and
5717    # we should not choose a depcomp mode which is confused by this.
5718    #
5719    # We need to recreate these files for each test, as the compiler may
5720    # overwrite some of them when testing with obscure command lines.
5721    # This happens at least with the AIX C compiler.
5722    : > sub/conftest.c
5723    for i in 1 2 3 4 5 6; do
5724      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5725      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5726      # Solaris 8's {/usr,}/bin/sh.
5727      touch sub/conftst$i.h
5728    done
5729    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5730
5731    case $depmode in
5732    nosideeffect)
5733      # after this tag, mechanisms are not by side-effect, so they'll
5734      # only be used when explicitly requested
5735      if test "x$enable_dependency_tracking" = xyes; then
5736	continue
5737      else
5738	break
5739      fi
5740      ;;
5741    none) break ;;
5742    esac
5743    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5744    # mode.  It turns out that the SunPro C++ compiler does not properly
5745    # handle `-M -o', and we need to detect this.
5746    if depmode=$depmode \
5747       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5748       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5749       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5750         >/dev/null 2>conftest.err &&
5751       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5752       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5753       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5754       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5755      # icc doesn't choke on unknown options, it will just issue warnings
5756      # or remarks (even with -Werror).  So we grep stderr for any message
5757      # that says an option was ignored or not supported.
5758      # When given -MP, icc 7.0 and 7.1 complain thusly:
5759      #   icc: Command line warning: ignoring option '-M'; no argument required
5760      # The diagnosis changed in icc 8.0:
5761      #   icc: Command line remark: option '-MP' not supported
5762      if (grep 'ignoring option' conftest.err ||
5763          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5764        am_cv_CXX_dependencies_compiler_type=$depmode
5765        break
5766      fi
5767    fi
5768  done
5769
5770  cd ..
5771  rm -rf conftest.dir
5772else
5773  am_cv_CXX_dependencies_compiler_type=none
5774fi
5775
5776fi
5777{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5778$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5779CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5780
5781 if
5782  test "x$enable_dependency_tracking" != xno \
5783  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5784  am__fastdepCXX_TRUE=
5785  am__fastdepCXX_FALSE='#'
5786else
5787  am__fastdepCXX_TRUE='#'
5788  am__fastdepCXX_FALSE=
5789fi
5790
5791
5792
5793
5794if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5795    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5796    (test "X$CXX" != "Xg++"))) ; then
5797  ac_ext=cpp
5798ac_cpp='$CXXCPP $CPPFLAGS'
5799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5802{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5803$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5804if test -z "$CXXCPP"; then
5805  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5806  $as_echo_n "(cached) " >&6
5807else
5808      # Double quotes because CXXCPP needs to be expanded
5809    for CXXCPP in "$CXX -E" "/lib/cpp"
5810    do
5811      ac_preproc_ok=false
5812for ac_cxx_preproc_warn_flag in '' yes
5813do
5814  # Use a header file that comes with gcc, so configuring glibc
5815  # with a fresh cross-compiler works.
5816  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5817  # <limits.h> exists even on freestanding compilers.
5818  # On the NeXT, cc -E runs the code through the compiler's parser,
5819  # not just through cpp. "Syntax error" is here to catch this case.
5820  cat >conftest.$ac_ext <<_ACEOF
5821/* confdefs.h.  */
5822_ACEOF
5823cat confdefs.h >>conftest.$ac_ext
5824cat >>conftest.$ac_ext <<_ACEOF
5825/* end confdefs.h.  */
5826#ifdef __STDC__
5827# include <limits.h>
5828#else
5829# include <assert.h>
5830#endif
5831		     Syntax error
5832_ACEOF
5833if { (ac_try="$ac_cpp conftest.$ac_ext"
5834case "(($ac_try" in
5835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836  *) ac_try_echo=$ac_try;;
5837esac
5838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5839$as_echo "$ac_try_echo") >&5
5840  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5841  ac_status=$?
5842  grep -v '^ *+' conftest.er1 >conftest.err
5843  rm -f conftest.er1
5844  cat conftest.err >&5
5845  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846  (exit $ac_status); } >/dev/null && {
5847	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5848	 test ! -s conftest.err
5849       }; then
5850  :
5851else
5852  $as_echo "$as_me: failed program was:" >&5
5853sed 's/^/| /' conftest.$ac_ext >&5
5854
5855  # Broken: fails on valid input.
5856continue
5857fi
5858
5859rm -f conftest.err conftest.$ac_ext
5860
5861  # OK, works on sane cases.  Now check whether nonexistent headers
5862  # can be detected and how.
5863  cat >conftest.$ac_ext <<_ACEOF
5864/* confdefs.h.  */
5865_ACEOF
5866cat confdefs.h >>conftest.$ac_ext
5867cat >>conftest.$ac_ext <<_ACEOF
5868/* end confdefs.h.  */
5869#include <ac_nonexistent.h>
5870_ACEOF
5871if { (ac_try="$ac_cpp conftest.$ac_ext"
5872case "(($ac_try" in
5873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874  *) ac_try_echo=$ac_try;;
5875esac
5876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5877$as_echo "$ac_try_echo") >&5
5878  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5879  ac_status=$?
5880  grep -v '^ *+' conftest.er1 >conftest.err
5881  rm -f conftest.er1
5882  cat conftest.err >&5
5883  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884  (exit $ac_status); } >/dev/null && {
5885	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5886	 test ! -s conftest.err
5887       }; then
5888  # Broken: success on invalid input.
5889continue
5890else
5891  $as_echo "$as_me: failed program was:" >&5
5892sed 's/^/| /' conftest.$ac_ext >&5
5893
5894  # Passes both tests.
5895ac_preproc_ok=:
5896break
5897fi
5898
5899rm -f conftest.err conftest.$ac_ext
5900
5901done
5902# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5903rm -f conftest.err conftest.$ac_ext
5904if $ac_preproc_ok; then
5905  break
5906fi
5907
5908    done
5909    ac_cv_prog_CXXCPP=$CXXCPP
5910
5911fi
5912  CXXCPP=$ac_cv_prog_CXXCPP
5913else
5914  ac_cv_prog_CXXCPP=$CXXCPP
5915fi
5916{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5917$as_echo "$CXXCPP" >&6; }
5918ac_preproc_ok=false
5919for ac_cxx_preproc_warn_flag in '' yes
5920do
5921  # Use a header file that comes with gcc, so configuring glibc
5922  # with a fresh cross-compiler works.
5923  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5924  # <limits.h> exists even on freestanding compilers.
5925  # On the NeXT, cc -E runs the code through the compiler's parser,
5926  # not just through cpp. "Syntax error" is here to catch this case.
5927  cat >conftest.$ac_ext <<_ACEOF
5928/* confdefs.h.  */
5929_ACEOF
5930cat confdefs.h >>conftest.$ac_ext
5931cat >>conftest.$ac_ext <<_ACEOF
5932/* end confdefs.h.  */
5933#ifdef __STDC__
5934# include <limits.h>
5935#else
5936# include <assert.h>
5937#endif
5938		     Syntax error
5939_ACEOF
5940if { (ac_try="$ac_cpp conftest.$ac_ext"
5941case "(($ac_try" in
5942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943  *) ac_try_echo=$ac_try;;
5944esac
5945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5946$as_echo "$ac_try_echo") >&5
5947  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5948  ac_status=$?
5949  grep -v '^ *+' conftest.er1 >conftest.err
5950  rm -f conftest.er1
5951  cat conftest.err >&5
5952  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953  (exit $ac_status); } >/dev/null && {
5954	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5955	 test ! -s conftest.err
5956       }; then
5957  :
5958else
5959  $as_echo "$as_me: failed program was:" >&5
5960sed 's/^/| /' conftest.$ac_ext >&5
5961
5962  # Broken: fails on valid input.
5963continue
5964fi
5965
5966rm -f conftest.err conftest.$ac_ext
5967
5968  # OK, works on sane cases.  Now check whether nonexistent headers
5969  # can be detected and how.
5970  cat >conftest.$ac_ext <<_ACEOF
5971/* confdefs.h.  */
5972_ACEOF
5973cat confdefs.h >>conftest.$ac_ext
5974cat >>conftest.$ac_ext <<_ACEOF
5975/* end confdefs.h.  */
5976#include <ac_nonexistent.h>
5977_ACEOF
5978if { (ac_try="$ac_cpp conftest.$ac_ext"
5979case "(($ac_try" in
5980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981  *) ac_try_echo=$ac_try;;
5982esac
5983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5984$as_echo "$ac_try_echo") >&5
5985  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5986  ac_status=$?
5987  grep -v '^ *+' conftest.er1 >conftest.err
5988  rm -f conftest.er1
5989  cat conftest.err >&5
5990  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991  (exit $ac_status); } >/dev/null && {
5992	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5993	 test ! -s conftest.err
5994       }; then
5995  # Broken: success on invalid input.
5996continue
5997else
5998  $as_echo "$as_me: failed program was:" >&5
5999sed 's/^/| /' conftest.$ac_ext >&5
6000
6001  # Passes both tests.
6002ac_preproc_ok=:
6003break
6004fi
6005
6006rm -f conftest.err conftest.$ac_ext
6007
6008done
6009# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6010rm -f conftest.err conftest.$ac_ext
6011if $ac_preproc_ok; then
6012  :
6013else
6014  { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6015See \`config.log' for more details." >&5
6016$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6017See \`config.log' for more details." >&2;}
6018   { (exit 1); exit 1; }; }
6019fi
6020
6021ac_ext=cpp
6022ac_cpp='$CXXCPP $CPPFLAGS'
6023ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6024ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6025ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6026
6027fi
6028
6029
6030ac_ext=f
6031ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6032ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6033ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6034if test -n "$ac_tool_prefix"; then
6035  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
6036  do
6037    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6038set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6039{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6040$as_echo_n "checking for $ac_word... " >&6; }
6041if test "${ac_cv_prog_F77+set}" = set; then
6042  $as_echo_n "(cached) " >&6
6043else
6044  if test -n "$F77"; then
6045  ac_cv_prog_F77="$F77" # Let the user override the test.
6046else
6047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048for as_dir in $PATH
6049do
6050  IFS=$as_save_IFS
6051  test -z "$as_dir" && as_dir=.
6052  for ac_exec_ext in '' $ac_executable_extensions; do
6053  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6055    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6056    break 2
6057  fi
6058done
6059done
6060IFS=$as_save_IFS
6061
6062fi
6063fi
6064F77=$ac_cv_prog_F77
6065if test -n "$F77"; then
6066  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6067$as_echo "$F77" >&6; }
6068else
6069  { $as_echo "$as_me:$LINENO: result: no" >&5
6070$as_echo "no" >&6; }
6071fi
6072
6073
6074    test -n "$F77" && break
6075  done
6076fi
6077if test -z "$F77"; then
6078  ac_ct_F77=$F77
6079  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
6080do
6081  # Extract the first word of "$ac_prog", so it can be a program name with args.
6082set dummy $ac_prog; ac_word=$2
6083{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6084$as_echo_n "checking for $ac_word... " >&6; }
6085if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6086  $as_echo_n "(cached) " >&6
6087else
6088  if test -n "$ac_ct_F77"; then
6089  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6090else
6091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092for as_dir in $PATH
6093do
6094  IFS=$as_save_IFS
6095  test -z "$as_dir" && as_dir=.
6096  for ac_exec_ext in '' $ac_executable_extensions; do
6097  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6098    ac_cv_prog_ac_ct_F77="$ac_prog"
6099    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6100    break 2
6101  fi
6102done
6103done
6104IFS=$as_save_IFS
6105
6106fi
6107fi
6108ac_ct_F77=$ac_cv_prog_ac_ct_F77
6109if test -n "$ac_ct_F77"; then
6110  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6111$as_echo "$ac_ct_F77" >&6; }
6112else
6113  { $as_echo "$as_me:$LINENO: result: no" >&5
6114$as_echo "no" >&6; }
6115fi
6116
6117
6118  test -n "$ac_ct_F77" && break
6119done
6120
6121  if test "x$ac_ct_F77" = x; then
6122    F77=""
6123  else
6124    case $cross_compiling:$ac_tool_warned in
6125yes:)
6126{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6127whose name does not start with the host triplet.  If you think this
6128configuration is useful to you, please write to autoconf@gnu.org." >&5
6129$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6130whose name does not start with the host triplet.  If you think this
6131configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6132ac_tool_warned=yes ;;
6133esac
6134    F77=$ac_ct_F77
6135  fi
6136fi
6137
6138
6139# Provide some information about the compiler.
6140$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6141set X $ac_compile
6142ac_compiler=$2
6143{ (ac_try="$ac_compiler --version >&5"
6144case "(($ac_try" in
6145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146  *) ac_try_echo=$ac_try;;
6147esac
6148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6149$as_echo "$ac_try_echo") >&5
6150  (eval "$ac_compiler --version >&5") 2>&5
6151  ac_status=$?
6152  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153  (exit $ac_status); }
6154{ (ac_try="$ac_compiler -v >&5"
6155case "(($ac_try" in
6156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157  *) ac_try_echo=$ac_try;;
6158esac
6159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6160$as_echo "$ac_try_echo") >&5
6161  (eval "$ac_compiler -v >&5") 2>&5
6162  ac_status=$?
6163  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164  (exit $ac_status); }
6165{ (ac_try="$ac_compiler -V >&5"
6166case "(($ac_try" in
6167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168  *) ac_try_echo=$ac_try;;
6169esac
6170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6171$as_echo "$ac_try_echo") >&5
6172  (eval "$ac_compiler -V >&5") 2>&5
6173  ac_status=$?
6174  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175  (exit $ac_status); }
6176rm -f a.out
6177
6178# If we don't use `.F' as extension, the preprocessor is not run on the
6179# input file.  (Note that this only needs to work for GNU compilers.)
6180ac_save_ext=$ac_ext
6181ac_ext=F
6182{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6183$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6184if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6185  $as_echo_n "(cached) " >&6
6186else
6187  cat >conftest.$ac_ext <<_ACEOF
6188      program main
6189#ifndef __GNUC__
6190       choke me
6191#endif
6192
6193      end
6194_ACEOF
6195rm -f conftest.$ac_objext
6196if { (ac_try="$ac_compile"
6197case "(($ac_try" in
6198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199  *) ac_try_echo=$ac_try;;
6200esac
6201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6202$as_echo "$ac_try_echo") >&5
6203  (eval "$ac_compile") 2>conftest.er1
6204  ac_status=$?
6205  grep -v '^ *+' conftest.er1 >conftest.err
6206  rm -f conftest.er1
6207  cat conftest.err >&5
6208  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209  (exit $ac_status); } && {
6210	 test -z "$ac_f77_werror_flag" ||
6211	 test ! -s conftest.err
6212       } && test -s conftest.$ac_objext; then
6213  ac_compiler_gnu=yes
6214else
6215  $as_echo "$as_me: failed program was:" >&5
6216sed 's/^/| /' conftest.$ac_ext >&5
6217
6218	ac_compiler_gnu=no
6219fi
6220
6221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6223
6224fi
6225{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6226$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6227ac_ext=$ac_save_ext
6228ac_test_FFLAGS=${FFLAGS+set}
6229ac_save_FFLAGS=$FFLAGS
6230FFLAGS=
6231{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6232$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6233if test "${ac_cv_prog_f77_g+set}" = set; then
6234  $as_echo_n "(cached) " >&6
6235else
6236  FFLAGS=-g
6237cat >conftest.$ac_ext <<_ACEOF
6238      program main
6239
6240      end
6241_ACEOF
6242rm -f conftest.$ac_objext
6243if { (ac_try="$ac_compile"
6244case "(($ac_try" in
6245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246  *) ac_try_echo=$ac_try;;
6247esac
6248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6249$as_echo "$ac_try_echo") >&5
6250  (eval "$ac_compile") 2>conftest.er1
6251  ac_status=$?
6252  grep -v '^ *+' conftest.er1 >conftest.err
6253  rm -f conftest.er1
6254  cat conftest.err >&5
6255  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256  (exit $ac_status); } && {
6257	 test -z "$ac_f77_werror_flag" ||
6258	 test ! -s conftest.err
6259       } && test -s conftest.$ac_objext; then
6260  ac_cv_prog_f77_g=yes
6261else
6262  $as_echo "$as_me: failed program was:" >&5
6263sed 's/^/| /' conftest.$ac_ext >&5
6264
6265	ac_cv_prog_f77_g=no
6266fi
6267
6268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269
6270fi
6271{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6272$as_echo "$ac_cv_prog_f77_g" >&6; }
6273if test "$ac_test_FFLAGS" = set; then
6274  FFLAGS=$ac_save_FFLAGS
6275elif test $ac_cv_prog_f77_g = yes; then
6276  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6277    FFLAGS="-g -O2"
6278  else
6279    FFLAGS="-g"
6280  fi
6281else
6282  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6283    FFLAGS="-O2"
6284  else
6285    FFLAGS=
6286  fi
6287fi
6288
6289if test $ac_compiler_gnu = yes; then
6290  G77=yes
6291else
6292  G77=
6293fi
6294ac_ext=c
6295ac_cpp='$CPP $CPPFLAGS'
6296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6298ac_compiler_gnu=$ac_cv_c_compiler_gnu
6299
6300
6301
6302# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6303# find the maximum length of command line arguments
6304{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6305$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6306if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6307  $as_echo_n "(cached) " >&6
6308else
6309    i=0
6310  teststring="ABCD"
6311
6312  case $build_os in
6313  msdosdjgpp*)
6314    # On DJGPP, this test can blow up pretty badly due to problems in libc
6315    # (any single argument exceeding 2000 bytes causes a buffer overrun
6316    # during glob expansion).  Even if it were fixed, the result of this
6317    # check would be larger than it should be.
6318    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6319    ;;
6320
6321  gnu*)
6322    # Under GNU Hurd, this test is not required because there is
6323    # no limit to the length of command line arguments.
6324    # Libtool will interpret -1 as no limit whatsoever
6325    lt_cv_sys_max_cmd_len=-1;
6326    ;;
6327
6328  cygwin* | mingw*)
6329    # On Win9x/ME, this test blows up -- it succeeds, but takes
6330    # about 5 minutes as the teststring grows exponentially.
6331    # Worse, since 9x/ME are not pre-emptively multitasking,
6332    # you end up with a "frozen" computer, even though with patience
6333    # the test eventually succeeds (with a max line length of 256k).
6334    # Instead, let's just punt: use the minimum linelength reported by
6335    # all of the supported platforms: 8192 (on NT/2K/XP).
6336    lt_cv_sys_max_cmd_len=8192;
6337    ;;
6338
6339  amigaos*)
6340    # On AmigaOS with pdksh, this test takes hours, literally.
6341    # So we just punt and use a minimum line length of 8192.
6342    lt_cv_sys_max_cmd_len=8192;
6343    ;;
6344
6345  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6346    # This has been around since 386BSD, at least.  Likely further.
6347    if test -x /sbin/sysctl; then
6348      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6349    elif test -x /usr/sbin/sysctl; then
6350      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6351    else
6352      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6353    fi
6354    # And add a safety zone
6355    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6356    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6357    ;;
6358
6359  interix*)
6360    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6361    lt_cv_sys_max_cmd_len=196608
6362    ;;
6363
6364  osf*)
6365    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6366    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6367    # nice to cause kernel panics so lets avoid the loop below.
6368    # First set a reasonable default.
6369    lt_cv_sys_max_cmd_len=16384
6370    #
6371    if test -x /sbin/sysconfig; then
6372      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6373        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6374      esac
6375    fi
6376    ;;
6377  sco3.2v5*)
6378    lt_cv_sys_max_cmd_len=102400
6379    ;;
6380  sysv5* | sco5v6* | sysv4.2uw2*)
6381    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6382    if test -n "$kargmax"; then
6383      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6384    else
6385      lt_cv_sys_max_cmd_len=32768
6386    fi
6387    ;;
6388  *)
6389    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6390    if test -n "$lt_cv_sys_max_cmd_len"; then
6391      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6392      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6393    else
6394      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6395      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6396	       = "XX$teststring") >/dev/null 2>&1 &&
6397	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6398	      lt_cv_sys_max_cmd_len=$new_result &&
6399	      test $i != 17 # 1/2 MB should be enough
6400      do
6401        i=`expr $i + 1`
6402        teststring=$teststring$teststring
6403      done
6404      teststring=
6405      # Add a significant safety factor because C++ compilers can tack on massive
6406      # amounts of additional arguments before passing them to the linker.
6407      # It appears as though 1/2 is a usable value.
6408      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6409    fi
6410    ;;
6411  esac
6412
6413fi
6414
6415if test -n $lt_cv_sys_max_cmd_len ; then
6416  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6417$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6418else
6419  { $as_echo "$as_me:$LINENO: result: none" >&5
6420$as_echo "none" >&6; }
6421fi
6422
6423
6424
6425
6426
6427# Check for command to grab the raw symbol name followed by C symbol from nm.
6428{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6429$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6430if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6431  $as_echo_n "(cached) " >&6
6432else
6433
6434# These are sane defaults that work on at least a few old systems.
6435# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6436
6437# Character class describing NM global symbol codes.
6438symcode='[BCDEGRST]'
6439
6440# Regexp to match symbols that can be accessed directly from C.
6441sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6442
6443# Transform an extracted symbol line into a proper C declaration
6444lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6445
6446# Transform an extracted symbol line into symbol name and symbol address
6447lt_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'"
6448
6449# Define system-specific variables.
6450case $host_os in
6451aix*)
6452  symcode='[BCDT]'
6453  ;;
6454cygwin* | mingw* | pw32*)
6455  symcode='[ABCDGISTW]'
6456  ;;
6457hpux*) # Its linker distinguishes data from code symbols
6458  if test "$host_cpu" = ia64; then
6459    symcode='[ABCDEGRST]'
6460  fi
6461  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6462  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'"
6463  ;;
6464linux* | k*bsd*-gnu)
6465  if test "$host_cpu" = ia64; then
6466    symcode='[ABCDGIRSTW]'
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  fi
6470  ;;
6471irix* | nonstopux*)
6472  symcode='[BCDEGRST]'
6473  ;;
6474osf*)
6475  symcode='[BCDEGQRST]'
6476  ;;
6477solaris*)
6478  symcode='[BDRT]'
6479  ;;
6480sco3.2v5*)
6481  symcode='[DT]'
6482  ;;
6483sysv4.2uw2*)
6484  symcode='[DT]'
6485  ;;
6486sysv5* | sco5v6* | unixware* | OpenUNIX*)
6487  symcode='[ABDT]'
6488  ;;
6489sysv4)
6490  symcode='[DFNSTU]'
6491  ;;
6492esac
6493
6494# Handle CRLF in mingw tool chain
6495opt_cr=
6496case $build_os in
6497mingw*)
6498  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6499  ;;
6500esac
6501
6502# If we're using GNU nm, then use its standard symbol codes.
6503case `$NM -V 2>&1` in
6504*GNU* | *'with BFD'*)
6505  symcode='[ABCDGIRSTW]' ;;
6506esac
6507
6508# Try without a prefix undercore, then with it.
6509for ac_symprfx in "" "_"; do
6510
6511  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6512  symxfrm="\\1 $ac_symprfx\\2 \\2"
6513
6514  # Write the raw and C identifiers.
6515  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6516
6517  # Check to see that the pipe works correctly.
6518  pipe_works=no
6519
6520  rm -f conftest*
6521  cat > conftest.$ac_ext <<EOF
6522#ifdef __cplusplus
6523extern "C" {
6524#endif
6525char nm_test_var;
6526void nm_test_func(){}
6527#ifdef __cplusplus
6528}
6529#endif
6530int main(){nm_test_var='a';nm_test_func();return(0);}
6531EOF
6532
6533  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6534  (eval $ac_compile) 2>&5
6535  ac_status=$?
6536  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537  (exit $ac_status); }; then
6538    # Now try to grab the symbols.
6539    nlist=conftest.nm
6540    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6541  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6542  ac_status=$?
6543  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544  (exit $ac_status); } && test -s "$nlist"; then
6545      # Try sorting and uniquifying the output.
6546      if sort "$nlist" | uniq > "$nlist"T; then
6547	mv -f "$nlist"T "$nlist"
6548      else
6549	rm -f "$nlist"T
6550      fi
6551
6552      # Make sure that we snagged all the symbols we need.
6553      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6554	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6555	  cat <<EOF > conftest.$ac_ext
6556#ifdef __cplusplus
6557extern "C" {
6558#endif
6559
6560EOF
6561	  # Now generate the symbol file.
6562	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6563
6564	  cat <<EOF >> conftest.$ac_ext
6565#if defined (__STDC__) && __STDC__
6566# define lt_ptr_t void *
6567#else
6568# define lt_ptr_t char *
6569# define const
6570#endif
6571
6572/* The mapping between symbol names and symbols. */
6573const struct {
6574  const char *name;
6575  lt_ptr_t address;
6576}
6577lt_preloaded_symbols[] =
6578{
6579EOF
6580	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6581	  cat <<\EOF >> conftest.$ac_ext
6582  {0, (lt_ptr_t) 0}
6583};
6584
6585#ifdef __cplusplus
6586}
6587#endif
6588EOF
6589	  # Now try linking the two files.
6590	  mv conftest.$ac_objext conftstm.$ac_objext
6591	  lt_save_LIBS="$LIBS"
6592	  lt_save_CFLAGS="$CFLAGS"
6593	  LIBS="conftstm.$ac_objext"
6594	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6595	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6596  (eval $ac_link) 2>&5
6597  ac_status=$?
6598  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6600	    pipe_works=yes
6601	  fi
6602	  LIBS="$lt_save_LIBS"
6603	  CFLAGS="$lt_save_CFLAGS"
6604	else
6605	  echo "cannot find nm_test_func in $nlist" >&5
6606	fi
6607      else
6608	echo "cannot find nm_test_var in $nlist" >&5
6609      fi
6610    else
6611      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6612    fi
6613  else
6614    echo "$progname: failed program was:" >&5
6615    cat conftest.$ac_ext >&5
6616  fi
6617  rm -rf conftest* conftst*
6618
6619  # Do not use the global_symbol_pipe unless it works.
6620  if test "$pipe_works" = yes; then
6621    break
6622  else
6623    lt_cv_sys_global_symbol_pipe=
6624  fi
6625done
6626
6627fi
6628
6629if test -z "$lt_cv_sys_global_symbol_pipe"; then
6630  lt_cv_sys_global_symbol_to_cdecl=
6631fi
6632if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6633  { $as_echo "$as_me:$LINENO: result: failed" >&5
6634$as_echo "failed" >&6; }
6635else
6636  { $as_echo "$as_me:$LINENO: result: ok" >&5
6637$as_echo "ok" >&6; }
6638fi
6639
6640{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6641$as_echo_n "checking for objdir... " >&6; }
6642if test "${lt_cv_objdir+set}" = set; then
6643  $as_echo_n "(cached) " >&6
6644else
6645  rm -f .libs 2>/dev/null
6646mkdir .libs 2>/dev/null
6647if test -d .libs; then
6648  lt_cv_objdir=.libs
6649else
6650  # MS-DOS does not allow filenames that begin with a dot.
6651  lt_cv_objdir=_libs
6652fi
6653rmdir .libs 2>/dev/null
6654fi
6655{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6656$as_echo "$lt_cv_objdir" >&6; }
6657objdir=$lt_cv_objdir
6658
6659
6660
6661
6662
6663case $host_os in
6664aix3*)
6665  # AIX sometimes has problems with the GCC collect2 program.  For some
6666  # reason, if we set the COLLECT_NAMES environment variable, the problems
6667  # vanish in a puff of smoke.
6668  if test "X${COLLECT_NAMES+set}" != Xset; then
6669    COLLECT_NAMES=
6670    export COLLECT_NAMES
6671  fi
6672  ;;
6673esac
6674
6675# Sed substitution that helps us do robust quoting.  It backslashifies
6676# metacharacters that are still active within double-quoted strings.
6677Xsed='sed -e 1s/^X//'
6678sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6679
6680# Same as above, but do not quote variable references.
6681double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6682
6683# Sed substitution to delay expansion of an escaped shell variable in a
6684# double_quote_subst'ed string.
6685delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6686
6687# Sed substitution to avoid accidental globbing in evaled expressions
6688no_glob_subst='s/\*/\\\*/g'
6689
6690# Constants:
6691rm="rm -f"
6692
6693# Global variables:
6694default_ofile=libtool
6695can_build_shared=yes
6696
6697# All known linkers require a `.a' archive for static linking (except MSVC,
6698# which needs '.lib').
6699libext=a
6700ltmain="$ac_aux_dir/ltmain.sh"
6701ofile="$default_ofile"
6702with_gnu_ld="$lt_cv_prog_gnu_ld"
6703
6704if test -n "$ac_tool_prefix"; then
6705  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6706set dummy ${ac_tool_prefix}ar; ac_word=$2
6707{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6708$as_echo_n "checking for $ac_word... " >&6; }
6709if test "${ac_cv_prog_AR+set}" = set; then
6710  $as_echo_n "(cached) " >&6
6711else
6712  if test -n "$AR"; then
6713  ac_cv_prog_AR="$AR" # Let the user override the test.
6714else
6715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716for as_dir in $PATH
6717do
6718  IFS=$as_save_IFS
6719  test -z "$as_dir" && as_dir=.
6720  for ac_exec_ext in '' $ac_executable_extensions; do
6721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722    ac_cv_prog_AR="${ac_tool_prefix}ar"
6723    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724    break 2
6725  fi
6726done
6727done
6728IFS=$as_save_IFS
6729
6730fi
6731fi
6732AR=$ac_cv_prog_AR
6733if test -n "$AR"; then
6734  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6735$as_echo "$AR" >&6; }
6736else
6737  { $as_echo "$as_me:$LINENO: result: no" >&5
6738$as_echo "no" >&6; }
6739fi
6740
6741
6742fi
6743if test -z "$ac_cv_prog_AR"; then
6744  ac_ct_AR=$AR
6745  # Extract the first word of "ar", so it can be a program name with args.
6746set dummy ar; ac_word=$2
6747{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6748$as_echo_n "checking for $ac_word... " >&6; }
6749if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6750  $as_echo_n "(cached) " >&6
6751else
6752  if test -n "$ac_ct_AR"; then
6753  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6754else
6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756for as_dir in $PATH
6757do
6758  IFS=$as_save_IFS
6759  test -z "$as_dir" && as_dir=.
6760  for ac_exec_ext in '' $ac_executable_extensions; do
6761  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6762    ac_cv_prog_ac_ct_AR="ar"
6763    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764    break 2
6765  fi
6766done
6767done
6768IFS=$as_save_IFS
6769
6770fi
6771fi
6772ac_ct_AR=$ac_cv_prog_ac_ct_AR
6773if test -n "$ac_ct_AR"; then
6774  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6775$as_echo "$ac_ct_AR" >&6; }
6776else
6777  { $as_echo "$as_me:$LINENO: result: no" >&5
6778$as_echo "no" >&6; }
6779fi
6780
6781  if test "x$ac_ct_AR" = x; then
6782    AR="false"
6783  else
6784    case $cross_compiling:$ac_tool_warned in
6785yes:)
6786{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6787whose name does not start with the host triplet.  If you think this
6788configuration is useful to you, please write to autoconf@gnu.org." >&5
6789$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6790whose name does not start with the host triplet.  If you think this
6791configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6792ac_tool_warned=yes ;;
6793esac
6794    AR=$ac_ct_AR
6795  fi
6796else
6797  AR="$ac_cv_prog_AR"
6798fi
6799
6800if test -n "$ac_tool_prefix"; then
6801  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6802set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6803{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6804$as_echo_n "checking for $ac_word... " >&6; }
6805if test "${ac_cv_prog_RANLIB+set}" = set; then
6806  $as_echo_n "(cached) " >&6
6807else
6808  if test -n "$RANLIB"; then
6809  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6810else
6811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812for as_dir in $PATH
6813do
6814  IFS=$as_save_IFS
6815  test -z "$as_dir" && as_dir=.
6816  for ac_exec_ext in '' $ac_executable_extensions; do
6817  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6818    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6819    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6820    break 2
6821  fi
6822done
6823done
6824IFS=$as_save_IFS
6825
6826fi
6827fi
6828RANLIB=$ac_cv_prog_RANLIB
6829if test -n "$RANLIB"; then
6830  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6831$as_echo "$RANLIB" >&6; }
6832else
6833  { $as_echo "$as_me:$LINENO: result: no" >&5
6834$as_echo "no" >&6; }
6835fi
6836
6837
6838fi
6839if test -z "$ac_cv_prog_RANLIB"; then
6840  ac_ct_RANLIB=$RANLIB
6841  # Extract the first word of "ranlib", so it can be a program name with args.
6842set dummy ranlib; ac_word=$2
6843{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6844$as_echo_n "checking for $ac_word... " >&6; }
6845if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6846  $as_echo_n "(cached) " >&6
6847else
6848  if test -n "$ac_ct_RANLIB"; then
6849  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6850else
6851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854  IFS=$as_save_IFS
6855  test -z "$as_dir" && as_dir=.
6856  for ac_exec_ext in '' $ac_executable_extensions; do
6857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6858    ac_cv_prog_ac_ct_RANLIB="ranlib"
6859    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860    break 2
6861  fi
6862done
6863done
6864IFS=$as_save_IFS
6865
6866fi
6867fi
6868ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6869if test -n "$ac_ct_RANLIB"; then
6870  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6871$as_echo "$ac_ct_RANLIB" >&6; }
6872else
6873  { $as_echo "$as_me:$LINENO: result: no" >&5
6874$as_echo "no" >&6; }
6875fi
6876
6877  if test "x$ac_ct_RANLIB" = x; then
6878    RANLIB=":"
6879  else
6880    case $cross_compiling:$ac_tool_warned in
6881yes:)
6882{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6883whose name does not start with the host triplet.  If you think this
6884configuration is useful to you, please write to autoconf@gnu.org." >&5
6885$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6886whose name does not start with the host triplet.  If you think this
6887configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6888ac_tool_warned=yes ;;
6889esac
6890    RANLIB=$ac_ct_RANLIB
6891  fi
6892else
6893  RANLIB="$ac_cv_prog_RANLIB"
6894fi
6895
6896if test -n "$ac_tool_prefix"; then
6897  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6898set dummy ${ac_tool_prefix}strip; ac_word=$2
6899{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6900$as_echo_n "checking for $ac_word... " >&6; }
6901if test "${ac_cv_prog_STRIP+set}" = set; then
6902  $as_echo_n "(cached) " >&6
6903else
6904  if test -n "$STRIP"; then
6905  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6906else
6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908for as_dir in $PATH
6909do
6910  IFS=$as_save_IFS
6911  test -z "$as_dir" && as_dir=.
6912  for ac_exec_ext in '' $ac_executable_extensions; do
6913  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6915    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916    break 2
6917  fi
6918done
6919done
6920IFS=$as_save_IFS
6921
6922fi
6923fi
6924STRIP=$ac_cv_prog_STRIP
6925if test -n "$STRIP"; then
6926  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6927$as_echo "$STRIP" >&6; }
6928else
6929  { $as_echo "$as_me:$LINENO: result: no" >&5
6930$as_echo "no" >&6; }
6931fi
6932
6933
6934fi
6935if test -z "$ac_cv_prog_STRIP"; then
6936  ac_ct_STRIP=$STRIP
6937  # Extract the first word of "strip", so it can be a program name with args.
6938set dummy strip; ac_word=$2
6939{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6940$as_echo_n "checking for $ac_word... " >&6; }
6941if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6942  $as_echo_n "(cached) " >&6
6943else
6944  if test -n "$ac_ct_STRIP"; then
6945  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6946else
6947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948for as_dir in $PATH
6949do
6950  IFS=$as_save_IFS
6951  test -z "$as_dir" && as_dir=.
6952  for ac_exec_ext in '' $ac_executable_extensions; do
6953  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954    ac_cv_prog_ac_ct_STRIP="strip"
6955    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956    break 2
6957  fi
6958done
6959done
6960IFS=$as_save_IFS
6961
6962fi
6963fi
6964ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6965if test -n "$ac_ct_STRIP"; then
6966  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6967$as_echo "$ac_ct_STRIP" >&6; }
6968else
6969  { $as_echo "$as_me:$LINENO: result: no" >&5
6970$as_echo "no" >&6; }
6971fi
6972
6973  if test "x$ac_ct_STRIP" = x; then
6974    STRIP=":"
6975  else
6976    case $cross_compiling:$ac_tool_warned in
6977yes:)
6978{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6979whose name does not start with the host triplet.  If you think this
6980configuration is useful to you, please write to autoconf@gnu.org." >&5
6981$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6982whose name does not start with the host triplet.  If you think this
6983configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6984ac_tool_warned=yes ;;
6985esac
6986    STRIP=$ac_ct_STRIP
6987  fi
6988else
6989  STRIP="$ac_cv_prog_STRIP"
6990fi
6991
6992
6993old_CC="$CC"
6994old_CFLAGS="$CFLAGS"
6995
6996# Set sane defaults for various variables
6997test -z "$AR" && AR=ar
6998test -z "$AR_FLAGS" && AR_FLAGS=cru
6999test -z "$AS" && AS=as
7000test -z "$CC" && CC=cc
7001test -z "$LTCC" && LTCC=$CC
7002test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7003test -z "$DLLTOOL" && DLLTOOL=dlltool
7004test -z "$LD" && LD=ld
7005test -z "$LN_S" && LN_S="ln -s"
7006test -z "$MAGIC_CMD" && MAGIC_CMD=file
7007test -z "$NM" && NM=nm
7008test -z "$SED" && SED=sed
7009test -z "$OBJDUMP" && OBJDUMP=objdump
7010test -z "$RANLIB" && RANLIB=:
7011test -z "$STRIP" && STRIP=:
7012test -z "$ac_objext" && ac_objext=o
7013
7014# Determine commands to create old-style static archives.
7015old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7016old_postinstall_cmds='chmod 644 $oldlib'
7017old_postuninstall_cmds=
7018
7019if test -n "$RANLIB"; then
7020  case $host_os in
7021  openbsd*)
7022    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7023    ;;
7024  *)
7025    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7026    ;;
7027  esac
7028  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7029fi
7030
7031for cc_temp in $compiler""; do
7032  case $cc_temp in
7033    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7034    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7035    \-*) ;;
7036    *) break;;
7037  esac
7038done
7039cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7040
7041
7042# Only perform the check for file, if the check method requires it
7043case $deplibs_check_method in
7044file_magic*)
7045  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7046    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7047$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7048if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7049  $as_echo_n "(cached) " >&6
7050else
7051  case $MAGIC_CMD in
7052[\\/*] |  ?:[\\/]*)
7053  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7054  ;;
7055*)
7056  lt_save_MAGIC_CMD="$MAGIC_CMD"
7057  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7058  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7059  for ac_dir in $ac_dummy; do
7060    IFS="$lt_save_ifs"
7061    test -z "$ac_dir" && ac_dir=.
7062    if test -f $ac_dir/${ac_tool_prefix}file; then
7063      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7064      if test -n "$file_magic_test_file"; then
7065	case $deplibs_check_method in
7066	"file_magic "*)
7067	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7068	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7069	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7070	    $EGREP "$file_magic_regex" > /dev/null; then
7071	    :
7072	  else
7073	    cat <<EOF 1>&2
7074
7075*** Warning: the command libtool uses to detect shared libraries,
7076*** $file_magic_cmd, produces output that libtool cannot recognize.
7077*** The result is that libtool may fail to recognize shared libraries
7078*** as such.  This will affect the creation of libtool libraries that
7079*** depend on shared libraries, but programs linked with such libtool
7080*** libraries will work regardless of this problem.  Nevertheless, you
7081*** may want to report the problem to your system manager and/or to
7082*** bug-libtool@gnu.org
7083
7084EOF
7085	  fi ;;
7086	esac
7087      fi
7088      break
7089    fi
7090  done
7091  IFS="$lt_save_ifs"
7092  MAGIC_CMD="$lt_save_MAGIC_CMD"
7093  ;;
7094esac
7095fi
7096
7097MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7098if test -n "$MAGIC_CMD"; then
7099  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7100$as_echo "$MAGIC_CMD" >&6; }
7101else
7102  { $as_echo "$as_me:$LINENO: result: no" >&5
7103$as_echo "no" >&6; }
7104fi
7105
7106if test -z "$lt_cv_path_MAGIC_CMD"; then
7107  if test -n "$ac_tool_prefix"; then
7108    { $as_echo "$as_me:$LINENO: checking for file" >&5
7109$as_echo_n "checking for file... " >&6; }
7110if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7111  $as_echo_n "(cached) " >&6
7112else
7113  case $MAGIC_CMD in
7114[\\/*] |  ?:[\\/]*)
7115  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7116  ;;
7117*)
7118  lt_save_MAGIC_CMD="$MAGIC_CMD"
7119  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7120  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7121  for ac_dir in $ac_dummy; do
7122    IFS="$lt_save_ifs"
7123    test -z "$ac_dir" && ac_dir=.
7124    if test -f $ac_dir/file; then
7125      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7126      if test -n "$file_magic_test_file"; then
7127	case $deplibs_check_method in
7128	"file_magic "*)
7129	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7130	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7131	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7132	    $EGREP "$file_magic_regex" > /dev/null; then
7133	    :
7134	  else
7135	    cat <<EOF 1>&2
7136
7137*** Warning: the command libtool uses to detect shared libraries,
7138*** $file_magic_cmd, produces output that libtool cannot recognize.
7139*** The result is that libtool may fail to recognize shared libraries
7140*** as such.  This will affect the creation of libtool libraries that
7141*** depend on shared libraries, but programs linked with such libtool
7142*** libraries will work regardless of this problem.  Nevertheless, you
7143*** may want to report the problem to your system manager and/or to
7144*** bug-libtool@gnu.org
7145
7146EOF
7147	  fi ;;
7148	esac
7149      fi
7150      break
7151    fi
7152  done
7153  IFS="$lt_save_ifs"
7154  MAGIC_CMD="$lt_save_MAGIC_CMD"
7155  ;;
7156esac
7157fi
7158
7159MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7160if test -n "$MAGIC_CMD"; then
7161  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7162$as_echo "$MAGIC_CMD" >&6; }
7163else
7164  { $as_echo "$as_me:$LINENO: result: no" >&5
7165$as_echo "no" >&6; }
7166fi
7167
7168  else
7169    MAGIC_CMD=:
7170  fi
7171fi
7172
7173  fi
7174  ;;
7175esac
7176
7177
7178  case $host_os in
7179    rhapsody* | darwin*)
7180    if test -n "$ac_tool_prefix"; then
7181  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7182set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7183{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7184$as_echo_n "checking for $ac_word... " >&6; }
7185if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7186  $as_echo_n "(cached) " >&6
7187else
7188  if test -n "$DSYMUTIL"; then
7189  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7190else
7191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192for as_dir in $PATH
7193do
7194  IFS=$as_save_IFS
7195  test -z "$as_dir" && as_dir=.
7196  for ac_exec_ext in '' $ac_executable_extensions; do
7197  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7198    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7199    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200    break 2
7201  fi
7202done
7203done
7204IFS=$as_save_IFS
7205
7206fi
7207fi
7208DSYMUTIL=$ac_cv_prog_DSYMUTIL
7209if test -n "$DSYMUTIL"; then
7210  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7211$as_echo "$DSYMUTIL" >&6; }
7212else
7213  { $as_echo "$as_me:$LINENO: result: no" >&5
7214$as_echo "no" >&6; }
7215fi
7216
7217
7218fi
7219if test -z "$ac_cv_prog_DSYMUTIL"; then
7220  ac_ct_DSYMUTIL=$DSYMUTIL
7221  # Extract the first word of "dsymutil", so it can be a program name with args.
7222set dummy dsymutil; ac_word=$2
7223{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7224$as_echo_n "checking for $ac_word... " >&6; }
7225if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7226  $as_echo_n "(cached) " >&6
7227else
7228  if test -n "$ac_ct_DSYMUTIL"; then
7229  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7230else
7231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232for as_dir in $PATH
7233do
7234  IFS=$as_save_IFS
7235  test -z "$as_dir" && as_dir=.
7236  for ac_exec_ext in '' $ac_executable_extensions; do
7237  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7238    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7239    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240    break 2
7241  fi
7242done
7243done
7244IFS=$as_save_IFS
7245
7246fi
7247fi
7248ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7249if test -n "$ac_ct_DSYMUTIL"; then
7250  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7251$as_echo "$ac_ct_DSYMUTIL" >&6; }
7252else
7253  { $as_echo "$as_me:$LINENO: result: no" >&5
7254$as_echo "no" >&6; }
7255fi
7256
7257  if test "x$ac_ct_DSYMUTIL" = x; then
7258    DSYMUTIL=":"
7259  else
7260    case $cross_compiling:$ac_tool_warned in
7261yes:)
7262{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7263whose name does not start with the host triplet.  If you think this
7264configuration is useful to you, please write to autoconf@gnu.org." >&5
7265$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7266whose name does not start with the host triplet.  If you think this
7267configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7268ac_tool_warned=yes ;;
7269esac
7270    DSYMUTIL=$ac_ct_DSYMUTIL
7271  fi
7272else
7273  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7274fi
7275
7276    if test -n "$ac_tool_prefix"; then
7277  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7278set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7279{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7280$as_echo_n "checking for $ac_word... " >&6; }
7281if test "${ac_cv_prog_NMEDIT+set}" = set; then
7282  $as_echo_n "(cached) " >&6
7283else
7284  if test -n "$NMEDIT"; then
7285  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7286else
7287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288for as_dir in $PATH
7289do
7290  IFS=$as_save_IFS
7291  test -z "$as_dir" && as_dir=.
7292  for ac_exec_ext in '' $ac_executable_extensions; do
7293  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7294    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7295    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7296    break 2
7297  fi
7298done
7299done
7300IFS=$as_save_IFS
7301
7302fi
7303fi
7304NMEDIT=$ac_cv_prog_NMEDIT
7305if test -n "$NMEDIT"; then
7306  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7307$as_echo "$NMEDIT" >&6; }
7308else
7309  { $as_echo "$as_me:$LINENO: result: no" >&5
7310$as_echo "no" >&6; }
7311fi
7312
7313
7314fi
7315if test -z "$ac_cv_prog_NMEDIT"; then
7316  ac_ct_NMEDIT=$NMEDIT
7317  # Extract the first word of "nmedit", so it can be a program name with args.
7318set dummy nmedit; ac_word=$2
7319{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7320$as_echo_n "checking for $ac_word... " >&6; }
7321if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7322  $as_echo_n "(cached) " >&6
7323else
7324  if test -n "$ac_ct_NMEDIT"; then
7325  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7326else
7327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328for as_dir in $PATH
7329do
7330  IFS=$as_save_IFS
7331  test -z "$as_dir" && as_dir=.
7332  for ac_exec_ext in '' $ac_executable_extensions; do
7333  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7334    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7335    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7336    break 2
7337  fi
7338done
7339done
7340IFS=$as_save_IFS
7341
7342fi
7343fi
7344ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7345if test -n "$ac_ct_NMEDIT"; then
7346  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7347$as_echo "$ac_ct_NMEDIT" >&6; }
7348else
7349  { $as_echo "$as_me:$LINENO: result: no" >&5
7350$as_echo "no" >&6; }
7351fi
7352
7353  if test "x$ac_ct_NMEDIT" = x; then
7354    NMEDIT=":"
7355  else
7356    case $cross_compiling:$ac_tool_warned in
7357yes:)
7358{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7359whose name does not start with the host triplet.  If you think this
7360configuration is useful to you, please write to autoconf@gnu.org." >&5
7361$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7362whose name does not start with the host triplet.  If you think this
7363configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7364ac_tool_warned=yes ;;
7365esac
7366    NMEDIT=$ac_ct_NMEDIT
7367  fi
7368else
7369  NMEDIT="$ac_cv_prog_NMEDIT"
7370fi
7371
7372
7373    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7374$as_echo_n "checking for -single_module linker flag... " >&6; }
7375if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7376  $as_echo_n "(cached) " >&6
7377else
7378  lt_cv_apple_cc_single_mod=no
7379      if test -z "${LT_MULTI_MODULE}"; then
7380   # By default we will add the -single_module flag. You can override
7381   # by either setting the environment variable LT_MULTI_MODULE
7382   # non-empty at configure time, or by adding -multi_module to the
7383   # link flags.
7384   echo "int foo(void){return 1;}" > conftest.c
7385   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7386     -dynamiclib ${wl}-single_module conftest.c
7387   if test -f libconftest.dylib; then
7388     lt_cv_apple_cc_single_mod=yes
7389     rm -rf libconftest.dylib*
7390   fi
7391   rm conftest.c
7392      fi
7393fi
7394{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7395$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7396    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7397$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7398if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7399  $as_echo_n "(cached) " >&6
7400else
7401  lt_cv_ld_exported_symbols_list=no
7402      save_LDFLAGS=$LDFLAGS
7403      echo "_main" > conftest.sym
7404      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7405      cat >conftest.$ac_ext <<_ACEOF
7406/* confdefs.h.  */
7407_ACEOF
7408cat confdefs.h >>conftest.$ac_ext
7409cat >>conftest.$ac_ext <<_ACEOF
7410/* end confdefs.h.  */
7411
7412int
7413main ()
7414{
7415
7416  ;
7417  return 0;
7418}
7419_ACEOF
7420rm -f conftest.$ac_objext conftest$ac_exeext
7421if { (ac_try="$ac_link"
7422case "(($ac_try" in
7423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7424  *) ac_try_echo=$ac_try;;
7425esac
7426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7427$as_echo "$ac_try_echo") >&5
7428  (eval "$ac_link") 2>conftest.er1
7429  ac_status=$?
7430  grep -v '^ *+' conftest.er1 >conftest.err
7431  rm -f conftest.er1
7432  cat conftest.err >&5
7433  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434  (exit $ac_status); } && {
7435	 test -z "$ac_c_werror_flag" ||
7436	 test ! -s conftest.err
7437       } && test -s conftest$ac_exeext && {
7438	 test "$cross_compiling" = yes ||
7439	 $as_test_x conftest$ac_exeext
7440       }; then
7441  lt_cv_ld_exported_symbols_list=yes
7442else
7443  $as_echo "$as_me: failed program was:" >&5
7444sed 's/^/| /' conftest.$ac_ext >&5
7445
7446	lt_cv_ld_exported_symbols_list=no
7447fi
7448
7449rm -rf conftest.dSYM
7450rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7451      conftest$ac_exeext conftest.$ac_ext
7452   LDFLAGS="$save_LDFLAGS"
7453
7454fi
7455{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7456$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7457    case $host_os in
7458    rhapsody* | darwin1.[0123])
7459      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7460    darwin1.*)
7461     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7462    darwin*)
7463      # if running on 10.5 or later, the deployment target defaults
7464      # to the OS version, if on x86, and 10.4, the deployment
7465      # target defaults to 10.4. Don't you love it?
7466      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7467   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7468     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7469   10.[012]*)
7470     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7471   10.*)
7472     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7473      esac
7474    ;;
7475  esac
7476    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7477      _lt_dar_single_mod='$single_module'
7478    fi
7479    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7480      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7481    else
7482      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7483    fi
7484    if test "$DSYMUTIL" != ":"; then
7485      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7486    else
7487      _lt_dsymutil=
7488    fi
7489    ;;
7490  esac
7491
7492
7493enable_dlopen=no
7494enable_win32_dll=no
7495
7496# Check whether --enable-libtool-lock was given.
7497if test "${enable_libtool_lock+set}" = set; then
7498  enableval=$enable_libtool_lock;
7499fi
7500
7501test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7502
7503
7504# Check whether --with-pic was given.
7505if test "${with_pic+set}" = set; then
7506  withval=$with_pic; pic_mode="$withval"
7507else
7508  pic_mode=default
7509fi
7510
7511test -z "$pic_mode" && pic_mode=default
7512
7513# Use C for the default configuration in the libtool script
7514tagname=
7515lt_save_CC="$CC"
7516ac_ext=c
7517ac_cpp='$CPP $CPPFLAGS'
7518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520ac_compiler_gnu=$ac_cv_c_compiler_gnu
7521
7522
7523# Source file extension for C test sources.
7524ac_ext=c
7525
7526# Object file extension for compiled C test sources.
7527objext=o
7528objext=$objext
7529
7530# Code to be used in simple compile tests
7531lt_simple_compile_test_code="int some_variable = 0;"
7532
7533# Code to be used in simple link tests
7534lt_simple_link_test_code='int main(){return(0);}'
7535
7536
7537# If no C compiler was specified, use CC.
7538LTCC=${LTCC-"$CC"}
7539
7540# If no C compiler flags were specified, use CFLAGS.
7541LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7542
7543# Allow CC to be a program name with arguments.
7544compiler=$CC
7545
7546
7547# save warnings/boilerplate of simple test code
7548ac_outfile=conftest.$ac_objext
7549echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7550eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7551_lt_compiler_boilerplate=`cat conftest.err`
7552$rm conftest*
7553
7554ac_outfile=conftest.$ac_objext
7555echo "$lt_simple_link_test_code" >conftest.$ac_ext
7556eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7557_lt_linker_boilerplate=`cat conftest.err`
7558$rm -r conftest*
7559
7560
7561
7562lt_prog_compiler_no_builtin_flag=
7563
7564if test "$GCC" = yes; then
7565  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7566
7567
7568{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7569$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7570if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7571  $as_echo_n "(cached) " >&6
7572else
7573  lt_cv_prog_compiler_rtti_exceptions=no
7574  ac_outfile=conftest.$ac_objext
7575   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7576   lt_compiler_flag="-fno-rtti -fno-exceptions"
7577   # Insert the option either (1) after the last *FLAGS variable, or
7578   # (2) before a word containing "conftest.", or (3) at the end.
7579   # Note that $ac_compile itself does not contain backslashes and begins
7580   # with a dollar sign (not a hyphen), so the echo should work correctly.
7581   # The option is referenced via a variable to avoid confusing sed.
7582   lt_compile=`echo "$ac_compile" | $SED \
7583   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7584   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7585   -e 's:$: $lt_compiler_flag:'`
7586   (eval echo "\"\$as_me:7586: $lt_compile\"" >&5)
7587   (eval "$lt_compile" 2>conftest.err)
7588   ac_status=$?
7589   cat conftest.err >&5
7590   echo "$as_me:7590: \$? = $ac_status" >&5
7591   if (exit $ac_status) && test -s "$ac_outfile"; then
7592     # The compiler can only warn and ignore the option if not recognized
7593     # So say no if there are warnings other than the usual output.
7594     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7595     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7596     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7597       lt_cv_prog_compiler_rtti_exceptions=yes
7598     fi
7599   fi
7600   $rm conftest*
7601
7602fi
7603{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7604$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7605
7606if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7607    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7608else
7609    :
7610fi
7611
7612fi
7613
7614lt_prog_compiler_wl=
7615lt_prog_compiler_pic=
7616lt_prog_compiler_static=
7617
7618{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7619$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7620
7621  if test "$GCC" = yes; then
7622    lt_prog_compiler_wl='-Wl,'
7623    lt_prog_compiler_static='-static'
7624
7625    case $host_os in
7626      aix*)
7627      # All AIX code is PIC.
7628      if test "$host_cpu" = ia64; then
7629	# AIX 5 now supports IA64 processor
7630	lt_prog_compiler_static='-Bstatic'
7631      fi
7632      ;;
7633
7634    amigaos*)
7635      # FIXME: we need at least 68020 code to build shared libraries, but
7636      # adding the `-m68020' flag to GCC prevents building anything better,
7637      # like `-m68040'.
7638      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7639      ;;
7640
7641    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7642      # PIC is the default for these OSes.
7643      ;;
7644
7645    mingw* | cygwin* | pw32* | os2*)
7646      # This hack is so that the source file can tell whether it is being
7647      # built for inclusion in a dll (and should export symbols for example).
7648      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7649      # (--disable-auto-import) libraries
7650      lt_prog_compiler_pic='-DDLL_EXPORT'
7651      ;;
7652
7653    darwin* | rhapsody*)
7654      # PIC is the default on this platform
7655      # Common symbols not allowed in MH_DYLIB files
7656      lt_prog_compiler_pic='-fno-common'
7657      ;;
7658
7659    interix[3-9]*)
7660      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7661      # Instead, we relocate shared libraries at runtime.
7662      ;;
7663
7664    msdosdjgpp*)
7665      # Just because we use GCC doesn't mean we suddenly get shared libraries
7666      # on systems that don't support them.
7667      lt_prog_compiler_can_build_shared=no
7668      enable_shared=no
7669      ;;
7670
7671    sysv4*MP*)
7672      if test -d /usr/nec; then
7673	lt_prog_compiler_pic=-Kconform_pic
7674      fi
7675      ;;
7676
7677    hpux*)
7678      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7679      # not for PA HP-UX.
7680      case $host_cpu in
7681      hppa*64*|ia64*)
7682	# +Z the default
7683	;;
7684      *)
7685	lt_prog_compiler_pic='-fPIC'
7686	;;
7687      esac
7688      ;;
7689
7690    *)
7691      lt_prog_compiler_pic='-fPIC'
7692      ;;
7693    esac
7694  else
7695    # PORTME Check for flag to pass linker flags through the system compiler.
7696    case $host_os in
7697    aix*)
7698      lt_prog_compiler_wl='-Wl,'
7699      if test "$host_cpu" = ia64; then
7700	# AIX 5 now supports IA64 processor
7701	lt_prog_compiler_static='-Bstatic'
7702      else
7703	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7704      fi
7705      ;;
7706      darwin*)
7707        # PIC is the default on this platform
7708        # Common symbols not allowed in MH_DYLIB files
7709       case $cc_basename in
7710         xlc*)
7711         lt_prog_compiler_pic='-qnocommon'
7712         lt_prog_compiler_wl='-Wl,'
7713         ;;
7714       esac
7715       ;;
7716
7717    mingw* | cygwin* | pw32* | os2*)
7718      # This hack is so that the source file can tell whether it is being
7719      # built for inclusion in a dll (and should export symbols for example).
7720      lt_prog_compiler_pic='-DDLL_EXPORT'
7721      ;;
7722
7723    hpux9* | hpux10* | hpux11*)
7724      lt_prog_compiler_wl='-Wl,'
7725      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7726      # not for PA HP-UX.
7727      case $host_cpu in
7728      hppa*64*|ia64*)
7729	# +Z the default
7730	;;
7731      *)
7732	lt_prog_compiler_pic='+Z'
7733	;;
7734      esac
7735      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7736      lt_prog_compiler_static='${wl}-a ${wl}archive'
7737      ;;
7738
7739    irix5* | irix6* | nonstopux*)
7740      lt_prog_compiler_wl='-Wl,'
7741      # PIC (with -KPIC) is the default.
7742      lt_prog_compiler_static='-non_shared'
7743      ;;
7744
7745    newsos6)
7746      lt_prog_compiler_pic='-KPIC'
7747      lt_prog_compiler_static='-Bstatic'
7748      ;;
7749
7750    linux* | k*bsd*-gnu)
7751      case $cc_basename in
7752      icc* | ecc*)
7753	lt_prog_compiler_wl='-Wl,'
7754	lt_prog_compiler_pic='-KPIC'
7755	lt_prog_compiler_static='-static'
7756        ;;
7757      pgcc* | pgf77* | pgf90* | pgf95*)
7758        # Portland Group compilers (*not* the Pentium gcc compiler,
7759	# which looks to be a dead project)
7760	lt_prog_compiler_wl='-Wl,'
7761	lt_prog_compiler_pic='-fpic'
7762	lt_prog_compiler_static='-Bstatic'
7763        ;;
7764      ccc*)
7765        lt_prog_compiler_wl='-Wl,'
7766        # All Alpha code is PIC.
7767        lt_prog_compiler_static='-non_shared'
7768        ;;
7769      *)
7770        case `$CC -V 2>&1 | sed 5q` in
7771	*Sun\ C*)
7772	  # Sun C 5.9
7773	  lt_prog_compiler_pic='-KPIC'
7774	  lt_prog_compiler_static='-Bstatic'
7775	  lt_prog_compiler_wl='-Wl,'
7776	  ;;
7777	*Sun\ F*)
7778	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7779	  lt_prog_compiler_pic='-KPIC'
7780	  lt_prog_compiler_static='-Bstatic'
7781	  lt_prog_compiler_wl=''
7782	  ;;
7783	esac
7784	;;
7785      esac
7786      ;;
7787
7788    osf3* | osf4* | osf5*)
7789      lt_prog_compiler_wl='-Wl,'
7790      # All OSF/1 code is PIC.
7791      lt_prog_compiler_static='-non_shared'
7792      ;;
7793
7794    rdos*)
7795      lt_prog_compiler_static='-non_shared'
7796      ;;
7797
7798    solaris*)
7799      lt_prog_compiler_pic='-KPIC'
7800      lt_prog_compiler_static='-Bstatic'
7801      case $cc_basename in
7802      f77* | f90* | f95*)
7803	lt_prog_compiler_wl='-Qoption ld ';;
7804      *)
7805	lt_prog_compiler_wl='-Wl,';;
7806      esac
7807      ;;
7808
7809    sunos4*)
7810      lt_prog_compiler_wl='-Qoption ld '
7811      lt_prog_compiler_pic='-PIC'
7812      lt_prog_compiler_static='-Bstatic'
7813      ;;
7814
7815    sysv4 | sysv4.2uw2* | sysv4.3*)
7816      lt_prog_compiler_wl='-Wl,'
7817      lt_prog_compiler_pic='-KPIC'
7818      lt_prog_compiler_static='-Bstatic'
7819      ;;
7820
7821    sysv4*MP*)
7822      if test -d /usr/nec ;then
7823	lt_prog_compiler_pic='-Kconform_pic'
7824	lt_prog_compiler_static='-Bstatic'
7825      fi
7826      ;;
7827
7828    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7829      lt_prog_compiler_wl='-Wl,'
7830      lt_prog_compiler_pic='-KPIC'
7831      lt_prog_compiler_static='-Bstatic'
7832      ;;
7833
7834    unicos*)
7835      lt_prog_compiler_wl='-Wl,'
7836      lt_prog_compiler_can_build_shared=no
7837      ;;
7838
7839    uts4*)
7840      lt_prog_compiler_pic='-pic'
7841      lt_prog_compiler_static='-Bstatic'
7842      ;;
7843
7844    *)
7845      lt_prog_compiler_can_build_shared=no
7846      ;;
7847    esac
7848  fi
7849
7850{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7851$as_echo "$lt_prog_compiler_pic" >&6; }
7852
7853#
7854# Check to make sure the PIC flag actually works.
7855#
7856if test -n "$lt_prog_compiler_pic"; then
7857
7858{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7859$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7860if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7861  $as_echo_n "(cached) " >&6
7862else
7863  lt_cv_prog_compiler_pic_works=no
7864  ac_outfile=conftest.$ac_objext
7865   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7866   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7867   # Insert the option either (1) after the last *FLAGS variable, or
7868   # (2) before a word containing "conftest.", or (3) at the end.
7869   # Note that $ac_compile itself does not contain backslashes and begins
7870   # with a dollar sign (not a hyphen), so the echo should work correctly.
7871   # The option is referenced via a variable to avoid confusing sed.
7872   lt_compile=`echo "$ac_compile" | $SED \
7873   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7874   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7875   -e 's:$: $lt_compiler_flag:'`
7876   (eval echo "\"\$as_me:7876: $lt_compile\"" >&5)
7877   (eval "$lt_compile" 2>conftest.err)
7878   ac_status=$?
7879   cat conftest.err >&5
7880   echo "$as_me:7880: \$? = $ac_status" >&5
7881   if (exit $ac_status) && test -s "$ac_outfile"; then
7882     # The compiler can only warn and ignore the option if not recognized
7883     # So say no if there are warnings other than the usual output.
7884     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7885     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7886     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7887       lt_cv_prog_compiler_pic_works=yes
7888     fi
7889   fi
7890   $rm conftest*
7891
7892fi
7893{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7894$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7895
7896if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7897    case $lt_prog_compiler_pic in
7898     "" | " "*) ;;
7899     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7900     esac
7901else
7902    lt_prog_compiler_pic=
7903     lt_prog_compiler_can_build_shared=no
7904fi
7905
7906fi
7907case $host_os in
7908  # For platforms which do not support PIC, -DPIC is meaningless:
7909  *djgpp*)
7910    lt_prog_compiler_pic=
7911    ;;
7912  *)
7913    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7914    ;;
7915esac
7916
7917#
7918# Check to make sure the static flag actually works.
7919#
7920wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7921{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7922$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7923if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7924  $as_echo_n "(cached) " >&6
7925else
7926  lt_cv_prog_compiler_static_works=no
7927   save_LDFLAGS="$LDFLAGS"
7928   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7929   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7930   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7931     # The linker can only warn and ignore the option if not recognized
7932     # So say no if there are warnings
7933     if test -s conftest.err; then
7934       # Append any errors to the config.log.
7935       cat conftest.err 1>&5
7936       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7937       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7938       if diff conftest.exp conftest.er2 >/dev/null; then
7939         lt_cv_prog_compiler_static_works=yes
7940       fi
7941     else
7942       lt_cv_prog_compiler_static_works=yes
7943     fi
7944   fi
7945   $rm -r conftest*
7946   LDFLAGS="$save_LDFLAGS"
7947
7948fi
7949{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7950$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7951
7952if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7953    :
7954else
7955    lt_prog_compiler_static=
7956fi
7957
7958
7959{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7960$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7961if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7962  $as_echo_n "(cached) " >&6
7963else
7964  lt_cv_prog_compiler_c_o=no
7965   $rm -r conftest 2>/dev/null
7966   mkdir conftest
7967   cd conftest
7968   mkdir out
7969   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7970
7971   lt_compiler_flag="-o out/conftest2.$ac_objext"
7972   # Insert the option either (1) after the last *FLAGS variable, or
7973   # (2) before a word containing "conftest.", or (3) at the end.
7974   # Note that $ac_compile itself does not contain backslashes and begins
7975   # with a dollar sign (not a hyphen), so the echo should work correctly.
7976   lt_compile=`echo "$ac_compile" | $SED \
7977   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7978   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7979   -e 's:$: $lt_compiler_flag:'`
7980   (eval echo "\"\$as_me:7980: $lt_compile\"" >&5)
7981   (eval "$lt_compile" 2>out/conftest.err)
7982   ac_status=$?
7983   cat out/conftest.err >&5
7984   echo "$as_me:7984: \$? = $ac_status" >&5
7985   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7986   then
7987     # The compiler can only warn and ignore the option if not recognized
7988     # So say no if there are warnings
7989     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7990     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7991     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7992       lt_cv_prog_compiler_c_o=yes
7993     fi
7994   fi
7995   chmod u+w . 2>&5
7996   $rm conftest*
7997   # SGI C++ compiler will create directory out/ii_files/ for
7998   # template instantiation
7999   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8000   $rm out/* && rmdir out
8001   cd ..
8002   rmdir conftest
8003   $rm conftest*
8004
8005fi
8006{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8007$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8008
8009
8010hard_links="nottested"
8011if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8012  # do not overwrite the value of need_locks provided by the user
8013  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8014$as_echo_n "checking if we can lock with hard links... " >&6; }
8015  hard_links=yes
8016  $rm conftest*
8017  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8018  touch conftest.a
8019  ln conftest.a conftest.b 2>&5 || hard_links=no
8020  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8021  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8022$as_echo "$hard_links" >&6; }
8023  if test "$hard_links" = no; then
8024    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8025$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8026    need_locks=warn
8027  fi
8028else
8029  need_locks=no
8030fi
8031
8032{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8033$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8034
8035  runpath_var=
8036  allow_undefined_flag=
8037  enable_shared_with_static_runtimes=no
8038  archive_cmds=
8039  archive_expsym_cmds=
8040  old_archive_From_new_cmds=
8041  old_archive_from_expsyms_cmds=
8042  export_dynamic_flag_spec=
8043  whole_archive_flag_spec=
8044  thread_safe_flag_spec=
8045  hardcode_libdir_flag_spec=
8046  hardcode_libdir_flag_spec_ld=
8047  hardcode_libdir_separator=
8048  hardcode_direct=no
8049  hardcode_minus_L=no
8050  hardcode_shlibpath_var=unsupported
8051  link_all_deplibs=unknown
8052  hardcode_automatic=no
8053  module_cmds=
8054  module_expsym_cmds=
8055  always_export_symbols=no
8056  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8057  # include_expsyms should be a list of space-separated symbols to be *always*
8058  # included in the symbol list
8059  include_expsyms=
8060  # exclude_expsyms can be an extended regexp of symbols to exclude
8061  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8062  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8063  # as well as any symbol that contains `d'.
8064  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8065  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8066  # platforms (ab)use it in PIC code, but their linkers get confused if
8067  # the symbol is explicitly referenced.  Since portable code cannot
8068  # rely on this symbol name, it's probably fine to never include it in
8069  # preloaded symbol tables.
8070  # Exclude shared library initialization/finalization symbols.
8071  extract_expsyms_cmds=
8072  # Just being paranoid about ensuring that cc_basename is set.
8073  for cc_temp in $compiler""; do
8074  case $cc_temp in
8075    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8076    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8077    \-*) ;;
8078    *) break;;
8079  esac
8080done
8081cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8082
8083  case $host_os in
8084  cygwin* | mingw* | pw32*)
8085    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8086    # When not using gcc, we currently assume that we are using
8087    # Microsoft Visual C++.
8088    if test "$GCC" != yes; then
8089      with_gnu_ld=no
8090    fi
8091    ;;
8092  interix*)
8093    # we just hope/assume this is gcc and not c89 (= MSVC++)
8094    with_gnu_ld=yes
8095    ;;
8096  openbsd*)
8097    with_gnu_ld=no
8098    ;;
8099  esac
8100
8101  ld_shlibs=yes
8102  if test "$with_gnu_ld" = yes; then
8103    # If archive_cmds runs LD, not CC, wlarc should be empty
8104    wlarc='${wl}'
8105
8106    # Set some defaults for GNU ld with shared library support. These
8107    # are reset later if shared libraries are not supported. Putting them
8108    # here allows them to be overridden if necessary.
8109    runpath_var=LD_RUN_PATH
8110    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8111    export_dynamic_flag_spec='${wl}--export-dynamic'
8112    # ancient GNU ld didn't support --whole-archive et. al.
8113    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8114	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8115      else
8116  	whole_archive_flag_spec=
8117    fi
8118    supports_anon_versioning=no
8119    case `$LD -v 2>/dev/null` in
8120      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8121      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8122      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8123      *\ 2.11.*) ;; # other 2.11 versions
8124      *) supports_anon_versioning=yes ;;
8125    esac
8126
8127    # See if GNU ld supports shared libraries.
8128    case $host_os in
8129    aix[3-9]*)
8130      # On AIX/PPC, the GNU linker is very broken
8131      if test "$host_cpu" != ia64; then
8132	ld_shlibs=no
8133	cat <<EOF 1>&2
8134
8135*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8136*** to be unable to reliably create shared libraries on AIX.
8137*** Therefore, libtool is disabling shared libraries support.  If you
8138*** really care for shared libraries, you may want to modify your PATH
8139*** so that a non-GNU linker is found, and then restart.
8140
8141EOF
8142      fi
8143      ;;
8144
8145    amigaos*)
8146      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)'
8147      hardcode_libdir_flag_spec='-L$libdir'
8148      hardcode_minus_L=yes
8149
8150      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8151      # that the semantics of dynamic libraries on AmigaOS, at least up
8152      # to version 4, is to share data among multiple programs linked
8153      # with the same dynamic library.  Since this doesn't match the
8154      # behavior of shared libraries on other platforms, we can't use
8155      # them.
8156      ld_shlibs=no
8157      ;;
8158
8159    beos*)
8160      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8161	allow_undefined_flag=unsupported
8162	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8163	# support --undefined.  This deserves some investigation.  FIXME
8164	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8165      else
8166	ld_shlibs=no
8167      fi
8168      ;;
8169
8170    cygwin* | mingw* | pw32*)
8171      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8172      # as there is no search path for DLLs.
8173      hardcode_libdir_flag_spec='-L$libdir'
8174      allow_undefined_flag=unsupported
8175      always_export_symbols=no
8176      enable_shared_with_static_runtimes=yes
8177      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8178
8179      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8180        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8181	# If the export-symbols file already is a .def file (1st line
8182	# is EXPORTS), use it as is; otherwise, prepend...
8183	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8184	  cp $export_symbols $output_objdir/$soname.def;
8185	else
8186	  echo EXPORTS > $output_objdir/$soname.def;
8187	  cat $export_symbols >> $output_objdir/$soname.def;
8188	fi~
8189	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8190      else
8191	ld_shlibs=no
8192      fi
8193      ;;
8194
8195    interix[3-9]*)
8196      hardcode_direct=no
8197      hardcode_shlibpath_var=no
8198      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8199      export_dynamic_flag_spec='${wl}-E'
8200      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8201      # Instead, shared libraries are loaded at an image base (0x10000000 by
8202      # default) and relocated if they conflict, which is a slow very memory
8203      # consuming and fragmenting process.  To avoid this, we pick a random,
8204      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8205      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8206      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8207      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'
8208      ;;
8209
8210    gnu* | linux* | k*bsd*-gnu)
8211      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8212	tmp_addflag=
8213	case $cc_basename,$host_cpu in
8214	pgcc*)				# Portland Group C compiler
8215	  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'
8216	  tmp_addflag=' $pic_flag'
8217	  ;;
8218	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8219	  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'
8220	  tmp_addflag=' $pic_flag -Mnomain' ;;
8221	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8222	  tmp_addflag=' -i_dynamic' ;;
8223	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8224	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8225	ifc* | ifort*)			# Intel Fortran compiler
8226	  tmp_addflag=' -nofor_main' ;;
8227	esac
8228	case `$CC -V 2>&1 | sed 5q` in
8229	*Sun\ C*)			# Sun C 5.9
8230	  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'
8231	  tmp_sharedflag='-G' ;;
8232	*Sun\ F*)			# Sun Fortran 8.3
8233	  tmp_sharedflag='-G' ;;
8234	*)
8235	  tmp_sharedflag='-shared' ;;
8236	esac
8237	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8238
8239	if test $supports_anon_versioning = yes; then
8240	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8241  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8242  $echo "local: *; };" >> $output_objdir/$libname.ver~
8243	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8244	fi
8245      else
8246	ld_shlibs=no
8247      fi
8248      ;;
8249
8250    netbsd*)
8251      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8252	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8253	wlarc=
8254      else
8255	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8256	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8257      fi
8258      ;;
8259
8260    solaris*)
8261      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8262	ld_shlibs=no
8263	cat <<EOF 1>&2
8264
8265*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8266*** create shared libraries on Solaris systems.  Therefore, libtool
8267*** is disabling shared libraries support.  We urge you to upgrade GNU
8268*** binutils to release 2.9.1 or newer.  Another option is to modify
8269*** your PATH or compiler configuration so that the native linker is
8270*** used, and then restart.
8271
8272EOF
8273      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8274	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8275	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8276      else
8277	ld_shlibs=no
8278      fi
8279      ;;
8280
8281    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8282      case `$LD -v 2>&1` in
8283        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8284	ld_shlibs=no
8285	cat <<_LT_EOF 1>&2
8286
8287*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8288*** reliably create shared libraries on SCO systems.  Therefore, libtool
8289*** is disabling shared libraries support.  We urge you to upgrade GNU
8290*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8291*** your PATH or compiler configuration so that the native linker is
8292*** used, and then restart.
8293
8294_LT_EOF
8295	;;
8296	*)
8297	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8298	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8299	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8300	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8301	  else
8302	    ld_shlibs=no
8303	  fi
8304	;;
8305      esac
8306      ;;
8307
8308    sunos4*)
8309      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8310      wlarc=
8311      hardcode_direct=yes
8312      hardcode_shlibpath_var=no
8313      ;;
8314
8315    *)
8316      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8317	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8318	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8319      else
8320	ld_shlibs=no
8321      fi
8322      ;;
8323    esac
8324
8325    if test "$ld_shlibs" = no; then
8326      runpath_var=
8327      hardcode_libdir_flag_spec=
8328      export_dynamic_flag_spec=
8329      whole_archive_flag_spec=
8330    fi
8331  else
8332    # PORTME fill in a description of your system's linker (not GNU ld)
8333    case $host_os in
8334    aix3*)
8335      allow_undefined_flag=unsupported
8336      always_export_symbols=yes
8337      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'
8338      # Note: this linker hardcodes the directories in LIBPATH if there
8339      # are no directories specified by -L.
8340      hardcode_minus_L=yes
8341      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8342	# Neither direct hardcoding nor static linking is supported with a
8343	# broken collect2.
8344	hardcode_direct=unsupported
8345      fi
8346      ;;
8347
8348    aix[4-9]*)
8349      if test "$host_cpu" = ia64; then
8350	# On IA64, the linker does run time linking by default, so we don't
8351	# have to do anything special.
8352	aix_use_runtimelinking=no
8353	exp_sym_flag='-Bexport'
8354	no_entry_flag=""
8355      else
8356	# If we're using GNU nm, then we don't want the "-C" option.
8357	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8358	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8359	  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'
8360	else
8361	  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'
8362	fi
8363	aix_use_runtimelinking=no
8364
8365	# Test if we are trying to use run time linking or normal
8366	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8367	# need to do runtime linking.
8368	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8369	  for ld_flag in $LDFLAGS; do
8370  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8371  	    aix_use_runtimelinking=yes
8372  	    break
8373  	  fi
8374	  done
8375	  ;;
8376	esac
8377
8378	exp_sym_flag='-bexport'
8379	no_entry_flag='-bnoentry'
8380      fi
8381
8382      # When large executables or shared objects are built, AIX ld can
8383      # have problems creating the table of contents.  If linking a library
8384      # or program results in "error TOC overflow" add -mminimal-toc to
8385      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8386      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8387
8388      archive_cmds=''
8389      hardcode_direct=yes
8390      hardcode_libdir_separator=':'
8391      link_all_deplibs=yes
8392
8393      if test "$GCC" = yes; then
8394	case $host_os in aix4.[012]|aix4.[012].*)
8395	# We only want to do this on AIX 4.2 and lower, the check
8396	# below for broken collect2 doesn't work under 4.3+
8397	  collect2name=`${CC} -print-prog-name=collect2`
8398	  if test -f "$collect2name" && \
8399  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8400	  then
8401  	  # We have reworked collect2
8402  	  :
8403	  else
8404  	  # We have old collect2
8405  	  hardcode_direct=unsupported
8406  	  # It fails to find uninstalled libraries when the uninstalled
8407  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8408  	  # to unsupported forces relinking
8409  	  hardcode_minus_L=yes
8410  	  hardcode_libdir_flag_spec='-L$libdir'
8411  	  hardcode_libdir_separator=
8412	  fi
8413	  ;;
8414	esac
8415	shared_flag='-shared'
8416	if test "$aix_use_runtimelinking" = yes; then
8417	  shared_flag="$shared_flag "'${wl}-G'
8418	fi
8419      else
8420	# not using gcc
8421	if test "$host_cpu" = ia64; then
8422  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8423  	# chokes on -Wl,-G. The following line is correct:
8424	  shared_flag='-G'
8425	else
8426	  if test "$aix_use_runtimelinking" = yes; then
8427	    shared_flag='${wl}-G'
8428	  else
8429	    shared_flag='${wl}-bM:SRE'
8430	  fi
8431	fi
8432      fi
8433
8434      # It seems that -bexpall does not export symbols beginning with
8435      # underscore (_), so it is better to generate a list of symbols to export.
8436      always_export_symbols=yes
8437      if test "$aix_use_runtimelinking" = yes; then
8438	# Warning - without using the other runtime loading flags (-brtl),
8439	# -berok will link without error, but may produce a broken library.
8440	allow_undefined_flag='-berok'
8441       # Determine the default libpath from the value encoded in an empty executable.
8442       cat >conftest.$ac_ext <<_ACEOF
8443/* confdefs.h.  */
8444_ACEOF
8445cat confdefs.h >>conftest.$ac_ext
8446cat >>conftest.$ac_ext <<_ACEOF
8447/* end confdefs.h.  */
8448
8449int
8450main ()
8451{
8452
8453  ;
8454  return 0;
8455}
8456_ACEOF
8457rm -f conftest.$ac_objext conftest$ac_exeext
8458if { (ac_try="$ac_link"
8459case "(($ac_try" in
8460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461  *) ac_try_echo=$ac_try;;
8462esac
8463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8464$as_echo "$ac_try_echo") >&5
8465  (eval "$ac_link") 2>conftest.er1
8466  ac_status=$?
8467  grep -v '^ *+' conftest.er1 >conftest.err
8468  rm -f conftest.er1
8469  cat conftest.err >&5
8470  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471  (exit $ac_status); } && {
8472	 test -z "$ac_c_werror_flag" ||
8473	 test ! -s conftest.err
8474       } && test -s conftest$ac_exeext && {
8475	 test "$cross_compiling" = yes ||
8476	 $as_test_x conftest$ac_exeext
8477       }; then
8478
8479lt_aix_libpath_sed='
8480    /Import File Strings/,/^$/ {
8481	/^0/ {
8482	    s/^0  *\(.*\)$/\1/
8483	    p
8484	}
8485    }'
8486aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8487# Check for a 64-bit object if we didn't find anything.
8488if test -z "$aix_libpath"; then
8489  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8490fi
8491else
8492  $as_echo "$as_me: failed program was:" >&5
8493sed 's/^/| /' conftest.$ac_ext >&5
8494
8495
8496fi
8497
8498rm -rf conftest.dSYM
8499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8500      conftest$ac_exeext conftest.$ac_ext
8501if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8502
8503       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8504	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"
8505       else
8506	if test "$host_cpu" = ia64; then
8507	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8508	  allow_undefined_flag="-z nodefs"
8509	  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"
8510	else
8511	 # Determine the default libpath from the value encoded in an empty executable.
8512	 cat >conftest.$ac_ext <<_ACEOF
8513/* confdefs.h.  */
8514_ACEOF
8515cat confdefs.h >>conftest.$ac_ext
8516cat >>conftest.$ac_ext <<_ACEOF
8517/* end confdefs.h.  */
8518
8519int
8520main ()
8521{
8522
8523  ;
8524  return 0;
8525}
8526_ACEOF
8527rm -f conftest.$ac_objext conftest$ac_exeext
8528if { (ac_try="$ac_link"
8529case "(($ac_try" in
8530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531  *) ac_try_echo=$ac_try;;
8532esac
8533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8534$as_echo "$ac_try_echo") >&5
8535  (eval "$ac_link") 2>conftest.er1
8536  ac_status=$?
8537  grep -v '^ *+' conftest.er1 >conftest.err
8538  rm -f conftest.er1
8539  cat conftest.err >&5
8540  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541  (exit $ac_status); } && {
8542	 test -z "$ac_c_werror_flag" ||
8543	 test ! -s conftest.err
8544       } && test -s conftest$ac_exeext && {
8545	 test "$cross_compiling" = yes ||
8546	 $as_test_x conftest$ac_exeext
8547       }; then
8548
8549lt_aix_libpath_sed='
8550    /Import File Strings/,/^$/ {
8551	/^0/ {
8552	    s/^0  *\(.*\)$/\1/
8553	    p
8554	}
8555    }'
8556aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8557# Check for a 64-bit object if we didn't find anything.
8558if test -z "$aix_libpath"; then
8559  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8560fi
8561else
8562  $as_echo "$as_me: failed program was:" >&5
8563sed 's/^/| /' conftest.$ac_ext >&5
8564
8565
8566fi
8567
8568rm -rf conftest.dSYM
8569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8570      conftest$ac_exeext conftest.$ac_ext
8571if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8572
8573	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8574	  # Warning - without using the other run time loading flags,
8575	  # -berok will link without error, but may produce a broken library.
8576	  no_undefined_flag=' ${wl}-bernotok'
8577	  allow_undefined_flag=' ${wl}-berok'
8578	  # Exported symbols can be pulled into shared objects from archives
8579	  whole_archive_flag_spec='$convenience'
8580	  archive_cmds_need_lc=yes
8581	  # This is similar to how AIX traditionally builds its shared libraries.
8582	  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'
8583	fi
8584      fi
8585      ;;
8586
8587    amigaos*)
8588      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)'
8589      hardcode_libdir_flag_spec='-L$libdir'
8590      hardcode_minus_L=yes
8591      # see comment about different semantics on the GNU ld section
8592      ld_shlibs=no
8593      ;;
8594
8595    bsdi[45]*)
8596      export_dynamic_flag_spec=-rdynamic
8597      ;;
8598
8599    cygwin* | mingw* | pw32*)
8600      # When not using gcc, we currently assume that we are using
8601      # Microsoft Visual C++.
8602      # hardcode_libdir_flag_spec is actually meaningless, as there is
8603      # no search path for DLLs.
8604      hardcode_libdir_flag_spec=' '
8605      allow_undefined_flag=unsupported
8606      # Tell ltmain to make .lib files, not .a files.
8607      libext=lib
8608      # Tell ltmain to make .dll files, not .so files.
8609      shrext_cmds=".dll"
8610      # FIXME: Setting linknames here is a bad hack.
8611      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8612      # The linker will automatically build a .lib file if we build a DLL.
8613      old_archive_From_new_cmds='true'
8614      # FIXME: Should let the user specify the lib program.
8615      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8616      fix_srcfile_path='`cygpath -w "$srcfile"`'
8617      enable_shared_with_static_runtimes=yes
8618      ;;
8619
8620    darwin* | rhapsody*)
8621      case $host_os in
8622        rhapsody* | darwin1.[012])
8623         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8624         ;;
8625       *) # Darwin 1.3 on
8626         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8627           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8628         else
8629           case ${MACOSX_DEPLOYMENT_TARGET} in
8630             10.[012])
8631               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8632               ;;
8633             10.*)
8634               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8635               ;;
8636           esac
8637         fi
8638         ;;
8639      esac
8640      archive_cmds_need_lc=no
8641      hardcode_direct=no
8642      hardcode_automatic=yes
8643      hardcode_shlibpath_var=unsupported
8644      whole_archive_flag_spec=''
8645      link_all_deplibs=yes
8646    if test "$GCC" = yes ; then
8647    	output_verbose_link_cmd='echo'
8648        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8649        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8650        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}"
8651        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}"
8652    else
8653      case $cc_basename in
8654        xlc*)
8655         output_verbose_link_cmd='echo'
8656         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8657         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8658          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8659         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}'
8660          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}'
8661          ;;
8662       *)
8663         ld_shlibs=no
8664          ;;
8665      esac
8666    fi
8667      ;;
8668
8669    dgux*)
8670      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8671      hardcode_libdir_flag_spec='-L$libdir'
8672      hardcode_shlibpath_var=no
8673      ;;
8674
8675    freebsd1*)
8676      ld_shlibs=no
8677      ;;
8678
8679    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8680    # support.  Future versions do this automatically, but an explicit c++rt0.o
8681    # does not break anything, and helps significantly (at the cost of a little
8682    # extra space).
8683    freebsd2.2*)
8684      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8685      hardcode_libdir_flag_spec='-R$libdir'
8686      hardcode_direct=yes
8687      hardcode_shlibpath_var=no
8688      ;;
8689
8690    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8691    freebsd2*)
8692      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8693      hardcode_direct=yes
8694      hardcode_minus_L=yes
8695      hardcode_shlibpath_var=no
8696      ;;
8697
8698    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8699    freebsd* | dragonfly*)
8700      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8701      hardcode_libdir_flag_spec='-R$libdir'
8702      hardcode_direct=yes
8703      hardcode_shlibpath_var=no
8704      ;;
8705
8706    hpux9*)
8707      if test "$GCC" = yes; then
8708	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'
8709      else
8710	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'
8711      fi
8712      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8713      hardcode_libdir_separator=:
8714      hardcode_direct=yes
8715
8716      # hardcode_minus_L: Not really in the search PATH,
8717      # but as the default location of the library.
8718      hardcode_minus_L=yes
8719      export_dynamic_flag_spec='${wl}-E'
8720      ;;
8721
8722    hpux10*)
8723      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8724	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8725      else
8726	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8727      fi
8728      if test "$with_gnu_ld" = no; then
8729	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8730	hardcode_libdir_separator=:
8731
8732	hardcode_direct=yes
8733	export_dynamic_flag_spec='${wl}-E'
8734
8735	# hardcode_minus_L: Not really in the search PATH,
8736	# but as the default location of the library.
8737	hardcode_minus_L=yes
8738      fi
8739      ;;
8740
8741    hpux11*)
8742      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8743	case $host_cpu in
8744	hppa*64*)
8745	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8746	  ;;
8747	ia64*)
8748	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8749	  ;;
8750	*)
8751	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8752	  ;;
8753	esac
8754      else
8755	case $host_cpu in
8756	hppa*64*)
8757	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8758	  ;;
8759	ia64*)
8760	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8761	  ;;
8762	*)
8763	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8764	  ;;
8765	esac
8766      fi
8767      if test "$with_gnu_ld" = no; then
8768	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8769	hardcode_libdir_separator=:
8770
8771	case $host_cpu in
8772	hppa*64*|ia64*)
8773	  hardcode_libdir_flag_spec_ld='+b $libdir'
8774	  hardcode_direct=no
8775	  hardcode_shlibpath_var=no
8776	  ;;
8777	*)
8778	  hardcode_direct=yes
8779	  export_dynamic_flag_spec='${wl}-E'
8780
8781	  # hardcode_minus_L: Not really in the search PATH,
8782	  # but as the default location of the library.
8783	  hardcode_minus_L=yes
8784	  ;;
8785	esac
8786      fi
8787      ;;
8788
8789    irix5* | irix6* | nonstopux*)
8790      if test "$GCC" = yes; then
8791	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'
8792      else
8793	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'
8794	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8795      fi
8796      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8797      hardcode_libdir_separator=:
8798      link_all_deplibs=yes
8799      ;;
8800
8801    netbsd*)
8802      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8803	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8804      else
8805	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8806      fi
8807      hardcode_libdir_flag_spec='-R$libdir'
8808      hardcode_direct=yes
8809      hardcode_shlibpath_var=no
8810      ;;
8811
8812    newsos6)
8813      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8814      hardcode_direct=yes
8815      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8816      hardcode_libdir_separator=:
8817      hardcode_shlibpath_var=no
8818      ;;
8819
8820    openbsd*)
8821      if test -f /usr/libexec/ld.so; then
8822	hardcode_direct=yes
8823	hardcode_shlibpath_var=no
8824	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8825	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8826	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8827	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8828	  export_dynamic_flag_spec='${wl}-E'
8829	else
8830	  case $host_os in
8831	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8832	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8833	     hardcode_libdir_flag_spec='-R$libdir'
8834	     ;;
8835	   *)
8836	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8837	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8838	     ;;
8839	  esac
8840        fi
8841      else
8842	ld_shlibs=no
8843      fi
8844      ;;
8845
8846    os2*)
8847      hardcode_libdir_flag_spec='-L$libdir'
8848      hardcode_minus_L=yes
8849      allow_undefined_flag=unsupported
8850      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'
8851      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8852      ;;
8853
8854    osf3*)
8855      if test "$GCC" = yes; then
8856	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8857	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'
8858      else
8859	allow_undefined_flag=' -expect_unresolved \*'
8860	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'
8861      fi
8862      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8863      hardcode_libdir_separator=:
8864      ;;
8865
8866    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8867      if test "$GCC" = yes; then
8868	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8869	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'
8870	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8871      else
8872	allow_undefined_flag=' -expect_unresolved \*'
8873	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'
8874	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8875	$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'
8876
8877	# Both c and cxx compiler support -rpath directly
8878	hardcode_libdir_flag_spec='-rpath $libdir'
8879      fi
8880      hardcode_libdir_separator=:
8881      ;;
8882
8883    solaris*)
8884      no_undefined_flag=' -z text'
8885      if test "$GCC" = yes; then
8886	wlarc='${wl}'
8887	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8888	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8889	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8890      else
8891	wlarc=''
8892	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8893	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8894  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8895      fi
8896      hardcode_libdir_flag_spec='-R$libdir'
8897      hardcode_shlibpath_var=no
8898      case $host_os in
8899      solaris2.[0-5] | solaris2.[0-5].*) ;;
8900      *)
8901	# The compiler driver will combine and reorder linker options,
8902	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8903	# but is careful enough not to reorder.
8904 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8905	if test "$GCC" = yes; then
8906	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8907	else
8908	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8909	fi
8910	;;
8911      esac
8912      link_all_deplibs=yes
8913      ;;
8914
8915    sunos4*)
8916      if test "x$host_vendor" = xsequent; then
8917	# Use $CC to link under sequent, because it throws in some extra .o
8918	# files that make .init and .fini sections work.
8919	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8920      else
8921	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8922      fi
8923      hardcode_libdir_flag_spec='-L$libdir'
8924      hardcode_direct=yes
8925      hardcode_minus_L=yes
8926      hardcode_shlibpath_var=no
8927      ;;
8928
8929    sysv4)
8930      case $host_vendor in
8931	sni)
8932	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933	  hardcode_direct=yes # is this really true???
8934	;;
8935	siemens)
8936	  ## LD is ld it makes a PLAMLIB
8937	  ## CC just makes a GrossModule.
8938	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8939	  reload_cmds='$CC -r -o $output$reload_objs'
8940	  hardcode_direct=no
8941        ;;
8942	motorola)
8943	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8944	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8945	;;
8946      esac
8947      runpath_var='LD_RUN_PATH'
8948      hardcode_shlibpath_var=no
8949      ;;
8950
8951    sysv4.3*)
8952      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8953      hardcode_shlibpath_var=no
8954      export_dynamic_flag_spec='-Bexport'
8955      ;;
8956
8957    sysv4*MP*)
8958      if test -d /usr/nec; then
8959	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8960	hardcode_shlibpath_var=no
8961	runpath_var=LD_RUN_PATH
8962	hardcode_runpath_var=yes
8963	ld_shlibs=yes
8964      fi
8965      ;;
8966
8967    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8968      no_undefined_flag='${wl}-z,text'
8969      archive_cmds_need_lc=no
8970      hardcode_shlibpath_var=no
8971      runpath_var='LD_RUN_PATH'
8972
8973      if test "$GCC" = yes; then
8974	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8975	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8976      else
8977	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8978	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8979      fi
8980      ;;
8981
8982    sysv5* | sco3.2v5* | sco5v6*)
8983      # Note: We can NOT use -z defs as we might desire, because we do not
8984      # link with -lc, and that would cause any symbols used from libc to
8985      # always be unresolved, which means just about no library would
8986      # ever link correctly.  If we're not using GNU ld we use -z text
8987      # though, which does catch some bad symbols but isn't as heavy-handed
8988      # as -z defs.
8989      no_undefined_flag='${wl}-z,text'
8990      allow_undefined_flag='${wl}-z,nodefs'
8991      archive_cmds_need_lc=no
8992      hardcode_shlibpath_var=no
8993      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8994      hardcode_libdir_separator=':'
8995      link_all_deplibs=yes
8996      export_dynamic_flag_spec='${wl}-Bexport'
8997      runpath_var='LD_RUN_PATH'
8998
8999      if test "$GCC" = yes; then
9000	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9001	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9002      else
9003	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9004	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9005      fi
9006      ;;
9007
9008    uts4*)
9009      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9010      hardcode_libdir_flag_spec='-L$libdir'
9011      hardcode_shlibpath_var=no
9012      ;;
9013
9014    *)
9015      ld_shlibs=no
9016      ;;
9017    esac
9018  fi
9019
9020{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9021$as_echo "$ld_shlibs" >&6; }
9022test "$ld_shlibs" = no && can_build_shared=no
9023
9024#
9025# Do we need to explicitly link libc?
9026#
9027case "x$archive_cmds_need_lc" in
9028x|xyes)
9029  # Assume -lc should be added
9030  archive_cmds_need_lc=yes
9031
9032  if test "$enable_shared" = yes && test "$GCC" = yes; then
9033    case $archive_cmds in
9034    *'~'*)
9035      # FIXME: we may have to deal with multi-command sequences.
9036      ;;
9037    '$CC '*)
9038      # Test whether the compiler implicitly links with -lc since on some
9039      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9040      # to ld, don't add -lc before -lgcc.
9041      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9042$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9043      $rm conftest*
9044      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9045
9046      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9047  (eval $ac_compile) 2>&5
9048  ac_status=$?
9049  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050  (exit $ac_status); } 2>conftest.err; then
9051        soname=conftest
9052        lib=conftest
9053        libobjs=conftest.$ac_objext
9054        deplibs=
9055        wl=$lt_prog_compiler_wl
9056	pic_flag=$lt_prog_compiler_pic
9057        compiler_flags=-v
9058        linker_flags=-v
9059        verstring=
9060        output_objdir=.
9061        libname=conftest
9062        lt_save_allow_undefined_flag=$allow_undefined_flag
9063        allow_undefined_flag=
9064        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9065  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9066  ac_status=$?
9067  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068  (exit $ac_status); }
9069        then
9070	  archive_cmds_need_lc=no
9071        else
9072	  archive_cmds_need_lc=yes
9073        fi
9074        allow_undefined_flag=$lt_save_allow_undefined_flag
9075      else
9076        cat conftest.err 1>&5
9077      fi
9078      $rm conftest*
9079      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9080$as_echo "$archive_cmds_need_lc" >&6; }
9081      ;;
9082    esac
9083  fi
9084  ;;
9085esac
9086
9087{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9088$as_echo_n "checking dynamic linker characteristics... " >&6; }
9089library_names_spec=
9090libname_spec='lib$name'
9091soname_spec=
9092shrext_cmds=".so"
9093postinstall_cmds=
9094postuninstall_cmds=
9095finish_cmds=
9096finish_eval=
9097shlibpath_var=
9098shlibpath_overrides_runpath=unknown
9099version_type=none
9100dynamic_linker="$host_os ld.so"
9101sys_lib_dlsearch_path_spec="/lib /usr/lib"
9102
9103if test "$GCC" = yes; then
9104  case $host_os in
9105    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9106    *) lt_awk_arg="/^libraries:/" ;;
9107  esac
9108  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9109  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9110    # if the path contains ";" then we assume it to be the separator
9111    # otherwise default to the standard path separator (i.e. ":") - it is
9112    # assumed that no part of a normal pathname contains ";" but that should
9113    # okay in the real world where ";" in dirpaths is itself problematic.
9114    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9115  else
9116    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9117  fi
9118  # Ok, now we have the path, separated by spaces, we can step through it
9119  # and add multilib dir if necessary.
9120  lt_tmp_lt_search_path_spec=
9121  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9122  for lt_sys_path in $lt_search_path_spec; do
9123    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9124      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9125    else
9126      test -d "$lt_sys_path" && \
9127	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9128    fi
9129  done
9130  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9131BEGIN {RS=" "; FS="/|\n";} {
9132  lt_foo="";
9133  lt_count=0;
9134  for (lt_i = NF; lt_i > 0; lt_i--) {
9135    if ($lt_i != "" && $lt_i != ".") {
9136      if ($lt_i == "..") {
9137        lt_count++;
9138      } else {
9139        if (lt_count == 0) {
9140          lt_foo="/" $lt_i lt_foo;
9141        } else {
9142          lt_count--;
9143        }
9144      }
9145    }
9146  }
9147  if (lt_foo != "") { lt_freq[lt_foo]++; }
9148  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9149}'`
9150  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9151else
9152  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9153fi
9154need_lib_prefix=unknown
9155hardcode_into_libs=no
9156
9157# when you set need_version to no, make sure it does not cause -set_version
9158# flags to be left without arguments
9159need_version=unknown
9160
9161case $host_os in
9162aix3*)
9163  version_type=linux
9164  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9165  shlibpath_var=LIBPATH
9166
9167  # AIX 3 has no versioning support, so we append a major version to the name.
9168  soname_spec='${libname}${release}${shared_ext}$major'
9169  ;;
9170
9171aix[4-9]*)
9172  version_type=linux
9173  need_lib_prefix=no
9174  need_version=no
9175  hardcode_into_libs=yes
9176  if test "$host_cpu" = ia64; then
9177    # AIX 5 supports IA64
9178    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9179    shlibpath_var=LD_LIBRARY_PATH
9180  else
9181    # With GCC up to 2.95.x, collect2 would create an import file
9182    # for dependence libraries.  The import file would start with
9183    # the line `#! .'.  This would cause the generated library to
9184    # depend on `.', always an invalid library.  This was fixed in
9185    # development snapshots of GCC prior to 3.0.
9186    case $host_os in
9187      aix4 | aix4.[01] | aix4.[01].*)
9188      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9189	   echo ' yes '
9190	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9191	:
9192      else
9193	can_build_shared=no
9194      fi
9195      ;;
9196    esac
9197    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9198    # soname into executable. Probably we can add versioning support to
9199    # collect2, so additional links can be useful in future.
9200    if test "$aix_use_runtimelinking" = yes; then
9201      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9202      # instead of lib<name>.a to let people know that these are not
9203      # typical AIX shared libraries.
9204      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9205    else
9206      # We preserve .a as extension for shared libraries through AIX4.2
9207      # and later when we are not doing run time linking.
9208      library_names_spec='${libname}${release}.a $libname.a'
9209      soname_spec='${libname}${release}${shared_ext}$major'
9210    fi
9211    shlibpath_var=LIBPATH
9212  fi
9213  ;;
9214
9215amigaos*)
9216  library_names_spec='$libname.ixlibrary $libname.a'
9217  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9218  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'
9219  ;;
9220
9221beos*)
9222  library_names_spec='${libname}${shared_ext}'
9223  dynamic_linker="$host_os ld.so"
9224  shlibpath_var=LIBRARY_PATH
9225  ;;
9226
9227bsdi[45]*)
9228  version_type=linux
9229  need_version=no
9230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231  soname_spec='${libname}${release}${shared_ext}$major'
9232  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9233  shlibpath_var=LD_LIBRARY_PATH
9234  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9235  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9236  # the default ld.so.conf also contains /usr/contrib/lib and
9237  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9238  # libtool to hard-code these into programs
9239  ;;
9240
9241cygwin* | mingw* | pw32*)
9242  version_type=windows
9243  shrext_cmds=".dll"
9244  need_version=no
9245  need_lib_prefix=no
9246
9247  case $GCC,$host_os in
9248  yes,cygwin* | yes,mingw* | yes,pw32*)
9249    library_names_spec='$libname.dll.a'
9250    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9251    postinstall_cmds='base_file=`basename \${file}`~
9252      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9253      dldir=$destdir/`dirname \$dlpath`~
9254      test -d \$dldir || mkdir -p \$dldir~
9255      $install_prog $dir/$dlname \$dldir/$dlname~
9256      chmod a+x \$dldir/$dlname'
9257    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9258      dlpath=$dir/\$dldll~
9259       $rm \$dlpath'
9260    shlibpath_overrides_runpath=yes
9261
9262    case $host_os in
9263    cygwin*)
9264      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9265      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9266      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9267      ;;
9268    mingw*)
9269      # MinGW DLLs use traditional 'lib' prefix
9270      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9271      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9272      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9273        # It is most probably a Windows format PATH printed by
9274        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9275        # path with ; separators, and with drive letters. We can handle the
9276        # drive letters (cygwin fileutils understands them), so leave them,
9277        # especially as we might pass files found there to a mingw objdump,
9278        # which wouldn't understand a cygwinified path. Ahh.
9279        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9280      else
9281        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9282      fi
9283      ;;
9284    pw32*)
9285      # pw32 DLLs use 'pw' prefix rather than 'lib'
9286      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9287      ;;
9288    esac
9289    ;;
9290
9291  *)
9292    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9293    ;;
9294  esac
9295  dynamic_linker='Win32 ld.exe'
9296  # FIXME: first we should search . and the directory the executable is in
9297  shlibpath_var=PATH
9298  ;;
9299
9300darwin* | rhapsody*)
9301  dynamic_linker="$host_os dyld"
9302  version_type=darwin
9303  need_lib_prefix=no
9304  need_version=no
9305  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9306  soname_spec='${libname}${release}${major}$shared_ext'
9307  shlibpath_overrides_runpath=yes
9308  shlibpath_var=DYLD_LIBRARY_PATH
9309  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9310
9311  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9312  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9313  ;;
9314
9315dgux*)
9316  version_type=linux
9317  need_lib_prefix=no
9318  need_version=no
9319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9320  soname_spec='${libname}${release}${shared_ext}$major'
9321  shlibpath_var=LD_LIBRARY_PATH
9322  ;;
9323
9324freebsd1*)
9325  dynamic_linker=no
9326  ;;
9327
9328freebsd* | dragonfly*)
9329  # DragonFly does not have aout.  When/if they implement a new
9330  # versioning mechanism, adjust this.
9331  if test -x /usr/bin/objformat; then
9332    objformat=`/usr/bin/objformat`
9333  else
9334    case $host_os in
9335    freebsd[123]*) objformat=aout ;;
9336    *) objformat=elf ;;
9337    esac
9338  fi
9339  version_type=freebsd-$objformat
9340  case $version_type in
9341    freebsd-elf*)
9342      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9343      need_version=no
9344      need_lib_prefix=no
9345      ;;
9346    freebsd-*)
9347      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9348      need_version=yes
9349      ;;
9350  esac
9351  shlibpath_var=LD_LIBRARY_PATH
9352  case $host_os in
9353  freebsd2*)
9354    shlibpath_overrides_runpath=yes
9355    ;;
9356  freebsd3.[01]* | freebsdelf3.[01]*)
9357    shlibpath_overrides_runpath=yes
9358    hardcode_into_libs=yes
9359    ;;
9360  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9361  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9362    shlibpath_overrides_runpath=no
9363    hardcode_into_libs=yes
9364    ;;
9365  *) # from 4.6 on, and DragonFly
9366    shlibpath_overrides_runpath=yes
9367    hardcode_into_libs=yes
9368    ;;
9369  esac
9370  ;;
9371
9372gnu*)
9373  version_type=linux
9374  need_lib_prefix=no
9375  need_version=no
9376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9377  soname_spec='${libname}${release}${shared_ext}$major'
9378  shlibpath_var=LD_LIBRARY_PATH
9379  hardcode_into_libs=yes
9380  ;;
9381
9382hpux9* | hpux10* | hpux11*)
9383  # Give a soname corresponding to the major version so that dld.sl refuses to
9384  # link against other versions.
9385  version_type=sunos
9386  need_lib_prefix=no
9387  need_version=no
9388  case $host_cpu in
9389  ia64*)
9390    shrext_cmds='.so'
9391    hardcode_into_libs=yes
9392    dynamic_linker="$host_os dld.so"
9393    shlibpath_var=LD_LIBRARY_PATH
9394    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9395    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9396    soname_spec='${libname}${release}${shared_ext}$major'
9397    if test "X$HPUX_IA64_MODE" = X32; then
9398      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9399    else
9400      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9401    fi
9402    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9403    ;;
9404   hppa*64*)
9405     shrext_cmds='.sl'
9406     hardcode_into_libs=yes
9407     dynamic_linker="$host_os dld.sl"
9408     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9409     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9410     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9411     soname_spec='${libname}${release}${shared_ext}$major'
9412     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9413     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9414     ;;
9415   *)
9416    shrext_cmds='.sl'
9417    dynamic_linker="$host_os dld.sl"
9418    shlibpath_var=SHLIB_PATH
9419    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9420    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421    soname_spec='${libname}${release}${shared_ext}$major'
9422    ;;
9423  esac
9424  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9425  postinstall_cmds='chmod 555 $lib'
9426  ;;
9427
9428interix[3-9]*)
9429  version_type=linux
9430  need_lib_prefix=no
9431  need_version=no
9432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9433  soname_spec='${libname}${release}${shared_ext}$major'
9434  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9435  shlibpath_var=LD_LIBRARY_PATH
9436  shlibpath_overrides_runpath=no
9437  hardcode_into_libs=yes
9438  ;;
9439
9440irix5* | irix6* | nonstopux*)
9441  case $host_os in
9442    nonstopux*) version_type=nonstopux ;;
9443    *)
9444	if test "$lt_cv_prog_gnu_ld" = yes; then
9445		version_type=linux
9446	else
9447		version_type=irix
9448	fi ;;
9449  esac
9450  need_lib_prefix=no
9451  need_version=no
9452  soname_spec='${libname}${release}${shared_ext}$major'
9453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9454  case $host_os in
9455  irix5* | nonstopux*)
9456    libsuff= shlibsuff=
9457    ;;
9458  *)
9459    case $LD in # libtool.m4 will add one of these switches to LD
9460    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9461      libsuff= shlibsuff= libmagic=32-bit;;
9462    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9463      libsuff=32 shlibsuff=N32 libmagic=N32;;
9464    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9465      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9466    *) libsuff= shlibsuff= libmagic=never-match;;
9467    esac
9468    ;;
9469  esac
9470  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9471  shlibpath_overrides_runpath=no
9472  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9473  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9474  hardcode_into_libs=yes
9475  ;;
9476
9477# No shared lib support for Linux oldld, aout, or coff.
9478linux*oldld* | linux*aout* | linux*coff*)
9479  dynamic_linker=no
9480  ;;
9481
9482# This must be Linux ELF.
9483linux* | k*bsd*-gnu)
9484  version_type=linux
9485  need_lib_prefix=no
9486  need_version=no
9487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488  soname_spec='${libname}${release}${shared_ext}$major'
9489  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9490  shlibpath_var=LD_LIBRARY_PATH
9491  shlibpath_overrides_runpath=no
9492  # This implies no fast_install, which is unacceptable.
9493  # Some rework will be needed to allow for fast_install
9494  # before this can be enabled.
9495  hardcode_into_libs=yes
9496  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9497  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9498
9499  # Append ld.so.conf contents to the search path
9500  if test -f /etc/ld.so.conf; then
9501    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' ' '`
9502    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9503  fi
9504
9505  # We used to test for /lib/ld.so.1 and disable shared libraries on
9506  # powerpc, because MkLinux only supported shared libraries with the
9507  # GNU dynamic linker.  Since this was broken with cross compilers,
9508  # most powerpc-linux boxes support dynamic linking these days and
9509  # people can always --disable-shared, the test was removed, and we
9510  # assume the GNU/Linux dynamic linker is in use.
9511  dynamic_linker='GNU/Linux ld.so'
9512  ;;
9513
9514netbsd*)
9515  version_type=sunos
9516  need_lib_prefix=no
9517  need_version=no
9518  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9519    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9520    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9521    dynamic_linker='NetBSD (a.out) ld.so'
9522  else
9523    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9524    soname_spec='${libname}${release}${shared_ext}$major'
9525    dynamic_linker='NetBSD ld.elf_so'
9526  fi
9527  shlibpath_var=LD_LIBRARY_PATH
9528  shlibpath_overrides_runpath=yes
9529  hardcode_into_libs=yes
9530  ;;
9531
9532newsos6)
9533  version_type=linux
9534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9535  shlibpath_var=LD_LIBRARY_PATH
9536  shlibpath_overrides_runpath=yes
9537  ;;
9538
9539nto-qnx*)
9540  version_type=linux
9541  need_lib_prefix=no
9542  need_version=no
9543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544  soname_spec='${libname}${release}${shared_ext}$major'
9545  shlibpath_var=LD_LIBRARY_PATH
9546  shlibpath_overrides_runpath=yes
9547  ;;
9548
9549openbsd*)
9550  version_type=sunos
9551  sys_lib_dlsearch_path_spec="/usr/lib"
9552  need_lib_prefix=no
9553  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9554  case $host_os in
9555    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9556    *)                         need_version=no  ;;
9557  esac
9558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9559  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9560  shlibpath_var=LD_LIBRARY_PATH
9561  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9562    case $host_os in
9563      openbsd2.[89] | openbsd2.[89].*)
9564	shlibpath_overrides_runpath=no
9565	;;
9566      *)
9567	shlibpath_overrides_runpath=yes
9568	;;
9569      esac
9570  else
9571    shlibpath_overrides_runpath=yes
9572  fi
9573  ;;
9574
9575os2*)
9576  libname_spec='$name'
9577  shrext_cmds=".dll"
9578  need_lib_prefix=no
9579  library_names_spec='$libname${shared_ext} $libname.a'
9580  dynamic_linker='OS/2 ld.exe'
9581  shlibpath_var=LIBPATH
9582  ;;
9583
9584osf3* | osf4* | osf5*)
9585  version_type=osf
9586  need_lib_prefix=no
9587  need_version=no
9588  soname_spec='${libname}${release}${shared_ext}$major'
9589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9590  shlibpath_var=LD_LIBRARY_PATH
9591  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9592  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9593  ;;
9594
9595rdos*)
9596  dynamic_linker=no
9597  ;;
9598
9599solaris*)
9600  version_type=linux
9601  need_lib_prefix=no
9602  need_version=no
9603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9604  soname_spec='${libname}${release}${shared_ext}$major'
9605  shlibpath_var=LD_LIBRARY_PATH
9606  shlibpath_overrides_runpath=yes
9607  hardcode_into_libs=yes
9608  # ldd complains unless libraries are executable
9609  postinstall_cmds='chmod +x $lib'
9610  ;;
9611
9612sunos4*)
9613  version_type=sunos
9614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9615  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9616  shlibpath_var=LD_LIBRARY_PATH
9617  shlibpath_overrides_runpath=yes
9618  if test "$with_gnu_ld" = yes; then
9619    need_lib_prefix=no
9620  fi
9621  need_version=yes
9622  ;;
9623
9624sysv4 | sysv4.3*)
9625  version_type=linux
9626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9627  soname_spec='${libname}${release}${shared_ext}$major'
9628  shlibpath_var=LD_LIBRARY_PATH
9629  case $host_vendor in
9630    sni)
9631      shlibpath_overrides_runpath=no
9632      need_lib_prefix=no
9633      export_dynamic_flag_spec='${wl}-Blargedynsym'
9634      runpath_var=LD_RUN_PATH
9635      ;;
9636    siemens)
9637      need_lib_prefix=no
9638      ;;
9639    motorola)
9640      need_lib_prefix=no
9641      need_version=no
9642      shlibpath_overrides_runpath=no
9643      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9644      ;;
9645  esac
9646  ;;
9647
9648sysv4*MP*)
9649  if test -d /usr/nec ;then
9650    version_type=linux
9651    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9652    soname_spec='$libname${shared_ext}.$major'
9653    shlibpath_var=LD_LIBRARY_PATH
9654  fi
9655  ;;
9656
9657sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9658  version_type=freebsd-elf
9659  need_lib_prefix=no
9660  need_version=no
9661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9662  soname_spec='${libname}${release}${shared_ext}$major'
9663  shlibpath_var=LD_LIBRARY_PATH
9664  hardcode_into_libs=yes
9665  if test "$with_gnu_ld" = yes; then
9666    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9667    shlibpath_overrides_runpath=no
9668  else
9669    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9670    shlibpath_overrides_runpath=yes
9671    case $host_os in
9672      sco3.2v5*)
9673        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9674	;;
9675    esac
9676  fi
9677  sys_lib_dlsearch_path_spec='/usr/lib'
9678  ;;
9679
9680uts4*)
9681  version_type=linux
9682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683  soname_spec='${libname}${release}${shared_ext}$major'
9684  shlibpath_var=LD_LIBRARY_PATH
9685  ;;
9686
9687*)
9688  dynamic_linker=no
9689  ;;
9690esac
9691{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9692$as_echo "$dynamic_linker" >&6; }
9693test "$dynamic_linker" = no && can_build_shared=no
9694
9695if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9696  $as_echo_n "(cached) " >&6
9697else
9698  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9699fi
9700
9701sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9702if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9703  $as_echo_n "(cached) " >&6
9704else
9705  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9706fi
9707
9708sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9709
9710variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9711if test "$GCC" = yes; then
9712  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9713fi
9714
9715{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9716$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9717hardcode_action=
9718if test -n "$hardcode_libdir_flag_spec" || \
9719   test -n "$runpath_var" || \
9720   test "X$hardcode_automatic" = "Xyes" ; then
9721
9722  # We can hardcode non-existant directories.
9723  if test "$hardcode_direct" != no &&
9724     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9725     # have to relink, otherwise we might link with an installed library
9726     # when we should be linking with a yet-to-be-installed one
9727     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9728     test "$hardcode_minus_L" != no; then
9729    # Linking always hardcodes the temporary library directory.
9730    hardcode_action=relink
9731  else
9732    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9733    hardcode_action=immediate
9734  fi
9735else
9736  # We cannot hardcode anything, or else we can only hardcode existing
9737  # directories.
9738  hardcode_action=unsupported
9739fi
9740{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9741$as_echo "$hardcode_action" >&6; }
9742
9743if test "$hardcode_action" = relink; then
9744  # Fast installation is not supported
9745  enable_fast_install=no
9746elif test "$shlibpath_overrides_runpath" = yes ||
9747     test "$enable_shared" = no; then
9748  # Fast installation is not necessary
9749  enable_fast_install=needless
9750fi
9751
9752striplib=
9753old_striplib=
9754{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9755$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9756if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9757  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9758  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9759  { $as_echo "$as_me:$LINENO: result: yes" >&5
9760$as_echo "yes" >&6; }
9761else
9762# FIXME - insert some real tests, host_os isn't really good enough
9763  case $host_os in
9764   darwin*)
9765       if test -n "$STRIP" ; then
9766         striplib="$STRIP -x"
9767         old_striplib="$STRIP -S"
9768         { $as_echo "$as_me:$LINENO: result: yes" >&5
9769$as_echo "yes" >&6; }
9770       else
9771  { $as_echo "$as_me:$LINENO: result: no" >&5
9772$as_echo "no" >&6; }
9773fi
9774       ;;
9775   *)
9776  { $as_echo "$as_me:$LINENO: result: no" >&5
9777$as_echo "no" >&6; }
9778    ;;
9779  esac
9780fi
9781
9782if test "x$enable_dlopen" != xyes; then
9783  enable_dlopen=unknown
9784  enable_dlopen_self=unknown
9785  enable_dlopen_self_static=unknown
9786else
9787  lt_cv_dlopen=no
9788  lt_cv_dlopen_libs=
9789
9790  case $host_os in
9791  beos*)
9792    lt_cv_dlopen="load_add_on"
9793    lt_cv_dlopen_libs=
9794    lt_cv_dlopen_self=yes
9795    ;;
9796
9797  mingw* | pw32*)
9798    lt_cv_dlopen="LoadLibrary"
9799    lt_cv_dlopen_libs=
9800   ;;
9801
9802  cygwin*)
9803    lt_cv_dlopen="dlopen"
9804    lt_cv_dlopen_libs=
9805   ;;
9806
9807  darwin*)
9808  # if libdl is installed we need to link against it
9809    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9810$as_echo_n "checking for dlopen in -ldl... " >&6; }
9811if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9812  $as_echo_n "(cached) " >&6
9813else
9814  ac_check_lib_save_LIBS=$LIBS
9815LIBS="-ldl  $LIBS"
9816cat >conftest.$ac_ext <<_ACEOF
9817/* confdefs.h.  */
9818_ACEOF
9819cat confdefs.h >>conftest.$ac_ext
9820cat >>conftest.$ac_ext <<_ACEOF
9821/* end confdefs.h.  */
9822
9823/* Override any GCC internal prototype to avoid an error.
9824   Use char because int might match the return type of a GCC
9825   builtin and then its argument prototype would still apply.  */
9826#ifdef __cplusplus
9827extern "C"
9828#endif
9829char dlopen ();
9830int
9831main ()
9832{
9833return dlopen ();
9834  ;
9835  return 0;
9836}
9837_ACEOF
9838rm -f conftest.$ac_objext conftest$ac_exeext
9839if { (ac_try="$ac_link"
9840case "(($ac_try" in
9841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842  *) ac_try_echo=$ac_try;;
9843esac
9844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9845$as_echo "$ac_try_echo") >&5
9846  (eval "$ac_link") 2>conftest.er1
9847  ac_status=$?
9848  grep -v '^ *+' conftest.er1 >conftest.err
9849  rm -f conftest.er1
9850  cat conftest.err >&5
9851  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852  (exit $ac_status); } && {
9853	 test -z "$ac_c_werror_flag" ||
9854	 test ! -s conftest.err
9855       } && test -s conftest$ac_exeext && {
9856	 test "$cross_compiling" = yes ||
9857	 $as_test_x conftest$ac_exeext
9858       }; then
9859  ac_cv_lib_dl_dlopen=yes
9860else
9861  $as_echo "$as_me: failed program was:" >&5
9862sed 's/^/| /' conftest.$ac_ext >&5
9863
9864	ac_cv_lib_dl_dlopen=no
9865fi
9866
9867rm -rf conftest.dSYM
9868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9869      conftest$ac_exeext conftest.$ac_ext
9870LIBS=$ac_check_lib_save_LIBS
9871fi
9872{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9873$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9874if test $ac_cv_lib_dl_dlopen = yes; then
9875  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9876else
9877
9878    lt_cv_dlopen="dyld"
9879    lt_cv_dlopen_libs=
9880    lt_cv_dlopen_self=yes
9881
9882fi
9883
9884   ;;
9885
9886  *)
9887    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9888$as_echo_n "checking for shl_load... " >&6; }
9889if test "${ac_cv_func_shl_load+set}" = set; then
9890  $as_echo_n "(cached) " >&6
9891else
9892  cat >conftest.$ac_ext <<_ACEOF
9893/* confdefs.h.  */
9894_ACEOF
9895cat confdefs.h >>conftest.$ac_ext
9896cat >>conftest.$ac_ext <<_ACEOF
9897/* end confdefs.h.  */
9898/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9899   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9900#define shl_load innocuous_shl_load
9901
9902/* System header to define __stub macros and hopefully few prototypes,
9903    which can conflict with char shl_load (); below.
9904    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9905    <limits.h> exists even on freestanding compilers.  */
9906
9907#ifdef __STDC__
9908# include <limits.h>
9909#else
9910# include <assert.h>
9911#endif
9912
9913#undef shl_load
9914
9915/* Override any GCC internal prototype to avoid an error.
9916   Use char because int might match the return type of a GCC
9917   builtin and then its argument prototype would still apply.  */
9918#ifdef __cplusplus
9919extern "C"
9920#endif
9921char shl_load ();
9922/* The GNU C library defines this for functions which it implements
9923    to always fail with ENOSYS.  Some functions are actually named
9924    something starting with __ and the normal name is an alias.  */
9925#if defined __stub_shl_load || defined __stub___shl_load
9926choke me
9927#endif
9928
9929int
9930main ()
9931{
9932return shl_load ();
9933  ;
9934  return 0;
9935}
9936_ACEOF
9937rm -f conftest.$ac_objext conftest$ac_exeext
9938if { (ac_try="$ac_link"
9939case "(($ac_try" in
9940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941  *) ac_try_echo=$ac_try;;
9942esac
9943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9944$as_echo "$ac_try_echo") >&5
9945  (eval "$ac_link") 2>conftest.er1
9946  ac_status=$?
9947  grep -v '^ *+' conftest.er1 >conftest.err
9948  rm -f conftest.er1
9949  cat conftest.err >&5
9950  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951  (exit $ac_status); } && {
9952	 test -z "$ac_c_werror_flag" ||
9953	 test ! -s conftest.err
9954       } && test -s conftest$ac_exeext && {
9955	 test "$cross_compiling" = yes ||
9956	 $as_test_x conftest$ac_exeext
9957       }; then
9958  ac_cv_func_shl_load=yes
9959else
9960  $as_echo "$as_me: failed program was:" >&5
9961sed 's/^/| /' conftest.$ac_ext >&5
9962
9963	ac_cv_func_shl_load=no
9964fi
9965
9966rm -rf conftest.dSYM
9967rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9968      conftest$ac_exeext conftest.$ac_ext
9969fi
9970{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9971$as_echo "$ac_cv_func_shl_load" >&6; }
9972if test $ac_cv_func_shl_load = yes; then
9973  lt_cv_dlopen="shl_load"
9974else
9975  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9976$as_echo_n "checking for shl_load in -ldld... " >&6; }
9977if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9978  $as_echo_n "(cached) " >&6
9979else
9980  ac_check_lib_save_LIBS=$LIBS
9981LIBS="-ldld  $LIBS"
9982cat >conftest.$ac_ext <<_ACEOF
9983/* confdefs.h.  */
9984_ACEOF
9985cat confdefs.h >>conftest.$ac_ext
9986cat >>conftest.$ac_ext <<_ACEOF
9987/* end confdefs.h.  */
9988
9989/* Override any GCC internal prototype to avoid an error.
9990   Use char because int might match the return type of a GCC
9991   builtin and then its argument prototype would still apply.  */
9992#ifdef __cplusplus
9993extern "C"
9994#endif
9995char shl_load ();
9996int
9997main ()
9998{
9999return shl_load ();
10000  ;
10001  return 0;
10002}
10003_ACEOF
10004rm -f conftest.$ac_objext conftest$ac_exeext
10005if { (ac_try="$ac_link"
10006case "(($ac_try" in
10007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008  *) ac_try_echo=$ac_try;;
10009esac
10010eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10011$as_echo "$ac_try_echo") >&5
10012  (eval "$ac_link") 2>conftest.er1
10013  ac_status=$?
10014  grep -v '^ *+' conftest.er1 >conftest.err
10015  rm -f conftest.er1
10016  cat conftest.err >&5
10017  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018  (exit $ac_status); } && {
10019	 test -z "$ac_c_werror_flag" ||
10020	 test ! -s conftest.err
10021       } && test -s conftest$ac_exeext && {
10022	 test "$cross_compiling" = yes ||
10023	 $as_test_x conftest$ac_exeext
10024       }; then
10025  ac_cv_lib_dld_shl_load=yes
10026else
10027  $as_echo "$as_me: failed program was:" >&5
10028sed 's/^/| /' conftest.$ac_ext >&5
10029
10030	ac_cv_lib_dld_shl_load=no
10031fi
10032
10033rm -rf conftest.dSYM
10034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10035      conftest$ac_exeext conftest.$ac_ext
10036LIBS=$ac_check_lib_save_LIBS
10037fi
10038{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10039$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10040if test $ac_cv_lib_dld_shl_load = yes; then
10041  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10042else
10043  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10044$as_echo_n "checking for dlopen... " >&6; }
10045if test "${ac_cv_func_dlopen+set}" = set; then
10046  $as_echo_n "(cached) " >&6
10047else
10048  cat >conftest.$ac_ext <<_ACEOF
10049/* confdefs.h.  */
10050_ACEOF
10051cat confdefs.h >>conftest.$ac_ext
10052cat >>conftest.$ac_ext <<_ACEOF
10053/* end confdefs.h.  */
10054/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10055   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10056#define dlopen innocuous_dlopen
10057
10058/* System header to define __stub macros and hopefully few prototypes,
10059    which can conflict with char dlopen (); below.
10060    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10061    <limits.h> exists even on freestanding compilers.  */
10062
10063#ifdef __STDC__
10064# include <limits.h>
10065#else
10066# include <assert.h>
10067#endif
10068
10069#undef dlopen
10070
10071/* Override any GCC internal prototype to avoid an error.
10072   Use char because int might match the return type of a GCC
10073   builtin and then its argument prototype would still apply.  */
10074#ifdef __cplusplus
10075extern "C"
10076#endif
10077char dlopen ();
10078/* The GNU C library defines this for functions which it implements
10079    to always fail with ENOSYS.  Some functions are actually named
10080    something starting with __ and the normal name is an alias.  */
10081#if defined __stub_dlopen || defined __stub___dlopen
10082choke me
10083#endif
10084
10085int
10086main ()
10087{
10088return dlopen ();
10089  ;
10090  return 0;
10091}
10092_ACEOF
10093rm -f conftest.$ac_objext conftest$ac_exeext
10094if { (ac_try="$ac_link"
10095case "(($ac_try" in
10096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097  *) ac_try_echo=$ac_try;;
10098esac
10099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10100$as_echo "$ac_try_echo") >&5
10101  (eval "$ac_link") 2>conftest.er1
10102  ac_status=$?
10103  grep -v '^ *+' conftest.er1 >conftest.err
10104  rm -f conftest.er1
10105  cat conftest.err >&5
10106  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107  (exit $ac_status); } && {
10108	 test -z "$ac_c_werror_flag" ||
10109	 test ! -s conftest.err
10110       } && test -s conftest$ac_exeext && {
10111	 test "$cross_compiling" = yes ||
10112	 $as_test_x conftest$ac_exeext
10113       }; then
10114  ac_cv_func_dlopen=yes
10115else
10116  $as_echo "$as_me: failed program was:" >&5
10117sed 's/^/| /' conftest.$ac_ext >&5
10118
10119	ac_cv_func_dlopen=no
10120fi
10121
10122rm -rf conftest.dSYM
10123rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10124      conftest$ac_exeext conftest.$ac_ext
10125fi
10126{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10127$as_echo "$ac_cv_func_dlopen" >&6; }
10128if test $ac_cv_func_dlopen = yes; then
10129  lt_cv_dlopen="dlopen"
10130else
10131  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10132$as_echo_n "checking for dlopen in -ldl... " >&6; }
10133if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10134  $as_echo_n "(cached) " >&6
10135else
10136  ac_check_lib_save_LIBS=$LIBS
10137LIBS="-ldl  $LIBS"
10138cat >conftest.$ac_ext <<_ACEOF
10139/* confdefs.h.  */
10140_ACEOF
10141cat confdefs.h >>conftest.$ac_ext
10142cat >>conftest.$ac_ext <<_ACEOF
10143/* end confdefs.h.  */
10144
10145/* Override any GCC internal prototype to avoid an error.
10146   Use char because int might match the return type of a GCC
10147   builtin and then its argument prototype would still apply.  */
10148#ifdef __cplusplus
10149extern "C"
10150#endif
10151char dlopen ();
10152int
10153main ()
10154{
10155return dlopen ();
10156  ;
10157  return 0;
10158}
10159_ACEOF
10160rm -f conftest.$ac_objext conftest$ac_exeext
10161if { (ac_try="$ac_link"
10162case "(($ac_try" in
10163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164  *) ac_try_echo=$ac_try;;
10165esac
10166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10167$as_echo "$ac_try_echo") >&5
10168  (eval "$ac_link") 2>conftest.er1
10169  ac_status=$?
10170  grep -v '^ *+' conftest.er1 >conftest.err
10171  rm -f conftest.er1
10172  cat conftest.err >&5
10173  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174  (exit $ac_status); } && {
10175	 test -z "$ac_c_werror_flag" ||
10176	 test ! -s conftest.err
10177       } && test -s conftest$ac_exeext && {
10178	 test "$cross_compiling" = yes ||
10179	 $as_test_x conftest$ac_exeext
10180       }; then
10181  ac_cv_lib_dl_dlopen=yes
10182else
10183  $as_echo "$as_me: failed program was:" >&5
10184sed 's/^/| /' conftest.$ac_ext >&5
10185
10186	ac_cv_lib_dl_dlopen=no
10187fi
10188
10189rm -rf conftest.dSYM
10190rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10191      conftest$ac_exeext conftest.$ac_ext
10192LIBS=$ac_check_lib_save_LIBS
10193fi
10194{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10195$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10196if test $ac_cv_lib_dl_dlopen = yes; then
10197  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10198else
10199  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10200$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10201if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10202  $as_echo_n "(cached) " >&6
10203else
10204  ac_check_lib_save_LIBS=$LIBS
10205LIBS="-lsvld  $LIBS"
10206cat >conftest.$ac_ext <<_ACEOF
10207/* confdefs.h.  */
10208_ACEOF
10209cat confdefs.h >>conftest.$ac_ext
10210cat >>conftest.$ac_ext <<_ACEOF
10211/* end confdefs.h.  */
10212
10213/* Override any GCC internal prototype to avoid an error.
10214   Use char because int might match the return type of a GCC
10215   builtin and then its argument prototype would still apply.  */
10216#ifdef __cplusplus
10217extern "C"
10218#endif
10219char dlopen ();
10220int
10221main ()
10222{
10223return dlopen ();
10224  ;
10225  return 0;
10226}
10227_ACEOF
10228rm -f conftest.$ac_objext conftest$ac_exeext
10229if { (ac_try="$ac_link"
10230case "(($ac_try" in
10231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232  *) ac_try_echo=$ac_try;;
10233esac
10234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10235$as_echo "$ac_try_echo") >&5
10236  (eval "$ac_link") 2>conftest.er1
10237  ac_status=$?
10238  grep -v '^ *+' conftest.er1 >conftest.err
10239  rm -f conftest.er1
10240  cat conftest.err >&5
10241  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242  (exit $ac_status); } && {
10243	 test -z "$ac_c_werror_flag" ||
10244	 test ! -s conftest.err
10245       } && test -s conftest$ac_exeext && {
10246	 test "$cross_compiling" = yes ||
10247	 $as_test_x conftest$ac_exeext
10248       }; then
10249  ac_cv_lib_svld_dlopen=yes
10250else
10251  $as_echo "$as_me: failed program was:" >&5
10252sed 's/^/| /' conftest.$ac_ext >&5
10253
10254	ac_cv_lib_svld_dlopen=no
10255fi
10256
10257rm -rf conftest.dSYM
10258rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10259      conftest$ac_exeext conftest.$ac_ext
10260LIBS=$ac_check_lib_save_LIBS
10261fi
10262{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10263$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10264if test $ac_cv_lib_svld_dlopen = yes; then
10265  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10266else
10267  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10268$as_echo_n "checking for dld_link in -ldld... " >&6; }
10269if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10270  $as_echo_n "(cached) " >&6
10271else
10272  ac_check_lib_save_LIBS=$LIBS
10273LIBS="-ldld  $LIBS"
10274cat >conftest.$ac_ext <<_ACEOF
10275/* confdefs.h.  */
10276_ACEOF
10277cat confdefs.h >>conftest.$ac_ext
10278cat >>conftest.$ac_ext <<_ACEOF
10279/* end confdefs.h.  */
10280
10281/* Override any GCC internal prototype to avoid an error.
10282   Use char because int might match the return type of a GCC
10283   builtin and then its argument prototype would still apply.  */
10284#ifdef __cplusplus
10285extern "C"
10286#endif
10287char dld_link ();
10288int
10289main ()
10290{
10291return dld_link ();
10292  ;
10293  return 0;
10294}
10295_ACEOF
10296rm -f conftest.$ac_objext conftest$ac_exeext
10297if { (ac_try="$ac_link"
10298case "(($ac_try" in
10299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300  *) ac_try_echo=$ac_try;;
10301esac
10302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10303$as_echo "$ac_try_echo") >&5
10304  (eval "$ac_link") 2>conftest.er1
10305  ac_status=$?
10306  grep -v '^ *+' conftest.er1 >conftest.err
10307  rm -f conftest.er1
10308  cat conftest.err >&5
10309  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310  (exit $ac_status); } && {
10311	 test -z "$ac_c_werror_flag" ||
10312	 test ! -s conftest.err
10313       } && test -s conftest$ac_exeext && {
10314	 test "$cross_compiling" = yes ||
10315	 $as_test_x conftest$ac_exeext
10316       }; then
10317  ac_cv_lib_dld_dld_link=yes
10318else
10319  $as_echo "$as_me: failed program was:" >&5
10320sed 's/^/| /' conftest.$ac_ext >&5
10321
10322	ac_cv_lib_dld_dld_link=no
10323fi
10324
10325rm -rf conftest.dSYM
10326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10327      conftest$ac_exeext conftest.$ac_ext
10328LIBS=$ac_check_lib_save_LIBS
10329fi
10330{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10331$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10332if test $ac_cv_lib_dld_dld_link = yes; then
10333  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10334fi
10335
10336
10337fi
10338
10339
10340fi
10341
10342
10343fi
10344
10345
10346fi
10347
10348
10349fi
10350
10351    ;;
10352  esac
10353
10354  if test "x$lt_cv_dlopen" != xno; then
10355    enable_dlopen=yes
10356  else
10357    enable_dlopen=no
10358  fi
10359
10360  case $lt_cv_dlopen in
10361  dlopen)
10362    save_CPPFLAGS="$CPPFLAGS"
10363    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10364
10365    save_LDFLAGS="$LDFLAGS"
10366    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10367
10368    save_LIBS="$LIBS"
10369    LIBS="$lt_cv_dlopen_libs $LIBS"
10370
10371    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10372$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10373if test "${lt_cv_dlopen_self+set}" = set; then
10374  $as_echo_n "(cached) " >&6
10375else
10376  	  if test "$cross_compiling" = yes; then :
10377  lt_cv_dlopen_self=cross
10378else
10379  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10380  lt_status=$lt_dlunknown
10381  cat > conftest.$ac_ext <<EOF
10382#line 10382 "configure"
10383#include "confdefs.h"
10384
10385#if HAVE_DLFCN_H
10386#include <dlfcn.h>
10387#endif
10388
10389#include <stdio.h>
10390
10391#ifdef RTLD_GLOBAL
10392#  define LT_DLGLOBAL		RTLD_GLOBAL
10393#else
10394#  ifdef DL_GLOBAL
10395#    define LT_DLGLOBAL		DL_GLOBAL
10396#  else
10397#    define LT_DLGLOBAL		0
10398#  endif
10399#endif
10400
10401/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10402   find out it does not work in some platform. */
10403#ifndef LT_DLLAZY_OR_NOW
10404#  ifdef RTLD_LAZY
10405#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10406#  else
10407#    ifdef DL_LAZY
10408#      define LT_DLLAZY_OR_NOW		DL_LAZY
10409#    else
10410#      ifdef RTLD_NOW
10411#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10412#      else
10413#        ifdef DL_NOW
10414#          define LT_DLLAZY_OR_NOW	DL_NOW
10415#        else
10416#          define LT_DLLAZY_OR_NOW	0
10417#        endif
10418#      endif
10419#    endif
10420#  endif
10421#endif
10422
10423#ifdef __cplusplus
10424extern "C" void exit (int);
10425#endif
10426
10427void fnord() { int i=42;}
10428int main ()
10429{
10430  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10431  int status = $lt_dlunknown;
10432
10433  if (self)
10434    {
10435      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10436      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10437      /* dlclose (self); */
10438    }
10439  else
10440    puts (dlerror ());
10441
10442    exit (status);
10443}
10444EOF
10445  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10446  (eval $ac_link) 2>&5
10447  ac_status=$?
10448  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10450    (./conftest; exit; ) >&5 2>/dev/null
10451    lt_status=$?
10452    case x$lt_status in
10453      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10454      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10455      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10456    esac
10457  else :
10458    # compilation failed
10459    lt_cv_dlopen_self=no
10460  fi
10461fi
10462rm -fr conftest*
10463
10464
10465fi
10466{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10467$as_echo "$lt_cv_dlopen_self" >&6; }
10468
10469    if test "x$lt_cv_dlopen_self" = xyes; then
10470      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10471      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10472$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10473if test "${lt_cv_dlopen_self_static+set}" = set; then
10474  $as_echo_n "(cached) " >&6
10475else
10476  	  if test "$cross_compiling" = yes; then :
10477  lt_cv_dlopen_self_static=cross
10478else
10479  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10480  lt_status=$lt_dlunknown
10481  cat > conftest.$ac_ext <<EOF
10482#line 10482 "configure"
10483#include "confdefs.h"
10484
10485#if HAVE_DLFCN_H
10486#include <dlfcn.h>
10487#endif
10488
10489#include <stdio.h>
10490
10491#ifdef RTLD_GLOBAL
10492#  define LT_DLGLOBAL		RTLD_GLOBAL
10493#else
10494#  ifdef DL_GLOBAL
10495#    define LT_DLGLOBAL		DL_GLOBAL
10496#  else
10497#    define LT_DLGLOBAL		0
10498#  endif
10499#endif
10500
10501/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10502   find out it does not work in some platform. */
10503#ifndef LT_DLLAZY_OR_NOW
10504#  ifdef RTLD_LAZY
10505#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10506#  else
10507#    ifdef DL_LAZY
10508#      define LT_DLLAZY_OR_NOW		DL_LAZY
10509#    else
10510#      ifdef RTLD_NOW
10511#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10512#      else
10513#        ifdef DL_NOW
10514#          define LT_DLLAZY_OR_NOW	DL_NOW
10515#        else
10516#          define LT_DLLAZY_OR_NOW	0
10517#        endif
10518#      endif
10519#    endif
10520#  endif
10521#endif
10522
10523#ifdef __cplusplus
10524extern "C" void exit (int);
10525#endif
10526
10527void fnord() { int i=42;}
10528int main ()
10529{
10530  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10531  int status = $lt_dlunknown;
10532
10533  if (self)
10534    {
10535      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10536      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10537      /* dlclose (self); */
10538    }
10539  else
10540    puts (dlerror ());
10541
10542    exit (status);
10543}
10544EOF
10545  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10546  (eval $ac_link) 2>&5
10547  ac_status=$?
10548  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10550    (./conftest; exit; ) >&5 2>/dev/null
10551    lt_status=$?
10552    case x$lt_status in
10553      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10554      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10555      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10556    esac
10557  else :
10558    # compilation failed
10559    lt_cv_dlopen_self_static=no
10560  fi
10561fi
10562rm -fr conftest*
10563
10564
10565fi
10566{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10567$as_echo "$lt_cv_dlopen_self_static" >&6; }
10568    fi
10569
10570    CPPFLAGS="$save_CPPFLAGS"
10571    LDFLAGS="$save_LDFLAGS"
10572    LIBS="$save_LIBS"
10573    ;;
10574  esac
10575
10576  case $lt_cv_dlopen_self in
10577  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10578  *) enable_dlopen_self=unknown ;;
10579  esac
10580
10581  case $lt_cv_dlopen_self_static in
10582  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10583  *) enable_dlopen_self_static=unknown ;;
10584  esac
10585fi
10586
10587
10588# Report which library types will actually be built
10589{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10590$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10591{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10592$as_echo "$can_build_shared" >&6; }
10593
10594{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10595$as_echo_n "checking whether to build shared libraries... " >&6; }
10596test "$can_build_shared" = "no" && enable_shared=no
10597
10598# On AIX, shared libraries and static libraries use the same namespace, and
10599# are all built from PIC.
10600case $host_os in
10601aix3*)
10602  test "$enable_shared" = yes && enable_static=no
10603  if test -n "$RANLIB"; then
10604    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10605    postinstall_cmds='$RANLIB $lib'
10606  fi
10607  ;;
10608
10609aix[4-9]*)
10610  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10611    test "$enable_shared" = yes && enable_static=no
10612  fi
10613    ;;
10614esac
10615{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10616$as_echo "$enable_shared" >&6; }
10617
10618{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10619$as_echo_n "checking whether to build static libraries... " >&6; }
10620# Make sure either enable_shared or enable_static is yes.
10621test "$enable_shared" = yes || enable_static=yes
10622{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10623$as_echo "$enable_static" >&6; }
10624
10625# The else clause should only fire when bootstrapping the
10626# libtool distribution, otherwise you forgot to ship ltmain.sh
10627# with your package, and you will get complaints that there are
10628# no rules to generate ltmain.sh.
10629if test -f "$ltmain"; then
10630  # See if we are running on zsh, and set the options which allow our commands through
10631  # without removal of \ escapes.
10632  if test -n "${ZSH_VERSION+set}" ; then
10633    setopt NO_GLOB_SUBST
10634  fi
10635  # Now quote all the things that may contain metacharacters while being
10636  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10637  # variables and quote the copies for generation of the libtool script.
10638  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10639    SED SHELL STRIP \
10640    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10641    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10642    deplibs_check_method reload_flag reload_cmds need_locks \
10643    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10644    lt_cv_sys_global_symbol_to_c_name_address \
10645    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10646    old_postinstall_cmds old_postuninstall_cmds \
10647    compiler \
10648    CC \
10649    LD \
10650    lt_prog_compiler_wl \
10651    lt_prog_compiler_pic \
10652    lt_prog_compiler_static \
10653    lt_prog_compiler_no_builtin_flag \
10654    export_dynamic_flag_spec \
10655    thread_safe_flag_spec \
10656    whole_archive_flag_spec \
10657    enable_shared_with_static_runtimes \
10658    old_archive_cmds \
10659    old_archive_from_new_cmds \
10660    predep_objects \
10661    postdep_objects \
10662    predeps \
10663    postdeps \
10664    compiler_lib_search_path \
10665    compiler_lib_search_dirs \
10666    archive_cmds \
10667    archive_expsym_cmds \
10668    postinstall_cmds \
10669    postuninstall_cmds \
10670    old_archive_from_expsyms_cmds \
10671    allow_undefined_flag \
10672    no_undefined_flag \
10673    export_symbols_cmds \
10674    hardcode_libdir_flag_spec \
10675    hardcode_libdir_flag_spec_ld \
10676    hardcode_libdir_separator \
10677    hardcode_automatic \
10678    module_cmds \
10679    module_expsym_cmds \
10680    lt_cv_prog_compiler_c_o \
10681    fix_srcfile_path \
10682    exclude_expsyms \
10683    include_expsyms; do
10684
10685    case $var in
10686    old_archive_cmds | \
10687    old_archive_from_new_cmds | \
10688    archive_cmds | \
10689    archive_expsym_cmds | \
10690    module_cmds | \
10691    module_expsym_cmds | \
10692    old_archive_from_expsyms_cmds | \
10693    export_symbols_cmds | \
10694    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10695    postinstall_cmds | postuninstall_cmds | \
10696    old_postinstall_cmds | old_postuninstall_cmds | \
10697    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10698      # Double-quote double-evaled strings.
10699      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10700      ;;
10701    *)
10702      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10703      ;;
10704    esac
10705  done
10706
10707  case $lt_echo in
10708  *'\$0 --fallback-echo"')
10709    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10710    ;;
10711  esac
10712
10713cfgfile="${ofile}T"
10714  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10715  $rm -f "$cfgfile"
10716  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10717$as_echo "$as_me: creating $ofile" >&6;}
10718
10719  cat <<__EOF__ >> "$cfgfile"
10720#! $SHELL
10721
10722# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10723# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10724# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10725#
10726# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10727# Free Software Foundation, Inc.
10728#
10729# This file is part of GNU Libtool:
10730# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10731#
10732# This program is free software; you can redistribute it and/or modify
10733# it under the terms of the GNU General Public License as published by
10734# the Free Software Foundation; either version 2 of the License, or
10735# (at your option) any later version.
10736#
10737# This program is distributed in the hope that it will be useful, but
10738# WITHOUT ANY WARRANTY; without even the implied warranty of
10739# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10740# General Public License for more details.
10741#
10742# You should have received a copy of the GNU General Public License
10743# along with this program; if not, write to the Free Software
10744# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10745#
10746# As a special exception to the GNU General Public License, if you
10747# distribute this file as part of a program that contains a
10748# configuration script generated by Autoconf, you may include it under
10749# the same distribution terms that you use for the rest of that program.
10750
10751# A sed program that does not truncate output.
10752SED=$lt_SED
10753
10754# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10755Xsed="$SED -e 1s/^X//"
10756
10757# The HP-UX ksh and POSIX shell print the target directory to stdout
10758# if CDPATH is set.
10759(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10760
10761# The names of the tagged configurations supported by this script.
10762available_tags=
10763
10764# ### BEGIN LIBTOOL CONFIG
10765
10766# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10767
10768# Shell to use when invoking shell scripts.
10769SHELL=$lt_SHELL
10770
10771# Whether or not to build shared libraries.
10772build_libtool_libs=$enable_shared
10773
10774# Whether or not to build static libraries.
10775build_old_libs=$enable_static
10776
10777# Whether or not to add -lc for building shared libraries.
10778build_libtool_need_lc=$archive_cmds_need_lc
10779
10780# Whether or not to disallow shared libs when runtime libs are static
10781allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10782
10783# Whether or not to optimize for fast installation.
10784fast_install=$enable_fast_install
10785
10786# The host system.
10787host_alias=$host_alias
10788host=$host
10789host_os=$host_os
10790
10791# The build system.
10792build_alias=$build_alias
10793build=$build
10794build_os=$build_os
10795
10796# An echo program that does not interpret backslashes.
10797echo=$lt_echo
10798
10799# The archiver.
10800AR=$lt_AR
10801AR_FLAGS=$lt_AR_FLAGS
10802
10803# A C compiler.
10804LTCC=$lt_LTCC
10805
10806# LTCC compiler flags.
10807LTCFLAGS=$lt_LTCFLAGS
10808
10809# A language-specific compiler.
10810CC=$lt_compiler
10811
10812# Is the compiler the GNU C compiler?
10813with_gcc=$GCC
10814
10815# An ERE matcher.
10816EGREP=$lt_EGREP
10817
10818# The linker used to build libraries.
10819LD=$lt_LD
10820
10821# Whether we need hard or soft links.
10822LN_S=$lt_LN_S
10823
10824# A BSD-compatible nm program.
10825NM=$lt_NM
10826
10827# A symbol stripping program
10828STRIP=$lt_STRIP
10829
10830# Used to examine libraries when file_magic_cmd begins "file"
10831MAGIC_CMD=$MAGIC_CMD
10832
10833# Used on cygwin: DLL creation program.
10834DLLTOOL="$DLLTOOL"
10835
10836# Used on cygwin: object dumper.
10837OBJDUMP="$OBJDUMP"
10838
10839# Used on cygwin: assembler.
10840AS="$AS"
10841
10842# The name of the directory that contains temporary libtool files.
10843objdir=$objdir
10844
10845# How to create reloadable object files.
10846reload_flag=$lt_reload_flag
10847reload_cmds=$lt_reload_cmds
10848
10849# How to pass a linker flag through the compiler.
10850wl=$lt_lt_prog_compiler_wl
10851
10852# Object file suffix (normally "o").
10853objext="$ac_objext"
10854
10855# Old archive suffix (normally "a").
10856libext="$libext"
10857
10858# Shared library suffix (normally ".so").
10859shrext_cmds='$shrext_cmds'
10860
10861# Executable file suffix (normally "").
10862exeext="$exeext"
10863
10864# Additional compiler flags for building library objects.
10865pic_flag=$lt_lt_prog_compiler_pic
10866pic_mode=$pic_mode
10867
10868# What is the maximum length of a command?
10869max_cmd_len=$lt_cv_sys_max_cmd_len
10870
10871# Does compiler simultaneously support -c and -o options?
10872compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10873
10874# Must we lock files when doing compilation?
10875need_locks=$lt_need_locks
10876
10877# Do we need the lib prefix for modules?
10878need_lib_prefix=$need_lib_prefix
10879
10880# Do we need a version for libraries?
10881need_version=$need_version
10882
10883# Whether dlopen is supported.
10884dlopen_support=$enable_dlopen
10885
10886# Whether dlopen of programs is supported.
10887dlopen_self=$enable_dlopen_self
10888
10889# Whether dlopen of statically linked programs is supported.
10890dlopen_self_static=$enable_dlopen_self_static
10891
10892# Compiler flag to prevent dynamic linking.
10893link_static_flag=$lt_lt_prog_compiler_static
10894
10895# Compiler flag to turn off builtin functions.
10896no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10897
10898# Compiler flag to allow reflexive dlopens.
10899export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10900
10901# Compiler flag to generate shared objects directly from archives.
10902whole_archive_flag_spec=$lt_whole_archive_flag_spec
10903
10904# Compiler flag to generate thread-safe objects.
10905thread_safe_flag_spec=$lt_thread_safe_flag_spec
10906
10907# Library versioning type.
10908version_type=$version_type
10909
10910# Format of library name prefix.
10911libname_spec=$lt_libname_spec
10912
10913# List of archive names.  First name is the real one, the rest are links.
10914# The last name is the one that the linker finds with -lNAME.
10915library_names_spec=$lt_library_names_spec
10916
10917# The coded name of the library, if different from the real name.
10918soname_spec=$lt_soname_spec
10919
10920# Commands used to build and install an old-style archive.
10921RANLIB=$lt_RANLIB
10922old_archive_cmds=$lt_old_archive_cmds
10923old_postinstall_cmds=$lt_old_postinstall_cmds
10924old_postuninstall_cmds=$lt_old_postuninstall_cmds
10925
10926# Create an old-style archive from a shared archive.
10927old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10928
10929# Create a temporary old-style archive to link instead of a shared archive.
10930old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10931
10932# Commands used to build and install a shared archive.
10933archive_cmds=$lt_archive_cmds
10934archive_expsym_cmds=$lt_archive_expsym_cmds
10935postinstall_cmds=$lt_postinstall_cmds
10936postuninstall_cmds=$lt_postuninstall_cmds
10937
10938# Commands used to build a loadable module (assumed same as above if empty)
10939module_cmds=$lt_module_cmds
10940module_expsym_cmds=$lt_module_expsym_cmds
10941
10942# Commands to strip libraries.
10943old_striplib=$lt_old_striplib
10944striplib=$lt_striplib
10945
10946# Dependencies to place before the objects being linked to create a
10947# shared library.
10948predep_objects=$lt_predep_objects
10949
10950# Dependencies to place after the objects being linked to create a
10951# shared library.
10952postdep_objects=$lt_postdep_objects
10953
10954# Dependencies to place before the objects being linked to create a
10955# shared library.
10956predeps=$lt_predeps
10957
10958# Dependencies to place after the objects being linked to create a
10959# shared library.
10960postdeps=$lt_postdeps
10961
10962# The directories searched by this compiler when creating a shared
10963# library
10964compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10965
10966# The library search path used internally by the compiler when linking
10967# a shared library.
10968compiler_lib_search_path=$lt_compiler_lib_search_path
10969
10970# Method to check whether dependent libraries are shared objects.
10971deplibs_check_method=$lt_deplibs_check_method
10972
10973# Command to use when deplibs_check_method == file_magic.
10974file_magic_cmd=$lt_file_magic_cmd
10975
10976# Flag that allows shared libraries with undefined symbols to be built.
10977allow_undefined_flag=$lt_allow_undefined_flag
10978
10979# Flag that forces no undefined symbols.
10980no_undefined_flag=$lt_no_undefined_flag
10981
10982# Commands used to finish a libtool library installation in a directory.
10983finish_cmds=$lt_finish_cmds
10984
10985# Same as above, but a single script fragment to be evaled but not shown.
10986finish_eval=$lt_finish_eval
10987
10988# Take the output of nm and produce a listing of raw symbols and C names.
10989global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10990
10991# Transform the output of nm in a proper C declaration
10992global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10993
10994# Transform the output of nm in a C name address pair
10995global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10996
10997# This is the shared library runtime path variable.
10998runpath_var=$runpath_var
10999
11000# This is the shared library path variable.
11001shlibpath_var=$shlibpath_var
11002
11003# Is shlibpath searched before the hard-coded library search path?
11004shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11005
11006# How to hardcode a shared library path into an executable.
11007hardcode_action=$hardcode_action
11008
11009# Whether we should hardcode library paths into libraries.
11010hardcode_into_libs=$hardcode_into_libs
11011
11012# Flag to hardcode \$libdir into a binary during linking.
11013# This must work even if \$libdir does not exist.
11014hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11015
11016# If ld is used when linking, flag to hardcode \$libdir into
11017# a binary during linking. This must work even if \$libdir does
11018# not exist.
11019hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11020
11021# Whether we need a single -rpath flag with a separated argument.
11022hardcode_libdir_separator=$lt_hardcode_libdir_separator
11023
11024# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11025# resulting binary.
11026hardcode_direct=$hardcode_direct
11027
11028# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11029# resulting binary.
11030hardcode_minus_L=$hardcode_minus_L
11031
11032# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11033# the resulting binary.
11034hardcode_shlibpath_var=$hardcode_shlibpath_var
11035
11036# Set to yes if building a shared library automatically hardcodes DIR into the library
11037# and all subsequent libraries and executables linked against it.
11038hardcode_automatic=$hardcode_automatic
11039
11040# Variables whose values should be saved in libtool wrapper scripts and
11041# restored at relink time.
11042variables_saved_for_relink="$variables_saved_for_relink"
11043
11044# Whether libtool must link a program against all its dependency libraries.
11045link_all_deplibs=$link_all_deplibs
11046
11047# Compile-time system search path for libraries
11048sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11049
11050# Run-time system search path for libraries
11051sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11052
11053# Fix the shell variable \$srcfile for the compiler.
11054fix_srcfile_path=$lt_fix_srcfile_path
11055
11056# Set to yes if exported symbols are required.
11057always_export_symbols=$always_export_symbols
11058
11059# The commands to list exported symbols.
11060export_symbols_cmds=$lt_export_symbols_cmds
11061
11062# The commands to extract the exported symbol list from a shared archive.
11063extract_expsyms_cmds=$lt_extract_expsyms_cmds
11064
11065# Symbols that should not be listed in the preloaded symbols.
11066exclude_expsyms=$lt_exclude_expsyms
11067
11068# Symbols that must always be exported.
11069include_expsyms=$lt_include_expsyms
11070
11071# ### END LIBTOOL CONFIG
11072
11073__EOF__
11074
11075
11076  case $host_os in
11077  aix3*)
11078    cat <<\EOF >> "$cfgfile"
11079
11080# AIX sometimes has problems with the GCC collect2 program.  For some
11081# reason, if we set the COLLECT_NAMES environment variable, the problems
11082# vanish in a puff of smoke.
11083if test "X${COLLECT_NAMES+set}" != Xset; then
11084  COLLECT_NAMES=
11085  export COLLECT_NAMES
11086fi
11087EOF
11088    ;;
11089  esac
11090
11091  # We use sed instead of cat because bash on DJGPP gets confused if
11092  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11093  # text mode, it properly converts lines to CR/LF.  This bash problem
11094  # is reportedly fixed, but why not run on old versions too?
11095  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11096
11097  mv -f "$cfgfile" "$ofile" || \
11098    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11099  chmod +x "$ofile"
11100
11101else
11102  # If there is no Makefile yet, we rely on a make rule to execute
11103  # `config.status --recheck' to rerun these tests and create the
11104  # libtool script then.
11105  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11106  if test -f "$ltmain_in"; then
11107    test -f Makefile && make "$ltmain"
11108  fi
11109fi
11110
11111
11112ac_ext=c
11113ac_cpp='$CPP $CPPFLAGS'
11114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11116ac_compiler_gnu=$ac_cv_c_compiler_gnu
11117
11118CC="$lt_save_CC"
11119
11120
11121# Check whether --with-tags was given.
11122if test "${with_tags+set}" = set; then
11123  withval=$with_tags; tagnames="$withval"
11124fi
11125
11126
11127if test -f "$ltmain" && test -n "$tagnames"; then
11128  if test ! -f "${ofile}"; then
11129    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11130$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11131  fi
11132
11133  if test -z "$LTCC"; then
11134    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11135    if test -z "$LTCC"; then
11136      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11137$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11138    else
11139      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11140$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11141    fi
11142  fi
11143  if test -z "$LTCFLAGS"; then
11144    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11145  fi
11146
11147  # Extract list of available tagged configurations in $ofile.
11148  # Note that this assumes the entire list is on one line.
11149  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11150
11151  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11152  for tagname in $tagnames; do
11153    IFS="$lt_save_ifs"
11154    # Check whether tagname contains only valid characters
11155    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11156    "") ;;
11157    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11158$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11159   { (exit 1); exit 1; }; }
11160	;;
11161    esac
11162
11163    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11164    then
11165      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11166$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11167   { (exit 1); exit 1; }; }
11168    fi
11169
11170    # Update the list of available tags.
11171    if test -n "$tagname"; then
11172      echo appending configuration tag \"$tagname\" to $ofile
11173
11174      case $tagname in
11175      CXX)
11176	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11177	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11178	    (test "X$CXX" != "Xg++"))) ; then
11179	  ac_ext=cpp
11180ac_cpp='$CXXCPP $CPPFLAGS'
11181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11184
11185
11186
11187
11188archive_cmds_need_lc_CXX=no
11189allow_undefined_flag_CXX=
11190always_export_symbols_CXX=no
11191archive_expsym_cmds_CXX=
11192export_dynamic_flag_spec_CXX=
11193hardcode_direct_CXX=no
11194hardcode_libdir_flag_spec_CXX=
11195hardcode_libdir_flag_spec_ld_CXX=
11196hardcode_libdir_separator_CXX=
11197hardcode_minus_L_CXX=no
11198hardcode_shlibpath_var_CXX=unsupported
11199hardcode_automatic_CXX=no
11200module_cmds_CXX=
11201module_expsym_cmds_CXX=
11202link_all_deplibs_CXX=unknown
11203old_archive_cmds_CXX=$old_archive_cmds
11204no_undefined_flag_CXX=
11205whole_archive_flag_spec_CXX=
11206enable_shared_with_static_runtimes_CXX=no
11207
11208# Dependencies to place before and after the object being linked:
11209predep_objects_CXX=
11210postdep_objects_CXX=
11211predeps_CXX=
11212postdeps_CXX=
11213compiler_lib_search_path_CXX=
11214compiler_lib_search_dirs_CXX=
11215
11216# Source file extension for C++ test sources.
11217ac_ext=cpp
11218
11219# Object file extension for compiled C++ test sources.
11220objext=o
11221objext_CXX=$objext
11222
11223# Code to be used in simple compile tests
11224lt_simple_compile_test_code="int some_variable = 0;"
11225
11226# Code to be used in simple link tests
11227lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11228
11229# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11230
11231# If no C compiler was specified, use CC.
11232LTCC=${LTCC-"$CC"}
11233
11234# If no C compiler flags were specified, use CFLAGS.
11235LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11236
11237# Allow CC to be a program name with arguments.
11238compiler=$CC
11239
11240
11241# save warnings/boilerplate of simple test code
11242ac_outfile=conftest.$ac_objext
11243echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11244eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11245_lt_compiler_boilerplate=`cat conftest.err`
11246$rm conftest*
11247
11248ac_outfile=conftest.$ac_objext
11249echo "$lt_simple_link_test_code" >conftest.$ac_ext
11250eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11251_lt_linker_boilerplate=`cat conftest.err`
11252$rm -r conftest*
11253
11254
11255# Allow CC to be a program name with arguments.
11256lt_save_CC=$CC
11257lt_save_LD=$LD
11258lt_save_GCC=$GCC
11259GCC=$GXX
11260lt_save_with_gnu_ld=$with_gnu_ld
11261lt_save_path_LD=$lt_cv_path_LD
11262if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11263  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11264else
11265  $as_unset lt_cv_prog_gnu_ld
11266fi
11267if test -n "${lt_cv_path_LDCXX+set}"; then
11268  lt_cv_path_LD=$lt_cv_path_LDCXX
11269else
11270  $as_unset lt_cv_path_LD
11271fi
11272test -z "${LDCXX+set}" || LD=$LDCXX
11273CC=${CXX-"c++"}
11274compiler=$CC
11275compiler_CXX=$CC
11276for cc_temp in $compiler""; do
11277  case $cc_temp in
11278    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11279    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11280    \-*) ;;
11281    *) break;;
11282  esac
11283done
11284cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11285
11286
11287# We don't want -fno-exception wen compiling C++ code, so set the
11288# no_builtin_flag separately
11289if test "$GXX" = yes; then
11290  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11291else
11292  lt_prog_compiler_no_builtin_flag_CXX=
11293fi
11294
11295if test "$GXX" = yes; then
11296  # Set up default GNU C++ configuration
11297
11298
11299# Check whether --with-gnu-ld was given.
11300if test "${with_gnu_ld+set}" = set; then
11301  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11302else
11303  with_gnu_ld=no
11304fi
11305
11306ac_prog=ld
11307if test "$GCC" = yes; then
11308  # Check if gcc -print-prog-name=ld gives a path.
11309  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11310$as_echo_n "checking for ld used by $CC... " >&6; }
11311  case $host in
11312  *-*-mingw*)
11313    # gcc leaves a trailing carriage return which upsets mingw
11314    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11315  *)
11316    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11317  esac
11318  case $ac_prog in
11319    # Accept absolute paths.
11320    [\\/]* | ?:[\\/]*)
11321      re_direlt='/[^/][^/]*/\.\./'
11322      # Canonicalize the pathname of ld
11323      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11324      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11325	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11326      done
11327      test -z "$LD" && LD="$ac_prog"
11328      ;;
11329  "")
11330    # If it fails, then pretend we aren't using GCC.
11331    ac_prog=ld
11332    ;;
11333  *)
11334    # If it is relative, then search for the first ld in PATH.
11335    with_gnu_ld=unknown
11336    ;;
11337  esac
11338elif test "$with_gnu_ld" = yes; then
11339  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11340$as_echo_n "checking for GNU ld... " >&6; }
11341else
11342  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11343$as_echo_n "checking for non-GNU ld... " >&6; }
11344fi
11345if test "${lt_cv_path_LD+set}" = set; then
11346  $as_echo_n "(cached) " >&6
11347else
11348  if test -z "$LD"; then
11349  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11350  for ac_dir in $PATH; do
11351    IFS="$lt_save_ifs"
11352    test -z "$ac_dir" && ac_dir=.
11353    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11354      lt_cv_path_LD="$ac_dir/$ac_prog"
11355      # Check to see if the program is GNU ld.  I'd rather use --version,
11356      # but apparently some variants of GNU ld only accept -v.
11357      # Break only if it was the GNU/non-GNU ld that we prefer.
11358      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11359      *GNU* | *'with BFD'*)
11360	test "$with_gnu_ld" != no && break
11361	;;
11362      *)
11363	test "$with_gnu_ld" != yes && break
11364	;;
11365      esac
11366    fi
11367  done
11368  IFS="$lt_save_ifs"
11369else
11370  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11371fi
11372fi
11373
11374LD="$lt_cv_path_LD"
11375if test -n "$LD"; then
11376  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11377$as_echo "$LD" >&6; }
11378else
11379  { $as_echo "$as_me:$LINENO: result: no" >&5
11380$as_echo "no" >&6; }
11381fi
11382test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11383$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11384   { (exit 1); exit 1; }; }
11385{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11386$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11387if test "${lt_cv_prog_gnu_ld+set}" = set; then
11388  $as_echo_n "(cached) " >&6
11389else
11390  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11391case `$LD -v 2>&1 </dev/null` in
11392*GNU* | *'with BFD'*)
11393  lt_cv_prog_gnu_ld=yes
11394  ;;
11395*)
11396  lt_cv_prog_gnu_ld=no
11397  ;;
11398esac
11399fi
11400{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11401$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11402with_gnu_ld=$lt_cv_prog_gnu_ld
11403
11404
11405
11406  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11407  # archiving commands below assume that GNU ld is being used.
11408  if test "$with_gnu_ld" = yes; then
11409    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11410    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'
11411
11412    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11413    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11414
11415    # If archive_cmds runs LD, not CC, wlarc should be empty
11416    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11417    #     investigate it a little bit more. (MM)
11418    wlarc='${wl}'
11419
11420    # ancient GNU ld didn't support --whole-archive et. al.
11421    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11422	grep 'no-whole-archive' > /dev/null; then
11423      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11424    else
11425      whole_archive_flag_spec_CXX=
11426    fi
11427  else
11428    with_gnu_ld=no
11429    wlarc=
11430
11431    # A generic and very simple default shared library creation
11432    # command for GNU C++ for the case where it uses the native
11433    # linker, instead of GNU ld.  If possible, this setting should
11434    # overridden to take advantage of the native linker features on
11435    # the platform it is being used on.
11436    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11437  fi
11438
11439  # Commands to make compiler produce verbose output that lists
11440  # what "hidden" libraries, object files and flags are used when
11441  # linking a shared library.
11442  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11443
11444else
11445  GXX=no
11446  with_gnu_ld=no
11447  wlarc=
11448fi
11449
11450# PORTME: fill in a description of your system's C++ link characteristics
11451{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11452$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11453ld_shlibs_CXX=yes
11454case $host_os in
11455  aix3*)
11456    # FIXME: insert proper C++ library support
11457    ld_shlibs_CXX=no
11458    ;;
11459  aix[4-9]*)
11460    if test "$host_cpu" = ia64; then
11461      # On IA64, the linker does run time linking by default, so we don't
11462      # have to do anything special.
11463      aix_use_runtimelinking=no
11464      exp_sym_flag='-Bexport'
11465      no_entry_flag=""
11466    else
11467      aix_use_runtimelinking=no
11468
11469      # Test if we are trying to use run time linking or normal
11470      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11471      # need to do runtime linking.
11472      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11473	for ld_flag in $LDFLAGS; do
11474	  case $ld_flag in
11475	  *-brtl*)
11476	    aix_use_runtimelinking=yes
11477	    break
11478	    ;;
11479	  esac
11480	done
11481	;;
11482      esac
11483
11484      exp_sym_flag='-bexport'
11485      no_entry_flag='-bnoentry'
11486    fi
11487
11488    # When large executables or shared objects are built, AIX ld can
11489    # have problems creating the table of contents.  If linking a library
11490    # or program results in "error TOC overflow" add -mminimal-toc to
11491    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11492    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11493
11494    archive_cmds_CXX=''
11495    hardcode_direct_CXX=yes
11496    hardcode_libdir_separator_CXX=':'
11497    link_all_deplibs_CXX=yes
11498
11499    if test "$GXX" = yes; then
11500      case $host_os in aix4.[012]|aix4.[012].*)
11501      # We only want to do this on AIX 4.2 and lower, the check
11502      # below for broken collect2 doesn't work under 4.3+
11503	collect2name=`${CC} -print-prog-name=collect2`
11504	if test -f "$collect2name" && \
11505	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11506	then
11507	  # We have reworked collect2
11508	  :
11509	else
11510	  # We have old collect2
11511	  hardcode_direct_CXX=unsupported
11512	  # It fails to find uninstalled libraries when the uninstalled
11513	  # path is not listed in the libpath.  Setting hardcode_minus_L
11514	  # to unsupported forces relinking
11515	  hardcode_minus_L_CXX=yes
11516	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11517	  hardcode_libdir_separator_CXX=
11518	fi
11519	;;
11520      esac
11521      shared_flag='-shared'
11522      if test "$aix_use_runtimelinking" = yes; then
11523	shared_flag="$shared_flag "'${wl}-G'
11524      fi
11525    else
11526      # not using gcc
11527      if test "$host_cpu" = ia64; then
11528	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11529	# chokes on -Wl,-G. The following line is correct:
11530	shared_flag='-G'
11531      else
11532	if test "$aix_use_runtimelinking" = yes; then
11533	  shared_flag='${wl}-G'
11534	else
11535	  shared_flag='${wl}-bM:SRE'
11536	fi
11537      fi
11538    fi
11539
11540    # It seems that -bexpall does not export symbols beginning with
11541    # underscore (_), so it is better to generate a list of symbols to export.
11542    always_export_symbols_CXX=yes
11543    if test "$aix_use_runtimelinking" = yes; then
11544      # Warning - without using the other runtime loading flags (-brtl),
11545      # -berok will link without error, but may produce a broken library.
11546      allow_undefined_flag_CXX='-berok'
11547      # Determine the default libpath from the value encoded in an empty executable.
11548      cat >conftest.$ac_ext <<_ACEOF
11549/* confdefs.h.  */
11550_ACEOF
11551cat confdefs.h >>conftest.$ac_ext
11552cat >>conftest.$ac_ext <<_ACEOF
11553/* end confdefs.h.  */
11554
11555int
11556main ()
11557{
11558
11559  ;
11560  return 0;
11561}
11562_ACEOF
11563rm -f conftest.$ac_objext conftest$ac_exeext
11564if { (ac_try="$ac_link"
11565case "(($ac_try" in
11566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567  *) ac_try_echo=$ac_try;;
11568esac
11569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11570$as_echo "$ac_try_echo") >&5
11571  (eval "$ac_link") 2>conftest.er1
11572  ac_status=$?
11573  grep -v '^ *+' conftest.er1 >conftest.err
11574  rm -f conftest.er1
11575  cat conftest.err >&5
11576  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577  (exit $ac_status); } && {
11578	 test -z "$ac_cxx_werror_flag" ||
11579	 test ! -s conftest.err
11580       } && test -s conftest$ac_exeext && {
11581	 test "$cross_compiling" = yes ||
11582	 $as_test_x conftest$ac_exeext
11583       }; then
11584
11585lt_aix_libpath_sed='
11586    /Import File Strings/,/^$/ {
11587	/^0/ {
11588	    s/^0  *\(.*\)$/\1/
11589	    p
11590	}
11591    }'
11592aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11593# Check for a 64-bit object if we didn't find anything.
11594if test -z "$aix_libpath"; then
11595  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11596fi
11597else
11598  $as_echo "$as_me: failed program was:" >&5
11599sed 's/^/| /' conftest.$ac_ext >&5
11600
11601
11602fi
11603
11604rm -rf conftest.dSYM
11605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11606      conftest$ac_exeext conftest.$ac_ext
11607if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11608
11609      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11610
11611      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"
11612     else
11613      if test "$host_cpu" = ia64; then
11614	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11615	allow_undefined_flag_CXX="-z nodefs"
11616	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"
11617      else
11618	# Determine the default libpath from the value encoded in an empty executable.
11619	cat >conftest.$ac_ext <<_ACEOF
11620/* confdefs.h.  */
11621_ACEOF
11622cat confdefs.h >>conftest.$ac_ext
11623cat >>conftest.$ac_ext <<_ACEOF
11624/* end confdefs.h.  */
11625
11626int
11627main ()
11628{
11629
11630  ;
11631  return 0;
11632}
11633_ACEOF
11634rm -f conftest.$ac_objext conftest$ac_exeext
11635if { (ac_try="$ac_link"
11636case "(($ac_try" in
11637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638  *) ac_try_echo=$ac_try;;
11639esac
11640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11641$as_echo "$ac_try_echo") >&5
11642  (eval "$ac_link") 2>conftest.er1
11643  ac_status=$?
11644  grep -v '^ *+' conftest.er1 >conftest.err
11645  rm -f conftest.er1
11646  cat conftest.err >&5
11647  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648  (exit $ac_status); } && {
11649	 test -z "$ac_cxx_werror_flag" ||
11650	 test ! -s conftest.err
11651       } && test -s conftest$ac_exeext && {
11652	 test "$cross_compiling" = yes ||
11653	 $as_test_x conftest$ac_exeext
11654       }; then
11655
11656lt_aix_libpath_sed='
11657    /Import File Strings/,/^$/ {
11658	/^0/ {
11659	    s/^0  *\(.*\)$/\1/
11660	    p
11661	}
11662    }'
11663aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11664# Check for a 64-bit object if we didn't find anything.
11665if test -z "$aix_libpath"; then
11666  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11667fi
11668else
11669  $as_echo "$as_me: failed program was:" >&5
11670sed 's/^/| /' conftest.$ac_ext >&5
11671
11672
11673fi
11674
11675rm -rf conftest.dSYM
11676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11677      conftest$ac_exeext conftest.$ac_ext
11678if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11679
11680	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11681	# Warning - without using the other run time loading flags,
11682	# -berok will link without error, but may produce a broken library.
11683	no_undefined_flag_CXX=' ${wl}-bernotok'
11684	allow_undefined_flag_CXX=' ${wl}-berok'
11685	# Exported symbols can be pulled into shared objects from archives
11686	whole_archive_flag_spec_CXX='$convenience'
11687	archive_cmds_need_lc_CXX=yes
11688	# This is similar to how AIX traditionally builds its shared libraries.
11689	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'
11690      fi
11691    fi
11692    ;;
11693
11694  beos*)
11695    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11696      allow_undefined_flag_CXX=unsupported
11697      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11698      # support --undefined.  This deserves some investigation.  FIXME
11699      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11700    else
11701      ld_shlibs_CXX=no
11702    fi
11703    ;;
11704
11705  chorus*)
11706    case $cc_basename in
11707      *)
11708	# FIXME: insert proper C++ library support
11709	ld_shlibs_CXX=no
11710	;;
11711    esac
11712    ;;
11713
11714  cygwin* | mingw* | pw32*)
11715    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11716    # as there is no search path for DLLs.
11717    hardcode_libdir_flag_spec_CXX='-L$libdir'
11718    allow_undefined_flag_CXX=unsupported
11719    always_export_symbols_CXX=no
11720    enable_shared_with_static_runtimes_CXX=yes
11721
11722    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11723      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'
11724      # If the export-symbols file already is a .def file (1st line
11725      # is EXPORTS), use it as is; otherwise, prepend...
11726      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11727	cp $export_symbols $output_objdir/$soname.def;
11728      else
11729	echo EXPORTS > $output_objdir/$soname.def;
11730	cat $export_symbols >> $output_objdir/$soname.def;
11731      fi~
11732      $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'
11733    else
11734      ld_shlibs_CXX=no
11735    fi
11736  ;;
11737      darwin* | rhapsody*)
11738      archive_cmds_need_lc_CXX=no
11739      hardcode_direct_CXX=no
11740      hardcode_automatic_CXX=yes
11741      hardcode_shlibpath_var_CXX=unsupported
11742      whole_archive_flag_spec_CXX=''
11743      link_all_deplibs_CXX=yes
11744      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11745      if test "$GXX" = yes ; then
11746      output_verbose_link_cmd='echo'
11747      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}"
11748      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11749      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}"
11750      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}"
11751      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11752        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}"
11753        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}"
11754      fi
11755      else
11756      case $cc_basename in
11757        xlc*)
11758         output_verbose_link_cmd='echo'
11759          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'
11760          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11761          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11762          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}'
11763          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}'
11764          ;;
11765       *)
11766         ld_shlibs_CXX=no
11767          ;;
11768      esac
11769      fi
11770        ;;
11771
11772  dgux*)
11773    case $cc_basename in
11774      ec++*)
11775	# FIXME: insert proper C++ library support
11776	ld_shlibs_CXX=no
11777	;;
11778      ghcx*)
11779	# Green Hills C++ Compiler
11780	# FIXME: insert proper C++ library support
11781	ld_shlibs_CXX=no
11782	;;
11783      *)
11784	# FIXME: insert proper C++ library support
11785	ld_shlibs_CXX=no
11786	;;
11787    esac
11788    ;;
11789  freebsd[12]*)
11790    # C++ shared libraries reported to be fairly broken before switch to ELF
11791    ld_shlibs_CXX=no
11792    ;;
11793  freebsd-elf*)
11794    archive_cmds_need_lc_CXX=no
11795    ;;
11796  freebsd* | dragonfly*)
11797    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11798    # conventions
11799    ld_shlibs_CXX=yes
11800    ;;
11801  gnu*)
11802    ;;
11803  hpux9*)
11804    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11805    hardcode_libdir_separator_CXX=:
11806    export_dynamic_flag_spec_CXX='${wl}-E'
11807    hardcode_direct_CXX=yes
11808    hardcode_minus_L_CXX=yes # Not in the search PATH,
11809				# but as the default
11810				# location of the library.
11811
11812    case $cc_basename in
11813    CC*)
11814      # FIXME: insert proper C++ library support
11815      ld_shlibs_CXX=no
11816      ;;
11817    aCC*)
11818      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'
11819      # Commands to make compiler produce verbose output that lists
11820      # what "hidden" libraries, object files and flags are used when
11821      # linking a shared library.
11822      #
11823      # There doesn't appear to be a way to prevent this compiler from
11824      # explicitly linking system object files so we need to strip them
11825      # from the output so that they don't get included in the library
11826      # dependencies.
11827      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'
11828      ;;
11829    *)
11830      if test "$GXX" = yes; then
11831        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'
11832      else
11833        # FIXME: insert proper C++ library support
11834        ld_shlibs_CXX=no
11835      fi
11836      ;;
11837    esac
11838    ;;
11839  hpux10*|hpux11*)
11840    if test $with_gnu_ld = no; then
11841      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11842      hardcode_libdir_separator_CXX=:
11843
11844      case $host_cpu in
11845      hppa*64*|ia64*) ;;
11846      *)
11847	export_dynamic_flag_spec_CXX='${wl}-E'
11848        ;;
11849      esac
11850    fi
11851    case $host_cpu in
11852    hppa*64*|ia64*)
11853      hardcode_direct_CXX=no
11854      hardcode_shlibpath_var_CXX=no
11855      ;;
11856    *)
11857      hardcode_direct_CXX=yes
11858      hardcode_minus_L_CXX=yes # Not in the search PATH,
11859					      # but as the default
11860					      # location of the library.
11861      ;;
11862    esac
11863
11864    case $cc_basename in
11865      CC*)
11866	# FIXME: insert proper C++ library support
11867	ld_shlibs_CXX=no
11868	;;
11869      aCC*)
11870	case $host_cpu in
11871	hppa*64*)
11872	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11873	  ;;
11874	ia64*)
11875	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11876	  ;;
11877	*)
11878	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11879	  ;;
11880	esac
11881	# Commands to make compiler produce verbose output that lists
11882	# what "hidden" libraries, object files and flags are used when
11883	# linking a shared library.
11884	#
11885	# There doesn't appear to be a way to prevent this compiler from
11886	# explicitly linking system object files so we need to strip them
11887	# from the output so that they don't get included in the library
11888	# dependencies.
11889	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'
11890	;;
11891      *)
11892	if test "$GXX" = yes; then
11893	  if test $with_gnu_ld = no; then
11894	    case $host_cpu in
11895	    hppa*64*)
11896	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11897	      ;;
11898	    ia64*)
11899	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11900	      ;;
11901	    *)
11902	      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'
11903	      ;;
11904	    esac
11905	  fi
11906	else
11907	  # FIXME: insert proper C++ library support
11908	  ld_shlibs_CXX=no
11909	fi
11910	;;
11911    esac
11912    ;;
11913  interix[3-9]*)
11914    hardcode_direct_CXX=no
11915    hardcode_shlibpath_var_CXX=no
11916    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11917    export_dynamic_flag_spec_CXX='${wl}-E'
11918    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11919    # Instead, shared libraries are loaded at an image base (0x10000000 by
11920    # default) and relocated if they conflict, which is a slow very memory
11921    # consuming and fragmenting process.  To avoid this, we pick a random,
11922    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11923    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11924    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'
11925    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'
11926    ;;
11927  irix5* | irix6*)
11928    case $cc_basename in
11929      CC*)
11930	# SGI C++
11931	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'
11932
11933	# Archives containing C++ object files must be created using
11934	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11935	# necessary to make sure instantiated templates are included
11936	# in the archive.
11937	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11938	;;
11939      *)
11940	if test "$GXX" = yes; then
11941	  if test "$with_gnu_ld" = no; then
11942	    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'
11943	  else
11944	    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'
11945	  fi
11946	fi
11947	link_all_deplibs_CXX=yes
11948	;;
11949    esac
11950    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11951    hardcode_libdir_separator_CXX=:
11952    ;;
11953  linux* | k*bsd*-gnu)
11954    case $cc_basename in
11955      KCC*)
11956	# Kuck and Associates, Inc. (KAI) C++ Compiler
11957
11958	# KCC will only create a shared library if the output file
11959	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11960	# to its proper name (with version) after linking.
11961	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'
11962	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'
11963	# Commands to make compiler produce verbose output that lists
11964	# what "hidden" libraries, object files and flags are used when
11965	# linking a shared library.
11966	#
11967	# There doesn't appear to be a way to prevent this compiler from
11968	# explicitly linking system object files so we need to strip them
11969	# from the output so that they don't get included in the library
11970	# dependencies.
11971	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'
11972
11973	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11974	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11975
11976	# Archives containing C++ object files must be created using
11977	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11978	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11979	;;
11980      icpc*)
11981	# Intel C++
11982	with_gnu_ld=yes
11983	# version 8.0 and above of icpc choke on multiply defined symbols
11984	# if we add $predep_objects and $postdep_objects, however 7.1 and
11985	# earlier do not add the objects themselves.
11986	case `$CC -V 2>&1` in
11987	*"Version 7."*)
11988  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11989  	  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'
11990	  ;;
11991	*)  # Version 8.0 or newer
11992	  tmp_idyn=
11993	  case $host_cpu in
11994	    ia64*) tmp_idyn=' -i_dynamic';;
11995	  esac
11996  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11997	  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'
11998	  ;;
11999	esac
12000	archive_cmds_need_lc_CXX=no
12001	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12002	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12003	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12004	;;
12005      pgCC* | pgcpp*)
12006        # Portland Group C++ compiler
12007	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12008  	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'
12009
12010	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12011	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12012	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'
12013        ;;
12014      cxx*)
12015	# Compaq C++
12016	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12017	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'
12018
12019	runpath_var=LD_RUN_PATH
12020	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12021	hardcode_libdir_separator_CXX=:
12022
12023	# Commands to make compiler produce verbose output that lists
12024	# what "hidden" libraries, object files and flags are used when
12025	# linking a shared library.
12026	#
12027	# There doesn't appear to be a way to prevent this compiler from
12028	# explicitly linking system object files so we need to strip them
12029	# from the output so that they don't get included in the library
12030	# dependencies.
12031	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'
12032	;;
12033      *)
12034	case `$CC -V 2>&1 | sed 5q` in
12035	*Sun\ C*)
12036	  # Sun C++ 5.9
12037	  no_undefined_flag_CXX=' -zdefs'
12038	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12039	  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'
12040	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12041	  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'
12042
12043	  # Not sure whether something based on
12044	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12045	  # would be better.
12046	  output_verbose_link_cmd='echo'
12047
12048	  # Archives containing C++ object files must be created using
12049	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12050	  # necessary to make sure instantiated templates are included
12051	  # in the archive.
12052	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12053	  ;;
12054	esac
12055	;;
12056    esac
12057    ;;
12058  lynxos*)
12059    # FIXME: insert proper C++ library support
12060    ld_shlibs_CXX=no
12061    ;;
12062  m88k*)
12063    # FIXME: insert proper C++ library support
12064    ld_shlibs_CXX=no
12065    ;;
12066  mvs*)
12067    case $cc_basename in
12068      cxx*)
12069	# FIXME: insert proper C++ library support
12070	ld_shlibs_CXX=no
12071	;;
12072      *)
12073	# FIXME: insert proper C++ library support
12074	ld_shlibs_CXX=no
12075	;;
12076    esac
12077    ;;
12078  netbsd*)
12079    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12080      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12081      wlarc=
12082      hardcode_libdir_flag_spec_CXX='-R$libdir'
12083      hardcode_direct_CXX=yes
12084      hardcode_shlibpath_var_CXX=no
12085    fi
12086    # Workaround some broken pre-1.5 toolchains
12087    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12088    ;;
12089  openbsd2*)
12090    # C++ shared libraries are fairly broken
12091    ld_shlibs_CXX=no
12092    ;;
12093  openbsd*)
12094    if test -f /usr/libexec/ld.so; then
12095      hardcode_direct_CXX=yes
12096      hardcode_shlibpath_var_CXX=no
12097      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12098      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12099      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12100	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12101	export_dynamic_flag_spec_CXX='${wl}-E'
12102	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12103      fi
12104      output_verbose_link_cmd='echo'
12105    else
12106      ld_shlibs_CXX=no
12107    fi
12108    ;;
12109  osf3*)
12110    case $cc_basename in
12111      KCC*)
12112	# Kuck and Associates, Inc. (KAI) C++ Compiler
12113
12114	# KCC will only create a shared library if the output file
12115	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12116	# to its proper name (with version) after linking.
12117	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'
12118
12119	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12120	hardcode_libdir_separator_CXX=:
12121
12122	# Archives containing C++ object files must be created using
12123	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12124	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12125
12126	;;
12127      RCC*)
12128	# Rational C++ 2.4.1
12129	# FIXME: insert proper C++ library support
12130	ld_shlibs_CXX=no
12131	;;
12132      cxx*)
12133	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12134	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'
12135
12136	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12137	hardcode_libdir_separator_CXX=:
12138
12139	# Commands to make compiler produce verbose output that lists
12140	# what "hidden" libraries, object files and flags are used when
12141	# linking a shared library.
12142	#
12143	# There doesn't appear to be a way to prevent this compiler from
12144	# explicitly linking system object files so we need to strip them
12145	# from the output so that they don't get included in the library
12146	# dependencies.
12147	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'
12148	;;
12149      *)
12150	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12151	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12152	  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'
12153
12154	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12155	  hardcode_libdir_separator_CXX=:
12156
12157	  # Commands to make compiler produce verbose output that lists
12158	  # what "hidden" libraries, object files and flags are used when
12159	  # linking a shared library.
12160	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12161
12162	else
12163	  # FIXME: insert proper C++ library support
12164	  ld_shlibs_CXX=no
12165	fi
12166	;;
12167    esac
12168    ;;
12169  osf4* | osf5*)
12170    case $cc_basename in
12171      KCC*)
12172	# Kuck and Associates, Inc. (KAI) C++ Compiler
12173
12174	# KCC will only create a shared library if the output file
12175	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12176	# to its proper name (with version) after linking.
12177	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'
12178
12179	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12180	hardcode_libdir_separator_CXX=:
12181
12182	# Archives containing C++ object files must be created using
12183	# the KAI C++ compiler.
12184	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12185	;;
12186      RCC*)
12187	# Rational C++ 2.4.1
12188	# FIXME: insert proper C++ library support
12189	ld_shlibs_CXX=no
12190	;;
12191      cxx*)
12192	allow_undefined_flag_CXX=' -expect_unresolved \*'
12193	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'
12194	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12195	  echo "-hidden">> $lib.exp~
12196	  $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~
12197	  $rm $lib.exp'
12198
12199	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12200	hardcode_libdir_separator_CXX=:
12201
12202	# Commands to make compiler produce verbose output that lists
12203	# what "hidden" libraries, object files and flags are used when
12204	# linking a shared library.
12205	#
12206	# There doesn't appear to be a way to prevent this compiler from
12207	# explicitly linking system object files so we need to strip them
12208	# from the output so that they don't get included in the library
12209	# dependencies.
12210	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'
12211	;;
12212      *)
12213	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12214	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12215	 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'
12216
12217	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12218	  hardcode_libdir_separator_CXX=:
12219
12220	  # Commands to make compiler produce verbose output that lists
12221	  # what "hidden" libraries, object files and flags are used when
12222	  # linking a shared library.
12223	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12224
12225	else
12226	  # FIXME: insert proper C++ library support
12227	  ld_shlibs_CXX=no
12228	fi
12229	;;
12230    esac
12231    ;;
12232  psos*)
12233    # FIXME: insert proper C++ library support
12234    ld_shlibs_CXX=no
12235    ;;
12236  sunos4*)
12237    case $cc_basename in
12238      CC*)
12239	# Sun C++ 4.x
12240	# FIXME: insert proper C++ library support
12241	ld_shlibs_CXX=no
12242	;;
12243      lcc*)
12244	# Lucid
12245	# FIXME: insert proper C++ library support
12246	ld_shlibs_CXX=no
12247	;;
12248      *)
12249	# FIXME: insert proper C++ library support
12250	ld_shlibs_CXX=no
12251	;;
12252    esac
12253    ;;
12254  solaris*)
12255    case $cc_basename in
12256      CC*)
12257	# Sun C++ 4.2, 5.x and Centerline C++
12258        archive_cmds_need_lc_CXX=yes
12259	no_undefined_flag_CXX=' -zdefs'
12260	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12261	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12262	$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'
12263
12264	hardcode_libdir_flag_spec_CXX='-R$libdir'
12265	hardcode_shlibpath_var_CXX=no
12266	case $host_os in
12267	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12268	  *)
12269	    # The compiler driver will combine and reorder linker options,
12270	    # but understands `-z linker_flag'.
12271	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12272	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12273	    ;;
12274	esac
12275	link_all_deplibs_CXX=yes
12276
12277	output_verbose_link_cmd='echo'
12278
12279	# Archives containing C++ object files must be created using
12280	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12281	# necessary to make sure instantiated templates are included
12282	# in the archive.
12283	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12284	;;
12285      gcx*)
12286	# Green Hills C++ Compiler
12287	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12288
12289	# The C++ compiler must be used to create the archive.
12290	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12291	;;
12292      *)
12293	# GNU C++ compiler with Solaris linker
12294	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12295	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12296	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12297	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12298	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12299		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12300
12301	    # Commands to make compiler produce verbose output that lists
12302	    # what "hidden" libraries, object files and flags are used when
12303	    # linking a shared library.
12304	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12305	  else
12306	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12307	    # platform.
12308	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12309	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12310		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12311
12312	    # Commands to make compiler produce verbose output that lists
12313	    # what "hidden" libraries, object files and flags are used when
12314	    # linking a shared library.
12315	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12316	  fi
12317
12318	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12319	  case $host_os in
12320	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12321	  *)
12322	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12323	    ;;
12324	  esac
12325	fi
12326	;;
12327    esac
12328    ;;
12329  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12330    no_undefined_flag_CXX='${wl}-z,text'
12331    archive_cmds_need_lc_CXX=no
12332    hardcode_shlibpath_var_CXX=no
12333    runpath_var='LD_RUN_PATH'
12334
12335    case $cc_basename in
12336      CC*)
12337	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12338	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12339	;;
12340      *)
12341	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12342	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12343	;;
12344    esac
12345    ;;
12346  sysv5* | sco3.2v5* | sco5v6*)
12347    # Note: We can NOT use -z defs as we might desire, because we do not
12348    # link with -lc, and that would cause any symbols used from libc to
12349    # always be unresolved, which means just about no library would
12350    # ever link correctly.  If we're not using GNU ld we use -z text
12351    # though, which does catch some bad symbols but isn't as heavy-handed
12352    # as -z defs.
12353    # For security reasons, it is highly recommended that you always
12354    # use absolute paths for naming shared libraries, and exclude the
12355    # DT_RUNPATH tag from executables and libraries.  But doing so
12356    # requires that you compile everything twice, which is a pain.
12357    # So that behaviour is only enabled if SCOABSPATH is set to a
12358    # non-empty value in the environment.  Most likely only useful for
12359    # creating official distributions of packages.
12360    # This is a hack until libtool officially supports absolute path
12361    # names for shared libraries.
12362    no_undefined_flag_CXX='${wl}-z,text'
12363    allow_undefined_flag_CXX='${wl}-z,nodefs'
12364    archive_cmds_need_lc_CXX=no
12365    hardcode_shlibpath_var_CXX=no
12366    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12367    hardcode_libdir_separator_CXX=':'
12368    link_all_deplibs_CXX=yes
12369    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12370    runpath_var='LD_RUN_PATH'
12371
12372    case $cc_basename in
12373      CC*)
12374	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12375	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12376	;;
12377      *)
12378	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12379	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12380	;;
12381    esac
12382    ;;
12383  tandem*)
12384    case $cc_basename in
12385      NCC*)
12386	# NonStop-UX NCC 3.20
12387	# FIXME: insert proper C++ library support
12388	ld_shlibs_CXX=no
12389	;;
12390      *)
12391	# FIXME: insert proper C++ library support
12392	ld_shlibs_CXX=no
12393	;;
12394    esac
12395    ;;
12396  vxworks*)
12397    # FIXME: insert proper C++ library support
12398    ld_shlibs_CXX=no
12399    ;;
12400  *)
12401    # FIXME: insert proper C++ library support
12402    ld_shlibs_CXX=no
12403    ;;
12404esac
12405{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12406$as_echo "$ld_shlibs_CXX" >&6; }
12407test "$ld_shlibs_CXX" = no && can_build_shared=no
12408
12409GCC_CXX="$GXX"
12410LD_CXX="$LD"
12411
12412cat > conftest.$ac_ext <<EOF
12413class Foo
12414{
12415public:
12416  Foo (void) { a = 0; }
12417private:
12418  int a;
12419};
12420EOF
12421
12422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12423  (eval $ac_compile) 2>&5
12424  ac_status=$?
12425  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426  (exit $ac_status); }; then
12427  # Parse the compiler output and extract the necessary
12428  # objects, libraries and library flags.
12429
12430  # Sentinel used to keep track of whether or not we are before
12431  # the conftest object file.
12432  pre_test_object_deps_done=no
12433
12434  # The `*' in the case matches for architectures that use `case' in
12435  # $output_verbose_cmd can trigger glob expansion during the loop
12436  # eval without this substitution.
12437  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12438
12439  for p in `eval $output_verbose_link_cmd`; do
12440    case $p in
12441
12442    -L* | -R* | -l*)
12443       # Some compilers place space between "-{L,R}" and the path.
12444       # Remove the space.
12445       if test $p = "-L" \
12446	  || test $p = "-R"; then
12447	 prev=$p
12448	 continue
12449       else
12450	 prev=
12451       fi
12452
12453       if test "$pre_test_object_deps_done" = no; then
12454	 case $p in
12455	 -L* | -R*)
12456	   # Internal compiler library paths should come after those
12457	   # provided the user.  The postdeps already come after the
12458	   # user supplied libs so there is no need to process them.
12459	   if test -z "$compiler_lib_search_path_CXX"; then
12460	     compiler_lib_search_path_CXX="${prev}${p}"
12461	   else
12462	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12463	   fi
12464	   ;;
12465	 # The "-l" case would never come before the object being
12466	 # linked, so don't bother handling this case.
12467	 esac
12468       else
12469	 if test -z "$postdeps_CXX"; then
12470	   postdeps_CXX="${prev}${p}"
12471	 else
12472	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12473	 fi
12474       fi
12475       ;;
12476
12477    *.$objext)
12478       # This assumes that the test object file only shows up
12479       # once in the compiler output.
12480       if test "$p" = "conftest.$objext"; then
12481	 pre_test_object_deps_done=yes
12482	 continue
12483       fi
12484
12485       if test "$pre_test_object_deps_done" = no; then
12486	 if test -z "$predep_objects_CXX"; then
12487	   predep_objects_CXX="$p"
12488	 else
12489	   predep_objects_CXX="$predep_objects_CXX $p"
12490	 fi
12491       else
12492	 if test -z "$postdep_objects_CXX"; then
12493	   postdep_objects_CXX="$p"
12494	 else
12495	   postdep_objects_CXX="$postdep_objects_CXX $p"
12496	 fi
12497       fi
12498       ;;
12499
12500    *) ;; # Ignore the rest.
12501
12502    esac
12503  done
12504
12505  # Clean up.
12506  rm -f a.out a.exe
12507else
12508  echo "libtool.m4: error: problem compiling CXX test program"
12509fi
12510
12511$rm -f confest.$objext
12512
12513compiler_lib_search_dirs_CXX=
12514if test -n "$compiler_lib_search_path_CXX"; then
12515  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12516fi
12517
12518# PORTME: override above test on systems where it is broken
12519case $host_os in
12520interix[3-9]*)
12521  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12522  # hack all around it, let's just trust "g++" to DTRT.
12523  predep_objects_CXX=
12524  postdep_objects_CXX=
12525  postdeps_CXX=
12526  ;;
12527
12528linux*)
12529  case `$CC -V 2>&1 | sed 5q` in
12530  *Sun\ C*)
12531    # Sun C++ 5.9
12532    #
12533    # The more standards-conforming stlport4 library is
12534    # incompatible with the Cstd library. Avoid specifying
12535    # it if it's in CXXFLAGS. Ignore libCrun as
12536    # -library=stlport4 depends on it.
12537    case " $CXX $CXXFLAGS " in
12538    *" -library=stlport4 "*)
12539      solaris_use_stlport4=yes
12540      ;;
12541    esac
12542    if test "$solaris_use_stlport4" != yes; then
12543      postdeps_CXX='-library=Cstd -library=Crun'
12544    fi
12545    ;;
12546  esac
12547  ;;
12548
12549solaris*)
12550  case $cc_basename in
12551  CC*)
12552    # The more standards-conforming stlport4 library is
12553    # incompatible with the Cstd library. Avoid specifying
12554    # it if it's in CXXFLAGS. Ignore libCrun as
12555    # -library=stlport4 depends on it.
12556    case " $CXX $CXXFLAGS " in
12557    *" -library=stlport4 "*)
12558      solaris_use_stlport4=yes
12559      ;;
12560    esac
12561
12562    # Adding this requires a known-good setup of shared libraries for
12563    # Sun compiler versions before 5.6, else PIC objects from an old
12564    # archive will be linked into the output, leading to subtle bugs.
12565    if test "$solaris_use_stlport4" != yes; then
12566      postdeps_CXX='-library=Cstd -library=Crun'
12567    fi
12568    ;;
12569  esac
12570  ;;
12571esac
12572
12573case " $postdeps_CXX " in
12574*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12575esac
12576
12577lt_prog_compiler_wl_CXX=
12578lt_prog_compiler_pic_CXX=
12579lt_prog_compiler_static_CXX=
12580
12581{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12582$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12583
12584  # C++ specific cases for pic, static, wl, etc.
12585  if test "$GXX" = yes; then
12586    lt_prog_compiler_wl_CXX='-Wl,'
12587    lt_prog_compiler_static_CXX='-static'
12588
12589    case $host_os in
12590    aix*)
12591      # All AIX code is PIC.
12592      if test "$host_cpu" = ia64; then
12593	# AIX 5 now supports IA64 processor
12594	lt_prog_compiler_static_CXX='-Bstatic'
12595      fi
12596      ;;
12597    amigaos*)
12598      # FIXME: we need at least 68020 code to build shared libraries, but
12599      # adding the `-m68020' flag to GCC prevents building anything better,
12600      # like `-m68040'.
12601      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12602      ;;
12603    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12604      # PIC is the default for these OSes.
12605      ;;
12606    mingw* | cygwin* | os2* | pw32*)
12607      # This hack is so that the source file can tell whether it is being
12608      # built for inclusion in a dll (and should export symbols for example).
12609      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12610      # (--disable-auto-import) libraries
12611      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12612      ;;
12613    darwin* | rhapsody*)
12614      # PIC is the default on this platform
12615      # Common symbols not allowed in MH_DYLIB files
12616      lt_prog_compiler_pic_CXX='-fno-common'
12617      ;;
12618    *djgpp*)
12619      # DJGPP does not support shared libraries at all
12620      lt_prog_compiler_pic_CXX=
12621      ;;
12622    interix[3-9]*)
12623      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12624      # Instead, we relocate shared libraries at runtime.
12625      ;;
12626    sysv4*MP*)
12627      if test -d /usr/nec; then
12628	lt_prog_compiler_pic_CXX=-Kconform_pic
12629      fi
12630      ;;
12631    hpux*)
12632      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12633      # not for PA HP-UX.
12634      case $host_cpu in
12635      hppa*64*|ia64*)
12636	;;
12637      *)
12638	lt_prog_compiler_pic_CXX='-fPIC'
12639	;;
12640      esac
12641      ;;
12642    *)
12643      lt_prog_compiler_pic_CXX='-fPIC'
12644      ;;
12645    esac
12646  else
12647    case $host_os in
12648      aix[4-9]*)
12649	# All AIX code is PIC.
12650	if test "$host_cpu" = ia64; then
12651	  # AIX 5 now supports IA64 processor
12652	  lt_prog_compiler_static_CXX='-Bstatic'
12653	else
12654	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12655	fi
12656	;;
12657      chorus*)
12658	case $cc_basename in
12659	cxch68*)
12660	  # Green Hills C++ Compiler
12661	  # _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"
12662	  ;;
12663	esac
12664	;;
12665       darwin*)
12666         # PIC is the default on this platform
12667         # Common symbols not allowed in MH_DYLIB files
12668         case $cc_basename in
12669           xlc*)
12670           lt_prog_compiler_pic_CXX='-qnocommon'
12671           lt_prog_compiler_wl_CXX='-Wl,'
12672           ;;
12673         esac
12674       ;;
12675      dgux*)
12676	case $cc_basename in
12677	  ec++*)
12678	    lt_prog_compiler_pic_CXX='-KPIC'
12679	    ;;
12680	  ghcx*)
12681	    # Green Hills C++ Compiler
12682	    lt_prog_compiler_pic_CXX='-pic'
12683	    ;;
12684	  *)
12685	    ;;
12686	esac
12687	;;
12688      freebsd* | dragonfly*)
12689	# FreeBSD uses GNU C++
12690	;;
12691      hpux9* | hpux10* | hpux11*)
12692	case $cc_basename in
12693	  CC*)
12694	    lt_prog_compiler_wl_CXX='-Wl,'
12695	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12696	    if test "$host_cpu" != ia64; then
12697	      lt_prog_compiler_pic_CXX='+Z'
12698	    fi
12699	    ;;
12700	  aCC*)
12701	    lt_prog_compiler_wl_CXX='-Wl,'
12702	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12703	    case $host_cpu in
12704	    hppa*64*|ia64*)
12705	      # +Z the default
12706	      ;;
12707	    *)
12708	      lt_prog_compiler_pic_CXX='+Z'
12709	      ;;
12710	    esac
12711	    ;;
12712	  *)
12713	    ;;
12714	esac
12715	;;
12716      interix*)
12717	# This is c89, which is MS Visual C++ (no shared libs)
12718	# Anyone wants to do a port?
12719	;;
12720      irix5* | irix6* | nonstopux*)
12721	case $cc_basename in
12722	  CC*)
12723	    lt_prog_compiler_wl_CXX='-Wl,'
12724	    lt_prog_compiler_static_CXX='-non_shared'
12725	    # CC pic flag -KPIC is the default.
12726	    ;;
12727	  *)
12728	    ;;
12729	esac
12730	;;
12731      linux* | k*bsd*-gnu)
12732	case $cc_basename in
12733	  KCC*)
12734	    # KAI C++ Compiler
12735	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12736	    lt_prog_compiler_pic_CXX='-fPIC'
12737	    ;;
12738	  icpc* | ecpc*)
12739	    # Intel C++
12740	    lt_prog_compiler_wl_CXX='-Wl,'
12741	    lt_prog_compiler_pic_CXX='-KPIC'
12742	    lt_prog_compiler_static_CXX='-static'
12743	    ;;
12744	  pgCC* | pgcpp*)
12745	    # Portland Group C++ compiler.
12746	    lt_prog_compiler_wl_CXX='-Wl,'
12747	    lt_prog_compiler_pic_CXX='-fpic'
12748	    lt_prog_compiler_static_CXX='-Bstatic'
12749	    ;;
12750	  cxx*)
12751	    # Compaq C++
12752	    # Make sure the PIC flag is empty.  It appears that all Alpha
12753	    # Linux and Compaq Tru64 Unix objects are PIC.
12754	    lt_prog_compiler_pic_CXX=
12755	    lt_prog_compiler_static_CXX='-non_shared'
12756	    ;;
12757	  *)
12758	    case `$CC -V 2>&1 | sed 5q` in
12759	    *Sun\ C*)
12760	      # Sun C++ 5.9
12761	      lt_prog_compiler_pic_CXX='-KPIC'
12762	      lt_prog_compiler_static_CXX='-Bstatic'
12763	      lt_prog_compiler_wl_CXX='-Qoption ld '
12764	      ;;
12765	    esac
12766	    ;;
12767	esac
12768	;;
12769      lynxos*)
12770	;;
12771      m88k*)
12772	;;
12773      mvs*)
12774	case $cc_basename in
12775	  cxx*)
12776	    lt_prog_compiler_pic_CXX='-W c,exportall'
12777	    ;;
12778	  *)
12779	    ;;
12780	esac
12781	;;
12782      netbsd*)
12783	;;
12784      osf3* | osf4* | osf5*)
12785	case $cc_basename in
12786	  KCC*)
12787	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12788	    ;;
12789	  RCC*)
12790	    # Rational C++ 2.4.1
12791	    lt_prog_compiler_pic_CXX='-pic'
12792	    ;;
12793	  cxx*)
12794	    # Digital/Compaq C++
12795	    lt_prog_compiler_wl_CXX='-Wl,'
12796	    # Make sure the PIC flag is empty.  It appears that all Alpha
12797	    # Linux and Compaq Tru64 Unix objects are PIC.
12798	    lt_prog_compiler_pic_CXX=
12799	    lt_prog_compiler_static_CXX='-non_shared'
12800	    ;;
12801	  *)
12802	    ;;
12803	esac
12804	;;
12805      psos*)
12806	;;
12807      solaris*)
12808	case $cc_basename in
12809	  CC*)
12810	    # Sun C++ 4.2, 5.x and Centerline C++
12811	    lt_prog_compiler_pic_CXX='-KPIC'
12812	    lt_prog_compiler_static_CXX='-Bstatic'
12813	    lt_prog_compiler_wl_CXX='-Qoption ld '
12814	    ;;
12815	  gcx*)
12816	    # Green Hills C++ Compiler
12817	    lt_prog_compiler_pic_CXX='-PIC'
12818	    ;;
12819	  *)
12820	    ;;
12821	esac
12822	;;
12823      sunos4*)
12824	case $cc_basename in
12825	  CC*)
12826	    # Sun C++ 4.x
12827	    lt_prog_compiler_pic_CXX='-pic'
12828	    lt_prog_compiler_static_CXX='-Bstatic'
12829	    ;;
12830	  lcc*)
12831	    # Lucid
12832	    lt_prog_compiler_pic_CXX='-pic'
12833	    ;;
12834	  *)
12835	    ;;
12836	esac
12837	;;
12838      tandem*)
12839	case $cc_basename in
12840	  NCC*)
12841	    # NonStop-UX NCC 3.20
12842	    lt_prog_compiler_pic_CXX='-KPIC'
12843	    ;;
12844	  *)
12845	    ;;
12846	esac
12847	;;
12848      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12849	case $cc_basename in
12850	  CC*)
12851	    lt_prog_compiler_wl_CXX='-Wl,'
12852	    lt_prog_compiler_pic_CXX='-KPIC'
12853	    lt_prog_compiler_static_CXX='-Bstatic'
12854	    ;;
12855	esac
12856	;;
12857      vxworks*)
12858	;;
12859      *)
12860	lt_prog_compiler_can_build_shared_CXX=no
12861	;;
12862    esac
12863  fi
12864
12865{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12866$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12867
12868#
12869# Check to make sure the PIC flag actually works.
12870#
12871if test -n "$lt_prog_compiler_pic_CXX"; then
12872
12873{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12874$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12875if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12876  $as_echo_n "(cached) " >&6
12877else
12878  lt_cv_prog_compiler_pic_works_CXX=no
12879  ac_outfile=conftest.$ac_objext
12880   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12881   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12882   # Insert the option either (1) after the last *FLAGS variable, or
12883   # (2) before a word containing "conftest.", or (3) at the end.
12884   # Note that $ac_compile itself does not contain backslashes and begins
12885   # with a dollar sign (not a hyphen), so the echo should work correctly.
12886   # The option is referenced via a variable to avoid confusing sed.
12887   lt_compile=`echo "$ac_compile" | $SED \
12888   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12889   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12890   -e 's:$: $lt_compiler_flag:'`
12891   (eval echo "\"\$as_me:12891: $lt_compile\"" >&5)
12892   (eval "$lt_compile" 2>conftest.err)
12893   ac_status=$?
12894   cat conftest.err >&5
12895   echo "$as_me:12895: \$? = $ac_status" >&5
12896   if (exit $ac_status) && test -s "$ac_outfile"; then
12897     # The compiler can only warn and ignore the option if not recognized
12898     # So say no if there are warnings other than the usual output.
12899     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12900     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12901     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12902       lt_cv_prog_compiler_pic_works_CXX=yes
12903     fi
12904   fi
12905   $rm conftest*
12906
12907fi
12908{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12909$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12910
12911if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12912    case $lt_prog_compiler_pic_CXX in
12913     "" | " "*) ;;
12914     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12915     esac
12916else
12917    lt_prog_compiler_pic_CXX=
12918     lt_prog_compiler_can_build_shared_CXX=no
12919fi
12920
12921fi
12922case $host_os in
12923  # For platforms which do not support PIC, -DPIC is meaningless:
12924  *djgpp*)
12925    lt_prog_compiler_pic_CXX=
12926    ;;
12927  *)
12928    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12929    ;;
12930esac
12931
12932#
12933# Check to make sure the static flag actually works.
12934#
12935wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12936{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12937$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12938if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12939  $as_echo_n "(cached) " >&6
12940else
12941  lt_cv_prog_compiler_static_works_CXX=no
12942   save_LDFLAGS="$LDFLAGS"
12943   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12944   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12945   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12946     # The linker can only warn and ignore the option if not recognized
12947     # So say no if there are warnings
12948     if test -s conftest.err; then
12949       # Append any errors to the config.log.
12950       cat conftest.err 1>&5
12951       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12952       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12953       if diff conftest.exp conftest.er2 >/dev/null; then
12954         lt_cv_prog_compiler_static_works_CXX=yes
12955       fi
12956     else
12957       lt_cv_prog_compiler_static_works_CXX=yes
12958     fi
12959   fi
12960   $rm -r conftest*
12961   LDFLAGS="$save_LDFLAGS"
12962
12963fi
12964{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12965$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12966
12967if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12968    :
12969else
12970    lt_prog_compiler_static_CXX=
12971fi
12972
12973
12974{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12975$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12976if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12977  $as_echo_n "(cached) " >&6
12978else
12979  lt_cv_prog_compiler_c_o_CXX=no
12980   $rm -r conftest 2>/dev/null
12981   mkdir conftest
12982   cd conftest
12983   mkdir out
12984   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12985
12986   lt_compiler_flag="-o out/conftest2.$ac_objext"
12987   # Insert the option either (1) after the last *FLAGS variable, or
12988   # (2) before a word containing "conftest.", or (3) at the end.
12989   # Note that $ac_compile itself does not contain backslashes and begins
12990   # with a dollar sign (not a hyphen), so the echo should work correctly.
12991   lt_compile=`echo "$ac_compile" | $SED \
12992   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12993   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12994   -e 's:$: $lt_compiler_flag:'`
12995   (eval echo "\"\$as_me:12995: $lt_compile\"" >&5)
12996   (eval "$lt_compile" 2>out/conftest.err)
12997   ac_status=$?
12998   cat out/conftest.err >&5
12999   echo "$as_me:12999: \$? = $ac_status" >&5
13000   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13001   then
13002     # The compiler can only warn and ignore the option if not recognized
13003     # So say no if there are warnings
13004     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13005     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13006     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13007       lt_cv_prog_compiler_c_o_CXX=yes
13008     fi
13009   fi
13010   chmod u+w . 2>&5
13011   $rm conftest*
13012   # SGI C++ compiler will create directory out/ii_files/ for
13013   # template instantiation
13014   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13015   $rm out/* && rmdir out
13016   cd ..
13017   rmdir conftest
13018   $rm conftest*
13019
13020fi
13021{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13022$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13023
13024
13025hard_links="nottested"
13026if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13027  # do not overwrite the value of need_locks provided by the user
13028  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13029$as_echo_n "checking if we can lock with hard links... " >&6; }
13030  hard_links=yes
13031  $rm conftest*
13032  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13033  touch conftest.a
13034  ln conftest.a conftest.b 2>&5 || hard_links=no
13035  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13036  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13037$as_echo "$hard_links" >&6; }
13038  if test "$hard_links" = no; then
13039    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13040$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13041    need_locks=warn
13042  fi
13043else
13044  need_locks=no
13045fi
13046
13047{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13048$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13049
13050  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13051  case $host_os in
13052  aix[4-9]*)
13053    # If we're using GNU nm, then we don't want the "-C" option.
13054    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13055    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13056      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'
13057    else
13058      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'
13059    fi
13060    ;;
13061  pw32*)
13062    export_symbols_cmds_CXX="$ltdll_cmds"
13063  ;;
13064  cygwin* | mingw*)
13065    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'
13066  ;;
13067  *)
13068    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13069  ;;
13070  esac
13071  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13072
13073{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13074$as_echo "$ld_shlibs_CXX" >&6; }
13075test "$ld_shlibs_CXX" = no && can_build_shared=no
13076
13077#
13078# Do we need to explicitly link libc?
13079#
13080case "x$archive_cmds_need_lc_CXX" in
13081x|xyes)
13082  # Assume -lc should be added
13083  archive_cmds_need_lc_CXX=yes
13084
13085  if test "$enable_shared" = yes && test "$GCC" = yes; then
13086    case $archive_cmds_CXX in
13087    *'~'*)
13088      # FIXME: we may have to deal with multi-command sequences.
13089      ;;
13090    '$CC '*)
13091      # Test whether the compiler implicitly links with -lc since on some
13092      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13093      # to ld, don't add -lc before -lgcc.
13094      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13095$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13096      $rm conftest*
13097      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13098
13099      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13100  (eval $ac_compile) 2>&5
13101  ac_status=$?
13102  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103  (exit $ac_status); } 2>conftest.err; then
13104        soname=conftest
13105        lib=conftest
13106        libobjs=conftest.$ac_objext
13107        deplibs=
13108        wl=$lt_prog_compiler_wl_CXX
13109	pic_flag=$lt_prog_compiler_pic_CXX
13110        compiler_flags=-v
13111        linker_flags=-v
13112        verstring=
13113        output_objdir=.
13114        libname=conftest
13115        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13116        allow_undefined_flag_CXX=
13117        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13118  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13119  ac_status=$?
13120  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121  (exit $ac_status); }
13122        then
13123	  archive_cmds_need_lc_CXX=no
13124        else
13125	  archive_cmds_need_lc_CXX=yes
13126        fi
13127        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13128      else
13129        cat conftest.err 1>&5
13130      fi
13131      $rm conftest*
13132      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13133$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13134      ;;
13135    esac
13136  fi
13137  ;;
13138esac
13139
13140{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13141$as_echo_n "checking dynamic linker characteristics... " >&6; }
13142library_names_spec=
13143libname_spec='lib$name'
13144soname_spec=
13145shrext_cmds=".so"
13146postinstall_cmds=
13147postuninstall_cmds=
13148finish_cmds=
13149finish_eval=
13150shlibpath_var=
13151shlibpath_overrides_runpath=unknown
13152version_type=none
13153dynamic_linker="$host_os ld.so"
13154sys_lib_dlsearch_path_spec="/lib /usr/lib"
13155
13156need_lib_prefix=unknown
13157hardcode_into_libs=no
13158
13159# when you set need_version to no, make sure it does not cause -set_version
13160# flags to be left without arguments
13161need_version=unknown
13162
13163case $host_os in
13164aix3*)
13165  version_type=linux
13166  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13167  shlibpath_var=LIBPATH
13168
13169  # AIX 3 has no versioning support, so we append a major version to the name.
13170  soname_spec='${libname}${release}${shared_ext}$major'
13171  ;;
13172
13173aix[4-9]*)
13174  version_type=linux
13175  need_lib_prefix=no
13176  need_version=no
13177  hardcode_into_libs=yes
13178  if test "$host_cpu" = ia64; then
13179    # AIX 5 supports IA64
13180    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13181    shlibpath_var=LD_LIBRARY_PATH
13182  else
13183    # With GCC up to 2.95.x, collect2 would create an import file
13184    # for dependence libraries.  The import file would start with
13185    # the line `#! .'.  This would cause the generated library to
13186    # depend on `.', always an invalid library.  This was fixed in
13187    # development snapshots of GCC prior to 3.0.
13188    case $host_os in
13189      aix4 | aix4.[01] | aix4.[01].*)
13190      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13191	   echo ' yes '
13192	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13193	:
13194      else
13195	can_build_shared=no
13196      fi
13197      ;;
13198    esac
13199    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13200    # soname into executable. Probably we can add versioning support to
13201    # collect2, so additional links can be useful in future.
13202    if test "$aix_use_runtimelinking" = yes; then
13203      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13204      # instead of lib<name>.a to let people know that these are not
13205      # typical AIX shared libraries.
13206      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13207    else
13208      # We preserve .a as extension for shared libraries through AIX4.2
13209      # and later when we are not doing run time linking.
13210      library_names_spec='${libname}${release}.a $libname.a'
13211      soname_spec='${libname}${release}${shared_ext}$major'
13212    fi
13213    shlibpath_var=LIBPATH
13214  fi
13215  ;;
13216
13217amigaos*)
13218  library_names_spec='$libname.ixlibrary $libname.a'
13219  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13220  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'
13221  ;;
13222
13223beos*)
13224  library_names_spec='${libname}${shared_ext}'
13225  dynamic_linker="$host_os ld.so"
13226  shlibpath_var=LIBRARY_PATH
13227  ;;
13228
13229bsdi[45]*)
13230  version_type=linux
13231  need_version=no
13232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13233  soname_spec='${libname}${release}${shared_ext}$major'
13234  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13235  shlibpath_var=LD_LIBRARY_PATH
13236  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13237  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13238  # the default ld.so.conf also contains /usr/contrib/lib and
13239  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13240  # libtool to hard-code these into programs
13241  ;;
13242
13243cygwin* | mingw* | pw32*)
13244  version_type=windows
13245  shrext_cmds=".dll"
13246  need_version=no
13247  need_lib_prefix=no
13248
13249  case $GCC,$host_os in
13250  yes,cygwin* | yes,mingw* | yes,pw32*)
13251    library_names_spec='$libname.dll.a'
13252    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13253    postinstall_cmds='base_file=`basename \${file}`~
13254      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13255      dldir=$destdir/`dirname \$dlpath`~
13256      test -d \$dldir || mkdir -p \$dldir~
13257      $install_prog $dir/$dlname \$dldir/$dlname~
13258      chmod a+x \$dldir/$dlname'
13259    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13260      dlpath=$dir/\$dldll~
13261       $rm \$dlpath'
13262    shlibpath_overrides_runpath=yes
13263
13264    case $host_os in
13265    cygwin*)
13266      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13267      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13268      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13269      ;;
13270    mingw*)
13271      # MinGW DLLs use traditional 'lib' prefix
13272      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13273      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13274      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13275        # It is most probably a Windows format PATH printed by
13276        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13277        # path with ; separators, and with drive letters. We can handle the
13278        # drive letters (cygwin fileutils understands them), so leave them,
13279        # especially as we might pass files found there to a mingw objdump,
13280        # which wouldn't understand a cygwinified path. Ahh.
13281        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13282      else
13283        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13284      fi
13285      ;;
13286    pw32*)
13287      # pw32 DLLs use 'pw' prefix rather than 'lib'
13288      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13289      ;;
13290    esac
13291    ;;
13292
13293  *)
13294    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13295    ;;
13296  esac
13297  dynamic_linker='Win32 ld.exe'
13298  # FIXME: first we should search . and the directory the executable is in
13299  shlibpath_var=PATH
13300  ;;
13301
13302darwin* | rhapsody*)
13303  dynamic_linker="$host_os dyld"
13304  version_type=darwin
13305  need_lib_prefix=no
13306  need_version=no
13307  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13308  soname_spec='${libname}${release}${major}$shared_ext'
13309  shlibpath_overrides_runpath=yes
13310  shlibpath_var=DYLD_LIBRARY_PATH
13311  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13312
13313  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13314  ;;
13315
13316dgux*)
13317  version_type=linux
13318  need_lib_prefix=no
13319  need_version=no
13320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13321  soname_spec='${libname}${release}${shared_ext}$major'
13322  shlibpath_var=LD_LIBRARY_PATH
13323  ;;
13324
13325freebsd1*)
13326  dynamic_linker=no
13327  ;;
13328
13329freebsd* | dragonfly*)
13330  # DragonFly does not have aout.  When/if they implement a new
13331  # versioning mechanism, adjust this.
13332  if test -x /usr/bin/objformat; then
13333    objformat=`/usr/bin/objformat`
13334  else
13335    case $host_os in
13336    freebsd[123]*) objformat=aout ;;
13337    *) objformat=elf ;;
13338    esac
13339  fi
13340  version_type=freebsd-$objformat
13341  case $version_type in
13342    freebsd-elf*)
13343      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13344      need_version=no
13345      need_lib_prefix=no
13346      ;;
13347    freebsd-*)
13348      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13349      need_version=yes
13350      ;;
13351  esac
13352  shlibpath_var=LD_LIBRARY_PATH
13353  case $host_os in
13354  freebsd2*)
13355    shlibpath_overrides_runpath=yes
13356    ;;
13357  freebsd3.[01]* | freebsdelf3.[01]*)
13358    shlibpath_overrides_runpath=yes
13359    hardcode_into_libs=yes
13360    ;;
13361  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13362  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13363    shlibpath_overrides_runpath=no
13364    hardcode_into_libs=yes
13365    ;;
13366  *) # from 4.6 on, and DragonFly
13367    shlibpath_overrides_runpath=yes
13368    hardcode_into_libs=yes
13369    ;;
13370  esac
13371  ;;
13372
13373gnu*)
13374  version_type=linux
13375  need_lib_prefix=no
13376  need_version=no
13377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13378  soname_spec='${libname}${release}${shared_ext}$major'
13379  shlibpath_var=LD_LIBRARY_PATH
13380  hardcode_into_libs=yes
13381  ;;
13382
13383hpux9* | hpux10* | hpux11*)
13384  # Give a soname corresponding to the major version so that dld.sl refuses to
13385  # link against other versions.
13386  version_type=sunos
13387  need_lib_prefix=no
13388  need_version=no
13389  case $host_cpu in
13390  ia64*)
13391    shrext_cmds='.so'
13392    hardcode_into_libs=yes
13393    dynamic_linker="$host_os dld.so"
13394    shlibpath_var=LD_LIBRARY_PATH
13395    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13396    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13397    soname_spec='${libname}${release}${shared_ext}$major'
13398    if test "X$HPUX_IA64_MODE" = X32; then
13399      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13400    else
13401      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13402    fi
13403    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13404    ;;
13405   hppa*64*)
13406     shrext_cmds='.sl'
13407     hardcode_into_libs=yes
13408     dynamic_linker="$host_os dld.sl"
13409     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13410     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13411     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13412     soname_spec='${libname}${release}${shared_ext}$major'
13413     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13414     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13415     ;;
13416   *)
13417    shrext_cmds='.sl'
13418    dynamic_linker="$host_os dld.sl"
13419    shlibpath_var=SHLIB_PATH
13420    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13421    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13422    soname_spec='${libname}${release}${shared_ext}$major'
13423    ;;
13424  esac
13425  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13426  postinstall_cmds='chmod 555 $lib'
13427  ;;
13428
13429interix[3-9]*)
13430  version_type=linux
13431  need_lib_prefix=no
13432  need_version=no
13433  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13434  soname_spec='${libname}${release}${shared_ext}$major'
13435  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13436  shlibpath_var=LD_LIBRARY_PATH
13437  shlibpath_overrides_runpath=no
13438  hardcode_into_libs=yes
13439  ;;
13440
13441irix5* | irix6* | nonstopux*)
13442  case $host_os in
13443    nonstopux*) version_type=nonstopux ;;
13444    *)
13445	if test "$lt_cv_prog_gnu_ld" = yes; then
13446		version_type=linux
13447	else
13448		version_type=irix
13449	fi ;;
13450  esac
13451  need_lib_prefix=no
13452  need_version=no
13453  soname_spec='${libname}${release}${shared_ext}$major'
13454  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13455  case $host_os in
13456  irix5* | nonstopux*)
13457    libsuff= shlibsuff=
13458    ;;
13459  *)
13460    case $LD in # libtool.m4 will add one of these switches to LD
13461    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13462      libsuff= shlibsuff= libmagic=32-bit;;
13463    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13464      libsuff=32 shlibsuff=N32 libmagic=N32;;
13465    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13466      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13467    *) libsuff= shlibsuff= libmagic=never-match;;
13468    esac
13469    ;;
13470  esac
13471  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13472  shlibpath_overrides_runpath=no
13473  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13474  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13475  hardcode_into_libs=yes
13476  ;;
13477
13478# No shared lib support for Linux oldld, aout, or coff.
13479linux*oldld* | linux*aout* | linux*coff*)
13480  dynamic_linker=no
13481  ;;
13482
13483# This must be Linux ELF.
13484linux* | k*bsd*-gnu)
13485  version_type=linux
13486  need_lib_prefix=no
13487  need_version=no
13488  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13489  soname_spec='${libname}${release}${shared_ext}$major'
13490  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13491  shlibpath_var=LD_LIBRARY_PATH
13492  shlibpath_overrides_runpath=no
13493  # This implies no fast_install, which is unacceptable.
13494  # Some rework will be needed to allow for fast_install
13495  # before this can be enabled.
13496  hardcode_into_libs=yes
13497  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13498  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13499
13500  # Append ld.so.conf contents to the search path
13501  if test -f /etc/ld.so.conf; then
13502    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' ' '`
13503    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13504  fi
13505
13506  # We used to test for /lib/ld.so.1 and disable shared libraries on
13507  # powerpc, because MkLinux only supported shared libraries with the
13508  # GNU dynamic linker.  Since this was broken with cross compilers,
13509  # most powerpc-linux boxes support dynamic linking these days and
13510  # people can always --disable-shared, the test was removed, and we
13511  # assume the GNU/Linux dynamic linker is in use.
13512  dynamic_linker='GNU/Linux ld.so'
13513  ;;
13514
13515netbsd*)
13516  version_type=sunos
13517  need_lib_prefix=no
13518  need_version=no
13519  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13520    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13521    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13522    dynamic_linker='NetBSD (a.out) ld.so'
13523  else
13524    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13525    soname_spec='${libname}${release}${shared_ext}$major'
13526    dynamic_linker='NetBSD ld.elf_so'
13527  fi
13528  shlibpath_var=LD_LIBRARY_PATH
13529  shlibpath_overrides_runpath=yes
13530  hardcode_into_libs=yes
13531  ;;
13532
13533newsos6)
13534  version_type=linux
13535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13536  shlibpath_var=LD_LIBRARY_PATH
13537  shlibpath_overrides_runpath=yes
13538  ;;
13539
13540nto-qnx*)
13541  version_type=linux
13542  need_lib_prefix=no
13543  need_version=no
13544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13545  soname_spec='${libname}${release}${shared_ext}$major'
13546  shlibpath_var=LD_LIBRARY_PATH
13547  shlibpath_overrides_runpath=yes
13548  ;;
13549
13550openbsd*)
13551  version_type=sunos
13552  sys_lib_dlsearch_path_spec="/usr/lib"
13553  need_lib_prefix=no
13554  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13555  case $host_os in
13556    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13557    *)                         need_version=no  ;;
13558  esac
13559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13560  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13561  shlibpath_var=LD_LIBRARY_PATH
13562  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13563    case $host_os in
13564      openbsd2.[89] | openbsd2.[89].*)
13565	shlibpath_overrides_runpath=no
13566	;;
13567      *)
13568	shlibpath_overrides_runpath=yes
13569	;;
13570      esac
13571  else
13572    shlibpath_overrides_runpath=yes
13573  fi
13574  ;;
13575
13576os2*)
13577  libname_spec='$name'
13578  shrext_cmds=".dll"
13579  need_lib_prefix=no
13580  library_names_spec='$libname${shared_ext} $libname.a'
13581  dynamic_linker='OS/2 ld.exe'
13582  shlibpath_var=LIBPATH
13583  ;;
13584
13585osf3* | osf4* | osf5*)
13586  version_type=osf
13587  need_lib_prefix=no
13588  need_version=no
13589  soname_spec='${libname}${release}${shared_ext}$major'
13590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13591  shlibpath_var=LD_LIBRARY_PATH
13592  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13593  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13594  ;;
13595
13596rdos*)
13597  dynamic_linker=no
13598  ;;
13599
13600solaris*)
13601  version_type=linux
13602  need_lib_prefix=no
13603  need_version=no
13604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13605  soname_spec='${libname}${release}${shared_ext}$major'
13606  shlibpath_var=LD_LIBRARY_PATH
13607  shlibpath_overrides_runpath=yes
13608  hardcode_into_libs=yes
13609  # ldd complains unless libraries are executable
13610  postinstall_cmds='chmod +x $lib'
13611  ;;
13612
13613sunos4*)
13614  version_type=sunos
13615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13616  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13617  shlibpath_var=LD_LIBRARY_PATH
13618  shlibpath_overrides_runpath=yes
13619  if test "$with_gnu_ld" = yes; then
13620    need_lib_prefix=no
13621  fi
13622  need_version=yes
13623  ;;
13624
13625sysv4 | sysv4.3*)
13626  version_type=linux
13627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13628  soname_spec='${libname}${release}${shared_ext}$major'
13629  shlibpath_var=LD_LIBRARY_PATH
13630  case $host_vendor in
13631    sni)
13632      shlibpath_overrides_runpath=no
13633      need_lib_prefix=no
13634      export_dynamic_flag_spec='${wl}-Blargedynsym'
13635      runpath_var=LD_RUN_PATH
13636      ;;
13637    siemens)
13638      need_lib_prefix=no
13639      ;;
13640    motorola)
13641      need_lib_prefix=no
13642      need_version=no
13643      shlibpath_overrides_runpath=no
13644      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13645      ;;
13646  esac
13647  ;;
13648
13649sysv4*MP*)
13650  if test -d /usr/nec ;then
13651    version_type=linux
13652    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13653    soname_spec='$libname${shared_ext}.$major'
13654    shlibpath_var=LD_LIBRARY_PATH
13655  fi
13656  ;;
13657
13658sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13659  version_type=freebsd-elf
13660  need_lib_prefix=no
13661  need_version=no
13662  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13663  soname_spec='${libname}${release}${shared_ext}$major'
13664  shlibpath_var=LD_LIBRARY_PATH
13665  hardcode_into_libs=yes
13666  if test "$with_gnu_ld" = yes; then
13667    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13668    shlibpath_overrides_runpath=no
13669  else
13670    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13671    shlibpath_overrides_runpath=yes
13672    case $host_os in
13673      sco3.2v5*)
13674        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13675	;;
13676    esac
13677  fi
13678  sys_lib_dlsearch_path_spec='/usr/lib'
13679  ;;
13680
13681uts4*)
13682  version_type=linux
13683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13684  soname_spec='${libname}${release}${shared_ext}$major'
13685  shlibpath_var=LD_LIBRARY_PATH
13686  ;;
13687
13688*)
13689  dynamic_linker=no
13690  ;;
13691esac
13692{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13693$as_echo "$dynamic_linker" >&6; }
13694test "$dynamic_linker" = no && can_build_shared=no
13695
13696if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13697  $as_echo_n "(cached) " >&6
13698else
13699  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13700fi
13701
13702sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13703if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13704  $as_echo_n "(cached) " >&6
13705else
13706  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13707fi
13708
13709sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13710
13711variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13712if test "$GCC" = yes; then
13713  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13714fi
13715
13716{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13717$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13718hardcode_action_CXX=
13719if test -n "$hardcode_libdir_flag_spec_CXX" || \
13720   test -n "$runpath_var_CXX" || \
13721   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13722
13723  # We can hardcode non-existant directories.
13724  if test "$hardcode_direct_CXX" != no &&
13725     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13726     # have to relink, otherwise we might link with an installed library
13727     # when we should be linking with a yet-to-be-installed one
13728     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13729     test "$hardcode_minus_L_CXX" != no; then
13730    # Linking always hardcodes the temporary library directory.
13731    hardcode_action_CXX=relink
13732  else
13733    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13734    hardcode_action_CXX=immediate
13735  fi
13736else
13737  # We cannot hardcode anything, or else we can only hardcode existing
13738  # directories.
13739  hardcode_action_CXX=unsupported
13740fi
13741{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13742$as_echo "$hardcode_action_CXX" >&6; }
13743
13744if test "$hardcode_action_CXX" = relink; then
13745  # Fast installation is not supported
13746  enable_fast_install=no
13747elif test "$shlibpath_overrides_runpath" = yes ||
13748     test "$enable_shared" = no; then
13749  # Fast installation is not necessary
13750  enable_fast_install=needless
13751fi
13752
13753
13754# The else clause should only fire when bootstrapping the
13755# libtool distribution, otherwise you forgot to ship ltmain.sh
13756# with your package, and you will get complaints that there are
13757# no rules to generate ltmain.sh.
13758if test -f "$ltmain"; then
13759  # See if we are running on zsh, and set the options which allow our commands through
13760  # without removal of \ escapes.
13761  if test -n "${ZSH_VERSION+set}" ; then
13762    setopt NO_GLOB_SUBST
13763  fi
13764  # Now quote all the things that may contain metacharacters while being
13765  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13766  # variables and quote the copies for generation of the libtool script.
13767  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13768    SED SHELL STRIP \
13769    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13770    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13771    deplibs_check_method reload_flag reload_cmds need_locks \
13772    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13773    lt_cv_sys_global_symbol_to_c_name_address \
13774    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13775    old_postinstall_cmds old_postuninstall_cmds \
13776    compiler_CXX \
13777    CC_CXX \
13778    LD_CXX \
13779    lt_prog_compiler_wl_CXX \
13780    lt_prog_compiler_pic_CXX \
13781    lt_prog_compiler_static_CXX \
13782    lt_prog_compiler_no_builtin_flag_CXX \
13783    export_dynamic_flag_spec_CXX \
13784    thread_safe_flag_spec_CXX \
13785    whole_archive_flag_spec_CXX \
13786    enable_shared_with_static_runtimes_CXX \
13787    old_archive_cmds_CXX \
13788    old_archive_from_new_cmds_CXX \
13789    predep_objects_CXX \
13790    postdep_objects_CXX \
13791    predeps_CXX \
13792    postdeps_CXX \
13793    compiler_lib_search_path_CXX \
13794    compiler_lib_search_dirs_CXX \
13795    archive_cmds_CXX \
13796    archive_expsym_cmds_CXX \
13797    postinstall_cmds_CXX \
13798    postuninstall_cmds_CXX \
13799    old_archive_from_expsyms_cmds_CXX \
13800    allow_undefined_flag_CXX \
13801    no_undefined_flag_CXX \
13802    export_symbols_cmds_CXX \
13803    hardcode_libdir_flag_spec_CXX \
13804    hardcode_libdir_flag_spec_ld_CXX \
13805    hardcode_libdir_separator_CXX \
13806    hardcode_automatic_CXX \
13807    module_cmds_CXX \
13808    module_expsym_cmds_CXX \
13809    lt_cv_prog_compiler_c_o_CXX \
13810    fix_srcfile_path_CXX \
13811    exclude_expsyms_CXX \
13812    include_expsyms_CXX; do
13813
13814    case $var in
13815    old_archive_cmds_CXX | \
13816    old_archive_from_new_cmds_CXX | \
13817    archive_cmds_CXX | \
13818    archive_expsym_cmds_CXX | \
13819    module_cmds_CXX | \
13820    module_expsym_cmds_CXX | \
13821    old_archive_from_expsyms_cmds_CXX | \
13822    export_symbols_cmds_CXX | \
13823    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13824    postinstall_cmds | postuninstall_cmds | \
13825    old_postinstall_cmds | old_postuninstall_cmds | \
13826    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13827      # Double-quote double-evaled strings.
13828      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13829      ;;
13830    *)
13831      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13832      ;;
13833    esac
13834  done
13835
13836  case $lt_echo in
13837  *'\$0 --fallback-echo"')
13838    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13839    ;;
13840  esac
13841
13842cfgfile="$ofile"
13843
13844  cat <<__EOF__ >> "$cfgfile"
13845# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13846
13847# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13848
13849# Shell to use when invoking shell scripts.
13850SHELL=$lt_SHELL
13851
13852# Whether or not to build shared libraries.
13853build_libtool_libs=$enable_shared
13854
13855# Whether or not to build static libraries.
13856build_old_libs=$enable_static
13857
13858# Whether or not to add -lc for building shared libraries.
13859build_libtool_need_lc=$archive_cmds_need_lc_CXX
13860
13861# Whether or not to disallow shared libs when runtime libs are static
13862allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13863
13864# Whether or not to optimize for fast installation.
13865fast_install=$enable_fast_install
13866
13867# The host system.
13868host_alias=$host_alias
13869host=$host
13870host_os=$host_os
13871
13872# The build system.
13873build_alias=$build_alias
13874build=$build
13875build_os=$build_os
13876
13877# An echo program that does not interpret backslashes.
13878echo=$lt_echo
13879
13880# The archiver.
13881AR=$lt_AR
13882AR_FLAGS=$lt_AR_FLAGS
13883
13884# A C compiler.
13885LTCC=$lt_LTCC
13886
13887# LTCC compiler flags.
13888LTCFLAGS=$lt_LTCFLAGS
13889
13890# A language-specific compiler.
13891CC=$lt_compiler_CXX
13892
13893# Is the compiler the GNU C compiler?
13894with_gcc=$GCC_CXX
13895
13896# An ERE matcher.
13897EGREP=$lt_EGREP
13898
13899# The linker used to build libraries.
13900LD=$lt_LD_CXX
13901
13902# Whether we need hard or soft links.
13903LN_S=$lt_LN_S
13904
13905# A BSD-compatible nm program.
13906NM=$lt_NM
13907
13908# A symbol stripping program
13909STRIP=$lt_STRIP
13910
13911# Used to examine libraries when file_magic_cmd begins "file"
13912MAGIC_CMD=$MAGIC_CMD
13913
13914# Used on cygwin: DLL creation program.
13915DLLTOOL="$DLLTOOL"
13916
13917# Used on cygwin: object dumper.
13918OBJDUMP="$OBJDUMP"
13919
13920# Used on cygwin: assembler.
13921AS="$AS"
13922
13923# The name of the directory that contains temporary libtool files.
13924objdir=$objdir
13925
13926# How to create reloadable object files.
13927reload_flag=$lt_reload_flag
13928reload_cmds=$lt_reload_cmds
13929
13930# How to pass a linker flag through the compiler.
13931wl=$lt_lt_prog_compiler_wl_CXX
13932
13933# Object file suffix (normally "o").
13934objext="$ac_objext"
13935
13936# Old archive suffix (normally "a").
13937libext="$libext"
13938
13939# Shared library suffix (normally ".so").
13940shrext_cmds='$shrext_cmds'
13941
13942# Executable file suffix (normally "").
13943exeext="$exeext"
13944
13945# Additional compiler flags for building library objects.
13946pic_flag=$lt_lt_prog_compiler_pic_CXX
13947pic_mode=$pic_mode
13948
13949# What is the maximum length of a command?
13950max_cmd_len=$lt_cv_sys_max_cmd_len
13951
13952# Does compiler simultaneously support -c and -o options?
13953compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13954
13955# Must we lock files when doing compilation?
13956need_locks=$lt_need_locks
13957
13958# Do we need the lib prefix for modules?
13959need_lib_prefix=$need_lib_prefix
13960
13961# Do we need a version for libraries?
13962need_version=$need_version
13963
13964# Whether dlopen is supported.
13965dlopen_support=$enable_dlopen
13966
13967# Whether dlopen of programs is supported.
13968dlopen_self=$enable_dlopen_self
13969
13970# Whether dlopen of statically linked programs is supported.
13971dlopen_self_static=$enable_dlopen_self_static
13972
13973# Compiler flag to prevent dynamic linking.
13974link_static_flag=$lt_lt_prog_compiler_static_CXX
13975
13976# Compiler flag to turn off builtin functions.
13977no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13978
13979# Compiler flag to allow reflexive dlopens.
13980export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13981
13982# Compiler flag to generate shared objects directly from archives.
13983whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13984
13985# Compiler flag to generate thread-safe objects.
13986thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13987
13988# Library versioning type.
13989version_type=$version_type
13990
13991# Format of library name prefix.
13992libname_spec=$lt_libname_spec
13993
13994# List of archive names.  First name is the real one, the rest are links.
13995# The last name is the one that the linker finds with -lNAME.
13996library_names_spec=$lt_library_names_spec
13997
13998# The coded name of the library, if different from the real name.
13999soname_spec=$lt_soname_spec
14000
14001# Commands used to build and install an old-style archive.
14002RANLIB=$lt_RANLIB
14003old_archive_cmds=$lt_old_archive_cmds_CXX
14004old_postinstall_cmds=$lt_old_postinstall_cmds
14005old_postuninstall_cmds=$lt_old_postuninstall_cmds
14006
14007# Create an old-style archive from a shared archive.
14008old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14009
14010# Create a temporary old-style archive to link instead of a shared archive.
14011old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14012
14013# Commands used to build and install a shared archive.
14014archive_cmds=$lt_archive_cmds_CXX
14015archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14016postinstall_cmds=$lt_postinstall_cmds
14017postuninstall_cmds=$lt_postuninstall_cmds
14018
14019# Commands used to build a loadable module (assumed same as above if empty)
14020module_cmds=$lt_module_cmds_CXX
14021module_expsym_cmds=$lt_module_expsym_cmds_CXX
14022
14023# Commands to strip libraries.
14024old_striplib=$lt_old_striplib
14025striplib=$lt_striplib
14026
14027# Dependencies to place before the objects being linked to create a
14028# shared library.
14029predep_objects=$lt_predep_objects_CXX
14030
14031# Dependencies to place after the objects being linked to create a
14032# shared library.
14033postdep_objects=$lt_postdep_objects_CXX
14034
14035# Dependencies to place before the objects being linked to create a
14036# shared library.
14037predeps=$lt_predeps_CXX
14038
14039# Dependencies to place after the objects being linked to create a
14040# shared library.
14041postdeps=$lt_postdeps_CXX
14042
14043# The directories searched by this compiler when creating a shared
14044# library
14045compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14046
14047# The library search path used internally by the compiler when linking
14048# a shared library.
14049compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14050
14051# Method to check whether dependent libraries are shared objects.
14052deplibs_check_method=$lt_deplibs_check_method
14053
14054# Command to use when deplibs_check_method == file_magic.
14055file_magic_cmd=$lt_file_magic_cmd
14056
14057# Flag that allows shared libraries with undefined symbols to be built.
14058allow_undefined_flag=$lt_allow_undefined_flag_CXX
14059
14060# Flag that forces no undefined symbols.
14061no_undefined_flag=$lt_no_undefined_flag_CXX
14062
14063# Commands used to finish a libtool library installation in a directory.
14064finish_cmds=$lt_finish_cmds
14065
14066# Same as above, but a single script fragment to be evaled but not shown.
14067finish_eval=$lt_finish_eval
14068
14069# Take the output of nm and produce a listing of raw symbols and C names.
14070global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14071
14072# Transform the output of nm in a proper C declaration
14073global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14074
14075# Transform the output of nm in a C name address pair
14076global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14077
14078# This is the shared library runtime path variable.
14079runpath_var=$runpath_var
14080
14081# This is the shared library path variable.
14082shlibpath_var=$shlibpath_var
14083
14084# Is shlibpath searched before the hard-coded library search path?
14085shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14086
14087# How to hardcode a shared library path into an executable.
14088hardcode_action=$hardcode_action_CXX
14089
14090# Whether we should hardcode library paths into libraries.
14091hardcode_into_libs=$hardcode_into_libs
14092
14093# Flag to hardcode \$libdir into a binary during linking.
14094# This must work even if \$libdir does not exist.
14095hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14096
14097# If ld is used when linking, flag to hardcode \$libdir into
14098# a binary during linking. This must work even if \$libdir does
14099# not exist.
14100hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14101
14102# Whether we need a single -rpath flag with a separated argument.
14103hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14104
14105# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14106# resulting binary.
14107hardcode_direct=$hardcode_direct_CXX
14108
14109# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14110# resulting binary.
14111hardcode_minus_L=$hardcode_minus_L_CXX
14112
14113# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14114# the resulting binary.
14115hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14116
14117# Set to yes if building a shared library automatically hardcodes DIR into the library
14118# and all subsequent libraries and executables linked against it.
14119hardcode_automatic=$hardcode_automatic_CXX
14120
14121# Variables whose values should be saved in libtool wrapper scripts and
14122# restored at relink time.
14123variables_saved_for_relink="$variables_saved_for_relink"
14124
14125# Whether libtool must link a program against all its dependency libraries.
14126link_all_deplibs=$link_all_deplibs_CXX
14127
14128# Compile-time system search path for libraries
14129sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14130
14131# Run-time system search path for libraries
14132sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14133
14134# Fix the shell variable \$srcfile for the compiler.
14135fix_srcfile_path=$lt_fix_srcfile_path
14136
14137# Set to yes if exported symbols are required.
14138always_export_symbols=$always_export_symbols_CXX
14139
14140# The commands to list exported symbols.
14141export_symbols_cmds=$lt_export_symbols_cmds_CXX
14142
14143# The commands to extract the exported symbol list from a shared archive.
14144extract_expsyms_cmds=$lt_extract_expsyms_cmds
14145
14146# Symbols that should not be listed in the preloaded symbols.
14147exclude_expsyms=$lt_exclude_expsyms_CXX
14148
14149# Symbols that must always be exported.
14150include_expsyms=$lt_include_expsyms_CXX
14151
14152# ### END LIBTOOL TAG CONFIG: $tagname
14153
14154__EOF__
14155
14156
14157else
14158  # If there is no Makefile yet, we rely on a make rule to execute
14159  # `config.status --recheck' to rerun these tests and create the
14160  # libtool script then.
14161  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14162  if test -f "$ltmain_in"; then
14163    test -f Makefile && make "$ltmain"
14164  fi
14165fi
14166
14167
14168ac_ext=c
14169ac_cpp='$CPP $CPPFLAGS'
14170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14172ac_compiler_gnu=$ac_cv_c_compiler_gnu
14173
14174CC=$lt_save_CC
14175LDCXX=$LD
14176LD=$lt_save_LD
14177GCC=$lt_save_GCC
14178with_gnu_ldcxx=$with_gnu_ld
14179with_gnu_ld=$lt_save_with_gnu_ld
14180lt_cv_path_LDCXX=$lt_cv_path_LD
14181lt_cv_path_LD=$lt_save_path_LD
14182lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14183lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14184
14185	else
14186	  tagname=""
14187	fi
14188	;;
14189
14190      F77)
14191	if test -n "$F77" && test "X$F77" != "Xno"; then
14192
14193ac_ext=f
14194ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14195ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14196ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14197
14198
14199archive_cmds_need_lc_F77=no
14200allow_undefined_flag_F77=
14201always_export_symbols_F77=no
14202archive_expsym_cmds_F77=
14203export_dynamic_flag_spec_F77=
14204hardcode_direct_F77=no
14205hardcode_libdir_flag_spec_F77=
14206hardcode_libdir_flag_spec_ld_F77=
14207hardcode_libdir_separator_F77=
14208hardcode_minus_L_F77=no
14209hardcode_automatic_F77=no
14210module_cmds_F77=
14211module_expsym_cmds_F77=
14212link_all_deplibs_F77=unknown
14213old_archive_cmds_F77=$old_archive_cmds
14214no_undefined_flag_F77=
14215whole_archive_flag_spec_F77=
14216enable_shared_with_static_runtimes_F77=no
14217
14218# Source file extension for f77 test sources.
14219ac_ext=f
14220
14221# Object file extension for compiled f77 test sources.
14222objext=o
14223objext_F77=$objext
14224
14225# Code to be used in simple compile tests
14226lt_simple_compile_test_code="\
14227      subroutine t
14228      return
14229      end
14230"
14231
14232# Code to be used in simple link tests
14233lt_simple_link_test_code="\
14234      program t
14235      end
14236"
14237
14238# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14239
14240# If no C compiler was specified, use CC.
14241LTCC=${LTCC-"$CC"}
14242
14243# If no C compiler flags were specified, use CFLAGS.
14244LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14245
14246# Allow CC to be a program name with arguments.
14247compiler=$CC
14248
14249
14250# save warnings/boilerplate of simple test code
14251ac_outfile=conftest.$ac_objext
14252echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14253eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14254_lt_compiler_boilerplate=`cat conftest.err`
14255$rm conftest*
14256
14257ac_outfile=conftest.$ac_objext
14258echo "$lt_simple_link_test_code" >conftest.$ac_ext
14259eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14260_lt_linker_boilerplate=`cat conftest.err`
14261$rm -r conftest*
14262
14263
14264# Allow CC to be a program name with arguments.
14265lt_save_CC="$CC"
14266CC=${F77-"f77"}
14267compiler=$CC
14268compiler_F77=$CC
14269for cc_temp in $compiler""; do
14270  case $cc_temp in
14271    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14272    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14273    \-*) ;;
14274    *) break;;
14275  esac
14276done
14277cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14278
14279
14280{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14281$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14282{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14283$as_echo "$can_build_shared" >&6; }
14284
14285{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14286$as_echo_n "checking whether to build shared libraries... " >&6; }
14287test "$can_build_shared" = "no" && enable_shared=no
14288
14289# On AIX, shared libraries and static libraries use the same namespace, and
14290# are all built from PIC.
14291case $host_os in
14292aix3*)
14293  test "$enable_shared" = yes && enable_static=no
14294  if test -n "$RANLIB"; then
14295    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14296    postinstall_cmds='$RANLIB $lib'
14297  fi
14298  ;;
14299aix[4-9]*)
14300  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14301    test "$enable_shared" = yes && enable_static=no
14302  fi
14303  ;;
14304esac
14305{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14306$as_echo "$enable_shared" >&6; }
14307
14308{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14309$as_echo_n "checking whether to build static libraries... " >&6; }
14310# Make sure either enable_shared or enable_static is yes.
14311test "$enable_shared" = yes || enable_static=yes
14312{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14313$as_echo "$enable_static" >&6; }
14314
14315GCC_F77="$G77"
14316LD_F77="$LD"
14317
14318lt_prog_compiler_wl_F77=
14319lt_prog_compiler_pic_F77=
14320lt_prog_compiler_static_F77=
14321
14322{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14323$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14324
14325  if test "$GCC" = yes; then
14326    lt_prog_compiler_wl_F77='-Wl,'
14327    lt_prog_compiler_static_F77='-static'
14328
14329    case $host_os in
14330      aix*)
14331      # All AIX code is PIC.
14332      if test "$host_cpu" = ia64; then
14333	# AIX 5 now supports IA64 processor
14334	lt_prog_compiler_static_F77='-Bstatic'
14335      fi
14336      ;;
14337
14338    amigaos*)
14339      # FIXME: we need at least 68020 code to build shared libraries, but
14340      # adding the `-m68020' flag to GCC prevents building anything better,
14341      # like `-m68040'.
14342      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14343      ;;
14344
14345    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14346      # PIC is the default for these OSes.
14347      ;;
14348
14349    mingw* | cygwin* | pw32* | os2*)
14350      # This hack is so that the source file can tell whether it is being
14351      # built for inclusion in a dll (and should export symbols for example).
14352      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14353      # (--disable-auto-import) libraries
14354      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14355      ;;
14356
14357    darwin* | rhapsody*)
14358      # PIC is the default on this platform
14359      # Common symbols not allowed in MH_DYLIB files
14360      lt_prog_compiler_pic_F77='-fno-common'
14361      ;;
14362
14363    interix[3-9]*)
14364      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14365      # Instead, we relocate shared libraries at runtime.
14366      ;;
14367
14368    msdosdjgpp*)
14369      # Just because we use GCC doesn't mean we suddenly get shared libraries
14370      # on systems that don't support them.
14371      lt_prog_compiler_can_build_shared_F77=no
14372      enable_shared=no
14373      ;;
14374
14375    sysv4*MP*)
14376      if test -d /usr/nec; then
14377	lt_prog_compiler_pic_F77=-Kconform_pic
14378      fi
14379      ;;
14380
14381    hpux*)
14382      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14383      # not for PA HP-UX.
14384      case $host_cpu in
14385      hppa*64*|ia64*)
14386	# +Z the default
14387	;;
14388      *)
14389	lt_prog_compiler_pic_F77='-fPIC'
14390	;;
14391      esac
14392      ;;
14393
14394    *)
14395      lt_prog_compiler_pic_F77='-fPIC'
14396      ;;
14397    esac
14398  else
14399    # PORTME Check for flag to pass linker flags through the system compiler.
14400    case $host_os in
14401    aix*)
14402      lt_prog_compiler_wl_F77='-Wl,'
14403      if test "$host_cpu" = ia64; then
14404	# AIX 5 now supports IA64 processor
14405	lt_prog_compiler_static_F77='-Bstatic'
14406      else
14407	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14408      fi
14409      ;;
14410      darwin*)
14411        # PIC is the default on this platform
14412        # Common symbols not allowed in MH_DYLIB files
14413       case $cc_basename in
14414         xlc*)
14415         lt_prog_compiler_pic_F77='-qnocommon'
14416         lt_prog_compiler_wl_F77='-Wl,'
14417         ;;
14418       esac
14419       ;;
14420
14421    mingw* | cygwin* | pw32* | os2*)
14422      # This hack is so that the source file can tell whether it is being
14423      # built for inclusion in a dll (and should export symbols for example).
14424      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14425      ;;
14426
14427    hpux9* | hpux10* | hpux11*)
14428      lt_prog_compiler_wl_F77='-Wl,'
14429      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14430      # not for PA HP-UX.
14431      case $host_cpu in
14432      hppa*64*|ia64*)
14433	# +Z the default
14434	;;
14435      *)
14436	lt_prog_compiler_pic_F77='+Z'
14437	;;
14438      esac
14439      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14440      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14441      ;;
14442
14443    irix5* | irix6* | nonstopux*)
14444      lt_prog_compiler_wl_F77='-Wl,'
14445      # PIC (with -KPIC) is the default.
14446      lt_prog_compiler_static_F77='-non_shared'
14447      ;;
14448
14449    newsos6)
14450      lt_prog_compiler_pic_F77='-KPIC'
14451      lt_prog_compiler_static_F77='-Bstatic'
14452      ;;
14453
14454    linux* | k*bsd*-gnu)
14455      case $cc_basename in
14456      icc* | ecc*)
14457	lt_prog_compiler_wl_F77='-Wl,'
14458	lt_prog_compiler_pic_F77='-KPIC'
14459	lt_prog_compiler_static_F77='-static'
14460        ;;
14461      pgcc* | pgf77* | pgf90* | pgf95*)
14462        # Portland Group compilers (*not* the Pentium gcc compiler,
14463	# which looks to be a dead project)
14464	lt_prog_compiler_wl_F77='-Wl,'
14465	lt_prog_compiler_pic_F77='-fpic'
14466	lt_prog_compiler_static_F77='-Bstatic'
14467        ;;
14468      ccc*)
14469        lt_prog_compiler_wl_F77='-Wl,'
14470        # All Alpha code is PIC.
14471        lt_prog_compiler_static_F77='-non_shared'
14472        ;;
14473      *)
14474        case `$CC -V 2>&1 | sed 5q` in
14475	*Sun\ C*)
14476	  # Sun C 5.9
14477	  lt_prog_compiler_pic_F77='-KPIC'
14478	  lt_prog_compiler_static_F77='-Bstatic'
14479	  lt_prog_compiler_wl_F77='-Wl,'
14480	  ;;
14481	*Sun\ F*)
14482	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14483	  lt_prog_compiler_pic_F77='-KPIC'
14484	  lt_prog_compiler_static_F77='-Bstatic'
14485	  lt_prog_compiler_wl_F77=''
14486	  ;;
14487	esac
14488	;;
14489      esac
14490      ;;
14491
14492    osf3* | osf4* | osf5*)
14493      lt_prog_compiler_wl_F77='-Wl,'
14494      # All OSF/1 code is PIC.
14495      lt_prog_compiler_static_F77='-non_shared'
14496      ;;
14497
14498    rdos*)
14499      lt_prog_compiler_static_F77='-non_shared'
14500      ;;
14501
14502    solaris*)
14503      lt_prog_compiler_pic_F77='-KPIC'
14504      lt_prog_compiler_static_F77='-Bstatic'
14505      case $cc_basename in
14506      f77* | f90* | f95*)
14507	lt_prog_compiler_wl_F77='-Qoption ld ';;
14508      *)
14509	lt_prog_compiler_wl_F77='-Wl,';;
14510      esac
14511      ;;
14512
14513    sunos4*)
14514      lt_prog_compiler_wl_F77='-Qoption ld '
14515      lt_prog_compiler_pic_F77='-PIC'
14516      lt_prog_compiler_static_F77='-Bstatic'
14517      ;;
14518
14519    sysv4 | sysv4.2uw2* | sysv4.3*)
14520      lt_prog_compiler_wl_F77='-Wl,'
14521      lt_prog_compiler_pic_F77='-KPIC'
14522      lt_prog_compiler_static_F77='-Bstatic'
14523      ;;
14524
14525    sysv4*MP*)
14526      if test -d /usr/nec ;then
14527	lt_prog_compiler_pic_F77='-Kconform_pic'
14528	lt_prog_compiler_static_F77='-Bstatic'
14529      fi
14530      ;;
14531
14532    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14533      lt_prog_compiler_wl_F77='-Wl,'
14534      lt_prog_compiler_pic_F77='-KPIC'
14535      lt_prog_compiler_static_F77='-Bstatic'
14536      ;;
14537
14538    unicos*)
14539      lt_prog_compiler_wl_F77='-Wl,'
14540      lt_prog_compiler_can_build_shared_F77=no
14541      ;;
14542
14543    uts4*)
14544      lt_prog_compiler_pic_F77='-pic'
14545      lt_prog_compiler_static_F77='-Bstatic'
14546      ;;
14547
14548    *)
14549      lt_prog_compiler_can_build_shared_F77=no
14550      ;;
14551    esac
14552  fi
14553
14554{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14555$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14556
14557#
14558# Check to make sure the PIC flag actually works.
14559#
14560if test -n "$lt_prog_compiler_pic_F77"; then
14561
14562{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14563$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14564if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14565  $as_echo_n "(cached) " >&6
14566else
14567  lt_cv_prog_compiler_pic_works_F77=no
14568  ac_outfile=conftest.$ac_objext
14569   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14570   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14571   # Insert the option either (1) after the last *FLAGS variable, or
14572   # (2) before a word containing "conftest.", or (3) at the end.
14573   # Note that $ac_compile itself does not contain backslashes and begins
14574   # with a dollar sign (not a hyphen), so the echo should work correctly.
14575   # The option is referenced via a variable to avoid confusing sed.
14576   lt_compile=`echo "$ac_compile" | $SED \
14577   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14578   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14579   -e 's:$: $lt_compiler_flag:'`
14580   (eval echo "\"\$as_me:14580: $lt_compile\"" >&5)
14581   (eval "$lt_compile" 2>conftest.err)
14582   ac_status=$?
14583   cat conftest.err >&5
14584   echo "$as_me:14584: \$? = $ac_status" >&5
14585   if (exit $ac_status) && test -s "$ac_outfile"; then
14586     # The compiler can only warn and ignore the option if not recognized
14587     # So say no if there are warnings other than the usual output.
14588     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14589     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14590     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14591       lt_cv_prog_compiler_pic_works_F77=yes
14592     fi
14593   fi
14594   $rm conftest*
14595
14596fi
14597{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14598$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14599
14600if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14601    case $lt_prog_compiler_pic_F77 in
14602     "" | " "*) ;;
14603     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14604     esac
14605else
14606    lt_prog_compiler_pic_F77=
14607     lt_prog_compiler_can_build_shared_F77=no
14608fi
14609
14610fi
14611case $host_os in
14612  # For platforms which do not support PIC, -DPIC is meaningless:
14613  *djgpp*)
14614    lt_prog_compiler_pic_F77=
14615    ;;
14616  *)
14617    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14618    ;;
14619esac
14620
14621#
14622# Check to make sure the static flag actually works.
14623#
14624wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14625{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14626$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14627if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14628  $as_echo_n "(cached) " >&6
14629else
14630  lt_cv_prog_compiler_static_works_F77=no
14631   save_LDFLAGS="$LDFLAGS"
14632   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14633   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14634   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14635     # The linker can only warn and ignore the option if not recognized
14636     # So say no if there are warnings
14637     if test -s conftest.err; then
14638       # Append any errors to the config.log.
14639       cat conftest.err 1>&5
14640       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14641       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14642       if diff conftest.exp conftest.er2 >/dev/null; then
14643         lt_cv_prog_compiler_static_works_F77=yes
14644       fi
14645     else
14646       lt_cv_prog_compiler_static_works_F77=yes
14647     fi
14648   fi
14649   $rm -r conftest*
14650   LDFLAGS="$save_LDFLAGS"
14651
14652fi
14653{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14654$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14655
14656if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14657    :
14658else
14659    lt_prog_compiler_static_F77=
14660fi
14661
14662
14663{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14664$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14665if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14666  $as_echo_n "(cached) " >&6
14667else
14668  lt_cv_prog_compiler_c_o_F77=no
14669   $rm -r conftest 2>/dev/null
14670   mkdir conftest
14671   cd conftest
14672   mkdir out
14673   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14674
14675   lt_compiler_flag="-o out/conftest2.$ac_objext"
14676   # Insert the option either (1) after the last *FLAGS variable, or
14677   # (2) before a word containing "conftest.", or (3) at the end.
14678   # Note that $ac_compile itself does not contain backslashes and begins
14679   # with a dollar sign (not a hyphen), so the echo should work correctly.
14680   lt_compile=`echo "$ac_compile" | $SED \
14681   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14682   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14683   -e 's:$: $lt_compiler_flag:'`
14684   (eval echo "\"\$as_me:14684: $lt_compile\"" >&5)
14685   (eval "$lt_compile" 2>out/conftest.err)
14686   ac_status=$?
14687   cat out/conftest.err >&5
14688   echo "$as_me:14688: \$? = $ac_status" >&5
14689   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14690   then
14691     # The compiler can only warn and ignore the option if not recognized
14692     # So say no if there are warnings
14693     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14694     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14695     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14696       lt_cv_prog_compiler_c_o_F77=yes
14697     fi
14698   fi
14699   chmod u+w . 2>&5
14700   $rm conftest*
14701   # SGI C++ compiler will create directory out/ii_files/ for
14702   # template instantiation
14703   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14704   $rm out/* && rmdir out
14705   cd ..
14706   rmdir conftest
14707   $rm conftest*
14708
14709fi
14710{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14711$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14712
14713
14714hard_links="nottested"
14715if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14716  # do not overwrite the value of need_locks provided by the user
14717  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14718$as_echo_n "checking if we can lock with hard links... " >&6; }
14719  hard_links=yes
14720  $rm conftest*
14721  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14722  touch conftest.a
14723  ln conftest.a conftest.b 2>&5 || hard_links=no
14724  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14725  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14726$as_echo "$hard_links" >&6; }
14727  if test "$hard_links" = no; then
14728    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14729$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14730    need_locks=warn
14731  fi
14732else
14733  need_locks=no
14734fi
14735
14736{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14737$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14738
14739  runpath_var=
14740  allow_undefined_flag_F77=
14741  enable_shared_with_static_runtimes_F77=no
14742  archive_cmds_F77=
14743  archive_expsym_cmds_F77=
14744  old_archive_From_new_cmds_F77=
14745  old_archive_from_expsyms_cmds_F77=
14746  export_dynamic_flag_spec_F77=
14747  whole_archive_flag_spec_F77=
14748  thread_safe_flag_spec_F77=
14749  hardcode_libdir_flag_spec_F77=
14750  hardcode_libdir_flag_spec_ld_F77=
14751  hardcode_libdir_separator_F77=
14752  hardcode_direct_F77=no
14753  hardcode_minus_L_F77=no
14754  hardcode_shlibpath_var_F77=unsupported
14755  link_all_deplibs_F77=unknown
14756  hardcode_automatic_F77=no
14757  module_cmds_F77=
14758  module_expsym_cmds_F77=
14759  always_export_symbols_F77=no
14760  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14761  # include_expsyms should be a list of space-separated symbols to be *always*
14762  # included in the symbol list
14763  include_expsyms_F77=
14764  # exclude_expsyms can be an extended regexp of symbols to exclude
14765  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14766  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14767  # as well as any symbol that contains `d'.
14768  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14769  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14770  # platforms (ab)use it in PIC code, but their linkers get confused if
14771  # the symbol is explicitly referenced.  Since portable code cannot
14772  # rely on this symbol name, it's probably fine to never include it in
14773  # preloaded symbol tables.
14774  # Exclude shared library initialization/finalization symbols.
14775  extract_expsyms_cmds=
14776  # Just being paranoid about ensuring that cc_basename is set.
14777  for cc_temp in $compiler""; do
14778  case $cc_temp in
14779    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14780    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14781    \-*) ;;
14782    *) break;;
14783  esac
14784done
14785cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14786
14787  case $host_os in
14788  cygwin* | mingw* | pw32*)
14789    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14790    # When not using gcc, we currently assume that we are using
14791    # Microsoft Visual C++.
14792    if test "$GCC" != yes; then
14793      with_gnu_ld=no
14794    fi
14795    ;;
14796  interix*)
14797    # we just hope/assume this is gcc and not c89 (= MSVC++)
14798    with_gnu_ld=yes
14799    ;;
14800  openbsd*)
14801    with_gnu_ld=no
14802    ;;
14803  esac
14804
14805  ld_shlibs_F77=yes
14806  if test "$with_gnu_ld" = yes; then
14807    # If archive_cmds runs LD, not CC, wlarc should be empty
14808    wlarc='${wl}'
14809
14810    # Set some defaults for GNU ld with shared library support. These
14811    # are reset later if shared libraries are not supported. Putting them
14812    # here allows them to be overridden if necessary.
14813    runpath_var=LD_RUN_PATH
14814    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14815    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14816    # ancient GNU ld didn't support --whole-archive et. al.
14817    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14818	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14819      else
14820  	whole_archive_flag_spec_F77=
14821    fi
14822    supports_anon_versioning=no
14823    case `$LD -v 2>/dev/null` in
14824      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14825      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14826      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14827      *\ 2.11.*) ;; # other 2.11 versions
14828      *) supports_anon_versioning=yes ;;
14829    esac
14830
14831    # See if GNU ld supports shared libraries.
14832    case $host_os in
14833    aix[3-9]*)
14834      # On AIX/PPC, the GNU linker is very broken
14835      if test "$host_cpu" != ia64; then
14836	ld_shlibs_F77=no
14837	cat <<EOF 1>&2
14838
14839*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14840*** to be unable to reliably create shared libraries on AIX.
14841*** Therefore, libtool is disabling shared libraries support.  If you
14842*** really care for shared libraries, you may want to modify your PATH
14843*** so that a non-GNU linker is found, and then restart.
14844
14845EOF
14846      fi
14847      ;;
14848
14849    amigaos*)
14850      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)'
14851      hardcode_libdir_flag_spec_F77='-L$libdir'
14852      hardcode_minus_L_F77=yes
14853
14854      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14855      # that the semantics of dynamic libraries on AmigaOS, at least up
14856      # to version 4, is to share data among multiple programs linked
14857      # with the same dynamic library.  Since this doesn't match the
14858      # behavior of shared libraries on other platforms, we can't use
14859      # them.
14860      ld_shlibs_F77=no
14861      ;;
14862
14863    beos*)
14864      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14865	allow_undefined_flag_F77=unsupported
14866	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14867	# support --undefined.  This deserves some investigation.  FIXME
14868	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14869      else
14870	ld_shlibs_F77=no
14871      fi
14872      ;;
14873
14874    cygwin* | mingw* | pw32*)
14875      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14876      # as there is no search path for DLLs.
14877      hardcode_libdir_flag_spec_F77='-L$libdir'
14878      allow_undefined_flag_F77=unsupported
14879      always_export_symbols_F77=no
14880      enable_shared_with_static_runtimes_F77=yes
14881      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14882
14883      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14884        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14885	# If the export-symbols file already is a .def file (1st line
14886	# is EXPORTS), use it as is; otherwise, prepend...
14887	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14888	  cp $export_symbols $output_objdir/$soname.def;
14889	else
14890	  echo EXPORTS > $output_objdir/$soname.def;
14891	  cat $export_symbols >> $output_objdir/$soname.def;
14892	fi~
14893	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14894      else
14895	ld_shlibs_F77=no
14896      fi
14897      ;;
14898
14899    interix[3-9]*)
14900      hardcode_direct_F77=no
14901      hardcode_shlibpath_var_F77=no
14902      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14903      export_dynamic_flag_spec_F77='${wl}-E'
14904      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14905      # Instead, shared libraries are loaded at an image base (0x10000000 by
14906      # default) and relocated if they conflict, which is a slow very memory
14907      # consuming and fragmenting process.  To avoid this, we pick a random,
14908      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14909      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14910      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'
14911      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'
14912      ;;
14913
14914    gnu* | linux* | k*bsd*-gnu)
14915      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14916	tmp_addflag=
14917	case $cc_basename,$host_cpu in
14918	pgcc*)				# Portland Group C compiler
14919	  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'
14920	  tmp_addflag=' $pic_flag'
14921	  ;;
14922	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14923	  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'
14924	  tmp_addflag=' $pic_flag -Mnomain' ;;
14925	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14926	  tmp_addflag=' -i_dynamic' ;;
14927	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14928	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14929	ifc* | ifort*)			# Intel Fortran compiler
14930	  tmp_addflag=' -nofor_main' ;;
14931	esac
14932	case `$CC -V 2>&1 | sed 5q` in
14933	*Sun\ C*)			# Sun C 5.9
14934	  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'
14935	  tmp_sharedflag='-G' ;;
14936	*Sun\ F*)			# Sun Fortran 8.3
14937	  tmp_sharedflag='-G' ;;
14938	*)
14939	  tmp_sharedflag='-shared' ;;
14940	esac
14941	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14942
14943	if test $supports_anon_versioning = yes; then
14944	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14945  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14946  $echo "local: *; };" >> $output_objdir/$libname.ver~
14947	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14948	fi
14949      else
14950	ld_shlibs_F77=no
14951      fi
14952      ;;
14953
14954    netbsd*)
14955      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14956	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14957	wlarc=
14958      else
14959	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14960	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14961      fi
14962      ;;
14963
14964    solaris*)
14965      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14966	ld_shlibs_F77=no
14967	cat <<EOF 1>&2
14968
14969*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14970*** create shared libraries on Solaris systems.  Therefore, libtool
14971*** is disabling shared libraries support.  We urge you to upgrade GNU
14972*** binutils to release 2.9.1 or newer.  Another option is to modify
14973*** your PATH or compiler configuration so that the native linker is
14974*** used, and then restart.
14975
14976EOF
14977      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14978	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14979	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14980      else
14981	ld_shlibs_F77=no
14982      fi
14983      ;;
14984
14985    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14986      case `$LD -v 2>&1` in
14987        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14988	ld_shlibs_F77=no
14989	cat <<_LT_EOF 1>&2
14990
14991*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14992*** reliably create shared libraries on SCO systems.  Therefore, libtool
14993*** is disabling shared libraries support.  We urge you to upgrade GNU
14994*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14995*** your PATH or compiler configuration so that the native linker is
14996*** used, and then restart.
14997
14998_LT_EOF
14999	;;
15000	*)
15001	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15002	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15003	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15004	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15005	  else
15006	    ld_shlibs_F77=no
15007	  fi
15008	;;
15009      esac
15010      ;;
15011
15012    sunos4*)
15013      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15014      wlarc=
15015      hardcode_direct_F77=yes
15016      hardcode_shlibpath_var_F77=no
15017      ;;
15018
15019    *)
15020      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15021	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15022	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15023      else
15024	ld_shlibs_F77=no
15025      fi
15026      ;;
15027    esac
15028
15029    if test "$ld_shlibs_F77" = no; then
15030      runpath_var=
15031      hardcode_libdir_flag_spec_F77=
15032      export_dynamic_flag_spec_F77=
15033      whole_archive_flag_spec_F77=
15034    fi
15035  else
15036    # PORTME fill in a description of your system's linker (not GNU ld)
15037    case $host_os in
15038    aix3*)
15039      allow_undefined_flag_F77=unsupported
15040      always_export_symbols_F77=yes
15041      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'
15042      # Note: this linker hardcodes the directories in LIBPATH if there
15043      # are no directories specified by -L.
15044      hardcode_minus_L_F77=yes
15045      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15046	# Neither direct hardcoding nor static linking is supported with a
15047	# broken collect2.
15048	hardcode_direct_F77=unsupported
15049      fi
15050      ;;
15051
15052    aix[4-9]*)
15053      if test "$host_cpu" = ia64; then
15054	# On IA64, the linker does run time linking by default, so we don't
15055	# have to do anything special.
15056	aix_use_runtimelinking=no
15057	exp_sym_flag='-Bexport'
15058	no_entry_flag=""
15059      else
15060	# If we're using GNU nm, then we don't want the "-C" option.
15061	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15062	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15063	  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'
15064	else
15065	  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'
15066	fi
15067	aix_use_runtimelinking=no
15068
15069	# Test if we are trying to use run time linking or normal
15070	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15071	# need to do runtime linking.
15072	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15073	  for ld_flag in $LDFLAGS; do
15074  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15075  	    aix_use_runtimelinking=yes
15076  	    break
15077  	  fi
15078	  done
15079	  ;;
15080	esac
15081
15082	exp_sym_flag='-bexport'
15083	no_entry_flag='-bnoentry'
15084      fi
15085
15086      # When large executables or shared objects are built, AIX ld can
15087      # have problems creating the table of contents.  If linking a library
15088      # or program results in "error TOC overflow" add -mminimal-toc to
15089      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15090      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15091
15092      archive_cmds_F77=''
15093      hardcode_direct_F77=yes
15094      hardcode_libdir_separator_F77=':'
15095      link_all_deplibs_F77=yes
15096
15097      if test "$GCC" = yes; then
15098	case $host_os in aix4.[012]|aix4.[012].*)
15099	# We only want to do this on AIX 4.2 and lower, the check
15100	# below for broken collect2 doesn't work under 4.3+
15101	  collect2name=`${CC} -print-prog-name=collect2`
15102	  if test -f "$collect2name" && \
15103  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15104	  then
15105  	  # We have reworked collect2
15106  	  :
15107	  else
15108  	  # We have old collect2
15109  	  hardcode_direct_F77=unsupported
15110  	  # It fails to find uninstalled libraries when the uninstalled
15111  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15112  	  # to unsupported forces relinking
15113  	  hardcode_minus_L_F77=yes
15114  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15115  	  hardcode_libdir_separator_F77=
15116	  fi
15117	  ;;
15118	esac
15119	shared_flag='-shared'
15120	if test "$aix_use_runtimelinking" = yes; then
15121	  shared_flag="$shared_flag "'${wl}-G'
15122	fi
15123      else
15124	# not using gcc
15125	if test "$host_cpu" = ia64; then
15126  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15127  	# chokes on -Wl,-G. The following line is correct:
15128	  shared_flag='-G'
15129	else
15130	  if test "$aix_use_runtimelinking" = yes; then
15131	    shared_flag='${wl}-G'
15132	  else
15133	    shared_flag='${wl}-bM:SRE'
15134	  fi
15135	fi
15136      fi
15137
15138      # It seems that -bexpall does not export symbols beginning with
15139      # underscore (_), so it is better to generate a list of symbols to export.
15140      always_export_symbols_F77=yes
15141      if test "$aix_use_runtimelinking" = yes; then
15142	# Warning - without using the other runtime loading flags (-brtl),
15143	# -berok will link without error, but may produce a broken library.
15144	allow_undefined_flag_F77='-berok'
15145       # Determine the default libpath from the value encoded in an empty executable.
15146       cat >conftest.$ac_ext <<_ACEOF
15147      program main
15148
15149      end
15150_ACEOF
15151rm -f conftest.$ac_objext conftest$ac_exeext
15152if { (ac_try="$ac_link"
15153case "(($ac_try" in
15154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155  *) ac_try_echo=$ac_try;;
15156esac
15157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15158$as_echo "$ac_try_echo") >&5
15159  (eval "$ac_link") 2>conftest.er1
15160  ac_status=$?
15161  grep -v '^ *+' conftest.er1 >conftest.err
15162  rm -f conftest.er1
15163  cat conftest.err >&5
15164  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165  (exit $ac_status); } && {
15166	 test -z "$ac_f77_werror_flag" ||
15167	 test ! -s conftest.err
15168       } && test -s conftest$ac_exeext && {
15169	 test "$cross_compiling" = yes ||
15170	 $as_test_x conftest$ac_exeext
15171       }; then
15172
15173lt_aix_libpath_sed='
15174    /Import File Strings/,/^$/ {
15175	/^0/ {
15176	    s/^0  *\(.*\)$/\1/
15177	    p
15178	}
15179    }'
15180aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15181# Check for a 64-bit object if we didn't find anything.
15182if test -z "$aix_libpath"; then
15183  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15184fi
15185else
15186  $as_echo "$as_me: failed program was:" >&5
15187sed 's/^/| /' conftest.$ac_ext >&5
15188
15189
15190fi
15191
15192rm -rf conftest.dSYM
15193rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15194      conftest$ac_exeext conftest.$ac_ext
15195if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15196
15197       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15198	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"
15199       else
15200	if test "$host_cpu" = ia64; then
15201	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15202	  allow_undefined_flag_F77="-z nodefs"
15203	  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"
15204	else
15205	 # Determine the default libpath from the value encoded in an empty executable.
15206	 cat >conftest.$ac_ext <<_ACEOF
15207      program main
15208
15209      end
15210_ACEOF
15211rm -f conftest.$ac_objext conftest$ac_exeext
15212if { (ac_try="$ac_link"
15213case "(($ac_try" in
15214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215  *) ac_try_echo=$ac_try;;
15216esac
15217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15218$as_echo "$ac_try_echo") >&5
15219  (eval "$ac_link") 2>conftest.er1
15220  ac_status=$?
15221  grep -v '^ *+' conftest.er1 >conftest.err
15222  rm -f conftest.er1
15223  cat conftest.err >&5
15224  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225  (exit $ac_status); } && {
15226	 test -z "$ac_f77_werror_flag" ||
15227	 test ! -s conftest.err
15228       } && test -s conftest$ac_exeext && {
15229	 test "$cross_compiling" = yes ||
15230	 $as_test_x conftest$ac_exeext
15231       }; then
15232
15233lt_aix_libpath_sed='
15234    /Import File Strings/,/^$/ {
15235	/^0/ {
15236	    s/^0  *\(.*\)$/\1/
15237	    p
15238	}
15239    }'
15240aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15241# Check for a 64-bit object if we didn't find anything.
15242if test -z "$aix_libpath"; then
15243  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15244fi
15245else
15246  $as_echo "$as_me: failed program was:" >&5
15247sed 's/^/| /' conftest.$ac_ext >&5
15248
15249
15250fi
15251
15252rm -rf conftest.dSYM
15253rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15254      conftest$ac_exeext conftest.$ac_ext
15255if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15256
15257	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15258	  # Warning - without using the other run time loading flags,
15259	  # -berok will link without error, but may produce a broken library.
15260	  no_undefined_flag_F77=' ${wl}-bernotok'
15261	  allow_undefined_flag_F77=' ${wl}-berok'
15262	  # Exported symbols can be pulled into shared objects from archives
15263	  whole_archive_flag_spec_F77='$convenience'
15264	  archive_cmds_need_lc_F77=yes
15265	  # This is similar to how AIX traditionally builds its shared libraries.
15266	  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'
15267	fi
15268      fi
15269      ;;
15270
15271    amigaos*)
15272      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)'
15273      hardcode_libdir_flag_spec_F77='-L$libdir'
15274      hardcode_minus_L_F77=yes
15275      # see comment about different semantics on the GNU ld section
15276      ld_shlibs_F77=no
15277      ;;
15278
15279    bsdi[45]*)
15280      export_dynamic_flag_spec_F77=-rdynamic
15281      ;;
15282
15283    cygwin* | mingw* | pw32*)
15284      # When not using gcc, we currently assume that we are using
15285      # Microsoft Visual C++.
15286      # hardcode_libdir_flag_spec is actually meaningless, as there is
15287      # no search path for DLLs.
15288      hardcode_libdir_flag_spec_F77=' '
15289      allow_undefined_flag_F77=unsupported
15290      # Tell ltmain to make .lib files, not .a files.
15291      libext=lib
15292      # Tell ltmain to make .dll files, not .so files.
15293      shrext_cmds=".dll"
15294      # FIXME: Setting linknames here is a bad hack.
15295      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15296      # The linker will automatically build a .lib file if we build a DLL.
15297      old_archive_From_new_cmds_F77='true'
15298      # FIXME: Should let the user specify the lib program.
15299      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15300      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15301      enable_shared_with_static_runtimes_F77=yes
15302      ;;
15303
15304    darwin* | rhapsody*)
15305      case $host_os in
15306        rhapsody* | darwin1.[012])
15307         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15308         ;;
15309       *) # Darwin 1.3 on
15310         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15311           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15312         else
15313           case ${MACOSX_DEPLOYMENT_TARGET} in
15314             10.[012])
15315               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15316               ;;
15317             10.*)
15318               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15319               ;;
15320           esac
15321         fi
15322         ;;
15323      esac
15324      archive_cmds_need_lc_F77=no
15325      hardcode_direct_F77=no
15326      hardcode_automatic_F77=yes
15327      hardcode_shlibpath_var_F77=unsupported
15328      whole_archive_flag_spec_F77=''
15329      link_all_deplibs_F77=yes
15330    if test "$GCC" = yes ; then
15331    	output_verbose_link_cmd='echo'
15332        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}"
15333        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15334        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}"
15335        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}"
15336    else
15337      case $cc_basename in
15338        xlc*)
15339         output_verbose_link_cmd='echo'
15340         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15341         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15342          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15343         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}'
15344          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}'
15345          ;;
15346       *)
15347         ld_shlibs_F77=no
15348          ;;
15349      esac
15350    fi
15351      ;;
15352
15353    dgux*)
15354      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15355      hardcode_libdir_flag_spec_F77='-L$libdir'
15356      hardcode_shlibpath_var_F77=no
15357      ;;
15358
15359    freebsd1*)
15360      ld_shlibs_F77=no
15361      ;;
15362
15363    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15364    # support.  Future versions do this automatically, but an explicit c++rt0.o
15365    # does not break anything, and helps significantly (at the cost of a little
15366    # extra space).
15367    freebsd2.2*)
15368      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15369      hardcode_libdir_flag_spec_F77='-R$libdir'
15370      hardcode_direct_F77=yes
15371      hardcode_shlibpath_var_F77=no
15372      ;;
15373
15374    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15375    freebsd2*)
15376      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15377      hardcode_direct_F77=yes
15378      hardcode_minus_L_F77=yes
15379      hardcode_shlibpath_var_F77=no
15380      ;;
15381
15382    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15383    freebsd* | dragonfly*)
15384      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15385      hardcode_libdir_flag_spec_F77='-R$libdir'
15386      hardcode_direct_F77=yes
15387      hardcode_shlibpath_var_F77=no
15388      ;;
15389
15390    hpux9*)
15391      if test "$GCC" = yes; then
15392	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'
15393      else
15394	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'
15395      fi
15396      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15397      hardcode_libdir_separator_F77=:
15398      hardcode_direct_F77=yes
15399
15400      # hardcode_minus_L: Not really in the search PATH,
15401      # but as the default location of the library.
15402      hardcode_minus_L_F77=yes
15403      export_dynamic_flag_spec_F77='${wl}-E'
15404      ;;
15405
15406    hpux10*)
15407      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15408	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15409      else
15410	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15411      fi
15412      if test "$with_gnu_ld" = no; then
15413	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15414	hardcode_libdir_separator_F77=:
15415
15416	hardcode_direct_F77=yes
15417	export_dynamic_flag_spec_F77='${wl}-E'
15418
15419	# hardcode_minus_L: Not really in the search PATH,
15420	# but as the default location of the library.
15421	hardcode_minus_L_F77=yes
15422      fi
15423      ;;
15424
15425    hpux11*)
15426      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15427	case $host_cpu in
15428	hppa*64*)
15429	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15430	  ;;
15431	ia64*)
15432	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15433	  ;;
15434	*)
15435	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15436	  ;;
15437	esac
15438      else
15439	case $host_cpu in
15440	hppa*64*)
15441	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15442	  ;;
15443	ia64*)
15444	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15445	  ;;
15446	*)
15447	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15448	  ;;
15449	esac
15450      fi
15451      if test "$with_gnu_ld" = no; then
15452	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15453	hardcode_libdir_separator_F77=:
15454
15455	case $host_cpu in
15456	hppa*64*|ia64*)
15457	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15458	  hardcode_direct_F77=no
15459	  hardcode_shlibpath_var_F77=no
15460	  ;;
15461	*)
15462	  hardcode_direct_F77=yes
15463	  export_dynamic_flag_spec_F77='${wl}-E'
15464
15465	  # hardcode_minus_L: Not really in the search PATH,
15466	  # but as the default location of the library.
15467	  hardcode_minus_L_F77=yes
15468	  ;;
15469	esac
15470      fi
15471      ;;
15472
15473    irix5* | irix6* | nonstopux*)
15474      if test "$GCC" = yes; then
15475	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'
15476      else
15477	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'
15478	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15479      fi
15480      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15481      hardcode_libdir_separator_F77=:
15482      link_all_deplibs_F77=yes
15483      ;;
15484
15485    netbsd*)
15486      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15487	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15488      else
15489	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15490      fi
15491      hardcode_libdir_flag_spec_F77='-R$libdir'
15492      hardcode_direct_F77=yes
15493      hardcode_shlibpath_var_F77=no
15494      ;;
15495
15496    newsos6)
15497      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15498      hardcode_direct_F77=yes
15499      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15500      hardcode_libdir_separator_F77=:
15501      hardcode_shlibpath_var_F77=no
15502      ;;
15503
15504    openbsd*)
15505      if test -f /usr/libexec/ld.so; then
15506	hardcode_direct_F77=yes
15507	hardcode_shlibpath_var_F77=no
15508	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15509	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15510	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15511	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15512	  export_dynamic_flag_spec_F77='${wl}-E'
15513	else
15514	  case $host_os in
15515	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15516	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15517	     hardcode_libdir_flag_spec_F77='-R$libdir'
15518	     ;;
15519	   *)
15520	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15521	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15522	     ;;
15523	  esac
15524        fi
15525      else
15526	ld_shlibs_F77=no
15527      fi
15528      ;;
15529
15530    os2*)
15531      hardcode_libdir_flag_spec_F77='-L$libdir'
15532      hardcode_minus_L_F77=yes
15533      allow_undefined_flag_F77=unsupported
15534      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'
15535      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15536      ;;
15537
15538    osf3*)
15539      if test "$GCC" = yes; then
15540	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15541	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'
15542      else
15543	allow_undefined_flag_F77=' -expect_unresolved \*'
15544	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'
15545      fi
15546      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15547      hardcode_libdir_separator_F77=:
15548      ;;
15549
15550    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15551      if test "$GCC" = yes; then
15552	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15553	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'
15554	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15555      else
15556	allow_undefined_flag_F77=' -expect_unresolved \*'
15557	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'
15558	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~
15559	$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'
15560
15561	# Both c and cxx compiler support -rpath directly
15562	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15563      fi
15564      hardcode_libdir_separator_F77=:
15565      ;;
15566
15567    solaris*)
15568      no_undefined_flag_F77=' -z text'
15569      if test "$GCC" = yes; then
15570	wlarc='${wl}'
15571	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15572	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15573	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15574      else
15575	wlarc=''
15576	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15577	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15578  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15579      fi
15580      hardcode_libdir_flag_spec_F77='-R$libdir'
15581      hardcode_shlibpath_var_F77=no
15582      case $host_os in
15583      solaris2.[0-5] | solaris2.[0-5].*) ;;
15584      *)
15585	# The compiler driver will combine and reorder linker options,
15586	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15587	# but is careful enough not to reorder.
15588 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15589	if test "$GCC" = yes; then
15590	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15591	else
15592	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15593	fi
15594	;;
15595      esac
15596      link_all_deplibs_F77=yes
15597      ;;
15598
15599    sunos4*)
15600      if test "x$host_vendor" = xsequent; then
15601	# Use $CC to link under sequent, because it throws in some extra .o
15602	# files that make .init and .fini sections work.
15603	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15604      else
15605	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15606      fi
15607      hardcode_libdir_flag_spec_F77='-L$libdir'
15608      hardcode_direct_F77=yes
15609      hardcode_minus_L_F77=yes
15610      hardcode_shlibpath_var_F77=no
15611      ;;
15612
15613    sysv4)
15614      case $host_vendor in
15615	sni)
15616	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15617	  hardcode_direct_F77=yes # is this really true???
15618	;;
15619	siemens)
15620	  ## LD is ld it makes a PLAMLIB
15621	  ## CC just makes a GrossModule.
15622	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15623	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15624	  hardcode_direct_F77=no
15625        ;;
15626	motorola)
15627	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15628	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15629	;;
15630      esac
15631      runpath_var='LD_RUN_PATH'
15632      hardcode_shlibpath_var_F77=no
15633      ;;
15634
15635    sysv4.3*)
15636      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15637      hardcode_shlibpath_var_F77=no
15638      export_dynamic_flag_spec_F77='-Bexport'
15639      ;;
15640
15641    sysv4*MP*)
15642      if test -d /usr/nec; then
15643	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15644	hardcode_shlibpath_var_F77=no
15645	runpath_var=LD_RUN_PATH
15646	hardcode_runpath_var=yes
15647	ld_shlibs_F77=yes
15648      fi
15649      ;;
15650
15651    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15652      no_undefined_flag_F77='${wl}-z,text'
15653      archive_cmds_need_lc_F77=no
15654      hardcode_shlibpath_var_F77=no
15655      runpath_var='LD_RUN_PATH'
15656
15657      if test "$GCC" = yes; then
15658	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15659	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15660      else
15661	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15662	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15663      fi
15664      ;;
15665
15666    sysv5* | sco3.2v5* | sco5v6*)
15667      # Note: We can NOT use -z defs as we might desire, because we do not
15668      # link with -lc, and that would cause any symbols used from libc to
15669      # always be unresolved, which means just about no library would
15670      # ever link correctly.  If we're not using GNU ld we use -z text
15671      # though, which does catch some bad symbols but isn't as heavy-handed
15672      # as -z defs.
15673      no_undefined_flag_F77='${wl}-z,text'
15674      allow_undefined_flag_F77='${wl}-z,nodefs'
15675      archive_cmds_need_lc_F77=no
15676      hardcode_shlibpath_var_F77=no
15677      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15678      hardcode_libdir_separator_F77=':'
15679      link_all_deplibs_F77=yes
15680      export_dynamic_flag_spec_F77='${wl}-Bexport'
15681      runpath_var='LD_RUN_PATH'
15682
15683      if test "$GCC" = yes; then
15684	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15685	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15686      else
15687	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15688	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15689      fi
15690      ;;
15691
15692    uts4*)
15693      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15694      hardcode_libdir_flag_spec_F77='-L$libdir'
15695      hardcode_shlibpath_var_F77=no
15696      ;;
15697
15698    *)
15699      ld_shlibs_F77=no
15700      ;;
15701    esac
15702  fi
15703
15704{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15705$as_echo "$ld_shlibs_F77" >&6; }
15706test "$ld_shlibs_F77" = no && can_build_shared=no
15707
15708#
15709# Do we need to explicitly link libc?
15710#
15711case "x$archive_cmds_need_lc_F77" in
15712x|xyes)
15713  # Assume -lc should be added
15714  archive_cmds_need_lc_F77=yes
15715
15716  if test "$enable_shared" = yes && test "$GCC" = yes; then
15717    case $archive_cmds_F77 in
15718    *'~'*)
15719      # FIXME: we may have to deal with multi-command sequences.
15720      ;;
15721    '$CC '*)
15722      # Test whether the compiler implicitly links with -lc since on some
15723      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15724      # to ld, don't add -lc before -lgcc.
15725      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15726$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15727      $rm conftest*
15728      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15729
15730      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15731  (eval $ac_compile) 2>&5
15732  ac_status=$?
15733  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734  (exit $ac_status); } 2>conftest.err; then
15735        soname=conftest
15736        lib=conftest
15737        libobjs=conftest.$ac_objext
15738        deplibs=
15739        wl=$lt_prog_compiler_wl_F77
15740	pic_flag=$lt_prog_compiler_pic_F77
15741        compiler_flags=-v
15742        linker_flags=-v
15743        verstring=
15744        output_objdir=.
15745        libname=conftest
15746        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15747        allow_undefined_flag_F77=
15748        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15749  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15750  ac_status=$?
15751  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752  (exit $ac_status); }
15753        then
15754	  archive_cmds_need_lc_F77=no
15755        else
15756	  archive_cmds_need_lc_F77=yes
15757        fi
15758        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15759      else
15760        cat conftest.err 1>&5
15761      fi
15762      $rm conftest*
15763      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15764$as_echo "$archive_cmds_need_lc_F77" >&6; }
15765      ;;
15766    esac
15767  fi
15768  ;;
15769esac
15770
15771{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15772$as_echo_n "checking dynamic linker characteristics... " >&6; }
15773library_names_spec=
15774libname_spec='lib$name'
15775soname_spec=
15776shrext_cmds=".so"
15777postinstall_cmds=
15778postuninstall_cmds=
15779finish_cmds=
15780finish_eval=
15781shlibpath_var=
15782shlibpath_overrides_runpath=unknown
15783version_type=none
15784dynamic_linker="$host_os ld.so"
15785sys_lib_dlsearch_path_spec="/lib /usr/lib"
15786
15787need_lib_prefix=unknown
15788hardcode_into_libs=no
15789
15790# when you set need_version to no, make sure it does not cause -set_version
15791# flags to be left without arguments
15792need_version=unknown
15793
15794case $host_os in
15795aix3*)
15796  version_type=linux
15797  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15798  shlibpath_var=LIBPATH
15799
15800  # AIX 3 has no versioning support, so we append a major version to the name.
15801  soname_spec='${libname}${release}${shared_ext}$major'
15802  ;;
15803
15804aix[4-9]*)
15805  version_type=linux
15806  need_lib_prefix=no
15807  need_version=no
15808  hardcode_into_libs=yes
15809  if test "$host_cpu" = ia64; then
15810    # AIX 5 supports IA64
15811    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15812    shlibpath_var=LD_LIBRARY_PATH
15813  else
15814    # With GCC up to 2.95.x, collect2 would create an import file
15815    # for dependence libraries.  The import file would start with
15816    # the line `#! .'.  This would cause the generated library to
15817    # depend on `.', always an invalid library.  This was fixed in
15818    # development snapshots of GCC prior to 3.0.
15819    case $host_os in
15820      aix4 | aix4.[01] | aix4.[01].*)
15821      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15822	   echo ' yes '
15823	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15824	:
15825      else
15826	can_build_shared=no
15827      fi
15828      ;;
15829    esac
15830    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15831    # soname into executable. Probably we can add versioning support to
15832    # collect2, so additional links can be useful in future.
15833    if test "$aix_use_runtimelinking" = yes; then
15834      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15835      # instead of lib<name>.a to let people know that these are not
15836      # typical AIX shared libraries.
15837      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15838    else
15839      # We preserve .a as extension for shared libraries through AIX4.2
15840      # and later when we are not doing run time linking.
15841      library_names_spec='${libname}${release}.a $libname.a'
15842      soname_spec='${libname}${release}${shared_ext}$major'
15843    fi
15844    shlibpath_var=LIBPATH
15845  fi
15846  ;;
15847
15848amigaos*)
15849  library_names_spec='$libname.ixlibrary $libname.a'
15850  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15851  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'
15852  ;;
15853
15854beos*)
15855  library_names_spec='${libname}${shared_ext}'
15856  dynamic_linker="$host_os ld.so"
15857  shlibpath_var=LIBRARY_PATH
15858  ;;
15859
15860bsdi[45]*)
15861  version_type=linux
15862  need_version=no
15863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15864  soname_spec='${libname}${release}${shared_ext}$major'
15865  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15866  shlibpath_var=LD_LIBRARY_PATH
15867  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15868  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15869  # the default ld.so.conf also contains /usr/contrib/lib and
15870  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15871  # libtool to hard-code these into programs
15872  ;;
15873
15874cygwin* | mingw* | pw32*)
15875  version_type=windows
15876  shrext_cmds=".dll"
15877  need_version=no
15878  need_lib_prefix=no
15879
15880  case $GCC,$host_os in
15881  yes,cygwin* | yes,mingw* | yes,pw32*)
15882    library_names_spec='$libname.dll.a'
15883    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15884    postinstall_cmds='base_file=`basename \${file}`~
15885      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15886      dldir=$destdir/`dirname \$dlpath`~
15887      test -d \$dldir || mkdir -p \$dldir~
15888      $install_prog $dir/$dlname \$dldir/$dlname~
15889      chmod a+x \$dldir/$dlname'
15890    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15891      dlpath=$dir/\$dldll~
15892       $rm \$dlpath'
15893    shlibpath_overrides_runpath=yes
15894
15895    case $host_os in
15896    cygwin*)
15897      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15898      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15899      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15900      ;;
15901    mingw*)
15902      # MinGW DLLs use traditional 'lib' prefix
15903      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15904      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15905      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15906        # It is most probably a Windows format PATH printed by
15907        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15908        # path with ; separators, and with drive letters. We can handle the
15909        # drive letters (cygwin fileutils understands them), so leave them,
15910        # especially as we might pass files found there to a mingw objdump,
15911        # which wouldn't understand a cygwinified path. Ahh.
15912        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15913      else
15914        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15915      fi
15916      ;;
15917    pw32*)
15918      # pw32 DLLs use 'pw' prefix rather than 'lib'
15919      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15920      ;;
15921    esac
15922    ;;
15923
15924  *)
15925    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15926    ;;
15927  esac
15928  dynamic_linker='Win32 ld.exe'
15929  # FIXME: first we should search . and the directory the executable is in
15930  shlibpath_var=PATH
15931  ;;
15932
15933darwin* | rhapsody*)
15934  dynamic_linker="$host_os dyld"
15935  version_type=darwin
15936  need_lib_prefix=no
15937  need_version=no
15938  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15939  soname_spec='${libname}${release}${major}$shared_ext'
15940  shlibpath_overrides_runpath=yes
15941  shlibpath_var=DYLD_LIBRARY_PATH
15942  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15943
15944  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15945  ;;
15946
15947dgux*)
15948  version_type=linux
15949  need_lib_prefix=no
15950  need_version=no
15951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15952  soname_spec='${libname}${release}${shared_ext}$major'
15953  shlibpath_var=LD_LIBRARY_PATH
15954  ;;
15955
15956freebsd1*)
15957  dynamic_linker=no
15958  ;;
15959
15960freebsd* | dragonfly*)
15961  # DragonFly does not have aout.  When/if they implement a new
15962  # versioning mechanism, adjust this.
15963  if test -x /usr/bin/objformat; then
15964    objformat=`/usr/bin/objformat`
15965  else
15966    case $host_os in
15967    freebsd[123]*) objformat=aout ;;
15968    *) objformat=elf ;;
15969    esac
15970  fi
15971  version_type=freebsd-$objformat
15972  case $version_type in
15973    freebsd-elf*)
15974      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15975      need_version=no
15976      need_lib_prefix=no
15977      ;;
15978    freebsd-*)
15979      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15980      need_version=yes
15981      ;;
15982  esac
15983  shlibpath_var=LD_LIBRARY_PATH
15984  case $host_os in
15985  freebsd2*)
15986    shlibpath_overrides_runpath=yes
15987    ;;
15988  freebsd3.[01]* | freebsdelf3.[01]*)
15989    shlibpath_overrides_runpath=yes
15990    hardcode_into_libs=yes
15991    ;;
15992  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15993  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15994    shlibpath_overrides_runpath=no
15995    hardcode_into_libs=yes
15996    ;;
15997  *) # from 4.6 on, and DragonFly
15998    shlibpath_overrides_runpath=yes
15999    hardcode_into_libs=yes
16000    ;;
16001  esac
16002  ;;
16003
16004gnu*)
16005  version_type=linux
16006  need_lib_prefix=no
16007  need_version=no
16008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16009  soname_spec='${libname}${release}${shared_ext}$major'
16010  shlibpath_var=LD_LIBRARY_PATH
16011  hardcode_into_libs=yes
16012  ;;
16013
16014hpux9* | hpux10* | hpux11*)
16015  # Give a soname corresponding to the major version so that dld.sl refuses to
16016  # link against other versions.
16017  version_type=sunos
16018  need_lib_prefix=no
16019  need_version=no
16020  case $host_cpu in
16021  ia64*)
16022    shrext_cmds='.so'
16023    hardcode_into_libs=yes
16024    dynamic_linker="$host_os dld.so"
16025    shlibpath_var=LD_LIBRARY_PATH
16026    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16027    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028    soname_spec='${libname}${release}${shared_ext}$major'
16029    if test "X$HPUX_IA64_MODE" = X32; then
16030      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16031    else
16032      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16033    fi
16034    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16035    ;;
16036   hppa*64*)
16037     shrext_cmds='.sl'
16038     hardcode_into_libs=yes
16039     dynamic_linker="$host_os dld.sl"
16040     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16041     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16042     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16043     soname_spec='${libname}${release}${shared_ext}$major'
16044     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16045     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16046     ;;
16047   *)
16048    shrext_cmds='.sl'
16049    dynamic_linker="$host_os dld.sl"
16050    shlibpath_var=SHLIB_PATH
16051    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16052    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16053    soname_spec='${libname}${release}${shared_ext}$major'
16054    ;;
16055  esac
16056  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16057  postinstall_cmds='chmod 555 $lib'
16058  ;;
16059
16060interix[3-9]*)
16061  version_type=linux
16062  need_lib_prefix=no
16063  need_version=no
16064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16065  soname_spec='${libname}${release}${shared_ext}$major'
16066  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16067  shlibpath_var=LD_LIBRARY_PATH
16068  shlibpath_overrides_runpath=no
16069  hardcode_into_libs=yes
16070  ;;
16071
16072irix5* | irix6* | nonstopux*)
16073  case $host_os in
16074    nonstopux*) version_type=nonstopux ;;
16075    *)
16076	if test "$lt_cv_prog_gnu_ld" = yes; then
16077		version_type=linux
16078	else
16079		version_type=irix
16080	fi ;;
16081  esac
16082  need_lib_prefix=no
16083  need_version=no
16084  soname_spec='${libname}${release}${shared_ext}$major'
16085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16086  case $host_os in
16087  irix5* | nonstopux*)
16088    libsuff= shlibsuff=
16089    ;;
16090  *)
16091    case $LD in # libtool.m4 will add one of these switches to LD
16092    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16093      libsuff= shlibsuff= libmagic=32-bit;;
16094    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16095      libsuff=32 shlibsuff=N32 libmagic=N32;;
16096    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16097      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16098    *) libsuff= shlibsuff= libmagic=never-match;;
16099    esac
16100    ;;
16101  esac
16102  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16103  shlibpath_overrides_runpath=no
16104  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16105  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16106  hardcode_into_libs=yes
16107  ;;
16108
16109# No shared lib support for Linux oldld, aout, or coff.
16110linux*oldld* | linux*aout* | linux*coff*)
16111  dynamic_linker=no
16112  ;;
16113
16114# This must be Linux ELF.
16115linux* | k*bsd*-gnu)
16116  version_type=linux
16117  need_lib_prefix=no
16118  need_version=no
16119  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16120  soname_spec='${libname}${release}${shared_ext}$major'
16121  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16122  shlibpath_var=LD_LIBRARY_PATH
16123  shlibpath_overrides_runpath=no
16124  # This implies no fast_install, which is unacceptable.
16125  # Some rework will be needed to allow for fast_install
16126  # before this can be enabled.
16127  hardcode_into_libs=yes
16128  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16129  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16130
16131  # Append ld.so.conf contents to the search path
16132  if test -f /etc/ld.so.conf; then
16133    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' ' '`
16134    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16135  fi
16136
16137  # We used to test for /lib/ld.so.1 and disable shared libraries on
16138  # powerpc, because MkLinux only supported shared libraries with the
16139  # GNU dynamic linker.  Since this was broken with cross compilers,
16140  # most powerpc-linux boxes support dynamic linking these days and
16141  # people can always --disable-shared, the test was removed, and we
16142  # assume the GNU/Linux dynamic linker is in use.
16143  dynamic_linker='GNU/Linux ld.so'
16144  ;;
16145
16146netbsd*)
16147  version_type=sunos
16148  need_lib_prefix=no
16149  need_version=no
16150  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16151    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16152    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16153    dynamic_linker='NetBSD (a.out) ld.so'
16154  else
16155    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16156    soname_spec='${libname}${release}${shared_ext}$major'
16157    dynamic_linker='NetBSD ld.elf_so'
16158  fi
16159  shlibpath_var=LD_LIBRARY_PATH
16160  shlibpath_overrides_runpath=yes
16161  hardcode_into_libs=yes
16162  ;;
16163
16164newsos6)
16165  version_type=linux
16166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16167  shlibpath_var=LD_LIBRARY_PATH
16168  shlibpath_overrides_runpath=yes
16169  ;;
16170
16171nto-qnx*)
16172  version_type=linux
16173  need_lib_prefix=no
16174  need_version=no
16175  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16176  soname_spec='${libname}${release}${shared_ext}$major'
16177  shlibpath_var=LD_LIBRARY_PATH
16178  shlibpath_overrides_runpath=yes
16179  ;;
16180
16181openbsd*)
16182  version_type=sunos
16183  sys_lib_dlsearch_path_spec="/usr/lib"
16184  need_lib_prefix=no
16185  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16186  case $host_os in
16187    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16188    *)                         need_version=no  ;;
16189  esac
16190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16191  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16192  shlibpath_var=LD_LIBRARY_PATH
16193  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16194    case $host_os in
16195      openbsd2.[89] | openbsd2.[89].*)
16196	shlibpath_overrides_runpath=no
16197	;;
16198      *)
16199	shlibpath_overrides_runpath=yes
16200	;;
16201      esac
16202  else
16203    shlibpath_overrides_runpath=yes
16204  fi
16205  ;;
16206
16207os2*)
16208  libname_spec='$name'
16209  shrext_cmds=".dll"
16210  need_lib_prefix=no
16211  library_names_spec='$libname${shared_ext} $libname.a'
16212  dynamic_linker='OS/2 ld.exe'
16213  shlibpath_var=LIBPATH
16214  ;;
16215
16216osf3* | osf4* | osf5*)
16217  version_type=osf
16218  need_lib_prefix=no
16219  need_version=no
16220  soname_spec='${libname}${release}${shared_ext}$major'
16221  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16222  shlibpath_var=LD_LIBRARY_PATH
16223  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16224  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16225  ;;
16226
16227rdos*)
16228  dynamic_linker=no
16229  ;;
16230
16231solaris*)
16232  version_type=linux
16233  need_lib_prefix=no
16234  need_version=no
16235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16236  soname_spec='${libname}${release}${shared_ext}$major'
16237  shlibpath_var=LD_LIBRARY_PATH
16238  shlibpath_overrides_runpath=yes
16239  hardcode_into_libs=yes
16240  # ldd complains unless libraries are executable
16241  postinstall_cmds='chmod +x $lib'
16242  ;;
16243
16244sunos4*)
16245  version_type=sunos
16246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16247  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16248  shlibpath_var=LD_LIBRARY_PATH
16249  shlibpath_overrides_runpath=yes
16250  if test "$with_gnu_ld" = yes; then
16251    need_lib_prefix=no
16252  fi
16253  need_version=yes
16254  ;;
16255
16256sysv4 | sysv4.3*)
16257  version_type=linux
16258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16259  soname_spec='${libname}${release}${shared_ext}$major'
16260  shlibpath_var=LD_LIBRARY_PATH
16261  case $host_vendor in
16262    sni)
16263      shlibpath_overrides_runpath=no
16264      need_lib_prefix=no
16265      export_dynamic_flag_spec='${wl}-Blargedynsym'
16266      runpath_var=LD_RUN_PATH
16267      ;;
16268    siemens)
16269      need_lib_prefix=no
16270      ;;
16271    motorola)
16272      need_lib_prefix=no
16273      need_version=no
16274      shlibpath_overrides_runpath=no
16275      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16276      ;;
16277  esac
16278  ;;
16279
16280sysv4*MP*)
16281  if test -d /usr/nec ;then
16282    version_type=linux
16283    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16284    soname_spec='$libname${shared_ext}.$major'
16285    shlibpath_var=LD_LIBRARY_PATH
16286  fi
16287  ;;
16288
16289sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16290  version_type=freebsd-elf
16291  need_lib_prefix=no
16292  need_version=no
16293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16294  soname_spec='${libname}${release}${shared_ext}$major'
16295  shlibpath_var=LD_LIBRARY_PATH
16296  hardcode_into_libs=yes
16297  if test "$with_gnu_ld" = yes; then
16298    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16299    shlibpath_overrides_runpath=no
16300  else
16301    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16302    shlibpath_overrides_runpath=yes
16303    case $host_os in
16304      sco3.2v5*)
16305        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16306	;;
16307    esac
16308  fi
16309  sys_lib_dlsearch_path_spec='/usr/lib'
16310  ;;
16311
16312uts4*)
16313  version_type=linux
16314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16315  soname_spec='${libname}${release}${shared_ext}$major'
16316  shlibpath_var=LD_LIBRARY_PATH
16317  ;;
16318
16319*)
16320  dynamic_linker=no
16321  ;;
16322esac
16323{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16324$as_echo "$dynamic_linker" >&6; }
16325test "$dynamic_linker" = no && can_build_shared=no
16326
16327if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16328  $as_echo_n "(cached) " >&6
16329else
16330  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16331fi
16332
16333sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16334if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16335  $as_echo_n "(cached) " >&6
16336else
16337  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16338fi
16339
16340sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16341
16342variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16343if test "$GCC" = yes; then
16344  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16345fi
16346
16347{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16348$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16349hardcode_action_F77=
16350if test -n "$hardcode_libdir_flag_spec_F77" || \
16351   test -n "$runpath_var_F77" || \
16352   test "X$hardcode_automatic_F77" = "Xyes" ; then
16353
16354  # We can hardcode non-existant directories.
16355  if test "$hardcode_direct_F77" != no &&
16356     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16357     # have to relink, otherwise we might link with an installed library
16358     # when we should be linking with a yet-to-be-installed one
16359     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16360     test "$hardcode_minus_L_F77" != no; then
16361    # Linking always hardcodes the temporary library directory.
16362    hardcode_action_F77=relink
16363  else
16364    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16365    hardcode_action_F77=immediate
16366  fi
16367else
16368  # We cannot hardcode anything, or else we can only hardcode existing
16369  # directories.
16370  hardcode_action_F77=unsupported
16371fi
16372{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16373$as_echo "$hardcode_action_F77" >&6; }
16374
16375if test "$hardcode_action_F77" = relink; then
16376  # Fast installation is not supported
16377  enable_fast_install=no
16378elif test "$shlibpath_overrides_runpath" = yes ||
16379     test "$enable_shared" = no; then
16380  # Fast installation is not necessary
16381  enable_fast_install=needless
16382fi
16383
16384
16385# The else clause should only fire when bootstrapping the
16386# libtool distribution, otherwise you forgot to ship ltmain.sh
16387# with your package, and you will get complaints that there are
16388# no rules to generate ltmain.sh.
16389if test -f "$ltmain"; then
16390  # See if we are running on zsh, and set the options which allow our commands through
16391  # without removal of \ escapes.
16392  if test -n "${ZSH_VERSION+set}" ; then
16393    setopt NO_GLOB_SUBST
16394  fi
16395  # Now quote all the things that may contain metacharacters while being
16396  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16397  # variables and quote the copies for generation of the libtool script.
16398  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16399    SED SHELL STRIP \
16400    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16401    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16402    deplibs_check_method reload_flag reload_cmds need_locks \
16403    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16404    lt_cv_sys_global_symbol_to_c_name_address \
16405    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16406    old_postinstall_cmds old_postuninstall_cmds \
16407    compiler_F77 \
16408    CC_F77 \
16409    LD_F77 \
16410    lt_prog_compiler_wl_F77 \
16411    lt_prog_compiler_pic_F77 \
16412    lt_prog_compiler_static_F77 \
16413    lt_prog_compiler_no_builtin_flag_F77 \
16414    export_dynamic_flag_spec_F77 \
16415    thread_safe_flag_spec_F77 \
16416    whole_archive_flag_spec_F77 \
16417    enable_shared_with_static_runtimes_F77 \
16418    old_archive_cmds_F77 \
16419    old_archive_from_new_cmds_F77 \
16420    predep_objects_F77 \
16421    postdep_objects_F77 \
16422    predeps_F77 \
16423    postdeps_F77 \
16424    compiler_lib_search_path_F77 \
16425    compiler_lib_search_dirs_F77 \
16426    archive_cmds_F77 \
16427    archive_expsym_cmds_F77 \
16428    postinstall_cmds_F77 \
16429    postuninstall_cmds_F77 \
16430    old_archive_from_expsyms_cmds_F77 \
16431    allow_undefined_flag_F77 \
16432    no_undefined_flag_F77 \
16433    export_symbols_cmds_F77 \
16434    hardcode_libdir_flag_spec_F77 \
16435    hardcode_libdir_flag_spec_ld_F77 \
16436    hardcode_libdir_separator_F77 \
16437    hardcode_automatic_F77 \
16438    module_cmds_F77 \
16439    module_expsym_cmds_F77 \
16440    lt_cv_prog_compiler_c_o_F77 \
16441    fix_srcfile_path_F77 \
16442    exclude_expsyms_F77 \
16443    include_expsyms_F77; do
16444
16445    case $var in
16446    old_archive_cmds_F77 | \
16447    old_archive_from_new_cmds_F77 | \
16448    archive_cmds_F77 | \
16449    archive_expsym_cmds_F77 | \
16450    module_cmds_F77 | \
16451    module_expsym_cmds_F77 | \
16452    old_archive_from_expsyms_cmds_F77 | \
16453    export_symbols_cmds_F77 | \
16454    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16455    postinstall_cmds | postuninstall_cmds | \
16456    old_postinstall_cmds | old_postuninstall_cmds | \
16457    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16458      # Double-quote double-evaled strings.
16459      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16460      ;;
16461    *)
16462      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16463      ;;
16464    esac
16465  done
16466
16467  case $lt_echo in
16468  *'\$0 --fallback-echo"')
16469    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16470    ;;
16471  esac
16472
16473cfgfile="$ofile"
16474
16475  cat <<__EOF__ >> "$cfgfile"
16476# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16477
16478# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16479
16480# Shell to use when invoking shell scripts.
16481SHELL=$lt_SHELL
16482
16483# Whether or not to build shared libraries.
16484build_libtool_libs=$enable_shared
16485
16486# Whether or not to build static libraries.
16487build_old_libs=$enable_static
16488
16489# Whether or not to add -lc for building shared libraries.
16490build_libtool_need_lc=$archive_cmds_need_lc_F77
16491
16492# Whether or not to disallow shared libs when runtime libs are static
16493allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16494
16495# Whether or not to optimize for fast installation.
16496fast_install=$enable_fast_install
16497
16498# The host system.
16499host_alias=$host_alias
16500host=$host
16501host_os=$host_os
16502
16503# The build system.
16504build_alias=$build_alias
16505build=$build
16506build_os=$build_os
16507
16508# An echo program that does not interpret backslashes.
16509echo=$lt_echo
16510
16511# The archiver.
16512AR=$lt_AR
16513AR_FLAGS=$lt_AR_FLAGS
16514
16515# A C compiler.
16516LTCC=$lt_LTCC
16517
16518# LTCC compiler flags.
16519LTCFLAGS=$lt_LTCFLAGS
16520
16521# A language-specific compiler.
16522CC=$lt_compiler_F77
16523
16524# Is the compiler the GNU C compiler?
16525with_gcc=$GCC_F77
16526
16527# An ERE matcher.
16528EGREP=$lt_EGREP
16529
16530# The linker used to build libraries.
16531LD=$lt_LD_F77
16532
16533# Whether we need hard or soft links.
16534LN_S=$lt_LN_S
16535
16536# A BSD-compatible nm program.
16537NM=$lt_NM
16538
16539# A symbol stripping program
16540STRIP=$lt_STRIP
16541
16542# Used to examine libraries when file_magic_cmd begins "file"
16543MAGIC_CMD=$MAGIC_CMD
16544
16545# Used on cygwin: DLL creation program.
16546DLLTOOL="$DLLTOOL"
16547
16548# Used on cygwin: object dumper.
16549OBJDUMP="$OBJDUMP"
16550
16551# Used on cygwin: assembler.
16552AS="$AS"
16553
16554# The name of the directory that contains temporary libtool files.
16555objdir=$objdir
16556
16557# How to create reloadable object files.
16558reload_flag=$lt_reload_flag
16559reload_cmds=$lt_reload_cmds
16560
16561# How to pass a linker flag through the compiler.
16562wl=$lt_lt_prog_compiler_wl_F77
16563
16564# Object file suffix (normally "o").
16565objext="$ac_objext"
16566
16567# Old archive suffix (normally "a").
16568libext="$libext"
16569
16570# Shared library suffix (normally ".so").
16571shrext_cmds='$shrext_cmds'
16572
16573# Executable file suffix (normally "").
16574exeext="$exeext"
16575
16576# Additional compiler flags for building library objects.
16577pic_flag=$lt_lt_prog_compiler_pic_F77
16578pic_mode=$pic_mode
16579
16580# What is the maximum length of a command?
16581max_cmd_len=$lt_cv_sys_max_cmd_len
16582
16583# Does compiler simultaneously support -c and -o options?
16584compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16585
16586# Must we lock files when doing compilation?
16587need_locks=$lt_need_locks
16588
16589# Do we need the lib prefix for modules?
16590need_lib_prefix=$need_lib_prefix
16591
16592# Do we need a version for libraries?
16593need_version=$need_version
16594
16595# Whether dlopen is supported.
16596dlopen_support=$enable_dlopen
16597
16598# Whether dlopen of programs is supported.
16599dlopen_self=$enable_dlopen_self
16600
16601# Whether dlopen of statically linked programs is supported.
16602dlopen_self_static=$enable_dlopen_self_static
16603
16604# Compiler flag to prevent dynamic linking.
16605link_static_flag=$lt_lt_prog_compiler_static_F77
16606
16607# Compiler flag to turn off builtin functions.
16608no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16609
16610# Compiler flag to allow reflexive dlopens.
16611export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16612
16613# Compiler flag to generate shared objects directly from archives.
16614whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16615
16616# Compiler flag to generate thread-safe objects.
16617thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16618
16619# Library versioning type.
16620version_type=$version_type
16621
16622# Format of library name prefix.
16623libname_spec=$lt_libname_spec
16624
16625# List of archive names.  First name is the real one, the rest are links.
16626# The last name is the one that the linker finds with -lNAME.
16627library_names_spec=$lt_library_names_spec
16628
16629# The coded name of the library, if different from the real name.
16630soname_spec=$lt_soname_spec
16631
16632# Commands used to build and install an old-style archive.
16633RANLIB=$lt_RANLIB
16634old_archive_cmds=$lt_old_archive_cmds_F77
16635old_postinstall_cmds=$lt_old_postinstall_cmds
16636old_postuninstall_cmds=$lt_old_postuninstall_cmds
16637
16638# Create an old-style archive from a shared archive.
16639old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16640
16641# Create a temporary old-style archive to link instead of a shared archive.
16642old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16643
16644# Commands used to build and install a shared archive.
16645archive_cmds=$lt_archive_cmds_F77
16646archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16647postinstall_cmds=$lt_postinstall_cmds
16648postuninstall_cmds=$lt_postuninstall_cmds
16649
16650# Commands used to build a loadable module (assumed same as above if empty)
16651module_cmds=$lt_module_cmds_F77
16652module_expsym_cmds=$lt_module_expsym_cmds_F77
16653
16654# Commands to strip libraries.
16655old_striplib=$lt_old_striplib
16656striplib=$lt_striplib
16657
16658# Dependencies to place before the objects being linked to create a
16659# shared library.
16660predep_objects=$lt_predep_objects_F77
16661
16662# Dependencies to place after the objects being linked to create a
16663# shared library.
16664postdep_objects=$lt_postdep_objects_F77
16665
16666# Dependencies to place before the objects being linked to create a
16667# shared library.
16668predeps=$lt_predeps_F77
16669
16670# Dependencies to place after the objects being linked to create a
16671# shared library.
16672postdeps=$lt_postdeps_F77
16673
16674# The directories searched by this compiler when creating a shared
16675# library
16676compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16677
16678# The library search path used internally by the compiler when linking
16679# a shared library.
16680compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16681
16682# Method to check whether dependent libraries are shared objects.
16683deplibs_check_method=$lt_deplibs_check_method
16684
16685# Command to use when deplibs_check_method == file_magic.
16686file_magic_cmd=$lt_file_magic_cmd
16687
16688# Flag that allows shared libraries with undefined symbols to be built.
16689allow_undefined_flag=$lt_allow_undefined_flag_F77
16690
16691# Flag that forces no undefined symbols.
16692no_undefined_flag=$lt_no_undefined_flag_F77
16693
16694# Commands used to finish a libtool library installation in a directory.
16695finish_cmds=$lt_finish_cmds
16696
16697# Same as above, but a single script fragment to be evaled but not shown.
16698finish_eval=$lt_finish_eval
16699
16700# Take the output of nm and produce a listing of raw symbols and C names.
16701global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16702
16703# Transform the output of nm in a proper C declaration
16704global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16705
16706# Transform the output of nm in a C name address pair
16707global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16708
16709# This is the shared library runtime path variable.
16710runpath_var=$runpath_var
16711
16712# This is the shared library path variable.
16713shlibpath_var=$shlibpath_var
16714
16715# Is shlibpath searched before the hard-coded library search path?
16716shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16717
16718# How to hardcode a shared library path into an executable.
16719hardcode_action=$hardcode_action_F77
16720
16721# Whether we should hardcode library paths into libraries.
16722hardcode_into_libs=$hardcode_into_libs
16723
16724# Flag to hardcode \$libdir into a binary during linking.
16725# This must work even if \$libdir does not exist.
16726hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16727
16728# If ld is used when linking, flag to hardcode \$libdir into
16729# a binary during linking. This must work even if \$libdir does
16730# not exist.
16731hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16732
16733# Whether we need a single -rpath flag with a separated argument.
16734hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16735
16736# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16737# resulting binary.
16738hardcode_direct=$hardcode_direct_F77
16739
16740# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16741# resulting binary.
16742hardcode_minus_L=$hardcode_minus_L_F77
16743
16744# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16745# the resulting binary.
16746hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16747
16748# Set to yes if building a shared library automatically hardcodes DIR into the library
16749# and all subsequent libraries and executables linked against it.
16750hardcode_automatic=$hardcode_automatic_F77
16751
16752# Variables whose values should be saved in libtool wrapper scripts and
16753# restored at relink time.
16754variables_saved_for_relink="$variables_saved_for_relink"
16755
16756# Whether libtool must link a program against all its dependency libraries.
16757link_all_deplibs=$link_all_deplibs_F77
16758
16759# Compile-time system search path for libraries
16760sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16761
16762# Run-time system search path for libraries
16763sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16764
16765# Fix the shell variable \$srcfile for the compiler.
16766fix_srcfile_path=$lt_fix_srcfile_path
16767
16768# Set to yes if exported symbols are required.
16769always_export_symbols=$always_export_symbols_F77
16770
16771# The commands to list exported symbols.
16772export_symbols_cmds=$lt_export_symbols_cmds_F77
16773
16774# The commands to extract the exported symbol list from a shared archive.
16775extract_expsyms_cmds=$lt_extract_expsyms_cmds
16776
16777# Symbols that should not be listed in the preloaded symbols.
16778exclude_expsyms=$lt_exclude_expsyms_F77
16779
16780# Symbols that must always be exported.
16781include_expsyms=$lt_include_expsyms_F77
16782
16783# ### END LIBTOOL TAG CONFIG: $tagname
16784
16785__EOF__
16786
16787
16788else
16789  # If there is no Makefile yet, we rely on a make rule to execute
16790  # `config.status --recheck' to rerun these tests and create the
16791  # libtool script then.
16792  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16793  if test -f "$ltmain_in"; then
16794    test -f Makefile && make "$ltmain"
16795  fi
16796fi
16797
16798
16799ac_ext=c
16800ac_cpp='$CPP $CPPFLAGS'
16801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16803ac_compiler_gnu=$ac_cv_c_compiler_gnu
16804
16805CC="$lt_save_CC"
16806
16807	else
16808	  tagname=""
16809	fi
16810	;;
16811
16812      GCJ)
16813	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16814
16815
16816# Source file extension for Java test sources.
16817ac_ext=java
16818
16819# Object file extension for compiled Java test sources.
16820objext=o
16821objext_GCJ=$objext
16822
16823# Code to be used in simple compile tests
16824lt_simple_compile_test_code="class foo {}"
16825
16826# Code to be used in simple link tests
16827lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16828
16829# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16830
16831# If no C compiler was specified, use CC.
16832LTCC=${LTCC-"$CC"}
16833
16834# If no C compiler flags were specified, use CFLAGS.
16835LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16836
16837# Allow CC to be a program name with arguments.
16838compiler=$CC
16839
16840
16841# save warnings/boilerplate of simple test code
16842ac_outfile=conftest.$ac_objext
16843echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16844eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16845_lt_compiler_boilerplate=`cat conftest.err`
16846$rm conftest*
16847
16848ac_outfile=conftest.$ac_objext
16849echo "$lt_simple_link_test_code" >conftest.$ac_ext
16850eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16851_lt_linker_boilerplate=`cat conftest.err`
16852$rm -r conftest*
16853
16854
16855# Allow CC to be a program name with arguments.
16856lt_save_CC="$CC"
16857CC=${GCJ-"gcj"}
16858compiler=$CC
16859compiler_GCJ=$CC
16860for cc_temp in $compiler""; do
16861  case $cc_temp in
16862    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16863    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16864    \-*) ;;
16865    *) break;;
16866  esac
16867done
16868cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16869
16870
16871# GCJ did not exist at the time GCC didn't implicitly link libc in.
16872archive_cmds_need_lc_GCJ=no
16873
16874old_archive_cmds_GCJ=$old_archive_cmds
16875
16876
16877lt_prog_compiler_no_builtin_flag_GCJ=
16878
16879if test "$GCC" = yes; then
16880  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16881
16882
16883{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16884$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16885if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16886  $as_echo_n "(cached) " >&6
16887else
16888  lt_cv_prog_compiler_rtti_exceptions=no
16889  ac_outfile=conftest.$ac_objext
16890   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16891   lt_compiler_flag="-fno-rtti -fno-exceptions"
16892   # Insert the option either (1) after the last *FLAGS variable, or
16893   # (2) before a word containing "conftest.", or (3) at the end.
16894   # Note that $ac_compile itself does not contain backslashes and begins
16895   # with a dollar sign (not a hyphen), so the echo should work correctly.
16896   # The option is referenced via a variable to avoid confusing sed.
16897   lt_compile=`echo "$ac_compile" | $SED \
16898   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16899   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16900   -e 's:$: $lt_compiler_flag:'`
16901   (eval echo "\"\$as_me:16901: $lt_compile\"" >&5)
16902   (eval "$lt_compile" 2>conftest.err)
16903   ac_status=$?
16904   cat conftest.err >&5
16905   echo "$as_me:16905: \$? = $ac_status" >&5
16906   if (exit $ac_status) && test -s "$ac_outfile"; then
16907     # The compiler can only warn and ignore the option if not recognized
16908     # So say no if there are warnings other than the usual output.
16909     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16910     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16911     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16912       lt_cv_prog_compiler_rtti_exceptions=yes
16913     fi
16914   fi
16915   $rm conftest*
16916
16917fi
16918{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16919$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16920
16921if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16922    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16923else
16924    :
16925fi
16926
16927fi
16928
16929lt_prog_compiler_wl_GCJ=
16930lt_prog_compiler_pic_GCJ=
16931lt_prog_compiler_static_GCJ=
16932
16933{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16934$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16935
16936  if test "$GCC" = yes; then
16937    lt_prog_compiler_wl_GCJ='-Wl,'
16938    lt_prog_compiler_static_GCJ='-static'
16939
16940    case $host_os in
16941      aix*)
16942      # All AIX code is PIC.
16943      if test "$host_cpu" = ia64; then
16944	# AIX 5 now supports IA64 processor
16945	lt_prog_compiler_static_GCJ='-Bstatic'
16946      fi
16947      ;;
16948
16949    amigaos*)
16950      # FIXME: we need at least 68020 code to build shared libraries, but
16951      # adding the `-m68020' flag to GCC prevents building anything better,
16952      # like `-m68040'.
16953      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16954      ;;
16955
16956    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16957      # PIC is the default for these OSes.
16958      ;;
16959
16960    mingw* | cygwin* | pw32* | os2*)
16961      # This hack is so that the source file can tell whether it is being
16962      # built for inclusion in a dll (and should export symbols for example).
16963      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16964      # (--disable-auto-import) libraries
16965
16966      ;;
16967
16968    darwin* | rhapsody*)
16969      # PIC is the default on this platform
16970      # Common symbols not allowed in MH_DYLIB files
16971      lt_prog_compiler_pic_GCJ='-fno-common'
16972      ;;
16973
16974    interix[3-9]*)
16975      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16976      # Instead, we relocate shared libraries at runtime.
16977      ;;
16978
16979    msdosdjgpp*)
16980      # Just because we use GCC doesn't mean we suddenly get shared libraries
16981      # on systems that don't support them.
16982      lt_prog_compiler_can_build_shared_GCJ=no
16983      enable_shared=no
16984      ;;
16985
16986    sysv4*MP*)
16987      if test -d /usr/nec; then
16988	lt_prog_compiler_pic_GCJ=-Kconform_pic
16989      fi
16990      ;;
16991
16992    hpux*)
16993      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16994      # not for PA HP-UX.
16995      case $host_cpu in
16996      hppa*64*|ia64*)
16997	# +Z the default
16998	;;
16999      *)
17000	lt_prog_compiler_pic_GCJ='-fPIC'
17001	;;
17002      esac
17003      ;;
17004
17005    *)
17006      lt_prog_compiler_pic_GCJ='-fPIC'
17007      ;;
17008    esac
17009  else
17010    # PORTME Check for flag to pass linker flags through the system compiler.
17011    case $host_os in
17012    aix*)
17013      lt_prog_compiler_wl_GCJ='-Wl,'
17014      if test "$host_cpu" = ia64; then
17015	# AIX 5 now supports IA64 processor
17016	lt_prog_compiler_static_GCJ='-Bstatic'
17017      else
17018	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17019      fi
17020      ;;
17021      darwin*)
17022        # PIC is the default on this platform
17023        # Common symbols not allowed in MH_DYLIB files
17024       case $cc_basename in
17025         xlc*)
17026         lt_prog_compiler_pic_GCJ='-qnocommon'
17027         lt_prog_compiler_wl_GCJ='-Wl,'
17028         ;;
17029       esac
17030       ;;
17031
17032    mingw* | cygwin* | pw32* | os2*)
17033      # This hack is so that the source file can tell whether it is being
17034      # built for inclusion in a dll (and should export symbols for example).
17035
17036      ;;
17037
17038    hpux9* | hpux10* | hpux11*)
17039      lt_prog_compiler_wl_GCJ='-Wl,'
17040      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17041      # not for PA HP-UX.
17042      case $host_cpu in
17043      hppa*64*|ia64*)
17044	# +Z the default
17045	;;
17046      *)
17047	lt_prog_compiler_pic_GCJ='+Z'
17048	;;
17049      esac
17050      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17051      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17052      ;;
17053
17054    irix5* | irix6* | nonstopux*)
17055      lt_prog_compiler_wl_GCJ='-Wl,'
17056      # PIC (with -KPIC) is the default.
17057      lt_prog_compiler_static_GCJ='-non_shared'
17058      ;;
17059
17060    newsos6)
17061      lt_prog_compiler_pic_GCJ='-KPIC'
17062      lt_prog_compiler_static_GCJ='-Bstatic'
17063      ;;
17064
17065    linux* | k*bsd*-gnu)
17066      case $cc_basename in
17067      icc* | ecc*)
17068	lt_prog_compiler_wl_GCJ='-Wl,'
17069	lt_prog_compiler_pic_GCJ='-KPIC'
17070	lt_prog_compiler_static_GCJ='-static'
17071        ;;
17072      pgcc* | pgf77* | pgf90* | pgf95*)
17073        # Portland Group compilers (*not* the Pentium gcc compiler,
17074	# which looks to be a dead project)
17075	lt_prog_compiler_wl_GCJ='-Wl,'
17076	lt_prog_compiler_pic_GCJ='-fpic'
17077	lt_prog_compiler_static_GCJ='-Bstatic'
17078        ;;
17079      ccc*)
17080        lt_prog_compiler_wl_GCJ='-Wl,'
17081        # All Alpha code is PIC.
17082        lt_prog_compiler_static_GCJ='-non_shared'
17083        ;;
17084      *)
17085        case `$CC -V 2>&1 | sed 5q` in
17086	*Sun\ C*)
17087	  # Sun C 5.9
17088	  lt_prog_compiler_pic_GCJ='-KPIC'
17089	  lt_prog_compiler_static_GCJ='-Bstatic'
17090	  lt_prog_compiler_wl_GCJ='-Wl,'
17091	  ;;
17092	*Sun\ F*)
17093	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17094	  lt_prog_compiler_pic_GCJ='-KPIC'
17095	  lt_prog_compiler_static_GCJ='-Bstatic'
17096	  lt_prog_compiler_wl_GCJ=''
17097	  ;;
17098	esac
17099	;;
17100      esac
17101      ;;
17102
17103    osf3* | osf4* | osf5*)
17104      lt_prog_compiler_wl_GCJ='-Wl,'
17105      # All OSF/1 code is PIC.
17106      lt_prog_compiler_static_GCJ='-non_shared'
17107      ;;
17108
17109    rdos*)
17110      lt_prog_compiler_static_GCJ='-non_shared'
17111      ;;
17112
17113    solaris*)
17114      lt_prog_compiler_pic_GCJ='-KPIC'
17115      lt_prog_compiler_static_GCJ='-Bstatic'
17116      case $cc_basename in
17117      f77* | f90* | f95*)
17118	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17119      *)
17120	lt_prog_compiler_wl_GCJ='-Wl,';;
17121      esac
17122      ;;
17123
17124    sunos4*)
17125      lt_prog_compiler_wl_GCJ='-Qoption ld '
17126      lt_prog_compiler_pic_GCJ='-PIC'
17127      lt_prog_compiler_static_GCJ='-Bstatic'
17128      ;;
17129
17130    sysv4 | sysv4.2uw2* | sysv4.3*)
17131      lt_prog_compiler_wl_GCJ='-Wl,'
17132      lt_prog_compiler_pic_GCJ='-KPIC'
17133      lt_prog_compiler_static_GCJ='-Bstatic'
17134      ;;
17135
17136    sysv4*MP*)
17137      if test -d /usr/nec ;then
17138	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17139	lt_prog_compiler_static_GCJ='-Bstatic'
17140      fi
17141      ;;
17142
17143    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17144      lt_prog_compiler_wl_GCJ='-Wl,'
17145      lt_prog_compiler_pic_GCJ='-KPIC'
17146      lt_prog_compiler_static_GCJ='-Bstatic'
17147      ;;
17148
17149    unicos*)
17150      lt_prog_compiler_wl_GCJ='-Wl,'
17151      lt_prog_compiler_can_build_shared_GCJ=no
17152      ;;
17153
17154    uts4*)
17155      lt_prog_compiler_pic_GCJ='-pic'
17156      lt_prog_compiler_static_GCJ='-Bstatic'
17157      ;;
17158
17159    *)
17160      lt_prog_compiler_can_build_shared_GCJ=no
17161      ;;
17162    esac
17163  fi
17164
17165{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17166$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17167
17168#
17169# Check to make sure the PIC flag actually works.
17170#
17171if test -n "$lt_prog_compiler_pic_GCJ"; then
17172
17173{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17174$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17175if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17176  $as_echo_n "(cached) " >&6
17177else
17178  lt_cv_prog_compiler_pic_works_GCJ=no
17179  ac_outfile=conftest.$ac_objext
17180   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17181   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17182   # Insert the option either (1) after the last *FLAGS variable, or
17183   # (2) before a word containing "conftest.", or (3) at the end.
17184   # Note that $ac_compile itself does not contain backslashes and begins
17185   # with a dollar sign (not a hyphen), so the echo should work correctly.
17186   # The option is referenced via a variable to avoid confusing sed.
17187   lt_compile=`echo "$ac_compile" | $SED \
17188   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17189   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17190   -e 's:$: $lt_compiler_flag:'`
17191   (eval echo "\"\$as_me:17191: $lt_compile\"" >&5)
17192   (eval "$lt_compile" 2>conftest.err)
17193   ac_status=$?
17194   cat conftest.err >&5
17195   echo "$as_me:17195: \$? = $ac_status" >&5
17196   if (exit $ac_status) && test -s "$ac_outfile"; then
17197     # The compiler can only warn and ignore the option if not recognized
17198     # So say no if there are warnings other than the usual output.
17199     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17200     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17201     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17202       lt_cv_prog_compiler_pic_works_GCJ=yes
17203     fi
17204   fi
17205   $rm conftest*
17206
17207fi
17208{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17209$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17210
17211if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17212    case $lt_prog_compiler_pic_GCJ in
17213     "" | " "*) ;;
17214     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17215     esac
17216else
17217    lt_prog_compiler_pic_GCJ=
17218     lt_prog_compiler_can_build_shared_GCJ=no
17219fi
17220
17221fi
17222case $host_os in
17223  # For platforms which do not support PIC, -DPIC is meaningless:
17224  *djgpp*)
17225    lt_prog_compiler_pic_GCJ=
17226    ;;
17227  *)
17228    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17229    ;;
17230esac
17231
17232#
17233# Check to make sure the static flag actually works.
17234#
17235wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17236{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17237$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17238if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17239  $as_echo_n "(cached) " >&6
17240else
17241  lt_cv_prog_compiler_static_works_GCJ=no
17242   save_LDFLAGS="$LDFLAGS"
17243   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17244   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17245   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17246     # The linker can only warn and ignore the option if not recognized
17247     # So say no if there are warnings
17248     if test -s conftest.err; then
17249       # Append any errors to the config.log.
17250       cat conftest.err 1>&5
17251       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17252       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17253       if diff conftest.exp conftest.er2 >/dev/null; then
17254         lt_cv_prog_compiler_static_works_GCJ=yes
17255       fi
17256     else
17257       lt_cv_prog_compiler_static_works_GCJ=yes
17258     fi
17259   fi
17260   $rm -r conftest*
17261   LDFLAGS="$save_LDFLAGS"
17262
17263fi
17264{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17265$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17266
17267if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17268    :
17269else
17270    lt_prog_compiler_static_GCJ=
17271fi
17272
17273
17274{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17275$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17276if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17277  $as_echo_n "(cached) " >&6
17278else
17279  lt_cv_prog_compiler_c_o_GCJ=no
17280   $rm -r conftest 2>/dev/null
17281   mkdir conftest
17282   cd conftest
17283   mkdir out
17284   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17285
17286   lt_compiler_flag="-o out/conftest2.$ac_objext"
17287   # Insert the option either (1) after the last *FLAGS variable, or
17288   # (2) before a word containing "conftest.", or (3) at the end.
17289   # Note that $ac_compile itself does not contain backslashes and begins
17290   # with a dollar sign (not a hyphen), so the echo should work correctly.
17291   lt_compile=`echo "$ac_compile" | $SED \
17292   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17293   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17294   -e 's:$: $lt_compiler_flag:'`
17295   (eval echo "\"\$as_me:17295: $lt_compile\"" >&5)
17296   (eval "$lt_compile" 2>out/conftest.err)
17297   ac_status=$?
17298   cat out/conftest.err >&5
17299   echo "$as_me:17299: \$? = $ac_status" >&5
17300   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17301   then
17302     # The compiler can only warn and ignore the option if not recognized
17303     # So say no if there are warnings
17304     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17305     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17306     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17307       lt_cv_prog_compiler_c_o_GCJ=yes
17308     fi
17309   fi
17310   chmod u+w . 2>&5
17311   $rm conftest*
17312   # SGI C++ compiler will create directory out/ii_files/ for
17313   # template instantiation
17314   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17315   $rm out/* && rmdir out
17316   cd ..
17317   rmdir conftest
17318   $rm conftest*
17319
17320fi
17321{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17322$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17323
17324
17325hard_links="nottested"
17326if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17327  # do not overwrite the value of need_locks provided by the user
17328  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17329$as_echo_n "checking if we can lock with hard links... " >&6; }
17330  hard_links=yes
17331  $rm conftest*
17332  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17333  touch conftest.a
17334  ln conftest.a conftest.b 2>&5 || hard_links=no
17335  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17336  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17337$as_echo "$hard_links" >&6; }
17338  if test "$hard_links" = no; then
17339    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17340$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17341    need_locks=warn
17342  fi
17343else
17344  need_locks=no
17345fi
17346
17347{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17348$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17349
17350  runpath_var=
17351  allow_undefined_flag_GCJ=
17352  enable_shared_with_static_runtimes_GCJ=no
17353  archive_cmds_GCJ=
17354  archive_expsym_cmds_GCJ=
17355  old_archive_From_new_cmds_GCJ=
17356  old_archive_from_expsyms_cmds_GCJ=
17357  export_dynamic_flag_spec_GCJ=
17358  whole_archive_flag_spec_GCJ=
17359  thread_safe_flag_spec_GCJ=
17360  hardcode_libdir_flag_spec_GCJ=
17361  hardcode_libdir_flag_spec_ld_GCJ=
17362  hardcode_libdir_separator_GCJ=
17363  hardcode_direct_GCJ=no
17364  hardcode_minus_L_GCJ=no
17365  hardcode_shlibpath_var_GCJ=unsupported
17366  link_all_deplibs_GCJ=unknown
17367  hardcode_automatic_GCJ=no
17368  module_cmds_GCJ=
17369  module_expsym_cmds_GCJ=
17370  always_export_symbols_GCJ=no
17371  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17372  # include_expsyms should be a list of space-separated symbols to be *always*
17373  # included in the symbol list
17374  include_expsyms_GCJ=
17375  # exclude_expsyms can be an extended regexp of symbols to exclude
17376  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17377  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17378  # as well as any symbol that contains `d'.
17379  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17380  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17381  # platforms (ab)use it in PIC code, but their linkers get confused if
17382  # the symbol is explicitly referenced.  Since portable code cannot
17383  # rely on this symbol name, it's probably fine to never include it in
17384  # preloaded symbol tables.
17385  # Exclude shared library initialization/finalization symbols.
17386  extract_expsyms_cmds=
17387  # Just being paranoid about ensuring that cc_basename is set.
17388  for cc_temp in $compiler""; do
17389  case $cc_temp in
17390    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17391    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17392    \-*) ;;
17393    *) break;;
17394  esac
17395done
17396cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17397
17398  case $host_os in
17399  cygwin* | mingw* | pw32*)
17400    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17401    # When not using gcc, we currently assume that we are using
17402    # Microsoft Visual C++.
17403    if test "$GCC" != yes; then
17404      with_gnu_ld=no
17405    fi
17406    ;;
17407  interix*)
17408    # we just hope/assume this is gcc and not c89 (= MSVC++)
17409    with_gnu_ld=yes
17410    ;;
17411  openbsd*)
17412    with_gnu_ld=no
17413    ;;
17414  esac
17415
17416  ld_shlibs_GCJ=yes
17417  if test "$with_gnu_ld" = yes; then
17418    # If archive_cmds runs LD, not CC, wlarc should be empty
17419    wlarc='${wl}'
17420
17421    # Set some defaults for GNU ld with shared library support. These
17422    # are reset later if shared libraries are not supported. Putting them
17423    # here allows them to be overridden if necessary.
17424    runpath_var=LD_RUN_PATH
17425    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17426    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17427    # ancient GNU ld didn't support --whole-archive et. al.
17428    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17429	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17430      else
17431  	whole_archive_flag_spec_GCJ=
17432    fi
17433    supports_anon_versioning=no
17434    case `$LD -v 2>/dev/null` in
17435      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17436      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17437      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17438      *\ 2.11.*) ;; # other 2.11 versions
17439      *) supports_anon_versioning=yes ;;
17440    esac
17441
17442    # See if GNU ld supports shared libraries.
17443    case $host_os in
17444    aix[3-9]*)
17445      # On AIX/PPC, the GNU linker is very broken
17446      if test "$host_cpu" != ia64; then
17447	ld_shlibs_GCJ=no
17448	cat <<EOF 1>&2
17449
17450*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17451*** to be unable to reliably create shared libraries on AIX.
17452*** Therefore, libtool is disabling shared libraries support.  If you
17453*** really care for shared libraries, you may want to modify your PATH
17454*** so that a non-GNU linker is found, and then restart.
17455
17456EOF
17457      fi
17458      ;;
17459
17460    amigaos*)
17461      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)'
17462      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17463      hardcode_minus_L_GCJ=yes
17464
17465      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17466      # that the semantics of dynamic libraries on AmigaOS, at least up
17467      # to version 4, is to share data among multiple programs linked
17468      # with the same dynamic library.  Since this doesn't match the
17469      # behavior of shared libraries on other platforms, we can't use
17470      # them.
17471      ld_shlibs_GCJ=no
17472      ;;
17473
17474    beos*)
17475      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17476	allow_undefined_flag_GCJ=unsupported
17477	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17478	# support --undefined.  This deserves some investigation.  FIXME
17479	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17480      else
17481	ld_shlibs_GCJ=no
17482      fi
17483      ;;
17484
17485    cygwin* | mingw* | pw32*)
17486      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17487      # as there is no search path for DLLs.
17488      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17489      allow_undefined_flag_GCJ=unsupported
17490      always_export_symbols_GCJ=no
17491      enable_shared_with_static_runtimes_GCJ=yes
17492      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17493
17494      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17495        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17496	# If the export-symbols file already is a .def file (1st line
17497	# is EXPORTS), use it as is; otherwise, prepend...
17498	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17499	  cp $export_symbols $output_objdir/$soname.def;
17500	else
17501	  echo EXPORTS > $output_objdir/$soname.def;
17502	  cat $export_symbols >> $output_objdir/$soname.def;
17503	fi~
17504	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17505      else
17506	ld_shlibs_GCJ=no
17507      fi
17508      ;;
17509
17510    interix[3-9]*)
17511      hardcode_direct_GCJ=no
17512      hardcode_shlibpath_var_GCJ=no
17513      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17514      export_dynamic_flag_spec_GCJ='${wl}-E'
17515      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17516      # Instead, shared libraries are loaded at an image base (0x10000000 by
17517      # default) and relocated if they conflict, which is a slow very memory
17518      # consuming and fragmenting process.  To avoid this, we pick a random,
17519      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17520      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17521      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'
17522      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'
17523      ;;
17524
17525    gnu* | linux* | k*bsd*-gnu)
17526      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17527	tmp_addflag=
17528	case $cc_basename,$host_cpu in
17529	pgcc*)				# Portland Group C compiler
17530	  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'
17531	  tmp_addflag=' $pic_flag'
17532	  ;;
17533	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17534	  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'
17535	  tmp_addflag=' $pic_flag -Mnomain' ;;
17536	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17537	  tmp_addflag=' -i_dynamic' ;;
17538	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17539	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17540	ifc* | ifort*)			# Intel Fortran compiler
17541	  tmp_addflag=' -nofor_main' ;;
17542	esac
17543	case `$CC -V 2>&1 | sed 5q` in
17544	*Sun\ C*)			# Sun C 5.9
17545	  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'
17546	  tmp_sharedflag='-G' ;;
17547	*Sun\ F*)			# Sun Fortran 8.3
17548	  tmp_sharedflag='-G' ;;
17549	*)
17550	  tmp_sharedflag='-shared' ;;
17551	esac
17552	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17553
17554	if test $supports_anon_versioning = yes; then
17555	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17556  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17557  $echo "local: *; };" >> $output_objdir/$libname.ver~
17558	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17559	fi
17560      else
17561	ld_shlibs_GCJ=no
17562      fi
17563      ;;
17564
17565    netbsd*)
17566      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17567	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17568	wlarc=
17569      else
17570	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17571	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17572      fi
17573      ;;
17574
17575    solaris*)
17576      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17577	ld_shlibs_GCJ=no
17578	cat <<EOF 1>&2
17579
17580*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17581*** create shared libraries on Solaris systems.  Therefore, libtool
17582*** is disabling shared libraries support.  We urge you to upgrade GNU
17583*** binutils to release 2.9.1 or newer.  Another option is to modify
17584*** your PATH or compiler configuration so that the native linker is
17585*** used, and then restart.
17586
17587EOF
17588      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17589	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17590	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17591      else
17592	ld_shlibs_GCJ=no
17593      fi
17594      ;;
17595
17596    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17597      case `$LD -v 2>&1` in
17598        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17599	ld_shlibs_GCJ=no
17600	cat <<_LT_EOF 1>&2
17601
17602*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17603*** reliably create shared libraries on SCO systems.  Therefore, libtool
17604*** is disabling shared libraries support.  We urge you to upgrade GNU
17605*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17606*** your PATH or compiler configuration so that the native linker is
17607*** used, and then restart.
17608
17609_LT_EOF
17610	;;
17611	*)
17612	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17613	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17614	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17615	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17616	  else
17617	    ld_shlibs_GCJ=no
17618	  fi
17619	;;
17620      esac
17621      ;;
17622
17623    sunos4*)
17624      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17625      wlarc=
17626      hardcode_direct_GCJ=yes
17627      hardcode_shlibpath_var_GCJ=no
17628      ;;
17629
17630    *)
17631      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17632	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17633	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17634      else
17635	ld_shlibs_GCJ=no
17636      fi
17637      ;;
17638    esac
17639
17640    if test "$ld_shlibs_GCJ" = no; then
17641      runpath_var=
17642      hardcode_libdir_flag_spec_GCJ=
17643      export_dynamic_flag_spec_GCJ=
17644      whole_archive_flag_spec_GCJ=
17645    fi
17646  else
17647    # PORTME fill in a description of your system's linker (not GNU ld)
17648    case $host_os in
17649    aix3*)
17650      allow_undefined_flag_GCJ=unsupported
17651      always_export_symbols_GCJ=yes
17652      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'
17653      # Note: this linker hardcodes the directories in LIBPATH if there
17654      # are no directories specified by -L.
17655      hardcode_minus_L_GCJ=yes
17656      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17657	# Neither direct hardcoding nor static linking is supported with a
17658	# broken collect2.
17659	hardcode_direct_GCJ=unsupported
17660      fi
17661      ;;
17662
17663    aix[4-9]*)
17664      if test "$host_cpu" = ia64; then
17665	# On IA64, the linker does run time linking by default, so we don't
17666	# have to do anything special.
17667	aix_use_runtimelinking=no
17668	exp_sym_flag='-Bexport'
17669	no_entry_flag=""
17670      else
17671	# If we're using GNU nm, then we don't want the "-C" option.
17672	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17673	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17674	  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'
17675	else
17676	  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'
17677	fi
17678	aix_use_runtimelinking=no
17679
17680	# Test if we are trying to use run time linking or normal
17681	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17682	# need to do runtime linking.
17683	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17684	  for ld_flag in $LDFLAGS; do
17685  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17686  	    aix_use_runtimelinking=yes
17687  	    break
17688  	  fi
17689	  done
17690	  ;;
17691	esac
17692
17693	exp_sym_flag='-bexport'
17694	no_entry_flag='-bnoentry'
17695      fi
17696
17697      # When large executables or shared objects are built, AIX ld can
17698      # have problems creating the table of contents.  If linking a library
17699      # or program results in "error TOC overflow" add -mminimal-toc to
17700      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17701      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17702
17703      archive_cmds_GCJ=''
17704      hardcode_direct_GCJ=yes
17705      hardcode_libdir_separator_GCJ=':'
17706      link_all_deplibs_GCJ=yes
17707
17708      if test "$GCC" = yes; then
17709	case $host_os in aix4.[012]|aix4.[012].*)
17710	# We only want to do this on AIX 4.2 and lower, the check
17711	# below for broken collect2 doesn't work under 4.3+
17712	  collect2name=`${CC} -print-prog-name=collect2`
17713	  if test -f "$collect2name" && \
17714  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17715	  then
17716  	  # We have reworked collect2
17717  	  :
17718	  else
17719  	  # We have old collect2
17720  	  hardcode_direct_GCJ=unsupported
17721  	  # It fails to find uninstalled libraries when the uninstalled
17722  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17723  	  # to unsupported forces relinking
17724  	  hardcode_minus_L_GCJ=yes
17725  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17726  	  hardcode_libdir_separator_GCJ=
17727	  fi
17728	  ;;
17729	esac
17730	shared_flag='-shared'
17731	if test "$aix_use_runtimelinking" = yes; then
17732	  shared_flag="$shared_flag "'${wl}-G'
17733	fi
17734      else
17735	# not using gcc
17736	if test "$host_cpu" = ia64; then
17737  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17738  	# chokes on -Wl,-G. The following line is correct:
17739	  shared_flag='-G'
17740	else
17741	  if test "$aix_use_runtimelinking" = yes; then
17742	    shared_flag='${wl}-G'
17743	  else
17744	    shared_flag='${wl}-bM:SRE'
17745	  fi
17746	fi
17747      fi
17748
17749      # It seems that -bexpall does not export symbols beginning with
17750      # underscore (_), so it is better to generate a list of symbols to export.
17751      always_export_symbols_GCJ=yes
17752      if test "$aix_use_runtimelinking" = yes; then
17753	# Warning - without using the other runtime loading flags (-brtl),
17754	# -berok will link without error, but may produce a broken library.
17755	allow_undefined_flag_GCJ='-berok'
17756       # Determine the default libpath from the value encoded in an empty executable.
17757       cat >conftest.$ac_ext <<_ACEOF
17758/* confdefs.h.  */
17759_ACEOF
17760cat confdefs.h >>conftest.$ac_ext
17761cat >>conftest.$ac_ext <<_ACEOF
17762/* end confdefs.h.  */
17763
17764int
17765main ()
17766{
17767
17768  ;
17769  return 0;
17770}
17771_ACEOF
17772rm -f conftest.$ac_objext conftest$ac_exeext
17773if { (ac_try="$ac_link"
17774case "(($ac_try" in
17775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776  *) ac_try_echo=$ac_try;;
17777esac
17778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17779$as_echo "$ac_try_echo") >&5
17780  (eval "$ac_link") 2>conftest.er1
17781  ac_status=$?
17782  grep -v '^ *+' conftest.er1 >conftest.err
17783  rm -f conftest.er1
17784  cat conftest.err >&5
17785  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786  (exit $ac_status); } && {
17787	 test -z "$ac_c_werror_flag" ||
17788	 test ! -s conftest.err
17789       } && test -s conftest$ac_exeext && {
17790	 test "$cross_compiling" = yes ||
17791	 $as_test_x conftest$ac_exeext
17792       }; then
17793
17794lt_aix_libpath_sed='
17795    /Import File Strings/,/^$/ {
17796	/^0/ {
17797	    s/^0  *\(.*\)$/\1/
17798	    p
17799	}
17800    }'
17801aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17802# Check for a 64-bit object if we didn't find anything.
17803if test -z "$aix_libpath"; then
17804  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17805fi
17806else
17807  $as_echo "$as_me: failed program was:" >&5
17808sed 's/^/| /' conftest.$ac_ext >&5
17809
17810
17811fi
17812
17813rm -rf conftest.dSYM
17814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17815      conftest$ac_exeext conftest.$ac_ext
17816if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17817
17818       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17819	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"
17820       else
17821	if test "$host_cpu" = ia64; then
17822	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17823	  allow_undefined_flag_GCJ="-z nodefs"
17824	  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"
17825	else
17826	 # Determine the default libpath from the value encoded in an empty executable.
17827	 cat >conftest.$ac_ext <<_ACEOF
17828/* confdefs.h.  */
17829_ACEOF
17830cat confdefs.h >>conftest.$ac_ext
17831cat >>conftest.$ac_ext <<_ACEOF
17832/* end confdefs.h.  */
17833
17834int
17835main ()
17836{
17837
17838  ;
17839  return 0;
17840}
17841_ACEOF
17842rm -f conftest.$ac_objext conftest$ac_exeext
17843if { (ac_try="$ac_link"
17844case "(($ac_try" in
17845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846  *) ac_try_echo=$ac_try;;
17847esac
17848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17849$as_echo "$ac_try_echo") >&5
17850  (eval "$ac_link") 2>conftest.er1
17851  ac_status=$?
17852  grep -v '^ *+' conftest.er1 >conftest.err
17853  rm -f conftest.er1
17854  cat conftest.err >&5
17855  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856  (exit $ac_status); } && {
17857	 test -z "$ac_c_werror_flag" ||
17858	 test ! -s conftest.err
17859       } && test -s conftest$ac_exeext && {
17860	 test "$cross_compiling" = yes ||
17861	 $as_test_x conftest$ac_exeext
17862       }; then
17863
17864lt_aix_libpath_sed='
17865    /Import File Strings/,/^$/ {
17866	/^0/ {
17867	    s/^0  *\(.*\)$/\1/
17868	    p
17869	}
17870    }'
17871aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17872# Check for a 64-bit object if we didn't find anything.
17873if test -z "$aix_libpath"; then
17874  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17875fi
17876else
17877  $as_echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880
17881fi
17882
17883rm -rf conftest.dSYM
17884rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17885      conftest$ac_exeext conftest.$ac_ext
17886if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17887
17888	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17889	  # Warning - without using the other run time loading flags,
17890	  # -berok will link without error, but may produce a broken library.
17891	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17892	  allow_undefined_flag_GCJ=' ${wl}-berok'
17893	  # Exported symbols can be pulled into shared objects from archives
17894	  whole_archive_flag_spec_GCJ='$convenience'
17895	  archive_cmds_need_lc_GCJ=yes
17896	  # This is similar to how AIX traditionally builds its shared libraries.
17897	  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'
17898	fi
17899      fi
17900      ;;
17901
17902    amigaos*)
17903      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)'
17904      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17905      hardcode_minus_L_GCJ=yes
17906      # see comment about different semantics on the GNU ld section
17907      ld_shlibs_GCJ=no
17908      ;;
17909
17910    bsdi[45]*)
17911      export_dynamic_flag_spec_GCJ=-rdynamic
17912      ;;
17913
17914    cygwin* | mingw* | pw32*)
17915      # When not using gcc, we currently assume that we are using
17916      # Microsoft Visual C++.
17917      # hardcode_libdir_flag_spec is actually meaningless, as there is
17918      # no search path for DLLs.
17919      hardcode_libdir_flag_spec_GCJ=' '
17920      allow_undefined_flag_GCJ=unsupported
17921      # Tell ltmain to make .lib files, not .a files.
17922      libext=lib
17923      # Tell ltmain to make .dll files, not .so files.
17924      shrext_cmds=".dll"
17925      # FIXME: Setting linknames here is a bad hack.
17926      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17927      # The linker will automatically build a .lib file if we build a DLL.
17928      old_archive_From_new_cmds_GCJ='true'
17929      # FIXME: Should let the user specify the lib program.
17930      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17931      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17932      enable_shared_with_static_runtimes_GCJ=yes
17933      ;;
17934
17935    darwin* | rhapsody*)
17936      case $host_os in
17937        rhapsody* | darwin1.[012])
17938         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17939         ;;
17940       *) # Darwin 1.3 on
17941         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17942           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17943         else
17944           case ${MACOSX_DEPLOYMENT_TARGET} in
17945             10.[012])
17946               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17947               ;;
17948             10.*)
17949               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17950               ;;
17951           esac
17952         fi
17953         ;;
17954      esac
17955      archive_cmds_need_lc_GCJ=no
17956      hardcode_direct_GCJ=no
17957      hardcode_automatic_GCJ=yes
17958      hardcode_shlibpath_var_GCJ=unsupported
17959      whole_archive_flag_spec_GCJ=''
17960      link_all_deplibs_GCJ=yes
17961    if test "$GCC" = yes ; then
17962    	output_verbose_link_cmd='echo'
17963        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}"
17964        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17965        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}"
17966        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}"
17967    else
17968      case $cc_basename in
17969        xlc*)
17970         output_verbose_link_cmd='echo'
17971         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17972         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17973          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17974         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}'
17975          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}'
17976          ;;
17977       *)
17978         ld_shlibs_GCJ=no
17979          ;;
17980      esac
17981    fi
17982      ;;
17983
17984    dgux*)
17985      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17986      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17987      hardcode_shlibpath_var_GCJ=no
17988      ;;
17989
17990    freebsd1*)
17991      ld_shlibs_GCJ=no
17992      ;;
17993
17994    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17995    # support.  Future versions do this automatically, but an explicit c++rt0.o
17996    # does not break anything, and helps significantly (at the cost of a little
17997    # extra space).
17998    freebsd2.2*)
17999      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18000      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18001      hardcode_direct_GCJ=yes
18002      hardcode_shlibpath_var_GCJ=no
18003      ;;
18004
18005    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18006    freebsd2*)
18007      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18008      hardcode_direct_GCJ=yes
18009      hardcode_minus_L_GCJ=yes
18010      hardcode_shlibpath_var_GCJ=no
18011      ;;
18012
18013    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18014    freebsd* | dragonfly*)
18015      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18016      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18017      hardcode_direct_GCJ=yes
18018      hardcode_shlibpath_var_GCJ=no
18019      ;;
18020
18021    hpux9*)
18022      if test "$GCC" = yes; then
18023	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'
18024      else
18025	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'
18026      fi
18027      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18028      hardcode_libdir_separator_GCJ=:
18029      hardcode_direct_GCJ=yes
18030
18031      # hardcode_minus_L: Not really in the search PATH,
18032      # but as the default location of the library.
18033      hardcode_minus_L_GCJ=yes
18034      export_dynamic_flag_spec_GCJ='${wl}-E'
18035      ;;
18036
18037    hpux10*)
18038      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18039	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18040      else
18041	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18042      fi
18043      if test "$with_gnu_ld" = no; then
18044	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18045	hardcode_libdir_separator_GCJ=:
18046
18047	hardcode_direct_GCJ=yes
18048	export_dynamic_flag_spec_GCJ='${wl}-E'
18049
18050	# hardcode_minus_L: Not really in the search PATH,
18051	# but as the default location of the library.
18052	hardcode_minus_L_GCJ=yes
18053      fi
18054      ;;
18055
18056    hpux11*)
18057      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18058	case $host_cpu in
18059	hppa*64*)
18060	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18061	  ;;
18062	ia64*)
18063	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18064	  ;;
18065	*)
18066	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18067	  ;;
18068	esac
18069      else
18070	case $host_cpu in
18071	hppa*64*)
18072	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18073	  ;;
18074	ia64*)
18075	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18076	  ;;
18077	*)
18078	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18079	  ;;
18080	esac
18081      fi
18082      if test "$with_gnu_ld" = no; then
18083	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18084	hardcode_libdir_separator_GCJ=:
18085
18086	case $host_cpu in
18087	hppa*64*|ia64*)
18088	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18089	  hardcode_direct_GCJ=no
18090	  hardcode_shlibpath_var_GCJ=no
18091	  ;;
18092	*)
18093	  hardcode_direct_GCJ=yes
18094	  export_dynamic_flag_spec_GCJ='${wl}-E'
18095
18096	  # hardcode_minus_L: Not really in the search PATH,
18097	  # but as the default location of the library.
18098	  hardcode_minus_L_GCJ=yes
18099	  ;;
18100	esac
18101      fi
18102      ;;
18103
18104    irix5* | irix6* | nonstopux*)
18105      if test "$GCC" = yes; then
18106	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'
18107      else
18108	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'
18109	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18110      fi
18111      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18112      hardcode_libdir_separator_GCJ=:
18113      link_all_deplibs_GCJ=yes
18114      ;;
18115
18116    netbsd*)
18117      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18118	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18119      else
18120	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18121      fi
18122      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18123      hardcode_direct_GCJ=yes
18124      hardcode_shlibpath_var_GCJ=no
18125      ;;
18126
18127    newsos6)
18128      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18129      hardcode_direct_GCJ=yes
18130      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18131      hardcode_libdir_separator_GCJ=:
18132      hardcode_shlibpath_var_GCJ=no
18133      ;;
18134
18135    openbsd*)
18136      if test -f /usr/libexec/ld.so; then
18137	hardcode_direct_GCJ=yes
18138	hardcode_shlibpath_var_GCJ=no
18139	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18140	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18141	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18142	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18143	  export_dynamic_flag_spec_GCJ='${wl}-E'
18144	else
18145	  case $host_os in
18146	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18147	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18148	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18149	     ;;
18150	   *)
18151	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18152	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18153	     ;;
18154	  esac
18155        fi
18156      else
18157	ld_shlibs_GCJ=no
18158      fi
18159      ;;
18160
18161    os2*)
18162      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18163      hardcode_minus_L_GCJ=yes
18164      allow_undefined_flag_GCJ=unsupported
18165      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'
18166      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18167      ;;
18168
18169    osf3*)
18170      if test "$GCC" = yes; then
18171	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18172	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'
18173      else
18174	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18175	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'
18176      fi
18177      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18178      hardcode_libdir_separator_GCJ=:
18179      ;;
18180
18181    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18182      if test "$GCC" = yes; then
18183	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18184	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'
18185	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18186      else
18187	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18188	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'
18189	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~
18190	$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'
18191
18192	# Both c and cxx compiler support -rpath directly
18193	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18194      fi
18195      hardcode_libdir_separator_GCJ=:
18196      ;;
18197
18198    solaris*)
18199      no_undefined_flag_GCJ=' -z text'
18200      if test "$GCC" = yes; then
18201	wlarc='${wl}'
18202	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18203	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18204	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18205      else
18206	wlarc=''
18207	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18208	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18209  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18210      fi
18211      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18212      hardcode_shlibpath_var_GCJ=no
18213      case $host_os in
18214      solaris2.[0-5] | solaris2.[0-5].*) ;;
18215      *)
18216	# The compiler driver will combine and reorder linker options,
18217	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18218	# but is careful enough not to reorder.
18219 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18220	if test "$GCC" = yes; then
18221	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18222	else
18223	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18224	fi
18225	;;
18226      esac
18227      link_all_deplibs_GCJ=yes
18228      ;;
18229
18230    sunos4*)
18231      if test "x$host_vendor" = xsequent; then
18232	# Use $CC to link under sequent, because it throws in some extra .o
18233	# files that make .init and .fini sections work.
18234	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18235      else
18236	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18237      fi
18238      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18239      hardcode_direct_GCJ=yes
18240      hardcode_minus_L_GCJ=yes
18241      hardcode_shlibpath_var_GCJ=no
18242      ;;
18243
18244    sysv4)
18245      case $host_vendor in
18246	sni)
18247	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18248	  hardcode_direct_GCJ=yes # is this really true???
18249	;;
18250	siemens)
18251	  ## LD is ld it makes a PLAMLIB
18252	  ## CC just makes a GrossModule.
18253	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18254	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18255	  hardcode_direct_GCJ=no
18256        ;;
18257	motorola)
18258	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18259	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18260	;;
18261      esac
18262      runpath_var='LD_RUN_PATH'
18263      hardcode_shlibpath_var_GCJ=no
18264      ;;
18265
18266    sysv4.3*)
18267      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18268      hardcode_shlibpath_var_GCJ=no
18269      export_dynamic_flag_spec_GCJ='-Bexport'
18270      ;;
18271
18272    sysv4*MP*)
18273      if test -d /usr/nec; then
18274	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18275	hardcode_shlibpath_var_GCJ=no
18276	runpath_var=LD_RUN_PATH
18277	hardcode_runpath_var=yes
18278	ld_shlibs_GCJ=yes
18279      fi
18280      ;;
18281
18282    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18283      no_undefined_flag_GCJ='${wl}-z,text'
18284      archive_cmds_need_lc_GCJ=no
18285      hardcode_shlibpath_var_GCJ=no
18286      runpath_var='LD_RUN_PATH'
18287
18288      if test "$GCC" = yes; then
18289	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18290	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18291      else
18292	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18293	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18294      fi
18295      ;;
18296
18297    sysv5* | sco3.2v5* | sco5v6*)
18298      # Note: We can NOT use -z defs as we might desire, because we do not
18299      # link with -lc, and that would cause any symbols used from libc to
18300      # always be unresolved, which means just about no library would
18301      # ever link correctly.  If we're not using GNU ld we use -z text
18302      # though, which does catch some bad symbols but isn't as heavy-handed
18303      # as -z defs.
18304      no_undefined_flag_GCJ='${wl}-z,text'
18305      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18306      archive_cmds_need_lc_GCJ=no
18307      hardcode_shlibpath_var_GCJ=no
18308      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18309      hardcode_libdir_separator_GCJ=':'
18310      link_all_deplibs_GCJ=yes
18311      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18312      runpath_var='LD_RUN_PATH'
18313
18314      if test "$GCC" = yes; then
18315	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18316	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18317      else
18318	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18319	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18320      fi
18321      ;;
18322
18323    uts4*)
18324      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18325      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18326      hardcode_shlibpath_var_GCJ=no
18327      ;;
18328
18329    *)
18330      ld_shlibs_GCJ=no
18331      ;;
18332    esac
18333  fi
18334
18335{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18336$as_echo "$ld_shlibs_GCJ" >&6; }
18337test "$ld_shlibs_GCJ" = no && can_build_shared=no
18338
18339#
18340# Do we need to explicitly link libc?
18341#
18342case "x$archive_cmds_need_lc_GCJ" in
18343x|xyes)
18344  # Assume -lc should be added
18345  archive_cmds_need_lc_GCJ=yes
18346
18347  if test "$enable_shared" = yes && test "$GCC" = yes; then
18348    case $archive_cmds_GCJ in
18349    *'~'*)
18350      # FIXME: we may have to deal with multi-command sequences.
18351      ;;
18352    '$CC '*)
18353      # Test whether the compiler implicitly links with -lc since on some
18354      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18355      # to ld, don't add -lc before -lgcc.
18356      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18357$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18358      $rm conftest*
18359      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18360
18361      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18362  (eval $ac_compile) 2>&5
18363  ac_status=$?
18364  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365  (exit $ac_status); } 2>conftest.err; then
18366        soname=conftest
18367        lib=conftest
18368        libobjs=conftest.$ac_objext
18369        deplibs=
18370        wl=$lt_prog_compiler_wl_GCJ
18371	pic_flag=$lt_prog_compiler_pic_GCJ
18372        compiler_flags=-v
18373        linker_flags=-v
18374        verstring=
18375        output_objdir=.
18376        libname=conftest
18377        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18378        allow_undefined_flag_GCJ=
18379        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18380  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18381  ac_status=$?
18382  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383  (exit $ac_status); }
18384        then
18385	  archive_cmds_need_lc_GCJ=no
18386        else
18387	  archive_cmds_need_lc_GCJ=yes
18388        fi
18389        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18390      else
18391        cat conftest.err 1>&5
18392      fi
18393      $rm conftest*
18394      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18395$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18396      ;;
18397    esac
18398  fi
18399  ;;
18400esac
18401
18402{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18403$as_echo_n "checking dynamic linker characteristics... " >&6; }
18404library_names_spec=
18405libname_spec='lib$name'
18406soname_spec=
18407shrext_cmds=".so"
18408postinstall_cmds=
18409postuninstall_cmds=
18410finish_cmds=
18411finish_eval=
18412shlibpath_var=
18413shlibpath_overrides_runpath=unknown
18414version_type=none
18415dynamic_linker="$host_os ld.so"
18416sys_lib_dlsearch_path_spec="/lib /usr/lib"
18417
18418need_lib_prefix=unknown
18419hardcode_into_libs=no
18420
18421# when you set need_version to no, make sure it does not cause -set_version
18422# flags to be left without arguments
18423need_version=unknown
18424
18425case $host_os in
18426aix3*)
18427  version_type=linux
18428  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18429  shlibpath_var=LIBPATH
18430
18431  # AIX 3 has no versioning support, so we append a major version to the name.
18432  soname_spec='${libname}${release}${shared_ext}$major'
18433  ;;
18434
18435aix[4-9]*)
18436  version_type=linux
18437  need_lib_prefix=no
18438  need_version=no
18439  hardcode_into_libs=yes
18440  if test "$host_cpu" = ia64; then
18441    # AIX 5 supports IA64
18442    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18443    shlibpath_var=LD_LIBRARY_PATH
18444  else
18445    # With GCC up to 2.95.x, collect2 would create an import file
18446    # for dependence libraries.  The import file would start with
18447    # the line `#! .'.  This would cause the generated library to
18448    # depend on `.', always an invalid library.  This was fixed in
18449    # development snapshots of GCC prior to 3.0.
18450    case $host_os in
18451      aix4 | aix4.[01] | aix4.[01].*)
18452      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18453	   echo ' yes '
18454	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18455	:
18456      else
18457	can_build_shared=no
18458      fi
18459      ;;
18460    esac
18461    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18462    # soname into executable. Probably we can add versioning support to
18463    # collect2, so additional links can be useful in future.
18464    if test "$aix_use_runtimelinking" = yes; then
18465      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18466      # instead of lib<name>.a to let people know that these are not
18467      # typical AIX shared libraries.
18468      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18469    else
18470      # We preserve .a as extension for shared libraries through AIX4.2
18471      # and later when we are not doing run time linking.
18472      library_names_spec='${libname}${release}.a $libname.a'
18473      soname_spec='${libname}${release}${shared_ext}$major'
18474    fi
18475    shlibpath_var=LIBPATH
18476  fi
18477  ;;
18478
18479amigaos*)
18480  library_names_spec='$libname.ixlibrary $libname.a'
18481  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18482  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'
18483  ;;
18484
18485beos*)
18486  library_names_spec='${libname}${shared_ext}'
18487  dynamic_linker="$host_os ld.so"
18488  shlibpath_var=LIBRARY_PATH
18489  ;;
18490
18491bsdi[45]*)
18492  version_type=linux
18493  need_version=no
18494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18495  soname_spec='${libname}${release}${shared_ext}$major'
18496  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18497  shlibpath_var=LD_LIBRARY_PATH
18498  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18499  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18500  # the default ld.so.conf also contains /usr/contrib/lib and
18501  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18502  # libtool to hard-code these into programs
18503  ;;
18504
18505cygwin* | mingw* | pw32*)
18506  version_type=windows
18507  shrext_cmds=".dll"
18508  need_version=no
18509  need_lib_prefix=no
18510
18511  case $GCC,$host_os in
18512  yes,cygwin* | yes,mingw* | yes,pw32*)
18513    library_names_spec='$libname.dll.a'
18514    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18515    postinstall_cmds='base_file=`basename \${file}`~
18516      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18517      dldir=$destdir/`dirname \$dlpath`~
18518      test -d \$dldir || mkdir -p \$dldir~
18519      $install_prog $dir/$dlname \$dldir/$dlname~
18520      chmod a+x \$dldir/$dlname'
18521    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18522      dlpath=$dir/\$dldll~
18523       $rm \$dlpath'
18524    shlibpath_overrides_runpath=yes
18525
18526    case $host_os in
18527    cygwin*)
18528      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18529      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18530      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18531      ;;
18532    mingw*)
18533      # MinGW DLLs use traditional 'lib' prefix
18534      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18535      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18536      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18537        # It is most probably a Windows format PATH printed by
18538        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18539        # path with ; separators, and with drive letters. We can handle the
18540        # drive letters (cygwin fileutils understands them), so leave them,
18541        # especially as we might pass files found there to a mingw objdump,
18542        # which wouldn't understand a cygwinified path. Ahh.
18543        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18544      else
18545        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18546      fi
18547      ;;
18548    pw32*)
18549      # pw32 DLLs use 'pw' prefix rather than 'lib'
18550      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18551      ;;
18552    esac
18553    ;;
18554
18555  *)
18556    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18557    ;;
18558  esac
18559  dynamic_linker='Win32 ld.exe'
18560  # FIXME: first we should search . and the directory the executable is in
18561  shlibpath_var=PATH
18562  ;;
18563
18564darwin* | rhapsody*)
18565  dynamic_linker="$host_os dyld"
18566  version_type=darwin
18567  need_lib_prefix=no
18568  need_version=no
18569  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18570  soname_spec='${libname}${release}${major}$shared_ext'
18571  shlibpath_overrides_runpath=yes
18572  shlibpath_var=DYLD_LIBRARY_PATH
18573  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18574
18575  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18576  ;;
18577
18578dgux*)
18579  version_type=linux
18580  need_lib_prefix=no
18581  need_version=no
18582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18583  soname_spec='${libname}${release}${shared_ext}$major'
18584  shlibpath_var=LD_LIBRARY_PATH
18585  ;;
18586
18587freebsd1*)
18588  dynamic_linker=no
18589  ;;
18590
18591freebsd* | dragonfly*)
18592  # DragonFly does not have aout.  When/if they implement a new
18593  # versioning mechanism, adjust this.
18594  if test -x /usr/bin/objformat; then
18595    objformat=`/usr/bin/objformat`
18596  else
18597    case $host_os in
18598    freebsd[123]*) objformat=aout ;;
18599    *) objformat=elf ;;
18600    esac
18601  fi
18602  version_type=freebsd-$objformat
18603  case $version_type in
18604    freebsd-elf*)
18605      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18606      need_version=no
18607      need_lib_prefix=no
18608      ;;
18609    freebsd-*)
18610      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18611      need_version=yes
18612      ;;
18613  esac
18614  shlibpath_var=LD_LIBRARY_PATH
18615  case $host_os in
18616  freebsd2*)
18617    shlibpath_overrides_runpath=yes
18618    ;;
18619  freebsd3.[01]* | freebsdelf3.[01]*)
18620    shlibpath_overrides_runpath=yes
18621    hardcode_into_libs=yes
18622    ;;
18623  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18624  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18625    shlibpath_overrides_runpath=no
18626    hardcode_into_libs=yes
18627    ;;
18628  *) # from 4.6 on, and DragonFly
18629    shlibpath_overrides_runpath=yes
18630    hardcode_into_libs=yes
18631    ;;
18632  esac
18633  ;;
18634
18635gnu*)
18636  version_type=linux
18637  need_lib_prefix=no
18638  need_version=no
18639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18640  soname_spec='${libname}${release}${shared_ext}$major'
18641  shlibpath_var=LD_LIBRARY_PATH
18642  hardcode_into_libs=yes
18643  ;;
18644
18645hpux9* | hpux10* | hpux11*)
18646  # Give a soname corresponding to the major version so that dld.sl refuses to
18647  # link against other versions.
18648  version_type=sunos
18649  need_lib_prefix=no
18650  need_version=no
18651  case $host_cpu in
18652  ia64*)
18653    shrext_cmds='.so'
18654    hardcode_into_libs=yes
18655    dynamic_linker="$host_os dld.so"
18656    shlibpath_var=LD_LIBRARY_PATH
18657    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18658    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18659    soname_spec='${libname}${release}${shared_ext}$major'
18660    if test "X$HPUX_IA64_MODE" = X32; then
18661      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18662    else
18663      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18664    fi
18665    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18666    ;;
18667   hppa*64*)
18668     shrext_cmds='.sl'
18669     hardcode_into_libs=yes
18670     dynamic_linker="$host_os dld.sl"
18671     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18672     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18673     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18674     soname_spec='${libname}${release}${shared_ext}$major'
18675     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18676     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18677     ;;
18678   *)
18679    shrext_cmds='.sl'
18680    dynamic_linker="$host_os dld.sl"
18681    shlibpath_var=SHLIB_PATH
18682    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18683    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18684    soname_spec='${libname}${release}${shared_ext}$major'
18685    ;;
18686  esac
18687  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18688  postinstall_cmds='chmod 555 $lib'
18689  ;;
18690
18691interix[3-9]*)
18692  version_type=linux
18693  need_lib_prefix=no
18694  need_version=no
18695  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18696  soname_spec='${libname}${release}${shared_ext}$major'
18697  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18698  shlibpath_var=LD_LIBRARY_PATH
18699  shlibpath_overrides_runpath=no
18700  hardcode_into_libs=yes
18701  ;;
18702
18703irix5* | irix6* | nonstopux*)
18704  case $host_os in
18705    nonstopux*) version_type=nonstopux ;;
18706    *)
18707	if test "$lt_cv_prog_gnu_ld" = yes; then
18708		version_type=linux
18709	else
18710		version_type=irix
18711	fi ;;
18712  esac
18713  need_lib_prefix=no
18714  need_version=no
18715  soname_spec='${libname}${release}${shared_ext}$major'
18716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18717  case $host_os in
18718  irix5* | nonstopux*)
18719    libsuff= shlibsuff=
18720    ;;
18721  *)
18722    case $LD in # libtool.m4 will add one of these switches to LD
18723    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18724      libsuff= shlibsuff= libmagic=32-bit;;
18725    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18726      libsuff=32 shlibsuff=N32 libmagic=N32;;
18727    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18728      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18729    *) libsuff= shlibsuff= libmagic=never-match;;
18730    esac
18731    ;;
18732  esac
18733  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18734  shlibpath_overrides_runpath=no
18735  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18736  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18737  hardcode_into_libs=yes
18738  ;;
18739
18740# No shared lib support for Linux oldld, aout, or coff.
18741linux*oldld* | linux*aout* | linux*coff*)
18742  dynamic_linker=no
18743  ;;
18744
18745# This must be Linux ELF.
18746linux* | k*bsd*-gnu)
18747  version_type=linux
18748  need_lib_prefix=no
18749  need_version=no
18750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18751  soname_spec='${libname}${release}${shared_ext}$major'
18752  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18753  shlibpath_var=LD_LIBRARY_PATH
18754  shlibpath_overrides_runpath=no
18755  # This implies no fast_install, which is unacceptable.
18756  # Some rework will be needed to allow for fast_install
18757  # before this can be enabled.
18758  hardcode_into_libs=yes
18759  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18760  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18761
18762  # Append ld.so.conf contents to the search path
18763  if test -f /etc/ld.so.conf; then
18764    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' ' '`
18765    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18766  fi
18767
18768  # We used to test for /lib/ld.so.1 and disable shared libraries on
18769  # powerpc, because MkLinux only supported shared libraries with the
18770  # GNU dynamic linker.  Since this was broken with cross compilers,
18771  # most powerpc-linux boxes support dynamic linking these days and
18772  # people can always --disable-shared, the test was removed, and we
18773  # assume the GNU/Linux dynamic linker is in use.
18774  dynamic_linker='GNU/Linux ld.so'
18775  ;;
18776
18777netbsd*)
18778  version_type=sunos
18779  need_lib_prefix=no
18780  need_version=no
18781  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18782    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18783    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18784    dynamic_linker='NetBSD (a.out) ld.so'
18785  else
18786    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18787    soname_spec='${libname}${release}${shared_ext}$major'
18788    dynamic_linker='NetBSD ld.elf_so'
18789  fi
18790  shlibpath_var=LD_LIBRARY_PATH
18791  shlibpath_overrides_runpath=yes
18792  hardcode_into_libs=yes
18793  ;;
18794
18795newsos6)
18796  version_type=linux
18797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18798  shlibpath_var=LD_LIBRARY_PATH
18799  shlibpath_overrides_runpath=yes
18800  ;;
18801
18802nto-qnx*)
18803  version_type=linux
18804  need_lib_prefix=no
18805  need_version=no
18806  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18807  soname_spec='${libname}${release}${shared_ext}$major'
18808  shlibpath_var=LD_LIBRARY_PATH
18809  shlibpath_overrides_runpath=yes
18810  ;;
18811
18812openbsd*)
18813  version_type=sunos
18814  sys_lib_dlsearch_path_spec="/usr/lib"
18815  need_lib_prefix=no
18816  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18817  case $host_os in
18818    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18819    *)                         need_version=no  ;;
18820  esac
18821  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18822  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18823  shlibpath_var=LD_LIBRARY_PATH
18824  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18825    case $host_os in
18826      openbsd2.[89] | openbsd2.[89].*)
18827	shlibpath_overrides_runpath=no
18828	;;
18829      *)
18830	shlibpath_overrides_runpath=yes
18831	;;
18832      esac
18833  else
18834    shlibpath_overrides_runpath=yes
18835  fi
18836  ;;
18837
18838os2*)
18839  libname_spec='$name'
18840  shrext_cmds=".dll"
18841  need_lib_prefix=no
18842  library_names_spec='$libname${shared_ext} $libname.a'
18843  dynamic_linker='OS/2 ld.exe'
18844  shlibpath_var=LIBPATH
18845  ;;
18846
18847osf3* | osf4* | osf5*)
18848  version_type=osf
18849  need_lib_prefix=no
18850  need_version=no
18851  soname_spec='${libname}${release}${shared_ext}$major'
18852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18853  shlibpath_var=LD_LIBRARY_PATH
18854  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18855  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18856  ;;
18857
18858rdos*)
18859  dynamic_linker=no
18860  ;;
18861
18862solaris*)
18863  version_type=linux
18864  need_lib_prefix=no
18865  need_version=no
18866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18867  soname_spec='${libname}${release}${shared_ext}$major'
18868  shlibpath_var=LD_LIBRARY_PATH
18869  shlibpath_overrides_runpath=yes
18870  hardcode_into_libs=yes
18871  # ldd complains unless libraries are executable
18872  postinstall_cmds='chmod +x $lib'
18873  ;;
18874
18875sunos4*)
18876  version_type=sunos
18877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18878  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18879  shlibpath_var=LD_LIBRARY_PATH
18880  shlibpath_overrides_runpath=yes
18881  if test "$with_gnu_ld" = yes; then
18882    need_lib_prefix=no
18883  fi
18884  need_version=yes
18885  ;;
18886
18887sysv4 | sysv4.3*)
18888  version_type=linux
18889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18890  soname_spec='${libname}${release}${shared_ext}$major'
18891  shlibpath_var=LD_LIBRARY_PATH
18892  case $host_vendor in
18893    sni)
18894      shlibpath_overrides_runpath=no
18895      need_lib_prefix=no
18896      export_dynamic_flag_spec='${wl}-Blargedynsym'
18897      runpath_var=LD_RUN_PATH
18898      ;;
18899    siemens)
18900      need_lib_prefix=no
18901      ;;
18902    motorola)
18903      need_lib_prefix=no
18904      need_version=no
18905      shlibpath_overrides_runpath=no
18906      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18907      ;;
18908  esac
18909  ;;
18910
18911sysv4*MP*)
18912  if test -d /usr/nec ;then
18913    version_type=linux
18914    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18915    soname_spec='$libname${shared_ext}.$major'
18916    shlibpath_var=LD_LIBRARY_PATH
18917  fi
18918  ;;
18919
18920sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18921  version_type=freebsd-elf
18922  need_lib_prefix=no
18923  need_version=no
18924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18925  soname_spec='${libname}${release}${shared_ext}$major'
18926  shlibpath_var=LD_LIBRARY_PATH
18927  hardcode_into_libs=yes
18928  if test "$with_gnu_ld" = yes; then
18929    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18930    shlibpath_overrides_runpath=no
18931  else
18932    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18933    shlibpath_overrides_runpath=yes
18934    case $host_os in
18935      sco3.2v5*)
18936        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18937	;;
18938    esac
18939  fi
18940  sys_lib_dlsearch_path_spec='/usr/lib'
18941  ;;
18942
18943uts4*)
18944  version_type=linux
18945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18946  soname_spec='${libname}${release}${shared_ext}$major'
18947  shlibpath_var=LD_LIBRARY_PATH
18948  ;;
18949
18950*)
18951  dynamic_linker=no
18952  ;;
18953esac
18954{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18955$as_echo "$dynamic_linker" >&6; }
18956test "$dynamic_linker" = no && can_build_shared=no
18957
18958if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18959  $as_echo_n "(cached) " >&6
18960else
18961  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18962fi
18963
18964sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18965if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18966  $as_echo_n "(cached) " >&6
18967else
18968  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18969fi
18970
18971sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18972
18973variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18974if test "$GCC" = yes; then
18975  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18976fi
18977
18978{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18979$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18980hardcode_action_GCJ=
18981if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18982   test -n "$runpath_var_GCJ" || \
18983   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18984
18985  # We can hardcode non-existant directories.
18986  if test "$hardcode_direct_GCJ" != no &&
18987     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18988     # have to relink, otherwise we might link with an installed library
18989     # when we should be linking with a yet-to-be-installed one
18990     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18991     test "$hardcode_minus_L_GCJ" != no; then
18992    # Linking always hardcodes the temporary library directory.
18993    hardcode_action_GCJ=relink
18994  else
18995    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18996    hardcode_action_GCJ=immediate
18997  fi
18998else
18999  # We cannot hardcode anything, or else we can only hardcode existing
19000  # directories.
19001  hardcode_action_GCJ=unsupported
19002fi
19003{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19004$as_echo "$hardcode_action_GCJ" >&6; }
19005
19006if test "$hardcode_action_GCJ" = relink; then
19007  # Fast installation is not supported
19008  enable_fast_install=no
19009elif test "$shlibpath_overrides_runpath" = yes ||
19010     test "$enable_shared" = no; then
19011  # Fast installation is not necessary
19012  enable_fast_install=needless
19013fi
19014
19015
19016# The else clause should only fire when bootstrapping the
19017# libtool distribution, otherwise you forgot to ship ltmain.sh
19018# with your package, and you will get complaints that there are
19019# no rules to generate ltmain.sh.
19020if test -f "$ltmain"; then
19021  # See if we are running on zsh, and set the options which allow our commands through
19022  # without removal of \ escapes.
19023  if test -n "${ZSH_VERSION+set}" ; then
19024    setopt NO_GLOB_SUBST
19025  fi
19026  # Now quote all the things that may contain metacharacters while being
19027  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19028  # variables and quote the copies for generation of the libtool script.
19029  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19030    SED SHELL STRIP \
19031    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19032    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19033    deplibs_check_method reload_flag reload_cmds need_locks \
19034    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19035    lt_cv_sys_global_symbol_to_c_name_address \
19036    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19037    old_postinstall_cmds old_postuninstall_cmds \
19038    compiler_GCJ \
19039    CC_GCJ \
19040    LD_GCJ \
19041    lt_prog_compiler_wl_GCJ \
19042    lt_prog_compiler_pic_GCJ \
19043    lt_prog_compiler_static_GCJ \
19044    lt_prog_compiler_no_builtin_flag_GCJ \
19045    export_dynamic_flag_spec_GCJ \
19046    thread_safe_flag_spec_GCJ \
19047    whole_archive_flag_spec_GCJ \
19048    enable_shared_with_static_runtimes_GCJ \
19049    old_archive_cmds_GCJ \
19050    old_archive_from_new_cmds_GCJ \
19051    predep_objects_GCJ \
19052    postdep_objects_GCJ \
19053    predeps_GCJ \
19054    postdeps_GCJ \
19055    compiler_lib_search_path_GCJ \
19056    compiler_lib_search_dirs_GCJ \
19057    archive_cmds_GCJ \
19058    archive_expsym_cmds_GCJ \
19059    postinstall_cmds_GCJ \
19060    postuninstall_cmds_GCJ \
19061    old_archive_from_expsyms_cmds_GCJ \
19062    allow_undefined_flag_GCJ \
19063    no_undefined_flag_GCJ \
19064    export_symbols_cmds_GCJ \
19065    hardcode_libdir_flag_spec_GCJ \
19066    hardcode_libdir_flag_spec_ld_GCJ \
19067    hardcode_libdir_separator_GCJ \
19068    hardcode_automatic_GCJ \
19069    module_cmds_GCJ \
19070    module_expsym_cmds_GCJ \
19071    lt_cv_prog_compiler_c_o_GCJ \
19072    fix_srcfile_path_GCJ \
19073    exclude_expsyms_GCJ \
19074    include_expsyms_GCJ; do
19075
19076    case $var in
19077    old_archive_cmds_GCJ | \
19078    old_archive_from_new_cmds_GCJ | \
19079    archive_cmds_GCJ | \
19080    archive_expsym_cmds_GCJ | \
19081    module_cmds_GCJ | \
19082    module_expsym_cmds_GCJ | \
19083    old_archive_from_expsyms_cmds_GCJ | \
19084    export_symbols_cmds_GCJ | \
19085    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19086    postinstall_cmds | postuninstall_cmds | \
19087    old_postinstall_cmds | old_postuninstall_cmds | \
19088    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19089      # Double-quote double-evaled strings.
19090      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19091      ;;
19092    *)
19093      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19094      ;;
19095    esac
19096  done
19097
19098  case $lt_echo in
19099  *'\$0 --fallback-echo"')
19100    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19101    ;;
19102  esac
19103
19104cfgfile="$ofile"
19105
19106  cat <<__EOF__ >> "$cfgfile"
19107# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19108
19109# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19110
19111# Shell to use when invoking shell scripts.
19112SHELL=$lt_SHELL
19113
19114# Whether or not to build shared libraries.
19115build_libtool_libs=$enable_shared
19116
19117# Whether or not to build static libraries.
19118build_old_libs=$enable_static
19119
19120# Whether or not to add -lc for building shared libraries.
19121build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19122
19123# Whether or not to disallow shared libs when runtime libs are static
19124allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19125
19126# Whether or not to optimize for fast installation.
19127fast_install=$enable_fast_install
19128
19129# The host system.
19130host_alias=$host_alias
19131host=$host
19132host_os=$host_os
19133
19134# The build system.
19135build_alias=$build_alias
19136build=$build
19137build_os=$build_os
19138
19139# An echo program that does not interpret backslashes.
19140echo=$lt_echo
19141
19142# The archiver.
19143AR=$lt_AR
19144AR_FLAGS=$lt_AR_FLAGS
19145
19146# A C compiler.
19147LTCC=$lt_LTCC
19148
19149# LTCC compiler flags.
19150LTCFLAGS=$lt_LTCFLAGS
19151
19152# A language-specific compiler.
19153CC=$lt_compiler_GCJ
19154
19155# Is the compiler the GNU C compiler?
19156with_gcc=$GCC_GCJ
19157
19158# An ERE matcher.
19159EGREP=$lt_EGREP
19160
19161# The linker used to build libraries.
19162LD=$lt_LD_GCJ
19163
19164# Whether we need hard or soft links.
19165LN_S=$lt_LN_S
19166
19167# A BSD-compatible nm program.
19168NM=$lt_NM
19169
19170# A symbol stripping program
19171STRIP=$lt_STRIP
19172
19173# Used to examine libraries when file_magic_cmd begins "file"
19174MAGIC_CMD=$MAGIC_CMD
19175
19176# Used on cygwin: DLL creation program.
19177DLLTOOL="$DLLTOOL"
19178
19179# Used on cygwin: object dumper.
19180OBJDUMP="$OBJDUMP"
19181
19182# Used on cygwin: assembler.
19183AS="$AS"
19184
19185# The name of the directory that contains temporary libtool files.
19186objdir=$objdir
19187
19188# How to create reloadable object files.
19189reload_flag=$lt_reload_flag
19190reload_cmds=$lt_reload_cmds
19191
19192# How to pass a linker flag through the compiler.
19193wl=$lt_lt_prog_compiler_wl_GCJ
19194
19195# Object file suffix (normally "o").
19196objext="$ac_objext"
19197
19198# Old archive suffix (normally "a").
19199libext="$libext"
19200
19201# Shared library suffix (normally ".so").
19202shrext_cmds='$shrext_cmds'
19203
19204# Executable file suffix (normally "").
19205exeext="$exeext"
19206
19207# Additional compiler flags for building library objects.
19208pic_flag=$lt_lt_prog_compiler_pic_GCJ
19209pic_mode=$pic_mode
19210
19211# What is the maximum length of a command?
19212max_cmd_len=$lt_cv_sys_max_cmd_len
19213
19214# Does compiler simultaneously support -c and -o options?
19215compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19216
19217# Must we lock files when doing compilation?
19218need_locks=$lt_need_locks
19219
19220# Do we need the lib prefix for modules?
19221need_lib_prefix=$need_lib_prefix
19222
19223# Do we need a version for libraries?
19224need_version=$need_version
19225
19226# Whether dlopen is supported.
19227dlopen_support=$enable_dlopen
19228
19229# Whether dlopen of programs is supported.
19230dlopen_self=$enable_dlopen_self
19231
19232# Whether dlopen of statically linked programs is supported.
19233dlopen_self_static=$enable_dlopen_self_static
19234
19235# Compiler flag to prevent dynamic linking.
19236link_static_flag=$lt_lt_prog_compiler_static_GCJ
19237
19238# Compiler flag to turn off builtin functions.
19239no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19240
19241# Compiler flag to allow reflexive dlopens.
19242export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19243
19244# Compiler flag to generate shared objects directly from archives.
19245whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19246
19247# Compiler flag to generate thread-safe objects.
19248thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19249
19250# Library versioning type.
19251version_type=$version_type
19252
19253# Format of library name prefix.
19254libname_spec=$lt_libname_spec
19255
19256# List of archive names.  First name is the real one, the rest are links.
19257# The last name is the one that the linker finds with -lNAME.
19258library_names_spec=$lt_library_names_spec
19259
19260# The coded name of the library, if different from the real name.
19261soname_spec=$lt_soname_spec
19262
19263# Commands used to build and install an old-style archive.
19264RANLIB=$lt_RANLIB
19265old_archive_cmds=$lt_old_archive_cmds_GCJ
19266old_postinstall_cmds=$lt_old_postinstall_cmds
19267old_postuninstall_cmds=$lt_old_postuninstall_cmds
19268
19269# Create an old-style archive from a shared archive.
19270old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19271
19272# Create a temporary old-style archive to link instead of a shared archive.
19273old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19274
19275# Commands used to build and install a shared archive.
19276archive_cmds=$lt_archive_cmds_GCJ
19277archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19278postinstall_cmds=$lt_postinstall_cmds
19279postuninstall_cmds=$lt_postuninstall_cmds
19280
19281# Commands used to build a loadable module (assumed same as above if empty)
19282module_cmds=$lt_module_cmds_GCJ
19283module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19284
19285# Commands to strip libraries.
19286old_striplib=$lt_old_striplib
19287striplib=$lt_striplib
19288
19289# Dependencies to place before the objects being linked to create a
19290# shared library.
19291predep_objects=$lt_predep_objects_GCJ
19292
19293# Dependencies to place after the objects being linked to create a
19294# shared library.
19295postdep_objects=$lt_postdep_objects_GCJ
19296
19297# Dependencies to place before the objects being linked to create a
19298# shared library.
19299predeps=$lt_predeps_GCJ
19300
19301# Dependencies to place after the objects being linked to create a
19302# shared library.
19303postdeps=$lt_postdeps_GCJ
19304
19305# The directories searched by this compiler when creating a shared
19306# library
19307compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19308
19309# The library search path used internally by the compiler when linking
19310# a shared library.
19311compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19312
19313# Method to check whether dependent libraries are shared objects.
19314deplibs_check_method=$lt_deplibs_check_method
19315
19316# Command to use when deplibs_check_method == file_magic.
19317file_magic_cmd=$lt_file_magic_cmd
19318
19319# Flag that allows shared libraries with undefined symbols to be built.
19320allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19321
19322# Flag that forces no undefined symbols.
19323no_undefined_flag=$lt_no_undefined_flag_GCJ
19324
19325# Commands used to finish a libtool library installation in a directory.
19326finish_cmds=$lt_finish_cmds
19327
19328# Same as above, but a single script fragment to be evaled but not shown.
19329finish_eval=$lt_finish_eval
19330
19331# Take the output of nm and produce a listing of raw symbols and C names.
19332global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19333
19334# Transform the output of nm in a proper C declaration
19335global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19336
19337# Transform the output of nm in a C name address pair
19338global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19339
19340# This is the shared library runtime path variable.
19341runpath_var=$runpath_var
19342
19343# This is the shared library path variable.
19344shlibpath_var=$shlibpath_var
19345
19346# Is shlibpath searched before the hard-coded library search path?
19347shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19348
19349# How to hardcode a shared library path into an executable.
19350hardcode_action=$hardcode_action_GCJ
19351
19352# Whether we should hardcode library paths into libraries.
19353hardcode_into_libs=$hardcode_into_libs
19354
19355# Flag to hardcode \$libdir into a binary during linking.
19356# This must work even if \$libdir does not exist.
19357hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19358
19359# If ld is used when linking, flag to hardcode \$libdir into
19360# a binary during linking. This must work even if \$libdir does
19361# not exist.
19362hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19363
19364# Whether we need a single -rpath flag with a separated argument.
19365hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19366
19367# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19368# resulting binary.
19369hardcode_direct=$hardcode_direct_GCJ
19370
19371# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19372# resulting binary.
19373hardcode_minus_L=$hardcode_minus_L_GCJ
19374
19375# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19376# the resulting binary.
19377hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19378
19379# Set to yes if building a shared library automatically hardcodes DIR into the library
19380# and all subsequent libraries and executables linked against it.
19381hardcode_automatic=$hardcode_automatic_GCJ
19382
19383# Variables whose values should be saved in libtool wrapper scripts and
19384# restored at relink time.
19385variables_saved_for_relink="$variables_saved_for_relink"
19386
19387# Whether libtool must link a program against all its dependency libraries.
19388link_all_deplibs=$link_all_deplibs_GCJ
19389
19390# Compile-time system search path for libraries
19391sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19392
19393# Run-time system search path for libraries
19394sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19395
19396# Fix the shell variable \$srcfile for the compiler.
19397fix_srcfile_path=$lt_fix_srcfile_path
19398
19399# Set to yes if exported symbols are required.
19400always_export_symbols=$always_export_symbols_GCJ
19401
19402# The commands to list exported symbols.
19403export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19404
19405# The commands to extract the exported symbol list from a shared archive.
19406extract_expsyms_cmds=$lt_extract_expsyms_cmds
19407
19408# Symbols that should not be listed in the preloaded symbols.
19409exclude_expsyms=$lt_exclude_expsyms_GCJ
19410
19411# Symbols that must always be exported.
19412include_expsyms=$lt_include_expsyms_GCJ
19413
19414# ### END LIBTOOL TAG CONFIG: $tagname
19415
19416__EOF__
19417
19418
19419else
19420  # If there is no Makefile yet, we rely on a make rule to execute
19421  # `config.status --recheck' to rerun these tests and create the
19422  # libtool script then.
19423  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19424  if test -f "$ltmain_in"; then
19425    test -f Makefile && make "$ltmain"
19426  fi
19427fi
19428
19429
19430ac_ext=c
19431ac_cpp='$CPP $CPPFLAGS'
19432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19434ac_compiler_gnu=$ac_cv_c_compiler_gnu
19435
19436CC="$lt_save_CC"
19437
19438	else
19439	  tagname=""
19440	fi
19441	;;
19442
19443      RC)
19444
19445
19446# Source file extension for RC test sources.
19447ac_ext=rc
19448
19449# Object file extension for compiled RC test sources.
19450objext=o
19451objext_RC=$objext
19452
19453# Code to be used in simple compile tests
19454lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19455
19456# Code to be used in simple link tests
19457lt_simple_link_test_code="$lt_simple_compile_test_code"
19458
19459# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19460
19461# If no C compiler was specified, use CC.
19462LTCC=${LTCC-"$CC"}
19463
19464# If no C compiler flags were specified, use CFLAGS.
19465LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19466
19467# Allow CC to be a program name with arguments.
19468compiler=$CC
19469
19470
19471# save warnings/boilerplate of simple test code
19472ac_outfile=conftest.$ac_objext
19473echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19474eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19475_lt_compiler_boilerplate=`cat conftest.err`
19476$rm conftest*
19477
19478ac_outfile=conftest.$ac_objext
19479echo "$lt_simple_link_test_code" >conftest.$ac_ext
19480eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19481_lt_linker_boilerplate=`cat conftest.err`
19482$rm -r conftest*
19483
19484
19485# Allow CC to be a program name with arguments.
19486lt_save_CC="$CC"
19487CC=${RC-"windres"}
19488compiler=$CC
19489compiler_RC=$CC
19490for cc_temp in $compiler""; do
19491  case $cc_temp in
19492    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19493    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19494    \-*) ;;
19495    *) break;;
19496  esac
19497done
19498cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19499
19500lt_cv_prog_compiler_c_o_RC=yes
19501
19502# The else clause should only fire when bootstrapping the
19503# libtool distribution, otherwise you forgot to ship ltmain.sh
19504# with your package, and you will get complaints that there are
19505# no rules to generate ltmain.sh.
19506if test -f "$ltmain"; then
19507  # See if we are running on zsh, and set the options which allow our commands through
19508  # without removal of \ escapes.
19509  if test -n "${ZSH_VERSION+set}" ; then
19510    setopt NO_GLOB_SUBST
19511  fi
19512  # Now quote all the things that may contain metacharacters while being
19513  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19514  # variables and quote the copies for generation of the libtool script.
19515  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19516    SED SHELL STRIP \
19517    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19518    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19519    deplibs_check_method reload_flag reload_cmds need_locks \
19520    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19521    lt_cv_sys_global_symbol_to_c_name_address \
19522    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19523    old_postinstall_cmds old_postuninstall_cmds \
19524    compiler_RC \
19525    CC_RC \
19526    LD_RC \
19527    lt_prog_compiler_wl_RC \
19528    lt_prog_compiler_pic_RC \
19529    lt_prog_compiler_static_RC \
19530    lt_prog_compiler_no_builtin_flag_RC \
19531    export_dynamic_flag_spec_RC \
19532    thread_safe_flag_spec_RC \
19533    whole_archive_flag_spec_RC \
19534    enable_shared_with_static_runtimes_RC \
19535    old_archive_cmds_RC \
19536    old_archive_from_new_cmds_RC \
19537    predep_objects_RC \
19538    postdep_objects_RC \
19539    predeps_RC \
19540    postdeps_RC \
19541    compiler_lib_search_path_RC \
19542    compiler_lib_search_dirs_RC \
19543    archive_cmds_RC \
19544    archive_expsym_cmds_RC \
19545    postinstall_cmds_RC \
19546    postuninstall_cmds_RC \
19547    old_archive_from_expsyms_cmds_RC \
19548    allow_undefined_flag_RC \
19549    no_undefined_flag_RC \
19550    export_symbols_cmds_RC \
19551    hardcode_libdir_flag_spec_RC \
19552    hardcode_libdir_flag_spec_ld_RC \
19553    hardcode_libdir_separator_RC \
19554    hardcode_automatic_RC \
19555    module_cmds_RC \
19556    module_expsym_cmds_RC \
19557    lt_cv_prog_compiler_c_o_RC \
19558    fix_srcfile_path_RC \
19559    exclude_expsyms_RC \
19560    include_expsyms_RC; do
19561
19562    case $var in
19563    old_archive_cmds_RC | \
19564    old_archive_from_new_cmds_RC | \
19565    archive_cmds_RC | \
19566    archive_expsym_cmds_RC | \
19567    module_cmds_RC | \
19568    module_expsym_cmds_RC | \
19569    old_archive_from_expsyms_cmds_RC | \
19570    export_symbols_cmds_RC | \
19571    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19572    postinstall_cmds | postuninstall_cmds | \
19573    old_postinstall_cmds | old_postuninstall_cmds | \
19574    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19575      # Double-quote double-evaled strings.
19576      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19577      ;;
19578    *)
19579      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19580      ;;
19581    esac
19582  done
19583
19584  case $lt_echo in
19585  *'\$0 --fallback-echo"')
19586    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19587    ;;
19588  esac
19589
19590cfgfile="$ofile"
19591
19592  cat <<__EOF__ >> "$cfgfile"
19593# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19594
19595# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19596
19597# Shell to use when invoking shell scripts.
19598SHELL=$lt_SHELL
19599
19600# Whether or not to build shared libraries.
19601build_libtool_libs=$enable_shared
19602
19603# Whether or not to build static libraries.
19604build_old_libs=$enable_static
19605
19606# Whether or not to add -lc for building shared libraries.
19607build_libtool_need_lc=$archive_cmds_need_lc_RC
19608
19609# Whether or not to disallow shared libs when runtime libs are static
19610allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19611
19612# Whether or not to optimize for fast installation.
19613fast_install=$enable_fast_install
19614
19615# The host system.
19616host_alias=$host_alias
19617host=$host
19618host_os=$host_os
19619
19620# The build system.
19621build_alias=$build_alias
19622build=$build
19623build_os=$build_os
19624
19625# An echo program that does not interpret backslashes.
19626echo=$lt_echo
19627
19628# The archiver.
19629AR=$lt_AR
19630AR_FLAGS=$lt_AR_FLAGS
19631
19632# A C compiler.
19633LTCC=$lt_LTCC
19634
19635# LTCC compiler flags.
19636LTCFLAGS=$lt_LTCFLAGS
19637
19638# A language-specific compiler.
19639CC=$lt_compiler_RC
19640
19641# Is the compiler the GNU C compiler?
19642with_gcc=$GCC_RC
19643
19644# An ERE matcher.
19645EGREP=$lt_EGREP
19646
19647# The linker used to build libraries.
19648LD=$lt_LD_RC
19649
19650# Whether we need hard or soft links.
19651LN_S=$lt_LN_S
19652
19653# A BSD-compatible nm program.
19654NM=$lt_NM
19655
19656# A symbol stripping program
19657STRIP=$lt_STRIP
19658
19659# Used to examine libraries when file_magic_cmd begins "file"
19660MAGIC_CMD=$MAGIC_CMD
19661
19662# Used on cygwin: DLL creation program.
19663DLLTOOL="$DLLTOOL"
19664
19665# Used on cygwin: object dumper.
19666OBJDUMP="$OBJDUMP"
19667
19668# Used on cygwin: assembler.
19669AS="$AS"
19670
19671# The name of the directory that contains temporary libtool files.
19672objdir=$objdir
19673
19674# How to create reloadable object files.
19675reload_flag=$lt_reload_flag
19676reload_cmds=$lt_reload_cmds
19677
19678# How to pass a linker flag through the compiler.
19679wl=$lt_lt_prog_compiler_wl_RC
19680
19681# Object file suffix (normally "o").
19682objext="$ac_objext"
19683
19684# Old archive suffix (normally "a").
19685libext="$libext"
19686
19687# Shared library suffix (normally ".so").
19688shrext_cmds='$shrext_cmds'
19689
19690# Executable file suffix (normally "").
19691exeext="$exeext"
19692
19693# Additional compiler flags for building library objects.
19694pic_flag=$lt_lt_prog_compiler_pic_RC
19695pic_mode=$pic_mode
19696
19697# What is the maximum length of a command?
19698max_cmd_len=$lt_cv_sys_max_cmd_len
19699
19700# Does compiler simultaneously support -c and -o options?
19701compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19702
19703# Must we lock files when doing compilation?
19704need_locks=$lt_need_locks
19705
19706# Do we need the lib prefix for modules?
19707need_lib_prefix=$need_lib_prefix
19708
19709# Do we need a version for libraries?
19710need_version=$need_version
19711
19712# Whether dlopen is supported.
19713dlopen_support=$enable_dlopen
19714
19715# Whether dlopen of programs is supported.
19716dlopen_self=$enable_dlopen_self
19717
19718# Whether dlopen of statically linked programs is supported.
19719dlopen_self_static=$enable_dlopen_self_static
19720
19721# Compiler flag to prevent dynamic linking.
19722link_static_flag=$lt_lt_prog_compiler_static_RC
19723
19724# Compiler flag to turn off builtin functions.
19725no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19726
19727# Compiler flag to allow reflexive dlopens.
19728export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19729
19730# Compiler flag to generate shared objects directly from archives.
19731whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19732
19733# Compiler flag to generate thread-safe objects.
19734thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19735
19736# Library versioning type.
19737version_type=$version_type
19738
19739# Format of library name prefix.
19740libname_spec=$lt_libname_spec
19741
19742# List of archive names.  First name is the real one, the rest are links.
19743# The last name is the one that the linker finds with -lNAME.
19744library_names_spec=$lt_library_names_spec
19745
19746# The coded name of the library, if different from the real name.
19747soname_spec=$lt_soname_spec
19748
19749# Commands used to build and install an old-style archive.
19750RANLIB=$lt_RANLIB
19751old_archive_cmds=$lt_old_archive_cmds_RC
19752old_postinstall_cmds=$lt_old_postinstall_cmds
19753old_postuninstall_cmds=$lt_old_postuninstall_cmds
19754
19755# Create an old-style archive from a shared archive.
19756old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19757
19758# Create a temporary old-style archive to link instead of a shared archive.
19759old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19760
19761# Commands used to build and install a shared archive.
19762archive_cmds=$lt_archive_cmds_RC
19763archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19764postinstall_cmds=$lt_postinstall_cmds
19765postuninstall_cmds=$lt_postuninstall_cmds
19766
19767# Commands used to build a loadable module (assumed same as above if empty)
19768module_cmds=$lt_module_cmds_RC
19769module_expsym_cmds=$lt_module_expsym_cmds_RC
19770
19771# Commands to strip libraries.
19772old_striplib=$lt_old_striplib
19773striplib=$lt_striplib
19774
19775# Dependencies to place before the objects being linked to create a
19776# shared library.
19777predep_objects=$lt_predep_objects_RC
19778
19779# Dependencies to place after the objects being linked to create a
19780# shared library.
19781postdep_objects=$lt_postdep_objects_RC
19782
19783# Dependencies to place before the objects being linked to create a
19784# shared library.
19785predeps=$lt_predeps_RC
19786
19787# Dependencies to place after the objects being linked to create a
19788# shared library.
19789postdeps=$lt_postdeps_RC
19790
19791# The directories searched by this compiler when creating a shared
19792# library
19793compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19794
19795# The library search path used internally by the compiler when linking
19796# a shared library.
19797compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19798
19799# Method to check whether dependent libraries are shared objects.
19800deplibs_check_method=$lt_deplibs_check_method
19801
19802# Command to use when deplibs_check_method == file_magic.
19803file_magic_cmd=$lt_file_magic_cmd
19804
19805# Flag that allows shared libraries with undefined symbols to be built.
19806allow_undefined_flag=$lt_allow_undefined_flag_RC
19807
19808# Flag that forces no undefined symbols.
19809no_undefined_flag=$lt_no_undefined_flag_RC
19810
19811# Commands used to finish a libtool library installation in a directory.
19812finish_cmds=$lt_finish_cmds
19813
19814# Same as above, but a single script fragment to be evaled but not shown.
19815finish_eval=$lt_finish_eval
19816
19817# Take the output of nm and produce a listing of raw symbols and C names.
19818global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19819
19820# Transform the output of nm in a proper C declaration
19821global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19822
19823# Transform the output of nm in a C name address pair
19824global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19825
19826# This is the shared library runtime path variable.
19827runpath_var=$runpath_var
19828
19829# This is the shared library path variable.
19830shlibpath_var=$shlibpath_var
19831
19832# Is shlibpath searched before the hard-coded library search path?
19833shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19834
19835# How to hardcode a shared library path into an executable.
19836hardcode_action=$hardcode_action_RC
19837
19838# Whether we should hardcode library paths into libraries.
19839hardcode_into_libs=$hardcode_into_libs
19840
19841# Flag to hardcode \$libdir into a binary during linking.
19842# This must work even if \$libdir does not exist.
19843hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19844
19845# If ld is used when linking, flag to hardcode \$libdir into
19846# a binary during linking. This must work even if \$libdir does
19847# not exist.
19848hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19849
19850# Whether we need a single -rpath flag with a separated argument.
19851hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19852
19853# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19854# resulting binary.
19855hardcode_direct=$hardcode_direct_RC
19856
19857# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19858# resulting binary.
19859hardcode_minus_L=$hardcode_minus_L_RC
19860
19861# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19862# the resulting binary.
19863hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19864
19865# Set to yes if building a shared library automatically hardcodes DIR into the library
19866# and all subsequent libraries and executables linked against it.
19867hardcode_automatic=$hardcode_automatic_RC
19868
19869# Variables whose values should be saved in libtool wrapper scripts and
19870# restored at relink time.
19871variables_saved_for_relink="$variables_saved_for_relink"
19872
19873# Whether libtool must link a program against all its dependency libraries.
19874link_all_deplibs=$link_all_deplibs_RC
19875
19876# Compile-time system search path for libraries
19877sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19878
19879# Run-time system search path for libraries
19880sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19881
19882# Fix the shell variable \$srcfile for the compiler.
19883fix_srcfile_path=$lt_fix_srcfile_path
19884
19885# Set to yes if exported symbols are required.
19886always_export_symbols=$always_export_symbols_RC
19887
19888# The commands to list exported symbols.
19889export_symbols_cmds=$lt_export_symbols_cmds_RC
19890
19891# The commands to extract the exported symbol list from a shared archive.
19892extract_expsyms_cmds=$lt_extract_expsyms_cmds
19893
19894# Symbols that should not be listed in the preloaded symbols.
19895exclude_expsyms=$lt_exclude_expsyms_RC
19896
19897# Symbols that must always be exported.
19898include_expsyms=$lt_include_expsyms_RC
19899
19900# ### END LIBTOOL TAG CONFIG: $tagname
19901
19902__EOF__
19903
19904
19905else
19906  # If there is no Makefile yet, we rely on a make rule to execute
19907  # `config.status --recheck' to rerun these tests and create the
19908  # libtool script then.
19909  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19910  if test -f "$ltmain_in"; then
19911    test -f Makefile && make "$ltmain"
19912  fi
19913fi
19914
19915
19916ac_ext=c
19917ac_cpp='$CPP $CPPFLAGS'
19918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19920ac_compiler_gnu=$ac_cv_c_compiler_gnu
19921
19922CC="$lt_save_CC"
19923
19924	;;
19925
19926      *)
19927	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19928$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19929   { (exit 1); exit 1; }; }
19930	;;
19931      esac
19932
19933      # Append the new tag name to the list of available tags.
19934      if test -n "$tagname" ; then
19935      available_tags="$available_tags $tagname"
19936    fi
19937    fi
19938  done
19939  IFS="$lt_save_ifs"
19940
19941  # Now substitute the updated list of available tags.
19942  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19943    mv "${ofile}T" "$ofile"
19944    chmod +x "$ofile"
19945  else
19946    rm -f "${ofile}T"
19947    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19948$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19949   { (exit 1); exit 1; }; }
19950  fi
19951fi
19952
19953
19954
19955# This can be used to rebuild libtool when needed
19956LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19957
19958# Always use our own libtool.
19959LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19960
19961# Prevent multiple expansion
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982ac_ext=c
19983ac_cpp='$CPP $CPPFLAGS'
19984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19986ac_compiler_gnu=$ac_cv_c_compiler_gnu
19987if test -n "$ac_tool_prefix"; then
19988  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19989set dummy ${ac_tool_prefix}gcc; ac_word=$2
19990{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19991$as_echo_n "checking for $ac_word... " >&6; }
19992if test "${ac_cv_prog_CC+set}" = set; then
19993  $as_echo_n "(cached) " >&6
19994else
19995  if test -n "$CC"; then
19996  ac_cv_prog_CC="$CC" # Let the user override the test.
19997else
19998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19999for as_dir in $PATH
20000do
20001  IFS=$as_save_IFS
20002  test -z "$as_dir" && as_dir=.
20003  for ac_exec_ext in '' $ac_executable_extensions; do
20004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20005    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20006    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20007    break 2
20008  fi
20009done
20010done
20011IFS=$as_save_IFS
20012
20013fi
20014fi
20015CC=$ac_cv_prog_CC
20016if test -n "$CC"; then
20017  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20018$as_echo "$CC" >&6; }
20019else
20020  { $as_echo "$as_me:$LINENO: result: no" >&5
20021$as_echo "no" >&6; }
20022fi
20023
20024
20025fi
20026if test -z "$ac_cv_prog_CC"; then
20027  ac_ct_CC=$CC
20028  # Extract the first word of "gcc", so it can be a program name with args.
20029set dummy gcc; ac_word=$2
20030{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20031$as_echo_n "checking for $ac_word... " >&6; }
20032if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20033  $as_echo_n "(cached) " >&6
20034else
20035  if test -n "$ac_ct_CC"; then
20036  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20037else
20038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20039for as_dir in $PATH
20040do
20041  IFS=$as_save_IFS
20042  test -z "$as_dir" && as_dir=.
20043  for ac_exec_ext in '' $ac_executable_extensions; do
20044  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20045    ac_cv_prog_ac_ct_CC="gcc"
20046    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20047    break 2
20048  fi
20049done
20050done
20051IFS=$as_save_IFS
20052
20053fi
20054fi
20055ac_ct_CC=$ac_cv_prog_ac_ct_CC
20056if test -n "$ac_ct_CC"; then
20057  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20058$as_echo "$ac_ct_CC" >&6; }
20059else
20060  { $as_echo "$as_me:$LINENO: result: no" >&5
20061$as_echo "no" >&6; }
20062fi
20063
20064  if test "x$ac_ct_CC" = x; then
20065    CC=""
20066  else
20067    case $cross_compiling:$ac_tool_warned in
20068yes:)
20069{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20070whose name does not start with the host triplet.  If you think this
20071configuration is useful to you, please write to autoconf@gnu.org." >&5
20072$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20073whose name does not start with the host triplet.  If you think this
20074configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20075ac_tool_warned=yes ;;
20076esac
20077    CC=$ac_ct_CC
20078  fi
20079else
20080  CC="$ac_cv_prog_CC"
20081fi
20082
20083if test -z "$CC"; then
20084          if test -n "$ac_tool_prefix"; then
20085    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20086set dummy ${ac_tool_prefix}cc; ac_word=$2
20087{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20088$as_echo_n "checking for $ac_word... " >&6; }
20089if test "${ac_cv_prog_CC+set}" = set; then
20090  $as_echo_n "(cached) " >&6
20091else
20092  if test -n "$CC"; then
20093  ac_cv_prog_CC="$CC" # Let the user override the test.
20094else
20095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20096for as_dir in $PATH
20097do
20098  IFS=$as_save_IFS
20099  test -z "$as_dir" && as_dir=.
20100  for ac_exec_ext in '' $ac_executable_extensions; do
20101  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20102    ac_cv_prog_CC="${ac_tool_prefix}cc"
20103    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20104    break 2
20105  fi
20106done
20107done
20108IFS=$as_save_IFS
20109
20110fi
20111fi
20112CC=$ac_cv_prog_CC
20113if test -n "$CC"; then
20114  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20115$as_echo "$CC" >&6; }
20116else
20117  { $as_echo "$as_me:$LINENO: result: no" >&5
20118$as_echo "no" >&6; }
20119fi
20120
20121
20122  fi
20123fi
20124if test -z "$CC"; then
20125  # Extract the first word of "cc", so it can be a program name with args.
20126set dummy cc; ac_word=$2
20127{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20128$as_echo_n "checking for $ac_word... " >&6; }
20129if test "${ac_cv_prog_CC+set}" = set; then
20130  $as_echo_n "(cached) " >&6
20131else
20132  if test -n "$CC"; then
20133  ac_cv_prog_CC="$CC" # Let the user override the test.
20134else
20135  ac_prog_rejected=no
20136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20137for as_dir in $PATH
20138do
20139  IFS=$as_save_IFS
20140  test -z "$as_dir" && as_dir=.
20141  for ac_exec_ext in '' $ac_executable_extensions; do
20142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20143    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20144       ac_prog_rejected=yes
20145       continue
20146     fi
20147    ac_cv_prog_CC="cc"
20148    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20149    break 2
20150  fi
20151done
20152done
20153IFS=$as_save_IFS
20154
20155if test $ac_prog_rejected = yes; then
20156  # We found a bogon in the path, so make sure we never use it.
20157  set dummy $ac_cv_prog_CC
20158  shift
20159  if test $# != 0; then
20160    # We chose a different compiler from the bogus one.
20161    # However, it has the same basename, so the bogon will be chosen
20162    # first if we set CC to just the basename; use the full file name.
20163    shift
20164    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20165  fi
20166fi
20167fi
20168fi
20169CC=$ac_cv_prog_CC
20170if test -n "$CC"; then
20171  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20172$as_echo "$CC" >&6; }
20173else
20174  { $as_echo "$as_me:$LINENO: result: no" >&5
20175$as_echo "no" >&6; }
20176fi
20177
20178
20179fi
20180if test -z "$CC"; then
20181  if test -n "$ac_tool_prefix"; then
20182  for ac_prog in cl.exe
20183  do
20184    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20185set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20186{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20187$as_echo_n "checking for $ac_word... " >&6; }
20188if test "${ac_cv_prog_CC+set}" = set; then
20189  $as_echo_n "(cached) " >&6
20190else
20191  if test -n "$CC"; then
20192  ac_cv_prog_CC="$CC" # Let the user override the test.
20193else
20194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20195for as_dir in $PATH
20196do
20197  IFS=$as_save_IFS
20198  test -z "$as_dir" && as_dir=.
20199  for ac_exec_ext in '' $ac_executable_extensions; do
20200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20201    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20202    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20203    break 2
20204  fi
20205done
20206done
20207IFS=$as_save_IFS
20208
20209fi
20210fi
20211CC=$ac_cv_prog_CC
20212if test -n "$CC"; then
20213  { $as_echo "$as_me:$LINENO: result: $CC" >&5
20214$as_echo "$CC" >&6; }
20215else
20216  { $as_echo "$as_me:$LINENO: result: no" >&5
20217$as_echo "no" >&6; }
20218fi
20219
20220
20221    test -n "$CC" && break
20222  done
20223fi
20224if test -z "$CC"; then
20225  ac_ct_CC=$CC
20226  for ac_prog in cl.exe
20227do
20228  # Extract the first word of "$ac_prog", so it can be a program name with args.
20229set dummy $ac_prog; ac_word=$2
20230{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20231$as_echo_n "checking for $ac_word... " >&6; }
20232if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20233  $as_echo_n "(cached) " >&6
20234else
20235  if test -n "$ac_ct_CC"; then
20236  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20237else
20238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20239for as_dir in $PATH
20240do
20241  IFS=$as_save_IFS
20242  test -z "$as_dir" && as_dir=.
20243  for ac_exec_ext in '' $ac_executable_extensions; do
20244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20245    ac_cv_prog_ac_ct_CC="$ac_prog"
20246    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20247    break 2
20248  fi
20249done
20250done
20251IFS=$as_save_IFS
20252
20253fi
20254fi
20255ac_ct_CC=$ac_cv_prog_ac_ct_CC
20256if test -n "$ac_ct_CC"; then
20257  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20258$as_echo "$ac_ct_CC" >&6; }
20259else
20260  { $as_echo "$as_me:$LINENO: result: no" >&5
20261$as_echo "no" >&6; }
20262fi
20263
20264
20265  test -n "$ac_ct_CC" && break
20266done
20267
20268  if test "x$ac_ct_CC" = x; then
20269    CC=""
20270  else
20271    case $cross_compiling:$ac_tool_warned in
20272yes:)
20273{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20274whose name does not start with the host triplet.  If you think this
20275configuration is useful to you, please write to autoconf@gnu.org." >&5
20276$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20277whose name does not start with the host triplet.  If you think this
20278configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20279ac_tool_warned=yes ;;
20280esac
20281    CC=$ac_ct_CC
20282  fi
20283fi
20284
20285fi
20286
20287
20288test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20289See \`config.log' for more details." >&5
20290$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20291See \`config.log' for more details." >&2;}
20292   { (exit 1); exit 1; }; }
20293
20294# Provide some information about the compiler.
20295$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20296set X $ac_compile
20297ac_compiler=$2
20298{ (ac_try="$ac_compiler --version >&5"
20299case "(($ac_try" in
20300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301  *) ac_try_echo=$ac_try;;
20302esac
20303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20304$as_echo "$ac_try_echo") >&5
20305  (eval "$ac_compiler --version >&5") 2>&5
20306  ac_status=$?
20307  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308  (exit $ac_status); }
20309{ (ac_try="$ac_compiler -v >&5"
20310case "(($ac_try" in
20311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312  *) ac_try_echo=$ac_try;;
20313esac
20314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20315$as_echo "$ac_try_echo") >&5
20316  (eval "$ac_compiler -v >&5") 2>&5
20317  ac_status=$?
20318  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319  (exit $ac_status); }
20320{ (ac_try="$ac_compiler -V >&5"
20321case "(($ac_try" in
20322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323  *) ac_try_echo=$ac_try;;
20324esac
20325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20326$as_echo "$ac_try_echo") >&5
20327  (eval "$ac_compiler -V >&5") 2>&5
20328  ac_status=$?
20329  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330  (exit $ac_status); }
20331
20332{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20333$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20334if test "${ac_cv_c_compiler_gnu+set}" = set; then
20335  $as_echo_n "(cached) " >&6
20336else
20337  cat >conftest.$ac_ext <<_ACEOF
20338/* confdefs.h.  */
20339_ACEOF
20340cat confdefs.h >>conftest.$ac_ext
20341cat >>conftest.$ac_ext <<_ACEOF
20342/* end confdefs.h.  */
20343
20344int
20345main ()
20346{
20347#ifndef __GNUC__
20348       choke me
20349#endif
20350
20351  ;
20352  return 0;
20353}
20354_ACEOF
20355rm -f conftest.$ac_objext
20356if { (ac_try="$ac_compile"
20357case "(($ac_try" in
20358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359  *) ac_try_echo=$ac_try;;
20360esac
20361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20362$as_echo "$ac_try_echo") >&5
20363  (eval "$ac_compile") 2>conftest.er1
20364  ac_status=$?
20365  grep -v '^ *+' conftest.er1 >conftest.err
20366  rm -f conftest.er1
20367  cat conftest.err >&5
20368  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369  (exit $ac_status); } && {
20370	 test -z "$ac_c_werror_flag" ||
20371	 test ! -s conftest.err
20372       } && test -s conftest.$ac_objext; then
20373  ac_compiler_gnu=yes
20374else
20375  $as_echo "$as_me: failed program was:" >&5
20376sed 's/^/| /' conftest.$ac_ext >&5
20377
20378	ac_compiler_gnu=no
20379fi
20380
20381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20382ac_cv_c_compiler_gnu=$ac_compiler_gnu
20383
20384fi
20385{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20386$as_echo "$ac_cv_c_compiler_gnu" >&6; }
20387if test $ac_compiler_gnu = yes; then
20388  GCC=yes
20389else
20390  GCC=
20391fi
20392ac_test_CFLAGS=${CFLAGS+set}
20393ac_save_CFLAGS=$CFLAGS
20394{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20395$as_echo_n "checking whether $CC accepts -g... " >&6; }
20396if test "${ac_cv_prog_cc_g+set}" = set; then
20397  $as_echo_n "(cached) " >&6
20398else
20399  ac_save_c_werror_flag=$ac_c_werror_flag
20400   ac_c_werror_flag=yes
20401   ac_cv_prog_cc_g=no
20402   CFLAGS="-g"
20403   cat >conftest.$ac_ext <<_ACEOF
20404/* confdefs.h.  */
20405_ACEOF
20406cat confdefs.h >>conftest.$ac_ext
20407cat >>conftest.$ac_ext <<_ACEOF
20408/* end confdefs.h.  */
20409
20410int
20411main ()
20412{
20413
20414  ;
20415  return 0;
20416}
20417_ACEOF
20418rm -f conftest.$ac_objext
20419if { (ac_try="$ac_compile"
20420case "(($ac_try" in
20421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422  *) ac_try_echo=$ac_try;;
20423esac
20424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20425$as_echo "$ac_try_echo") >&5
20426  (eval "$ac_compile") 2>conftest.er1
20427  ac_status=$?
20428  grep -v '^ *+' conftest.er1 >conftest.err
20429  rm -f conftest.er1
20430  cat conftest.err >&5
20431  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432  (exit $ac_status); } && {
20433	 test -z "$ac_c_werror_flag" ||
20434	 test ! -s conftest.err
20435       } && test -s conftest.$ac_objext; then
20436  ac_cv_prog_cc_g=yes
20437else
20438  $as_echo "$as_me: failed program was:" >&5
20439sed 's/^/| /' conftest.$ac_ext >&5
20440
20441	CFLAGS=""
20442      cat >conftest.$ac_ext <<_ACEOF
20443/* confdefs.h.  */
20444_ACEOF
20445cat confdefs.h >>conftest.$ac_ext
20446cat >>conftest.$ac_ext <<_ACEOF
20447/* end confdefs.h.  */
20448
20449int
20450main ()
20451{
20452
20453  ;
20454  return 0;
20455}
20456_ACEOF
20457rm -f conftest.$ac_objext
20458if { (ac_try="$ac_compile"
20459case "(($ac_try" in
20460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461  *) ac_try_echo=$ac_try;;
20462esac
20463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20464$as_echo "$ac_try_echo") >&5
20465  (eval "$ac_compile") 2>conftest.er1
20466  ac_status=$?
20467  grep -v '^ *+' conftest.er1 >conftest.err
20468  rm -f conftest.er1
20469  cat conftest.err >&5
20470  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471  (exit $ac_status); } && {
20472	 test -z "$ac_c_werror_flag" ||
20473	 test ! -s conftest.err
20474       } && test -s conftest.$ac_objext; then
20475  :
20476else
20477  $as_echo "$as_me: failed program was:" >&5
20478sed 's/^/| /' conftest.$ac_ext >&5
20479
20480	ac_c_werror_flag=$ac_save_c_werror_flag
20481	 CFLAGS="-g"
20482	 cat >conftest.$ac_ext <<_ACEOF
20483/* confdefs.h.  */
20484_ACEOF
20485cat confdefs.h >>conftest.$ac_ext
20486cat >>conftest.$ac_ext <<_ACEOF
20487/* end confdefs.h.  */
20488
20489int
20490main ()
20491{
20492
20493  ;
20494  return 0;
20495}
20496_ACEOF
20497rm -f conftest.$ac_objext
20498if { (ac_try="$ac_compile"
20499case "(($ac_try" in
20500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501  *) ac_try_echo=$ac_try;;
20502esac
20503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20504$as_echo "$ac_try_echo") >&5
20505  (eval "$ac_compile") 2>conftest.er1
20506  ac_status=$?
20507  grep -v '^ *+' conftest.er1 >conftest.err
20508  rm -f conftest.er1
20509  cat conftest.err >&5
20510  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511  (exit $ac_status); } && {
20512	 test -z "$ac_c_werror_flag" ||
20513	 test ! -s conftest.err
20514       } && test -s conftest.$ac_objext; then
20515  ac_cv_prog_cc_g=yes
20516else
20517  $as_echo "$as_me: failed program was:" >&5
20518sed 's/^/| /' conftest.$ac_ext >&5
20519
20520
20521fi
20522
20523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20524fi
20525
20526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20527fi
20528
20529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20530   ac_c_werror_flag=$ac_save_c_werror_flag
20531fi
20532{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20533$as_echo "$ac_cv_prog_cc_g" >&6; }
20534if test "$ac_test_CFLAGS" = set; then
20535  CFLAGS=$ac_save_CFLAGS
20536elif test $ac_cv_prog_cc_g = yes; then
20537  if test "$GCC" = yes; then
20538    CFLAGS="-g -O2"
20539  else
20540    CFLAGS="-g"
20541  fi
20542else
20543  if test "$GCC" = yes; then
20544    CFLAGS="-O2"
20545  else
20546    CFLAGS=
20547  fi
20548fi
20549{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20550$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20551if test "${ac_cv_prog_cc_c89+set}" = set; then
20552  $as_echo_n "(cached) " >&6
20553else
20554  ac_cv_prog_cc_c89=no
20555ac_save_CC=$CC
20556cat >conftest.$ac_ext <<_ACEOF
20557/* confdefs.h.  */
20558_ACEOF
20559cat confdefs.h >>conftest.$ac_ext
20560cat >>conftest.$ac_ext <<_ACEOF
20561/* end confdefs.h.  */
20562#include <stdarg.h>
20563#include <stdio.h>
20564#include <sys/types.h>
20565#include <sys/stat.h>
20566/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20567struct buf { int x; };
20568FILE * (*rcsopen) (struct buf *, struct stat *, int);
20569static char *e (p, i)
20570     char **p;
20571     int i;
20572{
20573  return p[i];
20574}
20575static char *f (char * (*g) (char **, int), char **p, ...)
20576{
20577  char *s;
20578  va_list v;
20579  va_start (v,p);
20580  s = g (p, va_arg (v,int));
20581  va_end (v);
20582  return s;
20583}
20584
20585/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20586   function prototypes and stuff, but not '\xHH' hex character constants.
20587   These don't provoke an error unfortunately, instead are silently treated
20588   as 'x'.  The following induces an error, until -std is added to get
20589   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20590   array size at least.  It's necessary to write '\x00'==0 to get something
20591   that's true only with -std.  */
20592int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20593
20594/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20595   inside strings and character constants.  */
20596#define FOO(x) 'x'
20597int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20598
20599int test (int i, double x);
20600struct s1 {int (*f) (int a);};
20601struct s2 {int (*f) (double a);};
20602int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20603int argc;
20604char **argv;
20605int
20606main ()
20607{
20608return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20609  ;
20610  return 0;
20611}
20612_ACEOF
20613for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20614	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20615do
20616  CC="$ac_save_CC $ac_arg"
20617  rm -f conftest.$ac_objext
20618if { (ac_try="$ac_compile"
20619case "(($ac_try" in
20620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621  *) ac_try_echo=$ac_try;;
20622esac
20623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20624$as_echo "$ac_try_echo") >&5
20625  (eval "$ac_compile") 2>conftest.er1
20626  ac_status=$?
20627  grep -v '^ *+' conftest.er1 >conftest.err
20628  rm -f conftest.er1
20629  cat conftest.err >&5
20630  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631  (exit $ac_status); } && {
20632	 test -z "$ac_c_werror_flag" ||
20633	 test ! -s conftest.err
20634       } && test -s conftest.$ac_objext; then
20635  ac_cv_prog_cc_c89=$ac_arg
20636else
20637  $as_echo "$as_me: failed program was:" >&5
20638sed 's/^/| /' conftest.$ac_ext >&5
20639
20640
20641fi
20642
20643rm -f core conftest.err conftest.$ac_objext
20644  test "x$ac_cv_prog_cc_c89" != "xno" && break
20645done
20646rm -f conftest.$ac_ext
20647CC=$ac_save_CC
20648
20649fi
20650# AC_CACHE_VAL
20651case "x$ac_cv_prog_cc_c89" in
20652  x)
20653    { $as_echo "$as_me:$LINENO: result: none needed" >&5
20654$as_echo "none needed" >&6; } ;;
20655  xno)
20656    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20657$as_echo "unsupported" >&6; } ;;
20658  *)
20659    CC="$CC $ac_cv_prog_cc_c89"
20660    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20661$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20662esac
20663
20664
20665ac_ext=c
20666ac_cpp='$CPP $CPPFLAGS'
20667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20669ac_compiler_gnu=$ac_cv_c_compiler_gnu
20670
20671depcc="$CC"   am_compiler_list=
20672
20673{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20674$as_echo_n "checking dependency style of $depcc... " >&6; }
20675if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20676  $as_echo_n "(cached) " >&6
20677else
20678  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20679  # We make a subdir and do the tests there.  Otherwise we can end up
20680  # making bogus files that we don't know about and never remove.  For
20681  # instance it was reported that on HP-UX the gcc test will end up
20682  # making a dummy file named `D' -- because `-MD' means `put the output
20683  # in D'.
20684  mkdir conftest.dir
20685  # Copy depcomp to subdir because otherwise we won't find it if we're
20686  # using a relative directory.
20687  cp "$am_depcomp" conftest.dir
20688  cd conftest.dir
20689  # We will build objects and dependencies in a subdirectory because
20690  # it helps to detect inapplicable dependency modes.  For instance
20691  # both Tru64's cc and ICC support -MD to output dependencies as a
20692  # side effect of compilation, but ICC will put the dependencies in
20693  # the current directory while Tru64 will put them in the object
20694  # directory.
20695  mkdir sub
20696
20697  am_cv_CC_dependencies_compiler_type=none
20698  if test "$am_compiler_list" = ""; then
20699     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20700  fi
20701  for depmode in $am_compiler_list; do
20702    # Setup a source with many dependencies, because some compilers
20703    # like to wrap large dependency lists on column 80 (with \), and
20704    # we should not choose a depcomp mode which is confused by this.
20705    #
20706    # We need to recreate these files for each test, as the compiler may
20707    # overwrite some of them when testing with obscure command lines.
20708    # This happens at least with the AIX C compiler.
20709    : > sub/conftest.c
20710    for i in 1 2 3 4 5 6; do
20711      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20712      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20713      # Solaris 8's {/usr,}/bin/sh.
20714      touch sub/conftst$i.h
20715    done
20716    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20717
20718    case $depmode in
20719    nosideeffect)
20720      # after this tag, mechanisms are not by side-effect, so they'll
20721      # only be used when explicitly requested
20722      if test "x$enable_dependency_tracking" = xyes; then
20723	continue
20724      else
20725	break
20726      fi
20727      ;;
20728    none) break ;;
20729    esac
20730    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20731    # mode.  It turns out that the SunPro C++ compiler does not properly
20732    # handle `-M -o', and we need to detect this.
20733    if depmode=$depmode \
20734       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20735       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20736       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20737         >/dev/null 2>conftest.err &&
20738       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20739       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20740       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20741       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20742      # icc doesn't choke on unknown options, it will just issue warnings
20743      # or remarks (even with -Werror).  So we grep stderr for any message
20744      # that says an option was ignored or not supported.
20745      # When given -MP, icc 7.0 and 7.1 complain thusly:
20746      #   icc: Command line warning: ignoring option '-M'; no argument required
20747      # The diagnosis changed in icc 8.0:
20748      #   icc: Command line remark: option '-MP' not supported
20749      if (grep 'ignoring option' conftest.err ||
20750          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20751        am_cv_CC_dependencies_compiler_type=$depmode
20752        break
20753      fi
20754    fi
20755  done
20756
20757  cd ..
20758  rm -rf conftest.dir
20759else
20760  am_cv_CC_dependencies_compiler_type=none
20761fi
20762
20763fi
20764{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20765$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20766CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20767
20768 if
20769  test "x$enable_dependency_tracking" != xno \
20770  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20771  am__fastdepCC_TRUE=
20772  am__fastdepCC_FALSE='#'
20773else
20774  am__fastdepCC_TRUE='#'
20775  am__fastdepCC_FALSE=
20776fi
20777
20778
20779
20780
20781
20782
20783
20784# Check whether --with-xorg-module-dir was given.
20785if test "${with_xorg_module_dir+set}" = set; then
20786  withval=$with_xorg_module_dir; moduledir="$withval"
20787else
20788  moduledir="$libdir/xorg/modules"
20789fi
20790
20791
20792# Checks for extensions
20793
20794	SAVE_CFLAGS="$CFLAGS"
20795	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20796	cat >conftest.$ac_ext <<_ACEOF
20797/* confdefs.h.  */
20798_ACEOF
20799cat confdefs.h >>conftest.$ac_ext
20800cat >>conftest.$ac_ext <<_ACEOF
20801/* end confdefs.h.  */
20802
20803#include "xorg-server.h"
20804#if !defined RANDR
20805#error RANDR not defined
20806#endif
20807
20808int
20809main ()
20810{
20811
20812  ;
20813  return 0;
20814}
20815_ACEOF
20816rm -f conftest.$ac_objext
20817if { (ac_try="$ac_compile"
20818case "(($ac_try" in
20819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820  *) ac_try_echo=$ac_try;;
20821esac
20822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20823$as_echo "$ac_try_echo") >&5
20824  (eval "$ac_compile") 2>conftest.er1
20825  ac_status=$?
20826  grep -v '^ *+' conftest.er1 >conftest.err
20827  rm -f conftest.er1
20828  cat conftest.err >&5
20829  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830  (exit $ac_status); } && {
20831	 test -z "$ac_c_werror_flag" ||
20832	 test ! -s conftest.err
20833       } && test -s conftest.$ac_objext; then
20834  _EXT_CHECK=yes
20835else
20836  $as_echo "$as_me: failed program was:" >&5
20837sed 's/^/| /' conftest.$ac_ext >&5
20838
20839	_EXT_CHECK=no
20840fi
20841
20842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20843	CFLAGS="$SAVE_CFLAGS"
20844	{ $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20845$as_echo_n "checking if RANDR is defined... " >&6; }
20846	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20847$as_echo "$_EXT_CHECK" >&6; }
20848	if test "$_EXT_CHECK" != no; then
20849		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20850	fi
20851
20852
20853	SAVE_CFLAGS="$CFLAGS"
20854	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20855	cat >conftest.$ac_ext <<_ACEOF
20856/* confdefs.h.  */
20857_ACEOF
20858cat confdefs.h >>conftest.$ac_ext
20859cat >>conftest.$ac_ext <<_ACEOF
20860/* end confdefs.h.  */
20861
20862#include "xorg-server.h"
20863#if !defined RENDER
20864#error RENDER not defined
20865#endif
20866
20867int
20868main ()
20869{
20870
20871  ;
20872  return 0;
20873}
20874_ACEOF
20875rm -f conftest.$ac_objext
20876if { (ac_try="$ac_compile"
20877case "(($ac_try" in
20878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879  *) ac_try_echo=$ac_try;;
20880esac
20881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20882$as_echo "$ac_try_echo") >&5
20883  (eval "$ac_compile") 2>conftest.er1
20884  ac_status=$?
20885  grep -v '^ *+' conftest.er1 >conftest.err
20886  rm -f conftest.er1
20887  cat conftest.err >&5
20888  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889  (exit $ac_status); } && {
20890	 test -z "$ac_c_werror_flag" ||
20891	 test ! -s conftest.err
20892       } && test -s conftest.$ac_objext; then
20893  _EXT_CHECK=yes
20894else
20895  $as_echo "$as_me: failed program was:" >&5
20896sed 's/^/| /' conftest.$ac_ext >&5
20897
20898	_EXT_CHECK=no
20899fi
20900
20901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20902	CFLAGS="$SAVE_CFLAGS"
20903	{ $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20904$as_echo_n "checking if RENDER is defined... " >&6; }
20905	{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20906$as_echo "$_EXT_CHECK" >&6; }
20907	if test "$_EXT_CHECK" != no; then
20908		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20909	fi
20910
20911
20912# Checks for pkg-config packages
20913
20914
20915if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20916	if test -n "$ac_tool_prefix"; then
20917  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20918set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20919{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20920$as_echo_n "checking for $ac_word... " >&6; }
20921if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20922  $as_echo_n "(cached) " >&6
20923else
20924  case $PKG_CONFIG in
20925  [\\/]* | ?:[\\/]*)
20926  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20927  ;;
20928  *)
20929  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20930for as_dir in $PATH
20931do
20932  IFS=$as_save_IFS
20933  test -z "$as_dir" && as_dir=.
20934  for ac_exec_ext in '' $ac_executable_extensions; do
20935  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20936    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20937    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20938    break 2
20939  fi
20940done
20941done
20942IFS=$as_save_IFS
20943
20944  ;;
20945esac
20946fi
20947PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20948if test -n "$PKG_CONFIG"; then
20949  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20950$as_echo "$PKG_CONFIG" >&6; }
20951else
20952  { $as_echo "$as_me:$LINENO: result: no" >&5
20953$as_echo "no" >&6; }
20954fi
20955
20956
20957fi
20958if test -z "$ac_cv_path_PKG_CONFIG"; then
20959  ac_pt_PKG_CONFIG=$PKG_CONFIG
20960  # Extract the first word of "pkg-config", so it can be a program name with args.
20961set dummy pkg-config; ac_word=$2
20962{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20963$as_echo_n "checking for $ac_word... " >&6; }
20964if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20965  $as_echo_n "(cached) " >&6
20966else
20967  case $ac_pt_PKG_CONFIG in
20968  [\\/]* | ?:[\\/]*)
20969  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20970  ;;
20971  *)
20972  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20973for as_dir in $PATH
20974do
20975  IFS=$as_save_IFS
20976  test -z "$as_dir" && as_dir=.
20977  for ac_exec_ext in '' $ac_executable_extensions; do
20978  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20979    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20980    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20981    break 2
20982  fi
20983done
20984done
20985IFS=$as_save_IFS
20986
20987  ;;
20988esac
20989fi
20990ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20991if test -n "$ac_pt_PKG_CONFIG"; then
20992  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20993$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20994else
20995  { $as_echo "$as_me:$LINENO: result: no" >&5
20996$as_echo "no" >&6; }
20997fi
20998
20999  if test "x$ac_pt_PKG_CONFIG" = x; then
21000    PKG_CONFIG=""
21001  else
21002    case $cross_compiling:$ac_tool_warned in
21003yes:)
21004{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21005whose name does not start with the host triplet.  If you think this
21006configuration is useful to you, please write to autoconf@gnu.org." >&5
21007$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21008whose name does not start with the host triplet.  If you think this
21009configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21010ac_tool_warned=yes ;;
21011esac
21012    PKG_CONFIG=$ac_pt_PKG_CONFIG
21013  fi
21014else
21015  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21016fi
21017
21018fi
21019if test -n "$PKG_CONFIG"; then
21020	_pkg_min_version=0.9.0
21021	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21022$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21023	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21024		{ $as_echo "$as_me:$LINENO: result: yes" >&5
21025$as_echo "yes" >&6; }
21026	else
21027		{ $as_echo "$as_me:$LINENO: result: no" >&5
21028$as_echo "no" >&6; }
21029		PKG_CONFIG=""
21030	fi
21031
21032fi
21033
21034pkg_failed=no
21035{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
21036$as_echo_n "checking for XORG... " >&6; }
21037
21038if test -n "$XORG_CFLAGS"; then
21039    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21040 elif test -n "$PKG_CONFIG"; then
21041    if test -n "$PKG_CONFIG" && \
21042    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21043  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21044  ac_status=$?
21045  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046  (exit $ac_status); }; then
21047  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21048else
21049  pkg_failed=yes
21050fi
21051 else
21052    pkg_failed=untried
21053fi
21054if test -n "$XORG_LIBS"; then
21055    pkg_cv_XORG_LIBS="$XORG_LIBS"
21056 elif test -n "$PKG_CONFIG"; then
21057    if test -n "$PKG_CONFIG" && \
21058    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21059  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21060  ac_status=$?
21061  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062  (exit $ac_status); }; then
21063  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21064else
21065  pkg_failed=yes
21066fi
21067 else
21068    pkg_failed=untried
21069fi
21070
21071
21072
21073if test $pkg_failed = yes; then
21074
21075if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21076        _pkg_short_errors_supported=yes
21077else
21078        _pkg_short_errors_supported=no
21079fi
21080        if test $_pkg_short_errors_supported = yes; then
21081	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21082        else
21083	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21084        fi
21085	# Put the nasty error message in config.log where it belongs
21086	echo "$XORG_PKG_ERRORS" >&5
21087
21088	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21089
21090$XORG_PKG_ERRORS
21091
21092Consider adjusting the PKG_CONFIG_PATH environment variable if you
21093installed software in a non-standard prefix.
21094
21095Alternatively, you may set the environment variables XORG_CFLAGS
21096and XORG_LIBS to avoid the need to call pkg-config.
21097See the pkg-config man page for more details.
21098" >&5
21099$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21100
21101$XORG_PKG_ERRORS
21102
21103Consider adjusting the PKG_CONFIG_PATH environment variable if you
21104installed software in a non-standard prefix.
21105
21106Alternatively, you may set the environment variables XORG_CFLAGS
21107and XORG_LIBS to avoid the need to call pkg-config.
21108See the pkg-config man page for more details.
21109" >&2;}
21110   { (exit 1); exit 1; }; }
21111elif test $pkg_failed = untried; then
21112	{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21113is in your PATH or set the PKG_CONFIG environment variable to the full
21114path to pkg-config.
21115
21116Alternatively, you may set the environment variables XORG_CFLAGS
21117and XORG_LIBS to avoid the need to call pkg-config.
21118See the pkg-config man page for more details.
21119
21120To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21121See \`config.log' for more details." >&5
21122$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21123is in your PATH or set the PKG_CONFIG environment variable to the full
21124path to pkg-config.
21125
21126Alternatively, you may set the environment variables XORG_CFLAGS
21127and XORG_LIBS to avoid the need to call pkg-config.
21128See the pkg-config man page for more details.
21129
21130To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21131See \`config.log' for more details." >&2;}
21132   { (exit 1); exit 1; }; }
21133else
21134	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21135	XORG_LIBS=$pkg_cv_XORG_LIBS
21136        { $as_echo "$as_me:$LINENO: result: yes" >&5
21137$as_echo "yes" >&6; }
21138	:
21139fi
21140sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21141
21142# Checks for libraries.
21143
21144# Checks for header files.
21145{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21146$as_echo_n "checking for ANSI C header files... " >&6; }
21147if test "${ac_cv_header_stdc+set}" = set; then
21148  $as_echo_n "(cached) " >&6
21149else
21150  cat >conftest.$ac_ext <<_ACEOF
21151/* confdefs.h.  */
21152_ACEOF
21153cat confdefs.h >>conftest.$ac_ext
21154cat >>conftest.$ac_ext <<_ACEOF
21155/* end confdefs.h.  */
21156#include <stdlib.h>
21157#include <stdarg.h>
21158#include <string.h>
21159#include <float.h>
21160
21161int
21162main ()
21163{
21164
21165  ;
21166  return 0;
21167}
21168_ACEOF
21169rm -f conftest.$ac_objext
21170if { (ac_try="$ac_compile"
21171case "(($ac_try" in
21172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21173  *) ac_try_echo=$ac_try;;
21174esac
21175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21176$as_echo "$ac_try_echo") >&5
21177  (eval "$ac_compile") 2>conftest.er1
21178  ac_status=$?
21179  grep -v '^ *+' conftest.er1 >conftest.err
21180  rm -f conftest.er1
21181  cat conftest.err >&5
21182  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183  (exit $ac_status); } && {
21184	 test -z "$ac_c_werror_flag" ||
21185	 test ! -s conftest.err
21186       } && test -s conftest.$ac_objext; then
21187  ac_cv_header_stdc=yes
21188else
21189  $as_echo "$as_me: failed program was:" >&5
21190sed 's/^/| /' conftest.$ac_ext >&5
21191
21192	ac_cv_header_stdc=no
21193fi
21194
21195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21196
21197if test $ac_cv_header_stdc = yes; then
21198  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21199  cat >conftest.$ac_ext <<_ACEOF
21200/* confdefs.h.  */
21201_ACEOF
21202cat confdefs.h >>conftest.$ac_ext
21203cat >>conftest.$ac_ext <<_ACEOF
21204/* end confdefs.h.  */
21205#include <string.h>
21206
21207_ACEOF
21208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21209  $EGREP "memchr" >/dev/null 2>&1; then
21210  :
21211else
21212  ac_cv_header_stdc=no
21213fi
21214rm -f conftest*
21215
21216fi
21217
21218if test $ac_cv_header_stdc = yes; then
21219  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21220  cat >conftest.$ac_ext <<_ACEOF
21221/* confdefs.h.  */
21222_ACEOF
21223cat confdefs.h >>conftest.$ac_ext
21224cat >>conftest.$ac_ext <<_ACEOF
21225/* end confdefs.h.  */
21226#include <stdlib.h>
21227
21228_ACEOF
21229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21230  $EGREP "free" >/dev/null 2>&1; then
21231  :
21232else
21233  ac_cv_header_stdc=no
21234fi
21235rm -f conftest*
21236
21237fi
21238
21239if test $ac_cv_header_stdc = yes; then
21240  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21241  if test "$cross_compiling" = yes; then
21242  :
21243else
21244  cat >conftest.$ac_ext <<_ACEOF
21245/* confdefs.h.  */
21246_ACEOF
21247cat confdefs.h >>conftest.$ac_ext
21248cat >>conftest.$ac_ext <<_ACEOF
21249/* end confdefs.h.  */
21250#include <ctype.h>
21251#include <stdlib.h>
21252#if ((' ' & 0x0FF) == 0x020)
21253# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21254# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21255#else
21256# define ISLOWER(c) \
21257		   (('a' <= (c) && (c) <= 'i') \
21258		     || ('j' <= (c) && (c) <= 'r') \
21259		     || ('s' <= (c) && (c) <= 'z'))
21260# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21261#endif
21262
21263#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21264int
21265main ()
21266{
21267  int i;
21268  for (i = 0; i < 256; i++)
21269    if (XOR (islower (i), ISLOWER (i))
21270	|| toupper (i) != TOUPPER (i))
21271      return 2;
21272  return 0;
21273}
21274_ACEOF
21275rm -f conftest$ac_exeext
21276if { (ac_try="$ac_link"
21277case "(($ac_try" in
21278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279  *) ac_try_echo=$ac_try;;
21280esac
21281eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21282$as_echo "$ac_try_echo") >&5
21283  (eval "$ac_link") 2>&5
21284  ac_status=$?
21285  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21287  { (case "(($ac_try" in
21288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289  *) ac_try_echo=$ac_try;;
21290esac
21291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21292$as_echo "$ac_try_echo") >&5
21293  (eval "$ac_try") 2>&5
21294  ac_status=$?
21295  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296  (exit $ac_status); }; }; then
21297  :
21298else
21299  $as_echo "$as_me: program exited with status $ac_status" >&5
21300$as_echo "$as_me: failed program was:" >&5
21301sed 's/^/| /' conftest.$ac_ext >&5
21302
21303( exit $ac_status )
21304ac_cv_header_stdc=no
21305fi
21306rm -rf conftest.dSYM
21307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21308fi
21309
21310
21311fi
21312fi
21313{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21314$as_echo "$ac_cv_header_stdc" >&6; }
21315if test $ac_cv_header_stdc = yes; then
21316
21317cat >>confdefs.h <<\_ACEOF
21318#define STDC_HEADERS 1
21319_ACEOF
21320
21321fi
21322
21323
21324
21325
21326
21327DRIVER_NAME=sunleo
21328
21329
21330
21331
21332
21333if test x$APP_MAN_SUFFIX = x    ; then
21334    APP_MAN_SUFFIX=1
21335fi
21336if test x$APP_MAN_DIR = x    ; then
21337    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21338fi
21339
21340if test x$LIB_MAN_SUFFIX = x    ; then
21341    LIB_MAN_SUFFIX=3
21342fi
21343if test x$LIB_MAN_DIR = x    ; then
21344    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21345fi
21346
21347if test x$FILE_MAN_SUFFIX = x    ; then
21348    case $host_os in
21349	solaris*)	FILE_MAN_SUFFIX=4  ;;
21350	*)		FILE_MAN_SUFFIX=5  ;;
21351    esac
21352fi
21353if test x$FILE_MAN_DIR = x    ; then
21354    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21355fi
21356
21357if test x$MISC_MAN_SUFFIX = x    ; then
21358    case $host_os in
21359	solaris*)	MISC_MAN_SUFFIX=5  ;;
21360	*)		MISC_MAN_SUFFIX=7  ;;
21361    esac
21362fi
21363if test x$MISC_MAN_DIR = x    ; then
21364    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
21365fi
21366
21367if test x$DRIVER_MAN_SUFFIX = x    ; then
21368    case $host_os in
21369	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
21370	*)		DRIVER_MAN_SUFFIX=4  ;;
21371    esac
21372fi
21373if test x$DRIVER_MAN_DIR = x    ; then
21374    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
21375fi
21376
21377if test x$ADMIN_MAN_SUFFIX = x    ; then
21378    case $host_os in
21379	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
21380	*)		ADMIN_MAN_SUFFIX=8  ;;
21381    esac
21382fi
21383if test x$ADMIN_MAN_DIR = x    ; then
21384    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21385fi
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403# Check whether --with-release-version was given.
21404if test "${with_release_version+set}" = set; then
21405  withval=$with_release_version; RELEASE_VERSION="$withval"
21406else
21407  RELEASE_VERSION=""
21408fi
21409
21410	if test "x$RELEASE_VERSION" != "x"; then
21411		PACKAGE="$PACKAGE-$RELEASE_VERSION"
21412		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21413		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21414$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21415	fi
21416
21417cat >>confdefs.h <<_ACEOF
21418#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
21419_ACEOF
21420
21421	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
21422	if test "x$PVM" = "x"; then
21423		PVM="0"
21424	fi
21425
21426cat >>confdefs.h <<_ACEOF
21427#define PACKAGE_VERSION_MINOR $PVM
21428_ACEOF
21429
21430	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
21431	if test "x$PVP" = "x"; then
21432		PVP="0"
21433	fi
21434
21435cat >>confdefs.h <<_ACEOF
21436#define PACKAGE_VERSION_PATCHLEVEL $PVP
21437_ACEOF
21438
21439
21440
21441ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
21442
21443cat >confcache <<\_ACEOF
21444# This file is a shell script that caches the results of configure
21445# tests run on this system so they can be shared between configure
21446# scripts and configure runs, see configure's option --config-cache.
21447# It is not useful on other systems.  If it contains results you don't
21448# want to keep, you may remove or edit it.
21449#
21450# config.status only pays attention to the cache file if you give it
21451# the --recheck option to rerun configure.
21452#
21453# `ac_cv_env_foo' variables (set or unset) will be overridden when
21454# loading this file, other *unset* `ac_cv_foo' will be assigned the
21455# following values.
21456
21457_ACEOF
21458
21459# The following way of writing the cache mishandles newlines in values,
21460# but we know of no workaround that is simple, portable, and efficient.
21461# So, we kill variables containing newlines.
21462# Ultrix sh set writes to stderr and can't be redirected directly,
21463# and sets the high bit in the cache file unless we assign to the vars.
21464(
21465  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21466    eval ac_val=\$$ac_var
21467    case $ac_val in #(
21468    *${as_nl}*)
21469      case $ac_var in #(
21470      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21471$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21472      esac
21473      case $ac_var in #(
21474      _ | IFS | as_nl) ;; #(
21475      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21476      *) $as_unset $ac_var ;;
21477      esac ;;
21478    esac
21479  done
21480
21481  (set) 2>&1 |
21482    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21483    *${as_nl}ac_space=\ *)
21484      # `set' does not quote correctly, so add quotes (double-quote
21485      # substitution turns \\\\ into \\, and sed turns \\ into \).
21486      sed -n \
21487	"s/'/'\\\\''/g;
21488	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21489      ;; #(
21490    *)
21491      # `set' quotes correctly as required by POSIX, so do not add quotes.
21492      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21493      ;;
21494    esac |
21495    sort
21496) |
21497  sed '
21498     /^ac_cv_env_/b end
21499     t clear
21500     :clear
21501     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21502     t end
21503     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21504     :end' >>confcache
21505if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21506  if test -w "$cache_file"; then
21507    test "x$cache_file" != "x/dev/null" &&
21508      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21509$as_echo "$as_me: updating cache $cache_file" >&6;}
21510    cat confcache >$cache_file
21511  else
21512    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21513$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21514  fi
21515fi
21516rm -f confcache
21517
21518test "x$prefix" = xNONE && prefix=$ac_default_prefix
21519# Let make expand exec_prefix.
21520test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21521
21522DEFS=-DHAVE_CONFIG_H
21523
21524ac_libobjs=
21525ac_ltlibobjs=
21526for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21527  # 1. Remove the extension, and $U if already installed.
21528  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21529  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21530  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21531  #    will be set to the directory where LIBOBJS objects are built.
21532  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21533  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21534done
21535LIBOBJS=$ac_libobjs
21536
21537LTLIBOBJS=$ac_ltlibobjs
21538
21539
21540if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21541  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21542Usually this means the macro was only invoked conditionally." >&5
21543$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21544Usually this means the macro was only invoked conditionally." >&2;}
21545   { (exit 1); exit 1; }; }
21546fi
21547if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21548  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21549Usually this means the macro was only invoked conditionally." >&5
21550$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21551Usually this means the macro was only invoked conditionally." >&2;}
21552   { (exit 1); exit 1; }; }
21553fi
21554if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21555  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21556Usually this means the macro was only invoked conditionally." >&5
21557$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21558Usually this means the macro was only invoked conditionally." >&2;}
21559   { (exit 1); exit 1; }; }
21560fi
21561if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21562  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21563Usually this means the macro was only invoked conditionally." >&5
21564$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21565Usually this means the macro was only invoked conditionally." >&2;}
21566   { (exit 1); exit 1; }; }
21567fi
21568if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21569  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21570Usually this means the macro was only invoked conditionally." >&5
21571$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21572Usually this means the macro was only invoked conditionally." >&2;}
21573   { (exit 1); exit 1; }; }
21574fi
21575
21576: ${CONFIG_STATUS=./config.status}
21577ac_write_fail=0
21578ac_clean_files_save=$ac_clean_files
21579ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21580{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21581$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21582cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21583#! $SHELL
21584# Generated by $as_me.
21585# Run this file to recreate the current configuration.
21586# Compiler output produced by configure, useful for debugging
21587# configure, is in config.log if it exists.
21588
21589debug=false
21590ac_cs_recheck=false
21591ac_cs_silent=false
21592SHELL=\${CONFIG_SHELL-$SHELL}
21593_ACEOF
21594
21595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21596## --------------------- ##
21597## M4sh Initialization.  ##
21598## --------------------- ##
21599
21600# Be more Bourne compatible
21601DUALCASE=1; export DUALCASE # for MKS sh
21602if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21603  emulate sh
21604  NULLCMD=:
21605  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21606  # is contrary to our usage.  Disable this feature.
21607  alias -g '${1+"$@"}'='"$@"'
21608  setopt NO_GLOB_SUBST
21609else
21610  case `(set -o) 2>/dev/null` in
21611  *posix*) set -o posix ;;
21612esac
21613
21614fi
21615
21616
21617
21618
21619# PATH needs CR
21620# Avoid depending upon Character Ranges.
21621as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21622as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21623as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21624as_cr_digits='0123456789'
21625as_cr_alnum=$as_cr_Letters$as_cr_digits
21626
21627as_nl='
21628'
21629export as_nl
21630# Printing a long string crashes Solaris 7 /usr/bin/printf.
21631as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21632as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21633as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21634if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21635  as_echo='printf %s\n'
21636  as_echo_n='printf %s'
21637else
21638  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21639    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21640    as_echo_n='/usr/ucb/echo -n'
21641  else
21642    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21643    as_echo_n_body='eval
21644      arg=$1;
21645      case $arg in
21646      *"$as_nl"*)
21647	expr "X$arg" : "X\\(.*\\)$as_nl";
21648	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21649      esac;
21650      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21651    '
21652    export as_echo_n_body
21653    as_echo_n='sh -c $as_echo_n_body as_echo'
21654  fi
21655  export as_echo_body
21656  as_echo='sh -c $as_echo_body as_echo'
21657fi
21658
21659# The user is always right.
21660if test "${PATH_SEPARATOR+set}" != set; then
21661  PATH_SEPARATOR=:
21662  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21663    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21664      PATH_SEPARATOR=';'
21665  }
21666fi
21667
21668# Support unset when possible.
21669if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21670  as_unset=unset
21671else
21672  as_unset=false
21673fi
21674
21675
21676# IFS
21677# We need space, tab and new line, in precisely that order.  Quoting is
21678# there to prevent editors from complaining about space-tab.
21679# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21680# splitting by setting IFS to empty value.)
21681IFS=" ""	$as_nl"
21682
21683# Find who we are.  Look in the path if we contain no directory separator.
21684case $0 in
21685  *[\\/]* ) as_myself=$0 ;;
21686  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21687for as_dir in $PATH
21688do
21689  IFS=$as_save_IFS
21690  test -z "$as_dir" && as_dir=.
21691  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21692done
21693IFS=$as_save_IFS
21694
21695     ;;
21696esac
21697# We did not find ourselves, most probably we were run as `sh COMMAND'
21698# in which case we are not to be found in the path.
21699if test "x$as_myself" = x; then
21700  as_myself=$0
21701fi
21702if test ! -f "$as_myself"; then
21703  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21704  { (exit 1); exit 1; }
21705fi
21706
21707# Work around bugs in pre-3.0 UWIN ksh.
21708for as_var in ENV MAIL MAILPATH
21709do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21710done
21711PS1='$ '
21712PS2='> '
21713PS4='+ '
21714
21715# NLS nuisances.
21716LC_ALL=C
21717export LC_ALL
21718LANGUAGE=C
21719export LANGUAGE
21720
21721# Required to use basename.
21722if expr a : '\(a\)' >/dev/null 2>&1 &&
21723   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21724  as_expr=expr
21725else
21726  as_expr=false
21727fi
21728
21729if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21730  as_basename=basename
21731else
21732  as_basename=false
21733fi
21734
21735
21736# Name of the executable.
21737as_me=`$as_basename -- "$0" ||
21738$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21739	 X"$0" : 'X\(//\)$' \| \
21740	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21741$as_echo X/"$0" |
21742    sed '/^.*\/\([^/][^/]*\)\/*$/{
21743	    s//\1/
21744	    q
21745	  }
21746	  /^X\/\(\/\/\)$/{
21747	    s//\1/
21748	    q
21749	  }
21750	  /^X\/\(\/\).*/{
21751	    s//\1/
21752	    q
21753	  }
21754	  s/.*/./; q'`
21755
21756# CDPATH.
21757$as_unset CDPATH
21758
21759
21760
21761  as_lineno_1=$LINENO
21762  as_lineno_2=$LINENO
21763  test "x$as_lineno_1" != "x$as_lineno_2" &&
21764  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21765
21766  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21767  # uniformly replaced by the line number.  The first 'sed' inserts a
21768  # line-number line after each line using $LINENO; the second 'sed'
21769  # does the real work.  The second script uses 'N' to pair each
21770  # line-number line with the line containing $LINENO, and appends
21771  # trailing '-' during substitution so that $LINENO is not a special
21772  # case at line end.
21773  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21774  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21775  # E. McMahon (1931-1989) for sed's syntax.  :-)
21776  sed -n '
21777    p
21778    /[$]LINENO/=
21779  ' <$as_myself |
21780    sed '
21781      s/[$]LINENO.*/&-/
21782      t lineno
21783      b
21784      :lineno
21785      N
21786      :loop
21787      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21788      t loop
21789      s/-\n.*//
21790    ' >$as_me.lineno &&
21791  chmod +x "$as_me.lineno" ||
21792    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21793   { (exit 1); exit 1; }; }
21794
21795  # Don't try to exec as it changes $[0], causing all sort of problems
21796  # (the dirname of $[0] is not the place where we might find the
21797  # original and so on.  Autoconf is especially sensitive to this).
21798  . "./$as_me.lineno"
21799  # Exit status is that of the last command.
21800  exit
21801}
21802
21803
21804if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21805  as_dirname=dirname
21806else
21807  as_dirname=false
21808fi
21809
21810ECHO_C= ECHO_N= ECHO_T=
21811case `echo -n x` in
21812-n*)
21813  case `echo 'x\c'` in
21814  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21815  *)   ECHO_C='\c';;
21816  esac;;
21817*)
21818  ECHO_N='-n';;
21819esac
21820if expr a : '\(a\)' >/dev/null 2>&1 &&
21821   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21822  as_expr=expr
21823else
21824  as_expr=false
21825fi
21826
21827rm -f conf$$ conf$$.exe conf$$.file
21828if test -d conf$$.dir; then
21829  rm -f conf$$.dir/conf$$.file
21830else
21831  rm -f conf$$.dir
21832  mkdir conf$$.dir 2>/dev/null
21833fi
21834if (echo >conf$$.file) 2>/dev/null; then
21835  if ln -s conf$$.file conf$$ 2>/dev/null; then
21836    as_ln_s='ln -s'
21837    # ... but there are two gotchas:
21838    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21839    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21840    # In both cases, we have to default to `cp -p'.
21841    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21842      as_ln_s='cp -p'
21843  elif ln conf$$.file conf$$ 2>/dev/null; then
21844    as_ln_s=ln
21845  else
21846    as_ln_s='cp -p'
21847  fi
21848else
21849  as_ln_s='cp -p'
21850fi
21851rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21852rmdir conf$$.dir 2>/dev/null
21853
21854if mkdir -p . 2>/dev/null; then
21855  as_mkdir_p=:
21856else
21857  test -d ./-p && rmdir ./-p
21858  as_mkdir_p=false
21859fi
21860
21861if test -x / >/dev/null 2>&1; then
21862  as_test_x='test -x'
21863else
21864  if ls -dL / >/dev/null 2>&1; then
21865    as_ls_L_option=L
21866  else
21867    as_ls_L_option=
21868  fi
21869  as_test_x='
21870    eval sh -c '\''
21871      if test -d "$1"; then
21872	test -d "$1/.";
21873      else
21874	case $1 in
21875	-*)set "./$1";;
21876	esac;
21877	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21878	???[sx]*):;;*)false;;esac;fi
21879    '\'' sh
21880  '
21881fi
21882as_executable_p=$as_test_x
21883
21884# Sed expression to map a string onto a valid CPP name.
21885as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21886
21887# Sed expression to map a string onto a valid variable name.
21888as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21889
21890
21891exec 6>&1
21892
21893# Save the log message, to keep $[0] and so on meaningful, and to
21894# report actual input values of CONFIG_FILES etc. instead of their
21895# values after options handling.
21896ac_log="
21897This file was extended by xf86-video-sunleo $as_me 1.2.0, which was
21898generated by GNU Autoconf 2.62.  Invocation command line was
21899
21900  CONFIG_FILES    = $CONFIG_FILES
21901  CONFIG_HEADERS  = $CONFIG_HEADERS
21902  CONFIG_LINKS    = $CONFIG_LINKS
21903  CONFIG_COMMANDS = $CONFIG_COMMANDS
21904  $ $0 $@
21905
21906on `(hostname || uname -n) 2>/dev/null | sed 1q`
21907"
21908
21909_ACEOF
21910
21911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21912# Files that config.status was made for.
21913config_files="`echo $ac_config_files`"
21914config_headers="`echo $ac_config_headers`"
21915config_commands="`echo $ac_config_commands`"
21916
21917_ACEOF
21918
21919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21920ac_cs_usage="\
21921\`$as_me' instantiates files from templates according to the
21922current configuration.
21923
21924Usage: $0 [OPTIONS] [FILE]...
21925
21926  -h, --help       print this help, then exit
21927  -V, --version    print version number and configuration settings, then exit
21928  -q, --quiet      do not print progress messages
21929  -d, --debug      don't remove temporary files
21930      --recheck    update $as_me by reconfiguring in the same conditions
21931  --file=FILE[:TEMPLATE]
21932                   instantiate the configuration file FILE
21933  --header=FILE[:TEMPLATE]
21934                   instantiate the configuration header FILE
21935
21936Configuration files:
21937$config_files
21938
21939Configuration headers:
21940$config_headers
21941
21942Configuration commands:
21943$config_commands
21944
21945Report bugs to <bug-autoconf@gnu.org>."
21946
21947_ACEOF
21948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21949ac_cs_version="\\
21950xf86-video-sunleo config.status 1.2.0
21951configured by $0, generated by GNU Autoconf 2.62,
21952  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21953
21954Copyright (C) 2008 Free Software Foundation, Inc.
21955This config.status script is free software; the Free Software Foundation
21956gives unlimited permission to copy, distribute and modify it."
21957
21958ac_pwd='$ac_pwd'
21959srcdir='$srcdir'
21960INSTALL='$INSTALL'
21961MKDIR_P='$MKDIR_P'
21962AWK='$AWK'
21963test -n "\$AWK" || AWK=awk
21964_ACEOF
21965
21966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21967# The default lists apply if the user does not specify any file.
21968ac_need_defaults=:
21969while test $# != 0
21970do
21971  case $1 in
21972  --*=*)
21973    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21974    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21975    ac_shift=:
21976    ;;
21977  *)
21978    ac_option=$1
21979    ac_optarg=$2
21980    ac_shift=shift
21981    ;;
21982  esac
21983
21984  case $ac_option in
21985  # Handling of the options.
21986  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21987    ac_cs_recheck=: ;;
21988  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21989    $as_echo "$ac_cs_version"; exit ;;
21990  --debug | --debu | --deb | --de | --d | -d )
21991    debug=: ;;
21992  --file | --fil | --fi | --f )
21993    $ac_shift
21994    case $ac_optarg in
21995    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21996    esac
21997    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21998    ac_need_defaults=false;;
21999  --header | --heade | --head | --hea )
22000    $ac_shift
22001    case $ac_optarg in
22002    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22003    esac
22004    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22005    ac_need_defaults=false;;
22006  --he | --h)
22007    # Conflict between --help and --header
22008    { $as_echo "$as_me: error: ambiguous option: $1
22009Try \`$0 --help' for more information." >&2
22010   { (exit 1); exit 1; }; };;
22011  --help | --hel | -h )
22012    $as_echo "$ac_cs_usage"; exit ;;
22013  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22014  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22015    ac_cs_silent=: ;;
22016
22017  # This is an error.
22018  -*) { $as_echo "$as_me: error: unrecognized option: $1
22019Try \`$0 --help' for more information." >&2
22020   { (exit 1); exit 1; }; } ;;
22021
22022  *) ac_config_targets="$ac_config_targets $1"
22023     ac_need_defaults=false ;;
22024
22025  esac
22026  shift
22027done
22028
22029ac_configure_extra_args=
22030
22031if $ac_cs_silent; then
22032  exec 6>/dev/null
22033  ac_configure_extra_args="$ac_configure_extra_args --silent"
22034fi
22035
22036_ACEOF
22037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22038if \$ac_cs_recheck; then
22039  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22040  shift
22041  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22042  CONFIG_SHELL='$SHELL'
22043  export CONFIG_SHELL
22044  exec "\$@"
22045fi
22046
22047_ACEOF
22048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22049exec 5>>config.log
22050{
22051  echo
22052  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22053## Running $as_me. ##
22054_ASBOX
22055  $as_echo "$ac_log"
22056} >&5
22057
22058_ACEOF
22059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22060#
22061# INIT-COMMANDS
22062#
22063AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22064
22065_ACEOF
22066
22067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22068
22069# Handling of arguments.
22070for ac_config_target in $ac_config_targets
22071do
22072  case $ac_config_target in
22073    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22074    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22075    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22076    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22077    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22078
22079  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22080$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22081   { (exit 1); exit 1; }; };;
22082  esac
22083done
22084
22085
22086# If the user did not use the arguments to specify the items to instantiate,
22087# then the envvar interface is used.  Set only those that are not.
22088# We use the long form for the default assignment because of an extremely
22089# bizarre bug on SunOS 4.1.3.
22090if $ac_need_defaults; then
22091  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22092  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22093  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22094fi
22095
22096# Have a temporary directory for convenience.  Make it in the build tree
22097# simply because there is no reason against having it here, and in addition,
22098# creating and moving files from /tmp can sometimes cause problems.
22099# Hook for its removal unless debugging.
22100# Note that there is a small window in which the directory will not be cleaned:
22101# after its creation but before its name has been assigned to `$tmp'.
22102$debug ||
22103{
22104  tmp=
22105  trap 'exit_status=$?
22106  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22107' 0
22108  trap '{ (exit 1); exit 1; }' 1 2 13 15
22109}
22110# Create a (secure) tmp directory for tmp files.
22111
22112{
22113  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22114  test -n "$tmp" && test -d "$tmp"
22115}  ||
22116{
22117  tmp=./conf$$-$RANDOM
22118  (umask 077 && mkdir "$tmp")
22119} ||
22120{
22121   $as_echo "$as_me: cannot create a temporary directory in ." >&2
22122   { (exit 1); exit 1; }
22123}
22124
22125# Set up the scripts for CONFIG_FILES section.
22126# No need to generate them if there are no CONFIG_FILES.
22127# This happens for instance with `./config.status config.h'.
22128if test -n "$CONFIG_FILES"; then
22129
22130
22131ac_cr='
22132'
22133ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22134if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22135  ac_cs_awk_cr='\\r'
22136else
22137  ac_cs_awk_cr=$ac_cr
22138fi
22139
22140echo 'BEGIN {' >"$tmp/subs1.awk" &&
22141_ACEOF
22142
22143
22144{
22145  echo "cat >conf$$subs.awk <<_ACEOF" &&
22146  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22147  echo "_ACEOF"
22148} >conf$$subs.sh ||
22149  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22150$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22151   { (exit 1); exit 1; }; }
22152ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22153ac_delim='%!_!# '
22154for ac_last_try in false false false false false :; do
22155  . ./conf$$subs.sh ||
22156    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22157$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22158   { (exit 1); exit 1; }; }
22159
22160  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
22161    break
22162  elif $ac_last_try; then
22163    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22164$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22165   { (exit 1); exit 1; }; }
22166  else
22167    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22168  fi
22169done
22170rm -f conf$$subs.sh
22171
22172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22173cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22174_ACEOF
22175sed -n '
22176h
22177s/^/S["/; s/!.*/"]=/
22178p
22179g
22180s/^[^!]*!//
22181:repl
22182t repl
22183s/'"$ac_delim"'$//
22184t delim
22185:nl
22186h
22187s/\(.\{148\}\).*/\1/
22188t more1
22189s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22190p
22191n
22192b repl
22193:more1
22194s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22195p
22196g
22197s/.\{148\}//
22198t nl
22199:delim
22200h
22201s/\(.\{148\}\).*/\1/
22202t more2
22203s/["\\]/\\&/g; s/^/"/; s/$/"/
22204p
22205b
22206:more2
22207s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22208p
22209g
22210s/.\{148\}//
22211t delim
22212' <conf$$subs.awk | sed '
22213/^[^""]/{
22214  N
22215  s/\n//
22216}
22217' >>$CONFIG_STATUS || ac_write_fail=1
22218rm -f conf$$subs.awk
22219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22220_ACAWK
22221cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22222  for (key in S) S_is_set[key] = 1
22223  FS = ""
22224
22225}
22226{
22227  line = $ 0
22228  nfields = split(line, field, "@")
22229  substed = 0
22230  len = length(field[1])
22231  for (i = 2; i < nfields; i++) {
22232    key = field[i]
22233    keylen = length(key)
22234    if (S_is_set[key]) {
22235      value = S[key]
22236      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22237      len += length(value) + length(field[++i])
22238      substed = 1
22239    } else
22240      len += 1 + keylen
22241  }
22242
22243  print line
22244}
22245
22246_ACAWK
22247_ACEOF
22248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22249if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22250  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22251else
22252  cat
22253fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22254  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22255$as_echo "$as_me: error: could not setup config files machinery" >&2;}
22256   { (exit 1); exit 1; }; }
22257_ACEOF
22258
22259# VPATH may cause trouble with some makes, so we remove $(srcdir),
22260# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22261# trailing colons and then remove the whole line if VPATH becomes empty
22262# (actually we leave an empty line to preserve line numbers).
22263if test "x$srcdir" = x.; then
22264  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22265s/:*\$(srcdir):*/:/
22266s/:*\${srcdir}:*/:/
22267s/:*@srcdir@:*/:/
22268s/^\([^=]*=[	 ]*\):*/\1/
22269s/:*$//
22270s/^[^=]*=[	 ]*$//
22271}'
22272fi
22273
22274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22275fi # test -n "$CONFIG_FILES"
22276
22277# Set up the scripts for CONFIG_HEADERS section.
22278# No need to generate them if there are no CONFIG_HEADERS.
22279# This happens for instance with `./config.status Makefile'.
22280if test -n "$CONFIG_HEADERS"; then
22281cat >"$tmp/defines.awk" <<\_ACAWK ||
22282BEGIN {
22283_ACEOF
22284
22285# Transform confdefs.h into an awk script `defines.awk', embedded as
22286# here-document in config.status, that substitutes the proper values into
22287# config.h.in to produce config.h.
22288
22289# Create a delimiter string that does not exist in confdefs.h, to ease
22290# handling of long lines.
22291ac_delim='%!_!# '
22292for ac_last_try in false false :; do
22293  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22294  if test -z "$ac_t"; then
22295    break
22296  elif $ac_last_try; then
22297    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22298$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22299   { (exit 1); exit 1; }; }
22300  else
22301    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22302  fi
22303done
22304
22305# For the awk script, D is an array of macro values keyed by name,
22306# likewise P contains macro parameters if any.  Preserve backslash
22307# newline sequences.
22308
22309ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22310sed -n '
22311s/.\{148\}/&'"$ac_delim"'/g
22312t rset
22313:rset
22314s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22315t def
22316d
22317:def
22318s/\\$//
22319t bsnl
22320s/["\\]/\\&/g
22321s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22322D["\1"]=" \3"/p
22323s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22324d
22325:bsnl
22326s/["\\]/\\&/g
22327s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22328D["\1"]=" \3\\\\\\n"\\/p
22329t cont
22330s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22331t cont
22332d
22333:cont
22334n
22335s/.\{148\}/&'"$ac_delim"'/g
22336t clear
22337:clear
22338s/\\$//
22339t bsnlc
22340s/["\\]/\\&/g; s/^/"/; s/$/"/p
22341d
22342:bsnlc
22343s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22344b cont
22345' <confdefs.h | sed '
22346s/'"$ac_delim"'/"\\\
22347"/g' >>$CONFIG_STATUS || ac_write_fail=1
22348
22349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22350  for (key in D) D_is_set[key] = 1
22351  FS = ""
22352}
22353/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22354  line = \$ 0
22355  split(line, arg, " ")
22356  if (arg[1] == "#") {
22357    defundef = arg[2]
22358    mac1 = arg[3]
22359  } else {
22360    defundef = substr(arg[1], 2)
22361    mac1 = arg[2]
22362  }
22363  split(mac1, mac2, "(") #)
22364  macro = mac2[1]
22365  prefix = substr(line, 1, index(line, defundef) - 1)
22366  if (D_is_set[macro]) {
22367    # Preserve the white space surrounding the "#".
22368    print prefix "define", macro P[macro] D[macro]
22369    next
22370  } else {
22371    # Replace #undef with comments.  This is necessary, for example,
22372    # in the case of _POSIX_SOURCE, which is predefined and required
22373    # on some systems where configure will not decide to define it.
22374    if (defundef == "undef") {
22375      print "/*", prefix defundef, macro, "*/"
22376      next
22377    }
22378  }
22379}
22380{ print }
22381_ACAWK
22382_ACEOF
22383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22384  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22385$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22386   { (exit 1); exit 1; }; }
22387fi # test -n "$CONFIG_HEADERS"
22388
22389
22390eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22391shift
22392for ac_tag
22393do
22394  case $ac_tag in
22395  :[FHLC]) ac_mode=$ac_tag; continue;;
22396  esac
22397  case $ac_mode$ac_tag in
22398  :[FHL]*:*);;
22399  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22400$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22401   { (exit 1); exit 1; }; };;
22402  :[FH]-) ac_tag=-:-;;
22403  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22404  esac
22405  ac_save_IFS=$IFS
22406  IFS=:
22407  set x $ac_tag
22408  IFS=$ac_save_IFS
22409  shift
22410  ac_file=$1
22411  shift
22412
22413  case $ac_mode in
22414  :L) ac_source=$1;;
22415  :[FH])
22416    ac_file_inputs=
22417    for ac_f
22418    do
22419      case $ac_f in
22420      -) ac_f="$tmp/stdin";;
22421      *) # Look for the file first in the build tree, then in the source tree
22422	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22423	 # because $ac_f cannot contain `:'.
22424	 test -f "$ac_f" ||
22425	   case $ac_f in
22426	   [\\/$]*) false;;
22427	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22428	   esac ||
22429	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22430$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22431   { (exit 1); exit 1; }; };;
22432      esac
22433      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22434      ac_file_inputs="$ac_file_inputs '$ac_f'"
22435    done
22436
22437    # Let's still pretend it is `configure' which instantiates (i.e., don't
22438    # use $as_me), people would be surprised to read:
22439    #    /* config.h.  Generated by config.status.  */
22440    configure_input='Generated from '`
22441	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22442	`' by configure.'
22443    if test x"$ac_file" != x-; then
22444      configure_input="$ac_file.  $configure_input"
22445      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22446$as_echo "$as_me: creating $ac_file" >&6;}
22447    fi
22448    # Neutralize special characters interpreted by sed in replacement strings.
22449    case $configure_input in #(
22450    *\&* | *\|* | *\\* )
22451       ac_sed_conf_input=`$as_echo "$configure_input" |
22452       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22453    *) ac_sed_conf_input=$configure_input;;
22454    esac
22455
22456    case $ac_tag in
22457    *:-:* | *:-) cat >"$tmp/stdin" \
22458      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22459$as_echo "$as_me: error: could not create $ac_file" >&2;}
22460   { (exit 1); exit 1; }; } ;;
22461    esac
22462    ;;
22463  esac
22464
22465  ac_dir=`$as_dirname -- "$ac_file" ||
22466$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22467	 X"$ac_file" : 'X\(//\)[^/]' \| \
22468	 X"$ac_file" : 'X\(//\)$' \| \
22469	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22470$as_echo X"$ac_file" |
22471    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22472	    s//\1/
22473	    q
22474	  }
22475	  /^X\(\/\/\)[^/].*/{
22476	    s//\1/
22477	    q
22478	  }
22479	  /^X\(\/\/\)$/{
22480	    s//\1/
22481	    q
22482	  }
22483	  /^X\(\/\).*/{
22484	    s//\1/
22485	    q
22486	  }
22487	  s/.*/./; q'`
22488  { as_dir="$ac_dir"
22489  case $as_dir in #(
22490  -*) as_dir=./$as_dir;;
22491  esac
22492  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22493    as_dirs=
22494    while :; do
22495      case $as_dir in #(
22496      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22497      *) as_qdir=$as_dir;;
22498      esac
22499      as_dirs="'$as_qdir' $as_dirs"
22500      as_dir=`$as_dirname -- "$as_dir" ||
22501$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22502	 X"$as_dir" : 'X\(//\)[^/]' \| \
22503	 X"$as_dir" : 'X\(//\)$' \| \
22504	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22505$as_echo X"$as_dir" |
22506    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22507	    s//\1/
22508	    q
22509	  }
22510	  /^X\(\/\/\)[^/].*/{
22511	    s//\1/
22512	    q
22513	  }
22514	  /^X\(\/\/\)$/{
22515	    s//\1/
22516	    q
22517	  }
22518	  /^X\(\/\).*/{
22519	    s//\1/
22520	    q
22521	  }
22522	  s/.*/./; q'`
22523      test -d "$as_dir" && break
22524    done
22525    test -z "$as_dirs" || eval "mkdir $as_dirs"
22526  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22527$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22528   { (exit 1); exit 1; }; }; }
22529  ac_builddir=.
22530
22531case "$ac_dir" in
22532.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22533*)
22534  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22535  # A ".." for each directory in $ac_dir_suffix.
22536  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22537  case $ac_top_builddir_sub in
22538  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22539  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22540  esac ;;
22541esac
22542ac_abs_top_builddir=$ac_pwd
22543ac_abs_builddir=$ac_pwd$ac_dir_suffix
22544# for backward compatibility:
22545ac_top_builddir=$ac_top_build_prefix
22546
22547case $srcdir in
22548  .)  # We are building in place.
22549    ac_srcdir=.
22550    ac_top_srcdir=$ac_top_builddir_sub
22551    ac_abs_top_srcdir=$ac_pwd ;;
22552  [\\/]* | ?:[\\/]* )  # Absolute name.
22553    ac_srcdir=$srcdir$ac_dir_suffix;
22554    ac_top_srcdir=$srcdir
22555    ac_abs_top_srcdir=$srcdir ;;
22556  *) # Relative name.
22557    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22558    ac_top_srcdir=$ac_top_build_prefix$srcdir
22559    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22560esac
22561ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22562
22563
22564  case $ac_mode in
22565  :F)
22566  #
22567  # CONFIG_FILE
22568  #
22569
22570  case $INSTALL in
22571  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22572  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22573  esac
22574  ac_MKDIR_P=$MKDIR_P
22575  case $MKDIR_P in
22576  [\\/$]* | ?:[\\/]* ) ;;
22577  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22578  esac
22579_ACEOF
22580
22581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22582# If the template does not know about datarootdir, expand it.
22583# FIXME: This hack should be removed a few years after 2.60.
22584ac_datarootdir_hack=; ac_datarootdir_seen=
22585
22586ac_sed_dataroot='
22587/datarootdir/ {
22588  p
22589  q
22590}
22591/@datadir@/p
22592/@docdir@/p
22593/@infodir@/p
22594/@localedir@/p
22595/@mandir@/p
22596'
22597case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22598*datarootdir*) ac_datarootdir_seen=yes;;
22599*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22600  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22601$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22602_ACEOF
22603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22604  ac_datarootdir_hack='
22605  s&@datadir@&$datadir&g
22606  s&@docdir@&$docdir&g
22607  s&@infodir@&$infodir&g
22608  s&@localedir@&$localedir&g
22609  s&@mandir@&$mandir&g
22610    s&\\\${datarootdir}&$datarootdir&g' ;;
22611esac
22612_ACEOF
22613
22614# Neutralize VPATH when `$srcdir' = `.'.
22615# Shell code in configure.ac might set extrasub.
22616# FIXME: do we really want to maintain this feature?
22617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22618ac_sed_extra="$ac_vpsub
22619$extrasub
22620_ACEOF
22621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22622:t
22623/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22624s|@configure_input@|$ac_sed_conf_input|;t t
22625s&@top_builddir@&$ac_top_builddir_sub&;t t
22626s&@top_build_prefix@&$ac_top_build_prefix&;t t
22627s&@srcdir@&$ac_srcdir&;t t
22628s&@abs_srcdir@&$ac_abs_srcdir&;t t
22629s&@top_srcdir@&$ac_top_srcdir&;t t
22630s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22631s&@builddir@&$ac_builddir&;t t
22632s&@abs_builddir@&$ac_abs_builddir&;t t
22633s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22634s&@INSTALL@&$ac_INSTALL&;t t
22635s&@MKDIR_P@&$ac_MKDIR_P&;t t
22636$ac_datarootdir_hack
22637"
22638eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22639  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22640$as_echo "$as_me: error: could not create $ac_file" >&2;}
22641   { (exit 1); exit 1; }; }
22642
22643test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22644  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22645  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22646  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22647which seems to be undefined.  Please make sure it is defined." >&5
22648$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22649which seems to be undefined.  Please make sure it is defined." >&2;}
22650
22651  rm -f "$tmp/stdin"
22652  case $ac_file in
22653  -) cat "$tmp/out" && rm -f "$tmp/out";;
22654  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22655  esac \
22656  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22657$as_echo "$as_me: error: could not create $ac_file" >&2;}
22658   { (exit 1); exit 1; }; }
22659 ;;
22660  :H)
22661  #
22662  # CONFIG_HEADER
22663  #
22664  if test x"$ac_file" != x-; then
22665    {
22666      $as_echo "/* $configure_input  */" \
22667      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22668    } >"$tmp/config.h" \
22669      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22670$as_echo "$as_me: error: could not create $ac_file" >&2;}
22671   { (exit 1); exit 1; }; }
22672    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22673      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22674$as_echo "$as_me: $ac_file is unchanged" >&6;}
22675    else
22676      rm -f "$ac_file"
22677      mv "$tmp/config.h" "$ac_file" \
22678	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22679$as_echo "$as_me: error: could not create $ac_file" >&2;}
22680   { (exit 1); exit 1; }; }
22681    fi
22682  else
22683    $as_echo "/* $configure_input  */" \
22684      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22685      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22686$as_echo "$as_me: error: could not create -" >&2;}
22687   { (exit 1); exit 1; }; }
22688  fi
22689# Compute "$ac_file"'s index in $config_headers.
22690_am_arg="$ac_file"
22691_am_stamp_count=1
22692for _am_header in $config_headers :; do
22693  case $_am_header in
22694    $_am_arg | $_am_arg:* )
22695      break ;;
22696    * )
22697      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22698  esac
22699done
22700echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22701$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22702	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22703	 X"$_am_arg" : 'X\(//\)$' \| \
22704	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22705$as_echo X"$_am_arg" |
22706    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22707	    s//\1/
22708	    q
22709	  }
22710	  /^X\(\/\/\)[^/].*/{
22711	    s//\1/
22712	    q
22713	  }
22714	  /^X\(\/\/\)$/{
22715	    s//\1/
22716	    q
22717	  }
22718	  /^X\(\/\).*/{
22719	    s//\1/
22720	    q
22721	  }
22722	  s/.*/./; q'`/stamp-h$_am_stamp_count
22723 ;;
22724
22725  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22726$as_echo "$as_me: executing $ac_file commands" >&6;}
22727 ;;
22728  esac
22729
22730
22731  case $ac_file$ac_mode in
22732    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22733  # Strip MF so we end up with the name of the file.
22734  mf=`echo "$mf" | sed -e 's/:.*$//'`
22735  # Check whether this is an Automake generated Makefile or not.
22736  # We used to match only the files named `Makefile.in', but
22737  # some people rename them; so instead we look at the file content.
22738  # Grep'ing the first line is not enough: some people post-process
22739  # each Makefile.in and add a new line on top of each file to say so.
22740  # Grep'ing the whole file is not good either: AIX grep has a line
22741  # limit of 2048, but all sed's we know have understand at least 4000.
22742  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22743    dirpart=`$as_dirname -- "$mf" ||
22744$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22745	 X"$mf" : 'X\(//\)[^/]' \| \
22746	 X"$mf" : 'X\(//\)$' \| \
22747	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22748$as_echo X"$mf" |
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  else
22767    continue
22768  fi
22769  # Extract the definition of DEPDIR, am__include, and am__quote
22770  # from the Makefile without running `make'.
22771  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22772  test -z "$DEPDIR" && continue
22773  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22774  test -z "am__include" && continue
22775  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22776  # When using ansi2knr, U may be empty or an underscore; expand it
22777  U=`sed -n 's/^U = //p' < "$mf"`
22778  # Find all dependency output files, they are included files with
22779  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22780  # simplest approach to changing $(DEPDIR) to its actual value in the
22781  # expansion.
22782  for file in `sed -n "
22783    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22784       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22785    # Make sure the directory exists.
22786    test -f "$dirpart/$file" && continue
22787    fdir=`$as_dirname -- "$file" ||
22788$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22789	 X"$file" : 'X\(//\)[^/]' \| \
22790	 X"$file" : 'X\(//\)$' \| \
22791	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22792$as_echo X"$file" |
22793    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22794	    s//\1/
22795	    q
22796	  }
22797	  /^X\(\/\/\)[^/].*/{
22798	    s//\1/
22799	    q
22800	  }
22801	  /^X\(\/\/\)$/{
22802	    s//\1/
22803	    q
22804	  }
22805	  /^X\(\/\).*/{
22806	    s//\1/
22807	    q
22808	  }
22809	  s/.*/./; q'`
22810    { as_dir=$dirpart/$fdir
22811  case $as_dir in #(
22812  -*) as_dir=./$as_dir;;
22813  esac
22814  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22815    as_dirs=
22816    while :; do
22817      case $as_dir in #(
22818      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22819      *) as_qdir=$as_dir;;
22820      esac
22821      as_dirs="'$as_qdir' $as_dirs"
22822      as_dir=`$as_dirname -- "$as_dir" ||
22823$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22824	 X"$as_dir" : 'X\(//\)[^/]' \| \
22825	 X"$as_dir" : 'X\(//\)$' \| \
22826	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22827$as_echo X"$as_dir" |
22828    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22829	    s//\1/
22830	    q
22831	  }
22832	  /^X\(\/\/\)[^/].*/{
22833	    s//\1/
22834	    q
22835	  }
22836	  /^X\(\/\/\)$/{
22837	    s//\1/
22838	    q
22839	  }
22840	  /^X\(\/\).*/{
22841	    s//\1/
22842	    q
22843	  }
22844	  s/.*/./; q'`
22845      test -d "$as_dir" && break
22846    done
22847    test -z "$as_dirs" || eval "mkdir $as_dirs"
22848  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22849$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22850   { (exit 1); exit 1; }; }; }
22851    # echo "creating $dirpart/$file"
22852    echo '# dummy' > "$dirpart/$file"
22853  done
22854done
22855 ;;
22856
22857  esac
22858done # for ac_tag
22859
22860
22861{ (exit 0); exit 0; }
22862_ACEOF
22863chmod +x $CONFIG_STATUS
22864ac_clean_files=$ac_clean_files_save
22865
22866test $ac_write_fail = 0 ||
22867  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22868$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22869   { (exit 1); exit 1; }; }
22870
22871
22872# configure is writing to config.log, and then calls config.status.
22873# config.status does its own redirection, appending to config.log.
22874# Unfortunately, on DOS this fails, as config.log is still kept open
22875# by configure, so config.status won't be able to write to it; its
22876# output is simply discarded.  So we exec the FD to /dev/null,
22877# effectively closing config.log, so it can be properly (re)opened and
22878# appended to by config.status.  When coming back to configure, we
22879# need to make the FD available again.
22880if test "$no_create" != yes; then
22881  ac_cs_success=:
22882  ac_config_status_args=
22883  test "$silent" = yes &&
22884    ac_config_status_args="$ac_config_status_args --quiet"
22885  exec 5>/dev/null
22886  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22887  exec 5>>config.log
22888  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22889  # would make configure fail if this is the last instruction.
22890  $ac_cs_success || { (exit 1); exit 1; }
22891fi
22892if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22893  { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
22894$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
22895fi
22896
22897